]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
gdb/README: Document the --with-libgmp-prefix configure option
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
c609df64
JB
12020-11-24 Joel Brobecker <brobecker@adacore.com>
2
3 * README: Document the --with-libgmp-prefix configure option.
4
fa123c32
JB
52020-11-24 Joel Brobecker <brobecker@adacore.com>
6
7 * NEWS: Add entry documenting support for DWARF-based fixed
8 point types.
9
0fb8bb02
JB
102020-11-24 Joel Brobecker <brobecker@adacore.com>
11
12 * NEWS: Document that building GDB now requires GMP.
13
4afa9fd9
JB
142020-11-24 Joel Brobecker <brobecker@adacore.com>
15
16 * typeprint.c (print_type_scalar): Add handling of
17 TYPE_CODE_FIXED_POINT.
18
af619ce9
JB
192020-11-24 Joel Brobecker <brobecker@adacore.com>
20
21 * valarith.c (fixed_point_binop): Replace the
22 INIT_VAL_WITH_FIXED_POINT_VAL macro by a lambda. Update all
23 users accordingly.
24
e6fcee3a
JB
252020-11-24 Joel Brobecker <brobecker@adacore.com>
26
27 * gdbtypes.h (struct type) <fixed_point_scaling_factor>: New method,
28 replacing fixed_point_scaling_factor. All callers updated
29 throughout this project.
30 (fixed_point_scaling_factor): Delete declaration.
31 * gdbtypes.c (type::fixed_point_scaling_factor): Replaces
32 fixed_point_scaling_factor. Adjust implementation accordingly.
33
d19937a7
JB
342020-11-24 Joel Brobecker <brobecker@adacore.com>
35
36 * gdbtypes.h (struct type) <fixed_point_type_base_type> New method,
37 replacing the fixed_point_type_base_type function. All callers
38 updated throughout this project.
39 (fixed_point_type_base_type): Remove declaration.
40 * gdbtypes.c (type::fixed_point_type_base_type): Replaces
41 fixed_point_type_base_type. Adjust implementation accordingly.
42
2a12c336
JB
432020-11-24 Joel Brobecker <brobecker@adacore.com>
44
45 * gdbtypes.h (struct type) <fixed_point_info, set_fixed_point_info>:
46 New methods.
47 (INIT_FIXED_POINT_SPECIFIC): Adjust.
48 (TYPE_FIXED_POINT_INFO): Delete macro.
49 (allocate_fixed_point_type_info): Change return type to void.
50 * gdbtypes.c (copy_type_recursive): Replace the use of
51 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
52 (fixed_point_scaling_factor): Likewise.
53 (allocate_fixed_point_type_info): Change return type to void.
54 Adjust implementation accordingly.
55 * dwarf2/read.c (finish_fixed_point_type): Replace the use of
56 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
57
c9f0b43f
JB
582020-11-24 Joel Brobecker <brobecker@adacore.com>
59
60 * gmp-utils.h (gdb_mpz::read): Change buf and len parameters
61 into one single gdb::array_view parameter.
62 (gdb_mpz::write): Likewise.
63 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
64 * gmp-utils.c (gdb_mpz::read): Change buf and len parameters
65 into one single gdb::array_view parameter.
66 Adjust implementation accordingly.
67 (gdb_mpz::write): Likewise.
68 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
69 * unittests/gmp-utils-selftests.c: Adapt following changes above.
70 * valarith.c, valops.c, valprint.c, value.c: Likewise.
71
987b6703
JB
722020-11-24 Joel Brobecker <brobecker@adacore.com>
73
74 * gmp-utils.h (gmp_string_printf): Rename from gmp_string_asprintf.
75 Change return type to std::string. Update all callers.
76 * gmp-utils.c (gmp_string_printf): Likewise.
77
4fbb7cce
JB
782020-11-24 Joel Brobecker <brobecker@adacore.com>
79
80 * unittests/gmp-utils-selftests.c (write_fp_test): Use mpq_set_si
81 instead of mpq_set_ui to initialize our GMP rational.
82
d6ab69dd
TV
832020-11-23 Tom de Vries <tdevries@suse.de>
84
85 * debuginfod-support.c (debuginfod_source_query)
86 (debuginfod_debuginfo_query): Only set DESTNAME if successful.
87
dab72643
TT
882020-11-21 Tom Tromey <tom@tromey.com>
89
90 * breakpoint.c (watchpoint_exp_is_const): Return bool.
91
c0ad05d5
SM
922020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
93
94 * unittests/gmp-utils-selftests.c (gdb_mpz_read_all_from_small):
95 Pass 2.0 to pow.
96 (gdb_mpz_write_all_from_small): Likewise.
97
a43b29c9
SM
982020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
99
100 * dwarf2/read.c (finish_fixed_point_type): Use std::abs instead
101 of abs.
102
ae41200b
NA
1032020-11-20 Nick Alcock <nick.alcock@oracle.com>
104
105 * ctfread.c (elfctf_build_psymtabs): Use ctf_dict_open, not
106 ctf_arc_open_by_name.
107
139633c3
NA
1082020-11-20 Nick Alcock <nick.alcock@oracle.com>
109
110 * ctfread.c: Change uses of ctf_file_t to ctf_dict_t.
111 (ctf_fp_info::~ctf_fp_info): Call ctf_dict_close, not ctf_file_close.
112
cbbcd7a7
PA
1132020-11-20 Pedro Alves <pedro@palves.net>
114
115 * language.c (language_arch_info::lookup_primitive_type): Use
116 gdb::function_view instead of gdb::function.
117 (template language_lookup_primitive_type): Rename to ...
118 (language_lookup_primitive_type_1): ... this, and make static.
119 (language_lookup_primitive_type(const struct language_defn *,
120 struct gdbarch *, const char *): Make non-template.
121 (language_lookup_primitive_type(const struct language_defn *,
122 struct gdbarch *, std::function<bool (struct type *)>): Make
123 non-template and use gdb::function_view.
124 * language.h (language_arch_info::lookup_primitive_type): Use
125 gdb::function_view instead of std::function.
126 (language_lookup_primitive_type): No longer template.
127 * opencl-lang.c (lookup_opencl_vector_type): 'filter' is now a
128 lambda instead of a std::function.
129
d5ef21c3
AA
1302020-11-19 Andreas Arnez <arnez@linux.ibm.com>
131
132 PR tdep/26916
133 * s390-tdep.c (s390_process_record): Fix recording of STOC, STOCG,
134 and STOCFH.
135
a5adb8f3
SM
1362020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
137
138 * f-lang.c (fortran_value_subarray): Use plongest/pulongest.
139
70125a45
SM
1402020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
141
142 * gdbarch.sh (read_core_file_mappings): Remove `other` parameter
143 in `loop_cb` parameter.
144 * gdbarch.c: Re-generate.
145 * gdbarch.h: Re-generate.
146 * arch-utils.c (default_read_core_file_mappings): Remove `other`
147 parameter.
148 * arch-utils.h (default_read_core_file_mappings): Likewise.
149 * corelow.c (core_target::build_file_mappings): Likewise.
150 * linux-tdep.c (linux_read_core_file_mappings): Likewise.
151 (linux_core_info_proc_mappings): Likewise.
152
a5c641b5
AB
1532020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
154
155 * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
156 * NEWS: Mention new options.
157 * f-array-walker.h: New file.
158 * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
159 (repack_array_slices): New static global.
160 (show_repack_array_slices): New function.
161 (fortran_array_slicing_debug): New static global.
162 (show_fortran_array_slicing_debug): New function.
163 (value_f90_subarray): Delete.
164 (skip_undetermined_arglist): Delete.
165 (class fortran_array_repacker_base_impl): New class.
166 (class fortran_lazy_array_repacker_impl): New class.
167 (class fortran_array_repacker_impl): New class.
168 (fortran_value_subarray): Complete rewrite.
169 (set_fortran_list): New static global.
170 (show_fortran_list): Likewise.
171 (_initialize_f_language): Register new commands.
172 (fortran_adjust_dynamic_array_base_address_hack): New function.
173 * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
174 Declare.
175 * f-valprint.c: Include 'f-array-walker.h'.
176 (class fortran_array_printer_impl): New class.
177 (f77_print_array_1): Delete.
178 (f77_print_array): Delete.
179 (fortran_print_array): New.
180 (f_value_print_inner): Update to call fortran_print_array.
181 * gdbtypes.c: Include 'f-lang.h'.
182 (resolve_dynamic_type_internal): Call
183 fortran_adjust_dynamic_array_base_address_hack.
184
a15a5258
AB
1852020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
186
187 * breakpoint.c (struct watch_options): New struct.
188 (watch_option_defs): New static global.
189 (make_watch_options_def_group): New function.
190 (watch_maybe_just_location): Convert option parsing.
191 (watch_command_completer): New function.
192 (_initialize_breakpoint): Build help text using options mechanism.
193
2e362716
AB
1942020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
195
196 * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
197 (watch_command_1): Update parameter types. Convert locals to
198 bool.
199 (watch_command_wrapper): Change parameter type.
200 (watch_maybe_just_location): Change locals to bool.
201 (rwatch_command_wrapper): Update parameter type.
202 (awatch_command_wrapper): Update parameter type.
203 * breakpoint.h (watch_command_wrapper): Change parameter type.
204 (rwatch_command_wrapper): Update parameter type.
205 (awatch_command_wrapper): Update parameter type.
206 * eval.c (fetch_subexp_value): Change parameter type.
207 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
208 'false' not '0'.
209 * value.h (fetch_subexp_value): Change parameter type in
210 declaration.
211
b3ff61f8
AB
2122020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
213
214 * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
215 skip_spaces.
216
5b7d45d3
KS
2172020-11-18 Keith Seitz <keiths@redhat.com>
218
219 * linux-tdep.c (dump_note_entry_p): Return true instead of
220 checking `filename'.
221
c44191f8
TV
2222020-11-18 Tom de Vries <tdevries@suse.de>
223
224 * debuginfod-support.c (debuginfod_source_query)
225 (debuginfod_debuginfo_query): Also do early exit if
226 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
227
5d8254e1
TV
2282020-11-18 Tom de Vries <tdevries@suse.de>
229
230 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
231 warning.
232
584903d3
SM
2332020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
234
235 * gdbtypes.h (get_array_bounds): Return bool, adjust some
236 callers. Move doc here.
237 * gdbtypes.c (get_array_bounds): Return bool
238
6f2643db
AB
2392020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
240
241 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
242 assert.
243 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
244 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
245 case to the default.
246
037d7135
AB
2472020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
248
249 * printcmd.c: Include 'safe-ctype.c'.
250 (skip_over_slash_fmt): New function.
251 (print_command_completer): Call skip_over_slash_fmt.
252 (display_and_x_command_completer): New function.
253 (_initialize_printcmd): Add command completion for 'x' and
254 'display'.
255
2b3cb400
PA
2562020-11-16 Pedro Alves <pedro@palves.net>
257
258 * frame.c (get_prev_frame): Move get_frame_id call from here ...
259 (get_prev_frame_always_1): ... to here.
260 * inline-frame.c (inline_frame_this_id): Mention
261 get_prev_frame_always_1 in comment.
262
b74dbc20
JB
2632020-11-15 Joel Brobecker <brobecker@adacore.com>
264
265 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
266 handling.
267 (value_less): Add fixed-point handling.
268
0a12719e
JB
2692020-11-15 Joel Brobecker <brobecker@adacore.com>
270
271 * eval.c (binop_promote): Add fixed-point type handling.
272 * valarith.c (fixed_point_binop): New function.
273 (scalar_binop): Add fixed-point type handling.
274 (value_neg): Add fixed-point type handling.
275 * valops.c (value_cast_to_fixed_point): New function.
276 (value_cast): Add fixed-point type handling.
277
0c9150e4
JB
2782020-11-15 Joel Brobecker <brobecker@adacore.com>
279
280 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
281 range types.
282 * c-typeprint.c (c_type_print_varspec_prefix)
283 (c_type_print_varspec_suffix, c_type_print_base_1): Add
284 TYPE_CODE_FIXED_POINT handling.
285 * p-typeprint.c (pascal_type_print_varspec_prefix)
286 (pascal_type_print_varspec_suffix): Likewise.
287 * typeprint.c (print_type_fixed_point): New function.
288 * typeprint.h (print_type_fixed_point): Add declaration.
289
b26daff9
JB
2902020-11-15 Joel Brobecker <brobecker@adacore.com>
291
292 * printcmd.c (print_scalar_formatted): Add fixed-point type
293 handling when options->format is set.
294
09584414
JB
2952020-11-15 Joel Brobecker <brobecker@adacore.com>
296
297 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
298 * dwarf2/read.c (get_dwarf2_rational_constant)
299 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
300 (has_zero_over_zero_small_attribute): New functions.
301 read_base_type, set_die_type): Add fixed-point type handling.
302 * gdb-gdb.py.in: Add fixed-point type handling.
303 * gdbtypes.c: #include "gmp-utils.h".
304 (create_range_type, set_type_code): Add fixed-point type handling.
305 (init_fixed_point_type): New function.
306 (is_integral_type, is_scalar_type): Add fixed-point type handling.
307 (print_fixed_point_type_info): New function.
308 (recursive_dump_type, copy_type_recursive): Add fixed-point type
309 handling.
310 (fixed_point_type_storage): New typedef.
311 (fixed_point_objfile_key): New static global.
312 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
313 (fixed_point_type_base_type, fixed_point_scaling_factor): New
314 functions.
315 * gdbtypes.h: #include "gmp-utils.h".
316 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
317 (union type_specific) <fixed_point_info>: New field.
318 (struct fixed_point_type_info): New struct.
319 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
320 (init_fixed_point_type, is_fixed_point_type)
321 (fixed_point_type_base_type, fixed_point_scaling_factor)
322 (allocate_fixed_point_type_info): Add declarations.
323 * valprint.c (generic_val_print_fixed_point): New function.
324 (generic_value_print): Add fixed-point type handling.
325 * value.c (value_as_address, unpack_long): Add fixed-point type
326 handling.
327
e55c6530
JB
3282020-11-15 Joel Brobecker <brobecker@adacore.com>
329
330 * utils.h (uinteger_pow): Add declaration.
331 * utils.c (uinteger_pow): Moved here (without changes)...
332 * valarith.c (uinteger_pow): ... from here.
333
b34c74ab
JB
3342020-11-15 Joel Brobecker <brobecker@adacore.com>
335
40d9d2fd 336 * gmp-utils.h, gmp-utils.c: New file.
b34c74ab
JB
337 * unittests/gmp-utils-selftests.c: New file.
338 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
339 unittests/gmp-utils-selftests.c.
340 (COMMON_SFILES) Add gmp-utils.c.
341 (HFILES_NO_SRCDIR): Add gmp-utils.h.
342
1b4ac058
JB
3432020-11-15 Joel Brobecker <brobecker@adacore.com>
344
345 * configure.ac: Generate an error if a usable GMP library
346 could not be found.
347 * configure: Regenerate.
348
2c947d9b
JB
3492020-11-15 Joel Brobecker <brobecker@adacore.com>
350
351 * configure.ac: Add support for --with-libgmp-prefix.
352 * Makefile.in (LIBGMP): New variable.
353 (CLIBS): Include $(LIBGMP).
354 * configure, config.in: Regenerate
355
9dd02fc0
AB
3562020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
357
358 PR cli/26879
359 * f-exp.y (COMPLETE): New token.
360 (exp): Two new rules for tab-completion.
361 (saw_name_at_eof): New static global.
362 (last_was_structop): Likewise.
363 (yylex): Set new variables, and return COMPLETE token at the end
364 of the input stream in some cases.
365
758cb810
TT
3662020-11-14 Tom Tromey <tom@tromey.com>
367
368 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
369
749065b7
TT
3702020-11-14 Tom Tromey <tom@tromey.com>
371
372 * opencl-lang.c (opencl_component_ref): Make "comps" const.
373
2c5b1849
SM
3742020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
375
376 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
377
e8b2f0d9
TT
3782020-11-13 Tom Tromey <tom@tromey.com>
379
380 * c-lang.c (convert_ucn, convert_octal, convert_hex)
381 (convert_escape, parse_one_string): Constify.
382
25f4c262
KS
3832020-11-13 Keith Seitz <keiths@redhat.com>
384
385 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
386 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
387 outside of ELF segments" warning for debugin
388
9d3ab915
KS
3892020-11-13 Keith Seitz <keiths@redhat.com>
390
391 PR gdb/23034
392 * elfread.c (elf_symfile_segments): Output a BFD file name
393 for the "Loadable section ... outside of ELF segments" warning.
394
9ecab40c
SM
3952020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
396
397 PR gdb/26835
398 * arm-tdep.c (class arm_instruction_reader): New.
399 (target_arm_instruction_reader): New.
400 (arm_analyze_prologue): Add instruction reader parameter and use
401 it. Use arm_expand_immediate.
402 (class target_arm_instruction_reader): Adjust.
403 (arm_skip_prologue): Adjust.
404 (arm_expand_immediate): New.
405 (arm_scan_prologue): Adjust.
406 (arm_analyze_prologue_test): New.
407 (class test_arm_instruction_reader): New.
408
5a7cf527
AB
4092020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
410
411 * f-lang.c (fortran_argument_convert): Add declaration. Add
412 header comment, taken from f-lang.h. Make static.
413 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
414 (fortran_argument_convert): Delete declaration.
415
7bea47f0
AB
4162020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
417
418 * ada-exp.y (find_primitive_type): Make parameter const.
419 * ada-lang.c (enum ada_primitive_types): Delete.
420 (ada_language::language_arch_info): Update.
421 * c-lang.c (enum c_primitive_types): Delete.
422 (c_language_arch_info): Update.
423 (enum cplus_primitive_types): Delete.
424 (cplus_language::language_arch_info): Update.
425 * d-lang.c (enum d_primitive_types): Delete.
426 (d_language::language_arch_info): Update.
427 * f-lang.c (enum f_primitive_types): Delete.
428 (f_language::language_arch_info): Update.
429 * go-lang.c (enum go_primitive_types): Delete.
430 (go_language::language_arch_info): Update.
431 * language.c (auto_or_unknown_language::language_arch_info):
432 Update.
433 (language_gdbarch_post_init): Use obstack_new, use array indexing.
434 (language_string_char_type): Add header comment, call function in
435 language_arch_info.
436 (language_bool_type): Likewise
437 (language_arch_info::bool_type): Define.
438 (language_lookup_primitive_type_1): Delete.
439 (language_lookup_primitive_type): Rewrite as a templated function
440 to call function in language_arch_info, then instantiate twice.
441 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
442 (language_arch_info::lookup_primitive_type_and_symbol): Define.
443 (language_arch_info::lookup_primitive_type): Define twice with
444 different signatures.
445 (language_arch_info::lookup_primitive_type_as_symbol): Define.
446 (language_lookup_primitive_type_as_symbol): Rewrite to call a
447 member function in language_arch_info.
448 * language.h (language_arch_info): Complete rewrite.
449 (language_lookup_primitive_type): Make templated.
450 * m2-lang.c (enum m2_primitive_types): Delete.
451 (m2_language::language_arch_info): Update.
452 * opencl-lang.c (OCL_P_TYPE): Delete.
453 (enum opencl_primitive_types): Delete.
454 (opencl_type_data): Delete.
455 (builtin_opencl_type): Delete.
456 (lookup_opencl_vector_type): Update.
457 (opencl_language::language_arch_info): Update, lots of content
458 moved from...
459 (build_opencl_types): ...here. This function is now deleted.
460 (_initialize_opencl_language): Delete.
461 * p-lang.c (enum pascal_primitive_types): Delete.
462 (pascal_language::language_arch_info): Update.
463 * rust-lang.c (enum rust_primitive_types): Delete.
464 (rust_language::language_arch_info): Update.
465
bf6e5d01
SM
4662020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
467
468 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
469 dwarf2_queue_guard.
470
1350c3b4
SM
4712020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
472
473 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
474 comment.
475
6f738b01
SM
4762020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
477
478 * dwarf2/read.c (dwarf_read_debug_printf,
479 dwarf_read_debug_printf_v): New macros, use throughout the file.
480
10c19fad
SV
4812020-11-12 Shahab Vahedi <shahab@synopsys.com>
482
483 * arc-linux-tdep.c (collect_register): Populate "eret" by
484 "pc" value from the regcache when asked for "pc" value.
485
1f2624a3
TT
4862020-11-12 Tom Tromey <tom@tromey.com>
487
488 PR rust/26799:
489 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
490 exist.
491
ab33b152
AB
4922020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
493
494 * features/Makefile (XMLTOC): Add rx.xml.
495 (FEATURE_XMLFILES): Remove rx.xml.
496 (FEATURE_CFILES rule): Pass '-single-feature' flag.
497 * features/rx.c: Regenerate.
498 * features/rx.xml: Wrap in `target` tags, and reindent.
499 * target-descriptions.c (struct maint_print_c_tdesc_options): New
500 structure.
501 (maint_print_c_tdesc_opt_def): New typedef.
502 (maint_print_c_tdesc_opt_defs): New static global.
503 (make_maint_print_c_tdesc_options_def_group): New function.
504 (maint_print_c_tdesc_cmd): Make use of command line flags, only
505 print single feature C file for target descriptions containing a
506 single feature.
507 (maint_print_c_tdesc_cmd_completer): New function.
508 (_initialize_target_descriptions): Update call to register command
509 completer, and include command line flag in help text.
510
550820e1
AB
5112020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
512
513 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
514 numbers.
515 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
516 enum values.
517
baf20f76
TT
5182020-11-10 Tom Tromey <tom@tromey.com>
519
520 * value.h (internalvar_name): Update.
521 * value.c (internalvar_name): Make return type const.
522
caaece0e
TT
5232020-11-10 Tom Tromey <tom@tromey.com>
524
525 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
526 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
527 const.
528
8e20b4be
TT
5292020-11-10 Tom Tromey <tom@tromey.com>
530
531 * objc-lang.h (value_nsstring): Update.
532 * objc-lang.c (value_nsstring): Make "ptr" const.
533
86775fab
AB
5342020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
535
536 * expprint.c (print_subexp_funcall): Increment expression position
537 after reading argument count.
538 * f-lang.c (print_subexp_f): Skip over opcode before calling
539 common function.
540 (dump_subexp_body_f): Likewise.
541
3fed4c0b
RG
5422020-11-06 Romain Geissler <romain.geissler@amadeus.com>
543
544 PR python/26832
545 * configure: Regenerate.
546 * configure.ac: Check for python modules ctypes instead of
547 itertools.
548
ac3d4064
PA
5492020-11-06 Pedro Alves <pedro@palves.net>
550
551 * macroexp.c (struct macro_buffer): Split in two classes. Add
552 uses adjusted.
553 (struct shared_macro_buffer): New, factored out from struct
554 macro_buffer.
555 (struct growable_macro_buffer): New, factored out from struct
556 macro_buffer.
557 (set_token, get_comment, get_identifier, get_pp_number)
558 (get_character_constant, get_string_literal, get_punctuator)
559 (get_next_token_for_substitution): Constify parameters.
560 (substitute_args): Constify locals.
561
606decb2
TT
5622020-11-05 Tom Tromey <tom@tromey.com>
563
564 * dwarf2/read.c (read_cutu_die_from_dwo)
565 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
566 (build_type_psymtabs_1): Update.
567 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
568 parameter.
569 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
570 Don't read section. Add assert.
571
9c91c725
TT
5722020-11-04 Tom Tromey <tromey@adacore.com>
573
574 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
575
8d9fd3a1
TT
5762020-11-04 Tom Tromey <tromey@adacore.com>
577
578 * ada-typeprint.c (ada_print_type): Handle __T types.
579
d8f62e84
TT
5802020-11-04 Tom Tromey <tromey@adacore.com>
581
582 * dwarf2/read.c (add_partial_symbol, process_die):
583 Handle DW_TAG_array_type.
584 (is_type_tag_for_partial): Add "lang" parameter.
585 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
586
7ff5b937
TT
5872020-11-04 Tom Tromey <tromey@adacore.com>
588
589 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
590
10f6a3ad
TT
5912020-11-04 Tom Tromey <tromey@adacore.com>
592
593 * dwarf2/read.c (read_array_type): Only apply stride to innermost
594 array.
595
b72795a8
TT
5962020-11-04 Tom Tromey <tromey@adacore.com>
597
598 * gdbtypes.c (update_static_array_size): Handle bit stride.
599
24aa1b02
TT
6002020-11-04 Tom Tromey <tromey@adacore.com>
601
602 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
603
c9a28cbe
TT
6042020-11-04 Tom Tromey <tromey@adacore.com>
605
606 * ada-lang.c (ada_is_any_packed_array_type): New function.
607 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
608
57567375
TT
6092020-11-04 Tom Tromey <tromey@adacore.com>
610
611 * dwarf2/read.c (recognize_bound_expression)
612 (quirk_ada_thick_pointer): New functions.
613 (read_array_type): Call quirk_ada_thick_pointer.
614 (set_die_type): Add "skip_data_location" parameter.
615 (quirk_ada_thick_pointer): New function.
616 (process_structure_scope): Call quirk_ada_thick_pointer.
617 * ada-lang.c (ada_is_unconstrained_packed_array_type)
618 (decode_packed_array_bitsize): Handle thick pointers without
619 parallel types.
620 (ada_is_gnat_encoded_packed_array_type): Rename from
621 ada_is_packed_array_type.
622 (ada_is_constrained_packed_array_type): Update.
623 * ada-valprint.c (ada_val_print_gnat_array): Remove.
624 (ada_value_print_1): Use ada_get_decoded_value.
625
a7400e44
TT
6262020-11-04 Tom Tromey <tromey@adacore.com>
627
628 * ada-lang.c (recursively_update_array_bitsize): New function.
629 (decode_constrained_packed_array_type): Call it.
630
75fd6a26
TT
6312020-11-04 Tom Tromey <tromey@adacore.com>
632
633 * ada-lang.c (to_fixed_array_type): Error if
634 decode_constrained_packed_array_type returns NULL.
635
93f9561e
TT
6362020-11-04 Tom Tromey <tromey@adacore.com>
637
638 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
639
257e02d8
TT
6402020-11-02 Tom Tromey <tromey@adacore.com>
641
642 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
643 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
644 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
645 * amd64-ravenscar-thread.c: New file.
646 * amd64-ravenscar-thread.h: New file.
647 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
648 * configure.tgt (amd64_tobjs): Add ravenscar objects.
649
74d877e5
AB
6502020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
651
652 * main.c (execute_cmdargs): New function.
653 (captured_main_1): Make use of execute_cmdargs.
654
64aaad63
AB
6552020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
656
657 * NEWS: Mention changes to config file search path.
658 * main.c
659
5b3d3560
TT
6602020-11-02 Tom Tromey <tromey@adacore.com>
661
662 * python/python.c: Consolidate two HAVE_PYTHON blocks.
663 (python_GdbModuleDef): Move earlier. Now static.
664 (do_start_initialization): Consolidate some IS_PY3K blocks.
665
dda83cd7
SM
6662020-11-02 Simon Marchi <simon.marchi@efficios.com>
667
668 * aarch64-linux-tdep.c: Fix indentation.
669 * aarch64-ravenscar-thread.c: Fix indentation.
670 * aarch64-tdep.c: Fix indentation.
671 * aarch64-tdep.h: Fix indentation.
672 * ada-lang.c: Fix indentation.
673 * ada-lang.h: Fix indentation.
674 * ada-tasks.c: Fix indentation.
675 * ada-typeprint.c: Fix indentation.
676 * ada-valprint.c: Fix indentation.
677 * ada-varobj.c: Fix indentation.
678 * addrmap.c: Fix indentation.
679 * addrmap.h: Fix indentation.
680 * agent.c: Fix indentation.
681 * aix-thread.c: Fix indentation.
682 * alpha-bsd-nat.c: Fix indentation.
683 * alpha-linux-tdep.c: Fix indentation.
684 * alpha-mdebug-tdep.c: Fix indentation.
685 * alpha-nbsd-tdep.c: Fix indentation.
686 * alpha-obsd-tdep.c: Fix indentation.
687 * alpha-tdep.c: Fix indentation.
688 * amd64-bsd-nat.c: Fix indentation.
689 * amd64-darwin-tdep.c: Fix indentation.
690 * amd64-linux-nat.c: Fix indentation.
691 * amd64-linux-tdep.c: Fix indentation.
692 * amd64-nat.c: Fix indentation.
693 * amd64-obsd-tdep.c: Fix indentation.
694 * amd64-tdep.c: Fix indentation.
695 * amd64-windows-tdep.c: Fix indentation.
696 * annotate.c: Fix indentation.
697 * arc-tdep.c: Fix indentation.
698 * arch-utils.c: Fix indentation.
699 * arch/arm-get-next-pcs.c: Fix indentation.
700 * arch/arm.c: Fix indentation.
701 * arm-linux-nat.c: Fix indentation.
702 * arm-linux-tdep.c: Fix indentation.
703 * arm-nbsd-tdep.c: Fix indentation.
704 * arm-pikeos-tdep.c: Fix indentation.
705 * arm-tdep.c: Fix indentation.
706 * arm-tdep.h: Fix indentation.
707 * arm-wince-tdep.c: Fix indentation.
708 * auto-load.c: Fix indentation.
709 * auxv.c: Fix indentation.
710 * avr-tdep.c: Fix indentation.
711 * ax-gdb.c: Fix indentation.
712 * ax-general.c: Fix indentation.
713 * bfin-linux-tdep.c: Fix indentation.
714 * block.c: Fix indentation.
715 * block.h: Fix indentation.
716 * blockframe.c: Fix indentation.
717 * bpf-tdep.c: Fix indentation.
718 * break-catch-sig.c: Fix indentation.
719 * break-catch-syscall.c: Fix indentation.
720 * break-catch-throw.c: Fix indentation.
721 * breakpoint.c: Fix indentation.
722 * breakpoint.h: Fix indentation.
723 * bsd-uthread.c: Fix indentation.
724 * btrace.c: Fix indentation.
725 * build-id.c: Fix indentation.
726 * buildsym-legacy.h: Fix indentation.
727 * buildsym.c: Fix indentation.
728 * c-typeprint.c: Fix indentation.
729 * c-valprint.c: Fix indentation.
730 * c-varobj.c: Fix indentation.
731 * charset.c: Fix indentation.
732 * cli/cli-cmds.c: Fix indentation.
733 * cli/cli-decode.c: Fix indentation.
734 * cli/cli-decode.h: Fix indentation.
735 * cli/cli-script.c: Fix indentation.
736 * cli/cli-setshow.c: Fix indentation.
737 * coff-pe-read.c: Fix indentation.
738 * coffread.c: Fix indentation.
739 * compile/compile-cplus-types.c: Fix indentation.
740 * compile/compile-object-load.c: Fix indentation.
741 * compile/compile-object-run.c: Fix indentation.
742 * completer.c: Fix indentation.
743 * corefile.c: Fix indentation.
744 * corelow.c: Fix indentation.
745 * cp-abi.h: Fix indentation.
746 * cp-namespace.c: Fix indentation.
747 * cp-support.c: Fix indentation.
748 * cp-valprint.c: Fix indentation.
749 * cris-linux-tdep.c: Fix indentation.
750 * cris-tdep.c: Fix indentation.
751 * darwin-nat-info.c: Fix indentation.
752 * darwin-nat.c: Fix indentation.
753 * darwin-nat.h: Fix indentation.
754 * dbxread.c: Fix indentation.
755 * dcache.c: Fix indentation.
756 * disasm.c: Fix indentation.
757 * dtrace-probe.c: Fix indentation.
758 * dwarf2/abbrev.c: Fix indentation.
759 * dwarf2/attribute.c: Fix indentation.
760 * dwarf2/expr.c: Fix indentation.
761 * dwarf2/frame.c: Fix indentation.
762 * dwarf2/index-cache.c: Fix indentation.
763 * dwarf2/index-write.c: Fix indentation.
764 * dwarf2/line-header.c: Fix indentation.
765 * dwarf2/loc.c: Fix indentation.
766 * dwarf2/macro.c: Fix indentation.
767 * dwarf2/read.c: Fix indentation.
768 * dwarf2/read.h: Fix indentation.
769 * elfread.c: Fix indentation.
770 * eval.c: Fix indentation.
771 * event-top.c: Fix indentation.
772 * exec.c: Fix indentation.
773 * exec.h: Fix indentation.
774 * expprint.c: Fix indentation.
775 * f-lang.c: Fix indentation.
776 * f-typeprint.c: Fix indentation.
777 * f-valprint.c: Fix indentation.
778 * fbsd-nat.c: Fix indentation.
779 * fbsd-tdep.c: Fix indentation.
780 * findvar.c: Fix indentation.
781 * fork-child.c: Fix indentation.
782 * frame-unwind.c: Fix indentation.
783 * frame-unwind.h: Fix indentation.
784 * frame.c: Fix indentation.
785 * frv-linux-tdep.c: Fix indentation.
786 * frv-tdep.c: Fix indentation.
787 * frv-tdep.h: Fix indentation.
788 * ft32-tdep.c: Fix indentation.
789 * gcore.c: Fix indentation.
790 * gdb_bfd.c: Fix indentation.
791 * gdbarch.sh: Fix indentation.
792 * gdbarch.c: Re-generate
793 * gdbarch.h: Re-generate.
794 * gdbcore.h: Fix indentation.
795 * gdbthread.h: Fix indentation.
796 * gdbtypes.c: Fix indentation.
797 * gdbtypes.h: Fix indentation.
798 * glibc-tdep.c: Fix indentation.
799 * gnu-nat.c: Fix indentation.
800 * gnu-nat.h: Fix indentation.
801 * gnu-v2-abi.c: Fix indentation.
802 * gnu-v3-abi.c: Fix indentation.
803 * go32-nat.c: Fix indentation.
804 * guile/guile-internal.h: Fix indentation.
805 * guile/scm-cmd.c: Fix indentation.
806 * guile/scm-frame.c: Fix indentation.
807 * guile/scm-iterator.c: Fix indentation.
808 * guile/scm-math.c: Fix indentation.
809 * guile/scm-ports.c: Fix indentation.
810 * guile/scm-pretty-print.c: Fix indentation.
811 * guile/scm-value.c: Fix indentation.
812 * h8300-tdep.c: Fix indentation.
813 * hppa-linux-nat.c: Fix indentation.
814 * hppa-linux-tdep.c: Fix indentation.
815 * hppa-nbsd-nat.c: Fix indentation.
816 * hppa-nbsd-tdep.c: Fix indentation.
817 * hppa-obsd-nat.c: Fix indentation.
818 * hppa-tdep.c: Fix indentation.
819 * hppa-tdep.h: Fix indentation.
820 * i386-bsd-nat.c: Fix indentation.
821 * i386-darwin-nat.c: Fix indentation.
822 * i386-darwin-tdep.c: Fix indentation.
823 * i386-dicos-tdep.c: Fix indentation.
824 * i386-gnu-nat.c: Fix indentation.
825 * i386-linux-nat.c: Fix indentation.
826 * i386-linux-tdep.c: Fix indentation.
827 * i386-nto-tdep.c: Fix indentation.
828 * i386-obsd-tdep.c: Fix indentation.
829 * i386-sol2-nat.c: Fix indentation.
830 * i386-tdep.c: Fix indentation.
831 * i386-tdep.h: Fix indentation.
832 * i386-windows-tdep.c: Fix indentation.
833 * i387-tdep.c: Fix indentation.
834 * i387-tdep.h: Fix indentation.
835 * ia64-libunwind-tdep.c: Fix indentation.
836 * ia64-libunwind-tdep.h: Fix indentation.
837 * ia64-linux-nat.c: Fix indentation.
838 * ia64-linux-tdep.c: Fix indentation.
839 * ia64-tdep.c: Fix indentation.
840 * ia64-tdep.h: Fix indentation.
841 * ia64-vms-tdep.c: Fix indentation.
842 * infcall.c: Fix indentation.
843 * infcmd.c: Fix indentation.
844 * inferior.c: Fix indentation.
845 * infrun.c: Fix indentation.
846 * iq2000-tdep.c: Fix indentation.
847 * language.c: Fix indentation.
848 * linespec.c: Fix indentation.
849 * linux-fork.c: Fix indentation.
850 * linux-nat.c: Fix indentation.
851 * linux-tdep.c: Fix indentation.
852 * linux-thread-db.c: Fix indentation.
853 * lm32-tdep.c: Fix indentation.
854 * m2-lang.c: Fix indentation.
855 * m2-typeprint.c: Fix indentation.
856 * m2-valprint.c: Fix indentation.
857 * m32c-tdep.c: Fix indentation.
858 * m32r-linux-tdep.c: Fix indentation.
859 * m32r-tdep.c: Fix indentation.
860 * m68hc11-tdep.c: Fix indentation.
861 * m68k-bsd-nat.c: Fix indentation.
862 * m68k-linux-nat.c: Fix indentation.
863 * m68k-linux-tdep.c: Fix indentation.
864 * m68k-tdep.c: Fix indentation.
865 * machoread.c: Fix indentation.
866 * macrocmd.c: Fix indentation.
867 * macroexp.c: Fix indentation.
868 * macroscope.c: Fix indentation.
869 * macrotab.c: Fix indentation.
870 * macrotab.h: Fix indentation.
871 * main.c: Fix indentation.
872 * mdebugread.c: Fix indentation.
873 * mep-tdep.c: Fix indentation.
874 * mi/mi-cmd-catch.c: Fix indentation.
875 * mi/mi-cmd-disas.c: Fix indentation.
876 * mi/mi-cmd-env.c: Fix indentation.
877 * mi/mi-cmd-stack.c: Fix indentation.
878 * mi/mi-cmd-var.c: Fix indentation.
879 * mi/mi-cmds.c: Fix indentation.
880 * mi/mi-main.c: Fix indentation.
881 * mi/mi-parse.c: Fix indentation.
882 * microblaze-tdep.c: Fix indentation.
883 * minidebug.c: Fix indentation.
884 * minsyms.c: Fix indentation.
885 * mips-linux-nat.c: Fix indentation.
886 * mips-linux-tdep.c: Fix indentation.
887 * mips-nbsd-tdep.c: Fix indentation.
888 * mips-tdep.c: Fix indentation.
889 * mn10300-linux-tdep.c: Fix indentation.
890 * mn10300-tdep.c: Fix indentation.
891 * moxie-tdep.c: Fix indentation.
892 * msp430-tdep.c: Fix indentation.
893 * namespace.h: Fix indentation.
894 * nat/fork-inferior.c: Fix indentation.
895 * nat/gdb_ptrace.h: Fix indentation.
896 * nat/linux-namespaces.c: Fix indentation.
897 * nat/linux-osdata.c: Fix indentation.
898 * nat/netbsd-nat.c: Fix indentation.
899 * nat/x86-dregs.c: Fix indentation.
900 * nbsd-nat.c: Fix indentation.
901 * nbsd-tdep.c: Fix indentation.
902 * nios2-linux-tdep.c: Fix indentation.
903 * nios2-tdep.c: Fix indentation.
904 * nto-procfs.c: Fix indentation.
905 * nto-tdep.c: Fix indentation.
906 * objfiles.c: Fix indentation.
907 * objfiles.h: Fix indentation.
908 * opencl-lang.c: Fix indentation.
909 * or1k-tdep.c: Fix indentation.
910 * osabi.c: Fix indentation.
911 * osabi.h: Fix indentation.
912 * osdata.c: Fix indentation.
913 * p-lang.c: Fix indentation.
914 * p-typeprint.c: Fix indentation.
915 * p-valprint.c: Fix indentation.
916 * parse.c: Fix indentation.
917 * ppc-linux-nat.c: Fix indentation.
918 * ppc-linux-tdep.c: Fix indentation.
919 * ppc-nbsd-nat.c: Fix indentation.
920 * ppc-nbsd-tdep.c: Fix indentation.
921 * ppc-obsd-nat.c: Fix indentation.
922 * ppc-ravenscar-thread.c: Fix indentation.
923 * ppc-sysv-tdep.c: Fix indentation.
924 * ppc64-tdep.c: Fix indentation.
925 * printcmd.c: Fix indentation.
926 * proc-api.c: Fix indentation.
927 * producer.c: Fix indentation.
928 * producer.h: Fix indentation.
929 * prologue-value.c: Fix indentation.
930 * prologue-value.h: Fix indentation.
931 * psymtab.c: Fix indentation.
932 * python/py-arch.c: Fix indentation.
933 * python/py-bpevent.c: Fix indentation.
934 * python/py-event.c: Fix indentation.
935 * python/py-event.h: Fix indentation.
936 * python/py-finishbreakpoint.c: Fix indentation.
937 * python/py-frame.c: Fix indentation.
938 * python/py-framefilter.c: Fix indentation.
939 * python/py-inferior.c: Fix indentation.
940 * python/py-infthread.c: Fix indentation.
941 * python/py-objfile.c: Fix indentation.
942 * python/py-prettyprint.c: Fix indentation.
943 * python/py-registers.c: Fix indentation.
944 * python/py-signalevent.c: Fix indentation.
945 * python/py-stopevent.c: Fix indentation.
946 * python/py-stopevent.h: Fix indentation.
947 * python/py-threadevent.c: Fix indentation.
948 * python/py-tui.c: Fix indentation.
949 * python/py-unwind.c: Fix indentation.
950 * python/py-value.c: Fix indentation.
951 * python/py-xmethods.c: Fix indentation.
952 * python/python-internal.h: Fix indentation.
953 * python/python.c: Fix indentation.
954 * ravenscar-thread.c: Fix indentation.
955 * record-btrace.c: Fix indentation.
956 * record-full.c: Fix indentation.
957 * record.c: Fix indentation.
958 * reggroups.c: Fix indentation.
959 * regset.h: Fix indentation.
960 * remote-fileio.c: Fix indentation.
961 * remote.c: Fix indentation.
962 * reverse.c: Fix indentation.
963 * riscv-linux-tdep.c: Fix indentation.
964 * riscv-ravenscar-thread.c: Fix indentation.
965 * riscv-tdep.c: Fix indentation.
966 * rl78-tdep.c: Fix indentation.
967 * rs6000-aix-tdep.c: Fix indentation.
968 * rs6000-lynx178-tdep.c: Fix indentation.
969 * rs6000-nat.c: Fix indentation.
970 * rs6000-tdep.c: Fix indentation.
971 * rust-lang.c: Fix indentation.
972 * rx-tdep.c: Fix indentation.
973 * s12z-tdep.c: Fix indentation.
974 * s390-linux-tdep.c: Fix indentation.
975 * score-tdep.c: Fix indentation.
976 * ser-base.c: Fix indentation.
977 * ser-mingw.c: Fix indentation.
978 * ser-uds.c: Fix indentation.
979 * ser-unix.c: Fix indentation.
980 * serial.c: Fix indentation.
981 * sh-linux-tdep.c: Fix indentation.
982 * sh-nbsd-tdep.c: Fix indentation.
983 * sh-tdep.c: Fix indentation.
984 * skip.c: Fix indentation.
985 * sol-thread.c: Fix indentation.
986 * solib-aix.c: Fix indentation.
987 * solib-darwin.c: Fix indentation.
988 * solib-frv.c: Fix indentation.
989 * solib-svr4.c: Fix indentation.
990 * solib.c: Fix indentation.
991 * source.c: Fix indentation.
992 * sparc-linux-tdep.c: Fix indentation.
993 * sparc-nbsd-tdep.c: Fix indentation.
994 * sparc-obsd-tdep.c: Fix indentation.
995 * sparc-ravenscar-thread.c: Fix indentation.
996 * sparc-tdep.c: Fix indentation.
997 * sparc64-linux-tdep.c: Fix indentation.
998 * sparc64-nbsd-tdep.c: Fix indentation.
999 * sparc64-obsd-tdep.c: Fix indentation.
1000 * sparc64-tdep.c: Fix indentation.
1001 * stabsread.c: Fix indentation.
1002 * stack.c: Fix indentation.
1003 * stap-probe.c: Fix indentation.
1004 * stubs/ia64vms-stub.c: Fix indentation.
1005 * stubs/m32r-stub.c: Fix indentation.
1006 * stubs/m68k-stub.c: Fix indentation.
1007 * stubs/sh-stub.c: Fix indentation.
1008 * stubs/sparc-stub.c: Fix indentation.
1009 * symfile-mem.c: Fix indentation.
1010 * symfile.c: Fix indentation.
1011 * symfile.h: Fix indentation.
1012 * symmisc.c: Fix indentation.
1013 * symtab.c: Fix indentation.
1014 * symtab.h: Fix indentation.
1015 * target-float.c: Fix indentation.
1016 * target.c: Fix indentation.
1017 * target.h: Fix indentation.
1018 * tic6x-tdep.c: Fix indentation.
1019 * tilegx-linux-tdep.c: Fix indentation.
1020 * tilegx-tdep.c: Fix indentation.
1021 * top.c: Fix indentation.
1022 * tracefile-tfile.c: Fix indentation.
1023 * tracepoint.c: Fix indentation.
1024 * tui/tui-disasm.c: Fix indentation.
1025 * tui/tui-io.c: Fix indentation.
1026 * tui/tui-regs.c: Fix indentation.
1027 * tui/tui-stack.c: Fix indentation.
1028 * tui/tui-win.c: Fix indentation.
1029 * tui/tui-winsource.c: Fix indentation.
1030 * tui/tui.c: Fix indentation.
1031 * typeprint.c: Fix indentation.
1032 * ui-out.h: Fix indentation.
1033 * unittests/copy_bitwise-selftests.c: Fix indentation.
1034 * unittests/memory-map-selftests.c: Fix indentation.
1035 * utils.c: Fix indentation.
1036 * v850-tdep.c: Fix indentation.
1037 * valarith.c: Fix indentation.
1038 * valops.c: Fix indentation.
1039 * valprint.c: Fix indentation.
1040 * valprint.h: Fix indentation.
1041 * value.c: Fix indentation.
1042 * value.h: Fix indentation.
1043 * varobj.c: Fix indentation.
1044 * vax-tdep.c: Fix indentation.
1045 * windows-nat.c: Fix indentation.
1046 * windows-tdep.c: Fix indentation.
1047 * xcoffread.c: Fix indentation.
1048 * xml-syscall.c: Fix indentation.
1049 * xml-tdesc.c: Fix indentation.
1050 * xstormy16-tdep.c: Fix indentation.
1051 * xtensa-config.c: Fix indentation.
1052 * xtensa-linux-nat.c: Fix indentation.
1053 * xtensa-linux-tdep.c: Fix indentation.
1054 * xtensa-tdep.c: Fix indentation.
1055
e1f57067
AB
10562020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1057 Craig Blackmore <craig.blackmore@embecosm.com>
1058
1059 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
1060 as an unsigned value.
1061
ae7754b2
TT
10622020-11-01 Tom Tromey <tom@tromey.com>
1063
1064 * dbxread.c (dbx_end_psymtab): Update.
1065 * dwarf2/read.c (process_psymtab_comp_unit_reader)
1066 (build_type_psymtabs_reader): Update.
1067 * xcoffread.c (xcoff_end_psymtab): Update.
1068 * ctfread.c (scan_partial_symbols): Update.
1069 * psymtab.c (sort_pst_symbols): Remove.
1070 (partial_symtab::end): Rename from end_psymtab_common. Inline
1071 sort_pst_symbols.
1072 * psympriv.h (struct partial_symtab) <end>: New method.
1073 (end_psymtab_common): Don't declare.
1074
0684bb51
TT
10752020-11-01 Tom Tromey <tom@tromey.com>
1076
1077 * symmisc.c (count_psyms): New function.
1078 (print_objfile_statistics): Use it.
1079 * psymtab.c (append_psymbol_to_list): Remove.
1080 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
1081 * objfiles.h (struct objstats) <n_psyms>: Remove.
1082
089002bb
TT
10832020-11-01 Tom Tromey <tom@tromey.com>
1084
1085 * dbxread.c (dbx_end_psymtab): Update.
1086 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
1087 (build_type_psymtabs_reader): Update.
1088 * xcoffread.c (xcoff_end_psymtab): Update.
1089 * ctfread.c (scan_partial_symbols): Update.
1090 * psympriv.h (end_psymtab_common): Update.
1091 * psymtab.c (end_psymtab_common): Remove objfile parameter.
1092 (sort_pst_symbols): Likewise.
1093
525454d6
TT
10942020-11-01 Tom Tromey <tom@tromey.com>
1095
1096 * dbxread.c (dbx_symfile_read): Update.
1097 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
1098 * xcoffread.c (xcoff_initial_scan): Update.
1099 * psympriv.h (init_psymbol_list): Don't declare.
1100 * psymtab.c (init_psymbol_list): Remove.
1101
60bd1d53
JB
11022020-11-01 Joel Brobecker <brobecker@adacore.com>
1103
1104 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
1105 gnat_encoded_fixed_type_info. Update all callers.
1106
db99d0d0
JB
11072020-11-01 Joel Brobecker <brobecker@adacore.com>
1108
1109 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
1110 line too long.
1111
75f24e86
JB
11122020-11-01 Joel Brobecker <brobecker@adacore.com>
1113
1114 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
1115 cast_from_fixed. Update all callers.
1116 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
1117 Update all callers.
1118 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
1119 Update all callers.
1120 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
1121 ada_scaling_factor.
1122 * ada-typeprint.c: Replace call to ada_scaling_factor by call
1123 to print_gnat_encoded_fixed_point_type.
1124 * ada-valprint.c: Likewise.
1125
4f0469cd
AB
11262020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1127
1128 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
1129 (debug_prefixed_printf): Add check of debug_displaced flag.
1130 * linux-nat.c (linux_nat_debug_printf): Add check of
1131 debug_linux_nat flag.
1132
17417fb0
SM
11332020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1134
1135 * infrun.c (infrun_debug_printf_1): Remove.
1136 (displaced_debug_printf_1): Remove.
1137 (stop_all_threads): Use debug_prefixed_printf.
1138 * infrun.h (infrun_debug_printf_1): Remove.
1139 (infrun_debug_printf): Use debug_prefixed_printf.
1140 (displaced_debug_printf_1): Remove.
1141 (displaced_debug_printf): Use debug_prefixed_printf.
1142 * linux-nat.c (linux_nat_debug_printf_1): Remove.
1143 (linux_nat_debug_printf): Use debug_prefixed_printf.
1144
ad6dba1c
SM
11452020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1146
1147 * configure: Re-generate.
1148 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
1149 AC_LANG_PROGRAM.
1150
b6fb30ed
SM
11512020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1152
1153 * configure: Re-generate.
1154
5164c117
SM
11552020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1156
1157 * configure: Re-generate.
1158
864ca435
SM
11592020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1160
1161 * configure: Re-generate.
1162
b9442ec1
SM
11632020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1164
1165 * configure: Re-generate.
1166
294f2697
SM
11672020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1168
1169 * acinclude.m4: Modernize.
1170 * configure: Re-generate.
1171
5593a99a
SM
11722020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1173
1174 * configure.ac: Modernize.
1175 * configure: Re-generate.
1176
e41fda1d
SM
11772020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1178
1179 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
1180 * configure: Re-generate.
1181 * configure.ac: Remove AM_PROG_CC_STDC.
1182
91e1a0ed
SM
11832020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1184
1185 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
1186 AC_CANONICAL_SYSTEM.
1187 * configure: Re-generate.
1188
136821d9
SM
11892020-10-30 Simon Marchi <simon.marchi@efficios.com>
1190
1191 * infrun.h (displaced_debug_printf): New macro. Replace
1192 displaced debug prints throughout to use it.
1193 (displaced_debug_printf_1): New declaration.
1194 (displaced_step_dump_bytes): Return string, remove ui_file
1195 parameter, update all callers.
1196 * infrun.c (displaced_debug_printf_1): New function.
1197 (displaced_step_dump_bytes): Return string, remove ui_file
1198 parameter
1199
aa2045e7
SM
12002020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
1201
1202 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
1203
b1ec2735
TT
12042020-10-30 Tom Tromey <tromey@adacore.com>
1205
1206 * Makefile.in (stamp-init): Depend on config.status.
1207
b78b3a29
TBA
12082020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1209
1210 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
1211
d70bdd3c
PA
12122020-10-30 Pedro Alves <pedro@palves.net>
1213
1214 * thread.c (lookup_selected_frame): Move ...
1215 * frame.c (lookup_selected_frame): ... here.
1216
79952e69
PA
12172020-10-30 Pedro Alves <pedro@palves.net>
1218
1219 * blockframe.c (block_innermost_frame): Use get_selected_frame.
1220 * frame.c
1221 (scoped_restore_selected_frame::scoped_restore_selected_frame):
1222 Use save_selected_frame. Save language as well.
1223 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
1224 Use restore_selected_frame, and restore language as well.
1225 (selected_frame_id, selected_frame_level): New.
1226 (selected_frame): Update comments.
1227 (save_selected_frame, restore_selected_frame): New.
1228 (get_selected_frame): Use lookup_selected_frame.
1229 (get_selected_frame_if_set): Delete.
1230 (select_frame): Record selected_frame_level and selected_frame_id.
1231 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
1232 fields.
1233 (get_selected_frame): Make 'message' parameter optional.
1234 (get_selected_frame_if_set): Delete declaration.
1235 (select_frame): Update comments.
1236 (save_selected_frame, restore_selected_frame)
1237 (lookup_selected_frame): Declare.
1238 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
1239 * infrun.c (struct infcall_control_state) <selected_frame_level>:
1240 New field.
1241 (save_infcall_control_state): Use save_selected_frame.
1242 (restore_selected_frame): Delete.
1243 (restore_infcall_control_state): Use restore_selected_frame.
1244 * stack.c (select_frame_command_core, frame_command_core): Use
1245 get_selected_frame.
1246 * thread.c (restore_selected_frame): Rename to ...
1247 (lookup_selected_frame): ... this and make extern. Select the
1248 current frame if the frame level is -1.
1249 (scoped_restore_current_thread::restore): Also restore the
1250 language.
1251 (scoped_restore_current_thread::~scoped_restore_current_thread):
1252 Don't try/catch.
1253 (scoped_restore_current_thread::scoped_restore_current_thread):
1254 Save the language as well. Use save_selected_frame.
1255
58103c33
SM
12562020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1257
1258 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
1259 documentation.
1260 * gdbarch.h: Re-generate.
1261
40a53766
SM
12622020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1263
1264 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
1265 parameter.
1266 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
1267 Likewise.
1268 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1269 Likewise.
1270 * arch-utils.c (default_displaced_step_hw_singlestep):
1271 Likewise.
1272 * arch-utils.h (default_displaced_step_hw_singlestep):
1273 Likewise.
1274 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
1275 Likewise.
1276 * s390-tdep.c (s390_displaced_step_hw_singlestep):
1277 Likewise.
1278 * gdbarch.c: Re-generate.
1279 * gdbarch.h: Re-generate.
1280 * infrun.c (resume_1): Adjust.
1281
8407f91b
TT
12822020-10-29 Tom Tromey <tom@tromey.com>
1283
1284 * progspace.c (program_space::~program_space): Don't call
1285 exec_close.
1286
5008b3b2
TT
12872020-10-29 Tom Tromey <tom@tromey.com>
1288
1289 * exec.c (exec_target::close): Don't change current program
1290 space.
1291
d9eebde0
TT
12922020-10-29 Tom Tromey <tom@tromey.com>
1293
1294 * symfile.c (add_symbol_file_command): Update.
1295 * exec.c (program_space::add_target_sections): Rename.
1296 * symfile-mem.c (symbol_file_add_from_memory): Update.
1297 * progspace.h (struct program_space) <add_target_sections>:
1298 Declare new overload.
1299 * exec.h (add_target_sections_of_objfile): Don't declare.
1300
3769e227
TT
13012020-10-29 Tom Tromey <tom@tromey.com>
1302
1303 * solib.c (solib_map_sections): Update.
1304 * exec.c (program_space::add_target_sections): Now a method.
1305 (exec_file_attach): Update.
1306 * exec.h (add_target_sections): Don't declare.
1307 * progspace.h (struct program_space) <add_target_sections>:
1308 Declare.
1309
2a3f84af
TT
13102020-10-29 Tom Tromey <tom@tromey.com>
1311
1312 * progspace.h (struct program_space) <remove_target_sections>:
1313 Declare.
1314 * exec.c (program_space::remove_target_sections): Now a method.
1315 * exec.h (remove_target_sections): Don't declare.
1316
004eecfd
TT
13172020-10-29 Tom Tromey <tom@tromey.com>
1318
1319 * inferior.c (delete_inferior): Update.
1320 * progspace.c (program_space::empty): Rename from
1321 program_space_empty_p. Return bool.
1322 * progspace.h (struct program_space) <empty>: New method.
1323 (program_space_empty_p): Don't declare.
1324
e39fb971
TT
13252020-10-29 Tom Tromey <tom@tromey.com>
1326
1327 * progspace.c (program_space::~program_space): Don't call
1328 clear_program_space_solib_cache.
1329 (program_space::clear_solib_cache): Rename from
1330 clear_solib_cache.
1331 * solib.c (handle_solib_event): Update.
1332 * progspace.h (struct program_space) <clear_solib_cache>: New
1333 method.
1334 (clear_program_space_solib_cache): Don't declare.
1335
a42d7dd8
TT
13362020-10-29 Tom Tromey <tom@tromey.com>
1337
1338 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1339 * target.c (info_target_command): Update.
1340 * symfile.c (syms_from_objfile_1, finish_new_objfile)
1341 (symbol_file_clear, reread_symbols): Update.
1342 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
1343 * stabsread.c (scan_file_globals): Update.
1344 * solib.c (update_solib_list): Update.
1345 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
1346 (svr4_fetch_objfile_link_map, enable_break)
1347 (svr4_relocate_main_executable)
1348 (svr4_iterate_over_objfiles_in_search_order): Update.
1349 * solib-frv.c (lm_base, enable_break)
1350 (frv_relocate_main_executable): Update.
1351 (main_got, frv_fdpic_find_canonical_descriptor): Update.
1352 (frv_fetch_objfile_link_map): Update.
1353 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
1354 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
1355 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
1356 * remote.c (remote_target::get_offsets): Update.
1357 (remote_target::start_remote)
1358 (extended_remote_target::post_attach): Update.
1359 * objfiles.c (entry_point_address_query): Update.
1360 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
1361 * minsyms.c (get_symbol_leading_char): Update.
1362 * frame.c (inside_main_func): Update.
1363 * progspace.h (symfile_objfile): Remove macro.
1364
19f6550e
TT
13652020-10-29 Tom Tromey <tom@tromey.com>
1366
1367 * exec.c (exec_file_attach): Update.
1368 * progspace.c (program_space::exec_close): Update.
1369 * progspace.h (struct program_space) <ebfd>: Now a
1370 gdb_bfd_ref_ptr.
1371 <set_exec_bfd>: Change argument type.
1372 <exec_bfd>: Update.
1373
7e10abd1
TT
13742020-10-29 Tom Tromey <tom@tromey.com>
1375
1376 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1377 * symfile.c (reread_symbols): Update.
1378 * symfile-mem.c (add_symbol_file_from_memory_command)
1379 (add_vsyscall_page): Update.
1380 * source-cache.c (source_cache::get_plain_source_lines): Update.
1381 * solib-svr4.c (find_program_interpreter, elf_locate_base)
1382 (svr4_current_sos_direct, svr4_exec_displacement)
1383 (svr4_relocate_main_executable): Update.
1384 (svr4_iterate_over_objfiles_in_search_order): Update.
1385 * solib-frv.c (enable_break2, enable_break): Update.
1386 * solib-dsbt.c (lm_base, enable_break): Update.
1387 * solib-darwin.c (find_program_interpreter)
1388 (darwin_solib_create_inferior_hook): Update.
1389 * sol-thread.c (rw_common, ps_pdmodel): Update.
1390 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
1391 * remote.c (compare_sections_command)
1392 (remote_target::trace_set_readonly_regions): Update.
1393 * remote-sim.c (get_sim_inferior_data)
1394 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
1395 (gdbsim_target_open, gdbsim_target::files_info): Update.
1396 * exec.h (exec_bfd): Remove macro.
1397 * progspace.c (initialize_progspace): Update.
1398 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
1399 Update.
1400 * nto-procfs.c (nto_procfs_target::post_attach)
1401 (nto_procfs_target::create_inferior): Update.
1402 * maint.c (maintenance_info_sections): Update.
1403 * linux-thread-db.c (thread_db_target::get_thread_local_address):
1404 Update.
1405 * infcmd.c (post_create_inferior): Update.
1406 * gcore.c (default_gcore_arch, default_gcore_target): Update.
1407 (objfile_find_memory_regions): Update.
1408 * exec.c (validate_exec_file, exec_file_attach)
1409 (exec_read_partial_read_only, print_section_info): Update.
1410 * corelow.c (core_target_open): Update.
1411 * corefile.c (reopen_exec_file, validate_files): Update.
1412 * arm-tdep.c (gdb_print_insn_arm): Update.
1413 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
1414 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
1415 methods.
1416
b55221ab
TT
14172020-10-29 Tom Tromey <tom@tromey.com>
1418
1419 * progspace.h (current_target_sections): Remove macro.
1420 * solib-svr4.c (scan_dyntag): Update.
1421 * solib-dsbt.c (scan_dyntag): Update.
1422 * exec.c (exec_target::close): Update.
1423 (add_target_sections, add_target_sections_of_objfile)
1424 (remove_target_sections, exec_target::get_section_table)
1425 (exec_target::files_info, set_section_command)
1426 (exec_set_section_address, exec_target::has_memory)
1427 (exec_target::has_memory): Update.
1428
5a36e715
TT
14292020-10-29 Tom Tromey <tom@tromey.com>
1430
1431 * source-cache.c (source_cache::get_plain_source_lines): Use
1432 current_program_space.
1433 * corefile.c (reopen_exec_file): Use current_program_space.
1434 * exec.c (exec_file_attach): Use current_program_space.
1435 * exec.h (exec_bfd_mtime): Remove.
1436
784c8592
TT
14372020-10-29 Tom Tromey <tom@tromey.com>
1438
1439 * gcore.c (default_gcore_mach): Remove.
1440 (create_gcore_bfd): Update.
1441
8a4f1402
TT
14422020-10-29 Tom Tromey <tom@tromey.com>
1443
1444 * progspace.c (program_space::exec_close): New method, from
1445 exec_close in exec.c.
1446 * exec.c (exec_close): Move to progspace.c.
1447 (exec_target::close, exec_file_attach): Update.
1448 * progspace.h (struct program_space) <exec_close>: Declare
1449 method.
1450
c20cb686
TT
14512020-10-29 Tom Tromey <tom@tromey.com>
1452
1453 * progspace.h (struct program_space) <exec_filename>: Rename from
1454 pspace_exec_filename. Now a unique_xmalloc_ptr.
1455 * inferior.c (print_selected_inferior): Update.
1456 (print_inferior): Update.
1457 * mi/mi-main.c (print_one_inferior): Update.
1458 * exec.h (exec_filename): Remove macro.
1459 * corefile.c (get_exec_file): Update.
1460 * exec.c (exec_close): Update.
1461 (exec_file_attach): Update.
1462 * progspace.c (clone_program_space): Update.
1463 (print_program_space): Update.
1464
6be2a9ab
TT
14652020-10-29 Tom Tromey <tom@tromey.com>
1466
1467 * target-section.h (struct target_section): Add constructor.
1468 * exec.c (build_section_table, add_target_sections_of_objfile):
1469 Update.
1470 * corelow.c (core_target::build_file_mappings): Update.
1471
cfaa8f76
TBA
14722020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1473
1474 PR gdb/19318
1475 * inferior.c (detach_inferior_command): Restore the current thread.
1476 (kill_inferior_command): Ditto.
1477
1b00ef06
TV
14782020-10-28 Tom de Vries <tdevries@suse.de>
1479
1480 PR symtab/26772
1481 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
1482 map, check it in the "best match" loop.
1483
7f40ce1a
SM
14842020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1485
1486 * m32c-tdep.c: Remove unused includes.
1487
5eb9e3f5
SM
14882020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1489
1490 * xtensa-tdep.c: Remove includes.
1491
b1d4d8d1
TBA
14922020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1493
1494 * breakpoint.c (struct condition_command_opts): New struct.
1495 (condition_command_option_defs): New static global.
1496 (make_condition_command_options_def_group): New function.
1497 (condition_completer): Update to consider the '-force' flag.
1498 (condition_command): Use gdb::option for the '-force' flag.
1499
bd24c5d6
TV
15002020-10-27 Tom de Vries <tdevries@suse.de>
1501
1502 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
1503 symbols in section check.
1504
61eb46a4
TV
15052020-10-27 Tom de Vries <tdevries@suse.de>
1506
1507 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
1508
733d554a
TBA
15092020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1510
1511 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
1512 * breakpoint.c: Update the help text of the 'condition' and 'break'
1513 commands.
1514 (set_breakpoint_condition): Take a new bool parameter
1515 to control whether condition definition should be forced even when
1516 the condition expression is invalid in all of the current locations.
1517 (condition_command): Update the call to 'set_breakpoint_condition'.
1518 (find_condition_and_thread): Take the "-force-condition" flag into
1519 account.
1520 * linespec.c (linespec_keywords): Add "-force-condition" as an
1521 element.
1522 (FORCE_KEYWORD_INDEX): New #define.
1523 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
1524 as a keyword.
1525 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
1526 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
1527 * python/py-breakpoint.c (bppy_set_condition): Ditto.
1528 * NEWS: Mention the changes to the 'break' and 'condition' commands.
1529
b5fa468f
TBA
15302020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1531
1532 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
1533 * breakpoint.c (set_breakpoint_location_condition): New function.
1534 (set_breakpoint_condition): Disable a breakpoint location if parsing
1535 the condition string gives an error.
1536 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
1537 (build_target_condition_list): Ditto.
1538 (build_target_command_list): Ditto.
1539 (build_bpstat_chain): Ditto.
1540 (print_one_breakpoint_location): Ditto.
1541 (print_one_breakpoint): Ditto.
1542 (breakpoint_1): Ditto.
1543 (bp_location::bp_location): Ditto.
1544 (locations_are_equal): Ditto.
1545 (update_breakpoint_locations): Ditto.
1546 (enable_disable_bp_num_loc): Ditto.
1547 (init_breakpoint_sal): Use set_breakpoint_location_condition.
1548 (find_condition_and_thread_for_sals): New static function.
1549 (create_breakpoint): Call find_condition_and_thread_for_sals.
1550 (location_to_sals): Call find_condition_and_thread_for_sals instead
1551 of find_condition_and_thread.
1552
1c47ec3e
TV
15532020-10-26 Tom de Vries <tdevries@suse.de>
1554
1555 * dwarf2/read.c (process_full_comp_unit): Call
1556 dwarf2_find_base_address.
1557
6390859c
TT
15582020-10-26 Tom Tromey <tromey@adacore.com>
1559
1560 * gdbtypes.c (create_range_type): Revert previous patch. Add
1561 comment.
1562
d744f0f9
PA
15632020-10-26 Pedro Alves <pedro@palves.net>
1564
1565 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
1566 (my_waitpid): Use gdb::handle_eintr.
1567
006811bc
SM
15682020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
1569
1570 * acinclude.m4: Update ptrace.m4 path.
1571 * ptrace.m4: Moved to gdbsupport.
1572
c75e31a1
SM
15732020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1574
1575 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
1576 instead of target_gdbarch.
1577
32495661
SM
15782020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1579
1580 * jit.c (jit_reader_load_command): Pass current inferior.
1581 (jit_inferior_init): Change parameter type to inferior, use it.
1582 (jit_inferior_created): Remove.
1583 (jit_inferior_created_hook): Pass inferior parameter down.
1584 (_initialize_jit): Use jit_inferior_created_hook instead of
1585 jit_inferior_created.
1586 * jit.h (jit_inferior_created_hook): Add inferior parameter.
1587 * infrun.c (follow_exec): Pass inferior to
1588 jit_inferior_created_hook.
1589
3f66685e
SM
15902020-10-24 Simon Marchi <simon.marchi@efficios.com>
1591
1592 * linux-thread-db.c (check_pid_namespace_match): Add inferior
1593 parameter and use it.
1594 (thread_db_inferior_created): Pass inferior argument.
1595
a0ff652f
SM
15962020-10-24 Simon Marchi <simon.marchi@efficios.com>
1597
1598 * aix-thread.c (aix_thread_inferior_created): Add inferior
1599 parameter.
1600 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
1601 * dummy-frame.c (cleanup_dummy_frames): Likewise.
1602 * jit.c (jit_inferior_created): Likewise.
1603 * linux-thread-db.c (thread_db_inferior_created): Likewise.
1604 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
1605 * observable.h (inferior_created): Likewise.
1606 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
1607 * symfile-mem.c (add_vsyscall_page): Likewise.
1608 * infcmd.c (post_create_inferior): Pass inferior argument.
1609
3c67532c
JB
16102020-10-24 Joel Brobecker <brobecker@adacore.com>
1611
1612 GDB 10.1 released.
1613
8747316e
JB
16142020-10-23 Joel Brobecker <brobecker@adacore.com>
1615
1616 * ada-typeprint.c (ada_print_type): Remove superfluous second call
1617 to ada_check_typedef.
1618
1a0ea399
AB
16192020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1620
1621 * f-exp.y (f_parse): Rename to...
1622 (f_language::parser): ...this.
1623 * f-lang.c (f_get_encoding): Rename to...
1624 (f_language::get_encoding): ...this.
1625 (f_op_print_tab): Rename to...
1626 (f_language::op_print_tab): ...this.
1627 (exp_descriptor_f): Rename to...
1628 (f_language::exp_descriptor_tab): ...this.
1629 (class f_language): Moved to f-lang.h.
1630 (f_language::language_arch_info): New function, moved out of class
1631 declaration.
1632 (f_language::search_name_hash): Likewise.
1633 (f_language::lookup_symbol_nonlocal): Likewise.
1634 (f_language::get_symbol_name_matcher_inner): Likewise.
1635 * f-lang.h: Add 'valprint.h' include.
1636 (class f_language): Moved here from f-lang.c.
1637 * f-typeprint.c (f_type_print_args): Delete commented out
1638 declaration.
1639 (f_print_typedef): Rename to...
1640 (f_language::print_typedef): ...this.
1641 (f_print_type): Rename to...
1642 (f_language::print_type): ...this.
1643 (f_type_print_varspec_prefix): Delete declaration and rename to...
1644 (f_language::f_type_print_varspec_prefix): ...this.
1645 (f_type_print_varspec_suffix): Delete declaration and rename to...
1646 (f_language::f_type_print_varspec_suffix): ...this.
1647 (f_type_print_base): Delete declaration and rename to...
1648 (f_language::f_type_print_base): ...this.
1649 * f-valprint.c (f_value_print_inner): Rename to...
1650 (f_language::value_print_inner): ...this.
1651 * parse.c: Delete 'f-lang.h' include.
1652
88cefd9b
AB
16532020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1654
1655 * language.h (language_defn::print_type): Add variable names in
1656 declaration, and update header comment.
1657
5399db93
AB
16582020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1659
1660 * ada-lang.c (ada_language::demangle): Rename to...
1661 (ada_language::demangle_symbol): ...this.
1662 * c-lang.c (cplus_language::demangle): Rename to...
1663 (cplus_language::demangle_symbol): ...this.
1664 * d-lang.c (d_language::demangle): Rename to...
1665 (d_language::demangle_symbol): ...this.
1666 * f-lang.c (f_language::demangle): Rename to...
1667 (f_language::demangle_symbol): ...this.
1668 * go-lang.c (go_language::demangle): Rename to...
1669 (go_language::demangle_symbol): ...this.
1670 * language.c (language_demangle): Update call to demangle_symbol.
1671 (auto_or_unknown_language::demangle): Rename to...
1672 (auto_or_unknown_language::demangle_symbol): ...this.
1673 * language.h (language_defn::demangle): Rename to...
1674 (language_defn::demangle_symbol): ...this.
1675 * objc-lang.c (objc_language::demangle): Rename to...
1676 (objc_language::demangle_symbol): ...this.
1677 * rust-lang.c (rust_language::demangle): Rename to...
1678 (rust_language::demangle_symbol): ...this.
1679
4b2f86ef
AB
16802020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1681
1682 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
1683 (iterate_over_file_blocks): Replace use of macro with the macros
1684 definition.
1685
e74b39de
AB
16862020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1687
1688 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
1689 * valprint.c (maybe_print_array_index): Replace use of macro with
1690 the macros definition.
1691
00c696a6
AB
16922020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1693
1694 * ada-lang.c (ada_language::print_array_index): Call value_print
1695 directly.
1696 * language.c (language_defn::print_array_index): Likewise.
1697 * language.h (LA_VALUE_PRINT): Delete.
1698 * valprint.c (value_print): Call value_print on the
1699 current_language directly.
1700
d3b67c56
AB
17012020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1702
1703 * language.h (LA_PRINT_TYPEDEF): Delete.
1704 * typeprint.c (typedef_print): Call print_typedef directly on the
1705 current_language object.
1706
790e2a12
AB
17072020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1708
1709 * m2-exp.y (m2_parse): Rename to...
1710 (m2_language::parser): ...this. Update function signature.
1711 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
1712 (m2_op_print): Rename to...
1713 (m2_language::op_print_tab): ...this, and make const.
1714 (exp_descriptor_modula2): Rename to...
1715 (m2_language::exp_descriptor_modula2): ...this.
1716 (class m2_language): Move to m2-lang.h.
1717 (m2_language::language_arch_info): New function, moved out of
1718 class declaration.
1719 (m2_language::printchar): New function, body from m2_printchar.
1720 (m2_language::printstr): New function, moved out of class
1721 declaration.
1722 (m2_language::emitchar): Likewise.
1723 * m2-lang.h (m2_parse): Delete declaration.
1724 (m2_print_typedef): Delete declaration.
1725 (m2_value_print_inner): Delete declaration.
1726 (class m2_language): Class declaration moved from m2-lang.c,
1727 larger functions are left in m2-lang.c.
1728 * m2-typeprint.c (m2_print_typedef): Rename to...
1729 (m2_language::print_typedef): ...this, and update function
1730 signature.
1731 * m2-valprint.c (m2_value_print_inner): Rename to...
1732 (m2_language::value_print_inner): ...this, replace use of
1733 LA_PRINT_STRING with a direct call to printstr member function,
1734 and update recursive call.
1735
b01175fc
AB
17362020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1737
1738 * language.c (default_is_string_type_p): Delete, implementation
1739 moved into auto_or_unknown_language::is_string_type_p.
1740 (unk_op_print_tab): Moved into
1741 auto_or_unknown_language::opcode_print_table.
1742 (unknown_language_arch_info): Delete, implementation moved into
1743 auto_or_unknown_language::language_arch_info.
1744 (class auto_or_unknown_language): New class, member functions
1745 copied from unknown_language class, with some updates.
1746 (class unknown_language): Most member functions moved into
1747 auto_or_unknown_language class. Inherit from
1748 auto_or_unknown_language class.
1749 (class auto_language): Inherit from auto_or_unknown_language.
1750 Delete most member functions.
1751
1a97fe8c
HD
17522020-10-22 Hannes Domani <ssbssa@yahoo.de>
1753
1754 * stabsread.c (read_member_functions): Remove gdb_assert.
1755
6b9d0dfd
HD
17562020-10-22 Hannes Domani <ssbssa@yahoo.de>
1757
1758 * gdbtypes.c (init_complex_type): Check target type name.
1759
4b4bb603
SM
17602020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1761
1762 * target-debug.h (target_debug_print_struct_target_ops_p):
1763 Remove.
1764 (target_debug_print_async_callback_ftype_p): Remove.
1765 (target_debug_print_struct_trace_state_variable_p): Remove.
1766 (target_debug_print_struct_traceframe_info_p): Remove.
1767 (target_debug_print_VEC__btrace_block_s__pp): Remove.
1768 (target_debug_print_enum_btrace_format): Remove.
1769 (target_debug_print_enum_info_proc_what): Remove.
1770 (target_debug_print_thread_info_pp): Remove.
1771
24f5300a
SM
17722020-10-22 Simon Marchi <simon.marchi@efficios.com>
1773
1774 * target.h (struct target_ops) <make_corefile_notes>:
1775 Change return type to unique pointer.
1776 * target.c (dummy_make_corefile_notes): Likewise.
1777 * exec.c (struct exec_target) <make_corefile_notes>:
1778 Likewise.
1779 (exec_target::make_corefile_notes): Likewise.
1780 * procfs.c (class procfs_target) <make_corefile_notes>:
1781 Likewise.
1782 (procfs_do_thread_registers): Adjust to unique pointer.
1783 (struct procfs_corefile_thread_data): Add constructor.
1784 <note_data>: Change type to unique pointer.
1785 (procfs_corefile_thread_callback): Adjust to unique pointer.
1786 (procfs_target::make_corefile_notes): Change return type to
1787 unique pointer.
1788 * target-delegates.c: Re-generate.
1789 * gcore.c (write_gcore_file_1): Adjust.
1790 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
1791 New.
1792
5fb4027f
TV
17932020-10-22 Tom de Vries <tdevries@suse.de>
1794
1795 * block.c (find_block_in_blockvector): Make sure the returned block
1796 contains pc.
1797
4a636814
SM
17982020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1799
1800 PR gdb/26693
1801 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
1802 parameter.
1803 (load_cu): Pass existing CU.
1804 (process_imported_unit_die): Likewise.
1805 (follow_die_offset): Likewise.
1806
1bd57575
LM
18072020-10-22 Luis Machado <luis.machado@linaro.org>
1808
1809 * corelow.c (core_target::xfer_partial): Also check for an empty
1810 m_core_unavailable_mappings vector.
1811
6b4c676c
AB
18122020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1813
1814 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
1815 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
1816 * f-exp.y (arglist): Allow for a series of subranges.
1817 (subrange): Add cases for subranges with strides.
1818 * f-lang.c (value_f90_subarray): Catch use of array strides and
1819 throw an error.
1820 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
1821
f2d8e4c5
AB
18222020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1823
1824 * expprint.c (print_subexp_standard): Change enum range_type to
1825 range_flag and rename variables to match.
1826 (dump_subexp_body_standard): Likewise.
1827 * expression.h (enum range_type): Rename to...
1828 (enum range_flag): ...this.
1829 (range_types): Rename to...
1830 (range_flags): ...this.
1831 * f-lang.c (value_f90_subarray): Change enum range_type to
1832 range_flag and rename variables to match.
1833 * parse.c (operator_length_standard): Likewise.
1834 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
1835 range_type to range_flag.
1836 * rust-lang.c (rust_evaluate_funcall): Likewise.
1837 (rust_range): Likewise.
1838 (rust_compute_range): Likewise.
1839 (rust_subscript): Likewise.
1840
2f1b18db
AB
18412020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1842
1843 * expprint.c (print_subexp_standard): Update to reflect changes to
1844 enum range_type.
1845 (dump_subexp_body_standard): Likewise.
1846 * expression.h (enum range_type): Convert to a bit field enum, and
1847 make the enum unsigned.
1848 * f-exp.y (subrange): Update to reflect changes to enum
1849 range_type.
1850 * f-lang.c (value_f90_subarray): Likewise.
1851 * parse.c (operator_length_standard): Likewise.
1852 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
1853 * rust-lang.c (rust_range): Likewise.
1854 (rust_compute_range): Likewise.
1855 (rust_subscript): Likewise.
1856
a46d1843
SM
18572020-10-21 Simon Marchi <simon.marchi@efficios.com>
1858
1859 * infrun.c (displaced_step_in_progress_thread): Fix comment.
1860 (displaced_step_in_progress): Fix comment.
1861
c21f37a8
SM
18622020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
1863
1864 * gdbarch.sh (make_corefile_notes): Return unique pointer.
1865 * gdbarch.c: Re-generate.
1866 * gdbarch.h: Re-generate.
1867 * gcore.c (write_gcore_file_1): Adjust.
1868 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
1869 constructor.
1870 <note_data>: Change type to unique pointer.
1871 <abort_iteration>: Change type to bool.
1872 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
1873 (fbsd_collect_thread_registers): Return void, adjust.
1874 (struct fbsd_corefile_thread_data): Add construtor.
1875 <note_data>: Change type to unique pointer.
1876 (fbsd_corefile_thread): Adjust.
1877 (fbsd_make_corefile_notes): Return unique pointer, adjust.
1878 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
1879 to unique pointer, adjust.
1880 (struct linux_collect_regset_section_cb_data): Add constructor.
1881 <note_data>: Change type to unique pointer.
1882 <abort_iteration>: Change type to bool.
1883 (linux_collect_thread_registers): Return void, adjust.
1884 (struct linux_corefile_thread_data): Add constructor.
1885 <note_data>: Change type to unique pointer.
1886 (linux_corefile_thread): Adjust.
1887 (linux_make_corefile_notes): Return unique pointer, adjust.
1888
07fbbd01
SM
18892020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1890
1891 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
1892 * gdbarch.c: Re-generate.
1893 * gdbarch.h: Re-generate.
1894 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
1895 bool.
1896 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1897 Likewise.
1898 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
1899 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
1900 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
1901 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
1902
39535193
SM
19032020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1904
1905 * gdbarch.sh: Make generated predicates return bool.
1906 * gdbarch.c: Re-generate.
1907 * gdbarch.h: Re-generate.
1908
ad523d01
TT
19092020-10-20 Tom Tromey <tom@tromey.com>
1910
1911 * varobj-iter.h (struct varobj_item): Remove typedef.
1912
c4464ade
SM
19132020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1914
1915 * infrun.c (currently_stepping): Change int to bool
1916 (maybe_software_singlestep): Likewise.
1917 (show_stop_on_solib_events): Likewise.
1918 (stepping_past_nonsteppable_watchpoint): Likewise.
1919 (displaced_step_in_progress_any_inferior): Likewise.
1920 (displaced_step_in_progress_thread): Likewise.
1921 (keep_going_stepped_thread): Likewise.
1922 (thread_still_needs_step_over): Likewise.
1923 (start_step_over): Likewise.
1924 (do_target_resume): Likewise.
1925 (resume_1): Likewise.
1926 (clear_proceed_status): Likewise.
1927 (thread_still_needs_step_over_bp): Likewise.
1928 (proceed): Likewise.
1929 (switch_back_to_stepped_thread): Likewise.
1930 (adjust_pc_after_break): Likewise.
1931 (stepped_in_from): Likewise.
1932 (handle_stop_requested): Likewise.
1933 (handle_syscall_event): Likewise.
1934 (handle_no_resumed): Likewise.
1935 (handle_inferior_event): Likewise.
1936 (finish_step_over): Likewise.
1937 (handle_signal_stop): Likewise.
1938 (process_event_stop_test): Likewise.
1939
2eb20436
SM
19402020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1941
1942 * infrun.c (get_displaced_stepping_state): Fix comment.
1943
e0c45ded
AS
19442020-10-20 Andreas Schwab <schwab@linux-m68k.org>
1945
1946 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
1947
22cc388e
TT
19482020-10-19 Tom Tromey <tromey@adacore.com>
1949
1950 PR tui/26719
1951 * tui/tui-winsource.h (struct tui_source_window_base)
1952 <refresh_window>: Rename from refresh_pad.
1953 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
1954 Rename from refresh_pad.
1955 (tui_source_window_base::show_source_content)
1956 (tui_source_window_base::do_scroll_horizontal): Update.
1957
3c6eb4d4
TBA
19582020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1959
1960 * thread.c (_initialize_thread): Fine-tune the help text of
1961 'info threads'.
1962
26703721
TBA
19632020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1964
1965 * frame.c: Remove the unused 'uinteger_option_def' type alias.
1966
61c26be8
MS
19672020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
1968
1969 * breakpoint.c (handle_jit_event): Add an argument, change how
1970 `jit_event_handler` is called.
1971
932539d7
TT
19722020-10-17 Tom Tromey <tom@tromey.com>
1973
1974 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
1975 (scan_xcoff_symtab): Update.
1976 * psymtab.h (class psymtab_storage) <global_psymbols,
1977 static_psymbols, current_global_psymbols,
1978 current_static_psymbols>: Remove.
1979 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
1980 (match_partial_symbol, lookup_partial_symbol): Update.
1981 (print_partial_symbols): Change parameters.
1982 (dump_psymtab, recursively_search_psymtabs)
1983 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
1984 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
1985 (concat): Remove.
1986 (end_psymtab_common): Simplify.
1987 (append_psymbol_to_list): Change parameters.
1988 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
1989 (init_psymbol_list): Simplify.
1990 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
1991 * psympriv.h (struct partial_symtab) <empty>: New method.
1992 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
1993 Remove.
1994 <global_psymbols, static_psymbols>: New members.
1995 <add_psymbol>: New methods.
1996 (add_psymbol_to_list): Don't declare.
1997 (psymbol_placement): Move earlier.
1998 * mdebugread.c (parse_partial_symbols): Update.
1999 (handle_psymbol_enumerators): Change parameters.
2000 (mdebug_expand_psymtab): Update.
2001 * dwarf2/read.c (process_psymtab_comp_unit_reader)
2002 (add_partial_symbol): Update.
2003 * dwarf2/index-write.c (write_psymbols): Change parameters.
2004 (write_one_signatured_type): Update.
2005 (recursively_count_psymbols): Update.
2006 (recursively_write_psymbols): Update.
2007 (class debug_names) <recursively_write_psymbols>: Update.
2008 <write_psymbols>: Change parameters.
2009 <write_one_signatured_type>: Update.
2010 * dbxread.c (read_dbx_symtab): Update.
2011 (dbx_end_psymtab): Use partial_symtab::empty.
2012 * ctfread.c (struct ctf_context) <pst>: New member.
2013 (create_partial_symtab): Set it.
2014 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
2015 (scan_partial_symbols): Use the psymtab's context. Update.
2016
cfabbd35
TT
20172020-10-17 Tom Tromey <tom@tromey.com>
2018
2019 * valprint.c (generic_value_print): Remove comment.
2020 * m2-valprint.c (m2_value_print_inner): Remove comment.
2021 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
2022 type.
2023
520596f2
TV
20242020-10-17 Tom de Vries <tdevries@suse.de>
2025
2026 PR symtab/26317
2027 * source.c (select_source_symtab): Handling sal.symtab == NULL for
2028 symbol main.
2029
76547ab3
TV
20302020-10-14 Tom de Vries <tdevries@suse.de>
2031
2032 PR gdb/26733
2033 * solib.c (solib_contains_address_p): Handle
2034 'solib->sections == nullptr'.
2035
d3a07122
SM
20362020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2037
2038 PR gdb/26642
2039 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
2040 target can't do async.
2041 * target.c (target_wait): Assert that we don't pass
2042 TARGET_WNOHANG to a target that can't async.
2043
1b71cfcf
KR
20442020-10-13 Kamil Rytarowski <n54@gmx.com>
2045
2046 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
2047 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
2048 * alpha-bsd-nat.c: Adjust include.
2049 * alpha-bsd-tdep.h: Adjust comment.
2050 * alpha-nbsd-tdep.c: Rename to ...
2051 * alpha-netbsd-tdep.c: ... this, adjust include.
2052 * amd64-nbsd-nat.c: Rename to ...
2053 * amd64-netbsd-nat.c: ... this, adjust include.
2054 * amd64-nbsd-tdep.c: Rename to ...
2055 * amd64-netbsd-tdep.c: ... this, adjust include.
2056 * amd64-tdep.h: Adjust include.
2057 * arm-nbsd-nat.c: Rename to ...
2058 * arm-netbsd-nat.c: ... this, adjust include.
2059 * arm-nbsd-tdep.c: Rename to ...
2060 * arm-netbsd-tdep.c: ... this, adjust include.
2061 * arm-nbsd-tdep.h: Rename to ...
2062 * arm-netbsd-tdep.h: ... this, adjust include.
2063 * configure.nat: Adjust file lists.
2064 * configure.tgt: Likewise.
2065 * hppa-nbsd-nat.c: Rename to ...
2066 * hppa-netbsd-nat.c: ... this, adjust include.
2067 * hppa-nbsd-tdep.c: Rename to ...
2068 * hppa-netbsd-tdep.c: ... this, adjust include.
2069 * i386-nbsd-nat.c: Rename to ...
2070 * i386-netbsd-nat.c: ... this, adjust include.
2071 * i386-nbsd-tdep.c: Rename to ...
2072 * i386-netbsd-tdep.c: ... this, adjust include.
2073 * m68k-bsd-nat.c: Adjust include.
2074 * mips-nbsd-nat.c: Rename to ...
2075 * mips-netbsd-nat.c: ... this, adjust include.
2076 * mips-nbsd-tdep.c: Rename to ...
2077 * mips-netbsd-tdep.c: ... this, adjust include.
2078 * mips-nbsd-tdep.h: Rename to ...
2079 * mips-netbsd-tdep.h: ... this.
2080 * nbsd-nat.c: Rename to ...
2081 * netbsd-nat.c: ... this, adjust include.
2082 * nbsd-nat.h: Rename to ...
2083 * netbsd-nat.h: ... this, adjust include.
2084 * nbsd-tdep.c: Rename to ...
2085 * netbsd-tdep.c: ... this, adjust include.
2086 * nbsd-tdep.h: Rename to ...
2087 * netbsd-tdep.h: ... this.
2088 * ppc-nbsd-nat.c: Rename to ...
2089 * ppc-netbsd-nat.c: ... this, adjust include.
2090 * ppc-nbsd-tdep.c: Rename to ...
2091 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
2092 * ppc-nbsd-tdep.h: Rename to ...
2093 * ppc-netbsd-tdep.h: ... this.
2094 * sh-nbsd-nat.c: Rename to ...
2095 * sh-netbsd-nat.c: ... this, adjust include.
2096 * sh-nbsd-tdep.c: Rename to ...
2097 * sh-netbsd-tdep.c: ... this, adjust include.
2098 * sparc-nbsd-nat.c: Rename to ...
2099 * sparc-netbsd-nat.c: ... this.
2100 * sparc-nbsd-tdep.c: Rename to ...
2101 * sparc-netbsd-tdep.c: ... this, adjust include.
2102 * sparc64-nbsd-nat.c: Rename to ...
2103 * sparc64-netbsd-nat.c: ... this.
2104 * sparc64-nbsd-tdep.c: Rename to ...
2105 * sparc64-netbsd-tdep.c: ... this, adjust include.
2106 * sparc64-tdep.h: Adjust comment.
2107 * vax-bsd-nat.c: Adjust include.
2108 * vax-nbsd-tdep.c: Rename to ...
2109 * vax-netbsd-tdep.c: ... this, adjust include.
2110
d7a78e5c
TT
21112020-10-12 Tom Tromey <tom@tromey.com>
2112
2113 * target.h (struct target_ops) <get_section_table>: Update.
2114 (target_get_section_table): Update.
2115 * target.c (target_get_section_table, target_section_by_addr)
2116 (memory_xfer_partial_1): Update.
2117 * target-section.h (target_section_table): Now an alias.
2118 * target-delegates.c: Rebuild.
2119 * target-debug.h (target_debug_print_target_section_table_p):
2120 Rename from target_debug_print_struct_target_section_table_p.
2121 * symfile.c (build_section_addr_info_from_section_table): Update.
2122 * solib.c (solib_map_sections, solib_contains_address_p): Update.
2123 * solib-svr4.c (scan_dyntag): Update.
2124 * solib-dsbt.c (scan_dyntag): Update.
2125 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2126 Update.
2127 * record-full.c (record_full_core_target::xfer_partial): Update.
2128 * progspace.h (struct program_space) <target_sections>: Update.
2129 * exec.h (print_section_info): Update.
2130 * exec.c (exec_target::close, build_section_table)
2131 (add_target_sections, add_target_sections_of_objfile)
2132 (remove_target_sections, exec_on_vfork)
2133 (section_table_available_memory)
2134 (section_table_xfer_memory_partial)
2135 (exec_target::get_section_table, exec_target::xfer_partial)
2136 (print_section_info, set_section_command)
2137 (exec_set_section_address, exec_target::has_memory): Update.
2138 * corelow.c (core_target::build_file_mappings)
2139 (core_target::xfer_partial, core_target::info_proc_mappings)
2140 (core_target::info_proc_mappings): Update.
2141 * bfd-target.c (class target_bfd): Update
2142
eda214ce
TT
21432020-10-12 Tom Tromey <tom@tromey.com>
2144
2145 * progspace.c (program_space::~program_space): Don't call
2146 clear_section_table.
2147 * exec.h (clear_section_table): Don't declare.
2148 * exec.c (exec_target::close): Update.
2149 (clear_section_table): Remove.
2150
91840ee3
TT
21512020-10-12 Tom Tromey <tom@tromey.com>
2152
2153 * exec.c (add_target_sections_of_objfile): Simplify.
2154
2d128614
TT
21552020-10-12 Tom Tromey <tom@tromey.com>
2156
2157 * solib.c (solib_map_sections): Update.
2158 * record-full.c (record_full_core_open_1): Update.
2159 * exec.h (build_section_table): Return a target_section_table.
2160 * exec.c (exec_file_attach): Update.
2161 (build_section_table): Return a target_section_table.
2162 * corelow.c (core_target::core_target): Update.
2163 * bfd-target.c (target_bfd::target_bfd): Update.
2164
bb2a6777
TT
21652020-10-12 Tom Tromey <tom@tromey.com>
2166
2167 * target.c (target_section_by_addr, memory_xfer_partial_1):
2168 Update.
2169 * target-section.h (struct target_section_table): Use
2170 std::vector.
2171 * symfile.h (build_section_addr_info_from_section_table): Take a
2172 target_section_table.
2173 * symfile.c (build_section_addr_info_from_section_table): Take a
2174 target_section_table.
2175 * solist.h (struct so_list) <sections>: Change type.
2176 <sections_end>: Remove.
2177 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
2178 (solib_contains_address_p): Update.
2179 * solib-svr4.c (scan_dyntag): Update.
2180 * solib-dsbt.c (scan_dyntag): Update.
2181 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2182 Update.
2183 * record-full.c (record_full_core_start, record_full_core_end):
2184 Remove.
2185 (record_full_core_sections): New global.
2186 (record_full_core_open_1, record_full_core_target::xfer_partial):
2187 Update.
2188 * exec.h (build_section_table, section_table_xfer_memory_partial)
2189 (add_target_sections): Take a target_section_table.
2190 * exec.c (exec_file_attach, clear_section_table): Update.
2191 (resize_section_table): Remove.
2192 (build_section_table, add_target_sections): Take a
2193 target_section_table.
2194 (add_target_sections_of_objfile, remove_target_sections)
2195 (exec_on_vfork): Update.
2196 (section_table_available_memory): Take a target_section_table.
2197 (section_table_read_available_memory): Update.
2198 (section_table_xfer_memory_partial): Take a target_section_table.
2199 (print_section_info, set_section_command)
2200 (exec_set_section_address, exec_target::has_memory): Update.
2201 * corelow.c (class core_target) <m_core_section_table,
2202 m_core_file_mappings>: Remove braces.
2203 <~core_target>: Remove.
2204 (core_target::core_target): Update.
2205 (core_target::~core_target): Remove.
2206 (core_target::build_file_mappings)
2207 (core_target::xfer_memory_via_mappings)
2208 (core_target::xfer_partial, core_target::info_proc_mappings):
2209 Update.
2210 * bfd-target.c (target_bfd::xfer_partial): Update.
2211 (target_bfd::target_bfd): Update.
2212 (target_bfd::~target_bfd): Remove.
2213
7b466b10
TT
22142020-10-12 Tom Tromey <tom@tromey.com>
2215
2216 * target.h (struct target_section, struct target_section_table):
2217 Move to target-section.h.
2218 * target-section.h: New file.
2219
87a37e5e
PA
22202020-10-12 Pedro Alves <pedro@palves.net>
2221
2222 PR exp/26602
2223 * valops.c (struct struct_field_searcher): New.
2224 (update_search_result): Rename to ...
2225 (struct_field_searcher::update_result): ... this. Simplify
2226 prototype. Record all found fields.
2227 (do_search_struct_field): Rename to ...
2228 (struct_field_searcher::search): ... this. Simplify prototype.
2229 Maintain stack of visited baseclass path. Call update_result for
2230 fields too. Keep searching fields in baseclasses instead of
2231 stopping at the first found field.
2232 (search_struct_field): Use struct_field_searcher. When looking
2233 for fields, report ambiguous access attempts.
2234
9370fd51
AB
22352020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
2236
2237 * frame.c (inside_main_func): Check full symbols as well as
2238 minimal symbols.
2239
59c8a30b
JB
22402020-10-09 Joel Brobecker <brobecker@adacore.com>
2241
2242 * ada-lang.c (advance_wild_match): Rewrite the function's
2243 description. Change the type of target0, t0 and t1 to char.
2244
7c184d33
TT
22452020-10-09 Tom Tromey <tromey@adacore.com>
2246
2247 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
2248
5c4258f4
TT
22492020-10-09 Tom Tromey <tromey@adacore.com>
2250
2251 * ada-lang.h (ada_encode): Return std::string.
2252 * ada-lang.c (ada_encode_1): Return std::string.
2253 (ada_encode): Likewise.
2254 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
2255 Update.
2256 * ada-exp.y (block_lookup, write_var_or_type): Update.
2257
3d87245c
HD
22582020-10-09 Hannes Domani <ssbssa@yahoo.de>
2259
2260 PR exp/26714
2261 * printcmd.c (print_formatted): Handle void results as
2262 unformatted prints.
2263
bbb826f5
AB
22642020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2265
2266 * arch/aarch32.c (aarch32_create_target_description): Release the
2267 target_desc_up as late as possible.
2268 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2269 * arch/amd64.c (amd64_create_target_description): Likewise.
2270 * arch/arc.c (arc_create_target_description): Return a
2271 target_desc_up, don't release it.
2272 * arch/arc.h (arc_create_target_description): Update declaration.
2273 (arc_lookup_target_description): Move target_desc_up into the
2274 cache, and return a borrowed pointer.
2275 * arch/arm.c (arm_create_target_description): Release the
2276 target_desc_up as late as possible.
2277 * arch/i386.c (i386_create_target_description): Likewise.
2278 * arch/riscv.h (riscv_create_target_description): Update
2279 declaration to match definition.
2280 * arch/tic6x.c (tic6x_create_target_description): Release the
2281 target_desc_up as late as possible.
2282
361cb219
AB
22832020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2284
2285 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
2286 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
2287
f5c4b229
JV
22882020-10-09 Jan Vrany <jan.vrany@labware.com>
2289
2290 * source.c (directory_command): Notify observers that "directories"
2291 parameter has changed.
2292
b2701685
TT
22932020-10-08 Tom Tromey <tom@tromey.com>
2294
2295 * cli/cli-cmds.c (print_disassembly): Style function name and
2296 addresses. Add _() wrappers.
2297
ada508b6
SV
22982020-10-08 Shahab Vahedi <shahab@synopsys.com>
2299
2300 * NEWS: Mention ARC support in GDBserver.
2301
51a948fd
AB
23022020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
2303
2304 * arch/aarch32.c (aarch32_create_target_description): Release
2305 unique_ptr returned from allocate_target_description.
2306 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2307 * arch/amd64.c (amd64_create_target_description): Likewise.
2308 * arch/arc.c (arc_create_target_description): Likewise.
2309 * arch/arm.c (arm_create_target_description): Likewise.
2310 * arch/i386.c (i386_create_target_description): Likewise.
2311 * arch/riscv.c (riscv_create_target_description): Update return
2312 type. Handle allocate_target_description returning a unique_ptr.
2313 (riscv_lookup_target_description): Update to handle unique_ptr.
2314 * arch/tic6x.c (tic6x_create_target_description): Release
2315 unique_ptr returned from allocate_target_description.
2316 * features/microblaze-with-stack-protect.c: Regenerate.
2317 * features/microblaze.c: Regenerate.
2318 * features/mips-dsp-linux.c: Regenerate.
2319 * features/mips-linux.c: Regenerate.
2320 * features/mips64-dsp-linux.c: Regenerate.
2321 * features/mips64-linux.c: Regenerate.
2322 * features/nds32.c: Regenerate.
2323 * features/nios2.c: Regenerate.
2324 * features/or1k.c: Regenerate.
2325 * features/rs6000/powerpc-32.c: Regenerate.
2326 * features/rs6000/powerpc-32l.c: Regenerate.
2327 * features/rs6000/powerpc-403.c: Regenerate.
2328 * features/rs6000/powerpc-403gc.c: Regenerate.
2329 * features/rs6000/powerpc-405.c: Regenerate.
2330 * features/rs6000/powerpc-505.c: Regenerate.
2331 * features/rs6000/powerpc-601.c: Regenerate.
2332 * features/rs6000/powerpc-602.c: Regenerate.
2333 * features/rs6000/powerpc-603.c: Regenerate.
2334 * features/rs6000/powerpc-604.c: Regenerate.
2335 * features/rs6000/powerpc-64.c: Regenerate.
2336 * features/rs6000/powerpc-64l.c: Regenerate.
2337 * features/rs6000/powerpc-7400.c: Regenerate.
2338 * features/rs6000/powerpc-750.c: Regenerate.
2339 * features/rs6000/powerpc-860.c: Regenerate.
2340 * features/rs6000/powerpc-altivec32.c: Regenerate.
2341 * features/rs6000/powerpc-altivec32l.c: Regenerate.
2342 * features/rs6000/powerpc-altivec64.c: Regenerate.
2343 * features/rs6000/powerpc-altivec64l.c: Regenerate.
2344 * features/rs6000/powerpc-e500.c: Regenerate.
2345 * features/rs6000/powerpc-e500l.c: Regenerate.
2346 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
2347 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
2348 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
2349 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
2350 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
2351 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
2352 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
2353 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
2354 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
2355 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
2356 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
2357 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
2358 * features/rs6000/powerpc-vsx32.c: Regenerate.
2359 * features/rs6000/powerpc-vsx32l.c: Regenerate.
2360 * features/rs6000/powerpc-vsx64.c: Regenerate.
2361 * features/rs6000/powerpc-vsx64l.c: Regenerate.
2362 * features/rs6000/rs6000.c: Regenerate.
2363 * features/rx.c: Regenerate.
2364 * features/s390-gs-linux64.c: Regenerate.
2365 * features/s390-linux32.c: Regenerate.
2366 * features/s390-linux32v1.c: Regenerate.
2367 * features/s390-linux32v2.c: Regenerate.
2368 * features/s390-linux64.c: Regenerate.
2369 * features/s390-linux64v1.c: Regenerate.
2370 * features/s390-linux64v2.c: Regenerate.
2371 * features/s390-te-linux64.c: Regenerate.
2372 * features/s390-tevx-linux64.c: Regenerate.
2373 * features/s390-vx-linux64.c: Regenerate.
2374 * features/s390x-gs-linux64.c: Regenerate.
2375 * features/s390x-linux64.c: Regenerate.
2376 * features/s390x-linux64v1.c: Regenerate.
2377 * features/s390x-linux64v2.c: Regenerate.
2378 * features/s390x-te-linux64.c: Regenerate.
2379 * features/s390x-tevx-linux64.c: Regenerate.
2380 * features/s390x-vx-linux64.c: Regenerate.
2381 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
2382 from allocate_target_description.
2383 * target-descriptions.c (allocate_target_description): Update
2384 return type.
2385 (print_c_tdesc::visit_pre): Release unique_ptr returned from
2386 allocate_target_description.
2387
485c47e5
TT
23882020-10-07 Tom Tromey <tromey@adacore.com>
2389
2390 * unittests/search-memory-selftests.c: New file.
2391 * Makefile.in (SELFTESTS_SRCS): Add
2392 unittests/search-memory-selftests.c.
2393
3a135a91
TT
23942020-10-07 Tom Tromey <tromey@adacore.com>
2395
2396 PR gdb/16930:
2397 * findcmd.c (_initialize_mem_search): Mention that the range is
2398 inclusive.
2399
4a72de73
TT
24002020-10-07 Tom Tromey <tromey@adacore.com>
2401
2402 * target.h (simple_search_memory): Don't declare.
2403 * target.c (simple_search_memory): Move to gdbsupport.
2404 (default_search_memory): Update.
2405 * remote.c (remote_target::search_memory): Update.
2406
a038ffd8
SM
24072020-10-07 Simon Marchi <simon.marchi@efficios.com>
2408
2409 * Makefile.in (COMPILE): Add CXXFLAGS.
2410 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
2411 (check-headers): Add CXXFLAGS.
2412
cc463201
AK
24132020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
2414
2415 * arc-linux-tdep.h: New file.
2416 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
2417 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
2418 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
2419 arc_linux_gregset, arc_linux_v2_regset,
2420 arc_linux_iterate_over_regset_sections,
2421 arc_linux_core_read_description): Implement.
2422 (arc_linux_init_osabi): Set iterate_over_regset_sections.
2423 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
2424 (arc_gdbarch_features_create): Add.
2425 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
2426
e4bd363f
SV
24272020-10-07 Shahab Vahedi <shahab@synopsys.com>
2428
2429 * arch/arc.h: Rename "arc_gdbarch_features" to
2430 "arc_arch_features".
2431 * arc-tdep.h: Likewise.
2432 * arc-tdep.c: Likewise.
2433
b68bef99
TBA
24342020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2435
2436 * infcmd.c (attach_command): Remove the redundant call to
2437 `clear_proceed_status`.
2438
4641551a
KR
24392020-10-07 Kamil Rytarowski <n54@gmx.com>
2440
2441 * nat/netbsd-nat.c (write_memory, read_memory): Update.
2442
91e5e8db
KR
24432020-10-07 Kamil Rytarowski <n54@gmx.com>
2444
2445 * nat/netbsd-nat.c (write_memory, read_memory): Add.
2446 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
2447 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
2448
64c03bdb
SM
24492020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
2450
2451 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
2452 (_initialize_break_catch_sig): Don't allocate array.
2453
31a8f60f
AB
24542020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
2455
2456 * symtab.c (find_pc_line): Return unmapped addresses when the
2457 requested address is also unmapped.
2458
9e6dbd8b
SM
24592020-10-05 Simon Marchi <simon.marchi@efficios.com>
2460
2461 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
2462 tui/tui-out.h.
2463
a1d217e8
SM
24642020-10-05 Simon Marchi <simon.marchi@efficios.com>
2465
2466 * amd64-windows-tdep.c (amd64_windows_return_value): Use
2467 type::is_vector instead of TYPE_VECTOR.
2468
7d144117
SM
24692020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
2470
2471 * auto-load.c (auto_load_objfile_script_1): Don't use
2472 debugfile_holder as temporary variable when stripping drive
2473 letter.
2474
cd096ec8
HD
24752020-10-05 Hannes Domani <ssbssa@yahoo.de>
2476
2477 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
2478 Add TYPE_CODE_COMPLEX.
2479 (amd64_windows_return_value): Fix types returned via XMM0.
2480
b58e7f72
AH
24812020-10-05 Alan Hayward <alan.hayward@arm.com>
2482
2483 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
2484 AArch64/ARM maintainers.
2485
8d378f27
SM
24862020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
2487
2488 * NEWS: Mention set/show debug event-loop.
2489
d5519913
TT
24902020-10-02 Tom Tromey <tromey@adacore.com>
2491
2492 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
2493 REG_EXTENDED.
2494
18b67edc
SM
24952020-10-02 Simon Marchi <simon.marchi@efficios.com>
2496
2497 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
2498 * procfs.c (procfs_inferior_created): Remove.
2499 (_initialize_procfs): Don't register procfs_inferior_created.
2500
6b01403b
SM
25012020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2502
2503 * async-event.c (invoke_async_signal_handlers): Add debug
2504 print.
2505 (check_async_event_handlers): Likewise.
2506 * event-top.c (show_debug_event_loop): New function.
2507 (_initialize_event_top): Register "set debug event-loop"
2508 setting.
2509
ba988419
SM
25102020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2511
2512 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
2513 * debug.h: Remove.
2514 * infrun.c: Include gdbsupport/common-debug.h.
2515 * linux-nat.c: Likewise.
2516
db20ebdf
SM
25172020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2518
2519 * async-event.h (create_async_signal_handler): Add name
2520 parameter.
2521 (create_async_event_handler): Likewise.
2522 * async-event.c (struct async_signal_handler) <name>: New field.
2523 (struct async_event_handler) <name>: New field.
2524 (create_async_signal_handler): Assign name.
2525 (create_async_event_handler): Assign name.
2526 * event-top.c (async_init_signals): Pass name when creating
2527 handler.
2528 * infrun.c (_initialize_infrun): Likewise.
2529 * record-btrace.c (record_btrace_push_target): Likewise.
2530 * record-full.c (record_full_open): Likewise.
2531 * remote-notif.c (remote_notif_state_allocate): Likewise.
2532 * remote.c (remote_target::open_1): Likewise.
2533 * tui/tui-win.c (tui_initialize_win): Likewise.
2534
2554f6f5
SM
25352020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2536
2537 * async-event.c (initialize_async_signal_handlers): Pass name to
2538 add_file_handler
2539 * event-top.c (ui_register_input_event_handler): Likewise.
2540 * linux-nat.c (linux_nat_target::async): Likewise.
2541 * run-on-main-thread.c (_initialize_run_on_main_thread):
2542 Likewise
2543 * ser-base.c (reschedule): Likewise.
2544 (ser_base_async): Likewise.
2545 * tui/tui-io.c: Likewise.
2546 * top.h (struct ui) <num>: New field.
2547 * top.c (highest_ui_num): New variable.
2548 (ui::ui): Initialize num.
2549
a7aba266
SM
25502020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2551
2552 * observable.h <inferior_created>: Remove parameters. Update all
2553 listeners.
2554 * inferior.h (post_create_inferior): Remove target parameter.
2555 Update all callers.
2556
048fde1e 25572020-10-02 Nitika Achra <Nitika.Achra@amd.com>
2558
2559 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
2560 and DW_MACRO_undef_strx.
2561 (dwarf_decode_macros): Likewise
2562 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
2563 which is the value of DW_AT_str_offsets_base.
2564 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
2565 str_offsets_base.
2566
064280be
KR
25672020-10-01 Kamil Rytarowski <n54@gmx.com>
2568
2569 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
2570
6ff33035
KR
25712020-10-01 Kamil Rytarowski <n54@gmx.com>
2572
2573 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
2574 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
2575
1eb6eb79
KR
25762020-10-01 Kamil Rytarowski <n54@gmx.com>
2577
2578 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
2579
95eb9e54
TV
25802020-09-30 Tom de Vries <tdevries@suse.de>
2581
2582 PR symtab/26683
2583 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
2584
cae21f8e
TT
25852020-09-30 Tom Tromey <tromey@adacore.com>
2586
2587 * dwarf2/read.c (handle_variant): Use constant_value.
2588
529908cb
TT
25892020-09-29 Tom Tromey <tom@tromey.com>
2590
2591 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
2592 (read_file_scope, dwarf2_get_pc_bounds)
2593 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
2594 (read_structure_type, handle_struct_member_die)
2595 (read_enumeration_type, read_array_type, read_set_type)
2596 (read_tag_pointer_type, read_tag_reference_type)
2597 (read_subroutine_type, read_base_type, read_subrange_type)
2598 (read_full_die_1, partial_die_info::read)
2599 (partial_die_info::read, by, new_symbol)
2600 (dwarf2_const_value_data, dwarf2_const_value_attr)
2601 (dump_die_shallow, dwarf2_fetch_constant_bytes)
2602 (prepare_one_comp_unit): Update.
2603 * dwarf2/attribute.h (DW_UNSND): Remove.
2604
c45bc3f8
TT
26052020-09-29 Tom Tromey <tom@tromey.com>
2606
2607 * dwarf2/read.c (read_func_scope, prototyped_function_p)
2608 (read_subroutine_type, partial_die_info::read)
2609 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
2610 (dwarf2_add_member_fn): Update.
2611 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
2612 * dwarf2/attribute.c (attribute::as_boolean): New method.
2613
23dca5c3
TT
26142020-09-29 Tom Tromey <tom@tromey.com>
2615
2616 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
2617 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
2618 method.
2619 * dwarf2/attribute.c (attribute::as_virtuality): New method.
2620
52c14d11
TT
26212020-09-29 Tom Tromey <tom@tromey.com>
2622
2623 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
2624 the attribute's form.
2625
e8e5c158
TT
26262020-09-29 Tom Tromey <tom@tromey.com>
2627
2628 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
2629 (dwarf2_add_member_fn): Update.
2630 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
2631 * dwarf2/attribute.c (attribute::defaulted): New method, from
2632 is_valid_DW_AT_defaulted.
2633
d4df075e
TT
26342020-09-29 Tom Tromey <tom@tromey.com>
2635
2636 * dwarf2/read.c (dw2_get_file_names_reader)
2637 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
2638 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
2639 (dwarf2_symbol_mark_computed): Use as_unsigned.
2640 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
2641 method.
2642 <form_is_section_offset>: Update comment.
2643
bf23a268
TT
26442020-09-29 Tom Tromey <tom@tromey.com>
2645
2646 * dwarf2/read.c (dwarf2_access_attribute): Rename from
2647 dwarf2_default_access_attribute. Look up attribute.
2648 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
2649 Update.
2650
7a5f294d
TT
26512020-09-29 Tom Tromey <tom@tromey.com>
2652
2653 * dwarf2/read.c (skip_one_die): Update.
2654 (read_full_die_1): Change how reprocessing is done.
2655 (partial_die_info::read): Update.
2656 (read_attribute_value): Remove need_reprocess parameter.
2657 (read_attribute): Likewise.
2658 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
2659 New method.
2660
36d378cf
TT
26612020-09-29 Tom Tromey <tom@tromey.com>
2662
2663 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
2664 (dwarf2_const_value_attr, dump_die_shallow)
2665 (dwarf2_fetch_constant_bytes): Update.
2666 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
2667 comment.
2668 <set_address>: New method.
2669 (DW_ADDR): Remove.
2670 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
2671 (attribute::as_string, attribute::as_address): Add assert.
2672
fe56917a
TT
26732020-09-29 Tom Tromey <tom@tromey.com>
2674
2675 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
2676 (read_attribute_reprocess, read_attribute_value): Update.
2677 (read_attribute): Clear requires_reprocessing.
2678 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
2679 form_requires_reprocessing>: New methods.
2680 <string_init>: Clear requires_reprocessing.
2681 <set_unsigned_reprocess>: New method.
2682 <name>: Shrink by one bit.
2683 <requires_reprocessing>: New member.
2684 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
2685 method.
2686
414ad644
TT
26872020-09-29 Tom Tromey <tom@tromey.com>
2688
2689 * dwarf2/read.c (read_attribute_value): Update.
2690 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
2691 set_unsigned>: New methods.
2692 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
2693
1bc397c5
TT
26942020-09-29 Tom Tromey <tom@tromey.com>
2695
2696 * dwarf2/read.c (get_alignment, read_array_order)
2697 (read_attribute_value, dwarf2_const_value_attr)
2698 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
2699 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
2700 New methods.
2701 (DW_SND): Remove.
2702
630ed6b9
TT
27032020-09-29 Tom Tromey <tom@tromey.com>
2704
2705 * dwarf2/read.c (read_attribute_value, lookup_die_type)
2706 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
2707 Update.
2708 * dwarf2/attribute.h (struct attribute) <as_signature,
2709 set_signature>: New methods.
2710 (DW_SIGNATURE): Remove.
2711
9d2246fc
TT
27122020-09-29 Tom Tromey <tom@tromey.com>
2713
2714 * dwarf2/read.c (read_call_site_scope)
2715 (handle_data_member_location, dwarf2_add_member_fn)
2716 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
2717 (partial_die_info::read, read_attribute_value)
2718 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
2719 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
2720 (dwarf2_symbol_mark_computed): Update.
2721 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
2722 methods.
2723 (DW_BLOCK): Remove.
2724 * dwarf2/attribute.c (attribute::form_is_block): Add
2725 DW_FORM_data16.
2726
c6481205
TT
27272020-09-29 Tom Tromey <tom@tromey.com>
2728
2729 * dwarf2/read.c (read_cutu_die_from_dwo)
2730 (read_attribute_reprocess, read_attribute_value, read_attribute)
2731 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
2732 (dwarf2_fetch_constant_bytes): Update.
2733 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
2734 <set_string_noncanonical, set_string_canonical>: New methods.
2735 <string_is_canonical>: Update comment.
2736 <canonical_string_p>: Add assert.
2737 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
2738 * dwarf2/attribute.c (attribute::form_is_string): New method.
2739 (attribute::string): Use it.
2740
3b64bf15
TT
27412020-09-29 Tom Tromey <tom@tromey.com>
2742
2743 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
2744 (dump_die_shallow): Use canonical_string_p.
2745 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
2746 method.
2747
2c830f54
TT
27482020-09-29 Tom Tromey <tom@tromey.com>
2749
2750 * dwarf2/read.c (partial_die_info::read)
2751 (dwarf2_const_value_attr, anonymous_struct_prefix, )
2752 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
2753 attribute::as_string.
2754
6c412691
TT
27552020-09-29 Tom Tromey <tom@tromey.com>
2756
2757 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
2758 DW_ADDR.
2759 (attribute::string): Don't use DW_STRING.
2760 (attribute::get_ref_die_offset): Don't use DW_UNSND.
2761 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
2762
95f982e5
TT
27632020-09-29 Tom Tromey <tom@tromey.com>
2764
2765 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
2766 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
2767 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
2768 * dwarf2/attribute.h (struct attribute): Rename methods.
2769 * dwarf2/attribute.c (attribute::as_address): Rename from
2770 value_as_address.
2771 (attribute::as_string): Rename from value_as_string.
2772
f800b00e
TT
27732020-09-29 Tom Tromey <tom@tromey.com>
2774
2775 * dwarf2/read.c (partial_die_info::read) <case
2776 DW_AT_linkage_name>: Use value_as_string.
2777 (dwarf2_string_attr): Use value_as_string.
2778 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
2779 method.
2780 * dwarf2/attribute.c (attribute::value_as_string): New method.
2781
de38d64a
PA
27822020-09-29 Pedro Alves <pedro@palves.net>
2783
2784 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
2785 defined before using '#pragma GCC diagnostic' instead of checking
2786 __clang__.
2787
9aed480c
TT
27882020-09-28 Tom Tromey <tom@tromey.com>
2789
2790 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
2791 (handle_signal_stop): Update.
2792 * procfs.c (procfs_target::insert_watchpoint): Update.
2793 * target.h (target_have_steppable_watchpoint): Now a function.
2794
8a3ecb79
TT
27952020-09-28 Tom Tromey <tom@tromey.com>
2796
2797 * infrun.c (set_schedlock_func): Update.
2798 * target.h (target_can_lock_scheduler): Now a function.
2799
55f6301a
TT
28002020-09-28 Tom Tromey <tom@tromey.com>
2801
2802 * inferior.h (class inferior) <has_execution>: Update.
2803 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2804 * valops.c (find_function_in_inferior)
2805 (value_allocate_space_in_inferior): Update.
2806 * top.c (kill_or_detach): Update.
2807 * target.c (target_preopen, set_target_permissions): Update.
2808 (target_has_execution_current): Remove.
2809 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
2810 Update.
2811 * solib.c (update_solib_list, reload_shared_libraries): Update.
2812 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
2813 * solib-dsbt.c (enable_break): Update.
2814 * score-tdep.c (score7_fetch_inst): Update.
2815 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
2816 Update.
2817 * remote.c (remote_target::start_remote)
2818 (remote_target::remote_check_symbols, remote_target::open_1)
2819 (remote_target::remote_detach_1, remote_target::verify_memory)
2820 (remote_target::xfer_partial, remote_target::read_description)
2821 (remote_target::get_min_fast_tracepoint_insn_len): Update.
2822 * record-full.c (record_full_open_1): Update.
2823 * record-btrace.c (record_btrace_target_open): Update.
2824 * objc-lang.c (lookup_objc_class, lookup_child_selector)
2825 (value_nsstring): Update.
2826 * linux-thread-db.c (add_thread_db_info)
2827 (thread_db_find_new_threads_silently, check_thread_db_callback)
2828 (try_thread_db_load_1, record_thread): Update.
2829 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
2830 Update.
2831 * linux-fork.c (checkpoint_command): Update.
2832 * infrun.c (set_non_stop, set_observer_mode)
2833 (check_multi_target_resumption, for_each_just_stopped_thread)
2834 (maybe_remove_breakpoints, normal_stop)
2835 (class infcall_suspend_state): Update.
2836 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
2837 (info_program_command, attach_command): Update.
2838 * infcall.c (call_function_by_hand_dummy): Update.
2839 * inf-loop.c (inferior_event_handler): Update.
2840 * gcore.c (gcore_command, derive_heap_segment): Update.
2841 * exec.c (exec_file_command): Update.
2842 * eval.c (evaluate_subexp): Update.
2843 * compile/compile.c (compile_to_object): Update.
2844 * cli/cli-dump.c (restore_command): Update.
2845 * breakpoint.c (update_watchpoint)
2846 (update_inserted_breakpoint_locations)
2847 (insert_breakpoint_locations, get_bpstat_thread): Update.
2848 * target.h (target_has_execution): Remove macro.
2849 (target_has_execution_current): Don't declare.
2850 (target_has_execution): Rename from target_has_execution_1. Add
2851 argument default.
2852
05374cfd
TT
28532020-09-28 Tom Tromey <tom@tromey.com>
2854
2855 * mi/mi-main.c (exec_reverse_continue)
2856 (mi_cmd_list_target_features): Update.
2857 * infrun.c (set_exec_direction_func): Update.
2858 * target.c (default_execution_direction): Update.
2859 * reverse.c (exec_reverse_once): Update.
2860 * target.h (target_can_execute_reverse): Now a function.
2861
9dccd06e
TT
28622020-09-28 Tom Tromey <tom@tromey.com>
2863
2864 * tui/tui-regs.c (tui_get_register)
2865 (tui_data_window::show_registers): Update.
2866 * thread.c (scoped_restore_current_thread::restore)
2867 (scoped_restore_current_thread::scoped_restore_current_thread):
2868 Update.
2869 * regcache-dump.c (regcache_print): Update.
2870 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2871 Update.
2872 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
2873 * mep-tdep.c (current_me_module, current_options): Update.
2874 * linux-thread-db.c (thread_db_load): Update.
2875 * infcmd.c (registers_info, info_vector_command)
2876 (info_float_command): Update.
2877 * ia64-tdep.c (ia64_frame_prev_register)
2878 (ia64_sigtramp_frame_prev_register): Update.
2879 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
2880 * gcore.c (derive_stack_segment): Update.
2881 * frame.c (get_current_frame, has_stack_frames): Update.
2882 * findvar.c (language_defn::read_var_value): Update.
2883 * arm-tdep.c (arm_pc_is_thumb): Update.
2884 * target.c (target_has_registers): Rename from
2885 target_has_registers_1.
2886 * target.h (target_has_registers): Remove macro.
2887 (target_has_registers): Rename from target_has_registers_1.
2888
841de120
TT
28892020-09-28 Tom Tromey <tom@tromey.com>
2890
2891 * windows-tdep.c (tlb_make_value): Update.
2892 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2893 * thread.c (scoped_restore_current_thread::restore)
2894 (scoped_restore_current_thread::scoped_restore_current_thread)
2895 (thread_command): Update.
2896 * stack.c (backtrace_command_1, frame_apply_level_command)
2897 (frame_apply_all_command, frame_apply_command): Update.
2898 * infrun.c (siginfo_make_value, restore_infcall_control_state):
2899 Update.
2900 * gcore.c (derive_stack_segment): Update.
2901 * frame.c (get_current_frame, has_stack_frames): Update.
2902 * auxv.c (info_auxv_command): Update.
2903 * ada-tasks.c (ada_build_task_list): Update.
2904 * target.c (target_has_stack): Rename from target_has_stack_1.
2905 * target.h (target_has_stack): Remove macro.
2906 (target_has_stack): Rename from target_has_stack_1.
2907
a739972c
TT
29082020-09-28 Tom Tromey <tom@tromey.com>
2909
2910 * target.c (target_has_memory): Rename from target_has_memory_1.
2911 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2912 * thread.c (scoped_restore_current_thread::restore)
2913 (scoped_restore_current_thread::scoped_restore_current_thread):
2914 Update.
2915 * frame.c (get_current_frame, has_stack_frames): Update.
2916 * target.h (target_has_memory): Remove macro.
2917 (target_has_memory): Rename from target_has_memory_1.
2918
5b8a4776
TT
29192020-09-28 Tom Tromey <tom@tromey.com>
2920
2921 * target.c (target_has_all_memory_1): Remove.
2922 * target.h (target_has_all_memory): Remove define.
2923 (target_has_all_memory_1): Don't declare.
2924
bd356ec6
SM
29252020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
2926
2927 * ser-base.c: Adjust comments formatting.
2928
2c72d5e5
TT
29292020-09-27 Tom Tromey <tom@tromey.com>
2930
2931 PR tui/25342:
2932 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
2933
35a98237
TT
29342020-09-27 Tom Tromey <tom@tromey.com>
2935
2936 PR tui/25342:
2937 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
2938
9e820dec
TT
29392020-09-27 Tom Tromey <tom@tromey.com>
2940
2941 * unittests/tui-selftests.c: Update.
2942 * tui/tui-winsource.h (struct tui_source_window_base)
2943 <extra_margin, show_line_number, refresh_pad>: New methods.
2944 <m_max_length, m_pad>: New members.
2945 (tui_copy_source_line): Update.
2946 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
2947 first_col, line_width, ndigits parameters. Add length.
2948 (tui_source_window_base::show_source_line): Write to pad. Line
2949 number now 0-based.
2950 (tui_source_window_base::refresh_pad): New method.
2951 (tui_source_window_base::show_source_content): Write to pad. Call
2952 refresh_pad.
2953 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
2954 not refill.
2955 (tui_source_window_base::update_exec_info): Call
2956 show_line_number.
2957 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
2958 method.
2959 <m_digits>: New member.
2960 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
2961 and m_max_length.
2962 (tui_source_window::show_line_number): New method.
2963 * tui/tui-io.h (tui_puts): Fix comment.
2964 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
2965 m_max_length.
2966
c15c15c8
TT
29672020-09-27 Tom Tromey <tom@tromey.com>
2968
2969 * tui/tui-winsource.c
2970 (tui_source_window_base::set_is_exec_point_at): Don't call
2971 show_source_line.
2972
149830c1
TT
29732020-09-27 Tom Tromey <tom@tromey.com>
2974
2975 * python/py-tui.c (class tui_py_window) <refresh_window>: New
2976 method.
2977 <erase>: Update.
2978 <cursor_x, cursor_y>: Remove.
2979 <m_inner_window>: New member.
2980 (tui_py_window::rerender): Create inner window.
2981 (tui_py_window::output): Write to inner window.
2982
8f9929bb
GR
29832020-09-26 Gareth Rees <grees@undo.io> (tiny change)
2984
2985 PR python/26586
2986 * cli/cli-script.c (execute_control_commands): don't set
2987 instream to nullptr here as this breaks the from_tty argument
2988 to gdb.execute in Python.
2989 (execute_user_command): set instream to nullptr here instead.
2990
956bdb59
SM
29912020-09-25 Simon Marchi <simon.marchi@efficios.com>
2992
2993 * infrun.h (infrun_debug_printf): Fix formatting.
2994 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
2995
3b93626b
SJ
29962020-09-25 Saagar Jha <saagar@saagarjha.com>
2997
2998 * compile/compile-object-load.h (struct munmap_list): Add
2999 explicitly-defined move constructor.
3000
b551a89f
TT
30012020-09-24 Tom Tromey <tromey@adacore.com>
3002
3003 PR tui/26638:
3004 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
3005 method.
3006 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
3007 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
3008 (tui_prev_win): Rewrite.
3009
99bb393f
HD
30102020-09-23 Hannes Domani <ssbssa@yahoo.de>
3011
3012 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
3013 in WOW64 processes as SIGINT.
3014 * nat/windows-nat.h: Make wow64_process a shared variable.
3015 * windows-nat.c: Remove static wow64_process variable.
3016
20a5fcbd
TT
30172020-09-23 Tom Tromey <tom@tromey.com>
3018
3019 PR symtab/25470:
3020 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
3021 offset and bit size.
3022 * printcmd.c (print_scalar_formatted): Handle zero-length
3023 integer.
3024 (print_scalar_formatted): Use bit_size_differs_p.
3025 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
3026 constant.
3027 (union type_specific): <int_stuff>: New member.
3028 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
3029 methods.
3030 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
3031 TYPE_SPECIFIC_FIELD.
3032 (recursive_dump_type, copy_type_recursive): Update.
3033 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
3034 DW_AT_data_bit_offset.
3035
bac51ab7
TT
30362020-09-23 Tom Tromey <tom@tromey.com>
3037
3038 * utils.h (class gdb_argv): Add move operators.
3039 <append>: New methods.
3040 * compile/compile.c (build_argc_argv): Remove.
3041 (compile_args_argc): Remove.
3042 (compile_args_argv): Change type.
3043 (set_compile_args): Simplify.
3044 (append_args): Remove.
3045 (filter_args): Remove argcp parameter.
3046 (get_args): Return gdb_argv. Simplify.
3047 (compile_to_object): Update.
3048
92677124
TT
30492020-09-23 Tom Tromey <tom@tromey.com>
3050
3051 * compile/compile-object-run.c (do_module_cleanup)
3052 <~do_module_cleanup> :Remove.
3053 (do_module_cleanup): Update.
3054 * compile/compile-object-load.h (struct munmap_list): Add move
3055 assignment operator.
3056 <source_file>: Now a std::string.
3057 <munmap_list>: Rename. No longer a pointer.
3058 * compile/compile-object-load.c (struct setup_sections_data): Add
3059 constructor.
3060 <setup_one_section>: Declare.
3061 <munmap_list>: Move earlier.
3062 <m_bfd>: New member.
3063 <m_last_size, m_last_section_first, m_last_prot,
3064 m_last_max_alignment>: Rename, add initializers where needed.
3065 (setup_sections_data::setup_one_section): Rename from
3066 setup_sections. Update.
3067 (compile_object_load): Update. Don't use bfd_map_over_sections.
3068
e616f60a
TT
30692020-09-23 Tom Tromey <tom@tromey.com>
3070
3071 * compile/compile-object-run.c (struct do_module_cleanup): Add
3072 parameters to constructor. Update destructor.
3073 <source_file, scope, scope_data, out_value_type, out_value_addr,
3074 munmap_list_head, objfile_name_string>: Remove.
3075 <module>: New member.
3076 (do_module_cleanup): Update.
3077 (compile_object_run): Update.
3078
e947a848
TT
30792020-09-23 Tom Tromey <tom@tromey.com>
3080
3081 * compile/compile.c (eval_compile_command): Update.
3082 * compile/compile-object-run.h (compile_object_run): Take a
3083 compile_module_up.
3084 * compile/compile-object-run.c (compile_object_run): Take a
3085 compile_module_up.
3086 * compile/compile-object-load.h (struct compile_module): Add
3087 constructor, destructor.
3088 (compile_module_up): New typedef.
3089 (compile_object_load): Return compile_object_up.
3090 * compile/compile-object-load.c (compile_object_load): Return
3091 compile_module_up.
3092
0dbf6ee6
TT
30932020-09-23 Tom Tromey <tom@tromey.com>
3094
3095 * compile/compile-object-run.c (struct do_module_cleanup): Add
3096 constructor, destructor.
3097 <objfile_name_string>: Don't use struct hack.
3098 (do_module_cleanup): Use delete.
3099 (compile_object_run): Use new.
3100
ebe824f5
TT
31012020-09-23 Tom Tromey <tom@tromey.com>
3102
3103 * compile/compile-cplus-types.c
3104 (compile_cplus_convert_struct_or_union): Use std::vector.
3105 (compile_cplus_convert_func): Likewise.
3106 * compile/compile-c-types.c (convert_func): Use std::vector.
3107
5dd918d9
TT
31082020-09-21 Tom Tromey <tromey@adacore.com>
3109
3110 * sparc-tdep.c (sparc32_skip_prologue): Use
3111 skip_prologue_using_sal.
3112
5486c517
TT
31132020-09-19 Tom Tromey <tom@tromey.com>
3114
3115 * symfile.c (add_section_size_callback): Remove.
3116 (load_one_section): Rename from load_section_callback. Change
3117 parameters.
3118 (generic_load): Use foreach.
3119
8a6bb1d1
TT
31202020-09-19 Tom Tromey <tom@tromey.com>
3121
3122 * exec.c (add_to_section_table): Remove.
3123 (build_section_table): Use foreach.
3124
08f93a1a
TT
31252020-09-19 Tom Tromey <tom@tromey.com>
3126
3127 * elfread.c (elf_locate_sections): Change parameters.
3128 (elf_symfile_read): Use foreach.
3129
03cd72b8
TT
31302020-09-19 Tom Tromey <tom@tromey.com>
3131
3132 * cli/cli-dump.c (struct callback_data): Remove.
3133 (restore_one_section): Rename from restore_section_callback.
3134 Change parameters.
3135 (restore_binary_file): Change parameters.
3136 (restore_command): Use foreach.
3137
f4f2b85f
TT
31382020-09-19 Tom Tromey <tom@tromey.com>
3139
3140 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
3141 (gcore_copy_callback): Likewise.
3142 (gcore_memory_sections): Use foreach.
3143
b35c1d1c
TT
31442020-09-19 Tom Tromey <tom@tromey.com>
3145
3146 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
3147 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
3148 parameters.
3149 (generic_elf_osabi_sniffer): Use foreach.
3150 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
3151 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
3152
5bb6e9dd
TT
31532020-09-19 Tom Tromey <tom@tromey.com>
3154
3155 * dwarf2/read.c (locate_dwz_sections): Change parameters.
3156 (dwarf2_get_dwz_file): Use foreach.
3157 (dwarf2_locate_dwo_sections): Change parameters.
3158 (open_and_init_dwo_file): Use foreach.
3159 (dwarf2_locate_common_dwp_sections): Change parameters.
3160 (open_and_init_dwp_file): Use foreach.
3161
ad7277da
TT
31622020-09-19 Tom Tromey <tom@tromey.com>
3163
3164 * symfile.h: (find_lowest_section): Don't declare.
3165 * symfile.c (find_lowest_section): Now static. Change
3166 parameters.
3167 (struct place_section_arg): Remove.
3168 (place_section): Change parameters.
3169 (addr_info_make_relative): Use foreach.
3170 (symfile_dummy_outputs): Remove.
3171 (default_symfile_relocate): Use foreach.
3172
cb814f2e
TT
31732020-09-19 Tom Tromey <tom@tromey.com>
3174
3175 * objfiles.c (add_to_objfile_sections): Rename from
3176 add_to_objfile_sections_full.
3177 (add_to_objfile_sections): Remove.
3178 (build_objfile_section_table): Use foreach.
3179
3cabfd26
TT
31802020-09-19 Tom Tromey <tom@tromey.com>
3181
3182 * stap-probe.c (get_stap_base_address_1): Remove.
3183 (get_stap_base_address): Use foreach.
3184
1ce51eb5
TT
31852020-09-19 Tom Tromey <tom@tromey.com>
3186
3187 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
3188 parameters.
3189 (gdb_bfd_close_or_warn): Use foreach.
3190
a190fabb
TT
31912020-09-19 Tom Tromey <tom@tromey.com>
3192
3193 * corelow.c (add_to_thread_list): Change parameters.
3194 (core_target_open): Use foreach.
3195
cafb0d81
TT
31962020-09-19 Tom Tromey <tom@tromey.com>
3197
3198 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
3199 existing function.
3200
c8d5abea
AB
32012020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3202
3203 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
3204 for arrays.
3205
6d816919
AB
32062020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3207
3208 * eval.c: Remove 'f-lang.h' include.
3209 (value_f90_subarray): Moved to f-lang.c.
3210 (eval_call): Renamed to...
3211 (evaluate_subexp_do_call): ...this, is no longer static, header
3212 comment moved into header file.
3213 (evaluate_funcall): Update call to eval_call.
3214 (skip_undetermined_arglist): Moved to f-lang.c.
3215 (fortran_value_subarray): Likewise.
3216 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3217 moved to evaluate_subexp_f.
3218 (calc_f77_array_dims): Moved to f-lang.c
3219 * expprint.c (print_subexp_funcall): New function.
3220 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3221 moved to print_subexp_f, OP_FUNCALL uses new function.
3222 (dump_subexp_body_funcall): New function.
3223 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
3224 moved to dump_subexp_f, OP_FUNCALL uses new function.
3225 * expression.h (evaluate_subexp_do_call): Declare.
3226 * f-lang.c (value_f90_subarray): Moved from eval.c.
3227 (skip_undetermined_arglist): Likewise.
3228 (calc_f77_array_dims): Likewise.
3229 (fortran_value_subarray): Likewise.
3230 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
3231 (operator_length_f): Likewise.
3232 (print_subexp_f): Likewise.
3233 (dump_subexp_body_f): Likewise.
3234 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
3235 declaration of this operation to here.
3236 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
3237 support moved to operator_length_f.
3238 * parser-defs.h (dump_subexp_body_funcall): Declare.
3239 (print_subexp_funcall): Declare.
3240 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
3241 fortran-operator.def.
3242
8c37706a
AB
32432020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3244
3245 * eval.c (fortran_value_subarray): New function, content is taken
3246 from...
3247 (evaluate_subexp_standard): ...here, in two places. Now arrays
3248 and strings both call the new function.
3249 (calc_f77_array_dims): Add header comment, handle strings.
3250
14f9473c
VC
32512020-09-18 Victor Collod <vcollod@nvidia.com>
3252
3253 PR gdb/26635
3254 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
3255 (i386_analyze_prologue): Call i386_skip_endbr.
3256
b60cea74
TT
32572020-09-18 Tom Tromey <tromey@adacore.com>
3258
3259 * windows-nat.c (struct windows_nat_target) <wait>: Update.
3260 (windows_nat_target::wait): Update.
3261 * target/wait.h (enum target_wait_flag): New. Use
3262 DEF_ENUM_FLAGS_TYPE.
3263 * target/target.h (target_wait): Change type of options.
3264 * target.h (target_options_to_string, default_target_wait):
3265 Update.
3266 (struct target_ops) <wait>: Change type of options.
3267 * target.c (target_wait, default_target_wait, do_option): Change
3268 type of "options".
3269 (target_options_to_string): Likewise.
3270 * target-delegates.c: Rebuild.
3271 * target-debug.h (target_debug_print_target_wait_flags): Rename
3272 from target_debug_print_options.
3273 * sol-thread.c (class sol_thread_target) <wait>: Update.
3274 (sol_thread_target::wait): Update.
3275 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
3276 (rs6000_nat_target::wait): Update.
3277 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
3278 Update.
3279 (remote_target::wait_ns, remote_target::wait_as): Change type of
3280 "options".
3281 (remote_target::wait): Update.
3282 * remote-sim.c (struct gdbsim_target) <wait>: Update.
3283 (gdbsim_target::wait): Update.
3284 * record-full.c (class record_full_base_target) <wait>: Update.
3285 (record_full_wait_1): Change type of "options".
3286 (record_full_base_target::wait): Update.
3287 * record-btrace.c (class record_btrace_target) <wait>: Update.
3288 (record_btrace_target::wait): Update.
3289 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
3290 Update.
3291 (ravenscar_thread_target::wait): Update.
3292 * procfs.c (class procfs_target) <wait>: Update.
3293 (procfs_target::wait): Update.
3294 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
3295 * obsd-nat.c (obsd_nat_target::wait): Update.
3296 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
3297 (nto_procfs_target::wait): Update.
3298 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
3299 * nbsd-nat.c (nbsd_wait): Change type of "options".
3300 (nbsd_nat_target::wait): Update.
3301 * linux-thread-db.c (class thread_db_target) <wait>: Update.
3302 (thread_db_target::wait): Update.
3303 * linux-nat.h (class linux_nat_target) <wait>: Update.
3304 * linux-nat.c (linux_nat_target::wait): Update.
3305 (linux_nat_wait_1): Update.
3306 * infrun.c (do_target_wait_1, do_target_wait): Change type of
3307 "options".
3308 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
3309 * inf-ptrace.c (inf_ptrace_target::wait): Update.
3310 * go32-nat.c (struct go32_nat_target) <wait>: Update.
3311 (go32_nat_target::wait): Update.
3312 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
3313 * gnu-nat.c (gnu_nat_target::wait): Update.
3314 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
3315 * fbsd-nat.c (fbsd_nat_target::wait): Update.
3316 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
3317 * darwin-nat.c (darwin_nat_target::wait): Update.
3318 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
3319 (bsd_uthread_target::wait): Update.
3320 * aix-thread.c (class aix_thread_target) <wait>: Update.
3321 (aix_thread_target::wait): Update.
3322
0295dde6
AB
33232020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
3324
3325 * compile/compile-object-run.c (create_copied_type_recursive): New
3326 function.
3327 (compile_object_run): Use new function.
3328
d3483b43
JT
33292020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
3330
3331 * NEWS: Mention x86_64 Cygwin core file support.
3332
e7d612ad
JT
33332020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3334
3335 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
3336 (core_process_module_section): Handle NOTE_INFO_MODULE64.
3337
aff9d387
JT
33382020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3339
62a5151b
JT
3340 * windows-tdep.h: Add prototypes.
3341 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
3342 (i386_windows_core_pid_to_str): Move and rename ...
3343 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
3344 (windows_core_pid_to_str): ... and here.
3345 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
3346
33472020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
3348 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
3349 (amd64_windows_init_abi_common): ... and register.
3350
7d155da3
JT
33512020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3352
3353 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
3354 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
3355
e8ef12b9
PA
33562020-09-18 Pedro Alves <pedro@palves.net>
3357
3358 PR gdb/26631
3359 * thread.c (thread_find_command): Switch inferior before calling
3360 target methods.
3361
c1e1314d
TT
33622020-09-17 Tom Tromey <tromey@adacore.com>
3363
3364 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
3365 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
3366 (tdesc_arch_data_up): New typedef.
3367 (tdesc_use_registers, tdesc_data_alloc): Update.
3368 (tdesc_data_cleanup): Don't declare.
3369 * target-descriptions.c (tdesc_data_alloc): Return a
3370 tdesc_arch_data_up.
3371 (tdesc_arch_data_deleter::operator()): Rename from
3372 tdesc_data_cleanup. Change argument type.
3373 (tdesc_use_registers): Change early_data to an rvalue reference.
3374 (tdesc_use_registers): Don't use delete.
3375 * sparc-tdep.c (sparc32_gdbarch_init): Update.
3376 * s390-tdep.c (s390_gdbarch_init): Update.
3377 * rx-tdep.c (rx_gdbarch_init): Update.
3378 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3379 * riscv-tdep.c (riscv_gdbarch_init): Update.
3380 * or1k-tdep.c (or1k_gdbarch_init): Update.
3381 * nios2-tdep.c (nios2_gdbarch_init): Update.
3382 * nds32-tdep.c (nds32_gdbarch_init): Update.
3383 * mips-tdep.c (mips_gdbarch_init): Update.
3384 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
3385 * m68k-tdep.c (m68k_gdbarch_init): Update.
3386 * i386-tdep.c (i386_gdbarch_init): Update.
3387 * arm-tdep.c (arm_gdbarch_init): Update.
3388 * arc-tdep.c (arc_tdesc_init): Update.
3389 (arc_gdbarch_init): Update.
3390 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
3391
0363df3d
HD
33922020-09-17 Hannes Domani <ssbssa@yahoo.de>
3393
3394 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
3395 for WOW64 processes.
3396
280a9412
TT
33972020-09-17 Tom Tromey <tom@tromey.com>
3398
3399 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
3400
6108fd18
TT
34012020-09-17 Tom Tromey <tom@tromey.com>
3402
3403 * value.c (preserve_values): Update.
3404 * python/py-type.c (save_objfile_types): Update.
3405 * guile/scm-type.c (save_objfile_types): Update.
3406 * gdbtypes.h (create_copied_types_hash): Return htab_up.
3407 * gdbtypes.c (create_copied_types_hash): Return htab_up.
3408 * compile/compile-object-run.c (compile_object_run): Update.
3409
fa9b1164
TT
34102020-09-17 Tom Tromey <tom@tromey.com>
3411
3412 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
3413 Remove.
3414 <m_table>: Now htab_up.
3415 * typeprint.c (typedef_hash_table::recursively_update)
3416 (typedef_hash_table::add_template_parameters)
3417 (typedef_hash_table::typedef_hash_table): Update.
3418 (typedef_hash_table::~typedef_hash_table): Remove.
3419 (typedef_hash_table::typedef_hash_table)
3420 (typedef_hash_table::find_global_typedef)
3421 (typedef_hash_table::find_typedef): Update.
3422
eb53f105
TT
34232020-09-17 Tom Tromey <tom@tromey.com>
3424
3425 * target-descriptions.c (tdesc_use_registers): Use htab_up.
3426
7a8a5d47
TT
34272020-09-17 Tom Tromey <tom@tromey.com>
3428
3429 * linespec.c (class decode_compound_collector)
3430 <~decode_compound_collector>: Remove.
3431 <m_unique_syms>: Now htab_up.
3432 (decode_compound_collector::operator ()): Update.
3433 (class symtab_collector) <~symtab_collector>: Remove.
3434 <m_symtab_table>: Now htab_up.
3435 (symtab_collector::operator ()): Update.
3436
99032cfc
TT
34372020-09-17 Tom Tromey <tom@tromey.com>
3438
3439 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
3440 (filename_seen_cache::clear): Update.
3441 (~filename_seen_cache): Remove.
3442 (filename_seen_cache::seen): Update.
3443 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
3444 htab_up.
3445 <~filename_seen_cache>: Remove.
3446 <traverse>: Update.
3447
32580f6d
TT
34482020-09-17 Tom Tromey <tom@tromey.com>
3449
3450 * completer.c (completion_tracker::discard_completions)
3451 (completion_tracker::~completion_tracker)
3452 (completion_tracker::maybe_add_completion)
3453 (completion_tracker::remove_completion)
3454 (completion_tracker::recompute_lowest_common_denominator)
3455 (completion_tracker::build_completion_result): Update.
3456 * completer.h (class completion_tracker) <have_completions>:
3457 Update.
3458 <m_entries_hash>: Now htab_up.
3459
c1fb9836
TT
34602020-09-17 Tom Tromey <tom@tromey.com>
3461
3462 * breakpoint.c (ambiguous_names_p): Use htab_up.
3463
88f07206
TT
34642020-09-17 Tom Tromey <tom@tromey.com>
3465
3466 * auto-load.c (struct auto_load_pspace_info)
3467 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
3468 <loaded_script_files, loaded_script_texts>: Change type to
3469 htab_up.
3470 (~auto_load_pspace_info) Remove.
3471 (init_loaded_scripts_info, maybe_add_script_file)
3472 (maybe_add_script_text, auto_load_info_scripts): Update.
3473
9519b2ee
TT
34742020-09-17 Tom Tromey <tromey@adacore.com>
3475
3476 * c-exp.y (name_obstack): Now static.
3477
d2cd4113
CC
34782020-09-17 Chungyi Chi <demonic@csie.io>
3479
3480 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
3481
b650a282
SM
34822020-09-16 Simon Marchi <simon.marchi@efficios.com>
3483
3484 * breakpoint.h (init_catchpoint): Change int parameter to bool.
3485 (add_solib_catchpoint): Likewise.
3486 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
3487 to bool.
3488 (add_solib_catchpoint): Change int parameter/variable to bool.
3489 (catch_load_or_unload): Likewise.
3490 (init_catchpoint): Likewise.
3491 (create_fork_vfork_event_catchpoint): Likewise.
3492 (catch_fork_command_1): Likewise.
3493 (catch_exec_command_1): Likewise.
3494
4d0bcfcf
SM
34952020-09-16 Simon Marchi <simon.marchi@efficios.com>
3496
3497 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
3498 Change instance_flags to m_instance_flags.
3499
fe830662
TT
35002020-09-16 Tom Tromey <tromey@adacore.com>
3501
3502 PR gdb/26598:
3503 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
3504
fe5ddfc3
JB
35052020-09-16 John Baldwin <jhb@FreeBSD.org>
3506
3507 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
3508 PL_FLAG_EXEC.
3509 (fbsd_nat_target::insert_exec_catchpoint)
3510 (fbsd_nat_target::remove_exec_catchpoint): Always define.
3511 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
3512 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
3513
e911c666
JB
35142020-09-16 John Baldwin <jhb@FreeBSD.org>
3515
3516 * configure.ac: Remove check for kinfo_getvmmap().
3517 * configure, config.in: Regenerate.
3518 * fbsd-nat.c (fbsd_read_mapping): Remove
3519 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
3520 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
3521 kinfo_get_vmmap() are always present.
3522
1f17d372
JB
35232020-09-16 John Baldwin <jhb@FreeBSD.org>
3524
3525 * fbsd-nat.c: Always include support for
3526 TARGET_OBJECT_SIGNAL_INFO.
3527
bcb1da7f
JB
35282020-09-16 John Baldwin <jhb@FreeBSD.org>
3529
3530 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
3531 sysctl and remove procfs fallback.
3532
5515f729
JB
35332020-09-16 John Baldwin <jhb@FreeBSD.org>
3534
3535 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
3536 * fbsd-nat.h: Likewise.
3537
da1df1db
TBA
35382020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3539
3540 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
3541 argument.
3542
0e25e767
AB
35432020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3544
3545 * ada-lang.c (ada_language_data): Delete.
3546 (ada_language): Remove references to ada_language_data.
3547 * c-lang.c (c_language_data): Delete.
3548 (c_language): Remove references to c_language_data.
3549 (cplus_language_data): Delete.
3550 (cplus_language): Remove references to cplus_language_data.
3551 (asm_language_data): Delete.
3552 (asm_language): Remove references to asm_language_data.
3553 (minimal_language_data): Delete.
3554 (minimal_language): Remove references to minimal_language_data.
3555 * d-lang.c (d_language_data): Delete.
3556 (d_language): Remove references to d_language_data.
3557 * f-lang.c (f_language_data): Delete.
3558 (f_language): Remove references to f_language_data.
3559 * go-lang.c (go_language_data): Delete.
3560 (go_language): Remove references to go_language_data.
3561 * language.c (unknown_language_data): Delete.
3562 (unknown_language): Remove references to unknown_language_data.
3563 (auto_language_data): Delete.
3564 (auto_language): Remove references to auto_language_data.
3565 * language.h (language_data): Delete struct.
3566 (language_defn): No longer inherit from language_data.
3567 * m2-lang.c (m2_language_data): Delete.
3568 (m2_language): Remove references to m2_language_data.
3569 * objc-lang.c (objc_language_data): Delete.
3570 (objc_language): Remove references to objc_language_data.
3571 * opencl-lang.c (opencl_language_data): Delete.
3572 (opencl_language): Remove references to opencl_language_data.
3573 * p-lang.c (pascal_language_data): Delete.
3574 (pascal_language): Remove references to pascal_language_data.
3575 * rust-lang.c (rust_language_data): Delete.
3576 (rust_language): Remove references to rust_language_data.
3577
b7c6e27d
AB
35782020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3579
3580 * ada-lang.c (ada_language_data): Remove la_op_print_tab
3581 initializer.
3582 (ada_language::opcode_print_table): New member function.
3583 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
3584 (c_language::opcode_print_table): New member function.
3585 (cplus_language_data): Remove la_op_print_tab initializer.
3586 (cplus_language::opcode_print_table): New member function.
3587 (asm_language_data): Remove la_op_print_tab initializer.
3588 (asm_language::opcode_print_table): New member function.
3589 (minimal_language_data): Remove la_op_print_tab initializer.
3590 (minimal_language::opcode_print_table): New member function.
3591 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
3592 (d_language::opcode_print_table): New member function.
3593 * expprint.c (print_subexp_standard): Update call to
3594 opcode_print_table.
3595 (op_string): Likewise.
3596 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
3597 (f_language::opcode_print_table): New member function.
3598 * go-lang.c (go_language_data): Remove la_op_print_tab
3599 initializer.
3600 (go_language::opcode_print_table): New member function.
3601 * language.c (unknown_language_data): Remove la_op_print_tab
3602 initializer.
3603 (unknown_language::opcode_print_table): New member function.
3604 (auto_language_data): Remove la_op_print_tab initializer.
3605 (auto_language::opcode_print_table): New member function.
3606 * language.h (language_data): Remove la_op_print_tab field.
3607 (language_defn::opcode_print_table): Declare new member function.
3608 * m2-lang.c (m2_language_data): Remove la_op_print_tab
3609 initializer.
3610 (m2_language::opcode_print_table): New member function.
3611 * objc-lang.c (objc_language_data): Remove la_op_print_tab
3612 initializer.
3613 (objc_language::opcode_print_table): New member function.
3614 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
3615 initializer.
3616 (opencl_language::opcode_print_table): New member function.
3617 * p-lang.c (pascal_language_data): Remove la_op_print_tab
3618 initializer.
3619 (pascal_language::opcode_print_table): New member function.
3620 * rust-lang.c (rust_language_data): Remove la_op_print_tab
3621 initializer.
3622 (rust_language::opcode_print_table): New member function.
3623
5aba6ebe
AB
36242020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3625
3626 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
3627 (ada_language::expression_ops): New member function.
3628 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
3629 (c_language::expression_ops): New member function.
3630 (cplus_language_data): Remove la_exp_desc initializer.
3631 (cplus_language::expression_ops): New member function.
3632 (asm_language_data): Remove la_exp_desc initializer.
3633 (asm_language::expression_ops): New member function.
3634 (minimal_language_data): Remove la_exp_desc initializer.
3635 (minimal_language::expression_ops): New member function.
3636 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
3637 (d_language::expression_ops): New member function.
3638 * eval.c (evaluate_subexp): Update call to expression_ops.
3639 * expprint.c (print_subexp): Likewise.
3640 (op_name): Likewise.
3641 (dump_subexp_body): Likewise.
3642 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
3643 (f_language::expression_ops): New member function.
3644 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
3645 (go_language::expression_ops): New member function.
3646 * language.c (language_defn::expression_ops): New function.
3647 (unknown_language_data): Remove la_exp_desc initializer.
3648 (auto_language_data): Likewise.
3649 * language.h (language_data): Remove la_exp_desc field.
3650 (language_defn::expression_ops): Declare new member function.
3651 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
3652 (m2_language::expression_ops): New member function.
3653 * objc-lang.c (objc_language_data): Remove la_exp_desc
3654 initializer.
3655 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
3656 initializer.
3657 (opencl_language::expression_ops): New member function.
3658 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
3659 * parse.c (operator_length): Update call to expression_ops.
3660 (exp_iterate): Likewise.
3661 * rust-lang.c (rust_language_data): Remove la_exp_desc
3662 initializer.
3663 (ruse_language::expression_ops): New member function.
3664
b63a3f3f
AB
36652020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3666
3667 * ada-lang.c (ada_language_data): Remove la_varobj_ops
3668 initializer.
3669 (ada_language::varobj_ops): New member function.
3670 * c-lang.c (c_language_data): Remove la_varobj_ops
3671 initializer.
3672 (cplus_language_data): Likewise.
3673 (cplus_language::varobj_ops): New member function.
3674 (asm_language_data): Remove la_varobj_ops initializer.
3675 (minimal_language_data): Likewise.
3676 * d-lang.c (d_language_data): Likewise.
3677 * f-lang.c (f_language_data): Likewise.
3678 * go-lang.c (go_language_data): Likewise.
3679 * language.c (language_defn::varobj_ops): New function.
3680 (unknown_language_data): Remove la_varobj_ops
3681 initializer.
3682 (auto_language_data): Likewise.
3683 * language.h (language_data): Remove la_varobj_ops field.
3684 (language_defn::varobj_ops): Declare new member function.
3685 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
3686 * objc-lang.c (objc_language_data): Likewise.
3687 * opencl-lang.c (opencl_language_data): Likewise.
3688 * p-lang.c (pascal_language_data): Likewise.
3689 * rust-lang.c (rust_language_data): Likewise.
3690 * varobj.c (varobj_create): Update call to varobj_ops.
3691 * varobj.h (default_varobj_ops): Delete define.
3692
1ac14a04
AB
36932020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3694
3695 * ada-lang.c (ada_language_data): Remove la_macro_expansion
3696 initializer.
3697 * c-lang.c (c_language_data): Likewise.
3698 (c_language::macro_expansion): New member function.
3699 (cplus_language_data): Likewise.
3700 (cplus_language::macro_expansion): New member function.
3701 (asm_language_data): Likewise.
3702 (asm_language::macro_expansion): New member function.
3703 (minimal_language_data): Likewise.
3704 (minimal_language::macro_expansion): New member function.
3705 * d-lang.c (d_language_data): Remove la_macro_expansion
3706 initializer.
3707 * f-lang.c (f_language_data): Likewise.
3708 * go-lang.c (go_language_data): Likewise.
3709 * language.c (unknown_language_data): Likewise.
3710 (auto_language_data): Likewise.
3711 * language.h (language_data): Remove la_macro_expansion field.
3712 (language_defn::macro_expansion): New member function.
3713 * m2-lang.c (m2_language_data): Remove la_macro_expansion
3714 initializer.
3715 * objc-lang.c (objc_language_data): Likewise.
3716 (objc_language::macro_expansion): New member function.
3717 * opencl-lang.c (opencl_language_data): Likewise.
3718 (opencl_language::macro_expansion): New member function.
3719 * p-lang.c (pascal_language_data): Remove la_macro_expansion
3720 initializer.
3721 * rust-lang.c (rust_language_data): Likewise.
3722 * symtab.c (default_collect_symbol_completion_matches_break_on):
3723 Update call to macro_expansion.
3724
3a3440fb
AB
37252020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3726
3727 * ada-lang.c (ada_language_data): Remove la_array_ordering
3728 initializer.
3729 * c-lang.c (c_language_data): Likewise.
3730 (cplus_language_data): Likewise.
3731 (asm_language_data): Likewise.
3732 (minimal_language_data): Likewise.
3733 * d-lang.c (d_language_data): Likewise.
3734 * dwarf2/read.c (read_array_order): Update for call to
3735 array_ordering.
3736 * f-lang.c (f_language_data): Remove la_array_ordering
3737 initializer.
3738 (f_language::array_ordering): New member function.
3739 * go-lang.c (go_language_data): Remove la_array_ordering
3740 initializer.
3741 * language.c (unknown_language_data): Likewise.
3742 (auto_language_data): Likewise.
3743 * language.h (language_data): Delete la_array_ordering field.
3744 (language_defn::array_ordering): New member function.
3745 * m2-lang.c (m2_language_data): Remove la_array_ordering
3746 initializer.
3747 * objc-lang.c (objc_language_data): Likewise.
3748 * opencl-lang.c (opencl_language_data): Likewise.
3749 * p-lang.c (pascal_language_data): Likewise.
3750 * rust-lang.c (rust_language_data): Likewise.
3751
0d201fa4
AB
37522020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3753
3754 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
3755 initializer.
3756 * c-lang.c (c_language_data): Likewise.
3757 (cplus_language_data): Likewise.
3758 (asm_language_data): Likewise.
3759 (minimal_language_data): Likewise.
3760 * d-lang.c (d_language_data): Likewise.
3761 * f-lang.c (f_language_data): Likewise.
3762 (f_language::case_sensitivity): New member function.
3763 * go-lang.c (go_language_data): Remove la_case_sensitivity
3764 initializer.
3765 * language.c (enum case_mode): Moved here from language.h.
3766 (case_mode): Make static.
3767 (show_case_command): Update for case_sensitivity being a method.
3768 (set_case_command): Likewise.
3769 (set_range_case): Likewise.
3770 (unknown_language_data): Remove la_case_sensitivity initializer.
3771 (auto_language_data): Likewise.
3772 * language.h (case_mode): Delete, move enum declaration to
3773 language.c.
3774 (language_data): Delete la_case_sensitivity field.
3775 (language_defn::case_sensitivity): New member function.
3776 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
3777 initializer.
3778 * objc-lang.c (objc_language_data): Likewise.
3779 * opencl-lang.c (opencl_language_data): Likewise.
3780 * p-lang.c (pascal_language_data): Likewise.
3781 * rust-lang.c (rust_language_data): Likewise.
3782
efdf6a73
AB
37832020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3784
3785 * ada-lang.c (ada_language_data): Remove la_range_check
3786 initializer.
3787 * c-lang.c (c_language_data): Likewise.
3788 (cplus_language_data): Likewise.
3789 (asm_language_data): Likewise.
3790 (minimal_language_data): Likewise.
3791 * d-lang.c (d_language_data): Likewise.
3792 * f-lang.c (f_language_data): Likewise.
3793 (f_language::range_checking_on_by_default): New member function.
3794 * go-lang.c (go_language_data): Remove la_range_check initializer.
3795 * language.c (enum range_mode): Moved here from language.h.
3796 (range_mode): Made static.
3797 (show_range_command): Update to use
3798 range_checking_on_by_default.
3799 (set_range_command): Likewise.
3800 (set_range_case): Likewise.
3801 (unknown_language_data): Remove la_range_check initializer.
3802 (auto_language_data): Likewise.
3803 * language.h (range_mode): Delete. Enum definition moved to
3804 language.c.
3805 (language_data): Remove la_range_check field.
3806 (language_defn::range_checking_on_by_default): New member
3807 function.
3808 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
3809 (m2_language::range_checking_on_by_default): New member function.
3810 * objc-lang.c (objc_language_data): Remove la_range_check
3811 initializer.
3812 * opencl-lang.c (opencl_language_data): Likewise.
3813 * p-lang.c (pascal_language_data): Likewise.
3814 (pascal_language::range_checking_on_by_default): New member
3815 function.
3816 * rust-lang.c (rust_language_data): Remove la_range_check
3817 initializer.
3818 (rust_language::range_checking_on_by_default): New member
3819 function.
3820
bf92aec5
AB
38212020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3822
3823 * dwarf2/read.c (dwarf2_physname): Remove special case for
3824 language_go.
3825 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
3826 member function.
3827
d3355e4d
AB
38282020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3829
3830 * ada-lang.c (ada_language_data): Remove
3831 la_store_sym_names_in_linkage_form_p initializer.
3832 (ada_language::store_sym_names_in_linkage_form_p): New member
3833 function.
3834 * c-lang.c (c_language_data): Remove
3835 la_store_sym_names_in_linkage_form_p initializer.
3836 (c_language::store_sym_names_in_linkage_form_p): New member
3837 function.
3838 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
3839 initializer.
3840 (asm_language_data): Likewise.
3841 (asm_language::store_sym_names_in_linkage_form_p): New member
3842 function.
3843 (minimal_language_data): Remove
3844 la_store_sym_names_in_linkage_form_p initializer.
3845 (minimal_language::store_sym_names_in_linkage_form_p): New member
3846 function.
3847 * d-lang.c (d_language_data): Remove
3848 la_store_sym_names_in_linkage_form_p initializer.
3849 * dwarf2/read.c (dwarf2_physname): Update call to
3850 store_sym_names_in_linkage_form_p.
3851 * f-lang.c (f_language_data): Remove
3852 la_store_sym_names_in_linkage_form_p initializer.
3853 * go-lang.c (go_language_data): Remove
3854 la_store_sym_names_in_linkage_form_p initializer.
3855 * language.c (unknown_language_data): Remove
3856 la_store_sym_names_in_linkage_form_p initializer.
3857 (unknown_language::store_sym_names_in_linkage_form_p): New member
3858 function.
3859 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
3860 initializer.
3861 (auto_language::store_sym_names_in_linkage_form_p): New member
3862 function.
3863 * language.h (language_data): Remove
3864 la_store_sym_names_in_linkage_form_p member variable.
3865 (language_defn::store_sym_names_in_linkage_form_p): New member
3866 function.
3867 * m2-lang.c (m2_language_data): Remove
3868 la_store_sym_names_in_linkage_form_p initializer.
3869 * objc-lang.c (objc_language_data): Likewise.
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
22c12a6c
AB
38742020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3875
3876 * ada-lang.c (ada_language_data): Remove string_lower_bound
3877 initializer.
3878 * c-lang.c (c_language_data): Likewise.
3879 (cplus_language_data): Likewise.
3880 (asm_language_data): Likewise.
3881 (minimal_language_data): Likewise.
3882 * d-lang.c (d_language_data): Likewise.
3883 * f-lang.c (f_language_data): Likewise.
3884 * go-lang.c (go_language_data): Likewise.
3885 * language.c (unknown_language_data): Likewise.
3886 (auto_language_data): Likewise.
3887 * language.h (language_data): Remove string_lower_bound field.
3888 (language_defn::string_lower_bound): New member function.
3889 * m2-lang.c (m2_language_data): Remove string_lower_bound
3890 initializer.
3891 (m2_language::string_lower_bound): New member function.
3892 * objc-lang.c (objc_language_data): Remove string_lower_bound
3893 initializer.
3894 * opencl-lang.c (opencl_language_data): Likewise.
3895 * p-lang.c (pascal_language_data): Likewise.
3896 * rust-lang.c (rust_language_data): Likewise.
3897 * valops.c (value_cstring): Update call to string_lower_bound.
3898 (value_string): Likewise.
3899 * value.c (allocate_repeated_value): Likewise.
3900
1c236ddd
AB
39012020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3902
3903 * valops.c (value_repeat): Fix incorrect argument name in comment.
3904
67bd3fd5
AB
39052020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3906
3907 * ada-lang.c (ada_language_data): Remove c_style_arrays
3908 initializer.
3909 (ada_language::c_style_arrays_p): New member fuction.
3910 * c-lang.c (c_language_data): Remove c_style_arrays
3911 initializer.
3912 (cplus_language_data): Likewise.
3913 (asm_language_data): Likewise.
3914 (minimal_language_data): Likewise.
3915 * d-lang.c (d_language_data): Likewise.
3916 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
3917 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
3918 (f_language::c_style_arrays_p): New member function.
3919 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
3920 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
3921 * language.c (unknown_language_data): Remove c_style_arrays
3922 initializer.
3923 (auto_language_data): Likewise.
3924 * language.h (language_data): Remove c_style_arrays field.
3925 (language_defn::c_style_arrays_p): New member function.
3926 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
3927 (m2_language::c_style_arrays_p): New member function.
3928 * objc-lang.c (objc_language_data): Remove c_style_arrays
3929 initializer.
3930 * opencl-lang.c (opencl_language_data): Likewise.
3931 * p-lang.c (pascal_language_data): Likewise.
3932 * rust-lang.c (rust_language_data): Likewise.
3933 * valarith.c (value_subscript): Update call to c_style_arrays_p,
3934 and update local variable to a bool.
3935 * valops.c (value_cast): Update call to c_style_arrays_p.
3936 (value_array): Likewise.
3937 * value.c (coerce_array): Likewise.
3938
85967615
AB
39392020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3940
3941 * ada-lang.c (ada_language_data): Remove la_language initializer.
3942 * c-lang.c (c_language_data): Likewise.
3943 (cplus_language_data): Likewise.
3944 (asm_language_data): Likewise.
3945 (minimal_language_data): Likewise.
3946 * d-lang.c (d_language_data): Likewise.
3947 * f-lang.c (f_language_data): Likewise.
3948 * go-lang.c (go_language_data): Likewise.
3949 * language.c (unknown_language_data): Likewise.
3950 (auto_language_data): Likewise.
3951 * language.h (language_data): Remove la_language field.
3952 (language_defn::language_defn): Initialise la_language field.
3953 (language_defn::la_language): New member variable.
3954 * m2-lang.c (m2_language_data): Remove la_language field.
3955 * objc-lang.c (objc_language_data): Likewise.
3956 * opencl-lang.c (opencl_language_data): Likewise.
3957 * p-lang.c (pascal_language_data): Likewise.
3958 * rust-lang.c (rust_language_data): Likewise.
3959
e171d6f1
AB
39602020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3961
3962 * ada-lang.c (ada_extensions): Delete, moved into
3963 ada_language::filename_extensions.
3964 (ada_language_data): Remove la_filename_extensions initializer.
3965 (ada_language::filename_extensions): New member function.
3966 * c-lang.c (c_extensions): Delete, moved into
3967 c_language::filename_extensions.
3968 (c_language_data): Remove la_filename_extensions initializer.
3969 (c_language::filename_extensions): New member function.
3970 (cplus_extensions): Delete, moved into
3971 cplus_language::filename_extensions.
3972 (cplus_language_data): Remove la_filename_extensions initializer.
3973 (cplus_language::filename_extensions): New member function.
3974 (asm_extensions): Delete, moved into
3975 asm_language::filename_extensions.
3976 (asm_language_data): Remove la_filename_extensions initializer.
3977 (asm_language::filename_extensions): New member function.
3978 (minimal_language_data): Remove la_filename_extensions
3979 initializer.
3980 * d-lang.c (d_extensions): Delete, moved into
3981 d_language::filename_extensions.
3982 (d_language_data): Remove la_filename_extensions initializer.
3983 (d_language::filename_extensions): New member function.
3984 * f-lang.c (f_extensions): Delete, moved into
3985 f_language::filename_extensions.
3986 (f_language_data): Remove la_filename_extensions initializer.
3987 (f_language::filename_extensions): New member function.
3988 * go-lang.c (go_language_data): Remove la_filename_extensions
3989 initializer.
3990 * language.c (add_set_language_command): Update now that
3991 filename_extensions returns a vector.
3992 (unknown_language_data): Remove la_filename_extensions
3993 initializer.
3994 (auto_language_data): Likewise.
3995 * language.h (language_data): Remove la_filename_extensions field.
3996 (language_defn::filename_extensions): New member function.
3997 * m2-lang.c (m2_language_data): Remove la_filename_extensions
3998 initializer.
3999 * objc-lang.c (objc_extensions): Delete, moved into
4000 objc_language::filename_extensions.
4001 (objc_language_data): Remove la_filename_extensions initializer.
4002 (objc_language::filename_extensions): New member function.
4003 * opencl-lang.c (opencl_language_data): Remove
4004 la_filename_extensions initializer.
4005 * p-lang.c (pascal_extensions): Delete, moved into
4006 pascal_language::filename_extensions.
4007 (pascal_language_data): Remove la_filename_extensions initializer.
4008 (pascal_language::filename_extensions): New member function.
4009 * rust-lang.c (rust_extensions): Delete, moved into
4010 rust_language::filename_extensions.
4011 (rust_language_data): Remove la_filename_extensions initializer.
4012 (rust_language::filename_extensions): New member function.
4013 * symfile.c (add_filename_language): Add new assert.
4014
6f7664a9
AB
40152020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4016
4017 * ada-lang.c (ada_language_data): Remove la_name and
4018 la_natural_name initializers.
4019 (ada_language::name): New member function.
4020 (ada_language::natural_name): New member function.
4021 * c-lang.c (c_language_data): Remove la_name and
4022 la_natural_name initializers.
4023 (c_language::name): New member function.
4024 (c_language::natural_name): New member function.
4025 (cplus_language_data): Remove la_name and
4026 la_natural_name initializers.
4027 (cplus_language::name): New member function.
4028 (cplus_language::natural_name): New member function.
4029 (asm_language_data): Remove la_name and
4030 la_natural_name initializers.
4031 (asm_language::name): New member function.
4032 (asm_language::natural_name): New member function.
4033 (minimal_language_data): Remove la_name and
4034 la_natural_name initializers.
4035 (minimal_language::name): New member function.
4036 (minimal_language::natural_name): New member function.
4037 * compile/compile.c (compile_to_object): Update call to
4038 lanugage_defn::name.
4039 * d-lang.c (d_language_data): Remove la_name and
4040 la_natural_name initializers.
4041 (d_language::name): New member function.
4042 (d_language::natural_name): New member function.
4043 * expprint.c (print_subexp_standard): Update call to
4044 language_defn::name.
4045 (dump_raw_expression): Likewise
4046 (dump_prefix_expression): Likewise.
4047 * f-lang.c (f_language_data): Remove la_name and
4048 la_natural_name initializers.
4049 (f_language::name): New member function.
4050 (f_language::natural_name): New member function.
4051 * go-lang.c (go_language_data): Remove la_name and
4052 la_natural_name initializers.
4053 (go_language::name): New member function.
4054 (go_language::natural_name): New member function.
4055 * language.c (show_language_command): Update call to
4056 language_defn::name.
4057 (set_language_command): Likewise.
4058 (language_enum): Likewise.
4059 (language_str): Likewise.
4060 (add_set_language_command): Likewise, use
4061 language_defn::natural_name in the doc string.
4062 (unknown_language_data): Remove la_name and
4063 la_natural_name initializers.
4064 (unknown_language::name): New member function.
4065 (unknown_language::natural_name): New member function.
4066 (auto_language_data): Remove la_name and
4067 la_natural_name initializers.
4068 (auto_language::name): New member function.
4069 (auto_language::natural_name): New member function.
4070 (language_lookup_primitive_type_as_symbol): Update call to
4071 language_defn::name.
4072 * language.h (language_data): Remove la_name and la_natural_name
4073 member variables.
4074 (language_defn::name): New member function.
4075 (language_defn::natural_name): New member function.
4076 * m2-lang.c (m2_language_data): Remove la_name and
4077 la_natural_name initializers.
4078 (m2_language::name): New member function.
4079 (m2_language::natural_name): New member function.
4080 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
4081 language_defn::natural_name.
4082 * objc-lang.c (objc_language_data): Remove la_name and
4083 la_natural_name initializers.
4084 (objc_language::name): New member function.
4085 (objc_language::natural_name): New member function.
4086 * opencl-lang.c (opencl_language_data): Remove la_name and
4087 la_natural_name initializers.
4088 (opencl_language::name): New member function.
4089 (opencl_language::natural_name): New member function.
4090 * p-lang.c (pascal_language_data): Remove la_name and
4091 la_natural_name initializers.
4092 (pascal_language::name): New member function.
4093 (pascal_language::natural_name): New member function.
4094 * rust-lang.c (rust_language_data): Remove la_name and
4095 la_natural_name initializers.
4096 (rust_language::name): New member function.
4097 (rust_language::natural_name): New member function.
4098 * symtab.c (lookup_language_this): Update call to
4099 language_defn::name.
4100
5bae7c4e
AB
41012020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4102
4103 * ada-lang.c (ada_language_data): Remove la_name_of_this
4104 initializer.
4105 * ax-gdb.c (gen_expr): Update call to name_of_this.
4106 * c-exp.y (classify_name): Likewise.
4107 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
4108 (cplus_language_data): Likewise.
4109 (cplus_language::name_of_this): New member function.
4110 (asm_language_data): Remove la_name_of_this initializer.
4111 (minimal_language_data): Likewise.
4112 * d-lang.c (d_language_data): Likewise.
4113 (d_language::name_of_this): New member function.
4114 * expprint.c (print_subexp_standard): Update call to name_of_this.
4115 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
4116 * go-lang.c (go_language_data): Likewise.
4117 * language.c (unknown_language_data): Likewise.
4118 (unknown_language::name_of_this): New member function.
4119 (auto_language_data): Remove la_name_of_this initializer.
4120 (auto_language::name_of_this): New member function.
4121 * language.h (language_data): Delete la_name_of_this member
4122 variable.
4123 (language_defn::name_of_this): New member function.
4124 * m2-lang.c (m2_language_data): Remove la_name_of_this
4125 initializer.
4126 * objc-lang.c (objc_language_data): Likewise.
4127 (objc_language::name_of_this): New member function.
4128 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
4129 initializer.
4130 * p-lang.c (pascal_language_data): Likewise.
4131 (pascal_language::name_of_this): New member function.
4132 * rust-lang.c (rust_language_data): Remove la_name_of_this
4133 initializer.
4134 * symtab.c (lookup_language_this): Update call to name_of_this.
4135 (lookup_symbol_aux): Likewise.
4136 * valops.c (value_of_this): Likewise.
4137
22e3f3ed
AB
41382020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4139
4140 * ada-lang.c (ada_language_data): Remove
4141 la_struct_too_deep_ellipsis initializer.
4142 (ada_language::struct_too_deep_ellipsis): New member function.
4143 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
4144 initializer.
4145 (cplus_language_data): Likewise.
4146 (asm_language_data): Likewise.
4147 (minimal_language_data): Likewise.
4148 * cp-valprint.c (cp_print_value): Update call to
4149 struct_too_deep_ellipsis.
4150 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
4151 initializer.
4152 * f-lang.c (f_language_data): Likewise.
4153 (f_language::struct_too_deep_ellipsis): New member function.
4154 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
4155 initializer.
4156 * language.c (unknown_language_data): Likewise.
4157 (auto_language_data): Likewise.
4158 * language.h (language_data): Delete la_struct_too_deep_ellipsis
4159 member variable.
4160 (language_defn::struct_too_deep_ellipsis): New member function.
4161 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
4162 initializer.Q
4163 * objc-lang.c (objc_language_data): Likewise.
4164 * opencl-lang.c (opencl_language_data): Likewise.
4165 * p-lang.c (pascal_language_data): Likewise.
4166 * rust-lang.c (rust_language_data): Likewise.
4167 * valprint.c (val_print_check_max_depth): Update call to
4168 struct_too_deep_ellipsis.
4169
ed29e1c7
FW
41702020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
4171
4172 * MAINTAINERS (Write After Approval): Add myself.
4173
12d8f940
TT
41742020-09-15 Tom Tromey <tom@tromey.com>
4175
4176 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
4177 Remove.
4178
6b5a7bc7
TT
41792020-09-15 Tom Tromey <tom@tromey.com>
4180
4181 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
4182 and TYPE_CODE_METHODPTR cases.
4183 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
4184 (c_value_print_inner): Update.
4185 * valprint.c (generic_value_print_memberptr): New function, from
4186 c_value_print_memberptr.
4187 (generic_value_print): Use it. Call cplus_print_method_ptr.
4188
47f0e2ff
TT
41892020-09-15 Tom Tromey <tromey@adacore.com>
4190
4191 * python/python-internal.h (PyInt_FromLong): Remove define.
4192 * python/py-value.c (convert_value_from_python): Use
4193 gdb_py_object_from_longest.
4194 * python/py-type.c (typy_get_code): Use
4195 gdb_py_object_from_longest.
4196 * python/py-symtab.c (salpy_get_line): Use
4197 gdb_py_object_from_longest.
4198 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
4199 gdb_py_object_from_longest.
4200 * python/py-record.c (recpy_gap_reason_code): Use
4201 gdb_py_object_from_longest.
4202 * python/py-record-btrace.c (recpy_bt_insn_size)
4203 (recpy_bt_func_level, btpy_list_count): Use
4204 gdb_py_object_from_longest.
4205 * python/py-infthread.c (gdbpy_create_ptid_object): Use
4206 gdb_py_object_from_longest. Fix error handling.
4207 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
4208 gdb_py_object_from_longest.
4209 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
4210 gdb_py_object_from_longest.
4211 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
4212 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
4213 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
4214
512116ce
TT
42152020-09-15 Tom Tromey <tromey@adacore.com>
4216
4217 * python/python.c (gdbpy_parameter_value): Use
4218 gdb_py_object_from_ulongest.
4219
4ab1029c
TT
42202020-09-15 Tom Tromey <tromey@adacore.com>
4221
4222 * python/py-infevents.c (create_register_changed_event_object):
4223 Use gdb_py_object_from_longest.
4224 * python/py-exitedevent.c (create_exited_event_object): Use
4225 gdb_py_object_from_longest.
4226
062534d4
TT
42272020-09-15 Tom Tromey <tromey@adacore.com>
4228
4229 * python/python.c (gdbpy_parameter_value): Use
4230 gdb_py_object_from_longest.
4231 * python/py-type.c (convert_field, typy_range): Use
4232 gdb_py_object_from_longest.
4233 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
4234 gdb_py_object_from_longest.
4235 * python/py-lazy-string.c (stpy_get_length): Use
4236 gdb_py_object_from_longest.
4237 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
4238 gdb_py_object_from_longest.
4239 * python/py-infevents.c (create_memory_changed_event_object): Use
4240 gdb_py_object_from_longest.
4241 * python/py-inferior.c (infpy_get_num): Use
4242 gdb_py_object_from_longest.
4243 (infpy_get_pid): Likewise.
4244
d1cab987
TT
42452020-09-15 Tom Tromey <tromey@adacore.com>
4246
4247 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
4248 defines.
4249 * python/py-value.c (valpy_long): Use
4250 gdb_py_object_from_ulongest.
4251 * python/py-symtab.c (salpy_get_pc): Use
4252 gdb_py_object_from_ulongest.
4253 (salpy_get_last): Likewise.
4254 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
4255 gdb_py_object_from_ulongest.
4256 * python/py-lazy-string.c (stpy_get_address): Use
4257 gdb_py_object_from_ulongest.
4258 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
4259 * python/py-arch.c (archpy_disassemble): Use
4260 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
4261 error handling.
4262
4bde49dc
TT
42632020-09-15 Tom Tromey <tromey@adacore.com>
4264
4265 * python/python-internal.h (gdb_py_long_from_longest): Remove
4266 defines.
4267 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
4268 * python/py-type.c (convert_field, typy_get_sizeof): Use
4269 gdb_py_object_from_longest.
4270 * python/py-record-btrace.c (btpy_list_index): Use
4271 gdb_py_object_from_longest.
4272
37431074
TT
42732020-09-15 Tom Tromey <tromey@adacore.com>
4274
4275 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
4276 * python/py-record.c (recpy_element_number): Use
4277 gdb_py_object_from_longest.
4278 (recpy_gap_number): Likewise.
4279
cbe25684
TT
42802020-09-15 Tom Tromey <tromey@adacore.com>
4281
4282 * top.c (ui::ui): Update.
4283 (highest_ui_num): Remove.
4284 * top.h (struct ui) <num>: Remove.
4285
db92ac45
TT
42862020-09-15 Tom Tromey <tromey@adacore.com>
4287
4288 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
4289 * ui-style.c (ansi_regex_text): Now array.
4290 * rust-exp.y (number_regex_text): Now array.
4291 * linespec.c (linespec_quote_characters): Now array.
4292 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
4293 Now arrays.
4294
d2b31b67
SM
42952020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4296
4297 * debuginfod-support.c (debuginfod_client_deleter): New.
4298 (debuginfod_client_up): New.
4299 (debuginfod_init): Return debuginfod_client_up.
4300 (debuginfod_source_query): Adjust.
4301 (debuginfod_debuginfo_query): Adjust.
4302
3246bd8e
SM
43032020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4304
4305 * debuginfod-support.c (debuginfod_source_query): Use
4306 make_unique_xstrdup.
4307
10242f36
SM
43082020-09-14 Simon Marchi <simon.marchi@efficios.com>
4309
4310 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
4311 with `type::instance_flags`.
4312
e1044e6a
MM
43132020-09-14 Michael Mullin <masmullin@gmail.com>
4314
4315 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
4316 Remove baton parameter.
4317
04902b09
PA
43182020-09-14 Pedro Alves <pedro@palves.net>
4319
4320 * Makefile.in (SELFTESTS_SRCS): Add
4321 unittests/enum-flags-selftests.c.
4322 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
4323 btrace_function_flags instead of enum btrace_function_flag.
4324 * compile/compile-c-types.c (convert_qualified): Use
4325 enum_flags::raw.
4326 * compile/compile-cplus-symbols.c (convert_one_symbol)
4327 (convert_symbol_bmsym):
4328 * compile/compile-cplus-types.c (compile_cplus_convert_method)
4329 (compile_cplus_convert_struct_or_union_methods)
4330 (compile_cplus_instance::convert_qualified_base):
4331 * go-exp.y (parse_string_or_char): Add cast to int.
4332 * unittests/enum-flags-selftests.c: New file.
4333 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
4334 type to btrace_thread_flags from btrace_thread_flag.
4335 (record_btrace_cancel_resume, record_btrace_step_thread): Change
4336 local's type to btrace_thread_flags from btrace_thread_flag. Add
4337 cast in DEBUG call.
4338
69896a2c
PA
43392020-09-14 Pedro Alves <pedro@palves.net>
4340
4341 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
4342 * gdbtypes.c (address_space_name_to_int): Rename to ...
4343 (address_space_name_to_type_instance_flags): ... this.
4344 (address_space_int_to_name): Rename to ...
4345 (address_space_type_instance_flags_to_name): ... this.
4346 * gdbtypes.h (address_space_name_to_int): Rename to ...
4347 (address_space_name_to_type_instance_flags): ... this.
4348 (address_space_int_to_name): Rename to ...
4349 (address_space_type_instance_flags_to_name): ... this.
4350 * type-stack.c (type_stack::insert): Adjust to rename.
4351 * type-stack.h (type_stack::insert): Likewise.
4352
314ad88d
PA
43532020-09-14 Pedro Alves <pedro@palves.net>
4354 Andrew Burgess <andrew.burgess@embecosm.com>
4355
4356 * avr-tdep.c (avr_address_class_type_flags): Return
4357 type_instance_flags.
4358 (avr_address_class_type_flags_to_name): Take a
4359 type_instance_flags.
4360 (avr_address_class_name_to_type_flags): Return bool and take a
4361 type_instance_flags.
4362 * d-lang.c (build_d_types): Use type::set_instance_flags.
4363 * ft32-tdep.c (ft32_address_class_type_flags): Return
4364 type_instance_flags.
4365 (ft32_address_class_type_flags_to_name): Take a
4366 type_instance_flags.
4367 (ft32_address_class_name_to_type_flags): Return bool and take a
4368 type_instance_flags.
4369 (ft32_gdbarch_init): Use type::set_instance_flags.
4370 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
4371 * gdbarch.h, gdbarch.c: Regenerate.
4372 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
4373 (address_class_name_to_type_flags): Use type_instance_flags and
4374 bool.
4375 * gdbtypes.c (address_space_name_to_int)
4376 (address_space_int_to_name, make_qualified_type): Use
4377 type_instance_flags.
4378 (make_qualified_type): Use type_instance_flags and
4379 type::set_instance_flags.
4380 (make_type_with_address_space, make_cv_type, make_vector_type)
4381 (check_typedef): Use type_instance_flags.
4382 (recursive_dump_type): Cast type_instance_flags to unsigned for
4383 printing.
4384 (copy_type_recursive): Use type::set_instance_flags.
4385 (gdbtypes_post_init): Use type::set_instance_flags.
4386 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
4387 <m_instance_flags>: ... this.
4388 <instance_flags, set_instance_flags>: New methods.
4389 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
4390 (SET_TYPE_INSTANCE_FLAGS): New.
4391 (address_space_name_to_int, address_space_int_to_name)
4392 (make_type_with_address_space): Pass flags using
4393 type_instance_flags instead of int.
4394 * stabsread.c (cleanup_undefined_types_noname): Use
4395 type::set_instance_flags.
4396 * s390-tdep.c (s390_address_class_type_flags): Return
4397 type_instance_flags.
4398 (s390_address_class_type_flags_to_name): Take a
4399 type_instance_flags.
4400 (s390_address_class_name_to_type_flags): Return bool and take a
4401 type_instance_flags.
4402 * type-stack.c (type_stack::follow_types): Use
4403 type_instance_flags.
4404 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
4405
27087b7f
TT
44062020-09-14 Tom Tromey <tromey@adacore.com>
4407
4408 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
4409 * x86-tdep.c (x86_is_thunk_register_name)
4410 (x86_in_indirect_branch_thunk): Update.
4411 * sparc64-tdep.c (sparc64_fpu_register_names)
4412 (sparc64_cp0_register_names, sparc64_register_names)
4413 (sparc64_pseudo_register_names): Now const.
4414 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
4415 cp0_registers_num>: Now const.
4416 * sparc-tdep.c (sparc_core_register_names)
4417 (sparc32_fpu_register_names, sparc32_cp0_register_names)
4418 (sparc32_pseudo_register_names): Now const.
4419 (validate_tdesc_registers): Update.
4420 * rust-lang.c (rust_extensions): Now const.
4421 * p-lang.c (p_extensions): Now const.
4422 * objc-lang.c (objc_extensions): Now const.
4423 * nto-tdep.c (nto_thread_state_str): Now const.
4424 * moxie-tdep.c (moxie_register_names): Now const.
4425 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
4426 Now const.
4427 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
4428 (mips_linux_reg_names): Now const.
4429 (mips_gdbarch_init): Update.
4430 * microblaze-tdep.c (microblaze_register_names): Now const.
4431 * m68k-tdep.c (m68k_register_names): Now const.
4432 * m32r-tdep.c (m32r_register_names): Now const.
4433 * ia64-tdep.c (ia64_register_names): Now const.
4434 * i386-tdep.h (struct gdbarch_tdep) <register_names,
4435 ymmh_register_names, ymm16h_regnum, mpx_register_names,
4436 k_register_names, zmmh_register_names, xmm_avx512_register_names,
4437 ymm_avx512_register_names, pkeys_register_names>: Now const.
4438 * i386-tdep.c (i386_register_names, i386_zmm_names)
4439 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
4440 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
4441 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
4442 * f-lang.c (f_extensions): Now const.
4443 * d-lang.c (d_extensions): Now const.
4444 * csky-tdep.c (csky_register_names): Now const.
4445 * charset.c (default_charset_names, charset_enum): Now const.
4446 (_initialize_charset): Update.
4447 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
4448 const.
4449 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
4450 (bsd_uthread_solib_loaded): Update.
4451 (bsd_uthread_state): Now const.
4452 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
4453 (amd64_ymm_avx512_names, amd64_ymmh_names)
4454 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
4455 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
4456 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
4457 (amd64_dword_names): Now const.
4458 * agent.c (can_use_agent_enum): Now const.
4459 * ada-tasks.c (task_states, long_task_states): Now const.
4460 * ada-lang.c (known_runtime_file_name_patterns)
4461 (known_auxiliary_function_name_patterns, attribute_names)
4462 (standard_exc, ada_extensions): Now const.
4463
89806626
SM
44642020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4465
4466 * bcache.h (struct bcache) <bcache>: Remove constructor.
4467 <m_hash_function, m_compare_function>: Remove.
4468 <~bcache>: Make virtual.
4469 <compare>: Remove static method, introduce virtual method.
4470 <default_hash>: Remove.
4471 <hash>: New virtual method.
4472 * bcache.c (bcache::expand_hash_table): Update.
4473 (bcache::insert): Update.
4474 (bcache::hash): New.
4475 (bcache::compare): Update comment and parameter names.
4476 * gdbtypes.c (types_deeply_equal): Update.
4477 * psymtab.h (struct psymbol_bcache): New struct.
4478 (class psymtab_storage) <psymtab_storage>: Make default.
4479 <psymbol_cache>: Change type to psymbol_bcache.
4480 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
4481 (psymbol_hash): Change to...
4482 (psymbol_bcache::hash): ... this.
4483 (psymbol_compare): Change to...
4484 (psymbol_bcache::compare): ... this.
4485
677c92fe
SM
44862020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4487
4488 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
4489 checking for initial lwp.
4490
3eba3a01
TT
44912020-09-14 Tom Tromey <tromey@adacore.com>
4492
4493 * m68k-tdep.c (m68k_extract_return_value): Use
4494 pointer_result_regnum.
4495 (m68k_store_return_value): Likewise.
4496 (m68k_reg_struct_return_p): Handle vectors and arrays.
4497 (m68k_return_value): Handle arrays.
4498 (m68k_svr4_return_value): Fix single-element aggregate handling.
4499 Handle long double. Adjust for embedded ABI.
4500 (m68k_svr4_init_abi): Set pointer_result_regnum.
4501 (m68k_embedded_init_abi): New function.
4502 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
4503 (m68k_osabi_sniffer): New function.
4504 (_initialize_m68k_tdep): Register osabi sniffer.
4505 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
4506 member.
4507
33f4dd48
SM
45082020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4509
4510 * xml-support.c (xml_fetch_content_from_file): Replace xfree
4511 with gdb::unique_xmalloc_ptr<char>.
4512
8400a90d
SM
45132020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4514
4515 * xml-support.h (xml_fetch_another): Change type to be a
4516 function_view.
4517 (xml_process_xincludes): Remove baton parameter.
4518 (xml_fetch_content_from_file): Change baton parameter to
4519 dirname.
4520 * xml-support.c (struct xinclude_parsing_data)
4521 <xinclude_parsing_data>: Remove baton parameter.
4522 <fetcher_baton>: Remove.
4523 (xinclude_start_include): Adjust.
4524 (xml_process_xincludes): Adjust.
4525 (xml_fetch_content_from_file): Replace baton parameter with
4526 dirname.
4527 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
4528 (xml_init_syscalls_info): Use a lambda.
4529 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
4530 (file_read_description_xml): Use a lambda.
4531 (fetch_available_features_from_target): Change baton parameter
4532 to target_ops.
4533 (target_read_description_xml): Use a lambda.
4534 (target_fetch_description_xml): Use a lambda.
4535 (string_read_description_xml): Update.
4536
04f5bab2
SM
45372020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4538
4539 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
4540 uses with type::endianity_is_not_default.
4541
db558e34
SM
45422020-09-14 Simon Marchi <simon.marchi@efficios.com>
4543
4544 * gdbtypes.h (struct type) <endianity_is_not_default,
4545 set_endianity_is_not_default>: New methods.
4546 (TYPE_ENDIANITY_NOT_DEFAULT): Use
4547 type::endianity_is_not_default, change all write call sites to
4548 use type::set_endianity_is_not_default.
4549
22c4c60c
SM
45502020-09-14 Simon Marchi <simon.marchi@efficios.com>
4551
4552 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
4553 uses with type::is_fixed_instance.
4554
9cdd0d12
SM
45552020-09-14 Simon Marchi <simon.marchi@efficios.com>
4556
4557 * gdbtypes.h (struct type) <is_fixed_instance,
4558 set_is_fixed_instance>: New methods.
4559 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
4560 write call sites to use type::set_is_fixed_instance.
4561
0becda7a
SM
45622020-09-14 Simon Marchi <simon.marchi@efficios.com>
4563
4564 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
4565 uses with type::is_gnu_ifunc.
4566
03cc7249
SM
45672020-09-14 Simon Marchi <simon.marchi@efficios.com>
4568
4569 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
4570 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
4571 use type::set_is_gnu_ifunc.
4572
3f46044c
SM
45732020-09-14 Simon Marchi <simon.marchi@efficios.com>
4574
4575 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
4576 uses with type::stub_is_supported.
4577
9baccff6
SM
45782020-09-14 Simon Marchi <simon.marchi@efficios.com>
4579
4580 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
4581 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
4582 use type::set_stub_is_supported.
4583
bd63c870
SM
45842020-09-14 Simon Marchi <simon.marchi@efficios.com>
4585
4586 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
4587 uses with type::is_vector.
4588
2062087b
SM
45892020-09-14 Simon Marchi <simon.marchi@efficios.com>
4590
4591 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
4592 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
4593 use type::set_is_vector.
4594
a409645d
SM
45952020-09-14 Simon Marchi <simon.marchi@efficios.com>
4596
4597 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
4598 uses with type::has_varargs.
4599
1d6286ed
SM
46002020-09-14 Simon Marchi <simon.marchi@efficios.com>
4601
4602 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
4603 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
4604 use type::set_has_varargs.
4605
7f9f399b
SM
46062020-09-14 Simon Marchi <simon.marchi@efficios.com>
4607
4608 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
4609 uses with type::is_prototyped.
4610
27e69b7a
SM
46112020-09-14 Simon Marchi <simon.marchi@efficios.com>
4612
4613 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
4614 New methods.
4615 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
4616 call sites to use type::set_is_prototyped.
4617
d2183968
SM
46182020-09-14 Simon Marchi <simon.marchi@efficios.com>
4619
4620 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
4621 uses with type::target_is_stub.
4622
8f53807e
SM
46232020-09-14 Simon Marchi <simon.marchi@efficios.com>
4624
4625 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
4626 New methods.
4627 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
4628 sites to use type::set_target_is_stub.
4629
e46d3488
SM
46302020-09-14 Simon Marchi <simon.marchi@efficios.com>
4631
4632 * gdbtypes.h (TYPE_STUB): Remove, replace all
4633 uses with type::is_stub.
4634
b4b73759
SM
46352020-09-14 Simon Marchi <simon.marchi@efficios.com>
4636
4637 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
4638 (TYPE_STUB): Use type::is_stub, change all write call sites to
4639 use type::set_is_stub.
4640
20ce4123
SM
46412020-09-14 Simon Marchi <simon.marchi@efficios.com>
4642
4643 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
4644 type::has_no_signedness.
4645
15152a54
SM
46462020-09-14 Simon Marchi <simon.marchi@efficios.com>
4647
4648 * gdbtypes.h (struct type) <has_no_signedness,
4649 set_has_no_signedness>: New methods.
4650 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
4651 call sites to use type::set_has_no_signedness.
4652
c6d940a9
SM
46532020-09-14 Simon Marchi <simon.marchi@efficios.com>
4654
4655 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
4656 type::is_unsigned.
4657
653223d3
SM
46582020-09-14 Simon Marchi <simon.marchi@efficios.com>
4659
4660 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
4661 methods.
4662 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
4663 sites to use type::set_is_unsigned.
4664
55ea94da 46652020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 4666 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 4667
e851246a
SM
4668 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
4669 pointer and stack frame offset when unwinding.
55ea94da 4670
6791b117
PA
46712020-09-13 Pedro Alves <pedro@palves.net>
4672
4673 * NEWS: Document "-break-insert --qualified".
4674 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
4675
77f2120b
PA
46762020-09-13 Pedro Alves <pedro@palves.net>
4677
4678 * linespec.c (classify_mtype, compare_msyms): Delete.
4679 (search_minsyms_for_name): Remove classification logic. Instead
4680 filter out trampoline symbols if we also found an external
4681 function of the same name.
4682
ed6a896c
JB
46832020-09-13 Joel Brobecker <brobecker@adacore.com>
4684
4685 * NEWS: Create a new section for the next release branch.
4686 Rename the section of the current branch, now that it has
4687 been cut.
4688
32aea73e
JB
46892020-09-13 Joel Brobecker <brobecker@adacore.com>
4690
4691 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
4692 * version.in: Bump version to 11.0.50.DATE-git.
4693
8087c3fa
JB
46942020-09-12 Joel Brobecker <brobecker@adacore.com>
4695
4696 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
4697
2a67f09d
FW
46982020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
4699 Felix Willgerodt <Felix.Willgerodt@intel.com>
4700
4701 * gdbarch.sh: Added bfloat16 type.
4702 * gdbarch.c: Regenerated.
4703 * gdbarch.h: Regenerated.
4704 * gdbtypes.c (floatformats_bfloat16): New struct.
4705 (gdbtypes_post_init): Add builtin_bfloat16.
4706 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
4707 (floatformats_bfloat16): New struct.
4708 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
4709 (i386_ymm_type): Add field "v16_bfloat16"
4710 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
4711 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
4712 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
4713 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
4714 * features/i386/64bit-avx512.xml: Add bfloat16 type.
4715 * features/i386/64bit-avx512.c: Regenerated.
4716 * features/i386/64bit-sse.xml: Add bfloat16 type.
4717 * features/i386/64bit-sse.c: Regenerated.
4718
1347d111
FW
47192020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
4720
4721 * i386-tdep.c (i386_zmm_type): Fix field names.
4722 (i386_ymm_type): Fix field names.
4723
7a4e8e7d
TBA
47242020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4725
4726 * breakpoint.c: Fix typo in the help message of the
4727 "set breakpoint condition-evaluation" command.
4728
cf4ac4be
KR
47292020-09-10 Kamil Rytarowski <n54@gmx.com>
4730
4731 * nbsd-nat.c: Include "nat/netbsd-nat.h".
4732 * (nbsd_nat_target::pid_to_exec_file)
4733 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
4734 (nbsd_nat_target::post_startup_inferior)
4735 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
4736 (nbsd_add_threads): Switch local code to common gdb/nat functions.
4737 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
4738 * (nbsd_thread_lister): Remove.
4739
f404573e
KR
47402020-09-10 Kamil Rytarowski <n54@gmx.com>
4741
4742 * fork-inferior.c (startup_inferior): Avoid double free.
4743
1ccb2c17
KR
47442020-09-10 Kamil Rytarowski <n54@gmx.com>
4745
4746 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
4747 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
4748
feedfcc7
KR
47492020-09-10 Kamil Rytarowski <n54@gmx.com>
4750
4751 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
4752 * netbsd-nat.c: Include <sys/ptrace.h>.
4753 * (netbsd_nat::enable_proc_events): Add.
4754
c489f8c6
KR
47552020-09-10 Kamil Rytarowski <n54@gmx.com>
4756
4757 * netbsd-nat.h: Include "gdbsupport/function-view.h".
4758 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4759 (netbsd_nat::for_each_thread): Add.
4760 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
4761 "gdbsupport/common-debug.h".
4762 * (netbsd_nat::netbsd_thread_lister)
4763 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4764 (netbsd_nat::for_each_thread): Add.
4765
330662f6
KR
47662020-09-10 Kamil Rytarowski <n54@gmx.com>
4767
4768 * netbsd-nat.h: Include <unistd.h>.
4769 * (netbsd_nat::pid_to_exec_file): Add.
4770 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
4771 * (netbsd_nat::pid_to_exec_file) Add.
4772
70b67307
KR
47732020-09-10 Kamil Rytarowski <n54@gmx.com>
4774
4775 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
4776
99cf6da6
KR
47772020-09-10 Kamil Rytarowski <n54@gmx.com>
4778
4779 * netbsd-nat.h: New file.
4780 * netbsd-nat.c: Likewise.
4781
1b788fb6
TT
47822020-09-09 Tom Tromey <tromey@adacore.com>
4783
4784 * ada-lang.c (remove_extra_symbols): Do not increment when
4785 removing an element
4786
03b0a45f
TT
47872020-09-08 Tom Tromey <tromey@adacore.com>
4788
4789 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
4790
3cae4447
TT
47912020-09-08 Tom Tromey <tromey@adacore.com>
4792
4793 PR win32/25302:
4794 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
4795 (gdb_bfd_init_data): New function.
4796 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
4797
7f08fd51
TBA
47982020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4799
4800 * infrun.c (fetch_inferior_event): Use
4801 `switch_to_target_no_thread` to switch the target.
4802
3e6ff933
TT
48032020-09-06 Tom Tromey <tom@tromey.com>
4804
4805 * symfile.h (dwarf2_free_objfile): Don't declare.
4806
e56798df
AKS
48072020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4808
4809 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
4810 to match 16 byte real/complex type generated by Flang compiler.
4811
8f5c6526
TV
48122020-09-03 Tom de Vries <tdevries@suse.de>
4813
4814 PR breakpoint/26546
4815 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
4816 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
4817
c5065df0
SM
48182020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
4819
4820 * maint.c (index_digits): New function.
4821 (struct maint_print_section_data): Remove.
4822 (print_bfd_section_info): Remove print_data parameter, add arg
4823 and index_digits.
4824 (print_objfile_section_info): Likewise.
4825 (print_bfd_section_info_maybe_relocated): Likewise (plus
4826 objfile).
4827 (maintenance_info_sections): Adjust calls.
4828
02c6f3f1
TT
48292020-09-02 Tom Tromey <tromey@adacore.com>
4830
4831 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
4832 for null pointers.
4833 (ada_varobj_adjust_for_child_access): Special-case null pointers.
4834
ef5e5b0b
SM
48352020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
4836
4837 * bcache.h (struct bcache) <insert>: Change type of `added` to
4838 pointer to bool.
4839 * bcache.c (bcache::insert): Likewise.
4840 * gdbtypes.c (check_types_worklist): Adjust.
4841 * psymtab.c (add_psymbol_to_bcache): Adjust.
4842
973695d6
KB
48432020-08-31 Kevin Buettner <kevinb@redhat.com>
4844
4845 * corelow.c (unordered_set): Include.
4846 (class core_target): Add field 'm_core_unavailable_mappings'.
4847 (core_target::build_file_mappings): Print only one warning
4848 per inaccessible file. Add unavailable/broken mappings
4849 to m_core_unavailable_mappings.
4850 (core_target::xfer_partial): Call...
4851 (core_target::xfer_memory_via_mappings): New method.
4852
264fc0e2
SM
48532020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4854
4855 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
4856 type to bool.
4857
2de01bdb
SM
48582020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4859
4860 * dwarf2/read.c (struct field_info): Fix indentation.
4861
f3bd50f1
SM
48622020-08-31 Simon Marchi <simon.marchi@efficios.com>
4863
4864 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
4865 ordering in comment.
4866 * frame.c (frame_id_eq): Fix indentation.
4867
22b9b4b0
SL
48682020-08-31 Scott Linder <scott@scottlinder.com>
4869 Simon Marchi <simon.marchi@efficios.com>
4870
4871 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
4872 inline frame ids in outer frame.
4873
84154d16
SM
48742020-08-31 Simon Marchi <simon.marchi@efficios.com>
4875
4876 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
4877 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
4878 (outer_frame_id): Use FID_STACK_OUTER instead of
4879 FID_STACK_INVALID.
4880 (frame_id_p): Don't check for outer_frame_id.
4881
8efaf6b3
SM
48822020-08-31 Simon Marchi <simon.marchi@efficios.com>
4883
4884 * frame-unwind.c (frame_unwind_got_optimized): Don't set
4885 regnum/frame in value. Call allocate_value_lazy.
4886 * frame.c (frame_unwind_register_value): Use
4887 val_print_not_saved.
4888
fe1fe7ea
SM
48892020-08-31 Simon Marchi <simon.marchi@efficios.com>
4890
4891 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
4892
f7c7700d
PA
48932020-08-29 Pedro Alves <pedro@palves.net>
4894
4895 * progspace.c (print_program_space): Use all_inferiors. Switch to
4896 the inferior before calling target_pid_to_str.
4897
e0814aae
TT
48982020-08-28 Tom Tromey <tom@tromey.com>
4899
4900 * xcoffread.c (xcoff_end_psymtab): Update comment.
4901 * dbxread.c (dbx_end_psymtab): Update comment.
4902
626d2320
TV
49032020-08-28 Tom de Vries <tdevries@suse.de>
4904
4905 PR breakpoint/26544
4906 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
4907 event_location.
4908 (create_breakpoint): Same.
4909 (base_breakpoint_decode_location): Same.
4910 (bkpt_create_sals_from_location): Same.
4911 (bkpt_decode_location): Same.
4912 (bkpt_probe_create_sals_from_location): Same.
4913 (bkpt_probe_decode_location): Same.
4914 (tracepoint_create_sals_from_location): Same.
4915 (tracepoint_decode_location): Same.
4916 (tracepoint_probe_decode_location): Same.
4917 (strace_marker_create_sals_from_location): Same.
4918 (strace_marker_decode_location): Same.
4919 (create_sals_from_location_default): Same.
4920 (decode_location_default): Same.
4921 * breakpoint.h (struct breakpoint_ops): Same.
4922 (create_breakpoint): Same.
4923 * linespec.h (decode_line_full): Same.
4924 * linespec.c (decode_line_full): Same. Throw error if
4925 result.size () == 0.
4926
df631783
PA
49272020-08-27 Pedro Alves <pedro@palves.net>
4928
4929 PR gdb/26524
4930 * breakpoint.c (until_break_fsm) <location_breakpoint,
4931 caller_breakpoint>: Delete fields.
4932 <breakpoints>: New field.
4933 <until_break_fsm>: Adjust to save a breakpoint vector instead of
4934 two individual breakpoints.
4935 (until_break_fsm::should_stop): Loop over breakpoints in the
4936 breakpoint vector.
4937 (until_break_fsm::clean_up): Adjust to clear the breakpoints
4938 vector.
4939 (until_break_command): Handle location expanding into multiple
4940 sals.
4941
b2b38aa4
PA
49422020-08-27 Pedro Alves <pedro@palves.net>
4943
4944 PR gdb/26523
4945 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
4946 bp_until breakpoints user-specified locations. Update intro
4947 comment.
4948
b886559f
SM
49492020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
4950
4951 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
4952 gdb_bfd_sections): New.
4953 * maint.c (print_bfd_section_info): Change param type to
4954 maint_print_section_data.
4955 (print_objfile_section_info): Likewise.
4956 (print_bfd_section_info_maybe_relocated): Likewise.
4957 (maintenance_info_sections): Use gdb_bfd_sections.
4958
4c6e63bf
SV
49592020-08-25 Shahab Vahedi <shahab@synopsys.com>
4960
4961 * MAINTAINERS: Add ARC target and maintainer.
4962
8d7f0635
AK
49632020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
4964
4965 * configure.tgt: ARC support for GNU/Linux.
4966 * Makefile.in (ALL_TARGET_OBJS): Likewise.
4967 * arc-linux-tdep.c: New file.
4968 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
4969 * arc-tdep.c (arc_write_pc): Use it.
4970
fdd8731b
SV
49712020-08-25 Shahab Vahedi <shahab@synopsys.com>
4972
4973 * arc-tdep.c (arc_check_for_hardware_loop): New.
4974 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
4975
22459524
SV
49762020-08-25 Shahab Vahedi <shahab@synopsys.com>
4977
4978 * arc-tdep.h: Include "gdbarch.h".
4979
995d3a19
SV
49802020-08-25 Shahab Vahedi <shahab@synopsys.com>
4981
4982 * arch/arc.h
4983 (arc_gdbarch_features): New class to stir the selection of target XML.
4984 (arc_create_target_description): Use FEATURES to choose XML target.
4985 (arc_lookup_target_description): Use arc_create_target_description
4986 to create _new_ target descriptions or return the already created
4987 ones if the FEATURES is the same.
4988 * arch/arc.c: Implementation of prototypes described above.
4989 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
4990 (arc_gdbarch_features_init): Initialize the FEATURES struct.
4991 * arc-tdep.c (*_feature_name): Make feature names consistent.
4992 (arc_register_feature): A new struct to hold information about
4993 registers of a particular target/feature.
4994 (arc_check_tdesc_feature): Check if XML provides registers in
4995 compliance with ARC_REGISTER_FEATURE structs.
4996 (arc_update_acc_reg_names): Add aliases for r58 and r59.
4997 (determine_*_reg_feature_set): Which feature name to look for.
4998 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
4999 (mach_type_to_arc_isa): Convert from a set of binutils machine types
5000 to expected ISA enums to be used in arc_gdbarch_features structs.
5001 * features/Makefile (FEATURE_XMLFILES): Add new files.
5002 * gdb/features/arc/v1-aux.c: New file.
5003 * gdb/features/arc/v1-aux.xml: Likewise.
5004 * gdb/features/arc/v1-core.c: Likewise.
5005 * gdb/features/arc/v1-core.xml: Likewise.
5006 * gdb/features/arc/v2-aux.c: Likewise.
5007 * gdb/features/arc/v2-aux.xml: Likewise.
5008 * gdb/features/arc/v2-core.c: Likewise.
5009 * gdb/features/arc/v2-core.xml: Likewise.
5010 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
5011
3945d2d7
GM
50122020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
5013 Andrew Burgess <andrew.burgess@embecosm.com>
5014
5015 PR m2/26372
fc5d6901 5016 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
5017 an assert. Remove single element array indexing pattern as the
5018 MULTI_SUBSCRIPT support will handle this case too.
5019
2677f2d3
SM
50202020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
5021
5022 * value.h (valprint_check_validity): Move declaration from
5023 here...
5024 * valprint.h (valprint_check_validity): ... to here.
5025
c426fddb
SM
50262020-08-24 Simon Marchi <simon.marchi@efficios.com>
5027
5028 * debug.h: New file.
5029 * debug.c (debug_prefixed_vprintf): New function.
5030 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
5031 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
5032
1eb8556f
SM
50332020-08-24 Simon Marchi <simon.marchi@efficios.com>
5034
5035 * infrun.h (infrun_debug_printf_1): New function declaration.
5036 (infrun_debug_printf): New macro.
5037 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
5038 throughout.
5039 (infrun_debug_printf): New function.
5040 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
5041 (handle_jit_event): Likewise.
5042
b8fff44e
MW
50432020-08-21 Mark Wielaard <mark@klomp.org>
5044
5045 * ada-lex.l: Extend register warnings diagnostics comment for g++.
5046
d19c3068
SM
50472020-08-22 Simon Marchi <simon.marchi@efficios.com>
5048
5049 * frame.c (enum class frame_id_status): New.
5050 (struct frame_info) <this_id::p>: Change type to frame_id_status.
5051 (fprintf_frame): Update.
5052 (compute_frame_id): Set frame id status to "computing" on entry.
5053 Set it back to "not_computed" on failure and to "computed" on
5054 success.
5055 (get_frame_id): Assert the frame id is not being computed.
5056 (create_sentinel_frame): Use frame_id_status::COMPUTED.
5057 (create_new_frame): Likewise.
5058 (frame_cleanup_after_sniffer): Update assert.
5059
b70e516e
SM
50602020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5061
5062 * regcache.c (pid_ptid_regcache_map): New type.
5063 (target_ptid_regcache_map): Remove.
5064 (target_pid_ptid_regcache_map): New type.
5065 (regcaches): Change type to target_pid_ptid_regcache_map.
5066 (get_thread_arch_aspace_regcache): Update.
5067 (regcache_thread_ptid_changed): Update, handle pid-like ptid
5068 case.
5069 (regcaches_size): Update.
5070 (regcache_count): Update.
5071 (registers_changed_ptid_target_pid_test): New.
5072 (_initialize_regcache): Register new test.
5073
cdd9148a
SM
50742020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5075
5076 * regcache.c (regcache_count): New.
5077 (struct regcache_test_data): New.
5078 (regcache_test_data_up): New.
5079 (populate_regcaches_for_test): New.
5080 (regcaches_test): Remove.
5081 (get_thread_arch_aspace_regcache_test): New.
5082 (registers_changed_ptid_all_test): New.
5083 (registers_changed_ptid_target_test): New.
5084 (registers_changed_ptid_target_ptid_test): New.
5085 (regcache_thread_ptid_changed): Remove regcache_count lambda.
5086 (_initialize_regcache): Register new tests.
5087
dd125343
SM
50882020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5089
5090 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
5091 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
5092 gdbarch and aspace parameter. Use current inferior's aspace.
5093 Validate regcache's arch value.
5094 (regcaches_test): Update.
5095
3ee93972
SM
50962020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5097
5098 * regcache.c (regcaches_test): Call registers_changed.
5099
33bf4c5c
TBA
51002020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5101
5102 * infrun.c (process_event_stop_test): Fix typo "breapoint".
5103
c2fd7fae
AKS
51042020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5105
5106 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
5107 to find the end of prologue for flang compiled binaries.
5108 * arm-tdep.c (arm_skip_prologue): Likewise.
5109 * i386-tdep.c (i386_skip_prologue): Likewise.
5110 * producer.c (producer_is_llvm): New function.
5111 (producer_parsing_tests): Added new tests for clang/flang.
5112 * producer.h (producer_is_llvm): New declaration.
5113
9327494e
SM
51142020-08-18 Simon Marchi <simon.marchi@efficios.com>
5115
5116 * linux-nat.c (linux_nat_debug_printf): New function.
5117 (linux_nat_debug_printf_1): New macro. Use throughout the file.
5118
d138725a
AM
51192020-08-18 Aaron Merey <amerey@redhat.com>
5120
5121 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
5122 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
5123 (CLIBS): Add DEBUGINFOD_LIBS.
5124
f9b11e6b
ST
51252020-08-17 Sergei Trofimovich <siarheit@google.com>
5126
5127 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
5128 'gdbarch_num_regs'.
5129
3ae7ab99
TT
51302020-08-17 Tom Tromey <tromey@adacore.com>
5131
5132 * ada-varobj.c (ada_varobj_decode_var): Handle case where
5133 ada_get_decoded_value returns NULL.
5134
b017825f
TT
51352020-08-17 Tom Tromey <tromey@adacore.com>
5136
5137 * python/py-inferior.c (infpy_search_memory): Use
5138 gdb_py_object_from_ulongest.
5139 * python/py-infevents.c (create_inferior_call_event_object)
5140 (create_memory_changed_event_object): Use
5141 gdb_py_object_from_ulongest.
5142 * python/py-linetable.c (ltpy_entry_get_pc): Use
5143 gdb_py_object_from_ulongest.
5144
7635cf79
SM
51452020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5146
5147 * loc.c (class symbol_needs_eval_context): Fix indentation.
5148
f54be24b
SM
51492020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5150
5151 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
5152 bool.
5153
53d5a2a5
TV
51542020-08-17 Tom de Vries <tdevries@suse.de>
5155
5156 PR gdb/26393
5157 * gdbtypes.c (dump_dynamic_prop): New function.
5158 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
5159
547ce8f0
TV
51602020-08-15 Tom de Vries <tdevries@suse.de>
5161
5162 PR backtrace/26390
5163 * stack.c (print_frame_args): Temporarily set the selected
5164 frame to FRAME while printing the frame's arguments.
5165
6ea815e7
PFC
51662020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5167
5168 PR breakpoints/26385
5169 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
5170 Always clear watchpoint with PTRACE_SET_DEBUGREG.
5171
6e562fa3
PFC
51722020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5173
5174 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
5175 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
5176 and >= to check return value instead of == -1 and != -1.
5177
d369b608
SM
51782020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
5179
5180 * utils.h (class gdb_argv) <as_array_view>: New method.
5181 * utils.c (gdb_argv_as_array_view_test): New.
5182 (_initialize_utils): Register selftest.
5183 * maint.c (maintenance_selftest): Use the new method.
5184
b31488a3
KR
51852020-08-13 Kamil Rytarowski <n54@gmx.com>
5186
5187 * target.h (supports_dumpcore, dumpcore): New
5188 function declarations.
5189 * target.c (supports_dumpcore, dumpcore): New
5190 functions.
5191 * target-delegates.c: Rebuild.
5192 * gcore.c (gcore_command): Use target_supports_dumpcore ()
5193 and target_dumpcore ().
5194
002a3166
AM
51952020-08-13 Aaron Merey <amerey@redhat.com>
5196
5197 * debuginfod-support.c: Replace global variables with user_data.
5198
ece5bc8a
SM
51992020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
5200
5201 * maint.c (maintenance_selftest): Split args and pass array_view
5202 to run_tests.
5203
6d8a0a5e
LM
52042020-08-12 Luis Machado <luis.machado@linaro.org>
5205
5206 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
5207 type's length.
5208 Use %s and pulongest to print the length.
5209
7cf663a9
PA
52102020-08-12 Pedro Alves <palves@redhat.com>
5211
5212 * NEWS: Move "Multi-target debugging support" item to the
5213 "Changes since GDB 9" section.
5214
27c7b875
PA
52152020-08-12 Pedro Alves <palves@redhat.com>
5216
5217 PR gdb/26336
5218 * progspace.c (program_space::remove_objfile): Invalidate the
5219 frame cache.
5220
1796a2a1
TV
52212020-08-11 Tom de Vries <tdevries@suse.de>
5222
5223 * MAINTAINERS: Mark ms1 as deleted.
5224
f8e3fe0d
LM
52252020-08-10 Luis Machado <luis.machado@linaro.org>
5226
5227 PR gdb/26310
5228
5229 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
5230 act accordingly.
5231 (aarch64_analyze_prologue_test): Add more unit tests to exercise
5232 movz/str/stur/stp skipping behavior.
5233
cc308722
LM
52342020-08-10 Luis Machado <luis.machado@linaro.org>
5235
5236 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
5237 struct user_sve_header instead of struct sve_context.
5238
041d9819
SM
52392020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
5240
5241 * read.h (dwarf2_fetch_die_loc_sect_off,
5242 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
5243 `void *` parameter with function_view.
5244 * read.c (dwarf2_fetch_die_loc_sect_off,
5245 dwarf2_fetch_die_loc_cu_off): Likewise.
5246 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
5247 (per_cu_dwarf_call): Adjust.
5248 (get_frame_address_in_block_wrapper): Remove.
5249 (indirect_synthetic_pointer): Adjust.
5250 (get_ax_pc): Remove.
5251 (dwarf2_compile_expr_to_ax): Adjust.
5252
38f8aa06
TV
52532020-08-08 Tom de Vries <tdevries@suse.de>
5254
5255 PR build/26344
5256 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
5257 constructor.
5258 * regcache.c (get_thread_arch_aspace_regcache): Same.
5259
a52b3ae2
TT
52602020-08-07 Tom Tromey <tromey@adacore.com>
5261
5262 * ravenscar-thread.c
5263 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
5264 New method.
5265 (ravenscar_thread_target::wait): Check
5266 runtime_initialized.
5267 (ravenscar_thread_target::prepare_to_store)
5268 (ravenscar_thread_target::stopped_by_sw_breakpoint)
5269 (ravenscar_thread_target::stopped_by_hw_breakpoint)
5270 (ravenscar_thread_target::stopped_by_watchpoint)
5271 (ravenscar_thread_target::stopped_data_address)
5272 (ravenscar_thread_target::core_of_thread): Use
5273 scoped_restore_current_thread and
5274 set_base_thread_from_ravenscar_task.
5275
0e29517d
TT
52762020-08-07 Tom Tromey <tromey@adacore.com>
5277
5278 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
5279
592f9bd7
TT
52802020-08-07 Tom Tromey <tromey@adacore.com>
5281
5282 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
5283 update_inferior_ptid before update_thread_list.
5284 (temporarily_change_regcache_ptid): New class.
5285 (ravenscar_thread_target::fetch_registers)
5286 (ravenscar_thread_target::store_registers)
5287 (ravenscar_thread_target::prepare_to_store): Use base thread when
5288 forwarding operation.
5289
39e2018a
TT
52902020-08-07 Tom Tromey <tromey@adacore.com>
5291
5292 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
5293 "is_pid" case.
5294
2080266b
TT
52952020-08-07 Tom Tromey <tromey@adacore.com>
5296
5297 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
5298 New methods.
5299 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
5300 first.
5301 (ravenscar_thread_target::add_thread): Rename from
5302 ravenscar_add_thread.
5303 (ravenscar_thread_target::update_thread_list): Use a lambda.
5304 (ravenscar_thread_target::xfer_partial): New method.
5305
78c02f21
TT
53062020-08-07 Tom Tromey <tromey@adacore.com>
5307
5308 * ada-lang.h (ada_task_list_iterator_ftype): Now a
5309 gdb::function_view.
5310 (iterate_over_live_ada_tasks): Change type of argument.
5311 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
5312 of argument.
5313
d5d833af
TT
53142020-08-07 Tom Tromey <tromey@adacore.com>
5315
5316 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
5317 Remove.
5318 (ravenscar_thread_target::extra_thread_info): Remove.
5319 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
5320 defer to target beneath for non-Ravenscar threads.
5321
a8ac85bb
TT
53222020-08-07 Tom Tromey <tromey@adacore.com>
5323
5324 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
5325 get_base_thread_from_ravenscar_task>: Now methods.
5326 <m_cpu_map>: New member.
5327 (ravenscar_thread_target::get_thread_base_cpu): Rename from
5328 ravenscar_get_thread_base_cpu. Check m_cpu_map.
5329 (ravenscar_thread_target::task_is_currently_active): Update.
5330 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
5331 Now a method.
5332 (ravenscar_thread_target::add_active_thread): Put initial thread
5333 into the m_cpu_map.
5334
550ab58d
TT
53352020-08-07 Tom Tromey <tromey@adacore.com>
5336
5337 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
5338 event_ptid.
5339
e9546579
TT
53402020-08-07 Tom Tromey <tromey@adacore.com>
5341
5342 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
5343 runtime_initialized.
5344
3d4470e5
TT
53452020-08-07 Tom Tromey <tromey@adacore.com>
5346
5347 * ravenscar-thread.c (ravenscar_thread_target): Don't call
5348 add_active_thread.
5349 (ravenscar_thread_target::add_active_thread): Now public.
5350 (ravenscar_inferior_created): Call add_active_thread after pushing
5351 the target.
5352
888bdb2b
SM
53532020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
5354
5355 * regcache.c (ptid_regcache_map): New type.
5356 (target_ptid_regcache_map): New type.
5357 (regcaches): Change type to target_ptid_regcache_map.
5358 (get_thread_arch_aspace_regcache): Update to regcaches' new
5359 type.
5360 (regcache_thread_ptid_changed): Likewise.
5361 (registers_changed_ptid): Likewise.
5362 (regcaches_size): Likewise.
5363 (regcaches_test): Update.
5364 (regcache_thread_ptid_changed): Update.
5365 * regcache.h (regcache_up): New type.
5366 * gdbsupport/ptid.h (hash_ptid): New struct.
5367
b161a60d
SM
53682020-08-07 Simon Marchi <simon.marchi@efficios.com>
5369
5370 * observable.h (thread_ptid_changed): Add parameter
5371 `process_stratum_target *`.
5372 * infrun.c (infrun_thread_ptid_changed): Add parameter
5373 `process_stratum_target *` and use it.
5374 (selftests): New namespace.
5375 (infrun_thread_ptid_changed): New function.
5376 (_initialize_infrun): Register selftest.
5377 * regcache.c (regcache_thread_ptid_changed): Add parameter
5378 `process_stratum_target *` and use it.
5379 (regcache_thread_ptid_changed): New function.
5380 (_initialize_regcache): Register selftest.
5381 * thread.c (thread_change_ptid): Pass target to
5382 thread_ptid_changed observable.
5383
d2854d8d
CT
53842020-08-06 Caroline Tice <cmtice@google.com>
5385
fe4c3d43
SM
5386 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
5387 (struct dwp_sections): Update field comments. Add loclists and
5388 rnglists fields.
5389 (struct virtual_v2_dwo_sections): Rename struct to
5390 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
5391 size & offset fields for loclists and rnglists.
5392 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
5393 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
5394 skipping dummy type units.
5395 (create_dwp_hash_table): Update the large comment above the function to
5396 discuss Version 5 DWP files as well, with references. Update all the
5397 version checks in the function to check for version 5 as well. Add new
5398 section at the end to create dwp hash table for version 5.
5399 (create_dwp_v2_section): Rename function to
5400 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
5401 Add V5 to error message text.
5402 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
5403 into calls to create_dwp_v2_or_v5_section.
5404 (create_dwo_unit_in_dwp_v5): New function.
5405 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
5406 check for version2; add else clause to handle version 5.
5407 (open_and_init_dwo_file): Add code to check dwarf version & only call
5408 create_debug_types_hash_table (with sections.types) if version is not 5;
5409 else call create_debug_type_hash_table, with sections.info.
5410 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
5411 version 5.
5412 (dwarf2_locate_v5_dwp_sections): New function.
5413 (open_and_init_dwp_file): Add else-if clause for version 5 to call
5414 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 5415
159ed7d9
SM
54162020-08-06 Simon Marchi <simon.marchi@efficios.com>
5417
5418 * regcache.h (class regcache): Remove friend
5419 registers_changed_ptid.
5420 <regcache_thread_ptid_changed>: Remove.
5421 <regcaches>: Remove.
5422 * regcache.c (regcache::regcaches): Rename to...
5423 (regcaches): ... this. Make static.
5424 (get_thread_arch_aspace_regcache): Update.
5425 (regcache::regcache_thread_ptid_changed): Rename to...
5426 (regcache_thread_ptid_changed): ... this. Update.
5427 (class regcache_access): Remove.
5428 (regcaches_test): Update.
5429 (_initialize_regcache): Update.
5430 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
5431 <forward_list>.
5432
174981ae
SM
54332020-08-06 Simon Marchi <simon.marchi@efficios.com>
5434
5435 * regcache.h (class regcache) <current_regcache>: Rename to...
5436 <regcaches>: ... this. Move doc here.
5437 * regcache.c (regcache::current_regcache) Rename to...
5438 (regcache::regcaches): ... this. Move doc to header.
5439 (get_thread_arch_aspace_regcache): Update.
5440 (regcache::regcache_thread_ptid_changed): Update.
5441 (registers_changed_ptid): Update.
5442 (class regcache_access) <current_regcache_size>: Rename to...
5443 <regcaches_size>: ... this.
5444 (current_regcache_test): Rename to...
5445 (regcaches_test): ... this.
5446 (_initialize_regcache): Update.
5447
ed908db6
VC
54482020-08-06 Victor Collod <vcollod@nvidia.com>
5449
5450 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
5451
b5582ab7
KB
54522020-08-05 Kevin Buettner <kevinb@redhat.com>
5453
5454 * corelow.c (core_target::build_file_mappings): Don't output
5455 null pathname in warning.
5456
ea946b86
SM
54572020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
5458
5459 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
5460 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
5461 gdb.dwarf2/dw2-single-line-discriminators.exp,
5462 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
5463
57d02173
TT
54642020-08-05 Tom Tromey <tromey@adacore.com>
5465
5466 PR rust/26197:
5467 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
5468 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
5469 Fix off-by-one and type size errors in ordinary case.
5470
5555c86d
TV
54712020-08-05 Tom de Vries <tdevries@suse.de>
5472
5473 * gdbtypes.c (type_not_allocated, type_not_associated): Use
5474 "prop->const_val () == 0" instead of "prop->const_val () != 0".
5475
97916bfe
SM
54762020-08-04 Simon Marchi <simon.marchi@efficios.com>
5477
5478 * frame.h (frame_id_p): Return bool.
5479 (frame_id_artificial_p): Return bool.
5480 (frame_id_eq): Return bool.
5481 (has_stack_frames): Return bool.
5482 (get_selected_frame): Fix typo in comment.
5483 (get_frame_pc_if_available): Return bool.
5484 (get_frame_address_in_block_if_available): Return bool.
5485 (get_frame_func_if_available): Return bool.
5486 (read_frame_register_unsigned): Return bool.
5487 (get_frame_register_bytes): Return bool.
5488 (safe_frame_unwind_memory): Return bool.
5489 (deprecated_frame_register_read): Return bool.
5490 (frame_unwinder_is): Return bool.
5491 * frame.c (struct frame_info) <prev_arch::p>: Change type to
5492 bool.
5493 <this_id::p>: Likewise.
5494 <prev_p>: Likewise.
5495 (frame_stash_add): Return bool.
5496 (get_frame_id): Use bool.
5497 (frame_id_build_special) Use bool.
5498 (frame_id_build_unavailable_stack): Use bool.
5499 (frame_id_build): Use bool.
5500 (frame_id_p): Return bool, use true/false instead of 1/0.
5501 (frame_id_artificial_p): Likewise.
5502 (frame_id_eq): Likewise.
5503 (frame_id_inner): Likewise.
5504 (get_frame_func_if_available): Likewise.
5505 (read_frame_register_unsigned): Likewise.
5506 (deprecated_frame_register_read): Likewise.
5507 (get_frame_register_bytes): Likewise.
5508 (has_stack_frames): Likewise.
5509 (inside_main_func): Likewise.
5510 (inside_entry_func): Likewise.
5511 (get_frame_pc_if_available): Likewise.
5512 (get_frame_address_in_block_if_available): Likewise.
5513 (frame_unwinder_is): Likewise.
5514 (safe_frame_unwind_memory): Likewise.
5515 (frame_unwind_arch): Likewise.
5516
fedfee88
SM
55172020-08-04 Simon Marchi <simon.marchi@efficios.com>
5518
5519 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
5520 type to cached_copy_status.
5521 (fprintf_frame): Adjust.
5522 (get_frame_func_if_available): Adjust.
5523 (frame_cleanup_after_sniffer): Adjust.
5524
6cfa9b59
MW
55252020-08-04 Mark Wielaard <mark@klomp.org>
5526
5527 * MAINTAINERS (Write After Approval): Update email address.
5528
66d6346b
SM
55292020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5530
5531 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
5532 dynamic_prop::const_val.
5533
8a6d5e35
SM
55342020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5535
5536 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
5537 dynamic_prop::kind.
5538
51d6067d
SM
55392020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5540
5541 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
5542
b26e2ae7
JM
55432020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
5544
5545 * configure.tgt: Set gdb_sim for bpf-*-* targets.
5546
39791af2
JM
55472020-08-04 Weimin Pan <weimin.pan@oracle.com>
5548 Jose E. Marchesi <jose.marchesi@oracle.com>
5549
5550 * configure.tgt: Add entry for bpf-*-*.
5551 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
5552 (ALLDEPFILES): Add bpf-tdep.c.
5553 * bpf-tdep.c: New file.
5554 * MAINTAINERS: Add bpf target and maintainer.
5555 * NEWS: Mention the support for the new target.
5556
521894aa
TV
55572020-08-04 Tom de Vries <tdevries@suse.de>
5558
5559 PR symtab/23270
5560 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
5561 Error.
5562
5d6356e9
JB
55632020-08-03 John Baldwin <jhb@FreeBSD.org>
5564
5565 * syscalls/freebsd.xml: Regenerate.
5566
0cf82b81
JB
55672020-08-03 John Baldwin <jhb@FreeBSD.org>
5568
5569 * syscalls/update-freebsd.sh: Fix usage and year range.
5570
8f34b746
TV
55712020-08-03 Tom de Vries <tdevries@suse.de>
5572
5573 PR symtab/26333
5574 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
5575 DW_LNE_lo_user/DW_LNE_hi_user range.
5576
5e500d33
SM
55772020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
5578
5579 PR ada/26318
5580 * ada-lang.c (ada_modulus): Return 0 if property is not of const
5581 kind.
5582
78319c15
TBA
55832020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5584
5585 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
5586
4c55e970
TBA
55872020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5588
5589 * breakpoint.c (set_breakpoint_condition): Update the condition
5590 expressions after checking that the input condition string parses
5591 successfully and does not contain junk at the end.
5592
1e620590
TBA
55932020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5594
5595 * breakpoint.c (set_breakpoint_condition): Update the
5596 condition string after parsing the new condition successfully.
5597
c8693053
RO
55982020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5599
5600 * proc-api.c (_STRUCTURED_PROC): Don't define.
5601 * proc-events.c: Likewise.
5602 * proc-flags.c: Likewise.
5603 * proc-why.c: Likewise.
5604 * procfs.c: Likewise.
5605
5606 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
5607 * configure, config.in: Regenerate.
5608
5a99adb8
TV
56092020-07-30 Tom de Vries <tdevries@suse.de>
5610
5611 PR build/26320
5612 * ui-style.h (struct ui_file_style::color): Wrap m_value and
5613 m_red/m_green/m_blue in a union.
5614
8ba83e91
TV
56152020-07-29 Tom de Vries <tdevries@suse.de>
5616
5617 PR tdep/26280
5618 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
5619
f75a0693
AB
56202020-07-28 Tom Tromey <tromey@adacore.com>
5621
5622 PR symtab/26270:
5623 * symtab.h (find_pc_partial_function_sym): Declare.
5624 * cli/cli-cmds.c (disassemble_command): Use
5625 find_pc_partial_function_sym. Check asm_demangle.
5626 * blockframe.c (cache_pc_function_sym): New global.
5627 (cache_pc_function_name): Remove.
5628 (clear_pc_function_cache): Update.
5629 (find_pc_partial_function_sym): New function, from
5630 find_pc_partial_function.
5631 (find_pc_partial_function): Rewrite using
5632 find_pc_partial_function_sym.
5633
16f3242c
TT
56342020-07-28 Tom Tromey <tromey@adacore.com>
5635
5636 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
5637 help. Add usage.
5638
4888741a
TT
56392020-07-28 Tom Tromey <tromey@adacore.com>
5640
5641 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
5642 <DW_OP_GNU_variable_value>: Cast to address type.
5643
4d46f402
KR
56442020-07-28 Kamil Rytarowski <n54@gmx.com>
5645
5646 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
5647 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
5648 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
5649 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
5650 (nbsd_get_siginfo_type): New.
5651 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
5652 (_initialize_nbsd_tdep): New.
5653
d70f978b
L
56542020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5655
5656 PR binutils/26301
5657 * configure: Regenerated.
5658
377170fa
L
56592020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5660
5661 PR binutils/26301
5662 * configure: Regenerated.
5663
43d5901d
AB
56642020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5665
5666 * python/py-frame.c: Remove 'user-regs.h' include.
5667 (frapy_read_register): Rewrite to make use of
5668 gdbpy_parse_register_id.
5669 * python/py-registers.c (gdbpy_parse_register_id): New function,
5670 moved here from python/py-unwind.c. Updated the return type, and
5671 also accepts register descriptor objects.
5672 * python/py-unwind.c: Remove 'user-regs.h' include.
5673 (pyuw_parse_register_id): Moved to python/py-registers.c.
5674 (unwind_infopy_add_saved_register): Update to use
5675 gdbpy_parse_register_id.
5676 (pending_framepy_read_register): Likewise.
5677 * python/python-internal.h (gdbpy_parse_register_id): Declare.
5678
14fa8fb3
AB
56792020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5680
5681 * python/py-registers.c: Add 'user-regs.h' include.
5682 (register_descriptor_iter_find): New function.
5683 (register_descriptor_iterator_object_methods): New static global
5684 methods array.
5685 (register_descriptor_iterator_object_type): Add pointer to methods
5686 array.
5687
ddce1758
JB
56882020-07-27 John Baldwin <jhb@FreeBSD.org>
5689
5690 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
5691 for all architectures on FreeBSD 11.3 and later.
5692
a4089f52
TT
56932020-07-27 Tom Tromey <tromey@adacore.com>
5694
5695 * gcore.h (load_corefile): Don't declare.
5696
95420d30
TV
56972020-07-27 Tom de Vries <tdevries@suse.de>
5698
5699 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
5700 * config.in: Regenerate.
5701 * configure: Regenerate.
5702
05a6b8c2
EZ
57032020-07-26 Eli Zaretskii <eliz@gnu.org>
5704
5705 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
5706 ws2tcpip.h. When checking whether socklen_t type is defined, use
5707 ws2tcpip.h if it is available and sys/socket.h isn't.
5708 * configure: Regenerate.
5709 * config.in: Regenerate.
5710
e79eb02f
AB
57112020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
5712
5713 PR fortran/23051
5714 PR fortran/26139
5715 * valops.c (value_ind): Pass address to
5716 readjust_indirect_value_type.
5717 * value.c (readjust_indirect_value_type): Make parameter
5718 non-const, and add extra address parameter. Resolve original type
5719 before using it.
5720 * value.h (readjust_indirect_value_type): Update function
5721 signature and comment.
5722
876518dd
TV
57232020-07-25 Tom de Vries <tdevries@suse.de>
5724
5725 PR symtab/26243
5726 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
5727 entries.
5728
f6720b1c
AM
57292020-07-24 Aaron Merey <amerey@redhat.com>
5730
5731 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
5732 * configure: Rebuild.
5733
513487e1
KB
57342020-07-23 Kevin Buettner <kevinb@redhat.com>
5735
5736 PR corefiles/26294
5737 * corelow.c (_initialize_corelow): Add period to help text
5738 for "maintenance print core-file-backed-mappings".
5739
e7bc9db8
PA
57402020-07-23 Pedro Alves <pedro@palves.net>
5741
5742 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
5743 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
5744 meanwhile.
5745 * frame.c (frame_cache_generation, get_frame_cache_generation):
5746 New.
5747 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
5748 (get_prev_frame_if_no_cycle): On exception, don't touch
5749 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
5750 * frame.h (get_frame_cache_generation): Declare.
5751
90fcc466
TV
57522020-07-23 Tom de Vries <tdevries@suse.de>
5753
5754 PR tui/26282
5755 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
5756 New default constructor.
5757
78344df7
AB
57582020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
5759
5760 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
5761 exclude non-statement entries.
5762
b089853a
KB
57632020-07-22 Kevin Buettner <kevinb@redhat.com>
5764
5765 * NEWS (New commands): Mention new command
5766 "maintenance print core-file-backed-mappings".
5767
09c2f5d4
KB
57682020-07-22 Kevin Buettner <kevinb@redhat.com>
5769
5770 * corelow.c (gdbcmd.h): Include.
5771 (core_target::info_proc_mappings): New method.
5772 (get_current_core_target): New function.
5773 (maintenance_print_core_file_backed_mappings): New function.
5774 (_initialize_corelow): Add core-file-backed-mappings to
5775 "maint print" commands.
5776
9c5ec5c2 57772020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 5778
9c5ec5c2
KB
5779 * linux-tdep.c (dump_note_entry_p): New function.
5780 (linux_dump_mapping_p_ftype): New typedef.
5781 (linux_find_memory_regions_full): Add new parameter,
5782 should_dump_mapping_p.
5783 (linux_find_memory_regions): Adjust call to
5784 linux_find_memory_regions_full.
5785 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
5786 call to linux_find_memory_regions_full.
5787
db082f59
KB
57882020-07-22 Kevin Buettner <kevinb@redhat.com>
5789
5790 * corelow.c (solist.h, unordered_map): Include.
5791 (class core_target): Add field m_core_file_mappings and
5792 method build_file_mappings.
5793 (core_target::core_target): Call build_file_mappings.
5794 (core_target::~core_target): Free memory associated with
5795 m_core_file_mappings.
5796 (core_target::build_file_mappings): New method.
5797 (core_target::xfer_partial): Use m_core_file_mappings
5798 for memory transfers.
5799 * linux-tdep.c (linux_read_core_file_mappings): New
5800 function.
5801 (linux_core_info_proc_mappings): Rewrite to use
5802 linux_read_core_file_mappings.
5803 (linux_init_abi): Register linux_read_core_file_mappings.
5804
7e183d27
KB
58052020-07-22 Kevin Buettner <kevinb@redhat.com>
5806
5807 * arch-utils.c (default_read_core_file_mappings): New function.
5808 * arch-utils.c (default_read_core_file_mappings): Declare.
5809 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
5810 * gdbarch.h, gdbarch.c: Regenerate.
5811
2735d421
KB
58122020-07-22 Kevin Buettner <kevinb@redhat.com>
5813
5814 PR corefiles/25631
5815 * corelow.c (core_target:xfer_partial): Revise
5816 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
5817 case after first checking the stratum beneath the core
5818 target.
5819 (has_all_memory): Return true.
5820 * target.c (raw_memory_xfer_partial): Revise comment
5821 regarding use of has_all_memory.
5822
e56cb451
KB
58232020-07-22 Kevin Buettner <kevinb@redhat.com>
5824
5825 * exec.h (section_table_xfer_memory): Revise declaration,
5826 replacing section name parameter with an optional callback
5827 predicate.
5828 * exec.c (section_table_xfer_memory): Likewise.
5829 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
5830 of section_table_xfer_memory.
5831
32fa152e
TT
58322020-07-22 Tom Tromey <tromey@adacore.com>
5833
5834 * mi/mi-cmd-stack.c (list_args_or_locals): Use
5835 lookup_symbol_search_name.
5836
a67a1c41
AB
58372020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5838
5839 * python/py-registers.c (gdbpy_register_object_data_init): Remove
5840 redundant local variable.
5841 (gdbpy_get_register_descriptor): Extract descriptor vector as a
5842 reference, not pointer, update code accordingly.
5843
a7b4ff4f
SM
58442020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5845 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5846
5847 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
5848 * jit.c (jit_breakpoint_re_set_internal): Use the
5849 `skip_jit_symbol_lookup` field.
5850
2340e834
SM
58512020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5852 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5853
5854 * jit.c (jit_read_descriptor): Define the descriptor address once,
5855 use twice.
5856 (jit_breakpoint_deleted): Move the declaration of the loop variable
5857 `iter` into the loop header.
5858 (jit_breakpoint_re_set_internal): Move the declaration of the local
5859 variable `objf_data` to the first point of definition.
5860 (jit_event_handler): Move the declaration of local variables
5861 `code_entry`, `entry_addr`, and `objf` to their first point of use.
5862 Rename `objf` to `jited`.
5863
c1072906
SM
58642020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5865
5866 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
5867 Remove.
5868 * jit.c (get_jiter_objfile_data): Update.
5869
c8474dc3
TBA
58702020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5871 Simon Marchi <simon.marchi@polymtl.ca>
5872
5873 * jit.c (struct jit_program_space_data): Remove.
5874 (jit_program_space_key): Remove.
5875 (jiter_objfile_data::~jiter_objfile_data): Remove program space
5876 stuff.
5877 (get_jit_program_space_data): Remove.
5878 (jit_breakpoint_deleted): Iterate on all of the program space's
5879 objfiles.
5880 (jit_inferior_init): Likewise.
5881 (jit_breakpoint_re_set_internal): Likewise. Also change return
5882 type to void.
5883 (jit_breakpoint_re_set): Pass current_program_space to
5884 jit_breakpoint_re_set_internal.
5885
77208eb7
SM
58862020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5887
5888 * jit.h (struct jiter_objfile_data) <cached_code_address,
5889 jit_breakpoint>: Move to here from ...
5890 * jit.c (jit_program_space_data): ... here.
5891 (jiter_objfile_data::~jiter_objfile_data): Update.
5892 (jit_breakpoint_deleted): Update.
5893 (jit_breakpoint_re_set_internal): Update.
5894
8c1c720f
SM
58952020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5896
5897 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
5898 checks.
5899 (jit_read_descriptor): Remove NULL check.
5900 (jit_event_handler): Add an assertion.
5901
0e74a041
SM
59022020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5903
5904 * jit.h (struct jit_objfile_data): Split into...
5905 (struct jiter_objfile_data): ... this ...
5906 (struct jited_objfile_data): ... and this.
5907 * objfiles.h (struct objfile) <jit_data>: Remove.
5908 <jiter_data, jited_data>: New fields.
5909 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
5910 (jiter_objfile_data::~jiter_objfile_data): ... this.
5911 (get_jit_objfile_data): Rename to ...
5912 (get_jiter_objfile_data): ... this.
5913 (add_objfile_entry): Update.
5914 (jit_read_descriptor): Use get_jiter_objfile_data.
5915 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
5916 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
5917 (jit_inferior_exit_hook): Use objfile's jited_data field.
5918
238b5c9f
SM
59192020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5920
5921 * jit.h: Forward-declare `struct minimal_symbol`.
5922 (struct jit_objfile_data): Migrate to here from jit.c; also add a
5923 constructor, destructor, and an objfile* field.
5924 * jit.c (jit_objfile_data): Remove.
5925 (struct jit_objfile_data): Migrate from here to jit.h.
5926 (jit_objfile_data::~jit_objfile_data): New destructor
5927 implementation with code moved from free_objfile_data.
5928 (free_objfile_data): Delete.
5929 (get_jit_objfile_data): Update to use the jit_data field of objfile.
5930 (jit_find_objf_with_entry_addr): Ditto.
5931 (jit_inferior_exit_hook): Ditto.
5932 (_initialize_jit): Remove the call to
5933 register_objfile_data_with_cleanup.
5934 * objfiles.h (struct objfile) <jit_data>: New field.
5935
fe053b9e
TBA
59362020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5937
5938 * jit.h: Forward-declare `struct objfile`.
5939 (jit_event_handler): Add a second parameter, the JITer objfile.
5940 * jit.c (jit_read_descriptor): Change the signature to take the
5941 JITer objfile as an argument instead of the jit_program_space_data.
5942 (jit_inferior_init): Update the call to jit_read_descriptor.
5943 (jit_event_handler): Use the new JITer objfile argument when calling
5944 jit_read_descriptor.
5945 * breakpoint.c (handle_jit_event): Update the call to
5946 jit_event_handler to pass the JITer objfile.
5947
4cec0c66
JB
59482020-07-21 John Baldwin <jhb@FreeBSD.org>
5949
5950 * gdbarch.c: Regenerate.
5951 * gdbarch.h: Regenerate.
5952 * gdbarch.sh (handle_segmentation_fault): Remove method.
5953 * infrun.c (handle_segmentation_fault): Remove.
5954 (print_signal_received_reason): Remove call to
5955 handle_segmentation_fault.
5956
0e42f66a
JB
59572020-07-21 John Baldwin <jhb@FreeBSD.org>
5958
5959 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
5960 Rename to sparc64_linux_report_signal_info and add siggnal
5961 argument.
5962 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
5963 instead of sparc64_linux_handle_segmentation_fault.
5964
77bdfeb2
JB
59652020-07-21 John Baldwin <jhb@FreeBSD.org>
5966
5967 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
5968 i386_linux_report_signal_info instead of
5969 i386_linux_handle_segmentation_fault.
5970 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
5971 to i386_linux_report_signal_info and add siggnal argument.
5972 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
5973 of i386_linux_handle_segmentation_fault.
5974 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
5975 to i386_linux_report_signal_info and add siggnal argument.
5976
ad97bfc5
JB
59772020-07-21 John Baldwin <jhb@FreeBSD.org>
5978
5979 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
5980 hook if present.
5981
272bb05c
JB
59822020-07-21 John Baldwin <jhb@FreeBSD.org>
5983
5984 * gdbarch.c: Regenerate.
5985 * gdbarch.h: Regenerate.
5986 * gdbarch.sh (report_signal_info): New method.
5987 * infrun.c (print_signal_received_reason): Invoke gdbarch
5988 report_signal_info hook if present.
5989
baf8791e
AB
59902020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
5991
5992 * python/py-registers.c : Add 'unordered_map' include.
5993 (gdbpy_new_reggroup): Renamed to...
5994 (gdbpy_get_reggroup): ...this. Update to only create register
5995 group descriptors when needed.
5996 (gdbpy_reggroup_iter_next): Update.
5997
f7306dac
AB
59982020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
5999
6000 * python/py-registers.c (gdbpy_register_object_data): New static
6001 global.
6002 (gdbpy_register_object_data_init): New function.
6003 (gdbpy_new_register_descriptor): Renamed to...
6004 (gdbpy_get_register_descriptor): ...this, and update to reuse
6005 existing register descriptors where possible.
6006 (gdbpy_register_descriptor_iter_next): Update.
6007 (gdbpy_initialize_registers): Register new gdbarch data.
6008
05c309a8
SM
60092020-07-21 Simon Marchi <simon.marchi@efficios.com>
6010
6011 * linux-nat.c (stopped_pids): Make static.
6012
d1fd641e
SM
60132020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
6014
6015 PR ada/26235
6016 * gdbtypes.c (ada_discrete_type_low_bound,
6017 ada_discrete_type_high_bound): Handle undefined bounds.
6018
1de14d77
KR
60192020-07-21 Kamil Rytarowski <n54@gmx.com>
6020
6021 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
6022 declaration.
6023 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
6024 function.
6025
ed810cc7
JB
60262020-07-20 John Baldwin <jhb@FreeBSD.org>
6027
6028 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
6029 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
6030 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
6031 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
6032 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
6033 method.
6034
ae5369e7
LC
60352020-07-20 Ludovic Courtès <ludo@gnu.org>
6036
6037 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
6038 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
6039 which are deprecated in Guile 3.0.
6040 * configure.ac (try_guile_versions): Add "guile-3.0".
6041 * configure (try_guile_versions): Regenerate.
6042 * NEWS: Update entry.
6043
68cf161c
LC
60442020-07-20 Ludovic Courtès <ludo@gnu.org>
6045 Doug Evans <dje@google.com>
6046
6047 PR gdb/21104
6048 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
6049 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
6050 USING_GUILE_BEFORE_2_2.
6051 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
6052 Change type to 'scm_t_port_type *'.
6053 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
6054 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
6055 parameter and honor it. Update callers.
6056 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
6057 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
6058 functions.
6059 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
6060 USING_GUILE_BEFORE_2_2.
6061 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
6062 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
6063 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
6064 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
6065 and 'SCM_PORT_TYPE'.
6066 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
6067 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
6068 (gdbscm_memory_port_read, gdbscm_memory_port_write)
6069 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
6070 [!USING_GUILE_BEFORE_2_2]: New functions.
6071 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
6072 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
6073 'gdbscm_memory_port_read'.
6074 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
6075 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
6076 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
6077 function.
6078 (ioscm_init_memory_port): Remove.
6079 (ioscm_init_memory_port_stream): New function
6080 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
6081 function.
6082 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6083 Return scm_from_uint (0).
6084 (gdbscm_set_memory_port_read_buffer_size_x)
6085 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6086 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6087 Return scm_from_uint (0).
6088 (gdbscm_set_memory_port_write_buffer_size_x)
6089 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6090 * configure.ac (try_guile_versions): Add "guile-2.2".
6091 * configure: Regenerate.
6092 * NEWS: Add entry.
6093
aee91db3
TT
60942020-07-18 Tom Tromey <tom@tromey.com>
6095
6096 * linux-nat.c (linux_multi_process): Remove.
6097 (linux_nat_target::supports_multi_process): Return true.
6098
0e267416
AB
60992020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6100
6101 * arch/riscv.c (riscv_tdesc_cache): Change map type.
6102 (riscv_lookup_target_description): Return pointer out of
6103 unique_ptr.
6104 * target-descriptions.c (allocate_target_description): Add
6105 comment.
6106 (target_desc_deleter::operator()): Likewise.
6107 * target-descriptions.h (struct target_desc_deleter): Moved to
6108 gdbsupport/tdesc.h.
6109 (target_desc_up): Likewise.
6110
f80c8ec4
TT
61112020-07-17 Tom Tromey <tromey@adacore.com>
6112
6113 * linux-nat.c (linux_nat_target::supports_non_stop)
6114 (linux_nat_target::always_non_stop_p): Use "true".
6115 (linux_nat_target::supports_disable_randomization): Use "true" and
6116 "false".
6117
d0ce17d8
CT
61182020-07-16 Caroline Tice <cmtice@google.com>
6119
6120 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
6121 (RNGLIST_HEADER_SIZE64): New constant definition.
6122 (struct dwop_section_names): Add rnglists_dwo.
6123 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
6124 (struct loclist_header): Rename to 'loclists_rnglists_header'.
6125 (struct dwo_sections): Add rnglists field.
6126 (read_attribut_reprocess): Add tag parameter.
6127 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
6128 (cu_debug_rnglists_section): New function (decl & definition).
6129 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
6130 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
6131 die whose range is being checked; get rnglist section from
6132 cu_debug_rnglists_section, to get from either objfile or dwo file as
6133 appropriate. Add cases for DW_RLE_base_addressx,
6134 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
6135 the base address to DW_RLE_offset_pairs (not to all ranges), moving
6136 test inside if-condition and updating complaint message.
6137 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
6138 dwarf2_rnglists_process.
6139 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
6140 dwarf2_ranges_process.
6141 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
6142 need_ranges_base and update comment appropriately. Also pass die tag
6143 to dwarf2_ranges_read.
6144 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
6145 need_ranges_base and update comment appropriately. Also pass die tag
6146 to dwarf2_ranges_process.
6147 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
6148 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
6149 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
6150 need_ranges_base and update comment appropriately. Also pass die tag
6151 to read_attribute_reprocess and dwarf2_ranges_read.
6152 (read_loclist_header): Rename function to read_loclists_rnglists_header,
6153 and update function comment appropriately.
6154 (read_loclist_index): Call read_loclists_rnglists_header instead of
6155 read_loclist_header.
6156 (read_rnglist_index): New function.
6157 (read_attribute_reprocess): Add tag parameter. Add code for
6158 DW_FORM_rnglistx, passing tag to read_rnglist_index.
6159 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
6160
3dcc261c
AB
61612020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
6162
6163 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
6164 being resolved.
6165
ccb9eba6
AB
61662020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
6167
6168 * arch-utils.c (show_architecture): Update formatting of messages.
6169
cf88be68
SM
61702020-07-12 Simon Marchi <simon.marchi@efficios.com>
6171
6172 * gdbtypes.h (struct type) <bounds>: Handle array and string
6173 types.
6174 * ada-lang.c (assign_aggregate): Use type::bounds on
6175 array/string type.
6176 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
6177 * c-varobj.c (c_number_of_children): Likewise.
6178 (c_describe_child): Likewise.
6179 * eval.c (evaluate_subexp_for_sizeof): Likewise.
6180 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
6181 (f_type_print_base): Likewise.
6182 * f-valprint.c (f77_array_offset_tbl): Likewise.
6183 (f77_get_upperbound): Likewise.
6184 (f77_print_array_1): Likewise.
6185 * guile/scm-type.c (gdbscm_type_range): Likewise.
6186 * m2-typeprint.c (m2_array): Likewise.
6187 (m2_is_long_set_of_type): Likewise.
6188 * m2-valprint.c (get_long_set_bounds): Likewise.
6189 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
6190 * python/py-type.c (typy_range): Likewise.
6191 * rust-lang.c (rust_internal_print_type): Likewise.
6192 * type-stack.c (type_stack::follow_types): Likewise.
6193 * valarith.c (value_subscripted_rvalue): Likewise.
6194 * valops.c (value_cast): Likewise.
6195
509971ae
SM
61962020-07-12 Simon Marchi <simon.marchi@efficios.com>
6197
6198 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
6199 callers to use the equivalent accessor methods.
6200
107406b7
SM
62012020-07-12 Simon Marchi <simon.marchi@efficios.com>
6202
6203 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
6204 (struct type) <bit_stride>: New method.
6205 (TYPE_BIT_STRIDE): Remove.
6206 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
6207
bb789949
SM
62082020-07-12 Simon Marchi <simon.marchi@efficios.com>
6209
6210 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
6211 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
6212 callers to use the equivalent accessor methods instead.
6213
39498edb
SM
62142020-07-12 Simon Marchi <simon.marchi@efficios.com>
6215
6216 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
6217 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
6218 callers to use the equivalent accessor methods instead.
6219
3b606f38
SM
62202020-07-12 Simon Marchi <simon.marchi@efficios.com>
6221
6222 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
6223 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
6224 to use dynamic_prop::kind.
6225
064d9cb9
SM
62262020-07-12 Simon Marchi <simon.marchi@efficios.com>
6227
6228 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
6229 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
6230 to get the bound property's kind and check against
6231 PROP_UNDEFINED.
6232
5537ddd0
SM
62332020-07-12 Simon Marchi <simon.marchi@efficios.com>
6234
6235 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
6236 all callers to use type::range_bounds followed by
6237 dynamic_prop::{low,high}.
6238
8c2e4e06
SM
62392020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6240
6241 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
6242 const_val, set_const_val, baton, set_locexpr, set_loclist,
6243 set_addr_offset, variant_parts, set_variant_parts,
6244 original_type, set_original_type>: New methods.
6245 <kind>: Rename to...
6246 <m_kind>: ... this. Update all users to use the new methods
6247 instead.
6248 <data>: Rename to...
6249 <m_data>: ... this. Update all users to use the new methods
6250 instead.
6251
7c6f2712
SM
62522020-07-12 Simon Marchi <simon.marchi@efficios.com>
6253
6254 * gdbtypes.c (get_discrete_bounds): Return failure if
6255 the range type's bounds are not both defined and constant
6256 values.
6257 (get_array_bounds): Update comment. Remove undefined bound check.
6258
599088e3
SM
62592020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6260
6261 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
6262 the type::bounds method directly.
6263
c4dfcb36
SM
62642020-07-12 Simon Marchi <simon.marchi@efficios.com>
6265
6266 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
6267 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
6268 are used to set the range type's bounds to use set_bounds.
6269
0a278aa7
PW
62702020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6271
6272 * exec.c (_initialize_exec): Update exec-file-mismatch help.
6273
cce20f10
PA
62742020-07-10 Pedro Alves <pedro@palves.net>
6275
6276 * gdbthread.h (inferior_ref): Define.
6277 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
6278 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
6279 * thread.c
6280 (scoped_restore_current_thread::restore):
6281 Adjust to gdb::ref_ptr.
6282 (scoped_restore_current_thread::~scoped_restore_current_thread):
6283 Remove manual decref handling.
6284 (scoped_restore_current_thread::scoped_restore_current_thread):
6285 Adjust to use
6286 inferior_ref::new_reference/thread_info_ref::new_reference.
6287 Incref the thread before calling get_frame_id instead of after.
6288 Let TARGET_CLOSE_ERROR propagate.
6289
6d7aa592
PA
62902020-07-10 Pedro Alves <pedro@palves.net>
6291
6292 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
6293 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
6294 NOT_AVAILABLE_ERROR.
6295 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
6296 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
6297
b3e3a4c1
SM
62982020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6299 Pedro Alves <pedro@palves.net>
6300
6301 PR gdb/26199
6302 * infrun.c (threads_are_resumed_pending_p): Delete.
6303 (do_target_wait): Remove threads_are_executing and
6304 threads_are_resumed_pending_p checks from the inferior_matches
6305 lambda. Update comments.
6306
d6cc5d98
PA
63072020-07-10 Pedro Alves <pedro@palves.net>
6308
6309 PR gdb/26199
6310 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
6311 executing threads.
6312
7d3badc6
PA
63132020-07-10 Pedro Alves <pedro@palves.net>
6314
6315 PR gdb/26199
6316 * infrun.c (handle_no_resumed): Handle multiple targets.
6317
42bd97a6
PA
63182020-07-10 Pedro Alves <pedro@palves.net>
6319
6320 PR gdb/26199
6321 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
6322 target_is_async_p.
6323
43667cc6
PA
63242020-07-10 Pedro Alves <pedro@palves.net>
6325
6326 PR gdb/26199
6327 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
6328 threads, not all threads.
6329
96118d11
PA
63302020-07-10 Pedro Alves <pedro@palves.net>
6331
6332 PR gdb/26199
6333 * remote.c (remote_target::open_1): Pass remote target pointer as
6334 data to create_async_event_handler.
6335 (remote_async_inferior_event_handler): Mark async event handler
6336 before returning if the remote target still has either pending
6337 events or unacknowledged notifications.
6338
54904d81
JB
63392020-07-10 John Baldwin <jhb@FreeBSD.org>
6340
6341 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
6342 declaration.
6343 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
6344 function.
6345
f37e5866
JB
63462020-07-09 John Baldwin <jhb@FreeBSD.org>
6347
6348 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
6349 inferior_ptid.
6350
fc238d4a
JB
63512020-07-09 John Baldwin <jhb@FreeBSD.org>
6352
6353 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
6354 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
6355 AT_FREEBSD_PS_STRINGS.
6356
6e2469ff
HD
63572020-07-08 Hannes Domani <ssbssa@yahoo.de>
6358
6359 * auto-load.c (auto_load_objfile_script_1): Convert drive part
6360 of debugfile path on Windows.
6361
d1076c41
JB
63622020-07-08 John Baldwin <jhb@FreeBSD.org>
6363
6364 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
6365 argument to 'data'.
6366
15f3b077
TT
63672020-07-08 Tom Tromey <tromey@adacore.com>
6368
6369 * ada-lang.c (ada_exception_message_1): Use read_memory.
6370
9fc501fd
AB
63712020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6372
6373 PR python/22748
6374 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
6375 special handling for inline frames.
6376 * findvar.c (value_of_register_lazy): Skip inline frames when
6377 creating lazy register values.
6378 * frame.c (frame_id_computed_p): Delete definition.
6379 * frame.h (frame_id_computed_p): Delete declaration.
6380
64cb3757
AB
63812020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6382
6383 * NEWS: Mention additions to Python API.
6384 * python/py-arch.c (archpy_register_groups): New function.
6385 (arch_object_methods): Add 'register_groups' method.
6386 * python/py-registers.c (reggroup_iterator_object): New struct.
6387 (reggroup_object): New struct.
6388 (gdbpy_new_reggroup): New function.
6389 (gdbpy_reggroup_to_string): New function.
6390 (gdbpy_reggroup_name): New function.
6391 (gdbpy_reggroup_iter): New function.
6392 (gdbpy_reggroup_iter_next): New function.
6393 (gdbpy_new_reggroup_iterator): New function
6394 (gdbpy_initialize_registers): Register new types.
6395 (reggroup_iterator_object_type): Define new Python type.
6396 (gdbpy_reggroup_getset): New static global.
6397 (reggroup_object_type): Define new Python type.
6398 * python/python-internal.h
6399
0f767f94
AB
64002020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6401
6402 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
6403 * python/py-arch.c (archpy_registers): New function.
6404 (arch_object_methods): Add 'registers' method.
6405 * python/py-registers.c: New file.
6406 * python/python-internal.h
6407 (gdbpy_new_register_descriptor_iterator): Declare.
6408 (gdbpy_initialize_registers): Declare.
6409 * python/python.c (do_start_initialization): Call
6410 gdbpy_initialize_registers.
6411 * NEWS: Mention additions to the Python API.
6412
87dbc774
AB
64132020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6414
6415 * NEWS: Mention new Python API method.
6416 * python/py-unwind.c (pending_framepy_architecture): New function.
6417 (pending_frame_object_methods): Add architecture method.
6418
3bc98c0c
AB
64192020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6420
6421 * gdbarch.c: Regenerate.
6422 * gdbarch.h: Regenerate.
6423 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
6424 (gdbarch_data): Use internal_error for the case where
6425 deprecated_set_gdbarch_data was originally needed.
6426 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
6427 and use passed in obstack.
6428 (libunwind_frame_set_descr): Should no longer get back NULL from
6429 gdbarch_data.
6430 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
6431 type.
6432 * user-regs.c (user_regs_init): Update parameters, and use passed
6433 in obstack.
6434 (user_reg_add): Should no longer get back NULL from gdbarch_data.
6435 (_initialize_user_regs): Register as a pre-init gdbarch data type.
6436
d8cc8af6
TV
64372020-07-06 Tom de Vries <tdevries@suse.de>
6438
6439 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
6440 End-Of-Sequence in lte_is_less_than.
6441 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
6442 "gdb: Don't reorder line table entries too much when sorting".
6443
947f7597
TV
64442020-07-06 Tom de Vries <tdevries@suse.de>
6445
6446 PR tui/26205
6447 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
6448
1e7c1b22
TV
64492020-07-05 Tom de Vries <tdevries@suse.de>
6450
6451 PR build/26187
6452 * inferior.h (struct infcall_suspend_state_deleter): If available, use
6453 std::uncaught_exceptions instead of deprecated
6454 std::uncaught_exception.
6455
a36158ec
SM
64562020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6457
6458 * macroexp.h (macro_stringify): Return
6459 gdb::unique_xmalloc_ptr<char>.
6460 * macroexp.c (macro_stringify): Likewise.
6461 * macrotab.c (fixup_definition): Update.
6462
14d960c8
SM
64632020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6464
6465 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
6466 (lex_one_token): Update.
6467 * macroexp.c (struct macro_buffer) <release>: Return
6468 gdb::unique_xmalloc_ptr<char>.
6469 (macro_stringify): Update.
6470 (macro_expand): Update.
6471 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
6472 * macroexp.h (macro_expand_next): Likewise.
6473
211d5b1c
SM
64742020-07-02 Simon Marchi <simon.marchi@efficios.com>
6475
6476 * macroexp.h (macro_lookup_ftype): Remove.
6477 (macro_expand, macro_expand_once, macro_expand_next): Remove
6478 lookup function parameters, add scope parameter.
6479 * macroexp.c (scan, substitute_args, expand, maybe_expand,
6480 macro_expand, macro_expand_once, macro_expand_next): Likewise.
6481 * macroscope.h (standard_macro_lookup): Change parameter type
6482 to macro_scope.
6483 * macroscope.c (standard_macro_lookup): Likewise.
6484 * c-exp.y (lex_one_token): Update.
6485 * macrocmd.c (macro_expand_command): Likewise.
6486 (macro_expand_once_command): Likewise.
6487
b1a35af2
SM
64882020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6489
6490 * inf-loop.c (inferior_event_handler): Remove client_data param.
6491 * inf-loop.h (inferior_event_handler): Likewise.
6492 * infcmd.c (step_1): Adjust.
6493 * infrun.c (proceed): Adjust.
6494 (fetch_inferior_event): Remove client_data param.
6495 (infrun_async_inferior_event_handler): Adjust.
6496 * infrun.h (fetch_inferior_event): Remove `void *` param.
6497 * linux-nat.c (handle_target_event): Adjust.
6498 * record-btrace.c (record_btrace_handle_async_inferior_event):
6499 Adjust.
6500 * record-full.c (record_full_async_inferior_event_handler):
6501 Adjust.
6502 * remote.c (remote_async_inferior_event_handler): Adjust.
6503
1cdf9e33
TT
65042020-07-01 Tom Tromey <tom@tromey.com>
6505
6506 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
6507 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
6508
32c1e210
TT
65092020-07-01 Tom Tromey <tom@tromey.com>
6510
6511 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
6512 tui_gen_win_info.
6513 (tui_win_info::make_window): Merge with
6514 tui_gen_win_info::make_window.
6515 (tui_win_info::make_visible): Move from tui_gen_win_info.
6516 * tui/tui-win.c (tui_win_info::max_width): Move from
6517 tui_gen_win_info.
6518 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
6519 type.
6520 <window_factory>: Likewise.
6521 * tui/tui-layout.c (tui_win_info::resize): Move from
6522 tui_gen_win_info.
6523 (make_standard_window): Change return type.
6524 (get_locator_window, tui_get_window_by_name): Likewise.
6525 (tui_layout_window::apply): Remove a cast.
6526 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
6527 (struct tui_win_info): Merge with tui_gen_win_info.
6528 (struct tui_gen_win_info): Remove.
6529
a30cb6da
TT
65302020-07-01 Tom Tromey <tom@tromey.com>
6531
6532 * tui/tui-stack.h (struct tui_locator_window): Derive from
6533 tui_win_info.
6534 <do_scroll_horizontal, do_scroll_vertical>: New methods.
6535 <can_box>: New method.
6536
1eb2161f
TT
65372020-07-01 Tom Tromey <tom@tromey.com>
6538
6539 * tui/tui-stack.h (struct tui_locator_window): Remove body.
6540
7134f2eb
TT
65412020-07-01 Tom Tromey <tom@tromey.com>
6542
6543 * tui/tui-regs.c (tui_data_window::display_registers_from)
6544 (tui_data_window::display_registers_from)
6545 (tui_data_window::first_data_item_displayed)
6546 (tui_data_window::delete_data_content_windows): Update.
6547 (tui_data_window::refresh_window, tui_data_window::no_refresh):
6548 Remove.
6549 (tui_data_window::check_register_values): Update.
6550 (tui_data_item_window::rerender): Add parameters. Update.
6551 (tui_data_item_window::refresh_window): Remove.
6552 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
6553 virtual.
6554 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
6555 tui_gen_win_info.
6556 <refresh_window, max_height, min_height>: Remove.
6557 <rerender>: Add parameters.
6558 <x, y, visible>: New members.
6559 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
6560 <m_item_width>: New member.
6561
22b7b041
TT
65622020-07-01 Tom Tromey <tom@tromey.com>
6563
6564 * tui/tui-regs.c (tui_data_window::show_register_group)
6565 (tui_data_window::check_register_values): Update.
6566 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
6567 from item_no.
6568
c9753adb
TT
65692020-07-01 Tom Tromey <tom@tromey.com>
6570
6571 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
6572 useless "if".
6573
9ab26b4a
TT
65742020-07-01 Tom Tromey <tom@tromey.com>
6575
6576 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
6577 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
6578
e555083f
TT
65792020-07-01 Tom Tromey <tom@tromey.com>
6580
6581 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
6582 * tui/tui-winsource.h (enum tui_line_or_address_kind)
6583 (struct tui_line_or_address): Move from tui-data.h.
6584 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
6585 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
6586 (tui_cmd_window, tui_source_window_base, tui_source_window)
6587 (tui_disasm_window): Don't declare.
6588 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
6589 to tui-winsource.h.
6590 (SINGLE_KEY): Move to tui-stack.c.
6591
7a02bab7
TT
65922020-07-01 Tom Tromey <tom@tromey.com>
6593
6594 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
6595 std::string.
6596 * tui/tui-regs.c (class tab_expansion_file): New.
6597 (tab_expansion_file::write): New method.
6598 (tui_register_format): Change return type. Use
6599 tab_expansion_file.
6600 (tui_get_register, tui_data_window::display_registers_from)
6601 (tui_data_item_window::rerender): Update.
6602 * tui/tui-io.h (tui_expand_tabs): Don't declare.
6603 * tui/tui-io.c (tui_expand_tabs): Remove.
6604
ea68593b
TT
66052020-07-01 Tom Tromey <tom@tromey.com>
6606
6607 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
6608
a8caed5d
FS
66092020-07-01 Fangrui Song <maskray@google.com>
6610
6611 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
6612
9cdf9820
AKS
66132020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6614
6615 * dwarf2/read.c (set_die_type): Removed conditions to restrict
6616 forms for DW_AT_associated and DW_AT_allocated attributes,
6617 which is already checked in function attr_to_dynamic_prop.
6618
a1520ad8
TT
66192020-06-30 Tom Tromey <tromey@adacore.com>
6620
6621 * dwarf2/read.c (quirk_rust_enum): Correctly call
6622 alloc_rust_variant for default-less enum.
6623
5ac58899
TT
66242020-06-30 Tom Tromey <tromey@adacore.com>
6625
6626 PR build/26183:
6627 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
6628 gdb::to_string.
6629
19b187a9
SM
66302020-06-29 Simon Marchi <simon.marchi@efficios.com>
6631
6632 * gdbarch.sh (displaced_step_copy_insn): Update doc.
6633 * gdbarch.h: Re-generate.
6634
cd4c4c07
TT
66352020-06-28 Tom Tromey <tom@tromey.com>
6636
6637 * command.h (cmd_types): Remove.
6638 (cmd_type): Don't declare.
6639 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
6640 typedef.
6641 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
6642 * cli/cli-decode.c (cmd_type): Remove.
6643
05779d57
PA
66442020-06-27 Pedro Alves <palves@redhat.com>
6645
6646 * fork-child.c (prefork_hook): Adjust.
6647 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
6648 Delete.
6649 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
6650 * inferior.c (inferior::set_tty, inferior::tty): New methods.
6651 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
6652 Remove declarations.
6653 (struct inferior) <set_tty, tty>: New methods.
6654 (struct inferior) <terminal>: Rename to ...
6655 (struct inferior) <m_terminal>: ... this and make private.
6656 * main.c (captured_main_1): Adjust.
6657 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
6658 (mi_cmd_inferior_tty_show): Adjust.
6659 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
6660 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
6661
1776e3e5
NA
66622020-06-26 Nick Alcock <nick.alcock@oracle.com>
6663
6664 * configure.ac: Add --enable-libctf: handle --disable-static
6665 properly.
6666 * acinclude.m4: sinclude ../config/enable.m4.
6667 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
6668 (LIBCTF): Substitute in.
6669 (CTF_DEPS): New, likewise.
6670 (CLIBS): libctf needs symbols from libbfd: move earlier.
6671 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
6672 flags.
6673 * ctfread.c: Surround in ENABLE_LIBCTF.
6674 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
6675 * configure: Regenerate.
6676 * config.in: Likewise.
6677
58373b80
SM
66782020-06-25 Simon Marchi <simon.marchi@efficios.com>
6679
6680 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
6681
277474ee
SM
66822020-06-25 Simon Marchi <simon.marchi@efficios.com>
6683
6684 * inferior.h (struct inferior) <terminal>: Change type to
6685 gdb::unique_xmalloc_ptr<char>.
6686 * inferior.c (inferior::~inferior): Don't free inf->terminal.
6687 * infcmd.c (set_inferior_io_terminal): Don't free terminal
6688 field, adjust to unique pointer.
6689 (get_inferior_io_terminal): Adjust to unique pointer.
6690
6d74da72
AB
66912020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6692
6693 * riscv-tdep.c (riscv_print_registers_info): Loop over all
6694 registers, not just the known core set of registers.
6695
2e52d038
AB
66962020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6697
6698 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
6699 fflags, frm, and fcsr registers.
6700 (riscv_register_reggroup_p): Remove unknown CSRs from save and
6701 restore groups.
6702 (riscv_tdesc_unknown_reg): New function.
6703 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
6704 tdesc_use_registers.
6705 * riscv-tdep.h (struct gdbarch_tdep): Add
6706 unknown_csrs_first_regnum, unknown_csrs_count,
6707 duplicate_fflags_regnum, duplicate_frm_regnum, and
6708 duplicate_fcsr_regnum fields.
6709
be64fd07
AB
67102020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6711
6712 * target-descriptions.c (tdesc_use_registers): Add new parameter a
6713 callback, use the callback (when not null) to help number unknown
6714 registers.
6715 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
6716 (tdesc_use_registers): Add extra parameter to declaration.
6717
3b9fce96
AB
67182020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6719
6720 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
6721 in the file.
6722 (class riscv_pending_register_alias): Likewise.
6723 (riscv_register_feature::register_info): Change 'required_p' field
6724 to 'required', and change its type. Add 'check' member function.
6725 (riscv_register_feature::register_info::check): Define new member
6726 function.
6727 (riscv_xreg_feature): Change initialisation of 'required' field.
6728 (riscv_freg_feature): Likewise.
6729 (riscv_virtual_feature): Likewise.
6730 (riscv_csr_feature): Likewise.
6731 (riscv_check_tdesc_feature): Take extra parameter, the csr
6732 tdesc_feature, rewrite the function to use the new
6733 riscv_register_feature::register_info::check function.
6734 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
6735
865bad26
AB
67362020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6737
6738 * features/Makefile: Remove all references to the deleted files
6739 below.
6740 * features/riscv/32bit-csr.c: Deleted.
6741 * features/riscv/32bit-csr.xml: Deleted.
6742 * features/riscv/64bit-csr.c: Deleted.
6743 * features/riscv/64bit-csr.xml: Deleted.
6744 * features/riscv/rebuild-csr-xml.sh: Deleted.
6745
ed69cbc8
AB
67462020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6747
6748 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
6749 whitespace error for declaration of names member variable.
6750 (struct riscv_register_feature): Add new prefer_first_name member
6751 variable, and fix whitespace error in declaration of registers.
6752 (riscv_xreg_feature): Initialize prefer_first_name field.
6753 (riscv_freg_feature): Likewise.
6754 (riscv_virtual_feature): Likewise.
6755 (riscv_csr_feature): Likewise.
6756 (riscv_register_name): Expand on comments. Remove register name
6757 modifications for CSR and virtual registers.
6758
4445e8f5
AB
67592020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6760
6761 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
6762 errors.
6763
767a879e
AB
67642020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6765
6766 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
6767 riscv-opc.h.
6768 (class riscv_pending_register_alias): New class.
6769 (riscv_check_tdesc_feature): Take vector of pending aliases and
6770 populate it as appropriate.
6771 (riscv_setup_register_aliases): Delete.
6772 (riscv_gdbarch_init): Create vector of pending aliases and pass it
6773 to riscv_check_tdesc_feature in all cases. Use the vector to
6774 create the register aliases.
6775
bb6e55f3
RO
67762020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6777
6778 * sol2-tdep.c (sol2_static_transform_name): Remove.
6779 (sol2_init_abi): Don't register it.
6780 * gdbarch.sh (static_transform_name): Remove.
6781 * gdbarch.c, gdbarch.h: Regenerate.
6782
6783 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
6784 gdbarch_static_transform_name.
6785 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
6786 * stabsread.c (define_symbol) <'X'>: Remove.
6787 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
6788 handling.
6789 <'V'>: Likewise.
6790 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
6791 <'S'>: Remove call to gdbarch_static_transform_name.
6792
c6d36836
RO
67932020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6794
6795 * procfs.c (procfs_pre_trace): New function.
6796 (procfs_target::create_inferior): Pass it to fork_inferior.
6797
a7e6196b
RO
67982020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6799
6800 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
6801 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
6802 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
6803 sol2-tdep.o, sparc-sol2-tdep.o.
6804 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
6805 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
6806 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
6807 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
6808
d412e696
RO
68092020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6810
6811 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
6812 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
6813 Call sol2_init_abi.
6814 Remove calls to set_gdbarch_skip_solib_resolver,
6815 set_gdbarch_core_pid_to_str.
6816 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
6817 (i386_sol2_static_transform_name): Remove.
6818 (i386_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 Use sol2_sigtramp_p.
6823 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
6824 (sol2_sigtramp_p): New function.
6825 (sol2_static_transform_name): New function.
6826 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
6827 (sol2_init_abi): New function.
6828 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
6829 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
6830 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
6831 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
6832 (sparc_sol2_static_transform_name): Remove.
6833 (sparc32_sol2_init_abi): Call sol2_init_abi.
6834 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6835 set_gdbarch_static_transform_name,
6836 set_gdbarch_skip_solib_resolver,
6837 set_gdbarch_core_pid_to_str.
6838 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
6839 (sparc_sol2_static_transform_name): Remove
6840 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
6841 call sol2_sigtramp_p.
6842 (sparc64_sol2_init_abi): Call sol2_init_abi.
6843 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6844 set_gdbarch_static_transform_name,
6845 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6846
a8654e7d
PW
68472020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6848
6849 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
6850 * exec.c (validate_exec_file): If from_tty, set both
6851 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
6852 * symfile.c (symbol_file_add_with_addrs): if always_confirm
6853 and from_tty, unconditionally ask a confirmation.
6854
caa7fd04
AB
68552020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6856
6857 * target-descriptions.c (tdesc_architecture_name): Protect against
6858 NULL pointer dereference.
6859 (maint_print_xml_tdesc_cmd): New function.
6860 (_initialize_target_descriptions): Register new 'maint print
6861 xml-tdesc' command and give it the filename completer.
6862 * NEWS: Mention new 'maint print xml-tdesc' command.
6863
fbf42f4e
AB
68642020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6865
6866 * target-descriptions.c (class tdesc_compatible_info): New class.
6867 (struct target_desc): Change type of compatible vector.
6868 (tdesc_compatible_p): Update for change in type of
6869 target_desc::compatible.
6870 (tdesc_compatible_info_list): New function.
6871 (tdesc_compatible_info_arch_name): New function.
6872 (tdesc_add_compatible): Update for change in type of
6873 target_desc::compatible.
6874 (print_c_tdesc::visit_pre): Likewise.
6875
20821f4e
AB
68762020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6877
6878 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
6879 whitespace to underscore.
6880 (maint_print_c_tdesc_cmd): Use fake filename for target
6881 descriptions that came from the target.
6882 (_initialize_target_descriptions): Add filename command completion
6883 for 'maint print c-tdesc'.
6884
1fb5ee62
SM
68852020-06-23 Simon Marchi <simon.marchi@efficios.com>
6886
6887 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
6888 lines.
6889
fc3ecb3e
SM
68902020-06-23 Simon Marchi <simon.marchi@efficios.com>
6891
6892 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
6893 lines.
6894 (dwarf2_find_location_expression): Likewise.
6895 (call_site_parameter_matches): Likewise.
6896 (dwarf2_compile_expr_to_ax): Likewise.
6897 (disassemble_dwarf_expression): Likewise.
6898 (loclist_describe_location): Likewise.
6899
236ef034
PA
69002020-06-23 Pedro Alves <palves@redhat.com>
6901
6902 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
6903 progspace-and-thread.h. Include scoped-mock-context.h instead.
6904 (register_to_value_test): Use scoped_mock_context.
6905 * regcache.c: Include "scoped-mock-context.h".
6906 (cooked_read_test): Don't error out if a target is already pushed.
6907 Use scoped_mock_context. Adjust.
6908 * scoped-mock-context.h: New file.
6909
39e7ecca
AB
69102020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6911
6912 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
6913 initializer.
6914 (ada_language::is_string_type_p): New member function.
6915 * c-lang.c (c_language_data): Delete la_is_string_type_p
6916 initializer.
6917 (cplus_language_data): Likewise.
6918 (asm_language_data): Likewise.
6919 (minimal_language_data): Likewise.
6920 * d-lang.c (d_language_data): Likewise.
6921 * f-lang.c (f_is_string_type_p): Delete function, implementation
6922 moved to f_language::is_string_type_p.
6923 (f_language_data): Delete la_is_string_type_p initializer.
6924 (f_language::is_string_type_p): New member function,
6925 implementation from f_is_string_type_p.
6926 * go-lang.c (go_is_string_type_p): Delete function, implementation
6927 moved to go_language::is_string_type_p.
6928 (go_language_data): Delete la_is_string_type_p initializer.
6929 (go_language::is_string_type_p): New member function,
6930 implementation from go_is_string_type_p.
6931 * language.c (language_defn::is_string_type_p): Define new member
6932 function.
6933 (default_is_string_type_p): Make static, add comment copied from
6934 header file.
6935 (unknown_language_data): Delete la_is_string_type_p initializer.
6936 (unknown_language::is_string_type_p): New member function.
6937 (auto_language_data): Delete la_is_string_type_p initializer.
6938 (auto_language::is_string_type_p): New member function.
6939 * language.h (language_data): Delete la_is_string_type_p field.
6940 (language_defn::is_string_type_p): Declare new function.
6941 (default_is_string_type_p): Delete desclaration, move comment to
6942 definition.
6943 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
6944 moved to m2_language::is_string_type_p.
6945 (m2_language_data): Delete la_is_string_type_p initializer.
6946 (m2_language::is_string_type_p): New member function,
6947 implementation from m2_is_string_type_p.
6948 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
6949 initializer.
6950 * opencl-lang.c (opencl_language_data): Likewise.
6951 * p-lang.c (pascal_is_string_type_p): Delete function,
6952 implementation moved to pascal_language::is_string_type_p.
6953 (pascal_language_data): Delete la_is_string_type_p initializer.
6954 (pascal_language::is_string_type_p): New member function,
6955 implementation from pascal_is_string_type_p.
6956 * rust-lang.c (rust_is_string_type_p): Delete function,
6957 implementation moved to rust_language::is_string_type_p.
6958 (rust_language_data): Delete la_is_string_type_p initializer.
6959 (rust_language::is_string_type_p): New member function,
6960 implementation from rust_is_string_type_p.
6961 * valprint.c (val_print_scalar_or_string_type_p): Update call to
6962 is_string_type_p.
6963
4ffc13fb
AB
69642020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6965
6966 * ada-lang.c (ada_language_data): Delete la_print_typedef
6967 initializer.
6968 (ada_language::print_typedef): New member function.
6969 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
6970 (cplus_language_data): Likewise.
6971 (asm_language_data): Likewise.
6972 (minimal_language_data): Likewise.
6973 * d-lang.c (d_language_data): Likewise.
6974 * f-lang.c (f_language_data): Likewise.
6975 (f_language::print_typedef): New member function.
6976 * go-lang.c (go_language_data): Delete la_print_typedef
6977 initializer.
6978 * language.c (language_defn::print_typedef): Define member
6979 function.
6980 (unknown_language_data): Delete la_print_typedef initializer.
6981 (unknown_language::print_typedef): New member function.
6982 (auto_language_data): Delete la_print_typedef initializer.
6983 (auto_language::print_typedef): New member function.
6984 * language.h (language_data): Delete la_print_typedef field.
6985 (language_defn::print_typedef): Declare new member function.
6986 (LA_PRINT_TYPEDEF): Update call to print_typedef.
6987 (default_print_typedef): Delete declaration.
6988 * m2-lang.c (m2_language_data): Delete la_print_typedef
6989 initializer.
6990 (m2_language::print_typedef): New member function.
6991 * objc-lang.c (objc_language_data): Delete la_print_typedef
6992 initializer.
6993 * opencl-lang.c (opencl_language_data): Likewise.
6994 * p-lang.c (pascal_language_data): Likewise.
6995 (pascal_language::print_typedef): New member function.
6996 * rust-lang.c (rust_print_typedef): Delete function,
6997 implementation moved to rust_language::print_typedef.
6998 (rust_language): Delete la_print_typedef initializer.
6999 (rust_language::print_typedef): New member function,
7000 implementation from rust_print_typedef.
7001 * typeprint.c (default_print_typedef): Delete.
7002
d711ee67
AB
70032020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7004
7005 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
7006 (ada_language::printstr): New member function.
7007 * c-lang.c (c_language_data): Delete la_printstr initializer.
7008 (cplus_language_data): Likewise.
7009 (asm_language_data): Likewise.
7010 (minimal_language_data): Likewise.
7011 * d-lang.c (d_language_data): Likewise.
7012 * f-lang.c (f_printstr): Rename to f_language::printstr.
7013 (f_language_data): Delete la_printstr initializer.
7014 (f_language::printstr): New member function, implementation from
7015 f_printstr.
7016 * go-lang.c (go_language_data): Delete la_printstr initializer.
7017 * language.c (language_defn::printstr): Define new member
7018 function.
7019 (unk_lang_printstr): Delete.
7020 (unknown_language_data): Delete la_printstr initializer.
7021 (unknown_language::printstr): New member function.
7022 (auto_language_data): Delete la_printstr initializer.
7023 (auto_language::printstr): New member function.
7024 * language.h (language_data): Delete la_printstr field.
7025 (language_defn::printstr): Declare new member function.
7026 (LA_PRINT_STRING): Update call to printstr.
7027 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
7028 (m2_language_data): Delete la_printstr initializer.
7029 (m2_language::printstr): New member function, implementation from
7030 m2_printstr.
7031 * objc-lang.c (objc_language_data): Delete la_printstr
7032 initializer.
7033 * opencl-lang.c (opencl_language_data): Likewise.
7034 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
7035 (pascal_language_data): Delete la_printstr initializer.
7036 (pascal_language::printstr): New member function, implementation
7037 from pascal_printstr.
7038 * p-lang.h (pascal_printstr): Delete declaration.
7039 * rust-lang.c (rust_printstr): Update header comment.
7040 (rust_language_data): Delete la_printstr initializer.
7041 (rust_language::printstr): New member function.
7042
52b50f2c
AB
70432020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7044
7045 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
7046 (ada_language::printchar): New member function.
7047 * c-lang.c (c_language_data): Delete la_printchar initializer.
7048 (cplus_language_data): Likewise.
7049 (asm_language_data): Likewise.
7050 (minimal_language_data): Likewise.
7051 * d-lang.c (d_language_data): Likewise.
7052 * f-lang.c (f_printchar): Rename to f_language::printchar.
7053 (f_language_data): Delete la_printchar initializer.
7054 (f_language::printchar): New member function, implementation from
7055 f_printchar.
7056 * go-lang.c (go_language_data): Delete la_printchar initializer.
7057 * language.c (unk_lang_printchar): Delete.
7058 (language_defn::printchar): Define new member function.
7059 (unknown_language_data): Delete la_printchar initializer.
7060 (unknown_language::printchar): New member function.
7061 (auto_language_data): Delete la_printchar initializer.
7062 (auto_language::printchar): New member function.
7063 * language.h (language_data): Delete la_printchar field.
7064 (language_defn::printchar): Declare new member function.
7065 (LA_PRINT_CHAR): Update call to printchar.
7066 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
7067 (m2_language::printchar): New member function.
7068 * objc-lang.c (objc_language_data): Delete la_printchar
7069 initializer.
7070 * opencl-lang.c (opencl_language_data): Likewise.
7071 * p-lang.c (pascal_language_data): Delete la_printchar
7072 initializer.
7073 (pascal_language::printchar): New member function.
7074 * rust-lang.c (rust_printchar): Rename to
7075 rust_language::printchar.
7076 (rust_language_data): Delete la_printchar initializer.
7077 (rust_language::printchar): New member function, implementation
7078 from rust_printchar.
7079
ec8cec5b
AB
70802020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7081
7082 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
7083 (ada_language_data): Delete la_emitchar initializer.
7084 (ada_language::emitchar): New member function, implementation from
7085 emit_char.
7086 * c-lang.c (c_language_data): Delete la_emitchar initializer.
7087 (cplus_language_data): Likewise.
7088 (asm_language_data): Likewise.
7089 (minimal_language_data): Likewise.
7090 * d-lang.c (d_language_data): Likewise.
7091 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
7092 (f_language_data): Delete la_emitchar initializer.
7093 (f_language::emitchar): New member function, implementation from
7094 f_emit_char.
7095 * go-lang.c (go_language_data): Delete la_emitchar initializer.
7096 * language.c (unk_lang_emit_char): Delete.
7097 (language_defn::emitchar): New member function definition.
7098 (unknown_language_data): Delete la_emitchar initializer.
7099 (unknown_language::emitchar): New member function.
7100 (auto_language_data): Delete la_emitchar initializer.
7101 (auto_language::emitchar): New member function.
7102 * language.h (language_data): Delete la_emitchar field.
7103 (language_defn::emitchar): New member field declaration.
7104 (LA_EMIT_CHAR): Update call to emitchar.
7105 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
7106 (m2_language_data): Delete la_emitchar initializer.
7107 (m2_language::emitchar): New member function, implementation from
7108 m2_emit_char.
7109 * objc-lang.c (objc_language_data): Delete la_emitchar
7110 initializer.
7111 * opencl-lang.c (opencl_language_data): Likewise.
7112 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
7113 (pascal_language_data): Delete la_emitchar initializer.
7114 (pascal_language::emitchar): New member function, implementation
7115 from pascal_emit_char.
7116 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
7117 (rust_language_data): Delete la_emitchar initializer.
7118 (rust_language::emitchar): New member function, implementation
7119 from rust_emitchar.
7120
1bf9c363
AB
71212020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7122
7123 * ada-lang.c (resolve): Rename to ada_language::post_parser.
7124 (ada_language_data): Delete la_post_parser initializer.
7125 (ada_language::post_parser): New member function.
7126 * c-lang.c (c_language_data): Delete la_post_parser initializer.
7127 (cplus_language_data): Likewise.
7128 (asm_language_data): Likewise.
7129 (minimal_language_data): Likewise.
7130 * d-lang.c (d_language_data): Likewise.
7131 * f-lang.c (f_language_data): Likewise.
7132 * go-lang.c (go_language_data): Likewise.
7133 * language.c (unknown_language_data): Likewise.
7134 (auto_language_data): Likewise.
7135 * language.h (language_data): Delete la_post_parser field.
7136 (language_defn::post_parser): New member function.
7137 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
7138 * objc-lang.c (objc_language_data): Likewise.
7139 * opencl-lang.c (opencl_language_data): Likewise.
7140 * p-lang.c (pascal_language_data): Likewise.
7141 * parse.c (parse_exp_in_context): Update call to post_parser.
7142 (null_post_parser): Delete definition.
7143 * parser-defs.h (null_post_parser): Delete declaration.
7144 * rust-lang.c (rust_language_data): Delete la_post_parser
7145 initializer.
7146
87afa652
AB
71472020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7148
7149 * ada-lang.c (parse): Rename to ada_language::parser.
7150 (ada_language_data): Delete la_parser initializer.
7151 (ada_language::parser): New member function, implementation from
7152 parse.
7153 * c-lang.c (c_language_data): Delete la_parser initializer.
7154 (cplus_language_data): Likewise.
7155 (asm_language_data): Likewise.
7156 (minimal_language_data): Likewise.
7157 * d-lang.c (d_language_data): Likewise.
7158 (d_language::parser): New member function.
7159 * f-lang.c (f_language_data): Delete la_parser initializer.
7160 (f_language::parser): New member function.
7161 * go-lang.c (go_language_data): Delete la_parser initializer.
7162 (go_language::parser): New member function.
7163 * language.c (unk_lang_parser): Delete.
7164 (language_defn::parser): Define new member function.
7165 (unknown_language_data): Delete la_parser initializer.
7166 (unknown_language::parser): New member function.
7167 (auto_language_data): Delete la_parser initializer.
7168 (auto_language::parser): New member function.
7169 * language.h (language_data): Delete la_parser field.
7170 (language_defn::parser): Declare new member function.
7171 * m2-lang.c (m2_language_data): Delete la_parser initializer.
7172 (m2_language::parser): New member function.
7173 * objc-lang.c (objc_language_data): Delete la_parser initializer.
7174 * opencl-lang.c (opencl_language_data): Likewise.
7175 * p-lang.c (pascal_language_data): Likewise.
7176 (pascal_language::parser): New member function.
7177 * parse.c (parse_exp_in_context): Update call to parser.
7178 * rust-lang.c (rust_language_data): Delete la_parser initializer.
7179 (rust_language::parser): New member function.
7180
37825800
AB
71812020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7182
7183 * top.c (print_gdb_configuration): Print --with-python-libdir
7184 configuration value.
7185
5b860c93
PW
71862020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7187
7188 * NEWS: Mention change to the alias command.
7189
cf00cd6f
PW
71902020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7191
7192 * cli/cli-cmds.c (lookup_cmd_for_default_args)
7193 (alias_command_completer)
7194 (make_alias_options_def_group): New functions.
7195 (alias_opts, alias_option_defs): New struct and array.
7196 (alias_usage_error): Update usage.
7197 (alias_command): Handles optional DEFAULT-ARGS... arguments.
7198 Use option framework.
7199 (_initialize_cli_cmds): Update alias command help.
7200 Update aliases command help.
7201 (show_user):
7202 Add NULL for new default_args lookup_cmd argument.
7203 (valid_command_p): Rename to validate_aliased_command.
7204 Add NULL for new default_args lookup_cmd argument. Verify that the
7205 aliased_command has no default args.
7206 * cli/cli-decode.c (help_cmd): Show aliases definitions.
7207 (lookup_cmd_1, lookup_cmd): New argument default_args.
7208 (add_alias_cmd):
7209 Add NULL for new default_args lookup_cmd argument.
7210 (print_help_for_command): Show default args under the layout
7211 alias some_alias = some_aliased_cmd some_alias_default_arg.
7212 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
7213 xfree default_args in destructor.
7214 * cli/cli-script.c (process_next_line, do_define_command):
7215 Add NULL for new default_args lookup_cmd argument.
7216 * command.h: Declare new default_args argument in lookup_cmd
7217 and lookup_cmd_1.
7218 * completer.c (complete_line_internal_1):
7219 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7220 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
7221 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
7222 Likewise.
7223 * infcmd.c (_initialize_infcmd): Likewise.
7224 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
7225 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
7226 * python/py-param.c (add_setshow_generic): Likewise.
7227 * remote.c (_initialize_remote): Likewise.
7228 * top.c (execute_command): Prepend default_args if command has some.
7229 (set_verbose):
7230 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7231 * tracepoint.c (validate_actionline, encode_actions_1):
7232 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7233
bd920864
TBA
72342020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7235
7236 * jit.c (jit_read_descriptor): Use bool as the return type.
7237 (jit_breakpoint_re_set_internal): Use bool as the return type.
7238 Invert the return value logic; return true if the jit breakpoint
7239 has been successfully initialized.
7240 (jit_inferior_init): Update the call to
7241 jit_breakpoint_re_set_internal.
7242
f8098322
PA
72432020-06-22 Pedro Alves <palves@redhat.com>
7244
7245 PR gdb/25939
7246 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
7247 Use the current inferior instead. Don't return
7248 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
7249 wait again.
7250 * sol-thread.c (sol_thread_target::wait): Don't reference
7251 inferior_ptid.
7252 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
7253 (sol_update_thread_list_callback): Use the current inferior's pid
7254 instead of inferior_ptid.
7255
196535a6
RO
72562020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7257
7258 * procfs.c: Cleanup many comments.
7259
7260 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
7261 (AFTER_WATCHFLAG): Replace by value.
7262
7263 (MAIN_PROC_NAME_FORMAT): Inline ...
7264 (create_procinfo): ... here.
7265
7266 (procfs_debug_inferior): Remove SYS_exec handling.
7267 (syscall_is_exec): Likewise.
7268 (procfs_set_exec_trap): Likewise.
7269
7270 (syscall_is_lwp_exit): Inline in callers.
7271 (syscall_is_exit): Likewise.
7272 (syscall_is_exec): Likewise.
7273 (syscall_is_lwp_create): Likewise.
7274
7275 (invalidate_cache): Remove #if 0 code.
7276
7277 (make_signal_thread_runnable): Remove.
7278 (procfs_target::resume): Remove #if 0 code.
7279
cf6f3e86
RO
72802020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7281
7282 PR gdb/25939
7283 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
7284 call ...
7285 (procfs_target::create_inferior): ... here.
7286
48e9cc84
PW
72872020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7288
7289 * exec.c (validate_exec_file): Ensure the build-id is up to
7290 date by calling reopen_exec_file (that checks file timestamp
7291 to decide to re-read the file).
7292
3922b302
PA
72932020-06-18 Pedro Alves <palves@redhat.com>
7294
7295 PR gdb/25412
7296 * gdbthread.h (delete_thread, delete_thread_silent)
7297 (find_thread_ptid): Update comments.
7298 * thread.c (current_thread_): New global.
7299 (is_current_thread): Move higher, and reimplement.
7300 (inferior_thread): Reimplement.
7301 (set_thread_exited): Use bool. Add assertions.
7302 (add_thread_silent): Simplify thread-reuse handling by always
7303 calling delete_thread.
7304 (delete_thread): Remove intro comment.
7305 (find_thread_ptid): Skip exited threads.
7306 (switch_to_thread_no_regs): Write to current_thread_.
7307 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
7308 INFERIOR_PTID. Clear current_thread_.
7309
6dbdab44
PA
73102020-06-18 Pedro Alves <palves@redhat.com>
7311
7312 * aix-thread.c (pd_update): Use switch_to_thread.
7313
2da4b788
PA
73142020-06-18 Pedro Alves <palves@redhat.com>
7315
7316 * ravenscar-thread.c (ravenscar_thread_target): Update.
7317 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
7318 (ravenscar_thread_target::add_active_thread): ... this. Don't
7319 set m_base_ptid here. Update to avoid referencing inferior_ptid.
7320 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
7321
50838d1b
PA
73222020-06-18 Pedro Alves <palves@redhat.com>
7323
7324 * nat/windows-nat.c (current_windows_thread): Remove.
7325 * nat/windows-nat.h (current_windows_thread): Remove.
7326 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
7327 Adjust.
7328 (display_selectors): Adjust to fetch the current
7329 windows_thread_info based on inferior_ptid.
7330 (fake_create_process): No longer write to current_windows_thread.
7331 (windows_nat_target::get_windows_debug_event):
7332 Don't set inferior_ptid or current_windows_thread.
7333 (windows_nat_target::wait): Adjust to not rely on
7334 current_windows_thread.
7335 (do_initial_windows_stuff): Now a method of windows_nat_target.
7336 Switch to the last_ptid thread.
7337 (windows_nat_target::attach): Adjust.
7338 (windows_nat_target::detach): Use switch_to_no_thread instead of
7339 writing to inferior_ptid directly.
7340 (windows_nat_target::create_inferior): Adjust.
7341
31ce04e9
PA
73422020-06-18 Pedro Alves <palves@redhat.com>
7343
7344 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
7345
1ee1a363
PA
73462020-06-18 Pedro Alves <palves@redhat.com>
7347
7348 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
7349 after creating it, instead of writing to inferior_ptid. Don't
7350 write to inferior_ptid.
7351
6d350754
PA
73522020-06-18 Pedro Alves <palves@redhat.com>
7353
7354 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
7355
5d971d48
PA
73562020-06-18 Pedro Alves <palves@redhat.com>
7357
7358 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
7359 it, instead of writing to inferior_ptid.
7360
86e57d1b
PA
73612020-06-18 Pedro Alves <palves@redhat.com>
7362
7363 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
7364 to inferior_ptid.
7365
f2e1c129
PA
73662020-06-18 Pedro Alves <palves@redhat.com>
7367
7368 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
7369 instead of writing to inferior_ptid directly.
7370
60db1b85
PA
73712020-06-18 Pedro Alves <palves@redhat.com>
7372
7373 * corelow.c (core_target::close): Use switch_to_no_thread instead
7374 of writing to inferior_ptid directly.
7375 (add_to_thread_list, core_target_open): Use switch_to_thread
7376 instead of writing to inferior_ptid directly.
7377
fe7d6a8d
PA
73782020-06-18 Pedro Alves <palves@redhat.com>
7379
7380 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
7381 inferior_ptid.
7382 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
7383 inferior_ptid.
7384 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
7385 inferior_ptid directly.
7386 (darwin_nat_target::init_thread_list): Switch to thread, instead
7387 of writing to inferior_ptid.
7388 (darwin_nat_target::attach): Don't write to inferior_ptid.
7389 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
7390
975f8708
PA
73912020-06-18 Pedro Alves <palves@redhat.com>
7392
7393 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
7394 thread.
7395 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
7396 Instead use switch_to_thread.
7397 (gnu_nat_target::detach): Use switch_to_no_thread
7398 instead of writing to inferior_ptid directly. Used passed-in
7399 inferior instead of looking up the inferior by pid.
7400
1a204730
PA
74012020-06-18 Pedro Alves <palves@redhat.com>
7402
7403 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
7404 inferior_ptid.
7405
ebe84f23
PA
74062020-06-18 Pedro Alves <palves@redhat.com>
7407
7408 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
7409 inferior_ptid.
7410 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
7411 thread.
7412 (nto_procfs_target::detach): Avoid referencing
7413 inferior_ptid. Use switch_to_no_thread instead of writing to
7414 inferior_ptid directly.
7415 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
7416 instead of writing to inferior_ptid directly.
7417 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
7418 to thread.
7419
191f02e5
PA
74202020-06-18 Pedro Alves <palves@redhat.com>
7421
7422 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
7423 after creating it, instead of writing to inferior_ptid.
7424 (gdbsim_target_open): Use switch_to_no_thread instead of writing
7425 to inferior_ptid directly.
7426 (gdbsim_target::wait): Don't write to inferior_ptid.
7427
0ac55310
PA
74282020-06-18 Pedro Alves <palves@redhat.com>
7429
7430 * remote.c (remote_target::remote_notice_new_inferior): Use
7431 switch_to_thread instead of writing to inferior_ptid directly.
7432 (remote_target::add_current_inferior_and_thread): Use
7433 switch_to_no_thread instead of writing to inferior_ptid directly.
7434 (extended_remote_target::attach): Use switch_to_inferior_no_thread
7435 and switch_to_thread instead of using set_current_inferior or
7436 writing to inferior_ptid directly.
7437
5233f39b
PA
74382020-06-18 Pedro Alves <palves@redhat.com>
7439
7440 * tracectf.c (ctf_target_open): Switch to added thread instead of
7441 writing to inferior_ptid directly.
7442 (ctf_target::close): Use switch_to_no_thread instead of writing to
7443 inferior_ptid directly.
7444
087e161b
PA
74452020-06-18 Pedro Alves <palves@redhat.com>
7446
7447 * tracefile-tfile.c (tfile_target_open): Don't write to
7448 inferior_ptid directly, instead switch to added thread.
7449 (tfile_target::close): Use switch_to_no_thread instead of writing
7450 to inferior_ptid directly.
7451
7fb43e53
PA
74522020-06-18 Pedro Alves <palves@redhat.com>
7453
7454 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
7455 (procfs_target::detach): Use switch_to_no_thread
7456 instead of writing to inferior_ptid directly.
7457 (do_attach): Change return type to void. Switch to the added
7458 thread.
7459 (procfs_target::create_inferior): Switch to the added thread.
7460 (procfs_do_thread_registers): Don't write to inferior_ptid.
7461
18493a00
PA
74622020-06-18 Pedro Alves <palves@redhat.com>
7463
7464 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
7465 of writing to inferior_ptid.
7466 (scoped_restore_exited_inferior): Delete.
7467 (handle_vfork_child_exec_or_exit): Simplify using
7468 scoped_restore_current_pspace_and_thread. Use switch_to_thread
7469 instead of writing to inferior_ptid.
7470 (THREAD_STOPPED_BY): Delete.
7471 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
7472 (thread_stopped_by_hw_breakpoint): Delete.
7473 (save_waitstatus): Use
7474 scoped_restore_current_thread+switch_to_thread, and call
7475 target_stopped_by_watchpoint instead of
7476 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
7477 instead of thread_stopped_by_sw_breakpoint, and
7478 target_stopped_by_hw_breakpoint instead of
7479 thread_stopped_by_hw_breakpoint.
7480 (handle_inferior_event)
7481 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
7482 inferior_ptid directly, nor
7483 set_current_inferior/set_current_program_space. Use
7484 switch_to_thread / switch_to_inferior_no_thread instead.
7485
a0776b13
PA
74862020-06-18 Pedro Alves <palves@redhat.com>
7487
7488 * target.c (generic_mourn_inferior): Use switch_to_no_thread
7489 instead of writing to inferior_ptid.
7490
6155c136
PA
74912020-06-18 Pedro Alves <palves@redhat.com>
7492
7493 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
7494 added thread.
7495 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
7496 to the added thread.
7497 (inf_ptrace_target::detach_success): Use switch_to_no_thread
7498 instead of writing to inferior_ptid.
7499
c5316fc6
PA
75002020-06-18 Pedro Alves <palves@redhat.com>
7501
7502 * gdbarch-selftests.c: Include "progspace-and-thread.h".
7503 (register_to_value_test): Mock a program_space too. Heap-allocate
7504 the address space. Don't write to inferior_ptid. Use
7505 switch_to_thread instead.
7506
8df01799
PA
75072020-06-18 Pedro Alves <palves@redhat.com>
7508
7509 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
7510 Delete.
7511 (find_signalled_thread()): New, factored out from
7512 linux_make_corefile_notes and adjusted to handle exited threads.
7513 (linux_make_corefile_notes): Adjust to use the new
7514 find_signalled_thread.
7515
41792d68
PA
75162020-06-18 Pedro Alves <palves@redhat.com>
7517
7518 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
7519 of saving/restoring inferior_ptid.
7520
612f258a
TT
75212020-06-17 Tom Tromey <tom@tromey.com>
7522
7523 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
7524 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
7525 declare.
7526 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
7527
efb763a5
SM
75282020-06-15 Simon Marchi <simon.marchi@efficios.com>
7529
7530 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
7531 of partial symtabs.
7532
2951f6c0
SM
75332020-06-17 Simon Marchi <simon.marchi@efficios.com>
7534
7535 * regformats/reg-arm.dat: Remove.
7536 * regformats/reg-bfin.dat: Remove.
7537 * regformats/reg-cris.dat: Remove.
7538 * regformats/reg-crisv32.dat: Remove.
7539 * regformats/reg-m32r.dat: Remove.
7540 * regformats/reg-tilegx.dat: Remove.
7541 * regformats/reg-tilegx32.dat: Remove.
7542
7d458ea5
SM
75432020-06-17 Simon Marchi <simon.marchi@efficios.com>
7544
7545 * features/Makefile (WHICH): Remove arm files.
7546 * regformats/arm/arm-with-iwmmxt.dat: Remove.
7547 * regformats/arm/arm-with-neon.dat: Remove.
7548 * regformats/arm/arm-with-vfpv2.dat: Remove.
7549 * regformats/arm/arm-with-vfpv3.dat: Remove.
7550
3af96c0d
SM
75512020-06-17 Simon Marchi <simon.marchi@efficios.com>
7552
7553 * features/Makefile (XMLTOC): Remove rx.xml.
7554
b25e22fd
PA
75552020-06-17 Pedro Alves <palves@redhat.com>
7556
7557 * gdbthread.h (thread_control_state) <trap_expected> Update
7558 comments.
7559
a78a19b1
AB
75602020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7561
7562 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
7563 ada_language::lookup_symbol_nonlocal.
7564 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
7565 (ada_language::lookup_symbol_nonlocal): New member function,
7566 implementation from ada_lookup_symbol_nonlocal.
7567 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
7568 initializer.
7569 (cplus_language_data): Delete la_lookup_symbol_nonlocal
7570 initializer.
7571 (cplus_language::lookup_symbol_nonlocal): New member function.
7572 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
7573 (minimal_language_data) Likewise.
7574 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
7575 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
7576 initializer.
7577 (d_language::lookup_symbol_nonlocal): New member function.
7578 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
7579 initializer.
7580 (f_language::lookup_symbol_nonlocal): New member function.
7581 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
7582 initializer.
7583 * language.c (unknown_language_data): Likewise.
7584 (auto_language_data): Likewise.
7585 * language.h (language_data): Delete la_lookup_symbol_nonlocal
7586 field.
7587 (language_defn::lookup_symbol_nonlocal): New member function.
7588 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
7589 initializer.
7590 * objc-lang.c (objc_language_data): Likewise.
7591 * opencl-lang.c (opencl_language_data): Likewise.
7592 * p-lang.c (pascal_language_data): Likewise.
7593 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
7594 rust_language::lookup_symbol_nonlocal.
7595 (rust_language_data): Delete la_lookup_symbol_nonlocal
7596 initializer.
7597 (rust_language::lookup_symbol_nonlocal): New member function,
7598 implementation from rust_lookup_symbol_nonlocal.
7599 * symtab.c (lookup_symbol_aux): Update call to
7600 lookup_symbol_nonlocal.
7601 (basic_lookup_symbol_nonlocal): Rename to...
7602 (language_defn::lookup_symbol_nonlocal): ...this, and update
7603 header comment. Remove language_defn parameter, and replace with
7604 uses of `this'.
7605 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
7606
ebe2334e
AB
76072020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7608
7609 * ada-lang.c (ada_language_data): Delete la_value_print_inner
7610 initializer.
7611 (ada_language::value_print_inner): New member function.
7612 * c-lang.c (c_language_data): Delete la_value_print_inner
7613 initializer.
7614 (cplus_language_data): Likewise.
7615 (asm_language_data): Likewise.
7616 (minimal_language_data): Likewise.
7617 * d-lang.c (d_language_data): Likewise.
7618 (d_language::value_print_inner): New member function.
7619 * f-lang.c (f_language_data): Delete la_value_print_inner
7620 initializer.
7621 (f_language::value_print_inner): New member function.
7622 * f-lang.h (f_value_print_innner): Rename to...
7623 (f_value_print_inner): ...this (note spelling of 'inner').
7624 * f-valprint.c (f_value_print_innner): Rename to...
7625 (f_value_print_inner): ...this (note spelling of 'inner').
7626 * go-lang.c (go_language_data): Delete la_value_print_inner
7627 initializer.
7628 (go_language::value_print_inner): New member function.
7629 * language.c (language_defn::value_print_inner): Define new member
7630 function.
7631 (unk_lang_value_print_inner): Delete.
7632 (unknown_language_data): Delete la_value_print_inner initializer.
7633 (unknown_language::value_print_inner): New member function.
7634 (auto_language_data): Delete la_value_print_inner initializer.
7635 (auto_language::value_print_inner): New member function.
7636 * language.h (language_data): Delete la_value_print_inner field.
7637 (language_defn::value_print_inner): Delcare new member function.
7638 * m2-lang.c (m2_language_data): Delete la_value_print_inner
7639 initializer.
7640 (m2_language::value_print_inner): New member function.
7641 * objc-lang.c (objc_language_data): Delete la_value_print_inner
7642 initializer.
7643 * opencl-lang.c (opencl_language_data): Likewise.
7644 * p-lang.c (pascal_language_data): Likewise.
7645 (pascal_language::value_print_inner): New member function.
7646 * rust-lang.c (rust_language_data): Delete la_value_print_inner
7647 initializer.
7648 (rust_language::value_print_inner): New member function.
7649 * valprint.c (do_val_print): Update call to value_print_inner.
7650
a1d1fa3e
AB
76512020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7652
7653 * ada-lang.c (ada_language_data): Delete la_value_print
7654 initializer.
7655 (ada_language::value_print): New member function.
7656 * c-lang.c (c_language_data): Delete la_value_print initializer.
7657 (cplus_language_data): Likewise.
7658 (asm_language_data): Likewise.
7659 (minimal_language_data): Likewise.
7660 * d-lang.c (d_language_data): Likewise.
7661 * f-lang.c (f_language_data): Likewise.
7662 * go-lang.c (go_language_data): Likewise.
7663 * language.c (unk_lang_value_print): Delete.
7664 (language_defn::value_print): Define new member function.
7665 (unknown_language_data): Delete la_value_print initializer.
7666 (unknown_language::value_print): New member function.
7667 (auto_language_data): Delete la_value_print initializer.
7668 (auto_language::value_print): New member function.
7669 * language.h (language_data): Delete la_value_print field.
7670 (language_defn::value_print): Declare new member function.
7671 (LA_VALUE_PRINT): Update call to value_print.
7672 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
7673 * objc-lang.c (objc_language_data): Likewise.
7674 * opencl-lang.c (opencl_language_data): Likewise.
7675 * p-lang.c (pascal_language_data): Likewise.
7676 (pascal_language::value_print): New member function.
7677 * rust-lang.c (rust_language_data): Delete la_value_print
7678 initializer.
7679
f16a9f57
AB
76802020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7681
7682 * ada-lang.c (ada_watch_location_expression): Rename to
7683 ada_language::watch_location_expression.
7684 (ada_language_data): Delete la_watch_location_expression
7685 initializer.
7686 (ada_language::watch_location_expression): New member function,
7687 implementation from ada_watch_location_expression.
7688 * breakpoint.c (watch_command_1): Update call to
7689 watch_location_expression.
7690 * c-lang.c (c_watch_location_expression): Rename to
7691 language_defn::watch_location_expression.
7692 (c_language_data): Delete la_watch_location_expression
7693 initializer.
7694 (cplus_language_data): Likewise.
7695 (asm_language_data): Likewise.
7696 (minimal_language_data): Likewise.
7697 * c-lang.h (c_watch_location_expression): Delete declaration.
7698 * d-lang.c (d_language_data): Delete la_watch_location_expression
7699 initializer.
7700 * f-lang.c (f_language_data): Likewise.
7701 * go-lang.c (go_language_data): Likewise.
7702 * language.c (language_defn::watch_location_expression): Member
7703 function implementation from c_watch_location_expression.
7704 (unknown_language_data): Delete la_watch_location_expression
7705 initializer.
7706 (auto_language_data): Likewise.
7707 * language.h (language_data): Delete la_watch_location_expression
7708 field.
7709 (language_defn::watch_location_expression): Declare new member
7710 function.
7711 * m2-lang.c (m2_language_data): Delete
7712 la_watch_location_expression initializer.
7713 * objc-lang.c (objc_language_data): Likewise.
7714 * opencl-lang.c (opencl_language_data): Likewise.
7715 * p-lang.c (pascal_language_data): Likewise.
7716 * rust-lang.c (rust_watch_location_expression): Rename to
7717 rust_language::watch_location_expression.
7718 (rust_language_data): Delete la_watch_location_expression
7719 initializer.
7720 (rust_language::watch_location_expression): New member function,
7721 implementation from rust_watch_location_expression.
7722
7e56227d
AB
77232020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7724
7725 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
7726 ada_language::collect_symbol_completion_matches.
7727 (ada_language_data): Delete la_collect_symbol_completion_matches
7728 initializer.
7729 (ada_language::collect_symbol_completion_matches): New member
7730 function, implementation from
7731 ada_collect_symbol_completion_matches.
7732 * c-lang.c (c_language_data): Delete
7733 la_collect_symbol_completion_matches initializer.
7734 (cplus_language_data): Likewise.
7735 (asm_language_data): Likewise.
7736 (minimal_language_data): Likewise.
7737 * d-lang.c (d_language_data): Likewise.
7738 * f-lang.c (f_collect_symbol_completion_matches): Rename to
7739 f_language::collect_symbol_completion_matches.
7740 (f_language_data): Delete la_collect_symbol_completion_matches
7741 initializer.
7742 (f_language::collect_symbol_completion_matches) New member
7743 function, implementation from f_collect_symbol_completion_matches.
7744 * go-lang.c (go_language_data): Delete
7745 la_collect_symbol_completion_matches initializer.
7746 * language.c (unknown_language_data): Likewise.
7747 (auto_language_data): Likewise.
7748 * language.h (language_data): Delete
7749 la_collect_symbol_completion_matches field.
7750 (language_defn::collect_symbol_completion_matches): New member
7751 function.
7752 * m2-lang.c (m2_language_data): Delete
7753 la_collect_symbol_completion_matches initializer.
7754 * objc-lang.c (objc_language_data): Likewise.
7755 * opencl-lang.c (opencl_language_data): Likewise.
7756 * p-lang.c (pascal_language_data): Likewise.
7757 * rust-lang.c (rust_language_data): Likewise.
7758 * symtab.c (default_collect_symbol_completion_matches): Delete.
7759 (collect_symbol_completion_matches): Update call to
7760 collect_symbol_completion_matches.
7761 (collect_symbol_completion_matches_type): Likewise.
7762 * symtab.h (default_collect_symbol_completion_matches): Delete
7763 declaration.
7764
53fc67f8
AB
77652020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7766
7767 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
7768 (ada_language_data): Delete la_word_break_characters initializer.
7769 (ada_language::word_break_characters): New member function.
7770 * c-lang.c (c_language_data): Delete la_word_break_characters
7771 initializer.
7772 (cplus_language_data): Likewise.
7773 (asm_language_data): Likewise.
7774 (minimal_language_data): Likewise.
7775 * completer.c: Update global comment.
7776 (advance_to_expression_complete_word_point): Update call to
7777 word_break_characters.
7778 (complete_files_symbols): Likewise.
7779 (complete_line_internal_1): Likewise.
7780 (default_completer_handle_brkchars): Likewise.
7781 (skip_quoted_chars): Likewise.
7782 * d-lang.c (d_language_data): Delete la_word_break_characters
7783 initializer.
7784 * f-lang.c (f_word_break_characters): Delete.
7785 (f_language_data): Delete la_word_break_characters initializer.
7786 (f_language::word_break_characters): New member function.
7787 * go-lang.c (go_language_data): Delete la_word_break_characters
7788 initializer.
7789 * language.c (unknown_language_data): Likewise.
7790 (auto_language_data): Likewise.
7791 * language.h (default_word_break_characters): Move declaration to
7792 earlier in the file.
7793 (language_data): Delete la_word_break_characters field.
7794 (language_defn::word_break_characters): New member function.
7795 * m2-lang.c (m2_language_data): Delete la_word_break_characters
7796 initializer.
7797 * objc-lang.c (objc_language_data): Likewise.
7798 * opencl-lang.c (opencl_language_data): Likewise.
7799 * p-lang.c (pascal_language_data): Likewise.
7800 * rust-lang.c (rust_language_data): Likewise.
7801
c9debfb9
AB
78022020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7803
7804 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
7805 (ada_language_data): Delete la_get_symbol_name_matcher
7806 initializer.
7807 (language_defn::get_symbol_name_matcher_inner): New member
7808 function.
7809 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
7810 initializer.
7811 (cplus_language_data): Likewise.
7812 (cplus_language::get_symbol_name_matcher_inner): New member
7813 function.
7814 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
7815 (minimal_language_data): Likewise.
7816 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
7817 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
7818 initializer.
7819 * dictionary.c (iter_match_first_hashed): Update call to
7820 get_symbol_name_matcher.
7821 (iter_match_next_hashed): Likewise.
7822 (iter_match_next_linear): Likewise.
7823 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
7824 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
7825 initializer.
7826 (f_language::get_symbol_name_matcher_inner): New member function.
7827 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
7828 initializer.
7829 * language.c (default_symbol_name_matcher): Update header comment,
7830 make static.
7831 (language_defn::get_symbol_name_matcher): New definition.
7832 (language_defn::get_symbol_name_matcher_inner): Likewise.
7833 (get_symbol_name_matcher): Delete.
7834 (unknown_language_data): Delete la_get_symbol_name_matcher
7835 initializer.
7836 (auto_language_data): Likewise.
7837 * language.h (language_data): Delete la_get_symbol_name_matcher
7838 field.
7839 (language_defn::get_symbol_name_matcher): New member function.
7840 (language_defn::get_symbol_name_matcher_inner): Likewise.
7841 (default_symbol_name_matcher): Delete declaration.
7842 * linespec.c (find_methods): Update call to
7843 get_symbol_name_matcher.
7844 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
7845 initializer.
7846 * minsyms.c (lookup_minimal_symbol): Update call to
7847 get_symbol_name_matcher.
7848 (iterate_over_minimal_symbols): Likewise.
7849 * objc-lang.c (objc_language_data): Delete
7850 la_get_symbol_name_matcher initializer.
7851 * opencl-lang.c (opencl_language_data): Likewise.
7852 * p-lang.c (pascal_language_data): Likewise.
7853 * psymtab.c (psymbol_name_matches): Update call to
7854 get_symbol_name_matcher.
7855 * rust-lang.c (rust_language_data): Delete
7856 la_get_symbol_name_matcher initializer.
7857 * symtab.c (symbol_matches_search_name): Update call to
7858 get_symbol_name_matcher.
7859 (compare_symbol_name): Likewise.
7860
9a49ad8c
AB
78612020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7862
7863 * ada-lang.c (ada_language_data): Delete la_compute_program
7864 initializer.
7865 * c-lang.c (c_language_data): Likewise.
7866 (c_language::compute_program): New member function.
7867 (cplus_language_data): Delete la_compute_program initializer.
7868 (cplus_language::compute_program): New member function.
7869 (asm_language_data): Delete la_compute_program initializer.
7870 (minimal_language_data): Likewise.
7871 * c-lang.h (c_compute_program): Update comment.
7872 (cplus_compute_program): Likewise.
7873 * compile/compile-c-support.c (c_compute_program): Likewise.
7874 (cplus_compute_program): Likewise.
7875 * compile/compile.c (compile_to_object): Update call to
7876 la_compute_program.
7877 * d-lang.c (d_language_data): Delete la_compute_program
7878 initializer.
7879 * f-lang.c (f_language_data): Likewise.
7880 * go-lang.c (go_language_data): Likewise.
7881 * language.c (unknown_language_data): Likewise.
7882 (auto_language_data): Likewise.
7883 * language.h (language_data): Delete la_compute_program field.
7884 (language_defn::compute_program): New member function.
7885 * m2-lang.c (m2_language_data): Delete la_compute_program
7886 initializer.
7887 * objc-lang.c (objc_language_data): Likewise.
7888 * opencl-lang.c (opencl_language_data): Likewise.
7889 * p-lang.c (pascal_language_data): Likewise.
7890 * rust-lang.c (rust_language_data): Likewise.
7891
eff93b4d
AB
78922020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7893
7894 * ada-lang.c (ada_language_data) Delete
7895 la_class_name_from_physname initializer.
7896 * c-lang.c (c_language_data): Likewise.
7897 (cplus_language_data): Likewise.
7898 (cplus_language::class_name_from_physname): New member function.
7899 (asm_language_data): Delete la_class_name_from_physname
7900 initializer.
7901 (minimal_language_data): Likewise.
7902 * d-lang.c (d_language_data): Likewise.
7903 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
7904 method on language_defn class.
7905 (guess_full_die_structure_name): Likewise.
7906 * f-lang.c (f_language_data): Delete la_class_name_from_physname
7907 initializer.
7908 * go-lang.c (go_language_data): Likewise.
7909 * language.c (language_class_name_from_physname): Delete.
7910 (unk_lang_class_name): Delete.
7911 (unknown_language_data): Delete la_class_name_from_physname
7912 initializer.
7913 (auto_language_data): Likewise.
7914 * language.h (language_data): Delete la_class_name_from_physname
7915 field.
7916 (language_defn::class_name_from_physname): New function.
7917 (language_class_name_from_physname): Delete declaration.
7918 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
7919 initializer.
7920 * objc-lang.c (objc_language_data): Likewise.
7921 * opencl-lang.c (opencl_language_data): Likewise.
7922 * p-lang.c (pascal_language_data): Likewise.
7923 * rust-lang.c (rust_language_data): Likewise.
7924
de543742
TT
79252020-06-16 Tom Tromey <tom@tromey.com>
7926
7927 * tui/tui-data.h (STATUS_NAME): New macro.
7928 * tui/tui-layout.c (tui_remove_some_windows)
7929 (initialize_known_windows, tui_register_window)
7930 (tui_layout_split::remove_windows, initialize_layouts)
7931 (tui_new_layout_command): Don't use hard-coded window names.
7932
a350efd4
TT
79332020-06-16 Tom Tromey <tom@tromey.com>
7934
7935 PR tui/25348:
7936 * tui/tui.c (tui_ensure_readline_initialized): Rename from
7937 tui_initialize_readline. Only run once. Call rl_initialize.
7938 * tui/tui.h (tui_ensure_readline_initialized): Rename from
7939 tui_initialize_readline.
7940 * tui/tui-io.c (tui_setup_io): Call
7941 tui_ensure_readline_initialized.
7942 * tui/tui-interp.c (tui_interp::init): Update.
7943
39ec0490
TT
79442020-06-16 Tom Tromey <tom@tromey.com>
7945
7946 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
7947 Also preserve the status window.
7948
d2d1ea20
TT
79492020-06-16 Tom Tromey <tom@tromey.com>
7950
7951 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
7952 where m_window==nullptr.
7953
66920317
TT
79542020-06-15 Tom Tromey <tromey@adacore.com>
7955
7956 * windows-nat.c (windows_nat::handle_output_debug_string):
7957 Update.
7958 (windows_nat::handle_ms_vc_exception): Update.
7959 * target.h (target_read_string): Change API.
7960 * target.c (target_read_string): Change API.
7961 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
7962 Update.
7963 * solib-frv.c (frv_current_sos): Update.
7964 * solib-dsbt.c (dsbt_current_sos): Update.
7965 * solib-darwin.c (darwin_current_sos): Update.
7966 * linux-thread-db.c (inferior_has_bug): Update.
7967 * expprint.c (print_subexp_standard): Update.
7968 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
7969 (ada_exception_message_1): Update.
7970
a5d871dd
TT
79712020-06-15 Tom Tromey <tromey@adacore.com>
7972
7973 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
7974
670e35fa
TT
79752020-06-15 Tom Tromey <tromey@adacore.com>
7976
7977 * valprint.c (read_string): Update comment.
7978 * target.c (MIN): Remove.
7979 (target_read_string): Rewrite.
7980
f5272a3b
TT
79812020-06-15 Tom Tromey <tromey@adacore.com>
7982
7983 * corefile.c (read_memory_string): Remove.
7984 * ada-valprint.c (ada_value_print_ptr): Update.
7985 * ada-lang.h (ada_tag_name): Change return type.
7986 * ada-lang.c (type_from_tag): Update.
7987 (ada_tag_name_from_tsd): Change return type. Use
7988 target_read_string.
7989 (ada_tag_name): Likewise.
7990 * gdbcore.h (read_memory_string): Don't declare.
7991
2c074f49
HD
79922020-06-14 Hannes Domani <ssbssa@yahoo.de>
7993
7994 * symtab.c (rbreak_command): Ignore Windows drive colon.
7995
6a17d503
SM
79962020-06-12 Simon Marchi <simon.marchi@efficios.com>
7997
7998 * NEWS: Mention removed GDBserver host support.
7999
453c733f
NC
80002020-06-12 Nelson Chu <nelson.chu@sifive.com>
8001
8002 * features/riscv/rebuild-csr-xml.sh: Updated.
8003
2b4e6a3f
TT
80042020-06-11 Tom Tromey <tom@tromey.com>
8005
8006 PR gdb/18318:
8007 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
8008
4412332f
JG
80092020-06-09 Jonny Grant <jg@jguk.org>
80102020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
8011
8012 * main.c (captured_main_1): Don't print new line after help.
8013 (print_gdb_help): add mailing list and IRC channel information
8014 to --help. Add new lines between items in the footer. Remove
8015 quotes around bug url.
8016
2f33032a
KS
80172020-06-11 Keith Seitz <keiths@redhat.com>
8018
8019 PR gdb/21356
8020 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
8021 Resolve typedefs for type length calculations.
8022
7ab96794
TV
80232020-06-10 Tom de Vries <tdevries@suse.de>
8024
8025 PR ada/24713
8026 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
8027 (write_psymbols): Enable .gdb_index for ada.
8028 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
8029 ada.
8030
e5f3ece2
TV
80312020-06-10 Tom de Vries <tdevries@suse.de>
8032
8033 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
8034 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
8035 namei" instead of "const char *name" argument.
8036 (dw2_map_matching_symbols): Use "offset_type namei" variant of
8037 dw2_symtab_iter_init.
8038
940da03e
SM
80392020-06-08 Simon Marchi <simon.marchi@efficios.com>
8040
8041 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
8042 to use type::field and field::type instead.
8043
b6cdac4b
SM
80442020-06-08 Simon Marchi <simon.marchi@efficios.com>
8045
8046 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
8047 to use field::type instead.
8048
5d14b6e5
SM
80492020-06-08 Simon Marchi <simon.marchi@efficios.com>
8050
8051 * gdbtypes.h (struct field) <type, set_type>: New methods.
8052 Rename `type` field to...
8053 <m_type>: ... this. Change references throughout to use type or
8054 set_type methods.
8055 (FIELD_TYPE): Use field::type. Change call sites that modify
8056 the field's type to use field::set_type instead.
8057
3d967001
SM
80582020-06-08 Simon Marchi <simon.marchi@efficios.com>
8059
8060 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
8061 to use type::index_type instead.
8062
262abc0d
SM
80632020-06-08 Simon Marchi <simon.marchi@efficios.com>
8064
8065 * gdbtypes.h (struct type) <index_type, set_index_type>: New
8066 methods.
8067 (TYPE_INDEX_TYPE): Use type::index_type.
8068 * gdbtypes.c (create_array_type_with_stride): Likewise.
8069
82836c92
TT
80702020-06-07 Tom Tromey <tom@tromey.com>
8071
8072 * valprint.c (generic_val_print_float): Remove "embedded_offset"
8073 parameter.
8074 (generic_value_print): Update.
8075
940dace9
AB
80762020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8077
8078 Revert commit 982a38f60b0.
8079 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
8080
982a38f6
AB
80812020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8082
8083 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
8084 avoid use after free.
8085
82f06518
TV
80862020-06-05 Tom de Vries <tdevries@suse.de>
8087
8088 * NEWS: Fix typos.
8089
f8c41851
SM
80902020-06-04 Simon Marchi <simon.marchi@efficios.com>
8091
8092 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
8093 the per_bfd object.
8094 (dwarf2_read_debug_names): Likewise.
8095 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
8096 object when re-using a per_bfd object with an index.
8097
f9b5d5ea
TV
80982020-06-03 Tom de Vries <tdevries@suse.de>
8099
8100 PR symtab/26046
8101 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
8102 children for C++.
8103 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
8104 DW_TAG_subprogram.
8105
f6eee2d0
AB
81062020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8107
8108 * ada-lang.c (ada_language_data): Delete skip_trampoline
8109 initializer.
8110 * c-lang.c (c_language_data): Likewise.
8111 (cplus_language_data): Likewise.
8112 (cplus_language::skip_trampoline): New member function.
8113 (asm_language_data): Delete skip_trampoline initializer.
8114 (minimal_language_data): Likewise.
8115 * d-lang.c (d_language_data): Likewise.
8116 * f-lang.c (f_language_data): Likewise.
8117 * go-lang.c (go_language_data): Likewise.
8118 * language.c (unk_lang_trampoline): Delete function.
8119 (skip_language_trampoline): Update.
8120 (unknown_language_data): Delete skip_trampoline initializer.
8121 (auto_language_data): Likewise.
8122 * language.h (language_data): Delete skip_trampoline field.
8123 (language_defn::skip_trampoline): New function.
8124 * m2-lang.c (m2_language_data): Delete skip_trampoline
8125 initializer.
8126 * objc-lang.c (objc_skip_trampoline): Delete function, move
8127 implementation to objc_language::skip_trampoline.
8128 (objc_language_data): Delete skip_trampoline initializer.
8129 (objc_language::skip_trampoline): New member function with
8130 implementation from objc_skip_trampoline.
8131 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
8132 initializer.
8133 * p-lang.c (pascal_language_data): Likewise.
8134 * rust-lang.c (rust_language_data): Likewise.
8135
0a50df5d
AB
81362020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8137
8138 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
8139 (ada_language::demangle): New member function.
8140 * c-lang.c (c_language_data): Delete la_demangle initializer.
8141 (cplus_language_data): Delete la_demangle initializer.
8142 (cplus_language::demangle): New member function.
8143 (asm_language_data): Delete la_demangle initializer.
8144 (minimal_language_data): Delete la_demangle initializer.
8145 * d-lang.c (d_language_data): Delete la_demangle initializer.
8146 (d_language::demangle): New member function.
8147 * f-lang.c (f_language_data): Delete la_demangle initializer.
8148 (f_language::demangle): New member function.
8149 * go-lang.c (go_language_data): Delete la_demangle initializer.
8150 (go_language::demangle): New member function.
8151 * language.c (language_demangle): Update.
8152 (unk_lang_demangle): Delete.
8153 (unknown_language_data): Delete la_demangle initializer.
8154 (unknown_language::demangle): New member function.
8155 (auto_language_data): Delete la_demangle initializer.
8156 (auto_language::demangle): New member function.
8157 * language.h (language_data): Delete la_demangle field.
8158 (language_defn::demangle): New function.
8159 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
8160 * objc-lang.c (objc_language_data): Delete la_demangle
8161 initializer.
8162 (objc_language::demangle): New member function.
8163 * opencl-lang.c (opencl_language_data): Delete la_demangle
8164 initializer.
8165 * p-lang.c (pascal_language_data): Likewise.
8166 * rust-lang.c (rust_language_data): Likewise.
8167 (rust_language::demangle): New member function.
8168
fbfb0a46
AB
81692020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8170
8171 * ada-lang.c (ada_language_data): Delete la_print_type
8172 initializer.
8173 (ada_language::print_type): New member function.
8174 * c-lang.c (c_language_data): Delete la_print_type initializer.
8175 (c_language::print_type): New member function.
8176 (cplus_language_data): Delete la_print_type initializer.
8177 (cplus_language::print_type): New member function.
8178 (asm_language_data): Delete la_print_type initializer.
8179 (asm_language::print_type): New member function.
8180 (minimal_language_data): Delete la_print_type initializer.
8181 (minimal_language::print_type): New member function.
8182 * d-lang.c (d_language_data): Delete la_print_type initializer.
8183 (d_language::print_type): New member function.
8184 * f-lang.c (f_language_data): Delete la_print_type initializer.
8185 (f_language::print_type): New member function.
8186 * go-lang.c (go_language_data): Delete la_print_type initializer.
8187 (go_language::print_type): New member function.
8188 * language.c (unk_lang_print_type): Delete.
8189 (unknown_language_data): Delete la_print_type initializer.
8190 (unknown_language::print_type): New member function.
8191 (auto_language_data): Delete la_print_type initializer.
8192 (auto_language::print_type): New member function.
8193 * language.h (language_data): Delete la_print_type field.
8194 (language_defn::print_type): New function.
8195 (LA_PRINT_TYPE): Update.
8196 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
8197 (m2_language::print_type): New member function.
8198 * objc-lang.c (objc_language_data): Delete la_print_type
8199 initializer.
8200 (objc_language::print_type): New member function.
8201 * opencl-lang.c (opencl_print_type): Delete, implementation moved
8202 to opencl_language::print_type.
8203 (opencl_language_data): Delete la_print_type initializer.
8204 (opencl_language::print_type): New member function, implementation
8205 from opencl_print_type.
8206 * p-lang.c (pascal_language_data): Delete la_print_type
8207 initializer.
8208 (pascal_language::print_type): New member function.
8209 * rust-lang.c (rust_print_type): Delete, implementation moved to
8210 rust_language::print_type.
8211 (rust_language_data): Delete la_print_type initializer.
8212 (rust_language::print_type): New member function, implementation
8213 from rust_print_type.
8214
6f827019
AB
82152020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8216
8217 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
8218 implementation moves to...
8219 (ada_language::sniff_from_mangled_name): ...here. Update return
8220 type.
8221 (ada_language_data): Delete la_sniff_from_mangled_name
8222 initializer.
8223 * c-lang.c (c_language_data): Likewise.
8224 (cplus_language_data): Likewise.
8225 (cplus_language::sniff_from_mangled_name): New member function,
8226 implementation taken from gdb_sniff_from_mangled_name.
8227 (asm_language_data): Delete la_sniff_from_mangled_name
8228 initializer.
8229 (minimal_language_data): Likewise.
8230 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
8231 implementation moves to cplus_language::sniff_from_mangled_name.
8232 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
8233 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
8234 moves to...
8235 (d_language::sniff_from_mangled_name): ...here.
8236 (d_language_data): Delete la_sniff_from_mangled_name initializer.
8237 * f-lang.c (f_language_data): Likewise.
8238 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
8239 moves to...
8240 (go_language::sniff_from_mangled_name): ...here.
8241 (go_language_data): Delete la_sniff_from_mangled_name initializer.
8242 * language.c (language_sniff_from_mangled_name): Delete.
8243 (unknown_language_data): Delete la_sniff_from_mangled_name
8244 initializer.
8245 (auto_language_data): Likewise.
8246 * language.h (language_data): Delete la_sniff_from_mangled_name
8247 field.
8248 (language_defn::sniff_from_mangled_name): New function.
8249 (language_sniff_from_mangled_name): Delete declaration.
8250 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
8251 field.
8252 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
8253 implementation moves to...
8254 (objc_language::sniff_from_mangled_name): ...here.
8255 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
8256 * opencl-lang.c (opencl_language_data): Likewise.
8257 * p-lang.c (pascal_language_data): Likewise.
8258 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
8259 implementation moves to...
8260 (rust_language::sniff_from_mangled_name): ...here.
8261 (rust_language_data): Delete la_sniff_from_mangled_name
8262 initializer.
8263 * symtab.c (symbol_find_demangled_name): Call
8264 sniff_from_mangled_name member function.
8265
fb8006fd
AB
82662020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8267
8268 * ada-lang.c (ada_language_data): Delete la_search_name_hash
8269 initializer.
8270 * c-lang.c (c_language_data): Likewise.
8271 (cplus_language_data): Likewise.
8272 (cplus_language::search_name_hash): New member function.
8273 (asm_language_data): Delete la_search_name_hash initializer.
8274 (minimal_language_data): Likewise.
8275 * d-lang.c (d_language_data): Likewise.
8276 * dictionary.c (default_search_name_hash): Rename to...
8277 (language_defn::search_name_hash): ...this.
8278 * f-lang.c (f_language_data): Likewise.
8279 (f_language::search_name_hash): New member function.
8280 * go-lang.c (go_language_data): Delete la_search_name_hash
8281 initializer.
8282 * language.c (unknown_language_data): Likewise.
8283 (auto_language_data): Likewise.
8284 * language.h (struct language_data): Delete la_search_name_hash
8285 field.
8286 (language_defn::search_name_hash): Declare new member function.
8287 (default_search_name_hash): Delete declaration.
8288 * m2-lang.c (m2_language_data): Delete la_search_name_hash
8289 initializer.
8290 * objc-lang.c (objc_language_data): Likewise.
8291 * opencl-lang.c (opencl_language_data): Likewise.
8292 * p-lang.c (pascal_language_data): Likewise.
8293 * rust-lang.c (rust_language_data): Likewise.
8294 * symtab.c (search_name_hash): Update call.
8295
8e25bafe
AB
82962020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8297
8298 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
8299 initializer.
8300 * c-lang.c (class compile_instance): Declare.
8301 (c_language_data): Delete la_get_compile_instance initializer.
8302 (c_language::get_compile_instance): New member function.
8303 (cplus_language_data): Delete la_get_compile_instance initializer.
8304 (cplus_language::get_compile_instance): New member function.
8305 (asm_language_data): Delete la_get_compile_instance initializer.
8306 (minimal_language_data): Likewise.
8307 * c-lang.h (c_get_compile_context): Update comment.
8308 (cplus_get_compile_context): Update comment.
8309 * compile/compile.c (compile_to_object): Update calls, don't rely
8310 on function pointer being NULL.
8311 * d-lang.c (d_language_data): Delete la_get_compile_instance
8312 initializer.
8313 * f-lang.c (f_language_data): Likewise.
8314 * go-lang.c (go_language_data): Likewise.
8315 * language.c (unknown_language_data): Likewise.
8316 (auto_language_data): Likewise.
8317 * language.h (language_data): Delete la_get_compile_instance field.
8318 (language_defn::get_compile_instance): New member function.
8319 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
8320 initializer.
8321 * objc-lang.c (objc_language_data): Likewise.
8322 * opencl-lang.c (opencl_language_data): Likewise.
8323 * p-lang.c (pascal_language_data): Likewise.
8324 * rust-lang.c (rust_language_data): Likewise.
8325
4009ee92
AB
83262020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8327
8328 * ada-lang.c (ada_add_all_symbols): Update comment.
8329 (ada_iterate_over_symbols): Delete, move implementation to...
8330 (ada_language::iterate_over_symbols): ...here, a new member
8331 function, rewrite to use range based for loop.
8332 (ada_language_data): Delete la_iterate_over_symbols initializer.
8333 * c-lang.c (c_language_data): Likewise.
8334 (cplus_language_data): Likewise.
8335 (asm_language_data): Likewise.
8336 (minimal_language_data): Likewise.
8337 * d-lang.c (d_language_data): Likewise.
8338 * f-lang.c (f_language_data): Likewise.
8339 * go-lang.c (go_language_data): Likewise.
8340 * language.c (unknown_language_data): Likewise.
8341 (auto_language_data): Likewise.
8342 * language.h (language_data): Delete la_iterate_over_symbols field.
8343 (language_defn::iterate_over_symbols): New member function.
8344 (LA_ITERATE_OVER_SYMBOLS): Update.
8345 * linespec.c (iterate_over_all_matching_symtabs): Update.
8346 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
8347 initializer.
8348 * objc-lang.c (objc_language_data): Likewise.
8349 * opencl-lang.c (opencl_language_data): Likewise.
8350 * p-lang.c (pascal_language_data): Likewise.
8351 * rust-lang.c (rust_language_data): Likewise.
8352
54f4ca46
AB
83532020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8354
8355 * ada-lang.c (ada_language_data): Delete
8356 la_lookup_transparent_type initializer.
8357 * c-lang.c (c_language_data): Likewise.
8358 (cplus_language_data): Likewise.
8359 (cplus_language::lookup_transparent_type): New member function.
8360 (asm_language_data): Delete la_lookup_transparent_type
8361 initializer.
8362 (minimal_language_data): Likewise.
8363 * d-lang.c (d_language_data): Likewise.
8364 * f-lang.c (f_language_data): Likewise.
8365 * go-lang.c (go_language_data): Likewise.
8366 * language.c (unknown_language_data): Likewise.
8367 (auto_language_data): Likewise.
8368 * language.h (struct language_data): Delete
8369 la_lookup_transparent_type field.
8370 (language_defn::lookup_transparent_type): New member function.
8371 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
8372 initializer.
8373 * objc-lang.c (objc_language_data): Likewise.
8374 * opencl-lang.c (opencl_language_data): Likewise.
8375 * p-lang.c (pascal_language_data): Likewise.
8376 * rust-lang.c (rust_language_data): Likewise.
8377 * symtab.c (symbol_matches_domain): Update call.
8378
1fb314aa
AB
83792020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8380
8381 * ada-lang.c (ada_language_arch_info): Delete function, move
8382 implementation to...
8383 (ada_language::language_arch_info): ...here, a new member
8384 function.
8385 (ada_language_data): Delete la_language_arch_info.
8386 * c-lang.c (c_language_data): Likewise.
8387 (c_language::language_arch_info): New member function.
8388 (cplus_language_arch_info): Delete function, move
8389 implementation to...
8390 (cplus_language::language_arch_info): ...here, a new member
8391 function.
8392 (cplus_language_data): Delete la_language_arch_info.
8393 (asm_language_data): Likewise.
8394 (asm_language::language_arch_info): New member function.
8395 (minimal_language_data): Delete la_language_arch_info.
8396 (minimal_language::language_arch_info): New member function.
8397 * d-lang.c (d_language_arch_info): Delete function, move
8398 implementation to...
8399 (d_language::language_arch_info): ...here, a new member
8400 function.
8401 (d_language_data): Delete la_language_arch_info.
8402 * f-lang.c (f_language_arch_info): Delete function, move
8403 implementation to...
8404 (f_language::language_arch_info): ...here, a new member
8405 function.
8406 (f_language_data): Delete la_language_arch_info.
8407 * go-lang.c (go_language_arch_info): Delete function, move
8408 implementation to...
8409 (go_language::language_arch_info): ...here, a new member
8410 function.
8411 (go_language_data): Delete la_language_arch_info.
8412 * language.c (unknown_language_data): Likewise.
8413 (unknown_language::language_arch_info): New member function.
8414 (auto_language_data): Delete la_language_arch_info.
8415 (auto_language::language_arch_info): New member function.
8416 (language_gdbarch_post_init): Update call to
8417 la_language_arch_info.
8418 * language.h (language_data): Delete la_language_arch_info
8419 function pointer.
8420 (language_defn::language_arch_info): New function.
8421 * m2-lang.c (m2_language_arch_info): Delete function, move
8422 implementation to...
8423 (m2_language::language_arch_info): ...here, a new member
8424 function.
8425 (m2_language_data): Delete la_language_arch_info.
8426 * objc-lang.c (objc_language_arch_info): Delete function, move
8427 implementation to...
8428 (objc_language::language_arch_info): ...here, a new member
8429 function.
8430 (objc_language_data): Delete la_language_arch_info.
8431 * opencl-lang.c (opencl_language_arch_info): Delete function, move
8432 implementation to...
8433 (opencl_language::language_arch_info): ...here, a new member
8434 function.
8435 (opencl_language_data): Delete la_language_arch_info.
8436 * p-lang.c (pascal_language_arch_info): Delete function, move
8437 implementation to...
8438 (pascal_language::language_arch_info): ...here, a new member
8439 function.
8440 (pascal_language_data): Delete la_language_arch_info.
8441 * rust-lang.c (rust_language_arch_info): Delete function, move
8442 implementation to...
8443 (rust_language::language_arch_info): ...here, a new member
8444 function.
8445 (rust_language_data): Delete la_language_arch_info.
8446
48448202
AB
84472020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8448
8449 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
8450 initializer.
8451 * c-lang.c (c_language_data): Likewise.
8452 (cplus_language_data): Likewise.
8453 (cplus_language::pass_by_reference_info): New method.
8454 (asm_language_data): Delete la_pass_by_reference initializer.
8455 (minimal_language_data): Likewise.
8456 * cp-abi.c (cp_pass_by_reference): Remove use of
8457 default_pass_by_reference.
8458 * d-lang.c (d_language_data): Likewise.
8459 * f-lang.c (f_language_data): Likewise.
8460 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
8461 default_pass_by_reference.
8462 * go-lang.c (go_language_data): Likewise.
8463 * language.c (language_pass_by_reference): Update.
8464 (default_pass_by_reference): Delete.
8465 (unknown_language_data): Delete la_pass_by_reference
8466 initializer.
8467 (auto_language_data): Likewise.
8468 * language.h (struct language_data): Delete la_pass_by_reference
8469 field.
8470 (language_defn::pass_by_reference_info): New member function.
8471 (default_pass_by_reference): Delete declaration.
8472 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
8473 initializer.
8474 * objc-lang.c (objc_language_data): Likewise.
8475 * opencl-lang.c (opencl_language_data): Likewise.
8476 * p-lang.c (pascal_language_data): Likewise.
8477 * rust-lang.c (rust_language_data): Likewise.
8478
15e5fd35
AB
84792020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8480
8481 * ada-lang.c (ada_read_var_value): Delete function, move
8482 implementation to...
8483 (ada_language::read_var_value): ...here.
8484 (ada_language_data): Delete la_read_var_value initializer.
8485 * c-lang.c (c_language_data): Likewise.
8486 (cplus_language_data): Likewise.
8487 (minimal_language_data): Likewise.
8488 * d-lang.c (d_language_data): Likewise.
8489 * f-lang.c (f_language_data): Likewise.
8490 * findvar.c (default_read_var_value): Rename to...
8491 (language_defn::read_var_value): ...this.
8492 * findvar.c (read_var_value): Update header comment, and change to
8493 call member function instead of function pointer.
8494 * go-lang.c (go_language_data): Likewise.
8495 * language.c (unknown_language_data): Delete la_read_var_value
8496 initializer.
8497 (auto_language_data): Likewise.
8498 * language.h (struct language_data): Delete la_read_var_value
8499 field.
8500 (language_defn::read_var_value): New member function.
8501 (default_read_var_value): Delete declaration.
8502 * m2-lang.c (m2_language_data): Delete la_read_var_value
8503 initializer.
8504 * objc-lang.c (objc_language_data): Likewise.
8505 * opencl-lang.c (opencl_language_data): Likewise.
8506 * p-lang.c (pascal_language_data): Likewise.
8507 * rust-lang.c (rust_language_data): Likewise.
8508 * value.h (default_read_var_value): Delete declaration.
8509
5bd40f2a
AB
85102020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8511
8512 * ada-lang.c (ada_print_array_index): Delete function, move
8513 implementation to...
8514 (ada_language::print_array_index): ...here.
8515 (ada_language_data): Delete la_print_array_index initializer.
8516 * c-lang.c (c_language_data): Likewise.
8517 (cplus_language_data): Likewise.
8518 (minimal_language_data): Likewise.
8519 * d-lang.c (d_language_data): Likewise.
8520 * f-lang.c (f_language_data): Likewise.
8521 * go-lang.c (go_language_data): Likewise.
8522 * language.c (default_print_array_index): Delete function, move
8523 implementation to...
8524 (language_defn::print_array_index): ...here.
8525 (unknown_language_data): Delete la_print_array_index initializer.
8526 (auto_language_data): Likewise.
8527 * language.h (struct language_data): Delete la_print_array_index
8528 field.
8529 (language_defn::print_array_index): New member function.
8530 (LA_PRINT_ARRAY_INDEX): Update.
8531 (default_print_array_index): Delete declaration.
8532 * m2-lang.c (m2_language_data): Delete la_print_array_index
8533 initializer.
8534 * objc-lang.c (objc_language_data): Likewise.
8535 * opencl-lang.c (opencl_language_data): Likewise.
8536 * p-lang.c (pascal_language_data): Likewise.
8537 * rust-lang.c (rust_language_data): Likewise.
8538
0874fd07
AB
85392020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8540
8541 * gdb/ada-lang.c (ada_language_defn): Convert to...
8542 (ada_language_data): ...this.
8543 (class ada_language): New class.
8544 (ada_language_defn): New static global.
8545 * gdb/c-lang.c (c_language_defn): Convert to...
8546 (c_language_data): ...this.
8547 (class c_language): New class.
8548 (c_language_defn): New static global.
8549 (cplus_language_defn): Convert to...
8550 (cplus_language_data): ...this.
8551 (class cplus_language): New class.
8552 (cplus_language_defn): New static global.
8553 (asm_language_defn): Convert to...
8554 (asm_language_data): ...this.
8555 (class asm_language): New class.
8556 (asm_language_defn): New static global.
8557 (minimal_language_defn): Convert to...
8558 (minimal_language_data): ...this.
8559 (class minimal_language): New class.
8560 (minimal_language_defn): New static global.
8561 * gdb/d-lang.c (d_language_defn): Convert to...
8562 (d_language_data): ...this.
8563 (class d_language): New class.
8564 (d_language_defn): New static global.
8565 * gdb/f-lang.c (f_language_defn): Convert to...
8566 (f_language_data): ...this.
8567 (class f_language): New class.
8568 (f_language_defn): New static global.
8569 * gdb/go-lang.c (go_language_defn): Convert to...
8570 (go_language_data): ...this.
8571 (class go_language): New class.
8572 (go_language_defn): New static global.
8573 * gdb/language.c (unknown_language_defn): Remove declaration.
8574 (current_language): Initialize to nullptr, real initialization is
8575 moved to _initialize_language.
8576 (languages): Delete global.
8577 (language_defn::languages): Define.
8578 (set_language_command): Use language_defn::languages.
8579 (set_language): Likewise.
8580 (range_error): Likewise.
8581 (language_enum): Likewise.
8582 (language_def): Likewise.
8583 (add_set_language_command): Use language_def::languages for the
8584 language list, and language_def to lookup language pointers.
8585 (skip_language_trampoline): Use language_defn::languages.
8586 (unknown_language_defn): Convert to...
8587 (unknown_language_data): ...this.
8588 (class unknown_language): New class.
8589 (unknown_language_defn): New static global.
8590 (auto_language_defn): Convert to...
8591 (auto_language_data): ...this.
8592 (class auto_language): New class.
8593 (auto_language_defn): New static global.
8594 (language_gdbarch_post_init): Use language_defn::languages.
8595 (_initialize_language): Initialize current_language.
8596 * gdb/language.h (struct language_defn): Rename to...
8597 (struct language_data): ...this.
8598 (struct language_defn): New.
8599 (auto_language_defn): Delete.
8600 (unknown_language_defn): Delete.
8601 (minimal_language_defn): Delete.
8602 (ada_language_defn): Delete.
8603 (asm_language_defn): Delete.
8604 (c_language_defn): Delete.
8605 (cplus_language_defn): Delete.
8606 (d_language_defn): Delete.
8607 (f_language_defn): Delete.
8608 (go_language_defn): Delete.
8609 (m2_language_defn): Delete.
8610 (objc_language_defn): Delete.
8611 (opencl_language_defn): Delete.
8612 (pascal_language_defn): Delete.
8613 (rust_language_defn): Delete.
8614 * gdb/m2-lang.c (m2_language_defn): Convert to...
8615 (m2_language_data): ...this.
8616 (class m2_language): New class.
8617 (m2_language_defn): New static global.
8618 * gdb/objc-lang.c (objc_language_defn): Convert to...
8619 (objc_language_data): ...this.
8620 (class objc_language): New class.
8621 (objc_language_defn): New static global.
8622 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
8623 (opencl_language_data): ...this.
8624 (class opencl_language): New class.
8625 (opencl_language_defn): New static global.
8626 * gdb/p-lang.c (pascal_language_defn): Convert to...
8627 (pascal_language_data): ...this.
8628 (class pascal_language): New class.
8629 (pascal_language_defn): New static global.
8630 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
8631 language pointer, update comment format.
8632 * gdb/rust-lang.c (rust_language_defn): Convert to...
8633 (rust_language_data): ...this.
8634 (class rust_language): New class.
8635 (rust_language_defn): New static global.
8636
1313c56e
AB
86372020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
8638
8639 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
8640 member variable.
8641 <m_stmt_at_address>: New member variable.
8642 (lnp_state_machine::record_line): Don't record some lines, update
8643 tracking of is_stmt at the same address.
8644 (lnp_state_machine::lnp_state_machine): Initialise new member
8645 variables.
8646
b7ed9f3d
ST
86472020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
8648
8649 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
8650 "-include gnu-nat-mig.h".
8651 * gnu-nat-mig.h: New file.
8652 * gnu-nat.c: Include "gnu-nat-mig.h".
8653 (exc_server, msg_reply_server, notify_server,
8654 process_reply_server): Remove declarations.
8655
14a8ad62
ST
86562020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8657
8658 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
8659 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
8660 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
8661 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
8662 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
8663 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
8664 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
8665 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
8666 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
8667 to gnu_nat_target class.
8668 * gnu-nat.c: Likewise.
8669 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
8670 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
8671 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
8672 object.
8673 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
8674 instead of `gnu_target'.
8675
0af5e106
ST
86762020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8677
8678 * i386-gnu-tdep.c: Include "gdbcore.h"
8679 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
8680 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
8681 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
8682 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
8683 i386_gnu_sigcontext_addr): New functions
8684 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
8685 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
8686 tdep.
8687
078f2fc9
ST
86882020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8689
8690 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
8691 before fork_inferior call. Avoid calling it if target_is_pushed returns
8692 true.
8693
53dff92c
ST
86942020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8695
8696 * gnu-nat.h (gnu_target): New variable declaration.
8697 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
8698 gnu_target.
8699 * gnu-nat.c (gnu_target): New variable.
8700 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
8701 add_thread_silent, and add_thread calls.
8702 (gnu_nat_target::create_inferior): Pass gnu_target to
8703 add_thread_silent, thread_change_ptid call.
8704 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
8705 call.
8706
5a8b8627
ST
87072020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8708
8709 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
8710 (gnu_nat_target::find_memory_regions): Remove unused
8711 `old_address' variable.
8712
366f550a
ST
87132020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8714
8715 * gnu-nat.c: Include "gdbarch.h".
8716
f14871bf
ST
87172020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8718
8719 * reply_mig_hack.awk (Error return): Cast function through
8720 void *, to bypass compiler function call check.
8721
c6887cfb
ST
87222020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8723
8724 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
8725 $(srcdir)/reply_mig_hack.awk.
8726
6930bffe
ST
87272020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8728
8729 * gnu-nat.h (gnu_debug_flag): Set type to bool.
8730
112c22ed
JG
87312020-05-30 Jonny Grant <jg@jguk.org>
8732
8733 * configure.ac (ACX_BUGURL): change bug URL to https.
8734
f68f85b5
PA
87352020-05-30 Pedro Alves <palves@redhat.com>
8736
8737 * cp-support.c (replace_typedefs_template): New.
8738 (replace_typedefs_qualified_name): Handle
8739 DEMANGLE_COMPONENT_TEMPLATE.
8740
976ca316
SM
87412020-05-29 Simon Marchi <simon.marchi@efficios.com>
8742
8743 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
8744 dwarf2/index-cache.h, dwarf2/index-write.c,
8745 dwarf2/index-write.h, dwarf2/line-header.c,
8746 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
8747 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
8748 variables and fields from `dwarf2_per_objfile` to just
8749 `per_objfile` throughout.
8750
989ade05
SM
87512020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
8752
8753 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8754 <push_dwarf_reg_entry_value>: Add comment.
8755
c47bae85
KB
87562020-05-28 Kevin Buettner <kevinb@redhat.com>
8757 Keith Seitz <keiths@redhat.com>
8758
8759 * python/python.c (do_start_initialization): Call PyEval_SaveThread
8760 instead of PyEval_ReleaseLock.
8761 (class gdbpy_gil): Move to earlier in file.
8762 (finalize_python): Set gdb_python_initialized.
8763 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
8764 when not initialized.
8765
44486dcf
SM
87662020-05-28 Simon Marchi <simon.marchi@efficios.com>
8767
8768 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8769 <push_dwarf_reg_entry_value>: Remove assert. Override
8770 per_objfile with caller_per_objfile.
8771
f030440d
TV
87722020-05-28 Tom de Vries <tdevries@suse.de>
8773
8774 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
8775 PR gold/15646 workaround to symbol kind "type".
8776
f0fbb768
TT
87772020-05-27 Tom Tromey <tromey@adacore.com>
8778
8779 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
8780
af0b2a3e
TT
87812020-05-27 Tom Tromey <tromey@adacore.com>
8782
8783 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
8784 Use htab_find_with_hash.
8785 <add_abbrev>: Remove "abbrev_number" parameter.
8786 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
8787 "abbrev_number" parameter. Use htab_find_slot_with_hash.
8788 (hash_abbrev): Add comment.
8789 (abbrev_table::lookup_abbrev): Move to header file.
8790 (abbrev_table::read): Update.
8791
7d00ffec
TT
87922020-05-27 Tom Tromey <tromey@adacore.com>
8793
8794 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
8795 method.
8796 <canonical_name>: New member.
8797 <raw_name>: Rename from "name".
8798 (partial_die_info): Initialize canonical_name.
8799 (scan_partial_symbols): Check raw_name.
8800 (partial_die_parent_scope, partial_die_full_name)
8801 (add_partial_symbol, add_partial_subprogram)
8802 (add_partial_enumeration, load_partial_dies): Use "name" method.
8803 (partial_die_info::name): New method.
8804 (partial_die_info::read, guess_partial_die_structure_name)
8805 (partial_die_info::fixup): Update.
8806
697bba18
TT
88072020-05-27 Tom Tromey <tromey@adacore.com>
8808
8809 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
8810 <get_ref_die_offset>: Inline.
8811 <get_ref_die_offset_complaint>: New method.
8812 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
8813 (attribute::get_ref_die_offset_complaint): Rename from
8814 get_ref_die_offset. Just issue complaint.
8815
c17ace43
HD
88162020-05-27 Hannes Domani <ssbssa@yahoo.de>
8817
8818 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
8819
96445f0b
HD
88202020-05-27 Hannes Domani <ssbssa@yahoo.de>
8821
8822 * exec.c (exec_file_attach): Use errno value of first openp failure.
8823
ac637ec3
HD
88242020-05-27 Hannes Domani <ssbssa@yahoo.de>
8825
8826 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
8827 Don't close thread handle.
8828
17ee85fc
TT
88292020-05-27 Tom Tromey <tom@tromey.com>
8830 Simon Marchi <simon.marchi@efficios.com>
8831
8832 * objfiles.h (struct objfile) <partial_symtabs>: Now a
8833 shared_ptr.
8834 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
8835 member.
8836 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
8837 dwarf2_per_bfd_objfile_data_key>: New globals.
8838 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
8839 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
8840 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
8841 shared.
8842 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
8843 short-circuit when sharing.
8844 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
8845 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
8846
39b16f87
SM
88472020-05-27 Simon Marchi <simon.marchi@efficios.com>
8848
8849 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
8850 to...
8851 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
8852 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
8853
fcf23d5b
SM
88542020-05-27 Simon Marchi <simon.marchi@efficios.com>
8855
8856 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
8857 build_name_components, find_name_components_bounds>:
8858 Add per_objfile parameter.
8859 (struct mapped_index) <symbol_name_at>: Likewise.
8860 (struct mapped_debug_names): Remove constructor.
8861 <dwarf2_per_objfile>: Remove field.
8862 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
8863 (mapped_index_base::find_name_components_bounds,
8864 mapped_index_base::build_name_components,
8865 dw2_expand_symtabs_matching_symbol): Likewise.
8866 (class mock_mapped_index) <symbol_name_at>: Likewise.
8867 (check_match): Likewise.
8868 (check_find_bounds_finds): Likewise.
8869 (test_mapped_index_find_name_component_bounds): Update.
8870 (CHECK_MATCH): Update.
8871 (dw2_expand_symtabs_matching): Update.
8872 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
8873 per_objfile parameter.
8874 <find_vec_in_debug_names>: Likewise.
8875 <m_per_objfile>: New field.
8876 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
8877 parameter.
8878 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
8879 (dw2_debug_names_iterator::next): Update.
8880 (dw2_debug_names_lookup_symbol): Update.
8881 (dw2_debug_names_expand_symtabs_for_function): Update.
8882 (dw2_debug_names_map_matching_symbols): Update.
8883 (dw2_debug_names_expand_symtabs_matching): Update.
8884 (dwarf2_read_debug_names): Update.
8885
7188ed02
SM
88862020-05-27 Simon Marchi <simon.marchi@efficios.com>
8887
8888 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
8889 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
8890 move to dwarf2_per_objfile.
8891 <read_in_chain>: Remove.
8892 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
8893 remove_all_cus, age_comp_units>: New methods.
8894 <m_dwarf2_cus>: New member.
8895 (struct dwarf2_per_cu_data) <cu>: Remove.
8896 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
8897 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
8898 moved to methods of dwarf2_per_objfile.
8899 (dwarf2_clear_marks): Remove.
8900 (dwarf2_queue_item::~dwarf2_queue_item): Update.
8901 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
8902 (dwarf2_per_bfd::free_cached_comp_units): Remove.
8903 (dwarf2_per_objfile::remove_all_cus): New.
8904 (class free_cached_comp_units) <~free_cached_comp_units>:
8905 Update.
8906 (load_cu): Update.
8907 (dw2_do_instantiate_symtab): Adjust.
8908 (fill_in_sig_entry_from_dwo_entry): Adjust.
8909 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8910 (cutu_reader::cutu_reader): Likewise.
8911 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
8912 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
8913 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
8914 and dwarf2_per_objfile::age_comp_units.
8915 (load_partial_comp_unit): Update.
8916 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
8917 (process_queue): Likewise.
8918 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
8919 backlink.
8920 (dwarf2_read_addr_index): Likewise.
8921 (follow_die_offset): Likewise.
8922 (dwarf2_fetch_die_loc_sect_off): Likewise.
8923 (dwarf2_fetch_constant_bytes): Likewise.
8924 (dwarf2_fetch_die_type_sect_off): Likewise.
8925 (follow_die_sig_1): Likewise.
8926 (load_full_type_unit): Likewise.
8927 (read_signatured_type): Likewise.
8928 (dwarf2_cu::dwarf2_cu): Don't set cu field.
8929 (dwarf2_cu::~dwarf2_cu): Remove.
8930 (dwarf2_per_objfile::get_cu): New.
8931 (dwarf2_per_objfile::set_cu): New.
8932 (age_cached_comp_units): Rename to...
8933 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
8934 to std::unordered_map.
8935 (free_one_cached_comp_unit): Rename to...
8936 (dwarf2_per_objfile::remove_cu): ... this. Adjust
8937 to std::unordered_map.
8938 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
8939 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
8940 a dwarf2_per_objfile in data.
8941 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
8942 (dwarf2_clear_marks): Remove.
8943
2e671100
SM
89442020-05-27 Simon Marchi <simon.marchi@efficios.com>
8945
8946 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
8947 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
8948 (init_tu_and_read_dwo_dies): Likewise.
8949 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
8950 (cutu_reader::cutu_reader): Likewise.
8951 (load_partial_comp_unit): Likewise.
8952 (process_psymtab_comp_unit): Update.
8953 (build_type_psymtabs_1): Update.
8954 (process_skeletonless_type_unit): Update.
8955 (load_full_comp_unit): Update.
8956 (find_partial_die): Update.
8957 (dwarf2_read_addr_index): Update.
8958 (read_signatured_type): Update.
8959
2e6a9f79
SM
89602020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8961
8962 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
8963 m_header_read_in>: New fields.
8964 <get_header>: New method.
8965 * dwarf2/read.c (per_cu_header_read_in): Remove.
8966 (dwarf2_per_cu_data::get_header): New.
8967 (dwarf2_per_cu_data::addr_size): Update.
8968 (dwarf2_per_cu_data::offset_size): Update.
8969 (dwarf2_per_cu_data::ref_addr_size): Update.
8970
1b555f17
SM
89712020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8972
8973 * dwarf2/read.c (load_cu): Return dwarf2_cu.
8974 (dw2_do_instantiate_symtab): Update.
8975 (queue_and_load_all_dwo_tus): Change parameter from
8976 dwarf2_per_cu_data to dwarf2_cu.
8977 (dwarf2_fetch_die_loc_sect_off): Update.
8978 (dwarf2_fetch_constant_bytes): Update.
8979 (dwarf2_fetch_die_type_sect_off): Update.
8980
8fc0b21d
SM
89812020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8982
8983 * dwarf2/read.c (process_full_comp_unit,
8984 process_full_type_unit): Remove per_cu, per_objfile paramters.
8985 Add dwarf2_cu parameter.
8986 (process_queue): Update.
8987
168c9250
SM
89882020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
8989
8990 * dwarf2/read.c (create_cu_from_index_list): Replace
8991 dwarf2_per_objfile parameter with dwarf2_per_bfd.
8992 (create_cus_from_index_list): Likewise.
8993 (create_cus_from_index): Likewise.
8994 (create_signatured_type_table_from_index): Likewise.
8995 (create_cus_from_debug_names_list): Likewise.
8996 (create_cus_from_debug_names): Likewise.
8997 (dwarf2_read_gdb_index): Update.
8998 (dwarf2_read_debug_names): Update.
8999
e286671b
TT
90002020-05-27 Tom Tromey <tom@tromey.com>
9001 Simon Marchi <simon.marchi@efficios.com>
9002
9003 * dwarf2/read.h (struct dwarf2_per_objfile)
9004 <get_type_for_signatured_type, set_type_for_signatured_type>:
9005 New methods.
9006 <m_type_map>: New member.
9007 (struct signatured_type) <type>: Remove.
9008 * dwarf2/read.c
9009 (dwarf2_per_objfile::get_type_for_signatured_type,
9010 dwarf2_per_objfile::set_type_for_signatured_type): New.
9011 (get_signatured_type): Use new methods.
9012
8adb8487
TT
90132020-05-27 Tom Tromey <tom@tromey.com>
9014 Simon Marchi <simon.marchi@efficios.com>
9015
9016 * dwarf2/read.h (struct type_unit_group_unshareable): New.
9017 (struct dwarf2_per_objfile) <type_units>: New member.
9018 <get_type_unit_group_unshareable>: New method.
9019 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
9020 num_symtabs, symtabs>: Remove; move to
9021 type_unit_group_unshareable.
9022 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
9023 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
9024 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
9025
127bbf4b
SM
90262020-05-27 Simon Marchi <simon.marchi@efficios.com>
9027
9028 * dwarf2/read.h (struct dwarf2_per_cu_data):
9029 <dwarf2_per_objfile>: Remove.
9030 * dwarf2/read.c (create_cu_from_index_list): Don't assign
9031 dwarf2_per_objfile.
9032 (create_signatured_type_table_from_index): Likewise.
9033 (create_signatured_type_table_from_debug_names): Likewise.
9034 (create_debug_type_hash_table): Likewise.
9035 (fill_in_sig_entry_from_dwo_entry): Likewise.
9036 (create_type_unit_group): Likewise.
9037 (read_comp_units_from_section): Likewise.
9038 (create_cus_hash_table): Likewise.
9039
f6e649dd
SM
90402020-05-27 Simon Marchi <simon.marchi@efficios.com>
9041
9042 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
9043 dwarf2_per_cu_data::dwarf2_per_objfile.
9044 (compute_compunit_symtab_includes): Likewise.
9045 (dwarf2_cu::start_symtab): Likewise.
9046
aa66c379
SM
90472020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9048
9049 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
9050 parameter.
9051 * dwarf2/read.c (get_die_type_at_offset): Likewise.
9052 (read_namespace_alias): Update.
9053 (lookup_die_type): Update.
9054 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
9055 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
9056 Update.
9057 (disassemble_dwarf_expression): Update.
9058
120ce1b5
SM
90592020-05-27 Simon Marchi <simon.marchi@efficios.com>
9060
9061 * dwarf2/read.h (struct dwarf2_queue_item): Add
9062 dwarf2_per_objfile parameter, assign new parameter.
9063 <per_objfile>: New field.
9064 * dwarf2/read.c (free_one_cached_comp_unit): Add
9065 dwarf2_per_objfile parameter.
9066 (queue_comp_unit): Likewise.
9067 (dw2_do_instantiate_symtab): Update.
9068 (process_psymtab_comp_unit): Update.
9069 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
9070 (process_imported_unit_die): Update.
9071 (queue_and_load_dwo_tu): Update.
9072 (follow_die_offset): Update.
9073 (follow_die_sig_1): Update.
9074
9f47c707
SM
90752020-05-27 Simon Marchi <simon.marchi@efficios.com>
9076
9077 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
9078 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
9079 (read_call_site_scope): Assign per_objfile.
9080 (dwarf2_per_cu_data::objfile): Remove.
9081 * gdbtypes.h (struct call_site) <per_objfile>: New member.
9082 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
9083 dwarf2_per_objfile parameter.
9084 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
9085 dwarf2_per_objfile parameter.
9086 (dwarf_expr_reg_to_entry_parameter): Add output
9087 dwarf2_per_objfile parameter.
9088 (locexpr_get_frame_base): Update.
9089 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
9090 <push_dwarf_reg_entry_value>: Update.
9091 <call_site_to_target_addr>: Update.
9092 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
9093 parameter.
9094 (value_of_dwarf_reg_entry): Update.
9095 (rw_pieced_value): Update.
9096 (indirect_synthetic_pointer): Update.
9097 (dwarf2_evaluate_property): Update.
9098 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
9099 parameter.
9100 (locexpr_read_variable): Update.
9101 (locexpr_get_symbol_read_needs): Update.
9102 (loclist_read_variable): Update.
9103
14095eb3
SM
91042020-05-27 Simon Marchi <simon.marchi@efficios.com>
9105
9106 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9107 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9108 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9109 parameter.
9110 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9111 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9112 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9113 parameter.
9114 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
9115 sect_variable_value): Add dwarf2_per_objfile parameter.
9116 (class dwarf_evaluate_loc_desc) <dwarf_call,
9117 dwarf_variable_value>: Update.
9118 (fetch_const_value_from_synthetic_pointer): Add
9119 dwarf2_per_objfile parameter.
9120 (fetch_const_value_from_synthetic_pointer): Update.
9121 (coerced_pieced_ref): Update.
9122 (class symbol_needs_eval_context) <dwarf_call,
9123 dwarf_variable_value>: Update.
9124 (dwarf2_compile_expr_to_ax): Update.
9125
3c3cd3d4
SM
91262020-05-27 Simon Marchi <simon.marchi@efficios.com>
9127
9128 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
9129 parameter.
9130 (dwarf2_evaluate_loc_desc_full): Update.
9131
82ca3f51
SM
91322020-05-27 Simon Marchi <simon.marchi@efficios.com>
9133
9134 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
9135 parameter.
9136 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
9137 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
9138 dwarf2_per_objfile parameter.
9139 (decode_debug_loc_dwo_addresses): Likewise.
9140 (dwarf2_find_location_expression): Update.
9141 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
9142 (locexpr_describe_location_piece): Add dwarf2_per_objfile
9143 parameter.
9144 (disassemble_dwarf_expression): Add dwarf2_per_objfile
9145 parameter.
9146 (locexpr_describe_location_1): Likewise.
9147 (locexpr_describe_location): Update.
9148
4b167ea1
SM
91492020-05-27 Simon Marchi <simon.marchi@efficios.com>
9150
9151 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
9152 Remove.
9153 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
9154 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
9155 (dwarf2_compile_property_to_c): Update.
9156 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
9157 use text offset from objfile.
9158 (locexpr_tracepoint_var_ref): Update.
9159 (locexpr_generate_c_location): Update.
9160 (loclist_describe_location): Update.
9161 (loclist_tracepoint_var_ref): Update.
9162 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
9163 dwarf2_per_objfile parameter.
9164 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
9165 use text offset from objfile.
9166 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
9167
89b07335
SM
91682020-05-27 Simon Marchi <simon.marchi@efficios.com>
9169
9170 * dwarf2/expr.h (struct dwarf_expr_context)
9171 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
9172 <offset>: Remove.
9173 <per_objfile>: New member.
9174 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
9175 dwarf2_per_objfile parameter. Don't set offset, set
9176 per_objfile.
9177 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
9178 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
9179 a dwarf2_per_objfile object instead of an offset.
9180 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
9181 constructor.
9182 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
9183 to dwarf2_expr_executor constructor. Don't set offset.
9184 (dwarf2_fetch_cfa_info): Update.
9185 (struct dwarf2_frame_cache) <text_offset>: Remove.
9186 <per_objfile>: New field.
9187 (dwarf2_frame_cache): Update.
9188 (dwarf2_frame_prev_register): Update.
9189 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9190 <dwarf_evaluate_loc_desc>: Add constructor.
9191 (dwarf2_evaluate_loc_desc_full): Update.
9192 (dwarf2_locexpr_baton_eval): Update.
9193 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
9194 Add constructor.
9195 (dwarf2_loc_desc_get_symbol_read_needs): Update.
9196
293e7e51
SM
91972020-05-27 Simon Marchi <simon.marchi@efficios.com>
9198
9199 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
9200 addr_sized_int_type>: Move to dwarf2_cu.
9201 <int_type>: Move to dwarf2_per_objfile.
9202 (struct dwarf2_per_objfile) <int_type>: Move here.
9203 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
9204 addr_sized_int_type>: Move here.
9205 (read_func_scope): Update.
9206 (read_array_type): Update.
9207 (read_tag_string_type): Update.
9208 (attr_to_dynamic_prop): Update.
9209 (dwarf2_per_cu_data::int_type): Rename to...
9210 (dwarf2_per_objfile::int_type): ... this.
9211 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
9212 (dwarf2_cu::addr_sized_int_type): ... this.
9213 (read_subrange_type): Update.
9214 (dwarf2_per_cu_data::addr_type): Rename to...
9215 (dwarf2_cu::addr_type): ... this.
9216 (set_die_type): Update.
9217
64874a40
SM
92182020-05-27 Simon Marchi <simon.marchi@efficios.com>
9219
9220 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
9221 data through per_cu->cu.
9222
4ab09049
SM
92232020-05-27 Simon Marchi <simon.marchi@efficios.com>
9224
9225 * dwarf2/read.c (lookup_dwo_comp_unit): Change
9226 dwarf2_per_cu_data parameter fo dwarf2_cu.
9227 (lookup_dwo_type_unit): Likewise.
9228 (read_cutu_die_from_dwo): Likewise.
9229 (lookup_dwo_unit): Likewise.
9230 (open_and_init_dwo_file): Likewise.
9231 (lookup_dwo_cutu): Likewise.
9232 (lookup_dwo_comp_unit): Likewise.
9233 (lookup_dwo_type_unit): Likewise.
9234 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9235 (cutu_reader::cutu_reader): Update.
9236
47b14e86
SM
92372020-05-27 Simon Marchi <simon.marchi@efficios.com>
9238
9239 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
9240 parameter.
9241 (process_full_type_unit): Likewise.
9242 (process_queue): Update.
9243
43182c09
SM
92442020-05-27 Simon Marchi <simon.marchi@efficios.com>
9245
9246 * dwarf2/read.c (recursively_compute_inclusions): Add
9247 dwarf2_per_objfile parameter.
9248 (compute_compunit_symtab_includes): Likewise.
9249 (process_cu_includes): Update.
9250
7aa104c4
SM
92512020-05-27 Simon Marchi <simon.marchi@efficios.com>
9252
9253 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
9254 parameter.
9255 (create_type_unit_group): Update.
9256 (process_psymtab_comp_unit_reader): Update.
9257 (build_type_psymtabs_reader): Update.
9258
e3beb21d
SM
92592020-05-27 Simon Marchi <simon.marchi@efficios.com>
9260
9261 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
9262 object through m_this_cu->cu.
9263
d460f660
SM
92642020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9265
9266 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
9267 the info parameter.
9268 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
9269
ab432490
SM
92702020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9271
9272 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
9273 per_objfile parameter.
9274 (load_full_type_unit): Add per_objfile parameter.
9275 (read_signatured_type): Likewise.
9276 (load_full_comp_unit): Likewise.
9277 (load_cu): Likewise.
9278 (dw2_do_instantiate_symtab): Likewise.
9279 (dw2_get_file_names): Likewise.
9280 (dw2_map_symtabs_matching_filename): Update.
9281 (dw_expand_symtabs_matching_file_matcher): Update.
9282 (dw2_map_symbol_filenames): Update.
9283 (process_psymtab_comp_unit): Add per_objfile parameter.
9284 (build_type_psymtabs_1): Update.
9285 (process_skeletonless_type_unit): Update.
9286 (dwarf2_build_psymtabs_hard): Update.
9287 (load_partial_comp_unit): Add per_objfile parameter.
9288 (scan_partial_symbols): Update.
9289 (load_full_comp_unit): Add per_objfile parameter.
9290 (process_imported_unit_die): Update.
9291 (create_cus_hash_table): Update.
9292 (find_partial_die): Update.
9293 (dwarf2_read_addr_index): Update.
9294 (follow_die_offset): Update.
9295 (dwarf2_fetch_die_loc_sect_off): Update.
9296 (dwarf2_fetch_constant_bytes): Update.
9297 (dwarf2_fetch_die_type_sect_off): Update.
9298 (follow_die_sig_1): Update.
9299 (load_full_type_unit): Add per_objfile parameter.
9300 (read_signatured_type): Likewise.
9301
313bad1b
SM
93022020-05-27 Simon Marchi <simon.marchi@efficios.com>
9303
9304 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
9305 of objfile_name.
9306
c3699833
SM
93072020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9308
9309 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
9310 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9311 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
9312 field.
9313 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9314 (create_cus_from_index): Update.
9315 (dwarf2_read_gdb_index): Update.
9316 (create_cus_from_debug_names): Update.
9317 (dwarf2_read_debug_names): Update.
9318 (get_abbrev_section_for_cu): Update.
9319 (create_all_comp_units): Update.
9320 (read_attribute_value): Update.
9321 (get_debug_line_section): Update.
9322 * dwarf2/index-cache.c (index_cache::store): Update.
9323 * dwarf2/index-write.c (save_gdb_index_command): Update.
9324 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
9325
1859c670
SM
93262020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9327
9328 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
9329 member.
9330 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
9331 dwarf2_per_cu_data::per_bfd.
9332 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
9333 (create_type_unit_group): Likewise.
9334 (queue_comp_unit): Remove reference to
9335 per_cu->dwarf2_per_objfile.
9336 (maybe_queue_comp_unit): Likewise.
9337 (fill_in_sig_entry_from_dwo_entry): Assign new field.
9338 (create_cus_hash_table): Assign new field.
9339
5e22e966
SM
93402020-05-27 Simon Marchi <simon.marchi@efficios.com>
9341
9342 * dwarf2/read.c: Replace
9343 dwarf2_cu->per_cu->dwarf2_per_objfile references with
9344 dwarf2_cu->per_objfile throughout.
9345
97a1449a
SM
93462020-05-27 Simon Marchi <simon.marchi@efficios.com>
9347
9348 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
9349 parameter, don't use per_cu->dwarf2_per_objfile.
9350 (dw2_instantiate_symtab): Likewise.
9351 (dw2_find_last_source_symtab): Update.
9352 (dw2_map_expand_apply): Update.
9353 (dw2_lookup_symbol): Update.
9354 (dw2_expand_symtabs_for_function): Update.
9355 (dw2_expand_all_symtabs): Update.
9356 (dw2_expand_symtabs_with_fullname): Update.
9357 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
9358 don't use per_cu->dwarf2_per_objfile.
9359 (dw2_expand_marked_cus): Update.
9360 (dw2_find_pc_sect_compunit_symtab): Update.
9361 (dw2_debug_names_lookup_symbol): Update.
9362 (dw2_debug_names_expand_symtabs_for_function): Update.
9363 (dw2_debug_names_map_matching_symbols): Update.
9364 (dwarf2_psymtab::expand_psymtab): Update.
9365
9e021579
SM
93662020-05-27 Simon Marchi <simon.marchi@efficios.com>
9367
9368 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
9369 <per_objfile>: New member.
9370 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
9371 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
9372 call to dwarf2_cu.
9373 (cutu_reader::cutu_reader): Update.
9374 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
9375
ae090bdb
SM
93762020-05-27 Simon Marchi <simon.marchi@efficios.com>
9377
9378 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
9379 struct dwarf2_per_objfile.
9380 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
9381 dwarf2_per_bfd.
9382 * dwarf2/read.c (set_die_type): Update.
9383 (get_die_type_at_offset): Update.
9384
af758d11
SM
93852020-05-27 Tom Tromey <tom@tromey.com>
9386 Simon Marchi <simon.marchi@efficios.com>
9387
9388 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
9389 method.
9390 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
9391 get_symtab, set_symtab>: New methods.
9392 <m_symtabs>: New field.
9393 (struct dwarf2_psymtab): Derive from partial_symtab.
9394 <readin_p, get_compunit_symtab>: Declare methods.
9395 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
9396 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
9397 New methods.
9398 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
9399 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
9400 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
9401 (dw2_symtab_iter_next, dw2_print_stats)
9402 (dw2_expand_symtabs_with_fullname)
9403 (dw2_expand_symtabs_matching_one)
9404 (dw_expand_symtabs_matching_file_matcher)
9405 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
9406 (dw2_debug_names_iterator::next)
9407 (dw2_debug_names_map_matching_symbols)
9408 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
9409 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
9410 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
9411 New methods.
9412 (get_compunit_symtab, process_full_comp_unit)
9413 (process_full_type_unit): Update.
9414 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
9415
5989a64e
SM
94162020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9417
9418 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
9419 then introduce a new dwarf2_per_objfile type.
9420 <read_line_string>: Move to the new dwarf2_per_objfile type.
9421 <objfile>: Likewise.
9422 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
9423 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
9424 dwarf2_per_objfile->per_bfd.
9425 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
9426 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
9427 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
9428 (dwarf2_per_bfd::free_cached_comp_units): ... this.
9429 (dwarf2_has_info): Allocate dwarf2_per_bfd.
9430 (dwarf2_per_objfile::locate_sections): Rename to...
9431 (dwarf2_per_bfd::locate_sections): ... this.
9432 (dwarf2_per_objfile::get_cutu): Rename to...
9433 (dwarf2_per_bfd::get_cutu): ... this.
9434 (dwarf2_per_objfile::get_cu): Rename to...
9435 (dwarf2_per_bfd::get_cu): ... this.
9436 (dwarf2_per_objfile::get_tu): Rename to...
9437 (dwarf2_per_bfd::get_tu): ... this.
9438 (dwarf2_per_objfile::allocate_per_cu): Rename to...
9439 (dwarf2_per_bfd::allocate_per_cu): ... this.
9440 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
9441 (dwarf2_per_bfd::allocate_signatured_type): ... this.
9442 (get_gdb_index_contents_ftype): Change parameter from
9443 dwarf2_per_objfile to dwarf2_per_bfd.
9444 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
9445 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
9446
a50264ba
TT
94472020-05-27 Tom Tromey <tom@tromey.com>
9448 Simon Marchi <simon.marchi@efficios.com>
9449
9450 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
9451 (allocate_piece_closure): Set "per_objfile" member.
9452 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
9453 (locexpr_describe_location, loclist_describe_location): Use new
9454 member.
9455 * dwarf2/read.c (read_call_site_scope)
9456 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
9457 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
9458 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
9459 handle_data_member_location): Set per_objfile member.
9460 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
9461 member.
9462 (struct dwarf2_loclist_baton) <per_objfile>: New member.
9463
d3473f0c
TT
94642020-05-27 Tom Tromey <tom@tromey.com>
9465
9466 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
9467 allocate_signatured_type>: Declare new methods.
9468 <m_num_psymtabs>: New member.
9469 (struct dwarf2_per_cu_data) <index>: New member.
9470 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
9471 (dwarf2_per_objfile::allocate_signatured_type): New methods.
9472 (create_cu_from_index_list): Use allocate_per_cu.
9473 (create_signatured_type_table_from_index)
9474 (create_signatured_type_table_from_debug_names)
9475 (create_debug_type_hash_table, add_type_unit)
9476 (read_comp_units_from_section): Use allocate_signatured_type.
9477
5717c425
TT
94782020-05-27 Tom Tromey <tom@tromey.com>
9479
9480 * psymtab.c (partial_map_expand_apply)
9481 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9482 (psym_lookup_global_symbol_language)
9483 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9484 (psym_print_stats, psym_expand_symtabs_for_function)
9485 (psym_map_symbol_filenames, psym_map_matching_symbols)
9486 (psym_expand_symtabs_matching)
9487 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9488 (maintenance_check_psymtabs): Update.
9489 * psympriv.h (struct partial_symtab) <readin_p,
9490 get_compunit_symtab>: Add objfile parameter.
9491 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
9492 Likewise.
9493 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
9494 get_compunit_symtab>: Likewise.
9495 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
9496
45940949
TT
94972020-05-27 Tom Tromey <tom@tromey.com>
9498
9499 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
9500 member.
9501 * dwarf2/read.c (delete_file_name_entry): Fix comment.
9502 (create_cu_from_index_list)
9503 (create_signatured_type_table_from_index)
9504 (create_signatured_type_table_from_debug_names)
9505 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
9506 (dwarf2_create_include_psymtab)
9507 (create_debug_type_hash_table, add_type_unit)
9508 (create_type_unit_group, read_comp_units_from_section)
9509 (dwarf2_compute_name, create_cus_hash_table)
9510 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9511 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
9512 obstack.
9513 (dw2_get_real_path): Likewise. Change argument to
9514 dwarf2_per_objfile.
9515
f8c6d152
LM
95162020-05-27 Luis Machado <luis.machado@linaro.org>
9517
9518 PR tdep/26000
9519 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
9520 for ldrd (immediate).
9521
e98d2e6d
PW
95222020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9523
9524 * command.h: Add comment giving the name of class_tui.
9525 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
9526 create the fake command for the help for class_tui.
9527
53a47a3e
TT
95282020-05-26 Tom Tromey <tromey@adacore.com>
9529
9530 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
9531 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
9532 (val_atr): New function.
9533 (value_val_atr): Use it.
9534 * ada-valprint.c (print_optional_low_bound): Change low bound
9535 handling for enums.
9536 (val_print_packed_array_elements): Don't call discrete_position.
9537 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
9538 discrete_position for enum types.
9539 * language.c (default_print_array_index): Change type.
9540 * language.h (struct language_defn) <la_print_array_index>: Add
9541 index_type parameter, change type of index_value.
9542 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
9543 (default_print_array_index): Update.
9544 * valprint.c (maybe_print_array_index): Don't call
9545 value_from_longest. Update.
9546 (value_print_array_elements): Don't call discrete_position.
9547
0bc2354b
TT
95482020-05-26 Tom Tromey <tromey@adacore.com>
9549
9550 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
9551 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
9552
1218a4bf
CDA
95532020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
9554
9555 PR gdb/13519
9556 * avr-tdep.c (avr_integer_to_address): Return data or code
9557 address accordingly to the second 'type' argument of the
9558 function.
9559
92651b1d
MW
95602020-05-25 Michael Weghorn <m.weghorn@posteo.de>
9561
9562 * infcmd.c, inferior.h: (construct_inferior_arguments):
9563 Moved function from here to gdbsupport/common-inferior.{h,cc}
9564
0a4f5f8c
TT
95652020-05-23 Tom Tromey <tom@tromey.com>
9566
9567 Revert commit eca1f90c:
9568 * NEWS: Remove entry for completion styling.
9569 * completer.c (_rl_completion_prefix_display_length): Move
9570 declaration later.
9571 (gdb_fnprint): Revert.
9572 (gdb_display_match_list_1): Likewise.
9573 * cli/cli-style.c (completion_prefix_style)
9574 (completion_difference_style, completion_suffix_style): Remove.
9575 (_initialize_cli_style): Revert.
9576 * cli/cli-style.h (completion_prefix_style)
9577 (completion_difference_style, completion_suffix_style): Don't
9578 declare.
9579
e08bd6c5
PA
95802020-05-24 Pedro Alves <palves@redhat.com>
9581
9582 * symtab.c (completion_list_add_name): Return boolean indication
9583 of whether the symbol matched.
9584 (completion_list_add_symbol): Don't try to remove C++ aliases if
9585 the symbol didn't match in the first place.
9586 * symtab.h (completion_list_add_name): Return bool.
9587
ceacbf6e
SM
95882020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
9589
9590 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
9591 type::field.
9592
26f16254
JB
95932020-05-23 Joel Brobecker <brobecker@adacore.com>
9594
9595 GDB 9.2 released.
9596
eca1f90c
TT
95972020-05-23 Tom Tromey <tom@tromey.com>
9598
9599 * NEWS: Add entry for completion styling.
9600 * completer.c (_rl_completion_prefix_display_length): Move
9601 declaration earlier.
9602 (gdb_fnprint): Use completion_style.
9603 (gdb_display_match_list_1): Likewise.
9604 * cli/cli-style.c (completion_prefix_style)
9605 (completion_difference_style, completion_suffix_style): New
9606 globals.
9607 (_initialize_cli_style): Register new globals.
9608 * cli/cli-style.h (completion_prefix_style)
9609 (completion_difference_style, completion_suffix_style): Declare.
9610
51e2cfa2
PA
96112020-05-23 Pedro Alves <palves@redhat.com>
9612
9613 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
9614 (parse_escape): Use ISDIGIT instead of isdigit.
9615 (puts_debug): Use gdb_isprint instead of isprint.
9616 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
9617 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
9618 ISSPACE instead of isspace.
9619 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
9620 instead of isspace.
9621 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
9622 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
9623 instead of isxdigit and ISDIGIT instead of isdigit.
9624
80fc5e77
SM
96252020-05-22 Simon Marchi <simon.marchi@efficios.com>
9626
9627 * gdbtypes.h (struct type) <field>: New method.
9628 (TYPE_FIELDS): Remove, replace all uses with either type::fields
9629 or type::field.
9630
3cabb6b0
SM
96312020-05-22 Simon Marchi <simon.marchi@efficios.com>
9632
9633 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
9634 (TYPE_FIELDS): Use type::fields. Change all call sites that
9635 modify the propery to use type::set_fields instead.
9636
1f704f76
SM
96372020-05-22 Simon Marchi <simon.marchi@efficios.com>
9638
9639 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
9640 type::num_fields instead.
9641
5e33d5f4
SM
96422020-05-22 Simon Marchi <simon.marchi@efficios.com>
9643
9644 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
9645 methods.
9646 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
9647 that modify the number of fields to use type::set_num_fields
9648 instead.
9649
9392ebb3
TT
96502020-05-22 Tom Tromey <tromey@adacore.com>
9651
9652 * compile/compile-object-load.h (munmap_list_free): Don't
9653 declare.
9654
7c13f4e8
AB
96552020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
9656
9657 * annotate.c (annotate_source_line): Update return type, add call
9658 to update current symtab and line.
9659 * annotate.h (annotate_source_line): Update return type, and
9660 extend header comment.
9661 * source.c (info_line_command): Check annotation_level before
9662 calling annotate_source_line.
9663 * stack.c (print_frame_info): If calling annotate_source_line
9664 returns true, then don't print any other source line information.
9665
aa370940
SM
96662020-05-21 Simon Marchi <simon.marchi@efficios.com>
9667
9668 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
9669
84d53fa9
SM
96702020-05-21 Simon Marchi <simon.marchi@efficios.com>
9671
9672 * coffread.c (patch_type): Remove NULL check before xfree.
9673 * corefile.c (set_gnutarget): Likewise.
9674 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
9675 * exec.c (build_section_table): Likewise.
9676 * remote.c (remote_target::pass_signals): Likewise.
9677 * utils.c (n_spaces): Likewise.
9678 * cli/cli-script.c (document_command): Likewise.
9679 * i386-windows-tdep.c (core_process_module_section): Likewise.
9680 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
9681
9d428aae
SM
96822020-05-20 Simon Marchi <simon.marchi@efficios.com>
9683
9684 * symfile.c (reread_symbols): Clear objfile's section_offsets
9685 vector and section indices, re-compute them by calling
9686 sym_offsets.
9687
250106a7
TT
96882020-05-20 Tom Tromey <tromey@adacore.com>
9689
9690 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 9691 (desc_one_bound, desc_index_type): Compute field name.
250106a7 9692
9a0bacfb
TV
96932020-05-20 Tom de Vries <tdevries@suse.de>
9694
9695 PR symtab/25833
9696 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
9697
7b958a48
AM
96982020-05-20 Alan Modra <amodra@gmail.com>
9699
9700 PR 25993
9701 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
9702 bfd_set_filename.
9703 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
9704 passed to bfd_set_filename.
9705 * symfile-mem.c (add_vsyscall_page): Likewise for string
9706 passed to symbol_file_add_from_memory.
9707 (symbol_file_add_from_memory): Make name param a const char* and
9708 don't strdup.
9709
c7e97679
AM
97102020-05-20 Alan Modra <amodra@gmail.com>
9711
9712 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
9713 rather than accessing bfd->filename directly.
9714 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
9715 and use bfd_section_name.
9716 * dwarf2/frame.c (decode_frame_entry): Likewise.
9717 * exec.c (exec_set_section_address): Likewise.
9718 * solib-aix.c (solib_aix_bfd_open): Likewise.
9719 * stap-probe.c (get_stap_base_address): Likewise.
9720 * symfile.c (reread_symbols): Likewise.
9721
563c591b
TT
97222020-05-19 Tom Tromey <tromey@adacore.com>
9723
9724 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
9725
f408d82c
SM
97262020-05-19 Simon Marchi <simon.marchi@efficios.com>
9727
9728 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
9729
98c59b52
PA
97302020-05-19 Pedro Alves <palves@redhat.com>
9731
9732 * NEWS (set exec-file-mismatch): Adjust entry.
9733 * exec.c: Include "build-id.h".
9734 (validate_exec_file): Try to match build IDs instead of filenames.
9735 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
9736 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
9737 and pass down 'warn_if_slow'.
9738 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
9739 gdb_bfd_open_closure to pass it down.
9740 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
9741
4111f652
PA
97422020-05-19 Pedro Alves <palves@redhat.com>
9743
9744 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
9745 * target.c (target_fileio_open_1): Rename to target_fileio_open
9746 and make extern. Use bool.
9747 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
9748 (target_fileio_read_alloc_1): Adjust.
9749 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
9750 (target_fileio_open_warn_if_slow): Delete declaration.
9751
ad80db5b
PA
97522020-05-19 Pedro Alves <palves@redhat.com>
9753
9754 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
9755 Adjust all callers.
9756
1d6ce4d3
YS
97572020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
9758
9759 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
9760 whether disp is negative.
9761
9005fbbb
SM
97622020-05-19 Simon Marchi <simon.marchi@efficios.com>
9763
9764 * symfile.h (struct symfile_segment_data)
9765 <~symfile_segment_data>: Remove.
9766 <segment_info>: Change to std::vector.
9767 * symfile.c (default_symfile_segments): Update.
9768 * elfread.c (elf_symfile_segments): Update.
9769
68b888ff
SM
97702020-05-19 Simon Marchi <simon.marchi@efficios.com>
9771
9772 * symfile.h (struct symfile_segment_data) <struct segment>: New.
9773 <segments>: New.
9774 <segment_bases, segment_sizes>: Remove.
9775 * symfile.c (default_symfile_segments): Update.
9776 * elfread.c (elf_symfile_segments): Update.
9777 * remote.c (remote_target::get_offsets): Update.
9778 * solib-target.c (solib_target_relocate_section_addresses):
9779 Update.
9780
62982abd
SM
97812020-05-19 Simon Marchi <simon.marchi@efficios.com>
9782
9783 * symfile.h (struct symfile_segment_data): Initialize fields.
9784 <~symfile_segment_data>: Add.
9785 (symfile_segment_data_up): New.
9786 (struct sym_fns) <sym_segments>: Return a
9787 symfile_segment_data_up.
9788 (default_symfile_segments): Return a symfile_segment_data_up.
9789 (free_symfile_segment_data): Remove.
9790 (get_symfile_segment_data): Return a symfile_segment_data_up.
9791 * symfile.c (default_symfile_segments): Likewise.
9792 (get_symfile_segment_data): Likewise.
9793 (free_symfile_segment_data): Remove.
9794 (symfile_find_segment_sections): Update.
9795 * elfread.c (elf_symfile_segments): Return a
9796 symfile_segment_data_up.
9797 * remote.c (remote_target::get_offsets): Update.
9798 * solib-target.c (solib_target_relocate_section_addresses):
9799 Update.
9800 * symfile-debug.c (debug_sym_segments): Return a
9801 symfile_segment_data_up.
9802
7f204339
RO
98032020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9804
e52a0f1b
RO
9805 PR build/25981
9806 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
9807 Hardcode register numbers.
9808
7f204339
RO
9809 PR build/25981
9810 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
9811 procfs_find_LDT_entry): Remove.
9812 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
9813 procfs_find_LDT_entry): Remove.
9814 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
9815 Remove.
9816
7f32a4d5
PA
98172020-05-17 Pedro Alves <palves@redhat.com>
9818 Andrew Burgess <andrew.burgess@embecosm.com>
9819 Keno Fischer <keno@juliacomputing.com>
9820
9821 PR gdb/25741
9822 * breakpoint.c (build_target_condition_list): Update comments.
9823 (build_target_command_list): Update comments and skip matching
9824 locations.
9825 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
9826 a separate function. Simplify "set breakpoint auto-hw off"
9827 handling.
9828 (insert_breakpoints): Update comment.
9829 (tracepoint_locations_match): New parameter. For breakpoints,
9830 compare location types too, if the caller wants to.
9831 (handle_automatic_hardware_breakpoints): New functions.
9832 (bp_location_is_less_than): Also sort by location type and
9833 hardware breakpoint length.
9834 (update_global_location_list): Handle "set breakpoint auto-hw on"
9835 here.
9836 (update_breakpoint_locations): Ask breakpoint_locations_match to
9837 ignore location types.
9838
7d93a1e0
SM
98392020-05-16 Simon Marchi <simon.marchi@efficios.com>
9840
9841 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
9842 type::name instead.
9843
d0e39ea2
SM
98442020-05-16 Simon Marchi <simon.marchi@efficios.com>
9845
9846 * gdbtypes.h (struct type) <name, set_name>: New methods.
9847 (TYPE_CODE): Use type::name. Change all call sites used to set
9848 the name to use type::set_name instead.
9849
2dab0c7b
TT
98502020-05-16 Tom Tromey <tom@tromey.com>
9851
9852 * top.c (quit_force): Update.
9853 * infrun.c (handle_no_resumed): Update.
9854 * top.h (all_uis): New function.
9855 (ALL_UIS): Remove.
9856
59f7bd8d
SM
98572020-05-16 Simon Marchi <simon.marchi@efficios.com>
9858
9859 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
9860
9bf058f0
PA
98612020-05-16 Pedro Alves <palves@redhat.com>
9862
9863 * ia64-linux-nat.c
9864 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
9865 Declare method.
9866 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
9867
8f86ae1a
SM
98682020-05-15 Simon Marchi <simon.marchi@efficios.com>
9869
9870 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
9871 (sparc64_adi_info): Likewise.
9872
d6bc0792
TT
98732020-05-15 Tom Tromey <tom@tromey.com>
9874
9875 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
9876 block_objfile.
9877 (lookup_objfile_from_block): Remove.
9878 (lookup_symbol_in_block, lookup_symbol_in_static_block)
9879 (lookup_global_symbol): Use block_objfile.
9880 * symtab.h (lookup_objfile_from_block): Don't declare.
9881 * printcmd.c (clear_dangling_display_expressions): Use
9882 block_objfile.
9883 * parse.c (operator_check_standard): Use block_objfile.
9884
8c14c3a3
TT
98852020-05-15 Tom Tromey <tom@tromey.com>
9886
9887 * language.c (language_alloc_type_symbol): Set
9888 SYMBOL_SECTION.
9889 * symtab.c (initialize_objfile_symbol): Remove.
9890 (allocate_symbol): Remove.
9891 (allocate_template_symbol): Remove.
9892 * dwarf2/read.c (fixup_go_packaging): Use "new".
9893 (new_symbol): Use "new".
9894 (read_variable): Don't call initialize_objfile_symbol. Use
9895 "new".
9896 (read_func_scope): Use "new".
9897 * xcoffread.c (process_xcoff_symbol): Don't call
9898 initialize_objfile_symbol.
9899 (SYMBOL_DUP): Remove.
9900 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
9901 "new".
9902 * symtab.h (allocate_symbol, initialize_objfile_symbol)
9903 (allocate_template_symbol): Don't declare.
9904 (struct symbol): Add copy constructor. Change defaults.
9905 * jit.c (finalize_symtab): Use "new".
9906 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
9907 Use "new".
9908 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9909 (common_block_end): Use "new".
9910 * mdebugread.c (parse_symbol): Use "new".
9911 (new_symbol): Likewise.
9912
5b4a1a8d
PW
99132020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9914
9915 * NEWS: Mention changes to help and apropos.
9916
57b4f16e
PW
99172020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9918
9919 * command.h (enum command_class): Improve comments, document
9920 that class_alias is for user-defined aliases, give the class
9921 name for each class, remove unused class_xdb.
9922 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
9923 * breakpoint.c (_initialize_breakpoint): Replace class_alias
9924 by a precise class.
9925 * infcmd.c (_initialize_infcmd): Likewise.
9926 * reverse.c (_initialize_reverse): Likewise.
9927 * stack.c (_initialize_stack): Likewise.
9928 * symfile.c (_initialize_symfile): Likewise.
9929 * tracepoint.c (_initialize_tracepoint): Likewise.
9930
7c05caf7
PW
99312020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9932
9933 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
9934 when their aliased command is traversed.
9935 (help_cmd): Add fput_command_names_styled call to
9936 output command name and aliases when command has an alias.
9937
3b3aaacb
PW
99382020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9939
9940 * cli/cli-decode.h (help_cmd_list): Remove declaration.
9941 * cli/cli-decode.c (help_cmd_list): Declare as static,
9942 remove prefix argument, use bool for recurse arg, rework to show the aliases of
9943 a command together with the command.
9944 (fput_command_name_styled, fput_command_names_styled): New functions.
9945 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
9946 fput_command_name_styled.
9947 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
9948 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
9949
7aa1b46f
PW
99502020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9951
9952 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
9953 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
9954 * command.h (cmd_show_list): Likewise.
9955 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
9956 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
9957
89bcba74
PW
99582020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9959
9960 * unittests/command-def-selftests.c (traverse_command_structure):
9961 Verify all commands of a list have the same prefix command and
9962 that only the top cmdlist commands have a null prefix.
9963
3f4d92eb
PW
99642020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9965
9966 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
9967 as prefix, not one of its aliases.
9968 (set_cmd_prefix): Remove.
9969 (do_add_cmd): Centralize the setting of the prefix of a command, when
9970 command is defined after its full chain of prefix commands.
9971 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
9972 (add_setshow_cmd_full): Likewise.
9973 (update_prefix_field_of_prefixed_commands): New function.
9974 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
9975 update_prefix_field_of_prefixed_commands.
9976 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
9977 addresses of remote_set_cmdlist and remote_show_cmdlist given
9978 as argument, not the address of an argument.
9979 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
9980 * gdb/remote.c (_initialize_remote): Likewise.
9981
0605465f
PW
99822020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9983
9984 * cli/cli-cmds.c (alias_command): Check for an existing alias
9985 using lookup_cmd_composition, as valid_command_p is too strict
9986 and forbids aliases that are the prefix of an existing alias
9987 or command.
9988 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
9989 command is properly recognised as a valid command.
9990
58e6ac70
PW
99912020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9992
9993 * unittests/help-doc-selftests.c: Rename to
9994 unittests/command-def-selftests.c
9995 * unittests/command-def-selftests.c (help_doc_tests): Update some
9996 comments.
9997 (command_structure_tests, traverse_command_structure): New namespace
9998 and function.
9999 (command_structure_invariants_tests): New function.
10000 (_initialize_command_def_selftests) Renamed from
10001 _initialize_help_doc_selftests, register command_structure_invariants
10002 selftest.
10003
a7b9ceb8
PW
100042020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10005
10006 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
10007 an alias of 'show'.
10008
b2188a06
JB
100092020-05-15 Joel Brobecker <brobecker@adacore.com>
10010
10011 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
10012 ada_is_fixed_point_type. Update all callers.
10013 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
10014 all callers.
10015 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
10016 Update all callers.
10017 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
10018 print_fixed_point_type. Update all callers.
10019 * ada-valprint.c (ada_value_print_num): Replace call to
10020 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
10021
a51951c2
KB
100222020-05-14 Kevin Buettner <kevinb@redhat.com>
10023
10024 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
10025 processors.
10026 (cpu_supports_bts): Add CV_AMD case.
10027
29d6859f
LM
100282020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
10029 Simon Marchi <simon.marchi@efficios.com>
10030
10031 * infrun.c (stop_all_threads): Collect multiple wait events at
10032 each pass.
10033
78134374
SM
100342020-05-14 Simon Marchi <simon.marchi@efficios.com>
10035
10036 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
10037 type::code instead.
10038
67607e24
SM
100392020-05-14 Simon Marchi <simon.marchi@efficios.com>
10040
10041 * gdbtypes.h (struct type) <code, set_code>: New methods.
10042 (TYPE_CODE): Use type::code. Change all call sites used to set
10043 the code to use type::set_code instead.
10044
a05575d3
TBA
100452020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10046 Tom de Vries <tdevries@suse.de>
10047 Pedro Alves <palves@redhat.com>
10048
10049 PR threads/25478
10050 * infrun.c (stop_all_threads): Do NOT ignore
10051 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
10052 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
10053 received.
10054 (handle_no_resumed): Remove code handling a live inferior with no
10055 threads.
10056 * remote.c (has_single_non_exited_thread): New.
10057 (remote_target::update_thread_list): Do not delete a thread if is
10058 the last thread of the process.
10059 * thread.c (thread_select): Call delete_exited_threads instead of
10060 prune_threads.
10061
6ad82919
TBA
100622020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10063
10064 * infrun.c (stop_all_threads): Enable/disable thread events of all
10065 targets. Move a debug message denoting the end of the function
10066 into the SCOPED_EXIT block.
10067
d890404b
TBA
100682020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10069
10070 * process-stratum-target.h: Include <set>.
10071 (all_non_exited_process_targets, switch_to_target_no_thread): New
10072 function declarations.
10073 * process-stratum-target.c (all_non_exited_process_targets)
10074 (switch_to_target_no_thread): New function implementations.
10075
293b3ebc
TBA
100762020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10077
10078 * infrun.c (handle_inferior_event): Extract out a piece of code
10079 into...
10080 (mark_non_executing_threads): ...this new function.
10081
7ca9b62a
TBA
100822020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10083
10084 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
10085 use.
10086
fc75c28b
TBA
100872020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10088
10089 * regcache.c (regcache_read_pc_protected): New function
10090 implementation that returns 0 if the PC cannot read via
10091 'regcache_read_pc'.
10092 * infrun.c (proceed): Call 'regcache_read_pc_protected'
10093 instead of 'regcache_read_pc'.
10094 (keep_going_pass_signal): Ditto.
10095
a89febbd
TT
100962020-05-13 Tom Tromey <tromey@adacore.com>
10097
10098 * ada-lang.c (align_value): Remove.
10099 (ada_template_to_fixed_record_type_1): Use align_up.
10100
f7e23710
TBA
101012020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10102
10103 * async-event.c: Update the copyright year.
10104 * async-event.h: Update the copyright year.
10105
02ff80c2
SM
101062020-05-12 Simon Marchi <simon.marchi@efficios.com>
10107
10108 * objfiles.h (is_addr_in_objfile,
10109 shared_objfile_contains_address_p): Return bool.
10110 * objfile.c (is_addr_in_objfile,
10111 shared_objfile_contains_address_p): Return bool.
10112
4fd6c7e8
TT
101132020-05-11 Tom Tromey <tromey@adacore.com>
10114
10115 * cli/cli-cmds.c (info_command): Restore.
10116 (_initialize_cli_cmds): Use add_prefix_command for "info".
10117 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
10118
5eb68a39
TT
101192020-05-11 Tom Tromey <tromey@adacore.com>
10120
10121 * ada-lang.c (ada_value_primitive_field): Now public.
10122 * ada-lang.h (ada_value_primitive_field): Declare.
10123 * ada-valprint.c (print_field_values): Use
10124 ada_value_primitive_field for wrapper fields.
10125
7666722f
TV
101262020-05-11 Tom de Vries <tdevries@suse.de>
10127
10128 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
10129 MODULE_DOMAIN.
10130
3ee6bb11
TV
101312020-05-11 Tom de Vries <tdevries@suse.de>
10132
10133 PR symtab/25941
10134 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
10135 with length 0, if not gdb-produced.
10136 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
10137
43434996
TV
101382020-05-09 Tom de Vries <tdevries@suse.de>
10139
10140 PR gdb/25955
10141 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
10142 calculation.
10143
2f78cffc
TT
101442020-05-09 Tom Tromey <tom@tromey.com>
10145
10146 * top.c (server_command): Now bool.
10147 * top.h (server_command): Now bool.
10148
4f7bc5ed
TT
101492020-05-08 Tom Tromey <tromey@adacore.com>
10150
10151 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
10152 already being processed.
10153
8be4b118
TT
101542020-05-08 Tom Tromey <tom@tromey.com>
10155
10156 * printcmd.c (struct display) <next>: Remove.
10157 <display>: New constructor.
10158 <exp_string>: Now a std::string.
10159 <enabled_p>: Now a bool.
10160 (display_number): Move definition earlier.
10161 (displays): Rename from display_chain. Now a std::vector.
10162 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
10163 (display_command): Update.
10164 (do_one_display, disable_display)
10165 (enable_disable_display_command, do_enable_disable_display):
10166 Update.
10167 (free_display): Remove.
10168 (clear_displays): Rewrite.
10169 (delete_display): Update.
10170 (map_display_numbers): Use function_view. Remove "data"
10171 parameter. Update.
10172 (do_delete_display): Remove.
10173 (undisplay_command): Update.
10174 (do_one_display, do_displays, disable_display)
10175 (info_display_command): Update.
10176 (do_enable_disable_display): Remove.
10177 (enable_disable_display_command)
10178 (clear_dangling_display_expressions): Update.
10179
94c93c35
TT
101802020-05-08 Tom Tromey <tom@tromey.com>
10181
10182 * symtab.c (set_symbol_cache_size)
10183 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
10184 (maintenance_print_symbol_cache_statistics): Update.
10185 * symmisc.c (print_symbol_bcache_statistics)
10186 (print_objfile_statistics, maintenance_print_objfiles)
10187 (maintenance_info_symtabs, maintenance_check_symtabs)
10188 (maintenance_expand_symtabs, maintenance_info_line_tables):
10189 Update.
10190 * symfile-debug.c (set_debug_symfile): Update.
10191 * source.c (forget_cached_source_info): Update.
10192 * python/python.c (gdbpy_progspaces): Update.
10193 * psymtab.c (maintenance_info_psymtabs): Update.
10194 * probe.c (parse_probes): Update.
10195 * linespec.c (iterate_over_all_matching_symtabs)
10196 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
10197 * guile/scm-progspace.c (gdbscm_progspaces): Update.
10198 * exec.c (exec_target::close): Update.
10199 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
10200 * breakpoint.c (print_one_breakpoint_location)
10201 (create_longjmp_master_breakpoint)
10202 (create_std_terminate_master_breakpoint): Update.
10203 * progspace.c (program_spaces): Now a std::vector.
10204 (maybe_new_address_space): Update.
10205 (add_program_space): Remove.
10206 (program_space::program_space): Update.
10207 (remove_program_space): Update.
10208 (number_of_program_spaces): Remove.
10209 (print_program_space, update_address_spaces): Update.
10210 * progspace.h (program_spaces): Change type.
10211 (ALL_PSPACES): Remove.
10212 (number_of_program_spaces): Don't declare.
10213 (struct program_space) <next>: Remove.
10214
a1fd1ac9
TT
102152020-05-08 Tom Tromey <tom@tromey.com>
10216
10217 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
10218 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
10219 (enable_break): Update.
10220 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
10221 (frv_fdpic_find_canonical_descriptor): Update.
10222 (frv_fetch_objfile_link_map): Update.
10223 * progspace.c (program_space::free_all_objfiles): Update.
10224 (program_space::solibs): New method.
10225 * progspace.h (struct program_space) <solibs>: New method.
10226 * solist.h (master_so_list): Don't declare.
10227 (ALL_SO_LIBS): Remove.
10228 * solib.h (so_list_head): Remove.
10229 (update_solib_list): Update comment.
10230 * solib.c (master_so_list): Remove.
10231 (solib_used, update_solib_list, solib_add)
10232 (info_sharedlibrary_command, clear_solib)
10233 (reload_shared_libraries_1, remove_user_added_objfile): Update.
10234
38eae084
TT
102352020-05-08 Tom Tromey <tom@tromey.com>
10236
10237 * extension.c (extension_languages): Now a std::array.
10238 (ALL_EXTENSION_LANGUAGES): Remove.
10239 (get_ext_lang_defn, get_ext_lang_of_file)
10240 (eval_ext_lang_from_control_command): Update.
10241 (finish_ext_lang_initialization)
10242 (auto_load_ext_lang_scripts_for_objfile)
10243 (ext_lang_type_printers::ext_lang_type_printers)
10244 (apply_ext_lang_type_printers)
10245 (ext_lang_type_printers::~ext_lang_type_printers)
10246 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
10247 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
10248 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
10249 (get_matching_xmethod_workers, ext_lang_colorize)
10250 (ext_lang_before_prompt): Update.
10251 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
10252
596dc4ad
TT
102532020-05-08 Tom Tromey <tom@tromey.com>
10254
10255 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
10256 overload.
10257 <swap_string, m_string>: Remove.
10258 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
10259 Update.
10260 * stabsread.c (define_symbol, read_type): Update.
10261 * linespec.c (find_linespec_symbols): Update.
10262 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
10263 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
10264 * dbxread.c (read_dbx_symtab): Update.
10265 * cp-support.h (cp_canonicalize_string_full)
10266 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
10267 Return unique_xmalloc_ptr.
10268 * cp-support.c (inspect_type): Update.
10269 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
10270 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
10271 Likewise.
10272 * c-typeprint.c (print_name_maybe_canonical): Update.
10273 * break-catch-throw.c (check_status_exception_catchpoint):
10274 Update.
10275
bf4cb9be
TV
102762020-05-08 Tom de Vries <tdevries@suse.de>
10277
10278 * infrun.c (follow_fork): Copy current_line and current_symtab to
10279 child thread.
10280
a1b68f28
SM
102812020-05-07 Simon Marchi <simon.marchi@efficios.com>
10282
10283 * async-event.c (struct async_signal_handler, struct
10284 async_event_handler): Reformat, remove typedef.
10285
98d48915
SM
102862020-05-07 Simon Marchi <simon.marchi@efficios.com>
10287
10288 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
10289 access thistype->main_type->dyn_prop_list directly.
10290
7aa91313
SM
102912020-05-07 Simon Marchi <simon.marchi@efficios.com>
10292
10293 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
10294 (remove_dyn_prop): Remove. Update all users to use
10295 type::remove_dyn_prop.
10296 * gdbtypes.c (remove_dyn_prop): Rename to...
10297 (type::remove_dyn_prop): ... this.
10298
5c54719c
SM
102992020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
10300
10301 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
10302 (add_dyn_prop): Remove. Update all users to use
10303 type::add_dyn_prop.
10304 * gdbtypes.c (add_dyn_prop): Rename to...
10305 (type::add_dyn_prop): ... this.
10306
24e99c6c
SM
103072020-05-07 Simon Marchi <simon.marchi@efficios.com>
10308
10309 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
10310 (get_dyn_prop): Remove. Update all users to use
10311 type::dyn_prop.
10312 * gdbtypes.c (get_dyn_prop): Rename to...
10313 (type::dyn_prop): ... this.
10314
0d4bf016
SM
103152020-05-06 Simon Marchi <simon.marchi@efficios.com>
10316
10317 * gdbtypes.h (struct main_type) <flag_static>: Remove.
10318
ac4a4f1c
SM
103192020-05-06 Simon Marchi <simon.marchi@efficios.com>
10320
10321 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
10322 instruction, skip it if it's there.
10323
a3bbacc1
SM
103242020-05-05 Simon Marchi <simon.marchi@efficios.com>
10325
10326 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
10327
c3236f84
SM
103282020-05-04 Simon Marchi <simon.marchi@efficios.com>
10329
10330 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
10331 * gdbtypes.c (recursive_dump_type): Remove use of
10332 TYPE_INCOMPLETE.
10333
3b6acaee
TT
103342020-05-03 Tom Tromey <tom@tromey.com>
10335
10336 * breakpoint.c (catch_command, tcatch_command): Remove.
10337 (_initialize_breakpoint): Use add_basic_prefix_cmd,
10338 add_show_prefix_cmd.
10339 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
10340 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
10341 Remove.
10342 (add_internal_problem_command): Use add_basic_prefix_cmd,
10343 add_show_prefix_cmd.
10344 * mips-tdep.c (set_mipsfpu_command): Remove.
10345 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
10346 * dwarf2/index-cache.c (set_index_cache_command): Remove.
10347 (_initialize_index_cache): Use add_basic_prefix_cmd.
10348 * memattr.c (dummy_cmd): Remove.
10349 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
10350 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
10351 (_initialize_tui_win): Use add_basic_prefix_cmd,
10352 add_show_prefix_cmd.
10353 * cli/cli-logging.c (set_logging_command): Remove.
10354 (_initialize_cli_logging): Use add_basic_prefix_cmd,
10355 add_show_prefix_cmd.
10356 (show_logging_command): Remove.
10357 * target.c (target_command): Remove.
10358 (add_target): Use add_basic_prefix_cmd.
10359
a51119cd
HD
103602020-05-02 Hannes Domani <ssbssa@yahoo.de>
10361
10362 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
10363
652fc23a 103642020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 10365
652fc23a
PW
10366 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
10367 info_command.
10368
117539e6
KR
103692020-04-30 Kamil Rytarowski <n54@gmx.com>
10370
10371 * nbsd-nat.c (nbsd_enable_proc_events)
10372 (nbsd_nat_target::post_startup_inferior): Add.
10373 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
10374 (nbsd_nat_target::update_thread_list): Rewrite.
10375 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
10376 "PTRACE_LWP_CREATE".
10377 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
10378
102e38eb 103792020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 10380
102e38eb
PW
10381 * stack.c (_initialize_stack): Remove duplicated creation
10382 of "frame" command and "f" alias.
10383
ee9d1e5f
HD
103842020-04-30 Hannes Domani <ssbssa@yahoo.de>
10385
10386 PR gdb/18706
10387 * gdbtypes.c (check_typedef): Calculate size of array of
10388 stubbed type.
10389
627c7fb8
HD
103902020-04-30 Hannes Domani <ssbssa@yahoo.de>
10391
10392 PR gdb/15559
10393 * i386-tdep.c (i386_push_dummy_call): Call
10394 i386_thiscall_push_dummy_call.
10395 (i386_thiscall_push_dummy_call): New function.
10396 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
10397 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
10398 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
10399
ffc2844e
SM
104002020-04-29 Simon Marchi <simon.marchi@efficios.com>
10401
10402 * gdbarch.sh (do_read): Add shellcheck disable directive for
10403 warning SC2162.
10404
1207375d
SM
104052020-04-29 Simon Marchi <simon.marchi@efficios.com>
10406
10407 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
10408 "referenced but not assigned" warning.
10409
9fdb2916
SM
104102020-04-29 Simon Marchi <simon.marchi@efficios.com>
10411
10412 * gdbarch.sh: Remove code that sets fallbackdefault.
10413
759cea5e
SM
104142020-04-29 Simon Marchi <simon.marchi@efficios.com>
10415
10416 * gdbarch.sh: Use shell operators && and || instead of
10417 -a and -o.
10418
cb02ab24
SM
104192020-04-29 Simon Marchi <simon.marchi@efficios.com>
10420
10421 * gdbarch.sh: Use $(...) instead of `...`.
10422
a6fc5ffc
SM
104232020-04-29 Simon Marchi <simon.marchi@efficios.com>
10424
10425 * gdbarch.sh: Use double quotes around variables.
10426
8d113d13
SM
104272020-04-29 Simon Marchi <simon.marchi@efficios.com>
10428
10429 * gdbarch.sh: Use %s with printf, instead of variables in the
10430 format string.
10431
ed6acedd
TT
104322020-04-29 Tom Tromey <tromey@adacore.com>
10433
10434 PR ada/25875:
10435 * dwarf2/read.c (update_enumeration_type_from_children): Compute
10436 type fields here.
10437 (read_enumeration_type): Call
10438 update_enumeration_type_from_children later. Update comments.
10439 (process_enumeration_scope): Don't create type fields.
10440
b68b1b58
KR
104412020-04-29 Kamil Rytarowski <n54@gmx.com>
10442
10443 * nbsd-tdep.c: Include "xml-syscall.h".
10444 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
10445
f94b2e03
KR
104462020-04-29 Kamil Rytarowski <n54@gmx.com>
10447
10448 * nbsd-nat.c: Include "sys/wait.h".
10449 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
10450 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
10451 (nbsd_nat_target::remove_exec_catchpoint)
10452 (nbsd_nat_target::set_syscall_catchpoint): Add.
10453 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
10454 (nbsd_nat_target::insert_exec_catchpoint)
10455 (nbsd_nat_target::remove_exec_catchpoint)
10456 (nbsd_nat_target::set_syscall_catchpoint): Add.
10457 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
10458 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
10459 `nbsd_get_syscall_number'.
10460
fc49bc72
TT
104612020-04-29 Tom Tromey <tom@tromey.com>
10462
10463 * stack.c (print_block_frame_labels): Remove.
10464
d642b692
HD
104652020-04-29 Hannes Domani <ssbssa@yahoo.de>
10466
10467 PR gdb/17320
10468 * ada-valprint.c (val_print_packed_array_elements): Move array
10469 end bracket to new line.
10470 (ada_val_print_string): Remove extra spaces before first array
10471 element.
10472 * c-valprint.c (c_value_print_array): Likewise.
10473 * m2-valprint.c (m2_print_array_contents): Likewise.
10474 (m2_value_print_inner): Likewise.
10475 * p-valprint.c (pascal_value_print_inner): Likewise.
10476 * valprint.c (generic_val_print_array): Likewise.
10477 (value_print_array_elements): Move first array element and array
10478 end bracket to new line.
10479
ea90f227
TV
104802020-04-29 Tom de Vries <tdevries@suse.de>
10481
10482 PR symtab/25889
10483 * linespec.c (find_method): Fix ix calculation.
10484
4498ef4f
KR
104852020-04-28 Kamil Rytarowski <n54@gmx.com>
10486
10487 * syscalls/update-netbsd.sh: New file.
10488 * syscalls/netbsd.xml: Regenerate.
10489 * data-directory/Makefile.in: Register `netbsd.xml' in
10490 `SYSCALLS_FILES'.
10491
a55e30b5
SM
104922020-04-28 Simon Marchi <simon.marchi@efficios.com>
10493
10494 * syscalls/update-freebsd.sh: Add double quotes.
10495
2b2fbab8
TT
104962020-04-28 Tom Tromey <tom@tromey.com>
10497
10498 * NEWS: Update.
10499 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
10500 (cmdpy_init): Allow class_tui.
10501
a65189c9
TV
105022020-04-28 Mark Williams <mark@myosotissp.com>
10503
10504 PR gdb/24480
10505 * dwarf2read.c: Add missing assingments to list_in_scope when
10506 start_symtab was already called.
10507
1b95cdb7
SM
105082020-04-28 Simon Marchi <simon.marchi@efficios.com>
10509
10510 PR gdb/25881
10511 * dwarf2/read.c (offset_map_type): Use
10512 gdb:hash_enum<sect_offset> as hash function.
10513
15cd93d0
TV
105142020-04-28 Tom de Vries <tdevries@suse.de>
10515
10516 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
10517 with DW_AT_signature.
10518
1eb39914
SM
105192020-04-27 Simon Marchi <simon.marchi@efficios.com>
10520
10521 * configure.ac: Remove check for fs_base/gs_base in
10522 user_regs_struct.
10523 * configure: Re-generate.
10524 * config.in: Re-generate.
10525 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
10526 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
10527 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
10528
991a3e2e
LM
105292020-04-27 Luis Machado <luis.machado@linaro.org>
10530
10531 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
10532 problematic inline frame unwinding situation.
10533 * frame.c (frame_id_computed_p): New function.
10534 * frame.h (frame_id_computed_p): New prototype.
10535
361ba0e8
TT
105362020-04-26 Tom Tromey <tom@tromey.com>
10537
10538 * command.h (enum command_class) <class_pseudo>: Remove.
10539
bc3609fd
PW
105402020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10541
10542 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
10543 and whitespace.
10544
b9771db7
KR
105452020-04-25 Kamil Rytarowski <n54@gmx.com>
10546
ec16513e
SM
10547 * inf-ptrace.c (inf_ptrace_target::wait): Remove
10548 `PT_GET_PROCESS_STATE' block.
b9771db7 10549
7151c1af
TT
105502020-04-24 Tom Tromey <tom@tromey.com>
10551
10552 * symtab.h (symbol_get_demangled_name): Don't declare.
10553 * symtab.c (symbol_get_demangled_name): Remove.
10554 (general_symbol_info::natural_name)
10555 (general_symbol_info::demangled_name): Update.
10556
906bb4c5
TT
105572020-04-24 Tom Tromey <tom@tromey.com>
10558
10559 PR rust/25025:
10560 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
10561
bcfe6157
TT
105622020-04-24 Tom Tromey <tom@tromey.com>
10563
10564 PR symtab/12707:
10565 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
10566 exists.
10567 (new_symbol): Likewise.
10568 * compile/compile-object-load.c (get_out_value_type): Use
10569 symbol_matches_search_name.
10570
f049a313
TT
105712020-04-24 Tom Tromey <tom@tromey.com>
10572
10573 * dwarf2/read.c (add_partial_symbol): Do not call
10574 compute_and_set_names.
10575
76e288d1
TT
105762020-04-24 Tom Tromey <tom@tromey.com>
10577
10578 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
10579 overload.
10580
2467f4f6
TT
105812020-04-24 Tom Tromey <tom@tromey.com>
10582
10583 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
10584 (add_psymbol_to_list): New overload. Make old overload call new
10585 one.
10586 * psympriv.h (add_psymbol_to_list): New overload.
10587
e61108c9
TT
105882020-04-24 Tom Tromey <tom@tromey.com>
10589
10590 * dwarf2/read.c (partial_die_info::read) <case
10591 DW_AT_linkage_name>: Use value_as_string.
10592 (dwarf2_string_attr): Use value_as_string.
10593 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
10594 method.
10595 * dwarf2/attribute.c (attribute::value_as_string): New method.
10596
8c87a452
TT
105972020-04-24 Tom Tromey <tom@tromey.com>
10598
10599 * symtab.c (general_symbol_info::natural_name)
10600 (general_symbol_info::demangled_name): Check for language_rust.
10601
787de330
TT
106022020-04-24 Tom Tromey <tom@tromey.com>
10603
10604 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
10605 (dwarf2_physname): ... from here.
10606 (partial_die_info::read): Add Rust "{" hack.
10607
ff985671
TT
106082020-04-24 Tom Tromey <tom@tromey.com>
10609
10610 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
10611 method.
10612 (symbol_set_demangled_name): Don't declare.
10613 * symtab.c (general_symbol_info::set_demangled_name): Rename from
10614 symbol_set_demangled_name.
10615 (general_symbol_info::set_language)
10616 (general_symbol_info::compute_and_set_names): Update.
10617 * minsyms.c (minimal_symbol_reader::install): Update.
10618 * dwarf2/read.c (new_symbol): Update.
10619
1acda803
TT
106202020-04-24 Tom Tromey <tromey@adacore.com>
10621
10622 PR python/23662:
10623 * python/py-type.c (convert_field): Handle
10624 FIELD_LOC_KIND_DWARF_BLOCK.
10625 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
10626 (typy_get_dynamic): Nw function.
10627 (type_object_getset): Add "dynamic".
10628 * NEWS: Add entry.
10629
d656f129
TT
106302020-04-24 Tom Tromey <tromey@adacore.com>
10631
10632 * ada-typeprint.c (print_choices, print_variant_part)
10633 (print_record_field_types_dynamic): New functions.
10634 (print_record_field_types): Use print_record_field_types_dynamic.
10635
7d79de9a
TT
106362020-04-24 Tom Tromey <tromey@adacore.com>
10637
10638 * dwarf2/read.c (handle_data_member_location): New overload.
10639 (dwarf2_add_field): Use it.
10640 (decode_locdesc): Add "computed" parameter. Update comment.
10641 * gdbtypes.c (is_dynamic_type_internal): Also look for
10642 FIELD_LOC_KIND_DWARF_BLOCK.
10643 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
10644 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
10645 virtual base classes.
10646 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
10647 FIELD_LOC_KIND_DWARF_BLOCK.
10648
f8e89861
TT
106492020-04-24 Tom Tromey <tromey@adacore.com>
10650
10651 * dwarf2/read.c (read_structure_type): Handle dynamic length.
10652 * gdbtypes.c (is_dynamic_type_internal): Check
10653 TYPE_HAS_DYNAMIC_LENGTH.
10654 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
10655 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
10656 New macros.
10657 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
10658 constant.
10659
9c6a1327
TT
106602020-04-24 Tom Tromey <tromey@adacore.com>
10661
10662 * dwarf2/read.c (struct variant_field): Rewrite.
10663 (struct variant_part_builder): New.
10664 (struct nextfield): Remove "variant" field. Add "offset".
10665 (struct field_info): Add "current_variant_part" and
10666 "variant_parts".
10667 (alloc_discriminant_info): Remove.
10668 (alloc_rust_variant): New function.
10669 (quirk_rust_enum): Update.
10670 (dwarf2_add_field): Set "offset" member. Don't handle
10671 DW_TAG_variant_part.
10672 (offset_map_type): New typedef.
10673 (convert_variant_range, create_one_variant)
10674 (create_one_variant_part, create_variant_parts)
10675 (add_variant_property): New functions.
10676 (dwarf2_attach_fields_to_type): Call add_variant_property.
10677 (read_structure_type): Don't handle DW_TAG_variant_part.
10678 (handle_variant_part, handle_variant): New functions.
10679 (handle_struct_member_die): Use them.
10680 (process_structure_scope): Don't handle variant parts.
10681 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
10682 (struct discriminant_info): Remove.
10683 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
10684 (struct main_type) <flag_discriminated_union>: Remove.
10685 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
10686 (rust_enum_variant): Return int. Remove "contents". Rewrite.
10687 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
10688 Update.
10689 * valops.c (value_union_variant): Remove.
10690 * value.h (value_union_variant): Don't declare.
10691
b249d2c2
TT
106922020-04-24 Tom Tromey <tromey@adacore.com>
10693
10694 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
10695 (ada_value_primitive_packed_val): Update.
10696 * ada-valprint.c (ada_value_print_1): Update.
10697 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
10698 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
10699 just an address. Use evaluate_for_locexpr_baton.
10700 (dwarf2_evaluate_property): Update.
10701 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
10702 array_view.
10703 * findvar.c (default_read_var_value): Update.
10704 * gdbtypes.c (compute_variant_fields_inner)
10705 (resolve_dynamic_type_internal): Update.
10706 (resolve_dynamic_type): Change type of valaddr parameter.
10707 * gdbtypes.h (resolve_dynamic_type): Update.
10708 * valarith.c (value_subscripted_rvalue): Update.
10709 * value.c (value_from_contents_and_address): Update.
10710
61122aa9
TT
107112020-04-24 Tom Tromey <tromey@adacore.com>
10712
10713 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
10714 "push_initial_value" parameter.
10715 (dwarf2_evaluate_property): Likewise.
10716 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
10717
ef83a141
TT
107182020-04-24 Tom Tromey <tromey@adacore.com>
10719
10720 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
10721 (variant::matches, compute_variant_fields_recurse)
10722 (compute_variant_fields_inner, compute_variant_fields): New
10723 functions.
10724 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
10725 Use resolved_type after type is made.
10726 (operator==): Add new cases.
10727 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
10728 (struct discriminant_range, struct variant, struct variant_part):
10729 New.
10730 (union dynamic_prop_data) <variant_parts, original_type>: New
10731 members.
10732 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
10733 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
10734 constants.
10735 * value.c (unpack_bits_as_long): Now public.
10736 * value.h (unpack_bits_as_long): Declare.
10737
675127ec
TT
107382020-04-24 Tom Tromey <tromey@adacore.com>
10739
10740 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
10741 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
10742
9852ceef
HD
107432020-04-24 Hannes Domani <ssbssa@yahoo.de>
10744
10745 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
10746
7632c6ce
KR
107472020-04-24 Kamil Rytarowski <n54@gmx.com>
10748
10749 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
10750 (remove_fork_catchpoint, post_startup_inferior)
10751 (post_attach): Move...
10752 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
10753 (remove_fork_catchpoint, post_startup_inferior)
10754 (post_attach): ...here.
10755 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
10756 (remove_fork_catchpoint, post_startup_inferior)
10757 (post_attach): Move...
10758 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
10759 (remove_fork_catchpoint, post_startup_inferior)
10760 (post_attach): ...here.
10761
7be2bb4f
TT
107622020-04-24 Tom Tromey <tromey@adacore.com>
10763
10764 * nat/windows-nat.h (struct windows_thread_info)
10765 <pc_adjusted>: New member.
10766 * windows-nat.c (windows_fetch_one_register): Check
10767 pc_adjusted.
10768 (windows_nat_target::get_windows_debug_event)
10769 (windows_nat_target::wait): Set pc_adjusted.
10770
f80cb3b4
TV
107712020-04-24 Tom de Vries <tdevries@suse.de>
10772
10773 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
10774 Run gdb-add-index inside temp dir.
10775
29514b87
TT
107762020-04-23 Tom Tromey <tromey@adacore.com>
10777
10778 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
10779 in loop.
10780
5939967b
LM
107812020-04-23 Luis Machado <luis.machado@linaro.org>
10782
10783 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10784 get_frame_register instead of gdbarch_unwind_pc.
10785
70bc38f5
TV
107862020-04-23 Tom de Vries <tdevries@suse.de>
10787
10788 * symtab.c (lookup_global_symbol): Prefer def over decl.
10789
de82891c
TV
107902020-04-23 Tom de Vries <tdevries@suse.de>
10791
10792 PR symtab/25807
10793 * block.c (best_symbol, better_symbol): Promote to external.
10794 * block.h (best_symbol, better_symbol): Declare.
10795 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
10796 decl.
10797
ecc6c606
TT
107982020-04-23 Tom Tromey <tromey@adacore.com>
10799
10800 PR ada/25837:
10801 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
10802 "const char *", not a "const std::string &".
10803 <name_and_matcher::operator==>: Update.
10804 * unittests/lookup_name_info-selftests.c: Change type of
10805 "result".
10806
740480b8
TT
108072020-04-23 Tom Tromey <tom@tromey.com>
10808
10809 * inferior.h (iterate_over_inferiors): Don't declare.
10810 * inferior.c (iterate_over_inferiors): Remove.
10811 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
10812 Remove.
10813 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
10814 use iterate_over_inferiors.
10815 (darwin_resume_inferior_it)
10816 (struct resume_inferior_threads_param)
10817 (darwin_resume_inferior_threads_it): Remove.
10818 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
10819
ae3ab1f0
TV
108202020-04-23 Tom de Vries <tdevries@suse.de>
10821
10822 * blockframe.c (find_pc_partial_function): Use
10823 find_pc_sect_compunit_symtab rather than
10824 objfile->sf->qf->find_pc_sect_compunit_symtab.
10825
317d2668
TV
108262020-04-22 Tom de Vries <tdevries@suse.de>
10827
10828 PR symtab/25764
10829 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
10830 in psymtabs.
10831
eea9e357
TV
108322020-04-22 Tom de Vries <tdevries@suse.de>
10833
10834 PR symtab/25801
10835 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
10836 symtabs.
10837
3d5afab3
TV
108382020-04-22 Tom de Vries <tdevries@suse.de>
10839
10840 PR symtab/25700
10841 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
10842 CU if already created.
10843
d43b7a2d
TBA
108442020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10845
10846 * infrun.c (displaced_step_fixup): Switch to the event_thread
10847 before calling displaced_step_restore, not after.
10848
d89edf9b
MM
108492020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10850
10851 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
10852 its inferior is not recorded by us.
10853 (record_btrace_target_open): Replace call to
10854 all_non_exited_threads () with call to current_inferior
10855 ()->non_exited_threads ().
10856 (record_btrace_target::stop_recording): Likewise.
10857 (record_btrace_target::close): Likewise.
10858 (record_btrace_target::wait): Likewise.
10859 (record_btrace_target::record_stop_replaying): Likewise.
10860
5897fd49
MM
108612020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10862
10863 * btrace.c (btrace_enable): Throw an error on double enables and
10864 when enabling recording fails.
10865 (btrace_disable): Throw an error if the thread is not recorded.
10866
1a476b6d
MM
108672020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10868
10869 * record-btrace.c (record_btrace_target::fetch_registers): Forward
10870 request if we do not have a thread_info.
10871
4778a5f8
TV
108722020-04-21 Tom de Vries <tdevries@suse.de>
10873
10874 PR gdb/25471
10875 * thread.c
10876 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
10877 exception in get_frame_id.
10878
0fa7617d
TT
108792020-04-20 Tom Tromey <tromey@adacore.com>
10880
10881 * python/python.c (struct gdbpy_event): Mark move constructor as
10882 noexcept.
10883 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
10884 constructor as noexcept.
10885 * completer.h (struct completion_result): Mark move constructor as
10886 noexcept.
10887 * completer.c (completion_result::completion_result): Use
10888 initialization style. Don't call reset_match_list.
10889
ad23bda0
MS
108902020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
10891
10892 * MAINTAINERS (Write After Approval): Add myself.
10893
45e1f031
TT
108942020-04-18 Tom Tromey <tom@tromey.com>
10895
10896 * windows-tdep.c (init_w32_command_list)
10897 (w32_prefix_command_valid): Restore.
10898 (_initialize_windows_tdep): Call init_w32_command_list.
10899
08feed99
TT
109002020-04-18 Tom Tromey <tom@tromey.com>
10901
10902 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
10903 * value.c (value_fn_field): Update.
10904 * valops.c (find_function_in_inferior)
10905 (value_allocate_space_in_inferior): Update.
10906 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10907 Update.
10908 * tui/tui-source.c (tui_source_window::set_contents): Update.
10909 * symtab.c (lookup_global_or_static_symbol)
10910 (find_function_start_sal_1, skip_prologue_sal)
10911 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
10912 * symmisc.c (dump_msymbols, dump_symtab_1)
10913 (maintenance_print_one_line_table): Update.
10914 * symfile.c (init_entry_point_info, section_is_mapped)
10915 (list_overlays_command, simple_read_overlay_table)
10916 (simple_overlay_update_1): Update.
10917 * stap-probe.c (handle_stap_probe): Update.
10918 * stabsread.c (dbx_init_float_type, define_symbol)
10919 (read_one_struct_field, read_enum_type, read_range_type): Update.
10920 * source.c (info_line_command): Update.
10921 * python/python.c (gdbpy_source_objfile_script)
10922 (gdbpy_execute_objfile_script): Update.
10923 * python/py-type.c (save_objfile_types): Update.
10924 * python/py-objfile.c (py_free_objfile): Update.
10925 * python/py-inferior.c (python_new_objfile): Update.
10926 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
10927 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
10928 (maintenance_check_psymtabs): Update.
10929 * printcmd.c (info_address_command): Update.
10930 * objfiles.h (struct objfile) <arch>: New method, from
10931 get_objfile_arch.
10932 (get_objfile_arch): Don't declare.
10933 * objfiles.c (get_objfile_arch): Remove.
10934 (filter_overlapping_sections): Update.
10935 * minsyms.c (msymbol_is_function): Update.
10936 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
10937 (output_nondebug_symbol): Update.
10938 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
10939 (mdebug_expand_psymtab): Update.
10940 * machoread.c (macho_add_oso_symfile): Update.
10941 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
10942 Update.
10943 * linux-fork.c (checkpoint_command): Update.
10944 * linespec.c (convert_linespec_to_sals): Update.
10945 * jit.c (finalize_symtab): Update.
10946 * infrun.c (insert_exception_resume_from_probe): Update.
10947 * ia64-tdep.c (ia64_find_unwind_table): Update.
10948 * hppa-tdep.c (internalize_unwinds): Update.
10949 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
10950 Update.
10951 * gcore.c (call_target_sbrk): Update.
10952 * elfread.c (record_minimal_symbol, elf_symtab_read)
10953 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
10954 (elf_gnu_ifunc_resolve_by_got): Update.
10955 * dwarf2/read.c (create_addrmap_from_index)
10956 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
10957 (read_debug_names_from_section)
10958 (process_psymtab_comp_unit_reader, add_partial_symbol)
10959 (add_partial_subprogram, process_full_comp_unit)
10960 (read_file_scope, read_func_scope, read_lexical_block_scope)
10961 (read_call_site_scope, dwarf2_ranges_read)
10962 (dwarf2_record_block_ranges, dwarf2_add_field)
10963 (mark_common_block_symbol_computed, read_tag_pointer_type)
10964 (read_tag_string_type, dwarf2_init_float_type)
10965 (dwarf2_init_complex_target_type, read_base_type)
10966 (partial_die_info::read, partial_die_info::read)
10967 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
10968 (dwarf2_fetch_die_loc_sect_off): Update.
10969 * dwarf2/loc.c (dwarf2_find_location_expression)
10970 (class dwarf_evaluate_loc_desc, rw_pieced_value)
10971 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
10972 (dwarf2_loc_desc_get_symbol_read_needs)
10973 (locexpr_describe_location_piece, locexpr_describe_location_1)
10974 (loclist_describe_location): Update.
10975 * dwarf2/index-write.c (write_debug_names): Update.
10976 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
10977 * dtrace-probe.c (dtrace_process_dof): Update.
10978 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
10979 (process_one_symbol): Update.
10980 * ctfread.c (ctf_init_float_type, read_base_type): Update.
10981 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
10982 (coff_read_enum_type): Update.
10983 * cli/cli-cmds.c (edit_command, list_command): Update.
10984 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
10985 * breakpoint.c (create_overlay_event_breakpoint)
10986 (create_longjmp_master_breakpoint)
10987 (create_std_terminate_master_breakpoint)
10988 (create_exception_master_breakpoint, get_sal_arch): Update.
10989 * block.c (block_gdbarch): Update.
10990 * annotate.c (annotate_source_line): Update.
10991
0743fc83
TT
109922020-04-17 Tom Tromey <tromey@adacore.com>
10993
10994 * auto-load.c (show_auto_load_cmd): Remove.
10995 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
10996 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
10997 (maintenance_print_arc_command): Remove.
10998 * tui/tui-win.c (tui_command): Remove.
10999 (tui_get_cmd_list): Use add_basic_prefix_cmd.
11000 * tui/tui-layout.c (tui_layout_command): Remove.
11001 (_initialize_tui_layout): Use add_basic_prefix_cmd.
11002 * python/python.c (user_set_python, user_show_python): Remove.
11003 (_initialize_python): Use add_basic_prefix_cmd,
11004 add_show_prefix_cmd.
11005 * guile/guile.c (set_guile_command, show_guile_command): Remove.
11006 (install_gdb_commands): Use add_basic_prefix_cmd,
11007 add_show_prefix_cmd.
11008 (info_guile_command): Remove.
11009 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
11010 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
11011 add_show_prefix_cmd.
11012 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
11013 Remove do_set and do_show parameters.
11014 * cli/cli-style.c (set_style, show_style): Remove.
11015 (_initialize_cli_style): Use add_basic_prefix_cmd,
11016 add_show_prefix_cmd.
11017 (cli_style_option::add_setshow_commands): Remove do_set and
11018 do_show parameters.
11019 (cli_style_option::add_setshow_commands): Use
11020 add_basic_prefix_cmd, add_show_prefix_cmd.
11021 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
11022 (set_style_name): Remove.
11023 * cli/cli-dump.c (dump_command, append_command): Remove.
11024 (srec_dump_command, ihex_dump_command, verilog_dump_command)
11025 (tekhex_dump_command, binary_dump_command)
11026 (binary_append_command): Remove.
11027 (_initialize_cli_dump): Use add_basic_prefix_cmd.
11028 * windows-tdep.c (w32_prefix_command_valid): Remove global.
11029 (init_w32_command_list): Remove; move into ...
11030 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
11031 * valprint.c (set_print, show_print, set_print_raw)
11032 (show_print_raw): Remove.
11033 (_initialize_valprint): Use add_basic_prefix_cmd,
11034 add_show_prefix_cmd.
11035 * typeprint.c (set_print_type, show_print_type): Remove.
11036 (_initialize_typeprint): Use add_basic_prefix_cmd,
11037 add_show_prefix_cmd.
11038 * record.c (set_record_command, show_record_command): Remove.
11039 (_initialize_record): Use add_basic_prefix_cmd,
11040 add_show_prefix_cmd.
11041 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
11042 add_show_prefix_cmd.
11043 (info_command, show_command, set_debug, show_debug): Remove.
11044 * top.h (set_history, show_history): Don't declare.
11045 * top.c (set_history, show_history): Remove.
11046 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
11047 (unset_tdesc_cmd): Remove.
11048 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
11049 add_show_prefix_cmd.
11050 * symtab.c (info_module_command): Remove.
11051 (_initialize_symtab): Use add_basic_prefix_cmd.
11052 * symfile.c (overlay_command): Remove.
11053 (_initialize_symfile): Use add_basic_prefix_cmd.
11054 * sparc64-tdep.c (info_adi_command): Remove.
11055 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
11056 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
11057 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
11058 add_show_prefix_cmd.
11059 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
11060 (_initialize_serial): Use add_basic_prefix_cmd,
11061 add_show_prefix_cmd.
11062 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
11063 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
11064 add_show_prefix_cmd.
11065 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
11066 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
11067 add_show_prefix_cmd.
11068 * riscv-tdep.c (show_riscv_command, set_riscv_command)
11069 (show_debug_riscv_command, set_debug_riscv_command): Remove.
11070 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
11071 add_show_prefix_cmd.
11072 * remote.c (remote_command, set_remote_cmd): Remove.
11073 (_initialize_remote): Use add_basic_prefix_cmd.
11074 * record-full.c (set_record_full_command)
11075 (show_record_full_command): Remove.
11076 (_initialize_record_full): Use add_basic_prefix_cmd,
11077 add_show_prefix_cmd.
11078 * record-btrace.c (cmd_set_record_btrace)
11079 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
11080 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
11081 (cmd_show_record_btrace_pt): Remove.
11082 (_initialize_record_btrace): Use add_basic_prefix_cmd,
11083 add_show_prefix_cmd.
11084 * ravenscar-thread.c (set_ravenscar_command)
11085 (show_ravenscar_command): Remove.
11086 (_initialize_ravenscar): Use add_basic_prefix_cmd,
11087 add_show_prefix_cmd.
11088 * mips-tdep.c (show_mips_command, set_mips_command)
11089 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
11090 add_show_prefix_cmd.
11091 * maint.c (maintenance_command, maintenance_info_command)
11092 (maintenance_check_command, maintenance_print_command)
11093 (maintenance_set_cmd, maintenance_show_cmd): Remove.
11094 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
11095 add_show_prefix_cmd.
11096 (show_per_command_cmd): Remove.
11097 * maint-test-settings.c (maintenance_set_test_settings_cmd):
11098 Remove.
11099 (maintenance_show_test_settings_cmd): Remove.
11100 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
11101 add_show_prefix_cmd.
11102 * maint-test-options.c (maintenance_test_options_command):
11103 Remove.
11104 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
11105 * macrocmd.c (macro_command): Remove
11106 (_initialize_macrocmd): Use add_basic_prefix_cmd.
11107 * language.c (set_check, show_check): Remove.
11108 (_initialize_language): Use add_basic_prefix_cmd,
11109 add_show_prefix_cmd.
11110 * infcmd.c (unset_command): Remove.
11111 (_initialize_infcmd): Use add_basic_prefix_cmd.
11112 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
11113 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
11114 add_show_prefix_cmd.
11115 * go32-nat.c (go32_info_dos_command): Remove.
11116 (_initialize_go32_nat): Use add_basic_prefix_cmd.
11117 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
11118 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
11119 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
11120 (_initialize_frame): Use add_basic_prefix_cmd,
11121 add_show_prefix_cmd.
11122 * dcache.c (set_dcache_command, show_dcache_command): Remove.
11123 (_initialize_dcache): Use add_basic_prefix_cmd,
11124 add_show_prefix_cmd.
11125 * cp-support.c (maint_cplus_command): Remove.
11126 (_initialize_cp_support): Use add_basic_prefix_cmd.
11127 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
11128 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
11129 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
11130 add_basic_prefix_cmd, add_show_prefix_cmd.
11131 * breakpoint.c (save_command): Remove.
11132 (_initialize_breakpoint): Use add_basic_prefix_cmd.
11133 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
11134 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
11135 add_show_prefix_cmd.
11136 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
11137 (set_ada_command, show_ada_command): Remove.
11138 (_initialize_ada_language): Use add_basic_prefix_cmd,
11139 add_show_prefix_cmd.
11140 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
11141
3557f442
KR
111422020-04-16 Kamil Rytarowski <n54@gmx.com>
11143
11144 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
11145 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
11146
16197208
SM
111472020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11148
11149 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
11150 warning messages.
11151
00ac85d3
SM
111522020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11153
11154 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
11155 import table is not at beginning of .idata section.
11156
381ce63f
PA
111572020-04-16 Pedro Alves <palves@redhat.com>
11158
11159 * inferior.c (delete_inferior): Use delete operator directly
11160 instead of delete_program_space.
11161 * progspace.c (add_program_space): New, factored out from
11162 program_space::program_space.
11163 (remove_program_space): New, factored out from
11164 delete_program_space.
11165 (program_space::program_space): Remove intro comment. Rewrite.
11166 (program_space::~program_space): Remove intro comment. Call
11167 remove_program_space.
11168 (delete_program_space): Delete.
11169 * progspace.h (program_space::program_space): Make explicit. Move
11170 intro comment here, adjusted.
11171 (program_space::~program_space): Move intro comment here,
11172 adjusted.
11173 (delete_program_space): Remove.
11174
a010605f
TT
111752020-04-16 Tom Tromey <tromey@adacore.com>
11176
11177 * windows-nat.c (windows_nat::handle_access_violation): New
11178 function.
11179 * nat/windows-nat.h (handle_access_violation): Declare.
11180 * nat/windows-nat.c (handle_exception): Move Cygwin code to
11181 windows-nat.c. Call handle_access_violation.
11182
efba5c23
TV
111832020-04-16 Tom de Vries <tdevries@suse.de>
11184
11185 PR symtab/25791
11186 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
11187 CUs without psymtab.
11188
97ed802d
KB
111892020-04-16 Kevin Buettner <kevinb@redhat.com>
11190
11191 * python/python.c (do_start_initialization): Don't call
11192 PyEval_InitThreads for Python 3.9 and beyond.
11193
c7d64809
KR
111942020-04-15 Kamil Rytarowski <n54@gmx.com>
11195
11196 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
11197 thread functions.
11198 (obsd_nat_target::wait): Likewise.
11199
ce127a96
TT
112002020-04-15 Tom Tromey <tromey@adacore.com>
11201
11202 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
11203 (DEBUG_EXCEPT): Use debug_printf.
11204
99f1bc6a
AB
112052020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
11206
11207 * completer.c (class completion_tracker::completion_hash_entry)
11208 <hash_name>: New member function.
11209 (completion_tracker::discard_completions): New callback to hash a
11210 completion_hash_entry, pass this to htab_create_alloc.
11211
a0e9b532
JT
112122016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
11213
11214 * windows-nat.c (windows_make_so): Warn rather than stopping with
11215 an error if realpath() fails.
11216
06ca5dd4
KR
112172020-04-14 Kamil Rytarowski <n54@gmx.com>
11218
11219 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
11220 (nbsd_nat_target::info_proc): Add do_status.
11221
194d088f
TV
112222020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
11223 Tom de Vries <tdevries@suse.de>
11224
11225 PR symtab/25718
11226 * psympriv.h (struct partial_symtab::read_symtab)
11227 (struct partial_symtab::expand_psymtab)
11228 (struct partial_symtab::read_dependencies): Update comments.
11229 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
11230 read_symtab for includer.
11231 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
11232 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
11233 (struct dwarf2_include_psymtab::m_readin): Remove.
11234 (struct dwarf2_include_psymtab::includer): New member function.
11235 (dwarf2_psymtab::expand_psymtab): Assert !readin.
11236
c1a66c06
TV
112372020-04-14 Tom de Vries <tdevries@suse.de>
11238
11239 PR symtab/25720
11240 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
11241 with NULL symbol_matcher and lookup_name.
11242 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
11243 and lookup_name.
11244 * dwarf2/read.c (dw2_expand_symtabs_matching)
11245 (dw2_debug_names_expand_symtabs_matching): Same.
11246 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
11247 Make lookup_name a pointer. Update comment.
11248 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
11249 lookup_name being a pointer.
11250 * symfile.c (expand_symtabs_matching): Same.
11251 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
11252 * linespec.c (iterate_over_all_matching_symtabs): Same.
11253
400b5eca
TT
112542020-04-13 Tom Tromey <tom@tromey.com>
11255
11256 * run-on-main-thread.c: Update include.
11257 * unittests/main-thread-selftests.c: Update include.
11258 * tui/tui-win.c: Update include.
11259 * tui/tui-io.c: Update include.
11260 * tui/tui-interp.c: Update include.
11261 * tui/tui-hooks.c: Update include.
11262 * top.h: Update include.
11263 * top.c: Update include.
11264 * ser-base.c: Update include.
11265 * remote.c: Update include.
11266 * remote-notif.c: Update include.
11267 * remote-fileio.c: Update include.
11268 * record-full.c: Update include.
11269 * record-btrace.c: Update include.
11270 * python/python.c: Update include.
11271 * posix-hdep.c: Update include.
11272 * mingw-hdep.c: Update include.
11273 * mi/mi-main.c: Update include.
11274 * mi/mi-interp.c: Update include.
11275 * main.c: Update include.
11276 * linux-nat.c: Update include.
11277 * interps.c: Update include.
11278 * infrun.c: Update include.
11279 * inf-loop.c: Update include.
11280 * event-top.c: Update include.
11281 * event-loop.c: Move to ../gdbsupport/.
11282 * event-loop.h: Move to ../gdbsupport/.
11283 * async-event.h: Update include.
11284 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
11285
93b54c8e
TT
112862020-04-13 Tom Tromey <tom@tromey.com>
11287
11288 * tui/tui-win.c: Include async-event.h.
11289 * remote.c: Include async-event.h.
11290 * remote-notif.c: Include async-event.h.
11291 * record-full.c: Include async-event.h.
11292 * record-btrace.c: Include async-event.h.
11293 * infrun.c: Include async-event.h.
11294 * event-top.c: Include async-event.h.
11295 * event-loop.h: Move some declarations to async-event.h.
11296 * event-loop.c: Don't include ser-event.h or top.h. Move some
11297 code to async-event.c.
11298 * async-event.h: New file.
11299 * async-event.c: New file.
11300 * Makefile.in (COMMON_SFILES): Add async-event.c.
11301 (HFILES_NO_SRCDIR): Add async-event.h.
11302
c1cd3163
TT
113032020-04-13 Tom Tromey <tom@tromey.com>
11304
11305 * utils.c (flush_streams): New function.
11306 * event-loop.c (gdb_wait_for_event): Call flush_streams.
11307
29f2bf4f
TT
113082020-04-13 Tom Tromey <tom@tromey.com>
11309
11310 * event-loop.c (handle_file_event): Use warning, not
11311 printf_unfiltered.
11312
98029d02
TT
113132020-04-13 Tom Tromey <tom@tromey.com>
11314
11315 * event-loop.c: Include <chrono>.
11316
06cc9596
TT
113172020-04-13 Tom Tromey <tom@tromey.com>
11318
11319 * gdb_select.h: Move to ../gdbsupport/.
11320 * event-loop.c: Update include path.
11321 * top.c: Update include path.
11322 * ser-base.c: Update include path.
11323 * ui-file.c: Update include path.
11324 * ser-tcp.c: Update include path.
11325 * guile/scm-ports.c: Update include path.
11326 * posix-hdep.c: Update include path.
11327 * ser-unix.c: Update include path.
11328 * gdb_usleep.c: Update include path.
11329 * mingw-hdep.c: Update include path.
11330 * inflow.c: Update include path.
11331 * infrun.c: Update include path.
11332 * event-top.c: Update include path.
11333
8ae8e197
TT
113342020-04-13 Tom Tromey <tom@tromey.com>
11335
11336 * configure: Rebuild.
11337 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
11338
58cf28e8
TT
113392020-04-13 Tom Tromey <tom@tromey.com>
11340
11341 * event-loop.h (start_event_loop): Don't declare.
11342 * event-loop.c (start_event_loop): Move...
11343 * main.c (start_event_loop): ...here. Now static.
11344
b7f999ae
SDJ
113452020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
11346
11347 * MAINTAINERS: Update my email address.
11348
1085dfd4
KR
113492020-04-12 Kamil Rytarowski <n54@gmx.com>
11350
11351 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
11352 IP_ALL.
11353
49d1d1f5
KR
113542020-04-12 Kamil Rytarowski <n54@gmx.com>
11355
11356 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 11357 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 11358
b4848d2a
KR
113592020-04-12 Kamil Rytarowski <n54@gmx.com>
11360
11361 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 11362 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 11363
51c133d5
KR
113642020-04-12 Kamil Rytarowski <n54@gmx.com>
11365
11366 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
11367
54b8cbd0
KR
113682020-04-11 Kamil Rytarowski <n54@gmx.com>
11369
11370 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
11371 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
11372 (nbsd_nat_target::info_proc): New functions.
11373 * nbsd-nat.c (kinfo_get_vmmap): New function.
11374 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
11375 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
11376 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
11377 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
11378 functions.
11379 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
11380 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
11381 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
11382 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
11383 (KINFO_VME_FLAG_GROWS_DOWN): New.
11384
cf83625d
AS
113852020-04-10 Artur Shepilko <nomadbyte@gmail.com>
11386
11387 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
11388 bit shift.
11389
0c4311ab
TT
113902020-04-10 Tom Tromey <tromey@adacore.com>
11391
11392 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
11393
3e65b3e9
TT
113942020-04-10 Tom Tromey <tromey@adacore.com>
11395
11396 * symtab.c (get_symbol_address, get_msymbol_address): Skip
11397 separate debug files.
11398
13302e95
HD
113992020-04-10 Hannes Domani <ssbssa@yahoo.de>
11400
11401 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11402 Move to...
11403 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11404 ... here.
11405 * windows-nat.c (windows_nat_target::get_windows_debug_event):
11406 Check for STATUS_WX86_BREAKPOINT.
11407 (windows_nat_target::wait): Same.
11408
bdfc1e8a
TV
114092020-04-10 Tom de Vries <tdevries@suse.de>
11410
11411 PR cli/25808
11412 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
11413
f4460aec
SM
114142020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11415
11416 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
11417 (Write After Approval): Remove Tom de Vries.
11418
a25198bb
BE
114192020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
11420
11421 revert partially:
11422 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11423
aac66a4c
SM
11424 * buildsym.c (record_line): Fix undefined behavior and preserve
11425 lines at eof.
a25198bb 11426
206c98a6
KR
114272020-04-09 Kamil Rytarowski <n54@gmx.com>
11428
11429 * auxv.h (svr4_auxv_parse): New.
11430 * auxv.c (default_auxv_parse): Split into default_auxv_parse
11431 and generic_auxv_parse.
11432 (svr4_auxv_parse): Add.
11433 * obsd-tdep.c: Include "auxv.h".
11434 (obsd_auxv_parse): Remove.
11435 (obsd_init_abi): Remove comment.
11436 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
11437 from `obsd_auxv_parse' to `svr4_auxv_parse'.
11438 * nbsd-tdep.c: Include "auxv.h".
11439 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
11440
71fbdbaf
TT
114412020-04-08 Tom Tromey <tromey@adacore.com>
11442
11443 * nat/windows-nat.h (last_wait_event): Don't declare.
11444 (wait_for_debug_event): Update comment.
11445 * nat/windows-nat.c (last_wait_event): Now static.
11446
2c1d95e8
TT
114472020-04-08 Tom Tromey <tromey@adacore.com>
11448
11449 * windows-nat.c (wait_for_debug_event): Move to
11450 nat/windows-nat.c.
11451 * nat/windows-nat.h (wait_for_debug_event): Declare.
11452 * nat/windows-nat.c (wait_for_debug_event): Move from
11453 windows-nat.c. No longer static.
11454
d2977bc4
TT
114552020-04-08 Tom Tromey <tromey@adacore.com>
11456
11457 * windows-nat.c (get_windows_debug_event): Use
11458 fetch_pending_stop.
11459 * nat/windows-nat.h (fetch_pending_stop): Declare.
11460 * nat/windows-nat.c (fetch_pending_stop): New function.
11461
e758e19c
TT
114622020-04-08 Tom Tromey <tromey@adacore.com>
11463
11464 * windows-nat.c (windows_continue): Use matching_pending_stop and
11465 continue_last_debug_event.
11466 * nat/windows-nat.h (matching_pending_stop)
11467 (continue_last_debug_event): Declare.
11468 * nat/windows-nat.c (DEBUG_EVENTS): New define.
11469 (matching_pending_stop, continue_last_debug_event): New
11470 functions.
11471
8d30e395
TT
114722020-04-08 Tom Tromey <tromey@adacore.com>
11473
11474 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
11475 (handle_exception_result): Move to nat/windows-nat.h.
11476 (DEBUG_EXCEPTION_SIMPLE): Remove.
11477 (windows_nat::handle_ms_vc_exception): New function.
11478 (handle_exception): Move to nat/windows-nat.c.
11479 (get_windows_debug_event): Update.
11480 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
11481 nat/windows-nat.c.
11482 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
11483 (handle_exception_result): Move from windows-nat.c.
11484 (handle_exception): Declare.
11485 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
11486 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
11487 windows-nat.c.
11488
29de418d
TT
114892020-04-08 Tom Tromey <tromey@adacore.com>
11490
11491 * windows-nat.c (exception_count, event_count): Remove.
11492 (handle_exception, get_windows_debug_event)
11493 (do_initial_windows_stuff): Update.
11494
a816ba18
TT
114952020-04-08 Tom Tromey <tromey@adacore.com>
11496
11497 * windows-nat.c (windows_nat::handle_load_dll)
11498 (windows_nat::handle_unload_dll): Rename. No longer static.
11499 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
11500 Declare.
11501
a00caa12
TT
115022020-04-08 Tom Tromey <tromey@adacore.com>
11503
11504 * complaints.h (stop_whining): Declare at top-level.
11505 (complaint): Don't declare stop_whining.
11506
d41b524f
TT
115072020-04-08 Tom Tromey <tromey@adacore.com>
11508
11509 * windows-nat.c (windows_nat::handle_output_debug_string):
11510 Rename. No longer static.
11511 * nat/windows-nat.h (handle_output_debug_string): Declare.
11512
3c76026d
TT
115132020-04-08 Tom Tromey <tromey@adacore.com>
11514
11515 * windows-nat.c (current_process_handle, current_process_id)
11516 (main_thread_id, last_sig, current_event, last_wait_event)
11517 (current_windows_thread, desired_stop_thread_id, pending_stops)
11518 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
11519 (display_selectors, fake_create_process)
11520 (get_windows_debug_event): Update.
11521 * nat/windows-nat.h (current_process_handle, current_process_id)
11522 (main_thread_id, last_sig, current_event, last_wait_event)
11523 (current_windows_thread, desired_stop_thread_id, pending_stops)
11524 (struct pending_stop, siginfo_er): Move from windows-nat.c.
11525 * nat/windows-nat.c (current_process_handle, current_process_id)
11526 (main_thread_id, last_sig, current_event, last_wait_event)
11527 (current_windows_thread, desired_stop_thread_id, pending_stops)
11528 (siginfo_er): New globals. Move from windows-nat.c.
11529
9d8679cc
TT
115302020-04-08 Tom Tromey <tromey@adacore.com>
11531
11532 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
11533 (handle_load_dll): Update.
11534 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
11535
28688adf
TT
115362020-04-08 Tom Tromey <tromey@adacore.com>
11537
11538 * windows-nat.c (enum thread_disposition_type): Move to
11539 nat/windows-nat.h.
11540 (windows_nat::thread_rec): Rename from thread_rec. No longer
11541 static.
11542 (windows_add_thread, windows_nat_target::fetch_registers)
11543 (windows_nat_target::store_registers, handle_exception)
11544 (windows_nat_target::resume, get_windows_debug_event)
11545 (windows_nat_target::get_tib_address)
11546 (windows_nat_target::thread_name)
11547 (windows_nat_target::thread_alive): Update.
11548 * nat/windows-nat.h (enum thread_disposition_type): Move from
11549 windows-nat.c.
11550 (thread_rec): Declare.
11551
4834dad0
TT
115522020-04-08 Tom Tromey <tromey@adacore.com>
11553
11554 * windows-nat.c: Add "using namespace".
11555 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
11556 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
11557
65bafd5b
TT
115582020-04-08 Tom Tromey <tromey@adacore.com>
11559
11560 * nat/windows-nat.h (struct windows_thread_info): Declare
11561 destructor.
11562 * nat/windows-nat.c (~windows_thread_info): New.
11563
0a4afda3
TT
115642020-04-08 Tom Tromey <tromey@adacore.com>
11565
11566 PR gdb/22992
11567 * windows-nat.c (current_event): Update comment.
11568 (last_wait_event, desired_stop_thread_id): New globals.
11569 (struct pending_stop): New.
11570 (pending_stops): New global.
11571 (windows_nat_target) <stopped_by_sw_breakpoint>
11572 <supports_stopped_by_sw_breakpoint>: New methods.
11573 (windows_fetch_one_register): Add assertions. Adjust PC.
11574 (windows_continue): Handle pending stops. Suspend other threads
11575 when stepping. Use last_wait_event
11576 (wait_for_debug_event): New function.
11577 (get_windows_debug_event): Use wait_for_debug_event. Handle
11578 pending stops. Queue spurious stops.
11579 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
11580 (windows_nat_target::kill): Use wait_for_debug_event.
11581 * nat/windows-nat.h (struct windows_thread_info)
11582 <stopped_at_software_breakpoint>: New field.
11583 * nat/windows-nat.c (windows_thread_info::resume): Clear
11584 stopped_at_software_breakpoint.
11585
8e61ebec
TT
115862020-04-08 Tom Tromey <tromey@adacore.com>
11587
11588 * windows-nat.c (enum thread_disposition_type): New.
11589 (thread_rec): Replace "get_context" parameter with "disposition";
11590 change type.
11591 (windows_add_thread, windows_nat_target::fetch_registers)
11592 (windows_nat_target::store_registers, handle_exception)
11593 (windows_nat_target::resume, get_windows_debug_event)
11594 (windows_nat_target::get_tib_address)
11595 (windows_nat_target::thread_name)
11596 (windows_nat_target::thread_alive): Update.
11597
98a03287
TT
115982020-04-08 Tom Tromey <tromey@adacore.com>
11599
11600 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
11601 (windows_continue): Use windows_continue::resume.
11602 * nat/windows-nat.h (struct windows_thread_info) <suspend,
11603 resume>: Declare new methods.
11604 * nat/windows-nat.c: New file.
11605 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
11606
7c7411bc
TT
116072020-04-08 Tom Tromey <tromey@adacore.com>
11608
11609 * windows-nat.c (windows_add_thread, windows_delete_thread)
11610 (windows_nat_target::fetch_registers)
11611 (windows_nat_target::store_registers, fake_create_process)
11612 (windows_nat_target::resume, windows_nat_target::resume)
11613 (get_windows_debug_event, windows_nat_target::wait)
11614 (windows_nat_target::pid_to_str)
11615 (windows_nat_target::get_tib_address)
11616 (windows_nat_target::get_ada_task_ptid)
11617 (windows_nat_target::thread_name)
11618 (windows_nat_target::thread_alive): Use lwp, not tid.
11619
2950fdf7
TT
116202020-04-08 Tom Tromey <tromey@adacore.com>
11621
11622 * windows-nat.c (handle_exception)
11623 (windows_nat_target::thread_name): Update.
11624 * nat/windows-nat.h (windows_thread_info): Remove destructor.
11625 <name>: Now unique_xmalloc_ptr.
11626
62fe396b
TT
116272020-04-08 Tom Tromey <tromey@adacore.com>
11628
11629 * windows-nat.c (thread_rec)
11630 (windows_nat_target::fetch_registers): Update.
11631 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
11632 Update comment.
11633 <debug_registers_changed, reload_context>: Now bool.
11634
e9534bd2
TT
116352020-04-08 Tom Tromey <tromey@adacore.com>
11636
11637 * windows-nat.c (windows_add_thread): Use new.
11638 (windows_init_thread_list, windows_delete_thread): Use delete.
11639 (get_windows_debug_event): Update.
11640 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
11641 destructor, and initializers.
11642
ae1f8880
TT
116432020-04-08 Tom Tromey <tromey@adacore.com>
11644
11645 * windows-nat.c (struct windows_thread_info): Remove.
11646 * nat/windows-nat.h: New file.
11647
55a1e039
TT
116482020-04-08 Tom Tromey <tromey@adacore.com>
11649
11650 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
11651 (thread_rec, windows_add_thread, windows_delete_thread)
11652 (windows_continue): Update.
11653
93366324
TT
116542020-04-08 Tom Tromey <tromey@adacore.com>
11655
11656 * windows-nat.c (struct windows_thread_info): Remove typedef.
11657 (thread_head): Remove.
11658 (thread_list): New global.
11659 (thread_rec, windows_add_thread, windows_init_thread_list)
11660 (windows_delete_thread, windows_continue): Update.
11661
0f2265e2
SM
116622020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11663
11664 * windows-tdep.h (windows_init_abi): Add comment.
11665 (cygwin_init_abi): New declaration.
11666 * windows-tdep.c: Split signal enumeration in two, one for
11667 Windows and one for Cygwin.
11668 (windows_gdb_signal_to_target): Only deal with signal of the
11669 Windows OS ABI.
11670 (cygwin_gdb_signal_to_target): New function.
11671 (windows_init_abi): Rename to windows_init_abi_common, don't set
11672 gdb_signal_to_target gdbarch method. Add new new function with
11673 this name.
11674 (cygwin_init_abi): New function.
11675 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
11676 comment. Don't call windows_init_abi.
11677 (amd64_windows_init_abi): Add comment, call windows_init_abi.
11678 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
11679 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
11680 i386_windows_init_abi_common, don't call windows_init_abi. Add
11681 a new function of this name.
11682 (i386_cygwin_init_abi): New function.
11683 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
11684 OS ABI Cygwin.
11685
3810f182
SM
116862020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11687
11688 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
11689 parameter.c.
11690 (dwarf2_read_gdb_index): Update.
11691
063f8e80
KR
116922020-04-07 Kamil Rytarowski <n54@gmx.com>
11693
11694 * nbsd-tdep.c: Include "objfiles.h".
11695 (nbsd_skip_solib_resolver): New.
11696 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
11697
85a9510c 116982020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11699
11700 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
11701 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
11702 with DW_LLE_base_addressx are being emitted in DWARFv5.
11703 Add the newly added kind DW_LOC_OFFSET_PAIR also.
11704 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
11705 unsigned integer.
11706
9fc3eaae 117072020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11708
11709 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
11710 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
11711 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
11712 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
11713 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
11714 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
11715 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
11716
11717
41144253 117182020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11719
11720 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
11721 (read_loclist_index): New function definition.
11722 (lookup_loclist_base): New function definition.
11723 (read_loclist_header): New function definition.
11724 (dwarf2_cu): Add loclist_base and loclist_header field.
11725 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
11726 (read_full_die_1): Read the value of DW_AT_loclists_base.
11727 (read_attribute_reprocess): Handle DW_FORM_loclistx.
11728 (read_attribute_value): Handle DW_FORM_loclistx.
11729 (skip_one_die): Handle DW_FORM_loclistx.
11730 (loclist_header): New structure declaration.
11731 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
11732
9f4e76a4
SM
117332020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11734
11735 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
11736 constructor. Remove `addr` parameter from other constructor and
11737 add `per_cu` parameter.
11738 * dwarf2/read.c (create_partial_symtab): Update.
11739
25c11aca
TV
117402020-04-07 Tom de Vries <tdevries@suse.de>
11741
11742 PR symtab/25796
11743 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
11744 (partial_die_info::fixup): Inherit has_const_value.
11745
5707e24b
TV
117462020-04-07 Tom de Vries <tdevries@suse.de>
11747
11748 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
11749 symbols without address.
11750
05f00e22
KR
117512020-04-06 Kamil Rytarowski <n54@gmx.com>
11752
11753 * nbsd-nat.h (struct thread_info): Add forward declaration.
11754 (nbsd_nat_target::thread_alive): Add.
11755 (nbsd_nat_target::thread_name): Likewise.
11756 (nbsd_nat_target::update_thread_list): Likewise.
11757 (update_thread_list::post_attach): Likewise.
11758 (post_attach::pid_to_str): Likewise.
11759 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
11760 (nbsd_thread_lister): Add.
11761 (nbsd_nat_target::thread_alive): Likewise.
11762 (nbsd_nat_target::thread_name): Likewise.
11763 (nbsd_add_threads): Likewise.
11764 (update_thread_list::post_attach): Likewise.
11765 (nbsd_nat_target::update_thread_list): Likewise.
11766 (post_attach::pid_to_str): Likewise.
11767
6ee448cc
TT
117682020-04-06 Tom Tromey <tromey@adacore.com>
11769
11770 * ada-valprint.c (print_variant_part): Extract the variant field.
11771 (print_field_values): Use the field as the outer value when
11772 recursing.
11773
dea34e8c
TT
117742020-04-06 Tom Tromey <tromey@adacore.com>
11775
11776 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
11777 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
11778 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
11779 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
11780 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
11781
93689ce9
TT
117822020-04-06 Tom Tromey <tromey@adacore.com>
11783
11784 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
11785 TYPE_CODE_ERROR.
11786
79743962
KR
117872020-04-06 Kamil Rytarowski <n54@gmx.com>
11788
11789 * nbsd-tdep.c: Include "gdbarch.h".
11790 Define enum with NetBSD signal numbers.
11791 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
11792 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
11793 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
11794 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
11795 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
11796 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
11797 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
11798 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11799 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
11800 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
11801 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
11802 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
11803
9e7c9a03
HD
118042020-04-03 Hannes Domani <ssbssa@yahoo.de>
11805
11806 PR gdb/25325
11807 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
11808
d9e49b61
TT
118092020-04-03 Tom Tromey <tromey@adacore.com>
11810
11811 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
11812 Read constant block.
11813
e0fc5c3f
SM
118142020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11815
11816 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
11817 (gdb_bfd_get_full_section_contents): New declaration.
11818 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
11819 * windows-tdep.c (is_linked_with_cygwin_dll): Use
11820 gdb_bfd_get_full_section_contents.
11821
e2ff18a0
SM
118222020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11823
11824 * exec.c (build_section_table): Replace internal_error with
11825 gdb_assert.
11826 (section_table_xfer_memory_partial): Likewise.
11827 * mdebugread.c (parse_partial_symbols): Likewise.
11828 * psymtab.c (lookup_partial_symbol): Likewise.
11829 * utils.c (wrap_here): Likewise.
11830
0830d301
TT
118312020-04-02 Tom Tromey <tromey@adacore.com>
11832
11833 * f-lang.c (build_fortran_types): Use arch_type to initialize
11834 builtin_complex_s32 in the TYPE_CODE_ERROR case.
11835
e7da7f8f
TT
118362020-04-02 Tom Tromey <tromey@adacore.com>
11837
11838 * dwarf2/read.c (partial_die_info::read): Do not create a vector
11839 of attributes.
11840
c90d28ac
AB
118412020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
11842 Bernd Edlinger <bernd.edlinger@hotmail.de>
11843 Tom Tromey <tromey@adacore.com>
11844
11845 * buildsym.c (buildsym_compunit::record_line): Remove
11846 deduplication code.
11847
1aa98955
TV
118482020-04-02 Tom de Vries <tdevries@suse.de>
11849
11850 PR ada/24671
11851 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
11852
d3214198
TV
118532020-04-02 Tom de Vries <tdevries@suse.de>
11854
11855 * dwarf2/read.c (dwarf2_gdb_index_functions,
11856 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
11857 NULL.
11858 * psymtab.c (psym_lookup_global_symbol_language): New function.
11859 (psym_functions): Init psym_lookup_global_symbol_language with
11860 psym_lookup_global_symbol_language.
11861 * symfile-debug.c (debug_sym_quick_functions): Init
11862 lookup_global_symbol_language with NULL.
11863 * symfile.c (set_initial_language): Remove fixme comment.
11864 * symfile.h (struct quick_symbol_functions): Add
11865 lookup_global_symbol_language.
11866 * symtab.c (find_quick_global_symbol_language): New function.
11867 (find_main_name): Use find_quick_global_symbol_language.
11868
2836752f
SM
118692020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
11870
11871 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
11872
64dc2d4b
BE
118732020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11874
11875 * buildsym.c (record_line): Fix undefined behavior and preserve
11876 lines at eof.
11877
bbe3dc41
BE
118782020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11879
11880 * buildsym.c (record_line): Fix the resizing condition.
11881
6b4a335b
TT
118822020-04-01 Tom Tromey <tom@tromey.com>
11883
11884 * value.h (value_literal_complex): Add comment.
11885 * valops.c (value_literal_complex): Refer to value.h.
11886
3638a098
TT
118872020-04-01 Tom Tromey <tom@tromey.com>
11888
11889 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
11890 (scalar_type): New rule, from typebase.
11891 (typebase): Use scalar_type. Recognize complex types.
11892 (field_name): Handle FLOAT_KEYWORD.
11893 (ident_tokens): Add _Complex and __complex__.
11894
c34e8714
TT
118952020-04-01 Tom Tromey <tom@tromey.com>
11896
11897 PR exp/25299:
11898 * valarith.c (promotion_type, complex_binop): New functions.
11899 (scalar_binop): Handle complex numbers. Use promotion_type.
11900 (value_pos, value_neg, value_complement): Handle complex numbers.
11901
fa649bb7
TT
119022020-04-01 Tom Tromey <tom@tromey.com>
11903
11904 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
11905 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
11906 (parse_number): Handle complex numbers.
11907
981c08ce
TT
119082020-04-01 Tom Tromey <tom@tromey.com>
11909
11910 * c-valprint.c (c_decorations): Change complex suffix to "i".
11911
4c99290d
TT
119122020-04-01 Tom Tromey <tom@tromey.com>
11913
11914 * valprint.c (generic_value_print_complex): Use accessors.
11915 * value.h (value_real_part, value_imaginary_part): Declare.
11916 * valops.c (value_real_part, value_imaginary_part): New
11917 functions.
11918 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
11919
5b930b45
TT
119202020-04-01 Tom Tromey <tom@tromey.com>
11921
11922 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
11923 (read_range_type): Update.
11924 * mdebugread.c (basic_type): Update.
11925 * go-lang.c (build_go_types): Use init_complex_type.
11926 * gdbtypes.h (struct main_type) <complex_type>: New member.
11927 (init_complex_type): Update.
11928 (arch_complex_type): Don't declare.
11929 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
11930 Make name if none given. Use alloc_type_copy. Look for cached
11931 complex type.
11932 (arch_complex_type): Remove.
11933 (gdbtypes_post_init): Use init_complex_type.
11934 * f-lang.c (build_fortran_types): Use init_complex_type.
11935 * dwarf2/read.c (read_base_type): Update.
11936 * d-lang.c (build_d_types): Use init_complex_type.
11937 * ctfread.c (read_base_type): Update.
11938
53cccef1
TBA
119392020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11940
11941 * infrun.c (stop_all_threads): Update assertion, plus when
11942 stopping threads, take into account that we might be trying
11943 to stop an all-stop target.
11944 (stop_waiting): Call 'stop_all_threads' if there exists a
11945 non-stop target.
11946
a0714d30
TBA
119472020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11948
11949 * target.h (exists_non_stop_target): New function declaration.
11950 * target.c (exists_non_stop_target): New function.
11951
60e22c1e
HD
119522020-04-01 Hannes Domani <ssbssa@yahoo.de>
11953
11954 PR gdb/24789
11955 * eval.c (is_integral_or_integral_reference): New function.
11956 (evaluate_subexp_standard): Allow integer references in
11957 pointer arithmetic.
11958
e139a727
TBA
119592020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11960
11961 * remote.c (remote_target::remote_parse_stop_reply): Remove the
11962 check for no ptid in the stop reply when the target is non-stop.
11963
e0802d59
TT
119642020-04-01 Tom Tromey <tromey@adacore.com>
11965
11966 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
11967 "name" parameter to rvalue reference. Initialize m_name_holder.
11968 <lookup_name_info>: New overloads.
11969 <name>: Return gdb::string_view.
11970 <c_str>: New method.
11971 <make_ignore_params>: Update.
11972 <search_name_hash>: Update.
11973 <language_lookup_name>: Return const char *.
11974 <m_name>: Change type.
11975 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
11976 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
11977 (lookup_name_info::match_any): Update.
11978 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
11979 Update.
11980 * minsyms.c (linkage_name_str): Update.
11981 * language.c (default_symbol_name_matcher): Update.
11982 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
11983 Update.
11984 * ada-lang.c (ada_fold_name): Change parameter to string_view.
11985 (ada_lookup_name_info::ada_lookup_name_info): Update.
11986 (literal_symbol_name_matcher): Update.
11987
8c072cb6
TT
119882020-04-01 Tom Tromey <tromey@adacore.com>
11989
11990 * psymtab.c (psymtab_search_name): Remove function.
11991 (psym_lookup_symbol): Create search name and lookup name here.
11992 (lookup_partial_symbol): Remove "name" parameter; add
11993 lookup_name.
11994 (psym_expand_symtabs_for_function): Update.
11995
6f29a534
TT
119962020-03-31 Joel Jones <joelkevinjones@gmail.com>
11997
11998 PR tui/25597:
11999 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
12000
af62665e
TT
120012020-03-31 Tom Tromey <tromey@adacore.com>
12002
12003 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
12004 memcpy.
12005
d1a89da5
NC
120062020-03-30 Nelson Chu <nelson.chu@sifive.com>
12007
12008 * features/riscv/32bit-csr.xml: Regenerated.
12009 * features/riscv/64bit-csr.xml: Regenerated.
12010
d8af9068
TT
120112020-03-30 Tom Tromey <tromey@adacore.com>
12012
12013 * ada-valprint.c (print_variant_part): Update.
12014 * ada-lang.h (ada_which_variant_applies): Update.
12015 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
12016 outer_valaddr parameters; replace with "outer" value parameter.
12017 (to_fixed_variant_branch_type): Update.
12018
227c0bf4
PFC
120192020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12020
12021 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
12022 <list>. Remove inclusion of observable.h.
12023 (PPC_DEBUG_CURRENT_VERSION): Move up define.
12024 (struct arch_lwp_info): New struct.
12025 (class ppc_linux_dreg_interface): New class.
12026 (struct ppc_linux_process_info): New struct.
12027 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
12028 <low_new_clone, low_forget_process, low_prepare_to_resume>
12029 <copy_thread_dreg_state, mark_thread_stale>
12030 <mark_debug_registers_changed, register_hw_breakpoint>
12031 <clear_hw_breakpoint, register_wp, clear_wp>
12032 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
12033 <num_memory_accesses, get_trigger_type>
12034 <create_watchpoint_request, hwdebug_point_cmp>
12035 <init_arch_lwp_info, get_arch_lwp_info>
12036 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
12037 methods.
12038 <struct ptid_hash>: New inner struct.
12039 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
12040 members.
12041 (saved_dabr_value, hwdebug_info, max_slots_number)
12042 (struct hw_break_tuple, struct thread_points, ppc_threads)
12043 (have_ptrace_hwdebug_interface)
12044 (hwdebug_find_thread_points_by_tid)
12045 (hwdebug_insert_point, hwdebug_remove_point): Remove.
12046 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
12047 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
12048 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
12049 use m_dreg_interface.
12050 (hwdebug_point_cmp): Change to...
12051 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
12052 reference arguments instead of pointers.
12053 (ppc_linux_nat_target::ranged_break_num_registers): Use
12054 m_dreg_interface.
12055 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
12056 m_dreg_interface. Call register_hw_breakpoint.
12057 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
12058 m_dreg_interface. Call clear_hw_breakpoint.
12059 (get_trigger_type): Change to...
12060 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
12061 comment.
12062 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
12063 use m_dreg_interface. Call register_hw_breakpoint.
12064 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
12065 use m_dreg_interface. Call clear_hw_breakpoint.
12066 (can_use_watchpoint_cond_accel): Change to...
12067 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
12068 method. Update comment, use m_dreg_interface and
12069 m_process_info.
12070 (calculate_dvc): Change to...
12071 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
12072 m_dreg_interface.
12073 (num_memory_accesses): Change to...
12074 (ppc_linux_nat_target::num_memory_accesses): ...this method.
12075 (check_condition): Change to...
12076 (ppc_linux_nat_target::check_condition): ...this method.
12077 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
12078 comment, use m_dreg_interface.
12079 (create_watchpoint_request): Change to...
12080 (ppc_linux_nat_target::create_watchpoint_request): ...this
12081 method. Use m_dreg_interface.
12082 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
12083 m_dreg_interface. Call register_hw_breakpoint or register_wp.
12084 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
12085 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
12086 (ppc_linux_nat_target::low_forget_process)
12087 (ppc_linux_nat_target::low_new_fork)
12088 (ppc_linux_nat_target::low_new_clone)
12089 (ppc_linux_nat_target::low_delete_thread)
12090 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
12091 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
12092 only call mark_thread_stale.
12093 (ppc_linux_thread_exit): Remove.
12094 (ppc_linux_nat_target::stopped_data_address): Change to...
12095 (ppc_linux_nat_target::low_stopped_data_address): This. Add
12096 comment, use m_dreg_interface and m_thread_hw_breakpoints.
12097 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
12098 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
12099 comment. Call low_stopped_data_address.
12100 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
12101 m_dreg_interface.
12102 (ppc_linux_nat_target::masked_watch_num_registers): Use
12103 m_dreg_interface.
12104 (ppc_linux_nat_target::copy_thread_dreg_state)
12105 (ppc_linux_nat_target::mark_thread_stale)
12106 (ppc_linux_nat_target::mark_debug_registers_changed)
12107 (ppc_linux_nat_target::register_hw_breakpoint)
12108 (ppc_linux_nat_target::clear_hw_breakpoint)
12109 (ppc_linux_nat_target::register_wp)
12110 (ppc_linux_nat_target::clear_wp)
12111 (ppc_linux_nat_target::init_arch_lwp_info)
12112 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
12113 (_initialize_ppc_linux_nat): Remove observer callback.
12114
4db10d8f
PFC
121152020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12116
12117 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
12118 (ppc_linux_nat_target::auxv_parse)
12119 (ppc_linux_nat_target::read_description)
12120 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
12121 Move up.
12122
1310c1b0
PFC
121232020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12124
12125 * linux-nat.h (low_new_clone): New method.
12126 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
12127
69b037c3
SM
121282020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12129
12130 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
12131 (dbx_expand_psymtab): ... this.
12132 (start_psymtab): Update.
12133 * mdebugread.c (psymtab_to_symtab_1): Rename to...
12134 (mdebug_expand_psymtab): ... this.
12135 (parse_partial_symbols): Update.
12136 (new_psymtab): Update.
12137 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
12138 (xcoff_expand_psymtab): ... this.
12139 (xcoff_start_psymtab): Update.
12140
48993951
SM
121412020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12142
12143 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
12144 <expand_dependencies>: ... this.
12145 * psymtab.c (partial_symtab::read_dependencies): Rename to...
12146 (partial_symtab::expand_dependencies): ... this.
12147 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
12148 Update.
12149 (dwarf2_psymtab::expand_psymtab): Update.
12150 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12151 * mdebugread.c (psymtab_to_symtab_1): Update.
12152 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12153
3ad83046
SM
121542020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12155
12156 * psympriv.h (discard_psymtab): Remove.
12157 * dbxread.c (dbx_end_psymtab): Update.
12158 * xcoffread.c (xcoff_end_psymtab): Update.
12159
4d1b9ab6
TT
121602020-03-28 Tom Tromey <tom@tromey.com>
12161
12162 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
12163 comment.
12164
f1749218
TT
121652020-03-28 Tom Tromey <tom@tromey.com>
12166
12167 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
12168
ebea7626
HD
121692020-03-27 Hannes Domani <ssbssa@yahoo.de>
12170
12171 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12172
a879b4d5
JB
121732020-03-26 John Baldwin <jhb@FreeBSD.org>
12174
12175 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
12176
0826b30a
TT
121772020-03-26 Tom Tromey <tom@tromey.com>
12178
12179 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
12180 (mark_common_block_symbol_computed, read_tag_string_type)
12181 (attr_to_dynamic_prop, read_subrange_type): Update.
12182 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
12183 to be methods on struct attribute.
12184 (skip_one_die, process_imported_unit_die, read_namespace_alias)
12185 (read_call_site_scope, partial_die_info::read)
12186 (partial_die_info::read, lookup_die_type, follow_die_ref):
12187 Update.
12188 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
12189 from dwarf2_get_ref_die_offset.
12190 (attribute::constant_value): New method, from
12191 dwarf2_get_attr_constant_value.
12192 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
12193 Declare method.
12194 <constant_value>: New method.
12195
2b2558bf
TT
121962020-03-26 Tom Tromey <tom@tromey.com>
12197
12198 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
12199 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
12200 (dwarf_type_encoding_name): Move to stringify.c.
12201 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
12202 * dwarf2/stringify.c: New file.
12203 * dwarf2/stringify.h: New file.
12204
eeb64781
TT
122052020-03-26 Tom Tromey <tom@tromey.com>
12206
12207 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
12208 Rewrite.
12209
a39fdb41
TT
122102020-03-26 Tom Tromey <tom@tromey.com>
12211
12212 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
12213 methods.
12214 * dwarf2/read.c (lookup_addr_base): Move to die.h.
12215 (lookup_ranges_base): Likewise.
12216 (read_cutu_die_from_dwo, read_full_die_1): Update.
12217
436c571c
TT
122182020-03-26 Tom Tromey <tom@tromey.com>
12219
12220 * dwarf2/read.c (read_import_statement, read_file_scope)
12221 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
12222 (read_lexical_block_scope, read_call_site_scope)
12223 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
12224 (handle_struct_member_die, process_structure_scope)
12225 (update_enumeration_type_from_children)
12226 (process_enumeration_scope, read_array_type, read_common_block)
12227 (read_namespace, read_module, read_subroutine_type): Update.
12228 (sibling_die): Remove.
12229
052c8bb8
TT
122302020-03-26 Tom Tromey <tom@tromey.com>
12231
12232 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
12233 (build_type_psymtabs_reader, read_structure_type)
12234 (read_enumeration_type, read_full_die_1): Update.
12235 (dwarf2_attr_no_follow): Move to die.h.
12236 * dwarf2/die.h (struct die_info) <attr>: New method.
12237
2b24b6e4
TT
122382020-03-26 Tom Tromey <tom@tromey.com>
12239
12240 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
12241 <base_address>: Now an optional.
12242 (dwarf2_find_base_address, dwarf2_rnglists_process)
12243 (dwarf2_ranges_process, fill_in_loclist_baton)
12244 (dwarf2_symbol_mark_computed): Update.
12245
c2d50fd0
TT
122462020-03-26 Tom Tromey <tom@tromey.com>
12247
12248 * dwarf2/read.c (struct die_info): Move to die.h.
12249 * dwarf2/die.h: New file.
12250
0df7ad3a
TT
122512020-03-26 Tom Tromey <tom@tromey.com>
12252
12253 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
12254 * dwarf2/read.c
12255 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12256 Move to line-header.c.
12257 (read_checked_initial_length_and_offset, read_formatted_entries):
12258 Likewise.
12259 (dwarf_decode_line_header): Split into two.
12260 * dwarf2/line-header.c
12261 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12262 Move from read.c.
12263 (read_checked_initial_length_and_offset, read_formatted_entries):
12264 Likewise.
12265 (dwarf_decode_line_header): New function, split from read.c.
12266
86c0bb4c
TT
122672020-03-26 Tom Tromey <tom@tromey.com>
12268
12269 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
12270 Declare method.
12271 * dwarf2/read.c (read_attribute_value): Update.
12272 (dwarf2_per_objfile::read_line_string): Rename from
12273 read_indirect_line_string.
12274 (read_formatted_entries): Update.
12275
2ef46c2f
TT
122762020-03-26 Tom Tromey <tom@tromey.com>
12277
12278 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
12279 variable.
12280
4f9c1eda
TT
122812020-03-26 Tom Tromey <tom@tromey.com>
12282
12283 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
12284 const.
12285 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
12286 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
12287 parameter const.
12288
5a0e026f
TT
122892020-03-26 Tom Tromey <tom@tromey.com>
12290
12291 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
12292 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
12293 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
12294 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
12295
8844c11b
TT
122962020-03-26 Tom Tromey <tom@tromey.com>
12297
12298 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
12299 file_names_size, file_full_name, file_file_name>: Use const.
12300 <file_name_at, file_names>: Add const overload.
12301 * dwarf2/line-header.c (line_header::file_file_name)
12302 (line_header::file_full_name): Update.
12303
c90ec28a
TT
123042020-03-26 Tom Tromey <tom@tromey.com>
12305
12306 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
12307 (macro_start_file, consume_improper_spaces)
12308 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
12309 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
12310 (dwarf_decode_macros): Move to macro.c.
12311 * dwarf2/macro.c: New file.
12312 * dwarf2/macro.h: New file.
12313 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
12314
4f44ae6c
TT
123152020-03-26 Tom Tromey <tom@tromey.com>
12316
12317 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
12318 method.
12319 * dwarf2/section.c: New method. From
12320 read_indirect_string_at_offset_from.
12321 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
12322 (read_indirect_string_at_offset_from): Move to section.c.
12323 (read_indirect_string_at_offset): Rewrite.
12324 (read_indirect_line_string_at_offset): Remove.
12325 (read_indirect_string, read_indirect_line_string)
12326 (dwarf_decode_macro_bytes): Update.
12327
a0194fa8
TT
123282020-03-26 Tom Tromey <tom@tromey.com>
12329
12330 * dwarf2/section.h (struct dwarf2_section_info)
12331 <overload_complaint>: Declare.
12332 (dwarf2_section_buffer_overflow_complaint): Don't declare.
12333 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
12334 Rename from dwarf2_section_buffer_overflow_complaint.
12335 * dwarf2/read.c (skip_one_die, partial_die_info::read)
12336 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
12337
3d27bbdb
TT
123382020-03-26 Tom Tromey <tom@tromey.com>
12339
12340 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
12341 Declare.
12342 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
12343 Move from read.c.
12344 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
12345 to section.c.
12346
9eac9650
TT
123472020-03-26 Tom Tromey <tom@tromey.com>
12348
12349 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
12350
bf80d710
TT
123512020-03-26 Tom Tromey <tom@tromey.com>
12352
12353 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
12354 "builder".
12355 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
12356 parameter.
12357 (dwarf_decode_macros): Update.
12358
0314b390
TT
123592020-03-26 Tom Tromey <tom@tromey.com>
12360
12361 * dwarf2/read.c (read_attribute_value): Update.
12362 (read_indirect_string_from_dwz): Move to dwz.c; change into
12363 method.
12364 (dwarf_decode_macro_bytes): Update.
12365 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
12366 * dwarf2/dwz.c: New file.
12367 * Makefile.in (COMMON_SFILES): Add dwz.c.
12368
9fda78b6
TT
123692020-03-26 Tom Tromey <tom@tromey.com>
12370
12371 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
12372 * dwarf2/read.c: Add include.
12373 * dwarf2/index-write.c: Add include.
12374 * dwarf2/index-cache.c: Add include.
12375 * dwarf2/dwz.h: New file.
12376
33aa3c10
TT
123772020-03-25 Tom Tromey <tom@tromey.com>
12378
12379 * compile/compile-object-load.c (get_out_value_type): Mention
12380 correct symbol name in error message.
12381
d503b685
HD
123822020-03-25 Hannes Domani <ssbssa@yahoo.de>
12383
12384 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12385
7b1eff95
TV
123862020-03-25 Tom de Vries <tdevries@suse.de>
12387
12388 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
12389 * symmisc.c (dump_symtab_1): Print user and includes fields.
12390 (maintenance_info_symtabs): Same.
12391
dd895392
AB
123922020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
12393
12394 PR gdb/25534
12395 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
12396 (riscv_regcache_cooked_write): New function.
12397 (riscv_push_dummy_call): Use new function.
12398 (riscv_return_value): Likewise.
12399
5ab2fbf1
SM
124002020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
12401
12402 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
12403 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
12404 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
12405 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
12406 * infrun.c (follow_fork): Likewise.
12407 (follow_fork_inferior): Likewise.
12408 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
12409 * linux-nat.h (class linux_nat_target): Likewise.
12410 * remote.c (class remote_target) <follow_fork>: Likewise.
12411 (remote_target::follow_fork): Likewise.
12412 * target-delegates.c: Re-generate.
12413 * target.c (default_follow_fork): Likewise.
12414 (target_follow_fork): Likewise.
12415 * target.h (struct target_ops) <follow_fork>: Likewise.
12416 (target_follow_fork): Likewise.
12417
a64fafb5
TV
124182020-03-24 Tom de Vries <tdevries@suse.de>
12419
12420 * psymtab.c (maintenance_info_psymtabs): Print user field.
12421
fe26d3a3
TT
124222020-03-20 Tom Tromey <tromey@adacore.com>
12423
12424 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
12425 const.
12426 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
12427 const.
12428
c884cc46
SM
124292020-03-20 Simon Marchi <simon.marchi@efficios.com>
12430
12431 * ptrace.m4: Don't check for ptrace declaration.
12432 * config.in: Re-generate.
12433 * configure: Re-generate.
12434 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
12435 not defined.
12436
1ff700c2
KR
124372020-03-20 Kamil Rytarowski <n54@gmx.com>
12438
12439 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
12440 `PTRACE_TYPE_RET'.
12441 * i386-bsd-nat.c (gdb_ptrace): Likewise.
12442 * sparc-nat.c (gdb_ptrace): Likewise.
12443 * x86-bsd-nat.c (gdb_ptrace): Likewise.
12444
f7d4f0b1
TT
124452020-03-20 Tom Tromey <tromey@adacore.com>
12446
12447 * c-exp.y (lex_one_token): Fix assert.
12448
f67210ff
TT
124492020-03-20 Tom Tromey <tromey@adacore.com>
12450
12451 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
12452 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
12453 strncpy call.
12454
1773be9e
TT
124552020-03-20 Tom Tromey <tromey@adacore.com>
12456
12457 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
12458
70304be9
TT
124592020-03-20 Tom Tromey <tromey@adacore.com>
12460
12461 * ada-valprint.c (print_variant_part): Remove parameters; switch
12462 to value-based API.
12463 (print_field_values): Likewise.
12464 (ada_val_print_struct_union): Likewise.
12465 (ada_value_print_1): Update.
12466
9faa006d
KR
124672020-03-20 Kamil Rytarowski <n54@gmx.com>
12468
12469 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
12470 nbsd_nat_target instead of inf_ptrace_target.
12471 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12472 nbsd_nat_target.
12473
4a90f062
KR
124742020-03-20 Kamil Rytarowski <n54@gmx.com>
12475
12476 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
12477 it to the ptrace call.
12478 * (store_registers): Likewise.
12479
124802020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
12481
12482 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
12483 it to the ptrace call.
12484 * (store_registers): Likewise.
12485
2d07da27
LM
124862020-03-19 Luis Machado <luis.machado@linaro.org>
12487
12488 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
12489 valid, fetch vg value from ptrace.
12490
f09db380
KR
124912020-03-19 Kamil Rytarowski <n54@gmx.com>
12492 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
12493 * inf-ptrace.c: Likewise.
12494 * (gdb_ptrace): Add.
12495 * (inf_ptrace_target::resume): Update.
12496 * (inf_ptrace_target::xfer_partial): Likewise.
12497 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
12498 * (inf_ptrace_peek_poke): Update.
12499
fcc7376e
KR
125002020-03-19 Kamil Rytarowski <n54@gmx.com>
12501
12502 * x86-bsd-nat.c (gdb_ptrace): New.
12503 * (x86bsd_dr_set): Add new argument `ptid'.
12504 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
12505 x86bsd_dr_set_addr): Update.
12506
cada5fc9
AB
125072020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12508
12509 * remote.c (remote_target::process_stop_reply): Handle events for
12510 all threads differently.
12511
19a2740f
AB
125122020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12513
12514 * completer.c (completion_tracker::remove_completion): Define new
12515 function.
12516 * completer.h (completion_tracker::remove_completion): Declare new
12517 function.
12518 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
12519 when adding a C++ function symbol.
12520
724fd9ba
AB
125212020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12522
12523 * completer.c (completion_tracker::completion_hash_entry): Define
12524 new class.
12525 (advance_to_filename_complete_word_point): Call
12526 recompute_lowest_common_denominator.
12527 (completion_tracker::completion_tracker): Call discard_completions
12528 to setup the hash table.
12529 (completion_tracker::discard_completions): Allow for being called
12530 from the constructor, pass new equal function, and element deleter
12531 when constructing the hash table. Initialise new class member
12532 variables.
12533 (completion_tracker::maybe_add_completion): Remove use of
12534 m_entries_vec, and store more information into m_entries_hash.
12535 (completion_tracker::recompute_lcd_visitor): New function, most
12536 content taken from...
12537 (completion_tracker::recompute_lowest_common_denominator):
12538 ...here, this now just visits each item in the hash calling the
12539 above visitor.
12540 (completion_tracker::build_completion_result): Remove use of
12541 m_entries_vec, call recompute_lowest_common_denominator.
12542 * completer.h (completion_tracker::have_completions): Remove use
12543 of m_entries_vec.
12544 (completion_tracker::completion_hash_entry): Declare new class.
12545 (completion_tracker::recompute_lowest_common_denominator): Change
12546 function signature.
12547 (completion_tracker::recompute_lcd_visitor): Declare new function.
12548 (completion_tracker::m_entries_vec): Delete.
12549 (completion_tracker::m_entries_hash): Initialize to NULL.
12550 (completion_tracker::m_lowest_common_denominator_valid): New
12551 member variable.
12552 (completion_tracker::m_lowest_common_denominator_max_length): New
12553 member variable.
12554
5a82b8a1
KR
125552020-03-17 Kamil Rytarowski <n54@gmx.com>
12556
12557 * regformats/regdef.h: Put reg in gdb namespace.
12558
fb516a69
KR
125592020-03-17 Kamil Rytarowski <n54@gmx.com>
12560
12561 * i386-bsd-nat.c (gdb_ptrace): New.
12562 * (i386bsd_fetch_inferior_registers,
12563 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12564 * (i386bsd_fetch_inferior_registers,
12565 i386bsd_store_inferior_registers) Use gdb_ptrace.
12566
1c0aa1fb
KR
125672020-03-17 Kamil Rytarowski <n54@gmx.com>
12568
12569 * amd64-bsd-nat.c (gdb_ptrace): New.
12570 * (amd64bsd_fetch_inferior_registers,
12571 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12572 * (amd64bsd_fetch_inferior_registers,
12573 amd64bsd_store_inferior_registers) Use gdb_ptrace.
12574
5ccd2fb7
KR
125752020-03-17 Kamil Rytarowski <n54@gmx.com>
12576
12577 * user-regs.c (user_reg::read): Rename to...
12578 (user_reg::xread): ...this.
12579 * (append_user_reg): Rename argument `read' to `xread'.
12580 * (user_reg_add_builtin): Likewise.
12581 * (user_reg_add): Likewise.
12582 * (value_of_user_reg): Likewise.
12583
2108a63a
KR
125842020-03-17 Kamil Rytarowski <n54@gmx.com>
12585
12586 * sparc-nat.c (gdb_ptrace): New.
12587 * sparc-nat.c (sparc_fetch_inferior_registers)
12588 (sparc_store_inferior_registers) Remove obsolete comment.
12589 * sparc-nat.c (sparc_fetch_inferior_registers)
12590 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
12591 * sparc-nat.c (sparc_fetch_inferior_registers)
12592 (sparc_store_inferior_registers) Use gdb_ptrace.
12593
a225c9a8
KR
125942020-03-17 Kamil Rytarowski <n54@gmx.com>
12595
12596 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
12597 it to the ptrace call.
12598 * sh-nbsd-nat.c (store_registers): Likewise.
12599
98097623
KR
126002020-03-17 Kamil Rytarowski <n54@gmx.com>
12601
12602 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
12603 nbsd_nat_target instead of inf_ptrace_target.
12604 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12605 nbsd_nat_target.
12606
9e38d619
KR
126072020-03-17 Kamil Rytarowski <n54@gmx.com>
12608
12609 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
12610
a2ecbe9f
KR
126112020-03-17 Kamil Rytarowski <n54@gmx.com>
12612
12613 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
12614 <sys/sysctl.h>.
12615 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
12616
58990295
TV
126172020-03-17 Tom de Vries <tdevries@suse.de>
12618
12619 PR gdb/23710
12620 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
12621 fields.
12622 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
12623 fields.
12624 (process_imported_unit_die): Skip import of c++ CUs.
12625
771dd3a8
TT
126262020-03-16 Tom Tromey <tom@tromey.com>
12627
12628 * p-valprint.c (pascal_object_print_value): Initialize
12629 base_value.
12630
817a7585
AK
126312020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
12632 Shahab Vahedi <shahab@synopsys.com>
12633
12634 * Makefile.in: Add arch/arc.o
12635 * configure.tgt: Likewise.
12636 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
12637 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 12638 (arc_read_description): New function to cache target descriptions.
817a7585
AK
12639 * arc-tdep.h (arc_read_description): Add proto type.
12640 * arch/arc.c: New file.
12641 * arch/arc.h: Likewise.
12642 * features/Makefile: Replace old target descriptions with new.
12643 * features/arc-arcompact.c: Remove.
12644 * features/arc-arcompact.xml: Likewise.
12645 * features/arc-v2.c: Likewise
12646 * features/arc-v2.xml: Likewise
12647 * features/arc/aux-arcompact.xml: New file.
12648 * features/arc/aux-v2.xml: Likewise.
12649 * features/arc/core-arcompact.xml: Likewise.
12650 * features/arc/core-v2.xml: Likewise.
12651 * features/arc/aux-arcompact.c: Generate.
12652 * features/arc/aux-v2.c: Likewise.
12653 * features/arc/core-arcompact.c: Likewise.
12654 * features/arc/core-v2.c: Likewise.
12655 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
12656
67430cd0
TT
126572020-03-16 Tom Tromey <tromey@adacore.com>
12658
12659 PR gdb/25663:
12660 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
12661 putting value into bcache.
12662
30efb6c7
SM
126632020-03-16 Simon Marchi <simon.marchi@efficios.com>
12664
12665 PR gdb/21500
12666 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
12667 to...
12668 (amd64_windows_init_abi_common): ... this. Don't set size of
12669 long type.
12670 (amd64_windows_init_abi): New function.
12671 (amd64_cygwin_init_abi): New function.
12672 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
12673 the Cygwin OS ABI.
12674 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
12675 comment.
12676
8db52437
SM
126772020-03-16 Simon Marchi <simon.marchi@efficios.com>
12678
12679 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
12680 * windows-tdep.c (CYGWIN_DLL_NAME): New.
12681 (pe_import_directory_entry): New struct type.
12682 (is_linked_with_cygwin_dll): New function.
12683 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
12684 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
12685 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
12686
5982a56a
SM
126872020-03-16 Simon Marchi <simon.marchi@efficios.com>
12688
12689 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
12690 i386_cygwin_core_osabi_sniffer.
12691
7a1998df
SM
126922020-03-16 Simon Marchi <simon.marchi@efficios.com>
12693
12694 * i386-cygwin-tdep.c: Rename to...
12695 * i386-windows-tdep.c: ... this.
12696 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
12697 i386-windows-tdep.c.
12698 * configure.tgt: Likewise.
12699
053205cc
SM
127002020-03-16 Simon Marchi <simon.marchi@efficios.com>
12701
12702 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
12703 * osabi.c (gdb_osabi_names): Add "Windows".
12704 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
12705 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
12706 (i386_cygwin_core_osabi_sniffer): New function, extracted from
12707 i386_cygwin_osabi_sniffer.
12708 (_initialize_i386_cygwin_tdep): Register OS ABI
12709 GDB_OSABI_WINDOWS for i386.
12710 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
12711 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
12712 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
12713 for x86-64.
12714 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
12715 when the target matches '*-*-mingw*'.
12716
fe4b2ee6
SM
127172020-03-16 Simon Marchi <simon.marchi@efficios.com>
12718
12719 * defs.h (enum gdb_osabi): Move to...
12720 * osabi.h (enum gdb_osabi): ... here.
12721 * gdbarch.sh: Include osabi.h in gdbarch.h.
12722 * gdbarch.h: Re-generate.
12723
cb9b645d
SM
127242020-03-16 Simon Marchi <simon.marchi@efficios.com>
12725
12726 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
12727 function.
12728 (_initialize_amd64_windows_tdep): Register osabi sniffer.
12729
3293bbaf
TT
127302020-03-14 Tom Tromey <tom@tromey.com>
12731
12732 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
12733 for C++.
12734 (c_type_print_modifier): Likewise. Add "language" parameter.
12735 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
12736 (c_type_print_base_1): Update.
12737 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
12738 constants.
12739 * type-stack.c (type_stack::insert): Handle tp_atomic and
12740 tp_restrict.
12741 (type_stack::follow_type_instance_flags): Likewise.
12742 (type_stack::follow_types): Likewise. Merge type-following code.
12743 * c-exp.y (RESTRICT, ATOMIC): New tokens.
12744 (space_identifier, cv_with_space_id)
12745 (const_or_volatile_or_space_identifier_noopt)
12746 (const_or_volatile_or_space_identifier): Remove.
12747 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
12748 rules.
12749 (ptr_operator, typebase): Update.
12750 (enum token_flag) <FLAG_C>: New constant.
12751 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
12752 "_Atomic".
12753 (lex_one_token): Handle FLAG_C.
12754
154151a6
KR
127552020-03-14 Kamil Rytarowski <n54@gmx.com>
12756
12757 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
12758 it to the ptrace call.
12759 * m68k-bsd-nat.c (store_registers): Likewise.
12760
bc107784
KR
127612020-03-14 Kamil Rytarowski <n54@gmx.com>
12762
12763 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
12764 gdb_byte *.
12765 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
12766 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
12767 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
12768
01a80117
KR
127692020-03-14 Kamil Rytarowski <n54@gmx.com>
12770
12771 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
12772 nbsd_nat_target instead of inf_ptrace_target.
12773 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12774 nbsd_nat_target.
12775
f90280ca
KR
127762020-03-14 Kamil Rytarowski <n54@gmx.com>
12777
12778 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
12779 register_t.
12780
6def66f1
KR
127812020-03-14 Kamil Rytarowski <n54@gmx.com>
12782
12783 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
12784 it to the ptrace call.
12785 * alpha-bsd-nat.c (store_registers): Likewise.
12786
66eaca97
KR
127872020-03-14 Kamil Rytarowski <n54@gmx.com>
12788
12789 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
12790 includes.
12791 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
12792 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
12793 fill_fpregset): Likewise.
12794
4fed520b
KR
127952020-03-14 Kamil Rytarowski <n54@gmx.com>
12796
12797 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
12798 nbsd_nat_target instead of inf_ptrace_target.
12799 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12800 nbsd_nat_target.
12801
2190cf06
KR
128022020-03-14 Kamil Rytarowski <n54@gmx.com>
12803
12804 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
12805 register_t.
12806
75c56d3d
KR
128072020-03-14 Kamil Rytarowski <n54@gmx.com>
12808
12809 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
12810 it to the ptrace call.
12811 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
12812 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
12813 * arm-nbsd-nat.c (store_register): Likewise.
12814 * arm-nbsd-nat.c (store_regs): Likewise.
12815 * arm-nbsd-nat.c (store_fp_register): Likewise.
12816 * arm-nbsd-nat.c (store_fp_regs): Likewise.
12817
6018d381
KR
128182020-03-14 Kamil Rytarowski <n54@gmx.com>
12819
12820 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
12821 nbsd_nat_target instead of inf_ptrace_target.
12822 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12823 nbsd_nat_target.
12824
013f99f0
KR
128252020-03-14 Kamil Rytarowski <n54@gmx.com>
12826
12827 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
12828 it to the ptrace call.
12829 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
12830
12753073
KR
128312020-03-14 Kamil Rytarowski <n54@gmx.com>
12832
6227b330
KR
12833 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
12834 it to the ptrace call.
12835 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
12836
128372020-03-14 Kamil Rytarowski <n54@gmx.com>
12838
12839 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
12840 gdb_byte *.
12753073
KR
12841 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
12842
d5be5fa4
KR
128432020-03-14 Kamil Rytarowski <n54@gmx.com>
12844
12845 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
12846 instead of inf_ptrace_target.
12847 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12848 nbsd_nat_target.
12849
8110f842
KR
128502020-03-14 Kamil Rytarowski <n54@gmx.com>
12851
12852 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12853 register_t.
12854
52feded7
KR
128552020-03-14 Kamil Rytarowski <n54@gmx.com>
12856
12857 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12858 register_t.
12859
25567eee
KR
128602020-03-14 Kamil Rytarowski <n54@gmx.com>
12861
12862 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
12863 register_t.
12864
426a9c18
TT
128652020-03-13 Tom Tromey <tom@tromey.com>
12866
12867 * value.h (val_print): Don't declare.
12868 * valprint.h (val_print_array_elements)
12869 (val_print_scalar_formatted, generic_val_print): Don't declare.
12870 * valprint.c (generic_val_print_array): Take a struct value.
12871 (generic_val_print_ptr, generic_val_print_memberptr)
12872 (generic_val_print_bool, generic_val_print_int)
12873 (generic_val_print_char, generic_val_print_complex)
12874 (generic_val_print): Remove.
12875 (generic_value_print): Update.
12876 (do_val_print): Remove unused parameters. Don't call
12877 la_val_print.
12878 (val_print): Remove.
12879 (common_val_print): Update. Don't call value_check_printable.
12880 (val_print_scalar_formatted, val_print_array_elements): Remove.
12881 * rust-lang.c (rust_val_print): Remove.
12882 (rust_language_defn): Update.
12883 * p-valprint.c (pascal_val_print): Remove.
12884 (pascal_value_print_inner): Update.
12885 (pascal_object_print_val_fields, pascal_object_print_val):
12886 Remove.
12887 (pascal_object_print_static_field): Update.
12888 * p-lang.h (pascal_val_print): Don't declare.
12889 * p-lang.c (pascal_language_defn): Update.
12890 * opencl-lang.c (opencl_language_defn): Update.
12891 * objc-lang.c (objc_language_defn): Update.
12892 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
12893 * m2-lang.h (m2_val_print): Don't declare.
12894 * m2-lang.c (m2_language_defn): Update.
12895 * language.h (struct language_defn) <la_val_print>: Remove.
12896 * language.c (unk_lang_value_print_inner): Rename. Change
12897 argument types.
12898 (unknown_language_defn, auto_language_defn): Update.
12899 * go-valprint.c (go_val_print): Remove.
12900 * go-lang.h (go_val_print): Don't declare.
12901 * go-lang.c (go_language_defn): Update.
12902 * f-valprint.c (f_val_print): Remove.
12903 * f-lang.h (f_value_print): Don't declare.
12904 * f-lang.c (f_language_defn): Update.
12905 * d-valprint.c (d_val_print): Remove.
12906 * d-lang.h (d_value_print): Don't declare.
12907 * d-lang.c (d_language_defn): Update.
12908 * cp-valprint.c (cp_print_value_fields)
12909 (cp_print_value_fields_rtti, cp_print_value): Remove.
12910 (cp_print_static_field): Update.
12911 * c-valprint.c (c_val_print_array, c_val_print_ptr)
12912 (c_val_print_struct, c_val_print_union, c_val_print_int)
12913 (c_val_print_memberptr, c_val_print): Remove.
12914 * c-lang.h (c_val_print_array, cp_print_value_fields)
12915 (cp_print_value_fields_rtti): Don't declare.
12916 * c-lang.c (c_language_defn, cplus_language_defn)
12917 (asm_language_defn, minimal_language_defn): Update.
12918 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
12919 (ada_val_print_enum): Take a struct value.
12920 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
12921 (ada_val_print): Remove.
12922 (ada_value_print_1): Update.
12923 (printable_val_type): Remove.
12924 * ada-lang.h (ada_val_print): Don't declare.
12925 * ada-lang.c (ada_language_defn): Update.
12926
42331a1e
TT
129272020-03-13 Tom Tromey <tom@tromey.com>
12928
12929 * valprint.c (do_val_print): Update.
12930 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
12931 a struct value.
12932 (value_to_value_object_no_release): Declare.
12933 * python/py-value.c (value_to_value_object_no_release): New
12934 function.
12935 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
12936 struct value.
12937 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
12938 function.
12939 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
12940 a struct value.
12941 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
12942 Declare.
12943 (gdbscm_apply_val_pretty_printer): Take a struct value.
12944 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
12945 value.
12946 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
12947 value.
12948 * extension-priv.h (struct extension_language_ops)
12949 <apply_val_pretty_printer>: Take a struct value.
12950 * cp-valprint.c (cp_print_value): Create a struct value.
12951 (cp_print_value): Update.
12952
3a916a97
TT
129532020-03-13 Tom Tromey <tom@tromey.com>
12954
12955 * ada-valprint.c (print_field_values): Call common_val_print.
12956
b59eac37
TT
129572020-03-13 Tom Tromey <tom@tromey.com>
12958
12959 * ada-valprint.c (val_print_packed_array_elements): Remove
12960 bitoffset and val parameters. Call common_val_print.
12961 (ada_val_print_string): Remove offset, address, and original_value
12962 parameters.
12963 (ada_val_print_array): Update.
12964 (ada_value_print_array): New function.
12965 (ada_value_print_1): Call it.
12966
03371129
TT
129672020-03-13 Tom Tromey <tom@tromey.com>
12968
12969 * ada-valprint.c (ada_value_print): Use common_val_print.
12970
2e088f8b
TT
129712020-03-13 Tom Tromey <tom@tromey.com>
12972
12973 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
12974
39ef85a8
TT
129752020-03-13 Tom Tromey <tom@tromey.com>
12976
12977 * ada-valprint.c (ada_value_print_num): New function.
12978 (ada_value_print_1): Use it.
12979
b9fa6e07
TT
129802020-03-13 Tom Tromey <tom@tromey.com>
12981
12982 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
12983
416595d6
TT
129842020-03-13 Tom Tromey <tom@tromey.com>
12985
12986 * ada-valprint.c (ada_value_print_ptr): New function.
12987 (ada_value_print_1): Use it.
12988
5b5e15ec
TT
129892020-03-13 Tom Tromey <tom@tromey.com>
12990
12991 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
12992 call common_val_print.
12993 (ada_val_print_1): Update.
12994 (ada_value_print_1): New function.
12995 (ada_value_print_inner): Rewrite.
12996
fbf54e75
TT
129972020-03-13 Tom Tromey <tom@tromey.com>
12998
12999 * cp-valprint.c (cp_print_value_fields): Update.
13000 (cp_print_value): New function.
13001
64b653ca
TT
130022020-03-13 Tom Tromey <tom@tromey.com>
13003
13004 * m2-valprint.c (m2_value_print_inner): Use
13005 cp_print_value_fields.
13006 * cp-valprint.c (cp_print_value_fields): New function.
13007 * c-valprint.c (c_value_print_struct): New function.
13008 (c_value_print_inner): Use c_value_print_struct.
13009 * c-lang.h (cp_print_value_fields): Declare.
13010
6999f067
TT
130112020-03-13 Tom Tromey <tom@tromey.com>
13012
13013 * c-valprint.c (c_value_print_array): New function.
13014 (c_value_print_inner): Use it.
13015
ce80b8bd
TT
130162020-03-13 Tom Tromey <tom@tromey.com>
13017
13018 * c-valprint.c (c_value_print_memberptr): New function.
13019 (c_value_print_inner): Use it.
13020
2faac269
TT
130212020-03-13 Tom Tromey <tom@tromey.com>
13022
13023 * c-valprint.c (c_value_print_int): New function.
13024 (c_value_print_inner): Use it.
13025
da3e2c29
TT
130262020-03-13 Tom Tromey <tom@tromey.com>
13027
13028 * c-valprint.c (c_value_print_ptr): New function.
13029 (c_value_print_inner): Use it.
13030
50836231
TT
130312020-03-13 Tom Tromey <tom@tromey.com>
13032
13033 * c-valprint.c (c_value_print_inner): Rewrite.
13034
4f412b6e
TT
130352020-03-13 Tom Tromey <tom@tromey.com>
13036
13037 * valprint.c (generic_value_print_complex): New function.
13038 (generic_value_print): Use it.
13039
f5354008
TT
130402020-03-13 Tom Tromey <tom@tromey.com>
13041
13042 * valprint.c (generic_val_print_float): Don't call
13043 val_print_scalar_formatted.
13044 (generic_val_print, generic_value_print): Update.
13045
3eec3b05
TT
130462020-03-13 Tom Tromey <tom@tromey.com>
13047
13048 * valprint.c (generic_value_print_char): New function
13049 (generic_value_print): Use it.
13050
fdddfccb
TT
130512020-03-13 Tom Tromey <tom@tromey.com>
13052
13053 * valprint.c (generic_value_print_int): New function.
13054 (generic_value_print): Use it.
13055
6dde7521
TT
130562020-03-13 Tom Tromey <tom@tromey.com>
13057
13058 * valprint.c (generic_value_print_bool): New function.
13059 (generic_value_print): Use it.
13060
4112d2e6
TT
130612020-03-13 Tom Tromey <tom@tromey.com>
13062
13063 * valprint.c (generic_val_print_func): Simplify.
13064 (generic_val_print, generic_value_print): Update.
13065
65786af6
TT
130662020-03-13 Tom Tromey <tom@tromey.com>
13067
13068 * valprint.c (generic_val_print_flags): Remove.
13069 (generic_val_print, generic_value_print): Update.
13070 (val_print_type_code_flags): Add original_value parameter.
13071
40f3ce18
TT
130722020-03-13 Tom Tromey <tom@tromey.com>
13073
13074 * valprint.c (generic_val_print): Update.
13075 (generic_value_print): Update.
13076 * valprint.c (generic_val_print_enum): Don't call
13077 val_print_scalar_formatted.
13078
2a5b130b
TT
130792020-03-13 Tom Tromey <tom@tromey.com>
13080
13081 * valprint.c (generic_value_print): Call generic_value_print_ptr.
13082 * valprint.c (generic_value_print_ptr): New function.
13083
abc66ce9
TT
130842020-03-13 Tom Tromey <tom@tromey.com>
13085
13086 * valprint.c (generic_value_print): Rewrite.
13087
07a32858
TT
130882020-03-13 Tom Tromey <tom@tromey.com>
13089
13090 * p-valprint.c (pascal_object_print_value_fields)
13091 (pascal_object_print_value): New functions.
13092
64d64d3a
TT
130932020-03-13 Tom Tromey <tom@tromey.com>
13094
13095 * p-valprint.c (pascal_value_print_inner): Rewrite.
13096
6a95a1f5
TT
130972020-03-13 Tom Tromey <tom@tromey.com>
13098
13099 * f-valprint.c (f_value_print_innner): Rewrite.
13100
59fcdac6
TT
131012020-03-13 Tom Tromey <tom@tromey.com>
13102
13103 * m2-valprint.c (m2_print_unbounded_array): New overload.
13104 (m2_print_unbounded_array): Update.
13105 (m2_print_array_contents): Take a struct value.
13106 (m2_value_print_inner): Rewrite.
13107
d133c3e1
TT
131082020-03-13 Tom Tromey <tom@tromey.com>
13109
13110 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
13111 (d_value_print_inner): New function.
13112 * d-lang.h (d_value_print_inner): Declare.
13113 * d-lang.c (d_language_defn): Use d_value_print_inner.
13114
23b0f06b
TT
131152020-03-13 Tom Tromey <tom@tromey.com>
13116
13117 * go-valprint.c (go_value_print_inner): New function.
13118 * go-lang.h (go_value_print_inner): Declare.
13119 * go-lang.c (go_language_defn): Use go_value_print_inner.
13120
5f56f7cb
TT
131212020-03-13 Tom Tromey <tom@tromey.com>
13122
13123 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
13124 API.
13125 (rust_val_print): Rewrite.
13126 (rust_value_print_inner): New function, from rust_val_print.
13127 (rust_language_defn): Use rust_value_print_inner.
13128
26792ee0
TT
131292020-03-13 Tom Tromey <tom@tromey.com>
13130
13131 * ada-valprint.c (ada_value_print_inner): New function.
13132 * ada-lang.h (ada_value_print_inner): Declare.
13133 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
13134
24051bbe
TT
131352020-03-13 Tom Tromey <tom@tromey.com>
13136
13137 * f-valprint.c (f_value_print_innner): New function.
13138 * f-lang.h (f_value_print_innner): Declare.
13139 * f-lang.c (f_language_defn): Use f_value_print_innner.
13140
c0941be6
TT
131412020-03-13 Tom Tromey <tom@tromey.com>
13142
13143 * p-valprint.c (pascal_value_print_inner): New function.
13144 * p-lang.h (pascal_value_print_inner): Declare.
13145 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
13146
62c4663d
TT
131472020-03-13 Tom Tromey <tom@tromey.com>
13148
13149 * m2-valprint.c (m2_value_print_inner): New function.
13150 * m2-lang.h (m2_value_print_inner): Declare.
13151 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
13152
62182190
TT
131532020-03-13 Tom Tromey <tom@tromey.com>
13154
13155 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
13156 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
13157 * c-valprint.c (c_value_print_inner): New function.
13158 * c-lang.h (c_value_print_inner): Declare.
13159 * c-lang.c (c_language_defn, cplus_language_defn)
13160 (asm_language_defn, minimal_language_defn): Use
13161 c_value_print_inner.
13162
1e592a8a
TT
131632020-03-13 Tom Tromey <tom@tromey.com>
13164
13165 * p-valprint.c (pascal_object_print_value_fields): Now static.
13166 * p-lang.h (pascal_object_print_value_fields): Don't declare.
13167
7fe471e9
TT
131682020-03-13 Tom Tromey <tom@tromey.com>
13169
13170 * c-valprint.c (c_val_print_array): Simplify.
13171
d121c6ce
TT
131722020-03-13 Tom Tromey <tom@tromey.com>
13173
13174 * valprint.c (value_print_array_elements): New function.
13175 * valprint.h (value_print_array_elements): Declare.
13176
4dba70ee
TT
131772020-03-13 Tom Tromey <tom@tromey.com>
13178
13179 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
13180 * mips-tdep.c (mips_print_register): Use
13181 value_print_scalar_formatted.
13182
4f9ae810
TT
131832020-03-13 Tom Tromey <tom@tromey.com>
13184
13185 * valprint.h (value_print_scalar_formatted): Declare.
13186 * valprint.c (value_print_scalar_formatted): New function.
13187
156bfec9
TT
131882020-03-13 Tom Tromey <tom@tromey.com>
13189
13190 * valprint.h (generic_value_print): Declare.
13191 * valprint.c (generic_value_print): New function.
13192
2b4e573d
TT
131932020-03-13 Tom Tromey <tom@tromey.com>
13194
13195 * valprint.c (do_val_print): Call la_value_print_inner, if
13196 available.
13197 * rust-lang.c (rust_language_defn): Update.
13198 * p-lang.c (pascal_language_defn): Update.
13199 * opencl-lang.c (opencl_language_defn): Update.
13200 * objc-lang.c (objc_language_defn): Update.
13201 * m2-lang.c (m2_language_defn): Update.
13202 * language.h (struct language_defn) <la_value_print_inner>: New
13203 member.
13204 * language.c (unknown_language_defn, auto_language_defn): Update.
13205 * go-lang.c (go_language_defn): Update.
13206 * f-lang.c (f_language_defn): Update.
13207 * d-lang.c (d_language_defn): Update.
13208 * c-lang.c (c_language_defn, cplus_language_defn)
13209 (asm_language_defn, minimal_language_defn): Update.
13210 * ada-lang.c (ada_language_defn): Update.
13211
a1f6a07c
TT
132122020-03-13 Tom Tromey <tom@tromey.com>
13213
13214 * c-valprint.c (c_value_print): Use common_val_print.
13215
410cf315
TT
132162020-03-13 Tom Tromey <tom@tromey.com>
13217
13218 * cp-valprint.c (cp_print_static_field): Use common_val_print.
13219
72a45c93
TT
132202020-03-13 Tom Tromey <tom@tromey.com>
13221
13222 * f-valprint.c (f77_print_array_1, f_val_print): Use
13223 common_val_print.
13224
040f66bd
TT
132252020-03-13 Tom Tromey <tom@tromey.com>
13226
13227 * riscv-tdep.c (riscv_print_one_register_info): Use
13228 common_val_print.
13229
a6e05a6c
TT
132302020-03-13 Tom Tromey <tom@tromey.com>
13231
13232 * mi/mi-main.c (output_register): Use common_val_print.
13233
3444c526
TT
132342020-03-13 Tom Tromey <tom@tromey.com>
13235
13236 * infcmd.c (default_print_one_register_info): Use
13237 common_val_print.
13238
c2a44efe
TT
132392020-03-13 Tom Tromey <tom@tromey.com>
13240
13241 * valprint.h (common_val_print_checked): Declare.
13242 * valprint.c (common_val_print_checked): New function.
13243 * stack.c (print_frame_arg): Use common_val_print_checked.
13244
b0c26e99
TT
132452020-03-13 Tom Tromey <tom@tromey.com>
13246
13247 * valprint.c (do_val_print): New function, from val_print.
13248 (val_print): Use do_val_print.
13249 (common_val_print): Use do_val_print.
13250
ce3acbe9
TT
132512020-03-13 Tom Tromey <tom@tromey.com>
13252
13253 * valprint.c (value_print): Use scoped_value_mark.
13254
96c7f873
TV
132552020-03-13 Tom de Vries <tdevries@suse.de>
13256
13257 PR symtab/25646
13258 * psymtab.c (partial_symtab::partial_symtab): Don't set
13259 globals_offset and statics_offset. Push element onto
13260 current_global_psymbols and current_static_psymbols stacks.
13261 (concat): New function.
13262 (end_psymtab_common): Set globals_offset and statics_offset. Pop
13263 element from current_global_psymbols and current_static_psymbols
13264 stacks. Concat popped elements to global_psymbols and
13265 static_symbols.
13266 (add_psymbol_to_list): Use current_global_psymbols and
13267 current_static_psymbols stacks.
13268 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
13269 current_static_psymbols fields.
13270
6ba0a321
CB
132712020-03-12 Christian Biesinger <cbiesinger@google.com>
13272
13273 * corelow.c (sniff_core_bfd): Remove.
13274 (class core_target) <m_core_vec>: Remove.
13275 (core_target::core_target): Update.
13276 (core_file_fns): Remove.
13277 (deprecated_add_core_fns): Remove.
13278 (default_core_sniffer): Remove.
13279 (sniff_core_bfd): Remove.
13280 (default_check_format): Remove.
13281 (gdb_check_format): Remove.
13282 (core_target_open): Update.
13283 (core_target::get_core_register_section): Update.
13284 (get_core_registers_cb): Update.
13285 (core_target::fetch_registers): Update.
13286 * gdbcore.h (struct core_fns): Remove.
13287 (deprecated_add_core_fns): Remove.
13288 (default_core_sniffer): Remove.
13289 (default_check_format): Remove.
13290
227031b2
TT
132912020-03-12 Tom Tromey <tom@tromey.com>
13292
13293 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
13294 CORE_ADDR.
13295 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
13296
53807e9f
TT
132972020-03-12 Tom Tromey <tom@tromey.com>
13298
13299 * remote.c (remote_target::download_tracepoint)
13300 (remote_target::enable_tracepoint)
13301 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
13302 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
13303 sprintf_vma.
13304
64f25102
TT
133052020-03-12 Tom Tromey <tom@tromey.com>
13306
13307 * symfile-mem.c: Update CORE_ADDR size assert.
13308
272cd5a3
SM
133092020-03-12 Simon Marchi <simon.marchi@efficios.com>
13310
13311 * selftest.m4: Move to gdbsupport/.
13312 * acinclude.m4: Update path to selftest.m4.
13313
74cd3f9d
SM
133142020-03-12 Simon Marchi <simon.marchi@efficios.com>
13315
13316 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
13317 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
13318 gdbarch-selfselftests.c and selftest-arch.c.
13319 (SUBDIR_UNITTESTS_OBS): Rename to...
13320 (SELFTESTS_OBS): ... this.
13321 (COMMON_SFILES): Remove disasm-selftests.c and
13322 gdbarch-selftests.c.
13323 * configure.ac: Don't add selftest-arch.{c,o} to
13324 CONFIG_{SRCS,OBS}.
13325 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
13326 preprocessor conditions.
13327
db6878ac
SM
133282020-03-12 Simon Marchi <simon.marchi@efficios.com>
13329
13330 * configure.ac: Don't source bfd/development.sh.
13331 * selftest.m4: Modify comment.
13332 * configure: Re-generate.
13333
4d696a5c
SM
133342020-03-12 Simon Marchi <simon.marchi@efficios.com>
13335
13336 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
13337 not "true" or "false".
13338 * configure: Re-generate.
13339
8dd8e1c7
CB
133402020-03-12 Christian Biesinger <cbiesinger@google.com>
13341
13342 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
13343 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
13344 renamed to arm_nbsd_supply_gregset.
13345 (fetch_register): Update to call arm_nbsd_supply_gregset.
13346 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
13347 (arm_netbsd_nat_target::fetch_registers): Update.
13348 (fetch_elfcore_registers): Removed.
13349 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
13350 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
13351 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
13352 not require NetBSD system headers.
13353 (arm_nbsd_regset): New struct.
13354 (arm_nbsd_iterate_over_regset_sections): New function.
13355 (arm_netbsd_init_abi_common): Updated to call
13356 set_gdbarch_iterate_over_regset_sections.
13357 * arm-nbsd-tdep.h: New file.
13358
dd69bf7a
KB
133592020-03-11 Kevin Buettner <kevinb@redhat.com>
13360
13361 * symtab.c (find_pc_sect_line): Add check which prevents infinite
13362 recursion.
13363
a0761e34
SM
133642020-03-11 Simon Marchi <simon.marchi@efficios.com>
13365
13366 * configure: Re-generate.
13367
e7a82140
TT
133682020-03-11 Tom Tromey <tromey@adacore.com>
13369
13370 * ada-typeprint.c (print_choices): Fix comment.
13371
dcc050c8
AB
133722020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
13373
13374 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
13375 previous item in the list, when the list has no items.
13376
1c33af77
TV
133772020-03-11 Tom de Vries <tdevries@suse.de>
13378
13379 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
13380 PROP_LOCLIST handling code.
13381
8c95582d
AB
133822020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
13383
13384 * buildsym-legacy.c (record_line): Pass extra parameter to
13385 record_line.
13386 * buildsym.c (buildsym_compunit::record_line): Take an extra
13387 parameter, reduce duplication in the line table, and record the
13388 is_stmt flag in the line table.
13389 * buildsym.h (buildsym_compunit::record_line): Add extra
13390 parameter.
13391 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
13392 non-statement lines.
13393 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
13394 this to the symtab builder.
13395 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
13396 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
13397 through to dwarf_record_line_1.
13398 * infrun.c (process_event_stop_test): When stepping, don't stop at
13399 a non-statement instruction, and only refresh the step info when
13400 we land in the middle of a line's range. Also add an extra
13401 comment.
13402 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
13403 field.
13404 * record-btrace.c (btrace_find_line_range): Only record lines
13405 marked as is-statement.
13406 * stack.c (frame_show_address): Show the frame address if we are
13407 in a non-statement sal.
13408 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
13409 (maintenance_print_one_line_table): Print a header for the is_stmt
13410 column, and include is_stmt information in the output.
13411 * symtab.c (find_pc_sect_line): Find lines marked as statements in
13412 preference to non-statements.
13413 (find_pcs_for_symtab_line): Prefer is-statement entries.
13414 (find_line_common): Likewise.
13415 * symtab.h (struct linetable_entry): Add is_stmt field.
13416 (struct symtab_and_line): Likewise.
13417 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
13418 arranging the line table.
13419
e4003a34
TV
134202020-03-07 Tom de Vries <tdevries@suse.de>
13421
13422 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
13423 DIE.
13424
e8932576
TT
134252020-03-07 Tom Tromey <tom@tromey.com>
13426
13427 * valops.c (value_literal_complex): Remove obsolete comment.
13428 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
13429 comment.
13430
29734269
SM
134312020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
13432
13433 * infrun.h: Forward-declare thread_info.
13434 (set_step_info): Add thread_info parameter, add doc.
13435 * infrun.c (set_step_info): Add thread_info parameter, move doc
13436 to header.
13437 * infrun.c (process_event_stop_test): Pass thread to
13438 set_step_info call.
13439 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
13440 set_step_info.
13441 (prepare_one_step): Add thread_info parameter, pass it to
13442 set_step_frame and prepare_one_step (recursive) call.
13443 (step_1): Pass thread to prepare_one_step call.
13444 (step_command_fsm::should_stop): Pass thread to
13445 prepare_one_step.
13446 (until_next_fsm): Pass thread to set_step_frame call.
13447 (finish_command): Pass thread to set_step_info call.
13448
b7d64b29
HD
134492020-03-06 Hannes Domani <ssbssa@yahoo.de>
13450
13451 * windows-tdep.c (windows_solib_create_inferior_hook):
13452 Check if inferior is running.
13453
09f2921c
TV
134542020-03-06 Tom de Vries <tdevries@suse.de>
13455
13456 * NEWS: Fix "the the".
13457 * ctfread.c: Same.
13458
fd760e79
TV
134592020-03-06 Tom de Vries <tdevries@suse.de>
13460
13461 * psymtab.c (psymtab_to_symtab): Don't print "done.".
13462
20ea4a60
AB
134632020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13464
13465 * .dir-locals.el: Add a comment referencing the other copies of
13466 this file.
13467
0afbabf0
JB
134682020-03-05 John Baldwin <jhb@FreeBSD.org>
13469
13470 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
13471 psargs.
13472
842806cb
TBA
134732020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13474
13475 * .gitattributes: New file.
13476
be1e3d3e
TT
134772020-03-04 Tom Tromey <tom@tromey.com>
13478
13479 * symmisc.c (print_symbol_bcache_statistics)
13480 (print_objfile_statistics): Update.
13481 * symfile.c (allocate_symtab): Use intern.
13482 * psymtab.c (partial_symtab::partial_symtab): Use intern.
13483 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
13484 macro_cache>: Remove.
13485 <string_cache>: New member.
13486 (struct objfile) <intern>: New methods.
13487 * elfread.c (elf_symtab_read): Use intern.
13488 * dwarf2/read.c (fixup_go_packaging): Intern package name.
13489 (dwarf2_compute_name, dwarf2_physname)
13490 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
13491 names.
13492 (guess_partial_die_structure_name): Update.
13493 (partial_die_info::fixup): Intern name.
13494 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
13495 name.
13496 (dwarf2_name): Intern name. Update.
13497 * buildsym.c (buildsym_compunit::get_macro_table): Use
13498 string_cache.
13499
4e7625fd
TT
135002020-03-04 Tom Tromey <tom@tromey.com>
13501
13502 * jit.c (bfd_open_from_target_memory): Make "target" const.
13503 * corefile.c (gnutarget): Now const.
13504 * gdbcore.h (gnutarget): Now const.
13505
46f9f931
HD
135062020-03-04 Hannes Domani <ssbssa@yahoo.de>
13507
13508 * NEWS: Mention support for WOW64 processes.
13509 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
13510 (amd64_windows_segment_register_p): Remove static.
13511 (_initialize_amd64_windows_nat): Update.
13512 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
13513 * i386-windows-nat.c (context_offset): Update.
13514 (i386_mappings): Rename and remove static.
13515 (i386_windows_segment_register_p): Remove static.
13516 (_initialize_i386_windows_nat): Update.
13517 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
13518 (STATUS_WX86_SINGLE_STEP): New macro.
13519 (EnumProcessModulesEx): New macro.
13520 (Wow64SuspendThread): New macro.
13521 (Wow64GetThreadContext): New macro.
13522 (Wow64SetThreadContext): New macro.
13523 (Wow64GetThreadSelectorEntry): New macro.
13524 (windows_set_context_register_offsets): Add static.
13525 (windows_set_segment_register_p): Likewise.
13526 (windows_add_thread): Adapt for WOW64 processes.
13527 (windows_fetch_one_register): Likewise.
13528 (windows_nat_target::fetch_registers): Likewise.
13529 (windows_store_one_register): Likewise.
13530 (display_selector): Likewise.
13531 (display_selectors): Likewise.
13532 (handle_exception): Likewise.
13533 (windows_continue): Likewise.
13534 (windows_nat_target::resume): Likewise.
13535 (windows_add_all_dlls): Likewise.
13536 (do_initial_windows_stuff): Likewise.
13537 (windows_nat_target::attach): Likewise.
13538 (windows_get_exec_module_filename): Likewise.
13539 (windows_nat_target::create_inferior): Likewise.
13540 (windows_xfer_siginfo): Likewise.
13541 (_initialize_loadable): Initialize Wow64SuspendThread,
13542 Wow64GetThreadContext, Wow64SetThreadContext,
13543 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
13544 * windows-nat.h (windows_set_context_register_offsets):
13545 Remove declaration.
13546 (windows_set_segment_register_p): Likewise.
13547 (i386_windows_segment_register_p): Add declaration.
13548 (amd64_windows_segment_register_p): Likewise.
13549
440cf44e
LM
135502020-03-04 Luis Machado <luis.machado@linaro.org>
13551
13552 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
13553 in "info registers" for AArch64/ARM.
13554
13555 The change caused "info registers" to not print GPR's.
13556
13557 gdb/ChangeLog:
13558
13559 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
13560
13561 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13562 when reg->group is empty and reggroup is not.
13563
1009d92f
TT
135642020-03-03 Tom Tromey <tromey@adacore.com>
13565
13566 * dwarf2/frame.c (struct dwarf2_frame_cache)
13567 <checked_tailcall_bottom, entry_cfa_sp_offset,
13568 entry_cfa_sp_offset_p>: Remove members.
13569 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
13570 (dwarf2_frame_prev_register): Don't call
13571 dwarf2_tailcall_sniffer_first.
13572 (dwarf2_append_unwinders): Don't append tailcall unwinder.
13573 * frame-unwind.c (add_unwinder): New fuction.
13574 (frame_unwind_init): Use it. Add tailcall unwinder.
13575
5e5d66b6
AB
135762020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
13577 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13578
13579 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
13580 value should be printed as true.
13581
584cf46d
HD
135822020-03-03 Hannes Domani <ssbssa@yahoo.de>
13583
13584 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
13585 (windows_init_abi): Set and use windows_so_ops.
13586
7b973adc
SDJ
135872020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
13588
13589 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
13590 when verifying if dealing with a convenience variable.
13591
bb7b70ab
LM
135922020-03-03 Luis Machado <luis.machado@linaro.org>
13593
13594 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
13595
9822cb57
SM
135962020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13597
13598 * infrun.c (gdbarch_supports_displaced_stepping): New.
13599 (use_displaced_stepping): Break up conditions in smaller pieces.
13600 Use gdbarch_supports_displaced_stepping.
13601 (displaced_step_prepare_throw): Use
13602 gdbarch_supports_displaced_stepping.
13603
63e163f2
AB
136042020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13605
13606 * NEWS: Mention new behaviour of the history filename.
13607 * top.c (write_history_p): Add comment.
13608 (show_write_history_p): Add header comment, give a different
13609 message when history writing is on, but the history filename is
13610 empty.
13611 (history_filename): Add comment.
13612 (history_filename_empty): New function.
13613 (show_history_filename): Add header comment, give a different
13614 message when the filename is empty.
13615 (init_history): Compare history_filename against nullptr, and only
13616 read history if the filename is not empty.
13617 (set_history_filename): Add header comment, and only make
13618 non-empty filenames absolute.
13619 (init_main): Make the filename argument to 'set history filename'
13620 optional.
13621
81b86b97
CB
136222020-03-02 Christian Biesinger <cbiesinger@google.com>
13623
13624 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
13625 (arm_supply_vfpregset): ...this, and update to use VFP registers.
13626 (fetch_fp_register): Update.
13627 (fetch_fp_regs): Update.
13628 (store_fp_register): Update.
13629 (store_fp_regs): Update.
13630 (arm_netbsd_nat_target::read_description): New function.
13631 (fetch_elfcore_registers): Update.
13632
24ed6739
AB
136332020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13634
13635 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
13636 general_thread if the stop reply is missing a thread-id.
13637 (remote_target::process_stop_reply): Use the first non-exited
13638 thread if the target didn't pass a thread-id.
13639 * infrun.c (do_target_wait): Move call to
13640 switch_to_inferior_no_thread to ....
13641 (do_target_wait_1): ... here.
13642
a84bb2a0
JT
136432020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
13644
13645 * debuginfod-support.c: Include defs.h first.
13646
658dadf0
TV
136472020-02-28 Tom de Vries <tdevries@suse.de>
13648
13649 * symfile.c (set_initial_language): Use default language for lookup.
13650
4ebe4877
SM
136512020-02-28 Simon Marchi <simon.marchi@efficios.com>
13652
13653 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
13654 reader variable, pass `this` to read_cutu_die_from_dwo.
13655
e5da1139
AM
136562020-02-27 Aaron Merey <amerey@redhat.com>
13657
13658 * source.c (open_source_file): Check for nullptr when computing
13659 srcpath.
13660
317f7127
TT
136612020-02-27 Tom Tromey <tromey@adacore.com>
13662
13663 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
13664 member.
13665 (dwarf2_add_field): Don't update nfields.
13666 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
13667
3104d9ee
AB
136682020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13669
13670 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
13671 abs.
13672
b83470bf
TT
136732020-02-26 Tom Tromey <tom@tromey.com>
13674
13675 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
13676 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
13677 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
13678 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
13679 per_cu_data.
13680
edfe0a0c
TT
136812020-02-26 Tom Tromey <tom@tromey.com>
13682
13683 * dwarf2/index-write.c (psym_index_map): Change type.
13684 (add_address_entry_worker, write_one_signatured_type)
13685 (recursively_count_psymbols, recursively_write_psymbols)
13686 (class debug_names, psyms_seen_size, write_gdbindex)
13687 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
13688
0d79cdc4
AM
136892020-02-26 Aaron Merey <amerey@redhat.com>
13690
13691 * Makefile.in: Handle optional debuginfod support.
13692 * NEWS: Update.
13693 * README: Add --with-debuginfod summary.
13694 * config.in: Regenerate.
13695 * configure: Regenerate.
13696 * configure.ac: Handle optional debuginfod support.
13697 * debuginfod-support.c: debuginfod helper functions.
13698 * debuginfod-support.h: Ditto.
13699 * doc/gdb.texinfo: Add --with-debuginfod to configure options
13700 summary.
13701 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
13702 when a dwz file cannot be found.
13703 * elfread.c (elf_symfile_read): Query debuginfod servers when a
13704 debuginfo file cannot be found.
13705 * source.c (open_source_file): Query debuginfod servers when a
13706 source file cannot be found.
13707 * top.c (print_gdb_configuration): Include
13708 --{with,without}-debuginfod in the output.
13709
b65ce565
JG
137102020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
13711
13712 * thread.c (thr_try_catch_cmd): Print thread name.
13713
d4c9a4f8
SM
137142020-02-26 Simon Marchi <simon.marchi@efficios.com>
13715
13716 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
13717 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13718 dwarf2_fetch_die_type_sect_off): Move to...
13719 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
13720 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13721 dwarf2_fetch_die_type_sect_off): ... here.
13722 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
13723 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13724 dwarf2_fetch_die_type_sect_off): Move doc to header file.
13725
0dce4280
TV
137262020-02-26 Tom de Vries <tdevries@suse.de>
13727
13728 PR gdb/25603
13729 * symfile.c (set_initial_language): Exit-early if
13730 language_mode == language_mode_manual.
13731
450a1bfc
SM
137322020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13733
13734 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
13735 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
13736 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
13737
9e80cfa1
AB
137382020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
13739
13740 * gdbtypes.c (create_array_type_with_stride): Handle negative
13741 array strides.
13742 * valarith.c (value_subscripted_rvalue): Likewise.
13743
09624f1f
LM
137442020-02-25 Luis Machado <luis.machado@linaro.org>
13745
13746 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
13747
8cb5117c
SM
137482020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13749
13750 * loc.h (dwarf2_get_die_type): Move to...
13751 * read.h (dwarf2_get_die_type): ... here.
13752 * read.c (dwarf2_get_die_type): Move doc to header.
13753
c325c44e
JB
137542020-02-25 Joel Brobecker <brobecker@adacore.com>
13755
13756 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
13757 'gnulib/Makefile.in' to the list.
13758
4ac93832
TT
137592020-02-24 Tom Tromey <tom@tromey.com>
13760
13761 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
13762 Remove.
13763 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
13764 XOBNEWVEC.
13765
197400e8
TT
137662020-02-24 Tom Tromey <tom@tromey.com>
13767
13768 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
13769 New method.
13770 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
13771 (dw2_do_instantiate_symtab, dw2_get_file_names)
13772 (build_type_psymtab_dependencies, load_full_type_unit): Update.
13773
76935768
TT
137742020-02-24 Tom Tromey <tom@tromey.com>
13775
13776 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
13777 make_scoped_restore.
13778 (dwarf2_psymtab::read_symtab): Don't clear
13779 reading_partial_symbols.
13780
a88ef40d
TV
137812020-02-24 Tom de Vries <tdevries@suse.de>
13782
13783 PR gdb/25592
13784 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
13785
c9af6521
TV
137862020-02-24 Tom de Vries <tdevries@suse.de>
13787
13788 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
13789 commands layout next/prev/regs.
13790
5707a07a
TT
137912020-02-22 Tom Tromey <tom@tromey.com>
13792
13793 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
13794 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
13795
3b0fb49e
TT
137962020-02-22 Tom Tromey <tom@tromey.com>
13797
13798 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
13799
283be8bf
TT
138002020-02-22 Tom Tromey <tom@tromey.com>
13801
13802 * tui/tui-win.c (_initialize_tui_win): Add usage text.
13803 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
13804 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
13805 * tui/tui.c (_initialize_tui): Add usage text.
13806
ca793b96
TT
138072020-02-22 Tom Tromey <tom@tromey.com>
13808
13809 * tui/tui-win.c (tui_set_focus_command)
13810 (tui_set_win_height_command): Use error_no_arg.
13811 (_initialize_tui_win): Update help text.
13812 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
13813
432b5c40
TT
138142020-02-22 Tom Tromey <tom@tromey.com>
13815
13816 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
13817 * tui/tui-disasm.h (struct tui_disasm_window)
13818 <display_start_addr>: Declare.
13819 * tui/tui-source.h (struct tui_source_window)
13820 <display_start_addr>: Declare.
13821 * tui/tui-winsource.h (struct tui_source_window_base)
13822 <show_source_line, display_start_addr>: New methods.
13823 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
13824 Rename and move to protected section.
13825 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
13826 (tui_source_window_base::do_erase_source_content): Update.
13827 (tui_source_window_base::show_source_line): Now a method.
13828 (tui_source_window_base::show_source_content)
13829 (tui_source_window_base::tui_source_window_base)
13830 (tui_source_window_base::rerender)
13831 (tui_source_window_base::refill)
13832 (tui_source_window_base::do_scroll_horizontal)
13833 (tui_source_window_base::set_is_exec_point_at)
13834 (tui_source_window_base::update_breakpoint_info)
13835 (tui_source_window_base::update_exec_info): Update.
13836 * tui/tui-source.c (tui_source_window::set_contents)
13837 (tui_source_window::showing_source_p)
13838 (tui_source_window::do_scroll_vertical)
13839 (tui_source_window::location_matches_p)
13840 (tui_source_window::line_is_displayed): Update.
13841 (tui_source_window::display_start_addr): New method.
13842 * tui/tui-disasm.c (tui_disasm_window::set_contents)
13843 (tui_disasm_window::do_scroll_vertical)
13844 (tui_disasm_window::location_matches_p): Update.
13845 (tui_disasm_window::display_start_addr): New method.
13846
01b1af32
TT
138472020-02-22 Tom Tromey <tom@tromey.com>
13848
13849 * NEWS: Add entry for gdb.register_window_type.
13850 * tui/tui-layout.h (window_factory): New typedef.
13851 (tui_register_window): Declare.
13852 * tui/tui-layout.c (saved_tui_windows): New global.
13853 (tui_apply_current_layout): Use it.
13854 (tui_register_window): New function.
13855 * python/python.c (do_start_initialization): Call
13856 gdbpy_initialize_tui.
13857 (python_GdbMethods): Add "register_window_type" function.
13858 * python/python-internal.h (gdbpy_register_tui_window)
13859 (gdbpy_initialize_tui): Declare.
13860 * python/py-tui.c: New file.
13861 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
13862
fc96d20b
TT
138632020-02-22 Tom Tromey <tom@tromey.com>
13864
13865 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
13866
935c78c0
TT
138672020-02-22 Tom Tromey <tom@tromey.com>
13868
13869 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
13870 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
13871 * tui/tui-data.c (tui_set_win_with_focus): Remove.
13872 (tui_set_win_focus_to): Move from tui-win.c.
13873
0240c8f1
TT
138742020-02-22 Tom Tromey <tom@tromey.com>
13875
13876 * tui/tui-layout.c (make_standard_window, get_locator_window): New
13877 functions.
13878 (known_window_types): New global.
13879 (tui_get_window_by_name): Reimplement.
13880 (initialize_known_windows): New function.
13881 (validate_window_name): Rewrite.
13882 (_initialize_tui_layout): Call initialize_known_windows.
13883
fdb01f0c
TT
138842020-02-22 Tom Tromey <tom@tromey.com>
13885
13886 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
13887 Remove constants.
13888 * tui/tui-winsource.h (struct tui_source_window_base)
13889 <tui_source_window_base>: Remove parameter.
13890 * tui/tui-winsource.c
13891 (tui_source_window_base::tui_source_window_base): Remove
13892 parameter.
13893 (tui_source_window_base::refill): Update.
13894 * tui/tui-stack.h (struct tui_locator_window)
13895 <tui_locator_window>: Update.
13896 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
13897 Default the constructor.
13898 * tui/tui-regs.h (struct tui_data_item_window)
13899 <tui_data_item_window>: Default the constructor.
13900 (struct tui_data_window) <tui_data_window>: Likewise.
13901 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
13902 Default the constructor.
13903 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
13904 Default the constructor.
13905 <type>: Remove.
13906 (struct tui_win_info) <tui_win_info>: Default the constructor.
13907 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
13908 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
13909 Default the constructor.
13910
865a5aec
TT
139112020-02-22 Tom Tromey <tom@tromey.com>
13912
13913 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
13914 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
13915 * tui/tui-win.c (tui_resize_all): Don't call
13916 tui_delete_invisible_windows.
13917 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
13918 done.
13919 (tui_set_layout): Update.
13920 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
13921 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
13922 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
13923
e098d18c
TT
139242020-02-22 Tom Tromey <tom@tromey.com>
13925
13926 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
13927 correctly.
13928
eb9c8874
TT
139292020-02-22 Tom Tromey <tom@tromey.com>
13930
13931 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
13932
7eed1a8e
TT
139332020-02-22 Tom Tromey <tom@tromey.com>
13934
13935 * tui/tui-winsource.h (struct tui_source_window_iterator)
13936 <inner_iterator>: New etytypedef.
13937 <tui_source_window_iterator>: Take "end" parameter.
13938 <tui_source_window_iterator>: Take iterator.
13939 <operator*, advance>: Update.
13940 <m_iter>: Change type.
13941 <m_end>: New field.
13942 (struct tui_source_windows) <begin, end>: Update.
13943 * tui/tui-layout.c (tui_windows): New global.
13944 (tui_apply_current_layout): Clear tui_windows.
13945 (tui_layout_window::apply): Update tui_windows.
13946 * tui/tui-data.h (tui_windows): Declare.
13947 (all_tui_windows): Now inline function.
13948 (class tui_window_iterator, struct all_tui_windows): Remove.
13949
7c043ba6
TT
139502020-02-22 Tom Tromey <tom@tromey.com>
13951
13952 PR tui/17850:
13953 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
13954 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
13955 "height" argument.
13956 (class tui_layout_window) <get_sizes>: Likewise.
13957 (class tui_layout_split) <tui_layout_split>: Add "vertical"
13958 argument.
13959 <get_sizes>: Add "height" argument.
13960 <m_vertical>: New field.
13961 * tui/tui-layout.c (tui_layout_split::clone): Update.
13962 (tui_layout_split::get_sizes): Add "height" argument.
13963 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
13964 (tui_new_layout_command): Parse "-horizontal".
13965 (_initialize_tui_layout): Update help string.
13966 (tui_layout_split::specification): Add "-horizontal" when needed.
13967 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
13968 argument.
13969 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
13970 New methods.
13971
6bc56648
TT
139722020-02-22 Tom Tromey <tom@tromey.com>
13973
13974 * tui/tui-layout.h (enum tui_adjust_result): New.
13975 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
13976 (class tui_layout_window) <adjust_size>: Return
13977 tui_adjust_result. Rewrite.
13978 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
13979 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
13980
c22fef7e
TT
139812020-02-22 Tom Tromey <tom@tromey.com>
13982
13983 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
13984 parameter and return types.
13985 (class tui_layout_base) <specification>: Add "depth".
13986 (class tui_layout_window) <specification>: Add "depth".
13987 (class tui_layout_split) <specification>: Add "depth".
13988 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
13989 and return types.
13990 (tui_new_layout_command): Parse sub-layouts.
13991 (_initialize_tui_layout): Update help string.
13992 (tui_layout_window::specification): Add "depth".
13993 (add_layout_command): Update.
13994
ee325b61
TT
139952020-02-22 Tom Tromey <tom@tromey.com>
13996
13997 * NEWS: Add "tui new-layout" item.
13998 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
13999 Add new-layout command to help text.
14000 (validate_window_name): New function.
14001 (tui_new_layout_command): New function.
14002 (_initialize_tui_layout): Register "new-layout".
14003 (tui_layout_window::specification): New method.
14004 (tui_layout_window::specification): New method.
14005 * tui/tui-layout.h (class tui_layout_base) <specification>: New
14006 method.
14007 (class tui_layout_window) <specification>: New method.
14008 (class tui_layout_split) <specification>: New method.
14009
416eb92d
TT
140102020-02-22 Tom Tromey <tom@tromey.com>
14011
14012 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
14013 * tui/tui-win.c (window_name_completer): Update comment.
14014 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
14015 Declare method.
14016 (class tui_layout_window) <replace_window>: Likewise.
14017 (class tui_layout_split) <replace_window>: Likewise.
14018 (tui_set_layout): Don't declare.
14019 (tui_set_initial_layout): Declare function.
14020 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
14021 (asm_regs_layout): New globals.
14022 (tui_current_layout, show_layout): Remove.
14023 (tui_set_layout, tui_add_win_to_layout): Rewrite.
14024 (find_layout, tui_apply_layout): New function.
14025 (layout_completer): Remove.
14026 (tui_next_layout): Reimplement.
14027 (tui_next_layout_command): New function.
14028 (tui_set_initial_layout, tui_prev_layout_command): New functions.
14029 (tui_regs_layout): Reimplement.
14030 (tui_regs_layout_command): New function.
14031 (extract_display_start_addr): Rewrite.
14032 (next_layout, prev_layout): Remove.
14033 (tui_layout_window::replace_window): New method.
14034 (tui_layout_split::replace_window): New method.
14035 (destroy_layout): New function.
14036 (layout_list): New global.
14037 (add_layout_command): New function.
14038 (initialize_layouts): Update.
14039 (tui_layout_command): New function.
14040 (_initialize_tui_layout): Install "layout" commands.
14041 * tui/tui-data.h (enum tui_layout_type): Remove.
14042 (tui_current_layout): Don't declare.
14043
0dbc2fc7
TT
140442020-02-22 Tom Tromey <tom@tromey.com>
14045
14046 * tui/tui-regs.c (tui_reg_layout): Remove.
14047 (tui_reg_command): Use tui_regs_layout.
14048 * tui/tui-layout.h (tui_reg_command): Declare.
14049 * tui/tui-layout.c (tui_reg_command): New function.
14050
5afe342e
TT
140512020-02-22 Tom Tromey <tom@tromey.com>
14052
14053 * tui/tui.c (tui_rl_delete_other_windows): Call
14054 tui_remove_some_windows.
14055 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
14056 Declare method.
14057 (class tui_layout_window) <remove_windows>: New method.
14058 (class tui_layout_split) <remove_windows>: Declare.
14059 (tui_remove_some_windows): Declare.
14060 * tui/tui-layout.c (tui_remove_some_windows): New function.
14061 (tui_layout_split::remove_windows): New method.
14062
427326a8
TT
140632020-02-22 Tom Tromey <tom@tromey.com>
14064
14065 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
14066 * tui/tui-layout.h (tui_next_layout): Declare.
14067 * tui/tui-layout.c (tui_next_layout): New function.
14068
3fe12b6d
TT
140692020-02-22 Tom Tromey <tom@tromey.com>
14070
14071 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
14072 correct coordinates.
14073
59b8b5d2
TT
140742020-02-22 Tom Tromey <tom@tromey.com>
14075
14076 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
14077 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
14078 DATA_WIN case.
14079
2a3d458b
TT
140802020-02-22 Tom Tromey <tom@tromey.com>
14081
14082 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
14083 TUI_DISASM_WIN, not tui_win_list.
14084
3f0cbb04
TT
140852020-02-22 Tom Tromey <tom@tromey.com>
14086
14087 * valprint.c (generic_val_print_enum_1)
14088 (val_print_type_code_flags): Style member names.
14089 * rust-lang.c (val_print_struct, rust_print_enum)
14090 (rust_print_struct_def, rust_internal_print_type): Style member
14091 names.
14092 * p-valprint.c (pascal_object_print_value_fields): Style member
14093 names. Only call fprintf_symbol_filtered for static members.
14094 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
14095 * f-valprint.c (f_val_print): Style member names.
14096 * f-typeprint.c (f_type_print_base): Style member names.
14097 * cp-valprint.c (cp_print_value_fields): Style member names. Only
14098 call fprintf_symbol_filtered for static members.
14099 (cp_print_class_member): Style member names.
14100 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
14101 member names.
14102 * ada-valprint.c (ada_print_scalar): Style enum names.
14103 (ada_val_print_enum): Likewise.
14104 * ada-typeprint.c (print_enum_type): Style enum names.
14105
d4d947ae
TT
141062020-02-21 Tom Tromey <tom@tromey.com>
14107
14108 * psympriv.h (struct partial_symtab): Update comment.
14109
e94e944b
TT
141102020-02-21 Tom Tromey <tromey@adacore.com>
14111
14112 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
14113 type is CORE_ADDR.
14114
1eb73179
TV
141152020-02-21 Tom de Vries <tdevries@suse.de>
14116
14117 PR gdb/25534
14118 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
14119 if dependencies[i]->user != NULL.
14120
4f180d53
AT
141212020-02-21 Ali Tamur <tamur@google.com>
14122
14123 * dwarf2/read.c (dwarf2_name): Add null check.
14124
22b6cd70
TT
141252020-02-20 Tom Tromey <tom@tromey.com>
14126
14127 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
14128 ">=", in binary search.
14129 (dwarf2_find_containing_comp_unit): New overload.
14130 (run_test): New self-test.
14131 (_initialize_dwarf2_read): Register new test.
14132
bd0cf5a6
NC
141332020-02-20 Nelson Chu <nelson.chu@sifive.com>
14134
14135 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
14136 * riscv-tdep.h: Likewise.
14137 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
14138 rv32-only CSR.
14139 * features/riscv/64bit-csr.xml: Regenerated.
14140
3f702acd
SDJ
141412020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
14142 Tom Tromey <tom@tromey.com>
14143
14144 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
14145 of 'fputc_unfiltered'.
14146 (putchar_unfiltered): Call 'fputc_unfiltered'.
14147 (fputc_unfiltered): Call 'fputs_unfiltered'.
14148
d13c7322
AB
141492020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
14150
14151 * config.in: Regenerate.
14152 * configure: Regenerate.
14153 * configure.ac: Add --with-python-libdir option.
14154 * main.c: Use WITH_PYTHON_LIBDIR.
14155
869d8950
TT
141562020-02-19 Tom Tromey <tom@tromey.com>
14157
14158 * symtab.c (general_symbol_info::compute_and_set_names): Use
14159 obstack_strndup. Simplify call to symbol_set_demangled_name.
14160
298e9637
SM
141612020-02-19 Simon Marchi <simon.marchi@efficios.com>
14162
14163 * dwarf2/read.c (allocate_signatured_type_table,
14164 allocate_dwo_unit_table, allocate_type_unit_groups_table,
14165 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
14166 Remove objfile parameter, update all callers.
14167
08410482
DE
141682020-02-19 Doug Evans <dje@google.com>
14169
14170 PR rust/25535
14171 * rust-lang.c (rust_print_enum): Apply embedded_offset to
14172 rust_enum_variant calculation.
14173
dfdeeca1
TT
141742020-02-19 Tom Tromey <tromey@adacore.com>
14175
14176 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
14177
2ef5453b
TT
141782020-02-19 Tom Tromey <tromey@adacore.com>
14179
14180 * ada-lang.c (cache_symbol): Use obstack_strdup.
14181
9f1528a1
AB
141822020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14183
14184 * configure: Regenerate.
14185
d3c22fa8
TT
141862020-02-19 Tom Tromey <tromey@adacore.com>
14187
14188 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
14189 NULL check.
14190
bf84f706
MR
141912020-02-19 Maciej W. Rozycki <macro@wdc.com>
14192
14193 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
14194
d1c9b20f
AB
141952020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14196
14197 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
14198 if GDBSERVER is not defined.
14199 (riscv_tdesc_cache): Likewise, also store const target_desc.
14200 (STATIC_IN_GDB): Define.
14201 (riscv_create_target_description): Update declaration with
14202 STATIC_IN_GDB.
14203 (riscv_lookup_target_description): New function, only define if
14204 GDBSERVER is not defined.
14205 * arch/riscv.h (riscv_create_target_description): Declare only
14206 when GDBSERVER is defined.
14207 (riscv_lookup_target_description): New declaration when GDBSERVER
14208 is not defined.
14209 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
14210 (riscv_linux_read_features): ...this, and return
14211 riscv_gdbarch_features instead of target_desc.
14212 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
14213 (riscv_linux_read_description): Rename to...
14214 (riscv_linux_read_features): ...this.
14215 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14216 Update to use riscv_gdbarch_features and
14217 riscv_lookup_target_description.
14218 * riscv-tdep.c (riscv_find_default_target_description): Use
14219 riscv_lookup_target_description instead of
14220 riscv_create_target_description.
14221
373d7ac0
SM
142222020-02-18 Simon Marchi <simon.marchi@efficios.com>
14223
14224 * valprint.c (generic_val_print_enum_1): When printing a flag
14225 enum with value 0 and there is no enumerator with value 0, print
14226 just "0" instead of "(unknown: 0x0)".
14227
b29a2df0
SM
142282020-02-18 Simon Marchi <simon.marchi@efficios.com>
14229
14230 * valprint.c (generic_val_print_enum_1): Print unknown part of
14231 flag enum in hex.
14232
6740f0cc
SM
142332020-02-18 Simon Marchi <simon.marchi@efficios.com>
14234
14235 * dwarf2/read.c (update_enumeration_type_from_children): Allow
14236 flag enums to contain duplicate enumerators.
14237 * valprint.c (generic_val_print_enum_1): Update comment.
14238
edd45eb0
SM
142392020-02-18 Simon Marchi <simon.marchi@efficios.com>
14240
14241 * dwarf2/read.c: Include "count-one-bits.h".
14242 (update_enumeration_type_from_children): If an enumerator has
14243 multiple bits set, don't treat the enumeration as a "flag enum".
14244 * valprint.c (generic_val_print_enum_1): Assert that enumerators
14245 of flag enums have 0 or 1 bit set.
14246
6d0cf446
BE
142472020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
14248
14249 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
14250 conversion.
14251 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14252 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14253 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14254 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14255 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14256
7001c1b7
SM
142572020-02-18 Simon Marchi <simon.marchi@efficios.com>
14258
14259 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
14260
fdb61c6c
SM
142612020-02-14 Simon Marchi <simon.marchi@efficios.com>
14262
14263 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
14264 displaced_step_closure_up.
14265 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14266 (struct displaced_step_closure_up):
14267 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14268 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14269 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
14270 Likewise.
14271 * gdbarch.sh (displaced_step_copy_insn): Likewise.
14272 * gdbarch.c, gdbarch.h: Re-generate.
14273 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
14274 displaced_step_closure_up.
14275 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14276 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14277 * infrun.h (displaced_step_closure_up): New type alias.
14278 (struct displaced_step_inferior_state) <step_closure>: Change
14279 type to displaced_step_closure_up.
14280 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
14281 displaced_step_closure_up.
14282 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14283
a4a38eb4
TT
142842020-02-14 Tom Tromey <tom@tromey.com>
14285
14286 * minidebug.c (gnu_debug_key): New global.
14287 (find_separate_debug_file_in_section): Use it.
14288
e8217e61
SM
142892020-02-14 Simon Marchi <simon.marchi@efficios.com>
14290
14291 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
14292 std::unique_ptr.
14293 * gdbarch.c: Re-generate.
14294 * gdbarch.h: Re-generate.
14295 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
14296 change.
14297 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
14298 type to std::unique_ptr.
14299 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14300 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14301 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14302 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14303 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
14304 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14305 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14306 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14307 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14308
d8d83535
SM
143092020-02-14 Simon Marchi <simon.marchi@efficios.com>
14310
14311 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
14312 std::unique_ptr.
14313 (displaced_step_clear): Rename to...
14314 (displaced_step_reset): ... this. Just call displaced->reset ().
14315 (displaced_step_clear_cleanup): Rename to...
14316 (displaced_step_reset_cleanup): ... this.
14317 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
14318 (displaced_step_fixup): Likewise.
14319 (resume_1): Likewise.
14320 (handle_inferior_event): Restore child's memory before calling
14321 displaced_step_fixup on the parent.
14322 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
14323 to std::unique_ptr.
14324 <step_closure>: Change type to std::unique_ptr.
14325
5f661e03
SM
143262020-02-14 Simon Marchi <simon.marchi@efficios.com>
14327
14328 * arm-tdep.c: Include count-one-bits.h.
14329 (cleanup_block_store_pc): Use count_one_bits.
14330 (cleanup_block_load_pc): Use count_one_bits.
14331 (arm_copy_block_xfer): Use count_one_bits.
14332 (thumb2_copy_block_xfer): Use count_one_bits.
14333 (thumb_copy_pop_pc_16bit): Use count_one_bits.
14334 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
14335 (thumb_get_next_pcs_raw): Use count_one_bits.
14336 (arm_get_next_pcs_raw): Use count_one_bits_l.
14337 * arch/arm.c (bitcount): Remove.
14338 * arch/arm.h (bitcount): Remove.
14339
8084e579
TT
143402020-02-14 Tom Tromey <tromey@adacore.com>
14341
14342 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
14343 Update.
14344 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
14345 * dwarf2/loc.c (call_site_find_chain_1): Return
14346 unique_xmalloc_ptr.
14347 (call_site_find_chain): Likewise.
14348
258bf0ee
RB
143492020-02-14 Richard Biener <rguenther@suse.de>
14350
14351 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
14352 on expression with division operators.
14353
f98a8458
AKS
143542020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14355
14356 * MAINTAINERS (Write After Approval): Adding myself.
14357
d1437c0e
TT
143582020-02-12 Tom Tromey <tom@tromey.com>
14359
14360 * event-loop.c (event_data, gdb_event, event_handler_func):
14361 Remove.
14362
3d4560f7
TT
143632020-02-12 Tom Tromey <tom@tromey.com>
14364
14365 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
14366 (dwarf2_frame_objfile_data): Add comment.
14367 (find_comp_unit, set_comp_unit): New functions.
14368 (dwarf2_frame_find_fde): Use find_comp_unit.
14369 (dwarf2_build_frame_info): Use set_comp_unit.
14370
21982304
TT
143712020-02-12 Tom Tromey <tom@tromey.com>
14372
14373 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
14374 (comp_unit): Don't initialize objfile.
14375 (execute_cfa_program): Add text_offset parameter.
14376 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
14377 (dwarf2_frame_cache): Update.
14378 (dwarf2_build_frame_info): Don't set "objfile" member.
14379
4debb237
TT
143802020-02-12 Tom Tromey <tom@tromey.com>
14381
14382 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
14383 (decode_frame_entry): Likewise.
14384 (dwarf2_build_frame_info): Update.
14385
0d404d44
TT
143862020-02-12 Tom Tromey <tom@tromey.com>
14387
14388 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
14389 (decode_frame_entry_1): Use the comp_unit obstack.
14390
a7a3ae5c
TT
143912020-02-12 Tom Tromey <tom@tromey.com>
14392
14393 * dwarf2/frame.c (struct comp_unit): Add initializers and
14394 constructor.
14395 (dwarf2_frame_objfile_data): Store a comp_unit.
14396 (dwarf2_frame_find_fde): Update.
14397 (dwarf2_build_frame_info): Use "new".
14398
a9d65418
TT
143992020-02-12 Tom Tromey <tom@tromey.com>
14400
14401 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
14402 (dwarf2_fde_table): Typedef for std::vector.
14403 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
14404 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
14405 (decode_frame_entry): Update.
14406 (dwarf2_build_frame_info): Use "new".
14407
7559c217
CB
144082020-02-12 Christian Biesinger <cbiesinger@google.com>
14409
14410 * arm-tdep.c (arm_gdbarch_init): Update.
14411 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
14412 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
14413 have_neon, is_m>: Change to bool.
14414
aeefc73c
CB
144152020-02-12 Christian Biesinger <cbiesinger@google.com>
14416
14417 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
14418
d27b8e5f
TT
144192020-02-12 Tom Tromey <tom@tromey.com>
14420
14421 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
14422
cd5900f3
HD
144232020-02-12 Hannes Domani <ssbssa@yahoo.de>
14424
14425 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
14426 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
14427
f056b22b
TT
144282020-02-11 Tom Tromey <tom@tromey.com>
14429
14430 * psymtab.h: Update comment.
14431
f92ff6b5
TT
144322020-02-11 Tom Tromey <tom@tromey.com>
14433
14434 * gdb_obstack.h (struct auto_obstack): Use
14435 DISABLE_COPY_AND_ASSIGN.
14436
3fd6912b
TT
144372020-02-11 Tom Tromey <tom@tromey.com>
14438
14439 * dwarf2/frame.h (struct objfile): Don't forward declare.
14440
69ed9b74
CB
144412020-02-11 Christian Biesinger <cbiesinger@google.com>
14442
14443 * cris-tdep.c (cris_supply_gregset): Change signature to match
14444 what struct regset expects.
14445 (cris_regset): New struct.
14446 (fetch_core_registers): Remove.
14447 (cris_iterate_over_regset_sections): New function.
14448 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
14449 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
14450
bda874f6
CB
144512020-02-11 Christian Biesinger <cbiesinger@google.com>
14452
14453 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
14454 registers.
14455
754e1564
CB
144562020-02-11 Christian Biesinger <cbiesinger@google.com>
14457
14458 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
14459
8ddd8e0e
SM
144602020-02-11 Simon Marchi <simon.marchi@efficios.com>
14461
14462 * configure: Re-generate.
14463
898e7f60
SM
144642020-02-11 Simon Marchi <simon.marchi@efficios.com>
14465
14466 * configure: Re-generate.
14467
58df732b
SM
144682020-02-11 Simon Marchi <simon.marchi@efficios.com>
14469
14470 * acinclude: Update warning.m4 path.
14471 * warning.m4: Move to gdbsupport.
14472
da5bd37e
TT
144732020-02-11 Tom Tromey <tromey@adacore.com>
14474
14475 * remote.c (remote_console_output): Update.
14476 * printcmd.c (printf_command): Update.
14477 * event-loop.c (gdb_wait_for_event): Update.
14478 * linux-nat.c (sigchld_handler): Update.
14479 * remote-sim.c (gdb_os_write_stdout): Update.
14480 (gdb_os_flush_stdout): Update.
14481 (gdb_os_flush_stderr): Update.
14482 (gdb_os_write_stderr): Update.
14483 * exceptions.c (print_exception): Update.
14484 * remote-fileio.c (remote_fileio_func_read): Update.
14485 (remote_fileio_func_write): Update.
14486 * tui/tui.c (tui_enable): Update.
14487 * tui/tui-interp.c (tui_interp::init): Update.
14488 * utils.c (init_page_info): Update.
14489 (putchar_unfiltered, fputc_unfiltered): Update.
14490 (gdb_flush): Update.
14491 (emit_style_escape): Update.
14492 (flush_wrap_buffer, fputs_maybe_filtered): Update.
14493 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
14494 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
14495 (stderr_file::write): Update.
14496 (stderr_file::puts): Update.
14497 * ui-file.h (ui_file_isatty, ui_file_write)
14498 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
14499 (ui_file_puts): Don't declare.
14500
85f0dd3c
TV
145012020-02-10 Tom de Vries <tdevries@suse.de>
14502
14503 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
14504 sentinel to char *.
14505
2e927613
TV
145062020-02-09 Tom de Vries <tdevries@suse.de>
14507
14508 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
14509 filename if it matches "<artificial>".
14510
6bafc845
HD
145112020-02-09 Hannes Domani <ssbssa@yahoo.de>
14512
14513 * windows-tdep.c (struct enum_value_name): New struct.
14514 (create_enum): New function.
14515 (windows_get_siginfo_type): Create and use enum types.
14516
7928d571
HD
145172020-02-09 Hannes Domani <ssbssa@yahoo.de>
14518
14519 * NEWS: Mention $_siginfo support for Windows.
14520 * windows-nat.c (handle_exception): Set siginfo_er.
14521 (windows_nat_target::mourn_inferior): Reset siginfo_er.
14522 (windows_xfer_siginfo): New function.
14523 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
14524 * windows-tdep.c (struct windows_gdbarch_data): New struct.
14525 (init_windows_gdbarch_data): New function.
14526 (get_windows_gdbarch_data): New function.
14527 (windows_get_siginfo_type): New function.
14528 (windows_init_abi): Register windows_get_siginfo_type.
14529 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
14530
6751ebae
TT
145312020-02-08 Tom Tromey <tom@tromey.com>
14532
14533 * dwarf2/read.c (class cutu_reader) <cutu_reader,
14534 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
14535 <keep>: Declare method.
14536 <m_keep>: Remove member.
14537 <~cutu_reader>: Remove.
14538 (cutu_reader::init_tu_and_read_dwo_dies): Update.
14539 (cutu_reader::cutu_reader): Update.
14540 (cutu_reader::keep): Rename from ~cutu_reader.
14541 (process_psymtab_comp_unit, build_type_psymtabs_1)
14542 (process_skeletonless_type_unit, load_partial_comp_unit)
14543 (load_full_comp_unit, dwarf2_read_addr_index)
14544 (read_signatured_type): Update.
14545
135f5437
TT
145462020-02-08 Tom Tromey <tom@tromey.com>
14547
14548 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
14549 "want_partial_unit" parameter.
14550 (process_psymtab_comp_unit): Change want_partial_unit to bool.
14551 Inline check for DW_TAG_partial_unit.
14552 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
14553
9f66ff1c
TT
145542020-02-08 Tom Tromey <tom@tromey.com>
14555
14556 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
14557 read.c.
14558 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
14559 read.c.
14560
c8a7a66f
TT
145612020-02-08 Tom Tromey <tom@tromey.com>
14562
14563 * dwarf2/read.c (read_address): Move to comp-unit.c.
14564 (dwarf2_rnglists_process, dwarf2_ranges_process)
14565 (read_attribute_value, dwarf_decode_lines_1)
14566 (var_decode_location, decode_locdesc): Update.
14567 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
14568 read.c. Remove "cu" parameter.
14569 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
14570 method.
14571
8266302d
TT
145722020-02-08 Tom Tromey <tom@tromey.com>
14573
14574 * dwarf2/read.c (read_attribute_value, read_indirect_string)
14575 (read_indirect_line_string): Update.
14576 * dwarf2/comp-unit.c (read_offset): Remove.
14577 (read_comp_unit_head): Update.
14578 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
14579 method.
14580 (read_offset): Don't declare.
14581
4057dfde
TT
145822020-02-08 Tom Tromey <tom@tromey.com>
14583
14584 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
14585 * dwarf2/read.c (struct comp_unit_head): Move to
14586 dwarf2/comp-unit.h.
14587 (enum class rcuh_kind): Move to comp-unit.h.
14588 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
14589 (read_comp_unit_head, error_check_comp_unit_head)
14590 (read_and_check_comp_unit_head): Move to comp-unit.c.
14591 (read_offset, dwarf_unit_type_name): Likewise.
14592 (create_debug_type_hash_table, read_cutu_die_from_dwo)
14593 (cutu_reader::cutu_reader, read_call_site_scope)
14594 (find_partial_die, follow_die_offset): Update.
14595 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
14596
24aa364d
TT
145972020-02-08 Tom Tromey <tom@tromey.com>
14598
14599 * dwarf2/read.c (read_offset_1): Move to leb.c.
14600 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
14601 (dwarf_decode_macro_bytes): Update.
14602 * dwarf2/leb.c (read_offset): Rename; move from read.c.
14603 * dwarf2/leb.h (read_offset): Declare.
14604
2c7d5afc
TT
146052020-02-08 Tom Tromey <tom@tromey.com>
14606
14607 * dwarf2/read.c (dwarf2_section_size): Remove.
14608 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
14609 Update.
14610 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
14611
4075cb26
TT
146122020-02-08 Tom Tromey <tom@tromey.com>
14613
14614 * dwarf2/read.c (read_initial_length): Move to leb.c.
14615 * dwarf2/leb.h (read_initial_length): Declare.
14616 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
14617 handle_nonstd parameter.
14618 * dwarf2/frame.c (read_initial_length): Remove.
14619 (decode_frame_entry_1): Update.
14620
09ba997f
TT
146212020-02-08 Tom Tromey <tom@tromey.com>
14622
14623 * dwarf2/loc.c (dwarf2_find_location_expression)
14624 (dwarf_evaluate_loc_desc::get_tls_address)
14625 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
14626 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
14627 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
14628 (dwarf2_compile_property_to_c)
14629 (dwarf2_loc_desc_get_symbol_read_needs)
14630 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
14631 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
14632 (loclist_describe_location, loclist_tracepoint_var_ref)
14633 (loclist_generate_c_location): Update.
14634 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
14635 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
14636 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
14637 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
14638 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
14639 (dwarf2_per_cu_data::addr_size)
14640 (dwarf2_per_cu_data::ref_addr_size)
14641 (dwarf2_per_cu_data::text_offset)
14642 (dwarf2_per_cu_data::addr_type): Now methods.
14643 (per_cu_header_read_in): Make per_cu "const".
14644 (dwarf2_version): Remove.
14645 (dwarf2_per_cu_data::int_type): Now a method.
14646 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
14647 (set_die_type, read_array_type, read_subrange_index_type)
14648 (read_tag_string_type, read_subrange_type): Update.
14649 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
14650 offset_size, ref_addr_size, text_offset, addr_type, version,
14651 objfile, int_type, addr_sized_int_type>: Declare methods.
14652
96c738c0
TT
146532020-02-08 Tom Tromey <tom@tromey.com>
14654
14655 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
14656 Move earlier.
14657
8fdd972c
TT
146582020-02-08 Tom Tromey <tom@tromey.com>
14659
14660 * dwarf2/read.h (dwarf_line_debug): Declare.
14661 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
14662 * dwarf2/read.c: Move line_header code to new files.
14663 (dwarf_line_debug): No longer static.
14664 * dwarf2/line-header.c: New file.
14665 * dwarf2/line-header.h: New file.
14666
03075812
TT
146672020-02-08 Tom Tromey <tom@tromey.com>
14668
14669 * dwarf2/read.c (struct line_header) <file_full_name,
14670 file_file_name>: Return unique_xmalloc_ptr.
14671 (line_header::file_file_name): Update.
14672 (line_header::file_full_name): Update.
14673 (dw2_get_file_names_reader): Update.
14674 (macro_start_file): Update.
14675
bb822404
TT
146762020-02-08 Tom Tromey <tom@tromey.com>
14677
14678 * dwarf2/read.c (struct line_header) <file_full_name,
14679 file_file_name>: Declare methods.
14680 (dw2_get_file_names_reader): Update.
14681 (file_file_name): Now a method.
14682 (file_full_name): Likewise.
14683 (macro_start_file): Update.
14684
009b64fc
TT
146852020-02-08 Tom Tromey <tom@tromey.com>
14686
14687 * dwarf2/read.c (dwarf_always_disassemble)
14688 (show_dwarf_always_disassemble): Move to loc.c.
14689 (_initialize_dwarf2_read): Move "always-disassemble" registration
14690 to loc.c.
14691 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
14692 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
14693 static.
14694 (show_dwarf_always_disassemble): Move from read.c.
14695 (_initialize_dwarf2loc): Move always-disassemble from read.c.
14696
5895093f
TT
146972020-02-08 Tom Tromey <tom@tromey.com>
14698
14699 * dwarf2/read.c (~dwarf2_per_objfile): Update.
14700 (create_quick_file_names_table): Return htab_up.
14701 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
14702 Update.
14703 * dwarf2/read.h (struct dwarf2_per_objfile)
14704 <quick_file_names_table>: Now htab_up.
14705
b3b32279
TT
147062020-02-08 Tom Tromey <tom@tromey.com>
14707
14708 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
14709
1d33d811
TT
147102020-02-08 Tom Tromey <tom@tromey.com>
14711
14712 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
14713 Rewrite.
14714 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
14715 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
14716 (abbrev_table::abbrev_table): No longer inline.
14717 (ABBREV_HASH_SIZE): Remove.
14718 (abbrev_table::m_abbrevs): Now an htab_up.
14719
86de1d91
TT
147202020-02-08 Tom Tromey <tom@tromey.com>
14721
14722 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
14723 (cutu_reader): Update.
14724 (build_type_psymtabs_1): Update.
14725 * dwarf2/abbrev.c (abbrev_table::read): Rename.
14726 (abbrev_table::alloc_abbrev): Update.
14727 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
14728 (abbrev_table::read): New static method, renamed from
14729 abbrev_table_read_table.
14730 (abbrev_table::alloc_abbrev)
14731 (abbrev_table::add_abbrev): Now private.
14732 (abbrev_table::abbrev_table): Now private.
14733 (abbrev_table::m_abbrev_obstack): Now private. Rename.
14734
0335378b
TT
147352020-02-08 Tom Tromey <tom@tromey.com>
14736
14737 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
14738 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
14739 htab_up.
14740
48b490f2
TT
147412020-02-08 Tom Tromey <tom@tromey.com>
14742
14743 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
14744 htab_up.
14745 (lookup_dwo_unit_in_dwp): Update.
14746 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
14747 on obstack.
14748
bc68fb19
TT
147492020-02-08 Tom Tromey <tom@tromey.com>
14750
14751 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
14752 obstack.
14753
d15acc42
TT
147542020-02-08 Tom Tromey <tom@tromey.com>
14755
14756 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
14757 line_header_hash.
14758 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
14759 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
14760 Change type to htab_up.
14761
eaa5fa8b
TT
147622020-02-08 Tom Tromey <tom@tromey.com>
14763
14764 * dwarf2/read.c (allocate_type_unit_groups_table): Return
14765 htab_up. Don't allocate on obstack.
14766 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
14767 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
14768 Change type to htab_up.
14769
b0b6a987
TT
147702020-02-08 Tom Tromey <tom@tromey.com>
14771
14772 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
14773 Change type to htab_up.
14774 * dwarf2/read.c (create_signatured_type_table_from_index)
14775 (create_signatured_type_table_from_debug_names)
14776 (create_all_type_units, add_type_unit)
14777 (lookup_dwo_signatured_type, lookup_signatured_type)
14778 (process_skeletonless_type_unit): Update.
14779 (create_debug_type_hash_table, create_debug_types_hash_table):
14780 Change type of types_htab.
14781 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
14782 htab_up. Don't allocate on obstack.
14783 (create_cus_hash_table): Change type of cus_htab parameter.
14784 (struct dwo_file) <cus, tus>: Now htab_up.
14785 (lookup_dwo_signatured_type, lookup_dwo_cutu)
14786 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
14787 (queue_and_load_all_dwo_tus): Update.
14788 * dwarf2/index-write.c (write_gdbindex): Update.
14789 (write_debug_names): Update.
14790
39856def
TT
147912020-02-08 Tom Tromey <tom@tromey.com>
14792
14793 * dwarf2/read.h (struct dwarf2_queue_item): Move from
14794 dwarf2/read.c. Remove "next" member. Add constructor ntad
14795 destructor.
14796 (struct dwarf2_per_objfile) <queue>: New member.
14797 * dwarf2/read.c (struct dwarf2_queue_item): Move to
14798 dwarf2/read.h.
14799 (dwarf2_queue, dwarf2_queue_tail): Remove.
14800 (class dwarf2_queue_guard): Add parameter to constructor. Use
14801 DISABLE_COPY_AND_ASSIGN.
14802 <m_per_objfile>: New member.
14803 <~dwarf2_queue_guard>: Rewrite.
14804 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
14805 Update.
14806 (~dwarf2_queue_item): New.
14807
3e225074
TT
148082020-02-08 Tom Tromey <tom@tromey.com>
14809
14810 * dwarf2/read.c (struct die_info) <has_children>: New member.
14811 (dw2_get_file_names_reader): Remove has_children.
14812 (dw2_get_file_names): Update.
14813 (read_cutu_die_from_dwo): Remove has_children.
14814 (cutu_reader::init_tu_and_read_dwo_dies)
14815 (cutu_reader::cutu_reader): Update.
14816 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
14817 Remove has_children.
14818 (build_type_psymtabs_1, process_skeletonless_type_unit)
14819 (load_partial_comp_unit, load_full_comp_unit): Update.
14820 (create_dwo_cu_reader): Remove has_children.
14821 (create_cus_hash_table, read_die_and_children): Update.
14822 (read_full_die_1,read_full_die): Remove has_children.
14823 (read_signatured_type): Update.
14824 (class cutu_reader) <has_children>: Remove.
14825
82ca8957
TT
148262020-02-08 Tom Tromey <tom@tromey.com>
14827
14828 * dwarf2/expr.c: Rename from dwarf2expr.c.
14829 * dwarf2/expr.h: Rename from dwarf2expr.h.
14830 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
14831 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
14832 * dwarf2/frame.c: Rename from dwarf2-frame.c.
14833 * dwarf2/frame.h: Rename from dwarf2-frame.h.
14834 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
14835 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
14836 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
14837 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
14838 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
14839 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
14840 * dwarf2/loc.c: Rename from dwarf2loc.c.
14841 * dwarf2/loc.h: Rename from dwarf2loc.h.
14842 * dwarf2/read.c: Rename from dwarf2read.c.
14843 * dwarf2/read.h: Rename from dwarf2read.h.
14844 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
14845 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
14846 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
14847 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
14848 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
14849 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
14850 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
14851 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
14852 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
14853 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
14854 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
14855 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
14856 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
14857 Update.
14858 * Makefile.in (COMMON_SFILES): Update.
14859 (HFILES_NO_SRCDIR): Update.
14860
9e35d499
TT
148612020-02-08 Tom Tromey <tom@tromey.com>
14862
14863 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
14864 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
14865
1eba2311
TT
148662020-02-08 Tom Tromey <tom@tromey.com>
14867
14868 * dwarf2read.h (struct die_info): Don't declare.
14869
e41c2da2
TT
148702020-02-08 Tom Tromey <tom@tromey.com>
14871
14872 * dwarf2read.h (die_info_ptr): Remove typedef.
14873
4fc6c0d5
TT
148742020-02-08 Tom Tromey <tom@tromey.com>
14875
14876 * dwarf2read.c (read_call_site_scope)
14877 (handle_data_member_location, dwarf2_add_member_fn)
14878 (mark_common_block_symbol_computed, read_common_block)
14879 (attr_to_dynamic_prop, partial_die_info::read)
14880 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
14881 (dwarf2_symbol_mark_computed, set_die_type): Update.
14882 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
14883 method.
14884 (attr_form_is_block): Don't declare.
14885 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
14886
cd6c91b4
TT
148872020-02-08 Tom Tromey <tom@tromey.com>
14888
14889 * dwarf2read.c (dwarf2_find_base_address, )
14890 (read_call_site_scope, rust_containing_type)
14891 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
14892 (handle_data_member_location, dwarf2_add_member_fn)
14893 (get_alignment, read_structure_type, process_structure_scope)
14894 (mark_common_block_symbol_computed, read_common_block)
14895 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
14896 (partial_die_info::read, read_attribute_value, new_symbol)
14897 (lookup_die_type, dwarf2_get_ref_die_offset)
14898 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
14899 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
14900 (dwarf2_symbol_mark_computed): Update.
14901 * dwarf2/attribute.h (struct attribute) <value_as_address,
14902 form_is_section_offset, form_is_constant, form_is_ref>: Declare
14903 methods.
14904 (value_as_address, attr_form_is_section_offset)
14905 (attr_form_is_constant, attr_form_is_ref): Don't declare.
14906 * dwarf2/attribute.c (attribute::value_as_address)
14907 (attribute::form_is_section_offset, attribute::form_is_constant)
14908 (attribute::form_is_ref): Now methods.
14909
162dce55
TT
149102020-02-08 Tom Tromey <tom@tromey.com>
14911
14912 * dwarf2read.c (struct attribute, DW_STRING)
14913 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
14914 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
14915 (attr_form_is_block, attr_form_is_section_offset)
14916 (attr_form_is_constant, attr_form_is_ref): Move.
14917 * dwarf2/attribute.h: New file.
14918 * dwarf2/attribute.c: New file, from dwarf2read.c.
14919 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
14920
3054dd54
TT
149212020-02-08 Tom Tromey <tom@tromey.com>
14922
14923 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
14924 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
14925 Move.
14926 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
14927 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
14928 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
14929 abbrev.c.
14930 * dwarf2/abbrev.h: New file.
14931 * dwarf2/abbrev.c: New file, from dwarf2read.c.
14932 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
14933
96b79293
TT
149342020-02-08 Tom Tromey <tom@tromey.com>
14935
14936 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
14937 (dwarf2_section_size, dwarf2_get_section_info)
14938 (create_signatured_type_table_from_debug_names)
14939 (create_addrmap_from_aranges, read_debug_names_from_section)
14940 (get_gdb_index_contents_from_section, read_comp_unit_head)
14941 (error_check_comp_unit_head, read_abbrev_offset)
14942 (create_debug_type_hash_table, init_cu_die_reader)
14943 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
14944 (read_comp_units_from_section, create_cus_hash_table)
14945 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
14946 (create_dwp_v2_section, dwarf2_rnglists_process)
14947 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
14948 (abbrev_table_read_table, read_indirect_string_at_offset_from)
14949 (read_indirect_string_from_dwz, read_addr_index_1)
14950 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
14951 (dwarf_decode_macro_bytes, dwarf_decode_macros)
14952 (fill_in_loclist_baton): Update.
14953 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
14954 get_containing_section, get_bfd_owner, get_bfd_section,
14955 get_file_name, get_id, get_flags, empty, read>: Declare methods.
14956 (dwarf2_read_section, get_section_name, get_section_file_name)
14957 (get_containing_section, get_section_bfd_owner)
14958 (get_section_bfd_section, get_section_name, get_section_file_name)
14959 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
14960 declare.
14961 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
14962 (dwarf2_section_info::get_bfd_owner)
14963 (dwarf2_section_info::get_bfd_section)
14964 (dwarf2_section_info::get_name)
14965 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
14966 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
14967 (dwarf2_section_info::read): Now methods.
14968 * dwarf-index-write.c (class debug_names): Update.
14969
2c86cff9
TT
149702020-02-08 Tom Tromey <tom@tromey.com>
14971
14972 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
14973 Move to dwarf2/section.h.
14974 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
14975 (get_section_bfd_section, get_section_name)
14976 (get_section_file_name, get_section_id, get_section_flags)
14977 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
14978 dwarf2/section.c.
14979 * dwarf2/section.h: New file.
14980 * dwarf2/section.c: New file, from dwarf2read.c.
14981 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
14982
f4382c45
TT
149832020-02-08 Tom Tromey <tom@tromey.com>
14984
14985 * dwarf2read.h (read_unsigned_leb128): Don't declare.
14986 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
14987 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
14988 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
14989 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
14990 * dwarf2/leb.h: New file, from dwarf2read.c.
14991 * dwarf2/leb.c: New file, from dwarf2read.c.
14992 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
14993 Remove.
14994 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
14995 (COMMON_SFILES): Add dwarf2/leb.c.
14996
01840b7a
JB
149972020-02-08 Joel Brobecker <brobecker@adacore.com>
14998
14999 GDB 9.1 released.
15000
dfcb27e4
IB
150012020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15002
15003 PR gdb/25190:
aac66a4c
SM
15004 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
15005 * gdb/remote.c (remote_console_output): Update.
15006 * gdb/ui-file.c (fputs_unfiltered): Rename to...
15007 (ui_file_puts): ...this.
15008 * gdb/ui-file.h (ui_file_puts): Add declaration.
15009 * gdb/utils.c (emit_style_escape): Update.
15010 (flush_wrap_buffer): Update.
15011 (fputs_maybe_filtered): Update.
15012 (fputs_unfiltered): Add function.
dfcb27e4 15013
faa17681
IB
150142020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15015
aac66a4c
SM
15016 * gdb/event-loop.c (gdb_wait_for_event): Update.
15017 * gdb/printcmd.c (printf_command): Update.
15018 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
15019 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
15020 (gdb_os_flush_stderr): Update.
15021 * gdb/remote.c (remote_console_output): Update.
15022 * gdb/ui-file.c (gdb_flush): Rename to...
15023 (ui_file_flush): ...this.
15024 (stderr_file::write): Update.
15025 (stderr_file::puts): Update.
15026 * gdb/ui-file.h (gdb_flush): Rename to...
15027 (ui_file_flush): ...this.
15028 * gdb/utils.c (gdb_flush): Add function.
15029 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 15030
5abbbe1d
TT
150312020-02-07 Tom Tromey <tromey@adacore.com>
15032
15033 PR breakpoints/24915:
15034 * source.c (find_and_open_source): Do not check basenames_may_differ.
15035
919adfe8
TT
150362020-02-07 Tom Tromey <tom@tromey.com>
15037
15038 * README: Update gdbserver documentation.
15039 * gdbserver: Move to top level.
15040 * configure.tgt (build_gdbserver): Remove.
15041 * configure.ac: Remove --enable-gdbserver.
15042 * configure: Rebuild.
15043 * Makefile.in (distclean): Don't mention gdbserver.
15044
1d5d29e7
SV
150452020-02-06 Shahab Vahedi <shahab@synopsys.com>
15046
15047 * source-cache.c (source_cache::ensure): Surround
15048 get_plain_source_lines with a try/catch.
15049 (source_cache::get_line_charpos): Get rid of try/catch
15050 and only check for the return value of "ensure".
15051 * tui/tui-source.c (tui_source_window::set_contents):
15052 Simplify "nlines" calculation.
15053
6eb1129c
SV
150542020-02-06 Shahab Vahedi <shahab@synopsys.com>
15055
15056 * MAINTAINERS (Write After Approval): Add myself.
15057
c6a42d11
CB
150582020-02-05 Christian Biesinger <cbiesinger@google.com>
15059
15060 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
15061 function call.
15062
c8ecdda6
CB
150632020-02-05 Christian Biesinger <cbiesinger@google.com>
15064
15065 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
15066
f6480e70
MR
150672020-02-05 Maciej W. Rozycki <macro@wdc.com>
15068
15069 * nat/riscv-linux-tdesc.h: New file.
15070 * nat/riscv-linux-tdesc.c: New file, taking code from...
15071 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
15072 ... here.
15073 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
15074 NATDEPFILES.
15075
dcc9fbc6
AB
150762020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
15077
15078 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
15079 we don't set the fake simulator ptid to the null_ptid.
15080
719546c4
SM
150812020-02-03 Simon Marchi <simon.marchi@efficios.com>
15082
15083 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
15084 * gdbthread.h (class thread_info) <resumed>: Likewise.
15085 * infrun.c (resume_1): Likewise.
15086 (proceed): Likewise.
15087 (infrun_thread_stop_requested): Likewise.
15088 (stop_all_threads): Likewise.
15089 (handle_inferior_event): Likewise.
15090 (restart_threads): Likewise.
15091 (finish_step_over): Likewise.
15092 (keep_going_stepped_thread): Likewise.
15093 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
15094 (linux_handle_extended_wait): Likewise.
15095 * record-btrace.c (get_thread_current_frame_id): Likewise.
15096 * record-full.c (record_full_wait_1): Likewise.
15097 * remote.c (remote_target::process_initial_stop_replies): Likewise.
15098 * target.c (target_resume): Likewise.
15099 * thread.c (set_running_thread): Likewise.
15100
e409c542
AKS
151012020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15102
15103 * f-valprint.c (f77_print_array_1): Changed datatype of index
15104 variable to LONGEST from int to enable it to contain bound
15105 values correctly.
15106
ee98c0da
MR
151072020-02-03 Maciej W. Rozycki <macro@wdc.com>
15108
15109 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
15110 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
15111 offsets according to FLEN determined.
15112 (riscv_linux_nat_target::read_description): Determine FLEN
15113 dynamically.
15114 (riscv_linux_nat_target::fetch_registers): Size regset buffer
15115 according to FLEN determined.
15116 (riscv_linux_nat_target::store_registers): Likewise.
15117
aa66aac4
SV
151182020-02-01 Shahab Vahedi <shahab@synopsys.com>
15119
15120 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
15121 when reg->group is empty and reggroup is not.
15122
fd9faca8
TT
151232020-01-31 Tom Tromey <tromey@adacore.com>
15124
15125 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
15126 Call beneath target's mourn_inferior after unpushing.
15127
42330a68
AB
151282020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15129
15130 PR tui/9765
15131 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
15132 have enough lines to fill the screen, still return the lowest
15133 address we found.
15134
7a27a45b
AB
151352020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15136
15137 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
15138 '-', '<', and '>' commands.
15139
c47f70e2
PA
151402020-01-29 Pedro Alves <palves@redhat.com>
15141 Sergio Durigan Junior <sergiodj@redhat.com>
15142
15143 * infcmd.c (construct_inferior_arguments): Assert that
15144 'argc' is greater than 0.
15145
5133a315
LM
151462020-01-29 Luis Machado <luis.machado@linaro.org>
15147
15148 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
15149 (BRK_INSN_MASK): Define to 0xd4200000.
15150 (aarch64_program_breakpoint_here_p): New function.
15151 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
15152 * arch-utils.c (default_program_breakpoint_here_p): Moved from
15153 breakpoint.c.
15154 * arch-utils.h (default_program_breakpoint_here_p): Moved from
15155 breakpoint.h
15156 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
15157 call gdbarch_program_breakpoint_here_p.
15158 (program_breakpoint_here): Moved to arch-utils.c, renamed to
15159 default_program_breakpoint_here_p, changed return type to bool and
15160 simplified.
15161 * breakpoint.h (program_breakpoint_here): Moved prototype to
15162 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
15163 return type to bool.
15164 * gdbarch.c: Regenerate.
15165 * gdbarch.h: Regenerate.
15166 * gdbarch.sh (program_breakpoint_here_p): New method.
15167 * infrun.c (handle_signal_stop): Call
15168 gdbarch_program_breakpoint_here_p.
15169
168f8c6b
TT
151702020-01-26 Tom Tromey <tom@tromey.com>
15171
15172 * ctfread.c (struct ctf_fp_info): Reindent.
15173 (_initialize_ctfread): Remove.
15174
128a391f
TT
151752020-01-26 Tom Tromey <tom@tromey.com>
15176
15177 * psymtab.c (partial_map_expand_apply)
15178 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
15179 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
15180 (psym_print_stats, psym_expand_symtabs_for_function)
15181 (psym_map_symbol_filenames, psym_map_matching_symbols)
15182 (psym_expand_symtabs_matching)
15183 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
15184 (maintenance_check_psymtabs): Use new methods.
15185 * psympriv.h (struct partial_symtab) <readin_p,
15186 get_compunit_symtab>: New methods.
15187 <readin, compunit_symtab>: Remove members.
15188 (struct standard_psymtab): New.
15189 (struct legacy_psymtab): Derive from standard_psymtab.
15190 * dwarf2read.h (struct dwarf2_psymtab): Derive from
15191 standard_psymtab.
15192 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
15193
0494dbec
TT
151942020-01-26 Tom Tromey <tom@tromey.com>
15195
15196 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
15197 read_dependencies. Add assert.
15198 * psymtab.c (partial_symtab::read_dependencies): New method.
15199 * psympriv.h (struct partial_symtab) <read_dependencies>: New
15200 method.
15201 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
15202 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
15203 read_dependencies.
15204 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
15205 Add assert.
15206
8566b89b
TT
152072020-01-26 Tom Tromey <tom@tromey.com>
15208
15209 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
15210 Call expand_psymtab.
15211 (xcoff_read_symtab): Call expand_psymtab.
15212 (xcoff_start_psymtab, xcoff_end_psymtab): Set
15213 legacy_expand_psymtab.
15214 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
15215 method.
15216 (struct legacy_psymtab) <expand_psymtab>: Implement.
15217 <legacy_expand_psymtab>: New member.
15218 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
15219 (parse_partial_symbols): Set legacy_expand_psymtab.
15220 (psymtab_to_symtab_1): Change argument order. Call
15221 expand_psymtab.
15222 (new_psymtab): Set legacy_expand_psymtab.
15223 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
15224 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
15225 expand_psymtab.
15226 (dwarf2_psymtab::expand_psymtab): Rename from
15227 psymtab_to_symtab_1. Call expand_psymtab.
15228 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
15229 (dbx_end_psymtab): Likewise.
15230 (dbx_psymtab_to_symtab_1): Change argument order. Call
15231 expand_psymtab.
15232 (dbx_read_symtab): Call expand_psymtab.
15233 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
15234 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
15235 (ctf_psymtab::read_symtab): Call expand_psymtab.
15236
077cbab2
TT
152372020-01-26 Tom Tromey <tom@tromey.com>
15238
15239 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
15240 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
15241 messages.
15242 * mdebugread.c (mdebug_read_symtab): Remove prints.
15243 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
15244 assert.
15245 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
15246
891813be
TT
152472020-01-26 Tom Tromey <tom@tromey.com>
15248
15249 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
15250 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
15251 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
15252 legacy_symtab.
15253 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
15254 * psymtab.c (psymtab_to_symtab): Call method.
15255 (dump_psymtab): Update.
15256 * psympriv.h (struct partial_symtab): Add virtual destructor.
15257 <read_symtab>: New method.
15258 (struct legacy_symtab): New.
15259 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
15260 (struct pst_map) <pst>: Now a legacy_psymtab.
15261 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
15262 (new_psymtab): Use legacy_psymtab.
15263 * dwarf2read.h (struct dwarf2_psymtab): New.
15264 (struct dwarf2_per_cu_data) <psymtab>: Use it.
15265 * dwarf2read.c (dwarf2_create_include_psymtab)
15266 (dwarf2_build_include_psymtabs, create_type_unit_group)
15267 (create_partial_symtab, process_psymtab_comp_unit_reader)
15268 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
15269 (set_partial_user): Use dwarf2_psymtab.
15270 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
15271 (psymtab_to_symtab_1, process_full_comp_unit)
15272 (process_full_type_unit, dwarf2_ranges_read)
15273 (dwarf2_get_pc_bounds, psymtab_include_file_name)
15274 (dwarf_decode_lines): Use dwarf2_psymtab.
15275 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
15276 (add_address_entry_worker, write_one_signatured_type)
15277 (recursively_count_psymbols, recursively_write_psymbols)
15278 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
15279 (write_debug_names): Likewise.
15280 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
15281 <pst>: Now a legacy_psymtab.
15282 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
15283 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
15284 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
15285 * ctfread.c (struct ctf_psymtab): New.
15286 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
15287 ctf_psymtab.
15288 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
15289 (create_partial_symtab): Return a ctf_psymtab.
15290 (scan_partial_symbols): Update.
15291
c3693a1d
TT
152922020-01-26 Tom Tromey <tom@tromey.com>
15293
15294 * xcoffread.c (xcoff_start_psymtab): Use new.
15295 * psymtab.c (partial_symtab::partial_symtab): New constructor,
15296 renamed from start_psymtab_common.
15297 * psympriv.h (struct partial_symtab): Add new constructor.
15298 (start_psymtab_common): Don't declare.
15299 * mdebugread.c (parse_partial_symbols): Use new.
15300 * dwarf2read.c (create_partial_symtab): Use new.
15301 * dbxread.c (start_psymtab): Use new.
15302 * ctfread.c (create_partial_symtab): Use new.
15303
32caafd0
TT
153042020-01-26 Tom Tromey <tom@tromey.com>
15305
15306 * xcoffread.c (xcoff_end_psymtab): Use new.
15307 * psymtab.c (start_psymtab_common): Use new.
15308 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
15309 Update.
15310 * psympriv.h (struct partial_symtab): Add parameters to
15311 constructor. Don't inline.
15312 (allocate_psymtab): Don't declare.
15313 * mdebugread.c (new_psymtab): Use new.
15314 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
15315 * dbxread.c (dbx_end_psymtab): Use new.
15316
abaa2f23
TT
153172020-01-26 Tom Tromey <tom@tromey.com>
15318
15319 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
15320 allocate_psymtab. Update documentation.
15321 * psymtab.c (psymtab_storage::install_psymtab): Rename from
15322 allocate_psymtab. Do not use new.
15323 (allocate_psymtab): Use new. Update.
15324
6d94535f
TT
153252020-01-26 Tom Tromey <tom@tromey.com>
15326
15327 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
15328 * psymtab.c (psym_print_stats): Update.
15329 * psympriv.h (struct partial_symtab) <readin,
15330 psymtabs_addrmap_supported, anonymous>: Now bool.
15331 * mdebugread.c (psymtab_to_symtab_1): Update.
15332 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
15333 (build_type_psymtabs_reader, psymtab_to_symtab_1)
15334 (process_full_comp_unit, process_full_type_unit): Update.
15335 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
15336 * ctfread.c (psymtab_to_symtab): Update.
15337
6f17252b
TT
153382020-01-26 Tom Tromey <tom@tromey.com>
15339
15340 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
15341 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
15342 * psymtab.c (psymtab_storage): Delete psymtabs.
15343 (psymtab_storage::allocate_psymtab): Use new.
15344 (psymtab_storage::discard_psymtab): Use delete.
15345 * psympriv.h (struct partial_symtab): Add constructor and
15346 initializers.
15347
f6f1cebc
TT
153482020-01-26 Tom Tromey <tom@tromey.com>
15349
15350 * machoread.c: Do not include psympriv.h.
15351
e47e48f6
PW
153522020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15353
15354 * NEWS: Mention the new option and the set/show commands.
15355
a2fedca9
PW
153562020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15357
15358 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
15359 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
15360 (validate_exec_file): New variables, enums, functions.
15361 (exec_file_locate_attach, print_section_info): Style the filenames.
15362 (_initialize_exec): Install show_exec_file_mismatch_command and
15363 set_exec_file_mismatch_command.
15364 * gdbcore.h (validate_exec_file): Declare.
15365 * infcmd.c (attach_command): Call validate_exec_file.
15366 * remote.c ( remote_target::remote_add_inferior): Likewise.
15367
7ffa82e1
AB
153682020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15369
15370 * frame.c (find_frame_sal): Move call to get_next_frame into more
15371 inner scope.
15372 * inline-frame.c (inilne_state) <inline_state>: Update argument
15373 types.
15374 (inilne_state) <skipped_symbol>: Rename to...
15375 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
15376 (skip_inline_frames): Build vector of skipped symbols and use this
15377 to reate the inline_state.
15378 (inline_skipped_symbol): Add a comment and some assertions, fetch
15379 skipped symbol from the list.
15380
3d92a3e3
AB
153812020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15382
15383 * buildsym.c (lte_is_less_than): Delete.
15384 (buildsym_compunit::end_symtab_with_blockvector): Create local
15385 lambda function to sort line table entries, and use
15386 std::stable_sort instead of std::sort.
15387 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
15388 markers when looking for a previous line.
15389
94a72be7
AB
153902020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15391
15392 * dwarf2read.c (lnp_state_machine::record_line): Include
15393 end_sequence parameter in debug print out. Record the line if we
15394 are at an end_sequence marker even if it's not the start of a
15395 statement.
15396 * symmisc.c (maintenance_print_one_line_table): Print end of
15397 sequence markers with 'END' not '0'.
15398
53af73bf
PA
153992020-01-24 Pedro Alves <palves@redhat.com>
15400
15401 PR gdb/25410
15402 * thread.c (scoped_restore_current_thread::restore): Use
15403 switch_to_inferior_no_thread.
15404 * exec.c: Include "progspace-and-thread.h".
15405 (add_target_sections, remove_target_sections):
15406 scoped_restore_current_pspace_and_thread instead of
15407 scoped_restore_current_thread.
15408 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
15409 and aspace to the inferior before calling clone_program_space.
15410 Remove stale comment.
15411
3050c6f4
CB
154122020-01-24 Christian Biesinger <cbiesinger@google.com>
15413
15414 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
15415 (arm_netbsd_nat_target::fetch_registers): ...this.
15416 (arm_nbsd_nat_target::store_registers): Rename to...
15417 (arm_netbsd_nat_target::store_registers): ...this.
15418
73685c7e
CB
154192020-01-24 Christian Biesinger <cbiesinger@google.com>
15420
15421 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
15422 register_t.
15423
89203d40
CB
154242020-01-24 Christian Biesinger <cbiesinger@google.com>
15425
15426 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
15427 Update comment.
15428 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
15429 Likewise.
15430 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
15431 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
15432 the correct replacement (iterate_over_regset_sections).
15433 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
15434 Update comment.
15435
1ba1ac88
AB
154362020-01-24 Graham Markall <graham.markall@embecosm.com>
15437
15438 PR gdb/23718
15439 * gdb/python/python.c (execute_gdb_command): Call
15440 async_enable_stdin in catch block.
15441
f3364a6d
AB
154422020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15443
15444 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
15445 SWITCH_THRU_ALL_UIS.
15446
733d0a67
AB
154472020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15448
15449 PR tui/9765
15450 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
15451 comment, add extra parameter, and update to store previous symbol
15452 when appropriate.
15453 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
15454 add extra parameter.
15455 * tui/tui-disasm.c (tui_disassemble): Update header comment,
15456 remove unneeded parameter, add try/catch around gdb_print_insn,
15457 rewrite to add items to asm_lines vector.
15458 (tui_find_backward_disassembly_start_address): New function.
15459 (tui_find_disassembly_address): Updated throughout.
15460 (tui_disasm_window::set_contents): Update for changes to
15461 tui_disassemble.
15462 (tui_disasm_window::do_scroll_vertical): No need to adjust the
15463 number of lines to scroll.
15464
b3b3bada
SM
154652020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
15466
15467 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
15468 (SECT_OFF_DATA): Likewise.
15469 (SECT_OFF_RODATA): Likewise.
15470 (SECT_OFF_TEXT): Likewise.
15471 (SECT_OFF_BSS): Likewise.
15472 (struct objfile) <text_section_offset, data_section_offset>: New
15473 methods.
15474 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
15475 objfile::text_section_offset.
15476 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
15477 * coffread.c (coff_symtab_read): Likewise.
15478 (enter_linenos): Likewise.
15479 (process_coff_symbol): Likewise.
15480 * ctfread.c (get_objfile_text_range): Likewise.
15481 * dtrace-probe.c (dtrace_probe::get_relocated_address):
15482 Use objfile::data_section_offset.
15483 * dwarf2-frame.c (execute_cfa_program): Use
15484 objfile::text_section_offset.
15485 (dwarf2_frame_find_fde): Likewise.
15486 * dwarf2read.c (create_addrmap_from_index): Likewise.
15487 (create_addrmap_from_aranges): Likewise.
15488 (dw2_find_pc_sect_compunit_symtab): Likewise.
15489 (process_psymtab_comp_unit_reader): Likewise.
15490 (add_partial_symbol): Likewise.
15491 (add_partial_subprogram): Likewise.
15492 (process_full_comp_unit): Likewise.
15493 (read_file_scope): Likewise.
15494 (read_func_scope): Likewise.
15495 (read_lexical_block_scope): Likewise.
15496 (read_call_site_scope): Likewise.
15497 (dwarf2_rnglists_process): Likewise.
15498 (dwarf2_ranges_process): Likewise.
15499 (dwarf2_ranges_read): Likewise.
15500 (dwarf_decode_lines_1): Likewise.
15501 (new_symbol): Likewise.
15502 (dwarf2_fetch_die_loc_sect_off): Likewise.
15503 (dwarf2_per_cu_text_offset): Likewise.
15504 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
15505 * hppa-tdep.c (read_unwind_info): Likewise.
15506 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
15507 * psympriv.h (struct partial_symtab): Likewise.
15508 * psymtab.c (find_pc_sect_psymtab): Likewise.
15509 * solib-svr4.c (enable_break): Likewise.
15510 * stap-probe.c (relocate_address): Use
15511 objfile::data_section_offset.
15512 * xcoffread.c (enter_line_range): Use
15513 objfile::text_section_offset.
15514 (read_xcoff_symtab): Likewise.
15515
ab53f382
SM
155162020-01-23 Simon Marchi <simon.marchi@efficios.com>
15517
15518 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
15519 declaration to narrower scopes.
15520
e7eee665
SM
155212020-01-23 Simon Marchi <simon.marchi@efficios.com>
15522
15523 * darwin-nat.h (struct darwin_exception_msg, enum
15524 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
15525 Move up.
15526 (class darwin_nat_target) <wait_1, check_new_threads,
15527 decode_exception_message, decode_message, stop_inferior,
15528 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
15529 * darwin-nat.c (darwin_check_new_threads): Rename to...
15530 (darwin_nat_target::check_new_threads): ... this.
15531 (darwin_suspend_inferior_it): Remove.
15532 (darwin_decode_exception_message): Rename to...
15533 (darwin_nat_target::decode_exception_message): ... this.
15534 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
15535 (darwin_decode_message): Rename to...
15536 (darwin_nat_target::decode_message): ... this.
15537 (cancel_breakpoint): Rename to...
15538 (darwin_nat_target::cancel_breakpoint): ... this.
15539 (darwin_wait): Rename to...
15540 (darwin_nat_target::wait_1): ... this. Use range-based for loop
15541 instead of iterate_over_inferiors.
15542 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
15543 (darwin_stop_inferior): Rename to...
15544 (darwin_nat_target::stop_inferior): ... this.
15545 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
15546 (darwin_init_thread_list): Rename to...
15547 (darwin_nat_target::init_thread_list): ... this.
15548 (darwin_ptrace_him): Rename to...
15549 (darwin_nat_target::ptrace_him): ... this.
15550 (darwin_nat_target::create_inferior): Pass lambda function to
15551 fork_inferior.
15552 (darwin_nat_target::detach): Call stop_inferior instead of
15553 darwin_stop_inferior.
15554 * fork-inferior.h (fork_inferior): Change init_trace_fun
15555 parameter to gdb::function_view.
15556 * fork-inferior.c (fork_inferior): Likewise.
15557
c162ed3e
HD
155582020-01-23 Hannes Domani <ssbssa@yahoo.de>
15559
15560 * i386-cygwin-tdep.c (core_process_module_section): Update.
15561 * windows-nat.c (struct lm_info_windows): Add text_offset.
15562 (windows_xfer_shared_libraries): Update.
15563 * windows-tdep.c (windows_xfer_shared_library):
15564 Add text_offset_cached argument.
15565 * windows-tdep.h (windows_xfer_shared_library): Update.
15566
a1237872
SM
155672020-01-21 Simon Marchi <simon.marchi@efficios.com>
15568
15569 * gdbarch.sh: Add declaration for _initialize_gdbarch.
15570
b3ee6dd9
SM
155712020-01-21 Simon Marchi <simon.marchi@efficios.com>
15572
15573 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
15574 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
15575 replace with range-based for.
15576 (gdbsim_interrupt_inferior): Remove.
15577 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
15578 with a range-based for. Inline code from
15579 gdbsim_interrupt_inferior.
15580
f9fac3c8
SM
155812020-01-21 Simon Marchi <simon.marchi@efficios.com>
15582
15583 * infrun.c (proceed): Fix indentation.
15584
f6474de9
TT
155852020-01-21 Tom Tromey <tromey@adacore.com>
15586
15587 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
15588 * python/python.c (python_extension_ops): Update.
15589 (gdbpy_colorize): New function.
15590 * python/lib/gdb/__init__.py (colorize): New function.
15591 * extension.h (ext_lang_colorize): Declare.
15592 * extension.c (ext_lang_colorize): New function.
15593 * extension-priv.h (struct extension_language_ops) <colorize>: New
15594 member.
15595 * cli/cli-style.c (_initialize_cli_style): Update help text.
15596
f0c702d4
LM
155972020-01-21 Luis Machado <luis.machado@linaro.org>
15598
15599 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
15600 <cond>: Change type to bool.
15601 (aarch64_displaced_step_b_cond): Update cond to use bool type.
15602 (aarch64_displaced_step_cb): Likewise.
15603 (aarch64_displaced_step_tb): Likewise.
15604
1ab139e5
LM
156052020-01-21 Luis Machado <luis.machado@linaro.org>
15606
15607 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
15608 output.
15609
0c271889
LM
156102020-01-21 Luis Machado <luis.machado@linaro.org>
15611
15612 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
15613 <pc_adjust>: Adjust the documentation.
15614 (aarch64_displaced_step_fixup): Check if PC really moved before
15615 adjusting it.
15616
4d89c1c7
TT
156172020-01-19 Tom Tromey <tom@tromey.com>
15618
15619 * disasm.c (~gdb_disassembler): New destructor.
15620 (gdb_buffered_insn_length): Call disassemble_free_target.
15621 * disasm.h (class gdb_disassembler): Declare destructor. Use
15622 DISABLE_COPY_AND_ASSIGN.
15623
c0ab21c2
TT
156242020-01-19 Tom Tromey <tom@tromey.com>
15625
15626 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
15627 (die_reader_func_ftype): Remove.
15628 (cutu_reader): New class.
15629 (dw2_get_file_names_reader): Remove "data" parameter.
15630 (dw2_get_file_names): Use cutu_reader.
15631 (create_debug_type_hash_table): Update.
15632 (read_cutu_die_from_dwo): Update comment.
15633 (lookup_dwo_unit): Add dwo_name parameter.
15634 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
15635 die_reader_func_ftype and data parameters.
15636 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
15637 Remove die_reader_func_ftype and data parameters.
15638 (~cutu_reader): New; from init_cutu_and_read_dies.
15639 (cutu_reader::cutu_reader): Rename from
15640 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
15641 and data parameters.
15642 (init_cutu_and_read_dies_simple): Remove.
15643 (struct process_psymtab_comp_unit_data): Remove.
15644 (process_psymtab_comp_unit_reader): Remove data parameter; add
15645 want_partial_unit and pretend_language parameters.
15646 (process_psymtab_comp_unit): Use cutu_reader.
15647 (build_type_psymtabs_reader): Remove data parameter.
15648 (build_type_psymtabs_1): Use cutu_reader.
15649 (process_skeletonless_type_unit): Likewise.
15650 (load_partial_comp_unit_reader): Remove.
15651 (load_partial_comp_unit): Use cutu_reader.
15652 (load_full_comp_unit_reader): Remove.
15653 (load_full_comp_unit): Use cutu_reader.
15654 (struct create_dwo_cu_data): Remove.
15655 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
15656 dwo_unit parameters.
15657 (create_cus_hash_table): Use cutu_reader.
15658 (struct dwarf2_read_addr_index_data): Remove.
15659 (dwarf2_read_addr_index_reader): Remove.
15660 (dwarf2_read_addr_index): Use cutu_reader.
15661 (read_signatured_type_reader): Remove.
15662 (read_signatured_type): Use cutu_reader.
15663
45bbae5c
TT
156642020-01-19 Tom Tromey <tom@tromey.com>
15665
15666 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
15667 * tui/tui-wingeneral.h (class tui_suppress_output): New.
15668 (tui_wrefresh): Declare.
15669 * tui/tui-wingeneral.c (suppress_output): New global.
15670 (tui_suppress_output, ~tui_suppress_output): New constructor and
15671 destructor.
15672 (tui_wrefresh): New function.
15673 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
15674 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
15675 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
15676 method.
15677 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
15678 tui_wrefresh.
15679 (tui_data_window::no_refresh): New method.
15680 (tui_data_item_window::refresh_window): Call tui_wrefresh.
15681 (tui_reg_command): Use tui_suppress_output
15682 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
15683 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
15684 method.
15685 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
15686
4f13c1c0
TT
156872020-01-19 Tom Tromey <tom@tromey.com>
15688
15689 * tui/tui-winsource.c (tui_update_source_windows_with_line):
15690 Handle case where symtab is null.
15691
fa47e446
SM
156922020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
15693
15694 * linux-fork.c (one_fork_p): Simplify.
15695
26f42329
SM
156962020-01-17 Simon Marchi <simon.marchi@efficios.com>
15697
15698 * top.c (struct qt_args): Remove.
15699 (kill_or_detach): Change return type to void, replace `void *`
15700 parameter with a proper one.
15701 (print_inferior_quit_action): Likewise.
15702 (quit_confirm): Use range-based for loop to iterate over inferiors.
15703 (quit_force): Likewise.
15704
a9ac81b1
SM
157052020-01-17 Simon Marchi <simon.marchi@efficios.com>
15706
15707 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
15708 `void *` parameter with proper parameters.
15709 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
15710 (print_one_inferior): Change return type to void, replace `void *`
15711 parameter with proper parameters.
15712 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
15713 inferiors.
15714 (get_other_inferior): Remove.
15715 (mi_cmd_remove_inferior): Use range-based loop to iterate over
15716 inferiors.
15717
788eca49
SM
157182020-01-17 Simon Marchi <simon.marchi@efficios.com>
15719
15720 * mi/mi-interp.c (report_initial_inferior): Remove.
15721 (mi_interp::init): Use range-based for to iterate over inferiors.
15722
d9bc85b6
SM
157232020-01-17 Simon Marchi <simon.marchi@efficios.com>
15724
15725 * python/py-inferior.c (build_inferior_list): Remove.
15726 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
15727
40c94099
CB
157282020-01-16 Christian Biesinger <cbiesinger@google.com>
15729
15730 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
15731 (btrace_stitch_trace): Likewise.
15732 * charset.c (intermediate_encoding): Likewise (vaild).
15733 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
15734 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
15735 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
15736
e0cdfe3c
HD
157372020-01-16 Hannes Domani <ssbssa@yahoo.de>
15738
15739 * windows-tdep.c (windows_get_tlb_type):
15740 Add rtl_user_process_parameters type.
15741
790f1718 157422020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 15743 Norbert Lange <nolange79@gmail.com>
790f1718
PA
15744
15745 PR build/24805
15746 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
15747 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
15748 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
15749 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
15750 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
15751 (ps_plog): Redeclare exported functions with default visibility.
15752
3112ed97
NA
157532020-01-16 Nitika Achra <Nitika.Achra@amd.com>
15754
15755 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
15756 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
15757
8dc3273e
SM
157582020-01-15 Simon Marchi <simon.marchi@efficios.com>
15759
15760 * infcmd.c (post_create_inferior): Use get_thread_regcache
15761 instead of get_current_regcache.
15762
ff47f4f0
TT
157632020-01-14 Tom Tromey <tom@tromey.com>
15764
15765 PR symtab/12535:
15766 * python/python.c (gdbpy_decode_line): Treat empty string the same
15767 as no argument.
15768
975f45b7
TT
157692020-01-14 Tom Tromey <tom@tromey.com>
15770
15771 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
15772
25e57356
TT
157732020-01-14 Tom Tromey <tom@tromey.com>
15774
15775 * nat/linux-btrace.c: Don't include <config.h>.
15776 * nat/linux-ptrace.c: Don't include <config.h>.
15777 * nat/x86-linux-dregs.c: Don't include <config.h>.
15778
05ea2a05
TT
157792020-01-14 Tom Tromey <tom@tromey.com>
15780
15781 * configure: Rebuild.
15782 * configure.ac: Move many checks to ../gdbsupport/common.m4.
15783
01027315
TT
157842020-01-14 Tom Tromey <tom@tromey.com>
15785
15786 * nat/x86-linux-dregs.c: Include configh.h.
15787 * nat/linux-ptrace.c: Include configh.h.
15788 * nat/linux-btrace.c: Include configh.h.
15789 * defs.h: Include config.h, bfd.h.
15790 * configure.ac: Don't source common.host.
15791 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
15792 * configure: Rebuild.
15793 * acinclude.m4: Update path.
15794 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
15795 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
15796 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
15797 (CLIBS): Add LIBSUPPORT.
15798 (CDEPS): Likewise.
15799 (COMMON_SFILES): Remove gdbsupport files.
15800 (HFILES_NO_SRCDIR): Likewise.
15801 (stamp-version): Update path to create-version.sh.
15802 (ALLDEPFILES): Remove gdbsupport files.
15803
b2ceabe8
TT
158042020-01-14 Tom Tromey <tom@tromey.com>
15805
15806 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
15807 USE_WIN32API when needed.
15808 * configure.ac (USE_WIN32API): Don't define.
15809 (WIN32LIBS): Use WIN32APILIBS.
15810 * configure: Rebuild.
15811
25c51f71
TT
158122020-01-14 Tom Tromey <tom@tromey.com>
15813
15814 * configure: Rebuild.
15815 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
15816
717c684d
BE
158172020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
15818
15819 * skip.c (skip_function_command): Make skip w/o arguments use the
15820 name of the inlined function if pc is inside any inlined function.
15821
7da6a5b9
LM
158222020-01-14 Luis Machado <luis.machado@linaro.org>
15823
15824 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
15825 * infrun.c (resume_1): Likewise.
15826 (handle_inferior_event): Remove stale comment.
15827 * linux-nat.c (linux_nat_target::resume): Update comments.
15828 (save_stop_reason): Likewise.
15829 (linux_nat_filter_event): Likewise.
15830 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
15831
44e4c775
AB
158322020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15833
15834 * elfread.c (record_minimal_symbol): Set section index to 0 for
15835 non-allocatable sections.
15836
18a8505e
AT
15837
158382020-01-13 Ali Tamur <tamur@google.com>
15839
15840 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
15841 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
15842 to gdb::optional. Update comments.
15843 (dwo_file): Update comments.
15844 (read_attribute): Update API to take an additional out parameter,
15845 need_reprocess. This is used to mark attributes that need other
15846 attributes (e.g. str_offsets_base) for correct computation which may not
15847 have been read yet.
15848 (read_attribute_reprocess): New function declaration.
15849 (read_addr_index): Likewise.
15850 (read_dwo_str_index): Likewise.
15851 (read_stub_str_index): Likewise.
15852 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
15853 (lookup_addr_base): New function definition.
15854 (lookup_ranges_base): Likewise.
15855 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
15856 lookup_ranges_base.
15857 (init_cutu_and_read_dies): Update comments.
15858 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
15859 unit. This is used to inherit parent's str_offsets_base and addr_base.
15860 Update comments.
15861 (init_cutu_and_read_dies_simple): Reflect API changes.
15862 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
15863 (create_cus_hash_table): Change API to take parent compile unit.
15864 Reflect API changes.
15865 (open_and_init_dwo_file): Reflect API changes.
15866 (dwarf2_get_pc_bounds): Update comments.
15867 (dwarf2_record_block_ranges): Likewise.
15868 (read_full_die_1): Change implementation to reprocess attributes that
15869 need str_offsets_base and addr_base.
15870 (partial_die_info::read): Likewise.
15871 (read_attribute_reprocess): New function definition.
15872 (read_attribute_value): Change API to take an additional out parameter,
15873 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
15874 when a non-dwo compile unit has index based attributes.
15875 (read_attribute): Reflect API changes.
15876 (read_addr_index_1): Reflect API changes. Update comments.
15877 (dwarf2_read_addr_index_data): Reflect API changes.
15878 (dwarf2_read_addr_index): Likewise.
15879 (read_str_index): Change API and implementation. This becomes a helper
15880 to be used by the new string index related methods. Update error
15881 message and comments.
15882 (read_dwo_str_index): New function definition.
15883 (read_stub_str_index): Likewise.
15884 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
15885 * symfile.h (dwarf2_debug_sections): Likewise.
15886 * xcoffread.c (dwarf2_debug_sections): Likewise.
15887
0cac9354
SM
158882020-01-13 Simon Marchi <simon.marchi@efficios.com>
15889
15890 * gdbcore.h (struct core_fns) <core_read_registers>: Change
15891 core_reg_sect type to gdb_byte *.
15892 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
15893 * cris-tdep.c (fetch_core_registers): Likewise.
15894 * corelow.c (core_target::get_core_register_section): Change
15895 type of `contents` to gdb::byte_vector.
15896
9a6d629c
AB
158972020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15898
15899 * tui/tui-wingeneral.c (box_win): Position the title in the center
15900 of the border.
15901
d8b2f9e3
SM
159022020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15903
15904 * corelow.c (core_target::get_core_register_section): Use
15905 std::vector instead of alloca.
15906
bb564c58
SM
159072020-01-13 Simon Marchi <simon.marchi@efficios.com>
15908
15909 * warning.m4: Add -Wmissing-declarations to build_warnings.
15910 * configure: Re-generate.
15911
6b366111
SM
159122020-01-13 Simon Marchi <simon.marchi@efficios.com>
15913
15914 * python/python.c (init__gdb_module): Add declaration.
15915
6c265988
SM
159162020-01-13 Simon Marchi <simon.marchi@efficios.com>
15917
15918 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
15919 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
15920 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
15921 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
15922 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
15923 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
15924 * ada-exp.y (_initialize_ada_exp): Add declaration.
15925 * ada-lang.c (_initialize_ada_language): Add declaration.
15926 * ada-tasks.c (_initialize_tasks): Add declaration.
15927 * agent.c (_initialize_agent): Add declaration.
15928 * aix-thread.c (_initialize_aix_thread): Add declaration.
15929 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
15930 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
15931 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
15932 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
15933 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
15934 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
15935 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
15936 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
15937 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
15938 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
15939 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
15940 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
15941 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
15942 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
15943 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
15944 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
15945 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
15946 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
15947 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
15948 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
15949 * annotate.c (_initialize_annotate): Add declaration.
15950 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
15951 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
15952 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
15953 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
15954 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
15955 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
15956 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
15957 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
15958 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
15959 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
15960 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
15961 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
15962 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
15963 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
15964 * auto-load.c (_initialize_auto_load): Add declaration.
15965 * auxv.c (_initialize_auxv): Add declaration.
15966 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
15967 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
15968 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
15969 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
15970 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
15971 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
15972 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
15973 * breakpoint.c (_initialize_breakpoint): Add declaration.
15974 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
15975 * btrace.c (_initialize_btrace): Add declaration.
15976 * charset.c (_initialize_charset): Add declaration.
15977 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
15978 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
15979 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
15980 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
15981 * cli/cli-script.c (_initialize_cli_script): Add declaration.
15982 * cli/cli-style.c (_initialize_cli_style): Add declaration.
15983 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
15984 * coffread.c (_initialize_coffread): Add declaration.
15985 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
15986 * compile/compile.c (_initialize_compile): Add declaration.
15987 * complaints.c (_initialize_complaints): Add declaration.
15988 * completer.c (_initialize_completer): Add declaration.
15989 * copying.c (_initialize_copying): Add declaration.
15990 * corefile.c (_initialize_core): Add declaration.
15991 * corelow.c (_initialize_corelow): Add declaration.
15992 * cp-abi.c (_initialize_cp_abi): Add declaration.
15993 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
15994 * cp-support.c (_initialize_cp_support): Add declaration.
15995 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
15996 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
15997 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
15998 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
15999 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
16000 * ctfread.c (_initialize_ctfread): Add declaration.
16001 * d-lang.c (_initialize_d_language): Add declaration.
16002 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
16003 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
16004 * dbxread.c (_initialize_dbxread): Add declaration.
16005 * dcache.c (_initialize_dcache): Add declaration.
16006 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
16007 * disasm.c (_initialize_disasm): Add declaration.
16008 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
16009 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
16010 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
16011 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
16012 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
16013 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
16014 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
16015 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
16016 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
16017 * elfread.c (_initialize_elfread): Add declaration.
16018 * exec.c (_initialize_exec): Add declaration.
16019 * extension.c (_initialize_extension): Add declaration.
16020 * f-lang.c (_initialize_f_language): Add declaration.
16021 * f-valprint.c (_initialize_f_valprint): Add declaration.
16022 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
16023 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
16024 * filesystem.c (_initialize_filesystem): Add declaration.
16025 * findcmd.c (_initialize_mem_search): Add declaration.
16026 * findvar.c (_initialize_findvar): Add declaration.
16027 * fork-child.c (_initialize_fork_child): Add declaration.
16028 * frame-base.c (_initialize_frame_base): Add declaration.
16029 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
16030 * frame.c (_initialize_frame): Add declaration.
16031 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
16032 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
16033 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
16034 * gcore.c (_initialize_gcore): Add declaration.
16035 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
16036 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
16037 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
16038 * gdbarch.c (_initialize_gdbarch): Add declaration.
16039 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
16040 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
16041 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
16042 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
16043 * go-lang.c (_initialize_go_language): Add declaration.
16044 * go32-nat.c (_initialize_go32_nat): Add declaration.
16045 * guile/guile.c (_initialize_guile): Add declaration.
16046 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
16047 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
16048 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
16049 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
16050 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
16051 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
16052 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
16053 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
16054 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
16055 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
16056 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
16057 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
16058 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
16059 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
16060 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
16061 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
16062 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
16063 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
16064 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
16065 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
16066 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
16067 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
16068 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
16069 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
16070 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
16071 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
16072 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
16073 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
16074 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
16075 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
16076 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
16077 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
16078 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
16079 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
16080 * infcall.c (_initialize_infcall): Add declaration.
16081 * infcmd.c (_initialize_infcmd): Add declaration.
16082 * inflow.c (_initialize_inflow): Add declaration.
16083 * infrun.c (_initialize_infrun): Add declaration.
16084 * interps.c (_initialize_interpreter): Add declaration.
16085 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
16086 * jit.c (_initialize_jit): Add declaration.
16087 * language.c (_initialize_language): Add declaration.
16088 * linux-fork.c (_initialize_linux_fork): Add declaration.
16089 * linux-nat.c (_initialize_linux_nat): Add declaration.
16090 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
16091 * linux-thread-db.c (_initialize_thread_db): Add declaration.
16092 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
16093 * m2-lang.c (_initialize_m2_language): Add declaration.
16094 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
16095 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
16096 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
16097 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
16098 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
16099 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
16100 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
16101 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
16102 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
16103 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
16104 * machoread.c (_initialize_machoread): Add declaration.
16105 * macrocmd.c (_initialize_macrocmd): Add declaration.
16106 * macroscope.c (_initialize_macroscope): Add declaration.
16107 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
16108 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
16109 * maint.c (_initialize_maint_cmds): Add declaration.
16110 * mdebugread.c (_initialize_mdebugread): Add declaration.
16111 * memattr.c (_initialize_mem): Add declaration.
16112 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
16113 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
16114 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
16115 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
16116 * mi/mi-main.c (_initialize_mi_main): Add declaration.
16117 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
16118 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
16119 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
16120 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
16121 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
16122 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
16123 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
16124 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
16125 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
16126 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
16127 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
16128 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
16129 * mipsread.c (_initialize_mipsread): Add declaration.
16130 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
16131 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
16132 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
16133 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
16134 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
16135 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
16136 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
16137 * nto-procfs.c (_initialize_procfs): Add declaration.
16138 * objc-lang.c (_initialize_objc_language): Add declaration.
16139 * observable.c (_initialize_observer): Add declaration.
16140 * opencl-lang.c (_initialize_opencl_language): Add declaration.
16141 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
16142 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
16143 * osabi.c (_initialize_gdb_osabi): Add declaration.
16144 * osdata.c (_initialize_osdata): Add declaration.
16145 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
16146 * parse.c (_initialize_parse): Add declaration.
16147 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
16148 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
16149 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
16150 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
16151 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
16152 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
16153 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
16154 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
16155 * printcmd.c (_initialize_printcmd): Add declaration.
16156 * probe.c (_initialize_probe): Add declaration.
16157 * proc-api.c (_initialize_proc_api): Add declaration.
16158 * proc-events.c (_initialize_proc_events): Add declaration.
16159 * proc-service.c (_initialize_proc_service): Add declaration.
16160 * procfs.c (_initialize_procfs): Add declaration.
16161 * producer.c (_initialize_producer): Add declaration.
16162 * psymtab.c (_initialize_psymtab): Add declaration.
16163 * python/python.c (_initialize_python): Add declaration.
16164 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
16165 * record-btrace.c (_initialize_record_btrace): Add declaration.
16166 * record-full.c (_initialize_record_full): Add declaration.
16167 * record.c (_initialize_record): Add declaration.
16168 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
16169 * regcache.c (_initialize_regcache): Add declaration.
16170 * reggroups.c (_initialize_reggroup): Add declaration.
16171 * remote-notif.c (_initialize_notif): Add declaration.
16172 * remote-sim.c (_initialize_remote_sim): Add declaration.
16173 * remote.c (_initialize_remote): Add declaration.
16174 * reverse.c (_initialize_reverse): Add declaration.
16175 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
16176 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
16177 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
16178 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
16179 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
16180 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
16181 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
16182 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
16183 Add declaration.
16184 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
16185 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
16186 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
16187 * rust-exp.y (_initialize_rust_exp): Add declaration.
16188 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
16189 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
16190 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
16191 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
16192 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
16193 * score-tdep.c (_initialize_score_tdep): Add declaration.
16194 * ser-go32.c (_initialize_ser_dos): Add declaration.
16195 * ser-mingw.c (_initialize_ser_windows): Add declaration.
16196 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
16197 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
16198 * ser-uds.c (_initialize_ser_socket): Add declaration.
16199 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
16200 * serial.c (_initialize_serial): Add declaration.
16201 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
16202 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
16203 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
16204 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
16205 * skip.c (_initialize_step_skip): Add declaration.
16206 * sol-thread.c (_initialize_sol_thread): Add declaration.
16207 * solib-aix.c (_initialize_solib_aix): Add declaration.
16208 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
16209 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
16210 * solib-frv.c (_initialize_frv_solib): Add declaration.
16211 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
16212 * solib-target.c (_initialize_solib_target): Add declaration.
16213 * solib.c (_initialize_solib): Add declaration.
16214 * source-cache.c (_initialize_source_cache): Add declaration.
16215 * source.c (_initialize_source): Add declaration.
16216 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
16217 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
16218 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
16219 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
16220 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
16221 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
16222 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
16223 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
16224 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
16225 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
16226 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
16227 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
16228 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
16229 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
16230 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
16231 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
16232 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
16233 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
16234 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
16235 * stabsread.c (_initialize_stabsread): Add declaration.
16236 * stack.c (_initialize_stack): Add declaration.
16237 * stap-probe.c (_initialize_stap_probe): Add declaration.
16238 * std-regs.c (_initialize_frame_reg): Add declaration.
16239 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
16240 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
16241 * symfile.c (_initialize_symfile): Add declaration.
16242 * symmisc.c (_initialize_symmisc): Add declaration.
16243 * symtab.c (_initialize_symtab): Add declaration.
16244 * target.c (_initialize_target): Add declaration.
16245 * target-connection.c (_initialize_target_connection): Add
16246 declaration.
16247 * target-dcache.c (_initialize_target_dcache): Add declaration.
16248 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
16249 * thread.c (_initialize_thread): Add declaration.
16250 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
16251 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
16252 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
16253 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
16254 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
16255 * tracectf.c (_initialize_ctf): Add declaration.
16256 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
16257 * tracefile.c (_initialize_tracefile): Add declaration.
16258 * tracepoint.c (_initialize_tracepoint): Add declaration.
16259 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
16260 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
16261 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
16262 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
16263 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
16264 * tui/tui-win.c (_initialize_tui_win): Add declaration.
16265 * tui/tui.c (_initialize_tui): Add declaration.
16266 * typeprint.c (_initialize_typeprint): Add declaration.
16267 * ui-style.c (_initialize_ui_style): Add declaration.
16268 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
16269 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
16270 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
16271 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
16272 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
16273 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
16274 * unittests/filtered_iterator-selftests.c
16275 (_initialize_filtered_iterator_selftests): Add declaration.
16276 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
16277 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
16278 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
16279 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
16280 * unittests/main-thread-selftests.c
16281 (_initialize_main_thread_selftests): Add declaration.
16282 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
16283 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
16284 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
16285 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
16286 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
16287 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
16288 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
16289 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
16290 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
16291 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
16292 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
16293 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
16294 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
16295 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
16296 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
16297 declaration.
16298 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
16299 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
16300 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
16301 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
16302 * user-regs.c (_initialize_user_regs): Add declaration.
16303 * utils.c (_initialize_utils): Add declaration.
16304 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
16305 * valops.c (_initialize_valops): Add declaration.
16306 * valprint.c (_initialize_valprint): Add declaration.
16307 * value.c (_initialize_values): Add declaration.
16308 * varobj.c (_initialize_varobj): Add declaration.
16309 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
16310 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
16311 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
16312 * windows-nat.c (_initialize_windows_nat): Add declaration.
16313 (_initialize_check_for_gdb_ini): Add declaration.
16314 (_initialize_loadable): Add declaration.
16315 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
16316 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
16317 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
16318 * xcoffread.c (_initialize_xcoffread): Add declaration.
16319 * xml-support.c (_initialize_xml_support): Add declaration.
16320 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
16321 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
16322 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
16323 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
16324
e2de1eec
SM
163252020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16326
16327 * regformats/regdat.sh: Generate declaration for init function.
16328
e0037b4c
SM
163292020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16330
16331 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
16332 up.
16333 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
16334 close_one_inferior>: New methods.
16335 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
16336 pass down target to find_inferior_pid.
16337 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
16338 Pass down target to find_inferior_ptid.
16339 (gdbsim_target::create_inferior): Pass down target to
16340 add_thread_silent.
16341 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
16342 target down to find_inferior_ptid and switch_to_thread.
16343 (gdbsim_target::close): Update to call close_one_inferior.
16344 (struct resume_data): Remove.
16345 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
16346 directly, rather than through a void pointer.
16347 (gdbsim_target::resume): Update to call resume_one_inferior.
16348
58920b5b
SM
163492020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
16350
16351 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
16352
4ec89149
PA
163532020-01-12 Pedro Alves <palves@redhat.com>
16354
16355 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
16356 directly for the current inferior instead of
16357 discard_all_inferiors.
16358 (discard_all_inferiors): Delete.
16359
7c392d1d
TT
163602020-01-11 Tom Tromey <tom@tromey.com>
16361
16362 * tui/tui-wingeneral.c (box_win): Check cli_styling.
16363 * tui/tui-winsource.c (tui_source_window_base::refill): Use
16364 deprecated_safe_get_selected_frame.
16365
d9ebdab7
TBA
163662020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16367
16368 * inferior.c (print_inferior): Switch inferior before printing it.
16369
f3c469b9
PA
163702020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
16371 Pedro Alves <palves@redhat.com>
16372
16373 * progspace-and-thread.c (switch_to_program_space_and_thread):
16374 Assert there's an inferior for PSPACE. Use
16375 switch_to_inferior_no_thread to switch the inferior too.
16376 * progspace.c (program_space::~program_space): Call
16377 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
16378 (program_space::free_all_objfiles): Don't call clear_symtab_users
16379 here.
16380 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
16381
65c574f6
PA
163822020-01-10 Pedro Alves <palves@redhat.com>
16383
16384 * NEWS: Mention multi-target debugging, "info connections", and
16385 "add-inferior -no-connection".
16386
2f4fcf00
PA
163872020-01-10 Pedro Alves <palves@redhat.com>
16388
16389 * infrun.c: Include "target-connection.h".
16390 (check_multi_target_resumption): New.
16391 (proceed): Call it.
16392 * target-connection.c (make_target_connection_string): Make
16393 extern.
16394 * target-connection.h (make_target_connection_string): Declare.
16395
121b3efd
PA
163962020-01-10 Pedro Alves <palves@redhat.com>
16397
16398 * Makefile.in (COMMON_SFILES): Add target-connection.c.
16399 * inferior.c (uiout_field_connection): New function.
16400 (print_inferior): Add new "connection-id" column.
16401 (add_inferior_command): Show connection number/string of added
16402 inferior.
16403 * process-stratum-target.h
16404 (process_stratum_target::connection_string): New virtual method.
16405 (process_stratum_target::connection_number): New field.
16406 * remote.c (remote_target::connection_string): New override.
16407 * target-connection.c: New file.
16408 * target-connection.h: New file.
16409 * target.c (decref_target): Remove process_stratum targets from
16410 the connection list.
16411 (target_stack::push): Add process_stratum targets to the
16412 connection list.
16413
4f837581
PA
164142020-01-10 Pedro Alves <palves@redhat.com>
16415
16416 Revert:
16417 2016-04-12 Pedro Alves <palves@redhat.com>
16418 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
16419 Remove references to name.
16420 * serial.h (struct serial) <name>: Delete.
16421
f4ec508e
PA
164222020-01-10 Pedro Alves <palves@redhat.com>
16423
16424 * gdbarch-selftests.c (register_to_value_test): Remove "target
16425 already pushed" check.
16426
5b6d1e4f
PA
164272020-01-10 Pedro Alves <palves@redhat.com>
16428 John Baldwin <jhb@FreeBSD.org>
16429
16430 * aarch64-linux-nat.c
16431 (aarch64_linux_nat_target::thread_architecture): Adjust.
16432 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
16433 (task_command_1): Likewise.
16434 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
16435 (aix_thread_target::wait, aix_thread_target::fetch_registers)
16436 (aix_thread_target::store_registers)
16437 (aix_thread_target::thread_alive): Adjust.
16438 * amd64-fbsd-tdep.c: Include "inferior.h".
16439 (amd64fbsd_get_thread_local_address): Pass down target.
16440 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
16441 thread's gdbarch instead of target_gdbarch.
16442 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
16443 get_last_target_status.
16444 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
16445 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
16446 inferiors.
16447 (update_inserted_breakpoint_locations): Skip if inferiors with no
16448 execution.
16449 (update_global_location_list): When handling moribund locations,
16450 find representative inferior for location's pspace, and use thread
16451 count of its process_stratum target.
16452 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
16453 * bsd-uthread.c (bsd_uthread_target::wait): Use
16454 as_process_stratum_target and adjust thread_change_ptid and
16455 add_thread calls.
16456 (bsd_uthread_target::update_thread_list): Use
16457 as_process_stratum_target and adjust find_thread_ptid,
16458 thread_change_ptid and add_thread calls.
16459 * btrace.c (maint_btrace_packet_history_cmd): Adjust
16460 find_thread_ptid call.
16461 * corelow.c (add_to_thread_list): Adjust add_thread call.
16462 (core_target_open): Adjust add_thread_silent and thread_count
16463 calls.
16464 (core_target::pid_to_str): Adjust find_inferior_ptid call.
16465 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
16466 * event-top.c (async_disconnect): Pop targets from all inferiors.
16467 * exec.c (add_target_sections): Push exec target on all inferiors
16468 sharing the program space.
16469 (remove_target_sections): Remove the exec target from all
16470 inferiors sharing the program space.
16471 (exec_on_vfork): New.
16472 * exec.h (exec_on_vfork): Declare.
16473 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
16474 Pass it down.
16475 (fbsd_nat_target::update_thread_list): Adjust.
16476 (fbsd_nat_target::resume): Adjust.
16477 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
16478 down.
16479 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
16480 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
16481 get_thread_arch_regcache call.
16482 * fork-child.c (gdb_startup_inferior): Pass target down to
16483 startup_inferior and set_executing.
16484 * gdbthread.h (struct process_stratum_target): Forward declare.
16485 (add_thread, add_thread_silent, add_thread_with_info)
16486 (in_thread_list): Add process_stratum_target parameter.
16487 (find_thread_ptid(inferior*, ptid_t)): New overload.
16488 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
16489 parameter.
16490 (all_threads()): Delete overload.
16491 (all_threads, all_non_exited_threads): Add process_stratum_target
16492 parameter.
16493 (all_threads_safe): Use brace initialization.
16494 (thread_count): Add process_stratum_target parameter.
16495 (set_resumed, set_running, set_stop_requested, set_executing)
16496 (threads_are_executing, finish_thread_state): Add
16497 process_stratum_target parameter.
16498 (switch_to_thread): Use is_current_thread.
16499 * i386-fbsd-tdep.c: Include "inferior.h".
16500 (i386fbsd_get_thread_local_address): Pass down target.
16501 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
16502 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
16503 have_inferiors check.
16504 * inf-ptrace.c (inf_ptrace_target::create_inferior)
16505 (inf_ptrace_target::attach): Adjust.
16506 * infcall.c (run_inferior_call): Adjust.
16507 * infcmd.c (run_command_1): Pass target to
16508 scoped_finish_thread_state.
16509 (proceed_thread_callback): Skip inferiors with no execution.
16510 (continue_command): Rename 'all_threads' local to avoid hiding
16511 'all_threads' function. Adjust get_last_target_status call.
16512 (prepare_one_step): Adjust set_running call.
16513 (signal_command): Use user_visible_resume_target. Compare thread
16514 pointers instead of inferior_ptid.
16515 (info_program_command): Adjust to pass down target.
16516 (attach_command): Mark target's 'thread_executing' flag.
16517 (stop_current_target_threads_ns): New, factored out from ...
16518 (interrupt_target_1): ... this. Switch inferior before making
16519 target calls.
16520 * inferior-iter.h
16521 (struct all_inferiors_iterator, struct all_inferiors_range)
16522 (struct all_inferiors_safe_range)
16523 (struct all_non_exited_inferiors_range): Filter on
16524 process_stratum_target too. Remove explicit.
16525 * inferior.c (inferior::inferior): Push dummy target on target
16526 stack.
16527 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
16528 Add process_stratum_target parameter, and pass it down.
16529 (have_live_inferiors): Adjust.
16530 (switch_to_inferior_and_push_target): New.
16531 (add_inferior_command, clone_inferior_command): Handle
16532 "-no-connection" parameter. Use
16533 switch_to_inferior_and_push_target.
16534 (_initialize_inferior): Mention "-no-connection" option in
16535 the help of "add-inferior" and "clone-inferior" commands.
16536 * inferior.h: Include "process-stratum-target.h".
16537 (interrupt_target_1): Use bool.
16538 (struct inferior) <push_target, unpush_target, target_is_pushed,
16539 find_target_beneath, top_target, process_target, target_at,
16540 m_stack>: New.
16541 (discard_all_inferiors): Delete.
16542 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
16543 (all_inferiors, all_non_exited_inferiors): Add
16544 process_stratum_target parameter.
16545 * infrun.c: Include "gdb_select.h" and <unordered_map>.
16546 (target_last_proc_target): New global.
16547 (follow_fork_inferior): Push target on new inferior. Pass target
16548 to add_thread_silent. Call exec_on_vfork. Handle target's
16549 reference count.
16550 (follow_fork): Adjust get_last_target_status call. Also consider
16551 target.
16552 (follow_exec): Push target on new inferior.
16553 (struct execution_control_state) <target>: New field.
16554 (user_visible_resume_target): New.
16555 (do_target_resume): Call target_async.
16556 (resume_1): Set target's threads_executing flag. Consider resume
16557 target.
16558 (commit_resume_all_targets): New.
16559 (proceed): Also consider resume target. Skip threads of inferiors
16560 with no execution. Commit resumtion in all targets.
16561 (start_remote): Pass current inferior to wait_for_inferior.
16562 (infrun_thread_stop_requested): Consider target as well. Pass
16563 thread_info pointer to clear_inline_frame_state instead of ptid.
16564 (infrun_thread_thread_exit): Consider target as well.
16565 (random_pending_event_thread): New inferior parameter. Use it.
16566 (do_target_wait): Rename to ...
16567 (do_target_wait_1): ... this. Add inferior parameter, and pass it
16568 down.
16569 (threads_are_resumed_pending_p, do_target_wait): New.
16570 (prepare_for_detach): Adjust calls.
16571 (wait_for_inferior): New inferior parameter. Handle it. Use
16572 do_target_wait_1 instead of do_target_wait.
16573 (fetch_inferior_event): Adjust. Switch to representative
16574 inferior. Pass target down.
16575 (set_last_target_status): Add process_stratum_target parameter.
16576 Save target in global.
16577 (get_last_target_status): Add process_stratum_target parameter and
16578 handle it.
16579 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
16580 (context_switch): Check inferior_ptid == null_ptid before calling
16581 inferior_thread().
16582 (get_inferior_stop_soon): Pass down target.
16583 (wait_one): Rename to ...
16584 (poll_one_curr_target): ... this.
16585 (struct wait_one_event): New.
16586 (wait_one): New.
16587 (stop_all_threads): Adjust.
16588 (handle_no_resumed, handle_inferior_event): Adjust to consider the
16589 event's target.
16590 (switch_back_to_stepped_thread): Also consider target.
16591 (print_stop_event): Update.
16592 (normal_stop): Update. Also consider the resume target.
16593 * infrun.h (wait_for_inferior): Remove declaration.
16594 (user_visible_resume_target): New declaration.
16595 (get_last_target_status, set_last_target_status): New
16596 process_stratum_target parameter.
16597 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16598 process_stratum_target parameter, and use it.
16599 (clear_inline_frame_state (thread_info*)): New.
16600 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16601 process_stratum_target parameter.
16602 (clear_inline_frame_state (thread_info*)): Declare.
16603 * linux-fork.c (delete_checkpoint_command): Pass target down to
16604 find_thread_ptid.
16605 (checkpoint_command): Adjust.
16606 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
16607 instead of just tweaking inferior_ptid.
16608 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
16609 (exit_lwp): Pass target down to find_thread_ptid.
16610 (attach_proc_task_lwp_callback): Pass target down to
16611 add_thread/set_running/set_executing.
16612 (linux_nat_target::attach): Pass target down to
16613 thread_change_ptid.
16614 (get_detach_signal): Pass target down to find_thread_ptid.
16615 Consider last target status's target.
16616 (linux_resume_one_lwp_throw, resume_lwp)
16617 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
16618 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
16619 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
16620 (linux_nat_target::async_wait_fd): New.
16621 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
16622 target down.
16623 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
16624 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
16625 * linux-thread-db.c (struct thread_db_info::process_target): New
16626 field.
16627 (add_thread_db_info): Save target.
16628 (get_thread_db_info): New process_stratum_target parameter. Also
16629 match target.
16630 (delete_thread_db_info): New process_stratum_target parameter.
16631 Also match target.
16632 (thread_from_lwp): Adjust to pass down target.
16633 (thread_db_notice_clone): Pass down target.
16634 (check_thread_db_callback): Pass down target.
16635 (try_thread_db_load_1): Always push the thread_db target.
16636 (try_thread_db_load, record_thread): Pass target down.
16637 (thread_db_target::detach): Pass target down. Always unpush the
16638 thread_db target.
16639 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
16640 target down. Always unpush the thread_db target.
16641 (find_new_threads_callback, thread_db_find_new_threads_2)
16642 (thread_db_target::update_thread_list): Pass target down.
16643 (thread_db_target::pid_to_str): Pass current inferior down.
16644 (thread_db_target::get_thread_local_address): Pass target down.
16645 (thread_db_target::resume, maintenance_check_libthread_db): Pass
16646 target down.
16647 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
16648 * procfs.c (procfs_target::procfs_init_inferior): Declare.
16649 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
16650 (procfs_init_inferior): Rename to ...
16651 (procfs_target::procfs_init_inferior): ... this and adjust.
16652 (procfs_target::create_inferior, procfs_notice_thread)
16653 (procfs_do_thread_registers): Adjust.
16654 * ppc-fbsd-tdep.c: Include "inferior.h".
16655 (ppcfbsd_get_thread_local_address): Pass down target.
16656 * proc-service.c (ps_xfer_memory): Switch current inferior and
16657 program space as well.
16658 (get_ps_regcache): Pass target down.
16659 * process-stratum-target.c
16660 (process_stratum_target::thread_address_space)
16661 (process_stratum_target::thread_architecture): Pass target down.
16662 * process-stratum-target.h
16663 (process_stratum_target::threads_executing): New field.
16664 (as_process_stratum_target): New.
16665 * ravenscar-thread.c
16666 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
16667 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
16668 down.
16669 * record-btrace.c (record_btrace_target::info_record): Adjust.
16670 (record_btrace_target::record_method)
16671 (record_btrace_target::record_is_replaying)
16672 (record_btrace_target::fetch_registers)
16673 (get_thread_current_frame_id, record_btrace_target::resume)
16674 (record_btrace_target::wait, record_btrace_target::stop): Pass
16675 target down.
16676 * record-full.c (record_full_wait_1): Switch to event thread.
16677 Pass target down.
16678 * regcache.c (regcache::regcache)
16679 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
16680 process_stratum_target parameter and handle it.
16681 (current_thread_target): New global.
16682 (get_thread_regcache): Add process_stratum_target parameter and
16683 handle it. Switch inferior before calling target method.
16684 (get_thread_regcache): Pass target down.
16685 (get_thread_regcache_for_ptid): Pass target down.
16686 (registers_changed_ptid): Add process_stratum_target parameter and
16687 handle it.
16688 (registers_changed_thread, registers_changed): Pass target down.
16689 (test_get_thread_arch_aspace_regcache): New.
16690 (current_regcache_test): Define a couple local test_target_ops
16691 instances and use them for testing.
16692 (readwrite_regcache): Pass process_stratum_target parameter.
16693 (cooked_read_test, cooked_write_test): Pass mock_target down.
16694 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
16695 (get_thread_arch_aspace_regcache): Add process_stratum_target
16696 parameter.
16697 (regcache::target): New method.
16698 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
16699 (regcache::registers_changed_ptid): Add process_stratum_target
16700 parameter.
16701 (regcache::m_target): New field.
16702 (registers_changed_ptid): Add process_stratum_target parameter.
16703 * remote.c (remote_state::supports_vCont_probed): New field.
16704 (remote_target::async_wait_fd): New method.
16705 (remote_unpush_and_throw): Add remote_target parameter.
16706 (get_current_remote_target): Adjust.
16707 (remote_target::remote_add_inferior): Push target.
16708 (remote_target::remote_add_thread)
16709 (remote_target::remote_notice_new_inferior)
16710 (get_remote_thread_info): Pass target down.
16711 (remote_target::update_thread_list): Skip threads of inferiors
16712 bound to other targets. (remote_target::close): Don't discard
16713 inferiors. (remote_target::add_current_inferior_and_thread)
16714 (remote_target::process_initial_stop_replies)
16715 (remote_target::start_remote)
16716 (remote_target::remote_serial_quit_handler): Pass down target.
16717 (remote_target::remote_unpush_target): New remote_target
16718 parameter. Unpush the target from all inferiors.
16719 (remote_target::remote_unpush_and_throw): New remote_target
16720 parameter. Pass it down.
16721 (remote_target::open_1): Check whether the current inferior has
16722 execution instead of checking whether any inferior is live. Pass
16723 target down.
16724 (remote_target::remote_detach_1): Pass down target. Use
16725 remote_unpush_target.
16726 (extended_remote_target::attach): Pass down target.
16727 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
16728 (remote_target::append_resumption): Pass down target.
16729 (remote_target::append_pending_thread_resumptions)
16730 (remote_target::remote_resume_with_hc, remote_target::resume)
16731 (remote_target::commit_resume): Pass down target.
16732 (remote_target::remote_stop_ns): Check supports_vCont_probed.
16733 (remote_target::interrupt_query)
16734 (remote_target::remove_new_fork_children)
16735 (remote_target::check_pending_events_prevent_wildcard_vcont)
16736 (remote_target::remote_parse_stop_reply)
16737 (remote_target::process_stop_reply): Pass down target.
16738 (first_remote_resumed_thread): New remote_target parameter. Pass
16739 it down.
16740 (remote_target::wait_as): Pass down target.
16741 (unpush_and_perror): New remote_target parameter. Pass it down.
16742 (remote_target::readchar, remote_target::remote_serial_write)
16743 (remote_target::getpkt_or_notif_sane_1)
16744 (remote_target::kill_new_fork_children, remote_target::kill): Pass
16745 down target.
16746 (remote_target::mourn_inferior): Pass down target. Use
16747 remote_unpush_target.
16748 (remote_target::core_of_thread)
16749 (remote_target::remote_btrace_maybe_reopen): Pass down target.
16750 (remote_target::pid_to_exec_file)
16751 (remote_target::thread_handle_to_thread_info): Pass down target.
16752 (remote_target::async_wait_fd): New.
16753 * riscv-fbsd-tdep.c: Include "inferior.h".
16754 (riscv_fbsd_get_thread_local_address): Pass down target.
16755 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
16756 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
16757 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
16758 Adjust.
16759 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
16760 * solib-svr4.c (enable_break): Pass down target.
16761 * spu-multiarch.c (parse_spufs_run): Pass down target.
16762 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
16763 * target-delegates.c: Regenerate.
16764 * target.c (g_target_stack): Delete.
16765 (current_top_target): Return the current inferior's top target.
16766 (target_has_execution_1): Refer to the passed-in inferior's top
16767 target.
16768 (target_supports_terminal_ours): Check whether the initial
16769 inferior was already created.
16770 (decref_target): New.
16771 (target_stack::push): Incref/decref the target.
16772 (push_target, push_target, unpush_target): Adjust.
16773 (target_stack::unpush): Defref target.
16774 (target_is_pushed): Return bool. Adjust to refer to the current
16775 inferior's target stack.
16776 (dispose_inferior): Delete, and inline parts ...
16777 (target_preopen): ... here. Only dispose of the current inferior.
16778 (target_detach): Hold strong target reference while detaching.
16779 Pass target down.
16780 (target_thread_name): Add assertion.
16781 (target_resume): Pass down target.
16782 (target_ops::beneath, find_target_at): Adjust to refer to the
16783 current inferior's target stack.
16784 (get_dummy_target): New.
16785 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
16786 has a thread running.
16787 (initialize_targets): Rename to ...
16788 (_initialize_target): ... this.
16789 * target.h: Include "gdbsupport/refcounted-object.h".
16790 (struct target_ops): Inherit refcounted_object.
16791 (target_ops::shortname, target_ops::longname): Make const.
16792 (target_ops::async_wait_fd): New method.
16793 (decref_target): Declare.
16794 (struct target_ops_ref_policy): New.
16795 (target_ops_ref): New typedef.
16796 (get_dummy_target): Declare function.
16797 (target_is_pushed): Return bool.
16798 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
16799 (all_matching_threads_iterator::all_matching_threads_iterator):
16800 Handle filter target.
16801 * thread-iter.h (struct all_matching_threads_iterator, struct
16802 all_matching_threads_range, class all_non_exited_threads_range):
16803 Filter by target too. Remove explicit.
16804 * thread.c (threads_executing): Delete.
16805 (inferior_thread): Pass down current inferior.
16806 (clear_thread_inferior_resources): Pass down thread pointer
16807 instead of ptid_t.
16808 (add_thread_silent, add_thread_with_info, add_thread): Add
16809 process_stratum_target parameter. Use it for thread and inferior
16810 searches.
16811 (is_current_thread): New.
16812 (thread_info::deletable): Use it.
16813 (find_thread_ptid, thread_count, in_thread_list)
16814 (thread_change_ptid, set_resumed, set_running): New
16815 process_stratum_target parameter. Pass it down.
16816 (set_executing): New process_stratum_target parameter. Pass it
16817 down. Adjust reference to 'threads_executing'.
16818 (threads_are_executing): New process_stratum_target parameter.
16819 Adjust reference to 'threads_executing'.
16820 (set_stop_requested, finish_thread_state): New
16821 process_stratum_target parameter. Pass it down.
16822 (switch_to_thread): Also match inferior.
16823 (switch_to_thread): New process_stratum_target parameter. Pass it
16824 down.
16825 (update_threads_executing): Reimplement.
16826 * top.c (quit_force): Pop targets from all inferior.
16827 (gdb_init): Don't call initialize_targets.
16828 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
16829 Declare.
16830 (windows_add_thread, windows_delete_thread): Adjust.
16831 (get_windows_debug_event): Rename to ...
16832 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
16833 * tracefile-tfile.c (tfile_target_open): Pass down target.
16834 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
16835 Forward declare.
16836 (switch_to_thread): Add process_stratum_target parameter.
16837 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
16838 parameter. Use it.
16839 (mi_on_resume): Pass target down.
16840 * nat/fork-inferior.c (startup_inferior): Add
16841 process_stratum_target parameter. Pass it down.
16842 * nat/fork-inferior.h (startup_inferior): Add
16843 process_stratum_target parameter.
16844 * python/py-threadevent.c (py_get_event_thread): Pass target down.
16845
75c6c844
PA
168462020-01-10 Pedro Alves <palves@redhat.com>
16847
16848 * remote.c (remote_target::start_remote): Don't set inferior_ptid
16849 directly. Instead find the first thread in the thread list and
16850 use switch_to_thread.
16851
78f2c40a
PA
168522020-01-10 Pedro Alves <palves@redhat.com>
16853
16854 * remote.c (remote_target::remote_add_inferior): Don't bind a
16855 process to the current inferior if the current inferior is already
16856 bound to a process.
16857
e7af6c70
TBA
168582020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16859 Pedro Alves <palves@redhat.com>
16860
16861 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
16862 If no process is specified, return null_ptid instead of
16863 inferior_ptid.
16864 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
16865 TARGET_WAITKIND_SIGNALLED with no pid.
16866
31ba933e
PA
168672020-01-10 Pedro Alves <palves@redhat.com>
16868
16869 * remote.c (first_remote_resumed_thread): New.
16870 (remote_target::wait_as): Use it as default event_ptid instead of
16871 inferior_ptid.
16872
735fc2ca
PA
168732020-01-10 Pedro Alves <palves@redhat.com>
16874
16875 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
16876
c17e02e1
PA
168772020-01-10 Pedro Alves <palves@redhat.com>
16878
16879 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
16880 not -1.
16881
ab1ddbcf
PA
168822020-01-10 Pedro Alves <palves@redhat.com>
16883
16884 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
16885 ptid to get_last_target_status.
16886 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
16887 ptid to get_last_target_status.
16888 * infcmd.c (continue_command): Don't pass a target_waitstatus to
16889 get_last_target_status.
16890 (info_program_command): Don't pass a target_waitstatus to
16891 get_last_target_status.
16892 * infrun.c (init_wait_for_inferior): Use
16893 nullify_last_target_wait_ptid.
16894 (get_last_target_status): Handle nullptr arguments.
16895 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
16896 (print_stop_event): Don't pass a ptid to get_last_target_status.
16897 (normal_stop): Don't pass a ptid to get_last_target_status.
16898 * infrun.h (get_last_target_status, set_last_target_status): Move
16899 comments here and update.
16900 (nullify_last_target_wait_ptid): Declare.
16901 * linux-fork.c (fork_load_infrun_state): Remove local extern
16902 declaration of nullify_last_target_wait_ptid.
16903 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
16904 to get_last_target_status.
16905
f3f8ece4
PA
169062020-01-10 Pedro Alves <palves@redhat.com>
16907
16908 * gdbthread.h (scoped_restore_current_thread)
16909 <dont_restore, restore, m_dont_restore>: Declare.
16910 * thread.c (thread_alive): Add assertion. Return bool.
16911 (switch_to_thread_if_alive): New.
16912 (prune_threads): Switch inferior/thread.
16913 (print_thread_info_1): Switch thread before calling target methods.
16914 (scoped_restore_current_thread::restore): New, factored out from
16915 ...
16916 (scoped_restore_current_thread::~scoped_restore_current_thread):
16917 ... this.
16918 (scoped_restore_current_thread::scoped_restore_current_thread):
16919 Add assertion.
16920 (thread_apply_all_command, thread_select): Use
16921 switch_to_thread_if_alive.
16922 * infrun.c (proceed, restart_threads, handle_signal_stop)
16923 (switch_back_to_stepped_thread): Switch current thread before
16924 calling target methods.
16925
db2d40f7
PA
169262020-01-10 Pedro Alves <palves@redhat.com>
16927
16928 * inferior.c (switch_to_inferior_no_thread): New function,
16929 factored out from ...
16930 (inferior_command): ... here.
16931 * inferior.h (switch_to_inferior_no_thread): Declare.
16932 * mi/mi-main.c (run_one_inferior): Use
16933 switch_to_inferior_no_thread.
16934
bd420a2d
PA
169352020-01-10 Pedro Alves <palves@redhat.com>
16936
16937 * infcmd.c (kill_command): Remove dead code.
16938
ddf5db90
PA
169392020-01-10 Pedro Alves <palves@redhat.com>
16940
16941 * remote.c (remote_target::mourn_inferior): No longer check
16942 whether the target is running.
16943
5018ce90
PA
169442020-01-10 Pedro Alves <palves@redhat.com>
16945
16946 * corelow.c (core_target::has_execution): Change parameter type to
16947 inferior pointer.
16948 * inferior.c (number_of_live_inferiors): Use
16949 inferior::has_execution instead of target_has_execution_1.
16950 * inferior.h (inferior::has_execution): New.
16951 * linux-thread-db.c (thread_db_target::update_thread_list): Use
16952 inferior::has_execution instead of target_has_execution_1.
16953 * process-stratum-target.c
16954 (process_stratum_target::has_execution): Change parameter type to
16955 inferior pointer. Check the inferior's PID instead of
16956 inferior_ptid.
16957 * process-stratum-target.h
16958 (process_stratum_target::has_execution): Change parameter type to
16959 inferior pointer.
16960 * record-full.c (record_full_core_target::has_execution): Change
16961 parameter type to inferior pointer.
16962 * target.c (target_has_execution_1): Change parameter type to
16963 inferior pointer.
16964 (target_has_execution_current): Adjust.
16965 * target.h (target_ops::has_execution): Change parameter type to
16966 inferior pointer.
16967 (target_has_execution_1): Change parameter type to inferior
16968 pointer. Change return type to bool.
16969 * tracefile.h (tracefile_target::has_execution): Change parameter
16970 type to inferior pointer.
16971
74375d18
PA
169722020-01-10 Pedro Alves <palves@redhat.com>
16973
16974 * exceptions.c (print_flush): Remove current_top_target() check.
16975
acdf84a6
PA
169762020-01-10 Pedro Alves <palves@redhat.com>
16977
16978 * remote.c (show_remote_exec_file): Show the current inferior's
16979 exec-file instead of the command variable's value.
16980
ec506636
PA
169812020-01-10 Pedro Alves <palves@redhat.com>
16982
16983 * record-full.c (record_full_resume_ptid): New global.
16984 (record_full_target::resume): Set it.
16985 (record_full_wait_1): Use record_full_resume_ptid instead of
16986 inferior_ptid.
16987
873657b9
PA
169882020-01-10 Pedro Alves <palves@redhat.com>
16989
16990 * gdbthread.h (scoped_restore_current_thread)
16991 <dont_restore, restore, m_dont_restore>: Declare.
16992 * thread.c (thread_alive): Add assertion. Return bool.
16993 (switch_to_thread_if_alive): New.
16994 (prune_threads): Switch inferior/thread.
16995 (print_thread_info_1): Switch thread before calling target methods.
16996 (scoped_restore_current_thread::restore): New, factored out from
16997 ...
16998 (scoped_restore_current_thread::~scoped_restore_current_thread):
16999 ... this.
17000 (scoped_restore_current_thread::scoped_restore_current_thread):
17001 Add assertion.
17002 (thread_apply_all_command, thread_select): Use
17003 switch_to_thread_if_alive.
17004
7f0ae84c
GB
170052020-01-10 George Barrett <bob@bob131.so>
17006
17007 * stap-probe.c (stap_modify_semaphore): Don't check for null
17008 semaphores.
17009 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
17010 for null semaphores.
17011
f5a7c406
AB
170122020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17013
17014 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
17015 all source windows, and maintain horizontal scroll status while
17016 doing so.
17017
9ae6bf64
TT
170182020-01-09 Tom Tromey <tom@tromey.com>
17019
17020 PR tui/18932:
17021 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
17022 update_source_window, not print_source_lines.
17023
b2efe70c
AB
170242020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17025
17026 * tui/tui.c (tui_enable): Register tui hooks after calling
17027 tui_display_main.
17028
5f23a082
CB
170292020-01-09 Christian Biesinger <cbiesinger@google.com>
17030
17031 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
17032
3061113b
SM
170332020-01-08 Simon Marchi <simon.marchi@efficios.com>
17034
17035 * thread.c (print_thread_info_1): Fix indentation.
17036
57d75002
CB
170372020-01-09 Christian Biesinger <cbiesinger@google.com>
17038
17039 * symtab.c (general_symbol_info::compute_and_set_names): Move the
17040 unique_xmalloc_ptr outside the if to always free the demangled name.
17041
6a053cb1
TT
170422020-01-08 Tom Tromey <tromey@adacore.com>
17043
17044 * xcoffread.c (enter_line_range, read_xcoff_symtab)
17045 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
17046 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
17047 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
17048 Remove.
17049 (section_offsets): New typedef.
17050 * symtab.c (fixup_section, get_msymbol_address): Update.
17051 * symmisc.c (dump_msymbols): Update.
17052 * symfile.h (relative_addr_info_to_section_offsets)
17053 (symfile_map_offsets_to_segments): Update.
17054 * symfile.c (build_section_addr_info_from_objfile)
17055 (init_objfile_sect_indices): Update.
17056 (struct place_section_arg): Change type of "offsets".
17057 (place_section): Update.
17058 (relative_addr_info_to_section_offsets): Change type of
17059 "section_offsets". Remove "num_sections" parameter.
17060 (default_symfile_offsets, syms_from_objfile_1)
17061 (set_objfile_default_section_offset): Update.
17062 (reread_symbols): No need to preserve section offsets by hand.
17063 (symfile_map_offsets_to_segments): Change type of "offsets".
17064 * stap-probe.c (relocate_address): Update.
17065 * stabsread.h (process_one_symbol): Update.
17066 * solib-target.c (struct lm_info_target) <offsets>: Change type.
17067 (solib_target_relocate_section_addresses): Update.
17068 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
17069 Update.
17070 * solib-frv.c (frv_relocate_main_executable): Update.
17071 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
17072 * solib-aix.c (solib_aix_get_section_offsets): Change return
17073 type.
17074 (solib_aix_solib_create_inferior_hook): Update.
17075 * remote.c (remote_target::get_offsets): Update.
17076 * psymtab.c (find_pc_sect_psymtab): Update.
17077 * psympriv.h (struct partial_symbol) <address, text_low,
17078 text_high>: Update.
17079 * objfiles.h (obj_section_offset): Update.
17080 (struct objfile) <section_offsets>: Change type.
17081 <num_sections>: Remove.
17082 (objfile_relocate): Update.
17083 * objfiles.c (entry_point_address_query): Update
17084 (relocate_one_symbol): Change type of "section_offsets".
17085 (objfile_relocate1, objfile_relocate1): Change type of
17086 "new_offsets".
17087 (objfile_rebase1): Update.
17088 * mipsread.c (mipscoff_symfile_read): Update.
17089 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
17090 parameter.
17091 * mdebugread.c (parse_symbol): Change type of "section_offsets".
17092 (parse_external, psymtab_to_symtab_1): Update.
17093 * machoread.c (macho_symfile_offsets): Update.
17094 * ia64-tdep.c (ia64_find_unwind_table): Update.
17095 * hppa-tdep.c (read_unwind_info): Update.
17096 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
17097 * dwarf2read.c (create_addrmap_from_index)
17098 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
17099 (process_psymtab_comp_unit_reader, add_partial_symbol)
17100 (add_partial_subprogram, process_full_comp_unit)
17101 (read_file_scope, read_func_scope, read_lexical_block_scope)
17102 (read_call_site_scope, dwarf2_rnglists_process)
17103 (dwarf2_ranges_process, dwarf2_ranges_read)
17104 (dwarf_decode_lines_1, var_decode_location, new_symbol)
17105 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
17106 Update.
17107 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
17108 Update.
17109 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
17110 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
17111 (process_one_symbol): Change type of "section_offsets".
17112 * ctfread.c (get_objfile_text_range): Update.
17113 * coffread.c (coff_symtab_read, enter_linenos)
17114 (process_coff_symbol): Update.
17115 * coff-pe-read.c (add_pe_forwarded_sym): Update.
17116 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
17117
456e800a
TT
171182020-01-08 Tom Tromey <tromey@adacore.com>
17119
17120 * dwarf2read.c (parse_macro_definition): Use std::string.
17121 (parse_macro_definition): Likewise.
17122
6dfa2fc2
TT
171232020-01-08 Tom Tromey <tromey@adacore.com>
17124
17125 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
17126 (ATTR_ALLOC_CHUNK): Remove.
17127
421d1616
TT
171282020-01-08 Tom Tromey <tromey@adacore.com>
17129
17130 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
17131
43816ebc
TT
171322020-01-08 Tom Tromey <tromey@adacore.com>
17133
17134 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
17135 (dwarf2_compute_name, open_dwo_file): Likewise.
17136 (process_enumeration_scope): Use std::vector.
17137 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
17138 (partial_die_info::fixup, dwarf2_start_subfile)
17139 (guess_full_die_structure_name, dwarf2_name): Likewise.
17140 (determine_prefix): Update.
17141 (guess_full_die_structure_name): Make return type const.
17142 (partial_die_full_name): Return unique_xmalloc_ptr.
17143 (DW_FIELD_ALLOC_CHUNK): Remove.
17144
4212d509
TT
171452020-01-07 Tom Tromey <tromey@adacore.com>
17146
17147 PR build/24937:
17148 * stap-probe.c (class stap_static_probe_ops): Add constructor.
17149
06a6207a
JT
171502020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17151
17152 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
17153
153d79c4
AB
171542020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
17155
17156 * stack.c (print_frame_info): Move disassemble_next_line code
17157 inside source_print block.
17158
66182876
EZ
171592020-01-06 Eli Zaretskii <eliz@gnu.org>
17160
17161 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
17162 gdb/signals.h, as we are now using native signal symbols.
17163
cbfa8581
SV
171642020-01-06 Shahab Vahedi <shahab@synopsys.com>
17165
17166 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
17167 overflow by an early check of content vs threshold.
aac66a4c 17168 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
17169 Likewise.
17170
3f602821
EZ
171712020-01-06 Eli Zaretskii <eliz@gnu.org>
17172
17173 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
17174
a08c904d
JT
171752020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17176
17177 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
17178 export table if no section contains it's RVA.
17179
89a65580
EZ
171802020-01-06 Eli Zaretskii <eliz@gnu.org>
17181
17182 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
17183
8b7fcda2
HD
171842020-01-06 Hannes Domani <ssbssa@yahoo.de>
17185
17186 * source.c (print_source_lines_base): Set last_line_listed.
17187
a61b4f69
SV
171882020-01-06 Shahab Vahedi <shahab@synopsys.com>
17189
17190 * tui/tui-disasm.c: Remove trailing spaces.
17191
559e7e50
EZ
171922020-01-06 Eli Zaretskii <eliz@gnu.org>
17193 Pedro Alves <palves@redhat.com>
17194
17195 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
17196 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
17197 (windows_gdb_signal_to_target): New function, uses the above
17198 enumeration to convert GDB internal signal codes to equivalent
17199 Windows codes.
17200 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
17201 * windows-nat.c: Include "gdb_wait.h".
17202 (get_windows_debug_event): Extract the fatal exception from the
17203 exit status and convert to the equivalent Posix signal number.
17204 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
17205 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
17206 * gdbsupport/gdb_wait.c: New file, implements
17207 windows_status_to_termsig.
17208 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
17209 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
17210
f2302a34
AB
172112020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
17212
17213 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
17214 show_layout.
17215
6a5206eb
LM
172162020-01-05 Luis Machado <luis.machado@linaro.org>
17217
17218 * aarch64-linux-nat.c
17219 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
17220 and bfd_mach_aarch64.
17221
6ec1d75e
PW
172222020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17223
17224 * ui-file.c (stdio_file::can_emit_style_escape)
17225 (tee_file::can_emit_style_escape): Ensure style is used also on
17226 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
17227 to gdb_stdout.
17228 * main.c (set_gdb_data_directory): Use file style to output the
17229 warning that the given pathname is not a directory.
17230 * top.c (show_history_filename, gdb_safe_append_history)
17231 (show_gdb_datadir): Use file style.
17232
44f81a76
HD
172332020-01-03 Hannes Domani <ssbssa@yahoo.de>
17234
17235 * solib-target.c (struct lm_info_target):
17236 Change offsets to be a unique_xmalloc_ptr.
17237 (solib_target_relocate_section_addresses): Update.
17238
25057eb0
HD
172392020-01-03 Hannes Domani <ssbssa@yahoo.de>
17240
17241 * windows-nat.c (windows_clear_solib): Free so_list linked list.
17242
6e2118f5
BE
172432020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
17244
17245 * MAINTAINERS (Write After Approval): Add myself.
17246
8133c7dc
LM
172472020-01-02 Luis Machado <luis.machado@linaro.org>
17248
17249 * proc-service.c (get_ps_regcache): Remove reference to obsolete
17250 Cell BE architecture.
17251 * target.h (struct target_ops) <thread_architecture>: Likewise.
17252
48189bec
HD
172532020-01-01 Hannes Domani <ssbssa@yahoo.de>
17254
17255 * Makefile.in: Use INSTALL_PROGRAM_ENV.
17256
ead1063b
HD
172572020-01-01 Hannes Domani <ssbssa@yahoo.de>
17258
17259 * MAINTAINERS (Write After Approval): Add myself.
17260
e5d78223
JB
172612020-01-01 Joel Brobecker <brobecker@adacore.com>
17262
17263 * gdbarch.sh: Update copyright year range of generated files.
17264
b811d2c2
JB
172652020-01-01 Joel Brobecker <brobecker@adacore.com>
17266
17267 Update copyright year range in all GDB files.
17268
5f4def5c
JB
172692020-01-01 Joel Brobecker <brobecker@adacore.com>
17270
17271 * copyright.py: Convert to Python 3.
17272
51fd4002
JB
172732020-01-01 Joel Brobecker <brobecker@adacore.com>
17274
17275 * copyright.py: Adapt after move of gnulib directory from gdb
17276 directory to toplevel directory.
17277
5fb651f2
JB
172782020-01-01 Joel Brobecker <brobecker@adacore.com>
17279
17280 * copyright.py (main): Exit if run from the wrong directory.
17281
5dd8bf88
JB
172822020-01-01 Joel Brobecker <brobecker@adacore.com>
17283
17284 * top.c (print_gdb_version): Change copyright year to 2020.
17285
9f71dacb 172862020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 17287
9f71dacb 17288 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 17289
9f71dacb 17290For older changes see ChangeLog-2019.
c906108c
SS
17291\f
17292Local Variables:
17293mode: change-log
17294left-margin: 8
17295fill-column: 74
17296version-control: never
57da7796 17297coding: utf-8
c906108c 17298End: