IBM Z: Add support for HLASM extended mnemonics
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
25428040
AB
12020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
2
3 * arch/riscv.c: Include 'rv32e-xregs.c'.
4 (riscv_create_target_description): Update to handle rv32e.
5 * arch/riscv.h (struct riscv_gdbarch_features) <embedded>: New
6 member variable.
7 <operator==>: Update to account for new field.
8 <hash>: Likewise.
9 * features/Makefile (FEATURE_XMLFILES): Add riscv/rv32e-xregs.xml.
10 * features/riscv/rv32e-xregs.c: Generated.
11 * features/riscv/rv32e-xregs.xml: New file.
12 * riscv-tdep.c (riscv_debug_breakpoints): Move from later in the
13 file.
14 (riscv_debug_infcall): Likewise.
15 (riscv_debug_unwinder): Likewise.
16 (riscv_debug_gdbarch): Likewise.
17 (enum riscv_register_required_status): Delete.
18 (struct riscv_register_feature): Add constructor, delete default
19 constructor, copy, and assign constructors.
20 (struct riscv_register_feature::register_info) <required>: Delete.
21 <check>: Update comment and arguments.
22 (struct riscv_register_feature) <name>: Change to member function.
23 <prefer_first_name>: Delete.
24 <tdesc_feature>: New member function.
25 <registers>: Rename to...
26 <m_registers>: ...this.
27 <m_feature_name>: New member variable.
28 (riscv_register_feature::register_info::check): Update arguments.
29 (riscv_xreg_feature): Rewrite as class, create a single static
30 instance of the class.
31 (riscv_freg_feature): Likewise.
32 (riscv_virtual_feature): Likewise.
33 (riscv_csr_feature): Likewise.
34 (riscv_create_csr_aliases): Has become a member function inside
35 riscv_csr_feature class.
36 (riscv_abi_embedded): New function definition.
37 (riscv_register_name): Adjust to use new feature objects.
38 (struct riscv_call_info) <riscv_call_info>: Check for rv32e abi,
39 and adjust available argument registers.
40 (riscv_features_from_gdbarch_info): Check for EF_RISCV_RVE flag.
41 (riscv_check_tdesc_feature): Delete.
42 (riscv_tdesc_unknown_reg): Adjust to use new feature objects.
43 (riscv_gdbarch_init): Delete target description checking code, and
44 instead call to the new feature objects to perform the checks.
45 Reorder handling of no abi information case, allows small code
46 simplification.
47 (_initialize_riscv_tdep): Remove call, this is now done in the
48 riscv_csr_feature constructor.
49 * riscv-tdep.h (riscv_abi_embedded): Declare.
50
533b2ae0
AB
512020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
52
53 * riscv-tdep.c (riscv_create_csr_aliases): Remove use of
54 DECLARE_CSR_ALIAS.
55
e4502042
AB
562020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
57
58 * riscv-tdep.c (riscv_is_unknown_csr): New function,
59 implementation moved from riscv_register_reggroup_p.
60 (riscv_register_reggroup_p): Update group handling for unknown
61 CSRs.
62
2bf3b79d
SDJ
632020-12-01 Sergio Durigan Junior <sergiodj@sergiodj.net>
64
65 * dwarf2/read.c (dwz_search_other_debugdirs): New function.
66 (dwarf2_get_dwz_file): Convert 'filename' to a
67 std::string. Use dwz_search_other_debugdirs to search for DWZ
68 files in the debug-file-directories provided by the user as well.
69
77bf7e99
TT
702020-12-01 Tom Tromey <tom@tromey.com>
71
72 * parse.c (expr_builder::expr_builder): Initialize expout.
73 (expr_builder::release): Use expression::resize.
74 (expression::expression, expression::~expression)
75 (expression::resize): New methods.
76 (write_exp_elt): Use expression::resize.
77 (prefixify_expression): Update.
78 (increase_expout_size): Use expression::resize.
79 * expression.h (struct expression): Add constructor, destructor.
80 <resize>: New method.
81 (expression_up): Change type.
82
539d71e8
RA
832020-12-01 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
84 * ppc-linux-nat.c: (PPC_DEBUG_FEATURE_DATA_BP_ARCH_31): New define.
85 (region_ok_for_hw_watchpoint): Check if 2nd DAWR is avaliable before
86 set region.
87
7ce05d21
TV
882020-11-30 Tom de Vries <tdevries@suse.de>
89
90 PR symtab/26905
91 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add and handle
92 is_reference parameter.
93 (dwarf2_evaluate_property): Update dwarf2_locexpr_baton_eval call.
94
88b91969
TT
952020-11-30 Tom Tromey <tom@tromey.com>
96
97 * rust-lang.c (rust_op_name): Remove.
98 (exp_descriptor_rust): Update.
99 * parser-defs.h (op_name_standard): Don't declare.
100 (struct exp_descriptor) <op_name>: Remove.
101 * parse.c (exp_descriptor_standard): Update.
102 * opencl-lang.c (exp_descriptor_opencl): Update.
103 * m2-lang.c (m2_language::exp_descriptor_modula2): Update.
104 * f-lang.c (op_name_f): Remove.
105 (f_language::exp_descriptor_tab): Update.
106 * expression.h (op_name): Update.
107 * expprint.c (op_name): Rewrite.
108 (op_name_standard): Remove.
109 (dump_raw_expression, dump_subexp): Update.
110 * c-lang.c (exp_descriptor_c): Update.
111 * ax-gdb.c (gen_expr): Update.
112 * ada-lang.c (ada_op_name): Remove.
113 (ada_exp_descriptor): Update.
114
1cd49c43
TT
1152020-11-30 Tom Tromey <tom@tromey.com>
116
117 * eval.c (init_array_element): Remove.
118 (evaluate_subexp_standard) <OP_ARRAY>: Remove "index_pc".
119
96fb9086
HD
1202020-11-29 Hannes Domani <ssbssa@yahoo.de>
121
122 PR tui/26973
123 * tui/tui-layout.c (tui_apply_current_layout): Don't delete the
124 static locator win info.
125
b4132322
AR
1262020-11-28 Alex Richardson <Alexander.Richardson@cl.cam.ac.uk>
127
128 * acincludde.m4 (GDB_AC_CHECK_BFD): Include string.h in the test
129 program.
130
3df8c6af
AB
1312020-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
132
133 * printcmd.c (skip_over_slash_fmt): Reorder code to ensure in_fmt
134 is always initialized.
135
0ae45769
RA
1362020-11-26 Rogerio Alves <rcardoso@linux.ibm.com>
137 * MAINTAINERS (Write After Approval): Add myself.
138
239ca5e4
PW
1392020-11-26 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
140
141 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
142 * features/aarch64-fpu.xml: Add named FPCR and FPSR register bit-fields.
143
cbfa382a
TT
1442020-11-25 Tom Tromey <tom@tromey.com>
145
146 * eval.c (evaluate_subexp_standard): Remove unnecessary
147 variables.
148
af30c400
TT
1492020-11-25 Tom Tromey <tom@tromey.com>
150
151 * d-lang.c: Include parser-defs.h.
152 * rust-lang.c: Include parser-defs.h.
153 * c-lang.h: Do not include parser-defs.h.
154
1c64f6cb
SM
1552020-11-24 Simon Marchi <simon.marchi@polymtl.ca>
156
157 * regcache.h (struct cached_reg): Remove typedef.
158
2c20a601
JB
1592020-11-24 Joel Brobecker <brobecker@adacore.com>
160
161 * README: Fix the URL of the MPFR library.
162
c609df64
JB
1632020-11-24 Joel Brobecker <brobecker@adacore.com>
164
165 * README: Document the --with-libgmp-prefix configure option.
166
fa123c32
JB
1672020-11-24 Joel Brobecker <brobecker@adacore.com>
168
169 * NEWS: Add entry documenting support for DWARF-based fixed
170 point types.
171
0fb8bb02
JB
1722020-11-24 Joel Brobecker <brobecker@adacore.com>
173
174 * NEWS: Document that building GDB now requires GMP.
175
4afa9fd9
JB
1762020-11-24 Joel Brobecker <brobecker@adacore.com>
177
178 * typeprint.c (print_type_scalar): Add handling of
179 TYPE_CODE_FIXED_POINT.
180
af619ce9
JB
1812020-11-24 Joel Brobecker <brobecker@adacore.com>
182
183 * valarith.c (fixed_point_binop): Replace the
184 INIT_VAL_WITH_FIXED_POINT_VAL macro by a lambda. Update all
185 users accordingly.
186
e6fcee3a
JB
1872020-11-24 Joel Brobecker <brobecker@adacore.com>
188
189 * gdbtypes.h (struct type) <fixed_point_scaling_factor>: New method,
190 replacing fixed_point_scaling_factor. All callers updated
191 throughout this project.
192 (fixed_point_scaling_factor): Delete declaration.
193 * gdbtypes.c (type::fixed_point_scaling_factor): Replaces
194 fixed_point_scaling_factor. Adjust implementation accordingly.
195
d19937a7
JB
1962020-11-24 Joel Brobecker <brobecker@adacore.com>
197
198 * gdbtypes.h (struct type) <fixed_point_type_base_type> New method,
199 replacing the fixed_point_type_base_type function. All callers
200 updated throughout this project.
201 (fixed_point_type_base_type): Remove declaration.
202 * gdbtypes.c (type::fixed_point_type_base_type): Replaces
203 fixed_point_type_base_type. Adjust implementation accordingly.
204
2a12c336
JB
2052020-11-24 Joel Brobecker <brobecker@adacore.com>
206
207 * gdbtypes.h (struct type) <fixed_point_info, set_fixed_point_info>:
208 New methods.
209 (INIT_FIXED_POINT_SPECIFIC): Adjust.
210 (TYPE_FIXED_POINT_INFO): Delete macro.
211 (allocate_fixed_point_type_info): Change return type to void.
212 * gdbtypes.c (copy_type_recursive): Replace the use of
213 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
214 (fixed_point_scaling_factor): Likewise.
215 (allocate_fixed_point_type_info): Change return type to void.
216 Adjust implementation accordingly.
217 * dwarf2/read.c (finish_fixed_point_type): Replace the use of
218 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
219
c9f0b43f
JB
2202020-11-24 Joel Brobecker <brobecker@adacore.com>
221
222 * gmp-utils.h (gdb_mpz::read): Change buf and len parameters
223 into one single gdb::array_view parameter.
224 (gdb_mpz::write): Likewise.
225 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
226 * gmp-utils.c (gdb_mpz::read): Change buf and len parameters
227 into one single gdb::array_view parameter.
228 Adjust implementation accordingly.
229 (gdb_mpz::write): Likewise.
230 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
231 * unittests/gmp-utils-selftests.c: Adapt following changes above.
232 * valarith.c, valops.c, valprint.c, value.c: Likewise.
233
987b6703
JB
2342020-11-24 Joel Brobecker <brobecker@adacore.com>
235
236 * gmp-utils.h (gmp_string_printf): Rename from gmp_string_asprintf.
237 Change return type to std::string. Update all callers.
238 * gmp-utils.c (gmp_string_printf): Likewise.
239
4fbb7cce
JB
2402020-11-24 Joel Brobecker <brobecker@adacore.com>
241
242 * unittests/gmp-utils-selftests.c (write_fp_test): Use mpq_set_si
243 instead of mpq_set_ui to initialize our GMP rational.
244
d6ab69dd
TV
2452020-11-23 Tom de Vries <tdevries@suse.de>
246
247 * debuginfod-support.c (debuginfod_source_query)
248 (debuginfod_debuginfo_query): Only set DESTNAME if successful.
249
dab72643
TT
2502020-11-21 Tom Tromey <tom@tromey.com>
251
252 * breakpoint.c (watchpoint_exp_is_const): Return bool.
253
c0ad05d5
SM
2542020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
255
256 * unittests/gmp-utils-selftests.c (gdb_mpz_read_all_from_small):
257 Pass 2.0 to pow.
258 (gdb_mpz_write_all_from_small): Likewise.
259
a43b29c9
SM
2602020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
261
262 * dwarf2/read.c (finish_fixed_point_type): Use std::abs instead
263 of abs.
264
ae41200b
NA
2652020-11-20 Nick Alcock <nick.alcock@oracle.com>
266
267 * ctfread.c (elfctf_build_psymtabs): Use ctf_dict_open, not
268 ctf_arc_open_by_name.
269
139633c3
NA
2702020-11-20 Nick Alcock <nick.alcock@oracle.com>
271
272 * ctfread.c: Change uses of ctf_file_t to ctf_dict_t.
273 (ctf_fp_info::~ctf_fp_info): Call ctf_dict_close, not ctf_file_close.
274
cbbcd7a7
PA
2752020-11-20 Pedro Alves <pedro@palves.net>
276
277 * language.c (language_arch_info::lookup_primitive_type): Use
278 gdb::function_view instead of gdb::function.
279 (template language_lookup_primitive_type): Rename to ...
280 (language_lookup_primitive_type_1): ... this, and make static.
281 (language_lookup_primitive_type(const struct language_defn *,
282 struct gdbarch *, const char *): Make non-template.
283 (language_lookup_primitive_type(const struct language_defn *,
284 struct gdbarch *, std::function<bool (struct type *)>): Make
285 non-template and use gdb::function_view.
286 * language.h (language_arch_info::lookup_primitive_type): Use
287 gdb::function_view instead of std::function.
288 (language_lookup_primitive_type): No longer template.
289 * opencl-lang.c (lookup_opencl_vector_type): 'filter' is now a
290 lambda instead of a std::function.
291
d5ef21c3
AA
2922020-11-19 Andreas Arnez <arnez@linux.ibm.com>
293
294 PR tdep/26916
295 * s390-tdep.c (s390_process_record): Fix recording of STOC, STOCG,
296 and STOCFH.
297
a5adb8f3
SM
2982020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
299
300 * f-lang.c (fortran_value_subarray): Use plongest/pulongest.
301
70125a45
SM
3022020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
303
304 * gdbarch.sh (read_core_file_mappings): Remove `other` parameter
305 in `loop_cb` parameter.
306 * gdbarch.c: Re-generate.
307 * gdbarch.h: Re-generate.
308 * arch-utils.c (default_read_core_file_mappings): Remove `other`
309 parameter.
310 * arch-utils.h (default_read_core_file_mappings): Likewise.
311 * corelow.c (core_target::build_file_mappings): Likewise.
312 * linux-tdep.c (linux_read_core_file_mappings): Likewise.
313 (linux_core_info_proc_mappings): Likewise.
314
a5c641b5
AB
3152020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
316
317 * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
318 * NEWS: Mention new options.
319 * f-array-walker.h: New file.
320 * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
321 (repack_array_slices): New static global.
322 (show_repack_array_slices): New function.
323 (fortran_array_slicing_debug): New static global.
324 (show_fortran_array_slicing_debug): New function.
325 (value_f90_subarray): Delete.
326 (skip_undetermined_arglist): Delete.
327 (class fortran_array_repacker_base_impl): New class.
328 (class fortran_lazy_array_repacker_impl): New class.
329 (class fortran_array_repacker_impl): New class.
330 (fortran_value_subarray): Complete rewrite.
331 (set_fortran_list): New static global.
332 (show_fortran_list): Likewise.
333 (_initialize_f_language): Register new commands.
334 (fortran_adjust_dynamic_array_base_address_hack): New function.
335 * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
336 Declare.
337 * f-valprint.c: Include 'f-array-walker.h'.
338 (class fortran_array_printer_impl): New class.
339 (f77_print_array_1): Delete.
340 (f77_print_array): Delete.
341 (fortran_print_array): New.
342 (f_value_print_inner): Update to call fortran_print_array.
343 * gdbtypes.c: Include 'f-lang.h'.
344 (resolve_dynamic_type_internal): Call
345 fortran_adjust_dynamic_array_base_address_hack.
346
a15a5258
AB
3472020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
348
349 * breakpoint.c (struct watch_options): New struct.
350 (watch_option_defs): New static global.
351 (make_watch_options_def_group): New function.
352 (watch_maybe_just_location): Convert option parsing.
353 (watch_command_completer): New function.
354 (_initialize_breakpoint): Build help text using options mechanism.
355
2e362716
AB
3562020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
357
358 * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
359 (watch_command_1): Update parameter types. Convert locals to
360 bool.
361 (watch_command_wrapper): Change parameter type.
362 (watch_maybe_just_location): Change locals to bool.
363 (rwatch_command_wrapper): Update parameter type.
364 (awatch_command_wrapper): Update parameter type.
365 * breakpoint.h (watch_command_wrapper): Change parameter type.
366 (rwatch_command_wrapper): Update parameter type.
367 (awatch_command_wrapper): Update parameter type.
368 * eval.c (fetch_subexp_value): Change parameter type.
369 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
370 'false' not '0'.
371 * value.h (fetch_subexp_value): Change parameter type in
372 declaration.
373
b3ff61f8
AB
3742020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
375
376 * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
377 skip_spaces.
378
5b7d45d3
KS
3792020-11-18 Keith Seitz <keiths@redhat.com>
380
381 * linux-tdep.c (dump_note_entry_p): Return true instead of
382 checking `filename'.
383
c44191f8
TV
3842020-11-18 Tom de Vries <tdevries@suse.de>
385
386 * debuginfod-support.c (debuginfod_source_query)
387 (debuginfod_debuginfo_query): Also do early exit if
388 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
389
5d8254e1
TV
3902020-11-18 Tom de Vries <tdevries@suse.de>
391
392 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
393 warning.
394
584903d3
SM
3952020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
396
397 * gdbtypes.h (get_array_bounds): Return bool, adjust some
398 callers. Move doc here.
399 * gdbtypes.c (get_array_bounds): Return bool
400
6f2643db
AB
4012020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
402
403 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
404 assert.
405 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
406 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
407 case to the default.
408
037d7135
AB
4092020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
410
411 * printcmd.c: Include 'safe-ctype.c'.
412 (skip_over_slash_fmt): New function.
413 (print_command_completer): Call skip_over_slash_fmt.
414 (display_and_x_command_completer): New function.
415 (_initialize_printcmd): Add command completion for 'x' and
416 'display'.
417
2b3cb400
PA
4182020-11-16 Pedro Alves <pedro@palves.net>
419
420 * frame.c (get_prev_frame): Move get_frame_id call from here ...
421 (get_prev_frame_always_1): ... to here.
422 * inline-frame.c (inline_frame_this_id): Mention
423 get_prev_frame_always_1 in comment.
424
b74dbc20
JB
4252020-11-15 Joel Brobecker <brobecker@adacore.com>
426
427 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
428 handling.
429 (value_less): Add fixed-point handling.
430
0a12719e
JB
4312020-11-15 Joel Brobecker <brobecker@adacore.com>
432
433 * eval.c (binop_promote): Add fixed-point type handling.
434 * valarith.c (fixed_point_binop): New function.
435 (scalar_binop): Add fixed-point type handling.
436 (value_neg): Add fixed-point type handling.
437 * valops.c (value_cast_to_fixed_point): New function.
438 (value_cast): Add fixed-point type handling.
439
0c9150e4
JB
4402020-11-15 Joel Brobecker <brobecker@adacore.com>
441
442 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
443 range types.
444 * c-typeprint.c (c_type_print_varspec_prefix)
445 (c_type_print_varspec_suffix, c_type_print_base_1): Add
446 TYPE_CODE_FIXED_POINT handling.
447 * p-typeprint.c (pascal_type_print_varspec_prefix)
448 (pascal_type_print_varspec_suffix): Likewise.
449 * typeprint.c (print_type_fixed_point): New function.
450 * typeprint.h (print_type_fixed_point): Add declaration.
451
b26daff9
JB
4522020-11-15 Joel Brobecker <brobecker@adacore.com>
453
454 * printcmd.c (print_scalar_formatted): Add fixed-point type
455 handling when options->format is set.
456
09584414
JB
4572020-11-15 Joel Brobecker <brobecker@adacore.com>
458
459 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
460 * dwarf2/read.c (get_dwarf2_rational_constant)
461 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
462 (has_zero_over_zero_small_attribute): New functions.
463 read_base_type, set_die_type): Add fixed-point type handling.
464 * gdb-gdb.py.in: Add fixed-point type handling.
465 * gdbtypes.c: #include "gmp-utils.h".
466 (create_range_type, set_type_code): Add fixed-point type handling.
467 (init_fixed_point_type): New function.
468 (is_integral_type, is_scalar_type): Add fixed-point type handling.
469 (print_fixed_point_type_info): New function.
470 (recursive_dump_type, copy_type_recursive): Add fixed-point type
471 handling.
472 (fixed_point_type_storage): New typedef.
473 (fixed_point_objfile_key): New static global.
474 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
475 (fixed_point_type_base_type, fixed_point_scaling_factor): New
476 functions.
477 * gdbtypes.h: #include "gmp-utils.h".
478 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
479 (union type_specific) <fixed_point_info>: New field.
480 (struct fixed_point_type_info): New struct.
481 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
482 (init_fixed_point_type, is_fixed_point_type)
483 (fixed_point_type_base_type, fixed_point_scaling_factor)
484 (allocate_fixed_point_type_info): Add declarations.
485 * valprint.c (generic_val_print_fixed_point): New function.
486 (generic_value_print): Add fixed-point type handling.
487 * value.c (value_as_address, unpack_long): Add fixed-point type
488 handling.
489
e55c6530
JB
4902020-11-15 Joel Brobecker <brobecker@adacore.com>
491
492 * utils.h (uinteger_pow): Add declaration.
493 * utils.c (uinteger_pow): Moved here (without changes)...
494 * valarith.c (uinteger_pow): ... from here.
495
b34c74ab
JB
4962020-11-15 Joel Brobecker <brobecker@adacore.com>
497
40d9d2fd 498 * gmp-utils.h, gmp-utils.c: New file.
b34c74ab
JB
499 * unittests/gmp-utils-selftests.c: New file.
500 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
501 unittests/gmp-utils-selftests.c.
502 (COMMON_SFILES) Add gmp-utils.c.
503 (HFILES_NO_SRCDIR): Add gmp-utils.h.
504
1b4ac058
JB
5052020-11-15 Joel Brobecker <brobecker@adacore.com>
506
507 * configure.ac: Generate an error if a usable GMP library
508 could not be found.
509 * configure: Regenerate.
510
2c947d9b
JB
5112020-11-15 Joel Brobecker <brobecker@adacore.com>
512
513 * configure.ac: Add support for --with-libgmp-prefix.
514 * Makefile.in (LIBGMP): New variable.
515 (CLIBS): Include $(LIBGMP).
516 * configure, config.in: Regenerate
517
9dd02fc0
AB
5182020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
519
520 PR cli/26879
521 * f-exp.y (COMPLETE): New token.
522 (exp): Two new rules for tab-completion.
523 (saw_name_at_eof): New static global.
524 (last_was_structop): Likewise.
525 (yylex): Set new variables, and return COMPLETE token at the end
526 of the input stream in some cases.
527
758cb810
TT
5282020-11-14 Tom Tromey <tom@tromey.com>
529
530 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
531
749065b7
TT
5322020-11-14 Tom Tromey <tom@tromey.com>
533
534 * opencl-lang.c (opencl_component_ref): Make "comps" const.
535
2c5b1849
SM
5362020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
537
538 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
539
e8b2f0d9
TT
5402020-11-13 Tom Tromey <tom@tromey.com>
541
542 * c-lang.c (convert_ucn, convert_octal, convert_hex)
543 (convert_escape, parse_one_string): Constify.
544
25f4c262
KS
5452020-11-13 Keith Seitz <keiths@redhat.com>
546
547 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
548 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
549 outside of ELF segments" warning for debugin
550
9d3ab915
KS
5512020-11-13 Keith Seitz <keiths@redhat.com>
552
553 PR gdb/23034
554 * elfread.c (elf_symfile_segments): Output a BFD file name
555 for the "Loadable section ... outside of ELF segments" warning.
556
9ecab40c
SM
5572020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
558
559 PR gdb/26835
560 * arm-tdep.c (class arm_instruction_reader): New.
561 (target_arm_instruction_reader): New.
562 (arm_analyze_prologue): Add instruction reader parameter and use
563 it. Use arm_expand_immediate.
564 (class target_arm_instruction_reader): Adjust.
565 (arm_skip_prologue): Adjust.
566 (arm_expand_immediate): New.
567 (arm_scan_prologue): Adjust.
568 (arm_analyze_prologue_test): New.
569 (class test_arm_instruction_reader): New.
570
5a7cf527
AB
5712020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
572
573 * f-lang.c (fortran_argument_convert): Add declaration. Add
574 header comment, taken from f-lang.h. Make static.
575 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
576 (fortran_argument_convert): Delete declaration.
577
7bea47f0
AB
5782020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
579
580 * ada-exp.y (find_primitive_type): Make parameter const.
581 * ada-lang.c (enum ada_primitive_types): Delete.
582 (ada_language::language_arch_info): Update.
583 * c-lang.c (enum c_primitive_types): Delete.
584 (c_language_arch_info): Update.
585 (enum cplus_primitive_types): Delete.
586 (cplus_language::language_arch_info): Update.
587 * d-lang.c (enum d_primitive_types): Delete.
588 (d_language::language_arch_info): Update.
589 * f-lang.c (enum f_primitive_types): Delete.
590 (f_language::language_arch_info): Update.
591 * go-lang.c (enum go_primitive_types): Delete.
592 (go_language::language_arch_info): Update.
593 * language.c (auto_or_unknown_language::language_arch_info):
594 Update.
595 (language_gdbarch_post_init): Use obstack_new, use array indexing.
596 (language_string_char_type): Add header comment, call function in
597 language_arch_info.
598 (language_bool_type): Likewise
599 (language_arch_info::bool_type): Define.
600 (language_lookup_primitive_type_1): Delete.
601 (language_lookup_primitive_type): Rewrite as a templated function
602 to call function in language_arch_info, then instantiate twice.
603 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
604 (language_arch_info::lookup_primitive_type_and_symbol): Define.
605 (language_arch_info::lookup_primitive_type): Define twice with
606 different signatures.
607 (language_arch_info::lookup_primitive_type_as_symbol): Define.
608 (language_lookup_primitive_type_as_symbol): Rewrite to call a
609 member function in language_arch_info.
610 * language.h (language_arch_info): Complete rewrite.
611 (language_lookup_primitive_type): Make templated.
612 * m2-lang.c (enum m2_primitive_types): Delete.
613 (m2_language::language_arch_info): Update.
614 * opencl-lang.c (OCL_P_TYPE): Delete.
615 (enum opencl_primitive_types): Delete.
616 (opencl_type_data): Delete.
617 (builtin_opencl_type): Delete.
618 (lookup_opencl_vector_type): Update.
619 (opencl_language::language_arch_info): Update, lots of content
620 moved from...
621 (build_opencl_types): ...here. This function is now deleted.
622 (_initialize_opencl_language): Delete.
623 * p-lang.c (enum pascal_primitive_types): Delete.
624 (pascal_language::language_arch_info): Update.
625 * rust-lang.c (enum rust_primitive_types): Delete.
626 (rust_language::language_arch_info): Update.
627
bf6e5d01
SM
6282020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
629
630 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
631 dwarf2_queue_guard.
632
1350c3b4
SM
6332020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
634
635 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
636 comment.
637
6f738b01
SM
6382020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
639
640 * dwarf2/read.c (dwarf_read_debug_printf,
641 dwarf_read_debug_printf_v): New macros, use throughout the file.
642
10c19fad
SV
6432020-11-12 Shahab Vahedi <shahab@synopsys.com>
644
645 * arc-linux-tdep.c (collect_register): Populate "eret" by
646 "pc" value from the regcache when asked for "pc" value.
647
1f2624a3
TT
6482020-11-12 Tom Tromey <tom@tromey.com>
649
650 PR rust/26799:
651 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
652 exist.
653
ab33b152
AB
6542020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
655
656 * features/Makefile (XMLTOC): Add rx.xml.
657 (FEATURE_XMLFILES): Remove rx.xml.
658 (FEATURE_CFILES rule): Pass '-single-feature' flag.
659 * features/rx.c: Regenerate.
660 * features/rx.xml: Wrap in `target` tags, and reindent.
661 * target-descriptions.c (struct maint_print_c_tdesc_options): New
662 structure.
663 (maint_print_c_tdesc_opt_def): New typedef.
664 (maint_print_c_tdesc_opt_defs): New static global.
665 (make_maint_print_c_tdesc_options_def_group): New function.
666 (maint_print_c_tdesc_cmd): Make use of command line flags, only
667 print single feature C file for target descriptions containing a
668 single feature.
669 (maint_print_c_tdesc_cmd_completer): New function.
670 (_initialize_target_descriptions): Update call to register command
671 completer, and include command line flag in help text.
672
550820e1
AB
6732020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
674
675 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
676 numbers.
677 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
678 enum values.
679
baf20f76
TT
6802020-11-10 Tom Tromey <tom@tromey.com>
681
682 * value.h (internalvar_name): Update.
683 * value.c (internalvar_name): Make return type const.
684
caaece0e
TT
6852020-11-10 Tom Tromey <tom@tromey.com>
686
687 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
688 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
689 const.
690
8e20b4be
TT
6912020-11-10 Tom Tromey <tom@tromey.com>
692
693 * objc-lang.h (value_nsstring): Update.
694 * objc-lang.c (value_nsstring): Make "ptr" const.
695
86775fab
AB
6962020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
697
698 * expprint.c (print_subexp_funcall): Increment expression position
699 after reading argument count.
700 * f-lang.c (print_subexp_f): Skip over opcode before calling
701 common function.
702 (dump_subexp_body_f): Likewise.
703
3fed4c0b
RG
7042020-11-06 Romain Geissler <romain.geissler@amadeus.com>
705
706 PR python/26832
707 * configure: Regenerate.
708 * configure.ac: Check for python modules ctypes instead of
709 itertools.
710
ac3d4064
PA
7112020-11-06 Pedro Alves <pedro@palves.net>
712
713 * macroexp.c (struct macro_buffer): Split in two classes. Add
714 uses adjusted.
715 (struct shared_macro_buffer): New, factored out from struct
716 macro_buffer.
717 (struct growable_macro_buffer): New, factored out from struct
718 macro_buffer.
719 (set_token, get_comment, get_identifier, get_pp_number)
720 (get_character_constant, get_string_literal, get_punctuator)
721 (get_next_token_for_substitution): Constify parameters.
722 (substitute_args): Constify locals.
723
606decb2
TT
7242020-11-05 Tom Tromey <tom@tromey.com>
725
726 * dwarf2/read.c (read_cutu_die_from_dwo)
727 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
728 (build_type_psymtabs_1): Update.
729 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
730 parameter.
731 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
732 Don't read section. Add assert.
733
9c91c725
TT
7342020-11-04 Tom Tromey <tromey@adacore.com>
735
736 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
737
8d9fd3a1
TT
7382020-11-04 Tom Tromey <tromey@adacore.com>
739
740 * ada-typeprint.c (ada_print_type): Handle __T types.
741
d8f62e84
TT
7422020-11-04 Tom Tromey <tromey@adacore.com>
743
744 * dwarf2/read.c (add_partial_symbol, process_die):
745 Handle DW_TAG_array_type.
746 (is_type_tag_for_partial): Add "lang" parameter.
747 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
748
7ff5b937
TT
7492020-11-04 Tom Tromey <tromey@adacore.com>
750
751 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
752
10f6a3ad
TT
7532020-11-04 Tom Tromey <tromey@adacore.com>
754
755 * dwarf2/read.c (read_array_type): Only apply stride to innermost
756 array.
757
b72795a8
TT
7582020-11-04 Tom Tromey <tromey@adacore.com>
759
760 * gdbtypes.c (update_static_array_size): Handle bit stride.
761
24aa1b02
TT
7622020-11-04 Tom Tromey <tromey@adacore.com>
763
764 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
765
c9a28cbe
TT
7662020-11-04 Tom Tromey <tromey@adacore.com>
767
768 * ada-lang.c (ada_is_any_packed_array_type): New function.
769 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
770
57567375
TT
7712020-11-04 Tom Tromey <tromey@adacore.com>
772
773 * dwarf2/read.c (recognize_bound_expression)
774 (quirk_ada_thick_pointer): New functions.
775 (read_array_type): Call quirk_ada_thick_pointer.
776 (set_die_type): Add "skip_data_location" parameter.
777 (quirk_ada_thick_pointer): New function.
778 (process_structure_scope): Call quirk_ada_thick_pointer.
779 * ada-lang.c (ada_is_unconstrained_packed_array_type)
780 (decode_packed_array_bitsize): Handle thick pointers without
781 parallel types.
782 (ada_is_gnat_encoded_packed_array_type): Rename from
783 ada_is_packed_array_type.
784 (ada_is_constrained_packed_array_type): Update.
785 * ada-valprint.c (ada_val_print_gnat_array): Remove.
786 (ada_value_print_1): Use ada_get_decoded_value.
787
a7400e44
TT
7882020-11-04 Tom Tromey <tromey@adacore.com>
789
790 * ada-lang.c (recursively_update_array_bitsize): New function.
791 (decode_constrained_packed_array_type): Call it.
792
75fd6a26
TT
7932020-11-04 Tom Tromey <tromey@adacore.com>
794
795 * ada-lang.c (to_fixed_array_type): Error if
796 decode_constrained_packed_array_type returns NULL.
797
93f9561e
TT
7982020-11-04 Tom Tromey <tromey@adacore.com>
799
800 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
801
257e02d8
TT
8022020-11-02 Tom Tromey <tromey@adacore.com>
803
804 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
805 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
806 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
807 * amd64-ravenscar-thread.c: New file.
808 * amd64-ravenscar-thread.h: New file.
809 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
810 * configure.tgt (amd64_tobjs): Add ravenscar objects.
811
74d877e5
AB
8122020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
813
814 * main.c (execute_cmdargs): New function.
815 (captured_main_1): Make use of execute_cmdargs.
816
64aaad63
AB
8172020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
818
819 * NEWS: Mention changes to config file search path.
820 * main.c
821
5b3d3560
TT
8222020-11-02 Tom Tromey <tromey@adacore.com>
823
824 * python/python.c: Consolidate two HAVE_PYTHON blocks.
825 (python_GdbModuleDef): Move earlier. Now static.
826 (do_start_initialization): Consolidate some IS_PY3K blocks.
827
dda83cd7
SM
8282020-11-02 Simon Marchi <simon.marchi@efficios.com>
829
830 * aarch64-linux-tdep.c: Fix indentation.
831 * aarch64-ravenscar-thread.c: Fix indentation.
832 * aarch64-tdep.c: Fix indentation.
833 * aarch64-tdep.h: Fix indentation.
834 * ada-lang.c: Fix indentation.
835 * ada-lang.h: Fix indentation.
836 * ada-tasks.c: Fix indentation.
837 * ada-typeprint.c: Fix indentation.
838 * ada-valprint.c: Fix indentation.
839 * ada-varobj.c: Fix indentation.
840 * addrmap.c: Fix indentation.
841 * addrmap.h: Fix indentation.
842 * agent.c: Fix indentation.
843 * aix-thread.c: Fix indentation.
844 * alpha-bsd-nat.c: Fix indentation.
845 * alpha-linux-tdep.c: Fix indentation.
846 * alpha-mdebug-tdep.c: Fix indentation.
847 * alpha-nbsd-tdep.c: Fix indentation.
848 * alpha-obsd-tdep.c: Fix indentation.
849 * alpha-tdep.c: Fix indentation.
850 * amd64-bsd-nat.c: Fix indentation.
851 * amd64-darwin-tdep.c: Fix indentation.
852 * amd64-linux-nat.c: Fix indentation.
853 * amd64-linux-tdep.c: Fix indentation.
854 * amd64-nat.c: Fix indentation.
855 * amd64-obsd-tdep.c: Fix indentation.
856 * amd64-tdep.c: Fix indentation.
857 * amd64-windows-tdep.c: Fix indentation.
858 * annotate.c: Fix indentation.
859 * arc-tdep.c: Fix indentation.
860 * arch-utils.c: Fix indentation.
861 * arch/arm-get-next-pcs.c: Fix indentation.
862 * arch/arm.c: Fix indentation.
863 * arm-linux-nat.c: Fix indentation.
864 * arm-linux-tdep.c: Fix indentation.
865 * arm-nbsd-tdep.c: Fix indentation.
866 * arm-pikeos-tdep.c: Fix indentation.
867 * arm-tdep.c: Fix indentation.
868 * arm-tdep.h: Fix indentation.
869 * arm-wince-tdep.c: Fix indentation.
870 * auto-load.c: Fix indentation.
871 * auxv.c: Fix indentation.
872 * avr-tdep.c: Fix indentation.
873 * ax-gdb.c: Fix indentation.
874 * ax-general.c: Fix indentation.
875 * bfin-linux-tdep.c: Fix indentation.
876 * block.c: Fix indentation.
877 * block.h: Fix indentation.
878 * blockframe.c: Fix indentation.
879 * bpf-tdep.c: Fix indentation.
880 * break-catch-sig.c: Fix indentation.
881 * break-catch-syscall.c: Fix indentation.
882 * break-catch-throw.c: Fix indentation.
883 * breakpoint.c: Fix indentation.
884 * breakpoint.h: Fix indentation.
885 * bsd-uthread.c: Fix indentation.
886 * btrace.c: Fix indentation.
887 * build-id.c: Fix indentation.
888 * buildsym-legacy.h: Fix indentation.
889 * buildsym.c: Fix indentation.
890 * c-typeprint.c: Fix indentation.
891 * c-valprint.c: Fix indentation.
892 * c-varobj.c: Fix indentation.
893 * charset.c: Fix indentation.
894 * cli/cli-cmds.c: Fix indentation.
895 * cli/cli-decode.c: Fix indentation.
896 * cli/cli-decode.h: Fix indentation.
897 * cli/cli-script.c: Fix indentation.
898 * cli/cli-setshow.c: Fix indentation.
899 * coff-pe-read.c: Fix indentation.
900 * coffread.c: Fix indentation.
901 * compile/compile-cplus-types.c: Fix indentation.
902 * compile/compile-object-load.c: Fix indentation.
903 * compile/compile-object-run.c: Fix indentation.
904 * completer.c: Fix indentation.
905 * corefile.c: Fix indentation.
906 * corelow.c: Fix indentation.
907 * cp-abi.h: Fix indentation.
908 * cp-namespace.c: Fix indentation.
909 * cp-support.c: Fix indentation.
910 * cp-valprint.c: Fix indentation.
911 * cris-linux-tdep.c: Fix indentation.
912 * cris-tdep.c: Fix indentation.
913 * darwin-nat-info.c: Fix indentation.
914 * darwin-nat.c: Fix indentation.
915 * darwin-nat.h: Fix indentation.
916 * dbxread.c: Fix indentation.
917 * dcache.c: Fix indentation.
918 * disasm.c: Fix indentation.
919 * dtrace-probe.c: Fix indentation.
920 * dwarf2/abbrev.c: Fix indentation.
921 * dwarf2/attribute.c: Fix indentation.
922 * dwarf2/expr.c: Fix indentation.
923 * dwarf2/frame.c: Fix indentation.
924 * dwarf2/index-cache.c: Fix indentation.
925 * dwarf2/index-write.c: Fix indentation.
926 * dwarf2/line-header.c: Fix indentation.
927 * dwarf2/loc.c: Fix indentation.
928 * dwarf2/macro.c: Fix indentation.
929 * dwarf2/read.c: Fix indentation.
930 * dwarf2/read.h: Fix indentation.
931 * elfread.c: Fix indentation.
932 * eval.c: Fix indentation.
933 * event-top.c: Fix indentation.
934 * exec.c: Fix indentation.
935 * exec.h: Fix indentation.
936 * expprint.c: Fix indentation.
937 * f-lang.c: Fix indentation.
938 * f-typeprint.c: Fix indentation.
939 * f-valprint.c: Fix indentation.
940 * fbsd-nat.c: Fix indentation.
941 * fbsd-tdep.c: Fix indentation.
942 * findvar.c: Fix indentation.
943 * fork-child.c: Fix indentation.
944 * frame-unwind.c: Fix indentation.
945 * frame-unwind.h: Fix indentation.
946 * frame.c: Fix indentation.
947 * frv-linux-tdep.c: Fix indentation.
948 * frv-tdep.c: Fix indentation.
949 * frv-tdep.h: Fix indentation.
950 * ft32-tdep.c: Fix indentation.
951 * gcore.c: Fix indentation.
952 * gdb_bfd.c: Fix indentation.
953 * gdbarch.sh: Fix indentation.
954 * gdbarch.c: Re-generate
955 * gdbarch.h: Re-generate.
956 * gdbcore.h: Fix indentation.
957 * gdbthread.h: Fix indentation.
958 * gdbtypes.c: Fix indentation.
959 * gdbtypes.h: Fix indentation.
960 * glibc-tdep.c: Fix indentation.
961 * gnu-nat.c: Fix indentation.
962 * gnu-nat.h: Fix indentation.
963 * gnu-v2-abi.c: Fix indentation.
964 * gnu-v3-abi.c: Fix indentation.
965 * go32-nat.c: Fix indentation.
966 * guile/guile-internal.h: Fix indentation.
967 * guile/scm-cmd.c: Fix indentation.
968 * guile/scm-frame.c: Fix indentation.
969 * guile/scm-iterator.c: Fix indentation.
970 * guile/scm-math.c: Fix indentation.
971 * guile/scm-ports.c: Fix indentation.
972 * guile/scm-pretty-print.c: Fix indentation.
973 * guile/scm-value.c: Fix indentation.
974 * h8300-tdep.c: Fix indentation.
975 * hppa-linux-nat.c: Fix indentation.
976 * hppa-linux-tdep.c: Fix indentation.
977 * hppa-nbsd-nat.c: Fix indentation.
978 * hppa-nbsd-tdep.c: Fix indentation.
979 * hppa-obsd-nat.c: Fix indentation.
980 * hppa-tdep.c: Fix indentation.
981 * hppa-tdep.h: Fix indentation.
982 * i386-bsd-nat.c: Fix indentation.
983 * i386-darwin-nat.c: Fix indentation.
984 * i386-darwin-tdep.c: Fix indentation.
985 * i386-dicos-tdep.c: Fix indentation.
986 * i386-gnu-nat.c: Fix indentation.
987 * i386-linux-nat.c: Fix indentation.
988 * i386-linux-tdep.c: Fix indentation.
989 * i386-nto-tdep.c: Fix indentation.
990 * i386-obsd-tdep.c: Fix indentation.
991 * i386-sol2-nat.c: Fix indentation.
992 * i386-tdep.c: Fix indentation.
993 * i386-tdep.h: Fix indentation.
994 * i386-windows-tdep.c: Fix indentation.
995 * i387-tdep.c: Fix indentation.
996 * i387-tdep.h: Fix indentation.
997 * ia64-libunwind-tdep.c: Fix indentation.
998 * ia64-libunwind-tdep.h: Fix indentation.
999 * ia64-linux-nat.c: Fix indentation.
1000 * ia64-linux-tdep.c: Fix indentation.
1001 * ia64-tdep.c: Fix indentation.
1002 * ia64-tdep.h: Fix indentation.
1003 * ia64-vms-tdep.c: Fix indentation.
1004 * infcall.c: Fix indentation.
1005 * infcmd.c: Fix indentation.
1006 * inferior.c: Fix indentation.
1007 * infrun.c: Fix indentation.
1008 * iq2000-tdep.c: Fix indentation.
1009 * language.c: Fix indentation.
1010 * linespec.c: Fix indentation.
1011 * linux-fork.c: Fix indentation.
1012 * linux-nat.c: Fix indentation.
1013 * linux-tdep.c: Fix indentation.
1014 * linux-thread-db.c: Fix indentation.
1015 * lm32-tdep.c: Fix indentation.
1016 * m2-lang.c: Fix indentation.
1017 * m2-typeprint.c: Fix indentation.
1018 * m2-valprint.c: Fix indentation.
1019 * m32c-tdep.c: Fix indentation.
1020 * m32r-linux-tdep.c: Fix indentation.
1021 * m32r-tdep.c: Fix indentation.
1022 * m68hc11-tdep.c: Fix indentation.
1023 * m68k-bsd-nat.c: Fix indentation.
1024 * m68k-linux-nat.c: Fix indentation.
1025 * m68k-linux-tdep.c: Fix indentation.
1026 * m68k-tdep.c: Fix indentation.
1027 * machoread.c: Fix indentation.
1028 * macrocmd.c: Fix indentation.
1029 * macroexp.c: Fix indentation.
1030 * macroscope.c: Fix indentation.
1031 * macrotab.c: Fix indentation.
1032 * macrotab.h: Fix indentation.
1033 * main.c: Fix indentation.
1034 * mdebugread.c: Fix indentation.
1035 * mep-tdep.c: Fix indentation.
1036 * mi/mi-cmd-catch.c: Fix indentation.
1037 * mi/mi-cmd-disas.c: Fix indentation.
1038 * mi/mi-cmd-env.c: Fix indentation.
1039 * mi/mi-cmd-stack.c: Fix indentation.
1040 * mi/mi-cmd-var.c: Fix indentation.
1041 * mi/mi-cmds.c: Fix indentation.
1042 * mi/mi-main.c: Fix indentation.
1043 * mi/mi-parse.c: Fix indentation.
1044 * microblaze-tdep.c: Fix indentation.
1045 * minidebug.c: Fix indentation.
1046 * minsyms.c: Fix indentation.
1047 * mips-linux-nat.c: Fix indentation.
1048 * mips-linux-tdep.c: Fix indentation.
1049 * mips-nbsd-tdep.c: Fix indentation.
1050 * mips-tdep.c: Fix indentation.
1051 * mn10300-linux-tdep.c: Fix indentation.
1052 * mn10300-tdep.c: Fix indentation.
1053 * moxie-tdep.c: Fix indentation.
1054 * msp430-tdep.c: Fix indentation.
1055 * namespace.h: Fix indentation.
1056 * nat/fork-inferior.c: Fix indentation.
1057 * nat/gdb_ptrace.h: Fix indentation.
1058 * nat/linux-namespaces.c: Fix indentation.
1059 * nat/linux-osdata.c: Fix indentation.
1060 * nat/netbsd-nat.c: Fix indentation.
1061 * nat/x86-dregs.c: Fix indentation.
1062 * nbsd-nat.c: Fix indentation.
1063 * nbsd-tdep.c: Fix indentation.
1064 * nios2-linux-tdep.c: Fix indentation.
1065 * nios2-tdep.c: Fix indentation.
1066 * nto-procfs.c: Fix indentation.
1067 * nto-tdep.c: Fix indentation.
1068 * objfiles.c: Fix indentation.
1069 * objfiles.h: Fix indentation.
1070 * opencl-lang.c: Fix indentation.
1071 * or1k-tdep.c: Fix indentation.
1072 * osabi.c: Fix indentation.
1073 * osabi.h: Fix indentation.
1074 * osdata.c: Fix indentation.
1075 * p-lang.c: Fix indentation.
1076 * p-typeprint.c: Fix indentation.
1077 * p-valprint.c: Fix indentation.
1078 * parse.c: Fix indentation.
1079 * ppc-linux-nat.c: Fix indentation.
1080 * ppc-linux-tdep.c: Fix indentation.
1081 * ppc-nbsd-nat.c: Fix indentation.
1082 * ppc-nbsd-tdep.c: Fix indentation.
1083 * ppc-obsd-nat.c: Fix indentation.
1084 * ppc-ravenscar-thread.c: Fix indentation.
1085 * ppc-sysv-tdep.c: Fix indentation.
1086 * ppc64-tdep.c: Fix indentation.
1087 * printcmd.c: Fix indentation.
1088 * proc-api.c: Fix indentation.
1089 * producer.c: Fix indentation.
1090 * producer.h: Fix indentation.
1091 * prologue-value.c: Fix indentation.
1092 * prologue-value.h: Fix indentation.
1093 * psymtab.c: Fix indentation.
1094 * python/py-arch.c: Fix indentation.
1095 * python/py-bpevent.c: Fix indentation.
1096 * python/py-event.c: Fix indentation.
1097 * python/py-event.h: Fix indentation.
1098 * python/py-finishbreakpoint.c: Fix indentation.
1099 * python/py-frame.c: Fix indentation.
1100 * python/py-framefilter.c: Fix indentation.
1101 * python/py-inferior.c: Fix indentation.
1102 * python/py-infthread.c: Fix indentation.
1103 * python/py-objfile.c: Fix indentation.
1104 * python/py-prettyprint.c: Fix indentation.
1105 * python/py-registers.c: Fix indentation.
1106 * python/py-signalevent.c: Fix indentation.
1107 * python/py-stopevent.c: Fix indentation.
1108 * python/py-stopevent.h: Fix indentation.
1109 * python/py-threadevent.c: Fix indentation.
1110 * python/py-tui.c: Fix indentation.
1111 * python/py-unwind.c: Fix indentation.
1112 * python/py-value.c: Fix indentation.
1113 * python/py-xmethods.c: Fix indentation.
1114 * python/python-internal.h: Fix indentation.
1115 * python/python.c: Fix indentation.
1116 * ravenscar-thread.c: Fix indentation.
1117 * record-btrace.c: Fix indentation.
1118 * record-full.c: Fix indentation.
1119 * record.c: Fix indentation.
1120 * reggroups.c: Fix indentation.
1121 * regset.h: Fix indentation.
1122 * remote-fileio.c: Fix indentation.
1123 * remote.c: Fix indentation.
1124 * reverse.c: Fix indentation.
1125 * riscv-linux-tdep.c: Fix indentation.
1126 * riscv-ravenscar-thread.c: Fix indentation.
1127 * riscv-tdep.c: Fix indentation.
1128 * rl78-tdep.c: Fix indentation.
1129 * rs6000-aix-tdep.c: Fix indentation.
1130 * rs6000-lynx178-tdep.c: Fix indentation.
1131 * rs6000-nat.c: Fix indentation.
1132 * rs6000-tdep.c: Fix indentation.
1133 * rust-lang.c: Fix indentation.
1134 * rx-tdep.c: Fix indentation.
1135 * s12z-tdep.c: Fix indentation.
1136 * s390-linux-tdep.c: Fix indentation.
1137 * score-tdep.c: Fix indentation.
1138 * ser-base.c: Fix indentation.
1139 * ser-mingw.c: Fix indentation.
1140 * ser-uds.c: Fix indentation.
1141 * ser-unix.c: Fix indentation.
1142 * serial.c: Fix indentation.
1143 * sh-linux-tdep.c: Fix indentation.
1144 * sh-nbsd-tdep.c: Fix indentation.
1145 * sh-tdep.c: Fix indentation.
1146 * skip.c: Fix indentation.
1147 * sol-thread.c: Fix indentation.
1148 * solib-aix.c: Fix indentation.
1149 * solib-darwin.c: Fix indentation.
1150 * solib-frv.c: Fix indentation.
1151 * solib-svr4.c: Fix indentation.
1152 * solib.c: Fix indentation.
1153 * source.c: Fix indentation.
1154 * sparc-linux-tdep.c: Fix indentation.
1155 * sparc-nbsd-tdep.c: Fix indentation.
1156 * sparc-obsd-tdep.c: Fix indentation.
1157 * sparc-ravenscar-thread.c: Fix indentation.
1158 * sparc-tdep.c: Fix indentation.
1159 * sparc64-linux-tdep.c: Fix indentation.
1160 * sparc64-nbsd-tdep.c: Fix indentation.
1161 * sparc64-obsd-tdep.c: Fix indentation.
1162 * sparc64-tdep.c: Fix indentation.
1163 * stabsread.c: Fix indentation.
1164 * stack.c: Fix indentation.
1165 * stap-probe.c: Fix indentation.
1166 * stubs/ia64vms-stub.c: Fix indentation.
1167 * stubs/m32r-stub.c: Fix indentation.
1168 * stubs/m68k-stub.c: Fix indentation.
1169 * stubs/sh-stub.c: Fix indentation.
1170 * stubs/sparc-stub.c: Fix indentation.
1171 * symfile-mem.c: Fix indentation.
1172 * symfile.c: Fix indentation.
1173 * symfile.h: Fix indentation.
1174 * symmisc.c: Fix indentation.
1175 * symtab.c: Fix indentation.
1176 * symtab.h: Fix indentation.
1177 * target-float.c: Fix indentation.
1178 * target.c: Fix indentation.
1179 * target.h: Fix indentation.
1180 * tic6x-tdep.c: Fix indentation.
1181 * tilegx-linux-tdep.c: Fix indentation.
1182 * tilegx-tdep.c: Fix indentation.
1183 * top.c: Fix indentation.
1184 * tracefile-tfile.c: Fix indentation.
1185 * tracepoint.c: Fix indentation.
1186 * tui/tui-disasm.c: Fix indentation.
1187 * tui/tui-io.c: Fix indentation.
1188 * tui/tui-regs.c: Fix indentation.
1189 * tui/tui-stack.c: Fix indentation.
1190 * tui/tui-win.c: Fix indentation.
1191 * tui/tui-winsource.c: Fix indentation.
1192 * tui/tui.c: Fix indentation.
1193 * typeprint.c: Fix indentation.
1194 * ui-out.h: Fix indentation.
1195 * unittests/copy_bitwise-selftests.c: Fix indentation.
1196 * unittests/memory-map-selftests.c: Fix indentation.
1197 * utils.c: Fix indentation.
1198 * v850-tdep.c: Fix indentation.
1199 * valarith.c: Fix indentation.
1200 * valops.c: Fix indentation.
1201 * valprint.c: Fix indentation.
1202 * valprint.h: Fix indentation.
1203 * value.c: Fix indentation.
1204 * value.h: Fix indentation.
1205 * varobj.c: Fix indentation.
1206 * vax-tdep.c: Fix indentation.
1207 * windows-nat.c: Fix indentation.
1208 * windows-tdep.c: Fix indentation.
1209 * xcoffread.c: Fix indentation.
1210 * xml-syscall.c: Fix indentation.
1211 * xml-tdesc.c: Fix indentation.
1212 * xstormy16-tdep.c: Fix indentation.
1213 * xtensa-config.c: Fix indentation.
1214 * xtensa-linux-nat.c: Fix indentation.
1215 * xtensa-linux-tdep.c: Fix indentation.
1216 * xtensa-tdep.c: Fix indentation.
1217
e1f57067
AB
12182020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1219 Craig Blackmore <craig.blackmore@embecosm.com>
1220
1221 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
1222 as an unsigned value.
1223
ae7754b2
TT
12242020-11-01 Tom Tromey <tom@tromey.com>
1225
1226 * dbxread.c (dbx_end_psymtab): Update.
1227 * dwarf2/read.c (process_psymtab_comp_unit_reader)
1228 (build_type_psymtabs_reader): Update.
1229 * xcoffread.c (xcoff_end_psymtab): Update.
1230 * ctfread.c (scan_partial_symbols): Update.
1231 * psymtab.c (sort_pst_symbols): Remove.
1232 (partial_symtab::end): Rename from end_psymtab_common. Inline
1233 sort_pst_symbols.
1234 * psympriv.h (struct partial_symtab) <end>: New method.
1235 (end_psymtab_common): Don't declare.
1236
0684bb51
TT
12372020-11-01 Tom Tromey <tom@tromey.com>
1238
1239 * symmisc.c (count_psyms): New function.
1240 (print_objfile_statistics): Use it.
1241 * psymtab.c (append_psymbol_to_list): Remove.
1242 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
1243 * objfiles.h (struct objstats) <n_psyms>: Remove.
1244
089002bb
TT
12452020-11-01 Tom Tromey <tom@tromey.com>
1246
1247 * dbxread.c (dbx_end_psymtab): Update.
1248 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
1249 (build_type_psymtabs_reader): Update.
1250 * xcoffread.c (xcoff_end_psymtab): Update.
1251 * ctfread.c (scan_partial_symbols): Update.
1252 * psympriv.h (end_psymtab_common): Update.
1253 * psymtab.c (end_psymtab_common): Remove objfile parameter.
1254 (sort_pst_symbols): Likewise.
1255
525454d6
TT
12562020-11-01 Tom Tromey <tom@tromey.com>
1257
1258 * dbxread.c (dbx_symfile_read): Update.
1259 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
1260 * xcoffread.c (xcoff_initial_scan): Update.
1261 * psympriv.h (init_psymbol_list): Don't declare.
1262 * psymtab.c (init_psymbol_list): Remove.
1263
60bd1d53
JB
12642020-11-01 Joel Brobecker <brobecker@adacore.com>
1265
1266 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
1267 gnat_encoded_fixed_type_info. Update all callers.
1268
db99d0d0
JB
12692020-11-01 Joel Brobecker <brobecker@adacore.com>
1270
1271 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
1272 line too long.
1273
75f24e86
JB
12742020-11-01 Joel Brobecker <brobecker@adacore.com>
1275
1276 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
1277 cast_from_fixed. Update all callers.
1278 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
1279 Update all callers.
1280 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
1281 Update all callers.
1282 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
1283 ada_scaling_factor.
1284 * ada-typeprint.c: Replace call to ada_scaling_factor by call
1285 to print_gnat_encoded_fixed_point_type.
1286 * ada-valprint.c: Likewise.
1287
4f0469cd
AB
12882020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1289
1290 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
1291 (debug_prefixed_printf): Add check of debug_displaced flag.
1292 * linux-nat.c (linux_nat_debug_printf): Add check of
1293 debug_linux_nat flag.
1294
17417fb0
SM
12952020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1296
1297 * infrun.c (infrun_debug_printf_1): Remove.
1298 (displaced_debug_printf_1): Remove.
1299 (stop_all_threads): Use debug_prefixed_printf.
1300 * infrun.h (infrun_debug_printf_1): Remove.
1301 (infrun_debug_printf): Use debug_prefixed_printf.
1302 (displaced_debug_printf_1): Remove.
1303 (displaced_debug_printf): Use debug_prefixed_printf.
1304 * linux-nat.c (linux_nat_debug_printf_1): Remove.
1305 (linux_nat_debug_printf): Use debug_prefixed_printf.
1306
ad6dba1c
SM
13072020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1308
1309 * configure: Re-generate.
1310 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
1311 AC_LANG_PROGRAM.
1312
b6fb30ed
SM
13132020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1314
1315 * configure: Re-generate.
1316
5164c117
SM
13172020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1318
1319 * configure: Re-generate.
1320
864ca435
SM
13212020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1322
1323 * configure: Re-generate.
1324
b9442ec1
SM
13252020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1326
1327 * configure: Re-generate.
1328
294f2697
SM
13292020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1330
1331 * acinclude.m4: Modernize.
1332 * configure: Re-generate.
1333
5593a99a
SM
13342020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1335
1336 * configure.ac: Modernize.
1337 * configure: Re-generate.
1338
e41fda1d
SM
13392020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1340
1341 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
1342 * configure: Re-generate.
1343 * configure.ac: Remove AM_PROG_CC_STDC.
1344
91e1a0ed
SM
13452020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1346
1347 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
1348 AC_CANONICAL_SYSTEM.
1349 * configure: Re-generate.
1350
136821d9
SM
13512020-10-30 Simon Marchi <simon.marchi@efficios.com>
1352
1353 * infrun.h (displaced_debug_printf): New macro. Replace
1354 displaced debug prints throughout to use it.
1355 (displaced_debug_printf_1): New declaration.
1356 (displaced_step_dump_bytes): Return string, remove ui_file
1357 parameter, update all callers.
1358 * infrun.c (displaced_debug_printf_1): New function.
1359 (displaced_step_dump_bytes): Return string, remove ui_file
1360 parameter
1361
aa2045e7
SM
13622020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
1363
1364 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
1365
b1ec2735
TT
13662020-10-30 Tom Tromey <tromey@adacore.com>
1367
1368 * Makefile.in (stamp-init): Depend on config.status.
1369
b78b3a29
TBA
13702020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1371
1372 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
1373
d70bdd3c
PA
13742020-10-30 Pedro Alves <pedro@palves.net>
1375
1376 * thread.c (lookup_selected_frame): Move ...
1377 * frame.c (lookup_selected_frame): ... here.
1378
79952e69
PA
13792020-10-30 Pedro Alves <pedro@palves.net>
1380
1381 * blockframe.c (block_innermost_frame): Use get_selected_frame.
1382 * frame.c
1383 (scoped_restore_selected_frame::scoped_restore_selected_frame):
1384 Use save_selected_frame. Save language as well.
1385 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
1386 Use restore_selected_frame, and restore language as well.
1387 (selected_frame_id, selected_frame_level): New.
1388 (selected_frame): Update comments.
1389 (save_selected_frame, restore_selected_frame): New.
1390 (get_selected_frame): Use lookup_selected_frame.
1391 (get_selected_frame_if_set): Delete.
1392 (select_frame): Record selected_frame_level and selected_frame_id.
1393 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
1394 fields.
1395 (get_selected_frame): Make 'message' parameter optional.
1396 (get_selected_frame_if_set): Delete declaration.
1397 (select_frame): Update comments.
1398 (save_selected_frame, restore_selected_frame)
1399 (lookup_selected_frame): Declare.
1400 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
1401 * infrun.c (struct infcall_control_state) <selected_frame_level>:
1402 New field.
1403 (save_infcall_control_state): Use save_selected_frame.
1404 (restore_selected_frame): Delete.
1405 (restore_infcall_control_state): Use restore_selected_frame.
1406 * stack.c (select_frame_command_core, frame_command_core): Use
1407 get_selected_frame.
1408 * thread.c (restore_selected_frame): Rename to ...
1409 (lookup_selected_frame): ... this and make extern. Select the
1410 current frame if the frame level is -1.
1411 (scoped_restore_current_thread::restore): Also restore the
1412 language.
1413 (scoped_restore_current_thread::~scoped_restore_current_thread):
1414 Don't try/catch.
1415 (scoped_restore_current_thread::scoped_restore_current_thread):
1416 Save the language as well. Use save_selected_frame.
1417
58103c33
SM
14182020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1419
1420 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
1421 documentation.
1422 * gdbarch.h: Re-generate.
1423
40a53766
SM
14242020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1425
1426 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
1427 parameter.
1428 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
1429 Likewise.
1430 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1431 Likewise.
1432 * arch-utils.c (default_displaced_step_hw_singlestep):
1433 Likewise.
1434 * arch-utils.h (default_displaced_step_hw_singlestep):
1435 Likewise.
1436 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
1437 Likewise.
1438 * s390-tdep.c (s390_displaced_step_hw_singlestep):
1439 Likewise.
1440 * gdbarch.c: Re-generate.
1441 * gdbarch.h: Re-generate.
1442 * infrun.c (resume_1): Adjust.
1443
8407f91b
TT
14442020-10-29 Tom Tromey <tom@tromey.com>
1445
1446 * progspace.c (program_space::~program_space): Don't call
1447 exec_close.
1448
5008b3b2
TT
14492020-10-29 Tom Tromey <tom@tromey.com>
1450
1451 * exec.c (exec_target::close): Don't change current program
1452 space.
1453
d9eebde0
TT
14542020-10-29 Tom Tromey <tom@tromey.com>
1455
1456 * symfile.c (add_symbol_file_command): Update.
1457 * exec.c (program_space::add_target_sections): Rename.
1458 * symfile-mem.c (symbol_file_add_from_memory): Update.
1459 * progspace.h (struct program_space) <add_target_sections>:
1460 Declare new overload.
1461 * exec.h (add_target_sections_of_objfile): Don't declare.
1462
3769e227
TT
14632020-10-29 Tom Tromey <tom@tromey.com>
1464
1465 * solib.c (solib_map_sections): Update.
1466 * exec.c (program_space::add_target_sections): Now a method.
1467 (exec_file_attach): Update.
1468 * exec.h (add_target_sections): Don't declare.
1469 * progspace.h (struct program_space) <add_target_sections>:
1470 Declare.
1471
2a3f84af
TT
14722020-10-29 Tom Tromey <tom@tromey.com>
1473
1474 * progspace.h (struct program_space) <remove_target_sections>:
1475 Declare.
1476 * exec.c (program_space::remove_target_sections): Now a method.
1477 * exec.h (remove_target_sections): Don't declare.
1478
004eecfd
TT
14792020-10-29 Tom Tromey <tom@tromey.com>
1480
1481 * inferior.c (delete_inferior): Update.
1482 * progspace.c (program_space::empty): Rename from
1483 program_space_empty_p. Return bool.
1484 * progspace.h (struct program_space) <empty>: New method.
1485 (program_space_empty_p): Don't declare.
1486
e39fb971
TT
14872020-10-29 Tom Tromey <tom@tromey.com>
1488
1489 * progspace.c (program_space::~program_space): Don't call
1490 clear_program_space_solib_cache.
1491 (program_space::clear_solib_cache): Rename from
1492 clear_solib_cache.
1493 * solib.c (handle_solib_event): Update.
1494 * progspace.h (struct program_space) <clear_solib_cache>: New
1495 method.
1496 (clear_program_space_solib_cache): Don't declare.
1497
a42d7dd8
TT
14982020-10-29 Tom Tromey <tom@tromey.com>
1499
1500 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1501 * target.c (info_target_command): Update.
1502 * symfile.c (syms_from_objfile_1, finish_new_objfile)
1503 (symbol_file_clear, reread_symbols): Update.
1504 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
1505 * stabsread.c (scan_file_globals): Update.
1506 * solib.c (update_solib_list): Update.
1507 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
1508 (svr4_fetch_objfile_link_map, enable_break)
1509 (svr4_relocate_main_executable)
1510 (svr4_iterate_over_objfiles_in_search_order): Update.
1511 * solib-frv.c (lm_base, enable_break)
1512 (frv_relocate_main_executable): Update.
1513 (main_got, frv_fdpic_find_canonical_descriptor): Update.
1514 (frv_fetch_objfile_link_map): Update.
1515 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
1516 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
1517 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
1518 * remote.c (remote_target::get_offsets): Update.
1519 (remote_target::start_remote)
1520 (extended_remote_target::post_attach): Update.
1521 * objfiles.c (entry_point_address_query): Update.
1522 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
1523 * minsyms.c (get_symbol_leading_char): Update.
1524 * frame.c (inside_main_func): Update.
1525 * progspace.h (symfile_objfile): Remove macro.
1526
19f6550e
TT
15272020-10-29 Tom Tromey <tom@tromey.com>
1528
1529 * exec.c (exec_file_attach): Update.
1530 * progspace.c (program_space::exec_close): Update.
1531 * progspace.h (struct program_space) <ebfd>: Now a
1532 gdb_bfd_ref_ptr.
1533 <set_exec_bfd>: Change argument type.
1534 <exec_bfd>: Update.
1535
7e10abd1
TT
15362020-10-29 Tom Tromey <tom@tromey.com>
1537
1538 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1539 * symfile.c (reread_symbols): Update.
1540 * symfile-mem.c (add_symbol_file_from_memory_command)
1541 (add_vsyscall_page): Update.
1542 * source-cache.c (source_cache::get_plain_source_lines): Update.
1543 * solib-svr4.c (find_program_interpreter, elf_locate_base)
1544 (svr4_current_sos_direct, svr4_exec_displacement)
1545 (svr4_relocate_main_executable): Update.
1546 (svr4_iterate_over_objfiles_in_search_order): Update.
1547 * solib-frv.c (enable_break2, enable_break): Update.
1548 * solib-dsbt.c (lm_base, enable_break): Update.
1549 * solib-darwin.c (find_program_interpreter)
1550 (darwin_solib_create_inferior_hook): Update.
1551 * sol-thread.c (rw_common, ps_pdmodel): Update.
1552 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
1553 * remote.c (compare_sections_command)
1554 (remote_target::trace_set_readonly_regions): Update.
1555 * remote-sim.c (get_sim_inferior_data)
1556 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
1557 (gdbsim_target_open, gdbsim_target::files_info): Update.
1558 * exec.h (exec_bfd): Remove macro.
1559 * progspace.c (initialize_progspace): Update.
1560 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
1561 Update.
1562 * nto-procfs.c (nto_procfs_target::post_attach)
1563 (nto_procfs_target::create_inferior): Update.
1564 * maint.c (maintenance_info_sections): Update.
1565 * linux-thread-db.c (thread_db_target::get_thread_local_address):
1566 Update.
1567 * infcmd.c (post_create_inferior): Update.
1568 * gcore.c (default_gcore_arch, default_gcore_target): Update.
1569 (objfile_find_memory_regions): Update.
1570 * exec.c (validate_exec_file, exec_file_attach)
1571 (exec_read_partial_read_only, print_section_info): Update.
1572 * corelow.c (core_target_open): Update.
1573 * corefile.c (reopen_exec_file, validate_files): Update.
1574 * arm-tdep.c (gdb_print_insn_arm): Update.
1575 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
1576 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
1577 methods.
1578
b55221ab
TT
15792020-10-29 Tom Tromey <tom@tromey.com>
1580
1581 * progspace.h (current_target_sections): Remove macro.
1582 * solib-svr4.c (scan_dyntag): Update.
1583 * solib-dsbt.c (scan_dyntag): Update.
1584 * exec.c (exec_target::close): Update.
1585 (add_target_sections, add_target_sections_of_objfile)
1586 (remove_target_sections, exec_target::get_section_table)
1587 (exec_target::files_info, set_section_command)
1588 (exec_set_section_address, exec_target::has_memory)
1589 (exec_target::has_memory): Update.
1590
5a36e715
TT
15912020-10-29 Tom Tromey <tom@tromey.com>
1592
1593 * source-cache.c (source_cache::get_plain_source_lines): Use
1594 current_program_space.
1595 * corefile.c (reopen_exec_file): Use current_program_space.
1596 * exec.c (exec_file_attach): Use current_program_space.
1597 * exec.h (exec_bfd_mtime): Remove.
1598
784c8592
TT
15992020-10-29 Tom Tromey <tom@tromey.com>
1600
1601 * gcore.c (default_gcore_mach): Remove.
1602 (create_gcore_bfd): Update.
1603
8a4f1402
TT
16042020-10-29 Tom Tromey <tom@tromey.com>
1605
1606 * progspace.c (program_space::exec_close): New method, from
1607 exec_close in exec.c.
1608 * exec.c (exec_close): Move to progspace.c.
1609 (exec_target::close, exec_file_attach): Update.
1610 * progspace.h (struct program_space) <exec_close>: Declare
1611 method.
1612
c20cb686
TT
16132020-10-29 Tom Tromey <tom@tromey.com>
1614
1615 * progspace.h (struct program_space) <exec_filename>: Rename from
1616 pspace_exec_filename. Now a unique_xmalloc_ptr.
1617 * inferior.c (print_selected_inferior): Update.
1618 (print_inferior): Update.
1619 * mi/mi-main.c (print_one_inferior): Update.
1620 * exec.h (exec_filename): Remove macro.
1621 * corefile.c (get_exec_file): Update.
1622 * exec.c (exec_close): Update.
1623 (exec_file_attach): Update.
1624 * progspace.c (clone_program_space): Update.
1625 (print_program_space): Update.
1626
6be2a9ab
TT
16272020-10-29 Tom Tromey <tom@tromey.com>
1628
1629 * target-section.h (struct target_section): Add constructor.
1630 * exec.c (build_section_table, add_target_sections_of_objfile):
1631 Update.
1632 * corelow.c (core_target::build_file_mappings): Update.
1633
cfaa8f76
TBA
16342020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1635
1636 PR gdb/19318
1637 * inferior.c (detach_inferior_command): Restore the current thread.
1638 (kill_inferior_command): Ditto.
1639
1b00ef06
TV
16402020-10-28 Tom de Vries <tdevries@suse.de>
1641
1642 PR symtab/26772
1643 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
1644 map, check it in the "best match" loop.
1645
7f40ce1a
SM
16462020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1647
1648 * m32c-tdep.c: Remove unused includes.
1649
5eb9e3f5
SM
16502020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1651
1652 * xtensa-tdep.c: Remove includes.
1653
b1d4d8d1
TBA
16542020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1655
1656 * breakpoint.c (struct condition_command_opts): New struct.
1657 (condition_command_option_defs): New static global.
1658 (make_condition_command_options_def_group): New function.
1659 (condition_completer): Update to consider the '-force' flag.
1660 (condition_command): Use gdb::option for the '-force' flag.
1661
bd24c5d6
TV
16622020-10-27 Tom de Vries <tdevries@suse.de>
1663
1664 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
1665 symbols in section check.
1666
61eb46a4
TV
16672020-10-27 Tom de Vries <tdevries@suse.de>
1668
1669 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
1670
733d554a
TBA
16712020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1672
1673 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
1674 * breakpoint.c: Update the help text of the 'condition' and 'break'
1675 commands.
1676 (set_breakpoint_condition): Take a new bool parameter
1677 to control whether condition definition should be forced even when
1678 the condition expression is invalid in all of the current locations.
1679 (condition_command): Update the call to 'set_breakpoint_condition'.
1680 (find_condition_and_thread): Take the "-force-condition" flag into
1681 account.
1682 * linespec.c (linespec_keywords): Add "-force-condition" as an
1683 element.
1684 (FORCE_KEYWORD_INDEX): New #define.
1685 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
1686 as a keyword.
1687 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
1688 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
1689 * python/py-breakpoint.c (bppy_set_condition): Ditto.
1690 * NEWS: Mention the changes to the 'break' and 'condition' commands.
1691
b5fa468f
TBA
16922020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1693
1694 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
1695 * breakpoint.c (set_breakpoint_location_condition): New function.
1696 (set_breakpoint_condition): Disable a breakpoint location if parsing
1697 the condition string gives an error.
1698 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
1699 (build_target_condition_list): Ditto.
1700 (build_target_command_list): Ditto.
1701 (build_bpstat_chain): Ditto.
1702 (print_one_breakpoint_location): Ditto.
1703 (print_one_breakpoint): Ditto.
1704 (breakpoint_1): Ditto.
1705 (bp_location::bp_location): Ditto.
1706 (locations_are_equal): Ditto.
1707 (update_breakpoint_locations): Ditto.
1708 (enable_disable_bp_num_loc): Ditto.
1709 (init_breakpoint_sal): Use set_breakpoint_location_condition.
1710 (find_condition_and_thread_for_sals): New static function.
1711 (create_breakpoint): Call find_condition_and_thread_for_sals.
1712 (location_to_sals): Call find_condition_and_thread_for_sals instead
1713 of find_condition_and_thread.
1714
1c47ec3e
TV
17152020-10-26 Tom de Vries <tdevries@suse.de>
1716
1717 * dwarf2/read.c (process_full_comp_unit): Call
1718 dwarf2_find_base_address.
1719
6390859c
TT
17202020-10-26 Tom Tromey <tromey@adacore.com>
1721
1722 * gdbtypes.c (create_range_type): Revert previous patch. Add
1723 comment.
1724
d744f0f9
PA
17252020-10-26 Pedro Alves <pedro@palves.net>
1726
1727 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
1728 (my_waitpid): Use gdb::handle_eintr.
1729
006811bc
SM
17302020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
1731
1732 * acinclude.m4: Update ptrace.m4 path.
1733 * ptrace.m4: Moved to gdbsupport.
1734
c75e31a1
SM
17352020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1736
1737 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
1738 instead of target_gdbarch.
1739
32495661
SM
17402020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1741
1742 * jit.c (jit_reader_load_command): Pass current inferior.
1743 (jit_inferior_init): Change parameter type to inferior, use it.
1744 (jit_inferior_created): Remove.
1745 (jit_inferior_created_hook): Pass inferior parameter down.
1746 (_initialize_jit): Use jit_inferior_created_hook instead of
1747 jit_inferior_created.
1748 * jit.h (jit_inferior_created_hook): Add inferior parameter.
1749 * infrun.c (follow_exec): Pass inferior to
1750 jit_inferior_created_hook.
1751
3f66685e
SM
17522020-10-24 Simon Marchi <simon.marchi@efficios.com>
1753
1754 * linux-thread-db.c (check_pid_namespace_match): Add inferior
1755 parameter and use it.
1756 (thread_db_inferior_created): Pass inferior argument.
1757
a0ff652f
SM
17582020-10-24 Simon Marchi <simon.marchi@efficios.com>
1759
1760 * aix-thread.c (aix_thread_inferior_created): Add inferior
1761 parameter.
1762 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
1763 * dummy-frame.c (cleanup_dummy_frames): Likewise.
1764 * jit.c (jit_inferior_created): Likewise.
1765 * linux-thread-db.c (thread_db_inferior_created): Likewise.
1766 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
1767 * observable.h (inferior_created): Likewise.
1768 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
1769 * symfile-mem.c (add_vsyscall_page): Likewise.
1770 * infcmd.c (post_create_inferior): Pass inferior argument.
1771
3c67532c
JB
17722020-10-24 Joel Brobecker <brobecker@adacore.com>
1773
1774 GDB 10.1 released.
1775
8747316e
JB
17762020-10-23 Joel Brobecker <brobecker@adacore.com>
1777
1778 * ada-typeprint.c (ada_print_type): Remove superfluous second call
1779 to ada_check_typedef.
1780
1a0ea399
AB
17812020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1782
1783 * f-exp.y (f_parse): Rename to...
1784 (f_language::parser): ...this.
1785 * f-lang.c (f_get_encoding): Rename to...
1786 (f_language::get_encoding): ...this.
1787 (f_op_print_tab): Rename to...
1788 (f_language::op_print_tab): ...this.
1789 (exp_descriptor_f): Rename to...
1790 (f_language::exp_descriptor_tab): ...this.
1791 (class f_language): Moved to f-lang.h.
1792 (f_language::language_arch_info): New function, moved out of class
1793 declaration.
1794 (f_language::search_name_hash): Likewise.
1795 (f_language::lookup_symbol_nonlocal): Likewise.
1796 (f_language::get_symbol_name_matcher_inner): Likewise.
1797 * f-lang.h: Add 'valprint.h' include.
1798 (class f_language): Moved here from f-lang.c.
1799 * f-typeprint.c (f_type_print_args): Delete commented out
1800 declaration.
1801 (f_print_typedef): Rename to...
1802 (f_language::print_typedef): ...this.
1803 (f_print_type): Rename to...
1804 (f_language::print_type): ...this.
1805 (f_type_print_varspec_prefix): Delete declaration and rename to...
1806 (f_language::f_type_print_varspec_prefix): ...this.
1807 (f_type_print_varspec_suffix): Delete declaration and rename to...
1808 (f_language::f_type_print_varspec_suffix): ...this.
1809 (f_type_print_base): Delete declaration and rename to...
1810 (f_language::f_type_print_base): ...this.
1811 * f-valprint.c (f_value_print_inner): Rename to...
1812 (f_language::value_print_inner): ...this.
1813 * parse.c: Delete 'f-lang.h' include.
1814
88cefd9b
AB
18152020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1816
1817 * language.h (language_defn::print_type): Add variable names in
1818 declaration, and update header comment.
1819
5399db93
AB
18202020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1821
1822 * ada-lang.c (ada_language::demangle): Rename to...
1823 (ada_language::demangle_symbol): ...this.
1824 * c-lang.c (cplus_language::demangle): Rename to...
1825 (cplus_language::demangle_symbol): ...this.
1826 * d-lang.c (d_language::demangle): Rename to...
1827 (d_language::demangle_symbol): ...this.
1828 * f-lang.c (f_language::demangle): Rename to...
1829 (f_language::demangle_symbol): ...this.
1830 * go-lang.c (go_language::demangle): Rename to...
1831 (go_language::demangle_symbol): ...this.
1832 * language.c (language_demangle): Update call to demangle_symbol.
1833 (auto_or_unknown_language::demangle): Rename to...
1834 (auto_or_unknown_language::demangle_symbol): ...this.
1835 * language.h (language_defn::demangle): Rename to...
1836 (language_defn::demangle_symbol): ...this.
1837 * objc-lang.c (objc_language::demangle): Rename to...
1838 (objc_language::demangle_symbol): ...this.
1839 * rust-lang.c (rust_language::demangle): Rename to...
1840 (rust_language::demangle_symbol): ...this.
1841
4b2f86ef
AB
18422020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1843
1844 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
1845 (iterate_over_file_blocks): Replace use of macro with the macros
1846 definition.
1847
e74b39de
AB
18482020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1849
1850 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
1851 * valprint.c (maybe_print_array_index): Replace use of macro with
1852 the macros definition.
1853
00c696a6
AB
18542020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1855
1856 * ada-lang.c (ada_language::print_array_index): Call value_print
1857 directly.
1858 * language.c (language_defn::print_array_index): Likewise.
1859 * language.h (LA_VALUE_PRINT): Delete.
1860 * valprint.c (value_print): Call value_print on the
1861 current_language directly.
1862
d3b67c56
AB
18632020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1864
1865 * language.h (LA_PRINT_TYPEDEF): Delete.
1866 * typeprint.c (typedef_print): Call print_typedef directly on the
1867 current_language object.
1868
790e2a12
AB
18692020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1870
1871 * m2-exp.y (m2_parse): Rename to...
1872 (m2_language::parser): ...this. Update function signature.
1873 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
1874 (m2_op_print): Rename to...
1875 (m2_language::op_print_tab): ...this, and make const.
1876 (exp_descriptor_modula2): Rename to...
1877 (m2_language::exp_descriptor_modula2): ...this.
1878 (class m2_language): Move to m2-lang.h.
1879 (m2_language::language_arch_info): New function, moved out of
1880 class declaration.
1881 (m2_language::printchar): New function, body from m2_printchar.
1882 (m2_language::printstr): New function, moved out of class
1883 declaration.
1884 (m2_language::emitchar): Likewise.
1885 * m2-lang.h (m2_parse): Delete declaration.
1886 (m2_print_typedef): Delete declaration.
1887 (m2_value_print_inner): Delete declaration.
1888 (class m2_language): Class declaration moved from m2-lang.c,
1889 larger functions are left in m2-lang.c.
1890 * m2-typeprint.c (m2_print_typedef): Rename to...
1891 (m2_language::print_typedef): ...this, and update function
1892 signature.
1893 * m2-valprint.c (m2_value_print_inner): Rename to...
1894 (m2_language::value_print_inner): ...this, replace use of
1895 LA_PRINT_STRING with a direct call to printstr member function,
1896 and update recursive call.
1897
b01175fc
AB
18982020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1899
1900 * language.c (default_is_string_type_p): Delete, implementation
1901 moved into auto_or_unknown_language::is_string_type_p.
1902 (unk_op_print_tab): Moved into
1903 auto_or_unknown_language::opcode_print_table.
1904 (unknown_language_arch_info): Delete, implementation moved into
1905 auto_or_unknown_language::language_arch_info.
1906 (class auto_or_unknown_language): New class, member functions
1907 copied from unknown_language class, with some updates.
1908 (class unknown_language): Most member functions moved into
1909 auto_or_unknown_language class. Inherit from
1910 auto_or_unknown_language class.
1911 (class auto_language): Inherit from auto_or_unknown_language.
1912 Delete most member functions.
1913
1a97fe8c
HD
19142020-10-22 Hannes Domani <ssbssa@yahoo.de>
1915
1916 * stabsread.c (read_member_functions): Remove gdb_assert.
1917
6b9d0dfd
HD
19182020-10-22 Hannes Domani <ssbssa@yahoo.de>
1919
1920 * gdbtypes.c (init_complex_type): Check target type name.
1921
4b4bb603
SM
19222020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1923
1924 * target-debug.h (target_debug_print_struct_target_ops_p):
1925 Remove.
1926 (target_debug_print_async_callback_ftype_p): Remove.
1927 (target_debug_print_struct_trace_state_variable_p): Remove.
1928 (target_debug_print_struct_traceframe_info_p): Remove.
1929 (target_debug_print_VEC__btrace_block_s__pp): Remove.
1930 (target_debug_print_enum_btrace_format): Remove.
1931 (target_debug_print_enum_info_proc_what): Remove.
1932 (target_debug_print_thread_info_pp): Remove.
1933
24f5300a
SM
19342020-10-22 Simon Marchi <simon.marchi@efficios.com>
1935
1936 * target.h (struct target_ops) <make_corefile_notes>:
1937 Change return type to unique pointer.
1938 * target.c (dummy_make_corefile_notes): Likewise.
1939 * exec.c (struct exec_target) <make_corefile_notes>:
1940 Likewise.
1941 (exec_target::make_corefile_notes): Likewise.
1942 * procfs.c (class procfs_target) <make_corefile_notes>:
1943 Likewise.
1944 (procfs_do_thread_registers): Adjust to unique pointer.
1945 (struct procfs_corefile_thread_data): Add constructor.
1946 <note_data>: Change type to unique pointer.
1947 (procfs_corefile_thread_callback): Adjust to unique pointer.
1948 (procfs_target::make_corefile_notes): Change return type to
1949 unique pointer.
1950 * target-delegates.c: Re-generate.
1951 * gcore.c (write_gcore_file_1): Adjust.
1952 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
1953 New.
1954
5fb4027f
TV
19552020-10-22 Tom de Vries <tdevries@suse.de>
1956
1957 * block.c (find_block_in_blockvector): Make sure the returned block
1958 contains pc.
1959
4a636814
SM
19602020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
1961
1962 PR gdb/26693
1963 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
1964 parameter.
1965 (load_cu): Pass existing CU.
1966 (process_imported_unit_die): Likewise.
1967 (follow_die_offset): Likewise.
1968
1bd57575
LM
19692020-10-22 Luis Machado <luis.machado@linaro.org>
1970
1971 * corelow.c (core_target::xfer_partial): Also check for an empty
1972 m_core_unavailable_mappings vector.
1973
6b4c676c
AB
19742020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1975
1976 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
1977 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
1978 * f-exp.y (arglist): Allow for a series of subranges.
1979 (subrange): Add cases for subranges with strides.
1980 * f-lang.c (value_f90_subarray): Catch use of array strides and
1981 throw an error.
1982 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
1983
f2d8e4c5
AB
19842020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
1985
1986 * expprint.c (print_subexp_standard): Change enum range_type to
1987 range_flag and rename variables to match.
1988 (dump_subexp_body_standard): Likewise.
1989 * expression.h (enum range_type): Rename to...
1990 (enum range_flag): ...this.
1991 (range_types): Rename to...
1992 (range_flags): ...this.
1993 * f-lang.c (value_f90_subarray): Change enum range_type to
1994 range_flag and rename variables to match.
1995 * parse.c (operator_length_standard): Likewise.
1996 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
1997 range_type to range_flag.
1998 * rust-lang.c (rust_evaluate_funcall): Likewise.
1999 (rust_range): Likewise.
2000 (rust_compute_range): Likewise.
2001 (rust_subscript): Likewise.
2002
2f1b18db
AB
20032020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2004
2005 * expprint.c (print_subexp_standard): Update to reflect changes to
2006 enum range_type.
2007 (dump_subexp_body_standard): Likewise.
2008 * expression.h (enum range_type): Convert to a bit field enum, and
2009 make the enum unsigned.
2010 * f-exp.y (subrange): Update to reflect changes to enum
2011 range_type.
2012 * f-lang.c (value_f90_subarray): Likewise.
2013 * parse.c (operator_length_standard): Likewise.
2014 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
2015 * rust-lang.c (rust_range): Likewise.
2016 (rust_compute_range): Likewise.
2017 (rust_subscript): Likewise.
2018
a46d1843
SM
20192020-10-21 Simon Marchi <simon.marchi@efficios.com>
2020
2021 * infrun.c (displaced_step_in_progress_thread): Fix comment.
2022 (displaced_step_in_progress): Fix comment.
2023
c21f37a8
SM
20242020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
2025
2026 * gdbarch.sh (make_corefile_notes): Return unique pointer.
2027 * gdbarch.c: Re-generate.
2028 * gdbarch.h: Re-generate.
2029 * gcore.c (write_gcore_file_1): Adjust.
2030 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
2031 constructor.
2032 <note_data>: Change type to unique pointer.
2033 <abort_iteration>: Change type to bool.
2034 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
2035 (fbsd_collect_thread_registers): Return void, adjust.
2036 (struct fbsd_corefile_thread_data): Add construtor.
2037 <note_data>: Change type to unique pointer.
2038 (fbsd_corefile_thread): Adjust.
2039 (fbsd_make_corefile_notes): Return unique pointer, adjust.
2040 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
2041 to unique pointer, adjust.
2042 (struct linux_collect_regset_section_cb_data): Add constructor.
2043 <note_data>: Change type to unique pointer.
2044 <abort_iteration>: Change type to bool.
2045 (linux_collect_thread_registers): Return void, adjust.
2046 (struct linux_corefile_thread_data): Add constructor.
2047 <note_data>: Change type to unique pointer.
2048 (linux_corefile_thread): Adjust.
2049 (linux_make_corefile_notes): Return unique pointer, adjust.
2050
07fbbd01
SM
20512020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2052
2053 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
2054 * gdbarch.c: Re-generate.
2055 * gdbarch.h: Re-generate.
2056 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
2057 bool.
2058 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
2059 Likewise.
2060 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
2061 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
2062 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
2063 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
2064
39535193
SM
20652020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2066
2067 * gdbarch.sh: Make generated predicates return bool.
2068 * gdbarch.c: Re-generate.
2069 * gdbarch.h: Re-generate.
2070
ad523d01
TT
20712020-10-20 Tom Tromey <tom@tromey.com>
2072
2073 * varobj-iter.h (struct varobj_item): Remove typedef.
2074
c4464ade
SM
20752020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2076
2077 * infrun.c (currently_stepping): Change int to bool
2078 (maybe_software_singlestep): Likewise.
2079 (show_stop_on_solib_events): Likewise.
2080 (stepping_past_nonsteppable_watchpoint): Likewise.
2081 (displaced_step_in_progress_any_inferior): Likewise.
2082 (displaced_step_in_progress_thread): Likewise.
2083 (keep_going_stepped_thread): Likewise.
2084 (thread_still_needs_step_over): Likewise.
2085 (start_step_over): Likewise.
2086 (do_target_resume): Likewise.
2087 (resume_1): Likewise.
2088 (clear_proceed_status): Likewise.
2089 (thread_still_needs_step_over_bp): Likewise.
2090 (proceed): Likewise.
2091 (switch_back_to_stepped_thread): Likewise.
2092 (adjust_pc_after_break): Likewise.
2093 (stepped_in_from): Likewise.
2094 (handle_stop_requested): Likewise.
2095 (handle_syscall_event): Likewise.
2096 (handle_no_resumed): Likewise.
2097 (handle_inferior_event): Likewise.
2098 (finish_step_over): Likewise.
2099 (handle_signal_stop): Likewise.
2100 (process_event_stop_test): Likewise.
2101
2eb20436
SM
21022020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2103
2104 * infrun.c (get_displaced_stepping_state): Fix comment.
2105
e0c45ded
AS
21062020-10-20 Andreas Schwab <schwab@linux-m68k.org>
2107
2108 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
2109
22cc388e
TT
21102020-10-19 Tom Tromey <tromey@adacore.com>
2111
2112 PR tui/26719
2113 * tui/tui-winsource.h (struct tui_source_window_base)
2114 <refresh_window>: Rename from refresh_pad.
2115 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
2116 Rename from refresh_pad.
2117 (tui_source_window_base::show_source_content)
2118 (tui_source_window_base::do_scroll_horizontal): Update.
2119
3c6eb4d4
TBA
21202020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2121
2122 * thread.c (_initialize_thread): Fine-tune the help text of
2123 'info threads'.
2124
26703721
TBA
21252020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2126
2127 * frame.c: Remove the unused 'uinteger_option_def' type alias.
2128
61c26be8
MS
21292020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
2130
2131 * breakpoint.c (handle_jit_event): Add an argument, change how
2132 `jit_event_handler` is called.
2133
932539d7
TT
21342020-10-17 Tom Tromey <tom@tromey.com>
2135
2136 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
2137 (scan_xcoff_symtab): Update.
2138 * psymtab.h (class psymtab_storage) <global_psymbols,
2139 static_psymbols, current_global_psymbols,
2140 current_static_psymbols>: Remove.
2141 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
2142 (match_partial_symbol, lookup_partial_symbol): Update.
2143 (print_partial_symbols): Change parameters.
2144 (dump_psymtab, recursively_search_psymtabs)
2145 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
2146 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
2147 (concat): Remove.
2148 (end_psymtab_common): Simplify.
2149 (append_psymbol_to_list): Change parameters.
2150 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
2151 (init_psymbol_list): Simplify.
2152 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2153 * psympriv.h (struct partial_symtab) <empty>: New method.
2154 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
2155 Remove.
2156 <global_psymbols, static_psymbols>: New members.
2157 <add_psymbol>: New methods.
2158 (add_psymbol_to_list): Don't declare.
2159 (psymbol_placement): Move earlier.
2160 * mdebugread.c (parse_partial_symbols): Update.
2161 (handle_psymbol_enumerators): Change parameters.
2162 (mdebug_expand_psymtab): Update.
2163 * dwarf2/read.c (process_psymtab_comp_unit_reader)
2164 (add_partial_symbol): Update.
2165 * dwarf2/index-write.c (write_psymbols): Change parameters.
2166 (write_one_signatured_type): Update.
2167 (recursively_count_psymbols): Update.
2168 (recursively_write_psymbols): Update.
2169 (class debug_names) <recursively_write_psymbols>: Update.
2170 <write_psymbols>: Change parameters.
2171 <write_one_signatured_type>: Update.
2172 * dbxread.c (read_dbx_symtab): Update.
2173 (dbx_end_psymtab): Use partial_symtab::empty.
2174 * ctfread.c (struct ctf_context) <pst>: New member.
2175 (create_partial_symtab): Set it.
2176 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
2177 (scan_partial_symbols): Use the psymtab's context. Update.
2178
cfabbd35
TT
21792020-10-17 Tom Tromey <tom@tromey.com>
2180
2181 * valprint.c (generic_value_print): Remove comment.
2182 * m2-valprint.c (m2_value_print_inner): Remove comment.
2183 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
2184 type.
2185
520596f2
TV
21862020-10-17 Tom de Vries <tdevries@suse.de>
2187
2188 PR symtab/26317
2189 * source.c (select_source_symtab): Handling sal.symtab == NULL for
2190 symbol main.
2191
76547ab3
TV
21922020-10-14 Tom de Vries <tdevries@suse.de>
2193
2194 PR gdb/26733
2195 * solib.c (solib_contains_address_p): Handle
2196 'solib->sections == nullptr'.
2197
d3a07122
SM
21982020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2199
2200 PR gdb/26642
2201 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
2202 target can't do async.
2203 * target.c (target_wait): Assert that we don't pass
2204 TARGET_WNOHANG to a target that can't async.
2205
1b71cfcf
KR
22062020-10-13 Kamil Rytarowski <n54@gmx.com>
2207
2208 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
2209 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
2210 * alpha-bsd-nat.c: Adjust include.
2211 * alpha-bsd-tdep.h: Adjust comment.
2212 * alpha-nbsd-tdep.c: Rename to ...
2213 * alpha-netbsd-tdep.c: ... this, adjust include.
2214 * amd64-nbsd-nat.c: Rename to ...
2215 * amd64-netbsd-nat.c: ... this, adjust include.
2216 * amd64-nbsd-tdep.c: Rename to ...
2217 * amd64-netbsd-tdep.c: ... this, adjust include.
2218 * amd64-tdep.h: Adjust include.
2219 * arm-nbsd-nat.c: Rename to ...
2220 * arm-netbsd-nat.c: ... this, adjust include.
2221 * arm-nbsd-tdep.c: Rename to ...
2222 * arm-netbsd-tdep.c: ... this, adjust include.
2223 * arm-nbsd-tdep.h: Rename to ...
2224 * arm-netbsd-tdep.h: ... this, adjust include.
2225 * configure.nat: Adjust file lists.
2226 * configure.tgt: Likewise.
2227 * hppa-nbsd-nat.c: Rename to ...
2228 * hppa-netbsd-nat.c: ... this, adjust include.
2229 * hppa-nbsd-tdep.c: Rename to ...
2230 * hppa-netbsd-tdep.c: ... this, adjust include.
2231 * i386-nbsd-nat.c: Rename to ...
2232 * i386-netbsd-nat.c: ... this, adjust include.
2233 * i386-nbsd-tdep.c: Rename to ...
2234 * i386-netbsd-tdep.c: ... this, adjust include.
2235 * m68k-bsd-nat.c: Adjust include.
2236 * mips-nbsd-nat.c: Rename to ...
2237 * mips-netbsd-nat.c: ... this, adjust include.
2238 * mips-nbsd-tdep.c: Rename to ...
2239 * mips-netbsd-tdep.c: ... this, adjust include.
2240 * mips-nbsd-tdep.h: Rename to ...
2241 * mips-netbsd-tdep.h: ... this.
2242 * nbsd-nat.c: Rename to ...
2243 * netbsd-nat.c: ... this, adjust include.
2244 * nbsd-nat.h: Rename to ...
2245 * netbsd-nat.h: ... this, adjust include.
2246 * nbsd-tdep.c: Rename to ...
2247 * netbsd-tdep.c: ... this, adjust include.
2248 * nbsd-tdep.h: Rename to ...
2249 * netbsd-tdep.h: ... this.
2250 * ppc-nbsd-nat.c: Rename to ...
2251 * ppc-netbsd-nat.c: ... this, adjust include.
2252 * ppc-nbsd-tdep.c: Rename to ...
2253 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
2254 * ppc-nbsd-tdep.h: Rename to ...
2255 * ppc-netbsd-tdep.h: ... this.
2256 * sh-nbsd-nat.c: Rename to ...
2257 * sh-netbsd-nat.c: ... this, adjust include.
2258 * sh-nbsd-tdep.c: Rename to ...
2259 * sh-netbsd-tdep.c: ... this, adjust include.
2260 * sparc-nbsd-nat.c: Rename to ...
2261 * sparc-netbsd-nat.c: ... this.
2262 * sparc-nbsd-tdep.c: Rename to ...
2263 * sparc-netbsd-tdep.c: ... this, adjust include.
2264 * sparc64-nbsd-nat.c: Rename to ...
2265 * sparc64-netbsd-nat.c: ... this.
2266 * sparc64-nbsd-tdep.c: Rename to ...
2267 * sparc64-netbsd-tdep.c: ... this, adjust include.
2268 * sparc64-tdep.h: Adjust comment.
2269 * vax-bsd-nat.c: Adjust include.
2270 * vax-nbsd-tdep.c: Rename to ...
2271 * vax-netbsd-tdep.c: ... this, adjust include.
2272
d7a78e5c
TT
22732020-10-12 Tom Tromey <tom@tromey.com>
2274
2275 * target.h (struct target_ops) <get_section_table>: Update.
2276 (target_get_section_table): Update.
2277 * target.c (target_get_section_table, target_section_by_addr)
2278 (memory_xfer_partial_1): Update.
2279 * target-section.h (target_section_table): Now an alias.
2280 * target-delegates.c: Rebuild.
2281 * target-debug.h (target_debug_print_target_section_table_p):
2282 Rename from target_debug_print_struct_target_section_table_p.
2283 * symfile.c (build_section_addr_info_from_section_table): Update.
2284 * solib.c (solib_map_sections, solib_contains_address_p): Update.
2285 * solib-svr4.c (scan_dyntag): Update.
2286 * solib-dsbt.c (scan_dyntag): Update.
2287 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2288 Update.
2289 * record-full.c (record_full_core_target::xfer_partial): Update.
2290 * progspace.h (struct program_space) <target_sections>: Update.
2291 * exec.h (print_section_info): Update.
2292 * exec.c (exec_target::close, build_section_table)
2293 (add_target_sections, add_target_sections_of_objfile)
2294 (remove_target_sections, exec_on_vfork)
2295 (section_table_available_memory)
2296 (section_table_xfer_memory_partial)
2297 (exec_target::get_section_table, exec_target::xfer_partial)
2298 (print_section_info, set_section_command)
2299 (exec_set_section_address, exec_target::has_memory): Update.
2300 * corelow.c (core_target::build_file_mappings)
2301 (core_target::xfer_partial, core_target::info_proc_mappings)
2302 (core_target::info_proc_mappings): Update.
2303 * bfd-target.c (class target_bfd): Update
2304
eda214ce
TT
23052020-10-12 Tom Tromey <tom@tromey.com>
2306
2307 * progspace.c (program_space::~program_space): Don't call
2308 clear_section_table.
2309 * exec.h (clear_section_table): Don't declare.
2310 * exec.c (exec_target::close): Update.
2311 (clear_section_table): Remove.
2312
91840ee3
TT
23132020-10-12 Tom Tromey <tom@tromey.com>
2314
2315 * exec.c (add_target_sections_of_objfile): Simplify.
2316
2d128614
TT
23172020-10-12 Tom Tromey <tom@tromey.com>
2318
2319 * solib.c (solib_map_sections): Update.
2320 * record-full.c (record_full_core_open_1): Update.
2321 * exec.h (build_section_table): Return a target_section_table.
2322 * exec.c (exec_file_attach): Update.
2323 (build_section_table): Return a target_section_table.
2324 * corelow.c (core_target::core_target): Update.
2325 * bfd-target.c (target_bfd::target_bfd): Update.
2326
bb2a6777
TT
23272020-10-12 Tom Tromey <tom@tromey.com>
2328
2329 * target.c (target_section_by_addr, memory_xfer_partial_1):
2330 Update.
2331 * target-section.h (struct target_section_table): Use
2332 std::vector.
2333 * symfile.h (build_section_addr_info_from_section_table): Take a
2334 target_section_table.
2335 * symfile.c (build_section_addr_info_from_section_table): Take a
2336 target_section_table.
2337 * solist.h (struct so_list) <sections>: Change type.
2338 <sections_end>: Remove.
2339 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
2340 (solib_contains_address_p): Update.
2341 * solib-svr4.c (scan_dyntag): Update.
2342 * solib-dsbt.c (scan_dyntag): Update.
2343 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2344 Update.
2345 * record-full.c (record_full_core_start, record_full_core_end):
2346 Remove.
2347 (record_full_core_sections): New global.
2348 (record_full_core_open_1, record_full_core_target::xfer_partial):
2349 Update.
2350 * exec.h (build_section_table, section_table_xfer_memory_partial)
2351 (add_target_sections): Take a target_section_table.
2352 * exec.c (exec_file_attach, clear_section_table): Update.
2353 (resize_section_table): Remove.
2354 (build_section_table, add_target_sections): Take a
2355 target_section_table.
2356 (add_target_sections_of_objfile, remove_target_sections)
2357 (exec_on_vfork): Update.
2358 (section_table_available_memory): Take a target_section_table.
2359 (section_table_read_available_memory): Update.
2360 (section_table_xfer_memory_partial): Take a target_section_table.
2361 (print_section_info, set_section_command)
2362 (exec_set_section_address, exec_target::has_memory): Update.
2363 * corelow.c (class core_target) <m_core_section_table,
2364 m_core_file_mappings>: Remove braces.
2365 <~core_target>: Remove.
2366 (core_target::core_target): Update.
2367 (core_target::~core_target): Remove.
2368 (core_target::build_file_mappings)
2369 (core_target::xfer_memory_via_mappings)
2370 (core_target::xfer_partial, core_target::info_proc_mappings):
2371 Update.
2372 * bfd-target.c (target_bfd::xfer_partial): Update.
2373 (target_bfd::target_bfd): Update.
2374 (target_bfd::~target_bfd): Remove.
2375
7b466b10
TT
23762020-10-12 Tom Tromey <tom@tromey.com>
2377
2378 * target.h (struct target_section, struct target_section_table):
2379 Move to target-section.h.
2380 * target-section.h: New file.
2381
87a37e5e
PA
23822020-10-12 Pedro Alves <pedro@palves.net>
2383
2384 PR exp/26602
2385 * valops.c (struct struct_field_searcher): New.
2386 (update_search_result): Rename to ...
2387 (struct_field_searcher::update_result): ... this. Simplify
2388 prototype. Record all found fields.
2389 (do_search_struct_field): Rename to ...
2390 (struct_field_searcher::search): ... this. Simplify prototype.
2391 Maintain stack of visited baseclass path. Call update_result for
2392 fields too. Keep searching fields in baseclasses instead of
2393 stopping at the first found field.
2394 (search_struct_field): Use struct_field_searcher. When looking
2395 for fields, report ambiguous access attempts.
2396
9370fd51
AB
23972020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
2398
2399 * frame.c (inside_main_func): Check full symbols as well as
2400 minimal symbols.
2401
59c8a30b
JB
24022020-10-09 Joel Brobecker <brobecker@adacore.com>
2403
2404 * ada-lang.c (advance_wild_match): Rewrite the function's
2405 description. Change the type of target0, t0 and t1 to char.
2406
7c184d33
TT
24072020-10-09 Tom Tromey <tromey@adacore.com>
2408
2409 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
2410
5c4258f4
TT
24112020-10-09 Tom Tromey <tromey@adacore.com>
2412
2413 * ada-lang.h (ada_encode): Return std::string.
2414 * ada-lang.c (ada_encode_1): Return std::string.
2415 (ada_encode): Likewise.
2416 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
2417 Update.
2418 * ada-exp.y (block_lookup, write_var_or_type): Update.
2419
3d87245c
HD
24202020-10-09 Hannes Domani <ssbssa@yahoo.de>
2421
2422 PR exp/26714
2423 * printcmd.c (print_formatted): Handle void results as
2424 unformatted prints.
2425
bbb826f5
AB
24262020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2427
2428 * arch/aarch32.c (aarch32_create_target_description): Release the
2429 target_desc_up as late as possible.
2430 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2431 * arch/amd64.c (amd64_create_target_description): Likewise.
2432 * arch/arc.c (arc_create_target_description): Return a
2433 target_desc_up, don't release it.
2434 * arch/arc.h (arc_create_target_description): Update declaration.
2435 (arc_lookup_target_description): Move target_desc_up into the
2436 cache, and return a borrowed pointer.
2437 * arch/arm.c (arm_create_target_description): Release the
2438 target_desc_up as late as possible.
2439 * arch/i386.c (i386_create_target_description): Likewise.
2440 * arch/riscv.h (riscv_create_target_description): Update
2441 declaration to match definition.
2442 * arch/tic6x.c (tic6x_create_target_description): Release the
2443 target_desc_up as late as possible.
2444
361cb219
AB
24452020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2446
2447 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
2448 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
2449
f5c4b229
JV
24502020-10-09 Jan Vrany <jan.vrany@labware.com>
2451
2452 * source.c (directory_command): Notify observers that "directories"
2453 parameter has changed.
2454
b2701685
TT
24552020-10-08 Tom Tromey <tom@tromey.com>
2456
2457 * cli/cli-cmds.c (print_disassembly): Style function name and
2458 addresses. Add _() wrappers.
2459
ada508b6
SV
24602020-10-08 Shahab Vahedi <shahab@synopsys.com>
2461
2462 * NEWS: Mention ARC support in GDBserver.
2463
51a948fd
AB
24642020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
2465
2466 * arch/aarch32.c (aarch32_create_target_description): Release
2467 unique_ptr returned from allocate_target_description.
2468 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2469 * arch/amd64.c (amd64_create_target_description): Likewise.
2470 * arch/arc.c (arc_create_target_description): Likewise.
2471 * arch/arm.c (arm_create_target_description): Likewise.
2472 * arch/i386.c (i386_create_target_description): Likewise.
2473 * arch/riscv.c (riscv_create_target_description): Update return
2474 type. Handle allocate_target_description returning a unique_ptr.
2475 (riscv_lookup_target_description): Update to handle unique_ptr.
2476 * arch/tic6x.c (tic6x_create_target_description): Release
2477 unique_ptr returned from allocate_target_description.
2478 * features/microblaze-with-stack-protect.c: Regenerate.
2479 * features/microblaze.c: Regenerate.
2480 * features/mips-dsp-linux.c: Regenerate.
2481 * features/mips-linux.c: Regenerate.
2482 * features/mips64-dsp-linux.c: Regenerate.
2483 * features/mips64-linux.c: Regenerate.
2484 * features/nds32.c: Regenerate.
2485 * features/nios2.c: Regenerate.
2486 * features/or1k.c: Regenerate.
2487 * features/rs6000/powerpc-32.c: Regenerate.
2488 * features/rs6000/powerpc-32l.c: Regenerate.
2489 * features/rs6000/powerpc-403.c: Regenerate.
2490 * features/rs6000/powerpc-403gc.c: Regenerate.
2491 * features/rs6000/powerpc-405.c: Regenerate.
2492 * features/rs6000/powerpc-505.c: Regenerate.
2493 * features/rs6000/powerpc-601.c: Regenerate.
2494 * features/rs6000/powerpc-602.c: Regenerate.
2495 * features/rs6000/powerpc-603.c: Regenerate.
2496 * features/rs6000/powerpc-604.c: Regenerate.
2497 * features/rs6000/powerpc-64.c: Regenerate.
2498 * features/rs6000/powerpc-64l.c: Regenerate.
2499 * features/rs6000/powerpc-7400.c: Regenerate.
2500 * features/rs6000/powerpc-750.c: Regenerate.
2501 * features/rs6000/powerpc-860.c: Regenerate.
2502 * features/rs6000/powerpc-altivec32.c: Regenerate.
2503 * features/rs6000/powerpc-altivec32l.c: Regenerate.
2504 * features/rs6000/powerpc-altivec64.c: Regenerate.
2505 * features/rs6000/powerpc-altivec64l.c: Regenerate.
2506 * features/rs6000/powerpc-e500.c: Regenerate.
2507 * features/rs6000/powerpc-e500l.c: Regenerate.
2508 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
2509 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
2510 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
2511 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
2512 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
2513 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
2514 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
2515 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
2516 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
2517 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
2518 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
2519 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
2520 * features/rs6000/powerpc-vsx32.c: Regenerate.
2521 * features/rs6000/powerpc-vsx32l.c: Regenerate.
2522 * features/rs6000/powerpc-vsx64.c: Regenerate.
2523 * features/rs6000/powerpc-vsx64l.c: Regenerate.
2524 * features/rs6000/rs6000.c: Regenerate.
2525 * features/rx.c: Regenerate.
2526 * features/s390-gs-linux64.c: Regenerate.
2527 * features/s390-linux32.c: Regenerate.
2528 * features/s390-linux32v1.c: Regenerate.
2529 * features/s390-linux32v2.c: Regenerate.
2530 * features/s390-linux64.c: Regenerate.
2531 * features/s390-linux64v1.c: Regenerate.
2532 * features/s390-linux64v2.c: Regenerate.
2533 * features/s390-te-linux64.c: Regenerate.
2534 * features/s390-tevx-linux64.c: Regenerate.
2535 * features/s390-vx-linux64.c: Regenerate.
2536 * features/s390x-gs-linux64.c: Regenerate.
2537 * features/s390x-linux64.c: Regenerate.
2538 * features/s390x-linux64v1.c: Regenerate.
2539 * features/s390x-linux64v2.c: Regenerate.
2540 * features/s390x-te-linux64.c: Regenerate.
2541 * features/s390x-tevx-linux64.c: Regenerate.
2542 * features/s390x-vx-linux64.c: Regenerate.
2543 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
2544 from allocate_target_description.
2545 * target-descriptions.c (allocate_target_description): Update
2546 return type.
2547 (print_c_tdesc::visit_pre): Release unique_ptr returned from
2548 allocate_target_description.
2549
485c47e5
TT
25502020-10-07 Tom Tromey <tromey@adacore.com>
2551
2552 * unittests/search-memory-selftests.c: New file.
2553 * Makefile.in (SELFTESTS_SRCS): Add
2554 unittests/search-memory-selftests.c.
2555
3a135a91
TT
25562020-10-07 Tom Tromey <tromey@adacore.com>
2557
2558 PR gdb/16930:
2559 * findcmd.c (_initialize_mem_search): Mention that the range is
2560 inclusive.
2561
4a72de73
TT
25622020-10-07 Tom Tromey <tromey@adacore.com>
2563
2564 * target.h (simple_search_memory): Don't declare.
2565 * target.c (simple_search_memory): Move to gdbsupport.
2566 (default_search_memory): Update.
2567 * remote.c (remote_target::search_memory): Update.
2568
a038ffd8
SM
25692020-10-07 Simon Marchi <simon.marchi@efficios.com>
2570
2571 * Makefile.in (COMPILE): Add CXXFLAGS.
2572 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
2573 (check-headers): Add CXXFLAGS.
2574
cc463201
AK
25752020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
2576
2577 * arc-linux-tdep.h: New file.
2578 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
2579 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
2580 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
2581 arc_linux_gregset, arc_linux_v2_regset,
2582 arc_linux_iterate_over_regset_sections,
2583 arc_linux_core_read_description): Implement.
2584 (arc_linux_init_osabi): Set iterate_over_regset_sections.
2585 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
2586 (arc_gdbarch_features_create): Add.
2587 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
2588
e4bd363f
SV
25892020-10-07 Shahab Vahedi <shahab@synopsys.com>
2590
2591 * arch/arc.h: Rename "arc_gdbarch_features" to
2592 "arc_arch_features".
2593 * arc-tdep.h: Likewise.
2594 * arc-tdep.c: Likewise.
2595
b68bef99
TBA
25962020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2597
2598 * infcmd.c (attach_command): Remove the redundant call to
2599 `clear_proceed_status`.
2600
4641551a
KR
26012020-10-07 Kamil Rytarowski <n54@gmx.com>
2602
2603 * nat/netbsd-nat.c (write_memory, read_memory): Update.
2604
91e5e8db
KR
26052020-10-07 Kamil Rytarowski <n54@gmx.com>
2606
2607 * nat/netbsd-nat.c (write_memory, read_memory): Add.
2608 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
2609 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
2610
64c03bdb
SM
26112020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
2612
2613 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
2614 (_initialize_break_catch_sig): Don't allocate array.
2615
31a8f60f
AB
26162020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
2617
2618 * symtab.c (find_pc_line): Return unmapped addresses when the
2619 requested address is also unmapped.
2620
9e6dbd8b
SM
26212020-10-05 Simon Marchi <simon.marchi@efficios.com>
2622
2623 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
2624 tui/tui-out.h.
2625
a1d217e8
SM
26262020-10-05 Simon Marchi <simon.marchi@efficios.com>
2627
2628 * amd64-windows-tdep.c (amd64_windows_return_value): Use
2629 type::is_vector instead of TYPE_VECTOR.
2630
7d144117
SM
26312020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
2632
2633 * auto-load.c (auto_load_objfile_script_1): Don't use
2634 debugfile_holder as temporary variable when stripping drive
2635 letter.
2636
cd096ec8
HD
26372020-10-05 Hannes Domani <ssbssa@yahoo.de>
2638
2639 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
2640 Add TYPE_CODE_COMPLEX.
2641 (amd64_windows_return_value): Fix types returned via XMM0.
2642
b58e7f72
AH
26432020-10-05 Alan Hayward <alan.hayward@arm.com>
2644
2645 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
2646 AArch64/ARM maintainers.
2647
8d378f27
SM
26482020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
2649
2650 * NEWS: Mention set/show debug event-loop.
2651
d5519913
TT
26522020-10-02 Tom Tromey <tromey@adacore.com>
2653
2654 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
2655 REG_EXTENDED.
2656
18b67edc
SM
26572020-10-02 Simon Marchi <simon.marchi@efficios.com>
2658
2659 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
2660 * procfs.c (procfs_inferior_created): Remove.
2661 (_initialize_procfs): Don't register procfs_inferior_created.
2662
6b01403b
SM
26632020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2664
2665 * async-event.c (invoke_async_signal_handlers): Add debug
2666 print.
2667 (check_async_event_handlers): Likewise.
2668 * event-top.c (show_debug_event_loop): New function.
2669 (_initialize_event_top): Register "set debug event-loop"
2670 setting.
2671
ba988419
SM
26722020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2673
2674 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
2675 * debug.h: Remove.
2676 * infrun.c: Include gdbsupport/common-debug.h.
2677 * linux-nat.c: Likewise.
2678
db20ebdf
SM
26792020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2680
2681 * async-event.h (create_async_signal_handler): Add name
2682 parameter.
2683 (create_async_event_handler): Likewise.
2684 * async-event.c (struct async_signal_handler) <name>: New field.
2685 (struct async_event_handler) <name>: New field.
2686 (create_async_signal_handler): Assign name.
2687 (create_async_event_handler): Assign name.
2688 * event-top.c (async_init_signals): Pass name when creating
2689 handler.
2690 * infrun.c (_initialize_infrun): Likewise.
2691 * record-btrace.c (record_btrace_push_target): Likewise.
2692 * record-full.c (record_full_open): Likewise.
2693 * remote-notif.c (remote_notif_state_allocate): Likewise.
2694 * remote.c (remote_target::open_1): Likewise.
2695 * tui/tui-win.c (tui_initialize_win): Likewise.
2696
2554f6f5
SM
26972020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2698
2699 * async-event.c (initialize_async_signal_handlers): Pass name to
2700 add_file_handler
2701 * event-top.c (ui_register_input_event_handler): Likewise.
2702 * linux-nat.c (linux_nat_target::async): Likewise.
2703 * run-on-main-thread.c (_initialize_run_on_main_thread):
2704 Likewise
2705 * ser-base.c (reschedule): Likewise.
2706 (ser_base_async): Likewise.
2707 * tui/tui-io.c: Likewise.
2708 * top.h (struct ui) <num>: New field.
2709 * top.c (highest_ui_num): New variable.
2710 (ui::ui): Initialize num.
2711
a7aba266
SM
27122020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2713
2714 * observable.h <inferior_created>: Remove parameters. Update all
2715 listeners.
2716 * inferior.h (post_create_inferior): Remove target parameter.
2717 Update all callers.
2718
048fde1e 27192020-10-02 Nitika Achra <Nitika.Achra@amd.com>
2720
2721 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
2722 and DW_MACRO_undef_strx.
2723 (dwarf_decode_macros): Likewise
2724 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
2725 which is the value of DW_AT_str_offsets_base.
2726 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
2727 str_offsets_base.
2728
064280be
KR
27292020-10-01 Kamil Rytarowski <n54@gmx.com>
2730
2731 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
2732
6ff33035
KR
27332020-10-01 Kamil Rytarowski <n54@gmx.com>
2734
2735 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
2736 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
2737
1eb6eb79
KR
27382020-10-01 Kamil Rytarowski <n54@gmx.com>
2739
2740 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
2741
95eb9e54
TV
27422020-09-30 Tom de Vries <tdevries@suse.de>
2743
2744 PR symtab/26683
2745 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
2746
cae21f8e
TT
27472020-09-30 Tom Tromey <tromey@adacore.com>
2748
2749 * dwarf2/read.c (handle_variant): Use constant_value.
2750
529908cb
TT
27512020-09-29 Tom Tromey <tom@tromey.com>
2752
2753 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
2754 (read_file_scope, dwarf2_get_pc_bounds)
2755 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
2756 (read_structure_type, handle_struct_member_die)
2757 (read_enumeration_type, read_array_type, read_set_type)
2758 (read_tag_pointer_type, read_tag_reference_type)
2759 (read_subroutine_type, read_base_type, read_subrange_type)
2760 (read_full_die_1, partial_die_info::read)
2761 (partial_die_info::read, by, new_symbol)
2762 (dwarf2_const_value_data, dwarf2_const_value_attr)
2763 (dump_die_shallow, dwarf2_fetch_constant_bytes)
2764 (prepare_one_comp_unit): Update.
2765 * dwarf2/attribute.h (DW_UNSND): Remove.
2766
c45bc3f8
TT
27672020-09-29 Tom Tromey <tom@tromey.com>
2768
2769 * dwarf2/read.c (read_func_scope, prototyped_function_p)
2770 (read_subroutine_type, partial_die_info::read)
2771 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
2772 (dwarf2_add_member_fn): Update.
2773 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
2774 * dwarf2/attribute.c (attribute::as_boolean): New method.
2775
23dca5c3
TT
27762020-09-29 Tom Tromey <tom@tromey.com>
2777
2778 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
2779 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
2780 method.
2781 * dwarf2/attribute.c (attribute::as_virtuality): New method.
2782
52c14d11
TT
27832020-09-29 Tom Tromey <tom@tromey.com>
2784
2785 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
2786 the attribute's form.
2787
e8e5c158
TT
27882020-09-29 Tom Tromey <tom@tromey.com>
2789
2790 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
2791 (dwarf2_add_member_fn): Update.
2792 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
2793 * dwarf2/attribute.c (attribute::defaulted): New method, from
2794 is_valid_DW_AT_defaulted.
2795
d4df075e
TT
27962020-09-29 Tom Tromey <tom@tromey.com>
2797
2798 * dwarf2/read.c (dw2_get_file_names_reader)
2799 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
2800 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
2801 (dwarf2_symbol_mark_computed): Use as_unsigned.
2802 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
2803 method.
2804 <form_is_section_offset>: Update comment.
2805
bf23a268
TT
28062020-09-29 Tom Tromey <tom@tromey.com>
2807
2808 * dwarf2/read.c (dwarf2_access_attribute): Rename from
2809 dwarf2_default_access_attribute. Look up attribute.
2810 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
2811 Update.
2812
7a5f294d
TT
28132020-09-29 Tom Tromey <tom@tromey.com>
2814
2815 * dwarf2/read.c (skip_one_die): Update.
2816 (read_full_die_1): Change how reprocessing is done.
2817 (partial_die_info::read): Update.
2818 (read_attribute_value): Remove need_reprocess parameter.
2819 (read_attribute): Likewise.
2820 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
2821 New method.
2822
36d378cf
TT
28232020-09-29 Tom Tromey <tom@tromey.com>
2824
2825 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
2826 (dwarf2_const_value_attr, dump_die_shallow)
2827 (dwarf2_fetch_constant_bytes): Update.
2828 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
2829 comment.
2830 <set_address>: New method.
2831 (DW_ADDR): Remove.
2832 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
2833 (attribute::as_string, attribute::as_address): Add assert.
2834
fe56917a
TT
28352020-09-29 Tom Tromey <tom@tromey.com>
2836
2837 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
2838 (read_attribute_reprocess, read_attribute_value): Update.
2839 (read_attribute): Clear requires_reprocessing.
2840 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
2841 form_requires_reprocessing>: New methods.
2842 <string_init>: Clear requires_reprocessing.
2843 <set_unsigned_reprocess>: New method.
2844 <name>: Shrink by one bit.
2845 <requires_reprocessing>: New member.
2846 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
2847 method.
2848
414ad644
TT
28492020-09-29 Tom Tromey <tom@tromey.com>
2850
2851 * dwarf2/read.c (read_attribute_value): Update.
2852 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
2853 set_unsigned>: New methods.
2854 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
2855
1bc397c5
TT
28562020-09-29 Tom Tromey <tom@tromey.com>
2857
2858 * dwarf2/read.c (get_alignment, read_array_order)
2859 (read_attribute_value, dwarf2_const_value_attr)
2860 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
2861 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
2862 New methods.
2863 (DW_SND): Remove.
2864
630ed6b9
TT
28652020-09-29 Tom Tromey <tom@tromey.com>
2866
2867 * dwarf2/read.c (read_attribute_value, lookup_die_type)
2868 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
2869 Update.
2870 * dwarf2/attribute.h (struct attribute) <as_signature,
2871 set_signature>: New methods.
2872 (DW_SIGNATURE): Remove.
2873
9d2246fc
TT
28742020-09-29 Tom Tromey <tom@tromey.com>
2875
2876 * dwarf2/read.c (read_call_site_scope)
2877 (handle_data_member_location, dwarf2_add_member_fn)
2878 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
2879 (partial_die_info::read, read_attribute_value)
2880 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
2881 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
2882 (dwarf2_symbol_mark_computed): Update.
2883 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
2884 methods.
2885 (DW_BLOCK): Remove.
2886 * dwarf2/attribute.c (attribute::form_is_block): Add
2887 DW_FORM_data16.
2888
c6481205
TT
28892020-09-29 Tom Tromey <tom@tromey.com>
2890
2891 * dwarf2/read.c (read_cutu_die_from_dwo)
2892 (read_attribute_reprocess, read_attribute_value, read_attribute)
2893 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
2894 (dwarf2_fetch_constant_bytes): Update.
2895 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
2896 <set_string_noncanonical, set_string_canonical>: New methods.
2897 <string_is_canonical>: Update comment.
2898 <canonical_string_p>: Add assert.
2899 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
2900 * dwarf2/attribute.c (attribute::form_is_string): New method.
2901 (attribute::string): Use it.
2902
3b64bf15
TT
29032020-09-29 Tom Tromey <tom@tromey.com>
2904
2905 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
2906 (dump_die_shallow): Use canonical_string_p.
2907 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
2908 method.
2909
2c830f54
TT
29102020-09-29 Tom Tromey <tom@tromey.com>
2911
2912 * dwarf2/read.c (partial_die_info::read)
2913 (dwarf2_const_value_attr, anonymous_struct_prefix, )
2914 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
2915 attribute::as_string.
2916
6c412691
TT
29172020-09-29 Tom Tromey <tom@tromey.com>
2918
2919 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
2920 DW_ADDR.
2921 (attribute::string): Don't use DW_STRING.
2922 (attribute::get_ref_die_offset): Don't use DW_UNSND.
2923 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
2924
95f982e5
TT
29252020-09-29 Tom Tromey <tom@tromey.com>
2926
2927 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
2928 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
2929 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
2930 * dwarf2/attribute.h (struct attribute): Rename methods.
2931 * dwarf2/attribute.c (attribute::as_address): Rename from
2932 value_as_address.
2933 (attribute::as_string): Rename from value_as_string.
2934
f800b00e
TT
29352020-09-29 Tom Tromey <tom@tromey.com>
2936
2937 * dwarf2/read.c (partial_die_info::read) <case
2938 DW_AT_linkage_name>: Use value_as_string.
2939 (dwarf2_string_attr): Use value_as_string.
2940 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
2941 method.
2942 * dwarf2/attribute.c (attribute::value_as_string): New method.
2943
de38d64a
PA
29442020-09-29 Pedro Alves <pedro@palves.net>
2945
2946 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
2947 defined before using '#pragma GCC diagnostic' instead of checking
2948 __clang__.
2949
9aed480c
TT
29502020-09-28 Tom Tromey <tom@tromey.com>
2951
2952 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
2953 (handle_signal_stop): Update.
2954 * procfs.c (procfs_target::insert_watchpoint): Update.
2955 * target.h (target_have_steppable_watchpoint): Now a function.
2956
8a3ecb79
TT
29572020-09-28 Tom Tromey <tom@tromey.com>
2958
2959 * infrun.c (set_schedlock_func): Update.
2960 * target.h (target_can_lock_scheduler): Now a function.
2961
55f6301a
TT
29622020-09-28 Tom Tromey <tom@tromey.com>
2963
2964 * inferior.h (class inferior) <has_execution>: Update.
2965 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
2966 * valops.c (find_function_in_inferior)
2967 (value_allocate_space_in_inferior): Update.
2968 * top.c (kill_or_detach): Update.
2969 * target.c (target_preopen, set_target_permissions): Update.
2970 (target_has_execution_current): Remove.
2971 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
2972 Update.
2973 * solib.c (update_solib_list, reload_shared_libraries): Update.
2974 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
2975 * solib-dsbt.c (enable_break): Update.
2976 * score-tdep.c (score7_fetch_inst): Update.
2977 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
2978 Update.
2979 * remote.c (remote_target::start_remote)
2980 (remote_target::remote_check_symbols, remote_target::open_1)
2981 (remote_target::remote_detach_1, remote_target::verify_memory)
2982 (remote_target::xfer_partial, remote_target::read_description)
2983 (remote_target::get_min_fast_tracepoint_insn_len): Update.
2984 * record-full.c (record_full_open_1): Update.
2985 * record-btrace.c (record_btrace_target_open): Update.
2986 * objc-lang.c (lookup_objc_class, lookup_child_selector)
2987 (value_nsstring): Update.
2988 * linux-thread-db.c (add_thread_db_info)
2989 (thread_db_find_new_threads_silently, check_thread_db_callback)
2990 (try_thread_db_load_1, record_thread): Update.
2991 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
2992 Update.
2993 * linux-fork.c (checkpoint_command): Update.
2994 * infrun.c (set_non_stop, set_observer_mode)
2995 (check_multi_target_resumption, for_each_just_stopped_thread)
2996 (maybe_remove_breakpoints, normal_stop)
2997 (class infcall_suspend_state): Update.
2998 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
2999 (info_program_command, attach_command): Update.
3000 * infcall.c (call_function_by_hand_dummy): Update.
3001 * inf-loop.c (inferior_event_handler): Update.
3002 * gcore.c (gcore_command, derive_heap_segment): Update.
3003 * exec.c (exec_file_command): Update.
3004 * eval.c (evaluate_subexp): Update.
3005 * compile/compile.c (compile_to_object): Update.
3006 * cli/cli-dump.c (restore_command): Update.
3007 * breakpoint.c (update_watchpoint)
3008 (update_inserted_breakpoint_locations)
3009 (insert_breakpoint_locations, get_bpstat_thread): Update.
3010 * target.h (target_has_execution): Remove macro.
3011 (target_has_execution_current): Don't declare.
3012 (target_has_execution): Rename from target_has_execution_1. Add
3013 argument default.
3014
05374cfd
TT
30152020-09-28 Tom Tromey <tom@tromey.com>
3016
3017 * mi/mi-main.c (exec_reverse_continue)
3018 (mi_cmd_list_target_features): Update.
3019 * infrun.c (set_exec_direction_func): Update.
3020 * target.c (default_execution_direction): Update.
3021 * reverse.c (exec_reverse_once): Update.
3022 * target.h (target_can_execute_reverse): Now a function.
3023
9dccd06e
TT
30242020-09-28 Tom Tromey <tom@tromey.com>
3025
3026 * tui/tui-regs.c (tui_get_register)
3027 (tui_data_window::show_registers): Update.
3028 * thread.c (scoped_restore_current_thread::restore)
3029 (scoped_restore_current_thread::scoped_restore_current_thread):
3030 Update.
3031 * regcache-dump.c (regcache_print): Update.
3032 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
3033 Update.
3034 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
3035 * mep-tdep.c (current_me_module, current_options): Update.
3036 * linux-thread-db.c (thread_db_load): Update.
3037 * infcmd.c (registers_info, info_vector_command)
3038 (info_float_command): Update.
3039 * ia64-tdep.c (ia64_frame_prev_register)
3040 (ia64_sigtramp_frame_prev_register): Update.
3041 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
3042 * gcore.c (derive_stack_segment): Update.
3043 * frame.c (get_current_frame, has_stack_frames): Update.
3044 * findvar.c (language_defn::read_var_value): Update.
3045 * arm-tdep.c (arm_pc_is_thumb): Update.
3046 * target.c (target_has_registers): Rename from
3047 target_has_registers_1.
3048 * target.h (target_has_registers): Remove macro.
3049 (target_has_registers): Rename from target_has_registers_1.
3050
841de120
TT
30512020-09-28 Tom Tromey <tom@tromey.com>
3052
3053 * windows-tdep.c (tlb_make_value): Update.
3054 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3055 * thread.c (scoped_restore_current_thread::restore)
3056 (scoped_restore_current_thread::scoped_restore_current_thread)
3057 (thread_command): Update.
3058 * stack.c (backtrace_command_1, frame_apply_level_command)
3059 (frame_apply_all_command, frame_apply_command): Update.
3060 * infrun.c (siginfo_make_value, restore_infcall_control_state):
3061 Update.
3062 * gcore.c (derive_stack_segment): Update.
3063 * frame.c (get_current_frame, has_stack_frames): Update.
3064 * auxv.c (info_auxv_command): Update.
3065 * ada-tasks.c (ada_build_task_list): Update.
3066 * target.c (target_has_stack): Rename from target_has_stack_1.
3067 * target.h (target_has_stack): Remove macro.
3068 (target_has_stack): Rename from target_has_stack_1.
3069
a739972c
TT
30702020-09-28 Tom Tromey <tom@tromey.com>
3071
3072 * target.c (target_has_memory): Rename from target_has_memory_1.
3073 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3074 * thread.c (scoped_restore_current_thread::restore)
3075 (scoped_restore_current_thread::scoped_restore_current_thread):
3076 Update.
3077 * frame.c (get_current_frame, has_stack_frames): Update.
3078 * target.h (target_has_memory): Remove macro.
3079 (target_has_memory): Rename from target_has_memory_1.
3080
5b8a4776
TT
30812020-09-28 Tom Tromey <tom@tromey.com>
3082
3083 * target.c (target_has_all_memory_1): Remove.
3084 * target.h (target_has_all_memory): Remove define.
3085 (target_has_all_memory_1): Don't declare.
3086
bd356ec6
SM
30872020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
3088
3089 * ser-base.c: Adjust comments formatting.
3090
2c72d5e5
TT
30912020-09-27 Tom Tromey <tom@tromey.com>
3092
3093 PR tui/25342:
3094 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
3095
35a98237
TT
30962020-09-27 Tom Tromey <tom@tromey.com>
3097
3098 PR tui/25342:
3099 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
3100
9e820dec
TT
31012020-09-27 Tom Tromey <tom@tromey.com>
3102
3103 * unittests/tui-selftests.c: Update.
3104 * tui/tui-winsource.h (struct tui_source_window_base)
3105 <extra_margin, show_line_number, refresh_pad>: New methods.
3106 <m_max_length, m_pad>: New members.
3107 (tui_copy_source_line): Update.
3108 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
3109 first_col, line_width, ndigits parameters. Add length.
3110 (tui_source_window_base::show_source_line): Write to pad. Line
3111 number now 0-based.
3112 (tui_source_window_base::refresh_pad): New method.
3113 (tui_source_window_base::show_source_content): Write to pad. Call
3114 refresh_pad.
3115 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
3116 not refill.
3117 (tui_source_window_base::update_exec_info): Call
3118 show_line_number.
3119 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
3120 method.
3121 <m_digits>: New member.
3122 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
3123 and m_max_length.
3124 (tui_source_window::show_line_number): New method.
3125 * tui/tui-io.h (tui_puts): Fix comment.
3126 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
3127 m_max_length.
3128
c15c15c8
TT
31292020-09-27 Tom Tromey <tom@tromey.com>
3130
3131 * tui/tui-winsource.c
3132 (tui_source_window_base::set_is_exec_point_at): Don't call
3133 show_source_line.
3134
149830c1
TT
31352020-09-27 Tom Tromey <tom@tromey.com>
3136
3137 * python/py-tui.c (class tui_py_window) <refresh_window>: New
3138 method.
3139 <erase>: Update.
3140 <cursor_x, cursor_y>: Remove.
3141 <m_inner_window>: New member.
3142 (tui_py_window::rerender): Create inner window.
3143 (tui_py_window::output): Write to inner window.
3144
8f9929bb
GR
31452020-09-26 Gareth Rees <grees@undo.io> (tiny change)
3146
3147 PR python/26586
3148 * cli/cli-script.c (execute_control_commands): don't set
3149 instream to nullptr here as this breaks the from_tty argument
3150 to gdb.execute in Python.
3151 (execute_user_command): set instream to nullptr here instead.
3152
956bdb59
SM
31532020-09-25 Simon Marchi <simon.marchi@efficios.com>
3154
3155 * infrun.h (infrun_debug_printf): Fix formatting.
3156 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
3157
3b93626b
SJ
31582020-09-25 Saagar Jha <saagar@saagarjha.com>
3159
3160 * compile/compile-object-load.h (struct munmap_list): Add
3161 explicitly-defined move constructor.
3162
b551a89f
TT
31632020-09-24 Tom Tromey <tromey@adacore.com>
3164
3165 PR tui/26638:
3166 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
3167 method.
3168 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
3169 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
3170 (tui_prev_win): Rewrite.
3171
99bb393f
HD
31722020-09-23 Hannes Domani <ssbssa@yahoo.de>
3173
3174 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
3175 in WOW64 processes as SIGINT.
3176 * nat/windows-nat.h: Make wow64_process a shared variable.
3177 * windows-nat.c: Remove static wow64_process variable.
3178
20a5fcbd
TT
31792020-09-23 Tom Tromey <tom@tromey.com>
3180
3181 PR symtab/25470:
3182 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
3183 offset and bit size.
3184 * printcmd.c (print_scalar_formatted): Handle zero-length
3185 integer.
3186 (print_scalar_formatted): Use bit_size_differs_p.
3187 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
3188 constant.
3189 (union type_specific): <int_stuff>: New member.
3190 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
3191 methods.
3192 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
3193 TYPE_SPECIFIC_FIELD.
3194 (recursive_dump_type, copy_type_recursive): Update.
3195 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
3196 DW_AT_data_bit_offset.
3197
bac51ab7
TT
31982020-09-23 Tom Tromey <tom@tromey.com>
3199
3200 * utils.h (class gdb_argv): Add move operators.
3201 <append>: New methods.
3202 * compile/compile.c (build_argc_argv): Remove.
3203 (compile_args_argc): Remove.
3204 (compile_args_argv): Change type.
3205 (set_compile_args): Simplify.
3206 (append_args): Remove.
3207 (filter_args): Remove argcp parameter.
3208 (get_args): Return gdb_argv. Simplify.
3209 (compile_to_object): Update.
3210
92677124
TT
32112020-09-23 Tom Tromey <tom@tromey.com>
3212
3213 * compile/compile-object-run.c (do_module_cleanup)
3214 <~do_module_cleanup> :Remove.
3215 (do_module_cleanup): Update.
3216 * compile/compile-object-load.h (struct munmap_list): Add move
3217 assignment operator.
3218 <source_file>: Now a std::string.
3219 <munmap_list>: Rename. No longer a pointer.
3220 * compile/compile-object-load.c (struct setup_sections_data): Add
3221 constructor.
3222 <setup_one_section>: Declare.
3223 <munmap_list>: Move earlier.
3224 <m_bfd>: New member.
3225 <m_last_size, m_last_section_first, m_last_prot,
3226 m_last_max_alignment>: Rename, add initializers where needed.
3227 (setup_sections_data::setup_one_section): Rename from
3228 setup_sections. Update.
3229 (compile_object_load): Update. Don't use bfd_map_over_sections.
3230
e616f60a
TT
32312020-09-23 Tom Tromey <tom@tromey.com>
3232
3233 * compile/compile-object-run.c (struct do_module_cleanup): Add
3234 parameters to constructor. Update destructor.
3235 <source_file, scope, scope_data, out_value_type, out_value_addr,
3236 munmap_list_head, objfile_name_string>: Remove.
3237 <module>: New member.
3238 (do_module_cleanup): Update.
3239 (compile_object_run): Update.
3240
e947a848
TT
32412020-09-23 Tom Tromey <tom@tromey.com>
3242
3243 * compile/compile.c (eval_compile_command): Update.
3244 * compile/compile-object-run.h (compile_object_run): Take a
3245 compile_module_up.
3246 * compile/compile-object-run.c (compile_object_run): Take a
3247 compile_module_up.
3248 * compile/compile-object-load.h (struct compile_module): Add
3249 constructor, destructor.
3250 (compile_module_up): New typedef.
3251 (compile_object_load): Return compile_object_up.
3252 * compile/compile-object-load.c (compile_object_load): Return
3253 compile_module_up.
3254
0dbf6ee6
TT
32552020-09-23 Tom Tromey <tom@tromey.com>
3256
3257 * compile/compile-object-run.c (struct do_module_cleanup): Add
3258 constructor, destructor.
3259 <objfile_name_string>: Don't use struct hack.
3260 (do_module_cleanup): Use delete.
3261 (compile_object_run): Use new.
3262
ebe824f5
TT
32632020-09-23 Tom Tromey <tom@tromey.com>
3264
3265 * compile/compile-cplus-types.c
3266 (compile_cplus_convert_struct_or_union): Use std::vector.
3267 (compile_cplus_convert_func): Likewise.
3268 * compile/compile-c-types.c (convert_func): Use std::vector.
3269
5dd918d9
TT
32702020-09-21 Tom Tromey <tromey@adacore.com>
3271
3272 * sparc-tdep.c (sparc32_skip_prologue): Use
3273 skip_prologue_using_sal.
3274
5486c517
TT
32752020-09-19 Tom Tromey <tom@tromey.com>
3276
3277 * symfile.c (add_section_size_callback): Remove.
3278 (load_one_section): Rename from load_section_callback. Change
3279 parameters.
3280 (generic_load): Use foreach.
3281
8a6bb1d1
TT
32822020-09-19 Tom Tromey <tom@tromey.com>
3283
3284 * exec.c (add_to_section_table): Remove.
3285 (build_section_table): Use foreach.
3286
08f93a1a
TT
32872020-09-19 Tom Tromey <tom@tromey.com>
3288
3289 * elfread.c (elf_locate_sections): Change parameters.
3290 (elf_symfile_read): Use foreach.
3291
03cd72b8
TT
32922020-09-19 Tom Tromey <tom@tromey.com>
3293
3294 * cli/cli-dump.c (struct callback_data): Remove.
3295 (restore_one_section): Rename from restore_section_callback.
3296 Change parameters.
3297 (restore_binary_file): Change parameters.
3298 (restore_command): Use foreach.
3299
f4f2b85f
TT
33002020-09-19 Tom Tromey <tom@tromey.com>
3301
3302 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
3303 (gcore_copy_callback): Likewise.
3304 (gcore_memory_sections): Use foreach.
3305
b35c1d1c
TT
33062020-09-19 Tom Tromey <tom@tromey.com>
3307
3308 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
3309 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
3310 parameters.
3311 (generic_elf_osabi_sniffer): Use foreach.
3312 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
3313 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
3314
5bb6e9dd
TT
33152020-09-19 Tom Tromey <tom@tromey.com>
3316
3317 * dwarf2/read.c (locate_dwz_sections): Change parameters.
3318 (dwarf2_get_dwz_file): Use foreach.
3319 (dwarf2_locate_dwo_sections): Change parameters.
3320 (open_and_init_dwo_file): Use foreach.
3321 (dwarf2_locate_common_dwp_sections): Change parameters.
3322 (open_and_init_dwp_file): Use foreach.
3323
ad7277da
TT
33242020-09-19 Tom Tromey <tom@tromey.com>
3325
3326 * symfile.h: (find_lowest_section): Don't declare.
3327 * symfile.c (find_lowest_section): Now static. Change
3328 parameters.
3329 (struct place_section_arg): Remove.
3330 (place_section): Change parameters.
3331 (addr_info_make_relative): Use foreach.
3332 (symfile_dummy_outputs): Remove.
3333 (default_symfile_relocate): Use foreach.
3334
cb814f2e
TT
33352020-09-19 Tom Tromey <tom@tromey.com>
3336
3337 * objfiles.c (add_to_objfile_sections): Rename from
3338 add_to_objfile_sections_full.
3339 (add_to_objfile_sections): Remove.
3340 (build_objfile_section_table): Use foreach.
3341
3cabfd26
TT
33422020-09-19 Tom Tromey <tom@tromey.com>
3343
3344 * stap-probe.c (get_stap_base_address_1): Remove.
3345 (get_stap_base_address): Use foreach.
3346
1ce51eb5
TT
33472020-09-19 Tom Tromey <tom@tromey.com>
3348
3349 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
3350 parameters.
3351 (gdb_bfd_close_or_warn): Use foreach.
3352
a190fabb
TT
33532020-09-19 Tom Tromey <tom@tromey.com>
3354
3355 * corelow.c (add_to_thread_list): Change parameters.
3356 (core_target_open): Use foreach.
3357
cafb0d81
TT
33582020-09-19 Tom Tromey <tom@tromey.com>
3359
3360 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
3361 existing function.
3362
c8d5abea
AB
33632020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3364
3365 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
3366 for arrays.
3367
6d816919
AB
33682020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3369
3370 * eval.c: Remove 'f-lang.h' include.
3371 (value_f90_subarray): Moved to f-lang.c.
3372 (eval_call): Renamed to...
3373 (evaluate_subexp_do_call): ...this, is no longer static, header
3374 comment moved into header file.
3375 (evaluate_funcall): Update call to eval_call.
3376 (skip_undetermined_arglist): Moved to f-lang.c.
3377 (fortran_value_subarray): Likewise.
3378 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3379 moved to evaluate_subexp_f.
3380 (calc_f77_array_dims): Moved to f-lang.c
3381 * expprint.c (print_subexp_funcall): New function.
3382 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3383 moved to print_subexp_f, OP_FUNCALL uses new function.
3384 (dump_subexp_body_funcall): New function.
3385 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
3386 moved to dump_subexp_f, OP_FUNCALL uses new function.
3387 * expression.h (evaluate_subexp_do_call): Declare.
3388 * f-lang.c (value_f90_subarray): Moved from eval.c.
3389 (skip_undetermined_arglist): Likewise.
3390 (calc_f77_array_dims): Likewise.
3391 (fortran_value_subarray): Likewise.
3392 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
3393 (operator_length_f): Likewise.
3394 (print_subexp_f): Likewise.
3395 (dump_subexp_body_f): Likewise.
3396 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
3397 declaration of this operation to here.
3398 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
3399 support moved to operator_length_f.
3400 * parser-defs.h (dump_subexp_body_funcall): Declare.
3401 (print_subexp_funcall): Declare.
3402 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
3403 fortran-operator.def.
3404
8c37706a
AB
34052020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3406
3407 * eval.c (fortran_value_subarray): New function, content is taken
3408 from...
3409 (evaluate_subexp_standard): ...here, in two places. Now arrays
3410 and strings both call the new function.
3411 (calc_f77_array_dims): Add header comment, handle strings.
3412
14f9473c
VC
34132020-09-18 Victor Collod <vcollod@nvidia.com>
3414
3415 PR gdb/26635
3416 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
3417 (i386_analyze_prologue): Call i386_skip_endbr.
3418
b60cea74
TT
34192020-09-18 Tom Tromey <tromey@adacore.com>
3420
3421 * windows-nat.c (struct windows_nat_target) <wait>: Update.
3422 (windows_nat_target::wait): Update.
3423 * target/wait.h (enum target_wait_flag): New. Use
3424 DEF_ENUM_FLAGS_TYPE.
3425 * target/target.h (target_wait): Change type of options.
3426 * target.h (target_options_to_string, default_target_wait):
3427 Update.
3428 (struct target_ops) <wait>: Change type of options.
3429 * target.c (target_wait, default_target_wait, do_option): Change
3430 type of "options".
3431 (target_options_to_string): Likewise.
3432 * target-delegates.c: Rebuild.
3433 * target-debug.h (target_debug_print_target_wait_flags): Rename
3434 from target_debug_print_options.
3435 * sol-thread.c (class sol_thread_target) <wait>: Update.
3436 (sol_thread_target::wait): Update.
3437 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
3438 (rs6000_nat_target::wait): Update.
3439 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
3440 Update.
3441 (remote_target::wait_ns, remote_target::wait_as): Change type of
3442 "options".
3443 (remote_target::wait): Update.
3444 * remote-sim.c (struct gdbsim_target) <wait>: Update.
3445 (gdbsim_target::wait): Update.
3446 * record-full.c (class record_full_base_target) <wait>: Update.
3447 (record_full_wait_1): Change type of "options".
3448 (record_full_base_target::wait): Update.
3449 * record-btrace.c (class record_btrace_target) <wait>: Update.
3450 (record_btrace_target::wait): Update.
3451 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
3452 Update.
3453 (ravenscar_thread_target::wait): Update.
3454 * procfs.c (class procfs_target) <wait>: Update.
3455 (procfs_target::wait): Update.
3456 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
3457 * obsd-nat.c (obsd_nat_target::wait): Update.
3458 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
3459 (nto_procfs_target::wait): Update.
3460 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
3461 * nbsd-nat.c (nbsd_wait): Change type of "options".
3462 (nbsd_nat_target::wait): Update.
3463 * linux-thread-db.c (class thread_db_target) <wait>: Update.
3464 (thread_db_target::wait): Update.
3465 * linux-nat.h (class linux_nat_target) <wait>: Update.
3466 * linux-nat.c (linux_nat_target::wait): Update.
3467 (linux_nat_wait_1): Update.
3468 * infrun.c (do_target_wait_1, do_target_wait): Change type of
3469 "options".
3470 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
3471 * inf-ptrace.c (inf_ptrace_target::wait): Update.
3472 * go32-nat.c (struct go32_nat_target) <wait>: Update.
3473 (go32_nat_target::wait): Update.
3474 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
3475 * gnu-nat.c (gnu_nat_target::wait): Update.
3476 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
3477 * fbsd-nat.c (fbsd_nat_target::wait): Update.
3478 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
3479 * darwin-nat.c (darwin_nat_target::wait): Update.
3480 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
3481 (bsd_uthread_target::wait): Update.
3482 * aix-thread.c (class aix_thread_target) <wait>: Update.
3483 (aix_thread_target::wait): Update.
3484
0295dde6
AB
34852020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
3486
3487 * compile/compile-object-run.c (create_copied_type_recursive): New
3488 function.
3489 (compile_object_run): Use new function.
3490
d3483b43
JT
34912020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
3492
3493 * NEWS: Mention x86_64 Cygwin core file support.
3494
e7d612ad
JT
34952020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3496
3497 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
3498 (core_process_module_section): Handle NOTE_INFO_MODULE64.
3499
aff9d387
JT
35002020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3501
62a5151b
JT
3502 * windows-tdep.h: Add prototypes.
3503 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
3504 (i386_windows_core_pid_to_str): Move and rename ...
3505 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
3506 (windows_core_pid_to_str): ... and here.
3507 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
3508
35092020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
3510 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
3511 (amd64_windows_init_abi_common): ... and register.
3512
7d155da3
JT
35132020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3514
3515 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
3516 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
3517
e8ef12b9
PA
35182020-09-18 Pedro Alves <pedro@palves.net>
3519
3520 PR gdb/26631
3521 * thread.c (thread_find_command): Switch inferior before calling
3522 target methods.
3523
c1e1314d
TT
35242020-09-17 Tom Tromey <tromey@adacore.com>
3525
3526 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
3527 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
3528 (tdesc_arch_data_up): New typedef.
3529 (tdesc_use_registers, tdesc_data_alloc): Update.
3530 (tdesc_data_cleanup): Don't declare.
3531 * target-descriptions.c (tdesc_data_alloc): Return a
3532 tdesc_arch_data_up.
3533 (tdesc_arch_data_deleter::operator()): Rename from
3534 tdesc_data_cleanup. Change argument type.
3535 (tdesc_use_registers): Change early_data to an rvalue reference.
3536 (tdesc_use_registers): Don't use delete.
3537 * sparc-tdep.c (sparc32_gdbarch_init): Update.
3538 * s390-tdep.c (s390_gdbarch_init): Update.
3539 * rx-tdep.c (rx_gdbarch_init): Update.
3540 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3541 * riscv-tdep.c (riscv_gdbarch_init): Update.
3542 * or1k-tdep.c (or1k_gdbarch_init): Update.
3543 * nios2-tdep.c (nios2_gdbarch_init): Update.
3544 * nds32-tdep.c (nds32_gdbarch_init): Update.
3545 * mips-tdep.c (mips_gdbarch_init): Update.
3546 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
3547 * m68k-tdep.c (m68k_gdbarch_init): Update.
3548 * i386-tdep.c (i386_gdbarch_init): Update.
3549 * arm-tdep.c (arm_gdbarch_init): Update.
3550 * arc-tdep.c (arc_tdesc_init): Update.
3551 (arc_gdbarch_init): Update.
3552 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
3553
0363df3d
HD
35542020-09-17 Hannes Domani <ssbssa@yahoo.de>
3555
3556 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
3557 for WOW64 processes.
3558
280a9412
TT
35592020-09-17 Tom Tromey <tom@tromey.com>
3560
3561 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
3562
6108fd18
TT
35632020-09-17 Tom Tromey <tom@tromey.com>
3564
3565 * value.c (preserve_values): Update.
3566 * python/py-type.c (save_objfile_types): Update.
3567 * guile/scm-type.c (save_objfile_types): Update.
3568 * gdbtypes.h (create_copied_types_hash): Return htab_up.
3569 * gdbtypes.c (create_copied_types_hash): Return htab_up.
3570 * compile/compile-object-run.c (compile_object_run): Update.
3571
fa9b1164
TT
35722020-09-17 Tom Tromey <tom@tromey.com>
3573
3574 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
3575 Remove.
3576 <m_table>: Now htab_up.
3577 * typeprint.c (typedef_hash_table::recursively_update)
3578 (typedef_hash_table::add_template_parameters)
3579 (typedef_hash_table::typedef_hash_table): Update.
3580 (typedef_hash_table::~typedef_hash_table): Remove.
3581 (typedef_hash_table::typedef_hash_table)
3582 (typedef_hash_table::find_global_typedef)
3583 (typedef_hash_table::find_typedef): Update.
3584
eb53f105
TT
35852020-09-17 Tom Tromey <tom@tromey.com>
3586
3587 * target-descriptions.c (tdesc_use_registers): Use htab_up.
3588
7a8a5d47
TT
35892020-09-17 Tom Tromey <tom@tromey.com>
3590
3591 * linespec.c (class decode_compound_collector)
3592 <~decode_compound_collector>: Remove.
3593 <m_unique_syms>: Now htab_up.
3594 (decode_compound_collector::operator ()): Update.
3595 (class symtab_collector) <~symtab_collector>: Remove.
3596 <m_symtab_table>: Now htab_up.
3597 (symtab_collector::operator ()): Update.
3598
99032cfc
TT
35992020-09-17 Tom Tromey <tom@tromey.com>
3600
3601 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
3602 (filename_seen_cache::clear): Update.
3603 (~filename_seen_cache): Remove.
3604 (filename_seen_cache::seen): Update.
3605 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
3606 htab_up.
3607 <~filename_seen_cache>: Remove.
3608 <traverse>: Update.
3609
32580f6d
TT
36102020-09-17 Tom Tromey <tom@tromey.com>
3611
3612 * completer.c (completion_tracker::discard_completions)
3613 (completion_tracker::~completion_tracker)
3614 (completion_tracker::maybe_add_completion)
3615 (completion_tracker::remove_completion)
3616 (completion_tracker::recompute_lowest_common_denominator)
3617 (completion_tracker::build_completion_result): Update.
3618 * completer.h (class completion_tracker) <have_completions>:
3619 Update.
3620 <m_entries_hash>: Now htab_up.
3621
c1fb9836
TT
36222020-09-17 Tom Tromey <tom@tromey.com>
3623
3624 * breakpoint.c (ambiguous_names_p): Use htab_up.
3625
88f07206
TT
36262020-09-17 Tom Tromey <tom@tromey.com>
3627
3628 * auto-load.c (struct auto_load_pspace_info)
3629 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
3630 <loaded_script_files, loaded_script_texts>: Change type to
3631 htab_up.
3632 (~auto_load_pspace_info) Remove.
3633 (init_loaded_scripts_info, maybe_add_script_file)
3634 (maybe_add_script_text, auto_load_info_scripts): Update.
3635
9519b2ee
TT
36362020-09-17 Tom Tromey <tromey@adacore.com>
3637
3638 * c-exp.y (name_obstack): Now static.
3639
d2cd4113
CC
36402020-09-17 Chungyi Chi <demonic@csie.io>
3641
3642 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
3643
b650a282
SM
36442020-09-16 Simon Marchi <simon.marchi@efficios.com>
3645
3646 * breakpoint.h (init_catchpoint): Change int parameter to bool.
3647 (add_solib_catchpoint): Likewise.
3648 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
3649 to bool.
3650 (add_solib_catchpoint): Change int parameter/variable to bool.
3651 (catch_load_or_unload): Likewise.
3652 (init_catchpoint): Likewise.
3653 (create_fork_vfork_event_catchpoint): Likewise.
3654 (catch_fork_command_1): Likewise.
3655 (catch_exec_command_1): Likewise.
3656
4d0bcfcf
SM
36572020-09-16 Simon Marchi <simon.marchi@efficios.com>
3658
3659 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
3660 Change instance_flags to m_instance_flags.
3661
fe830662
TT
36622020-09-16 Tom Tromey <tromey@adacore.com>
3663
3664 PR gdb/26598:
3665 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
3666
fe5ddfc3
JB
36672020-09-16 John Baldwin <jhb@FreeBSD.org>
3668
3669 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
3670 PL_FLAG_EXEC.
3671 (fbsd_nat_target::insert_exec_catchpoint)
3672 (fbsd_nat_target::remove_exec_catchpoint): Always define.
3673 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
3674 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
3675
e911c666
JB
36762020-09-16 John Baldwin <jhb@FreeBSD.org>
3677
3678 * configure.ac: Remove check for kinfo_getvmmap().
3679 * configure, config.in: Regenerate.
3680 * fbsd-nat.c (fbsd_read_mapping): Remove
3681 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
3682 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
3683 kinfo_get_vmmap() are always present.
3684
1f17d372
JB
36852020-09-16 John Baldwin <jhb@FreeBSD.org>
3686
3687 * fbsd-nat.c: Always include support for
3688 TARGET_OBJECT_SIGNAL_INFO.
3689
bcb1da7f
JB
36902020-09-16 John Baldwin <jhb@FreeBSD.org>
3691
3692 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
3693 sysctl and remove procfs fallback.
3694
5515f729
JB
36952020-09-16 John Baldwin <jhb@FreeBSD.org>
3696
3697 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
3698 * fbsd-nat.h: Likewise.
3699
da1df1db
TBA
37002020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3701
3702 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
3703 argument.
3704
0e25e767
AB
37052020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3706
3707 * ada-lang.c (ada_language_data): Delete.
3708 (ada_language): Remove references to ada_language_data.
3709 * c-lang.c (c_language_data): Delete.
3710 (c_language): Remove references to c_language_data.
3711 (cplus_language_data): Delete.
3712 (cplus_language): Remove references to cplus_language_data.
3713 (asm_language_data): Delete.
3714 (asm_language): Remove references to asm_language_data.
3715 (minimal_language_data): Delete.
3716 (minimal_language): Remove references to minimal_language_data.
3717 * d-lang.c (d_language_data): Delete.
3718 (d_language): Remove references to d_language_data.
3719 * f-lang.c (f_language_data): Delete.
3720 (f_language): Remove references to f_language_data.
3721 * go-lang.c (go_language_data): Delete.
3722 (go_language): Remove references to go_language_data.
3723 * language.c (unknown_language_data): Delete.
3724 (unknown_language): Remove references to unknown_language_data.
3725 (auto_language_data): Delete.
3726 (auto_language): Remove references to auto_language_data.
3727 * language.h (language_data): Delete struct.
3728 (language_defn): No longer inherit from language_data.
3729 * m2-lang.c (m2_language_data): Delete.
3730 (m2_language): Remove references to m2_language_data.
3731 * objc-lang.c (objc_language_data): Delete.
3732 (objc_language): Remove references to objc_language_data.
3733 * opencl-lang.c (opencl_language_data): Delete.
3734 (opencl_language): Remove references to opencl_language_data.
3735 * p-lang.c (pascal_language_data): Delete.
3736 (pascal_language): Remove references to pascal_language_data.
3737 * rust-lang.c (rust_language_data): Delete.
3738 (rust_language): Remove references to rust_language_data.
3739
b7c6e27d
AB
37402020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3741
3742 * ada-lang.c (ada_language_data): Remove la_op_print_tab
3743 initializer.
3744 (ada_language::opcode_print_table): New member function.
3745 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
3746 (c_language::opcode_print_table): New member function.
3747 (cplus_language_data): Remove la_op_print_tab initializer.
3748 (cplus_language::opcode_print_table): New member function.
3749 (asm_language_data): Remove la_op_print_tab initializer.
3750 (asm_language::opcode_print_table): New member function.
3751 (minimal_language_data): Remove la_op_print_tab initializer.
3752 (minimal_language::opcode_print_table): New member function.
3753 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
3754 (d_language::opcode_print_table): New member function.
3755 * expprint.c (print_subexp_standard): Update call to
3756 opcode_print_table.
3757 (op_string): Likewise.
3758 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
3759 (f_language::opcode_print_table): New member function.
3760 * go-lang.c (go_language_data): Remove la_op_print_tab
3761 initializer.
3762 (go_language::opcode_print_table): New member function.
3763 * language.c (unknown_language_data): Remove la_op_print_tab
3764 initializer.
3765 (unknown_language::opcode_print_table): New member function.
3766 (auto_language_data): Remove la_op_print_tab initializer.
3767 (auto_language::opcode_print_table): New member function.
3768 * language.h (language_data): Remove la_op_print_tab field.
3769 (language_defn::opcode_print_table): Declare new member function.
3770 * m2-lang.c (m2_language_data): Remove la_op_print_tab
3771 initializer.
3772 (m2_language::opcode_print_table): New member function.
3773 * objc-lang.c (objc_language_data): Remove la_op_print_tab
3774 initializer.
3775 (objc_language::opcode_print_table): New member function.
3776 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
3777 initializer.
3778 (opencl_language::opcode_print_table): New member function.
3779 * p-lang.c (pascal_language_data): Remove la_op_print_tab
3780 initializer.
3781 (pascal_language::opcode_print_table): New member function.
3782 * rust-lang.c (rust_language_data): Remove la_op_print_tab
3783 initializer.
3784 (rust_language::opcode_print_table): New member function.
3785
5aba6ebe
AB
37862020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3787
3788 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
3789 (ada_language::expression_ops): New member function.
3790 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
3791 (c_language::expression_ops): New member function.
3792 (cplus_language_data): Remove la_exp_desc initializer.
3793 (cplus_language::expression_ops): New member function.
3794 (asm_language_data): Remove la_exp_desc initializer.
3795 (asm_language::expression_ops): New member function.
3796 (minimal_language_data): Remove la_exp_desc initializer.
3797 (minimal_language::expression_ops): New member function.
3798 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
3799 (d_language::expression_ops): New member function.
3800 * eval.c (evaluate_subexp): Update call to expression_ops.
3801 * expprint.c (print_subexp): Likewise.
3802 (op_name): Likewise.
3803 (dump_subexp_body): Likewise.
3804 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
3805 (f_language::expression_ops): New member function.
3806 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
3807 (go_language::expression_ops): New member function.
3808 * language.c (language_defn::expression_ops): New function.
3809 (unknown_language_data): Remove la_exp_desc initializer.
3810 (auto_language_data): Likewise.
3811 * language.h (language_data): Remove la_exp_desc field.
3812 (language_defn::expression_ops): Declare new member function.
3813 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
3814 (m2_language::expression_ops): New member function.
3815 * objc-lang.c (objc_language_data): Remove la_exp_desc
3816 initializer.
3817 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
3818 initializer.
3819 (opencl_language::expression_ops): New member function.
3820 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
3821 * parse.c (operator_length): Update call to expression_ops.
3822 (exp_iterate): Likewise.
3823 * rust-lang.c (rust_language_data): Remove la_exp_desc
3824 initializer.
3825 (ruse_language::expression_ops): New member function.
3826
b63a3f3f
AB
38272020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3828
3829 * ada-lang.c (ada_language_data): Remove la_varobj_ops
3830 initializer.
3831 (ada_language::varobj_ops): New member function.
3832 * c-lang.c (c_language_data): Remove la_varobj_ops
3833 initializer.
3834 (cplus_language_data): Likewise.
3835 (cplus_language::varobj_ops): New member function.
3836 (asm_language_data): Remove la_varobj_ops initializer.
3837 (minimal_language_data): Likewise.
3838 * d-lang.c (d_language_data): Likewise.
3839 * f-lang.c (f_language_data): Likewise.
3840 * go-lang.c (go_language_data): Likewise.
3841 * language.c (language_defn::varobj_ops): New function.
3842 (unknown_language_data): Remove la_varobj_ops
3843 initializer.
3844 (auto_language_data): Likewise.
3845 * language.h (language_data): Remove la_varobj_ops field.
3846 (language_defn::varobj_ops): Declare new member function.
3847 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
3848 * objc-lang.c (objc_language_data): Likewise.
3849 * opencl-lang.c (opencl_language_data): Likewise.
3850 * p-lang.c (pascal_language_data): Likewise.
3851 * rust-lang.c (rust_language_data): Likewise.
3852 * varobj.c (varobj_create): Update call to varobj_ops.
3853 * varobj.h (default_varobj_ops): Delete define.
3854
1ac14a04
AB
38552020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3856
3857 * ada-lang.c (ada_language_data): Remove la_macro_expansion
3858 initializer.
3859 * c-lang.c (c_language_data): Likewise.
3860 (c_language::macro_expansion): New member function.
3861 (cplus_language_data): Likewise.
3862 (cplus_language::macro_expansion): New member function.
3863 (asm_language_data): Likewise.
3864 (asm_language::macro_expansion): New member function.
3865 (minimal_language_data): Likewise.
3866 (minimal_language::macro_expansion): New member function.
3867 * d-lang.c (d_language_data): Remove la_macro_expansion
3868 initializer.
3869 * f-lang.c (f_language_data): Likewise.
3870 * go-lang.c (go_language_data): Likewise.
3871 * language.c (unknown_language_data): Likewise.
3872 (auto_language_data): Likewise.
3873 * language.h (language_data): Remove la_macro_expansion field.
3874 (language_defn::macro_expansion): New member function.
3875 * m2-lang.c (m2_language_data): Remove la_macro_expansion
3876 initializer.
3877 * objc-lang.c (objc_language_data): Likewise.
3878 (objc_language::macro_expansion): New member function.
3879 * opencl-lang.c (opencl_language_data): Likewise.
3880 (opencl_language::macro_expansion): New member function.
3881 * p-lang.c (pascal_language_data): Remove la_macro_expansion
3882 initializer.
3883 * rust-lang.c (rust_language_data): Likewise.
3884 * symtab.c (default_collect_symbol_completion_matches_break_on):
3885 Update call to macro_expansion.
3886
3a3440fb
AB
38872020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3888
3889 * ada-lang.c (ada_language_data): Remove la_array_ordering
3890 initializer.
3891 * c-lang.c (c_language_data): Likewise.
3892 (cplus_language_data): Likewise.
3893 (asm_language_data): Likewise.
3894 (minimal_language_data): Likewise.
3895 * d-lang.c (d_language_data): Likewise.
3896 * dwarf2/read.c (read_array_order): Update for call to
3897 array_ordering.
3898 * f-lang.c (f_language_data): Remove la_array_ordering
3899 initializer.
3900 (f_language::array_ordering): New member function.
3901 * go-lang.c (go_language_data): Remove la_array_ordering
3902 initializer.
3903 * language.c (unknown_language_data): Likewise.
3904 (auto_language_data): Likewise.
3905 * language.h (language_data): Delete la_array_ordering field.
3906 (language_defn::array_ordering): New member function.
3907 * m2-lang.c (m2_language_data): Remove la_array_ordering
3908 initializer.
3909 * objc-lang.c (objc_language_data): Likewise.
3910 * opencl-lang.c (opencl_language_data): Likewise.
3911 * p-lang.c (pascal_language_data): Likewise.
3912 * rust-lang.c (rust_language_data): Likewise.
3913
0d201fa4
AB
39142020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3915
3916 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
3917 initializer.
3918 * c-lang.c (c_language_data): Likewise.
3919 (cplus_language_data): Likewise.
3920 (asm_language_data): Likewise.
3921 (minimal_language_data): Likewise.
3922 * d-lang.c (d_language_data): Likewise.
3923 * f-lang.c (f_language_data): Likewise.
3924 (f_language::case_sensitivity): New member function.
3925 * go-lang.c (go_language_data): Remove la_case_sensitivity
3926 initializer.
3927 * language.c (enum case_mode): Moved here from language.h.
3928 (case_mode): Make static.
3929 (show_case_command): Update for case_sensitivity being a method.
3930 (set_case_command): Likewise.
3931 (set_range_case): Likewise.
3932 (unknown_language_data): Remove la_case_sensitivity initializer.
3933 (auto_language_data): Likewise.
3934 * language.h (case_mode): Delete, move enum declaration to
3935 language.c.
3936 (language_data): Delete la_case_sensitivity field.
3937 (language_defn::case_sensitivity): New member function.
3938 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
3939 initializer.
3940 * objc-lang.c (objc_language_data): Likewise.
3941 * opencl-lang.c (opencl_language_data): Likewise.
3942 * p-lang.c (pascal_language_data): Likewise.
3943 * rust-lang.c (rust_language_data): Likewise.
3944
efdf6a73
AB
39452020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3946
3947 * ada-lang.c (ada_language_data): Remove la_range_check
3948 initializer.
3949 * c-lang.c (c_language_data): Likewise.
3950 (cplus_language_data): Likewise.
3951 (asm_language_data): Likewise.
3952 (minimal_language_data): Likewise.
3953 * d-lang.c (d_language_data): Likewise.
3954 * f-lang.c (f_language_data): Likewise.
3955 (f_language::range_checking_on_by_default): New member function.
3956 * go-lang.c (go_language_data): Remove la_range_check initializer.
3957 * language.c (enum range_mode): Moved here from language.h.
3958 (range_mode): Made static.
3959 (show_range_command): Update to use
3960 range_checking_on_by_default.
3961 (set_range_command): Likewise.
3962 (set_range_case): Likewise.
3963 (unknown_language_data): Remove la_range_check initializer.
3964 (auto_language_data): Likewise.
3965 * language.h (range_mode): Delete. Enum definition moved to
3966 language.c.
3967 (language_data): Remove la_range_check field.
3968 (language_defn::range_checking_on_by_default): New member
3969 function.
3970 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
3971 (m2_language::range_checking_on_by_default): New member function.
3972 * objc-lang.c (objc_language_data): Remove la_range_check
3973 initializer.
3974 * opencl-lang.c (opencl_language_data): Likewise.
3975 * p-lang.c (pascal_language_data): Likewise.
3976 (pascal_language::range_checking_on_by_default): New member
3977 function.
3978 * rust-lang.c (rust_language_data): Remove la_range_check
3979 initializer.
3980 (rust_language::range_checking_on_by_default): New member
3981 function.
3982
bf92aec5
AB
39832020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3984
3985 * dwarf2/read.c (dwarf2_physname): Remove special case for
3986 language_go.
3987 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
3988 member function.
3989
d3355e4d
AB
39902020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3991
3992 * ada-lang.c (ada_language_data): Remove
3993 la_store_sym_names_in_linkage_form_p initializer.
3994 (ada_language::store_sym_names_in_linkage_form_p): New member
3995 function.
3996 * c-lang.c (c_language_data): Remove
3997 la_store_sym_names_in_linkage_form_p initializer.
3998 (c_language::store_sym_names_in_linkage_form_p): New member
3999 function.
4000 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
4001 initializer.
4002 (asm_language_data): Likewise.
4003 (asm_language::store_sym_names_in_linkage_form_p): New member
4004 function.
4005 (minimal_language_data): Remove
4006 la_store_sym_names_in_linkage_form_p initializer.
4007 (minimal_language::store_sym_names_in_linkage_form_p): New member
4008 function.
4009 * d-lang.c (d_language_data): Remove
4010 la_store_sym_names_in_linkage_form_p initializer.
4011 * dwarf2/read.c (dwarf2_physname): Update call to
4012 store_sym_names_in_linkage_form_p.
4013 * f-lang.c (f_language_data): Remove
4014 la_store_sym_names_in_linkage_form_p initializer.
4015 * go-lang.c (go_language_data): Remove
4016 la_store_sym_names_in_linkage_form_p initializer.
4017 * language.c (unknown_language_data): Remove
4018 la_store_sym_names_in_linkage_form_p initializer.
4019 (unknown_language::store_sym_names_in_linkage_form_p): New member
4020 function.
4021 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
4022 initializer.
4023 (auto_language::store_sym_names_in_linkage_form_p): New member
4024 function.
4025 * language.h (language_data): Remove
4026 la_store_sym_names_in_linkage_form_p member variable.
4027 (language_defn::store_sym_names_in_linkage_form_p): New member
4028 function.
4029 * m2-lang.c (m2_language_data): Remove
4030 la_store_sym_names_in_linkage_form_p initializer.
4031 * objc-lang.c (objc_language_data): Likewise.
4032 * opencl-lang.c (opencl_language_data): Likewise.
4033 * p-lang.c (pascal_language_data): Likewise.
4034 * rust-lang.c (rust_language_data): Likewise.
4035
22c12a6c
AB
40362020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4037
4038 * ada-lang.c (ada_language_data): Remove string_lower_bound
4039 initializer.
4040 * c-lang.c (c_language_data): Likewise.
4041 (cplus_language_data): Likewise.
4042 (asm_language_data): Likewise.
4043 (minimal_language_data): Likewise.
4044 * d-lang.c (d_language_data): Likewise.
4045 * f-lang.c (f_language_data): Likewise.
4046 * go-lang.c (go_language_data): Likewise.
4047 * language.c (unknown_language_data): Likewise.
4048 (auto_language_data): Likewise.
4049 * language.h (language_data): Remove string_lower_bound field.
4050 (language_defn::string_lower_bound): New member function.
4051 * m2-lang.c (m2_language_data): Remove string_lower_bound
4052 initializer.
4053 (m2_language::string_lower_bound): New member function.
4054 * objc-lang.c (objc_language_data): Remove string_lower_bound
4055 initializer.
4056 * opencl-lang.c (opencl_language_data): Likewise.
4057 * p-lang.c (pascal_language_data): Likewise.
4058 * rust-lang.c (rust_language_data): Likewise.
4059 * valops.c (value_cstring): Update call to string_lower_bound.
4060 (value_string): Likewise.
4061 * value.c (allocate_repeated_value): Likewise.
4062
1c236ddd
AB
40632020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4064
4065 * valops.c (value_repeat): Fix incorrect argument name in comment.
4066
67bd3fd5
AB
40672020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4068
4069 * ada-lang.c (ada_language_data): Remove c_style_arrays
4070 initializer.
4071 (ada_language::c_style_arrays_p): New member fuction.
4072 * c-lang.c (c_language_data): Remove c_style_arrays
4073 initializer.
4074 (cplus_language_data): Likewise.
4075 (asm_language_data): Likewise.
4076 (minimal_language_data): Likewise.
4077 * d-lang.c (d_language_data): Likewise.
4078 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
4079 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
4080 (f_language::c_style_arrays_p): New member function.
4081 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
4082 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
4083 * language.c (unknown_language_data): Remove c_style_arrays
4084 initializer.
4085 (auto_language_data): Likewise.
4086 * language.h (language_data): Remove c_style_arrays field.
4087 (language_defn::c_style_arrays_p): New member function.
4088 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
4089 (m2_language::c_style_arrays_p): New member function.
4090 * objc-lang.c (objc_language_data): Remove c_style_arrays
4091 initializer.
4092 * opencl-lang.c (opencl_language_data): Likewise.
4093 * p-lang.c (pascal_language_data): Likewise.
4094 * rust-lang.c (rust_language_data): Likewise.
4095 * valarith.c (value_subscript): Update call to c_style_arrays_p,
4096 and update local variable to a bool.
4097 * valops.c (value_cast): Update call to c_style_arrays_p.
4098 (value_array): Likewise.
4099 * value.c (coerce_array): Likewise.
4100
85967615
AB
41012020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4102
4103 * ada-lang.c (ada_language_data): Remove la_language initializer.
4104 * c-lang.c (c_language_data): Likewise.
4105 (cplus_language_data): Likewise.
4106 (asm_language_data): Likewise.
4107 (minimal_language_data): Likewise.
4108 * d-lang.c (d_language_data): Likewise.
4109 * f-lang.c (f_language_data): Likewise.
4110 * go-lang.c (go_language_data): Likewise.
4111 * language.c (unknown_language_data): Likewise.
4112 (auto_language_data): Likewise.
4113 * language.h (language_data): Remove la_language field.
4114 (language_defn::language_defn): Initialise la_language field.
4115 (language_defn::la_language): New member variable.
4116 * m2-lang.c (m2_language_data): Remove la_language field.
4117 * objc-lang.c (objc_language_data): Likewise.
4118 * opencl-lang.c (opencl_language_data): Likewise.
4119 * p-lang.c (pascal_language_data): Likewise.
4120 * rust-lang.c (rust_language_data): Likewise.
4121
e171d6f1
AB
41222020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4123
4124 * ada-lang.c (ada_extensions): Delete, moved into
4125 ada_language::filename_extensions.
4126 (ada_language_data): Remove la_filename_extensions initializer.
4127 (ada_language::filename_extensions): New member function.
4128 * c-lang.c (c_extensions): Delete, moved into
4129 c_language::filename_extensions.
4130 (c_language_data): Remove la_filename_extensions initializer.
4131 (c_language::filename_extensions): New member function.
4132 (cplus_extensions): Delete, moved into
4133 cplus_language::filename_extensions.
4134 (cplus_language_data): Remove la_filename_extensions initializer.
4135 (cplus_language::filename_extensions): New member function.
4136 (asm_extensions): Delete, moved into
4137 asm_language::filename_extensions.
4138 (asm_language_data): Remove la_filename_extensions initializer.
4139 (asm_language::filename_extensions): New member function.
4140 (minimal_language_data): Remove la_filename_extensions
4141 initializer.
4142 * d-lang.c (d_extensions): Delete, moved into
4143 d_language::filename_extensions.
4144 (d_language_data): Remove la_filename_extensions initializer.
4145 (d_language::filename_extensions): New member function.
4146 * f-lang.c (f_extensions): Delete, moved into
4147 f_language::filename_extensions.
4148 (f_language_data): Remove la_filename_extensions initializer.
4149 (f_language::filename_extensions): New member function.
4150 * go-lang.c (go_language_data): Remove la_filename_extensions
4151 initializer.
4152 * language.c (add_set_language_command): Update now that
4153 filename_extensions returns a vector.
4154 (unknown_language_data): Remove la_filename_extensions
4155 initializer.
4156 (auto_language_data): Likewise.
4157 * language.h (language_data): Remove la_filename_extensions field.
4158 (language_defn::filename_extensions): New member function.
4159 * m2-lang.c (m2_language_data): Remove la_filename_extensions
4160 initializer.
4161 * objc-lang.c (objc_extensions): Delete, moved into
4162 objc_language::filename_extensions.
4163 (objc_language_data): Remove la_filename_extensions initializer.
4164 (objc_language::filename_extensions): New member function.
4165 * opencl-lang.c (opencl_language_data): Remove
4166 la_filename_extensions initializer.
4167 * p-lang.c (pascal_extensions): Delete, moved into
4168 pascal_language::filename_extensions.
4169 (pascal_language_data): Remove la_filename_extensions initializer.
4170 (pascal_language::filename_extensions): New member function.
4171 * rust-lang.c (rust_extensions): Delete, moved into
4172 rust_language::filename_extensions.
4173 (rust_language_data): Remove la_filename_extensions initializer.
4174 (rust_language::filename_extensions): New member function.
4175 * symfile.c (add_filename_language): Add new assert.
4176
6f7664a9
AB
41772020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4178
4179 * ada-lang.c (ada_language_data): Remove la_name and
4180 la_natural_name initializers.
4181 (ada_language::name): New member function.
4182 (ada_language::natural_name): New member function.
4183 * c-lang.c (c_language_data): Remove la_name and
4184 la_natural_name initializers.
4185 (c_language::name): New member function.
4186 (c_language::natural_name): New member function.
4187 (cplus_language_data): Remove la_name and
4188 la_natural_name initializers.
4189 (cplus_language::name): New member function.
4190 (cplus_language::natural_name): New member function.
4191 (asm_language_data): Remove la_name and
4192 la_natural_name initializers.
4193 (asm_language::name): New member function.
4194 (asm_language::natural_name): New member function.
4195 (minimal_language_data): Remove la_name and
4196 la_natural_name initializers.
4197 (minimal_language::name): New member function.
4198 (minimal_language::natural_name): New member function.
4199 * compile/compile.c (compile_to_object): Update call to
4200 lanugage_defn::name.
4201 * d-lang.c (d_language_data): Remove la_name and
4202 la_natural_name initializers.
4203 (d_language::name): New member function.
4204 (d_language::natural_name): New member function.
4205 * expprint.c (print_subexp_standard): Update call to
4206 language_defn::name.
4207 (dump_raw_expression): Likewise
4208 (dump_prefix_expression): Likewise.
4209 * f-lang.c (f_language_data): Remove la_name and
4210 la_natural_name initializers.
4211 (f_language::name): New member function.
4212 (f_language::natural_name): New member function.
4213 * go-lang.c (go_language_data): Remove la_name and
4214 la_natural_name initializers.
4215 (go_language::name): New member function.
4216 (go_language::natural_name): New member function.
4217 * language.c (show_language_command): Update call to
4218 language_defn::name.
4219 (set_language_command): Likewise.
4220 (language_enum): Likewise.
4221 (language_str): Likewise.
4222 (add_set_language_command): Likewise, use
4223 language_defn::natural_name in the doc string.
4224 (unknown_language_data): Remove la_name and
4225 la_natural_name initializers.
4226 (unknown_language::name): New member function.
4227 (unknown_language::natural_name): New member function.
4228 (auto_language_data): Remove la_name and
4229 la_natural_name initializers.
4230 (auto_language::name): New member function.
4231 (auto_language::natural_name): New member function.
4232 (language_lookup_primitive_type_as_symbol): Update call to
4233 language_defn::name.
4234 * language.h (language_data): Remove la_name and la_natural_name
4235 member variables.
4236 (language_defn::name): New member function.
4237 (language_defn::natural_name): New member function.
4238 * m2-lang.c (m2_language_data): Remove la_name and
4239 la_natural_name initializers.
4240 (m2_language::name): New member function.
4241 (m2_language::natural_name): New member function.
4242 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
4243 language_defn::natural_name.
4244 * objc-lang.c (objc_language_data): Remove la_name and
4245 la_natural_name initializers.
4246 (objc_language::name): New member function.
4247 (objc_language::natural_name): New member function.
4248 * opencl-lang.c (opencl_language_data): Remove la_name and
4249 la_natural_name initializers.
4250 (opencl_language::name): New member function.
4251 (opencl_language::natural_name): New member function.
4252 * p-lang.c (pascal_language_data): Remove la_name and
4253 la_natural_name initializers.
4254 (pascal_language::name): New member function.
4255 (pascal_language::natural_name): New member function.
4256 * rust-lang.c (rust_language_data): Remove la_name and
4257 la_natural_name initializers.
4258 (rust_language::name): New member function.
4259 (rust_language::natural_name): New member function.
4260 * symtab.c (lookup_language_this): Update call to
4261 language_defn::name.
4262
5bae7c4e
AB
42632020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4264
4265 * ada-lang.c (ada_language_data): Remove la_name_of_this
4266 initializer.
4267 * ax-gdb.c (gen_expr): Update call to name_of_this.
4268 * c-exp.y (classify_name): Likewise.
4269 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
4270 (cplus_language_data): Likewise.
4271 (cplus_language::name_of_this): New member function.
4272 (asm_language_data): Remove la_name_of_this initializer.
4273 (minimal_language_data): Likewise.
4274 * d-lang.c (d_language_data): Likewise.
4275 (d_language::name_of_this): New member function.
4276 * expprint.c (print_subexp_standard): Update call to name_of_this.
4277 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
4278 * go-lang.c (go_language_data): Likewise.
4279 * language.c (unknown_language_data): Likewise.
4280 (unknown_language::name_of_this): New member function.
4281 (auto_language_data): Remove la_name_of_this initializer.
4282 (auto_language::name_of_this): New member function.
4283 * language.h (language_data): Delete la_name_of_this member
4284 variable.
4285 (language_defn::name_of_this): New member function.
4286 * m2-lang.c (m2_language_data): Remove la_name_of_this
4287 initializer.
4288 * objc-lang.c (objc_language_data): Likewise.
4289 (objc_language::name_of_this): New member function.
4290 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
4291 initializer.
4292 * p-lang.c (pascal_language_data): Likewise.
4293 (pascal_language::name_of_this): New member function.
4294 * rust-lang.c (rust_language_data): Remove la_name_of_this
4295 initializer.
4296 * symtab.c (lookup_language_this): Update call to name_of_this.
4297 (lookup_symbol_aux): Likewise.
4298 * valops.c (value_of_this): Likewise.
4299
22e3f3ed
AB
43002020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4301
4302 * ada-lang.c (ada_language_data): Remove
4303 la_struct_too_deep_ellipsis initializer.
4304 (ada_language::struct_too_deep_ellipsis): New member function.
4305 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
4306 initializer.
4307 (cplus_language_data): Likewise.
4308 (asm_language_data): Likewise.
4309 (minimal_language_data): Likewise.
4310 * cp-valprint.c (cp_print_value): Update call to
4311 struct_too_deep_ellipsis.
4312 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
4313 initializer.
4314 * f-lang.c (f_language_data): Likewise.
4315 (f_language::struct_too_deep_ellipsis): New member function.
4316 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
4317 initializer.
4318 * language.c (unknown_language_data): Likewise.
4319 (auto_language_data): Likewise.
4320 * language.h (language_data): Delete la_struct_too_deep_ellipsis
4321 member variable.
4322 (language_defn::struct_too_deep_ellipsis): New member function.
4323 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
4324 initializer.Q
4325 * objc-lang.c (objc_language_data): Likewise.
4326 * opencl-lang.c (opencl_language_data): Likewise.
4327 * p-lang.c (pascal_language_data): Likewise.
4328 * rust-lang.c (rust_language_data): Likewise.
4329 * valprint.c (val_print_check_max_depth): Update call to
4330 struct_too_deep_ellipsis.
4331
ed29e1c7
FW
43322020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
4333
4334 * MAINTAINERS (Write After Approval): Add myself.
4335
12d8f940
TT
43362020-09-15 Tom Tromey <tom@tromey.com>
4337
4338 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
4339 Remove.
4340
6b5a7bc7
TT
43412020-09-15 Tom Tromey <tom@tromey.com>
4342
4343 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
4344 and TYPE_CODE_METHODPTR cases.
4345 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
4346 (c_value_print_inner): Update.
4347 * valprint.c (generic_value_print_memberptr): New function, from
4348 c_value_print_memberptr.
4349 (generic_value_print): Use it. Call cplus_print_method_ptr.
4350
47f0e2ff
TT
43512020-09-15 Tom Tromey <tromey@adacore.com>
4352
4353 * python/python-internal.h (PyInt_FromLong): Remove define.
4354 * python/py-value.c (convert_value_from_python): Use
4355 gdb_py_object_from_longest.
4356 * python/py-type.c (typy_get_code): Use
4357 gdb_py_object_from_longest.
4358 * python/py-symtab.c (salpy_get_line): Use
4359 gdb_py_object_from_longest.
4360 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
4361 gdb_py_object_from_longest.
4362 * python/py-record.c (recpy_gap_reason_code): Use
4363 gdb_py_object_from_longest.
4364 * python/py-record-btrace.c (recpy_bt_insn_size)
4365 (recpy_bt_func_level, btpy_list_count): Use
4366 gdb_py_object_from_longest.
4367 * python/py-infthread.c (gdbpy_create_ptid_object): Use
4368 gdb_py_object_from_longest. Fix error handling.
4369 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
4370 gdb_py_object_from_longest.
4371 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
4372 gdb_py_object_from_longest.
4373 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
4374 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
4375 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
4376
512116ce
TT
43772020-09-15 Tom Tromey <tromey@adacore.com>
4378
4379 * python/python.c (gdbpy_parameter_value): Use
4380 gdb_py_object_from_ulongest.
4381
4ab1029c
TT
43822020-09-15 Tom Tromey <tromey@adacore.com>
4383
4384 * python/py-infevents.c (create_register_changed_event_object):
4385 Use gdb_py_object_from_longest.
4386 * python/py-exitedevent.c (create_exited_event_object): Use
4387 gdb_py_object_from_longest.
4388
062534d4
TT
43892020-09-15 Tom Tromey <tromey@adacore.com>
4390
4391 * python/python.c (gdbpy_parameter_value): Use
4392 gdb_py_object_from_longest.
4393 * python/py-type.c (convert_field, typy_range): Use
4394 gdb_py_object_from_longest.
4395 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
4396 gdb_py_object_from_longest.
4397 * python/py-lazy-string.c (stpy_get_length): Use
4398 gdb_py_object_from_longest.
4399 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
4400 gdb_py_object_from_longest.
4401 * python/py-infevents.c (create_memory_changed_event_object): Use
4402 gdb_py_object_from_longest.
4403 * python/py-inferior.c (infpy_get_num): Use
4404 gdb_py_object_from_longest.
4405 (infpy_get_pid): Likewise.
4406
d1cab987
TT
44072020-09-15 Tom Tromey <tromey@adacore.com>
4408
4409 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
4410 defines.
4411 * python/py-value.c (valpy_long): Use
4412 gdb_py_object_from_ulongest.
4413 * python/py-symtab.c (salpy_get_pc): Use
4414 gdb_py_object_from_ulongest.
4415 (salpy_get_last): Likewise.
4416 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
4417 gdb_py_object_from_ulongest.
4418 * python/py-lazy-string.c (stpy_get_address): Use
4419 gdb_py_object_from_ulongest.
4420 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
4421 * python/py-arch.c (archpy_disassemble): Use
4422 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
4423 error handling.
4424
4bde49dc
TT
44252020-09-15 Tom Tromey <tromey@adacore.com>
4426
4427 * python/python-internal.h (gdb_py_long_from_longest): Remove
4428 defines.
4429 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
4430 * python/py-type.c (convert_field, typy_get_sizeof): Use
4431 gdb_py_object_from_longest.
4432 * python/py-record-btrace.c (btpy_list_index): Use
4433 gdb_py_object_from_longest.
4434
37431074
TT
44352020-09-15 Tom Tromey <tromey@adacore.com>
4436
4437 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
4438 * python/py-record.c (recpy_element_number): Use
4439 gdb_py_object_from_longest.
4440 (recpy_gap_number): Likewise.
4441
cbe25684
TT
44422020-09-15 Tom Tromey <tromey@adacore.com>
4443
4444 * top.c (ui::ui): Update.
4445 (highest_ui_num): Remove.
4446 * top.h (struct ui) <num>: Remove.
4447
db92ac45
TT
44482020-09-15 Tom Tromey <tromey@adacore.com>
4449
4450 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
4451 * ui-style.c (ansi_regex_text): Now array.
4452 * rust-exp.y (number_regex_text): Now array.
4453 * linespec.c (linespec_quote_characters): Now array.
4454 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
4455 Now arrays.
4456
d2b31b67
SM
44572020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4458
4459 * debuginfod-support.c (debuginfod_client_deleter): New.
4460 (debuginfod_client_up): New.
4461 (debuginfod_init): Return debuginfod_client_up.
4462 (debuginfod_source_query): Adjust.
4463 (debuginfod_debuginfo_query): Adjust.
4464
3246bd8e
SM
44652020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4466
4467 * debuginfod-support.c (debuginfod_source_query): Use
4468 make_unique_xstrdup.
4469
10242f36
SM
44702020-09-14 Simon Marchi <simon.marchi@efficios.com>
4471
4472 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
4473 with `type::instance_flags`.
4474
e1044e6a
MM
44752020-09-14 Michael Mullin <masmullin@gmail.com>
4476
4477 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
4478 Remove baton parameter.
4479
04902b09
PA
44802020-09-14 Pedro Alves <pedro@palves.net>
4481
4482 * Makefile.in (SELFTESTS_SRCS): Add
4483 unittests/enum-flags-selftests.c.
4484 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
4485 btrace_function_flags instead of enum btrace_function_flag.
4486 * compile/compile-c-types.c (convert_qualified): Use
4487 enum_flags::raw.
4488 * compile/compile-cplus-symbols.c (convert_one_symbol)
4489 (convert_symbol_bmsym):
4490 * compile/compile-cplus-types.c (compile_cplus_convert_method)
4491 (compile_cplus_convert_struct_or_union_methods)
4492 (compile_cplus_instance::convert_qualified_base):
4493 * go-exp.y (parse_string_or_char): Add cast to int.
4494 * unittests/enum-flags-selftests.c: New file.
4495 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
4496 type to btrace_thread_flags from btrace_thread_flag.
4497 (record_btrace_cancel_resume, record_btrace_step_thread): Change
4498 local's type to btrace_thread_flags from btrace_thread_flag. Add
4499 cast in DEBUG call.
4500
69896a2c
PA
45012020-09-14 Pedro Alves <pedro@palves.net>
4502
4503 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
4504 * gdbtypes.c (address_space_name_to_int): Rename to ...
4505 (address_space_name_to_type_instance_flags): ... this.
4506 (address_space_int_to_name): Rename to ...
4507 (address_space_type_instance_flags_to_name): ... this.
4508 * gdbtypes.h (address_space_name_to_int): Rename to ...
4509 (address_space_name_to_type_instance_flags): ... this.
4510 (address_space_int_to_name): Rename to ...
4511 (address_space_type_instance_flags_to_name): ... this.
4512 * type-stack.c (type_stack::insert): Adjust to rename.
4513 * type-stack.h (type_stack::insert): Likewise.
4514
314ad88d
PA
45152020-09-14 Pedro Alves <pedro@palves.net>
4516 Andrew Burgess <andrew.burgess@embecosm.com>
4517
4518 * avr-tdep.c (avr_address_class_type_flags): Return
4519 type_instance_flags.
4520 (avr_address_class_type_flags_to_name): Take a
4521 type_instance_flags.
4522 (avr_address_class_name_to_type_flags): Return bool and take a
4523 type_instance_flags.
4524 * d-lang.c (build_d_types): Use type::set_instance_flags.
4525 * ft32-tdep.c (ft32_address_class_type_flags): Return
4526 type_instance_flags.
4527 (ft32_address_class_type_flags_to_name): Take a
4528 type_instance_flags.
4529 (ft32_address_class_name_to_type_flags): Return bool and take a
4530 type_instance_flags.
4531 (ft32_gdbarch_init): Use type::set_instance_flags.
4532 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
4533 * gdbarch.h, gdbarch.c: Regenerate.
4534 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
4535 (address_class_name_to_type_flags): Use type_instance_flags and
4536 bool.
4537 * gdbtypes.c (address_space_name_to_int)
4538 (address_space_int_to_name, make_qualified_type): Use
4539 type_instance_flags.
4540 (make_qualified_type): Use type_instance_flags and
4541 type::set_instance_flags.
4542 (make_type_with_address_space, make_cv_type, make_vector_type)
4543 (check_typedef): Use type_instance_flags.
4544 (recursive_dump_type): Cast type_instance_flags to unsigned for
4545 printing.
4546 (copy_type_recursive): Use type::set_instance_flags.
4547 (gdbtypes_post_init): Use type::set_instance_flags.
4548 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
4549 <m_instance_flags>: ... this.
4550 <instance_flags, set_instance_flags>: New methods.
4551 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
4552 (SET_TYPE_INSTANCE_FLAGS): New.
4553 (address_space_name_to_int, address_space_int_to_name)
4554 (make_type_with_address_space): Pass flags using
4555 type_instance_flags instead of int.
4556 * stabsread.c (cleanup_undefined_types_noname): Use
4557 type::set_instance_flags.
4558 * s390-tdep.c (s390_address_class_type_flags): Return
4559 type_instance_flags.
4560 (s390_address_class_type_flags_to_name): Take a
4561 type_instance_flags.
4562 (s390_address_class_name_to_type_flags): Return bool and take a
4563 type_instance_flags.
4564 * type-stack.c (type_stack::follow_types): Use
4565 type_instance_flags.
4566 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
4567
27087b7f
TT
45682020-09-14 Tom Tromey <tromey@adacore.com>
4569
4570 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
4571 * x86-tdep.c (x86_is_thunk_register_name)
4572 (x86_in_indirect_branch_thunk): Update.
4573 * sparc64-tdep.c (sparc64_fpu_register_names)
4574 (sparc64_cp0_register_names, sparc64_register_names)
4575 (sparc64_pseudo_register_names): Now const.
4576 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
4577 cp0_registers_num>: Now const.
4578 * sparc-tdep.c (sparc_core_register_names)
4579 (sparc32_fpu_register_names, sparc32_cp0_register_names)
4580 (sparc32_pseudo_register_names): Now const.
4581 (validate_tdesc_registers): Update.
4582 * rust-lang.c (rust_extensions): Now const.
4583 * p-lang.c (p_extensions): Now const.
4584 * objc-lang.c (objc_extensions): Now const.
4585 * nto-tdep.c (nto_thread_state_str): Now const.
4586 * moxie-tdep.c (moxie_register_names): Now const.
4587 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
4588 Now const.
4589 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
4590 (mips_linux_reg_names): Now const.
4591 (mips_gdbarch_init): Update.
4592 * microblaze-tdep.c (microblaze_register_names): Now const.
4593 * m68k-tdep.c (m68k_register_names): Now const.
4594 * m32r-tdep.c (m32r_register_names): Now const.
4595 * ia64-tdep.c (ia64_register_names): Now const.
4596 * i386-tdep.h (struct gdbarch_tdep) <register_names,
4597 ymmh_register_names, ymm16h_regnum, mpx_register_names,
4598 k_register_names, zmmh_register_names, xmm_avx512_register_names,
4599 ymm_avx512_register_names, pkeys_register_names>: Now const.
4600 * i386-tdep.c (i386_register_names, i386_zmm_names)
4601 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
4602 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
4603 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
4604 * f-lang.c (f_extensions): Now const.
4605 * d-lang.c (d_extensions): Now const.
4606 * csky-tdep.c (csky_register_names): Now const.
4607 * charset.c (default_charset_names, charset_enum): Now const.
4608 (_initialize_charset): Update.
4609 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
4610 const.
4611 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
4612 (bsd_uthread_solib_loaded): Update.
4613 (bsd_uthread_state): Now const.
4614 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
4615 (amd64_ymm_avx512_names, amd64_ymmh_names)
4616 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
4617 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
4618 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
4619 (amd64_dword_names): Now const.
4620 * agent.c (can_use_agent_enum): Now const.
4621 * ada-tasks.c (task_states, long_task_states): Now const.
4622 * ada-lang.c (known_runtime_file_name_patterns)
4623 (known_auxiliary_function_name_patterns, attribute_names)
4624 (standard_exc, ada_extensions): Now const.
4625
89806626
SM
46262020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4627
4628 * bcache.h (struct bcache) <bcache>: Remove constructor.
4629 <m_hash_function, m_compare_function>: Remove.
4630 <~bcache>: Make virtual.
4631 <compare>: Remove static method, introduce virtual method.
4632 <default_hash>: Remove.
4633 <hash>: New virtual method.
4634 * bcache.c (bcache::expand_hash_table): Update.
4635 (bcache::insert): Update.
4636 (bcache::hash): New.
4637 (bcache::compare): Update comment and parameter names.
4638 * gdbtypes.c (types_deeply_equal): Update.
4639 * psymtab.h (struct psymbol_bcache): New struct.
4640 (class psymtab_storage) <psymtab_storage>: Make default.
4641 <psymbol_cache>: Change type to psymbol_bcache.
4642 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
4643 (psymbol_hash): Change to...
4644 (psymbol_bcache::hash): ... this.
4645 (psymbol_compare): Change to...
4646 (psymbol_bcache::compare): ... this.
4647
677c92fe
SM
46482020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4649
4650 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
4651 checking for initial lwp.
4652
3eba3a01
TT
46532020-09-14 Tom Tromey <tromey@adacore.com>
4654
4655 * m68k-tdep.c (m68k_extract_return_value): Use
4656 pointer_result_regnum.
4657 (m68k_store_return_value): Likewise.
4658 (m68k_reg_struct_return_p): Handle vectors and arrays.
4659 (m68k_return_value): Handle arrays.
4660 (m68k_svr4_return_value): Fix single-element aggregate handling.
4661 Handle long double. Adjust for embedded ABI.
4662 (m68k_svr4_init_abi): Set pointer_result_regnum.
4663 (m68k_embedded_init_abi): New function.
4664 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
4665 (m68k_osabi_sniffer): New function.
4666 (_initialize_m68k_tdep): Register osabi sniffer.
4667 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
4668 member.
4669
33f4dd48
SM
46702020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4671
4672 * xml-support.c (xml_fetch_content_from_file): Replace xfree
4673 with gdb::unique_xmalloc_ptr<char>.
4674
8400a90d
SM
46752020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4676
4677 * xml-support.h (xml_fetch_another): Change type to be a
4678 function_view.
4679 (xml_process_xincludes): Remove baton parameter.
4680 (xml_fetch_content_from_file): Change baton parameter to
4681 dirname.
4682 * xml-support.c (struct xinclude_parsing_data)
4683 <xinclude_parsing_data>: Remove baton parameter.
4684 <fetcher_baton>: Remove.
4685 (xinclude_start_include): Adjust.
4686 (xml_process_xincludes): Adjust.
4687 (xml_fetch_content_from_file): Replace baton parameter with
4688 dirname.
4689 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
4690 (xml_init_syscalls_info): Use a lambda.
4691 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
4692 (file_read_description_xml): Use a lambda.
4693 (fetch_available_features_from_target): Change baton parameter
4694 to target_ops.
4695 (target_read_description_xml): Use a lambda.
4696 (target_fetch_description_xml): Use a lambda.
4697 (string_read_description_xml): Update.
4698
04f5bab2
SM
46992020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4700
4701 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
4702 uses with type::endianity_is_not_default.
4703
db558e34
SM
47042020-09-14 Simon Marchi <simon.marchi@efficios.com>
4705
4706 * gdbtypes.h (struct type) <endianity_is_not_default,
4707 set_endianity_is_not_default>: New methods.
4708 (TYPE_ENDIANITY_NOT_DEFAULT): Use
4709 type::endianity_is_not_default, change all write call sites to
4710 use type::set_endianity_is_not_default.
4711
22c4c60c
SM
47122020-09-14 Simon Marchi <simon.marchi@efficios.com>
4713
4714 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
4715 uses with type::is_fixed_instance.
4716
9cdd0d12
SM
47172020-09-14 Simon Marchi <simon.marchi@efficios.com>
4718
4719 * gdbtypes.h (struct type) <is_fixed_instance,
4720 set_is_fixed_instance>: New methods.
4721 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
4722 write call sites to use type::set_is_fixed_instance.
4723
0becda7a
SM
47242020-09-14 Simon Marchi <simon.marchi@efficios.com>
4725
4726 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
4727 uses with type::is_gnu_ifunc.
4728
03cc7249
SM
47292020-09-14 Simon Marchi <simon.marchi@efficios.com>
4730
4731 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
4732 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
4733 use type::set_is_gnu_ifunc.
4734
3f46044c
SM
47352020-09-14 Simon Marchi <simon.marchi@efficios.com>
4736
4737 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
4738 uses with type::stub_is_supported.
4739
9baccff6
SM
47402020-09-14 Simon Marchi <simon.marchi@efficios.com>
4741
4742 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
4743 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
4744 use type::set_stub_is_supported.
4745
bd63c870
SM
47462020-09-14 Simon Marchi <simon.marchi@efficios.com>
4747
4748 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
4749 uses with type::is_vector.
4750
2062087b
SM
47512020-09-14 Simon Marchi <simon.marchi@efficios.com>
4752
4753 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
4754 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
4755 use type::set_is_vector.
4756
a409645d
SM
47572020-09-14 Simon Marchi <simon.marchi@efficios.com>
4758
4759 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
4760 uses with type::has_varargs.
4761
1d6286ed
SM
47622020-09-14 Simon Marchi <simon.marchi@efficios.com>
4763
4764 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
4765 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
4766 use type::set_has_varargs.
4767
7f9f399b
SM
47682020-09-14 Simon Marchi <simon.marchi@efficios.com>
4769
4770 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
4771 uses with type::is_prototyped.
4772
27e69b7a
SM
47732020-09-14 Simon Marchi <simon.marchi@efficios.com>
4774
4775 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
4776 New methods.
4777 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
4778 call sites to use type::set_is_prototyped.
4779
d2183968
SM
47802020-09-14 Simon Marchi <simon.marchi@efficios.com>
4781
4782 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
4783 uses with type::target_is_stub.
4784
8f53807e
SM
47852020-09-14 Simon Marchi <simon.marchi@efficios.com>
4786
4787 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
4788 New methods.
4789 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
4790 sites to use type::set_target_is_stub.
4791
e46d3488
SM
47922020-09-14 Simon Marchi <simon.marchi@efficios.com>
4793
4794 * gdbtypes.h (TYPE_STUB): Remove, replace all
4795 uses with type::is_stub.
4796
b4b73759
SM
47972020-09-14 Simon Marchi <simon.marchi@efficios.com>
4798
4799 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
4800 (TYPE_STUB): Use type::is_stub, change all write call sites to
4801 use type::set_is_stub.
4802
20ce4123
SM
48032020-09-14 Simon Marchi <simon.marchi@efficios.com>
4804
4805 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
4806 type::has_no_signedness.
4807
15152a54
SM
48082020-09-14 Simon Marchi <simon.marchi@efficios.com>
4809
4810 * gdbtypes.h (struct type) <has_no_signedness,
4811 set_has_no_signedness>: New methods.
4812 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
4813 call sites to use type::set_has_no_signedness.
4814
c6d940a9
SM
48152020-09-14 Simon Marchi <simon.marchi@efficios.com>
4816
4817 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
4818 type::is_unsigned.
4819
653223d3
SM
48202020-09-14 Simon Marchi <simon.marchi@efficios.com>
4821
4822 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
4823 methods.
4824 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
4825 sites to use type::set_is_unsigned.
4826
55ea94da 48272020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 4828 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 4829
e851246a
SM
4830 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
4831 pointer and stack frame offset when unwinding.
55ea94da 4832
6791b117
PA
48332020-09-13 Pedro Alves <pedro@palves.net>
4834
4835 * NEWS: Document "-break-insert --qualified".
4836 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
4837
77f2120b
PA
48382020-09-13 Pedro Alves <pedro@palves.net>
4839
4840 * linespec.c (classify_mtype, compare_msyms): Delete.
4841 (search_minsyms_for_name): Remove classification logic. Instead
4842 filter out trampoline symbols if we also found an external
4843 function of the same name.
4844
ed6a896c
JB
48452020-09-13 Joel Brobecker <brobecker@adacore.com>
4846
4847 * NEWS: Create a new section for the next release branch.
4848 Rename the section of the current branch, now that it has
4849 been cut.
4850
32aea73e
JB
48512020-09-13 Joel Brobecker <brobecker@adacore.com>
4852
4853 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
4854 * version.in: Bump version to 11.0.50.DATE-git.
4855
8087c3fa
JB
48562020-09-12 Joel Brobecker <brobecker@adacore.com>
4857
4858 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
4859
2a67f09d
FW
48602020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
4861 Felix Willgerodt <Felix.Willgerodt@intel.com>
4862
4863 * gdbarch.sh: Added bfloat16 type.
4864 * gdbarch.c: Regenerated.
4865 * gdbarch.h: Regenerated.
4866 * gdbtypes.c (floatformats_bfloat16): New struct.
4867 (gdbtypes_post_init): Add builtin_bfloat16.
4868 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
4869 (floatformats_bfloat16): New struct.
4870 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
4871 (i386_ymm_type): Add field "v16_bfloat16"
4872 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
4873 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
4874 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
4875 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
4876 * features/i386/64bit-avx512.xml: Add bfloat16 type.
4877 * features/i386/64bit-avx512.c: Regenerated.
4878 * features/i386/64bit-sse.xml: Add bfloat16 type.
4879 * features/i386/64bit-sse.c: Regenerated.
4880
1347d111
FW
48812020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
4882
4883 * i386-tdep.c (i386_zmm_type): Fix field names.
4884 (i386_ymm_type): Fix field names.
4885
7a4e8e7d
TBA
48862020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4887
4888 * breakpoint.c: Fix typo in the help message of the
4889 "set breakpoint condition-evaluation" command.
4890
cf4ac4be
KR
48912020-09-10 Kamil Rytarowski <n54@gmx.com>
4892
4893 * nbsd-nat.c: Include "nat/netbsd-nat.h".
4894 * (nbsd_nat_target::pid_to_exec_file)
4895 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
4896 (nbsd_nat_target::post_startup_inferior)
4897 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
4898 (nbsd_add_threads): Switch local code to common gdb/nat functions.
4899 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
4900 * (nbsd_thread_lister): Remove.
4901
f404573e
KR
49022020-09-10 Kamil Rytarowski <n54@gmx.com>
4903
4904 * fork-inferior.c (startup_inferior): Avoid double free.
4905
1ccb2c17
KR
49062020-09-10 Kamil Rytarowski <n54@gmx.com>
4907
4908 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
4909 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
4910
feedfcc7
KR
49112020-09-10 Kamil Rytarowski <n54@gmx.com>
4912
4913 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
4914 * netbsd-nat.c: Include <sys/ptrace.h>.
4915 * (netbsd_nat::enable_proc_events): Add.
4916
c489f8c6
KR
49172020-09-10 Kamil Rytarowski <n54@gmx.com>
4918
4919 * netbsd-nat.h: Include "gdbsupport/function-view.h".
4920 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4921 (netbsd_nat::for_each_thread): Add.
4922 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
4923 "gdbsupport/common-debug.h".
4924 * (netbsd_nat::netbsd_thread_lister)
4925 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
4926 (netbsd_nat::for_each_thread): Add.
4927
330662f6
KR
49282020-09-10 Kamil Rytarowski <n54@gmx.com>
4929
4930 * netbsd-nat.h: Include <unistd.h>.
4931 * (netbsd_nat::pid_to_exec_file): Add.
4932 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
4933 * (netbsd_nat::pid_to_exec_file) Add.
4934
70b67307
KR
49352020-09-10 Kamil Rytarowski <n54@gmx.com>
4936
4937 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
4938
99cf6da6
KR
49392020-09-10 Kamil Rytarowski <n54@gmx.com>
4940
4941 * netbsd-nat.h: New file.
4942 * netbsd-nat.c: Likewise.
4943
1b788fb6
TT
49442020-09-09 Tom Tromey <tromey@adacore.com>
4945
4946 * ada-lang.c (remove_extra_symbols): Do not increment when
4947 removing an element
4948
03b0a45f
TT
49492020-09-08 Tom Tromey <tromey@adacore.com>
4950
4951 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
4952
3cae4447
TT
49532020-09-08 Tom Tromey <tromey@adacore.com>
4954
4955 PR win32/25302:
4956 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
4957 (gdb_bfd_init_data): New function.
4958 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
4959
7f08fd51
TBA
49602020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4961
4962 * infrun.c (fetch_inferior_event): Use
4963 `switch_to_target_no_thread` to switch the target.
4964
3e6ff933
TT
49652020-09-06 Tom Tromey <tom@tromey.com>
4966
4967 * symfile.h (dwarf2_free_objfile): Don't declare.
4968
e56798df
AKS
49692020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
4970
4971 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
4972 to match 16 byte real/complex type generated by Flang compiler.
4973
8f5c6526
TV
49742020-09-03 Tom de Vries <tdevries@suse.de>
4975
4976 PR breakpoint/26546
4977 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
4978 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
4979
c5065df0
SM
49802020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
4981
4982 * maint.c (index_digits): New function.
4983 (struct maint_print_section_data): Remove.
4984 (print_bfd_section_info): Remove print_data parameter, add arg
4985 and index_digits.
4986 (print_objfile_section_info): Likewise.
4987 (print_bfd_section_info_maybe_relocated): Likewise (plus
4988 objfile).
4989 (maintenance_info_sections): Adjust calls.
4990
02c6f3f1
TT
49912020-09-02 Tom Tromey <tromey@adacore.com>
4992
4993 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
4994 for null pointers.
4995 (ada_varobj_adjust_for_child_access): Special-case null pointers.
4996
ef5e5b0b
SM
49972020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
4998
4999 * bcache.h (struct bcache) <insert>: Change type of `added` to
5000 pointer to bool.
5001 * bcache.c (bcache::insert): Likewise.
5002 * gdbtypes.c (check_types_worklist): Adjust.
5003 * psymtab.c (add_psymbol_to_bcache): Adjust.
5004
973695d6
KB
50052020-08-31 Kevin Buettner <kevinb@redhat.com>
5006
5007 * corelow.c (unordered_set): Include.
5008 (class core_target): Add field 'm_core_unavailable_mappings'.
5009 (core_target::build_file_mappings): Print only one warning
5010 per inaccessible file. Add unavailable/broken mappings
5011 to m_core_unavailable_mappings.
5012 (core_target::xfer_partial): Call...
5013 (core_target::xfer_memory_via_mappings): New method.
5014
264fc0e2
SM
50152020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5016
5017 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
5018 type to bool.
5019
2de01bdb
SM
50202020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5021
5022 * dwarf2/read.c (struct field_info): Fix indentation.
5023
f3bd50f1
SM
50242020-08-31 Simon Marchi <simon.marchi@efficios.com>
5025
5026 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
5027 ordering in comment.
5028 * frame.c (frame_id_eq): Fix indentation.
5029
22b9b4b0
SL
50302020-08-31 Scott Linder <scott@scottlinder.com>
5031 Simon Marchi <simon.marchi@efficios.com>
5032
5033 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
5034 inline frame ids in outer frame.
5035
84154d16
SM
50362020-08-31 Simon Marchi <simon.marchi@efficios.com>
5037
5038 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
5039 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
5040 (outer_frame_id): Use FID_STACK_OUTER instead of
5041 FID_STACK_INVALID.
5042 (frame_id_p): Don't check for outer_frame_id.
5043
8efaf6b3
SM
50442020-08-31 Simon Marchi <simon.marchi@efficios.com>
5045
5046 * frame-unwind.c (frame_unwind_got_optimized): Don't set
5047 regnum/frame in value. Call allocate_value_lazy.
5048 * frame.c (frame_unwind_register_value): Use
5049 val_print_not_saved.
5050
fe1fe7ea
SM
50512020-08-31 Simon Marchi <simon.marchi@efficios.com>
5052
5053 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
5054
f7c7700d
PA
50552020-08-29 Pedro Alves <pedro@palves.net>
5056
5057 * progspace.c (print_program_space): Use all_inferiors. Switch to
5058 the inferior before calling target_pid_to_str.
5059
e0814aae
TT
50602020-08-28 Tom Tromey <tom@tromey.com>
5061
5062 * xcoffread.c (xcoff_end_psymtab): Update comment.
5063 * dbxread.c (dbx_end_psymtab): Update comment.
5064
626d2320
TV
50652020-08-28 Tom de Vries <tdevries@suse.de>
5066
5067 PR breakpoint/26544
5068 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
5069 event_location.
5070 (create_breakpoint): Same.
5071 (base_breakpoint_decode_location): Same.
5072 (bkpt_create_sals_from_location): Same.
5073 (bkpt_decode_location): Same.
5074 (bkpt_probe_create_sals_from_location): Same.
5075 (bkpt_probe_decode_location): Same.
5076 (tracepoint_create_sals_from_location): Same.
5077 (tracepoint_decode_location): Same.
5078 (tracepoint_probe_decode_location): Same.
5079 (strace_marker_create_sals_from_location): Same.
5080 (strace_marker_decode_location): Same.
5081 (create_sals_from_location_default): Same.
5082 (decode_location_default): Same.
5083 * breakpoint.h (struct breakpoint_ops): Same.
5084 (create_breakpoint): Same.
5085 * linespec.h (decode_line_full): Same.
5086 * linespec.c (decode_line_full): Same. Throw error if
5087 result.size () == 0.
5088
df631783
PA
50892020-08-27 Pedro Alves <pedro@palves.net>
5090
5091 PR gdb/26524
5092 * breakpoint.c (until_break_fsm) <location_breakpoint,
5093 caller_breakpoint>: Delete fields.
5094 <breakpoints>: New field.
5095 <until_break_fsm>: Adjust to save a breakpoint vector instead of
5096 two individual breakpoints.
5097 (until_break_fsm::should_stop): Loop over breakpoints in the
5098 breakpoint vector.
5099 (until_break_fsm::clean_up): Adjust to clear the breakpoints
5100 vector.
5101 (until_break_command): Handle location expanding into multiple
5102 sals.
5103
b2b38aa4
PA
51042020-08-27 Pedro Alves <pedro@palves.net>
5105
5106 PR gdb/26523
5107 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
5108 bp_until breakpoints user-specified locations. Update intro
5109 comment.
5110
b886559f
SM
51112020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
5112
5113 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
5114 gdb_bfd_sections): New.
5115 * maint.c (print_bfd_section_info): Change param type to
5116 maint_print_section_data.
5117 (print_objfile_section_info): Likewise.
5118 (print_bfd_section_info_maybe_relocated): Likewise.
5119 (maintenance_info_sections): Use gdb_bfd_sections.
5120
4c6e63bf
SV
51212020-08-25 Shahab Vahedi <shahab@synopsys.com>
5122
5123 * MAINTAINERS: Add ARC target and maintainer.
5124
8d7f0635
AK
51252020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
5126
5127 * configure.tgt: ARC support for GNU/Linux.
5128 * Makefile.in (ALL_TARGET_OBJS): Likewise.
5129 * arc-linux-tdep.c: New file.
5130 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
5131 * arc-tdep.c (arc_write_pc): Use it.
5132
fdd8731b
SV
51332020-08-25 Shahab Vahedi <shahab@synopsys.com>
5134
5135 * arc-tdep.c (arc_check_for_hardware_loop): New.
5136 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
5137
22459524
SV
51382020-08-25 Shahab Vahedi <shahab@synopsys.com>
5139
5140 * arc-tdep.h: Include "gdbarch.h".
5141
995d3a19
SV
51422020-08-25 Shahab Vahedi <shahab@synopsys.com>
5143
5144 * arch/arc.h
5145 (arc_gdbarch_features): New class to stir the selection of target XML.
5146 (arc_create_target_description): Use FEATURES to choose XML target.
5147 (arc_lookup_target_description): Use arc_create_target_description
5148 to create _new_ target descriptions or return the already created
5149 ones if the FEATURES is the same.
5150 * arch/arc.c: Implementation of prototypes described above.
5151 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
5152 (arc_gdbarch_features_init): Initialize the FEATURES struct.
5153 * arc-tdep.c (*_feature_name): Make feature names consistent.
5154 (arc_register_feature): A new struct to hold information about
5155 registers of a particular target/feature.
5156 (arc_check_tdesc_feature): Check if XML provides registers in
5157 compliance with ARC_REGISTER_FEATURE structs.
5158 (arc_update_acc_reg_names): Add aliases for r58 and r59.
5159 (determine_*_reg_feature_set): Which feature name to look for.
5160 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
5161 (mach_type_to_arc_isa): Convert from a set of binutils machine types
5162 to expected ISA enums to be used in arc_gdbarch_features structs.
5163 * features/Makefile (FEATURE_XMLFILES): Add new files.
5164 * gdb/features/arc/v1-aux.c: New file.
5165 * gdb/features/arc/v1-aux.xml: Likewise.
5166 * gdb/features/arc/v1-core.c: Likewise.
5167 * gdb/features/arc/v1-core.xml: Likewise.
5168 * gdb/features/arc/v2-aux.c: Likewise.
5169 * gdb/features/arc/v2-aux.xml: Likewise.
5170 * gdb/features/arc/v2-core.c: Likewise.
5171 * gdb/features/arc/v2-core.xml: Likewise.
5172 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
5173
3945d2d7
GM
51742020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
5175 Andrew Burgess <andrew.burgess@embecosm.com>
5176
5177 PR m2/26372
fc5d6901 5178 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
5179 an assert. Remove single element array indexing pattern as the
5180 MULTI_SUBSCRIPT support will handle this case too.
5181
2677f2d3
SM
51822020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
5183
5184 * value.h (valprint_check_validity): Move declaration from
5185 here...
5186 * valprint.h (valprint_check_validity): ... to here.
5187
c426fddb
SM
51882020-08-24 Simon Marchi <simon.marchi@efficios.com>
5189
5190 * debug.h: New file.
5191 * debug.c (debug_prefixed_vprintf): New function.
5192 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
5193 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
5194
1eb8556f
SM
51952020-08-24 Simon Marchi <simon.marchi@efficios.com>
5196
5197 * infrun.h (infrun_debug_printf_1): New function declaration.
5198 (infrun_debug_printf): New macro.
5199 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
5200 throughout.
5201 (infrun_debug_printf): New function.
5202 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
5203 (handle_jit_event): Likewise.
5204
b8fff44e
MW
52052020-08-21 Mark Wielaard <mark@klomp.org>
5206
5207 * ada-lex.l: Extend register warnings diagnostics comment for g++.
5208
d19c3068
SM
52092020-08-22 Simon Marchi <simon.marchi@efficios.com>
5210
5211 * frame.c (enum class frame_id_status): New.
5212 (struct frame_info) <this_id::p>: Change type to frame_id_status.
5213 (fprintf_frame): Update.
5214 (compute_frame_id): Set frame id status to "computing" on entry.
5215 Set it back to "not_computed" on failure and to "computed" on
5216 success.
5217 (get_frame_id): Assert the frame id is not being computed.
5218 (create_sentinel_frame): Use frame_id_status::COMPUTED.
5219 (create_new_frame): Likewise.
5220 (frame_cleanup_after_sniffer): Update assert.
5221
b70e516e
SM
52222020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5223
5224 * regcache.c (pid_ptid_regcache_map): New type.
5225 (target_ptid_regcache_map): Remove.
5226 (target_pid_ptid_regcache_map): New type.
5227 (regcaches): Change type to target_pid_ptid_regcache_map.
5228 (get_thread_arch_aspace_regcache): Update.
5229 (regcache_thread_ptid_changed): Update, handle pid-like ptid
5230 case.
5231 (regcaches_size): Update.
5232 (regcache_count): Update.
5233 (registers_changed_ptid_target_pid_test): New.
5234 (_initialize_regcache): Register new test.
5235
cdd9148a
SM
52362020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5237
5238 * regcache.c (regcache_count): New.
5239 (struct regcache_test_data): New.
5240 (regcache_test_data_up): New.
5241 (populate_regcaches_for_test): New.
5242 (regcaches_test): Remove.
5243 (get_thread_arch_aspace_regcache_test): New.
5244 (registers_changed_ptid_all_test): New.
5245 (registers_changed_ptid_target_test): New.
5246 (registers_changed_ptid_target_ptid_test): New.
5247 (regcache_thread_ptid_changed): Remove regcache_count lambda.
5248 (_initialize_regcache): Register new tests.
5249
dd125343
SM
52502020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5251
5252 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
5253 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
5254 gdbarch and aspace parameter. Use current inferior's aspace.
5255 Validate regcache's arch value.
5256 (regcaches_test): Update.
5257
3ee93972
SM
52582020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5259
5260 * regcache.c (regcaches_test): Call registers_changed.
5261
33bf4c5c
TBA
52622020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5263
5264 * infrun.c (process_event_stop_test): Fix typo "breapoint".
5265
c2fd7fae
AKS
52662020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5267
5268 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
5269 to find the end of prologue for flang compiled binaries.
5270 * arm-tdep.c (arm_skip_prologue): Likewise.
5271 * i386-tdep.c (i386_skip_prologue): Likewise.
5272 * producer.c (producer_is_llvm): New function.
5273 (producer_parsing_tests): Added new tests for clang/flang.
5274 * producer.h (producer_is_llvm): New declaration.
5275
9327494e
SM
52762020-08-18 Simon Marchi <simon.marchi@efficios.com>
5277
5278 * linux-nat.c (linux_nat_debug_printf): New function.
5279 (linux_nat_debug_printf_1): New macro. Use throughout the file.
5280
d138725a
AM
52812020-08-18 Aaron Merey <amerey@redhat.com>
5282
5283 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
5284 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
5285 (CLIBS): Add DEBUGINFOD_LIBS.
5286
f9b11e6b
ST
52872020-08-17 Sergei Trofimovich <siarheit@google.com>
5288
5289 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
5290 'gdbarch_num_regs'.
5291
3ae7ab99
TT
52922020-08-17 Tom Tromey <tromey@adacore.com>
5293
5294 * ada-varobj.c (ada_varobj_decode_var): Handle case where
5295 ada_get_decoded_value returns NULL.
5296
b017825f
TT
52972020-08-17 Tom Tromey <tromey@adacore.com>
5298
5299 * python/py-inferior.c (infpy_search_memory): Use
5300 gdb_py_object_from_ulongest.
5301 * python/py-infevents.c (create_inferior_call_event_object)
5302 (create_memory_changed_event_object): Use
5303 gdb_py_object_from_ulongest.
5304 * python/py-linetable.c (ltpy_entry_get_pc): Use
5305 gdb_py_object_from_ulongest.
5306
7635cf79
SM
53072020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5308
5309 * loc.c (class symbol_needs_eval_context): Fix indentation.
5310
f54be24b
SM
53112020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5312
5313 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
5314 bool.
5315
53d5a2a5
TV
53162020-08-17 Tom de Vries <tdevries@suse.de>
5317
5318 PR gdb/26393
5319 * gdbtypes.c (dump_dynamic_prop): New function.
5320 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
5321
547ce8f0
TV
53222020-08-15 Tom de Vries <tdevries@suse.de>
5323
5324 PR backtrace/26390
5325 * stack.c (print_frame_args): Temporarily set the selected
5326 frame to FRAME while printing the frame's arguments.
5327
6ea815e7
PFC
53282020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5329
5330 PR breakpoints/26385
5331 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
5332 Always clear watchpoint with PTRACE_SET_DEBUGREG.
5333
6e562fa3
PFC
53342020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5335
5336 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
5337 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
5338 and >= to check return value instead of == -1 and != -1.
5339
d369b608
SM
53402020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
5341
5342 * utils.h (class gdb_argv) <as_array_view>: New method.
5343 * utils.c (gdb_argv_as_array_view_test): New.
5344 (_initialize_utils): Register selftest.
5345 * maint.c (maintenance_selftest): Use the new method.
5346
b31488a3
KR
53472020-08-13 Kamil Rytarowski <n54@gmx.com>
5348
5349 * target.h (supports_dumpcore, dumpcore): New
5350 function declarations.
5351 * target.c (supports_dumpcore, dumpcore): New
5352 functions.
5353 * target-delegates.c: Rebuild.
5354 * gcore.c (gcore_command): Use target_supports_dumpcore ()
5355 and target_dumpcore ().
5356
002a3166
AM
53572020-08-13 Aaron Merey <amerey@redhat.com>
5358
5359 * debuginfod-support.c: Replace global variables with user_data.
5360
ece5bc8a
SM
53612020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
5362
5363 * maint.c (maintenance_selftest): Split args and pass array_view
5364 to run_tests.
5365
6d8a0a5e
LM
53662020-08-12 Luis Machado <luis.machado@linaro.org>
5367
5368 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
5369 type's length.
5370 Use %s and pulongest to print the length.
5371
7cf663a9
PA
53722020-08-12 Pedro Alves <palves@redhat.com>
5373
5374 * NEWS: Move "Multi-target debugging support" item to the
5375 "Changes since GDB 9" section.
5376
27c7b875
PA
53772020-08-12 Pedro Alves <palves@redhat.com>
5378
5379 PR gdb/26336
5380 * progspace.c (program_space::remove_objfile): Invalidate the
5381 frame cache.
5382
1796a2a1
TV
53832020-08-11 Tom de Vries <tdevries@suse.de>
5384
5385 * MAINTAINERS: Mark ms1 as deleted.
5386
f8e3fe0d
LM
53872020-08-10 Luis Machado <luis.machado@linaro.org>
5388
5389 PR gdb/26310
5390
5391 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
5392 act accordingly.
5393 (aarch64_analyze_prologue_test): Add more unit tests to exercise
5394 movz/str/stur/stp skipping behavior.
5395
cc308722
LM
53962020-08-10 Luis Machado <luis.machado@linaro.org>
5397
5398 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
5399 struct user_sve_header instead of struct sve_context.
5400
041d9819
SM
54012020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
5402
5403 * read.h (dwarf2_fetch_die_loc_sect_off,
5404 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
5405 `void *` parameter with function_view.
5406 * read.c (dwarf2_fetch_die_loc_sect_off,
5407 dwarf2_fetch_die_loc_cu_off): Likewise.
5408 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
5409 (per_cu_dwarf_call): Adjust.
5410 (get_frame_address_in_block_wrapper): Remove.
5411 (indirect_synthetic_pointer): Adjust.
5412 (get_ax_pc): Remove.
5413 (dwarf2_compile_expr_to_ax): Adjust.
5414
38f8aa06
TV
54152020-08-08 Tom de Vries <tdevries@suse.de>
5416
5417 PR build/26344
5418 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
5419 constructor.
5420 * regcache.c (get_thread_arch_aspace_regcache): Same.
5421
a52b3ae2
TT
54222020-08-07 Tom Tromey <tromey@adacore.com>
5423
5424 * ravenscar-thread.c
5425 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
5426 New method.
5427 (ravenscar_thread_target::wait): Check
5428 runtime_initialized.
5429 (ravenscar_thread_target::prepare_to_store)
5430 (ravenscar_thread_target::stopped_by_sw_breakpoint)
5431 (ravenscar_thread_target::stopped_by_hw_breakpoint)
5432 (ravenscar_thread_target::stopped_by_watchpoint)
5433 (ravenscar_thread_target::stopped_data_address)
5434 (ravenscar_thread_target::core_of_thread): Use
5435 scoped_restore_current_thread and
5436 set_base_thread_from_ravenscar_task.
5437
0e29517d
TT
54382020-08-07 Tom Tromey <tromey@adacore.com>
5439
5440 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
5441
592f9bd7
TT
54422020-08-07 Tom Tromey <tromey@adacore.com>
5443
5444 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
5445 update_inferior_ptid before update_thread_list.
5446 (temporarily_change_regcache_ptid): New class.
5447 (ravenscar_thread_target::fetch_registers)
5448 (ravenscar_thread_target::store_registers)
5449 (ravenscar_thread_target::prepare_to_store): Use base thread when
5450 forwarding operation.
5451
39e2018a
TT
54522020-08-07 Tom Tromey <tromey@adacore.com>
5453
5454 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
5455 "is_pid" case.
5456
2080266b
TT
54572020-08-07 Tom Tromey <tromey@adacore.com>
5458
5459 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
5460 New methods.
5461 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
5462 first.
5463 (ravenscar_thread_target::add_thread): Rename from
5464 ravenscar_add_thread.
5465 (ravenscar_thread_target::update_thread_list): Use a lambda.
5466 (ravenscar_thread_target::xfer_partial): New method.
5467
78c02f21
TT
54682020-08-07 Tom Tromey <tromey@adacore.com>
5469
5470 * ada-lang.h (ada_task_list_iterator_ftype): Now a
5471 gdb::function_view.
5472 (iterate_over_live_ada_tasks): Change type of argument.
5473 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
5474 of argument.
5475
d5d833af
TT
54762020-08-07 Tom Tromey <tromey@adacore.com>
5477
5478 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
5479 Remove.
5480 (ravenscar_thread_target::extra_thread_info): Remove.
5481 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
5482 defer to target beneath for non-Ravenscar threads.
5483
a8ac85bb
TT
54842020-08-07 Tom Tromey <tromey@adacore.com>
5485
5486 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
5487 get_base_thread_from_ravenscar_task>: Now methods.
5488 <m_cpu_map>: New member.
5489 (ravenscar_thread_target::get_thread_base_cpu): Rename from
5490 ravenscar_get_thread_base_cpu. Check m_cpu_map.
5491 (ravenscar_thread_target::task_is_currently_active): Update.
5492 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
5493 Now a method.
5494 (ravenscar_thread_target::add_active_thread): Put initial thread
5495 into the m_cpu_map.
5496
550ab58d
TT
54972020-08-07 Tom Tromey <tromey@adacore.com>
5498
5499 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
5500 event_ptid.
5501
e9546579
TT
55022020-08-07 Tom Tromey <tromey@adacore.com>
5503
5504 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
5505 runtime_initialized.
5506
3d4470e5
TT
55072020-08-07 Tom Tromey <tromey@adacore.com>
5508
5509 * ravenscar-thread.c (ravenscar_thread_target): Don't call
5510 add_active_thread.
5511 (ravenscar_thread_target::add_active_thread): Now public.
5512 (ravenscar_inferior_created): Call add_active_thread after pushing
5513 the target.
5514
888bdb2b
SM
55152020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
5516
5517 * regcache.c (ptid_regcache_map): New type.
5518 (target_ptid_regcache_map): New type.
5519 (regcaches): Change type to target_ptid_regcache_map.
5520 (get_thread_arch_aspace_regcache): Update to regcaches' new
5521 type.
5522 (regcache_thread_ptid_changed): Likewise.
5523 (registers_changed_ptid): Likewise.
5524 (regcaches_size): Likewise.
5525 (regcaches_test): Update.
5526 (regcache_thread_ptid_changed): Update.
5527 * regcache.h (regcache_up): New type.
5528 * gdbsupport/ptid.h (hash_ptid): New struct.
5529
b161a60d
SM
55302020-08-07 Simon Marchi <simon.marchi@efficios.com>
5531
5532 * observable.h (thread_ptid_changed): Add parameter
5533 `process_stratum_target *`.
5534 * infrun.c (infrun_thread_ptid_changed): Add parameter
5535 `process_stratum_target *` and use it.
5536 (selftests): New namespace.
5537 (infrun_thread_ptid_changed): New function.
5538 (_initialize_infrun): Register selftest.
5539 * regcache.c (regcache_thread_ptid_changed): Add parameter
5540 `process_stratum_target *` and use it.
5541 (regcache_thread_ptid_changed): New function.
5542 (_initialize_regcache): Register selftest.
5543 * thread.c (thread_change_ptid): Pass target to
5544 thread_ptid_changed observable.
5545
d2854d8d
CT
55462020-08-06 Caroline Tice <cmtice@google.com>
5547
fe4c3d43
SM
5548 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
5549 (struct dwp_sections): Update field comments. Add loclists and
5550 rnglists fields.
5551 (struct virtual_v2_dwo_sections): Rename struct to
5552 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
5553 size & offset fields for loclists and rnglists.
5554 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
5555 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
5556 skipping dummy type units.
5557 (create_dwp_hash_table): Update the large comment above the function to
5558 discuss Version 5 DWP files as well, with references. Update all the
5559 version checks in the function to check for version 5 as well. Add new
5560 section at the end to create dwp hash table for version 5.
5561 (create_dwp_v2_section): Rename function to
5562 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
5563 Add V5 to error message text.
5564 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
5565 into calls to create_dwp_v2_or_v5_section.
5566 (create_dwo_unit_in_dwp_v5): New function.
5567 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
5568 check for version2; add else clause to handle version 5.
5569 (open_and_init_dwo_file): Add code to check dwarf version & only call
5570 create_debug_types_hash_table (with sections.types) if version is not 5;
5571 else call create_debug_type_hash_table, with sections.info.
5572 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
5573 version 5.
5574 (dwarf2_locate_v5_dwp_sections): New function.
5575 (open_and_init_dwp_file): Add else-if clause for version 5 to call
5576 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 5577
159ed7d9
SM
55782020-08-06 Simon Marchi <simon.marchi@efficios.com>
5579
5580 * regcache.h (class regcache): Remove friend
5581 registers_changed_ptid.
5582 <regcache_thread_ptid_changed>: Remove.
5583 <regcaches>: Remove.
5584 * regcache.c (regcache::regcaches): Rename to...
5585 (regcaches): ... this. Make static.
5586 (get_thread_arch_aspace_regcache): Update.
5587 (regcache::regcache_thread_ptid_changed): Rename to...
5588 (regcache_thread_ptid_changed): ... this. Update.
5589 (class regcache_access): Remove.
5590 (regcaches_test): Update.
5591 (_initialize_regcache): Update.
5592 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
5593 <forward_list>.
5594
174981ae
SM
55952020-08-06 Simon Marchi <simon.marchi@efficios.com>
5596
5597 * regcache.h (class regcache) <current_regcache>: Rename to...
5598 <regcaches>: ... this. Move doc here.
5599 * regcache.c (regcache::current_regcache) Rename to...
5600 (regcache::regcaches): ... this. Move doc to header.
5601 (get_thread_arch_aspace_regcache): Update.
5602 (regcache::regcache_thread_ptid_changed): Update.
5603 (registers_changed_ptid): Update.
5604 (class regcache_access) <current_regcache_size>: Rename to...
5605 <regcaches_size>: ... this.
5606 (current_regcache_test): Rename to...
5607 (regcaches_test): ... this.
5608 (_initialize_regcache): Update.
5609
ed908db6
VC
56102020-08-06 Victor Collod <vcollod@nvidia.com>
5611
5612 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
5613
b5582ab7
KB
56142020-08-05 Kevin Buettner <kevinb@redhat.com>
5615
5616 * corelow.c (core_target::build_file_mappings): Don't output
5617 null pathname in warning.
5618
ea946b86
SM
56192020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
5620
5621 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
5622 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
5623 gdb.dwarf2/dw2-single-line-discriminators.exp,
5624 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
5625
57d02173
TT
56262020-08-05 Tom Tromey <tromey@adacore.com>
5627
5628 PR rust/26197:
5629 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
5630 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
5631 Fix off-by-one and type size errors in ordinary case.
5632
5555c86d
TV
56332020-08-05 Tom de Vries <tdevries@suse.de>
5634
5635 * gdbtypes.c (type_not_allocated, type_not_associated): Use
5636 "prop->const_val () == 0" instead of "prop->const_val () != 0".
5637
97916bfe
SM
56382020-08-04 Simon Marchi <simon.marchi@efficios.com>
5639
5640 * frame.h (frame_id_p): Return bool.
5641 (frame_id_artificial_p): Return bool.
5642 (frame_id_eq): Return bool.
5643 (has_stack_frames): Return bool.
5644 (get_selected_frame): Fix typo in comment.
5645 (get_frame_pc_if_available): Return bool.
5646 (get_frame_address_in_block_if_available): Return bool.
5647 (get_frame_func_if_available): Return bool.
5648 (read_frame_register_unsigned): Return bool.
5649 (get_frame_register_bytes): Return bool.
5650 (safe_frame_unwind_memory): Return bool.
5651 (deprecated_frame_register_read): Return bool.
5652 (frame_unwinder_is): Return bool.
5653 * frame.c (struct frame_info) <prev_arch::p>: Change type to
5654 bool.
5655 <this_id::p>: Likewise.
5656 <prev_p>: Likewise.
5657 (frame_stash_add): Return bool.
5658 (get_frame_id): Use bool.
5659 (frame_id_build_special) Use bool.
5660 (frame_id_build_unavailable_stack): Use bool.
5661 (frame_id_build): Use bool.
5662 (frame_id_p): Return bool, use true/false instead of 1/0.
5663 (frame_id_artificial_p): Likewise.
5664 (frame_id_eq): Likewise.
5665 (frame_id_inner): Likewise.
5666 (get_frame_func_if_available): Likewise.
5667 (read_frame_register_unsigned): Likewise.
5668 (deprecated_frame_register_read): Likewise.
5669 (get_frame_register_bytes): Likewise.
5670 (has_stack_frames): Likewise.
5671 (inside_main_func): Likewise.
5672 (inside_entry_func): Likewise.
5673 (get_frame_pc_if_available): Likewise.
5674 (get_frame_address_in_block_if_available): Likewise.
5675 (frame_unwinder_is): Likewise.
5676 (safe_frame_unwind_memory): Likewise.
5677 (frame_unwind_arch): Likewise.
5678
fedfee88
SM
56792020-08-04 Simon Marchi <simon.marchi@efficios.com>
5680
5681 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
5682 type to cached_copy_status.
5683 (fprintf_frame): Adjust.
5684 (get_frame_func_if_available): Adjust.
5685 (frame_cleanup_after_sniffer): Adjust.
5686
6cfa9b59
MW
56872020-08-04 Mark Wielaard <mark@klomp.org>
5688
5689 * MAINTAINERS (Write After Approval): Update email address.
5690
66d6346b
SM
56912020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5692
5693 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
5694 dynamic_prop::const_val.
5695
8a6d5e35
SM
56962020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5697
5698 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
5699 dynamic_prop::kind.
5700
51d6067d
SM
57012020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5702
5703 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
5704
b26e2ae7
JM
57052020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
5706
5707 * configure.tgt: Set gdb_sim for bpf-*-* targets.
5708
39791af2
JM
57092020-08-04 Weimin Pan <weimin.pan@oracle.com>
5710 Jose E. Marchesi <jose.marchesi@oracle.com>
5711
5712 * configure.tgt: Add entry for bpf-*-*.
5713 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
5714 (ALLDEPFILES): Add bpf-tdep.c.
5715 * bpf-tdep.c: New file.
5716 * MAINTAINERS: Add bpf target and maintainer.
5717 * NEWS: Mention the support for the new target.
5718
521894aa
TV
57192020-08-04 Tom de Vries <tdevries@suse.de>
5720
5721 PR symtab/23270
5722 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
5723 Error.
5724
5d6356e9
JB
57252020-08-03 John Baldwin <jhb@FreeBSD.org>
5726
5727 * syscalls/freebsd.xml: Regenerate.
5728
0cf82b81
JB
57292020-08-03 John Baldwin <jhb@FreeBSD.org>
5730
5731 * syscalls/update-freebsd.sh: Fix usage and year range.
5732
8f34b746
TV
57332020-08-03 Tom de Vries <tdevries@suse.de>
5734
5735 PR symtab/26333
5736 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
5737 DW_LNE_lo_user/DW_LNE_hi_user range.
5738
5e500d33
SM
57392020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
5740
5741 PR ada/26318
5742 * ada-lang.c (ada_modulus): Return 0 if property is not of const
5743 kind.
5744
78319c15
TBA
57452020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5746
5747 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
5748
4c55e970
TBA
57492020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5750
5751 * breakpoint.c (set_breakpoint_condition): Update the condition
5752 expressions after checking that the input condition string parses
5753 successfully and does not contain junk at the end.
5754
1e620590
TBA
57552020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5756
5757 * breakpoint.c (set_breakpoint_condition): Update the
5758 condition string after parsing the new condition successfully.
5759
c8693053
RO
57602020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5761
5762 * proc-api.c (_STRUCTURED_PROC): Don't define.
5763 * proc-events.c: Likewise.
5764 * proc-flags.c: Likewise.
5765 * proc-why.c: Likewise.
5766 * procfs.c: Likewise.
5767
5768 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
5769 * configure, config.in: Regenerate.
5770
5a99adb8
TV
57712020-07-30 Tom de Vries <tdevries@suse.de>
5772
5773 PR build/26320
5774 * ui-style.h (struct ui_file_style::color): Wrap m_value and
5775 m_red/m_green/m_blue in a union.
5776
8ba83e91
TV
57772020-07-29 Tom de Vries <tdevries@suse.de>
5778
5779 PR tdep/26280
5780 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
5781
f75a0693
AB
57822020-07-28 Tom Tromey <tromey@adacore.com>
5783
5784 PR symtab/26270:
5785 * symtab.h (find_pc_partial_function_sym): Declare.
5786 * cli/cli-cmds.c (disassemble_command): Use
5787 find_pc_partial_function_sym. Check asm_demangle.
5788 * blockframe.c (cache_pc_function_sym): New global.
5789 (cache_pc_function_name): Remove.
5790 (clear_pc_function_cache): Update.
5791 (find_pc_partial_function_sym): New function, from
5792 find_pc_partial_function.
5793 (find_pc_partial_function): Rewrite using
5794 find_pc_partial_function_sym.
5795
16f3242c
TT
57962020-07-28 Tom Tromey <tromey@adacore.com>
5797
5798 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
5799 help. Add usage.
5800
4888741a
TT
58012020-07-28 Tom Tromey <tromey@adacore.com>
5802
5803 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
5804 <DW_OP_GNU_variable_value>: Cast to address type.
5805
4d46f402
KR
58062020-07-28 Kamil Rytarowski <n54@gmx.com>
5807
5808 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
5809 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
5810 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
5811 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
5812 (nbsd_get_siginfo_type): New.
5813 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
5814 (_initialize_nbsd_tdep): New.
5815
d70f978b
L
58162020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5817
5818 PR binutils/26301
5819 * configure: Regenerated.
5820
377170fa
L
58212020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5822
5823 PR binutils/26301
5824 * configure: Regenerated.
5825
43d5901d
AB
58262020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5827
5828 * python/py-frame.c: Remove 'user-regs.h' include.
5829 (frapy_read_register): Rewrite to make use of
5830 gdbpy_parse_register_id.
5831 * python/py-registers.c (gdbpy_parse_register_id): New function,
5832 moved here from python/py-unwind.c. Updated the return type, and
5833 also accepts register descriptor objects.
5834 * python/py-unwind.c: Remove 'user-regs.h' include.
5835 (pyuw_parse_register_id): Moved to python/py-registers.c.
5836 (unwind_infopy_add_saved_register): Update to use
5837 gdbpy_parse_register_id.
5838 (pending_framepy_read_register): Likewise.
5839 * python/python-internal.h (gdbpy_parse_register_id): Declare.
5840
14fa8fb3
AB
58412020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5842
5843 * python/py-registers.c: Add 'user-regs.h' include.
5844 (register_descriptor_iter_find): New function.
5845 (register_descriptor_iterator_object_methods): New static global
5846 methods array.
5847 (register_descriptor_iterator_object_type): Add pointer to methods
5848 array.
5849
ddce1758
JB
58502020-07-27 John Baldwin <jhb@FreeBSD.org>
5851
5852 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
5853 for all architectures on FreeBSD 11.3 and later.
5854
a4089f52
TT
58552020-07-27 Tom Tromey <tromey@adacore.com>
5856
5857 * gcore.h (load_corefile): Don't declare.
5858
95420d30
TV
58592020-07-27 Tom de Vries <tdevries@suse.de>
5860
5861 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
5862 * config.in: Regenerate.
5863 * configure: Regenerate.
5864
05a6b8c2
EZ
58652020-07-26 Eli Zaretskii <eliz@gnu.org>
5866
5867 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
5868 ws2tcpip.h. When checking whether socklen_t type is defined, use
5869 ws2tcpip.h if it is available and sys/socket.h isn't.
5870 * configure: Regenerate.
5871 * config.in: Regenerate.
5872
e79eb02f
AB
58732020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
5874
5875 PR fortran/23051
5876 PR fortran/26139
5877 * valops.c (value_ind): Pass address to
5878 readjust_indirect_value_type.
5879 * value.c (readjust_indirect_value_type): Make parameter
5880 non-const, and add extra address parameter. Resolve original type
5881 before using it.
5882 * value.h (readjust_indirect_value_type): Update function
5883 signature and comment.
5884
876518dd
TV
58852020-07-25 Tom de Vries <tdevries@suse.de>
5886
5887 PR symtab/26243
5888 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
5889 entries.
5890
f6720b1c
AM
58912020-07-24 Aaron Merey <amerey@redhat.com>
5892
5893 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
5894 * configure: Rebuild.
5895
513487e1
KB
58962020-07-23 Kevin Buettner <kevinb@redhat.com>
5897
5898 PR corefiles/26294
5899 * corelow.c (_initialize_corelow): Add period to help text
5900 for "maintenance print core-file-backed-mappings".
5901
e7bc9db8
PA
59022020-07-23 Pedro Alves <pedro@palves.net>
5903
5904 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
5905 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
5906 meanwhile.
5907 * frame.c (frame_cache_generation, get_frame_cache_generation):
5908 New.
5909 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
5910 (get_prev_frame_if_no_cycle): On exception, don't touch
5911 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
5912 * frame.h (get_frame_cache_generation): Declare.
5913
90fcc466
TV
59142020-07-23 Tom de Vries <tdevries@suse.de>
5915
5916 PR tui/26282
5917 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
5918 New default constructor.
5919
78344df7
AB
59202020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
5921
5922 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
5923 exclude non-statement entries.
5924
b089853a
KB
59252020-07-22 Kevin Buettner <kevinb@redhat.com>
5926
5927 * NEWS (New commands): Mention new command
5928 "maintenance print core-file-backed-mappings".
5929
09c2f5d4
KB
59302020-07-22 Kevin Buettner <kevinb@redhat.com>
5931
5932 * corelow.c (gdbcmd.h): Include.
5933 (core_target::info_proc_mappings): New method.
5934 (get_current_core_target): New function.
5935 (maintenance_print_core_file_backed_mappings): New function.
5936 (_initialize_corelow): Add core-file-backed-mappings to
5937 "maint print" commands.
5938
9c5ec5c2 59392020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 5940
9c5ec5c2
KB
5941 * linux-tdep.c (dump_note_entry_p): New function.
5942 (linux_dump_mapping_p_ftype): New typedef.
5943 (linux_find_memory_regions_full): Add new parameter,
5944 should_dump_mapping_p.
5945 (linux_find_memory_regions): Adjust call to
5946 linux_find_memory_regions_full.
5947 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
5948 call to linux_find_memory_regions_full.
5949
db082f59
KB
59502020-07-22 Kevin Buettner <kevinb@redhat.com>
5951
5952 * corelow.c (solist.h, unordered_map): Include.
5953 (class core_target): Add field m_core_file_mappings and
5954 method build_file_mappings.
5955 (core_target::core_target): Call build_file_mappings.
5956 (core_target::~core_target): Free memory associated with
5957 m_core_file_mappings.
5958 (core_target::build_file_mappings): New method.
5959 (core_target::xfer_partial): Use m_core_file_mappings
5960 for memory transfers.
5961 * linux-tdep.c (linux_read_core_file_mappings): New
5962 function.
5963 (linux_core_info_proc_mappings): Rewrite to use
5964 linux_read_core_file_mappings.
5965 (linux_init_abi): Register linux_read_core_file_mappings.
5966
7e183d27
KB
59672020-07-22 Kevin Buettner <kevinb@redhat.com>
5968
5969 * arch-utils.c (default_read_core_file_mappings): New function.
5970 * arch-utils.c (default_read_core_file_mappings): Declare.
5971 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
5972 * gdbarch.h, gdbarch.c: Regenerate.
5973
2735d421
KB
59742020-07-22 Kevin Buettner <kevinb@redhat.com>
5975
5976 PR corefiles/25631
5977 * corelow.c (core_target:xfer_partial): Revise
5978 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
5979 case after first checking the stratum beneath the core
5980 target.
5981 (has_all_memory): Return true.
5982 * target.c (raw_memory_xfer_partial): Revise comment
5983 regarding use of has_all_memory.
5984
e56cb451
KB
59852020-07-22 Kevin Buettner <kevinb@redhat.com>
5986
5987 * exec.h (section_table_xfer_memory): Revise declaration,
5988 replacing section name parameter with an optional callback
5989 predicate.
5990 * exec.c (section_table_xfer_memory): Likewise.
5991 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
5992 of section_table_xfer_memory.
5993
32fa152e
TT
59942020-07-22 Tom Tromey <tromey@adacore.com>
5995
5996 * mi/mi-cmd-stack.c (list_args_or_locals): Use
5997 lookup_symbol_search_name.
5998
a67a1c41
AB
59992020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6000
6001 * python/py-registers.c (gdbpy_register_object_data_init): Remove
6002 redundant local variable.
6003 (gdbpy_get_register_descriptor): Extract descriptor vector as a
6004 reference, not pointer, update code accordingly.
6005
a7b4ff4f
SM
60062020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6007 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6008
6009 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
6010 * jit.c (jit_breakpoint_re_set_internal): Use the
6011 `skip_jit_symbol_lookup` field.
6012
2340e834
SM
60132020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6014 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6015
6016 * jit.c (jit_read_descriptor): Define the descriptor address once,
6017 use twice.
6018 (jit_breakpoint_deleted): Move the declaration of the loop variable
6019 `iter` into the loop header.
6020 (jit_breakpoint_re_set_internal): Move the declaration of the local
6021 variable `objf_data` to the first point of definition.
6022 (jit_event_handler): Move the declaration of local variables
6023 `code_entry`, `entry_addr`, and `objf` to their first point of use.
6024 Rename `objf` to `jited`.
6025
c1072906
SM
60262020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6027
6028 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
6029 Remove.
6030 * jit.c (get_jiter_objfile_data): Update.
6031
c8474dc3
TBA
60322020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6033 Simon Marchi <simon.marchi@polymtl.ca>
6034
6035 * jit.c (struct jit_program_space_data): Remove.
6036 (jit_program_space_key): Remove.
6037 (jiter_objfile_data::~jiter_objfile_data): Remove program space
6038 stuff.
6039 (get_jit_program_space_data): Remove.
6040 (jit_breakpoint_deleted): Iterate on all of the program space's
6041 objfiles.
6042 (jit_inferior_init): Likewise.
6043 (jit_breakpoint_re_set_internal): Likewise. Also change return
6044 type to void.
6045 (jit_breakpoint_re_set): Pass current_program_space to
6046 jit_breakpoint_re_set_internal.
6047
77208eb7
SM
60482020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6049
6050 * jit.h (struct jiter_objfile_data) <cached_code_address,
6051 jit_breakpoint>: Move to here from ...
6052 * jit.c (jit_program_space_data): ... here.
6053 (jiter_objfile_data::~jiter_objfile_data): Update.
6054 (jit_breakpoint_deleted): Update.
6055 (jit_breakpoint_re_set_internal): Update.
6056
8c1c720f
SM
60572020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6058
6059 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
6060 checks.
6061 (jit_read_descriptor): Remove NULL check.
6062 (jit_event_handler): Add an assertion.
6063
0e74a041
SM
60642020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6065
6066 * jit.h (struct jit_objfile_data): Split into...
6067 (struct jiter_objfile_data): ... this ...
6068 (struct jited_objfile_data): ... and this.
6069 * objfiles.h (struct objfile) <jit_data>: Remove.
6070 <jiter_data, jited_data>: New fields.
6071 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
6072 (jiter_objfile_data::~jiter_objfile_data): ... this.
6073 (get_jit_objfile_data): Rename to ...
6074 (get_jiter_objfile_data): ... this.
6075 (add_objfile_entry): Update.
6076 (jit_read_descriptor): Use get_jiter_objfile_data.
6077 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
6078 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
6079 (jit_inferior_exit_hook): Use objfile's jited_data field.
6080
238b5c9f
SM
60812020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6082
6083 * jit.h: Forward-declare `struct minimal_symbol`.
6084 (struct jit_objfile_data): Migrate to here from jit.c; also add a
6085 constructor, destructor, and an objfile* field.
6086 * jit.c (jit_objfile_data): Remove.
6087 (struct jit_objfile_data): Migrate from here to jit.h.
6088 (jit_objfile_data::~jit_objfile_data): New destructor
6089 implementation with code moved from free_objfile_data.
6090 (free_objfile_data): Delete.
6091 (get_jit_objfile_data): Update to use the jit_data field of objfile.
6092 (jit_find_objf_with_entry_addr): Ditto.
6093 (jit_inferior_exit_hook): Ditto.
6094 (_initialize_jit): Remove the call to
6095 register_objfile_data_with_cleanup.
6096 * objfiles.h (struct objfile) <jit_data>: New field.
6097
fe053b9e
TBA
60982020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6099
6100 * jit.h: Forward-declare `struct objfile`.
6101 (jit_event_handler): Add a second parameter, the JITer objfile.
6102 * jit.c (jit_read_descriptor): Change the signature to take the
6103 JITer objfile as an argument instead of the jit_program_space_data.
6104 (jit_inferior_init): Update the call to jit_read_descriptor.
6105 (jit_event_handler): Use the new JITer objfile argument when calling
6106 jit_read_descriptor.
6107 * breakpoint.c (handle_jit_event): Update the call to
6108 jit_event_handler to pass the JITer objfile.
6109
4cec0c66
JB
61102020-07-21 John Baldwin <jhb@FreeBSD.org>
6111
6112 * gdbarch.c: Regenerate.
6113 * gdbarch.h: Regenerate.
6114 * gdbarch.sh (handle_segmentation_fault): Remove method.
6115 * infrun.c (handle_segmentation_fault): Remove.
6116 (print_signal_received_reason): Remove call to
6117 handle_segmentation_fault.
6118
0e42f66a
JB
61192020-07-21 John Baldwin <jhb@FreeBSD.org>
6120
6121 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6122 Rename to sparc64_linux_report_signal_info and add siggnal
6123 argument.
6124 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
6125 instead of sparc64_linux_handle_segmentation_fault.
6126
77bdfeb2
JB
61272020-07-21 John Baldwin <jhb@FreeBSD.org>
6128
6129 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
6130 i386_linux_report_signal_info instead of
6131 i386_linux_handle_segmentation_fault.
6132 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
6133 to i386_linux_report_signal_info and add siggnal argument.
6134 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
6135 of i386_linux_handle_segmentation_fault.
6136 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
6137 to i386_linux_report_signal_info and add siggnal argument.
6138
ad97bfc5
JB
61392020-07-21 John Baldwin <jhb@FreeBSD.org>
6140
6141 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
6142 hook if present.
6143
272bb05c
JB
61442020-07-21 John Baldwin <jhb@FreeBSD.org>
6145
6146 * gdbarch.c: Regenerate.
6147 * gdbarch.h: Regenerate.
6148 * gdbarch.sh (report_signal_info): New method.
6149 * infrun.c (print_signal_received_reason): Invoke gdbarch
6150 report_signal_info hook if present.
6151
baf8791e
AB
61522020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6153
6154 * python/py-registers.c : Add 'unordered_map' include.
6155 (gdbpy_new_reggroup): Renamed to...
6156 (gdbpy_get_reggroup): ...this. Update to only create register
6157 group descriptors when needed.
6158 (gdbpy_reggroup_iter_next): Update.
6159
f7306dac
AB
61602020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6161
6162 * python/py-registers.c (gdbpy_register_object_data): New static
6163 global.
6164 (gdbpy_register_object_data_init): New function.
6165 (gdbpy_new_register_descriptor): Renamed to...
6166 (gdbpy_get_register_descriptor): ...this, and update to reuse
6167 existing register descriptors where possible.
6168 (gdbpy_register_descriptor_iter_next): Update.
6169 (gdbpy_initialize_registers): Register new gdbarch data.
6170
05c309a8
SM
61712020-07-21 Simon Marchi <simon.marchi@efficios.com>
6172
6173 * linux-nat.c (stopped_pids): Make static.
6174
d1fd641e
SM
61752020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
6176
6177 PR ada/26235
6178 * gdbtypes.c (ada_discrete_type_low_bound,
6179 ada_discrete_type_high_bound): Handle undefined bounds.
6180
1de14d77
KR
61812020-07-21 Kamil Rytarowski <n54@gmx.com>
6182
6183 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
6184 declaration.
6185 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
6186 function.
6187
ed810cc7
JB
61882020-07-20 John Baldwin <jhb@FreeBSD.org>
6189
6190 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
6191 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
6192 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
6193 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
6194 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
6195 method.
6196
ae5369e7
LC
61972020-07-20 Ludovic Courtès <ludo@gnu.org>
6198
6199 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
6200 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
6201 which are deprecated in Guile 3.0.
6202 * configure.ac (try_guile_versions): Add "guile-3.0".
6203 * configure (try_guile_versions): Regenerate.
6204 * NEWS: Update entry.
6205
68cf161c
LC
62062020-07-20 Ludovic Courtès <ludo@gnu.org>
6207 Doug Evans <dje@google.com>
6208
6209 PR gdb/21104
6210 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
6211 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
6212 USING_GUILE_BEFORE_2_2.
6213 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
6214 Change type to 'scm_t_port_type *'.
6215 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
6216 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
6217 parameter and honor it. Update callers.
6218 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
6219 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
6220 functions.
6221 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
6222 USING_GUILE_BEFORE_2_2.
6223 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
6224 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
6225 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
6226 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
6227 and 'SCM_PORT_TYPE'.
6228 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
6229 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
6230 (gdbscm_memory_port_read, gdbscm_memory_port_write)
6231 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
6232 [!USING_GUILE_BEFORE_2_2]: New functions.
6233 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
6234 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
6235 'gdbscm_memory_port_read'.
6236 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
6237 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
6238 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
6239 function.
6240 (ioscm_init_memory_port): Remove.
6241 (ioscm_init_memory_port_stream): New function
6242 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
6243 function.
6244 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6245 Return scm_from_uint (0).
6246 (gdbscm_set_memory_port_read_buffer_size_x)
6247 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6248 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6249 Return scm_from_uint (0).
6250 (gdbscm_set_memory_port_write_buffer_size_x)
6251 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6252 * configure.ac (try_guile_versions): Add "guile-2.2".
6253 * configure: Regenerate.
6254 * NEWS: Add entry.
6255
aee91db3
TT
62562020-07-18 Tom Tromey <tom@tromey.com>
6257
6258 * linux-nat.c (linux_multi_process): Remove.
6259 (linux_nat_target::supports_multi_process): Return true.
6260
0e267416
AB
62612020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6262
6263 * arch/riscv.c (riscv_tdesc_cache): Change map type.
6264 (riscv_lookup_target_description): Return pointer out of
6265 unique_ptr.
6266 * target-descriptions.c (allocate_target_description): Add
6267 comment.
6268 (target_desc_deleter::operator()): Likewise.
6269 * target-descriptions.h (struct target_desc_deleter): Moved to
6270 gdbsupport/tdesc.h.
6271 (target_desc_up): Likewise.
6272
f80c8ec4
TT
62732020-07-17 Tom Tromey <tromey@adacore.com>
6274
6275 * linux-nat.c (linux_nat_target::supports_non_stop)
6276 (linux_nat_target::always_non_stop_p): Use "true".
6277 (linux_nat_target::supports_disable_randomization): Use "true" and
6278 "false".
6279
d0ce17d8
CT
62802020-07-16 Caroline Tice <cmtice@google.com>
6281
6282 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
6283 (RNGLIST_HEADER_SIZE64): New constant definition.
6284 (struct dwop_section_names): Add rnglists_dwo.
6285 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
6286 (struct loclist_header): Rename to 'loclists_rnglists_header'.
6287 (struct dwo_sections): Add rnglists field.
6288 (read_attribut_reprocess): Add tag parameter.
6289 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
6290 (cu_debug_rnglists_section): New function (decl & definition).
6291 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
6292 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
6293 die whose range is being checked; get rnglist section from
6294 cu_debug_rnglists_section, to get from either objfile or dwo file as
6295 appropriate. Add cases for DW_RLE_base_addressx,
6296 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
6297 the base address to DW_RLE_offset_pairs (not to all ranges), moving
6298 test inside if-condition and updating complaint message.
6299 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
6300 dwarf2_rnglists_process.
6301 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
6302 dwarf2_ranges_process.
6303 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
6304 need_ranges_base and update comment appropriately. Also pass die tag
6305 to dwarf2_ranges_read.
6306 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
6307 need_ranges_base and update comment appropriately. Also pass die tag
6308 to dwarf2_ranges_process.
6309 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
6310 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
6311 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
6312 need_ranges_base and update comment appropriately. Also pass die tag
6313 to read_attribute_reprocess and dwarf2_ranges_read.
6314 (read_loclist_header): Rename function to read_loclists_rnglists_header,
6315 and update function comment appropriately.
6316 (read_loclist_index): Call read_loclists_rnglists_header instead of
6317 read_loclist_header.
6318 (read_rnglist_index): New function.
6319 (read_attribute_reprocess): Add tag parameter. Add code for
6320 DW_FORM_rnglistx, passing tag to read_rnglist_index.
6321 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
6322
3dcc261c
AB
63232020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
6324
6325 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
6326 being resolved.
6327
ccb9eba6
AB
63282020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
6329
6330 * arch-utils.c (show_architecture): Update formatting of messages.
6331
cf88be68
SM
63322020-07-12 Simon Marchi <simon.marchi@efficios.com>
6333
6334 * gdbtypes.h (struct type) <bounds>: Handle array and string
6335 types.
6336 * ada-lang.c (assign_aggregate): Use type::bounds on
6337 array/string type.
6338 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
6339 * c-varobj.c (c_number_of_children): Likewise.
6340 (c_describe_child): Likewise.
6341 * eval.c (evaluate_subexp_for_sizeof): Likewise.
6342 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
6343 (f_type_print_base): Likewise.
6344 * f-valprint.c (f77_array_offset_tbl): Likewise.
6345 (f77_get_upperbound): Likewise.
6346 (f77_print_array_1): Likewise.
6347 * guile/scm-type.c (gdbscm_type_range): Likewise.
6348 * m2-typeprint.c (m2_array): Likewise.
6349 (m2_is_long_set_of_type): Likewise.
6350 * m2-valprint.c (get_long_set_bounds): Likewise.
6351 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
6352 * python/py-type.c (typy_range): Likewise.
6353 * rust-lang.c (rust_internal_print_type): Likewise.
6354 * type-stack.c (type_stack::follow_types): Likewise.
6355 * valarith.c (value_subscripted_rvalue): Likewise.
6356 * valops.c (value_cast): Likewise.
6357
509971ae
SM
63582020-07-12 Simon Marchi <simon.marchi@efficios.com>
6359
6360 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
6361 callers to use the equivalent accessor methods.
6362
107406b7
SM
63632020-07-12 Simon Marchi <simon.marchi@efficios.com>
6364
6365 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
6366 (struct type) <bit_stride>: New method.
6367 (TYPE_BIT_STRIDE): Remove.
6368 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
6369
bb789949
SM
63702020-07-12 Simon Marchi <simon.marchi@efficios.com>
6371
6372 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
6373 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
6374 callers to use the equivalent accessor methods instead.
6375
39498edb
SM
63762020-07-12 Simon Marchi <simon.marchi@efficios.com>
6377
6378 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
6379 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
6380 callers to use the equivalent accessor methods instead.
6381
3b606f38
SM
63822020-07-12 Simon Marchi <simon.marchi@efficios.com>
6383
6384 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
6385 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
6386 to use dynamic_prop::kind.
6387
064d9cb9
SM
63882020-07-12 Simon Marchi <simon.marchi@efficios.com>
6389
6390 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
6391 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
6392 to get the bound property's kind and check against
6393 PROP_UNDEFINED.
6394
5537ddd0
SM
63952020-07-12 Simon Marchi <simon.marchi@efficios.com>
6396
6397 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
6398 all callers to use type::range_bounds followed by
6399 dynamic_prop::{low,high}.
6400
8c2e4e06
SM
64012020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6402
6403 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
6404 const_val, set_const_val, baton, set_locexpr, set_loclist,
6405 set_addr_offset, variant_parts, set_variant_parts,
6406 original_type, set_original_type>: New methods.
6407 <kind>: Rename to...
6408 <m_kind>: ... this. Update all users to use the new methods
6409 instead.
6410 <data>: Rename to...
6411 <m_data>: ... this. Update all users to use the new methods
6412 instead.
6413
7c6f2712
SM
64142020-07-12 Simon Marchi <simon.marchi@efficios.com>
6415
6416 * gdbtypes.c (get_discrete_bounds): Return failure if
6417 the range type's bounds are not both defined and constant
6418 values.
6419 (get_array_bounds): Update comment. Remove undefined bound check.
6420
599088e3
SM
64212020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6422
6423 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
6424 the type::bounds method directly.
6425
c4dfcb36
SM
64262020-07-12 Simon Marchi <simon.marchi@efficios.com>
6427
6428 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
6429 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
6430 are used to set the range type's bounds to use set_bounds.
6431
0a278aa7
PW
64322020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6433
6434 * exec.c (_initialize_exec): Update exec-file-mismatch help.
6435
cce20f10
PA
64362020-07-10 Pedro Alves <pedro@palves.net>
6437
6438 * gdbthread.h (inferior_ref): Define.
6439 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
6440 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
6441 * thread.c
6442 (scoped_restore_current_thread::restore):
6443 Adjust to gdb::ref_ptr.
6444 (scoped_restore_current_thread::~scoped_restore_current_thread):
6445 Remove manual decref handling.
6446 (scoped_restore_current_thread::scoped_restore_current_thread):
6447 Adjust to use
6448 inferior_ref::new_reference/thread_info_ref::new_reference.
6449 Incref the thread before calling get_frame_id instead of after.
6450 Let TARGET_CLOSE_ERROR propagate.
6451
6d7aa592
PA
64522020-07-10 Pedro Alves <pedro@palves.net>
6453
6454 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
6455 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
6456 NOT_AVAILABLE_ERROR.
6457 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
6458 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
6459
b3e3a4c1
SM
64602020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6461 Pedro Alves <pedro@palves.net>
6462
6463 PR gdb/26199
6464 * infrun.c (threads_are_resumed_pending_p): Delete.
6465 (do_target_wait): Remove threads_are_executing and
6466 threads_are_resumed_pending_p checks from the inferior_matches
6467 lambda. Update comments.
6468
d6cc5d98
PA
64692020-07-10 Pedro Alves <pedro@palves.net>
6470
6471 PR gdb/26199
6472 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
6473 executing threads.
6474
7d3badc6
PA
64752020-07-10 Pedro Alves <pedro@palves.net>
6476
6477 PR gdb/26199
6478 * infrun.c (handle_no_resumed): Handle multiple targets.
6479
42bd97a6
PA
64802020-07-10 Pedro Alves <pedro@palves.net>
6481
6482 PR gdb/26199
6483 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
6484 target_is_async_p.
6485
43667cc6
PA
64862020-07-10 Pedro Alves <pedro@palves.net>
6487
6488 PR gdb/26199
6489 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
6490 threads, not all threads.
6491
96118d11
PA
64922020-07-10 Pedro Alves <pedro@palves.net>
6493
6494 PR gdb/26199
6495 * remote.c (remote_target::open_1): Pass remote target pointer as
6496 data to create_async_event_handler.
6497 (remote_async_inferior_event_handler): Mark async event handler
6498 before returning if the remote target still has either pending
6499 events or unacknowledged notifications.
6500
54904d81
JB
65012020-07-10 John Baldwin <jhb@FreeBSD.org>
6502
6503 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
6504 declaration.
6505 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
6506 function.
6507
f37e5866
JB
65082020-07-09 John Baldwin <jhb@FreeBSD.org>
6509
6510 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
6511 inferior_ptid.
6512
fc238d4a
JB
65132020-07-09 John Baldwin <jhb@FreeBSD.org>
6514
6515 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
6516 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
6517 AT_FREEBSD_PS_STRINGS.
6518
6e2469ff
HD
65192020-07-08 Hannes Domani <ssbssa@yahoo.de>
6520
6521 * auto-load.c (auto_load_objfile_script_1): Convert drive part
6522 of debugfile path on Windows.
6523
d1076c41
JB
65242020-07-08 John Baldwin <jhb@FreeBSD.org>
6525
6526 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
6527 argument to 'data'.
6528
15f3b077
TT
65292020-07-08 Tom Tromey <tromey@adacore.com>
6530
6531 * ada-lang.c (ada_exception_message_1): Use read_memory.
6532
9fc501fd
AB
65332020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6534
6535 PR python/22748
6536 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
6537 special handling for inline frames.
6538 * findvar.c (value_of_register_lazy): Skip inline frames when
6539 creating lazy register values.
6540 * frame.c (frame_id_computed_p): Delete definition.
6541 * frame.h (frame_id_computed_p): Delete declaration.
6542
64cb3757
AB
65432020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6544
6545 * NEWS: Mention additions to Python API.
6546 * python/py-arch.c (archpy_register_groups): New function.
6547 (arch_object_methods): Add 'register_groups' method.
6548 * python/py-registers.c (reggroup_iterator_object): New struct.
6549 (reggroup_object): New struct.
6550 (gdbpy_new_reggroup): New function.
6551 (gdbpy_reggroup_to_string): New function.
6552 (gdbpy_reggroup_name): New function.
6553 (gdbpy_reggroup_iter): New function.
6554 (gdbpy_reggroup_iter_next): New function.
6555 (gdbpy_new_reggroup_iterator): New function
6556 (gdbpy_initialize_registers): Register new types.
6557 (reggroup_iterator_object_type): Define new Python type.
6558 (gdbpy_reggroup_getset): New static global.
6559 (reggroup_object_type): Define new Python type.
6560 * python/python-internal.h
6561
0f767f94
AB
65622020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6563
6564 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
6565 * python/py-arch.c (archpy_registers): New function.
6566 (arch_object_methods): Add 'registers' method.
6567 * python/py-registers.c: New file.
6568 * python/python-internal.h
6569 (gdbpy_new_register_descriptor_iterator): Declare.
6570 (gdbpy_initialize_registers): Declare.
6571 * python/python.c (do_start_initialization): Call
6572 gdbpy_initialize_registers.
6573 * NEWS: Mention additions to the Python API.
6574
87dbc774
AB
65752020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6576
6577 * NEWS: Mention new Python API method.
6578 * python/py-unwind.c (pending_framepy_architecture): New function.
6579 (pending_frame_object_methods): Add architecture method.
6580
3bc98c0c
AB
65812020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6582
6583 * gdbarch.c: Regenerate.
6584 * gdbarch.h: Regenerate.
6585 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
6586 (gdbarch_data): Use internal_error for the case where
6587 deprecated_set_gdbarch_data was originally needed.
6588 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
6589 and use passed in obstack.
6590 (libunwind_frame_set_descr): Should no longer get back NULL from
6591 gdbarch_data.
6592 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
6593 type.
6594 * user-regs.c (user_regs_init): Update parameters, and use passed
6595 in obstack.
6596 (user_reg_add): Should no longer get back NULL from gdbarch_data.
6597 (_initialize_user_regs): Register as a pre-init gdbarch data type.
6598
d8cc8af6
TV
65992020-07-06 Tom de Vries <tdevries@suse.de>
6600
6601 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
6602 End-Of-Sequence in lte_is_less_than.
6603 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
6604 "gdb: Don't reorder line table entries too much when sorting".
6605
947f7597
TV
66062020-07-06 Tom de Vries <tdevries@suse.de>
6607
6608 PR tui/26205
6609 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
6610
1e7c1b22
TV
66112020-07-05 Tom de Vries <tdevries@suse.de>
6612
6613 PR build/26187
6614 * inferior.h (struct infcall_suspend_state_deleter): If available, use
6615 std::uncaught_exceptions instead of deprecated
6616 std::uncaught_exception.
6617
a36158ec
SM
66182020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6619
6620 * macroexp.h (macro_stringify): Return
6621 gdb::unique_xmalloc_ptr<char>.
6622 * macroexp.c (macro_stringify): Likewise.
6623 * macrotab.c (fixup_definition): Update.
6624
14d960c8
SM
66252020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6626
6627 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
6628 (lex_one_token): Update.
6629 * macroexp.c (struct macro_buffer) <release>: Return
6630 gdb::unique_xmalloc_ptr<char>.
6631 (macro_stringify): Update.
6632 (macro_expand): Update.
6633 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
6634 * macroexp.h (macro_expand_next): Likewise.
6635
211d5b1c
SM
66362020-07-02 Simon Marchi <simon.marchi@efficios.com>
6637
6638 * macroexp.h (macro_lookup_ftype): Remove.
6639 (macro_expand, macro_expand_once, macro_expand_next): Remove
6640 lookup function parameters, add scope parameter.
6641 * macroexp.c (scan, substitute_args, expand, maybe_expand,
6642 macro_expand, macro_expand_once, macro_expand_next): Likewise.
6643 * macroscope.h (standard_macro_lookup): Change parameter type
6644 to macro_scope.
6645 * macroscope.c (standard_macro_lookup): Likewise.
6646 * c-exp.y (lex_one_token): Update.
6647 * macrocmd.c (macro_expand_command): Likewise.
6648 (macro_expand_once_command): Likewise.
6649
b1a35af2
SM
66502020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6651
6652 * inf-loop.c (inferior_event_handler): Remove client_data param.
6653 * inf-loop.h (inferior_event_handler): Likewise.
6654 * infcmd.c (step_1): Adjust.
6655 * infrun.c (proceed): Adjust.
6656 (fetch_inferior_event): Remove client_data param.
6657 (infrun_async_inferior_event_handler): Adjust.
6658 * infrun.h (fetch_inferior_event): Remove `void *` param.
6659 * linux-nat.c (handle_target_event): Adjust.
6660 * record-btrace.c (record_btrace_handle_async_inferior_event):
6661 Adjust.
6662 * record-full.c (record_full_async_inferior_event_handler):
6663 Adjust.
6664 * remote.c (remote_async_inferior_event_handler): Adjust.
6665
1cdf9e33
TT
66662020-07-01 Tom Tromey <tom@tromey.com>
6667
6668 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
6669 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
6670
32c1e210
TT
66712020-07-01 Tom Tromey <tom@tromey.com>
6672
6673 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
6674 tui_gen_win_info.
6675 (tui_win_info::make_window): Merge with
6676 tui_gen_win_info::make_window.
6677 (tui_win_info::make_visible): Move from tui_gen_win_info.
6678 * tui/tui-win.c (tui_win_info::max_width): Move from
6679 tui_gen_win_info.
6680 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
6681 type.
6682 <window_factory>: Likewise.
6683 * tui/tui-layout.c (tui_win_info::resize): Move from
6684 tui_gen_win_info.
6685 (make_standard_window): Change return type.
6686 (get_locator_window, tui_get_window_by_name): Likewise.
6687 (tui_layout_window::apply): Remove a cast.
6688 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
6689 (struct tui_win_info): Merge with tui_gen_win_info.
6690 (struct tui_gen_win_info): Remove.
6691
a30cb6da
TT
66922020-07-01 Tom Tromey <tom@tromey.com>
6693
6694 * tui/tui-stack.h (struct tui_locator_window): Derive from
6695 tui_win_info.
6696 <do_scroll_horizontal, do_scroll_vertical>: New methods.
6697 <can_box>: New method.
6698
1eb2161f
TT
66992020-07-01 Tom Tromey <tom@tromey.com>
6700
6701 * tui/tui-stack.h (struct tui_locator_window): Remove body.
6702
7134f2eb
TT
67032020-07-01 Tom Tromey <tom@tromey.com>
6704
6705 * tui/tui-regs.c (tui_data_window::display_registers_from)
6706 (tui_data_window::display_registers_from)
6707 (tui_data_window::first_data_item_displayed)
6708 (tui_data_window::delete_data_content_windows): Update.
6709 (tui_data_window::refresh_window, tui_data_window::no_refresh):
6710 Remove.
6711 (tui_data_window::check_register_values): Update.
6712 (tui_data_item_window::rerender): Add parameters. Update.
6713 (tui_data_item_window::refresh_window): Remove.
6714 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
6715 virtual.
6716 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
6717 tui_gen_win_info.
6718 <refresh_window, max_height, min_height>: Remove.
6719 <rerender>: Add parameters.
6720 <x, y, visible>: New members.
6721 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
6722 <m_item_width>: New member.
6723
22b7b041
TT
67242020-07-01 Tom Tromey <tom@tromey.com>
6725
6726 * tui/tui-regs.c (tui_data_window::show_register_group)
6727 (tui_data_window::check_register_values): Update.
6728 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
6729 from item_no.
6730
c9753adb
TT
67312020-07-01 Tom Tromey <tom@tromey.com>
6732
6733 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
6734 useless "if".
6735
9ab26b4a
TT
67362020-07-01 Tom Tromey <tom@tromey.com>
6737
6738 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
6739 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
6740
e555083f
TT
67412020-07-01 Tom Tromey <tom@tromey.com>
6742
6743 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
6744 * tui/tui-winsource.h (enum tui_line_or_address_kind)
6745 (struct tui_line_or_address): Move from tui-data.h.
6746 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
6747 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
6748 (tui_cmd_window, tui_source_window_base, tui_source_window)
6749 (tui_disasm_window): Don't declare.
6750 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
6751 to tui-winsource.h.
6752 (SINGLE_KEY): Move to tui-stack.c.
6753
7a02bab7
TT
67542020-07-01 Tom Tromey <tom@tromey.com>
6755
6756 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
6757 std::string.
6758 * tui/tui-regs.c (class tab_expansion_file): New.
6759 (tab_expansion_file::write): New method.
6760 (tui_register_format): Change return type. Use
6761 tab_expansion_file.
6762 (tui_get_register, tui_data_window::display_registers_from)
6763 (tui_data_item_window::rerender): Update.
6764 * tui/tui-io.h (tui_expand_tabs): Don't declare.
6765 * tui/tui-io.c (tui_expand_tabs): Remove.
6766
ea68593b
TT
67672020-07-01 Tom Tromey <tom@tromey.com>
6768
6769 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
6770
a8caed5d
FS
67712020-07-01 Fangrui Song <maskray@google.com>
6772
6773 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
6774
9cdf9820
AKS
67752020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6776
6777 * dwarf2/read.c (set_die_type): Removed conditions to restrict
6778 forms for DW_AT_associated and DW_AT_allocated attributes,
6779 which is already checked in function attr_to_dynamic_prop.
6780
a1520ad8
TT
67812020-06-30 Tom Tromey <tromey@adacore.com>
6782
6783 * dwarf2/read.c (quirk_rust_enum): Correctly call
6784 alloc_rust_variant for default-less enum.
6785
5ac58899
TT
67862020-06-30 Tom Tromey <tromey@adacore.com>
6787
6788 PR build/26183:
6789 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
6790 gdb::to_string.
6791
19b187a9
SM
67922020-06-29 Simon Marchi <simon.marchi@efficios.com>
6793
6794 * gdbarch.sh (displaced_step_copy_insn): Update doc.
6795 * gdbarch.h: Re-generate.
6796
cd4c4c07
TT
67972020-06-28 Tom Tromey <tom@tromey.com>
6798
6799 * command.h (cmd_types): Remove.
6800 (cmd_type): Don't declare.
6801 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
6802 typedef.
6803 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
6804 * cli/cli-decode.c (cmd_type): Remove.
6805
05779d57
PA
68062020-06-27 Pedro Alves <palves@redhat.com>
6807
6808 * fork-child.c (prefork_hook): Adjust.
6809 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
6810 Delete.
6811 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
6812 * inferior.c (inferior::set_tty, inferior::tty): New methods.
6813 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
6814 Remove declarations.
6815 (struct inferior) <set_tty, tty>: New methods.
6816 (struct inferior) <terminal>: Rename to ...
6817 (struct inferior) <m_terminal>: ... this and make private.
6818 * main.c (captured_main_1): Adjust.
6819 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
6820 (mi_cmd_inferior_tty_show): Adjust.
6821 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
6822 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
6823
1776e3e5
NA
68242020-06-26 Nick Alcock <nick.alcock@oracle.com>
6825
6826 * configure.ac: Add --enable-libctf: handle --disable-static
6827 properly.
6828 * acinclude.m4: sinclude ../config/enable.m4.
6829 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
6830 (LIBCTF): Substitute in.
6831 (CTF_DEPS): New, likewise.
6832 (CLIBS): libctf needs symbols from libbfd: move earlier.
6833 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
6834 flags.
6835 * ctfread.c: Surround in ENABLE_LIBCTF.
6836 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
6837 * configure: Regenerate.
6838 * config.in: Likewise.
6839
58373b80
SM
68402020-06-25 Simon Marchi <simon.marchi@efficios.com>
6841
6842 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
6843
277474ee
SM
68442020-06-25 Simon Marchi <simon.marchi@efficios.com>
6845
6846 * inferior.h (struct inferior) <terminal>: Change type to
6847 gdb::unique_xmalloc_ptr<char>.
6848 * inferior.c (inferior::~inferior): Don't free inf->terminal.
6849 * infcmd.c (set_inferior_io_terminal): Don't free terminal
6850 field, adjust to unique pointer.
6851 (get_inferior_io_terminal): Adjust to unique pointer.
6852
6d74da72
AB
68532020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6854
6855 * riscv-tdep.c (riscv_print_registers_info): Loop over all
6856 registers, not just the known core set of registers.
6857
2e52d038
AB
68582020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6859
6860 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
6861 fflags, frm, and fcsr registers.
6862 (riscv_register_reggroup_p): Remove unknown CSRs from save and
6863 restore groups.
6864 (riscv_tdesc_unknown_reg): New function.
6865 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
6866 tdesc_use_registers.
6867 * riscv-tdep.h (struct gdbarch_tdep): Add
6868 unknown_csrs_first_regnum, unknown_csrs_count,
6869 duplicate_fflags_regnum, duplicate_frm_regnum, and
6870 duplicate_fcsr_regnum fields.
6871
be64fd07
AB
68722020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6873
6874 * target-descriptions.c (tdesc_use_registers): Add new parameter a
6875 callback, use the callback (when not null) to help number unknown
6876 registers.
6877 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
6878 (tdesc_use_registers): Add extra parameter to declaration.
6879
3b9fce96
AB
68802020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6881
6882 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
6883 in the file.
6884 (class riscv_pending_register_alias): Likewise.
6885 (riscv_register_feature::register_info): Change 'required_p' field
6886 to 'required', and change its type. Add 'check' member function.
6887 (riscv_register_feature::register_info::check): Define new member
6888 function.
6889 (riscv_xreg_feature): Change initialisation of 'required' field.
6890 (riscv_freg_feature): Likewise.
6891 (riscv_virtual_feature): Likewise.
6892 (riscv_csr_feature): Likewise.
6893 (riscv_check_tdesc_feature): Take extra parameter, the csr
6894 tdesc_feature, rewrite the function to use the new
6895 riscv_register_feature::register_info::check function.
6896 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
6897
865bad26
AB
68982020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6899
6900 * features/Makefile: Remove all references to the deleted files
6901 below.
6902 * features/riscv/32bit-csr.c: Deleted.
6903 * features/riscv/32bit-csr.xml: Deleted.
6904 * features/riscv/64bit-csr.c: Deleted.
6905 * features/riscv/64bit-csr.xml: Deleted.
6906 * features/riscv/rebuild-csr-xml.sh: Deleted.
6907
ed69cbc8
AB
69082020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6909
6910 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
6911 whitespace error for declaration of names member variable.
6912 (struct riscv_register_feature): Add new prefer_first_name member
6913 variable, and fix whitespace error in declaration of registers.
6914 (riscv_xreg_feature): Initialize prefer_first_name field.
6915 (riscv_freg_feature): Likewise.
6916 (riscv_virtual_feature): Likewise.
6917 (riscv_csr_feature): Likewise.
6918 (riscv_register_name): Expand on comments. Remove register name
6919 modifications for CSR and virtual registers.
6920
4445e8f5
AB
69212020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6922
6923 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
6924 errors.
6925
767a879e
AB
69262020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6927
6928 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
6929 riscv-opc.h.
6930 (class riscv_pending_register_alias): New class.
6931 (riscv_check_tdesc_feature): Take vector of pending aliases and
6932 populate it as appropriate.
6933 (riscv_setup_register_aliases): Delete.
6934 (riscv_gdbarch_init): Create vector of pending aliases and pass it
6935 to riscv_check_tdesc_feature in all cases. Use the vector to
6936 create the register aliases.
6937
bb6e55f3
RO
69382020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6939
6940 * sol2-tdep.c (sol2_static_transform_name): Remove.
6941 (sol2_init_abi): Don't register it.
6942 * gdbarch.sh (static_transform_name): Remove.
6943 * gdbarch.c, gdbarch.h: Regenerate.
6944
6945 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
6946 gdbarch_static_transform_name.
6947 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
6948 * stabsread.c (define_symbol) <'X'>: Remove.
6949 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
6950 handling.
6951 <'V'>: Likewise.
6952 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
6953 <'S'>: Remove call to gdbarch_static_transform_name.
6954
c6d36836
RO
69552020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6956
6957 * procfs.c (procfs_pre_trace): New function.
6958 (procfs_target::create_inferior): Pass it to fork_inferior.
6959
a7e6196b
RO
69602020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6961
6962 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
6963 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
6964 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
6965 sol2-tdep.o, sparc-sol2-tdep.o.
6966 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
6967 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
6968 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
6969 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
6970
d412e696
RO
69712020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6972
6973 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
6974 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
6975 Call sol2_init_abi.
6976 Remove calls to set_gdbarch_skip_solib_resolver,
6977 set_gdbarch_core_pid_to_str.
6978 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
6979 (i386_sol2_static_transform_name): Remove.
6980 (i386_sol2_init_abi): Call sol2_init_abi.
6981 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6982 set_gdbarch_static_transform_name,
6983 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
6984 Use sol2_sigtramp_p.
6985 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
6986 (sol2_sigtramp_p): New function.
6987 (sol2_static_transform_name): New function.
6988 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
6989 (sol2_init_abi): New function.
6990 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
6991 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
6992 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
6993 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
6994 (sparc_sol2_static_transform_name): Remove.
6995 (sparc32_sol2_init_abi): Call sol2_init_abi.
6996 Remove calls to set_gdbarch_sofun_address_maybe_missing,
6997 set_gdbarch_static_transform_name,
6998 set_gdbarch_skip_solib_resolver,
6999 set_gdbarch_core_pid_to_str.
7000 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
7001 (sparc_sol2_static_transform_name): Remove
7002 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
7003 call sol2_sigtramp_p.
7004 (sparc64_sol2_init_abi): Call sol2_init_abi.
7005 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7006 set_gdbarch_static_transform_name,
7007 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7008
a8654e7d
PW
70092020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7010
7011 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
7012 * exec.c (validate_exec_file): If from_tty, set both
7013 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
7014 * symfile.c (symbol_file_add_with_addrs): if always_confirm
7015 and from_tty, unconditionally ask a confirmation.
7016
caa7fd04
AB
70172020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7018
7019 * target-descriptions.c (tdesc_architecture_name): Protect against
7020 NULL pointer dereference.
7021 (maint_print_xml_tdesc_cmd): New function.
7022 (_initialize_target_descriptions): Register new 'maint print
7023 xml-tdesc' command and give it the filename completer.
7024 * NEWS: Mention new 'maint print xml-tdesc' command.
7025
fbf42f4e
AB
70262020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7027
7028 * target-descriptions.c (class tdesc_compatible_info): New class.
7029 (struct target_desc): Change type of compatible vector.
7030 (tdesc_compatible_p): Update for change in type of
7031 target_desc::compatible.
7032 (tdesc_compatible_info_list): New function.
7033 (tdesc_compatible_info_arch_name): New function.
7034 (tdesc_add_compatible): Update for change in type of
7035 target_desc::compatible.
7036 (print_c_tdesc::visit_pre): Likewise.
7037
20821f4e
AB
70382020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7039
7040 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
7041 whitespace to underscore.
7042 (maint_print_c_tdesc_cmd): Use fake filename for target
7043 descriptions that came from the target.
7044 (_initialize_target_descriptions): Add filename command completion
7045 for 'maint print c-tdesc'.
7046
1fb5ee62
SM
70472020-06-23 Simon Marchi <simon.marchi@efficios.com>
7048
7049 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
7050 lines.
7051
fc3ecb3e
SM
70522020-06-23 Simon Marchi <simon.marchi@efficios.com>
7053
7054 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
7055 lines.
7056 (dwarf2_find_location_expression): Likewise.
7057 (call_site_parameter_matches): Likewise.
7058 (dwarf2_compile_expr_to_ax): Likewise.
7059 (disassemble_dwarf_expression): Likewise.
7060 (loclist_describe_location): Likewise.
7061
236ef034
PA
70622020-06-23 Pedro Alves <palves@redhat.com>
7063
7064 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
7065 progspace-and-thread.h. Include scoped-mock-context.h instead.
7066 (register_to_value_test): Use scoped_mock_context.
7067 * regcache.c: Include "scoped-mock-context.h".
7068 (cooked_read_test): Don't error out if a target is already pushed.
7069 Use scoped_mock_context. Adjust.
7070 * scoped-mock-context.h: New file.
7071
39e7ecca
AB
70722020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7073
7074 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
7075 initializer.
7076 (ada_language::is_string_type_p): New member function.
7077 * c-lang.c (c_language_data): Delete la_is_string_type_p
7078 initializer.
7079 (cplus_language_data): Likewise.
7080 (asm_language_data): Likewise.
7081 (minimal_language_data): Likewise.
7082 * d-lang.c (d_language_data): Likewise.
7083 * f-lang.c (f_is_string_type_p): Delete function, implementation
7084 moved to f_language::is_string_type_p.
7085 (f_language_data): Delete la_is_string_type_p initializer.
7086 (f_language::is_string_type_p): New member function,
7087 implementation from f_is_string_type_p.
7088 * go-lang.c (go_is_string_type_p): Delete function, implementation
7089 moved to go_language::is_string_type_p.
7090 (go_language_data): Delete la_is_string_type_p initializer.
7091 (go_language::is_string_type_p): New member function,
7092 implementation from go_is_string_type_p.
7093 * language.c (language_defn::is_string_type_p): Define new member
7094 function.
7095 (default_is_string_type_p): Make static, add comment copied from
7096 header file.
7097 (unknown_language_data): Delete la_is_string_type_p initializer.
7098 (unknown_language::is_string_type_p): New member function.
7099 (auto_language_data): Delete la_is_string_type_p initializer.
7100 (auto_language::is_string_type_p): New member function.
7101 * language.h (language_data): Delete la_is_string_type_p field.
7102 (language_defn::is_string_type_p): Declare new function.
7103 (default_is_string_type_p): Delete desclaration, move comment to
7104 definition.
7105 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
7106 moved to m2_language::is_string_type_p.
7107 (m2_language_data): Delete la_is_string_type_p initializer.
7108 (m2_language::is_string_type_p): New member function,
7109 implementation from m2_is_string_type_p.
7110 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
7111 initializer.
7112 * opencl-lang.c (opencl_language_data): Likewise.
7113 * p-lang.c (pascal_is_string_type_p): Delete function,
7114 implementation moved to pascal_language::is_string_type_p.
7115 (pascal_language_data): Delete la_is_string_type_p initializer.
7116 (pascal_language::is_string_type_p): New member function,
7117 implementation from pascal_is_string_type_p.
7118 * rust-lang.c (rust_is_string_type_p): Delete function,
7119 implementation moved to rust_language::is_string_type_p.
7120 (rust_language_data): Delete la_is_string_type_p initializer.
7121 (rust_language::is_string_type_p): New member function,
7122 implementation from rust_is_string_type_p.
7123 * valprint.c (val_print_scalar_or_string_type_p): Update call to
7124 is_string_type_p.
7125
4ffc13fb
AB
71262020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7127
7128 * ada-lang.c (ada_language_data): Delete la_print_typedef
7129 initializer.
7130 (ada_language::print_typedef): New member function.
7131 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
7132 (cplus_language_data): Likewise.
7133 (asm_language_data): Likewise.
7134 (minimal_language_data): Likewise.
7135 * d-lang.c (d_language_data): Likewise.
7136 * f-lang.c (f_language_data): Likewise.
7137 (f_language::print_typedef): New member function.
7138 * go-lang.c (go_language_data): Delete la_print_typedef
7139 initializer.
7140 * language.c (language_defn::print_typedef): Define member
7141 function.
7142 (unknown_language_data): Delete la_print_typedef initializer.
7143 (unknown_language::print_typedef): New member function.
7144 (auto_language_data): Delete la_print_typedef initializer.
7145 (auto_language::print_typedef): New member function.
7146 * language.h (language_data): Delete la_print_typedef field.
7147 (language_defn::print_typedef): Declare new member function.
7148 (LA_PRINT_TYPEDEF): Update call to print_typedef.
7149 (default_print_typedef): Delete declaration.
7150 * m2-lang.c (m2_language_data): Delete la_print_typedef
7151 initializer.
7152 (m2_language::print_typedef): New member function.
7153 * objc-lang.c (objc_language_data): Delete la_print_typedef
7154 initializer.
7155 * opencl-lang.c (opencl_language_data): Likewise.
7156 * p-lang.c (pascal_language_data): Likewise.
7157 (pascal_language::print_typedef): New member function.
7158 * rust-lang.c (rust_print_typedef): Delete function,
7159 implementation moved to rust_language::print_typedef.
7160 (rust_language): Delete la_print_typedef initializer.
7161 (rust_language::print_typedef): New member function,
7162 implementation from rust_print_typedef.
7163 * typeprint.c (default_print_typedef): Delete.
7164
d711ee67
AB
71652020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7166
7167 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
7168 (ada_language::printstr): New member function.
7169 * c-lang.c (c_language_data): Delete la_printstr initializer.
7170 (cplus_language_data): Likewise.
7171 (asm_language_data): Likewise.
7172 (minimal_language_data): Likewise.
7173 * d-lang.c (d_language_data): Likewise.
7174 * f-lang.c (f_printstr): Rename to f_language::printstr.
7175 (f_language_data): Delete la_printstr initializer.
7176 (f_language::printstr): New member function, implementation from
7177 f_printstr.
7178 * go-lang.c (go_language_data): Delete la_printstr initializer.
7179 * language.c (language_defn::printstr): Define new member
7180 function.
7181 (unk_lang_printstr): Delete.
7182 (unknown_language_data): Delete la_printstr initializer.
7183 (unknown_language::printstr): New member function.
7184 (auto_language_data): Delete la_printstr initializer.
7185 (auto_language::printstr): New member function.
7186 * language.h (language_data): Delete la_printstr field.
7187 (language_defn::printstr): Declare new member function.
7188 (LA_PRINT_STRING): Update call to printstr.
7189 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
7190 (m2_language_data): Delete la_printstr initializer.
7191 (m2_language::printstr): New member function, implementation from
7192 m2_printstr.
7193 * objc-lang.c (objc_language_data): Delete la_printstr
7194 initializer.
7195 * opencl-lang.c (opencl_language_data): Likewise.
7196 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
7197 (pascal_language_data): Delete la_printstr initializer.
7198 (pascal_language::printstr): New member function, implementation
7199 from pascal_printstr.
7200 * p-lang.h (pascal_printstr): Delete declaration.
7201 * rust-lang.c (rust_printstr): Update header comment.
7202 (rust_language_data): Delete la_printstr initializer.
7203 (rust_language::printstr): New member function.
7204
52b50f2c
AB
72052020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7206
7207 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
7208 (ada_language::printchar): New member function.
7209 * c-lang.c (c_language_data): Delete la_printchar initializer.
7210 (cplus_language_data): Likewise.
7211 (asm_language_data): Likewise.
7212 (minimal_language_data): Likewise.
7213 * d-lang.c (d_language_data): Likewise.
7214 * f-lang.c (f_printchar): Rename to f_language::printchar.
7215 (f_language_data): Delete la_printchar initializer.
7216 (f_language::printchar): New member function, implementation from
7217 f_printchar.
7218 * go-lang.c (go_language_data): Delete la_printchar initializer.
7219 * language.c (unk_lang_printchar): Delete.
7220 (language_defn::printchar): Define new member function.
7221 (unknown_language_data): Delete la_printchar initializer.
7222 (unknown_language::printchar): New member function.
7223 (auto_language_data): Delete la_printchar initializer.
7224 (auto_language::printchar): New member function.
7225 * language.h (language_data): Delete la_printchar field.
7226 (language_defn::printchar): Declare new member function.
7227 (LA_PRINT_CHAR): Update call to printchar.
7228 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
7229 (m2_language::printchar): New member function.
7230 * objc-lang.c (objc_language_data): Delete la_printchar
7231 initializer.
7232 * opencl-lang.c (opencl_language_data): Likewise.
7233 * p-lang.c (pascal_language_data): Delete la_printchar
7234 initializer.
7235 (pascal_language::printchar): New member function.
7236 * rust-lang.c (rust_printchar): Rename to
7237 rust_language::printchar.
7238 (rust_language_data): Delete la_printchar initializer.
7239 (rust_language::printchar): New member function, implementation
7240 from rust_printchar.
7241
ec8cec5b
AB
72422020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7243
7244 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
7245 (ada_language_data): Delete la_emitchar initializer.
7246 (ada_language::emitchar): New member function, implementation from
7247 emit_char.
7248 * c-lang.c (c_language_data): Delete la_emitchar initializer.
7249 (cplus_language_data): Likewise.
7250 (asm_language_data): Likewise.
7251 (minimal_language_data): Likewise.
7252 * d-lang.c (d_language_data): Likewise.
7253 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
7254 (f_language_data): Delete la_emitchar initializer.
7255 (f_language::emitchar): New member function, implementation from
7256 f_emit_char.
7257 * go-lang.c (go_language_data): Delete la_emitchar initializer.
7258 * language.c (unk_lang_emit_char): Delete.
7259 (language_defn::emitchar): New member function definition.
7260 (unknown_language_data): Delete la_emitchar initializer.
7261 (unknown_language::emitchar): New member function.
7262 (auto_language_data): Delete la_emitchar initializer.
7263 (auto_language::emitchar): New member function.
7264 * language.h (language_data): Delete la_emitchar field.
7265 (language_defn::emitchar): New member field declaration.
7266 (LA_EMIT_CHAR): Update call to emitchar.
7267 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
7268 (m2_language_data): Delete la_emitchar initializer.
7269 (m2_language::emitchar): New member function, implementation from
7270 m2_emit_char.
7271 * objc-lang.c (objc_language_data): Delete la_emitchar
7272 initializer.
7273 * opencl-lang.c (opencl_language_data): Likewise.
7274 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
7275 (pascal_language_data): Delete la_emitchar initializer.
7276 (pascal_language::emitchar): New member function, implementation
7277 from pascal_emit_char.
7278 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
7279 (rust_language_data): Delete la_emitchar initializer.
7280 (rust_language::emitchar): New member function, implementation
7281 from rust_emitchar.
7282
1bf9c363
AB
72832020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7284
7285 * ada-lang.c (resolve): Rename to ada_language::post_parser.
7286 (ada_language_data): Delete la_post_parser initializer.
7287 (ada_language::post_parser): New member function.
7288 * c-lang.c (c_language_data): Delete la_post_parser initializer.
7289 (cplus_language_data): Likewise.
7290 (asm_language_data): Likewise.
7291 (minimal_language_data): Likewise.
7292 * d-lang.c (d_language_data): Likewise.
7293 * f-lang.c (f_language_data): Likewise.
7294 * go-lang.c (go_language_data): Likewise.
7295 * language.c (unknown_language_data): Likewise.
7296 (auto_language_data): Likewise.
7297 * language.h (language_data): Delete la_post_parser field.
7298 (language_defn::post_parser): New member function.
7299 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
7300 * objc-lang.c (objc_language_data): Likewise.
7301 * opencl-lang.c (opencl_language_data): Likewise.
7302 * p-lang.c (pascal_language_data): Likewise.
7303 * parse.c (parse_exp_in_context): Update call to post_parser.
7304 (null_post_parser): Delete definition.
7305 * parser-defs.h (null_post_parser): Delete declaration.
7306 * rust-lang.c (rust_language_data): Delete la_post_parser
7307 initializer.
7308
87afa652
AB
73092020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7310
7311 * ada-lang.c (parse): Rename to ada_language::parser.
7312 (ada_language_data): Delete la_parser initializer.
7313 (ada_language::parser): New member function, implementation from
7314 parse.
7315 * c-lang.c (c_language_data): Delete la_parser initializer.
7316 (cplus_language_data): Likewise.
7317 (asm_language_data): Likewise.
7318 (minimal_language_data): Likewise.
7319 * d-lang.c (d_language_data): Likewise.
7320 (d_language::parser): New member function.
7321 * f-lang.c (f_language_data): Delete la_parser initializer.
7322 (f_language::parser): New member function.
7323 * go-lang.c (go_language_data): Delete la_parser initializer.
7324 (go_language::parser): New member function.
7325 * language.c (unk_lang_parser): Delete.
7326 (language_defn::parser): Define new member function.
7327 (unknown_language_data): Delete la_parser initializer.
7328 (unknown_language::parser): New member function.
7329 (auto_language_data): Delete la_parser initializer.
7330 (auto_language::parser): New member function.
7331 * language.h (language_data): Delete la_parser field.
7332 (language_defn::parser): Declare new member function.
7333 * m2-lang.c (m2_language_data): Delete la_parser initializer.
7334 (m2_language::parser): New member function.
7335 * objc-lang.c (objc_language_data): Delete la_parser initializer.
7336 * opencl-lang.c (opencl_language_data): Likewise.
7337 * p-lang.c (pascal_language_data): Likewise.
7338 (pascal_language::parser): New member function.
7339 * parse.c (parse_exp_in_context): Update call to parser.
7340 * rust-lang.c (rust_language_data): Delete la_parser initializer.
7341 (rust_language::parser): New member function.
7342
37825800
AB
73432020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7344
7345 * top.c (print_gdb_configuration): Print --with-python-libdir
7346 configuration value.
7347
5b860c93
PW
73482020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7349
7350 * NEWS: Mention change to the alias command.
7351
cf00cd6f
PW
73522020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7353
7354 * cli/cli-cmds.c (lookup_cmd_for_default_args)
7355 (alias_command_completer)
7356 (make_alias_options_def_group): New functions.
7357 (alias_opts, alias_option_defs): New struct and array.
7358 (alias_usage_error): Update usage.
7359 (alias_command): Handles optional DEFAULT-ARGS... arguments.
7360 Use option framework.
7361 (_initialize_cli_cmds): Update alias command help.
7362 Update aliases command help.
7363 (show_user):
7364 Add NULL for new default_args lookup_cmd argument.
7365 (valid_command_p): Rename to validate_aliased_command.
7366 Add NULL for new default_args lookup_cmd argument. Verify that the
7367 aliased_command has no default args.
7368 * cli/cli-decode.c (help_cmd): Show aliases definitions.
7369 (lookup_cmd_1, lookup_cmd): New argument default_args.
7370 (add_alias_cmd):
7371 Add NULL for new default_args lookup_cmd argument.
7372 (print_help_for_command): Show default args under the layout
7373 alias some_alias = some_aliased_cmd some_alias_default_arg.
7374 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
7375 xfree default_args in destructor.
7376 * cli/cli-script.c (process_next_line, do_define_command):
7377 Add NULL for new default_args lookup_cmd argument.
7378 * command.h: Declare new default_args argument in lookup_cmd
7379 and lookup_cmd_1.
7380 * completer.c (complete_line_internal_1):
7381 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7382 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
7383 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
7384 Likewise.
7385 * infcmd.c (_initialize_infcmd): Likewise.
7386 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
7387 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
7388 * python/py-param.c (add_setshow_generic): Likewise.
7389 * remote.c (_initialize_remote): Likewise.
7390 * top.c (execute_command): Prepend default_args if command has some.
7391 (set_verbose):
7392 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7393 * tracepoint.c (validate_actionline, encode_actions_1):
7394 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7395
bd920864
TBA
73962020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7397
7398 * jit.c (jit_read_descriptor): Use bool as the return type.
7399 (jit_breakpoint_re_set_internal): Use bool as the return type.
7400 Invert the return value logic; return true if the jit breakpoint
7401 has been successfully initialized.
7402 (jit_inferior_init): Update the call to
7403 jit_breakpoint_re_set_internal.
7404
f8098322
PA
74052020-06-22 Pedro Alves <palves@redhat.com>
7406
7407 PR gdb/25939
7408 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
7409 Use the current inferior instead. Don't return
7410 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
7411 wait again.
7412 * sol-thread.c (sol_thread_target::wait): Don't reference
7413 inferior_ptid.
7414 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
7415 (sol_update_thread_list_callback): Use the current inferior's pid
7416 instead of inferior_ptid.
7417
196535a6
RO
74182020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7419
7420 * procfs.c: Cleanup many comments.
7421
7422 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
7423 (AFTER_WATCHFLAG): Replace by value.
7424
7425 (MAIN_PROC_NAME_FORMAT): Inline ...
7426 (create_procinfo): ... here.
7427
7428 (procfs_debug_inferior): Remove SYS_exec handling.
7429 (syscall_is_exec): Likewise.
7430 (procfs_set_exec_trap): Likewise.
7431
7432 (syscall_is_lwp_exit): Inline in callers.
7433 (syscall_is_exit): Likewise.
7434 (syscall_is_exec): Likewise.
7435 (syscall_is_lwp_create): Likewise.
7436
7437 (invalidate_cache): Remove #if 0 code.
7438
7439 (make_signal_thread_runnable): Remove.
7440 (procfs_target::resume): Remove #if 0 code.
7441
cf6f3e86
RO
74422020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7443
7444 PR gdb/25939
7445 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
7446 call ...
7447 (procfs_target::create_inferior): ... here.
7448
48e9cc84
PW
74492020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7450
7451 * exec.c (validate_exec_file): Ensure the build-id is up to
7452 date by calling reopen_exec_file (that checks file timestamp
7453 to decide to re-read the file).
7454
3922b302
PA
74552020-06-18 Pedro Alves <palves@redhat.com>
7456
7457 PR gdb/25412
7458 * gdbthread.h (delete_thread, delete_thread_silent)
7459 (find_thread_ptid): Update comments.
7460 * thread.c (current_thread_): New global.
7461 (is_current_thread): Move higher, and reimplement.
7462 (inferior_thread): Reimplement.
7463 (set_thread_exited): Use bool. Add assertions.
7464 (add_thread_silent): Simplify thread-reuse handling by always
7465 calling delete_thread.
7466 (delete_thread): Remove intro comment.
7467 (find_thread_ptid): Skip exited threads.
7468 (switch_to_thread_no_regs): Write to current_thread_.
7469 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
7470 INFERIOR_PTID. Clear current_thread_.
7471
6dbdab44
PA
74722020-06-18 Pedro Alves <palves@redhat.com>
7473
7474 * aix-thread.c (pd_update): Use switch_to_thread.
7475
2da4b788
PA
74762020-06-18 Pedro Alves <palves@redhat.com>
7477
7478 * ravenscar-thread.c (ravenscar_thread_target): Update.
7479 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
7480 (ravenscar_thread_target::add_active_thread): ... this. Don't
7481 set m_base_ptid here. Update to avoid referencing inferior_ptid.
7482 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
7483
50838d1b
PA
74842020-06-18 Pedro Alves <palves@redhat.com>
7485
7486 * nat/windows-nat.c (current_windows_thread): Remove.
7487 * nat/windows-nat.h (current_windows_thread): Remove.
7488 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
7489 Adjust.
7490 (display_selectors): Adjust to fetch the current
7491 windows_thread_info based on inferior_ptid.
7492 (fake_create_process): No longer write to current_windows_thread.
7493 (windows_nat_target::get_windows_debug_event):
7494 Don't set inferior_ptid or current_windows_thread.
7495 (windows_nat_target::wait): Adjust to not rely on
7496 current_windows_thread.
7497 (do_initial_windows_stuff): Now a method of windows_nat_target.
7498 Switch to the last_ptid thread.
7499 (windows_nat_target::attach): Adjust.
7500 (windows_nat_target::detach): Use switch_to_no_thread instead of
7501 writing to inferior_ptid directly.
7502 (windows_nat_target::create_inferior): Adjust.
7503
31ce04e9
PA
75042020-06-18 Pedro Alves <palves@redhat.com>
7505
7506 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
7507
1ee1a363
PA
75082020-06-18 Pedro Alves <palves@redhat.com>
7509
7510 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
7511 after creating it, instead of writing to inferior_ptid. Don't
7512 write to inferior_ptid.
7513
6d350754
PA
75142020-06-18 Pedro Alves <palves@redhat.com>
7515
7516 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
7517
5d971d48
PA
75182020-06-18 Pedro Alves <palves@redhat.com>
7519
7520 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
7521 it, instead of writing to inferior_ptid.
7522
86e57d1b
PA
75232020-06-18 Pedro Alves <palves@redhat.com>
7524
7525 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
7526 to inferior_ptid.
7527
f2e1c129
PA
75282020-06-18 Pedro Alves <palves@redhat.com>
7529
7530 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
7531 instead of writing to inferior_ptid directly.
7532
60db1b85
PA
75332020-06-18 Pedro Alves <palves@redhat.com>
7534
7535 * corelow.c (core_target::close): Use switch_to_no_thread instead
7536 of writing to inferior_ptid directly.
7537 (add_to_thread_list, core_target_open): Use switch_to_thread
7538 instead of writing to inferior_ptid directly.
7539
fe7d6a8d
PA
75402020-06-18 Pedro Alves <palves@redhat.com>
7541
7542 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
7543 inferior_ptid.
7544 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
7545 inferior_ptid.
7546 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
7547 inferior_ptid directly.
7548 (darwin_nat_target::init_thread_list): Switch to thread, instead
7549 of writing to inferior_ptid.
7550 (darwin_nat_target::attach): Don't write to inferior_ptid.
7551 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
7552
975f8708
PA
75532020-06-18 Pedro Alves <palves@redhat.com>
7554
7555 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
7556 thread.
7557 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
7558 Instead use switch_to_thread.
7559 (gnu_nat_target::detach): Use switch_to_no_thread
7560 instead of writing to inferior_ptid directly. Used passed-in
7561 inferior instead of looking up the inferior by pid.
7562
1a204730
PA
75632020-06-18 Pedro Alves <palves@redhat.com>
7564
7565 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
7566 inferior_ptid.
7567
ebe84f23
PA
75682020-06-18 Pedro Alves <palves@redhat.com>
7569
7570 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
7571 inferior_ptid.
7572 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
7573 thread.
7574 (nto_procfs_target::detach): Avoid referencing
7575 inferior_ptid. Use switch_to_no_thread instead of writing to
7576 inferior_ptid directly.
7577 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
7578 instead of writing to inferior_ptid directly.
7579 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
7580 to thread.
7581
191f02e5
PA
75822020-06-18 Pedro Alves <palves@redhat.com>
7583
7584 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
7585 after creating it, instead of writing to inferior_ptid.
7586 (gdbsim_target_open): Use switch_to_no_thread instead of writing
7587 to inferior_ptid directly.
7588 (gdbsim_target::wait): Don't write to inferior_ptid.
7589
0ac55310
PA
75902020-06-18 Pedro Alves <palves@redhat.com>
7591
7592 * remote.c (remote_target::remote_notice_new_inferior): Use
7593 switch_to_thread instead of writing to inferior_ptid directly.
7594 (remote_target::add_current_inferior_and_thread): Use
7595 switch_to_no_thread instead of writing to inferior_ptid directly.
7596 (extended_remote_target::attach): Use switch_to_inferior_no_thread
7597 and switch_to_thread instead of using set_current_inferior or
7598 writing to inferior_ptid directly.
7599
5233f39b
PA
76002020-06-18 Pedro Alves <palves@redhat.com>
7601
7602 * tracectf.c (ctf_target_open): Switch to added thread instead of
7603 writing to inferior_ptid directly.
7604 (ctf_target::close): Use switch_to_no_thread instead of writing to
7605 inferior_ptid directly.
7606
087e161b
PA
76072020-06-18 Pedro Alves <palves@redhat.com>
7608
7609 * tracefile-tfile.c (tfile_target_open): Don't write to
7610 inferior_ptid directly, instead switch to added thread.
7611 (tfile_target::close): Use switch_to_no_thread instead of writing
7612 to inferior_ptid directly.
7613
7fb43e53
PA
76142020-06-18 Pedro Alves <palves@redhat.com>
7615
7616 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
7617 (procfs_target::detach): Use switch_to_no_thread
7618 instead of writing to inferior_ptid directly.
7619 (do_attach): Change return type to void. Switch to the added
7620 thread.
7621 (procfs_target::create_inferior): Switch to the added thread.
7622 (procfs_do_thread_registers): Don't write to inferior_ptid.
7623
18493a00
PA
76242020-06-18 Pedro Alves <palves@redhat.com>
7625
7626 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
7627 of writing to inferior_ptid.
7628 (scoped_restore_exited_inferior): Delete.
7629 (handle_vfork_child_exec_or_exit): Simplify using
7630 scoped_restore_current_pspace_and_thread. Use switch_to_thread
7631 instead of writing to inferior_ptid.
7632 (THREAD_STOPPED_BY): Delete.
7633 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
7634 (thread_stopped_by_hw_breakpoint): Delete.
7635 (save_waitstatus): Use
7636 scoped_restore_current_thread+switch_to_thread, and call
7637 target_stopped_by_watchpoint instead of
7638 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
7639 instead of thread_stopped_by_sw_breakpoint, and
7640 target_stopped_by_hw_breakpoint instead of
7641 thread_stopped_by_hw_breakpoint.
7642 (handle_inferior_event)
7643 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
7644 inferior_ptid directly, nor
7645 set_current_inferior/set_current_program_space. Use
7646 switch_to_thread / switch_to_inferior_no_thread instead.
7647
a0776b13
PA
76482020-06-18 Pedro Alves <palves@redhat.com>
7649
7650 * target.c (generic_mourn_inferior): Use switch_to_no_thread
7651 instead of writing to inferior_ptid.
7652
6155c136
PA
76532020-06-18 Pedro Alves <palves@redhat.com>
7654
7655 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
7656 added thread.
7657 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
7658 to the added thread.
7659 (inf_ptrace_target::detach_success): Use switch_to_no_thread
7660 instead of writing to inferior_ptid.
7661
c5316fc6
PA
76622020-06-18 Pedro Alves <palves@redhat.com>
7663
7664 * gdbarch-selftests.c: Include "progspace-and-thread.h".
7665 (register_to_value_test): Mock a program_space too. Heap-allocate
7666 the address space. Don't write to inferior_ptid. Use
7667 switch_to_thread instead.
7668
8df01799
PA
76692020-06-18 Pedro Alves <palves@redhat.com>
7670
7671 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
7672 Delete.
7673 (find_signalled_thread()): New, factored out from
7674 linux_make_corefile_notes and adjusted to handle exited threads.
7675 (linux_make_corefile_notes): Adjust to use the new
7676 find_signalled_thread.
7677
41792d68
PA
76782020-06-18 Pedro Alves <palves@redhat.com>
7679
7680 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
7681 of saving/restoring inferior_ptid.
7682
612f258a
TT
76832020-06-17 Tom Tromey <tom@tromey.com>
7684
7685 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
7686 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
7687 declare.
7688 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
7689
efb763a5
SM
76902020-06-15 Simon Marchi <simon.marchi@efficios.com>
7691
7692 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
7693 of partial symtabs.
7694
2951f6c0
SM
76952020-06-17 Simon Marchi <simon.marchi@efficios.com>
7696
7697 * regformats/reg-arm.dat: Remove.
7698 * regformats/reg-bfin.dat: Remove.
7699 * regformats/reg-cris.dat: Remove.
7700 * regformats/reg-crisv32.dat: Remove.
7701 * regformats/reg-m32r.dat: Remove.
7702 * regformats/reg-tilegx.dat: Remove.
7703 * regformats/reg-tilegx32.dat: Remove.
7704
7d458ea5
SM
77052020-06-17 Simon Marchi <simon.marchi@efficios.com>
7706
7707 * features/Makefile (WHICH): Remove arm files.
7708 * regformats/arm/arm-with-iwmmxt.dat: Remove.
7709 * regformats/arm/arm-with-neon.dat: Remove.
7710 * regformats/arm/arm-with-vfpv2.dat: Remove.
7711 * regformats/arm/arm-with-vfpv3.dat: Remove.
7712
3af96c0d
SM
77132020-06-17 Simon Marchi <simon.marchi@efficios.com>
7714
7715 * features/Makefile (XMLTOC): Remove rx.xml.
7716
b25e22fd
PA
77172020-06-17 Pedro Alves <palves@redhat.com>
7718
7719 * gdbthread.h (thread_control_state) <trap_expected> Update
7720 comments.
7721
a78a19b1
AB
77222020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7723
7724 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
7725 ada_language::lookup_symbol_nonlocal.
7726 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
7727 (ada_language::lookup_symbol_nonlocal): New member function,
7728 implementation from ada_lookup_symbol_nonlocal.
7729 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
7730 initializer.
7731 (cplus_language_data): Delete la_lookup_symbol_nonlocal
7732 initializer.
7733 (cplus_language::lookup_symbol_nonlocal): New member function.
7734 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
7735 (minimal_language_data) Likewise.
7736 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
7737 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
7738 initializer.
7739 (d_language::lookup_symbol_nonlocal): New member function.
7740 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
7741 initializer.
7742 (f_language::lookup_symbol_nonlocal): New member function.
7743 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
7744 initializer.
7745 * language.c (unknown_language_data): Likewise.
7746 (auto_language_data): Likewise.
7747 * language.h (language_data): Delete la_lookup_symbol_nonlocal
7748 field.
7749 (language_defn::lookup_symbol_nonlocal): New member function.
7750 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
7751 initializer.
7752 * objc-lang.c (objc_language_data): Likewise.
7753 * opencl-lang.c (opencl_language_data): Likewise.
7754 * p-lang.c (pascal_language_data): Likewise.
7755 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
7756 rust_language::lookup_symbol_nonlocal.
7757 (rust_language_data): Delete la_lookup_symbol_nonlocal
7758 initializer.
7759 (rust_language::lookup_symbol_nonlocal): New member function,
7760 implementation from rust_lookup_symbol_nonlocal.
7761 * symtab.c (lookup_symbol_aux): Update call to
7762 lookup_symbol_nonlocal.
7763 (basic_lookup_symbol_nonlocal): Rename to...
7764 (language_defn::lookup_symbol_nonlocal): ...this, and update
7765 header comment. Remove language_defn parameter, and replace with
7766 uses of `this'.
7767 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
7768
ebe2334e
AB
77692020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7770
7771 * ada-lang.c (ada_language_data): Delete la_value_print_inner
7772 initializer.
7773 (ada_language::value_print_inner): New member function.
7774 * c-lang.c (c_language_data): Delete la_value_print_inner
7775 initializer.
7776 (cplus_language_data): Likewise.
7777 (asm_language_data): Likewise.
7778 (minimal_language_data): Likewise.
7779 * d-lang.c (d_language_data): Likewise.
7780 (d_language::value_print_inner): New member function.
7781 * f-lang.c (f_language_data): Delete la_value_print_inner
7782 initializer.
7783 (f_language::value_print_inner): New member function.
7784 * f-lang.h (f_value_print_innner): Rename to...
7785 (f_value_print_inner): ...this (note spelling of 'inner').
7786 * f-valprint.c (f_value_print_innner): Rename to...
7787 (f_value_print_inner): ...this (note spelling of 'inner').
7788 * go-lang.c (go_language_data): Delete la_value_print_inner
7789 initializer.
7790 (go_language::value_print_inner): New member function.
7791 * language.c (language_defn::value_print_inner): Define new member
7792 function.
7793 (unk_lang_value_print_inner): Delete.
7794 (unknown_language_data): Delete la_value_print_inner initializer.
7795 (unknown_language::value_print_inner): New member function.
7796 (auto_language_data): Delete la_value_print_inner initializer.
7797 (auto_language::value_print_inner): New member function.
7798 * language.h (language_data): Delete la_value_print_inner field.
7799 (language_defn::value_print_inner): Delcare new member function.
7800 * m2-lang.c (m2_language_data): Delete la_value_print_inner
7801 initializer.
7802 (m2_language::value_print_inner): New member function.
7803 * objc-lang.c (objc_language_data): Delete la_value_print_inner
7804 initializer.
7805 * opencl-lang.c (opencl_language_data): Likewise.
7806 * p-lang.c (pascal_language_data): Likewise.
7807 (pascal_language::value_print_inner): New member function.
7808 * rust-lang.c (rust_language_data): Delete la_value_print_inner
7809 initializer.
7810 (rust_language::value_print_inner): New member function.
7811 * valprint.c (do_val_print): Update call to value_print_inner.
7812
a1d1fa3e
AB
78132020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7814
7815 * ada-lang.c (ada_language_data): Delete la_value_print
7816 initializer.
7817 (ada_language::value_print): New member function.
7818 * c-lang.c (c_language_data): Delete la_value_print initializer.
7819 (cplus_language_data): Likewise.
7820 (asm_language_data): Likewise.
7821 (minimal_language_data): Likewise.
7822 * d-lang.c (d_language_data): Likewise.
7823 * f-lang.c (f_language_data): Likewise.
7824 * go-lang.c (go_language_data): Likewise.
7825 * language.c (unk_lang_value_print): Delete.
7826 (language_defn::value_print): Define new member function.
7827 (unknown_language_data): Delete la_value_print initializer.
7828 (unknown_language::value_print): New member function.
7829 (auto_language_data): Delete la_value_print initializer.
7830 (auto_language::value_print): New member function.
7831 * language.h (language_data): Delete la_value_print field.
7832 (language_defn::value_print): Declare new member function.
7833 (LA_VALUE_PRINT): Update call to value_print.
7834 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
7835 * objc-lang.c (objc_language_data): Likewise.
7836 * opencl-lang.c (opencl_language_data): Likewise.
7837 * p-lang.c (pascal_language_data): Likewise.
7838 (pascal_language::value_print): New member function.
7839 * rust-lang.c (rust_language_data): Delete la_value_print
7840 initializer.
7841
f16a9f57
AB
78422020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7843
7844 * ada-lang.c (ada_watch_location_expression): Rename to
7845 ada_language::watch_location_expression.
7846 (ada_language_data): Delete la_watch_location_expression
7847 initializer.
7848 (ada_language::watch_location_expression): New member function,
7849 implementation from ada_watch_location_expression.
7850 * breakpoint.c (watch_command_1): Update call to
7851 watch_location_expression.
7852 * c-lang.c (c_watch_location_expression): Rename to
7853 language_defn::watch_location_expression.
7854 (c_language_data): Delete la_watch_location_expression
7855 initializer.
7856 (cplus_language_data): Likewise.
7857 (asm_language_data): Likewise.
7858 (minimal_language_data): Likewise.
7859 * c-lang.h (c_watch_location_expression): Delete declaration.
7860 * d-lang.c (d_language_data): Delete la_watch_location_expression
7861 initializer.
7862 * f-lang.c (f_language_data): Likewise.
7863 * go-lang.c (go_language_data): Likewise.
7864 * language.c (language_defn::watch_location_expression): Member
7865 function implementation from c_watch_location_expression.
7866 (unknown_language_data): Delete la_watch_location_expression
7867 initializer.
7868 (auto_language_data): Likewise.
7869 * language.h (language_data): Delete la_watch_location_expression
7870 field.
7871 (language_defn::watch_location_expression): Declare new member
7872 function.
7873 * m2-lang.c (m2_language_data): Delete
7874 la_watch_location_expression initializer.
7875 * objc-lang.c (objc_language_data): Likewise.
7876 * opencl-lang.c (opencl_language_data): Likewise.
7877 * p-lang.c (pascal_language_data): Likewise.
7878 * rust-lang.c (rust_watch_location_expression): Rename to
7879 rust_language::watch_location_expression.
7880 (rust_language_data): Delete la_watch_location_expression
7881 initializer.
7882 (rust_language::watch_location_expression): New member function,
7883 implementation from rust_watch_location_expression.
7884
7e56227d
AB
78852020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7886
7887 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
7888 ada_language::collect_symbol_completion_matches.
7889 (ada_language_data): Delete la_collect_symbol_completion_matches
7890 initializer.
7891 (ada_language::collect_symbol_completion_matches): New member
7892 function, implementation from
7893 ada_collect_symbol_completion_matches.
7894 * c-lang.c (c_language_data): Delete
7895 la_collect_symbol_completion_matches initializer.
7896 (cplus_language_data): Likewise.
7897 (asm_language_data): Likewise.
7898 (minimal_language_data): Likewise.
7899 * d-lang.c (d_language_data): Likewise.
7900 * f-lang.c (f_collect_symbol_completion_matches): Rename to
7901 f_language::collect_symbol_completion_matches.
7902 (f_language_data): Delete la_collect_symbol_completion_matches
7903 initializer.
7904 (f_language::collect_symbol_completion_matches) New member
7905 function, implementation from f_collect_symbol_completion_matches.
7906 * go-lang.c (go_language_data): Delete
7907 la_collect_symbol_completion_matches initializer.
7908 * language.c (unknown_language_data): Likewise.
7909 (auto_language_data): Likewise.
7910 * language.h (language_data): Delete
7911 la_collect_symbol_completion_matches field.
7912 (language_defn::collect_symbol_completion_matches): New member
7913 function.
7914 * m2-lang.c (m2_language_data): Delete
7915 la_collect_symbol_completion_matches initializer.
7916 * objc-lang.c (objc_language_data): Likewise.
7917 * opencl-lang.c (opencl_language_data): Likewise.
7918 * p-lang.c (pascal_language_data): Likewise.
7919 * rust-lang.c (rust_language_data): Likewise.
7920 * symtab.c (default_collect_symbol_completion_matches): Delete.
7921 (collect_symbol_completion_matches): Update call to
7922 collect_symbol_completion_matches.
7923 (collect_symbol_completion_matches_type): Likewise.
7924 * symtab.h (default_collect_symbol_completion_matches): Delete
7925 declaration.
7926
53fc67f8
AB
79272020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7928
7929 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
7930 (ada_language_data): Delete la_word_break_characters initializer.
7931 (ada_language::word_break_characters): New member function.
7932 * c-lang.c (c_language_data): Delete la_word_break_characters
7933 initializer.
7934 (cplus_language_data): Likewise.
7935 (asm_language_data): Likewise.
7936 (minimal_language_data): Likewise.
7937 * completer.c: Update global comment.
7938 (advance_to_expression_complete_word_point): Update call to
7939 word_break_characters.
7940 (complete_files_symbols): Likewise.
7941 (complete_line_internal_1): Likewise.
7942 (default_completer_handle_brkchars): Likewise.
7943 (skip_quoted_chars): Likewise.
7944 * d-lang.c (d_language_data): Delete la_word_break_characters
7945 initializer.
7946 * f-lang.c (f_word_break_characters): Delete.
7947 (f_language_data): Delete la_word_break_characters initializer.
7948 (f_language::word_break_characters): New member function.
7949 * go-lang.c (go_language_data): Delete la_word_break_characters
7950 initializer.
7951 * language.c (unknown_language_data): Likewise.
7952 (auto_language_data): Likewise.
7953 * language.h (default_word_break_characters): Move declaration to
7954 earlier in the file.
7955 (language_data): Delete la_word_break_characters field.
7956 (language_defn::word_break_characters): New member function.
7957 * m2-lang.c (m2_language_data): Delete la_word_break_characters
7958 initializer.
7959 * objc-lang.c (objc_language_data): Likewise.
7960 * opencl-lang.c (opencl_language_data): Likewise.
7961 * p-lang.c (pascal_language_data): Likewise.
7962 * rust-lang.c (rust_language_data): Likewise.
7963
c9debfb9
AB
79642020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7965
7966 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
7967 (ada_language_data): Delete la_get_symbol_name_matcher
7968 initializer.
7969 (language_defn::get_symbol_name_matcher_inner): New member
7970 function.
7971 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
7972 initializer.
7973 (cplus_language_data): Likewise.
7974 (cplus_language::get_symbol_name_matcher_inner): New member
7975 function.
7976 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
7977 (minimal_language_data): Likewise.
7978 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
7979 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
7980 initializer.
7981 * dictionary.c (iter_match_first_hashed): Update call to
7982 get_symbol_name_matcher.
7983 (iter_match_next_hashed): Likewise.
7984 (iter_match_next_linear): Likewise.
7985 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
7986 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
7987 initializer.
7988 (f_language::get_symbol_name_matcher_inner): New member function.
7989 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
7990 initializer.
7991 * language.c (default_symbol_name_matcher): Update header comment,
7992 make static.
7993 (language_defn::get_symbol_name_matcher): New definition.
7994 (language_defn::get_symbol_name_matcher_inner): Likewise.
7995 (get_symbol_name_matcher): Delete.
7996 (unknown_language_data): Delete la_get_symbol_name_matcher
7997 initializer.
7998 (auto_language_data): Likewise.
7999 * language.h (language_data): Delete la_get_symbol_name_matcher
8000 field.
8001 (language_defn::get_symbol_name_matcher): New member function.
8002 (language_defn::get_symbol_name_matcher_inner): Likewise.
8003 (default_symbol_name_matcher): Delete declaration.
8004 * linespec.c (find_methods): Update call to
8005 get_symbol_name_matcher.
8006 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
8007 initializer.
8008 * minsyms.c (lookup_minimal_symbol): Update call to
8009 get_symbol_name_matcher.
8010 (iterate_over_minimal_symbols): Likewise.
8011 * objc-lang.c (objc_language_data): Delete
8012 la_get_symbol_name_matcher initializer.
8013 * opencl-lang.c (opencl_language_data): Likewise.
8014 * p-lang.c (pascal_language_data): Likewise.
8015 * psymtab.c (psymbol_name_matches): Update call to
8016 get_symbol_name_matcher.
8017 * rust-lang.c (rust_language_data): Delete
8018 la_get_symbol_name_matcher initializer.
8019 * symtab.c (symbol_matches_search_name): Update call to
8020 get_symbol_name_matcher.
8021 (compare_symbol_name): Likewise.
8022
9a49ad8c
AB
80232020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8024
8025 * ada-lang.c (ada_language_data): Delete la_compute_program
8026 initializer.
8027 * c-lang.c (c_language_data): Likewise.
8028 (c_language::compute_program): New member function.
8029 (cplus_language_data): Delete la_compute_program initializer.
8030 (cplus_language::compute_program): New member function.
8031 (asm_language_data): Delete la_compute_program initializer.
8032 (minimal_language_data): Likewise.
8033 * c-lang.h (c_compute_program): Update comment.
8034 (cplus_compute_program): Likewise.
8035 * compile/compile-c-support.c (c_compute_program): Likewise.
8036 (cplus_compute_program): Likewise.
8037 * compile/compile.c (compile_to_object): Update call to
8038 la_compute_program.
8039 * d-lang.c (d_language_data): Delete la_compute_program
8040 initializer.
8041 * f-lang.c (f_language_data): Likewise.
8042 * go-lang.c (go_language_data): Likewise.
8043 * language.c (unknown_language_data): Likewise.
8044 (auto_language_data): Likewise.
8045 * language.h (language_data): Delete la_compute_program field.
8046 (language_defn::compute_program): New member function.
8047 * m2-lang.c (m2_language_data): Delete la_compute_program
8048 initializer.
8049 * objc-lang.c (objc_language_data): Likewise.
8050 * opencl-lang.c (opencl_language_data): Likewise.
8051 * p-lang.c (pascal_language_data): Likewise.
8052 * rust-lang.c (rust_language_data): Likewise.
8053
eff93b4d
AB
80542020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8055
8056 * ada-lang.c (ada_language_data) Delete
8057 la_class_name_from_physname initializer.
8058 * c-lang.c (c_language_data): Likewise.
8059 (cplus_language_data): Likewise.
8060 (cplus_language::class_name_from_physname): New member function.
8061 (asm_language_data): Delete la_class_name_from_physname
8062 initializer.
8063 (minimal_language_data): Likewise.
8064 * d-lang.c (d_language_data): Likewise.
8065 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
8066 method on language_defn class.
8067 (guess_full_die_structure_name): Likewise.
8068 * f-lang.c (f_language_data): Delete la_class_name_from_physname
8069 initializer.
8070 * go-lang.c (go_language_data): Likewise.
8071 * language.c (language_class_name_from_physname): Delete.
8072 (unk_lang_class_name): Delete.
8073 (unknown_language_data): Delete la_class_name_from_physname
8074 initializer.
8075 (auto_language_data): Likewise.
8076 * language.h (language_data): Delete la_class_name_from_physname
8077 field.
8078 (language_defn::class_name_from_physname): New function.
8079 (language_class_name_from_physname): Delete declaration.
8080 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
8081 initializer.
8082 * objc-lang.c (objc_language_data): Likewise.
8083 * opencl-lang.c (opencl_language_data): Likewise.
8084 * p-lang.c (pascal_language_data): Likewise.
8085 * rust-lang.c (rust_language_data): Likewise.
8086
de543742
TT
80872020-06-16 Tom Tromey <tom@tromey.com>
8088
8089 * tui/tui-data.h (STATUS_NAME): New macro.
8090 * tui/tui-layout.c (tui_remove_some_windows)
8091 (initialize_known_windows, tui_register_window)
8092 (tui_layout_split::remove_windows, initialize_layouts)
8093 (tui_new_layout_command): Don't use hard-coded window names.
8094
a350efd4
TT
80952020-06-16 Tom Tromey <tom@tromey.com>
8096
8097 PR tui/25348:
8098 * tui/tui.c (tui_ensure_readline_initialized): Rename from
8099 tui_initialize_readline. Only run once. Call rl_initialize.
8100 * tui/tui.h (tui_ensure_readline_initialized): Rename from
8101 tui_initialize_readline.
8102 * tui/tui-io.c (tui_setup_io): Call
8103 tui_ensure_readline_initialized.
8104 * tui/tui-interp.c (tui_interp::init): Update.
8105
39ec0490
TT
81062020-06-16 Tom Tromey <tom@tromey.com>
8107
8108 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
8109 Also preserve the status window.
8110
d2d1ea20
TT
81112020-06-16 Tom Tromey <tom@tromey.com>
8112
8113 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
8114 where m_window==nullptr.
8115
66920317
TT
81162020-06-15 Tom Tromey <tromey@adacore.com>
8117
8118 * windows-nat.c (windows_nat::handle_output_debug_string):
8119 Update.
8120 (windows_nat::handle_ms_vc_exception): Update.
8121 * target.h (target_read_string): Change API.
8122 * target.c (target_read_string): Change API.
8123 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
8124 Update.
8125 * solib-frv.c (frv_current_sos): Update.
8126 * solib-dsbt.c (dsbt_current_sos): Update.
8127 * solib-darwin.c (darwin_current_sos): Update.
8128 * linux-thread-db.c (inferior_has_bug): Update.
8129 * expprint.c (print_subexp_standard): Update.
8130 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
8131 (ada_exception_message_1): Update.
8132
a5d871dd
TT
81332020-06-15 Tom Tromey <tromey@adacore.com>
8134
8135 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
8136
670e35fa
TT
81372020-06-15 Tom Tromey <tromey@adacore.com>
8138
8139 * valprint.c (read_string): Update comment.
8140 * target.c (MIN): Remove.
8141 (target_read_string): Rewrite.
8142
f5272a3b
TT
81432020-06-15 Tom Tromey <tromey@adacore.com>
8144
8145 * corefile.c (read_memory_string): Remove.
8146 * ada-valprint.c (ada_value_print_ptr): Update.
8147 * ada-lang.h (ada_tag_name): Change return type.
8148 * ada-lang.c (type_from_tag): Update.
8149 (ada_tag_name_from_tsd): Change return type. Use
8150 target_read_string.
8151 (ada_tag_name): Likewise.
8152 * gdbcore.h (read_memory_string): Don't declare.
8153
2c074f49
HD
81542020-06-14 Hannes Domani <ssbssa@yahoo.de>
8155
8156 * symtab.c (rbreak_command): Ignore Windows drive colon.
8157
6a17d503
SM
81582020-06-12 Simon Marchi <simon.marchi@efficios.com>
8159
8160 * NEWS: Mention removed GDBserver host support.
8161
453c733f
NC
81622020-06-12 Nelson Chu <nelson.chu@sifive.com>
8163
8164 * features/riscv/rebuild-csr-xml.sh: Updated.
8165
2b4e6a3f
TT
81662020-06-11 Tom Tromey <tom@tromey.com>
8167
8168 PR gdb/18318:
8169 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
8170
4412332f
JG
81712020-06-09 Jonny Grant <jg@jguk.org>
81722020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
8173
8174 * main.c (captured_main_1): Don't print new line after help.
8175 (print_gdb_help): add mailing list and IRC channel information
8176 to --help. Add new lines between items in the footer. Remove
8177 quotes around bug url.
8178
2f33032a
KS
81792020-06-11 Keith Seitz <keiths@redhat.com>
8180
8181 PR gdb/21356
8182 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
8183 Resolve typedefs for type length calculations.
8184
7ab96794
TV
81852020-06-10 Tom de Vries <tdevries@suse.de>
8186
8187 PR ada/24713
8188 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
8189 (write_psymbols): Enable .gdb_index for ada.
8190 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
8191 ada.
8192
e5f3ece2
TV
81932020-06-10 Tom de Vries <tdevries@suse.de>
8194
8195 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
8196 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
8197 namei" instead of "const char *name" argument.
8198 (dw2_map_matching_symbols): Use "offset_type namei" variant of
8199 dw2_symtab_iter_init.
8200
940da03e
SM
82012020-06-08 Simon Marchi <simon.marchi@efficios.com>
8202
8203 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
8204 to use type::field and field::type instead.
8205
b6cdac4b
SM
82062020-06-08 Simon Marchi <simon.marchi@efficios.com>
8207
8208 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
8209 to use field::type instead.
8210
5d14b6e5
SM
82112020-06-08 Simon Marchi <simon.marchi@efficios.com>
8212
8213 * gdbtypes.h (struct field) <type, set_type>: New methods.
8214 Rename `type` field to...
8215 <m_type>: ... this. Change references throughout to use type or
8216 set_type methods.
8217 (FIELD_TYPE): Use field::type. Change call sites that modify
8218 the field's type to use field::set_type instead.
8219
3d967001
SM
82202020-06-08 Simon Marchi <simon.marchi@efficios.com>
8221
8222 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
8223 to use type::index_type instead.
8224
262abc0d
SM
82252020-06-08 Simon Marchi <simon.marchi@efficios.com>
8226
8227 * gdbtypes.h (struct type) <index_type, set_index_type>: New
8228 methods.
8229 (TYPE_INDEX_TYPE): Use type::index_type.
8230 * gdbtypes.c (create_array_type_with_stride): Likewise.
8231
82836c92
TT
82322020-06-07 Tom Tromey <tom@tromey.com>
8233
8234 * valprint.c (generic_val_print_float): Remove "embedded_offset"
8235 parameter.
8236 (generic_value_print): Update.
8237
940dace9
AB
82382020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8239
8240 Revert commit 982a38f60b0.
8241 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
8242
982a38f6
AB
82432020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8244
8245 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
8246 avoid use after free.
8247
82f06518
TV
82482020-06-05 Tom de Vries <tdevries@suse.de>
8249
8250 * NEWS: Fix typos.
8251
f8c41851
SM
82522020-06-04 Simon Marchi <simon.marchi@efficios.com>
8253
8254 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
8255 the per_bfd object.
8256 (dwarf2_read_debug_names): Likewise.
8257 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
8258 object when re-using a per_bfd object with an index.
8259
f9b5d5ea
TV
82602020-06-03 Tom de Vries <tdevries@suse.de>
8261
8262 PR symtab/26046
8263 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
8264 children for C++.
8265 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
8266 DW_TAG_subprogram.
8267
f6eee2d0
AB
82682020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8269
8270 * ada-lang.c (ada_language_data): Delete skip_trampoline
8271 initializer.
8272 * c-lang.c (c_language_data): Likewise.
8273 (cplus_language_data): Likewise.
8274 (cplus_language::skip_trampoline): New member function.
8275 (asm_language_data): Delete skip_trampoline initializer.
8276 (minimal_language_data): Likewise.
8277 * d-lang.c (d_language_data): Likewise.
8278 * f-lang.c (f_language_data): Likewise.
8279 * go-lang.c (go_language_data): Likewise.
8280 * language.c (unk_lang_trampoline): Delete function.
8281 (skip_language_trampoline): Update.
8282 (unknown_language_data): Delete skip_trampoline initializer.
8283 (auto_language_data): Likewise.
8284 * language.h (language_data): Delete skip_trampoline field.
8285 (language_defn::skip_trampoline): New function.
8286 * m2-lang.c (m2_language_data): Delete skip_trampoline
8287 initializer.
8288 * objc-lang.c (objc_skip_trampoline): Delete function, move
8289 implementation to objc_language::skip_trampoline.
8290 (objc_language_data): Delete skip_trampoline initializer.
8291 (objc_language::skip_trampoline): New member function with
8292 implementation from objc_skip_trampoline.
8293 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
8294 initializer.
8295 * p-lang.c (pascal_language_data): Likewise.
8296 * rust-lang.c (rust_language_data): Likewise.
8297
0a50df5d
AB
82982020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8299
8300 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
8301 (ada_language::demangle): New member function.
8302 * c-lang.c (c_language_data): Delete la_demangle initializer.
8303 (cplus_language_data): Delete la_demangle initializer.
8304 (cplus_language::demangle): New member function.
8305 (asm_language_data): Delete la_demangle initializer.
8306 (minimal_language_data): Delete la_demangle initializer.
8307 * d-lang.c (d_language_data): Delete la_demangle initializer.
8308 (d_language::demangle): New member function.
8309 * f-lang.c (f_language_data): Delete la_demangle initializer.
8310 (f_language::demangle): New member function.
8311 * go-lang.c (go_language_data): Delete la_demangle initializer.
8312 (go_language::demangle): New member function.
8313 * language.c (language_demangle): Update.
8314 (unk_lang_demangle): Delete.
8315 (unknown_language_data): Delete la_demangle initializer.
8316 (unknown_language::demangle): New member function.
8317 (auto_language_data): Delete la_demangle initializer.
8318 (auto_language::demangle): New member function.
8319 * language.h (language_data): Delete la_demangle field.
8320 (language_defn::demangle): New function.
8321 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
8322 * objc-lang.c (objc_language_data): Delete la_demangle
8323 initializer.
8324 (objc_language::demangle): New member function.
8325 * opencl-lang.c (opencl_language_data): Delete la_demangle
8326 initializer.
8327 * p-lang.c (pascal_language_data): Likewise.
8328 * rust-lang.c (rust_language_data): Likewise.
8329 (rust_language::demangle): New member function.
8330
fbfb0a46
AB
83312020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8332
8333 * ada-lang.c (ada_language_data): Delete la_print_type
8334 initializer.
8335 (ada_language::print_type): New member function.
8336 * c-lang.c (c_language_data): Delete la_print_type initializer.
8337 (c_language::print_type): New member function.
8338 (cplus_language_data): Delete la_print_type initializer.
8339 (cplus_language::print_type): New member function.
8340 (asm_language_data): Delete la_print_type initializer.
8341 (asm_language::print_type): New member function.
8342 (minimal_language_data): Delete la_print_type initializer.
8343 (minimal_language::print_type): New member function.
8344 * d-lang.c (d_language_data): Delete la_print_type initializer.
8345 (d_language::print_type): New member function.
8346 * f-lang.c (f_language_data): Delete la_print_type initializer.
8347 (f_language::print_type): New member function.
8348 * go-lang.c (go_language_data): Delete la_print_type initializer.
8349 (go_language::print_type): New member function.
8350 * language.c (unk_lang_print_type): Delete.
8351 (unknown_language_data): Delete la_print_type initializer.
8352 (unknown_language::print_type): New member function.
8353 (auto_language_data): Delete la_print_type initializer.
8354 (auto_language::print_type): New member function.
8355 * language.h (language_data): Delete la_print_type field.
8356 (language_defn::print_type): New function.
8357 (LA_PRINT_TYPE): Update.
8358 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
8359 (m2_language::print_type): New member function.
8360 * objc-lang.c (objc_language_data): Delete la_print_type
8361 initializer.
8362 (objc_language::print_type): New member function.
8363 * opencl-lang.c (opencl_print_type): Delete, implementation moved
8364 to opencl_language::print_type.
8365 (opencl_language_data): Delete la_print_type initializer.
8366 (opencl_language::print_type): New member function, implementation
8367 from opencl_print_type.
8368 * p-lang.c (pascal_language_data): Delete la_print_type
8369 initializer.
8370 (pascal_language::print_type): New member function.
8371 * rust-lang.c (rust_print_type): Delete, implementation moved to
8372 rust_language::print_type.
8373 (rust_language_data): Delete la_print_type initializer.
8374 (rust_language::print_type): New member function, implementation
8375 from rust_print_type.
8376
6f827019
AB
83772020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8378
8379 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
8380 implementation moves to...
8381 (ada_language::sniff_from_mangled_name): ...here. Update return
8382 type.
8383 (ada_language_data): Delete la_sniff_from_mangled_name
8384 initializer.
8385 * c-lang.c (c_language_data): Likewise.
8386 (cplus_language_data): Likewise.
8387 (cplus_language::sniff_from_mangled_name): New member function,
8388 implementation taken from gdb_sniff_from_mangled_name.
8389 (asm_language_data): Delete la_sniff_from_mangled_name
8390 initializer.
8391 (minimal_language_data): Likewise.
8392 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
8393 implementation moves to cplus_language::sniff_from_mangled_name.
8394 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
8395 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
8396 moves to...
8397 (d_language::sniff_from_mangled_name): ...here.
8398 (d_language_data): Delete la_sniff_from_mangled_name initializer.
8399 * f-lang.c (f_language_data): Likewise.
8400 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
8401 moves to...
8402 (go_language::sniff_from_mangled_name): ...here.
8403 (go_language_data): Delete la_sniff_from_mangled_name initializer.
8404 * language.c (language_sniff_from_mangled_name): Delete.
8405 (unknown_language_data): Delete la_sniff_from_mangled_name
8406 initializer.
8407 (auto_language_data): Likewise.
8408 * language.h (language_data): Delete la_sniff_from_mangled_name
8409 field.
8410 (language_defn::sniff_from_mangled_name): New function.
8411 (language_sniff_from_mangled_name): Delete declaration.
8412 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
8413 field.
8414 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
8415 implementation moves to...
8416 (objc_language::sniff_from_mangled_name): ...here.
8417 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
8418 * opencl-lang.c (opencl_language_data): Likewise.
8419 * p-lang.c (pascal_language_data): Likewise.
8420 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
8421 implementation moves to...
8422 (rust_language::sniff_from_mangled_name): ...here.
8423 (rust_language_data): Delete la_sniff_from_mangled_name
8424 initializer.
8425 * symtab.c (symbol_find_demangled_name): Call
8426 sniff_from_mangled_name member function.
8427
fb8006fd
AB
84282020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8429
8430 * ada-lang.c (ada_language_data): Delete la_search_name_hash
8431 initializer.
8432 * c-lang.c (c_language_data): Likewise.
8433 (cplus_language_data): Likewise.
8434 (cplus_language::search_name_hash): New member function.
8435 (asm_language_data): Delete la_search_name_hash initializer.
8436 (minimal_language_data): Likewise.
8437 * d-lang.c (d_language_data): Likewise.
8438 * dictionary.c (default_search_name_hash): Rename to...
8439 (language_defn::search_name_hash): ...this.
8440 * f-lang.c (f_language_data): Likewise.
8441 (f_language::search_name_hash): New member function.
8442 * go-lang.c (go_language_data): Delete la_search_name_hash
8443 initializer.
8444 * language.c (unknown_language_data): Likewise.
8445 (auto_language_data): Likewise.
8446 * language.h (struct language_data): Delete la_search_name_hash
8447 field.
8448 (language_defn::search_name_hash): Declare new member function.
8449 (default_search_name_hash): Delete declaration.
8450 * m2-lang.c (m2_language_data): Delete la_search_name_hash
8451 initializer.
8452 * objc-lang.c (objc_language_data): Likewise.
8453 * opencl-lang.c (opencl_language_data): Likewise.
8454 * p-lang.c (pascal_language_data): Likewise.
8455 * rust-lang.c (rust_language_data): Likewise.
8456 * symtab.c (search_name_hash): Update call.
8457
8e25bafe
AB
84582020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8459
8460 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
8461 initializer.
8462 * c-lang.c (class compile_instance): Declare.
8463 (c_language_data): Delete la_get_compile_instance initializer.
8464 (c_language::get_compile_instance): New member function.
8465 (cplus_language_data): Delete la_get_compile_instance initializer.
8466 (cplus_language::get_compile_instance): New member function.
8467 (asm_language_data): Delete la_get_compile_instance initializer.
8468 (minimal_language_data): Likewise.
8469 * c-lang.h (c_get_compile_context): Update comment.
8470 (cplus_get_compile_context): Update comment.
8471 * compile/compile.c (compile_to_object): Update calls, don't rely
8472 on function pointer being NULL.
8473 * d-lang.c (d_language_data): Delete la_get_compile_instance
8474 initializer.
8475 * f-lang.c (f_language_data): Likewise.
8476 * go-lang.c (go_language_data): Likewise.
8477 * language.c (unknown_language_data): Likewise.
8478 (auto_language_data): Likewise.
8479 * language.h (language_data): Delete la_get_compile_instance field.
8480 (language_defn::get_compile_instance): New member function.
8481 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
8482 initializer.
8483 * objc-lang.c (objc_language_data): Likewise.
8484 * opencl-lang.c (opencl_language_data): Likewise.
8485 * p-lang.c (pascal_language_data): Likewise.
8486 * rust-lang.c (rust_language_data): Likewise.
8487
4009ee92
AB
84882020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8489
8490 * ada-lang.c (ada_add_all_symbols): Update comment.
8491 (ada_iterate_over_symbols): Delete, move implementation to...
8492 (ada_language::iterate_over_symbols): ...here, a new member
8493 function, rewrite to use range based for loop.
8494 (ada_language_data): Delete la_iterate_over_symbols initializer.
8495 * c-lang.c (c_language_data): Likewise.
8496 (cplus_language_data): Likewise.
8497 (asm_language_data): Likewise.
8498 (minimal_language_data): Likewise.
8499 * d-lang.c (d_language_data): Likewise.
8500 * f-lang.c (f_language_data): Likewise.
8501 * go-lang.c (go_language_data): Likewise.
8502 * language.c (unknown_language_data): Likewise.
8503 (auto_language_data): Likewise.
8504 * language.h (language_data): Delete la_iterate_over_symbols field.
8505 (language_defn::iterate_over_symbols): New member function.
8506 (LA_ITERATE_OVER_SYMBOLS): Update.
8507 * linespec.c (iterate_over_all_matching_symtabs): Update.
8508 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
8509 initializer.
8510 * objc-lang.c (objc_language_data): Likewise.
8511 * opencl-lang.c (opencl_language_data): Likewise.
8512 * p-lang.c (pascal_language_data): Likewise.
8513 * rust-lang.c (rust_language_data): Likewise.
8514
54f4ca46
AB
85152020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8516
8517 * ada-lang.c (ada_language_data): Delete
8518 la_lookup_transparent_type initializer.
8519 * c-lang.c (c_language_data): Likewise.
8520 (cplus_language_data): Likewise.
8521 (cplus_language::lookup_transparent_type): New member function.
8522 (asm_language_data): Delete la_lookup_transparent_type
8523 initializer.
8524 (minimal_language_data): Likewise.
8525 * d-lang.c (d_language_data): Likewise.
8526 * f-lang.c (f_language_data): Likewise.
8527 * go-lang.c (go_language_data): Likewise.
8528 * language.c (unknown_language_data): Likewise.
8529 (auto_language_data): Likewise.
8530 * language.h (struct language_data): Delete
8531 la_lookup_transparent_type field.
8532 (language_defn::lookup_transparent_type): New member function.
8533 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
8534 initializer.
8535 * objc-lang.c (objc_language_data): Likewise.
8536 * opencl-lang.c (opencl_language_data): Likewise.
8537 * p-lang.c (pascal_language_data): Likewise.
8538 * rust-lang.c (rust_language_data): Likewise.
8539 * symtab.c (symbol_matches_domain): Update call.
8540
1fb314aa
AB
85412020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8542
8543 * ada-lang.c (ada_language_arch_info): Delete function, move
8544 implementation to...
8545 (ada_language::language_arch_info): ...here, a new member
8546 function.
8547 (ada_language_data): Delete la_language_arch_info.
8548 * c-lang.c (c_language_data): Likewise.
8549 (c_language::language_arch_info): New member function.
8550 (cplus_language_arch_info): Delete function, move
8551 implementation to...
8552 (cplus_language::language_arch_info): ...here, a new member
8553 function.
8554 (cplus_language_data): Delete la_language_arch_info.
8555 (asm_language_data): Likewise.
8556 (asm_language::language_arch_info): New member function.
8557 (minimal_language_data): Delete la_language_arch_info.
8558 (minimal_language::language_arch_info): New member function.
8559 * d-lang.c (d_language_arch_info): Delete function, move
8560 implementation to...
8561 (d_language::language_arch_info): ...here, a new member
8562 function.
8563 (d_language_data): Delete la_language_arch_info.
8564 * f-lang.c (f_language_arch_info): Delete function, move
8565 implementation to...
8566 (f_language::language_arch_info): ...here, a new member
8567 function.
8568 (f_language_data): Delete la_language_arch_info.
8569 * go-lang.c (go_language_arch_info): Delete function, move
8570 implementation to...
8571 (go_language::language_arch_info): ...here, a new member
8572 function.
8573 (go_language_data): Delete la_language_arch_info.
8574 * language.c (unknown_language_data): Likewise.
8575 (unknown_language::language_arch_info): New member function.
8576 (auto_language_data): Delete la_language_arch_info.
8577 (auto_language::language_arch_info): New member function.
8578 (language_gdbarch_post_init): Update call to
8579 la_language_arch_info.
8580 * language.h (language_data): Delete la_language_arch_info
8581 function pointer.
8582 (language_defn::language_arch_info): New function.
8583 * m2-lang.c (m2_language_arch_info): Delete function, move
8584 implementation to...
8585 (m2_language::language_arch_info): ...here, a new member
8586 function.
8587 (m2_language_data): Delete la_language_arch_info.
8588 * objc-lang.c (objc_language_arch_info): Delete function, move
8589 implementation to...
8590 (objc_language::language_arch_info): ...here, a new member
8591 function.
8592 (objc_language_data): Delete la_language_arch_info.
8593 * opencl-lang.c (opencl_language_arch_info): Delete function, move
8594 implementation to...
8595 (opencl_language::language_arch_info): ...here, a new member
8596 function.
8597 (opencl_language_data): Delete la_language_arch_info.
8598 * p-lang.c (pascal_language_arch_info): Delete function, move
8599 implementation to...
8600 (pascal_language::language_arch_info): ...here, a new member
8601 function.
8602 (pascal_language_data): Delete la_language_arch_info.
8603 * rust-lang.c (rust_language_arch_info): Delete function, move
8604 implementation to...
8605 (rust_language::language_arch_info): ...here, a new member
8606 function.
8607 (rust_language_data): Delete la_language_arch_info.
8608
48448202
AB
86092020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8610
8611 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
8612 initializer.
8613 * c-lang.c (c_language_data): Likewise.
8614 (cplus_language_data): Likewise.
8615 (cplus_language::pass_by_reference_info): New method.
8616 (asm_language_data): Delete la_pass_by_reference initializer.
8617 (minimal_language_data): Likewise.
8618 * cp-abi.c (cp_pass_by_reference): Remove use of
8619 default_pass_by_reference.
8620 * d-lang.c (d_language_data): Likewise.
8621 * f-lang.c (f_language_data): Likewise.
8622 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
8623 default_pass_by_reference.
8624 * go-lang.c (go_language_data): Likewise.
8625 * language.c (language_pass_by_reference): Update.
8626 (default_pass_by_reference): Delete.
8627 (unknown_language_data): Delete la_pass_by_reference
8628 initializer.
8629 (auto_language_data): Likewise.
8630 * language.h (struct language_data): Delete la_pass_by_reference
8631 field.
8632 (language_defn::pass_by_reference_info): New member function.
8633 (default_pass_by_reference): Delete declaration.
8634 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
8635 initializer.
8636 * objc-lang.c (objc_language_data): Likewise.
8637 * opencl-lang.c (opencl_language_data): Likewise.
8638 * p-lang.c (pascal_language_data): Likewise.
8639 * rust-lang.c (rust_language_data): Likewise.
8640
15e5fd35
AB
86412020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8642
8643 * ada-lang.c (ada_read_var_value): Delete function, move
8644 implementation to...
8645 (ada_language::read_var_value): ...here.
8646 (ada_language_data): Delete la_read_var_value initializer.
8647 * c-lang.c (c_language_data): Likewise.
8648 (cplus_language_data): Likewise.
8649 (minimal_language_data): Likewise.
8650 * d-lang.c (d_language_data): Likewise.
8651 * f-lang.c (f_language_data): Likewise.
8652 * findvar.c (default_read_var_value): Rename to...
8653 (language_defn::read_var_value): ...this.
8654 * findvar.c (read_var_value): Update header comment, and change to
8655 call member function instead of function pointer.
8656 * go-lang.c (go_language_data): Likewise.
8657 * language.c (unknown_language_data): Delete la_read_var_value
8658 initializer.
8659 (auto_language_data): Likewise.
8660 * language.h (struct language_data): Delete la_read_var_value
8661 field.
8662 (language_defn::read_var_value): New member function.
8663 (default_read_var_value): Delete declaration.
8664 * m2-lang.c (m2_language_data): Delete la_read_var_value
8665 initializer.
8666 * objc-lang.c (objc_language_data): Likewise.
8667 * opencl-lang.c (opencl_language_data): Likewise.
8668 * p-lang.c (pascal_language_data): Likewise.
8669 * rust-lang.c (rust_language_data): Likewise.
8670 * value.h (default_read_var_value): Delete declaration.
8671
5bd40f2a
AB
86722020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8673
8674 * ada-lang.c (ada_print_array_index): Delete function, move
8675 implementation to...
8676 (ada_language::print_array_index): ...here.
8677 (ada_language_data): Delete la_print_array_index initializer.
8678 * c-lang.c (c_language_data): Likewise.
8679 (cplus_language_data): Likewise.
8680 (minimal_language_data): Likewise.
8681 * d-lang.c (d_language_data): Likewise.
8682 * f-lang.c (f_language_data): Likewise.
8683 * go-lang.c (go_language_data): Likewise.
8684 * language.c (default_print_array_index): Delete function, move
8685 implementation to...
8686 (language_defn::print_array_index): ...here.
8687 (unknown_language_data): Delete la_print_array_index initializer.
8688 (auto_language_data): Likewise.
8689 * language.h (struct language_data): Delete la_print_array_index
8690 field.
8691 (language_defn::print_array_index): New member function.
8692 (LA_PRINT_ARRAY_INDEX): Update.
8693 (default_print_array_index): Delete declaration.
8694 * m2-lang.c (m2_language_data): Delete la_print_array_index
8695 initializer.
8696 * objc-lang.c (objc_language_data): Likewise.
8697 * opencl-lang.c (opencl_language_data): Likewise.
8698 * p-lang.c (pascal_language_data): Likewise.
8699 * rust-lang.c (rust_language_data): Likewise.
8700
0874fd07
AB
87012020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8702
8703 * gdb/ada-lang.c (ada_language_defn): Convert to...
8704 (ada_language_data): ...this.
8705 (class ada_language): New class.
8706 (ada_language_defn): New static global.
8707 * gdb/c-lang.c (c_language_defn): Convert to...
8708 (c_language_data): ...this.
8709 (class c_language): New class.
8710 (c_language_defn): New static global.
8711 (cplus_language_defn): Convert to...
8712 (cplus_language_data): ...this.
8713 (class cplus_language): New class.
8714 (cplus_language_defn): New static global.
8715 (asm_language_defn): Convert to...
8716 (asm_language_data): ...this.
8717 (class asm_language): New class.
8718 (asm_language_defn): New static global.
8719 (minimal_language_defn): Convert to...
8720 (minimal_language_data): ...this.
8721 (class minimal_language): New class.
8722 (minimal_language_defn): New static global.
8723 * gdb/d-lang.c (d_language_defn): Convert to...
8724 (d_language_data): ...this.
8725 (class d_language): New class.
8726 (d_language_defn): New static global.
8727 * gdb/f-lang.c (f_language_defn): Convert to...
8728 (f_language_data): ...this.
8729 (class f_language): New class.
8730 (f_language_defn): New static global.
8731 * gdb/go-lang.c (go_language_defn): Convert to...
8732 (go_language_data): ...this.
8733 (class go_language): New class.
8734 (go_language_defn): New static global.
8735 * gdb/language.c (unknown_language_defn): Remove declaration.
8736 (current_language): Initialize to nullptr, real initialization is
8737 moved to _initialize_language.
8738 (languages): Delete global.
8739 (language_defn::languages): Define.
8740 (set_language_command): Use language_defn::languages.
8741 (set_language): Likewise.
8742 (range_error): Likewise.
8743 (language_enum): Likewise.
8744 (language_def): Likewise.
8745 (add_set_language_command): Use language_def::languages for the
8746 language list, and language_def to lookup language pointers.
8747 (skip_language_trampoline): Use language_defn::languages.
8748 (unknown_language_defn): Convert to...
8749 (unknown_language_data): ...this.
8750 (class unknown_language): New class.
8751 (unknown_language_defn): New static global.
8752 (auto_language_defn): Convert to...
8753 (auto_language_data): ...this.
8754 (class auto_language): New class.
8755 (auto_language_defn): New static global.
8756 (language_gdbarch_post_init): Use language_defn::languages.
8757 (_initialize_language): Initialize current_language.
8758 * gdb/language.h (struct language_defn): Rename to...
8759 (struct language_data): ...this.
8760 (struct language_defn): New.
8761 (auto_language_defn): Delete.
8762 (unknown_language_defn): Delete.
8763 (minimal_language_defn): Delete.
8764 (ada_language_defn): Delete.
8765 (asm_language_defn): Delete.
8766 (c_language_defn): Delete.
8767 (cplus_language_defn): Delete.
8768 (d_language_defn): Delete.
8769 (f_language_defn): Delete.
8770 (go_language_defn): Delete.
8771 (m2_language_defn): Delete.
8772 (objc_language_defn): Delete.
8773 (opencl_language_defn): Delete.
8774 (pascal_language_defn): Delete.
8775 (rust_language_defn): Delete.
8776 * gdb/m2-lang.c (m2_language_defn): Convert to...
8777 (m2_language_data): ...this.
8778 (class m2_language): New class.
8779 (m2_language_defn): New static global.
8780 * gdb/objc-lang.c (objc_language_defn): Convert to...
8781 (objc_language_data): ...this.
8782 (class objc_language): New class.
8783 (objc_language_defn): New static global.
8784 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
8785 (opencl_language_data): ...this.
8786 (class opencl_language): New class.
8787 (opencl_language_defn): New static global.
8788 * gdb/p-lang.c (pascal_language_defn): Convert to...
8789 (pascal_language_data): ...this.
8790 (class pascal_language): New class.
8791 (pascal_language_defn): New static global.
8792 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
8793 language pointer, update comment format.
8794 * gdb/rust-lang.c (rust_language_defn): Convert to...
8795 (rust_language_data): ...this.
8796 (class rust_language): New class.
8797 (rust_language_defn): New static global.
8798
1313c56e
AB
87992020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
8800
8801 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
8802 member variable.
8803 <m_stmt_at_address>: New member variable.
8804 (lnp_state_machine::record_line): Don't record some lines, update
8805 tracking of is_stmt at the same address.
8806 (lnp_state_machine::lnp_state_machine): Initialise new member
8807 variables.
8808
b7ed9f3d
ST
88092020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
8810
8811 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
8812 "-include gnu-nat-mig.h".
8813 * gnu-nat-mig.h: New file.
8814 * gnu-nat.c: Include "gnu-nat-mig.h".
8815 (exc_server, msg_reply_server, notify_server,
8816 process_reply_server): Remove declarations.
8817
14a8ad62
ST
88182020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8819
8820 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
8821 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
8822 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
8823 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
8824 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
8825 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
8826 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
8827 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
8828 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
8829 to gnu_nat_target class.
8830 * gnu-nat.c: Likewise.
8831 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
8832 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
8833 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
8834 object.
8835 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
8836 instead of `gnu_target'.
8837
0af5e106
ST
88382020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8839
8840 * i386-gnu-tdep.c: Include "gdbcore.h"
8841 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
8842 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
8843 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
8844 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
8845 i386_gnu_sigcontext_addr): New functions
8846 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
8847 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
8848 tdep.
8849
078f2fc9
ST
88502020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8851
8852 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
8853 before fork_inferior call. Avoid calling it if target_is_pushed returns
8854 true.
8855
53dff92c
ST
88562020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8857
8858 * gnu-nat.h (gnu_target): New variable declaration.
8859 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
8860 gnu_target.
8861 * gnu-nat.c (gnu_target): New variable.
8862 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
8863 add_thread_silent, and add_thread calls.
8864 (gnu_nat_target::create_inferior): Pass gnu_target to
8865 add_thread_silent, thread_change_ptid call.
8866 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
8867 call.
8868
5a8b8627
ST
88692020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8870
8871 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
8872 (gnu_nat_target::find_memory_regions): Remove unused
8873 `old_address' variable.
8874
366f550a
ST
88752020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8876
8877 * gnu-nat.c: Include "gdbarch.h".
8878
f14871bf
ST
88792020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8880
8881 * reply_mig_hack.awk (Error return): Cast function through
8882 void *, to bypass compiler function call check.
8883
c6887cfb
ST
88842020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8885
8886 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
8887 $(srcdir)/reply_mig_hack.awk.
8888
6930bffe
ST
88892020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8890
8891 * gnu-nat.h (gnu_debug_flag): Set type to bool.
8892
112c22ed
JG
88932020-05-30 Jonny Grant <jg@jguk.org>
8894
8895 * configure.ac (ACX_BUGURL): change bug URL to https.
8896
f68f85b5
PA
88972020-05-30 Pedro Alves <palves@redhat.com>
8898
8899 * cp-support.c (replace_typedefs_template): New.
8900 (replace_typedefs_qualified_name): Handle
8901 DEMANGLE_COMPONENT_TEMPLATE.
8902
976ca316
SM
89032020-05-29 Simon Marchi <simon.marchi@efficios.com>
8904
8905 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
8906 dwarf2/index-cache.h, dwarf2/index-write.c,
8907 dwarf2/index-write.h, dwarf2/line-header.c,
8908 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
8909 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
8910 variables and fields from `dwarf2_per_objfile` to just
8911 `per_objfile` throughout.
8912
989ade05
SM
89132020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
8914
8915 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8916 <push_dwarf_reg_entry_value>: Add comment.
8917
c47bae85
KB
89182020-05-28 Kevin Buettner <kevinb@redhat.com>
8919 Keith Seitz <keiths@redhat.com>
8920
8921 * python/python.c (do_start_initialization): Call PyEval_SaveThread
8922 instead of PyEval_ReleaseLock.
8923 (class gdbpy_gil): Move to earlier in file.
8924 (finalize_python): Set gdb_python_initialized.
8925 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
8926 when not initialized.
8927
44486dcf
SM
89282020-05-28 Simon Marchi <simon.marchi@efficios.com>
8929
8930 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
8931 <push_dwarf_reg_entry_value>: Remove assert. Override
8932 per_objfile with caller_per_objfile.
8933
f030440d
TV
89342020-05-28 Tom de Vries <tdevries@suse.de>
8935
8936 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
8937 PR gold/15646 workaround to symbol kind "type".
8938
f0fbb768
TT
89392020-05-27 Tom Tromey <tromey@adacore.com>
8940
8941 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
8942
af0b2a3e
TT
89432020-05-27 Tom Tromey <tromey@adacore.com>
8944
8945 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
8946 Use htab_find_with_hash.
8947 <add_abbrev>: Remove "abbrev_number" parameter.
8948 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
8949 "abbrev_number" parameter. Use htab_find_slot_with_hash.
8950 (hash_abbrev): Add comment.
8951 (abbrev_table::lookup_abbrev): Move to header file.
8952 (abbrev_table::read): Update.
8953
7d00ffec
TT
89542020-05-27 Tom Tromey <tromey@adacore.com>
8955
8956 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
8957 method.
8958 <canonical_name>: New member.
8959 <raw_name>: Rename from "name".
8960 (partial_die_info): Initialize canonical_name.
8961 (scan_partial_symbols): Check raw_name.
8962 (partial_die_parent_scope, partial_die_full_name)
8963 (add_partial_symbol, add_partial_subprogram)
8964 (add_partial_enumeration, load_partial_dies): Use "name" method.
8965 (partial_die_info::name): New method.
8966 (partial_die_info::read, guess_partial_die_structure_name)
8967 (partial_die_info::fixup): Update.
8968
697bba18
TT
89692020-05-27 Tom Tromey <tromey@adacore.com>
8970
8971 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
8972 <get_ref_die_offset>: Inline.
8973 <get_ref_die_offset_complaint>: New method.
8974 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
8975 (attribute::get_ref_die_offset_complaint): Rename from
8976 get_ref_die_offset. Just issue complaint.
8977
c17ace43
HD
89782020-05-27 Hannes Domani <ssbssa@yahoo.de>
8979
8980 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
8981
96445f0b
HD
89822020-05-27 Hannes Domani <ssbssa@yahoo.de>
8983
8984 * exec.c (exec_file_attach): Use errno value of first openp failure.
8985
ac637ec3
HD
89862020-05-27 Hannes Domani <ssbssa@yahoo.de>
8987
8988 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
8989 Don't close thread handle.
8990
17ee85fc
TT
89912020-05-27 Tom Tromey <tom@tromey.com>
8992 Simon Marchi <simon.marchi@efficios.com>
8993
8994 * objfiles.h (struct objfile) <partial_symtabs>: Now a
8995 shared_ptr.
8996 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
8997 member.
8998 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
8999 dwarf2_per_bfd_objfile_data_key>: New globals.
9000 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
9001 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
9002 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
9003 shared.
9004 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
9005 short-circuit when sharing.
9006 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
9007 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
9008
39b16f87
SM
90092020-05-27 Simon Marchi <simon.marchi@efficios.com>
9010
9011 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
9012 to...
9013 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
9014 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
9015
fcf23d5b
SM
90162020-05-27 Simon Marchi <simon.marchi@efficios.com>
9017
9018 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
9019 build_name_components, find_name_components_bounds>:
9020 Add per_objfile parameter.
9021 (struct mapped_index) <symbol_name_at>: Likewise.
9022 (struct mapped_debug_names): Remove constructor.
9023 <dwarf2_per_objfile>: Remove field.
9024 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
9025 (mapped_index_base::find_name_components_bounds,
9026 mapped_index_base::build_name_components,
9027 dw2_expand_symtabs_matching_symbol): Likewise.
9028 (class mock_mapped_index) <symbol_name_at>: Likewise.
9029 (check_match): Likewise.
9030 (check_find_bounds_finds): Likewise.
9031 (test_mapped_index_find_name_component_bounds): Update.
9032 (CHECK_MATCH): Update.
9033 (dw2_expand_symtabs_matching): Update.
9034 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
9035 per_objfile parameter.
9036 <find_vec_in_debug_names>: Likewise.
9037 <m_per_objfile>: New field.
9038 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
9039 parameter.
9040 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
9041 (dw2_debug_names_iterator::next): Update.
9042 (dw2_debug_names_lookup_symbol): Update.
9043 (dw2_debug_names_expand_symtabs_for_function): Update.
9044 (dw2_debug_names_map_matching_symbols): Update.
9045 (dw2_debug_names_expand_symtabs_matching): Update.
9046 (dwarf2_read_debug_names): Update.
9047
7188ed02
SM
90482020-05-27 Simon Marchi <simon.marchi@efficios.com>
9049
9050 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
9051 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
9052 move to dwarf2_per_objfile.
9053 <read_in_chain>: Remove.
9054 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
9055 remove_all_cus, age_comp_units>: New methods.
9056 <m_dwarf2_cus>: New member.
9057 (struct dwarf2_per_cu_data) <cu>: Remove.
9058 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
9059 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
9060 moved to methods of dwarf2_per_objfile.
9061 (dwarf2_clear_marks): Remove.
9062 (dwarf2_queue_item::~dwarf2_queue_item): Update.
9063 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
9064 (dwarf2_per_bfd::free_cached_comp_units): Remove.
9065 (dwarf2_per_objfile::remove_all_cus): New.
9066 (class free_cached_comp_units) <~free_cached_comp_units>:
9067 Update.
9068 (load_cu): Update.
9069 (dw2_do_instantiate_symtab): Adjust.
9070 (fill_in_sig_entry_from_dwo_entry): Adjust.
9071 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9072 (cutu_reader::cutu_reader): Likewise.
9073 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
9074 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
9075 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
9076 and dwarf2_per_objfile::age_comp_units.
9077 (load_partial_comp_unit): Update.
9078 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
9079 (process_queue): Likewise.
9080 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
9081 backlink.
9082 (dwarf2_read_addr_index): Likewise.
9083 (follow_die_offset): Likewise.
9084 (dwarf2_fetch_die_loc_sect_off): Likewise.
9085 (dwarf2_fetch_constant_bytes): Likewise.
9086 (dwarf2_fetch_die_type_sect_off): Likewise.
9087 (follow_die_sig_1): Likewise.
9088 (load_full_type_unit): Likewise.
9089 (read_signatured_type): Likewise.
9090 (dwarf2_cu::dwarf2_cu): Don't set cu field.
9091 (dwarf2_cu::~dwarf2_cu): Remove.
9092 (dwarf2_per_objfile::get_cu): New.
9093 (dwarf2_per_objfile::set_cu): New.
9094 (age_cached_comp_units): Rename to...
9095 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
9096 to std::unordered_map.
9097 (free_one_cached_comp_unit): Rename to...
9098 (dwarf2_per_objfile::remove_cu): ... this. Adjust
9099 to std::unordered_map.
9100 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
9101 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
9102 a dwarf2_per_objfile in data.
9103 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
9104 (dwarf2_clear_marks): Remove.
9105
2e671100
SM
91062020-05-27 Simon Marchi <simon.marchi@efficios.com>
9107
9108 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
9109 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
9110 (init_tu_and_read_dwo_dies): Likewise.
9111 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
9112 (cutu_reader::cutu_reader): Likewise.
9113 (load_partial_comp_unit): Likewise.
9114 (process_psymtab_comp_unit): Update.
9115 (build_type_psymtabs_1): Update.
9116 (process_skeletonless_type_unit): Update.
9117 (load_full_comp_unit): Update.
9118 (find_partial_die): Update.
9119 (dwarf2_read_addr_index): Update.
9120 (read_signatured_type): Update.
9121
2e6a9f79
SM
91222020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9123
9124 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
9125 m_header_read_in>: New fields.
9126 <get_header>: New method.
9127 * dwarf2/read.c (per_cu_header_read_in): Remove.
9128 (dwarf2_per_cu_data::get_header): New.
9129 (dwarf2_per_cu_data::addr_size): Update.
9130 (dwarf2_per_cu_data::offset_size): Update.
9131 (dwarf2_per_cu_data::ref_addr_size): Update.
9132
1b555f17
SM
91332020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9134
9135 * dwarf2/read.c (load_cu): Return dwarf2_cu.
9136 (dw2_do_instantiate_symtab): Update.
9137 (queue_and_load_all_dwo_tus): Change parameter from
9138 dwarf2_per_cu_data to dwarf2_cu.
9139 (dwarf2_fetch_die_loc_sect_off): Update.
9140 (dwarf2_fetch_constant_bytes): Update.
9141 (dwarf2_fetch_die_type_sect_off): Update.
9142
8fc0b21d
SM
91432020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9144
9145 * dwarf2/read.c (process_full_comp_unit,
9146 process_full_type_unit): Remove per_cu, per_objfile paramters.
9147 Add dwarf2_cu parameter.
9148 (process_queue): Update.
9149
168c9250
SM
91502020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9151
9152 * dwarf2/read.c (create_cu_from_index_list): Replace
9153 dwarf2_per_objfile parameter with dwarf2_per_bfd.
9154 (create_cus_from_index_list): Likewise.
9155 (create_cus_from_index): Likewise.
9156 (create_signatured_type_table_from_index): Likewise.
9157 (create_cus_from_debug_names_list): Likewise.
9158 (create_cus_from_debug_names): Likewise.
9159 (dwarf2_read_gdb_index): Update.
9160 (dwarf2_read_debug_names): Update.
9161
e286671b
TT
91622020-05-27 Tom Tromey <tom@tromey.com>
9163 Simon Marchi <simon.marchi@efficios.com>
9164
9165 * dwarf2/read.h (struct dwarf2_per_objfile)
9166 <get_type_for_signatured_type, set_type_for_signatured_type>:
9167 New methods.
9168 <m_type_map>: New member.
9169 (struct signatured_type) <type>: Remove.
9170 * dwarf2/read.c
9171 (dwarf2_per_objfile::get_type_for_signatured_type,
9172 dwarf2_per_objfile::set_type_for_signatured_type): New.
9173 (get_signatured_type): Use new methods.
9174
8adb8487
TT
91752020-05-27 Tom Tromey <tom@tromey.com>
9176 Simon Marchi <simon.marchi@efficios.com>
9177
9178 * dwarf2/read.h (struct type_unit_group_unshareable): New.
9179 (struct dwarf2_per_objfile) <type_units>: New member.
9180 <get_type_unit_group_unshareable>: New method.
9181 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
9182 num_symtabs, symtabs>: Remove; move to
9183 type_unit_group_unshareable.
9184 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
9185 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
9186 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
9187
127bbf4b
SM
91882020-05-27 Simon Marchi <simon.marchi@efficios.com>
9189
9190 * dwarf2/read.h (struct dwarf2_per_cu_data):
9191 <dwarf2_per_objfile>: Remove.
9192 * dwarf2/read.c (create_cu_from_index_list): Don't assign
9193 dwarf2_per_objfile.
9194 (create_signatured_type_table_from_index): Likewise.
9195 (create_signatured_type_table_from_debug_names): Likewise.
9196 (create_debug_type_hash_table): Likewise.
9197 (fill_in_sig_entry_from_dwo_entry): Likewise.
9198 (create_type_unit_group): Likewise.
9199 (read_comp_units_from_section): Likewise.
9200 (create_cus_hash_table): Likewise.
9201
f6e649dd
SM
92022020-05-27 Simon Marchi <simon.marchi@efficios.com>
9203
9204 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
9205 dwarf2_per_cu_data::dwarf2_per_objfile.
9206 (compute_compunit_symtab_includes): Likewise.
9207 (dwarf2_cu::start_symtab): Likewise.
9208
aa66c379
SM
92092020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9210
9211 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
9212 parameter.
9213 * dwarf2/read.c (get_die_type_at_offset): Likewise.
9214 (read_namespace_alias): Update.
9215 (lookup_die_type): Update.
9216 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
9217 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
9218 Update.
9219 (disassemble_dwarf_expression): Update.
9220
120ce1b5
SM
92212020-05-27 Simon Marchi <simon.marchi@efficios.com>
9222
9223 * dwarf2/read.h (struct dwarf2_queue_item): Add
9224 dwarf2_per_objfile parameter, assign new parameter.
9225 <per_objfile>: New field.
9226 * dwarf2/read.c (free_one_cached_comp_unit): Add
9227 dwarf2_per_objfile parameter.
9228 (queue_comp_unit): Likewise.
9229 (dw2_do_instantiate_symtab): Update.
9230 (process_psymtab_comp_unit): Update.
9231 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
9232 (process_imported_unit_die): Update.
9233 (queue_and_load_dwo_tu): Update.
9234 (follow_die_offset): Update.
9235 (follow_die_sig_1): Update.
9236
9f47c707
SM
92372020-05-27 Simon Marchi <simon.marchi@efficios.com>
9238
9239 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
9240 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
9241 (read_call_site_scope): Assign per_objfile.
9242 (dwarf2_per_cu_data::objfile): Remove.
9243 * gdbtypes.h (struct call_site) <per_objfile>: New member.
9244 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
9245 dwarf2_per_objfile parameter.
9246 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
9247 dwarf2_per_objfile parameter.
9248 (dwarf_expr_reg_to_entry_parameter): Add output
9249 dwarf2_per_objfile parameter.
9250 (locexpr_get_frame_base): Update.
9251 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
9252 <push_dwarf_reg_entry_value>: Update.
9253 <call_site_to_target_addr>: Update.
9254 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
9255 parameter.
9256 (value_of_dwarf_reg_entry): Update.
9257 (rw_pieced_value): Update.
9258 (indirect_synthetic_pointer): Update.
9259 (dwarf2_evaluate_property): Update.
9260 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
9261 parameter.
9262 (locexpr_read_variable): Update.
9263 (locexpr_get_symbol_read_needs): Update.
9264 (loclist_read_variable): Update.
9265
14095eb3
SM
92662020-05-27 Simon Marchi <simon.marchi@efficios.com>
9267
9268 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9269 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9270 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9271 parameter.
9272 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9273 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9274 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9275 parameter.
9276 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
9277 sect_variable_value): Add dwarf2_per_objfile parameter.
9278 (class dwarf_evaluate_loc_desc) <dwarf_call,
9279 dwarf_variable_value>: Update.
9280 (fetch_const_value_from_synthetic_pointer): Add
9281 dwarf2_per_objfile parameter.
9282 (fetch_const_value_from_synthetic_pointer): Update.
9283 (coerced_pieced_ref): Update.
9284 (class symbol_needs_eval_context) <dwarf_call,
9285 dwarf_variable_value>: Update.
9286 (dwarf2_compile_expr_to_ax): Update.
9287
3c3cd3d4
SM
92882020-05-27 Simon Marchi <simon.marchi@efficios.com>
9289
9290 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
9291 parameter.
9292 (dwarf2_evaluate_loc_desc_full): Update.
9293
82ca3f51
SM
92942020-05-27 Simon Marchi <simon.marchi@efficios.com>
9295
9296 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
9297 parameter.
9298 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
9299 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
9300 dwarf2_per_objfile parameter.
9301 (decode_debug_loc_dwo_addresses): Likewise.
9302 (dwarf2_find_location_expression): Update.
9303 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
9304 (locexpr_describe_location_piece): Add dwarf2_per_objfile
9305 parameter.
9306 (disassemble_dwarf_expression): Add dwarf2_per_objfile
9307 parameter.
9308 (locexpr_describe_location_1): Likewise.
9309 (locexpr_describe_location): Update.
9310
4b167ea1
SM
93112020-05-27 Simon Marchi <simon.marchi@efficios.com>
9312
9313 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
9314 Remove.
9315 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
9316 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
9317 (dwarf2_compile_property_to_c): Update.
9318 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
9319 use text offset from objfile.
9320 (locexpr_tracepoint_var_ref): Update.
9321 (locexpr_generate_c_location): Update.
9322 (loclist_describe_location): Update.
9323 (loclist_tracepoint_var_ref): Update.
9324 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
9325 dwarf2_per_objfile parameter.
9326 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
9327 use text offset from objfile.
9328 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
9329
89b07335
SM
93302020-05-27 Simon Marchi <simon.marchi@efficios.com>
9331
9332 * dwarf2/expr.h (struct dwarf_expr_context)
9333 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
9334 <offset>: Remove.
9335 <per_objfile>: New member.
9336 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
9337 dwarf2_per_objfile parameter. Don't set offset, set
9338 per_objfile.
9339 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
9340 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
9341 a dwarf2_per_objfile object instead of an offset.
9342 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
9343 constructor.
9344 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
9345 to dwarf2_expr_executor constructor. Don't set offset.
9346 (dwarf2_fetch_cfa_info): Update.
9347 (struct dwarf2_frame_cache) <text_offset>: Remove.
9348 <per_objfile>: New field.
9349 (dwarf2_frame_cache): Update.
9350 (dwarf2_frame_prev_register): Update.
9351 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9352 <dwarf_evaluate_loc_desc>: Add constructor.
9353 (dwarf2_evaluate_loc_desc_full): Update.
9354 (dwarf2_locexpr_baton_eval): Update.
9355 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
9356 Add constructor.
9357 (dwarf2_loc_desc_get_symbol_read_needs): Update.
9358
293e7e51
SM
93592020-05-27 Simon Marchi <simon.marchi@efficios.com>
9360
9361 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
9362 addr_sized_int_type>: Move to dwarf2_cu.
9363 <int_type>: Move to dwarf2_per_objfile.
9364 (struct dwarf2_per_objfile) <int_type>: Move here.
9365 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
9366 addr_sized_int_type>: Move here.
9367 (read_func_scope): Update.
9368 (read_array_type): Update.
9369 (read_tag_string_type): Update.
9370 (attr_to_dynamic_prop): Update.
9371 (dwarf2_per_cu_data::int_type): Rename to...
9372 (dwarf2_per_objfile::int_type): ... this.
9373 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
9374 (dwarf2_cu::addr_sized_int_type): ... this.
9375 (read_subrange_type): Update.
9376 (dwarf2_per_cu_data::addr_type): Rename to...
9377 (dwarf2_cu::addr_type): ... this.
9378 (set_die_type): Update.
9379
64874a40
SM
93802020-05-27 Simon Marchi <simon.marchi@efficios.com>
9381
9382 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
9383 data through per_cu->cu.
9384
4ab09049
SM
93852020-05-27 Simon Marchi <simon.marchi@efficios.com>
9386
9387 * dwarf2/read.c (lookup_dwo_comp_unit): Change
9388 dwarf2_per_cu_data parameter fo dwarf2_cu.
9389 (lookup_dwo_type_unit): Likewise.
9390 (read_cutu_die_from_dwo): Likewise.
9391 (lookup_dwo_unit): Likewise.
9392 (open_and_init_dwo_file): Likewise.
9393 (lookup_dwo_cutu): Likewise.
9394 (lookup_dwo_comp_unit): Likewise.
9395 (lookup_dwo_type_unit): Likewise.
9396 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9397 (cutu_reader::cutu_reader): Update.
9398
47b14e86
SM
93992020-05-27 Simon Marchi <simon.marchi@efficios.com>
9400
9401 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
9402 parameter.
9403 (process_full_type_unit): Likewise.
9404 (process_queue): Update.
9405
43182c09
SM
94062020-05-27 Simon Marchi <simon.marchi@efficios.com>
9407
9408 * dwarf2/read.c (recursively_compute_inclusions): Add
9409 dwarf2_per_objfile parameter.
9410 (compute_compunit_symtab_includes): Likewise.
9411 (process_cu_includes): Update.
9412
7aa104c4
SM
94132020-05-27 Simon Marchi <simon.marchi@efficios.com>
9414
9415 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
9416 parameter.
9417 (create_type_unit_group): Update.
9418 (process_psymtab_comp_unit_reader): Update.
9419 (build_type_psymtabs_reader): Update.
9420
e3beb21d
SM
94212020-05-27 Simon Marchi <simon.marchi@efficios.com>
9422
9423 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
9424 object through m_this_cu->cu.
9425
d460f660
SM
94262020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9427
9428 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
9429 the info parameter.
9430 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
9431
ab432490
SM
94322020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9433
9434 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
9435 per_objfile parameter.
9436 (load_full_type_unit): Add per_objfile parameter.
9437 (read_signatured_type): Likewise.
9438 (load_full_comp_unit): Likewise.
9439 (load_cu): Likewise.
9440 (dw2_do_instantiate_symtab): Likewise.
9441 (dw2_get_file_names): Likewise.
9442 (dw2_map_symtabs_matching_filename): Update.
9443 (dw_expand_symtabs_matching_file_matcher): Update.
9444 (dw2_map_symbol_filenames): Update.
9445 (process_psymtab_comp_unit): Add per_objfile parameter.
9446 (build_type_psymtabs_1): Update.
9447 (process_skeletonless_type_unit): Update.
9448 (dwarf2_build_psymtabs_hard): Update.
9449 (load_partial_comp_unit): Add per_objfile parameter.
9450 (scan_partial_symbols): Update.
9451 (load_full_comp_unit): Add per_objfile parameter.
9452 (process_imported_unit_die): Update.
9453 (create_cus_hash_table): Update.
9454 (find_partial_die): Update.
9455 (dwarf2_read_addr_index): Update.
9456 (follow_die_offset): Update.
9457 (dwarf2_fetch_die_loc_sect_off): Update.
9458 (dwarf2_fetch_constant_bytes): Update.
9459 (dwarf2_fetch_die_type_sect_off): Update.
9460 (follow_die_sig_1): Update.
9461 (load_full_type_unit): Add per_objfile parameter.
9462 (read_signatured_type): Likewise.
9463
313bad1b
SM
94642020-05-27 Simon Marchi <simon.marchi@efficios.com>
9465
9466 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
9467 of objfile_name.
9468
c3699833
SM
94692020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9470
9471 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
9472 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9473 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
9474 field.
9475 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9476 (create_cus_from_index): Update.
9477 (dwarf2_read_gdb_index): Update.
9478 (create_cus_from_debug_names): Update.
9479 (dwarf2_read_debug_names): Update.
9480 (get_abbrev_section_for_cu): Update.
9481 (create_all_comp_units): Update.
9482 (read_attribute_value): Update.
9483 (get_debug_line_section): Update.
9484 * dwarf2/index-cache.c (index_cache::store): Update.
9485 * dwarf2/index-write.c (save_gdb_index_command): Update.
9486 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
9487
1859c670
SM
94882020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9489
9490 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
9491 member.
9492 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
9493 dwarf2_per_cu_data::per_bfd.
9494 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
9495 (create_type_unit_group): Likewise.
9496 (queue_comp_unit): Remove reference to
9497 per_cu->dwarf2_per_objfile.
9498 (maybe_queue_comp_unit): Likewise.
9499 (fill_in_sig_entry_from_dwo_entry): Assign new field.
9500 (create_cus_hash_table): Assign new field.
9501
5e22e966
SM
95022020-05-27 Simon Marchi <simon.marchi@efficios.com>
9503
9504 * dwarf2/read.c: Replace
9505 dwarf2_cu->per_cu->dwarf2_per_objfile references with
9506 dwarf2_cu->per_objfile throughout.
9507
97a1449a
SM
95082020-05-27 Simon Marchi <simon.marchi@efficios.com>
9509
9510 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
9511 parameter, don't use per_cu->dwarf2_per_objfile.
9512 (dw2_instantiate_symtab): Likewise.
9513 (dw2_find_last_source_symtab): Update.
9514 (dw2_map_expand_apply): Update.
9515 (dw2_lookup_symbol): Update.
9516 (dw2_expand_symtabs_for_function): Update.
9517 (dw2_expand_all_symtabs): Update.
9518 (dw2_expand_symtabs_with_fullname): Update.
9519 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
9520 don't use per_cu->dwarf2_per_objfile.
9521 (dw2_expand_marked_cus): Update.
9522 (dw2_find_pc_sect_compunit_symtab): Update.
9523 (dw2_debug_names_lookup_symbol): Update.
9524 (dw2_debug_names_expand_symtabs_for_function): Update.
9525 (dw2_debug_names_map_matching_symbols): Update.
9526 (dwarf2_psymtab::expand_psymtab): Update.
9527
9e021579
SM
95282020-05-27 Simon Marchi <simon.marchi@efficios.com>
9529
9530 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
9531 <per_objfile>: New member.
9532 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
9533 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
9534 call to dwarf2_cu.
9535 (cutu_reader::cutu_reader): Update.
9536 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
9537
ae090bdb
SM
95382020-05-27 Simon Marchi <simon.marchi@efficios.com>
9539
9540 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
9541 struct dwarf2_per_objfile.
9542 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
9543 dwarf2_per_bfd.
9544 * dwarf2/read.c (set_die_type): Update.
9545 (get_die_type_at_offset): Update.
9546
af758d11
SM
95472020-05-27 Tom Tromey <tom@tromey.com>
9548 Simon Marchi <simon.marchi@efficios.com>
9549
9550 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
9551 method.
9552 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
9553 get_symtab, set_symtab>: New methods.
9554 <m_symtabs>: New field.
9555 (struct dwarf2_psymtab): Derive from partial_symtab.
9556 <readin_p, get_compunit_symtab>: Declare methods.
9557 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
9558 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
9559 New methods.
9560 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
9561 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
9562 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
9563 (dw2_symtab_iter_next, dw2_print_stats)
9564 (dw2_expand_symtabs_with_fullname)
9565 (dw2_expand_symtabs_matching_one)
9566 (dw_expand_symtabs_matching_file_matcher)
9567 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
9568 (dw2_debug_names_iterator::next)
9569 (dw2_debug_names_map_matching_symbols)
9570 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
9571 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
9572 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
9573 New methods.
9574 (get_compunit_symtab, process_full_comp_unit)
9575 (process_full_type_unit): Update.
9576 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
9577
5989a64e
SM
95782020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9579
9580 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
9581 then introduce a new dwarf2_per_objfile type.
9582 <read_line_string>: Move to the new dwarf2_per_objfile type.
9583 <objfile>: Likewise.
9584 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
9585 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
9586 dwarf2_per_objfile->per_bfd.
9587 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
9588 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
9589 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
9590 (dwarf2_per_bfd::free_cached_comp_units): ... this.
9591 (dwarf2_has_info): Allocate dwarf2_per_bfd.
9592 (dwarf2_per_objfile::locate_sections): Rename to...
9593 (dwarf2_per_bfd::locate_sections): ... this.
9594 (dwarf2_per_objfile::get_cutu): Rename to...
9595 (dwarf2_per_bfd::get_cutu): ... this.
9596 (dwarf2_per_objfile::get_cu): Rename to...
9597 (dwarf2_per_bfd::get_cu): ... this.
9598 (dwarf2_per_objfile::get_tu): Rename to...
9599 (dwarf2_per_bfd::get_tu): ... this.
9600 (dwarf2_per_objfile::allocate_per_cu): Rename to...
9601 (dwarf2_per_bfd::allocate_per_cu): ... this.
9602 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
9603 (dwarf2_per_bfd::allocate_signatured_type): ... this.
9604 (get_gdb_index_contents_ftype): Change parameter from
9605 dwarf2_per_objfile to dwarf2_per_bfd.
9606 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
9607 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
9608
a50264ba
TT
96092020-05-27 Tom Tromey <tom@tromey.com>
9610 Simon Marchi <simon.marchi@efficios.com>
9611
9612 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
9613 (allocate_piece_closure): Set "per_objfile" member.
9614 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
9615 (locexpr_describe_location, loclist_describe_location): Use new
9616 member.
9617 * dwarf2/read.c (read_call_site_scope)
9618 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
9619 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
9620 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
9621 handle_data_member_location): Set per_objfile member.
9622 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
9623 member.
9624 (struct dwarf2_loclist_baton) <per_objfile>: New member.
9625
d3473f0c
TT
96262020-05-27 Tom Tromey <tom@tromey.com>
9627
9628 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
9629 allocate_signatured_type>: Declare new methods.
9630 <m_num_psymtabs>: New member.
9631 (struct dwarf2_per_cu_data) <index>: New member.
9632 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
9633 (dwarf2_per_objfile::allocate_signatured_type): New methods.
9634 (create_cu_from_index_list): Use allocate_per_cu.
9635 (create_signatured_type_table_from_index)
9636 (create_signatured_type_table_from_debug_names)
9637 (create_debug_type_hash_table, add_type_unit)
9638 (read_comp_units_from_section): Use allocate_signatured_type.
9639
5717c425
TT
96402020-05-27 Tom Tromey <tom@tromey.com>
9641
9642 * psymtab.c (partial_map_expand_apply)
9643 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9644 (psym_lookup_global_symbol_language)
9645 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9646 (psym_print_stats, psym_expand_symtabs_for_function)
9647 (psym_map_symbol_filenames, psym_map_matching_symbols)
9648 (psym_expand_symtabs_matching)
9649 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9650 (maintenance_check_psymtabs): Update.
9651 * psympriv.h (struct partial_symtab) <readin_p,
9652 get_compunit_symtab>: Add objfile parameter.
9653 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
9654 Likewise.
9655 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
9656 get_compunit_symtab>: Likewise.
9657 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
9658
45940949
TT
96592020-05-27 Tom Tromey <tom@tromey.com>
9660
9661 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
9662 member.
9663 * dwarf2/read.c (delete_file_name_entry): Fix comment.
9664 (create_cu_from_index_list)
9665 (create_signatured_type_table_from_index)
9666 (create_signatured_type_table_from_debug_names)
9667 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
9668 (dwarf2_create_include_psymtab)
9669 (create_debug_type_hash_table, add_type_unit)
9670 (create_type_unit_group, read_comp_units_from_section)
9671 (dwarf2_compute_name, create_cus_hash_table)
9672 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9673 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
9674 obstack.
9675 (dw2_get_real_path): Likewise. Change argument to
9676 dwarf2_per_objfile.
9677
f8c6d152
LM
96782020-05-27 Luis Machado <luis.machado@linaro.org>
9679
9680 PR tdep/26000
9681 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
9682 for ldrd (immediate).
9683
e98d2e6d
PW
96842020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9685
9686 * command.h: Add comment giving the name of class_tui.
9687 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
9688 create the fake command for the help for class_tui.
9689
53a47a3e
TT
96902020-05-26 Tom Tromey <tromey@adacore.com>
9691
9692 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
9693 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
9694 (val_atr): New function.
9695 (value_val_atr): Use it.
9696 * ada-valprint.c (print_optional_low_bound): Change low bound
9697 handling for enums.
9698 (val_print_packed_array_elements): Don't call discrete_position.
9699 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
9700 discrete_position for enum types.
9701 * language.c (default_print_array_index): Change type.
9702 * language.h (struct language_defn) <la_print_array_index>: Add
9703 index_type parameter, change type of index_value.
9704 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
9705 (default_print_array_index): Update.
9706 * valprint.c (maybe_print_array_index): Don't call
9707 value_from_longest. Update.
9708 (value_print_array_elements): Don't call discrete_position.
9709
0bc2354b
TT
97102020-05-26 Tom Tromey <tromey@adacore.com>
9711
9712 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
9713 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
9714
1218a4bf
CDA
97152020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
9716
9717 PR gdb/13519
9718 * avr-tdep.c (avr_integer_to_address): Return data or code
9719 address accordingly to the second 'type' argument of the
9720 function.
9721
92651b1d
MW
97222020-05-25 Michael Weghorn <m.weghorn@posteo.de>
9723
9724 * infcmd.c, inferior.h: (construct_inferior_arguments):
9725 Moved function from here to gdbsupport/common-inferior.{h,cc}
9726
0a4f5f8c
TT
97272020-05-23 Tom Tromey <tom@tromey.com>
9728
9729 Revert commit eca1f90c:
9730 * NEWS: Remove entry for completion styling.
9731 * completer.c (_rl_completion_prefix_display_length): Move
9732 declaration later.
9733 (gdb_fnprint): Revert.
9734 (gdb_display_match_list_1): Likewise.
9735 * cli/cli-style.c (completion_prefix_style)
9736 (completion_difference_style, completion_suffix_style): Remove.
9737 (_initialize_cli_style): Revert.
9738 * cli/cli-style.h (completion_prefix_style)
9739 (completion_difference_style, completion_suffix_style): Don't
9740 declare.
9741
e08bd6c5
PA
97422020-05-24 Pedro Alves <palves@redhat.com>
9743
9744 * symtab.c (completion_list_add_name): Return boolean indication
9745 of whether the symbol matched.
9746 (completion_list_add_symbol): Don't try to remove C++ aliases if
9747 the symbol didn't match in the first place.
9748 * symtab.h (completion_list_add_name): Return bool.
9749
ceacbf6e
SM
97502020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
9751
9752 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
9753 type::field.
9754
26f16254
JB
97552020-05-23 Joel Brobecker <brobecker@adacore.com>
9756
9757 GDB 9.2 released.
9758
eca1f90c
TT
97592020-05-23 Tom Tromey <tom@tromey.com>
9760
9761 * NEWS: Add entry for completion styling.
9762 * completer.c (_rl_completion_prefix_display_length): Move
9763 declaration earlier.
9764 (gdb_fnprint): Use completion_style.
9765 (gdb_display_match_list_1): Likewise.
9766 * cli/cli-style.c (completion_prefix_style)
9767 (completion_difference_style, completion_suffix_style): New
9768 globals.
9769 (_initialize_cli_style): Register new globals.
9770 * cli/cli-style.h (completion_prefix_style)
9771 (completion_difference_style, completion_suffix_style): Declare.
9772
51e2cfa2
PA
97732020-05-23 Pedro Alves <palves@redhat.com>
9774
9775 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
9776 (parse_escape): Use ISDIGIT instead of isdigit.
9777 (puts_debug): Use gdb_isprint instead of isprint.
9778 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
9779 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
9780 ISSPACE instead of isspace.
9781 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
9782 instead of isspace.
9783 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
9784 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
9785 instead of isxdigit and ISDIGIT instead of isdigit.
9786
80fc5e77
SM
97872020-05-22 Simon Marchi <simon.marchi@efficios.com>
9788
9789 * gdbtypes.h (struct type) <field>: New method.
9790 (TYPE_FIELDS): Remove, replace all uses with either type::fields
9791 or type::field.
9792
3cabb6b0
SM
97932020-05-22 Simon Marchi <simon.marchi@efficios.com>
9794
9795 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
9796 (TYPE_FIELDS): Use type::fields. Change all call sites that
9797 modify the propery to use type::set_fields instead.
9798
1f704f76
SM
97992020-05-22 Simon Marchi <simon.marchi@efficios.com>
9800
9801 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
9802 type::num_fields instead.
9803
5e33d5f4
SM
98042020-05-22 Simon Marchi <simon.marchi@efficios.com>
9805
9806 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
9807 methods.
9808 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
9809 that modify the number of fields to use type::set_num_fields
9810 instead.
9811
9392ebb3
TT
98122020-05-22 Tom Tromey <tromey@adacore.com>
9813
9814 * compile/compile-object-load.h (munmap_list_free): Don't
9815 declare.
9816
7c13f4e8
AB
98172020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
9818
9819 * annotate.c (annotate_source_line): Update return type, add call
9820 to update current symtab and line.
9821 * annotate.h (annotate_source_line): Update return type, and
9822 extend header comment.
9823 * source.c (info_line_command): Check annotation_level before
9824 calling annotate_source_line.
9825 * stack.c (print_frame_info): If calling annotate_source_line
9826 returns true, then don't print any other source line information.
9827
aa370940
SM
98282020-05-21 Simon Marchi <simon.marchi@efficios.com>
9829
9830 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
9831
84d53fa9
SM
98322020-05-21 Simon Marchi <simon.marchi@efficios.com>
9833
9834 * coffread.c (patch_type): Remove NULL check before xfree.
9835 * corefile.c (set_gnutarget): Likewise.
9836 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
9837 * exec.c (build_section_table): Likewise.
9838 * remote.c (remote_target::pass_signals): Likewise.
9839 * utils.c (n_spaces): Likewise.
9840 * cli/cli-script.c (document_command): Likewise.
9841 * i386-windows-tdep.c (core_process_module_section): Likewise.
9842 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
9843
9d428aae
SM
98442020-05-20 Simon Marchi <simon.marchi@efficios.com>
9845
9846 * symfile.c (reread_symbols): Clear objfile's section_offsets
9847 vector and section indices, re-compute them by calling
9848 sym_offsets.
9849
250106a7
TT
98502020-05-20 Tom Tromey <tromey@adacore.com>
9851
9852 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 9853 (desc_one_bound, desc_index_type): Compute field name.
250106a7 9854
9a0bacfb
TV
98552020-05-20 Tom de Vries <tdevries@suse.de>
9856
9857 PR symtab/25833
9858 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
9859
7b958a48
AM
98602020-05-20 Alan Modra <amodra@gmail.com>
9861
9862 PR 25993
9863 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
9864 bfd_set_filename.
9865 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
9866 passed to bfd_set_filename.
9867 * symfile-mem.c (add_vsyscall_page): Likewise for string
9868 passed to symbol_file_add_from_memory.
9869 (symbol_file_add_from_memory): Make name param a const char* and
9870 don't strdup.
9871
c7e97679
AM
98722020-05-20 Alan Modra <amodra@gmail.com>
9873
9874 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
9875 rather than accessing bfd->filename directly.
9876 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
9877 and use bfd_section_name.
9878 * dwarf2/frame.c (decode_frame_entry): Likewise.
9879 * exec.c (exec_set_section_address): Likewise.
9880 * solib-aix.c (solib_aix_bfd_open): Likewise.
9881 * stap-probe.c (get_stap_base_address): Likewise.
9882 * symfile.c (reread_symbols): Likewise.
9883
563c591b
TT
98842020-05-19 Tom Tromey <tromey@adacore.com>
9885
9886 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
9887
f408d82c
SM
98882020-05-19 Simon Marchi <simon.marchi@efficios.com>
9889
9890 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
9891
98c59b52
PA
98922020-05-19 Pedro Alves <palves@redhat.com>
9893
9894 * NEWS (set exec-file-mismatch): Adjust entry.
9895 * exec.c: Include "build-id.h".
9896 (validate_exec_file): Try to match build IDs instead of filenames.
9897 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
9898 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
9899 and pass down 'warn_if_slow'.
9900 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
9901 gdb_bfd_open_closure to pass it down.
9902 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
9903
4111f652
PA
99042020-05-19 Pedro Alves <palves@redhat.com>
9905
9906 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
9907 * target.c (target_fileio_open_1): Rename to target_fileio_open
9908 and make extern. Use bool.
9909 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
9910 (target_fileio_read_alloc_1): Adjust.
9911 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
9912 (target_fileio_open_warn_if_slow): Delete declaration.
9913
ad80db5b
PA
99142020-05-19 Pedro Alves <palves@redhat.com>
9915
9916 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
9917 Adjust all callers.
9918
1d6ce4d3
YS
99192020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
9920
9921 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
9922 whether disp is negative.
9923
9005fbbb
SM
99242020-05-19 Simon Marchi <simon.marchi@efficios.com>
9925
9926 * symfile.h (struct symfile_segment_data)
9927 <~symfile_segment_data>: Remove.
9928 <segment_info>: Change to std::vector.
9929 * symfile.c (default_symfile_segments): Update.
9930 * elfread.c (elf_symfile_segments): Update.
9931
68b888ff
SM
99322020-05-19 Simon Marchi <simon.marchi@efficios.com>
9933
9934 * symfile.h (struct symfile_segment_data) <struct segment>: New.
9935 <segments>: New.
9936 <segment_bases, segment_sizes>: Remove.
9937 * symfile.c (default_symfile_segments): Update.
9938 * elfread.c (elf_symfile_segments): Update.
9939 * remote.c (remote_target::get_offsets): Update.
9940 * solib-target.c (solib_target_relocate_section_addresses):
9941 Update.
9942
62982abd
SM
99432020-05-19 Simon Marchi <simon.marchi@efficios.com>
9944
9945 * symfile.h (struct symfile_segment_data): Initialize fields.
9946 <~symfile_segment_data>: Add.
9947 (symfile_segment_data_up): New.
9948 (struct sym_fns) <sym_segments>: Return a
9949 symfile_segment_data_up.
9950 (default_symfile_segments): Return a symfile_segment_data_up.
9951 (free_symfile_segment_data): Remove.
9952 (get_symfile_segment_data): Return a symfile_segment_data_up.
9953 * symfile.c (default_symfile_segments): Likewise.
9954 (get_symfile_segment_data): Likewise.
9955 (free_symfile_segment_data): Remove.
9956 (symfile_find_segment_sections): Update.
9957 * elfread.c (elf_symfile_segments): Return a
9958 symfile_segment_data_up.
9959 * remote.c (remote_target::get_offsets): Update.
9960 * solib-target.c (solib_target_relocate_section_addresses):
9961 Update.
9962 * symfile-debug.c (debug_sym_segments): Return a
9963 symfile_segment_data_up.
9964
7f204339
RO
99652020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9966
e52a0f1b
RO
9967 PR build/25981
9968 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
9969 Hardcode register numbers.
9970
7f204339
RO
9971 PR build/25981
9972 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
9973 procfs_find_LDT_entry): Remove.
9974 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
9975 procfs_find_LDT_entry): Remove.
9976 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
9977 Remove.
9978
7f32a4d5
PA
99792020-05-17 Pedro Alves <palves@redhat.com>
9980 Andrew Burgess <andrew.burgess@embecosm.com>
9981 Keno Fischer <keno@juliacomputing.com>
9982
9983 PR gdb/25741
9984 * breakpoint.c (build_target_condition_list): Update comments.
9985 (build_target_command_list): Update comments and skip matching
9986 locations.
9987 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
9988 a separate function. Simplify "set breakpoint auto-hw off"
9989 handling.
9990 (insert_breakpoints): Update comment.
9991 (tracepoint_locations_match): New parameter. For breakpoints,
9992 compare location types too, if the caller wants to.
9993 (handle_automatic_hardware_breakpoints): New functions.
9994 (bp_location_is_less_than): Also sort by location type and
9995 hardware breakpoint length.
9996 (update_global_location_list): Handle "set breakpoint auto-hw on"
9997 here.
9998 (update_breakpoint_locations): Ask breakpoint_locations_match to
9999 ignore location types.
10000
7d93a1e0
SM
100012020-05-16 Simon Marchi <simon.marchi@efficios.com>
10002
10003 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
10004 type::name instead.
10005
d0e39ea2
SM
100062020-05-16 Simon Marchi <simon.marchi@efficios.com>
10007
10008 * gdbtypes.h (struct type) <name, set_name>: New methods.
10009 (TYPE_CODE): Use type::name. Change all call sites used to set
10010 the name to use type::set_name instead.
10011
2dab0c7b
TT
100122020-05-16 Tom Tromey <tom@tromey.com>
10013
10014 * top.c (quit_force): Update.
10015 * infrun.c (handle_no_resumed): Update.
10016 * top.h (all_uis): New function.
10017 (ALL_UIS): Remove.
10018
59f7bd8d
SM
100192020-05-16 Simon Marchi <simon.marchi@efficios.com>
10020
10021 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
10022
9bf058f0
PA
100232020-05-16 Pedro Alves <palves@redhat.com>
10024
10025 * ia64-linux-nat.c
10026 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
10027 Declare method.
10028 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
10029
8f86ae1a
SM
100302020-05-15 Simon Marchi <simon.marchi@efficios.com>
10031
10032 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
10033 (sparc64_adi_info): Likewise.
10034
d6bc0792
TT
100352020-05-15 Tom Tromey <tom@tromey.com>
10036
10037 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
10038 block_objfile.
10039 (lookup_objfile_from_block): Remove.
10040 (lookup_symbol_in_block, lookup_symbol_in_static_block)
10041 (lookup_global_symbol): Use block_objfile.
10042 * symtab.h (lookup_objfile_from_block): Don't declare.
10043 * printcmd.c (clear_dangling_display_expressions): Use
10044 block_objfile.
10045 * parse.c (operator_check_standard): Use block_objfile.
10046
8c14c3a3
TT
100472020-05-15 Tom Tromey <tom@tromey.com>
10048
10049 * language.c (language_alloc_type_symbol): Set
10050 SYMBOL_SECTION.
10051 * symtab.c (initialize_objfile_symbol): Remove.
10052 (allocate_symbol): Remove.
10053 (allocate_template_symbol): Remove.
10054 * dwarf2/read.c (fixup_go_packaging): Use "new".
10055 (new_symbol): Use "new".
10056 (read_variable): Don't call initialize_objfile_symbol. Use
10057 "new".
10058 (read_func_scope): Use "new".
10059 * xcoffread.c (process_xcoff_symbol): Don't call
10060 initialize_objfile_symbol.
10061 (SYMBOL_DUP): Remove.
10062 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
10063 "new".
10064 * symtab.h (allocate_symbol, initialize_objfile_symbol)
10065 (allocate_template_symbol): Don't declare.
10066 (struct symbol): Add copy constructor. Change defaults.
10067 * jit.c (finalize_symtab): Use "new".
10068 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
10069 Use "new".
10070 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
10071 (common_block_end): Use "new".
10072 * mdebugread.c (parse_symbol): Use "new".
10073 (new_symbol): Likewise.
10074
5b4a1a8d
PW
100752020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10076
10077 * NEWS: Mention changes to help and apropos.
10078
57b4f16e
PW
100792020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10080
10081 * command.h (enum command_class): Improve comments, document
10082 that class_alias is for user-defined aliases, give the class
10083 name for each class, remove unused class_xdb.
10084 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
10085 * breakpoint.c (_initialize_breakpoint): Replace class_alias
10086 by a precise class.
10087 * infcmd.c (_initialize_infcmd): Likewise.
10088 * reverse.c (_initialize_reverse): Likewise.
10089 * stack.c (_initialize_stack): Likewise.
10090 * symfile.c (_initialize_symfile): Likewise.
10091 * tracepoint.c (_initialize_tracepoint): Likewise.
10092
7c05caf7
PW
100932020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10094
10095 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
10096 when their aliased command is traversed.
10097 (help_cmd): Add fput_command_names_styled call to
10098 output command name and aliases when command has an alias.
10099
3b3aaacb
PW
101002020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10101
10102 * cli/cli-decode.h (help_cmd_list): Remove declaration.
10103 * cli/cli-decode.c (help_cmd_list): Declare as static,
10104 remove prefix argument, use bool for recurse arg, rework to show the aliases of
10105 a command together with the command.
10106 (fput_command_name_styled, fput_command_names_styled): New functions.
10107 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
10108 fput_command_name_styled.
10109 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
10110 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
10111
7aa1b46f
PW
101122020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10113
10114 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
10115 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
10116 * command.h (cmd_show_list): Likewise.
10117 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
10118 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
10119
89bcba74
PW
101202020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10121
10122 * unittests/command-def-selftests.c (traverse_command_structure):
10123 Verify all commands of a list have the same prefix command and
10124 that only the top cmdlist commands have a null prefix.
10125
3f4d92eb
PW
101262020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10127
10128 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
10129 as prefix, not one of its aliases.
10130 (set_cmd_prefix): Remove.
10131 (do_add_cmd): Centralize the setting of the prefix of a command, when
10132 command is defined after its full chain of prefix commands.
10133 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
10134 (add_setshow_cmd_full): Likewise.
10135 (update_prefix_field_of_prefixed_commands): New function.
10136 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
10137 update_prefix_field_of_prefixed_commands.
10138 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
10139 addresses of remote_set_cmdlist and remote_show_cmdlist given
10140 as argument, not the address of an argument.
10141 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
10142 * gdb/remote.c (_initialize_remote): Likewise.
10143
0605465f
PW
101442020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10145
10146 * cli/cli-cmds.c (alias_command): Check for an existing alias
10147 using lookup_cmd_composition, as valid_command_p is too strict
10148 and forbids aliases that are the prefix of an existing alias
10149 or command.
10150 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
10151 command is properly recognised as a valid command.
10152
58e6ac70
PW
101532020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10154
10155 * unittests/help-doc-selftests.c: Rename to
10156 unittests/command-def-selftests.c
10157 * unittests/command-def-selftests.c (help_doc_tests): Update some
10158 comments.
10159 (command_structure_tests, traverse_command_structure): New namespace
10160 and function.
10161 (command_structure_invariants_tests): New function.
10162 (_initialize_command_def_selftests) Renamed from
10163 _initialize_help_doc_selftests, register command_structure_invariants
10164 selftest.
10165
a7b9ceb8
PW
101662020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10167
10168 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
10169 an alias of 'show'.
10170
b2188a06
JB
101712020-05-15 Joel Brobecker <brobecker@adacore.com>
10172
10173 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
10174 ada_is_fixed_point_type. Update all callers.
10175 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
10176 all callers.
10177 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
10178 Update all callers.
10179 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
10180 print_fixed_point_type. Update all callers.
10181 * ada-valprint.c (ada_value_print_num): Replace call to
10182 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
10183
a51951c2
KB
101842020-05-14 Kevin Buettner <kevinb@redhat.com>
10185
10186 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
10187 processors.
10188 (cpu_supports_bts): Add CV_AMD case.
10189
29d6859f
LM
101902020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
10191 Simon Marchi <simon.marchi@efficios.com>
10192
10193 * infrun.c (stop_all_threads): Collect multiple wait events at
10194 each pass.
10195
78134374
SM
101962020-05-14 Simon Marchi <simon.marchi@efficios.com>
10197
10198 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
10199 type::code instead.
10200
67607e24
SM
102012020-05-14 Simon Marchi <simon.marchi@efficios.com>
10202
10203 * gdbtypes.h (struct type) <code, set_code>: New methods.
10204 (TYPE_CODE): Use type::code. Change all call sites used to set
10205 the code to use type::set_code instead.
10206
a05575d3
TBA
102072020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10208 Tom de Vries <tdevries@suse.de>
10209 Pedro Alves <palves@redhat.com>
10210
10211 PR threads/25478
10212 * infrun.c (stop_all_threads): Do NOT ignore
10213 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
10214 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
10215 received.
10216 (handle_no_resumed): Remove code handling a live inferior with no
10217 threads.
10218 * remote.c (has_single_non_exited_thread): New.
10219 (remote_target::update_thread_list): Do not delete a thread if is
10220 the last thread of the process.
10221 * thread.c (thread_select): Call delete_exited_threads instead of
10222 prune_threads.
10223
6ad82919
TBA
102242020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10225
10226 * infrun.c (stop_all_threads): Enable/disable thread events of all
10227 targets. Move a debug message denoting the end of the function
10228 into the SCOPED_EXIT block.
10229
d890404b
TBA
102302020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10231
10232 * process-stratum-target.h: Include <set>.
10233 (all_non_exited_process_targets, switch_to_target_no_thread): New
10234 function declarations.
10235 * process-stratum-target.c (all_non_exited_process_targets)
10236 (switch_to_target_no_thread): New function implementations.
10237
293b3ebc
TBA
102382020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10239
10240 * infrun.c (handle_inferior_event): Extract out a piece of code
10241 into...
10242 (mark_non_executing_threads): ...this new function.
10243
7ca9b62a
TBA
102442020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10245
10246 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
10247 use.
10248
fc75c28b
TBA
102492020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10250
10251 * regcache.c (regcache_read_pc_protected): New function
10252 implementation that returns 0 if the PC cannot read via
10253 'regcache_read_pc'.
10254 * infrun.c (proceed): Call 'regcache_read_pc_protected'
10255 instead of 'regcache_read_pc'.
10256 (keep_going_pass_signal): Ditto.
10257
a89febbd
TT
102582020-05-13 Tom Tromey <tromey@adacore.com>
10259
10260 * ada-lang.c (align_value): Remove.
10261 (ada_template_to_fixed_record_type_1): Use align_up.
10262
f7e23710
TBA
102632020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10264
10265 * async-event.c: Update the copyright year.
10266 * async-event.h: Update the copyright year.
10267
02ff80c2
SM
102682020-05-12 Simon Marchi <simon.marchi@efficios.com>
10269
10270 * objfiles.h (is_addr_in_objfile,
10271 shared_objfile_contains_address_p): Return bool.
10272 * objfile.c (is_addr_in_objfile,
10273 shared_objfile_contains_address_p): Return bool.
10274
4fd6c7e8
TT
102752020-05-11 Tom Tromey <tromey@adacore.com>
10276
10277 * cli/cli-cmds.c (info_command): Restore.
10278 (_initialize_cli_cmds): Use add_prefix_command for "info".
10279 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
10280
5eb68a39
TT
102812020-05-11 Tom Tromey <tromey@adacore.com>
10282
10283 * ada-lang.c (ada_value_primitive_field): Now public.
10284 * ada-lang.h (ada_value_primitive_field): Declare.
10285 * ada-valprint.c (print_field_values): Use
10286 ada_value_primitive_field for wrapper fields.
10287
7666722f
TV
102882020-05-11 Tom de Vries <tdevries@suse.de>
10289
10290 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
10291 MODULE_DOMAIN.
10292
3ee6bb11
TV
102932020-05-11 Tom de Vries <tdevries@suse.de>
10294
10295 PR symtab/25941
10296 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
10297 with length 0, if not gdb-produced.
10298 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
10299
43434996
TV
103002020-05-09 Tom de Vries <tdevries@suse.de>
10301
10302 PR gdb/25955
10303 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
10304 calculation.
10305
2f78cffc
TT
103062020-05-09 Tom Tromey <tom@tromey.com>
10307
10308 * top.c (server_command): Now bool.
10309 * top.h (server_command): Now bool.
10310
4f7bc5ed
TT
103112020-05-08 Tom Tromey <tromey@adacore.com>
10312
10313 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
10314 already being processed.
10315
8be4b118
TT
103162020-05-08 Tom Tromey <tom@tromey.com>
10317
10318 * printcmd.c (struct display) <next>: Remove.
10319 <display>: New constructor.
10320 <exp_string>: Now a std::string.
10321 <enabled_p>: Now a bool.
10322 (display_number): Move definition earlier.
10323 (displays): Rename from display_chain. Now a std::vector.
10324 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
10325 (display_command): Update.
10326 (do_one_display, disable_display)
10327 (enable_disable_display_command, do_enable_disable_display):
10328 Update.
10329 (free_display): Remove.
10330 (clear_displays): Rewrite.
10331 (delete_display): Update.
10332 (map_display_numbers): Use function_view. Remove "data"
10333 parameter. Update.
10334 (do_delete_display): Remove.
10335 (undisplay_command): Update.
10336 (do_one_display, do_displays, disable_display)
10337 (info_display_command): Update.
10338 (do_enable_disable_display): Remove.
10339 (enable_disable_display_command)
10340 (clear_dangling_display_expressions): Update.
10341
94c93c35
TT
103422020-05-08 Tom Tromey <tom@tromey.com>
10343
10344 * symtab.c (set_symbol_cache_size)
10345 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
10346 (maintenance_print_symbol_cache_statistics): Update.
10347 * symmisc.c (print_symbol_bcache_statistics)
10348 (print_objfile_statistics, maintenance_print_objfiles)
10349 (maintenance_info_symtabs, maintenance_check_symtabs)
10350 (maintenance_expand_symtabs, maintenance_info_line_tables):
10351 Update.
10352 * symfile-debug.c (set_debug_symfile): Update.
10353 * source.c (forget_cached_source_info): Update.
10354 * python/python.c (gdbpy_progspaces): Update.
10355 * psymtab.c (maintenance_info_psymtabs): Update.
10356 * probe.c (parse_probes): Update.
10357 * linespec.c (iterate_over_all_matching_symtabs)
10358 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
10359 * guile/scm-progspace.c (gdbscm_progspaces): Update.
10360 * exec.c (exec_target::close): Update.
10361 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
10362 * breakpoint.c (print_one_breakpoint_location)
10363 (create_longjmp_master_breakpoint)
10364 (create_std_terminate_master_breakpoint): Update.
10365 * progspace.c (program_spaces): Now a std::vector.
10366 (maybe_new_address_space): Update.
10367 (add_program_space): Remove.
10368 (program_space::program_space): Update.
10369 (remove_program_space): Update.
10370 (number_of_program_spaces): Remove.
10371 (print_program_space, update_address_spaces): Update.
10372 * progspace.h (program_spaces): Change type.
10373 (ALL_PSPACES): Remove.
10374 (number_of_program_spaces): Don't declare.
10375 (struct program_space) <next>: Remove.
10376
a1fd1ac9
TT
103772020-05-08 Tom Tromey <tom@tromey.com>
10378
10379 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
10380 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
10381 (enable_break): Update.
10382 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
10383 (frv_fdpic_find_canonical_descriptor): Update.
10384 (frv_fetch_objfile_link_map): Update.
10385 * progspace.c (program_space::free_all_objfiles): Update.
10386 (program_space::solibs): New method.
10387 * progspace.h (struct program_space) <solibs>: New method.
10388 * solist.h (master_so_list): Don't declare.
10389 (ALL_SO_LIBS): Remove.
10390 * solib.h (so_list_head): Remove.
10391 (update_solib_list): Update comment.
10392 * solib.c (master_so_list): Remove.
10393 (solib_used, update_solib_list, solib_add)
10394 (info_sharedlibrary_command, clear_solib)
10395 (reload_shared_libraries_1, remove_user_added_objfile): Update.
10396
38eae084
TT
103972020-05-08 Tom Tromey <tom@tromey.com>
10398
10399 * extension.c (extension_languages): Now a std::array.
10400 (ALL_EXTENSION_LANGUAGES): Remove.
10401 (get_ext_lang_defn, get_ext_lang_of_file)
10402 (eval_ext_lang_from_control_command): Update.
10403 (finish_ext_lang_initialization)
10404 (auto_load_ext_lang_scripts_for_objfile)
10405 (ext_lang_type_printers::ext_lang_type_printers)
10406 (apply_ext_lang_type_printers)
10407 (ext_lang_type_printers::~ext_lang_type_printers)
10408 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
10409 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
10410 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
10411 (get_matching_xmethod_workers, ext_lang_colorize)
10412 (ext_lang_before_prompt): Update.
10413 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
10414
596dc4ad
TT
104152020-05-08 Tom Tromey <tom@tromey.com>
10416
10417 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
10418 overload.
10419 <swap_string, m_string>: Remove.
10420 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
10421 Update.
10422 * stabsread.c (define_symbol, read_type): Update.
10423 * linespec.c (find_linespec_symbols): Update.
10424 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
10425 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
10426 * dbxread.c (read_dbx_symtab): Update.
10427 * cp-support.h (cp_canonicalize_string_full)
10428 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
10429 Return unique_xmalloc_ptr.
10430 * cp-support.c (inspect_type): Update.
10431 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
10432 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
10433 Likewise.
10434 * c-typeprint.c (print_name_maybe_canonical): Update.
10435 * break-catch-throw.c (check_status_exception_catchpoint):
10436 Update.
10437
bf4cb9be
TV
104382020-05-08 Tom de Vries <tdevries@suse.de>
10439
10440 * infrun.c (follow_fork): Copy current_line and current_symtab to
10441 child thread.
10442
a1b68f28
SM
104432020-05-07 Simon Marchi <simon.marchi@efficios.com>
10444
10445 * async-event.c (struct async_signal_handler, struct
10446 async_event_handler): Reformat, remove typedef.
10447
98d48915
SM
104482020-05-07 Simon Marchi <simon.marchi@efficios.com>
10449
10450 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
10451 access thistype->main_type->dyn_prop_list directly.
10452
7aa91313
SM
104532020-05-07 Simon Marchi <simon.marchi@efficios.com>
10454
10455 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
10456 (remove_dyn_prop): Remove. Update all users to use
10457 type::remove_dyn_prop.
10458 * gdbtypes.c (remove_dyn_prop): Rename to...
10459 (type::remove_dyn_prop): ... this.
10460
5c54719c
SM
104612020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
10462
10463 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
10464 (add_dyn_prop): Remove. Update all users to use
10465 type::add_dyn_prop.
10466 * gdbtypes.c (add_dyn_prop): Rename to...
10467 (type::add_dyn_prop): ... this.
10468
24e99c6c
SM
104692020-05-07 Simon Marchi <simon.marchi@efficios.com>
10470
10471 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
10472 (get_dyn_prop): Remove. Update all users to use
10473 type::dyn_prop.
10474 * gdbtypes.c (get_dyn_prop): Rename to...
10475 (type::dyn_prop): ... this.
10476
0d4bf016
SM
104772020-05-06 Simon Marchi <simon.marchi@efficios.com>
10478
10479 * gdbtypes.h (struct main_type) <flag_static>: Remove.
10480
ac4a4f1c
SM
104812020-05-06 Simon Marchi <simon.marchi@efficios.com>
10482
10483 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
10484 instruction, skip it if it's there.
10485
a3bbacc1
SM
104862020-05-05 Simon Marchi <simon.marchi@efficios.com>
10487
10488 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
10489
c3236f84
SM
104902020-05-04 Simon Marchi <simon.marchi@efficios.com>
10491
10492 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
10493 * gdbtypes.c (recursive_dump_type): Remove use of
10494 TYPE_INCOMPLETE.
10495
3b6acaee
TT
104962020-05-03 Tom Tromey <tom@tromey.com>
10497
10498 * breakpoint.c (catch_command, tcatch_command): Remove.
10499 (_initialize_breakpoint): Use add_basic_prefix_cmd,
10500 add_show_prefix_cmd.
10501 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
10502 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
10503 Remove.
10504 (add_internal_problem_command): Use add_basic_prefix_cmd,
10505 add_show_prefix_cmd.
10506 * mips-tdep.c (set_mipsfpu_command): Remove.
10507 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
10508 * dwarf2/index-cache.c (set_index_cache_command): Remove.
10509 (_initialize_index_cache): Use add_basic_prefix_cmd.
10510 * memattr.c (dummy_cmd): Remove.
10511 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
10512 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
10513 (_initialize_tui_win): Use add_basic_prefix_cmd,
10514 add_show_prefix_cmd.
10515 * cli/cli-logging.c (set_logging_command): Remove.
10516 (_initialize_cli_logging): Use add_basic_prefix_cmd,
10517 add_show_prefix_cmd.
10518 (show_logging_command): Remove.
10519 * target.c (target_command): Remove.
10520 (add_target): Use add_basic_prefix_cmd.
10521
a51119cd
HD
105222020-05-02 Hannes Domani <ssbssa@yahoo.de>
10523
10524 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
10525
652fc23a 105262020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 10527
652fc23a
PW
10528 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
10529 info_command.
10530
117539e6
KR
105312020-04-30 Kamil Rytarowski <n54@gmx.com>
10532
10533 * nbsd-nat.c (nbsd_enable_proc_events)
10534 (nbsd_nat_target::post_startup_inferior): Add.
10535 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
10536 (nbsd_nat_target::update_thread_list): Rewrite.
10537 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
10538 "PTRACE_LWP_CREATE".
10539 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
10540
102e38eb 105412020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 10542
102e38eb
PW
10543 * stack.c (_initialize_stack): Remove duplicated creation
10544 of "frame" command and "f" alias.
10545
ee9d1e5f
HD
105462020-04-30 Hannes Domani <ssbssa@yahoo.de>
10547
10548 PR gdb/18706
10549 * gdbtypes.c (check_typedef): Calculate size of array of
10550 stubbed type.
10551
627c7fb8
HD
105522020-04-30 Hannes Domani <ssbssa@yahoo.de>
10553
10554 PR gdb/15559
10555 * i386-tdep.c (i386_push_dummy_call): Call
10556 i386_thiscall_push_dummy_call.
10557 (i386_thiscall_push_dummy_call): New function.
10558 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
10559 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
10560 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
10561
ffc2844e
SM
105622020-04-29 Simon Marchi <simon.marchi@efficios.com>
10563
10564 * gdbarch.sh (do_read): Add shellcheck disable directive for
10565 warning SC2162.
10566
1207375d
SM
105672020-04-29 Simon Marchi <simon.marchi@efficios.com>
10568
10569 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
10570 "referenced but not assigned" warning.
10571
9fdb2916
SM
105722020-04-29 Simon Marchi <simon.marchi@efficios.com>
10573
10574 * gdbarch.sh: Remove code that sets fallbackdefault.
10575
759cea5e
SM
105762020-04-29 Simon Marchi <simon.marchi@efficios.com>
10577
10578 * gdbarch.sh: Use shell operators && and || instead of
10579 -a and -o.
10580
cb02ab24
SM
105812020-04-29 Simon Marchi <simon.marchi@efficios.com>
10582
10583 * gdbarch.sh: Use $(...) instead of `...`.
10584
a6fc5ffc
SM
105852020-04-29 Simon Marchi <simon.marchi@efficios.com>
10586
10587 * gdbarch.sh: Use double quotes around variables.
10588
8d113d13
SM
105892020-04-29 Simon Marchi <simon.marchi@efficios.com>
10590
10591 * gdbarch.sh: Use %s with printf, instead of variables in the
10592 format string.
10593
ed6acedd
TT
105942020-04-29 Tom Tromey <tromey@adacore.com>
10595
10596 PR ada/25875:
10597 * dwarf2/read.c (update_enumeration_type_from_children): Compute
10598 type fields here.
10599 (read_enumeration_type): Call
10600 update_enumeration_type_from_children later. Update comments.
10601 (process_enumeration_scope): Don't create type fields.
10602
b68b1b58
KR
106032020-04-29 Kamil Rytarowski <n54@gmx.com>
10604
10605 * nbsd-tdep.c: Include "xml-syscall.h".
10606 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
10607
f94b2e03
KR
106082020-04-29 Kamil Rytarowski <n54@gmx.com>
10609
10610 * nbsd-nat.c: Include "sys/wait.h".
10611 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
10612 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
10613 (nbsd_nat_target::remove_exec_catchpoint)
10614 (nbsd_nat_target::set_syscall_catchpoint): Add.
10615 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
10616 (nbsd_nat_target::insert_exec_catchpoint)
10617 (nbsd_nat_target::remove_exec_catchpoint)
10618 (nbsd_nat_target::set_syscall_catchpoint): Add.
10619 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
10620 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
10621 `nbsd_get_syscall_number'.
10622
fc49bc72
TT
106232020-04-29 Tom Tromey <tom@tromey.com>
10624
10625 * stack.c (print_block_frame_labels): Remove.
10626
d642b692
HD
106272020-04-29 Hannes Domani <ssbssa@yahoo.de>
10628
10629 PR gdb/17320
10630 * ada-valprint.c (val_print_packed_array_elements): Move array
10631 end bracket to new line.
10632 (ada_val_print_string): Remove extra spaces before first array
10633 element.
10634 * c-valprint.c (c_value_print_array): Likewise.
10635 * m2-valprint.c (m2_print_array_contents): Likewise.
10636 (m2_value_print_inner): Likewise.
10637 * p-valprint.c (pascal_value_print_inner): Likewise.
10638 * valprint.c (generic_val_print_array): Likewise.
10639 (value_print_array_elements): Move first array element and array
10640 end bracket to new line.
10641
ea90f227
TV
106422020-04-29 Tom de Vries <tdevries@suse.de>
10643
10644 PR symtab/25889
10645 * linespec.c (find_method): Fix ix calculation.
10646
4498ef4f
KR
106472020-04-28 Kamil Rytarowski <n54@gmx.com>
10648
10649 * syscalls/update-netbsd.sh: New file.
10650 * syscalls/netbsd.xml: Regenerate.
10651 * data-directory/Makefile.in: Register `netbsd.xml' in
10652 `SYSCALLS_FILES'.
10653
a55e30b5
SM
106542020-04-28 Simon Marchi <simon.marchi@efficios.com>
10655
10656 * syscalls/update-freebsd.sh: Add double quotes.
10657
2b2fbab8
TT
106582020-04-28 Tom Tromey <tom@tromey.com>
10659
10660 * NEWS: Update.
10661 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
10662 (cmdpy_init): Allow class_tui.
10663
a65189c9
TV
106642020-04-28 Mark Williams <mark@myosotissp.com>
10665
10666 PR gdb/24480
10667 * dwarf2read.c: Add missing assingments to list_in_scope when
10668 start_symtab was already called.
10669
1b95cdb7
SM
106702020-04-28 Simon Marchi <simon.marchi@efficios.com>
10671
10672 PR gdb/25881
10673 * dwarf2/read.c (offset_map_type): Use
10674 gdb:hash_enum<sect_offset> as hash function.
10675
15cd93d0
TV
106762020-04-28 Tom de Vries <tdevries@suse.de>
10677
10678 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
10679 with DW_AT_signature.
10680
1eb39914
SM
106812020-04-27 Simon Marchi <simon.marchi@efficios.com>
10682
10683 * configure.ac: Remove check for fs_base/gs_base in
10684 user_regs_struct.
10685 * configure: Re-generate.
10686 * config.in: Re-generate.
10687 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
10688 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
10689 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
10690
991a3e2e
LM
106912020-04-27 Luis Machado <luis.machado@linaro.org>
10692
10693 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
10694 problematic inline frame unwinding situation.
10695 * frame.c (frame_id_computed_p): New function.
10696 * frame.h (frame_id_computed_p): New prototype.
10697
361ba0e8
TT
106982020-04-26 Tom Tromey <tom@tromey.com>
10699
10700 * command.h (enum command_class) <class_pseudo>: Remove.
10701
bc3609fd
PW
107022020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10703
10704 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
10705 and whitespace.
10706
b9771db7
KR
107072020-04-25 Kamil Rytarowski <n54@gmx.com>
10708
ec16513e
SM
10709 * inf-ptrace.c (inf_ptrace_target::wait): Remove
10710 `PT_GET_PROCESS_STATE' block.
b9771db7 10711
7151c1af
TT
107122020-04-24 Tom Tromey <tom@tromey.com>
10713
10714 * symtab.h (symbol_get_demangled_name): Don't declare.
10715 * symtab.c (symbol_get_demangled_name): Remove.
10716 (general_symbol_info::natural_name)
10717 (general_symbol_info::demangled_name): Update.
10718
906bb4c5
TT
107192020-04-24 Tom Tromey <tom@tromey.com>
10720
10721 PR rust/25025:
10722 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
10723
bcfe6157
TT
107242020-04-24 Tom Tromey <tom@tromey.com>
10725
10726 PR symtab/12707:
10727 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
10728 exists.
10729 (new_symbol): Likewise.
10730 * compile/compile-object-load.c (get_out_value_type): Use
10731 symbol_matches_search_name.
10732
f049a313
TT
107332020-04-24 Tom Tromey <tom@tromey.com>
10734
10735 * dwarf2/read.c (add_partial_symbol): Do not call
10736 compute_and_set_names.
10737
76e288d1
TT
107382020-04-24 Tom Tromey <tom@tromey.com>
10739
10740 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
10741 overload.
10742
2467f4f6
TT
107432020-04-24 Tom Tromey <tom@tromey.com>
10744
10745 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
10746 (add_psymbol_to_list): New overload. Make old overload call new
10747 one.
10748 * psympriv.h (add_psymbol_to_list): New overload.
10749
e61108c9
TT
107502020-04-24 Tom Tromey <tom@tromey.com>
10751
10752 * dwarf2/read.c (partial_die_info::read) <case
10753 DW_AT_linkage_name>: Use value_as_string.
10754 (dwarf2_string_attr): Use value_as_string.
10755 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
10756 method.
10757 * dwarf2/attribute.c (attribute::value_as_string): New method.
10758
8c87a452
TT
107592020-04-24 Tom Tromey <tom@tromey.com>
10760
10761 * symtab.c (general_symbol_info::natural_name)
10762 (general_symbol_info::demangled_name): Check for language_rust.
10763
787de330
TT
107642020-04-24 Tom Tromey <tom@tromey.com>
10765
10766 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
10767 (dwarf2_physname): ... from here.
10768 (partial_die_info::read): Add Rust "{" hack.
10769
ff985671
TT
107702020-04-24 Tom Tromey <tom@tromey.com>
10771
10772 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
10773 method.
10774 (symbol_set_demangled_name): Don't declare.
10775 * symtab.c (general_symbol_info::set_demangled_name): Rename from
10776 symbol_set_demangled_name.
10777 (general_symbol_info::set_language)
10778 (general_symbol_info::compute_and_set_names): Update.
10779 * minsyms.c (minimal_symbol_reader::install): Update.
10780 * dwarf2/read.c (new_symbol): Update.
10781
1acda803
TT
107822020-04-24 Tom Tromey <tromey@adacore.com>
10783
10784 PR python/23662:
10785 * python/py-type.c (convert_field): Handle
10786 FIELD_LOC_KIND_DWARF_BLOCK.
10787 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
10788 (typy_get_dynamic): Nw function.
10789 (type_object_getset): Add "dynamic".
10790 * NEWS: Add entry.
10791
d656f129
TT
107922020-04-24 Tom Tromey <tromey@adacore.com>
10793
10794 * ada-typeprint.c (print_choices, print_variant_part)
10795 (print_record_field_types_dynamic): New functions.
10796 (print_record_field_types): Use print_record_field_types_dynamic.
10797
7d79de9a
TT
107982020-04-24 Tom Tromey <tromey@adacore.com>
10799
10800 * dwarf2/read.c (handle_data_member_location): New overload.
10801 (dwarf2_add_field): Use it.
10802 (decode_locdesc): Add "computed" parameter. Update comment.
10803 * gdbtypes.c (is_dynamic_type_internal): Also look for
10804 FIELD_LOC_KIND_DWARF_BLOCK.
10805 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
10806 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
10807 virtual base classes.
10808 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
10809 FIELD_LOC_KIND_DWARF_BLOCK.
10810
f8e89861
TT
108112020-04-24 Tom Tromey <tromey@adacore.com>
10812
10813 * dwarf2/read.c (read_structure_type): Handle dynamic length.
10814 * gdbtypes.c (is_dynamic_type_internal): Check
10815 TYPE_HAS_DYNAMIC_LENGTH.
10816 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
10817 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
10818 New macros.
10819 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
10820 constant.
10821
9c6a1327
TT
108222020-04-24 Tom Tromey <tromey@adacore.com>
10823
10824 * dwarf2/read.c (struct variant_field): Rewrite.
10825 (struct variant_part_builder): New.
10826 (struct nextfield): Remove "variant" field. Add "offset".
10827 (struct field_info): Add "current_variant_part" and
10828 "variant_parts".
10829 (alloc_discriminant_info): Remove.
10830 (alloc_rust_variant): New function.
10831 (quirk_rust_enum): Update.
10832 (dwarf2_add_field): Set "offset" member. Don't handle
10833 DW_TAG_variant_part.
10834 (offset_map_type): New typedef.
10835 (convert_variant_range, create_one_variant)
10836 (create_one_variant_part, create_variant_parts)
10837 (add_variant_property): New functions.
10838 (dwarf2_attach_fields_to_type): Call add_variant_property.
10839 (read_structure_type): Don't handle DW_TAG_variant_part.
10840 (handle_variant_part, handle_variant): New functions.
10841 (handle_struct_member_die): Use them.
10842 (process_structure_scope): Don't handle variant parts.
10843 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
10844 (struct discriminant_info): Remove.
10845 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
10846 (struct main_type) <flag_discriminated_union>: Remove.
10847 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
10848 (rust_enum_variant): Return int. Remove "contents". Rewrite.
10849 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
10850 Update.
10851 * valops.c (value_union_variant): Remove.
10852 * value.h (value_union_variant): Don't declare.
10853
b249d2c2
TT
108542020-04-24 Tom Tromey <tromey@adacore.com>
10855
10856 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
10857 (ada_value_primitive_packed_val): Update.
10858 * ada-valprint.c (ada_value_print_1): Update.
10859 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
10860 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
10861 just an address. Use evaluate_for_locexpr_baton.
10862 (dwarf2_evaluate_property): Update.
10863 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
10864 array_view.
10865 * findvar.c (default_read_var_value): Update.
10866 * gdbtypes.c (compute_variant_fields_inner)
10867 (resolve_dynamic_type_internal): Update.
10868 (resolve_dynamic_type): Change type of valaddr parameter.
10869 * gdbtypes.h (resolve_dynamic_type): Update.
10870 * valarith.c (value_subscripted_rvalue): Update.
10871 * value.c (value_from_contents_and_address): Update.
10872
61122aa9
TT
108732020-04-24 Tom Tromey <tromey@adacore.com>
10874
10875 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
10876 "push_initial_value" parameter.
10877 (dwarf2_evaluate_property): Likewise.
10878 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
10879
ef83a141
TT
108802020-04-24 Tom Tromey <tromey@adacore.com>
10881
10882 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
10883 (variant::matches, compute_variant_fields_recurse)
10884 (compute_variant_fields_inner, compute_variant_fields): New
10885 functions.
10886 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
10887 Use resolved_type after type is made.
10888 (operator==): Add new cases.
10889 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
10890 (struct discriminant_range, struct variant, struct variant_part):
10891 New.
10892 (union dynamic_prop_data) <variant_parts, original_type>: New
10893 members.
10894 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
10895 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
10896 constants.
10897 * value.c (unpack_bits_as_long): Now public.
10898 * value.h (unpack_bits_as_long): Declare.
10899
675127ec
TT
109002020-04-24 Tom Tromey <tromey@adacore.com>
10901
10902 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
10903 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
10904
9852ceef
HD
109052020-04-24 Hannes Domani <ssbssa@yahoo.de>
10906
10907 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
10908
7632c6ce
KR
109092020-04-24 Kamil Rytarowski <n54@gmx.com>
10910
10911 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
10912 (remove_fork_catchpoint, post_startup_inferior)
10913 (post_attach): Move...
10914 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
10915 (remove_fork_catchpoint, post_startup_inferior)
10916 (post_attach): ...here.
10917 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
10918 (remove_fork_catchpoint, post_startup_inferior)
10919 (post_attach): Move...
10920 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
10921 (remove_fork_catchpoint, post_startup_inferior)
10922 (post_attach): ...here.
10923
7be2bb4f
TT
109242020-04-24 Tom Tromey <tromey@adacore.com>
10925
10926 * nat/windows-nat.h (struct windows_thread_info)
10927 <pc_adjusted>: New member.
10928 * windows-nat.c (windows_fetch_one_register): Check
10929 pc_adjusted.
10930 (windows_nat_target::get_windows_debug_event)
10931 (windows_nat_target::wait): Set pc_adjusted.
10932
f80cb3b4
TV
109332020-04-24 Tom de Vries <tdevries@suse.de>
10934
10935 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
10936 Run gdb-add-index inside temp dir.
10937
29514b87
TT
109382020-04-23 Tom Tromey <tromey@adacore.com>
10939
10940 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
10941 in loop.
10942
5939967b
LM
109432020-04-23 Luis Machado <luis.machado@linaro.org>
10944
10945 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
10946 get_frame_register instead of gdbarch_unwind_pc.
10947
70bc38f5
TV
109482020-04-23 Tom de Vries <tdevries@suse.de>
10949
10950 * symtab.c (lookup_global_symbol): Prefer def over decl.
10951
de82891c
TV
109522020-04-23 Tom de Vries <tdevries@suse.de>
10953
10954 PR symtab/25807
10955 * block.c (best_symbol, better_symbol): Promote to external.
10956 * block.h (best_symbol, better_symbol): Declare.
10957 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
10958 decl.
10959
ecc6c606
TT
109602020-04-23 Tom Tromey <tromey@adacore.com>
10961
10962 PR ada/25837:
10963 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
10964 "const char *", not a "const std::string &".
10965 <name_and_matcher::operator==>: Update.
10966 * unittests/lookup_name_info-selftests.c: Change type of
10967 "result".
10968
740480b8
TT
109692020-04-23 Tom Tromey <tom@tromey.com>
10970
10971 * inferior.h (iterate_over_inferiors): Don't declare.
10972 * inferior.c (iterate_over_inferiors): Remove.
10973 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
10974 Remove.
10975 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
10976 use iterate_over_inferiors.
10977 (darwin_resume_inferior_it)
10978 (struct resume_inferior_threads_param)
10979 (darwin_resume_inferior_threads_it): Remove.
10980 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
10981
ae3ab1f0
TV
109822020-04-23 Tom de Vries <tdevries@suse.de>
10983
10984 * blockframe.c (find_pc_partial_function): Use
10985 find_pc_sect_compunit_symtab rather than
10986 objfile->sf->qf->find_pc_sect_compunit_symtab.
10987
317d2668
TV
109882020-04-22 Tom de Vries <tdevries@suse.de>
10989
10990 PR symtab/25764
10991 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
10992 in psymtabs.
10993
eea9e357
TV
109942020-04-22 Tom de Vries <tdevries@suse.de>
10995
10996 PR symtab/25801
10997 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
10998 symtabs.
10999
3d5afab3
TV
110002020-04-22 Tom de Vries <tdevries@suse.de>
11001
11002 PR symtab/25700
11003 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
11004 CU if already created.
11005
d43b7a2d
TBA
110062020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11007
11008 * infrun.c (displaced_step_fixup): Switch to the event_thread
11009 before calling displaced_step_restore, not after.
11010
d89edf9b
MM
110112020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11012
11013 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
11014 its inferior is not recorded by us.
11015 (record_btrace_target_open): Replace call to
11016 all_non_exited_threads () with call to current_inferior
11017 ()->non_exited_threads ().
11018 (record_btrace_target::stop_recording): Likewise.
11019 (record_btrace_target::close): Likewise.
11020 (record_btrace_target::wait): Likewise.
11021 (record_btrace_target::record_stop_replaying): Likewise.
11022
5897fd49
MM
110232020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11024
11025 * btrace.c (btrace_enable): Throw an error on double enables and
11026 when enabling recording fails.
11027 (btrace_disable): Throw an error if the thread is not recorded.
11028
1a476b6d
MM
110292020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11030
11031 * record-btrace.c (record_btrace_target::fetch_registers): Forward
11032 request if we do not have a thread_info.
11033
4778a5f8
TV
110342020-04-21 Tom de Vries <tdevries@suse.de>
11035
11036 PR gdb/25471
11037 * thread.c
11038 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
11039 exception in get_frame_id.
11040
0fa7617d
TT
110412020-04-20 Tom Tromey <tromey@adacore.com>
11042
11043 * python/python.c (struct gdbpy_event): Mark move constructor as
11044 noexcept.
11045 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
11046 constructor as noexcept.
11047 * completer.h (struct completion_result): Mark move constructor as
11048 noexcept.
11049 * completer.c (completion_result::completion_result): Use
11050 initialization style. Don't call reset_match_list.
11051
ad23bda0
MS
110522020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
11053
11054 * MAINTAINERS (Write After Approval): Add myself.
11055
45e1f031
TT
110562020-04-18 Tom Tromey <tom@tromey.com>
11057
11058 * windows-tdep.c (init_w32_command_list)
11059 (w32_prefix_command_valid): Restore.
11060 (_initialize_windows_tdep): Call init_w32_command_list.
11061
08feed99
TT
110622020-04-18 Tom Tromey <tom@tromey.com>
11063
11064 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
11065 * value.c (value_fn_field): Update.
11066 * valops.c (find_function_in_inferior)
11067 (value_allocate_space_in_inferior): Update.
11068 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11069 Update.
11070 * tui/tui-source.c (tui_source_window::set_contents): Update.
11071 * symtab.c (lookup_global_or_static_symbol)
11072 (find_function_start_sal_1, skip_prologue_sal)
11073 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
11074 * symmisc.c (dump_msymbols, dump_symtab_1)
11075 (maintenance_print_one_line_table): Update.
11076 * symfile.c (init_entry_point_info, section_is_mapped)
11077 (list_overlays_command, simple_read_overlay_table)
11078 (simple_overlay_update_1): Update.
11079 * stap-probe.c (handle_stap_probe): Update.
11080 * stabsread.c (dbx_init_float_type, define_symbol)
11081 (read_one_struct_field, read_enum_type, read_range_type): Update.
11082 * source.c (info_line_command): Update.
11083 * python/python.c (gdbpy_source_objfile_script)
11084 (gdbpy_execute_objfile_script): Update.
11085 * python/py-type.c (save_objfile_types): Update.
11086 * python/py-objfile.c (py_free_objfile): Update.
11087 * python/py-inferior.c (python_new_objfile): Update.
11088 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
11089 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
11090 (maintenance_check_psymtabs): Update.
11091 * printcmd.c (info_address_command): Update.
11092 * objfiles.h (struct objfile) <arch>: New method, from
11093 get_objfile_arch.
11094 (get_objfile_arch): Don't declare.
11095 * objfiles.c (get_objfile_arch): Remove.
11096 (filter_overlapping_sections): Update.
11097 * minsyms.c (msymbol_is_function): Update.
11098 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
11099 (output_nondebug_symbol): Update.
11100 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
11101 (mdebug_expand_psymtab): Update.
11102 * machoread.c (macho_add_oso_symfile): Update.
11103 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
11104 Update.
11105 * linux-fork.c (checkpoint_command): Update.
11106 * linespec.c (convert_linespec_to_sals): Update.
11107 * jit.c (finalize_symtab): Update.
11108 * infrun.c (insert_exception_resume_from_probe): Update.
11109 * ia64-tdep.c (ia64_find_unwind_table): Update.
11110 * hppa-tdep.c (internalize_unwinds): Update.
11111 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
11112 Update.
11113 * gcore.c (call_target_sbrk): Update.
11114 * elfread.c (record_minimal_symbol, elf_symtab_read)
11115 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
11116 (elf_gnu_ifunc_resolve_by_got): Update.
11117 * dwarf2/read.c (create_addrmap_from_index)
11118 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11119 (read_debug_names_from_section)
11120 (process_psymtab_comp_unit_reader, add_partial_symbol)
11121 (add_partial_subprogram, process_full_comp_unit)
11122 (read_file_scope, read_func_scope, read_lexical_block_scope)
11123 (read_call_site_scope, dwarf2_ranges_read)
11124 (dwarf2_record_block_ranges, dwarf2_add_field)
11125 (mark_common_block_symbol_computed, read_tag_pointer_type)
11126 (read_tag_string_type, dwarf2_init_float_type)
11127 (dwarf2_init_complex_target_type, read_base_type)
11128 (partial_die_info::read, partial_die_info::read)
11129 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
11130 (dwarf2_fetch_die_loc_sect_off): Update.
11131 * dwarf2/loc.c (dwarf2_find_location_expression)
11132 (class dwarf_evaluate_loc_desc, rw_pieced_value)
11133 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
11134 (dwarf2_loc_desc_get_symbol_read_needs)
11135 (locexpr_describe_location_piece, locexpr_describe_location_1)
11136 (loclist_describe_location): Update.
11137 * dwarf2/index-write.c (write_debug_names): Update.
11138 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
11139 * dtrace-probe.c (dtrace_process_dof): Update.
11140 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
11141 (process_one_symbol): Update.
11142 * ctfread.c (ctf_init_float_type, read_base_type): Update.
11143 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
11144 (coff_read_enum_type): Update.
11145 * cli/cli-cmds.c (edit_command, list_command): Update.
11146 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
11147 * breakpoint.c (create_overlay_event_breakpoint)
11148 (create_longjmp_master_breakpoint)
11149 (create_std_terminate_master_breakpoint)
11150 (create_exception_master_breakpoint, get_sal_arch): Update.
11151 * block.c (block_gdbarch): Update.
11152 * annotate.c (annotate_source_line): Update.
11153
0743fc83
TT
111542020-04-17 Tom Tromey <tromey@adacore.com>
11155
11156 * auto-load.c (show_auto_load_cmd): Remove.
11157 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
11158 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
11159 (maintenance_print_arc_command): Remove.
11160 * tui/tui-win.c (tui_command): Remove.
11161 (tui_get_cmd_list): Use add_basic_prefix_cmd.
11162 * tui/tui-layout.c (tui_layout_command): Remove.
11163 (_initialize_tui_layout): Use add_basic_prefix_cmd.
11164 * python/python.c (user_set_python, user_show_python): Remove.
11165 (_initialize_python): Use add_basic_prefix_cmd,
11166 add_show_prefix_cmd.
11167 * guile/guile.c (set_guile_command, show_guile_command): Remove.
11168 (install_gdb_commands): Use add_basic_prefix_cmd,
11169 add_show_prefix_cmd.
11170 (info_guile_command): Remove.
11171 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
11172 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
11173 add_show_prefix_cmd.
11174 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
11175 Remove do_set and do_show parameters.
11176 * cli/cli-style.c (set_style, show_style): Remove.
11177 (_initialize_cli_style): Use add_basic_prefix_cmd,
11178 add_show_prefix_cmd.
11179 (cli_style_option::add_setshow_commands): Remove do_set and
11180 do_show parameters.
11181 (cli_style_option::add_setshow_commands): Use
11182 add_basic_prefix_cmd, add_show_prefix_cmd.
11183 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
11184 (set_style_name): Remove.
11185 * cli/cli-dump.c (dump_command, append_command): Remove.
11186 (srec_dump_command, ihex_dump_command, verilog_dump_command)
11187 (tekhex_dump_command, binary_dump_command)
11188 (binary_append_command): Remove.
11189 (_initialize_cli_dump): Use add_basic_prefix_cmd.
11190 * windows-tdep.c (w32_prefix_command_valid): Remove global.
11191 (init_w32_command_list): Remove; move into ...
11192 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
11193 * valprint.c (set_print, show_print, set_print_raw)
11194 (show_print_raw): Remove.
11195 (_initialize_valprint): Use add_basic_prefix_cmd,
11196 add_show_prefix_cmd.
11197 * typeprint.c (set_print_type, show_print_type): Remove.
11198 (_initialize_typeprint): Use add_basic_prefix_cmd,
11199 add_show_prefix_cmd.
11200 * record.c (set_record_command, show_record_command): Remove.
11201 (_initialize_record): Use add_basic_prefix_cmd,
11202 add_show_prefix_cmd.
11203 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
11204 add_show_prefix_cmd.
11205 (info_command, show_command, set_debug, show_debug): Remove.
11206 * top.h (set_history, show_history): Don't declare.
11207 * top.c (set_history, show_history): Remove.
11208 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
11209 (unset_tdesc_cmd): Remove.
11210 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
11211 add_show_prefix_cmd.
11212 * symtab.c (info_module_command): Remove.
11213 (_initialize_symtab): Use add_basic_prefix_cmd.
11214 * symfile.c (overlay_command): Remove.
11215 (_initialize_symfile): Use add_basic_prefix_cmd.
11216 * sparc64-tdep.c (info_adi_command): Remove.
11217 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
11218 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
11219 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
11220 add_show_prefix_cmd.
11221 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
11222 (_initialize_serial): Use add_basic_prefix_cmd,
11223 add_show_prefix_cmd.
11224 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
11225 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
11226 add_show_prefix_cmd.
11227 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
11228 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
11229 add_show_prefix_cmd.
11230 * riscv-tdep.c (show_riscv_command, set_riscv_command)
11231 (show_debug_riscv_command, set_debug_riscv_command): Remove.
11232 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
11233 add_show_prefix_cmd.
11234 * remote.c (remote_command, set_remote_cmd): Remove.
11235 (_initialize_remote): Use add_basic_prefix_cmd.
11236 * record-full.c (set_record_full_command)
11237 (show_record_full_command): Remove.
11238 (_initialize_record_full): Use add_basic_prefix_cmd,
11239 add_show_prefix_cmd.
11240 * record-btrace.c (cmd_set_record_btrace)
11241 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
11242 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
11243 (cmd_show_record_btrace_pt): Remove.
11244 (_initialize_record_btrace): Use add_basic_prefix_cmd,
11245 add_show_prefix_cmd.
11246 * ravenscar-thread.c (set_ravenscar_command)
11247 (show_ravenscar_command): Remove.
11248 (_initialize_ravenscar): Use add_basic_prefix_cmd,
11249 add_show_prefix_cmd.
11250 * mips-tdep.c (show_mips_command, set_mips_command)
11251 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
11252 add_show_prefix_cmd.
11253 * maint.c (maintenance_command, maintenance_info_command)
11254 (maintenance_check_command, maintenance_print_command)
11255 (maintenance_set_cmd, maintenance_show_cmd): Remove.
11256 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
11257 add_show_prefix_cmd.
11258 (show_per_command_cmd): Remove.
11259 * maint-test-settings.c (maintenance_set_test_settings_cmd):
11260 Remove.
11261 (maintenance_show_test_settings_cmd): Remove.
11262 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
11263 add_show_prefix_cmd.
11264 * maint-test-options.c (maintenance_test_options_command):
11265 Remove.
11266 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
11267 * macrocmd.c (macro_command): Remove
11268 (_initialize_macrocmd): Use add_basic_prefix_cmd.
11269 * language.c (set_check, show_check): Remove.
11270 (_initialize_language): Use add_basic_prefix_cmd,
11271 add_show_prefix_cmd.
11272 * infcmd.c (unset_command): Remove.
11273 (_initialize_infcmd): Use add_basic_prefix_cmd.
11274 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
11275 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
11276 add_show_prefix_cmd.
11277 * go32-nat.c (go32_info_dos_command): Remove.
11278 (_initialize_go32_nat): Use add_basic_prefix_cmd.
11279 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
11280 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
11281 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
11282 (_initialize_frame): Use add_basic_prefix_cmd,
11283 add_show_prefix_cmd.
11284 * dcache.c (set_dcache_command, show_dcache_command): Remove.
11285 (_initialize_dcache): Use add_basic_prefix_cmd,
11286 add_show_prefix_cmd.
11287 * cp-support.c (maint_cplus_command): Remove.
11288 (_initialize_cp_support): Use add_basic_prefix_cmd.
11289 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
11290 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
11291 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
11292 add_basic_prefix_cmd, add_show_prefix_cmd.
11293 * breakpoint.c (save_command): Remove.
11294 (_initialize_breakpoint): Use add_basic_prefix_cmd.
11295 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
11296 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
11297 add_show_prefix_cmd.
11298 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
11299 (set_ada_command, show_ada_command): Remove.
11300 (_initialize_ada_language): Use add_basic_prefix_cmd,
11301 add_show_prefix_cmd.
11302 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
11303
3557f442
KR
113042020-04-16 Kamil Rytarowski <n54@gmx.com>
11305
11306 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
11307 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
11308
16197208
SM
113092020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11310
11311 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
11312 warning messages.
11313
00ac85d3
SM
113142020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11315
11316 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
11317 import table is not at beginning of .idata section.
11318
381ce63f
PA
113192020-04-16 Pedro Alves <palves@redhat.com>
11320
11321 * inferior.c (delete_inferior): Use delete operator directly
11322 instead of delete_program_space.
11323 * progspace.c (add_program_space): New, factored out from
11324 program_space::program_space.
11325 (remove_program_space): New, factored out from
11326 delete_program_space.
11327 (program_space::program_space): Remove intro comment. Rewrite.
11328 (program_space::~program_space): Remove intro comment. Call
11329 remove_program_space.
11330 (delete_program_space): Delete.
11331 * progspace.h (program_space::program_space): Make explicit. Move
11332 intro comment here, adjusted.
11333 (program_space::~program_space): Move intro comment here,
11334 adjusted.
11335 (delete_program_space): Remove.
11336
a010605f
TT
113372020-04-16 Tom Tromey <tromey@adacore.com>
11338
11339 * windows-nat.c (windows_nat::handle_access_violation): New
11340 function.
11341 * nat/windows-nat.h (handle_access_violation): Declare.
11342 * nat/windows-nat.c (handle_exception): Move Cygwin code to
11343 windows-nat.c. Call handle_access_violation.
11344
efba5c23
TV
113452020-04-16 Tom de Vries <tdevries@suse.de>
11346
11347 PR symtab/25791
11348 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
11349 CUs without psymtab.
11350
97ed802d
KB
113512020-04-16 Kevin Buettner <kevinb@redhat.com>
11352
11353 * python/python.c (do_start_initialization): Don't call
11354 PyEval_InitThreads for Python 3.9 and beyond.
11355
c7d64809
KR
113562020-04-15 Kamil Rytarowski <n54@gmx.com>
11357
11358 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
11359 thread functions.
11360 (obsd_nat_target::wait): Likewise.
11361
ce127a96
TT
113622020-04-15 Tom Tromey <tromey@adacore.com>
11363
11364 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
11365 (DEBUG_EXCEPT): Use debug_printf.
11366
99f1bc6a
AB
113672020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
11368
11369 * completer.c (class completion_tracker::completion_hash_entry)
11370 <hash_name>: New member function.
11371 (completion_tracker::discard_completions): New callback to hash a
11372 completion_hash_entry, pass this to htab_create_alloc.
11373
a0e9b532
JT
113742016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
11375
11376 * windows-nat.c (windows_make_so): Warn rather than stopping with
11377 an error if realpath() fails.
11378
06ca5dd4
KR
113792020-04-14 Kamil Rytarowski <n54@gmx.com>
11380
11381 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
11382 (nbsd_nat_target::info_proc): Add do_status.
11383
194d088f
TV
113842020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
11385 Tom de Vries <tdevries@suse.de>
11386
11387 PR symtab/25718
11388 * psympriv.h (struct partial_symtab::read_symtab)
11389 (struct partial_symtab::expand_psymtab)
11390 (struct partial_symtab::read_dependencies): Update comments.
11391 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
11392 read_symtab for includer.
11393 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
11394 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
11395 (struct dwarf2_include_psymtab::m_readin): Remove.
11396 (struct dwarf2_include_psymtab::includer): New member function.
11397 (dwarf2_psymtab::expand_psymtab): Assert !readin.
11398
c1a66c06
TV
113992020-04-14 Tom de Vries <tdevries@suse.de>
11400
11401 PR symtab/25720
11402 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
11403 with NULL symbol_matcher and lookup_name.
11404 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
11405 and lookup_name.
11406 * dwarf2/read.c (dw2_expand_symtabs_matching)
11407 (dw2_debug_names_expand_symtabs_matching): Same.
11408 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
11409 Make lookup_name a pointer. Update comment.
11410 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
11411 lookup_name being a pointer.
11412 * symfile.c (expand_symtabs_matching): Same.
11413 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
11414 * linespec.c (iterate_over_all_matching_symtabs): Same.
11415
400b5eca
TT
114162020-04-13 Tom Tromey <tom@tromey.com>
11417
11418 * run-on-main-thread.c: Update include.
11419 * unittests/main-thread-selftests.c: Update include.
11420 * tui/tui-win.c: Update include.
11421 * tui/tui-io.c: Update include.
11422 * tui/tui-interp.c: Update include.
11423 * tui/tui-hooks.c: Update include.
11424 * top.h: Update include.
11425 * top.c: Update include.
11426 * ser-base.c: Update include.
11427 * remote.c: Update include.
11428 * remote-notif.c: Update include.
11429 * remote-fileio.c: Update include.
11430 * record-full.c: Update include.
11431 * record-btrace.c: Update include.
11432 * python/python.c: Update include.
11433 * posix-hdep.c: Update include.
11434 * mingw-hdep.c: Update include.
11435 * mi/mi-main.c: Update include.
11436 * mi/mi-interp.c: Update include.
11437 * main.c: Update include.
11438 * linux-nat.c: Update include.
11439 * interps.c: Update include.
11440 * infrun.c: Update include.
11441 * inf-loop.c: Update include.
11442 * event-top.c: Update include.
11443 * event-loop.c: Move to ../gdbsupport/.
11444 * event-loop.h: Move to ../gdbsupport/.
11445 * async-event.h: Update include.
11446 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
11447
93b54c8e
TT
114482020-04-13 Tom Tromey <tom@tromey.com>
11449
11450 * tui/tui-win.c: Include async-event.h.
11451 * remote.c: Include async-event.h.
11452 * remote-notif.c: Include async-event.h.
11453 * record-full.c: Include async-event.h.
11454 * record-btrace.c: Include async-event.h.
11455 * infrun.c: Include async-event.h.
11456 * event-top.c: Include async-event.h.
11457 * event-loop.h: Move some declarations to async-event.h.
11458 * event-loop.c: Don't include ser-event.h or top.h. Move some
11459 code to async-event.c.
11460 * async-event.h: New file.
11461 * async-event.c: New file.
11462 * Makefile.in (COMMON_SFILES): Add async-event.c.
11463 (HFILES_NO_SRCDIR): Add async-event.h.
11464
c1cd3163
TT
114652020-04-13 Tom Tromey <tom@tromey.com>
11466
11467 * utils.c (flush_streams): New function.
11468 * event-loop.c (gdb_wait_for_event): Call flush_streams.
11469
29f2bf4f
TT
114702020-04-13 Tom Tromey <tom@tromey.com>
11471
11472 * event-loop.c (handle_file_event): Use warning, not
11473 printf_unfiltered.
11474
98029d02
TT
114752020-04-13 Tom Tromey <tom@tromey.com>
11476
11477 * event-loop.c: Include <chrono>.
11478
06cc9596
TT
114792020-04-13 Tom Tromey <tom@tromey.com>
11480
11481 * gdb_select.h: Move to ../gdbsupport/.
11482 * event-loop.c: Update include path.
11483 * top.c: Update include path.
11484 * ser-base.c: Update include path.
11485 * ui-file.c: Update include path.
11486 * ser-tcp.c: Update include path.
11487 * guile/scm-ports.c: Update include path.
11488 * posix-hdep.c: Update include path.
11489 * ser-unix.c: Update include path.
11490 * gdb_usleep.c: Update include path.
11491 * mingw-hdep.c: Update include path.
11492 * inflow.c: Update include path.
11493 * infrun.c: Update include path.
11494 * event-top.c: Update include path.
11495
8ae8e197
TT
114962020-04-13 Tom Tromey <tom@tromey.com>
11497
11498 * configure: Rebuild.
11499 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
11500
58cf28e8
TT
115012020-04-13 Tom Tromey <tom@tromey.com>
11502
11503 * event-loop.h (start_event_loop): Don't declare.
11504 * event-loop.c (start_event_loop): Move...
11505 * main.c (start_event_loop): ...here. Now static.
11506
b7f999ae
SDJ
115072020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
11508
11509 * MAINTAINERS: Update my email address.
11510
1085dfd4
KR
115112020-04-12 Kamil Rytarowski <n54@gmx.com>
11512
11513 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
11514 IP_ALL.
11515
49d1d1f5
KR
115162020-04-12 Kamil Rytarowski <n54@gmx.com>
11517
11518 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 11519 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 11520
b4848d2a
KR
115212020-04-12 Kamil Rytarowski <n54@gmx.com>
11522
11523 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 11524 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 11525
51c133d5
KR
115262020-04-12 Kamil Rytarowski <n54@gmx.com>
11527
11528 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
11529
54b8cbd0
KR
115302020-04-11 Kamil Rytarowski <n54@gmx.com>
11531
11532 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
11533 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
11534 (nbsd_nat_target::info_proc): New functions.
11535 * nbsd-nat.c (kinfo_get_vmmap): New function.
11536 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
11537 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
11538 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
11539 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
11540 functions.
11541 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
11542 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
11543 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
11544 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
11545 (KINFO_VME_FLAG_GROWS_DOWN): New.
11546
cf83625d
AS
115472020-04-10 Artur Shepilko <nomadbyte@gmail.com>
11548
11549 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
11550 bit shift.
11551
0c4311ab
TT
115522020-04-10 Tom Tromey <tromey@adacore.com>
11553
11554 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
11555
3e65b3e9
TT
115562020-04-10 Tom Tromey <tromey@adacore.com>
11557
11558 * symtab.c (get_symbol_address, get_msymbol_address): Skip
11559 separate debug files.
11560
13302e95
HD
115612020-04-10 Hannes Domani <ssbssa@yahoo.de>
11562
11563 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11564 Move to...
11565 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11566 ... here.
11567 * windows-nat.c (windows_nat_target::get_windows_debug_event):
11568 Check for STATUS_WX86_BREAKPOINT.
11569 (windows_nat_target::wait): Same.
11570
bdfc1e8a
TV
115712020-04-10 Tom de Vries <tdevries@suse.de>
11572
11573 PR cli/25808
11574 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
11575
f4460aec
SM
115762020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11577
11578 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
11579 (Write After Approval): Remove Tom de Vries.
11580
a25198bb
BE
115812020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
11582
11583 revert partially:
11584 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11585
aac66a4c
SM
11586 * buildsym.c (record_line): Fix undefined behavior and preserve
11587 lines at eof.
a25198bb 11588
206c98a6
KR
115892020-04-09 Kamil Rytarowski <n54@gmx.com>
11590
11591 * auxv.h (svr4_auxv_parse): New.
11592 * auxv.c (default_auxv_parse): Split into default_auxv_parse
11593 and generic_auxv_parse.
11594 (svr4_auxv_parse): Add.
11595 * obsd-tdep.c: Include "auxv.h".
11596 (obsd_auxv_parse): Remove.
11597 (obsd_init_abi): Remove comment.
11598 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
11599 from `obsd_auxv_parse' to `svr4_auxv_parse'.
11600 * nbsd-tdep.c: Include "auxv.h".
11601 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
11602
71fbdbaf
TT
116032020-04-08 Tom Tromey <tromey@adacore.com>
11604
11605 * nat/windows-nat.h (last_wait_event): Don't declare.
11606 (wait_for_debug_event): Update comment.
11607 * nat/windows-nat.c (last_wait_event): Now static.
11608
2c1d95e8
TT
116092020-04-08 Tom Tromey <tromey@adacore.com>
11610
11611 * windows-nat.c (wait_for_debug_event): Move to
11612 nat/windows-nat.c.
11613 * nat/windows-nat.h (wait_for_debug_event): Declare.
11614 * nat/windows-nat.c (wait_for_debug_event): Move from
11615 windows-nat.c. No longer static.
11616
d2977bc4
TT
116172020-04-08 Tom Tromey <tromey@adacore.com>
11618
11619 * windows-nat.c (get_windows_debug_event): Use
11620 fetch_pending_stop.
11621 * nat/windows-nat.h (fetch_pending_stop): Declare.
11622 * nat/windows-nat.c (fetch_pending_stop): New function.
11623
e758e19c
TT
116242020-04-08 Tom Tromey <tromey@adacore.com>
11625
11626 * windows-nat.c (windows_continue): Use matching_pending_stop and
11627 continue_last_debug_event.
11628 * nat/windows-nat.h (matching_pending_stop)
11629 (continue_last_debug_event): Declare.
11630 * nat/windows-nat.c (DEBUG_EVENTS): New define.
11631 (matching_pending_stop, continue_last_debug_event): New
11632 functions.
11633
8d30e395
TT
116342020-04-08 Tom Tromey <tromey@adacore.com>
11635
11636 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
11637 (handle_exception_result): Move to nat/windows-nat.h.
11638 (DEBUG_EXCEPTION_SIMPLE): Remove.
11639 (windows_nat::handle_ms_vc_exception): New function.
11640 (handle_exception): Move to nat/windows-nat.c.
11641 (get_windows_debug_event): Update.
11642 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
11643 nat/windows-nat.c.
11644 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
11645 (handle_exception_result): Move from windows-nat.c.
11646 (handle_exception): Declare.
11647 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
11648 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
11649 windows-nat.c.
11650
29de418d
TT
116512020-04-08 Tom Tromey <tromey@adacore.com>
11652
11653 * windows-nat.c (exception_count, event_count): Remove.
11654 (handle_exception, get_windows_debug_event)
11655 (do_initial_windows_stuff): Update.
11656
a816ba18
TT
116572020-04-08 Tom Tromey <tromey@adacore.com>
11658
11659 * windows-nat.c (windows_nat::handle_load_dll)
11660 (windows_nat::handle_unload_dll): Rename. No longer static.
11661 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
11662 Declare.
11663
a00caa12
TT
116642020-04-08 Tom Tromey <tromey@adacore.com>
11665
11666 * complaints.h (stop_whining): Declare at top-level.
11667 (complaint): Don't declare stop_whining.
11668
d41b524f
TT
116692020-04-08 Tom Tromey <tromey@adacore.com>
11670
11671 * windows-nat.c (windows_nat::handle_output_debug_string):
11672 Rename. No longer static.
11673 * nat/windows-nat.h (handle_output_debug_string): Declare.
11674
3c76026d
TT
116752020-04-08 Tom Tromey <tromey@adacore.com>
11676
11677 * windows-nat.c (current_process_handle, current_process_id)
11678 (main_thread_id, last_sig, current_event, last_wait_event)
11679 (current_windows_thread, desired_stop_thread_id, pending_stops)
11680 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
11681 (display_selectors, fake_create_process)
11682 (get_windows_debug_event): Update.
11683 * nat/windows-nat.h (current_process_handle, current_process_id)
11684 (main_thread_id, last_sig, current_event, last_wait_event)
11685 (current_windows_thread, desired_stop_thread_id, pending_stops)
11686 (struct pending_stop, siginfo_er): Move from windows-nat.c.
11687 * nat/windows-nat.c (current_process_handle, current_process_id)
11688 (main_thread_id, last_sig, current_event, last_wait_event)
11689 (current_windows_thread, desired_stop_thread_id, pending_stops)
11690 (siginfo_er): New globals. Move from windows-nat.c.
11691
9d8679cc
TT
116922020-04-08 Tom Tromey <tromey@adacore.com>
11693
11694 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
11695 (handle_load_dll): Update.
11696 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
11697
28688adf
TT
116982020-04-08 Tom Tromey <tromey@adacore.com>
11699
11700 * windows-nat.c (enum thread_disposition_type): Move to
11701 nat/windows-nat.h.
11702 (windows_nat::thread_rec): Rename from thread_rec. No longer
11703 static.
11704 (windows_add_thread, windows_nat_target::fetch_registers)
11705 (windows_nat_target::store_registers, handle_exception)
11706 (windows_nat_target::resume, get_windows_debug_event)
11707 (windows_nat_target::get_tib_address)
11708 (windows_nat_target::thread_name)
11709 (windows_nat_target::thread_alive): Update.
11710 * nat/windows-nat.h (enum thread_disposition_type): Move from
11711 windows-nat.c.
11712 (thread_rec): Declare.
11713
4834dad0
TT
117142020-04-08 Tom Tromey <tromey@adacore.com>
11715
11716 * windows-nat.c: Add "using namespace".
11717 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
11718 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
11719
65bafd5b
TT
117202020-04-08 Tom Tromey <tromey@adacore.com>
11721
11722 * nat/windows-nat.h (struct windows_thread_info): Declare
11723 destructor.
11724 * nat/windows-nat.c (~windows_thread_info): New.
11725
0a4afda3
TT
117262020-04-08 Tom Tromey <tromey@adacore.com>
11727
11728 PR gdb/22992
11729 * windows-nat.c (current_event): Update comment.
11730 (last_wait_event, desired_stop_thread_id): New globals.
11731 (struct pending_stop): New.
11732 (pending_stops): New global.
11733 (windows_nat_target) <stopped_by_sw_breakpoint>
11734 <supports_stopped_by_sw_breakpoint>: New methods.
11735 (windows_fetch_one_register): Add assertions. Adjust PC.
11736 (windows_continue): Handle pending stops. Suspend other threads
11737 when stepping. Use last_wait_event
11738 (wait_for_debug_event): New function.
11739 (get_windows_debug_event): Use wait_for_debug_event. Handle
11740 pending stops. Queue spurious stops.
11741 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
11742 (windows_nat_target::kill): Use wait_for_debug_event.
11743 * nat/windows-nat.h (struct windows_thread_info)
11744 <stopped_at_software_breakpoint>: New field.
11745 * nat/windows-nat.c (windows_thread_info::resume): Clear
11746 stopped_at_software_breakpoint.
11747
8e61ebec
TT
117482020-04-08 Tom Tromey <tromey@adacore.com>
11749
11750 * windows-nat.c (enum thread_disposition_type): New.
11751 (thread_rec): Replace "get_context" parameter with "disposition";
11752 change type.
11753 (windows_add_thread, windows_nat_target::fetch_registers)
11754 (windows_nat_target::store_registers, handle_exception)
11755 (windows_nat_target::resume, get_windows_debug_event)
11756 (windows_nat_target::get_tib_address)
11757 (windows_nat_target::thread_name)
11758 (windows_nat_target::thread_alive): Update.
11759
98a03287
TT
117602020-04-08 Tom Tromey <tromey@adacore.com>
11761
11762 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
11763 (windows_continue): Use windows_continue::resume.
11764 * nat/windows-nat.h (struct windows_thread_info) <suspend,
11765 resume>: Declare new methods.
11766 * nat/windows-nat.c: New file.
11767 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
11768
7c7411bc
TT
117692020-04-08 Tom Tromey <tromey@adacore.com>
11770
11771 * windows-nat.c (windows_add_thread, windows_delete_thread)
11772 (windows_nat_target::fetch_registers)
11773 (windows_nat_target::store_registers, fake_create_process)
11774 (windows_nat_target::resume, windows_nat_target::resume)
11775 (get_windows_debug_event, windows_nat_target::wait)
11776 (windows_nat_target::pid_to_str)
11777 (windows_nat_target::get_tib_address)
11778 (windows_nat_target::get_ada_task_ptid)
11779 (windows_nat_target::thread_name)
11780 (windows_nat_target::thread_alive): Use lwp, not tid.
11781
2950fdf7
TT
117822020-04-08 Tom Tromey <tromey@adacore.com>
11783
11784 * windows-nat.c (handle_exception)
11785 (windows_nat_target::thread_name): Update.
11786 * nat/windows-nat.h (windows_thread_info): Remove destructor.
11787 <name>: Now unique_xmalloc_ptr.
11788
62fe396b
TT
117892020-04-08 Tom Tromey <tromey@adacore.com>
11790
11791 * windows-nat.c (thread_rec)
11792 (windows_nat_target::fetch_registers): Update.
11793 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
11794 Update comment.
11795 <debug_registers_changed, reload_context>: Now bool.
11796
e9534bd2
TT
117972020-04-08 Tom Tromey <tromey@adacore.com>
11798
11799 * windows-nat.c (windows_add_thread): Use new.
11800 (windows_init_thread_list, windows_delete_thread): Use delete.
11801 (get_windows_debug_event): Update.
11802 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
11803 destructor, and initializers.
11804
ae1f8880
TT
118052020-04-08 Tom Tromey <tromey@adacore.com>
11806
11807 * windows-nat.c (struct windows_thread_info): Remove.
11808 * nat/windows-nat.h: New file.
11809
55a1e039
TT
118102020-04-08 Tom Tromey <tromey@adacore.com>
11811
11812 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
11813 (thread_rec, windows_add_thread, windows_delete_thread)
11814 (windows_continue): Update.
11815
93366324
TT
118162020-04-08 Tom Tromey <tromey@adacore.com>
11817
11818 * windows-nat.c (struct windows_thread_info): Remove typedef.
11819 (thread_head): Remove.
11820 (thread_list): New global.
11821 (thread_rec, windows_add_thread, windows_init_thread_list)
11822 (windows_delete_thread, windows_continue): Update.
11823
0f2265e2
SM
118242020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11825
11826 * windows-tdep.h (windows_init_abi): Add comment.
11827 (cygwin_init_abi): New declaration.
11828 * windows-tdep.c: Split signal enumeration in two, one for
11829 Windows and one for Cygwin.
11830 (windows_gdb_signal_to_target): Only deal with signal of the
11831 Windows OS ABI.
11832 (cygwin_gdb_signal_to_target): New function.
11833 (windows_init_abi): Rename to windows_init_abi_common, don't set
11834 gdb_signal_to_target gdbarch method. Add new new function with
11835 this name.
11836 (cygwin_init_abi): New function.
11837 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
11838 comment. Don't call windows_init_abi.
11839 (amd64_windows_init_abi): Add comment, call windows_init_abi.
11840 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
11841 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
11842 i386_windows_init_abi_common, don't call windows_init_abi. Add
11843 a new function of this name.
11844 (i386_cygwin_init_abi): New function.
11845 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
11846 OS ABI Cygwin.
11847
3810f182
SM
118482020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11849
11850 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
11851 parameter.c.
11852 (dwarf2_read_gdb_index): Update.
11853
063f8e80
KR
118542020-04-07 Kamil Rytarowski <n54@gmx.com>
11855
11856 * nbsd-tdep.c: Include "objfiles.h".
11857 (nbsd_skip_solib_resolver): New.
11858 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
11859
85a9510c 118602020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11861
11862 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
11863 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
11864 with DW_LLE_base_addressx are being emitted in DWARFv5.
11865 Add the newly added kind DW_LOC_OFFSET_PAIR also.
11866 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
11867 unsigned integer.
11868
9fc3eaae 118692020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11870
11871 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
11872 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
11873 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
11874 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
11875 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
11876 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
11877 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
11878
11879
41144253 118802020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11881
11882 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
11883 (read_loclist_index): New function definition.
11884 (lookup_loclist_base): New function definition.
11885 (read_loclist_header): New function definition.
11886 (dwarf2_cu): Add loclist_base and loclist_header field.
11887 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
11888 (read_full_die_1): Read the value of DW_AT_loclists_base.
11889 (read_attribute_reprocess): Handle DW_FORM_loclistx.
11890 (read_attribute_value): Handle DW_FORM_loclistx.
11891 (skip_one_die): Handle DW_FORM_loclistx.
11892 (loclist_header): New structure declaration.
11893 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
11894
9f4e76a4
SM
118952020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11896
11897 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
11898 constructor. Remove `addr` parameter from other constructor and
11899 add `per_cu` parameter.
11900 * dwarf2/read.c (create_partial_symtab): Update.
11901
25c11aca
TV
119022020-04-07 Tom de Vries <tdevries@suse.de>
11903
11904 PR symtab/25796
11905 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
11906 (partial_die_info::fixup): Inherit has_const_value.
11907
5707e24b
TV
119082020-04-07 Tom de Vries <tdevries@suse.de>
11909
11910 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
11911 symbols without address.
11912
05f00e22
KR
119132020-04-06 Kamil Rytarowski <n54@gmx.com>
11914
11915 * nbsd-nat.h (struct thread_info): Add forward declaration.
11916 (nbsd_nat_target::thread_alive): Add.
11917 (nbsd_nat_target::thread_name): Likewise.
11918 (nbsd_nat_target::update_thread_list): Likewise.
11919 (update_thread_list::post_attach): Likewise.
11920 (post_attach::pid_to_str): Likewise.
11921 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
11922 (nbsd_thread_lister): Add.
11923 (nbsd_nat_target::thread_alive): Likewise.
11924 (nbsd_nat_target::thread_name): Likewise.
11925 (nbsd_add_threads): Likewise.
11926 (update_thread_list::post_attach): Likewise.
11927 (nbsd_nat_target::update_thread_list): Likewise.
11928 (post_attach::pid_to_str): Likewise.
11929
6ee448cc
TT
119302020-04-06 Tom Tromey <tromey@adacore.com>
11931
11932 * ada-valprint.c (print_variant_part): Extract the variant field.
11933 (print_field_values): Use the field as the outer value when
11934 recursing.
11935
dea34e8c
TT
119362020-04-06 Tom Tromey <tromey@adacore.com>
11937
11938 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
11939 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
11940 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
11941 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
11942 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
11943
93689ce9
TT
119442020-04-06 Tom Tromey <tromey@adacore.com>
11945
11946 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
11947 TYPE_CODE_ERROR.
11948
79743962
KR
119492020-04-06 Kamil Rytarowski <n54@gmx.com>
11950
11951 * nbsd-tdep.c: Include "gdbarch.h".
11952 Define enum with NetBSD signal numbers.
11953 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
11954 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
11955 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
11956 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
11957 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
11958 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
11959 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
11960 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
11961 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
11962 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
11963 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
11964 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
11965
9e7c9a03
HD
119662020-04-03 Hannes Domani <ssbssa@yahoo.de>
11967
11968 PR gdb/25325
11969 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
11970
d9e49b61
TT
119712020-04-03 Tom Tromey <tromey@adacore.com>
11972
11973 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
11974 Read constant block.
11975
e0fc5c3f
SM
119762020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11977
11978 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
11979 (gdb_bfd_get_full_section_contents): New declaration.
11980 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
11981 * windows-tdep.c (is_linked_with_cygwin_dll): Use
11982 gdb_bfd_get_full_section_contents.
11983
e2ff18a0
SM
119842020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
11985
11986 * exec.c (build_section_table): Replace internal_error with
11987 gdb_assert.
11988 (section_table_xfer_memory_partial): Likewise.
11989 * mdebugread.c (parse_partial_symbols): Likewise.
11990 * psymtab.c (lookup_partial_symbol): Likewise.
11991 * utils.c (wrap_here): Likewise.
11992
0830d301
TT
119932020-04-02 Tom Tromey <tromey@adacore.com>
11994
11995 * f-lang.c (build_fortran_types): Use arch_type to initialize
11996 builtin_complex_s32 in the TYPE_CODE_ERROR case.
11997
e7da7f8f
TT
119982020-04-02 Tom Tromey <tromey@adacore.com>
11999
12000 * dwarf2/read.c (partial_die_info::read): Do not create a vector
12001 of attributes.
12002
c90d28ac
AB
120032020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
12004 Bernd Edlinger <bernd.edlinger@hotmail.de>
12005 Tom Tromey <tromey@adacore.com>
12006
12007 * buildsym.c (buildsym_compunit::record_line): Remove
12008 deduplication code.
12009
1aa98955
TV
120102020-04-02 Tom de Vries <tdevries@suse.de>
12011
12012 PR ada/24671
12013 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
12014
d3214198
TV
120152020-04-02 Tom de Vries <tdevries@suse.de>
12016
12017 * dwarf2/read.c (dwarf2_gdb_index_functions,
12018 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
12019 NULL.
12020 * psymtab.c (psym_lookup_global_symbol_language): New function.
12021 (psym_functions): Init psym_lookup_global_symbol_language with
12022 psym_lookup_global_symbol_language.
12023 * symfile-debug.c (debug_sym_quick_functions): Init
12024 lookup_global_symbol_language with NULL.
12025 * symfile.c (set_initial_language): Remove fixme comment.
12026 * symfile.h (struct quick_symbol_functions): Add
12027 lookup_global_symbol_language.
12028 * symtab.c (find_quick_global_symbol_language): New function.
12029 (find_main_name): Use find_quick_global_symbol_language.
12030
2836752f
SM
120312020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
12032
12033 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
12034
64dc2d4b
BE
120352020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12036
12037 * buildsym.c (record_line): Fix undefined behavior and preserve
12038 lines at eof.
12039
bbe3dc41
BE
120402020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12041
12042 * buildsym.c (record_line): Fix the resizing condition.
12043
6b4a335b
TT
120442020-04-01 Tom Tromey <tom@tromey.com>
12045
12046 * value.h (value_literal_complex): Add comment.
12047 * valops.c (value_literal_complex): Refer to value.h.
12048
3638a098
TT
120492020-04-01 Tom Tromey <tom@tromey.com>
12050
12051 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
12052 (scalar_type): New rule, from typebase.
12053 (typebase): Use scalar_type. Recognize complex types.
12054 (field_name): Handle FLOAT_KEYWORD.
12055 (ident_tokens): Add _Complex and __complex__.
12056
c34e8714
TT
120572020-04-01 Tom Tromey <tom@tromey.com>
12058
12059 PR exp/25299:
12060 * valarith.c (promotion_type, complex_binop): New functions.
12061 (scalar_binop): Handle complex numbers. Use promotion_type.
12062 (value_pos, value_neg, value_complement): Handle complex numbers.
12063
fa649bb7
TT
120642020-04-01 Tom Tromey <tom@tromey.com>
12065
12066 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
12067 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
12068 (parse_number): Handle complex numbers.
12069
981c08ce
TT
120702020-04-01 Tom Tromey <tom@tromey.com>
12071
12072 * c-valprint.c (c_decorations): Change complex suffix to "i".
12073
4c99290d
TT
120742020-04-01 Tom Tromey <tom@tromey.com>
12075
12076 * valprint.c (generic_value_print_complex): Use accessors.
12077 * value.h (value_real_part, value_imaginary_part): Declare.
12078 * valops.c (value_real_part, value_imaginary_part): New
12079 functions.
12080 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
12081
5b930b45
TT
120822020-04-01 Tom Tromey <tom@tromey.com>
12083
12084 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
12085 (read_range_type): Update.
12086 * mdebugread.c (basic_type): Update.
12087 * go-lang.c (build_go_types): Use init_complex_type.
12088 * gdbtypes.h (struct main_type) <complex_type>: New member.
12089 (init_complex_type): Update.
12090 (arch_complex_type): Don't declare.
12091 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
12092 Make name if none given. Use alloc_type_copy. Look for cached
12093 complex type.
12094 (arch_complex_type): Remove.
12095 (gdbtypes_post_init): Use init_complex_type.
12096 * f-lang.c (build_fortran_types): Use init_complex_type.
12097 * dwarf2/read.c (read_base_type): Update.
12098 * d-lang.c (build_d_types): Use init_complex_type.
12099 * ctfread.c (read_base_type): Update.
12100
53cccef1
TBA
121012020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12102
12103 * infrun.c (stop_all_threads): Update assertion, plus when
12104 stopping threads, take into account that we might be trying
12105 to stop an all-stop target.
12106 (stop_waiting): Call 'stop_all_threads' if there exists a
12107 non-stop target.
12108
a0714d30
TBA
121092020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12110
12111 * target.h (exists_non_stop_target): New function declaration.
12112 * target.c (exists_non_stop_target): New function.
12113
60e22c1e
HD
121142020-04-01 Hannes Domani <ssbssa@yahoo.de>
12115
12116 PR gdb/24789
12117 * eval.c (is_integral_or_integral_reference): New function.
12118 (evaluate_subexp_standard): Allow integer references in
12119 pointer arithmetic.
12120
e139a727
TBA
121212020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12122
12123 * remote.c (remote_target::remote_parse_stop_reply): Remove the
12124 check for no ptid in the stop reply when the target is non-stop.
12125
e0802d59
TT
121262020-04-01 Tom Tromey <tromey@adacore.com>
12127
12128 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
12129 "name" parameter to rvalue reference. Initialize m_name_holder.
12130 <lookup_name_info>: New overloads.
12131 <name>: Return gdb::string_view.
12132 <c_str>: New method.
12133 <make_ignore_params>: Update.
12134 <search_name_hash>: Update.
12135 <language_lookup_name>: Return const char *.
12136 <m_name>: Change type.
12137 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
12138 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
12139 (lookup_name_info::match_any): Update.
12140 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
12141 Update.
12142 * minsyms.c (linkage_name_str): Update.
12143 * language.c (default_symbol_name_matcher): Update.
12144 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
12145 Update.
12146 * ada-lang.c (ada_fold_name): Change parameter to string_view.
12147 (ada_lookup_name_info::ada_lookup_name_info): Update.
12148 (literal_symbol_name_matcher): Update.
12149
8c072cb6
TT
121502020-04-01 Tom Tromey <tromey@adacore.com>
12151
12152 * psymtab.c (psymtab_search_name): Remove function.
12153 (psym_lookup_symbol): Create search name and lookup name here.
12154 (lookup_partial_symbol): Remove "name" parameter; add
12155 lookup_name.
12156 (psym_expand_symtabs_for_function): Update.
12157
6f29a534
TT
121582020-03-31 Joel Jones <joelkevinjones@gmail.com>
12159
12160 PR tui/25597:
12161 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
12162
af62665e
TT
121632020-03-31 Tom Tromey <tromey@adacore.com>
12164
12165 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
12166 memcpy.
12167
d1a89da5
NC
121682020-03-30 Nelson Chu <nelson.chu@sifive.com>
12169
12170 * features/riscv/32bit-csr.xml: Regenerated.
12171 * features/riscv/64bit-csr.xml: Regenerated.
12172
d8af9068
TT
121732020-03-30 Tom Tromey <tromey@adacore.com>
12174
12175 * ada-valprint.c (print_variant_part): Update.
12176 * ada-lang.h (ada_which_variant_applies): Update.
12177 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
12178 outer_valaddr parameters; replace with "outer" value parameter.
12179 (to_fixed_variant_branch_type): Update.
12180
227c0bf4
PFC
121812020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12182
12183 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
12184 <list>. Remove inclusion of observable.h.
12185 (PPC_DEBUG_CURRENT_VERSION): Move up define.
12186 (struct arch_lwp_info): New struct.
12187 (class ppc_linux_dreg_interface): New class.
12188 (struct ppc_linux_process_info): New struct.
12189 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
12190 <low_new_clone, low_forget_process, low_prepare_to_resume>
12191 <copy_thread_dreg_state, mark_thread_stale>
12192 <mark_debug_registers_changed, register_hw_breakpoint>
12193 <clear_hw_breakpoint, register_wp, clear_wp>
12194 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
12195 <num_memory_accesses, get_trigger_type>
12196 <create_watchpoint_request, hwdebug_point_cmp>
12197 <init_arch_lwp_info, get_arch_lwp_info>
12198 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
12199 methods.
12200 <struct ptid_hash>: New inner struct.
12201 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
12202 members.
12203 (saved_dabr_value, hwdebug_info, max_slots_number)
12204 (struct hw_break_tuple, struct thread_points, ppc_threads)
12205 (have_ptrace_hwdebug_interface)
12206 (hwdebug_find_thread_points_by_tid)
12207 (hwdebug_insert_point, hwdebug_remove_point): Remove.
12208 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
12209 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
12210 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
12211 use m_dreg_interface.
12212 (hwdebug_point_cmp): Change to...
12213 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
12214 reference arguments instead of pointers.
12215 (ppc_linux_nat_target::ranged_break_num_registers): Use
12216 m_dreg_interface.
12217 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
12218 m_dreg_interface. Call register_hw_breakpoint.
12219 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
12220 m_dreg_interface. Call clear_hw_breakpoint.
12221 (get_trigger_type): Change to...
12222 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
12223 comment.
12224 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
12225 use m_dreg_interface. Call register_hw_breakpoint.
12226 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
12227 use m_dreg_interface. Call clear_hw_breakpoint.
12228 (can_use_watchpoint_cond_accel): Change to...
12229 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
12230 method. Update comment, use m_dreg_interface and
12231 m_process_info.
12232 (calculate_dvc): Change to...
12233 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
12234 m_dreg_interface.
12235 (num_memory_accesses): Change to...
12236 (ppc_linux_nat_target::num_memory_accesses): ...this method.
12237 (check_condition): Change to...
12238 (ppc_linux_nat_target::check_condition): ...this method.
12239 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
12240 comment, use m_dreg_interface.
12241 (create_watchpoint_request): Change to...
12242 (ppc_linux_nat_target::create_watchpoint_request): ...this
12243 method. Use m_dreg_interface.
12244 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
12245 m_dreg_interface. Call register_hw_breakpoint or register_wp.
12246 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
12247 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
12248 (ppc_linux_nat_target::low_forget_process)
12249 (ppc_linux_nat_target::low_new_fork)
12250 (ppc_linux_nat_target::low_new_clone)
12251 (ppc_linux_nat_target::low_delete_thread)
12252 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
12253 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
12254 only call mark_thread_stale.
12255 (ppc_linux_thread_exit): Remove.
12256 (ppc_linux_nat_target::stopped_data_address): Change to...
12257 (ppc_linux_nat_target::low_stopped_data_address): This. Add
12258 comment, use m_dreg_interface and m_thread_hw_breakpoints.
12259 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
12260 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
12261 comment. Call low_stopped_data_address.
12262 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
12263 m_dreg_interface.
12264 (ppc_linux_nat_target::masked_watch_num_registers): Use
12265 m_dreg_interface.
12266 (ppc_linux_nat_target::copy_thread_dreg_state)
12267 (ppc_linux_nat_target::mark_thread_stale)
12268 (ppc_linux_nat_target::mark_debug_registers_changed)
12269 (ppc_linux_nat_target::register_hw_breakpoint)
12270 (ppc_linux_nat_target::clear_hw_breakpoint)
12271 (ppc_linux_nat_target::register_wp)
12272 (ppc_linux_nat_target::clear_wp)
12273 (ppc_linux_nat_target::init_arch_lwp_info)
12274 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
12275 (_initialize_ppc_linux_nat): Remove observer callback.
12276
4db10d8f
PFC
122772020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12278
12279 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
12280 (ppc_linux_nat_target::auxv_parse)
12281 (ppc_linux_nat_target::read_description)
12282 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
12283 Move up.
12284
1310c1b0
PFC
122852020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12286
12287 * linux-nat.h (low_new_clone): New method.
12288 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
12289
69b037c3
SM
122902020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12291
12292 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
12293 (dbx_expand_psymtab): ... this.
12294 (start_psymtab): Update.
12295 * mdebugread.c (psymtab_to_symtab_1): Rename to...
12296 (mdebug_expand_psymtab): ... this.
12297 (parse_partial_symbols): Update.
12298 (new_psymtab): Update.
12299 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
12300 (xcoff_expand_psymtab): ... this.
12301 (xcoff_start_psymtab): Update.
12302
48993951
SM
123032020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12304
12305 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
12306 <expand_dependencies>: ... this.
12307 * psymtab.c (partial_symtab::read_dependencies): Rename to...
12308 (partial_symtab::expand_dependencies): ... this.
12309 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
12310 Update.
12311 (dwarf2_psymtab::expand_psymtab): Update.
12312 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12313 * mdebugread.c (psymtab_to_symtab_1): Update.
12314 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12315
3ad83046
SM
123162020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12317
12318 * psympriv.h (discard_psymtab): Remove.
12319 * dbxread.c (dbx_end_psymtab): Update.
12320 * xcoffread.c (xcoff_end_psymtab): Update.
12321
4d1b9ab6
TT
123222020-03-28 Tom Tromey <tom@tromey.com>
12323
12324 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
12325 comment.
12326
f1749218
TT
123272020-03-28 Tom Tromey <tom@tromey.com>
12328
12329 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
12330
ebea7626
HD
123312020-03-27 Hannes Domani <ssbssa@yahoo.de>
12332
12333 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12334
a879b4d5
JB
123352020-03-26 John Baldwin <jhb@FreeBSD.org>
12336
12337 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
12338
0826b30a
TT
123392020-03-26 Tom Tromey <tom@tromey.com>
12340
12341 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
12342 (mark_common_block_symbol_computed, read_tag_string_type)
12343 (attr_to_dynamic_prop, read_subrange_type): Update.
12344 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
12345 to be methods on struct attribute.
12346 (skip_one_die, process_imported_unit_die, read_namespace_alias)
12347 (read_call_site_scope, partial_die_info::read)
12348 (partial_die_info::read, lookup_die_type, follow_die_ref):
12349 Update.
12350 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
12351 from dwarf2_get_ref_die_offset.
12352 (attribute::constant_value): New method, from
12353 dwarf2_get_attr_constant_value.
12354 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
12355 Declare method.
12356 <constant_value>: New method.
12357
2b2558bf
TT
123582020-03-26 Tom Tromey <tom@tromey.com>
12359
12360 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
12361 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
12362 (dwarf_type_encoding_name): Move to stringify.c.
12363 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
12364 * dwarf2/stringify.c: New file.
12365 * dwarf2/stringify.h: New file.
12366
eeb64781
TT
123672020-03-26 Tom Tromey <tom@tromey.com>
12368
12369 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
12370 Rewrite.
12371
a39fdb41
TT
123722020-03-26 Tom Tromey <tom@tromey.com>
12373
12374 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
12375 methods.
12376 * dwarf2/read.c (lookup_addr_base): Move to die.h.
12377 (lookup_ranges_base): Likewise.
12378 (read_cutu_die_from_dwo, read_full_die_1): Update.
12379
436c571c
TT
123802020-03-26 Tom Tromey <tom@tromey.com>
12381
12382 * dwarf2/read.c (read_import_statement, read_file_scope)
12383 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
12384 (read_lexical_block_scope, read_call_site_scope)
12385 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
12386 (handle_struct_member_die, process_structure_scope)
12387 (update_enumeration_type_from_children)
12388 (process_enumeration_scope, read_array_type, read_common_block)
12389 (read_namespace, read_module, read_subroutine_type): Update.
12390 (sibling_die): Remove.
12391
052c8bb8
TT
123922020-03-26 Tom Tromey <tom@tromey.com>
12393
12394 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
12395 (build_type_psymtabs_reader, read_structure_type)
12396 (read_enumeration_type, read_full_die_1): Update.
12397 (dwarf2_attr_no_follow): Move to die.h.
12398 * dwarf2/die.h (struct die_info) <attr>: New method.
12399
2b24b6e4
TT
124002020-03-26 Tom Tromey <tom@tromey.com>
12401
12402 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
12403 <base_address>: Now an optional.
12404 (dwarf2_find_base_address, dwarf2_rnglists_process)
12405 (dwarf2_ranges_process, fill_in_loclist_baton)
12406 (dwarf2_symbol_mark_computed): Update.
12407
c2d50fd0
TT
124082020-03-26 Tom Tromey <tom@tromey.com>
12409
12410 * dwarf2/read.c (struct die_info): Move to die.h.
12411 * dwarf2/die.h: New file.
12412
0df7ad3a
TT
124132020-03-26 Tom Tromey <tom@tromey.com>
12414
12415 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
12416 * dwarf2/read.c
12417 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12418 Move to line-header.c.
12419 (read_checked_initial_length_and_offset, read_formatted_entries):
12420 Likewise.
12421 (dwarf_decode_line_header): Split into two.
12422 * dwarf2/line-header.c
12423 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12424 Move from read.c.
12425 (read_checked_initial_length_and_offset, read_formatted_entries):
12426 Likewise.
12427 (dwarf_decode_line_header): New function, split from read.c.
12428
86c0bb4c
TT
124292020-03-26 Tom Tromey <tom@tromey.com>
12430
12431 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
12432 Declare method.
12433 * dwarf2/read.c (read_attribute_value): Update.
12434 (dwarf2_per_objfile::read_line_string): Rename from
12435 read_indirect_line_string.
12436 (read_formatted_entries): Update.
12437
2ef46c2f
TT
124382020-03-26 Tom Tromey <tom@tromey.com>
12439
12440 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
12441 variable.
12442
4f9c1eda
TT
124432020-03-26 Tom Tromey <tom@tromey.com>
12444
12445 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
12446 const.
12447 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
12448 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
12449 parameter const.
12450
5a0e026f
TT
124512020-03-26 Tom Tromey <tom@tromey.com>
12452
12453 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
12454 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
12455 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
12456 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
12457
8844c11b
TT
124582020-03-26 Tom Tromey <tom@tromey.com>
12459
12460 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
12461 file_names_size, file_full_name, file_file_name>: Use const.
12462 <file_name_at, file_names>: Add const overload.
12463 * dwarf2/line-header.c (line_header::file_file_name)
12464 (line_header::file_full_name): Update.
12465
c90ec28a
TT
124662020-03-26 Tom Tromey <tom@tromey.com>
12467
12468 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
12469 (macro_start_file, consume_improper_spaces)
12470 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
12471 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
12472 (dwarf_decode_macros): Move to macro.c.
12473 * dwarf2/macro.c: New file.
12474 * dwarf2/macro.h: New file.
12475 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
12476
4f44ae6c
TT
124772020-03-26 Tom Tromey <tom@tromey.com>
12478
12479 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
12480 method.
12481 * dwarf2/section.c: New method. From
12482 read_indirect_string_at_offset_from.
12483 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
12484 (read_indirect_string_at_offset_from): Move to section.c.
12485 (read_indirect_string_at_offset): Rewrite.
12486 (read_indirect_line_string_at_offset): Remove.
12487 (read_indirect_string, read_indirect_line_string)
12488 (dwarf_decode_macro_bytes): Update.
12489
a0194fa8
TT
124902020-03-26 Tom Tromey <tom@tromey.com>
12491
12492 * dwarf2/section.h (struct dwarf2_section_info)
12493 <overload_complaint>: Declare.
12494 (dwarf2_section_buffer_overflow_complaint): Don't declare.
12495 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
12496 Rename from dwarf2_section_buffer_overflow_complaint.
12497 * dwarf2/read.c (skip_one_die, partial_die_info::read)
12498 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
12499
3d27bbdb
TT
125002020-03-26 Tom Tromey <tom@tromey.com>
12501
12502 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
12503 Declare.
12504 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
12505 Move from read.c.
12506 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
12507 to section.c.
12508
9eac9650
TT
125092020-03-26 Tom Tromey <tom@tromey.com>
12510
12511 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
12512
bf80d710
TT
125132020-03-26 Tom Tromey <tom@tromey.com>
12514
12515 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
12516 "builder".
12517 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
12518 parameter.
12519 (dwarf_decode_macros): Update.
12520
0314b390
TT
125212020-03-26 Tom Tromey <tom@tromey.com>
12522
12523 * dwarf2/read.c (read_attribute_value): Update.
12524 (read_indirect_string_from_dwz): Move to dwz.c; change into
12525 method.
12526 (dwarf_decode_macro_bytes): Update.
12527 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
12528 * dwarf2/dwz.c: New file.
12529 * Makefile.in (COMMON_SFILES): Add dwz.c.
12530
9fda78b6
TT
125312020-03-26 Tom Tromey <tom@tromey.com>
12532
12533 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
12534 * dwarf2/read.c: Add include.
12535 * dwarf2/index-write.c: Add include.
12536 * dwarf2/index-cache.c: Add include.
12537 * dwarf2/dwz.h: New file.
12538
33aa3c10
TT
125392020-03-25 Tom Tromey <tom@tromey.com>
12540
12541 * compile/compile-object-load.c (get_out_value_type): Mention
12542 correct symbol name in error message.
12543
d503b685
HD
125442020-03-25 Hannes Domani <ssbssa@yahoo.de>
12545
12546 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12547
7b1eff95
TV
125482020-03-25 Tom de Vries <tdevries@suse.de>
12549
12550 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
12551 * symmisc.c (dump_symtab_1): Print user and includes fields.
12552 (maintenance_info_symtabs): Same.
12553
dd895392
AB
125542020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
12555
12556 PR gdb/25534
12557 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
12558 (riscv_regcache_cooked_write): New function.
12559 (riscv_push_dummy_call): Use new function.
12560 (riscv_return_value): Likewise.
12561
5ab2fbf1
SM
125622020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
12563
12564 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
12565 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
12566 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
12567 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
12568 * infrun.c (follow_fork): Likewise.
12569 (follow_fork_inferior): Likewise.
12570 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
12571 * linux-nat.h (class linux_nat_target): Likewise.
12572 * remote.c (class remote_target) <follow_fork>: Likewise.
12573 (remote_target::follow_fork): Likewise.
12574 * target-delegates.c: Re-generate.
12575 * target.c (default_follow_fork): Likewise.
12576 (target_follow_fork): Likewise.
12577 * target.h (struct target_ops) <follow_fork>: Likewise.
12578 (target_follow_fork): Likewise.
12579
a64fafb5
TV
125802020-03-24 Tom de Vries <tdevries@suse.de>
12581
12582 * psymtab.c (maintenance_info_psymtabs): Print user field.
12583
fe26d3a3
TT
125842020-03-20 Tom Tromey <tromey@adacore.com>
12585
12586 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
12587 const.
12588 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
12589 const.
12590
c884cc46
SM
125912020-03-20 Simon Marchi <simon.marchi@efficios.com>
12592
12593 * ptrace.m4: Don't check for ptrace declaration.
12594 * config.in: Re-generate.
12595 * configure: Re-generate.
12596 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
12597 not defined.
12598
1ff700c2
KR
125992020-03-20 Kamil Rytarowski <n54@gmx.com>
12600
12601 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
12602 `PTRACE_TYPE_RET'.
12603 * i386-bsd-nat.c (gdb_ptrace): Likewise.
12604 * sparc-nat.c (gdb_ptrace): Likewise.
12605 * x86-bsd-nat.c (gdb_ptrace): Likewise.
12606
f7d4f0b1
TT
126072020-03-20 Tom Tromey <tromey@adacore.com>
12608
12609 * c-exp.y (lex_one_token): Fix assert.
12610
f67210ff
TT
126112020-03-20 Tom Tromey <tromey@adacore.com>
12612
12613 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
12614 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
12615 strncpy call.
12616
1773be9e
TT
126172020-03-20 Tom Tromey <tromey@adacore.com>
12618
12619 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
12620
70304be9
TT
126212020-03-20 Tom Tromey <tromey@adacore.com>
12622
12623 * ada-valprint.c (print_variant_part): Remove parameters; switch
12624 to value-based API.
12625 (print_field_values): Likewise.
12626 (ada_val_print_struct_union): Likewise.
12627 (ada_value_print_1): Update.
12628
9faa006d
KR
126292020-03-20 Kamil Rytarowski <n54@gmx.com>
12630
12631 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
12632 nbsd_nat_target instead of inf_ptrace_target.
12633 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12634 nbsd_nat_target.
12635
4a90f062
KR
126362020-03-20 Kamil Rytarowski <n54@gmx.com>
12637
12638 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
12639 it to the ptrace call.
12640 * (store_registers): Likewise.
12641
126422020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
12643
12644 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
12645 it to the ptrace call.
12646 * (store_registers): Likewise.
12647
2d07da27
LM
126482020-03-19 Luis Machado <luis.machado@linaro.org>
12649
12650 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
12651 valid, fetch vg value from ptrace.
12652
f09db380
KR
126532020-03-19 Kamil Rytarowski <n54@gmx.com>
12654 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
12655 * inf-ptrace.c: Likewise.
12656 * (gdb_ptrace): Add.
12657 * (inf_ptrace_target::resume): Update.
12658 * (inf_ptrace_target::xfer_partial): Likewise.
12659 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
12660 * (inf_ptrace_peek_poke): Update.
12661
fcc7376e
KR
126622020-03-19 Kamil Rytarowski <n54@gmx.com>
12663
12664 * x86-bsd-nat.c (gdb_ptrace): New.
12665 * (x86bsd_dr_set): Add new argument `ptid'.
12666 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
12667 x86bsd_dr_set_addr): Update.
12668
cada5fc9
AB
126692020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12670
12671 * remote.c (remote_target::process_stop_reply): Handle events for
12672 all threads differently.
12673
19a2740f
AB
126742020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12675
12676 * completer.c (completion_tracker::remove_completion): Define new
12677 function.
12678 * completer.h (completion_tracker::remove_completion): Declare new
12679 function.
12680 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
12681 when adding a C++ function symbol.
12682
724fd9ba
AB
126832020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12684
12685 * completer.c (completion_tracker::completion_hash_entry): Define
12686 new class.
12687 (advance_to_filename_complete_word_point): Call
12688 recompute_lowest_common_denominator.
12689 (completion_tracker::completion_tracker): Call discard_completions
12690 to setup the hash table.
12691 (completion_tracker::discard_completions): Allow for being called
12692 from the constructor, pass new equal function, and element deleter
12693 when constructing the hash table. Initialise new class member
12694 variables.
12695 (completion_tracker::maybe_add_completion): Remove use of
12696 m_entries_vec, and store more information into m_entries_hash.
12697 (completion_tracker::recompute_lcd_visitor): New function, most
12698 content taken from...
12699 (completion_tracker::recompute_lowest_common_denominator):
12700 ...here, this now just visits each item in the hash calling the
12701 above visitor.
12702 (completion_tracker::build_completion_result): Remove use of
12703 m_entries_vec, call recompute_lowest_common_denominator.
12704 * completer.h (completion_tracker::have_completions): Remove use
12705 of m_entries_vec.
12706 (completion_tracker::completion_hash_entry): Declare new class.
12707 (completion_tracker::recompute_lowest_common_denominator): Change
12708 function signature.
12709 (completion_tracker::recompute_lcd_visitor): Declare new function.
12710 (completion_tracker::m_entries_vec): Delete.
12711 (completion_tracker::m_entries_hash): Initialize to NULL.
12712 (completion_tracker::m_lowest_common_denominator_valid): New
12713 member variable.
12714 (completion_tracker::m_lowest_common_denominator_max_length): New
12715 member variable.
12716
5a82b8a1
KR
127172020-03-17 Kamil Rytarowski <n54@gmx.com>
12718
12719 * regformats/regdef.h: Put reg in gdb namespace.
12720
fb516a69
KR
127212020-03-17 Kamil Rytarowski <n54@gmx.com>
12722
12723 * i386-bsd-nat.c (gdb_ptrace): New.
12724 * (i386bsd_fetch_inferior_registers,
12725 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12726 * (i386bsd_fetch_inferior_registers,
12727 i386bsd_store_inferior_registers) Use gdb_ptrace.
12728
1c0aa1fb
KR
127292020-03-17 Kamil Rytarowski <n54@gmx.com>
12730
12731 * amd64-bsd-nat.c (gdb_ptrace): New.
12732 * (amd64bsd_fetch_inferior_registers,
12733 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12734 * (amd64bsd_fetch_inferior_registers,
12735 amd64bsd_store_inferior_registers) Use gdb_ptrace.
12736
5ccd2fb7
KR
127372020-03-17 Kamil Rytarowski <n54@gmx.com>
12738
12739 * user-regs.c (user_reg::read): Rename to...
12740 (user_reg::xread): ...this.
12741 * (append_user_reg): Rename argument `read' to `xread'.
12742 * (user_reg_add_builtin): Likewise.
12743 * (user_reg_add): Likewise.
12744 * (value_of_user_reg): Likewise.
12745
2108a63a
KR
127462020-03-17 Kamil Rytarowski <n54@gmx.com>
12747
12748 * sparc-nat.c (gdb_ptrace): New.
12749 * sparc-nat.c (sparc_fetch_inferior_registers)
12750 (sparc_store_inferior_registers) Remove obsolete comment.
12751 * sparc-nat.c (sparc_fetch_inferior_registers)
12752 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
12753 * sparc-nat.c (sparc_fetch_inferior_registers)
12754 (sparc_store_inferior_registers) Use gdb_ptrace.
12755
a225c9a8
KR
127562020-03-17 Kamil Rytarowski <n54@gmx.com>
12757
12758 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
12759 it to the ptrace call.
12760 * sh-nbsd-nat.c (store_registers): Likewise.
12761
98097623
KR
127622020-03-17 Kamil Rytarowski <n54@gmx.com>
12763
12764 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
12765 nbsd_nat_target instead of inf_ptrace_target.
12766 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12767 nbsd_nat_target.
12768
9e38d619
KR
127692020-03-17 Kamil Rytarowski <n54@gmx.com>
12770
12771 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
12772
a2ecbe9f
KR
127732020-03-17 Kamil Rytarowski <n54@gmx.com>
12774
12775 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
12776 <sys/sysctl.h>.
12777 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
12778
58990295
TV
127792020-03-17 Tom de Vries <tdevries@suse.de>
12780
12781 PR gdb/23710
12782 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
12783 fields.
12784 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
12785 fields.
12786 (process_imported_unit_die): Skip import of c++ CUs.
12787
771dd3a8
TT
127882020-03-16 Tom Tromey <tom@tromey.com>
12789
12790 * p-valprint.c (pascal_object_print_value): Initialize
12791 base_value.
12792
817a7585
AK
127932020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
12794 Shahab Vahedi <shahab@synopsys.com>
12795
12796 * Makefile.in: Add arch/arc.o
12797 * configure.tgt: Likewise.
12798 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
12799 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 12800 (arc_read_description): New function to cache target descriptions.
817a7585
AK
12801 * arc-tdep.h (arc_read_description): Add proto type.
12802 * arch/arc.c: New file.
12803 * arch/arc.h: Likewise.
12804 * features/Makefile: Replace old target descriptions with new.
12805 * features/arc-arcompact.c: Remove.
12806 * features/arc-arcompact.xml: Likewise.
12807 * features/arc-v2.c: Likewise
12808 * features/arc-v2.xml: Likewise
12809 * features/arc/aux-arcompact.xml: New file.
12810 * features/arc/aux-v2.xml: Likewise.
12811 * features/arc/core-arcompact.xml: Likewise.
12812 * features/arc/core-v2.xml: Likewise.
12813 * features/arc/aux-arcompact.c: Generate.
12814 * features/arc/aux-v2.c: Likewise.
12815 * features/arc/core-arcompact.c: Likewise.
12816 * features/arc/core-v2.c: Likewise.
12817 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
12818
67430cd0
TT
128192020-03-16 Tom Tromey <tromey@adacore.com>
12820
12821 PR gdb/25663:
12822 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
12823 putting value into bcache.
12824
30efb6c7
SM
128252020-03-16 Simon Marchi <simon.marchi@efficios.com>
12826
12827 PR gdb/21500
12828 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
12829 to...
12830 (amd64_windows_init_abi_common): ... this. Don't set size of
12831 long type.
12832 (amd64_windows_init_abi): New function.
12833 (amd64_cygwin_init_abi): New function.
12834 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
12835 the Cygwin OS ABI.
12836 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
12837 comment.
12838
8db52437
SM
128392020-03-16 Simon Marchi <simon.marchi@efficios.com>
12840
12841 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
12842 * windows-tdep.c (CYGWIN_DLL_NAME): New.
12843 (pe_import_directory_entry): New struct type.
12844 (is_linked_with_cygwin_dll): New function.
12845 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
12846 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
12847 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
12848
5982a56a
SM
128492020-03-16 Simon Marchi <simon.marchi@efficios.com>
12850
12851 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
12852 i386_cygwin_core_osabi_sniffer.
12853
7a1998df
SM
128542020-03-16 Simon Marchi <simon.marchi@efficios.com>
12855
12856 * i386-cygwin-tdep.c: Rename to...
12857 * i386-windows-tdep.c: ... this.
12858 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
12859 i386-windows-tdep.c.
12860 * configure.tgt: Likewise.
12861
053205cc
SM
128622020-03-16 Simon Marchi <simon.marchi@efficios.com>
12863
12864 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
12865 * osabi.c (gdb_osabi_names): Add "Windows".
12866 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
12867 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
12868 (i386_cygwin_core_osabi_sniffer): New function, extracted from
12869 i386_cygwin_osabi_sniffer.
12870 (_initialize_i386_cygwin_tdep): Register OS ABI
12871 GDB_OSABI_WINDOWS for i386.
12872 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
12873 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
12874 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
12875 for x86-64.
12876 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
12877 when the target matches '*-*-mingw*'.
12878
fe4b2ee6
SM
128792020-03-16 Simon Marchi <simon.marchi@efficios.com>
12880
12881 * defs.h (enum gdb_osabi): Move to...
12882 * osabi.h (enum gdb_osabi): ... here.
12883 * gdbarch.sh: Include osabi.h in gdbarch.h.
12884 * gdbarch.h: Re-generate.
12885
cb9b645d
SM
128862020-03-16 Simon Marchi <simon.marchi@efficios.com>
12887
12888 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
12889 function.
12890 (_initialize_amd64_windows_tdep): Register osabi sniffer.
12891
3293bbaf
TT
128922020-03-14 Tom Tromey <tom@tromey.com>
12893
12894 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
12895 for C++.
12896 (c_type_print_modifier): Likewise. Add "language" parameter.
12897 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
12898 (c_type_print_base_1): Update.
12899 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
12900 constants.
12901 * type-stack.c (type_stack::insert): Handle tp_atomic and
12902 tp_restrict.
12903 (type_stack::follow_type_instance_flags): Likewise.
12904 (type_stack::follow_types): Likewise. Merge type-following code.
12905 * c-exp.y (RESTRICT, ATOMIC): New tokens.
12906 (space_identifier, cv_with_space_id)
12907 (const_or_volatile_or_space_identifier_noopt)
12908 (const_or_volatile_or_space_identifier): Remove.
12909 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
12910 rules.
12911 (ptr_operator, typebase): Update.
12912 (enum token_flag) <FLAG_C>: New constant.
12913 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
12914 "_Atomic".
12915 (lex_one_token): Handle FLAG_C.
12916
154151a6
KR
129172020-03-14 Kamil Rytarowski <n54@gmx.com>
12918
12919 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
12920 it to the ptrace call.
12921 * m68k-bsd-nat.c (store_registers): Likewise.
12922
bc107784
KR
129232020-03-14 Kamil Rytarowski <n54@gmx.com>
12924
12925 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
12926 gdb_byte *.
12927 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
12928 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
12929 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
12930
01a80117
KR
129312020-03-14 Kamil Rytarowski <n54@gmx.com>
12932
12933 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
12934 nbsd_nat_target instead of inf_ptrace_target.
12935 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12936 nbsd_nat_target.
12937
f90280ca
KR
129382020-03-14 Kamil Rytarowski <n54@gmx.com>
12939
12940 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
12941 register_t.
12942
6def66f1
KR
129432020-03-14 Kamil Rytarowski <n54@gmx.com>
12944
12945 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
12946 it to the ptrace call.
12947 * alpha-bsd-nat.c (store_registers): Likewise.
12948
66eaca97
KR
129492020-03-14 Kamil Rytarowski <n54@gmx.com>
12950
12951 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
12952 includes.
12953 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
12954 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
12955 fill_fpregset): Likewise.
12956
4fed520b
KR
129572020-03-14 Kamil Rytarowski <n54@gmx.com>
12958
12959 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
12960 nbsd_nat_target instead of inf_ptrace_target.
12961 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
12962 nbsd_nat_target.
12963
2190cf06
KR
129642020-03-14 Kamil Rytarowski <n54@gmx.com>
12965
12966 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
12967 register_t.
12968
75c56d3d
KR
129692020-03-14 Kamil Rytarowski <n54@gmx.com>
12970
12971 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
12972 it to the ptrace call.
12973 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
12974 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
12975 * arm-nbsd-nat.c (store_register): Likewise.
12976 * arm-nbsd-nat.c (store_regs): Likewise.
12977 * arm-nbsd-nat.c (store_fp_register): Likewise.
12978 * arm-nbsd-nat.c (store_fp_regs): Likewise.
12979
6018d381
KR
129802020-03-14 Kamil Rytarowski <n54@gmx.com>
12981
12982 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
12983 nbsd_nat_target instead of inf_ptrace_target.
12984 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12985 nbsd_nat_target.
12986
013f99f0
KR
129872020-03-14 Kamil Rytarowski <n54@gmx.com>
12988
12989 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
12990 it to the ptrace call.
12991 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
12992
12753073
KR
129932020-03-14 Kamil Rytarowski <n54@gmx.com>
12994
6227b330
KR
12995 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
12996 it to the ptrace call.
12997 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
12998
129992020-03-14 Kamil Rytarowski <n54@gmx.com>
13000
13001 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
13002 gdb_byte *.
12753073
KR
13003 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
13004
d5be5fa4
KR
130052020-03-14 Kamil Rytarowski <n54@gmx.com>
13006
13007 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
13008 instead of inf_ptrace_target.
13009 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13010 nbsd_nat_target.
13011
8110f842
KR
130122020-03-14 Kamil Rytarowski <n54@gmx.com>
13013
13014 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13015 register_t.
13016
52feded7
KR
130172020-03-14 Kamil Rytarowski <n54@gmx.com>
13018
13019 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13020 register_t.
13021
25567eee
KR
130222020-03-14 Kamil Rytarowski <n54@gmx.com>
13023
13024 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
13025 register_t.
13026
426a9c18
TT
130272020-03-13 Tom Tromey <tom@tromey.com>
13028
13029 * value.h (val_print): Don't declare.
13030 * valprint.h (val_print_array_elements)
13031 (val_print_scalar_formatted, generic_val_print): Don't declare.
13032 * valprint.c (generic_val_print_array): Take a struct value.
13033 (generic_val_print_ptr, generic_val_print_memberptr)
13034 (generic_val_print_bool, generic_val_print_int)
13035 (generic_val_print_char, generic_val_print_complex)
13036 (generic_val_print): Remove.
13037 (generic_value_print): Update.
13038 (do_val_print): Remove unused parameters. Don't call
13039 la_val_print.
13040 (val_print): Remove.
13041 (common_val_print): Update. Don't call value_check_printable.
13042 (val_print_scalar_formatted, val_print_array_elements): Remove.
13043 * rust-lang.c (rust_val_print): Remove.
13044 (rust_language_defn): Update.
13045 * p-valprint.c (pascal_val_print): Remove.
13046 (pascal_value_print_inner): Update.
13047 (pascal_object_print_val_fields, pascal_object_print_val):
13048 Remove.
13049 (pascal_object_print_static_field): Update.
13050 * p-lang.h (pascal_val_print): Don't declare.
13051 * p-lang.c (pascal_language_defn): Update.
13052 * opencl-lang.c (opencl_language_defn): Update.
13053 * objc-lang.c (objc_language_defn): Update.
13054 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
13055 * m2-lang.h (m2_val_print): Don't declare.
13056 * m2-lang.c (m2_language_defn): Update.
13057 * language.h (struct language_defn) <la_val_print>: Remove.
13058 * language.c (unk_lang_value_print_inner): Rename. Change
13059 argument types.
13060 (unknown_language_defn, auto_language_defn): Update.
13061 * go-valprint.c (go_val_print): Remove.
13062 * go-lang.h (go_val_print): Don't declare.
13063 * go-lang.c (go_language_defn): Update.
13064 * f-valprint.c (f_val_print): Remove.
13065 * f-lang.h (f_value_print): Don't declare.
13066 * f-lang.c (f_language_defn): Update.
13067 * d-valprint.c (d_val_print): Remove.
13068 * d-lang.h (d_value_print): Don't declare.
13069 * d-lang.c (d_language_defn): Update.
13070 * cp-valprint.c (cp_print_value_fields)
13071 (cp_print_value_fields_rtti, cp_print_value): Remove.
13072 (cp_print_static_field): Update.
13073 * c-valprint.c (c_val_print_array, c_val_print_ptr)
13074 (c_val_print_struct, c_val_print_union, c_val_print_int)
13075 (c_val_print_memberptr, c_val_print): Remove.
13076 * c-lang.h (c_val_print_array, cp_print_value_fields)
13077 (cp_print_value_fields_rtti): Don't declare.
13078 * c-lang.c (c_language_defn, cplus_language_defn)
13079 (asm_language_defn, minimal_language_defn): Update.
13080 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
13081 (ada_val_print_enum): Take a struct value.
13082 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
13083 (ada_val_print): Remove.
13084 (ada_value_print_1): Update.
13085 (printable_val_type): Remove.
13086 * ada-lang.h (ada_val_print): Don't declare.
13087 * ada-lang.c (ada_language_defn): Update.
13088
42331a1e
TT
130892020-03-13 Tom Tromey <tom@tromey.com>
13090
13091 * valprint.c (do_val_print): Update.
13092 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
13093 a struct value.
13094 (value_to_value_object_no_release): Declare.
13095 * python/py-value.c (value_to_value_object_no_release): New
13096 function.
13097 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
13098 struct value.
13099 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
13100 function.
13101 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
13102 a struct value.
13103 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
13104 Declare.
13105 (gdbscm_apply_val_pretty_printer): Take a struct value.
13106 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
13107 value.
13108 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
13109 value.
13110 * extension-priv.h (struct extension_language_ops)
13111 <apply_val_pretty_printer>: Take a struct value.
13112 * cp-valprint.c (cp_print_value): Create a struct value.
13113 (cp_print_value): Update.
13114
3a916a97
TT
131152020-03-13 Tom Tromey <tom@tromey.com>
13116
13117 * ada-valprint.c (print_field_values): Call common_val_print.
13118
b59eac37
TT
131192020-03-13 Tom Tromey <tom@tromey.com>
13120
13121 * ada-valprint.c (val_print_packed_array_elements): Remove
13122 bitoffset and val parameters. Call common_val_print.
13123 (ada_val_print_string): Remove offset, address, and original_value
13124 parameters.
13125 (ada_val_print_array): Update.
13126 (ada_value_print_array): New function.
13127 (ada_value_print_1): Call it.
13128
03371129
TT
131292020-03-13 Tom Tromey <tom@tromey.com>
13130
13131 * ada-valprint.c (ada_value_print): Use common_val_print.
13132
2e088f8b
TT
131332020-03-13 Tom Tromey <tom@tromey.com>
13134
13135 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
13136
39ef85a8
TT
131372020-03-13 Tom Tromey <tom@tromey.com>
13138
13139 * ada-valprint.c (ada_value_print_num): New function.
13140 (ada_value_print_1): Use it.
13141
b9fa6e07
TT
131422020-03-13 Tom Tromey <tom@tromey.com>
13143
13144 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
13145
416595d6
TT
131462020-03-13 Tom Tromey <tom@tromey.com>
13147
13148 * ada-valprint.c (ada_value_print_ptr): New function.
13149 (ada_value_print_1): Use it.
13150
5b5e15ec
TT
131512020-03-13 Tom Tromey <tom@tromey.com>
13152
13153 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
13154 call common_val_print.
13155 (ada_val_print_1): Update.
13156 (ada_value_print_1): New function.
13157 (ada_value_print_inner): Rewrite.
13158
fbf54e75
TT
131592020-03-13 Tom Tromey <tom@tromey.com>
13160
13161 * cp-valprint.c (cp_print_value_fields): Update.
13162 (cp_print_value): New function.
13163
64b653ca
TT
131642020-03-13 Tom Tromey <tom@tromey.com>
13165
13166 * m2-valprint.c (m2_value_print_inner): Use
13167 cp_print_value_fields.
13168 * cp-valprint.c (cp_print_value_fields): New function.
13169 * c-valprint.c (c_value_print_struct): New function.
13170 (c_value_print_inner): Use c_value_print_struct.
13171 * c-lang.h (cp_print_value_fields): Declare.
13172
6999f067
TT
131732020-03-13 Tom Tromey <tom@tromey.com>
13174
13175 * c-valprint.c (c_value_print_array): New function.
13176 (c_value_print_inner): Use it.
13177
ce80b8bd
TT
131782020-03-13 Tom Tromey <tom@tromey.com>
13179
13180 * c-valprint.c (c_value_print_memberptr): New function.
13181 (c_value_print_inner): Use it.
13182
2faac269
TT
131832020-03-13 Tom Tromey <tom@tromey.com>
13184
13185 * c-valprint.c (c_value_print_int): New function.
13186 (c_value_print_inner): Use it.
13187
da3e2c29
TT
131882020-03-13 Tom Tromey <tom@tromey.com>
13189
13190 * c-valprint.c (c_value_print_ptr): New function.
13191 (c_value_print_inner): Use it.
13192
50836231
TT
131932020-03-13 Tom Tromey <tom@tromey.com>
13194
13195 * c-valprint.c (c_value_print_inner): Rewrite.
13196
4f412b6e
TT
131972020-03-13 Tom Tromey <tom@tromey.com>
13198
13199 * valprint.c (generic_value_print_complex): New function.
13200 (generic_value_print): Use it.
13201
f5354008
TT
132022020-03-13 Tom Tromey <tom@tromey.com>
13203
13204 * valprint.c (generic_val_print_float): Don't call
13205 val_print_scalar_formatted.
13206 (generic_val_print, generic_value_print): Update.
13207
3eec3b05
TT
132082020-03-13 Tom Tromey <tom@tromey.com>
13209
13210 * valprint.c (generic_value_print_char): New function
13211 (generic_value_print): Use it.
13212
fdddfccb
TT
132132020-03-13 Tom Tromey <tom@tromey.com>
13214
13215 * valprint.c (generic_value_print_int): New function.
13216 (generic_value_print): Use it.
13217
6dde7521
TT
132182020-03-13 Tom Tromey <tom@tromey.com>
13219
13220 * valprint.c (generic_value_print_bool): New function.
13221 (generic_value_print): Use it.
13222
4112d2e6
TT
132232020-03-13 Tom Tromey <tom@tromey.com>
13224
13225 * valprint.c (generic_val_print_func): Simplify.
13226 (generic_val_print, generic_value_print): Update.
13227
65786af6
TT
132282020-03-13 Tom Tromey <tom@tromey.com>
13229
13230 * valprint.c (generic_val_print_flags): Remove.
13231 (generic_val_print, generic_value_print): Update.
13232 (val_print_type_code_flags): Add original_value parameter.
13233
40f3ce18
TT
132342020-03-13 Tom Tromey <tom@tromey.com>
13235
13236 * valprint.c (generic_val_print): Update.
13237 (generic_value_print): Update.
13238 * valprint.c (generic_val_print_enum): Don't call
13239 val_print_scalar_formatted.
13240
2a5b130b
TT
132412020-03-13 Tom Tromey <tom@tromey.com>
13242
13243 * valprint.c (generic_value_print): Call generic_value_print_ptr.
13244 * valprint.c (generic_value_print_ptr): New function.
13245
abc66ce9
TT
132462020-03-13 Tom Tromey <tom@tromey.com>
13247
13248 * valprint.c (generic_value_print): Rewrite.
13249
07a32858
TT
132502020-03-13 Tom Tromey <tom@tromey.com>
13251
13252 * p-valprint.c (pascal_object_print_value_fields)
13253 (pascal_object_print_value): New functions.
13254
64d64d3a
TT
132552020-03-13 Tom Tromey <tom@tromey.com>
13256
13257 * p-valprint.c (pascal_value_print_inner): Rewrite.
13258
6a95a1f5
TT
132592020-03-13 Tom Tromey <tom@tromey.com>
13260
13261 * f-valprint.c (f_value_print_innner): Rewrite.
13262
59fcdac6
TT
132632020-03-13 Tom Tromey <tom@tromey.com>
13264
13265 * m2-valprint.c (m2_print_unbounded_array): New overload.
13266 (m2_print_unbounded_array): Update.
13267 (m2_print_array_contents): Take a struct value.
13268 (m2_value_print_inner): Rewrite.
13269
d133c3e1
TT
132702020-03-13 Tom Tromey <tom@tromey.com>
13271
13272 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
13273 (d_value_print_inner): New function.
13274 * d-lang.h (d_value_print_inner): Declare.
13275 * d-lang.c (d_language_defn): Use d_value_print_inner.
13276
23b0f06b
TT
132772020-03-13 Tom Tromey <tom@tromey.com>
13278
13279 * go-valprint.c (go_value_print_inner): New function.
13280 * go-lang.h (go_value_print_inner): Declare.
13281 * go-lang.c (go_language_defn): Use go_value_print_inner.
13282
5f56f7cb
TT
132832020-03-13 Tom Tromey <tom@tromey.com>
13284
13285 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
13286 API.
13287 (rust_val_print): Rewrite.
13288 (rust_value_print_inner): New function, from rust_val_print.
13289 (rust_language_defn): Use rust_value_print_inner.
13290
26792ee0
TT
132912020-03-13 Tom Tromey <tom@tromey.com>
13292
13293 * ada-valprint.c (ada_value_print_inner): New function.
13294 * ada-lang.h (ada_value_print_inner): Declare.
13295 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
13296
24051bbe
TT
132972020-03-13 Tom Tromey <tom@tromey.com>
13298
13299 * f-valprint.c (f_value_print_innner): New function.
13300 * f-lang.h (f_value_print_innner): Declare.
13301 * f-lang.c (f_language_defn): Use f_value_print_innner.
13302
c0941be6
TT
133032020-03-13 Tom Tromey <tom@tromey.com>
13304
13305 * p-valprint.c (pascal_value_print_inner): New function.
13306 * p-lang.h (pascal_value_print_inner): Declare.
13307 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
13308
62c4663d
TT
133092020-03-13 Tom Tromey <tom@tromey.com>
13310
13311 * m2-valprint.c (m2_value_print_inner): New function.
13312 * m2-lang.h (m2_value_print_inner): Declare.
13313 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
13314
62182190
TT
133152020-03-13 Tom Tromey <tom@tromey.com>
13316
13317 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
13318 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
13319 * c-valprint.c (c_value_print_inner): New function.
13320 * c-lang.h (c_value_print_inner): Declare.
13321 * c-lang.c (c_language_defn, cplus_language_defn)
13322 (asm_language_defn, minimal_language_defn): Use
13323 c_value_print_inner.
13324
1e592a8a
TT
133252020-03-13 Tom Tromey <tom@tromey.com>
13326
13327 * p-valprint.c (pascal_object_print_value_fields): Now static.
13328 * p-lang.h (pascal_object_print_value_fields): Don't declare.
13329
7fe471e9
TT
133302020-03-13 Tom Tromey <tom@tromey.com>
13331
13332 * c-valprint.c (c_val_print_array): Simplify.
13333
d121c6ce
TT
133342020-03-13 Tom Tromey <tom@tromey.com>
13335
13336 * valprint.c (value_print_array_elements): New function.
13337 * valprint.h (value_print_array_elements): Declare.
13338
4dba70ee
TT
133392020-03-13 Tom Tromey <tom@tromey.com>
13340
13341 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
13342 * mips-tdep.c (mips_print_register): Use
13343 value_print_scalar_formatted.
13344
4f9ae810
TT
133452020-03-13 Tom Tromey <tom@tromey.com>
13346
13347 * valprint.h (value_print_scalar_formatted): Declare.
13348 * valprint.c (value_print_scalar_formatted): New function.
13349
156bfec9
TT
133502020-03-13 Tom Tromey <tom@tromey.com>
13351
13352 * valprint.h (generic_value_print): Declare.
13353 * valprint.c (generic_value_print): New function.
13354
2b4e573d
TT
133552020-03-13 Tom Tromey <tom@tromey.com>
13356
13357 * valprint.c (do_val_print): Call la_value_print_inner, if
13358 available.
13359 * rust-lang.c (rust_language_defn): Update.
13360 * p-lang.c (pascal_language_defn): Update.
13361 * opencl-lang.c (opencl_language_defn): Update.
13362 * objc-lang.c (objc_language_defn): Update.
13363 * m2-lang.c (m2_language_defn): Update.
13364 * language.h (struct language_defn) <la_value_print_inner>: New
13365 member.
13366 * language.c (unknown_language_defn, auto_language_defn): Update.
13367 * go-lang.c (go_language_defn): Update.
13368 * f-lang.c (f_language_defn): Update.
13369 * d-lang.c (d_language_defn): Update.
13370 * c-lang.c (c_language_defn, cplus_language_defn)
13371 (asm_language_defn, minimal_language_defn): Update.
13372 * ada-lang.c (ada_language_defn): Update.
13373
a1f6a07c
TT
133742020-03-13 Tom Tromey <tom@tromey.com>
13375
13376 * c-valprint.c (c_value_print): Use common_val_print.
13377
410cf315
TT
133782020-03-13 Tom Tromey <tom@tromey.com>
13379
13380 * cp-valprint.c (cp_print_static_field): Use common_val_print.
13381
72a45c93
TT
133822020-03-13 Tom Tromey <tom@tromey.com>
13383
13384 * f-valprint.c (f77_print_array_1, f_val_print): Use
13385 common_val_print.
13386
040f66bd
TT
133872020-03-13 Tom Tromey <tom@tromey.com>
13388
13389 * riscv-tdep.c (riscv_print_one_register_info): Use
13390 common_val_print.
13391
a6e05a6c
TT
133922020-03-13 Tom Tromey <tom@tromey.com>
13393
13394 * mi/mi-main.c (output_register): Use common_val_print.
13395
3444c526
TT
133962020-03-13 Tom Tromey <tom@tromey.com>
13397
13398 * infcmd.c (default_print_one_register_info): Use
13399 common_val_print.
13400
c2a44efe
TT
134012020-03-13 Tom Tromey <tom@tromey.com>
13402
13403 * valprint.h (common_val_print_checked): Declare.
13404 * valprint.c (common_val_print_checked): New function.
13405 * stack.c (print_frame_arg): Use common_val_print_checked.
13406
b0c26e99
TT
134072020-03-13 Tom Tromey <tom@tromey.com>
13408
13409 * valprint.c (do_val_print): New function, from val_print.
13410 (val_print): Use do_val_print.
13411 (common_val_print): Use do_val_print.
13412
ce3acbe9
TT
134132020-03-13 Tom Tromey <tom@tromey.com>
13414
13415 * valprint.c (value_print): Use scoped_value_mark.
13416
96c7f873
TV
134172020-03-13 Tom de Vries <tdevries@suse.de>
13418
13419 PR symtab/25646
13420 * psymtab.c (partial_symtab::partial_symtab): Don't set
13421 globals_offset and statics_offset. Push element onto
13422 current_global_psymbols and current_static_psymbols stacks.
13423 (concat): New function.
13424 (end_psymtab_common): Set globals_offset and statics_offset. Pop
13425 element from current_global_psymbols and current_static_psymbols
13426 stacks. Concat popped elements to global_psymbols and
13427 static_symbols.
13428 (add_psymbol_to_list): Use current_global_psymbols and
13429 current_static_psymbols stacks.
13430 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
13431 current_static_psymbols fields.
13432
6ba0a321
CB
134332020-03-12 Christian Biesinger <cbiesinger@google.com>
13434
13435 * corelow.c (sniff_core_bfd): Remove.
13436 (class core_target) <m_core_vec>: Remove.
13437 (core_target::core_target): Update.
13438 (core_file_fns): Remove.
13439 (deprecated_add_core_fns): Remove.
13440 (default_core_sniffer): Remove.
13441 (sniff_core_bfd): Remove.
13442 (default_check_format): Remove.
13443 (gdb_check_format): Remove.
13444 (core_target_open): Update.
13445 (core_target::get_core_register_section): Update.
13446 (get_core_registers_cb): Update.
13447 (core_target::fetch_registers): Update.
13448 * gdbcore.h (struct core_fns): Remove.
13449 (deprecated_add_core_fns): Remove.
13450 (default_core_sniffer): Remove.
13451 (default_check_format): Remove.
13452
227031b2
TT
134532020-03-12 Tom Tromey <tom@tromey.com>
13454
13455 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
13456 CORE_ADDR.
13457 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
13458
53807e9f
TT
134592020-03-12 Tom Tromey <tom@tromey.com>
13460
13461 * remote.c (remote_target::download_tracepoint)
13462 (remote_target::enable_tracepoint)
13463 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
13464 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
13465 sprintf_vma.
13466
64f25102
TT
134672020-03-12 Tom Tromey <tom@tromey.com>
13468
13469 * symfile-mem.c: Update CORE_ADDR size assert.
13470
272cd5a3
SM
134712020-03-12 Simon Marchi <simon.marchi@efficios.com>
13472
13473 * selftest.m4: Move to gdbsupport/.
13474 * acinclude.m4: Update path to selftest.m4.
13475
74cd3f9d
SM
134762020-03-12 Simon Marchi <simon.marchi@efficios.com>
13477
13478 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
13479 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
13480 gdbarch-selfselftests.c and selftest-arch.c.
13481 (SUBDIR_UNITTESTS_OBS): Rename to...
13482 (SELFTESTS_OBS): ... this.
13483 (COMMON_SFILES): Remove disasm-selftests.c and
13484 gdbarch-selftests.c.
13485 * configure.ac: Don't add selftest-arch.{c,o} to
13486 CONFIG_{SRCS,OBS}.
13487 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
13488 preprocessor conditions.
13489
db6878ac
SM
134902020-03-12 Simon Marchi <simon.marchi@efficios.com>
13491
13492 * configure.ac: Don't source bfd/development.sh.
13493 * selftest.m4: Modify comment.
13494 * configure: Re-generate.
13495
4d696a5c
SM
134962020-03-12 Simon Marchi <simon.marchi@efficios.com>
13497
13498 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
13499 not "true" or "false".
13500 * configure: Re-generate.
13501
8dd8e1c7
CB
135022020-03-12 Christian Biesinger <cbiesinger@google.com>
13503
13504 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
13505 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
13506 renamed to arm_nbsd_supply_gregset.
13507 (fetch_register): Update to call arm_nbsd_supply_gregset.
13508 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
13509 (arm_netbsd_nat_target::fetch_registers): Update.
13510 (fetch_elfcore_registers): Removed.
13511 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
13512 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
13513 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
13514 not require NetBSD system headers.
13515 (arm_nbsd_regset): New struct.
13516 (arm_nbsd_iterate_over_regset_sections): New function.
13517 (arm_netbsd_init_abi_common): Updated to call
13518 set_gdbarch_iterate_over_regset_sections.
13519 * arm-nbsd-tdep.h: New file.
13520
dd69bf7a
KB
135212020-03-11 Kevin Buettner <kevinb@redhat.com>
13522
13523 * symtab.c (find_pc_sect_line): Add check which prevents infinite
13524 recursion.
13525
a0761e34
SM
135262020-03-11 Simon Marchi <simon.marchi@efficios.com>
13527
13528 * configure: Re-generate.
13529
e7a82140
TT
135302020-03-11 Tom Tromey <tromey@adacore.com>
13531
13532 * ada-typeprint.c (print_choices): Fix comment.
13533
dcc050c8
AB
135342020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
13535
13536 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
13537 previous item in the list, when the list has no items.
13538
1c33af77
TV
135392020-03-11 Tom de Vries <tdevries@suse.de>
13540
13541 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
13542 PROP_LOCLIST handling code.
13543
8c95582d
AB
135442020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
13545
13546 * buildsym-legacy.c (record_line): Pass extra parameter to
13547 record_line.
13548 * buildsym.c (buildsym_compunit::record_line): Take an extra
13549 parameter, reduce duplication in the line table, and record the
13550 is_stmt flag in the line table.
13551 * buildsym.h (buildsym_compunit::record_line): Add extra
13552 parameter.
13553 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
13554 non-statement lines.
13555 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
13556 this to the symtab builder.
13557 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
13558 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
13559 through to dwarf_record_line_1.
13560 * infrun.c (process_event_stop_test): When stepping, don't stop at
13561 a non-statement instruction, and only refresh the step info when
13562 we land in the middle of a line's range. Also add an extra
13563 comment.
13564 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
13565 field.
13566 * record-btrace.c (btrace_find_line_range): Only record lines
13567 marked as is-statement.
13568 * stack.c (frame_show_address): Show the frame address if we are
13569 in a non-statement sal.
13570 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
13571 (maintenance_print_one_line_table): Print a header for the is_stmt
13572 column, and include is_stmt information in the output.
13573 * symtab.c (find_pc_sect_line): Find lines marked as statements in
13574 preference to non-statements.
13575 (find_pcs_for_symtab_line): Prefer is-statement entries.
13576 (find_line_common): Likewise.
13577 * symtab.h (struct linetable_entry): Add is_stmt field.
13578 (struct symtab_and_line): Likewise.
13579 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
13580 arranging the line table.
13581
e4003a34
TV
135822020-03-07 Tom de Vries <tdevries@suse.de>
13583
13584 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
13585 DIE.
13586
e8932576
TT
135872020-03-07 Tom Tromey <tom@tromey.com>
13588
13589 * valops.c (value_literal_complex): Remove obsolete comment.
13590 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
13591 comment.
13592
29734269
SM
135932020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
13594
13595 * infrun.h: Forward-declare thread_info.
13596 (set_step_info): Add thread_info parameter, add doc.
13597 * infrun.c (set_step_info): Add thread_info parameter, move doc
13598 to header.
13599 * infrun.c (process_event_stop_test): Pass thread to
13600 set_step_info call.
13601 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
13602 set_step_info.
13603 (prepare_one_step): Add thread_info parameter, pass it to
13604 set_step_frame and prepare_one_step (recursive) call.
13605 (step_1): Pass thread to prepare_one_step call.
13606 (step_command_fsm::should_stop): Pass thread to
13607 prepare_one_step.
13608 (until_next_fsm): Pass thread to set_step_frame call.
13609 (finish_command): Pass thread to set_step_info call.
13610
b7d64b29
HD
136112020-03-06 Hannes Domani <ssbssa@yahoo.de>
13612
13613 * windows-tdep.c (windows_solib_create_inferior_hook):
13614 Check if inferior is running.
13615
09f2921c
TV
136162020-03-06 Tom de Vries <tdevries@suse.de>
13617
13618 * NEWS: Fix "the the".
13619 * ctfread.c: Same.
13620
fd760e79
TV
136212020-03-06 Tom de Vries <tdevries@suse.de>
13622
13623 * psymtab.c (psymtab_to_symtab): Don't print "done.".
13624
20ea4a60
AB
136252020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13626
13627 * .dir-locals.el: Add a comment referencing the other copies of
13628 this file.
13629
0afbabf0
JB
136302020-03-05 John Baldwin <jhb@FreeBSD.org>
13631
13632 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
13633 psargs.
13634
842806cb
TBA
136352020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13636
13637 * .gitattributes: New file.
13638
be1e3d3e
TT
136392020-03-04 Tom Tromey <tom@tromey.com>
13640
13641 * symmisc.c (print_symbol_bcache_statistics)
13642 (print_objfile_statistics): Update.
13643 * symfile.c (allocate_symtab): Use intern.
13644 * psymtab.c (partial_symtab::partial_symtab): Use intern.
13645 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
13646 macro_cache>: Remove.
13647 <string_cache>: New member.
13648 (struct objfile) <intern>: New methods.
13649 * elfread.c (elf_symtab_read): Use intern.
13650 * dwarf2/read.c (fixup_go_packaging): Intern package name.
13651 (dwarf2_compute_name, dwarf2_physname)
13652 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
13653 names.
13654 (guess_partial_die_structure_name): Update.
13655 (partial_die_info::fixup): Intern name.
13656 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
13657 name.
13658 (dwarf2_name): Intern name. Update.
13659 * buildsym.c (buildsym_compunit::get_macro_table): Use
13660 string_cache.
13661
4e7625fd
TT
136622020-03-04 Tom Tromey <tom@tromey.com>
13663
13664 * jit.c (bfd_open_from_target_memory): Make "target" const.
13665 * corefile.c (gnutarget): Now const.
13666 * gdbcore.h (gnutarget): Now const.
13667
46f9f931
HD
136682020-03-04 Hannes Domani <ssbssa@yahoo.de>
13669
13670 * NEWS: Mention support for WOW64 processes.
13671 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
13672 (amd64_windows_segment_register_p): Remove static.
13673 (_initialize_amd64_windows_nat): Update.
13674 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
13675 * i386-windows-nat.c (context_offset): Update.
13676 (i386_mappings): Rename and remove static.
13677 (i386_windows_segment_register_p): Remove static.
13678 (_initialize_i386_windows_nat): Update.
13679 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
13680 (STATUS_WX86_SINGLE_STEP): New macro.
13681 (EnumProcessModulesEx): New macro.
13682 (Wow64SuspendThread): New macro.
13683 (Wow64GetThreadContext): New macro.
13684 (Wow64SetThreadContext): New macro.
13685 (Wow64GetThreadSelectorEntry): New macro.
13686 (windows_set_context_register_offsets): Add static.
13687 (windows_set_segment_register_p): Likewise.
13688 (windows_add_thread): Adapt for WOW64 processes.
13689 (windows_fetch_one_register): Likewise.
13690 (windows_nat_target::fetch_registers): Likewise.
13691 (windows_store_one_register): Likewise.
13692 (display_selector): Likewise.
13693 (display_selectors): Likewise.
13694 (handle_exception): Likewise.
13695 (windows_continue): Likewise.
13696 (windows_nat_target::resume): Likewise.
13697 (windows_add_all_dlls): Likewise.
13698 (do_initial_windows_stuff): Likewise.
13699 (windows_nat_target::attach): Likewise.
13700 (windows_get_exec_module_filename): Likewise.
13701 (windows_nat_target::create_inferior): Likewise.
13702 (windows_xfer_siginfo): Likewise.
13703 (_initialize_loadable): Initialize Wow64SuspendThread,
13704 Wow64GetThreadContext, Wow64SetThreadContext,
13705 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
13706 * windows-nat.h (windows_set_context_register_offsets):
13707 Remove declaration.
13708 (windows_set_segment_register_p): Likewise.
13709 (i386_windows_segment_register_p): Add declaration.
13710 (amd64_windows_segment_register_p): Likewise.
13711
440cf44e
LM
137122020-03-04 Luis Machado <luis.machado@linaro.org>
13713
13714 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
13715 in "info registers" for AArch64/ARM.
13716
13717 The change caused "info registers" to not print GPR's.
13718
13719 gdb/ChangeLog:
13720
13721 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
13722
13723 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13724 when reg->group is empty and reggroup is not.
13725
1009d92f
TT
137262020-03-03 Tom Tromey <tromey@adacore.com>
13727
13728 * dwarf2/frame.c (struct dwarf2_frame_cache)
13729 <checked_tailcall_bottom, entry_cfa_sp_offset,
13730 entry_cfa_sp_offset_p>: Remove members.
13731 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
13732 (dwarf2_frame_prev_register): Don't call
13733 dwarf2_tailcall_sniffer_first.
13734 (dwarf2_append_unwinders): Don't append tailcall unwinder.
13735 * frame-unwind.c (add_unwinder): New fuction.
13736 (frame_unwind_init): Use it. Add tailcall unwinder.
13737
5e5d66b6
AB
137382020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
13739 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13740
13741 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
13742 value should be printed as true.
13743
584cf46d
HD
137442020-03-03 Hannes Domani <ssbssa@yahoo.de>
13745
13746 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
13747 (windows_init_abi): Set and use windows_so_ops.
13748
7b973adc
SDJ
137492020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
13750
13751 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
13752 when verifying if dealing with a convenience variable.
13753
bb7b70ab
LM
137542020-03-03 Luis Machado <luis.machado@linaro.org>
13755
13756 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
13757
9822cb57
SM
137582020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13759
13760 * infrun.c (gdbarch_supports_displaced_stepping): New.
13761 (use_displaced_stepping): Break up conditions in smaller pieces.
13762 Use gdbarch_supports_displaced_stepping.
13763 (displaced_step_prepare_throw): Use
13764 gdbarch_supports_displaced_stepping.
13765
63e163f2
AB
137662020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13767
13768 * NEWS: Mention new behaviour of the history filename.
13769 * top.c (write_history_p): Add comment.
13770 (show_write_history_p): Add header comment, give a different
13771 message when history writing is on, but the history filename is
13772 empty.
13773 (history_filename): Add comment.
13774 (history_filename_empty): New function.
13775 (show_history_filename): Add header comment, give a different
13776 message when the filename is empty.
13777 (init_history): Compare history_filename against nullptr, and only
13778 read history if the filename is not empty.
13779 (set_history_filename): Add header comment, and only make
13780 non-empty filenames absolute.
13781 (init_main): Make the filename argument to 'set history filename'
13782 optional.
13783
81b86b97
CB
137842020-03-02 Christian Biesinger <cbiesinger@google.com>
13785
13786 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
13787 (arm_supply_vfpregset): ...this, and update to use VFP registers.
13788 (fetch_fp_register): Update.
13789 (fetch_fp_regs): Update.
13790 (store_fp_register): Update.
13791 (store_fp_regs): Update.
13792 (arm_netbsd_nat_target::read_description): New function.
13793 (fetch_elfcore_registers): Update.
13794
24ed6739
AB
137952020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13796
13797 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
13798 general_thread if the stop reply is missing a thread-id.
13799 (remote_target::process_stop_reply): Use the first non-exited
13800 thread if the target didn't pass a thread-id.
13801 * infrun.c (do_target_wait): Move call to
13802 switch_to_inferior_no_thread to ....
13803 (do_target_wait_1): ... here.
13804
a84bb2a0
JT
138052020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
13806
13807 * debuginfod-support.c: Include defs.h first.
13808
658dadf0
TV
138092020-02-28 Tom de Vries <tdevries@suse.de>
13810
13811 * symfile.c (set_initial_language): Use default language for lookup.
13812
4ebe4877
SM
138132020-02-28 Simon Marchi <simon.marchi@efficios.com>
13814
13815 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
13816 reader variable, pass `this` to read_cutu_die_from_dwo.
13817
e5da1139
AM
138182020-02-27 Aaron Merey <amerey@redhat.com>
13819
13820 * source.c (open_source_file): Check for nullptr when computing
13821 srcpath.
13822
317f7127
TT
138232020-02-27 Tom Tromey <tromey@adacore.com>
13824
13825 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
13826 member.
13827 (dwarf2_add_field): Don't update nfields.
13828 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
13829
3104d9ee
AB
138302020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13831
13832 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
13833 abs.
13834
b83470bf
TT
138352020-02-26 Tom Tromey <tom@tromey.com>
13836
13837 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
13838 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
13839 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
13840 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
13841 per_cu_data.
13842
edfe0a0c
TT
138432020-02-26 Tom Tromey <tom@tromey.com>
13844
13845 * dwarf2/index-write.c (psym_index_map): Change type.
13846 (add_address_entry_worker, write_one_signatured_type)
13847 (recursively_count_psymbols, recursively_write_psymbols)
13848 (class debug_names, psyms_seen_size, write_gdbindex)
13849 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
13850
0d79cdc4
AM
138512020-02-26 Aaron Merey <amerey@redhat.com>
13852
13853 * Makefile.in: Handle optional debuginfod support.
13854 * NEWS: Update.
13855 * README: Add --with-debuginfod summary.
13856 * config.in: Regenerate.
13857 * configure: Regenerate.
13858 * configure.ac: Handle optional debuginfod support.
13859 * debuginfod-support.c: debuginfod helper functions.
13860 * debuginfod-support.h: Ditto.
13861 * doc/gdb.texinfo: Add --with-debuginfod to configure options
13862 summary.
13863 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
13864 when a dwz file cannot be found.
13865 * elfread.c (elf_symfile_read): Query debuginfod servers when a
13866 debuginfo file cannot be found.
13867 * source.c (open_source_file): Query debuginfod servers when a
13868 source file cannot be found.
13869 * top.c (print_gdb_configuration): Include
13870 --{with,without}-debuginfod in the output.
13871
b65ce565
JG
138722020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
13873
13874 * thread.c (thr_try_catch_cmd): Print thread name.
13875
d4c9a4f8
SM
138762020-02-26 Simon Marchi <simon.marchi@efficios.com>
13877
13878 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
13879 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13880 dwarf2_fetch_die_type_sect_off): Move to...
13881 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
13882 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13883 dwarf2_fetch_die_type_sect_off): ... here.
13884 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
13885 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13886 dwarf2_fetch_die_type_sect_off): Move doc to header file.
13887
0dce4280
TV
138882020-02-26 Tom de Vries <tdevries@suse.de>
13889
13890 PR gdb/25603
13891 * symfile.c (set_initial_language): Exit-early if
13892 language_mode == language_mode_manual.
13893
450a1bfc
SM
138942020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13895
13896 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
13897 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
13898 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
13899
9e80cfa1
AB
139002020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
13901
13902 * gdbtypes.c (create_array_type_with_stride): Handle negative
13903 array strides.
13904 * valarith.c (value_subscripted_rvalue): Likewise.
13905
09624f1f
LM
139062020-02-25 Luis Machado <luis.machado@linaro.org>
13907
13908 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
13909
8cb5117c
SM
139102020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13911
13912 * loc.h (dwarf2_get_die_type): Move to...
13913 * read.h (dwarf2_get_die_type): ... here.
13914 * read.c (dwarf2_get_die_type): Move doc to header.
13915
c325c44e
JB
139162020-02-25 Joel Brobecker <brobecker@adacore.com>
13917
13918 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
13919 'gnulib/Makefile.in' to the list.
13920
4ac93832
TT
139212020-02-24 Tom Tromey <tom@tromey.com>
13922
13923 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
13924 Remove.
13925 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
13926 XOBNEWVEC.
13927
197400e8
TT
139282020-02-24 Tom Tromey <tom@tromey.com>
13929
13930 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
13931 New method.
13932 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
13933 (dw2_do_instantiate_symtab, dw2_get_file_names)
13934 (build_type_psymtab_dependencies, load_full_type_unit): Update.
13935
76935768
TT
139362020-02-24 Tom Tromey <tom@tromey.com>
13937
13938 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
13939 make_scoped_restore.
13940 (dwarf2_psymtab::read_symtab): Don't clear
13941 reading_partial_symbols.
13942
a88ef40d
TV
139432020-02-24 Tom de Vries <tdevries@suse.de>
13944
13945 PR gdb/25592
13946 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
13947
c9af6521
TV
139482020-02-24 Tom de Vries <tdevries@suse.de>
13949
13950 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
13951 commands layout next/prev/regs.
13952
5707a07a
TT
139532020-02-22 Tom Tromey <tom@tromey.com>
13954
13955 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
13956 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
13957
3b0fb49e
TT
139582020-02-22 Tom Tromey <tom@tromey.com>
13959
13960 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
13961
283be8bf
TT
139622020-02-22 Tom Tromey <tom@tromey.com>
13963
13964 * tui/tui-win.c (_initialize_tui_win): Add usage text.
13965 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
13966 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
13967 * tui/tui.c (_initialize_tui): Add usage text.
13968
ca793b96
TT
139692020-02-22 Tom Tromey <tom@tromey.com>
13970
13971 * tui/tui-win.c (tui_set_focus_command)
13972 (tui_set_win_height_command): Use error_no_arg.
13973 (_initialize_tui_win): Update help text.
13974 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
13975
432b5c40
TT
139762020-02-22 Tom Tromey <tom@tromey.com>
13977
13978 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
13979 * tui/tui-disasm.h (struct tui_disasm_window)
13980 <display_start_addr>: Declare.
13981 * tui/tui-source.h (struct tui_source_window)
13982 <display_start_addr>: Declare.
13983 * tui/tui-winsource.h (struct tui_source_window_base)
13984 <show_source_line, display_start_addr>: New methods.
13985 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
13986 Rename and move to protected section.
13987 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
13988 (tui_source_window_base::do_erase_source_content): Update.
13989 (tui_source_window_base::show_source_line): Now a method.
13990 (tui_source_window_base::show_source_content)
13991 (tui_source_window_base::tui_source_window_base)
13992 (tui_source_window_base::rerender)
13993 (tui_source_window_base::refill)
13994 (tui_source_window_base::do_scroll_horizontal)
13995 (tui_source_window_base::set_is_exec_point_at)
13996 (tui_source_window_base::update_breakpoint_info)
13997 (tui_source_window_base::update_exec_info): Update.
13998 * tui/tui-source.c (tui_source_window::set_contents)
13999 (tui_source_window::showing_source_p)
14000 (tui_source_window::do_scroll_vertical)
14001 (tui_source_window::location_matches_p)
14002 (tui_source_window::line_is_displayed): Update.
14003 (tui_source_window::display_start_addr): New method.
14004 * tui/tui-disasm.c (tui_disasm_window::set_contents)
14005 (tui_disasm_window::do_scroll_vertical)
14006 (tui_disasm_window::location_matches_p): Update.
14007 (tui_disasm_window::display_start_addr): New method.
14008
01b1af32
TT
140092020-02-22 Tom Tromey <tom@tromey.com>
14010
14011 * NEWS: Add entry for gdb.register_window_type.
14012 * tui/tui-layout.h (window_factory): New typedef.
14013 (tui_register_window): Declare.
14014 * tui/tui-layout.c (saved_tui_windows): New global.
14015 (tui_apply_current_layout): Use it.
14016 (tui_register_window): New function.
14017 * python/python.c (do_start_initialization): Call
14018 gdbpy_initialize_tui.
14019 (python_GdbMethods): Add "register_window_type" function.
14020 * python/python-internal.h (gdbpy_register_tui_window)
14021 (gdbpy_initialize_tui): Declare.
14022 * python/py-tui.c: New file.
14023 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
14024
fc96d20b
TT
140252020-02-22 Tom Tromey <tom@tromey.com>
14026
14027 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
14028
935c78c0
TT
140292020-02-22 Tom Tromey <tom@tromey.com>
14030
14031 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
14032 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
14033 * tui/tui-data.c (tui_set_win_with_focus): Remove.
14034 (tui_set_win_focus_to): Move from tui-win.c.
14035
0240c8f1
TT
140362020-02-22 Tom Tromey <tom@tromey.com>
14037
14038 * tui/tui-layout.c (make_standard_window, get_locator_window): New
14039 functions.
14040 (known_window_types): New global.
14041 (tui_get_window_by_name): Reimplement.
14042 (initialize_known_windows): New function.
14043 (validate_window_name): Rewrite.
14044 (_initialize_tui_layout): Call initialize_known_windows.
14045
fdb01f0c
TT
140462020-02-22 Tom Tromey <tom@tromey.com>
14047
14048 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
14049 Remove constants.
14050 * tui/tui-winsource.h (struct tui_source_window_base)
14051 <tui_source_window_base>: Remove parameter.
14052 * tui/tui-winsource.c
14053 (tui_source_window_base::tui_source_window_base): Remove
14054 parameter.
14055 (tui_source_window_base::refill): Update.
14056 * tui/tui-stack.h (struct tui_locator_window)
14057 <tui_locator_window>: Update.
14058 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
14059 Default the constructor.
14060 * tui/tui-regs.h (struct tui_data_item_window)
14061 <tui_data_item_window>: Default the constructor.
14062 (struct tui_data_window) <tui_data_window>: Likewise.
14063 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
14064 Default the constructor.
14065 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
14066 Default the constructor.
14067 <type>: Remove.
14068 (struct tui_win_info) <tui_win_info>: Default the constructor.
14069 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
14070 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
14071 Default the constructor.
14072
865a5aec
TT
140732020-02-22 Tom Tromey <tom@tromey.com>
14074
14075 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
14076 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
14077 * tui/tui-win.c (tui_resize_all): Don't call
14078 tui_delete_invisible_windows.
14079 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
14080 done.
14081 (tui_set_layout): Update.
14082 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
14083 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
14084 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
14085
e098d18c
TT
140862020-02-22 Tom Tromey <tom@tromey.com>
14087
14088 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
14089 correctly.
14090
eb9c8874
TT
140912020-02-22 Tom Tromey <tom@tromey.com>
14092
14093 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
14094
7eed1a8e
TT
140952020-02-22 Tom Tromey <tom@tromey.com>
14096
14097 * tui/tui-winsource.h (struct tui_source_window_iterator)
14098 <inner_iterator>: New etytypedef.
14099 <tui_source_window_iterator>: Take "end" parameter.
14100 <tui_source_window_iterator>: Take iterator.
14101 <operator*, advance>: Update.
14102 <m_iter>: Change type.
14103 <m_end>: New field.
14104 (struct tui_source_windows) <begin, end>: Update.
14105 * tui/tui-layout.c (tui_windows): New global.
14106 (tui_apply_current_layout): Clear tui_windows.
14107 (tui_layout_window::apply): Update tui_windows.
14108 * tui/tui-data.h (tui_windows): Declare.
14109 (all_tui_windows): Now inline function.
14110 (class tui_window_iterator, struct all_tui_windows): Remove.
14111
7c043ba6
TT
141122020-02-22 Tom Tromey <tom@tromey.com>
14113
14114 PR tui/17850:
14115 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
14116 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
14117 "height" argument.
14118 (class tui_layout_window) <get_sizes>: Likewise.
14119 (class tui_layout_split) <tui_layout_split>: Add "vertical"
14120 argument.
14121 <get_sizes>: Add "height" argument.
14122 <m_vertical>: New field.
14123 * tui/tui-layout.c (tui_layout_split::clone): Update.
14124 (tui_layout_split::get_sizes): Add "height" argument.
14125 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
14126 (tui_new_layout_command): Parse "-horizontal".
14127 (_initialize_tui_layout): Update help string.
14128 (tui_layout_split::specification): Add "-horizontal" when needed.
14129 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
14130 argument.
14131 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
14132 New methods.
14133
6bc56648
TT
141342020-02-22 Tom Tromey <tom@tromey.com>
14135
14136 * tui/tui-layout.h (enum tui_adjust_result): New.
14137 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
14138 (class tui_layout_window) <adjust_size>: Return
14139 tui_adjust_result. Rewrite.
14140 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
14141 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
14142
c22fef7e
TT
141432020-02-22 Tom Tromey <tom@tromey.com>
14144
14145 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
14146 parameter and return types.
14147 (class tui_layout_base) <specification>: Add "depth".
14148 (class tui_layout_window) <specification>: Add "depth".
14149 (class tui_layout_split) <specification>: Add "depth".
14150 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
14151 and return types.
14152 (tui_new_layout_command): Parse sub-layouts.
14153 (_initialize_tui_layout): Update help string.
14154 (tui_layout_window::specification): Add "depth".
14155 (add_layout_command): Update.
14156
ee325b61
TT
141572020-02-22 Tom Tromey <tom@tromey.com>
14158
14159 * NEWS: Add "tui new-layout" item.
14160 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
14161 Add new-layout command to help text.
14162 (validate_window_name): New function.
14163 (tui_new_layout_command): New function.
14164 (_initialize_tui_layout): Register "new-layout".
14165 (tui_layout_window::specification): New method.
14166 (tui_layout_window::specification): New method.
14167 * tui/tui-layout.h (class tui_layout_base) <specification>: New
14168 method.
14169 (class tui_layout_window) <specification>: New method.
14170 (class tui_layout_split) <specification>: New method.
14171
416eb92d
TT
141722020-02-22 Tom Tromey <tom@tromey.com>
14173
14174 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
14175 * tui/tui-win.c (window_name_completer): Update comment.
14176 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
14177 Declare method.
14178 (class tui_layout_window) <replace_window>: Likewise.
14179 (class tui_layout_split) <replace_window>: Likewise.
14180 (tui_set_layout): Don't declare.
14181 (tui_set_initial_layout): Declare function.
14182 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
14183 (asm_regs_layout): New globals.
14184 (tui_current_layout, show_layout): Remove.
14185 (tui_set_layout, tui_add_win_to_layout): Rewrite.
14186 (find_layout, tui_apply_layout): New function.
14187 (layout_completer): Remove.
14188 (tui_next_layout): Reimplement.
14189 (tui_next_layout_command): New function.
14190 (tui_set_initial_layout, tui_prev_layout_command): New functions.
14191 (tui_regs_layout): Reimplement.
14192 (tui_regs_layout_command): New function.
14193 (extract_display_start_addr): Rewrite.
14194 (next_layout, prev_layout): Remove.
14195 (tui_layout_window::replace_window): New method.
14196 (tui_layout_split::replace_window): New method.
14197 (destroy_layout): New function.
14198 (layout_list): New global.
14199 (add_layout_command): New function.
14200 (initialize_layouts): Update.
14201 (tui_layout_command): New function.
14202 (_initialize_tui_layout): Install "layout" commands.
14203 * tui/tui-data.h (enum tui_layout_type): Remove.
14204 (tui_current_layout): Don't declare.
14205
0dbc2fc7
TT
142062020-02-22 Tom Tromey <tom@tromey.com>
14207
14208 * tui/tui-regs.c (tui_reg_layout): Remove.
14209 (tui_reg_command): Use tui_regs_layout.
14210 * tui/tui-layout.h (tui_reg_command): Declare.
14211 * tui/tui-layout.c (tui_reg_command): New function.
14212
5afe342e
TT
142132020-02-22 Tom Tromey <tom@tromey.com>
14214
14215 * tui/tui.c (tui_rl_delete_other_windows): Call
14216 tui_remove_some_windows.
14217 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
14218 Declare method.
14219 (class tui_layout_window) <remove_windows>: New method.
14220 (class tui_layout_split) <remove_windows>: Declare.
14221 (tui_remove_some_windows): Declare.
14222 * tui/tui-layout.c (tui_remove_some_windows): New function.
14223 (tui_layout_split::remove_windows): New method.
14224
427326a8
TT
142252020-02-22 Tom Tromey <tom@tromey.com>
14226
14227 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
14228 * tui/tui-layout.h (tui_next_layout): Declare.
14229 * tui/tui-layout.c (tui_next_layout): New function.
14230
3fe12b6d
TT
142312020-02-22 Tom Tromey <tom@tromey.com>
14232
14233 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
14234 correct coordinates.
14235
59b8b5d2
TT
142362020-02-22 Tom Tromey <tom@tromey.com>
14237
14238 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
14239 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
14240 DATA_WIN case.
14241
2a3d458b
TT
142422020-02-22 Tom Tromey <tom@tromey.com>
14243
14244 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
14245 TUI_DISASM_WIN, not tui_win_list.
14246
3f0cbb04
TT
142472020-02-22 Tom Tromey <tom@tromey.com>
14248
14249 * valprint.c (generic_val_print_enum_1)
14250 (val_print_type_code_flags): Style member names.
14251 * rust-lang.c (val_print_struct, rust_print_enum)
14252 (rust_print_struct_def, rust_internal_print_type): Style member
14253 names.
14254 * p-valprint.c (pascal_object_print_value_fields): Style member
14255 names. Only call fprintf_symbol_filtered for static members.
14256 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
14257 * f-valprint.c (f_val_print): Style member names.
14258 * f-typeprint.c (f_type_print_base): Style member names.
14259 * cp-valprint.c (cp_print_value_fields): Style member names. Only
14260 call fprintf_symbol_filtered for static members.
14261 (cp_print_class_member): Style member names.
14262 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
14263 member names.
14264 * ada-valprint.c (ada_print_scalar): Style enum names.
14265 (ada_val_print_enum): Likewise.
14266 * ada-typeprint.c (print_enum_type): Style enum names.
14267
d4d947ae
TT
142682020-02-21 Tom Tromey <tom@tromey.com>
14269
14270 * psympriv.h (struct partial_symtab): Update comment.
14271
e94e944b
TT
142722020-02-21 Tom Tromey <tromey@adacore.com>
14273
14274 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
14275 type is CORE_ADDR.
14276
1eb73179
TV
142772020-02-21 Tom de Vries <tdevries@suse.de>
14278
14279 PR gdb/25534
14280 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
14281 if dependencies[i]->user != NULL.
14282
4f180d53
AT
142832020-02-21 Ali Tamur <tamur@google.com>
14284
14285 * dwarf2/read.c (dwarf2_name): Add null check.
14286
22b6cd70
TT
142872020-02-20 Tom Tromey <tom@tromey.com>
14288
14289 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
14290 ">=", in binary search.
14291 (dwarf2_find_containing_comp_unit): New overload.
14292 (run_test): New self-test.
14293 (_initialize_dwarf2_read): Register new test.
14294
bd0cf5a6
NC
142952020-02-20 Nelson Chu <nelson.chu@sifive.com>
14296
14297 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
14298 * riscv-tdep.h: Likewise.
14299 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
14300 rv32-only CSR.
14301 * features/riscv/64bit-csr.xml: Regenerated.
14302
3f702acd
SDJ
143032020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
14304 Tom Tromey <tom@tromey.com>
14305
14306 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
14307 of 'fputc_unfiltered'.
14308 (putchar_unfiltered): Call 'fputc_unfiltered'.
14309 (fputc_unfiltered): Call 'fputs_unfiltered'.
14310
d13c7322
AB
143112020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
14312
14313 * config.in: Regenerate.
14314 * configure: Regenerate.
14315 * configure.ac: Add --with-python-libdir option.
14316 * main.c: Use WITH_PYTHON_LIBDIR.
14317
869d8950
TT
143182020-02-19 Tom Tromey <tom@tromey.com>
14319
14320 * symtab.c (general_symbol_info::compute_and_set_names): Use
14321 obstack_strndup. Simplify call to symbol_set_demangled_name.
14322
298e9637
SM
143232020-02-19 Simon Marchi <simon.marchi@efficios.com>
14324
14325 * dwarf2/read.c (allocate_signatured_type_table,
14326 allocate_dwo_unit_table, allocate_type_unit_groups_table,
14327 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
14328 Remove objfile parameter, update all callers.
14329
08410482
DE
143302020-02-19 Doug Evans <dje@google.com>
14331
14332 PR rust/25535
14333 * rust-lang.c (rust_print_enum): Apply embedded_offset to
14334 rust_enum_variant calculation.
14335
dfdeeca1
TT
143362020-02-19 Tom Tromey <tromey@adacore.com>
14337
14338 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
14339
2ef5453b
TT
143402020-02-19 Tom Tromey <tromey@adacore.com>
14341
14342 * ada-lang.c (cache_symbol): Use obstack_strdup.
14343
9f1528a1
AB
143442020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14345
14346 * configure: Regenerate.
14347
d3c22fa8
TT
143482020-02-19 Tom Tromey <tromey@adacore.com>
14349
14350 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
14351 NULL check.
14352
bf84f706
MR
143532020-02-19 Maciej W. Rozycki <macro@wdc.com>
14354
14355 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
14356
d1c9b20f
AB
143572020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14358
14359 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
14360 if GDBSERVER is not defined.
14361 (riscv_tdesc_cache): Likewise, also store const target_desc.
14362 (STATIC_IN_GDB): Define.
14363 (riscv_create_target_description): Update declaration with
14364 STATIC_IN_GDB.
14365 (riscv_lookup_target_description): New function, only define if
14366 GDBSERVER is not defined.
14367 * arch/riscv.h (riscv_create_target_description): Declare only
14368 when GDBSERVER is defined.
14369 (riscv_lookup_target_description): New declaration when GDBSERVER
14370 is not defined.
14371 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
14372 (riscv_linux_read_features): ...this, and return
14373 riscv_gdbarch_features instead of target_desc.
14374 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
14375 (riscv_linux_read_description): Rename to...
14376 (riscv_linux_read_features): ...this.
14377 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14378 Update to use riscv_gdbarch_features and
14379 riscv_lookup_target_description.
14380 * riscv-tdep.c (riscv_find_default_target_description): Use
14381 riscv_lookup_target_description instead of
14382 riscv_create_target_description.
14383
373d7ac0
SM
143842020-02-18 Simon Marchi <simon.marchi@efficios.com>
14385
14386 * valprint.c (generic_val_print_enum_1): When printing a flag
14387 enum with value 0 and there is no enumerator with value 0, print
14388 just "0" instead of "(unknown: 0x0)".
14389
b29a2df0
SM
143902020-02-18 Simon Marchi <simon.marchi@efficios.com>
14391
14392 * valprint.c (generic_val_print_enum_1): Print unknown part of
14393 flag enum in hex.
14394
6740f0cc
SM
143952020-02-18 Simon Marchi <simon.marchi@efficios.com>
14396
14397 * dwarf2/read.c (update_enumeration_type_from_children): Allow
14398 flag enums to contain duplicate enumerators.
14399 * valprint.c (generic_val_print_enum_1): Update comment.
14400
edd45eb0
SM
144012020-02-18 Simon Marchi <simon.marchi@efficios.com>
14402
14403 * dwarf2/read.c: Include "count-one-bits.h".
14404 (update_enumeration_type_from_children): If an enumerator has
14405 multiple bits set, don't treat the enumeration as a "flag enum".
14406 * valprint.c (generic_val_print_enum_1): Assert that enumerators
14407 of flag enums have 0 or 1 bit set.
14408
6d0cf446
BE
144092020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
14410
14411 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
14412 conversion.
14413 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14414 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14415 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14416 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14417 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14418
7001c1b7
SM
144192020-02-18 Simon Marchi <simon.marchi@efficios.com>
14420
14421 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
14422
fdb61c6c
SM
144232020-02-14 Simon Marchi <simon.marchi@efficios.com>
14424
14425 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
14426 displaced_step_closure_up.
14427 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14428 (struct displaced_step_closure_up):
14429 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14430 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14431 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
14432 Likewise.
14433 * gdbarch.sh (displaced_step_copy_insn): Likewise.
14434 * gdbarch.c, gdbarch.h: Re-generate.
14435 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
14436 displaced_step_closure_up.
14437 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14438 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14439 * infrun.h (displaced_step_closure_up): New type alias.
14440 (struct displaced_step_inferior_state) <step_closure>: Change
14441 type to displaced_step_closure_up.
14442 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
14443 displaced_step_closure_up.
14444 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14445
a4a38eb4
TT
144462020-02-14 Tom Tromey <tom@tromey.com>
14447
14448 * minidebug.c (gnu_debug_key): New global.
14449 (find_separate_debug_file_in_section): Use it.
14450
e8217e61
SM
144512020-02-14 Simon Marchi <simon.marchi@efficios.com>
14452
14453 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
14454 std::unique_ptr.
14455 * gdbarch.c: Re-generate.
14456 * gdbarch.h: Re-generate.
14457 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
14458 change.
14459 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
14460 type to std::unique_ptr.
14461 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14462 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14463 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14464 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14465 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
14466 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14467 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14468 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14469 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14470
d8d83535
SM
144712020-02-14 Simon Marchi <simon.marchi@efficios.com>
14472
14473 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
14474 std::unique_ptr.
14475 (displaced_step_clear): Rename to...
14476 (displaced_step_reset): ... this. Just call displaced->reset ().
14477 (displaced_step_clear_cleanup): Rename to...
14478 (displaced_step_reset_cleanup): ... this.
14479 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
14480 (displaced_step_fixup): Likewise.
14481 (resume_1): Likewise.
14482 (handle_inferior_event): Restore child's memory before calling
14483 displaced_step_fixup on the parent.
14484 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
14485 to std::unique_ptr.
14486 <step_closure>: Change type to std::unique_ptr.
14487
5f661e03
SM
144882020-02-14 Simon Marchi <simon.marchi@efficios.com>
14489
14490 * arm-tdep.c: Include count-one-bits.h.
14491 (cleanup_block_store_pc): Use count_one_bits.
14492 (cleanup_block_load_pc): Use count_one_bits.
14493 (arm_copy_block_xfer): Use count_one_bits.
14494 (thumb2_copy_block_xfer): Use count_one_bits.
14495 (thumb_copy_pop_pc_16bit): Use count_one_bits.
14496 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
14497 (thumb_get_next_pcs_raw): Use count_one_bits.
14498 (arm_get_next_pcs_raw): Use count_one_bits_l.
14499 * arch/arm.c (bitcount): Remove.
14500 * arch/arm.h (bitcount): Remove.
14501
8084e579
TT
145022020-02-14 Tom Tromey <tromey@adacore.com>
14503
14504 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
14505 Update.
14506 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
14507 * dwarf2/loc.c (call_site_find_chain_1): Return
14508 unique_xmalloc_ptr.
14509 (call_site_find_chain): Likewise.
14510
258bf0ee
RB
145112020-02-14 Richard Biener <rguenther@suse.de>
14512
14513 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
14514 on expression with division operators.
14515
f98a8458
AKS
145162020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14517
14518 * MAINTAINERS (Write After Approval): Adding myself.
14519
d1437c0e
TT
145202020-02-12 Tom Tromey <tom@tromey.com>
14521
14522 * event-loop.c (event_data, gdb_event, event_handler_func):
14523 Remove.
14524
3d4560f7
TT
145252020-02-12 Tom Tromey <tom@tromey.com>
14526
14527 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
14528 (dwarf2_frame_objfile_data): Add comment.
14529 (find_comp_unit, set_comp_unit): New functions.
14530 (dwarf2_frame_find_fde): Use find_comp_unit.
14531 (dwarf2_build_frame_info): Use set_comp_unit.
14532
21982304
TT
145332020-02-12 Tom Tromey <tom@tromey.com>
14534
14535 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
14536 (comp_unit): Don't initialize objfile.
14537 (execute_cfa_program): Add text_offset parameter.
14538 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
14539 (dwarf2_frame_cache): Update.
14540 (dwarf2_build_frame_info): Don't set "objfile" member.
14541
4debb237
TT
145422020-02-12 Tom Tromey <tom@tromey.com>
14543
14544 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
14545 (decode_frame_entry): Likewise.
14546 (dwarf2_build_frame_info): Update.
14547
0d404d44
TT
145482020-02-12 Tom Tromey <tom@tromey.com>
14549
14550 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
14551 (decode_frame_entry_1): Use the comp_unit obstack.
14552
a7a3ae5c
TT
145532020-02-12 Tom Tromey <tom@tromey.com>
14554
14555 * dwarf2/frame.c (struct comp_unit): Add initializers and
14556 constructor.
14557 (dwarf2_frame_objfile_data): Store a comp_unit.
14558 (dwarf2_frame_find_fde): Update.
14559 (dwarf2_build_frame_info): Use "new".
14560
a9d65418
TT
145612020-02-12 Tom Tromey <tom@tromey.com>
14562
14563 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
14564 (dwarf2_fde_table): Typedef for std::vector.
14565 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
14566 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
14567 (decode_frame_entry): Update.
14568 (dwarf2_build_frame_info): Use "new".
14569
7559c217
CB
145702020-02-12 Christian Biesinger <cbiesinger@google.com>
14571
14572 * arm-tdep.c (arm_gdbarch_init): Update.
14573 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
14574 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
14575 have_neon, is_m>: Change to bool.
14576
aeefc73c
CB
145772020-02-12 Christian Biesinger <cbiesinger@google.com>
14578
14579 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
14580
d27b8e5f
TT
145812020-02-12 Tom Tromey <tom@tromey.com>
14582
14583 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
14584
cd5900f3
HD
145852020-02-12 Hannes Domani <ssbssa@yahoo.de>
14586
14587 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
14588 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
14589
f056b22b
TT
145902020-02-11 Tom Tromey <tom@tromey.com>
14591
14592 * psymtab.h: Update comment.
14593
f92ff6b5
TT
145942020-02-11 Tom Tromey <tom@tromey.com>
14595
14596 * gdb_obstack.h (struct auto_obstack): Use
14597 DISABLE_COPY_AND_ASSIGN.
14598
3fd6912b
TT
145992020-02-11 Tom Tromey <tom@tromey.com>
14600
14601 * dwarf2/frame.h (struct objfile): Don't forward declare.
14602
69ed9b74
CB
146032020-02-11 Christian Biesinger <cbiesinger@google.com>
14604
14605 * cris-tdep.c (cris_supply_gregset): Change signature to match
14606 what struct regset expects.
14607 (cris_regset): New struct.
14608 (fetch_core_registers): Remove.
14609 (cris_iterate_over_regset_sections): New function.
14610 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
14611 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
14612
bda874f6
CB
146132020-02-11 Christian Biesinger <cbiesinger@google.com>
14614
14615 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
14616 registers.
14617
754e1564
CB
146182020-02-11 Christian Biesinger <cbiesinger@google.com>
14619
14620 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
14621
8ddd8e0e
SM
146222020-02-11 Simon Marchi <simon.marchi@efficios.com>
14623
14624 * configure: Re-generate.
14625
898e7f60
SM
146262020-02-11 Simon Marchi <simon.marchi@efficios.com>
14627
14628 * configure: Re-generate.
14629
58df732b
SM
146302020-02-11 Simon Marchi <simon.marchi@efficios.com>
14631
14632 * acinclude: Update warning.m4 path.
14633 * warning.m4: Move to gdbsupport.
14634
da5bd37e
TT
146352020-02-11 Tom Tromey <tromey@adacore.com>
14636
14637 * remote.c (remote_console_output): Update.
14638 * printcmd.c (printf_command): Update.
14639 * event-loop.c (gdb_wait_for_event): Update.
14640 * linux-nat.c (sigchld_handler): Update.
14641 * remote-sim.c (gdb_os_write_stdout): Update.
14642 (gdb_os_flush_stdout): Update.
14643 (gdb_os_flush_stderr): Update.
14644 (gdb_os_write_stderr): Update.
14645 * exceptions.c (print_exception): Update.
14646 * remote-fileio.c (remote_fileio_func_read): Update.
14647 (remote_fileio_func_write): Update.
14648 * tui/tui.c (tui_enable): Update.
14649 * tui/tui-interp.c (tui_interp::init): Update.
14650 * utils.c (init_page_info): Update.
14651 (putchar_unfiltered, fputc_unfiltered): Update.
14652 (gdb_flush): Update.
14653 (emit_style_escape): Update.
14654 (flush_wrap_buffer, fputs_maybe_filtered): Update.
14655 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
14656 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
14657 (stderr_file::write): Update.
14658 (stderr_file::puts): Update.
14659 * ui-file.h (ui_file_isatty, ui_file_write)
14660 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
14661 (ui_file_puts): Don't declare.
14662
85f0dd3c
TV
146632020-02-10 Tom de Vries <tdevries@suse.de>
14664
14665 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
14666 sentinel to char *.
14667
2e927613
TV
146682020-02-09 Tom de Vries <tdevries@suse.de>
14669
14670 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
14671 filename if it matches "<artificial>".
14672
6bafc845
HD
146732020-02-09 Hannes Domani <ssbssa@yahoo.de>
14674
14675 * windows-tdep.c (struct enum_value_name): New struct.
14676 (create_enum): New function.
14677 (windows_get_siginfo_type): Create and use enum types.
14678
7928d571
HD
146792020-02-09 Hannes Domani <ssbssa@yahoo.de>
14680
14681 * NEWS: Mention $_siginfo support for Windows.
14682 * windows-nat.c (handle_exception): Set siginfo_er.
14683 (windows_nat_target::mourn_inferior): Reset siginfo_er.
14684 (windows_xfer_siginfo): New function.
14685 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
14686 * windows-tdep.c (struct windows_gdbarch_data): New struct.
14687 (init_windows_gdbarch_data): New function.
14688 (get_windows_gdbarch_data): New function.
14689 (windows_get_siginfo_type): New function.
14690 (windows_init_abi): Register windows_get_siginfo_type.
14691 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
14692
6751ebae
TT
146932020-02-08 Tom Tromey <tom@tromey.com>
14694
14695 * dwarf2/read.c (class cutu_reader) <cutu_reader,
14696 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
14697 <keep>: Declare method.
14698 <m_keep>: Remove member.
14699 <~cutu_reader>: Remove.
14700 (cutu_reader::init_tu_and_read_dwo_dies): Update.
14701 (cutu_reader::cutu_reader): Update.
14702 (cutu_reader::keep): Rename from ~cutu_reader.
14703 (process_psymtab_comp_unit, build_type_psymtabs_1)
14704 (process_skeletonless_type_unit, load_partial_comp_unit)
14705 (load_full_comp_unit, dwarf2_read_addr_index)
14706 (read_signatured_type): Update.
14707
135f5437
TT
147082020-02-08 Tom Tromey <tom@tromey.com>
14709
14710 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
14711 "want_partial_unit" parameter.
14712 (process_psymtab_comp_unit): Change want_partial_unit to bool.
14713 Inline check for DW_TAG_partial_unit.
14714 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
14715
9f66ff1c
TT
147162020-02-08 Tom Tromey <tom@tromey.com>
14717
14718 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
14719 read.c.
14720 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
14721 read.c.
14722
c8a7a66f
TT
147232020-02-08 Tom Tromey <tom@tromey.com>
14724
14725 * dwarf2/read.c (read_address): Move to comp-unit.c.
14726 (dwarf2_rnglists_process, dwarf2_ranges_process)
14727 (read_attribute_value, dwarf_decode_lines_1)
14728 (var_decode_location, decode_locdesc): Update.
14729 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
14730 read.c. Remove "cu" parameter.
14731 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
14732 method.
14733
8266302d
TT
147342020-02-08 Tom Tromey <tom@tromey.com>
14735
14736 * dwarf2/read.c (read_attribute_value, read_indirect_string)
14737 (read_indirect_line_string): Update.
14738 * dwarf2/comp-unit.c (read_offset): Remove.
14739 (read_comp_unit_head): Update.
14740 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
14741 method.
14742 (read_offset): Don't declare.
14743
4057dfde
TT
147442020-02-08 Tom Tromey <tom@tromey.com>
14745
14746 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
14747 * dwarf2/read.c (struct comp_unit_head): Move to
14748 dwarf2/comp-unit.h.
14749 (enum class rcuh_kind): Move to comp-unit.h.
14750 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
14751 (read_comp_unit_head, error_check_comp_unit_head)
14752 (read_and_check_comp_unit_head): Move to comp-unit.c.
14753 (read_offset, dwarf_unit_type_name): Likewise.
14754 (create_debug_type_hash_table, read_cutu_die_from_dwo)
14755 (cutu_reader::cutu_reader, read_call_site_scope)
14756 (find_partial_die, follow_die_offset): Update.
14757 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
14758
24aa364d
TT
147592020-02-08 Tom Tromey <tom@tromey.com>
14760
14761 * dwarf2/read.c (read_offset_1): Move to leb.c.
14762 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
14763 (dwarf_decode_macro_bytes): Update.
14764 * dwarf2/leb.c (read_offset): Rename; move from read.c.
14765 * dwarf2/leb.h (read_offset): Declare.
14766
2c7d5afc
TT
147672020-02-08 Tom Tromey <tom@tromey.com>
14768
14769 * dwarf2/read.c (dwarf2_section_size): Remove.
14770 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
14771 Update.
14772 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
14773
4075cb26
TT
147742020-02-08 Tom Tromey <tom@tromey.com>
14775
14776 * dwarf2/read.c (read_initial_length): Move to leb.c.
14777 * dwarf2/leb.h (read_initial_length): Declare.
14778 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
14779 handle_nonstd parameter.
14780 * dwarf2/frame.c (read_initial_length): Remove.
14781 (decode_frame_entry_1): Update.
14782
09ba997f
TT
147832020-02-08 Tom Tromey <tom@tromey.com>
14784
14785 * dwarf2/loc.c (dwarf2_find_location_expression)
14786 (dwarf_evaluate_loc_desc::get_tls_address)
14787 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
14788 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
14789 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
14790 (dwarf2_compile_property_to_c)
14791 (dwarf2_loc_desc_get_symbol_read_needs)
14792 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
14793 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
14794 (loclist_describe_location, loclist_tracepoint_var_ref)
14795 (loclist_generate_c_location): Update.
14796 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
14797 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
14798 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
14799 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
14800 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
14801 (dwarf2_per_cu_data::addr_size)
14802 (dwarf2_per_cu_data::ref_addr_size)
14803 (dwarf2_per_cu_data::text_offset)
14804 (dwarf2_per_cu_data::addr_type): Now methods.
14805 (per_cu_header_read_in): Make per_cu "const".
14806 (dwarf2_version): Remove.
14807 (dwarf2_per_cu_data::int_type): Now a method.
14808 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
14809 (set_die_type, read_array_type, read_subrange_index_type)
14810 (read_tag_string_type, read_subrange_type): Update.
14811 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
14812 offset_size, ref_addr_size, text_offset, addr_type, version,
14813 objfile, int_type, addr_sized_int_type>: Declare methods.
14814
96c738c0
TT
148152020-02-08 Tom Tromey <tom@tromey.com>
14816
14817 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
14818 Move earlier.
14819
8fdd972c
TT
148202020-02-08 Tom Tromey <tom@tromey.com>
14821
14822 * dwarf2/read.h (dwarf_line_debug): Declare.
14823 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
14824 * dwarf2/read.c: Move line_header code to new files.
14825 (dwarf_line_debug): No longer static.
14826 * dwarf2/line-header.c: New file.
14827 * dwarf2/line-header.h: New file.
14828
03075812
TT
148292020-02-08 Tom Tromey <tom@tromey.com>
14830
14831 * dwarf2/read.c (struct line_header) <file_full_name,
14832 file_file_name>: Return unique_xmalloc_ptr.
14833 (line_header::file_file_name): Update.
14834 (line_header::file_full_name): Update.
14835 (dw2_get_file_names_reader): Update.
14836 (macro_start_file): Update.
14837
bb822404
TT
148382020-02-08 Tom Tromey <tom@tromey.com>
14839
14840 * dwarf2/read.c (struct line_header) <file_full_name,
14841 file_file_name>: Declare methods.
14842 (dw2_get_file_names_reader): Update.
14843 (file_file_name): Now a method.
14844 (file_full_name): Likewise.
14845 (macro_start_file): Update.
14846
009b64fc
TT
148472020-02-08 Tom Tromey <tom@tromey.com>
14848
14849 * dwarf2/read.c (dwarf_always_disassemble)
14850 (show_dwarf_always_disassemble): Move to loc.c.
14851 (_initialize_dwarf2_read): Move "always-disassemble" registration
14852 to loc.c.
14853 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
14854 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
14855 static.
14856 (show_dwarf_always_disassemble): Move from read.c.
14857 (_initialize_dwarf2loc): Move always-disassemble from read.c.
14858
5895093f
TT
148592020-02-08 Tom Tromey <tom@tromey.com>
14860
14861 * dwarf2/read.c (~dwarf2_per_objfile): Update.
14862 (create_quick_file_names_table): Return htab_up.
14863 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
14864 Update.
14865 * dwarf2/read.h (struct dwarf2_per_objfile)
14866 <quick_file_names_table>: Now htab_up.
14867
b3b32279
TT
148682020-02-08 Tom Tromey <tom@tromey.com>
14869
14870 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
14871
1d33d811
TT
148722020-02-08 Tom Tromey <tom@tromey.com>
14873
14874 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
14875 Rewrite.
14876 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
14877 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
14878 (abbrev_table::abbrev_table): No longer inline.
14879 (ABBREV_HASH_SIZE): Remove.
14880 (abbrev_table::m_abbrevs): Now an htab_up.
14881
86de1d91
TT
148822020-02-08 Tom Tromey <tom@tromey.com>
14883
14884 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
14885 (cutu_reader): Update.
14886 (build_type_psymtabs_1): Update.
14887 * dwarf2/abbrev.c (abbrev_table::read): Rename.
14888 (abbrev_table::alloc_abbrev): Update.
14889 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
14890 (abbrev_table::read): New static method, renamed from
14891 abbrev_table_read_table.
14892 (abbrev_table::alloc_abbrev)
14893 (abbrev_table::add_abbrev): Now private.
14894 (abbrev_table::abbrev_table): Now private.
14895 (abbrev_table::m_abbrev_obstack): Now private. Rename.
14896
0335378b
TT
148972020-02-08 Tom Tromey <tom@tromey.com>
14898
14899 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
14900 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
14901 htab_up.
14902
48b490f2
TT
149032020-02-08 Tom Tromey <tom@tromey.com>
14904
14905 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
14906 htab_up.
14907 (lookup_dwo_unit_in_dwp): Update.
14908 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
14909 on obstack.
14910
bc68fb19
TT
149112020-02-08 Tom Tromey <tom@tromey.com>
14912
14913 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
14914 obstack.
14915
d15acc42
TT
149162020-02-08 Tom Tromey <tom@tromey.com>
14917
14918 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
14919 line_header_hash.
14920 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
14921 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
14922 Change type to htab_up.
14923
eaa5fa8b
TT
149242020-02-08 Tom Tromey <tom@tromey.com>
14925
14926 * dwarf2/read.c (allocate_type_unit_groups_table): Return
14927 htab_up. Don't allocate on obstack.
14928 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
14929 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
14930 Change type to htab_up.
14931
b0b6a987
TT
149322020-02-08 Tom Tromey <tom@tromey.com>
14933
14934 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
14935 Change type to htab_up.
14936 * dwarf2/read.c (create_signatured_type_table_from_index)
14937 (create_signatured_type_table_from_debug_names)
14938 (create_all_type_units, add_type_unit)
14939 (lookup_dwo_signatured_type, lookup_signatured_type)
14940 (process_skeletonless_type_unit): Update.
14941 (create_debug_type_hash_table, create_debug_types_hash_table):
14942 Change type of types_htab.
14943 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
14944 htab_up. Don't allocate on obstack.
14945 (create_cus_hash_table): Change type of cus_htab parameter.
14946 (struct dwo_file) <cus, tus>: Now htab_up.
14947 (lookup_dwo_signatured_type, lookup_dwo_cutu)
14948 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
14949 (queue_and_load_all_dwo_tus): Update.
14950 * dwarf2/index-write.c (write_gdbindex): Update.
14951 (write_debug_names): Update.
14952
39856def
TT
149532020-02-08 Tom Tromey <tom@tromey.com>
14954
14955 * dwarf2/read.h (struct dwarf2_queue_item): Move from
14956 dwarf2/read.c. Remove "next" member. Add constructor ntad
14957 destructor.
14958 (struct dwarf2_per_objfile) <queue>: New member.
14959 * dwarf2/read.c (struct dwarf2_queue_item): Move to
14960 dwarf2/read.h.
14961 (dwarf2_queue, dwarf2_queue_tail): Remove.
14962 (class dwarf2_queue_guard): Add parameter to constructor. Use
14963 DISABLE_COPY_AND_ASSIGN.
14964 <m_per_objfile>: New member.
14965 <~dwarf2_queue_guard>: Rewrite.
14966 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
14967 Update.
14968 (~dwarf2_queue_item): New.
14969
3e225074
TT
149702020-02-08 Tom Tromey <tom@tromey.com>
14971
14972 * dwarf2/read.c (struct die_info) <has_children>: New member.
14973 (dw2_get_file_names_reader): Remove has_children.
14974 (dw2_get_file_names): Update.
14975 (read_cutu_die_from_dwo): Remove has_children.
14976 (cutu_reader::init_tu_and_read_dwo_dies)
14977 (cutu_reader::cutu_reader): Update.
14978 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
14979 Remove has_children.
14980 (build_type_psymtabs_1, process_skeletonless_type_unit)
14981 (load_partial_comp_unit, load_full_comp_unit): Update.
14982 (create_dwo_cu_reader): Remove has_children.
14983 (create_cus_hash_table, read_die_and_children): Update.
14984 (read_full_die_1,read_full_die): Remove has_children.
14985 (read_signatured_type): Update.
14986 (class cutu_reader) <has_children>: Remove.
14987
82ca8957
TT
149882020-02-08 Tom Tromey <tom@tromey.com>
14989
14990 * dwarf2/expr.c: Rename from dwarf2expr.c.
14991 * dwarf2/expr.h: Rename from dwarf2expr.h.
14992 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
14993 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
14994 * dwarf2/frame.c: Rename from dwarf2-frame.c.
14995 * dwarf2/frame.h: Rename from dwarf2-frame.h.
14996 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
14997 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
14998 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
14999 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
15000 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
15001 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
15002 * dwarf2/loc.c: Rename from dwarf2loc.c.
15003 * dwarf2/loc.h: Rename from dwarf2loc.h.
15004 * dwarf2/read.c: Rename from dwarf2read.c.
15005 * dwarf2/read.h: Rename from dwarf2read.h.
15006 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
15007 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
15008 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
15009 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
15010 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
15011 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
15012 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
15013 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
15014 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
15015 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
15016 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
15017 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
15018 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
15019 Update.
15020 * Makefile.in (COMMON_SFILES): Update.
15021 (HFILES_NO_SRCDIR): Update.
15022
9e35d499
TT
150232020-02-08 Tom Tromey <tom@tromey.com>
15024
15025 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
15026 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
15027
1eba2311
TT
150282020-02-08 Tom Tromey <tom@tromey.com>
15029
15030 * dwarf2read.h (struct die_info): Don't declare.
15031
e41c2da2
TT
150322020-02-08 Tom Tromey <tom@tromey.com>
15033
15034 * dwarf2read.h (die_info_ptr): Remove typedef.
15035
4fc6c0d5
TT
150362020-02-08 Tom Tromey <tom@tromey.com>
15037
15038 * dwarf2read.c (read_call_site_scope)
15039 (handle_data_member_location, dwarf2_add_member_fn)
15040 (mark_common_block_symbol_computed, read_common_block)
15041 (attr_to_dynamic_prop, partial_die_info::read)
15042 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
15043 (dwarf2_symbol_mark_computed, set_die_type): Update.
15044 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
15045 method.
15046 (attr_form_is_block): Don't declare.
15047 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
15048
cd6c91b4
TT
150492020-02-08 Tom Tromey <tom@tromey.com>
15050
15051 * dwarf2read.c (dwarf2_find_base_address, )
15052 (read_call_site_scope, rust_containing_type)
15053 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
15054 (handle_data_member_location, dwarf2_add_member_fn)
15055 (get_alignment, read_structure_type, process_structure_scope)
15056 (mark_common_block_symbol_computed, read_common_block)
15057 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
15058 (partial_die_info::read, read_attribute_value, new_symbol)
15059 (lookup_die_type, dwarf2_get_ref_die_offset)
15060 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
15061 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
15062 (dwarf2_symbol_mark_computed): Update.
15063 * dwarf2/attribute.h (struct attribute) <value_as_address,
15064 form_is_section_offset, form_is_constant, form_is_ref>: Declare
15065 methods.
15066 (value_as_address, attr_form_is_section_offset)
15067 (attr_form_is_constant, attr_form_is_ref): Don't declare.
15068 * dwarf2/attribute.c (attribute::value_as_address)
15069 (attribute::form_is_section_offset, attribute::form_is_constant)
15070 (attribute::form_is_ref): Now methods.
15071
162dce55
TT
150722020-02-08 Tom Tromey <tom@tromey.com>
15073
15074 * dwarf2read.c (struct attribute, DW_STRING)
15075 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
15076 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
15077 (attr_form_is_block, attr_form_is_section_offset)
15078 (attr_form_is_constant, attr_form_is_ref): Move.
15079 * dwarf2/attribute.h: New file.
15080 * dwarf2/attribute.c: New file, from dwarf2read.c.
15081 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
15082
3054dd54
TT
150832020-02-08 Tom Tromey <tom@tromey.com>
15084
15085 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
15086 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
15087 Move.
15088 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
15089 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
15090 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
15091 abbrev.c.
15092 * dwarf2/abbrev.h: New file.
15093 * dwarf2/abbrev.c: New file, from dwarf2read.c.
15094 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
15095
96b79293
TT
150962020-02-08 Tom Tromey <tom@tromey.com>
15097
15098 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
15099 (dwarf2_section_size, dwarf2_get_section_info)
15100 (create_signatured_type_table_from_debug_names)
15101 (create_addrmap_from_aranges, read_debug_names_from_section)
15102 (get_gdb_index_contents_from_section, read_comp_unit_head)
15103 (error_check_comp_unit_head, read_abbrev_offset)
15104 (create_debug_type_hash_table, init_cu_die_reader)
15105 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
15106 (read_comp_units_from_section, create_cus_hash_table)
15107 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
15108 (create_dwp_v2_section, dwarf2_rnglists_process)
15109 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
15110 (abbrev_table_read_table, read_indirect_string_at_offset_from)
15111 (read_indirect_string_from_dwz, read_addr_index_1)
15112 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
15113 (dwarf_decode_macro_bytes, dwarf_decode_macros)
15114 (fill_in_loclist_baton): Update.
15115 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
15116 get_containing_section, get_bfd_owner, get_bfd_section,
15117 get_file_name, get_id, get_flags, empty, read>: Declare methods.
15118 (dwarf2_read_section, get_section_name, get_section_file_name)
15119 (get_containing_section, get_section_bfd_owner)
15120 (get_section_bfd_section, get_section_name, get_section_file_name)
15121 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
15122 declare.
15123 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
15124 (dwarf2_section_info::get_bfd_owner)
15125 (dwarf2_section_info::get_bfd_section)
15126 (dwarf2_section_info::get_name)
15127 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
15128 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
15129 (dwarf2_section_info::read): Now methods.
15130 * dwarf-index-write.c (class debug_names): Update.
15131
2c86cff9
TT
151322020-02-08 Tom Tromey <tom@tromey.com>
15133
15134 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
15135 Move to dwarf2/section.h.
15136 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
15137 (get_section_bfd_section, get_section_name)
15138 (get_section_file_name, get_section_id, get_section_flags)
15139 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
15140 dwarf2/section.c.
15141 * dwarf2/section.h: New file.
15142 * dwarf2/section.c: New file, from dwarf2read.c.
15143 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
15144
f4382c45
TT
151452020-02-08 Tom Tromey <tom@tromey.com>
15146
15147 * dwarf2read.h (read_unsigned_leb128): Don't declare.
15148 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
15149 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
15150 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
15151 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
15152 * dwarf2/leb.h: New file, from dwarf2read.c.
15153 * dwarf2/leb.c: New file, from dwarf2read.c.
15154 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
15155 Remove.
15156 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
15157 (COMMON_SFILES): Add dwarf2/leb.c.
15158
01840b7a
JB
151592020-02-08 Joel Brobecker <brobecker@adacore.com>
15160
15161 GDB 9.1 released.
15162
dfcb27e4
IB
151632020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15164
15165 PR gdb/25190:
aac66a4c
SM
15166 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
15167 * gdb/remote.c (remote_console_output): Update.
15168 * gdb/ui-file.c (fputs_unfiltered): Rename to...
15169 (ui_file_puts): ...this.
15170 * gdb/ui-file.h (ui_file_puts): Add declaration.
15171 * gdb/utils.c (emit_style_escape): Update.
15172 (flush_wrap_buffer): Update.
15173 (fputs_maybe_filtered): Update.
15174 (fputs_unfiltered): Add function.
dfcb27e4 15175
faa17681
IB
151762020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15177
aac66a4c
SM
15178 * gdb/event-loop.c (gdb_wait_for_event): Update.
15179 * gdb/printcmd.c (printf_command): Update.
15180 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
15181 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
15182 (gdb_os_flush_stderr): Update.
15183 * gdb/remote.c (remote_console_output): Update.
15184 * gdb/ui-file.c (gdb_flush): Rename to...
15185 (ui_file_flush): ...this.
15186 (stderr_file::write): Update.
15187 (stderr_file::puts): Update.
15188 * gdb/ui-file.h (gdb_flush): Rename to...
15189 (ui_file_flush): ...this.
15190 * gdb/utils.c (gdb_flush): Add function.
15191 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 15192
5abbbe1d
TT
151932020-02-07 Tom Tromey <tromey@adacore.com>
15194
15195 PR breakpoints/24915:
15196 * source.c (find_and_open_source): Do not check basenames_may_differ.
15197
919adfe8
TT
151982020-02-07 Tom Tromey <tom@tromey.com>
15199
15200 * README: Update gdbserver documentation.
15201 * gdbserver: Move to top level.
15202 * configure.tgt (build_gdbserver): Remove.
15203 * configure.ac: Remove --enable-gdbserver.
15204 * configure: Rebuild.
15205 * Makefile.in (distclean): Don't mention gdbserver.
15206
1d5d29e7
SV
152072020-02-06 Shahab Vahedi <shahab@synopsys.com>
15208
15209 * source-cache.c (source_cache::ensure): Surround
15210 get_plain_source_lines with a try/catch.
15211 (source_cache::get_line_charpos): Get rid of try/catch
15212 and only check for the return value of "ensure".
15213 * tui/tui-source.c (tui_source_window::set_contents):
15214 Simplify "nlines" calculation.
15215
6eb1129c
SV
152162020-02-06 Shahab Vahedi <shahab@synopsys.com>
15217
15218 * MAINTAINERS (Write After Approval): Add myself.
15219
c6a42d11
CB
152202020-02-05 Christian Biesinger <cbiesinger@google.com>
15221
15222 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
15223 function call.
15224
c8ecdda6
CB
152252020-02-05 Christian Biesinger <cbiesinger@google.com>
15226
15227 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
15228
f6480e70
MR
152292020-02-05 Maciej W. Rozycki <macro@wdc.com>
15230
15231 * nat/riscv-linux-tdesc.h: New file.
15232 * nat/riscv-linux-tdesc.c: New file, taking code from...
15233 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
15234 ... here.
15235 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
15236 NATDEPFILES.
15237
dcc9fbc6
AB
152382020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
15239
15240 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
15241 we don't set the fake simulator ptid to the null_ptid.
15242
719546c4
SM
152432020-02-03 Simon Marchi <simon.marchi@efficios.com>
15244
15245 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
15246 * gdbthread.h (class thread_info) <resumed>: Likewise.
15247 * infrun.c (resume_1): Likewise.
15248 (proceed): Likewise.
15249 (infrun_thread_stop_requested): Likewise.
15250 (stop_all_threads): Likewise.
15251 (handle_inferior_event): Likewise.
15252 (restart_threads): Likewise.
15253 (finish_step_over): Likewise.
15254 (keep_going_stepped_thread): Likewise.
15255 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
15256 (linux_handle_extended_wait): Likewise.
15257 * record-btrace.c (get_thread_current_frame_id): Likewise.
15258 * record-full.c (record_full_wait_1): Likewise.
15259 * remote.c (remote_target::process_initial_stop_replies): Likewise.
15260 * target.c (target_resume): Likewise.
15261 * thread.c (set_running_thread): Likewise.
15262
e409c542
AKS
152632020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15264
15265 * f-valprint.c (f77_print_array_1): Changed datatype of index
15266 variable to LONGEST from int to enable it to contain bound
15267 values correctly.
15268
ee98c0da
MR
152692020-02-03 Maciej W. Rozycki <macro@wdc.com>
15270
15271 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
15272 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
15273 offsets according to FLEN determined.
15274 (riscv_linux_nat_target::read_description): Determine FLEN
15275 dynamically.
15276 (riscv_linux_nat_target::fetch_registers): Size regset buffer
15277 according to FLEN determined.
15278 (riscv_linux_nat_target::store_registers): Likewise.
15279
aa66aac4
SV
152802020-02-01 Shahab Vahedi <shahab@synopsys.com>
15281
15282 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
15283 when reg->group is empty and reggroup is not.
15284
fd9faca8
TT
152852020-01-31 Tom Tromey <tromey@adacore.com>
15286
15287 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
15288 Call beneath target's mourn_inferior after unpushing.
15289
42330a68
AB
152902020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15291
15292 PR tui/9765
15293 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
15294 have enough lines to fill the screen, still return the lowest
15295 address we found.
15296
7a27a45b
AB
152972020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15298
15299 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
15300 '-', '<', and '>' commands.
15301
c47f70e2
PA
153022020-01-29 Pedro Alves <palves@redhat.com>
15303 Sergio Durigan Junior <sergiodj@redhat.com>
15304
15305 * infcmd.c (construct_inferior_arguments): Assert that
15306 'argc' is greater than 0.
15307
5133a315
LM
153082020-01-29 Luis Machado <luis.machado@linaro.org>
15309
15310 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
15311 (BRK_INSN_MASK): Define to 0xd4200000.
15312 (aarch64_program_breakpoint_here_p): New function.
15313 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
15314 * arch-utils.c (default_program_breakpoint_here_p): Moved from
15315 breakpoint.c.
15316 * arch-utils.h (default_program_breakpoint_here_p): Moved from
15317 breakpoint.h
15318 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
15319 call gdbarch_program_breakpoint_here_p.
15320 (program_breakpoint_here): Moved to arch-utils.c, renamed to
15321 default_program_breakpoint_here_p, changed return type to bool and
15322 simplified.
15323 * breakpoint.h (program_breakpoint_here): Moved prototype to
15324 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
15325 return type to bool.
15326 * gdbarch.c: Regenerate.
15327 * gdbarch.h: Regenerate.
15328 * gdbarch.sh (program_breakpoint_here_p): New method.
15329 * infrun.c (handle_signal_stop): Call
15330 gdbarch_program_breakpoint_here_p.
15331
168f8c6b
TT
153322020-01-26 Tom Tromey <tom@tromey.com>
15333
15334 * ctfread.c (struct ctf_fp_info): Reindent.
15335 (_initialize_ctfread): Remove.
15336
128a391f
TT
153372020-01-26 Tom Tromey <tom@tromey.com>
15338
15339 * psymtab.c (partial_map_expand_apply)
15340 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
15341 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
15342 (psym_print_stats, psym_expand_symtabs_for_function)
15343 (psym_map_symbol_filenames, psym_map_matching_symbols)
15344 (psym_expand_symtabs_matching)
15345 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
15346 (maintenance_check_psymtabs): Use new methods.
15347 * psympriv.h (struct partial_symtab) <readin_p,
15348 get_compunit_symtab>: New methods.
15349 <readin, compunit_symtab>: Remove members.
15350 (struct standard_psymtab): New.
15351 (struct legacy_psymtab): Derive from standard_psymtab.
15352 * dwarf2read.h (struct dwarf2_psymtab): Derive from
15353 standard_psymtab.
15354 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
15355
0494dbec
TT
153562020-01-26 Tom Tromey <tom@tromey.com>
15357
15358 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
15359 read_dependencies. Add assert.
15360 * psymtab.c (partial_symtab::read_dependencies): New method.
15361 * psympriv.h (struct partial_symtab) <read_dependencies>: New
15362 method.
15363 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
15364 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
15365 read_dependencies.
15366 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
15367 Add assert.
15368
8566b89b
TT
153692020-01-26 Tom Tromey <tom@tromey.com>
15370
15371 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
15372 Call expand_psymtab.
15373 (xcoff_read_symtab): Call expand_psymtab.
15374 (xcoff_start_psymtab, xcoff_end_psymtab): Set
15375 legacy_expand_psymtab.
15376 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
15377 method.
15378 (struct legacy_psymtab) <expand_psymtab>: Implement.
15379 <legacy_expand_psymtab>: New member.
15380 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
15381 (parse_partial_symbols): Set legacy_expand_psymtab.
15382 (psymtab_to_symtab_1): Change argument order. Call
15383 expand_psymtab.
15384 (new_psymtab): Set legacy_expand_psymtab.
15385 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
15386 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
15387 expand_psymtab.
15388 (dwarf2_psymtab::expand_psymtab): Rename from
15389 psymtab_to_symtab_1. Call expand_psymtab.
15390 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
15391 (dbx_end_psymtab): Likewise.
15392 (dbx_psymtab_to_symtab_1): Change argument order. Call
15393 expand_psymtab.
15394 (dbx_read_symtab): Call expand_psymtab.
15395 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
15396 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
15397 (ctf_psymtab::read_symtab): Call expand_psymtab.
15398
077cbab2
TT
153992020-01-26 Tom Tromey <tom@tromey.com>
15400
15401 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
15402 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
15403 messages.
15404 * mdebugread.c (mdebug_read_symtab): Remove prints.
15405 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
15406 assert.
15407 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
15408
891813be
TT
154092020-01-26 Tom Tromey <tom@tromey.com>
15410
15411 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
15412 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
15413 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
15414 legacy_symtab.
15415 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
15416 * psymtab.c (psymtab_to_symtab): Call method.
15417 (dump_psymtab): Update.
15418 * psympriv.h (struct partial_symtab): Add virtual destructor.
15419 <read_symtab>: New method.
15420 (struct legacy_symtab): New.
15421 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
15422 (struct pst_map) <pst>: Now a legacy_psymtab.
15423 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
15424 (new_psymtab): Use legacy_psymtab.
15425 * dwarf2read.h (struct dwarf2_psymtab): New.
15426 (struct dwarf2_per_cu_data) <psymtab>: Use it.
15427 * dwarf2read.c (dwarf2_create_include_psymtab)
15428 (dwarf2_build_include_psymtabs, create_type_unit_group)
15429 (create_partial_symtab, process_psymtab_comp_unit_reader)
15430 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
15431 (set_partial_user): Use dwarf2_psymtab.
15432 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
15433 (psymtab_to_symtab_1, process_full_comp_unit)
15434 (process_full_type_unit, dwarf2_ranges_read)
15435 (dwarf2_get_pc_bounds, psymtab_include_file_name)
15436 (dwarf_decode_lines): Use dwarf2_psymtab.
15437 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
15438 (add_address_entry_worker, write_one_signatured_type)
15439 (recursively_count_psymbols, recursively_write_psymbols)
15440 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
15441 (write_debug_names): Likewise.
15442 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
15443 <pst>: Now a legacy_psymtab.
15444 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
15445 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
15446 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
15447 * ctfread.c (struct ctf_psymtab): New.
15448 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
15449 ctf_psymtab.
15450 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
15451 (create_partial_symtab): Return a ctf_psymtab.
15452 (scan_partial_symbols): Update.
15453
c3693a1d
TT
154542020-01-26 Tom Tromey <tom@tromey.com>
15455
15456 * xcoffread.c (xcoff_start_psymtab): Use new.
15457 * psymtab.c (partial_symtab::partial_symtab): New constructor,
15458 renamed from start_psymtab_common.
15459 * psympriv.h (struct partial_symtab): Add new constructor.
15460 (start_psymtab_common): Don't declare.
15461 * mdebugread.c (parse_partial_symbols): Use new.
15462 * dwarf2read.c (create_partial_symtab): Use new.
15463 * dbxread.c (start_psymtab): Use new.
15464 * ctfread.c (create_partial_symtab): Use new.
15465
32caafd0
TT
154662020-01-26 Tom Tromey <tom@tromey.com>
15467
15468 * xcoffread.c (xcoff_end_psymtab): Use new.
15469 * psymtab.c (start_psymtab_common): Use new.
15470 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
15471 Update.
15472 * psympriv.h (struct partial_symtab): Add parameters to
15473 constructor. Don't inline.
15474 (allocate_psymtab): Don't declare.
15475 * mdebugread.c (new_psymtab): Use new.
15476 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
15477 * dbxread.c (dbx_end_psymtab): Use new.
15478
abaa2f23
TT
154792020-01-26 Tom Tromey <tom@tromey.com>
15480
15481 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
15482 allocate_psymtab. Update documentation.
15483 * psymtab.c (psymtab_storage::install_psymtab): Rename from
15484 allocate_psymtab. Do not use new.
15485 (allocate_psymtab): Use new. Update.
15486
6d94535f
TT
154872020-01-26 Tom Tromey <tom@tromey.com>
15488
15489 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
15490 * psymtab.c (psym_print_stats): Update.
15491 * psympriv.h (struct partial_symtab) <readin,
15492 psymtabs_addrmap_supported, anonymous>: Now bool.
15493 * mdebugread.c (psymtab_to_symtab_1): Update.
15494 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
15495 (build_type_psymtabs_reader, psymtab_to_symtab_1)
15496 (process_full_comp_unit, process_full_type_unit): Update.
15497 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
15498 * ctfread.c (psymtab_to_symtab): Update.
15499
6f17252b
TT
155002020-01-26 Tom Tromey <tom@tromey.com>
15501
15502 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
15503 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
15504 * psymtab.c (psymtab_storage): Delete psymtabs.
15505 (psymtab_storage::allocate_psymtab): Use new.
15506 (psymtab_storage::discard_psymtab): Use delete.
15507 * psympriv.h (struct partial_symtab): Add constructor and
15508 initializers.
15509
f6f1cebc
TT
155102020-01-26 Tom Tromey <tom@tromey.com>
15511
15512 * machoread.c: Do not include psympriv.h.
15513
e47e48f6
PW
155142020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15515
15516 * NEWS: Mention the new option and the set/show commands.
15517
a2fedca9
PW
155182020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15519
15520 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
15521 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
15522 (validate_exec_file): New variables, enums, functions.
15523 (exec_file_locate_attach, print_section_info): Style the filenames.
15524 (_initialize_exec): Install show_exec_file_mismatch_command and
15525 set_exec_file_mismatch_command.
15526 * gdbcore.h (validate_exec_file): Declare.
15527 * infcmd.c (attach_command): Call validate_exec_file.
15528 * remote.c ( remote_target::remote_add_inferior): Likewise.
15529
7ffa82e1
AB
155302020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15531
15532 * frame.c (find_frame_sal): Move call to get_next_frame into more
15533 inner scope.
15534 * inline-frame.c (inilne_state) <inline_state>: Update argument
15535 types.
15536 (inilne_state) <skipped_symbol>: Rename to...
15537 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
15538 (skip_inline_frames): Build vector of skipped symbols and use this
15539 to reate the inline_state.
15540 (inline_skipped_symbol): Add a comment and some assertions, fetch
15541 skipped symbol from the list.
15542
3d92a3e3
AB
155432020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15544
15545 * buildsym.c (lte_is_less_than): Delete.
15546 (buildsym_compunit::end_symtab_with_blockvector): Create local
15547 lambda function to sort line table entries, and use
15548 std::stable_sort instead of std::sort.
15549 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
15550 markers when looking for a previous line.
15551
94a72be7
AB
155522020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15553
15554 * dwarf2read.c (lnp_state_machine::record_line): Include
15555 end_sequence parameter in debug print out. Record the line if we
15556 are at an end_sequence marker even if it's not the start of a
15557 statement.
15558 * symmisc.c (maintenance_print_one_line_table): Print end of
15559 sequence markers with 'END' not '0'.
15560
53af73bf
PA
155612020-01-24 Pedro Alves <palves@redhat.com>
15562
15563 PR gdb/25410
15564 * thread.c (scoped_restore_current_thread::restore): Use
15565 switch_to_inferior_no_thread.
15566 * exec.c: Include "progspace-and-thread.h".
15567 (add_target_sections, remove_target_sections):
15568 scoped_restore_current_pspace_and_thread instead of
15569 scoped_restore_current_thread.
15570 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
15571 and aspace to the inferior before calling clone_program_space.
15572 Remove stale comment.
15573
3050c6f4
CB
155742020-01-24 Christian Biesinger <cbiesinger@google.com>
15575
15576 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
15577 (arm_netbsd_nat_target::fetch_registers): ...this.
15578 (arm_nbsd_nat_target::store_registers): Rename to...
15579 (arm_netbsd_nat_target::store_registers): ...this.
15580
73685c7e
CB
155812020-01-24 Christian Biesinger <cbiesinger@google.com>
15582
15583 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
15584 register_t.
15585
89203d40
CB
155862020-01-24 Christian Biesinger <cbiesinger@google.com>
15587
15588 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
15589 Update comment.
15590 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
15591 Likewise.
15592 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
15593 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
15594 the correct replacement (iterate_over_regset_sections).
15595 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
15596 Update comment.
15597
1ba1ac88
AB
155982020-01-24 Graham Markall <graham.markall@embecosm.com>
15599
15600 PR gdb/23718
15601 * gdb/python/python.c (execute_gdb_command): Call
15602 async_enable_stdin in catch block.
15603
f3364a6d
AB
156042020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15605
15606 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
15607 SWITCH_THRU_ALL_UIS.
15608
733d0a67
AB
156092020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15610
15611 PR tui/9765
15612 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
15613 comment, add extra parameter, and update to store previous symbol
15614 when appropriate.
15615 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
15616 add extra parameter.
15617 * tui/tui-disasm.c (tui_disassemble): Update header comment,
15618 remove unneeded parameter, add try/catch around gdb_print_insn,
15619 rewrite to add items to asm_lines vector.
15620 (tui_find_backward_disassembly_start_address): New function.
15621 (tui_find_disassembly_address): Updated throughout.
15622 (tui_disasm_window::set_contents): Update for changes to
15623 tui_disassemble.
15624 (tui_disasm_window::do_scroll_vertical): No need to adjust the
15625 number of lines to scroll.
15626
b3b3bada
SM
156272020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
15628
15629 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
15630 (SECT_OFF_DATA): Likewise.
15631 (SECT_OFF_RODATA): Likewise.
15632 (SECT_OFF_TEXT): Likewise.
15633 (SECT_OFF_BSS): Likewise.
15634 (struct objfile) <text_section_offset, data_section_offset>: New
15635 methods.
15636 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
15637 objfile::text_section_offset.
15638 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
15639 * coffread.c (coff_symtab_read): Likewise.
15640 (enter_linenos): Likewise.
15641 (process_coff_symbol): Likewise.
15642 * ctfread.c (get_objfile_text_range): Likewise.
15643 * dtrace-probe.c (dtrace_probe::get_relocated_address):
15644 Use objfile::data_section_offset.
15645 * dwarf2-frame.c (execute_cfa_program): Use
15646 objfile::text_section_offset.
15647 (dwarf2_frame_find_fde): Likewise.
15648 * dwarf2read.c (create_addrmap_from_index): Likewise.
15649 (create_addrmap_from_aranges): Likewise.
15650 (dw2_find_pc_sect_compunit_symtab): Likewise.
15651 (process_psymtab_comp_unit_reader): Likewise.
15652 (add_partial_symbol): Likewise.
15653 (add_partial_subprogram): Likewise.
15654 (process_full_comp_unit): Likewise.
15655 (read_file_scope): Likewise.
15656 (read_func_scope): Likewise.
15657 (read_lexical_block_scope): Likewise.
15658 (read_call_site_scope): Likewise.
15659 (dwarf2_rnglists_process): Likewise.
15660 (dwarf2_ranges_process): Likewise.
15661 (dwarf2_ranges_read): Likewise.
15662 (dwarf_decode_lines_1): Likewise.
15663 (new_symbol): Likewise.
15664 (dwarf2_fetch_die_loc_sect_off): Likewise.
15665 (dwarf2_per_cu_text_offset): Likewise.
15666 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
15667 * hppa-tdep.c (read_unwind_info): Likewise.
15668 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
15669 * psympriv.h (struct partial_symtab): Likewise.
15670 * psymtab.c (find_pc_sect_psymtab): Likewise.
15671 * solib-svr4.c (enable_break): Likewise.
15672 * stap-probe.c (relocate_address): Use
15673 objfile::data_section_offset.
15674 * xcoffread.c (enter_line_range): Use
15675 objfile::text_section_offset.
15676 (read_xcoff_symtab): Likewise.
15677
ab53f382
SM
156782020-01-23 Simon Marchi <simon.marchi@efficios.com>
15679
15680 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
15681 declaration to narrower scopes.
15682
e7eee665
SM
156832020-01-23 Simon Marchi <simon.marchi@efficios.com>
15684
15685 * darwin-nat.h (struct darwin_exception_msg, enum
15686 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
15687 Move up.
15688 (class darwin_nat_target) <wait_1, check_new_threads,
15689 decode_exception_message, decode_message, stop_inferior,
15690 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
15691 * darwin-nat.c (darwin_check_new_threads): Rename to...
15692 (darwin_nat_target::check_new_threads): ... this.
15693 (darwin_suspend_inferior_it): Remove.
15694 (darwin_decode_exception_message): Rename to...
15695 (darwin_nat_target::decode_exception_message): ... this.
15696 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
15697 (darwin_decode_message): Rename to...
15698 (darwin_nat_target::decode_message): ... this.
15699 (cancel_breakpoint): Rename to...
15700 (darwin_nat_target::cancel_breakpoint): ... this.
15701 (darwin_wait): Rename to...
15702 (darwin_nat_target::wait_1): ... this. Use range-based for loop
15703 instead of iterate_over_inferiors.
15704 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
15705 (darwin_stop_inferior): Rename to...
15706 (darwin_nat_target::stop_inferior): ... this.
15707 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
15708 (darwin_init_thread_list): Rename to...
15709 (darwin_nat_target::init_thread_list): ... this.
15710 (darwin_ptrace_him): Rename to...
15711 (darwin_nat_target::ptrace_him): ... this.
15712 (darwin_nat_target::create_inferior): Pass lambda function to
15713 fork_inferior.
15714 (darwin_nat_target::detach): Call stop_inferior instead of
15715 darwin_stop_inferior.
15716 * fork-inferior.h (fork_inferior): Change init_trace_fun
15717 parameter to gdb::function_view.
15718 * fork-inferior.c (fork_inferior): Likewise.
15719
c162ed3e
HD
157202020-01-23 Hannes Domani <ssbssa@yahoo.de>
15721
15722 * i386-cygwin-tdep.c (core_process_module_section): Update.
15723 * windows-nat.c (struct lm_info_windows): Add text_offset.
15724 (windows_xfer_shared_libraries): Update.
15725 * windows-tdep.c (windows_xfer_shared_library):
15726 Add text_offset_cached argument.
15727 * windows-tdep.h (windows_xfer_shared_library): Update.
15728
a1237872
SM
157292020-01-21 Simon Marchi <simon.marchi@efficios.com>
15730
15731 * gdbarch.sh: Add declaration for _initialize_gdbarch.
15732
b3ee6dd9
SM
157332020-01-21 Simon Marchi <simon.marchi@efficios.com>
15734
15735 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
15736 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
15737 replace with range-based for.
15738 (gdbsim_interrupt_inferior): Remove.
15739 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
15740 with a range-based for. Inline code from
15741 gdbsim_interrupt_inferior.
15742
f9fac3c8
SM
157432020-01-21 Simon Marchi <simon.marchi@efficios.com>
15744
15745 * infrun.c (proceed): Fix indentation.
15746
f6474de9
TT
157472020-01-21 Tom Tromey <tromey@adacore.com>
15748
15749 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
15750 * python/python.c (python_extension_ops): Update.
15751 (gdbpy_colorize): New function.
15752 * python/lib/gdb/__init__.py (colorize): New function.
15753 * extension.h (ext_lang_colorize): Declare.
15754 * extension.c (ext_lang_colorize): New function.
15755 * extension-priv.h (struct extension_language_ops) <colorize>: New
15756 member.
15757 * cli/cli-style.c (_initialize_cli_style): Update help text.
15758
f0c702d4
LM
157592020-01-21 Luis Machado <luis.machado@linaro.org>
15760
15761 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
15762 <cond>: Change type to bool.
15763 (aarch64_displaced_step_b_cond): Update cond to use bool type.
15764 (aarch64_displaced_step_cb): Likewise.
15765 (aarch64_displaced_step_tb): Likewise.
15766
1ab139e5
LM
157672020-01-21 Luis Machado <luis.machado@linaro.org>
15768
15769 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
15770 output.
15771
0c271889
LM
157722020-01-21 Luis Machado <luis.machado@linaro.org>
15773
15774 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
15775 <pc_adjust>: Adjust the documentation.
15776 (aarch64_displaced_step_fixup): Check if PC really moved before
15777 adjusting it.
15778
4d89c1c7
TT
157792020-01-19 Tom Tromey <tom@tromey.com>
15780
15781 * disasm.c (~gdb_disassembler): New destructor.
15782 (gdb_buffered_insn_length): Call disassemble_free_target.
15783 * disasm.h (class gdb_disassembler): Declare destructor. Use
15784 DISABLE_COPY_AND_ASSIGN.
15785
c0ab21c2
TT
157862020-01-19 Tom Tromey <tom@tromey.com>
15787
15788 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
15789 (die_reader_func_ftype): Remove.
15790 (cutu_reader): New class.
15791 (dw2_get_file_names_reader): Remove "data" parameter.
15792 (dw2_get_file_names): Use cutu_reader.
15793 (create_debug_type_hash_table): Update.
15794 (read_cutu_die_from_dwo): Update comment.
15795 (lookup_dwo_unit): Add dwo_name parameter.
15796 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
15797 die_reader_func_ftype and data parameters.
15798 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
15799 Remove die_reader_func_ftype and data parameters.
15800 (~cutu_reader): New; from init_cutu_and_read_dies.
15801 (cutu_reader::cutu_reader): Rename from
15802 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
15803 and data parameters.
15804 (init_cutu_and_read_dies_simple): Remove.
15805 (struct process_psymtab_comp_unit_data): Remove.
15806 (process_psymtab_comp_unit_reader): Remove data parameter; add
15807 want_partial_unit and pretend_language parameters.
15808 (process_psymtab_comp_unit): Use cutu_reader.
15809 (build_type_psymtabs_reader): Remove data parameter.
15810 (build_type_psymtabs_1): Use cutu_reader.
15811 (process_skeletonless_type_unit): Likewise.
15812 (load_partial_comp_unit_reader): Remove.
15813 (load_partial_comp_unit): Use cutu_reader.
15814 (load_full_comp_unit_reader): Remove.
15815 (load_full_comp_unit): Use cutu_reader.
15816 (struct create_dwo_cu_data): Remove.
15817 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
15818 dwo_unit parameters.
15819 (create_cus_hash_table): Use cutu_reader.
15820 (struct dwarf2_read_addr_index_data): Remove.
15821 (dwarf2_read_addr_index_reader): Remove.
15822 (dwarf2_read_addr_index): Use cutu_reader.
15823 (read_signatured_type_reader): Remove.
15824 (read_signatured_type): Use cutu_reader.
15825
45bbae5c
TT
158262020-01-19 Tom Tromey <tom@tromey.com>
15827
15828 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
15829 * tui/tui-wingeneral.h (class tui_suppress_output): New.
15830 (tui_wrefresh): Declare.
15831 * tui/tui-wingeneral.c (suppress_output): New global.
15832 (tui_suppress_output, ~tui_suppress_output): New constructor and
15833 destructor.
15834 (tui_wrefresh): New function.
15835 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
15836 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
15837 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
15838 method.
15839 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
15840 tui_wrefresh.
15841 (tui_data_window::no_refresh): New method.
15842 (tui_data_item_window::refresh_window): Call tui_wrefresh.
15843 (tui_reg_command): Use tui_suppress_output
15844 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
15845 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
15846 method.
15847 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
15848
4f13c1c0
TT
158492020-01-19 Tom Tromey <tom@tromey.com>
15850
15851 * tui/tui-winsource.c (tui_update_source_windows_with_line):
15852 Handle case where symtab is null.
15853
fa47e446
SM
158542020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
15855
15856 * linux-fork.c (one_fork_p): Simplify.
15857
26f42329
SM
158582020-01-17 Simon Marchi <simon.marchi@efficios.com>
15859
15860 * top.c (struct qt_args): Remove.
15861 (kill_or_detach): Change return type to void, replace `void *`
15862 parameter with a proper one.
15863 (print_inferior_quit_action): Likewise.
15864 (quit_confirm): Use range-based for loop to iterate over inferiors.
15865 (quit_force): Likewise.
15866
a9ac81b1
SM
158672020-01-17 Simon Marchi <simon.marchi@efficios.com>
15868
15869 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
15870 `void *` parameter with proper parameters.
15871 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
15872 (print_one_inferior): Change return type to void, replace `void *`
15873 parameter with proper parameters.
15874 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
15875 inferiors.
15876 (get_other_inferior): Remove.
15877 (mi_cmd_remove_inferior): Use range-based loop to iterate over
15878 inferiors.
15879
788eca49
SM
158802020-01-17 Simon Marchi <simon.marchi@efficios.com>
15881
15882 * mi/mi-interp.c (report_initial_inferior): Remove.
15883 (mi_interp::init): Use range-based for to iterate over inferiors.
15884
d9bc85b6
SM
158852020-01-17 Simon Marchi <simon.marchi@efficios.com>
15886
15887 * python/py-inferior.c (build_inferior_list): Remove.
15888 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
15889
40c94099
CB
158902020-01-16 Christian Biesinger <cbiesinger@google.com>
15891
15892 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
15893 (btrace_stitch_trace): Likewise.
15894 * charset.c (intermediate_encoding): Likewise (vaild).
15895 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
15896 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
15897 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
15898
e0cdfe3c
HD
158992020-01-16 Hannes Domani <ssbssa@yahoo.de>
15900
15901 * windows-tdep.c (windows_get_tlb_type):
15902 Add rtl_user_process_parameters type.
15903
790f1718 159042020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 15905 Norbert Lange <nolange79@gmail.com>
790f1718
PA
15906
15907 PR build/24805
15908 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
15909 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
15910 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
15911 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
15912 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
15913 (ps_plog): Redeclare exported functions with default visibility.
15914
3112ed97
NA
159152020-01-16 Nitika Achra <Nitika.Achra@amd.com>
15916
15917 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
15918 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
15919
8dc3273e
SM
159202020-01-15 Simon Marchi <simon.marchi@efficios.com>
15921
15922 * infcmd.c (post_create_inferior): Use get_thread_regcache
15923 instead of get_current_regcache.
15924
ff47f4f0
TT
159252020-01-14 Tom Tromey <tom@tromey.com>
15926
15927 PR symtab/12535:
15928 * python/python.c (gdbpy_decode_line): Treat empty string the same
15929 as no argument.
15930
975f45b7
TT
159312020-01-14 Tom Tromey <tom@tromey.com>
15932
15933 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
15934
25e57356
TT
159352020-01-14 Tom Tromey <tom@tromey.com>
15936
15937 * nat/linux-btrace.c: Don't include <config.h>.
15938 * nat/linux-ptrace.c: Don't include <config.h>.
15939 * nat/x86-linux-dregs.c: Don't include <config.h>.
15940
05ea2a05
TT
159412020-01-14 Tom Tromey <tom@tromey.com>
15942
15943 * configure: Rebuild.
15944 * configure.ac: Move many checks to ../gdbsupport/common.m4.
15945
01027315
TT
159462020-01-14 Tom Tromey <tom@tromey.com>
15947
15948 * nat/x86-linux-dregs.c: Include configh.h.
15949 * nat/linux-ptrace.c: Include configh.h.
15950 * nat/linux-btrace.c: Include configh.h.
15951 * defs.h: Include config.h, bfd.h.
15952 * configure.ac: Don't source common.host.
15953 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
15954 * configure: Rebuild.
15955 * acinclude.m4: Update path.
15956 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
15957 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
15958 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
15959 (CLIBS): Add LIBSUPPORT.
15960 (CDEPS): Likewise.
15961 (COMMON_SFILES): Remove gdbsupport files.
15962 (HFILES_NO_SRCDIR): Likewise.
15963 (stamp-version): Update path to create-version.sh.
15964 (ALLDEPFILES): Remove gdbsupport files.
15965
b2ceabe8
TT
159662020-01-14 Tom Tromey <tom@tromey.com>
15967
15968 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
15969 USE_WIN32API when needed.
15970 * configure.ac (USE_WIN32API): Don't define.
15971 (WIN32LIBS): Use WIN32APILIBS.
15972 * configure: Rebuild.
15973
25c51f71
TT
159742020-01-14 Tom Tromey <tom@tromey.com>
15975
15976 * configure: Rebuild.
15977 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
15978
717c684d
BE
159792020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
15980
15981 * skip.c (skip_function_command): Make skip w/o arguments use the
15982 name of the inlined function if pc is inside any inlined function.
15983
7da6a5b9
LM
159842020-01-14 Luis Machado <luis.machado@linaro.org>
15985
15986 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
15987 * infrun.c (resume_1): Likewise.
15988 (handle_inferior_event): Remove stale comment.
15989 * linux-nat.c (linux_nat_target::resume): Update comments.
15990 (save_stop_reason): Likewise.
15991 (linux_nat_filter_event): Likewise.
15992 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
15993
44e4c775
AB
159942020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
15995
15996 * elfread.c (record_minimal_symbol): Set section index to 0 for
15997 non-allocatable sections.
15998
18a8505e
AT
15999
160002020-01-13 Ali Tamur <tamur@google.com>
16001
16002 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
16003 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
16004 to gdb::optional. Update comments.
16005 (dwo_file): Update comments.
16006 (read_attribute): Update API to take an additional out parameter,
16007 need_reprocess. This is used to mark attributes that need other
16008 attributes (e.g. str_offsets_base) for correct computation which may not
16009 have been read yet.
16010 (read_attribute_reprocess): New function declaration.
16011 (read_addr_index): Likewise.
16012 (read_dwo_str_index): Likewise.
16013 (read_stub_str_index): Likewise.
16014 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
16015 (lookup_addr_base): New function definition.
16016 (lookup_ranges_base): Likewise.
16017 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
16018 lookup_ranges_base.
16019 (init_cutu_and_read_dies): Update comments.
16020 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
16021 unit. This is used to inherit parent's str_offsets_base and addr_base.
16022 Update comments.
16023 (init_cutu_and_read_dies_simple): Reflect API changes.
16024 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
16025 (create_cus_hash_table): Change API to take parent compile unit.
16026 Reflect API changes.
16027 (open_and_init_dwo_file): Reflect API changes.
16028 (dwarf2_get_pc_bounds): Update comments.
16029 (dwarf2_record_block_ranges): Likewise.
16030 (read_full_die_1): Change implementation to reprocess attributes that
16031 need str_offsets_base and addr_base.
16032 (partial_die_info::read): Likewise.
16033 (read_attribute_reprocess): New function definition.
16034 (read_attribute_value): Change API to take an additional out parameter,
16035 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
16036 when a non-dwo compile unit has index based attributes.
16037 (read_attribute): Reflect API changes.
16038 (read_addr_index_1): Reflect API changes. Update comments.
16039 (dwarf2_read_addr_index_data): Reflect API changes.
16040 (dwarf2_read_addr_index): Likewise.
16041 (read_str_index): Change API and implementation. This becomes a helper
16042 to be used by the new string index related methods. Update error
16043 message and comments.
16044 (read_dwo_str_index): New function definition.
16045 (read_stub_str_index): Likewise.
16046 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
16047 * symfile.h (dwarf2_debug_sections): Likewise.
16048 * xcoffread.c (dwarf2_debug_sections): Likewise.
16049
0cac9354
SM
160502020-01-13 Simon Marchi <simon.marchi@efficios.com>
16051
16052 * gdbcore.h (struct core_fns) <core_read_registers>: Change
16053 core_reg_sect type to gdb_byte *.
16054 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
16055 * cris-tdep.c (fetch_core_registers): Likewise.
16056 * corelow.c (core_target::get_core_register_section): Change
16057 type of `contents` to gdb::byte_vector.
16058
9a6d629c
AB
160592020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16060
16061 * tui/tui-wingeneral.c (box_win): Position the title in the center
16062 of the border.
16063
d8b2f9e3
SM
160642020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16065
16066 * corelow.c (core_target::get_core_register_section): Use
16067 std::vector instead of alloca.
16068
bb564c58
SM
160692020-01-13 Simon Marchi <simon.marchi@efficios.com>
16070
16071 * warning.m4: Add -Wmissing-declarations to build_warnings.
16072 * configure: Re-generate.
16073
6b366111
SM
160742020-01-13 Simon Marchi <simon.marchi@efficios.com>
16075
16076 * python/python.c (init__gdb_module): Add declaration.
16077
6c265988
SM
160782020-01-13 Simon Marchi <simon.marchi@efficios.com>
16079
16080 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
16081 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
16082 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
16083 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
16084 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
16085 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
16086 * ada-exp.y (_initialize_ada_exp): Add declaration.
16087 * ada-lang.c (_initialize_ada_language): Add declaration.
16088 * ada-tasks.c (_initialize_tasks): Add declaration.
16089 * agent.c (_initialize_agent): Add declaration.
16090 * aix-thread.c (_initialize_aix_thread): Add declaration.
16091 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
16092 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
16093 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
16094 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
16095 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
16096 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
16097 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
16098 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
16099 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
16100 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
16101 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
16102 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
16103 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
16104 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
16105 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
16106 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
16107 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
16108 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
16109 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
16110 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
16111 * annotate.c (_initialize_annotate): Add declaration.
16112 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
16113 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
16114 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
16115 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
16116 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
16117 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
16118 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
16119 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
16120 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
16121 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
16122 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
16123 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
16124 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
16125 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
16126 * auto-load.c (_initialize_auto_load): Add declaration.
16127 * auxv.c (_initialize_auxv): Add declaration.
16128 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
16129 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
16130 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
16131 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
16132 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
16133 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
16134 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
16135 * breakpoint.c (_initialize_breakpoint): Add declaration.
16136 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
16137 * btrace.c (_initialize_btrace): Add declaration.
16138 * charset.c (_initialize_charset): Add declaration.
16139 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
16140 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
16141 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
16142 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
16143 * cli/cli-script.c (_initialize_cli_script): Add declaration.
16144 * cli/cli-style.c (_initialize_cli_style): Add declaration.
16145 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
16146 * coffread.c (_initialize_coffread): Add declaration.
16147 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
16148 * compile/compile.c (_initialize_compile): Add declaration.
16149 * complaints.c (_initialize_complaints): Add declaration.
16150 * completer.c (_initialize_completer): Add declaration.
16151 * copying.c (_initialize_copying): Add declaration.
16152 * corefile.c (_initialize_core): Add declaration.
16153 * corelow.c (_initialize_corelow): Add declaration.
16154 * cp-abi.c (_initialize_cp_abi): Add declaration.
16155 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
16156 * cp-support.c (_initialize_cp_support): Add declaration.
16157 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
16158 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
16159 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
16160 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
16161 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
16162 * ctfread.c (_initialize_ctfread): Add declaration.
16163 * d-lang.c (_initialize_d_language): Add declaration.
16164 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
16165 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
16166 * dbxread.c (_initialize_dbxread): Add declaration.
16167 * dcache.c (_initialize_dcache): Add declaration.
16168 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
16169 * disasm.c (_initialize_disasm): Add declaration.
16170 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
16171 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
16172 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
16173 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
16174 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
16175 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
16176 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
16177 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
16178 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
16179 * elfread.c (_initialize_elfread): Add declaration.
16180 * exec.c (_initialize_exec): Add declaration.
16181 * extension.c (_initialize_extension): Add declaration.
16182 * f-lang.c (_initialize_f_language): Add declaration.
16183 * f-valprint.c (_initialize_f_valprint): Add declaration.
16184 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
16185 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
16186 * filesystem.c (_initialize_filesystem): Add declaration.
16187 * findcmd.c (_initialize_mem_search): Add declaration.
16188 * findvar.c (_initialize_findvar): Add declaration.
16189 * fork-child.c (_initialize_fork_child): Add declaration.
16190 * frame-base.c (_initialize_frame_base): Add declaration.
16191 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
16192 * frame.c (_initialize_frame): Add declaration.
16193 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
16194 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
16195 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
16196 * gcore.c (_initialize_gcore): Add declaration.
16197 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
16198 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
16199 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
16200 * gdbarch.c (_initialize_gdbarch): Add declaration.
16201 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
16202 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
16203 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
16204 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
16205 * go-lang.c (_initialize_go_language): Add declaration.
16206 * go32-nat.c (_initialize_go32_nat): Add declaration.
16207 * guile/guile.c (_initialize_guile): Add declaration.
16208 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
16209 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
16210 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
16211 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
16212 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
16213 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
16214 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
16215 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
16216 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
16217 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
16218 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
16219 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
16220 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
16221 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
16222 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
16223 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
16224 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
16225 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
16226 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
16227 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
16228 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
16229 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
16230 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
16231 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
16232 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
16233 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
16234 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
16235 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
16236 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
16237 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
16238 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
16239 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
16240 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
16241 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
16242 * infcall.c (_initialize_infcall): Add declaration.
16243 * infcmd.c (_initialize_infcmd): Add declaration.
16244 * inflow.c (_initialize_inflow): Add declaration.
16245 * infrun.c (_initialize_infrun): Add declaration.
16246 * interps.c (_initialize_interpreter): Add declaration.
16247 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
16248 * jit.c (_initialize_jit): Add declaration.
16249 * language.c (_initialize_language): Add declaration.
16250 * linux-fork.c (_initialize_linux_fork): Add declaration.
16251 * linux-nat.c (_initialize_linux_nat): Add declaration.
16252 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
16253 * linux-thread-db.c (_initialize_thread_db): Add declaration.
16254 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
16255 * m2-lang.c (_initialize_m2_language): Add declaration.
16256 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
16257 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
16258 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
16259 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
16260 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
16261 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
16262 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
16263 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
16264 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
16265 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
16266 * machoread.c (_initialize_machoread): Add declaration.
16267 * macrocmd.c (_initialize_macrocmd): Add declaration.
16268 * macroscope.c (_initialize_macroscope): Add declaration.
16269 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
16270 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
16271 * maint.c (_initialize_maint_cmds): Add declaration.
16272 * mdebugread.c (_initialize_mdebugread): Add declaration.
16273 * memattr.c (_initialize_mem): Add declaration.
16274 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
16275 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
16276 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
16277 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
16278 * mi/mi-main.c (_initialize_mi_main): Add declaration.
16279 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
16280 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
16281 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
16282 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
16283 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
16284 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
16285 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
16286 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
16287 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
16288 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
16289 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
16290 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
16291 * mipsread.c (_initialize_mipsread): Add declaration.
16292 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
16293 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
16294 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
16295 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
16296 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
16297 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
16298 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
16299 * nto-procfs.c (_initialize_procfs): Add declaration.
16300 * objc-lang.c (_initialize_objc_language): Add declaration.
16301 * observable.c (_initialize_observer): Add declaration.
16302 * opencl-lang.c (_initialize_opencl_language): Add declaration.
16303 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
16304 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
16305 * osabi.c (_initialize_gdb_osabi): Add declaration.
16306 * osdata.c (_initialize_osdata): Add declaration.
16307 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
16308 * parse.c (_initialize_parse): Add declaration.
16309 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
16310 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
16311 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
16312 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
16313 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
16314 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
16315 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
16316 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
16317 * printcmd.c (_initialize_printcmd): Add declaration.
16318 * probe.c (_initialize_probe): Add declaration.
16319 * proc-api.c (_initialize_proc_api): Add declaration.
16320 * proc-events.c (_initialize_proc_events): Add declaration.
16321 * proc-service.c (_initialize_proc_service): Add declaration.
16322 * procfs.c (_initialize_procfs): Add declaration.
16323 * producer.c (_initialize_producer): Add declaration.
16324 * psymtab.c (_initialize_psymtab): Add declaration.
16325 * python/python.c (_initialize_python): Add declaration.
16326 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
16327 * record-btrace.c (_initialize_record_btrace): Add declaration.
16328 * record-full.c (_initialize_record_full): Add declaration.
16329 * record.c (_initialize_record): Add declaration.
16330 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
16331 * regcache.c (_initialize_regcache): Add declaration.
16332 * reggroups.c (_initialize_reggroup): Add declaration.
16333 * remote-notif.c (_initialize_notif): Add declaration.
16334 * remote-sim.c (_initialize_remote_sim): Add declaration.
16335 * remote.c (_initialize_remote): Add declaration.
16336 * reverse.c (_initialize_reverse): Add declaration.
16337 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
16338 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
16339 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
16340 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
16341 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
16342 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
16343 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
16344 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
16345 Add declaration.
16346 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
16347 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
16348 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
16349 * rust-exp.y (_initialize_rust_exp): Add declaration.
16350 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
16351 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
16352 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
16353 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
16354 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
16355 * score-tdep.c (_initialize_score_tdep): Add declaration.
16356 * ser-go32.c (_initialize_ser_dos): Add declaration.
16357 * ser-mingw.c (_initialize_ser_windows): Add declaration.
16358 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
16359 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
16360 * ser-uds.c (_initialize_ser_socket): Add declaration.
16361 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
16362 * serial.c (_initialize_serial): Add declaration.
16363 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
16364 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
16365 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
16366 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
16367 * skip.c (_initialize_step_skip): Add declaration.
16368 * sol-thread.c (_initialize_sol_thread): Add declaration.
16369 * solib-aix.c (_initialize_solib_aix): Add declaration.
16370 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
16371 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
16372 * solib-frv.c (_initialize_frv_solib): Add declaration.
16373 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
16374 * solib-target.c (_initialize_solib_target): Add declaration.
16375 * solib.c (_initialize_solib): Add declaration.
16376 * source-cache.c (_initialize_source_cache): Add declaration.
16377 * source.c (_initialize_source): Add declaration.
16378 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
16379 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
16380 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
16381 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
16382 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
16383 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
16384 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
16385 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
16386 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
16387 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
16388 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
16389 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
16390 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
16391 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
16392 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
16393 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
16394 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
16395 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
16396 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
16397 * stabsread.c (_initialize_stabsread): Add declaration.
16398 * stack.c (_initialize_stack): Add declaration.
16399 * stap-probe.c (_initialize_stap_probe): Add declaration.
16400 * std-regs.c (_initialize_frame_reg): Add declaration.
16401 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
16402 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
16403 * symfile.c (_initialize_symfile): Add declaration.
16404 * symmisc.c (_initialize_symmisc): Add declaration.
16405 * symtab.c (_initialize_symtab): Add declaration.
16406 * target.c (_initialize_target): Add declaration.
16407 * target-connection.c (_initialize_target_connection): Add
16408 declaration.
16409 * target-dcache.c (_initialize_target_dcache): Add declaration.
16410 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
16411 * thread.c (_initialize_thread): Add declaration.
16412 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
16413 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
16414 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
16415 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
16416 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
16417 * tracectf.c (_initialize_ctf): Add declaration.
16418 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
16419 * tracefile.c (_initialize_tracefile): Add declaration.
16420 * tracepoint.c (_initialize_tracepoint): Add declaration.
16421 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
16422 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
16423 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
16424 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
16425 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
16426 * tui/tui-win.c (_initialize_tui_win): Add declaration.
16427 * tui/tui.c (_initialize_tui): Add declaration.
16428 * typeprint.c (_initialize_typeprint): Add declaration.
16429 * ui-style.c (_initialize_ui_style): Add declaration.
16430 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
16431 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
16432 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
16433 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
16434 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
16435 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
16436 * unittests/filtered_iterator-selftests.c
16437 (_initialize_filtered_iterator_selftests): Add declaration.
16438 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
16439 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
16440 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
16441 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
16442 * unittests/main-thread-selftests.c
16443 (_initialize_main_thread_selftests): Add declaration.
16444 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
16445 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
16446 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
16447 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
16448 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
16449 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
16450 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
16451 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
16452 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
16453 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
16454 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
16455 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
16456 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
16457 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
16458 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
16459 declaration.
16460 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
16461 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
16462 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
16463 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
16464 * user-regs.c (_initialize_user_regs): Add declaration.
16465 * utils.c (_initialize_utils): Add declaration.
16466 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
16467 * valops.c (_initialize_valops): Add declaration.
16468 * valprint.c (_initialize_valprint): Add declaration.
16469 * value.c (_initialize_values): Add declaration.
16470 * varobj.c (_initialize_varobj): Add declaration.
16471 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
16472 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
16473 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
16474 * windows-nat.c (_initialize_windows_nat): Add declaration.
16475 (_initialize_check_for_gdb_ini): Add declaration.
16476 (_initialize_loadable): Add declaration.
16477 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
16478 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
16479 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
16480 * xcoffread.c (_initialize_xcoffread): Add declaration.
16481 * xml-support.c (_initialize_xml_support): Add declaration.
16482 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
16483 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
16484 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
16485 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
16486
e2de1eec
SM
164872020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16488
16489 * regformats/regdat.sh: Generate declaration for init function.
16490
e0037b4c
SM
164912020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16492
16493 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
16494 up.
16495 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
16496 close_one_inferior>: New methods.
16497 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
16498 pass down target to find_inferior_pid.
16499 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
16500 Pass down target to find_inferior_ptid.
16501 (gdbsim_target::create_inferior): Pass down target to
16502 add_thread_silent.
16503 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
16504 target down to find_inferior_ptid and switch_to_thread.
16505 (gdbsim_target::close): Update to call close_one_inferior.
16506 (struct resume_data): Remove.
16507 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
16508 directly, rather than through a void pointer.
16509 (gdbsim_target::resume): Update to call resume_one_inferior.
16510
58920b5b
SM
165112020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
16512
16513 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
16514
4ec89149
PA
165152020-01-12 Pedro Alves <palves@redhat.com>
16516
16517 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
16518 directly for the current inferior instead of
16519 discard_all_inferiors.
16520 (discard_all_inferiors): Delete.
16521
7c392d1d
TT
165222020-01-11 Tom Tromey <tom@tromey.com>
16523
16524 * tui/tui-wingeneral.c (box_win): Check cli_styling.
16525 * tui/tui-winsource.c (tui_source_window_base::refill): Use
16526 deprecated_safe_get_selected_frame.
16527
d9ebdab7
TBA
165282020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16529
16530 * inferior.c (print_inferior): Switch inferior before printing it.
16531
f3c469b9
PA
165322020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
16533 Pedro Alves <palves@redhat.com>
16534
16535 * progspace-and-thread.c (switch_to_program_space_and_thread):
16536 Assert there's an inferior for PSPACE. Use
16537 switch_to_inferior_no_thread to switch the inferior too.
16538 * progspace.c (program_space::~program_space): Call
16539 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
16540 (program_space::free_all_objfiles): Don't call clear_symtab_users
16541 here.
16542 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
16543
65c574f6
PA
165442020-01-10 Pedro Alves <palves@redhat.com>
16545
16546 * NEWS: Mention multi-target debugging, "info connections", and
16547 "add-inferior -no-connection".
16548
2f4fcf00
PA
165492020-01-10 Pedro Alves <palves@redhat.com>
16550
16551 * infrun.c: Include "target-connection.h".
16552 (check_multi_target_resumption): New.
16553 (proceed): Call it.
16554 * target-connection.c (make_target_connection_string): Make
16555 extern.
16556 * target-connection.h (make_target_connection_string): Declare.
16557
121b3efd
PA
165582020-01-10 Pedro Alves <palves@redhat.com>
16559
16560 * Makefile.in (COMMON_SFILES): Add target-connection.c.
16561 * inferior.c (uiout_field_connection): New function.
16562 (print_inferior): Add new "connection-id" column.
16563 (add_inferior_command): Show connection number/string of added
16564 inferior.
16565 * process-stratum-target.h
16566 (process_stratum_target::connection_string): New virtual method.
16567 (process_stratum_target::connection_number): New field.
16568 * remote.c (remote_target::connection_string): New override.
16569 * target-connection.c: New file.
16570 * target-connection.h: New file.
16571 * target.c (decref_target): Remove process_stratum targets from
16572 the connection list.
16573 (target_stack::push): Add process_stratum targets to the
16574 connection list.
16575
4f837581
PA
165762020-01-10 Pedro Alves <palves@redhat.com>
16577
16578 Revert:
16579 2016-04-12 Pedro Alves <palves@redhat.com>
16580 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
16581 Remove references to name.
16582 * serial.h (struct serial) <name>: Delete.
16583
f4ec508e
PA
165842020-01-10 Pedro Alves <palves@redhat.com>
16585
16586 * gdbarch-selftests.c (register_to_value_test): Remove "target
16587 already pushed" check.
16588
5b6d1e4f
PA
165892020-01-10 Pedro Alves <palves@redhat.com>
16590 John Baldwin <jhb@FreeBSD.org>
16591
16592 * aarch64-linux-nat.c
16593 (aarch64_linux_nat_target::thread_architecture): Adjust.
16594 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
16595 (task_command_1): Likewise.
16596 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
16597 (aix_thread_target::wait, aix_thread_target::fetch_registers)
16598 (aix_thread_target::store_registers)
16599 (aix_thread_target::thread_alive): Adjust.
16600 * amd64-fbsd-tdep.c: Include "inferior.h".
16601 (amd64fbsd_get_thread_local_address): Pass down target.
16602 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
16603 thread's gdbarch instead of target_gdbarch.
16604 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
16605 get_last_target_status.
16606 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
16607 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
16608 inferiors.
16609 (update_inserted_breakpoint_locations): Skip if inferiors with no
16610 execution.
16611 (update_global_location_list): When handling moribund locations,
16612 find representative inferior for location's pspace, and use thread
16613 count of its process_stratum target.
16614 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
16615 * bsd-uthread.c (bsd_uthread_target::wait): Use
16616 as_process_stratum_target and adjust thread_change_ptid and
16617 add_thread calls.
16618 (bsd_uthread_target::update_thread_list): Use
16619 as_process_stratum_target and adjust find_thread_ptid,
16620 thread_change_ptid and add_thread calls.
16621 * btrace.c (maint_btrace_packet_history_cmd): Adjust
16622 find_thread_ptid call.
16623 * corelow.c (add_to_thread_list): Adjust add_thread call.
16624 (core_target_open): Adjust add_thread_silent and thread_count
16625 calls.
16626 (core_target::pid_to_str): Adjust find_inferior_ptid call.
16627 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
16628 * event-top.c (async_disconnect): Pop targets from all inferiors.
16629 * exec.c (add_target_sections): Push exec target on all inferiors
16630 sharing the program space.
16631 (remove_target_sections): Remove the exec target from all
16632 inferiors sharing the program space.
16633 (exec_on_vfork): New.
16634 * exec.h (exec_on_vfork): Declare.
16635 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
16636 Pass it down.
16637 (fbsd_nat_target::update_thread_list): Adjust.
16638 (fbsd_nat_target::resume): Adjust.
16639 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
16640 down.
16641 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
16642 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
16643 get_thread_arch_regcache call.
16644 * fork-child.c (gdb_startup_inferior): Pass target down to
16645 startup_inferior and set_executing.
16646 * gdbthread.h (struct process_stratum_target): Forward declare.
16647 (add_thread, add_thread_silent, add_thread_with_info)
16648 (in_thread_list): Add process_stratum_target parameter.
16649 (find_thread_ptid(inferior*, ptid_t)): New overload.
16650 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
16651 parameter.
16652 (all_threads()): Delete overload.
16653 (all_threads, all_non_exited_threads): Add process_stratum_target
16654 parameter.
16655 (all_threads_safe): Use brace initialization.
16656 (thread_count): Add process_stratum_target parameter.
16657 (set_resumed, set_running, set_stop_requested, set_executing)
16658 (threads_are_executing, finish_thread_state): Add
16659 process_stratum_target parameter.
16660 (switch_to_thread): Use is_current_thread.
16661 * i386-fbsd-tdep.c: Include "inferior.h".
16662 (i386fbsd_get_thread_local_address): Pass down target.
16663 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
16664 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
16665 have_inferiors check.
16666 * inf-ptrace.c (inf_ptrace_target::create_inferior)
16667 (inf_ptrace_target::attach): Adjust.
16668 * infcall.c (run_inferior_call): Adjust.
16669 * infcmd.c (run_command_1): Pass target to
16670 scoped_finish_thread_state.
16671 (proceed_thread_callback): Skip inferiors with no execution.
16672 (continue_command): Rename 'all_threads' local to avoid hiding
16673 'all_threads' function. Adjust get_last_target_status call.
16674 (prepare_one_step): Adjust set_running call.
16675 (signal_command): Use user_visible_resume_target. Compare thread
16676 pointers instead of inferior_ptid.
16677 (info_program_command): Adjust to pass down target.
16678 (attach_command): Mark target's 'thread_executing' flag.
16679 (stop_current_target_threads_ns): New, factored out from ...
16680 (interrupt_target_1): ... this. Switch inferior before making
16681 target calls.
16682 * inferior-iter.h
16683 (struct all_inferiors_iterator, struct all_inferiors_range)
16684 (struct all_inferiors_safe_range)
16685 (struct all_non_exited_inferiors_range): Filter on
16686 process_stratum_target too. Remove explicit.
16687 * inferior.c (inferior::inferior): Push dummy target on target
16688 stack.
16689 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
16690 Add process_stratum_target parameter, and pass it down.
16691 (have_live_inferiors): Adjust.
16692 (switch_to_inferior_and_push_target): New.
16693 (add_inferior_command, clone_inferior_command): Handle
16694 "-no-connection" parameter. Use
16695 switch_to_inferior_and_push_target.
16696 (_initialize_inferior): Mention "-no-connection" option in
16697 the help of "add-inferior" and "clone-inferior" commands.
16698 * inferior.h: Include "process-stratum-target.h".
16699 (interrupt_target_1): Use bool.
16700 (struct inferior) <push_target, unpush_target, target_is_pushed,
16701 find_target_beneath, top_target, process_target, target_at,
16702 m_stack>: New.
16703 (discard_all_inferiors): Delete.
16704 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
16705 (all_inferiors, all_non_exited_inferiors): Add
16706 process_stratum_target parameter.
16707 * infrun.c: Include "gdb_select.h" and <unordered_map>.
16708 (target_last_proc_target): New global.
16709 (follow_fork_inferior): Push target on new inferior. Pass target
16710 to add_thread_silent. Call exec_on_vfork. Handle target's
16711 reference count.
16712 (follow_fork): Adjust get_last_target_status call. Also consider
16713 target.
16714 (follow_exec): Push target on new inferior.
16715 (struct execution_control_state) <target>: New field.
16716 (user_visible_resume_target): New.
16717 (do_target_resume): Call target_async.
16718 (resume_1): Set target's threads_executing flag. Consider resume
16719 target.
16720 (commit_resume_all_targets): New.
16721 (proceed): Also consider resume target. Skip threads of inferiors
16722 with no execution. Commit resumtion in all targets.
16723 (start_remote): Pass current inferior to wait_for_inferior.
16724 (infrun_thread_stop_requested): Consider target as well. Pass
16725 thread_info pointer to clear_inline_frame_state instead of ptid.
16726 (infrun_thread_thread_exit): Consider target as well.
16727 (random_pending_event_thread): New inferior parameter. Use it.
16728 (do_target_wait): Rename to ...
16729 (do_target_wait_1): ... this. Add inferior parameter, and pass it
16730 down.
16731 (threads_are_resumed_pending_p, do_target_wait): New.
16732 (prepare_for_detach): Adjust calls.
16733 (wait_for_inferior): New inferior parameter. Handle it. Use
16734 do_target_wait_1 instead of do_target_wait.
16735 (fetch_inferior_event): Adjust. Switch to representative
16736 inferior. Pass target down.
16737 (set_last_target_status): Add process_stratum_target parameter.
16738 Save target in global.
16739 (get_last_target_status): Add process_stratum_target parameter and
16740 handle it.
16741 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
16742 (context_switch): Check inferior_ptid == null_ptid before calling
16743 inferior_thread().
16744 (get_inferior_stop_soon): Pass down target.
16745 (wait_one): Rename to ...
16746 (poll_one_curr_target): ... this.
16747 (struct wait_one_event): New.
16748 (wait_one): New.
16749 (stop_all_threads): Adjust.
16750 (handle_no_resumed, handle_inferior_event): Adjust to consider the
16751 event's target.
16752 (switch_back_to_stepped_thread): Also consider target.
16753 (print_stop_event): Update.
16754 (normal_stop): Update. Also consider the resume target.
16755 * infrun.h (wait_for_inferior): Remove declaration.
16756 (user_visible_resume_target): New declaration.
16757 (get_last_target_status, set_last_target_status): New
16758 process_stratum_target parameter.
16759 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16760 process_stratum_target parameter, and use it.
16761 (clear_inline_frame_state (thread_info*)): New.
16762 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16763 process_stratum_target parameter.
16764 (clear_inline_frame_state (thread_info*)): Declare.
16765 * linux-fork.c (delete_checkpoint_command): Pass target down to
16766 find_thread_ptid.
16767 (checkpoint_command): Adjust.
16768 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
16769 instead of just tweaking inferior_ptid.
16770 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
16771 (exit_lwp): Pass target down to find_thread_ptid.
16772 (attach_proc_task_lwp_callback): Pass target down to
16773 add_thread/set_running/set_executing.
16774 (linux_nat_target::attach): Pass target down to
16775 thread_change_ptid.
16776 (get_detach_signal): Pass target down to find_thread_ptid.
16777 Consider last target status's target.
16778 (linux_resume_one_lwp_throw, resume_lwp)
16779 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
16780 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
16781 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
16782 (linux_nat_target::async_wait_fd): New.
16783 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
16784 target down.
16785 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
16786 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
16787 * linux-thread-db.c (struct thread_db_info::process_target): New
16788 field.
16789 (add_thread_db_info): Save target.
16790 (get_thread_db_info): New process_stratum_target parameter. Also
16791 match target.
16792 (delete_thread_db_info): New process_stratum_target parameter.
16793 Also match target.
16794 (thread_from_lwp): Adjust to pass down target.
16795 (thread_db_notice_clone): Pass down target.
16796 (check_thread_db_callback): Pass down target.
16797 (try_thread_db_load_1): Always push the thread_db target.
16798 (try_thread_db_load, record_thread): Pass target down.
16799 (thread_db_target::detach): Pass target down. Always unpush the
16800 thread_db target.
16801 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
16802 target down. Always unpush the thread_db target.
16803 (find_new_threads_callback, thread_db_find_new_threads_2)
16804 (thread_db_target::update_thread_list): Pass target down.
16805 (thread_db_target::pid_to_str): Pass current inferior down.
16806 (thread_db_target::get_thread_local_address): Pass target down.
16807 (thread_db_target::resume, maintenance_check_libthread_db): Pass
16808 target down.
16809 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
16810 * procfs.c (procfs_target::procfs_init_inferior): Declare.
16811 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
16812 (procfs_init_inferior): Rename to ...
16813 (procfs_target::procfs_init_inferior): ... this and adjust.
16814 (procfs_target::create_inferior, procfs_notice_thread)
16815 (procfs_do_thread_registers): Adjust.
16816 * ppc-fbsd-tdep.c: Include "inferior.h".
16817 (ppcfbsd_get_thread_local_address): Pass down target.
16818 * proc-service.c (ps_xfer_memory): Switch current inferior and
16819 program space as well.
16820 (get_ps_regcache): Pass target down.
16821 * process-stratum-target.c
16822 (process_stratum_target::thread_address_space)
16823 (process_stratum_target::thread_architecture): Pass target down.
16824 * process-stratum-target.h
16825 (process_stratum_target::threads_executing): New field.
16826 (as_process_stratum_target): New.
16827 * ravenscar-thread.c
16828 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
16829 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
16830 down.
16831 * record-btrace.c (record_btrace_target::info_record): Adjust.
16832 (record_btrace_target::record_method)
16833 (record_btrace_target::record_is_replaying)
16834 (record_btrace_target::fetch_registers)
16835 (get_thread_current_frame_id, record_btrace_target::resume)
16836 (record_btrace_target::wait, record_btrace_target::stop): Pass
16837 target down.
16838 * record-full.c (record_full_wait_1): Switch to event thread.
16839 Pass target down.
16840 * regcache.c (regcache::regcache)
16841 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
16842 process_stratum_target parameter and handle it.
16843 (current_thread_target): New global.
16844 (get_thread_regcache): Add process_stratum_target parameter and
16845 handle it. Switch inferior before calling target method.
16846 (get_thread_regcache): Pass target down.
16847 (get_thread_regcache_for_ptid): Pass target down.
16848 (registers_changed_ptid): Add process_stratum_target parameter and
16849 handle it.
16850 (registers_changed_thread, registers_changed): Pass target down.
16851 (test_get_thread_arch_aspace_regcache): New.
16852 (current_regcache_test): Define a couple local test_target_ops
16853 instances and use them for testing.
16854 (readwrite_regcache): Pass process_stratum_target parameter.
16855 (cooked_read_test, cooked_write_test): Pass mock_target down.
16856 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
16857 (get_thread_arch_aspace_regcache): Add process_stratum_target
16858 parameter.
16859 (regcache::target): New method.
16860 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
16861 (regcache::registers_changed_ptid): Add process_stratum_target
16862 parameter.
16863 (regcache::m_target): New field.
16864 (registers_changed_ptid): Add process_stratum_target parameter.
16865 * remote.c (remote_state::supports_vCont_probed): New field.
16866 (remote_target::async_wait_fd): New method.
16867 (remote_unpush_and_throw): Add remote_target parameter.
16868 (get_current_remote_target): Adjust.
16869 (remote_target::remote_add_inferior): Push target.
16870 (remote_target::remote_add_thread)
16871 (remote_target::remote_notice_new_inferior)
16872 (get_remote_thread_info): Pass target down.
16873 (remote_target::update_thread_list): Skip threads of inferiors
16874 bound to other targets. (remote_target::close): Don't discard
16875 inferiors. (remote_target::add_current_inferior_and_thread)
16876 (remote_target::process_initial_stop_replies)
16877 (remote_target::start_remote)
16878 (remote_target::remote_serial_quit_handler): Pass down target.
16879 (remote_target::remote_unpush_target): New remote_target
16880 parameter. Unpush the target from all inferiors.
16881 (remote_target::remote_unpush_and_throw): New remote_target
16882 parameter. Pass it down.
16883 (remote_target::open_1): Check whether the current inferior has
16884 execution instead of checking whether any inferior is live. Pass
16885 target down.
16886 (remote_target::remote_detach_1): Pass down target. Use
16887 remote_unpush_target.
16888 (extended_remote_target::attach): Pass down target.
16889 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
16890 (remote_target::append_resumption): Pass down target.
16891 (remote_target::append_pending_thread_resumptions)
16892 (remote_target::remote_resume_with_hc, remote_target::resume)
16893 (remote_target::commit_resume): Pass down target.
16894 (remote_target::remote_stop_ns): Check supports_vCont_probed.
16895 (remote_target::interrupt_query)
16896 (remote_target::remove_new_fork_children)
16897 (remote_target::check_pending_events_prevent_wildcard_vcont)
16898 (remote_target::remote_parse_stop_reply)
16899 (remote_target::process_stop_reply): Pass down target.
16900 (first_remote_resumed_thread): New remote_target parameter. Pass
16901 it down.
16902 (remote_target::wait_as): Pass down target.
16903 (unpush_and_perror): New remote_target parameter. Pass it down.
16904 (remote_target::readchar, remote_target::remote_serial_write)
16905 (remote_target::getpkt_or_notif_sane_1)
16906 (remote_target::kill_new_fork_children, remote_target::kill): Pass
16907 down target.
16908 (remote_target::mourn_inferior): Pass down target. Use
16909 remote_unpush_target.
16910 (remote_target::core_of_thread)
16911 (remote_target::remote_btrace_maybe_reopen): Pass down target.
16912 (remote_target::pid_to_exec_file)
16913 (remote_target::thread_handle_to_thread_info): Pass down target.
16914 (remote_target::async_wait_fd): New.
16915 * riscv-fbsd-tdep.c: Include "inferior.h".
16916 (riscv_fbsd_get_thread_local_address): Pass down target.
16917 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
16918 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
16919 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
16920 Adjust.
16921 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
16922 * solib-svr4.c (enable_break): Pass down target.
16923 * spu-multiarch.c (parse_spufs_run): Pass down target.
16924 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
16925 * target-delegates.c: Regenerate.
16926 * target.c (g_target_stack): Delete.
16927 (current_top_target): Return the current inferior's top target.
16928 (target_has_execution_1): Refer to the passed-in inferior's top
16929 target.
16930 (target_supports_terminal_ours): Check whether the initial
16931 inferior was already created.
16932 (decref_target): New.
16933 (target_stack::push): Incref/decref the target.
16934 (push_target, push_target, unpush_target): Adjust.
16935 (target_stack::unpush): Defref target.
16936 (target_is_pushed): Return bool. Adjust to refer to the current
16937 inferior's target stack.
16938 (dispose_inferior): Delete, and inline parts ...
16939 (target_preopen): ... here. Only dispose of the current inferior.
16940 (target_detach): Hold strong target reference while detaching.
16941 Pass target down.
16942 (target_thread_name): Add assertion.
16943 (target_resume): Pass down target.
16944 (target_ops::beneath, find_target_at): Adjust to refer to the
16945 current inferior's target stack.
16946 (get_dummy_target): New.
16947 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
16948 has a thread running.
16949 (initialize_targets): Rename to ...
16950 (_initialize_target): ... this.
16951 * target.h: Include "gdbsupport/refcounted-object.h".
16952 (struct target_ops): Inherit refcounted_object.
16953 (target_ops::shortname, target_ops::longname): Make const.
16954 (target_ops::async_wait_fd): New method.
16955 (decref_target): Declare.
16956 (struct target_ops_ref_policy): New.
16957 (target_ops_ref): New typedef.
16958 (get_dummy_target): Declare function.
16959 (target_is_pushed): Return bool.
16960 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
16961 (all_matching_threads_iterator::all_matching_threads_iterator):
16962 Handle filter target.
16963 * thread-iter.h (struct all_matching_threads_iterator, struct
16964 all_matching_threads_range, class all_non_exited_threads_range):
16965 Filter by target too. Remove explicit.
16966 * thread.c (threads_executing): Delete.
16967 (inferior_thread): Pass down current inferior.
16968 (clear_thread_inferior_resources): Pass down thread pointer
16969 instead of ptid_t.
16970 (add_thread_silent, add_thread_with_info, add_thread): Add
16971 process_stratum_target parameter. Use it for thread and inferior
16972 searches.
16973 (is_current_thread): New.
16974 (thread_info::deletable): Use it.
16975 (find_thread_ptid, thread_count, in_thread_list)
16976 (thread_change_ptid, set_resumed, set_running): New
16977 process_stratum_target parameter. Pass it down.
16978 (set_executing): New process_stratum_target parameter. Pass it
16979 down. Adjust reference to 'threads_executing'.
16980 (threads_are_executing): New process_stratum_target parameter.
16981 Adjust reference to 'threads_executing'.
16982 (set_stop_requested, finish_thread_state): New
16983 process_stratum_target parameter. Pass it down.
16984 (switch_to_thread): Also match inferior.
16985 (switch_to_thread): New process_stratum_target parameter. Pass it
16986 down.
16987 (update_threads_executing): Reimplement.
16988 * top.c (quit_force): Pop targets from all inferior.
16989 (gdb_init): Don't call initialize_targets.
16990 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
16991 Declare.
16992 (windows_add_thread, windows_delete_thread): Adjust.
16993 (get_windows_debug_event): Rename to ...
16994 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
16995 * tracefile-tfile.c (tfile_target_open): Pass down target.
16996 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
16997 Forward declare.
16998 (switch_to_thread): Add process_stratum_target parameter.
16999 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
17000 parameter. Use it.
17001 (mi_on_resume): Pass target down.
17002 * nat/fork-inferior.c (startup_inferior): Add
17003 process_stratum_target parameter. Pass it down.
17004 * nat/fork-inferior.h (startup_inferior): Add
17005 process_stratum_target parameter.
17006 * python/py-threadevent.c (py_get_event_thread): Pass target down.
17007
75c6c844
PA
170082020-01-10 Pedro Alves <palves@redhat.com>
17009
17010 * remote.c (remote_target::start_remote): Don't set inferior_ptid
17011 directly. Instead find the first thread in the thread list and
17012 use switch_to_thread.
17013
78f2c40a
PA
170142020-01-10 Pedro Alves <palves@redhat.com>
17015
17016 * remote.c (remote_target::remote_add_inferior): Don't bind a
17017 process to the current inferior if the current inferior is already
17018 bound to a process.
17019
e7af6c70
TBA
170202020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17021 Pedro Alves <palves@redhat.com>
17022
17023 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
17024 If no process is specified, return null_ptid instead of
17025 inferior_ptid.
17026 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
17027 TARGET_WAITKIND_SIGNALLED with no pid.
17028
31ba933e
PA
170292020-01-10 Pedro Alves <palves@redhat.com>
17030
17031 * remote.c (first_remote_resumed_thread): New.
17032 (remote_target::wait_as): Use it as default event_ptid instead of
17033 inferior_ptid.
17034
735fc2ca
PA
170352020-01-10 Pedro Alves <palves@redhat.com>
17036
17037 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
17038
c17e02e1
PA
170392020-01-10 Pedro Alves <palves@redhat.com>
17040
17041 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
17042 not -1.
17043
ab1ddbcf
PA
170442020-01-10 Pedro Alves <palves@redhat.com>
17045
17046 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
17047 ptid to get_last_target_status.
17048 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
17049 ptid to get_last_target_status.
17050 * infcmd.c (continue_command): Don't pass a target_waitstatus to
17051 get_last_target_status.
17052 (info_program_command): Don't pass a target_waitstatus to
17053 get_last_target_status.
17054 * infrun.c (init_wait_for_inferior): Use
17055 nullify_last_target_wait_ptid.
17056 (get_last_target_status): Handle nullptr arguments.
17057 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
17058 (print_stop_event): Don't pass a ptid to get_last_target_status.
17059 (normal_stop): Don't pass a ptid to get_last_target_status.
17060 * infrun.h (get_last_target_status, set_last_target_status): Move
17061 comments here and update.
17062 (nullify_last_target_wait_ptid): Declare.
17063 * linux-fork.c (fork_load_infrun_state): Remove local extern
17064 declaration of nullify_last_target_wait_ptid.
17065 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
17066 to get_last_target_status.
17067
f3f8ece4
PA
170682020-01-10 Pedro Alves <palves@redhat.com>
17069
17070 * gdbthread.h (scoped_restore_current_thread)
17071 <dont_restore, restore, m_dont_restore>: Declare.
17072 * thread.c (thread_alive): Add assertion. Return bool.
17073 (switch_to_thread_if_alive): New.
17074 (prune_threads): Switch inferior/thread.
17075 (print_thread_info_1): Switch thread before calling target methods.
17076 (scoped_restore_current_thread::restore): New, factored out from
17077 ...
17078 (scoped_restore_current_thread::~scoped_restore_current_thread):
17079 ... this.
17080 (scoped_restore_current_thread::scoped_restore_current_thread):
17081 Add assertion.
17082 (thread_apply_all_command, thread_select): Use
17083 switch_to_thread_if_alive.
17084 * infrun.c (proceed, restart_threads, handle_signal_stop)
17085 (switch_back_to_stepped_thread): Switch current thread before
17086 calling target methods.
17087
db2d40f7
PA
170882020-01-10 Pedro Alves <palves@redhat.com>
17089
17090 * inferior.c (switch_to_inferior_no_thread): New function,
17091 factored out from ...
17092 (inferior_command): ... here.
17093 * inferior.h (switch_to_inferior_no_thread): Declare.
17094 * mi/mi-main.c (run_one_inferior): Use
17095 switch_to_inferior_no_thread.
17096
bd420a2d
PA
170972020-01-10 Pedro Alves <palves@redhat.com>
17098
17099 * infcmd.c (kill_command): Remove dead code.
17100
ddf5db90
PA
171012020-01-10 Pedro Alves <palves@redhat.com>
17102
17103 * remote.c (remote_target::mourn_inferior): No longer check
17104 whether the target is running.
17105
5018ce90
PA
171062020-01-10 Pedro Alves <palves@redhat.com>
17107
17108 * corelow.c (core_target::has_execution): Change parameter type to
17109 inferior pointer.
17110 * inferior.c (number_of_live_inferiors): Use
17111 inferior::has_execution instead of target_has_execution_1.
17112 * inferior.h (inferior::has_execution): New.
17113 * linux-thread-db.c (thread_db_target::update_thread_list): Use
17114 inferior::has_execution instead of target_has_execution_1.
17115 * process-stratum-target.c
17116 (process_stratum_target::has_execution): Change parameter type to
17117 inferior pointer. Check the inferior's PID instead of
17118 inferior_ptid.
17119 * process-stratum-target.h
17120 (process_stratum_target::has_execution): Change parameter type to
17121 inferior pointer.
17122 * record-full.c (record_full_core_target::has_execution): Change
17123 parameter type to inferior pointer.
17124 * target.c (target_has_execution_1): Change parameter type to
17125 inferior pointer.
17126 (target_has_execution_current): Adjust.
17127 * target.h (target_ops::has_execution): Change parameter type to
17128 inferior pointer.
17129 (target_has_execution_1): Change parameter type to inferior
17130 pointer. Change return type to bool.
17131 * tracefile.h (tracefile_target::has_execution): Change parameter
17132 type to inferior pointer.
17133
74375d18
PA
171342020-01-10 Pedro Alves <palves@redhat.com>
17135
17136 * exceptions.c (print_flush): Remove current_top_target() check.
17137
acdf84a6
PA
171382020-01-10 Pedro Alves <palves@redhat.com>
17139
17140 * remote.c (show_remote_exec_file): Show the current inferior's
17141 exec-file instead of the command variable's value.
17142
ec506636
PA
171432020-01-10 Pedro Alves <palves@redhat.com>
17144
17145 * record-full.c (record_full_resume_ptid): New global.
17146 (record_full_target::resume): Set it.
17147 (record_full_wait_1): Use record_full_resume_ptid instead of
17148 inferior_ptid.
17149
873657b9
PA
171502020-01-10 Pedro Alves <palves@redhat.com>
17151
17152 * gdbthread.h (scoped_restore_current_thread)
17153 <dont_restore, restore, m_dont_restore>: Declare.
17154 * thread.c (thread_alive): Add assertion. Return bool.
17155 (switch_to_thread_if_alive): New.
17156 (prune_threads): Switch inferior/thread.
17157 (print_thread_info_1): Switch thread before calling target methods.
17158 (scoped_restore_current_thread::restore): New, factored out from
17159 ...
17160 (scoped_restore_current_thread::~scoped_restore_current_thread):
17161 ... this.
17162 (scoped_restore_current_thread::scoped_restore_current_thread):
17163 Add assertion.
17164 (thread_apply_all_command, thread_select): Use
17165 switch_to_thread_if_alive.
17166
7f0ae84c
GB
171672020-01-10 George Barrett <bob@bob131.so>
17168
17169 * stap-probe.c (stap_modify_semaphore): Don't check for null
17170 semaphores.
17171 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
17172 for null semaphores.
17173
f5a7c406
AB
171742020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17175
17176 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
17177 all source windows, and maintain horizontal scroll status while
17178 doing so.
17179
9ae6bf64
TT
171802020-01-09 Tom Tromey <tom@tromey.com>
17181
17182 PR tui/18932:
17183 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
17184 update_source_window, not print_source_lines.
17185
b2efe70c
AB
171862020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17187
17188 * tui/tui.c (tui_enable): Register tui hooks after calling
17189 tui_display_main.
17190
5f23a082
CB
171912020-01-09 Christian Biesinger <cbiesinger@google.com>
17192
17193 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
17194
3061113b
SM
171952020-01-08 Simon Marchi <simon.marchi@efficios.com>
17196
17197 * thread.c (print_thread_info_1): Fix indentation.
17198
57d75002
CB
171992020-01-09 Christian Biesinger <cbiesinger@google.com>
17200
17201 * symtab.c (general_symbol_info::compute_and_set_names): Move the
17202 unique_xmalloc_ptr outside the if to always free the demangled name.
17203
6a053cb1
TT
172042020-01-08 Tom Tromey <tromey@adacore.com>
17205
17206 * xcoffread.c (enter_line_range, read_xcoff_symtab)
17207 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
17208 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
17209 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
17210 Remove.
17211 (section_offsets): New typedef.
17212 * symtab.c (fixup_section, get_msymbol_address): Update.
17213 * symmisc.c (dump_msymbols): Update.
17214 * symfile.h (relative_addr_info_to_section_offsets)
17215 (symfile_map_offsets_to_segments): Update.
17216 * symfile.c (build_section_addr_info_from_objfile)
17217 (init_objfile_sect_indices): Update.
17218 (struct place_section_arg): Change type of "offsets".
17219 (place_section): Update.
17220 (relative_addr_info_to_section_offsets): Change type of
17221 "section_offsets". Remove "num_sections" parameter.
17222 (default_symfile_offsets, syms_from_objfile_1)
17223 (set_objfile_default_section_offset): Update.
17224 (reread_symbols): No need to preserve section offsets by hand.
17225 (symfile_map_offsets_to_segments): Change type of "offsets".
17226 * stap-probe.c (relocate_address): Update.
17227 * stabsread.h (process_one_symbol): Update.
17228 * solib-target.c (struct lm_info_target) <offsets>: Change type.
17229 (solib_target_relocate_section_addresses): Update.
17230 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
17231 Update.
17232 * solib-frv.c (frv_relocate_main_executable): Update.
17233 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
17234 * solib-aix.c (solib_aix_get_section_offsets): Change return
17235 type.
17236 (solib_aix_solib_create_inferior_hook): Update.
17237 * remote.c (remote_target::get_offsets): Update.
17238 * psymtab.c (find_pc_sect_psymtab): Update.
17239 * psympriv.h (struct partial_symbol) <address, text_low,
17240 text_high>: Update.
17241 * objfiles.h (obj_section_offset): Update.
17242 (struct objfile) <section_offsets>: Change type.
17243 <num_sections>: Remove.
17244 (objfile_relocate): Update.
17245 * objfiles.c (entry_point_address_query): Update
17246 (relocate_one_symbol): Change type of "section_offsets".
17247 (objfile_relocate1, objfile_relocate1): Change type of
17248 "new_offsets".
17249 (objfile_rebase1): Update.
17250 * mipsread.c (mipscoff_symfile_read): Update.
17251 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
17252 parameter.
17253 * mdebugread.c (parse_symbol): Change type of "section_offsets".
17254 (parse_external, psymtab_to_symtab_1): Update.
17255 * machoread.c (macho_symfile_offsets): Update.
17256 * ia64-tdep.c (ia64_find_unwind_table): Update.
17257 * hppa-tdep.c (read_unwind_info): Update.
17258 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
17259 * dwarf2read.c (create_addrmap_from_index)
17260 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
17261 (process_psymtab_comp_unit_reader, add_partial_symbol)
17262 (add_partial_subprogram, process_full_comp_unit)
17263 (read_file_scope, read_func_scope, read_lexical_block_scope)
17264 (read_call_site_scope, dwarf2_rnglists_process)
17265 (dwarf2_ranges_process, dwarf2_ranges_read)
17266 (dwarf_decode_lines_1, var_decode_location, new_symbol)
17267 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
17268 Update.
17269 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
17270 Update.
17271 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
17272 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
17273 (process_one_symbol): Change type of "section_offsets".
17274 * ctfread.c (get_objfile_text_range): Update.
17275 * coffread.c (coff_symtab_read, enter_linenos)
17276 (process_coff_symbol): Update.
17277 * coff-pe-read.c (add_pe_forwarded_sym): Update.
17278 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
17279
456e800a
TT
172802020-01-08 Tom Tromey <tromey@adacore.com>
17281
17282 * dwarf2read.c (parse_macro_definition): Use std::string.
17283 (parse_macro_definition): Likewise.
17284
6dfa2fc2
TT
172852020-01-08 Tom Tromey <tromey@adacore.com>
17286
17287 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
17288 (ATTR_ALLOC_CHUNK): Remove.
17289
421d1616
TT
172902020-01-08 Tom Tromey <tromey@adacore.com>
17291
17292 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
17293
43816ebc
TT
172942020-01-08 Tom Tromey <tromey@adacore.com>
17295
17296 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
17297 (dwarf2_compute_name, open_dwo_file): Likewise.
17298 (process_enumeration_scope): Use std::vector.
17299 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
17300 (partial_die_info::fixup, dwarf2_start_subfile)
17301 (guess_full_die_structure_name, dwarf2_name): Likewise.
17302 (determine_prefix): Update.
17303 (guess_full_die_structure_name): Make return type const.
17304 (partial_die_full_name): Return unique_xmalloc_ptr.
17305 (DW_FIELD_ALLOC_CHUNK): Remove.
17306
4212d509
TT
173072020-01-07 Tom Tromey <tromey@adacore.com>
17308
17309 PR build/24937:
17310 * stap-probe.c (class stap_static_probe_ops): Add constructor.
17311
06a6207a
JT
173122020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17313
17314 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
17315
153d79c4
AB
173162020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
17317
17318 * stack.c (print_frame_info): Move disassemble_next_line code
17319 inside source_print block.
17320
66182876
EZ
173212020-01-06 Eli Zaretskii <eliz@gnu.org>
17322
17323 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
17324 gdb/signals.h, as we are now using native signal symbols.
17325
cbfa8581
SV
173262020-01-06 Shahab Vahedi <shahab@synopsys.com>
17327
17328 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
17329 overflow by an early check of content vs threshold.
aac66a4c 17330 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
17331 Likewise.
17332
3f602821
EZ
173332020-01-06 Eli Zaretskii <eliz@gnu.org>
17334
17335 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
17336
a08c904d
JT
173372020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17338
17339 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
17340 export table if no section contains it's RVA.
17341
89a65580
EZ
173422020-01-06 Eli Zaretskii <eliz@gnu.org>
17343
17344 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
17345
8b7fcda2
HD
173462020-01-06 Hannes Domani <ssbssa@yahoo.de>
17347
17348 * source.c (print_source_lines_base): Set last_line_listed.
17349
a61b4f69
SV
173502020-01-06 Shahab Vahedi <shahab@synopsys.com>
17351
17352 * tui/tui-disasm.c: Remove trailing spaces.
17353
559e7e50
EZ
173542020-01-06 Eli Zaretskii <eliz@gnu.org>
17355 Pedro Alves <palves@redhat.com>
17356
17357 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
17358 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
17359 (windows_gdb_signal_to_target): New function, uses the above
17360 enumeration to convert GDB internal signal codes to equivalent
17361 Windows codes.
17362 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
17363 * windows-nat.c: Include "gdb_wait.h".
17364 (get_windows_debug_event): Extract the fatal exception from the
17365 exit status and convert to the equivalent Posix signal number.
17366 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
17367 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
17368 * gdbsupport/gdb_wait.c: New file, implements
17369 windows_status_to_termsig.
17370 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
17371 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
17372
f2302a34
AB
173732020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
17374
17375 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
17376 show_layout.
17377
6a5206eb
LM
173782020-01-05 Luis Machado <luis.machado@linaro.org>
17379
17380 * aarch64-linux-nat.c
17381 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
17382 and bfd_mach_aarch64.
17383
6ec1d75e
PW
173842020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17385
17386 * ui-file.c (stdio_file::can_emit_style_escape)
17387 (tee_file::can_emit_style_escape): Ensure style is used also on
17388 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
17389 to gdb_stdout.
17390 * main.c (set_gdb_data_directory): Use file style to output the
17391 warning that the given pathname is not a directory.
17392 * top.c (show_history_filename, gdb_safe_append_history)
17393 (show_gdb_datadir): Use file style.
17394
44f81a76
HD
173952020-01-03 Hannes Domani <ssbssa@yahoo.de>
17396
17397 * solib-target.c (struct lm_info_target):
17398 Change offsets to be a unique_xmalloc_ptr.
17399 (solib_target_relocate_section_addresses): Update.
17400
25057eb0
HD
174012020-01-03 Hannes Domani <ssbssa@yahoo.de>
17402
17403 * windows-nat.c (windows_clear_solib): Free so_list linked list.
17404
6e2118f5
BE
174052020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
17406
17407 * MAINTAINERS (Write After Approval): Add myself.
17408
8133c7dc
LM
174092020-01-02 Luis Machado <luis.machado@linaro.org>
17410
17411 * proc-service.c (get_ps_regcache): Remove reference to obsolete
17412 Cell BE architecture.
17413 * target.h (struct target_ops) <thread_architecture>: Likewise.
17414
48189bec
HD
174152020-01-01 Hannes Domani <ssbssa@yahoo.de>
17416
17417 * Makefile.in: Use INSTALL_PROGRAM_ENV.
17418
ead1063b
HD
174192020-01-01 Hannes Domani <ssbssa@yahoo.de>
17420
17421 * MAINTAINERS (Write After Approval): Add myself.
17422
e5d78223
JB
174232020-01-01 Joel Brobecker <brobecker@adacore.com>
17424
17425 * gdbarch.sh: Update copyright year range of generated files.
17426
b811d2c2
JB
174272020-01-01 Joel Brobecker <brobecker@adacore.com>
17428
17429 Update copyright year range in all GDB files.
17430
5f4def5c
JB
174312020-01-01 Joel Brobecker <brobecker@adacore.com>
17432
17433 * copyright.py: Convert to Python 3.
17434
51fd4002
JB
174352020-01-01 Joel Brobecker <brobecker@adacore.com>
17436
17437 * copyright.py: Adapt after move of gnulib directory from gdb
17438 directory to toplevel directory.
17439
5fb651f2
JB
174402020-01-01 Joel Brobecker <brobecker@adacore.com>
17441
17442 * copyright.py (main): Exit if run from the wrong directory.
17443
5dd8bf88
JB
174442020-01-01 Joel Brobecker <brobecker@adacore.com>
17445
17446 * top.c (print_gdb_version): Change copyright year to 2020.
17447
9f71dacb 174482020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 17449
9f71dacb 17450 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 17451
9f71dacb 17452For older changes see ChangeLog-2019.
c906108c
SS
17453\f
17454Local Variables:
17455mode: change-log
17456left-margin: 8
17457fill-column: 74
17458version-control: never
57da7796 17459coding: utf-8
c906108c 17460End:
This page took 3.479495 seconds and 4 git commands to generate.