[gdb/symtab] Fix gdb.base/vla-optimized-out.exp with clang
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
7ce05d21
TV
12020-11-30 Tom de Vries <tdevries@suse.de>
2
3 PR symtab/26905
4 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add and handle
5 is_reference parameter.
6 (dwarf2_evaluate_property): Update dwarf2_locexpr_baton_eval call.
7
59404f82
TV
82020-11-30 Tom de Vries <tdevries@suse.de>
9
10 * debuginfod-support.c (debuginfod_source_query)
11 (debuginfod_debuginfo_query): Only set DESTNAME if successful.
12
88b91969
TT
132020-11-30 Tom Tromey <tom@tromey.com>
14
15 * rust-lang.c (rust_op_name): Remove.
16 (exp_descriptor_rust): Update.
17 * parser-defs.h (op_name_standard): Don't declare.
18 (struct exp_descriptor) <op_name>: Remove.
19 * parse.c (exp_descriptor_standard): Update.
20 * opencl-lang.c (exp_descriptor_opencl): Update.
21 * m2-lang.c (m2_language::exp_descriptor_modula2): Update.
22 * f-lang.c (op_name_f): Remove.
23 (f_language::exp_descriptor_tab): Update.
24 * expression.h (op_name): Update.
25 * expprint.c (op_name): Rewrite.
26 (op_name_standard): Remove.
27 (dump_raw_expression, dump_subexp): Update.
28 * c-lang.c (exp_descriptor_c): Update.
29 * ax-gdb.c (gen_expr): Update.
30 * ada-lang.c (ada_op_name): Remove.
31 (ada_exp_descriptor): Update.
32
1cd49c43
TT
332020-11-30 Tom Tromey <tom@tromey.com>
34
35 * eval.c (init_array_element): Remove.
36 (evaluate_subexp_standard) <OP_ARRAY>: Remove "index_pc".
37
96fb9086
HD
382020-11-29 Hannes Domani <ssbssa@yahoo.de>
39
40 PR tui/26973
41 * tui/tui-layout.c (tui_apply_current_layout): Don't delete the
42 static locator win info.
43
b4132322
AR
442020-11-28 Alex Richardson <Alexander.Richardson@cl.cam.ac.uk>
45
46 * acincludde.m4 (GDB_AC_CHECK_BFD): Include string.h in the test
47 program.
48
3df8c6af
AB
492020-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
50
51 * printcmd.c (skip_over_slash_fmt): Reorder code to ensure in_fmt
52 is always initialized.
53
239ca5e4
PW
542020-11-26 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
55
56 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
57 * features/aarch64-fpu.xml: Add named FPCR and FPSR register bit-fields.
58
cbfa382a
TT
592020-11-25 Tom Tromey <tom@tromey.com>
60
61 * eval.c (evaluate_subexp_standard): Remove unnecessary
62 variables.
63
af30c400
TT
642020-11-25 Tom Tromey <tom@tromey.com>
65
66 * d-lang.c: Include parser-defs.h.
67 * rust-lang.c: Include parser-defs.h.
68 * c-lang.h: Do not include parser-defs.h.
69
1c64f6cb
SM
702020-11-24 Simon Marchi <simon.marchi@polymtl.ca>
71
72 * regcache.h (struct cached_reg): Remove typedef.
73
2c20a601
JB
742020-11-24 Joel Brobecker <brobecker@adacore.com>
75
76 * README: Fix the URL of the MPFR library.
77
c609df64
JB
782020-11-24 Joel Brobecker <brobecker@adacore.com>
79
80 * README: Document the --with-libgmp-prefix configure option.
81
fa123c32
JB
822020-11-24 Joel Brobecker <brobecker@adacore.com>
83
84 * NEWS: Add entry documenting support for DWARF-based fixed
85 point types.
86
0fb8bb02
JB
872020-11-24 Joel Brobecker <brobecker@adacore.com>
88
89 * NEWS: Document that building GDB now requires GMP.
90
4afa9fd9
JB
912020-11-24 Joel Brobecker <brobecker@adacore.com>
92
93 * typeprint.c (print_type_scalar): Add handling of
94 TYPE_CODE_FIXED_POINT.
95
af619ce9
JB
962020-11-24 Joel Brobecker <brobecker@adacore.com>
97
98 * valarith.c (fixed_point_binop): Replace the
99 INIT_VAL_WITH_FIXED_POINT_VAL macro by a lambda. Update all
100 users accordingly.
101
e6fcee3a
JB
1022020-11-24 Joel Brobecker <brobecker@adacore.com>
103
104 * gdbtypes.h (struct type) <fixed_point_scaling_factor>: New method,
105 replacing fixed_point_scaling_factor. All callers updated
106 throughout this project.
107 (fixed_point_scaling_factor): Delete declaration.
108 * gdbtypes.c (type::fixed_point_scaling_factor): Replaces
109 fixed_point_scaling_factor. Adjust implementation accordingly.
110
d19937a7
JB
1112020-11-24 Joel Brobecker <brobecker@adacore.com>
112
113 * gdbtypes.h (struct type) <fixed_point_type_base_type> New method,
114 replacing the fixed_point_type_base_type function. All callers
115 updated throughout this project.
116 (fixed_point_type_base_type): Remove declaration.
117 * gdbtypes.c (type::fixed_point_type_base_type): Replaces
118 fixed_point_type_base_type. Adjust implementation accordingly.
119
2a12c336
JB
1202020-11-24 Joel Brobecker <brobecker@adacore.com>
121
122 * gdbtypes.h (struct type) <fixed_point_info, set_fixed_point_info>:
123 New methods.
124 (INIT_FIXED_POINT_SPECIFIC): Adjust.
125 (TYPE_FIXED_POINT_INFO): Delete macro.
126 (allocate_fixed_point_type_info): Change return type to void.
127 * gdbtypes.c (copy_type_recursive): Replace the use of
128 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
129 (fixed_point_scaling_factor): Likewise.
130 (allocate_fixed_point_type_info): Change return type to void.
131 Adjust implementation accordingly.
132 * dwarf2/read.c (finish_fixed_point_type): Replace the use of
133 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
134
c9f0b43f
JB
1352020-11-24 Joel Brobecker <brobecker@adacore.com>
136
137 * gmp-utils.h (gdb_mpz::read): Change buf and len parameters
138 into one single gdb::array_view parameter.
139 (gdb_mpz::write): Likewise.
140 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
141 * gmp-utils.c (gdb_mpz::read): Change buf and len parameters
142 into one single gdb::array_view parameter.
143 Adjust implementation accordingly.
144 (gdb_mpz::write): Likewise.
145 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
146 * unittests/gmp-utils-selftests.c: Adapt following changes above.
147 * valarith.c, valops.c, valprint.c, value.c: Likewise.
148
987b6703
JB
1492020-11-24 Joel Brobecker <brobecker@adacore.com>
150
151 * gmp-utils.h (gmp_string_printf): Rename from gmp_string_asprintf.
152 Change return type to std::string. Update all callers.
153 * gmp-utils.c (gmp_string_printf): Likewise.
154
4fbb7cce
JB
1552020-11-24 Joel Brobecker <brobecker@adacore.com>
156
157 * unittests/gmp-utils-selftests.c (write_fp_test): Use mpq_set_si
158 instead of mpq_set_ui to initialize our GMP rational.
159
d6ab69dd
TV
1602020-11-23 Tom de Vries <tdevries@suse.de>
161
162 * debuginfod-support.c (debuginfod_source_query)
163 (debuginfod_debuginfo_query): Only set DESTNAME if successful.
164
dab72643
TT
1652020-11-21 Tom Tromey <tom@tromey.com>
166
167 * breakpoint.c (watchpoint_exp_is_const): Return bool.
168
c0ad05d5
SM
1692020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
170
171 * unittests/gmp-utils-selftests.c (gdb_mpz_read_all_from_small):
172 Pass 2.0 to pow.
173 (gdb_mpz_write_all_from_small): Likewise.
174
a43b29c9
SM
1752020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
176
177 * dwarf2/read.c (finish_fixed_point_type): Use std::abs instead
178 of abs.
179
ae41200b
NA
1802020-11-20 Nick Alcock <nick.alcock@oracle.com>
181
182 * ctfread.c (elfctf_build_psymtabs): Use ctf_dict_open, not
183 ctf_arc_open_by_name.
184
139633c3
NA
1852020-11-20 Nick Alcock <nick.alcock@oracle.com>
186
187 * ctfread.c: Change uses of ctf_file_t to ctf_dict_t.
188 (ctf_fp_info::~ctf_fp_info): Call ctf_dict_close, not ctf_file_close.
189
cbbcd7a7
PA
1902020-11-20 Pedro Alves <pedro@palves.net>
191
192 * language.c (language_arch_info::lookup_primitive_type): Use
193 gdb::function_view instead of gdb::function.
194 (template language_lookup_primitive_type): Rename to ...
195 (language_lookup_primitive_type_1): ... this, and make static.
196 (language_lookup_primitive_type(const struct language_defn *,
197 struct gdbarch *, const char *): Make non-template.
198 (language_lookup_primitive_type(const struct language_defn *,
199 struct gdbarch *, std::function<bool (struct type *)>): Make
200 non-template and use gdb::function_view.
201 * language.h (language_arch_info::lookup_primitive_type): Use
202 gdb::function_view instead of std::function.
203 (language_lookup_primitive_type): No longer template.
204 * opencl-lang.c (lookup_opencl_vector_type): 'filter' is now a
205 lambda instead of a std::function.
206
d5ef21c3
AA
2072020-11-19 Andreas Arnez <arnez@linux.ibm.com>
208
209 PR tdep/26916
210 * s390-tdep.c (s390_process_record): Fix recording of STOC, STOCG,
211 and STOCFH.
212
a5adb8f3
SM
2132020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
214
215 * f-lang.c (fortran_value_subarray): Use plongest/pulongest.
216
70125a45
SM
2172020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
218
219 * gdbarch.sh (read_core_file_mappings): Remove `other` parameter
220 in `loop_cb` parameter.
221 * gdbarch.c: Re-generate.
222 * gdbarch.h: Re-generate.
223 * arch-utils.c (default_read_core_file_mappings): Remove `other`
224 parameter.
225 * arch-utils.h (default_read_core_file_mappings): Likewise.
226 * corelow.c (core_target::build_file_mappings): Likewise.
227 * linux-tdep.c (linux_read_core_file_mappings): Likewise.
228 (linux_core_info_proc_mappings): Likewise.
229
a5c641b5
AB
2302020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
231
232 * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
233 * NEWS: Mention new options.
234 * f-array-walker.h: New file.
235 * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
236 (repack_array_slices): New static global.
237 (show_repack_array_slices): New function.
238 (fortran_array_slicing_debug): New static global.
239 (show_fortran_array_slicing_debug): New function.
240 (value_f90_subarray): Delete.
241 (skip_undetermined_arglist): Delete.
242 (class fortran_array_repacker_base_impl): New class.
243 (class fortran_lazy_array_repacker_impl): New class.
244 (class fortran_array_repacker_impl): New class.
245 (fortran_value_subarray): Complete rewrite.
246 (set_fortran_list): New static global.
247 (show_fortran_list): Likewise.
248 (_initialize_f_language): Register new commands.
249 (fortran_adjust_dynamic_array_base_address_hack): New function.
250 * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
251 Declare.
252 * f-valprint.c: Include 'f-array-walker.h'.
253 (class fortran_array_printer_impl): New class.
254 (f77_print_array_1): Delete.
255 (f77_print_array): Delete.
256 (fortran_print_array): New.
257 (f_value_print_inner): Update to call fortran_print_array.
258 * gdbtypes.c: Include 'f-lang.h'.
259 (resolve_dynamic_type_internal): Call
260 fortran_adjust_dynamic_array_base_address_hack.
261
a15a5258
AB
2622020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
263
264 * breakpoint.c (struct watch_options): New struct.
265 (watch_option_defs): New static global.
266 (make_watch_options_def_group): New function.
267 (watch_maybe_just_location): Convert option parsing.
268 (watch_command_completer): New function.
269 (_initialize_breakpoint): Build help text using options mechanism.
270
2e362716
AB
2712020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
272
273 * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
274 (watch_command_1): Update parameter types. Convert locals to
275 bool.
276 (watch_command_wrapper): Change parameter type.
277 (watch_maybe_just_location): Change locals to bool.
278 (rwatch_command_wrapper): Update parameter type.
279 (awatch_command_wrapper): Update parameter type.
280 * breakpoint.h (watch_command_wrapper): Change parameter type.
281 (rwatch_command_wrapper): Update parameter type.
282 (awatch_command_wrapper): Update parameter type.
283 * eval.c (fetch_subexp_value): Change parameter type.
284 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
285 'false' not '0'.
286 * value.h (fetch_subexp_value): Change parameter type in
287 declaration.
288
b3ff61f8
AB
2892020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
290
291 * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
292 skip_spaces.
293
5b7d45d3
KS
2942020-11-18 Keith Seitz <keiths@redhat.com>
295
296 * linux-tdep.c (dump_note_entry_p): Return true instead of
297 checking `filename'.
298
c44191f8
TV
2992020-11-18 Tom de Vries <tdevries@suse.de>
300
301 * debuginfod-support.c (debuginfod_source_query)
302 (debuginfod_debuginfo_query): Also do early exit if
303 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
304
5d8254e1
TV
3052020-11-18 Tom de Vries <tdevries@suse.de>
306
307 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
308 warning.
309
584903d3
SM
3102020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
311
312 * gdbtypes.h (get_array_bounds): Return bool, adjust some
313 callers. Move doc here.
314 * gdbtypes.c (get_array_bounds): Return bool
315
6f2643db
AB
3162020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
317
318 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
319 assert.
320 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
321 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
322 case to the default.
323
037d7135
AB
3242020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
325
326 * printcmd.c: Include 'safe-ctype.c'.
327 (skip_over_slash_fmt): New function.
328 (print_command_completer): Call skip_over_slash_fmt.
329 (display_and_x_command_completer): New function.
330 (_initialize_printcmd): Add command completion for 'x' and
331 'display'.
332
2b3cb400
PA
3332020-11-16 Pedro Alves <pedro@palves.net>
334
335 * frame.c (get_prev_frame): Move get_frame_id call from here ...
336 (get_prev_frame_always_1): ... to here.
337 * inline-frame.c (inline_frame_this_id): Mention
338 get_prev_frame_always_1 in comment.
339
b74dbc20
JB
3402020-11-15 Joel Brobecker <brobecker@adacore.com>
341
342 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
343 handling.
344 (value_less): Add fixed-point handling.
345
0a12719e
JB
3462020-11-15 Joel Brobecker <brobecker@adacore.com>
347
348 * eval.c (binop_promote): Add fixed-point type handling.
349 * valarith.c (fixed_point_binop): New function.
350 (scalar_binop): Add fixed-point type handling.
351 (value_neg): Add fixed-point type handling.
352 * valops.c (value_cast_to_fixed_point): New function.
353 (value_cast): Add fixed-point type handling.
354
0c9150e4
JB
3552020-11-15 Joel Brobecker <brobecker@adacore.com>
356
357 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
358 range types.
359 * c-typeprint.c (c_type_print_varspec_prefix)
360 (c_type_print_varspec_suffix, c_type_print_base_1): Add
361 TYPE_CODE_FIXED_POINT handling.
362 * p-typeprint.c (pascal_type_print_varspec_prefix)
363 (pascal_type_print_varspec_suffix): Likewise.
364 * typeprint.c (print_type_fixed_point): New function.
365 * typeprint.h (print_type_fixed_point): Add declaration.
366
b26daff9
JB
3672020-11-15 Joel Brobecker <brobecker@adacore.com>
368
369 * printcmd.c (print_scalar_formatted): Add fixed-point type
370 handling when options->format is set.
371
09584414
JB
3722020-11-15 Joel Brobecker <brobecker@adacore.com>
373
374 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
375 * dwarf2/read.c (get_dwarf2_rational_constant)
376 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
377 (has_zero_over_zero_small_attribute): New functions.
378 read_base_type, set_die_type): Add fixed-point type handling.
379 * gdb-gdb.py.in: Add fixed-point type handling.
380 * gdbtypes.c: #include "gmp-utils.h".
381 (create_range_type, set_type_code): Add fixed-point type handling.
382 (init_fixed_point_type): New function.
383 (is_integral_type, is_scalar_type): Add fixed-point type handling.
384 (print_fixed_point_type_info): New function.
385 (recursive_dump_type, copy_type_recursive): Add fixed-point type
386 handling.
387 (fixed_point_type_storage): New typedef.
388 (fixed_point_objfile_key): New static global.
389 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
390 (fixed_point_type_base_type, fixed_point_scaling_factor): New
391 functions.
392 * gdbtypes.h: #include "gmp-utils.h".
393 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
394 (union type_specific) <fixed_point_info>: New field.
395 (struct fixed_point_type_info): New struct.
396 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
397 (init_fixed_point_type, is_fixed_point_type)
398 (fixed_point_type_base_type, fixed_point_scaling_factor)
399 (allocate_fixed_point_type_info): Add declarations.
400 * valprint.c (generic_val_print_fixed_point): New function.
401 (generic_value_print): Add fixed-point type handling.
402 * value.c (value_as_address, unpack_long): Add fixed-point type
403 handling.
404
e55c6530
JB
4052020-11-15 Joel Brobecker <brobecker@adacore.com>
406
407 * utils.h (uinteger_pow): Add declaration.
408 * utils.c (uinteger_pow): Moved here (without changes)...
409 * valarith.c (uinteger_pow): ... from here.
410
b34c74ab
JB
4112020-11-15 Joel Brobecker <brobecker@adacore.com>
412
40d9d2fd 413 * gmp-utils.h, gmp-utils.c: New file.
b34c74ab
JB
414 * unittests/gmp-utils-selftests.c: New file.
415 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
416 unittests/gmp-utils-selftests.c.
417 (COMMON_SFILES) Add gmp-utils.c.
418 (HFILES_NO_SRCDIR): Add gmp-utils.h.
419
1b4ac058
JB
4202020-11-15 Joel Brobecker <brobecker@adacore.com>
421
422 * configure.ac: Generate an error if a usable GMP library
423 could not be found.
424 * configure: Regenerate.
425
2c947d9b
JB
4262020-11-15 Joel Brobecker <brobecker@adacore.com>
427
428 * configure.ac: Add support for --with-libgmp-prefix.
429 * Makefile.in (LIBGMP): New variable.
430 (CLIBS): Include $(LIBGMP).
431 * configure, config.in: Regenerate
432
9dd02fc0
AB
4332020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
434
435 PR cli/26879
436 * f-exp.y (COMPLETE): New token.
437 (exp): Two new rules for tab-completion.
438 (saw_name_at_eof): New static global.
439 (last_was_structop): Likewise.
440 (yylex): Set new variables, and return COMPLETE token at the end
441 of the input stream in some cases.
442
758cb810
TT
4432020-11-14 Tom Tromey <tom@tromey.com>
444
445 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
446
749065b7
TT
4472020-11-14 Tom Tromey <tom@tromey.com>
448
449 * opencl-lang.c (opencl_component_ref): Make "comps" const.
450
2c5b1849
SM
4512020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
452
453 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
454
e8b2f0d9
TT
4552020-11-13 Tom Tromey <tom@tromey.com>
456
457 * c-lang.c (convert_ucn, convert_octal, convert_hex)
458 (convert_escape, parse_one_string): Constify.
459
25f4c262
KS
4602020-11-13 Keith Seitz <keiths@redhat.com>
461
462 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
463 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
464 outside of ELF segments" warning for debugin
465
9d3ab915
KS
4662020-11-13 Keith Seitz <keiths@redhat.com>
467
468 PR gdb/23034
469 * elfread.c (elf_symfile_segments): Output a BFD file name
470 for the "Loadable section ... outside of ELF segments" warning.
471
9ecab40c
SM
4722020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
473
474 PR gdb/26835
475 * arm-tdep.c (class arm_instruction_reader): New.
476 (target_arm_instruction_reader): New.
477 (arm_analyze_prologue): Add instruction reader parameter and use
478 it. Use arm_expand_immediate.
479 (class target_arm_instruction_reader): Adjust.
480 (arm_skip_prologue): Adjust.
481 (arm_expand_immediate): New.
482 (arm_scan_prologue): Adjust.
483 (arm_analyze_prologue_test): New.
484 (class test_arm_instruction_reader): New.
485
5a7cf527
AB
4862020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
487
488 * f-lang.c (fortran_argument_convert): Add declaration. Add
489 header comment, taken from f-lang.h. Make static.
490 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
491 (fortran_argument_convert): Delete declaration.
492
7bea47f0
AB
4932020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
494
495 * ada-exp.y (find_primitive_type): Make parameter const.
496 * ada-lang.c (enum ada_primitive_types): Delete.
497 (ada_language::language_arch_info): Update.
498 * c-lang.c (enum c_primitive_types): Delete.
499 (c_language_arch_info): Update.
500 (enum cplus_primitive_types): Delete.
501 (cplus_language::language_arch_info): Update.
502 * d-lang.c (enum d_primitive_types): Delete.
503 (d_language::language_arch_info): Update.
504 * f-lang.c (enum f_primitive_types): Delete.
505 (f_language::language_arch_info): Update.
506 * go-lang.c (enum go_primitive_types): Delete.
507 (go_language::language_arch_info): Update.
508 * language.c (auto_or_unknown_language::language_arch_info):
509 Update.
510 (language_gdbarch_post_init): Use obstack_new, use array indexing.
511 (language_string_char_type): Add header comment, call function in
512 language_arch_info.
513 (language_bool_type): Likewise
514 (language_arch_info::bool_type): Define.
515 (language_lookup_primitive_type_1): Delete.
516 (language_lookup_primitive_type): Rewrite as a templated function
517 to call function in language_arch_info, then instantiate twice.
518 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
519 (language_arch_info::lookup_primitive_type_and_symbol): Define.
520 (language_arch_info::lookup_primitive_type): Define twice with
521 different signatures.
522 (language_arch_info::lookup_primitive_type_as_symbol): Define.
523 (language_lookup_primitive_type_as_symbol): Rewrite to call a
524 member function in language_arch_info.
525 * language.h (language_arch_info): Complete rewrite.
526 (language_lookup_primitive_type): Make templated.
527 * m2-lang.c (enum m2_primitive_types): Delete.
528 (m2_language::language_arch_info): Update.
529 * opencl-lang.c (OCL_P_TYPE): Delete.
530 (enum opencl_primitive_types): Delete.
531 (opencl_type_data): Delete.
532 (builtin_opencl_type): Delete.
533 (lookup_opencl_vector_type): Update.
534 (opencl_language::language_arch_info): Update, lots of content
535 moved from...
536 (build_opencl_types): ...here. This function is now deleted.
537 (_initialize_opencl_language): Delete.
538 * p-lang.c (enum pascal_primitive_types): Delete.
539 (pascal_language::language_arch_info): Update.
540 * rust-lang.c (enum rust_primitive_types): Delete.
541 (rust_language::language_arch_info): Update.
542
bf6e5d01
SM
5432020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
544
545 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
546 dwarf2_queue_guard.
547
1350c3b4
SM
5482020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
549
550 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
551 comment.
552
6f738b01
SM
5532020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
554
555 * dwarf2/read.c (dwarf_read_debug_printf,
556 dwarf_read_debug_printf_v): New macros, use throughout the file.
557
10c19fad
SV
5582020-11-12 Shahab Vahedi <shahab@synopsys.com>
559
560 * arc-linux-tdep.c (collect_register): Populate "eret" by
561 "pc" value from the regcache when asked for "pc" value.
562
1f2624a3
TT
5632020-11-12 Tom Tromey <tom@tromey.com>
564
565 PR rust/26799:
566 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
567 exist.
568
ab33b152
AB
5692020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
570
571 * features/Makefile (XMLTOC): Add rx.xml.
572 (FEATURE_XMLFILES): Remove rx.xml.
573 (FEATURE_CFILES rule): Pass '-single-feature' flag.
574 * features/rx.c: Regenerate.
575 * features/rx.xml: Wrap in `target` tags, and reindent.
576 * target-descriptions.c (struct maint_print_c_tdesc_options): New
577 structure.
578 (maint_print_c_tdesc_opt_def): New typedef.
579 (maint_print_c_tdesc_opt_defs): New static global.
580 (make_maint_print_c_tdesc_options_def_group): New function.
581 (maint_print_c_tdesc_cmd): Make use of command line flags, only
582 print single feature C file for target descriptions containing a
583 single feature.
584 (maint_print_c_tdesc_cmd_completer): New function.
585 (_initialize_target_descriptions): Update call to register command
586 completer, and include command line flag in help text.
587
550820e1
AB
5882020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
589
590 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
591 numbers.
592 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
593 enum values.
594
baf20f76
TT
5952020-11-10 Tom Tromey <tom@tromey.com>
596
597 * value.h (internalvar_name): Update.
598 * value.c (internalvar_name): Make return type const.
599
caaece0e
TT
6002020-11-10 Tom Tromey <tom@tromey.com>
601
602 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
603 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
604 const.
605
8e20b4be
TT
6062020-11-10 Tom Tromey <tom@tromey.com>
607
608 * objc-lang.h (value_nsstring): Update.
609 * objc-lang.c (value_nsstring): Make "ptr" const.
610
86775fab
AB
6112020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
612
613 * expprint.c (print_subexp_funcall): Increment expression position
614 after reading argument count.
615 * f-lang.c (print_subexp_f): Skip over opcode before calling
616 common function.
617 (dump_subexp_body_f): Likewise.
618
3fed4c0b
RG
6192020-11-06 Romain Geissler <romain.geissler@amadeus.com>
620
621 PR python/26832
622 * configure: Regenerate.
623 * configure.ac: Check for python modules ctypes instead of
624 itertools.
625
ac3d4064
PA
6262020-11-06 Pedro Alves <pedro@palves.net>
627
628 * macroexp.c (struct macro_buffer): Split in two classes. Add
629 uses adjusted.
630 (struct shared_macro_buffer): New, factored out from struct
631 macro_buffer.
632 (struct growable_macro_buffer): New, factored out from struct
633 macro_buffer.
634 (set_token, get_comment, get_identifier, get_pp_number)
635 (get_character_constant, get_string_literal, get_punctuator)
636 (get_next_token_for_substitution): Constify parameters.
637 (substitute_args): Constify locals.
638
606decb2
TT
6392020-11-05 Tom Tromey <tom@tromey.com>
640
641 * dwarf2/read.c (read_cutu_die_from_dwo)
642 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
643 (build_type_psymtabs_1): Update.
644 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
645 parameter.
646 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
647 Don't read section. Add assert.
648
9c91c725
TT
6492020-11-04 Tom Tromey <tromey@adacore.com>
650
651 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
652
8d9fd3a1
TT
6532020-11-04 Tom Tromey <tromey@adacore.com>
654
655 * ada-typeprint.c (ada_print_type): Handle __T types.
656
d8f62e84
TT
6572020-11-04 Tom Tromey <tromey@adacore.com>
658
659 * dwarf2/read.c (add_partial_symbol, process_die):
660 Handle DW_TAG_array_type.
661 (is_type_tag_for_partial): Add "lang" parameter.
662 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
663
7ff5b937
TT
6642020-11-04 Tom Tromey <tromey@adacore.com>
665
666 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
667
10f6a3ad
TT
6682020-11-04 Tom Tromey <tromey@adacore.com>
669
670 * dwarf2/read.c (read_array_type): Only apply stride to innermost
671 array.
672
b72795a8
TT
6732020-11-04 Tom Tromey <tromey@adacore.com>
674
675 * gdbtypes.c (update_static_array_size): Handle bit stride.
676
24aa1b02
TT
6772020-11-04 Tom Tromey <tromey@adacore.com>
678
679 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
680
c9a28cbe
TT
6812020-11-04 Tom Tromey <tromey@adacore.com>
682
683 * ada-lang.c (ada_is_any_packed_array_type): New function.
684 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
685
57567375
TT
6862020-11-04 Tom Tromey <tromey@adacore.com>
687
688 * dwarf2/read.c (recognize_bound_expression)
689 (quirk_ada_thick_pointer): New functions.
690 (read_array_type): Call quirk_ada_thick_pointer.
691 (set_die_type): Add "skip_data_location" parameter.
692 (quirk_ada_thick_pointer): New function.
693 (process_structure_scope): Call quirk_ada_thick_pointer.
694 * ada-lang.c (ada_is_unconstrained_packed_array_type)
695 (decode_packed_array_bitsize): Handle thick pointers without
696 parallel types.
697 (ada_is_gnat_encoded_packed_array_type): Rename from
698 ada_is_packed_array_type.
699 (ada_is_constrained_packed_array_type): Update.
700 * ada-valprint.c (ada_val_print_gnat_array): Remove.
701 (ada_value_print_1): Use ada_get_decoded_value.
702
a7400e44
TT
7032020-11-04 Tom Tromey <tromey@adacore.com>
704
705 * ada-lang.c (recursively_update_array_bitsize): New function.
706 (decode_constrained_packed_array_type): Call it.
707
75fd6a26
TT
7082020-11-04 Tom Tromey <tromey@adacore.com>
709
710 * ada-lang.c (to_fixed_array_type): Error if
711 decode_constrained_packed_array_type returns NULL.
712
93f9561e
TT
7132020-11-04 Tom Tromey <tromey@adacore.com>
714
715 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
716
257e02d8
TT
7172020-11-02 Tom Tromey <tromey@adacore.com>
718
719 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
720 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
721 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
722 * amd64-ravenscar-thread.c: New file.
723 * amd64-ravenscar-thread.h: New file.
724 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
725 * configure.tgt (amd64_tobjs): Add ravenscar objects.
726
74d877e5
AB
7272020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
728
729 * main.c (execute_cmdargs): New function.
730 (captured_main_1): Make use of execute_cmdargs.
731
64aaad63
AB
7322020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
733
734 * NEWS: Mention changes to config file search path.
735 * main.c
736
5b3d3560
TT
7372020-11-02 Tom Tromey <tromey@adacore.com>
738
739 * python/python.c: Consolidate two HAVE_PYTHON blocks.
740 (python_GdbModuleDef): Move earlier. Now static.
741 (do_start_initialization): Consolidate some IS_PY3K blocks.
742
dda83cd7
SM
7432020-11-02 Simon Marchi <simon.marchi@efficios.com>
744
745 * aarch64-linux-tdep.c: Fix indentation.
746 * aarch64-ravenscar-thread.c: Fix indentation.
747 * aarch64-tdep.c: Fix indentation.
748 * aarch64-tdep.h: Fix indentation.
749 * ada-lang.c: Fix indentation.
750 * ada-lang.h: Fix indentation.
751 * ada-tasks.c: Fix indentation.
752 * ada-typeprint.c: Fix indentation.
753 * ada-valprint.c: Fix indentation.
754 * ada-varobj.c: Fix indentation.
755 * addrmap.c: Fix indentation.
756 * addrmap.h: Fix indentation.
757 * agent.c: Fix indentation.
758 * aix-thread.c: Fix indentation.
759 * alpha-bsd-nat.c: Fix indentation.
760 * alpha-linux-tdep.c: Fix indentation.
761 * alpha-mdebug-tdep.c: Fix indentation.
762 * alpha-nbsd-tdep.c: Fix indentation.
763 * alpha-obsd-tdep.c: Fix indentation.
764 * alpha-tdep.c: Fix indentation.
765 * amd64-bsd-nat.c: Fix indentation.
766 * amd64-darwin-tdep.c: Fix indentation.
767 * amd64-linux-nat.c: Fix indentation.
768 * amd64-linux-tdep.c: Fix indentation.
769 * amd64-nat.c: Fix indentation.
770 * amd64-obsd-tdep.c: Fix indentation.
771 * amd64-tdep.c: Fix indentation.
772 * amd64-windows-tdep.c: Fix indentation.
773 * annotate.c: Fix indentation.
774 * arc-tdep.c: Fix indentation.
775 * arch-utils.c: Fix indentation.
776 * arch/arm-get-next-pcs.c: Fix indentation.
777 * arch/arm.c: Fix indentation.
778 * arm-linux-nat.c: Fix indentation.
779 * arm-linux-tdep.c: Fix indentation.
780 * arm-nbsd-tdep.c: Fix indentation.
781 * arm-pikeos-tdep.c: Fix indentation.
782 * arm-tdep.c: Fix indentation.
783 * arm-tdep.h: Fix indentation.
784 * arm-wince-tdep.c: Fix indentation.
785 * auto-load.c: Fix indentation.
786 * auxv.c: Fix indentation.
787 * avr-tdep.c: Fix indentation.
788 * ax-gdb.c: Fix indentation.
789 * ax-general.c: Fix indentation.
790 * bfin-linux-tdep.c: Fix indentation.
791 * block.c: Fix indentation.
792 * block.h: Fix indentation.
793 * blockframe.c: Fix indentation.
794 * bpf-tdep.c: Fix indentation.
795 * break-catch-sig.c: Fix indentation.
796 * break-catch-syscall.c: Fix indentation.
797 * break-catch-throw.c: Fix indentation.
798 * breakpoint.c: Fix indentation.
799 * breakpoint.h: Fix indentation.
800 * bsd-uthread.c: Fix indentation.
801 * btrace.c: Fix indentation.
802 * build-id.c: Fix indentation.
803 * buildsym-legacy.h: Fix indentation.
804 * buildsym.c: Fix indentation.
805 * c-typeprint.c: Fix indentation.
806 * c-valprint.c: Fix indentation.
807 * c-varobj.c: Fix indentation.
808 * charset.c: Fix indentation.
809 * cli/cli-cmds.c: Fix indentation.
810 * cli/cli-decode.c: Fix indentation.
811 * cli/cli-decode.h: Fix indentation.
812 * cli/cli-script.c: Fix indentation.
813 * cli/cli-setshow.c: Fix indentation.
814 * coff-pe-read.c: Fix indentation.
815 * coffread.c: Fix indentation.
816 * compile/compile-cplus-types.c: Fix indentation.
817 * compile/compile-object-load.c: Fix indentation.
818 * compile/compile-object-run.c: Fix indentation.
819 * completer.c: Fix indentation.
820 * corefile.c: Fix indentation.
821 * corelow.c: Fix indentation.
822 * cp-abi.h: Fix indentation.
823 * cp-namespace.c: Fix indentation.
824 * cp-support.c: Fix indentation.
825 * cp-valprint.c: Fix indentation.
826 * cris-linux-tdep.c: Fix indentation.
827 * cris-tdep.c: Fix indentation.
828 * darwin-nat-info.c: Fix indentation.
829 * darwin-nat.c: Fix indentation.
830 * darwin-nat.h: Fix indentation.
831 * dbxread.c: Fix indentation.
832 * dcache.c: Fix indentation.
833 * disasm.c: Fix indentation.
834 * dtrace-probe.c: Fix indentation.
835 * dwarf2/abbrev.c: Fix indentation.
836 * dwarf2/attribute.c: Fix indentation.
837 * dwarf2/expr.c: Fix indentation.
838 * dwarf2/frame.c: Fix indentation.
839 * dwarf2/index-cache.c: Fix indentation.
840 * dwarf2/index-write.c: Fix indentation.
841 * dwarf2/line-header.c: Fix indentation.
842 * dwarf2/loc.c: Fix indentation.
843 * dwarf2/macro.c: Fix indentation.
844 * dwarf2/read.c: Fix indentation.
845 * dwarf2/read.h: Fix indentation.
846 * elfread.c: Fix indentation.
847 * eval.c: Fix indentation.
848 * event-top.c: Fix indentation.
849 * exec.c: Fix indentation.
850 * exec.h: Fix indentation.
851 * expprint.c: Fix indentation.
852 * f-lang.c: Fix indentation.
853 * f-typeprint.c: Fix indentation.
854 * f-valprint.c: Fix indentation.
855 * fbsd-nat.c: Fix indentation.
856 * fbsd-tdep.c: Fix indentation.
857 * findvar.c: Fix indentation.
858 * fork-child.c: Fix indentation.
859 * frame-unwind.c: Fix indentation.
860 * frame-unwind.h: Fix indentation.
861 * frame.c: Fix indentation.
862 * frv-linux-tdep.c: Fix indentation.
863 * frv-tdep.c: Fix indentation.
864 * frv-tdep.h: Fix indentation.
865 * ft32-tdep.c: Fix indentation.
866 * gcore.c: Fix indentation.
867 * gdb_bfd.c: Fix indentation.
868 * gdbarch.sh: Fix indentation.
869 * gdbarch.c: Re-generate
870 * gdbarch.h: Re-generate.
871 * gdbcore.h: Fix indentation.
872 * gdbthread.h: Fix indentation.
873 * gdbtypes.c: Fix indentation.
874 * gdbtypes.h: Fix indentation.
875 * glibc-tdep.c: Fix indentation.
876 * gnu-nat.c: Fix indentation.
877 * gnu-nat.h: Fix indentation.
878 * gnu-v2-abi.c: Fix indentation.
879 * gnu-v3-abi.c: Fix indentation.
880 * go32-nat.c: Fix indentation.
881 * guile/guile-internal.h: Fix indentation.
882 * guile/scm-cmd.c: Fix indentation.
883 * guile/scm-frame.c: Fix indentation.
884 * guile/scm-iterator.c: Fix indentation.
885 * guile/scm-math.c: Fix indentation.
886 * guile/scm-ports.c: Fix indentation.
887 * guile/scm-pretty-print.c: Fix indentation.
888 * guile/scm-value.c: Fix indentation.
889 * h8300-tdep.c: Fix indentation.
890 * hppa-linux-nat.c: Fix indentation.
891 * hppa-linux-tdep.c: Fix indentation.
892 * hppa-nbsd-nat.c: Fix indentation.
893 * hppa-nbsd-tdep.c: Fix indentation.
894 * hppa-obsd-nat.c: Fix indentation.
895 * hppa-tdep.c: Fix indentation.
896 * hppa-tdep.h: Fix indentation.
897 * i386-bsd-nat.c: Fix indentation.
898 * i386-darwin-nat.c: Fix indentation.
899 * i386-darwin-tdep.c: Fix indentation.
900 * i386-dicos-tdep.c: Fix indentation.
901 * i386-gnu-nat.c: Fix indentation.
902 * i386-linux-nat.c: Fix indentation.
903 * i386-linux-tdep.c: Fix indentation.
904 * i386-nto-tdep.c: Fix indentation.
905 * i386-obsd-tdep.c: Fix indentation.
906 * i386-sol2-nat.c: Fix indentation.
907 * i386-tdep.c: Fix indentation.
908 * i386-tdep.h: Fix indentation.
909 * i386-windows-tdep.c: Fix indentation.
910 * i387-tdep.c: Fix indentation.
911 * i387-tdep.h: Fix indentation.
912 * ia64-libunwind-tdep.c: Fix indentation.
913 * ia64-libunwind-tdep.h: Fix indentation.
914 * ia64-linux-nat.c: Fix indentation.
915 * ia64-linux-tdep.c: Fix indentation.
916 * ia64-tdep.c: Fix indentation.
917 * ia64-tdep.h: Fix indentation.
918 * ia64-vms-tdep.c: Fix indentation.
919 * infcall.c: Fix indentation.
920 * infcmd.c: Fix indentation.
921 * inferior.c: Fix indentation.
922 * infrun.c: Fix indentation.
923 * iq2000-tdep.c: Fix indentation.
924 * language.c: Fix indentation.
925 * linespec.c: Fix indentation.
926 * linux-fork.c: Fix indentation.
927 * linux-nat.c: Fix indentation.
928 * linux-tdep.c: Fix indentation.
929 * linux-thread-db.c: Fix indentation.
930 * lm32-tdep.c: Fix indentation.
931 * m2-lang.c: Fix indentation.
932 * m2-typeprint.c: Fix indentation.
933 * m2-valprint.c: Fix indentation.
934 * m32c-tdep.c: Fix indentation.
935 * m32r-linux-tdep.c: Fix indentation.
936 * m32r-tdep.c: Fix indentation.
937 * m68hc11-tdep.c: Fix indentation.
938 * m68k-bsd-nat.c: Fix indentation.
939 * m68k-linux-nat.c: Fix indentation.
940 * m68k-linux-tdep.c: Fix indentation.
941 * m68k-tdep.c: Fix indentation.
942 * machoread.c: Fix indentation.
943 * macrocmd.c: Fix indentation.
944 * macroexp.c: Fix indentation.
945 * macroscope.c: Fix indentation.
946 * macrotab.c: Fix indentation.
947 * macrotab.h: Fix indentation.
948 * main.c: Fix indentation.
949 * mdebugread.c: Fix indentation.
950 * mep-tdep.c: Fix indentation.
951 * mi/mi-cmd-catch.c: Fix indentation.
952 * mi/mi-cmd-disas.c: Fix indentation.
953 * mi/mi-cmd-env.c: Fix indentation.
954 * mi/mi-cmd-stack.c: Fix indentation.
955 * mi/mi-cmd-var.c: Fix indentation.
956 * mi/mi-cmds.c: Fix indentation.
957 * mi/mi-main.c: Fix indentation.
958 * mi/mi-parse.c: Fix indentation.
959 * microblaze-tdep.c: Fix indentation.
960 * minidebug.c: Fix indentation.
961 * minsyms.c: Fix indentation.
962 * mips-linux-nat.c: Fix indentation.
963 * mips-linux-tdep.c: Fix indentation.
964 * mips-nbsd-tdep.c: Fix indentation.
965 * mips-tdep.c: Fix indentation.
966 * mn10300-linux-tdep.c: Fix indentation.
967 * mn10300-tdep.c: Fix indentation.
968 * moxie-tdep.c: Fix indentation.
969 * msp430-tdep.c: Fix indentation.
970 * namespace.h: Fix indentation.
971 * nat/fork-inferior.c: Fix indentation.
972 * nat/gdb_ptrace.h: Fix indentation.
973 * nat/linux-namespaces.c: Fix indentation.
974 * nat/linux-osdata.c: Fix indentation.
975 * nat/netbsd-nat.c: Fix indentation.
976 * nat/x86-dregs.c: Fix indentation.
977 * nbsd-nat.c: Fix indentation.
978 * nbsd-tdep.c: Fix indentation.
979 * nios2-linux-tdep.c: Fix indentation.
980 * nios2-tdep.c: Fix indentation.
981 * nto-procfs.c: Fix indentation.
982 * nto-tdep.c: Fix indentation.
983 * objfiles.c: Fix indentation.
984 * objfiles.h: Fix indentation.
985 * opencl-lang.c: Fix indentation.
986 * or1k-tdep.c: Fix indentation.
987 * osabi.c: Fix indentation.
988 * osabi.h: Fix indentation.
989 * osdata.c: Fix indentation.
990 * p-lang.c: Fix indentation.
991 * p-typeprint.c: Fix indentation.
992 * p-valprint.c: Fix indentation.
993 * parse.c: Fix indentation.
994 * ppc-linux-nat.c: Fix indentation.
995 * ppc-linux-tdep.c: Fix indentation.
996 * ppc-nbsd-nat.c: Fix indentation.
997 * ppc-nbsd-tdep.c: Fix indentation.
998 * ppc-obsd-nat.c: Fix indentation.
999 * ppc-ravenscar-thread.c: Fix indentation.
1000 * ppc-sysv-tdep.c: Fix indentation.
1001 * ppc64-tdep.c: Fix indentation.
1002 * printcmd.c: Fix indentation.
1003 * proc-api.c: Fix indentation.
1004 * producer.c: Fix indentation.
1005 * producer.h: Fix indentation.
1006 * prologue-value.c: Fix indentation.
1007 * prologue-value.h: Fix indentation.
1008 * psymtab.c: Fix indentation.
1009 * python/py-arch.c: Fix indentation.
1010 * python/py-bpevent.c: Fix indentation.
1011 * python/py-event.c: Fix indentation.
1012 * python/py-event.h: Fix indentation.
1013 * python/py-finishbreakpoint.c: Fix indentation.
1014 * python/py-frame.c: Fix indentation.
1015 * python/py-framefilter.c: Fix indentation.
1016 * python/py-inferior.c: Fix indentation.
1017 * python/py-infthread.c: Fix indentation.
1018 * python/py-objfile.c: Fix indentation.
1019 * python/py-prettyprint.c: Fix indentation.
1020 * python/py-registers.c: Fix indentation.
1021 * python/py-signalevent.c: Fix indentation.
1022 * python/py-stopevent.c: Fix indentation.
1023 * python/py-stopevent.h: Fix indentation.
1024 * python/py-threadevent.c: Fix indentation.
1025 * python/py-tui.c: Fix indentation.
1026 * python/py-unwind.c: Fix indentation.
1027 * python/py-value.c: Fix indentation.
1028 * python/py-xmethods.c: Fix indentation.
1029 * python/python-internal.h: Fix indentation.
1030 * python/python.c: Fix indentation.
1031 * ravenscar-thread.c: Fix indentation.
1032 * record-btrace.c: Fix indentation.
1033 * record-full.c: Fix indentation.
1034 * record.c: Fix indentation.
1035 * reggroups.c: Fix indentation.
1036 * regset.h: Fix indentation.
1037 * remote-fileio.c: Fix indentation.
1038 * remote.c: Fix indentation.
1039 * reverse.c: Fix indentation.
1040 * riscv-linux-tdep.c: Fix indentation.
1041 * riscv-ravenscar-thread.c: Fix indentation.
1042 * riscv-tdep.c: Fix indentation.
1043 * rl78-tdep.c: Fix indentation.
1044 * rs6000-aix-tdep.c: Fix indentation.
1045 * rs6000-lynx178-tdep.c: Fix indentation.
1046 * rs6000-nat.c: Fix indentation.
1047 * rs6000-tdep.c: Fix indentation.
1048 * rust-lang.c: Fix indentation.
1049 * rx-tdep.c: Fix indentation.
1050 * s12z-tdep.c: Fix indentation.
1051 * s390-linux-tdep.c: Fix indentation.
1052 * score-tdep.c: Fix indentation.
1053 * ser-base.c: Fix indentation.
1054 * ser-mingw.c: Fix indentation.
1055 * ser-uds.c: Fix indentation.
1056 * ser-unix.c: Fix indentation.
1057 * serial.c: Fix indentation.
1058 * sh-linux-tdep.c: Fix indentation.
1059 * sh-nbsd-tdep.c: Fix indentation.
1060 * sh-tdep.c: Fix indentation.
1061 * skip.c: Fix indentation.
1062 * sol-thread.c: Fix indentation.
1063 * solib-aix.c: Fix indentation.
1064 * solib-darwin.c: Fix indentation.
1065 * solib-frv.c: Fix indentation.
1066 * solib-svr4.c: Fix indentation.
1067 * solib.c: Fix indentation.
1068 * source.c: Fix indentation.
1069 * sparc-linux-tdep.c: Fix indentation.
1070 * sparc-nbsd-tdep.c: Fix indentation.
1071 * sparc-obsd-tdep.c: Fix indentation.
1072 * sparc-ravenscar-thread.c: Fix indentation.
1073 * sparc-tdep.c: Fix indentation.
1074 * sparc64-linux-tdep.c: Fix indentation.
1075 * sparc64-nbsd-tdep.c: Fix indentation.
1076 * sparc64-obsd-tdep.c: Fix indentation.
1077 * sparc64-tdep.c: Fix indentation.
1078 * stabsread.c: Fix indentation.
1079 * stack.c: Fix indentation.
1080 * stap-probe.c: Fix indentation.
1081 * stubs/ia64vms-stub.c: Fix indentation.
1082 * stubs/m32r-stub.c: Fix indentation.
1083 * stubs/m68k-stub.c: Fix indentation.
1084 * stubs/sh-stub.c: Fix indentation.
1085 * stubs/sparc-stub.c: Fix indentation.
1086 * symfile-mem.c: Fix indentation.
1087 * symfile.c: Fix indentation.
1088 * symfile.h: Fix indentation.
1089 * symmisc.c: Fix indentation.
1090 * symtab.c: Fix indentation.
1091 * symtab.h: Fix indentation.
1092 * target-float.c: Fix indentation.
1093 * target.c: Fix indentation.
1094 * target.h: Fix indentation.
1095 * tic6x-tdep.c: Fix indentation.
1096 * tilegx-linux-tdep.c: Fix indentation.
1097 * tilegx-tdep.c: Fix indentation.
1098 * top.c: Fix indentation.
1099 * tracefile-tfile.c: Fix indentation.
1100 * tracepoint.c: Fix indentation.
1101 * tui/tui-disasm.c: Fix indentation.
1102 * tui/tui-io.c: Fix indentation.
1103 * tui/tui-regs.c: Fix indentation.
1104 * tui/tui-stack.c: Fix indentation.
1105 * tui/tui-win.c: Fix indentation.
1106 * tui/tui-winsource.c: Fix indentation.
1107 * tui/tui.c: Fix indentation.
1108 * typeprint.c: Fix indentation.
1109 * ui-out.h: Fix indentation.
1110 * unittests/copy_bitwise-selftests.c: Fix indentation.
1111 * unittests/memory-map-selftests.c: Fix indentation.
1112 * utils.c: Fix indentation.
1113 * v850-tdep.c: Fix indentation.
1114 * valarith.c: Fix indentation.
1115 * valops.c: Fix indentation.
1116 * valprint.c: Fix indentation.
1117 * valprint.h: Fix indentation.
1118 * value.c: Fix indentation.
1119 * value.h: Fix indentation.
1120 * varobj.c: Fix indentation.
1121 * vax-tdep.c: Fix indentation.
1122 * windows-nat.c: Fix indentation.
1123 * windows-tdep.c: Fix indentation.
1124 * xcoffread.c: Fix indentation.
1125 * xml-syscall.c: Fix indentation.
1126 * xml-tdesc.c: Fix indentation.
1127 * xstormy16-tdep.c: Fix indentation.
1128 * xtensa-config.c: Fix indentation.
1129 * xtensa-linux-nat.c: Fix indentation.
1130 * xtensa-linux-tdep.c: Fix indentation.
1131 * xtensa-tdep.c: Fix indentation.
1132
e1f57067
AB
11332020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1134 Craig Blackmore <craig.blackmore@embecosm.com>
1135
1136 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
1137 as an unsigned value.
1138
ae7754b2
TT
11392020-11-01 Tom Tromey <tom@tromey.com>
1140
1141 * dbxread.c (dbx_end_psymtab): Update.
1142 * dwarf2/read.c (process_psymtab_comp_unit_reader)
1143 (build_type_psymtabs_reader): Update.
1144 * xcoffread.c (xcoff_end_psymtab): Update.
1145 * ctfread.c (scan_partial_symbols): Update.
1146 * psymtab.c (sort_pst_symbols): Remove.
1147 (partial_symtab::end): Rename from end_psymtab_common. Inline
1148 sort_pst_symbols.
1149 * psympriv.h (struct partial_symtab) <end>: New method.
1150 (end_psymtab_common): Don't declare.
1151
0684bb51
TT
11522020-11-01 Tom Tromey <tom@tromey.com>
1153
1154 * symmisc.c (count_psyms): New function.
1155 (print_objfile_statistics): Use it.
1156 * psymtab.c (append_psymbol_to_list): Remove.
1157 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
1158 * objfiles.h (struct objstats) <n_psyms>: Remove.
1159
089002bb
TT
11602020-11-01 Tom Tromey <tom@tromey.com>
1161
1162 * dbxread.c (dbx_end_psymtab): Update.
1163 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
1164 (build_type_psymtabs_reader): Update.
1165 * xcoffread.c (xcoff_end_psymtab): Update.
1166 * ctfread.c (scan_partial_symbols): Update.
1167 * psympriv.h (end_psymtab_common): Update.
1168 * psymtab.c (end_psymtab_common): Remove objfile parameter.
1169 (sort_pst_symbols): Likewise.
1170
525454d6
TT
11712020-11-01 Tom Tromey <tom@tromey.com>
1172
1173 * dbxread.c (dbx_symfile_read): Update.
1174 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
1175 * xcoffread.c (xcoff_initial_scan): Update.
1176 * psympriv.h (init_psymbol_list): Don't declare.
1177 * psymtab.c (init_psymbol_list): Remove.
1178
60bd1d53
JB
11792020-11-01 Joel Brobecker <brobecker@adacore.com>
1180
1181 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
1182 gnat_encoded_fixed_type_info. Update all callers.
1183
db99d0d0
JB
11842020-11-01 Joel Brobecker <brobecker@adacore.com>
1185
1186 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
1187 line too long.
1188
75f24e86
JB
11892020-11-01 Joel Brobecker <brobecker@adacore.com>
1190
1191 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
1192 cast_from_fixed. Update all callers.
1193 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
1194 Update all callers.
1195 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
1196 Update all callers.
1197 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
1198 ada_scaling_factor.
1199 * ada-typeprint.c: Replace call to ada_scaling_factor by call
1200 to print_gnat_encoded_fixed_point_type.
1201 * ada-valprint.c: Likewise.
1202
4f0469cd
AB
12032020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1204
1205 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
1206 (debug_prefixed_printf): Add check of debug_displaced flag.
1207 * linux-nat.c (linux_nat_debug_printf): Add check of
1208 debug_linux_nat flag.
1209
17417fb0
SM
12102020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1211
1212 * infrun.c (infrun_debug_printf_1): Remove.
1213 (displaced_debug_printf_1): Remove.
1214 (stop_all_threads): Use debug_prefixed_printf.
1215 * infrun.h (infrun_debug_printf_1): Remove.
1216 (infrun_debug_printf): Use debug_prefixed_printf.
1217 (displaced_debug_printf_1): Remove.
1218 (displaced_debug_printf): Use debug_prefixed_printf.
1219 * linux-nat.c (linux_nat_debug_printf_1): Remove.
1220 (linux_nat_debug_printf): Use debug_prefixed_printf.
1221
ad6dba1c
SM
12222020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1223
1224 * configure: Re-generate.
1225 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
1226 AC_LANG_PROGRAM.
1227
b6fb30ed
SM
12282020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1229
1230 * configure: Re-generate.
1231
5164c117
SM
12322020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1233
1234 * configure: Re-generate.
1235
864ca435
SM
12362020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1237
1238 * configure: Re-generate.
1239
b9442ec1
SM
12402020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1241
1242 * configure: Re-generate.
1243
294f2697
SM
12442020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1245
1246 * acinclude.m4: Modernize.
1247 * configure: Re-generate.
1248
5593a99a
SM
12492020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1250
1251 * configure.ac: Modernize.
1252 * configure: Re-generate.
1253
e41fda1d
SM
12542020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1255
1256 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
1257 * configure: Re-generate.
1258 * configure.ac: Remove AM_PROG_CC_STDC.
1259
91e1a0ed
SM
12602020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1261
1262 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
1263 AC_CANONICAL_SYSTEM.
1264 * configure: Re-generate.
1265
136821d9
SM
12662020-10-30 Simon Marchi <simon.marchi@efficios.com>
1267
1268 * infrun.h (displaced_debug_printf): New macro. Replace
1269 displaced debug prints throughout to use it.
1270 (displaced_debug_printf_1): New declaration.
1271 (displaced_step_dump_bytes): Return string, remove ui_file
1272 parameter, update all callers.
1273 * infrun.c (displaced_debug_printf_1): New function.
1274 (displaced_step_dump_bytes): Return string, remove ui_file
1275 parameter
1276
aa2045e7
SM
12772020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
1278
1279 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
1280
b1ec2735
TT
12812020-10-30 Tom Tromey <tromey@adacore.com>
1282
1283 * Makefile.in (stamp-init): Depend on config.status.
1284
b78b3a29
TBA
12852020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1286
1287 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
1288
d70bdd3c
PA
12892020-10-30 Pedro Alves <pedro@palves.net>
1290
1291 * thread.c (lookup_selected_frame): Move ...
1292 * frame.c (lookup_selected_frame): ... here.
1293
79952e69
PA
12942020-10-30 Pedro Alves <pedro@palves.net>
1295
1296 * blockframe.c (block_innermost_frame): Use get_selected_frame.
1297 * frame.c
1298 (scoped_restore_selected_frame::scoped_restore_selected_frame):
1299 Use save_selected_frame. Save language as well.
1300 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
1301 Use restore_selected_frame, and restore language as well.
1302 (selected_frame_id, selected_frame_level): New.
1303 (selected_frame): Update comments.
1304 (save_selected_frame, restore_selected_frame): New.
1305 (get_selected_frame): Use lookup_selected_frame.
1306 (get_selected_frame_if_set): Delete.
1307 (select_frame): Record selected_frame_level and selected_frame_id.
1308 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
1309 fields.
1310 (get_selected_frame): Make 'message' parameter optional.
1311 (get_selected_frame_if_set): Delete declaration.
1312 (select_frame): Update comments.
1313 (save_selected_frame, restore_selected_frame)
1314 (lookup_selected_frame): Declare.
1315 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
1316 * infrun.c (struct infcall_control_state) <selected_frame_level>:
1317 New field.
1318 (save_infcall_control_state): Use save_selected_frame.
1319 (restore_selected_frame): Delete.
1320 (restore_infcall_control_state): Use restore_selected_frame.
1321 * stack.c (select_frame_command_core, frame_command_core): Use
1322 get_selected_frame.
1323 * thread.c (restore_selected_frame): Rename to ...
1324 (lookup_selected_frame): ... this and make extern. Select the
1325 current frame if the frame level is -1.
1326 (scoped_restore_current_thread::restore): Also restore the
1327 language.
1328 (scoped_restore_current_thread::~scoped_restore_current_thread):
1329 Don't try/catch.
1330 (scoped_restore_current_thread::scoped_restore_current_thread):
1331 Save the language as well. Use save_selected_frame.
1332
58103c33
SM
13332020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1334
1335 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
1336 documentation.
1337 * gdbarch.h: Re-generate.
1338
40a53766
SM
13392020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1340
1341 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
1342 parameter.
1343 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
1344 Likewise.
1345 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1346 Likewise.
1347 * arch-utils.c (default_displaced_step_hw_singlestep):
1348 Likewise.
1349 * arch-utils.h (default_displaced_step_hw_singlestep):
1350 Likewise.
1351 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
1352 Likewise.
1353 * s390-tdep.c (s390_displaced_step_hw_singlestep):
1354 Likewise.
1355 * gdbarch.c: Re-generate.
1356 * gdbarch.h: Re-generate.
1357 * infrun.c (resume_1): Adjust.
1358
8407f91b
TT
13592020-10-29 Tom Tromey <tom@tromey.com>
1360
1361 * progspace.c (program_space::~program_space): Don't call
1362 exec_close.
1363
5008b3b2
TT
13642020-10-29 Tom Tromey <tom@tromey.com>
1365
1366 * exec.c (exec_target::close): Don't change current program
1367 space.
1368
d9eebde0
TT
13692020-10-29 Tom Tromey <tom@tromey.com>
1370
1371 * symfile.c (add_symbol_file_command): Update.
1372 * exec.c (program_space::add_target_sections): Rename.
1373 * symfile-mem.c (symbol_file_add_from_memory): Update.
1374 * progspace.h (struct program_space) <add_target_sections>:
1375 Declare new overload.
1376 * exec.h (add_target_sections_of_objfile): Don't declare.
1377
3769e227
TT
13782020-10-29 Tom Tromey <tom@tromey.com>
1379
1380 * solib.c (solib_map_sections): Update.
1381 * exec.c (program_space::add_target_sections): Now a method.
1382 (exec_file_attach): Update.
1383 * exec.h (add_target_sections): Don't declare.
1384 * progspace.h (struct program_space) <add_target_sections>:
1385 Declare.
1386
2a3f84af
TT
13872020-10-29 Tom Tromey <tom@tromey.com>
1388
1389 * progspace.h (struct program_space) <remove_target_sections>:
1390 Declare.
1391 * exec.c (program_space::remove_target_sections): Now a method.
1392 * exec.h (remove_target_sections): Don't declare.
1393
004eecfd
TT
13942020-10-29 Tom Tromey <tom@tromey.com>
1395
1396 * inferior.c (delete_inferior): Update.
1397 * progspace.c (program_space::empty): Rename from
1398 program_space_empty_p. Return bool.
1399 * progspace.h (struct program_space) <empty>: New method.
1400 (program_space_empty_p): Don't declare.
1401
e39fb971
TT
14022020-10-29 Tom Tromey <tom@tromey.com>
1403
1404 * progspace.c (program_space::~program_space): Don't call
1405 clear_program_space_solib_cache.
1406 (program_space::clear_solib_cache): Rename from
1407 clear_solib_cache.
1408 * solib.c (handle_solib_event): Update.
1409 * progspace.h (struct program_space) <clear_solib_cache>: New
1410 method.
1411 (clear_program_space_solib_cache): Don't declare.
1412
a42d7dd8
TT
14132020-10-29 Tom Tromey <tom@tromey.com>
1414
1415 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1416 * target.c (info_target_command): Update.
1417 * symfile.c (syms_from_objfile_1, finish_new_objfile)
1418 (symbol_file_clear, reread_symbols): Update.
1419 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
1420 * stabsread.c (scan_file_globals): Update.
1421 * solib.c (update_solib_list): Update.
1422 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
1423 (svr4_fetch_objfile_link_map, enable_break)
1424 (svr4_relocate_main_executable)
1425 (svr4_iterate_over_objfiles_in_search_order): Update.
1426 * solib-frv.c (lm_base, enable_break)
1427 (frv_relocate_main_executable): Update.
1428 (main_got, frv_fdpic_find_canonical_descriptor): Update.
1429 (frv_fetch_objfile_link_map): Update.
1430 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
1431 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
1432 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
1433 * remote.c (remote_target::get_offsets): Update.
1434 (remote_target::start_remote)
1435 (extended_remote_target::post_attach): Update.
1436 * objfiles.c (entry_point_address_query): Update.
1437 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
1438 * minsyms.c (get_symbol_leading_char): Update.
1439 * frame.c (inside_main_func): Update.
1440 * progspace.h (symfile_objfile): Remove macro.
1441
19f6550e
TT
14422020-10-29 Tom Tromey <tom@tromey.com>
1443
1444 * exec.c (exec_file_attach): Update.
1445 * progspace.c (program_space::exec_close): Update.
1446 * progspace.h (struct program_space) <ebfd>: Now a
1447 gdb_bfd_ref_ptr.
1448 <set_exec_bfd>: Change argument type.
1449 <exec_bfd>: Update.
1450
7e10abd1
TT
14512020-10-29 Tom Tromey <tom@tromey.com>
1452
1453 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1454 * symfile.c (reread_symbols): Update.
1455 * symfile-mem.c (add_symbol_file_from_memory_command)
1456 (add_vsyscall_page): Update.
1457 * source-cache.c (source_cache::get_plain_source_lines): Update.
1458 * solib-svr4.c (find_program_interpreter, elf_locate_base)
1459 (svr4_current_sos_direct, svr4_exec_displacement)
1460 (svr4_relocate_main_executable): Update.
1461 (svr4_iterate_over_objfiles_in_search_order): Update.
1462 * solib-frv.c (enable_break2, enable_break): Update.
1463 * solib-dsbt.c (lm_base, enable_break): Update.
1464 * solib-darwin.c (find_program_interpreter)
1465 (darwin_solib_create_inferior_hook): Update.
1466 * sol-thread.c (rw_common, ps_pdmodel): Update.
1467 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
1468 * remote.c (compare_sections_command)
1469 (remote_target::trace_set_readonly_regions): Update.
1470 * remote-sim.c (get_sim_inferior_data)
1471 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
1472 (gdbsim_target_open, gdbsim_target::files_info): Update.
1473 * exec.h (exec_bfd): Remove macro.
1474 * progspace.c (initialize_progspace): Update.
1475 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
1476 Update.
1477 * nto-procfs.c (nto_procfs_target::post_attach)
1478 (nto_procfs_target::create_inferior): Update.
1479 * maint.c (maintenance_info_sections): Update.
1480 * linux-thread-db.c (thread_db_target::get_thread_local_address):
1481 Update.
1482 * infcmd.c (post_create_inferior): Update.
1483 * gcore.c (default_gcore_arch, default_gcore_target): Update.
1484 (objfile_find_memory_regions): Update.
1485 * exec.c (validate_exec_file, exec_file_attach)
1486 (exec_read_partial_read_only, print_section_info): Update.
1487 * corelow.c (core_target_open): Update.
1488 * corefile.c (reopen_exec_file, validate_files): Update.
1489 * arm-tdep.c (gdb_print_insn_arm): Update.
1490 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
1491 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
1492 methods.
1493
b55221ab
TT
14942020-10-29 Tom Tromey <tom@tromey.com>
1495
1496 * progspace.h (current_target_sections): Remove macro.
1497 * solib-svr4.c (scan_dyntag): Update.
1498 * solib-dsbt.c (scan_dyntag): Update.
1499 * exec.c (exec_target::close): Update.
1500 (add_target_sections, add_target_sections_of_objfile)
1501 (remove_target_sections, exec_target::get_section_table)
1502 (exec_target::files_info, set_section_command)
1503 (exec_set_section_address, exec_target::has_memory)
1504 (exec_target::has_memory): Update.
1505
5a36e715
TT
15062020-10-29 Tom Tromey <tom@tromey.com>
1507
1508 * source-cache.c (source_cache::get_plain_source_lines): Use
1509 current_program_space.
1510 * corefile.c (reopen_exec_file): Use current_program_space.
1511 * exec.c (exec_file_attach): Use current_program_space.
1512 * exec.h (exec_bfd_mtime): Remove.
1513
784c8592
TT
15142020-10-29 Tom Tromey <tom@tromey.com>
1515
1516 * gcore.c (default_gcore_mach): Remove.
1517 (create_gcore_bfd): Update.
1518
8a4f1402
TT
15192020-10-29 Tom Tromey <tom@tromey.com>
1520
1521 * progspace.c (program_space::exec_close): New method, from
1522 exec_close in exec.c.
1523 * exec.c (exec_close): Move to progspace.c.
1524 (exec_target::close, exec_file_attach): Update.
1525 * progspace.h (struct program_space) <exec_close>: Declare
1526 method.
1527
c20cb686
TT
15282020-10-29 Tom Tromey <tom@tromey.com>
1529
1530 * progspace.h (struct program_space) <exec_filename>: Rename from
1531 pspace_exec_filename. Now a unique_xmalloc_ptr.
1532 * inferior.c (print_selected_inferior): Update.
1533 (print_inferior): Update.
1534 * mi/mi-main.c (print_one_inferior): Update.
1535 * exec.h (exec_filename): Remove macro.
1536 * corefile.c (get_exec_file): Update.
1537 * exec.c (exec_close): Update.
1538 (exec_file_attach): Update.
1539 * progspace.c (clone_program_space): Update.
1540 (print_program_space): Update.
1541
6be2a9ab
TT
15422020-10-29 Tom Tromey <tom@tromey.com>
1543
1544 * target-section.h (struct target_section): Add constructor.
1545 * exec.c (build_section_table, add_target_sections_of_objfile):
1546 Update.
1547 * corelow.c (core_target::build_file_mappings): Update.
1548
cfaa8f76
TBA
15492020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1550
1551 PR gdb/19318
1552 * inferior.c (detach_inferior_command): Restore the current thread.
1553 (kill_inferior_command): Ditto.
1554
1b00ef06
TV
15552020-10-28 Tom de Vries <tdevries@suse.de>
1556
1557 PR symtab/26772
1558 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
1559 map, check it in the "best match" loop.
1560
7f40ce1a
SM
15612020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1562
1563 * m32c-tdep.c: Remove unused includes.
1564
5eb9e3f5
SM
15652020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1566
1567 * xtensa-tdep.c: Remove includes.
1568
b1d4d8d1
TBA
15692020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1570
1571 * breakpoint.c (struct condition_command_opts): New struct.
1572 (condition_command_option_defs): New static global.
1573 (make_condition_command_options_def_group): New function.
1574 (condition_completer): Update to consider the '-force' flag.
1575 (condition_command): Use gdb::option for the '-force' flag.
1576
bd24c5d6
TV
15772020-10-27 Tom de Vries <tdevries@suse.de>
1578
1579 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
1580 symbols in section check.
1581
61eb46a4
TV
15822020-10-27 Tom de Vries <tdevries@suse.de>
1583
1584 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
1585
733d554a
TBA
15862020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1587
1588 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
1589 * breakpoint.c: Update the help text of the 'condition' and 'break'
1590 commands.
1591 (set_breakpoint_condition): Take a new bool parameter
1592 to control whether condition definition should be forced even when
1593 the condition expression is invalid in all of the current locations.
1594 (condition_command): Update the call to 'set_breakpoint_condition'.
1595 (find_condition_and_thread): Take the "-force-condition" flag into
1596 account.
1597 * linespec.c (linespec_keywords): Add "-force-condition" as an
1598 element.
1599 (FORCE_KEYWORD_INDEX): New #define.
1600 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
1601 as a keyword.
1602 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
1603 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
1604 * python/py-breakpoint.c (bppy_set_condition): Ditto.
1605 * NEWS: Mention the changes to the 'break' and 'condition' commands.
1606
b5fa468f
TBA
16072020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1608
1609 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
1610 * breakpoint.c (set_breakpoint_location_condition): New function.
1611 (set_breakpoint_condition): Disable a breakpoint location if parsing
1612 the condition string gives an error.
1613 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
1614 (build_target_condition_list): Ditto.
1615 (build_target_command_list): Ditto.
1616 (build_bpstat_chain): Ditto.
1617 (print_one_breakpoint_location): Ditto.
1618 (print_one_breakpoint): Ditto.
1619 (breakpoint_1): Ditto.
1620 (bp_location::bp_location): Ditto.
1621 (locations_are_equal): Ditto.
1622 (update_breakpoint_locations): Ditto.
1623 (enable_disable_bp_num_loc): Ditto.
1624 (init_breakpoint_sal): Use set_breakpoint_location_condition.
1625 (find_condition_and_thread_for_sals): New static function.
1626 (create_breakpoint): Call find_condition_and_thread_for_sals.
1627 (location_to_sals): Call find_condition_and_thread_for_sals instead
1628 of find_condition_and_thread.
1629
1c47ec3e
TV
16302020-10-26 Tom de Vries <tdevries@suse.de>
1631
1632 * dwarf2/read.c (process_full_comp_unit): Call
1633 dwarf2_find_base_address.
1634
6390859c
TT
16352020-10-26 Tom Tromey <tromey@adacore.com>
1636
1637 * gdbtypes.c (create_range_type): Revert previous patch. Add
1638 comment.
1639
d744f0f9
PA
16402020-10-26 Pedro Alves <pedro@palves.net>
1641
1642 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
1643 (my_waitpid): Use gdb::handle_eintr.
1644
006811bc
SM
16452020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
1646
1647 * acinclude.m4: Update ptrace.m4 path.
1648 * ptrace.m4: Moved to gdbsupport.
1649
c75e31a1
SM
16502020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1651
1652 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
1653 instead of target_gdbarch.
1654
32495661
SM
16552020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1656
1657 * jit.c (jit_reader_load_command): Pass current inferior.
1658 (jit_inferior_init): Change parameter type to inferior, use it.
1659 (jit_inferior_created): Remove.
1660 (jit_inferior_created_hook): Pass inferior parameter down.
1661 (_initialize_jit): Use jit_inferior_created_hook instead of
1662 jit_inferior_created.
1663 * jit.h (jit_inferior_created_hook): Add inferior parameter.
1664 * infrun.c (follow_exec): Pass inferior to
1665 jit_inferior_created_hook.
1666
3f66685e
SM
16672020-10-24 Simon Marchi <simon.marchi@efficios.com>
1668
1669 * linux-thread-db.c (check_pid_namespace_match): Add inferior
1670 parameter and use it.
1671 (thread_db_inferior_created): Pass inferior argument.
1672
a0ff652f
SM
16732020-10-24 Simon Marchi <simon.marchi@efficios.com>
1674
1675 * aix-thread.c (aix_thread_inferior_created): Add inferior
1676 parameter.
1677 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
1678 * dummy-frame.c (cleanup_dummy_frames): Likewise.
1679 * jit.c (jit_inferior_created): Likewise.
1680 * linux-thread-db.c (thread_db_inferior_created): Likewise.
1681 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
1682 * observable.h (inferior_created): Likewise.
1683 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
1684 * symfile-mem.c (add_vsyscall_page): Likewise.
1685 * infcmd.c (post_create_inferior): Pass inferior argument.
1686
3c67532c
JB
16872020-10-24 Joel Brobecker <brobecker@adacore.com>
1688
1689 GDB 10.1 released.
1690
8747316e
JB
16912020-10-23 Joel Brobecker <brobecker@adacore.com>
1692
1693 * ada-typeprint.c (ada_print_type): Remove superfluous second call
1694 to ada_check_typedef.
1695
1a0ea399
AB
16962020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1697
1698 * f-exp.y (f_parse): Rename to...
1699 (f_language::parser): ...this.
1700 * f-lang.c (f_get_encoding): Rename to...
1701 (f_language::get_encoding): ...this.
1702 (f_op_print_tab): Rename to...
1703 (f_language::op_print_tab): ...this.
1704 (exp_descriptor_f): Rename to...
1705 (f_language::exp_descriptor_tab): ...this.
1706 (class f_language): Moved to f-lang.h.
1707 (f_language::language_arch_info): New function, moved out of class
1708 declaration.
1709 (f_language::search_name_hash): Likewise.
1710 (f_language::lookup_symbol_nonlocal): Likewise.
1711 (f_language::get_symbol_name_matcher_inner): Likewise.
1712 * f-lang.h: Add 'valprint.h' include.
1713 (class f_language): Moved here from f-lang.c.
1714 * f-typeprint.c (f_type_print_args): Delete commented out
1715 declaration.
1716 (f_print_typedef): Rename to...
1717 (f_language::print_typedef): ...this.
1718 (f_print_type): Rename to...
1719 (f_language::print_type): ...this.
1720 (f_type_print_varspec_prefix): Delete declaration and rename to...
1721 (f_language::f_type_print_varspec_prefix): ...this.
1722 (f_type_print_varspec_suffix): Delete declaration and rename to...
1723 (f_language::f_type_print_varspec_suffix): ...this.
1724 (f_type_print_base): Delete declaration and rename to...
1725 (f_language::f_type_print_base): ...this.
1726 * f-valprint.c (f_value_print_inner): Rename to...
1727 (f_language::value_print_inner): ...this.
1728 * parse.c: Delete 'f-lang.h' include.
1729
88cefd9b
AB
17302020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1731
1732 * language.h (language_defn::print_type): Add variable names in
1733 declaration, and update header comment.
1734
5399db93
AB
17352020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1736
1737 * ada-lang.c (ada_language::demangle): Rename to...
1738 (ada_language::demangle_symbol): ...this.
1739 * c-lang.c (cplus_language::demangle): Rename to...
1740 (cplus_language::demangle_symbol): ...this.
1741 * d-lang.c (d_language::demangle): Rename to...
1742 (d_language::demangle_symbol): ...this.
1743 * f-lang.c (f_language::demangle): Rename to...
1744 (f_language::demangle_symbol): ...this.
1745 * go-lang.c (go_language::demangle): Rename to...
1746 (go_language::demangle_symbol): ...this.
1747 * language.c (language_demangle): Update call to demangle_symbol.
1748 (auto_or_unknown_language::demangle): Rename to...
1749 (auto_or_unknown_language::demangle_symbol): ...this.
1750 * language.h (language_defn::demangle): Rename to...
1751 (language_defn::demangle_symbol): ...this.
1752 * objc-lang.c (objc_language::demangle): Rename to...
1753 (objc_language::demangle_symbol): ...this.
1754 * rust-lang.c (rust_language::demangle): Rename to...
1755 (rust_language::demangle_symbol): ...this.
1756
4b2f86ef
AB
17572020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1758
1759 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
1760 (iterate_over_file_blocks): Replace use of macro with the macros
1761 definition.
1762
e74b39de
AB
17632020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1764
1765 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
1766 * valprint.c (maybe_print_array_index): Replace use of macro with
1767 the macros definition.
1768
00c696a6
AB
17692020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1770
1771 * ada-lang.c (ada_language::print_array_index): Call value_print
1772 directly.
1773 * language.c (language_defn::print_array_index): Likewise.
1774 * language.h (LA_VALUE_PRINT): Delete.
1775 * valprint.c (value_print): Call value_print on the
1776 current_language directly.
1777
d3b67c56
AB
17782020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1779
1780 * language.h (LA_PRINT_TYPEDEF): Delete.
1781 * typeprint.c (typedef_print): Call print_typedef directly on the
1782 current_language object.
1783
790e2a12
AB
17842020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1785
1786 * m2-exp.y (m2_parse): Rename to...
1787 (m2_language::parser): ...this. Update function signature.
1788 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
1789 (m2_op_print): Rename to...
1790 (m2_language::op_print_tab): ...this, and make const.
1791 (exp_descriptor_modula2): Rename to...
1792 (m2_language::exp_descriptor_modula2): ...this.
1793 (class m2_language): Move to m2-lang.h.
1794 (m2_language::language_arch_info): New function, moved out of
1795 class declaration.
1796 (m2_language::printchar): New function, body from m2_printchar.
1797 (m2_language::printstr): New function, moved out of class
1798 declaration.
1799 (m2_language::emitchar): Likewise.
1800 * m2-lang.h (m2_parse): Delete declaration.
1801 (m2_print_typedef): Delete declaration.
1802 (m2_value_print_inner): Delete declaration.
1803 (class m2_language): Class declaration moved from m2-lang.c,
1804 larger functions are left in m2-lang.c.
1805 * m2-typeprint.c (m2_print_typedef): Rename to...
1806 (m2_language::print_typedef): ...this, and update function
1807 signature.
1808 * m2-valprint.c (m2_value_print_inner): Rename to...
1809 (m2_language::value_print_inner): ...this, replace use of
1810 LA_PRINT_STRING with a direct call to printstr member function,
1811 and update recursive call.
1812
b01175fc
AB
18132020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1814
1815 * language.c (default_is_string_type_p): Delete, implementation
1816 moved into auto_or_unknown_language::is_string_type_p.
1817 (unk_op_print_tab): Moved into
1818 auto_or_unknown_language::opcode_print_table.
1819 (unknown_language_arch_info): Delete, implementation moved into
1820 auto_or_unknown_language::language_arch_info.
1821 (class auto_or_unknown_language): New class, member functions
1822 copied from unknown_language class, with some updates.
1823 (class unknown_language): Most member functions moved into
1824 auto_or_unknown_language class. Inherit from
1825 auto_or_unknown_language class.
1826 (class auto_language): Inherit from auto_or_unknown_language.
1827 Delete most member functions.
1828
1a97fe8c
HD
18292020-10-22 Hannes Domani <ssbssa@yahoo.de>
1830
1831 * stabsread.c (read_member_functions): Remove gdb_assert.
1832
6b9d0dfd
HD
18332020-10-22 Hannes Domani <ssbssa@yahoo.de>
1834
1835 * gdbtypes.c (init_complex_type): Check target type name.
1836
4b4bb603
SM
18372020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1838
1839 * target-debug.h (target_debug_print_struct_target_ops_p):
1840 Remove.
1841 (target_debug_print_async_callback_ftype_p): Remove.
1842 (target_debug_print_struct_trace_state_variable_p): Remove.
1843 (target_debug_print_struct_traceframe_info_p): Remove.
1844 (target_debug_print_VEC__btrace_block_s__pp): Remove.
1845 (target_debug_print_enum_btrace_format): Remove.
1846 (target_debug_print_enum_info_proc_what): Remove.
1847 (target_debug_print_thread_info_pp): Remove.
1848
24f5300a
SM
18492020-10-22 Simon Marchi <simon.marchi@efficios.com>
1850
1851 * target.h (struct target_ops) <make_corefile_notes>:
1852 Change return type to unique pointer.
1853 * target.c (dummy_make_corefile_notes): Likewise.
1854 * exec.c (struct exec_target) <make_corefile_notes>:
1855 Likewise.
1856 (exec_target::make_corefile_notes): Likewise.
1857 * procfs.c (class procfs_target) <make_corefile_notes>:
1858 Likewise.
1859 (procfs_do_thread_registers): Adjust to unique pointer.
1860 (struct procfs_corefile_thread_data): Add constructor.
1861 <note_data>: Change type to unique pointer.
1862 (procfs_corefile_thread_callback): Adjust to unique pointer.
1863 (procfs_target::make_corefile_notes): Change return type to
1864 unique pointer.
1865 * target-delegates.c: Re-generate.
1866 * gcore.c (write_gcore_file_1): Adjust.
1867 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
1868 New.
1869
5fb4027f
TV
18702020-10-22 Tom de Vries <tdevries@suse.de>
1871
1872 * block.c (find_block_in_blockvector): Make sure the returned block
1873 contains pc.
1874
4a636814
SM
18752020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1876
1877 PR gdb/26693
1878 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
1879 parameter.
1880 (load_cu): Pass existing CU.
1881 (process_imported_unit_die): Likewise.
1882 (follow_die_offset): Likewise.
1883
1bd57575
LM
18842020-10-22 Luis Machado <luis.machado@linaro.org>
1885
1886 * corelow.c (core_target::xfer_partial): Also check for an empty
1887 m_core_unavailable_mappings vector.
1888
6b4c676c
AB
18892020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1890
1891 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
1892 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
1893 * f-exp.y (arglist): Allow for a series of subranges.
1894 (subrange): Add cases for subranges with strides.
1895 * f-lang.c (value_f90_subarray): Catch use of array strides and
1896 throw an error.
1897 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
1898
f2d8e4c5
AB
18992020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1900
1901 * expprint.c (print_subexp_standard): Change enum range_type to
1902 range_flag and rename variables to match.
1903 (dump_subexp_body_standard): Likewise.
1904 * expression.h (enum range_type): Rename to...
1905 (enum range_flag): ...this.
1906 (range_types): Rename to...
1907 (range_flags): ...this.
1908 * f-lang.c (value_f90_subarray): Change enum range_type to
1909 range_flag and rename variables to match.
1910 * parse.c (operator_length_standard): Likewise.
1911 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
1912 range_type to range_flag.
1913 * rust-lang.c (rust_evaluate_funcall): Likewise.
1914 (rust_range): Likewise.
1915 (rust_compute_range): Likewise.
1916 (rust_subscript): Likewise.
1917
2f1b18db
AB
19182020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1919
1920 * expprint.c (print_subexp_standard): Update to reflect changes to
1921 enum range_type.
1922 (dump_subexp_body_standard): Likewise.
1923 * expression.h (enum range_type): Convert to a bit field enum, and
1924 make the enum unsigned.
1925 * f-exp.y (subrange): Update to reflect changes to enum
1926 range_type.
1927 * f-lang.c (value_f90_subarray): Likewise.
1928 * parse.c (operator_length_standard): Likewise.
1929 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
1930 * rust-lang.c (rust_range): Likewise.
1931 (rust_compute_range): Likewise.
1932 (rust_subscript): Likewise.
1933
a46d1843
SM
19342020-10-21 Simon Marchi <simon.marchi@efficios.com>
1935
1936 * infrun.c (displaced_step_in_progress_thread): Fix comment.
1937 (displaced_step_in_progress): Fix comment.
1938
c21f37a8
SM
19392020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
1940
1941 * gdbarch.sh (make_corefile_notes): Return unique pointer.
1942 * gdbarch.c: Re-generate.
1943 * gdbarch.h: Re-generate.
1944 * gcore.c (write_gcore_file_1): Adjust.
1945 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
1946 constructor.
1947 <note_data>: Change type to unique pointer.
1948 <abort_iteration>: Change type to bool.
1949 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
1950 (fbsd_collect_thread_registers): Return void, adjust.
1951 (struct fbsd_corefile_thread_data): Add construtor.
1952 <note_data>: Change type to unique pointer.
1953 (fbsd_corefile_thread): Adjust.
1954 (fbsd_make_corefile_notes): Return unique pointer, adjust.
1955 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
1956 to unique pointer, adjust.
1957 (struct linux_collect_regset_section_cb_data): Add constructor.
1958 <note_data>: Change type to unique pointer.
1959 <abort_iteration>: Change type to bool.
1960 (linux_collect_thread_registers): Return void, adjust.
1961 (struct linux_corefile_thread_data): Add constructor.
1962 <note_data>: Change type to unique pointer.
1963 (linux_corefile_thread): Adjust.
1964 (linux_make_corefile_notes): Return unique pointer, adjust.
1965
07fbbd01
SM
19662020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1967
1968 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
1969 * gdbarch.c: Re-generate.
1970 * gdbarch.h: Re-generate.
1971 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
1972 bool.
1973 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1974 Likewise.
1975 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
1976 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
1977 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
1978 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
1979
39535193
SM
19802020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1981
1982 * gdbarch.sh: Make generated predicates return bool.
1983 * gdbarch.c: Re-generate.
1984 * gdbarch.h: Re-generate.
1985
ad523d01
TT
19862020-10-20 Tom Tromey <tom@tromey.com>
1987
1988 * varobj-iter.h (struct varobj_item): Remove typedef.
1989
c4464ade
SM
19902020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
1991
1992 * infrun.c (currently_stepping): Change int to bool
1993 (maybe_software_singlestep): Likewise.
1994 (show_stop_on_solib_events): Likewise.
1995 (stepping_past_nonsteppable_watchpoint): Likewise.
1996 (displaced_step_in_progress_any_inferior): Likewise.
1997 (displaced_step_in_progress_thread): Likewise.
1998 (keep_going_stepped_thread): Likewise.
1999 (thread_still_needs_step_over): Likewise.
2000 (start_step_over): Likewise.
2001 (do_target_resume): Likewise.
2002 (resume_1): Likewise.
2003 (clear_proceed_status): Likewise.
2004 (thread_still_needs_step_over_bp): Likewise.
2005 (proceed): Likewise.
2006 (switch_back_to_stepped_thread): Likewise.
2007 (adjust_pc_after_break): Likewise.
2008 (stepped_in_from): Likewise.
2009 (handle_stop_requested): Likewise.
2010 (handle_syscall_event): Likewise.
2011 (handle_no_resumed): Likewise.
2012 (handle_inferior_event): Likewise.
2013 (finish_step_over): Likewise.
2014 (handle_signal_stop): Likewise.
2015 (process_event_stop_test): Likewise.
2016
2eb20436
SM
20172020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2018
2019 * infrun.c (get_displaced_stepping_state): Fix comment.
2020
e0c45ded
AS
20212020-10-20 Andreas Schwab <schwab@linux-m68k.org>
2022
2023 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
2024
22cc388e
TT
20252020-10-19 Tom Tromey <tromey@adacore.com>
2026
2027 PR tui/26719
2028 * tui/tui-winsource.h (struct tui_source_window_base)
2029 <refresh_window>: Rename from refresh_pad.
2030 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
2031 Rename from refresh_pad.
2032 (tui_source_window_base::show_source_content)
2033 (tui_source_window_base::do_scroll_horizontal): Update.
2034
3c6eb4d4
TBA
20352020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2036
2037 * thread.c (_initialize_thread): Fine-tune the help text of
2038 'info threads'.
2039
26703721
TBA
20402020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2041
2042 * frame.c: Remove the unused 'uinteger_option_def' type alias.
2043
61c26be8
MS
20442020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
2045
2046 * breakpoint.c (handle_jit_event): Add an argument, change how
2047 `jit_event_handler` is called.
2048
932539d7
TT
20492020-10-17 Tom Tromey <tom@tromey.com>
2050
2051 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
2052 (scan_xcoff_symtab): Update.
2053 * psymtab.h (class psymtab_storage) <global_psymbols,
2054 static_psymbols, current_global_psymbols,
2055 current_static_psymbols>: Remove.
2056 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
2057 (match_partial_symbol, lookup_partial_symbol): Update.
2058 (print_partial_symbols): Change parameters.
2059 (dump_psymtab, recursively_search_psymtabs)
2060 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
2061 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
2062 (concat): Remove.
2063 (end_psymtab_common): Simplify.
2064 (append_psymbol_to_list): Change parameters.
2065 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
2066 (init_psymbol_list): Simplify.
2067 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2068 * psympriv.h (struct partial_symtab) <empty>: New method.
2069 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
2070 Remove.
2071 <global_psymbols, static_psymbols>: New members.
2072 <add_psymbol>: New methods.
2073 (add_psymbol_to_list): Don't declare.
2074 (psymbol_placement): Move earlier.
2075 * mdebugread.c (parse_partial_symbols): Update.
2076 (handle_psymbol_enumerators): Change parameters.
2077 (mdebug_expand_psymtab): Update.
2078 * dwarf2/read.c (process_psymtab_comp_unit_reader)
2079 (add_partial_symbol): Update.
2080 * dwarf2/index-write.c (write_psymbols): Change parameters.
2081 (write_one_signatured_type): Update.
2082 (recursively_count_psymbols): Update.
2083 (recursively_write_psymbols): Update.
2084 (class debug_names) <recursively_write_psymbols>: Update.
2085 <write_psymbols>: Change parameters.
2086 <write_one_signatured_type>: Update.
2087 * dbxread.c (read_dbx_symtab): Update.
2088 (dbx_end_psymtab): Use partial_symtab::empty.
2089 * ctfread.c (struct ctf_context) <pst>: New member.
2090 (create_partial_symtab): Set it.
2091 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
2092 (scan_partial_symbols): Use the psymtab's context. Update.
2093
cfabbd35
TT
20942020-10-17 Tom Tromey <tom@tromey.com>
2095
2096 * valprint.c (generic_value_print): Remove comment.
2097 * m2-valprint.c (m2_value_print_inner): Remove comment.
2098 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
2099 type.
2100
520596f2
TV
21012020-10-17 Tom de Vries <tdevries@suse.de>
2102
2103 PR symtab/26317
2104 * source.c (select_source_symtab): Handling sal.symtab == NULL for
2105 symbol main.
2106
76547ab3
TV
21072020-10-14 Tom de Vries <tdevries@suse.de>
2108
2109 PR gdb/26733
2110 * solib.c (solib_contains_address_p): Handle
2111 'solib->sections == nullptr'.
2112
d3a07122
SM
21132020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2114
2115 PR gdb/26642
2116 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
2117 target can't do async.
2118 * target.c (target_wait): Assert that we don't pass
2119 TARGET_WNOHANG to a target that can't async.
2120
1b71cfcf
KR
21212020-10-13 Kamil Rytarowski <n54@gmx.com>
2122
2123 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
2124 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
2125 * alpha-bsd-nat.c: Adjust include.
2126 * alpha-bsd-tdep.h: Adjust comment.
2127 * alpha-nbsd-tdep.c: Rename to ...
2128 * alpha-netbsd-tdep.c: ... this, adjust include.
2129 * amd64-nbsd-nat.c: Rename to ...
2130 * amd64-netbsd-nat.c: ... this, adjust include.
2131 * amd64-nbsd-tdep.c: Rename to ...
2132 * amd64-netbsd-tdep.c: ... this, adjust include.
2133 * amd64-tdep.h: Adjust include.
2134 * arm-nbsd-nat.c: Rename to ...
2135 * arm-netbsd-nat.c: ... this, adjust include.
2136 * arm-nbsd-tdep.c: Rename to ...
2137 * arm-netbsd-tdep.c: ... this, adjust include.
2138 * arm-nbsd-tdep.h: Rename to ...
2139 * arm-netbsd-tdep.h: ... this, adjust include.
2140 * configure.nat: Adjust file lists.
2141 * configure.tgt: Likewise.
2142 * hppa-nbsd-nat.c: Rename to ...
2143 * hppa-netbsd-nat.c: ... this, adjust include.
2144 * hppa-nbsd-tdep.c: Rename to ...
2145 * hppa-netbsd-tdep.c: ... this, adjust include.
2146 * i386-nbsd-nat.c: Rename to ...
2147 * i386-netbsd-nat.c: ... this, adjust include.
2148 * i386-nbsd-tdep.c: Rename to ...
2149 * i386-netbsd-tdep.c: ... this, adjust include.
2150 * m68k-bsd-nat.c: Adjust include.
2151 * mips-nbsd-nat.c: Rename to ...
2152 * mips-netbsd-nat.c: ... this, adjust include.
2153 * mips-nbsd-tdep.c: Rename to ...
2154 * mips-netbsd-tdep.c: ... this, adjust include.
2155 * mips-nbsd-tdep.h: Rename to ...
2156 * mips-netbsd-tdep.h: ... this.
2157 * nbsd-nat.c: Rename to ...
2158 * netbsd-nat.c: ... this, adjust include.
2159 * nbsd-nat.h: Rename to ...
2160 * netbsd-nat.h: ... this, adjust include.
2161 * nbsd-tdep.c: Rename to ...
2162 * netbsd-tdep.c: ... this, adjust include.
2163 * nbsd-tdep.h: Rename to ...
2164 * netbsd-tdep.h: ... this.
2165 * ppc-nbsd-nat.c: Rename to ...
2166 * ppc-netbsd-nat.c: ... this, adjust include.
2167 * ppc-nbsd-tdep.c: Rename to ...
2168 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
2169 * ppc-nbsd-tdep.h: Rename to ...
2170 * ppc-netbsd-tdep.h: ... this.
2171 * sh-nbsd-nat.c: Rename to ...
2172 * sh-netbsd-nat.c: ... this, adjust include.
2173 * sh-nbsd-tdep.c: Rename to ...
2174 * sh-netbsd-tdep.c: ... this, adjust include.
2175 * sparc-nbsd-nat.c: Rename to ...
2176 * sparc-netbsd-nat.c: ... this.
2177 * sparc-nbsd-tdep.c: Rename to ...
2178 * sparc-netbsd-tdep.c: ... this, adjust include.
2179 * sparc64-nbsd-nat.c: Rename to ...
2180 * sparc64-netbsd-nat.c: ... this.
2181 * sparc64-nbsd-tdep.c: Rename to ...
2182 * sparc64-netbsd-tdep.c: ... this, adjust include.
2183 * sparc64-tdep.h: Adjust comment.
2184 * vax-bsd-nat.c: Adjust include.
2185 * vax-nbsd-tdep.c: Rename to ...
2186 * vax-netbsd-tdep.c: ... this, adjust include.
2187
d7a78e5c
TT
21882020-10-12 Tom Tromey <tom@tromey.com>
2189
2190 * target.h (struct target_ops) <get_section_table>: Update.
2191 (target_get_section_table): Update.
2192 * target.c (target_get_section_table, target_section_by_addr)
2193 (memory_xfer_partial_1): Update.
2194 * target-section.h (target_section_table): Now an alias.
2195 * target-delegates.c: Rebuild.
2196 * target-debug.h (target_debug_print_target_section_table_p):
2197 Rename from target_debug_print_struct_target_section_table_p.
2198 * symfile.c (build_section_addr_info_from_section_table): Update.
2199 * solib.c (solib_map_sections, solib_contains_address_p): Update.
2200 * solib-svr4.c (scan_dyntag): Update.
2201 * solib-dsbt.c (scan_dyntag): Update.
2202 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2203 Update.
2204 * record-full.c (record_full_core_target::xfer_partial): Update.
2205 * progspace.h (struct program_space) <target_sections>: Update.
2206 * exec.h (print_section_info): Update.
2207 * exec.c (exec_target::close, build_section_table)
2208 (add_target_sections, add_target_sections_of_objfile)
2209 (remove_target_sections, exec_on_vfork)
2210 (section_table_available_memory)
2211 (section_table_xfer_memory_partial)
2212 (exec_target::get_section_table, exec_target::xfer_partial)
2213 (print_section_info, set_section_command)
2214 (exec_set_section_address, exec_target::has_memory): Update.
2215 * corelow.c (core_target::build_file_mappings)
2216 (core_target::xfer_partial, core_target::info_proc_mappings)
2217 (core_target::info_proc_mappings): Update.
2218 * bfd-target.c (class target_bfd): Update
2219
eda214ce
TT
22202020-10-12 Tom Tromey <tom@tromey.com>
2221
2222 * progspace.c (program_space::~program_space): Don't call
2223 clear_section_table.
2224 * exec.h (clear_section_table): Don't declare.
2225 * exec.c (exec_target::close): Update.
2226 (clear_section_table): Remove.
2227
91840ee3
TT
22282020-10-12 Tom Tromey <tom@tromey.com>
2229
2230 * exec.c (add_target_sections_of_objfile): Simplify.
2231
2d128614
TT
22322020-10-12 Tom Tromey <tom@tromey.com>
2233
2234 * solib.c (solib_map_sections): Update.
2235 * record-full.c (record_full_core_open_1): Update.
2236 * exec.h (build_section_table): Return a target_section_table.
2237 * exec.c (exec_file_attach): Update.
2238 (build_section_table): Return a target_section_table.
2239 * corelow.c (core_target::core_target): Update.
2240 * bfd-target.c (target_bfd::target_bfd): Update.
2241
bb2a6777
TT
22422020-10-12 Tom Tromey <tom@tromey.com>
2243
2244 * target.c (target_section_by_addr, memory_xfer_partial_1):
2245 Update.
2246 * target-section.h (struct target_section_table): Use
2247 std::vector.
2248 * symfile.h (build_section_addr_info_from_section_table): Take a
2249 target_section_table.
2250 * symfile.c (build_section_addr_info_from_section_table): Take a
2251 target_section_table.
2252 * solist.h (struct so_list) <sections>: Change type.
2253 <sections_end>: Remove.
2254 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
2255 (solib_contains_address_p): Update.
2256 * solib-svr4.c (scan_dyntag): Update.
2257 * solib-dsbt.c (scan_dyntag): Update.
2258 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2259 Update.
2260 * record-full.c (record_full_core_start, record_full_core_end):
2261 Remove.
2262 (record_full_core_sections): New global.
2263 (record_full_core_open_1, record_full_core_target::xfer_partial):
2264 Update.
2265 * exec.h (build_section_table, section_table_xfer_memory_partial)
2266 (add_target_sections): Take a target_section_table.
2267 * exec.c (exec_file_attach, clear_section_table): Update.
2268 (resize_section_table): Remove.
2269 (build_section_table, add_target_sections): Take a
2270 target_section_table.
2271 (add_target_sections_of_objfile, remove_target_sections)
2272 (exec_on_vfork): Update.
2273 (section_table_available_memory): Take a target_section_table.
2274 (section_table_read_available_memory): Update.
2275 (section_table_xfer_memory_partial): Take a target_section_table.
2276 (print_section_info, set_section_command)
2277 (exec_set_section_address, exec_target::has_memory): Update.
2278 * corelow.c (class core_target) <m_core_section_table,
2279 m_core_file_mappings>: Remove braces.
2280 <~core_target>: Remove.
2281 (core_target::core_target): Update.
2282 (core_target::~core_target): Remove.
2283 (core_target::build_file_mappings)
2284 (core_target::xfer_memory_via_mappings)
2285 (core_target::xfer_partial, core_target::info_proc_mappings):
2286 Update.
2287 * bfd-target.c (target_bfd::xfer_partial): Update.
2288 (target_bfd::target_bfd): Update.
2289 (target_bfd::~target_bfd): Remove.
2290
7b466b10
TT
22912020-10-12 Tom Tromey <tom@tromey.com>
2292
2293 * target.h (struct target_section, struct target_section_table):
2294 Move to target-section.h.
2295 * target-section.h: New file.
2296
87a37e5e
PA
22972020-10-12 Pedro Alves <pedro@palves.net>
2298
2299 PR exp/26602
2300 * valops.c (struct struct_field_searcher): New.
2301 (update_search_result): Rename to ...
2302 (struct_field_searcher::update_result): ... this. Simplify
2303 prototype. Record all found fields.
2304 (do_search_struct_field): Rename to ...
2305 (struct_field_searcher::search): ... this. Simplify prototype.
2306 Maintain stack of visited baseclass path. Call update_result for
2307 fields too. Keep searching fields in baseclasses instead of
2308 stopping at the first found field.
2309 (search_struct_field): Use struct_field_searcher. When looking
2310 for fields, report ambiguous access attempts.
2311
9370fd51
AB
23122020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
2313
2314 * frame.c (inside_main_func): Check full symbols as well as
2315 minimal symbols.
2316
59c8a30b
JB
23172020-10-09 Joel Brobecker <brobecker@adacore.com>
2318
2319 * ada-lang.c (advance_wild_match): Rewrite the function's
2320 description. Change the type of target0, t0 and t1 to char.
2321
7c184d33
TT
23222020-10-09 Tom Tromey <tromey@adacore.com>
2323
2324 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
2325
5c4258f4
TT
23262020-10-09 Tom Tromey <tromey@adacore.com>
2327
2328 * ada-lang.h (ada_encode): Return std::string.
2329 * ada-lang.c (ada_encode_1): Return std::string.
2330 (ada_encode): Likewise.
2331 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
2332 Update.
2333 * ada-exp.y (block_lookup, write_var_or_type): Update.
2334
3d87245c
HD
23352020-10-09 Hannes Domani <ssbssa@yahoo.de>
2336
2337 PR exp/26714
2338 * printcmd.c (print_formatted): Handle void results as
2339 unformatted prints.
2340
bbb826f5
AB
23412020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2342
2343 * arch/aarch32.c (aarch32_create_target_description): Release the
2344 target_desc_up as late as possible.
2345 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2346 * arch/amd64.c (amd64_create_target_description): Likewise.
2347 * arch/arc.c (arc_create_target_description): Return a
2348 target_desc_up, don't release it.
2349 * arch/arc.h (arc_create_target_description): Update declaration.
2350 (arc_lookup_target_description): Move target_desc_up into the
2351 cache, and return a borrowed pointer.
2352 * arch/arm.c (arm_create_target_description): Release the
2353 target_desc_up as late as possible.
2354 * arch/i386.c (i386_create_target_description): Likewise.
2355 * arch/riscv.h (riscv_create_target_description): Update
2356 declaration to match definition.
2357 * arch/tic6x.c (tic6x_create_target_description): Release the
2358 target_desc_up as late as possible.
2359
361cb219
AB
23602020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2361
2362 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
2363 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
2364
f5c4b229
JV
23652020-10-09 Jan Vrany <jan.vrany@labware.com>
2366
2367 * source.c (directory_command): Notify observers that "directories"
2368 parameter has changed.
2369
b2701685
TT
23702020-10-08 Tom Tromey <tom@tromey.com>
2371
2372 * cli/cli-cmds.c (print_disassembly): Style function name and
2373 addresses. Add _() wrappers.
2374
ada508b6
SV
23752020-10-08 Shahab Vahedi <shahab@synopsys.com>
2376
2377 * NEWS: Mention ARC support in GDBserver.
2378
51a948fd
AB
23792020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
2380
2381 * arch/aarch32.c (aarch32_create_target_description): Release
2382 unique_ptr returned from allocate_target_description.
2383 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2384 * arch/amd64.c (amd64_create_target_description): Likewise.
2385 * arch/arc.c (arc_create_target_description): Likewise.
2386 * arch/arm.c (arm_create_target_description): Likewise.
2387 * arch/i386.c (i386_create_target_description): Likewise.
2388 * arch/riscv.c (riscv_create_target_description): Update return
2389 type. Handle allocate_target_description returning a unique_ptr.
2390 (riscv_lookup_target_description): Update to handle unique_ptr.
2391 * arch/tic6x.c (tic6x_create_target_description): Release
2392 unique_ptr returned from allocate_target_description.
2393 * features/microblaze-with-stack-protect.c: Regenerate.
2394 * features/microblaze.c: Regenerate.
2395 * features/mips-dsp-linux.c: Regenerate.
2396 * features/mips-linux.c: Regenerate.
2397 * features/mips64-dsp-linux.c: Regenerate.
2398 * features/mips64-linux.c: Regenerate.
2399 * features/nds32.c: Regenerate.
2400 * features/nios2.c: Regenerate.
2401 * features/or1k.c: Regenerate.
2402 * features/rs6000/powerpc-32.c: Regenerate.
2403 * features/rs6000/powerpc-32l.c: Regenerate.
2404 * features/rs6000/powerpc-403.c: Regenerate.
2405 * features/rs6000/powerpc-403gc.c: Regenerate.
2406 * features/rs6000/powerpc-405.c: Regenerate.
2407 * features/rs6000/powerpc-505.c: Regenerate.
2408 * features/rs6000/powerpc-601.c: Regenerate.
2409 * features/rs6000/powerpc-602.c: Regenerate.
2410 * features/rs6000/powerpc-603.c: Regenerate.
2411 * features/rs6000/powerpc-604.c: Regenerate.
2412 * features/rs6000/powerpc-64.c: Regenerate.
2413 * features/rs6000/powerpc-64l.c: Regenerate.
2414 * features/rs6000/powerpc-7400.c: Regenerate.
2415 * features/rs6000/powerpc-750.c: Regenerate.
2416 * features/rs6000/powerpc-860.c: Regenerate.
2417 * features/rs6000/powerpc-altivec32.c: Regenerate.
2418 * features/rs6000/powerpc-altivec32l.c: Regenerate.
2419 * features/rs6000/powerpc-altivec64.c: Regenerate.
2420 * features/rs6000/powerpc-altivec64l.c: Regenerate.
2421 * features/rs6000/powerpc-e500.c: Regenerate.
2422 * features/rs6000/powerpc-e500l.c: Regenerate.
2423 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
2424 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
2425 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
2426 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
2427 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
2428 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
2429 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
2430 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
2431 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
2432 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
2433 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
2434 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
2435 * features/rs6000/powerpc-vsx32.c: Regenerate.
2436 * features/rs6000/powerpc-vsx32l.c: Regenerate.
2437 * features/rs6000/powerpc-vsx64.c: Regenerate.
2438 * features/rs6000/powerpc-vsx64l.c: Regenerate.
2439 * features/rs6000/rs6000.c: Regenerate.
2440 * features/rx.c: Regenerate.
2441 * features/s390-gs-linux64.c: Regenerate.
2442 * features/s390-linux32.c: Regenerate.
2443 * features/s390-linux32v1.c: Regenerate.
2444 * features/s390-linux32v2.c: Regenerate.
2445 * features/s390-linux64.c: Regenerate.
2446 * features/s390-linux64v1.c: Regenerate.
2447 * features/s390-linux64v2.c: Regenerate.
2448 * features/s390-te-linux64.c: Regenerate.
2449 * features/s390-tevx-linux64.c: Regenerate.
2450 * features/s390-vx-linux64.c: Regenerate.
2451 * features/s390x-gs-linux64.c: Regenerate.
2452 * features/s390x-linux64.c: Regenerate.
2453 * features/s390x-linux64v1.c: Regenerate.
2454 * features/s390x-linux64v2.c: Regenerate.
2455 * features/s390x-te-linux64.c: Regenerate.
2456 * features/s390x-tevx-linux64.c: Regenerate.
2457 * features/s390x-vx-linux64.c: Regenerate.
2458 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
2459 from allocate_target_description.
2460 * target-descriptions.c (allocate_target_description): Update
2461 return type.
2462 (print_c_tdesc::visit_pre): Release unique_ptr returned from
2463 allocate_target_description.
2464
485c47e5
TT
24652020-10-07 Tom Tromey <tromey@adacore.com>
2466
2467 * unittests/search-memory-selftests.c: New file.
2468 * Makefile.in (SELFTESTS_SRCS): Add
2469 unittests/search-memory-selftests.c.
2470
3a135a91
TT
24712020-10-07 Tom Tromey <tromey@adacore.com>
2472
2473 PR gdb/16930:
2474 * findcmd.c (_initialize_mem_search): Mention that the range is
2475 inclusive.
2476
4a72de73
TT
24772020-10-07 Tom Tromey <tromey@adacore.com>
2478
2479 * target.h (simple_search_memory): Don't declare.
2480 * target.c (simple_search_memory): Move to gdbsupport.
2481 (default_search_memory): Update.
2482 * remote.c (remote_target::search_memory): Update.
2483
a038ffd8
SM
24842020-10-07 Simon Marchi <simon.marchi@efficios.com>
2485
2486 * Makefile.in (COMPILE): Add CXXFLAGS.
2487 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
2488 (check-headers): Add CXXFLAGS.
2489
cc463201
AK
24902020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
2491
2492 * arc-linux-tdep.h: New file.
2493 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
2494 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
2495 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
2496 arc_linux_gregset, arc_linux_v2_regset,
2497 arc_linux_iterate_over_regset_sections,
2498 arc_linux_core_read_description): Implement.
2499 (arc_linux_init_osabi): Set iterate_over_regset_sections.
2500 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
2501 (arc_gdbarch_features_create): Add.
2502 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
2503
e4bd363f
SV
25042020-10-07 Shahab Vahedi <shahab@synopsys.com>
2505
2506 * arch/arc.h: Rename "arc_gdbarch_features" to
2507 "arc_arch_features".
2508 * arc-tdep.h: Likewise.
2509 * arc-tdep.c: Likewise.
2510
b68bef99
TBA
25112020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2512
2513 * infcmd.c (attach_command): Remove the redundant call to
2514 `clear_proceed_status`.
2515
4641551a
KR
25162020-10-07 Kamil Rytarowski <n54@gmx.com>
2517
2518 * nat/netbsd-nat.c (write_memory, read_memory): Update.
2519
91e5e8db
KR
25202020-10-07 Kamil Rytarowski <n54@gmx.com>
2521
2522 * nat/netbsd-nat.c (write_memory, read_memory): Add.
2523 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
2524 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
2525
64c03bdb
SM
25262020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
2527
2528 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
2529 (_initialize_break_catch_sig): Don't allocate array.
2530
31a8f60f
AB
25312020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
2532
2533 * symtab.c (find_pc_line): Return unmapped addresses when the
2534 requested address is also unmapped.
2535
9e6dbd8b
SM
25362020-10-05 Simon Marchi <simon.marchi@efficios.com>
2537
2538 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
2539 tui/tui-out.h.
2540
a1d217e8
SM
25412020-10-05 Simon Marchi <simon.marchi@efficios.com>
2542
2543 * amd64-windows-tdep.c (amd64_windows_return_value): Use
2544 type::is_vector instead of TYPE_VECTOR.
2545
7d144117
SM
25462020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
2547
2548 * auto-load.c (auto_load_objfile_script_1): Don't use
2549 debugfile_holder as temporary variable when stripping drive
2550 letter.
2551
cd096ec8
HD
25522020-10-05 Hannes Domani <ssbssa@yahoo.de>
2553
2554 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
2555 Add TYPE_CODE_COMPLEX.
2556 (amd64_windows_return_value): Fix types returned via XMM0.
2557
b58e7f72
AH
25582020-10-05 Alan Hayward <alan.hayward@arm.com>
2559
2560 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
2561 AArch64/ARM maintainers.
2562
8d378f27
SM
25632020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
2564
2565 * NEWS: Mention set/show debug event-loop.
2566
d5519913
TT
25672020-10-02 Tom Tromey <tromey@adacore.com>
2568
2569 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
2570 REG_EXTENDED.
2571
18b67edc
SM
25722020-10-02 Simon Marchi <simon.marchi@efficios.com>
2573
2574 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
2575 * procfs.c (procfs_inferior_created): Remove.
2576 (_initialize_procfs): Don't register procfs_inferior_created.
2577
6b01403b
SM
25782020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2579
2580 * async-event.c (invoke_async_signal_handlers): Add debug
2581 print.
2582 (check_async_event_handlers): Likewise.
2583 * event-top.c (show_debug_event_loop): New function.
2584 (_initialize_event_top): Register "set debug event-loop"
2585 setting.
2586
ba988419
SM
25872020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2588
2589 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
2590 * debug.h: Remove.
2591 * infrun.c: Include gdbsupport/common-debug.h.
2592 * linux-nat.c: Likewise.
2593
db20ebdf
SM
25942020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2595
2596 * async-event.h (create_async_signal_handler): Add name
2597 parameter.
2598 (create_async_event_handler): Likewise.
2599 * async-event.c (struct async_signal_handler) <name>: New field.
2600 (struct async_event_handler) <name>: New field.
2601 (create_async_signal_handler): Assign name.
2602 (create_async_event_handler): Assign name.
2603 * event-top.c (async_init_signals): Pass name when creating
2604 handler.
2605 * infrun.c (_initialize_infrun): Likewise.
2606 * record-btrace.c (record_btrace_push_target): Likewise.
2607 * record-full.c (record_full_open): Likewise.
2608 * remote-notif.c (remote_notif_state_allocate): Likewise.
2609 * remote.c (remote_target::open_1): Likewise.
2610 * tui/tui-win.c (tui_initialize_win): Likewise.
2611
2554f6f5
SM
26122020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2613
2614 * async-event.c (initialize_async_signal_handlers): Pass name to
2615 add_file_handler
2616 * event-top.c (ui_register_input_event_handler): Likewise.
2617 * linux-nat.c (linux_nat_target::async): Likewise.
2618 * run-on-main-thread.c (_initialize_run_on_main_thread):
2619 Likewise
2620 * ser-base.c (reschedule): Likewise.
2621 (ser_base_async): Likewise.
2622 * tui/tui-io.c: Likewise.
2623 * top.h (struct ui) <num>: New field.
2624 * top.c (highest_ui_num): New variable.
2625 (ui::ui): Initialize num.
2626
a7aba266
SM
26272020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2628
2629 * observable.h <inferior_created>: Remove parameters. Update all
2630 listeners.
2631 * inferior.h (post_create_inferior): Remove target parameter.
2632 Update all callers.
2633
048fde1e 26342020-10-02 Nitika Achra <Nitika.Achra@amd.com>
2635
2636 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
2637 and DW_MACRO_undef_strx.
2638 (dwarf_decode_macros): Likewise
2639 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
2640 which is the value of DW_AT_str_offsets_base.
2641 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
2642 str_offsets_base.
2643
064280be
KR
26442020-10-01 Kamil Rytarowski <n54@gmx.com>
2645
2646 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
2647
6ff33035
KR
26482020-10-01 Kamil Rytarowski <n54@gmx.com>
2649
2650 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
2651 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
2652
1eb6eb79
KR
26532020-10-01 Kamil Rytarowski <n54@gmx.com>
2654
2655 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
2656
95eb9e54
TV
26572020-09-30 Tom de Vries <tdevries@suse.de>
2658
2659 PR symtab/26683
2660 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
2661
cae21f8e
TT
26622020-09-30 Tom Tromey <tromey@adacore.com>
2663
2664 * dwarf2/read.c (handle_variant): Use constant_value.
2665
529908cb
TT
26662020-09-29 Tom Tromey <tom@tromey.com>
2667
2668 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
2669 (read_file_scope, dwarf2_get_pc_bounds)
2670 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
2671 (read_structure_type, handle_struct_member_die)
2672 (read_enumeration_type, read_array_type, read_set_type)
2673 (read_tag_pointer_type, read_tag_reference_type)
2674 (read_subroutine_type, read_base_type, read_subrange_type)
2675 (read_full_die_1, partial_die_info::read)
2676 (partial_die_info::read, by, new_symbol)
2677 (dwarf2_const_value_data, dwarf2_const_value_attr)
2678 (dump_die_shallow, dwarf2_fetch_constant_bytes)
2679 (prepare_one_comp_unit): Update.
2680 * dwarf2/attribute.h (DW_UNSND): Remove.
2681
c45bc3f8
TT
26822020-09-29 Tom Tromey <tom@tromey.com>
2683
2684 * dwarf2/read.c (read_func_scope, prototyped_function_p)
2685 (read_subroutine_type, partial_die_info::read)
2686 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
2687 (dwarf2_add_member_fn): Update.
2688 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
2689 * dwarf2/attribute.c (attribute::as_boolean): New method.
2690
23dca5c3
TT
26912020-09-29 Tom Tromey <tom@tromey.com>
2692
2693 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
2694 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
2695 method.
2696 * dwarf2/attribute.c (attribute::as_virtuality): New method.
2697
52c14d11
TT
26982020-09-29 Tom Tromey <tom@tromey.com>
2699
2700 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
2701 the attribute's form.
2702
e8e5c158
TT
27032020-09-29 Tom Tromey <tom@tromey.com>
2704
2705 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
2706 (dwarf2_add_member_fn): Update.
2707 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
2708 * dwarf2/attribute.c (attribute::defaulted): New method, from
2709 is_valid_DW_AT_defaulted.
2710
d4df075e
TT
27112020-09-29 Tom Tromey <tom@tromey.com>
2712
2713 * dwarf2/read.c (dw2_get_file_names_reader)
2714 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
2715 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
2716 (dwarf2_symbol_mark_computed): Use as_unsigned.
2717 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
2718 method.
2719 <form_is_section_offset>: Update comment.
2720
bf23a268
TT
27212020-09-29 Tom Tromey <tom@tromey.com>
2722
2723 * dwarf2/read.c (dwarf2_access_attribute): Rename from
2724 dwarf2_default_access_attribute. Look up attribute.
2725 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
2726 Update.
2727
7a5f294d
TT
27282020-09-29 Tom Tromey <tom@tromey.com>
2729
2730 * dwarf2/read.c (skip_one_die): Update.
2731 (read_full_die_1): Change how reprocessing is done.
2732 (partial_die_info::read): Update.
2733 (read_attribute_value): Remove need_reprocess parameter.
2734 (read_attribute): Likewise.
2735 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
2736 New method.
2737
36d378cf
TT
27382020-09-29 Tom Tromey <tom@tromey.com>
2739
2740 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
2741 (dwarf2_const_value_attr, dump_die_shallow)
2742 (dwarf2_fetch_constant_bytes): Update.
2743 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
2744 comment.
2745 <set_address>: New method.
2746 (DW_ADDR): Remove.
2747 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
2748 (attribute::as_string, attribute::as_address): Add assert.
2749
fe56917a
TT
27502020-09-29 Tom Tromey <tom@tromey.com>
2751
2752 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
2753 (read_attribute_reprocess, read_attribute_value): Update.
2754 (read_attribute): Clear requires_reprocessing.
2755 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
2756 form_requires_reprocessing>: New methods.
2757 <string_init>: Clear requires_reprocessing.
2758 <set_unsigned_reprocess>: New method.
2759 <name>: Shrink by one bit.
2760 <requires_reprocessing>: New member.
2761 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
2762 method.
2763
414ad644
TT
27642020-09-29 Tom Tromey <tom@tromey.com>
2765
2766 * dwarf2/read.c (read_attribute_value): Update.
2767 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
2768 set_unsigned>: New methods.
2769 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
2770
1bc397c5
TT
27712020-09-29 Tom Tromey <tom@tromey.com>
2772
2773 * dwarf2/read.c (get_alignment, read_array_order)
2774 (read_attribute_value, dwarf2_const_value_attr)
2775 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
2776 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
2777 New methods.
2778 (DW_SND): Remove.
2779
630ed6b9
TT
27802020-09-29 Tom Tromey <tom@tromey.com>
2781
2782 * dwarf2/read.c (read_attribute_value, lookup_die_type)
2783 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
2784 Update.
2785 * dwarf2/attribute.h (struct attribute) <as_signature,
2786 set_signature>: New methods.
2787 (DW_SIGNATURE): Remove.
2788
9d2246fc
TT
27892020-09-29 Tom Tromey <tom@tromey.com>
2790
2791 * dwarf2/read.c (read_call_site_scope)
2792 (handle_data_member_location, dwarf2_add_member_fn)
2793 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
2794 (partial_die_info::read, read_attribute_value)
2795 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
2796 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
2797 (dwarf2_symbol_mark_computed): Update.
2798 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
2799 methods.
2800 (DW_BLOCK): Remove.
2801 * dwarf2/attribute.c (attribute::form_is_block): Add
2802 DW_FORM_data16.
2803
c6481205
TT
28042020-09-29 Tom Tromey <tom@tromey.com>
2805
2806 * dwarf2/read.c (read_cutu_die_from_dwo)
2807 (read_attribute_reprocess, read_attribute_value, read_attribute)
2808 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
2809 (dwarf2_fetch_constant_bytes): Update.
2810 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
2811 <set_string_noncanonical, set_string_canonical>: New methods.
2812 <string_is_canonical>: Update comment.
2813 <canonical_string_p>: Add assert.
2814 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
2815 * dwarf2/attribute.c (attribute::form_is_string): New method.
2816 (attribute::string): Use it.
2817
3b64bf15
TT
28182020-09-29 Tom Tromey <tom@tromey.com>
2819
2820 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
2821 (dump_die_shallow): Use canonical_string_p.
2822 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
2823 method.
2824
2c830f54
TT
28252020-09-29 Tom Tromey <tom@tromey.com>
2826
2827 * dwarf2/read.c (partial_die_info::read)
2828 (dwarf2_const_value_attr, anonymous_struct_prefix, )
2829 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
2830 attribute::as_string.
2831
6c412691
TT
28322020-09-29 Tom Tromey <tom@tromey.com>
2833
2834 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
2835 DW_ADDR.
2836 (attribute::string): Don't use DW_STRING.
2837 (attribute::get_ref_die_offset): Don't use DW_UNSND.
2838 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
2839
95f982e5
TT
28402020-09-29 Tom Tromey <tom@tromey.com>
2841
2842 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
2843 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
2844 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
2845 * dwarf2/attribute.h (struct attribute): Rename methods.
2846 * dwarf2/attribute.c (attribute::as_address): Rename from
2847 value_as_address.
2848 (attribute::as_string): Rename from value_as_string.
2849
f800b00e
TT
28502020-09-29 Tom Tromey <tom@tromey.com>
2851
2852 * dwarf2/read.c (partial_die_info::read) <case
2853 DW_AT_linkage_name>: Use value_as_string.
2854 (dwarf2_string_attr): Use value_as_string.
2855 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
2856 method.
2857 * dwarf2/attribute.c (attribute::value_as_string): New method.
2858
de38d64a
PA
28592020-09-29 Pedro Alves <pedro@palves.net>
2860
2861 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
2862 defined before using '#pragma GCC diagnostic' instead of checking
2863 __clang__.
2864
9aed480c
TT
28652020-09-28 Tom Tromey <tom@tromey.com>
2866
2867 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
2868 (handle_signal_stop): Update.
2869 * procfs.c (procfs_target::insert_watchpoint): Update.
2870 * target.h (target_have_steppable_watchpoint): Now a function.
2871
8a3ecb79
TT
28722020-09-28 Tom Tromey <tom@tromey.com>
2873
2874 * infrun.c (set_schedlock_func): Update.
2875 * target.h (target_can_lock_scheduler): Now a function.
2876
55f6301a
TT
28772020-09-28 Tom Tromey <tom@tromey.com>
2878
2879 * inferior.h (class inferior) <has_execution>: Update.
2880 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2881 * valops.c (find_function_in_inferior)
2882 (value_allocate_space_in_inferior): Update.
2883 * top.c (kill_or_detach): Update.
2884 * target.c (target_preopen, set_target_permissions): Update.
2885 (target_has_execution_current): Remove.
2886 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
2887 Update.
2888 * solib.c (update_solib_list, reload_shared_libraries): Update.
2889 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
2890 * solib-dsbt.c (enable_break): Update.
2891 * score-tdep.c (score7_fetch_inst): Update.
2892 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
2893 Update.
2894 * remote.c (remote_target::start_remote)
2895 (remote_target::remote_check_symbols, remote_target::open_1)
2896 (remote_target::remote_detach_1, remote_target::verify_memory)
2897 (remote_target::xfer_partial, remote_target::read_description)
2898 (remote_target::get_min_fast_tracepoint_insn_len): Update.
2899 * record-full.c (record_full_open_1): Update.
2900 * record-btrace.c (record_btrace_target_open): Update.
2901 * objc-lang.c (lookup_objc_class, lookup_child_selector)
2902 (value_nsstring): Update.
2903 * linux-thread-db.c (add_thread_db_info)
2904 (thread_db_find_new_threads_silently, check_thread_db_callback)
2905 (try_thread_db_load_1, record_thread): Update.
2906 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
2907 Update.
2908 * linux-fork.c (checkpoint_command): Update.
2909 * infrun.c (set_non_stop, set_observer_mode)
2910 (check_multi_target_resumption, for_each_just_stopped_thread)
2911 (maybe_remove_breakpoints, normal_stop)
2912 (class infcall_suspend_state): Update.
2913 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
2914 (info_program_command, attach_command): Update.
2915 * infcall.c (call_function_by_hand_dummy): Update.
2916 * inf-loop.c (inferior_event_handler): Update.
2917 * gcore.c (gcore_command, derive_heap_segment): Update.
2918 * exec.c (exec_file_command): Update.
2919 * eval.c (evaluate_subexp): Update.
2920 * compile/compile.c (compile_to_object): Update.
2921 * cli/cli-dump.c (restore_command): Update.
2922 * breakpoint.c (update_watchpoint)
2923 (update_inserted_breakpoint_locations)
2924 (insert_breakpoint_locations, get_bpstat_thread): Update.
2925 * target.h (target_has_execution): Remove macro.
2926 (target_has_execution_current): Don't declare.
2927 (target_has_execution): Rename from target_has_execution_1. Add
2928 argument default.
2929
05374cfd
TT
29302020-09-28 Tom Tromey <tom@tromey.com>
2931
2932 * mi/mi-main.c (exec_reverse_continue)
2933 (mi_cmd_list_target_features): Update.
2934 * infrun.c (set_exec_direction_func): Update.
2935 * target.c (default_execution_direction): Update.
2936 * reverse.c (exec_reverse_once): Update.
2937 * target.h (target_can_execute_reverse): Now a function.
2938
9dccd06e
TT
29392020-09-28 Tom Tromey <tom@tromey.com>
2940
2941 * tui/tui-regs.c (tui_get_register)
2942 (tui_data_window::show_registers): Update.
2943 * thread.c (scoped_restore_current_thread::restore)
2944 (scoped_restore_current_thread::scoped_restore_current_thread):
2945 Update.
2946 * regcache-dump.c (regcache_print): Update.
2947 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
2948 Update.
2949 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
2950 * mep-tdep.c (current_me_module, current_options): Update.
2951 * linux-thread-db.c (thread_db_load): Update.
2952 * infcmd.c (registers_info, info_vector_command)
2953 (info_float_command): Update.
2954 * ia64-tdep.c (ia64_frame_prev_register)
2955 (ia64_sigtramp_frame_prev_register): Update.
2956 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
2957 * gcore.c (derive_stack_segment): Update.
2958 * frame.c (get_current_frame, has_stack_frames): Update.
2959 * findvar.c (language_defn::read_var_value): Update.
2960 * arm-tdep.c (arm_pc_is_thumb): Update.
2961 * target.c (target_has_registers): Rename from
2962 target_has_registers_1.
2963 * target.h (target_has_registers): Remove macro.
2964 (target_has_registers): Rename from target_has_registers_1.
2965
841de120
TT
29662020-09-28 Tom Tromey <tom@tromey.com>
2967
2968 * windows-tdep.c (tlb_make_value): Update.
2969 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2970 * thread.c (scoped_restore_current_thread::restore)
2971 (scoped_restore_current_thread::scoped_restore_current_thread)
2972 (thread_command): Update.
2973 * stack.c (backtrace_command_1, frame_apply_level_command)
2974 (frame_apply_all_command, frame_apply_command): Update.
2975 * infrun.c (siginfo_make_value, restore_infcall_control_state):
2976 Update.
2977 * gcore.c (derive_stack_segment): Update.
2978 * frame.c (get_current_frame, has_stack_frames): Update.
2979 * auxv.c (info_auxv_command): Update.
2980 * ada-tasks.c (ada_build_task_list): Update.
2981 * target.c (target_has_stack): Rename from target_has_stack_1.
2982 * target.h (target_has_stack): Remove macro.
2983 (target_has_stack): Rename from target_has_stack_1.
2984
a739972c
TT
29852020-09-28 Tom Tromey <tom@tromey.com>
2986
2987 * target.c (target_has_memory): Rename from target_has_memory_1.
2988 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2989 * thread.c (scoped_restore_current_thread::restore)
2990 (scoped_restore_current_thread::scoped_restore_current_thread):
2991 Update.
2992 * frame.c (get_current_frame, has_stack_frames): Update.
2993 * target.h (target_has_memory): Remove macro.
2994 (target_has_memory): Rename from target_has_memory_1.
2995
5b8a4776
TT
29962020-09-28 Tom Tromey <tom@tromey.com>
2997
2998 * target.c (target_has_all_memory_1): Remove.
2999 * target.h (target_has_all_memory): Remove define.
3000 (target_has_all_memory_1): Don't declare.
3001
bd356ec6
SM
30022020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
3003
3004 * ser-base.c: Adjust comments formatting.
3005
2c72d5e5
TT
30062020-09-27 Tom Tromey <tom@tromey.com>
3007
3008 PR tui/25342:
3009 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
3010
35a98237
TT
30112020-09-27 Tom Tromey <tom@tromey.com>
3012
3013 PR tui/25342:
3014 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
3015
9e820dec
TT
30162020-09-27 Tom Tromey <tom@tromey.com>
3017
3018 * unittests/tui-selftests.c: Update.
3019 * tui/tui-winsource.h (struct tui_source_window_base)
3020 <extra_margin, show_line_number, refresh_pad>: New methods.
3021 <m_max_length, m_pad>: New members.
3022 (tui_copy_source_line): Update.
3023 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
3024 first_col, line_width, ndigits parameters. Add length.
3025 (tui_source_window_base::show_source_line): Write to pad. Line
3026 number now 0-based.
3027 (tui_source_window_base::refresh_pad): New method.
3028 (tui_source_window_base::show_source_content): Write to pad. Call
3029 refresh_pad.
3030 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
3031 not refill.
3032 (tui_source_window_base::update_exec_info): Call
3033 show_line_number.
3034 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
3035 method.
3036 <m_digits>: New member.
3037 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
3038 and m_max_length.
3039 (tui_source_window::show_line_number): New method.
3040 * tui/tui-io.h (tui_puts): Fix comment.
3041 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
3042 m_max_length.
3043
c15c15c8
TT
30442020-09-27 Tom Tromey <tom@tromey.com>
3045
3046 * tui/tui-winsource.c
3047 (tui_source_window_base::set_is_exec_point_at): Don't call
3048 show_source_line.
3049
149830c1
TT
30502020-09-27 Tom Tromey <tom@tromey.com>
3051
3052 * python/py-tui.c (class tui_py_window) <refresh_window>: New
3053 method.
3054 <erase>: Update.
3055 <cursor_x, cursor_y>: Remove.
3056 <m_inner_window>: New member.
3057 (tui_py_window::rerender): Create inner window.
3058 (tui_py_window::output): Write to inner window.
3059
8f9929bb
GR
30602020-09-26 Gareth Rees <grees@undo.io> (tiny change)
3061
3062 PR python/26586
3063 * cli/cli-script.c (execute_control_commands): don't set
3064 instream to nullptr here as this breaks the from_tty argument
3065 to gdb.execute in Python.
3066 (execute_user_command): set instream to nullptr here instead.
3067
956bdb59
SM
30682020-09-25 Simon Marchi <simon.marchi@efficios.com>
3069
3070 * infrun.h (infrun_debug_printf): Fix formatting.
3071 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
3072
3b93626b
SJ
30732020-09-25 Saagar Jha <saagar@saagarjha.com>
3074
3075 * compile/compile-object-load.h (struct munmap_list): Add
3076 explicitly-defined move constructor.
3077
b551a89f
TT
30782020-09-24 Tom Tromey <tromey@adacore.com>
3079
3080 PR tui/26638:
3081 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
3082 method.
3083 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
3084 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
3085 (tui_prev_win): Rewrite.
3086
99bb393f
HD
30872020-09-23 Hannes Domani <ssbssa@yahoo.de>
3088
3089 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
3090 in WOW64 processes as SIGINT.
3091 * nat/windows-nat.h: Make wow64_process a shared variable.
3092 * windows-nat.c: Remove static wow64_process variable.
3093
20a5fcbd
TT
30942020-09-23 Tom Tromey <tom@tromey.com>
3095
3096 PR symtab/25470:
3097 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
3098 offset and bit size.
3099 * printcmd.c (print_scalar_formatted): Handle zero-length
3100 integer.
3101 (print_scalar_formatted): Use bit_size_differs_p.
3102 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
3103 constant.
3104 (union type_specific): <int_stuff>: New member.
3105 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
3106 methods.
3107 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
3108 TYPE_SPECIFIC_FIELD.
3109 (recursive_dump_type, copy_type_recursive): Update.
3110 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
3111 DW_AT_data_bit_offset.
3112
bac51ab7
TT
31132020-09-23 Tom Tromey <tom@tromey.com>
3114
3115 * utils.h (class gdb_argv): Add move operators.
3116 <append>: New methods.
3117 * compile/compile.c (build_argc_argv): Remove.
3118 (compile_args_argc): Remove.
3119 (compile_args_argv): Change type.
3120 (set_compile_args): Simplify.
3121 (append_args): Remove.
3122 (filter_args): Remove argcp parameter.
3123 (get_args): Return gdb_argv. Simplify.
3124 (compile_to_object): Update.
3125
92677124
TT
31262020-09-23 Tom Tromey <tom@tromey.com>
3127
3128 * compile/compile-object-run.c (do_module_cleanup)
3129 <~do_module_cleanup> :Remove.
3130 (do_module_cleanup): Update.
3131 * compile/compile-object-load.h (struct munmap_list): Add move
3132 assignment operator.
3133 <source_file>: Now a std::string.
3134 <munmap_list>: Rename. No longer a pointer.
3135 * compile/compile-object-load.c (struct setup_sections_data): Add
3136 constructor.
3137 <setup_one_section>: Declare.
3138 <munmap_list>: Move earlier.
3139 <m_bfd>: New member.
3140 <m_last_size, m_last_section_first, m_last_prot,
3141 m_last_max_alignment>: Rename, add initializers where needed.
3142 (setup_sections_data::setup_one_section): Rename from
3143 setup_sections. Update.
3144 (compile_object_load): Update. Don't use bfd_map_over_sections.
3145
e616f60a
TT
31462020-09-23 Tom Tromey <tom@tromey.com>
3147
3148 * compile/compile-object-run.c (struct do_module_cleanup): Add
3149 parameters to constructor. Update destructor.
3150 <source_file, scope, scope_data, out_value_type, out_value_addr,
3151 munmap_list_head, objfile_name_string>: Remove.
3152 <module>: New member.
3153 (do_module_cleanup): Update.
3154 (compile_object_run): Update.
3155
e947a848
TT
31562020-09-23 Tom Tromey <tom@tromey.com>
3157
3158 * compile/compile.c (eval_compile_command): Update.
3159 * compile/compile-object-run.h (compile_object_run): Take a
3160 compile_module_up.
3161 * compile/compile-object-run.c (compile_object_run): Take a
3162 compile_module_up.
3163 * compile/compile-object-load.h (struct compile_module): Add
3164 constructor, destructor.
3165 (compile_module_up): New typedef.
3166 (compile_object_load): Return compile_object_up.
3167 * compile/compile-object-load.c (compile_object_load): Return
3168 compile_module_up.
3169
0dbf6ee6
TT
31702020-09-23 Tom Tromey <tom@tromey.com>
3171
3172 * compile/compile-object-run.c (struct do_module_cleanup): Add
3173 constructor, destructor.
3174 <objfile_name_string>: Don't use struct hack.
3175 (do_module_cleanup): Use delete.
3176 (compile_object_run): Use new.
3177
ebe824f5
TT
31782020-09-23 Tom Tromey <tom@tromey.com>
3179
3180 * compile/compile-cplus-types.c
3181 (compile_cplus_convert_struct_or_union): Use std::vector.
3182 (compile_cplus_convert_func): Likewise.
3183 * compile/compile-c-types.c (convert_func): Use std::vector.
3184
5dd918d9
TT
31852020-09-21 Tom Tromey <tromey@adacore.com>
3186
3187 * sparc-tdep.c (sparc32_skip_prologue): Use
3188 skip_prologue_using_sal.
3189
5486c517
TT
31902020-09-19 Tom Tromey <tom@tromey.com>
3191
3192 * symfile.c (add_section_size_callback): Remove.
3193 (load_one_section): Rename from load_section_callback. Change
3194 parameters.
3195 (generic_load): Use foreach.
3196
8a6bb1d1
TT
31972020-09-19 Tom Tromey <tom@tromey.com>
3198
3199 * exec.c (add_to_section_table): Remove.
3200 (build_section_table): Use foreach.
3201
08f93a1a
TT
32022020-09-19 Tom Tromey <tom@tromey.com>
3203
3204 * elfread.c (elf_locate_sections): Change parameters.
3205 (elf_symfile_read): Use foreach.
3206
03cd72b8
TT
32072020-09-19 Tom Tromey <tom@tromey.com>
3208
3209 * cli/cli-dump.c (struct callback_data): Remove.
3210 (restore_one_section): Rename from restore_section_callback.
3211 Change parameters.
3212 (restore_binary_file): Change parameters.
3213 (restore_command): Use foreach.
3214
f4f2b85f
TT
32152020-09-19 Tom Tromey <tom@tromey.com>
3216
3217 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
3218 (gcore_copy_callback): Likewise.
3219 (gcore_memory_sections): Use foreach.
3220
b35c1d1c
TT
32212020-09-19 Tom Tromey <tom@tromey.com>
3222
3223 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
3224 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
3225 parameters.
3226 (generic_elf_osabi_sniffer): Use foreach.
3227 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
3228 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
3229
5bb6e9dd
TT
32302020-09-19 Tom Tromey <tom@tromey.com>
3231
3232 * dwarf2/read.c (locate_dwz_sections): Change parameters.
3233 (dwarf2_get_dwz_file): Use foreach.
3234 (dwarf2_locate_dwo_sections): Change parameters.
3235 (open_and_init_dwo_file): Use foreach.
3236 (dwarf2_locate_common_dwp_sections): Change parameters.
3237 (open_and_init_dwp_file): Use foreach.
3238
ad7277da
TT
32392020-09-19 Tom Tromey <tom@tromey.com>
3240
3241 * symfile.h: (find_lowest_section): Don't declare.
3242 * symfile.c (find_lowest_section): Now static. Change
3243 parameters.
3244 (struct place_section_arg): Remove.
3245 (place_section): Change parameters.
3246 (addr_info_make_relative): Use foreach.
3247 (symfile_dummy_outputs): Remove.
3248 (default_symfile_relocate): Use foreach.
3249
cb814f2e
TT
32502020-09-19 Tom Tromey <tom@tromey.com>
3251
3252 * objfiles.c (add_to_objfile_sections): Rename from
3253 add_to_objfile_sections_full.
3254 (add_to_objfile_sections): Remove.
3255 (build_objfile_section_table): Use foreach.
3256
3cabfd26
TT
32572020-09-19 Tom Tromey <tom@tromey.com>
3258
3259 * stap-probe.c (get_stap_base_address_1): Remove.
3260 (get_stap_base_address): Use foreach.
3261
1ce51eb5
TT
32622020-09-19 Tom Tromey <tom@tromey.com>
3263
3264 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
3265 parameters.
3266 (gdb_bfd_close_or_warn): Use foreach.
3267
a190fabb
TT
32682020-09-19 Tom Tromey <tom@tromey.com>
3269
3270 * corelow.c (add_to_thread_list): Change parameters.
3271 (core_target_open): Use foreach.
3272
cafb0d81
TT
32732020-09-19 Tom Tromey <tom@tromey.com>
3274
3275 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
3276 existing function.
3277
c8d5abea
AB
32782020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3279
3280 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
3281 for arrays.
3282
6d816919
AB
32832020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3284
3285 * eval.c: Remove 'f-lang.h' include.
3286 (value_f90_subarray): Moved to f-lang.c.
3287 (eval_call): Renamed to...
3288 (evaluate_subexp_do_call): ...this, is no longer static, header
3289 comment moved into header file.
3290 (evaluate_funcall): Update call to eval_call.
3291 (skip_undetermined_arglist): Moved to f-lang.c.
3292 (fortran_value_subarray): Likewise.
3293 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3294 moved to evaluate_subexp_f.
3295 (calc_f77_array_dims): Moved to f-lang.c
3296 * expprint.c (print_subexp_funcall): New function.
3297 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3298 moved to print_subexp_f, OP_FUNCALL uses new function.
3299 (dump_subexp_body_funcall): New function.
3300 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
3301 moved to dump_subexp_f, OP_FUNCALL uses new function.
3302 * expression.h (evaluate_subexp_do_call): Declare.
3303 * f-lang.c (value_f90_subarray): Moved from eval.c.
3304 (skip_undetermined_arglist): Likewise.
3305 (calc_f77_array_dims): Likewise.
3306 (fortran_value_subarray): Likewise.
3307 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
3308 (operator_length_f): Likewise.
3309 (print_subexp_f): Likewise.
3310 (dump_subexp_body_f): Likewise.
3311 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
3312 declaration of this operation to here.
3313 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
3314 support moved to operator_length_f.
3315 * parser-defs.h (dump_subexp_body_funcall): Declare.
3316 (print_subexp_funcall): Declare.
3317 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
3318 fortran-operator.def.
3319
8c37706a
AB
33202020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3321
3322 * eval.c (fortran_value_subarray): New function, content is taken
3323 from...
3324 (evaluate_subexp_standard): ...here, in two places. Now arrays
3325 and strings both call the new function.
3326 (calc_f77_array_dims): Add header comment, handle strings.
3327
14f9473c
VC
33282020-09-18 Victor Collod <vcollod@nvidia.com>
3329
3330 PR gdb/26635
3331 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
3332 (i386_analyze_prologue): Call i386_skip_endbr.
3333
b60cea74
TT
33342020-09-18 Tom Tromey <tromey@adacore.com>
3335
3336 * windows-nat.c (struct windows_nat_target) <wait>: Update.
3337 (windows_nat_target::wait): Update.
3338 * target/wait.h (enum target_wait_flag): New. Use
3339 DEF_ENUM_FLAGS_TYPE.
3340 * target/target.h (target_wait): Change type of options.
3341 * target.h (target_options_to_string, default_target_wait):
3342 Update.
3343 (struct target_ops) <wait>: Change type of options.
3344 * target.c (target_wait, default_target_wait, do_option): Change
3345 type of "options".
3346 (target_options_to_string): Likewise.
3347 * target-delegates.c: Rebuild.
3348 * target-debug.h (target_debug_print_target_wait_flags): Rename
3349 from target_debug_print_options.
3350 * sol-thread.c (class sol_thread_target) <wait>: Update.
3351 (sol_thread_target::wait): Update.
3352 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
3353 (rs6000_nat_target::wait): Update.
3354 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
3355 Update.
3356 (remote_target::wait_ns, remote_target::wait_as): Change type of
3357 "options".
3358 (remote_target::wait): Update.
3359 * remote-sim.c (struct gdbsim_target) <wait>: Update.
3360 (gdbsim_target::wait): Update.
3361 * record-full.c (class record_full_base_target) <wait>: Update.
3362 (record_full_wait_1): Change type of "options".
3363 (record_full_base_target::wait): Update.
3364 * record-btrace.c (class record_btrace_target) <wait>: Update.
3365 (record_btrace_target::wait): Update.
3366 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
3367 Update.
3368 (ravenscar_thread_target::wait): Update.
3369 * procfs.c (class procfs_target) <wait>: Update.
3370 (procfs_target::wait): Update.
3371 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
3372 * obsd-nat.c (obsd_nat_target::wait): Update.
3373 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
3374 (nto_procfs_target::wait): Update.
3375 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
3376 * nbsd-nat.c (nbsd_wait): Change type of "options".
3377 (nbsd_nat_target::wait): Update.
3378 * linux-thread-db.c (class thread_db_target) <wait>: Update.
3379 (thread_db_target::wait): Update.
3380 * linux-nat.h (class linux_nat_target) <wait>: Update.
3381 * linux-nat.c (linux_nat_target::wait): Update.
3382 (linux_nat_wait_1): Update.
3383 * infrun.c (do_target_wait_1, do_target_wait): Change type of
3384 "options".
3385 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
3386 * inf-ptrace.c (inf_ptrace_target::wait): Update.
3387 * go32-nat.c (struct go32_nat_target) <wait>: Update.
3388 (go32_nat_target::wait): Update.
3389 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
3390 * gnu-nat.c (gnu_nat_target::wait): Update.
3391 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
3392 * fbsd-nat.c (fbsd_nat_target::wait): Update.
3393 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
3394 * darwin-nat.c (darwin_nat_target::wait): Update.
3395 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
3396 (bsd_uthread_target::wait): Update.
3397 * aix-thread.c (class aix_thread_target) <wait>: Update.
3398 (aix_thread_target::wait): Update.
3399
0295dde6
AB
34002020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
3401
3402 * compile/compile-object-run.c (create_copied_type_recursive): New
3403 function.
3404 (compile_object_run): Use new function.
3405
d3483b43
JT
34062020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
3407
3408 * NEWS: Mention x86_64 Cygwin core file support.
3409
e7d612ad
JT
34102020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3411
3412 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
3413 (core_process_module_section): Handle NOTE_INFO_MODULE64.
3414
aff9d387
JT
34152020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3416
62a5151b
JT
3417 * windows-tdep.h: Add prototypes.
3418 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
3419 (i386_windows_core_pid_to_str): Move and rename ...
3420 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
3421 (windows_core_pid_to_str): ... and here.
3422 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
3423
34242020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
3425 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
3426 (amd64_windows_init_abi_common): ... and register.
3427
7d155da3
JT
34282020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3429
3430 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
3431 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
3432
e8ef12b9
PA
34332020-09-18 Pedro Alves <pedro@palves.net>
3434
3435 PR gdb/26631
3436 * thread.c (thread_find_command): Switch inferior before calling
3437 target methods.
3438
c1e1314d
TT
34392020-09-17 Tom Tromey <tromey@adacore.com>
3440
3441 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
3442 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
3443 (tdesc_arch_data_up): New typedef.
3444 (tdesc_use_registers, tdesc_data_alloc): Update.
3445 (tdesc_data_cleanup): Don't declare.
3446 * target-descriptions.c (tdesc_data_alloc): Return a
3447 tdesc_arch_data_up.
3448 (tdesc_arch_data_deleter::operator()): Rename from
3449 tdesc_data_cleanup. Change argument type.
3450 (tdesc_use_registers): Change early_data to an rvalue reference.
3451 (tdesc_use_registers): Don't use delete.
3452 * sparc-tdep.c (sparc32_gdbarch_init): Update.
3453 * s390-tdep.c (s390_gdbarch_init): Update.
3454 * rx-tdep.c (rx_gdbarch_init): Update.
3455 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3456 * riscv-tdep.c (riscv_gdbarch_init): Update.
3457 * or1k-tdep.c (or1k_gdbarch_init): Update.
3458 * nios2-tdep.c (nios2_gdbarch_init): Update.
3459 * nds32-tdep.c (nds32_gdbarch_init): Update.
3460 * mips-tdep.c (mips_gdbarch_init): Update.
3461 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
3462 * m68k-tdep.c (m68k_gdbarch_init): Update.
3463 * i386-tdep.c (i386_gdbarch_init): Update.
3464 * arm-tdep.c (arm_gdbarch_init): Update.
3465 * arc-tdep.c (arc_tdesc_init): Update.
3466 (arc_gdbarch_init): Update.
3467 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
3468
0363df3d
HD
34692020-09-17 Hannes Domani <ssbssa@yahoo.de>
3470
3471 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
3472 for WOW64 processes.
3473
280a9412
TT
34742020-09-17 Tom Tromey <tom@tromey.com>
3475
3476 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
3477
6108fd18
TT
34782020-09-17 Tom Tromey <tom@tromey.com>
3479
3480 * value.c (preserve_values): Update.
3481 * python/py-type.c (save_objfile_types): Update.
3482 * guile/scm-type.c (save_objfile_types): Update.
3483 * gdbtypes.h (create_copied_types_hash): Return htab_up.
3484 * gdbtypes.c (create_copied_types_hash): Return htab_up.
3485 * compile/compile-object-run.c (compile_object_run): Update.
3486
fa9b1164
TT
34872020-09-17 Tom Tromey <tom@tromey.com>
3488
3489 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
3490 Remove.
3491 <m_table>: Now htab_up.
3492 * typeprint.c (typedef_hash_table::recursively_update)
3493 (typedef_hash_table::add_template_parameters)
3494 (typedef_hash_table::typedef_hash_table): Update.
3495 (typedef_hash_table::~typedef_hash_table): Remove.
3496 (typedef_hash_table::typedef_hash_table)
3497 (typedef_hash_table::find_global_typedef)
3498 (typedef_hash_table::find_typedef): Update.
3499
eb53f105
TT
35002020-09-17 Tom Tromey <tom@tromey.com>
3501
3502 * target-descriptions.c (tdesc_use_registers): Use htab_up.
3503
7a8a5d47
TT
35042020-09-17 Tom Tromey <tom@tromey.com>
3505
3506 * linespec.c (class decode_compound_collector)
3507 <~decode_compound_collector>: Remove.
3508 <m_unique_syms>: Now htab_up.
3509 (decode_compound_collector::operator ()): Update.
3510 (class symtab_collector) <~symtab_collector>: Remove.
3511 <m_symtab_table>: Now htab_up.
3512 (symtab_collector::operator ()): Update.
3513
99032cfc
TT
35142020-09-17 Tom Tromey <tom@tromey.com>
3515
3516 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
3517 (filename_seen_cache::clear): Update.
3518 (~filename_seen_cache): Remove.
3519 (filename_seen_cache::seen): Update.
3520 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
3521 htab_up.
3522 <~filename_seen_cache>: Remove.
3523 <traverse>: Update.
3524
32580f6d
TT
35252020-09-17 Tom Tromey <tom@tromey.com>
3526
3527 * completer.c (completion_tracker::discard_completions)
3528 (completion_tracker::~completion_tracker)
3529 (completion_tracker::maybe_add_completion)
3530 (completion_tracker::remove_completion)
3531 (completion_tracker::recompute_lowest_common_denominator)
3532 (completion_tracker::build_completion_result): Update.
3533 * completer.h (class completion_tracker) <have_completions>:
3534 Update.
3535 <m_entries_hash>: Now htab_up.
3536
c1fb9836
TT
35372020-09-17 Tom Tromey <tom@tromey.com>
3538
3539 * breakpoint.c (ambiguous_names_p): Use htab_up.
3540
88f07206
TT
35412020-09-17 Tom Tromey <tom@tromey.com>
3542
3543 * auto-load.c (struct auto_load_pspace_info)
3544 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
3545 <loaded_script_files, loaded_script_texts>: Change type to
3546 htab_up.
3547 (~auto_load_pspace_info) Remove.
3548 (init_loaded_scripts_info, maybe_add_script_file)
3549 (maybe_add_script_text, auto_load_info_scripts): Update.
3550
9519b2ee
TT
35512020-09-17 Tom Tromey <tromey@adacore.com>
3552
3553 * c-exp.y (name_obstack): Now static.
3554
d2cd4113
CC
35552020-09-17 Chungyi Chi <demonic@csie.io>
3556
3557 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
3558
b650a282
SM
35592020-09-16 Simon Marchi <simon.marchi@efficios.com>
3560
3561 * breakpoint.h (init_catchpoint): Change int parameter to bool.
3562 (add_solib_catchpoint): Likewise.
3563 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
3564 to bool.
3565 (add_solib_catchpoint): Change int parameter/variable to bool.
3566 (catch_load_or_unload): Likewise.
3567 (init_catchpoint): Likewise.
3568 (create_fork_vfork_event_catchpoint): Likewise.
3569 (catch_fork_command_1): Likewise.
3570 (catch_exec_command_1): Likewise.
3571
4d0bcfcf
SM
35722020-09-16 Simon Marchi <simon.marchi@efficios.com>
3573
3574 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
3575 Change instance_flags to m_instance_flags.
3576
fe830662
TT
35772020-09-16 Tom Tromey <tromey@adacore.com>
3578
3579 PR gdb/26598:
3580 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
3581
fe5ddfc3
JB
35822020-09-16 John Baldwin <jhb@FreeBSD.org>
3583
3584 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
3585 PL_FLAG_EXEC.
3586 (fbsd_nat_target::insert_exec_catchpoint)
3587 (fbsd_nat_target::remove_exec_catchpoint): Always define.
3588 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
3589 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
3590
e911c666
JB
35912020-09-16 John Baldwin <jhb@FreeBSD.org>
3592
3593 * configure.ac: Remove check for kinfo_getvmmap().
3594 * configure, config.in: Regenerate.
3595 * fbsd-nat.c (fbsd_read_mapping): Remove
3596 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
3597 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
3598 kinfo_get_vmmap() are always present.
3599
1f17d372
JB
36002020-09-16 John Baldwin <jhb@FreeBSD.org>
3601
3602 * fbsd-nat.c: Always include support for
3603 TARGET_OBJECT_SIGNAL_INFO.
3604
bcb1da7f
JB
36052020-09-16 John Baldwin <jhb@FreeBSD.org>
3606
3607 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
3608 sysctl and remove procfs fallback.
3609
5515f729
JB
36102020-09-16 John Baldwin <jhb@FreeBSD.org>
3611
3612 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
3613 * fbsd-nat.h: Likewise.
3614
da1df1db
TBA
36152020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3616
3617 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
3618 argument.
3619
0e25e767
AB
36202020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3621
3622 * ada-lang.c (ada_language_data): Delete.
3623 (ada_language): Remove references to ada_language_data.
3624 * c-lang.c (c_language_data): Delete.
3625 (c_language): Remove references to c_language_data.
3626 (cplus_language_data): Delete.
3627 (cplus_language): Remove references to cplus_language_data.
3628 (asm_language_data): Delete.
3629 (asm_language): Remove references to asm_language_data.
3630 (minimal_language_data): Delete.
3631 (minimal_language): Remove references to minimal_language_data.
3632 * d-lang.c (d_language_data): Delete.
3633 (d_language): Remove references to d_language_data.
3634 * f-lang.c (f_language_data): Delete.
3635 (f_language): Remove references to f_language_data.
3636 * go-lang.c (go_language_data): Delete.
3637 (go_language): Remove references to go_language_data.
3638 * language.c (unknown_language_data): Delete.
3639 (unknown_language): Remove references to unknown_language_data.
3640 (auto_language_data): Delete.
3641 (auto_language): Remove references to auto_language_data.
3642 * language.h (language_data): Delete struct.
3643 (language_defn): No longer inherit from language_data.
3644 * m2-lang.c (m2_language_data): Delete.
3645 (m2_language): Remove references to m2_language_data.
3646 * objc-lang.c (objc_language_data): Delete.
3647 (objc_language): Remove references to objc_language_data.
3648 * opencl-lang.c (opencl_language_data): Delete.
3649 (opencl_language): Remove references to opencl_language_data.
3650 * p-lang.c (pascal_language_data): Delete.
3651 (pascal_language): Remove references to pascal_language_data.
3652 * rust-lang.c (rust_language_data): Delete.
3653 (rust_language): Remove references to rust_language_data.
3654
b7c6e27d
AB
36552020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3656
3657 * ada-lang.c (ada_language_data): Remove la_op_print_tab
3658 initializer.
3659 (ada_language::opcode_print_table): New member function.
3660 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
3661 (c_language::opcode_print_table): New member function.
3662 (cplus_language_data): Remove la_op_print_tab initializer.
3663 (cplus_language::opcode_print_table): New member function.
3664 (asm_language_data): Remove la_op_print_tab initializer.
3665 (asm_language::opcode_print_table): New member function.
3666 (minimal_language_data): Remove la_op_print_tab initializer.
3667 (minimal_language::opcode_print_table): New member function.
3668 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
3669 (d_language::opcode_print_table): New member function.
3670 * expprint.c (print_subexp_standard): Update call to
3671 opcode_print_table.
3672 (op_string): Likewise.
3673 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
3674 (f_language::opcode_print_table): New member function.
3675 * go-lang.c (go_language_data): Remove la_op_print_tab
3676 initializer.
3677 (go_language::opcode_print_table): New member function.
3678 * language.c (unknown_language_data): Remove la_op_print_tab
3679 initializer.
3680 (unknown_language::opcode_print_table): New member function.
3681 (auto_language_data): Remove la_op_print_tab initializer.
3682 (auto_language::opcode_print_table): New member function.
3683 * language.h (language_data): Remove la_op_print_tab field.
3684 (language_defn::opcode_print_table): Declare new member function.
3685 * m2-lang.c (m2_language_data): Remove la_op_print_tab
3686 initializer.
3687 (m2_language::opcode_print_table): New member function.
3688 * objc-lang.c (objc_language_data): Remove la_op_print_tab
3689 initializer.
3690 (objc_language::opcode_print_table): New member function.
3691 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
3692 initializer.
3693 (opencl_language::opcode_print_table): New member function.
3694 * p-lang.c (pascal_language_data): Remove la_op_print_tab
3695 initializer.
3696 (pascal_language::opcode_print_table): New member function.
3697 * rust-lang.c (rust_language_data): Remove la_op_print_tab
3698 initializer.
3699 (rust_language::opcode_print_table): New member function.
3700
5aba6ebe
AB
37012020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3702
3703 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
3704 (ada_language::expression_ops): New member function.
3705 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
3706 (c_language::expression_ops): New member function.
3707 (cplus_language_data): Remove la_exp_desc initializer.
3708 (cplus_language::expression_ops): New member function.
3709 (asm_language_data): Remove la_exp_desc initializer.
3710 (asm_language::expression_ops): New member function.
3711 (minimal_language_data): Remove la_exp_desc initializer.
3712 (minimal_language::expression_ops): New member function.
3713 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
3714 (d_language::expression_ops): New member function.
3715 * eval.c (evaluate_subexp): Update call to expression_ops.
3716 * expprint.c (print_subexp): Likewise.
3717 (op_name): Likewise.
3718 (dump_subexp_body): Likewise.
3719 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
3720 (f_language::expression_ops): New member function.
3721 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
3722 (go_language::expression_ops): New member function.
3723 * language.c (language_defn::expression_ops): New function.
3724 (unknown_language_data): Remove la_exp_desc initializer.
3725 (auto_language_data): Likewise.
3726 * language.h (language_data): Remove la_exp_desc field.
3727 (language_defn::expression_ops): Declare new member function.
3728 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
3729 (m2_language::expression_ops): New member function.
3730 * objc-lang.c (objc_language_data): Remove la_exp_desc
3731 initializer.
3732 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
3733 initializer.
3734 (opencl_language::expression_ops): New member function.
3735 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
3736 * parse.c (operator_length): Update call to expression_ops.
3737 (exp_iterate): Likewise.
3738 * rust-lang.c (rust_language_data): Remove la_exp_desc
3739 initializer.
3740 (ruse_language::expression_ops): New member function.
3741
b63a3f3f
AB
37422020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3743
3744 * ada-lang.c (ada_language_data): Remove la_varobj_ops
3745 initializer.
3746 (ada_language::varobj_ops): New member function.
3747 * c-lang.c (c_language_data): Remove la_varobj_ops
3748 initializer.
3749 (cplus_language_data): Likewise.
3750 (cplus_language::varobj_ops): New member function.
3751 (asm_language_data): Remove la_varobj_ops initializer.
3752 (minimal_language_data): Likewise.
3753 * d-lang.c (d_language_data): Likewise.
3754 * f-lang.c (f_language_data): Likewise.
3755 * go-lang.c (go_language_data): Likewise.
3756 * language.c (language_defn::varobj_ops): New function.
3757 (unknown_language_data): Remove la_varobj_ops
3758 initializer.
3759 (auto_language_data): Likewise.
3760 * language.h (language_data): Remove la_varobj_ops field.
3761 (language_defn::varobj_ops): Declare new member function.
3762 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
3763 * objc-lang.c (objc_language_data): Likewise.
3764 * opencl-lang.c (opencl_language_data): Likewise.
3765 * p-lang.c (pascal_language_data): Likewise.
3766 * rust-lang.c (rust_language_data): Likewise.
3767 * varobj.c (varobj_create): Update call to varobj_ops.
3768 * varobj.h (default_varobj_ops): Delete define.
3769
1ac14a04
AB
37702020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3771
3772 * ada-lang.c (ada_language_data): Remove la_macro_expansion
3773 initializer.
3774 * c-lang.c (c_language_data): Likewise.
3775 (c_language::macro_expansion): New member function.
3776 (cplus_language_data): Likewise.
3777 (cplus_language::macro_expansion): New member function.
3778 (asm_language_data): Likewise.
3779 (asm_language::macro_expansion): New member function.
3780 (minimal_language_data): Likewise.
3781 (minimal_language::macro_expansion): New member function.
3782 * d-lang.c (d_language_data): Remove la_macro_expansion
3783 initializer.
3784 * f-lang.c (f_language_data): Likewise.
3785 * go-lang.c (go_language_data): Likewise.
3786 * language.c (unknown_language_data): Likewise.
3787 (auto_language_data): Likewise.
3788 * language.h (language_data): Remove la_macro_expansion field.
3789 (language_defn::macro_expansion): New member function.
3790 * m2-lang.c (m2_language_data): Remove la_macro_expansion
3791 initializer.
3792 * objc-lang.c (objc_language_data): Likewise.
3793 (objc_language::macro_expansion): New member function.
3794 * opencl-lang.c (opencl_language_data): Likewise.
3795 (opencl_language::macro_expansion): New member function.
3796 * p-lang.c (pascal_language_data): Remove la_macro_expansion
3797 initializer.
3798 * rust-lang.c (rust_language_data): Likewise.
3799 * symtab.c (default_collect_symbol_completion_matches_break_on):
3800 Update call to macro_expansion.
3801
3a3440fb
AB
38022020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3803
3804 * ada-lang.c (ada_language_data): Remove la_array_ordering
3805 initializer.
3806 * c-lang.c (c_language_data): Likewise.
3807 (cplus_language_data): Likewise.
3808 (asm_language_data): Likewise.
3809 (minimal_language_data): Likewise.
3810 * d-lang.c (d_language_data): Likewise.
3811 * dwarf2/read.c (read_array_order): Update for call to
3812 array_ordering.
3813 * f-lang.c (f_language_data): Remove la_array_ordering
3814 initializer.
3815 (f_language::array_ordering): New member function.
3816 * go-lang.c (go_language_data): Remove la_array_ordering
3817 initializer.
3818 * language.c (unknown_language_data): Likewise.
3819 (auto_language_data): Likewise.
3820 * language.h (language_data): Delete la_array_ordering field.
3821 (language_defn::array_ordering): New member function.
3822 * m2-lang.c (m2_language_data): Remove la_array_ordering
3823 initializer.
3824 * objc-lang.c (objc_language_data): Likewise.
3825 * opencl-lang.c (opencl_language_data): Likewise.
3826 * p-lang.c (pascal_language_data): Likewise.
3827 * rust-lang.c (rust_language_data): Likewise.
3828
0d201fa4
AB
38292020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3830
3831 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
3832 initializer.
3833 * c-lang.c (c_language_data): Likewise.
3834 (cplus_language_data): Likewise.
3835 (asm_language_data): Likewise.
3836 (minimal_language_data): Likewise.
3837 * d-lang.c (d_language_data): Likewise.
3838 * f-lang.c (f_language_data): Likewise.
3839 (f_language::case_sensitivity): New member function.
3840 * go-lang.c (go_language_data): Remove la_case_sensitivity
3841 initializer.
3842 * language.c (enum case_mode): Moved here from language.h.
3843 (case_mode): Make static.
3844 (show_case_command): Update for case_sensitivity being a method.
3845 (set_case_command): Likewise.
3846 (set_range_case): Likewise.
3847 (unknown_language_data): Remove la_case_sensitivity initializer.
3848 (auto_language_data): Likewise.
3849 * language.h (case_mode): Delete, move enum declaration to
3850 language.c.
3851 (language_data): Delete la_case_sensitivity field.
3852 (language_defn::case_sensitivity): New member function.
3853 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
3854 initializer.
3855 * objc-lang.c (objc_language_data): Likewise.
3856 * opencl-lang.c (opencl_language_data): Likewise.
3857 * p-lang.c (pascal_language_data): Likewise.
3858 * rust-lang.c (rust_language_data): Likewise.
3859
efdf6a73
AB
38602020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3861
3862 * ada-lang.c (ada_language_data): Remove la_range_check
3863 initializer.
3864 * c-lang.c (c_language_data): Likewise.
3865 (cplus_language_data): Likewise.
3866 (asm_language_data): Likewise.
3867 (minimal_language_data): Likewise.
3868 * d-lang.c (d_language_data): Likewise.
3869 * f-lang.c (f_language_data): Likewise.
3870 (f_language::range_checking_on_by_default): New member function.
3871 * go-lang.c (go_language_data): Remove la_range_check initializer.
3872 * language.c (enum range_mode): Moved here from language.h.
3873 (range_mode): Made static.
3874 (show_range_command): Update to use
3875 range_checking_on_by_default.
3876 (set_range_command): Likewise.
3877 (set_range_case): Likewise.
3878 (unknown_language_data): Remove la_range_check initializer.
3879 (auto_language_data): Likewise.
3880 * language.h (range_mode): Delete. Enum definition moved to
3881 language.c.
3882 (language_data): Remove la_range_check field.
3883 (language_defn::range_checking_on_by_default): New member
3884 function.
3885 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
3886 (m2_language::range_checking_on_by_default): New member function.
3887 * objc-lang.c (objc_language_data): Remove la_range_check
3888 initializer.
3889 * opencl-lang.c (opencl_language_data): Likewise.
3890 * p-lang.c (pascal_language_data): Likewise.
3891 (pascal_language::range_checking_on_by_default): New member
3892 function.
3893 * rust-lang.c (rust_language_data): Remove la_range_check
3894 initializer.
3895 (rust_language::range_checking_on_by_default): New member
3896 function.
3897
bf92aec5
AB
38982020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3899
3900 * dwarf2/read.c (dwarf2_physname): Remove special case for
3901 language_go.
3902 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
3903 member function.
3904
d3355e4d
AB
39052020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3906
3907 * ada-lang.c (ada_language_data): Remove
3908 la_store_sym_names_in_linkage_form_p initializer.
3909 (ada_language::store_sym_names_in_linkage_form_p): New member
3910 function.
3911 * c-lang.c (c_language_data): Remove
3912 la_store_sym_names_in_linkage_form_p initializer.
3913 (c_language::store_sym_names_in_linkage_form_p): New member
3914 function.
3915 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
3916 initializer.
3917 (asm_language_data): Likewise.
3918 (asm_language::store_sym_names_in_linkage_form_p): New member
3919 function.
3920 (minimal_language_data): Remove
3921 la_store_sym_names_in_linkage_form_p initializer.
3922 (minimal_language::store_sym_names_in_linkage_form_p): New member
3923 function.
3924 * d-lang.c (d_language_data): Remove
3925 la_store_sym_names_in_linkage_form_p initializer.
3926 * dwarf2/read.c (dwarf2_physname): Update call to
3927 store_sym_names_in_linkage_form_p.
3928 * f-lang.c (f_language_data): Remove
3929 la_store_sym_names_in_linkage_form_p initializer.
3930 * go-lang.c (go_language_data): Remove
3931 la_store_sym_names_in_linkage_form_p initializer.
3932 * language.c (unknown_language_data): Remove
3933 la_store_sym_names_in_linkage_form_p initializer.
3934 (unknown_language::store_sym_names_in_linkage_form_p): New member
3935 function.
3936 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
3937 initializer.
3938 (auto_language::store_sym_names_in_linkage_form_p): New member
3939 function.
3940 * language.h (language_data): Remove
3941 la_store_sym_names_in_linkage_form_p member variable.
3942 (language_defn::store_sym_names_in_linkage_form_p): New member
3943 function.
3944 * m2-lang.c (m2_language_data): Remove
3945 la_store_sym_names_in_linkage_form_p initializer.
3946 * objc-lang.c (objc_language_data): Likewise.
3947 * opencl-lang.c (opencl_language_data): Likewise.
3948 * p-lang.c (pascal_language_data): Likewise.
3949 * rust-lang.c (rust_language_data): Likewise.
3950
22c12a6c
AB
39512020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3952
3953 * ada-lang.c (ada_language_data): Remove string_lower_bound
3954 initializer.
3955 * c-lang.c (c_language_data): Likewise.
3956 (cplus_language_data): Likewise.
3957 (asm_language_data): Likewise.
3958 (minimal_language_data): Likewise.
3959 * d-lang.c (d_language_data): Likewise.
3960 * f-lang.c (f_language_data): Likewise.
3961 * go-lang.c (go_language_data): Likewise.
3962 * language.c (unknown_language_data): Likewise.
3963 (auto_language_data): Likewise.
3964 * language.h (language_data): Remove string_lower_bound field.
3965 (language_defn::string_lower_bound): New member function.
3966 * m2-lang.c (m2_language_data): Remove string_lower_bound
3967 initializer.
3968 (m2_language::string_lower_bound): New member function.
3969 * objc-lang.c (objc_language_data): Remove string_lower_bound
3970 initializer.
3971 * opencl-lang.c (opencl_language_data): Likewise.
3972 * p-lang.c (pascal_language_data): Likewise.
3973 * rust-lang.c (rust_language_data): Likewise.
3974 * valops.c (value_cstring): Update call to string_lower_bound.
3975 (value_string): Likewise.
3976 * value.c (allocate_repeated_value): Likewise.
3977
1c236ddd
AB
39782020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3979
3980 * valops.c (value_repeat): Fix incorrect argument name in comment.
3981
67bd3fd5
AB
39822020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3983
3984 * ada-lang.c (ada_language_data): Remove c_style_arrays
3985 initializer.
3986 (ada_language::c_style_arrays_p): New member fuction.
3987 * c-lang.c (c_language_data): Remove c_style_arrays
3988 initializer.
3989 (cplus_language_data): Likewise.
3990 (asm_language_data): Likewise.
3991 (minimal_language_data): Likewise.
3992 * d-lang.c (d_language_data): Likewise.
3993 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
3994 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
3995 (f_language::c_style_arrays_p): New member function.
3996 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
3997 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
3998 * language.c (unknown_language_data): Remove c_style_arrays
3999 initializer.
4000 (auto_language_data): Likewise.
4001 * language.h (language_data): Remove c_style_arrays field.
4002 (language_defn::c_style_arrays_p): New member function.
4003 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
4004 (m2_language::c_style_arrays_p): New member function.
4005 * objc-lang.c (objc_language_data): Remove c_style_arrays
4006 initializer.
4007 * opencl-lang.c (opencl_language_data): Likewise.
4008 * p-lang.c (pascal_language_data): Likewise.
4009 * rust-lang.c (rust_language_data): Likewise.
4010 * valarith.c (value_subscript): Update call to c_style_arrays_p,
4011 and update local variable to a bool.
4012 * valops.c (value_cast): Update call to c_style_arrays_p.
4013 (value_array): Likewise.
4014 * value.c (coerce_array): Likewise.
4015
85967615
AB
40162020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4017
4018 * ada-lang.c (ada_language_data): Remove la_language initializer.
4019 * c-lang.c (c_language_data): Likewise.
4020 (cplus_language_data): Likewise.
4021 (asm_language_data): Likewise.
4022 (minimal_language_data): Likewise.
4023 * d-lang.c (d_language_data): Likewise.
4024 * f-lang.c (f_language_data): Likewise.
4025 * go-lang.c (go_language_data): Likewise.
4026 * language.c (unknown_language_data): Likewise.
4027 (auto_language_data): Likewise.
4028 * language.h (language_data): Remove la_language field.
4029 (language_defn::language_defn): Initialise la_language field.
4030 (language_defn::la_language): New member variable.
4031 * m2-lang.c (m2_language_data): Remove la_language field.
4032 * objc-lang.c (objc_language_data): Likewise.
4033 * opencl-lang.c (opencl_language_data): Likewise.
4034 * p-lang.c (pascal_language_data): Likewise.
4035 * rust-lang.c (rust_language_data): Likewise.
4036
e171d6f1
AB
40372020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4038
4039 * ada-lang.c (ada_extensions): Delete, moved into
4040 ada_language::filename_extensions.
4041 (ada_language_data): Remove la_filename_extensions initializer.
4042 (ada_language::filename_extensions): New member function.
4043 * c-lang.c (c_extensions): Delete, moved into
4044 c_language::filename_extensions.
4045 (c_language_data): Remove la_filename_extensions initializer.
4046 (c_language::filename_extensions): New member function.
4047 (cplus_extensions): Delete, moved into
4048 cplus_language::filename_extensions.
4049 (cplus_language_data): Remove la_filename_extensions initializer.
4050 (cplus_language::filename_extensions): New member function.
4051 (asm_extensions): Delete, moved into
4052 asm_language::filename_extensions.
4053 (asm_language_data): Remove la_filename_extensions initializer.
4054 (asm_language::filename_extensions): New member function.
4055 (minimal_language_data): Remove la_filename_extensions
4056 initializer.
4057 * d-lang.c (d_extensions): Delete, moved into
4058 d_language::filename_extensions.
4059 (d_language_data): Remove la_filename_extensions initializer.
4060 (d_language::filename_extensions): New member function.
4061 * f-lang.c (f_extensions): Delete, moved into
4062 f_language::filename_extensions.
4063 (f_language_data): Remove la_filename_extensions initializer.
4064 (f_language::filename_extensions): New member function.
4065 * go-lang.c (go_language_data): Remove la_filename_extensions
4066 initializer.
4067 * language.c (add_set_language_command): Update now that
4068 filename_extensions returns a vector.
4069 (unknown_language_data): Remove la_filename_extensions
4070 initializer.
4071 (auto_language_data): Likewise.
4072 * language.h (language_data): Remove la_filename_extensions field.
4073 (language_defn::filename_extensions): New member function.
4074 * m2-lang.c (m2_language_data): Remove la_filename_extensions
4075 initializer.
4076 * objc-lang.c (objc_extensions): Delete, moved into
4077 objc_language::filename_extensions.
4078 (objc_language_data): Remove la_filename_extensions initializer.
4079 (objc_language::filename_extensions): New member function.
4080 * opencl-lang.c (opencl_language_data): Remove
4081 la_filename_extensions initializer.
4082 * p-lang.c (pascal_extensions): Delete, moved into
4083 pascal_language::filename_extensions.
4084 (pascal_language_data): Remove la_filename_extensions initializer.
4085 (pascal_language::filename_extensions): New member function.
4086 * rust-lang.c (rust_extensions): Delete, moved into
4087 rust_language::filename_extensions.
4088 (rust_language_data): Remove la_filename_extensions initializer.
4089 (rust_language::filename_extensions): New member function.
4090 * symfile.c (add_filename_language): Add new assert.
4091
6f7664a9
AB
40922020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4093
4094 * ada-lang.c (ada_language_data): Remove la_name and
4095 la_natural_name initializers.
4096 (ada_language::name): New member function.
4097 (ada_language::natural_name): New member function.
4098 * c-lang.c (c_language_data): Remove la_name and
4099 la_natural_name initializers.
4100 (c_language::name): New member function.
4101 (c_language::natural_name): New member function.
4102 (cplus_language_data): Remove la_name and
4103 la_natural_name initializers.
4104 (cplus_language::name): New member function.
4105 (cplus_language::natural_name): New member function.
4106 (asm_language_data): Remove la_name and
4107 la_natural_name initializers.
4108 (asm_language::name): New member function.
4109 (asm_language::natural_name): New member function.
4110 (minimal_language_data): Remove la_name and
4111 la_natural_name initializers.
4112 (minimal_language::name): New member function.
4113 (minimal_language::natural_name): New member function.
4114 * compile/compile.c (compile_to_object): Update call to
4115 lanugage_defn::name.
4116 * d-lang.c (d_language_data): Remove la_name and
4117 la_natural_name initializers.
4118 (d_language::name): New member function.
4119 (d_language::natural_name): New member function.
4120 * expprint.c (print_subexp_standard): Update call to
4121 language_defn::name.
4122 (dump_raw_expression): Likewise
4123 (dump_prefix_expression): Likewise.
4124 * f-lang.c (f_language_data): Remove la_name and
4125 la_natural_name initializers.
4126 (f_language::name): New member function.
4127 (f_language::natural_name): New member function.
4128 * go-lang.c (go_language_data): Remove la_name and
4129 la_natural_name initializers.
4130 (go_language::name): New member function.
4131 (go_language::natural_name): New member function.
4132 * language.c (show_language_command): Update call to
4133 language_defn::name.
4134 (set_language_command): Likewise.
4135 (language_enum): Likewise.
4136 (language_str): Likewise.
4137 (add_set_language_command): Likewise, use
4138 language_defn::natural_name in the doc string.
4139 (unknown_language_data): Remove la_name and
4140 la_natural_name initializers.
4141 (unknown_language::name): New member function.
4142 (unknown_language::natural_name): New member function.
4143 (auto_language_data): Remove la_name and
4144 la_natural_name initializers.
4145 (auto_language::name): New member function.
4146 (auto_language::natural_name): New member function.
4147 (language_lookup_primitive_type_as_symbol): Update call to
4148 language_defn::name.
4149 * language.h (language_data): Remove la_name and la_natural_name
4150 member variables.
4151 (language_defn::name): New member function.
4152 (language_defn::natural_name): New member function.
4153 * m2-lang.c (m2_language_data): Remove la_name and
4154 la_natural_name initializers.
4155 (m2_language::name): New member function.
4156 (m2_language::natural_name): New member function.
4157 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
4158 language_defn::natural_name.
4159 * objc-lang.c (objc_language_data): Remove la_name and
4160 la_natural_name initializers.
4161 (objc_language::name): New member function.
4162 (objc_language::natural_name): New member function.
4163 * opencl-lang.c (opencl_language_data): Remove la_name and
4164 la_natural_name initializers.
4165 (opencl_language::name): New member function.
4166 (opencl_language::natural_name): New member function.
4167 * p-lang.c (pascal_language_data): Remove la_name and
4168 la_natural_name initializers.
4169 (pascal_language::name): New member function.
4170 (pascal_language::natural_name): New member function.
4171 * rust-lang.c (rust_language_data): Remove la_name and
4172 la_natural_name initializers.
4173 (rust_language::name): New member function.
4174 (rust_language::natural_name): New member function.
4175 * symtab.c (lookup_language_this): Update call to
4176 language_defn::name.
4177
5bae7c4e
AB
41782020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4179
4180 * ada-lang.c (ada_language_data): Remove la_name_of_this
4181 initializer.
4182 * ax-gdb.c (gen_expr): Update call to name_of_this.
4183 * c-exp.y (classify_name): Likewise.
4184 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
4185 (cplus_language_data): Likewise.
4186 (cplus_language::name_of_this): New member function.
4187 (asm_language_data): Remove la_name_of_this initializer.
4188 (minimal_language_data): Likewise.
4189 * d-lang.c (d_language_data): Likewise.
4190 (d_language::name_of_this): New member function.
4191 * expprint.c (print_subexp_standard): Update call to name_of_this.
4192 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
4193 * go-lang.c (go_language_data): Likewise.
4194 * language.c (unknown_language_data): Likewise.
4195 (unknown_language::name_of_this): New member function.
4196 (auto_language_data): Remove la_name_of_this initializer.
4197 (auto_language::name_of_this): New member function.
4198 * language.h (language_data): Delete la_name_of_this member
4199 variable.
4200 (language_defn::name_of_this): New member function.
4201 * m2-lang.c (m2_language_data): Remove la_name_of_this
4202 initializer.
4203 * objc-lang.c (objc_language_data): Likewise.
4204 (objc_language::name_of_this): New member function.
4205 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
4206 initializer.
4207 * p-lang.c (pascal_language_data): Likewise.
4208 (pascal_language::name_of_this): New member function.
4209 * rust-lang.c (rust_language_data): Remove la_name_of_this
4210 initializer.
4211 * symtab.c (lookup_language_this): Update call to name_of_this.
4212 (lookup_symbol_aux): Likewise.
4213 * valops.c (value_of_this): Likewise.
4214
22e3f3ed
AB
42152020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4216
4217 * ada-lang.c (ada_language_data): Remove
4218 la_struct_too_deep_ellipsis initializer.
4219 (ada_language::struct_too_deep_ellipsis): New member function.
4220 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
4221 initializer.
4222 (cplus_language_data): Likewise.
4223 (asm_language_data): Likewise.
4224 (minimal_language_data): Likewise.
4225 * cp-valprint.c (cp_print_value): Update call to
4226 struct_too_deep_ellipsis.
4227 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
4228 initializer.
4229 * f-lang.c (f_language_data): Likewise.
4230 (f_language::struct_too_deep_ellipsis): New member function.
4231 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
4232 initializer.
4233 * language.c (unknown_language_data): Likewise.
4234 (auto_language_data): Likewise.
4235 * language.h (language_data): Delete la_struct_too_deep_ellipsis
4236 member variable.
4237 (language_defn::struct_too_deep_ellipsis): New member function.
4238 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
4239 initializer.Q
4240 * objc-lang.c (objc_language_data): Likewise.
4241 * opencl-lang.c (opencl_language_data): Likewise.
4242 * p-lang.c (pascal_language_data): Likewise.
4243 * rust-lang.c (rust_language_data): Likewise.
4244 * valprint.c (val_print_check_max_depth): Update call to
4245 struct_too_deep_ellipsis.
4246
ed29e1c7
FW
42472020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
4248
4249 * MAINTAINERS (Write After Approval): Add myself.
4250
12d8f940
TT
42512020-09-15 Tom Tromey <tom@tromey.com>
4252
4253 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
4254 Remove.
4255
6b5a7bc7
TT
42562020-09-15 Tom Tromey <tom@tromey.com>
4257
4258 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
4259 and TYPE_CODE_METHODPTR cases.
4260 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
4261 (c_value_print_inner): Update.
4262 * valprint.c (generic_value_print_memberptr): New function, from
4263 c_value_print_memberptr.
4264 (generic_value_print): Use it. Call cplus_print_method_ptr.
4265
47f0e2ff
TT
42662020-09-15 Tom Tromey <tromey@adacore.com>
4267
4268 * python/python-internal.h (PyInt_FromLong): Remove define.
4269 * python/py-value.c (convert_value_from_python): Use
4270 gdb_py_object_from_longest.
4271 * python/py-type.c (typy_get_code): Use
4272 gdb_py_object_from_longest.
4273 * python/py-symtab.c (salpy_get_line): Use
4274 gdb_py_object_from_longest.
4275 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
4276 gdb_py_object_from_longest.
4277 * python/py-record.c (recpy_gap_reason_code): Use
4278 gdb_py_object_from_longest.
4279 * python/py-record-btrace.c (recpy_bt_insn_size)
4280 (recpy_bt_func_level, btpy_list_count): Use
4281 gdb_py_object_from_longest.
4282 * python/py-infthread.c (gdbpy_create_ptid_object): Use
4283 gdb_py_object_from_longest. Fix error handling.
4284 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
4285 gdb_py_object_from_longest.
4286 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
4287 gdb_py_object_from_longest.
4288 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
4289 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
4290 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
4291
512116ce
TT
42922020-09-15 Tom Tromey <tromey@adacore.com>
4293
4294 * python/python.c (gdbpy_parameter_value): Use
4295 gdb_py_object_from_ulongest.
4296
4ab1029c
TT
42972020-09-15 Tom Tromey <tromey@adacore.com>
4298
4299 * python/py-infevents.c (create_register_changed_event_object):
4300 Use gdb_py_object_from_longest.
4301 * python/py-exitedevent.c (create_exited_event_object): Use
4302 gdb_py_object_from_longest.
4303
062534d4
TT
43042020-09-15 Tom Tromey <tromey@adacore.com>
4305
4306 * python/python.c (gdbpy_parameter_value): Use
4307 gdb_py_object_from_longest.
4308 * python/py-type.c (convert_field, typy_range): Use
4309 gdb_py_object_from_longest.
4310 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
4311 gdb_py_object_from_longest.
4312 * python/py-lazy-string.c (stpy_get_length): Use
4313 gdb_py_object_from_longest.
4314 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
4315 gdb_py_object_from_longest.
4316 * python/py-infevents.c (create_memory_changed_event_object): Use
4317 gdb_py_object_from_longest.
4318 * python/py-inferior.c (infpy_get_num): Use
4319 gdb_py_object_from_longest.
4320 (infpy_get_pid): Likewise.
4321
d1cab987
TT
43222020-09-15 Tom Tromey <tromey@adacore.com>
4323
4324 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
4325 defines.
4326 * python/py-value.c (valpy_long): Use
4327 gdb_py_object_from_ulongest.
4328 * python/py-symtab.c (salpy_get_pc): Use
4329 gdb_py_object_from_ulongest.
4330 (salpy_get_last): Likewise.
4331 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
4332 gdb_py_object_from_ulongest.
4333 * python/py-lazy-string.c (stpy_get_address): Use
4334 gdb_py_object_from_ulongest.
4335 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
4336 * python/py-arch.c (archpy_disassemble): Use
4337 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
4338 error handling.
4339
4bde49dc
TT
43402020-09-15 Tom Tromey <tromey@adacore.com>
4341
4342 * python/python-internal.h (gdb_py_long_from_longest): Remove
4343 defines.
4344 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
4345 * python/py-type.c (convert_field, typy_get_sizeof): Use
4346 gdb_py_object_from_longest.
4347 * python/py-record-btrace.c (btpy_list_index): Use
4348 gdb_py_object_from_longest.
4349
37431074
TT
43502020-09-15 Tom Tromey <tromey@adacore.com>
4351
4352 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
4353 * python/py-record.c (recpy_element_number): Use
4354 gdb_py_object_from_longest.
4355 (recpy_gap_number): Likewise.
4356
cbe25684
TT
43572020-09-15 Tom Tromey <tromey@adacore.com>
4358
4359 * top.c (ui::ui): Update.
4360 (highest_ui_num): Remove.
4361 * top.h (struct ui) <num>: Remove.
4362
db92ac45
TT
43632020-09-15 Tom Tromey <tromey@adacore.com>
4364
4365 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
4366 * ui-style.c (ansi_regex_text): Now array.
4367 * rust-exp.y (number_regex_text): Now array.
4368 * linespec.c (linespec_quote_characters): Now array.
4369 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
4370 Now arrays.
4371
d2b31b67
SM
43722020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4373
4374 * debuginfod-support.c (debuginfod_client_deleter): New.
4375 (debuginfod_client_up): New.
4376 (debuginfod_init): Return debuginfod_client_up.
4377 (debuginfod_source_query): Adjust.
4378 (debuginfod_debuginfo_query): Adjust.
4379
3246bd8e
SM
43802020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4381
4382 * debuginfod-support.c (debuginfod_source_query): Use
4383 make_unique_xstrdup.
4384
10242f36
SM
43852020-09-14 Simon Marchi <simon.marchi@efficios.com>
4386
4387 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
4388 with `type::instance_flags`.
4389
e1044e6a
MM
43902020-09-14 Michael Mullin <masmullin@gmail.com>
4391
4392 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
4393 Remove baton parameter.
4394
04902b09
PA
43952020-09-14 Pedro Alves <pedro@palves.net>
4396
4397 * Makefile.in (SELFTESTS_SRCS): Add
4398 unittests/enum-flags-selftests.c.
4399 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
4400 btrace_function_flags instead of enum btrace_function_flag.
4401 * compile/compile-c-types.c (convert_qualified): Use
4402 enum_flags::raw.
4403 * compile/compile-cplus-symbols.c (convert_one_symbol)
4404 (convert_symbol_bmsym):
4405 * compile/compile-cplus-types.c (compile_cplus_convert_method)
4406 (compile_cplus_convert_struct_or_union_methods)
4407 (compile_cplus_instance::convert_qualified_base):
4408 * go-exp.y (parse_string_or_char): Add cast to int.
4409 * unittests/enum-flags-selftests.c: New file.
4410 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
4411 type to btrace_thread_flags from btrace_thread_flag.
4412 (record_btrace_cancel_resume, record_btrace_step_thread): Change
4413 local's type to btrace_thread_flags from btrace_thread_flag. Add
4414 cast in DEBUG call.
4415
69896a2c
PA
44162020-09-14 Pedro Alves <pedro@palves.net>
4417
4418 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
4419 * gdbtypes.c (address_space_name_to_int): Rename to ...
4420 (address_space_name_to_type_instance_flags): ... this.
4421 (address_space_int_to_name): Rename to ...
4422 (address_space_type_instance_flags_to_name): ... this.
4423 * gdbtypes.h (address_space_name_to_int): Rename to ...
4424 (address_space_name_to_type_instance_flags): ... this.
4425 (address_space_int_to_name): Rename to ...
4426 (address_space_type_instance_flags_to_name): ... this.
4427 * type-stack.c (type_stack::insert): Adjust to rename.
4428 * type-stack.h (type_stack::insert): Likewise.
4429
314ad88d
PA
44302020-09-14 Pedro Alves <pedro@palves.net>
4431 Andrew Burgess <andrew.burgess@embecosm.com>
4432
4433 * avr-tdep.c (avr_address_class_type_flags): Return
4434 type_instance_flags.
4435 (avr_address_class_type_flags_to_name): Take a
4436 type_instance_flags.
4437 (avr_address_class_name_to_type_flags): Return bool and take a
4438 type_instance_flags.
4439 * d-lang.c (build_d_types): Use type::set_instance_flags.
4440 * ft32-tdep.c (ft32_address_class_type_flags): Return
4441 type_instance_flags.
4442 (ft32_address_class_type_flags_to_name): Take a
4443 type_instance_flags.
4444 (ft32_address_class_name_to_type_flags): Return bool and take a
4445 type_instance_flags.
4446 (ft32_gdbarch_init): Use type::set_instance_flags.
4447 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
4448 * gdbarch.h, gdbarch.c: Regenerate.
4449 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
4450 (address_class_name_to_type_flags): Use type_instance_flags and
4451 bool.
4452 * gdbtypes.c (address_space_name_to_int)
4453 (address_space_int_to_name, make_qualified_type): Use
4454 type_instance_flags.
4455 (make_qualified_type): Use type_instance_flags and
4456 type::set_instance_flags.
4457 (make_type_with_address_space, make_cv_type, make_vector_type)
4458 (check_typedef): Use type_instance_flags.
4459 (recursive_dump_type): Cast type_instance_flags to unsigned for
4460 printing.
4461 (copy_type_recursive): Use type::set_instance_flags.
4462 (gdbtypes_post_init): Use type::set_instance_flags.
4463 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
4464 <m_instance_flags>: ... this.
4465 <instance_flags, set_instance_flags>: New methods.
4466 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
4467 (SET_TYPE_INSTANCE_FLAGS): New.
4468 (address_space_name_to_int, address_space_int_to_name)
4469 (make_type_with_address_space): Pass flags using
4470 type_instance_flags instead of int.
4471 * stabsread.c (cleanup_undefined_types_noname): Use
4472 type::set_instance_flags.
4473 * s390-tdep.c (s390_address_class_type_flags): Return
4474 type_instance_flags.
4475 (s390_address_class_type_flags_to_name): Take a
4476 type_instance_flags.
4477 (s390_address_class_name_to_type_flags): Return bool and take a
4478 type_instance_flags.
4479 * type-stack.c (type_stack::follow_types): Use
4480 type_instance_flags.
4481 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
4482
27087b7f
TT
44832020-09-14 Tom Tromey <tromey@adacore.com>
4484
4485 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
4486 * x86-tdep.c (x86_is_thunk_register_name)
4487 (x86_in_indirect_branch_thunk): Update.
4488 * sparc64-tdep.c (sparc64_fpu_register_names)
4489 (sparc64_cp0_register_names, sparc64_register_names)
4490 (sparc64_pseudo_register_names): Now const.
4491 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
4492 cp0_registers_num>: Now const.
4493 * sparc-tdep.c (sparc_core_register_names)
4494 (sparc32_fpu_register_names, sparc32_cp0_register_names)
4495 (sparc32_pseudo_register_names): Now const.
4496 (validate_tdesc_registers): Update.
4497 * rust-lang.c (rust_extensions): Now const.
4498 * p-lang.c (p_extensions): Now const.
4499 * objc-lang.c (objc_extensions): Now const.
4500 * nto-tdep.c (nto_thread_state_str): Now const.
4501 * moxie-tdep.c (moxie_register_names): Now const.
4502 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
4503 Now const.
4504 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
4505 (mips_linux_reg_names): Now const.
4506 (mips_gdbarch_init): Update.
4507 * microblaze-tdep.c (microblaze_register_names): Now const.
4508 * m68k-tdep.c (m68k_register_names): Now const.
4509 * m32r-tdep.c (m32r_register_names): Now const.
4510 * ia64-tdep.c (ia64_register_names): Now const.
4511 * i386-tdep.h (struct gdbarch_tdep) <register_names,
4512 ymmh_register_names, ymm16h_regnum, mpx_register_names,
4513 k_register_names, zmmh_register_names, xmm_avx512_register_names,
4514 ymm_avx512_register_names, pkeys_register_names>: Now const.
4515 * i386-tdep.c (i386_register_names, i386_zmm_names)
4516 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
4517 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
4518 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
4519 * f-lang.c (f_extensions): Now const.
4520 * d-lang.c (d_extensions): Now const.
4521 * csky-tdep.c (csky_register_names): Now const.
4522 * charset.c (default_charset_names, charset_enum): Now const.
4523 (_initialize_charset): Update.
4524 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
4525 const.
4526 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
4527 (bsd_uthread_solib_loaded): Update.
4528 (bsd_uthread_state): Now const.
4529 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
4530 (amd64_ymm_avx512_names, amd64_ymmh_names)
4531 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
4532 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
4533 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
4534 (amd64_dword_names): Now const.
4535 * agent.c (can_use_agent_enum): Now const.
4536 * ada-tasks.c (task_states, long_task_states): Now const.
4537 * ada-lang.c (known_runtime_file_name_patterns)
4538 (known_auxiliary_function_name_patterns, attribute_names)
4539 (standard_exc, ada_extensions): Now const.
4540
89806626
SM
45412020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4542
4543 * bcache.h (struct bcache) <bcache>: Remove constructor.
4544 <m_hash_function, m_compare_function>: Remove.
4545 <~bcache>: Make virtual.
4546 <compare>: Remove static method, introduce virtual method.
4547 <default_hash>: Remove.
4548 <hash>: New virtual method.
4549 * bcache.c (bcache::expand_hash_table): Update.
4550 (bcache::insert): Update.
4551 (bcache::hash): New.
4552 (bcache::compare): Update comment and parameter names.
4553 * gdbtypes.c (types_deeply_equal): Update.
4554 * psymtab.h (struct psymbol_bcache): New struct.
4555 (class psymtab_storage) <psymtab_storage>: Make default.
4556 <psymbol_cache>: Change type to psymbol_bcache.
4557 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
4558 (psymbol_hash): Change to...
4559 (psymbol_bcache::hash): ... this.
4560 (psymbol_compare): Change to...
4561 (psymbol_bcache::compare): ... this.
4562
677c92fe
SM
45632020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4564
4565 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
4566 checking for initial lwp.
4567
3eba3a01
TT
45682020-09-14 Tom Tromey <tromey@adacore.com>
4569
4570 * m68k-tdep.c (m68k_extract_return_value): Use
4571 pointer_result_regnum.
4572 (m68k_store_return_value): Likewise.
4573 (m68k_reg_struct_return_p): Handle vectors and arrays.
4574 (m68k_return_value): Handle arrays.
4575 (m68k_svr4_return_value): Fix single-element aggregate handling.
4576 Handle long double. Adjust for embedded ABI.
4577 (m68k_svr4_init_abi): Set pointer_result_regnum.
4578 (m68k_embedded_init_abi): New function.
4579 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
4580 (m68k_osabi_sniffer): New function.
4581 (_initialize_m68k_tdep): Register osabi sniffer.
4582 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
4583 member.
4584
33f4dd48
SM
45852020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4586
4587 * xml-support.c (xml_fetch_content_from_file): Replace xfree
4588 with gdb::unique_xmalloc_ptr<char>.
4589
8400a90d
SM
45902020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4591
4592 * xml-support.h (xml_fetch_another): Change type to be a
4593 function_view.
4594 (xml_process_xincludes): Remove baton parameter.
4595 (xml_fetch_content_from_file): Change baton parameter to
4596 dirname.
4597 * xml-support.c (struct xinclude_parsing_data)
4598 <xinclude_parsing_data>: Remove baton parameter.
4599 <fetcher_baton>: Remove.
4600 (xinclude_start_include): Adjust.
4601 (xml_process_xincludes): Adjust.
4602 (xml_fetch_content_from_file): Replace baton parameter with
4603 dirname.
4604 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
4605 (xml_init_syscalls_info): Use a lambda.
4606 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
4607 (file_read_description_xml): Use a lambda.
4608 (fetch_available_features_from_target): Change baton parameter
4609 to target_ops.
4610 (target_read_description_xml): Use a lambda.
4611 (target_fetch_description_xml): Use a lambda.
4612 (string_read_description_xml): Update.
4613
04f5bab2
SM
46142020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4615
4616 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
4617 uses with type::endianity_is_not_default.
4618
db558e34
SM
46192020-09-14 Simon Marchi <simon.marchi@efficios.com>
4620
4621 * gdbtypes.h (struct type) <endianity_is_not_default,
4622 set_endianity_is_not_default>: New methods.
4623 (TYPE_ENDIANITY_NOT_DEFAULT): Use
4624 type::endianity_is_not_default, change all write call sites to
4625 use type::set_endianity_is_not_default.
4626
22c4c60c
SM
46272020-09-14 Simon Marchi <simon.marchi@efficios.com>
4628
4629 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
4630 uses with type::is_fixed_instance.
4631
9cdd0d12
SM
46322020-09-14 Simon Marchi <simon.marchi@efficios.com>
4633
4634 * gdbtypes.h (struct type) <is_fixed_instance,
4635 set_is_fixed_instance>: New methods.
4636 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
4637 write call sites to use type::set_is_fixed_instance.
4638
0becda7a
SM
46392020-09-14 Simon Marchi <simon.marchi@efficios.com>
4640
4641 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
4642 uses with type::is_gnu_ifunc.
4643
03cc7249
SM
46442020-09-14 Simon Marchi <simon.marchi@efficios.com>
4645
4646 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
4647 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
4648 use type::set_is_gnu_ifunc.
4649
3f46044c
SM
46502020-09-14 Simon Marchi <simon.marchi@efficios.com>
4651
4652 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
4653 uses with type::stub_is_supported.
4654
9baccff6
SM
46552020-09-14 Simon Marchi <simon.marchi@efficios.com>
4656
4657 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
4658 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
4659 use type::set_stub_is_supported.
4660
bd63c870
SM
46612020-09-14 Simon Marchi <simon.marchi@efficios.com>
4662
4663 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
4664 uses with type::is_vector.
4665
2062087b
SM
46662020-09-14 Simon Marchi <simon.marchi@efficios.com>
4667
4668 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
4669 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
4670 use type::set_is_vector.
4671
a409645d
SM
46722020-09-14 Simon Marchi <simon.marchi@efficios.com>
4673
4674 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
4675 uses with type::has_varargs.
4676
1d6286ed
SM
46772020-09-14 Simon Marchi <simon.marchi@efficios.com>
4678
4679 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
4680 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
4681 use type::set_has_varargs.
4682
7f9f399b
SM
46832020-09-14 Simon Marchi <simon.marchi@efficios.com>
4684
4685 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
4686 uses with type::is_prototyped.
4687
27e69b7a
SM
46882020-09-14 Simon Marchi <simon.marchi@efficios.com>
4689
4690 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
4691 New methods.
4692 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
4693 call sites to use type::set_is_prototyped.
4694
d2183968
SM
46952020-09-14 Simon Marchi <simon.marchi@efficios.com>
4696
4697 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
4698 uses with type::target_is_stub.
4699
8f53807e
SM
47002020-09-14 Simon Marchi <simon.marchi@efficios.com>
4701
4702 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
4703 New methods.
4704 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
4705 sites to use type::set_target_is_stub.
4706
e46d3488
SM
47072020-09-14 Simon Marchi <simon.marchi@efficios.com>
4708
4709 * gdbtypes.h (TYPE_STUB): Remove, replace all
4710 uses with type::is_stub.
4711
b4b73759
SM
47122020-09-14 Simon Marchi <simon.marchi@efficios.com>
4713
4714 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
4715 (TYPE_STUB): Use type::is_stub, change all write call sites to
4716 use type::set_is_stub.
4717
20ce4123
SM
47182020-09-14 Simon Marchi <simon.marchi@efficios.com>
4719
4720 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
4721 type::has_no_signedness.
4722
15152a54
SM
47232020-09-14 Simon Marchi <simon.marchi@efficios.com>
4724
4725 * gdbtypes.h (struct type) <has_no_signedness,
4726 set_has_no_signedness>: New methods.
4727 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
4728 call sites to use type::set_has_no_signedness.
4729
c6d940a9
SM
47302020-09-14 Simon Marchi <simon.marchi@efficios.com>
4731
4732 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
4733 type::is_unsigned.
4734
653223d3
SM
47352020-09-14 Simon Marchi <simon.marchi@efficios.com>
4736
4737 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
4738 methods.
4739 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
4740 sites to use type::set_is_unsigned.
4741
55ea94da 47422020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 4743 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 4744
e851246a
SM
4745 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
4746 pointer and stack frame offset when unwinding.
55ea94da 4747
6791b117
PA
47482020-09-13 Pedro Alves <pedro@palves.net>
4749
4750 * NEWS: Document "-break-insert --qualified".
4751 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
4752
77f2120b
PA
47532020-09-13 Pedro Alves <pedro@palves.net>
4754
4755 * linespec.c (classify_mtype, compare_msyms): Delete.
4756 (search_minsyms_for_name): Remove classification logic. Instead
4757 filter out trampoline symbols if we also found an external
4758 function of the same name.
4759
ed6a896c
JB
47602020-09-13 Joel Brobecker <brobecker@adacore.com>
4761
4762 * NEWS: Create a new section for the next release branch.
4763 Rename the section of the current branch, now that it has
4764 been cut.
4765
32aea73e
JB
47662020-09-13 Joel Brobecker <brobecker@adacore.com>
4767
4768 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
4769 * version.in: Bump version to 11.0.50.DATE-git.
4770
8087c3fa
JB
47712020-09-12 Joel Brobecker <brobecker@adacore.com>
4772
4773 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
4774
2a67f09d
FW
47752020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
4776 Felix Willgerodt <Felix.Willgerodt@intel.com>
4777
4778 * gdbarch.sh: Added bfloat16 type.
4779 * gdbarch.c: Regenerated.
4780 * gdbarch.h: Regenerated.
4781 * gdbtypes.c (floatformats_bfloat16): New struct.
4782 (gdbtypes_post_init): Add builtin_bfloat16.
4783 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
4784 (floatformats_bfloat16): New struct.
4785 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
4786 (i386_ymm_type): Add field "v16_bfloat16"
4787 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
4788 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
4789 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
4790 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
4791 * features/i386/64bit-avx512.xml: Add bfloat16 type.
4792 * features/i386/64bit-avx512.c: Regenerated.
4793 * features/i386/64bit-sse.xml: Add bfloat16 type.
4794 * features/i386/64bit-sse.c: Regenerated.
4795
1347d111
FW
47962020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
4797
4798 * i386-tdep.c (i386_zmm_type): Fix field names.
4799 (i386_ymm_type): Fix field names.
4800
7a4e8e7d
TBA
48012020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4802
4803 * breakpoint.c: Fix typo in the help message of the
4804 "set breakpoint condition-evaluation" command.
4805
cf4ac4be
KR
48062020-09-10 Kamil Rytarowski <n54@gmx.com>
4807
4808 * nbsd-nat.c: Include "nat/netbsd-nat.h".
4809 * (nbsd_nat_target::pid_to_exec_file)
4810 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
4811 (nbsd_nat_target::post_startup_inferior)
4812 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
4813 (nbsd_add_threads): Switch local code to common gdb/nat functions.
4814 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
4815 * (nbsd_thread_lister): Remove.
4816
f404573e
KR
48172020-09-10 Kamil Rytarowski <n54@gmx.com>
4818
4819 * fork-inferior.c (startup_inferior): Avoid double free.
4820
1ccb2c17
KR
48212020-09-10 Kamil Rytarowski <n54@gmx.com>
4822
4823 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
4824 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
4825
feedfcc7
KR
48262020-09-10 Kamil Rytarowski <n54@gmx.com>
4827
4828 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
4829 * netbsd-nat.c: Include <sys/ptrace.h>.
4830 * (netbsd_nat::enable_proc_events): Add.
4831
c489f8c6
KR
48322020-09-10 Kamil Rytarowski <n54@gmx.com>
4833
4834 * netbsd-nat.h: Include "gdbsupport/function-view.h".
4835 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4836 (netbsd_nat::for_each_thread): Add.
4837 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
4838 "gdbsupport/common-debug.h".
4839 * (netbsd_nat::netbsd_thread_lister)
4840 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4841 (netbsd_nat::for_each_thread): Add.
4842
330662f6
KR
48432020-09-10 Kamil Rytarowski <n54@gmx.com>
4844
4845 * netbsd-nat.h: Include <unistd.h>.
4846 * (netbsd_nat::pid_to_exec_file): Add.
4847 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
4848 * (netbsd_nat::pid_to_exec_file) Add.
4849
70b67307
KR
48502020-09-10 Kamil Rytarowski <n54@gmx.com>
4851
4852 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
4853
99cf6da6
KR
48542020-09-10 Kamil Rytarowski <n54@gmx.com>
4855
4856 * netbsd-nat.h: New file.
4857 * netbsd-nat.c: Likewise.
4858
1b788fb6
TT
48592020-09-09 Tom Tromey <tromey@adacore.com>
4860
4861 * ada-lang.c (remove_extra_symbols): Do not increment when
4862 removing an element
4863
03b0a45f
TT
48642020-09-08 Tom Tromey <tromey@adacore.com>
4865
4866 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
4867
3cae4447
TT
48682020-09-08 Tom Tromey <tromey@adacore.com>
4869
4870 PR win32/25302:
4871 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
4872 (gdb_bfd_init_data): New function.
4873 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
4874
7f08fd51
TBA
48752020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4876
4877 * infrun.c (fetch_inferior_event): Use
4878 `switch_to_target_no_thread` to switch the target.
4879
3e6ff933
TT
48802020-09-06 Tom Tromey <tom@tromey.com>
4881
4882 * symfile.h (dwarf2_free_objfile): Don't declare.
4883
e56798df
AKS
48842020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4885
4886 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
4887 to match 16 byte real/complex type generated by Flang compiler.
4888
8f5c6526
TV
48892020-09-03 Tom de Vries <tdevries@suse.de>
4890
4891 PR breakpoint/26546
4892 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
4893 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
4894
c5065df0
SM
48952020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
4896
4897 * maint.c (index_digits): New function.
4898 (struct maint_print_section_data): Remove.
4899 (print_bfd_section_info): Remove print_data parameter, add arg
4900 and index_digits.
4901 (print_objfile_section_info): Likewise.
4902 (print_bfd_section_info_maybe_relocated): Likewise (plus
4903 objfile).
4904 (maintenance_info_sections): Adjust calls.
4905
02c6f3f1
TT
49062020-09-02 Tom Tromey <tromey@adacore.com>
4907
4908 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
4909 for null pointers.
4910 (ada_varobj_adjust_for_child_access): Special-case null pointers.
4911
ef5e5b0b
SM
49122020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
4913
4914 * bcache.h (struct bcache) <insert>: Change type of `added` to
4915 pointer to bool.
4916 * bcache.c (bcache::insert): Likewise.
4917 * gdbtypes.c (check_types_worklist): Adjust.
4918 * psymtab.c (add_psymbol_to_bcache): Adjust.
4919
973695d6
KB
49202020-08-31 Kevin Buettner <kevinb@redhat.com>
4921
4922 * corelow.c (unordered_set): Include.
4923 (class core_target): Add field 'm_core_unavailable_mappings'.
4924 (core_target::build_file_mappings): Print only one warning
4925 per inaccessible file. Add unavailable/broken mappings
4926 to m_core_unavailable_mappings.
4927 (core_target::xfer_partial): Call...
4928 (core_target::xfer_memory_via_mappings): New method.
4929
264fc0e2
SM
49302020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4931
4932 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
4933 type to bool.
4934
2de01bdb
SM
49352020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
4936
4937 * dwarf2/read.c (struct field_info): Fix indentation.
4938
f3bd50f1
SM
49392020-08-31 Simon Marchi <simon.marchi@efficios.com>
4940
4941 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
4942 ordering in comment.
4943 * frame.c (frame_id_eq): Fix indentation.
4944
22b9b4b0
SL
49452020-08-31 Scott Linder <scott@scottlinder.com>
4946 Simon Marchi <simon.marchi@efficios.com>
4947
4948 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
4949 inline frame ids in outer frame.
4950
84154d16
SM
49512020-08-31 Simon Marchi <simon.marchi@efficios.com>
4952
4953 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
4954 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
4955 (outer_frame_id): Use FID_STACK_OUTER instead of
4956 FID_STACK_INVALID.
4957 (frame_id_p): Don't check for outer_frame_id.
4958
8efaf6b3
SM
49592020-08-31 Simon Marchi <simon.marchi@efficios.com>
4960
4961 * frame-unwind.c (frame_unwind_got_optimized): Don't set
4962 regnum/frame in value. Call allocate_value_lazy.
4963 * frame.c (frame_unwind_register_value): Use
4964 val_print_not_saved.
4965
fe1fe7ea
SM
49662020-08-31 Simon Marchi <simon.marchi@efficios.com>
4967
4968 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
4969
f7c7700d
PA
49702020-08-29 Pedro Alves <pedro@palves.net>
4971
4972 * progspace.c (print_program_space): Use all_inferiors. Switch to
4973 the inferior before calling target_pid_to_str.
4974
e0814aae
TT
49752020-08-28 Tom Tromey <tom@tromey.com>
4976
4977 * xcoffread.c (xcoff_end_psymtab): Update comment.
4978 * dbxread.c (dbx_end_psymtab): Update comment.
4979
626d2320
TV
49802020-08-28 Tom de Vries <tdevries@suse.de>
4981
4982 PR breakpoint/26544
4983 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
4984 event_location.
4985 (create_breakpoint): Same.
4986 (base_breakpoint_decode_location): Same.
4987 (bkpt_create_sals_from_location): Same.
4988 (bkpt_decode_location): Same.
4989 (bkpt_probe_create_sals_from_location): Same.
4990 (bkpt_probe_decode_location): Same.
4991 (tracepoint_create_sals_from_location): Same.
4992 (tracepoint_decode_location): Same.
4993 (tracepoint_probe_decode_location): Same.
4994 (strace_marker_create_sals_from_location): Same.
4995 (strace_marker_decode_location): Same.
4996 (create_sals_from_location_default): Same.
4997 (decode_location_default): Same.
4998 * breakpoint.h (struct breakpoint_ops): Same.
4999 (create_breakpoint): Same.
5000 * linespec.h (decode_line_full): Same.
5001 * linespec.c (decode_line_full): Same. Throw error if
5002 result.size () == 0.
5003
df631783
PA
50042020-08-27 Pedro Alves <pedro@palves.net>
5005
5006 PR gdb/26524
5007 * breakpoint.c (until_break_fsm) <location_breakpoint,
5008 caller_breakpoint>: Delete fields.
5009 <breakpoints>: New field.
5010 <until_break_fsm>: Adjust to save a breakpoint vector instead of
5011 two individual breakpoints.
5012 (until_break_fsm::should_stop): Loop over breakpoints in the
5013 breakpoint vector.
5014 (until_break_fsm::clean_up): Adjust to clear the breakpoints
5015 vector.
5016 (until_break_command): Handle location expanding into multiple
5017 sals.
5018
b2b38aa4
PA
50192020-08-27 Pedro Alves <pedro@palves.net>
5020
5021 PR gdb/26523
5022 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
5023 bp_until breakpoints user-specified locations. Update intro
5024 comment.
5025
b886559f
SM
50262020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
5027
5028 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
5029 gdb_bfd_sections): New.
5030 * maint.c (print_bfd_section_info): Change param type to
5031 maint_print_section_data.
5032 (print_objfile_section_info): Likewise.
5033 (print_bfd_section_info_maybe_relocated): Likewise.
5034 (maintenance_info_sections): Use gdb_bfd_sections.
5035
4c6e63bf
SV
50362020-08-25 Shahab Vahedi <shahab@synopsys.com>
5037
5038 * MAINTAINERS: Add ARC target and maintainer.
5039
8d7f0635
AK
50402020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
5041
5042 * configure.tgt: ARC support for GNU/Linux.
5043 * Makefile.in (ALL_TARGET_OBJS): Likewise.
5044 * arc-linux-tdep.c: New file.
5045 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
5046 * arc-tdep.c (arc_write_pc): Use it.
5047
fdd8731b
SV
50482020-08-25 Shahab Vahedi <shahab@synopsys.com>
5049
5050 * arc-tdep.c (arc_check_for_hardware_loop): New.
5051 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
5052
22459524
SV
50532020-08-25 Shahab Vahedi <shahab@synopsys.com>
5054
5055 * arc-tdep.h: Include "gdbarch.h".
5056
995d3a19
SV
50572020-08-25 Shahab Vahedi <shahab@synopsys.com>
5058
5059 * arch/arc.h
5060 (arc_gdbarch_features): New class to stir the selection of target XML.
5061 (arc_create_target_description): Use FEATURES to choose XML target.
5062 (arc_lookup_target_description): Use arc_create_target_description
5063 to create _new_ target descriptions or return the already created
5064 ones if the FEATURES is the same.
5065 * arch/arc.c: Implementation of prototypes described above.
5066 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
5067 (arc_gdbarch_features_init): Initialize the FEATURES struct.
5068 * arc-tdep.c (*_feature_name): Make feature names consistent.
5069 (arc_register_feature): A new struct to hold information about
5070 registers of a particular target/feature.
5071 (arc_check_tdesc_feature): Check if XML provides registers in
5072 compliance with ARC_REGISTER_FEATURE structs.
5073 (arc_update_acc_reg_names): Add aliases for r58 and r59.
5074 (determine_*_reg_feature_set): Which feature name to look for.
5075 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
5076 (mach_type_to_arc_isa): Convert from a set of binutils machine types
5077 to expected ISA enums to be used in arc_gdbarch_features structs.
5078 * features/Makefile (FEATURE_XMLFILES): Add new files.
5079 * gdb/features/arc/v1-aux.c: New file.
5080 * gdb/features/arc/v1-aux.xml: Likewise.
5081 * gdb/features/arc/v1-core.c: Likewise.
5082 * gdb/features/arc/v1-core.xml: Likewise.
5083 * gdb/features/arc/v2-aux.c: Likewise.
5084 * gdb/features/arc/v2-aux.xml: Likewise.
5085 * gdb/features/arc/v2-core.c: Likewise.
5086 * gdb/features/arc/v2-core.xml: Likewise.
5087 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
5088
3945d2d7
GM
50892020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
5090 Andrew Burgess <andrew.burgess@embecosm.com>
5091
5092 PR m2/26372
fc5d6901 5093 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
5094 an assert. Remove single element array indexing pattern as the
5095 MULTI_SUBSCRIPT support will handle this case too.
5096
2677f2d3
SM
50972020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
5098
5099 * value.h (valprint_check_validity): Move declaration from
5100 here...
5101 * valprint.h (valprint_check_validity): ... to here.
5102
c426fddb
SM
51032020-08-24 Simon Marchi <simon.marchi@efficios.com>
5104
5105 * debug.h: New file.
5106 * debug.c (debug_prefixed_vprintf): New function.
5107 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
5108 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
5109
1eb8556f
SM
51102020-08-24 Simon Marchi <simon.marchi@efficios.com>
5111
5112 * infrun.h (infrun_debug_printf_1): New function declaration.
5113 (infrun_debug_printf): New macro.
5114 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
5115 throughout.
5116 (infrun_debug_printf): New function.
5117 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
5118 (handle_jit_event): Likewise.
5119
b8fff44e
MW
51202020-08-21 Mark Wielaard <mark@klomp.org>
5121
5122 * ada-lex.l: Extend register warnings diagnostics comment for g++.
5123
d19c3068
SM
51242020-08-22 Simon Marchi <simon.marchi@efficios.com>
5125
5126 * frame.c (enum class frame_id_status): New.
5127 (struct frame_info) <this_id::p>: Change type to frame_id_status.
5128 (fprintf_frame): Update.
5129 (compute_frame_id): Set frame id status to "computing" on entry.
5130 Set it back to "not_computed" on failure and to "computed" on
5131 success.
5132 (get_frame_id): Assert the frame id is not being computed.
5133 (create_sentinel_frame): Use frame_id_status::COMPUTED.
5134 (create_new_frame): Likewise.
5135 (frame_cleanup_after_sniffer): Update assert.
5136
b70e516e
SM
51372020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5138
5139 * regcache.c (pid_ptid_regcache_map): New type.
5140 (target_ptid_regcache_map): Remove.
5141 (target_pid_ptid_regcache_map): New type.
5142 (regcaches): Change type to target_pid_ptid_regcache_map.
5143 (get_thread_arch_aspace_regcache): Update.
5144 (regcache_thread_ptid_changed): Update, handle pid-like ptid
5145 case.
5146 (regcaches_size): Update.
5147 (regcache_count): Update.
5148 (registers_changed_ptid_target_pid_test): New.
5149 (_initialize_regcache): Register new test.
5150
cdd9148a
SM
51512020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5152
5153 * regcache.c (regcache_count): New.
5154 (struct regcache_test_data): New.
5155 (regcache_test_data_up): New.
5156 (populate_regcaches_for_test): New.
5157 (regcaches_test): Remove.
5158 (get_thread_arch_aspace_regcache_test): New.
5159 (registers_changed_ptid_all_test): New.
5160 (registers_changed_ptid_target_test): New.
5161 (registers_changed_ptid_target_ptid_test): New.
5162 (regcache_thread_ptid_changed): Remove regcache_count lambda.
5163 (_initialize_regcache): Register new tests.
5164
dd125343
SM
51652020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5166
5167 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
5168 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
5169 gdbarch and aspace parameter. Use current inferior's aspace.
5170 Validate regcache's arch value.
5171 (regcaches_test): Update.
5172
3ee93972
SM
51732020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5174
5175 * regcache.c (regcaches_test): Call registers_changed.
5176
33bf4c5c
TBA
51772020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5178
5179 * infrun.c (process_event_stop_test): Fix typo "breapoint".
5180
c2fd7fae
AKS
51812020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5182
5183 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
5184 to find the end of prologue for flang compiled binaries.
5185 * arm-tdep.c (arm_skip_prologue): Likewise.
5186 * i386-tdep.c (i386_skip_prologue): Likewise.
5187 * producer.c (producer_is_llvm): New function.
5188 (producer_parsing_tests): Added new tests for clang/flang.
5189 * producer.h (producer_is_llvm): New declaration.
5190
9327494e
SM
51912020-08-18 Simon Marchi <simon.marchi@efficios.com>
5192
5193 * linux-nat.c (linux_nat_debug_printf): New function.
5194 (linux_nat_debug_printf_1): New macro. Use throughout the file.
5195
d138725a
AM
51962020-08-18 Aaron Merey <amerey@redhat.com>
5197
5198 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
5199 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
5200 (CLIBS): Add DEBUGINFOD_LIBS.
5201
f9b11e6b
ST
52022020-08-17 Sergei Trofimovich <siarheit@google.com>
5203
5204 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
5205 'gdbarch_num_regs'.
5206
3ae7ab99
TT
52072020-08-17 Tom Tromey <tromey@adacore.com>
5208
5209 * ada-varobj.c (ada_varobj_decode_var): Handle case where
5210 ada_get_decoded_value returns NULL.
5211
b017825f
TT
52122020-08-17 Tom Tromey <tromey@adacore.com>
5213
5214 * python/py-inferior.c (infpy_search_memory): Use
5215 gdb_py_object_from_ulongest.
5216 * python/py-infevents.c (create_inferior_call_event_object)
5217 (create_memory_changed_event_object): Use
5218 gdb_py_object_from_ulongest.
5219 * python/py-linetable.c (ltpy_entry_get_pc): Use
5220 gdb_py_object_from_ulongest.
5221
7635cf79
SM
52222020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5223
5224 * loc.c (class symbol_needs_eval_context): Fix indentation.
5225
f54be24b
SM
52262020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5227
5228 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
5229 bool.
5230
53d5a2a5
TV
52312020-08-17 Tom de Vries <tdevries@suse.de>
5232
5233 PR gdb/26393
5234 * gdbtypes.c (dump_dynamic_prop): New function.
5235 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
5236
547ce8f0
TV
52372020-08-15 Tom de Vries <tdevries@suse.de>
5238
5239 PR backtrace/26390
5240 * stack.c (print_frame_args): Temporarily set the selected
5241 frame to FRAME while printing the frame's arguments.
5242
6ea815e7
PFC
52432020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5244
5245 PR breakpoints/26385
5246 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
5247 Always clear watchpoint with PTRACE_SET_DEBUGREG.
5248
6e562fa3
PFC
52492020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5250
5251 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
5252 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
5253 and >= to check return value instead of == -1 and != -1.
5254
d369b608
SM
52552020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
5256
5257 * utils.h (class gdb_argv) <as_array_view>: New method.
5258 * utils.c (gdb_argv_as_array_view_test): New.
5259 (_initialize_utils): Register selftest.
5260 * maint.c (maintenance_selftest): Use the new method.
5261
b31488a3
KR
52622020-08-13 Kamil Rytarowski <n54@gmx.com>
5263
5264 * target.h (supports_dumpcore, dumpcore): New
5265 function declarations.
5266 * target.c (supports_dumpcore, dumpcore): New
5267 functions.
5268 * target-delegates.c: Rebuild.
5269 * gcore.c (gcore_command): Use target_supports_dumpcore ()
5270 and target_dumpcore ().
5271
002a3166
AM
52722020-08-13 Aaron Merey <amerey@redhat.com>
5273
5274 * debuginfod-support.c: Replace global variables with user_data.
5275
ece5bc8a
SM
52762020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
5277
5278 * maint.c (maintenance_selftest): Split args and pass array_view
5279 to run_tests.
5280
6d8a0a5e
LM
52812020-08-12 Luis Machado <luis.machado@linaro.org>
5282
5283 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
5284 type's length.
5285 Use %s and pulongest to print the length.
5286
7cf663a9
PA
52872020-08-12 Pedro Alves <palves@redhat.com>
5288
5289 * NEWS: Move "Multi-target debugging support" item to the
5290 "Changes since GDB 9" section.
5291
27c7b875
PA
52922020-08-12 Pedro Alves <palves@redhat.com>
5293
5294 PR gdb/26336
5295 * progspace.c (program_space::remove_objfile): Invalidate the
5296 frame cache.
5297
1796a2a1
TV
52982020-08-11 Tom de Vries <tdevries@suse.de>
5299
5300 * MAINTAINERS: Mark ms1 as deleted.
5301
f8e3fe0d
LM
53022020-08-10 Luis Machado <luis.machado@linaro.org>
5303
5304 PR gdb/26310
5305
5306 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
5307 act accordingly.
5308 (aarch64_analyze_prologue_test): Add more unit tests to exercise
5309 movz/str/stur/stp skipping behavior.
5310
cc308722
LM
53112020-08-10 Luis Machado <luis.machado@linaro.org>
5312
5313 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
5314 struct user_sve_header instead of struct sve_context.
5315
041d9819
SM
53162020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
5317
5318 * read.h (dwarf2_fetch_die_loc_sect_off,
5319 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
5320 `void *` parameter with function_view.
5321 * read.c (dwarf2_fetch_die_loc_sect_off,
5322 dwarf2_fetch_die_loc_cu_off): Likewise.
5323 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
5324 (per_cu_dwarf_call): Adjust.
5325 (get_frame_address_in_block_wrapper): Remove.
5326 (indirect_synthetic_pointer): Adjust.
5327 (get_ax_pc): Remove.
5328 (dwarf2_compile_expr_to_ax): Adjust.
5329
38f8aa06
TV
53302020-08-08 Tom de Vries <tdevries@suse.de>
5331
5332 PR build/26344
5333 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
5334 constructor.
5335 * regcache.c (get_thread_arch_aspace_regcache): Same.
5336
a52b3ae2
TT
53372020-08-07 Tom Tromey <tromey@adacore.com>
5338
5339 * ravenscar-thread.c
5340 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
5341 New method.
5342 (ravenscar_thread_target::wait): Check
5343 runtime_initialized.
5344 (ravenscar_thread_target::prepare_to_store)
5345 (ravenscar_thread_target::stopped_by_sw_breakpoint)
5346 (ravenscar_thread_target::stopped_by_hw_breakpoint)
5347 (ravenscar_thread_target::stopped_by_watchpoint)
5348 (ravenscar_thread_target::stopped_data_address)
5349 (ravenscar_thread_target::core_of_thread): Use
5350 scoped_restore_current_thread and
5351 set_base_thread_from_ravenscar_task.
5352
0e29517d
TT
53532020-08-07 Tom Tromey <tromey@adacore.com>
5354
5355 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
5356
592f9bd7
TT
53572020-08-07 Tom Tromey <tromey@adacore.com>
5358
5359 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
5360 update_inferior_ptid before update_thread_list.
5361 (temporarily_change_regcache_ptid): New class.
5362 (ravenscar_thread_target::fetch_registers)
5363 (ravenscar_thread_target::store_registers)
5364 (ravenscar_thread_target::prepare_to_store): Use base thread when
5365 forwarding operation.
5366
39e2018a
TT
53672020-08-07 Tom Tromey <tromey@adacore.com>
5368
5369 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
5370 "is_pid" case.
5371
2080266b
TT
53722020-08-07 Tom Tromey <tromey@adacore.com>
5373
5374 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
5375 New methods.
5376 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
5377 first.
5378 (ravenscar_thread_target::add_thread): Rename from
5379 ravenscar_add_thread.
5380 (ravenscar_thread_target::update_thread_list): Use a lambda.
5381 (ravenscar_thread_target::xfer_partial): New method.
5382
78c02f21
TT
53832020-08-07 Tom Tromey <tromey@adacore.com>
5384
5385 * ada-lang.h (ada_task_list_iterator_ftype): Now a
5386 gdb::function_view.
5387 (iterate_over_live_ada_tasks): Change type of argument.
5388 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
5389 of argument.
5390
d5d833af
TT
53912020-08-07 Tom Tromey <tromey@adacore.com>
5392
5393 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
5394 Remove.
5395 (ravenscar_thread_target::extra_thread_info): Remove.
5396 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
5397 defer to target beneath for non-Ravenscar threads.
5398
a8ac85bb
TT
53992020-08-07 Tom Tromey <tromey@adacore.com>
5400
5401 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
5402 get_base_thread_from_ravenscar_task>: Now methods.
5403 <m_cpu_map>: New member.
5404 (ravenscar_thread_target::get_thread_base_cpu): Rename from
5405 ravenscar_get_thread_base_cpu. Check m_cpu_map.
5406 (ravenscar_thread_target::task_is_currently_active): Update.
5407 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
5408 Now a method.
5409 (ravenscar_thread_target::add_active_thread): Put initial thread
5410 into the m_cpu_map.
5411
550ab58d
TT
54122020-08-07 Tom Tromey <tromey@adacore.com>
5413
5414 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
5415 event_ptid.
5416
e9546579
TT
54172020-08-07 Tom Tromey <tromey@adacore.com>
5418
5419 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
5420 runtime_initialized.
5421
3d4470e5
TT
54222020-08-07 Tom Tromey <tromey@adacore.com>
5423
5424 * ravenscar-thread.c (ravenscar_thread_target): Don't call
5425 add_active_thread.
5426 (ravenscar_thread_target::add_active_thread): Now public.
5427 (ravenscar_inferior_created): Call add_active_thread after pushing
5428 the target.
5429
888bdb2b
SM
54302020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
5431
5432 * regcache.c (ptid_regcache_map): New type.
5433 (target_ptid_regcache_map): New type.
5434 (regcaches): Change type to target_ptid_regcache_map.
5435 (get_thread_arch_aspace_regcache): Update to regcaches' new
5436 type.
5437 (regcache_thread_ptid_changed): Likewise.
5438 (registers_changed_ptid): Likewise.
5439 (regcaches_size): Likewise.
5440 (regcaches_test): Update.
5441 (regcache_thread_ptid_changed): Update.
5442 * regcache.h (regcache_up): New type.
5443 * gdbsupport/ptid.h (hash_ptid): New struct.
5444
b161a60d
SM
54452020-08-07 Simon Marchi <simon.marchi@efficios.com>
5446
5447 * observable.h (thread_ptid_changed): Add parameter
5448 `process_stratum_target *`.
5449 * infrun.c (infrun_thread_ptid_changed): Add parameter
5450 `process_stratum_target *` and use it.
5451 (selftests): New namespace.
5452 (infrun_thread_ptid_changed): New function.
5453 (_initialize_infrun): Register selftest.
5454 * regcache.c (regcache_thread_ptid_changed): Add parameter
5455 `process_stratum_target *` and use it.
5456 (regcache_thread_ptid_changed): New function.
5457 (_initialize_regcache): Register selftest.
5458 * thread.c (thread_change_ptid): Pass target to
5459 thread_ptid_changed observable.
5460
d2854d8d
CT
54612020-08-06 Caroline Tice <cmtice@google.com>
5462
fe4c3d43
SM
5463 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
5464 (struct dwp_sections): Update field comments. Add loclists and
5465 rnglists fields.
5466 (struct virtual_v2_dwo_sections): Rename struct to
5467 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
5468 size & offset fields for loclists and rnglists.
5469 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
5470 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
5471 skipping dummy type units.
5472 (create_dwp_hash_table): Update the large comment above the function to
5473 discuss Version 5 DWP files as well, with references. Update all the
5474 version checks in the function to check for version 5 as well. Add new
5475 section at the end to create dwp hash table for version 5.
5476 (create_dwp_v2_section): Rename function to
5477 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
5478 Add V5 to error message text.
5479 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
5480 into calls to create_dwp_v2_or_v5_section.
5481 (create_dwo_unit_in_dwp_v5): New function.
5482 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
5483 check for version2; add else clause to handle version 5.
5484 (open_and_init_dwo_file): Add code to check dwarf version & only call
5485 create_debug_types_hash_table (with sections.types) if version is not 5;
5486 else call create_debug_type_hash_table, with sections.info.
5487 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
5488 version 5.
5489 (dwarf2_locate_v5_dwp_sections): New function.
5490 (open_and_init_dwp_file): Add else-if clause for version 5 to call
5491 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 5492
159ed7d9
SM
54932020-08-06 Simon Marchi <simon.marchi@efficios.com>
5494
5495 * regcache.h (class regcache): Remove friend
5496 registers_changed_ptid.
5497 <regcache_thread_ptid_changed>: Remove.
5498 <regcaches>: Remove.
5499 * regcache.c (regcache::regcaches): Rename to...
5500 (regcaches): ... this. Make static.
5501 (get_thread_arch_aspace_regcache): Update.
5502 (regcache::regcache_thread_ptid_changed): Rename to...
5503 (regcache_thread_ptid_changed): ... this. Update.
5504 (class regcache_access): Remove.
5505 (regcaches_test): Update.
5506 (_initialize_regcache): Update.
5507 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
5508 <forward_list>.
5509
174981ae
SM
55102020-08-06 Simon Marchi <simon.marchi@efficios.com>
5511
5512 * regcache.h (class regcache) <current_regcache>: Rename to...
5513 <regcaches>: ... this. Move doc here.
5514 * regcache.c (regcache::current_regcache) Rename to...
5515 (regcache::regcaches): ... this. Move doc to header.
5516 (get_thread_arch_aspace_regcache): Update.
5517 (regcache::regcache_thread_ptid_changed): Update.
5518 (registers_changed_ptid): Update.
5519 (class regcache_access) <current_regcache_size>: Rename to...
5520 <regcaches_size>: ... this.
5521 (current_regcache_test): Rename to...
5522 (regcaches_test): ... this.
5523 (_initialize_regcache): Update.
5524
ed908db6
VC
55252020-08-06 Victor Collod <vcollod@nvidia.com>
5526
5527 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
5528
b5582ab7
KB
55292020-08-05 Kevin Buettner <kevinb@redhat.com>
5530
5531 * corelow.c (core_target::build_file_mappings): Don't output
5532 null pathname in warning.
5533
ea946b86
SM
55342020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
5535
5536 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
5537 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
5538 gdb.dwarf2/dw2-single-line-discriminators.exp,
5539 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
5540
57d02173
TT
55412020-08-05 Tom Tromey <tromey@adacore.com>
5542
5543 PR rust/26197:
5544 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
5545 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
5546 Fix off-by-one and type size errors in ordinary case.
5547
5555c86d
TV
55482020-08-05 Tom de Vries <tdevries@suse.de>
5549
5550 * gdbtypes.c (type_not_allocated, type_not_associated): Use
5551 "prop->const_val () == 0" instead of "prop->const_val () != 0".
5552
97916bfe
SM
55532020-08-04 Simon Marchi <simon.marchi@efficios.com>
5554
5555 * frame.h (frame_id_p): Return bool.
5556 (frame_id_artificial_p): Return bool.
5557 (frame_id_eq): Return bool.
5558 (has_stack_frames): Return bool.
5559 (get_selected_frame): Fix typo in comment.
5560 (get_frame_pc_if_available): Return bool.
5561 (get_frame_address_in_block_if_available): Return bool.
5562 (get_frame_func_if_available): Return bool.
5563 (read_frame_register_unsigned): Return bool.
5564 (get_frame_register_bytes): Return bool.
5565 (safe_frame_unwind_memory): Return bool.
5566 (deprecated_frame_register_read): Return bool.
5567 (frame_unwinder_is): Return bool.
5568 * frame.c (struct frame_info) <prev_arch::p>: Change type to
5569 bool.
5570 <this_id::p>: Likewise.
5571 <prev_p>: Likewise.
5572 (frame_stash_add): Return bool.
5573 (get_frame_id): Use bool.
5574 (frame_id_build_special) Use bool.
5575 (frame_id_build_unavailable_stack): Use bool.
5576 (frame_id_build): Use bool.
5577 (frame_id_p): Return bool, use true/false instead of 1/0.
5578 (frame_id_artificial_p): Likewise.
5579 (frame_id_eq): Likewise.
5580 (frame_id_inner): Likewise.
5581 (get_frame_func_if_available): Likewise.
5582 (read_frame_register_unsigned): Likewise.
5583 (deprecated_frame_register_read): Likewise.
5584 (get_frame_register_bytes): Likewise.
5585 (has_stack_frames): Likewise.
5586 (inside_main_func): Likewise.
5587 (inside_entry_func): Likewise.
5588 (get_frame_pc_if_available): Likewise.
5589 (get_frame_address_in_block_if_available): Likewise.
5590 (frame_unwinder_is): Likewise.
5591 (safe_frame_unwind_memory): Likewise.
5592 (frame_unwind_arch): Likewise.
5593
fedfee88
SM
55942020-08-04 Simon Marchi <simon.marchi@efficios.com>
5595
5596 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
5597 type to cached_copy_status.
5598 (fprintf_frame): Adjust.
5599 (get_frame_func_if_available): Adjust.
5600 (frame_cleanup_after_sniffer): Adjust.
5601
6cfa9b59
MW
56022020-08-04 Mark Wielaard <mark@klomp.org>
5603
5604 * MAINTAINERS (Write After Approval): Update email address.
5605
66d6346b
SM
56062020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5607
5608 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
5609 dynamic_prop::const_val.
5610
8a6d5e35
SM
56112020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5612
5613 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
5614 dynamic_prop::kind.
5615
51d6067d
SM
56162020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5617
5618 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
5619
b26e2ae7
JM
56202020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
5621
5622 * configure.tgt: Set gdb_sim for bpf-*-* targets.
5623
39791af2
JM
56242020-08-04 Weimin Pan <weimin.pan@oracle.com>
5625 Jose E. Marchesi <jose.marchesi@oracle.com>
5626
5627 * configure.tgt: Add entry for bpf-*-*.
5628 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
5629 (ALLDEPFILES): Add bpf-tdep.c.
5630 * bpf-tdep.c: New file.
5631 * MAINTAINERS: Add bpf target and maintainer.
5632 * NEWS: Mention the support for the new target.
5633
521894aa
TV
56342020-08-04 Tom de Vries <tdevries@suse.de>
5635
5636 PR symtab/23270
5637 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
5638 Error.
5639
5d6356e9
JB
56402020-08-03 John Baldwin <jhb@FreeBSD.org>
5641
5642 * syscalls/freebsd.xml: Regenerate.
5643
0cf82b81
JB
56442020-08-03 John Baldwin <jhb@FreeBSD.org>
5645
5646 * syscalls/update-freebsd.sh: Fix usage and year range.
5647
8f34b746
TV
56482020-08-03 Tom de Vries <tdevries@suse.de>
5649
5650 PR symtab/26333
5651 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
5652 DW_LNE_lo_user/DW_LNE_hi_user range.
5653
5e500d33
SM
56542020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
5655
5656 PR ada/26318
5657 * ada-lang.c (ada_modulus): Return 0 if property is not of const
5658 kind.
5659
78319c15
TBA
56602020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5661
5662 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
5663
4c55e970
TBA
56642020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5665
5666 * breakpoint.c (set_breakpoint_condition): Update the condition
5667 expressions after checking that the input condition string parses
5668 successfully and does not contain junk at the end.
5669
1e620590
TBA
56702020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5671
5672 * breakpoint.c (set_breakpoint_condition): Update the
5673 condition string after parsing the new condition successfully.
5674
c8693053
RO
56752020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5676
5677 * proc-api.c (_STRUCTURED_PROC): Don't define.
5678 * proc-events.c: Likewise.
5679 * proc-flags.c: Likewise.
5680 * proc-why.c: Likewise.
5681 * procfs.c: Likewise.
5682
5683 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
5684 * configure, config.in: Regenerate.
5685
5a99adb8
TV
56862020-07-30 Tom de Vries <tdevries@suse.de>
5687
5688 PR build/26320
5689 * ui-style.h (struct ui_file_style::color): Wrap m_value and
5690 m_red/m_green/m_blue in a union.
5691
8ba83e91
TV
56922020-07-29 Tom de Vries <tdevries@suse.de>
5693
5694 PR tdep/26280
5695 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
5696
f75a0693
AB
56972020-07-28 Tom Tromey <tromey@adacore.com>
5698
5699 PR symtab/26270:
5700 * symtab.h (find_pc_partial_function_sym): Declare.
5701 * cli/cli-cmds.c (disassemble_command): Use
5702 find_pc_partial_function_sym. Check asm_demangle.
5703 * blockframe.c (cache_pc_function_sym): New global.
5704 (cache_pc_function_name): Remove.
5705 (clear_pc_function_cache): Update.
5706 (find_pc_partial_function_sym): New function, from
5707 find_pc_partial_function.
5708 (find_pc_partial_function): Rewrite using
5709 find_pc_partial_function_sym.
5710
16f3242c
TT
57112020-07-28 Tom Tromey <tromey@adacore.com>
5712
5713 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
5714 help. Add usage.
5715
4888741a
TT
57162020-07-28 Tom Tromey <tromey@adacore.com>
5717
5718 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
5719 <DW_OP_GNU_variable_value>: Cast to address type.
5720
4d46f402
KR
57212020-07-28 Kamil Rytarowski <n54@gmx.com>
5722
5723 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
5724 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
5725 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
5726 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
5727 (nbsd_get_siginfo_type): New.
5728 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
5729 (_initialize_nbsd_tdep): New.
5730
d70f978b
L
57312020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5732
5733 PR binutils/26301
5734 * configure: Regenerated.
5735
377170fa
L
57362020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5737
5738 PR binutils/26301
5739 * configure: Regenerated.
5740
43d5901d
AB
57412020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5742
5743 * python/py-frame.c: Remove 'user-regs.h' include.
5744 (frapy_read_register): Rewrite to make use of
5745 gdbpy_parse_register_id.
5746 * python/py-registers.c (gdbpy_parse_register_id): New function,
5747 moved here from python/py-unwind.c. Updated the return type, and
5748 also accepts register descriptor objects.
5749 * python/py-unwind.c: Remove 'user-regs.h' include.
5750 (pyuw_parse_register_id): Moved to python/py-registers.c.
5751 (unwind_infopy_add_saved_register): Update to use
5752 gdbpy_parse_register_id.
5753 (pending_framepy_read_register): Likewise.
5754 * python/python-internal.h (gdbpy_parse_register_id): Declare.
5755
14fa8fb3
AB
57562020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5757
5758 * python/py-registers.c: Add 'user-regs.h' include.
5759 (register_descriptor_iter_find): New function.
5760 (register_descriptor_iterator_object_methods): New static global
5761 methods array.
5762 (register_descriptor_iterator_object_type): Add pointer to methods
5763 array.
5764
ddce1758
JB
57652020-07-27 John Baldwin <jhb@FreeBSD.org>
5766
5767 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
5768 for all architectures on FreeBSD 11.3 and later.
5769
a4089f52
TT
57702020-07-27 Tom Tromey <tromey@adacore.com>
5771
5772 * gcore.h (load_corefile): Don't declare.
5773
95420d30
TV
57742020-07-27 Tom de Vries <tdevries@suse.de>
5775
5776 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
5777 * config.in: Regenerate.
5778 * configure: Regenerate.
5779
05a6b8c2
EZ
57802020-07-26 Eli Zaretskii <eliz@gnu.org>
5781
5782 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
5783 ws2tcpip.h. When checking whether socklen_t type is defined, use
5784 ws2tcpip.h if it is available and sys/socket.h isn't.
5785 * configure: Regenerate.
5786 * config.in: Regenerate.
5787
e79eb02f
AB
57882020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
5789
5790 PR fortran/23051
5791 PR fortran/26139
5792 * valops.c (value_ind): Pass address to
5793 readjust_indirect_value_type.
5794 * value.c (readjust_indirect_value_type): Make parameter
5795 non-const, and add extra address parameter. Resolve original type
5796 before using it.
5797 * value.h (readjust_indirect_value_type): Update function
5798 signature and comment.
5799
876518dd
TV
58002020-07-25 Tom de Vries <tdevries@suse.de>
5801
5802 PR symtab/26243
5803 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
5804 entries.
5805
f6720b1c
AM
58062020-07-24 Aaron Merey <amerey@redhat.com>
5807
5808 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
5809 * configure: Rebuild.
5810
513487e1
KB
58112020-07-23 Kevin Buettner <kevinb@redhat.com>
5812
5813 PR corefiles/26294
5814 * corelow.c (_initialize_corelow): Add period to help text
5815 for "maintenance print core-file-backed-mappings".
5816
e7bc9db8
PA
58172020-07-23 Pedro Alves <pedro@palves.net>
5818
5819 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
5820 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
5821 meanwhile.
5822 * frame.c (frame_cache_generation, get_frame_cache_generation):
5823 New.
5824 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
5825 (get_prev_frame_if_no_cycle): On exception, don't touch
5826 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
5827 * frame.h (get_frame_cache_generation): Declare.
5828
90fcc466
TV
58292020-07-23 Tom de Vries <tdevries@suse.de>
5830
5831 PR tui/26282
5832 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
5833 New default constructor.
5834
78344df7
AB
58352020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
5836
5837 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
5838 exclude non-statement entries.
5839
b089853a
KB
58402020-07-22 Kevin Buettner <kevinb@redhat.com>
5841
5842 * NEWS (New commands): Mention new command
5843 "maintenance print core-file-backed-mappings".
5844
09c2f5d4
KB
58452020-07-22 Kevin Buettner <kevinb@redhat.com>
5846
5847 * corelow.c (gdbcmd.h): Include.
5848 (core_target::info_proc_mappings): New method.
5849 (get_current_core_target): New function.
5850 (maintenance_print_core_file_backed_mappings): New function.
5851 (_initialize_corelow): Add core-file-backed-mappings to
5852 "maint print" commands.
5853
9c5ec5c2 58542020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 5855
9c5ec5c2
KB
5856 * linux-tdep.c (dump_note_entry_p): New function.
5857 (linux_dump_mapping_p_ftype): New typedef.
5858 (linux_find_memory_regions_full): Add new parameter,
5859 should_dump_mapping_p.
5860 (linux_find_memory_regions): Adjust call to
5861 linux_find_memory_regions_full.
5862 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
5863 call to linux_find_memory_regions_full.
5864
db082f59
KB
58652020-07-22 Kevin Buettner <kevinb@redhat.com>
5866
5867 * corelow.c (solist.h, unordered_map): Include.
5868 (class core_target): Add field m_core_file_mappings and
5869 method build_file_mappings.
5870 (core_target::core_target): Call build_file_mappings.
5871 (core_target::~core_target): Free memory associated with
5872 m_core_file_mappings.
5873 (core_target::build_file_mappings): New method.
5874 (core_target::xfer_partial): Use m_core_file_mappings
5875 for memory transfers.
5876 * linux-tdep.c (linux_read_core_file_mappings): New
5877 function.
5878 (linux_core_info_proc_mappings): Rewrite to use
5879 linux_read_core_file_mappings.
5880 (linux_init_abi): Register linux_read_core_file_mappings.
5881
7e183d27
KB
58822020-07-22 Kevin Buettner <kevinb@redhat.com>
5883
5884 * arch-utils.c (default_read_core_file_mappings): New function.
5885 * arch-utils.c (default_read_core_file_mappings): Declare.
5886 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
5887 * gdbarch.h, gdbarch.c: Regenerate.
5888
2735d421
KB
58892020-07-22 Kevin Buettner <kevinb@redhat.com>
5890
5891 PR corefiles/25631
5892 * corelow.c (core_target:xfer_partial): Revise
5893 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
5894 case after first checking the stratum beneath the core
5895 target.
5896 (has_all_memory): Return true.
5897 * target.c (raw_memory_xfer_partial): Revise comment
5898 regarding use of has_all_memory.
5899
e56cb451
KB
59002020-07-22 Kevin Buettner <kevinb@redhat.com>
5901
5902 * exec.h (section_table_xfer_memory): Revise declaration,
5903 replacing section name parameter with an optional callback
5904 predicate.
5905 * exec.c (section_table_xfer_memory): Likewise.
5906 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
5907 of section_table_xfer_memory.
5908
32fa152e
TT
59092020-07-22 Tom Tromey <tromey@adacore.com>
5910
5911 * mi/mi-cmd-stack.c (list_args_or_locals): Use
5912 lookup_symbol_search_name.
5913
a67a1c41
AB
59142020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
5915
5916 * python/py-registers.c (gdbpy_register_object_data_init): Remove
5917 redundant local variable.
5918 (gdbpy_get_register_descriptor): Extract descriptor vector as a
5919 reference, not pointer, update code accordingly.
5920
a7b4ff4f
SM
59212020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5922 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5923
5924 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
5925 * jit.c (jit_breakpoint_re_set_internal): Use the
5926 `skip_jit_symbol_lookup` field.
5927
2340e834
SM
59282020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5929 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5930
5931 * jit.c (jit_read_descriptor): Define the descriptor address once,
5932 use twice.
5933 (jit_breakpoint_deleted): Move the declaration of the loop variable
5934 `iter` into the loop header.
5935 (jit_breakpoint_re_set_internal): Move the declaration of the local
5936 variable `objf_data` to the first point of definition.
5937 (jit_event_handler): Move the declaration of local variables
5938 `code_entry`, `entry_addr`, and `objf` to their first point of use.
5939 Rename `objf` to `jited`.
5940
c1072906
SM
59412020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5942
5943 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
5944 Remove.
5945 * jit.c (get_jiter_objfile_data): Update.
5946
c8474dc3
TBA
59472020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5948 Simon Marchi <simon.marchi@polymtl.ca>
5949
5950 * jit.c (struct jit_program_space_data): Remove.
5951 (jit_program_space_key): Remove.
5952 (jiter_objfile_data::~jiter_objfile_data): Remove program space
5953 stuff.
5954 (get_jit_program_space_data): Remove.
5955 (jit_breakpoint_deleted): Iterate on all of the program space's
5956 objfiles.
5957 (jit_inferior_init): Likewise.
5958 (jit_breakpoint_re_set_internal): Likewise. Also change return
5959 type to void.
5960 (jit_breakpoint_re_set): Pass current_program_space to
5961 jit_breakpoint_re_set_internal.
5962
77208eb7
SM
59632020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5964
5965 * jit.h (struct jiter_objfile_data) <cached_code_address,
5966 jit_breakpoint>: Move to here from ...
5967 * jit.c (jit_program_space_data): ... here.
5968 (jiter_objfile_data::~jiter_objfile_data): Update.
5969 (jit_breakpoint_deleted): Update.
5970 (jit_breakpoint_re_set_internal): Update.
5971
8c1c720f
SM
59722020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5973
5974 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
5975 checks.
5976 (jit_read_descriptor): Remove NULL check.
5977 (jit_event_handler): Add an assertion.
5978
0e74a041
SM
59792020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5980
5981 * jit.h (struct jit_objfile_data): Split into...
5982 (struct jiter_objfile_data): ... this ...
5983 (struct jited_objfile_data): ... and this.
5984 * objfiles.h (struct objfile) <jit_data>: Remove.
5985 <jiter_data, jited_data>: New fields.
5986 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
5987 (jiter_objfile_data::~jiter_objfile_data): ... this.
5988 (get_jit_objfile_data): Rename to ...
5989 (get_jiter_objfile_data): ... this.
5990 (add_objfile_entry): Update.
5991 (jit_read_descriptor): Use get_jiter_objfile_data.
5992 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
5993 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
5994 (jit_inferior_exit_hook): Use objfile's jited_data field.
5995
238b5c9f
SM
59962020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
5997
5998 * jit.h: Forward-declare `struct minimal_symbol`.
5999 (struct jit_objfile_data): Migrate to here from jit.c; also add a
6000 constructor, destructor, and an objfile* field.
6001 * jit.c (jit_objfile_data): Remove.
6002 (struct jit_objfile_data): Migrate from here to jit.h.
6003 (jit_objfile_data::~jit_objfile_data): New destructor
6004 implementation with code moved from free_objfile_data.
6005 (free_objfile_data): Delete.
6006 (get_jit_objfile_data): Update to use the jit_data field of objfile.
6007 (jit_find_objf_with_entry_addr): Ditto.
6008 (jit_inferior_exit_hook): Ditto.
6009 (_initialize_jit): Remove the call to
6010 register_objfile_data_with_cleanup.
6011 * objfiles.h (struct objfile) <jit_data>: New field.
6012
fe053b9e
TBA
60132020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6014
6015 * jit.h: Forward-declare `struct objfile`.
6016 (jit_event_handler): Add a second parameter, the JITer objfile.
6017 * jit.c (jit_read_descriptor): Change the signature to take the
6018 JITer objfile as an argument instead of the jit_program_space_data.
6019 (jit_inferior_init): Update the call to jit_read_descriptor.
6020 (jit_event_handler): Use the new JITer objfile argument when calling
6021 jit_read_descriptor.
6022 * breakpoint.c (handle_jit_event): Update the call to
6023 jit_event_handler to pass the JITer objfile.
6024
4cec0c66
JB
60252020-07-21 John Baldwin <jhb@FreeBSD.org>
6026
6027 * gdbarch.c: Regenerate.
6028 * gdbarch.h: Regenerate.
6029 * gdbarch.sh (handle_segmentation_fault): Remove method.
6030 * infrun.c (handle_segmentation_fault): Remove.
6031 (print_signal_received_reason): Remove call to
6032 handle_segmentation_fault.
6033
0e42f66a
JB
60342020-07-21 John Baldwin <jhb@FreeBSD.org>
6035
6036 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6037 Rename to sparc64_linux_report_signal_info and add siggnal
6038 argument.
6039 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
6040 instead of sparc64_linux_handle_segmentation_fault.
6041
77bdfeb2
JB
60422020-07-21 John Baldwin <jhb@FreeBSD.org>
6043
6044 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
6045 i386_linux_report_signal_info instead of
6046 i386_linux_handle_segmentation_fault.
6047 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
6048 to i386_linux_report_signal_info and add siggnal argument.
6049 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
6050 of i386_linux_handle_segmentation_fault.
6051 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
6052 to i386_linux_report_signal_info and add siggnal argument.
6053
ad97bfc5
JB
60542020-07-21 John Baldwin <jhb@FreeBSD.org>
6055
6056 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
6057 hook if present.
6058
272bb05c
JB
60592020-07-21 John Baldwin <jhb@FreeBSD.org>
6060
6061 * gdbarch.c: Regenerate.
6062 * gdbarch.h: Regenerate.
6063 * gdbarch.sh (report_signal_info): New method.
6064 * infrun.c (print_signal_received_reason): Invoke gdbarch
6065 report_signal_info hook if present.
6066
baf8791e
AB
60672020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6068
6069 * python/py-registers.c : Add 'unordered_map' include.
6070 (gdbpy_new_reggroup): Renamed to...
6071 (gdbpy_get_reggroup): ...this. Update to only create register
6072 group descriptors when needed.
6073 (gdbpy_reggroup_iter_next): Update.
6074
f7306dac
AB
60752020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6076
6077 * python/py-registers.c (gdbpy_register_object_data): New static
6078 global.
6079 (gdbpy_register_object_data_init): New function.
6080 (gdbpy_new_register_descriptor): Renamed to...
6081 (gdbpy_get_register_descriptor): ...this, and update to reuse
6082 existing register descriptors where possible.
6083 (gdbpy_register_descriptor_iter_next): Update.
6084 (gdbpy_initialize_registers): Register new gdbarch data.
6085
05c309a8
SM
60862020-07-21 Simon Marchi <simon.marchi@efficios.com>
6087
6088 * linux-nat.c (stopped_pids): Make static.
6089
d1fd641e
SM
60902020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
6091
6092 PR ada/26235
6093 * gdbtypes.c (ada_discrete_type_low_bound,
6094 ada_discrete_type_high_bound): Handle undefined bounds.
6095
1de14d77
KR
60962020-07-21 Kamil Rytarowski <n54@gmx.com>
6097
6098 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
6099 declaration.
6100 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
6101 function.
6102
ed810cc7
JB
61032020-07-20 John Baldwin <jhb@FreeBSD.org>
6104
6105 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
6106 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
6107 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
6108 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
6109 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
6110 method.
6111
ae5369e7
LC
61122020-07-20 Ludovic Courtès <ludo@gnu.org>
6113
6114 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
6115 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
6116 which are deprecated in Guile 3.0.
6117 * configure.ac (try_guile_versions): Add "guile-3.0".
6118 * configure (try_guile_versions): Regenerate.
6119 * NEWS: Update entry.
6120
68cf161c
LC
61212020-07-20 Ludovic Courtès <ludo@gnu.org>
6122 Doug Evans <dje@google.com>
6123
6124 PR gdb/21104
6125 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
6126 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
6127 USING_GUILE_BEFORE_2_2.
6128 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
6129 Change type to 'scm_t_port_type *'.
6130 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
6131 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
6132 parameter and honor it. Update callers.
6133 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
6134 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
6135 functions.
6136 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
6137 USING_GUILE_BEFORE_2_2.
6138 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
6139 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
6140 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
6141 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
6142 and 'SCM_PORT_TYPE'.
6143 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
6144 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
6145 (gdbscm_memory_port_read, gdbscm_memory_port_write)
6146 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
6147 [!USING_GUILE_BEFORE_2_2]: New functions.
6148 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
6149 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
6150 'gdbscm_memory_port_read'.
6151 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
6152 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
6153 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
6154 function.
6155 (ioscm_init_memory_port): Remove.
6156 (ioscm_init_memory_port_stream): New function
6157 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
6158 function.
6159 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6160 Return scm_from_uint (0).
6161 (gdbscm_set_memory_port_read_buffer_size_x)
6162 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6163 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6164 Return scm_from_uint (0).
6165 (gdbscm_set_memory_port_write_buffer_size_x)
6166 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6167 * configure.ac (try_guile_versions): Add "guile-2.2".
6168 * configure: Regenerate.
6169 * NEWS: Add entry.
6170
aee91db3
TT
61712020-07-18 Tom Tromey <tom@tromey.com>
6172
6173 * linux-nat.c (linux_multi_process): Remove.
6174 (linux_nat_target::supports_multi_process): Return true.
6175
0e267416
AB
61762020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6177
6178 * arch/riscv.c (riscv_tdesc_cache): Change map type.
6179 (riscv_lookup_target_description): Return pointer out of
6180 unique_ptr.
6181 * target-descriptions.c (allocate_target_description): Add
6182 comment.
6183 (target_desc_deleter::operator()): Likewise.
6184 * target-descriptions.h (struct target_desc_deleter): Moved to
6185 gdbsupport/tdesc.h.
6186 (target_desc_up): Likewise.
6187
f80c8ec4
TT
61882020-07-17 Tom Tromey <tromey@adacore.com>
6189
6190 * linux-nat.c (linux_nat_target::supports_non_stop)
6191 (linux_nat_target::always_non_stop_p): Use "true".
6192 (linux_nat_target::supports_disable_randomization): Use "true" and
6193 "false".
6194
d0ce17d8
CT
61952020-07-16 Caroline Tice <cmtice@google.com>
6196
6197 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
6198 (RNGLIST_HEADER_SIZE64): New constant definition.
6199 (struct dwop_section_names): Add rnglists_dwo.
6200 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
6201 (struct loclist_header): Rename to 'loclists_rnglists_header'.
6202 (struct dwo_sections): Add rnglists field.
6203 (read_attribut_reprocess): Add tag parameter.
6204 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
6205 (cu_debug_rnglists_section): New function (decl & definition).
6206 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
6207 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
6208 die whose range is being checked; get rnglist section from
6209 cu_debug_rnglists_section, to get from either objfile or dwo file as
6210 appropriate. Add cases for DW_RLE_base_addressx,
6211 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
6212 the base address to DW_RLE_offset_pairs (not to all ranges), moving
6213 test inside if-condition and updating complaint message.
6214 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
6215 dwarf2_rnglists_process.
6216 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
6217 dwarf2_ranges_process.
6218 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
6219 need_ranges_base and update comment appropriately. Also pass die tag
6220 to dwarf2_ranges_read.
6221 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
6222 need_ranges_base and update comment appropriately. Also pass die tag
6223 to dwarf2_ranges_process.
6224 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
6225 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
6226 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
6227 need_ranges_base and update comment appropriately. Also pass die tag
6228 to read_attribute_reprocess and dwarf2_ranges_read.
6229 (read_loclist_header): Rename function to read_loclists_rnglists_header,
6230 and update function comment appropriately.
6231 (read_loclist_index): Call read_loclists_rnglists_header instead of
6232 read_loclist_header.
6233 (read_rnglist_index): New function.
6234 (read_attribute_reprocess): Add tag parameter. Add code for
6235 DW_FORM_rnglistx, passing tag to read_rnglist_index.
6236 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
6237
3dcc261c
AB
62382020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
6239
6240 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
6241 being resolved.
6242
ccb9eba6
AB
62432020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
6244
6245 * arch-utils.c (show_architecture): Update formatting of messages.
6246
cf88be68
SM
62472020-07-12 Simon Marchi <simon.marchi@efficios.com>
6248
6249 * gdbtypes.h (struct type) <bounds>: Handle array and string
6250 types.
6251 * ada-lang.c (assign_aggregate): Use type::bounds on
6252 array/string type.
6253 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
6254 * c-varobj.c (c_number_of_children): Likewise.
6255 (c_describe_child): Likewise.
6256 * eval.c (evaluate_subexp_for_sizeof): Likewise.
6257 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
6258 (f_type_print_base): Likewise.
6259 * f-valprint.c (f77_array_offset_tbl): Likewise.
6260 (f77_get_upperbound): Likewise.
6261 (f77_print_array_1): Likewise.
6262 * guile/scm-type.c (gdbscm_type_range): Likewise.
6263 * m2-typeprint.c (m2_array): Likewise.
6264 (m2_is_long_set_of_type): Likewise.
6265 * m2-valprint.c (get_long_set_bounds): Likewise.
6266 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
6267 * python/py-type.c (typy_range): Likewise.
6268 * rust-lang.c (rust_internal_print_type): Likewise.
6269 * type-stack.c (type_stack::follow_types): Likewise.
6270 * valarith.c (value_subscripted_rvalue): Likewise.
6271 * valops.c (value_cast): Likewise.
6272
509971ae
SM
62732020-07-12 Simon Marchi <simon.marchi@efficios.com>
6274
6275 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
6276 callers to use the equivalent accessor methods.
6277
107406b7
SM
62782020-07-12 Simon Marchi <simon.marchi@efficios.com>
6279
6280 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
6281 (struct type) <bit_stride>: New method.
6282 (TYPE_BIT_STRIDE): Remove.
6283 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
6284
bb789949
SM
62852020-07-12 Simon Marchi <simon.marchi@efficios.com>
6286
6287 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
6288 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
6289 callers to use the equivalent accessor methods instead.
6290
39498edb
SM
62912020-07-12 Simon Marchi <simon.marchi@efficios.com>
6292
6293 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
6294 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
6295 callers to use the equivalent accessor methods instead.
6296
3b606f38
SM
62972020-07-12 Simon Marchi <simon.marchi@efficios.com>
6298
6299 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
6300 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
6301 to use dynamic_prop::kind.
6302
064d9cb9
SM
63032020-07-12 Simon Marchi <simon.marchi@efficios.com>
6304
6305 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
6306 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
6307 to get the bound property's kind and check against
6308 PROP_UNDEFINED.
6309
5537ddd0
SM
63102020-07-12 Simon Marchi <simon.marchi@efficios.com>
6311
6312 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
6313 all callers to use type::range_bounds followed by
6314 dynamic_prop::{low,high}.
6315
8c2e4e06
SM
63162020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6317
6318 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
6319 const_val, set_const_val, baton, set_locexpr, set_loclist,
6320 set_addr_offset, variant_parts, set_variant_parts,
6321 original_type, set_original_type>: New methods.
6322 <kind>: Rename to...
6323 <m_kind>: ... this. Update all users to use the new methods
6324 instead.
6325 <data>: Rename to...
6326 <m_data>: ... this. Update all users to use the new methods
6327 instead.
6328
7c6f2712
SM
63292020-07-12 Simon Marchi <simon.marchi@efficios.com>
6330
6331 * gdbtypes.c (get_discrete_bounds): Return failure if
6332 the range type's bounds are not both defined and constant
6333 values.
6334 (get_array_bounds): Update comment. Remove undefined bound check.
6335
599088e3
SM
63362020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6337
6338 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
6339 the type::bounds method directly.
6340
c4dfcb36
SM
63412020-07-12 Simon Marchi <simon.marchi@efficios.com>
6342
6343 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
6344 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
6345 are used to set the range type's bounds to use set_bounds.
6346
0a278aa7
PW
63472020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6348
6349 * exec.c (_initialize_exec): Update exec-file-mismatch help.
6350
cce20f10
PA
63512020-07-10 Pedro Alves <pedro@palves.net>
6352
6353 * gdbthread.h (inferior_ref): Define.
6354 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
6355 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
6356 * thread.c
6357 (scoped_restore_current_thread::restore):
6358 Adjust to gdb::ref_ptr.
6359 (scoped_restore_current_thread::~scoped_restore_current_thread):
6360 Remove manual decref handling.
6361 (scoped_restore_current_thread::scoped_restore_current_thread):
6362 Adjust to use
6363 inferior_ref::new_reference/thread_info_ref::new_reference.
6364 Incref the thread before calling get_frame_id instead of after.
6365 Let TARGET_CLOSE_ERROR propagate.
6366
6d7aa592
PA
63672020-07-10 Pedro Alves <pedro@palves.net>
6368
6369 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
6370 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
6371 NOT_AVAILABLE_ERROR.
6372 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
6373 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
6374
b3e3a4c1
SM
63752020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6376 Pedro Alves <pedro@palves.net>
6377
6378 PR gdb/26199
6379 * infrun.c (threads_are_resumed_pending_p): Delete.
6380 (do_target_wait): Remove threads_are_executing and
6381 threads_are_resumed_pending_p checks from the inferior_matches
6382 lambda. Update comments.
6383
d6cc5d98
PA
63842020-07-10 Pedro Alves <pedro@palves.net>
6385
6386 PR gdb/26199
6387 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
6388 executing threads.
6389
7d3badc6
PA
63902020-07-10 Pedro Alves <pedro@palves.net>
6391
6392 PR gdb/26199
6393 * infrun.c (handle_no_resumed): Handle multiple targets.
6394
42bd97a6
PA
63952020-07-10 Pedro Alves <pedro@palves.net>
6396
6397 PR gdb/26199
6398 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
6399 target_is_async_p.
6400
43667cc6
PA
64012020-07-10 Pedro Alves <pedro@palves.net>
6402
6403 PR gdb/26199
6404 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
6405 threads, not all threads.
6406
96118d11
PA
64072020-07-10 Pedro Alves <pedro@palves.net>
6408
6409 PR gdb/26199
6410 * remote.c (remote_target::open_1): Pass remote target pointer as
6411 data to create_async_event_handler.
6412 (remote_async_inferior_event_handler): Mark async event handler
6413 before returning if the remote target still has either pending
6414 events or unacknowledged notifications.
6415
54904d81
JB
64162020-07-10 John Baldwin <jhb@FreeBSD.org>
6417
6418 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
6419 declaration.
6420 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
6421 function.
6422
f37e5866
JB
64232020-07-09 John Baldwin <jhb@FreeBSD.org>
6424
6425 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
6426 inferior_ptid.
6427
fc238d4a
JB
64282020-07-09 John Baldwin <jhb@FreeBSD.org>
6429
6430 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
6431 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
6432 AT_FREEBSD_PS_STRINGS.
6433
6e2469ff
HD
64342020-07-08 Hannes Domani <ssbssa@yahoo.de>
6435
6436 * auto-load.c (auto_load_objfile_script_1): Convert drive part
6437 of debugfile path on Windows.
6438
d1076c41
JB
64392020-07-08 John Baldwin <jhb@FreeBSD.org>
6440
6441 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
6442 argument to 'data'.
6443
15f3b077
TT
64442020-07-08 Tom Tromey <tromey@adacore.com>
6445
6446 * ada-lang.c (ada_exception_message_1): Use read_memory.
6447
9fc501fd
AB
64482020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6449
6450 PR python/22748
6451 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
6452 special handling for inline frames.
6453 * findvar.c (value_of_register_lazy): Skip inline frames when
6454 creating lazy register values.
6455 * frame.c (frame_id_computed_p): Delete definition.
6456 * frame.h (frame_id_computed_p): Delete declaration.
6457
64cb3757
AB
64582020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6459
6460 * NEWS: Mention additions to Python API.
6461 * python/py-arch.c (archpy_register_groups): New function.
6462 (arch_object_methods): Add 'register_groups' method.
6463 * python/py-registers.c (reggroup_iterator_object): New struct.
6464 (reggroup_object): New struct.
6465 (gdbpy_new_reggroup): New function.
6466 (gdbpy_reggroup_to_string): New function.
6467 (gdbpy_reggroup_name): New function.
6468 (gdbpy_reggroup_iter): New function.
6469 (gdbpy_reggroup_iter_next): New function.
6470 (gdbpy_new_reggroup_iterator): New function
6471 (gdbpy_initialize_registers): Register new types.
6472 (reggroup_iterator_object_type): Define new Python type.
6473 (gdbpy_reggroup_getset): New static global.
6474 (reggroup_object_type): Define new Python type.
6475 * python/python-internal.h
6476
0f767f94
AB
64772020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6478
6479 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
6480 * python/py-arch.c (archpy_registers): New function.
6481 (arch_object_methods): Add 'registers' method.
6482 * python/py-registers.c: New file.
6483 * python/python-internal.h
6484 (gdbpy_new_register_descriptor_iterator): Declare.
6485 (gdbpy_initialize_registers): Declare.
6486 * python/python.c (do_start_initialization): Call
6487 gdbpy_initialize_registers.
6488 * NEWS: Mention additions to the Python API.
6489
87dbc774
AB
64902020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6491
6492 * NEWS: Mention new Python API method.
6493 * python/py-unwind.c (pending_framepy_architecture): New function.
6494 (pending_frame_object_methods): Add architecture method.
6495
3bc98c0c
AB
64962020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6497
6498 * gdbarch.c: Regenerate.
6499 * gdbarch.h: Regenerate.
6500 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
6501 (gdbarch_data): Use internal_error for the case where
6502 deprecated_set_gdbarch_data was originally needed.
6503 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
6504 and use passed in obstack.
6505 (libunwind_frame_set_descr): Should no longer get back NULL from
6506 gdbarch_data.
6507 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
6508 type.
6509 * user-regs.c (user_regs_init): Update parameters, and use passed
6510 in obstack.
6511 (user_reg_add): Should no longer get back NULL from gdbarch_data.
6512 (_initialize_user_regs): Register as a pre-init gdbarch data type.
6513
d8cc8af6
TV
65142020-07-06 Tom de Vries <tdevries@suse.de>
6515
6516 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
6517 End-Of-Sequence in lte_is_less_than.
6518 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
6519 "gdb: Don't reorder line table entries too much when sorting".
6520
947f7597
TV
65212020-07-06 Tom de Vries <tdevries@suse.de>
6522
6523 PR tui/26205
6524 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
6525
1e7c1b22
TV
65262020-07-05 Tom de Vries <tdevries@suse.de>
6527
6528 PR build/26187
6529 * inferior.h (struct infcall_suspend_state_deleter): If available, use
6530 std::uncaught_exceptions instead of deprecated
6531 std::uncaught_exception.
6532
a36158ec
SM
65332020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6534
6535 * macroexp.h (macro_stringify): Return
6536 gdb::unique_xmalloc_ptr<char>.
6537 * macroexp.c (macro_stringify): Likewise.
6538 * macrotab.c (fixup_definition): Update.
6539
14d960c8
SM
65402020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6541
6542 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
6543 (lex_one_token): Update.
6544 * macroexp.c (struct macro_buffer) <release>: Return
6545 gdb::unique_xmalloc_ptr<char>.
6546 (macro_stringify): Update.
6547 (macro_expand): Update.
6548 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
6549 * macroexp.h (macro_expand_next): Likewise.
6550
211d5b1c
SM
65512020-07-02 Simon Marchi <simon.marchi@efficios.com>
6552
6553 * macroexp.h (macro_lookup_ftype): Remove.
6554 (macro_expand, macro_expand_once, macro_expand_next): Remove
6555 lookup function parameters, add scope parameter.
6556 * macroexp.c (scan, substitute_args, expand, maybe_expand,
6557 macro_expand, macro_expand_once, macro_expand_next): Likewise.
6558 * macroscope.h (standard_macro_lookup): Change parameter type
6559 to macro_scope.
6560 * macroscope.c (standard_macro_lookup): Likewise.
6561 * c-exp.y (lex_one_token): Update.
6562 * macrocmd.c (macro_expand_command): Likewise.
6563 (macro_expand_once_command): Likewise.
6564
b1a35af2
SM
65652020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6566
6567 * inf-loop.c (inferior_event_handler): Remove client_data param.
6568 * inf-loop.h (inferior_event_handler): Likewise.
6569 * infcmd.c (step_1): Adjust.
6570 * infrun.c (proceed): Adjust.
6571 (fetch_inferior_event): Remove client_data param.
6572 (infrun_async_inferior_event_handler): Adjust.
6573 * infrun.h (fetch_inferior_event): Remove `void *` param.
6574 * linux-nat.c (handle_target_event): Adjust.
6575 * record-btrace.c (record_btrace_handle_async_inferior_event):
6576 Adjust.
6577 * record-full.c (record_full_async_inferior_event_handler):
6578 Adjust.
6579 * remote.c (remote_async_inferior_event_handler): Adjust.
6580
1cdf9e33
TT
65812020-07-01 Tom Tromey <tom@tromey.com>
6582
6583 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
6584 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
6585
32c1e210
TT
65862020-07-01 Tom Tromey <tom@tromey.com>
6587
6588 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
6589 tui_gen_win_info.
6590 (tui_win_info::make_window): Merge with
6591 tui_gen_win_info::make_window.
6592 (tui_win_info::make_visible): Move from tui_gen_win_info.
6593 * tui/tui-win.c (tui_win_info::max_width): Move from
6594 tui_gen_win_info.
6595 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
6596 type.
6597 <window_factory>: Likewise.
6598 * tui/tui-layout.c (tui_win_info::resize): Move from
6599 tui_gen_win_info.
6600 (make_standard_window): Change return type.
6601 (get_locator_window, tui_get_window_by_name): Likewise.
6602 (tui_layout_window::apply): Remove a cast.
6603 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
6604 (struct tui_win_info): Merge with tui_gen_win_info.
6605 (struct tui_gen_win_info): Remove.
6606
a30cb6da
TT
66072020-07-01 Tom Tromey <tom@tromey.com>
6608
6609 * tui/tui-stack.h (struct tui_locator_window): Derive from
6610 tui_win_info.
6611 <do_scroll_horizontal, do_scroll_vertical>: New methods.
6612 <can_box>: New method.
6613
1eb2161f
TT
66142020-07-01 Tom Tromey <tom@tromey.com>
6615
6616 * tui/tui-stack.h (struct tui_locator_window): Remove body.
6617
7134f2eb
TT
66182020-07-01 Tom Tromey <tom@tromey.com>
6619
6620 * tui/tui-regs.c (tui_data_window::display_registers_from)
6621 (tui_data_window::display_registers_from)
6622 (tui_data_window::first_data_item_displayed)
6623 (tui_data_window::delete_data_content_windows): Update.
6624 (tui_data_window::refresh_window, tui_data_window::no_refresh):
6625 Remove.
6626 (tui_data_window::check_register_values): Update.
6627 (tui_data_item_window::rerender): Add parameters. Update.
6628 (tui_data_item_window::refresh_window): Remove.
6629 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
6630 virtual.
6631 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
6632 tui_gen_win_info.
6633 <refresh_window, max_height, min_height>: Remove.
6634 <rerender>: Add parameters.
6635 <x, y, visible>: New members.
6636 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
6637 <m_item_width>: New member.
6638
22b7b041
TT
66392020-07-01 Tom Tromey <tom@tromey.com>
6640
6641 * tui/tui-regs.c (tui_data_window::show_register_group)
6642 (tui_data_window::check_register_values): Update.
6643 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
6644 from item_no.
6645
c9753adb
TT
66462020-07-01 Tom Tromey <tom@tromey.com>
6647
6648 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
6649 useless "if".
6650
9ab26b4a
TT
66512020-07-01 Tom Tromey <tom@tromey.com>
6652
6653 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
6654 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
6655
e555083f
TT
66562020-07-01 Tom Tromey <tom@tromey.com>
6657
6658 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
6659 * tui/tui-winsource.h (enum tui_line_or_address_kind)
6660 (struct tui_line_or_address): Move from tui-data.h.
6661 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
6662 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
6663 (tui_cmd_window, tui_source_window_base, tui_source_window)
6664 (tui_disasm_window): Don't declare.
6665 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
6666 to tui-winsource.h.
6667 (SINGLE_KEY): Move to tui-stack.c.
6668
7a02bab7
TT
66692020-07-01 Tom Tromey <tom@tromey.com>
6670
6671 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
6672 std::string.
6673 * tui/tui-regs.c (class tab_expansion_file): New.
6674 (tab_expansion_file::write): New method.
6675 (tui_register_format): Change return type. Use
6676 tab_expansion_file.
6677 (tui_get_register, tui_data_window::display_registers_from)
6678 (tui_data_item_window::rerender): Update.
6679 * tui/tui-io.h (tui_expand_tabs): Don't declare.
6680 * tui/tui-io.c (tui_expand_tabs): Remove.
6681
ea68593b
TT
66822020-07-01 Tom Tromey <tom@tromey.com>
6683
6684 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
6685
a8caed5d
FS
66862020-07-01 Fangrui Song <maskray@google.com>
6687
6688 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
6689
9cdf9820
AKS
66902020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6691
6692 * dwarf2/read.c (set_die_type): Removed conditions to restrict
6693 forms for DW_AT_associated and DW_AT_allocated attributes,
6694 which is already checked in function attr_to_dynamic_prop.
6695
a1520ad8
TT
66962020-06-30 Tom Tromey <tromey@adacore.com>
6697
6698 * dwarf2/read.c (quirk_rust_enum): Correctly call
6699 alloc_rust_variant for default-less enum.
6700
5ac58899
TT
67012020-06-30 Tom Tromey <tromey@adacore.com>
6702
6703 PR build/26183:
6704 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
6705 gdb::to_string.
6706
19b187a9
SM
67072020-06-29 Simon Marchi <simon.marchi@efficios.com>
6708
6709 * gdbarch.sh (displaced_step_copy_insn): Update doc.
6710 * gdbarch.h: Re-generate.
6711
cd4c4c07
TT
67122020-06-28 Tom Tromey <tom@tromey.com>
6713
6714 * command.h (cmd_types): Remove.
6715 (cmd_type): Don't declare.
6716 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
6717 typedef.
6718 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
6719 * cli/cli-decode.c (cmd_type): Remove.
6720
05779d57
PA
67212020-06-27 Pedro Alves <palves@redhat.com>
6722
6723 * fork-child.c (prefork_hook): Adjust.
6724 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
6725 Delete.
6726 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
6727 * inferior.c (inferior::set_tty, inferior::tty): New methods.
6728 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
6729 Remove declarations.
6730 (struct inferior) <set_tty, tty>: New methods.
6731 (struct inferior) <terminal>: Rename to ...
6732 (struct inferior) <m_terminal>: ... this and make private.
6733 * main.c (captured_main_1): Adjust.
6734 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
6735 (mi_cmd_inferior_tty_show): Adjust.
6736 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
6737 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
6738
1776e3e5
NA
67392020-06-26 Nick Alcock <nick.alcock@oracle.com>
6740
6741 * configure.ac: Add --enable-libctf: handle --disable-static
6742 properly.
6743 * acinclude.m4: sinclude ../config/enable.m4.
6744 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
6745 (LIBCTF): Substitute in.
6746 (CTF_DEPS): New, likewise.
6747 (CLIBS): libctf needs symbols from libbfd: move earlier.
6748 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
6749 flags.
6750 * ctfread.c: Surround in ENABLE_LIBCTF.
6751 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
6752 * configure: Regenerate.
6753 * config.in: Likewise.
6754
58373b80
SM
67552020-06-25 Simon Marchi <simon.marchi@efficios.com>
6756
6757 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
6758
277474ee
SM
67592020-06-25 Simon Marchi <simon.marchi@efficios.com>
6760
6761 * inferior.h (struct inferior) <terminal>: Change type to
6762 gdb::unique_xmalloc_ptr<char>.
6763 * inferior.c (inferior::~inferior): Don't free inf->terminal.
6764 * infcmd.c (set_inferior_io_terminal): Don't free terminal
6765 field, adjust to unique pointer.
6766 (get_inferior_io_terminal): Adjust to unique pointer.
6767
6d74da72
AB
67682020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6769
6770 * riscv-tdep.c (riscv_print_registers_info): Loop over all
6771 registers, not just the known core set of registers.
6772
2e52d038
AB
67732020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6774
6775 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
6776 fflags, frm, and fcsr registers.
6777 (riscv_register_reggroup_p): Remove unknown CSRs from save and
6778 restore groups.
6779 (riscv_tdesc_unknown_reg): New function.
6780 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
6781 tdesc_use_registers.
6782 * riscv-tdep.h (struct gdbarch_tdep): Add
6783 unknown_csrs_first_regnum, unknown_csrs_count,
6784 duplicate_fflags_regnum, duplicate_frm_regnum, and
6785 duplicate_fcsr_regnum fields.
6786
be64fd07
AB
67872020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6788
6789 * target-descriptions.c (tdesc_use_registers): Add new parameter a
6790 callback, use the callback (when not null) to help number unknown
6791 registers.
6792 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
6793 (tdesc_use_registers): Add extra parameter to declaration.
6794
3b9fce96
AB
67952020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6796
6797 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
6798 in the file.
6799 (class riscv_pending_register_alias): Likewise.
6800 (riscv_register_feature::register_info): Change 'required_p' field
6801 to 'required', and change its type. Add 'check' member function.
6802 (riscv_register_feature::register_info::check): Define new member
6803 function.
6804 (riscv_xreg_feature): Change initialisation of 'required' field.
6805 (riscv_freg_feature): Likewise.
6806 (riscv_virtual_feature): Likewise.
6807 (riscv_csr_feature): Likewise.
6808 (riscv_check_tdesc_feature): Take extra parameter, the csr
6809 tdesc_feature, rewrite the function to use the new
6810 riscv_register_feature::register_info::check function.
6811 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
6812
865bad26
AB
68132020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6814
6815 * features/Makefile: Remove all references to the deleted files
6816 below.
6817 * features/riscv/32bit-csr.c: Deleted.
6818 * features/riscv/32bit-csr.xml: Deleted.
6819 * features/riscv/64bit-csr.c: Deleted.
6820 * features/riscv/64bit-csr.xml: Deleted.
6821 * features/riscv/rebuild-csr-xml.sh: Deleted.
6822
ed69cbc8
AB
68232020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6824
6825 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
6826 whitespace error for declaration of names member variable.
6827 (struct riscv_register_feature): Add new prefer_first_name member
6828 variable, and fix whitespace error in declaration of registers.
6829 (riscv_xreg_feature): Initialize prefer_first_name field.
6830 (riscv_freg_feature): Likewise.
6831 (riscv_virtual_feature): Likewise.
6832 (riscv_csr_feature): Likewise.
6833 (riscv_register_name): Expand on comments. Remove register name
6834 modifications for CSR and virtual registers.
6835
4445e8f5
AB
68362020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6837
6838 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
6839 errors.
6840
767a879e
AB
68412020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6842
6843 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
6844 riscv-opc.h.
6845 (class riscv_pending_register_alias): New class.
6846 (riscv_check_tdesc_feature): Take vector of pending aliases and
6847 populate it as appropriate.
6848 (riscv_setup_register_aliases): Delete.
6849 (riscv_gdbarch_init): Create vector of pending aliases and pass it
6850 to riscv_check_tdesc_feature in all cases. Use the vector to
6851 create the register aliases.
6852
bb6e55f3
RO
68532020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6854
6855 * sol2-tdep.c (sol2_static_transform_name): Remove.
6856 (sol2_init_abi): Don't register it.
6857 * gdbarch.sh (static_transform_name): Remove.
6858 * gdbarch.c, gdbarch.h: Regenerate.
6859
6860 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
6861 gdbarch_static_transform_name.
6862 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
6863 * stabsread.c (define_symbol) <'X'>: Remove.
6864 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
6865 handling.
6866 <'V'>: Likewise.
6867 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
6868 <'S'>: Remove call to gdbarch_static_transform_name.
6869
c6d36836
RO
68702020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6871
6872 * procfs.c (procfs_pre_trace): New function.
6873 (procfs_target::create_inferior): Pass it to fork_inferior.
6874
a7e6196b
RO
68752020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6876
6877 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
6878 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
6879 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
6880 sol2-tdep.o, sparc-sol2-tdep.o.
6881 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
6882 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
6883 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
6884 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
6885
d412e696
RO
68862020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6887
6888 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
6889 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
6890 Call sol2_init_abi.
6891 Remove calls to set_gdbarch_skip_solib_resolver,
6892 set_gdbarch_core_pid_to_str.
6893 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
6894 (i386_sol2_static_transform_name): Remove.
6895 (i386_sol2_init_abi): Call sol2_init_abi.
6896 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6897 set_gdbarch_static_transform_name,
6898 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6899 Use sol2_sigtramp_p.
6900 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
6901 (sol2_sigtramp_p): New function.
6902 (sol2_static_transform_name): New function.
6903 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
6904 (sol2_init_abi): New function.
6905 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
6906 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
6907 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
6908 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
6909 (sparc_sol2_static_transform_name): Remove.
6910 (sparc32_sol2_init_abi): Call sol2_init_abi.
6911 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6912 set_gdbarch_static_transform_name,
6913 set_gdbarch_skip_solib_resolver,
6914 set_gdbarch_core_pid_to_str.
6915 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
6916 (sparc_sol2_static_transform_name): Remove
6917 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
6918 call sol2_sigtramp_p.
6919 (sparc64_sol2_init_abi): Call sol2_init_abi.
6920 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6921 set_gdbarch_static_transform_name,
6922 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6923
a8654e7d
PW
69242020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6925
6926 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
6927 * exec.c (validate_exec_file): If from_tty, set both
6928 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
6929 * symfile.c (symbol_file_add_with_addrs): if always_confirm
6930 and from_tty, unconditionally ask a confirmation.
6931
caa7fd04
AB
69322020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6933
6934 * target-descriptions.c (tdesc_architecture_name): Protect against
6935 NULL pointer dereference.
6936 (maint_print_xml_tdesc_cmd): New function.
6937 (_initialize_target_descriptions): Register new 'maint print
6938 xml-tdesc' command and give it the filename completer.
6939 * NEWS: Mention new 'maint print xml-tdesc' command.
6940
fbf42f4e
AB
69412020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6942
6943 * target-descriptions.c (class tdesc_compatible_info): New class.
6944 (struct target_desc): Change type of compatible vector.
6945 (tdesc_compatible_p): Update for change in type of
6946 target_desc::compatible.
6947 (tdesc_compatible_info_list): New function.
6948 (tdesc_compatible_info_arch_name): New function.
6949 (tdesc_add_compatible): Update for change in type of
6950 target_desc::compatible.
6951 (print_c_tdesc::visit_pre): Likewise.
6952
20821f4e
AB
69532020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6954
6955 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
6956 whitespace to underscore.
6957 (maint_print_c_tdesc_cmd): Use fake filename for target
6958 descriptions that came from the target.
6959 (_initialize_target_descriptions): Add filename command completion
6960 for 'maint print c-tdesc'.
6961
1fb5ee62
SM
69622020-06-23 Simon Marchi <simon.marchi@efficios.com>
6963
6964 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
6965 lines.
6966
fc3ecb3e
SM
69672020-06-23 Simon Marchi <simon.marchi@efficios.com>
6968
6969 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
6970 lines.
6971 (dwarf2_find_location_expression): Likewise.
6972 (call_site_parameter_matches): Likewise.
6973 (dwarf2_compile_expr_to_ax): Likewise.
6974 (disassemble_dwarf_expression): Likewise.
6975 (loclist_describe_location): Likewise.
6976
236ef034
PA
69772020-06-23 Pedro Alves <palves@redhat.com>
6978
6979 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
6980 progspace-and-thread.h. Include scoped-mock-context.h instead.
6981 (register_to_value_test): Use scoped_mock_context.
6982 * regcache.c: Include "scoped-mock-context.h".
6983 (cooked_read_test): Don't error out if a target is already pushed.
6984 Use scoped_mock_context. Adjust.
6985 * scoped-mock-context.h: New file.
6986
39e7ecca
AB
69872020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
6988
6989 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
6990 initializer.
6991 (ada_language::is_string_type_p): New member function.
6992 * c-lang.c (c_language_data): Delete la_is_string_type_p
6993 initializer.
6994 (cplus_language_data): Likewise.
6995 (asm_language_data): Likewise.
6996 (minimal_language_data): Likewise.
6997 * d-lang.c (d_language_data): Likewise.
6998 * f-lang.c (f_is_string_type_p): Delete function, implementation
6999 moved to f_language::is_string_type_p.
7000 (f_language_data): Delete la_is_string_type_p initializer.
7001 (f_language::is_string_type_p): New member function,
7002 implementation from f_is_string_type_p.
7003 * go-lang.c (go_is_string_type_p): Delete function, implementation
7004 moved to go_language::is_string_type_p.
7005 (go_language_data): Delete la_is_string_type_p initializer.
7006 (go_language::is_string_type_p): New member function,
7007 implementation from go_is_string_type_p.
7008 * language.c (language_defn::is_string_type_p): Define new member
7009 function.
7010 (default_is_string_type_p): Make static, add comment copied from
7011 header file.
7012 (unknown_language_data): Delete la_is_string_type_p initializer.
7013 (unknown_language::is_string_type_p): New member function.
7014 (auto_language_data): Delete la_is_string_type_p initializer.
7015 (auto_language::is_string_type_p): New member function.
7016 * language.h (language_data): Delete la_is_string_type_p field.
7017 (language_defn::is_string_type_p): Declare new function.
7018 (default_is_string_type_p): Delete desclaration, move comment to
7019 definition.
7020 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
7021 moved to m2_language::is_string_type_p.
7022 (m2_language_data): Delete la_is_string_type_p initializer.
7023 (m2_language::is_string_type_p): New member function,
7024 implementation from m2_is_string_type_p.
7025 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
7026 initializer.
7027 * opencl-lang.c (opencl_language_data): Likewise.
7028 * p-lang.c (pascal_is_string_type_p): Delete function,
7029 implementation moved to pascal_language::is_string_type_p.
7030 (pascal_language_data): Delete la_is_string_type_p initializer.
7031 (pascal_language::is_string_type_p): New member function,
7032 implementation from pascal_is_string_type_p.
7033 * rust-lang.c (rust_is_string_type_p): Delete function,
7034 implementation moved to rust_language::is_string_type_p.
7035 (rust_language_data): Delete la_is_string_type_p initializer.
7036 (rust_language::is_string_type_p): New member function,
7037 implementation from rust_is_string_type_p.
7038 * valprint.c (val_print_scalar_or_string_type_p): Update call to
7039 is_string_type_p.
7040
4ffc13fb
AB
70412020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7042
7043 * ada-lang.c (ada_language_data): Delete la_print_typedef
7044 initializer.
7045 (ada_language::print_typedef): New member function.
7046 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
7047 (cplus_language_data): Likewise.
7048 (asm_language_data): Likewise.
7049 (minimal_language_data): Likewise.
7050 * d-lang.c (d_language_data): Likewise.
7051 * f-lang.c (f_language_data): Likewise.
7052 (f_language::print_typedef): New member function.
7053 * go-lang.c (go_language_data): Delete la_print_typedef
7054 initializer.
7055 * language.c (language_defn::print_typedef): Define member
7056 function.
7057 (unknown_language_data): Delete la_print_typedef initializer.
7058 (unknown_language::print_typedef): New member function.
7059 (auto_language_data): Delete la_print_typedef initializer.
7060 (auto_language::print_typedef): New member function.
7061 * language.h (language_data): Delete la_print_typedef field.
7062 (language_defn::print_typedef): Declare new member function.
7063 (LA_PRINT_TYPEDEF): Update call to print_typedef.
7064 (default_print_typedef): Delete declaration.
7065 * m2-lang.c (m2_language_data): Delete la_print_typedef
7066 initializer.
7067 (m2_language::print_typedef): New member function.
7068 * objc-lang.c (objc_language_data): Delete la_print_typedef
7069 initializer.
7070 * opencl-lang.c (opencl_language_data): Likewise.
7071 * p-lang.c (pascal_language_data): Likewise.
7072 (pascal_language::print_typedef): New member function.
7073 * rust-lang.c (rust_print_typedef): Delete function,
7074 implementation moved to rust_language::print_typedef.
7075 (rust_language): Delete la_print_typedef initializer.
7076 (rust_language::print_typedef): New member function,
7077 implementation from rust_print_typedef.
7078 * typeprint.c (default_print_typedef): Delete.
7079
d711ee67
AB
70802020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7081
7082 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
7083 (ada_language::printstr): New member function.
7084 * c-lang.c (c_language_data): Delete la_printstr initializer.
7085 (cplus_language_data): Likewise.
7086 (asm_language_data): Likewise.
7087 (minimal_language_data): Likewise.
7088 * d-lang.c (d_language_data): Likewise.
7089 * f-lang.c (f_printstr): Rename to f_language::printstr.
7090 (f_language_data): Delete la_printstr initializer.
7091 (f_language::printstr): New member function, implementation from
7092 f_printstr.
7093 * go-lang.c (go_language_data): Delete la_printstr initializer.
7094 * language.c (language_defn::printstr): Define new member
7095 function.
7096 (unk_lang_printstr): Delete.
7097 (unknown_language_data): Delete la_printstr initializer.
7098 (unknown_language::printstr): New member function.
7099 (auto_language_data): Delete la_printstr initializer.
7100 (auto_language::printstr): New member function.
7101 * language.h (language_data): Delete la_printstr field.
7102 (language_defn::printstr): Declare new member function.
7103 (LA_PRINT_STRING): Update call to printstr.
7104 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
7105 (m2_language_data): Delete la_printstr initializer.
7106 (m2_language::printstr): New member function, implementation from
7107 m2_printstr.
7108 * objc-lang.c (objc_language_data): Delete la_printstr
7109 initializer.
7110 * opencl-lang.c (opencl_language_data): Likewise.
7111 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
7112 (pascal_language_data): Delete la_printstr initializer.
7113 (pascal_language::printstr): New member function, implementation
7114 from pascal_printstr.
7115 * p-lang.h (pascal_printstr): Delete declaration.
7116 * rust-lang.c (rust_printstr): Update header comment.
7117 (rust_language_data): Delete la_printstr initializer.
7118 (rust_language::printstr): New member function.
7119
52b50f2c
AB
71202020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7121
7122 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
7123 (ada_language::printchar): New member function.
7124 * c-lang.c (c_language_data): Delete la_printchar initializer.
7125 (cplus_language_data): Likewise.
7126 (asm_language_data): Likewise.
7127 (minimal_language_data): Likewise.
7128 * d-lang.c (d_language_data): Likewise.
7129 * f-lang.c (f_printchar): Rename to f_language::printchar.
7130 (f_language_data): Delete la_printchar initializer.
7131 (f_language::printchar): New member function, implementation from
7132 f_printchar.
7133 * go-lang.c (go_language_data): Delete la_printchar initializer.
7134 * language.c (unk_lang_printchar): Delete.
7135 (language_defn::printchar): Define new member function.
7136 (unknown_language_data): Delete la_printchar initializer.
7137 (unknown_language::printchar): New member function.
7138 (auto_language_data): Delete la_printchar initializer.
7139 (auto_language::printchar): New member function.
7140 * language.h (language_data): Delete la_printchar field.
7141 (language_defn::printchar): Declare new member function.
7142 (LA_PRINT_CHAR): Update call to printchar.
7143 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
7144 (m2_language::printchar): New member function.
7145 * objc-lang.c (objc_language_data): Delete la_printchar
7146 initializer.
7147 * opencl-lang.c (opencl_language_data): Likewise.
7148 * p-lang.c (pascal_language_data): Delete la_printchar
7149 initializer.
7150 (pascal_language::printchar): New member function.
7151 * rust-lang.c (rust_printchar): Rename to
7152 rust_language::printchar.
7153 (rust_language_data): Delete la_printchar initializer.
7154 (rust_language::printchar): New member function, implementation
7155 from rust_printchar.
7156
ec8cec5b
AB
71572020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7158
7159 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
7160 (ada_language_data): Delete la_emitchar initializer.
7161 (ada_language::emitchar): New member function, implementation from
7162 emit_char.
7163 * c-lang.c (c_language_data): Delete la_emitchar initializer.
7164 (cplus_language_data): Likewise.
7165 (asm_language_data): Likewise.
7166 (minimal_language_data): Likewise.
7167 * d-lang.c (d_language_data): Likewise.
7168 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
7169 (f_language_data): Delete la_emitchar initializer.
7170 (f_language::emitchar): New member function, implementation from
7171 f_emit_char.
7172 * go-lang.c (go_language_data): Delete la_emitchar initializer.
7173 * language.c (unk_lang_emit_char): Delete.
7174 (language_defn::emitchar): New member function definition.
7175 (unknown_language_data): Delete la_emitchar initializer.
7176 (unknown_language::emitchar): New member function.
7177 (auto_language_data): Delete la_emitchar initializer.
7178 (auto_language::emitchar): New member function.
7179 * language.h (language_data): Delete la_emitchar field.
7180 (language_defn::emitchar): New member field declaration.
7181 (LA_EMIT_CHAR): Update call to emitchar.
7182 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
7183 (m2_language_data): Delete la_emitchar initializer.
7184 (m2_language::emitchar): New member function, implementation from
7185 m2_emit_char.
7186 * objc-lang.c (objc_language_data): Delete la_emitchar
7187 initializer.
7188 * opencl-lang.c (opencl_language_data): Likewise.
7189 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
7190 (pascal_language_data): Delete la_emitchar initializer.
7191 (pascal_language::emitchar): New member function, implementation
7192 from pascal_emit_char.
7193 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
7194 (rust_language_data): Delete la_emitchar initializer.
7195 (rust_language::emitchar): New member function, implementation
7196 from rust_emitchar.
7197
1bf9c363
AB
71982020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7199
7200 * ada-lang.c (resolve): Rename to ada_language::post_parser.
7201 (ada_language_data): Delete la_post_parser initializer.
7202 (ada_language::post_parser): New member function.
7203 * c-lang.c (c_language_data): Delete la_post_parser initializer.
7204 (cplus_language_data): Likewise.
7205 (asm_language_data): Likewise.
7206 (minimal_language_data): Likewise.
7207 * d-lang.c (d_language_data): Likewise.
7208 * f-lang.c (f_language_data): Likewise.
7209 * go-lang.c (go_language_data): Likewise.
7210 * language.c (unknown_language_data): Likewise.
7211 (auto_language_data): Likewise.
7212 * language.h (language_data): Delete la_post_parser field.
7213 (language_defn::post_parser): New member function.
7214 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
7215 * objc-lang.c (objc_language_data): Likewise.
7216 * opencl-lang.c (opencl_language_data): Likewise.
7217 * p-lang.c (pascal_language_data): Likewise.
7218 * parse.c (parse_exp_in_context): Update call to post_parser.
7219 (null_post_parser): Delete definition.
7220 * parser-defs.h (null_post_parser): Delete declaration.
7221 * rust-lang.c (rust_language_data): Delete la_post_parser
7222 initializer.
7223
87afa652
AB
72242020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7225
7226 * ada-lang.c (parse): Rename to ada_language::parser.
7227 (ada_language_data): Delete la_parser initializer.
7228 (ada_language::parser): New member function, implementation from
7229 parse.
7230 * c-lang.c (c_language_data): Delete la_parser initializer.
7231 (cplus_language_data): Likewise.
7232 (asm_language_data): Likewise.
7233 (minimal_language_data): Likewise.
7234 * d-lang.c (d_language_data): Likewise.
7235 (d_language::parser): New member function.
7236 * f-lang.c (f_language_data): Delete la_parser initializer.
7237 (f_language::parser): New member function.
7238 * go-lang.c (go_language_data): Delete la_parser initializer.
7239 (go_language::parser): New member function.
7240 * language.c (unk_lang_parser): Delete.
7241 (language_defn::parser): Define new member function.
7242 (unknown_language_data): Delete la_parser initializer.
7243 (unknown_language::parser): New member function.
7244 (auto_language_data): Delete la_parser initializer.
7245 (auto_language::parser): New member function.
7246 * language.h (language_data): Delete la_parser field.
7247 (language_defn::parser): Declare new member function.
7248 * m2-lang.c (m2_language_data): Delete la_parser initializer.
7249 (m2_language::parser): New member function.
7250 * objc-lang.c (objc_language_data): Delete la_parser initializer.
7251 * opencl-lang.c (opencl_language_data): Likewise.
7252 * p-lang.c (pascal_language_data): Likewise.
7253 (pascal_language::parser): New member function.
7254 * parse.c (parse_exp_in_context): Update call to parser.
7255 * rust-lang.c (rust_language_data): Delete la_parser initializer.
7256 (rust_language::parser): New member function.
7257
37825800
AB
72582020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7259
7260 * top.c (print_gdb_configuration): Print --with-python-libdir
7261 configuration value.
7262
5b860c93
PW
72632020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7264
7265 * NEWS: Mention change to the alias command.
7266
cf00cd6f
PW
72672020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7268
7269 * cli/cli-cmds.c (lookup_cmd_for_default_args)
7270 (alias_command_completer)
7271 (make_alias_options_def_group): New functions.
7272 (alias_opts, alias_option_defs): New struct and array.
7273 (alias_usage_error): Update usage.
7274 (alias_command): Handles optional DEFAULT-ARGS... arguments.
7275 Use option framework.
7276 (_initialize_cli_cmds): Update alias command help.
7277 Update aliases command help.
7278 (show_user):
7279 Add NULL for new default_args lookup_cmd argument.
7280 (valid_command_p): Rename to validate_aliased_command.
7281 Add NULL for new default_args lookup_cmd argument. Verify that the
7282 aliased_command has no default args.
7283 * cli/cli-decode.c (help_cmd): Show aliases definitions.
7284 (lookup_cmd_1, lookup_cmd): New argument default_args.
7285 (add_alias_cmd):
7286 Add NULL for new default_args lookup_cmd argument.
7287 (print_help_for_command): Show default args under the layout
7288 alias some_alias = some_aliased_cmd some_alias_default_arg.
7289 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
7290 xfree default_args in destructor.
7291 * cli/cli-script.c (process_next_line, do_define_command):
7292 Add NULL for new default_args lookup_cmd argument.
7293 * command.h: Declare new default_args argument in lookup_cmd
7294 and lookup_cmd_1.
7295 * completer.c (complete_line_internal_1):
7296 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7297 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
7298 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
7299 Likewise.
7300 * infcmd.c (_initialize_infcmd): Likewise.
7301 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
7302 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
7303 * python/py-param.c (add_setshow_generic): Likewise.
7304 * remote.c (_initialize_remote): Likewise.
7305 * top.c (execute_command): Prepend default_args if command has some.
7306 (set_verbose):
7307 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7308 * tracepoint.c (validate_actionline, encode_actions_1):
7309 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7310
bd920864
TBA
73112020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7312
7313 * jit.c (jit_read_descriptor): Use bool as the return type.
7314 (jit_breakpoint_re_set_internal): Use bool as the return type.
7315 Invert the return value logic; return true if the jit breakpoint
7316 has been successfully initialized.
7317 (jit_inferior_init): Update the call to
7318 jit_breakpoint_re_set_internal.
7319
f8098322
PA
73202020-06-22 Pedro Alves <palves@redhat.com>
7321
7322 PR gdb/25939
7323 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
7324 Use the current inferior instead. Don't return
7325 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
7326 wait again.
7327 * sol-thread.c (sol_thread_target::wait): Don't reference
7328 inferior_ptid.
7329 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
7330 (sol_update_thread_list_callback): Use the current inferior's pid
7331 instead of inferior_ptid.
7332
196535a6
RO
73332020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7334
7335 * procfs.c: Cleanup many comments.
7336
7337 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
7338 (AFTER_WATCHFLAG): Replace by value.
7339
7340 (MAIN_PROC_NAME_FORMAT): Inline ...
7341 (create_procinfo): ... here.
7342
7343 (procfs_debug_inferior): Remove SYS_exec handling.
7344 (syscall_is_exec): Likewise.
7345 (procfs_set_exec_trap): Likewise.
7346
7347 (syscall_is_lwp_exit): Inline in callers.
7348 (syscall_is_exit): Likewise.
7349 (syscall_is_exec): Likewise.
7350 (syscall_is_lwp_create): Likewise.
7351
7352 (invalidate_cache): Remove #if 0 code.
7353
7354 (make_signal_thread_runnable): Remove.
7355 (procfs_target::resume): Remove #if 0 code.
7356
cf6f3e86
RO
73572020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7358
7359 PR gdb/25939
7360 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
7361 call ...
7362 (procfs_target::create_inferior): ... here.
7363
48e9cc84
PW
73642020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7365
7366 * exec.c (validate_exec_file): Ensure the build-id is up to
7367 date by calling reopen_exec_file (that checks file timestamp
7368 to decide to re-read the file).
7369
3922b302
PA
73702020-06-18 Pedro Alves <palves@redhat.com>
7371
7372 PR gdb/25412
7373 * gdbthread.h (delete_thread, delete_thread_silent)
7374 (find_thread_ptid): Update comments.
7375 * thread.c (current_thread_): New global.
7376 (is_current_thread): Move higher, and reimplement.
7377 (inferior_thread): Reimplement.
7378 (set_thread_exited): Use bool. Add assertions.
7379 (add_thread_silent): Simplify thread-reuse handling by always
7380 calling delete_thread.
7381 (delete_thread): Remove intro comment.
7382 (find_thread_ptid): Skip exited threads.
7383 (switch_to_thread_no_regs): Write to current_thread_.
7384 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
7385 INFERIOR_PTID. Clear current_thread_.
7386
6dbdab44
PA
73872020-06-18 Pedro Alves <palves@redhat.com>
7388
7389 * aix-thread.c (pd_update): Use switch_to_thread.
7390
2da4b788
PA
73912020-06-18 Pedro Alves <palves@redhat.com>
7392
7393 * ravenscar-thread.c (ravenscar_thread_target): Update.
7394 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
7395 (ravenscar_thread_target::add_active_thread): ... this. Don't
7396 set m_base_ptid here. Update to avoid referencing inferior_ptid.
7397 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
7398
50838d1b
PA
73992020-06-18 Pedro Alves <palves@redhat.com>
7400
7401 * nat/windows-nat.c (current_windows_thread): Remove.
7402 * nat/windows-nat.h (current_windows_thread): Remove.
7403 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
7404 Adjust.
7405 (display_selectors): Adjust to fetch the current
7406 windows_thread_info based on inferior_ptid.
7407 (fake_create_process): No longer write to current_windows_thread.
7408 (windows_nat_target::get_windows_debug_event):
7409 Don't set inferior_ptid or current_windows_thread.
7410 (windows_nat_target::wait): Adjust to not rely on
7411 current_windows_thread.
7412 (do_initial_windows_stuff): Now a method of windows_nat_target.
7413 Switch to the last_ptid thread.
7414 (windows_nat_target::attach): Adjust.
7415 (windows_nat_target::detach): Use switch_to_no_thread instead of
7416 writing to inferior_ptid directly.
7417 (windows_nat_target::create_inferior): Adjust.
7418
31ce04e9
PA
74192020-06-18 Pedro Alves <palves@redhat.com>
7420
7421 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
7422
1ee1a363
PA
74232020-06-18 Pedro Alves <palves@redhat.com>
7424
7425 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
7426 after creating it, instead of writing to inferior_ptid. Don't
7427 write to inferior_ptid.
7428
6d350754
PA
74292020-06-18 Pedro Alves <palves@redhat.com>
7430
7431 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
7432
5d971d48
PA
74332020-06-18 Pedro Alves <palves@redhat.com>
7434
7435 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
7436 it, instead of writing to inferior_ptid.
7437
86e57d1b
PA
74382020-06-18 Pedro Alves <palves@redhat.com>
7439
7440 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
7441 to inferior_ptid.
7442
f2e1c129
PA
74432020-06-18 Pedro Alves <palves@redhat.com>
7444
7445 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
7446 instead of writing to inferior_ptid directly.
7447
60db1b85
PA
74482020-06-18 Pedro Alves <palves@redhat.com>
7449
7450 * corelow.c (core_target::close): Use switch_to_no_thread instead
7451 of writing to inferior_ptid directly.
7452 (add_to_thread_list, core_target_open): Use switch_to_thread
7453 instead of writing to inferior_ptid directly.
7454
fe7d6a8d
PA
74552020-06-18 Pedro Alves <palves@redhat.com>
7456
7457 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
7458 inferior_ptid.
7459 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
7460 inferior_ptid.
7461 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
7462 inferior_ptid directly.
7463 (darwin_nat_target::init_thread_list): Switch to thread, instead
7464 of writing to inferior_ptid.
7465 (darwin_nat_target::attach): Don't write to inferior_ptid.
7466 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
7467
975f8708
PA
74682020-06-18 Pedro Alves <palves@redhat.com>
7469
7470 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
7471 thread.
7472 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
7473 Instead use switch_to_thread.
7474 (gnu_nat_target::detach): Use switch_to_no_thread
7475 instead of writing to inferior_ptid directly. Used passed-in
7476 inferior instead of looking up the inferior by pid.
7477
1a204730
PA
74782020-06-18 Pedro Alves <palves@redhat.com>
7479
7480 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
7481 inferior_ptid.
7482
ebe84f23
PA
74832020-06-18 Pedro Alves <palves@redhat.com>
7484
7485 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
7486 inferior_ptid.
7487 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
7488 thread.
7489 (nto_procfs_target::detach): Avoid referencing
7490 inferior_ptid. Use switch_to_no_thread instead of writing to
7491 inferior_ptid directly.
7492 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
7493 instead of writing to inferior_ptid directly.
7494 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
7495 to thread.
7496
191f02e5
PA
74972020-06-18 Pedro Alves <palves@redhat.com>
7498
7499 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
7500 after creating it, instead of writing to inferior_ptid.
7501 (gdbsim_target_open): Use switch_to_no_thread instead of writing
7502 to inferior_ptid directly.
7503 (gdbsim_target::wait): Don't write to inferior_ptid.
7504
0ac55310
PA
75052020-06-18 Pedro Alves <palves@redhat.com>
7506
7507 * remote.c (remote_target::remote_notice_new_inferior): Use
7508 switch_to_thread instead of writing to inferior_ptid directly.
7509 (remote_target::add_current_inferior_and_thread): Use
7510 switch_to_no_thread instead of writing to inferior_ptid directly.
7511 (extended_remote_target::attach): Use switch_to_inferior_no_thread
7512 and switch_to_thread instead of using set_current_inferior or
7513 writing to inferior_ptid directly.
7514
5233f39b
PA
75152020-06-18 Pedro Alves <palves@redhat.com>
7516
7517 * tracectf.c (ctf_target_open): Switch to added thread instead of
7518 writing to inferior_ptid directly.
7519 (ctf_target::close): Use switch_to_no_thread instead of writing to
7520 inferior_ptid directly.
7521
087e161b
PA
75222020-06-18 Pedro Alves <palves@redhat.com>
7523
7524 * tracefile-tfile.c (tfile_target_open): Don't write to
7525 inferior_ptid directly, instead switch to added thread.
7526 (tfile_target::close): Use switch_to_no_thread instead of writing
7527 to inferior_ptid directly.
7528
7fb43e53
PA
75292020-06-18 Pedro Alves <palves@redhat.com>
7530
7531 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
7532 (procfs_target::detach): Use switch_to_no_thread
7533 instead of writing to inferior_ptid directly.
7534 (do_attach): Change return type to void. Switch to the added
7535 thread.
7536 (procfs_target::create_inferior): Switch to the added thread.
7537 (procfs_do_thread_registers): Don't write to inferior_ptid.
7538
18493a00
PA
75392020-06-18 Pedro Alves <palves@redhat.com>
7540
7541 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
7542 of writing to inferior_ptid.
7543 (scoped_restore_exited_inferior): Delete.
7544 (handle_vfork_child_exec_or_exit): Simplify using
7545 scoped_restore_current_pspace_and_thread. Use switch_to_thread
7546 instead of writing to inferior_ptid.
7547 (THREAD_STOPPED_BY): Delete.
7548 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
7549 (thread_stopped_by_hw_breakpoint): Delete.
7550 (save_waitstatus): Use
7551 scoped_restore_current_thread+switch_to_thread, and call
7552 target_stopped_by_watchpoint instead of
7553 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
7554 instead of thread_stopped_by_sw_breakpoint, and
7555 target_stopped_by_hw_breakpoint instead of
7556 thread_stopped_by_hw_breakpoint.
7557 (handle_inferior_event)
7558 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
7559 inferior_ptid directly, nor
7560 set_current_inferior/set_current_program_space. Use
7561 switch_to_thread / switch_to_inferior_no_thread instead.
7562
a0776b13
PA
75632020-06-18 Pedro Alves <palves@redhat.com>
7564
7565 * target.c (generic_mourn_inferior): Use switch_to_no_thread
7566 instead of writing to inferior_ptid.
7567
6155c136
PA
75682020-06-18 Pedro Alves <palves@redhat.com>
7569
7570 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
7571 added thread.
7572 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
7573 to the added thread.
7574 (inf_ptrace_target::detach_success): Use switch_to_no_thread
7575 instead of writing to inferior_ptid.
7576
c5316fc6
PA
75772020-06-18 Pedro Alves <palves@redhat.com>
7578
7579 * gdbarch-selftests.c: Include "progspace-and-thread.h".
7580 (register_to_value_test): Mock a program_space too. Heap-allocate
7581 the address space. Don't write to inferior_ptid. Use
7582 switch_to_thread instead.
7583
8df01799
PA
75842020-06-18 Pedro Alves <palves@redhat.com>
7585
7586 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
7587 Delete.
7588 (find_signalled_thread()): New, factored out from
7589 linux_make_corefile_notes and adjusted to handle exited threads.
7590 (linux_make_corefile_notes): Adjust to use the new
7591 find_signalled_thread.
7592
41792d68
PA
75932020-06-18 Pedro Alves <palves@redhat.com>
7594
7595 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
7596 of saving/restoring inferior_ptid.
7597
612f258a
TT
75982020-06-17 Tom Tromey <tom@tromey.com>
7599
7600 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
7601 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
7602 declare.
7603 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
7604
efb763a5
SM
76052020-06-15 Simon Marchi <simon.marchi@efficios.com>
7606
7607 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
7608 of partial symtabs.
7609
2951f6c0
SM
76102020-06-17 Simon Marchi <simon.marchi@efficios.com>
7611
7612 * regformats/reg-arm.dat: Remove.
7613 * regformats/reg-bfin.dat: Remove.
7614 * regformats/reg-cris.dat: Remove.
7615 * regformats/reg-crisv32.dat: Remove.
7616 * regformats/reg-m32r.dat: Remove.
7617 * regformats/reg-tilegx.dat: Remove.
7618 * regformats/reg-tilegx32.dat: Remove.
7619
7d458ea5
SM
76202020-06-17 Simon Marchi <simon.marchi@efficios.com>
7621
7622 * features/Makefile (WHICH): Remove arm files.
7623 * regformats/arm/arm-with-iwmmxt.dat: Remove.
7624 * regformats/arm/arm-with-neon.dat: Remove.
7625 * regformats/arm/arm-with-vfpv2.dat: Remove.
7626 * regformats/arm/arm-with-vfpv3.dat: Remove.
7627
3af96c0d
SM
76282020-06-17 Simon Marchi <simon.marchi@efficios.com>
7629
7630 * features/Makefile (XMLTOC): Remove rx.xml.
7631
b25e22fd
PA
76322020-06-17 Pedro Alves <palves@redhat.com>
7633
7634 * gdbthread.h (thread_control_state) <trap_expected> Update
7635 comments.
7636
a78a19b1
AB
76372020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7638
7639 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
7640 ada_language::lookup_symbol_nonlocal.
7641 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
7642 (ada_language::lookup_symbol_nonlocal): New member function,
7643 implementation from ada_lookup_symbol_nonlocal.
7644 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
7645 initializer.
7646 (cplus_language_data): Delete la_lookup_symbol_nonlocal
7647 initializer.
7648 (cplus_language::lookup_symbol_nonlocal): New member function.
7649 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
7650 (minimal_language_data) Likewise.
7651 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
7652 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
7653 initializer.
7654 (d_language::lookup_symbol_nonlocal): New member function.
7655 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
7656 initializer.
7657 (f_language::lookup_symbol_nonlocal): New member function.
7658 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
7659 initializer.
7660 * language.c (unknown_language_data): Likewise.
7661 (auto_language_data): Likewise.
7662 * language.h (language_data): Delete la_lookup_symbol_nonlocal
7663 field.
7664 (language_defn::lookup_symbol_nonlocal): New member function.
7665 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
7666 initializer.
7667 * objc-lang.c (objc_language_data): Likewise.
7668 * opencl-lang.c (opencl_language_data): Likewise.
7669 * p-lang.c (pascal_language_data): Likewise.
7670 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
7671 rust_language::lookup_symbol_nonlocal.
7672 (rust_language_data): Delete la_lookup_symbol_nonlocal
7673 initializer.
7674 (rust_language::lookup_symbol_nonlocal): New member function,
7675 implementation from rust_lookup_symbol_nonlocal.
7676 * symtab.c (lookup_symbol_aux): Update call to
7677 lookup_symbol_nonlocal.
7678 (basic_lookup_symbol_nonlocal): Rename to...
7679 (language_defn::lookup_symbol_nonlocal): ...this, and update
7680 header comment. Remove language_defn parameter, and replace with
7681 uses of `this'.
7682 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
7683
ebe2334e
AB
76842020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7685
7686 * ada-lang.c (ada_language_data): Delete la_value_print_inner
7687 initializer.
7688 (ada_language::value_print_inner): New member function.
7689 * c-lang.c (c_language_data): Delete la_value_print_inner
7690 initializer.
7691 (cplus_language_data): Likewise.
7692 (asm_language_data): Likewise.
7693 (minimal_language_data): Likewise.
7694 * d-lang.c (d_language_data): Likewise.
7695 (d_language::value_print_inner): New member function.
7696 * f-lang.c (f_language_data): Delete la_value_print_inner
7697 initializer.
7698 (f_language::value_print_inner): New member function.
7699 * f-lang.h (f_value_print_innner): Rename to...
7700 (f_value_print_inner): ...this (note spelling of 'inner').
7701 * f-valprint.c (f_value_print_innner): Rename to...
7702 (f_value_print_inner): ...this (note spelling of 'inner').
7703 * go-lang.c (go_language_data): Delete la_value_print_inner
7704 initializer.
7705 (go_language::value_print_inner): New member function.
7706 * language.c (language_defn::value_print_inner): Define new member
7707 function.
7708 (unk_lang_value_print_inner): Delete.
7709 (unknown_language_data): Delete la_value_print_inner initializer.
7710 (unknown_language::value_print_inner): New member function.
7711 (auto_language_data): Delete la_value_print_inner initializer.
7712 (auto_language::value_print_inner): New member function.
7713 * language.h (language_data): Delete la_value_print_inner field.
7714 (language_defn::value_print_inner): Delcare new member function.
7715 * m2-lang.c (m2_language_data): Delete la_value_print_inner
7716 initializer.
7717 (m2_language::value_print_inner): New member function.
7718 * objc-lang.c (objc_language_data): Delete la_value_print_inner
7719 initializer.
7720 * opencl-lang.c (opencl_language_data): Likewise.
7721 * p-lang.c (pascal_language_data): Likewise.
7722 (pascal_language::value_print_inner): New member function.
7723 * rust-lang.c (rust_language_data): Delete la_value_print_inner
7724 initializer.
7725 (rust_language::value_print_inner): New member function.
7726 * valprint.c (do_val_print): Update call to value_print_inner.
7727
a1d1fa3e
AB
77282020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7729
7730 * ada-lang.c (ada_language_data): Delete la_value_print
7731 initializer.
7732 (ada_language::value_print): New member function.
7733 * c-lang.c (c_language_data): Delete la_value_print 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_language_data): Likewise.
7739 * go-lang.c (go_language_data): Likewise.
7740 * language.c (unk_lang_value_print): Delete.
7741 (language_defn::value_print): Define new member function.
7742 (unknown_language_data): Delete la_value_print initializer.
7743 (unknown_language::value_print): New member function.
7744 (auto_language_data): Delete la_value_print initializer.
7745 (auto_language::value_print): New member function.
7746 * language.h (language_data): Delete la_value_print field.
7747 (language_defn::value_print): Declare new member function.
7748 (LA_VALUE_PRINT): Update call to value_print.
7749 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
7750 * objc-lang.c (objc_language_data): Likewise.
7751 * opencl-lang.c (opencl_language_data): Likewise.
7752 * p-lang.c (pascal_language_data): Likewise.
7753 (pascal_language::value_print): New member function.
7754 * rust-lang.c (rust_language_data): Delete la_value_print
7755 initializer.
7756
f16a9f57
AB
77572020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7758
7759 * ada-lang.c (ada_watch_location_expression): Rename to
7760 ada_language::watch_location_expression.
7761 (ada_language_data): Delete la_watch_location_expression
7762 initializer.
7763 (ada_language::watch_location_expression): New member function,
7764 implementation from ada_watch_location_expression.
7765 * breakpoint.c (watch_command_1): Update call to
7766 watch_location_expression.
7767 * c-lang.c (c_watch_location_expression): Rename to
7768 language_defn::watch_location_expression.
7769 (c_language_data): Delete la_watch_location_expression
7770 initializer.
7771 (cplus_language_data): Likewise.
7772 (asm_language_data): Likewise.
7773 (minimal_language_data): Likewise.
7774 * c-lang.h (c_watch_location_expression): Delete declaration.
7775 * d-lang.c (d_language_data): Delete la_watch_location_expression
7776 initializer.
7777 * f-lang.c (f_language_data): Likewise.
7778 * go-lang.c (go_language_data): Likewise.
7779 * language.c (language_defn::watch_location_expression): Member
7780 function implementation from c_watch_location_expression.
7781 (unknown_language_data): Delete la_watch_location_expression
7782 initializer.
7783 (auto_language_data): Likewise.
7784 * language.h (language_data): Delete la_watch_location_expression
7785 field.
7786 (language_defn::watch_location_expression): Declare new member
7787 function.
7788 * m2-lang.c (m2_language_data): Delete
7789 la_watch_location_expression initializer.
7790 * objc-lang.c (objc_language_data): Likewise.
7791 * opencl-lang.c (opencl_language_data): Likewise.
7792 * p-lang.c (pascal_language_data): Likewise.
7793 * rust-lang.c (rust_watch_location_expression): Rename to
7794 rust_language::watch_location_expression.
7795 (rust_language_data): Delete la_watch_location_expression
7796 initializer.
7797 (rust_language::watch_location_expression): New member function,
7798 implementation from rust_watch_location_expression.
7799
7e56227d
AB
78002020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7801
7802 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
7803 ada_language::collect_symbol_completion_matches.
7804 (ada_language_data): Delete la_collect_symbol_completion_matches
7805 initializer.
7806 (ada_language::collect_symbol_completion_matches): New member
7807 function, implementation from
7808 ada_collect_symbol_completion_matches.
7809 * c-lang.c (c_language_data): Delete
7810 la_collect_symbol_completion_matches initializer.
7811 (cplus_language_data): Likewise.
7812 (asm_language_data): Likewise.
7813 (minimal_language_data): Likewise.
7814 * d-lang.c (d_language_data): Likewise.
7815 * f-lang.c (f_collect_symbol_completion_matches): Rename to
7816 f_language::collect_symbol_completion_matches.
7817 (f_language_data): Delete la_collect_symbol_completion_matches
7818 initializer.
7819 (f_language::collect_symbol_completion_matches) New member
7820 function, implementation from f_collect_symbol_completion_matches.
7821 * go-lang.c (go_language_data): Delete
7822 la_collect_symbol_completion_matches initializer.
7823 * language.c (unknown_language_data): Likewise.
7824 (auto_language_data): Likewise.
7825 * language.h (language_data): Delete
7826 la_collect_symbol_completion_matches field.
7827 (language_defn::collect_symbol_completion_matches): New member
7828 function.
7829 * m2-lang.c (m2_language_data): Delete
7830 la_collect_symbol_completion_matches initializer.
7831 * objc-lang.c (objc_language_data): Likewise.
7832 * opencl-lang.c (opencl_language_data): Likewise.
7833 * p-lang.c (pascal_language_data): Likewise.
7834 * rust-lang.c (rust_language_data): Likewise.
7835 * symtab.c (default_collect_symbol_completion_matches): Delete.
7836 (collect_symbol_completion_matches): Update call to
7837 collect_symbol_completion_matches.
7838 (collect_symbol_completion_matches_type): Likewise.
7839 * symtab.h (default_collect_symbol_completion_matches): Delete
7840 declaration.
7841
53fc67f8
AB
78422020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7843
7844 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
7845 (ada_language_data): Delete la_word_break_characters initializer.
7846 (ada_language::word_break_characters): New member function.
7847 * c-lang.c (c_language_data): Delete la_word_break_characters
7848 initializer.
7849 (cplus_language_data): Likewise.
7850 (asm_language_data): Likewise.
7851 (minimal_language_data): Likewise.
7852 * completer.c: Update global comment.
7853 (advance_to_expression_complete_word_point): Update call to
7854 word_break_characters.
7855 (complete_files_symbols): Likewise.
7856 (complete_line_internal_1): Likewise.
7857 (default_completer_handle_brkchars): Likewise.
7858 (skip_quoted_chars): Likewise.
7859 * d-lang.c (d_language_data): Delete la_word_break_characters
7860 initializer.
7861 * f-lang.c (f_word_break_characters): Delete.
7862 (f_language_data): Delete la_word_break_characters initializer.
7863 (f_language::word_break_characters): New member function.
7864 * go-lang.c (go_language_data): Delete la_word_break_characters
7865 initializer.
7866 * language.c (unknown_language_data): Likewise.
7867 (auto_language_data): Likewise.
7868 * language.h (default_word_break_characters): Move declaration to
7869 earlier in the file.
7870 (language_data): Delete la_word_break_characters field.
7871 (language_defn::word_break_characters): New member function.
7872 * m2-lang.c (m2_language_data): Delete la_word_break_characters
7873 initializer.
7874 * objc-lang.c (objc_language_data): Likewise.
7875 * opencl-lang.c (opencl_language_data): Likewise.
7876 * p-lang.c (pascal_language_data): Likewise.
7877 * rust-lang.c (rust_language_data): Likewise.
7878
c9debfb9
AB
78792020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7880
7881 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
7882 (ada_language_data): Delete la_get_symbol_name_matcher
7883 initializer.
7884 (language_defn::get_symbol_name_matcher_inner): New member
7885 function.
7886 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
7887 initializer.
7888 (cplus_language_data): Likewise.
7889 (cplus_language::get_symbol_name_matcher_inner): New member
7890 function.
7891 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
7892 (minimal_language_data): Likewise.
7893 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
7894 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
7895 initializer.
7896 * dictionary.c (iter_match_first_hashed): Update call to
7897 get_symbol_name_matcher.
7898 (iter_match_next_hashed): Likewise.
7899 (iter_match_next_linear): Likewise.
7900 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
7901 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
7902 initializer.
7903 (f_language::get_symbol_name_matcher_inner): New member function.
7904 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
7905 initializer.
7906 * language.c (default_symbol_name_matcher): Update header comment,
7907 make static.
7908 (language_defn::get_symbol_name_matcher): New definition.
7909 (language_defn::get_symbol_name_matcher_inner): Likewise.
7910 (get_symbol_name_matcher): Delete.
7911 (unknown_language_data): Delete la_get_symbol_name_matcher
7912 initializer.
7913 (auto_language_data): Likewise.
7914 * language.h (language_data): Delete la_get_symbol_name_matcher
7915 field.
7916 (language_defn::get_symbol_name_matcher): New member function.
7917 (language_defn::get_symbol_name_matcher_inner): Likewise.
7918 (default_symbol_name_matcher): Delete declaration.
7919 * linespec.c (find_methods): Update call to
7920 get_symbol_name_matcher.
7921 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
7922 initializer.
7923 * minsyms.c (lookup_minimal_symbol): Update call to
7924 get_symbol_name_matcher.
7925 (iterate_over_minimal_symbols): Likewise.
7926 * objc-lang.c (objc_language_data): Delete
7927 la_get_symbol_name_matcher initializer.
7928 * opencl-lang.c (opencl_language_data): Likewise.
7929 * p-lang.c (pascal_language_data): Likewise.
7930 * psymtab.c (psymbol_name_matches): Update call to
7931 get_symbol_name_matcher.
7932 * rust-lang.c (rust_language_data): Delete
7933 la_get_symbol_name_matcher initializer.
7934 * symtab.c (symbol_matches_search_name): Update call to
7935 get_symbol_name_matcher.
7936 (compare_symbol_name): Likewise.
7937
9a49ad8c
AB
79382020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7939
7940 * ada-lang.c (ada_language_data): Delete la_compute_program
7941 initializer.
7942 * c-lang.c (c_language_data): Likewise.
7943 (c_language::compute_program): New member function.
7944 (cplus_language_data): Delete la_compute_program initializer.
7945 (cplus_language::compute_program): New member function.
7946 (asm_language_data): Delete la_compute_program initializer.
7947 (minimal_language_data): Likewise.
7948 * c-lang.h (c_compute_program): Update comment.
7949 (cplus_compute_program): Likewise.
7950 * compile/compile-c-support.c (c_compute_program): Likewise.
7951 (cplus_compute_program): Likewise.
7952 * compile/compile.c (compile_to_object): Update call to
7953 la_compute_program.
7954 * d-lang.c (d_language_data): Delete la_compute_program
7955 initializer.
7956 * f-lang.c (f_language_data): Likewise.
7957 * go-lang.c (go_language_data): Likewise.
7958 * language.c (unknown_language_data): Likewise.
7959 (auto_language_data): Likewise.
7960 * language.h (language_data): Delete la_compute_program field.
7961 (language_defn::compute_program): New member function.
7962 * m2-lang.c (m2_language_data): Delete la_compute_program
7963 initializer.
7964 * objc-lang.c (objc_language_data): Likewise.
7965 * opencl-lang.c (opencl_language_data): Likewise.
7966 * p-lang.c (pascal_language_data): Likewise.
7967 * rust-lang.c (rust_language_data): Likewise.
7968
eff93b4d
AB
79692020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7970
7971 * ada-lang.c (ada_language_data) Delete
7972 la_class_name_from_physname initializer.
7973 * c-lang.c (c_language_data): Likewise.
7974 (cplus_language_data): Likewise.
7975 (cplus_language::class_name_from_physname): New member function.
7976 (asm_language_data): Delete la_class_name_from_physname
7977 initializer.
7978 (minimal_language_data): Likewise.
7979 * d-lang.c (d_language_data): Likewise.
7980 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
7981 method on language_defn class.
7982 (guess_full_die_structure_name): Likewise.
7983 * f-lang.c (f_language_data): Delete la_class_name_from_physname
7984 initializer.
7985 * go-lang.c (go_language_data): Likewise.
7986 * language.c (language_class_name_from_physname): Delete.
7987 (unk_lang_class_name): Delete.
7988 (unknown_language_data): Delete la_class_name_from_physname
7989 initializer.
7990 (auto_language_data): Likewise.
7991 * language.h (language_data): Delete la_class_name_from_physname
7992 field.
7993 (language_defn::class_name_from_physname): New function.
7994 (language_class_name_from_physname): Delete declaration.
7995 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
7996 initializer.
7997 * objc-lang.c (objc_language_data): Likewise.
7998 * opencl-lang.c (opencl_language_data): Likewise.
7999 * p-lang.c (pascal_language_data): Likewise.
8000 * rust-lang.c (rust_language_data): Likewise.
8001
de543742
TT
80022020-06-16 Tom Tromey <tom@tromey.com>
8003
8004 * tui/tui-data.h (STATUS_NAME): New macro.
8005 * tui/tui-layout.c (tui_remove_some_windows)
8006 (initialize_known_windows, tui_register_window)
8007 (tui_layout_split::remove_windows, initialize_layouts)
8008 (tui_new_layout_command): Don't use hard-coded window names.
8009
a350efd4
TT
80102020-06-16 Tom Tromey <tom@tromey.com>
8011
8012 PR tui/25348:
8013 * tui/tui.c (tui_ensure_readline_initialized): Rename from
8014 tui_initialize_readline. Only run once. Call rl_initialize.
8015 * tui/tui.h (tui_ensure_readline_initialized): Rename from
8016 tui_initialize_readline.
8017 * tui/tui-io.c (tui_setup_io): Call
8018 tui_ensure_readline_initialized.
8019 * tui/tui-interp.c (tui_interp::init): Update.
8020
39ec0490
TT
80212020-06-16 Tom Tromey <tom@tromey.com>
8022
8023 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
8024 Also preserve the status window.
8025
d2d1ea20
TT
80262020-06-16 Tom Tromey <tom@tromey.com>
8027
8028 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
8029 where m_window==nullptr.
8030
66920317
TT
80312020-06-15 Tom Tromey <tromey@adacore.com>
8032
8033 * windows-nat.c (windows_nat::handle_output_debug_string):
8034 Update.
8035 (windows_nat::handle_ms_vc_exception): Update.
8036 * target.h (target_read_string): Change API.
8037 * target.c (target_read_string): Change API.
8038 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
8039 Update.
8040 * solib-frv.c (frv_current_sos): Update.
8041 * solib-dsbt.c (dsbt_current_sos): Update.
8042 * solib-darwin.c (darwin_current_sos): Update.
8043 * linux-thread-db.c (inferior_has_bug): Update.
8044 * expprint.c (print_subexp_standard): Update.
8045 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
8046 (ada_exception_message_1): Update.
8047
a5d871dd
TT
80482020-06-15 Tom Tromey <tromey@adacore.com>
8049
8050 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
8051
670e35fa
TT
80522020-06-15 Tom Tromey <tromey@adacore.com>
8053
8054 * valprint.c (read_string): Update comment.
8055 * target.c (MIN): Remove.
8056 (target_read_string): Rewrite.
8057
f5272a3b
TT
80582020-06-15 Tom Tromey <tromey@adacore.com>
8059
8060 * corefile.c (read_memory_string): Remove.
8061 * ada-valprint.c (ada_value_print_ptr): Update.
8062 * ada-lang.h (ada_tag_name): Change return type.
8063 * ada-lang.c (type_from_tag): Update.
8064 (ada_tag_name_from_tsd): Change return type. Use
8065 target_read_string.
8066 (ada_tag_name): Likewise.
8067 * gdbcore.h (read_memory_string): Don't declare.
8068
2c074f49
HD
80692020-06-14 Hannes Domani <ssbssa@yahoo.de>
8070
8071 * symtab.c (rbreak_command): Ignore Windows drive colon.
8072
6a17d503
SM
80732020-06-12 Simon Marchi <simon.marchi@efficios.com>
8074
8075 * NEWS: Mention removed GDBserver host support.
8076
453c733f
NC
80772020-06-12 Nelson Chu <nelson.chu@sifive.com>
8078
8079 * features/riscv/rebuild-csr-xml.sh: Updated.
8080
2b4e6a3f
TT
80812020-06-11 Tom Tromey <tom@tromey.com>
8082
8083 PR gdb/18318:
8084 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
8085
4412332f
JG
80862020-06-09 Jonny Grant <jg@jguk.org>
80872020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
8088
8089 * main.c (captured_main_1): Don't print new line after help.
8090 (print_gdb_help): add mailing list and IRC channel information
8091 to --help. Add new lines between items in the footer. Remove
8092 quotes around bug url.
8093
2f33032a
KS
80942020-06-11 Keith Seitz <keiths@redhat.com>
8095
8096 PR gdb/21356
8097 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
8098 Resolve typedefs for type length calculations.
8099
7ab96794
TV
81002020-06-10 Tom de Vries <tdevries@suse.de>
8101
8102 PR ada/24713
8103 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
8104 (write_psymbols): Enable .gdb_index for ada.
8105 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
8106 ada.
8107
e5f3ece2
TV
81082020-06-10 Tom de Vries <tdevries@suse.de>
8109
8110 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
8111 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
8112 namei" instead of "const char *name" argument.
8113 (dw2_map_matching_symbols): Use "offset_type namei" variant of
8114 dw2_symtab_iter_init.
8115
940da03e
SM
81162020-06-08 Simon Marchi <simon.marchi@efficios.com>
8117
8118 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
8119 to use type::field and field::type instead.
8120
b6cdac4b
SM
81212020-06-08 Simon Marchi <simon.marchi@efficios.com>
8122
8123 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
8124 to use field::type instead.
8125
5d14b6e5
SM
81262020-06-08 Simon Marchi <simon.marchi@efficios.com>
8127
8128 * gdbtypes.h (struct field) <type, set_type>: New methods.
8129 Rename `type` field to...
8130 <m_type>: ... this. Change references throughout to use type or
8131 set_type methods.
8132 (FIELD_TYPE): Use field::type. Change call sites that modify
8133 the field's type to use field::set_type instead.
8134
3d967001
SM
81352020-06-08 Simon Marchi <simon.marchi@efficios.com>
8136
8137 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
8138 to use type::index_type instead.
8139
262abc0d
SM
81402020-06-08 Simon Marchi <simon.marchi@efficios.com>
8141
8142 * gdbtypes.h (struct type) <index_type, set_index_type>: New
8143 methods.
8144 (TYPE_INDEX_TYPE): Use type::index_type.
8145 * gdbtypes.c (create_array_type_with_stride): Likewise.
8146
82836c92
TT
81472020-06-07 Tom Tromey <tom@tromey.com>
8148
8149 * valprint.c (generic_val_print_float): Remove "embedded_offset"
8150 parameter.
8151 (generic_value_print): Update.
8152
940dace9
AB
81532020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8154
8155 Revert commit 982a38f60b0.
8156 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
8157
982a38f6
AB
81582020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8159
8160 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
8161 avoid use after free.
8162
82f06518
TV
81632020-06-05 Tom de Vries <tdevries@suse.de>
8164
8165 * NEWS: Fix typos.
8166
f8c41851
SM
81672020-06-04 Simon Marchi <simon.marchi@efficios.com>
8168
8169 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
8170 the per_bfd object.
8171 (dwarf2_read_debug_names): Likewise.
8172 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
8173 object when re-using a per_bfd object with an index.
8174
f9b5d5ea
TV
81752020-06-03 Tom de Vries <tdevries@suse.de>
8176
8177 PR symtab/26046
8178 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
8179 children for C++.
8180 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
8181 DW_TAG_subprogram.
8182
f6eee2d0
AB
81832020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8184
8185 * ada-lang.c (ada_language_data): Delete skip_trampoline
8186 initializer.
8187 * c-lang.c (c_language_data): Likewise.
8188 (cplus_language_data): Likewise.
8189 (cplus_language::skip_trampoline): New member function.
8190 (asm_language_data): Delete skip_trampoline initializer.
8191 (minimal_language_data): Likewise.
8192 * d-lang.c (d_language_data): Likewise.
8193 * f-lang.c (f_language_data): Likewise.
8194 * go-lang.c (go_language_data): Likewise.
8195 * language.c (unk_lang_trampoline): Delete function.
8196 (skip_language_trampoline): Update.
8197 (unknown_language_data): Delete skip_trampoline initializer.
8198 (auto_language_data): Likewise.
8199 * language.h (language_data): Delete skip_trampoline field.
8200 (language_defn::skip_trampoline): New function.
8201 * m2-lang.c (m2_language_data): Delete skip_trampoline
8202 initializer.
8203 * objc-lang.c (objc_skip_trampoline): Delete function, move
8204 implementation to objc_language::skip_trampoline.
8205 (objc_language_data): Delete skip_trampoline initializer.
8206 (objc_language::skip_trampoline): New member function with
8207 implementation from objc_skip_trampoline.
8208 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
8209 initializer.
8210 * p-lang.c (pascal_language_data): Likewise.
8211 * rust-lang.c (rust_language_data): Likewise.
8212
0a50df5d
AB
82132020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8214
8215 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
8216 (ada_language::demangle): New member function.
8217 * c-lang.c (c_language_data): Delete la_demangle initializer.
8218 (cplus_language_data): Delete la_demangle initializer.
8219 (cplus_language::demangle): New member function.
8220 (asm_language_data): Delete la_demangle initializer.
8221 (minimal_language_data): Delete la_demangle initializer.
8222 * d-lang.c (d_language_data): Delete la_demangle initializer.
8223 (d_language::demangle): New member function.
8224 * f-lang.c (f_language_data): Delete la_demangle initializer.
8225 (f_language::demangle): New member function.
8226 * go-lang.c (go_language_data): Delete la_demangle initializer.
8227 (go_language::demangle): New member function.
8228 * language.c (language_demangle): Update.
8229 (unk_lang_demangle): Delete.
8230 (unknown_language_data): Delete la_demangle initializer.
8231 (unknown_language::demangle): New member function.
8232 (auto_language_data): Delete la_demangle initializer.
8233 (auto_language::demangle): New member function.
8234 * language.h (language_data): Delete la_demangle field.
8235 (language_defn::demangle): New function.
8236 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
8237 * objc-lang.c (objc_language_data): Delete la_demangle
8238 initializer.
8239 (objc_language::demangle): New member function.
8240 * opencl-lang.c (opencl_language_data): Delete la_demangle
8241 initializer.
8242 * p-lang.c (pascal_language_data): Likewise.
8243 * rust-lang.c (rust_language_data): Likewise.
8244 (rust_language::demangle): New member function.
8245
fbfb0a46
AB
82462020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8247
8248 * ada-lang.c (ada_language_data): Delete la_print_type
8249 initializer.
8250 (ada_language::print_type): New member function.
8251 * c-lang.c (c_language_data): Delete la_print_type initializer.
8252 (c_language::print_type): New member function.
8253 (cplus_language_data): Delete la_print_type initializer.
8254 (cplus_language::print_type): New member function.
8255 (asm_language_data): Delete la_print_type initializer.
8256 (asm_language::print_type): New member function.
8257 (minimal_language_data): Delete la_print_type initializer.
8258 (minimal_language::print_type): New member function.
8259 * d-lang.c (d_language_data): Delete la_print_type initializer.
8260 (d_language::print_type): New member function.
8261 * f-lang.c (f_language_data): Delete la_print_type initializer.
8262 (f_language::print_type): New member function.
8263 * go-lang.c (go_language_data): Delete la_print_type initializer.
8264 (go_language::print_type): New member function.
8265 * language.c (unk_lang_print_type): Delete.
8266 (unknown_language_data): Delete la_print_type initializer.
8267 (unknown_language::print_type): New member function.
8268 (auto_language_data): Delete la_print_type initializer.
8269 (auto_language::print_type): New member function.
8270 * language.h (language_data): Delete la_print_type field.
8271 (language_defn::print_type): New function.
8272 (LA_PRINT_TYPE): Update.
8273 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
8274 (m2_language::print_type): New member function.
8275 * objc-lang.c (objc_language_data): Delete la_print_type
8276 initializer.
8277 (objc_language::print_type): New member function.
8278 * opencl-lang.c (opencl_print_type): Delete, implementation moved
8279 to opencl_language::print_type.
8280 (opencl_language_data): Delete la_print_type initializer.
8281 (opencl_language::print_type): New member function, implementation
8282 from opencl_print_type.
8283 * p-lang.c (pascal_language_data): Delete la_print_type
8284 initializer.
8285 (pascal_language::print_type): New member function.
8286 * rust-lang.c (rust_print_type): Delete, implementation moved to
8287 rust_language::print_type.
8288 (rust_language_data): Delete la_print_type initializer.
8289 (rust_language::print_type): New member function, implementation
8290 from rust_print_type.
8291
6f827019
AB
82922020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8293
8294 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
8295 implementation moves to...
8296 (ada_language::sniff_from_mangled_name): ...here. Update return
8297 type.
8298 (ada_language_data): Delete la_sniff_from_mangled_name
8299 initializer.
8300 * c-lang.c (c_language_data): Likewise.
8301 (cplus_language_data): Likewise.
8302 (cplus_language::sniff_from_mangled_name): New member function,
8303 implementation taken from gdb_sniff_from_mangled_name.
8304 (asm_language_data): Delete la_sniff_from_mangled_name
8305 initializer.
8306 (minimal_language_data): Likewise.
8307 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
8308 implementation moves to cplus_language::sniff_from_mangled_name.
8309 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
8310 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
8311 moves to...
8312 (d_language::sniff_from_mangled_name): ...here.
8313 (d_language_data): Delete la_sniff_from_mangled_name initializer.
8314 * f-lang.c (f_language_data): Likewise.
8315 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
8316 moves to...
8317 (go_language::sniff_from_mangled_name): ...here.
8318 (go_language_data): Delete la_sniff_from_mangled_name initializer.
8319 * language.c (language_sniff_from_mangled_name): Delete.
8320 (unknown_language_data): Delete la_sniff_from_mangled_name
8321 initializer.
8322 (auto_language_data): Likewise.
8323 * language.h (language_data): Delete la_sniff_from_mangled_name
8324 field.
8325 (language_defn::sniff_from_mangled_name): New function.
8326 (language_sniff_from_mangled_name): Delete declaration.
8327 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
8328 field.
8329 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
8330 implementation moves to...
8331 (objc_language::sniff_from_mangled_name): ...here.
8332 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
8333 * opencl-lang.c (opencl_language_data): Likewise.
8334 * p-lang.c (pascal_language_data): Likewise.
8335 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
8336 implementation moves to...
8337 (rust_language::sniff_from_mangled_name): ...here.
8338 (rust_language_data): Delete la_sniff_from_mangled_name
8339 initializer.
8340 * symtab.c (symbol_find_demangled_name): Call
8341 sniff_from_mangled_name member function.
8342
fb8006fd
AB
83432020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8344
8345 * ada-lang.c (ada_language_data): Delete la_search_name_hash
8346 initializer.
8347 * c-lang.c (c_language_data): Likewise.
8348 (cplus_language_data): Likewise.
8349 (cplus_language::search_name_hash): New member function.
8350 (asm_language_data): Delete la_search_name_hash initializer.
8351 (minimal_language_data): Likewise.
8352 * d-lang.c (d_language_data): Likewise.
8353 * dictionary.c (default_search_name_hash): Rename to...
8354 (language_defn::search_name_hash): ...this.
8355 * f-lang.c (f_language_data): Likewise.
8356 (f_language::search_name_hash): New member function.
8357 * go-lang.c (go_language_data): Delete la_search_name_hash
8358 initializer.
8359 * language.c (unknown_language_data): Likewise.
8360 (auto_language_data): Likewise.
8361 * language.h (struct language_data): Delete la_search_name_hash
8362 field.
8363 (language_defn::search_name_hash): Declare new member function.
8364 (default_search_name_hash): Delete declaration.
8365 * m2-lang.c (m2_language_data): Delete la_search_name_hash
8366 initializer.
8367 * objc-lang.c (objc_language_data): Likewise.
8368 * opencl-lang.c (opencl_language_data): Likewise.
8369 * p-lang.c (pascal_language_data): Likewise.
8370 * rust-lang.c (rust_language_data): Likewise.
8371 * symtab.c (search_name_hash): Update call.
8372
8e25bafe
AB
83732020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8374
8375 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
8376 initializer.
8377 * c-lang.c (class compile_instance): Declare.
8378 (c_language_data): Delete la_get_compile_instance initializer.
8379 (c_language::get_compile_instance): New member function.
8380 (cplus_language_data): Delete la_get_compile_instance initializer.
8381 (cplus_language::get_compile_instance): New member function.
8382 (asm_language_data): Delete la_get_compile_instance initializer.
8383 (minimal_language_data): Likewise.
8384 * c-lang.h (c_get_compile_context): Update comment.
8385 (cplus_get_compile_context): Update comment.
8386 * compile/compile.c (compile_to_object): Update calls, don't rely
8387 on function pointer being NULL.
8388 * d-lang.c (d_language_data): Delete la_get_compile_instance
8389 initializer.
8390 * f-lang.c (f_language_data): Likewise.
8391 * go-lang.c (go_language_data): Likewise.
8392 * language.c (unknown_language_data): Likewise.
8393 (auto_language_data): Likewise.
8394 * language.h (language_data): Delete la_get_compile_instance field.
8395 (language_defn::get_compile_instance): New member function.
8396 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
8397 initializer.
8398 * objc-lang.c (objc_language_data): Likewise.
8399 * opencl-lang.c (opencl_language_data): Likewise.
8400 * p-lang.c (pascal_language_data): Likewise.
8401 * rust-lang.c (rust_language_data): Likewise.
8402
4009ee92
AB
84032020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8404
8405 * ada-lang.c (ada_add_all_symbols): Update comment.
8406 (ada_iterate_over_symbols): Delete, move implementation to...
8407 (ada_language::iterate_over_symbols): ...here, a new member
8408 function, rewrite to use range based for loop.
8409 (ada_language_data): Delete la_iterate_over_symbols initializer.
8410 * c-lang.c (c_language_data): Likewise.
8411 (cplus_language_data): Likewise.
8412 (asm_language_data): Likewise.
8413 (minimal_language_data): Likewise.
8414 * d-lang.c (d_language_data): Likewise.
8415 * f-lang.c (f_language_data): Likewise.
8416 * go-lang.c (go_language_data): Likewise.
8417 * language.c (unknown_language_data): Likewise.
8418 (auto_language_data): Likewise.
8419 * language.h (language_data): Delete la_iterate_over_symbols field.
8420 (language_defn::iterate_over_symbols): New member function.
8421 (LA_ITERATE_OVER_SYMBOLS): Update.
8422 * linespec.c (iterate_over_all_matching_symtabs): Update.
8423 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
8424 initializer.
8425 * objc-lang.c (objc_language_data): Likewise.
8426 * opencl-lang.c (opencl_language_data): Likewise.
8427 * p-lang.c (pascal_language_data): Likewise.
8428 * rust-lang.c (rust_language_data): Likewise.
8429
54f4ca46
AB
84302020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8431
8432 * ada-lang.c (ada_language_data): Delete
8433 la_lookup_transparent_type initializer.
8434 * c-lang.c (c_language_data): Likewise.
8435 (cplus_language_data): Likewise.
8436 (cplus_language::lookup_transparent_type): New member function.
8437 (asm_language_data): Delete la_lookup_transparent_type
8438 initializer.
8439 (minimal_language_data): Likewise.
8440 * d-lang.c (d_language_data): Likewise.
8441 * f-lang.c (f_language_data): Likewise.
8442 * go-lang.c (go_language_data): Likewise.
8443 * language.c (unknown_language_data): Likewise.
8444 (auto_language_data): Likewise.
8445 * language.h (struct language_data): Delete
8446 la_lookup_transparent_type field.
8447 (language_defn::lookup_transparent_type): New member function.
8448 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
8449 initializer.
8450 * objc-lang.c (objc_language_data): Likewise.
8451 * opencl-lang.c (opencl_language_data): Likewise.
8452 * p-lang.c (pascal_language_data): Likewise.
8453 * rust-lang.c (rust_language_data): Likewise.
8454 * symtab.c (symbol_matches_domain): Update call.
8455
1fb314aa
AB
84562020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8457
8458 * ada-lang.c (ada_language_arch_info): Delete function, move
8459 implementation to...
8460 (ada_language::language_arch_info): ...here, a new member
8461 function.
8462 (ada_language_data): Delete la_language_arch_info.
8463 * c-lang.c (c_language_data): Likewise.
8464 (c_language::language_arch_info): New member function.
8465 (cplus_language_arch_info): Delete function, move
8466 implementation to...
8467 (cplus_language::language_arch_info): ...here, a new member
8468 function.
8469 (cplus_language_data): Delete la_language_arch_info.
8470 (asm_language_data): Likewise.
8471 (asm_language::language_arch_info): New member function.
8472 (minimal_language_data): Delete la_language_arch_info.
8473 (minimal_language::language_arch_info): New member function.
8474 * d-lang.c (d_language_arch_info): Delete function, move
8475 implementation to...
8476 (d_language::language_arch_info): ...here, a new member
8477 function.
8478 (d_language_data): Delete la_language_arch_info.
8479 * f-lang.c (f_language_arch_info): Delete function, move
8480 implementation to...
8481 (f_language::language_arch_info): ...here, a new member
8482 function.
8483 (f_language_data): Delete la_language_arch_info.
8484 * go-lang.c (go_language_arch_info): Delete function, move
8485 implementation to...
8486 (go_language::language_arch_info): ...here, a new member
8487 function.
8488 (go_language_data): Delete la_language_arch_info.
8489 * language.c (unknown_language_data): Likewise.
8490 (unknown_language::language_arch_info): New member function.
8491 (auto_language_data): Delete la_language_arch_info.
8492 (auto_language::language_arch_info): New member function.
8493 (language_gdbarch_post_init): Update call to
8494 la_language_arch_info.
8495 * language.h (language_data): Delete la_language_arch_info
8496 function pointer.
8497 (language_defn::language_arch_info): New function.
8498 * m2-lang.c (m2_language_arch_info): Delete function, move
8499 implementation to...
8500 (m2_language::language_arch_info): ...here, a new member
8501 function.
8502 (m2_language_data): Delete la_language_arch_info.
8503 * objc-lang.c (objc_language_arch_info): Delete function, move
8504 implementation to...
8505 (objc_language::language_arch_info): ...here, a new member
8506 function.
8507 (objc_language_data): Delete la_language_arch_info.
8508 * opencl-lang.c (opencl_language_arch_info): Delete function, move
8509 implementation to...
8510 (opencl_language::language_arch_info): ...here, a new member
8511 function.
8512 (opencl_language_data): Delete la_language_arch_info.
8513 * p-lang.c (pascal_language_arch_info): Delete function, move
8514 implementation to...
8515 (pascal_language::language_arch_info): ...here, a new member
8516 function.
8517 (pascal_language_data): Delete la_language_arch_info.
8518 * rust-lang.c (rust_language_arch_info): Delete function, move
8519 implementation to...
8520 (rust_language::language_arch_info): ...here, a new member
8521 function.
8522 (rust_language_data): Delete la_language_arch_info.
8523
48448202
AB
85242020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8525
8526 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
8527 initializer.
8528 * c-lang.c (c_language_data): Likewise.
8529 (cplus_language_data): Likewise.
8530 (cplus_language::pass_by_reference_info): New method.
8531 (asm_language_data): Delete la_pass_by_reference initializer.
8532 (minimal_language_data): Likewise.
8533 * cp-abi.c (cp_pass_by_reference): Remove use of
8534 default_pass_by_reference.
8535 * d-lang.c (d_language_data): Likewise.
8536 * f-lang.c (f_language_data): Likewise.
8537 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
8538 default_pass_by_reference.
8539 * go-lang.c (go_language_data): Likewise.
8540 * language.c (language_pass_by_reference): Update.
8541 (default_pass_by_reference): Delete.
8542 (unknown_language_data): Delete la_pass_by_reference
8543 initializer.
8544 (auto_language_data): Likewise.
8545 * language.h (struct language_data): Delete la_pass_by_reference
8546 field.
8547 (language_defn::pass_by_reference_info): New member function.
8548 (default_pass_by_reference): Delete declaration.
8549 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
8550 initializer.
8551 * objc-lang.c (objc_language_data): Likewise.
8552 * opencl-lang.c (opencl_language_data): Likewise.
8553 * p-lang.c (pascal_language_data): Likewise.
8554 * rust-lang.c (rust_language_data): Likewise.
8555
15e5fd35
AB
85562020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8557
8558 * ada-lang.c (ada_read_var_value): Delete function, move
8559 implementation to...
8560 (ada_language::read_var_value): ...here.
8561 (ada_language_data): Delete la_read_var_value initializer.
8562 * c-lang.c (c_language_data): Likewise.
8563 (cplus_language_data): Likewise.
8564 (minimal_language_data): Likewise.
8565 * d-lang.c (d_language_data): Likewise.
8566 * f-lang.c (f_language_data): Likewise.
8567 * findvar.c (default_read_var_value): Rename to...
8568 (language_defn::read_var_value): ...this.
8569 * findvar.c (read_var_value): Update header comment, and change to
8570 call member function instead of function pointer.
8571 * go-lang.c (go_language_data): Likewise.
8572 * language.c (unknown_language_data): Delete la_read_var_value
8573 initializer.
8574 (auto_language_data): Likewise.
8575 * language.h (struct language_data): Delete la_read_var_value
8576 field.
8577 (language_defn::read_var_value): New member function.
8578 (default_read_var_value): Delete declaration.
8579 * m2-lang.c (m2_language_data): Delete la_read_var_value
8580 initializer.
8581 * objc-lang.c (objc_language_data): Likewise.
8582 * opencl-lang.c (opencl_language_data): Likewise.
8583 * p-lang.c (pascal_language_data): Likewise.
8584 * rust-lang.c (rust_language_data): Likewise.
8585 * value.h (default_read_var_value): Delete declaration.
8586
5bd40f2a
AB
85872020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8588
8589 * ada-lang.c (ada_print_array_index): Delete function, move
8590 implementation to...
8591 (ada_language::print_array_index): ...here.
8592 (ada_language_data): Delete la_print_array_index initializer.
8593 * c-lang.c (c_language_data): Likewise.
8594 (cplus_language_data): Likewise.
8595 (minimal_language_data): Likewise.
8596 * d-lang.c (d_language_data): Likewise.
8597 * f-lang.c (f_language_data): Likewise.
8598 * go-lang.c (go_language_data): Likewise.
8599 * language.c (default_print_array_index): Delete function, move
8600 implementation to...
8601 (language_defn::print_array_index): ...here.
8602 (unknown_language_data): Delete la_print_array_index initializer.
8603 (auto_language_data): Likewise.
8604 * language.h (struct language_data): Delete la_print_array_index
8605 field.
8606 (language_defn::print_array_index): New member function.
8607 (LA_PRINT_ARRAY_INDEX): Update.
8608 (default_print_array_index): Delete declaration.
8609 * m2-lang.c (m2_language_data): Delete la_print_array_index
8610 initializer.
8611 * objc-lang.c (objc_language_data): Likewise.
8612 * opencl-lang.c (opencl_language_data): Likewise.
8613 * p-lang.c (pascal_language_data): Likewise.
8614 * rust-lang.c (rust_language_data): Likewise.
8615
0874fd07
AB
86162020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8617
8618 * gdb/ada-lang.c (ada_language_defn): Convert to...
8619 (ada_language_data): ...this.
8620 (class ada_language): New class.
8621 (ada_language_defn): New static global.
8622 * gdb/c-lang.c (c_language_defn): Convert to...
8623 (c_language_data): ...this.
8624 (class c_language): New class.
8625 (c_language_defn): New static global.
8626 (cplus_language_defn): Convert to...
8627 (cplus_language_data): ...this.
8628 (class cplus_language): New class.
8629 (cplus_language_defn): New static global.
8630 (asm_language_defn): Convert to...
8631 (asm_language_data): ...this.
8632 (class asm_language): New class.
8633 (asm_language_defn): New static global.
8634 (minimal_language_defn): Convert to...
8635 (minimal_language_data): ...this.
8636 (class minimal_language): New class.
8637 (minimal_language_defn): New static global.
8638 * gdb/d-lang.c (d_language_defn): Convert to...
8639 (d_language_data): ...this.
8640 (class d_language): New class.
8641 (d_language_defn): New static global.
8642 * gdb/f-lang.c (f_language_defn): Convert to...
8643 (f_language_data): ...this.
8644 (class f_language): New class.
8645 (f_language_defn): New static global.
8646 * gdb/go-lang.c (go_language_defn): Convert to...
8647 (go_language_data): ...this.
8648 (class go_language): New class.
8649 (go_language_defn): New static global.
8650 * gdb/language.c (unknown_language_defn): Remove declaration.
8651 (current_language): Initialize to nullptr, real initialization is
8652 moved to _initialize_language.
8653 (languages): Delete global.
8654 (language_defn::languages): Define.
8655 (set_language_command): Use language_defn::languages.
8656 (set_language): Likewise.
8657 (range_error): Likewise.
8658 (language_enum): Likewise.
8659 (language_def): Likewise.
8660 (add_set_language_command): Use language_def::languages for the
8661 language list, and language_def to lookup language pointers.
8662 (skip_language_trampoline): Use language_defn::languages.
8663 (unknown_language_defn): Convert to...
8664 (unknown_language_data): ...this.
8665 (class unknown_language): New class.
8666 (unknown_language_defn): New static global.
8667 (auto_language_defn): Convert to...
8668 (auto_language_data): ...this.
8669 (class auto_language): New class.
8670 (auto_language_defn): New static global.
8671 (language_gdbarch_post_init): Use language_defn::languages.
8672 (_initialize_language): Initialize current_language.
8673 * gdb/language.h (struct language_defn): Rename to...
8674 (struct language_data): ...this.
8675 (struct language_defn): New.
8676 (auto_language_defn): Delete.
8677 (unknown_language_defn): Delete.
8678 (minimal_language_defn): Delete.
8679 (ada_language_defn): Delete.
8680 (asm_language_defn): Delete.
8681 (c_language_defn): Delete.
8682 (cplus_language_defn): Delete.
8683 (d_language_defn): Delete.
8684 (f_language_defn): Delete.
8685 (go_language_defn): Delete.
8686 (m2_language_defn): Delete.
8687 (objc_language_defn): Delete.
8688 (opencl_language_defn): Delete.
8689 (pascal_language_defn): Delete.
8690 (rust_language_defn): Delete.
8691 * gdb/m2-lang.c (m2_language_defn): Convert to...
8692 (m2_language_data): ...this.
8693 (class m2_language): New class.
8694 (m2_language_defn): New static global.
8695 * gdb/objc-lang.c (objc_language_defn): Convert to...
8696 (objc_language_data): ...this.
8697 (class objc_language): New class.
8698 (objc_language_defn): New static global.
8699 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
8700 (opencl_language_data): ...this.
8701 (class opencl_language): New class.
8702 (opencl_language_defn): New static global.
8703 * gdb/p-lang.c (pascal_language_defn): Convert to...
8704 (pascal_language_data): ...this.
8705 (class pascal_language): New class.
8706 (pascal_language_defn): New static global.
8707 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
8708 language pointer, update comment format.
8709 * gdb/rust-lang.c (rust_language_defn): Convert to...
8710 (rust_language_data): ...this.
8711 (class rust_language): New class.
8712 (rust_language_defn): New static global.
8713
1313c56e
AB
87142020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
8715
8716 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
8717 member variable.
8718 <m_stmt_at_address>: New member variable.
8719 (lnp_state_machine::record_line): Don't record some lines, update
8720 tracking of is_stmt at the same address.
8721 (lnp_state_machine::lnp_state_machine): Initialise new member
8722 variables.
8723
b7ed9f3d
ST
87242020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
8725
8726 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
8727 "-include gnu-nat-mig.h".
8728 * gnu-nat-mig.h: New file.
8729 * gnu-nat.c: Include "gnu-nat-mig.h".
8730 (exc_server, msg_reply_server, notify_server,
8731 process_reply_server): Remove declarations.
8732
14a8ad62
ST
87332020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8734
8735 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
8736 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
8737 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
8738 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
8739 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
8740 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
8741 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
8742 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
8743 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
8744 to gnu_nat_target class.
8745 * gnu-nat.c: Likewise.
8746 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
8747 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
8748 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
8749 object.
8750 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
8751 instead of `gnu_target'.
8752
0af5e106
ST
87532020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8754
8755 * i386-gnu-tdep.c: Include "gdbcore.h"
8756 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
8757 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
8758 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
8759 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
8760 i386_gnu_sigcontext_addr): New functions
8761 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
8762 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
8763 tdep.
8764
078f2fc9
ST
87652020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8766
8767 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
8768 before fork_inferior call. Avoid calling it if target_is_pushed returns
8769 true.
8770
53dff92c
ST
87712020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8772
8773 * gnu-nat.h (gnu_target): New variable declaration.
8774 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
8775 gnu_target.
8776 * gnu-nat.c (gnu_target): New variable.
8777 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
8778 add_thread_silent, and add_thread calls.
8779 (gnu_nat_target::create_inferior): Pass gnu_target to
8780 add_thread_silent, thread_change_ptid call.
8781 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
8782 call.
8783
5a8b8627
ST
87842020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8785
8786 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
8787 (gnu_nat_target::find_memory_regions): Remove unused
8788 `old_address' variable.
8789
366f550a
ST
87902020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8791
8792 * gnu-nat.c: Include "gdbarch.h".
8793
f14871bf
ST
87942020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8795
8796 * reply_mig_hack.awk (Error return): Cast function through
8797 void *, to bypass compiler function call check.
8798
c6887cfb
ST
87992020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8800
8801 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
8802 $(srcdir)/reply_mig_hack.awk.
8803
6930bffe
ST
88042020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8805
8806 * gnu-nat.h (gnu_debug_flag): Set type to bool.
8807
112c22ed
JG
88082020-05-30 Jonny Grant <jg@jguk.org>
8809
8810 * configure.ac (ACX_BUGURL): change bug URL to https.
8811
f68f85b5
PA
88122020-05-30 Pedro Alves <palves@redhat.com>
8813
8814 * cp-support.c (replace_typedefs_template): New.
8815 (replace_typedefs_qualified_name): Handle
8816 DEMANGLE_COMPONENT_TEMPLATE.
8817
976ca316
SM
88182020-05-29 Simon Marchi <simon.marchi@efficios.com>
8819
8820 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
8821 dwarf2/index-cache.h, dwarf2/index-write.c,
8822 dwarf2/index-write.h, dwarf2/line-header.c,
8823 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
8824 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
8825 variables and fields from `dwarf2_per_objfile` to just
8826 `per_objfile` throughout.
8827
989ade05
SM
88282020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
8829
8830 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8831 <push_dwarf_reg_entry_value>: Add comment.
8832
c47bae85
KB
88332020-05-28 Kevin Buettner <kevinb@redhat.com>
8834 Keith Seitz <keiths@redhat.com>
8835
8836 * python/python.c (do_start_initialization): Call PyEval_SaveThread
8837 instead of PyEval_ReleaseLock.
8838 (class gdbpy_gil): Move to earlier in file.
8839 (finalize_python): Set gdb_python_initialized.
8840 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
8841 when not initialized.
8842
44486dcf
SM
88432020-05-28 Simon Marchi <simon.marchi@efficios.com>
8844
8845 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8846 <push_dwarf_reg_entry_value>: Remove assert. Override
8847 per_objfile with caller_per_objfile.
8848
f030440d
TV
88492020-05-28 Tom de Vries <tdevries@suse.de>
8850
8851 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
8852 PR gold/15646 workaround to symbol kind "type".
8853
f0fbb768
TT
88542020-05-27 Tom Tromey <tromey@adacore.com>
8855
8856 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
8857
af0b2a3e
TT
88582020-05-27 Tom Tromey <tromey@adacore.com>
8859
8860 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
8861 Use htab_find_with_hash.
8862 <add_abbrev>: Remove "abbrev_number" parameter.
8863 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
8864 "abbrev_number" parameter. Use htab_find_slot_with_hash.
8865 (hash_abbrev): Add comment.
8866 (abbrev_table::lookup_abbrev): Move to header file.
8867 (abbrev_table::read): Update.
8868
7d00ffec
TT
88692020-05-27 Tom Tromey <tromey@adacore.com>
8870
8871 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
8872 method.
8873 <canonical_name>: New member.
8874 <raw_name>: Rename from "name".
8875 (partial_die_info): Initialize canonical_name.
8876 (scan_partial_symbols): Check raw_name.
8877 (partial_die_parent_scope, partial_die_full_name)
8878 (add_partial_symbol, add_partial_subprogram)
8879 (add_partial_enumeration, load_partial_dies): Use "name" method.
8880 (partial_die_info::name): New method.
8881 (partial_die_info::read, guess_partial_die_structure_name)
8882 (partial_die_info::fixup): Update.
8883
697bba18
TT
88842020-05-27 Tom Tromey <tromey@adacore.com>
8885
8886 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
8887 <get_ref_die_offset>: Inline.
8888 <get_ref_die_offset_complaint>: New method.
8889 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
8890 (attribute::get_ref_die_offset_complaint): Rename from
8891 get_ref_die_offset. Just issue complaint.
8892
c17ace43
HD
88932020-05-27 Hannes Domani <ssbssa@yahoo.de>
8894
8895 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
8896
96445f0b
HD
88972020-05-27 Hannes Domani <ssbssa@yahoo.de>
8898
8899 * exec.c (exec_file_attach): Use errno value of first openp failure.
8900
ac637ec3
HD
89012020-05-27 Hannes Domani <ssbssa@yahoo.de>
8902
8903 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
8904 Don't close thread handle.
8905
17ee85fc
TT
89062020-05-27 Tom Tromey <tom@tromey.com>
8907 Simon Marchi <simon.marchi@efficios.com>
8908
8909 * objfiles.h (struct objfile) <partial_symtabs>: Now a
8910 shared_ptr.
8911 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
8912 member.
8913 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
8914 dwarf2_per_bfd_objfile_data_key>: New globals.
8915 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
8916 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
8917 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
8918 shared.
8919 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
8920 short-circuit when sharing.
8921 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
8922 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
8923
39b16f87
SM
89242020-05-27 Simon Marchi <simon.marchi@efficios.com>
8925
8926 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
8927 to...
8928 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
8929 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
8930
fcf23d5b
SM
89312020-05-27 Simon Marchi <simon.marchi@efficios.com>
8932
8933 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
8934 build_name_components, find_name_components_bounds>:
8935 Add per_objfile parameter.
8936 (struct mapped_index) <symbol_name_at>: Likewise.
8937 (struct mapped_debug_names): Remove constructor.
8938 <dwarf2_per_objfile>: Remove field.
8939 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
8940 (mapped_index_base::find_name_components_bounds,
8941 mapped_index_base::build_name_components,
8942 dw2_expand_symtabs_matching_symbol): Likewise.
8943 (class mock_mapped_index) <symbol_name_at>: Likewise.
8944 (check_match): Likewise.
8945 (check_find_bounds_finds): Likewise.
8946 (test_mapped_index_find_name_component_bounds): Update.
8947 (CHECK_MATCH): Update.
8948 (dw2_expand_symtabs_matching): Update.
8949 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
8950 per_objfile parameter.
8951 <find_vec_in_debug_names>: Likewise.
8952 <m_per_objfile>: New field.
8953 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
8954 parameter.
8955 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
8956 (dw2_debug_names_iterator::next): Update.
8957 (dw2_debug_names_lookup_symbol): Update.
8958 (dw2_debug_names_expand_symtabs_for_function): Update.
8959 (dw2_debug_names_map_matching_symbols): Update.
8960 (dw2_debug_names_expand_symtabs_matching): Update.
8961 (dwarf2_read_debug_names): Update.
8962
7188ed02
SM
89632020-05-27 Simon Marchi <simon.marchi@efficios.com>
8964
8965 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
8966 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
8967 move to dwarf2_per_objfile.
8968 <read_in_chain>: Remove.
8969 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
8970 remove_all_cus, age_comp_units>: New methods.
8971 <m_dwarf2_cus>: New member.
8972 (struct dwarf2_per_cu_data) <cu>: Remove.
8973 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
8974 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
8975 moved to methods of dwarf2_per_objfile.
8976 (dwarf2_clear_marks): Remove.
8977 (dwarf2_queue_item::~dwarf2_queue_item): Update.
8978 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
8979 (dwarf2_per_bfd::free_cached_comp_units): Remove.
8980 (dwarf2_per_objfile::remove_all_cus): New.
8981 (class free_cached_comp_units) <~free_cached_comp_units>:
8982 Update.
8983 (load_cu): Update.
8984 (dw2_do_instantiate_symtab): Adjust.
8985 (fill_in_sig_entry_from_dwo_entry): Adjust.
8986 (cutu_reader::init_tu_and_read_dwo_dies): Update.
8987 (cutu_reader::cutu_reader): Likewise.
8988 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
8989 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
8990 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
8991 and dwarf2_per_objfile::age_comp_units.
8992 (load_partial_comp_unit): Update.
8993 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
8994 (process_queue): Likewise.
8995 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
8996 backlink.
8997 (dwarf2_read_addr_index): Likewise.
8998 (follow_die_offset): Likewise.
8999 (dwarf2_fetch_die_loc_sect_off): Likewise.
9000 (dwarf2_fetch_constant_bytes): Likewise.
9001 (dwarf2_fetch_die_type_sect_off): Likewise.
9002 (follow_die_sig_1): Likewise.
9003 (load_full_type_unit): Likewise.
9004 (read_signatured_type): Likewise.
9005 (dwarf2_cu::dwarf2_cu): Don't set cu field.
9006 (dwarf2_cu::~dwarf2_cu): Remove.
9007 (dwarf2_per_objfile::get_cu): New.
9008 (dwarf2_per_objfile::set_cu): New.
9009 (age_cached_comp_units): Rename to...
9010 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
9011 to std::unordered_map.
9012 (free_one_cached_comp_unit): Rename to...
9013 (dwarf2_per_objfile::remove_cu): ... this. Adjust
9014 to std::unordered_map.
9015 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
9016 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
9017 a dwarf2_per_objfile in data.
9018 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
9019 (dwarf2_clear_marks): Remove.
9020
2e671100
SM
90212020-05-27 Simon Marchi <simon.marchi@efficios.com>
9022
9023 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
9024 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
9025 (init_tu_and_read_dwo_dies): Likewise.
9026 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
9027 (cutu_reader::cutu_reader): Likewise.
9028 (load_partial_comp_unit): Likewise.
9029 (process_psymtab_comp_unit): Update.
9030 (build_type_psymtabs_1): Update.
9031 (process_skeletonless_type_unit): Update.
9032 (load_full_comp_unit): Update.
9033 (find_partial_die): Update.
9034 (dwarf2_read_addr_index): Update.
9035 (read_signatured_type): Update.
9036
2e6a9f79
SM
90372020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9038
9039 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
9040 m_header_read_in>: New fields.
9041 <get_header>: New method.
9042 * dwarf2/read.c (per_cu_header_read_in): Remove.
9043 (dwarf2_per_cu_data::get_header): New.
9044 (dwarf2_per_cu_data::addr_size): Update.
9045 (dwarf2_per_cu_data::offset_size): Update.
9046 (dwarf2_per_cu_data::ref_addr_size): Update.
9047
1b555f17
SM
90482020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9049
9050 * dwarf2/read.c (load_cu): Return dwarf2_cu.
9051 (dw2_do_instantiate_symtab): Update.
9052 (queue_and_load_all_dwo_tus): Change parameter from
9053 dwarf2_per_cu_data to dwarf2_cu.
9054 (dwarf2_fetch_die_loc_sect_off): Update.
9055 (dwarf2_fetch_constant_bytes): Update.
9056 (dwarf2_fetch_die_type_sect_off): Update.
9057
8fc0b21d
SM
90582020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9059
9060 * dwarf2/read.c (process_full_comp_unit,
9061 process_full_type_unit): Remove per_cu, per_objfile paramters.
9062 Add dwarf2_cu parameter.
9063 (process_queue): Update.
9064
168c9250
SM
90652020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9066
9067 * dwarf2/read.c (create_cu_from_index_list): Replace
9068 dwarf2_per_objfile parameter with dwarf2_per_bfd.
9069 (create_cus_from_index_list): Likewise.
9070 (create_cus_from_index): Likewise.
9071 (create_signatured_type_table_from_index): Likewise.
9072 (create_cus_from_debug_names_list): Likewise.
9073 (create_cus_from_debug_names): Likewise.
9074 (dwarf2_read_gdb_index): Update.
9075 (dwarf2_read_debug_names): Update.
9076
e286671b
TT
90772020-05-27 Tom Tromey <tom@tromey.com>
9078 Simon Marchi <simon.marchi@efficios.com>
9079
9080 * dwarf2/read.h (struct dwarf2_per_objfile)
9081 <get_type_for_signatured_type, set_type_for_signatured_type>:
9082 New methods.
9083 <m_type_map>: New member.
9084 (struct signatured_type) <type>: Remove.
9085 * dwarf2/read.c
9086 (dwarf2_per_objfile::get_type_for_signatured_type,
9087 dwarf2_per_objfile::set_type_for_signatured_type): New.
9088 (get_signatured_type): Use new methods.
9089
8adb8487
TT
90902020-05-27 Tom Tromey <tom@tromey.com>
9091 Simon Marchi <simon.marchi@efficios.com>
9092
9093 * dwarf2/read.h (struct type_unit_group_unshareable): New.
9094 (struct dwarf2_per_objfile) <type_units>: New member.
9095 <get_type_unit_group_unshareable>: New method.
9096 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
9097 num_symtabs, symtabs>: Remove; move to
9098 type_unit_group_unshareable.
9099 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
9100 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
9101 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
9102
127bbf4b
SM
91032020-05-27 Simon Marchi <simon.marchi@efficios.com>
9104
9105 * dwarf2/read.h (struct dwarf2_per_cu_data):
9106 <dwarf2_per_objfile>: Remove.
9107 * dwarf2/read.c (create_cu_from_index_list): Don't assign
9108 dwarf2_per_objfile.
9109 (create_signatured_type_table_from_index): Likewise.
9110 (create_signatured_type_table_from_debug_names): Likewise.
9111 (create_debug_type_hash_table): Likewise.
9112 (fill_in_sig_entry_from_dwo_entry): Likewise.
9113 (create_type_unit_group): Likewise.
9114 (read_comp_units_from_section): Likewise.
9115 (create_cus_hash_table): Likewise.
9116
f6e649dd
SM
91172020-05-27 Simon Marchi <simon.marchi@efficios.com>
9118
9119 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
9120 dwarf2_per_cu_data::dwarf2_per_objfile.
9121 (compute_compunit_symtab_includes): Likewise.
9122 (dwarf2_cu::start_symtab): Likewise.
9123
aa66c379
SM
91242020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9125
9126 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
9127 parameter.
9128 * dwarf2/read.c (get_die_type_at_offset): Likewise.
9129 (read_namespace_alias): Update.
9130 (lookup_die_type): Update.
9131 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
9132 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
9133 Update.
9134 (disassemble_dwarf_expression): Update.
9135
120ce1b5
SM
91362020-05-27 Simon Marchi <simon.marchi@efficios.com>
9137
9138 * dwarf2/read.h (struct dwarf2_queue_item): Add
9139 dwarf2_per_objfile parameter, assign new parameter.
9140 <per_objfile>: New field.
9141 * dwarf2/read.c (free_one_cached_comp_unit): Add
9142 dwarf2_per_objfile parameter.
9143 (queue_comp_unit): Likewise.
9144 (dw2_do_instantiate_symtab): Update.
9145 (process_psymtab_comp_unit): Update.
9146 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
9147 (process_imported_unit_die): Update.
9148 (queue_and_load_dwo_tu): Update.
9149 (follow_die_offset): Update.
9150 (follow_die_sig_1): Update.
9151
9f47c707
SM
91522020-05-27 Simon Marchi <simon.marchi@efficios.com>
9153
9154 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
9155 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
9156 (read_call_site_scope): Assign per_objfile.
9157 (dwarf2_per_cu_data::objfile): Remove.
9158 * gdbtypes.h (struct call_site) <per_objfile>: New member.
9159 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
9160 dwarf2_per_objfile parameter.
9161 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
9162 dwarf2_per_objfile parameter.
9163 (dwarf_expr_reg_to_entry_parameter): Add output
9164 dwarf2_per_objfile parameter.
9165 (locexpr_get_frame_base): Update.
9166 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
9167 <push_dwarf_reg_entry_value>: Update.
9168 <call_site_to_target_addr>: Update.
9169 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
9170 parameter.
9171 (value_of_dwarf_reg_entry): Update.
9172 (rw_pieced_value): Update.
9173 (indirect_synthetic_pointer): Update.
9174 (dwarf2_evaluate_property): Update.
9175 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
9176 parameter.
9177 (locexpr_read_variable): Update.
9178 (locexpr_get_symbol_read_needs): Update.
9179 (loclist_read_variable): Update.
9180
14095eb3
SM
91812020-05-27 Simon Marchi <simon.marchi@efficios.com>
9182
9183 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9184 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9185 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9186 parameter.
9187 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9188 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9189 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9190 parameter.
9191 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
9192 sect_variable_value): Add dwarf2_per_objfile parameter.
9193 (class dwarf_evaluate_loc_desc) <dwarf_call,
9194 dwarf_variable_value>: Update.
9195 (fetch_const_value_from_synthetic_pointer): Add
9196 dwarf2_per_objfile parameter.
9197 (fetch_const_value_from_synthetic_pointer): Update.
9198 (coerced_pieced_ref): Update.
9199 (class symbol_needs_eval_context) <dwarf_call,
9200 dwarf_variable_value>: Update.
9201 (dwarf2_compile_expr_to_ax): Update.
9202
3c3cd3d4
SM
92032020-05-27 Simon Marchi <simon.marchi@efficios.com>
9204
9205 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
9206 parameter.
9207 (dwarf2_evaluate_loc_desc_full): Update.
9208
82ca3f51
SM
92092020-05-27 Simon Marchi <simon.marchi@efficios.com>
9210
9211 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
9212 parameter.
9213 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
9214 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
9215 dwarf2_per_objfile parameter.
9216 (decode_debug_loc_dwo_addresses): Likewise.
9217 (dwarf2_find_location_expression): Update.
9218 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
9219 (locexpr_describe_location_piece): Add dwarf2_per_objfile
9220 parameter.
9221 (disassemble_dwarf_expression): Add dwarf2_per_objfile
9222 parameter.
9223 (locexpr_describe_location_1): Likewise.
9224 (locexpr_describe_location): Update.
9225
4b167ea1
SM
92262020-05-27 Simon Marchi <simon.marchi@efficios.com>
9227
9228 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
9229 Remove.
9230 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
9231 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
9232 (dwarf2_compile_property_to_c): Update.
9233 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
9234 use text offset from objfile.
9235 (locexpr_tracepoint_var_ref): Update.
9236 (locexpr_generate_c_location): Update.
9237 (loclist_describe_location): Update.
9238 (loclist_tracepoint_var_ref): Update.
9239 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
9240 dwarf2_per_objfile parameter.
9241 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
9242 use text offset from objfile.
9243 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
9244
89b07335
SM
92452020-05-27 Simon Marchi <simon.marchi@efficios.com>
9246
9247 * dwarf2/expr.h (struct dwarf_expr_context)
9248 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
9249 <offset>: Remove.
9250 <per_objfile>: New member.
9251 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
9252 dwarf2_per_objfile parameter. Don't set offset, set
9253 per_objfile.
9254 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
9255 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
9256 a dwarf2_per_objfile object instead of an offset.
9257 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
9258 constructor.
9259 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
9260 to dwarf2_expr_executor constructor. Don't set offset.
9261 (dwarf2_fetch_cfa_info): Update.
9262 (struct dwarf2_frame_cache) <text_offset>: Remove.
9263 <per_objfile>: New field.
9264 (dwarf2_frame_cache): Update.
9265 (dwarf2_frame_prev_register): Update.
9266 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9267 <dwarf_evaluate_loc_desc>: Add constructor.
9268 (dwarf2_evaluate_loc_desc_full): Update.
9269 (dwarf2_locexpr_baton_eval): Update.
9270 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
9271 Add constructor.
9272 (dwarf2_loc_desc_get_symbol_read_needs): Update.
9273
293e7e51
SM
92742020-05-27 Simon Marchi <simon.marchi@efficios.com>
9275
9276 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
9277 addr_sized_int_type>: Move to dwarf2_cu.
9278 <int_type>: Move to dwarf2_per_objfile.
9279 (struct dwarf2_per_objfile) <int_type>: Move here.
9280 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
9281 addr_sized_int_type>: Move here.
9282 (read_func_scope): Update.
9283 (read_array_type): Update.
9284 (read_tag_string_type): Update.
9285 (attr_to_dynamic_prop): Update.
9286 (dwarf2_per_cu_data::int_type): Rename to...
9287 (dwarf2_per_objfile::int_type): ... this.
9288 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
9289 (dwarf2_cu::addr_sized_int_type): ... this.
9290 (read_subrange_type): Update.
9291 (dwarf2_per_cu_data::addr_type): Rename to...
9292 (dwarf2_cu::addr_type): ... this.
9293 (set_die_type): Update.
9294
64874a40
SM
92952020-05-27 Simon Marchi <simon.marchi@efficios.com>
9296
9297 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
9298 data through per_cu->cu.
9299
4ab09049
SM
93002020-05-27 Simon Marchi <simon.marchi@efficios.com>
9301
9302 * dwarf2/read.c (lookup_dwo_comp_unit): Change
9303 dwarf2_per_cu_data parameter fo dwarf2_cu.
9304 (lookup_dwo_type_unit): Likewise.
9305 (read_cutu_die_from_dwo): Likewise.
9306 (lookup_dwo_unit): Likewise.
9307 (open_and_init_dwo_file): Likewise.
9308 (lookup_dwo_cutu): Likewise.
9309 (lookup_dwo_comp_unit): Likewise.
9310 (lookup_dwo_type_unit): Likewise.
9311 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9312 (cutu_reader::cutu_reader): Update.
9313
47b14e86
SM
93142020-05-27 Simon Marchi <simon.marchi@efficios.com>
9315
9316 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
9317 parameter.
9318 (process_full_type_unit): Likewise.
9319 (process_queue): Update.
9320
43182c09
SM
93212020-05-27 Simon Marchi <simon.marchi@efficios.com>
9322
9323 * dwarf2/read.c (recursively_compute_inclusions): Add
9324 dwarf2_per_objfile parameter.
9325 (compute_compunit_symtab_includes): Likewise.
9326 (process_cu_includes): Update.
9327
7aa104c4
SM
93282020-05-27 Simon Marchi <simon.marchi@efficios.com>
9329
9330 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
9331 parameter.
9332 (create_type_unit_group): Update.
9333 (process_psymtab_comp_unit_reader): Update.
9334 (build_type_psymtabs_reader): Update.
9335
e3beb21d
SM
93362020-05-27 Simon Marchi <simon.marchi@efficios.com>
9337
9338 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
9339 object through m_this_cu->cu.
9340
d460f660
SM
93412020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9342
9343 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
9344 the info parameter.
9345 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
9346
ab432490
SM
93472020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9348
9349 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
9350 per_objfile parameter.
9351 (load_full_type_unit): Add per_objfile parameter.
9352 (read_signatured_type): Likewise.
9353 (load_full_comp_unit): Likewise.
9354 (load_cu): Likewise.
9355 (dw2_do_instantiate_symtab): Likewise.
9356 (dw2_get_file_names): Likewise.
9357 (dw2_map_symtabs_matching_filename): Update.
9358 (dw_expand_symtabs_matching_file_matcher): Update.
9359 (dw2_map_symbol_filenames): Update.
9360 (process_psymtab_comp_unit): Add per_objfile parameter.
9361 (build_type_psymtabs_1): Update.
9362 (process_skeletonless_type_unit): Update.
9363 (dwarf2_build_psymtabs_hard): Update.
9364 (load_partial_comp_unit): Add per_objfile parameter.
9365 (scan_partial_symbols): Update.
9366 (load_full_comp_unit): Add per_objfile parameter.
9367 (process_imported_unit_die): Update.
9368 (create_cus_hash_table): Update.
9369 (find_partial_die): Update.
9370 (dwarf2_read_addr_index): Update.
9371 (follow_die_offset): Update.
9372 (dwarf2_fetch_die_loc_sect_off): Update.
9373 (dwarf2_fetch_constant_bytes): Update.
9374 (dwarf2_fetch_die_type_sect_off): Update.
9375 (follow_die_sig_1): Update.
9376 (load_full_type_unit): Add per_objfile parameter.
9377 (read_signatured_type): Likewise.
9378
313bad1b
SM
93792020-05-27 Simon Marchi <simon.marchi@efficios.com>
9380
9381 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
9382 of objfile_name.
9383
c3699833
SM
93842020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9385
9386 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
9387 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9388 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
9389 field.
9390 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9391 (create_cus_from_index): Update.
9392 (dwarf2_read_gdb_index): Update.
9393 (create_cus_from_debug_names): Update.
9394 (dwarf2_read_debug_names): Update.
9395 (get_abbrev_section_for_cu): Update.
9396 (create_all_comp_units): Update.
9397 (read_attribute_value): Update.
9398 (get_debug_line_section): Update.
9399 * dwarf2/index-cache.c (index_cache::store): Update.
9400 * dwarf2/index-write.c (save_gdb_index_command): Update.
9401 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
9402
1859c670
SM
94032020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9404
9405 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
9406 member.
9407 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
9408 dwarf2_per_cu_data::per_bfd.
9409 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
9410 (create_type_unit_group): Likewise.
9411 (queue_comp_unit): Remove reference to
9412 per_cu->dwarf2_per_objfile.
9413 (maybe_queue_comp_unit): Likewise.
9414 (fill_in_sig_entry_from_dwo_entry): Assign new field.
9415 (create_cus_hash_table): Assign new field.
9416
5e22e966
SM
94172020-05-27 Simon Marchi <simon.marchi@efficios.com>
9418
9419 * dwarf2/read.c: Replace
9420 dwarf2_cu->per_cu->dwarf2_per_objfile references with
9421 dwarf2_cu->per_objfile throughout.
9422
97a1449a
SM
94232020-05-27 Simon Marchi <simon.marchi@efficios.com>
9424
9425 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
9426 parameter, don't use per_cu->dwarf2_per_objfile.
9427 (dw2_instantiate_symtab): Likewise.
9428 (dw2_find_last_source_symtab): Update.
9429 (dw2_map_expand_apply): Update.
9430 (dw2_lookup_symbol): Update.
9431 (dw2_expand_symtabs_for_function): Update.
9432 (dw2_expand_all_symtabs): Update.
9433 (dw2_expand_symtabs_with_fullname): Update.
9434 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
9435 don't use per_cu->dwarf2_per_objfile.
9436 (dw2_expand_marked_cus): Update.
9437 (dw2_find_pc_sect_compunit_symtab): Update.
9438 (dw2_debug_names_lookup_symbol): Update.
9439 (dw2_debug_names_expand_symtabs_for_function): Update.
9440 (dw2_debug_names_map_matching_symbols): Update.
9441 (dwarf2_psymtab::expand_psymtab): Update.
9442
9e021579
SM
94432020-05-27 Simon Marchi <simon.marchi@efficios.com>
9444
9445 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
9446 <per_objfile>: New member.
9447 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
9448 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
9449 call to dwarf2_cu.
9450 (cutu_reader::cutu_reader): Update.
9451 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
9452
ae090bdb
SM
94532020-05-27 Simon Marchi <simon.marchi@efficios.com>
9454
9455 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
9456 struct dwarf2_per_objfile.
9457 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
9458 dwarf2_per_bfd.
9459 * dwarf2/read.c (set_die_type): Update.
9460 (get_die_type_at_offset): Update.
9461
af758d11
SM
94622020-05-27 Tom Tromey <tom@tromey.com>
9463 Simon Marchi <simon.marchi@efficios.com>
9464
9465 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
9466 method.
9467 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
9468 get_symtab, set_symtab>: New methods.
9469 <m_symtabs>: New field.
9470 (struct dwarf2_psymtab): Derive from partial_symtab.
9471 <readin_p, get_compunit_symtab>: Declare methods.
9472 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
9473 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
9474 New methods.
9475 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
9476 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
9477 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
9478 (dw2_symtab_iter_next, dw2_print_stats)
9479 (dw2_expand_symtabs_with_fullname)
9480 (dw2_expand_symtabs_matching_one)
9481 (dw_expand_symtabs_matching_file_matcher)
9482 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
9483 (dw2_debug_names_iterator::next)
9484 (dw2_debug_names_map_matching_symbols)
9485 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
9486 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
9487 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
9488 New methods.
9489 (get_compunit_symtab, process_full_comp_unit)
9490 (process_full_type_unit): Update.
9491 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
9492
5989a64e
SM
94932020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9494
9495 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
9496 then introduce a new dwarf2_per_objfile type.
9497 <read_line_string>: Move to the new dwarf2_per_objfile type.
9498 <objfile>: Likewise.
9499 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
9500 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
9501 dwarf2_per_objfile->per_bfd.
9502 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
9503 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
9504 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
9505 (dwarf2_per_bfd::free_cached_comp_units): ... this.
9506 (dwarf2_has_info): Allocate dwarf2_per_bfd.
9507 (dwarf2_per_objfile::locate_sections): Rename to...
9508 (dwarf2_per_bfd::locate_sections): ... this.
9509 (dwarf2_per_objfile::get_cutu): Rename to...
9510 (dwarf2_per_bfd::get_cutu): ... this.
9511 (dwarf2_per_objfile::get_cu): Rename to...
9512 (dwarf2_per_bfd::get_cu): ... this.
9513 (dwarf2_per_objfile::get_tu): Rename to...
9514 (dwarf2_per_bfd::get_tu): ... this.
9515 (dwarf2_per_objfile::allocate_per_cu): Rename to...
9516 (dwarf2_per_bfd::allocate_per_cu): ... this.
9517 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
9518 (dwarf2_per_bfd::allocate_signatured_type): ... this.
9519 (get_gdb_index_contents_ftype): Change parameter from
9520 dwarf2_per_objfile to dwarf2_per_bfd.
9521 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
9522 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
9523
a50264ba
TT
95242020-05-27 Tom Tromey <tom@tromey.com>
9525 Simon Marchi <simon.marchi@efficios.com>
9526
9527 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
9528 (allocate_piece_closure): Set "per_objfile" member.
9529 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
9530 (locexpr_describe_location, loclist_describe_location): Use new
9531 member.
9532 * dwarf2/read.c (read_call_site_scope)
9533 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
9534 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
9535 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
9536 handle_data_member_location): Set per_objfile member.
9537 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
9538 member.
9539 (struct dwarf2_loclist_baton) <per_objfile>: New member.
9540
d3473f0c
TT
95412020-05-27 Tom Tromey <tom@tromey.com>
9542
9543 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
9544 allocate_signatured_type>: Declare new methods.
9545 <m_num_psymtabs>: New member.
9546 (struct dwarf2_per_cu_data) <index>: New member.
9547 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
9548 (dwarf2_per_objfile::allocate_signatured_type): New methods.
9549 (create_cu_from_index_list): Use allocate_per_cu.
9550 (create_signatured_type_table_from_index)
9551 (create_signatured_type_table_from_debug_names)
9552 (create_debug_type_hash_table, add_type_unit)
9553 (read_comp_units_from_section): Use allocate_signatured_type.
9554
5717c425
TT
95552020-05-27 Tom Tromey <tom@tromey.com>
9556
9557 * psymtab.c (partial_map_expand_apply)
9558 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9559 (psym_lookup_global_symbol_language)
9560 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9561 (psym_print_stats, psym_expand_symtabs_for_function)
9562 (psym_map_symbol_filenames, psym_map_matching_symbols)
9563 (psym_expand_symtabs_matching)
9564 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9565 (maintenance_check_psymtabs): Update.
9566 * psympriv.h (struct partial_symtab) <readin_p,
9567 get_compunit_symtab>: Add objfile parameter.
9568 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
9569 Likewise.
9570 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
9571 get_compunit_symtab>: Likewise.
9572 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
9573
45940949
TT
95742020-05-27 Tom Tromey <tom@tromey.com>
9575
9576 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
9577 member.
9578 * dwarf2/read.c (delete_file_name_entry): Fix comment.
9579 (create_cu_from_index_list)
9580 (create_signatured_type_table_from_index)
9581 (create_signatured_type_table_from_debug_names)
9582 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
9583 (dwarf2_create_include_psymtab)
9584 (create_debug_type_hash_table, add_type_unit)
9585 (create_type_unit_group, read_comp_units_from_section)
9586 (dwarf2_compute_name, create_cus_hash_table)
9587 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9588 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
9589 obstack.
9590 (dw2_get_real_path): Likewise. Change argument to
9591 dwarf2_per_objfile.
9592
f8c6d152
LM
95932020-05-27 Luis Machado <luis.machado@linaro.org>
9594
9595 PR tdep/26000
9596 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
9597 for ldrd (immediate).
9598
e98d2e6d
PW
95992020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9600
9601 * command.h: Add comment giving the name of class_tui.
9602 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
9603 create the fake command for the help for class_tui.
9604
53a47a3e
TT
96052020-05-26 Tom Tromey <tromey@adacore.com>
9606
9607 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
9608 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
9609 (val_atr): New function.
9610 (value_val_atr): Use it.
9611 * ada-valprint.c (print_optional_low_bound): Change low bound
9612 handling for enums.
9613 (val_print_packed_array_elements): Don't call discrete_position.
9614 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
9615 discrete_position for enum types.
9616 * language.c (default_print_array_index): Change type.
9617 * language.h (struct language_defn) <la_print_array_index>: Add
9618 index_type parameter, change type of index_value.
9619 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
9620 (default_print_array_index): Update.
9621 * valprint.c (maybe_print_array_index): Don't call
9622 value_from_longest. Update.
9623 (value_print_array_elements): Don't call discrete_position.
9624
0bc2354b
TT
96252020-05-26 Tom Tromey <tromey@adacore.com>
9626
9627 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
9628 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
9629
1218a4bf
CDA
96302020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
9631
9632 PR gdb/13519
9633 * avr-tdep.c (avr_integer_to_address): Return data or code
9634 address accordingly to the second 'type' argument of the
9635 function.
9636
92651b1d
MW
96372020-05-25 Michael Weghorn <m.weghorn@posteo.de>
9638
9639 * infcmd.c, inferior.h: (construct_inferior_arguments):
9640 Moved function from here to gdbsupport/common-inferior.{h,cc}
9641
0a4f5f8c
TT
96422020-05-23 Tom Tromey <tom@tromey.com>
9643
9644 Revert commit eca1f90c:
9645 * NEWS: Remove entry for completion styling.
9646 * completer.c (_rl_completion_prefix_display_length): Move
9647 declaration later.
9648 (gdb_fnprint): Revert.
9649 (gdb_display_match_list_1): Likewise.
9650 * cli/cli-style.c (completion_prefix_style)
9651 (completion_difference_style, completion_suffix_style): Remove.
9652 (_initialize_cli_style): Revert.
9653 * cli/cli-style.h (completion_prefix_style)
9654 (completion_difference_style, completion_suffix_style): Don't
9655 declare.
9656
e08bd6c5
PA
96572020-05-24 Pedro Alves <palves@redhat.com>
9658
9659 * symtab.c (completion_list_add_name): Return boolean indication
9660 of whether the symbol matched.
9661 (completion_list_add_symbol): Don't try to remove C++ aliases if
9662 the symbol didn't match in the first place.
9663 * symtab.h (completion_list_add_name): Return bool.
9664
ceacbf6e
SM
96652020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
9666
9667 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
9668 type::field.
9669
26f16254
JB
96702020-05-23 Joel Brobecker <brobecker@adacore.com>
9671
9672 GDB 9.2 released.
9673
eca1f90c
TT
96742020-05-23 Tom Tromey <tom@tromey.com>
9675
9676 * NEWS: Add entry for completion styling.
9677 * completer.c (_rl_completion_prefix_display_length): Move
9678 declaration earlier.
9679 (gdb_fnprint): Use completion_style.
9680 (gdb_display_match_list_1): Likewise.
9681 * cli/cli-style.c (completion_prefix_style)
9682 (completion_difference_style, completion_suffix_style): New
9683 globals.
9684 (_initialize_cli_style): Register new globals.
9685 * cli/cli-style.h (completion_prefix_style)
9686 (completion_difference_style, completion_suffix_style): Declare.
9687
51e2cfa2
PA
96882020-05-23 Pedro Alves <palves@redhat.com>
9689
9690 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
9691 (parse_escape): Use ISDIGIT instead of isdigit.
9692 (puts_debug): Use gdb_isprint instead of isprint.
9693 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
9694 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
9695 ISSPACE instead of isspace.
9696 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
9697 instead of isspace.
9698 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
9699 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
9700 instead of isxdigit and ISDIGIT instead of isdigit.
9701
80fc5e77
SM
97022020-05-22 Simon Marchi <simon.marchi@efficios.com>
9703
9704 * gdbtypes.h (struct type) <field>: New method.
9705 (TYPE_FIELDS): Remove, replace all uses with either type::fields
9706 or type::field.
9707
3cabb6b0
SM
97082020-05-22 Simon Marchi <simon.marchi@efficios.com>
9709
9710 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
9711 (TYPE_FIELDS): Use type::fields. Change all call sites that
9712 modify the propery to use type::set_fields instead.
9713
1f704f76
SM
97142020-05-22 Simon Marchi <simon.marchi@efficios.com>
9715
9716 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
9717 type::num_fields instead.
9718
5e33d5f4
SM
97192020-05-22 Simon Marchi <simon.marchi@efficios.com>
9720
9721 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
9722 methods.
9723 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
9724 that modify the number of fields to use type::set_num_fields
9725 instead.
9726
9392ebb3
TT
97272020-05-22 Tom Tromey <tromey@adacore.com>
9728
9729 * compile/compile-object-load.h (munmap_list_free): Don't
9730 declare.
9731
7c13f4e8
AB
97322020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
9733
9734 * annotate.c (annotate_source_line): Update return type, add call
9735 to update current symtab and line.
9736 * annotate.h (annotate_source_line): Update return type, and
9737 extend header comment.
9738 * source.c (info_line_command): Check annotation_level before
9739 calling annotate_source_line.
9740 * stack.c (print_frame_info): If calling annotate_source_line
9741 returns true, then don't print any other source line information.
9742
aa370940
SM
97432020-05-21 Simon Marchi <simon.marchi@efficios.com>
9744
9745 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
9746
84d53fa9
SM
97472020-05-21 Simon Marchi <simon.marchi@efficios.com>
9748
9749 * coffread.c (patch_type): Remove NULL check before xfree.
9750 * corefile.c (set_gnutarget): Likewise.
9751 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
9752 * exec.c (build_section_table): Likewise.
9753 * remote.c (remote_target::pass_signals): Likewise.
9754 * utils.c (n_spaces): Likewise.
9755 * cli/cli-script.c (document_command): Likewise.
9756 * i386-windows-tdep.c (core_process_module_section): Likewise.
9757 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
9758
9d428aae
SM
97592020-05-20 Simon Marchi <simon.marchi@efficios.com>
9760
9761 * symfile.c (reread_symbols): Clear objfile's section_offsets
9762 vector and section indices, re-compute them by calling
9763 sym_offsets.
9764
250106a7
TT
97652020-05-20 Tom Tromey <tromey@adacore.com>
9766
9767 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 9768 (desc_one_bound, desc_index_type): Compute field name.
250106a7 9769
9a0bacfb
TV
97702020-05-20 Tom de Vries <tdevries@suse.de>
9771
9772 PR symtab/25833
9773 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
9774
7b958a48
AM
97752020-05-20 Alan Modra <amodra@gmail.com>
9776
9777 PR 25993
9778 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
9779 bfd_set_filename.
9780 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
9781 passed to bfd_set_filename.
9782 * symfile-mem.c (add_vsyscall_page): Likewise for string
9783 passed to symbol_file_add_from_memory.
9784 (symbol_file_add_from_memory): Make name param a const char* and
9785 don't strdup.
9786
c7e97679
AM
97872020-05-20 Alan Modra <amodra@gmail.com>
9788
9789 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
9790 rather than accessing bfd->filename directly.
9791 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
9792 and use bfd_section_name.
9793 * dwarf2/frame.c (decode_frame_entry): Likewise.
9794 * exec.c (exec_set_section_address): Likewise.
9795 * solib-aix.c (solib_aix_bfd_open): Likewise.
9796 * stap-probe.c (get_stap_base_address): Likewise.
9797 * symfile.c (reread_symbols): Likewise.
9798
563c591b
TT
97992020-05-19 Tom Tromey <tromey@adacore.com>
9800
9801 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
9802
f408d82c
SM
98032020-05-19 Simon Marchi <simon.marchi@efficios.com>
9804
9805 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
9806
98c59b52
PA
98072020-05-19 Pedro Alves <palves@redhat.com>
9808
9809 * NEWS (set exec-file-mismatch): Adjust entry.
9810 * exec.c: Include "build-id.h".
9811 (validate_exec_file): Try to match build IDs instead of filenames.
9812 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
9813 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
9814 and pass down 'warn_if_slow'.
9815 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
9816 gdb_bfd_open_closure to pass it down.
9817 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
9818
4111f652
PA
98192020-05-19 Pedro Alves <palves@redhat.com>
9820
9821 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
9822 * target.c (target_fileio_open_1): Rename to target_fileio_open
9823 and make extern. Use bool.
9824 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
9825 (target_fileio_read_alloc_1): Adjust.
9826 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
9827 (target_fileio_open_warn_if_slow): Delete declaration.
9828
ad80db5b
PA
98292020-05-19 Pedro Alves <palves@redhat.com>
9830
9831 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
9832 Adjust all callers.
9833
1d6ce4d3
YS
98342020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
9835
9836 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
9837 whether disp is negative.
9838
9005fbbb
SM
98392020-05-19 Simon Marchi <simon.marchi@efficios.com>
9840
9841 * symfile.h (struct symfile_segment_data)
9842 <~symfile_segment_data>: Remove.
9843 <segment_info>: Change to std::vector.
9844 * symfile.c (default_symfile_segments): Update.
9845 * elfread.c (elf_symfile_segments): Update.
9846
68b888ff
SM
98472020-05-19 Simon Marchi <simon.marchi@efficios.com>
9848
9849 * symfile.h (struct symfile_segment_data) <struct segment>: New.
9850 <segments>: New.
9851 <segment_bases, segment_sizes>: Remove.
9852 * symfile.c (default_symfile_segments): Update.
9853 * elfread.c (elf_symfile_segments): Update.
9854 * remote.c (remote_target::get_offsets): Update.
9855 * solib-target.c (solib_target_relocate_section_addresses):
9856 Update.
9857
62982abd
SM
98582020-05-19 Simon Marchi <simon.marchi@efficios.com>
9859
9860 * symfile.h (struct symfile_segment_data): Initialize fields.
9861 <~symfile_segment_data>: Add.
9862 (symfile_segment_data_up): New.
9863 (struct sym_fns) <sym_segments>: Return a
9864 symfile_segment_data_up.
9865 (default_symfile_segments): Return a symfile_segment_data_up.
9866 (free_symfile_segment_data): Remove.
9867 (get_symfile_segment_data): Return a symfile_segment_data_up.
9868 * symfile.c (default_symfile_segments): Likewise.
9869 (get_symfile_segment_data): Likewise.
9870 (free_symfile_segment_data): Remove.
9871 (symfile_find_segment_sections): Update.
9872 * elfread.c (elf_symfile_segments): Return a
9873 symfile_segment_data_up.
9874 * remote.c (remote_target::get_offsets): Update.
9875 * solib-target.c (solib_target_relocate_section_addresses):
9876 Update.
9877 * symfile-debug.c (debug_sym_segments): Return a
9878 symfile_segment_data_up.
9879
7f204339
RO
98802020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9881
e52a0f1b
RO
9882 PR build/25981
9883 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
9884 Hardcode register numbers.
9885
7f204339
RO
9886 PR build/25981
9887 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
9888 procfs_find_LDT_entry): Remove.
9889 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
9890 procfs_find_LDT_entry): Remove.
9891 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
9892 Remove.
9893
7f32a4d5
PA
98942020-05-17 Pedro Alves <palves@redhat.com>
9895 Andrew Burgess <andrew.burgess@embecosm.com>
9896 Keno Fischer <keno@juliacomputing.com>
9897
9898 PR gdb/25741
9899 * breakpoint.c (build_target_condition_list): Update comments.
9900 (build_target_command_list): Update comments and skip matching
9901 locations.
9902 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
9903 a separate function. Simplify "set breakpoint auto-hw off"
9904 handling.
9905 (insert_breakpoints): Update comment.
9906 (tracepoint_locations_match): New parameter. For breakpoints,
9907 compare location types too, if the caller wants to.
9908 (handle_automatic_hardware_breakpoints): New functions.
9909 (bp_location_is_less_than): Also sort by location type and
9910 hardware breakpoint length.
9911 (update_global_location_list): Handle "set breakpoint auto-hw on"
9912 here.
9913 (update_breakpoint_locations): Ask breakpoint_locations_match to
9914 ignore location types.
9915
7d93a1e0
SM
99162020-05-16 Simon Marchi <simon.marchi@efficios.com>
9917
9918 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
9919 type::name instead.
9920
d0e39ea2
SM
99212020-05-16 Simon Marchi <simon.marchi@efficios.com>
9922
9923 * gdbtypes.h (struct type) <name, set_name>: New methods.
9924 (TYPE_CODE): Use type::name. Change all call sites used to set
9925 the name to use type::set_name instead.
9926
2dab0c7b
TT
99272020-05-16 Tom Tromey <tom@tromey.com>
9928
9929 * top.c (quit_force): Update.
9930 * infrun.c (handle_no_resumed): Update.
9931 * top.h (all_uis): New function.
9932 (ALL_UIS): Remove.
9933
59f7bd8d
SM
99342020-05-16 Simon Marchi <simon.marchi@efficios.com>
9935
9936 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
9937
9bf058f0
PA
99382020-05-16 Pedro Alves <palves@redhat.com>
9939
9940 * ia64-linux-nat.c
9941 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
9942 Declare method.
9943 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
9944
8f86ae1a
SM
99452020-05-15 Simon Marchi <simon.marchi@efficios.com>
9946
9947 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
9948 (sparc64_adi_info): Likewise.
9949
d6bc0792
TT
99502020-05-15 Tom Tromey <tom@tromey.com>
9951
9952 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
9953 block_objfile.
9954 (lookup_objfile_from_block): Remove.
9955 (lookup_symbol_in_block, lookup_symbol_in_static_block)
9956 (lookup_global_symbol): Use block_objfile.
9957 * symtab.h (lookup_objfile_from_block): Don't declare.
9958 * printcmd.c (clear_dangling_display_expressions): Use
9959 block_objfile.
9960 * parse.c (operator_check_standard): Use block_objfile.
9961
8c14c3a3
TT
99622020-05-15 Tom Tromey <tom@tromey.com>
9963
9964 * language.c (language_alloc_type_symbol): Set
9965 SYMBOL_SECTION.
9966 * symtab.c (initialize_objfile_symbol): Remove.
9967 (allocate_symbol): Remove.
9968 (allocate_template_symbol): Remove.
9969 * dwarf2/read.c (fixup_go_packaging): Use "new".
9970 (new_symbol): Use "new".
9971 (read_variable): Don't call initialize_objfile_symbol. Use
9972 "new".
9973 (read_func_scope): Use "new".
9974 * xcoffread.c (process_xcoff_symbol): Don't call
9975 initialize_objfile_symbol.
9976 (SYMBOL_DUP): Remove.
9977 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
9978 "new".
9979 * symtab.h (allocate_symbol, initialize_objfile_symbol)
9980 (allocate_template_symbol): Don't declare.
9981 (struct symbol): Add copy constructor. Change defaults.
9982 * jit.c (finalize_symtab): Use "new".
9983 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
9984 Use "new".
9985 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
9986 (common_block_end): Use "new".
9987 * mdebugread.c (parse_symbol): Use "new".
9988 (new_symbol): Likewise.
9989
5b4a1a8d
PW
99902020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9991
9992 * NEWS: Mention changes to help and apropos.
9993
57b4f16e
PW
99942020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9995
9996 * command.h (enum command_class): Improve comments, document
9997 that class_alias is for user-defined aliases, give the class
9998 name for each class, remove unused class_xdb.
9999 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
10000 * breakpoint.c (_initialize_breakpoint): Replace class_alias
10001 by a precise class.
10002 * infcmd.c (_initialize_infcmd): Likewise.
10003 * reverse.c (_initialize_reverse): Likewise.
10004 * stack.c (_initialize_stack): Likewise.
10005 * symfile.c (_initialize_symfile): Likewise.
10006 * tracepoint.c (_initialize_tracepoint): Likewise.
10007
7c05caf7
PW
100082020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10009
10010 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
10011 when their aliased command is traversed.
10012 (help_cmd): Add fput_command_names_styled call to
10013 output command name and aliases when command has an alias.
10014
3b3aaacb
PW
100152020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10016
10017 * cli/cli-decode.h (help_cmd_list): Remove declaration.
10018 * cli/cli-decode.c (help_cmd_list): Declare as static,
10019 remove prefix argument, use bool for recurse arg, rework to show the aliases of
10020 a command together with the command.
10021 (fput_command_name_styled, fput_command_names_styled): New functions.
10022 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
10023 fput_command_name_styled.
10024 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
10025 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
10026
7aa1b46f
PW
100272020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10028
10029 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
10030 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
10031 * command.h (cmd_show_list): Likewise.
10032 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
10033 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
10034
89bcba74
PW
100352020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10036
10037 * unittests/command-def-selftests.c (traverse_command_structure):
10038 Verify all commands of a list have the same prefix command and
10039 that only the top cmdlist commands have a null prefix.
10040
3f4d92eb
PW
100412020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10042
10043 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
10044 as prefix, not one of its aliases.
10045 (set_cmd_prefix): Remove.
10046 (do_add_cmd): Centralize the setting of the prefix of a command, when
10047 command is defined after its full chain of prefix commands.
10048 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
10049 (add_setshow_cmd_full): Likewise.
10050 (update_prefix_field_of_prefixed_commands): New function.
10051 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
10052 update_prefix_field_of_prefixed_commands.
10053 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
10054 addresses of remote_set_cmdlist and remote_show_cmdlist given
10055 as argument, not the address of an argument.
10056 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
10057 * gdb/remote.c (_initialize_remote): Likewise.
10058
0605465f
PW
100592020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10060
10061 * cli/cli-cmds.c (alias_command): Check for an existing alias
10062 using lookup_cmd_composition, as valid_command_p is too strict
10063 and forbids aliases that are the prefix of an existing alias
10064 or command.
10065 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
10066 command is properly recognised as a valid command.
10067
58e6ac70
PW
100682020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10069
10070 * unittests/help-doc-selftests.c: Rename to
10071 unittests/command-def-selftests.c
10072 * unittests/command-def-selftests.c (help_doc_tests): Update some
10073 comments.
10074 (command_structure_tests, traverse_command_structure): New namespace
10075 and function.
10076 (command_structure_invariants_tests): New function.
10077 (_initialize_command_def_selftests) Renamed from
10078 _initialize_help_doc_selftests, register command_structure_invariants
10079 selftest.
10080
a7b9ceb8
PW
100812020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10082
10083 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
10084 an alias of 'show'.
10085
b2188a06
JB
100862020-05-15 Joel Brobecker <brobecker@adacore.com>
10087
10088 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
10089 ada_is_fixed_point_type. Update all callers.
10090 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
10091 all callers.
10092 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
10093 Update all callers.
10094 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
10095 print_fixed_point_type. Update all callers.
10096 * ada-valprint.c (ada_value_print_num): Replace call to
10097 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
10098
a51951c2
KB
100992020-05-14 Kevin Buettner <kevinb@redhat.com>
10100
10101 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
10102 processors.
10103 (cpu_supports_bts): Add CV_AMD case.
10104
29d6859f
LM
101052020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
10106 Simon Marchi <simon.marchi@efficios.com>
10107
10108 * infrun.c (stop_all_threads): Collect multiple wait events at
10109 each pass.
10110
78134374
SM
101112020-05-14 Simon Marchi <simon.marchi@efficios.com>
10112
10113 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
10114 type::code instead.
10115
67607e24
SM
101162020-05-14 Simon Marchi <simon.marchi@efficios.com>
10117
10118 * gdbtypes.h (struct type) <code, set_code>: New methods.
10119 (TYPE_CODE): Use type::code. Change all call sites used to set
10120 the code to use type::set_code instead.
10121
a05575d3
TBA
101222020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10123 Tom de Vries <tdevries@suse.de>
10124 Pedro Alves <palves@redhat.com>
10125
10126 PR threads/25478
10127 * infrun.c (stop_all_threads): Do NOT ignore
10128 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
10129 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
10130 received.
10131 (handle_no_resumed): Remove code handling a live inferior with no
10132 threads.
10133 * remote.c (has_single_non_exited_thread): New.
10134 (remote_target::update_thread_list): Do not delete a thread if is
10135 the last thread of the process.
10136 * thread.c (thread_select): Call delete_exited_threads instead of
10137 prune_threads.
10138
6ad82919
TBA
101392020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10140
10141 * infrun.c (stop_all_threads): Enable/disable thread events of all
10142 targets. Move a debug message denoting the end of the function
10143 into the SCOPED_EXIT block.
10144
d890404b
TBA
101452020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10146
10147 * process-stratum-target.h: Include <set>.
10148 (all_non_exited_process_targets, switch_to_target_no_thread): New
10149 function declarations.
10150 * process-stratum-target.c (all_non_exited_process_targets)
10151 (switch_to_target_no_thread): New function implementations.
10152
293b3ebc
TBA
101532020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10154
10155 * infrun.c (handle_inferior_event): Extract out a piece of code
10156 into...
10157 (mark_non_executing_threads): ...this new function.
10158
7ca9b62a
TBA
101592020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10160
10161 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
10162 use.
10163
fc75c28b
TBA
101642020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10165
10166 * regcache.c (regcache_read_pc_protected): New function
10167 implementation that returns 0 if the PC cannot read via
10168 'regcache_read_pc'.
10169 * infrun.c (proceed): Call 'regcache_read_pc_protected'
10170 instead of 'regcache_read_pc'.
10171 (keep_going_pass_signal): Ditto.
10172
a89febbd
TT
101732020-05-13 Tom Tromey <tromey@adacore.com>
10174
10175 * ada-lang.c (align_value): Remove.
10176 (ada_template_to_fixed_record_type_1): Use align_up.
10177
f7e23710
TBA
101782020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10179
10180 * async-event.c: Update the copyright year.
10181 * async-event.h: Update the copyright year.
10182
02ff80c2
SM
101832020-05-12 Simon Marchi <simon.marchi@efficios.com>
10184
10185 * objfiles.h (is_addr_in_objfile,
10186 shared_objfile_contains_address_p): Return bool.
10187 * objfile.c (is_addr_in_objfile,
10188 shared_objfile_contains_address_p): Return bool.
10189
4fd6c7e8
TT
101902020-05-11 Tom Tromey <tromey@adacore.com>
10191
10192 * cli/cli-cmds.c (info_command): Restore.
10193 (_initialize_cli_cmds): Use add_prefix_command for "info".
10194 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
10195
5eb68a39
TT
101962020-05-11 Tom Tromey <tromey@adacore.com>
10197
10198 * ada-lang.c (ada_value_primitive_field): Now public.
10199 * ada-lang.h (ada_value_primitive_field): Declare.
10200 * ada-valprint.c (print_field_values): Use
10201 ada_value_primitive_field for wrapper fields.
10202
7666722f
TV
102032020-05-11 Tom de Vries <tdevries@suse.de>
10204
10205 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
10206 MODULE_DOMAIN.
10207
3ee6bb11
TV
102082020-05-11 Tom de Vries <tdevries@suse.de>
10209
10210 PR symtab/25941
10211 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
10212 with length 0, if not gdb-produced.
10213 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
10214
43434996
TV
102152020-05-09 Tom de Vries <tdevries@suse.de>
10216
10217 PR gdb/25955
10218 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
10219 calculation.
10220
2f78cffc
TT
102212020-05-09 Tom Tromey <tom@tromey.com>
10222
10223 * top.c (server_command): Now bool.
10224 * top.h (server_command): Now bool.
10225
4f7bc5ed
TT
102262020-05-08 Tom Tromey <tromey@adacore.com>
10227
10228 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
10229 already being processed.
10230
8be4b118
TT
102312020-05-08 Tom Tromey <tom@tromey.com>
10232
10233 * printcmd.c (struct display) <next>: Remove.
10234 <display>: New constructor.
10235 <exp_string>: Now a std::string.
10236 <enabled_p>: Now a bool.
10237 (display_number): Move definition earlier.
10238 (displays): Rename from display_chain. Now a std::vector.
10239 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
10240 (display_command): Update.
10241 (do_one_display, disable_display)
10242 (enable_disable_display_command, do_enable_disable_display):
10243 Update.
10244 (free_display): Remove.
10245 (clear_displays): Rewrite.
10246 (delete_display): Update.
10247 (map_display_numbers): Use function_view. Remove "data"
10248 parameter. Update.
10249 (do_delete_display): Remove.
10250 (undisplay_command): Update.
10251 (do_one_display, do_displays, disable_display)
10252 (info_display_command): Update.
10253 (do_enable_disable_display): Remove.
10254 (enable_disable_display_command)
10255 (clear_dangling_display_expressions): Update.
10256
94c93c35
TT
102572020-05-08 Tom Tromey <tom@tromey.com>
10258
10259 * symtab.c (set_symbol_cache_size)
10260 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
10261 (maintenance_print_symbol_cache_statistics): Update.
10262 * symmisc.c (print_symbol_bcache_statistics)
10263 (print_objfile_statistics, maintenance_print_objfiles)
10264 (maintenance_info_symtabs, maintenance_check_symtabs)
10265 (maintenance_expand_symtabs, maintenance_info_line_tables):
10266 Update.
10267 * symfile-debug.c (set_debug_symfile): Update.
10268 * source.c (forget_cached_source_info): Update.
10269 * python/python.c (gdbpy_progspaces): Update.
10270 * psymtab.c (maintenance_info_psymtabs): Update.
10271 * probe.c (parse_probes): Update.
10272 * linespec.c (iterate_over_all_matching_symtabs)
10273 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
10274 * guile/scm-progspace.c (gdbscm_progspaces): Update.
10275 * exec.c (exec_target::close): Update.
10276 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
10277 * breakpoint.c (print_one_breakpoint_location)
10278 (create_longjmp_master_breakpoint)
10279 (create_std_terminate_master_breakpoint): Update.
10280 * progspace.c (program_spaces): Now a std::vector.
10281 (maybe_new_address_space): Update.
10282 (add_program_space): Remove.
10283 (program_space::program_space): Update.
10284 (remove_program_space): Update.
10285 (number_of_program_spaces): Remove.
10286 (print_program_space, update_address_spaces): Update.
10287 * progspace.h (program_spaces): Change type.
10288 (ALL_PSPACES): Remove.
10289 (number_of_program_spaces): Don't declare.
10290 (struct program_space) <next>: Remove.
10291
a1fd1ac9
TT
102922020-05-08 Tom Tromey <tom@tromey.com>
10293
10294 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
10295 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
10296 (enable_break): Update.
10297 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
10298 (frv_fdpic_find_canonical_descriptor): Update.
10299 (frv_fetch_objfile_link_map): Update.
10300 * progspace.c (program_space::free_all_objfiles): Update.
10301 (program_space::solibs): New method.
10302 * progspace.h (struct program_space) <solibs>: New method.
10303 * solist.h (master_so_list): Don't declare.
10304 (ALL_SO_LIBS): Remove.
10305 * solib.h (so_list_head): Remove.
10306 (update_solib_list): Update comment.
10307 * solib.c (master_so_list): Remove.
10308 (solib_used, update_solib_list, solib_add)
10309 (info_sharedlibrary_command, clear_solib)
10310 (reload_shared_libraries_1, remove_user_added_objfile): Update.
10311
38eae084
TT
103122020-05-08 Tom Tromey <tom@tromey.com>
10313
10314 * extension.c (extension_languages): Now a std::array.
10315 (ALL_EXTENSION_LANGUAGES): Remove.
10316 (get_ext_lang_defn, get_ext_lang_of_file)
10317 (eval_ext_lang_from_control_command): Update.
10318 (finish_ext_lang_initialization)
10319 (auto_load_ext_lang_scripts_for_objfile)
10320 (ext_lang_type_printers::ext_lang_type_printers)
10321 (apply_ext_lang_type_printers)
10322 (ext_lang_type_printers::~ext_lang_type_printers)
10323 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
10324 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
10325 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
10326 (get_matching_xmethod_workers, ext_lang_colorize)
10327 (ext_lang_before_prompt): Update.
10328 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
10329
596dc4ad
TT
103302020-05-08 Tom Tromey <tom@tromey.com>
10331
10332 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
10333 overload.
10334 <swap_string, m_string>: Remove.
10335 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
10336 Update.
10337 * stabsread.c (define_symbol, read_type): Update.
10338 * linespec.c (find_linespec_symbols): Update.
10339 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
10340 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
10341 * dbxread.c (read_dbx_symtab): Update.
10342 * cp-support.h (cp_canonicalize_string_full)
10343 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
10344 Return unique_xmalloc_ptr.
10345 * cp-support.c (inspect_type): Update.
10346 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
10347 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
10348 Likewise.
10349 * c-typeprint.c (print_name_maybe_canonical): Update.
10350 * break-catch-throw.c (check_status_exception_catchpoint):
10351 Update.
10352
bf4cb9be
TV
103532020-05-08 Tom de Vries <tdevries@suse.de>
10354
10355 * infrun.c (follow_fork): Copy current_line and current_symtab to
10356 child thread.
10357
a1b68f28
SM
103582020-05-07 Simon Marchi <simon.marchi@efficios.com>
10359
10360 * async-event.c (struct async_signal_handler, struct
10361 async_event_handler): Reformat, remove typedef.
10362
98d48915
SM
103632020-05-07 Simon Marchi <simon.marchi@efficios.com>
10364
10365 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
10366 access thistype->main_type->dyn_prop_list directly.
10367
7aa91313
SM
103682020-05-07 Simon Marchi <simon.marchi@efficios.com>
10369
10370 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
10371 (remove_dyn_prop): Remove. Update all users to use
10372 type::remove_dyn_prop.
10373 * gdbtypes.c (remove_dyn_prop): Rename to...
10374 (type::remove_dyn_prop): ... this.
10375
5c54719c
SM
103762020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
10377
10378 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
10379 (add_dyn_prop): Remove. Update all users to use
10380 type::add_dyn_prop.
10381 * gdbtypes.c (add_dyn_prop): Rename to...
10382 (type::add_dyn_prop): ... this.
10383
24e99c6c
SM
103842020-05-07 Simon Marchi <simon.marchi@efficios.com>
10385
10386 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
10387 (get_dyn_prop): Remove. Update all users to use
10388 type::dyn_prop.
10389 * gdbtypes.c (get_dyn_prop): Rename to...
10390 (type::dyn_prop): ... this.
10391
0d4bf016
SM
103922020-05-06 Simon Marchi <simon.marchi@efficios.com>
10393
10394 * gdbtypes.h (struct main_type) <flag_static>: Remove.
10395
ac4a4f1c
SM
103962020-05-06 Simon Marchi <simon.marchi@efficios.com>
10397
10398 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
10399 instruction, skip it if it's there.
10400
a3bbacc1
SM
104012020-05-05 Simon Marchi <simon.marchi@efficios.com>
10402
10403 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
10404
c3236f84
SM
104052020-05-04 Simon Marchi <simon.marchi@efficios.com>
10406
10407 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
10408 * gdbtypes.c (recursive_dump_type): Remove use of
10409 TYPE_INCOMPLETE.
10410
3b6acaee
TT
104112020-05-03 Tom Tromey <tom@tromey.com>
10412
10413 * breakpoint.c (catch_command, tcatch_command): Remove.
10414 (_initialize_breakpoint): Use add_basic_prefix_cmd,
10415 add_show_prefix_cmd.
10416 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
10417 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
10418 Remove.
10419 (add_internal_problem_command): Use add_basic_prefix_cmd,
10420 add_show_prefix_cmd.
10421 * mips-tdep.c (set_mipsfpu_command): Remove.
10422 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
10423 * dwarf2/index-cache.c (set_index_cache_command): Remove.
10424 (_initialize_index_cache): Use add_basic_prefix_cmd.
10425 * memattr.c (dummy_cmd): Remove.
10426 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
10427 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
10428 (_initialize_tui_win): Use add_basic_prefix_cmd,
10429 add_show_prefix_cmd.
10430 * cli/cli-logging.c (set_logging_command): Remove.
10431 (_initialize_cli_logging): Use add_basic_prefix_cmd,
10432 add_show_prefix_cmd.
10433 (show_logging_command): Remove.
10434 * target.c (target_command): Remove.
10435 (add_target): Use add_basic_prefix_cmd.
10436
a51119cd
HD
104372020-05-02 Hannes Domani <ssbssa@yahoo.de>
10438
10439 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
10440
652fc23a 104412020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 10442
652fc23a
PW
10443 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
10444 info_command.
10445
117539e6
KR
104462020-04-30 Kamil Rytarowski <n54@gmx.com>
10447
10448 * nbsd-nat.c (nbsd_enable_proc_events)
10449 (nbsd_nat_target::post_startup_inferior): Add.
10450 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
10451 (nbsd_nat_target::update_thread_list): Rewrite.
10452 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
10453 "PTRACE_LWP_CREATE".
10454 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
10455
102e38eb 104562020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 10457
102e38eb
PW
10458 * stack.c (_initialize_stack): Remove duplicated creation
10459 of "frame" command and "f" alias.
10460
ee9d1e5f
HD
104612020-04-30 Hannes Domani <ssbssa@yahoo.de>
10462
10463 PR gdb/18706
10464 * gdbtypes.c (check_typedef): Calculate size of array of
10465 stubbed type.
10466
627c7fb8
HD
104672020-04-30 Hannes Domani <ssbssa@yahoo.de>
10468
10469 PR gdb/15559
10470 * i386-tdep.c (i386_push_dummy_call): Call
10471 i386_thiscall_push_dummy_call.
10472 (i386_thiscall_push_dummy_call): New function.
10473 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
10474 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
10475 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
10476
ffc2844e
SM
104772020-04-29 Simon Marchi <simon.marchi@efficios.com>
10478
10479 * gdbarch.sh (do_read): Add shellcheck disable directive for
10480 warning SC2162.
10481
1207375d
SM
104822020-04-29 Simon Marchi <simon.marchi@efficios.com>
10483
10484 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
10485 "referenced but not assigned" warning.
10486
9fdb2916
SM
104872020-04-29 Simon Marchi <simon.marchi@efficios.com>
10488
10489 * gdbarch.sh: Remove code that sets fallbackdefault.
10490
759cea5e
SM
104912020-04-29 Simon Marchi <simon.marchi@efficios.com>
10492
10493 * gdbarch.sh: Use shell operators && and || instead of
10494 -a and -o.
10495
cb02ab24
SM
104962020-04-29 Simon Marchi <simon.marchi@efficios.com>
10497
10498 * gdbarch.sh: Use $(...) instead of `...`.
10499
a6fc5ffc
SM
105002020-04-29 Simon Marchi <simon.marchi@efficios.com>
10501
10502 * gdbarch.sh: Use double quotes around variables.
10503
8d113d13
SM
105042020-04-29 Simon Marchi <simon.marchi@efficios.com>
10505
10506 * gdbarch.sh: Use %s with printf, instead of variables in the
10507 format string.
10508
ed6acedd
TT
105092020-04-29 Tom Tromey <tromey@adacore.com>
10510
10511 PR ada/25875:
10512 * dwarf2/read.c (update_enumeration_type_from_children): Compute
10513 type fields here.
10514 (read_enumeration_type): Call
10515 update_enumeration_type_from_children later. Update comments.
10516 (process_enumeration_scope): Don't create type fields.
10517
b68b1b58
KR
105182020-04-29 Kamil Rytarowski <n54@gmx.com>
10519
10520 * nbsd-tdep.c: Include "xml-syscall.h".
10521 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
10522
f94b2e03
KR
105232020-04-29 Kamil Rytarowski <n54@gmx.com>
10524
10525 * nbsd-nat.c: Include "sys/wait.h".
10526 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
10527 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
10528 (nbsd_nat_target::remove_exec_catchpoint)
10529 (nbsd_nat_target::set_syscall_catchpoint): Add.
10530 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
10531 (nbsd_nat_target::insert_exec_catchpoint)
10532 (nbsd_nat_target::remove_exec_catchpoint)
10533 (nbsd_nat_target::set_syscall_catchpoint): Add.
10534 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
10535 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
10536 `nbsd_get_syscall_number'.
10537
fc49bc72
TT
105382020-04-29 Tom Tromey <tom@tromey.com>
10539
10540 * stack.c (print_block_frame_labels): Remove.
10541
d642b692
HD
105422020-04-29 Hannes Domani <ssbssa@yahoo.de>
10543
10544 PR gdb/17320
10545 * ada-valprint.c (val_print_packed_array_elements): Move array
10546 end bracket to new line.
10547 (ada_val_print_string): Remove extra spaces before first array
10548 element.
10549 * c-valprint.c (c_value_print_array): Likewise.
10550 * m2-valprint.c (m2_print_array_contents): Likewise.
10551 (m2_value_print_inner): Likewise.
10552 * p-valprint.c (pascal_value_print_inner): Likewise.
10553 * valprint.c (generic_val_print_array): Likewise.
10554 (value_print_array_elements): Move first array element and array
10555 end bracket to new line.
10556
ea90f227
TV
105572020-04-29 Tom de Vries <tdevries@suse.de>
10558
10559 PR symtab/25889
10560 * linespec.c (find_method): Fix ix calculation.
10561
4498ef4f
KR
105622020-04-28 Kamil Rytarowski <n54@gmx.com>
10563
10564 * syscalls/update-netbsd.sh: New file.
10565 * syscalls/netbsd.xml: Regenerate.
10566 * data-directory/Makefile.in: Register `netbsd.xml' in
10567 `SYSCALLS_FILES'.
10568
a55e30b5
SM
105692020-04-28 Simon Marchi <simon.marchi@efficios.com>
10570
10571 * syscalls/update-freebsd.sh: Add double quotes.
10572
2b2fbab8
TT
105732020-04-28 Tom Tromey <tom@tromey.com>
10574
10575 * NEWS: Update.
10576 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
10577 (cmdpy_init): Allow class_tui.
10578
a65189c9
TV
105792020-04-28 Mark Williams <mark@myosotissp.com>
10580
10581 PR gdb/24480
10582 * dwarf2read.c: Add missing assingments to list_in_scope when
10583 start_symtab was already called.
10584
1b95cdb7
SM
105852020-04-28 Simon Marchi <simon.marchi@efficios.com>
10586
10587 PR gdb/25881
10588 * dwarf2/read.c (offset_map_type): Use
10589 gdb:hash_enum<sect_offset> as hash function.
10590
15cd93d0
TV
105912020-04-28 Tom de Vries <tdevries@suse.de>
10592
10593 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
10594 with DW_AT_signature.
10595
1eb39914
SM
105962020-04-27 Simon Marchi <simon.marchi@efficios.com>
10597
10598 * configure.ac: Remove check for fs_base/gs_base in
10599 user_regs_struct.
10600 * configure: Re-generate.
10601 * config.in: Re-generate.
10602 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
10603 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
10604 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
10605
991a3e2e
LM
106062020-04-27 Luis Machado <luis.machado@linaro.org>
10607
10608 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
10609 problematic inline frame unwinding situation.
10610 * frame.c (frame_id_computed_p): New function.
10611 * frame.h (frame_id_computed_p): New prototype.
10612
361ba0e8
TT
106132020-04-26 Tom Tromey <tom@tromey.com>
10614
10615 * command.h (enum command_class) <class_pseudo>: Remove.
10616
bc3609fd
PW
106172020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10618
10619 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
10620 and whitespace.
10621
b9771db7
KR
106222020-04-25 Kamil Rytarowski <n54@gmx.com>
10623
ec16513e
SM
10624 * inf-ptrace.c (inf_ptrace_target::wait): Remove
10625 `PT_GET_PROCESS_STATE' block.
b9771db7 10626
7151c1af
TT
106272020-04-24 Tom Tromey <tom@tromey.com>
10628
10629 * symtab.h (symbol_get_demangled_name): Don't declare.
10630 * symtab.c (symbol_get_demangled_name): Remove.
10631 (general_symbol_info::natural_name)
10632 (general_symbol_info::demangled_name): Update.
10633
906bb4c5
TT
106342020-04-24 Tom Tromey <tom@tromey.com>
10635
10636 PR rust/25025:
10637 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
10638
bcfe6157
TT
106392020-04-24 Tom Tromey <tom@tromey.com>
10640
10641 PR symtab/12707:
10642 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
10643 exists.
10644 (new_symbol): Likewise.
10645 * compile/compile-object-load.c (get_out_value_type): Use
10646 symbol_matches_search_name.
10647
f049a313
TT
106482020-04-24 Tom Tromey <tom@tromey.com>
10649
10650 * dwarf2/read.c (add_partial_symbol): Do not call
10651 compute_and_set_names.
10652
76e288d1
TT
106532020-04-24 Tom Tromey <tom@tromey.com>
10654
10655 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
10656 overload.
10657
2467f4f6
TT
106582020-04-24 Tom Tromey <tom@tromey.com>
10659
10660 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
10661 (add_psymbol_to_list): New overload. Make old overload call new
10662 one.
10663 * psympriv.h (add_psymbol_to_list): New overload.
10664
e61108c9
TT
106652020-04-24 Tom Tromey <tom@tromey.com>
10666
10667 * dwarf2/read.c (partial_die_info::read) <case
10668 DW_AT_linkage_name>: Use value_as_string.
10669 (dwarf2_string_attr): Use value_as_string.
10670 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
10671 method.
10672 * dwarf2/attribute.c (attribute::value_as_string): New method.
10673
8c87a452
TT
106742020-04-24 Tom Tromey <tom@tromey.com>
10675
10676 * symtab.c (general_symbol_info::natural_name)
10677 (general_symbol_info::demangled_name): Check for language_rust.
10678
787de330
TT
106792020-04-24 Tom Tromey <tom@tromey.com>
10680
10681 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
10682 (dwarf2_physname): ... from here.
10683 (partial_die_info::read): Add Rust "{" hack.
10684
ff985671
TT
106852020-04-24 Tom Tromey <tom@tromey.com>
10686
10687 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
10688 method.
10689 (symbol_set_demangled_name): Don't declare.
10690 * symtab.c (general_symbol_info::set_demangled_name): Rename from
10691 symbol_set_demangled_name.
10692 (general_symbol_info::set_language)
10693 (general_symbol_info::compute_and_set_names): Update.
10694 * minsyms.c (minimal_symbol_reader::install): Update.
10695 * dwarf2/read.c (new_symbol): Update.
10696
1acda803
TT
106972020-04-24 Tom Tromey <tromey@adacore.com>
10698
10699 PR python/23662:
10700 * python/py-type.c (convert_field): Handle
10701 FIELD_LOC_KIND_DWARF_BLOCK.
10702 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
10703 (typy_get_dynamic): Nw function.
10704 (type_object_getset): Add "dynamic".
10705 * NEWS: Add entry.
10706
d656f129
TT
107072020-04-24 Tom Tromey <tromey@adacore.com>
10708
10709 * ada-typeprint.c (print_choices, print_variant_part)
10710 (print_record_field_types_dynamic): New functions.
10711 (print_record_field_types): Use print_record_field_types_dynamic.
10712
7d79de9a
TT
107132020-04-24 Tom Tromey <tromey@adacore.com>
10714
10715 * dwarf2/read.c (handle_data_member_location): New overload.
10716 (dwarf2_add_field): Use it.
10717 (decode_locdesc): Add "computed" parameter. Update comment.
10718 * gdbtypes.c (is_dynamic_type_internal): Also look for
10719 FIELD_LOC_KIND_DWARF_BLOCK.
10720 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
10721 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
10722 virtual base classes.
10723 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
10724 FIELD_LOC_KIND_DWARF_BLOCK.
10725
f8e89861
TT
107262020-04-24 Tom Tromey <tromey@adacore.com>
10727
10728 * dwarf2/read.c (read_structure_type): Handle dynamic length.
10729 * gdbtypes.c (is_dynamic_type_internal): Check
10730 TYPE_HAS_DYNAMIC_LENGTH.
10731 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
10732 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
10733 New macros.
10734 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
10735 constant.
10736
9c6a1327
TT
107372020-04-24 Tom Tromey <tromey@adacore.com>
10738
10739 * dwarf2/read.c (struct variant_field): Rewrite.
10740 (struct variant_part_builder): New.
10741 (struct nextfield): Remove "variant" field. Add "offset".
10742 (struct field_info): Add "current_variant_part" and
10743 "variant_parts".
10744 (alloc_discriminant_info): Remove.
10745 (alloc_rust_variant): New function.
10746 (quirk_rust_enum): Update.
10747 (dwarf2_add_field): Set "offset" member. Don't handle
10748 DW_TAG_variant_part.
10749 (offset_map_type): New typedef.
10750 (convert_variant_range, create_one_variant)
10751 (create_one_variant_part, create_variant_parts)
10752 (add_variant_property): New functions.
10753 (dwarf2_attach_fields_to_type): Call add_variant_property.
10754 (read_structure_type): Don't handle DW_TAG_variant_part.
10755 (handle_variant_part, handle_variant): New functions.
10756 (handle_struct_member_die): Use them.
10757 (process_structure_scope): Don't handle variant parts.
10758 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
10759 (struct discriminant_info): Remove.
10760 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
10761 (struct main_type) <flag_discriminated_union>: Remove.
10762 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
10763 (rust_enum_variant): Return int. Remove "contents". Rewrite.
10764 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
10765 Update.
10766 * valops.c (value_union_variant): Remove.
10767 * value.h (value_union_variant): Don't declare.
10768
b249d2c2
TT
107692020-04-24 Tom Tromey <tromey@adacore.com>
10770
10771 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
10772 (ada_value_primitive_packed_val): Update.
10773 * ada-valprint.c (ada_value_print_1): Update.
10774 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
10775 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
10776 just an address. Use evaluate_for_locexpr_baton.
10777 (dwarf2_evaluate_property): Update.
10778 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
10779 array_view.
10780 * findvar.c (default_read_var_value): Update.
10781 * gdbtypes.c (compute_variant_fields_inner)
10782 (resolve_dynamic_type_internal): Update.
10783 (resolve_dynamic_type): Change type of valaddr parameter.
10784 * gdbtypes.h (resolve_dynamic_type): Update.
10785 * valarith.c (value_subscripted_rvalue): Update.
10786 * value.c (value_from_contents_and_address): Update.
10787
61122aa9
TT
107882020-04-24 Tom Tromey <tromey@adacore.com>
10789
10790 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
10791 "push_initial_value" parameter.
10792 (dwarf2_evaluate_property): Likewise.
10793 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
10794
ef83a141
TT
107952020-04-24 Tom Tromey <tromey@adacore.com>
10796
10797 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
10798 (variant::matches, compute_variant_fields_recurse)
10799 (compute_variant_fields_inner, compute_variant_fields): New
10800 functions.
10801 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
10802 Use resolved_type after type is made.
10803 (operator==): Add new cases.
10804 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
10805 (struct discriminant_range, struct variant, struct variant_part):
10806 New.
10807 (union dynamic_prop_data) <variant_parts, original_type>: New
10808 members.
10809 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
10810 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
10811 constants.
10812 * value.c (unpack_bits_as_long): Now public.
10813 * value.h (unpack_bits_as_long): Declare.
10814
675127ec
TT
108152020-04-24 Tom Tromey <tromey@adacore.com>
10816
10817 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
10818 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
10819
9852ceef
HD
108202020-04-24 Hannes Domani <ssbssa@yahoo.de>
10821
10822 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
10823
7632c6ce
KR
108242020-04-24 Kamil Rytarowski <n54@gmx.com>
10825
10826 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
10827 (remove_fork_catchpoint, post_startup_inferior)
10828 (post_attach): Move...
10829 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
10830 (remove_fork_catchpoint, post_startup_inferior)
10831 (post_attach): ...here.
10832 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
10833 (remove_fork_catchpoint, post_startup_inferior)
10834 (post_attach): Move...
10835 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
10836 (remove_fork_catchpoint, post_startup_inferior)
10837 (post_attach): ...here.
10838
7be2bb4f
TT
108392020-04-24 Tom Tromey <tromey@adacore.com>
10840
10841 * nat/windows-nat.h (struct windows_thread_info)
10842 <pc_adjusted>: New member.
10843 * windows-nat.c (windows_fetch_one_register): Check
10844 pc_adjusted.
10845 (windows_nat_target::get_windows_debug_event)
10846 (windows_nat_target::wait): Set pc_adjusted.
10847
f80cb3b4
TV
108482020-04-24 Tom de Vries <tdevries@suse.de>
10849
10850 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
10851 Run gdb-add-index inside temp dir.
10852
29514b87
TT
108532020-04-23 Tom Tromey <tromey@adacore.com>
10854
10855 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
10856 in loop.
10857
5939967b
LM
108582020-04-23 Luis Machado <luis.machado@linaro.org>
10859
10860 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10861 get_frame_register instead of gdbarch_unwind_pc.
10862
70bc38f5
TV
108632020-04-23 Tom de Vries <tdevries@suse.de>
10864
10865 * symtab.c (lookup_global_symbol): Prefer def over decl.
10866
de82891c
TV
108672020-04-23 Tom de Vries <tdevries@suse.de>
10868
10869 PR symtab/25807
10870 * block.c (best_symbol, better_symbol): Promote to external.
10871 * block.h (best_symbol, better_symbol): Declare.
10872 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
10873 decl.
10874
ecc6c606
TT
108752020-04-23 Tom Tromey <tromey@adacore.com>
10876
10877 PR ada/25837:
10878 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
10879 "const char *", not a "const std::string &".
10880 <name_and_matcher::operator==>: Update.
10881 * unittests/lookup_name_info-selftests.c: Change type of
10882 "result".
10883
740480b8
TT
108842020-04-23 Tom Tromey <tom@tromey.com>
10885
10886 * inferior.h (iterate_over_inferiors): Don't declare.
10887 * inferior.c (iterate_over_inferiors): Remove.
10888 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
10889 Remove.
10890 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
10891 use iterate_over_inferiors.
10892 (darwin_resume_inferior_it)
10893 (struct resume_inferior_threads_param)
10894 (darwin_resume_inferior_threads_it): Remove.
10895 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
10896
ae3ab1f0
TV
108972020-04-23 Tom de Vries <tdevries@suse.de>
10898
10899 * blockframe.c (find_pc_partial_function): Use
10900 find_pc_sect_compunit_symtab rather than
10901 objfile->sf->qf->find_pc_sect_compunit_symtab.
10902
317d2668
TV
109032020-04-22 Tom de Vries <tdevries@suse.de>
10904
10905 PR symtab/25764
10906 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
10907 in psymtabs.
10908
eea9e357
TV
109092020-04-22 Tom de Vries <tdevries@suse.de>
10910
10911 PR symtab/25801
10912 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
10913 symtabs.
10914
3d5afab3
TV
109152020-04-22 Tom de Vries <tdevries@suse.de>
10916
10917 PR symtab/25700
10918 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
10919 CU if already created.
10920
d43b7a2d
TBA
109212020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10922
10923 * infrun.c (displaced_step_fixup): Switch to the event_thread
10924 before calling displaced_step_restore, not after.
10925
d89edf9b
MM
109262020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10927
10928 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
10929 its inferior is not recorded by us.
10930 (record_btrace_target_open): Replace call to
10931 all_non_exited_threads () with call to current_inferior
10932 ()->non_exited_threads ().
10933 (record_btrace_target::stop_recording): Likewise.
10934 (record_btrace_target::close): Likewise.
10935 (record_btrace_target::wait): Likewise.
10936 (record_btrace_target::record_stop_replaying): Likewise.
10937
5897fd49
MM
109382020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10939
10940 * btrace.c (btrace_enable): Throw an error on double enables and
10941 when enabling recording fails.
10942 (btrace_disable): Throw an error if the thread is not recorded.
10943
1a476b6d
MM
109442020-04-21 Markus Metzger <markus.t.metzger@intel.com>
10945
10946 * record-btrace.c (record_btrace_target::fetch_registers): Forward
10947 request if we do not have a thread_info.
10948
4778a5f8
TV
109492020-04-21 Tom de Vries <tdevries@suse.de>
10950
10951 PR gdb/25471
10952 * thread.c
10953 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
10954 exception in get_frame_id.
10955
0fa7617d
TT
109562020-04-20 Tom Tromey <tromey@adacore.com>
10957
10958 * python/python.c (struct gdbpy_event): Mark move constructor as
10959 noexcept.
10960 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
10961 constructor as noexcept.
10962 * completer.h (struct completion_result): Mark move constructor as
10963 noexcept.
10964 * completer.c (completion_result::completion_result): Use
10965 initialization style. Don't call reset_match_list.
10966
ad23bda0
MS
109672020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
10968
10969 * MAINTAINERS (Write After Approval): Add myself.
10970
45e1f031
TT
109712020-04-18 Tom Tromey <tom@tromey.com>
10972
10973 * windows-tdep.c (init_w32_command_list)
10974 (w32_prefix_command_valid): Restore.
10975 (_initialize_windows_tdep): Call init_w32_command_list.
10976
08feed99
TT
109772020-04-18 Tom Tromey <tom@tromey.com>
10978
10979 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
10980 * value.c (value_fn_field): Update.
10981 * valops.c (find_function_in_inferior)
10982 (value_allocate_space_in_inferior): Update.
10983 * tui/tui-winsource.c (tui_update_source_windows_with_line):
10984 Update.
10985 * tui/tui-source.c (tui_source_window::set_contents): Update.
10986 * symtab.c (lookup_global_or_static_symbol)
10987 (find_function_start_sal_1, skip_prologue_sal)
10988 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
10989 * symmisc.c (dump_msymbols, dump_symtab_1)
10990 (maintenance_print_one_line_table): Update.
10991 * symfile.c (init_entry_point_info, section_is_mapped)
10992 (list_overlays_command, simple_read_overlay_table)
10993 (simple_overlay_update_1): Update.
10994 * stap-probe.c (handle_stap_probe): Update.
10995 * stabsread.c (dbx_init_float_type, define_symbol)
10996 (read_one_struct_field, read_enum_type, read_range_type): Update.
10997 * source.c (info_line_command): Update.
10998 * python/python.c (gdbpy_source_objfile_script)
10999 (gdbpy_execute_objfile_script): Update.
11000 * python/py-type.c (save_objfile_types): Update.
11001 * python/py-objfile.c (py_free_objfile): Update.
11002 * python/py-inferior.c (python_new_objfile): Update.
11003 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
11004 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
11005 (maintenance_check_psymtabs): Update.
11006 * printcmd.c (info_address_command): Update.
11007 * objfiles.h (struct objfile) <arch>: New method, from
11008 get_objfile_arch.
11009 (get_objfile_arch): Don't declare.
11010 * objfiles.c (get_objfile_arch): Remove.
11011 (filter_overlapping_sections): Update.
11012 * minsyms.c (msymbol_is_function): Update.
11013 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
11014 (output_nondebug_symbol): Update.
11015 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
11016 (mdebug_expand_psymtab): Update.
11017 * machoread.c (macho_add_oso_symfile): Update.
11018 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
11019 Update.
11020 * linux-fork.c (checkpoint_command): Update.
11021 * linespec.c (convert_linespec_to_sals): Update.
11022 * jit.c (finalize_symtab): Update.
11023 * infrun.c (insert_exception_resume_from_probe): Update.
11024 * ia64-tdep.c (ia64_find_unwind_table): Update.
11025 * hppa-tdep.c (internalize_unwinds): Update.
11026 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
11027 Update.
11028 * gcore.c (call_target_sbrk): Update.
11029 * elfread.c (record_minimal_symbol, elf_symtab_read)
11030 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
11031 (elf_gnu_ifunc_resolve_by_got): Update.
11032 * dwarf2/read.c (create_addrmap_from_index)
11033 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11034 (read_debug_names_from_section)
11035 (process_psymtab_comp_unit_reader, add_partial_symbol)
11036 (add_partial_subprogram, process_full_comp_unit)
11037 (read_file_scope, read_func_scope, read_lexical_block_scope)
11038 (read_call_site_scope, dwarf2_ranges_read)
11039 (dwarf2_record_block_ranges, dwarf2_add_field)
11040 (mark_common_block_symbol_computed, read_tag_pointer_type)
11041 (read_tag_string_type, dwarf2_init_float_type)
11042 (dwarf2_init_complex_target_type, read_base_type)
11043 (partial_die_info::read, partial_die_info::read)
11044 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
11045 (dwarf2_fetch_die_loc_sect_off): Update.
11046 * dwarf2/loc.c (dwarf2_find_location_expression)
11047 (class dwarf_evaluate_loc_desc, rw_pieced_value)
11048 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
11049 (dwarf2_loc_desc_get_symbol_read_needs)
11050 (locexpr_describe_location_piece, locexpr_describe_location_1)
11051 (loclist_describe_location): Update.
11052 * dwarf2/index-write.c (write_debug_names): Update.
11053 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
11054 * dtrace-probe.c (dtrace_process_dof): Update.
11055 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
11056 (process_one_symbol): Update.
11057 * ctfread.c (ctf_init_float_type, read_base_type): Update.
11058 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
11059 (coff_read_enum_type): Update.
11060 * cli/cli-cmds.c (edit_command, list_command): Update.
11061 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
11062 * breakpoint.c (create_overlay_event_breakpoint)
11063 (create_longjmp_master_breakpoint)
11064 (create_std_terminate_master_breakpoint)
11065 (create_exception_master_breakpoint, get_sal_arch): Update.
11066 * block.c (block_gdbarch): Update.
11067 * annotate.c (annotate_source_line): Update.
11068
0743fc83
TT
110692020-04-17 Tom Tromey <tromey@adacore.com>
11070
11071 * auto-load.c (show_auto_load_cmd): Remove.
11072 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
11073 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
11074 (maintenance_print_arc_command): Remove.
11075 * tui/tui-win.c (tui_command): Remove.
11076 (tui_get_cmd_list): Use add_basic_prefix_cmd.
11077 * tui/tui-layout.c (tui_layout_command): Remove.
11078 (_initialize_tui_layout): Use add_basic_prefix_cmd.
11079 * python/python.c (user_set_python, user_show_python): Remove.
11080 (_initialize_python): Use add_basic_prefix_cmd,
11081 add_show_prefix_cmd.
11082 * guile/guile.c (set_guile_command, show_guile_command): Remove.
11083 (install_gdb_commands): Use add_basic_prefix_cmd,
11084 add_show_prefix_cmd.
11085 (info_guile_command): Remove.
11086 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
11087 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
11088 add_show_prefix_cmd.
11089 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
11090 Remove do_set and do_show parameters.
11091 * cli/cli-style.c (set_style, show_style): Remove.
11092 (_initialize_cli_style): Use add_basic_prefix_cmd,
11093 add_show_prefix_cmd.
11094 (cli_style_option::add_setshow_commands): Remove do_set and
11095 do_show parameters.
11096 (cli_style_option::add_setshow_commands): Use
11097 add_basic_prefix_cmd, add_show_prefix_cmd.
11098 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
11099 (set_style_name): Remove.
11100 * cli/cli-dump.c (dump_command, append_command): Remove.
11101 (srec_dump_command, ihex_dump_command, verilog_dump_command)
11102 (tekhex_dump_command, binary_dump_command)
11103 (binary_append_command): Remove.
11104 (_initialize_cli_dump): Use add_basic_prefix_cmd.
11105 * windows-tdep.c (w32_prefix_command_valid): Remove global.
11106 (init_w32_command_list): Remove; move into ...
11107 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
11108 * valprint.c (set_print, show_print, set_print_raw)
11109 (show_print_raw): Remove.
11110 (_initialize_valprint): Use add_basic_prefix_cmd,
11111 add_show_prefix_cmd.
11112 * typeprint.c (set_print_type, show_print_type): Remove.
11113 (_initialize_typeprint): Use add_basic_prefix_cmd,
11114 add_show_prefix_cmd.
11115 * record.c (set_record_command, show_record_command): Remove.
11116 (_initialize_record): Use add_basic_prefix_cmd,
11117 add_show_prefix_cmd.
11118 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
11119 add_show_prefix_cmd.
11120 (info_command, show_command, set_debug, show_debug): Remove.
11121 * top.h (set_history, show_history): Don't declare.
11122 * top.c (set_history, show_history): Remove.
11123 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
11124 (unset_tdesc_cmd): Remove.
11125 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
11126 add_show_prefix_cmd.
11127 * symtab.c (info_module_command): Remove.
11128 (_initialize_symtab): Use add_basic_prefix_cmd.
11129 * symfile.c (overlay_command): Remove.
11130 (_initialize_symfile): Use add_basic_prefix_cmd.
11131 * sparc64-tdep.c (info_adi_command): Remove.
11132 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
11133 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
11134 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
11135 add_show_prefix_cmd.
11136 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
11137 (_initialize_serial): Use add_basic_prefix_cmd,
11138 add_show_prefix_cmd.
11139 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
11140 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
11141 add_show_prefix_cmd.
11142 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
11143 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
11144 add_show_prefix_cmd.
11145 * riscv-tdep.c (show_riscv_command, set_riscv_command)
11146 (show_debug_riscv_command, set_debug_riscv_command): Remove.
11147 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
11148 add_show_prefix_cmd.
11149 * remote.c (remote_command, set_remote_cmd): Remove.
11150 (_initialize_remote): Use add_basic_prefix_cmd.
11151 * record-full.c (set_record_full_command)
11152 (show_record_full_command): Remove.
11153 (_initialize_record_full): Use add_basic_prefix_cmd,
11154 add_show_prefix_cmd.
11155 * record-btrace.c (cmd_set_record_btrace)
11156 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
11157 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
11158 (cmd_show_record_btrace_pt): Remove.
11159 (_initialize_record_btrace): Use add_basic_prefix_cmd,
11160 add_show_prefix_cmd.
11161 * ravenscar-thread.c (set_ravenscar_command)
11162 (show_ravenscar_command): Remove.
11163 (_initialize_ravenscar): Use add_basic_prefix_cmd,
11164 add_show_prefix_cmd.
11165 * mips-tdep.c (show_mips_command, set_mips_command)
11166 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
11167 add_show_prefix_cmd.
11168 * maint.c (maintenance_command, maintenance_info_command)
11169 (maintenance_check_command, maintenance_print_command)
11170 (maintenance_set_cmd, maintenance_show_cmd): Remove.
11171 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
11172 add_show_prefix_cmd.
11173 (show_per_command_cmd): Remove.
11174 * maint-test-settings.c (maintenance_set_test_settings_cmd):
11175 Remove.
11176 (maintenance_show_test_settings_cmd): Remove.
11177 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
11178 add_show_prefix_cmd.
11179 * maint-test-options.c (maintenance_test_options_command):
11180 Remove.
11181 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
11182 * macrocmd.c (macro_command): Remove
11183 (_initialize_macrocmd): Use add_basic_prefix_cmd.
11184 * language.c (set_check, show_check): Remove.
11185 (_initialize_language): Use add_basic_prefix_cmd,
11186 add_show_prefix_cmd.
11187 * infcmd.c (unset_command): Remove.
11188 (_initialize_infcmd): Use add_basic_prefix_cmd.
11189 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
11190 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
11191 add_show_prefix_cmd.
11192 * go32-nat.c (go32_info_dos_command): Remove.
11193 (_initialize_go32_nat): Use add_basic_prefix_cmd.
11194 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
11195 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
11196 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
11197 (_initialize_frame): Use add_basic_prefix_cmd,
11198 add_show_prefix_cmd.
11199 * dcache.c (set_dcache_command, show_dcache_command): Remove.
11200 (_initialize_dcache): Use add_basic_prefix_cmd,
11201 add_show_prefix_cmd.
11202 * cp-support.c (maint_cplus_command): Remove.
11203 (_initialize_cp_support): Use add_basic_prefix_cmd.
11204 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
11205 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
11206 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
11207 add_basic_prefix_cmd, add_show_prefix_cmd.
11208 * breakpoint.c (save_command): Remove.
11209 (_initialize_breakpoint): Use add_basic_prefix_cmd.
11210 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
11211 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
11212 add_show_prefix_cmd.
11213 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
11214 (set_ada_command, show_ada_command): Remove.
11215 (_initialize_ada_language): Use add_basic_prefix_cmd,
11216 add_show_prefix_cmd.
11217 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
11218
3557f442
KR
112192020-04-16 Kamil Rytarowski <n54@gmx.com>
11220
11221 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
11222 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
11223
16197208
SM
112242020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11225
11226 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
11227 warning messages.
11228
00ac85d3
SM
112292020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11230
11231 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
11232 import table is not at beginning of .idata section.
11233
381ce63f
PA
112342020-04-16 Pedro Alves <palves@redhat.com>
11235
11236 * inferior.c (delete_inferior): Use delete operator directly
11237 instead of delete_program_space.
11238 * progspace.c (add_program_space): New, factored out from
11239 program_space::program_space.
11240 (remove_program_space): New, factored out from
11241 delete_program_space.
11242 (program_space::program_space): Remove intro comment. Rewrite.
11243 (program_space::~program_space): Remove intro comment. Call
11244 remove_program_space.
11245 (delete_program_space): Delete.
11246 * progspace.h (program_space::program_space): Make explicit. Move
11247 intro comment here, adjusted.
11248 (program_space::~program_space): Move intro comment here,
11249 adjusted.
11250 (delete_program_space): Remove.
11251
a010605f
TT
112522020-04-16 Tom Tromey <tromey@adacore.com>
11253
11254 * windows-nat.c (windows_nat::handle_access_violation): New
11255 function.
11256 * nat/windows-nat.h (handle_access_violation): Declare.
11257 * nat/windows-nat.c (handle_exception): Move Cygwin code to
11258 windows-nat.c. Call handle_access_violation.
11259
efba5c23
TV
112602020-04-16 Tom de Vries <tdevries@suse.de>
11261
11262 PR symtab/25791
11263 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
11264 CUs without psymtab.
11265
97ed802d
KB
112662020-04-16 Kevin Buettner <kevinb@redhat.com>
11267
11268 * python/python.c (do_start_initialization): Don't call
11269 PyEval_InitThreads for Python 3.9 and beyond.
11270
c7d64809
KR
112712020-04-15 Kamil Rytarowski <n54@gmx.com>
11272
11273 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
11274 thread functions.
11275 (obsd_nat_target::wait): Likewise.
11276
ce127a96
TT
112772020-04-15 Tom Tromey <tromey@adacore.com>
11278
11279 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
11280 (DEBUG_EXCEPT): Use debug_printf.
11281
99f1bc6a
AB
112822020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
11283
11284 * completer.c (class completion_tracker::completion_hash_entry)
11285 <hash_name>: New member function.
11286 (completion_tracker::discard_completions): New callback to hash a
11287 completion_hash_entry, pass this to htab_create_alloc.
11288
a0e9b532
JT
112892016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
11290
11291 * windows-nat.c (windows_make_so): Warn rather than stopping with
11292 an error if realpath() fails.
11293
06ca5dd4
KR
112942020-04-14 Kamil Rytarowski <n54@gmx.com>
11295
11296 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
11297 (nbsd_nat_target::info_proc): Add do_status.
11298
194d088f
TV
112992020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
11300 Tom de Vries <tdevries@suse.de>
11301
11302 PR symtab/25718
11303 * psympriv.h (struct partial_symtab::read_symtab)
11304 (struct partial_symtab::expand_psymtab)
11305 (struct partial_symtab::read_dependencies): Update comments.
11306 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
11307 read_symtab for includer.
11308 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
11309 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
11310 (struct dwarf2_include_psymtab::m_readin): Remove.
11311 (struct dwarf2_include_psymtab::includer): New member function.
11312 (dwarf2_psymtab::expand_psymtab): Assert !readin.
11313
c1a66c06
TV
113142020-04-14 Tom de Vries <tdevries@suse.de>
11315
11316 PR symtab/25720
11317 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
11318 with NULL symbol_matcher and lookup_name.
11319 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
11320 and lookup_name.
11321 * dwarf2/read.c (dw2_expand_symtabs_matching)
11322 (dw2_debug_names_expand_symtabs_matching): Same.
11323 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
11324 Make lookup_name a pointer. Update comment.
11325 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
11326 lookup_name being a pointer.
11327 * symfile.c (expand_symtabs_matching): Same.
11328 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
11329 * linespec.c (iterate_over_all_matching_symtabs): Same.
11330
400b5eca
TT
113312020-04-13 Tom Tromey <tom@tromey.com>
11332
11333 * run-on-main-thread.c: Update include.
11334 * unittests/main-thread-selftests.c: Update include.
11335 * tui/tui-win.c: Update include.
11336 * tui/tui-io.c: Update include.
11337 * tui/tui-interp.c: Update include.
11338 * tui/tui-hooks.c: Update include.
11339 * top.h: Update include.
11340 * top.c: Update include.
11341 * ser-base.c: Update include.
11342 * remote.c: Update include.
11343 * remote-notif.c: Update include.
11344 * remote-fileio.c: Update include.
11345 * record-full.c: Update include.
11346 * record-btrace.c: Update include.
11347 * python/python.c: Update include.
11348 * posix-hdep.c: Update include.
11349 * mingw-hdep.c: Update include.
11350 * mi/mi-main.c: Update include.
11351 * mi/mi-interp.c: Update include.
11352 * main.c: Update include.
11353 * linux-nat.c: Update include.
11354 * interps.c: Update include.
11355 * infrun.c: Update include.
11356 * inf-loop.c: Update include.
11357 * event-top.c: Update include.
11358 * event-loop.c: Move to ../gdbsupport/.
11359 * event-loop.h: Move to ../gdbsupport/.
11360 * async-event.h: Update include.
11361 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
11362
93b54c8e
TT
113632020-04-13 Tom Tromey <tom@tromey.com>
11364
11365 * tui/tui-win.c: Include async-event.h.
11366 * remote.c: Include async-event.h.
11367 * remote-notif.c: Include async-event.h.
11368 * record-full.c: Include async-event.h.
11369 * record-btrace.c: Include async-event.h.
11370 * infrun.c: Include async-event.h.
11371 * event-top.c: Include async-event.h.
11372 * event-loop.h: Move some declarations to async-event.h.
11373 * event-loop.c: Don't include ser-event.h or top.h. Move some
11374 code to async-event.c.
11375 * async-event.h: New file.
11376 * async-event.c: New file.
11377 * Makefile.in (COMMON_SFILES): Add async-event.c.
11378 (HFILES_NO_SRCDIR): Add async-event.h.
11379
c1cd3163
TT
113802020-04-13 Tom Tromey <tom@tromey.com>
11381
11382 * utils.c (flush_streams): New function.
11383 * event-loop.c (gdb_wait_for_event): Call flush_streams.
11384
29f2bf4f
TT
113852020-04-13 Tom Tromey <tom@tromey.com>
11386
11387 * event-loop.c (handle_file_event): Use warning, not
11388 printf_unfiltered.
11389
98029d02
TT
113902020-04-13 Tom Tromey <tom@tromey.com>
11391
11392 * event-loop.c: Include <chrono>.
11393
06cc9596
TT
113942020-04-13 Tom Tromey <tom@tromey.com>
11395
11396 * gdb_select.h: Move to ../gdbsupport/.
11397 * event-loop.c: Update include path.
11398 * top.c: Update include path.
11399 * ser-base.c: Update include path.
11400 * ui-file.c: Update include path.
11401 * ser-tcp.c: Update include path.
11402 * guile/scm-ports.c: Update include path.
11403 * posix-hdep.c: Update include path.
11404 * ser-unix.c: Update include path.
11405 * gdb_usleep.c: Update include path.
11406 * mingw-hdep.c: Update include path.
11407 * inflow.c: Update include path.
11408 * infrun.c: Update include path.
11409 * event-top.c: Update include path.
11410
8ae8e197
TT
114112020-04-13 Tom Tromey <tom@tromey.com>
11412
11413 * configure: Rebuild.
11414 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
11415
58cf28e8
TT
114162020-04-13 Tom Tromey <tom@tromey.com>
11417
11418 * event-loop.h (start_event_loop): Don't declare.
11419 * event-loop.c (start_event_loop): Move...
11420 * main.c (start_event_loop): ...here. Now static.
11421
b7f999ae
SDJ
114222020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
11423
11424 * MAINTAINERS: Update my email address.
11425
1085dfd4
KR
114262020-04-12 Kamil Rytarowski <n54@gmx.com>
11427
11428 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
11429 IP_ALL.
11430
49d1d1f5
KR
114312020-04-12 Kamil Rytarowski <n54@gmx.com>
11432
11433 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 11434 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 11435
b4848d2a
KR
114362020-04-12 Kamil Rytarowski <n54@gmx.com>
11437
11438 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 11439 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 11440
51c133d5
KR
114412020-04-12 Kamil Rytarowski <n54@gmx.com>
11442
11443 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
11444
54b8cbd0
KR
114452020-04-11 Kamil Rytarowski <n54@gmx.com>
11446
11447 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
11448 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
11449 (nbsd_nat_target::info_proc): New functions.
11450 * nbsd-nat.c (kinfo_get_vmmap): New function.
11451 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
11452 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
11453 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
11454 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
11455 functions.
11456 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
11457 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
11458 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
11459 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
11460 (KINFO_VME_FLAG_GROWS_DOWN): New.
11461
cf83625d
AS
114622020-04-10 Artur Shepilko <nomadbyte@gmail.com>
11463
11464 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
11465 bit shift.
11466
0c4311ab
TT
114672020-04-10 Tom Tromey <tromey@adacore.com>
11468
11469 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
11470
3e65b3e9
TT
114712020-04-10 Tom Tromey <tromey@adacore.com>
11472
11473 * symtab.c (get_symbol_address, get_msymbol_address): Skip
11474 separate debug files.
11475
13302e95
HD
114762020-04-10 Hannes Domani <ssbssa@yahoo.de>
11477
11478 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11479 Move to...
11480 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11481 ... here.
11482 * windows-nat.c (windows_nat_target::get_windows_debug_event):
11483 Check for STATUS_WX86_BREAKPOINT.
11484 (windows_nat_target::wait): Same.
11485
bdfc1e8a
TV
114862020-04-10 Tom de Vries <tdevries@suse.de>
11487
11488 PR cli/25808
11489 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
11490
f4460aec
SM
114912020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11492
11493 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
11494 (Write After Approval): Remove Tom de Vries.
11495
a25198bb
BE
114962020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
11497
11498 revert partially:
11499 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11500
aac66a4c
SM
11501 * buildsym.c (record_line): Fix undefined behavior and preserve
11502 lines at eof.
a25198bb 11503
206c98a6
KR
115042020-04-09 Kamil Rytarowski <n54@gmx.com>
11505
11506 * auxv.h (svr4_auxv_parse): New.
11507 * auxv.c (default_auxv_parse): Split into default_auxv_parse
11508 and generic_auxv_parse.
11509 (svr4_auxv_parse): Add.
11510 * obsd-tdep.c: Include "auxv.h".
11511 (obsd_auxv_parse): Remove.
11512 (obsd_init_abi): Remove comment.
11513 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
11514 from `obsd_auxv_parse' to `svr4_auxv_parse'.
11515 * nbsd-tdep.c: Include "auxv.h".
11516 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
11517
71fbdbaf
TT
115182020-04-08 Tom Tromey <tromey@adacore.com>
11519
11520 * nat/windows-nat.h (last_wait_event): Don't declare.
11521 (wait_for_debug_event): Update comment.
11522 * nat/windows-nat.c (last_wait_event): Now static.
11523
2c1d95e8
TT
115242020-04-08 Tom Tromey <tromey@adacore.com>
11525
11526 * windows-nat.c (wait_for_debug_event): Move to
11527 nat/windows-nat.c.
11528 * nat/windows-nat.h (wait_for_debug_event): Declare.
11529 * nat/windows-nat.c (wait_for_debug_event): Move from
11530 windows-nat.c. No longer static.
11531
d2977bc4
TT
115322020-04-08 Tom Tromey <tromey@adacore.com>
11533
11534 * windows-nat.c (get_windows_debug_event): Use
11535 fetch_pending_stop.
11536 * nat/windows-nat.h (fetch_pending_stop): Declare.
11537 * nat/windows-nat.c (fetch_pending_stop): New function.
11538
e758e19c
TT
115392020-04-08 Tom Tromey <tromey@adacore.com>
11540
11541 * windows-nat.c (windows_continue): Use matching_pending_stop and
11542 continue_last_debug_event.
11543 * nat/windows-nat.h (matching_pending_stop)
11544 (continue_last_debug_event): Declare.
11545 * nat/windows-nat.c (DEBUG_EVENTS): New define.
11546 (matching_pending_stop, continue_last_debug_event): New
11547 functions.
11548
8d30e395
TT
115492020-04-08 Tom Tromey <tromey@adacore.com>
11550
11551 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
11552 (handle_exception_result): Move to nat/windows-nat.h.
11553 (DEBUG_EXCEPTION_SIMPLE): Remove.
11554 (windows_nat::handle_ms_vc_exception): New function.
11555 (handle_exception): Move to nat/windows-nat.c.
11556 (get_windows_debug_event): Update.
11557 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
11558 nat/windows-nat.c.
11559 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
11560 (handle_exception_result): Move from windows-nat.c.
11561 (handle_exception): Declare.
11562 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
11563 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
11564 windows-nat.c.
11565
29de418d
TT
115662020-04-08 Tom Tromey <tromey@adacore.com>
11567
11568 * windows-nat.c (exception_count, event_count): Remove.
11569 (handle_exception, get_windows_debug_event)
11570 (do_initial_windows_stuff): Update.
11571
a816ba18
TT
115722020-04-08 Tom Tromey <tromey@adacore.com>
11573
11574 * windows-nat.c (windows_nat::handle_load_dll)
11575 (windows_nat::handle_unload_dll): Rename. No longer static.
11576 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
11577 Declare.
11578
a00caa12
TT
115792020-04-08 Tom Tromey <tromey@adacore.com>
11580
11581 * complaints.h (stop_whining): Declare at top-level.
11582 (complaint): Don't declare stop_whining.
11583
d41b524f
TT
115842020-04-08 Tom Tromey <tromey@adacore.com>
11585
11586 * windows-nat.c (windows_nat::handle_output_debug_string):
11587 Rename. No longer static.
11588 * nat/windows-nat.h (handle_output_debug_string): Declare.
11589
3c76026d
TT
115902020-04-08 Tom Tromey <tromey@adacore.com>
11591
11592 * windows-nat.c (current_process_handle, current_process_id)
11593 (main_thread_id, last_sig, current_event, last_wait_event)
11594 (current_windows_thread, desired_stop_thread_id, pending_stops)
11595 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
11596 (display_selectors, fake_create_process)
11597 (get_windows_debug_event): Update.
11598 * nat/windows-nat.h (current_process_handle, current_process_id)
11599 (main_thread_id, last_sig, current_event, last_wait_event)
11600 (current_windows_thread, desired_stop_thread_id, pending_stops)
11601 (struct pending_stop, siginfo_er): Move from windows-nat.c.
11602 * nat/windows-nat.c (current_process_handle, current_process_id)
11603 (main_thread_id, last_sig, current_event, last_wait_event)
11604 (current_windows_thread, desired_stop_thread_id, pending_stops)
11605 (siginfo_er): New globals. Move from windows-nat.c.
11606
9d8679cc
TT
116072020-04-08 Tom Tromey <tromey@adacore.com>
11608
11609 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
11610 (handle_load_dll): Update.
11611 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
11612
28688adf
TT
116132020-04-08 Tom Tromey <tromey@adacore.com>
11614
11615 * windows-nat.c (enum thread_disposition_type): Move to
11616 nat/windows-nat.h.
11617 (windows_nat::thread_rec): Rename from thread_rec. No longer
11618 static.
11619 (windows_add_thread, windows_nat_target::fetch_registers)
11620 (windows_nat_target::store_registers, handle_exception)
11621 (windows_nat_target::resume, get_windows_debug_event)
11622 (windows_nat_target::get_tib_address)
11623 (windows_nat_target::thread_name)
11624 (windows_nat_target::thread_alive): Update.
11625 * nat/windows-nat.h (enum thread_disposition_type): Move from
11626 windows-nat.c.
11627 (thread_rec): Declare.
11628
4834dad0
TT
116292020-04-08 Tom Tromey <tromey@adacore.com>
11630
11631 * windows-nat.c: Add "using namespace".
11632 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
11633 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
11634
65bafd5b
TT
116352020-04-08 Tom Tromey <tromey@adacore.com>
11636
11637 * nat/windows-nat.h (struct windows_thread_info): Declare
11638 destructor.
11639 * nat/windows-nat.c (~windows_thread_info): New.
11640
0a4afda3
TT
116412020-04-08 Tom Tromey <tromey@adacore.com>
11642
11643 PR gdb/22992
11644 * windows-nat.c (current_event): Update comment.
11645 (last_wait_event, desired_stop_thread_id): New globals.
11646 (struct pending_stop): New.
11647 (pending_stops): New global.
11648 (windows_nat_target) <stopped_by_sw_breakpoint>
11649 <supports_stopped_by_sw_breakpoint>: New methods.
11650 (windows_fetch_one_register): Add assertions. Adjust PC.
11651 (windows_continue): Handle pending stops. Suspend other threads
11652 when stepping. Use last_wait_event
11653 (wait_for_debug_event): New function.
11654 (get_windows_debug_event): Use wait_for_debug_event. Handle
11655 pending stops. Queue spurious stops.
11656 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
11657 (windows_nat_target::kill): Use wait_for_debug_event.
11658 * nat/windows-nat.h (struct windows_thread_info)
11659 <stopped_at_software_breakpoint>: New field.
11660 * nat/windows-nat.c (windows_thread_info::resume): Clear
11661 stopped_at_software_breakpoint.
11662
8e61ebec
TT
116632020-04-08 Tom Tromey <tromey@adacore.com>
11664
11665 * windows-nat.c (enum thread_disposition_type): New.
11666 (thread_rec): Replace "get_context" parameter with "disposition";
11667 change type.
11668 (windows_add_thread, windows_nat_target::fetch_registers)
11669 (windows_nat_target::store_registers, handle_exception)
11670 (windows_nat_target::resume, get_windows_debug_event)
11671 (windows_nat_target::get_tib_address)
11672 (windows_nat_target::thread_name)
11673 (windows_nat_target::thread_alive): Update.
11674
98a03287
TT
116752020-04-08 Tom Tromey <tromey@adacore.com>
11676
11677 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
11678 (windows_continue): Use windows_continue::resume.
11679 * nat/windows-nat.h (struct windows_thread_info) <suspend,
11680 resume>: Declare new methods.
11681 * nat/windows-nat.c: New file.
11682 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
11683
7c7411bc
TT
116842020-04-08 Tom Tromey <tromey@adacore.com>
11685
11686 * windows-nat.c (windows_add_thread, windows_delete_thread)
11687 (windows_nat_target::fetch_registers)
11688 (windows_nat_target::store_registers, fake_create_process)
11689 (windows_nat_target::resume, windows_nat_target::resume)
11690 (get_windows_debug_event, windows_nat_target::wait)
11691 (windows_nat_target::pid_to_str)
11692 (windows_nat_target::get_tib_address)
11693 (windows_nat_target::get_ada_task_ptid)
11694 (windows_nat_target::thread_name)
11695 (windows_nat_target::thread_alive): Use lwp, not tid.
11696
2950fdf7
TT
116972020-04-08 Tom Tromey <tromey@adacore.com>
11698
11699 * windows-nat.c (handle_exception)
11700 (windows_nat_target::thread_name): Update.
11701 * nat/windows-nat.h (windows_thread_info): Remove destructor.
11702 <name>: Now unique_xmalloc_ptr.
11703
62fe396b
TT
117042020-04-08 Tom Tromey <tromey@adacore.com>
11705
11706 * windows-nat.c (thread_rec)
11707 (windows_nat_target::fetch_registers): Update.
11708 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
11709 Update comment.
11710 <debug_registers_changed, reload_context>: Now bool.
11711
e9534bd2
TT
117122020-04-08 Tom Tromey <tromey@adacore.com>
11713
11714 * windows-nat.c (windows_add_thread): Use new.
11715 (windows_init_thread_list, windows_delete_thread): Use delete.
11716 (get_windows_debug_event): Update.
11717 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
11718 destructor, and initializers.
11719
ae1f8880
TT
117202020-04-08 Tom Tromey <tromey@adacore.com>
11721
11722 * windows-nat.c (struct windows_thread_info): Remove.
11723 * nat/windows-nat.h: New file.
11724
55a1e039
TT
117252020-04-08 Tom Tromey <tromey@adacore.com>
11726
11727 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
11728 (thread_rec, windows_add_thread, windows_delete_thread)
11729 (windows_continue): Update.
11730
93366324
TT
117312020-04-08 Tom Tromey <tromey@adacore.com>
11732
11733 * windows-nat.c (struct windows_thread_info): Remove typedef.
11734 (thread_head): Remove.
11735 (thread_list): New global.
11736 (thread_rec, windows_add_thread, windows_init_thread_list)
11737 (windows_delete_thread, windows_continue): Update.
11738
0f2265e2
SM
117392020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11740
11741 * windows-tdep.h (windows_init_abi): Add comment.
11742 (cygwin_init_abi): New declaration.
11743 * windows-tdep.c: Split signal enumeration in two, one for
11744 Windows and one for Cygwin.
11745 (windows_gdb_signal_to_target): Only deal with signal of the
11746 Windows OS ABI.
11747 (cygwin_gdb_signal_to_target): New function.
11748 (windows_init_abi): Rename to windows_init_abi_common, don't set
11749 gdb_signal_to_target gdbarch method. Add new new function with
11750 this name.
11751 (cygwin_init_abi): New function.
11752 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
11753 comment. Don't call windows_init_abi.
11754 (amd64_windows_init_abi): Add comment, call windows_init_abi.
11755 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
11756 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
11757 i386_windows_init_abi_common, don't call windows_init_abi. Add
11758 a new function of this name.
11759 (i386_cygwin_init_abi): New function.
11760 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
11761 OS ABI Cygwin.
11762
3810f182
SM
117632020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11764
11765 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
11766 parameter.c.
11767 (dwarf2_read_gdb_index): Update.
11768
063f8e80
KR
117692020-04-07 Kamil Rytarowski <n54@gmx.com>
11770
11771 * nbsd-tdep.c: Include "objfiles.h".
11772 (nbsd_skip_solib_resolver): New.
11773 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
11774
85a9510c 117752020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11776
11777 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
11778 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
11779 with DW_LLE_base_addressx are being emitted in DWARFv5.
11780 Add the newly added kind DW_LOC_OFFSET_PAIR also.
11781 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
11782 unsigned integer.
11783
9fc3eaae 117842020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11785
11786 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
11787 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
11788 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
11789 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
11790 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
11791 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
11792 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
11793
11794
41144253 117952020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11796
11797 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
11798 (read_loclist_index): New function definition.
11799 (lookup_loclist_base): New function definition.
11800 (read_loclist_header): New function definition.
11801 (dwarf2_cu): Add loclist_base and loclist_header field.
11802 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
11803 (read_full_die_1): Read the value of DW_AT_loclists_base.
11804 (read_attribute_reprocess): Handle DW_FORM_loclistx.
11805 (read_attribute_value): Handle DW_FORM_loclistx.
11806 (skip_one_die): Handle DW_FORM_loclistx.
11807 (loclist_header): New structure declaration.
11808 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
11809
9f4e76a4
SM
118102020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11811
11812 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
11813 constructor. Remove `addr` parameter from other constructor and
11814 add `per_cu` parameter.
11815 * dwarf2/read.c (create_partial_symtab): Update.
11816
25c11aca
TV
118172020-04-07 Tom de Vries <tdevries@suse.de>
11818
11819 PR symtab/25796
11820 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
11821 (partial_die_info::fixup): Inherit has_const_value.
11822
5707e24b
TV
118232020-04-07 Tom de Vries <tdevries@suse.de>
11824
11825 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
11826 symbols without address.
11827
05f00e22
KR
118282020-04-06 Kamil Rytarowski <n54@gmx.com>
11829
11830 * nbsd-nat.h (struct thread_info): Add forward declaration.
11831 (nbsd_nat_target::thread_alive): Add.
11832 (nbsd_nat_target::thread_name): Likewise.
11833 (nbsd_nat_target::update_thread_list): Likewise.
11834 (update_thread_list::post_attach): Likewise.
11835 (post_attach::pid_to_str): Likewise.
11836 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
11837 (nbsd_thread_lister): Add.
11838 (nbsd_nat_target::thread_alive): Likewise.
11839 (nbsd_nat_target::thread_name): Likewise.
11840 (nbsd_add_threads): Likewise.
11841 (update_thread_list::post_attach): Likewise.
11842 (nbsd_nat_target::update_thread_list): Likewise.
11843 (post_attach::pid_to_str): Likewise.
11844
6ee448cc
TT
118452020-04-06 Tom Tromey <tromey@adacore.com>
11846
11847 * ada-valprint.c (print_variant_part): Extract the variant field.
11848 (print_field_values): Use the field as the outer value when
11849 recursing.
11850
dea34e8c
TT
118512020-04-06 Tom Tromey <tromey@adacore.com>
11852
11853 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
11854 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
11855 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
11856 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
11857 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
11858
93689ce9
TT
118592020-04-06 Tom Tromey <tromey@adacore.com>
11860
11861 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
11862 TYPE_CODE_ERROR.
11863
79743962
KR
118642020-04-06 Kamil Rytarowski <n54@gmx.com>
11865
11866 * nbsd-tdep.c: Include "gdbarch.h".
11867 Define enum with NetBSD signal numbers.
11868 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
11869 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
11870 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
11871 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
11872 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
11873 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
11874 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
11875 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11876 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
11877 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
11878 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
11879 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
11880
9e7c9a03
HD
118812020-04-03 Hannes Domani <ssbssa@yahoo.de>
11882
11883 PR gdb/25325
11884 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
11885
d9e49b61
TT
118862020-04-03 Tom Tromey <tromey@adacore.com>
11887
11888 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
11889 Read constant block.
11890
e0fc5c3f
SM
118912020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11892
11893 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
11894 (gdb_bfd_get_full_section_contents): New declaration.
11895 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
11896 * windows-tdep.c (is_linked_with_cygwin_dll): Use
11897 gdb_bfd_get_full_section_contents.
11898
e2ff18a0
SM
118992020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11900
11901 * exec.c (build_section_table): Replace internal_error with
11902 gdb_assert.
11903 (section_table_xfer_memory_partial): Likewise.
11904 * mdebugread.c (parse_partial_symbols): Likewise.
11905 * psymtab.c (lookup_partial_symbol): Likewise.
11906 * utils.c (wrap_here): Likewise.
11907
0830d301
TT
119082020-04-02 Tom Tromey <tromey@adacore.com>
11909
11910 * f-lang.c (build_fortran_types): Use arch_type to initialize
11911 builtin_complex_s32 in the TYPE_CODE_ERROR case.
11912
e7da7f8f
TT
119132020-04-02 Tom Tromey <tromey@adacore.com>
11914
11915 * dwarf2/read.c (partial_die_info::read): Do not create a vector
11916 of attributes.
11917
c90d28ac
AB
119182020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
11919 Bernd Edlinger <bernd.edlinger@hotmail.de>
11920 Tom Tromey <tromey@adacore.com>
11921
11922 * buildsym.c (buildsym_compunit::record_line): Remove
11923 deduplication code.
11924
1aa98955
TV
119252020-04-02 Tom de Vries <tdevries@suse.de>
11926
11927 PR ada/24671
11928 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
11929
d3214198
TV
119302020-04-02 Tom de Vries <tdevries@suse.de>
11931
11932 * dwarf2/read.c (dwarf2_gdb_index_functions,
11933 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
11934 NULL.
11935 * psymtab.c (psym_lookup_global_symbol_language): New function.
11936 (psym_functions): Init psym_lookup_global_symbol_language with
11937 psym_lookup_global_symbol_language.
11938 * symfile-debug.c (debug_sym_quick_functions): Init
11939 lookup_global_symbol_language with NULL.
11940 * symfile.c (set_initial_language): Remove fixme comment.
11941 * symfile.h (struct quick_symbol_functions): Add
11942 lookup_global_symbol_language.
11943 * symtab.c (find_quick_global_symbol_language): New function.
11944 (find_main_name): Use find_quick_global_symbol_language.
11945
2836752f
SM
119462020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
11947
11948 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
11949
64dc2d4b
BE
119502020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11951
11952 * buildsym.c (record_line): Fix undefined behavior and preserve
11953 lines at eof.
11954
bbe3dc41
BE
119552020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11956
11957 * buildsym.c (record_line): Fix the resizing condition.
11958
6b4a335b
TT
119592020-04-01 Tom Tromey <tom@tromey.com>
11960
11961 * value.h (value_literal_complex): Add comment.
11962 * valops.c (value_literal_complex): Refer to value.h.
11963
3638a098
TT
119642020-04-01 Tom Tromey <tom@tromey.com>
11965
11966 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
11967 (scalar_type): New rule, from typebase.
11968 (typebase): Use scalar_type. Recognize complex types.
11969 (field_name): Handle FLOAT_KEYWORD.
11970 (ident_tokens): Add _Complex and __complex__.
11971
c34e8714
TT
119722020-04-01 Tom Tromey <tom@tromey.com>
11973
11974 PR exp/25299:
11975 * valarith.c (promotion_type, complex_binop): New functions.
11976 (scalar_binop): Handle complex numbers. Use promotion_type.
11977 (value_pos, value_neg, value_complement): Handle complex numbers.
11978
fa649bb7
TT
119792020-04-01 Tom Tromey <tom@tromey.com>
11980
11981 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
11982 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
11983 (parse_number): Handle complex numbers.
11984
981c08ce
TT
119852020-04-01 Tom Tromey <tom@tromey.com>
11986
11987 * c-valprint.c (c_decorations): Change complex suffix to "i".
11988
4c99290d
TT
119892020-04-01 Tom Tromey <tom@tromey.com>
11990
11991 * valprint.c (generic_value_print_complex): Use accessors.
11992 * value.h (value_real_part, value_imaginary_part): Declare.
11993 * valops.c (value_real_part, value_imaginary_part): New
11994 functions.
11995 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
11996
5b930b45
TT
119972020-04-01 Tom Tromey <tom@tromey.com>
11998
11999 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
12000 (read_range_type): Update.
12001 * mdebugread.c (basic_type): Update.
12002 * go-lang.c (build_go_types): Use init_complex_type.
12003 * gdbtypes.h (struct main_type) <complex_type>: New member.
12004 (init_complex_type): Update.
12005 (arch_complex_type): Don't declare.
12006 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
12007 Make name if none given. Use alloc_type_copy. Look for cached
12008 complex type.
12009 (arch_complex_type): Remove.
12010 (gdbtypes_post_init): Use init_complex_type.
12011 * f-lang.c (build_fortran_types): Use init_complex_type.
12012 * dwarf2/read.c (read_base_type): Update.
12013 * d-lang.c (build_d_types): Use init_complex_type.
12014 * ctfread.c (read_base_type): Update.
12015
53cccef1
TBA
120162020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12017
12018 * infrun.c (stop_all_threads): Update assertion, plus when
12019 stopping threads, take into account that we might be trying
12020 to stop an all-stop target.
12021 (stop_waiting): Call 'stop_all_threads' if there exists a
12022 non-stop target.
12023
a0714d30
TBA
120242020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12025
12026 * target.h (exists_non_stop_target): New function declaration.
12027 * target.c (exists_non_stop_target): New function.
12028
60e22c1e
HD
120292020-04-01 Hannes Domani <ssbssa@yahoo.de>
12030
12031 PR gdb/24789
12032 * eval.c (is_integral_or_integral_reference): New function.
12033 (evaluate_subexp_standard): Allow integer references in
12034 pointer arithmetic.
12035
e139a727
TBA
120362020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12037
12038 * remote.c (remote_target::remote_parse_stop_reply): Remove the
12039 check for no ptid in the stop reply when the target is non-stop.
12040
e0802d59
TT
120412020-04-01 Tom Tromey <tromey@adacore.com>
12042
12043 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
12044 "name" parameter to rvalue reference. Initialize m_name_holder.
12045 <lookup_name_info>: New overloads.
12046 <name>: Return gdb::string_view.
12047 <c_str>: New method.
12048 <make_ignore_params>: Update.
12049 <search_name_hash>: Update.
12050 <language_lookup_name>: Return const char *.
12051 <m_name>: Change type.
12052 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
12053 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
12054 (lookup_name_info::match_any): Update.
12055 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
12056 Update.
12057 * minsyms.c (linkage_name_str): Update.
12058 * language.c (default_symbol_name_matcher): Update.
12059 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
12060 Update.
12061 * ada-lang.c (ada_fold_name): Change parameter to string_view.
12062 (ada_lookup_name_info::ada_lookup_name_info): Update.
12063 (literal_symbol_name_matcher): Update.
12064
8c072cb6
TT
120652020-04-01 Tom Tromey <tromey@adacore.com>
12066
12067 * psymtab.c (psymtab_search_name): Remove function.
12068 (psym_lookup_symbol): Create search name and lookup name here.
12069 (lookup_partial_symbol): Remove "name" parameter; add
12070 lookup_name.
12071 (psym_expand_symtabs_for_function): Update.
12072
6f29a534
TT
120732020-03-31 Joel Jones <joelkevinjones@gmail.com>
12074
12075 PR tui/25597:
12076 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
12077
af62665e
TT
120782020-03-31 Tom Tromey <tromey@adacore.com>
12079
12080 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
12081 memcpy.
12082
d1a89da5
NC
120832020-03-30 Nelson Chu <nelson.chu@sifive.com>
12084
12085 * features/riscv/32bit-csr.xml: Regenerated.
12086 * features/riscv/64bit-csr.xml: Regenerated.
12087
d8af9068
TT
120882020-03-30 Tom Tromey <tromey@adacore.com>
12089
12090 * ada-valprint.c (print_variant_part): Update.
12091 * ada-lang.h (ada_which_variant_applies): Update.
12092 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
12093 outer_valaddr parameters; replace with "outer" value parameter.
12094 (to_fixed_variant_branch_type): Update.
12095
227c0bf4
PFC
120962020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12097
12098 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
12099 <list>. Remove inclusion of observable.h.
12100 (PPC_DEBUG_CURRENT_VERSION): Move up define.
12101 (struct arch_lwp_info): New struct.
12102 (class ppc_linux_dreg_interface): New class.
12103 (struct ppc_linux_process_info): New struct.
12104 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
12105 <low_new_clone, low_forget_process, low_prepare_to_resume>
12106 <copy_thread_dreg_state, mark_thread_stale>
12107 <mark_debug_registers_changed, register_hw_breakpoint>
12108 <clear_hw_breakpoint, register_wp, clear_wp>
12109 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
12110 <num_memory_accesses, get_trigger_type>
12111 <create_watchpoint_request, hwdebug_point_cmp>
12112 <init_arch_lwp_info, get_arch_lwp_info>
12113 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
12114 methods.
12115 <struct ptid_hash>: New inner struct.
12116 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
12117 members.
12118 (saved_dabr_value, hwdebug_info, max_slots_number)
12119 (struct hw_break_tuple, struct thread_points, ppc_threads)
12120 (have_ptrace_hwdebug_interface)
12121 (hwdebug_find_thread_points_by_tid)
12122 (hwdebug_insert_point, hwdebug_remove_point): Remove.
12123 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
12124 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
12125 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
12126 use m_dreg_interface.
12127 (hwdebug_point_cmp): Change to...
12128 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
12129 reference arguments instead of pointers.
12130 (ppc_linux_nat_target::ranged_break_num_registers): Use
12131 m_dreg_interface.
12132 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
12133 m_dreg_interface. Call register_hw_breakpoint.
12134 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
12135 m_dreg_interface. Call clear_hw_breakpoint.
12136 (get_trigger_type): Change to...
12137 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
12138 comment.
12139 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
12140 use m_dreg_interface. Call register_hw_breakpoint.
12141 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
12142 use m_dreg_interface. Call clear_hw_breakpoint.
12143 (can_use_watchpoint_cond_accel): Change to...
12144 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
12145 method. Update comment, use m_dreg_interface and
12146 m_process_info.
12147 (calculate_dvc): Change to...
12148 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
12149 m_dreg_interface.
12150 (num_memory_accesses): Change to...
12151 (ppc_linux_nat_target::num_memory_accesses): ...this method.
12152 (check_condition): Change to...
12153 (ppc_linux_nat_target::check_condition): ...this method.
12154 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
12155 comment, use m_dreg_interface.
12156 (create_watchpoint_request): Change to...
12157 (ppc_linux_nat_target::create_watchpoint_request): ...this
12158 method. Use m_dreg_interface.
12159 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
12160 m_dreg_interface. Call register_hw_breakpoint or register_wp.
12161 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
12162 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
12163 (ppc_linux_nat_target::low_forget_process)
12164 (ppc_linux_nat_target::low_new_fork)
12165 (ppc_linux_nat_target::low_new_clone)
12166 (ppc_linux_nat_target::low_delete_thread)
12167 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
12168 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
12169 only call mark_thread_stale.
12170 (ppc_linux_thread_exit): Remove.
12171 (ppc_linux_nat_target::stopped_data_address): Change to...
12172 (ppc_linux_nat_target::low_stopped_data_address): This. Add
12173 comment, use m_dreg_interface and m_thread_hw_breakpoints.
12174 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
12175 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
12176 comment. Call low_stopped_data_address.
12177 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
12178 m_dreg_interface.
12179 (ppc_linux_nat_target::masked_watch_num_registers): Use
12180 m_dreg_interface.
12181 (ppc_linux_nat_target::copy_thread_dreg_state)
12182 (ppc_linux_nat_target::mark_thread_stale)
12183 (ppc_linux_nat_target::mark_debug_registers_changed)
12184 (ppc_linux_nat_target::register_hw_breakpoint)
12185 (ppc_linux_nat_target::clear_hw_breakpoint)
12186 (ppc_linux_nat_target::register_wp)
12187 (ppc_linux_nat_target::clear_wp)
12188 (ppc_linux_nat_target::init_arch_lwp_info)
12189 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
12190 (_initialize_ppc_linux_nat): Remove observer callback.
12191
4db10d8f
PFC
121922020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12193
12194 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
12195 (ppc_linux_nat_target::auxv_parse)
12196 (ppc_linux_nat_target::read_description)
12197 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
12198 Move up.
12199
1310c1b0
PFC
122002020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12201
12202 * linux-nat.h (low_new_clone): New method.
12203 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
12204
69b037c3
SM
122052020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12206
12207 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
12208 (dbx_expand_psymtab): ... this.
12209 (start_psymtab): Update.
12210 * mdebugread.c (psymtab_to_symtab_1): Rename to...
12211 (mdebug_expand_psymtab): ... this.
12212 (parse_partial_symbols): Update.
12213 (new_psymtab): Update.
12214 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
12215 (xcoff_expand_psymtab): ... this.
12216 (xcoff_start_psymtab): Update.
12217
48993951
SM
122182020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12219
12220 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
12221 <expand_dependencies>: ... this.
12222 * psymtab.c (partial_symtab::read_dependencies): Rename to...
12223 (partial_symtab::expand_dependencies): ... this.
12224 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
12225 Update.
12226 (dwarf2_psymtab::expand_psymtab): Update.
12227 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12228 * mdebugread.c (psymtab_to_symtab_1): Update.
12229 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12230
3ad83046
SM
122312020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12232
12233 * psympriv.h (discard_psymtab): Remove.
12234 * dbxread.c (dbx_end_psymtab): Update.
12235 * xcoffread.c (xcoff_end_psymtab): Update.
12236
4d1b9ab6
TT
122372020-03-28 Tom Tromey <tom@tromey.com>
12238
12239 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
12240 comment.
12241
f1749218
TT
122422020-03-28 Tom Tromey <tom@tromey.com>
12243
12244 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
12245
ebea7626
HD
122462020-03-27 Hannes Domani <ssbssa@yahoo.de>
12247
12248 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12249
a879b4d5
JB
122502020-03-26 John Baldwin <jhb@FreeBSD.org>
12251
12252 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
12253
0826b30a
TT
122542020-03-26 Tom Tromey <tom@tromey.com>
12255
12256 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
12257 (mark_common_block_symbol_computed, read_tag_string_type)
12258 (attr_to_dynamic_prop, read_subrange_type): Update.
12259 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
12260 to be methods on struct attribute.
12261 (skip_one_die, process_imported_unit_die, read_namespace_alias)
12262 (read_call_site_scope, partial_die_info::read)
12263 (partial_die_info::read, lookup_die_type, follow_die_ref):
12264 Update.
12265 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
12266 from dwarf2_get_ref_die_offset.
12267 (attribute::constant_value): New method, from
12268 dwarf2_get_attr_constant_value.
12269 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
12270 Declare method.
12271 <constant_value>: New method.
12272
2b2558bf
TT
122732020-03-26 Tom Tromey <tom@tromey.com>
12274
12275 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
12276 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
12277 (dwarf_type_encoding_name): Move to stringify.c.
12278 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
12279 * dwarf2/stringify.c: New file.
12280 * dwarf2/stringify.h: New file.
12281
eeb64781
TT
122822020-03-26 Tom Tromey <tom@tromey.com>
12283
12284 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
12285 Rewrite.
12286
a39fdb41
TT
122872020-03-26 Tom Tromey <tom@tromey.com>
12288
12289 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
12290 methods.
12291 * dwarf2/read.c (lookup_addr_base): Move to die.h.
12292 (lookup_ranges_base): Likewise.
12293 (read_cutu_die_from_dwo, read_full_die_1): Update.
12294
436c571c
TT
122952020-03-26 Tom Tromey <tom@tromey.com>
12296
12297 * dwarf2/read.c (read_import_statement, read_file_scope)
12298 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
12299 (read_lexical_block_scope, read_call_site_scope)
12300 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
12301 (handle_struct_member_die, process_structure_scope)
12302 (update_enumeration_type_from_children)
12303 (process_enumeration_scope, read_array_type, read_common_block)
12304 (read_namespace, read_module, read_subroutine_type): Update.
12305 (sibling_die): Remove.
12306
052c8bb8
TT
123072020-03-26 Tom Tromey <tom@tromey.com>
12308
12309 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
12310 (build_type_psymtabs_reader, read_structure_type)
12311 (read_enumeration_type, read_full_die_1): Update.
12312 (dwarf2_attr_no_follow): Move to die.h.
12313 * dwarf2/die.h (struct die_info) <attr>: New method.
12314
2b24b6e4
TT
123152020-03-26 Tom Tromey <tom@tromey.com>
12316
12317 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
12318 <base_address>: Now an optional.
12319 (dwarf2_find_base_address, dwarf2_rnglists_process)
12320 (dwarf2_ranges_process, fill_in_loclist_baton)
12321 (dwarf2_symbol_mark_computed): Update.
12322
c2d50fd0
TT
123232020-03-26 Tom Tromey <tom@tromey.com>
12324
12325 * dwarf2/read.c (struct die_info): Move to die.h.
12326 * dwarf2/die.h: New file.
12327
0df7ad3a
TT
123282020-03-26 Tom Tromey <tom@tromey.com>
12329
12330 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
12331 * dwarf2/read.c
12332 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12333 Move to line-header.c.
12334 (read_checked_initial_length_and_offset, read_formatted_entries):
12335 Likewise.
12336 (dwarf_decode_line_header): Split into two.
12337 * dwarf2/line-header.c
12338 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12339 Move from read.c.
12340 (read_checked_initial_length_and_offset, read_formatted_entries):
12341 Likewise.
12342 (dwarf_decode_line_header): New function, split from read.c.
12343
86c0bb4c
TT
123442020-03-26 Tom Tromey <tom@tromey.com>
12345
12346 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
12347 Declare method.
12348 * dwarf2/read.c (read_attribute_value): Update.
12349 (dwarf2_per_objfile::read_line_string): Rename from
12350 read_indirect_line_string.
12351 (read_formatted_entries): Update.
12352
2ef46c2f
TT
123532020-03-26 Tom Tromey <tom@tromey.com>
12354
12355 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
12356 variable.
12357
4f9c1eda
TT
123582020-03-26 Tom Tromey <tom@tromey.com>
12359
12360 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
12361 const.
12362 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
12363 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
12364 parameter const.
12365
5a0e026f
TT
123662020-03-26 Tom Tromey <tom@tromey.com>
12367
12368 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
12369 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
12370 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
12371 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
12372
8844c11b
TT
123732020-03-26 Tom Tromey <tom@tromey.com>
12374
12375 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
12376 file_names_size, file_full_name, file_file_name>: Use const.
12377 <file_name_at, file_names>: Add const overload.
12378 * dwarf2/line-header.c (line_header::file_file_name)
12379 (line_header::file_full_name): Update.
12380
c90ec28a
TT
123812020-03-26 Tom Tromey <tom@tromey.com>
12382
12383 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
12384 (macro_start_file, consume_improper_spaces)
12385 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
12386 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
12387 (dwarf_decode_macros): Move to macro.c.
12388 * dwarf2/macro.c: New file.
12389 * dwarf2/macro.h: New file.
12390 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
12391
4f44ae6c
TT
123922020-03-26 Tom Tromey <tom@tromey.com>
12393
12394 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
12395 method.
12396 * dwarf2/section.c: New method. From
12397 read_indirect_string_at_offset_from.
12398 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
12399 (read_indirect_string_at_offset_from): Move to section.c.
12400 (read_indirect_string_at_offset): Rewrite.
12401 (read_indirect_line_string_at_offset): Remove.
12402 (read_indirect_string, read_indirect_line_string)
12403 (dwarf_decode_macro_bytes): Update.
12404
a0194fa8
TT
124052020-03-26 Tom Tromey <tom@tromey.com>
12406
12407 * dwarf2/section.h (struct dwarf2_section_info)
12408 <overload_complaint>: Declare.
12409 (dwarf2_section_buffer_overflow_complaint): Don't declare.
12410 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
12411 Rename from dwarf2_section_buffer_overflow_complaint.
12412 * dwarf2/read.c (skip_one_die, partial_die_info::read)
12413 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
12414
3d27bbdb
TT
124152020-03-26 Tom Tromey <tom@tromey.com>
12416
12417 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
12418 Declare.
12419 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
12420 Move from read.c.
12421 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
12422 to section.c.
12423
9eac9650
TT
124242020-03-26 Tom Tromey <tom@tromey.com>
12425
12426 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
12427
bf80d710
TT
124282020-03-26 Tom Tromey <tom@tromey.com>
12429
12430 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
12431 "builder".
12432 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
12433 parameter.
12434 (dwarf_decode_macros): Update.
12435
0314b390
TT
124362020-03-26 Tom Tromey <tom@tromey.com>
12437
12438 * dwarf2/read.c (read_attribute_value): Update.
12439 (read_indirect_string_from_dwz): Move to dwz.c; change into
12440 method.
12441 (dwarf_decode_macro_bytes): Update.
12442 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
12443 * dwarf2/dwz.c: New file.
12444 * Makefile.in (COMMON_SFILES): Add dwz.c.
12445
9fda78b6
TT
124462020-03-26 Tom Tromey <tom@tromey.com>
12447
12448 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
12449 * dwarf2/read.c: Add include.
12450 * dwarf2/index-write.c: Add include.
12451 * dwarf2/index-cache.c: Add include.
12452 * dwarf2/dwz.h: New file.
12453
33aa3c10
TT
124542020-03-25 Tom Tromey <tom@tromey.com>
12455
12456 * compile/compile-object-load.c (get_out_value_type): Mention
12457 correct symbol name in error message.
12458
d503b685
HD
124592020-03-25 Hannes Domani <ssbssa@yahoo.de>
12460
12461 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12462
7b1eff95
TV
124632020-03-25 Tom de Vries <tdevries@suse.de>
12464
12465 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
12466 * symmisc.c (dump_symtab_1): Print user and includes fields.
12467 (maintenance_info_symtabs): Same.
12468
dd895392
AB
124692020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
12470
12471 PR gdb/25534
12472 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
12473 (riscv_regcache_cooked_write): New function.
12474 (riscv_push_dummy_call): Use new function.
12475 (riscv_return_value): Likewise.
12476
5ab2fbf1
SM
124772020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
12478
12479 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
12480 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
12481 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
12482 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
12483 * infrun.c (follow_fork): Likewise.
12484 (follow_fork_inferior): Likewise.
12485 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
12486 * linux-nat.h (class linux_nat_target): Likewise.
12487 * remote.c (class remote_target) <follow_fork>: Likewise.
12488 (remote_target::follow_fork): Likewise.
12489 * target-delegates.c: Re-generate.
12490 * target.c (default_follow_fork): Likewise.
12491 (target_follow_fork): Likewise.
12492 * target.h (struct target_ops) <follow_fork>: Likewise.
12493 (target_follow_fork): Likewise.
12494
a64fafb5
TV
124952020-03-24 Tom de Vries <tdevries@suse.de>
12496
12497 * psymtab.c (maintenance_info_psymtabs): Print user field.
12498
fe26d3a3
TT
124992020-03-20 Tom Tromey <tromey@adacore.com>
12500
12501 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
12502 const.
12503 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
12504 const.
12505
c884cc46
SM
125062020-03-20 Simon Marchi <simon.marchi@efficios.com>
12507
12508 * ptrace.m4: Don't check for ptrace declaration.
12509 * config.in: Re-generate.
12510 * configure: Re-generate.
12511 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
12512 not defined.
12513
1ff700c2
KR
125142020-03-20 Kamil Rytarowski <n54@gmx.com>
12515
12516 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
12517 `PTRACE_TYPE_RET'.
12518 * i386-bsd-nat.c (gdb_ptrace): Likewise.
12519 * sparc-nat.c (gdb_ptrace): Likewise.
12520 * x86-bsd-nat.c (gdb_ptrace): Likewise.
12521
f7d4f0b1
TT
125222020-03-20 Tom Tromey <tromey@adacore.com>
12523
12524 * c-exp.y (lex_one_token): Fix assert.
12525
f67210ff
TT
125262020-03-20 Tom Tromey <tromey@adacore.com>
12527
12528 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
12529 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
12530 strncpy call.
12531
1773be9e
TT
125322020-03-20 Tom Tromey <tromey@adacore.com>
12533
12534 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
12535
70304be9
TT
125362020-03-20 Tom Tromey <tromey@adacore.com>
12537
12538 * ada-valprint.c (print_variant_part): Remove parameters; switch
12539 to value-based API.
12540 (print_field_values): Likewise.
12541 (ada_val_print_struct_union): Likewise.
12542 (ada_value_print_1): Update.
12543
9faa006d
KR
125442020-03-20 Kamil Rytarowski <n54@gmx.com>
12545
12546 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
12547 nbsd_nat_target instead of inf_ptrace_target.
12548 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12549 nbsd_nat_target.
12550
4a90f062
KR
125512020-03-20 Kamil Rytarowski <n54@gmx.com>
12552
12553 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
12554 it to the ptrace call.
12555 * (store_registers): Likewise.
12556
125572020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
12558
12559 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
12560 it to the ptrace call.
12561 * (store_registers): Likewise.
12562
2d07da27
LM
125632020-03-19 Luis Machado <luis.machado@linaro.org>
12564
12565 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
12566 valid, fetch vg value from ptrace.
12567
f09db380
KR
125682020-03-19 Kamil Rytarowski <n54@gmx.com>
12569 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
12570 * inf-ptrace.c: Likewise.
12571 * (gdb_ptrace): Add.
12572 * (inf_ptrace_target::resume): Update.
12573 * (inf_ptrace_target::xfer_partial): Likewise.
12574 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
12575 * (inf_ptrace_peek_poke): Update.
12576
fcc7376e
KR
125772020-03-19 Kamil Rytarowski <n54@gmx.com>
12578
12579 * x86-bsd-nat.c (gdb_ptrace): New.
12580 * (x86bsd_dr_set): Add new argument `ptid'.
12581 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
12582 x86bsd_dr_set_addr): Update.
12583
cada5fc9
AB
125842020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12585
12586 * remote.c (remote_target::process_stop_reply): Handle events for
12587 all threads differently.
12588
19a2740f
AB
125892020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12590
12591 * completer.c (completion_tracker::remove_completion): Define new
12592 function.
12593 * completer.h (completion_tracker::remove_completion): Declare new
12594 function.
12595 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
12596 when adding a C++ function symbol.
12597
724fd9ba
AB
125982020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12599
12600 * completer.c (completion_tracker::completion_hash_entry): Define
12601 new class.
12602 (advance_to_filename_complete_word_point): Call
12603 recompute_lowest_common_denominator.
12604 (completion_tracker::completion_tracker): Call discard_completions
12605 to setup the hash table.
12606 (completion_tracker::discard_completions): Allow for being called
12607 from the constructor, pass new equal function, and element deleter
12608 when constructing the hash table. Initialise new class member
12609 variables.
12610 (completion_tracker::maybe_add_completion): Remove use of
12611 m_entries_vec, and store more information into m_entries_hash.
12612 (completion_tracker::recompute_lcd_visitor): New function, most
12613 content taken from...
12614 (completion_tracker::recompute_lowest_common_denominator):
12615 ...here, this now just visits each item in the hash calling the
12616 above visitor.
12617 (completion_tracker::build_completion_result): Remove use of
12618 m_entries_vec, call recompute_lowest_common_denominator.
12619 * completer.h (completion_tracker::have_completions): Remove use
12620 of m_entries_vec.
12621 (completion_tracker::completion_hash_entry): Declare new class.
12622 (completion_tracker::recompute_lowest_common_denominator): Change
12623 function signature.
12624 (completion_tracker::recompute_lcd_visitor): Declare new function.
12625 (completion_tracker::m_entries_vec): Delete.
12626 (completion_tracker::m_entries_hash): Initialize to NULL.
12627 (completion_tracker::m_lowest_common_denominator_valid): New
12628 member variable.
12629 (completion_tracker::m_lowest_common_denominator_max_length): New
12630 member variable.
12631
5a82b8a1
KR
126322020-03-17 Kamil Rytarowski <n54@gmx.com>
12633
12634 * regformats/regdef.h: Put reg in gdb namespace.
12635
fb516a69
KR
126362020-03-17 Kamil Rytarowski <n54@gmx.com>
12637
12638 * i386-bsd-nat.c (gdb_ptrace): New.
12639 * (i386bsd_fetch_inferior_registers,
12640 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12641 * (i386bsd_fetch_inferior_registers,
12642 i386bsd_store_inferior_registers) Use gdb_ptrace.
12643
1c0aa1fb
KR
126442020-03-17 Kamil Rytarowski <n54@gmx.com>
12645
12646 * amd64-bsd-nat.c (gdb_ptrace): New.
12647 * (amd64bsd_fetch_inferior_registers,
12648 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12649 * (amd64bsd_fetch_inferior_registers,
12650 amd64bsd_store_inferior_registers) Use gdb_ptrace.
12651
5ccd2fb7
KR
126522020-03-17 Kamil Rytarowski <n54@gmx.com>
12653
12654 * user-regs.c (user_reg::read): Rename to...
12655 (user_reg::xread): ...this.
12656 * (append_user_reg): Rename argument `read' to `xread'.
12657 * (user_reg_add_builtin): Likewise.
12658 * (user_reg_add): Likewise.
12659 * (value_of_user_reg): Likewise.
12660
2108a63a
KR
126612020-03-17 Kamil Rytarowski <n54@gmx.com>
12662
12663 * sparc-nat.c (gdb_ptrace): New.
12664 * sparc-nat.c (sparc_fetch_inferior_registers)
12665 (sparc_store_inferior_registers) Remove obsolete comment.
12666 * sparc-nat.c (sparc_fetch_inferior_registers)
12667 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
12668 * sparc-nat.c (sparc_fetch_inferior_registers)
12669 (sparc_store_inferior_registers) Use gdb_ptrace.
12670
a225c9a8
KR
126712020-03-17 Kamil Rytarowski <n54@gmx.com>
12672
12673 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
12674 it to the ptrace call.
12675 * sh-nbsd-nat.c (store_registers): Likewise.
12676
98097623
KR
126772020-03-17 Kamil Rytarowski <n54@gmx.com>
12678
12679 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
12680 nbsd_nat_target instead of inf_ptrace_target.
12681 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12682 nbsd_nat_target.
12683
9e38d619
KR
126842020-03-17 Kamil Rytarowski <n54@gmx.com>
12685
12686 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
12687
a2ecbe9f
KR
126882020-03-17 Kamil Rytarowski <n54@gmx.com>
12689
12690 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
12691 <sys/sysctl.h>.
12692 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
12693
58990295
TV
126942020-03-17 Tom de Vries <tdevries@suse.de>
12695
12696 PR gdb/23710
12697 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
12698 fields.
12699 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
12700 fields.
12701 (process_imported_unit_die): Skip import of c++ CUs.
12702
771dd3a8
TT
127032020-03-16 Tom Tromey <tom@tromey.com>
12704
12705 * p-valprint.c (pascal_object_print_value): Initialize
12706 base_value.
12707
817a7585
AK
127082020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
12709 Shahab Vahedi <shahab@synopsys.com>
12710
12711 * Makefile.in: Add arch/arc.o
12712 * configure.tgt: Likewise.
12713 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
12714 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 12715 (arc_read_description): New function to cache target descriptions.
817a7585
AK
12716 * arc-tdep.h (arc_read_description): Add proto type.
12717 * arch/arc.c: New file.
12718 * arch/arc.h: Likewise.
12719 * features/Makefile: Replace old target descriptions with new.
12720 * features/arc-arcompact.c: Remove.
12721 * features/arc-arcompact.xml: Likewise.
12722 * features/arc-v2.c: Likewise
12723 * features/arc-v2.xml: Likewise
12724 * features/arc/aux-arcompact.xml: New file.
12725 * features/arc/aux-v2.xml: Likewise.
12726 * features/arc/core-arcompact.xml: Likewise.
12727 * features/arc/core-v2.xml: Likewise.
12728 * features/arc/aux-arcompact.c: Generate.
12729 * features/arc/aux-v2.c: Likewise.
12730 * features/arc/core-arcompact.c: Likewise.
12731 * features/arc/core-v2.c: Likewise.
12732 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
12733
67430cd0
TT
127342020-03-16 Tom Tromey <tromey@adacore.com>
12735
12736 PR gdb/25663:
12737 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
12738 putting value into bcache.
12739
30efb6c7
SM
127402020-03-16 Simon Marchi <simon.marchi@efficios.com>
12741
12742 PR gdb/21500
12743 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
12744 to...
12745 (amd64_windows_init_abi_common): ... this. Don't set size of
12746 long type.
12747 (amd64_windows_init_abi): New function.
12748 (amd64_cygwin_init_abi): New function.
12749 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
12750 the Cygwin OS ABI.
12751 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
12752 comment.
12753
8db52437
SM
127542020-03-16 Simon Marchi <simon.marchi@efficios.com>
12755
12756 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
12757 * windows-tdep.c (CYGWIN_DLL_NAME): New.
12758 (pe_import_directory_entry): New struct type.
12759 (is_linked_with_cygwin_dll): New function.
12760 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
12761 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
12762 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
12763
5982a56a
SM
127642020-03-16 Simon Marchi <simon.marchi@efficios.com>
12765
12766 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
12767 i386_cygwin_core_osabi_sniffer.
12768
7a1998df
SM
127692020-03-16 Simon Marchi <simon.marchi@efficios.com>
12770
12771 * i386-cygwin-tdep.c: Rename to...
12772 * i386-windows-tdep.c: ... this.
12773 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
12774 i386-windows-tdep.c.
12775 * configure.tgt: Likewise.
12776
053205cc
SM
127772020-03-16 Simon Marchi <simon.marchi@efficios.com>
12778
12779 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
12780 * osabi.c (gdb_osabi_names): Add "Windows".
12781 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
12782 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
12783 (i386_cygwin_core_osabi_sniffer): New function, extracted from
12784 i386_cygwin_osabi_sniffer.
12785 (_initialize_i386_cygwin_tdep): Register OS ABI
12786 GDB_OSABI_WINDOWS for i386.
12787 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
12788 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
12789 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
12790 for x86-64.
12791 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
12792 when the target matches '*-*-mingw*'.
12793
fe4b2ee6
SM
127942020-03-16 Simon Marchi <simon.marchi@efficios.com>
12795
12796 * defs.h (enum gdb_osabi): Move to...
12797 * osabi.h (enum gdb_osabi): ... here.
12798 * gdbarch.sh: Include osabi.h in gdbarch.h.
12799 * gdbarch.h: Re-generate.
12800
cb9b645d
SM
128012020-03-16 Simon Marchi <simon.marchi@efficios.com>
12802
12803 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
12804 function.
12805 (_initialize_amd64_windows_tdep): Register osabi sniffer.
12806
3293bbaf
TT
128072020-03-14 Tom Tromey <tom@tromey.com>
12808
12809 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
12810 for C++.
12811 (c_type_print_modifier): Likewise. Add "language" parameter.
12812 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
12813 (c_type_print_base_1): Update.
12814 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
12815 constants.
12816 * type-stack.c (type_stack::insert): Handle tp_atomic and
12817 tp_restrict.
12818 (type_stack::follow_type_instance_flags): Likewise.
12819 (type_stack::follow_types): Likewise. Merge type-following code.
12820 * c-exp.y (RESTRICT, ATOMIC): New tokens.
12821 (space_identifier, cv_with_space_id)
12822 (const_or_volatile_or_space_identifier_noopt)
12823 (const_or_volatile_or_space_identifier): Remove.
12824 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
12825 rules.
12826 (ptr_operator, typebase): Update.
12827 (enum token_flag) <FLAG_C>: New constant.
12828 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
12829 "_Atomic".
12830 (lex_one_token): Handle FLAG_C.
12831
154151a6
KR
128322020-03-14 Kamil Rytarowski <n54@gmx.com>
12833
12834 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
12835 it to the ptrace call.
12836 * m68k-bsd-nat.c (store_registers): Likewise.
12837
bc107784
KR
128382020-03-14 Kamil Rytarowski <n54@gmx.com>
12839
12840 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
12841 gdb_byte *.
12842 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
12843 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
12844 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
12845
01a80117
KR
128462020-03-14 Kamil Rytarowski <n54@gmx.com>
12847
12848 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
12849 nbsd_nat_target instead of inf_ptrace_target.
12850 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12851 nbsd_nat_target.
12852
f90280ca
KR
128532020-03-14 Kamil Rytarowski <n54@gmx.com>
12854
12855 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
12856 register_t.
12857
6def66f1
KR
128582020-03-14 Kamil Rytarowski <n54@gmx.com>
12859
12860 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
12861 it to the ptrace call.
12862 * alpha-bsd-nat.c (store_registers): Likewise.
12863
66eaca97
KR
128642020-03-14 Kamil Rytarowski <n54@gmx.com>
12865
12866 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
12867 includes.
12868 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
12869 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
12870 fill_fpregset): Likewise.
12871
4fed520b
KR
128722020-03-14 Kamil Rytarowski <n54@gmx.com>
12873
12874 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
12875 nbsd_nat_target instead of inf_ptrace_target.
12876 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12877 nbsd_nat_target.
12878
2190cf06
KR
128792020-03-14 Kamil Rytarowski <n54@gmx.com>
12880
12881 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
12882 register_t.
12883
75c56d3d
KR
128842020-03-14 Kamil Rytarowski <n54@gmx.com>
12885
12886 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
12887 it to the ptrace call.
12888 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
12889 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
12890 * arm-nbsd-nat.c (store_register): Likewise.
12891 * arm-nbsd-nat.c (store_regs): Likewise.
12892 * arm-nbsd-nat.c (store_fp_register): Likewise.
12893 * arm-nbsd-nat.c (store_fp_regs): Likewise.
12894
6018d381
KR
128952020-03-14 Kamil Rytarowski <n54@gmx.com>
12896
12897 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
12898 nbsd_nat_target instead of inf_ptrace_target.
12899 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12900 nbsd_nat_target.
12901
013f99f0
KR
129022020-03-14 Kamil Rytarowski <n54@gmx.com>
12903
12904 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
12905 it to the ptrace call.
12906 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
12907
12753073
KR
129082020-03-14 Kamil Rytarowski <n54@gmx.com>
12909
6227b330
KR
12910 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
12911 it to the ptrace call.
12912 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
12913
129142020-03-14 Kamil Rytarowski <n54@gmx.com>
12915
12916 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
12917 gdb_byte *.
12753073
KR
12918 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
12919
d5be5fa4
KR
129202020-03-14 Kamil Rytarowski <n54@gmx.com>
12921
12922 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
12923 instead of inf_ptrace_target.
12924 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12925 nbsd_nat_target.
12926
8110f842
KR
129272020-03-14 Kamil Rytarowski <n54@gmx.com>
12928
12929 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12930 register_t.
12931
52feded7
KR
129322020-03-14 Kamil Rytarowski <n54@gmx.com>
12933
12934 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
12935 register_t.
12936
25567eee
KR
129372020-03-14 Kamil Rytarowski <n54@gmx.com>
12938
12939 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
12940 register_t.
12941
426a9c18
TT
129422020-03-13 Tom Tromey <tom@tromey.com>
12943
12944 * value.h (val_print): Don't declare.
12945 * valprint.h (val_print_array_elements)
12946 (val_print_scalar_formatted, generic_val_print): Don't declare.
12947 * valprint.c (generic_val_print_array): Take a struct value.
12948 (generic_val_print_ptr, generic_val_print_memberptr)
12949 (generic_val_print_bool, generic_val_print_int)
12950 (generic_val_print_char, generic_val_print_complex)
12951 (generic_val_print): Remove.
12952 (generic_value_print): Update.
12953 (do_val_print): Remove unused parameters. Don't call
12954 la_val_print.
12955 (val_print): Remove.
12956 (common_val_print): Update. Don't call value_check_printable.
12957 (val_print_scalar_formatted, val_print_array_elements): Remove.
12958 * rust-lang.c (rust_val_print): Remove.
12959 (rust_language_defn): Update.
12960 * p-valprint.c (pascal_val_print): Remove.
12961 (pascal_value_print_inner): Update.
12962 (pascal_object_print_val_fields, pascal_object_print_val):
12963 Remove.
12964 (pascal_object_print_static_field): Update.
12965 * p-lang.h (pascal_val_print): Don't declare.
12966 * p-lang.c (pascal_language_defn): Update.
12967 * opencl-lang.c (opencl_language_defn): Update.
12968 * objc-lang.c (objc_language_defn): Update.
12969 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
12970 * m2-lang.h (m2_val_print): Don't declare.
12971 * m2-lang.c (m2_language_defn): Update.
12972 * language.h (struct language_defn) <la_val_print>: Remove.
12973 * language.c (unk_lang_value_print_inner): Rename. Change
12974 argument types.
12975 (unknown_language_defn, auto_language_defn): Update.
12976 * go-valprint.c (go_val_print): Remove.
12977 * go-lang.h (go_val_print): Don't declare.
12978 * go-lang.c (go_language_defn): Update.
12979 * f-valprint.c (f_val_print): Remove.
12980 * f-lang.h (f_value_print): Don't declare.
12981 * f-lang.c (f_language_defn): Update.
12982 * d-valprint.c (d_val_print): Remove.
12983 * d-lang.h (d_value_print): Don't declare.
12984 * d-lang.c (d_language_defn): Update.
12985 * cp-valprint.c (cp_print_value_fields)
12986 (cp_print_value_fields_rtti, cp_print_value): Remove.
12987 (cp_print_static_field): Update.
12988 * c-valprint.c (c_val_print_array, c_val_print_ptr)
12989 (c_val_print_struct, c_val_print_union, c_val_print_int)
12990 (c_val_print_memberptr, c_val_print): Remove.
12991 * c-lang.h (c_val_print_array, cp_print_value_fields)
12992 (cp_print_value_fields_rtti): Don't declare.
12993 * c-lang.c (c_language_defn, cplus_language_defn)
12994 (asm_language_defn, minimal_language_defn): Update.
12995 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
12996 (ada_val_print_enum): Take a struct value.
12997 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
12998 (ada_val_print): Remove.
12999 (ada_value_print_1): Update.
13000 (printable_val_type): Remove.
13001 * ada-lang.h (ada_val_print): Don't declare.
13002 * ada-lang.c (ada_language_defn): Update.
13003
42331a1e
TT
130042020-03-13 Tom Tromey <tom@tromey.com>
13005
13006 * valprint.c (do_val_print): Update.
13007 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
13008 a struct value.
13009 (value_to_value_object_no_release): Declare.
13010 * python/py-value.c (value_to_value_object_no_release): New
13011 function.
13012 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
13013 struct value.
13014 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
13015 function.
13016 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
13017 a struct value.
13018 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
13019 Declare.
13020 (gdbscm_apply_val_pretty_printer): Take a struct value.
13021 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
13022 value.
13023 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
13024 value.
13025 * extension-priv.h (struct extension_language_ops)
13026 <apply_val_pretty_printer>: Take a struct value.
13027 * cp-valprint.c (cp_print_value): Create a struct value.
13028 (cp_print_value): Update.
13029
3a916a97
TT
130302020-03-13 Tom Tromey <tom@tromey.com>
13031
13032 * ada-valprint.c (print_field_values): Call common_val_print.
13033
b59eac37
TT
130342020-03-13 Tom Tromey <tom@tromey.com>
13035
13036 * ada-valprint.c (val_print_packed_array_elements): Remove
13037 bitoffset and val parameters. Call common_val_print.
13038 (ada_val_print_string): Remove offset, address, and original_value
13039 parameters.
13040 (ada_val_print_array): Update.
13041 (ada_value_print_array): New function.
13042 (ada_value_print_1): Call it.
13043
03371129
TT
130442020-03-13 Tom Tromey <tom@tromey.com>
13045
13046 * ada-valprint.c (ada_value_print): Use common_val_print.
13047
2e088f8b
TT
130482020-03-13 Tom Tromey <tom@tromey.com>
13049
13050 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
13051
39ef85a8
TT
130522020-03-13 Tom Tromey <tom@tromey.com>
13053
13054 * ada-valprint.c (ada_value_print_num): New function.
13055 (ada_value_print_1): Use it.
13056
b9fa6e07
TT
130572020-03-13 Tom Tromey <tom@tromey.com>
13058
13059 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
13060
416595d6
TT
130612020-03-13 Tom Tromey <tom@tromey.com>
13062
13063 * ada-valprint.c (ada_value_print_ptr): New function.
13064 (ada_value_print_1): Use it.
13065
5b5e15ec
TT
130662020-03-13 Tom Tromey <tom@tromey.com>
13067
13068 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
13069 call common_val_print.
13070 (ada_val_print_1): Update.
13071 (ada_value_print_1): New function.
13072 (ada_value_print_inner): Rewrite.
13073
fbf54e75
TT
130742020-03-13 Tom Tromey <tom@tromey.com>
13075
13076 * cp-valprint.c (cp_print_value_fields): Update.
13077 (cp_print_value): New function.
13078
64b653ca
TT
130792020-03-13 Tom Tromey <tom@tromey.com>
13080
13081 * m2-valprint.c (m2_value_print_inner): Use
13082 cp_print_value_fields.
13083 * cp-valprint.c (cp_print_value_fields): New function.
13084 * c-valprint.c (c_value_print_struct): New function.
13085 (c_value_print_inner): Use c_value_print_struct.
13086 * c-lang.h (cp_print_value_fields): Declare.
13087
6999f067
TT
130882020-03-13 Tom Tromey <tom@tromey.com>
13089
13090 * c-valprint.c (c_value_print_array): New function.
13091 (c_value_print_inner): Use it.
13092
ce80b8bd
TT
130932020-03-13 Tom Tromey <tom@tromey.com>
13094
13095 * c-valprint.c (c_value_print_memberptr): New function.
13096 (c_value_print_inner): Use it.
13097
2faac269
TT
130982020-03-13 Tom Tromey <tom@tromey.com>
13099
13100 * c-valprint.c (c_value_print_int): New function.
13101 (c_value_print_inner): Use it.
13102
da3e2c29
TT
131032020-03-13 Tom Tromey <tom@tromey.com>
13104
13105 * c-valprint.c (c_value_print_ptr): New function.
13106 (c_value_print_inner): Use it.
13107
50836231
TT
131082020-03-13 Tom Tromey <tom@tromey.com>
13109
13110 * c-valprint.c (c_value_print_inner): Rewrite.
13111
4f412b6e
TT
131122020-03-13 Tom Tromey <tom@tromey.com>
13113
13114 * valprint.c (generic_value_print_complex): New function.
13115 (generic_value_print): Use it.
13116
f5354008
TT
131172020-03-13 Tom Tromey <tom@tromey.com>
13118
13119 * valprint.c (generic_val_print_float): Don't call
13120 val_print_scalar_formatted.
13121 (generic_val_print, generic_value_print): Update.
13122
3eec3b05
TT
131232020-03-13 Tom Tromey <tom@tromey.com>
13124
13125 * valprint.c (generic_value_print_char): New function
13126 (generic_value_print): Use it.
13127
fdddfccb
TT
131282020-03-13 Tom Tromey <tom@tromey.com>
13129
13130 * valprint.c (generic_value_print_int): New function.
13131 (generic_value_print): Use it.
13132
6dde7521
TT
131332020-03-13 Tom Tromey <tom@tromey.com>
13134
13135 * valprint.c (generic_value_print_bool): New function.
13136 (generic_value_print): Use it.
13137
4112d2e6
TT
131382020-03-13 Tom Tromey <tom@tromey.com>
13139
13140 * valprint.c (generic_val_print_func): Simplify.
13141 (generic_val_print, generic_value_print): Update.
13142
65786af6
TT
131432020-03-13 Tom Tromey <tom@tromey.com>
13144
13145 * valprint.c (generic_val_print_flags): Remove.
13146 (generic_val_print, generic_value_print): Update.
13147 (val_print_type_code_flags): Add original_value parameter.
13148
40f3ce18
TT
131492020-03-13 Tom Tromey <tom@tromey.com>
13150
13151 * valprint.c (generic_val_print): Update.
13152 (generic_value_print): Update.
13153 * valprint.c (generic_val_print_enum): Don't call
13154 val_print_scalar_formatted.
13155
2a5b130b
TT
131562020-03-13 Tom Tromey <tom@tromey.com>
13157
13158 * valprint.c (generic_value_print): Call generic_value_print_ptr.
13159 * valprint.c (generic_value_print_ptr): New function.
13160
abc66ce9
TT
131612020-03-13 Tom Tromey <tom@tromey.com>
13162
13163 * valprint.c (generic_value_print): Rewrite.
13164
07a32858
TT
131652020-03-13 Tom Tromey <tom@tromey.com>
13166
13167 * p-valprint.c (pascal_object_print_value_fields)
13168 (pascal_object_print_value): New functions.
13169
64d64d3a
TT
131702020-03-13 Tom Tromey <tom@tromey.com>
13171
13172 * p-valprint.c (pascal_value_print_inner): Rewrite.
13173
6a95a1f5
TT
131742020-03-13 Tom Tromey <tom@tromey.com>
13175
13176 * f-valprint.c (f_value_print_innner): Rewrite.
13177
59fcdac6
TT
131782020-03-13 Tom Tromey <tom@tromey.com>
13179
13180 * m2-valprint.c (m2_print_unbounded_array): New overload.
13181 (m2_print_unbounded_array): Update.
13182 (m2_print_array_contents): Take a struct value.
13183 (m2_value_print_inner): Rewrite.
13184
d133c3e1
TT
131852020-03-13 Tom Tromey <tom@tromey.com>
13186
13187 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
13188 (d_value_print_inner): New function.
13189 * d-lang.h (d_value_print_inner): Declare.
13190 * d-lang.c (d_language_defn): Use d_value_print_inner.
13191
23b0f06b
TT
131922020-03-13 Tom Tromey <tom@tromey.com>
13193
13194 * go-valprint.c (go_value_print_inner): New function.
13195 * go-lang.h (go_value_print_inner): Declare.
13196 * go-lang.c (go_language_defn): Use go_value_print_inner.
13197
5f56f7cb
TT
131982020-03-13 Tom Tromey <tom@tromey.com>
13199
13200 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
13201 API.
13202 (rust_val_print): Rewrite.
13203 (rust_value_print_inner): New function, from rust_val_print.
13204 (rust_language_defn): Use rust_value_print_inner.
13205
26792ee0
TT
132062020-03-13 Tom Tromey <tom@tromey.com>
13207
13208 * ada-valprint.c (ada_value_print_inner): New function.
13209 * ada-lang.h (ada_value_print_inner): Declare.
13210 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
13211
24051bbe
TT
132122020-03-13 Tom Tromey <tom@tromey.com>
13213
13214 * f-valprint.c (f_value_print_innner): New function.
13215 * f-lang.h (f_value_print_innner): Declare.
13216 * f-lang.c (f_language_defn): Use f_value_print_innner.
13217
c0941be6
TT
132182020-03-13 Tom Tromey <tom@tromey.com>
13219
13220 * p-valprint.c (pascal_value_print_inner): New function.
13221 * p-lang.h (pascal_value_print_inner): Declare.
13222 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
13223
62c4663d
TT
132242020-03-13 Tom Tromey <tom@tromey.com>
13225
13226 * m2-valprint.c (m2_value_print_inner): New function.
13227 * m2-lang.h (m2_value_print_inner): Declare.
13228 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
13229
62182190
TT
132302020-03-13 Tom Tromey <tom@tromey.com>
13231
13232 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
13233 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
13234 * c-valprint.c (c_value_print_inner): New function.
13235 * c-lang.h (c_value_print_inner): Declare.
13236 * c-lang.c (c_language_defn, cplus_language_defn)
13237 (asm_language_defn, minimal_language_defn): Use
13238 c_value_print_inner.
13239
1e592a8a
TT
132402020-03-13 Tom Tromey <tom@tromey.com>
13241
13242 * p-valprint.c (pascal_object_print_value_fields): Now static.
13243 * p-lang.h (pascal_object_print_value_fields): Don't declare.
13244
7fe471e9
TT
132452020-03-13 Tom Tromey <tom@tromey.com>
13246
13247 * c-valprint.c (c_val_print_array): Simplify.
13248
d121c6ce
TT
132492020-03-13 Tom Tromey <tom@tromey.com>
13250
13251 * valprint.c (value_print_array_elements): New function.
13252 * valprint.h (value_print_array_elements): Declare.
13253
4dba70ee
TT
132542020-03-13 Tom Tromey <tom@tromey.com>
13255
13256 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
13257 * mips-tdep.c (mips_print_register): Use
13258 value_print_scalar_formatted.
13259
4f9ae810
TT
132602020-03-13 Tom Tromey <tom@tromey.com>
13261
13262 * valprint.h (value_print_scalar_formatted): Declare.
13263 * valprint.c (value_print_scalar_formatted): New function.
13264
156bfec9
TT
132652020-03-13 Tom Tromey <tom@tromey.com>
13266
13267 * valprint.h (generic_value_print): Declare.
13268 * valprint.c (generic_value_print): New function.
13269
2b4e573d
TT
132702020-03-13 Tom Tromey <tom@tromey.com>
13271
13272 * valprint.c (do_val_print): Call la_value_print_inner, if
13273 available.
13274 * rust-lang.c (rust_language_defn): Update.
13275 * p-lang.c (pascal_language_defn): Update.
13276 * opencl-lang.c (opencl_language_defn): Update.
13277 * objc-lang.c (objc_language_defn): Update.
13278 * m2-lang.c (m2_language_defn): Update.
13279 * language.h (struct language_defn) <la_value_print_inner>: New
13280 member.
13281 * language.c (unknown_language_defn, auto_language_defn): Update.
13282 * go-lang.c (go_language_defn): Update.
13283 * f-lang.c (f_language_defn): Update.
13284 * d-lang.c (d_language_defn): Update.
13285 * c-lang.c (c_language_defn, cplus_language_defn)
13286 (asm_language_defn, minimal_language_defn): Update.
13287 * ada-lang.c (ada_language_defn): Update.
13288
a1f6a07c
TT
132892020-03-13 Tom Tromey <tom@tromey.com>
13290
13291 * c-valprint.c (c_value_print): Use common_val_print.
13292
410cf315
TT
132932020-03-13 Tom Tromey <tom@tromey.com>
13294
13295 * cp-valprint.c (cp_print_static_field): Use common_val_print.
13296
72a45c93
TT
132972020-03-13 Tom Tromey <tom@tromey.com>
13298
13299 * f-valprint.c (f77_print_array_1, f_val_print): Use
13300 common_val_print.
13301
040f66bd
TT
133022020-03-13 Tom Tromey <tom@tromey.com>
13303
13304 * riscv-tdep.c (riscv_print_one_register_info): Use
13305 common_val_print.
13306
a6e05a6c
TT
133072020-03-13 Tom Tromey <tom@tromey.com>
13308
13309 * mi/mi-main.c (output_register): Use common_val_print.
13310
3444c526
TT
133112020-03-13 Tom Tromey <tom@tromey.com>
13312
13313 * infcmd.c (default_print_one_register_info): Use
13314 common_val_print.
13315
c2a44efe
TT
133162020-03-13 Tom Tromey <tom@tromey.com>
13317
13318 * valprint.h (common_val_print_checked): Declare.
13319 * valprint.c (common_val_print_checked): New function.
13320 * stack.c (print_frame_arg): Use common_val_print_checked.
13321
b0c26e99
TT
133222020-03-13 Tom Tromey <tom@tromey.com>
13323
13324 * valprint.c (do_val_print): New function, from val_print.
13325 (val_print): Use do_val_print.
13326 (common_val_print): Use do_val_print.
13327
ce3acbe9
TT
133282020-03-13 Tom Tromey <tom@tromey.com>
13329
13330 * valprint.c (value_print): Use scoped_value_mark.
13331
96c7f873
TV
133322020-03-13 Tom de Vries <tdevries@suse.de>
13333
13334 PR symtab/25646
13335 * psymtab.c (partial_symtab::partial_symtab): Don't set
13336 globals_offset and statics_offset. Push element onto
13337 current_global_psymbols and current_static_psymbols stacks.
13338 (concat): New function.
13339 (end_psymtab_common): Set globals_offset and statics_offset. Pop
13340 element from current_global_psymbols and current_static_psymbols
13341 stacks. Concat popped elements to global_psymbols and
13342 static_symbols.
13343 (add_psymbol_to_list): Use current_global_psymbols and
13344 current_static_psymbols stacks.
13345 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
13346 current_static_psymbols fields.
13347
6ba0a321
CB
133482020-03-12 Christian Biesinger <cbiesinger@google.com>
13349
13350 * corelow.c (sniff_core_bfd): Remove.
13351 (class core_target) <m_core_vec>: Remove.
13352 (core_target::core_target): Update.
13353 (core_file_fns): Remove.
13354 (deprecated_add_core_fns): Remove.
13355 (default_core_sniffer): Remove.
13356 (sniff_core_bfd): Remove.
13357 (default_check_format): Remove.
13358 (gdb_check_format): Remove.
13359 (core_target_open): Update.
13360 (core_target::get_core_register_section): Update.
13361 (get_core_registers_cb): Update.
13362 (core_target::fetch_registers): Update.
13363 * gdbcore.h (struct core_fns): Remove.
13364 (deprecated_add_core_fns): Remove.
13365 (default_core_sniffer): Remove.
13366 (default_check_format): Remove.
13367
227031b2
TT
133682020-03-12 Tom Tromey <tom@tromey.com>
13369
13370 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
13371 CORE_ADDR.
13372 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
13373
53807e9f
TT
133742020-03-12 Tom Tromey <tom@tromey.com>
13375
13376 * remote.c (remote_target::download_tracepoint)
13377 (remote_target::enable_tracepoint)
13378 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
13379 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
13380 sprintf_vma.
13381
64f25102
TT
133822020-03-12 Tom Tromey <tom@tromey.com>
13383
13384 * symfile-mem.c: Update CORE_ADDR size assert.
13385
272cd5a3
SM
133862020-03-12 Simon Marchi <simon.marchi@efficios.com>
13387
13388 * selftest.m4: Move to gdbsupport/.
13389 * acinclude.m4: Update path to selftest.m4.
13390
74cd3f9d
SM
133912020-03-12 Simon Marchi <simon.marchi@efficios.com>
13392
13393 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
13394 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
13395 gdbarch-selfselftests.c and selftest-arch.c.
13396 (SUBDIR_UNITTESTS_OBS): Rename to...
13397 (SELFTESTS_OBS): ... this.
13398 (COMMON_SFILES): Remove disasm-selftests.c and
13399 gdbarch-selftests.c.
13400 * configure.ac: Don't add selftest-arch.{c,o} to
13401 CONFIG_{SRCS,OBS}.
13402 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
13403 preprocessor conditions.
13404
db6878ac
SM
134052020-03-12 Simon Marchi <simon.marchi@efficios.com>
13406
13407 * configure.ac: Don't source bfd/development.sh.
13408 * selftest.m4: Modify comment.
13409 * configure: Re-generate.
13410
4d696a5c
SM
134112020-03-12 Simon Marchi <simon.marchi@efficios.com>
13412
13413 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
13414 not "true" or "false".
13415 * configure: Re-generate.
13416
8dd8e1c7
CB
134172020-03-12 Christian Biesinger <cbiesinger@google.com>
13418
13419 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
13420 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
13421 renamed to arm_nbsd_supply_gregset.
13422 (fetch_register): Update to call arm_nbsd_supply_gregset.
13423 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
13424 (arm_netbsd_nat_target::fetch_registers): Update.
13425 (fetch_elfcore_registers): Removed.
13426 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
13427 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
13428 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
13429 not require NetBSD system headers.
13430 (arm_nbsd_regset): New struct.
13431 (arm_nbsd_iterate_over_regset_sections): New function.
13432 (arm_netbsd_init_abi_common): Updated to call
13433 set_gdbarch_iterate_over_regset_sections.
13434 * arm-nbsd-tdep.h: New file.
13435
dd69bf7a
KB
134362020-03-11 Kevin Buettner <kevinb@redhat.com>
13437
13438 * symtab.c (find_pc_sect_line): Add check which prevents infinite
13439 recursion.
13440
a0761e34
SM
134412020-03-11 Simon Marchi <simon.marchi@efficios.com>
13442
13443 * configure: Re-generate.
13444
e7a82140
TT
134452020-03-11 Tom Tromey <tromey@adacore.com>
13446
13447 * ada-typeprint.c (print_choices): Fix comment.
13448
dcc050c8
AB
134492020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
13450
13451 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
13452 previous item in the list, when the list has no items.
13453
1c33af77
TV
134542020-03-11 Tom de Vries <tdevries@suse.de>
13455
13456 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
13457 PROP_LOCLIST handling code.
13458
8c95582d
AB
134592020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
13460
13461 * buildsym-legacy.c (record_line): Pass extra parameter to
13462 record_line.
13463 * buildsym.c (buildsym_compunit::record_line): Take an extra
13464 parameter, reduce duplication in the line table, and record the
13465 is_stmt flag in the line table.
13466 * buildsym.h (buildsym_compunit::record_line): Add extra
13467 parameter.
13468 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
13469 non-statement lines.
13470 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
13471 this to the symtab builder.
13472 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
13473 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
13474 through to dwarf_record_line_1.
13475 * infrun.c (process_event_stop_test): When stepping, don't stop at
13476 a non-statement instruction, and only refresh the step info when
13477 we land in the middle of a line's range. Also add an extra
13478 comment.
13479 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
13480 field.
13481 * record-btrace.c (btrace_find_line_range): Only record lines
13482 marked as is-statement.
13483 * stack.c (frame_show_address): Show the frame address if we are
13484 in a non-statement sal.
13485 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
13486 (maintenance_print_one_line_table): Print a header for the is_stmt
13487 column, and include is_stmt information in the output.
13488 * symtab.c (find_pc_sect_line): Find lines marked as statements in
13489 preference to non-statements.
13490 (find_pcs_for_symtab_line): Prefer is-statement entries.
13491 (find_line_common): Likewise.
13492 * symtab.h (struct linetable_entry): Add is_stmt field.
13493 (struct symtab_and_line): Likewise.
13494 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
13495 arranging the line table.
13496
e4003a34
TV
134972020-03-07 Tom de Vries <tdevries@suse.de>
13498
13499 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
13500 DIE.
13501
e8932576
TT
135022020-03-07 Tom Tromey <tom@tromey.com>
13503
13504 * valops.c (value_literal_complex): Remove obsolete comment.
13505 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
13506 comment.
13507
29734269
SM
135082020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
13509
13510 * infrun.h: Forward-declare thread_info.
13511 (set_step_info): Add thread_info parameter, add doc.
13512 * infrun.c (set_step_info): Add thread_info parameter, move doc
13513 to header.
13514 * infrun.c (process_event_stop_test): Pass thread to
13515 set_step_info call.
13516 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
13517 set_step_info.
13518 (prepare_one_step): Add thread_info parameter, pass it to
13519 set_step_frame and prepare_one_step (recursive) call.
13520 (step_1): Pass thread to prepare_one_step call.
13521 (step_command_fsm::should_stop): Pass thread to
13522 prepare_one_step.
13523 (until_next_fsm): Pass thread to set_step_frame call.
13524 (finish_command): Pass thread to set_step_info call.
13525
b7d64b29
HD
135262020-03-06 Hannes Domani <ssbssa@yahoo.de>
13527
13528 * windows-tdep.c (windows_solib_create_inferior_hook):
13529 Check if inferior is running.
13530
09f2921c
TV
135312020-03-06 Tom de Vries <tdevries@suse.de>
13532
13533 * NEWS: Fix "the the".
13534 * ctfread.c: Same.
13535
fd760e79
TV
135362020-03-06 Tom de Vries <tdevries@suse.de>
13537
13538 * psymtab.c (psymtab_to_symtab): Don't print "done.".
13539
20ea4a60
AB
135402020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13541
13542 * .dir-locals.el: Add a comment referencing the other copies of
13543 this file.
13544
0afbabf0
JB
135452020-03-05 John Baldwin <jhb@FreeBSD.org>
13546
13547 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
13548 psargs.
13549
842806cb
TBA
135502020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13551
13552 * .gitattributes: New file.
13553
be1e3d3e
TT
135542020-03-04 Tom Tromey <tom@tromey.com>
13555
13556 * symmisc.c (print_symbol_bcache_statistics)
13557 (print_objfile_statistics): Update.
13558 * symfile.c (allocate_symtab): Use intern.
13559 * psymtab.c (partial_symtab::partial_symtab): Use intern.
13560 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
13561 macro_cache>: Remove.
13562 <string_cache>: New member.
13563 (struct objfile) <intern>: New methods.
13564 * elfread.c (elf_symtab_read): Use intern.
13565 * dwarf2/read.c (fixup_go_packaging): Intern package name.
13566 (dwarf2_compute_name, dwarf2_physname)
13567 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
13568 names.
13569 (guess_partial_die_structure_name): Update.
13570 (partial_die_info::fixup): Intern name.
13571 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
13572 name.
13573 (dwarf2_name): Intern name. Update.
13574 * buildsym.c (buildsym_compunit::get_macro_table): Use
13575 string_cache.
13576
4e7625fd
TT
135772020-03-04 Tom Tromey <tom@tromey.com>
13578
13579 * jit.c (bfd_open_from_target_memory): Make "target" const.
13580 * corefile.c (gnutarget): Now const.
13581 * gdbcore.h (gnutarget): Now const.
13582
46f9f931
HD
135832020-03-04 Hannes Domani <ssbssa@yahoo.de>
13584
13585 * NEWS: Mention support for WOW64 processes.
13586 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
13587 (amd64_windows_segment_register_p): Remove static.
13588 (_initialize_amd64_windows_nat): Update.
13589 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
13590 * i386-windows-nat.c (context_offset): Update.
13591 (i386_mappings): Rename and remove static.
13592 (i386_windows_segment_register_p): Remove static.
13593 (_initialize_i386_windows_nat): Update.
13594 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
13595 (STATUS_WX86_SINGLE_STEP): New macro.
13596 (EnumProcessModulesEx): New macro.
13597 (Wow64SuspendThread): New macro.
13598 (Wow64GetThreadContext): New macro.
13599 (Wow64SetThreadContext): New macro.
13600 (Wow64GetThreadSelectorEntry): New macro.
13601 (windows_set_context_register_offsets): Add static.
13602 (windows_set_segment_register_p): Likewise.
13603 (windows_add_thread): Adapt for WOW64 processes.
13604 (windows_fetch_one_register): Likewise.
13605 (windows_nat_target::fetch_registers): Likewise.
13606 (windows_store_one_register): Likewise.
13607 (display_selector): Likewise.
13608 (display_selectors): Likewise.
13609 (handle_exception): Likewise.
13610 (windows_continue): Likewise.
13611 (windows_nat_target::resume): Likewise.
13612 (windows_add_all_dlls): Likewise.
13613 (do_initial_windows_stuff): Likewise.
13614 (windows_nat_target::attach): Likewise.
13615 (windows_get_exec_module_filename): Likewise.
13616 (windows_nat_target::create_inferior): Likewise.
13617 (windows_xfer_siginfo): Likewise.
13618 (_initialize_loadable): Initialize Wow64SuspendThread,
13619 Wow64GetThreadContext, Wow64SetThreadContext,
13620 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
13621 * windows-nat.h (windows_set_context_register_offsets):
13622 Remove declaration.
13623 (windows_set_segment_register_p): Likewise.
13624 (i386_windows_segment_register_p): Add declaration.
13625 (amd64_windows_segment_register_p): Likewise.
13626
440cf44e
LM
136272020-03-04 Luis Machado <luis.machado@linaro.org>
13628
13629 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
13630 in "info registers" for AArch64/ARM.
13631
13632 The change caused "info registers" to not print GPR's.
13633
13634 gdb/ChangeLog:
13635
13636 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
13637
13638 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13639 when reg->group is empty and reggroup is not.
13640
1009d92f
TT
136412020-03-03 Tom Tromey <tromey@adacore.com>
13642
13643 * dwarf2/frame.c (struct dwarf2_frame_cache)
13644 <checked_tailcall_bottom, entry_cfa_sp_offset,
13645 entry_cfa_sp_offset_p>: Remove members.
13646 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
13647 (dwarf2_frame_prev_register): Don't call
13648 dwarf2_tailcall_sniffer_first.
13649 (dwarf2_append_unwinders): Don't append tailcall unwinder.
13650 * frame-unwind.c (add_unwinder): New fuction.
13651 (frame_unwind_init): Use it. Add tailcall unwinder.
13652
5e5d66b6
AB
136532020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
13654 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13655
13656 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
13657 value should be printed as true.
13658
584cf46d
HD
136592020-03-03 Hannes Domani <ssbssa@yahoo.de>
13660
13661 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
13662 (windows_init_abi): Set and use windows_so_ops.
13663
7b973adc
SDJ
136642020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
13665
13666 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
13667 when verifying if dealing with a convenience variable.
13668
bb7b70ab
LM
136692020-03-03 Luis Machado <luis.machado@linaro.org>
13670
13671 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
13672
9822cb57
SM
136732020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13674
13675 * infrun.c (gdbarch_supports_displaced_stepping): New.
13676 (use_displaced_stepping): Break up conditions in smaller pieces.
13677 Use gdbarch_supports_displaced_stepping.
13678 (displaced_step_prepare_throw): Use
13679 gdbarch_supports_displaced_stepping.
13680
63e163f2
AB
136812020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13682
13683 * NEWS: Mention new behaviour of the history filename.
13684 * top.c (write_history_p): Add comment.
13685 (show_write_history_p): Add header comment, give a different
13686 message when history writing is on, but the history filename is
13687 empty.
13688 (history_filename): Add comment.
13689 (history_filename_empty): New function.
13690 (show_history_filename): Add header comment, give a different
13691 message when the filename is empty.
13692 (init_history): Compare history_filename against nullptr, and only
13693 read history if the filename is not empty.
13694 (set_history_filename): Add header comment, and only make
13695 non-empty filenames absolute.
13696 (init_main): Make the filename argument to 'set history filename'
13697 optional.
13698
81b86b97
CB
136992020-03-02 Christian Biesinger <cbiesinger@google.com>
13700
13701 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
13702 (arm_supply_vfpregset): ...this, and update to use VFP registers.
13703 (fetch_fp_register): Update.
13704 (fetch_fp_regs): Update.
13705 (store_fp_register): Update.
13706 (store_fp_regs): Update.
13707 (arm_netbsd_nat_target::read_description): New function.
13708 (fetch_elfcore_registers): Update.
13709
24ed6739
AB
137102020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13711
13712 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
13713 general_thread if the stop reply is missing a thread-id.
13714 (remote_target::process_stop_reply): Use the first non-exited
13715 thread if the target didn't pass a thread-id.
13716 * infrun.c (do_target_wait): Move call to
13717 switch_to_inferior_no_thread to ....
13718 (do_target_wait_1): ... here.
13719
a84bb2a0
JT
137202020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
13721
13722 * debuginfod-support.c: Include defs.h first.
13723
658dadf0
TV
137242020-02-28 Tom de Vries <tdevries@suse.de>
13725
13726 * symfile.c (set_initial_language): Use default language for lookup.
13727
4ebe4877
SM
137282020-02-28 Simon Marchi <simon.marchi@efficios.com>
13729
13730 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
13731 reader variable, pass `this` to read_cutu_die_from_dwo.
13732
e5da1139
AM
137332020-02-27 Aaron Merey <amerey@redhat.com>
13734
13735 * source.c (open_source_file): Check for nullptr when computing
13736 srcpath.
13737
317f7127
TT
137382020-02-27 Tom Tromey <tromey@adacore.com>
13739
13740 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
13741 member.
13742 (dwarf2_add_field): Don't update nfields.
13743 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
13744
3104d9ee
AB
137452020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13746
13747 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
13748 abs.
13749
b83470bf
TT
137502020-02-26 Tom Tromey <tom@tromey.com>
13751
13752 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
13753 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
13754 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
13755 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
13756 per_cu_data.
13757
edfe0a0c
TT
137582020-02-26 Tom Tromey <tom@tromey.com>
13759
13760 * dwarf2/index-write.c (psym_index_map): Change type.
13761 (add_address_entry_worker, write_one_signatured_type)
13762 (recursively_count_psymbols, recursively_write_psymbols)
13763 (class debug_names, psyms_seen_size, write_gdbindex)
13764 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
13765
0d79cdc4
AM
137662020-02-26 Aaron Merey <amerey@redhat.com>
13767
13768 * Makefile.in: Handle optional debuginfod support.
13769 * NEWS: Update.
13770 * README: Add --with-debuginfod summary.
13771 * config.in: Regenerate.
13772 * configure: Regenerate.
13773 * configure.ac: Handle optional debuginfod support.
13774 * debuginfod-support.c: debuginfod helper functions.
13775 * debuginfod-support.h: Ditto.
13776 * doc/gdb.texinfo: Add --with-debuginfod to configure options
13777 summary.
13778 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
13779 when a dwz file cannot be found.
13780 * elfread.c (elf_symfile_read): Query debuginfod servers when a
13781 debuginfo file cannot be found.
13782 * source.c (open_source_file): Query debuginfod servers when a
13783 source file cannot be found.
13784 * top.c (print_gdb_configuration): Include
13785 --{with,without}-debuginfod in the output.
13786
b65ce565
JG
137872020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
13788
13789 * thread.c (thr_try_catch_cmd): Print thread name.
13790
d4c9a4f8
SM
137912020-02-26 Simon Marchi <simon.marchi@efficios.com>
13792
13793 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
13794 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13795 dwarf2_fetch_die_type_sect_off): Move to...
13796 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
13797 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13798 dwarf2_fetch_die_type_sect_off): ... here.
13799 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
13800 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13801 dwarf2_fetch_die_type_sect_off): Move doc to header file.
13802
0dce4280
TV
138032020-02-26 Tom de Vries <tdevries@suse.de>
13804
13805 PR gdb/25603
13806 * symfile.c (set_initial_language): Exit-early if
13807 language_mode == language_mode_manual.
13808
450a1bfc
SM
138092020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13810
13811 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
13812 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
13813 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
13814
9e80cfa1
AB
138152020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
13816
13817 * gdbtypes.c (create_array_type_with_stride): Handle negative
13818 array strides.
13819 * valarith.c (value_subscripted_rvalue): Likewise.
13820
09624f1f
LM
138212020-02-25 Luis Machado <luis.machado@linaro.org>
13822
13823 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
13824
8cb5117c
SM
138252020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13826
13827 * loc.h (dwarf2_get_die_type): Move to...
13828 * read.h (dwarf2_get_die_type): ... here.
13829 * read.c (dwarf2_get_die_type): Move doc to header.
13830
c325c44e
JB
138312020-02-25 Joel Brobecker <brobecker@adacore.com>
13832
13833 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
13834 'gnulib/Makefile.in' to the list.
13835
4ac93832
TT
138362020-02-24 Tom Tromey <tom@tromey.com>
13837
13838 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
13839 Remove.
13840 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
13841 XOBNEWVEC.
13842
197400e8
TT
138432020-02-24 Tom Tromey <tom@tromey.com>
13844
13845 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
13846 New method.
13847 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
13848 (dw2_do_instantiate_symtab, dw2_get_file_names)
13849 (build_type_psymtab_dependencies, load_full_type_unit): Update.
13850
76935768
TT
138512020-02-24 Tom Tromey <tom@tromey.com>
13852
13853 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
13854 make_scoped_restore.
13855 (dwarf2_psymtab::read_symtab): Don't clear
13856 reading_partial_symbols.
13857
a88ef40d
TV
138582020-02-24 Tom de Vries <tdevries@suse.de>
13859
13860 PR gdb/25592
13861 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
13862
c9af6521
TV
138632020-02-24 Tom de Vries <tdevries@suse.de>
13864
13865 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
13866 commands layout next/prev/regs.
13867
5707a07a
TT
138682020-02-22 Tom Tromey <tom@tromey.com>
13869
13870 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
13871 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
13872
3b0fb49e
TT
138732020-02-22 Tom Tromey <tom@tromey.com>
13874
13875 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
13876
283be8bf
TT
138772020-02-22 Tom Tromey <tom@tromey.com>
13878
13879 * tui/tui-win.c (_initialize_tui_win): Add usage text.
13880 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
13881 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
13882 * tui/tui.c (_initialize_tui): Add usage text.
13883
ca793b96
TT
138842020-02-22 Tom Tromey <tom@tromey.com>
13885
13886 * tui/tui-win.c (tui_set_focus_command)
13887 (tui_set_win_height_command): Use error_no_arg.
13888 (_initialize_tui_win): Update help text.
13889 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
13890
432b5c40
TT
138912020-02-22 Tom Tromey <tom@tromey.com>
13892
13893 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
13894 * tui/tui-disasm.h (struct tui_disasm_window)
13895 <display_start_addr>: Declare.
13896 * tui/tui-source.h (struct tui_source_window)
13897 <display_start_addr>: Declare.
13898 * tui/tui-winsource.h (struct tui_source_window_base)
13899 <show_source_line, display_start_addr>: New methods.
13900 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
13901 Rename and move to protected section.
13902 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
13903 (tui_source_window_base::do_erase_source_content): Update.
13904 (tui_source_window_base::show_source_line): Now a method.
13905 (tui_source_window_base::show_source_content)
13906 (tui_source_window_base::tui_source_window_base)
13907 (tui_source_window_base::rerender)
13908 (tui_source_window_base::refill)
13909 (tui_source_window_base::do_scroll_horizontal)
13910 (tui_source_window_base::set_is_exec_point_at)
13911 (tui_source_window_base::update_breakpoint_info)
13912 (tui_source_window_base::update_exec_info): Update.
13913 * tui/tui-source.c (tui_source_window::set_contents)
13914 (tui_source_window::showing_source_p)
13915 (tui_source_window::do_scroll_vertical)
13916 (tui_source_window::location_matches_p)
13917 (tui_source_window::line_is_displayed): Update.
13918 (tui_source_window::display_start_addr): New method.
13919 * tui/tui-disasm.c (tui_disasm_window::set_contents)
13920 (tui_disasm_window::do_scroll_vertical)
13921 (tui_disasm_window::location_matches_p): Update.
13922 (tui_disasm_window::display_start_addr): New method.
13923
01b1af32
TT
139242020-02-22 Tom Tromey <tom@tromey.com>
13925
13926 * NEWS: Add entry for gdb.register_window_type.
13927 * tui/tui-layout.h (window_factory): New typedef.
13928 (tui_register_window): Declare.
13929 * tui/tui-layout.c (saved_tui_windows): New global.
13930 (tui_apply_current_layout): Use it.
13931 (tui_register_window): New function.
13932 * python/python.c (do_start_initialization): Call
13933 gdbpy_initialize_tui.
13934 (python_GdbMethods): Add "register_window_type" function.
13935 * python/python-internal.h (gdbpy_register_tui_window)
13936 (gdbpy_initialize_tui): Declare.
13937 * python/py-tui.c: New file.
13938 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
13939
fc96d20b
TT
139402020-02-22 Tom Tromey <tom@tromey.com>
13941
13942 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
13943
935c78c0
TT
139442020-02-22 Tom Tromey <tom@tromey.com>
13945
13946 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
13947 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
13948 * tui/tui-data.c (tui_set_win_with_focus): Remove.
13949 (tui_set_win_focus_to): Move from tui-win.c.
13950
0240c8f1
TT
139512020-02-22 Tom Tromey <tom@tromey.com>
13952
13953 * tui/tui-layout.c (make_standard_window, get_locator_window): New
13954 functions.
13955 (known_window_types): New global.
13956 (tui_get_window_by_name): Reimplement.
13957 (initialize_known_windows): New function.
13958 (validate_window_name): Rewrite.
13959 (_initialize_tui_layout): Call initialize_known_windows.
13960
fdb01f0c
TT
139612020-02-22 Tom Tromey <tom@tromey.com>
13962
13963 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
13964 Remove constants.
13965 * tui/tui-winsource.h (struct tui_source_window_base)
13966 <tui_source_window_base>: Remove parameter.
13967 * tui/tui-winsource.c
13968 (tui_source_window_base::tui_source_window_base): Remove
13969 parameter.
13970 (tui_source_window_base::refill): Update.
13971 * tui/tui-stack.h (struct tui_locator_window)
13972 <tui_locator_window>: Update.
13973 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
13974 Default the constructor.
13975 * tui/tui-regs.h (struct tui_data_item_window)
13976 <tui_data_item_window>: Default the constructor.
13977 (struct tui_data_window) <tui_data_window>: Likewise.
13978 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
13979 Default the constructor.
13980 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
13981 Default the constructor.
13982 <type>: Remove.
13983 (struct tui_win_info) <tui_win_info>: Default the constructor.
13984 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
13985 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
13986 Default the constructor.
13987
865a5aec
TT
139882020-02-22 Tom Tromey <tom@tromey.com>
13989
13990 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
13991 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
13992 * tui/tui-win.c (tui_resize_all): Don't call
13993 tui_delete_invisible_windows.
13994 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
13995 done.
13996 (tui_set_layout): Update.
13997 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
13998 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
13999 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
14000
e098d18c
TT
140012020-02-22 Tom Tromey <tom@tromey.com>
14002
14003 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
14004 correctly.
14005
eb9c8874
TT
140062020-02-22 Tom Tromey <tom@tromey.com>
14007
14008 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
14009
7eed1a8e
TT
140102020-02-22 Tom Tromey <tom@tromey.com>
14011
14012 * tui/tui-winsource.h (struct tui_source_window_iterator)
14013 <inner_iterator>: New etytypedef.
14014 <tui_source_window_iterator>: Take "end" parameter.
14015 <tui_source_window_iterator>: Take iterator.
14016 <operator*, advance>: Update.
14017 <m_iter>: Change type.
14018 <m_end>: New field.
14019 (struct tui_source_windows) <begin, end>: Update.
14020 * tui/tui-layout.c (tui_windows): New global.
14021 (tui_apply_current_layout): Clear tui_windows.
14022 (tui_layout_window::apply): Update tui_windows.
14023 * tui/tui-data.h (tui_windows): Declare.
14024 (all_tui_windows): Now inline function.
14025 (class tui_window_iterator, struct all_tui_windows): Remove.
14026
7c043ba6
TT
140272020-02-22 Tom Tromey <tom@tromey.com>
14028
14029 PR tui/17850:
14030 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
14031 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
14032 "height" argument.
14033 (class tui_layout_window) <get_sizes>: Likewise.
14034 (class tui_layout_split) <tui_layout_split>: Add "vertical"
14035 argument.
14036 <get_sizes>: Add "height" argument.
14037 <m_vertical>: New field.
14038 * tui/tui-layout.c (tui_layout_split::clone): Update.
14039 (tui_layout_split::get_sizes): Add "height" argument.
14040 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
14041 (tui_new_layout_command): Parse "-horizontal".
14042 (_initialize_tui_layout): Update help string.
14043 (tui_layout_split::specification): Add "-horizontal" when needed.
14044 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
14045 argument.
14046 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
14047 New methods.
14048
6bc56648
TT
140492020-02-22 Tom Tromey <tom@tromey.com>
14050
14051 * tui/tui-layout.h (enum tui_adjust_result): New.
14052 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
14053 (class tui_layout_window) <adjust_size>: Return
14054 tui_adjust_result. Rewrite.
14055 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
14056 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
14057
c22fef7e
TT
140582020-02-22 Tom Tromey <tom@tromey.com>
14059
14060 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
14061 parameter and return types.
14062 (class tui_layout_base) <specification>: Add "depth".
14063 (class tui_layout_window) <specification>: Add "depth".
14064 (class tui_layout_split) <specification>: Add "depth".
14065 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
14066 and return types.
14067 (tui_new_layout_command): Parse sub-layouts.
14068 (_initialize_tui_layout): Update help string.
14069 (tui_layout_window::specification): Add "depth".
14070 (add_layout_command): Update.
14071
ee325b61
TT
140722020-02-22 Tom Tromey <tom@tromey.com>
14073
14074 * NEWS: Add "tui new-layout" item.
14075 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
14076 Add new-layout command to help text.
14077 (validate_window_name): New function.
14078 (tui_new_layout_command): New function.
14079 (_initialize_tui_layout): Register "new-layout".
14080 (tui_layout_window::specification): New method.
14081 (tui_layout_window::specification): New method.
14082 * tui/tui-layout.h (class tui_layout_base) <specification>: New
14083 method.
14084 (class tui_layout_window) <specification>: New method.
14085 (class tui_layout_split) <specification>: New method.
14086
416eb92d
TT
140872020-02-22 Tom Tromey <tom@tromey.com>
14088
14089 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
14090 * tui/tui-win.c (window_name_completer): Update comment.
14091 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
14092 Declare method.
14093 (class tui_layout_window) <replace_window>: Likewise.
14094 (class tui_layout_split) <replace_window>: Likewise.
14095 (tui_set_layout): Don't declare.
14096 (tui_set_initial_layout): Declare function.
14097 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
14098 (asm_regs_layout): New globals.
14099 (tui_current_layout, show_layout): Remove.
14100 (tui_set_layout, tui_add_win_to_layout): Rewrite.
14101 (find_layout, tui_apply_layout): New function.
14102 (layout_completer): Remove.
14103 (tui_next_layout): Reimplement.
14104 (tui_next_layout_command): New function.
14105 (tui_set_initial_layout, tui_prev_layout_command): New functions.
14106 (tui_regs_layout): Reimplement.
14107 (tui_regs_layout_command): New function.
14108 (extract_display_start_addr): Rewrite.
14109 (next_layout, prev_layout): Remove.
14110 (tui_layout_window::replace_window): New method.
14111 (tui_layout_split::replace_window): New method.
14112 (destroy_layout): New function.
14113 (layout_list): New global.
14114 (add_layout_command): New function.
14115 (initialize_layouts): Update.
14116 (tui_layout_command): New function.
14117 (_initialize_tui_layout): Install "layout" commands.
14118 * tui/tui-data.h (enum tui_layout_type): Remove.
14119 (tui_current_layout): Don't declare.
14120
0dbc2fc7
TT
141212020-02-22 Tom Tromey <tom@tromey.com>
14122
14123 * tui/tui-regs.c (tui_reg_layout): Remove.
14124 (tui_reg_command): Use tui_regs_layout.
14125 * tui/tui-layout.h (tui_reg_command): Declare.
14126 * tui/tui-layout.c (tui_reg_command): New function.
14127
5afe342e
TT
141282020-02-22 Tom Tromey <tom@tromey.com>
14129
14130 * tui/tui.c (tui_rl_delete_other_windows): Call
14131 tui_remove_some_windows.
14132 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
14133 Declare method.
14134 (class tui_layout_window) <remove_windows>: New method.
14135 (class tui_layout_split) <remove_windows>: Declare.
14136 (tui_remove_some_windows): Declare.
14137 * tui/tui-layout.c (tui_remove_some_windows): New function.
14138 (tui_layout_split::remove_windows): New method.
14139
427326a8
TT
141402020-02-22 Tom Tromey <tom@tromey.com>
14141
14142 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
14143 * tui/tui-layout.h (tui_next_layout): Declare.
14144 * tui/tui-layout.c (tui_next_layout): New function.
14145
3fe12b6d
TT
141462020-02-22 Tom Tromey <tom@tromey.com>
14147
14148 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
14149 correct coordinates.
14150
59b8b5d2
TT
141512020-02-22 Tom Tromey <tom@tromey.com>
14152
14153 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
14154 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
14155 DATA_WIN case.
14156
2a3d458b
TT
141572020-02-22 Tom Tromey <tom@tromey.com>
14158
14159 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
14160 TUI_DISASM_WIN, not tui_win_list.
14161
3f0cbb04
TT
141622020-02-22 Tom Tromey <tom@tromey.com>
14163
14164 * valprint.c (generic_val_print_enum_1)
14165 (val_print_type_code_flags): Style member names.
14166 * rust-lang.c (val_print_struct, rust_print_enum)
14167 (rust_print_struct_def, rust_internal_print_type): Style member
14168 names.
14169 * p-valprint.c (pascal_object_print_value_fields): Style member
14170 names. Only call fprintf_symbol_filtered for static members.
14171 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
14172 * f-valprint.c (f_val_print): Style member names.
14173 * f-typeprint.c (f_type_print_base): Style member names.
14174 * cp-valprint.c (cp_print_value_fields): Style member names. Only
14175 call fprintf_symbol_filtered for static members.
14176 (cp_print_class_member): Style member names.
14177 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
14178 member names.
14179 * ada-valprint.c (ada_print_scalar): Style enum names.
14180 (ada_val_print_enum): Likewise.
14181 * ada-typeprint.c (print_enum_type): Style enum names.
14182
d4d947ae
TT
141832020-02-21 Tom Tromey <tom@tromey.com>
14184
14185 * psympriv.h (struct partial_symtab): Update comment.
14186
e94e944b
TT
141872020-02-21 Tom Tromey <tromey@adacore.com>
14188
14189 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
14190 type is CORE_ADDR.
14191
1eb73179
TV
141922020-02-21 Tom de Vries <tdevries@suse.de>
14193
14194 PR gdb/25534
14195 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
14196 if dependencies[i]->user != NULL.
14197
4f180d53
AT
141982020-02-21 Ali Tamur <tamur@google.com>
14199
14200 * dwarf2/read.c (dwarf2_name): Add null check.
14201
22b6cd70
TT
142022020-02-20 Tom Tromey <tom@tromey.com>
14203
14204 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
14205 ">=", in binary search.
14206 (dwarf2_find_containing_comp_unit): New overload.
14207 (run_test): New self-test.
14208 (_initialize_dwarf2_read): Register new test.
14209
bd0cf5a6
NC
142102020-02-20 Nelson Chu <nelson.chu@sifive.com>
14211
14212 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
14213 * riscv-tdep.h: Likewise.
14214 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
14215 rv32-only CSR.
14216 * features/riscv/64bit-csr.xml: Regenerated.
14217
3f702acd
SDJ
142182020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
14219 Tom Tromey <tom@tromey.com>
14220
14221 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
14222 of 'fputc_unfiltered'.
14223 (putchar_unfiltered): Call 'fputc_unfiltered'.
14224 (fputc_unfiltered): Call 'fputs_unfiltered'.
14225
d13c7322
AB
142262020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
14227
14228 * config.in: Regenerate.
14229 * configure: Regenerate.
14230 * configure.ac: Add --with-python-libdir option.
14231 * main.c: Use WITH_PYTHON_LIBDIR.
14232
869d8950
TT
142332020-02-19 Tom Tromey <tom@tromey.com>
14234
14235 * symtab.c (general_symbol_info::compute_and_set_names): Use
14236 obstack_strndup. Simplify call to symbol_set_demangled_name.
14237
298e9637
SM
142382020-02-19 Simon Marchi <simon.marchi@efficios.com>
14239
14240 * dwarf2/read.c (allocate_signatured_type_table,
14241 allocate_dwo_unit_table, allocate_type_unit_groups_table,
14242 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
14243 Remove objfile parameter, update all callers.
14244
08410482
DE
142452020-02-19 Doug Evans <dje@google.com>
14246
14247 PR rust/25535
14248 * rust-lang.c (rust_print_enum): Apply embedded_offset to
14249 rust_enum_variant calculation.
14250
dfdeeca1
TT
142512020-02-19 Tom Tromey <tromey@adacore.com>
14252
14253 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
14254
2ef5453b
TT
142552020-02-19 Tom Tromey <tromey@adacore.com>
14256
14257 * ada-lang.c (cache_symbol): Use obstack_strdup.
14258
9f1528a1
AB
142592020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14260
14261 * configure: Regenerate.
14262
d3c22fa8
TT
142632020-02-19 Tom Tromey <tromey@adacore.com>
14264
14265 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
14266 NULL check.
14267
bf84f706
MR
142682020-02-19 Maciej W. Rozycki <macro@wdc.com>
14269
14270 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
14271
d1c9b20f
AB
142722020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14273
14274 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
14275 if GDBSERVER is not defined.
14276 (riscv_tdesc_cache): Likewise, also store const target_desc.
14277 (STATIC_IN_GDB): Define.
14278 (riscv_create_target_description): Update declaration with
14279 STATIC_IN_GDB.
14280 (riscv_lookup_target_description): New function, only define if
14281 GDBSERVER is not defined.
14282 * arch/riscv.h (riscv_create_target_description): Declare only
14283 when GDBSERVER is defined.
14284 (riscv_lookup_target_description): New declaration when GDBSERVER
14285 is not defined.
14286 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
14287 (riscv_linux_read_features): ...this, and return
14288 riscv_gdbarch_features instead of target_desc.
14289 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
14290 (riscv_linux_read_description): Rename to...
14291 (riscv_linux_read_features): ...this.
14292 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14293 Update to use riscv_gdbarch_features and
14294 riscv_lookup_target_description.
14295 * riscv-tdep.c (riscv_find_default_target_description): Use
14296 riscv_lookup_target_description instead of
14297 riscv_create_target_description.
14298
373d7ac0
SM
142992020-02-18 Simon Marchi <simon.marchi@efficios.com>
14300
14301 * valprint.c (generic_val_print_enum_1): When printing a flag
14302 enum with value 0 and there is no enumerator with value 0, print
14303 just "0" instead of "(unknown: 0x0)".
14304
b29a2df0
SM
143052020-02-18 Simon Marchi <simon.marchi@efficios.com>
14306
14307 * valprint.c (generic_val_print_enum_1): Print unknown part of
14308 flag enum in hex.
14309
6740f0cc
SM
143102020-02-18 Simon Marchi <simon.marchi@efficios.com>
14311
14312 * dwarf2/read.c (update_enumeration_type_from_children): Allow
14313 flag enums to contain duplicate enumerators.
14314 * valprint.c (generic_val_print_enum_1): Update comment.
14315
edd45eb0
SM
143162020-02-18 Simon Marchi <simon.marchi@efficios.com>
14317
14318 * dwarf2/read.c: Include "count-one-bits.h".
14319 (update_enumeration_type_from_children): If an enumerator has
14320 multiple bits set, don't treat the enumeration as a "flag enum".
14321 * valprint.c (generic_val_print_enum_1): Assert that enumerators
14322 of flag enums have 0 or 1 bit set.
14323
6d0cf446
BE
143242020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
14325
14326 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
14327 conversion.
14328 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14329 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14330 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14331 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14332 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14333
7001c1b7
SM
143342020-02-18 Simon Marchi <simon.marchi@efficios.com>
14335
14336 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
14337
fdb61c6c
SM
143382020-02-14 Simon Marchi <simon.marchi@efficios.com>
14339
14340 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
14341 displaced_step_closure_up.
14342 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14343 (struct displaced_step_closure_up):
14344 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14345 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14346 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
14347 Likewise.
14348 * gdbarch.sh (displaced_step_copy_insn): Likewise.
14349 * gdbarch.c, gdbarch.h: Re-generate.
14350 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
14351 displaced_step_closure_up.
14352 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14353 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14354 * infrun.h (displaced_step_closure_up): New type alias.
14355 (struct displaced_step_inferior_state) <step_closure>: Change
14356 type to displaced_step_closure_up.
14357 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
14358 displaced_step_closure_up.
14359 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14360
a4a38eb4
TT
143612020-02-14 Tom Tromey <tom@tromey.com>
14362
14363 * minidebug.c (gnu_debug_key): New global.
14364 (find_separate_debug_file_in_section): Use it.
14365
e8217e61
SM
143662020-02-14 Simon Marchi <simon.marchi@efficios.com>
14367
14368 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
14369 std::unique_ptr.
14370 * gdbarch.c: Re-generate.
14371 * gdbarch.h: Re-generate.
14372 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
14373 change.
14374 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
14375 type to std::unique_ptr.
14376 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14377 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14378 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14379 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14380 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
14381 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14382 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14383 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14384 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14385
d8d83535
SM
143862020-02-14 Simon Marchi <simon.marchi@efficios.com>
14387
14388 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
14389 std::unique_ptr.
14390 (displaced_step_clear): Rename to...
14391 (displaced_step_reset): ... this. Just call displaced->reset ().
14392 (displaced_step_clear_cleanup): Rename to...
14393 (displaced_step_reset_cleanup): ... this.
14394 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
14395 (displaced_step_fixup): Likewise.
14396 (resume_1): Likewise.
14397 (handle_inferior_event): Restore child's memory before calling
14398 displaced_step_fixup on the parent.
14399 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
14400 to std::unique_ptr.
14401 <step_closure>: Change type to std::unique_ptr.
14402
5f661e03
SM
144032020-02-14 Simon Marchi <simon.marchi@efficios.com>
14404
14405 * arm-tdep.c: Include count-one-bits.h.
14406 (cleanup_block_store_pc): Use count_one_bits.
14407 (cleanup_block_load_pc): Use count_one_bits.
14408 (arm_copy_block_xfer): Use count_one_bits.
14409 (thumb2_copy_block_xfer): Use count_one_bits.
14410 (thumb_copy_pop_pc_16bit): Use count_one_bits.
14411 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
14412 (thumb_get_next_pcs_raw): Use count_one_bits.
14413 (arm_get_next_pcs_raw): Use count_one_bits_l.
14414 * arch/arm.c (bitcount): Remove.
14415 * arch/arm.h (bitcount): Remove.
14416
8084e579
TT
144172020-02-14 Tom Tromey <tromey@adacore.com>
14418
14419 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
14420 Update.
14421 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
14422 * dwarf2/loc.c (call_site_find_chain_1): Return
14423 unique_xmalloc_ptr.
14424 (call_site_find_chain): Likewise.
14425
258bf0ee
RB
144262020-02-14 Richard Biener <rguenther@suse.de>
14427
14428 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
14429 on expression with division operators.
14430
f98a8458
AKS
144312020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14432
14433 * MAINTAINERS (Write After Approval): Adding myself.
14434
d1437c0e
TT
144352020-02-12 Tom Tromey <tom@tromey.com>
14436
14437 * event-loop.c (event_data, gdb_event, event_handler_func):
14438 Remove.
14439
3d4560f7
TT
144402020-02-12 Tom Tromey <tom@tromey.com>
14441
14442 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
14443 (dwarf2_frame_objfile_data): Add comment.
14444 (find_comp_unit, set_comp_unit): New functions.
14445 (dwarf2_frame_find_fde): Use find_comp_unit.
14446 (dwarf2_build_frame_info): Use set_comp_unit.
14447
21982304
TT
144482020-02-12 Tom Tromey <tom@tromey.com>
14449
14450 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
14451 (comp_unit): Don't initialize objfile.
14452 (execute_cfa_program): Add text_offset parameter.
14453 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
14454 (dwarf2_frame_cache): Update.
14455 (dwarf2_build_frame_info): Don't set "objfile" member.
14456
4debb237
TT
144572020-02-12 Tom Tromey <tom@tromey.com>
14458
14459 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
14460 (decode_frame_entry): Likewise.
14461 (dwarf2_build_frame_info): Update.
14462
0d404d44
TT
144632020-02-12 Tom Tromey <tom@tromey.com>
14464
14465 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
14466 (decode_frame_entry_1): Use the comp_unit obstack.
14467
a7a3ae5c
TT
144682020-02-12 Tom Tromey <tom@tromey.com>
14469
14470 * dwarf2/frame.c (struct comp_unit): Add initializers and
14471 constructor.
14472 (dwarf2_frame_objfile_data): Store a comp_unit.
14473 (dwarf2_frame_find_fde): Update.
14474 (dwarf2_build_frame_info): Use "new".
14475
a9d65418
TT
144762020-02-12 Tom Tromey <tom@tromey.com>
14477
14478 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
14479 (dwarf2_fde_table): Typedef for std::vector.
14480 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
14481 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
14482 (decode_frame_entry): Update.
14483 (dwarf2_build_frame_info): Use "new".
14484
7559c217
CB
144852020-02-12 Christian Biesinger <cbiesinger@google.com>
14486
14487 * arm-tdep.c (arm_gdbarch_init): Update.
14488 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
14489 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
14490 have_neon, is_m>: Change to bool.
14491
aeefc73c
CB
144922020-02-12 Christian Biesinger <cbiesinger@google.com>
14493
14494 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
14495
d27b8e5f
TT
144962020-02-12 Tom Tromey <tom@tromey.com>
14497
14498 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
14499
cd5900f3
HD
145002020-02-12 Hannes Domani <ssbssa@yahoo.de>
14501
14502 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
14503 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
14504
f056b22b
TT
145052020-02-11 Tom Tromey <tom@tromey.com>
14506
14507 * psymtab.h: Update comment.
14508
f92ff6b5
TT
145092020-02-11 Tom Tromey <tom@tromey.com>
14510
14511 * gdb_obstack.h (struct auto_obstack): Use
14512 DISABLE_COPY_AND_ASSIGN.
14513
3fd6912b
TT
145142020-02-11 Tom Tromey <tom@tromey.com>
14515
14516 * dwarf2/frame.h (struct objfile): Don't forward declare.
14517
69ed9b74
CB
145182020-02-11 Christian Biesinger <cbiesinger@google.com>
14519
14520 * cris-tdep.c (cris_supply_gregset): Change signature to match
14521 what struct regset expects.
14522 (cris_regset): New struct.
14523 (fetch_core_registers): Remove.
14524 (cris_iterate_over_regset_sections): New function.
14525 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
14526 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
14527
bda874f6
CB
145282020-02-11 Christian Biesinger <cbiesinger@google.com>
14529
14530 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
14531 registers.
14532
754e1564
CB
145332020-02-11 Christian Biesinger <cbiesinger@google.com>
14534
14535 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
14536
8ddd8e0e
SM
145372020-02-11 Simon Marchi <simon.marchi@efficios.com>
14538
14539 * configure: Re-generate.
14540
898e7f60
SM
145412020-02-11 Simon Marchi <simon.marchi@efficios.com>
14542
14543 * configure: Re-generate.
14544
58df732b
SM
145452020-02-11 Simon Marchi <simon.marchi@efficios.com>
14546
14547 * acinclude: Update warning.m4 path.
14548 * warning.m4: Move to gdbsupport.
14549
da5bd37e
TT
145502020-02-11 Tom Tromey <tromey@adacore.com>
14551
14552 * remote.c (remote_console_output): Update.
14553 * printcmd.c (printf_command): Update.
14554 * event-loop.c (gdb_wait_for_event): Update.
14555 * linux-nat.c (sigchld_handler): Update.
14556 * remote-sim.c (gdb_os_write_stdout): Update.
14557 (gdb_os_flush_stdout): Update.
14558 (gdb_os_flush_stderr): Update.
14559 (gdb_os_write_stderr): Update.
14560 * exceptions.c (print_exception): Update.
14561 * remote-fileio.c (remote_fileio_func_read): Update.
14562 (remote_fileio_func_write): Update.
14563 * tui/tui.c (tui_enable): Update.
14564 * tui/tui-interp.c (tui_interp::init): Update.
14565 * utils.c (init_page_info): Update.
14566 (putchar_unfiltered, fputc_unfiltered): Update.
14567 (gdb_flush): Update.
14568 (emit_style_escape): Update.
14569 (flush_wrap_buffer, fputs_maybe_filtered): Update.
14570 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
14571 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
14572 (stderr_file::write): Update.
14573 (stderr_file::puts): Update.
14574 * ui-file.h (ui_file_isatty, ui_file_write)
14575 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
14576 (ui_file_puts): Don't declare.
14577
85f0dd3c
TV
145782020-02-10 Tom de Vries <tdevries@suse.de>
14579
14580 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
14581 sentinel to char *.
14582
2e927613
TV
145832020-02-09 Tom de Vries <tdevries@suse.de>
14584
14585 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
14586 filename if it matches "<artificial>".
14587
6bafc845
HD
145882020-02-09 Hannes Domani <ssbssa@yahoo.de>
14589
14590 * windows-tdep.c (struct enum_value_name): New struct.
14591 (create_enum): New function.
14592 (windows_get_siginfo_type): Create and use enum types.
14593
7928d571
HD
145942020-02-09 Hannes Domani <ssbssa@yahoo.de>
14595
14596 * NEWS: Mention $_siginfo support for Windows.
14597 * windows-nat.c (handle_exception): Set siginfo_er.
14598 (windows_nat_target::mourn_inferior): Reset siginfo_er.
14599 (windows_xfer_siginfo): New function.
14600 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
14601 * windows-tdep.c (struct windows_gdbarch_data): New struct.
14602 (init_windows_gdbarch_data): New function.
14603 (get_windows_gdbarch_data): New function.
14604 (windows_get_siginfo_type): New function.
14605 (windows_init_abi): Register windows_get_siginfo_type.
14606 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
14607
6751ebae
TT
146082020-02-08 Tom Tromey <tom@tromey.com>
14609
14610 * dwarf2/read.c (class cutu_reader) <cutu_reader,
14611 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
14612 <keep>: Declare method.
14613 <m_keep>: Remove member.
14614 <~cutu_reader>: Remove.
14615 (cutu_reader::init_tu_and_read_dwo_dies): Update.
14616 (cutu_reader::cutu_reader): Update.
14617 (cutu_reader::keep): Rename from ~cutu_reader.
14618 (process_psymtab_comp_unit, build_type_psymtabs_1)
14619 (process_skeletonless_type_unit, load_partial_comp_unit)
14620 (load_full_comp_unit, dwarf2_read_addr_index)
14621 (read_signatured_type): Update.
14622
135f5437
TT
146232020-02-08 Tom Tromey <tom@tromey.com>
14624
14625 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
14626 "want_partial_unit" parameter.
14627 (process_psymtab_comp_unit): Change want_partial_unit to bool.
14628 Inline check for DW_TAG_partial_unit.
14629 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
14630
9f66ff1c
TT
146312020-02-08 Tom Tromey <tom@tromey.com>
14632
14633 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
14634 read.c.
14635 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
14636 read.c.
14637
c8a7a66f
TT
146382020-02-08 Tom Tromey <tom@tromey.com>
14639
14640 * dwarf2/read.c (read_address): Move to comp-unit.c.
14641 (dwarf2_rnglists_process, dwarf2_ranges_process)
14642 (read_attribute_value, dwarf_decode_lines_1)
14643 (var_decode_location, decode_locdesc): Update.
14644 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
14645 read.c. Remove "cu" parameter.
14646 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
14647 method.
14648
8266302d
TT
146492020-02-08 Tom Tromey <tom@tromey.com>
14650
14651 * dwarf2/read.c (read_attribute_value, read_indirect_string)
14652 (read_indirect_line_string): Update.
14653 * dwarf2/comp-unit.c (read_offset): Remove.
14654 (read_comp_unit_head): Update.
14655 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
14656 method.
14657 (read_offset): Don't declare.
14658
4057dfde
TT
146592020-02-08 Tom Tromey <tom@tromey.com>
14660
14661 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
14662 * dwarf2/read.c (struct comp_unit_head): Move to
14663 dwarf2/comp-unit.h.
14664 (enum class rcuh_kind): Move to comp-unit.h.
14665 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
14666 (read_comp_unit_head, error_check_comp_unit_head)
14667 (read_and_check_comp_unit_head): Move to comp-unit.c.
14668 (read_offset, dwarf_unit_type_name): Likewise.
14669 (create_debug_type_hash_table, read_cutu_die_from_dwo)
14670 (cutu_reader::cutu_reader, read_call_site_scope)
14671 (find_partial_die, follow_die_offset): Update.
14672 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
14673
24aa364d
TT
146742020-02-08 Tom Tromey <tom@tromey.com>
14675
14676 * dwarf2/read.c (read_offset_1): Move to leb.c.
14677 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
14678 (dwarf_decode_macro_bytes): Update.
14679 * dwarf2/leb.c (read_offset): Rename; move from read.c.
14680 * dwarf2/leb.h (read_offset): Declare.
14681
2c7d5afc
TT
146822020-02-08 Tom Tromey <tom@tromey.com>
14683
14684 * dwarf2/read.c (dwarf2_section_size): Remove.
14685 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
14686 Update.
14687 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
14688
4075cb26
TT
146892020-02-08 Tom Tromey <tom@tromey.com>
14690
14691 * dwarf2/read.c (read_initial_length): Move to leb.c.
14692 * dwarf2/leb.h (read_initial_length): Declare.
14693 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
14694 handle_nonstd parameter.
14695 * dwarf2/frame.c (read_initial_length): Remove.
14696 (decode_frame_entry_1): Update.
14697
09ba997f
TT
146982020-02-08 Tom Tromey <tom@tromey.com>
14699
14700 * dwarf2/loc.c (dwarf2_find_location_expression)
14701 (dwarf_evaluate_loc_desc::get_tls_address)
14702 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
14703 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
14704 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
14705 (dwarf2_compile_property_to_c)
14706 (dwarf2_loc_desc_get_symbol_read_needs)
14707 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
14708 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
14709 (loclist_describe_location, loclist_tracepoint_var_ref)
14710 (loclist_generate_c_location): Update.
14711 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
14712 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
14713 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
14714 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
14715 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
14716 (dwarf2_per_cu_data::addr_size)
14717 (dwarf2_per_cu_data::ref_addr_size)
14718 (dwarf2_per_cu_data::text_offset)
14719 (dwarf2_per_cu_data::addr_type): Now methods.
14720 (per_cu_header_read_in): Make per_cu "const".
14721 (dwarf2_version): Remove.
14722 (dwarf2_per_cu_data::int_type): Now a method.
14723 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
14724 (set_die_type, read_array_type, read_subrange_index_type)
14725 (read_tag_string_type, read_subrange_type): Update.
14726 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
14727 offset_size, ref_addr_size, text_offset, addr_type, version,
14728 objfile, int_type, addr_sized_int_type>: Declare methods.
14729
96c738c0
TT
147302020-02-08 Tom Tromey <tom@tromey.com>
14731
14732 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
14733 Move earlier.
14734
8fdd972c
TT
147352020-02-08 Tom Tromey <tom@tromey.com>
14736
14737 * dwarf2/read.h (dwarf_line_debug): Declare.
14738 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
14739 * dwarf2/read.c: Move line_header code to new files.
14740 (dwarf_line_debug): No longer static.
14741 * dwarf2/line-header.c: New file.
14742 * dwarf2/line-header.h: New file.
14743
03075812
TT
147442020-02-08 Tom Tromey <tom@tromey.com>
14745
14746 * dwarf2/read.c (struct line_header) <file_full_name,
14747 file_file_name>: Return unique_xmalloc_ptr.
14748 (line_header::file_file_name): Update.
14749 (line_header::file_full_name): Update.
14750 (dw2_get_file_names_reader): Update.
14751 (macro_start_file): Update.
14752
bb822404
TT
147532020-02-08 Tom Tromey <tom@tromey.com>
14754
14755 * dwarf2/read.c (struct line_header) <file_full_name,
14756 file_file_name>: Declare methods.
14757 (dw2_get_file_names_reader): Update.
14758 (file_file_name): Now a method.
14759 (file_full_name): Likewise.
14760 (macro_start_file): Update.
14761
009b64fc
TT
147622020-02-08 Tom Tromey <tom@tromey.com>
14763
14764 * dwarf2/read.c (dwarf_always_disassemble)
14765 (show_dwarf_always_disassemble): Move to loc.c.
14766 (_initialize_dwarf2_read): Move "always-disassemble" registration
14767 to loc.c.
14768 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
14769 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
14770 static.
14771 (show_dwarf_always_disassemble): Move from read.c.
14772 (_initialize_dwarf2loc): Move always-disassemble from read.c.
14773
5895093f
TT
147742020-02-08 Tom Tromey <tom@tromey.com>
14775
14776 * dwarf2/read.c (~dwarf2_per_objfile): Update.
14777 (create_quick_file_names_table): Return htab_up.
14778 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
14779 Update.
14780 * dwarf2/read.h (struct dwarf2_per_objfile)
14781 <quick_file_names_table>: Now htab_up.
14782
b3b32279
TT
147832020-02-08 Tom Tromey <tom@tromey.com>
14784
14785 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
14786
1d33d811
TT
147872020-02-08 Tom Tromey <tom@tromey.com>
14788
14789 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
14790 Rewrite.
14791 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
14792 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
14793 (abbrev_table::abbrev_table): No longer inline.
14794 (ABBREV_HASH_SIZE): Remove.
14795 (abbrev_table::m_abbrevs): Now an htab_up.
14796
86de1d91
TT
147972020-02-08 Tom Tromey <tom@tromey.com>
14798
14799 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
14800 (cutu_reader): Update.
14801 (build_type_psymtabs_1): Update.
14802 * dwarf2/abbrev.c (abbrev_table::read): Rename.
14803 (abbrev_table::alloc_abbrev): Update.
14804 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
14805 (abbrev_table::read): New static method, renamed from
14806 abbrev_table_read_table.
14807 (abbrev_table::alloc_abbrev)
14808 (abbrev_table::add_abbrev): Now private.
14809 (abbrev_table::abbrev_table): Now private.
14810 (abbrev_table::m_abbrev_obstack): Now private. Rename.
14811
0335378b
TT
148122020-02-08 Tom Tromey <tom@tromey.com>
14813
14814 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
14815 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
14816 htab_up.
14817
48b490f2
TT
148182020-02-08 Tom Tromey <tom@tromey.com>
14819
14820 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
14821 htab_up.
14822 (lookup_dwo_unit_in_dwp): Update.
14823 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
14824 on obstack.
14825
bc68fb19
TT
148262020-02-08 Tom Tromey <tom@tromey.com>
14827
14828 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
14829 obstack.
14830
d15acc42
TT
148312020-02-08 Tom Tromey <tom@tromey.com>
14832
14833 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
14834 line_header_hash.
14835 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
14836 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
14837 Change type to htab_up.
14838
eaa5fa8b
TT
148392020-02-08 Tom Tromey <tom@tromey.com>
14840
14841 * dwarf2/read.c (allocate_type_unit_groups_table): Return
14842 htab_up. Don't allocate on obstack.
14843 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
14844 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
14845 Change type to htab_up.
14846
b0b6a987
TT
148472020-02-08 Tom Tromey <tom@tromey.com>
14848
14849 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
14850 Change type to htab_up.
14851 * dwarf2/read.c (create_signatured_type_table_from_index)
14852 (create_signatured_type_table_from_debug_names)
14853 (create_all_type_units, add_type_unit)
14854 (lookup_dwo_signatured_type, lookup_signatured_type)
14855 (process_skeletonless_type_unit): Update.
14856 (create_debug_type_hash_table, create_debug_types_hash_table):
14857 Change type of types_htab.
14858 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
14859 htab_up. Don't allocate on obstack.
14860 (create_cus_hash_table): Change type of cus_htab parameter.
14861 (struct dwo_file) <cus, tus>: Now htab_up.
14862 (lookup_dwo_signatured_type, lookup_dwo_cutu)
14863 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
14864 (queue_and_load_all_dwo_tus): Update.
14865 * dwarf2/index-write.c (write_gdbindex): Update.
14866 (write_debug_names): Update.
14867
39856def
TT
148682020-02-08 Tom Tromey <tom@tromey.com>
14869
14870 * dwarf2/read.h (struct dwarf2_queue_item): Move from
14871 dwarf2/read.c. Remove "next" member. Add constructor ntad
14872 destructor.
14873 (struct dwarf2_per_objfile) <queue>: New member.
14874 * dwarf2/read.c (struct dwarf2_queue_item): Move to
14875 dwarf2/read.h.
14876 (dwarf2_queue, dwarf2_queue_tail): Remove.
14877 (class dwarf2_queue_guard): Add parameter to constructor. Use
14878 DISABLE_COPY_AND_ASSIGN.
14879 <m_per_objfile>: New member.
14880 <~dwarf2_queue_guard>: Rewrite.
14881 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
14882 Update.
14883 (~dwarf2_queue_item): New.
14884
3e225074
TT
148852020-02-08 Tom Tromey <tom@tromey.com>
14886
14887 * dwarf2/read.c (struct die_info) <has_children>: New member.
14888 (dw2_get_file_names_reader): Remove has_children.
14889 (dw2_get_file_names): Update.
14890 (read_cutu_die_from_dwo): Remove has_children.
14891 (cutu_reader::init_tu_and_read_dwo_dies)
14892 (cutu_reader::cutu_reader): Update.
14893 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
14894 Remove has_children.
14895 (build_type_psymtabs_1, process_skeletonless_type_unit)
14896 (load_partial_comp_unit, load_full_comp_unit): Update.
14897 (create_dwo_cu_reader): Remove has_children.
14898 (create_cus_hash_table, read_die_and_children): Update.
14899 (read_full_die_1,read_full_die): Remove has_children.
14900 (read_signatured_type): Update.
14901 (class cutu_reader) <has_children>: Remove.
14902
82ca8957
TT
149032020-02-08 Tom Tromey <tom@tromey.com>
14904
14905 * dwarf2/expr.c: Rename from dwarf2expr.c.
14906 * dwarf2/expr.h: Rename from dwarf2expr.h.
14907 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
14908 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
14909 * dwarf2/frame.c: Rename from dwarf2-frame.c.
14910 * dwarf2/frame.h: Rename from dwarf2-frame.h.
14911 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
14912 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
14913 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
14914 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
14915 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
14916 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
14917 * dwarf2/loc.c: Rename from dwarf2loc.c.
14918 * dwarf2/loc.h: Rename from dwarf2loc.h.
14919 * dwarf2/read.c: Rename from dwarf2read.c.
14920 * dwarf2/read.h: Rename from dwarf2read.h.
14921 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
14922 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
14923 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
14924 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
14925 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
14926 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
14927 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
14928 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
14929 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
14930 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
14931 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
14932 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
14933 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
14934 Update.
14935 * Makefile.in (COMMON_SFILES): Update.
14936 (HFILES_NO_SRCDIR): Update.
14937
9e35d499
TT
149382020-02-08 Tom Tromey <tom@tromey.com>
14939
14940 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
14941 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
14942
1eba2311
TT
149432020-02-08 Tom Tromey <tom@tromey.com>
14944
14945 * dwarf2read.h (struct die_info): Don't declare.
14946
e41c2da2
TT
149472020-02-08 Tom Tromey <tom@tromey.com>
14948
14949 * dwarf2read.h (die_info_ptr): Remove typedef.
14950
4fc6c0d5
TT
149512020-02-08 Tom Tromey <tom@tromey.com>
14952
14953 * dwarf2read.c (read_call_site_scope)
14954 (handle_data_member_location, dwarf2_add_member_fn)
14955 (mark_common_block_symbol_computed, read_common_block)
14956 (attr_to_dynamic_prop, partial_die_info::read)
14957 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
14958 (dwarf2_symbol_mark_computed, set_die_type): Update.
14959 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
14960 method.
14961 (attr_form_is_block): Don't declare.
14962 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
14963
cd6c91b4
TT
149642020-02-08 Tom Tromey <tom@tromey.com>
14965
14966 * dwarf2read.c (dwarf2_find_base_address, )
14967 (read_call_site_scope, rust_containing_type)
14968 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
14969 (handle_data_member_location, dwarf2_add_member_fn)
14970 (get_alignment, read_structure_type, process_structure_scope)
14971 (mark_common_block_symbol_computed, read_common_block)
14972 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
14973 (partial_die_info::read, read_attribute_value, new_symbol)
14974 (lookup_die_type, dwarf2_get_ref_die_offset)
14975 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
14976 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
14977 (dwarf2_symbol_mark_computed): Update.
14978 * dwarf2/attribute.h (struct attribute) <value_as_address,
14979 form_is_section_offset, form_is_constant, form_is_ref>: Declare
14980 methods.
14981 (value_as_address, attr_form_is_section_offset)
14982 (attr_form_is_constant, attr_form_is_ref): Don't declare.
14983 * dwarf2/attribute.c (attribute::value_as_address)
14984 (attribute::form_is_section_offset, attribute::form_is_constant)
14985 (attribute::form_is_ref): Now methods.
14986
162dce55
TT
149872020-02-08 Tom Tromey <tom@tromey.com>
14988
14989 * dwarf2read.c (struct attribute, DW_STRING)
14990 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
14991 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
14992 (attr_form_is_block, attr_form_is_section_offset)
14993 (attr_form_is_constant, attr_form_is_ref): Move.
14994 * dwarf2/attribute.h: New file.
14995 * dwarf2/attribute.c: New file, from dwarf2read.c.
14996 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
14997
3054dd54
TT
149982020-02-08 Tom Tromey <tom@tromey.com>
14999
15000 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
15001 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
15002 Move.
15003 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
15004 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
15005 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
15006 abbrev.c.
15007 * dwarf2/abbrev.h: New file.
15008 * dwarf2/abbrev.c: New file, from dwarf2read.c.
15009 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
15010
96b79293
TT
150112020-02-08 Tom Tromey <tom@tromey.com>
15012
15013 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
15014 (dwarf2_section_size, dwarf2_get_section_info)
15015 (create_signatured_type_table_from_debug_names)
15016 (create_addrmap_from_aranges, read_debug_names_from_section)
15017 (get_gdb_index_contents_from_section, read_comp_unit_head)
15018 (error_check_comp_unit_head, read_abbrev_offset)
15019 (create_debug_type_hash_table, init_cu_die_reader)
15020 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
15021 (read_comp_units_from_section, create_cus_hash_table)
15022 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
15023 (create_dwp_v2_section, dwarf2_rnglists_process)
15024 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
15025 (abbrev_table_read_table, read_indirect_string_at_offset_from)
15026 (read_indirect_string_from_dwz, read_addr_index_1)
15027 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
15028 (dwarf_decode_macro_bytes, dwarf_decode_macros)
15029 (fill_in_loclist_baton): Update.
15030 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
15031 get_containing_section, get_bfd_owner, get_bfd_section,
15032 get_file_name, get_id, get_flags, empty, read>: Declare methods.
15033 (dwarf2_read_section, get_section_name, get_section_file_name)
15034 (get_containing_section, get_section_bfd_owner)
15035 (get_section_bfd_section, get_section_name, get_section_file_name)
15036 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
15037 declare.
15038 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
15039 (dwarf2_section_info::get_bfd_owner)
15040 (dwarf2_section_info::get_bfd_section)
15041 (dwarf2_section_info::get_name)
15042 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
15043 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
15044 (dwarf2_section_info::read): Now methods.
15045 * dwarf-index-write.c (class debug_names): Update.
15046
2c86cff9
TT
150472020-02-08 Tom Tromey <tom@tromey.com>
15048
15049 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
15050 Move to dwarf2/section.h.
15051 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
15052 (get_section_bfd_section, get_section_name)
15053 (get_section_file_name, get_section_id, get_section_flags)
15054 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
15055 dwarf2/section.c.
15056 * dwarf2/section.h: New file.
15057 * dwarf2/section.c: New file, from dwarf2read.c.
15058 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
15059
f4382c45
TT
150602020-02-08 Tom Tromey <tom@tromey.com>
15061
15062 * dwarf2read.h (read_unsigned_leb128): Don't declare.
15063 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
15064 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
15065 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
15066 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
15067 * dwarf2/leb.h: New file, from dwarf2read.c.
15068 * dwarf2/leb.c: New file, from dwarf2read.c.
15069 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
15070 Remove.
15071 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
15072 (COMMON_SFILES): Add dwarf2/leb.c.
15073
01840b7a
JB
150742020-02-08 Joel Brobecker <brobecker@adacore.com>
15075
15076 GDB 9.1 released.
15077
dfcb27e4
IB
150782020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15079
15080 PR gdb/25190:
aac66a4c
SM
15081 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
15082 * gdb/remote.c (remote_console_output): Update.
15083 * gdb/ui-file.c (fputs_unfiltered): Rename to...
15084 (ui_file_puts): ...this.
15085 * gdb/ui-file.h (ui_file_puts): Add declaration.
15086 * gdb/utils.c (emit_style_escape): Update.
15087 (flush_wrap_buffer): Update.
15088 (fputs_maybe_filtered): Update.
15089 (fputs_unfiltered): Add function.
dfcb27e4 15090
faa17681
IB
150912020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15092
aac66a4c
SM
15093 * gdb/event-loop.c (gdb_wait_for_event): Update.
15094 * gdb/printcmd.c (printf_command): Update.
15095 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
15096 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
15097 (gdb_os_flush_stderr): Update.
15098 * gdb/remote.c (remote_console_output): Update.
15099 * gdb/ui-file.c (gdb_flush): Rename to...
15100 (ui_file_flush): ...this.
15101 (stderr_file::write): Update.
15102 (stderr_file::puts): Update.
15103 * gdb/ui-file.h (gdb_flush): Rename to...
15104 (ui_file_flush): ...this.
15105 * gdb/utils.c (gdb_flush): Add function.
15106 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 15107
5abbbe1d
TT
151082020-02-07 Tom Tromey <tromey@adacore.com>
15109
15110 PR breakpoints/24915:
15111 * source.c (find_and_open_source): Do not check basenames_may_differ.
15112
919adfe8
TT
151132020-02-07 Tom Tromey <tom@tromey.com>
15114
15115 * README: Update gdbserver documentation.
15116 * gdbserver: Move to top level.
15117 * configure.tgt (build_gdbserver): Remove.
15118 * configure.ac: Remove --enable-gdbserver.
15119 * configure: Rebuild.
15120 * Makefile.in (distclean): Don't mention gdbserver.
15121
1d5d29e7
SV
151222020-02-06 Shahab Vahedi <shahab@synopsys.com>
15123
15124 * source-cache.c (source_cache::ensure): Surround
15125 get_plain_source_lines with a try/catch.
15126 (source_cache::get_line_charpos): Get rid of try/catch
15127 and only check for the return value of "ensure".
15128 * tui/tui-source.c (tui_source_window::set_contents):
15129 Simplify "nlines" calculation.
15130
6eb1129c
SV
151312020-02-06 Shahab Vahedi <shahab@synopsys.com>
15132
15133 * MAINTAINERS (Write After Approval): Add myself.
15134
c6a42d11
CB
151352020-02-05 Christian Biesinger <cbiesinger@google.com>
15136
15137 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
15138 function call.
15139
c8ecdda6
CB
151402020-02-05 Christian Biesinger <cbiesinger@google.com>
15141
15142 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
15143
f6480e70
MR
151442020-02-05 Maciej W. Rozycki <macro@wdc.com>
15145
15146 * nat/riscv-linux-tdesc.h: New file.
15147 * nat/riscv-linux-tdesc.c: New file, taking code from...
15148 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
15149 ... here.
15150 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
15151 NATDEPFILES.
15152
dcc9fbc6
AB
151532020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
15154
15155 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
15156 we don't set the fake simulator ptid to the null_ptid.
15157
719546c4
SM
151582020-02-03 Simon Marchi <simon.marchi@efficios.com>
15159
15160 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
15161 * gdbthread.h (class thread_info) <resumed>: Likewise.
15162 * infrun.c (resume_1): Likewise.
15163 (proceed): Likewise.
15164 (infrun_thread_stop_requested): Likewise.
15165 (stop_all_threads): Likewise.
15166 (handle_inferior_event): Likewise.
15167 (restart_threads): Likewise.
15168 (finish_step_over): Likewise.
15169 (keep_going_stepped_thread): Likewise.
15170 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
15171 (linux_handle_extended_wait): Likewise.
15172 * record-btrace.c (get_thread_current_frame_id): Likewise.
15173 * record-full.c (record_full_wait_1): Likewise.
15174 * remote.c (remote_target::process_initial_stop_replies): Likewise.
15175 * target.c (target_resume): Likewise.
15176 * thread.c (set_running_thread): Likewise.
15177
e409c542
AKS
151782020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15179
15180 * f-valprint.c (f77_print_array_1): Changed datatype of index
15181 variable to LONGEST from int to enable it to contain bound
15182 values correctly.
15183
ee98c0da
MR
151842020-02-03 Maciej W. Rozycki <macro@wdc.com>
15185
15186 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
15187 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
15188 offsets according to FLEN determined.
15189 (riscv_linux_nat_target::read_description): Determine FLEN
15190 dynamically.
15191 (riscv_linux_nat_target::fetch_registers): Size regset buffer
15192 according to FLEN determined.
15193 (riscv_linux_nat_target::store_registers): Likewise.
15194
aa66aac4
SV
151952020-02-01 Shahab Vahedi <shahab@synopsys.com>
15196
15197 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
15198 when reg->group is empty and reggroup is not.
15199
fd9faca8
TT
152002020-01-31 Tom Tromey <tromey@adacore.com>
15201
15202 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
15203 Call beneath target's mourn_inferior after unpushing.
15204
42330a68
AB
152052020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15206
15207 PR tui/9765
15208 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
15209 have enough lines to fill the screen, still return the lowest
15210 address we found.
15211
7a27a45b
AB
152122020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15213
15214 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
15215 '-', '<', and '>' commands.
15216
c47f70e2
PA
152172020-01-29 Pedro Alves <palves@redhat.com>
15218 Sergio Durigan Junior <sergiodj@redhat.com>
15219
15220 * infcmd.c (construct_inferior_arguments): Assert that
15221 'argc' is greater than 0.
15222
5133a315
LM
152232020-01-29 Luis Machado <luis.machado@linaro.org>
15224
15225 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
15226 (BRK_INSN_MASK): Define to 0xd4200000.
15227 (aarch64_program_breakpoint_here_p): New function.
15228 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
15229 * arch-utils.c (default_program_breakpoint_here_p): Moved from
15230 breakpoint.c.
15231 * arch-utils.h (default_program_breakpoint_here_p): Moved from
15232 breakpoint.h
15233 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
15234 call gdbarch_program_breakpoint_here_p.
15235 (program_breakpoint_here): Moved to arch-utils.c, renamed to
15236 default_program_breakpoint_here_p, changed return type to bool and
15237 simplified.
15238 * breakpoint.h (program_breakpoint_here): Moved prototype to
15239 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
15240 return type to bool.
15241 * gdbarch.c: Regenerate.
15242 * gdbarch.h: Regenerate.
15243 * gdbarch.sh (program_breakpoint_here_p): New method.
15244 * infrun.c (handle_signal_stop): Call
15245 gdbarch_program_breakpoint_here_p.
15246
168f8c6b
TT
152472020-01-26 Tom Tromey <tom@tromey.com>
15248
15249 * ctfread.c (struct ctf_fp_info): Reindent.
15250 (_initialize_ctfread): Remove.
15251
128a391f
TT
152522020-01-26 Tom Tromey <tom@tromey.com>
15253
15254 * psymtab.c (partial_map_expand_apply)
15255 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
15256 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
15257 (psym_print_stats, psym_expand_symtabs_for_function)
15258 (psym_map_symbol_filenames, psym_map_matching_symbols)
15259 (psym_expand_symtabs_matching)
15260 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
15261 (maintenance_check_psymtabs): Use new methods.
15262 * psympriv.h (struct partial_symtab) <readin_p,
15263 get_compunit_symtab>: New methods.
15264 <readin, compunit_symtab>: Remove members.
15265 (struct standard_psymtab): New.
15266 (struct legacy_psymtab): Derive from standard_psymtab.
15267 * dwarf2read.h (struct dwarf2_psymtab): Derive from
15268 standard_psymtab.
15269 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
15270
0494dbec
TT
152712020-01-26 Tom Tromey <tom@tromey.com>
15272
15273 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
15274 read_dependencies. Add assert.
15275 * psymtab.c (partial_symtab::read_dependencies): New method.
15276 * psympriv.h (struct partial_symtab) <read_dependencies>: New
15277 method.
15278 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
15279 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
15280 read_dependencies.
15281 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
15282 Add assert.
15283
8566b89b
TT
152842020-01-26 Tom Tromey <tom@tromey.com>
15285
15286 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
15287 Call expand_psymtab.
15288 (xcoff_read_symtab): Call expand_psymtab.
15289 (xcoff_start_psymtab, xcoff_end_psymtab): Set
15290 legacy_expand_psymtab.
15291 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
15292 method.
15293 (struct legacy_psymtab) <expand_psymtab>: Implement.
15294 <legacy_expand_psymtab>: New member.
15295 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
15296 (parse_partial_symbols): Set legacy_expand_psymtab.
15297 (psymtab_to_symtab_1): Change argument order. Call
15298 expand_psymtab.
15299 (new_psymtab): Set legacy_expand_psymtab.
15300 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
15301 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
15302 expand_psymtab.
15303 (dwarf2_psymtab::expand_psymtab): Rename from
15304 psymtab_to_symtab_1. Call expand_psymtab.
15305 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
15306 (dbx_end_psymtab): Likewise.
15307 (dbx_psymtab_to_symtab_1): Change argument order. Call
15308 expand_psymtab.
15309 (dbx_read_symtab): Call expand_psymtab.
15310 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
15311 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
15312 (ctf_psymtab::read_symtab): Call expand_psymtab.
15313
077cbab2
TT
153142020-01-26 Tom Tromey <tom@tromey.com>
15315
15316 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
15317 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
15318 messages.
15319 * mdebugread.c (mdebug_read_symtab): Remove prints.
15320 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
15321 assert.
15322 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
15323
891813be
TT
153242020-01-26 Tom Tromey <tom@tromey.com>
15325
15326 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
15327 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
15328 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
15329 legacy_symtab.
15330 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
15331 * psymtab.c (psymtab_to_symtab): Call method.
15332 (dump_psymtab): Update.
15333 * psympriv.h (struct partial_symtab): Add virtual destructor.
15334 <read_symtab>: New method.
15335 (struct legacy_symtab): New.
15336 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
15337 (struct pst_map) <pst>: Now a legacy_psymtab.
15338 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
15339 (new_psymtab): Use legacy_psymtab.
15340 * dwarf2read.h (struct dwarf2_psymtab): New.
15341 (struct dwarf2_per_cu_data) <psymtab>: Use it.
15342 * dwarf2read.c (dwarf2_create_include_psymtab)
15343 (dwarf2_build_include_psymtabs, create_type_unit_group)
15344 (create_partial_symtab, process_psymtab_comp_unit_reader)
15345 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
15346 (set_partial_user): Use dwarf2_psymtab.
15347 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
15348 (psymtab_to_symtab_1, process_full_comp_unit)
15349 (process_full_type_unit, dwarf2_ranges_read)
15350 (dwarf2_get_pc_bounds, psymtab_include_file_name)
15351 (dwarf_decode_lines): Use dwarf2_psymtab.
15352 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
15353 (add_address_entry_worker, write_one_signatured_type)
15354 (recursively_count_psymbols, recursively_write_psymbols)
15355 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
15356 (write_debug_names): Likewise.
15357 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
15358 <pst>: Now a legacy_psymtab.
15359 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
15360 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
15361 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
15362 * ctfread.c (struct ctf_psymtab): New.
15363 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
15364 ctf_psymtab.
15365 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
15366 (create_partial_symtab): Return a ctf_psymtab.
15367 (scan_partial_symbols): Update.
15368
c3693a1d
TT
153692020-01-26 Tom Tromey <tom@tromey.com>
15370
15371 * xcoffread.c (xcoff_start_psymtab): Use new.
15372 * psymtab.c (partial_symtab::partial_symtab): New constructor,
15373 renamed from start_psymtab_common.
15374 * psympriv.h (struct partial_symtab): Add new constructor.
15375 (start_psymtab_common): Don't declare.
15376 * mdebugread.c (parse_partial_symbols): Use new.
15377 * dwarf2read.c (create_partial_symtab): Use new.
15378 * dbxread.c (start_psymtab): Use new.
15379 * ctfread.c (create_partial_symtab): Use new.
15380
32caafd0
TT
153812020-01-26 Tom Tromey <tom@tromey.com>
15382
15383 * xcoffread.c (xcoff_end_psymtab): Use new.
15384 * psymtab.c (start_psymtab_common): Use new.
15385 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
15386 Update.
15387 * psympriv.h (struct partial_symtab): Add parameters to
15388 constructor. Don't inline.
15389 (allocate_psymtab): Don't declare.
15390 * mdebugread.c (new_psymtab): Use new.
15391 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
15392 * dbxread.c (dbx_end_psymtab): Use new.
15393
abaa2f23
TT
153942020-01-26 Tom Tromey <tom@tromey.com>
15395
15396 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
15397 allocate_psymtab. Update documentation.
15398 * psymtab.c (psymtab_storage::install_psymtab): Rename from
15399 allocate_psymtab. Do not use new.
15400 (allocate_psymtab): Use new. Update.
15401
6d94535f
TT
154022020-01-26 Tom Tromey <tom@tromey.com>
15403
15404 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
15405 * psymtab.c (psym_print_stats): Update.
15406 * psympriv.h (struct partial_symtab) <readin,
15407 psymtabs_addrmap_supported, anonymous>: Now bool.
15408 * mdebugread.c (psymtab_to_symtab_1): Update.
15409 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
15410 (build_type_psymtabs_reader, psymtab_to_symtab_1)
15411 (process_full_comp_unit, process_full_type_unit): Update.
15412 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
15413 * ctfread.c (psymtab_to_symtab): Update.
15414
6f17252b
TT
154152020-01-26 Tom Tromey <tom@tromey.com>
15416
15417 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
15418 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
15419 * psymtab.c (psymtab_storage): Delete psymtabs.
15420 (psymtab_storage::allocate_psymtab): Use new.
15421 (psymtab_storage::discard_psymtab): Use delete.
15422 * psympriv.h (struct partial_symtab): Add constructor and
15423 initializers.
15424
f6f1cebc
TT
154252020-01-26 Tom Tromey <tom@tromey.com>
15426
15427 * machoread.c: Do not include psympriv.h.
15428
e47e48f6
PW
154292020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15430
15431 * NEWS: Mention the new option and the set/show commands.
15432
a2fedca9
PW
154332020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15434
15435 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
15436 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
15437 (validate_exec_file): New variables, enums, functions.
15438 (exec_file_locate_attach, print_section_info): Style the filenames.
15439 (_initialize_exec): Install show_exec_file_mismatch_command and
15440 set_exec_file_mismatch_command.
15441 * gdbcore.h (validate_exec_file): Declare.
15442 * infcmd.c (attach_command): Call validate_exec_file.
15443 * remote.c ( remote_target::remote_add_inferior): Likewise.
15444
7ffa82e1
AB
154452020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15446
15447 * frame.c (find_frame_sal): Move call to get_next_frame into more
15448 inner scope.
15449 * inline-frame.c (inilne_state) <inline_state>: Update argument
15450 types.
15451 (inilne_state) <skipped_symbol>: Rename to...
15452 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
15453 (skip_inline_frames): Build vector of skipped symbols and use this
15454 to reate the inline_state.
15455 (inline_skipped_symbol): Add a comment and some assertions, fetch
15456 skipped symbol from the list.
15457
3d92a3e3
AB
154582020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15459
15460 * buildsym.c (lte_is_less_than): Delete.
15461 (buildsym_compunit::end_symtab_with_blockvector): Create local
15462 lambda function to sort line table entries, and use
15463 std::stable_sort instead of std::sort.
15464 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
15465 markers when looking for a previous line.
15466
94a72be7
AB
154672020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15468
15469 * dwarf2read.c (lnp_state_machine::record_line): Include
15470 end_sequence parameter in debug print out. Record the line if we
15471 are at an end_sequence marker even if it's not the start of a
15472 statement.
15473 * symmisc.c (maintenance_print_one_line_table): Print end of
15474 sequence markers with 'END' not '0'.
15475
53af73bf
PA
154762020-01-24 Pedro Alves <palves@redhat.com>
15477
15478 PR gdb/25410
15479 * thread.c (scoped_restore_current_thread::restore): Use
15480 switch_to_inferior_no_thread.
15481 * exec.c: Include "progspace-and-thread.h".
15482 (add_target_sections, remove_target_sections):
15483 scoped_restore_current_pspace_and_thread instead of
15484 scoped_restore_current_thread.
15485 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
15486 and aspace to the inferior before calling clone_program_space.
15487 Remove stale comment.
15488
3050c6f4
CB
154892020-01-24 Christian Biesinger <cbiesinger@google.com>
15490
15491 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
15492 (arm_netbsd_nat_target::fetch_registers): ...this.
15493 (arm_nbsd_nat_target::store_registers): Rename to...
15494 (arm_netbsd_nat_target::store_registers): ...this.
15495
73685c7e
CB
154962020-01-24 Christian Biesinger <cbiesinger@google.com>
15497
15498 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
15499 register_t.
15500
89203d40
CB
155012020-01-24 Christian Biesinger <cbiesinger@google.com>
15502
15503 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
15504 Update comment.
15505 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
15506 Likewise.
15507 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
15508 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
15509 the correct replacement (iterate_over_regset_sections).
15510 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
15511 Update comment.
15512
1ba1ac88
AB
155132020-01-24 Graham Markall <graham.markall@embecosm.com>
15514
15515 PR gdb/23718
15516 * gdb/python/python.c (execute_gdb_command): Call
15517 async_enable_stdin in catch block.
15518
f3364a6d
AB
155192020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15520
15521 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
15522 SWITCH_THRU_ALL_UIS.
15523
733d0a67
AB
155242020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15525
15526 PR tui/9765
15527 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
15528 comment, add extra parameter, and update to store previous symbol
15529 when appropriate.
15530 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
15531 add extra parameter.
15532 * tui/tui-disasm.c (tui_disassemble): Update header comment,
15533 remove unneeded parameter, add try/catch around gdb_print_insn,
15534 rewrite to add items to asm_lines vector.
15535 (tui_find_backward_disassembly_start_address): New function.
15536 (tui_find_disassembly_address): Updated throughout.
15537 (tui_disasm_window::set_contents): Update for changes to
15538 tui_disassemble.
15539 (tui_disasm_window::do_scroll_vertical): No need to adjust the
15540 number of lines to scroll.
15541
b3b3bada
SM
155422020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
15543
15544 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
15545 (SECT_OFF_DATA): Likewise.
15546 (SECT_OFF_RODATA): Likewise.
15547 (SECT_OFF_TEXT): Likewise.
15548 (SECT_OFF_BSS): Likewise.
15549 (struct objfile) <text_section_offset, data_section_offset>: New
15550 methods.
15551 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
15552 objfile::text_section_offset.
15553 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
15554 * coffread.c (coff_symtab_read): Likewise.
15555 (enter_linenos): Likewise.
15556 (process_coff_symbol): Likewise.
15557 * ctfread.c (get_objfile_text_range): Likewise.
15558 * dtrace-probe.c (dtrace_probe::get_relocated_address):
15559 Use objfile::data_section_offset.
15560 * dwarf2-frame.c (execute_cfa_program): Use
15561 objfile::text_section_offset.
15562 (dwarf2_frame_find_fde): Likewise.
15563 * dwarf2read.c (create_addrmap_from_index): Likewise.
15564 (create_addrmap_from_aranges): Likewise.
15565 (dw2_find_pc_sect_compunit_symtab): Likewise.
15566 (process_psymtab_comp_unit_reader): Likewise.
15567 (add_partial_symbol): Likewise.
15568 (add_partial_subprogram): Likewise.
15569 (process_full_comp_unit): Likewise.
15570 (read_file_scope): Likewise.
15571 (read_func_scope): Likewise.
15572 (read_lexical_block_scope): Likewise.
15573 (read_call_site_scope): Likewise.
15574 (dwarf2_rnglists_process): Likewise.
15575 (dwarf2_ranges_process): Likewise.
15576 (dwarf2_ranges_read): Likewise.
15577 (dwarf_decode_lines_1): Likewise.
15578 (new_symbol): Likewise.
15579 (dwarf2_fetch_die_loc_sect_off): Likewise.
15580 (dwarf2_per_cu_text_offset): Likewise.
15581 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
15582 * hppa-tdep.c (read_unwind_info): Likewise.
15583 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
15584 * psympriv.h (struct partial_symtab): Likewise.
15585 * psymtab.c (find_pc_sect_psymtab): Likewise.
15586 * solib-svr4.c (enable_break): Likewise.
15587 * stap-probe.c (relocate_address): Use
15588 objfile::data_section_offset.
15589 * xcoffread.c (enter_line_range): Use
15590 objfile::text_section_offset.
15591 (read_xcoff_symtab): Likewise.
15592
ab53f382
SM
155932020-01-23 Simon Marchi <simon.marchi@efficios.com>
15594
15595 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
15596 declaration to narrower scopes.
15597
e7eee665
SM
155982020-01-23 Simon Marchi <simon.marchi@efficios.com>
15599
15600 * darwin-nat.h (struct darwin_exception_msg, enum
15601 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
15602 Move up.
15603 (class darwin_nat_target) <wait_1, check_new_threads,
15604 decode_exception_message, decode_message, stop_inferior,
15605 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
15606 * darwin-nat.c (darwin_check_new_threads): Rename to...
15607 (darwin_nat_target::check_new_threads): ... this.
15608 (darwin_suspend_inferior_it): Remove.
15609 (darwin_decode_exception_message): Rename to...
15610 (darwin_nat_target::decode_exception_message): ... this.
15611 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
15612 (darwin_decode_message): Rename to...
15613 (darwin_nat_target::decode_message): ... this.
15614 (cancel_breakpoint): Rename to...
15615 (darwin_nat_target::cancel_breakpoint): ... this.
15616 (darwin_wait): Rename to...
15617 (darwin_nat_target::wait_1): ... this. Use range-based for loop
15618 instead of iterate_over_inferiors.
15619 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
15620 (darwin_stop_inferior): Rename to...
15621 (darwin_nat_target::stop_inferior): ... this.
15622 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
15623 (darwin_init_thread_list): Rename to...
15624 (darwin_nat_target::init_thread_list): ... this.
15625 (darwin_ptrace_him): Rename to...
15626 (darwin_nat_target::ptrace_him): ... this.
15627 (darwin_nat_target::create_inferior): Pass lambda function to
15628 fork_inferior.
15629 (darwin_nat_target::detach): Call stop_inferior instead of
15630 darwin_stop_inferior.
15631 * fork-inferior.h (fork_inferior): Change init_trace_fun
15632 parameter to gdb::function_view.
15633 * fork-inferior.c (fork_inferior): Likewise.
15634
c162ed3e
HD
156352020-01-23 Hannes Domani <ssbssa@yahoo.de>
15636
15637 * i386-cygwin-tdep.c (core_process_module_section): Update.
15638 * windows-nat.c (struct lm_info_windows): Add text_offset.
15639 (windows_xfer_shared_libraries): Update.
15640 * windows-tdep.c (windows_xfer_shared_library):
15641 Add text_offset_cached argument.
15642 * windows-tdep.h (windows_xfer_shared_library): Update.
15643
a1237872
SM
156442020-01-21 Simon Marchi <simon.marchi@efficios.com>
15645
15646 * gdbarch.sh: Add declaration for _initialize_gdbarch.
15647
b3ee6dd9
SM
156482020-01-21 Simon Marchi <simon.marchi@efficios.com>
15649
15650 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
15651 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
15652 replace with range-based for.
15653 (gdbsim_interrupt_inferior): Remove.
15654 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
15655 with a range-based for. Inline code from
15656 gdbsim_interrupt_inferior.
15657
f9fac3c8
SM
156582020-01-21 Simon Marchi <simon.marchi@efficios.com>
15659
15660 * infrun.c (proceed): Fix indentation.
15661
f6474de9
TT
156622020-01-21 Tom Tromey <tromey@adacore.com>
15663
15664 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
15665 * python/python.c (python_extension_ops): Update.
15666 (gdbpy_colorize): New function.
15667 * python/lib/gdb/__init__.py (colorize): New function.
15668 * extension.h (ext_lang_colorize): Declare.
15669 * extension.c (ext_lang_colorize): New function.
15670 * extension-priv.h (struct extension_language_ops) <colorize>: New
15671 member.
15672 * cli/cli-style.c (_initialize_cli_style): Update help text.
15673
f0c702d4
LM
156742020-01-21 Luis Machado <luis.machado@linaro.org>
15675
15676 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
15677 <cond>: Change type to bool.
15678 (aarch64_displaced_step_b_cond): Update cond to use bool type.
15679 (aarch64_displaced_step_cb): Likewise.
15680 (aarch64_displaced_step_tb): Likewise.
15681
1ab139e5
LM
156822020-01-21 Luis Machado <luis.machado@linaro.org>
15683
15684 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
15685 output.
15686
0c271889
LM
156872020-01-21 Luis Machado <luis.machado@linaro.org>
15688
15689 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
15690 <pc_adjust>: Adjust the documentation.
15691 (aarch64_displaced_step_fixup): Check if PC really moved before
15692 adjusting it.
15693
4d89c1c7
TT
156942020-01-19 Tom Tromey <tom@tromey.com>
15695
15696 * disasm.c (~gdb_disassembler): New destructor.
15697 (gdb_buffered_insn_length): Call disassemble_free_target.
15698 * disasm.h (class gdb_disassembler): Declare destructor. Use
15699 DISABLE_COPY_AND_ASSIGN.
15700
c0ab21c2
TT
157012020-01-19 Tom Tromey <tom@tromey.com>
15702
15703 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
15704 (die_reader_func_ftype): Remove.
15705 (cutu_reader): New class.
15706 (dw2_get_file_names_reader): Remove "data" parameter.
15707 (dw2_get_file_names): Use cutu_reader.
15708 (create_debug_type_hash_table): Update.
15709 (read_cutu_die_from_dwo): Update comment.
15710 (lookup_dwo_unit): Add dwo_name parameter.
15711 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
15712 die_reader_func_ftype and data parameters.
15713 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
15714 Remove die_reader_func_ftype and data parameters.
15715 (~cutu_reader): New; from init_cutu_and_read_dies.
15716 (cutu_reader::cutu_reader): Rename from
15717 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
15718 and data parameters.
15719 (init_cutu_and_read_dies_simple): Remove.
15720 (struct process_psymtab_comp_unit_data): Remove.
15721 (process_psymtab_comp_unit_reader): Remove data parameter; add
15722 want_partial_unit and pretend_language parameters.
15723 (process_psymtab_comp_unit): Use cutu_reader.
15724 (build_type_psymtabs_reader): Remove data parameter.
15725 (build_type_psymtabs_1): Use cutu_reader.
15726 (process_skeletonless_type_unit): Likewise.
15727 (load_partial_comp_unit_reader): Remove.
15728 (load_partial_comp_unit): Use cutu_reader.
15729 (load_full_comp_unit_reader): Remove.
15730 (load_full_comp_unit): Use cutu_reader.
15731 (struct create_dwo_cu_data): Remove.
15732 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
15733 dwo_unit parameters.
15734 (create_cus_hash_table): Use cutu_reader.
15735 (struct dwarf2_read_addr_index_data): Remove.
15736 (dwarf2_read_addr_index_reader): Remove.
15737 (dwarf2_read_addr_index): Use cutu_reader.
15738 (read_signatured_type_reader): Remove.
15739 (read_signatured_type): Use cutu_reader.
15740
45bbae5c
TT
157412020-01-19 Tom Tromey <tom@tromey.com>
15742
15743 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
15744 * tui/tui-wingeneral.h (class tui_suppress_output): New.
15745 (tui_wrefresh): Declare.
15746 * tui/tui-wingeneral.c (suppress_output): New global.
15747 (tui_suppress_output, ~tui_suppress_output): New constructor and
15748 destructor.
15749 (tui_wrefresh): New function.
15750 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
15751 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
15752 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
15753 method.
15754 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
15755 tui_wrefresh.
15756 (tui_data_window::no_refresh): New method.
15757 (tui_data_item_window::refresh_window): Call tui_wrefresh.
15758 (tui_reg_command): Use tui_suppress_output
15759 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
15760 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
15761 method.
15762 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
15763
4f13c1c0
TT
157642020-01-19 Tom Tromey <tom@tromey.com>
15765
15766 * tui/tui-winsource.c (tui_update_source_windows_with_line):
15767 Handle case where symtab is null.
15768
fa47e446
SM
157692020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
15770
15771 * linux-fork.c (one_fork_p): Simplify.
15772
26f42329
SM
157732020-01-17 Simon Marchi <simon.marchi@efficios.com>
15774
15775 * top.c (struct qt_args): Remove.
15776 (kill_or_detach): Change return type to void, replace `void *`
15777 parameter with a proper one.
15778 (print_inferior_quit_action): Likewise.
15779 (quit_confirm): Use range-based for loop to iterate over inferiors.
15780 (quit_force): Likewise.
15781
a9ac81b1
SM
157822020-01-17 Simon Marchi <simon.marchi@efficios.com>
15783
15784 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
15785 `void *` parameter with proper parameters.
15786 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
15787 (print_one_inferior): Change return type to void, replace `void *`
15788 parameter with proper parameters.
15789 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
15790 inferiors.
15791 (get_other_inferior): Remove.
15792 (mi_cmd_remove_inferior): Use range-based loop to iterate over
15793 inferiors.
15794
788eca49
SM
157952020-01-17 Simon Marchi <simon.marchi@efficios.com>
15796
15797 * mi/mi-interp.c (report_initial_inferior): Remove.
15798 (mi_interp::init): Use range-based for to iterate over inferiors.
15799
d9bc85b6
SM
158002020-01-17 Simon Marchi <simon.marchi@efficios.com>
15801
15802 * python/py-inferior.c (build_inferior_list): Remove.
15803 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
15804
40c94099
CB
158052020-01-16 Christian Biesinger <cbiesinger@google.com>
15806
15807 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
15808 (btrace_stitch_trace): Likewise.
15809 * charset.c (intermediate_encoding): Likewise (vaild).
15810 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
15811 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
15812 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
15813
e0cdfe3c
HD
158142020-01-16 Hannes Domani <ssbssa@yahoo.de>
15815
15816 * windows-tdep.c (windows_get_tlb_type):
15817 Add rtl_user_process_parameters type.
15818
790f1718 158192020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 15820 Norbert Lange <nolange79@gmail.com>
790f1718
PA
15821
15822 PR build/24805
15823 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
15824 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
15825 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
15826 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
15827 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
15828 (ps_plog): Redeclare exported functions with default visibility.
15829
3112ed97
NA
158302020-01-16 Nitika Achra <Nitika.Achra@amd.com>
15831
15832 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
15833 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
15834
8dc3273e
SM
158352020-01-15 Simon Marchi <simon.marchi@efficios.com>
15836
15837 * infcmd.c (post_create_inferior): Use get_thread_regcache
15838 instead of get_current_regcache.
15839
ff47f4f0
TT
158402020-01-14 Tom Tromey <tom@tromey.com>
15841
15842 PR symtab/12535:
15843 * python/python.c (gdbpy_decode_line): Treat empty string the same
15844 as no argument.
15845
975f45b7
TT
158462020-01-14 Tom Tromey <tom@tromey.com>
15847
15848 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
15849
25e57356
TT
158502020-01-14 Tom Tromey <tom@tromey.com>
15851
15852 * nat/linux-btrace.c: Don't include <config.h>.
15853 * nat/linux-ptrace.c: Don't include <config.h>.
15854 * nat/x86-linux-dregs.c: Don't include <config.h>.
15855
05ea2a05
TT
158562020-01-14 Tom Tromey <tom@tromey.com>
15857
15858 * configure: Rebuild.
15859 * configure.ac: Move many checks to ../gdbsupport/common.m4.
15860
01027315
TT
158612020-01-14 Tom Tromey <tom@tromey.com>
15862
15863 * nat/x86-linux-dregs.c: Include configh.h.
15864 * nat/linux-ptrace.c: Include configh.h.
15865 * nat/linux-btrace.c: Include configh.h.
15866 * defs.h: Include config.h, bfd.h.
15867 * configure.ac: Don't source common.host.
15868 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
15869 * configure: Rebuild.
15870 * acinclude.m4: Update path.
15871 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
15872 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
15873 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
15874 (CLIBS): Add LIBSUPPORT.
15875 (CDEPS): Likewise.
15876 (COMMON_SFILES): Remove gdbsupport files.
15877 (HFILES_NO_SRCDIR): Likewise.
15878 (stamp-version): Update path to create-version.sh.
15879 (ALLDEPFILES): Remove gdbsupport files.
15880
b2ceabe8
TT
158812020-01-14 Tom Tromey <tom@tromey.com>
15882
15883 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
15884 USE_WIN32API when needed.
15885 * configure.ac (USE_WIN32API): Don't define.
15886 (WIN32LIBS): Use WIN32APILIBS.
15887 * configure: Rebuild.
15888
25c51f71
TT
158892020-01-14 Tom Tromey <tom@tromey.com>
15890
15891 * configure: Rebuild.
15892 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
15893
717c684d
BE
158942020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
15895
15896 * skip.c (skip_function_command): Make skip w/o arguments use the
15897 name of the inlined function if pc is inside any inlined function.
15898
7da6a5b9
LM
158992020-01-14 Luis Machado <luis.machado@linaro.org>
15900
15901 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
15902 * infrun.c (resume_1): Likewise.
15903 (handle_inferior_event): Remove stale comment.
15904 * linux-nat.c (linux_nat_target::resume): Update comments.
15905 (save_stop_reason): Likewise.
15906 (linux_nat_filter_event): Likewise.
15907 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
15908
44e4c775
AB
159092020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15910
15911 * elfread.c (record_minimal_symbol): Set section index to 0 for
15912 non-allocatable sections.
15913
18a8505e
AT
15914
159152020-01-13 Ali Tamur <tamur@google.com>
15916
15917 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
15918 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
15919 to gdb::optional. Update comments.
15920 (dwo_file): Update comments.
15921 (read_attribute): Update API to take an additional out parameter,
15922 need_reprocess. This is used to mark attributes that need other
15923 attributes (e.g. str_offsets_base) for correct computation which may not
15924 have been read yet.
15925 (read_attribute_reprocess): New function declaration.
15926 (read_addr_index): Likewise.
15927 (read_dwo_str_index): Likewise.
15928 (read_stub_str_index): Likewise.
15929 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
15930 (lookup_addr_base): New function definition.
15931 (lookup_ranges_base): Likewise.
15932 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
15933 lookup_ranges_base.
15934 (init_cutu_and_read_dies): Update comments.
15935 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
15936 unit. This is used to inherit parent's str_offsets_base and addr_base.
15937 Update comments.
15938 (init_cutu_and_read_dies_simple): Reflect API changes.
15939 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
15940 (create_cus_hash_table): Change API to take parent compile unit.
15941 Reflect API changes.
15942 (open_and_init_dwo_file): Reflect API changes.
15943 (dwarf2_get_pc_bounds): Update comments.
15944 (dwarf2_record_block_ranges): Likewise.
15945 (read_full_die_1): Change implementation to reprocess attributes that
15946 need str_offsets_base and addr_base.
15947 (partial_die_info::read): Likewise.
15948 (read_attribute_reprocess): New function definition.
15949 (read_attribute_value): Change API to take an additional out parameter,
15950 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
15951 when a non-dwo compile unit has index based attributes.
15952 (read_attribute): Reflect API changes.
15953 (read_addr_index_1): Reflect API changes. Update comments.
15954 (dwarf2_read_addr_index_data): Reflect API changes.
15955 (dwarf2_read_addr_index): Likewise.
15956 (read_str_index): Change API and implementation. This becomes a helper
15957 to be used by the new string index related methods. Update error
15958 message and comments.
15959 (read_dwo_str_index): New function definition.
15960 (read_stub_str_index): Likewise.
15961 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
15962 * symfile.h (dwarf2_debug_sections): Likewise.
15963 * xcoffread.c (dwarf2_debug_sections): Likewise.
15964
0cac9354
SM
159652020-01-13 Simon Marchi <simon.marchi@efficios.com>
15966
15967 * gdbcore.h (struct core_fns) <core_read_registers>: Change
15968 core_reg_sect type to gdb_byte *.
15969 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
15970 * cris-tdep.c (fetch_core_registers): Likewise.
15971 * corelow.c (core_target::get_core_register_section): Change
15972 type of `contents` to gdb::byte_vector.
15973
9a6d629c
AB
159742020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15975
15976 * tui/tui-wingeneral.c (box_win): Position the title in the center
15977 of the border.
15978
d8b2f9e3
SM
159792020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
15980
15981 * corelow.c (core_target::get_core_register_section): Use
15982 std::vector instead of alloca.
15983
bb564c58
SM
159842020-01-13 Simon Marchi <simon.marchi@efficios.com>
15985
15986 * warning.m4: Add -Wmissing-declarations to build_warnings.
15987 * configure: Re-generate.
15988
6b366111
SM
159892020-01-13 Simon Marchi <simon.marchi@efficios.com>
15990
15991 * python/python.c (init__gdb_module): Add declaration.
15992
6c265988
SM
159932020-01-13 Simon Marchi <simon.marchi@efficios.com>
15994
15995 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
15996 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
15997 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
15998 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
15999 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
16000 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
16001 * ada-exp.y (_initialize_ada_exp): Add declaration.
16002 * ada-lang.c (_initialize_ada_language): Add declaration.
16003 * ada-tasks.c (_initialize_tasks): Add declaration.
16004 * agent.c (_initialize_agent): Add declaration.
16005 * aix-thread.c (_initialize_aix_thread): Add declaration.
16006 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
16007 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
16008 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
16009 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
16010 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
16011 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
16012 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
16013 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
16014 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
16015 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
16016 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
16017 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
16018 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
16019 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
16020 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
16021 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
16022 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
16023 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
16024 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
16025 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
16026 * annotate.c (_initialize_annotate): Add declaration.
16027 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
16028 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
16029 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
16030 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
16031 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
16032 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
16033 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
16034 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
16035 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
16036 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
16037 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
16038 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
16039 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
16040 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
16041 * auto-load.c (_initialize_auto_load): Add declaration.
16042 * auxv.c (_initialize_auxv): Add declaration.
16043 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
16044 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
16045 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
16046 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
16047 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
16048 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
16049 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
16050 * breakpoint.c (_initialize_breakpoint): Add declaration.
16051 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
16052 * btrace.c (_initialize_btrace): Add declaration.
16053 * charset.c (_initialize_charset): Add declaration.
16054 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
16055 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
16056 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
16057 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
16058 * cli/cli-script.c (_initialize_cli_script): Add declaration.
16059 * cli/cli-style.c (_initialize_cli_style): Add declaration.
16060 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
16061 * coffread.c (_initialize_coffread): Add declaration.
16062 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
16063 * compile/compile.c (_initialize_compile): Add declaration.
16064 * complaints.c (_initialize_complaints): Add declaration.
16065 * completer.c (_initialize_completer): Add declaration.
16066 * copying.c (_initialize_copying): Add declaration.
16067 * corefile.c (_initialize_core): Add declaration.
16068 * corelow.c (_initialize_corelow): Add declaration.
16069 * cp-abi.c (_initialize_cp_abi): Add declaration.
16070 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
16071 * cp-support.c (_initialize_cp_support): Add declaration.
16072 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
16073 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
16074 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
16075 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
16076 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
16077 * ctfread.c (_initialize_ctfread): Add declaration.
16078 * d-lang.c (_initialize_d_language): Add declaration.
16079 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
16080 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
16081 * dbxread.c (_initialize_dbxread): Add declaration.
16082 * dcache.c (_initialize_dcache): Add declaration.
16083 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
16084 * disasm.c (_initialize_disasm): Add declaration.
16085 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
16086 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
16087 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
16088 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
16089 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
16090 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
16091 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
16092 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
16093 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
16094 * elfread.c (_initialize_elfread): Add declaration.
16095 * exec.c (_initialize_exec): Add declaration.
16096 * extension.c (_initialize_extension): Add declaration.
16097 * f-lang.c (_initialize_f_language): Add declaration.
16098 * f-valprint.c (_initialize_f_valprint): Add declaration.
16099 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
16100 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
16101 * filesystem.c (_initialize_filesystem): Add declaration.
16102 * findcmd.c (_initialize_mem_search): Add declaration.
16103 * findvar.c (_initialize_findvar): Add declaration.
16104 * fork-child.c (_initialize_fork_child): Add declaration.
16105 * frame-base.c (_initialize_frame_base): Add declaration.
16106 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
16107 * frame.c (_initialize_frame): Add declaration.
16108 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
16109 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
16110 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
16111 * gcore.c (_initialize_gcore): Add declaration.
16112 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
16113 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
16114 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
16115 * gdbarch.c (_initialize_gdbarch): Add declaration.
16116 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
16117 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
16118 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
16119 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
16120 * go-lang.c (_initialize_go_language): Add declaration.
16121 * go32-nat.c (_initialize_go32_nat): Add declaration.
16122 * guile/guile.c (_initialize_guile): Add declaration.
16123 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
16124 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
16125 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
16126 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
16127 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
16128 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
16129 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
16130 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
16131 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
16132 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
16133 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
16134 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
16135 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
16136 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
16137 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
16138 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
16139 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
16140 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
16141 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
16142 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
16143 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
16144 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
16145 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
16146 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
16147 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
16148 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
16149 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
16150 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
16151 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
16152 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
16153 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
16154 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
16155 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
16156 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
16157 * infcall.c (_initialize_infcall): Add declaration.
16158 * infcmd.c (_initialize_infcmd): Add declaration.
16159 * inflow.c (_initialize_inflow): Add declaration.
16160 * infrun.c (_initialize_infrun): Add declaration.
16161 * interps.c (_initialize_interpreter): Add declaration.
16162 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
16163 * jit.c (_initialize_jit): Add declaration.
16164 * language.c (_initialize_language): Add declaration.
16165 * linux-fork.c (_initialize_linux_fork): Add declaration.
16166 * linux-nat.c (_initialize_linux_nat): Add declaration.
16167 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
16168 * linux-thread-db.c (_initialize_thread_db): Add declaration.
16169 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
16170 * m2-lang.c (_initialize_m2_language): Add declaration.
16171 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
16172 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
16173 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
16174 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
16175 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
16176 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
16177 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
16178 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
16179 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
16180 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
16181 * machoread.c (_initialize_machoread): Add declaration.
16182 * macrocmd.c (_initialize_macrocmd): Add declaration.
16183 * macroscope.c (_initialize_macroscope): Add declaration.
16184 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
16185 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
16186 * maint.c (_initialize_maint_cmds): Add declaration.
16187 * mdebugread.c (_initialize_mdebugread): Add declaration.
16188 * memattr.c (_initialize_mem): Add declaration.
16189 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
16190 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
16191 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
16192 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
16193 * mi/mi-main.c (_initialize_mi_main): Add declaration.
16194 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
16195 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
16196 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
16197 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
16198 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
16199 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
16200 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
16201 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
16202 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
16203 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
16204 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
16205 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
16206 * mipsread.c (_initialize_mipsread): Add declaration.
16207 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
16208 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
16209 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
16210 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
16211 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
16212 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
16213 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
16214 * nto-procfs.c (_initialize_procfs): Add declaration.
16215 * objc-lang.c (_initialize_objc_language): Add declaration.
16216 * observable.c (_initialize_observer): Add declaration.
16217 * opencl-lang.c (_initialize_opencl_language): Add declaration.
16218 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
16219 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
16220 * osabi.c (_initialize_gdb_osabi): Add declaration.
16221 * osdata.c (_initialize_osdata): Add declaration.
16222 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
16223 * parse.c (_initialize_parse): Add declaration.
16224 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
16225 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
16226 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
16227 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
16228 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
16229 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
16230 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
16231 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
16232 * printcmd.c (_initialize_printcmd): Add declaration.
16233 * probe.c (_initialize_probe): Add declaration.
16234 * proc-api.c (_initialize_proc_api): Add declaration.
16235 * proc-events.c (_initialize_proc_events): Add declaration.
16236 * proc-service.c (_initialize_proc_service): Add declaration.
16237 * procfs.c (_initialize_procfs): Add declaration.
16238 * producer.c (_initialize_producer): Add declaration.
16239 * psymtab.c (_initialize_psymtab): Add declaration.
16240 * python/python.c (_initialize_python): Add declaration.
16241 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
16242 * record-btrace.c (_initialize_record_btrace): Add declaration.
16243 * record-full.c (_initialize_record_full): Add declaration.
16244 * record.c (_initialize_record): Add declaration.
16245 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
16246 * regcache.c (_initialize_regcache): Add declaration.
16247 * reggroups.c (_initialize_reggroup): Add declaration.
16248 * remote-notif.c (_initialize_notif): Add declaration.
16249 * remote-sim.c (_initialize_remote_sim): Add declaration.
16250 * remote.c (_initialize_remote): Add declaration.
16251 * reverse.c (_initialize_reverse): Add declaration.
16252 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
16253 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
16254 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
16255 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
16256 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
16257 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
16258 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
16259 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
16260 Add declaration.
16261 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
16262 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
16263 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
16264 * rust-exp.y (_initialize_rust_exp): Add declaration.
16265 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
16266 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
16267 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
16268 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
16269 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
16270 * score-tdep.c (_initialize_score_tdep): Add declaration.
16271 * ser-go32.c (_initialize_ser_dos): Add declaration.
16272 * ser-mingw.c (_initialize_ser_windows): Add declaration.
16273 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
16274 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
16275 * ser-uds.c (_initialize_ser_socket): Add declaration.
16276 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
16277 * serial.c (_initialize_serial): Add declaration.
16278 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
16279 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
16280 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
16281 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
16282 * skip.c (_initialize_step_skip): Add declaration.
16283 * sol-thread.c (_initialize_sol_thread): Add declaration.
16284 * solib-aix.c (_initialize_solib_aix): Add declaration.
16285 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
16286 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
16287 * solib-frv.c (_initialize_frv_solib): Add declaration.
16288 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
16289 * solib-target.c (_initialize_solib_target): Add declaration.
16290 * solib.c (_initialize_solib): Add declaration.
16291 * source-cache.c (_initialize_source_cache): Add declaration.
16292 * source.c (_initialize_source): Add declaration.
16293 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
16294 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
16295 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
16296 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
16297 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
16298 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
16299 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
16300 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
16301 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
16302 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
16303 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
16304 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
16305 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
16306 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
16307 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
16308 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
16309 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
16310 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
16311 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
16312 * stabsread.c (_initialize_stabsread): Add declaration.
16313 * stack.c (_initialize_stack): Add declaration.
16314 * stap-probe.c (_initialize_stap_probe): Add declaration.
16315 * std-regs.c (_initialize_frame_reg): Add declaration.
16316 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
16317 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
16318 * symfile.c (_initialize_symfile): Add declaration.
16319 * symmisc.c (_initialize_symmisc): Add declaration.
16320 * symtab.c (_initialize_symtab): Add declaration.
16321 * target.c (_initialize_target): Add declaration.
16322 * target-connection.c (_initialize_target_connection): Add
16323 declaration.
16324 * target-dcache.c (_initialize_target_dcache): Add declaration.
16325 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
16326 * thread.c (_initialize_thread): Add declaration.
16327 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
16328 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
16329 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
16330 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
16331 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
16332 * tracectf.c (_initialize_ctf): Add declaration.
16333 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
16334 * tracefile.c (_initialize_tracefile): Add declaration.
16335 * tracepoint.c (_initialize_tracepoint): Add declaration.
16336 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
16337 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
16338 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
16339 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
16340 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
16341 * tui/tui-win.c (_initialize_tui_win): Add declaration.
16342 * tui/tui.c (_initialize_tui): Add declaration.
16343 * typeprint.c (_initialize_typeprint): Add declaration.
16344 * ui-style.c (_initialize_ui_style): Add declaration.
16345 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
16346 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
16347 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
16348 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
16349 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
16350 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
16351 * unittests/filtered_iterator-selftests.c
16352 (_initialize_filtered_iterator_selftests): Add declaration.
16353 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
16354 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
16355 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
16356 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
16357 * unittests/main-thread-selftests.c
16358 (_initialize_main_thread_selftests): Add declaration.
16359 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
16360 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
16361 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
16362 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
16363 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
16364 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
16365 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
16366 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
16367 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
16368 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
16369 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
16370 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
16371 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
16372 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
16373 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
16374 declaration.
16375 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
16376 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
16377 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
16378 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
16379 * user-regs.c (_initialize_user_regs): Add declaration.
16380 * utils.c (_initialize_utils): Add declaration.
16381 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
16382 * valops.c (_initialize_valops): Add declaration.
16383 * valprint.c (_initialize_valprint): Add declaration.
16384 * value.c (_initialize_values): Add declaration.
16385 * varobj.c (_initialize_varobj): Add declaration.
16386 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
16387 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
16388 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
16389 * windows-nat.c (_initialize_windows_nat): Add declaration.
16390 (_initialize_check_for_gdb_ini): Add declaration.
16391 (_initialize_loadable): Add declaration.
16392 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
16393 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
16394 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
16395 * xcoffread.c (_initialize_xcoffread): Add declaration.
16396 * xml-support.c (_initialize_xml_support): Add declaration.
16397 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
16398 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
16399 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
16400 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
16401
e2de1eec
SM
164022020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16403
16404 * regformats/regdat.sh: Generate declaration for init function.
16405
e0037b4c
SM
164062020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16407
16408 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
16409 up.
16410 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
16411 close_one_inferior>: New methods.
16412 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
16413 pass down target to find_inferior_pid.
16414 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
16415 Pass down target to find_inferior_ptid.
16416 (gdbsim_target::create_inferior): Pass down target to
16417 add_thread_silent.
16418 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
16419 target down to find_inferior_ptid and switch_to_thread.
16420 (gdbsim_target::close): Update to call close_one_inferior.
16421 (struct resume_data): Remove.
16422 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
16423 directly, rather than through a void pointer.
16424 (gdbsim_target::resume): Update to call resume_one_inferior.
16425
58920b5b
SM
164262020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
16427
16428 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
16429
4ec89149
PA
164302020-01-12 Pedro Alves <palves@redhat.com>
16431
16432 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
16433 directly for the current inferior instead of
16434 discard_all_inferiors.
16435 (discard_all_inferiors): Delete.
16436
7c392d1d
TT
164372020-01-11 Tom Tromey <tom@tromey.com>
16438
16439 * tui/tui-wingeneral.c (box_win): Check cli_styling.
16440 * tui/tui-winsource.c (tui_source_window_base::refill): Use
16441 deprecated_safe_get_selected_frame.
16442
d9ebdab7
TBA
164432020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16444
16445 * inferior.c (print_inferior): Switch inferior before printing it.
16446
f3c469b9
PA
164472020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
16448 Pedro Alves <palves@redhat.com>
16449
16450 * progspace-and-thread.c (switch_to_program_space_and_thread):
16451 Assert there's an inferior for PSPACE. Use
16452 switch_to_inferior_no_thread to switch the inferior too.
16453 * progspace.c (program_space::~program_space): Call
16454 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
16455 (program_space::free_all_objfiles): Don't call clear_symtab_users
16456 here.
16457 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
16458
65c574f6
PA
164592020-01-10 Pedro Alves <palves@redhat.com>
16460
16461 * NEWS: Mention multi-target debugging, "info connections", and
16462 "add-inferior -no-connection".
16463
2f4fcf00
PA
164642020-01-10 Pedro Alves <palves@redhat.com>
16465
16466 * infrun.c: Include "target-connection.h".
16467 (check_multi_target_resumption): New.
16468 (proceed): Call it.
16469 * target-connection.c (make_target_connection_string): Make
16470 extern.
16471 * target-connection.h (make_target_connection_string): Declare.
16472
121b3efd
PA
164732020-01-10 Pedro Alves <palves@redhat.com>
16474
16475 * Makefile.in (COMMON_SFILES): Add target-connection.c.
16476 * inferior.c (uiout_field_connection): New function.
16477 (print_inferior): Add new "connection-id" column.
16478 (add_inferior_command): Show connection number/string of added
16479 inferior.
16480 * process-stratum-target.h
16481 (process_stratum_target::connection_string): New virtual method.
16482 (process_stratum_target::connection_number): New field.
16483 * remote.c (remote_target::connection_string): New override.
16484 * target-connection.c: New file.
16485 * target-connection.h: New file.
16486 * target.c (decref_target): Remove process_stratum targets from
16487 the connection list.
16488 (target_stack::push): Add process_stratum targets to the
16489 connection list.
16490
4f837581
PA
164912020-01-10 Pedro Alves <palves@redhat.com>
16492
16493 Revert:
16494 2016-04-12 Pedro Alves <palves@redhat.com>
16495 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
16496 Remove references to name.
16497 * serial.h (struct serial) <name>: Delete.
16498
f4ec508e
PA
164992020-01-10 Pedro Alves <palves@redhat.com>
16500
16501 * gdbarch-selftests.c (register_to_value_test): Remove "target
16502 already pushed" check.
16503
5b6d1e4f
PA
165042020-01-10 Pedro Alves <palves@redhat.com>
16505 John Baldwin <jhb@FreeBSD.org>
16506
16507 * aarch64-linux-nat.c
16508 (aarch64_linux_nat_target::thread_architecture): Adjust.
16509 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
16510 (task_command_1): Likewise.
16511 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
16512 (aix_thread_target::wait, aix_thread_target::fetch_registers)
16513 (aix_thread_target::store_registers)
16514 (aix_thread_target::thread_alive): Adjust.
16515 * amd64-fbsd-tdep.c: Include "inferior.h".
16516 (amd64fbsd_get_thread_local_address): Pass down target.
16517 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
16518 thread's gdbarch instead of target_gdbarch.
16519 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
16520 get_last_target_status.
16521 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
16522 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
16523 inferiors.
16524 (update_inserted_breakpoint_locations): Skip if inferiors with no
16525 execution.
16526 (update_global_location_list): When handling moribund locations,
16527 find representative inferior for location's pspace, and use thread
16528 count of its process_stratum target.
16529 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
16530 * bsd-uthread.c (bsd_uthread_target::wait): Use
16531 as_process_stratum_target and adjust thread_change_ptid and
16532 add_thread calls.
16533 (bsd_uthread_target::update_thread_list): Use
16534 as_process_stratum_target and adjust find_thread_ptid,
16535 thread_change_ptid and add_thread calls.
16536 * btrace.c (maint_btrace_packet_history_cmd): Adjust
16537 find_thread_ptid call.
16538 * corelow.c (add_to_thread_list): Adjust add_thread call.
16539 (core_target_open): Adjust add_thread_silent and thread_count
16540 calls.
16541 (core_target::pid_to_str): Adjust find_inferior_ptid call.
16542 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
16543 * event-top.c (async_disconnect): Pop targets from all inferiors.
16544 * exec.c (add_target_sections): Push exec target on all inferiors
16545 sharing the program space.
16546 (remove_target_sections): Remove the exec target from all
16547 inferiors sharing the program space.
16548 (exec_on_vfork): New.
16549 * exec.h (exec_on_vfork): Declare.
16550 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
16551 Pass it down.
16552 (fbsd_nat_target::update_thread_list): Adjust.
16553 (fbsd_nat_target::resume): Adjust.
16554 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
16555 down.
16556 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
16557 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
16558 get_thread_arch_regcache call.
16559 * fork-child.c (gdb_startup_inferior): Pass target down to
16560 startup_inferior and set_executing.
16561 * gdbthread.h (struct process_stratum_target): Forward declare.
16562 (add_thread, add_thread_silent, add_thread_with_info)
16563 (in_thread_list): Add process_stratum_target parameter.
16564 (find_thread_ptid(inferior*, ptid_t)): New overload.
16565 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
16566 parameter.
16567 (all_threads()): Delete overload.
16568 (all_threads, all_non_exited_threads): Add process_stratum_target
16569 parameter.
16570 (all_threads_safe): Use brace initialization.
16571 (thread_count): Add process_stratum_target parameter.
16572 (set_resumed, set_running, set_stop_requested, set_executing)
16573 (threads_are_executing, finish_thread_state): Add
16574 process_stratum_target parameter.
16575 (switch_to_thread): Use is_current_thread.
16576 * i386-fbsd-tdep.c: Include "inferior.h".
16577 (i386fbsd_get_thread_local_address): Pass down target.
16578 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
16579 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
16580 have_inferiors check.
16581 * inf-ptrace.c (inf_ptrace_target::create_inferior)
16582 (inf_ptrace_target::attach): Adjust.
16583 * infcall.c (run_inferior_call): Adjust.
16584 * infcmd.c (run_command_1): Pass target to
16585 scoped_finish_thread_state.
16586 (proceed_thread_callback): Skip inferiors with no execution.
16587 (continue_command): Rename 'all_threads' local to avoid hiding
16588 'all_threads' function. Adjust get_last_target_status call.
16589 (prepare_one_step): Adjust set_running call.
16590 (signal_command): Use user_visible_resume_target. Compare thread
16591 pointers instead of inferior_ptid.
16592 (info_program_command): Adjust to pass down target.
16593 (attach_command): Mark target's 'thread_executing' flag.
16594 (stop_current_target_threads_ns): New, factored out from ...
16595 (interrupt_target_1): ... this. Switch inferior before making
16596 target calls.
16597 * inferior-iter.h
16598 (struct all_inferiors_iterator, struct all_inferiors_range)
16599 (struct all_inferiors_safe_range)
16600 (struct all_non_exited_inferiors_range): Filter on
16601 process_stratum_target too. Remove explicit.
16602 * inferior.c (inferior::inferior): Push dummy target on target
16603 stack.
16604 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
16605 Add process_stratum_target parameter, and pass it down.
16606 (have_live_inferiors): Adjust.
16607 (switch_to_inferior_and_push_target): New.
16608 (add_inferior_command, clone_inferior_command): Handle
16609 "-no-connection" parameter. Use
16610 switch_to_inferior_and_push_target.
16611 (_initialize_inferior): Mention "-no-connection" option in
16612 the help of "add-inferior" and "clone-inferior" commands.
16613 * inferior.h: Include "process-stratum-target.h".
16614 (interrupt_target_1): Use bool.
16615 (struct inferior) <push_target, unpush_target, target_is_pushed,
16616 find_target_beneath, top_target, process_target, target_at,
16617 m_stack>: New.
16618 (discard_all_inferiors): Delete.
16619 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
16620 (all_inferiors, all_non_exited_inferiors): Add
16621 process_stratum_target parameter.
16622 * infrun.c: Include "gdb_select.h" and <unordered_map>.
16623 (target_last_proc_target): New global.
16624 (follow_fork_inferior): Push target on new inferior. Pass target
16625 to add_thread_silent. Call exec_on_vfork. Handle target's
16626 reference count.
16627 (follow_fork): Adjust get_last_target_status call. Also consider
16628 target.
16629 (follow_exec): Push target on new inferior.
16630 (struct execution_control_state) <target>: New field.
16631 (user_visible_resume_target): New.
16632 (do_target_resume): Call target_async.
16633 (resume_1): Set target's threads_executing flag. Consider resume
16634 target.
16635 (commit_resume_all_targets): New.
16636 (proceed): Also consider resume target. Skip threads of inferiors
16637 with no execution. Commit resumtion in all targets.
16638 (start_remote): Pass current inferior to wait_for_inferior.
16639 (infrun_thread_stop_requested): Consider target as well. Pass
16640 thread_info pointer to clear_inline_frame_state instead of ptid.
16641 (infrun_thread_thread_exit): Consider target as well.
16642 (random_pending_event_thread): New inferior parameter. Use it.
16643 (do_target_wait): Rename to ...
16644 (do_target_wait_1): ... this. Add inferior parameter, and pass it
16645 down.
16646 (threads_are_resumed_pending_p, do_target_wait): New.
16647 (prepare_for_detach): Adjust calls.
16648 (wait_for_inferior): New inferior parameter. Handle it. Use
16649 do_target_wait_1 instead of do_target_wait.
16650 (fetch_inferior_event): Adjust. Switch to representative
16651 inferior. Pass target down.
16652 (set_last_target_status): Add process_stratum_target parameter.
16653 Save target in global.
16654 (get_last_target_status): Add process_stratum_target parameter and
16655 handle it.
16656 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
16657 (context_switch): Check inferior_ptid == null_ptid before calling
16658 inferior_thread().
16659 (get_inferior_stop_soon): Pass down target.
16660 (wait_one): Rename to ...
16661 (poll_one_curr_target): ... this.
16662 (struct wait_one_event): New.
16663 (wait_one): New.
16664 (stop_all_threads): Adjust.
16665 (handle_no_resumed, handle_inferior_event): Adjust to consider the
16666 event's target.
16667 (switch_back_to_stepped_thread): Also consider target.
16668 (print_stop_event): Update.
16669 (normal_stop): Update. Also consider the resume target.
16670 * infrun.h (wait_for_inferior): Remove declaration.
16671 (user_visible_resume_target): New declaration.
16672 (get_last_target_status, set_last_target_status): New
16673 process_stratum_target parameter.
16674 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16675 process_stratum_target parameter, and use it.
16676 (clear_inline_frame_state (thread_info*)): New.
16677 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16678 process_stratum_target parameter.
16679 (clear_inline_frame_state (thread_info*)): Declare.
16680 * linux-fork.c (delete_checkpoint_command): Pass target down to
16681 find_thread_ptid.
16682 (checkpoint_command): Adjust.
16683 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
16684 instead of just tweaking inferior_ptid.
16685 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
16686 (exit_lwp): Pass target down to find_thread_ptid.
16687 (attach_proc_task_lwp_callback): Pass target down to
16688 add_thread/set_running/set_executing.
16689 (linux_nat_target::attach): Pass target down to
16690 thread_change_ptid.
16691 (get_detach_signal): Pass target down to find_thread_ptid.
16692 Consider last target status's target.
16693 (linux_resume_one_lwp_throw, resume_lwp)
16694 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
16695 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
16696 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
16697 (linux_nat_target::async_wait_fd): New.
16698 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
16699 target down.
16700 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
16701 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
16702 * linux-thread-db.c (struct thread_db_info::process_target): New
16703 field.
16704 (add_thread_db_info): Save target.
16705 (get_thread_db_info): New process_stratum_target parameter. Also
16706 match target.
16707 (delete_thread_db_info): New process_stratum_target parameter.
16708 Also match target.
16709 (thread_from_lwp): Adjust to pass down target.
16710 (thread_db_notice_clone): Pass down target.
16711 (check_thread_db_callback): Pass down target.
16712 (try_thread_db_load_1): Always push the thread_db target.
16713 (try_thread_db_load, record_thread): Pass target down.
16714 (thread_db_target::detach): Pass target down. Always unpush the
16715 thread_db target.
16716 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
16717 target down. Always unpush the thread_db target.
16718 (find_new_threads_callback, thread_db_find_new_threads_2)
16719 (thread_db_target::update_thread_list): Pass target down.
16720 (thread_db_target::pid_to_str): Pass current inferior down.
16721 (thread_db_target::get_thread_local_address): Pass target down.
16722 (thread_db_target::resume, maintenance_check_libthread_db): Pass
16723 target down.
16724 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
16725 * procfs.c (procfs_target::procfs_init_inferior): Declare.
16726 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
16727 (procfs_init_inferior): Rename to ...
16728 (procfs_target::procfs_init_inferior): ... this and adjust.
16729 (procfs_target::create_inferior, procfs_notice_thread)
16730 (procfs_do_thread_registers): Adjust.
16731 * ppc-fbsd-tdep.c: Include "inferior.h".
16732 (ppcfbsd_get_thread_local_address): Pass down target.
16733 * proc-service.c (ps_xfer_memory): Switch current inferior and
16734 program space as well.
16735 (get_ps_regcache): Pass target down.
16736 * process-stratum-target.c
16737 (process_stratum_target::thread_address_space)
16738 (process_stratum_target::thread_architecture): Pass target down.
16739 * process-stratum-target.h
16740 (process_stratum_target::threads_executing): New field.
16741 (as_process_stratum_target): New.
16742 * ravenscar-thread.c
16743 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
16744 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
16745 down.
16746 * record-btrace.c (record_btrace_target::info_record): Adjust.
16747 (record_btrace_target::record_method)
16748 (record_btrace_target::record_is_replaying)
16749 (record_btrace_target::fetch_registers)
16750 (get_thread_current_frame_id, record_btrace_target::resume)
16751 (record_btrace_target::wait, record_btrace_target::stop): Pass
16752 target down.
16753 * record-full.c (record_full_wait_1): Switch to event thread.
16754 Pass target down.
16755 * regcache.c (regcache::regcache)
16756 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
16757 process_stratum_target parameter and handle it.
16758 (current_thread_target): New global.
16759 (get_thread_regcache): Add process_stratum_target parameter and
16760 handle it. Switch inferior before calling target method.
16761 (get_thread_regcache): Pass target down.
16762 (get_thread_regcache_for_ptid): Pass target down.
16763 (registers_changed_ptid): Add process_stratum_target parameter and
16764 handle it.
16765 (registers_changed_thread, registers_changed): Pass target down.
16766 (test_get_thread_arch_aspace_regcache): New.
16767 (current_regcache_test): Define a couple local test_target_ops
16768 instances and use them for testing.
16769 (readwrite_regcache): Pass process_stratum_target parameter.
16770 (cooked_read_test, cooked_write_test): Pass mock_target down.
16771 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
16772 (get_thread_arch_aspace_regcache): Add process_stratum_target
16773 parameter.
16774 (regcache::target): New method.
16775 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
16776 (regcache::registers_changed_ptid): Add process_stratum_target
16777 parameter.
16778 (regcache::m_target): New field.
16779 (registers_changed_ptid): Add process_stratum_target parameter.
16780 * remote.c (remote_state::supports_vCont_probed): New field.
16781 (remote_target::async_wait_fd): New method.
16782 (remote_unpush_and_throw): Add remote_target parameter.
16783 (get_current_remote_target): Adjust.
16784 (remote_target::remote_add_inferior): Push target.
16785 (remote_target::remote_add_thread)
16786 (remote_target::remote_notice_new_inferior)
16787 (get_remote_thread_info): Pass target down.
16788 (remote_target::update_thread_list): Skip threads of inferiors
16789 bound to other targets. (remote_target::close): Don't discard
16790 inferiors. (remote_target::add_current_inferior_and_thread)
16791 (remote_target::process_initial_stop_replies)
16792 (remote_target::start_remote)
16793 (remote_target::remote_serial_quit_handler): Pass down target.
16794 (remote_target::remote_unpush_target): New remote_target
16795 parameter. Unpush the target from all inferiors.
16796 (remote_target::remote_unpush_and_throw): New remote_target
16797 parameter. Pass it down.
16798 (remote_target::open_1): Check whether the current inferior has
16799 execution instead of checking whether any inferior is live. Pass
16800 target down.
16801 (remote_target::remote_detach_1): Pass down target. Use
16802 remote_unpush_target.
16803 (extended_remote_target::attach): Pass down target.
16804 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
16805 (remote_target::append_resumption): Pass down target.
16806 (remote_target::append_pending_thread_resumptions)
16807 (remote_target::remote_resume_with_hc, remote_target::resume)
16808 (remote_target::commit_resume): Pass down target.
16809 (remote_target::remote_stop_ns): Check supports_vCont_probed.
16810 (remote_target::interrupt_query)
16811 (remote_target::remove_new_fork_children)
16812 (remote_target::check_pending_events_prevent_wildcard_vcont)
16813 (remote_target::remote_parse_stop_reply)
16814 (remote_target::process_stop_reply): Pass down target.
16815 (first_remote_resumed_thread): New remote_target parameter. Pass
16816 it down.
16817 (remote_target::wait_as): Pass down target.
16818 (unpush_and_perror): New remote_target parameter. Pass it down.
16819 (remote_target::readchar, remote_target::remote_serial_write)
16820 (remote_target::getpkt_or_notif_sane_1)
16821 (remote_target::kill_new_fork_children, remote_target::kill): Pass
16822 down target.
16823 (remote_target::mourn_inferior): Pass down target. Use
16824 remote_unpush_target.
16825 (remote_target::core_of_thread)
16826 (remote_target::remote_btrace_maybe_reopen): Pass down target.
16827 (remote_target::pid_to_exec_file)
16828 (remote_target::thread_handle_to_thread_info): Pass down target.
16829 (remote_target::async_wait_fd): New.
16830 * riscv-fbsd-tdep.c: Include "inferior.h".
16831 (riscv_fbsd_get_thread_local_address): Pass down target.
16832 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
16833 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
16834 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
16835 Adjust.
16836 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
16837 * solib-svr4.c (enable_break): Pass down target.
16838 * spu-multiarch.c (parse_spufs_run): Pass down target.
16839 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
16840 * target-delegates.c: Regenerate.
16841 * target.c (g_target_stack): Delete.
16842 (current_top_target): Return the current inferior's top target.
16843 (target_has_execution_1): Refer to the passed-in inferior's top
16844 target.
16845 (target_supports_terminal_ours): Check whether the initial
16846 inferior was already created.
16847 (decref_target): New.
16848 (target_stack::push): Incref/decref the target.
16849 (push_target, push_target, unpush_target): Adjust.
16850 (target_stack::unpush): Defref target.
16851 (target_is_pushed): Return bool. Adjust to refer to the current
16852 inferior's target stack.
16853 (dispose_inferior): Delete, and inline parts ...
16854 (target_preopen): ... here. Only dispose of the current inferior.
16855 (target_detach): Hold strong target reference while detaching.
16856 Pass target down.
16857 (target_thread_name): Add assertion.
16858 (target_resume): Pass down target.
16859 (target_ops::beneath, find_target_at): Adjust to refer to the
16860 current inferior's target stack.
16861 (get_dummy_target): New.
16862 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
16863 has a thread running.
16864 (initialize_targets): Rename to ...
16865 (_initialize_target): ... this.
16866 * target.h: Include "gdbsupport/refcounted-object.h".
16867 (struct target_ops): Inherit refcounted_object.
16868 (target_ops::shortname, target_ops::longname): Make const.
16869 (target_ops::async_wait_fd): New method.
16870 (decref_target): Declare.
16871 (struct target_ops_ref_policy): New.
16872 (target_ops_ref): New typedef.
16873 (get_dummy_target): Declare function.
16874 (target_is_pushed): Return bool.
16875 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
16876 (all_matching_threads_iterator::all_matching_threads_iterator):
16877 Handle filter target.
16878 * thread-iter.h (struct all_matching_threads_iterator, struct
16879 all_matching_threads_range, class all_non_exited_threads_range):
16880 Filter by target too. Remove explicit.
16881 * thread.c (threads_executing): Delete.
16882 (inferior_thread): Pass down current inferior.
16883 (clear_thread_inferior_resources): Pass down thread pointer
16884 instead of ptid_t.
16885 (add_thread_silent, add_thread_with_info, add_thread): Add
16886 process_stratum_target parameter. Use it for thread and inferior
16887 searches.
16888 (is_current_thread): New.
16889 (thread_info::deletable): Use it.
16890 (find_thread_ptid, thread_count, in_thread_list)
16891 (thread_change_ptid, set_resumed, set_running): New
16892 process_stratum_target parameter. Pass it down.
16893 (set_executing): New process_stratum_target parameter. Pass it
16894 down. Adjust reference to 'threads_executing'.
16895 (threads_are_executing): New process_stratum_target parameter.
16896 Adjust reference to 'threads_executing'.
16897 (set_stop_requested, finish_thread_state): New
16898 process_stratum_target parameter. Pass it down.
16899 (switch_to_thread): Also match inferior.
16900 (switch_to_thread): New process_stratum_target parameter. Pass it
16901 down.
16902 (update_threads_executing): Reimplement.
16903 * top.c (quit_force): Pop targets from all inferior.
16904 (gdb_init): Don't call initialize_targets.
16905 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
16906 Declare.
16907 (windows_add_thread, windows_delete_thread): Adjust.
16908 (get_windows_debug_event): Rename to ...
16909 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
16910 * tracefile-tfile.c (tfile_target_open): Pass down target.
16911 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
16912 Forward declare.
16913 (switch_to_thread): Add process_stratum_target parameter.
16914 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
16915 parameter. Use it.
16916 (mi_on_resume): Pass target down.
16917 * nat/fork-inferior.c (startup_inferior): Add
16918 process_stratum_target parameter. Pass it down.
16919 * nat/fork-inferior.h (startup_inferior): Add
16920 process_stratum_target parameter.
16921 * python/py-threadevent.c (py_get_event_thread): Pass target down.
16922
75c6c844
PA
169232020-01-10 Pedro Alves <palves@redhat.com>
16924
16925 * remote.c (remote_target::start_remote): Don't set inferior_ptid
16926 directly. Instead find the first thread in the thread list and
16927 use switch_to_thread.
16928
78f2c40a
PA
169292020-01-10 Pedro Alves <palves@redhat.com>
16930
16931 * remote.c (remote_target::remote_add_inferior): Don't bind a
16932 process to the current inferior if the current inferior is already
16933 bound to a process.
16934
e7af6c70
TBA
169352020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16936 Pedro Alves <palves@redhat.com>
16937
16938 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
16939 If no process is specified, return null_ptid instead of
16940 inferior_ptid.
16941 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
16942 TARGET_WAITKIND_SIGNALLED with no pid.
16943
31ba933e
PA
169442020-01-10 Pedro Alves <palves@redhat.com>
16945
16946 * remote.c (first_remote_resumed_thread): New.
16947 (remote_target::wait_as): Use it as default event_ptid instead of
16948 inferior_ptid.
16949
735fc2ca
PA
169502020-01-10 Pedro Alves <palves@redhat.com>
16951
16952 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
16953
c17e02e1
PA
169542020-01-10 Pedro Alves <palves@redhat.com>
16955
16956 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
16957 not -1.
16958
ab1ddbcf
PA
169592020-01-10 Pedro Alves <palves@redhat.com>
16960
16961 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
16962 ptid to get_last_target_status.
16963 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
16964 ptid to get_last_target_status.
16965 * infcmd.c (continue_command): Don't pass a target_waitstatus to
16966 get_last_target_status.
16967 (info_program_command): Don't pass a target_waitstatus to
16968 get_last_target_status.
16969 * infrun.c (init_wait_for_inferior): Use
16970 nullify_last_target_wait_ptid.
16971 (get_last_target_status): Handle nullptr arguments.
16972 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
16973 (print_stop_event): Don't pass a ptid to get_last_target_status.
16974 (normal_stop): Don't pass a ptid to get_last_target_status.
16975 * infrun.h (get_last_target_status, set_last_target_status): Move
16976 comments here and update.
16977 (nullify_last_target_wait_ptid): Declare.
16978 * linux-fork.c (fork_load_infrun_state): Remove local extern
16979 declaration of nullify_last_target_wait_ptid.
16980 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
16981 to get_last_target_status.
16982
f3f8ece4
PA
169832020-01-10 Pedro Alves <palves@redhat.com>
16984
16985 * gdbthread.h (scoped_restore_current_thread)
16986 <dont_restore, restore, m_dont_restore>: Declare.
16987 * thread.c (thread_alive): Add assertion. Return bool.
16988 (switch_to_thread_if_alive): New.
16989 (prune_threads): Switch inferior/thread.
16990 (print_thread_info_1): Switch thread before calling target methods.
16991 (scoped_restore_current_thread::restore): New, factored out from
16992 ...
16993 (scoped_restore_current_thread::~scoped_restore_current_thread):
16994 ... this.
16995 (scoped_restore_current_thread::scoped_restore_current_thread):
16996 Add assertion.
16997 (thread_apply_all_command, thread_select): Use
16998 switch_to_thread_if_alive.
16999 * infrun.c (proceed, restart_threads, handle_signal_stop)
17000 (switch_back_to_stepped_thread): Switch current thread before
17001 calling target methods.
17002
db2d40f7
PA
170032020-01-10 Pedro Alves <palves@redhat.com>
17004
17005 * inferior.c (switch_to_inferior_no_thread): New function,
17006 factored out from ...
17007 (inferior_command): ... here.
17008 * inferior.h (switch_to_inferior_no_thread): Declare.
17009 * mi/mi-main.c (run_one_inferior): Use
17010 switch_to_inferior_no_thread.
17011
bd420a2d
PA
170122020-01-10 Pedro Alves <palves@redhat.com>
17013
17014 * infcmd.c (kill_command): Remove dead code.
17015
ddf5db90
PA
170162020-01-10 Pedro Alves <palves@redhat.com>
17017
17018 * remote.c (remote_target::mourn_inferior): No longer check
17019 whether the target is running.
17020
5018ce90
PA
170212020-01-10 Pedro Alves <palves@redhat.com>
17022
17023 * corelow.c (core_target::has_execution): Change parameter type to
17024 inferior pointer.
17025 * inferior.c (number_of_live_inferiors): Use
17026 inferior::has_execution instead of target_has_execution_1.
17027 * inferior.h (inferior::has_execution): New.
17028 * linux-thread-db.c (thread_db_target::update_thread_list): Use
17029 inferior::has_execution instead of target_has_execution_1.
17030 * process-stratum-target.c
17031 (process_stratum_target::has_execution): Change parameter type to
17032 inferior pointer. Check the inferior's PID instead of
17033 inferior_ptid.
17034 * process-stratum-target.h
17035 (process_stratum_target::has_execution): Change parameter type to
17036 inferior pointer.
17037 * record-full.c (record_full_core_target::has_execution): Change
17038 parameter type to inferior pointer.
17039 * target.c (target_has_execution_1): Change parameter type to
17040 inferior pointer.
17041 (target_has_execution_current): Adjust.
17042 * target.h (target_ops::has_execution): Change parameter type to
17043 inferior pointer.
17044 (target_has_execution_1): Change parameter type to inferior
17045 pointer. Change return type to bool.
17046 * tracefile.h (tracefile_target::has_execution): Change parameter
17047 type to inferior pointer.
17048
74375d18
PA
170492020-01-10 Pedro Alves <palves@redhat.com>
17050
17051 * exceptions.c (print_flush): Remove current_top_target() check.
17052
acdf84a6
PA
170532020-01-10 Pedro Alves <palves@redhat.com>
17054
17055 * remote.c (show_remote_exec_file): Show the current inferior's
17056 exec-file instead of the command variable's value.
17057
ec506636
PA
170582020-01-10 Pedro Alves <palves@redhat.com>
17059
17060 * record-full.c (record_full_resume_ptid): New global.
17061 (record_full_target::resume): Set it.
17062 (record_full_wait_1): Use record_full_resume_ptid instead of
17063 inferior_ptid.
17064
873657b9
PA
170652020-01-10 Pedro Alves <palves@redhat.com>
17066
17067 * gdbthread.h (scoped_restore_current_thread)
17068 <dont_restore, restore, m_dont_restore>: Declare.
17069 * thread.c (thread_alive): Add assertion. Return bool.
17070 (switch_to_thread_if_alive): New.
17071 (prune_threads): Switch inferior/thread.
17072 (print_thread_info_1): Switch thread before calling target methods.
17073 (scoped_restore_current_thread::restore): New, factored out from
17074 ...
17075 (scoped_restore_current_thread::~scoped_restore_current_thread):
17076 ... this.
17077 (scoped_restore_current_thread::scoped_restore_current_thread):
17078 Add assertion.
17079 (thread_apply_all_command, thread_select): Use
17080 switch_to_thread_if_alive.
17081
7f0ae84c
GB
170822020-01-10 George Barrett <bob@bob131.so>
17083
17084 * stap-probe.c (stap_modify_semaphore): Don't check for null
17085 semaphores.
17086 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
17087 for null semaphores.
17088
f5a7c406
AB
170892020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17090
17091 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
17092 all source windows, and maintain horizontal scroll status while
17093 doing so.
17094
9ae6bf64
TT
170952020-01-09 Tom Tromey <tom@tromey.com>
17096
17097 PR tui/18932:
17098 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
17099 update_source_window, not print_source_lines.
17100
b2efe70c
AB
171012020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17102
17103 * tui/tui.c (tui_enable): Register tui hooks after calling
17104 tui_display_main.
17105
5f23a082
CB
171062020-01-09 Christian Biesinger <cbiesinger@google.com>
17107
17108 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
17109
3061113b
SM
171102020-01-08 Simon Marchi <simon.marchi@efficios.com>
17111
17112 * thread.c (print_thread_info_1): Fix indentation.
17113
57d75002
CB
171142020-01-09 Christian Biesinger <cbiesinger@google.com>
17115
17116 * symtab.c (general_symbol_info::compute_and_set_names): Move the
17117 unique_xmalloc_ptr outside the if to always free the demangled name.
17118
6a053cb1
TT
171192020-01-08 Tom Tromey <tromey@adacore.com>
17120
17121 * xcoffread.c (enter_line_range, read_xcoff_symtab)
17122 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
17123 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
17124 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
17125 Remove.
17126 (section_offsets): New typedef.
17127 * symtab.c (fixup_section, get_msymbol_address): Update.
17128 * symmisc.c (dump_msymbols): Update.
17129 * symfile.h (relative_addr_info_to_section_offsets)
17130 (symfile_map_offsets_to_segments): Update.
17131 * symfile.c (build_section_addr_info_from_objfile)
17132 (init_objfile_sect_indices): Update.
17133 (struct place_section_arg): Change type of "offsets".
17134 (place_section): Update.
17135 (relative_addr_info_to_section_offsets): Change type of
17136 "section_offsets". Remove "num_sections" parameter.
17137 (default_symfile_offsets, syms_from_objfile_1)
17138 (set_objfile_default_section_offset): Update.
17139 (reread_symbols): No need to preserve section offsets by hand.
17140 (symfile_map_offsets_to_segments): Change type of "offsets".
17141 * stap-probe.c (relocate_address): Update.
17142 * stabsread.h (process_one_symbol): Update.
17143 * solib-target.c (struct lm_info_target) <offsets>: Change type.
17144 (solib_target_relocate_section_addresses): Update.
17145 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
17146 Update.
17147 * solib-frv.c (frv_relocate_main_executable): Update.
17148 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
17149 * solib-aix.c (solib_aix_get_section_offsets): Change return
17150 type.
17151 (solib_aix_solib_create_inferior_hook): Update.
17152 * remote.c (remote_target::get_offsets): Update.
17153 * psymtab.c (find_pc_sect_psymtab): Update.
17154 * psympriv.h (struct partial_symbol) <address, text_low,
17155 text_high>: Update.
17156 * objfiles.h (obj_section_offset): Update.
17157 (struct objfile) <section_offsets>: Change type.
17158 <num_sections>: Remove.
17159 (objfile_relocate): Update.
17160 * objfiles.c (entry_point_address_query): Update
17161 (relocate_one_symbol): Change type of "section_offsets".
17162 (objfile_relocate1, objfile_relocate1): Change type of
17163 "new_offsets".
17164 (objfile_rebase1): Update.
17165 * mipsread.c (mipscoff_symfile_read): Update.
17166 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
17167 parameter.
17168 * mdebugread.c (parse_symbol): Change type of "section_offsets".
17169 (parse_external, psymtab_to_symtab_1): Update.
17170 * machoread.c (macho_symfile_offsets): Update.
17171 * ia64-tdep.c (ia64_find_unwind_table): Update.
17172 * hppa-tdep.c (read_unwind_info): Update.
17173 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
17174 * dwarf2read.c (create_addrmap_from_index)
17175 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
17176 (process_psymtab_comp_unit_reader, add_partial_symbol)
17177 (add_partial_subprogram, process_full_comp_unit)
17178 (read_file_scope, read_func_scope, read_lexical_block_scope)
17179 (read_call_site_scope, dwarf2_rnglists_process)
17180 (dwarf2_ranges_process, dwarf2_ranges_read)
17181 (dwarf_decode_lines_1, var_decode_location, new_symbol)
17182 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
17183 Update.
17184 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
17185 Update.
17186 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
17187 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
17188 (process_one_symbol): Change type of "section_offsets".
17189 * ctfread.c (get_objfile_text_range): Update.
17190 * coffread.c (coff_symtab_read, enter_linenos)
17191 (process_coff_symbol): Update.
17192 * coff-pe-read.c (add_pe_forwarded_sym): Update.
17193 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
17194
456e800a
TT
171952020-01-08 Tom Tromey <tromey@adacore.com>
17196
17197 * dwarf2read.c (parse_macro_definition): Use std::string.
17198 (parse_macro_definition): Likewise.
17199
6dfa2fc2
TT
172002020-01-08 Tom Tromey <tromey@adacore.com>
17201
17202 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
17203 (ATTR_ALLOC_CHUNK): Remove.
17204
421d1616
TT
172052020-01-08 Tom Tromey <tromey@adacore.com>
17206
17207 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
17208
43816ebc
TT
172092020-01-08 Tom Tromey <tromey@adacore.com>
17210
17211 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
17212 (dwarf2_compute_name, open_dwo_file): Likewise.
17213 (process_enumeration_scope): Use std::vector.
17214 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
17215 (partial_die_info::fixup, dwarf2_start_subfile)
17216 (guess_full_die_structure_name, dwarf2_name): Likewise.
17217 (determine_prefix): Update.
17218 (guess_full_die_structure_name): Make return type const.
17219 (partial_die_full_name): Return unique_xmalloc_ptr.
17220 (DW_FIELD_ALLOC_CHUNK): Remove.
17221
4212d509
TT
172222020-01-07 Tom Tromey <tromey@adacore.com>
17223
17224 PR build/24937:
17225 * stap-probe.c (class stap_static_probe_ops): Add constructor.
17226
06a6207a
JT
172272020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17228
17229 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
17230
153d79c4
AB
172312020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
17232
17233 * stack.c (print_frame_info): Move disassemble_next_line code
17234 inside source_print block.
17235
66182876
EZ
172362020-01-06 Eli Zaretskii <eliz@gnu.org>
17237
17238 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
17239 gdb/signals.h, as we are now using native signal symbols.
17240
cbfa8581
SV
172412020-01-06 Shahab Vahedi <shahab@synopsys.com>
17242
17243 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
17244 overflow by an early check of content vs threshold.
aac66a4c 17245 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
17246 Likewise.
17247
3f602821
EZ
172482020-01-06 Eli Zaretskii <eliz@gnu.org>
17249
17250 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
17251
a08c904d
JT
172522020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17253
17254 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
17255 export table if no section contains it's RVA.
17256
89a65580
EZ
172572020-01-06 Eli Zaretskii <eliz@gnu.org>
17258
17259 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
17260
8b7fcda2
HD
172612020-01-06 Hannes Domani <ssbssa@yahoo.de>
17262
17263 * source.c (print_source_lines_base): Set last_line_listed.
17264
a61b4f69
SV
172652020-01-06 Shahab Vahedi <shahab@synopsys.com>
17266
17267 * tui/tui-disasm.c: Remove trailing spaces.
17268
559e7e50
EZ
172692020-01-06 Eli Zaretskii <eliz@gnu.org>
17270 Pedro Alves <palves@redhat.com>
17271
17272 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
17273 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
17274 (windows_gdb_signal_to_target): New function, uses the above
17275 enumeration to convert GDB internal signal codes to equivalent
17276 Windows codes.
17277 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
17278 * windows-nat.c: Include "gdb_wait.h".
17279 (get_windows_debug_event): Extract the fatal exception from the
17280 exit status and convert to the equivalent Posix signal number.
17281 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
17282 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
17283 * gdbsupport/gdb_wait.c: New file, implements
17284 windows_status_to_termsig.
17285 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
17286 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
17287
f2302a34
AB
172882020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
17289
17290 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
17291 show_layout.
17292
6a5206eb
LM
172932020-01-05 Luis Machado <luis.machado@linaro.org>
17294
17295 * aarch64-linux-nat.c
17296 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
17297 and bfd_mach_aarch64.
17298
6ec1d75e
PW
172992020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17300
17301 * ui-file.c (stdio_file::can_emit_style_escape)
17302 (tee_file::can_emit_style_escape): Ensure style is used also on
17303 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
17304 to gdb_stdout.
17305 * main.c (set_gdb_data_directory): Use file style to output the
17306 warning that the given pathname is not a directory.
17307 * top.c (show_history_filename, gdb_safe_append_history)
17308 (show_gdb_datadir): Use file style.
17309
44f81a76
HD
173102020-01-03 Hannes Domani <ssbssa@yahoo.de>
17311
17312 * solib-target.c (struct lm_info_target):
17313 Change offsets to be a unique_xmalloc_ptr.
17314 (solib_target_relocate_section_addresses): Update.
17315
25057eb0
HD
173162020-01-03 Hannes Domani <ssbssa@yahoo.de>
17317
17318 * windows-nat.c (windows_clear_solib): Free so_list linked list.
17319
6e2118f5
BE
173202020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
17321
17322 * MAINTAINERS (Write After Approval): Add myself.
17323
8133c7dc
LM
173242020-01-02 Luis Machado <luis.machado@linaro.org>
17325
17326 * proc-service.c (get_ps_regcache): Remove reference to obsolete
17327 Cell BE architecture.
17328 * target.h (struct target_ops) <thread_architecture>: Likewise.
17329
48189bec
HD
173302020-01-01 Hannes Domani <ssbssa@yahoo.de>
17331
17332 * Makefile.in: Use INSTALL_PROGRAM_ENV.
17333
ead1063b
HD
173342020-01-01 Hannes Domani <ssbssa@yahoo.de>
17335
17336 * MAINTAINERS (Write After Approval): Add myself.
17337
e5d78223
JB
173382020-01-01 Joel Brobecker <brobecker@adacore.com>
17339
17340 * gdbarch.sh: Update copyright year range of generated files.
17341
b811d2c2
JB
173422020-01-01 Joel Brobecker <brobecker@adacore.com>
17343
17344 Update copyright year range in all GDB files.
17345
5f4def5c
JB
173462020-01-01 Joel Brobecker <brobecker@adacore.com>
17347
17348 * copyright.py: Convert to Python 3.
17349
51fd4002
JB
173502020-01-01 Joel Brobecker <brobecker@adacore.com>
17351
17352 * copyright.py: Adapt after move of gnulib directory from gdb
17353 directory to toplevel directory.
17354
5fb651f2
JB
173552020-01-01 Joel Brobecker <brobecker@adacore.com>
17356
17357 * copyright.py (main): Exit if run from the wrong directory.
17358
5dd8bf88
JB
173592020-01-01 Joel Brobecker <brobecker@adacore.com>
17360
17361 * top.c (print_gdb_version): Change copyright year to 2020.
17362
9f71dacb 173632020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 17364
9f71dacb 17365 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 17366
9f71dacb 17367For older changes see ChangeLog-2019.
c906108c
SS
17368\f
17369Local Variables:
17370mode: change-log
17371left-margin: 8
17372fill-column: 74
17373version-control: never
57da7796 17374coding: utf-8
c906108c 17375End:
This page took 3.575628 seconds and 4 git commands to generate.