[gdb] Fix heap-buffer-overflow in completion_tracker::build_completion_result
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
aafdfb4e
TV
12020-12-04 Tom de Vries <tdevries@suse.de>
2
3 PR gdb/27003
4 * completer.c (completion_tracker::build_completion_result): Don't
5 access match_list[0][-1].
6
f99b5177
TT
72020-12-04 Tom Tromey <tromey@adacore.com>
8
9 * linespec.c (struct linespec_token): Rename; remove typedef.
10 * guile/scm-block.c (struct block_smob): Remove typedef.
11 (struct block_syms_progress_smob): Likewise.
12 * guile/scm-symbol.c (struct symbol_smob): Remove typedef.
13 * guile/scm-symtab.c (symtab_smob): Remove typedef.
14 (struct sal_smob): Remove typedef.
15 * guile/scm-param.c (struct param_smob): Remove typedef.
16 * guile/scm-progspace.c (struct pspace_smob): Rename.
17 * guile/scm-objfile.c (struct objfile_smob): Rename.
18 * guile/scm-iterator.c (struct iterator_smob): Rename.
19 * guile/scm-frame.c (struct frame_smob): Rename.
20 * guile/scm-arch.c (struct arch_smob): Rename.
21 * guile/scm-type.c (struct field_smob): Remove typedef.
22 (struct type_smob): Rename.
23 * guile/scm-cmd.c (struct command_smob): Remove typedef.
24 * guile/scm-ports.c (struct ioscm_memory_port): Remove typedef.
25 * guile/scm-value.c (struct value_smob): Remove typedef.
26 * guile/scm-lazy-string.c (lazy_string_smob): Remove typedef.
27 * guile/guile-internal.h (struct scheme_variable)
28 (struct scheme_function, struct scheme_integer_constant)
29 (struct gdb_smob, struct chained_gdb_smob)
30 (struct eqable_gdb_smob, arch_smob, frame_smob, iterator_smob)
31 (objfile_smob, pspace_smob, type_smob): Remove typedef.
32 * guile/scm-pretty-print.c (pretty_printer_smob): Remove typedef.
33 (struct pretty_printer_worker_smob): Remove typedef.
34 * guile/scm-exception.c (struct exception_smob): Remove typedef.
35 * python/py-block.c (struct block_object): Remove typedef.
36 (block_syms_iterator_object): Update.
37 (set_block): Update.
38 (block_syms_iterator_object): Remove typedef.
39 * python/py-inferior.c (struct membuf_object): Remove typedef.
40 * python/py-symtab.c (struct symtab_object): Remove typedef.
41 (set_symtab): Update.
42 (sal_object): Remove typedef.
43 (set_sal): Update.
44 * python/py-frame.c (frame_object): Remove typedef.
45 * python/py-record-btrace.c (struct btpy_list_object): Remove
46 typedef.
47 * python/py-arch.c (struct arch_object): Remove typedef.
48 * python/py-linetable.c (struct linetable_entry_object)
49 (linetable_object, struct ltpy_iterator_object): Remove typedef.
50 * python/py-events.h (eventregistry_object): Remove typedef.
51 (struct events_object): Remove typedef.
52 * python/python-internal.h (gdbpy_breakpoint_object): Remove
53 typedef.
54 (thread_object): Remove typedef.
55 * python/py-progspace.c (pspace_object): Remove typedef.
56 * python/py-value.c (struct value_object): Remove typedef.
57 * python/py-record.h (recpy_record_object): Remove typedef.
58 (struct recpy_element_object): Remove typedef.
59 * python/py-lazy-string.c (lazy_string_object): Remove typedef.
60 * python/py-objfile.c (objfile_object): Remove typedef.
61 * python/py-cmd.c (struct cmdpy_object): Remove typedef.
62 * python/py-type.c (type_object): Remove typedef.
63 (typy_iterator_object): Update.
64 (set_type): Update.
65 (field_object): Remove typedef.
66 (typy_iterator_object): Remove typedef.
67 * python/py-registers.c (register_descriptor_iterator_object):
68 Remove typedef.
69 (struct register_descriptor_object)
70 (struct reggroup_iterator_object, struct reggroup_object): Remove
71 typedef.
72 * python/py-record.c (recpy_gap_object): Remove typedef.
73 * python/py-symbol.c (symbol_object): Remove typedef.
74 (set_symbol): Update.
75 * python/py-event.h (event_object): Remove typedef.
76 * python/py-param.c (parmpy_object): Remove typedef.
77 * python/py-instruction.c (struct py_insn_obj): Remove typedef.
78 * python/py-unwind.c (struct pending_frame_object): Remove typedef.
79 (unwind_info_object, struct cached_frame_info): Likewise.
80
91f87213
TT
812020-12-04 Tom Tromey <tromey@adacore.com>
82
83 * value.c (value_internal_function_name): Make return type const.
84 * value.h (value_internal_function_name): Make return type const.
85
5382f971
LM
862020-12-04 Luis Machado <luis.machado@linaro.org>
87
88 * aarch64-tdep.c (submask, bit, bits): Remove.
89 * arch/aarch64-insn.c (extract_signed_bitfield): Remove.
90 (aarch64_decode_adr, aarch64_decode_b aarch64_decode_bcond)
91 (aarch64_decode_cb, aarch64_decode_tb)
92 (aarch64_decode_ldr_literal): Use sbits to extract a signed
93 immediate.
94 * arch/aarch64-insn.h (submask, bits, bit, sbits): New macros.
95
b6a6aa07
TV
962020-12-04 Tom de Vries <tdevries@suse.de>
97
98 PR tdep/27007
99 * i386-tdep.c (i386_16_byte_align_p): Skip static fields.
100
0bc2e38d
SM
1012020-12-03 Simon Marchi <simon.marchi@polymtl.ca>
102
103 PR gdb/26876
104 * dwarf2/frame.c (find_comp_unit, set_comp_unit): Reverse use of
105 dwarf2_frame_bfd_data and dwarf2_frame_objfile_data.
106
25428040
AB
1072020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
108
109 * arch/riscv.c: Include 'rv32e-xregs.c'.
110 (riscv_create_target_description): Update to handle rv32e.
111 * arch/riscv.h (struct riscv_gdbarch_features) <embedded>: New
112 member variable.
113 <operator==>: Update to account for new field.
114 <hash>: Likewise.
115 * features/Makefile (FEATURE_XMLFILES): Add riscv/rv32e-xregs.xml.
116 * features/riscv/rv32e-xregs.c: Generated.
117 * features/riscv/rv32e-xregs.xml: New file.
118 * riscv-tdep.c (riscv_debug_breakpoints): Move from later in the
119 file.
120 (riscv_debug_infcall): Likewise.
121 (riscv_debug_unwinder): Likewise.
122 (riscv_debug_gdbarch): Likewise.
123 (enum riscv_register_required_status): Delete.
124 (struct riscv_register_feature): Add constructor, delete default
125 constructor, copy, and assign constructors.
126 (struct riscv_register_feature::register_info) <required>: Delete.
127 <check>: Update comment and arguments.
128 (struct riscv_register_feature) <name>: Change to member function.
129 <prefer_first_name>: Delete.
130 <tdesc_feature>: New member function.
131 <registers>: Rename to...
132 <m_registers>: ...this.
133 <m_feature_name>: New member variable.
134 (riscv_register_feature::register_info::check): Update arguments.
135 (riscv_xreg_feature): Rewrite as class, create a single static
136 instance of the class.
137 (riscv_freg_feature): Likewise.
138 (riscv_virtual_feature): Likewise.
139 (riscv_csr_feature): Likewise.
140 (riscv_create_csr_aliases): Has become a member function inside
141 riscv_csr_feature class.
142 (riscv_abi_embedded): New function definition.
143 (riscv_register_name): Adjust to use new feature objects.
144 (struct riscv_call_info) <riscv_call_info>: Check for rv32e abi,
145 and adjust available argument registers.
146 (riscv_features_from_gdbarch_info): Check for EF_RISCV_RVE flag.
147 (riscv_check_tdesc_feature): Delete.
148 (riscv_tdesc_unknown_reg): Adjust to use new feature objects.
149 (riscv_gdbarch_init): Delete target description checking code, and
150 instead call to the new feature objects to perform the checks.
151 Reorder handling of no abi information case, allows small code
152 simplification.
153 (_initialize_riscv_tdep): Remove call, this is now done in the
154 riscv_csr_feature constructor.
155 * riscv-tdep.h (riscv_abi_embedded): Declare.
156
533b2ae0
AB
1572020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
158
159 * riscv-tdep.c (riscv_create_csr_aliases): Remove use of
160 DECLARE_CSR_ALIAS.
161
e4502042
AB
1622020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
163
164 * riscv-tdep.c (riscv_is_unknown_csr): New function,
165 implementation moved from riscv_register_reggroup_p.
166 (riscv_register_reggroup_p): Update group handling for unknown
167 CSRs.
168
2bf3b79d
SDJ
1692020-12-01 Sergio Durigan Junior <sergiodj@sergiodj.net>
170
171 * dwarf2/read.c (dwz_search_other_debugdirs): New function.
172 (dwarf2_get_dwz_file): Convert 'filename' to a
173 std::string. Use dwz_search_other_debugdirs to search for DWZ
174 files in the debug-file-directories provided by the user as well.
175
77bf7e99
TT
1762020-12-01 Tom Tromey <tom@tromey.com>
177
178 * parse.c (expr_builder::expr_builder): Initialize expout.
179 (expr_builder::release): Use expression::resize.
180 (expression::expression, expression::~expression)
181 (expression::resize): New methods.
182 (write_exp_elt): Use expression::resize.
183 (prefixify_expression): Update.
184 (increase_expout_size): Use expression::resize.
185 * expression.h (struct expression): Add constructor, destructor.
186 <resize>: New method.
187 (expression_up): Change type.
188
539d71e8
RA
1892020-12-01 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
190 * ppc-linux-nat.c: (PPC_DEBUG_FEATURE_DATA_BP_ARCH_31): New define.
191 (region_ok_for_hw_watchpoint): Check if 2nd DAWR is avaliable before
192 set region.
193
7ce05d21
TV
1942020-11-30 Tom de Vries <tdevries@suse.de>
195
196 PR symtab/26905
197 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add and handle
198 is_reference parameter.
199 (dwarf2_evaluate_property): Update dwarf2_locexpr_baton_eval call.
200
88b91969
TT
2012020-11-30 Tom Tromey <tom@tromey.com>
202
203 * rust-lang.c (rust_op_name): Remove.
204 (exp_descriptor_rust): Update.
205 * parser-defs.h (op_name_standard): Don't declare.
206 (struct exp_descriptor) <op_name>: Remove.
207 * parse.c (exp_descriptor_standard): Update.
208 * opencl-lang.c (exp_descriptor_opencl): Update.
209 * m2-lang.c (m2_language::exp_descriptor_modula2): Update.
210 * f-lang.c (op_name_f): Remove.
211 (f_language::exp_descriptor_tab): Update.
212 * expression.h (op_name): Update.
213 * expprint.c (op_name): Rewrite.
214 (op_name_standard): Remove.
215 (dump_raw_expression, dump_subexp): Update.
216 * c-lang.c (exp_descriptor_c): Update.
217 * ax-gdb.c (gen_expr): Update.
218 * ada-lang.c (ada_op_name): Remove.
219 (ada_exp_descriptor): Update.
220
1cd49c43
TT
2212020-11-30 Tom Tromey <tom@tromey.com>
222
223 * eval.c (init_array_element): Remove.
224 (evaluate_subexp_standard) <OP_ARRAY>: Remove "index_pc".
225
96fb9086
HD
2262020-11-29 Hannes Domani <ssbssa@yahoo.de>
227
228 PR tui/26973
229 * tui/tui-layout.c (tui_apply_current_layout): Don't delete the
230 static locator win info.
231
b4132322
AR
2322020-11-28 Alex Richardson <Alexander.Richardson@cl.cam.ac.uk>
233
234 * acincludde.m4 (GDB_AC_CHECK_BFD): Include string.h in the test
235 program.
236
3df8c6af
AB
2372020-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
238
239 * printcmd.c (skip_over_slash_fmt): Reorder code to ensure in_fmt
240 is always initialized.
241
0ae45769
RA
2422020-11-26 Rogerio Alves <rcardoso@linux.ibm.com>
243 * MAINTAINERS (Write After Approval): Add myself.
244
239ca5e4
PW
2452020-11-26 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
246
247 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
248 * features/aarch64-fpu.xml: Add named FPCR and FPSR register bit-fields.
249
cbfa382a
TT
2502020-11-25 Tom Tromey <tom@tromey.com>
251
252 * eval.c (evaluate_subexp_standard): Remove unnecessary
253 variables.
254
af30c400
TT
2552020-11-25 Tom Tromey <tom@tromey.com>
256
257 * d-lang.c: Include parser-defs.h.
258 * rust-lang.c: Include parser-defs.h.
259 * c-lang.h: Do not include parser-defs.h.
260
1c64f6cb
SM
2612020-11-24 Simon Marchi <simon.marchi@polymtl.ca>
262
263 * regcache.h (struct cached_reg): Remove typedef.
264
2c20a601
JB
2652020-11-24 Joel Brobecker <brobecker@adacore.com>
266
267 * README: Fix the URL of the MPFR library.
268
c609df64
JB
2692020-11-24 Joel Brobecker <brobecker@adacore.com>
270
271 * README: Document the --with-libgmp-prefix configure option.
272
fa123c32
JB
2732020-11-24 Joel Brobecker <brobecker@adacore.com>
274
275 * NEWS: Add entry documenting support for DWARF-based fixed
276 point types.
277
0fb8bb02
JB
2782020-11-24 Joel Brobecker <brobecker@adacore.com>
279
280 * NEWS: Document that building GDB now requires GMP.
281
4afa9fd9
JB
2822020-11-24 Joel Brobecker <brobecker@adacore.com>
283
284 * typeprint.c (print_type_scalar): Add handling of
285 TYPE_CODE_FIXED_POINT.
286
af619ce9
JB
2872020-11-24 Joel Brobecker <brobecker@adacore.com>
288
289 * valarith.c (fixed_point_binop): Replace the
290 INIT_VAL_WITH_FIXED_POINT_VAL macro by a lambda. Update all
291 users accordingly.
292
e6fcee3a
JB
2932020-11-24 Joel Brobecker <brobecker@adacore.com>
294
295 * gdbtypes.h (struct type) <fixed_point_scaling_factor>: New method,
296 replacing fixed_point_scaling_factor. All callers updated
297 throughout this project.
298 (fixed_point_scaling_factor): Delete declaration.
299 * gdbtypes.c (type::fixed_point_scaling_factor): Replaces
300 fixed_point_scaling_factor. Adjust implementation accordingly.
301
d19937a7
JB
3022020-11-24 Joel Brobecker <brobecker@adacore.com>
303
304 * gdbtypes.h (struct type) <fixed_point_type_base_type> New method,
305 replacing the fixed_point_type_base_type function. All callers
306 updated throughout this project.
307 (fixed_point_type_base_type): Remove declaration.
308 * gdbtypes.c (type::fixed_point_type_base_type): Replaces
309 fixed_point_type_base_type. Adjust implementation accordingly.
310
2a12c336
JB
3112020-11-24 Joel Brobecker <brobecker@adacore.com>
312
313 * gdbtypes.h (struct type) <fixed_point_info, set_fixed_point_info>:
314 New methods.
315 (INIT_FIXED_POINT_SPECIFIC): Adjust.
316 (TYPE_FIXED_POINT_INFO): Delete macro.
317 (allocate_fixed_point_type_info): Change return type to void.
318 * gdbtypes.c (copy_type_recursive): Replace the use of
319 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
320 (fixed_point_scaling_factor): Likewise.
321 (allocate_fixed_point_type_info): Change return type to void.
322 Adjust implementation accordingly.
323 * dwarf2/read.c (finish_fixed_point_type): Replace the use of
324 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
325
c9f0b43f
JB
3262020-11-24 Joel Brobecker <brobecker@adacore.com>
327
328 * gmp-utils.h (gdb_mpz::read): Change buf and len parameters
329 into one single gdb::array_view parameter.
330 (gdb_mpz::write): Likewise.
331 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
332 * gmp-utils.c (gdb_mpz::read): Change buf and len parameters
333 into one single gdb::array_view parameter.
334 Adjust implementation accordingly.
335 (gdb_mpz::write): Likewise.
336 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
337 * unittests/gmp-utils-selftests.c: Adapt following changes above.
338 * valarith.c, valops.c, valprint.c, value.c: Likewise.
339
987b6703
JB
3402020-11-24 Joel Brobecker <brobecker@adacore.com>
341
342 * gmp-utils.h (gmp_string_printf): Rename from gmp_string_asprintf.
343 Change return type to std::string. Update all callers.
344 * gmp-utils.c (gmp_string_printf): Likewise.
345
4fbb7cce
JB
3462020-11-24 Joel Brobecker <brobecker@adacore.com>
347
348 * unittests/gmp-utils-selftests.c (write_fp_test): Use mpq_set_si
349 instead of mpq_set_ui to initialize our GMP rational.
350
d6ab69dd
TV
3512020-11-23 Tom de Vries <tdevries@suse.de>
352
353 * debuginfod-support.c (debuginfod_source_query)
354 (debuginfod_debuginfo_query): Only set DESTNAME if successful.
355
dab72643
TT
3562020-11-21 Tom Tromey <tom@tromey.com>
357
358 * breakpoint.c (watchpoint_exp_is_const): Return bool.
359
c0ad05d5
SM
3602020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
361
362 * unittests/gmp-utils-selftests.c (gdb_mpz_read_all_from_small):
363 Pass 2.0 to pow.
364 (gdb_mpz_write_all_from_small): Likewise.
365
a43b29c9
SM
3662020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
367
368 * dwarf2/read.c (finish_fixed_point_type): Use std::abs instead
369 of abs.
370
ae41200b
NA
3712020-11-20 Nick Alcock <nick.alcock@oracle.com>
372
373 * ctfread.c (elfctf_build_psymtabs): Use ctf_dict_open, not
374 ctf_arc_open_by_name.
375
139633c3
NA
3762020-11-20 Nick Alcock <nick.alcock@oracle.com>
377
378 * ctfread.c: Change uses of ctf_file_t to ctf_dict_t.
379 (ctf_fp_info::~ctf_fp_info): Call ctf_dict_close, not ctf_file_close.
380
cbbcd7a7
PA
3812020-11-20 Pedro Alves <pedro@palves.net>
382
383 * language.c (language_arch_info::lookup_primitive_type): Use
384 gdb::function_view instead of gdb::function.
385 (template language_lookup_primitive_type): Rename to ...
386 (language_lookup_primitive_type_1): ... this, and make static.
387 (language_lookup_primitive_type(const struct language_defn *,
388 struct gdbarch *, const char *): Make non-template.
389 (language_lookup_primitive_type(const struct language_defn *,
390 struct gdbarch *, std::function<bool (struct type *)>): Make
391 non-template and use gdb::function_view.
392 * language.h (language_arch_info::lookup_primitive_type): Use
393 gdb::function_view instead of std::function.
394 (language_lookup_primitive_type): No longer template.
395 * opencl-lang.c (lookup_opencl_vector_type): 'filter' is now a
396 lambda instead of a std::function.
397
d5ef21c3
AA
3982020-11-19 Andreas Arnez <arnez@linux.ibm.com>
399
400 PR tdep/26916
401 * s390-tdep.c (s390_process_record): Fix recording of STOC, STOCG,
402 and STOCFH.
403
a5adb8f3
SM
4042020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
405
406 * f-lang.c (fortran_value_subarray): Use plongest/pulongest.
407
70125a45
SM
4082020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
409
410 * gdbarch.sh (read_core_file_mappings): Remove `other` parameter
411 in `loop_cb` parameter.
412 * gdbarch.c: Re-generate.
413 * gdbarch.h: Re-generate.
414 * arch-utils.c (default_read_core_file_mappings): Remove `other`
415 parameter.
416 * arch-utils.h (default_read_core_file_mappings): Likewise.
417 * corelow.c (core_target::build_file_mappings): Likewise.
418 * linux-tdep.c (linux_read_core_file_mappings): Likewise.
419 (linux_core_info_proc_mappings): Likewise.
420
a5c641b5
AB
4212020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
422
423 * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
424 * NEWS: Mention new options.
425 * f-array-walker.h: New file.
426 * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
427 (repack_array_slices): New static global.
428 (show_repack_array_slices): New function.
429 (fortran_array_slicing_debug): New static global.
430 (show_fortran_array_slicing_debug): New function.
431 (value_f90_subarray): Delete.
432 (skip_undetermined_arglist): Delete.
433 (class fortran_array_repacker_base_impl): New class.
434 (class fortran_lazy_array_repacker_impl): New class.
435 (class fortran_array_repacker_impl): New class.
436 (fortran_value_subarray): Complete rewrite.
437 (set_fortran_list): New static global.
438 (show_fortran_list): Likewise.
439 (_initialize_f_language): Register new commands.
440 (fortran_adjust_dynamic_array_base_address_hack): New function.
441 * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
442 Declare.
443 * f-valprint.c: Include 'f-array-walker.h'.
444 (class fortran_array_printer_impl): New class.
445 (f77_print_array_1): Delete.
446 (f77_print_array): Delete.
447 (fortran_print_array): New.
448 (f_value_print_inner): Update to call fortran_print_array.
449 * gdbtypes.c: Include 'f-lang.h'.
450 (resolve_dynamic_type_internal): Call
451 fortran_adjust_dynamic_array_base_address_hack.
452
a15a5258
AB
4532020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
454
455 * breakpoint.c (struct watch_options): New struct.
456 (watch_option_defs): New static global.
457 (make_watch_options_def_group): New function.
458 (watch_maybe_just_location): Convert option parsing.
459 (watch_command_completer): New function.
460 (_initialize_breakpoint): Build help text using options mechanism.
461
2e362716
AB
4622020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
463
464 * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
465 (watch_command_1): Update parameter types. Convert locals to
466 bool.
467 (watch_command_wrapper): Change parameter type.
468 (watch_maybe_just_location): Change locals to bool.
469 (rwatch_command_wrapper): Update parameter type.
470 (awatch_command_wrapper): Update parameter type.
471 * breakpoint.h (watch_command_wrapper): Change parameter type.
472 (rwatch_command_wrapper): Update parameter type.
473 (awatch_command_wrapper): Update parameter type.
474 * eval.c (fetch_subexp_value): Change parameter type.
475 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
476 'false' not '0'.
477 * value.h (fetch_subexp_value): Change parameter type in
478 declaration.
479
b3ff61f8
AB
4802020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
481
482 * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
483 skip_spaces.
484
5b7d45d3
KS
4852020-11-18 Keith Seitz <keiths@redhat.com>
486
487 * linux-tdep.c (dump_note_entry_p): Return true instead of
488 checking `filename'.
489
c44191f8
TV
4902020-11-18 Tom de Vries <tdevries@suse.de>
491
492 * debuginfod-support.c (debuginfod_source_query)
493 (debuginfod_debuginfo_query): Also do early exit if
494 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
495
5d8254e1
TV
4962020-11-18 Tom de Vries <tdevries@suse.de>
497
498 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
499 warning.
500
584903d3
SM
5012020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
502
503 * gdbtypes.h (get_array_bounds): Return bool, adjust some
504 callers. Move doc here.
505 * gdbtypes.c (get_array_bounds): Return bool
506
6f2643db
AB
5072020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
508
509 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
510 assert.
511 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
512 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
513 case to the default.
514
037d7135
AB
5152020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
516
517 * printcmd.c: Include 'safe-ctype.c'.
518 (skip_over_slash_fmt): New function.
519 (print_command_completer): Call skip_over_slash_fmt.
520 (display_and_x_command_completer): New function.
521 (_initialize_printcmd): Add command completion for 'x' and
522 'display'.
523
2b3cb400
PA
5242020-11-16 Pedro Alves <pedro@palves.net>
525
526 * frame.c (get_prev_frame): Move get_frame_id call from here ...
527 (get_prev_frame_always_1): ... to here.
528 * inline-frame.c (inline_frame_this_id): Mention
529 get_prev_frame_always_1 in comment.
530
b74dbc20
JB
5312020-11-15 Joel Brobecker <brobecker@adacore.com>
532
533 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
534 handling.
535 (value_less): Add fixed-point handling.
536
0a12719e
JB
5372020-11-15 Joel Brobecker <brobecker@adacore.com>
538
539 * eval.c (binop_promote): Add fixed-point type handling.
540 * valarith.c (fixed_point_binop): New function.
541 (scalar_binop): Add fixed-point type handling.
542 (value_neg): Add fixed-point type handling.
543 * valops.c (value_cast_to_fixed_point): New function.
544 (value_cast): Add fixed-point type handling.
545
0c9150e4
JB
5462020-11-15 Joel Brobecker <brobecker@adacore.com>
547
548 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
549 range types.
550 * c-typeprint.c (c_type_print_varspec_prefix)
551 (c_type_print_varspec_suffix, c_type_print_base_1): Add
552 TYPE_CODE_FIXED_POINT handling.
553 * p-typeprint.c (pascal_type_print_varspec_prefix)
554 (pascal_type_print_varspec_suffix): Likewise.
555 * typeprint.c (print_type_fixed_point): New function.
556 * typeprint.h (print_type_fixed_point): Add declaration.
557
b26daff9
JB
5582020-11-15 Joel Brobecker <brobecker@adacore.com>
559
560 * printcmd.c (print_scalar_formatted): Add fixed-point type
561 handling when options->format is set.
562
09584414
JB
5632020-11-15 Joel Brobecker <brobecker@adacore.com>
564
565 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
566 * dwarf2/read.c (get_dwarf2_rational_constant)
567 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
568 (has_zero_over_zero_small_attribute): New functions.
569 read_base_type, set_die_type): Add fixed-point type handling.
570 * gdb-gdb.py.in: Add fixed-point type handling.
571 * gdbtypes.c: #include "gmp-utils.h".
572 (create_range_type, set_type_code): Add fixed-point type handling.
573 (init_fixed_point_type): New function.
574 (is_integral_type, is_scalar_type): Add fixed-point type handling.
575 (print_fixed_point_type_info): New function.
576 (recursive_dump_type, copy_type_recursive): Add fixed-point type
577 handling.
578 (fixed_point_type_storage): New typedef.
579 (fixed_point_objfile_key): New static global.
580 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
581 (fixed_point_type_base_type, fixed_point_scaling_factor): New
582 functions.
583 * gdbtypes.h: #include "gmp-utils.h".
584 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
585 (union type_specific) <fixed_point_info>: New field.
586 (struct fixed_point_type_info): New struct.
587 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
588 (init_fixed_point_type, is_fixed_point_type)
589 (fixed_point_type_base_type, fixed_point_scaling_factor)
590 (allocate_fixed_point_type_info): Add declarations.
591 * valprint.c (generic_val_print_fixed_point): New function.
592 (generic_value_print): Add fixed-point type handling.
593 * value.c (value_as_address, unpack_long): Add fixed-point type
594 handling.
595
e55c6530
JB
5962020-11-15 Joel Brobecker <brobecker@adacore.com>
597
598 * utils.h (uinteger_pow): Add declaration.
599 * utils.c (uinteger_pow): Moved here (without changes)...
600 * valarith.c (uinteger_pow): ... from here.
601
b34c74ab
JB
6022020-11-15 Joel Brobecker <brobecker@adacore.com>
603
40d9d2fd 604 * gmp-utils.h, gmp-utils.c: New file.
b34c74ab
JB
605 * unittests/gmp-utils-selftests.c: New file.
606 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
607 unittests/gmp-utils-selftests.c.
608 (COMMON_SFILES) Add gmp-utils.c.
609 (HFILES_NO_SRCDIR): Add gmp-utils.h.
610
1b4ac058
JB
6112020-11-15 Joel Brobecker <brobecker@adacore.com>
612
613 * configure.ac: Generate an error if a usable GMP library
614 could not be found.
615 * configure: Regenerate.
616
2c947d9b
JB
6172020-11-15 Joel Brobecker <brobecker@adacore.com>
618
619 * configure.ac: Add support for --with-libgmp-prefix.
620 * Makefile.in (LIBGMP): New variable.
621 (CLIBS): Include $(LIBGMP).
622 * configure, config.in: Regenerate
623
9dd02fc0
AB
6242020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
625
626 PR cli/26879
627 * f-exp.y (COMPLETE): New token.
628 (exp): Two new rules for tab-completion.
629 (saw_name_at_eof): New static global.
630 (last_was_structop): Likewise.
631 (yylex): Set new variables, and return COMPLETE token at the end
632 of the input stream in some cases.
633
758cb810
TT
6342020-11-14 Tom Tromey <tom@tromey.com>
635
636 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
637
749065b7
TT
6382020-11-14 Tom Tromey <tom@tromey.com>
639
640 * opencl-lang.c (opencl_component_ref): Make "comps" const.
641
2c5b1849
SM
6422020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
643
644 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
645
e8b2f0d9
TT
6462020-11-13 Tom Tromey <tom@tromey.com>
647
648 * c-lang.c (convert_ucn, convert_octal, convert_hex)
649 (convert_escape, parse_one_string): Constify.
650
25f4c262
KS
6512020-11-13 Keith Seitz <keiths@redhat.com>
652
653 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
654 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
655 outside of ELF segments" warning for debugin
656
9d3ab915
KS
6572020-11-13 Keith Seitz <keiths@redhat.com>
658
659 PR gdb/23034
660 * elfread.c (elf_symfile_segments): Output a BFD file name
661 for the "Loadable section ... outside of ELF segments" warning.
662
9ecab40c
SM
6632020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
664
665 PR gdb/26835
666 * arm-tdep.c (class arm_instruction_reader): New.
667 (target_arm_instruction_reader): New.
668 (arm_analyze_prologue): Add instruction reader parameter and use
669 it. Use arm_expand_immediate.
670 (class target_arm_instruction_reader): Adjust.
671 (arm_skip_prologue): Adjust.
672 (arm_expand_immediate): New.
673 (arm_scan_prologue): Adjust.
674 (arm_analyze_prologue_test): New.
675 (class test_arm_instruction_reader): New.
676
5a7cf527
AB
6772020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
678
679 * f-lang.c (fortran_argument_convert): Add declaration. Add
680 header comment, taken from f-lang.h. Make static.
681 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
682 (fortran_argument_convert): Delete declaration.
683
7bea47f0
AB
6842020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
685
686 * ada-exp.y (find_primitive_type): Make parameter const.
687 * ada-lang.c (enum ada_primitive_types): Delete.
688 (ada_language::language_arch_info): Update.
689 * c-lang.c (enum c_primitive_types): Delete.
690 (c_language_arch_info): Update.
691 (enum cplus_primitive_types): Delete.
692 (cplus_language::language_arch_info): Update.
693 * d-lang.c (enum d_primitive_types): Delete.
694 (d_language::language_arch_info): Update.
695 * f-lang.c (enum f_primitive_types): Delete.
696 (f_language::language_arch_info): Update.
697 * go-lang.c (enum go_primitive_types): Delete.
698 (go_language::language_arch_info): Update.
699 * language.c (auto_or_unknown_language::language_arch_info):
700 Update.
701 (language_gdbarch_post_init): Use obstack_new, use array indexing.
702 (language_string_char_type): Add header comment, call function in
703 language_arch_info.
704 (language_bool_type): Likewise
705 (language_arch_info::bool_type): Define.
706 (language_lookup_primitive_type_1): Delete.
707 (language_lookup_primitive_type): Rewrite as a templated function
708 to call function in language_arch_info, then instantiate twice.
709 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
710 (language_arch_info::lookup_primitive_type_and_symbol): Define.
711 (language_arch_info::lookup_primitive_type): Define twice with
712 different signatures.
713 (language_arch_info::lookup_primitive_type_as_symbol): Define.
714 (language_lookup_primitive_type_as_symbol): Rewrite to call a
715 member function in language_arch_info.
716 * language.h (language_arch_info): Complete rewrite.
717 (language_lookup_primitive_type): Make templated.
718 * m2-lang.c (enum m2_primitive_types): Delete.
719 (m2_language::language_arch_info): Update.
720 * opencl-lang.c (OCL_P_TYPE): Delete.
721 (enum opencl_primitive_types): Delete.
722 (opencl_type_data): Delete.
723 (builtin_opencl_type): Delete.
724 (lookup_opencl_vector_type): Update.
725 (opencl_language::language_arch_info): Update, lots of content
726 moved from...
727 (build_opencl_types): ...here. This function is now deleted.
728 (_initialize_opencl_language): Delete.
729 * p-lang.c (enum pascal_primitive_types): Delete.
730 (pascal_language::language_arch_info): Update.
731 * rust-lang.c (enum rust_primitive_types): Delete.
732 (rust_language::language_arch_info): Update.
733
bf6e5d01
SM
7342020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
735
736 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
737 dwarf2_queue_guard.
738
1350c3b4
SM
7392020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
740
741 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
742 comment.
743
6f738b01
SM
7442020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
745
746 * dwarf2/read.c (dwarf_read_debug_printf,
747 dwarf_read_debug_printf_v): New macros, use throughout the file.
748
10c19fad
SV
7492020-11-12 Shahab Vahedi <shahab@synopsys.com>
750
10806efd 751 PR tdep/27015
10c19fad
SV
752 * arc-linux-tdep.c (collect_register): Populate "eret" by
753 "pc" value from the regcache when asked for "pc" value.
754
1f2624a3
TT
7552020-11-12 Tom Tromey <tom@tromey.com>
756
757 PR rust/26799:
758 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
759 exist.
760
ab33b152
AB
7612020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
762
763 * features/Makefile (XMLTOC): Add rx.xml.
764 (FEATURE_XMLFILES): Remove rx.xml.
765 (FEATURE_CFILES rule): Pass '-single-feature' flag.
766 * features/rx.c: Regenerate.
767 * features/rx.xml: Wrap in `target` tags, and reindent.
768 * target-descriptions.c (struct maint_print_c_tdesc_options): New
769 structure.
770 (maint_print_c_tdesc_opt_def): New typedef.
771 (maint_print_c_tdesc_opt_defs): New static global.
772 (make_maint_print_c_tdesc_options_def_group): New function.
773 (maint_print_c_tdesc_cmd): Make use of command line flags, only
774 print single feature C file for target descriptions containing a
775 single feature.
776 (maint_print_c_tdesc_cmd_completer): New function.
777 (_initialize_target_descriptions): Update call to register command
778 completer, and include command line flag in help text.
779
550820e1
AB
7802020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
781
782 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
783 numbers.
784 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
785 enum values.
786
baf20f76
TT
7872020-11-10 Tom Tromey <tom@tromey.com>
788
789 * value.h (internalvar_name): Update.
790 * value.c (internalvar_name): Make return type const.
791
caaece0e
TT
7922020-11-10 Tom Tromey <tom@tromey.com>
793
794 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
795 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
796 const.
797
8e20b4be
TT
7982020-11-10 Tom Tromey <tom@tromey.com>
799
800 * objc-lang.h (value_nsstring): Update.
801 * objc-lang.c (value_nsstring): Make "ptr" const.
802
86775fab
AB
8032020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
804
805 * expprint.c (print_subexp_funcall): Increment expression position
806 after reading argument count.
807 * f-lang.c (print_subexp_f): Skip over opcode before calling
808 common function.
809 (dump_subexp_body_f): Likewise.
810
3fed4c0b
RG
8112020-11-06 Romain Geissler <romain.geissler@amadeus.com>
812
813 PR python/26832
814 * configure: Regenerate.
815 * configure.ac: Check for python modules ctypes instead of
816 itertools.
817
ac3d4064
PA
8182020-11-06 Pedro Alves <pedro@palves.net>
819
820 * macroexp.c (struct macro_buffer): Split in two classes. Add
821 uses adjusted.
822 (struct shared_macro_buffer): New, factored out from struct
823 macro_buffer.
824 (struct growable_macro_buffer): New, factored out from struct
825 macro_buffer.
826 (set_token, get_comment, get_identifier, get_pp_number)
827 (get_character_constant, get_string_literal, get_punctuator)
828 (get_next_token_for_substitution): Constify parameters.
829 (substitute_args): Constify locals.
830
606decb2
TT
8312020-11-05 Tom Tromey <tom@tromey.com>
832
833 * dwarf2/read.c (read_cutu_die_from_dwo)
834 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
835 (build_type_psymtabs_1): Update.
836 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
837 parameter.
838 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
839 Don't read section. Add assert.
840
9c91c725
TT
8412020-11-04 Tom Tromey <tromey@adacore.com>
842
843 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
844
8d9fd3a1
TT
8452020-11-04 Tom Tromey <tromey@adacore.com>
846
847 * ada-typeprint.c (ada_print_type): Handle __T types.
848
d8f62e84
TT
8492020-11-04 Tom Tromey <tromey@adacore.com>
850
851 * dwarf2/read.c (add_partial_symbol, process_die):
852 Handle DW_TAG_array_type.
853 (is_type_tag_for_partial): Add "lang" parameter.
854 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
855
7ff5b937
TT
8562020-11-04 Tom Tromey <tromey@adacore.com>
857
858 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
859
10f6a3ad
TT
8602020-11-04 Tom Tromey <tromey@adacore.com>
861
862 * dwarf2/read.c (read_array_type): Only apply stride to innermost
863 array.
864
b72795a8
TT
8652020-11-04 Tom Tromey <tromey@adacore.com>
866
867 * gdbtypes.c (update_static_array_size): Handle bit stride.
868
24aa1b02
TT
8692020-11-04 Tom Tromey <tromey@adacore.com>
870
871 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
872
c9a28cbe
TT
8732020-11-04 Tom Tromey <tromey@adacore.com>
874
875 * ada-lang.c (ada_is_any_packed_array_type): New function.
876 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
877
57567375
TT
8782020-11-04 Tom Tromey <tromey@adacore.com>
879
880 * dwarf2/read.c (recognize_bound_expression)
881 (quirk_ada_thick_pointer): New functions.
882 (read_array_type): Call quirk_ada_thick_pointer.
883 (set_die_type): Add "skip_data_location" parameter.
884 (quirk_ada_thick_pointer): New function.
885 (process_structure_scope): Call quirk_ada_thick_pointer.
886 * ada-lang.c (ada_is_unconstrained_packed_array_type)
887 (decode_packed_array_bitsize): Handle thick pointers without
888 parallel types.
889 (ada_is_gnat_encoded_packed_array_type): Rename from
890 ada_is_packed_array_type.
891 (ada_is_constrained_packed_array_type): Update.
892 * ada-valprint.c (ada_val_print_gnat_array): Remove.
893 (ada_value_print_1): Use ada_get_decoded_value.
894
a7400e44
TT
8952020-11-04 Tom Tromey <tromey@adacore.com>
896
897 * ada-lang.c (recursively_update_array_bitsize): New function.
898 (decode_constrained_packed_array_type): Call it.
899
75fd6a26
TT
9002020-11-04 Tom Tromey <tromey@adacore.com>
901
902 * ada-lang.c (to_fixed_array_type): Error if
903 decode_constrained_packed_array_type returns NULL.
904
93f9561e
TT
9052020-11-04 Tom Tromey <tromey@adacore.com>
906
907 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
908
257e02d8
TT
9092020-11-02 Tom Tromey <tromey@adacore.com>
910
911 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
912 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
913 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
914 * amd64-ravenscar-thread.c: New file.
915 * amd64-ravenscar-thread.h: New file.
916 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
917 * configure.tgt (amd64_tobjs): Add ravenscar objects.
918
74d877e5
AB
9192020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
920
921 * main.c (execute_cmdargs): New function.
922 (captured_main_1): Make use of execute_cmdargs.
923
64aaad63
AB
9242020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
925
926 * NEWS: Mention changes to config file search path.
927 * main.c
928
5b3d3560
TT
9292020-11-02 Tom Tromey <tromey@adacore.com>
930
931 * python/python.c: Consolidate two HAVE_PYTHON blocks.
932 (python_GdbModuleDef): Move earlier. Now static.
933 (do_start_initialization): Consolidate some IS_PY3K blocks.
934
dda83cd7
SM
9352020-11-02 Simon Marchi <simon.marchi@efficios.com>
936
937 * aarch64-linux-tdep.c: Fix indentation.
938 * aarch64-ravenscar-thread.c: Fix indentation.
939 * aarch64-tdep.c: Fix indentation.
940 * aarch64-tdep.h: Fix indentation.
941 * ada-lang.c: Fix indentation.
942 * ada-lang.h: Fix indentation.
943 * ada-tasks.c: Fix indentation.
944 * ada-typeprint.c: Fix indentation.
945 * ada-valprint.c: Fix indentation.
946 * ada-varobj.c: Fix indentation.
947 * addrmap.c: Fix indentation.
948 * addrmap.h: Fix indentation.
949 * agent.c: Fix indentation.
950 * aix-thread.c: Fix indentation.
951 * alpha-bsd-nat.c: Fix indentation.
952 * alpha-linux-tdep.c: Fix indentation.
953 * alpha-mdebug-tdep.c: Fix indentation.
954 * alpha-nbsd-tdep.c: Fix indentation.
955 * alpha-obsd-tdep.c: Fix indentation.
956 * alpha-tdep.c: Fix indentation.
957 * amd64-bsd-nat.c: Fix indentation.
958 * amd64-darwin-tdep.c: Fix indentation.
959 * amd64-linux-nat.c: Fix indentation.
960 * amd64-linux-tdep.c: Fix indentation.
961 * amd64-nat.c: Fix indentation.
962 * amd64-obsd-tdep.c: Fix indentation.
963 * amd64-tdep.c: Fix indentation.
964 * amd64-windows-tdep.c: Fix indentation.
965 * annotate.c: Fix indentation.
966 * arc-tdep.c: Fix indentation.
967 * arch-utils.c: Fix indentation.
968 * arch/arm-get-next-pcs.c: Fix indentation.
969 * arch/arm.c: Fix indentation.
970 * arm-linux-nat.c: Fix indentation.
971 * arm-linux-tdep.c: Fix indentation.
972 * arm-nbsd-tdep.c: Fix indentation.
973 * arm-pikeos-tdep.c: Fix indentation.
974 * arm-tdep.c: Fix indentation.
975 * arm-tdep.h: Fix indentation.
976 * arm-wince-tdep.c: Fix indentation.
977 * auto-load.c: Fix indentation.
978 * auxv.c: Fix indentation.
979 * avr-tdep.c: Fix indentation.
980 * ax-gdb.c: Fix indentation.
981 * ax-general.c: Fix indentation.
982 * bfin-linux-tdep.c: Fix indentation.
983 * block.c: Fix indentation.
984 * block.h: Fix indentation.
985 * blockframe.c: Fix indentation.
986 * bpf-tdep.c: Fix indentation.
987 * break-catch-sig.c: Fix indentation.
988 * break-catch-syscall.c: Fix indentation.
989 * break-catch-throw.c: Fix indentation.
990 * breakpoint.c: Fix indentation.
991 * breakpoint.h: Fix indentation.
992 * bsd-uthread.c: Fix indentation.
993 * btrace.c: Fix indentation.
994 * build-id.c: Fix indentation.
995 * buildsym-legacy.h: Fix indentation.
996 * buildsym.c: Fix indentation.
997 * c-typeprint.c: Fix indentation.
998 * c-valprint.c: Fix indentation.
999 * c-varobj.c: Fix indentation.
1000 * charset.c: Fix indentation.
1001 * cli/cli-cmds.c: Fix indentation.
1002 * cli/cli-decode.c: Fix indentation.
1003 * cli/cli-decode.h: Fix indentation.
1004 * cli/cli-script.c: Fix indentation.
1005 * cli/cli-setshow.c: Fix indentation.
1006 * coff-pe-read.c: Fix indentation.
1007 * coffread.c: Fix indentation.
1008 * compile/compile-cplus-types.c: Fix indentation.
1009 * compile/compile-object-load.c: Fix indentation.
1010 * compile/compile-object-run.c: Fix indentation.
1011 * completer.c: Fix indentation.
1012 * corefile.c: Fix indentation.
1013 * corelow.c: Fix indentation.
1014 * cp-abi.h: Fix indentation.
1015 * cp-namespace.c: Fix indentation.
1016 * cp-support.c: Fix indentation.
1017 * cp-valprint.c: Fix indentation.
1018 * cris-linux-tdep.c: Fix indentation.
1019 * cris-tdep.c: Fix indentation.
1020 * darwin-nat-info.c: Fix indentation.
1021 * darwin-nat.c: Fix indentation.
1022 * darwin-nat.h: Fix indentation.
1023 * dbxread.c: Fix indentation.
1024 * dcache.c: Fix indentation.
1025 * disasm.c: Fix indentation.
1026 * dtrace-probe.c: Fix indentation.
1027 * dwarf2/abbrev.c: Fix indentation.
1028 * dwarf2/attribute.c: Fix indentation.
1029 * dwarf2/expr.c: Fix indentation.
1030 * dwarf2/frame.c: Fix indentation.
1031 * dwarf2/index-cache.c: Fix indentation.
1032 * dwarf2/index-write.c: Fix indentation.
1033 * dwarf2/line-header.c: Fix indentation.
1034 * dwarf2/loc.c: Fix indentation.
1035 * dwarf2/macro.c: Fix indentation.
1036 * dwarf2/read.c: Fix indentation.
1037 * dwarf2/read.h: Fix indentation.
1038 * elfread.c: Fix indentation.
1039 * eval.c: Fix indentation.
1040 * event-top.c: Fix indentation.
1041 * exec.c: Fix indentation.
1042 * exec.h: Fix indentation.
1043 * expprint.c: Fix indentation.
1044 * f-lang.c: Fix indentation.
1045 * f-typeprint.c: Fix indentation.
1046 * f-valprint.c: Fix indentation.
1047 * fbsd-nat.c: Fix indentation.
1048 * fbsd-tdep.c: Fix indentation.
1049 * findvar.c: Fix indentation.
1050 * fork-child.c: Fix indentation.
1051 * frame-unwind.c: Fix indentation.
1052 * frame-unwind.h: Fix indentation.
1053 * frame.c: Fix indentation.
1054 * frv-linux-tdep.c: Fix indentation.
1055 * frv-tdep.c: Fix indentation.
1056 * frv-tdep.h: Fix indentation.
1057 * ft32-tdep.c: Fix indentation.
1058 * gcore.c: Fix indentation.
1059 * gdb_bfd.c: Fix indentation.
1060 * gdbarch.sh: Fix indentation.
1061 * gdbarch.c: Re-generate
1062 * gdbarch.h: Re-generate.
1063 * gdbcore.h: Fix indentation.
1064 * gdbthread.h: Fix indentation.
1065 * gdbtypes.c: Fix indentation.
1066 * gdbtypes.h: Fix indentation.
1067 * glibc-tdep.c: Fix indentation.
1068 * gnu-nat.c: Fix indentation.
1069 * gnu-nat.h: Fix indentation.
1070 * gnu-v2-abi.c: Fix indentation.
1071 * gnu-v3-abi.c: Fix indentation.
1072 * go32-nat.c: Fix indentation.
1073 * guile/guile-internal.h: Fix indentation.
1074 * guile/scm-cmd.c: Fix indentation.
1075 * guile/scm-frame.c: Fix indentation.
1076 * guile/scm-iterator.c: Fix indentation.
1077 * guile/scm-math.c: Fix indentation.
1078 * guile/scm-ports.c: Fix indentation.
1079 * guile/scm-pretty-print.c: Fix indentation.
1080 * guile/scm-value.c: Fix indentation.
1081 * h8300-tdep.c: Fix indentation.
1082 * hppa-linux-nat.c: Fix indentation.
1083 * hppa-linux-tdep.c: Fix indentation.
1084 * hppa-nbsd-nat.c: Fix indentation.
1085 * hppa-nbsd-tdep.c: Fix indentation.
1086 * hppa-obsd-nat.c: Fix indentation.
1087 * hppa-tdep.c: Fix indentation.
1088 * hppa-tdep.h: Fix indentation.
1089 * i386-bsd-nat.c: Fix indentation.
1090 * i386-darwin-nat.c: Fix indentation.
1091 * i386-darwin-tdep.c: Fix indentation.
1092 * i386-dicos-tdep.c: Fix indentation.
1093 * i386-gnu-nat.c: Fix indentation.
1094 * i386-linux-nat.c: Fix indentation.
1095 * i386-linux-tdep.c: Fix indentation.
1096 * i386-nto-tdep.c: Fix indentation.
1097 * i386-obsd-tdep.c: Fix indentation.
1098 * i386-sol2-nat.c: Fix indentation.
1099 * i386-tdep.c: Fix indentation.
1100 * i386-tdep.h: Fix indentation.
1101 * i386-windows-tdep.c: Fix indentation.
1102 * i387-tdep.c: Fix indentation.
1103 * i387-tdep.h: Fix indentation.
1104 * ia64-libunwind-tdep.c: Fix indentation.
1105 * ia64-libunwind-tdep.h: Fix indentation.
1106 * ia64-linux-nat.c: Fix indentation.
1107 * ia64-linux-tdep.c: Fix indentation.
1108 * ia64-tdep.c: Fix indentation.
1109 * ia64-tdep.h: Fix indentation.
1110 * ia64-vms-tdep.c: Fix indentation.
1111 * infcall.c: Fix indentation.
1112 * infcmd.c: Fix indentation.
1113 * inferior.c: Fix indentation.
1114 * infrun.c: Fix indentation.
1115 * iq2000-tdep.c: Fix indentation.
1116 * language.c: Fix indentation.
1117 * linespec.c: Fix indentation.
1118 * linux-fork.c: Fix indentation.
1119 * linux-nat.c: Fix indentation.
1120 * linux-tdep.c: Fix indentation.
1121 * linux-thread-db.c: Fix indentation.
1122 * lm32-tdep.c: Fix indentation.
1123 * m2-lang.c: Fix indentation.
1124 * m2-typeprint.c: Fix indentation.
1125 * m2-valprint.c: Fix indentation.
1126 * m32c-tdep.c: Fix indentation.
1127 * m32r-linux-tdep.c: Fix indentation.
1128 * m32r-tdep.c: Fix indentation.
1129 * m68hc11-tdep.c: Fix indentation.
1130 * m68k-bsd-nat.c: Fix indentation.
1131 * m68k-linux-nat.c: Fix indentation.
1132 * m68k-linux-tdep.c: Fix indentation.
1133 * m68k-tdep.c: Fix indentation.
1134 * machoread.c: Fix indentation.
1135 * macrocmd.c: Fix indentation.
1136 * macroexp.c: Fix indentation.
1137 * macroscope.c: Fix indentation.
1138 * macrotab.c: Fix indentation.
1139 * macrotab.h: Fix indentation.
1140 * main.c: Fix indentation.
1141 * mdebugread.c: Fix indentation.
1142 * mep-tdep.c: Fix indentation.
1143 * mi/mi-cmd-catch.c: Fix indentation.
1144 * mi/mi-cmd-disas.c: Fix indentation.
1145 * mi/mi-cmd-env.c: Fix indentation.
1146 * mi/mi-cmd-stack.c: Fix indentation.
1147 * mi/mi-cmd-var.c: Fix indentation.
1148 * mi/mi-cmds.c: Fix indentation.
1149 * mi/mi-main.c: Fix indentation.
1150 * mi/mi-parse.c: Fix indentation.
1151 * microblaze-tdep.c: Fix indentation.
1152 * minidebug.c: Fix indentation.
1153 * minsyms.c: Fix indentation.
1154 * mips-linux-nat.c: Fix indentation.
1155 * mips-linux-tdep.c: Fix indentation.
1156 * mips-nbsd-tdep.c: Fix indentation.
1157 * mips-tdep.c: Fix indentation.
1158 * mn10300-linux-tdep.c: Fix indentation.
1159 * mn10300-tdep.c: Fix indentation.
1160 * moxie-tdep.c: Fix indentation.
1161 * msp430-tdep.c: Fix indentation.
1162 * namespace.h: Fix indentation.
1163 * nat/fork-inferior.c: Fix indentation.
1164 * nat/gdb_ptrace.h: Fix indentation.
1165 * nat/linux-namespaces.c: Fix indentation.
1166 * nat/linux-osdata.c: Fix indentation.
1167 * nat/netbsd-nat.c: Fix indentation.
1168 * nat/x86-dregs.c: Fix indentation.
1169 * nbsd-nat.c: Fix indentation.
1170 * nbsd-tdep.c: Fix indentation.
1171 * nios2-linux-tdep.c: Fix indentation.
1172 * nios2-tdep.c: Fix indentation.
1173 * nto-procfs.c: Fix indentation.
1174 * nto-tdep.c: Fix indentation.
1175 * objfiles.c: Fix indentation.
1176 * objfiles.h: Fix indentation.
1177 * opencl-lang.c: Fix indentation.
1178 * or1k-tdep.c: Fix indentation.
1179 * osabi.c: Fix indentation.
1180 * osabi.h: Fix indentation.
1181 * osdata.c: Fix indentation.
1182 * p-lang.c: Fix indentation.
1183 * p-typeprint.c: Fix indentation.
1184 * p-valprint.c: Fix indentation.
1185 * parse.c: Fix indentation.
1186 * ppc-linux-nat.c: Fix indentation.
1187 * ppc-linux-tdep.c: Fix indentation.
1188 * ppc-nbsd-nat.c: Fix indentation.
1189 * ppc-nbsd-tdep.c: Fix indentation.
1190 * ppc-obsd-nat.c: Fix indentation.
1191 * ppc-ravenscar-thread.c: Fix indentation.
1192 * ppc-sysv-tdep.c: Fix indentation.
1193 * ppc64-tdep.c: Fix indentation.
1194 * printcmd.c: Fix indentation.
1195 * proc-api.c: Fix indentation.
1196 * producer.c: Fix indentation.
1197 * producer.h: Fix indentation.
1198 * prologue-value.c: Fix indentation.
1199 * prologue-value.h: Fix indentation.
1200 * psymtab.c: Fix indentation.
1201 * python/py-arch.c: Fix indentation.
1202 * python/py-bpevent.c: Fix indentation.
1203 * python/py-event.c: Fix indentation.
1204 * python/py-event.h: Fix indentation.
1205 * python/py-finishbreakpoint.c: Fix indentation.
1206 * python/py-frame.c: Fix indentation.
1207 * python/py-framefilter.c: Fix indentation.
1208 * python/py-inferior.c: Fix indentation.
1209 * python/py-infthread.c: Fix indentation.
1210 * python/py-objfile.c: Fix indentation.
1211 * python/py-prettyprint.c: Fix indentation.
1212 * python/py-registers.c: Fix indentation.
1213 * python/py-signalevent.c: Fix indentation.
1214 * python/py-stopevent.c: Fix indentation.
1215 * python/py-stopevent.h: Fix indentation.
1216 * python/py-threadevent.c: Fix indentation.
1217 * python/py-tui.c: Fix indentation.
1218 * python/py-unwind.c: Fix indentation.
1219 * python/py-value.c: Fix indentation.
1220 * python/py-xmethods.c: Fix indentation.
1221 * python/python-internal.h: Fix indentation.
1222 * python/python.c: Fix indentation.
1223 * ravenscar-thread.c: Fix indentation.
1224 * record-btrace.c: Fix indentation.
1225 * record-full.c: Fix indentation.
1226 * record.c: Fix indentation.
1227 * reggroups.c: Fix indentation.
1228 * regset.h: Fix indentation.
1229 * remote-fileio.c: Fix indentation.
1230 * remote.c: Fix indentation.
1231 * reverse.c: Fix indentation.
1232 * riscv-linux-tdep.c: Fix indentation.
1233 * riscv-ravenscar-thread.c: Fix indentation.
1234 * riscv-tdep.c: Fix indentation.
1235 * rl78-tdep.c: Fix indentation.
1236 * rs6000-aix-tdep.c: Fix indentation.
1237 * rs6000-lynx178-tdep.c: Fix indentation.
1238 * rs6000-nat.c: Fix indentation.
1239 * rs6000-tdep.c: Fix indentation.
1240 * rust-lang.c: Fix indentation.
1241 * rx-tdep.c: Fix indentation.
1242 * s12z-tdep.c: Fix indentation.
1243 * s390-linux-tdep.c: Fix indentation.
1244 * score-tdep.c: Fix indentation.
1245 * ser-base.c: Fix indentation.
1246 * ser-mingw.c: Fix indentation.
1247 * ser-uds.c: Fix indentation.
1248 * ser-unix.c: Fix indentation.
1249 * serial.c: Fix indentation.
1250 * sh-linux-tdep.c: Fix indentation.
1251 * sh-nbsd-tdep.c: Fix indentation.
1252 * sh-tdep.c: Fix indentation.
1253 * skip.c: Fix indentation.
1254 * sol-thread.c: Fix indentation.
1255 * solib-aix.c: Fix indentation.
1256 * solib-darwin.c: Fix indentation.
1257 * solib-frv.c: Fix indentation.
1258 * solib-svr4.c: Fix indentation.
1259 * solib.c: Fix indentation.
1260 * source.c: Fix indentation.
1261 * sparc-linux-tdep.c: Fix indentation.
1262 * sparc-nbsd-tdep.c: Fix indentation.
1263 * sparc-obsd-tdep.c: Fix indentation.
1264 * sparc-ravenscar-thread.c: Fix indentation.
1265 * sparc-tdep.c: Fix indentation.
1266 * sparc64-linux-tdep.c: Fix indentation.
1267 * sparc64-nbsd-tdep.c: Fix indentation.
1268 * sparc64-obsd-tdep.c: Fix indentation.
1269 * sparc64-tdep.c: Fix indentation.
1270 * stabsread.c: Fix indentation.
1271 * stack.c: Fix indentation.
1272 * stap-probe.c: Fix indentation.
1273 * stubs/ia64vms-stub.c: Fix indentation.
1274 * stubs/m32r-stub.c: Fix indentation.
1275 * stubs/m68k-stub.c: Fix indentation.
1276 * stubs/sh-stub.c: Fix indentation.
1277 * stubs/sparc-stub.c: Fix indentation.
1278 * symfile-mem.c: Fix indentation.
1279 * symfile.c: Fix indentation.
1280 * symfile.h: Fix indentation.
1281 * symmisc.c: Fix indentation.
1282 * symtab.c: Fix indentation.
1283 * symtab.h: Fix indentation.
1284 * target-float.c: Fix indentation.
1285 * target.c: Fix indentation.
1286 * target.h: Fix indentation.
1287 * tic6x-tdep.c: Fix indentation.
1288 * tilegx-linux-tdep.c: Fix indentation.
1289 * tilegx-tdep.c: Fix indentation.
1290 * top.c: Fix indentation.
1291 * tracefile-tfile.c: Fix indentation.
1292 * tracepoint.c: Fix indentation.
1293 * tui/tui-disasm.c: Fix indentation.
1294 * tui/tui-io.c: Fix indentation.
1295 * tui/tui-regs.c: Fix indentation.
1296 * tui/tui-stack.c: Fix indentation.
1297 * tui/tui-win.c: Fix indentation.
1298 * tui/tui-winsource.c: Fix indentation.
1299 * tui/tui.c: Fix indentation.
1300 * typeprint.c: Fix indentation.
1301 * ui-out.h: Fix indentation.
1302 * unittests/copy_bitwise-selftests.c: Fix indentation.
1303 * unittests/memory-map-selftests.c: Fix indentation.
1304 * utils.c: Fix indentation.
1305 * v850-tdep.c: Fix indentation.
1306 * valarith.c: Fix indentation.
1307 * valops.c: Fix indentation.
1308 * valprint.c: Fix indentation.
1309 * valprint.h: Fix indentation.
1310 * value.c: Fix indentation.
1311 * value.h: Fix indentation.
1312 * varobj.c: Fix indentation.
1313 * vax-tdep.c: Fix indentation.
1314 * windows-nat.c: Fix indentation.
1315 * windows-tdep.c: Fix indentation.
1316 * xcoffread.c: Fix indentation.
1317 * xml-syscall.c: Fix indentation.
1318 * xml-tdesc.c: Fix indentation.
1319 * xstormy16-tdep.c: Fix indentation.
1320 * xtensa-config.c: Fix indentation.
1321 * xtensa-linux-nat.c: Fix indentation.
1322 * xtensa-linux-tdep.c: Fix indentation.
1323 * xtensa-tdep.c: Fix indentation.
1324
e1f57067
AB
13252020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1326 Craig Blackmore <craig.blackmore@embecosm.com>
1327
1328 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
1329 as an unsigned value.
1330
ae7754b2
TT
13312020-11-01 Tom Tromey <tom@tromey.com>
1332
1333 * dbxread.c (dbx_end_psymtab): Update.
1334 * dwarf2/read.c (process_psymtab_comp_unit_reader)
1335 (build_type_psymtabs_reader): Update.
1336 * xcoffread.c (xcoff_end_psymtab): Update.
1337 * ctfread.c (scan_partial_symbols): Update.
1338 * psymtab.c (sort_pst_symbols): Remove.
1339 (partial_symtab::end): Rename from end_psymtab_common. Inline
1340 sort_pst_symbols.
1341 * psympriv.h (struct partial_symtab) <end>: New method.
1342 (end_psymtab_common): Don't declare.
1343
0684bb51
TT
13442020-11-01 Tom Tromey <tom@tromey.com>
1345
1346 * symmisc.c (count_psyms): New function.
1347 (print_objfile_statistics): Use it.
1348 * psymtab.c (append_psymbol_to_list): Remove.
1349 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
1350 * objfiles.h (struct objstats) <n_psyms>: Remove.
1351
089002bb
TT
13522020-11-01 Tom Tromey <tom@tromey.com>
1353
1354 * dbxread.c (dbx_end_psymtab): Update.
1355 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
1356 (build_type_psymtabs_reader): Update.
1357 * xcoffread.c (xcoff_end_psymtab): Update.
1358 * ctfread.c (scan_partial_symbols): Update.
1359 * psympriv.h (end_psymtab_common): Update.
1360 * psymtab.c (end_psymtab_common): Remove objfile parameter.
1361 (sort_pst_symbols): Likewise.
1362
525454d6
TT
13632020-11-01 Tom Tromey <tom@tromey.com>
1364
1365 * dbxread.c (dbx_symfile_read): Update.
1366 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
1367 * xcoffread.c (xcoff_initial_scan): Update.
1368 * psympriv.h (init_psymbol_list): Don't declare.
1369 * psymtab.c (init_psymbol_list): Remove.
1370
60bd1d53
JB
13712020-11-01 Joel Brobecker <brobecker@adacore.com>
1372
1373 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
1374 gnat_encoded_fixed_type_info. Update all callers.
1375
db99d0d0
JB
13762020-11-01 Joel Brobecker <brobecker@adacore.com>
1377
1378 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
1379 line too long.
1380
75f24e86
JB
13812020-11-01 Joel Brobecker <brobecker@adacore.com>
1382
1383 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
1384 cast_from_fixed. Update all callers.
1385 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
1386 Update all callers.
1387 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
1388 Update all callers.
1389 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
1390 ada_scaling_factor.
1391 * ada-typeprint.c: Replace call to ada_scaling_factor by call
1392 to print_gnat_encoded_fixed_point_type.
1393 * ada-valprint.c: Likewise.
1394
4f0469cd
AB
13952020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1396
1397 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
1398 (debug_prefixed_printf): Add check of debug_displaced flag.
1399 * linux-nat.c (linux_nat_debug_printf): Add check of
1400 debug_linux_nat flag.
1401
17417fb0
SM
14022020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1403
1404 * infrun.c (infrun_debug_printf_1): Remove.
1405 (displaced_debug_printf_1): Remove.
1406 (stop_all_threads): Use debug_prefixed_printf.
1407 * infrun.h (infrun_debug_printf_1): Remove.
1408 (infrun_debug_printf): Use debug_prefixed_printf.
1409 (displaced_debug_printf_1): Remove.
1410 (displaced_debug_printf): Use debug_prefixed_printf.
1411 * linux-nat.c (linux_nat_debug_printf_1): Remove.
1412 (linux_nat_debug_printf): Use debug_prefixed_printf.
1413
ad6dba1c
SM
14142020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1415
1416 * configure: Re-generate.
1417 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
1418 AC_LANG_PROGRAM.
1419
b6fb30ed
SM
14202020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1421
1422 * configure: Re-generate.
1423
5164c117
SM
14242020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1425
1426 * configure: Re-generate.
1427
864ca435
SM
14282020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1429
1430 * configure: Re-generate.
1431
b9442ec1
SM
14322020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1433
1434 * configure: Re-generate.
1435
294f2697
SM
14362020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1437
1438 * acinclude.m4: Modernize.
1439 * configure: Re-generate.
1440
5593a99a
SM
14412020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1442
1443 * configure.ac: Modernize.
1444 * configure: Re-generate.
1445
e41fda1d
SM
14462020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1447
1448 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
1449 * configure: Re-generate.
1450 * configure.ac: Remove AM_PROG_CC_STDC.
1451
91e1a0ed
SM
14522020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1453
1454 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
1455 AC_CANONICAL_SYSTEM.
1456 * configure: Re-generate.
1457
136821d9
SM
14582020-10-30 Simon Marchi <simon.marchi@efficios.com>
1459
1460 * infrun.h (displaced_debug_printf): New macro. Replace
1461 displaced debug prints throughout to use it.
1462 (displaced_debug_printf_1): New declaration.
1463 (displaced_step_dump_bytes): Return string, remove ui_file
1464 parameter, update all callers.
1465 * infrun.c (displaced_debug_printf_1): New function.
1466 (displaced_step_dump_bytes): Return string, remove ui_file
1467 parameter
1468
aa2045e7
SM
14692020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
1470
1471 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
1472
b1ec2735
TT
14732020-10-30 Tom Tromey <tromey@adacore.com>
1474
1475 * Makefile.in (stamp-init): Depend on config.status.
1476
b78b3a29
TBA
14772020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1478
1479 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
1480
d70bdd3c
PA
14812020-10-30 Pedro Alves <pedro@palves.net>
1482
1483 * thread.c (lookup_selected_frame): Move ...
1484 * frame.c (lookup_selected_frame): ... here.
1485
79952e69
PA
14862020-10-30 Pedro Alves <pedro@palves.net>
1487
1488 * blockframe.c (block_innermost_frame): Use get_selected_frame.
1489 * frame.c
1490 (scoped_restore_selected_frame::scoped_restore_selected_frame):
1491 Use save_selected_frame. Save language as well.
1492 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
1493 Use restore_selected_frame, and restore language as well.
1494 (selected_frame_id, selected_frame_level): New.
1495 (selected_frame): Update comments.
1496 (save_selected_frame, restore_selected_frame): New.
1497 (get_selected_frame): Use lookup_selected_frame.
1498 (get_selected_frame_if_set): Delete.
1499 (select_frame): Record selected_frame_level and selected_frame_id.
1500 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
1501 fields.
1502 (get_selected_frame): Make 'message' parameter optional.
1503 (get_selected_frame_if_set): Delete declaration.
1504 (select_frame): Update comments.
1505 (save_selected_frame, restore_selected_frame)
1506 (lookup_selected_frame): Declare.
1507 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
1508 * infrun.c (struct infcall_control_state) <selected_frame_level>:
1509 New field.
1510 (save_infcall_control_state): Use save_selected_frame.
1511 (restore_selected_frame): Delete.
1512 (restore_infcall_control_state): Use restore_selected_frame.
1513 * stack.c (select_frame_command_core, frame_command_core): Use
1514 get_selected_frame.
1515 * thread.c (restore_selected_frame): Rename to ...
1516 (lookup_selected_frame): ... this and make extern. Select the
1517 current frame if the frame level is -1.
1518 (scoped_restore_current_thread::restore): Also restore the
1519 language.
1520 (scoped_restore_current_thread::~scoped_restore_current_thread):
1521 Don't try/catch.
1522 (scoped_restore_current_thread::scoped_restore_current_thread):
1523 Save the language as well. Use save_selected_frame.
1524
58103c33
SM
15252020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1526
1527 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
1528 documentation.
1529 * gdbarch.h: Re-generate.
1530
40a53766
SM
15312020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1532
1533 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
1534 parameter.
1535 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
1536 Likewise.
1537 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1538 Likewise.
1539 * arch-utils.c (default_displaced_step_hw_singlestep):
1540 Likewise.
1541 * arch-utils.h (default_displaced_step_hw_singlestep):
1542 Likewise.
1543 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
1544 Likewise.
1545 * s390-tdep.c (s390_displaced_step_hw_singlestep):
1546 Likewise.
1547 * gdbarch.c: Re-generate.
1548 * gdbarch.h: Re-generate.
1549 * infrun.c (resume_1): Adjust.
1550
8407f91b
TT
15512020-10-29 Tom Tromey <tom@tromey.com>
1552
1553 * progspace.c (program_space::~program_space): Don't call
1554 exec_close.
1555
5008b3b2
TT
15562020-10-29 Tom Tromey <tom@tromey.com>
1557
1558 * exec.c (exec_target::close): Don't change current program
1559 space.
1560
d9eebde0
TT
15612020-10-29 Tom Tromey <tom@tromey.com>
1562
1563 * symfile.c (add_symbol_file_command): Update.
1564 * exec.c (program_space::add_target_sections): Rename.
1565 * symfile-mem.c (symbol_file_add_from_memory): Update.
1566 * progspace.h (struct program_space) <add_target_sections>:
1567 Declare new overload.
1568 * exec.h (add_target_sections_of_objfile): Don't declare.
1569
3769e227
TT
15702020-10-29 Tom Tromey <tom@tromey.com>
1571
1572 * solib.c (solib_map_sections): Update.
1573 * exec.c (program_space::add_target_sections): Now a method.
1574 (exec_file_attach): Update.
1575 * exec.h (add_target_sections): Don't declare.
1576 * progspace.h (struct program_space) <add_target_sections>:
1577 Declare.
1578
2a3f84af
TT
15792020-10-29 Tom Tromey <tom@tromey.com>
1580
1581 * progspace.h (struct program_space) <remove_target_sections>:
1582 Declare.
1583 * exec.c (program_space::remove_target_sections): Now a method.
1584 * exec.h (remove_target_sections): Don't declare.
1585
004eecfd
TT
15862020-10-29 Tom Tromey <tom@tromey.com>
1587
1588 * inferior.c (delete_inferior): Update.
1589 * progspace.c (program_space::empty): Rename from
1590 program_space_empty_p. Return bool.
1591 * progspace.h (struct program_space) <empty>: New method.
1592 (program_space_empty_p): Don't declare.
1593
e39fb971
TT
15942020-10-29 Tom Tromey <tom@tromey.com>
1595
1596 * progspace.c (program_space::~program_space): Don't call
1597 clear_program_space_solib_cache.
1598 (program_space::clear_solib_cache): Rename from
1599 clear_solib_cache.
1600 * solib.c (handle_solib_event): Update.
1601 * progspace.h (struct program_space) <clear_solib_cache>: New
1602 method.
1603 (clear_program_space_solib_cache): Don't declare.
1604
a42d7dd8
TT
16052020-10-29 Tom Tromey <tom@tromey.com>
1606
1607 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1608 * target.c (info_target_command): Update.
1609 * symfile.c (syms_from_objfile_1, finish_new_objfile)
1610 (symbol_file_clear, reread_symbols): Update.
1611 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
1612 * stabsread.c (scan_file_globals): Update.
1613 * solib.c (update_solib_list): Update.
1614 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
1615 (svr4_fetch_objfile_link_map, enable_break)
1616 (svr4_relocate_main_executable)
1617 (svr4_iterate_over_objfiles_in_search_order): Update.
1618 * solib-frv.c (lm_base, enable_break)
1619 (frv_relocate_main_executable): Update.
1620 (main_got, frv_fdpic_find_canonical_descriptor): Update.
1621 (frv_fetch_objfile_link_map): Update.
1622 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
1623 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
1624 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
1625 * remote.c (remote_target::get_offsets): Update.
1626 (remote_target::start_remote)
1627 (extended_remote_target::post_attach): Update.
1628 * objfiles.c (entry_point_address_query): Update.
1629 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
1630 * minsyms.c (get_symbol_leading_char): Update.
1631 * frame.c (inside_main_func): Update.
1632 * progspace.h (symfile_objfile): Remove macro.
1633
19f6550e
TT
16342020-10-29 Tom Tromey <tom@tromey.com>
1635
1636 * exec.c (exec_file_attach): Update.
1637 * progspace.c (program_space::exec_close): Update.
1638 * progspace.h (struct program_space) <ebfd>: Now a
1639 gdb_bfd_ref_ptr.
1640 <set_exec_bfd>: Change argument type.
1641 <exec_bfd>: Update.
1642
7e10abd1
TT
16432020-10-29 Tom Tromey <tom@tromey.com>
1644
1645 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1646 * symfile.c (reread_symbols): Update.
1647 * symfile-mem.c (add_symbol_file_from_memory_command)
1648 (add_vsyscall_page): Update.
1649 * source-cache.c (source_cache::get_plain_source_lines): Update.
1650 * solib-svr4.c (find_program_interpreter, elf_locate_base)
1651 (svr4_current_sos_direct, svr4_exec_displacement)
1652 (svr4_relocate_main_executable): Update.
1653 (svr4_iterate_over_objfiles_in_search_order): Update.
1654 * solib-frv.c (enable_break2, enable_break): Update.
1655 * solib-dsbt.c (lm_base, enable_break): Update.
1656 * solib-darwin.c (find_program_interpreter)
1657 (darwin_solib_create_inferior_hook): Update.
1658 * sol-thread.c (rw_common, ps_pdmodel): Update.
1659 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
1660 * remote.c (compare_sections_command)
1661 (remote_target::trace_set_readonly_regions): Update.
1662 * remote-sim.c (get_sim_inferior_data)
1663 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
1664 (gdbsim_target_open, gdbsim_target::files_info): Update.
1665 * exec.h (exec_bfd): Remove macro.
1666 * progspace.c (initialize_progspace): Update.
1667 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
1668 Update.
1669 * nto-procfs.c (nto_procfs_target::post_attach)
1670 (nto_procfs_target::create_inferior): Update.
1671 * maint.c (maintenance_info_sections): Update.
1672 * linux-thread-db.c (thread_db_target::get_thread_local_address):
1673 Update.
1674 * infcmd.c (post_create_inferior): Update.
1675 * gcore.c (default_gcore_arch, default_gcore_target): Update.
1676 (objfile_find_memory_regions): Update.
1677 * exec.c (validate_exec_file, exec_file_attach)
1678 (exec_read_partial_read_only, print_section_info): Update.
1679 * corelow.c (core_target_open): Update.
1680 * corefile.c (reopen_exec_file, validate_files): Update.
1681 * arm-tdep.c (gdb_print_insn_arm): Update.
1682 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
1683 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
1684 methods.
1685
b55221ab
TT
16862020-10-29 Tom Tromey <tom@tromey.com>
1687
1688 * progspace.h (current_target_sections): Remove macro.
1689 * solib-svr4.c (scan_dyntag): Update.
1690 * solib-dsbt.c (scan_dyntag): Update.
1691 * exec.c (exec_target::close): Update.
1692 (add_target_sections, add_target_sections_of_objfile)
1693 (remove_target_sections, exec_target::get_section_table)
1694 (exec_target::files_info, set_section_command)
1695 (exec_set_section_address, exec_target::has_memory)
1696 (exec_target::has_memory): Update.
1697
5a36e715
TT
16982020-10-29 Tom Tromey <tom@tromey.com>
1699
1700 * source-cache.c (source_cache::get_plain_source_lines): Use
1701 current_program_space.
1702 * corefile.c (reopen_exec_file): Use current_program_space.
1703 * exec.c (exec_file_attach): Use current_program_space.
1704 * exec.h (exec_bfd_mtime): Remove.
1705
784c8592
TT
17062020-10-29 Tom Tromey <tom@tromey.com>
1707
1708 * gcore.c (default_gcore_mach): Remove.
1709 (create_gcore_bfd): Update.
1710
8a4f1402
TT
17112020-10-29 Tom Tromey <tom@tromey.com>
1712
1713 * progspace.c (program_space::exec_close): New method, from
1714 exec_close in exec.c.
1715 * exec.c (exec_close): Move to progspace.c.
1716 (exec_target::close, exec_file_attach): Update.
1717 * progspace.h (struct program_space) <exec_close>: Declare
1718 method.
1719
c20cb686
TT
17202020-10-29 Tom Tromey <tom@tromey.com>
1721
1722 * progspace.h (struct program_space) <exec_filename>: Rename from
1723 pspace_exec_filename. Now a unique_xmalloc_ptr.
1724 * inferior.c (print_selected_inferior): Update.
1725 (print_inferior): Update.
1726 * mi/mi-main.c (print_one_inferior): Update.
1727 * exec.h (exec_filename): Remove macro.
1728 * corefile.c (get_exec_file): Update.
1729 * exec.c (exec_close): Update.
1730 (exec_file_attach): Update.
1731 * progspace.c (clone_program_space): Update.
1732 (print_program_space): Update.
1733
6be2a9ab
TT
17342020-10-29 Tom Tromey <tom@tromey.com>
1735
1736 * target-section.h (struct target_section): Add constructor.
1737 * exec.c (build_section_table, add_target_sections_of_objfile):
1738 Update.
1739 * corelow.c (core_target::build_file_mappings): Update.
1740
cfaa8f76
TBA
17412020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1742
1743 PR gdb/19318
1744 * inferior.c (detach_inferior_command): Restore the current thread.
1745 (kill_inferior_command): Ditto.
1746
1b00ef06
TV
17472020-10-28 Tom de Vries <tdevries@suse.de>
1748
1749 PR symtab/26772
1750 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
1751 map, check it in the "best match" loop.
1752
7f40ce1a
SM
17532020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1754
1755 * m32c-tdep.c: Remove unused includes.
1756
5eb9e3f5
SM
17572020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1758
1759 * xtensa-tdep.c: Remove includes.
1760
b1d4d8d1
TBA
17612020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1762
1763 * breakpoint.c (struct condition_command_opts): New struct.
1764 (condition_command_option_defs): New static global.
1765 (make_condition_command_options_def_group): New function.
1766 (condition_completer): Update to consider the '-force' flag.
1767 (condition_command): Use gdb::option for the '-force' flag.
1768
bd24c5d6
TV
17692020-10-27 Tom de Vries <tdevries@suse.de>
1770
1771 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
1772 symbols in section check.
1773
61eb46a4
TV
17742020-10-27 Tom de Vries <tdevries@suse.de>
1775
1776 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
1777
733d554a
TBA
17782020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1779
1780 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
1781 * breakpoint.c: Update the help text of the 'condition' and 'break'
1782 commands.
1783 (set_breakpoint_condition): Take a new bool parameter
1784 to control whether condition definition should be forced even when
1785 the condition expression is invalid in all of the current locations.
1786 (condition_command): Update the call to 'set_breakpoint_condition'.
1787 (find_condition_and_thread): Take the "-force-condition" flag into
1788 account.
1789 * linespec.c (linespec_keywords): Add "-force-condition" as an
1790 element.
1791 (FORCE_KEYWORD_INDEX): New #define.
1792 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
1793 as a keyword.
1794 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
1795 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
1796 * python/py-breakpoint.c (bppy_set_condition): Ditto.
1797 * NEWS: Mention the changes to the 'break' and 'condition' commands.
1798
b5fa468f
TBA
17992020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1800
1801 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
1802 * breakpoint.c (set_breakpoint_location_condition): New function.
1803 (set_breakpoint_condition): Disable a breakpoint location if parsing
1804 the condition string gives an error.
1805 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
1806 (build_target_condition_list): Ditto.
1807 (build_target_command_list): Ditto.
1808 (build_bpstat_chain): Ditto.
1809 (print_one_breakpoint_location): Ditto.
1810 (print_one_breakpoint): Ditto.
1811 (breakpoint_1): Ditto.
1812 (bp_location::bp_location): Ditto.
1813 (locations_are_equal): Ditto.
1814 (update_breakpoint_locations): Ditto.
1815 (enable_disable_bp_num_loc): Ditto.
1816 (init_breakpoint_sal): Use set_breakpoint_location_condition.
1817 (find_condition_and_thread_for_sals): New static function.
1818 (create_breakpoint): Call find_condition_and_thread_for_sals.
1819 (location_to_sals): Call find_condition_and_thread_for_sals instead
1820 of find_condition_and_thread.
1821
1c47ec3e
TV
18222020-10-26 Tom de Vries <tdevries@suse.de>
1823
1824 * dwarf2/read.c (process_full_comp_unit): Call
1825 dwarf2_find_base_address.
1826
6390859c
TT
18272020-10-26 Tom Tromey <tromey@adacore.com>
1828
1829 * gdbtypes.c (create_range_type): Revert previous patch. Add
1830 comment.
1831
d744f0f9
PA
18322020-10-26 Pedro Alves <pedro@palves.net>
1833
1834 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
1835 (my_waitpid): Use gdb::handle_eintr.
1836
006811bc
SM
18372020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
1838
1839 * acinclude.m4: Update ptrace.m4 path.
1840 * ptrace.m4: Moved to gdbsupport.
1841
c75e31a1
SM
18422020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1843
1844 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
1845 instead of target_gdbarch.
1846
32495661
SM
18472020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1848
1849 * jit.c (jit_reader_load_command): Pass current inferior.
1850 (jit_inferior_init): Change parameter type to inferior, use it.
1851 (jit_inferior_created): Remove.
1852 (jit_inferior_created_hook): Pass inferior parameter down.
1853 (_initialize_jit): Use jit_inferior_created_hook instead of
1854 jit_inferior_created.
1855 * jit.h (jit_inferior_created_hook): Add inferior parameter.
1856 * infrun.c (follow_exec): Pass inferior to
1857 jit_inferior_created_hook.
1858
3f66685e
SM
18592020-10-24 Simon Marchi <simon.marchi@efficios.com>
1860
1861 * linux-thread-db.c (check_pid_namespace_match): Add inferior
1862 parameter and use it.
1863 (thread_db_inferior_created): Pass inferior argument.
1864
a0ff652f
SM
18652020-10-24 Simon Marchi <simon.marchi@efficios.com>
1866
1867 * aix-thread.c (aix_thread_inferior_created): Add inferior
1868 parameter.
1869 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
1870 * dummy-frame.c (cleanup_dummy_frames): Likewise.
1871 * jit.c (jit_inferior_created): Likewise.
1872 * linux-thread-db.c (thread_db_inferior_created): Likewise.
1873 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
1874 * observable.h (inferior_created): Likewise.
1875 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
1876 * symfile-mem.c (add_vsyscall_page): Likewise.
1877 * infcmd.c (post_create_inferior): Pass inferior argument.
1878
3c67532c
JB
18792020-10-24 Joel Brobecker <brobecker@adacore.com>
1880
1881 GDB 10.1 released.
1882
8747316e
JB
18832020-10-23 Joel Brobecker <brobecker@adacore.com>
1884
1885 * ada-typeprint.c (ada_print_type): Remove superfluous second call
1886 to ada_check_typedef.
1887
1a0ea399
AB
18882020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1889
1890 * f-exp.y (f_parse): Rename to...
1891 (f_language::parser): ...this.
1892 * f-lang.c (f_get_encoding): Rename to...
1893 (f_language::get_encoding): ...this.
1894 (f_op_print_tab): Rename to...
1895 (f_language::op_print_tab): ...this.
1896 (exp_descriptor_f): Rename to...
1897 (f_language::exp_descriptor_tab): ...this.
1898 (class f_language): Moved to f-lang.h.
1899 (f_language::language_arch_info): New function, moved out of class
1900 declaration.
1901 (f_language::search_name_hash): Likewise.
1902 (f_language::lookup_symbol_nonlocal): Likewise.
1903 (f_language::get_symbol_name_matcher_inner): Likewise.
1904 * f-lang.h: Add 'valprint.h' include.
1905 (class f_language): Moved here from f-lang.c.
1906 * f-typeprint.c (f_type_print_args): Delete commented out
1907 declaration.
1908 (f_print_typedef): Rename to...
1909 (f_language::print_typedef): ...this.
1910 (f_print_type): Rename to...
1911 (f_language::print_type): ...this.
1912 (f_type_print_varspec_prefix): Delete declaration and rename to...
1913 (f_language::f_type_print_varspec_prefix): ...this.
1914 (f_type_print_varspec_suffix): Delete declaration and rename to...
1915 (f_language::f_type_print_varspec_suffix): ...this.
1916 (f_type_print_base): Delete declaration and rename to...
1917 (f_language::f_type_print_base): ...this.
1918 * f-valprint.c (f_value_print_inner): Rename to...
1919 (f_language::value_print_inner): ...this.
1920 * parse.c: Delete 'f-lang.h' include.
1921
88cefd9b
AB
19222020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1923
1924 * language.h (language_defn::print_type): Add variable names in
1925 declaration, and update header comment.
1926
5399db93
AB
19272020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1928
1929 * ada-lang.c (ada_language::demangle): Rename to...
1930 (ada_language::demangle_symbol): ...this.
1931 * c-lang.c (cplus_language::demangle): Rename to...
1932 (cplus_language::demangle_symbol): ...this.
1933 * d-lang.c (d_language::demangle): Rename to...
1934 (d_language::demangle_symbol): ...this.
1935 * f-lang.c (f_language::demangle): Rename to...
1936 (f_language::demangle_symbol): ...this.
1937 * go-lang.c (go_language::demangle): Rename to...
1938 (go_language::demangle_symbol): ...this.
1939 * language.c (language_demangle): Update call to demangle_symbol.
1940 (auto_or_unknown_language::demangle): Rename to...
1941 (auto_or_unknown_language::demangle_symbol): ...this.
1942 * language.h (language_defn::demangle): Rename to...
1943 (language_defn::demangle_symbol): ...this.
1944 * objc-lang.c (objc_language::demangle): Rename to...
1945 (objc_language::demangle_symbol): ...this.
1946 * rust-lang.c (rust_language::demangle): Rename to...
1947 (rust_language::demangle_symbol): ...this.
1948
4b2f86ef
AB
19492020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1950
1951 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
1952 (iterate_over_file_blocks): Replace use of macro with the macros
1953 definition.
1954
e74b39de
AB
19552020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1956
1957 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
1958 * valprint.c (maybe_print_array_index): Replace use of macro with
1959 the macros definition.
1960
00c696a6
AB
19612020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1962
1963 * ada-lang.c (ada_language::print_array_index): Call value_print
1964 directly.
1965 * language.c (language_defn::print_array_index): Likewise.
1966 * language.h (LA_VALUE_PRINT): Delete.
1967 * valprint.c (value_print): Call value_print on the
1968 current_language directly.
1969
d3b67c56
AB
19702020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1971
1972 * language.h (LA_PRINT_TYPEDEF): Delete.
1973 * typeprint.c (typedef_print): Call print_typedef directly on the
1974 current_language object.
1975
790e2a12
AB
19762020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1977
1978 * m2-exp.y (m2_parse): Rename to...
1979 (m2_language::parser): ...this. Update function signature.
1980 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
1981 (m2_op_print): Rename to...
1982 (m2_language::op_print_tab): ...this, and make const.
1983 (exp_descriptor_modula2): Rename to...
1984 (m2_language::exp_descriptor_modula2): ...this.
1985 (class m2_language): Move to m2-lang.h.
1986 (m2_language::language_arch_info): New function, moved out of
1987 class declaration.
1988 (m2_language::printchar): New function, body from m2_printchar.
1989 (m2_language::printstr): New function, moved out of class
1990 declaration.
1991 (m2_language::emitchar): Likewise.
1992 * m2-lang.h (m2_parse): Delete declaration.
1993 (m2_print_typedef): Delete declaration.
1994 (m2_value_print_inner): Delete declaration.
1995 (class m2_language): Class declaration moved from m2-lang.c,
1996 larger functions are left in m2-lang.c.
1997 * m2-typeprint.c (m2_print_typedef): Rename to...
1998 (m2_language::print_typedef): ...this, and update function
1999 signature.
2000 * m2-valprint.c (m2_value_print_inner): Rename to...
2001 (m2_language::value_print_inner): ...this, replace use of
2002 LA_PRINT_STRING with a direct call to printstr member function,
2003 and update recursive call.
2004
b01175fc
AB
20052020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2006
2007 * language.c (default_is_string_type_p): Delete, implementation
2008 moved into auto_or_unknown_language::is_string_type_p.
2009 (unk_op_print_tab): Moved into
2010 auto_or_unknown_language::opcode_print_table.
2011 (unknown_language_arch_info): Delete, implementation moved into
2012 auto_or_unknown_language::language_arch_info.
2013 (class auto_or_unknown_language): New class, member functions
2014 copied from unknown_language class, with some updates.
2015 (class unknown_language): Most member functions moved into
2016 auto_or_unknown_language class. Inherit from
2017 auto_or_unknown_language class.
2018 (class auto_language): Inherit from auto_or_unknown_language.
2019 Delete most member functions.
2020
1a97fe8c
HD
20212020-10-22 Hannes Domani <ssbssa@yahoo.de>
2022
2023 * stabsread.c (read_member_functions): Remove gdb_assert.
2024
6b9d0dfd
HD
20252020-10-22 Hannes Domani <ssbssa@yahoo.de>
2026
2027 * gdbtypes.c (init_complex_type): Check target type name.
2028
4b4bb603
SM
20292020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2030
2031 * target-debug.h (target_debug_print_struct_target_ops_p):
2032 Remove.
2033 (target_debug_print_async_callback_ftype_p): Remove.
2034 (target_debug_print_struct_trace_state_variable_p): Remove.
2035 (target_debug_print_struct_traceframe_info_p): Remove.
2036 (target_debug_print_VEC__btrace_block_s__pp): Remove.
2037 (target_debug_print_enum_btrace_format): Remove.
2038 (target_debug_print_enum_info_proc_what): Remove.
2039 (target_debug_print_thread_info_pp): Remove.
2040
24f5300a
SM
20412020-10-22 Simon Marchi <simon.marchi@efficios.com>
2042
2043 * target.h (struct target_ops) <make_corefile_notes>:
2044 Change return type to unique pointer.
2045 * target.c (dummy_make_corefile_notes): Likewise.
2046 * exec.c (struct exec_target) <make_corefile_notes>:
2047 Likewise.
2048 (exec_target::make_corefile_notes): Likewise.
2049 * procfs.c (class procfs_target) <make_corefile_notes>:
2050 Likewise.
2051 (procfs_do_thread_registers): Adjust to unique pointer.
2052 (struct procfs_corefile_thread_data): Add constructor.
2053 <note_data>: Change type to unique pointer.
2054 (procfs_corefile_thread_callback): Adjust to unique pointer.
2055 (procfs_target::make_corefile_notes): Change return type to
2056 unique pointer.
2057 * target-delegates.c: Re-generate.
2058 * gcore.c (write_gcore_file_1): Adjust.
2059 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
2060 New.
2061
5fb4027f
TV
20622020-10-22 Tom de Vries <tdevries@suse.de>
2063
2064 * block.c (find_block_in_blockvector): Make sure the returned block
2065 contains pc.
2066
4a636814
SM
20672020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2068
2069 PR gdb/26693
2070 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
2071 parameter.
2072 (load_cu): Pass existing CU.
2073 (process_imported_unit_die): Likewise.
2074 (follow_die_offset): Likewise.
2075
1bd57575
LM
20762020-10-22 Luis Machado <luis.machado@linaro.org>
2077
2078 * corelow.c (core_target::xfer_partial): Also check for an empty
2079 m_core_unavailable_mappings vector.
2080
6b4c676c
AB
20812020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2082
2083 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
2084 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
2085 * f-exp.y (arglist): Allow for a series of subranges.
2086 (subrange): Add cases for subranges with strides.
2087 * f-lang.c (value_f90_subarray): Catch use of array strides and
2088 throw an error.
2089 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
2090
f2d8e4c5
AB
20912020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2092
2093 * expprint.c (print_subexp_standard): Change enum range_type to
2094 range_flag and rename variables to match.
2095 (dump_subexp_body_standard): Likewise.
2096 * expression.h (enum range_type): Rename to...
2097 (enum range_flag): ...this.
2098 (range_types): Rename to...
2099 (range_flags): ...this.
2100 * f-lang.c (value_f90_subarray): Change enum range_type to
2101 range_flag and rename variables to match.
2102 * parse.c (operator_length_standard): Likewise.
2103 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
2104 range_type to range_flag.
2105 * rust-lang.c (rust_evaluate_funcall): Likewise.
2106 (rust_range): Likewise.
2107 (rust_compute_range): Likewise.
2108 (rust_subscript): Likewise.
2109
2f1b18db
AB
21102020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2111
2112 * expprint.c (print_subexp_standard): Update to reflect changes to
2113 enum range_type.
2114 (dump_subexp_body_standard): Likewise.
2115 * expression.h (enum range_type): Convert to a bit field enum, and
2116 make the enum unsigned.
2117 * f-exp.y (subrange): Update to reflect changes to enum
2118 range_type.
2119 * f-lang.c (value_f90_subarray): Likewise.
2120 * parse.c (operator_length_standard): Likewise.
2121 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
2122 * rust-lang.c (rust_range): Likewise.
2123 (rust_compute_range): Likewise.
2124 (rust_subscript): Likewise.
2125
a46d1843
SM
21262020-10-21 Simon Marchi <simon.marchi@efficios.com>
2127
2128 * infrun.c (displaced_step_in_progress_thread): Fix comment.
2129 (displaced_step_in_progress): Fix comment.
2130
c21f37a8
SM
21312020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
2132
2133 * gdbarch.sh (make_corefile_notes): Return unique pointer.
2134 * gdbarch.c: Re-generate.
2135 * gdbarch.h: Re-generate.
2136 * gcore.c (write_gcore_file_1): Adjust.
2137 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
2138 constructor.
2139 <note_data>: Change type to unique pointer.
2140 <abort_iteration>: Change type to bool.
2141 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
2142 (fbsd_collect_thread_registers): Return void, adjust.
2143 (struct fbsd_corefile_thread_data): Add construtor.
2144 <note_data>: Change type to unique pointer.
2145 (fbsd_corefile_thread): Adjust.
2146 (fbsd_make_corefile_notes): Return unique pointer, adjust.
2147 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
2148 to unique pointer, adjust.
2149 (struct linux_collect_regset_section_cb_data): Add constructor.
2150 <note_data>: Change type to unique pointer.
2151 <abort_iteration>: Change type to bool.
2152 (linux_collect_thread_registers): Return void, adjust.
2153 (struct linux_corefile_thread_data): Add constructor.
2154 <note_data>: Change type to unique pointer.
2155 (linux_corefile_thread): Adjust.
2156 (linux_make_corefile_notes): Return unique pointer, adjust.
2157
07fbbd01
SM
21582020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2159
2160 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
2161 * gdbarch.c: Re-generate.
2162 * gdbarch.h: Re-generate.
2163 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
2164 bool.
2165 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
2166 Likewise.
2167 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
2168 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
2169 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
2170 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
2171
39535193
SM
21722020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2173
2174 * gdbarch.sh: Make generated predicates return bool.
2175 * gdbarch.c: Re-generate.
2176 * gdbarch.h: Re-generate.
2177
ad523d01
TT
21782020-10-20 Tom Tromey <tom@tromey.com>
2179
2180 * varobj-iter.h (struct varobj_item): Remove typedef.
2181
c4464ade
SM
21822020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2183
2184 * infrun.c (currently_stepping): Change int to bool
2185 (maybe_software_singlestep): Likewise.
2186 (show_stop_on_solib_events): Likewise.
2187 (stepping_past_nonsteppable_watchpoint): Likewise.
2188 (displaced_step_in_progress_any_inferior): Likewise.
2189 (displaced_step_in_progress_thread): Likewise.
2190 (keep_going_stepped_thread): Likewise.
2191 (thread_still_needs_step_over): Likewise.
2192 (start_step_over): Likewise.
2193 (do_target_resume): Likewise.
2194 (resume_1): Likewise.
2195 (clear_proceed_status): Likewise.
2196 (thread_still_needs_step_over_bp): Likewise.
2197 (proceed): Likewise.
2198 (switch_back_to_stepped_thread): Likewise.
2199 (adjust_pc_after_break): Likewise.
2200 (stepped_in_from): Likewise.
2201 (handle_stop_requested): Likewise.
2202 (handle_syscall_event): Likewise.
2203 (handle_no_resumed): Likewise.
2204 (handle_inferior_event): Likewise.
2205 (finish_step_over): Likewise.
2206 (handle_signal_stop): Likewise.
2207 (process_event_stop_test): Likewise.
2208
2eb20436
SM
22092020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2210
2211 * infrun.c (get_displaced_stepping_state): Fix comment.
2212
e0c45ded
AS
22132020-10-20 Andreas Schwab <schwab@linux-m68k.org>
2214
2215 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
2216
22cc388e
TT
22172020-10-19 Tom Tromey <tromey@adacore.com>
2218
2219 PR tui/26719
2220 * tui/tui-winsource.h (struct tui_source_window_base)
2221 <refresh_window>: Rename from refresh_pad.
2222 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
2223 Rename from refresh_pad.
2224 (tui_source_window_base::show_source_content)
2225 (tui_source_window_base::do_scroll_horizontal): Update.
2226
3c6eb4d4
TBA
22272020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2228
2229 * thread.c (_initialize_thread): Fine-tune the help text of
2230 'info threads'.
2231
26703721
TBA
22322020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2233
2234 * frame.c: Remove the unused 'uinteger_option_def' type alias.
2235
61c26be8
MS
22362020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
2237
2238 * breakpoint.c (handle_jit_event): Add an argument, change how
2239 `jit_event_handler` is called.
2240
932539d7
TT
22412020-10-17 Tom Tromey <tom@tromey.com>
2242
2243 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
2244 (scan_xcoff_symtab): Update.
2245 * psymtab.h (class psymtab_storage) <global_psymbols,
2246 static_psymbols, current_global_psymbols,
2247 current_static_psymbols>: Remove.
2248 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
2249 (match_partial_symbol, lookup_partial_symbol): Update.
2250 (print_partial_symbols): Change parameters.
2251 (dump_psymtab, recursively_search_psymtabs)
2252 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
2253 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
2254 (concat): Remove.
2255 (end_psymtab_common): Simplify.
2256 (append_psymbol_to_list): Change parameters.
2257 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
2258 (init_psymbol_list): Simplify.
2259 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2260 * psympriv.h (struct partial_symtab) <empty>: New method.
2261 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
2262 Remove.
2263 <global_psymbols, static_psymbols>: New members.
2264 <add_psymbol>: New methods.
2265 (add_psymbol_to_list): Don't declare.
2266 (psymbol_placement): Move earlier.
2267 * mdebugread.c (parse_partial_symbols): Update.
2268 (handle_psymbol_enumerators): Change parameters.
2269 (mdebug_expand_psymtab): Update.
2270 * dwarf2/read.c (process_psymtab_comp_unit_reader)
2271 (add_partial_symbol): Update.
2272 * dwarf2/index-write.c (write_psymbols): Change parameters.
2273 (write_one_signatured_type): Update.
2274 (recursively_count_psymbols): Update.
2275 (recursively_write_psymbols): Update.
2276 (class debug_names) <recursively_write_psymbols>: Update.
2277 <write_psymbols>: Change parameters.
2278 <write_one_signatured_type>: Update.
2279 * dbxread.c (read_dbx_symtab): Update.
2280 (dbx_end_psymtab): Use partial_symtab::empty.
2281 * ctfread.c (struct ctf_context) <pst>: New member.
2282 (create_partial_symtab): Set it.
2283 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
2284 (scan_partial_symbols): Use the psymtab's context. Update.
2285
cfabbd35
TT
22862020-10-17 Tom Tromey <tom@tromey.com>
2287
2288 * valprint.c (generic_value_print): Remove comment.
2289 * m2-valprint.c (m2_value_print_inner): Remove comment.
2290 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
2291 type.
2292
520596f2
TV
22932020-10-17 Tom de Vries <tdevries@suse.de>
2294
2295 PR symtab/26317
2296 * source.c (select_source_symtab): Handling sal.symtab == NULL for
2297 symbol main.
2298
76547ab3
TV
22992020-10-14 Tom de Vries <tdevries@suse.de>
2300
2301 PR gdb/26733
2302 * solib.c (solib_contains_address_p): Handle
2303 'solib->sections == nullptr'.
2304
d3a07122
SM
23052020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2306
2307 PR gdb/26642
2308 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
2309 target can't do async.
2310 * target.c (target_wait): Assert that we don't pass
2311 TARGET_WNOHANG to a target that can't async.
2312
1b71cfcf
KR
23132020-10-13 Kamil Rytarowski <n54@gmx.com>
2314
2315 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
2316 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
2317 * alpha-bsd-nat.c: Adjust include.
2318 * alpha-bsd-tdep.h: Adjust comment.
2319 * alpha-nbsd-tdep.c: Rename to ...
2320 * alpha-netbsd-tdep.c: ... this, adjust include.
2321 * amd64-nbsd-nat.c: Rename to ...
2322 * amd64-netbsd-nat.c: ... this, adjust include.
2323 * amd64-nbsd-tdep.c: Rename to ...
2324 * amd64-netbsd-tdep.c: ... this, adjust include.
2325 * amd64-tdep.h: Adjust include.
2326 * arm-nbsd-nat.c: Rename to ...
2327 * arm-netbsd-nat.c: ... this, adjust include.
2328 * arm-nbsd-tdep.c: Rename to ...
2329 * arm-netbsd-tdep.c: ... this, adjust include.
2330 * arm-nbsd-tdep.h: Rename to ...
2331 * arm-netbsd-tdep.h: ... this, adjust include.
2332 * configure.nat: Adjust file lists.
2333 * configure.tgt: Likewise.
2334 * hppa-nbsd-nat.c: Rename to ...
2335 * hppa-netbsd-nat.c: ... this, adjust include.
2336 * hppa-nbsd-tdep.c: Rename to ...
2337 * hppa-netbsd-tdep.c: ... this, adjust include.
2338 * i386-nbsd-nat.c: Rename to ...
2339 * i386-netbsd-nat.c: ... this, adjust include.
2340 * i386-nbsd-tdep.c: Rename to ...
2341 * i386-netbsd-tdep.c: ... this, adjust include.
2342 * m68k-bsd-nat.c: Adjust include.
2343 * mips-nbsd-nat.c: Rename to ...
2344 * mips-netbsd-nat.c: ... this, adjust include.
2345 * mips-nbsd-tdep.c: Rename to ...
2346 * mips-netbsd-tdep.c: ... this, adjust include.
2347 * mips-nbsd-tdep.h: Rename to ...
2348 * mips-netbsd-tdep.h: ... this.
2349 * nbsd-nat.c: Rename to ...
2350 * netbsd-nat.c: ... this, adjust include.
2351 * nbsd-nat.h: Rename to ...
2352 * netbsd-nat.h: ... this, adjust include.
2353 * nbsd-tdep.c: Rename to ...
2354 * netbsd-tdep.c: ... this, adjust include.
2355 * nbsd-tdep.h: Rename to ...
2356 * netbsd-tdep.h: ... this.
2357 * ppc-nbsd-nat.c: Rename to ...
2358 * ppc-netbsd-nat.c: ... this, adjust include.
2359 * ppc-nbsd-tdep.c: Rename to ...
2360 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
2361 * ppc-nbsd-tdep.h: Rename to ...
2362 * ppc-netbsd-tdep.h: ... this.
2363 * sh-nbsd-nat.c: Rename to ...
2364 * sh-netbsd-nat.c: ... this, adjust include.
2365 * sh-nbsd-tdep.c: Rename to ...
2366 * sh-netbsd-tdep.c: ... this, adjust include.
2367 * sparc-nbsd-nat.c: Rename to ...
2368 * sparc-netbsd-nat.c: ... this.
2369 * sparc-nbsd-tdep.c: Rename to ...
2370 * sparc-netbsd-tdep.c: ... this, adjust include.
2371 * sparc64-nbsd-nat.c: Rename to ...
2372 * sparc64-netbsd-nat.c: ... this.
2373 * sparc64-nbsd-tdep.c: Rename to ...
2374 * sparc64-netbsd-tdep.c: ... this, adjust include.
2375 * sparc64-tdep.h: Adjust comment.
2376 * vax-bsd-nat.c: Adjust include.
2377 * vax-nbsd-tdep.c: Rename to ...
2378 * vax-netbsd-tdep.c: ... this, adjust include.
2379
d7a78e5c
TT
23802020-10-12 Tom Tromey <tom@tromey.com>
2381
2382 * target.h (struct target_ops) <get_section_table>: Update.
2383 (target_get_section_table): Update.
2384 * target.c (target_get_section_table, target_section_by_addr)
2385 (memory_xfer_partial_1): Update.
2386 * target-section.h (target_section_table): Now an alias.
2387 * target-delegates.c: Rebuild.
2388 * target-debug.h (target_debug_print_target_section_table_p):
2389 Rename from target_debug_print_struct_target_section_table_p.
2390 * symfile.c (build_section_addr_info_from_section_table): Update.
2391 * solib.c (solib_map_sections, solib_contains_address_p): Update.
2392 * solib-svr4.c (scan_dyntag): Update.
2393 * solib-dsbt.c (scan_dyntag): Update.
2394 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2395 Update.
2396 * record-full.c (record_full_core_target::xfer_partial): Update.
2397 * progspace.h (struct program_space) <target_sections>: Update.
2398 * exec.h (print_section_info): Update.
2399 * exec.c (exec_target::close, build_section_table)
2400 (add_target_sections, add_target_sections_of_objfile)
2401 (remove_target_sections, exec_on_vfork)
2402 (section_table_available_memory)
2403 (section_table_xfer_memory_partial)
2404 (exec_target::get_section_table, exec_target::xfer_partial)
2405 (print_section_info, set_section_command)
2406 (exec_set_section_address, exec_target::has_memory): Update.
2407 * corelow.c (core_target::build_file_mappings)
2408 (core_target::xfer_partial, core_target::info_proc_mappings)
2409 (core_target::info_proc_mappings): Update.
2410 * bfd-target.c (class target_bfd): Update
2411
eda214ce
TT
24122020-10-12 Tom Tromey <tom@tromey.com>
2413
2414 * progspace.c (program_space::~program_space): Don't call
2415 clear_section_table.
2416 * exec.h (clear_section_table): Don't declare.
2417 * exec.c (exec_target::close): Update.
2418 (clear_section_table): Remove.
2419
91840ee3
TT
24202020-10-12 Tom Tromey <tom@tromey.com>
2421
2422 * exec.c (add_target_sections_of_objfile): Simplify.
2423
2d128614
TT
24242020-10-12 Tom Tromey <tom@tromey.com>
2425
2426 * solib.c (solib_map_sections): Update.
2427 * record-full.c (record_full_core_open_1): Update.
2428 * exec.h (build_section_table): Return a target_section_table.
2429 * exec.c (exec_file_attach): Update.
2430 (build_section_table): Return a target_section_table.
2431 * corelow.c (core_target::core_target): Update.
2432 * bfd-target.c (target_bfd::target_bfd): Update.
2433
bb2a6777
TT
24342020-10-12 Tom Tromey <tom@tromey.com>
2435
2436 * target.c (target_section_by_addr, memory_xfer_partial_1):
2437 Update.
2438 * target-section.h (struct target_section_table): Use
2439 std::vector.
2440 * symfile.h (build_section_addr_info_from_section_table): Take a
2441 target_section_table.
2442 * symfile.c (build_section_addr_info_from_section_table): Take a
2443 target_section_table.
2444 * solist.h (struct so_list) <sections>: Change type.
2445 <sections_end>: Remove.
2446 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
2447 (solib_contains_address_p): Update.
2448 * solib-svr4.c (scan_dyntag): Update.
2449 * solib-dsbt.c (scan_dyntag): Update.
2450 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2451 Update.
2452 * record-full.c (record_full_core_start, record_full_core_end):
2453 Remove.
2454 (record_full_core_sections): New global.
2455 (record_full_core_open_1, record_full_core_target::xfer_partial):
2456 Update.
2457 * exec.h (build_section_table, section_table_xfer_memory_partial)
2458 (add_target_sections): Take a target_section_table.
2459 * exec.c (exec_file_attach, clear_section_table): Update.
2460 (resize_section_table): Remove.
2461 (build_section_table, add_target_sections): Take a
2462 target_section_table.
2463 (add_target_sections_of_objfile, remove_target_sections)
2464 (exec_on_vfork): Update.
2465 (section_table_available_memory): Take a target_section_table.
2466 (section_table_read_available_memory): Update.
2467 (section_table_xfer_memory_partial): Take a target_section_table.
2468 (print_section_info, set_section_command)
2469 (exec_set_section_address, exec_target::has_memory): Update.
2470 * corelow.c (class core_target) <m_core_section_table,
2471 m_core_file_mappings>: Remove braces.
2472 <~core_target>: Remove.
2473 (core_target::core_target): Update.
2474 (core_target::~core_target): Remove.
2475 (core_target::build_file_mappings)
2476 (core_target::xfer_memory_via_mappings)
2477 (core_target::xfer_partial, core_target::info_proc_mappings):
2478 Update.
2479 * bfd-target.c (target_bfd::xfer_partial): Update.
2480 (target_bfd::target_bfd): Update.
2481 (target_bfd::~target_bfd): Remove.
2482
7b466b10
TT
24832020-10-12 Tom Tromey <tom@tromey.com>
2484
2485 * target.h (struct target_section, struct target_section_table):
2486 Move to target-section.h.
2487 * target-section.h: New file.
2488
87a37e5e
PA
24892020-10-12 Pedro Alves <pedro@palves.net>
2490
2491 PR exp/26602
2492 * valops.c (struct struct_field_searcher): New.
2493 (update_search_result): Rename to ...
2494 (struct_field_searcher::update_result): ... this. Simplify
2495 prototype. Record all found fields.
2496 (do_search_struct_field): Rename to ...
2497 (struct_field_searcher::search): ... this. Simplify prototype.
2498 Maintain stack of visited baseclass path. Call update_result for
2499 fields too. Keep searching fields in baseclasses instead of
2500 stopping at the first found field.
2501 (search_struct_field): Use struct_field_searcher. When looking
2502 for fields, report ambiguous access attempts.
2503
9370fd51
AB
25042020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
2505
2506 * frame.c (inside_main_func): Check full symbols as well as
2507 minimal symbols.
2508
59c8a30b
JB
25092020-10-09 Joel Brobecker <brobecker@adacore.com>
2510
2511 * ada-lang.c (advance_wild_match): Rewrite the function's
2512 description. Change the type of target0, t0 and t1 to char.
2513
7c184d33
TT
25142020-10-09 Tom Tromey <tromey@adacore.com>
2515
2516 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
2517
5c4258f4
TT
25182020-10-09 Tom Tromey <tromey@adacore.com>
2519
2520 * ada-lang.h (ada_encode): Return std::string.
2521 * ada-lang.c (ada_encode_1): Return std::string.
2522 (ada_encode): Likewise.
2523 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
2524 Update.
2525 * ada-exp.y (block_lookup, write_var_or_type): Update.
2526
3d87245c
HD
25272020-10-09 Hannes Domani <ssbssa@yahoo.de>
2528
2529 PR exp/26714
2530 * printcmd.c (print_formatted): Handle void results as
2531 unformatted prints.
2532
bbb826f5
AB
25332020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2534
2535 * arch/aarch32.c (aarch32_create_target_description): Release the
2536 target_desc_up as late as possible.
2537 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2538 * arch/amd64.c (amd64_create_target_description): Likewise.
2539 * arch/arc.c (arc_create_target_description): Return a
2540 target_desc_up, don't release it.
2541 * arch/arc.h (arc_create_target_description): Update declaration.
2542 (arc_lookup_target_description): Move target_desc_up into the
2543 cache, and return a borrowed pointer.
2544 * arch/arm.c (arm_create_target_description): Release the
2545 target_desc_up as late as possible.
2546 * arch/i386.c (i386_create_target_description): Likewise.
2547 * arch/riscv.h (riscv_create_target_description): Update
2548 declaration to match definition.
2549 * arch/tic6x.c (tic6x_create_target_description): Release the
2550 target_desc_up as late as possible.
2551
361cb219
AB
25522020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2553
2554 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
2555 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
2556
f5c4b229
JV
25572020-10-09 Jan Vrany <jan.vrany@labware.com>
2558
2559 * source.c (directory_command): Notify observers that "directories"
2560 parameter has changed.
2561
b2701685
TT
25622020-10-08 Tom Tromey <tom@tromey.com>
2563
2564 * cli/cli-cmds.c (print_disassembly): Style function name and
2565 addresses. Add _() wrappers.
2566
ada508b6
SV
25672020-10-08 Shahab Vahedi <shahab@synopsys.com>
2568
2569 * NEWS: Mention ARC support in GDBserver.
2570
51a948fd
AB
25712020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
2572
2573 * arch/aarch32.c (aarch32_create_target_description): Release
2574 unique_ptr returned from allocate_target_description.
2575 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2576 * arch/amd64.c (amd64_create_target_description): Likewise.
2577 * arch/arc.c (arc_create_target_description): Likewise.
2578 * arch/arm.c (arm_create_target_description): Likewise.
2579 * arch/i386.c (i386_create_target_description): Likewise.
2580 * arch/riscv.c (riscv_create_target_description): Update return
2581 type. Handle allocate_target_description returning a unique_ptr.
2582 (riscv_lookup_target_description): Update to handle unique_ptr.
2583 * arch/tic6x.c (tic6x_create_target_description): Release
2584 unique_ptr returned from allocate_target_description.
2585 * features/microblaze-with-stack-protect.c: Regenerate.
2586 * features/microblaze.c: Regenerate.
2587 * features/mips-dsp-linux.c: Regenerate.
2588 * features/mips-linux.c: Regenerate.
2589 * features/mips64-dsp-linux.c: Regenerate.
2590 * features/mips64-linux.c: Regenerate.
2591 * features/nds32.c: Regenerate.
2592 * features/nios2.c: Regenerate.
2593 * features/or1k.c: Regenerate.
2594 * features/rs6000/powerpc-32.c: Regenerate.
2595 * features/rs6000/powerpc-32l.c: Regenerate.
2596 * features/rs6000/powerpc-403.c: Regenerate.
2597 * features/rs6000/powerpc-403gc.c: Regenerate.
2598 * features/rs6000/powerpc-405.c: Regenerate.
2599 * features/rs6000/powerpc-505.c: Regenerate.
2600 * features/rs6000/powerpc-601.c: Regenerate.
2601 * features/rs6000/powerpc-602.c: Regenerate.
2602 * features/rs6000/powerpc-603.c: Regenerate.
2603 * features/rs6000/powerpc-604.c: Regenerate.
2604 * features/rs6000/powerpc-64.c: Regenerate.
2605 * features/rs6000/powerpc-64l.c: Regenerate.
2606 * features/rs6000/powerpc-7400.c: Regenerate.
2607 * features/rs6000/powerpc-750.c: Regenerate.
2608 * features/rs6000/powerpc-860.c: Regenerate.
2609 * features/rs6000/powerpc-altivec32.c: Regenerate.
2610 * features/rs6000/powerpc-altivec32l.c: Regenerate.
2611 * features/rs6000/powerpc-altivec64.c: Regenerate.
2612 * features/rs6000/powerpc-altivec64l.c: Regenerate.
2613 * features/rs6000/powerpc-e500.c: Regenerate.
2614 * features/rs6000/powerpc-e500l.c: Regenerate.
2615 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
2616 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
2617 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
2618 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
2619 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
2620 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
2621 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
2622 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
2623 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
2624 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
2625 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
2626 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
2627 * features/rs6000/powerpc-vsx32.c: Regenerate.
2628 * features/rs6000/powerpc-vsx32l.c: Regenerate.
2629 * features/rs6000/powerpc-vsx64.c: Regenerate.
2630 * features/rs6000/powerpc-vsx64l.c: Regenerate.
2631 * features/rs6000/rs6000.c: Regenerate.
2632 * features/rx.c: Regenerate.
2633 * features/s390-gs-linux64.c: Regenerate.
2634 * features/s390-linux32.c: Regenerate.
2635 * features/s390-linux32v1.c: Regenerate.
2636 * features/s390-linux32v2.c: Regenerate.
2637 * features/s390-linux64.c: Regenerate.
2638 * features/s390-linux64v1.c: Regenerate.
2639 * features/s390-linux64v2.c: Regenerate.
2640 * features/s390-te-linux64.c: Regenerate.
2641 * features/s390-tevx-linux64.c: Regenerate.
2642 * features/s390-vx-linux64.c: Regenerate.
2643 * features/s390x-gs-linux64.c: Regenerate.
2644 * features/s390x-linux64.c: Regenerate.
2645 * features/s390x-linux64v1.c: Regenerate.
2646 * features/s390x-linux64v2.c: Regenerate.
2647 * features/s390x-te-linux64.c: Regenerate.
2648 * features/s390x-tevx-linux64.c: Regenerate.
2649 * features/s390x-vx-linux64.c: Regenerate.
2650 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
2651 from allocate_target_description.
2652 * target-descriptions.c (allocate_target_description): Update
2653 return type.
2654 (print_c_tdesc::visit_pre): Release unique_ptr returned from
2655 allocate_target_description.
2656
485c47e5
TT
26572020-10-07 Tom Tromey <tromey@adacore.com>
2658
2659 * unittests/search-memory-selftests.c: New file.
2660 * Makefile.in (SELFTESTS_SRCS): Add
2661 unittests/search-memory-selftests.c.
2662
3a135a91
TT
26632020-10-07 Tom Tromey <tromey@adacore.com>
2664
2665 PR gdb/16930:
2666 * findcmd.c (_initialize_mem_search): Mention that the range is
2667 inclusive.
2668
4a72de73
TT
26692020-10-07 Tom Tromey <tromey@adacore.com>
2670
2671 * target.h (simple_search_memory): Don't declare.
2672 * target.c (simple_search_memory): Move to gdbsupport.
2673 (default_search_memory): Update.
2674 * remote.c (remote_target::search_memory): Update.
2675
a038ffd8
SM
26762020-10-07 Simon Marchi <simon.marchi@efficios.com>
2677
2678 * Makefile.in (COMPILE): Add CXXFLAGS.
2679 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
2680 (check-headers): Add CXXFLAGS.
2681
cc463201
AK
26822020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
2683
2684 * arc-linux-tdep.h: New file.
2685 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
2686 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
2687 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
2688 arc_linux_gregset, arc_linux_v2_regset,
2689 arc_linux_iterate_over_regset_sections,
2690 arc_linux_core_read_description): Implement.
2691 (arc_linux_init_osabi): Set iterate_over_regset_sections.
2692 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
2693 (arc_gdbarch_features_create): Add.
2694 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
2695
e4bd363f
SV
26962020-10-07 Shahab Vahedi <shahab@synopsys.com>
2697
2698 * arch/arc.h: Rename "arc_gdbarch_features" to
2699 "arc_arch_features".
2700 * arc-tdep.h: Likewise.
2701 * arc-tdep.c: Likewise.
2702
b68bef99
TBA
27032020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2704
2705 * infcmd.c (attach_command): Remove the redundant call to
2706 `clear_proceed_status`.
2707
4641551a
KR
27082020-10-07 Kamil Rytarowski <n54@gmx.com>
2709
2710 * nat/netbsd-nat.c (write_memory, read_memory): Update.
2711
91e5e8db
KR
27122020-10-07 Kamil Rytarowski <n54@gmx.com>
2713
2714 * nat/netbsd-nat.c (write_memory, read_memory): Add.
2715 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
2716 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
2717
64c03bdb
SM
27182020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
2719
2720 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
2721 (_initialize_break_catch_sig): Don't allocate array.
2722
31a8f60f
AB
27232020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
2724
2725 * symtab.c (find_pc_line): Return unmapped addresses when the
2726 requested address is also unmapped.
2727
9e6dbd8b
SM
27282020-10-05 Simon Marchi <simon.marchi@efficios.com>
2729
2730 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
2731 tui/tui-out.h.
2732
a1d217e8
SM
27332020-10-05 Simon Marchi <simon.marchi@efficios.com>
2734
2735 * amd64-windows-tdep.c (amd64_windows_return_value): Use
2736 type::is_vector instead of TYPE_VECTOR.
2737
7d144117
SM
27382020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
2739
2740 * auto-load.c (auto_load_objfile_script_1): Don't use
2741 debugfile_holder as temporary variable when stripping drive
2742 letter.
2743
cd096ec8
HD
27442020-10-05 Hannes Domani <ssbssa@yahoo.de>
2745
2746 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
2747 Add TYPE_CODE_COMPLEX.
2748 (amd64_windows_return_value): Fix types returned via XMM0.
2749
b58e7f72
AH
27502020-10-05 Alan Hayward <alan.hayward@arm.com>
2751
2752 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
2753 AArch64/ARM maintainers.
2754
8d378f27
SM
27552020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
2756
2757 * NEWS: Mention set/show debug event-loop.
2758
d5519913
TT
27592020-10-02 Tom Tromey <tromey@adacore.com>
2760
2761 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
2762 REG_EXTENDED.
2763
18b67edc
SM
27642020-10-02 Simon Marchi <simon.marchi@efficios.com>
2765
2766 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
2767 * procfs.c (procfs_inferior_created): Remove.
2768 (_initialize_procfs): Don't register procfs_inferior_created.
2769
6b01403b
SM
27702020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2771
2772 * async-event.c (invoke_async_signal_handlers): Add debug
2773 print.
2774 (check_async_event_handlers): Likewise.
2775 * event-top.c (show_debug_event_loop): New function.
2776 (_initialize_event_top): Register "set debug event-loop"
2777 setting.
2778
ba988419
SM
27792020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2780
2781 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
2782 * debug.h: Remove.
2783 * infrun.c: Include gdbsupport/common-debug.h.
2784 * linux-nat.c: Likewise.
2785
db20ebdf
SM
27862020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2787
2788 * async-event.h (create_async_signal_handler): Add name
2789 parameter.
2790 (create_async_event_handler): Likewise.
2791 * async-event.c (struct async_signal_handler) <name>: New field.
2792 (struct async_event_handler) <name>: New field.
2793 (create_async_signal_handler): Assign name.
2794 (create_async_event_handler): Assign name.
2795 * event-top.c (async_init_signals): Pass name when creating
2796 handler.
2797 * infrun.c (_initialize_infrun): Likewise.
2798 * record-btrace.c (record_btrace_push_target): Likewise.
2799 * record-full.c (record_full_open): Likewise.
2800 * remote-notif.c (remote_notif_state_allocate): Likewise.
2801 * remote.c (remote_target::open_1): Likewise.
2802 * tui/tui-win.c (tui_initialize_win): Likewise.
2803
2554f6f5
SM
28042020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2805
2806 * async-event.c (initialize_async_signal_handlers): Pass name to
2807 add_file_handler
2808 * event-top.c (ui_register_input_event_handler): Likewise.
2809 * linux-nat.c (linux_nat_target::async): Likewise.
2810 * run-on-main-thread.c (_initialize_run_on_main_thread):
2811 Likewise
2812 * ser-base.c (reschedule): Likewise.
2813 (ser_base_async): Likewise.
2814 * tui/tui-io.c: Likewise.
2815 * top.h (struct ui) <num>: New field.
2816 * top.c (highest_ui_num): New variable.
2817 (ui::ui): Initialize num.
2818
a7aba266
SM
28192020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2820
2821 * observable.h <inferior_created>: Remove parameters. Update all
2822 listeners.
2823 * inferior.h (post_create_inferior): Remove target parameter.
2824 Update all callers.
2825
048fde1e 28262020-10-02 Nitika Achra <Nitika.Achra@amd.com>
2827
2828 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
2829 and DW_MACRO_undef_strx.
2830 (dwarf_decode_macros): Likewise
2831 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
2832 which is the value of DW_AT_str_offsets_base.
2833 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
2834 str_offsets_base.
2835
064280be
KR
28362020-10-01 Kamil Rytarowski <n54@gmx.com>
2837
2838 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
2839
6ff33035
KR
28402020-10-01 Kamil Rytarowski <n54@gmx.com>
2841
2842 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
2843 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
2844
1eb6eb79
KR
28452020-10-01 Kamil Rytarowski <n54@gmx.com>
2846
2847 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
2848
95eb9e54
TV
28492020-09-30 Tom de Vries <tdevries@suse.de>
2850
2851 PR symtab/26683
2852 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
2853
cae21f8e
TT
28542020-09-30 Tom Tromey <tromey@adacore.com>
2855
2856 * dwarf2/read.c (handle_variant): Use constant_value.
2857
529908cb
TT
28582020-09-29 Tom Tromey <tom@tromey.com>
2859
2860 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
2861 (read_file_scope, dwarf2_get_pc_bounds)
2862 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
2863 (read_structure_type, handle_struct_member_die)
2864 (read_enumeration_type, read_array_type, read_set_type)
2865 (read_tag_pointer_type, read_tag_reference_type)
2866 (read_subroutine_type, read_base_type, read_subrange_type)
2867 (read_full_die_1, partial_die_info::read)
2868 (partial_die_info::read, by, new_symbol)
2869 (dwarf2_const_value_data, dwarf2_const_value_attr)
2870 (dump_die_shallow, dwarf2_fetch_constant_bytes)
2871 (prepare_one_comp_unit): Update.
2872 * dwarf2/attribute.h (DW_UNSND): Remove.
2873
c45bc3f8
TT
28742020-09-29 Tom Tromey <tom@tromey.com>
2875
2876 * dwarf2/read.c (read_func_scope, prototyped_function_p)
2877 (read_subroutine_type, partial_die_info::read)
2878 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
2879 (dwarf2_add_member_fn): Update.
2880 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
2881 * dwarf2/attribute.c (attribute::as_boolean): New method.
2882
23dca5c3
TT
28832020-09-29 Tom Tromey <tom@tromey.com>
2884
2885 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
2886 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
2887 method.
2888 * dwarf2/attribute.c (attribute::as_virtuality): New method.
2889
52c14d11
TT
28902020-09-29 Tom Tromey <tom@tromey.com>
2891
2892 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
2893 the attribute's form.
2894
e8e5c158
TT
28952020-09-29 Tom Tromey <tom@tromey.com>
2896
2897 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
2898 (dwarf2_add_member_fn): Update.
2899 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
2900 * dwarf2/attribute.c (attribute::defaulted): New method, from
2901 is_valid_DW_AT_defaulted.
2902
d4df075e
TT
29032020-09-29 Tom Tromey <tom@tromey.com>
2904
2905 * dwarf2/read.c (dw2_get_file_names_reader)
2906 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
2907 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
2908 (dwarf2_symbol_mark_computed): Use as_unsigned.
2909 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
2910 method.
2911 <form_is_section_offset>: Update comment.
2912
bf23a268
TT
29132020-09-29 Tom Tromey <tom@tromey.com>
2914
2915 * dwarf2/read.c (dwarf2_access_attribute): Rename from
2916 dwarf2_default_access_attribute. Look up attribute.
2917 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
2918 Update.
2919
7a5f294d
TT
29202020-09-29 Tom Tromey <tom@tromey.com>
2921
2922 * dwarf2/read.c (skip_one_die): Update.
2923 (read_full_die_1): Change how reprocessing is done.
2924 (partial_die_info::read): Update.
2925 (read_attribute_value): Remove need_reprocess parameter.
2926 (read_attribute): Likewise.
2927 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
2928 New method.
2929
36d378cf
TT
29302020-09-29 Tom Tromey <tom@tromey.com>
2931
2932 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
2933 (dwarf2_const_value_attr, dump_die_shallow)
2934 (dwarf2_fetch_constant_bytes): Update.
2935 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
2936 comment.
2937 <set_address>: New method.
2938 (DW_ADDR): Remove.
2939 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
2940 (attribute::as_string, attribute::as_address): Add assert.
2941
fe56917a
TT
29422020-09-29 Tom Tromey <tom@tromey.com>
2943
2944 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
2945 (read_attribute_reprocess, read_attribute_value): Update.
2946 (read_attribute): Clear requires_reprocessing.
2947 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
2948 form_requires_reprocessing>: New methods.
2949 <string_init>: Clear requires_reprocessing.
2950 <set_unsigned_reprocess>: New method.
2951 <name>: Shrink by one bit.
2952 <requires_reprocessing>: New member.
2953 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
2954 method.
2955
414ad644
TT
29562020-09-29 Tom Tromey <tom@tromey.com>
2957
2958 * dwarf2/read.c (read_attribute_value): Update.
2959 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
2960 set_unsigned>: New methods.
2961 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
2962
1bc397c5
TT
29632020-09-29 Tom Tromey <tom@tromey.com>
2964
2965 * dwarf2/read.c (get_alignment, read_array_order)
2966 (read_attribute_value, dwarf2_const_value_attr)
2967 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
2968 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
2969 New methods.
2970 (DW_SND): Remove.
2971
630ed6b9
TT
29722020-09-29 Tom Tromey <tom@tromey.com>
2973
2974 * dwarf2/read.c (read_attribute_value, lookup_die_type)
2975 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
2976 Update.
2977 * dwarf2/attribute.h (struct attribute) <as_signature,
2978 set_signature>: New methods.
2979 (DW_SIGNATURE): Remove.
2980
9d2246fc
TT
29812020-09-29 Tom Tromey <tom@tromey.com>
2982
2983 * dwarf2/read.c (read_call_site_scope)
2984 (handle_data_member_location, dwarf2_add_member_fn)
2985 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
2986 (partial_die_info::read, read_attribute_value)
2987 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
2988 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
2989 (dwarf2_symbol_mark_computed): Update.
2990 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
2991 methods.
2992 (DW_BLOCK): Remove.
2993 * dwarf2/attribute.c (attribute::form_is_block): Add
2994 DW_FORM_data16.
2995
c6481205
TT
29962020-09-29 Tom Tromey <tom@tromey.com>
2997
2998 * dwarf2/read.c (read_cutu_die_from_dwo)
2999 (read_attribute_reprocess, read_attribute_value, read_attribute)
3000 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
3001 (dwarf2_fetch_constant_bytes): Update.
3002 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
3003 <set_string_noncanonical, set_string_canonical>: New methods.
3004 <string_is_canonical>: Update comment.
3005 <canonical_string_p>: Add assert.
3006 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
3007 * dwarf2/attribute.c (attribute::form_is_string): New method.
3008 (attribute::string): Use it.
3009
3b64bf15
TT
30102020-09-29 Tom Tromey <tom@tromey.com>
3011
3012 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
3013 (dump_die_shallow): Use canonical_string_p.
3014 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
3015 method.
3016
2c830f54
TT
30172020-09-29 Tom Tromey <tom@tromey.com>
3018
3019 * dwarf2/read.c (partial_die_info::read)
3020 (dwarf2_const_value_attr, anonymous_struct_prefix, )
3021 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
3022 attribute::as_string.
3023
6c412691
TT
30242020-09-29 Tom Tromey <tom@tromey.com>
3025
3026 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
3027 DW_ADDR.
3028 (attribute::string): Don't use DW_STRING.
3029 (attribute::get_ref_die_offset): Don't use DW_UNSND.
3030 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
3031
95f982e5
TT
30322020-09-29 Tom Tromey <tom@tromey.com>
3033
3034 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
3035 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
3036 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
3037 * dwarf2/attribute.h (struct attribute): Rename methods.
3038 * dwarf2/attribute.c (attribute::as_address): Rename from
3039 value_as_address.
3040 (attribute::as_string): Rename from value_as_string.
3041
f800b00e
TT
30422020-09-29 Tom Tromey <tom@tromey.com>
3043
3044 * dwarf2/read.c (partial_die_info::read) <case
3045 DW_AT_linkage_name>: Use value_as_string.
3046 (dwarf2_string_attr): Use value_as_string.
3047 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
3048 method.
3049 * dwarf2/attribute.c (attribute::value_as_string): New method.
3050
de38d64a
PA
30512020-09-29 Pedro Alves <pedro@palves.net>
3052
3053 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
3054 defined before using '#pragma GCC diagnostic' instead of checking
3055 __clang__.
3056
9aed480c
TT
30572020-09-28 Tom Tromey <tom@tromey.com>
3058
3059 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
3060 (handle_signal_stop): Update.
3061 * procfs.c (procfs_target::insert_watchpoint): Update.
3062 * target.h (target_have_steppable_watchpoint): Now a function.
3063
8a3ecb79
TT
30642020-09-28 Tom Tromey <tom@tromey.com>
3065
3066 * infrun.c (set_schedlock_func): Update.
3067 * target.h (target_can_lock_scheduler): Now a function.
3068
55f6301a
TT
30692020-09-28 Tom Tromey <tom@tromey.com>
3070
3071 * inferior.h (class inferior) <has_execution>: Update.
3072 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
3073 * valops.c (find_function_in_inferior)
3074 (value_allocate_space_in_inferior): Update.
3075 * top.c (kill_or_detach): Update.
3076 * target.c (target_preopen, set_target_permissions): Update.
3077 (target_has_execution_current): Remove.
3078 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
3079 Update.
3080 * solib.c (update_solib_list, reload_shared_libraries): Update.
3081 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
3082 * solib-dsbt.c (enable_break): Update.
3083 * score-tdep.c (score7_fetch_inst): Update.
3084 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
3085 Update.
3086 * remote.c (remote_target::start_remote)
3087 (remote_target::remote_check_symbols, remote_target::open_1)
3088 (remote_target::remote_detach_1, remote_target::verify_memory)
3089 (remote_target::xfer_partial, remote_target::read_description)
3090 (remote_target::get_min_fast_tracepoint_insn_len): Update.
3091 * record-full.c (record_full_open_1): Update.
3092 * record-btrace.c (record_btrace_target_open): Update.
3093 * objc-lang.c (lookup_objc_class, lookup_child_selector)
3094 (value_nsstring): Update.
3095 * linux-thread-db.c (add_thread_db_info)
3096 (thread_db_find_new_threads_silently, check_thread_db_callback)
3097 (try_thread_db_load_1, record_thread): Update.
3098 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
3099 Update.
3100 * linux-fork.c (checkpoint_command): Update.
3101 * infrun.c (set_non_stop, set_observer_mode)
3102 (check_multi_target_resumption, for_each_just_stopped_thread)
3103 (maybe_remove_breakpoints, normal_stop)
3104 (class infcall_suspend_state): Update.
3105 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
3106 (info_program_command, attach_command): Update.
3107 * infcall.c (call_function_by_hand_dummy): Update.
3108 * inf-loop.c (inferior_event_handler): Update.
3109 * gcore.c (gcore_command, derive_heap_segment): Update.
3110 * exec.c (exec_file_command): Update.
3111 * eval.c (evaluate_subexp): Update.
3112 * compile/compile.c (compile_to_object): Update.
3113 * cli/cli-dump.c (restore_command): Update.
3114 * breakpoint.c (update_watchpoint)
3115 (update_inserted_breakpoint_locations)
3116 (insert_breakpoint_locations, get_bpstat_thread): Update.
3117 * target.h (target_has_execution): Remove macro.
3118 (target_has_execution_current): Don't declare.
3119 (target_has_execution): Rename from target_has_execution_1. Add
3120 argument default.
3121
05374cfd
TT
31222020-09-28 Tom Tromey <tom@tromey.com>
3123
3124 * mi/mi-main.c (exec_reverse_continue)
3125 (mi_cmd_list_target_features): Update.
3126 * infrun.c (set_exec_direction_func): Update.
3127 * target.c (default_execution_direction): Update.
3128 * reverse.c (exec_reverse_once): Update.
3129 * target.h (target_can_execute_reverse): Now a function.
3130
9dccd06e
TT
31312020-09-28 Tom Tromey <tom@tromey.com>
3132
3133 * tui/tui-regs.c (tui_get_register)
3134 (tui_data_window::show_registers): Update.
3135 * thread.c (scoped_restore_current_thread::restore)
3136 (scoped_restore_current_thread::scoped_restore_current_thread):
3137 Update.
3138 * regcache-dump.c (regcache_print): Update.
3139 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
3140 Update.
3141 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
3142 * mep-tdep.c (current_me_module, current_options): Update.
3143 * linux-thread-db.c (thread_db_load): Update.
3144 * infcmd.c (registers_info, info_vector_command)
3145 (info_float_command): Update.
3146 * ia64-tdep.c (ia64_frame_prev_register)
3147 (ia64_sigtramp_frame_prev_register): Update.
3148 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
3149 * gcore.c (derive_stack_segment): Update.
3150 * frame.c (get_current_frame, has_stack_frames): Update.
3151 * findvar.c (language_defn::read_var_value): Update.
3152 * arm-tdep.c (arm_pc_is_thumb): Update.
3153 * target.c (target_has_registers): Rename from
3154 target_has_registers_1.
3155 * target.h (target_has_registers): Remove macro.
3156 (target_has_registers): Rename from target_has_registers_1.
3157
841de120
TT
31582020-09-28 Tom Tromey <tom@tromey.com>
3159
3160 * windows-tdep.c (tlb_make_value): Update.
3161 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3162 * thread.c (scoped_restore_current_thread::restore)
3163 (scoped_restore_current_thread::scoped_restore_current_thread)
3164 (thread_command): Update.
3165 * stack.c (backtrace_command_1, frame_apply_level_command)
3166 (frame_apply_all_command, frame_apply_command): Update.
3167 * infrun.c (siginfo_make_value, restore_infcall_control_state):
3168 Update.
3169 * gcore.c (derive_stack_segment): Update.
3170 * frame.c (get_current_frame, has_stack_frames): Update.
3171 * auxv.c (info_auxv_command): Update.
3172 * ada-tasks.c (ada_build_task_list): Update.
3173 * target.c (target_has_stack): Rename from target_has_stack_1.
3174 * target.h (target_has_stack): Remove macro.
3175 (target_has_stack): Rename from target_has_stack_1.
3176
a739972c
TT
31772020-09-28 Tom Tromey <tom@tromey.com>
3178
3179 * target.c (target_has_memory): Rename from target_has_memory_1.
3180 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3181 * thread.c (scoped_restore_current_thread::restore)
3182 (scoped_restore_current_thread::scoped_restore_current_thread):
3183 Update.
3184 * frame.c (get_current_frame, has_stack_frames): Update.
3185 * target.h (target_has_memory): Remove macro.
3186 (target_has_memory): Rename from target_has_memory_1.
3187
5b8a4776
TT
31882020-09-28 Tom Tromey <tom@tromey.com>
3189
3190 * target.c (target_has_all_memory_1): Remove.
3191 * target.h (target_has_all_memory): Remove define.
3192 (target_has_all_memory_1): Don't declare.
3193
bd356ec6
SM
31942020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
3195
3196 * ser-base.c: Adjust comments formatting.
3197
2c72d5e5
TT
31982020-09-27 Tom Tromey <tom@tromey.com>
3199
3200 PR tui/25342:
3201 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
3202
35a98237
TT
32032020-09-27 Tom Tromey <tom@tromey.com>
3204
3205 PR tui/25342:
3206 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
3207
9e820dec
TT
32082020-09-27 Tom Tromey <tom@tromey.com>
3209
3210 * unittests/tui-selftests.c: Update.
3211 * tui/tui-winsource.h (struct tui_source_window_base)
3212 <extra_margin, show_line_number, refresh_pad>: New methods.
3213 <m_max_length, m_pad>: New members.
3214 (tui_copy_source_line): Update.
3215 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
3216 first_col, line_width, ndigits parameters. Add length.
3217 (tui_source_window_base::show_source_line): Write to pad. Line
3218 number now 0-based.
3219 (tui_source_window_base::refresh_pad): New method.
3220 (tui_source_window_base::show_source_content): Write to pad. Call
3221 refresh_pad.
3222 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
3223 not refill.
3224 (tui_source_window_base::update_exec_info): Call
3225 show_line_number.
3226 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
3227 method.
3228 <m_digits>: New member.
3229 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
3230 and m_max_length.
3231 (tui_source_window::show_line_number): New method.
3232 * tui/tui-io.h (tui_puts): Fix comment.
3233 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
3234 m_max_length.
3235
c15c15c8
TT
32362020-09-27 Tom Tromey <tom@tromey.com>
3237
3238 * tui/tui-winsource.c
3239 (tui_source_window_base::set_is_exec_point_at): Don't call
3240 show_source_line.
3241
149830c1
TT
32422020-09-27 Tom Tromey <tom@tromey.com>
3243
3244 * python/py-tui.c (class tui_py_window) <refresh_window>: New
3245 method.
3246 <erase>: Update.
3247 <cursor_x, cursor_y>: Remove.
3248 <m_inner_window>: New member.
3249 (tui_py_window::rerender): Create inner window.
3250 (tui_py_window::output): Write to inner window.
3251
8f9929bb
GR
32522020-09-26 Gareth Rees <grees@undo.io> (tiny change)
3253
3254 PR python/26586
3255 * cli/cli-script.c (execute_control_commands): don't set
3256 instream to nullptr here as this breaks the from_tty argument
3257 to gdb.execute in Python.
3258 (execute_user_command): set instream to nullptr here instead.
3259
956bdb59
SM
32602020-09-25 Simon Marchi <simon.marchi@efficios.com>
3261
3262 * infrun.h (infrun_debug_printf): Fix formatting.
3263 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
3264
3b93626b
SJ
32652020-09-25 Saagar Jha <saagar@saagarjha.com>
3266
3267 * compile/compile-object-load.h (struct munmap_list): Add
3268 explicitly-defined move constructor.
3269
b551a89f
TT
32702020-09-24 Tom Tromey <tromey@adacore.com>
3271
3272 PR tui/26638:
3273 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
3274 method.
3275 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
3276 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
3277 (tui_prev_win): Rewrite.
3278
99bb393f
HD
32792020-09-23 Hannes Domani <ssbssa@yahoo.de>
3280
3281 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
3282 in WOW64 processes as SIGINT.
3283 * nat/windows-nat.h: Make wow64_process a shared variable.
3284 * windows-nat.c: Remove static wow64_process variable.
3285
20a5fcbd
TT
32862020-09-23 Tom Tromey <tom@tromey.com>
3287
3288 PR symtab/25470:
3289 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
3290 offset and bit size.
3291 * printcmd.c (print_scalar_formatted): Handle zero-length
3292 integer.
3293 (print_scalar_formatted): Use bit_size_differs_p.
3294 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
3295 constant.
3296 (union type_specific): <int_stuff>: New member.
3297 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
3298 methods.
3299 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
3300 TYPE_SPECIFIC_FIELD.
3301 (recursive_dump_type, copy_type_recursive): Update.
3302 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
3303 DW_AT_data_bit_offset.
3304
bac51ab7
TT
33052020-09-23 Tom Tromey <tom@tromey.com>
3306
3307 * utils.h (class gdb_argv): Add move operators.
3308 <append>: New methods.
3309 * compile/compile.c (build_argc_argv): Remove.
3310 (compile_args_argc): Remove.
3311 (compile_args_argv): Change type.
3312 (set_compile_args): Simplify.
3313 (append_args): Remove.
3314 (filter_args): Remove argcp parameter.
3315 (get_args): Return gdb_argv. Simplify.
3316 (compile_to_object): Update.
3317
92677124
TT
33182020-09-23 Tom Tromey <tom@tromey.com>
3319
3320 * compile/compile-object-run.c (do_module_cleanup)
3321 <~do_module_cleanup> :Remove.
3322 (do_module_cleanup): Update.
3323 * compile/compile-object-load.h (struct munmap_list): Add move
3324 assignment operator.
3325 <source_file>: Now a std::string.
3326 <munmap_list>: Rename. No longer a pointer.
3327 * compile/compile-object-load.c (struct setup_sections_data): Add
3328 constructor.
3329 <setup_one_section>: Declare.
3330 <munmap_list>: Move earlier.
3331 <m_bfd>: New member.
3332 <m_last_size, m_last_section_first, m_last_prot,
3333 m_last_max_alignment>: Rename, add initializers where needed.
3334 (setup_sections_data::setup_one_section): Rename from
3335 setup_sections. Update.
3336 (compile_object_load): Update. Don't use bfd_map_over_sections.
3337
e616f60a
TT
33382020-09-23 Tom Tromey <tom@tromey.com>
3339
3340 * compile/compile-object-run.c (struct do_module_cleanup): Add
3341 parameters to constructor. Update destructor.
3342 <source_file, scope, scope_data, out_value_type, out_value_addr,
3343 munmap_list_head, objfile_name_string>: Remove.
3344 <module>: New member.
3345 (do_module_cleanup): Update.
3346 (compile_object_run): Update.
3347
e947a848
TT
33482020-09-23 Tom Tromey <tom@tromey.com>
3349
3350 * compile/compile.c (eval_compile_command): Update.
3351 * compile/compile-object-run.h (compile_object_run): Take a
3352 compile_module_up.
3353 * compile/compile-object-run.c (compile_object_run): Take a
3354 compile_module_up.
3355 * compile/compile-object-load.h (struct compile_module): Add
3356 constructor, destructor.
3357 (compile_module_up): New typedef.
3358 (compile_object_load): Return compile_object_up.
3359 * compile/compile-object-load.c (compile_object_load): Return
3360 compile_module_up.
3361
0dbf6ee6
TT
33622020-09-23 Tom Tromey <tom@tromey.com>
3363
3364 * compile/compile-object-run.c (struct do_module_cleanup): Add
3365 constructor, destructor.
3366 <objfile_name_string>: Don't use struct hack.
3367 (do_module_cleanup): Use delete.
3368 (compile_object_run): Use new.
3369
ebe824f5
TT
33702020-09-23 Tom Tromey <tom@tromey.com>
3371
3372 * compile/compile-cplus-types.c
3373 (compile_cplus_convert_struct_or_union): Use std::vector.
3374 (compile_cplus_convert_func): Likewise.
3375 * compile/compile-c-types.c (convert_func): Use std::vector.
3376
5dd918d9
TT
33772020-09-21 Tom Tromey <tromey@adacore.com>
3378
3379 * sparc-tdep.c (sparc32_skip_prologue): Use
3380 skip_prologue_using_sal.
3381
5486c517
TT
33822020-09-19 Tom Tromey <tom@tromey.com>
3383
3384 * symfile.c (add_section_size_callback): Remove.
3385 (load_one_section): Rename from load_section_callback. Change
3386 parameters.
3387 (generic_load): Use foreach.
3388
8a6bb1d1
TT
33892020-09-19 Tom Tromey <tom@tromey.com>
3390
3391 * exec.c (add_to_section_table): Remove.
3392 (build_section_table): Use foreach.
3393
08f93a1a
TT
33942020-09-19 Tom Tromey <tom@tromey.com>
3395
3396 * elfread.c (elf_locate_sections): Change parameters.
3397 (elf_symfile_read): Use foreach.
3398
03cd72b8
TT
33992020-09-19 Tom Tromey <tom@tromey.com>
3400
3401 * cli/cli-dump.c (struct callback_data): Remove.
3402 (restore_one_section): Rename from restore_section_callback.
3403 Change parameters.
3404 (restore_binary_file): Change parameters.
3405 (restore_command): Use foreach.
3406
f4f2b85f
TT
34072020-09-19 Tom Tromey <tom@tromey.com>
3408
3409 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
3410 (gcore_copy_callback): Likewise.
3411 (gcore_memory_sections): Use foreach.
3412
b35c1d1c
TT
34132020-09-19 Tom Tromey <tom@tromey.com>
3414
3415 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
3416 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
3417 parameters.
3418 (generic_elf_osabi_sniffer): Use foreach.
3419 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
3420 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
3421
5bb6e9dd
TT
34222020-09-19 Tom Tromey <tom@tromey.com>
3423
3424 * dwarf2/read.c (locate_dwz_sections): Change parameters.
3425 (dwarf2_get_dwz_file): Use foreach.
3426 (dwarf2_locate_dwo_sections): Change parameters.
3427 (open_and_init_dwo_file): Use foreach.
3428 (dwarf2_locate_common_dwp_sections): Change parameters.
3429 (open_and_init_dwp_file): Use foreach.
3430
ad7277da
TT
34312020-09-19 Tom Tromey <tom@tromey.com>
3432
3433 * symfile.h: (find_lowest_section): Don't declare.
3434 * symfile.c (find_lowest_section): Now static. Change
3435 parameters.
3436 (struct place_section_arg): Remove.
3437 (place_section): Change parameters.
3438 (addr_info_make_relative): Use foreach.
3439 (symfile_dummy_outputs): Remove.
3440 (default_symfile_relocate): Use foreach.
3441
cb814f2e
TT
34422020-09-19 Tom Tromey <tom@tromey.com>
3443
3444 * objfiles.c (add_to_objfile_sections): Rename from
3445 add_to_objfile_sections_full.
3446 (add_to_objfile_sections): Remove.
3447 (build_objfile_section_table): Use foreach.
3448
3cabfd26
TT
34492020-09-19 Tom Tromey <tom@tromey.com>
3450
3451 * stap-probe.c (get_stap_base_address_1): Remove.
3452 (get_stap_base_address): Use foreach.
3453
1ce51eb5
TT
34542020-09-19 Tom Tromey <tom@tromey.com>
3455
3456 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
3457 parameters.
3458 (gdb_bfd_close_or_warn): Use foreach.
3459
a190fabb
TT
34602020-09-19 Tom Tromey <tom@tromey.com>
3461
3462 * corelow.c (add_to_thread_list): Change parameters.
3463 (core_target_open): Use foreach.
3464
cafb0d81
TT
34652020-09-19 Tom Tromey <tom@tromey.com>
3466
3467 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
3468 existing function.
3469
c8d5abea
AB
34702020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3471
3472 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
3473 for arrays.
3474
6d816919
AB
34752020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3476
3477 * eval.c: Remove 'f-lang.h' include.
3478 (value_f90_subarray): Moved to f-lang.c.
3479 (eval_call): Renamed to...
3480 (evaluate_subexp_do_call): ...this, is no longer static, header
3481 comment moved into header file.
3482 (evaluate_funcall): Update call to eval_call.
3483 (skip_undetermined_arglist): Moved to f-lang.c.
3484 (fortran_value_subarray): Likewise.
3485 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3486 moved to evaluate_subexp_f.
3487 (calc_f77_array_dims): Moved to f-lang.c
3488 * expprint.c (print_subexp_funcall): New function.
3489 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3490 moved to print_subexp_f, OP_FUNCALL uses new function.
3491 (dump_subexp_body_funcall): New function.
3492 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
3493 moved to dump_subexp_f, OP_FUNCALL uses new function.
3494 * expression.h (evaluate_subexp_do_call): Declare.
3495 * f-lang.c (value_f90_subarray): Moved from eval.c.
3496 (skip_undetermined_arglist): Likewise.
3497 (calc_f77_array_dims): Likewise.
3498 (fortran_value_subarray): Likewise.
3499 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
3500 (operator_length_f): Likewise.
3501 (print_subexp_f): Likewise.
3502 (dump_subexp_body_f): Likewise.
3503 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
3504 declaration of this operation to here.
3505 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
3506 support moved to operator_length_f.
3507 * parser-defs.h (dump_subexp_body_funcall): Declare.
3508 (print_subexp_funcall): Declare.
3509 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
3510 fortran-operator.def.
3511
8c37706a
AB
35122020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3513
3514 * eval.c (fortran_value_subarray): New function, content is taken
3515 from...
3516 (evaluate_subexp_standard): ...here, in two places. Now arrays
3517 and strings both call the new function.
3518 (calc_f77_array_dims): Add header comment, handle strings.
3519
14f9473c
VC
35202020-09-18 Victor Collod <vcollod@nvidia.com>
3521
3522 PR gdb/26635
3523 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
3524 (i386_analyze_prologue): Call i386_skip_endbr.
3525
b60cea74
TT
35262020-09-18 Tom Tromey <tromey@adacore.com>
3527
3528 * windows-nat.c (struct windows_nat_target) <wait>: Update.
3529 (windows_nat_target::wait): Update.
3530 * target/wait.h (enum target_wait_flag): New. Use
3531 DEF_ENUM_FLAGS_TYPE.
3532 * target/target.h (target_wait): Change type of options.
3533 * target.h (target_options_to_string, default_target_wait):
3534 Update.
3535 (struct target_ops) <wait>: Change type of options.
3536 * target.c (target_wait, default_target_wait, do_option): Change
3537 type of "options".
3538 (target_options_to_string): Likewise.
3539 * target-delegates.c: Rebuild.
3540 * target-debug.h (target_debug_print_target_wait_flags): Rename
3541 from target_debug_print_options.
3542 * sol-thread.c (class sol_thread_target) <wait>: Update.
3543 (sol_thread_target::wait): Update.
3544 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
3545 (rs6000_nat_target::wait): Update.
3546 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
3547 Update.
3548 (remote_target::wait_ns, remote_target::wait_as): Change type of
3549 "options".
3550 (remote_target::wait): Update.
3551 * remote-sim.c (struct gdbsim_target) <wait>: Update.
3552 (gdbsim_target::wait): Update.
3553 * record-full.c (class record_full_base_target) <wait>: Update.
3554 (record_full_wait_1): Change type of "options".
3555 (record_full_base_target::wait): Update.
3556 * record-btrace.c (class record_btrace_target) <wait>: Update.
3557 (record_btrace_target::wait): Update.
3558 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
3559 Update.
3560 (ravenscar_thread_target::wait): Update.
3561 * procfs.c (class procfs_target) <wait>: Update.
3562 (procfs_target::wait): Update.
3563 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
3564 * obsd-nat.c (obsd_nat_target::wait): Update.
3565 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
3566 (nto_procfs_target::wait): Update.
3567 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
3568 * nbsd-nat.c (nbsd_wait): Change type of "options".
3569 (nbsd_nat_target::wait): Update.
3570 * linux-thread-db.c (class thread_db_target) <wait>: Update.
3571 (thread_db_target::wait): Update.
3572 * linux-nat.h (class linux_nat_target) <wait>: Update.
3573 * linux-nat.c (linux_nat_target::wait): Update.
3574 (linux_nat_wait_1): Update.
3575 * infrun.c (do_target_wait_1, do_target_wait): Change type of
3576 "options".
3577 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
3578 * inf-ptrace.c (inf_ptrace_target::wait): Update.
3579 * go32-nat.c (struct go32_nat_target) <wait>: Update.
3580 (go32_nat_target::wait): Update.
3581 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
3582 * gnu-nat.c (gnu_nat_target::wait): Update.
3583 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
3584 * fbsd-nat.c (fbsd_nat_target::wait): Update.
3585 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
3586 * darwin-nat.c (darwin_nat_target::wait): Update.
3587 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
3588 (bsd_uthread_target::wait): Update.
3589 * aix-thread.c (class aix_thread_target) <wait>: Update.
3590 (aix_thread_target::wait): Update.
3591
0295dde6
AB
35922020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
3593
3594 * compile/compile-object-run.c (create_copied_type_recursive): New
3595 function.
3596 (compile_object_run): Use new function.
3597
d3483b43
JT
35982020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
3599
3600 * NEWS: Mention x86_64 Cygwin core file support.
3601
e7d612ad
JT
36022020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3603
3604 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
3605 (core_process_module_section): Handle NOTE_INFO_MODULE64.
3606
aff9d387
JT
36072020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3608
62a5151b
JT
3609 * windows-tdep.h: Add prototypes.
3610 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
3611 (i386_windows_core_pid_to_str): Move and rename ...
3612 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
3613 (windows_core_pid_to_str): ... and here.
3614 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
3615
36162020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
3617 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
3618 (amd64_windows_init_abi_common): ... and register.
3619
7d155da3
JT
36202020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3621
3622 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
3623 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
3624
e8ef12b9
PA
36252020-09-18 Pedro Alves <pedro@palves.net>
3626
3627 PR gdb/26631
3628 * thread.c (thread_find_command): Switch inferior before calling
3629 target methods.
3630
c1e1314d
TT
36312020-09-17 Tom Tromey <tromey@adacore.com>
3632
3633 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
3634 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
3635 (tdesc_arch_data_up): New typedef.
3636 (tdesc_use_registers, tdesc_data_alloc): Update.
3637 (tdesc_data_cleanup): Don't declare.
3638 * target-descriptions.c (tdesc_data_alloc): Return a
3639 tdesc_arch_data_up.
3640 (tdesc_arch_data_deleter::operator()): Rename from
3641 tdesc_data_cleanup. Change argument type.
3642 (tdesc_use_registers): Change early_data to an rvalue reference.
3643 (tdesc_use_registers): Don't use delete.
3644 * sparc-tdep.c (sparc32_gdbarch_init): Update.
3645 * s390-tdep.c (s390_gdbarch_init): Update.
3646 * rx-tdep.c (rx_gdbarch_init): Update.
3647 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3648 * riscv-tdep.c (riscv_gdbarch_init): Update.
3649 * or1k-tdep.c (or1k_gdbarch_init): Update.
3650 * nios2-tdep.c (nios2_gdbarch_init): Update.
3651 * nds32-tdep.c (nds32_gdbarch_init): Update.
3652 * mips-tdep.c (mips_gdbarch_init): Update.
3653 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
3654 * m68k-tdep.c (m68k_gdbarch_init): Update.
3655 * i386-tdep.c (i386_gdbarch_init): Update.
3656 * arm-tdep.c (arm_gdbarch_init): Update.
3657 * arc-tdep.c (arc_tdesc_init): Update.
3658 (arc_gdbarch_init): Update.
3659 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
3660
0363df3d
HD
36612020-09-17 Hannes Domani <ssbssa@yahoo.de>
3662
3663 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
3664 for WOW64 processes.
3665
280a9412
TT
36662020-09-17 Tom Tromey <tom@tromey.com>
3667
3668 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
3669
6108fd18
TT
36702020-09-17 Tom Tromey <tom@tromey.com>
3671
3672 * value.c (preserve_values): Update.
3673 * python/py-type.c (save_objfile_types): Update.
3674 * guile/scm-type.c (save_objfile_types): Update.
3675 * gdbtypes.h (create_copied_types_hash): Return htab_up.
3676 * gdbtypes.c (create_copied_types_hash): Return htab_up.
3677 * compile/compile-object-run.c (compile_object_run): Update.
3678
fa9b1164
TT
36792020-09-17 Tom Tromey <tom@tromey.com>
3680
3681 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
3682 Remove.
3683 <m_table>: Now htab_up.
3684 * typeprint.c (typedef_hash_table::recursively_update)
3685 (typedef_hash_table::add_template_parameters)
3686 (typedef_hash_table::typedef_hash_table): Update.
3687 (typedef_hash_table::~typedef_hash_table): Remove.
3688 (typedef_hash_table::typedef_hash_table)
3689 (typedef_hash_table::find_global_typedef)
3690 (typedef_hash_table::find_typedef): Update.
3691
eb53f105
TT
36922020-09-17 Tom Tromey <tom@tromey.com>
3693
3694 * target-descriptions.c (tdesc_use_registers): Use htab_up.
3695
7a8a5d47
TT
36962020-09-17 Tom Tromey <tom@tromey.com>
3697
3698 * linespec.c (class decode_compound_collector)
3699 <~decode_compound_collector>: Remove.
3700 <m_unique_syms>: Now htab_up.
3701 (decode_compound_collector::operator ()): Update.
3702 (class symtab_collector) <~symtab_collector>: Remove.
3703 <m_symtab_table>: Now htab_up.
3704 (symtab_collector::operator ()): Update.
3705
99032cfc
TT
37062020-09-17 Tom Tromey <tom@tromey.com>
3707
3708 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
3709 (filename_seen_cache::clear): Update.
3710 (~filename_seen_cache): Remove.
3711 (filename_seen_cache::seen): Update.
3712 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
3713 htab_up.
3714 <~filename_seen_cache>: Remove.
3715 <traverse>: Update.
3716
32580f6d
TT
37172020-09-17 Tom Tromey <tom@tromey.com>
3718
3719 * completer.c (completion_tracker::discard_completions)
3720 (completion_tracker::~completion_tracker)
3721 (completion_tracker::maybe_add_completion)
3722 (completion_tracker::remove_completion)
3723 (completion_tracker::recompute_lowest_common_denominator)
3724 (completion_tracker::build_completion_result): Update.
3725 * completer.h (class completion_tracker) <have_completions>:
3726 Update.
3727 <m_entries_hash>: Now htab_up.
3728
c1fb9836
TT
37292020-09-17 Tom Tromey <tom@tromey.com>
3730
3731 * breakpoint.c (ambiguous_names_p): Use htab_up.
3732
88f07206
TT
37332020-09-17 Tom Tromey <tom@tromey.com>
3734
3735 * auto-load.c (struct auto_load_pspace_info)
3736 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
3737 <loaded_script_files, loaded_script_texts>: Change type to
3738 htab_up.
3739 (~auto_load_pspace_info) Remove.
3740 (init_loaded_scripts_info, maybe_add_script_file)
3741 (maybe_add_script_text, auto_load_info_scripts): Update.
3742
9519b2ee
TT
37432020-09-17 Tom Tromey <tromey@adacore.com>
3744
3745 * c-exp.y (name_obstack): Now static.
3746
d2cd4113
CC
37472020-09-17 Chungyi Chi <demonic@csie.io>
3748
3749 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
3750
b650a282
SM
37512020-09-16 Simon Marchi <simon.marchi@efficios.com>
3752
3753 * breakpoint.h (init_catchpoint): Change int parameter to bool.
3754 (add_solib_catchpoint): Likewise.
3755 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
3756 to bool.
3757 (add_solib_catchpoint): Change int parameter/variable to bool.
3758 (catch_load_or_unload): Likewise.
3759 (init_catchpoint): Likewise.
3760 (create_fork_vfork_event_catchpoint): Likewise.
3761 (catch_fork_command_1): Likewise.
3762 (catch_exec_command_1): Likewise.
3763
4d0bcfcf
SM
37642020-09-16 Simon Marchi <simon.marchi@efficios.com>
3765
3766 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
3767 Change instance_flags to m_instance_flags.
3768
fe830662
TT
37692020-09-16 Tom Tromey <tromey@adacore.com>
3770
3771 PR gdb/26598:
3772 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
3773
fe5ddfc3
JB
37742020-09-16 John Baldwin <jhb@FreeBSD.org>
3775
3776 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
3777 PL_FLAG_EXEC.
3778 (fbsd_nat_target::insert_exec_catchpoint)
3779 (fbsd_nat_target::remove_exec_catchpoint): Always define.
3780 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
3781 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
3782
e911c666
JB
37832020-09-16 John Baldwin <jhb@FreeBSD.org>
3784
3785 * configure.ac: Remove check for kinfo_getvmmap().
3786 * configure, config.in: Regenerate.
3787 * fbsd-nat.c (fbsd_read_mapping): Remove
3788 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
3789 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
3790 kinfo_get_vmmap() are always present.
3791
1f17d372
JB
37922020-09-16 John Baldwin <jhb@FreeBSD.org>
3793
3794 * fbsd-nat.c: Always include support for
3795 TARGET_OBJECT_SIGNAL_INFO.
3796
bcb1da7f
JB
37972020-09-16 John Baldwin <jhb@FreeBSD.org>
3798
3799 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
3800 sysctl and remove procfs fallback.
3801
5515f729
JB
38022020-09-16 John Baldwin <jhb@FreeBSD.org>
3803
3804 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
3805 * fbsd-nat.h: Likewise.
3806
da1df1db
TBA
38072020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3808
3809 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
3810 argument.
3811
0e25e767
AB
38122020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3813
3814 * ada-lang.c (ada_language_data): Delete.
3815 (ada_language): Remove references to ada_language_data.
3816 * c-lang.c (c_language_data): Delete.
3817 (c_language): Remove references to c_language_data.
3818 (cplus_language_data): Delete.
3819 (cplus_language): Remove references to cplus_language_data.
3820 (asm_language_data): Delete.
3821 (asm_language): Remove references to asm_language_data.
3822 (minimal_language_data): Delete.
3823 (minimal_language): Remove references to minimal_language_data.
3824 * d-lang.c (d_language_data): Delete.
3825 (d_language): Remove references to d_language_data.
3826 * f-lang.c (f_language_data): Delete.
3827 (f_language): Remove references to f_language_data.
3828 * go-lang.c (go_language_data): Delete.
3829 (go_language): Remove references to go_language_data.
3830 * language.c (unknown_language_data): Delete.
3831 (unknown_language): Remove references to unknown_language_data.
3832 (auto_language_data): Delete.
3833 (auto_language): Remove references to auto_language_data.
3834 * language.h (language_data): Delete struct.
3835 (language_defn): No longer inherit from language_data.
3836 * m2-lang.c (m2_language_data): Delete.
3837 (m2_language): Remove references to m2_language_data.
3838 * objc-lang.c (objc_language_data): Delete.
3839 (objc_language): Remove references to objc_language_data.
3840 * opencl-lang.c (opencl_language_data): Delete.
3841 (opencl_language): Remove references to opencl_language_data.
3842 * p-lang.c (pascal_language_data): Delete.
3843 (pascal_language): Remove references to pascal_language_data.
3844 * rust-lang.c (rust_language_data): Delete.
3845 (rust_language): Remove references to rust_language_data.
3846
b7c6e27d
AB
38472020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3848
3849 * ada-lang.c (ada_language_data): Remove la_op_print_tab
3850 initializer.
3851 (ada_language::opcode_print_table): New member function.
3852 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
3853 (c_language::opcode_print_table): New member function.
3854 (cplus_language_data): Remove la_op_print_tab initializer.
3855 (cplus_language::opcode_print_table): New member function.
3856 (asm_language_data): Remove la_op_print_tab initializer.
3857 (asm_language::opcode_print_table): New member function.
3858 (minimal_language_data): Remove la_op_print_tab initializer.
3859 (minimal_language::opcode_print_table): New member function.
3860 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
3861 (d_language::opcode_print_table): New member function.
3862 * expprint.c (print_subexp_standard): Update call to
3863 opcode_print_table.
3864 (op_string): Likewise.
3865 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
3866 (f_language::opcode_print_table): New member function.
3867 * go-lang.c (go_language_data): Remove la_op_print_tab
3868 initializer.
3869 (go_language::opcode_print_table): New member function.
3870 * language.c (unknown_language_data): Remove la_op_print_tab
3871 initializer.
3872 (unknown_language::opcode_print_table): New member function.
3873 (auto_language_data): Remove la_op_print_tab initializer.
3874 (auto_language::opcode_print_table): New member function.
3875 * language.h (language_data): Remove la_op_print_tab field.
3876 (language_defn::opcode_print_table): Declare new member function.
3877 * m2-lang.c (m2_language_data): Remove la_op_print_tab
3878 initializer.
3879 (m2_language::opcode_print_table): New member function.
3880 * objc-lang.c (objc_language_data): Remove la_op_print_tab
3881 initializer.
3882 (objc_language::opcode_print_table): New member function.
3883 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
3884 initializer.
3885 (opencl_language::opcode_print_table): New member function.
3886 * p-lang.c (pascal_language_data): Remove la_op_print_tab
3887 initializer.
3888 (pascal_language::opcode_print_table): New member function.
3889 * rust-lang.c (rust_language_data): Remove la_op_print_tab
3890 initializer.
3891 (rust_language::opcode_print_table): New member function.
3892
5aba6ebe
AB
38932020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3894
3895 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
3896 (ada_language::expression_ops): New member function.
3897 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
3898 (c_language::expression_ops): New member function.
3899 (cplus_language_data): Remove la_exp_desc initializer.
3900 (cplus_language::expression_ops): New member function.
3901 (asm_language_data): Remove la_exp_desc initializer.
3902 (asm_language::expression_ops): New member function.
3903 (minimal_language_data): Remove la_exp_desc initializer.
3904 (minimal_language::expression_ops): New member function.
3905 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
3906 (d_language::expression_ops): New member function.
3907 * eval.c (evaluate_subexp): Update call to expression_ops.
3908 * expprint.c (print_subexp): Likewise.
3909 (op_name): Likewise.
3910 (dump_subexp_body): Likewise.
3911 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
3912 (f_language::expression_ops): New member function.
3913 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
3914 (go_language::expression_ops): New member function.
3915 * language.c (language_defn::expression_ops): New function.
3916 (unknown_language_data): Remove la_exp_desc initializer.
3917 (auto_language_data): Likewise.
3918 * language.h (language_data): Remove la_exp_desc field.
3919 (language_defn::expression_ops): Declare new member function.
3920 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
3921 (m2_language::expression_ops): New member function.
3922 * objc-lang.c (objc_language_data): Remove la_exp_desc
3923 initializer.
3924 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
3925 initializer.
3926 (opencl_language::expression_ops): New member function.
3927 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
3928 * parse.c (operator_length): Update call to expression_ops.
3929 (exp_iterate): Likewise.
3930 * rust-lang.c (rust_language_data): Remove la_exp_desc
3931 initializer.
3932 (ruse_language::expression_ops): New member function.
3933
b63a3f3f
AB
39342020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3935
3936 * ada-lang.c (ada_language_data): Remove la_varobj_ops
3937 initializer.
3938 (ada_language::varobj_ops): New member function.
3939 * c-lang.c (c_language_data): Remove la_varobj_ops
3940 initializer.
3941 (cplus_language_data): Likewise.
3942 (cplus_language::varobj_ops): New member function.
3943 (asm_language_data): Remove la_varobj_ops initializer.
3944 (minimal_language_data): Likewise.
3945 * d-lang.c (d_language_data): Likewise.
3946 * f-lang.c (f_language_data): Likewise.
3947 * go-lang.c (go_language_data): Likewise.
3948 * language.c (language_defn::varobj_ops): New function.
3949 (unknown_language_data): Remove la_varobj_ops
3950 initializer.
3951 (auto_language_data): Likewise.
3952 * language.h (language_data): Remove la_varobj_ops field.
3953 (language_defn::varobj_ops): Declare new member function.
3954 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
3955 * objc-lang.c (objc_language_data): Likewise.
3956 * opencl-lang.c (opencl_language_data): Likewise.
3957 * p-lang.c (pascal_language_data): Likewise.
3958 * rust-lang.c (rust_language_data): Likewise.
3959 * varobj.c (varobj_create): Update call to varobj_ops.
3960 * varobj.h (default_varobj_ops): Delete define.
3961
1ac14a04
AB
39622020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3963
3964 * ada-lang.c (ada_language_data): Remove la_macro_expansion
3965 initializer.
3966 * c-lang.c (c_language_data): Likewise.
3967 (c_language::macro_expansion): New member function.
3968 (cplus_language_data): Likewise.
3969 (cplus_language::macro_expansion): New member function.
3970 (asm_language_data): Likewise.
3971 (asm_language::macro_expansion): New member function.
3972 (minimal_language_data): Likewise.
3973 (minimal_language::macro_expansion): New member function.
3974 * d-lang.c (d_language_data): Remove la_macro_expansion
3975 initializer.
3976 * f-lang.c (f_language_data): Likewise.
3977 * go-lang.c (go_language_data): Likewise.
3978 * language.c (unknown_language_data): Likewise.
3979 (auto_language_data): Likewise.
3980 * language.h (language_data): Remove la_macro_expansion field.
3981 (language_defn::macro_expansion): New member function.
3982 * m2-lang.c (m2_language_data): Remove la_macro_expansion
3983 initializer.
3984 * objc-lang.c (objc_language_data): Likewise.
3985 (objc_language::macro_expansion): New member function.
3986 * opencl-lang.c (opencl_language_data): Likewise.
3987 (opencl_language::macro_expansion): New member function.
3988 * p-lang.c (pascal_language_data): Remove la_macro_expansion
3989 initializer.
3990 * rust-lang.c (rust_language_data): Likewise.
3991 * symtab.c (default_collect_symbol_completion_matches_break_on):
3992 Update call to macro_expansion.
3993
3a3440fb
AB
39942020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3995
3996 * ada-lang.c (ada_language_data): Remove la_array_ordering
3997 initializer.
3998 * c-lang.c (c_language_data): Likewise.
3999 (cplus_language_data): Likewise.
4000 (asm_language_data): Likewise.
4001 (minimal_language_data): Likewise.
4002 * d-lang.c (d_language_data): Likewise.
4003 * dwarf2/read.c (read_array_order): Update for call to
4004 array_ordering.
4005 * f-lang.c (f_language_data): Remove la_array_ordering
4006 initializer.
4007 (f_language::array_ordering): New member function.
4008 * go-lang.c (go_language_data): Remove la_array_ordering
4009 initializer.
4010 * language.c (unknown_language_data): Likewise.
4011 (auto_language_data): Likewise.
4012 * language.h (language_data): Delete la_array_ordering field.
4013 (language_defn::array_ordering): New member function.
4014 * m2-lang.c (m2_language_data): Remove la_array_ordering
4015 initializer.
4016 * objc-lang.c (objc_language_data): Likewise.
4017 * opencl-lang.c (opencl_language_data): Likewise.
4018 * p-lang.c (pascal_language_data): Likewise.
4019 * rust-lang.c (rust_language_data): Likewise.
4020
0d201fa4
AB
40212020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4022
4023 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
4024 initializer.
4025 * c-lang.c (c_language_data): Likewise.
4026 (cplus_language_data): Likewise.
4027 (asm_language_data): Likewise.
4028 (minimal_language_data): Likewise.
4029 * d-lang.c (d_language_data): Likewise.
4030 * f-lang.c (f_language_data): Likewise.
4031 (f_language::case_sensitivity): New member function.
4032 * go-lang.c (go_language_data): Remove la_case_sensitivity
4033 initializer.
4034 * language.c (enum case_mode): Moved here from language.h.
4035 (case_mode): Make static.
4036 (show_case_command): Update for case_sensitivity being a method.
4037 (set_case_command): Likewise.
4038 (set_range_case): Likewise.
4039 (unknown_language_data): Remove la_case_sensitivity initializer.
4040 (auto_language_data): Likewise.
4041 * language.h (case_mode): Delete, move enum declaration to
4042 language.c.
4043 (language_data): Delete la_case_sensitivity field.
4044 (language_defn::case_sensitivity): New member function.
4045 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
4046 initializer.
4047 * objc-lang.c (objc_language_data): Likewise.
4048 * opencl-lang.c (opencl_language_data): Likewise.
4049 * p-lang.c (pascal_language_data): Likewise.
4050 * rust-lang.c (rust_language_data): Likewise.
4051
efdf6a73
AB
40522020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4053
4054 * ada-lang.c (ada_language_data): Remove la_range_check
4055 initializer.
4056 * c-lang.c (c_language_data): Likewise.
4057 (cplus_language_data): Likewise.
4058 (asm_language_data): Likewise.
4059 (minimal_language_data): Likewise.
4060 * d-lang.c (d_language_data): Likewise.
4061 * f-lang.c (f_language_data): Likewise.
4062 (f_language::range_checking_on_by_default): New member function.
4063 * go-lang.c (go_language_data): Remove la_range_check initializer.
4064 * language.c (enum range_mode): Moved here from language.h.
4065 (range_mode): Made static.
4066 (show_range_command): Update to use
4067 range_checking_on_by_default.
4068 (set_range_command): Likewise.
4069 (set_range_case): Likewise.
4070 (unknown_language_data): Remove la_range_check initializer.
4071 (auto_language_data): Likewise.
4072 * language.h (range_mode): Delete. Enum definition moved to
4073 language.c.
4074 (language_data): Remove la_range_check field.
4075 (language_defn::range_checking_on_by_default): New member
4076 function.
4077 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
4078 (m2_language::range_checking_on_by_default): New member function.
4079 * objc-lang.c (objc_language_data): Remove la_range_check
4080 initializer.
4081 * opencl-lang.c (opencl_language_data): Likewise.
4082 * p-lang.c (pascal_language_data): Likewise.
4083 (pascal_language::range_checking_on_by_default): New member
4084 function.
4085 * rust-lang.c (rust_language_data): Remove la_range_check
4086 initializer.
4087 (rust_language::range_checking_on_by_default): New member
4088 function.
4089
bf92aec5
AB
40902020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4091
4092 * dwarf2/read.c (dwarf2_physname): Remove special case for
4093 language_go.
4094 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
4095 member function.
4096
d3355e4d
AB
40972020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4098
4099 * ada-lang.c (ada_language_data): Remove
4100 la_store_sym_names_in_linkage_form_p initializer.
4101 (ada_language::store_sym_names_in_linkage_form_p): New member
4102 function.
4103 * c-lang.c (c_language_data): Remove
4104 la_store_sym_names_in_linkage_form_p initializer.
4105 (c_language::store_sym_names_in_linkage_form_p): New member
4106 function.
4107 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
4108 initializer.
4109 (asm_language_data): Likewise.
4110 (asm_language::store_sym_names_in_linkage_form_p): New member
4111 function.
4112 (minimal_language_data): Remove
4113 la_store_sym_names_in_linkage_form_p initializer.
4114 (minimal_language::store_sym_names_in_linkage_form_p): New member
4115 function.
4116 * d-lang.c (d_language_data): Remove
4117 la_store_sym_names_in_linkage_form_p initializer.
4118 * dwarf2/read.c (dwarf2_physname): Update call to
4119 store_sym_names_in_linkage_form_p.
4120 * f-lang.c (f_language_data): Remove
4121 la_store_sym_names_in_linkage_form_p initializer.
4122 * go-lang.c (go_language_data): Remove
4123 la_store_sym_names_in_linkage_form_p initializer.
4124 * language.c (unknown_language_data): Remove
4125 la_store_sym_names_in_linkage_form_p initializer.
4126 (unknown_language::store_sym_names_in_linkage_form_p): New member
4127 function.
4128 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
4129 initializer.
4130 (auto_language::store_sym_names_in_linkage_form_p): New member
4131 function.
4132 * language.h (language_data): Remove
4133 la_store_sym_names_in_linkage_form_p member variable.
4134 (language_defn::store_sym_names_in_linkage_form_p): New member
4135 function.
4136 * m2-lang.c (m2_language_data): Remove
4137 la_store_sym_names_in_linkage_form_p initializer.
4138 * objc-lang.c (objc_language_data): Likewise.
4139 * opencl-lang.c (opencl_language_data): Likewise.
4140 * p-lang.c (pascal_language_data): Likewise.
4141 * rust-lang.c (rust_language_data): Likewise.
4142
22c12a6c
AB
41432020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4144
4145 * ada-lang.c (ada_language_data): Remove string_lower_bound
4146 initializer.
4147 * c-lang.c (c_language_data): Likewise.
4148 (cplus_language_data): Likewise.
4149 (asm_language_data): Likewise.
4150 (minimal_language_data): Likewise.
4151 * d-lang.c (d_language_data): Likewise.
4152 * f-lang.c (f_language_data): Likewise.
4153 * go-lang.c (go_language_data): Likewise.
4154 * language.c (unknown_language_data): Likewise.
4155 (auto_language_data): Likewise.
4156 * language.h (language_data): Remove string_lower_bound field.
4157 (language_defn::string_lower_bound): New member function.
4158 * m2-lang.c (m2_language_data): Remove string_lower_bound
4159 initializer.
4160 (m2_language::string_lower_bound): New member function.
4161 * objc-lang.c (objc_language_data): Remove string_lower_bound
4162 initializer.
4163 * opencl-lang.c (opencl_language_data): Likewise.
4164 * p-lang.c (pascal_language_data): Likewise.
4165 * rust-lang.c (rust_language_data): Likewise.
4166 * valops.c (value_cstring): Update call to string_lower_bound.
4167 (value_string): Likewise.
4168 * value.c (allocate_repeated_value): Likewise.
4169
1c236ddd
AB
41702020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4171
4172 * valops.c (value_repeat): Fix incorrect argument name in comment.
4173
67bd3fd5
AB
41742020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4175
4176 * ada-lang.c (ada_language_data): Remove c_style_arrays
4177 initializer.
4178 (ada_language::c_style_arrays_p): New member fuction.
4179 * c-lang.c (c_language_data): Remove c_style_arrays
4180 initializer.
4181 (cplus_language_data): Likewise.
4182 (asm_language_data): Likewise.
4183 (minimal_language_data): Likewise.
4184 * d-lang.c (d_language_data): Likewise.
4185 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
4186 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
4187 (f_language::c_style_arrays_p): New member function.
4188 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
4189 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
4190 * language.c (unknown_language_data): Remove c_style_arrays
4191 initializer.
4192 (auto_language_data): Likewise.
4193 * language.h (language_data): Remove c_style_arrays field.
4194 (language_defn::c_style_arrays_p): New member function.
4195 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
4196 (m2_language::c_style_arrays_p): New member function.
4197 * objc-lang.c (objc_language_data): Remove c_style_arrays
4198 initializer.
4199 * opencl-lang.c (opencl_language_data): Likewise.
4200 * p-lang.c (pascal_language_data): Likewise.
4201 * rust-lang.c (rust_language_data): Likewise.
4202 * valarith.c (value_subscript): Update call to c_style_arrays_p,
4203 and update local variable to a bool.
4204 * valops.c (value_cast): Update call to c_style_arrays_p.
4205 (value_array): Likewise.
4206 * value.c (coerce_array): Likewise.
4207
85967615
AB
42082020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4209
4210 * ada-lang.c (ada_language_data): Remove la_language initializer.
4211 * c-lang.c (c_language_data): Likewise.
4212 (cplus_language_data): Likewise.
4213 (asm_language_data): Likewise.
4214 (minimal_language_data): Likewise.
4215 * d-lang.c (d_language_data): Likewise.
4216 * f-lang.c (f_language_data): Likewise.
4217 * go-lang.c (go_language_data): Likewise.
4218 * language.c (unknown_language_data): Likewise.
4219 (auto_language_data): Likewise.
4220 * language.h (language_data): Remove la_language field.
4221 (language_defn::language_defn): Initialise la_language field.
4222 (language_defn::la_language): New member variable.
4223 * m2-lang.c (m2_language_data): Remove la_language field.
4224 * objc-lang.c (objc_language_data): Likewise.
4225 * opencl-lang.c (opencl_language_data): Likewise.
4226 * p-lang.c (pascal_language_data): Likewise.
4227 * rust-lang.c (rust_language_data): Likewise.
4228
e171d6f1
AB
42292020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4230
4231 * ada-lang.c (ada_extensions): Delete, moved into
4232 ada_language::filename_extensions.
4233 (ada_language_data): Remove la_filename_extensions initializer.
4234 (ada_language::filename_extensions): New member function.
4235 * c-lang.c (c_extensions): Delete, moved into
4236 c_language::filename_extensions.
4237 (c_language_data): Remove la_filename_extensions initializer.
4238 (c_language::filename_extensions): New member function.
4239 (cplus_extensions): Delete, moved into
4240 cplus_language::filename_extensions.
4241 (cplus_language_data): Remove la_filename_extensions initializer.
4242 (cplus_language::filename_extensions): New member function.
4243 (asm_extensions): Delete, moved into
4244 asm_language::filename_extensions.
4245 (asm_language_data): Remove la_filename_extensions initializer.
4246 (asm_language::filename_extensions): New member function.
4247 (minimal_language_data): Remove la_filename_extensions
4248 initializer.
4249 * d-lang.c (d_extensions): Delete, moved into
4250 d_language::filename_extensions.
4251 (d_language_data): Remove la_filename_extensions initializer.
4252 (d_language::filename_extensions): New member function.
4253 * f-lang.c (f_extensions): Delete, moved into
4254 f_language::filename_extensions.
4255 (f_language_data): Remove la_filename_extensions initializer.
4256 (f_language::filename_extensions): New member function.
4257 * go-lang.c (go_language_data): Remove la_filename_extensions
4258 initializer.
4259 * language.c (add_set_language_command): Update now that
4260 filename_extensions returns a vector.
4261 (unknown_language_data): Remove la_filename_extensions
4262 initializer.
4263 (auto_language_data): Likewise.
4264 * language.h (language_data): Remove la_filename_extensions field.
4265 (language_defn::filename_extensions): New member function.
4266 * m2-lang.c (m2_language_data): Remove la_filename_extensions
4267 initializer.
4268 * objc-lang.c (objc_extensions): Delete, moved into
4269 objc_language::filename_extensions.
4270 (objc_language_data): Remove la_filename_extensions initializer.
4271 (objc_language::filename_extensions): New member function.
4272 * opencl-lang.c (opencl_language_data): Remove
4273 la_filename_extensions initializer.
4274 * p-lang.c (pascal_extensions): Delete, moved into
4275 pascal_language::filename_extensions.
4276 (pascal_language_data): Remove la_filename_extensions initializer.
4277 (pascal_language::filename_extensions): New member function.
4278 * rust-lang.c (rust_extensions): Delete, moved into
4279 rust_language::filename_extensions.
4280 (rust_language_data): Remove la_filename_extensions initializer.
4281 (rust_language::filename_extensions): New member function.
4282 * symfile.c (add_filename_language): Add new assert.
4283
6f7664a9
AB
42842020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4285
4286 * ada-lang.c (ada_language_data): Remove la_name and
4287 la_natural_name initializers.
4288 (ada_language::name): New member function.
4289 (ada_language::natural_name): New member function.
4290 * c-lang.c (c_language_data): Remove la_name and
4291 la_natural_name initializers.
4292 (c_language::name): New member function.
4293 (c_language::natural_name): New member function.
4294 (cplus_language_data): Remove la_name and
4295 la_natural_name initializers.
4296 (cplus_language::name): New member function.
4297 (cplus_language::natural_name): New member function.
4298 (asm_language_data): Remove la_name and
4299 la_natural_name initializers.
4300 (asm_language::name): New member function.
4301 (asm_language::natural_name): New member function.
4302 (minimal_language_data): Remove la_name and
4303 la_natural_name initializers.
4304 (minimal_language::name): New member function.
4305 (minimal_language::natural_name): New member function.
4306 * compile/compile.c (compile_to_object): Update call to
4307 lanugage_defn::name.
4308 * d-lang.c (d_language_data): Remove la_name and
4309 la_natural_name initializers.
4310 (d_language::name): New member function.
4311 (d_language::natural_name): New member function.
4312 * expprint.c (print_subexp_standard): Update call to
4313 language_defn::name.
4314 (dump_raw_expression): Likewise
4315 (dump_prefix_expression): Likewise.
4316 * f-lang.c (f_language_data): Remove la_name and
4317 la_natural_name initializers.
4318 (f_language::name): New member function.
4319 (f_language::natural_name): New member function.
4320 * go-lang.c (go_language_data): Remove la_name and
4321 la_natural_name initializers.
4322 (go_language::name): New member function.
4323 (go_language::natural_name): New member function.
4324 * language.c (show_language_command): Update call to
4325 language_defn::name.
4326 (set_language_command): Likewise.
4327 (language_enum): Likewise.
4328 (language_str): Likewise.
4329 (add_set_language_command): Likewise, use
4330 language_defn::natural_name in the doc string.
4331 (unknown_language_data): Remove la_name and
4332 la_natural_name initializers.
4333 (unknown_language::name): New member function.
4334 (unknown_language::natural_name): New member function.
4335 (auto_language_data): Remove la_name and
4336 la_natural_name initializers.
4337 (auto_language::name): New member function.
4338 (auto_language::natural_name): New member function.
4339 (language_lookup_primitive_type_as_symbol): Update call to
4340 language_defn::name.
4341 * language.h (language_data): Remove la_name and la_natural_name
4342 member variables.
4343 (language_defn::name): New member function.
4344 (language_defn::natural_name): New member function.
4345 * m2-lang.c (m2_language_data): Remove la_name and
4346 la_natural_name initializers.
4347 (m2_language::name): New member function.
4348 (m2_language::natural_name): New member function.
4349 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
4350 language_defn::natural_name.
4351 * objc-lang.c (objc_language_data): Remove la_name and
4352 la_natural_name initializers.
4353 (objc_language::name): New member function.
4354 (objc_language::natural_name): New member function.
4355 * opencl-lang.c (opencl_language_data): Remove la_name and
4356 la_natural_name initializers.
4357 (opencl_language::name): New member function.
4358 (opencl_language::natural_name): New member function.
4359 * p-lang.c (pascal_language_data): Remove la_name and
4360 la_natural_name initializers.
4361 (pascal_language::name): New member function.
4362 (pascal_language::natural_name): New member function.
4363 * rust-lang.c (rust_language_data): Remove la_name and
4364 la_natural_name initializers.
4365 (rust_language::name): New member function.
4366 (rust_language::natural_name): New member function.
4367 * symtab.c (lookup_language_this): Update call to
4368 language_defn::name.
4369
5bae7c4e
AB
43702020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4371
4372 * ada-lang.c (ada_language_data): Remove la_name_of_this
4373 initializer.
4374 * ax-gdb.c (gen_expr): Update call to name_of_this.
4375 * c-exp.y (classify_name): Likewise.
4376 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
4377 (cplus_language_data): Likewise.
4378 (cplus_language::name_of_this): New member function.
4379 (asm_language_data): Remove la_name_of_this initializer.
4380 (minimal_language_data): Likewise.
4381 * d-lang.c (d_language_data): Likewise.
4382 (d_language::name_of_this): New member function.
4383 * expprint.c (print_subexp_standard): Update call to name_of_this.
4384 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
4385 * go-lang.c (go_language_data): Likewise.
4386 * language.c (unknown_language_data): Likewise.
4387 (unknown_language::name_of_this): New member function.
4388 (auto_language_data): Remove la_name_of_this initializer.
4389 (auto_language::name_of_this): New member function.
4390 * language.h (language_data): Delete la_name_of_this member
4391 variable.
4392 (language_defn::name_of_this): New member function.
4393 * m2-lang.c (m2_language_data): Remove la_name_of_this
4394 initializer.
4395 * objc-lang.c (objc_language_data): Likewise.
4396 (objc_language::name_of_this): New member function.
4397 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
4398 initializer.
4399 * p-lang.c (pascal_language_data): Likewise.
4400 (pascal_language::name_of_this): New member function.
4401 * rust-lang.c (rust_language_data): Remove la_name_of_this
4402 initializer.
4403 * symtab.c (lookup_language_this): Update call to name_of_this.
4404 (lookup_symbol_aux): Likewise.
4405 * valops.c (value_of_this): Likewise.
4406
22e3f3ed
AB
44072020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4408
4409 * ada-lang.c (ada_language_data): Remove
4410 la_struct_too_deep_ellipsis initializer.
4411 (ada_language::struct_too_deep_ellipsis): New member function.
4412 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
4413 initializer.
4414 (cplus_language_data): Likewise.
4415 (asm_language_data): Likewise.
4416 (minimal_language_data): Likewise.
4417 * cp-valprint.c (cp_print_value): Update call to
4418 struct_too_deep_ellipsis.
4419 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
4420 initializer.
4421 * f-lang.c (f_language_data): Likewise.
4422 (f_language::struct_too_deep_ellipsis): New member function.
4423 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
4424 initializer.
4425 * language.c (unknown_language_data): Likewise.
4426 (auto_language_data): Likewise.
4427 * language.h (language_data): Delete la_struct_too_deep_ellipsis
4428 member variable.
4429 (language_defn::struct_too_deep_ellipsis): New member function.
4430 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
4431 initializer.Q
4432 * objc-lang.c (objc_language_data): Likewise.
4433 * opencl-lang.c (opencl_language_data): Likewise.
4434 * p-lang.c (pascal_language_data): Likewise.
4435 * rust-lang.c (rust_language_data): Likewise.
4436 * valprint.c (val_print_check_max_depth): Update call to
4437 struct_too_deep_ellipsis.
4438
ed29e1c7
FW
44392020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
4440
4441 * MAINTAINERS (Write After Approval): Add myself.
4442
12d8f940
TT
44432020-09-15 Tom Tromey <tom@tromey.com>
4444
4445 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
4446 Remove.
4447
6b5a7bc7
TT
44482020-09-15 Tom Tromey <tom@tromey.com>
4449
4450 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
4451 and TYPE_CODE_METHODPTR cases.
4452 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
4453 (c_value_print_inner): Update.
4454 * valprint.c (generic_value_print_memberptr): New function, from
4455 c_value_print_memberptr.
4456 (generic_value_print): Use it. Call cplus_print_method_ptr.
4457
47f0e2ff
TT
44582020-09-15 Tom Tromey <tromey@adacore.com>
4459
4460 * python/python-internal.h (PyInt_FromLong): Remove define.
4461 * python/py-value.c (convert_value_from_python): Use
4462 gdb_py_object_from_longest.
4463 * python/py-type.c (typy_get_code): Use
4464 gdb_py_object_from_longest.
4465 * python/py-symtab.c (salpy_get_line): Use
4466 gdb_py_object_from_longest.
4467 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
4468 gdb_py_object_from_longest.
4469 * python/py-record.c (recpy_gap_reason_code): Use
4470 gdb_py_object_from_longest.
4471 * python/py-record-btrace.c (recpy_bt_insn_size)
4472 (recpy_bt_func_level, btpy_list_count): Use
4473 gdb_py_object_from_longest.
4474 * python/py-infthread.c (gdbpy_create_ptid_object): Use
4475 gdb_py_object_from_longest. Fix error handling.
4476 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
4477 gdb_py_object_from_longest.
4478 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
4479 gdb_py_object_from_longest.
4480 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
4481 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
4482 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
4483
512116ce
TT
44842020-09-15 Tom Tromey <tromey@adacore.com>
4485
4486 * python/python.c (gdbpy_parameter_value): Use
4487 gdb_py_object_from_ulongest.
4488
4ab1029c
TT
44892020-09-15 Tom Tromey <tromey@adacore.com>
4490
4491 * python/py-infevents.c (create_register_changed_event_object):
4492 Use gdb_py_object_from_longest.
4493 * python/py-exitedevent.c (create_exited_event_object): Use
4494 gdb_py_object_from_longest.
4495
062534d4
TT
44962020-09-15 Tom Tromey <tromey@adacore.com>
4497
4498 * python/python.c (gdbpy_parameter_value): Use
4499 gdb_py_object_from_longest.
4500 * python/py-type.c (convert_field, typy_range): Use
4501 gdb_py_object_from_longest.
4502 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
4503 gdb_py_object_from_longest.
4504 * python/py-lazy-string.c (stpy_get_length): Use
4505 gdb_py_object_from_longest.
4506 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
4507 gdb_py_object_from_longest.
4508 * python/py-infevents.c (create_memory_changed_event_object): Use
4509 gdb_py_object_from_longest.
4510 * python/py-inferior.c (infpy_get_num): Use
4511 gdb_py_object_from_longest.
4512 (infpy_get_pid): Likewise.
4513
d1cab987
TT
45142020-09-15 Tom Tromey <tromey@adacore.com>
4515
4516 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
4517 defines.
4518 * python/py-value.c (valpy_long): Use
4519 gdb_py_object_from_ulongest.
4520 * python/py-symtab.c (salpy_get_pc): Use
4521 gdb_py_object_from_ulongest.
4522 (salpy_get_last): Likewise.
4523 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
4524 gdb_py_object_from_ulongest.
4525 * python/py-lazy-string.c (stpy_get_address): Use
4526 gdb_py_object_from_ulongest.
4527 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
4528 * python/py-arch.c (archpy_disassemble): Use
4529 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
4530 error handling.
4531
4bde49dc
TT
45322020-09-15 Tom Tromey <tromey@adacore.com>
4533
4534 * python/python-internal.h (gdb_py_long_from_longest): Remove
4535 defines.
4536 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
4537 * python/py-type.c (convert_field, typy_get_sizeof): Use
4538 gdb_py_object_from_longest.
4539 * python/py-record-btrace.c (btpy_list_index): Use
4540 gdb_py_object_from_longest.
4541
37431074
TT
45422020-09-15 Tom Tromey <tromey@adacore.com>
4543
4544 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
4545 * python/py-record.c (recpy_element_number): Use
4546 gdb_py_object_from_longest.
4547 (recpy_gap_number): Likewise.
4548
cbe25684
TT
45492020-09-15 Tom Tromey <tromey@adacore.com>
4550
4551 * top.c (ui::ui): Update.
4552 (highest_ui_num): Remove.
4553 * top.h (struct ui) <num>: Remove.
4554
db92ac45
TT
45552020-09-15 Tom Tromey <tromey@adacore.com>
4556
4557 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
4558 * ui-style.c (ansi_regex_text): Now array.
4559 * rust-exp.y (number_regex_text): Now array.
4560 * linespec.c (linespec_quote_characters): Now array.
4561 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
4562 Now arrays.
4563
d2b31b67
SM
45642020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4565
4566 * debuginfod-support.c (debuginfod_client_deleter): New.
4567 (debuginfod_client_up): New.
4568 (debuginfod_init): Return debuginfod_client_up.
4569 (debuginfod_source_query): Adjust.
4570 (debuginfod_debuginfo_query): Adjust.
4571
3246bd8e
SM
45722020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4573
4574 * debuginfod-support.c (debuginfod_source_query): Use
4575 make_unique_xstrdup.
4576
10242f36
SM
45772020-09-14 Simon Marchi <simon.marchi@efficios.com>
4578
4579 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
4580 with `type::instance_flags`.
4581
e1044e6a
MM
45822020-09-14 Michael Mullin <masmullin@gmail.com>
4583
4584 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
4585 Remove baton parameter.
4586
04902b09
PA
45872020-09-14 Pedro Alves <pedro@palves.net>
4588
4589 * Makefile.in (SELFTESTS_SRCS): Add
4590 unittests/enum-flags-selftests.c.
4591 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
4592 btrace_function_flags instead of enum btrace_function_flag.
4593 * compile/compile-c-types.c (convert_qualified): Use
4594 enum_flags::raw.
4595 * compile/compile-cplus-symbols.c (convert_one_symbol)
4596 (convert_symbol_bmsym):
4597 * compile/compile-cplus-types.c (compile_cplus_convert_method)
4598 (compile_cplus_convert_struct_or_union_methods)
4599 (compile_cplus_instance::convert_qualified_base):
4600 * go-exp.y (parse_string_or_char): Add cast to int.
4601 * unittests/enum-flags-selftests.c: New file.
4602 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
4603 type to btrace_thread_flags from btrace_thread_flag.
4604 (record_btrace_cancel_resume, record_btrace_step_thread): Change
4605 local's type to btrace_thread_flags from btrace_thread_flag. Add
4606 cast in DEBUG call.
4607
69896a2c
PA
46082020-09-14 Pedro Alves <pedro@palves.net>
4609
4610 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
4611 * gdbtypes.c (address_space_name_to_int): Rename to ...
4612 (address_space_name_to_type_instance_flags): ... this.
4613 (address_space_int_to_name): Rename to ...
4614 (address_space_type_instance_flags_to_name): ... this.
4615 * gdbtypes.h (address_space_name_to_int): Rename to ...
4616 (address_space_name_to_type_instance_flags): ... this.
4617 (address_space_int_to_name): Rename to ...
4618 (address_space_type_instance_flags_to_name): ... this.
4619 * type-stack.c (type_stack::insert): Adjust to rename.
4620 * type-stack.h (type_stack::insert): Likewise.
4621
314ad88d
PA
46222020-09-14 Pedro Alves <pedro@palves.net>
4623 Andrew Burgess <andrew.burgess@embecosm.com>
4624
4625 * avr-tdep.c (avr_address_class_type_flags): Return
4626 type_instance_flags.
4627 (avr_address_class_type_flags_to_name): Take a
4628 type_instance_flags.
4629 (avr_address_class_name_to_type_flags): Return bool and take a
4630 type_instance_flags.
4631 * d-lang.c (build_d_types): Use type::set_instance_flags.
4632 * ft32-tdep.c (ft32_address_class_type_flags): Return
4633 type_instance_flags.
4634 (ft32_address_class_type_flags_to_name): Take a
4635 type_instance_flags.
4636 (ft32_address_class_name_to_type_flags): Return bool and take a
4637 type_instance_flags.
4638 (ft32_gdbarch_init): Use type::set_instance_flags.
4639 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
4640 * gdbarch.h, gdbarch.c: Regenerate.
4641 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
4642 (address_class_name_to_type_flags): Use type_instance_flags and
4643 bool.
4644 * gdbtypes.c (address_space_name_to_int)
4645 (address_space_int_to_name, make_qualified_type): Use
4646 type_instance_flags.
4647 (make_qualified_type): Use type_instance_flags and
4648 type::set_instance_flags.
4649 (make_type_with_address_space, make_cv_type, make_vector_type)
4650 (check_typedef): Use type_instance_flags.
4651 (recursive_dump_type): Cast type_instance_flags to unsigned for
4652 printing.
4653 (copy_type_recursive): Use type::set_instance_flags.
4654 (gdbtypes_post_init): Use type::set_instance_flags.
4655 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
4656 <m_instance_flags>: ... this.
4657 <instance_flags, set_instance_flags>: New methods.
4658 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
4659 (SET_TYPE_INSTANCE_FLAGS): New.
4660 (address_space_name_to_int, address_space_int_to_name)
4661 (make_type_with_address_space): Pass flags using
4662 type_instance_flags instead of int.
4663 * stabsread.c (cleanup_undefined_types_noname): Use
4664 type::set_instance_flags.
4665 * s390-tdep.c (s390_address_class_type_flags): Return
4666 type_instance_flags.
4667 (s390_address_class_type_flags_to_name): Take a
4668 type_instance_flags.
4669 (s390_address_class_name_to_type_flags): Return bool and take a
4670 type_instance_flags.
4671 * type-stack.c (type_stack::follow_types): Use
4672 type_instance_flags.
4673 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
4674
27087b7f
TT
46752020-09-14 Tom Tromey <tromey@adacore.com>
4676
4677 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
4678 * x86-tdep.c (x86_is_thunk_register_name)
4679 (x86_in_indirect_branch_thunk): Update.
4680 * sparc64-tdep.c (sparc64_fpu_register_names)
4681 (sparc64_cp0_register_names, sparc64_register_names)
4682 (sparc64_pseudo_register_names): Now const.
4683 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
4684 cp0_registers_num>: Now const.
4685 * sparc-tdep.c (sparc_core_register_names)
4686 (sparc32_fpu_register_names, sparc32_cp0_register_names)
4687 (sparc32_pseudo_register_names): Now const.
4688 (validate_tdesc_registers): Update.
4689 * rust-lang.c (rust_extensions): Now const.
4690 * p-lang.c (p_extensions): Now const.
4691 * objc-lang.c (objc_extensions): Now const.
4692 * nto-tdep.c (nto_thread_state_str): Now const.
4693 * moxie-tdep.c (moxie_register_names): Now const.
4694 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
4695 Now const.
4696 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
4697 (mips_linux_reg_names): Now const.
4698 (mips_gdbarch_init): Update.
4699 * microblaze-tdep.c (microblaze_register_names): Now const.
4700 * m68k-tdep.c (m68k_register_names): Now const.
4701 * m32r-tdep.c (m32r_register_names): Now const.
4702 * ia64-tdep.c (ia64_register_names): Now const.
4703 * i386-tdep.h (struct gdbarch_tdep) <register_names,
4704 ymmh_register_names, ymm16h_regnum, mpx_register_names,
4705 k_register_names, zmmh_register_names, xmm_avx512_register_names,
4706 ymm_avx512_register_names, pkeys_register_names>: Now const.
4707 * i386-tdep.c (i386_register_names, i386_zmm_names)
4708 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
4709 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
4710 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
4711 * f-lang.c (f_extensions): Now const.
4712 * d-lang.c (d_extensions): Now const.
4713 * csky-tdep.c (csky_register_names): Now const.
4714 * charset.c (default_charset_names, charset_enum): Now const.
4715 (_initialize_charset): Update.
4716 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
4717 const.
4718 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
4719 (bsd_uthread_solib_loaded): Update.
4720 (bsd_uthread_state): Now const.
4721 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
4722 (amd64_ymm_avx512_names, amd64_ymmh_names)
4723 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
4724 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
4725 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
4726 (amd64_dword_names): Now const.
4727 * agent.c (can_use_agent_enum): Now const.
4728 * ada-tasks.c (task_states, long_task_states): Now const.
4729 * ada-lang.c (known_runtime_file_name_patterns)
4730 (known_auxiliary_function_name_patterns, attribute_names)
4731 (standard_exc, ada_extensions): Now const.
4732
89806626
SM
47332020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4734
4735 * bcache.h (struct bcache) <bcache>: Remove constructor.
4736 <m_hash_function, m_compare_function>: Remove.
4737 <~bcache>: Make virtual.
4738 <compare>: Remove static method, introduce virtual method.
4739 <default_hash>: Remove.
4740 <hash>: New virtual method.
4741 * bcache.c (bcache::expand_hash_table): Update.
4742 (bcache::insert): Update.
4743 (bcache::hash): New.
4744 (bcache::compare): Update comment and parameter names.
4745 * gdbtypes.c (types_deeply_equal): Update.
4746 * psymtab.h (struct psymbol_bcache): New struct.
4747 (class psymtab_storage) <psymtab_storage>: Make default.
4748 <psymbol_cache>: Change type to psymbol_bcache.
4749 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
4750 (psymbol_hash): Change to...
4751 (psymbol_bcache::hash): ... this.
4752 (psymbol_compare): Change to...
4753 (psymbol_bcache::compare): ... this.
4754
677c92fe
SM
47552020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4756
4757 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
4758 checking for initial lwp.
4759
3eba3a01
TT
47602020-09-14 Tom Tromey <tromey@adacore.com>
4761
4762 * m68k-tdep.c (m68k_extract_return_value): Use
4763 pointer_result_regnum.
4764 (m68k_store_return_value): Likewise.
4765 (m68k_reg_struct_return_p): Handle vectors and arrays.
4766 (m68k_return_value): Handle arrays.
4767 (m68k_svr4_return_value): Fix single-element aggregate handling.
4768 Handle long double. Adjust for embedded ABI.
4769 (m68k_svr4_init_abi): Set pointer_result_regnum.
4770 (m68k_embedded_init_abi): New function.
4771 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
4772 (m68k_osabi_sniffer): New function.
4773 (_initialize_m68k_tdep): Register osabi sniffer.
4774 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
4775 member.
4776
33f4dd48
SM
47772020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4778
4779 * xml-support.c (xml_fetch_content_from_file): Replace xfree
4780 with gdb::unique_xmalloc_ptr<char>.
4781
8400a90d
SM
47822020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4783
4784 * xml-support.h (xml_fetch_another): Change type to be a
4785 function_view.
4786 (xml_process_xincludes): Remove baton parameter.
4787 (xml_fetch_content_from_file): Change baton parameter to
4788 dirname.
4789 * xml-support.c (struct xinclude_parsing_data)
4790 <xinclude_parsing_data>: Remove baton parameter.
4791 <fetcher_baton>: Remove.
4792 (xinclude_start_include): Adjust.
4793 (xml_process_xincludes): Adjust.
4794 (xml_fetch_content_from_file): Replace baton parameter with
4795 dirname.
4796 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
4797 (xml_init_syscalls_info): Use a lambda.
4798 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
4799 (file_read_description_xml): Use a lambda.
4800 (fetch_available_features_from_target): Change baton parameter
4801 to target_ops.
4802 (target_read_description_xml): Use a lambda.
4803 (target_fetch_description_xml): Use a lambda.
4804 (string_read_description_xml): Update.
4805
04f5bab2
SM
48062020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4807
4808 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
4809 uses with type::endianity_is_not_default.
4810
db558e34
SM
48112020-09-14 Simon Marchi <simon.marchi@efficios.com>
4812
4813 * gdbtypes.h (struct type) <endianity_is_not_default,
4814 set_endianity_is_not_default>: New methods.
4815 (TYPE_ENDIANITY_NOT_DEFAULT): Use
4816 type::endianity_is_not_default, change all write call sites to
4817 use type::set_endianity_is_not_default.
4818
22c4c60c
SM
48192020-09-14 Simon Marchi <simon.marchi@efficios.com>
4820
4821 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
4822 uses with type::is_fixed_instance.
4823
9cdd0d12
SM
48242020-09-14 Simon Marchi <simon.marchi@efficios.com>
4825
4826 * gdbtypes.h (struct type) <is_fixed_instance,
4827 set_is_fixed_instance>: New methods.
4828 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
4829 write call sites to use type::set_is_fixed_instance.
4830
0becda7a
SM
48312020-09-14 Simon Marchi <simon.marchi@efficios.com>
4832
4833 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
4834 uses with type::is_gnu_ifunc.
4835
03cc7249
SM
48362020-09-14 Simon Marchi <simon.marchi@efficios.com>
4837
4838 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
4839 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
4840 use type::set_is_gnu_ifunc.
4841
3f46044c
SM
48422020-09-14 Simon Marchi <simon.marchi@efficios.com>
4843
4844 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
4845 uses with type::stub_is_supported.
4846
9baccff6
SM
48472020-09-14 Simon Marchi <simon.marchi@efficios.com>
4848
4849 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
4850 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
4851 use type::set_stub_is_supported.
4852
bd63c870
SM
48532020-09-14 Simon Marchi <simon.marchi@efficios.com>
4854
4855 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
4856 uses with type::is_vector.
4857
2062087b
SM
48582020-09-14 Simon Marchi <simon.marchi@efficios.com>
4859
4860 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
4861 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
4862 use type::set_is_vector.
4863
a409645d
SM
48642020-09-14 Simon Marchi <simon.marchi@efficios.com>
4865
4866 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
4867 uses with type::has_varargs.
4868
1d6286ed
SM
48692020-09-14 Simon Marchi <simon.marchi@efficios.com>
4870
4871 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
4872 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
4873 use type::set_has_varargs.
4874
7f9f399b
SM
48752020-09-14 Simon Marchi <simon.marchi@efficios.com>
4876
4877 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
4878 uses with type::is_prototyped.
4879
27e69b7a
SM
48802020-09-14 Simon Marchi <simon.marchi@efficios.com>
4881
4882 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
4883 New methods.
4884 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
4885 call sites to use type::set_is_prototyped.
4886
d2183968
SM
48872020-09-14 Simon Marchi <simon.marchi@efficios.com>
4888
4889 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
4890 uses with type::target_is_stub.
4891
8f53807e
SM
48922020-09-14 Simon Marchi <simon.marchi@efficios.com>
4893
4894 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
4895 New methods.
4896 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
4897 sites to use type::set_target_is_stub.
4898
e46d3488
SM
48992020-09-14 Simon Marchi <simon.marchi@efficios.com>
4900
4901 * gdbtypes.h (TYPE_STUB): Remove, replace all
4902 uses with type::is_stub.
4903
b4b73759
SM
49042020-09-14 Simon Marchi <simon.marchi@efficios.com>
4905
4906 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
4907 (TYPE_STUB): Use type::is_stub, change all write call sites to
4908 use type::set_is_stub.
4909
20ce4123
SM
49102020-09-14 Simon Marchi <simon.marchi@efficios.com>
4911
4912 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
4913 type::has_no_signedness.
4914
15152a54
SM
49152020-09-14 Simon Marchi <simon.marchi@efficios.com>
4916
4917 * gdbtypes.h (struct type) <has_no_signedness,
4918 set_has_no_signedness>: New methods.
4919 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
4920 call sites to use type::set_has_no_signedness.
4921
c6d940a9
SM
49222020-09-14 Simon Marchi <simon.marchi@efficios.com>
4923
4924 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
4925 type::is_unsigned.
4926
653223d3
SM
49272020-09-14 Simon Marchi <simon.marchi@efficios.com>
4928
4929 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
4930 methods.
4931 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
4932 sites to use type::set_is_unsigned.
4933
55ea94da 49342020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 4935 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 4936
e851246a
SM
4937 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
4938 pointer and stack frame offset when unwinding.
55ea94da 4939
6791b117
PA
49402020-09-13 Pedro Alves <pedro@palves.net>
4941
4942 * NEWS: Document "-break-insert --qualified".
4943 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
4944
77f2120b
PA
49452020-09-13 Pedro Alves <pedro@palves.net>
4946
4947 * linespec.c (classify_mtype, compare_msyms): Delete.
4948 (search_minsyms_for_name): Remove classification logic. Instead
4949 filter out trampoline symbols if we also found an external
4950 function of the same name.
4951
ed6a896c
JB
49522020-09-13 Joel Brobecker <brobecker@adacore.com>
4953
4954 * NEWS: Create a new section for the next release branch.
4955 Rename the section of the current branch, now that it has
4956 been cut.
4957
32aea73e
JB
49582020-09-13 Joel Brobecker <brobecker@adacore.com>
4959
4960 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
4961 * version.in: Bump version to 11.0.50.DATE-git.
4962
8087c3fa
JB
49632020-09-12 Joel Brobecker <brobecker@adacore.com>
4964
4965 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
4966
2a67f09d
FW
49672020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
4968 Felix Willgerodt <Felix.Willgerodt@intel.com>
4969
4970 * gdbarch.sh: Added bfloat16 type.
4971 * gdbarch.c: Regenerated.
4972 * gdbarch.h: Regenerated.
4973 * gdbtypes.c (floatformats_bfloat16): New struct.
4974 (gdbtypes_post_init): Add builtin_bfloat16.
4975 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
4976 (floatformats_bfloat16): New struct.
4977 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
4978 (i386_ymm_type): Add field "v16_bfloat16"
4979 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
4980 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
4981 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
4982 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
4983 * features/i386/64bit-avx512.xml: Add bfloat16 type.
4984 * features/i386/64bit-avx512.c: Regenerated.
4985 * features/i386/64bit-sse.xml: Add bfloat16 type.
4986 * features/i386/64bit-sse.c: Regenerated.
4987
1347d111
FW
49882020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
4989
4990 * i386-tdep.c (i386_zmm_type): Fix field names.
4991 (i386_ymm_type): Fix field names.
4992
7a4e8e7d
TBA
49932020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4994
4995 * breakpoint.c: Fix typo in the help message of the
4996 "set breakpoint condition-evaluation" command.
4997
cf4ac4be
KR
49982020-09-10 Kamil Rytarowski <n54@gmx.com>
4999
5000 * nbsd-nat.c: Include "nat/netbsd-nat.h".
5001 * (nbsd_nat_target::pid_to_exec_file)
5002 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
5003 (nbsd_nat_target::post_startup_inferior)
5004 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
5005 (nbsd_add_threads): Switch local code to common gdb/nat functions.
5006 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
5007 * (nbsd_thread_lister): Remove.
5008
f404573e
KR
50092020-09-10 Kamil Rytarowski <n54@gmx.com>
5010
5011 * fork-inferior.c (startup_inferior): Avoid double free.
5012
1ccb2c17
KR
50132020-09-10 Kamil Rytarowski <n54@gmx.com>
5014
5015 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
5016 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
5017
feedfcc7
KR
50182020-09-10 Kamil Rytarowski <n54@gmx.com>
5019
5020 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
5021 * netbsd-nat.c: Include <sys/ptrace.h>.
5022 * (netbsd_nat::enable_proc_events): Add.
5023
c489f8c6
KR
50242020-09-10 Kamil Rytarowski <n54@gmx.com>
5025
5026 * netbsd-nat.h: Include "gdbsupport/function-view.h".
5027 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5028 (netbsd_nat::for_each_thread): Add.
5029 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
5030 "gdbsupport/common-debug.h".
5031 * (netbsd_nat::netbsd_thread_lister)
5032 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5033 (netbsd_nat::for_each_thread): Add.
5034
330662f6
KR
50352020-09-10 Kamil Rytarowski <n54@gmx.com>
5036
5037 * netbsd-nat.h: Include <unistd.h>.
5038 * (netbsd_nat::pid_to_exec_file): Add.
5039 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
5040 * (netbsd_nat::pid_to_exec_file) Add.
5041
70b67307
KR
50422020-09-10 Kamil Rytarowski <n54@gmx.com>
5043
5044 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
5045
99cf6da6
KR
50462020-09-10 Kamil Rytarowski <n54@gmx.com>
5047
5048 * netbsd-nat.h: New file.
5049 * netbsd-nat.c: Likewise.
5050
1b788fb6
TT
50512020-09-09 Tom Tromey <tromey@adacore.com>
5052
5053 * ada-lang.c (remove_extra_symbols): Do not increment when
5054 removing an element
5055
03b0a45f
TT
50562020-09-08 Tom Tromey <tromey@adacore.com>
5057
5058 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
5059
3cae4447
TT
50602020-09-08 Tom Tromey <tromey@adacore.com>
5061
5062 PR win32/25302:
5063 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
5064 (gdb_bfd_init_data): New function.
5065 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
5066
7f08fd51
TBA
50672020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5068
5069 * infrun.c (fetch_inferior_event): Use
5070 `switch_to_target_no_thread` to switch the target.
5071
3e6ff933
TT
50722020-09-06 Tom Tromey <tom@tromey.com>
5073
5074 * symfile.h (dwarf2_free_objfile): Don't declare.
5075
e56798df
AKS
50762020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5077
5078 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
5079 to match 16 byte real/complex type generated by Flang compiler.
5080
8f5c6526
TV
50812020-09-03 Tom de Vries <tdevries@suse.de>
5082
5083 PR breakpoint/26546
5084 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
5085 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
5086
c5065df0
SM
50872020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
5088
5089 * maint.c (index_digits): New function.
5090 (struct maint_print_section_data): Remove.
5091 (print_bfd_section_info): Remove print_data parameter, add arg
5092 and index_digits.
5093 (print_objfile_section_info): Likewise.
5094 (print_bfd_section_info_maybe_relocated): Likewise (plus
5095 objfile).
5096 (maintenance_info_sections): Adjust calls.
5097
02c6f3f1
TT
50982020-09-02 Tom Tromey <tromey@adacore.com>
5099
5100 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
5101 for null pointers.
5102 (ada_varobj_adjust_for_child_access): Special-case null pointers.
5103
ef5e5b0b
SM
51042020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
5105
5106 * bcache.h (struct bcache) <insert>: Change type of `added` to
5107 pointer to bool.
5108 * bcache.c (bcache::insert): Likewise.
5109 * gdbtypes.c (check_types_worklist): Adjust.
5110 * psymtab.c (add_psymbol_to_bcache): Adjust.
5111
973695d6
KB
51122020-08-31 Kevin Buettner <kevinb@redhat.com>
5113
5114 * corelow.c (unordered_set): Include.
5115 (class core_target): Add field 'm_core_unavailable_mappings'.
5116 (core_target::build_file_mappings): Print only one warning
5117 per inaccessible file. Add unavailable/broken mappings
5118 to m_core_unavailable_mappings.
5119 (core_target::xfer_partial): Call...
5120 (core_target::xfer_memory_via_mappings): New method.
5121
264fc0e2
SM
51222020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5123
5124 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
5125 type to bool.
5126
2de01bdb
SM
51272020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5128
5129 * dwarf2/read.c (struct field_info): Fix indentation.
5130
f3bd50f1
SM
51312020-08-31 Simon Marchi <simon.marchi@efficios.com>
5132
5133 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
5134 ordering in comment.
5135 * frame.c (frame_id_eq): Fix indentation.
5136
22b9b4b0
SL
51372020-08-31 Scott Linder <scott@scottlinder.com>
5138 Simon Marchi <simon.marchi@efficios.com>
5139
5140 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
5141 inline frame ids in outer frame.
5142
84154d16
SM
51432020-08-31 Simon Marchi <simon.marchi@efficios.com>
5144
5145 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
5146 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
5147 (outer_frame_id): Use FID_STACK_OUTER instead of
5148 FID_STACK_INVALID.
5149 (frame_id_p): Don't check for outer_frame_id.
5150
8efaf6b3
SM
51512020-08-31 Simon Marchi <simon.marchi@efficios.com>
5152
5153 * frame-unwind.c (frame_unwind_got_optimized): Don't set
5154 regnum/frame in value. Call allocate_value_lazy.
5155 * frame.c (frame_unwind_register_value): Use
5156 val_print_not_saved.
5157
fe1fe7ea
SM
51582020-08-31 Simon Marchi <simon.marchi@efficios.com>
5159
5160 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
5161
f7c7700d
PA
51622020-08-29 Pedro Alves <pedro@palves.net>
5163
5164 * progspace.c (print_program_space): Use all_inferiors. Switch to
5165 the inferior before calling target_pid_to_str.
5166
e0814aae
TT
51672020-08-28 Tom Tromey <tom@tromey.com>
5168
5169 * xcoffread.c (xcoff_end_psymtab): Update comment.
5170 * dbxread.c (dbx_end_psymtab): Update comment.
5171
626d2320
TV
51722020-08-28 Tom de Vries <tdevries@suse.de>
5173
5174 PR breakpoint/26544
5175 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
5176 event_location.
5177 (create_breakpoint): Same.
5178 (base_breakpoint_decode_location): Same.
5179 (bkpt_create_sals_from_location): Same.
5180 (bkpt_decode_location): Same.
5181 (bkpt_probe_create_sals_from_location): Same.
5182 (bkpt_probe_decode_location): Same.
5183 (tracepoint_create_sals_from_location): Same.
5184 (tracepoint_decode_location): Same.
5185 (tracepoint_probe_decode_location): Same.
5186 (strace_marker_create_sals_from_location): Same.
5187 (strace_marker_decode_location): Same.
5188 (create_sals_from_location_default): Same.
5189 (decode_location_default): Same.
5190 * breakpoint.h (struct breakpoint_ops): Same.
5191 (create_breakpoint): Same.
5192 * linespec.h (decode_line_full): Same.
5193 * linespec.c (decode_line_full): Same. Throw error if
5194 result.size () == 0.
5195
df631783
PA
51962020-08-27 Pedro Alves <pedro@palves.net>
5197
5198 PR gdb/26524
5199 * breakpoint.c (until_break_fsm) <location_breakpoint,
5200 caller_breakpoint>: Delete fields.
5201 <breakpoints>: New field.
5202 <until_break_fsm>: Adjust to save a breakpoint vector instead of
5203 two individual breakpoints.
5204 (until_break_fsm::should_stop): Loop over breakpoints in the
5205 breakpoint vector.
5206 (until_break_fsm::clean_up): Adjust to clear the breakpoints
5207 vector.
5208 (until_break_command): Handle location expanding into multiple
5209 sals.
5210
b2b38aa4
PA
52112020-08-27 Pedro Alves <pedro@palves.net>
5212
5213 PR gdb/26523
5214 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
5215 bp_until breakpoints user-specified locations. Update intro
5216 comment.
5217
b886559f
SM
52182020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
5219
5220 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
5221 gdb_bfd_sections): New.
5222 * maint.c (print_bfd_section_info): Change param type to
5223 maint_print_section_data.
5224 (print_objfile_section_info): Likewise.
5225 (print_bfd_section_info_maybe_relocated): Likewise.
5226 (maintenance_info_sections): Use gdb_bfd_sections.
5227
4c6e63bf
SV
52282020-08-25 Shahab Vahedi <shahab@synopsys.com>
5229
5230 * MAINTAINERS: Add ARC target and maintainer.
5231
8d7f0635
AK
52322020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
5233
5234 * configure.tgt: ARC support for GNU/Linux.
5235 * Makefile.in (ALL_TARGET_OBJS): Likewise.
5236 * arc-linux-tdep.c: New file.
5237 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
5238 * arc-tdep.c (arc_write_pc): Use it.
5239
fdd8731b
SV
52402020-08-25 Shahab Vahedi <shahab@synopsys.com>
5241
5242 * arc-tdep.c (arc_check_for_hardware_loop): New.
5243 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
5244
22459524
SV
52452020-08-25 Shahab Vahedi <shahab@synopsys.com>
5246
5247 * arc-tdep.h: Include "gdbarch.h".
5248
995d3a19
SV
52492020-08-25 Shahab Vahedi <shahab@synopsys.com>
5250
5251 * arch/arc.h
5252 (arc_gdbarch_features): New class to stir the selection of target XML.
5253 (arc_create_target_description): Use FEATURES to choose XML target.
5254 (arc_lookup_target_description): Use arc_create_target_description
5255 to create _new_ target descriptions or return the already created
5256 ones if the FEATURES is the same.
5257 * arch/arc.c: Implementation of prototypes described above.
5258 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
5259 (arc_gdbarch_features_init): Initialize the FEATURES struct.
5260 * arc-tdep.c (*_feature_name): Make feature names consistent.
5261 (arc_register_feature): A new struct to hold information about
5262 registers of a particular target/feature.
5263 (arc_check_tdesc_feature): Check if XML provides registers in
5264 compliance with ARC_REGISTER_FEATURE structs.
5265 (arc_update_acc_reg_names): Add aliases for r58 and r59.
5266 (determine_*_reg_feature_set): Which feature name to look for.
5267 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
5268 (mach_type_to_arc_isa): Convert from a set of binutils machine types
5269 to expected ISA enums to be used in arc_gdbarch_features structs.
5270 * features/Makefile (FEATURE_XMLFILES): Add new files.
5271 * gdb/features/arc/v1-aux.c: New file.
5272 * gdb/features/arc/v1-aux.xml: Likewise.
5273 * gdb/features/arc/v1-core.c: Likewise.
5274 * gdb/features/arc/v1-core.xml: Likewise.
5275 * gdb/features/arc/v2-aux.c: Likewise.
5276 * gdb/features/arc/v2-aux.xml: Likewise.
5277 * gdb/features/arc/v2-core.c: Likewise.
5278 * gdb/features/arc/v2-core.xml: Likewise.
5279 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
5280
3945d2d7
GM
52812020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
5282 Andrew Burgess <andrew.burgess@embecosm.com>
5283
5284 PR m2/26372
fc5d6901 5285 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
5286 an assert. Remove single element array indexing pattern as the
5287 MULTI_SUBSCRIPT support will handle this case too.
5288
2677f2d3
SM
52892020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
5290
5291 * value.h (valprint_check_validity): Move declaration from
5292 here...
5293 * valprint.h (valprint_check_validity): ... to here.
5294
c426fddb
SM
52952020-08-24 Simon Marchi <simon.marchi@efficios.com>
5296
5297 * debug.h: New file.
5298 * debug.c (debug_prefixed_vprintf): New function.
5299 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
5300 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
5301
1eb8556f
SM
53022020-08-24 Simon Marchi <simon.marchi@efficios.com>
5303
5304 * infrun.h (infrun_debug_printf_1): New function declaration.
5305 (infrun_debug_printf): New macro.
5306 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
5307 throughout.
5308 (infrun_debug_printf): New function.
5309 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
5310 (handle_jit_event): Likewise.
5311
b8fff44e
MW
53122020-08-21 Mark Wielaard <mark@klomp.org>
5313
5314 * ada-lex.l: Extend register warnings diagnostics comment for g++.
5315
d19c3068
SM
53162020-08-22 Simon Marchi <simon.marchi@efficios.com>
5317
5318 * frame.c (enum class frame_id_status): New.
5319 (struct frame_info) <this_id::p>: Change type to frame_id_status.
5320 (fprintf_frame): Update.
5321 (compute_frame_id): Set frame id status to "computing" on entry.
5322 Set it back to "not_computed" on failure and to "computed" on
5323 success.
5324 (get_frame_id): Assert the frame id is not being computed.
5325 (create_sentinel_frame): Use frame_id_status::COMPUTED.
5326 (create_new_frame): Likewise.
5327 (frame_cleanup_after_sniffer): Update assert.
5328
b70e516e
SM
53292020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5330
5331 * regcache.c (pid_ptid_regcache_map): New type.
5332 (target_ptid_regcache_map): Remove.
5333 (target_pid_ptid_regcache_map): New type.
5334 (regcaches): Change type to target_pid_ptid_regcache_map.
5335 (get_thread_arch_aspace_regcache): Update.
5336 (regcache_thread_ptid_changed): Update, handle pid-like ptid
5337 case.
5338 (regcaches_size): Update.
5339 (regcache_count): Update.
5340 (registers_changed_ptid_target_pid_test): New.
5341 (_initialize_regcache): Register new test.
5342
cdd9148a
SM
53432020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5344
5345 * regcache.c (regcache_count): New.
5346 (struct regcache_test_data): New.
5347 (regcache_test_data_up): New.
5348 (populate_regcaches_for_test): New.
5349 (regcaches_test): Remove.
5350 (get_thread_arch_aspace_regcache_test): New.
5351 (registers_changed_ptid_all_test): New.
5352 (registers_changed_ptid_target_test): New.
5353 (registers_changed_ptid_target_ptid_test): New.
5354 (regcache_thread_ptid_changed): Remove regcache_count lambda.
5355 (_initialize_regcache): Register new tests.
5356
dd125343
SM
53572020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5358
5359 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
5360 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
5361 gdbarch and aspace parameter. Use current inferior's aspace.
5362 Validate regcache's arch value.
5363 (regcaches_test): Update.
5364
3ee93972
SM
53652020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5366
5367 * regcache.c (regcaches_test): Call registers_changed.
5368
33bf4c5c
TBA
53692020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5370
5371 * infrun.c (process_event_stop_test): Fix typo "breapoint".
5372
c2fd7fae
AKS
53732020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5374
5375 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
5376 to find the end of prologue for flang compiled binaries.
5377 * arm-tdep.c (arm_skip_prologue): Likewise.
5378 * i386-tdep.c (i386_skip_prologue): Likewise.
5379 * producer.c (producer_is_llvm): New function.
5380 (producer_parsing_tests): Added new tests for clang/flang.
5381 * producer.h (producer_is_llvm): New declaration.
5382
9327494e
SM
53832020-08-18 Simon Marchi <simon.marchi@efficios.com>
5384
5385 * linux-nat.c (linux_nat_debug_printf): New function.
5386 (linux_nat_debug_printf_1): New macro. Use throughout the file.
5387
d138725a
AM
53882020-08-18 Aaron Merey <amerey@redhat.com>
5389
5390 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
5391 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
5392 (CLIBS): Add DEBUGINFOD_LIBS.
5393
f9b11e6b
ST
53942020-08-17 Sergei Trofimovich <siarheit@google.com>
5395
5396 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
5397 'gdbarch_num_regs'.
5398
3ae7ab99
TT
53992020-08-17 Tom Tromey <tromey@adacore.com>
5400
5401 * ada-varobj.c (ada_varobj_decode_var): Handle case where
5402 ada_get_decoded_value returns NULL.
5403
b017825f
TT
54042020-08-17 Tom Tromey <tromey@adacore.com>
5405
5406 * python/py-inferior.c (infpy_search_memory): Use
5407 gdb_py_object_from_ulongest.
5408 * python/py-infevents.c (create_inferior_call_event_object)
5409 (create_memory_changed_event_object): Use
5410 gdb_py_object_from_ulongest.
5411 * python/py-linetable.c (ltpy_entry_get_pc): Use
5412 gdb_py_object_from_ulongest.
5413
7635cf79
SM
54142020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5415
5416 * loc.c (class symbol_needs_eval_context): Fix indentation.
5417
f54be24b
SM
54182020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5419
5420 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
5421 bool.
5422
53d5a2a5
TV
54232020-08-17 Tom de Vries <tdevries@suse.de>
5424
5425 PR gdb/26393
5426 * gdbtypes.c (dump_dynamic_prop): New function.
5427 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
5428
547ce8f0
TV
54292020-08-15 Tom de Vries <tdevries@suse.de>
5430
5431 PR backtrace/26390
5432 * stack.c (print_frame_args): Temporarily set the selected
5433 frame to FRAME while printing the frame's arguments.
5434
6ea815e7
PFC
54352020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5436
5437 PR breakpoints/26385
5438 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
5439 Always clear watchpoint with PTRACE_SET_DEBUGREG.
5440
6e562fa3
PFC
54412020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5442
5443 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
5444 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
5445 and >= to check return value instead of == -1 and != -1.
5446
d369b608
SM
54472020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
5448
5449 * utils.h (class gdb_argv) <as_array_view>: New method.
5450 * utils.c (gdb_argv_as_array_view_test): New.
5451 (_initialize_utils): Register selftest.
5452 * maint.c (maintenance_selftest): Use the new method.
5453
b31488a3
KR
54542020-08-13 Kamil Rytarowski <n54@gmx.com>
5455
5456 * target.h (supports_dumpcore, dumpcore): New
5457 function declarations.
5458 * target.c (supports_dumpcore, dumpcore): New
5459 functions.
5460 * target-delegates.c: Rebuild.
5461 * gcore.c (gcore_command): Use target_supports_dumpcore ()
5462 and target_dumpcore ().
5463
002a3166
AM
54642020-08-13 Aaron Merey <amerey@redhat.com>
5465
5466 * debuginfod-support.c: Replace global variables with user_data.
5467
ece5bc8a
SM
54682020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
5469
5470 * maint.c (maintenance_selftest): Split args and pass array_view
5471 to run_tests.
5472
6d8a0a5e
LM
54732020-08-12 Luis Machado <luis.machado@linaro.org>
5474
5475 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
5476 type's length.
5477 Use %s and pulongest to print the length.
5478
7cf663a9
PA
54792020-08-12 Pedro Alves <palves@redhat.com>
5480
5481 * NEWS: Move "Multi-target debugging support" item to the
5482 "Changes since GDB 9" section.
5483
27c7b875
PA
54842020-08-12 Pedro Alves <palves@redhat.com>
5485
5486 PR gdb/26336
5487 * progspace.c (program_space::remove_objfile): Invalidate the
5488 frame cache.
5489
1796a2a1
TV
54902020-08-11 Tom de Vries <tdevries@suse.de>
5491
5492 * MAINTAINERS: Mark ms1 as deleted.
5493
f8e3fe0d
LM
54942020-08-10 Luis Machado <luis.machado@linaro.org>
5495
5496 PR gdb/26310
5497
5498 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
5499 act accordingly.
5500 (aarch64_analyze_prologue_test): Add more unit tests to exercise
5501 movz/str/stur/stp skipping behavior.
5502
cc308722
LM
55032020-08-10 Luis Machado <luis.machado@linaro.org>
5504
5505 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
5506 struct user_sve_header instead of struct sve_context.
5507
041d9819
SM
55082020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
5509
5510 * read.h (dwarf2_fetch_die_loc_sect_off,
5511 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
5512 `void *` parameter with function_view.
5513 * read.c (dwarf2_fetch_die_loc_sect_off,
5514 dwarf2_fetch_die_loc_cu_off): Likewise.
5515 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
5516 (per_cu_dwarf_call): Adjust.
5517 (get_frame_address_in_block_wrapper): Remove.
5518 (indirect_synthetic_pointer): Adjust.
5519 (get_ax_pc): Remove.
5520 (dwarf2_compile_expr_to_ax): Adjust.
5521
38f8aa06
TV
55222020-08-08 Tom de Vries <tdevries@suse.de>
5523
5524 PR build/26344
5525 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
5526 constructor.
5527 * regcache.c (get_thread_arch_aspace_regcache): Same.
5528
a52b3ae2
TT
55292020-08-07 Tom Tromey <tromey@adacore.com>
5530
5531 * ravenscar-thread.c
5532 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
5533 New method.
5534 (ravenscar_thread_target::wait): Check
5535 runtime_initialized.
5536 (ravenscar_thread_target::prepare_to_store)
5537 (ravenscar_thread_target::stopped_by_sw_breakpoint)
5538 (ravenscar_thread_target::stopped_by_hw_breakpoint)
5539 (ravenscar_thread_target::stopped_by_watchpoint)
5540 (ravenscar_thread_target::stopped_data_address)
5541 (ravenscar_thread_target::core_of_thread): Use
5542 scoped_restore_current_thread and
5543 set_base_thread_from_ravenscar_task.
5544
0e29517d
TT
55452020-08-07 Tom Tromey <tromey@adacore.com>
5546
5547 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
5548
592f9bd7
TT
55492020-08-07 Tom Tromey <tromey@adacore.com>
5550
5551 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
5552 update_inferior_ptid before update_thread_list.
5553 (temporarily_change_regcache_ptid): New class.
5554 (ravenscar_thread_target::fetch_registers)
5555 (ravenscar_thread_target::store_registers)
5556 (ravenscar_thread_target::prepare_to_store): Use base thread when
5557 forwarding operation.
5558
39e2018a
TT
55592020-08-07 Tom Tromey <tromey@adacore.com>
5560
5561 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
5562 "is_pid" case.
5563
2080266b
TT
55642020-08-07 Tom Tromey <tromey@adacore.com>
5565
5566 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
5567 New methods.
5568 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
5569 first.
5570 (ravenscar_thread_target::add_thread): Rename from
5571 ravenscar_add_thread.
5572 (ravenscar_thread_target::update_thread_list): Use a lambda.
5573 (ravenscar_thread_target::xfer_partial): New method.
5574
78c02f21
TT
55752020-08-07 Tom Tromey <tromey@adacore.com>
5576
5577 * ada-lang.h (ada_task_list_iterator_ftype): Now a
5578 gdb::function_view.
5579 (iterate_over_live_ada_tasks): Change type of argument.
5580 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
5581 of argument.
5582
d5d833af
TT
55832020-08-07 Tom Tromey <tromey@adacore.com>
5584
5585 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
5586 Remove.
5587 (ravenscar_thread_target::extra_thread_info): Remove.
5588 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
5589 defer to target beneath for non-Ravenscar threads.
5590
a8ac85bb
TT
55912020-08-07 Tom Tromey <tromey@adacore.com>
5592
5593 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
5594 get_base_thread_from_ravenscar_task>: Now methods.
5595 <m_cpu_map>: New member.
5596 (ravenscar_thread_target::get_thread_base_cpu): Rename from
5597 ravenscar_get_thread_base_cpu. Check m_cpu_map.
5598 (ravenscar_thread_target::task_is_currently_active): Update.
5599 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
5600 Now a method.
5601 (ravenscar_thread_target::add_active_thread): Put initial thread
5602 into the m_cpu_map.
5603
550ab58d
TT
56042020-08-07 Tom Tromey <tromey@adacore.com>
5605
5606 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
5607 event_ptid.
5608
e9546579
TT
56092020-08-07 Tom Tromey <tromey@adacore.com>
5610
5611 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
5612 runtime_initialized.
5613
3d4470e5
TT
56142020-08-07 Tom Tromey <tromey@adacore.com>
5615
5616 * ravenscar-thread.c (ravenscar_thread_target): Don't call
5617 add_active_thread.
5618 (ravenscar_thread_target::add_active_thread): Now public.
5619 (ravenscar_inferior_created): Call add_active_thread after pushing
5620 the target.
5621
888bdb2b
SM
56222020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
5623
5624 * regcache.c (ptid_regcache_map): New type.
5625 (target_ptid_regcache_map): New type.
5626 (regcaches): Change type to target_ptid_regcache_map.
5627 (get_thread_arch_aspace_regcache): Update to regcaches' new
5628 type.
5629 (regcache_thread_ptid_changed): Likewise.
5630 (registers_changed_ptid): Likewise.
5631 (regcaches_size): Likewise.
5632 (regcaches_test): Update.
5633 (regcache_thread_ptid_changed): Update.
5634 * regcache.h (regcache_up): New type.
5635 * gdbsupport/ptid.h (hash_ptid): New struct.
5636
b161a60d
SM
56372020-08-07 Simon Marchi <simon.marchi@efficios.com>
5638
5639 * observable.h (thread_ptid_changed): Add parameter
5640 `process_stratum_target *`.
5641 * infrun.c (infrun_thread_ptid_changed): Add parameter
5642 `process_stratum_target *` and use it.
5643 (selftests): New namespace.
5644 (infrun_thread_ptid_changed): New function.
5645 (_initialize_infrun): Register selftest.
5646 * regcache.c (regcache_thread_ptid_changed): Add parameter
5647 `process_stratum_target *` and use it.
5648 (regcache_thread_ptid_changed): New function.
5649 (_initialize_regcache): Register selftest.
5650 * thread.c (thread_change_ptid): Pass target to
5651 thread_ptid_changed observable.
5652
d2854d8d
CT
56532020-08-06 Caroline Tice <cmtice@google.com>
5654
fe4c3d43
SM
5655 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
5656 (struct dwp_sections): Update field comments. Add loclists and
5657 rnglists fields.
5658 (struct virtual_v2_dwo_sections): Rename struct to
5659 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
5660 size & offset fields for loclists and rnglists.
5661 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
5662 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
5663 skipping dummy type units.
5664 (create_dwp_hash_table): Update the large comment above the function to
5665 discuss Version 5 DWP files as well, with references. Update all the
5666 version checks in the function to check for version 5 as well. Add new
5667 section at the end to create dwp hash table for version 5.
5668 (create_dwp_v2_section): Rename function to
5669 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
5670 Add V5 to error message text.
5671 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
5672 into calls to create_dwp_v2_or_v5_section.
5673 (create_dwo_unit_in_dwp_v5): New function.
5674 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
5675 check for version2; add else clause to handle version 5.
5676 (open_and_init_dwo_file): Add code to check dwarf version & only call
5677 create_debug_types_hash_table (with sections.types) if version is not 5;
5678 else call create_debug_type_hash_table, with sections.info.
5679 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
5680 version 5.
5681 (dwarf2_locate_v5_dwp_sections): New function.
5682 (open_and_init_dwp_file): Add else-if clause for version 5 to call
5683 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 5684
159ed7d9
SM
56852020-08-06 Simon Marchi <simon.marchi@efficios.com>
5686
5687 * regcache.h (class regcache): Remove friend
5688 registers_changed_ptid.
5689 <regcache_thread_ptid_changed>: Remove.
5690 <regcaches>: Remove.
5691 * regcache.c (regcache::regcaches): Rename to...
5692 (regcaches): ... this. Make static.
5693 (get_thread_arch_aspace_regcache): Update.
5694 (regcache::regcache_thread_ptid_changed): Rename to...
5695 (regcache_thread_ptid_changed): ... this. Update.
5696 (class regcache_access): Remove.
5697 (regcaches_test): Update.
5698 (_initialize_regcache): Update.
5699 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
5700 <forward_list>.
5701
174981ae
SM
57022020-08-06 Simon Marchi <simon.marchi@efficios.com>
5703
5704 * regcache.h (class regcache) <current_regcache>: Rename to...
5705 <regcaches>: ... this. Move doc here.
5706 * regcache.c (regcache::current_regcache) Rename to...
5707 (regcache::regcaches): ... this. Move doc to header.
5708 (get_thread_arch_aspace_regcache): Update.
5709 (regcache::regcache_thread_ptid_changed): Update.
5710 (registers_changed_ptid): Update.
5711 (class regcache_access) <current_regcache_size>: Rename to...
5712 <regcaches_size>: ... this.
5713 (current_regcache_test): Rename to...
5714 (regcaches_test): ... this.
5715 (_initialize_regcache): Update.
5716
ed908db6
VC
57172020-08-06 Victor Collod <vcollod@nvidia.com>
5718
5719 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
5720
b5582ab7
KB
57212020-08-05 Kevin Buettner <kevinb@redhat.com>
5722
5723 * corelow.c (core_target::build_file_mappings): Don't output
5724 null pathname in warning.
5725
ea946b86
SM
57262020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
5727
5728 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
5729 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
5730 gdb.dwarf2/dw2-single-line-discriminators.exp,
5731 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
5732
57d02173
TT
57332020-08-05 Tom Tromey <tromey@adacore.com>
5734
5735 PR rust/26197:
5736 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
5737 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
5738 Fix off-by-one and type size errors in ordinary case.
5739
5555c86d
TV
57402020-08-05 Tom de Vries <tdevries@suse.de>
5741
5742 * gdbtypes.c (type_not_allocated, type_not_associated): Use
5743 "prop->const_val () == 0" instead of "prop->const_val () != 0".
5744
97916bfe
SM
57452020-08-04 Simon Marchi <simon.marchi@efficios.com>
5746
5747 * frame.h (frame_id_p): Return bool.
5748 (frame_id_artificial_p): Return bool.
5749 (frame_id_eq): Return bool.
5750 (has_stack_frames): Return bool.
5751 (get_selected_frame): Fix typo in comment.
5752 (get_frame_pc_if_available): Return bool.
5753 (get_frame_address_in_block_if_available): Return bool.
5754 (get_frame_func_if_available): Return bool.
5755 (read_frame_register_unsigned): Return bool.
5756 (get_frame_register_bytes): Return bool.
5757 (safe_frame_unwind_memory): Return bool.
5758 (deprecated_frame_register_read): Return bool.
5759 (frame_unwinder_is): Return bool.
5760 * frame.c (struct frame_info) <prev_arch::p>: Change type to
5761 bool.
5762 <this_id::p>: Likewise.
5763 <prev_p>: Likewise.
5764 (frame_stash_add): Return bool.
5765 (get_frame_id): Use bool.
5766 (frame_id_build_special) Use bool.
5767 (frame_id_build_unavailable_stack): Use bool.
5768 (frame_id_build): Use bool.
5769 (frame_id_p): Return bool, use true/false instead of 1/0.
5770 (frame_id_artificial_p): Likewise.
5771 (frame_id_eq): Likewise.
5772 (frame_id_inner): Likewise.
5773 (get_frame_func_if_available): Likewise.
5774 (read_frame_register_unsigned): Likewise.
5775 (deprecated_frame_register_read): Likewise.
5776 (get_frame_register_bytes): Likewise.
5777 (has_stack_frames): Likewise.
5778 (inside_main_func): Likewise.
5779 (inside_entry_func): Likewise.
5780 (get_frame_pc_if_available): Likewise.
5781 (get_frame_address_in_block_if_available): Likewise.
5782 (frame_unwinder_is): Likewise.
5783 (safe_frame_unwind_memory): Likewise.
5784 (frame_unwind_arch): Likewise.
5785
fedfee88
SM
57862020-08-04 Simon Marchi <simon.marchi@efficios.com>
5787
5788 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
5789 type to cached_copy_status.
5790 (fprintf_frame): Adjust.
5791 (get_frame_func_if_available): Adjust.
5792 (frame_cleanup_after_sniffer): Adjust.
5793
6cfa9b59
MW
57942020-08-04 Mark Wielaard <mark@klomp.org>
5795
5796 * MAINTAINERS (Write After Approval): Update email address.
5797
66d6346b
SM
57982020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5799
5800 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
5801 dynamic_prop::const_val.
5802
8a6d5e35
SM
58032020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5804
5805 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
5806 dynamic_prop::kind.
5807
51d6067d
SM
58082020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5809
5810 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
5811
b26e2ae7
JM
58122020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
5813
5814 * configure.tgt: Set gdb_sim for bpf-*-* targets.
5815
39791af2
JM
58162020-08-04 Weimin Pan <weimin.pan@oracle.com>
5817 Jose E. Marchesi <jose.marchesi@oracle.com>
5818
5819 * configure.tgt: Add entry for bpf-*-*.
5820 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
5821 (ALLDEPFILES): Add bpf-tdep.c.
5822 * bpf-tdep.c: New file.
5823 * MAINTAINERS: Add bpf target and maintainer.
5824 * NEWS: Mention the support for the new target.
5825
521894aa
TV
58262020-08-04 Tom de Vries <tdevries@suse.de>
5827
5828 PR symtab/23270
5829 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
5830 Error.
5831
5d6356e9
JB
58322020-08-03 John Baldwin <jhb@FreeBSD.org>
5833
5834 * syscalls/freebsd.xml: Regenerate.
5835
0cf82b81
JB
58362020-08-03 John Baldwin <jhb@FreeBSD.org>
5837
5838 * syscalls/update-freebsd.sh: Fix usage and year range.
5839
8f34b746
TV
58402020-08-03 Tom de Vries <tdevries@suse.de>
5841
5842 PR symtab/26333
5843 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
5844 DW_LNE_lo_user/DW_LNE_hi_user range.
5845
5e500d33
SM
58462020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
5847
5848 PR ada/26318
5849 * ada-lang.c (ada_modulus): Return 0 if property is not of const
5850 kind.
5851
78319c15
TBA
58522020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5853
5854 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
5855
4c55e970
TBA
58562020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5857
5858 * breakpoint.c (set_breakpoint_condition): Update the condition
5859 expressions after checking that the input condition string parses
5860 successfully and does not contain junk at the end.
5861
1e620590
TBA
58622020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5863
5864 * breakpoint.c (set_breakpoint_condition): Update the
5865 condition string after parsing the new condition successfully.
5866
c8693053
RO
58672020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5868
5869 * proc-api.c (_STRUCTURED_PROC): Don't define.
5870 * proc-events.c: Likewise.
5871 * proc-flags.c: Likewise.
5872 * proc-why.c: Likewise.
5873 * procfs.c: Likewise.
5874
5875 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
5876 * configure, config.in: Regenerate.
5877
5a99adb8
TV
58782020-07-30 Tom de Vries <tdevries@suse.de>
5879
5880 PR build/26320
5881 * ui-style.h (struct ui_file_style::color): Wrap m_value and
5882 m_red/m_green/m_blue in a union.
5883
8ba83e91
TV
58842020-07-29 Tom de Vries <tdevries@suse.de>
5885
5886 PR tdep/26280
5887 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
5888
f75a0693
AB
58892020-07-28 Tom Tromey <tromey@adacore.com>
5890
5891 PR symtab/26270:
5892 * symtab.h (find_pc_partial_function_sym): Declare.
5893 * cli/cli-cmds.c (disassemble_command): Use
5894 find_pc_partial_function_sym. Check asm_demangle.
5895 * blockframe.c (cache_pc_function_sym): New global.
5896 (cache_pc_function_name): Remove.
5897 (clear_pc_function_cache): Update.
5898 (find_pc_partial_function_sym): New function, from
5899 find_pc_partial_function.
5900 (find_pc_partial_function): Rewrite using
5901 find_pc_partial_function_sym.
5902
16f3242c
TT
59032020-07-28 Tom Tromey <tromey@adacore.com>
5904
5905 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
5906 help. Add usage.
5907
4888741a
TT
59082020-07-28 Tom Tromey <tromey@adacore.com>
5909
5910 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
5911 <DW_OP_GNU_variable_value>: Cast to address type.
5912
4d46f402
KR
59132020-07-28 Kamil Rytarowski <n54@gmx.com>
5914
5915 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
5916 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
5917 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
5918 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
5919 (nbsd_get_siginfo_type): New.
5920 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
5921 (_initialize_nbsd_tdep): New.
5922
d70f978b
L
59232020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5924
5925 PR binutils/26301
5926 * configure: Regenerated.
5927
377170fa
L
59282020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5929
5930 PR binutils/26301
5931 * configure: Regenerated.
5932
43d5901d
AB
59332020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5934
5935 * python/py-frame.c: Remove 'user-regs.h' include.
5936 (frapy_read_register): Rewrite to make use of
5937 gdbpy_parse_register_id.
5938 * python/py-registers.c (gdbpy_parse_register_id): New function,
5939 moved here from python/py-unwind.c. Updated the return type, and
5940 also accepts register descriptor objects.
5941 * python/py-unwind.c: Remove 'user-regs.h' include.
5942 (pyuw_parse_register_id): Moved to python/py-registers.c.
5943 (unwind_infopy_add_saved_register): Update to use
5944 gdbpy_parse_register_id.
5945 (pending_framepy_read_register): Likewise.
5946 * python/python-internal.h (gdbpy_parse_register_id): Declare.
5947
14fa8fb3
AB
59482020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5949
5950 * python/py-registers.c: Add 'user-regs.h' include.
5951 (register_descriptor_iter_find): New function.
5952 (register_descriptor_iterator_object_methods): New static global
5953 methods array.
5954 (register_descriptor_iterator_object_type): Add pointer to methods
5955 array.
5956
ddce1758
JB
59572020-07-27 John Baldwin <jhb@FreeBSD.org>
5958
5959 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
5960 for all architectures on FreeBSD 11.3 and later.
5961
a4089f52
TT
59622020-07-27 Tom Tromey <tromey@adacore.com>
5963
5964 * gcore.h (load_corefile): Don't declare.
5965
95420d30
TV
59662020-07-27 Tom de Vries <tdevries@suse.de>
5967
5968 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
5969 * config.in: Regenerate.
5970 * configure: Regenerate.
5971
05a6b8c2
EZ
59722020-07-26 Eli Zaretskii <eliz@gnu.org>
5973
5974 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
5975 ws2tcpip.h. When checking whether socklen_t type is defined, use
5976 ws2tcpip.h if it is available and sys/socket.h isn't.
5977 * configure: Regenerate.
5978 * config.in: Regenerate.
5979
e79eb02f
AB
59802020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
5981
5982 PR fortran/23051
5983 PR fortran/26139
5984 * valops.c (value_ind): Pass address to
5985 readjust_indirect_value_type.
5986 * value.c (readjust_indirect_value_type): Make parameter
5987 non-const, and add extra address parameter. Resolve original type
5988 before using it.
5989 * value.h (readjust_indirect_value_type): Update function
5990 signature and comment.
5991
876518dd
TV
59922020-07-25 Tom de Vries <tdevries@suse.de>
5993
5994 PR symtab/26243
5995 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
5996 entries.
5997
f6720b1c
AM
59982020-07-24 Aaron Merey <amerey@redhat.com>
5999
6000 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
6001 * configure: Rebuild.
6002
513487e1
KB
60032020-07-23 Kevin Buettner <kevinb@redhat.com>
6004
6005 PR corefiles/26294
6006 * corelow.c (_initialize_corelow): Add period to help text
6007 for "maintenance print core-file-backed-mappings".
6008
e7bc9db8
PA
60092020-07-23 Pedro Alves <pedro@palves.net>
6010
6011 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
6012 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
6013 meanwhile.
6014 * frame.c (frame_cache_generation, get_frame_cache_generation):
6015 New.
6016 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
6017 (get_prev_frame_if_no_cycle): On exception, don't touch
6018 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
6019 * frame.h (get_frame_cache_generation): Declare.
6020
90fcc466
TV
60212020-07-23 Tom de Vries <tdevries@suse.de>
6022
6023 PR tui/26282
6024 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
6025 New default constructor.
6026
78344df7
AB
60272020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
6028
6029 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
6030 exclude non-statement entries.
6031
b089853a
KB
60322020-07-22 Kevin Buettner <kevinb@redhat.com>
6033
6034 * NEWS (New commands): Mention new command
6035 "maintenance print core-file-backed-mappings".
6036
09c2f5d4
KB
60372020-07-22 Kevin Buettner <kevinb@redhat.com>
6038
6039 * corelow.c (gdbcmd.h): Include.
6040 (core_target::info_proc_mappings): New method.
6041 (get_current_core_target): New function.
6042 (maintenance_print_core_file_backed_mappings): New function.
6043 (_initialize_corelow): Add core-file-backed-mappings to
6044 "maint print" commands.
6045
9c5ec5c2 60462020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 6047
9c5ec5c2
KB
6048 * linux-tdep.c (dump_note_entry_p): New function.
6049 (linux_dump_mapping_p_ftype): New typedef.
6050 (linux_find_memory_regions_full): Add new parameter,
6051 should_dump_mapping_p.
6052 (linux_find_memory_regions): Adjust call to
6053 linux_find_memory_regions_full.
6054 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
6055 call to linux_find_memory_regions_full.
6056
db082f59
KB
60572020-07-22 Kevin Buettner <kevinb@redhat.com>
6058
6059 * corelow.c (solist.h, unordered_map): Include.
6060 (class core_target): Add field m_core_file_mappings and
6061 method build_file_mappings.
6062 (core_target::core_target): Call build_file_mappings.
6063 (core_target::~core_target): Free memory associated with
6064 m_core_file_mappings.
6065 (core_target::build_file_mappings): New method.
6066 (core_target::xfer_partial): Use m_core_file_mappings
6067 for memory transfers.
6068 * linux-tdep.c (linux_read_core_file_mappings): New
6069 function.
6070 (linux_core_info_proc_mappings): Rewrite to use
6071 linux_read_core_file_mappings.
6072 (linux_init_abi): Register linux_read_core_file_mappings.
6073
7e183d27
KB
60742020-07-22 Kevin Buettner <kevinb@redhat.com>
6075
6076 * arch-utils.c (default_read_core_file_mappings): New function.
6077 * arch-utils.c (default_read_core_file_mappings): Declare.
6078 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
6079 * gdbarch.h, gdbarch.c: Regenerate.
6080
2735d421
KB
60812020-07-22 Kevin Buettner <kevinb@redhat.com>
6082
6083 PR corefiles/25631
6084 * corelow.c (core_target:xfer_partial): Revise
6085 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
6086 case after first checking the stratum beneath the core
6087 target.
6088 (has_all_memory): Return true.
6089 * target.c (raw_memory_xfer_partial): Revise comment
6090 regarding use of has_all_memory.
6091
e56cb451
KB
60922020-07-22 Kevin Buettner <kevinb@redhat.com>
6093
6094 * exec.h (section_table_xfer_memory): Revise declaration,
6095 replacing section name parameter with an optional callback
6096 predicate.
6097 * exec.c (section_table_xfer_memory): Likewise.
6098 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
6099 of section_table_xfer_memory.
6100
32fa152e
TT
61012020-07-22 Tom Tromey <tromey@adacore.com>
6102
6103 * mi/mi-cmd-stack.c (list_args_or_locals): Use
6104 lookup_symbol_search_name.
6105
a67a1c41
AB
61062020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6107
6108 * python/py-registers.c (gdbpy_register_object_data_init): Remove
6109 redundant local variable.
6110 (gdbpy_get_register_descriptor): Extract descriptor vector as a
6111 reference, not pointer, update code accordingly.
6112
a7b4ff4f
SM
61132020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6114 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6115
6116 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
6117 * jit.c (jit_breakpoint_re_set_internal): Use the
6118 `skip_jit_symbol_lookup` field.
6119
2340e834
SM
61202020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6121 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6122
6123 * jit.c (jit_read_descriptor): Define the descriptor address once,
6124 use twice.
6125 (jit_breakpoint_deleted): Move the declaration of the loop variable
6126 `iter` into the loop header.
6127 (jit_breakpoint_re_set_internal): Move the declaration of the local
6128 variable `objf_data` to the first point of definition.
6129 (jit_event_handler): Move the declaration of local variables
6130 `code_entry`, `entry_addr`, and `objf` to their first point of use.
6131 Rename `objf` to `jited`.
6132
c1072906
SM
61332020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6134
6135 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
6136 Remove.
6137 * jit.c (get_jiter_objfile_data): Update.
6138
c8474dc3
TBA
61392020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6140 Simon Marchi <simon.marchi@polymtl.ca>
6141
6142 * jit.c (struct jit_program_space_data): Remove.
6143 (jit_program_space_key): Remove.
6144 (jiter_objfile_data::~jiter_objfile_data): Remove program space
6145 stuff.
6146 (get_jit_program_space_data): Remove.
6147 (jit_breakpoint_deleted): Iterate on all of the program space's
6148 objfiles.
6149 (jit_inferior_init): Likewise.
6150 (jit_breakpoint_re_set_internal): Likewise. Also change return
6151 type to void.
6152 (jit_breakpoint_re_set): Pass current_program_space to
6153 jit_breakpoint_re_set_internal.
6154
77208eb7
SM
61552020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6156
6157 * jit.h (struct jiter_objfile_data) <cached_code_address,
6158 jit_breakpoint>: Move to here from ...
6159 * jit.c (jit_program_space_data): ... here.
6160 (jiter_objfile_data::~jiter_objfile_data): Update.
6161 (jit_breakpoint_deleted): Update.
6162 (jit_breakpoint_re_set_internal): Update.
6163
8c1c720f
SM
61642020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6165
6166 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
6167 checks.
6168 (jit_read_descriptor): Remove NULL check.
6169 (jit_event_handler): Add an assertion.
6170
0e74a041
SM
61712020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6172
6173 * jit.h (struct jit_objfile_data): Split into...
6174 (struct jiter_objfile_data): ... this ...
6175 (struct jited_objfile_data): ... and this.
6176 * objfiles.h (struct objfile) <jit_data>: Remove.
6177 <jiter_data, jited_data>: New fields.
6178 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
6179 (jiter_objfile_data::~jiter_objfile_data): ... this.
6180 (get_jit_objfile_data): Rename to ...
6181 (get_jiter_objfile_data): ... this.
6182 (add_objfile_entry): Update.
6183 (jit_read_descriptor): Use get_jiter_objfile_data.
6184 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
6185 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
6186 (jit_inferior_exit_hook): Use objfile's jited_data field.
6187
238b5c9f
SM
61882020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6189
6190 * jit.h: Forward-declare `struct minimal_symbol`.
6191 (struct jit_objfile_data): Migrate to here from jit.c; also add a
6192 constructor, destructor, and an objfile* field.
6193 * jit.c (jit_objfile_data): Remove.
6194 (struct jit_objfile_data): Migrate from here to jit.h.
6195 (jit_objfile_data::~jit_objfile_data): New destructor
6196 implementation with code moved from free_objfile_data.
6197 (free_objfile_data): Delete.
6198 (get_jit_objfile_data): Update to use the jit_data field of objfile.
6199 (jit_find_objf_with_entry_addr): Ditto.
6200 (jit_inferior_exit_hook): Ditto.
6201 (_initialize_jit): Remove the call to
6202 register_objfile_data_with_cleanup.
6203 * objfiles.h (struct objfile) <jit_data>: New field.
6204
fe053b9e
TBA
62052020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6206
6207 * jit.h: Forward-declare `struct objfile`.
6208 (jit_event_handler): Add a second parameter, the JITer objfile.
6209 * jit.c (jit_read_descriptor): Change the signature to take the
6210 JITer objfile as an argument instead of the jit_program_space_data.
6211 (jit_inferior_init): Update the call to jit_read_descriptor.
6212 (jit_event_handler): Use the new JITer objfile argument when calling
6213 jit_read_descriptor.
6214 * breakpoint.c (handle_jit_event): Update the call to
6215 jit_event_handler to pass the JITer objfile.
6216
4cec0c66
JB
62172020-07-21 John Baldwin <jhb@FreeBSD.org>
6218
6219 * gdbarch.c: Regenerate.
6220 * gdbarch.h: Regenerate.
6221 * gdbarch.sh (handle_segmentation_fault): Remove method.
6222 * infrun.c (handle_segmentation_fault): Remove.
6223 (print_signal_received_reason): Remove call to
6224 handle_segmentation_fault.
6225
0e42f66a
JB
62262020-07-21 John Baldwin <jhb@FreeBSD.org>
6227
6228 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6229 Rename to sparc64_linux_report_signal_info and add siggnal
6230 argument.
6231 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
6232 instead of sparc64_linux_handle_segmentation_fault.
6233
77bdfeb2
JB
62342020-07-21 John Baldwin <jhb@FreeBSD.org>
6235
6236 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
6237 i386_linux_report_signal_info instead of
6238 i386_linux_handle_segmentation_fault.
6239 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
6240 to i386_linux_report_signal_info and add siggnal argument.
6241 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
6242 of i386_linux_handle_segmentation_fault.
6243 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
6244 to i386_linux_report_signal_info and add siggnal argument.
6245
ad97bfc5
JB
62462020-07-21 John Baldwin <jhb@FreeBSD.org>
6247
6248 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
6249 hook if present.
6250
272bb05c
JB
62512020-07-21 John Baldwin <jhb@FreeBSD.org>
6252
6253 * gdbarch.c: Regenerate.
6254 * gdbarch.h: Regenerate.
6255 * gdbarch.sh (report_signal_info): New method.
6256 * infrun.c (print_signal_received_reason): Invoke gdbarch
6257 report_signal_info hook if present.
6258
baf8791e
AB
62592020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6260
6261 * python/py-registers.c : Add 'unordered_map' include.
6262 (gdbpy_new_reggroup): Renamed to...
6263 (gdbpy_get_reggroup): ...this. Update to only create register
6264 group descriptors when needed.
6265 (gdbpy_reggroup_iter_next): Update.
6266
f7306dac
AB
62672020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6268
6269 * python/py-registers.c (gdbpy_register_object_data): New static
6270 global.
6271 (gdbpy_register_object_data_init): New function.
6272 (gdbpy_new_register_descriptor): Renamed to...
6273 (gdbpy_get_register_descriptor): ...this, and update to reuse
6274 existing register descriptors where possible.
6275 (gdbpy_register_descriptor_iter_next): Update.
6276 (gdbpy_initialize_registers): Register new gdbarch data.
6277
05c309a8
SM
62782020-07-21 Simon Marchi <simon.marchi@efficios.com>
6279
6280 * linux-nat.c (stopped_pids): Make static.
6281
d1fd641e
SM
62822020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
6283
6284 PR ada/26235
6285 * gdbtypes.c (ada_discrete_type_low_bound,
6286 ada_discrete_type_high_bound): Handle undefined bounds.
6287
1de14d77
KR
62882020-07-21 Kamil Rytarowski <n54@gmx.com>
6289
6290 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
6291 declaration.
6292 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
6293 function.
6294
ed810cc7
JB
62952020-07-20 John Baldwin <jhb@FreeBSD.org>
6296
6297 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
6298 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
6299 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
6300 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
6301 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
6302 method.
6303
ae5369e7
LC
63042020-07-20 Ludovic Courtès <ludo@gnu.org>
6305
6306 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
6307 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
6308 which are deprecated in Guile 3.0.
6309 * configure.ac (try_guile_versions): Add "guile-3.0".
6310 * configure (try_guile_versions): Regenerate.
6311 * NEWS: Update entry.
6312
68cf161c
LC
63132020-07-20 Ludovic Courtès <ludo@gnu.org>
6314 Doug Evans <dje@google.com>
6315
6316 PR gdb/21104
6317 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
6318 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
6319 USING_GUILE_BEFORE_2_2.
6320 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
6321 Change type to 'scm_t_port_type *'.
6322 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
6323 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
6324 parameter and honor it. Update callers.
6325 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
6326 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
6327 functions.
6328 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
6329 USING_GUILE_BEFORE_2_2.
6330 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
6331 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
6332 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
6333 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
6334 and 'SCM_PORT_TYPE'.
6335 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
6336 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
6337 (gdbscm_memory_port_read, gdbscm_memory_port_write)
6338 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
6339 [!USING_GUILE_BEFORE_2_2]: New functions.
6340 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
6341 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
6342 'gdbscm_memory_port_read'.
6343 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
6344 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
6345 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
6346 function.
6347 (ioscm_init_memory_port): Remove.
6348 (ioscm_init_memory_port_stream): New function
6349 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
6350 function.
6351 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6352 Return scm_from_uint (0).
6353 (gdbscm_set_memory_port_read_buffer_size_x)
6354 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6355 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6356 Return scm_from_uint (0).
6357 (gdbscm_set_memory_port_write_buffer_size_x)
6358 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6359 * configure.ac (try_guile_versions): Add "guile-2.2".
6360 * configure: Regenerate.
6361 * NEWS: Add entry.
6362
aee91db3
TT
63632020-07-18 Tom Tromey <tom@tromey.com>
6364
6365 * linux-nat.c (linux_multi_process): Remove.
6366 (linux_nat_target::supports_multi_process): Return true.
6367
0e267416
AB
63682020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6369
6370 * arch/riscv.c (riscv_tdesc_cache): Change map type.
6371 (riscv_lookup_target_description): Return pointer out of
6372 unique_ptr.
6373 * target-descriptions.c (allocate_target_description): Add
6374 comment.
6375 (target_desc_deleter::operator()): Likewise.
6376 * target-descriptions.h (struct target_desc_deleter): Moved to
6377 gdbsupport/tdesc.h.
6378 (target_desc_up): Likewise.
6379
f80c8ec4
TT
63802020-07-17 Tom Tromey <tromey@adacore.com>
6381
6382 * linux-nat.c (linux_nat_target::supports_non_stop)
6383 (linux_nat_target::always_non_stop_p): Use "true".
6384 (linux_nat_target::supports_disable_randomization): Use "true" and
6385 "false".
6386
d0ce17d8
CT
63872020-07-16 Caroline Tice <cmtice@google.com>
6388
6389 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
6390 (RNGLIST_HEADER_SIZE64): New constant definition.
6391 (struct dwop_section_names): Add rnglists_dwo.
6392 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
6393 (struct loclist_header): Rename to 'loclists_rnglists_header'.
6394 (struct dwo_sections): Add rnglists field.
6395 (read_attribut_reprocess): Add tag parameter.
6396 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
6397 (cu_debug_rnglists_section): New function (decl & definition).
6398 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
6399 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
6400 die whose range is being checked; get rnglist section from
6401 cu_debug_rnglists_section, to get from either objfile or dwo file as
6402 appropriate. Add cases for DW_RLE_base_addressx,
6403 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
6404 the base address to DW_RLE_offset_pairs (not to all ranges), moving
6405 test inside if-condition and updating complaint message.
6406 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
6407 dwarf2_rnglists_process.
6408 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
6409 dwarf2_ranges_process.
6410 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
6411 need_ranges_base and update comment appropriately. Also pass die tag
6412 to dwarf2_ranges_read.
6413 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
6414 need_ranges_base and update comment appropriately. Also pass die tag
6415 to dwarf2_ranges_process.
6416 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
6417 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
6418 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
6419 need_ranges_base and update comment appropriately. Also pass die tag
6420 to read_attribute_reprocess and dwarf2_ranges_read.
6421 (read_loclist_header): Rename function to read_loclists_rnglists_header,
6422 and update function comment appropriately.
6423 (read_loclist_index): Call read_loclists_rnglists_header instead of
6424 read_loclist_header.
6425 (read_rnglist_index): New function.
6426 (read_attribute_reprocess): Add tag parameter. Add code for
6427 DW_FORM_rnglistx, passing tag to read_rnglist_index.
6428 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
6429
3dcc261c
AB
64302020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
6431
6432 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
6433 being resolved.
6434
ccb9eba6
AB
64352020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
6436
6437 * arch-utils.c (show_architecture): Update formatting of messages.
6438
cf88be68
SM
64392020-07-12 Simon Marchi <simon.marchi@efficios.com>
6440
6441 * gdbtypes.h (struct type) <bounds>: Handle array and string
6442 types.
6443 * ada-lang.c (assign_aggregate): Use type::bounds on
6444 array/string type.
6445 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
6446 * c-varobj.c (c_number_of_children): Likewise.
6447 (c_describe_child): Likewise.
6448 * eval.c (evaluate_subexp_for_sizeof): Likewise.
6449 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
6450 (f_type_print_base): Likewise.
6451 * f-valprint.c (f77_array_offset_tbl): Likewise.
6452 (f77_get_upperbound): Likewise.
6453 (f77_print_array_1): Likewise.
6454 * guile/scm-type.c (gdbscm_type_range): Likewise.
6455 * m2-typeprint.c (m2_array): Likewise.
6456 (m2_is_long_set_of_type): Likewise.
6457 * m2-valprint.c (get_long_set_bounds): Likewise.
6458 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
6459 * python/py-type.c (typy_range): Likewise.
6460 * rust-lang.c (rust_internal_print_type): Likewise.
6461 * type-stack.c (type_stack::follow_types): Likewise.
6462 * valarith.c (value_subscripted_rvalue): Likewise.
6463 * valops.c (value_cast): Likewise.
6464
509971ae
SM
64652020-07-12 Simon Marchi <simon.marchi@efficios.com>
6466
6467 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
6468 callers to use the equivalent accessor methods.
6469
107406b7
SM
64702020-07-12 Simon Marchi <simon.marchi@efficios.com>
6471
6472 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
6473 (struct type) <bit_stride>: New method.
6474 (TYPE_BIT_STRIDE): Remove.
6475 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
6476
bb789949
SM
64772020-07-12 Simon Marchi <simon.marchi@efficios.com>
6478
6479 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
6480 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
6481 callers to use the equivalent accessor methods instead.
6482
39498edb
SM
64832020-07-12 Simon Marchi <simon.marchi@efficios.com>
6484
6485 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
6486 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
6487 callers to use the equivalent accessor methods instead.
6488
3b606f38
SM
64892020-07-12 Simon Marchi <simon.marchi@efficios.com>
6490
6491 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
6492 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
6493 to use dynamic_prop::kind.
6494
064d9cb9
SM
64952020-07-12 Simon Marchi <simon.marchi@efficios.com>
6496
6497 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
6498 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
6499 to get the bound property's kind and check against
6500 PROP_UNDEFINED.
6501
5537ddd0
SM
65022020-07-12 Simon Marchi <simon.marchi@efficios.com>
6503
6504 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
6505 all callers to use type::range_bounds followed by
6506 dynamic_prop::{low,high}.
6507
8c2e4e06
SM
65082020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6509
6510 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
6511 const_val, set_const_val, baton, set_locexpr, set_loclist,
6512 set_addr_offset, variant_parts, set_variant_parts,
6513 original_type, set_original_type>: New methods.
6514 <kind>: Rename to...
6515 <m_kind>: ... this. Update all users to use the new methods
6516 instead.
6517 <data>: Rename to...
6518 <m_data>: ... this. Update all users to use the new methods
6519 instead.
6520
7c6f2712
SM
65212020-07-12 Simon Marchi <simon.marchi@efficios.com>
6522
6523 * gdbtypes.c (get_discrete_bounds): Return failure if
6524 the range type's bounds are not both defined and constant
6525 values.
6526 (get_array_bounds): Update comment. Remove undefined bound check.
6527
599088e3
SM
65282020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6529
6530 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
6531 the type::bounds method directly.
6532
c4dfcb36
SM
65332020-07-12 Simon Marchi <simon.marchi@efficios.com>
6534
6535 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
6536 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
6537 are used to set the range type's bounds to use set_bounds.
6538
0a278aa7
PW
65392020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6540
6541 * exec.c (_initialize_exec): Update exec-file-mismatch help.
6542
cce20f10
PA
65432020-07-10 Pedro Alves <pedro@palves.net>
6544
6545 * gdbthread.h (inferior_ref): Define.
6546 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
6547 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
6548 * thread.c
6549 (scoped_restore_current_thread::restore):
6550 Adjust to gdb::ref_ptr.
6551 (scoped_restore_current_thread::~scoped_restore_current_thread):
6552 Remove manual decref handling.
6553 (scoped_restore_current_thread::scoped_restore_current_thread):
6554 Adjust to use
6555 inferior_ref::new_reference/thread_info_ref::new_reference.
6556 Incref the thread before calling get_frame_id instead of after.
6557 Let TARGET_CLOSE_ERROR propagate.
6558
6d7aa592
PA
65592020-07-10 Pedro Alves <pedro@palves.net>
6560
6561 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
6562 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
6563 NOT_AVAILABLE_ERROR.
6564 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
6565 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
6566
b3e3a4c1
SM
65672020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6568 Pedro Alves <pedro@palves.net>
6569
6570 PR gdb/26199
6571 * infrun.c (threads_are_resumed_pending_p): Delete.
6572 (do_target_wait): Remove threads_are_executing and
6573 threads_are_resumed_pending_p checks from the inferior_matches
6574 lambda. Update comments.
6575
d6cc5d98
PA
65762020-07-10 Pedro Alves <pedro@palves.net>
6577
6578 PR gdb/26199
6579 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
6580 executing threads.
6581
7d3badc6
PA
65822020-07-10 Pedro Alves <pedro@palves.net>
6583
6584 PR gdb/26199
6585 * infrun.c (handle_no_resumed): Handle multiple targets.
6586
42bd97a6
PA
65872020-07-10 Pedro Alves <pedro@palves.net>
6588
6589 PR gdb/26199
6590 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
6591 target_is_async_p.
6592
43667cc6
PA
65932020-07-10 Pedro Alves <pedro@palves.net>
6594
6595 PR gdb/26199
6596 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
6597 threads, not all threads.
6598
96118d11
PA
65992020-07-10 Pedro Alves <pedro@palves.net>
6600
6601 PR gdb/26199
6602 * remote.c (remote_target::open_1): Pass remote target pointer as
6603 data to create_async_event_handler.
6604 (remote_async_inferior_event_handler): Mark async event handler
6605 before returning if the remote target still has either pending
6606 events or unacknowledged notifications.
6607
54904d81
JB
66082020-07-10 John Baldwin <jhb@FreeBSD.org>
6609
6610 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
6611 declaration.
6612 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
6613 function.
6614
f37e5866
JB
66152020-07-09 John Baldwin <jhb@FreeBSD.org>
6616
6617 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
6618 inferior_ptid.
6619
fc238d4a
JB
66202020-07-09 John Baldwin <jhb@FreeBSD.org>
6621
6622 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
6623 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
6624 AT_FREEBSD_PS_STRINGS.
6625
6e2469ff
HD
66262020-07-08 Hannes Domani <ssbssa@yahoo.de>
6627
6628 * auto-load.c (auto_load_objfile_script_1): Convert drive part
6629 of debugfile path on Windows.
6630
d1076c41
JB
66312020-07-08 John Baldwin <jhb@FreeBSD.org>
6632
6633 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
6634 argument to 'data'.
6635
15f3b077
TT
66362020-07-08 Tom Tromey <tromey@adacore.com>
6637
6638 * ada-lang.c (ada_exception_message_1): Use read_memory.
6639
9fc501fd
AB
66402020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6641
6642 PR python/22748
6643 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
6644 special handling for inline frames.
6645 * findvar.c (value_of_register_lazy): Skip inline frames when
6646 creating lazy register values.
6647 * frame.c (frame_id_computed_p): Delete definition.
6648 * frame.h (frame_id_computed_p): Delete declaration.
6649
64cb3757
AB
66502020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6651
6652 * NEWS: Mention additions to Python API.
6653 * python/py-arch.c (archpy_register_groups): New function.
6654 (arch_object_methods): Add 'register_groups' method.
6655 * python/py-registers.c (reggroup_iterator_object): New struct.
6656 (reggroup_object): New struct.
6657 (gdbpy_new_reggroup): New function.
6658 (gdbpy_reggroup_to_string): New function.
6659 (gdbpy_reggroup_name): New function.
6660 (gdbpy_reggroup_iter): New function.
6661 (gdbpy_reggroup_iter_next): New function.
6662 (gdbpy_new_reggroup_iterator): New function
6663 (gdbpy_initialize_registers): Register new types.
6664 (reggroup_iterator_object_type): Define new Python type.
6665 (gdbpy_reggroup_getset): New static global.
6666 (reggroup_object_type): Define new Python type.
6667 * python/python-internal.h
6668
0f767f94
AB
66692020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6670
6671 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
6672 * python/py-arch.c (archpy_registers): New function.
6673 (arch_object_methods): Add 'registers' method.
6674 * python/py-registers.c: New file.
6675 * python/python-internal.h
6676 (gdbpy_new_register_descriptor_iterator): Declare.
6677 (gdbpy_initialize_registers): Declare.
6678 * python/python.c (do_start_initialization): Call
6679 gdbpy_initialize_registers.
6680 * NEWS: Mention additions to the Python API.
6681
87dbc774
AB
66822020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6683
6684 * NEWS: Mention new Python API method.
6685 * python/py-unwind.c (pending_framepy_architecture): New function.
6686 (pending_frame_object_methods): Add architecture method.
6687
3bc98c0c
AB
66882020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6689
6690 * gdbarch.c: Regenerate.
6691 * gdbarch.h: Regenerate.
6692 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
6693 (gdbarch_data): Use internal_error for the case where
6694 deprecated_set_gdbarch_data was originally needed.
6695 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
6696 and use passed in obstack.
6697 (libunwind_frame_set_descr): Should no longer get back NULL from
6698 gdbarch_data.
6699 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
6700 type.
6701 * user-regs.c (user_regs_init): Update parameters, and use passed
6702 in obstack.
6703 (user_reg_add): Should no longer get back NULL from gdbarch_data.
6704 (_initialize_user_regs): Register as a pre-init gdbarch data type.
6705
d8cc8af6
TV
67062020-07-06 Tom de Vries <tdevries@suse.de>
6707
6708 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
6709 End-Of-Sequence in lte_is_less_than.
6710 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
6711 "gdb: Don't reorder line table entries too much when sorting".
6712
947f7597
TV
67132020-07-06 Tom de Vries <tdevries@suse.de>
6714
6715 PR tui/26205
6716 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
6717
1e7c1b22
TV
67182020-07-05 Tom de Vries <tdevries@suse.de>
6719
6720 PR build/26187
6721 * inferior.h (struct infcall_suspend_state_deleter): If available, use
6722 std::uncaught_exceptions instead of deprecated
6723 std::uncaught_exception.
6724
a36158ec
SM
67252020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6726
6727 * macroexp.h (macro_stringify): Return
6728 gdb::unique_xmalloc_ptr<char>.
6729 * macroexp.c (macro_stringify): Likewise.
6730 * macrotab.c (fixup_definition): Update.
6731
14d960c8
SM
67322020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6733
6734 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
6735 (lex_one_token): Update.
6736 * macroexp.c (struct macro_buffer) <release>: Return
6737 gdb::unique_xmalloc_ptr<char>.
6738 (macro_stringify): Update.
6739 (macro_expand): Update.
6740 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
6741 * macroexp.h (macro_expand_next): Likewise.
6742
211d5b1c
SM
67432020-07-02 Simon Marchi <simon.marchi@efficios.com>
6744
6745 * macroexp.h (macro_lookup_ftype): Remove.
6746 (macro_expand, macro_expand_once, macro_expand_next): Remove
6747 lookup function parameters, add scope parameter.
6748 * macroexp.c (scan, substitute_args, expand, maybe_expand,
6749 macro_expand, macro_expand_once, macro_expand_next): Likewise.
6750 * macroscope.h (standard_macro_lookup): Change parameter type
6751 to macro_scope.
6752 * macroscope.c (standard_macro_lookup): Likewise.
6753 * c-exp.y (lex_one_token): Update.
6754 * macrocmd.c (macro_expand_command): Likewise.
6755 (macro_expand_once_command): Likewise.
6756
b1a35af2
SM
67572020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6758
6759 * inf-loop.c (inferior_event_handler): Remove client_data param.
6760 * inf-loop.h (inferior_event_handler): Likewise.
6761 * infcmd.c (step_1): Adjust.
6762 * infrun.c (proceed): Adjust.
6763 (fetch_inferior_event): Remove client_data param.
6764 (infrun_async_inferior_event_handler): Adjust.
6765 * infrun.h (fetch_inferior_event): Remove `void *` param.
6766 * linux-nat.c (handle_target_event): Adjust.
6767 * record-btrace.c (record_btrace_handle_async_inferior_event):
6768 Adjust.
6769 * record-full.c (record_full_async_inferior_event_handler):
6770 Adjust.
6771 * remote.c (remote_async_inferior_event_handler): Adjust.
6772
1cdf9e33
TT
67732020-07-01 Tom Tromey <tom@tromey.com>
6774
6775 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
6776 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
6777
32c1e210
TT
67782020-07-01 Tom Tromey <tom@tromey.com>
6779
6780 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
6781 tui_gen_win_info.
6782 (tui_win_info::make_window): Merge with
6783 tui_gen_win_info::make_window.
6784 (tui_win_info::make_visible): Move from tui_gen_win_info.
6785 * tui/tui-win.c (tui_win_info::max_width): Move from
6786 tui_gen_win_info.
6787 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
6788 type.
6789 <window_factory>: Likewise.
6790 * tui/tui-layout.c (tui_win_info::resize): Move from
6791 tui_gen_win_info.
6792 (make_standard_window): Change return type.
6793 (get_locator_window, tui_get_window_by_name): Likewise.
6794 (tui_layout_window::apply): Remove a cast.
6795 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
6796 (struct tui_win_info): Merge with tui_gen_win_info.
6797 (struct tui_gen_win_info): Remove.
6798
a30cb6da
TT
67992020-07-01 Tom Tromey <tom@tromey.com>
6800
6801 * tui/tui-stack.h (struct tui_locator_window): Derive from
6802 tui_win_info.
6803 <do_scroll_horizontal, do_scroll_vertical>: New methods.
6804 <can_box>: New method.
6805
1eb2161f
TT
68062020-07-01 Tom Tromey <tom@tromey.com>
6807
6808 * tui/tui-stack.h (struct tui_locator_window): Remove body.
6809
7134f2eb
TT
68102020-07-01 Tom Tromey <tom@tromey.com>
6811
6812 * tui/tui-regs.c (tui_data_window::display_registers_from)
6813 (tui_data_window::display_registers_from)
6814 (tui_data_window::first_data_item_displayed)
6815 (tui_data_window::delete_data_content_windows): Update.
6816 (tui_data_window::refresh_window, tui_data_window::no_refresh):
6817 Remove.
6818 (tui_data_window::check_register_values): Update.
6819 (tui_data_item_window::rerender): Add parameters. Update.
6820 (tui_data_item_window::refresh_window): Remove.
6821 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
6822 virtual.
6823 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
6824 tui_gen_win_info.
6825 <refresh_window, max_height, min_height>: Remove.
6826 <rerender>: Add parameters.
6827 <x, y, visible>: New members.
6828 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
6829 <m_item_width>: New member.
6830
22b7b041
TT
68312020-07-01 Tom Tromey <tom@tromey.com>
6832
6833 * tui/tui-regs.c (tui_data_window::show_register_group)
6834 (tui_data_window::check_register_values): Update.
6835 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
6836 from item_no.
6837
c9753adb
TT
68382020-07-01 Tom Tromey <tom@tromey.com>
6839
6840 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
6841 useless "if".
6842
9ab26b4a
TT
68432020-07-01 Tom Tromey <tom@tromey.com>
6844
6845 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
6846 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
6847
e555083f
TT
68482020-07-01 Tom Tromey <tom@tromey.com>
6849
6850 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
6851 * tui/tui-winsource.h (enum tui_line_or_address_kind)
6852 (struct tui_line_or_address): Move from tui-data.h.
6853 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
6854 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
6855 (tui_cmd_window, tui_source_window_base, tui_source_window)
6856 (tui_disasm_window): Don't declare.
6857 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
6858 to tui-winsource.h.
6859 (SINGLE_KEY): Move to tui-stack.c.
6860
7a02bab7
TT
68612020-07-01 Tom Tromey <tom@tromey.com>
6862
6863 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
6864 std::string.
6865 * tui/tui-regs.c (class tab_expansion_file): New.
6866 (tab_expansion_file::write): New method.
6867 (tui_register_format): Change return type. Use
6868 tab_expansion_file.
6869 (tui_get_register, tui_data_window::display_registers_from)
6870 (tui_data_item_window::rerender): Update.
6871 * tui/tui-io.h (tui_expand_tabs): Don't declare.
6872 * tui/tui-io.c (tui_expand_tabs): Remove.
6873
ea68593b
TT
68742020-07-01 Tom Tromey <tom@tromey.com>
6875
6876 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
6877
a8caed5d
FS
68782020-07-01 Fangrui Song <maskray@google.com>
6879
6880 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
6881
9cdf9820
AKS
68822020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6883
6884 * dwarf2/read.c (set_die_type): Removed conditions to restrict
6885 forms for DW_AT_associated and DW_AT_allocated attributes,
6886 which is already checked in function attr_to_dynamic_prop.
6887
a1520ad8
TT
68882020-06-30 Tom Tromey <tromey@adacore.com>
6889
6890 * dwarf2/read.c (quirk_rust_enum): Correctly call
6891 alloc_rust_variant for default-less enum.
6892
5ac58899
TT
68932020-06-30 Tom Tromey <tromey@adacore.com>
6894
6895 PR build/26183:
6896 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
6897 gdb::to_string.
6898
19b187a9
SM
68992020-06-29 Simon Marchi <simon.marchi@efficios.com>
6900
6901 * gdbarch.sh (displaced_step_copy_insn): Update doc.
6902 * gdbarch.h: Re-generate.
6903
cd4c4c07
TT
69042020-06-28 Tom Tromey <tom@tromey.com>
6905
6906 * command.h (cmd_types): Remove.
6907 (cmd_type): Don't declare.
6908 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
6909 typedef.
6910 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
6911 * cli/cli-decode.c (cmd_type): Remove.
6912
05779d57
PA
69132020-06-27 Pedro Alves <palves@redhat.com>
6914
6915 * fork-child.c (prefork_hook): Adjust.
6916 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
6917 Delete.
6918 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
6919 * inferior.c (inferior::set_tty, inferior::tty): New methods.
6920 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
6921 Remove declarations.
6922 (struct inferior) <set_tty, tty>: New methods.
6923 (struct inferior) <terminal>: Rename to ...
6924 (struct inferior) <m_terminal>: ... this and make private.
6925 * main.c (captured_main_1): Adjust.
6926 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
6927 (mi_cmd_inferior_tty_show): Adjust.
6928 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
6929 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
6930
1776e3e5
NA
69312020-06-26 Nick Alcock <nick.alcock@oracle.com>
6932
6933 * configure.ac: Add --enable-libctf: handle --disable-static
6934 properly.
6935 * acinclude.m4: sinclude ../config/enable.m4.
6936 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
6937 (LIBCTF): Substitute in.
6938 (CTF_DEPS): New, likewise.
6939 (CLIBS): libctf needs symbols from libbfd: move earlier.
6940 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
6941 flags.
6942 * ctfread.c: Surround in ENABLE_LIBCTF.
6943 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
6944 * configure: Regenerate.
6945 * config.in: Likewise.
6946
58373b80
SM
69472020-06-25 Simon Marchi <simon.marchi@efficios.com>
6948
6949 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
6950
277474ee
SM
69512020-06-25 Simon Marchi <simon.marchi@efficios.com>
6952
6953 * inferior.h (struct inferior) <terminal>: Change type to
6954 gdb::unique_xmalloc_ptr<char>.
6955 * inferior.c (inferior::~inferior): Don't free inf->terminal.
6956 * infcmd.c (set_inferior_io_terminal): Don't free terminal
6957 field, adjust to unique pointer.
6958 (get_inferior_io_terminal): Adjust to unique pointer.
6959
6d74da72
AB
69602020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6961
6962 * riscv-tdep.c (riscv_print_registers_info): Loop over all
6963 registers, not just the known core set of registers.
6964
2e52d038
AB
69652020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6966
6967 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
6968 fflags, frm, and fcsr registers.
6969 (riscv_register_reggroup_p): Remove unknown CSRs from save and
6970 restore groups.
6971 (riscv_tdesc_unknown_reg): New function.
6972 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
6973 tdesc_use_registers.
6974 * riscv-tdep.h (struct gdbarch_tdep): Add
6975 unknown_csrs_first_regnum, unknown_csrs_count,
6976 duplicate_fflags_regnum, duplicate_frm_regnum, and
6977 duplicate_fcsr_regnum fields.
6978
be64fd07
AB
69792020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6980
6981 * target-descriptions.c (tdesc_use_registers): Add new parameter a
6982 callback, use the callback (when not null) to help number unknown
6983 registers.
6984 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
6985 (tdesc_use_registers): Add extra parameter to declaration.
6986
3b9fce96
AB
69872020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6988
6989 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
6990 in the file.
6991 (class riscv_pending_register_alias): Likewise.
6992 (riscv_register_feature::register_info): Change 'required_p' field
6993 to 'required', and change its type. Add 'check' member function.
6994 (riscv_register_feature::register_info::check): Define new member
6995 function.
6996 (riscv_xreg_feature): Change initialisation of 'required' field.
6997 (riscv_freg_feature): Likewise.
6998 (riscv_virtual_feature): Likewise.
6999 (riscv_csr_feature): Likewise.
7000 (riscv_check_tdesc_feature): Take extra parameter, the csr
7001 tdesc_feature, rewrite the function to use the new
7002 riscv_register_feature::register_info::check function.
7003 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
7004
865bad26
AB
70052020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7006
7007 * features/Makefile: Remove all references to the deleted files
7008 below.
7009 * features/riscv/32bit-csr.c: Deleted.
7010 * features/riscv/32bit-csr.xml: Deleted.
7011 * features/riscv/64bit-csr.c: Deleted.
7012 * features/riscv/64bit-csr.xml: Deleted.
7013 * features/riscv/rebuild-csr-xml.sh: Deleted.
7014
ed69cbc8
AB
70152020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7016
7017 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
7018 whitespace error for declaration of names member variable.
7019 (struct riscv_register_feature): Add new prefer_first_name member
7020 variable, and fix whitespace error in declaration of registers.
7021 (riscv_xreg_feature): Initialize prefer_first_name field.
7022 (riscv_freg_feature): Likewise.
7023 (riscv_virtual_feature): Likewise.
7024 (riscv_csr_feature): Likewise.
7025 (riscv_register_name): Expand on comments. Remove register name
7026 modifications for CSR and virtual registers.
7027
4445e8f5
AB
70282020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7029
7030 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
7031 errors.
7032
767a879e
AB
70332020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7034
7035 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
7036 riscv-opc.h.
7037 (class riscv_pending_register_alias): New class.
7038 (riscv_check_tdesc_feature): Take vector of pending aliases and
7039 populate it as appropriate.
7040 (riscv_setup_register_aliases): Delete.
7041 (riscv_gdbarch_init): Create vector of pending aliases and pass it
7042 to riscv_check_tdesc_feature in all cases. Use the vector to
7043 create the register aliases.
7044
bb6e55f3
RO
70452020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7046
7047 * sol2-tdep.c (sol2_static_transform_name): Remove.
7048 (sol2_init_abi): Don't register it.
7049 * gdbarch.sh (static_transform_name): Remove.
7050 * gdbarch.c, gdbarch.h: Regenerate.
7051
7052 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
7053 gdbarch_static_transform_name.
7054 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
7055 * stabsread.c (define_symbol) <'X'>: Remove.
7056 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
7057 handling.
7058 <'V'>: Likewise.
7059 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
7060 <'S'>: Remove call to gdbarch_static_transform_name.
7061
c6d36836
RO
70622020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7063
7064 * procfs.c (procfs_pre_trace): New function.
7065 (procfs_target::create_inferior): Pass it to fork_inferior.
7066
a7e6196b
RO
70672020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7068
7069 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
7070 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
7071 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
7072 sol2-tdep.o, sparc-sol2-tdep.o.
7073 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
7074 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
7075 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
7076 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
7077
d412e696
RO
70782020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7079
7080 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
7081 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
7082 Call sol2_init_abi.
7083 Remove calls to set_gdbarch_skip_solib_resolver,
7084 set_gdbarch_core_pid_to_str.
7085 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
7086 (i386_sol2_static_transform_name): Remove.
7087 (i386_sol2_init_abi): Call sol2_init_abi.
7088 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7089 set_gdbarch_static_transform_name,
7090 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7091 Use sol2_sigtramp_p.
7092 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
7093 (sol2_sigtramp_p): New function.
7094 (sol2_static_transform_name): New function.
7095 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
7096 (sol2_init_abi): New function.
7097 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
7098 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
7099 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
7100 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
7101 (sparc_sol2_static_transform_name): Remove.
7102 (sparc32_sol2_init_abi): Call sol2_init_abi.
7103 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7104 set_gdbarch_static_transform_name,
7105 set_gdbarch_skip_solib_resolver,
7106 set_gdbarch_core_pid_to_str.
7107 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
7108 (sparc_sol2_static_transform_name): Remove
7109 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
7110 call sol2_sigtramp_p.
7111 (sparc64_sol2_init_abi): Call sol2_init_abi.
7112 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7113 set_gdbarch_static_transform_name,
7114 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7115
a8654e7d
PW
71162020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7117
7118 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
7119 * exec.c (validate_exec_file): If from_tty, set both
7120 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
7121 * symfile.c (symbol_file_add_with_addrs): if always_confirm
7122 and from_tty, unconditionally ask a confirmation.
7123
caa7fd04
AB
71242020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7125
7126 * target-descriptions.c (tdesc_architecture_name): Protect against
7127 NULL pointer dereference.
7128 (maint_print_xml_tdesc_cmd): New function.
7129 (_initialize_target_descriptions): Register new 'maint print
7130 xml-tdesc' command and give it the filename completer.
7131 * NEWS: Mention new 'maint print xml-tdesc' command.
7132
fbf42f4e
AB
71332020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7134
7135 * target-descriptions.c (class tdesc_compatible_info): New class.
7136 (struct target_desc): Change type of compatible vector.
7137 (tdesc_compatible_p): Update for change in type of
7138 target_desc::compatible.
7139 (tdesc_compatible_info_list): New function.
7140 (tdesc_compatible_info_arch_name): New function.
7141 (tdesc_add_compatible): Update for change in type of
7142 target_desc::compatible.
7143 (print_c_tdesc::visit_pre): Likewise.
7144
20821f4e
AB
71452020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7146
7147 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
7148 whitespace to underscore.
7149 (maint_print_c_tdesc_cmd): Use fake filename for target
7150 descriptions that came from the target.
7151 (_initialize_target_descriptions): Add filename command completion
7152 for 'maint print c-tdesc'.
7153
1fb5ee62
SM
71542020-06-23 Simon Marchi <simon.marchi@efficios.com>
7155
7156 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
7157 lines.
7158
fc3ecb3e
SM
71592020-06-23 Simon Marchi <simon.marchi@efficios.com>
7160
7161 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
7162 lines.
7163 (dwarf2_find_location_expression): Likewise.
7164 (call_site_parameter_matches): Likewise.
7165 (dwarf2_compile_expr_to_ax): Likewise.
7166 (disassemble_dwarf_expression): Likewise.
7167 (loclist_describe_location): Likewise.
7168
236ef034
PA
71692020-06-23 Pedro Alves <palves@redhat.com>
7170
7171 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
7172 progspace-and-thread.h. Include scoped-mock-context.h instead.
7173 (register_to_value_test): Use scoped_mock_context.
7174 * regcache.c: Include "scoped-mock-context.h".
7175 (cooked_read_test): Don't error out if a target is already pushed.
7176 Use scoped_mock_context. Adjust.
7177 * scoped-mock-context.h: New file.
7178
39e7ecca
AB
71792020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7180
7181 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
7182 initializer.
7183 (ada_language::is_string_type_p): New member function.
7184 * c-lang.c (c_language_data): Delete la_is_string_type_p
7185 initializer.
7186 (cplus_language_data): Likewise.
7187 (asm_language_data): Likewise.
7188 (minimal_language_data): Likewise.
7189 * d-lang.c (d_language_data): Likewise.
7190 * f-lang.c (f_is_string_type_p): Delete function, implementation
7191 moved to f_language::is_string_type_p.
7192 (f_language_data): Delete la_is_string_type_p initializer.
7193 (f_language::is_string_type_p): New member function,
7194 implementation from f_is_string_type_p.
7195 * go-lang.c (go_is_string_type_p): Delete function, implementation
7196 moved to go_language::is_string_type_p.
7197 (go_language_data): Delete la_is_string_type_p initializer.
7198 (go_language::is_string_type_p): New member function,
7199 implementation from go_is_string_type_p.
7200 * language.c (language_defn::is_string_type_p): Define new member
7201 function.
7202 (default_is_string_type_p): Make static, add comment copied from
7203 header file.
7204 (unknown_language_data): Delete la_is_string_type_p initializer.
7205 (unknown_language::is_string_type_p): New member function.
7206 (auto_language_data): Delete la_is_string_type_p initializer.
7207 (auto_language::is_string_type_p): New member function.
7208 * language.h (language_data): Delete la_is_string_type_p field.
7209 (language_defn::is_string_type_p): Declare new function.
7210 (default_is_string_type_p): Delete desclaration, move comment to
7211 definition.
7212 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
7213 moved to m2_language::is_string_type_p.
7214 (m2_language_data): Delete la_is_string_type_p initializer.
7215 (m2_language::is_string_type_p): New member function,
7216 implementation from m2_is_string_type_p.
7217 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
7218 initializer.
7219 * opencl-lang.c (opencl_language_data): Likewise.
7220 * p-lang.c (pascal_is_string_type_p): Delete function,
7221 implementation moved to pascal_language::is_string_type_p.
7222 (pascal_language_data): Delete la_is_string_type_p initializer.
7223 (pascal_language::is_string_type_p): New member function,
7224 implementation from pascal_is_string_type_p.
7225 * rust-lang.c (rust_is_string_type_p): Delete function,
7226 implementation moved to rust_language::is_string_type_p.
7227 (rust_language_data): Delete la_is_string_type_p initializer.
7228 (rust_language::is_string_type_p): New member function,
7229 implementation from rust_is_string_type_p.
7230 * valprint.c (val_print_scalar_or_string_type_p): Update call to
7231 is_string_type_p.
7232
4ffc13fb
AB
72332020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7234
7235 * ada-lang.c (ada_language_data): Delete la_print_typedef
7236 initializer.
7237 (ada_language::print_typedef): New member function.
7238 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
7239 (cplus_language_data): Likewise.
7240 (asm_language_data): Likewise.
7241 (minimal_language_data): Likewise.
7242 * d-lang.c (d_language_data): Likewise.
7243 * f-lang.c (f_language_data): Likewise.
7244 (f_language::print_typedef): New member function.
7245 * go-lang.c (go_language_data): Delete la_print_typedef
7246 initializer.
7247 * language.c (language_defn::print_typedef): Define member
7248 function.
7249 (unknown_language_data): Delete la_print_typedef initializer.
7250 (unknown_language::print_typedef): New member function.
7251 (auto_language_data): Delete la_print_typedef initializer.
7252 (auto_language::print_typedef): New member function.
7253 * language.h (language_data): Delete la_print_typedef field.
7254 (language_defn::print_typedef): Declare new member function.
7255 (LA_PRINT_TYPEDEF): Update call to print_typedef.
7256 (default_print_typedef): Delete declaration.
7257 * m2-lang.c (m2_language_data): Delete la_print_typedef
7258 initializer.
7259 (m2_language::print_typedef): New member function.
7260 * objc-lang.c (objc_language_data): Delete la_print_typedef
7261 initializer.
7262 * opencl-lang.c (opencl_language_data): Likewise.
7263 * p-lang.c (pascal_language_data): Likewise.
7264 (pascal_language::print_typedef): New member function.
7265 * rust-lang.c (rust_print_typedef): Delete function,
7266 implementation moved to rust_language::print_typedef.
7267 (rust_language): Delete la_print_typedef initializer.
7268 (rust_language::print_typedef): New member function,
7269 implementation from rust_print_typedef.
7270 * typeprint.c (default_print_typedef): Delete.
7271
d711ee67
AB
72722020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7273
7274 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
7275 (ada_language::printstr): New member function.
7276 * c-lang.c (c_language_data): Delete la_printstr initializer.
7277 (cplus_language_data): Likewise.
7278 (asm_language_data): Likewise.
7279 (minimal_language_data): Likewise.
7280 * d-lang.c (d_language_data): Likewise.
7281 * f-lang.c (f_printstr): Rename to f_language::printstr.
7282 (f_language_data): Delete la_printstr initializer.
7283 (f_language::printstr): New member function, implementation from
7284 f_printstr.
7285 * go-lang.c (go_language_data): Delete la_printstr initializer.
7286 * language.c (language_defn::printstr): Define new member
7287 function.
7288 (unk_lang_printstr): Delete.
7289 (unknown_language_data): Delete la_printstr initializer.
7290 (unknown_language::printstr): New member function.
7291 (auto_language_data): Delete la_printstr initializer.
7292 (auto_language::printstr): New member function.
7293 * language.h (language_data): Delete la_printstr field.
7294 (language_defn::printstr): Declare new member function.
7295 (LA_PRINT_STRING): Update call to printstr.
7296 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
7297 (m2_language_data): Delete la_printstr initializer.
7298 (m2_language::printstr): New member function, implementation from
7299 m2_printstr.
7300 * objc-lang.c (objc_language_data): Delete la_printstr
7301 initializer.
7302 * opencl-lang.c (opencl_language_data): Likewise.
7303 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
7304 (pascal_language_data): Delete la_printstr initializer.
7305 (pascal_language::printstr): New member function, implementation
7306 from pascal_printstr.
7307 * p-lang.h (pascal_printstr): Delete declaration.
7308 * rust-lang.c (rust_printstr): Update header comment.
7309 (rust_language_data): Delete la_printstr initializer.
7310 (rust_language::printstr): New member function.
7311
52b50f2c
AB
73122020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7313
7314 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
7315 (ada_language::printchar): New member function.
7316 * c-lang.c (c_language_data): Delete la_printchar initializer.
7317 (cplus_language_data): Likewise.
7318 (asm_language_data): Likewise.
7319 (minimal_language_data): Likewise.
7320 * d-lang.c (d_language_data): Likewise.
7321 * f-lang.c (f_printchar): Rename to f_language::printchar.
7322 (f_language_data): Delete la_printchar initializer.
7323 (f_language::printchar): New member function, implementation from
7324 f_printchar.
7325 * go-lang.c (go_language_data): Delete la_printchar initializer.
7326 * language.c (unk_lang_printchar): Delete.
7327 (language_defn::printchar): Define new member function.
7328 (unknown_language_data): Delete la_printchar initializer.
7329 (unknown_language::printchar): New member function.
7330 (auto_language_data): Delete la_printchar initializer.
7331 (auto_language::printchar): New member function.
7332 * language.h (language_data): Delete la_printchar field.
7333 (language_defn::printchar): Declare new member function.
7334 (LA_PRINT_CHAR): Update call to printchar.
7335 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
7336 (m2_language::printchar): New member function.
7337 * objc-lang.c (objc_language_data): Delete la_printchar
7338 initializer.
7339 * opencl-lang.c (opencl_language_data): Likewise.
7340 * p-lang.c (pascal_language_data): Delete la_printchar
7341 initializer.
7342 (pascal_language::printchar): New member function.
7343 * rust-lang.c (rust_printchar): Rename to
7344 rust_language::printchar.
7345 (rust_language_data): Delete la_printchar initializer.
7346 (rust_language::printchar): New member function, implementation
7347 from rust_printchar.
7348
ec8cec5b
AB
73492020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7350
7351 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
7352 (ada_language_data): Delete la_emitchar initializer.
7353 (ada_language::emitchar): New member function, implementation from
7354 emit_char.
7355 * c-lang.c (c_language_data): Delete la_emitchar initializer.
7356 (cplus_language_data): Likewise.
7357 (asm_language_data): Likewise.
7358 (minimal_language_data): Likewise.
7359 * d-lang.c (d_language_data): Likewise.
7360 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
7361 (f_language_data): Delete la_emitchar initializer.
7362 (f_language::emitchar): New member function, implementation from
7363 f_emit_char.
7364 * go-lang.c (go_language_data): Delete la_emitchar initializer.
7365 * language.c (unk_lang_emit_char): Delete.
7366 (language_defn::emitchar): New member function definition.
7367 (unknown_language_data): Delete la_emitchar initializer.
7368 (unknown_language::emitchar): New member function.
7369 (auto_language_data): Delete la_emitchar initializer.
7370 (auto_language::emitchar): New member function.
7371 * language.h (language_data): Delete la_emitchar field.
7372 (language_defn::emitchar): New member field declaration.
7373 (LA_EMIT_CHAR): Update call to emitchar.
7374 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
7375 (m2_language_data): Delete la_emitchar initializer.
7376 (m2_language::emitchar): New member function, implementation from
7377 m2_emit_char.
7378 * objc-lang.c (objc_language_data): Delete la_emitchar
7379 initializer.
7380 * opencl-lang.c (opencl_language_data): Likewise.
7381 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
7382 (pascal_language_data): Delete la_emitchar initializer.
7383 (pascal_language::emitchar): New member function, implementation
7384 from pascal_emit_char.
7385 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
7386 (rust_language_data): Delete la_emitchar initializer.
7387 (rust_language::emitchar): New member function, implementation
7388 from rust_emitchar.
7389
1bf9c363
AB
73902020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7391
7392 * ada-lang.c (resolve): Rename to ada_language::post_parser.
7393 (ada_language_data): Delete la_post_parser initializer.
7394 (ada_language::post_parser): New member function.
7395 * c-lang.c (c_language_data): Delete la_post_parser initializer.
7396 (cplus_language_data): Likewise.
7397 (asm_language_data): Likewise.
7398 (minimal_language_data): Likewise.
7399 * d-lang.c (d_language_data): Likewise.
7400 * f-lang.c (f_language_data): Likewise.
7401 * go-lang.c (go_language_data): Likewise.
7402 * language.c (unknown_language_data): Likewise.
7403 (auto_language_data): Likewise.
7404 * language.h (language_data): Delete la_post_parser field.
7405 (language_defn::post_parser): New member function.
7406 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
7407 * objc-lang.c (objc_language_data): Likewise.
7408 * opencl-lang.c (opencl_language_data): Likewise.
7409 * p-lang.c (pascal_language_data): Likewise.
7410 * parse.c (parse_exp_in_context): Update call to post_parser.
7411 (null_post_parser): Delete definition.
7412 * parser-defs.h (null_post_parser): Delete declaration.
7413 * rust-lang.c (rust_language_data): Delete la_post_parser
7414 initializer.
7415
87afa652
AB
74162020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7417
7418 * ada-lang.c (parse): Rename to ada_language::parser.
7419 (ada_language_data): Delete la_parser initializer.
7420 (ada_language::parser): New member function, implementation from
7421 parse.
7422 * c-lang.c (c_language_data): Delete la_parser initializer.
7423 (cplus_language_data): Likewise.
7424 (asm_language_data): Likewise.
7425 (minimal_language_data): Likewise.
7426 * d-lang.c (d_language_data): Likewise.
7427 (d_language::parser): New member function.
7428 * f-lang.c (f_language_data): Delete la_parser initializer.
7429 (f_language::parser): New member function.
7430 * go-lang.c (go_language_data): Delete la_parser initializer.
7431 (go_language::parser): New member function.
7432 * language.c (unk_lang_parser): Delete.
7433 (language_defn::parser): Define new member function.
7434 (unknown_language_data): Delete la_parser initializer.
7435 (unknown_language::parser): New member function.
7436 (auto_language_data): Delete la_parser initializer.
7437 (auto_language::parser): New member function.
7438 * language.h (language_data): Delete la_parser field.
7439 (language_defn::parser): Declare new member function.
7440 * m2-lang.c (m2_language_data): Delete la_parser initializer.
7441 (m2_language::parser): New member function.
7442 * objc-lang.c (objc_language_data): Delete la_parser initializer.
7443 * opencl-lang.c (opencl_language_data): Likewise.
7444 * p-lang.c (pascal_language_data): Likewise.
7445 (pascal_language::parser): New member function.
7446 * parse.c (parse_exp_in_context): Update call to parser.
7447 * rust-lang.c (rust_language_data): Delete la_parser initializer.
7448 (rust_language::parser): New member function.
7449
37825800
AB
74502020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7451
7452 * top.c (print_gdb_configuration): Print --with-python-libdir
7453 configuration value.
7454
5b860c93
PW
74552020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7456
7457 * NEWS: Mention change to the alias command.
7458
cf00cd6f
PW
74592020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7460
7461 * cli/cli-cmds.c (lookup_cmd_for_default_args)
7462 (alias_command_completer)
7463 (make_alias_options_def_group): New functions.
7464 (alias_opts, alias_option_defs): New struct and array.
7465 (alias_usage_error): Update usage.
7466 (alias_command): Handles optional DEFAULT-ARGS... arguments.
7467 Use option framework.
7468 (_initialize_cli_cmds): Update alias command help.
7469 Update aliases command help.
7470 (show_user):
7471 Add NULL for new default_args lookup_cmd argument.
7472 (valid_command_p): Rename to validate_aliased_command.
7473 Add NULL for new default_args lookup_cmd argument. Verify that the
7474 aliased_command has no default args.
7475 * cli/cli-decode.c (help_cmd): Show aliases definitions.
7476 (lookup_cmd_1, lookup_cmd): New argument default_args.
7477 (add_alias_cmd):
7478 Add NULL for new default_args lookup_cmd argument.
7479 (print_help_for_command): Show default args under the layout
7480 alias some_alias = some_aliased_cmd some_alias_default_arg.
7481 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
7482 xfree default_args in destructor.
7483 * cli/cli-script.c (process_next_line, do_define_command):
7484 Add NULL for new default_args lookup_cmd argument.
7485 * command.h: Declare new default_args argument in lookup_cmd
7486 and lookup_cmd_1.
7487 * completer.c (complete_line_internal_1):
7488 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7489 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
7490 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
7491 Likewise.
7492 * infcmd.c (_initialize_infcmd): Likewise.
7493 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
7494 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
7495 * python/py-param.c (add_setshow_generic): Likewise.
7496 * remote.c (_initialize_remote): Likewise.
7497 * top.c (execute_command): Prepend default_args if command has some.
7498 (set_verbose):
7499 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7500 * tracepoint.c (validate_actionline, encode_actions_1):
7501 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7502
bd920864
TBA
75032020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7504
7505 * jit.c (jit_read_descriptor): Use bool as the return type.
7506 (jit_breakpoint_re_set_internal): Use bool as the return type.
7507 Invert the return value logic; return true if the jit breakpoint
7508 has been successfully initialized.
7509 (jit_inferior_init): Update the call to
7510 jit_breakpoint_re_set_internal.
7511
f8098322
PA
75122020-06-22 Pedro Alves <palves@redhat.com>
7513
7514 PR gdb/25939
7515 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
7516 Use the current inferior instead. Don't return
7517 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
7518 wait again.
7519 * sol-thread.c (sol_thread_target::wait): Don't reference
7520 inferior_ptid.
7521 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
7522 (sol_update_thread_list_callback): Use the current inferior's pid
7523 instead of inferior_ptid.
7524
196535a6
RO
75252020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7526
7527 * procfs.c: Cleanup many comments.
7528
7529 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
7530 (AFTER_WATCHFLAG): Replace by value.
7531
7532 (MAIN_PROC_NAME_FORMAT): Inline ...
7533 (create_procinfo): ... here.
7534
7535 (procfs_debug_inferior): Remove SYS_exec handling.
7536 (syscall_is_exec): Likewise.
7537 (procfs_set_exec_trap): Likewise.
7538
7539 (syscall_is_lwp_exit): Inline in callers.
7540 (syscall_is_exit): Likewise.
7541 (syscall_is_exec): Likewise.
7542 (syscall_is_lwp_create): Likewise.
7543
7544 (invalidate_cache): Remove #if 0 code.
7545
7546 (make_signal_thread_runnable): Remove.
7547 (procfs_target::resume): Remove #if 0 code.
7548
cf6f3e86
RO
75492020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7550
7551 PR gdb/25939
7552 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
7553 call ...
7554 (procfs_target::create_inferior): ... here.
7555
48e9cc84
PW
75562020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7557
7558 * exec.c (validate_exec_file): Ensure the build-id is up to
7559 date by calling reopen_exec_file (that checks file timestamp
7560 to decide to re-read the file).
7561
3922b302
PA
75622020-06-18 Pedro Alves <palves@redhat.com>
7563
7564 PR gdb/25412
7565 * gdbthread.h (delete_thread, delete_thread_silent)
7566 (find_thread_ptid): Update comments.
7567 * thread.c (current_thread_): New global.
7568 (is_current_thread): Move higher, and reimplement.
7569 (inferior_thread): Reimplement.
7570 (set_thread_exited): Use bool. Add assertions.
7571 (add_thread_silent): Simplify thread-reuse handling by always
7572 calling delete_thread.
7573 (delete_thread): Remove intro comment.
7574 (find_thread_ptid): Skip exited threads.
7575 (switch_to_thread_no_regs): Write to current_thread_.
7576 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
7577 INFERIOR_PTID. Clear current_thread_.
7578
6dbdab44
PA
75792020-06-18 Pedro Alves <palves@redhat.com>
7580
7581 * aix-thread.c (pd_update): Use switch_to_thread.
7582
2da4b788
PA
75832020-06-18 Pedro Alves <palves@redhat.com>
7584
7585 * ravenscar-thread.c (ravenscar_thread_target): Update.
7586 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
7587 (ravenscar_thread_target::add_active_thread): ... this. Don't
7588 set m_base_ptid here. Update to avoid referencing inferior_ptid.
7589 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
7590
50838d1b
PA
75912020-06-18 Pedro Alves <palves@redhat.com>
7592
7593 * nat/windows-nat.c (current_windows_thread): Remove.
7594 * nat/windows-nat.h (current_windows_thread): Remove.
7595 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
7596 Adjust.
7597 (display_selectors): Adjust to fetch the current
7598 windows_thread_info based on inferior_ptid.
7599 (fake_create_process): No longer write to current_windows_thread.
7600 (windows_nat_target::get_windows_debug_event):
7601 Don't set inferior_ptid or current_windows_thread.
7602 (windows_nat_target::wait): Adjust to not rely on
7603 current_windows_thread.
7604 (do_initial_windows_stuff): Now a method of windows_nat_target.
7605 Switch to the last_ptid thread.
7606 (windows_nat_target::attach): Adjust.
7607 (windows_nat_target::detach): Use switch_to_no_thread instead of
7608 writing to inferior_ptid directly.
7609 (windows_nat_target::create_inferior): Adjust.
7610
31ce04e9
PA
76112020-06-18 Pedro Alves <palves@redhat.com>
7612
7613 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
7614
1ee1a363
PA
76152020-06-18 Pedro Alves <palves@redhat.com>
7616
7617 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
7618 after creating it, instead of writing to inferior_ptid. Don't
7619 write to inferior_ptid.
7620
6d350754
PA
76212020-06-18 Pedro Alves <palves@redhat.com>
7622
7623 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
7624
5d971d48
PA
76252020-06-18 Pedro Alves <palves@redhat.com>
7626
7627 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
7628 it, instead of writing to inferior_ptid.
7629
86e57d1b
PA
76302020-06-18 Pedro Alves <palves@redhat.com>
7631
7632 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
7633 to inferior_ptid.
7634
f2e1c129
PA
76352020-06-18 Pedro Alves <palves@redhat.com>
7636
7637 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
7638 instead of writing to inferior_ptid directly.
7639
60db1b85
PA
76402020-06-18 Pedro Alves <palves@redhat.com>
7641
7642 * corelow.c (core_target::close): Use switch_to_no_thread instead
7643 of writing to inferior_ptid directly.
7644 (add_to_thread_list, core_target_open): Use switch_to_thread
7645 instead of writing to inferior_ptid directly.
7646
fe7d6a8d
PA
76472020-06-18 Pedro Alves <palves@redhat.com>
7648
7649 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
7650 inferior_ptid.
7651 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
7652 inferior_ptid.
7653 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
7654 inferior_ptid directly.
7655 (darwin_nat_target::init_thread_list): Switch to thread, instead
7656 of writing to inferior_ptid.
7657 (darwin_nat_target::attach): Don't write to inferior_ptid.
7658 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
7659
975f8708
PA
76602020-06-18 Pedro Alves <palves@redhat.com>
7661
7662 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
7663 thread.
7664 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
7665 Instead use switch_to_thread.
7666 (gnu_nat_target::detach): Use switch_to_no_thread
7667 instead of writing to inferior_ptid directly. Used passed-in
7668 inferior instead of looking up the inferior by pid.
7669
1a204730
PA
76702020-06-18 Pedro Alves <palves@redhat.com>
7671
7672 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
7673 inferior_ptid.
7674
ebe84f23
PA
76752020-06-18 Pedro Alves <palves@redhat.com>
7676
7677 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
7678 inferior_ptid.
7679 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
7680 thread.
7681 (nto_procfs_target::detach): Avoid referencing
7682 inferior_ptid. Use switch_to_no_thread instead of writing to
7683 inferior_ptid directly.
7684 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
7685 instead of writing to inferior_ptid directly.
7686 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
7687 to thread.
7688
191f02e5
PA
76892020-06-18 Pedro Alves <palves@redhat.com>
7690
7691 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
7692 after creating it, instead of writing to inferior_ptid.
7693 (gdbsim_target_open): Use switch_to_no_thread instead of writing
7694 to inferior_ptid directly.
7695 (gdbsim_target::wait): Don't write to inferior_ptid.
7696
0ac55310
PA
76972020-06-18 Pedro Alves <palves@redhat.com>
7698
7699 * remote.c (remote_target::remote_notice_new_inferior): Use
7700 switch_to_thread instead of writing to inferior_ptid directly.
7701 (remote_target::add_current_inferior_and_thread): Use
7702 switch_to_no_thread instead of writing to inferior_ptid directly.
7703 (extended_remote_target::attach): Use switch_to_inferior_no_thread
7704 and switch_to_thread instead of using set_current_inferior or
7705 writing to inferior_ptid directly.
7706
5233f39b
PA
77072020-06-18 Pedro Alves <palves@redhat.com>
7708
7709 * tracectf.c (ctf_target_open): Switch to added thread instead of
7710 writing to inferior_ptid directly.
7711 (ctf_target::close): Use switch_to_no_thread instead of writing to
7712 inferior_ptid directly.
7713
087e161b
PA
77142020-06-18 Pedro Alves <palves@redhat.com>
7715
7716 * tracefile-tfile.c (tfile_target_open): Don't write to
7717 inferior_ptid directly, instead switch to added thread.
7718 (tfile_target::close): Use switch_to_no_thread instead of writing
7719 to inferior_ptid directly.
7720
7fb43e53
PA
77212020-06-18 Pedro Alves <palves@redhat.com>
7722
7723 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
7724 (procfs_target::detach): Use switch_to_no_thread
7725 instead of writing to inferior_ptid directly.
7726 (do_attach): Change return type to void. Switch to the added
7727 thread.
7728 (procfs_target::create_inferior): Switch to the added thread.
7729 (procfs_do_thread_registers): Don't write to inferior_ptid.
7730
18493a00
PA
77312020-06-18 Pedro Alves <palves@redhat.com>
7732
7733 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
7734 of writing to inferior_ptid.
7735 (scoped_restore_exited_inferior): Delete.
7736 (handle_vfork_child_exec_or_exit): Simplify using
7737 scoped_restore_current_pspace_and_thread. Use switch_to_thread
7738 instead of writing to inferior_ptid.
7739 (THREAD_STOPPED_BY): Delete.
7740 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
7741 (thread_stopped_by_hw_breakpoint): Delete.
7742 (save_waitstatus): Use
7743 scoped_restore_current_thread+switch_to_thread, and call
7744 target_stopped_by_watchpoint instead of
7745 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
7746 instead of thread_stopped_by_sw_breakpoint, and
7747 target_stopped_by_hw_breakpoint instead of
7748 thread_stopped_by_hw_breakpoint.
7749 (handle_inferior_event)
7750 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
7751 inferior_ptid directly, nor
7752 set_current_inferior/set_current_program_space. Use
7753 switch_to_thread / switch_to_inferior_no_thread instead.
7754
a0776b13
PA
77552020-06-18 Pedro Alves <palves@redhat.com>
7756
7757 * target.c (generic_mourn_inferior): Use switch_to_no_thread
7758 instead of writing to inferior_ptid.
7759
6155c136
PA
77602020-06-18 Pedro Alves <palves@redhat.com>
7761
7762 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
7763 added thread.
7764 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
7765 to the added thread.
7766 (inf_ptrace_target::detach_success): Use switch_to_no_thread
7767 instead of writing to inferior_ptid.
7768
c5316fc6
PA
77692020-06-18 Pedro Alves <palves@redhat.com>
7770
7771 * gdbarch-selftests.c: Include "progspace-and-thread.h".
7772 (register_to_value_test): Mock a program_space too. Heap-allocate
7773 the address space. Don't write to inferior_ptid. Use
7774 switch_to_thread instead.
7775
8df01799
PA
77762020-06-18 Pedro Alves <palves@redhat.com>
7777
7778 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
7779 Delete.
7780 (find_signalled_thread()): New, factored out from
7781 linux_make_corefile_notes and adjusted to handle exited threads.
7782 (linux_make_corefile_notes): Adjust to use the new
7783 find_signalled_thread.
7784
41792d68
PA
77852020-06-18 Pedro Alves <palves@redhat.com>
7786
7787 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
7788 of saving/restoring inferior_ptid.
7789
612f258a
TT
77902020-06-17 Tom Tromey <tom@tromey.com>
7791
7792 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
7793 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
7794 declare.
7795 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
7796
efb763a5
SM
77972020-06-15 Simon Marchi <simon.marchi@efficios.com>
7798
7799 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
7800 of partial symtabs.
7801
2951f6c0
SM
78022020-06-17 Simon Marchi <simon.marchi@efficios.com>
7803
7804 * regformats/reg-arm.dat: Remove.
7805 * regformats/reg-bfin.dat: Remove.
7806 * regformats/reg-cris.dat: Remove.
7807 * regformats/reg-crisv32.dat: Remove.
7808 * regformats/reg-m32r.dat: Remove.
7809 * regformats/reg-tilegx.dat: Remove.
7810 * regformats/reg-tilegx32.dat: Remove.
7811
7d458ea5
SM
78122020-06-17 Simon Marchi <simon.marchi@efficios.com>
7813
7814 * features/Makefile (WHICH): Remove arm files.
7815 * regformats/arm/arm-with-iwmmxt.dat: Remove.
7816 * regformats/arm/arm-with-neon.dat: Remove.
7817 * regformats/arm/arm-with-vfpv2.dat: Remove.
7818 * regformats/arm/arm-with-vfpv3.dat: Remove.
7819
3af96c0d
SM
78202020-06-17 Simon Marchi <simon.marchi@efficios.com>
7821
7822 * features/Makefile (XMLTOC): Remove rx.xml.
7823
b25e22fd
PA
78242020-06-17 Pedro Alves <palves@redhat.com>
7825
7826 * gdbthread.h (thread_control_state) <trap_expected> Update
7827 comments.
7828
a78a19b1
AB
78292020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7830
7831 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
7832 ada_language::lookup_symbol_nonlocal.
7833 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
7834 (ada_language::lookup_symbol_nonlocal): New member function,
7835 implementation from ada_lookup_symbol_nonlocal.
7836 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
7837 initializer.
7838 (cplus_language_data): Delete la_lookup_symbol_nonlocal
7839 initializer.
7840 (cplus_language::lookup_symbol_nonlocal): New member function.
7841 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
7842 (minimal_language_data) Likewise.
7843 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
7844 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
7845 initializer.
7846 (d_language::lookup_symbol_nonlocal): New member function.
7847 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
7848 initializer.
7849 (f_language::lookup_symbol_nonlocal): New member function.
7850 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
7851 initializer.
7852 * language.c (unknown_language_data): Likewise.
7853 (auto_language_data): Likewise.
7854 * language.h (language_data): Delete la_lookup_symbol_nonlocal
7855 field.
7856 (language_defn::lookup_symbol_nonlocal): New member function.
7857 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
7858 initializer.
7859 * objc-lang.c (objc_language_data): Likewise.
7860 * opencl-lang.c (opencl_language_data): Likewise.
7861 * p-lang.c (pascal_language_data): Likewise.
7862 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
7863 rust_language::lookup_symbol_nonlocal.
7864 (rust_language_data): Delete la_lookup_symbol_nonlocal
7865 initializer.
7866 (rust_language::lookup_symbol_nonlocal): New member function,
7867 implementation from rust_lookup_symbol_nonlocal.
7868 * symtab.c (lookup_symbol_aux): Update call to
7869 lookup_symbol_nonlocal.
7870 (basic_lookup_symbol_nonlocal): Rename to...
7871 (language_defn::lookup_symbol_nonlocal): ...this, and update
7872 header comment. Remove language_defn parameter, and replace with
7873 uses of `this'.
7874 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
7875
ebe2334e
AB
78762020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7877
7878 * ada-lang.c (ada_language_data): Delete la_value_print_inner
7879 initializer.
7880 (ada_language::value_print_inner): New member function.
7881 * c-lang.c (c_language_data): Delete la_value_print_inner
7882 initializer.
7883 (cplus_language_data): Likewise.
7884 (asm_language_data): Likewise.
7885 (minimal_language_data): Likewise.
7886 * d-lang.c (d_language_data): Likewise.
7887 (d_language::value_print_inner): New member function.
7888 * f-lang.c (f_language_data): Delete la_value_print_inner
7889 initializer.
7890 (f_language::value_print_inner): New member function.
7891 * f-lang.h (f_value_print_innner): Rename to...
7892 (f_value_print_inner): ...this (note spelling of 'inner').
7893 * f-valprint.c (f_value_print_innner): Rename to...
7894 (f_value_print_inner): ...this (note spelling of 'inner').
7895 * go-lang.c (go_language_data): Delete la_value_print_inner
7896 initializer.
7897 (go_language::value_print_inner): New member function.
7898 * language.c (language_defn::value_print_inner): Define new member
7899 function.
7900 (unk_lang_value_print_inner): Delete.
7901 (unknown_language_data): Delete la_value_print_inner initializer.
7902 (unknown_language::value_print_inner): New member function.
7903 (auto_language_data): Delete la_value_print_inner initializer.
7904 (auto_language::value_print_inner): New member function.
7905 * language.h (language_data): Delete la_value_print_inner field.
7906 (language_defn::value_print_inner): Delcare new member function.
7907 * m2-lang.c (m2_language_data): Delete la_value_print_inner
7908 initializer.
7909 (m2_language::value_print_inner): New member function.
7910 * objc-lang.c (objc_language_data): Delete la_value_print_inner
7911 initializer.
7912 * opencl-lang.c (opencl_language_data): Likewise.
7913 * p-lang.c (pascal_language_data): Likewise.
7914 (pascal_language::value_print_inner): New member function.
7915 * rust-lang.c (rust_language_data): Delete la_value_print_inner
7916 initializer.
7917 (rust_language::value_print_inner): New member function.
7918 * valprint.c (do_val_print): Update call to value_print_inner.
7919
a1d1fa3e
AB
79202020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7921
7922 * ada-lang.c (ada_language_data): Delete la_value_print
7923 initializer.
7924 (ada_language::value_print): New member function.
7925 * c-lang.c (c_language_data): Delete la_value_print initializer.
7926 (cplus_language_data): Likewise.
7927 (asm_language_data): Likewise.
7928 (minimal_language_data): Likewise.
7929 * d-lang.c (d_language_data): Likewise.
7930 * f-lang.c (f_language_data): Likewise.
7931 * go-lang.c (go_language_data): Likewise.
7932 * language.c (unk_lang_value_print): Delete.
7933 (language_defn::value_print): Define new member function.
7934 (unknown_language_data): Delete la_value_print initializer.
7935 (unknown_language::value_print): New member function.
7936 (auto_language_data): Delete la_value_print initializer.
7937 (auto_language::value_print): New member function.
7938 * language.h (language_data): Delete la_value_print field.
7939 (language_defn::value_print): Declare new member function.
7940 (LA_VALUE_PRINT): Update call to value_print.
7941 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
7942 * objc-lang.c (objc_language_data): Likewise.
7943 * opencl-lang.c (opencl_language_data): Likewise.
7944 * p-lang.c (pascal_language_data): Likewise.
7945 (pascal_language::value_print): New member function.
7946 * rust-lang.c (rust_language_data): Delete la_value_print
7947 initializer.
7948
f16a9f57
AB
79492020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7950
7951 * ada-lang.c (ada_watch_location_expression): Rename to
7952 ada_language::watch_location_expression.
7953 (ada_language_data): Delete la_watch_location_expression
7954 initializer.
7955 (ada_language::watch_location_expression): New member function,
7956 implementation from ada_watch_location_expression.
7957 * breakpoint.c (watch_command_1): Update call to
7958 watch_location_expression.
7959 * c-lang.c (c_watch_location_expression): Rename to
7960 language_defn::watch_location_expression.
7961 (c_language_data): Delete la_watch_location_expression
7962 initializer.
7963 (cplus_language_data): Likewise.
7964 (asm_language_data): Likewise.
7965 (minimal_language_data): Likewise.
7966 * c-lang.h (c_watch_location_expression): Delete declaration.
7967 * d-lang.c (d_language_data): Delete la_watch_location_expression
7968 initializer.
7969 * f-lang.c (f_language_data): Likewise.
7970 * go-lang.c (go_language_data): Likewise.
7971 * language.c (language_defn::watch_location_expression): Member
7972 function implementation from c_watch_location_expression.
7973 (unknown_language_data): Delete la_watch_location_expression
7974 initializer.
7975 (auto_language_data): Likewise.
7976 * language.h (language_data): Delete la_watch_location_expression
7977 field.
7978 (language_defn::watch_location_expression): Declare new member
7979 function.
7980 * m2-lang.c (m2_language_data): Delete
7981 la_watch_location_expression initializer.
7982 * objc-lang.c (objc_language_data): Likewise.
7983 * opencl-lang.c (opencl_language_data): Likewise.
7984 * p-lang.c (pascal_language_data): Likewise.
7985 * rust-lang.c (rust_watch_location_expression): Rename to
7986 rust_language::watch_location_expression.
7987 (rust_language_data): Delete la_watch_location_expression
7988 initializer.
7989 (rust_language::watch_location_expression): New member function,
7990 implementation from rust_watch_location_expression.
7991
7e56227d
AB
79922020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7993
7994 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
7995 ada_language::collect_symbol_completion_matches.
7996 (ada_language_data): Delete la_collect_symbol_completion_matches
7997 initializer.
7998 (ada_language::collect_symbol_completion_matches): New member
7999 function, implementation from
8000 ada_collect_symbol_completion_matches.
8001 * c-lang.c (c_language_data): Delete
8002 la_collect_symbol_completion_matches initializer.
8003 (cplus_language_data): Likewise.
8004 (asm_language_data): Likewise.
8005 (minimal_language_data): Likewise.
8006 * d-lang.c (d_language_data): Likewise.
8007 * f-lang.c (f_collect_symbol_completion_matches): Rename to
8008 f_language::collect_symbol_completion_matches.
8009 (f_language_data): Delete la_collect_symbol_completion_matches
8010 initializer.
8011 (f_language::collect_symbol_completion_matches) New member
8012 function, implementation from f_collect_symbol_completion_matches.
8013 * go-lang.c (go_language_data): Delete
8014 la_collect_symbol_completion_matches initializer.
8015 * language.c (unknown_language_data): Likewise.
8016 (auto_language_data): Likewise.
8017 * language.h (language_data): Delete
8018 la_collect_symbol_completion_matches field.
8019 (language_defn::collect_symbol_completion_matches): New member
8020 function.
8021 * m2-lang.c (m2_language_data): Delete
8022 la_collect_symbol_completion_matches initializer.
8023 * objc-lang.c (objc_language_data): Likewise.
8024 * opencl-lang.c (opencl_language_data): Likewise.
8025 * p-lang.c (pascal_language_data): Likewise.
8026 * rust-lang.c (rust_language_data): Likewise.
8027 * symtab.c (default_collect_symbol_completion_matches): Delete.
8028 (collect_symbol_completion_matches): Update call to
8029 collect_symbol_completion_matches.
8030 (collect_symbol_completion_matches_type): Likewise.
8031 * symtab.h (default_collect_symbol_completion_matches): Delete
8032 declaration.
8033
53fc67f8
AB
80342020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8035
8036 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
8037 (ada_language_data): Delete la_word_break_characters initializer.
8038 (ada_language::word_break_characters): New member function.
8039 * c-lang.c (c_language_data): Delete la_word_break_characters
8040 initializer.
8041 (cplus_language_data): Likewise.
8042 (asm_language_data): Likewise.
8043 (minimal_language_data): Likewise.
8044 * completer.c: Update global comment.
8045 (advance_to_expression_complete_word_point): Update call to
8046 word_break_characters.
8047 (complete_files_symbols): Likewise.
8048 (complete_line_internal_1): Likewise.
8049 (default_completer_handle_brkchars): Likewise.
8050 (skip_quoted_chars): Likewise.
8051 * d-lang.c (d_language_data): Delete la_word_break_characters
8052 initializer.
8053 * f-lang.c (f_word_break_characters): Delete.
8054 (f_language_data): Delete la_word_break_characters initializer.
8055 (f_language::word_break_characters): New member function.
8056 * go-lang.c (go_language_data): Delete la_word_break_characters
8057 initializer.
8058 * language.c (unknown_language_data): Likewise.
8059 (auto_language_data): Likewise.
8060 * language.h (default_word_break_characters): Move declaration to
8061 earlier in the file.
8062 (language_data): Delete la_word_break_characters field.
8063 (language_defn::word_break_characters): New member function.
8064 * m2-lang.c (m2_language_data): Delete la_word_break_characters
8065 initializer.
8066 * objc-lang.c (objc_language_data): Likewise.
8067 * opencl-lang.c (opencl_language_data): Likewise.
8068 * p-lang.c (pascal_language_data): Likewise.
8069 * rust-lang.c (rust_language_data): Likewise.
8070
c9debfb9
AB
80712020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8072
8073 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
8074 (ada_language_data): Delete la_get_symbol_name_matcher
8075 initializer.
8076 (language_defn::get_symbol_name_matcher_inner): New member
8077 function.
8078 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
8079 initializer.
8080 (cplus_language_data): Likewise.
8081 (cplus_language::get_symbol_name_matcher_inner): New member
8082 function.
8083 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
8084 (minimal_language_data): Likewise.
8085 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
8086 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
8087 initializer.
8088 * dictionary.c (iter_match_first_hashed): Update call to
8089 get_symbol_name_matcher.
8090 (iter_match_next_hashed): Likewise.
8091 (iter_match_next_linear): Likewise.
8092 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
8093 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
8094 initializer.
8095 (f_language::get_symbol_name_matcher_inner): New member function.
8096 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
8097 initializer.
8098 * language.c (default_symbol_name_matcher): Update header comment,
8099 make static.
8100 (language_defn::get_symbol_name_matcher): New definition.
8101 (language_defn::get_symbol_name_matcher_inner): Likewise.
8102 (get_symbol_name_matcher): Delete.
8103 (unknown_language_data): Delete la_get_symbol_name_matcher
8104 initializer.
8105 (auto_language_data): Likewise.
8106 * language.h (language_data): Delete la_get_symbol_name_matcher
8107 field.
8108 (language_defn::get_symbol_name_matcher): New member function.
8109 (language_defn::get_symbol_name_matcher_inner): Likewise.
8110 (default_symbol_name_matcher): Delete declaration.
8111 * linespec.c (find_methods): Update call to
8112 get_symbol_name_matcher.
8113 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
8114 initializer.
8115 * minsyms.c (lookup_minimal_symbol): Update call to
8116 get_symbol_name_matcher.
8117 (iterate_over_minimal_symbols): Likewise.
8118 * objc-lang.c (objc_language_data): Delete
8119 la_get_symbol_name_matcher initializer.
8120 * opencl-lang.c (opencl_language_data): Likewise.
8121 * p-lang.c (pascal_language_data): Likewise.
8122 * psymtab.c (psymbol_name_matches): Update call to
8123 get_symbol_name_matcher.
8124 * rust-lang.c (rust_language_data): Delete
8125 la_get_symbol_name_matcher initializer.
8126 * symtab.c (symbol_matches_search_name): Update call to
8127 get_symbol_name_matcher.
8128 (compare_symbol_name): Likewise.
8129
9a49ad8c
AB
81302020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8131
8132 * ada-lang.c (ada_language_data): Delete la_compute_program
8133 initializer.
8134 * c-lang.c (c_language_data): Likewise.
8135 (c_language::compute_program): New member function.
8136 (cplus_language_data): Delete la_compute_program initializer.
8137 (cplus_language::compute_program): New member function.
8138 (asm_language_data): Delete la_compute_program initializer.
8139 (minimal_language_data): Likewise.
8140 * c-lang.h (c_compute_program): Update comment.
8141 (cplus_compute_program): Likewise.
8142 * compile/compile-c-support.c (c_compute_program): Likewise.
8143 (cplus_compute_program): Likewise.
8144 * compile/compile.c (compile_to_object): Update call to
8145 la_compute_program.
8146 * d-lang.c (d_language_data): Delete la_compute_program
8147 initializer.
8148 * f-lang.c (f_language_data): Likewise.
8149 * go-lang.c (go_language_data): Likewise.
8150 * language.c (unknown_language_data): Likewise.
8151 (auto_language_data): Likewise.
8152 * language.h (language_data): Delete la_compute_program field.
8153 (language_defn::compute_program): New member function.
8154 * m2-lang.c (m2_language_data): Delete la_compute_program
8155 initializer.
8156 * objc-lang.c (objc_language_data): Likewise.
8157 * opencl-lang.c (opencl_language_data): Likewise.
8158 * p-lang.c (pascal_language_data): Likewise.
8159 * rust-lang.c (rust_language_data): Likewise.
8160
eff93b4d
AB
81612020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8162
8163 * ada-lang.c (ada_language_data) Delete
8164 la_class_name_from_physname initializer.
8165 * c-lang.c (c_language_data): Likewise.
8166 (cplus_language_data): Likewise.
8167 (cplus_language::class_name_from_physname): New member function.
8168 (asm_language_data): Delete la_class_name_from_physname
8169 initializer.
8170 (minimal_language_data): Likewise.
8171 * d-lang.c (d_language_data): Likewise.
8172 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
8173 method on language_defn class.
8174 (guess_full_die_structure_name): Likewise.
8175 * f-lang.c (f_language_data): Delete la_class_name_from_physname
8176 initializer.
8177 * go-lang.c (go_language_data): Likewise.
8178 * language.c (language_class_name_from_physname): Delete.
8179 (unk_lang_class_name): Delete.
8180 (unknown_language_data): Delete la_class_name_from_physname
8181 initializer.
8182 (auto_language_data): Likewise.
8183 * language.h (language_data): Delete la_class_name_from_physname
8184 field.
8185 (language_defn::class_name_from_physname): New function.
8186 (language_class_name_from_physname): Delete declaration.
8187 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
8188 initializer.
8189 * objc-lang.c (objc_language_data): Likewise.
8190 * opencl-lang.c (opencl_language_data): Likewise.
8191 * p-lang.c (pascal_language_data): Likewise.
8192 * rust-lang.c (rust_language_data): Likewise.
8193
de543742
TT
81942020-06-16 Tom Tromey <tom@tromey.com>
8195
8196 * tui/tui-data.h (STATUS_NAME): New macro.
8197 * tui/tui-layout.c (tui_remove_some_windows)
8198 (initialize_known_windows, tui_register_window)
8199 (tui_layout_split::remove_windows, initialize_layouts)
8200 (tui_new_layout_command): Don't use hard-coded window names.
8201
a350efd4
TT
82022020-06-16 Tom Tromey <tom@tromey.com>
8203
8204 PR tui/25348:
8205 * tui/tui.c (tui_ensure_readline_initialized): Rename from
8206 tui_initialize_readline. Only run once. Call rl_initialize.
8207 * tui/tui.h (tui_ensure_readline_initialized): Rename from
8208 tui_initialize_readline.
8209 * tui/tui-io.c (tui_setup_io): Call
8210 tui_ensure_readline_initialized.
8211 * tui/tui-interp.c (tui_interp::init): Update.
8212
39ec0490
TT
82132020-06-16 Tom Tromey <tom@tromey.com>
8214
8215 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
8216 Also preserve the status window.
8217
d2d1ea20
TT
82182020-06-16 Tom Tromey <tom@tromey.com>
8219
8220 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
8221 where m_window==nullptr.
8222
66920317
TT
82232020-06-15 Tom Tromey <tromey@adacore.com>
8224
8225 * windows-nat.c (windows_nat::handle_output_debug_string):
8226 Update.
8227 (windows_nat::handle_ms_vc_exception): Update.
8228 * target.h (target_read_string): Change API.
8229 * target.c (target_read_string): Change API.
8230 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
8231 Update.
8232 * solib-frv.c (frv_current_sos): Update.
8233 * solib-dsbt.c (dsbt_current_sos): Update.
8234 * solib-darwin.c (darwin_current_sos): Update.
8235 * linux-thread-db.c (inferior_has_bug): Update.
8236 * expprint.c (print_subexp_standard): Update.
8237 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
8238 (ada_exception_message_1): Update.
8239
a5d871dd
TT
82402020-06-15 Tom Tromey <tromey@adacore.com>
8241
8242 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
8243
670e35fa
TT
82442020-06-15 Tom Tromey <tromey@adacore.com>
8245
8246 * valprint.c (read_string): Update comment.
8247 * target.c (MIN): Remove.
8248 (target_read_string): Rewrite.
8249
f5272a3b
TT
82502020-06-15 Tom Tromey <tromey@adacore.com>
8251
8252 * corefile.c (read_memory_string): Remove.
8253 * ada-valprint.c (ada_value_print_ptr): Update.
8254 * ada-lang.h (ada_tag_name): Change return type.
8255 * ada-lang.c (type_from_tag): Update.
8256 (ada_tag_name_from_tsd): Change return type. Use
8257 target_read_string.
8258 (ada_tag_name): Likewise.
8259 * gdbcore.h (read_memory_string): Don't declare.
8260
2c074f49
HD
82612020-06-14 Hannes Domani <ssbssa@yahoo.de>
8262
8263 * symtab.c (rbreak_command): Ignore Windows drive colon.
8264
6a17d503
SM
82652020-06-12 Simon Marchi <simon.marchi@efficios.com>
8266
8267 * NEWS: Mention removed GDBserver host support.
8268
453c733f
NC
82692020-06-12 Nelson Chu <nelson.chu@sifive.com>
8270
8271 * features/riscv/rebuild-csr-xml.sh: Updated.
8272
2b4e6a3f
TT
82732020-06-11 Tom Tromey <tom@tromey.com>
8274
8275 PR gdb/18318:
8276 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
8277
4412332f
JG
82782020-06-09 Jonny Grant <jg@jguk.org>
82792020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
8280
8281 * main.c (captured_main_1): Don't print new line after help.
8282 (print_gdb_help): add mailing list and IRC channel information
8283 to --help. Add new lines between items in the footer. Remove
8284 quotes around bug url.
8285
2f33032a
KS
82862020-06-11 Keith Seitz <keiths@redhat.com>
8287
8288 PR gdb/21356
8289 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
8290 Resolve typedefs for type length calculations.
8291
7ab96794
TV
82922020-06-10 Tom de Vries <tdevries@suse.de>
8293
8294 PR ada/24713
8295 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
8296 (write_psymbols): Enable .gdb_index for ada.
8297 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
8298 ada.
8299
e5f3ece2
TV
83002020-06-10 Tom de Vries <tdevries@suse.de>
8301
8302 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
8303 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
8304 namei" instead of "const char *name" argument.
8305 (dw2_map_matching_symbols): Use "offset_type namei" variant of
8306 dw2_symtab_iter_init.
8307
940da03e
SM
83082020-06-08 Simon Marchi <simon.marchi@efficios.com>
8309
8310 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
8311 to use type::field and field::type instead.
8312
b6cdac4b
SM
83132020-06-08 Simon Marchi <simon.marchi@efficios.com>
8314
8315 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
8316 to use field::type instead.
8317
5d14b6e5
SM
83182020-06-08 Simon Marchi <simon.marchi@efficios.com>
8319
8320 * gdbtypes.h (struct field) <type, set_type>: New methods.
8321 Rename `type` field to...
8322 <m_type>: ... this. Change references throughout to use type or
8323 set_type methods.
8324 (FIELD_TYPE): Use field::type. Change call sites that modify
8325 the field's type to use field::set_type instead.
8326
3d967001
SM
83272020-06-08 Simon Marchi <simon.marchi@efficios.com>
8328
8329 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
8330 to use type::index_type instead.
8331
262abc0d
SM
83322020-06-08 Simon Marchi <simon.marchi@efficios.com>
8333
8334 * gdbtypes.h (struct type) <index_type, set_index_type>: New
8335 methods.
8336 (TYPE_INDEX_TYPE): Use type::index_type.
8337 * gdbtypes.c (create_array_type_with_stride): Likewise.
8338
82836c92
TT
83392020-06-07 Tom Tromey <tom@tromey.com>
8340
8341 * valprint.c (generic_val_print_float): Remove "embedded_offset"
8342 parameter.
8343 (generic_value_print): Update.
8344
940dace9
AB
83452020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8346
8347 Revert commit 982a38f60b0.
8348 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
8349
982a38f6
AB
83502020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8351
8352 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
8353 avoid use after free.
8354
82f06518
TV
83552020-06-05 Tom de Vries <tdevries@suse.de>
8356
8357 * NEWS: Fix typos.
8358
f8c41851
SM
83592020-06-04 Simon Marchi <simon.marchi@efficios.com>
8360
8361 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
8362 the per_bfd object.
8363 (dwarf2_read_debug_names): Likewise.
8364 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
8365 object when re-using a per_bfd object with an index.
8366
f9b5d5ea
TV
83672020-06-03 Tom de Vries <tdevries@suse.de>
8368
8369 PR symtab/26046
8370 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
8371 children for C++.
8372 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
8373 DW_TAG_subprogram.
8374
f6eee2d0
AB
83752020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8376
8377 * ada-lang.c (ada_language_data): Delete skip_trampoline
8378 initializer.
8379 * c-lang.c (c_language_data): Likewise.
8380 (cplus_language_data): Likewise.
8381 (cplus_language::skip_trampoline): New member function.
8382 (asm_language_data): Delete skip_trampoline initializer.
8383 (minimal_language_data): Likewise.
8384 * d-lang.c (d_language_data): Likewise.
8385 * f-lang.c (f_language_data): Likewise.
8386 * go-lang.c (go_language_data): Likewise.
8387 * language.c (unk_lang_trampoline): Delete function.
8388 (skip_language_trampoline): Update.
8389 (unknown_language_data): Delete skip_trampoline initializer.
8390 (auto_language_data): Likewise.
8391 * language.h (language_data): Delete skip_trampoline field.
8392 (language_defn::skip_trampoline): New function.
8393 * m2-lang.c (m2_language_data): Delete skip_trampoline
8394 initializer.
8395 * objc-lang.c (objc_skip_trampoline): Delete function, move
8396 implementation to objc_language::skip_trampoline.
8397 (objc_language_data): Delete skip_trampoline initializer.
8398 (objc_language::skip_trampoline): New member function with
8399 implementation from objc_skip_trampoline.
8400 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
8401 initializer.
8402 * p-lang.c (pascal_language_data): Likewise.
8403 * rust-lang.c (rust_language_data): Likewise.
8404
0a50df5d
AB
84052020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8406
8407 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
8408 (ada_language::demangle): New member function.
8409 * c-lang.c (c_language_data): Delete la_demangle initializer.
8410 (cplus_language_data): Delete la_demangle initializer.
8411 (cplus_language::demangle): New member function.
8412 (asm_language_data): Delete la_demangle initializer.
8413 (minimal_language_data): Delete la_demangle initializer.
8414 * d-lang.c (d_language_data): Delete la_demangle initializer.
8415 (d_language::demangle): New member function.
8416 * f-lang.c (f_language_data): Delete la_demangle initializer.
8417 (f_language::demangle): New member function.
8418 * go-lang.c (go_language_data): Delete la_demangle initializer.
8419 (go_language::demangle): New member function.
8420 * language.c (language_demangle): Update.
8421 (unk_lang_demangle): Delete.
8422 (unknown_language_data): Delete la_demangle initializer.
8423 (unknown_language::demangle): New member function.
8424 (auto_language_data): Delete la_demangle initializer.
8425 (auto_language::demangle): New member function.
8426 * language.h (language_data): Delete la_demangle field.
8427 (language_defn::demangle): New function.
8428 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
8429 * objc-lang.c (objc_language_data): Delete la_demangle
8430 initializer.
8431 (objc_language::demangle): New member function.
8432 * opencl-lang.c (opencl_language_data): Delete la_demangle
8433 initializer.
8434 * p-lang.c (pascal_language_data): Likewise.
8435 * rust-lang.c (rust_language_data): Likewise.
8436 (rust_language::demangle): New member function.
8437
fbfb0a46
AB
84382020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8439
8440 * ada-lang.c (ada_language_data): Delete la_print_type
8441 initializer.
8442 (ada_language::print_type): New member function.
8443 * c-lang.c (c_language_data): Delete la_print_type initializer.
8444 (c_language::print_type): New member function.
8445 (cplus_language_data): Delete la_print_type initializer.
8446 (cplus_language::print_type): New member function.
8447 (asm_language_data): Delete la_print_type initializer.
8448 (asm_language::print_type): New member function.
8449 (minimal_language_data): Delete la_print_type initializer.
8450 (minimal_language::print_type): New member function.
8451 * d-lang.c (d_language_data): Delete la_print_type initializer.
8452 (d_language::print_type): New member function.
8453 * f-lang.c (f_language_data): Delete la_print_type initializer.
8454 (f_language::print_type): New member function.
8455 * go-lang.c (go_language_data): Delete la_print_type initializer.
8456 (go_language::print_type): New member function.
8457 * language.c (unk_lang_print_type): Delete.
8458 (unknown_language_data): Delete la_print_type initializer.
8459 (unknown_language::print_type): New member function.
8460 (auto_language_data): Delete la_print_type initializer.
8461 (auto_language::print_type): New member function.
8462 * language.h (language_data): Delete la_print_type field.
8463 (language_defn::print_type): New function.
8464 (LA_PRINT_TYPE): Update.
8465 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
8466 (m2_language::print_type): New member function.
8467 * objc-lang.c (objc_language_data): Delete la_print_type
8468 initializer.
8469 (objc_language::print_type): New member function.
8470 * opencl-lang.c (opencl_print_type): Delete, implementation moved
8471 to opencl_language::print_type.
8472 (opencl_language_data): Delete la_print_type initializer.
8473 (opencl_language::print_type): New member function, implementation
8474 from opencl_print_type.
8475 * p-lang.c (pascal_language_data): Delete la_print_type
8476 initializer.
8477 (pascal_language::print_type): New member function.
8478 * rust-lang.c (rust_print_type): Delete, implementation moved to
8479 rust_language::print_type.
8480 (rust_language_data): Delete la_print_type initializer.
8481 (rust_language::print_type): New member function, implementation
8482 from rust_print_type.
8483
6f827019
AB
84842020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8485
8486 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
8487 implementation moves to...
8488 (ada_language::sniff_from_mangled_name): ...here. Update return
8489 type.
8490 (ada_language_data): Delete la_sniff_from_mangled_name
8491 initializer.
8492 * c-lang.c (c_language_data): Likewise.
8493 (cplus_language_data): Likewise.
8494 (cplus_language::sniff_from_mangled_name): New member function,
8495 implementation taken from gdb_sniff_from_mangled_name.
8496 (asm_language_data): Delete la_sniff_from_mangled_name
8497 initializer.
8498 (minimal_language_data): Likewise.
8499 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
8500 implementation moves to cplus_language::sniff_from_mangled_name.
8501 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
8502 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
8503 moves to...
8504 (d_language::sniff_from_mangled_name): ...here.
8505 (d_language_data): Delete la_sniff_from_mangled_name initializer.
8506 * f-lang.c (f_language_data): Likewise.
8507 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
8508 moves to...
8509 (go_language::sniff_from_mangled_name): ...here.
8510 (go_language_data): Delete la_sniff_from_mangled_name initializer.
8511 * language.c (language_sniff_from_mangled_name): Delete.
8512 (unknown_language_data): Delete la_sniff_from_mangled_name
8513 initializer.
8514 (auto_language_data): Likewise.
8515 * language.h (language_data): Delete la_sniff_from_mangled_name
8516 field.
8517 (language_defn::sniff_from_mangled_name): New function.
8518 (language_sniff_from_mangled_name): Delete declaration.
8519 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
8520 field.
8521 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
8522 implementation moves to...
8523 (objc_language::sniff_from_mangled_name): ...here.
8524 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
8525 * opencl-lang.c (opencl_language_data): Likewise.
8526 * p-lang.c (pascal_language_data): Likewise.
8527 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
8528 implementation moves to...
8529 (rust_language::sniff_from_mangled_name): ...here.
8530 (rust_language_data): Delete la_sniff_from_mangled_name
8531 initializer.
8532 * symtab.c (symbol_find_demangled_name): Call
8533 sniff_from_mangled_name member function.
8534
fb8006fd
AB
85352020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8536
8537 * ada-lang.c (ada_language_data): Delete la_search_name_hash
8538 initializer.
8539 * c-lang.c (c_language_data): Likewise.
8540 (cplus_language_data): Likewise.
8541 (cplus_language::search_name_hash): New member function.
8542 (asm_language_data): Delete la_search_name_hash initializer.
8543 (minimal_language_data): Likewise.
8544 * d-lang.c (d_language_data): Likewise.
8545 * dictionary.c (default_search_name_hash): Rename to...
8546 (language_defn::search_name_hash): ...this.
8547 * f-lang.c (f_language_data): Likewise.
8548 (f_language::search_name_hash): New member function.
8549 * go-lang.c (go_language_data): Delete la_search_name_hash
8550 initializer.
8551 * language.c (unknown_language_data): Likewise.
8552 (auto_language_data): Likewise.
8553 * language.h (struct language_data): Delete la_search_name_hash
8554 field.
8555 (language_defn::search_name_hash): Declare new member function.
8556 (default_search_name_hash): Delete declaration.
8557 * m2-lang.c (m2_language_data): Delete la_search_name_hash
8558 initializer.
8559 * objc-lang.c (objc_language_data): Likewise.
8560 * opencl-lang.c (opencl_language_data): Likewise.
8561 * p-lang.c (pascal_language_data): Likewise.
8562 * rust-lang.c (rust_language_data): Likewise.
8563 * symtab.c (search_name_hash): Update call.
8564
8e25bafe
AB
85652020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8566
8567 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
8568 initializer.
8569 * c-lang.c (class compile_instance): Declare.
8570 (c_language_data): Delete la_get_compile_instance initializer.
8571 (c_language::get_compile_instance): New member function.
8572 (cplus_language_data): Delete la_get_compile_instance initializer.
8573 (cplus_language::get_compile_instance): New member function.
8574 (asm_language_data): Delete la_get_compile_instance initializer.
8575 (minimal_language_data): Likewise.
8576 * c-lang.h (c_get_compile_context): Update comment.
8577 (cplus_get_compile_context): Update comment.
8578 * compile/compile.c (compile_to_object): Update calls, don't rely
8579 on function pointer being NULL.
8580 * d-lang.c (d_language_data): Delete la_get_compile_instance
8581 initializer.
8582 * f-lang.c (f_language_data): Likewise.
8583 * go-lang.c (go_language_data): Likewise.
8584 * language.c (unknown_language_data): Likewise.
8585 (auto_language_data): Likewise.
8586 * language.h (language_data): Delete la_get_compile_instance field.
8587 (language_defn::get_compile_instance): New member function.
8588 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
8589 initializer.
8590 * objc-lang.c (objc_language_data): Likewise.
8591 * opencl-lang.c (opencl_language_data): Likewise.
8592 * p-lang.c (pascal_language_data): Likewise.
8593 * rust-lang.c (rust_language_data): Likewise.
8594
4009ee92
AB
85952020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8596
8597 * ada-lang.c (ada_add_all_symbols): Update comment.
8598 (ada_iterate_over_symbols): Delete, move implementation to...
8599 (ada_language::iterate_over_symbols): ...here, a new member
8600 function, rewrite to use range based for loop.
8601 (ada_language_data): Delete la_iterate_over_symbols initializer.
8602 * c-lang.c (c_language_data): Likewise.
8603 (cplus_language_data): Likewise.
8604 (asm_language_data): Likewise.
8605 (minimal_language_data): Likewise.
8606 * d-lang.c (d_language_data): Likewise.
8607 * f-lang.c (f_language_data): Likewise.
8608 * go-lang.c (go_language_data): Likewise.
8609 * language.c (unknown_language_data): Likewise.
8610 (auto_language_data): Likewise.
8611 * language.h (language_data): Delete la_iterate_over_symbols field.
8612 (language_defn::iterate_over_symbols): New member function.
8613 (LA_ITERATE_OVER_SYMBOLS): Update.
8614 * linespec.c (iterate_over_all_matching_symtabs): Update.
8615 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
8616 initializer.
8617 * objc-lang.c (objc_language_data): Likewise.
8618 * opencl-lang.c (opencl_language_data): Likewise.
8619 * p-lang.c (pascal_language_data): Likewise.
8620 * rust-lang.c (rust_language_data): Likewise.
8621
54f4ca46
AB
86222020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8623
8624 * ada-lang.c (ada_language_data): Delete
8625 la_lookup_transparent_type initializer.
8626 * c-lang.c (c_language_data): Likewise.
8627 (cplus_language_data): Likewise.
8628 (cplus_language::lookup_transparent_type): New member function.
8629 (asm_language_data): Delete la_lookup_transparent_type
8630 initializer.
8631 (minimal_language_data): Likewise.
8632 * d-lang.c (d_language_data): Likewise.
8633 * f-lang.c (f_language_data): Likewise.
8634 * go-lang.c (go_language_data): Likewise.
8635 * language.c (unknown_language_data): Likewise.
8636 (auto_language_data): Likewise.
8637 * language.h (struct language_data): Delete
8638 la_lookup_transparent_type field.
8639 (language_defn::lookup_transparent_type): New member function.
8640 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
8641 initializer.
8642 * objc-lang.c (objc_language_data): Likewise.
8643 * opencl-lang.c (opencl_language_data): Likewise.
8644 * p-lang.c (pascal_language_data): Likewise.
8645 * rust-lang.c (rust_language_data): Likewise.
8646 * symtab.c (symbol_matches_domain): Update call.
8647
1fb314aa
AB
86482020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8649
8650 * ada-lang.c (ada_language_arch_info): Delete function, move
8651 implementation to...
8652 (ada_language::language_arch_info): ...here, a new member
8653 function.
8654 (ada_language_data): Delete la_language_arch_info.
8655 * c-lang.c (c_language_data): Likewise.
8656 (c_language::language_arch_info): New member function.
8657 (cplus_language_arch_info): Delete function, move
8658 implementation to...
8659 (cplus_language::language_arch_info): ...here, a new member
8660 function.
8661 (cplus_language_data): Delete la_language_arch_info.
8662 (asm_language_data): Likewise.
8663 (asm_language::language_arch_info): New member function.
8664 (minimal_language_data): Delete la_language_arch_info.
8665 (minimal_language::language_arch_info): New member function.
8666 * d-lang.c (d_language_arch_info): Delete function, move
8667 implementation to...
8668 (d_language::language_arch_info): ...here, a new member
8669 function.
8670 (d_language_data): Delete la_language_arch_info.
8671 * f-lang.c (f_language_arch_info): Delete function, move
8672 implementation to...
8673 (f_language::language_arch_info): ...here, a new member
8674 function.
8675 (f_language_data): Delete la_language_arch_info.
8676 * go-lang.c (go_language_arch_info): Delete function, move
8677 implementation to...
8678 (go_language::language_arch_info): ...here, a new member
8679 function.
8680 (go_language_data): Delete la_language_arch_info.
8681 * language.c (unknown_language_data): Likewise.
8682 (unknown_language::language_arch_info): New member function.
8683 (auto_language_data): Delete la_language_arch_info.
8684 (auto_language::language_arch_info): New member function.
8685 (language_gdbarch_post_init): Update call to
8686 la_language_arch_info.
8687 * language.h (language_data): Delete la_language_arch_info
8688 function pointer.
8689 (language_defn::language_arch_info): New function.
8690 * m2-lang.c (m2_language_arch_info): Delete function, move
8691 implementation to...
8692 (m2_language::language_arch_info): ...here, a new member
8693 function.
8694 (m2_language_data): Delete la_language_arch_info.
8695 * objc-lang.c (objc_language_arch_info): Delete function, move
8696 implementation to...
8697 (objc_language::language_arch_info): ...here, a new member
8698 function.
8699 (objc_language_data): Delete la_language_arch_info.
8700 * opencl-lang.c (opencl_language_arch_info): Delete function, move
8701 implementation to...
8702 (opencl_language::language_arch_info): ...here, a new member
8703 function.
8704 (opencl_language_data): Delete la_language_arch_info.
8705 * p-lang.c (pascal_language_arch_info): Delete function, move
8706 implementation to...
8707 (pascal_language::language_arch_info): ...here, a new member
8708 function.
8709 (pascal_language_data): Delete la_language_arch_info.
8710 * rust-lang.c (rust_language_arch_info): Delete function, move
8711 implementation to...
8712 (rust_language::language_arch_info): ...here, a new member
8713 function.
8714 (rust_language_data): Delete la_language_arch_info.
8715
48448202
AB
87162020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8717
8718 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
8719 initializer.
8720 * c-lang.c (c_language_data): Likewise.
8721 (cplus_language_data): Likewise.
8722 (cplus_language::pass_by_reference_info): New method.
8723 (asm_language_data): Delete la_pass_by_reference initializer.
8724 (minimal_language_data): Likewise.
8725 * cp-abi.c (cp_pass_by_reference): Remove use of
8726 default_pass_by_reference.
8727 * d-lang.c (d_language_data): Likewise.
8728 * f-lang.c (f_language_data): Likewise.
8729 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
8730 default_pass_by_reference.
8731 * go-lang.c (go_language_data): Likewise.
8732 * language.c (language_pass_by_reference): Update.
8733 (default_pass_by_reference): Delete.
8734 (unknown_language_data): Delete la_pass_by_reference
8735 initializer.
8736 (auto_language_data): Likewise.
8737 * language.h (struct language_data): Delete la_pass_by_reference
8738 field.
8739 (language_defn::pass_by_reference_info): New member function.
8740 (default_pass_by_reference): Delete declaration.
8741 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
8742 initializer.
8743 * objc-lang.c (objc_language_data): Likewise.
8744 * opencl-lang.c (opencl_language_data): Likewise.
8745 * p-lang.c (pascal_language_data): Likewise.
8746 * rust-lang.c (rust_language_data): Likewise.
8747
15e5fd35
AB
87482020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8749
8750 * ada-lang.c (ada_read_var_value): Delete function, move
8751 implementation to...
8752 (ada_language::read_var_value): ...here.
8753 (ada_language_data): Delete la_read_var_value initializer.
8754 * c-lang.c (c_language_data): Likewise.
8755 (cplus_language_data): Likewise.
8756 (minimal_language_data): Likewise.
8757 * d-lang.c (d_language_data): Likewise.
8758 * f-lang.c (f_language_data): Likewise.
8759 * findvar.c (default_read_var_value): Rename to...
8760 (language_defn::read_var_value): ...this.
8761 * findvar.c (read_var_value): Update header comment, and change to
8762 call member function instead of function pointer.
8763 * go-lang.c (go_language_data): Likewise.
8764 * language.c (unknown_language_data): Delete la_read_var_value
8765 initializer.
8766 (auto_language_data): Likewise.
8767 * language.h (struct language_data): Delete la_read_var_value
8768 field.
8769 (language_defn::read_var_value): New member function.
8770 (default_read_var_value): Delete declaration.
8771 * m2-lang.c (m2_language_data): Delete la_read_var_value
8772 initializer.
8773 * objc-lang.c (objc_language_data): Likewise.
8774 * opencl-lang.c (opencl_language_data): Likewise.
8775 * p-lang.c (pascal_language_data): Likewise.
8776 * rust-lang.c (rust_language_data): Likewise.
8777 * value.h (default_read_var_value): Delete declaration.
8778
5bd40f2a
AB
87792020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8780
8781 * ada-lang.c (ada_print_array_index): Delete function, move
8782 implementation to...
8783 (ada_language::print_array_index): ...here.
8784 (ada_language_data): Delete la_print_array_index initializer.
8785 * c-lang.c (c_language_data): Likewise.
8786 (cplus_language_data): Likewise.
8787 (minimal_language_data): Likewise.
8788 * d-lang.c (d_language_data): Likewise.
8789 * f-lang.c (f_language_data): Likewise.
8790 * go-lang.c (go_language_data): Likewise.
8791 * language.c (default_print_array_index): Delete function, move
8792 implementation to...
8793 (language_defn::print_array_index): ...here.
8794 (unknown_language_data): Delete la_print_array_index initializer.
8795 (auto_language_data): Likewise.
8796 * language.h (struct language_data): Delete la_print_array_index
8797 field.
8798 (language_defn::print_array_index): New member function.
8799 (LA_PRINT_ARRAY_INDEX): Update.
8800 (default_print_array_index): Delete declaration.
8801 * m2-lang.c (m2_language_data): Delete la_print_array_index
8802 initializer.
8803 * objc-lang.c (objc_language_data): Likewise.
8804 * opencl-lang.c (opencl_language_data): Likewise.
8805 * p-lang.c (pascal_language_data): Likewise.
8806 * rust-lang.c (rust_language_data): Likewise.
8807
0874fd07
AB
88082020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8809
8810 * gdb/ada-lang.c (ada_language_defn): Convert to...
8811 (ada_language_data): ...this.
8812 (class ada_language): New class.
8813 (ada_language_defn): New static global.
8814 * gdb/c-lang.c (c_language_defn): Convert to...
8815 (c_language_data): ...this.
8816 (class c_language): New class.
8817 (c_language_defn): New static global.
8818 (cplus_language_defn): Convert to...
8819 (cplus_language_data): ...this.
8820 (class cplus_language): New class.
8821 (cplus_language_defn): New static global.
8822 (asm_language_defn): Convert to...
8823 (asm_language_data): ...this.
8824 (class asm_language): New class.
8825 (asm_language_defn): New static global.
8826 (minimal_language_defn): Convert to...
8827 (minimal_language_data): ...this.
8828 (class minimal_language): New class.
8829 (minimal_language_defn): New static global.
8830 * gdb/d-lang.c (d_language_defn): Convert to...
8831 (d_language_data): ...this.
8832 (class d_language): New class.
8833 (d_language_defn): New static global.
8834 * gdb/f-lang.c (f_language_defn): Convert to...
8835 (f_language_data): ...this.
8836 (class f_language): New class.
8837 (f_language_defn): New static global.
8838 * gdb/go-lang.c (go_language_defn): Convert to...
8839 (go_language_data): ...this.
8840 (class go_language): New class.
8841 (go_language_defn): New static global.
8842 * gdb/language.c (unknown_language_defn): Remove declaration.
8843 (current_language): Initialize to nullptr, real initialization is
8844 moved to _initialize_language.
8845 (languages): Delete global.
8846 (language_defn::languages): Define.
8847 (set_language_command): Use language_defn::languages.
8848 (set_language): Likewise.
8849 (range_error): Likewise.
8850 (language_enum): Likewise.
8851 (language_def): Likewise.
8852 (add_set_language_command): Use language_def::languages for the
8853 language list, and language_def to lookup language pointers.
8854 (skip_language_trampoline): Use language_defn::languages.
8855 (unknown_language_defn): Convert to...
8856 (unknown_language_data): ...this.
8857 (class unknown_language): New class.
8858 (unknown_language_defn): New static global.
8859 (auto_language_defn): Convert to...
8860 (auto_language_data): ...this.
8861 (class auto_language): New class.
8862 (auto_language_defn): New static global.
8863 (language_gdbarch_post_init): Use language_defn::languages.
8864 (_initialize_language): Initialize current_language.
8865 * gdb/language.h (struct language_defn): Rename to...
8866 (struct language_data): ...this.
8867 (struct language_defn): New.
8868 (auto_language_defn): Delete.
8869 (unknown_language_defn): Delete.
8870 (minimal_language_defn): Delete.
8871 (ada_language_defn): Delete.
8872 (asm_language_defn): Delete.
8873 (c_language_defn): Delete.
8874 (cplus_language_defn): Delete.
8875 (d_language_defn): Delete.
8876 (f_language_defn): Delete.
8877 (go_language_defn): Delete.
8878 (m2_language_defn): Delete.
8879 (objc_language_defn): Delete.
8880 (opencl_language_defn): Delete.
8881 (pascal_language_defn): Delete.
8882 (rust_language_defn): Delete.
8883 * gdb/m2-lang.c (m2_language_defn): Convert to...
8884 (m2_language_data): ...this.
8885 (class m2_language): New class.
8886 (m2_language_defn): New static global.
8887 * gdb/objc-lang.c (objc_language_defn): Convert to...
8888 (objc_language_data): ...this.
8889 (class objc_language): New class.
8890 (objc_language_defn): New static global.
8891 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
8892 (opencl_language_data): ...this.
8893 (class opencl_language): New class.
8894 (opencl_language_defn): New static global.
8895 * gdb/p-lang.c (pascal_language_defn): Convert to...
8896 (pascal_language_data): ...this.
8897 (class pascal_language): New class.
8898 (pascal_language_defn): New static global.
8899 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
8900 language pointer, update comment format.
8901 * gdb/rust-lang.c (rust_language_defn): Convert to...
8902 (rust_language_data): ...this.
8903 (class rust_language): New class.
8904 (rust_language_defn): New static global.
8905
1313c56e
AB
89062020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
8907
8908 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
8909 member variable.
8910 <m_stmt_at_address>: New member variable.
8911 (lnp_state_machine::record_line): Don't record some lines, update
8912 tracking of is_stmt at the same address.
8913 (lnp_state_machine::lnp_state_machine): Initialise new member
8914 variables.
8915
b7ed9f3d
ST
89162020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
8917
8918 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
8919 "-include gnu-nat-mig.h".
8920 * gnu-nat-mig.h: New file.
8921 * gnu-nat.c: Include "gnu-nat-mig.h".
8922 (exc_server, msg_reply_server, notify_server,
8923 process_reply_server): Remove declarations.
8924
14a8ad62
ST
89252020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8926
8927 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
8928 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
8929 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
8930 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
8931 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
8932 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
8933 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
8934 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
8935 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
8936 to gnu_nat_target class.
8937 * gnu-nat.c: Likewise.
8938 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
8939 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
8940 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
8941 object.
8942 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
8943 instead of `gnu_target'.
8944
0af5e106
ST
89452020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8946
8947 * i386-gnu-tdep.c: Include "gdbcore.h"
8948 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
8949 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
8950 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
8951 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
8952 i386_gnu_sigcontext_addr): New functions
8953 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
8954 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
8955 tdep.
8956
078f2fc9
ST
89572020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8958
8959 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
8960 before fork_inferior call. Avoid calling it if target_is_pushed returns
8961 true.
8962
53dff92c
ST
89632020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8964
8965 * gnu-nat.h (gnu_target): New variable declaration.
8966 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
8967 gnu_target.
8968 * gnu-nat.c (gnu_target): New variable.
8969 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
8970 add_thread_silent, and add_thread calls.
8971 (gnu_nat_target::create_inferior): Pass gnu_target to
8972 add_thread_silent, thread_change_ptid call.
8973 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
8974 call.
8975
5a8b8627
ST
89762020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8977
8978 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
8979 (gnu_nat_target::find_memory_regions): Remove unused
8980 `old_address' variable.
8981
366f550a
ST
89822020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8983
8984 * gnu-nat.c: Include "gdbarch.h".
8985
f14871bf
ST
89862020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8987
8988 * reply_mig_hack.awk (Error return): Cast function through
8989 void *, to bypass compiler function call check.
8990
c6887cfb
ST
89912020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8992
8993 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
8994 $(srcdir)/reply_mig_hack.awk.
8995
6930bffe
ST
89962020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8997
8998 * gnu-nat.h (gnu_debug_flag): Set type to bool.
8999
112c22ed
JG
90002020-05-30 Jonny Grant <jg@jguk.org>
9001
9002 * configure.ac (ACX_BUGURL): change bug URL to https.
9003
f68f85b5
PA
90042020-05-30 Pedro Alves <palves@redhat.com>
9005
9006 * cp-support.c (replace_typedefs_template): New.
9007 (replace_typedefs_qualified_name): Handle
9008 DEMANGLE_COMPONENT_TEMPLATE.
9009
976ca316
SM
90102020-05-29 Simon Marchi <simon.marchi@efficios.com>
9011
9012 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
9013 dwarf2/index-cache.h, dwarf2/index-write.c,
9014 dwarf2/index-write.h, dwarf2/line-header.c,
9015 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
9016 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
9017 variables and fields from `dwarf2_per_objfile` to just
9018 `per_objfile` throughout.
9019
989ade05
SM
90202020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
9021
9022 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9023 <push_dwarf_reg_entry_value>: Add comment.
9024
c47bae85
KB
90252020-05-28 Kevin Buettner <kevinb@redhat.com>
9026 Keith Seitz <keiths@redhat.com>
9027
9028 * python/python.c (do_start_initialization): Call PyEval_SaveThread
9029 instead of PyEval_ReleaseLock.
9030 (class gdbpy_gil): Move to earlier in file.
9031 (finalize_python): Set gdb_python_initialized.
9032 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
9033 when not initialized.
9034
44486dcf
SM
90352020-05-28 Simon Marchi <simon.marchi@efficios.com>
9036
9037 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9038 <push_dwarf_reg_entry_value>: Remove assert. Override
9039 per_objfile with caller_per_objfile.
9040
f030440d
TV
90412020-05-28 Tom de Vries <tdevries@suse.de>
9042
9043 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
9044 PR gold/15646 workaround to symbol kind "type".
9045
f0fbb768
TT
90462020-05-27 Tom Tromey <tromey@adacore.com>
9047
9048 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
9049
af0b2a3e
TT
90502020-05-27 Tom Tromey <tromey@adacore.com>
9051
9052 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
9053 Use htab_find_with_hash.
9054 <add_abbrev>: Remove "abbrev_number" parameter.
9055 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
9056 "abbrev_number" parameter. Use htab_find_slot_with_hash.
9057 (hash_abbrev): Add comment.
9058 (abbrev_table::lookup_abbrev): Move to header file.
9059 (abbrev_table::read): Update.
9060
7d00ffec
TT
90612020-05-27 Tom Tromey <tromey@adacore.com>
9062
9063 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
9064 method.
9065 <canonical_name>: New member.
9066 <raw_name>: Rename from "name".
9067 (partial_die_info): Initialize canonical_name.
9068 (scan_partial_symbols): Check raw_name.
9069 (partial_die_parent_scope, partial_die_full_name)
9070 (add_partial_symbol, add_partial_subprogram)
9071 (add_partial_enumeration, load_partial_dies): Use "name" method.
9072 (partial_die_info::name): New method.
9073 (partial_die_info::read, guess_partial_die_structure_name)
9074 (partial_die_info::fixup): Update.
9075
697bba18
TT
90762020-05-27 Tom Tromey <tromey@adacore.com>
9077
9078 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
9079 <get_ref_die_offset>: Inline.
9080 <get_ref_die_offset_complaint>: New method.
9081 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
9082 (attribute::get_ref_die_offset_complaint): Rename from
9083 get_ref_die_offset. Just issue complaint.
9084
c17ace43
HD
90852020-05-27 Hannes Domani <ssbssa@yahoo.de>
9086
9087 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
9088
96445f0b
HD
90892020-05-27 Hannes Domani <ssbssa@yahoo.de>
9090
9091 * exec.c (exec_file_attach): Use errno value of first openp failure.
9092
ac637ec3
HD
90932020-05-27 Hannes Domani <ssbssa@yahoo.de>
9094
9095 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
9096 Don't close thread handle.
9097
17ee85fc
TT
90982020-05-27 Tom Tromey <tom@tromey.com>
9099 Simon Marchi <simon.marchi@efficios.com>
9100
9101 * objfiles.h (struct objfile) <partial_symtabs>: Now a
9102 shared_ptr.
9103 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
9104 member.
9105 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
9106 dwarf2_per_bfd_objfile_data_key>: New globals.
9107 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
9108 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
9109 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
9110 shared.
9111 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
9112 short-circuit when sharing.
9113 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
9114 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
9115
39b16f87
SM
91162020-05-27 Simon Marchi <simon.marchi@efficios.com>
9117
9118 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
9119 to...
9120 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
9121 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
9122
fcf23d5b
SM
91232020-05-27 Simon Marchi <simon.marchi@efficios.com>
9124
9125 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
9126 build_name_components, find_name_components_bounds>:
9127 Add per_objfile parameter.
9128 (struct mapped_index) <symbol_name_at>: Likewise.
9129 (struct mapped_debug_names): Remove constructor.
9130 <dwarf2_per_objfile>: Remove field.
9131 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
9132 (mapped_index_base::find_name_components_bounds,
9133 mapped_index_base::build_name_components,
9134 dw2_expand_symtabs_matching_symbol): Likewise.
9135 (class mock_mapped_index) <symbol_name_at>: Likewise.
9136 (check_match): Likewise.
9137 (check_find_bounds_finds): Likewise.
9138 (test_mapped_index_find_name_component_bounds): Update.
9139 (CHECK_MATCH): Update.
9140 (dw2_expand_symtabs_matching): Update.
9141 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
9142 per_objfile parameter.
9143 <find_vec_in_debug_names>: Likewise.
9144 <m_per_objfile>: New field.
9145 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
9146 parameter.
9147 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
9148 (dw2_debug_names_iterator::next): Update.
9149 (dw2_debug_names_lookup_symbol): Update.
9150 (dw2_debug_names_expand_symtabs_for_function): Update.
9151 (dw2_debug_names_map_matching_symbols): Update.
9152 (dw2_debug_names_expand_symtabs_matching): Update.
9153 (dwarf2_read_debug_names): Update.
9154
7188ed02
SM
91552020-05-27 Simon Marchi <simon.marchi@efficios.com>
9156
9157 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
9158 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
9159 move to dwarf2_per_objfile.
9160 <read_in_chain>: Remove.
9161 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
9162 remove_all_cus, age_comp_units>: New methods.
9163 <m_dwarf2_cus>: New member.
9164 (struct dwarf2_per_cu_data) <cu>: Remove.
9165 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
9166 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
9167 moved to methods of dwarf2_per_objfile.
9168 (dwarf2_clear_marks): Remove.
9169 (dwarf2_queue_item::~dwarf2_queue_item): Update.
9170 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
9171 (dwarf2_per_bfd::free_cached_comp_units): Remove.
9172 (dwarf2_per_objfile::remove_all_cus): New.
9173 (class free_cached_comp_units) <~free_cached_comp_units>:
9174 Update.
9175 (load_cu): Update.
9176 (dw2_do_instantiate_symtab): Adjust.
9177 (fill_in_sig_entry_from_dwo_entry): Adjust.
9178 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9179 (cutu_reader::cutu_reader): Likewise.
9180 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
9181 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
9182 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
9183 and dwarf2_per_objfile::age_comp_units.
9184 (load_partial_comp_unit): Update.
9185 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
9186 (process_queue): Likewise.
9187 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
9188 backlink.
9189 (dwarf2_read_addr_index): Likewise.
9190 (follow_die_offset): Likewise.
9191 (dwarf2_fetch_die_loc_sect_off): Likewise.
9192 (dwarf2_fetch_constant_bytes): Likewise.
9193 (dwarf2_fetch_die_type_sect_off): Likewise.
9194 (follow_die_sig_1): Likewise.
9195 (load_full_type_unit): Likewise.
9196 (read_signatured_type): Likewise.
9197 (dwarf2_cu::dwarf2_cu): Don't set cu field.
9198 (dwarf2_cu::~dwarf2_cu): Remove.
9199 (dwarf2_per_objfile::get_cu): New.
9200 (dwarf2_per_objfile::set_cu): New.
9201 (age_cached_comp_units): Rename to...
9202 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
9203 to std::unordered_map.
9204 (free_one_cached_comp_unit): Rename to...
9205 (dwarf2_per_objfile::remove_cu): ... this. Adjust
9206 to std::unordered_map.
9207 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
9208 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
9209 a dwarf2_per_objfile in data.
9210 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
9211 (dwarf2_clear_marks): Remove.
9212
2e671100
SM
92132020-05-27 Simon Marchi <simon.marchi@efficios.com>
9214
9215 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
9216 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
9217 (init_tu_and_read_dwo_dies): Likewise.
9218 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
9219 (cutu_reader::cutu_reader): Likewise.
9220 (load_partial_comp_unit): Likewise.
9221 (process_psymtab_comp_unit): Update.
9222 (build_type_psymtabs_1): Update.
9223 (process_skeletonless_type_unit): Update.
9224 (load_full_comp_unit): Update.
9225 (find_partial_die): Update.
9226 (dwarf2_read_addr_index): Update.
9227 (read_signatured_type): Update.
9228
2e6a9f79
SM
92292020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9230
9231 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
9232 m_header_read_in>: New fields.
9233 <get_header>: New method.
9234 * dwarf2/read.c (per_cu_header_read_in): Remove.
9235 (dwarf2_per_cu_data::get_header): New.
9236 (dwarf2_per_cu_data::addr_size): Update.
9237 (dwarf2_per_cu_data::offset_size): Update.
9238 (dwarf2_per_cu_data::ref_addr_size): Update.
9239
1b555f17
SM
92402020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9241
9242 * dwarf2/read.c (load_cu): Return dwarf2_cu.
9243 (dw2_do_instantiate_symtab): Update.
9244 (queue_and_load_all_dwo_tus): Change parameter from
9245 dwarf2_per_cu_data to dwarf2_cu.
9246 (dwarf2_fetch_die_loc_sect_off): Update.
9247 (dwarf2_fetch_constant_bytes): Update.
9248 (dwarf2_fetch_die_type_sect_off): Update.
9249
8fc0b21d
SM
92502020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9251
9252 * dwarf2/read.c (process_full_comp_unit,
9253 process_full_type_unit): Remove per_cu, per_objfile paramters.
9254 Add dwarf2_cu parameter.
9255 (process_queue): Update.
9256
168c9250
SM
92572020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9258
9259 * dwarf2/read.c (create_cu_from_index_list): Replace
9260 dwarf2_per_objfile parameter with dwarf2_per_bfd.
9261 (create_cus_from_index_list): Likewise.
9262 (create_cus_from_index): Likewise.
9263 (create_signatured_type_table_from_index): Likewise.
9264 (create_cus_from_debug_names_list): Likewise.
9265 (create_cus_from_debug_names): Likewise.
9266 (dwarf2_read_gdb_index): Update.
9267 (dwarf2_read_debug_names): Update.
9268
e286671b
TT
92692020-05-27 Tom Tromey <tom@tromey.com>
9270 Simon Marchi <simon.marchi@efficios.com>
9271
9272 * dwarf2/read.h (struct dwarf2_per_objfile)
9273 <get_type_for_signatured_type, set_type_for_signatured_type>:
9274 New methods.
9275 <m_type_map>: New member.
9276 (struct signatured_type) <type>: Remove.
9277 * dwarf2/read.c
9278 (dwarf2_per_objfile::get_type_for_signatured_type,
9279 dwarf2_per_objfile::set_type_for_signatured_type): New.
9280 (get_signatured_type): Use new methods.
9281
8adb8487
TT
92822020-05-27 Tom Tromey <tom@tromey.com>
9283 Simon Marchi <simon.marchi@efficios.com>
9284
9285 * dwarf2/read.h (struct type_unit_group_unshareable): New.
9286 (struct dwarf2_per_objfile) <type_units>: New member.
9287 <get_type_unit_group_unshareable>: New method.
9288 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
9289 num_symtabs, symtabs>: Remove; move to
9290 type_unit_group_unshareable.
9291 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
9292 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
9293 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
9294
127bbf4b
SM
92952020-05-27 Simon Marchi <simon.marchi@efficios.com>
9296
9297 * dwarf2/read.h (struct dwarf2_per_cu_data):
9298 <dwarf2_per_objfile>: Remove.
9299 * dwarf2/read.c (create_cu_from_index_list): Don't assign
9300 dwarf2_per_objfile.
9301 (create_signatured_type_table_from_index): Likewise.
9302 (create_signatured_type_table_from_debug_names): Likewise.
9303 (create_debug_type_hash_table): Likewise.
9304 (fill_in_sig_entry_from_dwo_entry): Likewise.
9305 (create_type_unit_group): Likewise.
9306 (read_comp_units_from_section): Likewise.
9307 (create_cus_hash_table): Likewise.
9308
f6e649dd
SM
93092020-05-27 Simon Marchi <simon.marchi@efficios.com>
9310
9311 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
9312 dwarf2_per_cu_data::dwarf2_per_objfile.
9313 (compute_compunit_symtab_includes): Likewise.
9314 (dwarf2_cu::start_symtab): Likewise.
9315
aa66c379
SM
93162020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9317
9318 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
9319 parameter.
9320 * dwarf2/read.c (get_die_type_at_offset): Likewise.
9321 (read_namespace_alias): Update.
9322 (lookup_die_type): Update.
9323 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
9324 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
9325 Update.
9326 (disassemble_dwarf_expression): Update.
9327
120ce1b5
SM
93282020-05-27 Simon Marchi <simon.marchi@efficios.com>
9329
9330 * dwarf2/read.h (struct dwarf2_queue_item): Add
9331 dwarf2_per_objfile parameter, assign new parameter.
9332 <per_objfile>: New field.
9333 * dwarf2/read.c (free_one_cached_comp_unit): Add
9334 dwarf2_per_objfile parameter.
9335 (queue_comp_unit): Likewise.
9336 (dw2_do_instantiate_symtab): Update.
9337 (process_psymtab_comp_unit): Update.
9338 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
9339 (process_imported_unit_die): Update.
9340 (queue_and_load_dwo_tu): Update.
9341 (follow_die_offset): Update.
9342 (follow_die_sig_1): Update.
9343
9f47c707
SM
93442020-05-27 Simon Marchi <simon.marchi@efficios.com>
9345
9346 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
9347 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
9348 (read_call_site_scope): Assign per_objfile.
9349 (dwarf2_per_cu_data::objfile): Remove.
9350 * gdbtypes.h (struct call_site) <per_objfile>: New member.
9351 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
9352 dwarf2_per_objfile parameter.
9353 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
9354 dwarf2_per_objfile parameter.
9355 (dwarf_expr_reg_to_entry_parameter): Add output
9356 dwarf2_per_objfile parameter.
9357 (locexpr_get_frame_base): Update.
9358 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
9359 <push_dwarf_reg_entry_value>: Update.
9360 <call_site_to_target_addr>: Update.
9361 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
9362 parameter.
9363 (value_of_dwarf_reg_entry): Update.
9364 (rw_pieced_value): Update.
9365 (indirect_synthetic_pointer): Update.
9366 (dwarf2_evaluate_property): Update.
9367 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
9368 parameter.
9369 (locexpr_read_variable): Update.
9370 (locexpr_get_symbol_read_needs): Update.
9371 (loclist_read_variable): Update.
9372
14095eb3
SM
93732020-05-27 Simon Marchi <simon.marchi@efficios.com>
9374
9375 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9376 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9377 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9378 parameter.
9379 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9380 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9381 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9382 parameter.
9383 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
9384 sect_variable_value): Add dwarf2_per_objfile parameter.
9385 (class dwarf_evaluate_loc_desc) <dwarf_call,
9386 dwarf_variable_value>: Update.
9387 (fetch_const_value_from_synthetic_pointer): Add
9388 dwarf2_per_objfile parameter.
9389 (fetch_const_value_from_synthetic_pointer): Update.
9390 (coerced_pieced_ref): Update.
9391 (class symbol_needs_eval_context) <dwarf_call,
9392 dwarf_variable_value>: Update.
9393 (dwarf2_compile_expr_to_ax): Update.
9394
3c3cd3d4
SM
93952020-05-27 Simon Marchi <simon.marchi@efficios.com>
9396
9397 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
9398 parameter.
9399 (dwarf2_evaluate_loc_desc_full): Update.
9400
82ca3f51
SM
94012020-05-27 Simon Marchi <simon.marchi@efficios.com>
9402
9403 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
9404 parameter.
9405 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
9406 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
9407 dwarf2_per_objfile parameter.
9408 (decode_debug_loc_dwo_addresses): Likewise.
9409 (dwarf2_find_location_expression): Update.
9410 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
9411 (locexpr_describe_location_piece): Add dwarf2_per_objfile
9412 parameter.
9413 (disassemble_dwarf_expression): Add dwarf2_per_objfile
9414 parameter.
9415 (locexpr_describe_location_1): Likewise.
9416 (locexpr_describe_location): Update.
9417
4b167ea1
SM
94182020-05-27 Simon Marchi <simon.marchi@efficios.com>
9419
9420 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
9421 Remove.
9422 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
9423 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
9424 (dwarf2_compile_property_to_c): Update.
9425 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
9426 use text offset from objfile.
9427 (locexpr_tracepoint_var_ref): Update.
9428 (locexpr_generate_c_location): Update.
9429 (loclist_describe_location): Update.
9430 (loclist_tracepoint_var_ref): Update.
9431 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
9432 dwarf2_per_objfile parameter.
9433 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
9434 use text offset from objfile.
9435 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
9436
89b07335
SM
94372020-05-27 Simon Marchi <simon.marchi@efficios.com>
9438
9439 * dwarf2/expr.h (struct dwarf_expr_context)
9440 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
9441 <offset>: Remove.
9442 <per_objfile>: New member.
9443 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
9444 dwarf2_per_objfile parameter. Don't set offset, set
9445 per_objfile.
9446 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
9447 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
9448 a dwarf2_per_objfile object instead of an offset.
9449 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
9450 constructor.
9451 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
9452 to dwarf2_expr_executor constructor. Don't set offset.
9453 (dwarf2_fetch_cfa_info): Update.
9454 (struct dwarf2_frame_cache) <text_offset>: Remove.
9455 <per_objfile>: New field.
9456 (dwarf2_frame_cache): Update.
9457 (dwarf2_frame_prev_register): Update.
9458 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9459 <dwarf_evaluate_loc_desc>: Add constructor.
9460 (dwarf2_evaluate_loc_desc_full): Update.
9461 (dwarf2_locexpr_baton_eval): Update.
9462 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
9463 Add constructor.
9464 (dwarf2_loc_desc_get_symbol_read_needs): Update.
9465
293e7e51
SM
94662020-05-27 Simon Marchi <simon.marchi@efficios.com>
9467
9468 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
9469 addr_sized_int_type>: Move to dwarf2_cu.
9470 <int_type>: Move to dwarf2_per_objfile.
9471 (struct dwarf2_per_objfile) <int_type>: Move here.
9472 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
9473 addr_sized_int_type>: Move here.
9474 (read_func_scope): Update.
9475 (read_array_type): Update.
9476 (read_tag_string_type): Update.
9477 (attr_to_dynamic_prop): Update.
9478 (dwarf2_per_cu_data::int_type): Rename to...
9479 (dwarf2_per_objfile::int_type): ... this.
9480 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
9481 (dwarf2_cu::addr_sized_int_type): ... this.
9482 (read_subrange_type): Update.
9483 (dwarf2_per_cu_data::addr_type): Rename to...
9484 (dwarf2_cu::addr_type): ... this.
9485 (set_die_type): Update.
9486
64874a40
SM
94872020-05-27 Simon Marchi <simon.marchi@efficios.com>
9488
9489 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
9490 data through per_cu->cu.
9491
4ab09049
SM
94922020-05-27 Simon Marchi <simon.marchi@efficios.com>
9493
9494 * dwarf2/read.c (lookup_dwo_comp_unit): Change
9495 dwarf2_per_cu_data parameter fo dwarf2_cu.
9496 (lookup_dwo_type_unit): Likewise.
9497 (read_cutu_die_from_dwo): Likewise.
9498 (lookup_dwo_unit): Likewise.
9499 (open_and_init_dwo_file): Likewise.
9500 (lookup_dwo_cutu): Likewise.
9501 (lookup_dwo_comp_unit): Likewise.
9502 (lookup_dwo_type_unit): Likewise.
9503 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9504 (cutu_reader::cutu_reader): Update.
9505
47b14e86
SM
95062020-05-27 Simon Marchi <simon.marchi@efficios.com>
9507
9508 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
9509 parameter.
9510 (process_full_type_unit): Likewise.
9511 (process_queue): Update.
9512
43182c09
SM
95132020-05-27 Simon Marchi <simon.marchi@efficios.com>
9514
9515 * dwarf2/read.c (recursively_compute_inclusions): Add
9516 dwarf2_per_objfile parameter.
9517 (compute_compunit_symtab_includes): Likewise.
9518 (process_cu_includes): Update.
9519
7aa104c4
SM
95202020-05-27 Simon Marchi <simon.marchi@efficios.com>
9521
9522 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
9523 parameter.
9524 (create_type_unit_group): Update.
9525 (process_psymtab_comp_unit_reader): Update.
9526 (build_type_psymtabs_reader): Update.
9527
e3beb21d
SM
95282020-05-27 Simon Marchi <simon.marchi@efficios.com>
9529
9530 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
9531 object through m_this_cu->cu.
9532
d460f660
SM
95332020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9534
9535 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
9536 the info parameter.
9537 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
9538
ab432490
SM
95392020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9540
9541 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
9542 per_objfile parameter.
9543 (load_full_type_unit): Add per_objfile parameter.
9544 (read_signatured_type): Likewise.
9545 (load_full_comp_unit): Likewise.
9546 (load_cu): Likewise.
9547 (dw2_do_instantiate_symtab): Likewise.
9548 (dw2_get_file_names): Likewise.
9549 (dw2_map_symtabs_matching_filename): Update.
9550 (dw_expand_symtabs_matching_file_matcher): Update.
9551 (dw2_map_symbol_filenames): Update.
9552 (process_psymtab_comp_unit): Add per_objfile parameter.
9553 (build_type_psymtabs_1): Update.
9554 (process_skeletonless_type_unit): Update.
9555 (dwarf2_build_psymtabs_hard): Update.
9556 (load_partial_comp_unit): Add per_objfile parameter.
9557 (scan_partial_symbols): Update.
9558 (load_full_comp_unit): Add per_objfile parameter.
9559 (process_imported_unit_die): Update.
9560 (create_cus_hash_table): Update.
9561 (find_partial_die): Update.
9562 (dwarf2_read_addr_index): Update.
9563 (follow_die_offset): Update.
9564 (dwarf2_fetch_die_loc_sect_off): Update.
9565 (dwarf2_fetch_constant_bytes): Update.
9566 (dwarf2_fetch_die_type_sect_off): Update.
9567 (follow_die_sig_1): Update.
9568 (load_full_type_unit): Add per_objfile parameter.
9569 (read_signatured_type): Likewise.
9570
313bad1b
SM
95712020-05-27 Simon Marchi <simon.marchi@efficios.com>
9572
9573 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
9574 of objfile_name.
9575
c3699833
SM
95762020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9577
9578 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
9579 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9580 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
9581 field.
9582 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9583 (create_cus_from_index): Update.
9584 (dwarf2_read_gdb_index): Update.
9585 (create_cus_from_debug_names): Update.
9586 (dwarf2_read_debug_names): Update.
9587 (get_abbrev_section_for_cu): Update.
9588 (create_all_comp_units): Update.
9589 (read_attribute_value): Update.
9590 (get_debug_line_section): Update.
9591 * dwarf2/index-cache.c (index_cache::store): Update.
9592 * dwarf2/index-write.c (save_gdb_index_command): Update.
9593 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
9594
1859c670
SM
95952020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9596
9597 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
9598 member.
9599 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
9600 dwarf2_per_cu_data::per_bfd.
9601 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
9602 (create_type_unit_group): Likewise.
9603 (queue_comp_unit): Remove reference to
9604 per_cu->dwarf2_per_objfile.
9605 (maybe_queue_comp_unit): Likewise.
9606 (fill_in_sig_entry_from_dwo_entry): Assign new field.
9607 (create_cus_hash_table): Assign new field.
9608
5e22e966
SM
96092020-05-27 Simon Marchi <simon.marchi@efficios.com>
9610
9611 * dwarf2/read.c: Replace
9612 dwarf2_cu->per_cu->dwarf2_per_objfile references with
9613 dwarf2_cu->per_objfile throughout.
9614
97a1449a
SM
96152020-05-27 Simon Marchi <simon.marchi@efficios.com>
9616
9617 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
9618 parameter, don't use per_cu->dwarf2_per_objfile.
9619 (dw2_instantiate_symtab): Likewise.
9620 (dw2_find_last_source_symtab): Update.
9621 (dw2_map_expand_apply): Update.
9622 (dw2_lookup_symbol): Update.
9623 (dw2_expand_symtabs_for_function): Update.
9624 (dw2_expand_all_symtabs): Update.
9625 (dw2_expand_symtabs_with_fullname): Update.
9626 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
9627 don't use per_cu->dwarf2_per_objfile.
9628 (dw2_expand_marked_cus): Update.
9629 (dw2_find_pc_sect_compunit_symtab): Update.
9630 (dw2_debug_names_lookup_symbol): Update.
9631 (dw2_debug_names_expand_symtabs_for_function): Update.
9632 (dw2_debug_names_map_matching_symbols): Update.
9633 (dwarf2_psymtab::expand_psymtab): Update.
9634
9e021579
SM
96352020-05-27 Simon Marchi <simon.marchi@efficios.com>
9636
9637 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
9638 <per_objfile>: New member.
9639 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
9640 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
9641 call to dwarf2_cu.
9642 (cutu_reader::cutu_reader): Update.
9643 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
9644
ae090bdb
SM
96452020-05-27 Simon Marchi <simon.marchi@efficios.com>
9646
9647 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
9648 struct dwarf2_per_objfile.
9649 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
9650 dwarf2_per_bfd.
9651 * dwarf2/read.c (set_die_type): Update.
9652 (get_die_type_at_offset): Update.
9653
af758d11
SM
96542020-05-27 Tom Tromey <tom@tromey.com>
9655 Simon Marchi <simon.marchi@efficios.com>
9656
9657 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
9658 method.
9659 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
9660 get_symtab, set_symtab>: New methods.
9661 <m_symtabs>: New field.
9662 (struct dwarf2_psymtab): Derive from partial_symtab.
9663 <readin_p, get_compunit_symtab>: Declare methods.
9664 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
9665 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
9666 New methods.
9667 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
9668 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
9669 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
9670 (dw2_symtab_iter_next, dw2_print_stats)
9671 (dw2_expand_symtabs_with_fullname)
9672 (dw2_expand_symtabs_matching_one)
9673 (dw_expand_symtabs_matching_file_matcher)
9674 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
9675 (dw2_debug_names_iterator::next)
9676 (dw2_debug_names_map_matching_symbols)
9677 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
9678 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
9679 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
9680 New methods.
9681 (get_compunit_symtab, process_full_comp_unit)
9682 (process_full_type_unit): Update.
9683 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
9684
5989a64e
SM
96852020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9686
9687 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
9688 then introduce a new dwarf2_per_objfile type.
9689 <read_line_string>: Move to the new dwarf2_per_objfile type.
9690 <objfile>: Likewise.
9691 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
9692 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
9693 dwarf2_per_objfile->per_bfd.
9694 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
9695 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
9696 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
9697 (dwarf2_per_bfd::free_cached_comp_units): ... this.
9698 (dwarf2_has_info): Allocate dwarf2_per_bfd.
9699 (dwarf2_per_objfile::locate_sections): Rename to...
9700 (dwarf2_per_bfd::locate_sections): ... this.
9701 (dwarf2_per_objfile::get_cutu): Rename to...
9702 (dwarf2_per_bfd::get_cutu): ... this.
9703 (dwarf2_per_objfile::get_cu): Rename to...
9704 (dwarf2_per_bfd::get_cu): ... this.
9705 (dwarf2_per_objfile::get_tu): Rename to...
9706 (dwarf2_per_bfd::get_tu): ... this.
9707 (dwarf2_per_objfile::allocate_per_cu): Rename to...
9708 (dwarf2_per_bfd::allocate_per_cu): ... this.
9709 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
9710 (dwarf2_per_bfd::allocate_signatured_type): ... this.
9711 (get_gdb_index_contents_ftype): Change parameter from
9712 dwarf2_per_objfile to dwarf2_per_bfd.
9713 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
9714 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
9715
a50264ba
TT
97162020-05-27 Tom Tromey <tom@tromey.com>
9717 Simon Marchi <simon.marchi@efficios.com>
9718
9719 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
9720 (allocate_piece_closure): Set "per_objfile" member.
9721 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
9722 (locexpr_describe_location, loclist_describe_location): Use new
9723 member.
9724 * dwarf2/read.c (read_call_site_scope)
9725 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
9726 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
9727 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
9728 handle_data_member_location): Set per_objfile member.
9729 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
9730 member.
9731 (struct dwarf2_loclist_baton) <per_objfile>: New member.
9732
d3473f0c
TT
97332020-05-27 Tom Tromey <tom@tromey.com>
9734
9735 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
9736 allocate_signatured_type>: Declare new methods.
9737 <m_num_psymtabs>: New member.
9738 (struct dwarf2_per_cu_data) <index>: New member.
9739 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
9740 (dwarf2_per_objfile::allocate_signatured_type): New methods.
9741 (create_cu_from_index_list): Use allocate_per_cu.
9742 (create_signatured_type_table_from_index)
9743 (create_signatured_type_table_from_debug_names)
9744 (create_debug_type_hash_table, add_type_unit)
9745 (read_comp_units_from_section): Use allocate_signatured_type.
9746
5717c425
TT
97472020-05-27 Tom Tromey <tom@tromey.com>
9748
9749 * psymtab.c (partial_map_expand_apply)
9750 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9751 (psym_lookup_global_symbol_language)
9752 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9753 (psym_print_stats, psym_expand_symtabs_for_function)
9754 (psym_map_symbol_filenames, psym_map_matching_symbols)
9755 (psym_expand_symtabs_matching)
9756 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9757 (maintenance_check_psymtabs): Update.
9758 * psympriv.h (struct partial_symtab) <readin_p,
9759 get_compunit_symtab>: Add objfile parameter.
9760 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
9761 Likewise.
9762 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
9763 get_compunit_symtab>: Likewise.
9764 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
9765
45940949
TT
97662020-05-27 Tom Tromey <tom@tromey.com>
9767
9768 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
9769 member.
9770 * dwarf2/read.c (delete_file_name_entry): Fix comment.
9771 (create_cu_from_index_list)
9772 (create_signatured_type_table_from_index)
9773 (create_signatured_type_table_from_debug_names)
9774 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
9775 (dwarf2_create_include_psymtab)
9776 (create_debug_type_hash_table, add_type_unit)
9777 (create_type_unit_group, read_comp_units_from_section)
9778 (dwarf2_compute_name, create_cus_hash_table)
9779 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9780 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
9781 obstack.
9782 (dw2_get_real_path): Likewise. Change argument to
9783 dwarf2_per_objfile.
9784
f8c6d152
LM
97852020-05-27 Luis Machado <luis.machado@linaro.org>
9786
9787 PR tdep/26000
9788 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
9789 for ldrd (immediate).
9790
e98d2e6d
PW
97912020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9792
9793 * command.h: Add comment giving the name of class_tui.
9794 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
9795 create the fake command for the help for class_tui.
9796
53a47a3e
TT
97972020-05-26 Tom Tromey <tromey@adacore.com>
9798
9799 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
9800 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
9801 (val_atr): New function.
9802 (value_val_atr): Use it.
9803 * ada-valprint.c (print_optional_low_bound): Change low bound
9804 handling for enums.
9805 (val_print_packed_array_elements): Don't call discrete_position.
9806 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
9807 discrete_position for enum types.
9808 * language.c (default_print_array_index): Change type.
9809 * language.h (struct language_defn) <la_print_array_index>: Add
9810 index_type parameter, change type of index_value.
9811 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
9812 (default_print_array_index): Update.
9813 * valprint.c (maybe_print_array_index): Don't call
9814 value_from_longest. Update.
9815 (value_print_array_elements): Don't call discrete_position.
9816
0bc2354b
TT
98172020-05-26 Tom Tromey <tromey@adacore.com>
9818
9819 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
9820 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
9821
1218a4bf
CDA
98222020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
9823
9824 PR gdb/13519
9825 * avr-tdep.c (avr_integer_to_address): Return data or code
9826 address accordingly to the second 'type' argument of the
9827 function.
9828
92651b1d
MW
98292020-05-25 Michael Weghorn <m.weghorn@posteo.de>
9830
9831 * infcmd.c, inferior.h: (construct_inferior_arguments):
9832 Moved function from here to gdbsupport/common-inferior.{h,cc}
9833
0a4f5f8c
TT
98342020-05-23 Tom Tromey <tom@tromey.com>
9835
9836 Revert commit eca1f90c:
9837 * NEWS: Remove entry for completion styling.
9838 * completer.c (_rl_completion_prefix_display_length): Move
9839 declaration later.
9840 (gdb_fnprint): Revert.
9841 (gdb_display_match_list_1): Likewise.
9842 * cli/cli-style.c (completion_prefix_style)
9843 (completion_difference_style, completion_suffix_style): Remove.
9844 (_initialize_cli_style): Revert.
9845 * cli/cli-style.h (completion_prefix_style)
9846 (completion_difference_style, completion_suffix_style): Don't
9847 declare.
9848
e08bd6c5
PA
98492020-05-24 Pedro Alves <palves@redhat.com>
9850
9851 * symtab.c (completion_list_add_name): Return boolean indication
9852 of whether the symbol matched.
9853 (completion_list_add_symbol): Don't try to remove C++ aliases if
9854 the symbol didn't match in the first place.
9855 * symtab.h (completion_list_add_name): Return bool.
9856
ceacbf6e
SM
98572020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
9858
9859 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
9860 type::field.
9861
26f16254
JB
98622020-05-23 Joel Brobecker <brobecker@adacore.com>
9863
9864 GDB 9.2 released.
9865
eca1f90c
TT
98662020-05-23 Tom Tromey <tom@tromey.com>
9867
9868 * NEWS: Add entry for completion styling.
9869 * completer.c (_rl_completion_prefix_display_length): Move
9870 declaration earlier.
9871 (gdb_fnprint): Use completion_style.
9872 (gdb_display_match_list_1): Likewise.
9873 * cli/cli-style.c (completion_prefix_style)
9874 (completion_difference_style, completion_suffix_style): New
9875 globals.
9876 (_initialize_cli_style): Register new globals.
9877 * cli/cli-style.h (completion_prefix_style)
9878 (completion_difference_style, completion_suffix_style): Declare.
9879
51e2cfa2
PA
98802020-05-23 Pedro Alves <palves@redhat.com>
9881
9882 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
9883 (parse_escape): Use ISDIGIT instead of isdigit.
9884 (puts_debug): Use gdb_isprint instead of isprint.
9885 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
9886 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
9887 ISSPACE instead of isspace.
9888 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
9889 instead of isspace.
9890 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
9891 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
9892 instead of isxdigit and ISDIGIT instead of isdigit.
9893
80fc5e77
SM
98942020-05-22 Simon Marchi <simon.marchi@efficios.com>
9895
9896 * gdbtypes.h (struct type) <field>: New method.
9897 (TYPE_FIELDS): Remove, replace all uses with either type::fields
9898 or type::field.
9899
3cabb6b0
SM
99002020-05-22 Simon Marchi <simon.marchi@efficios.com>
9901
9902 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
9903 (TYPE_FIELDS): Use type::fields. Change all call sites that
9904 modify the propery to use type::set_fields instead.
9905
1f704f76
SM
99062020-05-22 Simon Marchi <simon.marchi@efficios.com>
9907
9908 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
9909 type::num_fields instead.
9910
5e33d5f4
SM
99112020-05-22 Simon Marchi <simon.marchi@efficios.com>
9912
9913 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
9914 methods.
9915 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
9916 that modify the number of fields to use type::set_num_fields
9917 instead.
9918
9392ebb3
TT
99192020-05-22 Tom Tromey <tromey@adacore.com>
9920
9921 * compile/compile-object-load.h (munmap_list_free): Don't
9922 declare.
9923
7c13f4e8
AB
99242020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
9925
9926 * annotate.c (annotate_source_line): Update return type, add call
9927 to update current symtab and line.
9928 * annotate.h (annotate_source_line): Update return type, and
9929 extend header comment.
9930 * source.c (info_line_command): Check annotation_level before
9931 calling annotate_source_line.
9932 * stack.c (print_frame_info): If calling annotate_source_line
9933 returns true, then don't print any other source line information.
9934
aa370940
SM
99352020-05-21 Simon Marchi <simon.marchi@efficios.com>
9936
9937 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
9938
84d53fa9
SM
99392020-05-21 Simon Marchi <simon.marchi@efficios.com>
9940
9941 * coffread.c (patch_type): Remove NULL check before xfree.
9942 * corefile.c (set_gnutarget): Likewise.
9943 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
9944 * exec.c (build_section_table): Likewise.
9945 * remote.c (remote_target::pass_signals): Likewise.
9946 * utils.c (n_spaces): Likewise.
9947 * cli/cli-script.c (document_command): Likewise.
9948 * i386-windows-tdep.c (core_process_module_section): Likewise.
9949 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
9950
9d428aae
SM
99512020-05-20 Simon Marchi <simon.marchi@efficios.com>
9952
9953 * symfile.c (reread_symbols): Clear objfile's section_offsets
9954 vector and section indices, re-compute them by calling
9955 sym_offsets.
9956
250106a7
TT
99572020-05-20 Tom Tromey <tromey@adacore.com>
9958
9959 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 9960 (desc_one_bound, desc_index_type): Compute field name.
250106a7 9961
9a0bacfb
TV
99622020-05-20 Tom de Vries <tdevries@suse.de>
9963
9964 PR symtab/25833
9965 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
9966
7b958a48
AM
99672020-05-20 Alan Modra <amodra@gmail.com>
9968
9969 PR 25993
9970 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
9971 bfd_set_filename.
9972 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
9973 passed to bfd_set_filename.
9974 * symfile-mem.c (add_vsyscall_page): Likewise for string
9975 passed to symbol_file_add_from_memory.
9976 (symbol_file_add_from_memory): Make name param a const char* and
9977 don't strdup.
9978
c7e97679
AM
99792020-05-20 Alan Modra <amodra@gmail.com>
9980
9981 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
9982 rather than accessing bfd->filename directly.
9983 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
9984 and use bfd_section_name.
9985 * dwarf2/frame.c (decode_frame_entry): Likewise.
9986 * exec.c (exec_set_section_address): Likewise.
9987 * solib-aix.c (solib_aix_bfd_open): Likewise.
9988 * stap-probe.c (get_stap_base_address): Likewise.
9989 * symfile.c (reread_symbols): Likewise.
9990
563c591b
TT
99912020-05-19 Tom Tromey <tromey@adacore.com>
9992
9993 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
9994
f408d82c
SM
99952020-05-19 Simon Marchi <simon.marchi@efficios.com>
9996
9997 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
9998
98c59b52
PA
99992020-05-19 Pedro Alves <palves@redhat.com>
10000
10001 * NEWS (set exec-file-mismatch): Adjust entry.
10002 * exec.c: Include "build-id.h".
10003 (validate_exec_file): Try to match build IDs instead of filenames.
10004 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
10005 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
10006 and pass down 'warn_if_slow'.
10007 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
10008 gdb_bfd_open_closure to pass it down.
10009 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
10010
4111f652
PA
100112020-05-19 Pedro Alves <palves@redhat.com>
10012
10013 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
10014 * target.c (target_fileio_open_1): Rename to target_fileio_open
10015 and make extern. Use bool.
10016 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
10017 (target_fileio_read_alloc_1): Adjust.
10018 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
10019 (target_fileio_open_warn_if_slow): Delete declaration.
10020
ad80db5b
PA
100212020-05-19 Pedro Alves <palves@redhat.com>
10022
10023 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
10024 Adjust all callers.
10025
1d6ce4d3
YS
100262020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
10027
10028 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
10029 whether disp is negative.
10030
9005fbbb
SM
100312020-05-19 Simon Marchi <simon.marchi@efficios.com>
10032
10033 * symfile.h (struct symfile_segment_data)
10034 <~symfile_segment_data>: Remove.
10035 <segment_info>: Change to std::vector.
10036 * symfile.c (default_symfile_segments): Update.
10037 * elfread.c (elf_symfile_segments): Update.
10038
68b888ff
SM
100392020-05-19 Simon Marchi <simon.marchi@efficios.com>
10040
10041 * symfile.h (struct symfile_segment_data) <struct segment>: New.
10042 <segments>: New.
10043 <segment_bases, segment_sizes>: Remove.
10044 * symfile.c (default_symfile_segments): Update.
10045 * elfread.c (elf_symfile_segments): Update.
10046 * remote.c (remote_target::get_offsets): Update.
10047 * solib-target.c (solib_target_relocate_section_addresses):
10048 Update.
10049
62982abd
SM
100502020-05-19 Simon Marchi <simon.marchi@efficios.com>
10051
10052 * symfile.h (struct symfile_segment_data): Initialize fields.
10053 <~symfile_segment_data>: Add.
10054 (symfile_segment_data_up): New.
10055 (struct sym_fns) <sym_segments>: Return a
10056 symfile_segment_data_up.
10057 (default_symfile_segments): Return a symfile_segment_data_up.
10058 (free_symfile_segment_data): Remove.
10059 (get_symfile_segment_data): Return a symfile_segment_data_up.
10060 * symfile.c (default_symfile_segments): Likewise.
10061 (get_symfile_segment_data): Likewise.
10062 (free_symfile_segment_data): Remove.
10063 (symfile_find_segment_sections): Update.
10064 * elfread.c (elf_symfile_segments): Return a
10065 symfile_segment_data_up.
10066 * remote.c (remote_target::get_offsets): Update.
10067 * solib-target.c (solib_target_relocate_section_addresses):
10068 Update.
10069 * symfile-debug.c (debug_sym_segments): Return a
10070 symfile_segment_data_up.
10071
7f204339
RO
100722020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10073
e52a0f1b
RO
10074 PR build/25981
10075 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
10076 Hardcode register numbers.
10077
7f204339
RO
10078 PR build/25981
10079 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
10080 procfs_find_LDT_entry): Remove.
10081 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
10082 procfs_find_LDT_entry): Remove.
10083 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
10084 Remove.
10085
7f32a4d5
PA
100862020-05-17 Pedro Alves <palves@redhat.com>
10087 Andrew Burgess <andrew.burgess@embecosm.com>
10088 Keno Fischer <keno@juliacomputing.com>
10089
10090 PR gdb/25741
10091 * breakpoint.c (build_target_condition_list): Update comments.
10092 (build_target_command_list): Update comments and skip matching
10093 locations.
10094 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
10095 a separate function. Simplify "set breakpoint auto-hw off"
10096 handling.
10097 (insert_breakpoints): Update comment.
10098 (tracepoint_locations_match): New parameter. For breakpoints,
10099 compare location types too, if the caller wants to.
10100 (handle_automatic_hardware_breakpoints): New functions.
10101 (bp_location_is_less_than): Also sort by location type and
10102 hardware breakpoint length.
10103 (update_global_location_list): Handle "set breakpoint auto-hw on"
10104 here.
10105 (update_breakpoint_locations): Ask breakpoint_locations_match to
10106 ignore location types.
10107
7d93a1e0
SM
101082020-05-16 Simon Marchi <simon.marchi@efficios.com>
10109
10110 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
10111 type::name instead.
10112
d0e39ea2
SM
101132020-05-16 Simon Marchi <simon.marchi@efficios.com>
10114
10115 * gdbtypes.h (struct type) <name, set_name>: New methods.
10116 (TYPE_CODE): Use type::name. Change all call sites used to set
10117 the name to use type::set_name instead.
10118
2dab0c7b
TT
101192020-05-16 Tom Tromey <tom@tromey.com>
10120
10121 * top.c (quit_force): Update.
10122 * infrun.c (handle_no_resumed): Update.
10123 * top.h (all_uis): New function.
10124 (ALL_UIS): Remove.
10125
59f7bd8d
SM
101262020-05-16 Simon Marchi <simon.marchi@efficios.com>
10127
10128 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
10129
9bf058f0
PA
101302020-05-16 Pedro Alves <palves@redhat.com>
10131
10132 * ia64-linux-nat.c
10133 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
10134 Declare method.
10135 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
10136
8f86ae1a
SM
101372020-05-15 Simon Marchi <simon.marchi@efficios.com>
10138
10139 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
10140 (sparc64_adi_info): Likewise.
10141
d6bc0792
TT
101422020-05-15 Tom Tromey <tom@tromey.com>
10143
10144 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
10145 block_objfile.
10146 (lookup_objfile_from_block): Remove.
10147 (lookup_symbol_in_block, lookup_symbol_in_static_block)
10148 (lookup_global_symbol): Use block_objfile.
10149 * symtab.h (lookup_objfile_from_block): Don't declare.
10150 * printcmd.c (clear_dangling_display_expressions): Use
10151 block_objfile.
10152 * parse.c (operator_check_standard): Use block_objfile.
10153
8c14c3a3
TT
101542020-05-15 Tom Tromey <tom@tromey.com>
10155
10156 * language.c (language_alloc_type_symbol): Set
10157 SYMBOL_SECTION.
10158 * symtab.c (initialize_objfile_symbol): Remove.
10159 (allocate_symbol): Remove.
10160 (allocate_template_symbol): Remove.
10161 * dwarf2/read.c (fixup_go_packaging): Use "new".
10162 (new_symbol): Use "new".
10163 (read_variable): Don't call initialize_objfile_symbol. Use
10164 "new".
10165 (read_func_scope): Use "new".
10166 * xcoffread.c (process_xcoff_symbol): Don't call
10167 initialize_objfile_symbol.
10168 (SYMBOL_DUP): Remove.
10169 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
10170 "new".
10171 * symtab.h (allocate_symbol, initialize_objfile_symbol)
10172 (allocate_template_symbol): Don't declare.
10173 (struct symbol): Add copy constructor. Change defaults.
10174 * jit.c (finalize_symtab): Use "new".
10175 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
10176 Use "new".
10177 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
10178 (common_block_end): Use "new".
10179 * mdebugread.c (parse_symbol): Use "new".
10180 (new_symbol): Likewise.
10181
5b4a1a8d
PW
101822020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10183
10184 * NEWS: Mention changes to help and apropos.
10185
57b4f16e
PW
101862020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10187
10188 * command.h (enum command_class): Improve comments, document
10189 that class_alias is for user-defined aliases, give the class
10190 name for each class, remove unused class_xdb.
10191 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
10192 * breakpoint.c (_initialize_breakpoint): Replace class_alias
10193 by a precise class.
10194 * infcmd.c (_initialize_infcmd): Likewise.
10195 * reverse.c (_initialize_reverse): Likewise.
10196 * stack.c (_initialize_stack): Likewise.
10197 * symfile.c (_initialize_symfile): Likewise.
10198 * tracepoint.c (_initialize_tracepoint): Likewise.
10199
7c05caf7
PW
102002020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10201
10202 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
10203 when their aliased command is traversed.
10204 (help_cmd): Add fput_command_names_styled call to
10205 output command name and aliases when command has an alias.
10206
3b3aaacb
PW
102072020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10208
10209 * cli/cli-decode.h (help_cmd_list): Remove declaration.
10210 * cli/cli-decode.c (help_cmd_list): Declare as static,
10211 remove prefix argument, use bool for recurse arg, rework to show the aliases of
10212 a command together with the command.
10213 (fput_command_name_styled, fput_command_names_styled): New functions.
10214 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
10215 fput_command_name_styled.
10216 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
10217 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
10218
7aa1b46f
PW
102192020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10220
10221 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
10222 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
10223 * command.h (cmd_show_list): Likewise.
10224 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
10225 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
10226
89bcba74
PW
102272020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10228
10229 * unittests/command-def-selftests.c (traverse_command_structure):
10230 Verify all commands of a list have the same prefix command and
10231 that only the top cmdlist commands have a null prefix.
10232
3f4d92eb
PW
102332020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10234
10235 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
10236 as prefix, not one of its aliases.
10237 (set_cmd_prefix): Remove.
10238 (do_add_cmd): Centralize the setting of the prefix of a command, when
10239 command is defined after its full chain of prefix commands.
10240 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
10241 (add_setshow_cmd_full): Likewise.
10242 (update_prefix_field_of_prefixed_commands): New function.
10243 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
10244 update_prefix_field_of_prefixed_commands.
10245 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
10246 addresses of remote_set_cmdlist and remote_show_cmdlist given
10247 as argument, not the address of an argument.
10248 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
10249 * gdb/remote.c (_initialize_remote): Likewise.
10250
0605465f
PW
102512020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10252
10253 * cli/cli-cmds.c (alias_command): Check for an existing alias
10254 using lookup_cmd_composition, as valid_command_p is too strict
10255 and forbids aliases that are the prefix of an existing alias
10256 or command.
10257 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
10258 command is properly recognised as a valid command.
10259
58e6ac70
PW
102602020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10261
10262 * unittests/help-doc-selftests.c: Rename to
10263 unittests/command-def-selftests.c
10264 * unittests/command-def-selftests.c (help_doc_tests): Update some
10265 comments.
10266 (command_structure_tests, traverse_command_structure): New namespace
10267 and function.
10268 (command_structure_invariants_tests): New function.
10269 (_initialize_command_def_selftests) Renamed from
10270 _initialize_help_doc_selftests, register command_structure_invariants
10271 selftest.
10272
a7b9ceb8
PW
102732020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10274
10275 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
10276 an alias of 'show'.
10277
b2188a06
JB
102782020-05-15 Joel Brobecker <brobecker@adacore.com>
10279
10280 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
10281 ada_is_fixed_point_type. Update all callers.
10282 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
10283 all callers.
10284 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
10285 Update all callers.
10286 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
10287 print_fixed_point_type. Update all callers.
10288 * ada-valprint.c (ada_value_print_num): Replace call to
10289 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
10290
a51951c2
KB
102912020-05-14 Kevin Buettner <kevinb@redhat.com>
10292
10293 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
10294 processors.
10295 (cpu_supports_bts): Add CV_AMD case.
10296
29d6859f
LM
102972020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
10298 Simon Marchi <simon.marchi@efficios.com>
10299
10300 * infrun.c (stop_all_threads): Collect multiple wait events at
10301 each pass.
10302
78134374
SM
103032020-05-14 Simon Marchi <simon.marchi@efficios.com>
10304
10305 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
10306 type::code instead.
10307
67607e24
SM
103082020-05-14 Simon Marchi <simon.marchi@efficios.com>
10309
10310 * gdbtypes.h (struct type) <code, set_code>: New methods.
10311 (TYPE_CODE): Use type::code. Change all call sites used to set
10312 the code to use type::set_code instead.
10313
a05575d3
TBA
103142020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10315 Tom de Vries <tdevries@suse.de>
10316 Pedro Alves <palves@redhat.com>
10317
10318 PR threads/25478
10319 * infrun.c (stop_all_threads): Do NOT ignore
10320 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
10321 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
10322 received.
10323 (handle_no_resumed): Remove code handling a live inferior with no
10324 threads.
10325 * remote.c (has_single_non_exited_thread): New.
10326 (remote_target::update_thread_list): Do not delete a thread if is
10327 the last thread of the process.
10328 * thread.c (thread_select): Call delete_exited_threads instead of
10329 prune_threads.
10330
6ad82919
TBA
103312020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10332
10333 * infrun.c (stop_all_threads): Enable/disable thread events of all
10334 targets. Move a debug message denoting the end of the function
10335 into the SCOPED_EXIT block.
10336
d890404b
TBA
103372020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10338
10339 * process-stratum-target.h: Include <set>.
10340 (all_non_exited_process_targets, switch_to_target_no_thread): New
10341 function declarations.
10342 * process-stratum-target.c (all_non_exited_process_targets)
10343 (switch_to_target_no_thread): New function implementations.
10344
293b3ebc
TBA
103452020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10346
10347 * infrun.c (handle_inferior_event): Extract out a piece of code
10348 into...
10349 (mark_non_executing_threads): ...this new function.
10350
7ca9b62a
TBA
103512020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10352
10353 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
10354 use.
10355
fc75c28b
TBA
103562020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10357
10358 * regcache.c (regcache_read_pc_protected): New function
10359 implementation that returns 0 if the PC cannot read via
10360 'regcache_read_pc'.
10361 * infrun.c (proceed): Call 'regcache_read_pc_protected'
10362 instead of 'regcache_read_pc'.
10363 (keep_going_pass_signal): Ditto.
10364
a89febbd
TT
103652020-05-13 Tom Tromey <tromey@adacore.com>
10366
10367 * ada-lang.c (align_value): Remove.
10368 (ada_template_to_fixed_record_type_1): Use align_up.
10369
f7e23710
TBA
103702020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10371
10372 * async-event.c: Update the copyright year.
10373 * async-event.h: Update the copyright year.
10374
02ff80c2
SM
103752020-05-12 Simon Marchi <simon.marchi@efficios.com>
10376
10377 * objfiles.h (is_addr_in_objfile,
10378 shared_objfile_contains_address_p): Return bool.
10379 * objfile.c (is_addr_in_objfile,
10380 shared_objfile_contains_address_p): Return bool.
10381
4fd6c7e8
TT
103822020-05-11 Tom Tromey <tromey@adacore.com>
10383
10384 * cli/cli-cmds.c (info_command): Restore.
10385 (_initialize_cli_cmds): Use add_prefix_command for "info".
10386 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
10387
5eb68a39
TT
103882020-05-11 Tom Tromey <tromey@adacore.com>
10389
10390 * ada-lang.c (ada_value_primitive_field): Now public.
10391 * ada-lang.h (ada_value_primitive_field): Declare.
10392 * ada-valprint.c (print_field_values): Use
10393 ada_value_primitive_field for wrapper fields.
10394
7666722f
TV
103952020-05-11 Tom de Vries <tdevries@suse.de>
10396
10397 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
10398 MODULE_DOMAIN.
10399
3ee6bb11
TV
104002020-05-11 Tom de Vries <tdevries@suse.de>
10401
10402 PR symtab/25941
10403 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
10404 with length 0, if not gdb-produced.
10405 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
10406
43434996
TV
104072020-05-09 Tom de Vries <tdevries@suse.de>
10408
10409 PR gdb/25955
10410 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
10411 calculation.
10412
2f78cffc
TT
104132020-05-09 Tom Tromey <tom@tromey.com>
10414
10415 * top.c (server_command): Now bool.
10416 * top.h (server_command): Now bool.
10417
4f7bc5ed
TT
104182020-05-08 Tom Tromey <tromey@adacore.com>
10419
10420 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
10421 already being processed.
10422
8be4b118
TT
104232020-05-08 Tom Tromey <tom@tromey.com>
10424
10425 * printcmd.c (struct display) <next>: Remove.
10426 <display>: New constructor.
10427 <exp_string>: Now a std::string.
10428 <enabled_p>: Now a bool.
10429 (display_number): Move definition earlier.
10430 (displays): Rename from display_chain. Now a std::vector.
10431 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
10432 (display_command): Update.
10433 (do_one_display, disable_display)
10434 (enable_disable_display_command, do_enable_disable_display):
10435 Update.
10436 (free_display): Remove.
10437 (clear_displays): Rewrite.
10438 (delete_display): Update.
10439 (map_display_numbers): Use function_view. Remove "data"
10440 parameter. Update.
10441 (do_delete_display): Remove.
10442 (undisplay_command): Update.
10443 (do_one_display, do_displays, disable_display)
10444 (info_display_command): Update.
10445 (do_enable_disable_display): Remove.
10446 (enable_disable_display_command)
10447 (clear_dangling_display_expressions): Update.
10448
94c93c35
TT
104492020-05-08 Tom Tromey <tom@tromey.com>
10450
10451 * symtab.c (set_symbol_cache_size)
10452 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
10453 (maintenance_print_symbol_cache_statistics): Update.
10454 * symmisc.c (print_symbol_bcache_statistics)
10455 (print_objfile_statistics, maintenance_print_objfiles)
10456 (maintenance_info_symtabs, maintenance_check_symtabs)
10457 (maintenance_expand_symtabs, maintenance_info_line_tables):
10458 Update.
10459 * symfile-debug.c (set_debug_symfile): Update.
10460 * source.c (forget_cached_source_info): Update.
10461 * python/python.c (gdbpy_progspaces): Update.
10462 * psymtab.c (maintenance_info_psymtabs): Update.
10463 * probe.c (parse_probes): Update.
10464 * linespec.c (iterate_over_all_matching_symtabs)
10465 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
10466 * guile/scm-progspace.c (gdbscm_progspaces): Update.
10467 * exec.c (exec_target::close): Update.
10468 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
10469 * breakpoint.c (print_one_breakpoint_location)
10470 (create_longjmp_master_breakpoint)
10471 (create_std_terminate_master_breakpoint): Update.
10472 * progspace.c (program_spaces): Now a std::vector.
10473 (maybe_new_address_space): Update.
10474 (add_program_space): Remove.
10475 (program_space::program_space): Update.
10476 (remove_program_space): Update.
10477 (number_of_program_spaces): Remove.
10478 (print_program_space, update_address_spaces): Update.
10479 * progspace.h (program_spaces): Change type.
10480 (ALL_PSPACES): Remove.
10481 (number_of_program_spaces): Don't declare.
10482 (struct program_space) <next>: Remove.
10483
a1fd1ac9
TT
104842020-05-08 Tom Tromey <tom@tromey.com>
10485
10486 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
10487 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
10488 (enable_break): Update.
10489 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
10490 (frv_fdpic_find_canonical_descriptor): Update.
10491 (frv_fetch_objfile_link_map): Update.
10492 * progspace.c (program_space::free_all_objfiles): Update.
10493 (program_space::solibs): New method.
10494 * progspace.h (struct program_space) <solibs>: New method.
10495 * solist.h (master_so_list): Don't declare.
10496 (ALL_SO_LIBS): Remove.
10497 * solib.h (so_list_head): Remove.
10498 (update_solib_list): Update comment.
10499 * solib.c (master_so_list): Remove.
10500 (solib_used, update_solib_list, solib_add)
10501 (info_sharedlibrary_command, clear_solib)
10502 (reload_shared_libraries_1, remove_user_added_objfile): Update.
10503
38eae084
TT
105042020-05-08 Tom Tromey <tom@tromey.com>
10505
10506 * extension.c (extension_languages): Now a std::array.
10507 (ALL_EXTENSION_LANGUAGES): Remove.
10508 (get_ext_lang_defn, get_ext_lang_of_file)
10509 (eval_ext_lang_from_control_command): Update.
10510 (finish_ext_lang_initialization)
10511 (auto_load_ext_lang_scripts_for_objfile)
10512 (ext_lang_type_printers::ext_lang_type_printers)
10513 (apply_ext_lang_type_printers)
10514 (ext_lang_type_printers::~ext_lang_type_printers)
10515 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
10516 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
10517 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
10518 (get_matching_xmethod_workers, ext_lang_colorize)
10519 (ext_lang_before_prompt): Update.
10520 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
10521
596dc4ad
TT
105222020-05-08 Tom Tromey <tom@tromey.com>
10523
10524 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
10525 overload.
10526 <swap_string, m_string>: Remove.
10527 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
10528 Update.
10529 * stabsread.c (define_symbol, read_type): Update.
10530 * linespec.c (find_linespec_symbols): Update.
10531 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
10532 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
10533 * dbxread.c (read_dbx_symtab): Update.
10534 * cp-support.h (cp_canonicalize_string_full)
10535 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
10536 Return unique_xmalloc_ptr.
10537 * cp-support.c (inspect_type): Update.
10538 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
10539 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
10540 Likewise.
10541 * c-typeprint.c (print_name_maybe_canonical): Update.
10542 * break-catch-throw.c (check_status_exception_catchpoint):
10543 Update.
10544
bf4cb9be
TV
105452020-05-08 Tom de Vries <tdevries@suse.de>
10546
10547 * infrun.c (follow_fork): Copy current_line and current_symtab to
10548 child thread.
10549
a1b68f28
SM
105502020-05-07 Simon Marchi <simon.marchi@efficios.com>
10551
10552 * async-event.c (struct async_signal_handler, struct
10553 async_event_handler): Reformat, remove typedef.
10554
98d48915
SM
105552020-05-07 Simon Marchi <simon.marchi@efficios.com>
10556
10557 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
10558 access thistype->main_type->dyn_prop_list directly.
10559
7aa91313
SM
105602020-05-07 Simon Marchi <simon.marchi@efficios.com>
10561
10562 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
10563 (remove_dyn_prop): Remove. Update all users to use
10564 type::remove_dyn_prop.
10565 * gdbtypes.c (remove_dyn_prop): Rename to...
10566 (type::remove_dyn_prop): ... this.
10567
5c54719c
SM
105682020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
10569
10570 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
10571 (add_dyn_prop): Remove. Update all users to use
10572 type::add_dyn_prop.
10573 * gdbtypes.c (add_dyn_prop): Rename to...
10574 (type::add_dyn_prop): ... this.
10575
24e99c6c
SM
105762020-05-07 Simon Marchi <simon.marchi@efficios.com>
10577
10578 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
10579 (get_dyn_prop): Remove. Update all users to use
10580 type::dyn_prop.
10581 * gdbtypes.c (get_dyn_prop): Rename to...
10582 (type::dyn_prop): ... this.
10583
0d4bf016
SM
105842020-05-06 Simon Marchi <simon.marchi@efficios.com>
10585
10586 * gdbtypes.h (struct main_type) <flag_static>: Remove.
10587
ac4a4f1c
SM
105882020-05-06 Simon Marchi <simon.marchi@efficios.com>
10589
10590 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
10591 instruction, skip it if it's there.
10592
a3bbacc1
SM
105932020-05-05 Simon Marchi <simon.marchi@efficios.com>
10594
10595 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
10596
c3236f84
SM
105972020-05-04 Simon Marchi <simon.marchi@efficios.com>
10598
10599 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
10600 * gdbtypes.c (recursive_dump_type): Remove use of
10601 TYPE_INCOMPLETE.
10602
3b6acaee
TT
106032020-05-03 Tom Tromey <tom@tromey.com>
10604
10605 * breakpoint.c (catch_command, tcatch_command): Remove.
10606 (_initialize_breakpoint): Use add_basic_prefix_cmd,
10607 add_show_prefix_cmd.
10608 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
10609 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
10610 Remove.
10611 (add_internal_problem_command): Use add_basic_prefix_cmd,
10612 add_show_prefix_cmd.
10613 * mips-tdep.c (set_mipsfpu_command): Remove.
10614 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
10615 * dwarf2/index-cache.c (set_index_cache_command): Remove.
10616 (_initialize_index_cache): Use add_basic_prefix_cmd.
10617 * memattr.c (dummy_cmd): Remove.
10618 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
10619 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
10620 (_initialize_tui_win): Use add_basic_prefix_cmd,
10621 add_show_prefix_cmd.
10622 * cli/cli-logging.c (set_logging_command): Remove.
10623 (_initialize_cli_logging): Use add_basic_prefix_cmd,
10624 add_show_prefix_cmd.
10625 (show_logging_command): Remove.
10626 * target.c (target_command): Remove.
10627 (add_target): Use add_basic_prefix_cmd.
10628
a51119cd
HD
106292020-05-02 Hannes Domani <ssbssa@yahoo.de>
10630
10631 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
10632
652fc23a 106332020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 10634
652fc23a
PW
10635 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
10636 info_command.
10637
117539e6
KR
106382020-04-30 Kamil Rytarowski <n54@gmx.com>
10639
10640 * nbsd-nat.c (nbsd_enable_proc_events)
10641 (nbsd_nat_target::post_startup_inferior): Add.
10642 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
10643 (nbsd_nat_target::update_thread_list): Rewrite.
10644 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
10645 "PTRACE_LWP_CREATE".
10646 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
10647
102e38eb 106482020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 10649
102e38eb
PW
10650 * stack.c (_initialize_stack): Remove duplicated creation
10651 of "frame" command and "f" alias.
10652
ee9d1e5f
HD
106532020-04-30 Hannes Domani <ssbssa@yahoo.de>
10654
10655 PR gdb/18706
10656 * gdbtypes.c (check_typedef): Calculate size of array of
10657 stubbed type.
10658
627c7fb8
HD
106592020-04-30 Hannes Domani <ssbssa@yahoo.de>
10660
10661 PR gdb/15559
10662 * i386-tdep.c (i386_push_dummy_call): Call
10663 i386_thiscall_push_dummy_call.
10664 (i386_thiscall_push_dummy_call): New function.
10665 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
10666 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
10667 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
10668
ffc2844e
SM
106692020-04-29 Simon Marchi <simon.marchi@efficios.com>
10670
10671 * gdbarch.sh (do_read): Add shellcheck disable directive for
10672 warning SC2162.
10673
1207375d
SM
106742020-04-29 Simon Marchi <simon.marchi@efficios.com>
10675
10676 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
10677 "referenced but not assigned" warning.
10678
9fdb2916
SM
106792020-04-29 Simon Marchi <simon.marchi@efficios.com>
10680
10681 * gdbarch.sh: Remove code that sets fallbackdefault.
10682
759cea5e
SM
106832020-04-29 Simon Marchi <simon.marchi@efficios.com>
10684
10685 * gdbarch.sh: Use shell operators && and || instead of
10686 -a and -o.
10687
cb02ab24
SM
106882020-04-29 Simon Marchi <simon.marchi@efficios.com>
10689
10690 * gdbarch.sh: Use $(...) instead of `...`.
10691
a6fc5ffc
SM
106922020-04-29 Simon Marchi <simon.marchi@efficios.com>
10693
10694 * gdbarch.sh: Use double quotes around variables.
10695
8d113d13
SM
106962020-04-29 Simon Marchi <simon.marchi@efficios.com>
10697
10698 * gdbarch.sh: Use %s with printf, instead of variables in the
10699 format string.
10700
ed6acedd
TT
107012020-04-29 Tom Tromey <tromey@adacore.com>
10702
10703 PR ada/25875:
10704 * dwarf2/read.c (update_enumeration_type_from_children): Compute
10705 type fields here.
10706 (read_enumeration_type): Call
10707 update_enumeration_type_from_children later. Update comments.
10708 (process_enumeration_scope): Don't create type fields.
10709
b68b1b58
KR
107102020-04-29 Kamil Rytarowski <n54@gmx.com>
10711
10712 * nbsd-tdep.c: Include "xml-syscall.h".
10713 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
10714
f94b2e03
KR
107152020-04-29 Kamil Rytarowski <n54@gmx.com>
10716
10717 * nbsd-nat.c: Include "sys/wait.h".
10718 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
10719 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
10720 (nbsd_nat_target::remove_exec_catchpoint)
10721 (nbsd_nat_target::set_syscall_catchpoint): Add.
10722 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
10723 (nbsd_nat_target::insert_exec_catchpoint)
10724 (nbsd_nat_target::remove_exec_catchpoint)
10725 (nbsd_nat_target::set_syscall_catchpoint): Add.
10726 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
10727 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
10728 `nbsd_get_syscall_number'.
10729
fc49bc72
TT
107302020-04-29 Tom Tromey <tom@tromey.com>
10731
10732 * stack.c (print_block_frame_labels): Remove.
10733
d642b692
HD
107342020-04-29 Hannes Domani <ssbssa@yahoo.de>
10735
10736 PR gdb/17320
10737 * ada-valprint.c (val_print_packed_array_elements): Move array
10738 end bracket to new line.
10739 (ada_val_print_string): Remove extra spaces before first array
10740 element.
10741 * c-valprint.c (c_value_print_array): Likewise.
10742 * m2-valprint.c (m2_print_array_contents): Likewise.
10743 (m2_value_print_inner): Likewise.
10744 * p-valprint.c (pascal_value_print_inner): Likewise.
10745 * valprint.c (generic_val_print_array): Likewise.
10746 (value_print_array_elements): Move first array element and array
10747 end bracket to new line.
10748
ea90f227
TV
107492020-04-29 Tom de Vries <tdevries@suse.de>
10750
10751 PR symtab/25889
10752 * linespec.c (find_method): Fix ix calculation.
10753
4498ef4f
KR
107542020-04-28 Kamil Rytarowski <n54@gmx.com>
10755
10756 * syscalls/update-netbsd.sh: New file.
10757 * syscalls/netbsd.xml: Regenerate.
10758 * data-directory/Makefile.in: Register `netbsd.xml' in
10759 `SYSCALLS_FILES'.
10760
a55e30b5
SM
107612020-04-28 Simon Marchi <simon.marchi@efficios.com>
10762
10763 * syscalls/update-freebsd.sh: Add double quotes.
10764
2b2fbab8
TT
107652020-04-28 Tom Tromey <tom@tromey.com>
10766
10767 * NEWS: Update.
10768 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
10769 (cmdpy_init): Allow class_tui.
10770
a65189c9
TV
107712020-04-28 Mark Williams <mark@myosotissp.com>
10772
10773 PR gdb/24480
10774 * dwarf2read.c: Add missing assingments to list_in_scope when
10775 start_symtab was already called.
10776
1b95cdb7
SM
107772020-04-28 Simon Marchi <simon.marchi@efficios.com>
10778
10779 PR gdb/25881
10780 * dwarf2/read.c (offset_map_type): Use
10781 gdb:hash_enum<sect_offset> as hash function.
10782
15cd93d0
TV
107832020-04-28 Tom de Vries <tdevries@suse.de>
10784
10785 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
10786 with DW_AT_signature.
10787
1eb39914
SM
107882020-04-27 Simon Marchi <simon.marchi@efficios.com>
10789
10790 * configure.ac: Remove check for fs_base/gs_base in
10791 user_regs_struct.
10792 * configure: Re-generate.
10793 * config.in: Re-generate.
10794 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
10795 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
10796 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
10797
991a3e2e
LM
107982020-04-27 Luis Machado <luis.machado@linaro.org>
10799
10800 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
10801 problematic inline frame unwinding situation.
10802 * frame.c (frame_id_computed_p): New function.
10803 * frame.h (frame_id_computed_p): New prototype.
10804
361ba0e8
TT
108052020-04-26 Tom Tromey <tom@tromey.com>
10806
10807 * command.h (enum command_class) <class_pseudo>: Remove.
10808
bc3609fd
PW
108092020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10810
10811 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
10812 and whitespace.
10813
b9771db7
KR
108142020-04-25 Kamil Rytarowski <n54@gmx.com>
10815
ec16513e
SM
10816 * inf-ptrace.c (inf_ptrace_target::wait): Remove
10817 `PT_GET_PROCESS_STATE' block.
b9771db7 10818
7151c1af
TT
108192020-04-24 Tom Tromey <tom@tromey.com>
10820
10821 * symtab.h (symbol_get_demangled_name): Don't declare.
10822 * symtab.c (symbol_get_demangled_name): Remove.
10823 (general_symbol_info::natural_name)
10824 (general_symbol_info::demangled_name): Update.
10825
906bb4c5
TT
108262020-04-24 Tom Tromey <tom@tromey.com>
10827
10828 PR rust/25025:
10829 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
10830
bcfe6157
TT
108312020-04-24 Tom Tromey <tom@tromey.com>
10832
10833 PR symtab/12707:
10834 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
10835 exists.
10836 (new_symbol): Likewise.
10837 * compile/compile-object-load.c (get_out_value_type): Use
10838 symbol_matches_search_name.
10839
f049a313
TT
108402020-04-24 Tom Tromey <tom@tromey.com>
10841
10842 * dwarf2/read.c (add_partial_symbol): Do not call
10843 compute_and_set_names.
10844
76e288d1
TT
108452020-04-24 Tom Tromey <tom@tromey.com>
10846
10847 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
10848 overload.
10849
2467f4f6
TT
108502020-04-24 Tom Tromey <tom@tromey.com>
10851
10852 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
10853 (add_psymbol_to_list): New overload. Make old overload call new
10854 one.
10855 * psympriv.h (add_psymbol_to_list): New overload.
10856
e61108c9
TT
108572020-04-24 Tom Tromey <tom@tromey.com>
10858
10859 * dwarf2/read.c (partial_die_info::read) <case
10860 DW_AT_linkage_name>: Use value_as_string.
10861 (dwarf2_string_attr): Use value_as_string.
10862 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
10863 method.
10864 * dwarf2/attribute.c (attribute::value_as_string): New method.
10865
8c87a452
TT
108662020-04-24 Tom Tromey <tom@tromey.com>
10867
10868 * symtab.c (general_symbol_info::natural_name)
10869 (general_symbol_info::demangled_name): Check for language_rust.
10870
787de330
TT
108712020-04-24 Tom Tromey <tom@tromey.com>
10872
10873 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
10874 (dwarf2_physname): ... from here.
10875 (partial_die_info::read): Add Rust "{" hack.
10876
ff985671
TT
108772020-04-24 Tom Tromey <tom@tromey.com>
10878
10879 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
10880 method.
10881 (symbol_set_demangled_name): Don't declare.
10882 * symtab.c (general_symbol_info::set_demangled_name): Rename from
10883 symbol_set_demangled_name.
10884 (general_symbol_info::set_language)
10885 (general_symbol_info::compute_and_set_names): Update.
10886 * minsyms.c (minimal_symbol_reader::install): Update.
10887 * dwarf2/read.c (new_symbol): Update.
10888
1acda803
TT
108892020-04-24 Tom Tromey <tromey@adacore.com>
10890
10891 PR python/23662:
10892 * python/py-type.c (convert_field): Handle
10893 FIELD_LOC_KIND_DWARF_BLOCK.
10894 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
10895 (typy_get_dynamic): Nw function.
10896 (type_object_getset): Add "dynamic".
10897 * NEWS: Add entry.
10898
d656f129
TT
108992020-04-24 Tom Tromey <tromey@adacore.com>
10900
10901 * ada-typeprint.c (print_choices, print_variant_part)
10902 (print_record_field_types_dynamic): New functions.
10903 (print_record_field_types): Use print_record_field_types_dynamic.
10904
7d79de9a
TT
109052020-04-24 Tom Tromey <tromey@adacore.com>
10906
10907 * dwarf2/read.c (handle_data_member_location): New overload.
10908 (dwarf2_add_field): Use it.
10909 (decode_locdesc): Add "computed" parameter. Update comment.
10910 * gdbtypes.c (is_dynamic_type_internal): Also look for
10911 FIELD_LOC_KIND_DWARF_BLOCK.
10912 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
10913 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
10914 virtual base classes.
10915 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
10916 FIELD_LOC_KIND_DWARF_BLOCK.
10917
f8e89861
TT
109182020-04-24 Tom Tromey <tromey@adacore.com>
10919
10920 * dwarf2/read.c (read_structure_type): Handle dynamic length.
10921 * gdbtypes.c (is_dynamic_type_internal): Check
10922 TYPE_HAS_DYNAMIC_LENGTH.
10923 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
10924 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
10925 New macros.
10926 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
10927 constant.
10928
9c6a1327
TT
109292020-04-24 Tom Tromey <tromey@adacore.com>
10930
10931 * dwarf2/read.c (struct variant_field): Rewrite.
10932 (struct variant_part_builder): New.
10933 (struct nextfield): Remove "variant" field. Add "offset".
10934 (struct field_info): Add "current_variant_part" and
10935 "variant_parts".
10936 (alloc_discriminant_info): Remove.
10937 (alloc_rust_variant): New function.
10938 (quirk_rust_enum): Update.
10939 (dwarf2_add_field): Set "offset" member. Don't handle
10940 DW_TAG_variant_part.
10941 (offset_map_type): New typedef.
10942 (convert_variant_range, create_one_variant)
10943 (create_one_variant_part, create_variant_parts)
10944 (add_variant_property): New functions.
10945 (dwarf2_attach_fields_to_type): Call add_variant_property.
10946 (read_structure_type): Don't handle DW_TAG_variant_part.
10947 (handle_variant_part, handle_variant): New functions.
10948 (handle_struct_member_die): Use them.
10949 (process_structure_scope): Don't handle variant parts.
10950 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
10951 (struct discriminant_info): Remove.
10952 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
10953 (struct main_type) <flag_discriminated_union>: Remove.
10954 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
10955 (rust_enum_variant): Return int. Remove "contents". Rewrite.
10956 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
10957 Update.
10958 * valops.c (value_union_variant): Remove.
10959 * value.h (value_union_variant): Don't declare.
10960
b249d2c2
TT
109612020-04-24 Tom Tromey <tromey@adacore.com>
10962
10963 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
10964 (ada_value_primitive_packed_val): Update.
10965 * ada-valprint.c (ada_value_print_1): Update.
10966 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
10967 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
10968 just an address. Use evaluate_for_locexpr_baton.
10969 (dwarf2_evaluate_property): Update.
10970 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
10971 array_view.
10972 * findvar.c (default_read_var_value): Update.
10973 * gdbtypes.c (compute_variant_fields_inner)
10974 (resolve_dynamic_type_internal): Update.
10975 (resolve_dynamic_type): Change type of valaddr parameter.
10976 * gdbtypes.h (resolve_dynamic_type): Update.
10977 * valarith.c (value_subscripted_rvalue): Update.
10978 * value.c (value_from_contents_and_address): Update.
10979
61122aa9
TT
109802020-04-24 Tom Tromey <tromey@adacore.com>
10981
10982 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
10983 "push_initial_value" parameter.
10984 (dwarf2_evaluate_property): Likewise.
10985 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
10986
ef83a141
TT
109872020-04-24 Tom Tromey <tromey@adacore.com>
10988
10989 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
10990 (variant::matches, compute_variant_fields_recurse)
10991 (compute_variant_fields_inner, compute_variant_fields): New
10992 functions.
10993 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
10994 Use resolved_type after type is made.
10995 (operator==): Add new cases.
10996 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
10997 (struct discriminant_range, struct variant, struct variant_part):
10998 New.
10999 (union dynamic_prop_data) <variant_parts, original_type>: New
11000 members.
11001 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
11002 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
11003 constants.
11004 * value.c (unpack_bits_as_long): Now public.
11005 * value.h (unpack_bits_as_long): Declare.
11006
675127ec
TT
110072020-04-24 Tom Tromey <tromey@adacore.com>
11008
11009 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
11010 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
11011
9852ceef
HD
110122020-04-24 Hannes Domani <ssbssa@yahoo.de>
11013
11014 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
11015
7632c6ce
KR
110162020-04-24 Kamil Rytarowski <n54@gmx.com>
11017
11018 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
11019 (remove_fork_catchpoint, post_startup_inferior)
11020 (post_attach): Move...
11021 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
11022 (remove_fork_catchpoint, post_startup_inferior)
11023 (post_attach): ...here.
11024 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
11025 (remove_fork_catchpoint, post_startup_inferior)
11026 (post_attach): Move...
11027 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
11028 (remove_fork_catchpoint, post_startup_inferior)
11029 (post_attach): ...here.
11030
7be2bb4f
TT
110312020-04-24 Tom Tromey <tromey@adacore.com>
11032
11033 * nat/windows-nat.h (struct windows_thread_info)
11034 <pc_adjusted>: New member.
11035 * windows-nat.c (windows_fetch_one_register): Check
11036 pc_adjusted.
11037 (windows_nat_target::get_windows_debug_event)
11038 (windows_nat_target::wait): Set pc_adjusted.
11039
f80cb3b4
TV
110402020-04-24 Tom de Vries <tdevries@suse.de>
11041
11042 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
11043 Run gdb-add-index inside temp dir.
11044
29514b87
TT
110452020-04-23 Tom Tromey <tromey@adacore.com>
11046
11047 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
11048 in loop.
11049
5939967b
LM
110502020-04-23 Luis Machado <luis.machado@linaro.org>
11051
11052 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
11053 get_frame_register instead of gdbarch_unwind_pc.
11054
70bc38f5
TV
110552020-04-23 Tom de Vries <tdevries@suse.de>
11056
11057 * symtab.c (lookup_global_symbol): Prefer def over decl.
11058
de82891c
TV
110592020-04-23 Tom de Vries <tdevries@suse.de>
11060
11061 PR symtab/25807
11062 * block.c (best_symbol, better_symbol): Promote to external.
11063 * block.h (best_symbol, better_symbol): Declare.
11064 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
11065 decl.
11066
ecc6c606
TT
110672020-04-23 Tom Tromey <tromey@adacore.com>
11068
11069 PR ada/25837:
11070 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
11071 "const char *", not a "const std::string &".
11072 <name_and_matcher::operator==>: Update.
11073 * unittests/lookup_name_info-selftests.c: Change type of
11074 "result".
11075
740480b8
TT
110762020-04-23 Tom Tromey <tom@tromey.com>
11077
11078 * inferior.h (iterate_over_inferiors): Don't declare.
11079 * inferior.c (iterate_over_inferiors): Remove.
11080 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
11081 Remove.
11082 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
11083 use iterate_over_inferiors.
11084 (darwin_resume_inferior_it)
11085 (struct resume_inferior_threads_param)
11086 (darwin_resume_inferior_threads_it): Remove.
11087 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
11088
ae3ab1f0
TV
110892020-04-23 Tom de Vries <tdevries@suse.de>
11090
11091 * blockframe.c (find_pc_partial_function): Use
11092 find_pc_sect_compunit_symtab rather than
11093 objfile->sf->qf->find_pc_sect_compunit_symtab.
11094
317d2668
TV
110952020-04-22 Tom de Vries <tdevries@suse.de>
11096
11097 PR symtab/25764
11098 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
11099 in psymtabs.
11100
eea9e357
TV
111012020-04-22 Tom de Vries <tdevries@suse.de>
11102
11103 PR symtab/25801
11104 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
11105 symtabs.
11106
3d5afab3
TV
111072020-04-22 Tom de Vries <tdevries@suse.de>
11108
11109 PR symtab/25700
11110 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
11111 CU if already created.
11112
d43b7a2d
TBA
111132020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11114
11115 * infrun.c (displaced_step_fixup): Switch to the event_thread
11116 before calling displaced_step_restore, not after.
11117
d89edf9b
MM
111182020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11119
11120 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
11121 its inferior is not recorded by us.
11122 (record_btrace_target_open): Replace call to
11123 all_non_exited_threads () with call to current_inferior
11124 ()->non_exited_threads ().
11125 (record_btrace_target::stop_recording): Likewise.
11126 (record_btrace_target::close): Likewise.
11127 (record_btrace_target::wait): Likewise.
11128 (record_btrace_target::record_stop_replaying): Likewise.
11129
5897fd49
MM
111302020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11131
11132 * btrace.c (btrace_enable): Throw an error on double enables and
11133 when enabling recording fails.
11134 (btrace_disable): Throw an error if the thread is not recorded.
11135
1a476b6d
MM
111362020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11137
11138 * record-btrace.c (record_btrace_target::fetch_registers): Forward
11139 request if we do not have a thread_info.
11140
4778a5f8
TV
111412020-04-21 Tom de Vries <tdevries@suse.de>
11142
11143 PR gdb/25471
11144 * thread.c
11145 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
11146 exception in get_frame_id.
11147
0fa7617d
TT
111482020-04-20 Tom Tromey <tromey@adacore.com>
11149
11150 * python/python.c (struct gdbpy_event): Mark move constructor as
11151 noexcept.
11152 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
11153 constructor as noexcept.
11154 * completer.h (struct completion_result): Mark move constructor as
11155 noexcept.
11156 * completer.c (completion_result::completion_result): Use
11157 initialization style. Don't call reset_match_list.
11158
ad23bda0
MS
111592020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
11160
11161 * MAINTAINERS (Write After Approval): Add myself.
11162
45e1f031
TT
111632020-04-18 Tom Tromey <tom@tromey.com>
11164
11165 * windows-tdep.c (init_w32_command_list)
11166 (w32_prefix_command_valid): Restore.
11167 (_initialize_windows_tdep): Call init_w32_command_list.
11168
08feed99
TT
111692020-04-18 Tom Tromey <tom@tromey.com>
11170
11171 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
11172 * value.c (value_fn_field): Update.
11173 * valops.c (find_function_in_inferior)
11174 (value_allocate_space_in_inferior): Update.
11175 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11176 Update.
11177 * tui/tui-source.c (tui_source_window::set_contents): Update.
11178 * symtab.c (lookup_global_or_static_symbol)
11179 (find_function_start_sal_1, skip_prologue_sal)
11180 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
11181 * symmisc.c (dump_msymbols, dump_symtab_1)
11182 (maintenance_print_one_line_table): Update.
11183 * symfile.c (init_entry_point_info, section_is_mapped)
11184 (list_overlays_command, simple_read_overlay_table)
11185 (simple_overlay_update_1): Update.
11186 * stap-probe.c (handle_stap_probe): Update.
11187 * stabsread.c (dbx_init_float_type, define_symbol)
11188 (read_one_struct_field, read_enum_type, read_range_type): Update.
11189 * source.c (info_line_command): Update.
11190 * python/python.c (gdbpy_source_objfile_script)
11191 (gdbpy_execute_objfile_script): Update.
11192 * python/py-type.c (save_objfile_types): Update.
11193 * python/py-objfile.c (py_free_objfile): Update.
11194 * python/py-inferior.c (python_new_objfile): Update.
11195 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
11196 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
11197 (maintenance_check_psymtabs): Update.
11198 * printcmd.c (info_address_command): Update.
11199 * objfiles.h (struct objfile) <arch>: New method, from
11200 get_objfile_arch.
11201 (get_objfile_arch): Don't declare.
11202 * objfiles.c (get_objfile_arch): Remove.
11203 (filter_overlapping_sections): Update.
11204 * minsyms.c (msymbol_is_function): Update.
11205 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
11206 (output_nondebug_symbol): Update.
11207 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
11208 (mdebug_expand_psymtab): Update.
11209 * machoread.c (macho_add_oso_symfile): Update.
11210 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
11211 Update.
11212 * linux-fork.c (checkpoint_command): Update.
11213 * linespec.c (convert_linespec_to_sals): Update.
11214 * jit.c (finalize_symtab): Update.
11215 * infrun.c (insert_exception_resume_from_probe): Update.
11216 * ia64-tdep.c (ia64_find_unwind_table): Update.
11217 * hppa-tdep.c (internalize_unwinds): Update.
11218 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
11219 Update.
11220 * gcore.c (call_target_sbrk): Update.
11221 * elfread.c (record_minimal_symbol, elf_symtab_read)
11222 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
11223 (elf_gnu_ifunc_resolve_by_got): Update.
11224 * dwarf2/read.c (create_addrmap_from_index)
11225 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11226 (read_debug_names_from_section)
11227 (process_psymtab_comp_unit_reader, add_partial_symbol)
11228 (add_partial_subprogram, process_full_comp_unit)
11229 (read_file_scope, read_func_scope, read_lexical_block_scope)
11230 (read_call_site_scope, dwarf2_ranges_read)
11231 (dwarf2_record_block_ranges, dwarf2_add_field)
11232 (mark_common_block_symbol_computed, read_tag_pointer_type)
11233 (read_tag_string_type, dwarf2_init_float_type)
11234 (dwarf2_init_complex_target_type, read_base_type)
11235 (partial_die_info::read, partial_die_info::read)
11236 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
11237 (dwarf2_fetch_die_loc_sect_off): Update.
11238 * dwarf2/loc.c (dwarf2_find_location_expression)
11239 (class dwarf_evaluate_loc_desc, rw_pieced_value)
11240 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
11241 (dwarf2_loc_desc_get_symbol_read_needs)
11242 (locexpr_describe_location_piece, locexpr_describe_location_1)
11243 (loclist_describe_location): Update.
11244 * dwarf2/index-write.c (write_debug_names): Update.
11245 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
11246 * dtrace-probe.c (dtrace_process_dof): Update.
11247 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
11248 (process_one_symbol): Update.
11249 * ctfread.c (ctf_init_float_type, read_base_type): Update.
11250 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
11251 (coff_read_enum_type): Update.
11252 * cli/cli-cmds.c (edit_command, list_command): Update.
11253 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
11254 * breakpoint.c (create_overlay_event_breakpoint)
11255 (create_longjmp_master_breakpoint)
11256 (create_std_terminate_master_breakpoint)
11257 (create_exception_master_breakpoint, get_sal_arch): Update.
11258 * block.c (block_gdbarch): Update.
11259 * annotate.c (annotate_source_line): Update.
11260
0743fc83
TT
112612020-04-17 Tom Tromey <tromey@adacore.com>
11262
11263 * auto-load.c (show_auto_load_cmd): Remove.
11264 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
11265 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
11266 (maintenance_print_arc_command): Remove.
11267 * tui/tui-win.c (tui_command): Remove.
11268 (tui_get_cmd_list): Use add_basic_prefix_cmd.
11269 * tui/tui-layout.c (tui_layout_command): Remove.
11270 (_initialize_tui_layout): Use add_basic_prefix_cmd.
11271 * python/python.c (user_set_python, user_show_python): Remove.
11272 (_initialize_python): Use add_basic_prefix_cmd,
11273 add_show_prefix_cmd.
11274 * guile/guile.c (set_guile_command, show_guile_command): Remove.
11275 (install_gdb_commands): Use add_basic_prefix_cmd,
11276 add_show_prefix_cmd.
11277 (info_guile_command): Remove.
11278 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
11279 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
11280 add_show_prefix_cmd.
11281 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
11282 Remove do_set and do_show parameters.
11283 * cli/cli-style.c (set_style, show_style): Remove.
11284 (_initialize_cli_style): Use add_basic_prefix_cmd,
11285 add_show_prefix_cmd.
11286 (cli_style_option::add_setshow_commands): Remove do_set and
11287 do_show parameters.
11288 (cli_style_option::add_setshow_commands): Use
11289 add_basic_prefix_cmd, add_show_prefix_cmd.
11290 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
11291 (set_style_name): Remove.
11292 * cli/cli-dump.c (dump_command, append_command): Remove.
11293 (srec_dump_command, ihex_dump_command, verilog_dump_command)
11294 (tekhex_dump_command, binary_dump_command)
11295 (binary_append_command): Remove.
11296 (_initialize_cli_dump): Use add_basic_prefix_cmd.
11297 * windows-tdep.c (w32_prefix_command_valid): Remove global.
11298 (init_w32_command_list): Remove; move into ...
11299 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
11300 * valprint.c (set_print, show_print, set_print_raw)
11301 (show_print_raw): Remove.
11302 (_initialize_valprint): Use add_basic_prefix_cmd,
11303 add_show_prefix_cmd.
11304 * typeprint.c (set_print_type, show_print_type): Remove.
11305 (_initialize_typeprint): Use add_basic_prefix_cmd,
11306 add_show_prefix_cmd.
11307 * record.c (set_record_command, show_record_command): Remove.
11308 (_initialize_record): Use add_basic_prefix_cmd,
11309 add_show_prefix_cmd.
11310 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
11311 add_show_prefix_cmd.
11312 (info_command, show_command, set_debug, show_debug): Remove.
11313 * top.h (set_history, show_history): Don't declare.
11314 * top.c (set_history, show_history): Remove.
11315 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
11316 (unset_tdesc_cmd): Remove.
11317 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
11318 add_show_prefix_cmd.
11319 * symtab.c (info_module_command): Remove.
11320 (_initialize_symtab): Use add_basic_prefix_cmd.
11321 * symfile.c (overlay_command): Remove.
11322 (_initialize_symfile): Use add_basic_prefix_cmd.
11323 * sparc64-tdep.c (info_adi_command): Remove.
11324 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
11325 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
11326 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
11327 add_show_prefix_cmd.
11328 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
11329 (_initialize_serial): Use add_basic_prefix_cmd,
11330 add_show_prefix_cmd.
11331 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
11332 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
11333 add_show_prefix_cmd.
11334 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
11335 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
11336 add_show_prefix_cmd.
11337 * riscv-tdep.c (show_riscv_command, set_riscv_command)
11338 (show_debug_riscv_command, set_debug_riscv_command): Remove.
11339 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
11340 add_show_prefix_cmd.
11341 * remote.c (remote_command, set_remote_cmd): Remove.
11342 (_initialize_remote): Use add_basic_prefix_cmd.
11343 * record-full.c (set_record_full_command)
11344 (show_record_full_command): Remove.
11345 (_initialize_record_full): Use add_basic_prefix_cmd,
11346 add_show_prefix_cmd.
11347 * record-btrace.c (cmd_set_record_btrace)
11348 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
11349 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
11350 (cmd_show_record_btrace_pt): Remove.
11351 (_initialize_record_btrace): Use add_basic_prefix_cmd,
11352 add_show_prefix_cmd.
11353 * ravenscar-thread.c (set_ravenscar_command)
11354 (show_ravenscar_command): Remove.
11355 (_initialize_ravenscar): Use add_basic_prefix_cmd,
11356 add_show_prefix_cmd.
11357 * mips-tdep.c (show_mips_command, set_mips_command)
11358 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
11359 add_show_prefix_cmd.
11360 * maint.c (maintenance_command, maintenance_info_command)
11361 (maintenance_check_command, maintenance_print_command)
11362 (maintenance_set_cmd, maintenance_show_cmd): Remove.
11363 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
11364 add_show_prefix_cmd.
11365 (show_per_command_cmd): Remove.
11366 * maint-test-settings.c (maintenance_set_test_settings_cmd):
11367 Remove.
11368 (maintenance_show_test_settings_cmd): Remove.
11369 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
11370 add_show_prefix_cmd.
11371 * maint-test-options.c (maintenance_test_options_command):
11372 Remove.
11373 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
11374 * macrocmd.c (macro_command): Remove
11375 (_initialize_macrocmd): Use add_basic_prefix_cmd.
11376 * language.c (set_check, show_check): Remove.
11377 (_initialize_language): Use add_basic_prefix_cmd,
11378 add_show_prefix_cmd.
11379 * infcmd.c (unset_command): Remove.
11380 (_initialize_infcmd): Use add_basic_prefix_cmd.
11381 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
11382 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
11383 add_show_prefix_cmd.
11384 * go32-nat.c (go32_info_dos_command): Remove.
11385 (_initialize_go32_nat): Use add_basic_prefix_cmd.
11386 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
11387 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
11388 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
11389 (_initialize_frame): Use add_basic_prefix_cmd,
11390 add_show_prefix_cmd.
11391 * dcache.c (set_dcache_command, show_dcache_command): Remove.
11392 (_initialize_dcache): Use add_basic_prefix_cmd,
11393 add_show_prefix_cmd.
11394 * cp-support.c (maint_cplus_command): Remove.
11395 (_initialize_cp_support): Use add_basic_prefix_cmd.
11396 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
11397 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
11398 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
11399 add_basic_prefix_cmd, add_show_prefix_cmd.
11400 * breakpoint.c (save_command): Remove.
11401 (_initialize_breakpoint): Use add_basic_prefix_cmd.
11402 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
11403 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
11404 add_show_prefix_cmd.
11405 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
11406 (set_ada_command, show_ada_command): Remove.
11407 (_initialize_ada_language): Use add_basic_prefix_cmd,
11408 add_show_prefix_cmd.
11409 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
11410
3557f442
KR
114112020-04-16 Kamil Rytarowski <n54@gmx.com>
11412
11413 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
11414 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
11415
16197208
SM
114162020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11417
11418 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
11419 warning messages.
11420
00ac85d3
SM
114212020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11422
11423 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
11424 import table is not at beginning of .idata section.
11425
381ce63f
PA
114262020-04-16 Pedro Alves <palves@redhat.com>
11427
11428 * inferior.c (delete_inferior): Use delete operator directly
11429 instead of delete_program_space.
11430 * progspace.c (add_program_space): New, factored out from
11431 program_space::program_space.
11432 (remove_program_space): New, factored out from
11433 delete_program_space.
11434 (program_space::program_space): Remove intro comment. Rewrite.
11435 (program_space::~program_space): Remove intro comment. Call
11436 remove_program_space.
11437 (delete_program_space): Delete.
11438 * progspace.h (program_space::program_space): Make explicit. Move
11439 intro comment here, adjusted.
11440 (program_space::~program_space): Move intro comment here,
11441 adjusted.
11442 (delete_program_space): Remove.
11443
a010605f
TT
114442020-04-16 Tom Tromey <tromey@adacore.com>
11445
11446 * windows-nat.c (windows_nat::handle_access_violation): New
11447 function.
11448 * nat/windows-nat.h (handle_access_violation): Declare.
11449 * nat/windows-nat.c (handle_exception): Move Cygwin code to
11450 windows-nat.c. Call handle_access_violation.
11451
efba5c23
TV
114522020-04-16 Tom de Vries <tdevries@suse.de>
11453
11454 PR symtab/25791
11455 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
11456 CUs without psymtab.
11457
97ed802d
KB
114582020-04-16 Kevin Buettner <kevinb@redhat.com>
11459
11460 * python/python.c (do_start_initialization): Don't call
11461 PyEval_InitThreads for Python 3.9 and beyond.
11462
c7d64809
KR
114632020-04-15 Kamil Rytarowski <n54@gmx.com>
11464
11465 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
11466 thread functions.
11467 (obsd_nat_target::wait): Likewise.
11468
ce127a96
TT
114692020-04-15 Tom Tromey <tromey@adacore.com>
11470
11471 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
11472 (DEBUG_EXCEPT): Use debug_printf.
11473
99f1bc6a
AB
114742020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
11475
11476 * completer.c (class completion_tracker::completion_hash_entry)
11477 <hash_name>: New member function.
11478 (completion_tracker::discard_completions): New callback to hash a
11479 completion_hash_entry, pass this to htab_create_alloc.
11480
a0e9b532
JT
114812016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
11482
11483 * windows-nat.c (windows_make_so): Warn rather than stopping with
11484 an error if realpath() fails.
11485
06ca5dd4
KR
114862020-04-14 Kamil Rytarowski <n54@gmx.com>
11487
11488 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
11489 (nbsd_nat_target::info_proc): Add do_status.
11490
194d088f
TV
114912020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
11492 Tom de Vries <tdevries@suse.de>
11493
11494 PR symtab/25718
11495 * psympriv.h (struct partial_symtab::read_symtab)
11496 (struct partial_symtab::expand_psymtab)
11497 (struct partial_symtab::read_dependencies): Update comments.
11498 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
11499 read_symtab for includer.
11500 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
11501 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
11502 (struct dwarf2_include_psymtab::m_readin): Remove.
11503 (struct dwarf2_include_psymtab::includer): New member function.
11504 (dwarf2_psymtab::expand_psymtab): Assert !readin.
11505
c1a66c06
TV
115062020-04-14 Tom de Vries <tdevries@suse.de>
11507
11508 PR symtab/25720
11509 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
11510 with NULL symbol_matcher and lookup_name.
11511 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
11512 and lookup_name.
11513 * dwarf2/read.c (dw2_expand_symtabs_matching)
11514 (dw2_debug_names_expand_symtabs_matching): Same.
11515 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
11516 Make lookup_name a pointer. Update comment.
11517 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
11518 lookup_name being a pointer.
11519 * symfile.c (expand_symtabs_matching): Same.
11520 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
11521 * linespec.c (iterate_over_all_matching_symtabs): Same.
11522
400b5eca
TT
115232020-04-13 Tom Tromey <tom@tromey.com>
11524
11525 * run-on-main-thread.c: Update include.
11526 * unittests/main-thread-selftests.c: Update include.
11527 * tui/tui-win.c: Update include.
11528 * tui/tui-io.c: Update include.
11529 * tui/tui-interp.c: Update include.
11530 * tui/tui-hooks.c: Update include.
11531 * top.h: Update include.
11532 * top.c: Update include.
11533 * ser-base.c: Update include.
11534 * remote.c: Update include.
11535 * remote-notif.c: Update include.
11536 * remote-fileio.c: Update include.
11537 * record-full.c: Update include.
11538 * record-btrace.c: Update include.
11539 * python/python.c: Update include.
11540 * posix-hdep.c: Update include.
11541 * mingw-hdep.c: Update include.
11542 * mi/mi-main.c: Update include.
11543 * mi/mi-interp.c: Update include.
11544 * main.c: Update include.
11545 * linux-nat.c: Update include.
11546 * interps.c: Update include.
11547 * infrun.c: Update include.
11548 * inf-loop.c: Update include.
11549 * event-top.c: Update include.
11550 * event-loop.c: Move to ../gdbsupport/.
11551 * event-loop.h: Move to ../gdbsupport/.
11552 * async-event.h: Update include.
11553 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
11554
93b54c8e
TT
115552020-04-13 Tom Tromey <tom@tromey.com>
11556
11557 * tui/tui-win.c: Include async-event.h.
11558 * remote.c: Include async-event.h.
11559 * remote-notif.c: Include async-event.h.
11560 * record-full.c: Include async-event.h.
11561 * record-btrace.c: Include async-event.h.
11562 * infrun.c: Include async-event.h.
11563 * event-top.c: Include async-event.h.
11564 * event-loop.h: Move some declarations to async-event.h.
11565 * event-loop.c: Don't include ser-event.h or top.h. Move some
11566 code to async-event.c.
11567 * async-event.h: New file.
11568 * async-event.c: New file.
11569 * Makefile.in (COMMON_SFILES): Add async-event.c.
11570 (HFILES_NO_SRCDIR): Add async-event.h.
11571
c1cd3163
TT
115722020-04-13 Tom Tromey <tom@tromey.com>
11573
11574 * utils.c (flush_streams): New function.
11575 * event-loop.c (gdb_wait_for_event): Call flush_streams.
11576
29f2bf4f
TT
115772020-04-13 Tom Tromey <tom@tromey.com>
11578
11579 * event-loop.c (handle_file_event): Use warning, not
11580 printf_unfiltered.
11581
98029d02
TT
115822020-04-13 Tom Tromey <tom@tromey.com>
11583
11584 * event-loop.c: Include <chrono>.
11585
06cc9596
TT
115862020-04-13 Tom Tromey <tom@tromey.com>
11587
11588 * gdb_select.h: Move to ../gdbsupport/.
11589 * event-loop.c: Update include path.
11590 * top.c: Update include path.
11591 * ser-base.c: Update include path.
11592 * ui-file.c: Update include path.
11593 * ser-tcp.c: Update include path.
11594 * guile/scm-ports.c: Update include path.
11595 * posix-hdep.c: Update include path.
11596 * ser-unix.c: Update include path.
11597 * gdb_usleep.c: Update include path.
11598 * mingw-hdep.c: Update include path.
11599 * inflow.c: Update include path.
11600 * infrun.c: Update include path.
11601 * event-top.c: Update include path.
11602
8ae8e197
TT
116032020-04-13 Tom Tromey <tom@tromey.com>
11604
11605 * configure: Rebuild.
11606 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
11607
58cf28e8
TT
116082020-04-13 Tom Tromey <tom@tromey.com>
11609
11610 * event-loop.h (start_event_loop): Don't declare.
11611 * event-loop.c (start_event_loop): Move...
11612 * main.c (start_event_loop): ...here. Now static.
11613
b7f999ae
SDJ
116142020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
11615
11616 * MAINTAINERS: Update my email address.
11617
1085dfd4
KR
116182020-04-12 Kamil Rytarowski <n54@gmx.com>
11619
11620 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
11621 IP_ALL.
11622
49d1d1f5
KR
116232020-04-12 Kamil Rytarowski <n54@gmx.com>
11624
11625 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 11626 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 11627
b4848d2a
KR
116282020-04-12 Kamil Rytarowski <n54@gmx.com>
11629
11630 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 11631 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 11632
51c133d5
KR
116332020-04-12 Kamil Rytarowski <n54@gmx.com>
11634
11635 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
11636
54b8cbd0
KR
116372020-04-11 Kamil Rytarowski <n54@gmx.com>
11638
11639 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
11640 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
11641 (nbsd_nat_target::info_proc): New functions.
11642 * nbsd-nat.c (kinfo_get_vmmap): New function.
11643 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
11644 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
11645 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
11646 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
11647 functions.
11648 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
11649 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
11650 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
11651 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
11652 (KINFO_VME_FLAG_GROWS_DOWN): New.
11653
cf83625d
AS
116542020-04-10 Artur Shepilko <nomadbyte@gmail.com>
11655
11656 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
11657 bit shift.
11658
0c4311ab
TT
116592020-04-10 Tom Tromey <tromey@adacore.com>
11660
11661 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
11662
3e65b3e9
TT
116632020-04-10 Tom Tromey <tromey@adacore.com>
11664
11665 * symtab.c (get_symbol_address, get_msymbol_address): Skip
11666 separate debug files.
11667
13302e95
HD
116682020-04-10 Hannes Domani <ssbssa@yahoo.de>
11669
11670 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11671 Move to...
11672 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11673 ... here.
11674 * windows-nat.c (windows_nat_target::get_windows_debug_event):
11675 Check for STATUS_WX86_BREAKPOINT.
11676 (windows_nat_target::wait): Same.
11677
bdfc1e8a
TV
116782020-04-10 Tom de Vries <tdevries@suse.de>
11679
11680 PR cli/25808
11681 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
11682
f4460aec
SM
116832020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11684
11685 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
11686 (Write After Approval): Remove Tom de Vries.
11687
a25198bb
BE
116882020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
11689
11690 revert partially:
11691 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11692
aac66a4c
SM
11693 * buildsym.c (record_line): Fix undefined behavior and preserve
11694 lines at eof.
a25198bb 11695
206c98a6
KR
116962020-04-09 Kamil Rytarowski <n54@gmx.com>
11697
11698 * auxv.h (svr4_auxv_parse): New.
11699 * auxv.c (default_auxv_parse): Split into default_auxv_parse
11700 and generic_auxv_parse.
11701 (svr4_auxv_parse): Add.
11702 * obsd-tdep.c: Include "auxv.h".
11703 (obsd_auxv_parse): Remove.
11704 (obsd_init_abi): Remove comment.
11705 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
11706 from `obsd_auxv_parse' to `svr4_auxv_parse'.
11707 * nbsd-tdep.c: Include "auxv.h".
11708 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
11709
71fbdbaf
TT
117102020-04-08 Tom Tromey <tromey@adacore.com>
11711
11712 * nat/windows-nat.h (last_wait_event): Don't declare.
11713 (wait_for_debug_event): Update comment.
11714 * nat/windows-nat.c (last_wait_event): Now static.
11715
2c1d95e8
TT
117162020-04-08 Tom Tromey <tromey@adacore.com>
11717
11718 * windows-nat.c (wait_for_debug_event): Move to
11719 nat/windows-nat.c.
11720 * nat/windows-nat.h (wait_for_debug_event): Declare.
11721 * nat/windows-nat.c (wait_for_debug_event): Move from
11722 windows-nat.c. No longer static.
11723
d2977bc4
TT
117242020-04-08 Tom Tromey <tromey@adacore.com>
11725
11726 * windows-nat.c (get_windows_debug_event): Use
11727 fetch_pending_stop.
11728 * nat/windows-nat.h (fetch_pending_stop): Declare.
11729 * nat/windows-nat.c (fetch_pending_stop): New function.
11730
e758e19c
TT
117312020-04-08 Tom Tromey <tromey@adacore.com>
11732
11733 * windows-nat.c (windows_continue): Use matching_pending_stop and
11734 continue_last_debug_event.
11735 * nat/windows-nat.h (matching_pending_stop)
11736 (continue_last_debug_event): Declare.
11737 * nat/windows-nat.c (DEBUG_EVENTS): New define.
11738 (matching_pending_stop, continue_last_debug_event): New
11739 functions.
11740
8d30e395
TT
117412020-04-08 Tom Tromey <tromey@adacore.com>
11742
11743 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
11744 (handle_exception_result): Move to nat/windows-nat.h.
11745 (DEBUG_EXCEPTION_SIMPLE): Remove.
11746 (windows_nat::handle_ms_vc_exception): New function.
11747 (handle_exception): Move to nat/windows-nat.c.
11748 (get_windows_debug_event): Update.
11749 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
11750 nat/windows-nat.c.
11751 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
11752 (handle_exception_result): Move from windows-nat.c.
11753 (handle_exception): Declare.
11754 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
11755 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
11756 windows-nat.c.
11757
29de418d
TT
117582020-04-08 Tom Tromey <tromey@adacore.com>
11759
11760 * windows-nat.c (exception_count, event_count): Remove.
11761 (handle_exception, get_windows_debug_event)
11762 (do_initial_windows_stuff): Update.
11763
a816ba18
TT
117642020-04-08 Tom Tromey <tromey@adacore.com>
11765
11766 * windows-nat.c (windows_nat::handle_load_dll)
11767 (windows_nat::handle_unload_dll): Rename. No longer static.
11768 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
11769 Declare.
11770
a00caa12
TT
117712020-04-08 Tom Tromey <tromey@adacore.com>
11772
11773 * complaints.h (stop_whining): Declare at top-level.
11774 (complaint): Don't declare stop_whining.
11775
d41b524f
TT
117762020-04-08 Tom Tromey <tromey@adacore.com>
11777
11778 * windows-nat.c (windows_nat::handle_output_debug_string):
11779 Rename. No longer static.
11780 * nat/windows-nat.h (handle_output_debug_string): Declare.
11781
3c76026d
TT
117822020-04-08 Tom Tromey <tromey@adacore.com>
11783
11784 * windows-nat.c (current_process_handle, current_process_id)
11785 (main_thread_id, last_sig, current_event, last_wait_event)
11786 (current_windows_thread, desired_stop_thread_id, pending_stops)
11787 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
11788 (display_selectors, fake_create_process)
11789 (get_windows_debug_event): Update.
11790 * nat/windows-nat.h (current_process_handle, current_process_id)
11791 (main_thread_id, last_sig, current_event, last_wait_event)
11792 (current_windows_thread, desired_stop_thread_id, pending_stops)
11793 (struct pending_stop, siginfo_er): Move from windows-nat.c.
11794 * nat/windows-nat.c (current_process_handle, current_process_id)
11795 (main_thread_id, last_sig, current_event, last_wait_event)
11796 (current_windows_thread, desired_stop_thread_id, pending_stops)
11797 (siginfo_er): New globals. Move from windows-nat.c.
11798
9d8679cc
TT
117992020-04-08 Tom Tromey <tromey@adacore.com>
11800
11801 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
11802 (handle_load_dll): Update.
11803 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
11804
28688adf
TT
118052020-04-08 Tom Tromey <tromey@adacore.com>
11806
11807 * windows-nat.c (enum thread_disposition_type): Move to
11808 nat/windows-nat.h.
11809 (windows_nat::thread_rec): Rename from thread_rec. No longer
11810 static.
11811 (windows_add_thread, windows_nat_target::fetch_registers)
11812 (windows_nat_target::store_registers, handle_exception)
11813 (windows_nat_target::resume, get_windows_debug_event)
11814 (windows_nat_target::get_tib_address)
11815 (windows_nat_target::thread_name)
11816 (windows_nat_target::thread_alive): Update.
11817 * nat/windows-nat.h (enum thread_disposition_type): Move from
11818 windows-nat.c.
11819 (thread_rec): Declare.
11820
4834dad0
TT
118212020-04-08 Tom Tromey <tromey@adacore.com>
11822
11823 * windows-nat.c: Add "using namespace".
11824 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
11825 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
11826
65bafd5b
TT
118272020-04-08 Tom Tromey <tromey@adacore.com>
11828
11829 * nat/windows-nat.h (struct windows_thread_info): Declare
11830 destructor.
11831 * nat/windows-nat.c (~windows_thread_info): New.
11832
0a4afda3
TT
118332020-04-08 Tom Tromey <tromey@adacore.com>
11834
11835 PR gdb/22992
11836 * windows-nat.c (current_event): Update comment.
11837 (last_wait_event, desired_stop_thread_id): New globals.
11838 (struct pending_stop): New.
11839 (pending_stops): New global.
11840 (windows_nat_target) <stopped_by_sw_breakpoint>
11841 <supports_stopped_by_sw_breakpoint>: New methods.
11842 (windows_fetch_one_register): Add assertions. Adjust PC.
11843 (windows_continue): Handle pending stops. Suspend other threads
11844 when stepping. Use last_wait_event
11845 (wait_for_debug_event): New function.
11846 (get_windows_debug_event): Use wait_for_debug_event. Handle
11847 pending stops. Queue spurious stops.
11848 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
11849 (windows_nat_target::kill): Use wait_for_debug_event.
11850 * nat/windows-nat.h (struct windows_thread_info)
11851 <stopped_at_software_breakpoint>: New field.
11852 * nat/windows-nat.c (windows_thread_info::resume): Clear
11853 stopped_at_software_breakpoint.
11854
8e61ebec
TT
118552020-04-08 Tom Tromey <tromey@adacore.com>
11856
11857 * windows-nat.c (enum thread_disposition_type): New.
11858 (thread_rec): Replace "get_context" parameter with "disposition";
11859 change type.
11860 (windows_add_thread, windows_nat_target::fetch_registers)
11861 (windows_nat_target::store_registers, handle_exception)
11862 (windows_nat_target::resume, get_windows_debug_event)
11863 (windows_nat_target::get_tib_address)
11864 (windows_nat_target::thread_name)
11865 (windows_nat_target::thread_alive): Update.
11866
98a03287
TT
118672020-04-08 Tom Tromey <tromey@adacore.com>
11868
11869 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
11870 (windows_continue): Use windows_continue::resume.
11871 * nat/windows-nat.h (struct windows_thread_info) <suspend,
11872 resume>: Declare new methods.
11873 * nat/windows-nat.c: New file.
11874 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
11875
7c7411bc
TT
118762020-04-08 Tom Tromey <tromey@adacore.com>
11877
11878 * windows-nat.c (windows_add_thread, windows_delete_thread)
11879 (windows_nat_target::fetch_registers)
11880 (windows_nat_target::store_registers, fake_create_process)
11881 (windows_nat_target::resume, windows_nat_target::resume)
11882 (get_windows_debug_event, windows_nat_target::wait)
11883 (windows_nat_target::pid_to_str)
11884 (windows_nat_target::get_tib_address)
11885 (windows_nat_target::get_ada_task_ptid)
11886 (windows_nat_target::thread_name)
11887 (windows_nat_target::thread_alive): Use lwp, not tid.
11888
2950fdf7
TT
118892020-04-08 Tom Tromey <tromey@adacore.com>
11890
11891 * windows-nat.c (handle_exception)
11892 (windows_nat_target::thread_name): Update.
11893 * nat/windows-nat.h (windows_thread_info): Remove destructor.
11894 <name>: Now unique_xmalloc_ptr.
11895
62fe396b
TT
118962020-04-08 Tom Tromey <tromey@adacore.com>
11897
11898 * windows-nat.c (thread_rec)
11899 (windows_nat_target::fetch_registers): Update.
11900 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
11901 Update comment.
11902 <debug_registers_changed, reload_context>: Now bool.
11903
e9534bd2
TT
119042020-04-08 Tom Tromey <tromey@adacore.com>
11905
11906 * windows-nat.c (windows_add_thread): Use new.
11907 (windows_init_thread_list, windows_delete_thread): Use delete.
11908 (get_windows_debug_event): Update.
11909 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
11910 destructor, and initializers.
11911
ae1f8880
TT
119122020-04-08 Tom Tromey <tromey@adacore.com>
11913
11914 * windows-nat.c (struct windows_thread_info): Remove.
11915 * nat/windows-nat.h: New file.
11916
55a1e039
TT
119172020-04-08 Tom Tromey <tromey@adacore.com>
11918
11919 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
11920 (thread_rec, windows_add_thread, windows_delete_thread)
11921 (windows_continue): Update.
11922
93366324
TT
119232020-04-08 Tom Tromey <tromey@adacore.com>
11924
11925 * windows-nat.c (struct windows_thread_info): Remove typedef.
11926 (thread_head): Remove.
11927 (thread_list): New global.
11928 (thread_rec, windows_add_thread, windows_init_thread_list)
11929 (windows_delete_thread, windows_continue): Update.
11930
0f2265e2
SM
119312020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11932
11933 * windows-tdep.h (windows_init_abi): Add comment.
11934 (cygwin_init_abi): New declaration.
11935 * windows-tdep.c: Split signal enumeration in two, one for
11936 Windows and one for Cygwin.
11937 (windows_gdb_signal_to_target): Only deal with signal of the
11938 Windows OS ABI.
11939 (cygwin_gdb_signal_to_target): New function.
11940 (windows_init_abi): Rename to windows_init_abi_common, don't set
11941 gdb_signal_to_target gdbarch method. Add new new function with
11942 this name.
11943 (cygwin_init_abi): New function.
11944 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
11945 comment. Don't call windows_init_abi.
11946 (amd64_windows_init_abi): Add comment, call windows_init_abi.
11947 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
11948 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
11949 i386_windows_init_abi_common, don't call windows_init_abi. Add
11950 a new function of this name.
11951 (i386_cygwin_init_abi): New function.
11952 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
11953 OS ABI Cygwin.
11954
3810f182
SM
119552020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11956
11957 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
11958 parameter.c.
11959 (dwarf2_read_gdb_index): Update.
11960
063f8e80
KR
119612020-04-07 Kamil Rytarowski <n54@gmx.com>
11962
11963 * nbsd-tdep.c: Include "objfiles.h".
11964 (nbsd_skip_solib_resolver): New.
11965 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
11966
85a9510c 119672020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11968
11969 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
11970 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
11971 with DW_LLE_base_addressx are being emitted in DWARFv5.
11972 Add the newly added kind DW_LOC_OFFSET_PAIR also.
11973 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
11974 unsigned integer.
11975
9fc3eaae 119762020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11977
11978 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
11979 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
11980 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
11981 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
11982 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
11983 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
11984 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
11985
11986
41144253 119872020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11988
11989 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
11990 (read_loclist_index): New function definition.
11991 (lookup_loclist_base): New function definition.
11992 (read_loclist_header): New function definition.
11993 (dwarf2_cu): Add loclist_base and loclist_header field.
11994 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
11995 (read_full_die_1): Read the value of DW_AT_loclists_base.
11996 (read_attribute_reprocess): Handle DW_FORM_loclistx.
11997 (read_attribute_value): Handle DW_FORM_loclistx.
11998 (skip_one_die): Handle DW_FORM_loclistx.
11999 (loclist_header): New structure declaration.
12000 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
12001
9f4e76a4
SM
120022020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12003
12004 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
12005 constructor. Remove `addr` parameter from other constructor and
12006 add `per_cu` parameter.
12007 * dwarf2/read.c (create_partial_symtab): Update.
12008
25c11aca
TV
120092020-04-07 Tom de Vries <tdevries@suse.de>
12010
12011 PR symtab/25796
12012 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
12013 (partial_die_info::fixup): Inherit has_const_value.
12014
5707e24b
TV
120152020-04-07 Tom de Vries <tdevries@suse.de>
12016
12017 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
12018 symbols without address.
12019
05f00e22
KR
120202020-04-06 Kamil Rytarowski <n54@gmx.com>
12021
12022 * nbsd-nat.h (struct thread_info): Add forward declaration.
12023 (nbsd_nat_target::thread_alive): Add.
12024 (nbsd_nat_target::thread_name): Likewise.
12025 (nbsd_nat_target::update_thread_list): Likewise.
12026 (update_thread_list::post_attach): Likewise.
12027 (post_attach::pid_to_str): Likewise.
12028 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
12029 (nbsd_thread_lister): Add.
12030 (nbsd_nat_target::thread_alive): Likewise.
12031 (nbsd_nat_target::thread_name): Likewise.
12032 (nbsd_add_threads): Likewise.
12033 (update_thread_list::post_attach): Likewise.
12034 (nbsd_nat_target::update_thread_list): Likewise.
12035 (post_attach::pid_to_str): Likewise.
12036
6ee448cc
TT
120372020-04-06 Tom Tromey <tromey@adacore.com>
12038
12039 * ada-valprint.c (print_variant_part): Extract the variant field.
12040 (print_field_values): Use the field as the outer value when
12041 recursing.
12042
dea34e8c
TT
120432020-04-06 Tom Tromey <tromey@adacore.com>
12044
12045 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
12046 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
12047 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
12048 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
12049 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
12050
93689ce9
TT
120512020-04-06 Tom Tromey <tromey@adacore.com>
12052
12053 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
12054 TYPE_CODE_ERROR.
12055
79743962
KR
120562020-04-06 Kamil Rytarowski <n54@gmx.com>
12057
12058 * nbsd-tdep.c: Include "gdbarch.h".
12059 Define enum with NetBSD signal numbers.
12060 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
12061 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
12062 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
12063 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
12064 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
12065 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
12066 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
12067 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12068 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
12069 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
12070 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
12071 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
12072
9e7c9a03
HD
120732020-04-03 Hannes Domani <ssbssa@yahoo.de>
12074
12075 PR gdb/25325
12076 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
12077
d9e49b61
TT
120782020-04-03 Tom Tromey <tromey@adacore.com>
12079
12080 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
12081 Read constant block.
12082
e0fc5c3f
SM
120832020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12084
12085 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
12086 (gdb_bfd_get_full_section_contents): New declaration.
12087 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
12088 * windows-tdep.c (is_linked_with_cygwin_dll): Use
12089 gdb_bfd_get_full_section_contents.
12090
e2ff18a0
SM
120912020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12092
12093 * exec.c (build_section_table): Replace internal_error with
12094 gdb_assert.
12095 (section_table_xfer_memory_partial): Likewise.
12096 * mdebugread.c (parse_partial_symbols): Likewise.
12097 * psymtab.c (lookup_partial_symbol): Likewise.
12098 * utils.c (wrap_here): Likewise.
12099
0830d301
TT
121002020-04-02 Tom Tromey <tromey@adacore.com>
12101
12102 * f-lang.c (build_fortran_types): Use arch_type to initialize
12103 builtin_complex_s32 in the TYPE_CODE_ERROR case.
12104
e7da7f8f
TT
121052020-04-02 Tom Tromey <tromey@adacore.com>
12106
12107 * dwarf2/read.c (partial_die_info::read): Do not create a vector
12108 of attributes.
12109
c90d28ac
AB
121102020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
12111 Bernd Edlinger <bernd.edlinger@hotmail.de>
12112 Tom Tromey <tromey@adacore.com>
12113
12114 * buildsym.c (buildsym_compunit::record_line): Remove
12115 deduplication code.
12116
1aa98955
TV
121172020-04-02 Tom de Vries <tdevries@suse.de>
12118
12119 PR ada/24671
12120 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
12121
d3214198
TV
121222020-04-02 Tom de Vries <tdevries@suse.de>
12123
12124 * dwarf2/read.c (dwarf2_gdb_index_functions,
12125 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
12126 NULL.
12127 * psymtab.c (psym_lookup_global_symbol_language): New function.
12128 (psym_functions): Init psym_lookup_global_symbol_language with
12129 psym_lookup_global_symbol_language.
12130 * symfile-debug.c (debug_sym_quick_functions): Init
12131 lookup_global_symbol_language with NULL.
12132 * symfile.c (set_initial_language): Remove fixme comment.
12133 * symfile.h (struct quick_symbol_functions): Add
12134 lookup_global_symbol_language.
12135 * symtab.c (find_quick_global_symbol_language): New function.
12136 (find_main_name): Use find_quick_global_symbol_language.
12137
2836752f
SM
121382020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
12139
12140 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
12141
64dc2d4b
BE
121422020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12143
12144 * buildsym.c (record_line): Fix undefined behavior and preserve
12145 lines at eof.
12146
bbe3dc41
BE
121472020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12148
12149 * buildsym.c (record_line): Fix the resizing condition.
12150
6b4a335b
TT
121512020-04-01 Tom Tromey <tom@tromey.com>
12152
12153 * value.h (value_literal_complex): Add comment.
12154 * valops.c (value_literal_complex): Refer to value.h.
12155
3638a098
TT
121562020-04-01 Tom Tromey <tom@tromey.com>
12157
12158 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
12159 (scalar_type): New rule, from typebase.
12160 (typebase): Use scalar_type. Recognize complex types.
12161 (field_name): Handle FLOAT_KEYWORD.
12162 (ident_tokens): Add _Complex and __complex__.
12163
c34e8714
TT
121642020-04-01 Tom Tromey <tom@tromey.com>
12165
12166 PR exp/25299:
12167 * valarith.c (promotion_type, complex_binop): New functions.
12168 (scalar_binop): Handle complex numbers. Use promotion_type.
12169 (value_pos, value_neg, value_complement): Handle complex numbers.
12170
fa649bb7
TT
121712020-04-01 Tom Tromey <tom@tromey.com>
12172
12173 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
12174 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
12175 (parse_number): Handle complex numbers.
12176
981c08ce
TT
121772020-04-01 Tom Tromey <tom@tromey.com>
12178
12179 * c-valprint.c (c_decorations): Change complex suffix to "i".
12180
4c99290d
TT
121812020-04-01 Tom Tromey <tom@tromey.com>
12182
12183 * valprint.c (generic_value_print_complex): Use accessors.
12184 * value.h (value_real_part, value_imaginary_part): Declare.
12185 * valops.c (value_real_part, value_imaginary_part): New
12186 functions.
12187 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
12188
5b930b45
TT
121892020-04-01 Tom Tromey <tom@tromey.com>
12190
12191 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
12192 (read_range_type): Update.
12193 * mdebugread.c (basic_type): Update.
12194 * go-lang.c (build_go_types): Use init_complex_type.
12195 * gdbtypes.h (struct main_type) <complex_type>: New member.
12196 (init_complex_type): Update.
12197 (arch_complex_type): Don't declare.
12198 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
12199 Make name if none given. Use alloc_type_copy. Look for cached
12200 complex type.
12201 (arch_complex_type): Remove.
12202 (gdbtypes_post_init): Use init_complex_type.
12203 * f-lang.c (build_fortran_types): Use init_complex_type.
12204 * dwarf2/read.c (read_base_type): Update.
12205 * d-lang.c (build_d_types): Use init_complex_type.
12206 * ctfread.c (read_base_type): Update.
12207
53cccef1
TBA
122082020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12209
12210 * infrun.c (stop_all_threads): Update assertion, plus when
12211 stopping threads, take into account that we might be trying
12212 to stop an all-stop target.
12213 (stop_waiting): Call 'stop_all_threads' if there exists a
12214 non-stop target.
12215
a0714d30
TBA
122162020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12217
12218 * target.h (exists_non_stop_target): New function declaration.
12219 * target.c (exists_non_stop_target): New function.
12220
60e22c1e
HD
122212020-04-01 Hannes Domani <ssbssa@yahoo.de>
12222
12223 PR gdb/24789
12224 * eval.c (is_integral_or_integral_reference): New function.
12225 (evaluate_subexp_standard): Allow integer references in
12226 pointer arithmetic.
12227
e139a727
TBA
122282020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12229
12230 * remote.c (remote_target::remote_parse_stop_reply): Remove the
12231 check for no ptid in the stop reply when the target is non-stop.
12232
e0802d59
TT
122332020-04-01 Tom Tromey <tromey@adacore.com>
12234
12235 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
12236 "name" parameter to rvalue reference. Initialize m_name_holder.
12237 <lookup_name_info>: New overloads.
12238 <name>: Return gdb::string_view.
12239 <c_str>: New method.
12240 <make_ignore_params>: Update.
12241 <search_name_hash>: Update.
12242 <language_lookup_name>: Return const char *.
12243 <m_name>: Change type.
12244 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
12245 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
12246 (lookup_name_info::match_any): Update.
12247 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
12248 Update.
12249 * minsyms.c (linkage_name_str): Update.
12250 * language.c (default_symbol_name_matcher): Update.
12251 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
12252 Update.
12253 * ada-lang.c (ada_fold_name): Change parameter to string_view.
12254 (ada_lookup_name_info::ada_lookup_name_info): Update.
12255 (literal_symbol_name_matcher): Update.
12256
8c072cb6
TT
122572020-04-01 Tom Tromey <tromey@adacore.com>
12258
12259 * psymtab.c (psymtab_search_name): Remove function.
12260 (psym_lookup_symbol): Create search name and lookup name here.
12261 (lookup_partial_symbol): Remove "name" parameter; add
12262 lookup_name.
12263 (psym_expand_symtabs_for_function): Update.
12264
6f29a534
TT
122652020-03-31 Joel Jones <joelkevinjones@gmail.com>
12266
12267 PR tui/25597:
12268 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
12269
af62665e
TT
122702020-03-31 Tom Tromey <tromey@adacore.com>
12271
12272 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
12273 memcpy.
12274
d1a89da5
NC
122752020-03-30 Nelson Chu <nelson.chu@sifive.com>
12276
12277 * features/riscv/32bit-csr.xml: Regenerated.
12278 * features/riscv/64bit-csr.xml: Regenerated.
12279
d8af9068
TT
122802020-03-30 Tom Tromey <tromey@adacore.com>
12281
12282 * ada-valprint.c (print_variant_part): Update.
12283 * ada-lang.h (ada_which_variant_applies): Update.
12284 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
12285 outer_valaddr parameters; replace with "outer" value parameter.
12286 (to_fixed_variant_branch_type): Update.
12287
227c0bf4
PFC
122882020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12289
12290 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
12291 <list>. Remove inclusion of observable.h.
12292 (PPC_DEBUG_CURRENT_VERSION): Move up define.
12293 (struct arch_lwp_info): New struct.
12294 (class ppc_linux_dreg_interface): New class.
12295 (struct ppc_linux_process_info): New struct.
12296 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
12297 <low_new_clone, low_forget_process, low_prepare_to_resume>
12298 <copy_thread_dreg_state, mark_thread_stale>
12299 <mark_debug_registers_changed, register_hw_breakpoint>
12300 <clear_hw_breakpoint, register_wp, clear_wp>
12301 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
12302 <num_memory_accesses, get_trigger_type>
12303 <create_watchpoint_request, hwdebug_point_cmp>
12304 <init_arch_lwp_info, get_arch_lwp_info>
12305 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
12306 methods.
12307 <struct ptid_hash>: New inner struct.
12308 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
12309 members.
12310 (saved_dabr_value, hwdebug_info, max_slots_number)
12311 (struct hw_break_tuple, struct thread_points, ppc_threads)
12312 (have_ptrace_hwdebug_interface)
12313 (hwdebug_find_thread_points_by_tid)
12314 (hwdebug_insert_point, hwdebug_remove_point): Remove.
12315 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
12316 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
12317 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
12318 use m_dreg_interface.
12319 (hwdebug_point_cmp): Change to...
12320 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
12321 reference arguments instead of pointers.
12322 (ppc_linux_nat_target::ranged_break_num_registers): Use
12323 m_dreg_interface.
12324 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
12325 m_dreg_interface. Call register_hw_breakpoint.
12326 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
12327 m_dreg_interface. Call clear_hw_breakpoint.
12328 (get_trigger_type): Change to...
12329 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
12330 comment.
12331 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
12332 use m_dreg_interface. Call register_hw_breakpoint.
12333 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
12334 use m_dreg_interface. Call clear_hw_breakpoint.
12335 (can_use_watchpoint_cond_accel): Change to...
12336 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
12337 method. Update comment, use m_dreg_interface and
12338 m_process_info.
12339 (calculate_dvc): Change to...
12340 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
12341 m_dreg_interface.
12342 (num_memory_accesses): Change to...
12343 (ppc_linux_nat_target::num_memory_accesses): ...this method.
12344 (check_condition): Change to...
12345 (ppc_linux_nat_target::check_condition): ...this method.
12346 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
12347 comment, use m_dreg_interface.
12348 (create_watchpoint_request): Change to...
12349 (ppc_linux_nat_target::create_watchpoint_request): ...this
12350 method. Use m_dreg_interface.
12351 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
12352 m_dreg_interface. Call register_hw_breakpoint or register_wp.
12353 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
12354 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
12355 (ppc_linux_nat_target::low_forget_process)
12356 (ppc_linux_nat_target::low_new_fork)
12357 (ppc_linux_nat_target::low_new_clone)
12358 (ppc_linux_nat_target::low_delete_thread)
12359 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
12360 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
12361 only call mark_thread_stale.
12362 (ppc_linux_thread_exit): Remove.
12363 (ppc_linux_nat_target::stopped_data_address): Change to...
12364 (ppc_linux_nat_target::low_stopped_data_address): This. Add
12365 comment, use m_dreg_interface and m_thread_hw_breakpoints.
12366 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
12367 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
12368 comment. Call low_stopped_data_address.
12369 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
12370 m_dreg_interface.
12371 (ppc_linux_nat_target::masked_watch_num_registers): Use
12372 m_dreg_interface.
12373 (ppc_linux_nat_target::copy_thread_dreg_state)
12374 (ppc_linux_nat_target::mark_thread_stale)
12375 (ppc_linux_nat_target::mark_debug_registers_changed)
12376 (ppc_linux_nat_target::register_hw_breakpoint)
12377 (ppc_linux_nat_target::clear_hw_breakpoint)
12378 (ppc_linux_nat_target::register_wp)
12379 (ppc_linux_nat_target::clear_wp)
12380 (ppc_linux_nat_target::init_arch_lwp_info)
12381 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
12382 (_initialize_ppc_linux_nat): Remove observer callback.
12383
4db10d8f
PFC
123842020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12385
12386 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
12387 (ppc_linux_nat_target::auxv_parse)
12388 (ppc_linux_nat_target::read_description)
12389 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
12390 Move up.
12391
1310c1b0
PFC
123922020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12393
12394 * linux-nat.h (low_new_clone): New method.
12395 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
12396
69b037c3
SM
123972020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12398
12399 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
12400 (dbx_expand_psymtab): ... this.
12401 (start_psymtab): Update.
12402 * mdebugread.c (psymtab_to_symtab_1): Rename to...
12403 (mdebug_expand_psymtab): ... this.
12404 (parse_partial_symbols): Update.
12405 (new_psymtab): Update.
12406 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
12407 (xcoff_expand_psymtab): ... this.
12408 (xcoff_start_psymtab): Update.
12409
48993951
SM
124102020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12411
12412 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
12413 <expand_dependencies>: ... this.
12414 * psymtab.c (partial_symtab::read_dependencies): Rename to...
12415 (partial_symtab::expand_dependencies): ... this.
12416 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
12417 Update.
12418 (dwarf2_psymtab::expand_psymtab): Update.
12419 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12420 * mdebugread.c (psymtab_to_symtab_1): Update.
12421 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12422
3ad83046
SM
124232020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12424
12425 * psympriv.h (discard_psymtab): Remove.
12426 * dbxread.c (dbx_end_psymtab): Update.
12427 * xcoffread.c (xcoff_end_psymtab): Update.
12428
4d1b9ab6
TT
124292020-03-28 Tom Tromey <tom@tromey.com>
12430
12431 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
12432 comment.
12433
f1749218
TT
124342020-03-28 Tom Tromey <tom@tromey.com>
12435
12436 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
12437
ebea7626
HD
124382020-03-27 Hannes Domani <ssbssa@yahoo.de>
12439
12440 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12441
a879b4d5
JB
124422020-03-26 John Baldwin <jhb@FreeBSD.org>
12443
12444 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
12445
0826b30a
TT
124462020-03-26 Tom Tromey <tom@tromey.com>
12447
12448 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
12449 (mark_common_block_symbol_computed, read_tag_string_type)
12450 (attr_to_dynamic_prop, read_subrange_type): Update.
12451 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
12452 to be methods on struct attribute.
12453 (skip_one_die, process_imported_unit_die, read_namespace_alias)
12454 (read_call_site_scope, partial_die_info::read)
12455 (partial_die_info::read, lookup_die_type, follow_die_ref):
12456 Update.
12457 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
12458 from dwarf2_get_ref_die_offset.
12459 (attribute::constant_value): New method, from
12460 dwarf2_get_attr_constant_value.
12461 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
12462 Declare method.
12463 <constant_value>: New method.
12464
2b2558bf
TT
124652020-03-26 Tom Tromey <tom@tromey.com>
12466
12467 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
12468 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
12469 (dwarf_type_encoding_name): Move to stringify.c.
12470 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
12471 * dwarf2/stringify.c: New file.
12472 * dwarf2/stringify.h: New file.
12473
eeb64781
TT
124742020-03-26 Tom Tromey <tom@tromey.com>
12475
12476 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
12477 Rewrite.
12478
a39fdb41
TT
124792020-03-26 Tom Tromey <tom@tromey.com>
12480
12481 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
12482 methods.
12483 * dwarf2/read.c (lookup_addr_base): Move to die.h.
12484 (lookup_ranges_base): Likewise.
12485 (read_cutu_die_from_dwo, read_full_die_1): Update.
12486
436c571c
TT
124872020-03-26 Tom Tromey <tom@tromey.com>
12488
12489 * dwarf2/read.c (read_import_statement, read_file_scope)
12490 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
12491 (read_lexical_block_scope, read_call_site_scope)
12492 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
12493 (handle_struct_member_die, process_structure_scope)
12494 (update_enumeration_type_from_children)
12495 (process_enumeration_scope, read_array_type, read_common_block)
12496 (read_namespace, read_module, read_subroutine_type): Update.
12497 (sibling_die): Remove.
12498
052c8bb8
TT
124992020-03-26 Tom Tromey <tom@tromey.com>
12500
12501 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
12502 (build_type_psymtabs_reader, read_structure_type)
12503 (read_enumeration_type, read_full_die_1): Update.
12504 (dwarf2_attr_no_follow): Move to die.h.
12505 * dwarf2/die.h (struct die_info) <attr>: New method.
12506
2b24b6e4
TT
125072020-03-26 Tom Tromey <tom@tromey.com>
12508
12509 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
12510 <base_address>: Now an optional.
12511 (dwarf2_find_base_address, dwarf2_rnglists_process)
12512 (dwarf2_ranges_process, fill_in_loclist_baton)
12513 (dwarf2_symbol_mark_computed): Update.
12514
c2d50fd0
TT
125152020-03-26 Tom Tromey <tom@tromey.com>
12516
12517 * dwarf2/read.c (struct die_info): Move to die.h.
12518 * dwarf2/die.h: New file.
12519
0df7ad3a
TT
125202020-03-26 Tom Tromey <tom@tromey.com>
12521
12522 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
12523 * dwarf2/read.c
12524 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12525 Move to line-header.c.
12526 (read_checked_initial_length_and_offset, read_formatted_entries):
12527 Likewise.
12528 (dwarf_decode_line_header): Split into two.
12529 * dwarf2/line-header.c
12530 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12531 Move from read.c.
12532 (read_checked_initial_length_and_offset, read_formatted_entries):
12533 Likewise.
12534 (dwarf_decode_line_header): New function, split from read.c.
12535
86c0bb4c
TT
125362020-03-26 Tom Tromey <tom@tromey.com>
12537
12538 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
12539 Declare method.
12540 * dwarf2/read.c (read_attribute_value): Update.
12541 (dwarf2_per_objfile::read_line_string): Rename from
12542 read_indirect_line_string.
12543 (read_formatted_entries): Update.
12544
2ef46c2f
TT
125452020-03-26 Tom Tromey <tom@tromey.com>
12546
12547 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
12548 variable.
12549
4f9c1eda
TT
125502020-03-26 Tom Tromey <tom@tromey.com>
12551
12552 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
12553 const.
12554 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
12555 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
12556 parameter const.
12557
5a0e026f
TT
125582020-03-26 Tom Tromey <tom@tromey.com>
12559
12560 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
12561 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
12562 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
12563 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
12564
8844c11b
TT
125652020-03-26 Tom Tromey <tom@tromey.com>
12566
12567 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
12568 file_names_size, file_full_name, file_file_name>: Use const.
12569 <file_name_at, file_names>: Add const overload.
12570 * dwarf2/line-header.c (line_header::file_file_name)
12571 (line_header::file_full_name): Update.
12572
c90ec28a
TT
125732020-03-26 Tom Tromey <tom@tromey.com>
12574
12575 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
12576 (macro_start_file, consume_improper_spaces)
12577 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
12578 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
12579 (dwarf_decode_macros): Move to macro.c.
12580 * dwarf2/macro.c: New file.
12581 * dwarf2/macro.h: New file.
12582 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
12583
4f44ae6c
TT
125842020-03-26 Tom Tromey <tom@tromey.com>
12585
12586 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
12587 method.
12588 * dwarf2/section.c: New method. From
12589 read_indirect_string_at_offset_from.
12590 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
12591 (read_indirect_string_at_offset_from): Move to section.c.
12592 (read_indirect_string_at_offset): Rewrite.
12593 (read_indirect_line_string_at_offset): Remove.
12594 (read_indirect_string, read_indirect_line_string)
12595 (dwarf_decode_macro_bytes): Update.
12596
a0194fa8
TT
125972020-03-26 Tom Tromey <tom@tromey.com>
12598
12599 * dwarf2/section.h (struct dwarf2_section_info)
12600 <overload_complaint>: Declare.
12601 (dwarf2_section_buffer_overflow_complaint): Don't declare.
12602 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
12603 Rename from dwarf2_section_buffer_overflow_complaint.
12604 * dwarf2/read.c (skip_one_die, partial_die_info::read)
12605 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
12606
3d27bbdb
TT
126072020-03-26 Tom Tromey <tom@tromey.com>
12608
12609 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
12610 Declare.
12611 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
12612 Move from read.c.
12613 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
12614 to section.c.
12615
9eac9650
TT
126162020-03-26 Tom Tromey <tom@tromey.com>
12617
12618 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
12619
bf80d710
TT
126202020-03-26 Tom Tromey <tom@tromey.com>
12621
12622 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
12623 "builder".
12624 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
12625 parameter.
12626 (dwarf_decode_macros): Update.
12627
0314b390
TT
126282020-03-26 Tom Tromey <tom@tromey.com>
12629
12630 * dwarf2/read.c (read_attribute_value): Update.
12631 (read_indirect_string_from_dwz): Move to dwz.c; change into
12632 method.
12633 (dwarf_decode_macro_bytes): Update.
12634 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
12635 * dwarf2/dwz.c: New file.
12636 * Makefile.in (COMMON_SFILES): Add dwz.c.
12637
9fda78b6
TT
126382020-03-26 Tom Tromey <tom@tromey.com>
12639
12640 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
12641 * dwarf2/read.c: Add include.
12642 * dwarf2/index-write.c: Add include.
12643 * dwarf2/index-cache.c: Add include.
12644 * dwarf2/dwz.h: New file.
12645
33aa3c10
TT
126462020-03-25 Tom Tromey <tom@tromey.com>
12647
12648 * compile/compile-object-load.c (get_out_value_type): Mention
12649 correct symbol name in error message.
12650
d503b685
HD
126512020-03-25 Hannes Domani <ssbssa@yahoo.de>
12652
12653 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12654
7b1eff95
TV
126552020-03-25 Tom de Vries <tdevries@suse.de>
12656
12657 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
12658 * symmisc.c (dump_symtab_1): Print user and includes fields.
12659 (maintenance_info_symtabs): Same.
12660
dd895392
AB
126612020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
12662
12663 PR gdb/25534
12664 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
12665 (riscv_regcache_cooked_write): New function.
12666 (riscv_push_dummy_call): Use new function.
12667 (riscv_return_value): Likewise.
12668
5ab2fbf1
SM
126692020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
12670
12671 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
12672 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
12673 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
12674 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
12675 * infrun.c (follow_fork): Likewise.
12676 (follow_fork_inferior): Likewise.
12677 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
12678 * linux-nat.h (class linux_nat_target): Likewise.
12679 * remote.c (class remote_target) <follow_fork>: Likewise.
12680 (remote_target::follow_fork): Likewise.
12681 * target-delegates.c: Re-generate.
12682 * target.c (default_follow_fork): Likewise.
12683 (target_follow_fork): Likewise.
12684 * target.h (struct target_ops) <follow_fork>: Likewise.
12685 (target_follow_fork): Likewise.
12686
a64fafb5
TV
126872020-03-24 Tom de Vries <tdevries@suse.de>
12688
12689 * psymtab.c (maintenance_info_psymtabs): Print user field.
12690
fe26d3a3
TT
126912020-03-20 Tom Tromey <tromey@adacore.com>
12692
12693 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
12694 const.
12695 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
12696 const.
12697
c884cc46
SM
126982020-03-20 Simon Marchi <simon.marchi@efficios.com>
12699
12700 * ptrace.m4: Don't check for ptrace declaration.
12701 * config.in: Re-generate.
12702 * configure: Re-generate.
12703 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
12704 not defined.
12705
1ff700c2
KR
127062020-03-20 Kamil Rytarowski <n54@gmx.com>
12707
12708 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
12709 `PTRACE_TYPE_RET'.
12710 * i386-bsd-nat.c (gdb_ptrace): Likewise.
12711 * sparc-nat.c (gdb_ptrace): Likewise.
12712 * x86-bsd-nat.c (gdb_ptrace): Likewise.
12713
f7d4f0b1
TT
127142020-03-20 Tom Tromey <tromey@adacore.com>
12715
12716 * c-exp.y (lex_one_token): Fix assert.
12717
f67210ff
TT
127182020-03-20 Tom Tromey <tromey@adacore.com>
12719
12720 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
12721 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
12722 strncpy call.
12723
1773be9e
TT
127242020-03-20 Tom Tromey <tromey@adacore.com>
12725
12726 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
12727
70304be9
TT
127282020-03-20 Tom Tromey <tromey@adacore.com>
12729
12730 * ada-valprint.c (print_variant_part): Remove parameters; switch
12731 to value-based API.
12732 (print_field_values): Likewise.
12733 (ada_val_print_struct_union): Likewise.
12734 (ada_value_print_1): Update.
12735
9faa006d
KR
127362020-03-20 Kamil Rytarowski <n54@gmx.com>
12737
12738 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
12739 nbsd_nat_target instead of inf_ptrace_target.
12740 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12741 nbsd_nat_target.
12742
4a90f062
KR
127432020-03-20 Kamil Rytarowski <n54@gmx.com>
12744
12745 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
12746 it to the ptrace call.
12747 * (store_registers): Likewise.
12748
127492020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
12750
12751 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
12752 it to the ptrace call.
12753 * (store_registers): Likewise.
12754
2d07da27
LM
127552020-03-19 Luis Machado <luis.machado@linaro.org>
12756
12757 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
12758 valid, fetch vg value from ptrace.
12759
f09db380
KR
127602020-03-19 Kamil Rytarowski <n54@gmx.com>
12761 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
12762 * inf-ptrace.c: Likewise.
12763 * (gdb_ptrace): Add.
12764 * (inf_ptrace_target::resume): Update.
12765 * (inf_ptrace_target::xfer_partial): Likewise.
12766 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
12767 * (inf_ptrace_peek_poke): Update.
12768
fcc7376e
KR
127692020-03-19 Kamil Rytarowski <n54@gmx.com>
12770
12771 * x86-bsd-nat.c (gdb_ptrace): New.
12772 * (x86bsd_dr_set): Add new argument `ptid'.
12773 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
12774 x86bsd_dr_set_addr): Update.
12775
cada5fc9
AB
127762020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12777
12778 * remote.c (remote_target::process_stop_reply): Handle events for
12779 all threads differently.
12780
19a2740f
AB
127812020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12782
12783 * completer.c (completion_tracker::remove_completion): Define new
12784 function.
12785 * completer.h (completion_tracker::remove_completion): Declare new
12786 function.
12787 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
12788 when adding a C++ function symbol.
12789
724fd9ba
AB
127902020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12791
12792 * completer.c (completion_tracker::completion_hash_entry): Define
12793 new class.
12794 (advance_to_filename_complete_word_point): Call
12795 recompute_lowest_common_denominator.
12796 (completion_tracker::completion_tracker): Call discard_completions
12797 to setup the hash table.
12798 (completion_tracker::discard_completions): Allow for being called
12799 from the constructor, pass new equal function, and element deleter
12800 when constructing the hash table. Initialise new class member
12801 variables.
12802 (completion_tracker::maybe_add_completion): Remove use of
12803 m_entries_vec, and store more information into m_entries_hash.
12804 (completion_tracker::recompute_lcd_visitor): New function, most
12805 content taken from...
12806 (completion_tracker::recompute_lowest_common_denominator):
12807 ...here, this now just visits each item in the hash calling the
12808 above visitor.
12809 (completion_tracker::build_completion_result): Remove use of
12810 m_entries_vec, call recompute_lowest_common_denominator.
12811 * completer.h (completion_tracker::have_completions): Remove use
12812 of m_entries_vec.
12813 (completion_tracker::completion_hash_entry): Declare new class.
12814 (completion_tracker::recompute_lowest_common_denominator): Change
12815 function signature.
12816 (completion_tracker::recompute_lcd_visitor): Declare new function.
12817 (completion_tracker::m_entries_vec): Delete.
12818 (completion_tracker::m_entries_hash): Initialize to NULL.
12819 (completion_tracker::m_lowest_common_denominator_valid): New
12820 member variable.
12821 (completion_tracker::m_lowest_common_denominator_max_length): New
12822 member variable.
12823
5a82b8a1
KR
128242020-03-17 Kamil Rytarowski <n54@gmx.com>
12825
12826 * regformats/regdef.h: Put reg in gdb namespace.
12827
fb516a69
KR
128282020-03-17 Kamil Rytarowski <n54@gmx.com>
12829
12830 * i386-bsd-nat.c (gdb_ptrace): New.
12831 * (i386bsd_fetch_inferior_registers,
12832 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12833 * (i386bsd_fetch_inferior_registers,
12834 i386bsd_store_inferior_registers) Use gdb_ptrace.
12835
1c0aa1fb
KR
128362020-03-17 Kamil Rytarowski <n54@gmx.com>
12837
12838 * amd64-bsd-nat.c (gdb_ptrace): New.
12839 * (amd64bsd_fetch_inferior_registers,
12840 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12841 * (amd64bsd_fetch_inferior_registers,
12842 amd64bsd_store_inferior_registers) Use gdb_ptrace.
12843
5ccd2fb7
KR
128442020-03-17 Kamil Rytarowski <n54@gmx.com>
12845
12846 * user-regs.c (user_reg::read): Rename to...
12847 (user_reg::xread): ...this.
12848 * (append_user_reg): Rename argument `read' to `xread'.
12849 * (user_reg_add_builtin): Likewise.
12850 * (user_reg_add): Likewise.
12851 * (value_of_user_reg): Likewise.
12852
2108a63a
KR
128532020-03-17 Kamil Rytarowski <n54@gmx.com>
12854
12855 * sparc-nat.c (gdb_ptrace): New.
12856 * sparc-nat.c (sparc_fetch_inferior_registers)
12857 (sparc_store_inferior_registers) Remove obsolete comment.
12858 * sparc-nat.c (sparc_fetch_inferior_registers)
12859 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
12860 * sparc-nat.c (sparc_fetch_inferior_registers)
12861 (sparc_store_inferior_registers) Use gdb_ptrace.
12862
a225c9a8
KR
128632020-03-17 Kamil Rytarowski <n54@gmx.com>
12864
12865 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
12866 it to the ptrace call.
12867 * sh-nbsd-nat.c (store_registers): Likewise.
12868
98097623
KR
128692020-03-17 Kamil Rytarowski <n54@gmx.com>
12870
12871 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
12872 nbsd_nat_target instead of inf_ptrace_target.
12873 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12874 nbsd_nat_target.
12875
9e38d619
KR
128762020-03-17 Kamil Rytarowski <n54@gmx.com>
12877
12878 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
12879
a2ecbe9f
KR
128802020-03-17 Kamil Rytarowski <n54@gmx.com>
12881
12882 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
12883 <sys/sysctl.h>.
12884 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
12885
58990295
TV
128862020-03-17 Tom de Vries <tdevries@suse.de>
12887
12888 PR gdb/23710
12889 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
12890 fields.
12891 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
12892 fields.
12893 (process_imported_unit_die): Skip import of c++ CUs.
12894
771dd3a8
TT
128952020-03-16 Tom Tromey <tom@tromey.com>
12896
12897 * p-valprint.c (pascal_object_print_value): Initialize
12898 base_value.
12899
817a7585
AK
129002020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
12901 Shahab Vahedi <shahab@synopsys.com>
12902
12903 * Makefile.in: Add arch/arc.o
12904 * configure.tgt: Likewise.
12905 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
12906 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 12907 (arc_read_description): New function to cache target descriptions.
817a7585
AK
12908 * arc-tdep.h (arc_read_description): Add proto type.
12909 * arch/arc.c: New file.
12910 * arch/arc.h: Likewise.
12911 * features/Makefile: Replace old target descriptions with new.
12912 * features/arc-arcompact.c: Remove.
12913 * features/arc-arcompact.xml: Likewise.
12914 * features/arc-v2.c: Likewise
12915 * features/arc-v2.xml: Likewise
12916 * features/arc/aux-arcompact.xml: New file.
12917 * features/arc/aux-v2.xml: Likewise.
12918 * features/arc/core-arcompact.xml: Likewise.
12919 * features/arc/core-v2.xml: Likewise.
12920 * features/arc/aux-arcompact.c: Generate.
12921 * features/arc/aux-v2.c: Likewise.
12922 * features/arc/core-arcompact.c: Likewise.
12923 * features/arc/core-v2.c: Likewise.
12924 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
12925
67430cd0
TT
129262020-03-16 Tom Tromey <tromey@adacore.com>
12927
12928 PR gdb/25663:
12929 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
12930 putting value into bcache.
12931
30efb6c7
SM
129322020-03-16 Simon Marchi <simon.marchi@efficios.com>
12933
12934 PR gdb/21500
12935 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
12936 to...
12937 (amd64_windows_init_abi_common): ... this. Don't set size of
12938 long type.
12939 (amd64_windows_init_abi): New function.
12940 (amd64_cygwin_init_abi): New function.
12941 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
12942 the Cygwin OS ABI.
12943 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
12944 comment.
12945
8db52437
SM
129462020-03-16 Simon Marchi <simon.marchi@efficios.com>
12947
12948 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
12949 * windows-tdep.c (CYGWIN_DLL_NAME): New.
12950 (pe_import_directory_entry): New struct type.
12951 (is_linked_with_cygwin_dll): New function.
12952 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
12953 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
12954 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
12955
5982a56a
SM
129562020-03-16 Simon Marchi <simon.marchi@efficios.com>
12957
12958 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
12959 i386_cygwin_core_osabi_sniffer.
12960
7a1998df
SM
129612020-03-16 Simon Marchi <simon.marchi@efficios.com>
12962
12963 * i386-cygwin-tdep.c: Rename to...
12964 * i386-windows-tdep.c: ... this.
12965 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
12966 i386-windows-tdep.c.
12967 * configure.tgt: Likewise.
12968
053205cc
SM
129692020-03-16 Simon Marchi <simon.marchi@efficios.com>
12970
12971 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
12972 * osabi.c (gdb_osabi_names): Add "Windows".
12973 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
12974 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
12975 (i386_cygwin_core_osabi_sniffer): New function, extracted from
12976 i386_cygwin_osabi_sniffer.
12977 (_initialize_i386_cygwin_tdep): Register OS ABI
12978 GDB_OSABI_WINDOWS for i386.
12979 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
12980 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
12981 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
12982 for x86-64.
12983 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
12984 when the target matches '*-*-mingw*'.
12985
fe4b2ee6
SM
129862020-03-16 Simon Marchi <simon.marchi@efficios.com>
12987
12988 * defs.h (enum gdb_osabi): Move to...
12989 * osabi.h (enum gdb_osabi): ... here.
12990 * gdbarch.sh: Include osabi.h in gdbarch.h.
12991 * gdbarch.h: Re-generate.
12992
cb9b645d
SM
129932020-03-16 Simon Marchi <simon.marchi@efficios.com>
12994
12995 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
12996 function.
12997 (_initialize_amd64_windows_tdep): Register osabi sniffer.
12998
3293bbaf
TT
129992020-03-14 Tom Tromey <tom@tromey.com>
13000
13001 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
13002 for C++.
13003 (c_type_print_modifier): Likewise. Add "language" parameter.
13004 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
13005 (c_type_print_base_1): Update.
13006 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
13007 constants.
13008 * type-stack.c (type_stack::insert): Handle tp_atomic and
13009 tp_restrict.
13010 (type_stack::follow_type_instance_flags): Likewise.
13011 (type_stack::follow_types): Likewise. Merge type-following code.
13012 * c-exp.y (RESTRICT, ATOMIC): New tokens.
13013 (space_identifier, cv_with_space_id)
13014 (const_or_volatile_or_space_identifier_noopt)
13015 (const_or_volatile_or_space_identifier): Remove.
13016 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
13017 rules.
13018 (ptr_operator, typebase): Update.
13019 (enum token_flag) <FLAG_C>: New constant.
13020 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
13021 "_Atomic".
13022 (lex_one_token): Handle FLAG_C.
13023
154151a6
KR
130242020-03-14 Kamil Rytarowski <n54@gmx.com>
13025
13026 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
13027 it to the ptrace call.
13028 * m68k-bsd-nat.c (store_registers): Likewise.
13029
bc107784
KR
130302020-03-14 Kamil Rytarowski <n54@gmx.com>
13031
13032 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
13033 gdb_byte *.
13034 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
13035 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
13036 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
13037
01a80117
KR
130382020-03-14 Kamil Rytarowski <n54@gmx.com>
13039
13040 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
13041 nbsd_nat_target instead of inf_ptrace_target.
13042 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13043 nbsd_nat_target.
13044
f90280ca
KR
130452020-03-14 Kamil Rytarowski <n54@gmx.com>
13046
13047 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
13048 register_t.
13049
6def66f1
KR
130502020-03-14 Kamil Rytarowski <n54@gmx.com>
13051
13052 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
13053 it to the ptrace call.
13054 * alpha-bsd-nat.c (store_registers): Likewise.
13055
66eaca97
KR
130562020-03-14 Kamil Rytarowski <n54@gmx.com>
13057
13058 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
13059 includes.
13060 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
13061 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
13062 fill_fpregset): Likewise.
13063
4fed520b
KR
130642020-03-14 Kamil Rytarowski <n54@gmx.com>
13065
13066 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
13067 nbsd_nat_target instead of inf_ptrace_target.
13068 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13069 nbsd_nat_target.
13070
2190cf06
KR
130712020-03-14 Kamil Rytarowski <n54@gmx.com>
13072
13073 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
13074 register_t.
13075
75c56d3d
KR
130762020-03-14 Kamil Rytarowski <n54@gmx.com>
13077
13078 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
13079 it to the ptrace call.
13080 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
13081 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
13082 * arm-nbsd-nat.c (store_register): Likewise.
13083 * arm-nbsd-nat.c (store_regs): Likewise.
13084 * arm-nbsd-nat.c (store_fp_register): Likewise.
13085 * arm-nbsd-nat.c (store_fp_regs): Likewise.
13086
6018d381
KR
130872020-03-14 Kamil Rytarowski <n54@gmx.com>
13088
13089 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
13090 nbsd_nat_target instead of inf_ptrace_target.
13091 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13092 nbsd_nat_target.
13093
013f99f0
KR
130942020-03-14 Kamil Rytarowski <n54@gmx.com>
13095
13096 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
13097 it to the ptrace call.
13098 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
13099
12753073
KR
131002020-03-14 Kamil Rytarowski <n54@gmx.com>
13101
6227b330
KR
13102 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
13103 it to the ptrace call.
13104 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
13105
131062020-03-14 Kamil Rytarowski <n54@gmx.com>
13107
13108 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
13109 gdb_byte *.
12753073
KR
13110 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
13111
d5be5fa4
KR
131122020-03-14 Kamil Rytarowski <n54@gmx.com>
13113
13114 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
13115 instead of inf_ptrace_target.
13116 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13117 nbsd_nat_target.
13118
8110f842
KR
131192020-03-14 Kamil Rytarowski <n54@gmx.com>
13120
13121 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13122 register_t.
13123
52feded7
KR
131242020-03-14 Kamil Rytarowski <n54@gmx.com>
13125
13126 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13127 register_t.
13128
25567eee
KR
131292020-03-14 Kamil Rytarowski <n54@gmx.com>
13130
13131 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
13132 register_t.
13133
426a9c18
TT
131342020-03-13 Tom Tromey <tom@tromey.com>
13135
13136 * value.h (val_print): Don't declare.
13137 * valprint.h (val_print_array_elements)
13138 (val_print_scalar_formatted, generic_val_print): Don't declare.
13139 * valprint.c (generic_val_print_array): Take a struct value.
13140 (generic_val_print_ptr, generic_val_print_memberptr)
13141 (generic_val_print_bool, generic_val_print_int)
13142 (generic_val_print_char, generic_val_print_complex)
13143 (generic_val_print): Remove.
13144 (generic_value_print): Update.
13145 (do_val_print): Remove unused parameters. Don't call
13146 la_val_print.
13147 (val_print): Remove.
13148 (common_val_print): Update. Don't call value_check_printable.
13149 (val_print_scalar_formatted, val_print_array_elements): Remove.
13150 * rust-lang.c (rust_val_print): Remove.
13151 (rust_language_defn): Update.
13152 * p-valprint.c (pascal_val_print): Remove.
13153 (pascal_value_print_inner): Update.
13154 (pascal_object_print_val_fields, pascal_object_print_val):
13155 Remove.
13156 (pascal_object_print_static_field): Update.
13157 * p-lang.h (pascal_val_print): Don't declare.
13158 * p-lang.c (pascal_language_defn): Update.
13159 * opencl-lang.c (opencl_language_defn): Update.
13160 * objc-lang.c (objc_language_defn): Update.
13161 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
13162 * m2-lang.h (m2_val_print): Don't declare.
13163 * m2-lang.c (m2_language_defn): Update.
13164 * language.h (struct language_defn) <la_val_print>: Remove.
13165 * language.c (unk_lang_value_print_inner): Rename. Change
13166 argument types.
13167 (unknown_language_defn, auto_language_defn): Update.
13168 * go-valprint.c (go_val_print): Remove.
13169 * go-lang.h (go_val_print): Don't declare.
13170 * go-lang.c (go_language_defn): Update.
13171 * f-valprint.c (f_val_print): Remove.
13172 * f-lang.h (f_value_print): Don't declare.
13173 * f-lang.c (f_language_defn): Update.
13174 * d-valprint.c (d_val_print): Remove.
13175 * d-lang.h (d_value_print): Don't declare.
13176 * d-lang.c (d_language_defn): Update.
13177 * cp-valprint.c (cp_print_value_fields)
13178 (cp_print_value_fields_rtti, cp_print_value): Remove.
13179 (cp_print_static_field): Update.
13180 * c-valprint.c (c_val_print_array, c_val_print_ptr)
13181 (c_val_print_struct, c_val_print_union, c_val_print_int)
13182 (c_val_print_memberptr, c_val_print): Remove.
13183 * c-lang.h (c_val_print_array, cp_print_value_fields)
13184 (cp_print_value_fields_rtti): Don't declare.
13185 * c-lang.c (c_language_defn, cplus_language_defn)
13186 (asm_language_defn, minimal_language_defn): Update.
13187 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
13188 (ada_val_print_enum): Take a struct value.
13189 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
13190 (ada_val_print): Remove.
13191 (ada_value_print_1): Update.
13192 (printable_val_type): Remove.
13193 * ada-lang.h (ada_val_print): Don't declare.
13194 * ada-lang.c (ada_language_defn): Update.
13195
42331a1e
TT
131962020-03-13 Tom Tromey <tom@tromey.com>
13197
13198 * valprint.c (do_val_print): Update.
13199 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
13200 a struct value.
13201 (value_to_value_object_no_release): Declare.
13202 * python/py-value.c (value_to_value_object_no_release): New
13203 function.
13204 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
13205 struct value.
13206 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
13207 function.
13208 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
13209 a struct value.
13210 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
13211 Declare.
13212 (gdbscm_apply_val_pretty_printer): Take a struct value.
13213 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
13214 value.
13215 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
13216 value.
13217 * extension-priv.h (struct extension_language_ops)
13218 <apply_val_pretty_printer>: Take a struct value.
13219 * cp-valprint.c (cp_print_value): Create a struct value.
13220 (cp_print_value): Update.
13221
3a916a97
TT
132222020-03-13 Tom Tromey <tom@tromey.com>
13223
13224 * ada-valprint.c (print_field_values): Call common_val_print.
13225
b59eac37
TT
132262020-03-13 Tom Tromey <tom@tromey.com>
13227
13228 * ada-valprint.c (val_print_packed_array_elements): Remove
13229 bitoffset and val parameters. Call common_val_print.
13230 (ada_val_print_string): Remove offset, address, and original_value
13231 parameters.
13232 (ada_val_print_array): Update.
13233 (ada_value_print_array): New function.
13234 (ada_value_print_1): Call it.
13235
03371129
TT
132362020-03-13 Tom Tromey <tom@tromey.com>
13237
13238 * ada-valprint.c (ada_value_print): Use common_val_print.
13239
2e088f8b
TT
132402020-03-13 Tom Tromey <tom@tromey.com>
13241
13242 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
13243
39ef85a8
TT
132442020-03-13 Tom Tromey <tom@tromey.com>
13245
13246 * ada-valprint.c (ada_value_print_num): New function.
13247 (ada_value_print_1): Use it.
13248
b9fa6e07
TT
132492020-03-13 Tom Tromey <tom@tromey.com>
13250
13251 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
13252
416595d6
TT
132532020-03-13 Tom Tromey <tom@tromey.com>
13254
13255 * ada-valprint.c (ada_value_print_ptr): New function.
13256 (ada_value_print_1): Use it.
13257
5b5e15ec
TT
132582020-03-13 Tom Tromey <tom@tromey.com>
13259
13260 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
13261 call common_val_print.
13262 (ada_val_print_1): Update.
13263 (ada_value_print_1): New function.
13264 (ada_value_print_inner): Rewrite.
13265
fbf54e75
TT
132662020-03-13 Tom Tromey <tom@tromey.com>
13267
13268 * cp-valprint.c (cp_print_value_fields): Update.
13269 (cp_print_value): New function.
13270
64b653ca
TT
132712020-03-13 Tom Tromey <tom@tromey.com>
13272
13273 * m2-valprint.c (m2_value_print_inner): Use
13274 cp_print_value_fields.
13275 * cp-valprint.c (cp_print_value_fields): New function.
13276 * c-valprint.c (c_value_print_struct): New function.
13277 (c_value_print_inner): Use c_value_print_struct.
13278 * c-lang.h (cp_print_value_fields): Declare.
13279
6999f067
TT
132802020-03-13 Tom Tromey <tom@tromey.com>
13281
13282 * c-valprint.c (c_value_print_array): New function.
13283 (c_value_print_inner): Use it.
13284
ce80b8bd
TT
132852020-03-13 Tom Tromey <tom@tromey.com>
13286
13287 * c-valprint.c (c_value_print_memberptr): New function.
13288 (c_value_print_inner): Use it.
13289
2faac269
TT
132902020-03-13 Tom Tromey <tom@tromey.com>
13291
13292 * c-valprint.c (c_value_print_int): New function.
13293 (c_value_print_inner): Use it.
13294
da3e2c29
TT
132952020-03-13 Tom Tromey <tom@tromey.com>
13296
13297 * c-valprint.c (c_value_print_ptr): New function.
13298 (c_value_print_inner): Use it.
13299
50836231
TT
133002020-03-13 Tom Tromey <tom@tromey.com>
13301
13302 * c-valprint.c (c_value_print_inner): Rewrite.
13303
4f412b6e
TT
133042020-03-13 Tom Tromey <tom@tromey.com>
13305
13306 * valprint.c (generic_value_print_complex): New function.
13307 (generic_value_print): Use it.
13308
f5354008
TT
133092020-03-13 Tom Tromey <tom@tromey.com>
13310
13311 * valprint.c (generic_val_print_float): Don't call
13312 val_print_scalar_formatted.
13313 (generic_val_print, generic_value_print): Update.
13314
3eec3b05
TT
133152020-03-13 Tom Tromey <tom@tromey.com>
13316
13317 * valprint.c (generic_value_print_char): New function
13318 (generic_value_print): Use it.
13319
fdddfccb
TT
133202020-03-13 Tom Tromey <tom@tromey.com>
13321
13322 * valprint.c (generic_value_print_int): New function.
13323 (generic_value_print): Use it.
13324
6dde7521
TT
133252020-03-13 Tom Tromey <tom@tromey.com>
13326
13327 * valprint.c (generic_value_print_bool): New function.
13328 (generic_value_print): Use it.
13329
4112d2e6
TT
133302020-03-13 Tom Tromey <tom@tromey.com>
13331
13332 * valprint.c (generic_val_print_func): Simplify.
13333 (generic_val_print, generic_value_print): Update.
13334
65786af6
TT
133352020-03-13 Tom Tromey <tom@tromey.com>
13336
13337 * valprint.c (generic_val_print_flags): Remove.
13338 (generic_val_print, generic_value_print): Update.
13339 (val_print_type_code_flags): Add original_value parameter.
13340
40f3ce18
TT
133412020-03-13 Tom Tromey <tom@tromey.com>
13342
13343 * valprint.c (generic_val_print): Update.
13344 (generic_value_print): Update.
13345 * valprint.c (generic_val_print_enum): Don't call
13346 val_print_scalar_formatted.
13347
2a5b130b
TT
133482020-03-13 Tom Tromey <tom@tromey.com>
13349
13350 * valprint.c (generic_value_print): Call generic_value_print_ptr.
13351 * valprint.c (generic_value_print_ptr): New function.
13352
abc66ce9
TT
133532020-03-13 Tom Tromey <tom@tromey.com>
13354
13355 * valprint.c (generic_value_print): Rewrite.
13356
07a32858
TT
133572020-03-13 Tom Tromey <tom@tromey.com>
13358
13359 * p-valprint.c (pascal_object_print_value_fields)
13360 (pascal_object_print_value): New functions.
13361
64d64d3a
TT
133622020-03-13 Tom Tromey <tom@tromey.com>
13363
13364 * p-valprint.c (pascal_value_print_inner): Rewrite.
13365
6a95a1f5
TT
133662020-03-13 Tom Tromey <tom@tromey.com>
13367
13368 * f-valprint.c (f_value_print_innner): Rewrite.
13369
59fcdac6
TT
133702020-03-13 Tom Tromey <tom@tromey.com>
13371
13372 * m2-valprint.c (m2_print_unbounded_array): New overload.
13373 (m2_print_unbounded_array): Update.
13374 (m2_print_array_contents): Take a struct value.
13375 (m2_value_print_inner): Rewrite.
13376
d133c3e1
TT
133772020-03-13 Tom Tromey <tom@tromey.com>
13378
13379 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
13380 (d_value_print_inner): New function.
13381 * d-lang.h (d_value_print_inner): Declare.
13382 * d-lang.c (d_language_defn): Use d_value_print_inner.
13383
23b0f06b
TT
133842020-03-13 Tom Tromey <tom@tromey.com>
13385
13386 * go-valprint.c (go_value_print_inner): New function.
13387 * go-lang.h (go_value_print_inner): Declare.
13388 * go-lang.c (go_language_defn): Use go_value_print_inner.
13389
5f56f7cb
TT
133902020-03-13 Tom Tromey <tom@tromey.com>
13391
13392 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
13393 API.
13394 (rust_val_print): Rewrite.
13395 (rust_value_print_inner): New function, from rust_val_print.
13396 (rust_language_defn): Use rust_value_print_inner.
13397
26792ee0
TT
133982020-03-13 Tom Tromey <tom@tromey.com>
13399
13400 * ada-valprint.c (ada_value_print_inner): New function.
13401 * ada-lang.h (ada_value_print_inner): Declare.
13402 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
13403
24051bbe
TT
134042020-03-13 Tom Tromey <tom@tromey.com>
13405
13406 * f-valprint.c (f_value_print_innner): New function.
13407 * f-lang.h (f_value_print_innner): Declare.
13408 * f-lang.c (f_language_defn): Use f_value_print_innner.
13409
c0941be6
TT
134102020-03-13 Tom Tromey <tom@tromey.com>
13411
13412 * p-valprint.c (pascal_value_print_inner): New function.
13413 * p-lang.h (pascal_value_print_inner): Declare.
13414 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
13415
62c4663d
TT
134162020-03-13 Tom Tromey <tom@tromey.com>
13417
13418 * m2-valprint.c (m2_value_print_inner): New function.
13419 * m2-lang.h (m2_value_print_inner): Declare.
13420 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
13421
62182190
TT
134222020-03-13 Tom Tromey <tom@tromey.com>
13423
13424 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
13425 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
13426 * c-valprint.c (c_value_print_inner): New function.
13427 * c-lang.h (c_value_print_inner): Declare.
13428 * c-lang.c (c_language_defn, cplus_language_defn)
13429 (asm_language_defn, minimal_language_defn): Use
13430 c_value_print_inner.
13431
1e592a8a
TT
134322020-03-13 Tom Tromey <tom@tromey.com>
13433
13434 * p-valprint.c (pascal_object_print_value_fields): Now static.
13435 * p-lang.h (pascal_object_print_value_fields): Don't declare.
13436
7fe471e9
TT
134372020-03-13 Tom Tromey <tom@tromey.com>
13438
13439 * c-valprint.c (c_val_print_array): Simplify.
13440
d121c6ce
TT
134412020-03-13 Tom Tromey <tom@tromey.com>
13442
13443 * valprint.c (value_print_array_elements): New function.
13444 * valprint.h (value_print_array_elements): Declare.
13445
4dba70ee
TT
134462020-03-13 Tom Tromey <tom@tromey.com>
13447
13448 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
13449 * mips-tdep.c (mips_print_register): Use
13450 value_print_scalar_formatted.
13451
4f9ae810
TT
134522020-03-13 Tom Tromey <tom@tromey.com>
13453
13454 * valprint.h (value_print_scalar_formatted): Declare.
13455 * valprint.c (value_print_scalar_formatted): New function.
13456
156bfec9
TT
134572020-03-13 Tom Tromey <tom@tromey.com>
13458
13459 * valprint.h (generic_value_print): Declare.
13460 * valprint.c (generic_value_print): New function.
13461
2b4e573d
TT
134622020-03-13 Tom Tromey <tom@tromey.com>
13463
13464 * valprint.c (do_val_print): Call la_value_print_inner, if
13465 available.
13466 * rust-lang.c (rust_language_defn): Update.
13467 * p-lang.c (pascal_language_defn): Update.
13468 * opencl-lang.c (opencl_language_defn): Update.
13469 * objc-lang.c (objc_language_defn): Update.
13470 * m2-lang.c (m2_language_defn): Update.
13471 * language.h (struct language_defn) <la_value_print_inner>: New
13472 member.
13473 * language.c (unknown_language_defn, auto_language_defn): Update.
13474 * go-lang.c (go_language_defn): Update.
13475 * f-lang.c (f_language_defn): Update.
13476 * d-lang.c (d_language_defn): Update.
13477 * c-lang.c (c_language_defn, cplus_language_defn)
13478 (asm_language_defn, minimal_language_defn): Update.
13479 * ada-lang.c (ada_language_defn): Update.
13480
a1f6a07c
TT
134812020-03-13 Tom Tromey <tom@tromey.com>
13482
13483 * c-valprint.c (c_value_print): Use common_val_print.
13484
410cf315
TT
134852020-03-13 Tom Tromey <tom@tromey.com>
13486
13487 * cp-valprint.c (cp_print_static_field): Use common_val_print.
13488
72a45c93
TT
134892020-03-13 Tom Tromey <tom@tromey.com>
13490
13491 * f-valprint.c (f77_print_array_1, f_val_print): Use
13492 common_val_print.
13493
040f66bd
TT
134942020-03-13 Tom Tromey <tom@tromey.com>
13495
13496 * riscv-tdep.c (riscv_print_one_register_info): Use
13497 common_val_print.
13498
a6e05a6c
TT
134992020-03-13 Tom Tromey <tom@tromey.com>
13500
13501 * mi/mi-main.c (output_register): Use common_val_print.
13502
3444c526
TT
135032020-03-13 Tom Tromey <tom@tromey.com>
13504
13505 * infcmd.c (default_print_one_register_info): Use
13506 common_val_print.
13507
c2a44efe
TT
135082020-03-13 Tom Tromey <tom@tromey.com>
13509
13510 * valprint.h (common_val_print_checked): Declare.
13511 * valprint.c (common_val_print_checked): New function.
13512 * stack.c (print_frame_arg): Use common_val_print_checked.
13513
b0c26e99
TT
135142020-03-13 Tom Tromey <tom@tromey.com>
13515
13516 * valprint.c (do_val_print): New function, from val_print.
13517 (val_print): Use do_val_print.
13518 (common_val_print): Use do_val_print.
13519
ce3acbe9
TT
135202020-03-13 Tom Tromey <tom@tromey.com>
13521
13522 * valprint.c (value_print): Use scoped_value_mark.
13523
96c7f873
TV
135242020-03-13 Tom de Vries <tdevries@suse.de>
13525
13526 PR symtab/25646
13527 * psymtab.c (partial_symtab::partial_symtab): Don't set
13528 globals_offset and statics_offset. Push element onto
13529 current_global_psymbols and current_static_psymbols stacks.
13530 (concat): New function.
13531 (end_psymtab_common): Set globals_offset and statics_offset. Pop
13532 element from current_global_psymbols and current_static_psymbols
13533 stacks. Concat popped elements to global_psymbols and
13534 static_symbols.
13535 (add_psymbol_to_list): Use current_global_psymbols and
13536 current_static_psymbols stacks.
13537 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
13538 current_static_psymbols fields.
13539
6ba0a321
CB
135402020-03-12 Christian Biesinger <cbiesinger@google.com>
13541
13542 * corelow.c (sniff_core_bfd): Remove.
13543 (class core_target) <m_core_vec>: Remove.
13544 (core_target::core_target): Update.
13545 (core_file_fns): Remove.
13546 (deprecated_add_core_fns): Remove.
13547 (default_core_sniffer): Remove.
13548 (sniff_core_bfd): Remove.
13549 (default_check_format): Remove.
13550 (gdb_check_format): Remove.
13551 (core_target_open): Update.
13552 (core_target::get_core_register_section): Update.
13553 (get_core_registers_cb): Update.
13554 (core_target::fetch_registers): Update.
13555 * gdbcore.h (struct core_fns): Remove.
13556 (deprecated_add_core_fns): Remove.
13557 (default_core_sniffer): Remove.
13558 (default_check_format): Remove.
13559
227031b2
TT
135602020-03-12 Tom Tromey <tom@tromey.com>
13561
13562 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
13563 CORE_ADDR.
13564 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
13565
53807e9f
TT
135662020-03-12 Tom Tromey <tom@tromey.com>
13567
13568 * remote.c (remote_target::download_tracepoint)
13569 (remote_target::enable_tracepoint)
13570 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
13571 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
13572 sprintf_vma.
13573
64f25102
TT
135742020-03-12 Tom Tromey <tom@tromey.com>
13575
13576 * symfile-mem.c: Update CORE_ADDR size assert.
13577
272cd5a3
SM
135782020-03-12 Simon Marchi <simon.marchi@efficios.com>
13579
13580 * selftest.m4: Move to gdbsupport/.
13581 * acinclude.m4: Update path to selftest.m4.
13582
74cd3f9d
SM
135832020-03-12 Simon Marchi <simon.marchi@efficios.com>
13584
13585 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
13586 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
13587 gdbarch-selfselftests.c and selftest-arch.c.
13588 (SUBDIR_UNITTESTS_OBS): Rename to...
13589 (SELFTESTS_OBS): ... this.
13590 (COMMON_SFILES): Remove disasm-selftests.c and
13591 gdbarch-selftests.c.
13592 * configure.ac: Don't add selftest-arch.{c,o} to
13593 CONFIG_{SRCS,OBS}.
13594 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
13595 preprocessor conditions.
13596
db6878ac
SM
135972020-03-12 Simon Marchi <simon.marchi@efficios.com>
13598
13599 * configure.ac: Don't source bfd/development.sh.
13600 * selftest.m4: Modify comment.
13601 * configure: Re-generate.
13602
4d696a5c
SM
136032020-03-12 Simon Marchi <simon.marchi@efficios.com>
13604
13605 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
13606 not "true" or "false".
13607 * configure: Re-generate.
13608
8dd8e1c7
CB
136092020-03-12 Christian Biesinger <cbiesinger@google.com>
13610
13611 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
13612 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
13613 renamed to arm_nbsd_supply_gregset.
13614 (fetch_register): Update to call arm_nbsd_supply_gregset.
13615 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
13616 (arm_netbsd_nat_target::fetch_registers): Update.
13617 (fetch_elfcore_registers): Removed.
13618 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
13619 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
13620 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
13621 not require NetBSD system headers.
13622 (arm_nbsd_regset): New struct.
13623 (arm_nbsd_iterate_over_regset_sections): New function.
13624 (arm_netbsd_init_abi_common): Updated to call
13625 set_gdbarch_iterate_over_regset_sections.
13626 * arm-nbsd-tdep.h: New file.
13627
dd69bf7a
KB
136282020-03-11 Kevin Buettner <kevinb@redhat.com>
13629
13630 * symtab.c (find_pc_sect_line): Add check which prevents infinite
13631 recursion.
13632
a0761e34
SM
136332020-03-11 Simon Marchi <simon.marchi@efficios.com>
13634
13635 * configure: Re-generate.
13636
e7a82140
TT
136372020-03-11 Tom Tromey <tromey@adacore.com>
13638
13639 * ada-typeprint.c (print_choices): Fix comment.
13640
dcc050c8
AB
136412020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
13642
13643 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
13644 previous item in the list, when the list has no items.
13645
1c33af77
TV
136462020-03-11 Tom de Vries <tdevries@suse.de>
13647
13648 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
13649 PROP_LOCLIST handling code.
13650
8c95582d
AB
136512020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
13652
13653 * buildsym-legacy.c (record_line): Pass extra parameter to
13654 record_line.
13655 * buildsym.c (buildsym_compunit::record_line): Take an extra
13656 parameter, reduce duplication in the line table, and record the
13657 is_stmt flag in the line table.
13658 * buildsym.h (buildsym_compunit::record_line): Add extra
13659 parameter.
13660 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
13661 non-statement lines.
13662 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
13663 this to the symtab builder.
13664 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
13665 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
13666 through to dwarf_record_line_1.
13667 * infrun.c (process_event_stop_test): When stepping, don't stop at
13668 a non-statement instruction, and only refresh the step info when
13669 we land in the middle of a line's range. Also add an extra
13670 comment.
13671 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
13672 field.
13673 * record-btrace.c (btrace_find_line_range): Only record lines
13674 marked as is-statement.
13675 * stack.c (frame_show_address): Show the frame address if we are
13676 in a non-statement sal.
13677 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
13678 (maintenance_print_one_line_table): Print a header for the is_stmt
13679 column, and include is_stmt information in the output.
13680 * symtab.c (find_pc_sect_line): Find lines marked as statements in
13681 preference to non-statements.
13682 (find_pcs_for_symtab_line): Prefer is-statement entries.
13683 (find_line_common): Likewise.
13684 * symtab.h (struct linetable_entry): Add is_stmt field.
13685 (struct symtab_and_line): Likewise.
13686 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
13687 arranging the line table.
13688
e4003a34
TV
136892020-03-07 Tom de Vries <tdevries@suse.de>
13690
13691 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
13692 DIE.
13693
e8932576
TT
136942020-03-07 Tom Tromey <tom@tromey.com>
13695
13696 * valops.c (value_literal_complex): Remove obsolete comment.
13697 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
13698 comment.
13699
29734269
SM
137002020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
13701
13702 * infrun.h: Forward-declare thread_info.
13703 (set_step_info): Add thread_info parameter, add doc.
13704 * infrun.c (set_step_info): Add thread_info parameter, move doc
13705 to header.
13706 * infrun.c (process_event_stop_test): Pass thread to
13707 set_step_info call.
13708 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
13709 set_step_info.
13710 (prepare_one_step): Add thread_info parameter, pass it to
13711 set_step_frame and prepare_one_step (recursive) call.
13712 (step_1): Pass thread to prepare_one_step call.
13713 (step_command_fsm::should_stop): Pass thread to
13714 prepare_one_step.
13715 (until_next_fsm): Pass thread to set_step_frame call.
13716 (finish_command): Pass thread to set_step_info call.
13717
b7d64b29
HD
137182020-03-06 Hannes Domani <ssbssa@yahoo.de>
13719
13720 * windows-tdep.c (windows_solib_create_inferior_hook):
13721 Check if inferior is running.
13722
09f2921c
TV
137232020-03-06 Tom de Vries <tdevries@suse.de>
13724
13725 * NEWS: Fix "the the".
13726 * ctfread.c: Same.
13727
fd760e79
TV
137282020-03-06 Tom de Vries <tdevries@suse.de>
13729
13730 * psymtab.c (psymtab_to_symtab): Don't print "done.".
13731
20ea4a60
AB
137322020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13733
13734 * .dir-locals.el: Add a comment referencing the other copies of
13735 this file.
13736
0afbabf0
JB
137372020-03-05 John Baldwin <jhb@FreeBSD.org>
13738
13739 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
13740 psargs.
13741
842806cb
TBA
137422020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13743
13744 * .gitattributes: New file.
13745
be1e3d3e
TT
137462020-03-04 Tom Tromey <tom@tromey.com>
13747
13748 * symmisc.c (print_symbol_bcache_statistics)
13749 (print_objfile_statistics): Update.
13750 * symfile.c (allocate_symtab): Use intern.
13751 * psymtab.c (partial_symtab::partial_symtab): Use intern.
13752 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
13753 macro_cache>: Remove.
13754 <string_cache>: New member.
13755 (struct objfile) <intern>: New methods.
13756 * elfread.c (elf_symtab_read): Use intern.
13757 * dwarf2/read.c (fixup_go_packaging): Intern package name.
13758 (dwarf2_compute_name, dwarf2_physname)
13759 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
13760 names.
13761 (guess_partial_die_structure_name): Update.
13762 (partial_die_info::fixup): Intern name.
13763 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
13764 name.
13765 (dwarf2_name): Intern name. Update.
13766 * buildsym.c (buildsym_compunit::get_macro_table): Use
13767 string_cache.
13768
4e7625fd
TT
137692020-03-04 Tom Tromey <tom@tromey.com>
13770
13771 * jit.c (bfd_open_from_target_memory): Make "target" const.
13772 * corefile.c (gnutarget): Now const.
13773 * gdbcore.h (gnutarget): Now const.
13774
46f9f931
HD
137752020-03-04 Hannes Domani <ssbssa@yahoo.de>
13776
13777 * NEWS: Mention support for WOW64 processes.
13778 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
13779 (amd64_windows_segment_register_p): Remove static.
13780 (_initialize_amd64_windows_nat): Update.
13781 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
13782 * i386-windows-nat.c (context_offset): Update.
13783 (i386_mappings): Rename and remove static.
13784 (i386_windows_segment_register_p): Remove static.
13785 (_initialize_i386_windows_nat): Update.
13786 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
13787 (STATUS_WX86_SINGLE_STEP): New macro.
13788 (EnumProcessModulesEx): New macro.
13789 (Wow64SuspendThread): New macro.
13790 (Wow64GetThreadContext): New macro.
13791 (Wow64SetThreadContext): New macro.
13792 (Wow64GetThreadSelectorEntry): New macro.
13793 (windows_set_context_register_offsets): Add static.
13794 (windows_set_segment_register_p): Likewise.
13795 (windows_add_thread): Adapt for WOW64 processes.
13796 (windows_fetch_one_register): Likewise.
13797 (windows_nat_target::fetch_registers): Likewise.
13798 (windows_store_one_register): Likewise.
13799 (display_selector): Likewise.
13800 (display_selectors): Likewise.
13801 (handle_exception): Likewise.
13802 (windows_continue): Likewise.
13803 (windows_nat_target::resume): Likewise.
13804 (windows_add_all_dlls): Likewise.
13805 (do_initial_windows_stuff): Likewise.
13806 (windows_nat_target::attach): Likewise.
13807 (windows_get_exec_module_filename): Likewise.
13808 (windows_nat_target::create_inferior): Likewise.
13809 (windows_xfer_siginfo): Likewise.
13810 (_initialize_loadable): Initialize Wow64SuspendThread,
13811 Wow64GetThreadContext, Wow64SetThreadContext,
13812 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
13813 * windows-nat.h (windows_set_context_register_offsets):
13814 Remove declaration.
13815 (windows_set_segment_register_p): Likewise.
13816 (i386_windows_segment_register_p): Add declaration.
13817 (amd64_windows_segment_register_p): Likewise.
13818
440cf44e
LM
138192020-03-04 Luis Machado <luis.machado@linaro.org>
13820
13821 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
13822 in "info registers" for AArch64/ARM.
13823
13824 The change caused "info registers" to not print GPR's.
13825
13826 gdb/ChangeLog:
13827
13828 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
13829
13830 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13831 when reg->group is empty and reggroup is not.
13832
1009d92f
TT
138332020-03-03 Tom Tromey <tromey@adacore.com>
13834
13835 * dwarf2/frame.c (struct dwarf2_frame_cache)
13836 <checked_tailcall_bottom, entry_cfa_sp_offset,
13837 entry_cfa_sp_offset_p>: Remove members.
13838 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
13839 (dwarf2_frame_prev_register): Don't call
13840 dwarf2_tailcall_sniffer_first.
13841 (dwarf2_append_unwinders): Don't append tailcall unwinder.
13842 * frame-unwind.c (add_unwinder): New fuction.
13843 (frame_unwind_init): Use it. Add tailcall unwinder.
13844
5e5d66b6
AB
138452020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
13846 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13847
13848 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
13849 value should be printed as true.
13850
584cf46d
HD
138512020-03-03 Hannes Domani <ssbssa@yahoo.de>
13852
13853 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
13854 (windows_init_abi): Set and use windows_so_ops.
13855
7b973adc
SDJ
138562020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
13857
13858 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
13859 when verifying if dealing with a convenience variable.
13860
bb7b70ab
LM
138612020-03-03 Luis Machado <luis.machado@linaro.org>
13862
13863 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
13864
9822cb57
SM
138652020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13866
13867 * infrun.c (gdbarch_supports_displaced_stepping): New.
13868 (use_displaced_stepping): Break up conditions in smaller pieces.
13869 Use gdbarch_supports_displaced_stepping.
13870 (displaced_step_prepare_throw): Use
13871 gdbarch_supports_displaced_stepping.
13872
63e163f2
AB
138732020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13874
13875 * NEWS: Mention new behaviour of the history filename.
13876 * top.c (write_history_p): Add comment.
13877 (show_write_history_p): Add header comment, give a different
13878 message when history writing is on, but the history filename is
13879 empty.
13880 (history_filename): Add comment.
13881 (history_filename_empty): New function.
13882 (show_history_filename): Add header comment, give a different
13883 message when the filename is empty.
13884 (init_history): Compare history_filename against nullptr, and only
13885 read history if the filename is not empty.
13886 (set_history_filename): Add header comment, and only make
13887 non-empty filenames absolute.
13888 (init_main): Make the filename argument to 'set history filename'
13889 optional.
13890
81b86b97
CB
138912020-03-02 Christian Biesinger <cbiesinger@google.com>
13892
13893 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
13894 (arm_supply_vfpregset): ...this, and update to use VFP registers.
13895 (fetch_fp_register): Update.
13896 (fetch_fp_regs): Update.
13897 (store_fp_register): Update.
13898 (store_fp_regs): Update.
13899 (arm_netbsd_nat_target::read_description): New function.
13900 (fetch_elfcore_registers): Update.
13901
24ed6739
AB
139022020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13903
13904 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
13905 general_thread if the stop reply is missing a thread-id.
13906 (remote_target::process_stop_reply): Use the first non-exited
13907 thread if the target didn't pass a thread-id.
13908 * infrun.c (do_target_wait): Move call to
13909 switch_to_inferior_no_thread to ....
13910 (do_target_wait_1): ... here.
13911
a84bb2a0
JT
139122020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
13913
13914 * debuginfod-support.c: Include defs.h first.
13915
658dadf0
TV
139162020-02-28 Tom de Vries <tdevries@suse.de>
13917
13918 * symfile.c (set_initial_language): Use default language for lookup.
13919
4ebe4877
SM
139202020-02-28 Simon Marchi <simon.marchi@efficios.com>
13921
13922 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
13923 reader variable, pass `this` to read_cutu_die_from_dwo.
13924
e5da1139
AM
139252020-02-27 Aaron Merey <amerey@redhat.com>
13926
13927 * source.c (open_source_file): Check for nullptr when computing
13928 srcpath.
13929
317f7127
TT
139302020-02-27 Tom Tromey <tromey@adacore.com>
13931
13932 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
13933 member.
13934 (dwarf2_add_field): Don't update nfields.
13935 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
13936
3104d9ee
AB
139372020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13938
13939 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
13940 abs.
13941
b83470bf
TT
139422020-02-26 Tom Tromey <tom@tromey.com>
13943
13944 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
13945 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
13946 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
13947 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
13948 per_cu_data.
13949
edfe0a0c
TT
139502020-02-26 Tom Tromey <tom@tromey.com>
13951
13952 * dwarf2/index-write.c (psym_index_map): Change type.
13953 (add_address_entry_worker, write_one_signatured_type)
13954 (recursively_count_psymbols, recursively_write_psymbols)
13955 (class debug_names, psyms_seen_size, write_gdbindex)
13956 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
13957
0d79cdc4
AM
139582020-02-26 Aaron Merey <amerey@redhat.com>
13959
13960 * Makefile.in: Handle optional debuginfod support.
13961 * NEWS: Update.
13962 * README: Add --with-debuginfod summary.
13963 * config.in: Regenerate.
13964 * configure: Regenerate.
13965 * configure.ac: Handle optional debuginfod support.
13966 * debuginfod-support.c: debuginfod helper functions.
13967 * debuginfod-support.h: Ditto.
13968 * doc/gdb.texinfo: Add --with-debuginfod to configure options
13969 summary.
13970 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
13971 when a dwz file cannot be found.
13972 * elfread.c (elf_symfile_read): Query debuginfod servers when a
13973 debuginfo file cannot be found.
13974 * source.c (open_source_file): Query debuginfod servers when a
13975 source file cannot be found.
13976 * top.c (print_gdb_configuration): Include
13977 --{with,without}-debuginfod in the output.
13978
b65ce565
JG
139792020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
13980
13981 * thread.c (thr_try_catch_cmd): Print thread name.
13982
d4c9a4f8
SM
139832020-02-26 Simon Marchi <simon.marchi@efficios.com>
13984
13985 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
13986 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13987 dwarf2_fetch_die_type_sect_off): Move to...
13988 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
13989 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13990 dwarf2_fetch_die_type_sect_off): ... here.
13991 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
13992 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13993 dwarf2_fetch_die_type_sect_off): Move doc to header file.
13994
0dce4280
TV
139952020-02-26 Tom de Vries <tdevries@suse.de>
13996
13997 PR gdb/25603
13998 * symfile.c (set_initial_language): Exit-early if
13999 language_mode == language_mode_manual.
14000
450a1bfc
SM
140012020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14002
14003 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
14004 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
14005 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
14006
9e80cfa1
AB
140072020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
14008
14009 * gdbtypes.c (create_array_type_with_stride): Handle negative
14010 array strides.
14011 * valarith.c (value_subscripted_rvalue): Likewise.
14012
09624f1f
LM
140132020-02-25 Luis Machado <luis.machado@linaro.org>
14014
14015 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
14016
8cb5117c
SM
140172020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14018
14019 * loc.h (dwarf2_get_die_type): Move to...
14020 * read.h (dwarf2_get_die_type): ... here.
14021 * read.c (dwarf2_get_die_type): Move doc to header.
14022
c325c44e
JB
140232020-02-25 Joel Brobecker <brobecker@adacore.com>
14024
14025 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
14026 'gnulib/Makefile.in' to the list.
14027
4ac93832
TT
140282020-02-24 Tom Tromey <tom@tromey.com>
14029
14030 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
14031 Remove.
14032 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
14033 XOBNEWVEC.
14034
197400e8
TT
140352020-02-24 Tom Tromey <tom@tromey.com>
14036
14037 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
14038 New method.
14039 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
14040 (dw2_do_instantiate_symtab, dw2_get_file_names)
14041 (build_type_psymtab_dependencies, load_full_type_unit): Update.
14042
76935768
TT
140432020-02-24 Tom Tromey <tom@tromey.com>
14044
14045 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
14046 make_scoped_restore.
14047 (dwarf2_psymtab::read_symtab): Don't clear
14048 reading_partial_symbols.
14049
a88ef40d
TV
140502020-02-24 Tom de Vries <tdevries@suse.de>
14051
14052 PR gdb/25592
14053 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
14054
c9af6521
TV
140552020-02-24 Tom de Vries <tdevries@suse.de>
14056
14057 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
14058 commands layout next/prev/regs.
14059
5707a07a
TT
140602020-02-22 Tom Tromey <tom@tromey.com>
14061
14062 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
14063 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
14064
3b0fb49e
TT
140652020-02-22 Tom Tromey <tom@tromey.com>
14066
14067 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
14068
283be8bf
TT
140692020-02-22 Tom Tromey <tom@tromey.com>
14070
14071 * tui/tui-win.c (_initialize_tui_win): Add usage text.
14072 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
14073 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
14074 * tui/tui.c (_initialize_tui): Add usage text.
14075
ca793b96
TT
140762020-02-22 Tom Tromey <tom@tromey.com>
14077
14078 * tui/tui-win.c (tui_set_focus_command)
14079 (tui_set_win_height_command): Use error_no_arg.
14080 (_initialize_tui_win): Update help text.
14081 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
14082
432b5c40
TT
140832020-02-22 Tom Tromey <tom@tromey.com>
14084
14085 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
14086 * tui/tui-disasm.h (struct tui_disasm_window)
14087 <display_start_addr>: Declare.
14088 * tui/tui-source.h (struct tui_source_window)
14089 <display_start_addr>: Declare.
14090 * tui/tui-winsource.h (struct tui_source_window_base)
14091 <show_source_line, display_start_addr>: New methods.
14092 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
14093 Rename and move to protected section.
14094 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
14095 (tui_source_window_base::do_erase_source_content): Update.
14096 (tui_source_window_base::show_source_line): Now a method.
14097 (tui_source_window_base::show_source_content)
14098 (tui_source_window_base::tui_source_window_base)
14099 (tui_source_window_base::rerender)
14100 (tui_source_window_base::refill)
14101 (tui_source_window_base::do_scroll_horizontal)
14102 (tui_source_window_base::set_is_exec_point_at)
14103 (tui_source_window_base::update_breakpoint_info)
14104 (tui_source_window_base::update_exec_info): Update.
14105 * tui/tui-source.c (tui_source_window::set_contents)
14106 (tui_source_window::showing_source_p)
14107 (tui_source_window::do_scroll_vertical)
14108 (tui_source_window::location_matches_p)
14109 (tui_source_window::line_is_displayed): Update.
14110 (tui_source_window::display_start_addr): New method.
14111 * tui/tui-disasm.c (tui_disasm_window::set_contents)
14112 (tui_disasm_window::do_scroll_vertical)
14113 (tui_disasm_window::location_matches_p): Update.
14114 (tui_disasm_window::display_start_addr): New method.
14115
01b1af32
TT
141162020-02-22 Tom Tromey <tom@tromey.com>
14117
14118 * NEWS: Add entry for gdb.register_window_type.
14119 * tui/tui-layout.h (window_factory): New typedef.
14120 (tui_register_window): Declare.
14121 * tui/tui-layout.c (saved_tui_windows): New global.
14122 (tui_apply_current_layout): Use it.
14123 (tui_register_window): New function.
14124 * python/python.c (do_start_initialization): Call
14125 gdbpy_initialize_tui.
14126 (python_GdbMethods): Add "register_window_type" function.
14127 * python/python-internal.h (gdbpy_register_tui_window)
14128 (gdbpy_initialize_tui): Declare.
14129 * python/py-tui.c: New file.
14130 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
14131
fc96d20b
TT
141322020-02-22 Tom Tromey <tom@tromey.com>
14133
14134 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
14135
935c78c0
TT
141362020-02-22 Tom Tromey <tom@tromey.com>
14137
14138 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
14139 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
14140 * tui/tui-data.c (tui_set_win_with_focus): Remove.
14141 (tui_set_win_focus_to): Move from tui-win.c.
14142
0240c8f1
TT
141432020-02-22 Tom Tromey <tom@tromey.com>
14144
14145 * tui/tui-layout.c (make_standard_window, get_locator_window): New
14146 functions.
14147 (known_window_types): New global.
14148 (tui_get_window_by_name): Reimplement.
14149 (initialize_known_windows): New function.
14150 (validate_window_name): Rewrite.
14151 (_initialize_tui_layout): Call initialize_known_windows.
14152
fdb01f0c
TT
141532020-02-22 Tom Tromey <tom@tromey.com>
14154
14155 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
14156 Remove constants.
14157 * tui/tui-winsource.h (struct tui_source_window_base)
14158 <tui_source_window_base>: Remove parameter.
14159 * tui/tui-winsource.c
14160 (tui_source_window_base::tui_source_window_base): Remove
14161 parameter.
14162 (tui_source_window_base::refill): Update.
14163 * tui/tui-stack.h (struct tui_locator_window)
14164 <tui_locator_window>: Update.
14165 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
14166 Default the constructor.
14167 * tui/tui-regs.h (struct tui_data_item_window)
14168 <tui_data_item_window>: Default the constructor.
14169 (struct tui_data_window) <tui_data_window>: Likewise.
14170 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
14171 Default the constructor.
14172 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
14173 Default the constructor.
14174 <type>: Remove.
14175 (struct tui_win_info) <tui_win_info>: Default the constructor.
14176 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
14177 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
14178 Default the constructor.
14179
865a5aec
TT
141802020-02-22 Tom Tromey <tom@tromey.com>
14181
14182 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
14183 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
14184 * tui/tui-win.c (tui_resize_all): Don't call
14185 tui_delete_invisible_windows.
14186 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
14187 done.
14188 (tui_set_layout): Update.
14189 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
14190 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
14191 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
14192
e098d18c
TT
141932020-02-22 Tom Tromey <tom@tromey.com>
14194
14195 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
14196 correctly.
14197
eb9c8874
TT
141982020-02-22 Tom Tromey <tom@tromey.com>
14199
14200 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
14201
7eed1a8e
TT
142022020-02-22 Tom Tromey <tom@tromey.com>
14203
14204 * tui/tui-winsource.h (struct tui_source_window_iterator)
14205 <inner_iterator>: New etytypedef.
14206 <tui_source_window_iterator>: Take "end" parameter.
14207 <tui_source_window_iterator>: Take iterator.
14208 <operator*, advance>: Update.
14209 <m_iter>: Change type.
14210 <m_end>: New field.
14211 (struct tui_source_windows) <begin, end>: Update.
14212 * tui/tui-layout.c (tui_windows): New global.
14213 (tui_apply_current_layout): Clear tui_windows.
14214 (tui_layout_window::apply): Update tui_windows.
14215 * tui/tui-data.h (tui_windows): Declare.
14216 (all_tui_windows): Now inline function.
14217 (class tui_window_iterator, struct all_tui_windows): Remove.
14218
7c043ba6
TT
142192020-02-22 Tom Tromey <tom@tromey.com>
14220
14221 PR tui/17850:
14222 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
14223 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
14224 "height" argument.
14225 (class tui_layout_window) <get_sizes>: Likewise.
14226 (class tui_layout_split) <tui_layout_split>: Add "vertical"
14227 argument.
14228 <get_sizes>: Add "height" argument.
14229 <m_vertical>: New field.
14230 * tui/tui-layout.c (tui_layout_split::clone): Update.
14231 (tui_layout_split::get_sizes): Add "height" argument.
14232 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
14233 (tui_new_layout_command): Parse "-horizontal".
14234 (_initialize_tui_layout): Update help string.
14235 (tui_layout_split::specification): Add "-horizontal" when needed.
14236 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
14237 argument.
14238 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
14239 New methods.
14240
6bc56648
TT
142412020-02-22 Tom Tromey <tom@tromey.com>
14242
14243 * tui/tui-layout.h (enum tui_adjust_result): New.
14244 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
14245 (class tui_layout_window) <adjust_size>: Return
14246 tui_adjust_result. Rewrite.
14247 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
14248 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
14249
c22fef7e
TT
142502020-02-22 Tom Tromey <tom@tromey.com>
14251
14252 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
14253 parameter and return types.
14254 (class tui_layout_base) <specification>: Add "depth".
14255 (class tui_layout_window) <specification>: Add "depth".
14256 (class tui_layout_split) <specification>: Add "depth".
14257 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
14258 and return types.
14259 (tui_new_layout_command): Parse sub-layouts.
14260 (_initialize_tui_layout): Update help string.
14261 (tui_layout_window::specification): Add "depth".
14262 (add_layout_command): Update.
14263
ee325b61
TT
142642020-02-22 Tom Tromey <tom@tromey.com>
14265
14266 * NEWS: Add "tui new-layout" item.
14267 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
14268 Add new-layout command to help text.
14269 (validate_window_name): New function.
14270 (tui_new_layout_command): New function.
14271 (_initialize_tui_layout): Register "new-layout".
14272 (tui_layout_window::specification): New method.
14273 (tui_layout_window::specification): New method.
14274 * tui/tui-layout.h (class tui_layout_base) <specification>: New
14275 method.
14276 (class tui_layout_window) <specification>: New method.
14277 (class tui_layout_split) <specification>: New method.
14278
416eb92d
TT
142792020-02-22 Tom Tromey <tom@tromey.com>
14280
14281 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
14282 * tui/tui-win.c (window_name_completer): Update comment.
14283 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
14284 Declare method.
14285 (class tui_layout_window) <replace_window>: Likewise.
14286 (class tui_layout_split) <replace_window>: Likewise.
14287 (tui_set_layout): Don't declare.
14288 (tui_set_initial_layout): Declare function.
14289 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
14290 (asm_regs_layout): New globals.
14291 (tui_current_layout, show_layout): Remove.
14292 (tui_set_layout, tui_add_win_to_layout): Rewrite.
14293 (find_layout, tui_apply_layout): New function.
14294 (layout_completer): Remove.
14295 (tui_next_layout): Reimplement.
14296 (tui_next_layout_command): New function.
14297 (tui_set_initial_layout, tui_prev_layout_command): New functions.
14298 (tui_regs_layout): Reimplement.
14299 (tui_regs_layout_command): New function.
14300 (extract_display_start_addr): Rewrite.
14301 (next_layout, prev_layout): Remove.
14302 (tui_layout_window::replace_window): New method.
14303 (tui_layout_split::replace_window): New method.
14304 (destroy_layout): New function.
14305 (layout_list): New global.
14306 (add_layout_command): New function.
14307 (initialize_layouts): Update.
14308 (tui_layout_command): New function.
14309 (_initialize_tui_layout): Install "layout" commands.
14310 * tui/tui-data.h (enum tui_layout_type): Remove.
14311 (tui_current_layout): Don't declare.
14312
0dbc2fc7
TT
143132020-02-22 Tom Tromey <tom@tromey.com>
14314
14315 * tui/tui-regs.c (tui_reg_layout): Remove.
14316 (tui_reg_command): Use tui_regs_layout.
14317 * tui/tui-layout.h (tui_reg_command): Declare.
14318 * tui/tui-layout.c (tui_reg_command): New function.
14319
5afe342e
TT
143202020-02-22 Tom Tromey <tom@tromey.com>
14321
14322 * tui/tui.c (tui_rl_delete_other_windows): Call
14323 tui_remove_some_windows.
14324 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
14325 Declare method.
14326 (class tui_layout_window) <remove_windows>: New method.
14327 (class tui_layout_split) <remove_windows>: Declare.
14328 (tui_remove_some_windows): Declare.
14329 * tui/tui-layout.c (tui_remove_some_windows): New function.
14330 (tui_layout_split::remove_windows): New method.
14331
427326a8
TT
143322020-02-22 Tom Tromey <tom@tromey.com>
14333
14334 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
14335 * tui/tui-layout.h (tui_next_layout): Declare.
14336 * tui/tui-layout.c (tui_next_layout): New function.
14337
3fe12b6d
TT
143382020-02-22 Tom Tromey <tom@tromey.com>
14339
14340 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
14341 correct coordinates.
14342
59b8b5d2
TT
143432020-02-22 Tom Tromey <tom@tromey.com>
14344
14345 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
14346 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
14347 DATA_WIN case.
14348
2a3d458b
TT
143492020-02-22 Tom Tromey <tom@tromey.com>
14350
14351 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
14352 TUI_DISASM_WIN, not tui_win_list.
14353
3f0cbb04
TT
143542020-02-22 Tom Tromey <tom@tromey.com>
14355
14356 * valprint.c (generic_val_print_enum_1)
14357 (val_print_type_code_flags): Style member names.
14358 * rust-lang.c (val_print_struct, rust_print_enum)
14359 (rust_print_struct_def, rust_internal_print_type): Style member
14360 names.
14361 * p-valprint.c (pascal_object_print_value_fields): Style member
14362 names. Only call fprintf_symbol_filtered for static members.
14363 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
14364 * f-valprint.c (f_val_print): Style member names.
14365 * f-typeprint.c (f_type_print_base): Style member names.
14366 * cp-valprint.c (cp_print_value_fields): Style member names. Only
14367 call fprintf_symbol_filtered for static members.
14368 (cp_print_class_member): Style member names.
14369 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
14370 member names.
14371 * ada-valprint.c (ada_print_scalar): Style enum names.
14372 (ada_val_print_enum): Likewise.
14373 * ada-typeprint.c (print_enum_type): Style enum names.
14374
d4d947ae
TT
143752020-02-21 Tom Tromey <tom@tromey.com>
14376
14377 * psympriv.h (struct partial_symtab): Update comment.
14378
e94e944b
TT
143792020-02-21 Tom Tromey <tromey@adacore.com>
14380
14381 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
14382 type is CORE_ADDR.
14383
1eb73179
TV
143842020-02-21 Tom de Vries <tdevries@suse.de>
14385
14386 PR gdb/25534
14387 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
14388 if dependencies[i]->user != NULL.
14389
4f180d53
AT
143902020-02-21 Ali Tamur <tamur@google.com>
14391
14392 * dwarf2/read.c (dwarf2_name): Add null check.
14393
22b6cd70
TT
143942020-02-20 Tom Tromey <tom@tromey.com>
14395
14396 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
14397 ">=", in binary search.
14398 (dwarf2_find_containing_comp_unit): New overload.
14399 (run_test): New self-test.
14400 (_initialize_dwarf2_read): Register new test.
14401
bd0cf5a6
NC
144022020-02-20 Nelson Chu <nelson.chu@sifive.com>
14403
14404 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
14405 * riscv-tdep.h: Likewise.
14406 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
14407 rv32-only CSR.
14408 * features/riscv/64bit-csr.xml: Regenerated.
14409
3f702acd
SDJ
144102020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
14411 Tom Tromey <tom@tromey.com>
14412
14413 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
14414 of 'fputc_unfiltered'.
14415 (putchar_unfiltered): Call 'fputc_unfiltered'.
14416 (fputc_unfiltered): Call 'fputs_unfiltered'.
14417
d13c7322
AB
144182020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
14419
14420 * config.in: Regenerate.
14421 * configure: Regenerate.
14422 * configure.ac: Add --with-python-libdir option.
14423 * main.c: Use WITH_PYTHON_LIBDIR.
14424
869d8950
TT
144252020-02-19 Tom Tromey <tom@tromey.com>
14426
14427 * symtab.c (general_symbol_info::compute_and_set_names): Use
14428 obstack_strndup. Simplify call to symbol_set_demangled_name.
14429
298e9637
SM
144302020-02-19 Simon Marchi <simon.marchi@efficios.com>
14431
14432 * dwarf2/read.c (allocate_signatured_type_table,
14433 allocate_dwo_unit_table, allocate_type_unit_groups_table,
14434 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
14435 Remove objfile parameter, update all callers.
14436
08410482
DE
144372020-02-19 Doug Evans <dje@google.com>
14438
14439 PR rust/25535
14440 * rust-lang.c (rust_print_enum): Apply embedded_offset to
14441 rust_enum_variant calculation.
14442
dfdeeca1
TT
144432020-02-19 Tom Tromey <tromey@adacore.com>
14444
14445 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
14446
2ef5453b
TT
144472020-02-19 Tom Tromey <tromey@adacore.com>
14448
14449 * ada-lang.c (cache_symbol): Use obstack_strdup.
14450
9f1528a1
AB
144512020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14452
14453 * configure: Regenerate.
14454
d3c22fa8
TT
144552020-02-19 Tom Tromey <tromey@adacore.com>
14456
14457 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
14458 NULL check.
14459
bf84f706
MR
144602020-02-19 Maciej W. Rozycki <macro@wdc.com>
14461
14462 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
14463
d1c9b20f
AB
144642020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14465
14466 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
14467 if GDBSERVER is not defined.
14468 (riscv_tdesc_cache): Likewise, also store const target_desc.
14469 (STATIC_IN_GDB): Define.
14470 (riscv_create_target_description): Update declaration with
14471 STATIC_IN_GDB.
14472 (riscv_lookup_target_description): New function, only define if
14473 GDBSERVER is not defined.
14474 * arch/riscv.h (riscv_create_target_description): Declare only
14475 when GDBSERVER is defined.
14476 (riscv_lookup_target_description): New declaration when GDBSERVER
14477 is not defined.
14478 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
14479 (riscv_linux_read_features): ...this, and return
14480 riscv_gdbarch_features instead of target_desc.
14481 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
14482 (riscv_linux_read_description): Rename to...
14483 (riscv_linux_read_features): ...this.
14484 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14485 Update to use riscv_gdbarch_features and
14486 riscv_lookup_target_description.
14487 * riscv-tdep.c (riscv_find_default_target_description): Use
14488 riscv_lookup_target_description instead of
14489 riscv_create_target_description.
14490
373d7ac0
SM
144912020-02-18 Simon Marchi <simon.marchi@efficios.com>
14492
14493 * valprint.c (generic_val_print_enum_1): When printing a flag
14494 enum with value 0 and there is no enumerator with value 0, print
14495 just "0" instead of "(unknown: 0x0)".
14496
b29a2df0
SM
144972020-02-18 Simon Marchi <simon.marchi@efficios.com>
14498
14499 * valprint.c (generic_val_print_enum_1): Print unknown part of
14500 flag enum in hex.
14501
6740f0cc
SM
145022020-02-18 Simon Marchi <simon.marchi@efficios.com>
14503
14504 * dwarf2/read.c (update_enumeration_type_from_children): Allow
14505 flag enums to contain duplicate enumerators.
14506 * valprint.c (generic_val_print_enum_1): Update comment.
14507
edd45eb0
SM
145082020-02-18 Simon Marchi <simon.marchi@efficios.com>
14509
14510 * dwarf2/read.c: Include "count-one-bits.h".
14511 (update_enumeration_type_from_children): If an enumerator has
14512 multiple bits set, don't treat the enumeration as a "flag enum".
14513 * valprint.c (generic_val_print_enum_1): Assert that enumerators
14514 of flag enums have 0 or 1 bit set.
14515
6d0cf446
BE
145162020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
14517
14518 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
14519 conversion.
14520 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14521 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14522 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14523 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14524 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14525
7001c1b7
SM
145262020-02-18 Simon Marchi <simon.marchi@efficios.com>
14527
14528 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
14529
fdb61c6c
SM
145302020-02-14 Simon Marchi <simon.marchi@efficios.com>
14531
14532 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
14533 displaced_step_closure_up.
14534 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14535 (struct displaced_step_closure_up):
14536 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14537 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14538 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
14539 Likewise.
14540 * gdbarch.sh (displaced_step_copy_insn): Likewise.
14541 * gdbarch.c, gdbarch.h: Re-generate.
14542 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
14543 displaced_step_closure_up.
14544 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14545 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14546 * infrun.h (displaced_step_closure_up): New type alias.
14547 (struct displaced_step_inferior_state) <step_closure>: Change
14548 type to displaced_step_closure_up.
14549 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
14550 displaced_step_closure_up.
14551 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14552
a4a38eb4
TT
145532020-02-14 Tom Tromey <tom@tromey.com>
14554
14555 * minidebug.c (gnu_debug_key): New global.
14556 (find_separate_debug_file_in_section): Use it.
14557
e8217e61
SM
145582020-02-14 Simon Marchi <simon.marchi@efficios.com>
14559
14560 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
14561 std::unique_ptr.
14562 * gdbarch.c: Re-generate.
14563 * gdbarch.h: Re-generate.
14564 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
14565 change.
14566 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
14567 type to std::unique_ptr.
14568 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14569 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14570 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14571 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14572 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
14573 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14574 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14575 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14576 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14577
d8d83535
SM
145782020-02-14 Simon Marchi <simon.marchi@efficios.com>
14579
14580 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
14581 std::unique_ptr.
14582 (displaced_step_clear): Rename to...
14583 (displaced_step_reset): ... this. Just call displaced->reset ().
14584 (displaced_step_clear_cleanup): Rename to...
14585 (displaced_step_reset_cleanup): ... this.
14586 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
14587 (displaced_step_fixup): Likewise.
14588 (resume_1): Likewise.
14589 (handle_inferior_event): Restore child's memory before calling
14590 displaced_step_fixup on the parent.
14591 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
14592 to std::unique_ptr.
14593 <step_closure>: Change type to std::unique_ptr.
14594
5f661e03
SM
145952020-02-14 Simon Marchi <simon.marchi@efficios.com>
14596
14597 * arm-tdep.c: Include count-one-bits.h.
14598 (cleanup_block_store_pc): Use count_one_bits.
14599 (cleanup_block_load_pc): Use count_one_bits.
14600 (arm_copy_block_xfer): Use count_one_bits.
14601 (thumb2_copy_block_xfer): Use count_one_bits.
14602 (thumb_copy_pop_pc_16bit): Use count_one_bits.
14603 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
14604 (thumb_get_next_pcs_raw): Use count_one_bits.
14605 (arm_get_next_pcs_raw): Use count_one_bits_l.
14606 * arch/arm.c (bitcount): Remove.
14607 * arch/arm.h (bitcount): Remove.
14608
8084e579
TT
146092020-02-14 Tom Tromey <tromey@adacore.com>
14610
14611 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
14612 Update.
14613 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
14614 * dwarf2/loc.c (call_site_find_chain_1): Return
14615 unique_xmalloc_ptr.
14616 (call_site_find_chain): Likewise.
14617
258bf0ee
RB
146182020-02-14 Richard Biener <rguenther@suse.de>
14619
14620 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
14621 on expression with division operators.
14622
f98a8458
AKS
146232020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14624
14625 * MAINTAINERS (Write After Approval): Adding myself.
14626
d1437c0e
TT
146272020-02-12 Tom Tromey <tom@tromey.com>
14628
14629 * event-loop.c (event_data, gdb_event, event_handler_func):
14630 Remove.
14631
3d4560f7
TT
146322020-02-12 Tom Tromey <tom@tromey.com>
14633
14634 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
14635 (dwarf2_frame_objfile_data): Add comment.
14636 (find_comp_unit, set_comp_unit): New functions.
14637 (dwarf2_frame_find_fde): Use find_comp_unit.
14638 (dwarf2_build_frame_info): Use set_comp_unit.
14639
21982304
TT
146402020-02-12 Tom Tromey <tom@tromey.com>
14641
14642 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
14643 (comp_unit): Don't initialize objfile.
14644 (execute_cfa_program): Add text_offset parameter.
14645 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
14646 (dwarf2_frame_cache): Update.
14647 (dwarf2_build_frame_info): Don't set "objfile" member.
14648
4debb237
TT
146492020-02-12 Tom Tromey <tom@tromey.com>
14650
14651 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
14652 (decode_frame_entry): Likewise.
14653 (dwarf2_build_frame_info): Update.
14654
0d404d44
TT
146552020-02-12 Tom Tromey <tom@tromey.com>
14656
14657 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
14658 (decode_frame_entry_1): Use the comp_unit obstack.
14659
a7a3ae5c
TT
146602020-02-12 Tom Tromey <tom@tromey.com>
14661
14662 * dwarf2/frame.c (struct comp_unit): Add initializers and
14663 constructor.
14664 (dwarf2_frame_objfile_data): Store a comp_unit.
14665 (dwarf2_frame_find_fde): Update.
14666 (dwarf2_build_frame_info): Use "new".
14667
a9d65418
TT
146682020-02-12 Tom Tromey <tom@tromey.com>
14669
14670 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
14671 (dwarf2_fde_table): Typedef for std::vector.
14672 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
14673 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
14674 (decode_frame_entry): Update.
14675 (dwarf2_build_frame_info): Use "new".
14676
7559c217
CB
146772020-02-12 Christian Biesinger <cbiesinger@google.com>
14678
14679 * arm-tdep.c (arm_gdbarch_init): Update.
14680 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
14681 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
14682 have_neon, is_m>: Change to bool.
14683
aeefc73c
CB
146842020-02-12 Christian Biesinger <cbiesinger@google.com>
14685
14686 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
14687
d27b8e5f
TT
146882020-02-12 Tom Tromey <tom@tromey.com>
14689
14690 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
14691
cd5900f3
HD
146922020-02-12 Hannes Domani <ssbssa@yahoo.de>
14693
14694 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
14695 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
14696
f056b22b
TT
146972020-02-11 Tom Tromey <tom@tromey.com>
14698
14699 * psymtab.h: Update comment.
14700
f92ff6b5
TT
147012020-02-11 Tom Tromey <tom@tromey.com>
14702
14703 * gdb_obstack.h (struct auto_obstack): Use
14704 DISABLE_COPY_AND_ASSIGN.
14705
3fd6912b
TT
147062020-02-11 Tom Tromey <tom@tromey.com>
14707
14708 * dwarf2/frame.h (struct objfile): Don't forward declare.
14709
69ed9b74
CB
147102020-02-11 Christian Biesinger <cbiesinger@google.com>
14711
14712 * cris-tdep.c (cris_supply_gregset): Change signature to match
14713 what struct regset expects.
14714 (cris_regset): New struct.
14715 (fetch_core_registers): Remove.
14716 (cris_iterate_over_regset_sections): New function.
14717 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
14718 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
14719
bda874f6
CB
147202020-02-11 Christian Biesinger <cbiesinger@google.com>
14721
14722 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
14723 registers.
14724
754e1564
CB
147252020-02-11 Christian Biesinger <cbiesinger@google.com>
14726
14727 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
14728
8ddd8e0e
SM
147292020-02-11 Simon Marchi <simon.marchi@efficios.com>
14730
14731 * configure: Re-generate.
14732
898e7f60
SM
147332020-02-11 Simon Marchi <simon.marchi@efficios.com>
14734
14735 * configure: Re-generate.
14736
58df732b
SM
147372020-02-11 Simon Marchi <simon.marchi@efficios.com>
14738
14739 * acinclude: Update warning.m4 path.
14740 * warning.m4: Move to gdbsupport.
14741
da5bd37e
TT
147422020-02-11 Tom Tromey <tromey@adacore.com>
14743
14744 * remote.c (remote_console_output): Update.
14745 * printcmd.c (printf_command): Update.
14746 * event-loop.c (gdb_wait_for_event): Update.
14747 * linux-nat.c (sigchld_handler): Update.
14748 * remote-sim.c (gdb_os_write_stdout): Update.
14749 (gdb_os_flush_stdout): Update.
14750 (gdb_os_flush_stderr): Update.
14751 (gdb_os_write_stderr): Update.
14752 * exceptions.c (print_exception): Update.
14753 * remote-fileio.c (remote_fileio_func_read): Update.
14754 (remote_fileio_func_write): Update.
14755 * tui/tui.c (tui_enable): Update.
14756 * tui/tui-interp.c (tui_interp::init): Update.
14757 * utils.c (init_page_info): Update.
14758 (putchar_unfiltered, fputc_unfiltered): Update.
14759 (gdb_flush): Update.
14760 (emit_style_escape): Update.
14761 (flush_wrap_buffer, fputs_maybe_filtered): Update.
14762 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
14763 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
14764 (stderr_file::write): Update.
14765 (stderr_file::puts): Update.
14766 * ui-file.h (ui_file_isatty, ui_file_write)
14767 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
14768 (ui_file_puts): Don't declare.
14769
85f0dd3c
TV
147702020-02-10 Tom de Vries <tdevries@suse.de>
14771
14772 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
14773 sentinel to char *.
14774
2e927613
TV
147752020-02-09 Tom de Vries <tdevries@suse.de>
14776
14777 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
14778 filename if it matches "<artificial>".
14779
6bafc845
HD
147802020-02-09 Hannes Domani <ssbssa@yahoo.de>
14781
14782 * windows-tdep.c (struct enum_value_name): New struct.
14783 (create_enum): New function.
14784 (windows_get_siginfo_type): Create and use enum types.
14785
7928d571
HD
147862020-02-09 Hannes Domani <ssbssa@yahoo.de>
14787
14788 * NEWS: Mention $_siginfo support for Windows.
14789 * windows-nat.c (handle_exception): Set siginfo_er.
14790 (windows_nat_target::mourn_inferior): Reset siginfo_er.
14791 (windows_xfer_siginfo): New function.
14792 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
14793 * windows-tdep.c (struct windows_gdbarch_data): New struct.
14794 (init_windows_gdbarch_data): New function.
14795 (get_windows_gdbarch_data): New function.
14796 (windows_get_siginfo_type): New function.
14797 (windows_init_abi): Register windows_get_siginfo_type.
14798 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
14799
6751ebae
TT
148002020-02-08 Tom Tromey <tom@tromey.com>
14801
14802 * dwarf2/read.c (class cutu_reader) <cutu_reader,
14803 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
14804 <keep>: Declare method.
14805 <m_keep>: Remove member.
14806 <~cutu_reader>: Remove.
14807 (cutu_reader::init_tu_and_read_dwo_dies): Update.
14808 (cutu_reader::cutu_reader): Update.
14809 (cutu_reader::keep): Rename from ~cutu_reader.
14810 (process_psymtab_comp_unit, build_type_psymtabs_1)
14811 (process_skeletonless_type_unit, load_partial_comp_unit)
14812 (load_full_comp_unit, dwarf2_read_addr_index)
14813 (read_signatured_type): Update.
14814
135f5437
TT
148152020-02-08 Tom Tromey <tom@tromey.com>
14816
14817 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
14818 "want_partial_unit" parameter.
14819 (process_psymtab_comp_unit): Change want_partial_unit to bool.
14820 Inline check for DW_TAG_partial_unit.
14821 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
14822
9f66ff1c
TT
148232020-02-08 Tom Tromey <tom@tromey.com>
14824
14825 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
14826 read.c.
14827 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
14828 read.c.
14829
c8a7a66f
TT
148302020-02-08 Tom Tromey <tom@tromey.com>
14831
14832 * dwarf2/read.c (read_address): Move to comp-unit.c.
14833 (dwarf2_rnglists_process, dwarf2_ranges_process)
14834 (read_attribute_value, dwarf_decode_lines_1)
14835 (var_decode_location, decode_locdesc): Update.
14836 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
14837 read.c. Remove "cu" parameter.
14838 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
14839 method.
14840
8266302d
TT
148412020-02-08 Tom Tromey <tom@tromey.com>
14842
14843 * dwarf2/read.c (read_attribute_value, read_indirect_string)
14844 (read_indirect_line_string): Update.
14845 * dwarf2/comp-unit.c (read_offset): Remove.
14846 (read_comp_unit_head): Update.
14847 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
14848 method.
14849 (read_offset): Don't declare.
14850
4057dfde
TT
148512020-02-08 Tom Tromey <tom@tromey.com>
14852
14853 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
14854 * dwarf2/read.c (struct comp_unit_head): Move to
14855 dwarf2/comp-unit.h.
14856 (enum class rcuh_kind): Move to comp-unit.h.
14857 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
14858 (read_comp_unit_head, error_check_comp_unit_head)
14859 (read_and_check_comp_unit_head): Move to comp-unit.c.
14860 (read_offset, dwarf_unit_type_name): Likewise.
14861 (create_debug_type_hash_table, read_cutu_die_from_dwo)
14862 (cutu_reader::cutu_reader, read_call_site_scope)
14863 (find_partial_die, follow_die_offset): Update.
14864 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
14865
24aa364d
TT
148662020-02-08 Tom Tromey <tom@tromey.com>
14867
14868 * dwarf2/read.c (read_offset_1): Move to leb.c.
14869 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
14870 (dwarf_decode_macro_bytes): Update.
14871 * dwarf2/leb.c (read_offset): Rename; move from read.c.
14872 * dwarf2/leb.h (read_offset): Declare.
14873
2c7d5afc
TT
148742020-02-08 Tom Tromey <tom@tromey.com>
14875
14876 * dwarf2/read.c (dwarf2_section_size): Remove.
14877 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
14878 Update.
14879 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
14880
4075cb26
TT
148812020-02-08 Tom Tromey <tom@tromey.com>
14882
14883 * dwarf2/read.c (read_initial_length): Move to leb.c.
14884 * dwarf2/leb.h (read_initial_length): Declare.
14885 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
14886 handle_nonstd parameter.
14887 * dwarf2/frame.c (read_initial_length): Remove.
14888 (decode_frame_entry_1): Update.
14889
09ba997f
TT
148902020-02-08 Tom Tromey <tom@tromey.com>
14891
14892 * dwarf2/loc.c (dwarf2_find_location_expression)
14893 (dwarf_evaluate_loc_desc::get_tls_address)
14894 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
14895 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
14896 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
14897 (dwarf2_compile_property_to_c)
14898 (dwarf2_loc_desc_get_symbol_read_needs)
14899 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
14900 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
14901 (loclist_describe_location, loclist_tracepoint_var_ref)
14902 (loclist_generate_c_location): Update.
14903 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
14904 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
14905 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
14906 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
14907 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
14908 (dwarf2_per_cu_data::addr_size)
14909 (dwarf2_per_cu_data::ref_addr_size)
14910 (dwarf2_per_cu_data::text_offset)
14911 (dwarf2_per_cu_data::addr_type): Now methods.
14912 (per_cu_header_read_in): Make per_cu "const".
14913 (dwarf2_version): Remove.
14914 (dwarf2_per_cu_data::int_type): Now a method.
14915 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
14916 (set_die_type, read_array_type, read_subrange_index_type)
14917 (read_tag_string_type, read_subrange_type): Update.
14918 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
14919 offset_size, ref_addr_size, text_offset, addr_type, version,
14920 objfile, int_type, addr_sized_int_type>: Declare methods.
14921
96c738c0
TT
149222020-02-08 Tom Tromey <tom@tromey.com>
14923
14924 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
14925 Move earlier.
14926
8fdd972c
TT
149272020-02-08 Tom Tromey <tom@tromey.com>
14928
14929 * dwarf2/read.h (dwarf_line_debug): Declare.
14930 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
14931 * dwarf2/read.c: Move line_header code to new files.
14932 (dwarf_line_debug): No longer static.
14933 * dwarf2/line-header.c: New file.
14934 * dwarf2/line-header.h: New file.
14935
03075812
TT
149362020-02-08 Tom Tromey <tom@tromey.com>
14937
14938 * dwarf2/read.c (struct line_header) <file_full_name,
14939 file_file_name>: Return unique_xmalloc_ptr.
14940 (line_header::file_file_name): Update.
14941 (line_header::file_full_name): Update.
14942 (dw2_get_file_names_reader): Update.
14943 (macro_start_file): Update.
14944
bb822404
TT
149452020-02-08 Tom Tromey <tom@tromey.com>
14946
14947 * dwarf2/read.c (struct line_header) <file_full_name,
14948 file_file_name>: Declare methods.
14949 (dw2_get_file_names_reader): Update.
14950 (file_file_name): Now a method.
14951 (file_full_name): Likewise.
14952 (macro_start_file): Update.
14953
009b64fc
TT
149542020-02-08 Tom Tromey <tom@tromey.com>
14955
14956 * dwarf2/read.c (dwarf_always_disassemble)
14957 (show_dwarf_always_disassemble): Move to loc.c.
14958 (_initialize_dwarf2_read): Move "always-disassemble" registration
14959 to loc.c.
14960 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
14961 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
14962 static.
14963 (show_dwarf_always_disassemble): Move from read.c.
14964 (_initialize_dwarf2loc): Move always-disassemble from read.c.
14965
5895093f
TT
149662020-02-08 Tom Tromey <tom@tromey.com>
14967
14968 * dwarf2/read.c (~dwarf2_per_objfile): Update.
14969 (create_quick_file_names_table): Return htab_up.
14970 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
14971 Update.
14972 * dwarf2/read.h (struct dwarf2_per_objfile)
14973 <quick_file_names_table>: Now htab_up.
14974
b3b32279
TT
149752020-02-08 Tom Tromey <tom@tromey.com>
14976
14977 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
14978
1d33d811
TT
149792020-02-08 Tom Tromey <tom@tromey.com>
14980
14981 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
14982 Rewrite.
14983 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
14984 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
14985 (abbrev_table::abbrev_table): No longer inline.
14986 (ABBREV_HASH_SIZE): Remove.
14987 (abbrev_table::m_abbrevs): Now an htab_up.
14988
86de1d91
TT
149892020-02-08 Tom Tromey <tom@tromey.com>
14990
14991 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
14992 (cutu_reader): Update.
14993 (build_type_psymtabs_1): Update.
14994 * dwarf2/abbrev.c (abbrev_table::read): Rename.
14995 (abbrev_table::alloc_abbrev): Update.
14996 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
14997 (abbrev_table::read): New static method, renamed from
14998 abbrev_table_read_table.
14999 (abbrev_table::alloc_abbrev)
15000 (abbrev_table::add_abbrev): Now private.
15001 (abbrev_table::abbrev_table): Now private.
15002 (abbrev_table::m_abbrev_obstack): Now private. Rename.
15003
0335378b
TT
150042020-02-08 Tom Tromey <tom@tromey.com>
15005
15006 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
15007 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
15008 htab_up.
15009
48b490f2
TT
150102020-02-08 Tom Tromey <tom@tromey.com>
15011
15012 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
15013 htab_up.
15014 (lookup_dwo_unit_in_dwp): Update.
15015 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
15016 on obstack.
15017
bc68fb19
TT
150182020-02-08 Tom Tromey <tom@tromey.com>
15019
15020 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
15021 obstack.
15022
d15acc42
TT
150232020-02-08 Tom Tromey <tom@tromey.com>
15024
15025 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
15026 line_header_hash.
15027 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
15028 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
15029 Change type to htab_up.
15030
eaa5fa8b
TT
150312020-02-08 Tom Tromey <tom@tromey.com>
15032
15033 * dwarf2/read.c (allocate_type_unit_groups_table): Return
15034 htab_up. Don't allocate on obstack.
15035 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
15036 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
15037 Change type to htab_up.
15038
b0b6a987
TT
150392020-02-08 Tom Tromey <tom@tromey.com>
15040
15041 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
15042 Change type to htab_up.
15043 * dwarf2/read.c (create_signatured_type_table_from_index)
15044 (create_signatured_type_table_from_debug_names)
15045 (create_all_type_units, add_type_unit)
15046 (lookup_dwo_signatured_type, lookup_signatured_type)
15047 (process_skeletonless_type_unit): Update.
15048 (create_debug_type_hash_table, create_debug_types_hash_table):
15049 Change type of types_htab.
15050 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
15051 htab_up. Don't allocate on obstack.
15052 (create_cus_hash_table): Change type of cus_htab parameter.
15053 (struct dwo_file) <cus, tus>: Now htab_up.
15054 (lookup_dwo_signatured_type, lookup_dwo_cutu)
15055 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
15056 (queue_and_load_all_dwo_tus): Update.
15057 * dwarf2/index-write.c (write_gdbindex): Update.
15058 (write_debug_names): Update.
15059
39856def
TT
150602020-02-08 Tom Tromey <tom@tromey.com>
15061
15062 * dwarf2/read.h (struct dwarf2_queue_item): Move from
15063 dwarf2/read.c. Remove "next" member. Add constructor ntad
15064 destructor.
15065 (struct dwarf2_per_objfile) <queue>: New member.
15066 * dwarf2/read.c (struct dwarf2_queue_item): Move to
15067 dwarf2/read.h.
15068 (dwarf2_queue, dwarf2_queue_tail): Remove.
15069 (class dwarf2_queue_guard): Add parameter to constructor. Use
15070 DISABLE_COPY_AND_ASSIGN.
15071 <m_per_objfile>: New member.
15072 <~dwarf2_queue_guard>: Rewrite.
15073 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
15074 Update.
15075 (~dwarf2_queue_item): New.
15076
3e225074
TT
150772020-02-08 Tom Tromey <tom@tromey.com>
15078
15079 * dwarf2/read.c (struct die_info) <has_children>: New member.
15080 (dw2_get_file_names_reader): Remove has_children.
15081 (dw2_get_file_names): Update.
15082 (read_cutu_die_from_dwo): Remove has_children.
15083 (cutu_reader::init_tu_and_read_dwo_dies)
15084 (cutu_reader::cutu_reader): Update.
15085 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
15086 Remove has_children.
15087 (build_type_psymtabs_1, process_skeletonless_type_unit)
15088 (load_partial_comp_unit, load_full_comp_unit): Update.
15089 (create_dwo_cu_reader): Remove has_children.
15090 (create_cus_hash_table, read_die_and_children): Update.
15091 (read_full_die_1,read_full_die): Remove has_children.
15092 (read_signatured_type): Update.
15093 (class cutu_reader) <has_children>: Remove.
15094
82ca8957
TT
150952020-02-08 Tom Tromey <tom@tromey.com>
15096
15097 * dwarf2/expr.c: Rename from dwarf2expr.c.
15098 * dwarf2/expr.h: Rename from dwarf2expr.h.
15099 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
15100 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
15101 * dwarf2/frame.c: Rename from dwarf2-frame.c.
15102 * dwarf2/frame.h: Rename from dwarf2-frame.h.
15103 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
15104 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
15105 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
15106 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
15107 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
15108 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
15109 * dwarf2/loc.c: Rename from dwarf2loc.c.
15110 * dwarf2/loc.h: Rename from dwarf2loc.h.
15111 * dwarf2/read.c: Rename from dwarf2read.c.
15112 * dwarf2/read.h: Rename from dwarf2read.h.
15113 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
15114 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
15115 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
15116 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
15117 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
15118 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
15119 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
15120 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
15121 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
15122 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
15123 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
15124 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
15125 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
15126 Update.
15127 * Makefile.in (COMMON_SFILES): Update.
15128 (HFILES_NO_SRCDIR): Update.
15129
9e35d499
TT
151302020-02-08 Tom Tromey <tom@tromey.com>
15131
15132 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
15133 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
15134
1eba2311
TT
151352020-02-08 Tom Tromey <tom@tromey.com>
15136
15137 * dwarf2read.h (struct die_info): Don't declare.
15138
e41c2da2
TT
151392020-02-08 Tom Tromey <tom@tromey.com>
15140
15141 * dwarf2read.h (die_info_ptr): Remove typedef.
15142
4fc6c0d5
TT
151432020-02-08 Tom Tromey <tom@tromey.com>
15144
15145 * dwarf2read.c (read_call_site_scope)
15146 (handle_data_member_location, dwarf2_add_member_fn)
15147 (mark_common_block_symbol_computed, read_common_block)
15148 (attr_to_dynamic_prop, partial_die_info::read)
15149 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
15150 (dwarf2_symbol_mark_computed, set_die_type): Update.
15151 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
15152 method.
15153 (attr_form_is_block): Don't declare.
15154 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
15155
cd6c91b4
TT
151562020-02-08 Tom Tromey <tom@tromey.com>
15157
15158 * dwarf2read.c (dwarf2_find_base_address, )
15159 (read_call_site_scope, rust_containing_type)
15160 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
15161 (handle_data_member_location, dwarf2_add_member_fn)
15162 (get_alignment, read_structure_type, process_structure_scope)
15163 (mark_common_block_symbol_computed, read_common_block)
15164 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
15165 (partial_die_info::read, read_attribute_value, new_symbol)
15166 (lookup_die_type, dwarf2_get_ref_die_offset)
15167 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
15168 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
15169 (dwarf2_symbol_mark_computed): Update.
15170 * dwarf2/attribute.h (struct attribute) <value_as_address,
15171 form_is_section_offset, form_is_constant, form_is_ref>: Declare
15172 methods.
15173 (value_as_address, attr_form_is_section_offset)
15174 (attr_form_is_constant, attr_form_is_ref): Don't declare.
15175 * dwarf2/attribute.c (attribute::value_as_address)
15176 (attribute::form_is_section_offset, attribute::form_is_constant)
15177 (attribute::form_is_ref): Now methods.
15178
162dce55
TT
151792020-02-08 Tom Tromey <tom@tromey.com>
15180
15181 * dwarf2read.c (struct attribute, DW_STRING)
15182 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
15183 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
15184 (attr_form_is_block, attr_form_is_section_offset)
15185 (attr_form_is_constant, attr_form_is_ref): Move.
15186 * dwarf2/attribute.h: New file.
15187 * dwarf2/attribute.c: New file, from dwarf2read.c.
15188 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
15189
3054dd54
TT
151902020-02-08 Tom Tromey <tom@tromey.com>
15191
15192 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
15193 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
15194 Move.
15195 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
15196 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
15197 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
15198 abbrev.c.
15199 * dwarf2/abbrev.h: New file.
15200 * dwarf2/abbrev.c: New file, from dwarf2read.c.
15201 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
15202
96b79293
TT
152032020-02-08 Tom Tromey <tom@tromey.com>
15204
15205 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
15206 (dwarf2_section_size, dwarf2_get_section_info)
15207 (create_signatured_type_table_from_debug_names)
15208 (create_addrmap_from_aranges, read_debug_names_from_section)
15209 (get_gdb_index_contents_from_section, read_comp_unit_head)
15210 (error_check_comp_unit_head, read_abbrev_offset)
15211 (create_debug_type_hash_table, init_cu_die_reader)
15212 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
15213 (read_comp_units_from_section, create_cus_hash_table)
15214 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
15215 (create_dwp_v2_section, dwarf2_rnglists_process)
15216 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
15217 (abbrev_table_read_table, read_indirect_string_at_offset_from)
15218 (read_indirect_string_from_dwz, read_addr_index_1)
15219 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
15220 (dwarf_decode_macro_bytes, dwarf_decode_macros)
15221 (fill_in_loclist_baton): Update.
15222 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
15223 get_containing_section, get_bfd_owner, get_bfd_section,
15224 get_file_name, get_id, get_flags, empty, read>: Declare methods.
15225 (dwarf2_read_section, get_section_name, get_section_file_name)
15226 (get_containing_section, get_section_bfd_owner)
15227 (get_section_bfd_section, get_section_name, get_section_file_name)
15228 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
15229 declare.
15230 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
15231 (dwarf2_section_info::get_bfd_owner)
15232 (dwarf2_section_info::get_bfd_section)
15233 (dwarf2_section_info::get_name)
15234 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
15235 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
15236 (dwarf2_section_info::read): Now methods.
15237 * dwarf-index-write.c (class debug_names): Update.
15238
2c86cff9
TT
152392020-02-08 Tom Tromey <tom@tromey.com>
15240
15241 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
15242 Move to dwarf2/section.h.
15243 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
15244 (get_section_bfd_section, get_section_name)
15245 (get_section_file_name, get_section_id, get_section_flags)
15246 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
15247 dwarf2/section.c.
15248 * dwarf2/section.h: New file.
15249 * dwarf2/section.c: New file, from dwarf2read.c.
15250 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
15251
f4382c45
TT
152522020-02-08 Tom Tromey <tom@tromey.com>
15253
15254 * dwarf2read.h (read_unsigned_leb128): Don't declare.
15255 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
15256 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
15257 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
15258 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
15259 * dwarf2/leb.h: New file, from dwarf2read.c.
15260 * dwarf2/leb.c: New file, from dwarf2read.c.
15261 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
15262 Remove.
15263 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
15264 (COMMON_SFILES): Add dwarf2/leb.c.
15265
01840b7a
JB
152662020-02-08 Joel Brobecker <brobecker@adacore.com>
15267
15268 GDB 9.1 released.
15269
dfcb27e4
IB
152702020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15271
15272 PR gdb/25190:
aac66a4c
SM
15273 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
15274 * gdb/remote.c (remote_console_output): Update.
15275 * gdb/ui-file.c (fputs_unfiltered): Rename to...
15276 (ui_file_puts): ...this.
15277 * gdb/ui-file.h (ui_file_puts): Add declaration.
15278 * gdb/utils.c (emit_style_escape): Update.
15279 (flush_wrap_buffer): Update.
15280 (fputs_maybe_filtered): Update.
15281 (fputs_unfiltered): Add function.
dfcb27e4 15282
faa17681
IB
152832020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15284
aac66a4c
SM
15285 * gdb/event-loop.c (gdb_wait_for_event): Update.
15286 * gdb/printcmd.c (printf_command): Update.
15287 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
15288 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
15289 (gdb_os_flush_stderr): Update.
15290 * gdb/remote.c (remote_console_output): Update.
15291 * gdb/ui-file.c (gdb_flush): Rename to...
15292 (ui_file_flush): ...this.
15293 (stderr_file::write): Update.
15294 (stderr_file::puts): Update.
15295 * gdb/ui-file.h (gdb_flush): Rename to...
15296 (ui_file_flush): ...this.
15297 * gdb/utils.c (gdb_flush): Add function.
15298 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 15299
5abbbe1d
TT
153002020-02-07 Tom Tromey <tromey@adacore.com>
15301
15302 PR breakpoints/24915:
15303 * source.c (find_and_open_source): Do not check basenames_may_differ.
15304
919adfe8
TT
153052020-02-07 Tom Tromey <tom@tromey.com>
15306
15307 * README: Update gdbserver documentation.
15308 * gdbserver: Move to top level.
15309 * configure.tgt (build_gdbserver): Remove.
15310 * configure.ac: Remove --enable-gdbserver.
15311 * configure: Rebuild.
15312 * Makefile.in (distclean): Don't mention gdbserver.
15313
1d5d29e7
SV
153142020-02-06 Shahab Vahedi <shahab@synopsys.com>
15315
15316 * source-cache.c (source_cache::ensure): Surround
15317 get_plain_source_lines with a try/catch.
15318 (source_cache::get_line_charpos): Get rid of try/catch
15319 and only check for the return value of "ensure".
15320 * tui/tui-source.c (tui_source_window::set_contents):
15321 Simplify "nlines" calculation.
15322
6eb1129c
SV
153232020-02-06 Shahab Vahedi <shahab@synopsys.com>
15324
15325 * MAINTAINERS (Write After Approval): Add myself.
15326
c6a42d11
CB
153272020-02-05 Christian Biesinger <cbiesinger@google.com>
15328
15329 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
15330 function call.
15331
c8ecdda6
CB
153322020-02-05 Christian Biesinger <cbiesinger@google.com>
15333
15334 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
15335
f6480e70
MR
153362020-02-05 Maciej W. Rozycki <macro@wdc.com>
15337
15338 * nat/riscv-linux-tdesc.h: New file.
15339 * nat/riscv-linux-tdesc.c: New file, taking code from...
15340 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
15341 ... here.
15342 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
15343 NATDEPFILES.
15344
dcc9fbc6
AB
153452020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
15346
15347 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
15348 we don't set the fake simulator ptid to the null_ptid.
15349
719546c4
SM
153502020-02-03 Simon Marchi <simon.marchi@efficios.com>
15351
15352 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
15353 * gdbthread.h (class thread_info) <resumed>: Likewise.
15354 * infrun.c (resume_1): Likewise.
15355 (proceed): Likewise.
15356 (infrun_thread_stop_requested): Likewise.
15357 (stop_all_threads): Likewise.
15358 (handle_inferior_event): Likewise.
15359 (restart_threads): Likewise.
15360 (finish_step_over): Likewise.
15361 (keep_going_stepped_thread): Likewise.
15362 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
15363 (linux_handle_extended_wait): Likewise.
15364 * record-btrace.c (get_thread_current_frame_id): Likewise.
15365 * record-full.c (record_full_wait_1): Likewise.
15366 * remote.c (remote_target::process_initial_stop_replies): Likewise.
15367 * target.c (target_resume): Likewise.
15368 * thread.c (set_running_thread): Likewise.
15369
e409c542
AKS
153702020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15371
15372 * f-valprint.c (f77_print_array_1): Changed datatype of index
15373 variable to LONGEST from int to enable it to contain bound
15374 values correctly.
15375
ee98c0da
MR
153762020-02-03 Maciej W. Rozycki <macro@wdc.com>
15377
15378 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
15379 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
15380 offsets according to FLEN determined.
15381 (riscv_linux_nat_target::read_description): Determine FLEN
15382 dynamically.
15383 (riscv_linux_nat_target::fetch_registers): Size regset buffer
15384 according to FLEN determined.
15385 (riscv_linux_nat_target::store_registers): Likewise.
15386
aa66aac4
SV
153872020-02-01 Shahab Vahedi <shahab@synopsys.com>
15388
15389 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
15390 when reg->group is empty and reggroup is not.
15391
fd9faca8
TT
153922020-01-31 Tom Tromey <tromey@adacore.com>
15393
15394 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
15395 Call beneath target's mourn_inferior after unpushing.
15396
42330a68
AB
153972020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15398
15399 PR tui/9765
15400 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
15401 have enough lines to fill the screen, still return the lowest
15402 address we found.
15403
7a27a45b
AB
154042020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15405
15406 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
15407 '-', '<', and '>' commands.
15408
c47f70e2
PA
154092020-01-29 Pedro Alves <palves@redhat.com>
15410 Sergio Durigan Junior <sergiodj@redhat.com>
15411
15412 * infcmd.c (construct_inferior_arguments): Assert that
15413 'argc' is greater than 0.
15414
5133a315
LM
154152020-01-29 Luis Machado <luis.machado@linaro.org>
15416
15417 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
15418 (BRK_INSN_MASK): Define to 0xd4200000.
15419 (aarch64_program_breakpoint_here_p): New function.
15420 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
15421 * arch-utils.c (default_program_breakpoint_here_p): Moved from
15422 breakpoint.c.
15423 * arch-utils.h (default_program_breakpoint_here_p): Moved from
15424 breakpoint.h
15425 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
15426 call gdbarch_program_breakpoint_here_p.
15427 (program_breakpoint_here): Moved to arch-utils.c, renamed to
15428 default_program_breakpoint_here_p, changed return type to bool and
15429 simplified.
15430 * breakpoint.h (program_breakpoint_here): Moved prototype to
15431 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
15432 return type to bool.
15433 * gdbarch.c: Regenerate.
15434 * gdbarch.h: Regenerate.
15435 * gdbarch.sh (program_breakpoint_here_p): New method.
15436 * infrun.c (handle_signal_stop): Call
15437 gdbarch_program_breakpoint_here_p.
15438
168f8c6b
TT
154392020-01-26 Tom Tromey <tom@tromey.com>
15440
15441 * ctfread.c (struct ctf_fp_info): Reindent.
15442 (_initialize_ctfread): Remove.
15443
128a391f
TT
154442020-01-26 Tom Tromey <tom@tromey.com>
15445
15446 * psymtab.c (partial_map_expand_apply)
15447 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
15448 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
15449 (psym_print_stats, psym_expand_symtabs_for_function)
15450 (psym_map_symbol_filenames, psym_map_matching_symbols)
15451 (psym_expand_symtabs_matching)
15452 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
15453 (maintenance_check_psymtabs): Use new methods.
15454 * psympriv.h (struct partial_symtab) <readin_p,
15455 get_compunit_symtab>: New methods.
15456 <readin, compunit_symtab>: Remove members.
15457 (struct standard_psymtab): New.
15458 (struct legacy_psymtab): Derive from standard_psymtab.
15459 * dwarf2read.h (struct dwarf2_psymtab): Derive from
15460 standard_psymtab.
15461 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
15462
0494dbec
TT
154632020-01-26 Tom Tromey <tom@tromey.com>
15464
15465 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
15466 read_dependencies. Add assert.
15467 * psymtab.c (partial_symtab::read_dependencies): New method.
15468 * psympriv.h (struct partial_symtab) <read_dependencies>: New
15469 method.
15470 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
15471 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
15472 read_dependencies.
15473 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
15474 Add assert.
15475
8566b89b
TT
154762020-01-26 Tom Tromey <tom@tromey.com>
15477
15478 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
15479 Call expand_psymtab.
15480 (xcoff_read_symtab): Call expand_psymtab.
15481 (xcoff_start_psymtab, xcoff_end_psymtab): Set
15482 legacy_expand_psymtab.
15483 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
15484 method.
15485 (struct legacy_psymtab) <expand_psymtab>: Implement.
15486 <legacy_expand_psymtab>: New member.
15487 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
15488 (parse_partial_symbols): Set legacy_expand_psymtab.
15489 (psymtab_to_symtab_1): Change argument order. Call
15490 expand_psymtab.
15491 (new_psymtab): Set legacy_expand_psymtab.
15492 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
15493 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
15494 expand_psymtab.
15495 (dwarf2_psymtab::expand_psymtab): Rename from
15496 psymtab_to_symtab_1. Call expand_psymtab.
15497 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
15498 (dbx_end_psymtab): Likewise.
15499 (dbx_psymtab_to_symtab_1): Change argument order. Call
15500 expand_psymtab.
15501 (dbx_read_symtab): Call expand_psymtab.
15502 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
15503 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
15504 (ctf_psymtab::read_symtab): Call expand_psymtab.
15505
077cbab2
TT
155062020-01-26 Tom Tromey <tom@tromey.com>
15507
15508 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
15509 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
15510 messages.
15511 * mdebugread.c (mdebug_read_symtab): Remove prints.
15512 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
15513 assert.
15514 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
15515
891813be
TT
155162020-01-26 Tom Tromey <tom@tromey.com>
15517
15518 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
15519 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
15520 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
15521 legacy_symtab.
15522 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
15523 * psymtab.c (psymtab_to_symtab): Call method.
15524 (dump_psymtab): Update.
15525 * psympriv.h (struct partial_symtab): Add virtual destructor.
15526 <read_symtab>: New method.
15527 (struct legacy_symtab): New.
15528 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
15529 (struct pst_map) <pst>: Now a legacy_psymtab.
15530 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
15531 (new_psymtab): Use legacy_psymtab.
15532 * dwarf2read.h (struct dwarf2_psymtab): New.
15533 (struct dwarf2_per_cu_data) <psymtab>: Use it.
15534 * dwarf2read.c (dwarf2_create_include_psymtab)
15535 (dwarf2_build_include_psymtabs, create_type_unit_group)
15536 (create_partial_symtab, process_psymtab_comp_unit_reader)
15537 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
15538 (set_partial_user): Use dwarf2_psymtab.
15539 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
15540 (psymtab_to_symtab_1, process_full_comp_unit)
15541 (process_full_type_unit, dwarf2_ranges_read)
15542 (dwarf2_get_pc_bounds, psymtab_include_file_name)
15543 (dwarf_decode_lines): Use dwarf2_psymtab.
15544 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
15545 (add_address_entry_worker, write_one_signatured_type)
15546 (recursively_count_psymbols, recursively_write_psymbols)
15547 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
15548 (write_debug_names): Likewise.
15549 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
15550 <pst>: Now a legacy_psymtab.
15551 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
15552 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
15553 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
15554 * ctfread.c (struct ctf_psymtab): New.
15555 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
15556 ctf_psymtab.
15557 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
15558 (create_partial_symtab): Return a ctf_psymtab.
15559 (scan_partial_symbols): Update.
15560
c3693a1d
TT
155612020-01-26 Tom Tromey <tom@tromey.com>
15562
15563 * xcoffread.c (xcoff_start_psymtab): Use new.
15564 * psymtab.c (partial_symtab::partial_symtab): New constructor,
15565 renamed from start_psymtab_common.
15566 * psympriv.h (struct partial_symtab): Add new constructor.
15567 (start_psymtab_common): Don't declare.
15568 * mdebugread.c (parse_partial_symbols): Use new.
15569 * dwarf2read.c (create_partial_symtab): Use new.
15570 * dbxread.c (start_psymtab): Use new.
15571 * ctfread.c (create_partial_symtab): Use new.
15572
32caafd0
TT
155732020-01-26 Tom Tromey <tom@tromey.com>
15574
15575 * xcoffread.c (xcoff_end_psymtab): Use new.
15576 * psymtab.c (start_psymtab_common): Use new.
15577 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
15578 Update.
15579 * psympriv.h (struct partial_symtab): Add parameters to
15580 constructor. Don't inline.
15581 (allocate_psymtab): Don't declare.
15582 * mdebugread.c (new_psymtab): Use new.
15583 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
15584 * dbxread.c (dbx_end_psymtab): Use new.
15585
abaa2f23
TT
155862020-01-26 Tom Tromey <tom@tromey.com>
15587
15588 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
15589 allocate_psymtab. Update documentation.
15590 * psymtab.c (psymtab_storage::install_psymtab): Rename from
15591 allocate_psymtab. Do not use new.
15592 (allocate_psymtab): Use new. Update.
15593
6d94535f
TT
155942020-01-26 Tom Tromey <tom@tromey.com>
15595
15596 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
15597 * psymtab.c (psym_print_stats): Update.
15598 * psympriv.h (struct partial_symtab) <readin,
15599 psymtabs_addrmap_supported, anonymous>: Now bool.
15600 * mdebugread.c (psymtab_to_symtab_1): Update.
15601 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
15602 (build_type_psymtabs_reader, psymtab_to_symtab_1)
15603 (process_full_comp_unit, process_full_type_unit): Update.
15604 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
15605 * ctfread.c (psymtab_to_symtab): Update.
15606
6f17252b
TT
156072020-01-26 Tom Tromey <tom@tromey.com>
15608
15609 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
15610 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
15611 * psymtab.c (psymtab_storage): Delete psymtabs.
15612 (psymtab_storage::allocate_psymtab): Use new.
15613 (psymtab_storage::discard_psymtab): Use delete.
15614 * psympriv.h (struct partial_symtab): Add constructor and
15615 initializers.
15616
f6f1cebc
TT
156172020-01-26 Tom Tromey <tom@tromey.com>
15618
15619 * machoread.c: Do not include psympriv.h.
15620
e47e48f6
PW
156212020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15622
15623 * NEWS: Mention the new option and the set/show commands.
15624
a2fedca9
PW
156252020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15626
15627 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
15628 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
15629 (validate_exec_file): New variables, enums, functions.
15630 (exec_file_locate_attach, print_section_info): Style the filenames.
15631 (_initialize_exec): Install show_exec_file_mismatch_command and
15632 set_exec_file_mismatch_command.
15633 * gdbcore.h (validate_exec_file): Declare.
15634 * infcmd.c (attach_command): Call validate_exec_file.
15635 * remote.c ( remote_target::remote_add_inferior): Likewise.
15636
7ffa82e1
AB
156372020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15638
15639 * frame.c (find_frame_sal): Move call to get_next_frame into more
15640 inner scope.
15641 * inline-frame.c (inilne_state) <inline_state>: Update argument
15642 types.
15643 (inilne_state) <skipped_symbol>: Rename to...
15644 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
15645 (skip_inline_frames): Build vector of skipped symbols and use this
15646 to reate the inline_state.
15647 (inline_skipped_symbol): Add a comment and some assertions, fetch
15648 skipped symbol from the list.
15649
3d92a3e3
AB
156502020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15651
15652 * buildsym.c (lte_is_less_than): Delete.
15653 (buildsym_compunit::end_symtab_with_blockvector): Create local
15654 lambda function to sort line table entries, and use
15655 std::stable_sort instead of std::sort.
15656 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
15657 markers when looking for a previous line.
15658
94a72be7
AB
156592020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15660
15661 * dwarf2read.c (lnp_state_machine::record_line): Include
15662 end_sequence parameter in debug print out. Record the line if we
15663 are at an end_sequence marker even if it's not the start of a
15664 statement.
15665 * symmisc.c (maintenance_print_one_line_table): Print end of
15666 sequence markers with 'END' not '0'.
15667
53af73bf
PA
156682020-01-24 Pedro Alves <palves@redhat.com>
15669
15670 PR gdb/25410
15671 * thread.c (scoped_restore_current_thread::restore): Use
15672 switch_to_inferior_no_thread.
15673 * exec.c: Include "progspace-and-thread.h".
15674 (add_target_sections, remove_target_sections):
15675 scoped_restore_current_pspace_and_thread instead of
15676 scoped_restore_current_thread.
15677 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
15678 and aspace to the inferior before calling clone_program_space.
15679 Remove stale comment.
15680
3050c6f4
CB
156812020-01-24 Christian Biesinger <cbiesinger@google.com>
15682
15683 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
15684 (arm_netbsd_nat_target::fetch_registers): ...this.
15685 (arm_nbsd_nat_target::store_registers): Rename to...
15686 (arm_netbsd_nat_target::store_registers): ...this.
15687
73685c7e
CB
156882020-01-24 Christian Biesinger <cbiesinger@google.com>
15689
15690 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
15691 register_t.
15692
89203d40
CB
156932020-01-24 Christian Biesinger <cbiesinger@google.com>
15694
15695 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
15696 Update comment.
15697 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
15698 Likewise.
15699 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
15700 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
15701 the correct replacement (iterate_over_regset_sections).
15702 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
15703 Update comment.
15704
1ba1ac88
AB
157052020-01-24 Graham Markall <graham.markall@embecosm.com>
15706
15707 PR gdb/23718
15708 * gdb/python/python.c (execute_gdb_command): Call
15709 async_enable_stdin in catch block.
15710
f3364a6d
AB
157112020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15712
15713 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
15714 SWITCH_THRU_ALL_UIS.
15715
733d0a67
AB
157162020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15717
15718 PR tui/9765
15719 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
15720 comment, add extra parameter, and update to store previous symbol
15721 when appropriate.
15722 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
15723 add extra parameter.
15724 * tui/tui-disasm.c (tui_disassemble): Update header comment,
15725 remove unneeded parameter, add try/catch around gdb_print_insn,
15726 rewrite to add items to asm_lines vector.
15727 (tui_find_backward_disassembly_start_address): New function.
15728 (tui_find_disassembly_address): Updated throughout.
15729 (tui_disasm_window::set_contents): Update for changes to
15730 tui_disassemble.
15731 (tui_disasm_window::do_scroll_vertical): No need to adjust the
15732 number of lines to scroll.
15733
b3b3bada
SM
157342020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
15735
15736 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
15737 (SECT_OFF_DATA): Likewise.
15738 (SECT_OFF_RODATA): Likewise.
15739 (SECT_OFF_TEXT): Likewise.
15740 (SECT_OFF_BSS): Likewise.
15741 (struct objfile) <text_section_offset, data_section_offset>: New
15742 methods.
15743 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
15744 objfile::text_section_offset.
15745 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
15746 * coffread.c (coff_symtab_read): Likewise.
15747 (enter_linenos): Likewise.
15748 (process_coff_symbol): Likewise.
15749 * ctfread.c (get_objfile_text_range): Likewise.
15750 * dtrace-probe.c (dtrace_probe::get_relocated_address):
15751 Use objfile::data_section_offset.
15752 * dwarf2-frame.c (execute_cfa_program): Use
15753 objfile::text_section_offset.
15754 (dwarf2_frame_find_fde): Likewise.
15755 * dwarf2read.c (create_addrmap_from_index): Likewise.
15756 (create_addrmap_from_aranges): Likewise.
15757 (dw2_find_pc_sect_compunit_symtab): Likewise.
15758 (process_psymtab_comp_unit_reader): Likewise.
15759 (add_partial_symbol): Likewise.
15760 (add_partial_subprogram): Likewise.
15761 (process_full_comp_unit): Likewise.
15762 (read_file_scope): Likewise.
15763 (read_func_scope): Likewise.
15764 (read_lexical_block_scope): Likewise.
15765 (read_call_site_scope): Likewise.
15766 (dwarf2_rnglists_process): Likewise.
15767 (dwarf2_ranges_process): Likewise.
15768 (dwarf2_ranges_read): Likewise.
15769 (dwarf_decode_lines_1): Likewise.
15770 (new_symbol): Likewise.
15771 (dwarf2_fetch_die_loc_sect_off): Likewise.
15772 (dwarf2_per_cu_text_offset): Likewise.
15773 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
15774 * hppa-tdep.c (read_unwind_info): Likewise.
15775 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
15776 * psympriv.h (struct partial_symtab): Likewise.
15777 * psymtab.c (find_pc_sect_psymtab): Likewise.
15778 * solib-svr4.c (enable_break): Likewise.
15779 * stap-probe.c (relocate_address): Use
15780 objfile::data_section_offset.
15781 * xcoffread.c (enter_line_range): Use
15782 objfile::text_section_offset.
15783 (read_xcoff_symtab): Likewise.
15784
ab53f382
SM
157852020-01-23 Simon Marchi <simon.marchi@efficios.com>
15786
15787 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
15788 declaration to narrower scopes.
15789
e7eee665
SM
157902020-01-23 Simon Marchi <simon.marchi@efficios.com>
15791
15792 * darwin-nat.h (struct darwin_exception_msg, enum
15793 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
15794 Move up.
15795 (class darwin_nat_target) <wait_1, check_new_threads,
15796 decode_exception_message, decode_message, stop_inferior,
15797 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
15798 * darwin-nat.c (darwin_check_new_threads): Rename to...
15799 (darwin_nat_target::check_new_threads): ... this.
15800 (darwin_suspend_inferior_it): Remove.
15801 (darwin_decode_exception_message): Rename to...
15802 (darwin_nat_target::decode_exception_message): ... this.
15803 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
15804 (darwin_decode_message): Rename to...
15805 (darwin_nat_target::decode_message): ... this.
15806 (cancel_breakpoint): Rename to...
15807 (darwin_nat_target::cancel_breakpoint): ... this.
15808 (darwin_wait): Rename to...
15809 (darwin_nat_target::wait_1): ... this. Use range-based for loop
15810 instead of iterate_over_inferiors.
15811 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
15812 (darwin_stop_inferior): Rename to...
15813 (darwin_nat_target::stop_inferior): ... this.
15814 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
15815 (darwin_init_thread_list): Rename to...
15816 (darwin_nat_target::init_thread_list): ... this.
15817 (darwin_ptrace_him): Rename to...
15818 (darwin_nat_target::ptrace_him): ... this.
15819 (darwin_nat_target::create_inferior): Pass lambda function to
15820 fork_inferior.
15821 (darwin_nat_target::detach): Call stop_inferior instead of
15822 darwin_stop_inferior.
15823 * fork-inferior.h (fork_inferior): Change init_trace_fun
15824 parameter to gdb::function_view.
15825 * fork-inferior.c (fork_inferior): Likewise.
15826
c162ed3e
HD
158272020-01-23 Hannes Domani <ssbssa@yahoo.de>
15828
15829 * i386-cygwin-tdep.c (core_process_module_section): Update.
15830 * windows-nat.c (struct lm_info_windows): Add text_offset.
15831 (windows_xfer_shared_libraries): Update.
15832 * windows-tdep.c (windows_xfer_shared_library):
15833 Add text_offset_cached argument.
15834 * windows-tdep.h (windows_xfer_shared_library): Update.
15835
a1237872
SM
158362020-01-21 Simon Marchi <simon.marchi@efficios.com>
15837
15838 * gdbarch.sh: Add declaration for _initialize_gdbarch.
15839
b3ee6dd9
SM
158402020-01-21 Simon Marchi <simon.marchi@efficios.com>
15841
15842 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
15843 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
15844 replace with range-based for.
15845 (gdbsim_interrupt_inferior): Remove.
15846 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
15847 with a range-based for. Inline code from
15848 gdbsim_interrupt_inferior.
15849
f9fac3c8
SM
158502020-01-21 Simon Marchi <simon.marchi@efficios.com>
15851
15852 * infrun.c (proceed): Fix indentation.
15853
f6474de9
TT
158542020-01-21 Tom Tromey <tromey@adacore.com>
15855
15856 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
15857 * python/python.c (python_extension_ops): Update.
15858 (gdbpy_colorize): New function.
15859 * python/lib/gdb/__init__.py (colorize): New function.
15860 * extension.h (ext_lang_colorize): Declare.
15861 * extension.c (ext_lang_colorize): New function.
15862 * extension-priv.h (struct extension_language_ops) <colorize>: New
15863 member.
15864 * cli/cli-style.c (_initialize_cli_style): Update help text.
15865
f0c702d4
LM
158662020-01-21 Luis Machado <luis.machado@linaro.org>
15867
15868 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
15869 <cond>: Change type to bool.
15870 (aarch64_displaced_step_b_cond): Update cond to use bool type.
15871 (aarch64_displaced_step_cb): Likewise.
15872 (aarch64_displaced_step_tb): Likewise.
15873
1ab139e5
LM
158742020-01-21 Luis Machado <luis.machado@linaro.org>
15875
15876 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
15877 output.
15878
0c271889
LM
158792020-01-21 Luis Machado <luis.machado@linaro.org>
15880
15881 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
15882 <pc_adjust>: Adjust the documentation.
15883 (aarch64_displaced_step_fixup): Check if PC really moved before
15884 adjusting it.
15885
4d89c1c7
TT
158862020-01-19 Tom Tromey <tom@tromey.com>
15887
15888 * disasm.c (~gdb_disassembler): New destructor.
15889 (gdb_buffered_insn_length): Call disassemble_free_target.
15890 * disasm.h (class gdb_disassembler): Declare destructor. Use
15891 DISABLE_COPY_AND_ASSIGN.
15892
c0ab21c2
TT
158932020-01-19 Tom Tromey <tom@tromey.com>
15894
15895 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
15896 (die_reader_func_ftype): Remove.
15897 (cutu_reader): New class.
15898 (dw2_get_file_names_reader): Remove "data" parameter.
15899 (dw2_get_file_names): Use cutu_reader.
15900 (create_debug_type_hash_table): Update.
15901 (read_cutu_die_from_dwo): Update comment.
15902 (lookup_dwo_unit): Add dwo_name parameter.
15903 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
15904 die_reader_func_ftype and data parameters.
15905 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
15906 Remove die_reader_func_ftype and data parameters.
15907 (~cutu_reader): New; from init_cutu_and_read_dies.
15908 (cutu_reader::cutu_reader): Rename from
15909 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
15910 and data parameters.
15911 (init_cutu_and_read_dies_simple): Remove.
15912 (struct process_psymtab_comp_unit_data): Remove.
15913 (process_psymtab_comp_unit_reader): Remove data parameter; add
15914 want_partial_unit and pretend_language parameters.
15915 (process_psymtab_comp_unit): Use cutu_reader.
15916 (build_type_psymtabs_reader): Remove data parameter.
15917 (build_type_psymtabs_1): Use cutu_reader.
15918 (process_skeletonless_type_unit): Likewise.
15919 (load_partial_comp_unit_reader): Remove.
15920 (load_partial_comp_unit): Use cutu_reader.
15921 (load_full_comp_unit_reader): Remove.
15922 (load_full_comp_unit): Use cutu_reader.
15923 (struct create_dwo_cu_data): Remove.
15924 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
15925 dwo_unit parameters.
15926 (create_cus_hash_table): Use cutu_reader.
15927 (struct dwarf2_read_addr_index_data): Remove.
15928 (dwarf2_read_addr_index_reader): Remove.
15929 (dwarf2_read_addr_index): Use cutu_reader.
15930 (read_signatured_type_reader): Remove.
15931 (read_signatured_type): Use cutu_reader.
15932
45bbae5c
TT
159332020-01-19 Tom Tromey <tom@tromey.com>
15934
15935 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
15936 * tui/tui-wingeneral.h (class tui_suppress_output): New.
15937 (tui_wrefresh): Declare.
15938 * tui/tui-wingeneral.c (suppress_output): New global.
15939 (tui_suppress_output, ~tui_suppress_output): New constructor and
15940 destructor.
15941 (tui_wrefresh): New function.
15942 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
15943 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
15944 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
15945 method.
15946 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
15947 tui_wrefresh.
15948 (tui_data_window::no_refresh): New method.
15949 (tui_data_item_window::refresh_window): Call tui_wrefresh.
15950 (tui_reg_command): Use tui_suppress_output
15951 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
15952 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
15953 method.
15954 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
15955
4f13c1c0
TT
159562020-01-19 Tom Tromey <tom@tromey.com>
15957
15958 * tui/tui-winsource.c (tui_update_source_windows_with_line):
15959 Handle case where symtab is null.
15960
fa47e446
SM
159612020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
15962
15963 * linux-fork.c (one_fork_p): Simplify.
15964
26f42329
SM
159652020-01-17 Simon Marchi <simon.marchi@efficios.com>
15966
15967 * top.c (struct qt_args): Remove.
15968 (kill_or_detach): Change return type to void, replace `void *`
15969 parameter with a proper one.
15970 (print_inferior_quit_action): Likewise.
15971 (quit_confirm): Use range-based for loop to iterate over inferiors.
15972 (quit_force): Likewise.
15973
a9ac81b1
SM
159742020-01-17 Simon Marchi <simon.marchi@efficios.com>
15975
15976 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
15977 `void *` parameter with proper parameters.
15978 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
15979 (print_one_inferior): Change return type to void, replace `void *`
15980 parameter with proper parameters.
15981 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
15982 inferiors.
15983 (get_other_inferior): Remove.
15984 (mi_cmd_remove_inferior): Use range-based loop to iterate over
15985 inferiors.
15986
788eca49
SM
159872020-01-17 Simon Marchi <simon.marchi@efficios.com>
15988
15989 * mi/mi-interp.c (report_initial_inferior): Remove.
15990 (mi_interp::init): Use range-based for to iterate over inferiors.
15991
d9bc85b6
SM
159922020-01-17 Simon Marchi <simon.marchi@efficios.com>
15993
15994 * python/py-inferior.c (build_inferior_list): Remove.
15995 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
15996
40c94099
CB
159972020-01-16 Christian Biesinger <cbiesinger@google.com>
15998
15999 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
16000 (btrace_stitch_trace): Likewise.
16001 * charset.c (intermediate_encoding): Likewise (vaild).
16002 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
16003 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
16004 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
16005
e0cdfe3c
HD
160062020-01-16 Hannes Domani <ssbssa@yahoo.de>
16007
16008 * windows-tdep.c (windows_get_tlb_type):
16009 Add rtl_user_process_parameters type.
16010
790f1718 160112020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 16012 Norbert Lange <nolange79@gmail.com>
790f1718
PA
16013
16014 PR build/24805
16015 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
16016 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
16017 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
16018 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
16019 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
16020 (ps_plog): Redeclare exported functions with default visibility.
16021
3112ed97
NA
160222020-01-16 Nitika Achra <Nitika.Achra@amd.com>
16023
16024 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
16025 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
16026
8dc3273e
SM
160272020-01-15 Simon Marchi <simon.marchi@efficios.com>
16028
16029 * infcmd.c (post_create_inferior): Use get_thread_regcache
16030 instead of get_current_regcache.
16031
ff47f4f0
TT
160322020-01-14 Tom Tromey <tom@tromey.com>
16033
16034 PR symtab/12535:
16035 * python/python.c (gdbpy_decode_line): Treat empty string the same
16036 as no argument.
16037
975f45b7
TT
160382020-01-14 Tom Tromey <tom@tromey.com>
16039
16040 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
16041
25e57356
TT
160422020-01-14 Tom Tromey <tom@tromey.com>
16043
16044 * nat/linux-btrace.c: Don't include <config.h>.
16045 * nat/linux-ptrace.c: Don't include <config.h>.
16046 * nat/x86-linux-dregs.c: Don't include <config.h>.
16047
05ea2a05
TT
160482020-01-14 Tom Tromey <tom@tromey.com>
16049
16050 * configure: Rebuild.
16051 * configure.ac: Move many checks to ../gdbsupport/common.m4.
16052
01027315
TT
160532020-01-14 Tom Tromey <tom@tromey.com>
16054
16055 * nat/x86-linux-dregs.c: Include configh.h.
16056 * nat/linux-ptrace.c: Include configh.h.
16057 * nat/linux-btrace.c: Include configh.h.
16058 * defs.h: Include config.h, bfd.h.
16059 * configure.ac: Don't source common.host.
16060 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
16061 * configure: Rebuild.
16062 * acinclude.m4: Update path.
16063 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
16064 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
16065 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
16066 (CLIBS): Add LIBSUPPORT.
16067 (CDEPS): Likewise.
16068 (COMMON_SFILES): Remove gdbsupport files.
16069 (HFILES_NO_SRCDIR): Likewise.
16070 (stamp-version): Update path to create-version.sh.
16071 (ALLDEPFILES): Remove gdbsupport files.
16072
b2ceabe8
TT
160732020-01-14 Tom Tromey <tom@tromey.com>
16074
16075 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
16076 USE_WIN32API when needed.
16077 * configure.ac (USE_WIN32API): Don't define.
16078 (WIN32LIBS): Use WIN32APILIBS.
16079 * configure: Rebuild.
16080
25c51f71
TT
160812020-01-14 Tom Tromey <tom@tromey.com>
16082
16083 * configure: Rebuild.
16084 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
16085
717c684d
BE
160862020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
16087
16088 * skip.c (skip_function_command): Make skip w/o arguments use the
16089 name of the inlined function if pc is inside any inlined function.
16090
7da6a5b9
LM
160912020-01-14 Luis Machado <luis.machado@linaro.org>
16092
16093 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
16094 * infrun.c (resume_1): Likewise.
16095 (handle_inferior_event): Remove stale comment.
16096 * linux-nat.c (linux_nat_target::resume): Update comments.
16097 (save_stop_reason): Likewise.
16098 (linux_nat_filter_event): Likewise.
16099 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
16100
44e4c775
AB
161012020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16102
16103 * elfread.c (record_minimal_symbol): Set section index to 0 for
16104 non-allocatable sections.
16105
18a8505e
AT
16106
161072020-01-13 Ali Tamur <tamur@google.com>
16108
16109 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
16110 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
16111 to gdb::optional. Update comments.
16112 (dwo_file): Update comments.
16113 (read_attribute): Update API to take an additional out parameter,
16114 need_reprocess. This is used to mark attributes that need other
16115 attributes (e.g. str_offsets_base) for correct computation which may not
16116 have been read yet.
16117 (read_attribute_reprocess): New function declaration.
16118 (read_addr_index): Likewise.
16119 (read_dwo_str_index): Likewise.
16120 (read_stub_str_index): Likewise.
16121 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
16122 (lookup_addr_base): New function definition.
16123 (lookup_ranges_base): Likewise.
16124 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
16125 lookup_ranges_base.
16126 (init_cutu_and_read_dies): Update comments.
16127 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
16128 unit. This is used to inherit parent's str_offsets_base and addr_base.
16129 Update comments.
16130 (init_cutu_and_read_dies_simple): Reflect API changes.
16131 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
16132 (create_cus_hash_table): Change API to take parent compile unit.
16133 Reflect API changes.
16134 (open_and_init_dwo_file): Reflect API changes.
16135 (dwarf2_get_pc_bounds): Update comments.
16136 (dwarf2_record_block_ranges): Likewise.
16137 (read_full_die_1): Change implementation to reprocess attributes that
16138 need str_offsets_base and addr_base.
16139 (partial_die_info::read): Likewise.
16140 (read_attribute_reprocess): New function definition.
16141 (read_attribute_value): Change API to take an additional out parameter,
16142 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
16143 when a non-dwo compile unit has index based attributes.
16144 (read_attribute): Reflect API changes.
16145 (read_addr_index_1): Reflect API changes. Update comments.
16146 (dwarf2_read_addr_index_data): Reflect API changes.
16147 (dwarf2_read_addr_index): Likewise.
16148 (read_str_index): Change API and implementation. This becomes a helper
16149 to be used by the new string index related methods. Update error
16150 message and comments.
16151 (read_dwo_str_index): New function definition.
16152 (read_stub_str_index): Likewise.
16153 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
16154 * symfile.h (dwarf2_debug_sections): Likewise.
16155 * xcoffread.c (dwarf2_debug_sections): Likewise.
16156
0cac9354
SM
161572020-01-13 Simon Marchi <simon.marchi@efficios.com>
16158
16159 * gdbcore.h (struct core_fns) <core_read_registers>: Change
16160 core_reg_sect type to gdb_byte *.
16161 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
16162 * cris-tdep.c (fetch_core_registers): Likewise.
16163 * corelow.c (core_target::get_core_register_section): Change
16164 type of `contents` to gdb::byte_vector.
16165
9a6d629c
AB
161662020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16167
16168 * tui/tui-wingeneral.c (box_win): Position the title in the center
16169 of the border.
16170
d8b2f9e3
SM
161712020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16172
16173 * corelow.c (core_target::get_core_register_section): Use
16174 std::vector instead of alloca.
16175
bb564c58
SM
161762020-01-13 Simon Marchi <simon.marchi@efficios.com>
16177
16178 * warning.m4: Add -Wmissing-declarations to build_warnings.
16179 * configure: Re-generate.
16180
6b366111
SM
161812020-01-13 Simon Marchi <simon.marchi@efficios.com>
16182
16183 * python/python.c (init__gdb_module): Add declaration.
16184
6c265988
SM
161852020-01-13 Simon Marchi <simon.marchi@efficios.com>
16186
16187 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
16188 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
16189 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
16190 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
16191 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
16192 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
16193 * ada-exp.y (_initialize_ada_exp): Add declaration.
16194 * ada-lang.c (_initialize_ada_language): Add declaration.
16195 * ada-tasks.c (_initialize_tasks): Add declaration.
16196 * agent.c (_initialize_agent): Add declaration.
16197 * aix-thread.c (_initialize_aix_thread): Add declaration.
16198 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
16199 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
16200 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
16201 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
16202 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
16203 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
16204 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
16205 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
16206 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
16207 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
16208 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
16209 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
16210 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
16211 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
16212 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
16213 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
16214 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
16215 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
16216 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
16217 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
16218 * annotate.c (_initialize_annotate): Add declaration.
16219 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
16220 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
16221 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
16222 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
16223 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
16224 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
16225 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
16226 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
16227 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
16228 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
16229 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
16230 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
16231 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
16232 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
16233 * auto-load.c (_initialize_auto_load): Add declaration.
16234 * auxv.c (_initialize_auxv): Add declaration.
16235 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
16236 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
16237 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
16238 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
16239 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
16240 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
16241 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
16242 * breakpoint.c (_initialize_breakpoint): Add declaration.
16243 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
16244 * btrace.c (_initialize_btrace): Add declaration.
16245 * charset.c (_initialize_charset): Add declaration.
16246 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
16247 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
16248 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
16249 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
16250 * cli/cli-script.c (_initialize_cli_script): Add declaration.
16251 * cli/cli-style.c (_initialize_cli_style): Add declaration.
16252 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
16253 * coffread.c (_initialize_coffread): Add declaration.
16254 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
16255 * compile/compile.c (_initialize_compile): Add declaration.
16256 * complaints.c (_initialize_complaints): Add declaration.
16257 * completer.c (_initialize_completer): Add declaration.
16258 * copying.c (_initialize_copying): Add declaration.
16259 * corefile.c (_initialize_core): Add declaration.
16260 * corelow.c (_initialize_corelow): Add declaration.
16261 * cp-abi.c (_initialize_cp_abi): Add declaration.
16262 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
16263 * cp-support.c (_initialize_cp_support): Add declaration.
16264 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
16265 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
16266 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
16267 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
16268 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
16269 * ctfread.c (_initialize_ctfread): Add declaration.
16270 * d-lang.c (_initialize_d_language): Add declaration.
16271 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
16272 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
16273 * dbxread.c (_initialize_dbxread): Add declaration.
16274 * dcache.c (_initialize_dcache): Add declaration.
16275 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
16276 * disasm.c (_initialize_disasm): Add declaration.
16277 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
16278 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
16279 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
16280 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
16281 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
16282 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
16283 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
16284 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
16285 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
16286 * elfread.c (_initialize_elfread): Add declaration.
16287 * exec.c (_initialize_exec): Add declaration.
16288 * extension.c (_initialize_extension): Add declaration.
16289 * f-lang.c (_initialize_f_language): Add declaration.
16290 * f-valprint.c (_initialize_f_valprint): Add declaration.
16291 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
16292 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
16293 * filesystem.c (_initialize_filesystem): Add declaration.
16294 * findcmd.c (_initialize_mem_search): Add declaration.
16295 * findvar.c (_initialize_findvar): Add declaration.
16296 * fork-child.c (_initialize_fork_child): Add declaration.
16297 * frame-base.c (_initialize_frame_base): Add declaration.
16298 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
16299 * frame.c (_initialize_frame): Add declaration.
16300 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
16301 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
16302 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
16303 * gcore.c (_initialize_gcore): Add declaration.
16304 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
16305 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
16306 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
16307 * gdbarch.c (_initialize_gdbarch): Add declaration.
16308 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
16309 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
16310 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
16311 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
16312 * go-lang.c (_initialize_go_language): Add declaration.
16313 * go32-nat.c (_initialize_go32_nat): Add declaration.
16314 * guile/guile.c (_initialize_guile): Add declaration.
16315 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
16316 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
16317 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
16318 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
16319 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
16320 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
16321 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
16322 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
16323 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
16324 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
16325 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
16326 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
16327 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
16328 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
16329 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
16330 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
16331 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
16332 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
16333 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
16334 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
16335 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
16336 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
16337 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
16338 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
16339 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
16340 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
16341 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
16342 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
16343 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
16344 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
16345 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
16346 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
16347 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
16348 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
16349 * infcall.c (_initialize_infcall): Add declaration.
16350 * infcmd.c (_initialize_infcmd): Add declaration.
16351 * inflow.c (_initialize_inflow): Add declaration.
16352 * infrun.c (_initialize_infrun): Add declaration.
16353 * interps.c (_initialize_interpreter): Add declaration.
16354 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
16355 * jit.c (_initialize_jit): Add declaration.
16356 * language.c (_initialize_language): Add declaration.
16357 * linux-fork.c (_initialize_linux_fork): Add declaration.
16358 * linux-nat.c (_initialize_linux_nat): Add declaration.
16359 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
16360 * linux-thread-db.c (_initialize_thread_db): Add declaration.
16361 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
16362 * m2-lang.c (_initialize_m2_language): Add declaration.
16363 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
16364 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
16365 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
16366 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
16367 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
16368 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
16369 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
16370 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
16371 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
16372 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
16373 * machoread.c (_initialize_machoread): Add declaration.
16374 * macrocmd.c (_initialize_macrocmd): Add declaration.
16375 * macroscope.c (_initialize_macroscope): Add declaration.
16376 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
16377 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
16378 * maint.c (_initialize_maint_cmds): Add declaration.
16379 * mdebugread.c (_initialize_mdebugread): Add declaration.
16380 * memattr.c (_initialize_mem): Add declaration.
16381 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
16382 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
16383 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
16384 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
16385 * mi/mi-main.c (_initialize_mi_main): Add declaration.
16386 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
16387 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
16388 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
16389 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
16390 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
16391 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
16392 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
16393 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
16394 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
16395 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
16396 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
16397 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
16398 * mipsread.c (_initialize_mipsread): Add declaration.
16399 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
16400 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
16401 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
16402 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
16403 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
16404 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
16405 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
16406 * nto-procfs.c (_initialize_procfs): Add declaration.
16407 * objc-lang.c (_initialize_objc_language): Add declaration.
16408 * observable.c (_initialize_observer): Add declaration.
16409 * opencl-lang.c (_initialize_opencl_language): Add declaration.
16410 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
16411 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
16412 * osabi.c (_initialize_gdb_osabi): Add declaration.
16413 * osdata.c (_initialize_osdata): Add declaration.
16414 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
16415 * parse.c (_initialize_parse): Add declaration.
16416 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
16417 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
16418 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
16419 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
16420 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
16421 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
16422 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
16423 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
16424 * printcmd.c (_initialize_printcmd): Add declaration.
16425 * probe.c (_initialize_probe): Add declaration.
16426 * proc-api.c (_initialize_proc_api): Add declaration.
16427 * proc-events.c (_initialize_proc_events): Add declaration.
16428 * proc-service.c (_initialize_proc_service): Add declaration.
16429 * procfs.c (_initialize_procfs): Add declaration.
16430 * producer.c (_initialize_producer): Add declaration.
16431 * psymtab.c (_initialize_psymtab): Add declaration.
16432 * python/python.c (_initialize_python): Add declaration.
16433 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
16434 * record-btrace.c (_initialize_record_btrace): Add declaration.
16435 * record-full.c (_initialize_record_full): Add declaration.
16436 * record.c (_initialize_record): Add declaration.
16437 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
16438 * regcache.c (_initialize_regcache): Add declaration.
16439 * reggroups.c (_initialize_reggroup): Add declaration.
16440 * remote-notif.c (_initialize_notif): Add declaration.
16441 * remote-sim.c (_initialize_remote_sim): Add declaration.
16442 * remote.c (_initialize_remote): Add declaration.
16443 * reverse.c (_initialize_reverse): Add declaration.
16444 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
16445 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
16446 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
16447 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
16448 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
16449 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
16450 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
16451 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
16452 Add declaration.
16453 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
16454 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
16455 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
16456 * rust-exp.y (_initialize_rust_exp): Add declaration.
16457 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
16458 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
16459 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
16460 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
16461 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
16462 * score-tdep.c (_initialize_score_tdep): Add declaration.
16463 * ser-go32.c (_initialize_ser_dos): Add declaration.
16464 * ser-mingw.c (_initialize_ser_windows): Add declaration.
16465 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
16466 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
16467 * ser-uds.c (_initialize_ser_socket): Add declaration.
16468 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
16469 * serial.c (_initialize_serial): Add declaration.
16470 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
16471 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
16472 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
16473 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
16474 * skip.c (_initialize_step_skip): Add declaration.
16475 * sol-thread.c (_initialize_sol_thread): Add declaration.
16476 * solib-aix.c (_initialize_solib_aix): Add declaration.
16477 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
16478 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
16479 * solib-frv.c (_initialize_frv_solib): Add declaration.
16480 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
16481 * solib-target.c (_initialize_solib_target): Add declaration.
16482 * solib.c (_initialize_solib): Add declaration.
16483 * source-cache.c (_initialize_source_cache): Add declaration.
16484 * source.c (_initialize_source): Add declaration.
16485 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
16486 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
16487 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
16488 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
16489 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
16490 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
16491 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
16492 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
16493 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
16494 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
16495 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
16496 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
16497 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
16498 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
16499 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
16500 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
16501 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
16502 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
16503 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
16504 * stabsread.c (_initialize_stabsread): Add declaration.
16505 * stack.c (_initialize_stack): Add declaration.
16506 * stap-probe.c (_initialize_stap_probe): Add declaration.
16507 * std-regs.c (_initialize_frame_reg): Add declaration.
16508 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
16509 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
16510 * symfile.c (_initialize_symfile): Add declaration.
16511 * symmisc.c (_initialize_symmisc): Add declaration.
16512 * symtab.c (_initialize_symtab): Add declaration.
16513 * target.c (_initialize_target): Add declaration.
16514 * target-connection.c (_initialize_target_connection): Add
16515 declaration.
16516 * target-dcache.c (_initialize_target_dcache): Add declaration.
16517 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
16518 * thread.c (_initialize_thread): Add declaration.
16519 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
16520 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
16521 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
16522 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
16523 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
16524 * tracectf.c (_initialize_ctf): Add declaration.
16525 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
16526 * tracefile.c (_initialize_tracefile): Add declaration.
16527 * tracepoint.c (_initialize_tracepoint): Add declaration.
16528 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
16529 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
16530 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
16531 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
16532 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
16533 * tui/tui-win.c (_initialize_tui_win): Add declaration.
16534 * tui/tui.c (_initialize_tui): Add declaration.
16535 * typeprint.c (_initialize_typeprint): Add declaration.
16536 * ui-style.c (_initialize_ui_style): Add declaration.
16537 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
16538 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
16539 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
16540 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
16541 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
16542 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
16543 * unittests/filtered_iterator-selftests.c
16544 (_initialize_filtered_iterator_selftests): Add declaration.
16545 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
16546 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
16547 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
16548 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
16549 * unittests/main-thread-selftests.c
16550 (_initialize_main_thread_selftests): Add declaration.
16551 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
16552 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
16553 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
16554 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
16555 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
16556 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
16557 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
16558 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
16559 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
16560 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
16561 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
16562 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
16563 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
16564 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
16565 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
16566 declaration.
16567 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
16568 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
16569 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
16570 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
16571 * user-regs.c (_initialize_user_regs): Add declaration.
16572 * utils.c (_initialize_utils): Add declaration.
16573 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
16574 * valops.c (_initialize_valops): Add declaration.
16575 * valprint.c (_initialize_valprint): Add declaration.
16576 * value.c (_initialize_values): Add declaration.
16577 * varobj.c (_initialize_varobj): Add declaration.
16578 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
16579 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
16580 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
16581 * windows-nat.c (_initialize_windows_nat): Add declaration.
16582 (_initialize_check_for_gdb_ini): Add declaration.
16583 (_initialize_loadable): Add declaration.
16584 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
16585 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
16586 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
16587 * xcoffread.c (_initialize_xcoffread): Add declaration.
16588 * xml-support.c (_initialize_xml_support): Add declaration.
16589 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
16590 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
16591 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
16592 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
16593
e2de1eec
SM
165942020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16595
16596 * regformats/regdat.sh: Generate declaration for init function.
16597
e0037b4c
SM
165982020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16599
16600 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
16601 up.
16602 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
16603 close_one_inferior>: New methods.
16604 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
16605 pass down target to find_inferior_pid.
16606 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
16607 Pass down target to find_inferior_ptid.
16608 (gdbsim_target::create_inferior): Pass down target to
16609 add_thread_silent.
16610 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
16611 target down to find_inferior_ptid and switch_to_thread.
16612 (gdbsim_target::close): Update to call close_one_inferior.
16613 (struct resume_data): Remove.
16614 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
16615 directly, rather than through a void pointer.
16616 (gdbsim_target::resume): Update to call resume_one_inferior.
16617
58920b5b
SM
166182020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
16619
16620 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
16621
4ec89149
PA
166222020-01-12 Pedro Alves <palves@redhat.com>
16623
16624 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
16625 directly for the current inferior instead of
16626 discard_all_inferiors.
16627 (discard_all_inferiors): Delete.
16628
7c392d1d
TT
166292020-01-11 Tom Tromey <tom@tromey.com>
16630
16631 * tui/tui-wingeneral.c (box_win): Check cli_styling.
16632 * tui/tui-winsource.c (tui_source_window_base::refill): Use
16633 deprecated_safe_get_selected_frame.
16634
d9ebdab7
TBA
166352020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16636
16637 * inferior.c (print_inferior): Switch inferior before printing it.
16638
f3c469b9
PA
166392020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
16640 Pedro Alves <palves@redhat.com>
16641
16642 * progspace-and-thread.c (switch_to_program_space_and_thread):
16643 Assert there's an inferior for PSPACE. Use
16644 switch_to_inferior_no_thread to switch the inferior too.
16645 * progspace.c (program_space::~program_space): Call
16646 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
16647 (program_space::free_all_objfiles): Don't call clear_symtab_users
16648 here.
16649 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
16650
65c574f6
PA
166512020-01-10 Pedro Alves <palves@redhat.com>
16652
16653 * NEWS: Mention multi-target debugging, "info connections", and
16654 "add-inferior -no-connection".
16655
2f4fcf00
PA
166562020-01-10 Pedro Alves <palves@redhat.com>
16657
16658 * infrun.c: Include "target-connection.h".
16659 (check_multi_target_resumption): New.
16660 (proceed): Call it.
16661 * target-connection.c (make_target_connection_string): Make
16662 extern.
16663 * target-connection.h (make_target_connection_string): Declare.
16664
121b3efd
PA
166652020-01-10 Pedro Alves <palves@redhat.com>
16666
16667 * Makefile.in (COMMON_SFILES): Add target-connection.c.
16668 * inferior.c (uiout_field_connection): New function.
16669 (print_inferior): Add new "connection-id" column.
16670 (add_inferior_command): Show connection number/string of added
16671 inferior.
16672 * process-stratum-target.h
16673 (process_stratum_target::connection_string): New virtual method.
16674 (process_stratum_target::connection_number): New field.
16675 * remote.c (remote_target::connection_string): New override.
16676 * target-connection.c: New file.
16677 * target-connection.h: New file.
16678 * target.c (decref_target): Remove process_stratum targets from
16679 the connection list.
16680 (target_stack::push): Add process_stratum targets to the
16681 connection list.
16682
4f837581
PA
166832020-01-10 Pedro Alves <palves@redhat.com>
16684
16685 Revert:
16686 2016-04-12 Pedro Alves <palves@redhat.com>
16687 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
16688 Remove references to name.
16689 * serial.h (struct serial) <name>: Delete.
16690
f4ec508e
PA
166912020-01-10 Pedro Alves <palves@redhat.com>
16692
16693 * gdbarch-selftests.c (register_to_value_test): Remove "target
16694 already pushed" check.
16695
5b6d1e4f
PA
166962020-01-10 Pedro Alves <palves@redhat.com>
16697 John Baldwin <jhb@FreeBSD.org>
16698
16699 * aarch64-linux-nat.c
16700 (aarch64_linux_nat_target::thread_architecture): Adjust.
16701 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
16702 (task_command_1): Likewise.
16703 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
16704 (aix_thread_target::wait, aix_thread_target::fetch_registers)
16705 (aix_thread_target::store_registers)
16706 (aix_thread_target::thread_alive): Adjust.
16707 * amd64-fbsd-tdep.c: Include "inferior.h".
16708 (amd64fbsd_get_thread_local_address): Pass down target.
16709 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
16710 thread's gdbarch instead of target_gdbarch.
16711 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
16712 get_last_target_status.
16713 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
16714 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
16715 inferiors.
16716 (update_inserted_breakpoint_locations): Skip if inferiors with no
16717 execution.
16718 (update_global_location_list): When handling moribund locations,
16719 find representative inferior for location's pspace, and use thread
16720 count of its process_stratum target.
16721 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
16722 * bsd-uthread.c (bsd_uthread_target::wait): Use
16723 as_process_stratum_target and adjust thread_change_ptid and
16724 add_thread calls.
16725 (bsd_uthread_target::update_thread_list): Use
16726 as_process_stratum_target and adjust find_thread_ptid,
16727 thread_change_ptid and add_thread calls.
16728 * btrace.c (maint_btrace_packet_history_cmd): Adjust
16729 find_thread_ptid call.
16730 * corelow.c (add_to_thread_list): Adjust add_thread call.
16731 (core_target_open): Adjust add_thread_silent and thread_count
16732 calls.
16733 (core_target::pid_to_str): Adjust find_inferior_ptid call.
16734 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
16735 * event-top.c (async_disconnect): Pop targets from all inferiors.
16736 * exec.c (add_target_sections): Push exec target on all inferiors
16737 sharing the program space.
16738 (remove_target_sections): Remove the exec target from all
16739 inferiors sharing the program space.
16740 (exec_on_vfork): New.
16741 * exec.h (exec_on_vfork): Declare.
16742 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
16743 Pass it down.
16744 (fbsd_nat_target::update_thread_list): Adjust.
16745 (fbsd_nat_target::resume): Adjust.
16746 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
16747 down.
16748 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
16749 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
16750 get_thread_arch_regcache call.
16751 * fork-child.c (gdb_startup_inferior): Pass target down to
16752 startup_inferior and set_executing.
16753 * gdbthread.h (struct process_stratum_target): Forward declare.
16754 (add_thread, add_thread_silent, add_thread_with_info)
16755 (in_thread_list): Add process_stratum_target parameter.
16756 (find_thread_ptid(inferior*, ptid_t)): New overload.
16757 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
16758 parameter.
16759 (all_threads()): Delete overload.
16760 (all_threads, all_non_exited_threads): Add process_stratum_target
16761 parameter.
16762 (all_threads_safe): Use brace initialization.
16763 (thread_count): Add process_stratum_target parameter.
16764 (set_resumed, set_running, set_stop_requested, set_executing)
16765 (threads_are_executing, finish_thread_state): Add
16766 process_stratum_target parameter.
16767 (switch_to_thread): Use is_current_thread.
16768 * i386-fbsd-tdep.c: Include "inferior.h".
16769 (i386fbsd_get_thread_local_address): Pass down target.
16770 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
16771 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
16772 have_inferiors check.
16773 * inf-ptrace.c (inf_ptrace_target::create_inferior)
16774 (inf_ptrace_target::attach): Adjust.
16775 * infcall.c (run_inferior_call): Adjust.
16776 * infcmd.c (run_command_1): Pass target to
16777 scoped_finish_thread_state.
16778 (proceed_thread_callback): Skip inferiors with no execution.
16779 (continue_command): Rename 'all_threads' local to avoid hiding
16780 'all_threads' function. Adjust get_last_target_status call.
16781 (prepare_one_step): Adjust set_running call.
16782 (signal_command): Use user_visible_resume_target. Compare thread
16783 pointers instead of inferior_ptid.
16784 (info_program_command): Adjust to pass down target.
16785 (attach_command): Mark target's 'thread_executing' flag.
16786 (stop_current_target_threads_ns): New, factored out from ...
16787 (interrupt_target_1): ... this. Switch inferior before making
16788 target calls.
16789 * inferior-iter.h
16790 (struct all_inferiors_iterator, struct all_inferiors_range)
16791 (struct all_inferiors_safe_range)
16792 (struct all_non_exited_inferiors_range): Filter on
16793 process_stratum_target too. Remove explicit.
16794 * inferior.c (inferior::inferior): Push dummy target on target
16795 stack.
16796 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
16797 Add process_stratum_target parameter, and pass it down.
16798 (have_live_inferiors): Adjust.
16799 (switch_to_inferior_and_push_target): New.
16800 (add_inferior_command, clone_inferior_command): Handle
16801 "-no-connection" parameter. Use
16802 switch_to_inferior_and_push_target.
16803 (_initialize_inferior): Mention "-no-connection" option in
16804 the help of "add-inferior" and "clone-inferior" commands.
16805 * inferior.h: Include "process-stratum-target.h".
16806 (interrupt_target_1): Use bool.
16807 (struct inferior) <push_target, unpush_target, target_is_pushed,
16808 find_target_beneath, top_target, process_target, target_at,
16809 m_stack>: New.
16810 (discard_all_inferiors): Delete.
16811 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
16812 (all_inferiors, all_non_exited_inferiors): Add
16813 process_stratum_target parameter.
16814 * infrun.c: Include "gdb_select.h" and <unordered_map>.
16815 (target_last_proc_target): New global.
16816 (follow_fork_inferior): Push target on new inferior. Pass target
16817 to add_thread_silent. Call exec_on_vfork. Handle target's
16818 reference count.
16819 (follow_fork): Adjust get_last_target_status call. Also consider
16820 target.
16821 (follow_exec): Push target on new inferior.
16822 (struct execution_control_state) <target>: New field.
16823 (user_visible_resume_target): New.
16824 (do_target_resume): Call target_async.
16825 (resume_1): Set target's threads_executing flag. Consider resume
16826 target.
16827 (commit_resume_all_targets): New.
16828 (proceed): Also consider resume target. Skip threads of inferiors
16829 with no execution. Commit resumtion in all targets.
16830 (start_remote): Pass current inferior to wait_for_inferior.
16831 (infrun_thread_stop_requested): Consider target as well. Pass
16832 thread_info pointer to clear_inline_frame_state instead of ptid.
16833 (infrun_thread_thread_exit): Consider target as well.
16834 (random_pending_event_thread): New inferior parameter. Use it.
16835 (do_target_wait): Rename to ...
16836 (do_target_wait_1): ... this. Add inferior parameter, and pass it
16837 down.
16838 (threads_are_resumed_pending_p, do_target_wait): New.
16839 (prepare_for_detach): Adjust calls.
16840 (wait_for_inferior): New inferior parameter. Handle it. Use
16841 do_target_wait_1 instead of do_target_wait.
16842 (fetch_inferior_event): Adjust. Switch to representative
16843 inferior. Pass target down.
16844 (set_last_target_status): Add process_stratum_target parameter.
16845 Save target in global.
16846 (get_last_target_status): Add process_stratum_target parameter and
16847 handle it.
16848 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
16849 (context_switch): Check inferior_ptid == null_ptid before calling
16850 inferior_thread().
16851 (get_inferior_stop_soon): Pass down target.
16852 (wait_one): Rename to ...
16853 (poll_one_curr_target): ... this.
16854 (struct wait_one_event): New.
16855 (wait_one): New.
16856 (stop_all_threads): Adjust.
16857 (handle_no_resumed, handle_inferior_event): Adjust to consider the
16858 event's target.
16859 (switch_back_to_stepped_thread): Also consider target.
16860 (print_stop_event): Update.
16861 (normal_stop): Update. Also consider the resume target.
16862 * infrun.h (wait_for_inferior): Remove declaration.
16863 (user_visible_resume_target): New declaration.
16864 (get_last_target_status, set_last_target_status): New
16865 process_stratum_target parameter.
16866 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16867 process_stratum_target parameter, and use it.
16868 (clear_inline_frame_state (thread_info*)): New.
16869 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16870 process_stratum_target parameter.
16871 (clear_inline_frame_state (thread_info*)): Declare.
16872 * linux-fork.c (delete_checkpoint_command): Pass target down to
16873 find_thread_ptid.
16874 (checkpoint_command): Adjust.
16875 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
16876 instead of just tweaking inferior_ptid.
16877 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
16878 (exit_lwp): Pass target down to find_thread_ptid.
16879 (attach_proc_task_lwp_callback): Pass target down to
16880 add_thread/set_running/set_executing.
16881 (linux_nat_target::attach): Pass target down to
16882 thread_change_ptid.
16883 (get_detach_signal): Pass target down to find_thread_ptid.
16884 Consider last target status's target.
16885 (linux_resume_one_lwp_throw, resume_lwp)
16886 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
16887 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
16888 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
16889 (linux_nat_target::async_wait_fd): New.
16890 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
16891 target down.
16892 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
16893 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
16894 * linux-thread-db.c (struct thread_db_info::process_target): New
16895 field.
16896 (add_thread_db_info): Save target.
16897 (get_thread_db_info): New process_stratum_target parameter. Also
16898 match target.
16899 (delete_thread_db_info): New process_stratum_target parameter.
16900 Also match target.
16901 (thread_from_lwp): Adjust to pass down target.
16902 (thread_db_notice_clone): Pass down target.
16903 (check_thread_db_callback): Pass down target.
16904 (try_thread_db_load_1): Always push the thread_db target.
16905 (try_thread_db_load, record_thread): Pass target down.
16906 (thread_db_target::detach): Pass target down. Always unpush the
16907 thread_db target.
16908 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
16909 target down. Always unpush the thread_db target.
16910 (find_new_threads_callback, thread_db_find_new_threads_2)
16911 (thread_db_target::update_thread_list): Pass target down.
16912 (thread_db_target::pid_to_str): Pass current inferior down.
16913 (thread_db_target::get_thread_local_address): Pass target down.
16914 (thread_db_target::resume, maintenance_check_libthread_db): Pass
16915 target down.
16916 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
16917 * procfs.c (procfs_target::procfs_init_inferior): Declare.
16918 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
16919 (procfs_init_inferior): Rename to ...
16920 (procfs_target::procfs_init_inferior): ... this and adjust.
16921 (procfs_target::create_inferior, procfs_notice_thread)
16922 (procfs_do_thread_registers): Adjust.
16923 * ppc-fbsd-tdep.c: Include "inferior.h".
16924 (ppcfbsd_get_thread_local_address): Pass down target.
16925 * proc-service.c (ps_xfer_memory): Switch current inferior and
16926 program space as well.
16927 (get_ps_regcache): Pass target down.
16928 * process-stratum-target.c
16929 (process_stratum_target::thread_address_space)
16930 (process_stratum_target::thread_architecture): Pass target down.
16931 * process-stratum-target.h
16932 (process_stratum_target::threads_executing): New field.
16933 (as_process_stratum_target): New.
16934 * ravenscar-thread.c
16935 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
16936 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
16937 down.
16938 * record-btrace.c (record_btrace_target::info_record): Adjust.
16939 (record_btrace_target::record_method)
16940 (record_btrace_target::record_is_replaying)
16941 (record_btrace_target::fetch_registers)
16942 (get_thread_current_frame_id, record_btrace_target::resume)
16943 (record_btrace_target::wait, record_btrace_target::stop): Pass
16944 target down.
16945 * record-full.c (record_full_wait_1): Switch to event thread.
16946 Pass target down.
16947 * regcache.c (regcache::regcache)
16948 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
16949 process_stratum_target parameter and handle it.
16950 (current_thread_target): New global.
16951 (get_thread_regcache): Add process_stratum_target parameter and
16952 handle it. Switch inferior before calling target method.
16953 (get_thread_regcache): Pass target down.
16954 (get_thread_regcache_for_ptid): Pass target down.
16955 (registers_changed_ptid): Add process_stratum_target parameter and
16956 handle it.
16957 (registers_changed_thread, registers_changed): Pass target down.
16958 (test_get_thread_arch_aspace_regcache): New.
16959 (current_regcache_test): Define a couple local test_target_ops
16960 instances and use them for testing.
16961 (readwrite_regcache): Pass process_stratum_target parameter.
16962 (cooked_read_test, cooked_write_test): Pass mock_target down.
16963 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
16964 (get_thread_arch_aspace_regcache): Add process_stratum_target
16965 parameter.
16966 (regcache::target): New method.
16967 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
16968 (regcache::registers_changed_ptid): Add process_stratum_target
16969 parameter.
16970 (regcache::m_target): New field.
16971 (registers_changed_ptid): Add process_stratum_target parameter.
16972 * remote.c (remote_state::supports_vCont_probed): New field.
16973 (remote_target::async_wait_fd): New method.
16974 (remote_unpush_and_throw): Add remote_target parameter.
16975 (get_current_remote_target): Adjust.
16976 (remote_target::remote_add_inferior): Push target.
16977 (remote_target::remote_add_thread)
16978 (remote_target::remote_notice_new_inferior)
16979 (get_remote_thread_info): Pass target down.
16980 (remote_target::update_thread_list): Skip threads of inferiors
16981 bound to other targets. (remote_target::close): Don't discard
16982 inferiors. (remote_target::add_current_inferior_and_thread)
16983 (remote_target::process_initial_stop_replies)
16984 (remote_target::start_remote)
16985 (remote_target::remote_serial_quit_handler): Pass down target.
16986 (remote_target::remote_unpush_target): New remote_target
16987 parameter. Unpush the target from all inferiors.
16988 (remote_target::remote_unpush_and_throw): New remote_target
16989 parameter. Pass it down.
16990 (remote_target::open_1): Check whether the current inferior has
16991 execution instead of checking whether any inferior is live. Pass
16992 target down.
16993 (remote_target::remote_detach_1): Pass down target. Use
16994 remote_unpush_target.
16995 (extended_remote_target::attach): Pass down target.
16996 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
16997 (remote_target::append_resumption): Pass down target.
16998 (remote_target::append_pending_thread_resumptions)
16999 (remote_target::remote_resume_with_hc, remote_target::resume)
17000 (remote_target::commit_resume): Pass down target.
17001 (remote_target::remote_stop_ns): Check supports_vCont_probed.
17002 (remote_target::interrupt_query)
17003 (remote_target::remove_new_fork_children)
17004 (remote_target::check_pending_events_prevent_wildcard_vcont)
17005 (remote_target::remote_parse_stop_reply)
17006 (remote_target::process_stop_reply): Pass down target.
17007 (first_remote_resumed_thread): New remote_target parameter. Pass
17008 it down.
17009 (remote_target::wait_as): Pass down target.
17010 (unpush_and_perror): New remote_target parameter. Pass it down.
17011 (remote_target::readchar, remote_target::remote_serial_write)
17012 (remote_target::getpkt_or_notif_sane_1)
17013 (remote_target::kill_new_fork_children, remote_target::kill): Pass
17014 down target.
17015 (remote_target::mourn_inferior): Pass down target. Use
17016 remote_unpush_target.
17017 (remote_target::core_of_thread)
17018 (remote_target::remote_btrace_maybe_reopen): Pass down target.
17019 (remote_target::pid_to_exec_file)
17020 (remote_target::thread_handle_to_thread_info): Pass down target.
17021 (remote_target::async_wait_fd): New.
17022 * riscv-fbsd-tdep.c: Include "inferior.h".
17023 (riscv_fbsd_get_thread_local_address): Pass down target.
17024 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
17025 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
17026 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
17027 Adjust.
17028 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
17029 * solib-svr4.c (enable_break): Pass down target.
17030 * spu-multiarch.c (parse_spufs_run): Pass down target.
17031 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
17032 * target-delegates.c: Regenerate.
17033 * target.c (g_target_stack): Delete.
17034 (current_top_target): Return the current inferior's top target.
17035 (target_has_execution_1): Refer to the passed-in inferior's top
17036 target.
17037 (target_supports_terminal_ours): Check whether the initial
17038 inferior was already created.
17039 (decref_target): New.
17040 (target_stack::push): Incref/decref the target.
17041 (push_target, push_target, unpush_target): Adjust.
17042 (target_stack::unpush): Defref target.
17043 (target_is_pushed): Return bool. Adjust to refer to the current
17044 inferior's target stack.
17045 (dispose_inferior): Delete, and inline parts ...
17046 (target_preopen): ... here. Only dispose of the current inferior.
17047 (target_detach): Hold strong target reference while detaching.
17048 Pass target down.
17049 (target_thread_name): Add assertion.
17050 (target_resume): Pass down target.
17051 (target_ops::beneath, find_target_at): Adjust to refer to the
17052 current inferior's target stack.
17053 (get_dummy_target): New.
17054 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
17055 has a thread running.
17056 (initialize_targets): Rename to ...
17057 (_initialize_target): ... this.
17058 * target.h: Include "gdbsupport/refcounted-object.h".
17059 (struct target_ops): Inherit refcounted_object.
17060 (target_ops::shortname, target_ops::longname): Make const.
17061 (target_ops::async_wait_fd): New method.
17062 (decref_target): Declare.
17063 (struct target_ops_ref_policy): New.
17064 (target_ops_ref): New typedef.
17065 (get_dummy_target): Declare function.
17066 (target_is_pushed): Return bool.
17067 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
17068 (all_matching_threads_iterator::all_matching_threads_iterator):
17069 Handle filter target.
17070 * thread-iter.h (struct all_matching_threads_iterator, struct
17071 all_matching_threads_range, class all_non_exited_threads_range):
17072 Filter by target too. Remove explicit.
17073 * thread.c (threads_executing): Delete.
17074 (inferior_thread): Pass down current inferior.
17075 (clear_thread_inferior_resources): Pass down thread pointer
17076 instead of ptid_t.
17077 (add_thread_silent, add_thread_with_info, add_thread): Add
17078 process_stratum_target parameter. Use it for thread and inferior
17079 searches.
17080 (is_current_thread): New.
17081 (thread_info::deletable): Use it.
17082 (find_thread_ptid, thread_count, in_thread_list)
17083 (thread_change_ptid, set_resumed, set_running): New
17084 process_stratum_target parameter. Pass it down.
17085 (set_executing): New process_stratum_target parameter. Pass it
17086 down. Adjust reference to 'threads_executing'.
17087 (threads_are_executing): New process_stratum_target parameter.
17088 Adjust reference to 'threads_executing'.
17089 (set_stop_requested, finish_thread_state): New
17090 process_stratum_target parameter. Pass it down.
17091 (switch_to_thread): Also match inferior.
17092 (switch_to_thread): New process_stratum_target parameter. Pass it
17093 down.
17094 (update_threads_executing): Reimplement.
17095 * top.c (quit_force): Pop targets from all inferior.
17096 (gdb_init): Don't call initialize_targets.
17097 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
17098 Declare.
17099 (windows_add_thread, windows_delete_thread): Adjust.
17100 (get_windows_debug_event): Rename to ...
17101 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
17102 * tracefile-tfile.c (tfile_target_open): Pass down target.
17103 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
17104 Forward declare.
17105 (switch_to_thread): Add process_stratum_target parameter.
17106 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
17107 parameter. Use it.
17108 (mi_on_resume): Pass target down.
17109 * nat/fork-inferior.c (startup_inferior): Add
17110 process_stratum_target parameter. Pass it down.
17111 * nat/fork-inferior.h (startup_inferior): Add
17112 process_stratum_target parameter.
17113 * python/py-threadevent.c (py_get_event_thread): Pass target down.
17114
75c6c844
PA
171152020-01-10 Pedro Alves <palves@redhat.com>
17116
17117 * remote.c (remote_target::start_remote): Don't set inferior_ptid
17118 directly. Instead find the first thread in the thread list and
17119 use switch_to_thread.
17120
78f2c40a
PA
171212020-01-10 Pedro Alves <palves@redhat.com>
17122
17123 * remote.c (remote_target::remote_add_inferior): Don't bind a
17124 process to the current inferior if the current inferior is already
17125 bound to a process.
17126
e7af6c70
TBA
171272020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17128 Pedro Alves <palves@redhat.com>
17129
17130 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
17131 If no process is specified, return null_ptid instead of
17132 inferior_ptid.
17133 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
17134 TARGET_WAITKIND_SIGNALLED with no pid.
17135
31ba933e
PA
171362020-01-10 Pedro Alves <palves@redhat.com>
17137
17138 * remote.c (first_remote_resumed_thread): New.
17139 (remote_target::wait_as): Use it as default event_ptid instead of
17140 inferior_ptid.
17141
735fc2ca
PA
171422020-01-10 Pedro Alves <palves@redhat.com>
17143
17144 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
17145
c17e02e1
PA
171462020-01-10 Pedro Alves <palves@redhat.com>
17147
17148 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
17149 not -1.
17150
ab1ddbcf
PA
171512020-01-10 Pedro Alves <palves@redhat.com>
17152
17153 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
17154 ptid to get_last_target_status.
17155 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
17156 ptid to get_last_target_status.
17157 * infcmd.c (continue_command): Don't pass a target_waitstatus to
17158 get_last_target_status.
17159 (info_program_command): Don't pass a target_waitstatus to
17160 get_last_target_status.
17161 * infrun.c (init_wait_for_inferior): Use
17162 nullify_last_target_wait_ptid.
17163 (get_last_target_status): Handle nullptr arguments.
17164 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
17165 (print_stop_event): Don't pass a ptid to get_last_target_status.
17166 (normal_stop): Don't pass a ptid to get_last_target_status.
17167 * infrun.h (get_last_target_status, set_last_target_status): Move
17168 comments here and update.
17169 (nullify_last_target_wait_ptid): Declare.
17170 * linux-fork.c (fork_load_infrun_state): Remove local extern
17171 declaration of nullify_last_target_wait_ptid.
17172 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
17173 to get_last_target_status.
17174
f3f8ece4
PA
171752020-01-10 Pedro Alves <palves@redhat.com>
17176
17177 * gdbthread.h (scoped_restore_current_thread)
17178 <dont_restore, restore, m_dont_restore>: Declare.
17179 * thread.c (thread_alive): Add assertion. Return bool.
17180 (switch_to_thread_if_alive): New.
17181 (prune_threads): Switch inferior/thread.
17182 (print_thread_info_1): Switch thread before calling target methods.
17183 (scoped_restore_current_thread::restore): New, factored out from
17184 ...
17185 (scoped_restore_current_thread::~scoped_restore_current_thread):
17186 ... this.
17187 (scoped_restore_current_thread::scoped_restore_current_thread):
17188 Add assertion.
17189 (thread_apply_all_command, thread_select): Use
17190 switch_to_thread_if_alive.
17191 * infrun.c (proceed, restart_threads, handle_signal_stop)
17192 (switch_back_to_stepped_thread): Switch current thread before
17193 calling target methods.
17194
db2d40f7
PA
171952020-01-10 Pedro Alves <palves@redhat.com>
17196
17197 * inferior.c (switch_to_inferior_no_thread): New function,
17198 factored out from ...
17199 (inferior_command): ... here.
17200 * inferior.h (switch_to_inferior_no_thread): Declare.
17201 * mi/mi-main.c (run_one_inferior): Use
17202 switch_to_inferior_no_thread.
17203
bd420a2d
PA
172042020-01-10 Pedro Alves <palves@redhat.com>
17205
17206 * infcmd.c (kill_command): Remove dead code.
17207
ddf5db90
PA
172082020-01-10 Pedro Alves <palves@redhat.com>
17209
17210 * remote.c (remote_target::mourn_inferior): No longer check
17211 whether the target is running.
17212
5018ce90
PA
172132020-01-10 Pedro Alves <palves@redhat.com>
17214
17215 * corelow.c (core_target::has_execution): Change parameter type to
17216 inferior pointer.
17217 * inferior.c (number_of_live_inferiors): Use
17218 inferior::has_execution instead of target_has_execution_1.
17219 * inferior.h (inferior::has_execution): New.
17220 * linux-thread-db.c (thread_db_target::update_thread_list): Use
17221 inferior::has_execution instead of target_has_execution_1.
17222 * process-stratum-target.c
17223 (process_stratum_target::has_execution): Change parameter type to
17224 inferior pointer. Check the inferior's PID instead of
17225 inferior_ptid.
17226 * process-stratum-target.h
17227 (process_stratum_target::has_execution): Change parameter type to
17228 inferior pointer.
17229 * record-full.c (record_full_core_target::has_execution): Change
17230 parameter type to inferior pointer.
17231 * target.c (target_has_execution_1): Change parameter type to
17232 inferior pointer.
17233 (target_has_execution_current): Adjust.
17234 * target.h (target_ops::has_execution): Change parameter type to
17235 inferior pointer.
17236 (target_has_execution_1): Change parameter type to inferior
17237 pointer. Change return type to bool.
17238 * tracefile.h (tracefile_target::has_execution): Change parameter
17239 type to inferior pointer.
17240
74375d18
PA
172412020-01-10 Pedro Alves <palves@redhat.com>
17242
17243 * exceptions.c (print_flush): Remove current_top_target() check.
17244
acdf84a6
PA
172452020-01-10 Pedro Alves <palves@redhat.com>
17246
17247 * remote.c (show_remote_exec_file): Show the current inferior's
17248 exec-file instead of the command variable's value.
17249
ec506636
PA
172502020-01-10 Pedro Alves <palves@redhat.com>
17251
17252 * record-full.c (record_full_resume_ptid): New global.
17253 (record_full_target::resume): Set it.
17254 (record_full_wait_1): Use record_full_resume_ptid instead of
17255 inferior_ptid.
17256
873657b9
PA
172572020-01-10 Pedro Alves <palves@redhat.com>
17258
17259 * gdbthread.h (scoped_restore_current_thread)
17260 <dont_restore, restore, m_dont_restore>: Declare.
17261 * thread.c (thread_alive): Add assertion. Return bool.
17262 (switch_to_thread_if_alive): New.
17263 (prune_threads): Switch inferior/thread.
17264 (print_thread_info_1): Switch thread before calling target methods.
17265 (scoped_restore_current_thread::restore): New, factored out from
17266 ...
17267 (scoped_restore_current_thread::~scoped_restore_current_thread):
17268 ... this.
17269 (scoped_restore_current_thread::scoped_restore_current_thread):
17270 Add assertion.
17271 (thread_apply_all_command, thread_select): Use
17272 switch_to_thread_if_alive.
17273
7f0ae84c
GB
172742020-01-10 George Barrett <bob@bob131.so>
17275
17276 * stap-probe.c (stap_modify_semaphore): Don't check for null
17277 semaphores.
17278 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
17279 for null semaphores.
17280
f5a7c406
AB
172812020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17282
17283 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
17284 all source windows, and maintain horizontal scroll status while
17285 doing so.
17286
9ae6bf64
TT
172872020-01-09 Tom Tromey <tom@tromey.com>
17288
17289 PR tui/18932:
17290 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
17291 update_source_window, not print_source_lines.
17292
b2efe70c
AB
172932020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17294
17295 * tui/tui.c (tui_enable): Register tui hooks after calling
17296 tui_display_main.
17297
5f23a082
CB
172982020-01-09 Christian Biesinger <cbiesinger@google.com>
17299
17300 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
17301
3061113b
SM
173022020-01-08 Simon Marchi <simon.marchi@efficios.com>
17303
17304 * thread.c (print_thread_info_1): Fix indentation.
17305
57d75002
CB
173062020-01-09 Christian Biesinger <cbiesinger@google.com>
17307
17308 * symtab.c (general_symbol_info::compute_and_set_names): Move the
17309 unique_xmalloc_ptr outside the if to always free the demangled name.
17310
6a053cb1
TT
173112020-01-08 Tom Tromey <tromey@adacore.com>
17312
17313 * xcoffread.c (enter_line_range, read_xcoff_symtab)
17314 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
17315 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
17316 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
17317 Remove.
17318 (section_offsets): New typedef.
17319 * symtab.c (fixup_section, get_msymbol_address): Update.
17320 * symmisc.c (dump_msymbols): Update.
17321 * symfile.h (relative_addr_info_to_section_offsets)
17322 (symfile_map_offsets_to_segments): Update.
17323 * symfile.c (build_section_addr_info_from_objfile)
17324 (init_objfile_sect_indices): Update.
17325 (struct place_section_arg): Change type of "offsets".
17326 (place_section): Update.
17327 (relative_addr_info_to_section_offsets): Change type of
17328 "section_offsets". Remove "num_sections" parameter.
17329 (default_symfile_offsets, syms_from_objfile_1)
17330 (set_objfile_default_section_offset): Update.
17331 (reread_symbols): No need to preserve section offsets by hand.
17332 (symfile_map_offsets_to_segments): Change type of "offsets".
17333 * stap-probe.c (relocate_address): Update.
17334 * stabsread.h (process_one_symbol): Update.
17335 * solib-target.c (struct lm_info_target) <offsets>: Change type.
17336 (solib_target_relocate_section_addresses): Update.
17337 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
17338 Update.
17339 * solib-frv.c (frv_relocate_main_executable): Update.
17340 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
17341 * solib-aix.c (solib_aix_get_section_offsets): Change return
17342 type.
17343 (solib_aix_solib_create_inferior_hook): Update.
17344 * remote.c (remote_target::get_offsets): Update.
17345 * psymtab.c (find_pc_sect_psymtab): Update.
17346 * psympriv.h (struct partial_symbol) <address, text_low,
17347 text_high>: Update.
17348 * objfiles.h (obj_section_offset): Update.
17349 (struct objfile) <section_offsets>: Change type.
17350 <num_sections>: Remove.
17351 (objfile_relocate): Update.
17352 * objfiles.c (entry_point_address_query): Update
17353 (relocate_one_symbol): Change type of "section_offsets".
17354 (objfile_relocate1, objfile_relocate1): Change type of
17355 "new_offsets".
17356 (objfile_rebase1): Update.
17357 * mipsread.c (mipscoff_symfile_read): Update.
17358 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
17359 parameter.
17360 * mdebugread.c (parse_symbol): Change type of "section_offsets".
17361 (parse_external, psymtab_to_symtab_1): Update.
17362 * machoread.c (macho_symfile_offsets): Update.
17363 * ia64-tdep.c (ia64_find_unwind_table): Update.
17364 * hppa-tdep.c (read_unwind_info): Update.
17365 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
17366 * dwarf2read.c (create_addrmap_from_index)
17367 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
17368 (process_psymtab_comp_unit_reader, add_partial_symbol)
17369 (add_partial_subprogram, process_full_comp_unit)
17370 (read_file_scope, read_func_scope, read_lexical_block_scope)
17371 (read_call_site_scope, dwarf2_rnglists_process)
17372 (dwarf2_ranges_process, dwarf2_ranges_read)
17373 (dwarf_decode_lines_1, var_decode_location, new_symbol)
17374 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
17375 Update.
17376 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
17377 Update.
17378 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
17379 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
17380 (process_one_symbol): Change type of "section_offsets".
17381 * ctfread.c (get_objfile_text_range): Update.
17382 * coffread.c (coff_symtab_read, enter_linenos)
17383 (process_coff_symbol): Update.
17384 * coff-pe-read.c (add_pe_forwarded_sym): Update.
17385 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
17386
456e800a
TT
173872020-01-08 Tom Tromey <tromey@adacore.com>
17388
17389 * dwarf2read.c (parse_macro_definition): Use std::string.
17390 (parse_macro_definition): Likewise.
17391
6dfa2fc2
TT
173922020-01-08 Tom Tromey <tromey@adacore.com>
17393
17394 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
17395 (ATTR_ALLOC_CHUNK): Remove.
17396
421d1616
TT
173972020-01-08 Tom Tromey <tromey@adacore.com>
17398
17399 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
17400
43816ebc
TT
174012020-01-08 Tom Tromey <tromey@adacore.com>
17402
17403 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
17404 (dwarf2_compute_name, open_dwo_file): Likewise.
17405 (process_enumeration_scope): Use std::vector.
17406 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
17407 (partial_die_info::fixup, dwarf2_start_subfile)
17408 (guess_full_die_structure_name, dwarf2_name): Likewise.
17409 (determine_prefix): Update.
17410 (guess_full_die_structure_name): Make return type const.
17411 (partial_die_full_name): Return unique_xmalloc_ptr.
17412 (DW_FIELD_ALLOC_CHUNK): Remove.
17413
4212d509
TT
174142020-01-07 Tom Tromey <tromey@adacore.com>
17415
17416 PR build/24937:
17417 * stap-probe.c (class stap_static_probe_ops): Add constructor.
17418
06a6207a
JT
174192020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17420
17421 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
17422
153d79c4
AB
174232020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
17424
17425 * stack.c (print_frame_info): Move disassemble_next_line code
17426 inside source_print block.
17427
66182876
EZ
174282020-01-06 Eli Zaretskii <eliz@gnu.org>
17429
17430 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
17431 gdb/signals.h, as we are now using native signal symbols.
17432
cbfa8581
SV
174332020-01-06 Shahab Vahedi <shahab@synopsys.com>
17434
17435 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
17436 overflow by an early check of content vs threshold.
aac66a4c 17437 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
17438 Likewise.
17439
3f602821
EZ
174402020-01-06 Eli Zaretskii <eliz@gnu.org>
17441
17442 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
17443
a08c904d
JT
174442020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17445
17446 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
17447 export table if no section contains it's RVA.
17448
89a65580
EZ
174492020-01-06 Eli Zaretskii <eliz@gnu.org>
17450
17451 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
17452
8b7fcda2
HD
174532020-01-06 Hannes Domani <ssbssa@yahoo.de>
17454
17455 * source.c (print_source_lines_base): Set last_line_listed.
17456
a61b4f69
SV
174572020-01-06 Shahab Vahedi <shahab@synopsys.com>
17458
17459 * tui/tui-disasm.c: Remove trailing spaces.
17460
559e7e50
EZ
174612020-01-06 Eli Zaretskii <eliz@gnu.org>
17462 Pedro Alves <palves@redhat.com>
17463
17464 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
17465 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
17466 (windows_gdb_signal_to_target): New function, uses the above
17467 enumeration to convert GDB internal signal codes to equivalent
17468 Windows codes.
17469 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
17470 * windows-nat.c: Include "gdb_wait.h".
17471 (get_windows_debug_event): Extract the fatal exception from the
17472 exit status and convert to the equivalent Posix signal number.
17473 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
17474 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
17475 * gdbsupport/gdb_wait.c: New file, implements
17476 windows_status_to_termsig.
17477 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
17478 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
17479
f2302a34
AB
174802020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
17481
17482 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
17483 show_layout.
17484
6a5206eb
LM
174852020-01-05 Luis Machado <luis.machado@linaro.org>
17486
17487 * aarch64-linux-nat.c
17488 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
17489 and bfd_mach_aarch64.
17490
6ec1d75e
PW
174912020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17492
17493 * ui-file.c (stdio_file::can_emit_style_escape)
17494 (tee_file::can_emit_style_escape): Ensure style is used also on
17495 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
17496 to gdb_stdout.
17497 * main.c (set_gdb_data_directory): Use file style to output the
17498 warning that the given pathname is not a directory.
17499 * top.c (show_history_filename, gdb_safe_append_history)
17500 (show_gdb_datadir): Use file style.
17501
44f81a76
HD
175022020-01-03 Hannes Domani <ssbssa@yahoo.de>
17503
17504 * solib-target.c (struct lm_info_target):
17505 Change offsets to be a unique_xmalloc_ptr.
17506 (solib_target_relocate_section_addresses): Update.
17507
25057eb0
HD
175082020-01-03 Hannes Domani <ssbssa@yahoo.de>
17509
17510 * windows-nat.c (windows_clear_solib): Free so_list linked list.
17511
6e2118f5
BE
175122020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
17513
17514 * MAINTAINERS (Write After Approval): Add myself.
17515
8133c7dc
LM
175162020-01-02 Luis Machado <luis.machado@linaro.org>
17517
17518 * proc-service.c (get_ps_regcache): Remove reference to obsolete
17519 Cell BE architecture.
17520 * target.h (struct target_ops) <thread_architecture>: Likewise.
17521
48189bec
HD
175222020-01-01 Hannes Domani <ssbssa@yahoo.de>
17523
17524 * Makefile.in: Use INSTALL_PROGRAM_ENV.
17525
ead1063b
HD
175262020-01-01 Hannes Domani <ssbssa@yahoo.de>
17527
17528 * MAINTAINERS (Write After Approval): Add myself.
17529
e5d78223
JB
175302020-01-01 Joel Brobecker <brobecker@adacore.com>
17531
17532 * gdbarch.sh: Update copyright year range of generated files.
17533
b811d2c2
JB
175342020-01-01 Joel Brobecker <brobecker@adacore.com>
17535
17536 Update copyright year range in all GDB files.
17537
5f4def5c
JB
175382020-01-01 Joel Brobecker <brobecker@adacore.com>
17539
17540 * copyright.py: Convert to Python 3.
17541
51fd4002
JB
175422020-01-01 Joel Brobecker <brobecker@adacore.com>
17543
17544 * copyright.py: Adapt after move of gnulib directory from gdb
17545 directory to toplevel directory.
17546
5fb651f2
JB
175472020-01-01 Joel Brobecker <brobecker@adacore.com>
17548
17549 * copyright.py (main): Exit if run from the wrong directory.
17550
5dd8bf88
JB
175512020-01-01 Joel Brobecker <brobecker@adacore.com>
17552
17553 * top.c (print_gdb_version): Change copyright year to 2020.
17554
9f71dacb 175552020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 17556
9f71dacb 17557 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 17558
9f71dacb 17559For older changes see ChangeLog-2019.
c906108c
SS
17560\f
17561Local Variables:
17562mode: change-log
17563left-margin: 8
17564fill-column: 74
17565version-control: never
57da7796 17566coding: utf-8
c906108c 17567End:
This page took 3.318737 seconds and 4 git commands to generate.