]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
gdb: add inferior_execd observable
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
42a4fec5
SM
12020-12-04 Simon Marchi <simon.marchi@efficios.com>
2
3 * observable.h (inferior_execd): Declare new observable.
4 * observable.c (inferior_execd): Declare new observable.
5 * infrun.c (follow_exec): Notify inferior_execd observer.
6 * jit.c (jit_inferior_created_hook): Make static.
7 (_initialize_jit): Register inferior_execd observer.
8 * jit.h (jit_inferior_created_hook): Remove declaration.
9 * solib.c (_initialize_solib): Register inferior_execd observer.
10
aafdfb4e
TV
112020-12-04 Tom de Vries <tdevries@suse.de>
12
13 PR gdb/27003
14 * completer.c (completion_tracker::build_completion_result): Don't
15 access match_list[0][-1].
16
f99b5177
TT
172020-12-04 Tom Tromey <tromey@adacore.com>
18
19 * linespec.c (struct linespec_token): Rename; remove typedef.
20 * guile/scm-block.c (struct block_smob): Remove typedef.
21 (struct block_syms_progress_smob): Likewise.
22 * guile/scm-symbol.c (struct symbol_smob): Remove typedef.
23 * guile/scm-symtab.c (symtab_smob): Remove typedef.
24 (struct sal_smob): Remove typedef.
25 * guile/scm-param.c (struct param_smob): Remove typedef.
26 * guile/scm-progspace.c (struct pspace_smob): Rename.
27 * guile/scm-objfile.c (struct objfile_smob): Rename.
28 * guile/scm-iterator.c (struct iterator_smob): Rename.
29 * guile/scm-frame.c (struct frame_smob): Rename.
30 * guile/scm-arch.c (struct arch_smob): Rename.
31 * guile/scm-type.c (struct field_smob): Remove typedef.
32 (struct type_smob): Rename.
33 * guile/scm-cmd.c (struct command_smob): Remove typedef.
34 * guile/scm-ports.c (struct ioscm_memory_port): Remove typedef.
35 * guile/scm-value.c (struct value_smob): Remove typedef.
36 * guile/scm-lazy-string.c (lazy_string_smob): Remove typedef.
37 * guile/guile-internal.h (struct scheme_variable)
38 (struct scheme_function, struct scheme_integer_constant)
39 (struct gdb_smob, struct chained_gdb_smob)
40 (struct eqable_gdb_smob, arch_smob, frame_smob, iterator_smob)
41 (objfile_smob, pspace_smob, type_smob): Remove typedef.
42 * guile/scm-pretty-print.c (pretty_printer_smob): Remove typedef.
43 (struct pretty_printer_worker_smob): Remove typedef.
44 * guile/scm-exception.c (struct exception_smob): Remove typedef.
45 * python/py-block.c (struct block_object): Remove typedef.
46 (block_syms_iterator_object): Update.
47 (set_block): Update.
48 (block_syms_iterator_object): Remove typedef.
49 * python/py-inferior.c (struct membuf_object): Remove typedef.
50 * python/py-symtab.c (struct symtab_object): Remove typedef.
51 (set_symtab): Update.
52 (sal_object): Remove typedef.
53 (set_sal): Update.
54 * python/py-frame.c (frame_object): Remove typedef.
55 * python/py-record-btrace.c (struct btpy_list_object): Remove
56 typedef.
57 * python/py-arch.c (struct arch_object): Remove typedef.
58 * python/py-linetable.c (struct linetable_entry_object)
59 (linetable_object, struct ltpy_iterator_object): Remove typedef.
60 * python/py-events.h (eventregistry_object): Remove typedef.
61 (struct events_object): Remove typedef.
62 * python/python-internal.h (gdbpy_breakpoint_object): Remove
63 typedef.
64 (thread_object): Remove typedef.
65 * python/py-progspace.c (pspace_object): Remove typedef.
66 * python/py-value.c (struct value_object): Remove typedef.
67 * python/py-record.h (recpy_record_object): Remove typedef.
68 (struct recpy_element_object): Remove typedef.
69 * python/py-lazy-string.c (lazy_string_object): Remove typedef.
70 * python/py-objfile.c (objfile_object): Remove typedef.
71 * python/py-cmd.c (struct cmdpy_object): Remove typedef.
72 * python/py-type.c (type_object): Remove typedef.
73 (typy_iterator_object): Update.
74 (set_type): Update.
75 (field_object): Remove typedef.
76 (typy_iterator_object): Remove typedef.
77 * python/py-registers.c (register_descriptor_iterator_object):
78 Remove typedef.
79 (struct register_descriptor_object)
80 (struct reggroup_iterator_object, struct reggroup_object): Remove
81 typedef.
82 * python/py-record.c (recpy_gap_object): Remove typedef.
83 * python/py-symbol.c (symbol_object): Remove typedef.
84 (set_symbol): Update.
85 * python/py-event.h (event_object): Remove typedef.
86 * python/py-param.c (parmpy_object): Remove typedef.
87 * python/py-instruction.c (struct py_insn_obj): Remove typedef.
88 * python/py-unwind.c (struct pending_frame_object): Remove typedef.
89 (unwind_info_object, struct cached_frame_info): Likewise.
90
91f87213
TT
912020-12-04 Tom Tromey <tromey@adacore.com>
92
93 * value.c (value_internal_function_name): Make return type const.
94 * value.h (value_internal_function_name): Make return type const.
95
5382f971
LM
962020-12-04 Luis Machado <luis.machado@linaro.org>
97
98 * aarch64-tdep.c (submask, bit, bits): Remove.
99 * arch/aarch64-insn.c (extract_signed_bitfield): Remove.
100 (aarch64_decode_adr, aarch64_decode_b aarch64_decode_bcond)
101 (aarch64_decode_cb, aarch64_decode_tb)
102 (aarch64_decode_ldr_literal): Use sbits to extract a signed
103 immediate.
104 * arch/aarch64-insn.h (submask, bits, bit, sbits): New macros.
105
b6a6aa07
TV
1062020-12-04 Tom de Vries <tdevries@suse.de>
107
108 PR tdep/27007
109 * i386-tdep.c (i386_16_byte_align_p): Skip static fields.
110
0bc2e38d
SM
1112020-12-03 Simon Marchi <simon.marchi@polymtl.ca>
112
113 PR gdb/26876
114 * dwarf2/frame.c (find_comp_unit, set_comp_unit): Reverse use of
115 dwarf2_frame_bfd_data and dwarf2_frame_objfile_data.
116
25428040
AB
1172020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
118
119 * arch/riscv.c: Include 'rv32e-xregs.c'.
120 (riscv_create_target_description): Update to handle rv32e.
121 * arch/riscv.h (struct riscv_gdbarch_features) <embedded>: New
122 member variable.
123 <operator==>: Update to account for new field.
124 <hash>: Likewise.
125 * features/Makefile (FEATURE_XMLFILES): Add riscv/rv32e-xregs.xml.
126 * features/riscv/rv32e-xregs.c: Generated.
127 * features/riscv/rv32e-xregs.xml: New file.
128 * riscv-tdep.c (riscv_debug_breakpoints): Move from later in the
129 file.
130 (riscv_debug_infcall): Likewise.
131 (riscv_debug_unwinder): Likewise.
132 (riscv_debug_gdbarch): Likewise.
133 (enum riscv_register_required_status): Delete.
134 (struct riscv_register_feature): Add constructor, delete default
135 constructor, copy, and assign constructors.
136 (struct riscv_register_feature::register_info) <required>: Delete.
137 <check>: Update comment and arguments.
138 (struct riscv_register_feature) <name>: Change to member function.
139 <prefer_first_name>: Delete.
140 <tdesc_feature>: New member function.
141 <registers>: Rename to...
142 <m_registers>: ...this.
143 <m_feature_name>: New member variable.
144 (riscv_register_feature::register_info::check): Update arguments.
145 (riscv_xreg_feature): Rewrite as class, create a single static
146 instance of the class.
147 (riscv_freg_feature): Likewise.
148 (riscv_virtual_feature): Likewise.
149 (riscv_csr_feature): Likewise.
150 (riscv_create_csr_aliases): Has become a member function inside
151 riscv_csr_feature class.
152 (riscv_abi_embedded): New function definition.
153 (riscv_register_name): Adjust to use new feature objects.
154 (struct riscv_call_info) <riscv_call_info>: Check for rv32e abi,
155 and adjust available argument registers.
156 (riscv_features_from_gdbarch_info): Check for EF_RISCV_RVE flag.
157 (riscv_check_tdesc_feature): Delete.
158 (riscv_tdesc_unknown_reg): Adjust to use new feature objects.
159 (riscv_gdbarch_init): Delete target description checking code, and
160 instead call to the new feature objects to perform the checks.
161 Reorder handling of no abi information case, allows small code
162 simplification.
163 (_initialize_riscv_tdep): Remove call, this is now done in the
164 riscv_csr_feature constructor.
165 * riscv-tdep.h (riscv_abi_embedded): Declare.
166
533b2ae0
AB
1672020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
168
169 * riscv-tdep.c (riscv_create_csr_aliases): Remove use of
170 DECLARE_CSR_ALIAS.
171
e4502042
AB
1722020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
173
174 * riscv-tdep.c (riscv_is_unknown_csr): New function,
175 implementation moved from riscv_register_reggroup_p.
176 (riscv_register_reggroup_p): Update group handling for unknown
177 CSRs.
178
2bf3b79d
SDJ
1792020-12-01 Sergio Durigan Junior <sergiodj@sergiodj.net>
180
181 * dwarf2/read.c (dwz_search_other_debugdirs): New function.
182 (dwarf2_get_dwz_file): Convert 'filename' to a
183 std::string. Use dwz_search_other_debugdirs to search for DWZ
184 files in the debug-file-directories provided by the user as well.
185
77bf7e99
TT
1862020-12-01 Tom Tromey <tom@tromey.com>
187
188 * parse.c (expr_builder::expr_builder): Initialize expout.
189 (expr_builder::release): Use expression::resize.
190 (expression::expression, expression::~expression)
191 (expression::resize): New methods.
192 (write_exp_elt): Use expression::resize.
193 (prefixify_expression): Update.
194 (increase_expout_size): Use expression::resize.
195 * expression.h (struct expression): Add constructor, destructor.
196 <resize>: New method.
197 (expression_up): Change type.
198
539d71e8
RA
1992020-12-01 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
200 * ppc-linux-nat.c: (PPC_DEBUG_FEATURE_DATA_BP_ARCH_31): New define.
201 (region_ok_for_hw_watchpoint): Check if 2nd DAWR is avaliable before
202 set region.
203
7ce05d21
TV
2042020-11-30 Tom de Vries <tdevries@suse.de>
205
206 PR symtab/26905
207 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add and handle
208 is_reference parameter.
209 (dwarf2_evaluate_property): Update dwarf2_locexpr_baton_eval call.
210
88b91969
TT
2112020-11-30 Tom Tromey <tom@tromey.com>
212
213 * rust-lang.c (rust_op_name): Remove.
214 (exp_descriptor_rust): Update.
215 * parser-defs.h (op_name_standard): Don't declare.
216 (struct exp_descriptor) <op_name>: Remove.
217 * parse.c (exp_descriptor_standard): Update.
218 * opencl-lang.c (exp_descriptor_opencl): Update.
219 * m2-lang.c (m2_language::exp_descriptor_modula2): Update.
220 * f-lang.c (op_name_f): Remove.
221 (f_language::exp_descriptor_tab): Update.
222 * expression.h (op_name): Update.
223 * expprint.c (op_name): Rewrite.
224 (op_name_standard): Remove.
225 (dump_raw_expression, dump_subexp): Update.
226 * c-lang.c (exp_descriptor_c): Update.
227 * ax-gdb.c (gen_expr): Update.
228 * ada-lang.c (ada_op_name): Remove.
229 (ada_exp_descriptor): Update.
230
1cd49c43
TT
2312020-11-30 Tom Tromey <tom@tromey.com>
232
233 * eval.c (init_array_element): Remove.
234 (evaluate_subexp_standard) <OP_ARRAY>: Remove "index_pc".
235
96fb9086
HD
2362020-11-29 Hannes Domani <ssbssa@yahoo.de>
237
238 PR tui/26973
239 * tui/tui-layout.c (tui_apply_current_layout): Don't delete the
240 static locator win info.
241
b4132322
AR
2422020-11-28 Alex Richardson <Alexander.Richardson@cl.cam.ac.uk>
243
244 * acincludde.m4 (GDB_AC_CHECK_BFD): Include string.h in the test
245 program.
246
3df8c6af
AB
2472020-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
248
249 * printcmd.c (skip_over_slash_fmt): Reorder code to ensure in_fmt
250 is always initialized.
251
0ae45769
RA
2522020-11-26 Rogerio Alves <rcardoso@linux.ibm.com>
253 * MAINTAINERS (Write After Approval): Add myself.
254
239ca5e4
PW
2552020-11-26 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
256
257 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
258 * features/aarch64-fpu.xml: Add named FPCR and FPSR register bit-fields.
259
cbfa382a
TT
2602020-11-25 Tom Tromey <tom@tromey.com>
261
262 * eval.c (evaluate_subexp_standard): Remove unnecessary
263 variables.
264
af30c400
TT
2652020-11-25 Tom Tromey <tom@tromey.com>
266
267 * d-lang.c: Include parser-defs.h.
268 * rust-lang.c: Include parser-defs.h.
269 * c-lang.h: Do not include parser-defs.h.
270
1c64f6cb
SM
2712020-11-24 Simon Marchi <simon.marchi@polymtl.ca>
272
273 * regcache.h (struct cached_reg): Remove typedef.
274
2c20a601
JB
2752020-11-24 Joel Brobecker <brobecker@adacore.com>
276
277 * README: Fix the URL of the MPFR library.
278
c609df64
JB
2792020-11-24 Joel Brobecker <brobecker@adacore.com>
280
281 * README: Document the --with-libgmp-prefix configure option.
282
fa123c32
JB
2832020-11-24 Joel Brobecker <brobecker@adacore.com>
284
285 * NEWS: Add entry documenting support for DWARF-based fixed
286 point types.
287
0fb8bb02
JB
2882020-11-24 Joel Brobecker <brobecker@adacore.com>
289
290 * NEWS: Document that building GDB now requires GMP.
291
4afa9fd9
JB
2922020-11-24 Joel Brobecker <brobecker@adacore.com>
293
294 * typeprint.c (print_type_scalar): Add handling of
295 TYPE_CODE_FIXED_POINT.
296
af619ce9
JB
2972020-11-24 Joel Brobecker <brobecker@adacore.com>
298
299 * valarith.c (fixed_point_binop): Replace the
300 INIT_VAL_WITH_FIXED_POINT_VAL macro by a lambda. Update all
301 users accordingly.
302
e6fcee3a
JB
3032020-11-24 Joel Brobecker <brobecker@adacore.com>
304
305 * gdbtypes.h (struct type) <fixed_point_scaling_factor>: New method,
306 replacing fixed_point_scaling_factor. All callers updated
307 throughout this project.
308 (fixed_point_scaling_factor): Delete declaration.
309 * gdbtypes.c (type::fixed_point_scaling_factor): Replaces
310 fixed_point_scaling_factor. Adjust implementation accordingly.
311
d19937a7
JB
3122020-11-24 Joel Brobecker <brobecker@adacore.com>
313
314 * gdbtypes.h (struct type) <fixed_point_type_base_type> New method,
315 replacing the fixed_point_type_base_type function. All callers
316 updated throughout this project.
317 (fixed_point_type_base_type): Remove declaration.
318 * gdbtypes.c (type::fixed_point_type_base_type): Replaces
319 fixed_point_type_base_type. Adjust implementation accordingly.
320
2a12c336
JB
3212020-11-24 Joel Brobecker <brobecker@adacore.com>
322
323 * gdbtypes.h (struct type) <fixed_point_info, set_fixed_point_info>:
324 New methods.
325 (INIT_FIXED_POINT_SPECIFIC): Adjust.
326 (TYPE_FIXED_POINT_INFO): Delete macro.
327 (allocate_fixed_point_type_info): Change return type to void.
328 * gdbtypes.c (copy_type_recursive): Replace the use of
329 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
330 (fixed_point_scaling_factor): Likewise.
331 (allocate_fixed_point_type_info): Change return type to void.
332 Adjust implementation accordingly.
333 * dwarf2/read.c (finish_fixed_point_type): Replace the use of
334 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
335
c9f0b43f
JB
3362020-11-24 Joel Brobecker <brobecker@adacore.com>
337
338 * gmp-utils.h (gdb_mpz::read): Change buf and len parameters
339 into one single gdb::array_view parameter.
340 (gdb_mpz::write): Likewise.
341 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
342 * gmp-utils.c (gdb_mpz::read): Change buf and len parameters
343 into one single gdb::array_view parameter.
344 Adjust implementation accordingly.
345 (gdb_mpz::write): Likewise.
346 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
347 * unittests/gmp-utils-selftests.c: Adapt following changes above.
348 * valarith.c, valops.c, valprint.c, value.c: Likewise.
349
987b6703
JB
3502020-11-24 Joel Brobecker <brobecker@adacore.com>
351
352 * gmp-utils.h (gmp_string_printf): Rename from gmp_string_asprintf.
353 Change return type to std::string. Update all callers.
354 * gmp-utils.c (gmp_string_printf): Likewise.
355
4fbb7cce
JB
3562020-11-24 Joel Brobecker <brobecker@adacore.com>
357
358 * unittests/gmp-utils-selftests.c (write_fp_test): Use mpq_set_si
359 instead of mpq_set_ui to initialize our GMP rational.
360
d6ab69dd
TV
3612020-11-23 Tom de Vries <tdevries@suse.de>
362
363 * debuginfod-support.c (debuginfod_source_query)
364 (debuginfod_debuginfo_query): Only set DESTNAME if successful.
365
dab72643
TT
3662020-11-21 Tom Tromey <tom@tromey.com>
367
368 * breakpoint.c (watchpoint_exp_is_const): Return bool.
369
c0ad05d5
SM
3702020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
371
372 * unittests/gmp-utils-selftests.c (gdb_mpz_read_all_from_small):
373 Pass 2.0 to pow.
374 (gdb_mpz_write_all_from_small): Likewise.
375
a43b29c9
SM
3762020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
377
378 * dwarf2/read.c (finish_fixed_point_type): Use std::abs instead
379 of abs.
380
ae41200b
NA
3812020-11-20 Nick Alcock <nick.alcock@oracle.com>
382
383 * ctfread.c (elfctf_build_psymtabs): Use ctf_dict_open, not
384 ctf_arc_open_by_name.
385
139633c3
NA
3862020-11-20 Nick Alcock <nick.alcock@oracle.com>
387
388 * ctfread.c: Change uses of ctf_file_t to ctf_dict_t.
389 (ctf_fp_info::~ctf_fp_info): Call ctf_dict_close, not ctf_file_close.
390
cbbcd7a7
PA
3912020-11-20 Pedro Alves <pedro@palves.net>
392
393 * language.c (language_arch_info::lookup_primitive_type): Use
394 gdb::function_view instead of gdb::function.
395 (template language_lookup_primitive_type): Rename to ...
396 (language_lookup_primitive_type_1): ... this, and make static.
397 (language_lookup_primitive_type(const struct language_defn *,
398 struct gdbarch *, const char *): Make non-template.
399 (language_lookup_primitive_type(const struct language_defn *,
400 struct gdbarch *, std::function<bool (struct type *)>): Make
401 non-template and use gdb::function_view.
402 * language.h (language_arch_info::lookup_primitive_type): Use
403 gdb::function_view instead of std::function.
404 (language_lookup_primitive_type): No longer template.
405 * opencl-lang.c (lookup_opencl_vector_type): 'filter' is now a
406 lambda instead of a std::function.
407
d5ef21c3
AA
4082020-11-19 Andreas Arnez <arnez@linux.ibm.com>
409
410 PR tdep/26916
411 * s390-tdep.c (s390_process_record): Fix recording of STOC, STOCG,
412 and STOCFH.
413
a5adb8f3
SM
4142020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
415
416 * f-lang.c (fortran_value_subarray): Use plongest/pulongest.
417
70125a45
SM
4182020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
419
420 * gdbarch.sh (read_core_file_mappings): Remove `other` parameter
421 in `loop_cb` parameter.
422 * gdbarch.c: Re-generate.
423 * gdbarch.h: Re-generate.
424 * arch-utils.c (default_read_core_file_mappings): Remove `other`
425 parameter.
426 * arch-utils.h (default_read_core_file_mappings): Likewise.
427 * corelow.c (core_target::build_file_mappings): Likewise.
428 * linux-tdep.c (linux_read_core_file_mappings): Likewise.
429 (linux_core_info_proc_mappings): Likewise.
430
a5c641b5
AB
4312020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
432
433 * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
434 * NEWS: Mention new options.
435 * f-array-walker.h: New file.
436 * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
437 (repack_array_slices): New static global.
438 (show_repack_array_slices): New function.
439 (fortran_array_slicing_debug): New static global.
440 (show_fortran_array_slicing_debug): New function.
441 (value_f90_subarray): Delete.
442 (skip_undetermined_arglist): Delete.
443 (class fortran_array_repacker_base_impl): New class.
444 (class fortran_lazy_array_repacker_impl): New class.
445 (class fortran_array_repacker_impl): New class.
446 (fortran_value_subarray): Complete rewrite.
447 (set_fortran_list): New static global.
448 (show_fortran_list): Likewise.
449 (_initialize_f_language): Register new commands.
450 (fortran_adjust_dynamic_array_base_address_hack): New function.
451 * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
452 Declare.
453 * f-valprint.c: Include 'f-array-walker.h'.
454 (class fortran_array_printer_impl): New class.
455 (f77_print_array_1): Delete.
456 (f77_print_array): Delete.
457 (fortran_print_array): New.
458 (f_value_print_inner): Update to call fortran_print_array.
459 * gdbtypes.c: Include 'f-lang.h'.
460 (resolve_dynamic_type_internal): Call
461 fortran_adjust_dynamic_array_base_address_hack.
462
a15a5258
AB
4632020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
464
465 * breakpoint.c (struct watch_options): New struct.
466 (watch_option_defs): New static global.
467 (make_watch_options_def_group): New function.
468 (watch_maybe_just_location): Convert option parsing.
469 (watch_command_completer): New function.
470 (_initialize_breakpoint): Build help text using options mechanism.
471
2e362716
AB
4722020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
473
474 * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
475 (watch_command_1): Update parameter types. Convert locals to
476 bool.
477 (watch_command_wrapper): Change parameter type.
478 (watch_maybe_just_location): Change locals to bool.
479 (rwatch_command_wrapper): Update parameter type.
480 (awatch_command_wrapper): Update parameter type.
481 * breakpoint.h (watch_command_wrapper): Change parameter type.
482 (rwatch_command_wrapper): Update parameter type.
483 (awatch_command_wrapper): Update parameter type.
484 * eval.c (fetch_subexp_value): Change parameter type.
485 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
486 'false' not '0'.
487 * value.h (fetch_subexp_value): Change parameter type in
488 declaration.
489
b3ff61f8
AB
4902020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
491
492 * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
493 skip_spaces.
494
5b7d45d3
KS
4952020-11-18 Keith Seitz <keiths@redhat.com>
496
497 * linux-tdep.c (dump_note_entry_p): Return true instead of
498 checking `filename'.
499
c44191f8
TV
5002020-11-18 Tom de Vries <tdevries@suse.de>
501
502 * debuginfod-support.c (debuginfod_source_query)
503 (debuginfod_debuginfo_query): Also do early exit if
504 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
505
5d8254e1
TV
5062020-11-18 Tom de Vries <tdevries@suse.de>
507
508 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
509 warning.
510
584903d3
SM
5112020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
512
513 * gdbtypes.h (get_array_bounds): Return bool, adjust some
514 callers. Move doc here.
515 * gdbtypes.c (get_array_bounds): Return bool
516
6f2643db
AB
5172020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
518
519 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
520 assert.
521 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
522 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
523 case to the default.
524
037d7135
AB
5252020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
526
527 * printcmd.c: Include 'safe-ctype.c'.
528 (skip_over_slash_fmt): New function.
529 (print_command_completer): Call skip_over_slash_fmt.
530 (display_and_x_command_completer): New function.
531 (_initialize_printcmd): Add command completion for 'x' and
532 'display'.
533
2b3cb400
PA
5342020-11-16 Pedro Alves <pedro@palves.net>
535
536 * frame.c (get_prev_frame): Move get_frame_id call from here ...
537 (get_prev_frame_always_1): ... to here.
538 * inline-frame.c (inline_frame_this_id): Mention
539 get_prev_frame_always_1 in comment.
540
b74dbc20
JB
5412020-11-15 Joel Brobecker <brobecker@adacore.com>
542
543 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
544 handling.
545 (value_less): Add fixed-point handling.
546
0a12719e
JB
5472020-11-15 Joel Brobecker <brobecker@adacore.com>
548
549 * eval.c (binop_promote): Add fixed-point type handling.
550 * valarith.c (fixed_point_binop): New function.
551 (scalar_binop): Add fixed-point type handling.
552 (value_neg): Add fixed-point type handling.
553 * valops.c (value_cast_to_fixed_point): New function.
554 (value_cast): Add fixed-point type handling.
555
0c9150e4
JB
5562020-11-15 Joel Brobecker <brobecker@adacore.com>
557
558 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
559 range types.
560 * c-typeprint.c (c_type_print_varspec_prefix)
561 (c_type_print_varspec_suffix, c_type_print_base_1): Add
562 TYPE_CODE_FIXED_POINT handling.
563 * p-typeprint.c (pascal_type_print_varspec_prefix)
564 (pascal_type_print_varspec_suffix): Likewise.
565 * typeprint.c (print_type_fixed_point): New function.
566 * typeprint.h (print_type_fixed_point): Add declaration.
567
b26daff9
JB
5682020-11-15 Joel Brobecker <brobecker@adacore.com>
569
570 * printcmd.c (print_scalar_formatted): Add fixed-point type
571 handling when options->format is set.
572
09584414
JB
5732020-11-15 Joel Brobecker <brobecker@adacore.com>
574
575 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
576 * dwarf2/read.c (get_dwarf2_rational_constant)
577 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
578 (has_zero_over_zero_small_attribute): New functions.
579 read_base_type, set_die_type): Add fixed-point type handling.
580 * gdb-gdb.py.in: Add fixed-point type handling.
581 * gdbtypes.c: #include "gmp-utils.h".
582 (create_range_type, set_type_code): Add fixed-point type handling.
583 (init_fixed_point_type): New function.
584 (is_integral_type, is_scalar_type): Add fixed-point type handling.
585 (print_fixed_point_type_info): New function.
586 (recursive_dump_type, copy_type_recursive): Add fixed-point type
587 handling.
588 (fixed_point_type_storage): New typedef.
589 (fixed_point_objfile_key): New static global.
590 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
591 (fixed_point_type_base_type, fixed_point_scaling_factor): New
592 functions.
593 * gdbtypes.h: #include "gmp-utils.h".
594 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
595 (union type_specific) <fixed_point_info>: New field.
596 (struct fixed_point_type_info): New struct.
597 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
598 (init_fixed_point_type, is_fixed_point_type)
599 (fixed_point_type_base_type, fixed_point_scaling_factor)
600 (allocate_fixed_point_type_info): Add declarations.
601 * valprint.c (generic_val_print_fixed_point): New function.
602 (generic_value_print): Add fixed-point type handling.
603 * value.c (value_as_address, unpack_long): Add fixed-point type
604 handling.
605
e55c6530
JB
6062020-11-15 Joel Brobecker <brobecker@adacore.com>
607
608 * utils.h (uinteger_pow): Add declaration.
609 * utils.c (uinteger_pow): Moved here (without changes)...
610 * valarith.c (uinteger_pow): ... from here.
611
b34c74ab
JB
6122020-11-15 Joel Brobecker <brobecker@adacore.com>
613
40d9d2fd 614 * gmp-utils.h, gmp-utils.c: New file.
b34c74ab
JB
615 * unittests/gmp-utils-selftests.c: New file.
616 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
617 unittests/gmp-utils-selftests.c.
618 (COMMON_SFILES) Add gmp-utils.c.
619 (HFILES_NO_SRCDIR): Add gmp-utils.h.
620
1b4ac058
JB
6212020-11-15 Joel Brobecker <brobecker@adacore.com>
622
623 * configure.ac: Generate an error if a usable GMP library
624 could not be found.
625 * configure: Regenerate.
626
2c947d9b
JB
6272020-11-15 Joel Brobecker <brobecker@adacore.com>
628
629 * configure.ac: Add support for --with-libgmp-prefix.
630 * Makefile.in (LIBGMP): New variable.
631 (CLIBS): Include $(LIBGMP).
632 * configure, config.in: Regenerate
633
9dd02fc0
AB
6342020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
635
636 PR cli/26879
637 * f-exp.y (COMPLETE): New token.
638 (exp): Two new rules for tab-completion.
639 (saw_name_at_eof): New static global.
640 (last_was_structop): Likewise.
641 (yylex): Set new variables, and return COMPLETE token at the end
642 of the input stream in some cases.
643
758cb810
TT
6442020-11-14 Tom Tromey <tom@tromey.com>
645
646 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
647
749065b7
TT
6482020-11-14 Tom Tromey <tom@tromey.com>
649
650 * opencl-lang.c (opencl_component_ref): Make "comps" const.
651
2c5b1849
SM
6522020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
653
654 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
655
e8b2f0d9
TT
6562020-11-13 Tom Tromey <tom@tromey.com>
657
658 * c-lang.c (convert_ucn, convert_octal, convert_hex)
659 (convert_escape, parse_one_string): Constify.
660
25f4c262
KS
6612020-11-13 Keith Seitz <keiths@redhat.com>
662
663 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
664 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
665 outside of ELF segments" warning for debugin
666
9d3ab915
KS
6672020-11-13 Keith Seitz <keiths@redhat.com>
668
669 PR gdb/23034
670 * elfread.c (elf_symfile_segments): Output a BFD file name
671 for the "Loadable section ... outside of ELF segments" warning.
672
9ecab40c
SM
6732020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
674
675 PR gdb/26835
676 * arm-tdep.c (class arm_instruction_reader): New.
677 (target_arm_instruction_reader): New.
678 (arm_analyze_prologue): Add instruction reader parameter and use
679 it. Use arm_expand_immediate.
680 (class target_arm_instruction_reader): Adjust.
681 (arm_skip_prologue): Adjust.
682 (arm_expand_immediate): New.
683 (arm_scan_prologue): Adjust.
684 (arm_analyze_prologue_test): New.
685 (class test_arm_instruction_reader): New.
686
5a7cf527
AB
6872020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
688
689 * f-lang.c (fortran_argument_convert): Add declaration. Add
690 header comment, taken from f-lang.h. Make static.
691 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
692 (fortran_argument_convert): Delete declaration.
693
7bea47f0
AB
6942020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
695
696 * ada-exp.y (find_primitive_type): Make parameter const.
697 * ada-lang.c (enum ada_primitive_types): Delete.
698 (ada_language::language_arch_info): Update.
699 * c-lang.c (enum c_primitive_types): Delete.
700 (c_language_arch_info): Update.
701 (enum cplus_primitive_types): Delete.
702 (cplus_language::language_arch_info): Update.
703 * d-lang.c (enum d_primitive_types): Delete.
704 (d_language::language_arch_info): Update.
705 * f-lang.c (enum f_primitive_types): Delete.
706 (f_language::language_arch_info): Update.
707 * go-lang.c (enum go_primitive_types): Delete.
708 (go_language::language_arch_info): Update.
709 * language.c (auto_or_unknown_language::language_arch_info):
710 Update.
711 (language_gdbarch_post_init): Use obstack_new, use array indexing.
712 (language_string_char_type): Add header comment, call function in
713 language_arch_info.
714 (language_bool_type): Likewise
715 (language_arch_info::bool_type): Define.
716 (language_lookup_primitive_type_1): Delete.
717 (language_lookup_primitive_type): Rewrite as a templated function
718 to call function in language_arch_info, then instantiate twice.
719 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
720 (language_arch_info::lookup_primitive_type_and_symbol): Define.
721 (language_arch_info::lookup_primitive_type): Define twice with
722 different signatures.
723 (language_arch_info::lookup_primitive_type_as_symbol): Define.
724 (language_lookup_primitive_type_as_symbol): Rewrite to call a
725 member function in language_arch_info.
726 * language.h (language_arch_info): Complete rewrite.
727 (language_lookup_primitive_type): Make templated.
728 * m2-lang.c (enum m2_primitive_types): Delete.
729 (m2_language::language_arch_info): Update.
730 * opencl-lang.c (OCL_P_TYPE): Delete.
731 (enum opencl_primitive_types): Delete.
732 (opencl_type_data): Delete.
733 (builtin_opencl_type): Delete.
734 (lookup_opencl_vector_type): Update.
735 (opencl_language::language_arch_info): Update, lots of content
736 moved from...
737 (build_opencl_types): ...here. This function is now deleted.
738 (_initialize_opencl_language): Delete.
739 * p-lang.c (enum pascal_primitive_types): Delete.
740 (pascal_language::language_arch_info): Update.
741 * rust-lang.c (enum rust_primitive_types): Delete.
742 (rust_language::language_arch_info): Update.
743
bf6e5d01
SM
7442020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
745
746 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
747 dwarf2_queue_guard.
748
1350c3b4
SM
7492020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
750
751 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
752 comment.
753
6f738b01
SM
7542020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
755
756 * dwarf2/read.c (dwarf_read_debug_printf,
757 dwarf_read_debug_printf_v): New macros, use throughout the file.
758
10c19fad
SV
7592020-11-12 Shahab Vahedi <shahab@synopsys.com>
760
10806efd 761 PR tdep/27015
10c19fad
SV
762 * arc-linux-tdep.c (collect_register): Populate "eret" by
763 "pc" value from the regcache when asked for "pc" value.
764
1f2624a3
TT
7652020-11-12 Tom Tromey <tom@tromey.com>
766
767 PR rust/26799:
768 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
769 exist.
770
ab33b152
AB
7712020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
772
773 * features/Makefile (XMLTOC): Add rx.xml.
774 (FEATURE_XMLFILES): Remove rx.xml.
775 (FEATURE_CFILES rule): Pass '-single-feature' flag.
776 * features/rx.c: Regenerate.
777 * features/rx.xml: Wrap in `target` tags, and reindent.
778 * target-descriptions.c (struct maint_print_c_tdesc_options): New
779 structure.
780 (maint_print_c_tdesc_opt_def): New typedef.
781 (maint_print_c_tdesc_opt_defs): New static global.
782 (make_maint_print_c_tdesc_options_def_group): New function.
783 (maint_print_c_tdesc_cmd): Make use of command line flags, only
784 print single feature C file for target descriptions containing a
785 single feature.
786 (maint_print_c_tdesc_cmd_completer): New function.
787 (_initialize_target_descriptions): Update call to register command
788 completer, and include command line flag in help text.
789
550820e1
AB
7902020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
791
792 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
793 numbers.
794 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
795 enum values.
796
baf20f76
TT
7972020-11-10 Tom Tromey <tom@tromey.com>
798
799 * value.h (internalvar_name): Update.
800 * value.c (internalvar_name): Make return type const.
801
caaece0e
TT
8022020-11-10 Tom Tromey <tom@tromey.com>
803
804 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
805 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
806 const.
807
8e20b4be
TT
8082020-11-10 Tom Tromey <tom@tromey.com>
809
810 * objc-lang.h (value_nsstring): Update.
811 * objc-lang.c (value_nsstring): Make "ptr" const.
812
86775fab
AB
8132020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
814
815 * expprint.c (print_subexp_funcall): Increment expression position
816 after reading argument count.
817 * f-lang.c (print_subexp_f): Skip over opcode before calling
818 common function.
819 (dump_subexp_body_f): Likewise.
820
3fed4c0b
RG
8212020-11-06 Romain Geissler <romain.geissler@amadeus.com>
822
823 PR python/26832
824 * configure: Regenerate.
825 * configure.ac: Check for python modules ctypes instead of
826 itertools.
827
ac3d4064
PA
8282020-11-06 Pedro Alves <pedro@palves.net>
829
830 * macroexp.c (struct macro_buffer): Split in two classes. Add
831 uses adjusted.
832 (struct shared_macro_buffer): New, factored out from struct
833 macro_buffer.
834 (struct growable_macro_buffer): New, factored out from struct
835 macro_buffer.
836 (set_token, get_comment, get_identifier, get_pp_number)
837 (get_character_constant, get_string_literal, get_punctuator)
838 (get_next_token_for_substitution): Constify parameters.
839 (substitute_args): Constify locals.
840
606decb2
TT
8412020-11-05 Tom Tromey <tom@tromey.com>
842
843 * dwarf2/read.c (read_cutu_die_from_dwo)
844 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
845 (build_type_psymtabs_1): Update.
846 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
847 parameter.
848 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
849 Don't read section. Add assert.
850
9c91c725
TT
8512020-11-04 Tom Tromey <tromey@adacore.com>
852
853 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
854
8d9fd3a1
TT
8552020-11-04 Tom Tromey <tromey@adacore.com>
856
857 * ada-typeprint.c (ada_print_type): Handle __T types.
858
d8f62e84
TT
8592020-11-04 Tom Tromey <tromey@adacore.com>
860
861 * dwarf2/read.c (add_partial_symbol, process_die):
862 Handle DW_TAG_array_type.
863 (is_type_tag_for_partial): Add "lang" parameter.
864 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
865
7ff5b937
TT
8662020-11-04 Tom Tromey <tromey@adacore.com>
867
868 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
869
10f6a3ad
TT
8702020-11-04 Tom Tromey <tromey@adacore.com>
871
872 * dwarf2/read.c (read_array_type): Only apply stride to innermost
873 array.
874
b72795a8
TT
8752020-11-04 Tom Tromey <tromey@adacore.com>
876
877 * gdbtypes.c (update_static_array_size): Handle bit stride.
878
24aa1b02
TT
8792020-11-04 Tom Tromey <tromey@adacore.com>
880
881 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
882
c9a28cbe
TT
8832020-11-04 Tom Tromey <tromey@adacore.com>
884
885 * ada-lang.c (ada_is_any_packed_array_type): New function.
886 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
887
57567375
TT
8882020-11-04 Tom Tromey <tromey@adacore.com>
889
890 * dwarf2/read.c (recognize_bound_expression)
891 (quirk_ada_thick_pointer): New functions.
892 (read_array_type): Call quirk_ada_thick_pointer.
893 (set_die_type): Add "skip_data_location" parameter.
894 (quirk_ada_thick_pointer): New function.
895 (process_structure_scope): Call quirk_ada_thick_pointer.
896 * ada-lang.c (ada_is_unconstrained_packed_array_type)
897 (decode_packed_array_bitsize): Handle thick pointers without
898 parallel types.
899 (ada_is_gnat_encoded_packed_array_type): Rename from
900 ada_is_packed_array_type.
901 (ada_is_constrained_packed_array_type): Update.
902 * ada-valprint.c (ada_val_print_gnat_array): Remove.
903 (ada_value_print_1): Use ada_get_decoded_value.
904
a7400e44
TT
9052020-11-04 Tom Tromey <tromey@adacore.com>
906
907 * ada-lang.c (recursively_update_array_bitsize): New function.
908 (decode_constrained_packed_array_type): Call it.
909
75fd6a26
TT
9102020-11-04 Tom Tromey <tromey@adacore.com>
911
912 * ada-lang.c (to_fixed_array_type): Error if
913 decode_constrained_packed_array_type returns NULL.
914
93f9561e
TT
9152020-11-04 Tom Tromey <tromey@adacore.com>
916
917 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
918
257e02d8
TT
9192020-11-02 Tom Tromey <tromey@adacore.com>
920
921 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
922 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
923 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
924 * amd64-ravenscar-thread.c: New file.
925 * amd64-ravenscar-thread.h: New file.
926 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
927 * configure.tgt (amd64_tobjs): Add ravenscar objects.
928
74d877e5
AB
9292020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
930
931 * main.c (execute_cmdargs): New function.
932 (captured_main_1): Make use of execute_cmdargs.
933
64aaad63
AB
9342020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
935
936 * NEWS: Mention changes to config file search path.
937 * main.c
938
5b3d3560
TT
9392020-11-02 Tom Tromey <tromey@adacore.com>
940
941 * python/python.c: Consolidate two HAVE_PYTHON blocks.
942 (python_GdbModuleDef): Move earlier. Now static.
943 (do_start_initialization): Consolidate some IS_PY3K blocks.
944
dda83cd7
SM
9452020-11-02 Simon Marchi <simon.marchi@efficios.com>
946
947 * aarch64-linux-tdep.c: Fix indentation.
948 * aarch64-ravenscar-thread.c: Fix indentation.
949 * aarch64-tdep.c: Fix indentation.
950 * aarch64-tdep.h: Fix indentation.
951 * ada-lang.c: Fix indentation.
952 * ada-lang.h: Fix indentation.
953 * ada-tasks.c: Fix indentation.
954 * ada-typeprint.c: Fix indentation.
955 * ada-valprint.c: Fix indentation.
956 * ada-varobj.c: Fix indentation.
957 * addrmap.c: Fix indentation.
958 * addrmap.h: Fix indentation.
959 * agent.c: Fix indentation.
960 * aix-thread.c: Fix indentation.
961 * alpha-bsd-nat.c: Fix indentation.
962 * alpha-linux-tdep.c: Fix indentation.
963 * alpha-mdebug-tdep.c: Fix indentation.
964 * alpha-nbsd-tdep.c: Fix indentation.
965 * alpha-obsd-tdep.c: Fix indentation.
966 * alpha-tdep.c: Fix indentation.
967 * amd64-bsd-nat.c: Fix indentation.
968 * amd64-darwin-tdep.c: Fix indentation.
969 * amd64-linux-nat.c: Fix indentation.
970 * amd64-linux-tdep.c: Fix indentation.
971 * amd64-nat.c: Fix indentation.
972 * amd64-obsd-tdep.c: Fix indentation.
973 * amd64-tdep.c: Fix indentation.
974 * amd64-windows-tdep.c: Fix indentation.
975 * annotate.c: Fix indentation.
976 * arc-tdep.c: Fix indentation.
977 * arch-utils.c: Fix indentation.
978 * arch/arm-get-next-pcs.c: Fix indentation.
979 * arch/arm.c: Fix indentation.
980 * arm-linux-nat.c: Fix indentation.
981 * arm-linux-tdep.c: Fix indentation.
982 * arm-nbsd-tdep.c: Fix indentation.
983 * arm-pikeos-tdep.c: Fix indentation.
984 * arm-tdep.c: Fix indentation.
985 * arm-tdep.h: Fix indentation.
986 * arm-wince-tdep.c: Fix indentation.
987 * auto-load.c: Fix indentation.
988 * auxv.c: Fix indentation.
989 * avr-tdep.c: Fix indentation.
990 * ax-gdb.c: Fix indentation.
991 * ax-general.c: Fix indentation.
992 * bfin-linux-tdep.c: Fix indentation.
993 * block.c: Fix indentation.
994 * block.h: Fix indentation.
995 * blockframe.c: Fix indentation.
996 * bpf-tdep.c: Fix indentation.
997 * break-catch-sig.c: Fix indentation.
998 * break-catch-syscall.c: Fix indentation.
999 * break-catch-throw.c: Fix indentation.
1000 * breakpoint.c: Fix indentation.
1001 * breakpoint.h: Fix indentation.
1002 * bsd-uthread.c: Fix indentation.
1003 * btrace.c: Fix indentation.
1004 * build-id.c: Fix indentation.
1005 * buildsym-legacy.h: Fix indentation.
1006 * buildsym.c: Fix indentation.
1007 * c-typeprint.c: Fix indentation.
1008 * c-valprint.c: Fix indentation.
1009 * c-varobj.c: Fix indentation.
1010 * charset.c: Fix indentation.
1011 * cli/cli-cmds.c: Fix indentation.
1012 * cli/cli-decode.c: Fix indentation.
1013 * cli/cli-decode.h: Fix indentation.
1014 * cli/cli-script.c: Fix indentation.
1015 * cli/cli-setshow.c: Fix indentation.
1016 * coff-pe-read.c: Fix indentation.
1017 * coffread.c: Fix indentation.
1018 * compile/compile-cplus-types.c: Fix indentation.
1019 * compile/compile-object-load.c: Fix indentation.
1020 * compile/compile-object-run.c: Fix indentation.
1021 * completer.c: Fix indentation.
1022 * corefile.c: Fix indentation.
1023 * corelow.c: Fix indentation.
1024 * cp-abi.h: Fix indentation.
1025 * cp-namespace.c: Fix indentation.
1026 * cp-support.c: Fix indentation.
1027 * cp-valprint.c: Fix indentation.
1028 * cris-linux-tdep.c: Fix indentation.
1029 * cris-tdep.c: Fix indentation.
1030 * darwin-nat-info.c: Fix indentation.
1031 * darwin-nat.c: Fix indentation.
1032 * darwin-nat.h: Fix indentation.
1033 * dbxread.c: Fix indentation.
1034 * dcache.c: Fix indentation.
1035 * disasm.c: Fix indentation.
1036 * dtrace-probe.c: Fix indentation.
1037 * dwarf2/abbrev.c: Fix indentation.
1038 * dwarf2/attribute.c: Fix indentation.
1039 * dwarf2/expr.c: Fix indentation.
1040 * dwarf2/frame.c: Fix indentation.
1041 * dwarf2/index-cache.c: Fix indentation.
1042 * dwarf2/index-write.c: Fix indentation.
1043 * dwarf2/line-header.c: Fix indentation.
1044 * dwarf2/loc.c: Fix indentation.
1045 * dwarf2/macro.c: Fix indentation.
1046 * dwarf2/read.c: Fix indentation.
1047 * dwarf2/read.h: Fix indentation.
1048 * elfread.c: Fix indentation.
1049 * eval.c: Fix indentation.
1050 * event-top.c: Fix indentation.
1051 * exec.c: Fix indentation.
1052 * exec.h: Fix indentation.
1053 * expprint.c: Fix indentation.
1054 * f-lang.c: Fix indentation.
1055 * f-typeprint.c: Fix indentation.
1056 * f-valprint.c: Fix indentation.
1057 * fbsd-nat.c: Fix indentation.
1058 * fbsd-tdep.c: Fix indentation.
1059 * findvar.c: Fix indentation.
1060 * fork-child.c: Fix indentation.
1061 * frame-unwind.c: Fix indentation.
1062 * frame-unwind.h: Fix indentation.
1063 * frame.c: Fix indentation.
1064 * frv-linux-tdep.c: Fix indentation.
1065 * frv-tdep.c: Fix indentation.
1066 * frv-tdep.h: Fix indentation.
1067 * ft32-tdep.c: Fix indentation.
1068 * gcore.c: Fix indentation.
1069 * gdb_bfd.c: Fix indentation.
1070 * gdbarch.sh: Fix indentation.
1071 * gdbarch.c: Re-generate
1072 * gdbarch.h: Re-generate.
1073 * gdbcore.h: Fix indentation.
1074 * gdbthread.h: Fix indentation.
1075 * gdbtypes.c: Fix indentation.
1076 * gdbtypes.h: Fix indentation.
1077 * glibc-tdep.c: Fix indentation.
1078 * gnu-nat.c: Fix indentation.
1079 * gnu-nat.h: Fix indentation.
1080 * gnu-v2-abi.c: Fix indentation.
1081 * gnu-v3-abi.c: Fix indentation.
1082 * go32-nat.c: Fix indentation.
1083 * guile/guile-internal.h: Fix indentation.
1084 * guile/scm-cmd.c: Fix indentation.
1085 * guile/scm-frame.c: Fix indentation.
1086 * guile/scm-iterator.c: Fix indentation.
1087 * guile/scm-math.c: Fix indentation.
1088 * guile/scm-ports.c: Fix indentation.
1089 * guile/scm-pretty-print.c: Fix indentation.
1090 * guile/scm-value.c: Fix indentation.
1091 * h8300-tdep.c: Fix indentation.
1092 * hppa-linux-nat.c: Fix indentation.
1093 * hppa-linux-tdep.c: Fix indentation.
1094 * hppa-nbsd-nat.c: Fix indentation.
1095 * hppa-nbsd-tdep.c: Fix indentation.
1096 * hppa-obsd-nat.c: Fix indentation.
1097 * hppa-tdep.c: Fix indentation.
1098 * hppa-tdep.h: Fix indentation.
1099 * i386-bsd-nat.c: Fix indentation.
1100 * i386-darwin-nat.c: Fix indentation.
1101 * i386-darwin-tdep.c: Fix indentation.
1102 * i386-dicos-tdep.c: Fix indentation.
1103 * i386-gnu-nat.c: Fix indentation.
1104 * i386-linux-nat.c: Fix indentation.
1105 * i386-linux-tdep.c: Fix indentation.
1106 * i386-nto-tdep.c: Fix indentation.
1107 * i386-obsd-tdep.c: Fix indentation.
1108 * i386-sol2-nat.c: Fix indentation.
1109 * i386-tdep.c: Fix indentation.
1110 * i386-tdep.h: Fix indentation.
1111 * i386-windows-tdep.c: Fix indentation.
1112 * i387-tdep.c: Fix indentation.
1113 * i387-tdep.h: Fix indentation.
1114 * ia64-libunwind-tdep.c: Fix indentation.
1115 * ia64-libunwind-tdep.h: Fix indentation.
1116 * ia64-linux-nat.c: Fix indentation.
1117 * ia64-linux-tdep.c: Fix indentation.
1118 * ia64-tdep.c: Fix indentation.
1119 * ia64-tdep.h: Fix indentation.
1120 * ia64-vms-tdep.c: Fix indentation.
1121 * infcall.c: Fix indentation.
1122 * infcmd.c: Fix indentation.
1123 * inferior.c: Fix indentation.
1124 * infrun.c: Fix indentation.
1125 * iq2000-tdep.c: Fix indentation.
1126 * language.c: Fix indentation.
1127 * linespec.c: Fix indentation.
1128 * linux-fork.c: Fix indentation.
1129 * linux-nat.c: Fix indentation.
1130 * linux-tdep.c: Fix indentation.
1131 * linux-thread-db.c: Fix indentation.
1132 * lm32-tdep.c: Fix indentation.
1133 * m2-lang.c: Fix indentation.
1134 * m2-typeprint.c: Fix indentation.
1135 * m2-valprint.c: Fix indentation.
1136 * m32c-tdep.c: Fix indentation.
1137 * m32r-linux-tdep.c: Fix indentation.
1138 * m32r-tdep.c: Fix indentation.
1139 * m68hc11-tdep.c: Fix indentation.
1140 * m68k-bsd-nat.c: Fix indentation.
1141 * m68k-linux-nat.c: Fix indentation.
1142 * m68k-linux-tdep.c: Fix indentation.
1143 * m68k-tdep.c: Fix indentation.
1144 * machoread.c: Fix indentation.
1145 * macrocmd.c: Fix indentation.
1146 * macroexp.c: Fix indentation.
1147 * macroscope.c: Fix indentation.
1148 * macrotab.c: Fix indentation.
1149 * macrotab.h: Fix indentation.
1150 * main.c: Fix indentation.
1151 * mdebugread.c: Fix indentation.
1152 * mep-tdep.c: Fix indentation.
1153 * mi/mi-cmd-catch.c: Fix indentation.
1154 * mi/mi-cmd-disas.c: Fix indentation.
1155 * mi/mi-cmd-env.c: Fix indentation.
1156 * mi/mi-cmd-stack.c: Fix indentation.
1157 * mi/mi-cmd-var.c: Fix indentation.
1158 * mi/mi-cmds.c: Fix indentation.
1159 * mi/mi-main.c: Fix indentation.
1160 * mi/mi-parse.c: Fix indentation.
1161 * microblaze-tdep.c: Fix indentation.
1162 * minidebug.c: Fix indentation.
1163 * minsyms.c: Fix indentation.
1164 * mips-linux-nat.c: Fix indentation.
1165 * mips-linux-tdep.c: Fix indentation.
1166 * mips-nbsd-tdep.c: Fix indentation.
1167 * mips-tdep.c: Fix indentation.
1168 * mn10300-linux-tdep.c: Fix indentation.
1169 * mn10300-tdep.c: Fix indentation.
1170 * moxie-tdep.c: Fix indentation.
1171 * msp430-tdep.c: Fix indentation.
1172 * namespace.h: Fix indentation.
1173 * nat/fork-inferior.c: Fix indentation.
1174 * nat/gdb_ptrace.h: Fix indentation.
1175 * nat/linux-namespaces.c: Fix indentation.
1176 * nat/linux-osdata.c: Fix indentation.
1177 * nat/netbsd-nat.c: Fix indentation.
1178 * nat/x86-dregs.c: Fix indentation.
1179 * nbsd-nat.c: Fix indentation.
1180 * nbsd-tdep.c: Fix indentation.
1181 * nios2-linux-tdep.c: Fix indentation.
1182 * nios2-tdep.c: Fix indentation.
1183 * nto-procfs.c: Fix indentation.
1184 * nto-tdep.c: Fix indentation.
1185 * objfiles.c: Fix indentation.
1186 * objfiles.h: Fix indentation.
1187 * opencl-lang.c: Fix indentation.
1188 * or1k-tdep.c: Fix indentation.
1189 * osabi.c: Fix indentation.
1190 * osabi.h: Fix indentation.
1191 * osdata.c: Fix indentation.
1192 * p-lang.c: Fix indentation.
1193 * p-typeprint.c: Fix indentation.
1194 * p-valprint.c: Fix indentation.
1195 * parse.c: Fix indentation.
1196 * ppc-linux-nat.c: Fix indentation.
1197 * ppc-linux-tdep.c: Fix indentation.
1198 * ppc-nbsd-nat.c: Fix indentation.
1199 * ppc-nbsd-tdep.c: Fix indentation.
1200 * ppc-obsd-nat.c: Fix indentation.
1201 * ppc-ravenscar-thread.c: Fix indentation.
1202 * ppc-sysv-tdep.c: Fix indentation.
1203 * ppc64-tdep.c: Fix indentation.
1204 * printcmd.c: Fix indentation.
1205 * proc-api.c: Fix indentation.
1206 * producer.c: Fix indentation.
1207 * producer.h: Fix indentation.
1208 * prologue-value.c: Fix indentation.
1209 * prologue-value.h: Fix indentation.
1210 * psymtab.c: Fix indentation.
1211 * python/py-arch.c: Fix indentation.
1212 * python/py-bpevent.c: Fix indentation.
1213 * python/py-event.c: Fix indentation.
1214 * python/py-event.h: Fix indentation.
1215 * python/py-finishbreakpoint.c: Fix indentation.
1216 * python/py-frame.c: Fix indentation.
1217 * python/py-framefilter.c: Fix indentation.
1218 * python/py-inferior.c: Fix indentation.
1219 * python/py-infthread.c: Fix indentation.
1220 * python/py-objfile.c: Fix indentation.
1221 * python/py-prettyprint.c: Fix indentation.
1222 * python/py-registers.c: Fix indentation.
1223 * python/py-signalevent.c: Fix indentation.
1224 * python/py-stopevent.c: Fix indentation.
1225 * python/py-stopevent.h: Fix indentation.
1226 * python/py-threadevent.c: Fix indentation.
1227 * python/py-tui.c: Fix indentation.
1228 * python/py-unwind.c: Fix indentation.
1229 * python/py-value.c: Fix indentation.
1230 * python/py-xmethods.c: Fix indentation.
1231 * python/python-internal.h: Fix indentation.
1232 * python/python.c: Fix indentation.
1233 * ravenscar-thread.c: Fix indentation.
1234 * record-btrace.c: Fix indentation.
1235 * record-full.c: Fix indentation.
1236 * record.c: Fix indentation.
1237 * reggroups.c: Fix indentation.
1238 * regset.h: Fix indentation.
1239 * remote-fileio.c: Fix indentation.
1240 * remote.c: Fix indentation.
1241 * reverse.c: Fix indentation.
1242 * riscv-linux-tdep.c: Fix indentation.
1243 * riscv-ravenscar-thread.c: Fix indentation.
1244 * riscv-tdep.c: Fix indentation.
1245 * rl78-tdep.c: Fix indentation.
1246 * rs6000-aix-tdep.c: Fix indentation.
1247 * rs6000-lynx178-tdep.c: Fix indentation.
1248 * rs6000-nat.c: Fix indentation.
1249 * rs6000-tdep.c: Fix indentation.
1250 * rust-lang.c: Fix indentation.
1251 * rx-tdep.c: Fix indentation.
1252 * s12z-tdep.c: Fix indentation.
1253 * s390-linux-tdep.c: Fix indentation.
1254 * score-tdep.c: Fix indentation.
1255 * ser-base.c: Fix indentation.
1256 * ser-mingw.c: Fix indentation.
1257 * ser-uds.c: Fix indentation.
1258 * ser-unix.c: Fix indentation.
1259 * serial.c: Fix indentation.
1260 * sh-linux-tdep.c: Fix indentation.
1261 * sh-nbsd-tdep.c: Fix indentation.
1262 * sh-tdep.c: Fix indentation.
1263 * skip.c: Fix indentation.
1264 * sol-thread.c: Fix indentation.
1265 * solib-aix.c: Fix indentation.
1266 * solib-darwin.c: Fix indentation.
1267 * solib-frv.c: Fix indentation.
1268 * solib-svr4.c: Fix indentation.
1269 * solib.c: Fix indentation.
1270 * source.c: Fix indentation.
1271 * sparc-linux-tdep.c: Fix indentation.
1272 * sparc-nbsd-tdep.c: Fix indentation.
1273 * sparc-obsd-tdep.c: Fix indentation.
1274 * sparc-ravenscar-thread.c: Fix indentation.
1275 * sparc-tdep.c: Fix indentation.
1276 * sparc64-linux-tdep.c: Fix indentation.
1277 * sparc64-nbsd-tdep.c: Fix indentation.
1278 * sparc64-obsd-tdep.c: Fix indentation.
1279 * sparc64-tdep.c: Fix indentation.
1280 * stabsread.c: Fix indentation.
1281 * stack.c: Fix indentation.
1282 * stap-probe.c: Fix indentation.
1283 * stubs/ia64vms-stub.c: Fix indentation.
1284 * stubs/m32r-stub.c: Fix indentation.
1285 * stubs/m68k-stub.c: Fix indentation.
1286 * stubs/sh-stub.c: Fix indentation.
1287 * stubs/sparc-stub.c: Fix indentation.
1288 * symfile-mem.c: Fix indentation.
1289 * symfile.c: Fix indentation.
1290 * symfile.h: Fix indentation.
1291 * symmisc.c: Fix indentation.
1292 * symtab.c: Fix indentation.
1293 * symtab.h: Fix indentation.
1294 * target-float.c: Fix indentation.
1295 * target.c: Fix indentation.
1296 * target.h: Fix indentation.
1297 * tic6x-tdep.c: Fix indentation.
1298 * tilegx-linux-tdep.c: Fix indentation.
1299 * tilegx-tdep.c: Fix indentation.
1300 * top.c: Fix indentation.
1301 * tracefile-tfile.c: Fix indentation.
1302 * tracepoint.c: Fix indentation.
1303 * tui/tui-disasm.c: Fix indentation.
1304 * tui/tui-io.c: Fix indentation.
1305 * tui/tui-regs.c: Fix indentation.
1306 * tui/tui-stack.c: Fix indentation.
1307 * tui/tui-win.c: Fix indentation.
1308 * tui/tui-winsource.c: Fix indentation.
1309 * tui/tui.c: Fix indentation.
1310 * typeprint.c: Fix indentation.
1311 * ui-out.h: Fix indentation.
1312 * unittests/copy_bitwise-selftests.c: Fix indentation.
1313 * unittests/memory-map-selftests.c: Fix indentation.
1314 * utils.c: Fix indentation.
1315 * v850-tdep.c: Fix indentation.
1316 * valarith.c: Fix indentation.
1317 * valops.c: Fix indentation.
1318 * valprint.c: Fix indentation.
1319 * valprint.h: Fix indentation.
1320 * value.c: Fix indentation.
1321 * value.h: Fix indentation.
1322 * varobj.c: Fix indentation.
1323 * vax-tdep.c: Fix indentation.
1324 * windows-nat.c: Fix indentation.
1325 * windows-tdep.c: Fix indentation.
1326 * xcoffread.c: Fix indentation.
1327 * xml-syscall.c: Fix indentation.
1328 * xml-tdesc.c: Fix indentation.
1329 * xstormy16-tdep.c: Fix indentation.
1330 * xtensa-config.c: Fix indentation.
1331 * xtensa-linux-nat.c: Fix indentation.
1332 * xtensa-linux-tdep.c: Fix indentation.
1333 * xtensa-tdep.c: Fix indentation.
1334
e1f57067
AB
13352020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1336 Craig Blackmore <craig.blackmore@embecosm.com>
1337
1338 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
1339 as an unsigned value.
1340
ae7754b2
TT
13412020-11-01 Tom Tromey <tom@tromey.com>
1342
1343 * dbxread.c (dbx_end_psymtab): Update.
1344 * dwarf2/read.c (process_psymtab_comp_unit_reader)
1345 (build_type_psymtabs_reader): Update.
1346 * xcoffread.c (xcoff_end_psymtab): Update.
1347 * ctfread.c (scan_partial_symbols): Update.
1348 * psymtab.c (sort_pst_symbols): Remove.
1349 (partial_symtab::end): Rename from end_psymtab_common. Inline
1350 sort_pst_symbols.
1351 * psympriv.h (struct partial_symtab) <end>: New method.
1352 (end_psymtab_common): Don't declare.
1353
0684bb51
TT
13542020-11-01 Tom Tromey <tom@tromey.com>
1355
1356 * symmisc.c (count_psyms): New function.
1357 (print_objfile_statistics): Use it.
1358 * psymtab.c (append_psymbol_to_list): Remove.
1359 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
1360 * objfiles.h (struct objstats) <n_psyms>: Remove.
1361
089002bb
TT
13622020-11-01 Tom Tromey <tom@tromey.com>
1363
1364 * dbxread.c (dbx_end_psymtab): Update.
1365 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
1366 (build_type_psymtabs_reader): Update.
1367 * xcoffread.c (xcoff_end_psymtab): Update.
1368 * ctfread.c (scan_partial_symbols): Update.
1369 * psympriv.h (end_psymtab_common): Update.
1370 * psymtab.c (end_psymtab_common): Remove objfile parameter.
1371 (sort_pst_symbols): Likewise.
1372
525454d6
TT
13732020-11-01 Tom Tromey <tom@tromey.com>
1374
1375 * dbxread.c (dbx_symfile_read): Update.
1376 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
1377 * xcoffread.c (xcoff_initial_scan): Update.
1378 * psympriv.h (init_psymbol_list): Don't declare.
1379 * psymtab.c (init_psymbol_list): Remove.
1380
60bd1d53
JB
13812020-11-01 Joel Brobecker <brobecker@adacore.com>
1382
1383 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
1384 gnat_encoded_fixed_type_info. Update all callers.
1385
db99d0d0
JB
13862020-11-01 Joel Brobecker <brobecker@adacore.com>
1387
1388 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
1389 line too long.
1390
75f24e86
JB
13912020-11-01 Joel Brobecker <brobecker@adacore.com>
1392
1393 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
1394 cast_from_fixed. Update all callers.
1395 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
1396 Update all callers.
1397 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
1398 Update all callers.
1399 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
1400 ada_scaling_factor.
1401 * ada-typeprint.c: Replace call to ada_scaling_factor by call
1402 to print_gnat_encoded_fixed_point_type.
1403 * ada-valprint.c: Likewise.
1404
4f0469cd
AB
14052020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1406
1407 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
1408 (debug_prefixed_printf): Add check of debug_displaced flag.
1409 * linux-nat.c (linux_nat_debug_printf): Add check of
1410 debug_linux_nat flag.
1411
17417fb0
SM
14122020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1413
1414 * infrun.c (infrun_debug_printf_1): Remove.
1415 (displaced_debug_printf_1): Remove.
1416 (stop_all_threads): Use debug_prefixed_printf.
1417 * infrun.h (infrun_debug_printf_1): Remove.
1418 (infrun_debug_printf): Use debug_prefixed_printf.
1419 (displaced_debug_printf_1): Remove.
1420 (displaced_debug_printf): Use debug_prefixed_printf.
1421 * linux-nat.c (linux_nat_debug_printf_1): Remove.
1422 (linux_nat_debug_printf): Use debug_prefixed_printf.
1423
ad6dba1c
SM
14242020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1425
1426 * configure: Re-generate.
1427 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
1428 AC_LANG_PROGRAM.
1429
b6fb30ed
SM
14302020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1431
1432 * configure: Re-generate.
1433
5164c117
SM
14342020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1435
1436 * configure: Re-generate.
1437
864ca435
SM
14382020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1439
1440 * configure: Re-generate.
1441
b9442ec1
SM
14422020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1443
1444 * configure: Re-generate.
1445
294f2697
SM
14462020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1447
1448 * acinclude.m4: Modernize.
1449 * configure: Re-generate.
1450
5593a99a
SM
14512020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1452
1453 * configure.ac: Modernize.
1454 * configure: Re-generate.
1455
e41fda1d
SM
14562020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1457
1458 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
1459 * configure: Re-generate.
1460 * configure.ac: Remove AM_PROG_CC_STDC.
1461
91e1a0ed
SM
14622020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1463
1464 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
1465 AC_CANONICAL_SYSTEM.
1466 * configure: Re-generate.
1467
136821d9
SM
14682020-10-30 Simon Marchi <simon.marchi@efficios.com>
1469
1470 * infrun.h (displaced_debug_printf): New macro. Replace
1471 displaced debug prints throughout to use it.
1472 (displaced_debug_printf_1): New declaration.
1473 (displaced_step_dump_bytes): Return string, remove ui_file
1474 parameter, update all callers.
1475 * infrun.c (displaced_debug_printf_1): New function.
1476 (displaced_step_dump_bytes): Return string, remove ui_file
1477 parameter
1478
aa2045e7
SM
14792020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
1480
1481 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
1482
b1ec2735
TT
14832020-10-30 Tom Tromey <tromey@adacore.com>
1484
1485 * Makefile.in (stamp-init): Depend on config.status.
1486
b78b3a29
TBA
14872020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1488
1489 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
1490
d70bdd3c
PA
14912020-10-30 Pedro Alves <pedro@palves.net>
1492
1493 * thread.c (lookup_selected_frame): Move ...
1494 * frame.c (lookup_selected_frame): ... here.
1495
79952e69
PA
14962020-10-30 Pedro Alves <pedro@palves.net>
1497
1498 * blockframe.c (block_innermost_frame): Use get_selected_frame.
1499 * frame.c
1500 (scoped_restore_selected_frame::scoped_restore_selected_frame):
1501 Use save_selected_frame. Save language as well.
1502 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
1503 Use restore_selected_frame, and restore language as well.
1504 (selected_frame_id, selected_frame_level): New.
1505 (selected_frame): Update comments.
1506 (save_selected_frame, restore_selected_frame): New.
1507 (get_selected_frame): Use lookup_selected_frame.
1508 (get_selected_frame_if_set): Delete.
1509 (select_frame): Record selected_frame_level and selected_frame_id.
1510 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
1511 fields.
1512 (get_selected_frame): Make 'message' parameter optional.
1513 (get_selected_frame_if_set): Delete declaration.
1514 (select_frame): Update comments.
1515 (save_selected_frame, restore_selected_frame)
1516 (lookup_selected_frame): Declare.
1517 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
1518 * infrun.c (struct infcall_control_state) <selected_frame_level>:
1519 New field.
1520 (save_infcall_control_state): Use save_selected_frame.
1521 (restore_selected_frame): Delete.
1522 (restore_infcall_control_state): Use restore_selected_frame.
1523 * stack.c (select_frame_command_core, frame_command_core): Use
1524 get_selected_frame.
1525 * thread.c (restore_selected_frame): Rename to ...
1526 (lookup_selected_frame): ... this and make extern. Select the
1527 current frame if the frame level is -1.
1528 (scoped_restore_current_thread::restore): Also restore the
1529 language.
1530 (scoped_restore_current_thread::~scoped_restore_current_thread):
1531 Don't try/catch.
1532 (scoped_restore_current_thread::scoped_restore_current_thread):
1533 Save the language as well. Use save_selected_frame.
1534
58103c33
SM
15352020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1536
1537 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
1538 documentation.
1539 * gdbarch.h: Re-generate.
1540
40a53766
SM
15412020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1542
1543 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
1544 parameter.
1545 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
1546 Likewise.
1547 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1548 Likewise.
1549 * arch-utils.c (default_displaced_step_hw_singlestep):
1550 Likewise.
1551 * arch-utils.h (default_displaced_step_hw_singlestep):
1552 Likewise.
1553 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
1554 Likewise.
1555 * s390-tdep.c (s390_displaced_step_hw_singlestep):
1556 Likewise.
1557 * gdbarch.c: Re-generate.
1558 * gdbarch.h: Re-generate.
1559 * infrun.c (resume_1): Adjust.
1560
8407f91b
TT
15612020-10-29 Tom Tromey <tom@tromey.com>
1562
1563 * progspace.c (program_space::~program_space): Don't call
1564 exec_close.
1565
5008b3b2
TT
15662020-10-29 Tom Tromey <tom@tromey.com>
1567
1568 * exec.c (exec_target::close): Don't change current program
1569 space.
1570
d9eebde0
TT
15712020-10-29 Tom Tromey <tom@tromey.com>
1572
1573 * symfile.c (add_symbol_file_command): Update.
1574 * exec.c (program_space::add_target_sections): Rename.
1575 * symfile-mem.c (symbol_file_add_from_memory): Update.
1576 * progspace.h (struct program_space) <add_target_sections>:
1577 Declare new overload.
1578 * exec.h (add_target_sections_of_objfile): Don't declare.
1579
3769e227
TT
15802020-10-29 Tom Tromey <tom@tromey.com>
1581
1582 * solib.c (solib_map_sections): Update.
1583 * exec.c (program_space::add_target_sections): Now a method.
1584 (exec_file_attach): Update.
1585 * exec.h (add_target_sections): Don't declare.
1586 * progspace.h (struct program_space) <add_target_sections>:
1587 Declare.
1588
2a3f84af
TT
15892020-10-29 Tom Tromey <tom@tromey.com>
1590
1591 * progspace.h (struct program_space) <remove_target_sections>:
1592 Declare.
1593 * exec.c (program_space::remove_target_sections): Now a method.
1594 * exec.h (remove_target_sections): Don't declare.
1595
004eecfd
TT
15962020-10-29 Tom Tromey <tom@tromey.com>
1597
1598 * inferior.c (delete_inferior): Update.
1599 * progspace.c (program_space::empty): Rename from
1600 program_space_empty_p. Return bool.
1601 * progspace.h (struct program_space) <empty>: New method.
1602 (program_space_empty_p): Don't declare.
1603
e39fb971
TT
16042020-10-29 Tom Tromey <tom@tromey.com>
1605
1606 * progspace.c (program_space::~program_space): Don't call
1607 clear_program_space_solib_cache.
1608 (program_space::clear_solib_cache): Rename from
1609 clear_solib_cache.
1610 * solib.c (handle_solib_event): Update.
1611 * progspace.h (struct program_space) <clear_solib_cache>: New
1612 method.
1613 (clear_program_space_solib_cache): Don't declare.
1614
a42d7dd8
TT
16152020-10-29 Tom Tromey <tom@tromey.com>
1616
1617 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1618 * target.c (info_target_command): Update.
1619 * symfile.c (syms_from_objfile_1, finish_new_objfile)
1620 (symbol_file_clear, reread_symbols): Update.
1621 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
1622 * stabsread.c (scan_file_globals): Update.
1623 * solib.c (update_solib_list): Update.
1624 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
1625 (svr4_fetch_objfile_link_map, enable_break)
1626 (svr4_relocate_main_executable)
1627 (svr4_iterate_over_objfiles_in_search_order): Update.
1628 * solib-frv.c (lm_base, enable_break)
1629 (frv_relocate_main_executable): Update.
1630 (main_got, frv_fdpic_find_canonical_descriptor): Update.
1631 (frv_fetch_objfile_link_map): Update.
1632 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
1633 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
1634 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
1635 * remote.c (remote_target::get_offsets): Update.
1636 (remote_target::start_remote)
1637 (extended_remote_target::post_attach): Update.
1638 * objfiles.c (entry_point_address_query): Update.
1639 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
1640 * minsyms.c (get_symbol_leading_char): Update.
1641 * frame.c (inside_main_func): Update.
1642 * progspace.h (symfile_objfile): Remove macro.
1643
19f6550e
TT
16442020-10-29 Tom Tromey <tom@tromey.com>
1645
1646 * exec.c (exec_file_attach): Update.
1647 * progspace.c (program_space::exec_close): Update.
1648 * progspace.h (struct program_space) <ebfd>: Now a
1649 gdb_bfd_ref_ptr.
1650 <set_exec_bfd>: Change argument type.
1651 <exec_bfd>: Update.
1652
7e10abd1
TT
16532020-10-29 Tom Tromey <tom@tromey.com>
1654
1655 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1656 * symfile.c (reread_symbols): Update.
1657 * symfile-mem.c (add_symbol_file_from_memory_command)
1658 (add_vsyscall_page): Update.
1659 * source-cache.c (source_cache::get_plain_source_lines): Update.
1660 * solib-svr4.c (find_program_interpreter, elf_locate_base)
1661 (svr4_current_sos_direct, svr4_exec_displacement)
1662 (svr4_relocate_main_executable): Update.
1663 (svr4_iterate_over_objfiles_in_search_order): Update.
1664 * solib-frv.c (enable_break2, enable_break): Update.
1665 * solib-dsbt.c (lm_base, enable_break): Update.
1666 * solib-darwin.c (find_program_interpreter)
1667 (darwin_solib_create_inferior_hook): Update.
1668 * sol-thread.c (rw_common, ps_pdmodel): Update.
1669 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
1670 * remote.c (compare_sections_command)
1671 (remote_target::trace_set_readonly_regions): Update.
1672 * remote-sim.c (get_sim_inferior_data)
1673 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
1674 (gdbsim_target_open, gdbsim_target::files_info): Update.
1675 * exec.h (exec_bfd): Remove macro.
1676 * progspace.c (initialize_progspace): Update.
1677 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
1678 Update.
1679 * nto-procfs.c (nto_procfs_target::post_attach)
1680 (nto_procfs_target::create_inferior): Update.
1681 * maint.c (maintenance_info_sections): Update.
1682 * linux-thread-db.c (thread_db_target::get_thread_local_address):
1683 Update.
1684 * infcmd.c (post_create_inferior): Update.
1685 * gcore.c (default_gcore_arch, default_gcore_target): Update.
1686 (objfile_find_memory_regions): Update.
1687 * exec.c (validate_exec_file, exec_file_attach)
1688 (exec_read_partial_read_only, print_section_info): Update.
1689 * corelow.c (core_target_open): Update.
1690 * corefile.c (reopen_exec_file, validate_files): Update.
1691 * arm-tdep.c (gdb_print_insn_arm): Update.
1692 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
1693 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
1694 methods.
1695
b55221ab
TT
16962020-10-29 Tom Tromey <tom@tromey.com>
1697
1698 * progspace.h (current_target_sections): Remove macro.
1699 * solib-svr4.c (scan_dyntag): Update.
1700 * solib-dsbt.c (scan_dyntag): Update.
1701 * exec.c (exec_target::close): Update.
1702 (add_target_sections, add_target_sections_of_objfile)
1703 (remove_target_sections, exec_target::get_section_table)
1704 (exec_target::files_info, set_section_command)
1705 (exec_set_section_address, exec_target::has_memory)
1706 (exec_target::has_memory): Update.
1707
5a36e715
TT
17082020-10-29 Tom Tromey <tom@tromey.com>
1709
1710 * source-cache.c (source_cache::get_plain_source_lines): Use
1711 current_program_space.
1712 * corefile.c (reopen_exec_file): Use current_program_space.
1713 * exec.c (exec_file_attach): Use current_program_space.
1714 * exec.h (exec_bfd_mtime): Remove.
1715
784c8592
TT
17162020-10-29 Tom Tromey <tom@tromey.com>
1717
1718 * gcore.c (default_gcore_mach): Remove.
1719 (create_gcore_bfd): Update.
1720
8a4f1402
TT
17212020-10-29 Tom Tromey <tom@tromey.com>
1722
1723 * progspace.c (program_space::exec_close): New method, from
1724 exec_close in exec.c.
1725 * exec.c (exec_close): Move to progspace.c.
1726 (exec_target::close, exec_file_attach): Update.
1727 * progspace.h (struct program_space) <exec_close>: Declare
1728 method.
1729
c20cb686
TT
17302020-10-29 Tom Tromey <tom@tromey.com>
1731
1732 * progspace.h (struct program_space) <exec_filename>: Rename from
1733 pspace_exec_filename. Now a unique_xmalloc_ptr.
1734 * inferior.c (print_selected_inferior): Update.
1735 (print_inferior): Update.
1736 * mi/mi-main.c (print_one_inferior): Update.
1737 * exec.h (exec_filename): Remove macro.
1738 * corefile.c (get_exec_file): Update.
1739 * exec.c (exec_close): Update.
1740 (exec_file_attach): Update.
1741 * progspace.c (clone_program_space): Update.
1742 (print_program_space): Update.
1743
6be2a9ab
TT
17442020-10-29 Tom Tromey <tom@tromey.com>
1745
1746 * target-section.h (struct target_section): Add constructor.
1747 * exec.c (build_section_table, add_target_sections_of_objfile):
1748 Update.
1749 * corelow.c (core_target::build_file_mappings): Update.
1750
cfaa8f76
TBA
17512020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1752
1753 PR gdb/19318
1754 * inferior.c (detach_inferior_command): Restore the current thread.
1755 (kill_inferior_command): Ditto.
1756
1b00ef06
TV
17572020-10-28 Tom de Vries <tdevries@suse.de>
1758
1759 PR symtab/26772
1760 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
1761 map, check it in the "best match" loop.
1762
7f40ce1a
SM
17632020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1764
1765 * m32c-tdep.c: Remove unused includes.
1766
5eb9e3f5
SM
17672020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1768
1769 * xtensa-tdep.c: Remove includes.
1770
b1d4d8d1
TBA
17712020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1772
1773 * breakpoint.c (struct condition_command_opts): New struct.
1774 (condition_command_option_defs): New static global.
1775 (make_condition_command_options_def_group): New function.
1776 (condition_completer): Update to consider the '-force' flag.
1777 (condition_command): Use gdb::option for the '-force' flag.
1778
bd24c5d6
TV
17792020-10-27 Tom de Vries <tdevries@suse.de>
1780
1781 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
1782 symbols in section check.
1783
61eb46a4
TV
17842020-10-27 Tom de Vries <tdevries@suse.de>
1785
1786 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
1787
733d554a
TBA
17882020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1789
1790 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
1791 * breakpoint.c: Update the help text of the 'condition' and 'break'
1792 commands.
1793 (set_breakpoint_condition): Take a new bool parameter
1794 to control whether condition definition should be forced even when
1795 the condition expression is invalid in all of the current locations.
1796 (condition_command): Update the call to 'set_breakpoint_condition'.
1797 (find_condition_and_thread): Take the "-force-condition" flag into
1798 account.
1799 * linespec.c (linespec_keywords): Add "-force-condition" as an
1800 element.
1801 (FORCE_KEYWORD_INDEX): New #define.
1802 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
1803 as a keyword.
1804 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
1805 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
1806 * python/py-breakpoint.c (bppy_set_condition): Ditto.
1807 * NEWS: Mention the changes to the 'break' and 'condition' commands.
1808
b5fa468f
TBA
18092020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1810
1811 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
1812 * breakpoint.c (set_breakpoint_location_condition): New function.
1813 (set_breakpoint_condition): Disable a breakpoint location if parsing
1814 the condition string gives an error.
1815 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
1816 (build_target_condition_list): Ditto.
1817 (build_target_command_list): Ditto.
1818 (build_bpstat_chain): Ditto.
1819 (print_one_breakpoint_location): Ditto.
1820 (print_one_breakpoint): Ditto.
1821 (breakpoint_1): Ditto.
1822 (bp_location::bp_location): Ditto.
1823 (locations_are_equal): Ditto.
1824 (update_breakpoint_locations): Ditto.
1825 (enable_disable_bp_num_loc): Ditto.
1826 (init_breakpoint_sal): Use set_breakpoint_location_condition.
1827 (find_condition_and_thread_for_sals): New static function.
1828 (create_breakpoint): Call find_condition_and_thread_for_sals.
1829 (location_to_sals): Call find_condition_and_thread_for_sals instead
1830 of find_condition_and_thread.
1831
1c47ec3e
TV
18322020-10-26 Tom de Vries <tdevries@suse.de>
1833
1834 * dwarf2/read.c (process_full_comp_unit): Call
1835 dwarf2_find_base_address.
1836
6390859c
TT
18372020-10-26 Tom Tromey <tromey@adacore.com>
1838
1839 * gdbtypes.c (create_range_type): Revert previous patch. Add
1840 comment.
1841
d744f0f9
PA
18422020-10-26 Pedro Alves <pedro@palves.net>
1843
1844 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
1845 (my_waitpid): Use gdb::handle_eintr.
1846
006811bc
SM
18472020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
1848
1849 * acinclude.m4: Update ptrace.m4 path.
1850 * ptrace.m4: Moved to gdbsupport.
1851
c75e31a1
SM
18522020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1853
1854 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
1855 instead of target_gdbarch.
1856
32495661
SM
18572020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1858
1859 * jit.c (jit_reader_load_command): Pass current inferior.
1860 (jit_inferior_init): Change parameter type to inferior, use it.
1861 (jit_inferior_created): Remove.
1862 (jit_inferior_created_hook): Pass inferior parameter down.
1863 (_initialize_jit): Use jit_inferior_created_hook instead of
1864 jit_inferior_created.
1865 * jit.h (jit_inferior_created_hook): Add inferior parameter.
1866 * infrun.c (follow_exec): Pass inferior to
1867 jit_inferior_created_hook.
1868
3f66685e
SM
18692020-10-24 Simon Marchi <simon.marchi@efficios.com>
1870
1871 * linux-thread-db.c (check_pid_namespace_match): Add inferior
1872 parameter and use it.
1873 (thread_db_inferior_created): Pass inferior argument.
1874
a0ff652f
SM
18752020-10-24 Simon Marchi <simon.marchi@efficios.com>
1876
1877 * aix-thread.c (aix_thread_inferior_created): Add inferior
1878 parameter.
1879 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
1880 * dummy-frame.c (cleanup_dummy_frames): Likewise.
1881 * jit.c (jit_inferior_created): Likewise.
1882 * linux-thread-db.c (thread_db_inferior_created): Likewise.
1883 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
1884 * observable.h (inferior_created): Likewise.
1885 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
1886 * symfile-mem.c (add_vsyscall_page): Likewise.
1887 * infcmd.c (post_create_inferior): Pass inferior argument.
1888
3c67532c
JB
18892020-10-24 Joel Brobecker <brobecker@adacore.com>
1890
1891 GDB 10.1 released.
1892
8747316e
JB
18932020-10-23 Joel Brobecker <brobecker@adacore.com>
1894
1895 * ada-typeprint.c (ada_print_type): Remove superfluous second call
1896 to ada_check_typedef.
1897
1a0ea399
AB
18982020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1899
1900 * f-exp.y (f_parse): Rename to...
1901 (f_language::parser): ...this.
1902 * f-lang.c (f_get_encoding): Rename to...
1903 (f_language::get_encoding): ...this.
1904 (f_op_print_tab): Rename to...
1905 (f_language::op_print_tab): ...this.
1906 (exp_descriptor_f): Rename to...
1907 (f_language::exp_descriptor_tab): ...this.
1908 (class f_language): Moved to f-lang.h.
1909 (f_language::language_arch_info): New function, moved out of class
1910 declaration.
1911 (f_language::search_name_hash): Likewise.
1912 (f_language::lookup_symbol_nonlocal): Likewise.
1913 (f_language::get_symbol_name_matcher_inner): Likewise.
1914 * f-lang.h: Add 'valprint.h' include.
1915 (class f_language): Moved here from f-lang.c.
1916 * f-typeprint.c (f_type_print_args): Delete commented out
1917 declaration.
1918 (f_print_typedef): Rename to...
1919 (f_language::print_typedef): ...this.
1920 (f_print_type): Rename to...
1921 (f_language::print_type): ...this.
1922 (f_type_print_varspec_prefix): Delete declaration and rename to...
1923 (f_language::f_type_print_varspec_prefix): ...this.
1924 (f_type_print_varspec_suffix): Delete declaration and rename to...
1925 (f_language::f_type_print_varspec_suffix): ...this.
1926 (f_type_print_base): Delete declaration and rename to...
1927 (f_language::f_type_print_base): ...this.
1928 * f-valprint.c (f_value_print_inner): Rename to...
1929 (f_language::value_print_inner): ...this.
1930 * parse.c: Delete 'f-lang.h' include.
1931
88cefd9b
AB
19322020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1933
1934 * language.h (language_defn::print_type): Add variable names in
1935 declaration, and update header comment.
1936
5399db93
AB
19372020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1938
1939 * ada-lang.c (ada_language::demangle): Rename to...
1940 (ada_language::demangle_symbol): ...this.
1941 * c-lang.c (cplus_language::demangle): Rename to...
1942 (cplus_language::demangle_symbol): ...this.
1943 * d-lang.c (d_language::demangle): Rename to...
1944 (d_language::demangle_symbol): ...this.
1945 * f-lang.c (f_language::demangle): Rename to...
1946 (f_language::demangle_symbol): ...this.
1947 * go-lang.c (go_language::demangle): Rename to...
1948 (go_language::demangle_symbol): ...this.
1949 * language.c (language_demangle): Update call to demangle_symbol.
1950 (auto_or_unknown_language::demangle): Rename to...
1951 (auto_or_unknown_language::demangle_symbol): ...this.
1952 * language.h (language_defn::demangle): Rename to...
1953 (language_defn::demangle_symbol): ...this.
1954 * objc-lang.c (objc_language::demangle): Rename to...
1955 (objc_language::demangle_symbol): ...this.
1956 * rust-lang.c (rust_language::demangle): Rename to...
1957 (rust_language::demangle_symbol): ...this.
1958
4b2f86ef
AB
19592020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1960
1961 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
1962 (iterate_over_file_blocks): Replace use of macro with the macros
1963 definition.
1964
e74b39de
AB
19652020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1966
1967 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
1968 * valprint.c (maybe_print_array_index): Replace use of macro with
1969 the macros definition.
1970
00c696a6
AB
19712020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1972
1973 * ada-lang.c (ada_language::print_array_index): Call value_print
1974 directly.
1975 * language.c (language_defn::print_array_index): Likewise.
1976 * language.h (LA_VALUE_PRINT): Delete.
1977 * valprint.c (value_print): Call value_print on the
1978 current_language directly.
1979
d3b67c56
AB
19802020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1981
1982 * language.h (LA_PRINT_TYPEDEF): Delete.
1983 * typeprint.c (typedef_print): Call print_typedef directly on the
1984 current_language object.
1985
790e2a12
AB
19862020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1987
1988 * m2-exp.y (m2_parse): Rename to...
1989 (m2_language::parser): ...this. Update function signature.
1990 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
1991 (m2_op_print): Rename to...
1992 (m2_language::op_print_tab): ...this, and make const.
1993 (exp_descriptor_modula2): Rename to...
1994 (m2_language::exp_descriptor_modula2): ...this.
1995 (class m2_language): Move to m2-lang.h.
1996 (m2_language::language_arch_info): New function, moved out of
1997 class declaration.
1998 (m2_language::printchar): New function, body from m2_printchar.
1999 (m2_language::printstr): New function, moved out of class
2000 declaration.
2001 (m2_language::emitchar): Likewise.
2002 * m2-lang.h (m2_parse): Delete declaration.
2003 (m2_print_typedef): Delete declaration.
2004 (m2_value_print_inner): Delete declaration.
2005 (class m2_language): Class declaration moved from m2-lang.c,
2006 larger functions are left in m2-lang.c.
2007 * m2-typeprint.c (m2_print_typedef): Rename to...
2008 (m2_language::print_typedef): ...this, and update function
2009 signature.
2010 * m2-valprint.c (m2_value_print_inner): Rename to...
2011 (m2_language::value_print_inner): ...this, replace use of
2012 LA_PRINT_STRING with a direct call to printstr member function,
2013 and update recursive call.
2014
b01175fc
AB
20152020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2016
2017 * language.c (default_is_string_type_p): Delete, implementation
2018 moved into auto_or_unknown_language::is_string_type_p.
2019 (unk_op_print_tab): Moved into
2020 auto_or_unknown_language::opcode_print_table.
2021 (unknown_language_arch_info): Delete, implementation moved into
2022 auto_or_unknown_language::language_arch_info.
2023 (class auto_or_unknown_language): New class, member functions
2024 copied from unknown_language class, with some updates.
2025 (class unknown_language): Most member functions moved into
2026 auto_or_unknown_language class. Inherit from
2027 auto_or_unknown_language class.
2028 (class auto_language): Inherit from auto_or_unknown_language.
2029 Delete most member functions.
2030
1a97fe8c
HD
20312020-10-22 Hannes Domani <ssbssa@yahoo.de>
2032
2033 * stabsread.c (read_member_functions): Remove gdb_assert.
2034
6b9d0dfd
HD
20352020-10-22 Hannes Domani <ssbssa@yahoo.de>
2036
2037 * gdbtypes.c (init_complex_type): Check target type name.
2038
4b4bb603
SM
20392020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2040
2041 * target-debug.h (target_debug_print_struct_target_ops_p):
2042 Remove.
2043 (target_debug_print_async_callback_ftype_p): Remove.
2044 (target_debug_print_struct_trace_state_variable_p): Remove.
2045 (target_debug_print_struct_traceframe_info_p): Remove.
2046 (target_debug_print_VEC__btrace_block_s__pp): Remove.
2047 (target_debug_print_enum_btrace_format): Remove.
2048 (target_debug_print_enum_info_proc_what): Remove.
2049 (target_debug_print_thread_info_pp): Remove.
2050
24f5300a
SM
20512020-10-22 Simon Marchi <simon.marchi@efficios.com>
2052
2053 * target.h (struct target_ops) <make_corefile_notes>:
2054 Change return type to unique pointer.
2055 * target.c (dummy_make_corefile_notes): Likewise.
2056 * exec.c (struct exec_target) <make_corefile_notes>:
2057 Likewise.
2058 (exec_target::make_corefile_notes): Likewise.
2059 * procfs.c (class procfs_target) <make_corefile_notes>:
2060 Likewise.
2061 (procfs_do_thread_registers): Adjust to unique pointer.
2062 (struct procfs_corefile_thread_data): Add constructor.
2063 <note_data>: Change type to unique pointer.
2064 (procfs_corefile_thread_callback): Adjust to unique pointer.
2065 (procfs_target::make_corefile_notes): Change return type to
2066 unique pointer.
2067 * target-delegates.c: Re-generate.
2068 * gcore.c (write_gcore_file_1): Adjust.
2069 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
2070 New.
2071
5fb4027f
TV
20722020-10-22 Tom de Vries <tdevries@suse.de>
2073
2074 * block.c (find_block_in_blockvector): Make sure the returned block
2075 contains pc.
2076
4a636814
SM
20772020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2078
2079 PR gdb/26693
2080 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
2081 parameter.
2082 (load_cu): Pass existing CU.
2083 (process_imported_unit_die): Likewise.
2084 (follow_die_offset): Likewise.
2085
1bd57575
LM
20862020-10-22 Luis Machado <luis.machado@linaro.org>
2087
2088 * corelow.c (core_target::xfer_partial): Also check for an empty
2089 m_core_unavailable_mappings vector.
2090
6b4c676c
AB
20912020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2092
2093 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
2094 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
2095 * f-exp.y (arglist): Allow for a series of subranges.
2096 (subrange): Add cases for subranges with strides.
2097 * f-lang.c (value_f90_subarray): Catch use of array strides and
2098 throw an error.
2099 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
2100
f2d8e4c5
AB
21012020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2102
2103 * expprint.c (print_subexp_standard): Change enum range_type to
2104 range_flag and rename variables to match.
2105 (dump_subexp_body_standard): Likewise.
2106 * expression.h (enum range_type): Rename to...
2107 (enum range_flag): ...this.
2108 (range_types): Rename to...
2109 (range_flags): ...this.
2110 * f-lang.c (value_f90_subarray): Change enum range_type to
2111 range_flag and rename variables to match.
2112 * parse.c (operator_length_standard): Likewise.
2113 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
2114 range_type to range_flag.
2115 * rust-lang.c (rust_evaluate_funcall): Likewise.
2116 (rust_range): Likewise.
2117 (rust_compute_range): Likewise.
2118 (rust_subscript): Likewise.
2119
2f1b18db
AB
21202020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2121
2122 * expprint.c (print_subexp_standard): Update to reflect changes to
2123 enum range_type.
2124 (dump_subexp_body_standard): Likewise.
2125 * expression.h (enum range_type): Convert to a bit field enum, and
2126 make the enum unsigned.
2127 * f-exp.y (subrange): Update to reflect changes to enum
2128 range_type.
2129 * f-lang.c (value_f90_subarray): Likewise.
2130 * parse.c (operator_length_standard): Likewise.
2131 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
2132 * rust-lang.c (rust_range): Likewise.
2133 (rust_compute_range): Likewise.
2134 (rust_subscript): Likewise.
2135
a46d1843
SM
21362020-10-21 Simon Marchi <simon.marchi@efficios.com>
2137
2138 * infrun.c (displaced_step_in_progress_thread): Fix comment.
2139 (displaced_step_in_progress): Fix comment.
2140
c21f37a8
SM
21412020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
2142
2143 * gdbarch.sh (make_corefile_notes): Return unique pointer.
2144 * gdbarch.c: Re-generate.
2145 * gdbarch.h: Re-generate.
2146 * gcore.c (write_gcore_file_1): Adjust.
2147 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
2148 constructor.
2149 <note_data>: Change type to unique pointer.
2150 <abort_iteration>: Change type to bool.
2151 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
2152 (fbsd_collect_thread_registers): Return void, adjust.
2153 (struct fbsd_corefile_thread_data): Add construtor.
2154 <note_data>: Change type to unique pointer.
2155 (fbsd_corefile_thread): Adjust.
2156 (fbsd_make_corefile_notes): Return unique pointer, adjust.
2157 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
2158 to unique pointer, adjust.
2159 (struct linux_collect_regset_section_cb_data): Add constructor.
2160 <note_data>: Change type to unique pointer.
2161 <abort_iteration>: Change type to bool.
2162 (linux_collect_thread_registers): Return void, adjust.
2163 (struct linux_corefile_thread_data): Add constructor.
2164 <note_data>: Change type to unique pointer.
2165 (linux_corefile_thread): Adjust.
2166 (linux_make_corefile_notes): Return unique pointer, adjust.
2167
07fbbd01
SM
21682020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2169
2170 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
2171 * gdbarch.c: Re-generate.
2172 * gdbarch.h: Re-generate.
2173 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
2174 bool.
2175 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
2176 Likewise.
2177 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
2178 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
2179 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
2180 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
2181
39535193
SM
21822020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2183
2184 * gdbarch.sh: Make generated predicates return bool.
2185 * gdbarch.c: Re-generate.
2186 * gdbarch.h: Re-generate.
2187
ad523d01
TT
21882020-10-20 Tom Tromey <tom@tromey.com>
2189
2190 * varobj-iter.h (struct varobj_item): Remove typedef.
2191
c4464ade
SM
21922020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2193
2194 * infrun.c (currently_stepping): Change int to bool
2195 (maybe_software_singlestep): Likewise.
2196 (show_stop_on_solib_events): Likewise.
2197 (stepping_past_nonsteppable_watchpoint): Likewise.
2198 (displaced_step_in_progress_any_inferior): Likewise.
2199 (displaced_step_in_progress_thread): Likewise.
2200 (keep_going_stepped_thread): Likewise.
2201 (thread_still_needs_step_over): Likewise.
2202 (start_step_over): Likewise.
2203 (do_target_resume): Likewise.
2204 (resume_1): Likewise.
2205 (clear_proceed_status): Likewise.
2206 (thread_still_needs_step_over_bp): Likewise.
2207 (proceed): Likewise.
2208 (switch_back_to_stepped_thread): Likewise.
2209 (adjust_pc_after_break): Likewise.
2210 (stepped_in_from): Likewise.
2211 (handle_stop_requested): Likewise.
2212 (handle_syscall_event): Likewise.
2213 (handle_no_resumed): Likewise.
2214 (handle_inferior_event): Likewise.
2215 (finish_step_over): Likewise.
2216 (handle_signal_stop): Likewise.
2217 (process_event_stop_test): Likewise.
2218
2eb20436
SM
22192020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2220
2221 * infrun.c (get_displaced_stepping_state): Fix comment.
2222
e0c45ded
AS
22232020-10-20 Andreas Schwab <schwab@linux-m68k.org>
2224
2225 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
2226
22cc388e
TT
22272020-10-19 Tom Tromey <tromey@adacore.com>
2228
2229 PR tui/26719
2230 * tui/tui-winsource.h (struct tui_source_window_base)
2231 <refresh_window>: Rename from refresh_pad.
2232 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
2233 Rename from refresh_pad.
2234 (tui_source_window_base::show_source_content)
2235 (tui_source_window_base::do_scroll_horizontal): Update.
2236
3c6eb4d4
TBA
22372020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2238
2239 * thread.c (_initialize_thread): Fine-tune the help text of
2240 'info threads'.
2241
26703721
TBA
22422020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2243
2244 * frame.c: Remove the unused 'uinteger_option_def' type alias.
2245
61c26be8
MS
22462020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
2247
2248 * breakpoint.c (handle_jit_event): Add an argument, change how
2249 `jit_event_handler` is called.
2250
932539d7
TT
22512020-10-17 Tom Tromey <tom@tromey.com>
2252
2253 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
2254 (scan_xcoff_symtab): Update.
2255 * psymtab.h (class psymtab_storage) <global_psymbols,
2256 static_psymbols, current_global_psymbols,
2257 current_static_psymbols>: Remove.
2258 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
2259 (match_partial_symbol, lookup_partial_symbol): Update.
2260 (print_partial_symbols): Change parameters.
2261 (dump_psymtab, recursively_search_psymtabs)
2262 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
2263 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
2264 (concat): Remove.
2265 (end_psymtab_common): Simplify.
2266 (append_psymbol_to_list): Change parameters.
2267 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
2268 (init_psymbol_list): Simplify.
2269 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2270 * psympriv.h (struct partial_symtab) <empty>: New method.
2271 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
2272 Remove.
2273 <global_psymbols, static_psymbols>: New members.
2274 <add_psymbol>: New methods.
2275 (add_psymbol_to_list): Don't declare.
2276 (psymbol_placement): Move earlier.
2277 * mdebugread.c (parse_partial_symbols): Update.
2278 (handle_psymbol_enumerators): Change parameters.
2279 (mdebug_expand_psymtab): Update.
2280 * dwarf2/read.c (process_psymtab_comp_unit_reader)
2281 (add_partial_symbol): Update.
2282 * dwarf2/index-write.c (write_psymbols): Change parameters.
2283 (write_one_signatured_type): Update.
2284 (recursively_count_psymbols): Update.
2285 (recursively_write_psymbols): Update.
2286 (class debug_names) <recursively_write_psymbols>: Update.
2287 <write_psymbols>: Change parameters.
2288 <write_one_signatured_type>: Update.
2289 * dbxread.c (read_dbx_symtab): Update.
2290 (dbx_end_psymtab): Use partial_symtab::empty.
2291 * ctfread.c (struct ctf_context) <pst>: New member.
2292 (create_partial_symtab): Set it.
2293 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
2294 (scan_partial_symbols): Use the psymtab's context. Update.
2295
cfabbd35
TT
22962020-10-17 Tom Tromey <tom@tromey.com>
2297
2298 * valprint.c (generic_value_print): Remove comment.
2299 * m2-valprint.c (m2_value_print_inner): Remove comment.
2300 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
2301 type.
2302
520596f2
TV
23032020-10-17 Tom de Vries <tdevries@suse.de>
2304
2305 PR symtab/26317
2306 * source.c (select_source_symtab): Handling sal.symtab == NULL for
2307 symbol main.
2308
76547ab3
TV
23092020-10-14 Tom de Vries <tdevries@suse.de>
2310
2311 PR gdb/26733
2312 * solib.c (solib_contains_address_p): Handle
2313 'solib->sections == nullptr'.
2314
d3a07122
SM
23152020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2316
2317 PR gdb/26642
2318 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
2319 target can't do async.
2320 * target.c (target_wait): Assert that we don't pass
2321 TARGET_WNOHANG to a target that can't async.
2322
1b71cfcf
KR
23232020-10-13 Kamil Rytarowski <n54@gmx.com>
2324
2325 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
2326 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
2327 * alpha-bsd-nat.c: Adjust include.
2328 * alpha-bsd-tdep.h: Adjust comment.
2329 * alpha-nbsd-tdep.c: Rename to ...
2330 * alpha-netbsd-tdep.c: ... this, adjust include.
2331 * amd64-nbsd-nat.c: Rename to ...
2332 * amd64-netbsd-nat.c: ... this, adjust include.
2333 * amd64-nbsd-tdep.c: Rename to ...
2334 * amd64-netbsd-tdep.c: ... this, adjust include.
2335 * amd64-tdep.h: Adjust include.
2336 * arm-nbsd-nat.c: Rename to ...
2337 * arm-netbsd-nat.c: ... this, adjust include.
2338 * arm-nbsd-tdep.c: Rename to ...
2339 * arm-netbsd-tdep.c: ... this, adjust include.
2340 * arm-nbsd-tdep.h: Rename to ...
2341 * arm-netbsd-tdep.h: ... this, adjust include.
2342 * configure.nat: Adjust file lists.
2343 * configure.tgt: Likewise.
2344 * hppa-nbsd-nat.c: Rename to ...
2345 * hppa-netbsd-nat.c: ... this, adjust include.
2346 * hppa-nbsd-tdep.c: Rename to ...
2347 * hppa-netbsd-tdep.c: ... this, adjust include.
2348 * i386-nbsd-nat.c: Rename to ...
2349 * i386-netbsd-nat.c: ... this, adjust include.
2350 * i386-nbsd-tdep.c: Rename to ...
2351 * i386-netbsd-tdep.c: ... this, adjust include.
2352 * m68k-bsd-nat.c: Adjust include.
2353 * mips-nbsd-nat.c: Rename to ...
2354 * mips-netbsd-nat.c: ... this, adjust include.
2355 * mips-nbsd-tdep.c: Rename to ...
2356 * mips-netbsd-tdep.c: ... this, adjust include.
2357 * mips-nbsd-tdep.h: Rename to ...
2358 * mips-netbsd-tdep.h: ... this.
2359 * nbsd-nat.c: Rename to ...
2360 * netbsd-nat.c: ... this, adjust include.
2361 * nbsd-nat.h: Rename to ...
2362 * netbsd-nat.h: ... this, adjust include.
2363 * nbsd-tdep.c: Rename to ...
2364 * netbsd-tdep.c: ... this, adjust include.
2365 * nbsd-tdep.h: Rename to ...
2366 * netbsd-tdep.h: ... this.
2367 * ppc-nbsd-nat.c: Rename to ...
2368 * ppc-netbsd-nat.c: ... this, adjust include.
2369 * ppc-nbsd-tdep.c: Rename to ...
2370 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
2371 * ppc-nbsd-tdep.h: Rename to ...
2372 * ppc-netbsd-tdep.h: ... this.
2373 * sh-nbsd-nat.c: Rename to ...
2374 * sh-netbsd-nat.c: ... this, adjust include.
2375 * sh-nbsd-tdep.c: Rename to ...
2376 * sh-netbsd-tdep.c: ... this, adjust include.
2377 * sparc-nbsd-nat.c: Rename to ...
2378 * sparc-netbsd-nat.c: ... this.
2379 * sparc-nbsd-tdep.c: Rename to ...
2380 * sparc-netbsd-tdep.c: ... this, adjust include.
2381 * sparc64-nbsd-nat.c: Rename to ...
2382 * sparc64-netbsd-nat.c: ... this.
2383 * sparc64-nbsd-tdep.c: Rename to ...
2384 * sparc64-netbsd-tdep.c: ... this, adjust include.
2385 * sparc64-tdep.h: Adjust comment.
2386 * vax-bsd-nat.c: Adjust include.
2387 * vax-nbsd-tdep.c: Rename to ...
2388 * vax-netbsd-tdep.c: ... this, adjust include.
2389
d7a78e5c
TT
23902020-10-12 Tom Tromey <tom@tromey.com>
2391
2392 * target.h (struct target_ops) <get_section_table>: Update.
2393 (target_get_section_table): Update.
2394 * target.c (target_get_section_table, target_section_by_addr)
2395 (memory_xfer_partial_1): Update.
2396 * target-section.h (target_section_table): Now an alias.
2397 * target-delegates.c: Rebuild.
2398 * target-debug.h (target_debug_print_target_section_table_p):
2399 Rename from target_debug_print_struct_target_section_table_p.
2400 * symfile.c (build_section_addr_info_from_section_table): Update.
2401 * solib.c (solib_map_sections, solib_contains_address_p): Update.
2402 * solib-svr4.c (scan_dyntag): Update.
2403 * solib-dsbt.c (scan_dyntag): Update.
2404 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2405 Update.
2406 * record-full.c (record_full_core_target::xfer_partial): Update.
2407 * progspace.h (struct program_space) <target_sections>: Update.
2408 * exec.h (print_section_info): Update.
2409 * exec.c (exec_target::close, build_section_table)
2410 (add_target_sections, add_target_sections_of_objfile)
2411 (remove_target_sections, exec_on_vfork)
2412 (section_table_available_memory)
2413 (section_table_xfer_memory_partial)
2414 (exec_target::get_section_table, exec_target::xfer_partial)
2415 (print_section_info, set_section_command)
2416 (exec_set_section_address, exec_target::has_memory): Update.
2417 * corelow.c (core_target::build_file_mappings)
2418 (core_target::xfer_partial, core_target::info_proc_mappings)
2419 (core_target::info_proc_mappings): Update.
2420 * bfd-target.c (class target_bfd): Update
2421
eda214ce
TT
24222020-10-12 Tom Tromey <tom@tromey.com>
2423
2424 * progspace.c (program_space::~program_space): Don't call
2425 clear_section_table.
2426 * exec.h (clear_section_table): Don't declare.
2427 * exec.c (exec_target::close): Update.
2428 (clear_section_table): Remove.
2429
91840ee3
TT
24302020-10-12 Tom Tromey <tom@tromey.com>
2431
2432 * exec.c (add_target_sections_of_objfile): Simplify.
2433
2d128614
TT
24342020-10-12 Tom Tromey <tom@tromey.com>
2435
2436 * solib.c (solib_map_sections): Update.
2437 * record-full.c (record_full_core_open_1): Update.
2438 * exec.h (build_section_table): Return a target_section_table.
2439 * exec.c (exec_file_attach): Update.
2440 (build_section_table): Return a target_section_table.
2441 * corelow.c (core_target::core_target): Update.
2442 * bfd-target.c (target_bfd::target_bfd): Update.
2443
bb2a6777
TT
24442020-10-12 Tom Tromey <tom@tromey.com>
2445
2446 * target.c (target_section_by_addr, memory_xfer_partial_1):
2447 Update.
2448 * target-section.h (struct target_section_table): Use
2449 std::vector.
2450 * symfile.h (build_section_addr_info_from_section_table): Take a
2451 target_section_table.
2452 * symfile.c (build_section_addr_info_from_section_table): Take a
2453 target_section_table.
2454 * solist.h (struct so_list) <sections>: Change type.
2455 <sections_end>: Remove.
2456 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
2457 (solib_contains_address_p): Update.
2458 * solib-svr4.c (scan_dyntag): Update.
2459 * solib-dsbt.c (scan_dyntag): Update.
2460 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2461 Update.
2462 * record-full.c (record_full_core_start, record_full_core_end):
2463 Remove.
2464 (record_full_core_sections): New global.
2465 (record_full_core_open_1, record_full_core_target::xfer_partial):
2466 Update.
2467 * exec.h (build_section_table, section_table_xfer_memory_partial)
2468 (add_target_sections): Take a target_section_table.
2469 * exec.c (exec_file_attach, clear_section_table): Update.
2470 (resize_section_table): Remove.
2471 (build_section_table, add_target_sections): Take a
2472 target_section_table.
2473 (add_target_sections_of_objfile, remove_target_sections)
2474 (exec_on_vfork): Update.
2475 (section_table_available_memory): Take a target_section_table.
2476 (section_table_read_available_memory): Update.
2477 (section_table_xfer_memory_partial): Take a target_section_table.
2478 (print_section_info, set_section_command)
2479 (exec_set_section_address, exec_target::has_memory): Update.
2480 * corelow.c (class core_target) <m_core_section_table,
2481 m_core_file_mappings>: Remove braces.
2482 <~core_target>: Remove.
2483 (core_target::core_target): Update.
2484 (core_target::~core_target): Remove.
2485 (core_target::build_file_mappings)
2486 (core_target::xfer_memory_via_mappings)
2487 (core_target::xfer_partial, core_target::info_proc_mappings):
2488 Update.
2489 * bfd-target.c (target_bfd::xfer_partial): Update.
2490 (target_bfd::target_bfd): Update.
2491 (target_bfd::~target_bfd): Remove.
2492
7b466b10
TT
24932020-10-12 Tom Tromey <tom@tromey.com>
2494
2495 * target.h (struct target_section, struct target_section_table):
2496 Move to target-section.h.
2497 * target-section.h: New file.
2498
87a37e5e
PA
24992020-10-12 Pedro Alves <pedro@palves.net>
2500
2501 PR exp/26602
2502 * valops.c (struct struct_field_searcher): New.
2503 (update_search_result): Rename to ...
2504 (struct_field_searcher::update_result): ... this. Simplify
2505 prototype. Record all found fields.
2506 (do_search_struct_field): Rename to ...
2507 (struct_field_searcher::search): ... this. Simplify prototype.
2508 Maintain stack of visited baseclass path. Call update_result for
2509 fields too. Keep searching fields in baseclasses instead of
2510 stopping at the first found field.
2511 (search_struct_field): Use struct_field_searcher. When looking
2512 for fields, report ambiguous access attempts.
2513
9370fd51
AB
25142020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
2515
2516 * frame.c (inside_main_func): Check full symbols as well as
2517 minimal symbols.
2518
59c8a30b
JB
25192020-10-09 Joel Brobecker <brobecker@adacore.com>
2520
2521 * ada-lang.c (advance_wild_match): Rewrite the function's
2522 description. Change the type of target0, t0 and t1 to char.
2523
7c184d33
TT
25242020-10-09 Tom Tromey <tromey@adacore.com>
2525
2526 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
2527
5c4258f4
TT
25282020-10-09 Tom Tromey <tromey@adacore.com>
2529
2530 * ada-lang.h (ada_encode): Return std::string.
2531 * ada-lang.c (ada_encode_1): Return std::string.
2532 (ada_encode): Likewise.
2533 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
2534 Update.
2535 * ada-exp.y (block_lookup, write_var_or_type): Update.
2536
3d87245c
HD
25372020-10-09 Hannes Domani <ssbssa@yahoo.de>
2538
2539 PR exp/26714
2540 * printcmd.c (print_formatted): Handle void results as
2541 unformatted prints.
2542
bbb826f5
AB
25432020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2544
2545 * arch/aarch32.c (aarch32_create_target_description): Release the
2546 target_desc_up as late as possible.
2547 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2548 * arch/amd64.c (amd64_create_target_description): Likewise.
2549 * arch/arc.c (arc_create_target_description): Return a
2550 target_desc_up, don't release it.
2551 * arch/arc.h (arc_create_target_description): Update declaration.
2552 (arc_lookup_target_description): Move target_desc_up into the
2553 cache, and return a borrowed pointer.
2554 * arch/arm.c (arm_create_target_description): Release the
2555 target_desc_up as late as possible.
2556 * arch/i386.c (i386_create_target_description): Likewise.
2557 * arch/riscv.h (riscv_create_target_description): Update
2558 declaration to match definition.
2559 * arch/tic6x.c (tic6x_create_target_description): Release the
2560 target_desc_up as late as possible.
2561
361cb219
AB
25622020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2563
2564 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
2565 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
2566
f5c4b229
JV
25672020-10-09 Jan Vrany <jan.vrany@labware.com>
2568
2569 * source.c (directory_command): Notify observers that "directories"
2570 parameter has changed.
2571
b2701685
TT
25722020-10-08 Tom Tromey <tom@tromey.com>
2573
2574 * cli/cli-cmds.c (print_disassembly): Style function name and
2575 addresses. Add _() wrappers.
2576
ada508b6
SV
25772020-10-08 Shahab Vahedi <shahab@synopsys.com>
2578
2579 * NEWS: Mention ARC support in GDBserver.
2580
51a948fd
AB
25812020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
2582
2583 * arch/aarch32.c (aarch32_create_target_description): Release
2584 unique_ptr returned from allocate_target_description.
2585 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2586 * arch/amd64.c (amd64_create_target_description): Likewise.
2587 * arch/arc.c (arc_create_target_description): Likewise.
2588 * arch/arm.c (arm_create_target_description): Likewise.
2589 * arch/i386.c (i386_create_target_description): Likewise.
2590 * arch/riscv.c (riscv_create_target_description): Update return
2591 type. Handle allocate_target_description returning a unique_ptr.
2592 (riscv_lookup_target_description): Update to handle unique_ptr.
2593 * arch/tic6x.c (tic6x_create_target_description): Release
2594 unique_ptr returned from allocate_target_description.
2595 * features/microblaze-with-stack-protect.c: Regenerate.
2596 * features/microblaze.c: Regenerate.
2597 * features/mips-dsp-linux.c: Regenerate.
2598 * features/mips-linux.c: Regenerate.
2599 * features/mips64-dsp-linux.c: Regenerate.
2600 * features/mips64-linux.c: Regenerate.
2601 * features/nds32.c: Regenerate.
2602 * features/nios2.c: Regenerate.
2603 * features/or1k.c: Regenerate.
2604 * features/rs6000/powerpc-32.c: Regenerate.
2605 * features/rs6000/powerpc-32l.c: Regenerate.
2606 * features/rs6000/powerpc-403.c: Regenerate.
2607 * features/rs6000/powerpc-403gc.c: Regenerate.
2608 * features/rs6000/powerpc-405.c: Regenerate.
2609 * features/rs6000/powerpc-505.c: Regenerate.
2610 * features/rs6000/powerpc-601.c: Regenerate.
2611 * features/rs6000/powerpc-602.c: Regenerate.
2612 * features/rs6000/powerpc-603.c: Regenerate.
2613 * features/rs6000/powerpc-604.c: Regenerate.
2614 * features/rs6000/powerpc-64.c: Regenerate.
2615 * features/rs6000/powerpc-64l.c: Regenerate.
2616 * features/rs6000/powerpc-7400.c: Regenerate.
2617 * features/rs6000/powerpc-750.c: Regenerate.
2618 * features/rs6000/powerpc-860.c: Regenerate.
2619 * features/rs6000/powerpc-altivec32.c: Regenerate.
2620 * features/rs6000/powerpc-altivec32l.c: Regenerate.
2621 * features/rs6000/powerpc-altivec64.c: Regenerate.
2622 * features/rs6000/powerpc-altivec64l.c: Regenerate.
2623 * features/rs6000/powerpc-e500.c: Regenerate.
2624 * features/rs6000/powerpc-e500l.c: Regenerate.
2625 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
2626 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
2627 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
2628 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
2629 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
2630 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
2631 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
2632 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
2633 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
2634 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
2635 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
2636 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
2637 * features/rs6000/powerpc-vsx32.c: Regenerate.
2638 * features/rs6000/powerpc-vsx32l.c: Regenerate.
2639 * features/rs6000/powerpc-vsx64.c: Regenerate.
2640 * features/rs6000/powerpc-vsx64l.c: Regenerate.
2641 * features/rs6000/rs6000.c: Regenerate.
2642 * features/rx.c: Regenerate.
2643 * features/s390-gs-linux64.c: Regenerate.
2644 * features/s390-linux32.c: Regenerate.
2645 * features/s390-linux32v1.c: Regenerate.
2646 * features/s390-linux32v2.c: Regenerate.
2647 * features/s390-linux64.c: Regenerate.
2648 * features/s390-linux64v1.c: Regenerate.
2649 * features/s390-linux64v2.c: Regenerate.
2650 * features/s390-te-linux64.c: Regenerate.
2651 * features/s390-tevx-linux64.c: Regenerate.
2652 * features/s390-vx-linux64.c: Regenerate.
2653 * features/s390x-gs-linux64.c: Regenerate.
2654 * features/s390x-linux64.c: Regenerate.
2655 * features/s390x-linux64v1.c: Regenerate.
2656 * features/s390x-linux64v2.c: Regenerate.
2657 * features/s390x-te-linux64.c: Regenerate.
2658 * features/s390x-tevx-linux64.c: Regenerate.
2659 * features/s390x-vx-linux64.c: Regenerate.
2660 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
2661 from allocate_target_description.
2662 * target-descriptions.c (allocate_target_description): Update
2663 return type.
2664 (print_c_tdesc::visit_pre): Release unique_ptr returned from
2665 allocate_target_description.
2666
485c47e5
TT
26672020-10-07 Tom Tromey <tromey@adacore.com>
2668
2669 * unittests/search-memory-selftests.c: New file.
2670 * Makefile.in (SELFTESTS_SRCS): Add
2671 unittests/search-memory-selftests.c.
2672
3a135a91
TT
26732020-10-07 Tom Tromey <tromey@adacore.com>
2674
2675 PR gdb/16930:
2676 * findcmd.c (_initialize_mem_search): Mention that the range is
2677 inclusive.
2678
4a72de73
TT
26792020-10-07 Tom Tromey <tromey@adacore.com>
2680
2681 * target.h (simple_search_memory): Don't declare.
2682 * target.c (simple_search_memory): Move to gdbsupport.
2683 (default_search_memory): Update.
2684 * remote.c (remote_target::search_memory): Update.
2685
a038ffd8
SM
26862020-10-07 Simon Marchi <simon.marchi@efficios.com>
2687
2688 * Makefile.in (COMPILE): Add CXXFLAGS.
2689 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
2690 (check-headers): Add CXXFLAGS.
2691
cc463201
AK
26922020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
2693
2694 * arc-linux-tdep.h: New file.
2695 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
2696 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
2697 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
2698 arc_linux_gregset, arc_linux_v2_regset,
2699 arc_linux_iterate_over_regset_sections,
2700 arc_linux_core_read_description): Implement.
2701 (arc_linux_init_osabi): Set iterate_over_regset_sections.
2702 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
2703 (arc_gdbarch_features_create): Add.
2704 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
2705
e4bd363f
SV
27062020-10-07 Shahab Vahedi <shahab@synopsys.com>
2707
2708 * arch/arc.h: Rename "arc_gdbarch_features" to
2709 "arc_arch_features".
2710 * arc-tdep.h: Likewise.
2711 * arc-tdep.c: Likewise.
2712
b68bef99
TBA
27132020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2714
2715 * infcmd.c (attach_command): Remove the redundant call to
2716 `clear_proceed_status`.
2717
4641551a
KR
27182020-10-07 Kamil Rytarowski <n54@gmx.com>
2719
2720 * nat/netbsd-nat.c (write_memory, read_memory): Update.
2721
91e5e8db
KR
27222020-10-07 Kamil Rytarowski <n54@gmx.com>
2723
2724 * nat/netbsd-nat.c (write_memory, read_memory): Add.
2725 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
2726 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
2727
64c03bdb
SM
27282020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
2729
2730 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
2731 (_initialize_break_catch_sig): Don't allocate array.
2732
31a8f60f
AB
27332020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
2734
2735 * symtab.c (find_pc_line): Return unmapped addresses when the
2736 requested address is also unmapped.
2737
9e6dbd8b
SM
27382020-10-05 Simon Marchi <simon.marchi@efficios.com>
2739
2740 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
2741 tui/tui-out.h.
2742
a1d217e8
SM
27432020-10-05 Simon Marchi <simon.marchi@efficios.com>
2744
2745 * amd64-windows-tdep.c (amd64_windows_return_value): Use
2746 type::is_vector instead of TYPE_VECTOR.
2747
7d144117
SM
27482020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
2749
2750 * auto-load.c (auto_load_objfile_script_1): Don't use
2751 debugfile_holder as temporary variable when stripping drive
2752 letter.
2753
cd096ec8
HD
27542020-10-05 Hannes Domani <ssbssa@yahoo.de>
2755
2756 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
2757 Add TYPE_CODE_COMPLEX.
2758 (amd64_windows_return_value): Fix types returned via XMM0.
2759
b58e7f72
AH
27602020-10-05 Alan Hayward <alan.hayward@arm.com>
2761
2762 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
2763 AArch64/ARM maintainers.
2764
8d378f27
SM
27652020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
2766
2767 * NEWS: Mention set/show debug event-loop.
2768
d5519913
TT
27692020-10-02 Tom Tromey <tromey@adacore.com>
2770
2771 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
2772 REG_EXTENDED.
2773
18b67edc
SM
27742020-10-02 Simon Marchi <simon.marchi@efficios.com>
2775
2776 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
2777 * procfs.c (procfs_inferior_created): Remove.
2778 (_initialize_procfs): Don't register procfs_inferior_created.
2779
6b01403b
SM
27802020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2781
2782 * async-event.c (invoke_async_signal_handlers): Add debug
2783 print.
2784 (check_async_event_handlers): Likewise.
2785 * event-top.c (show_debug_event_loop): New function.
2786 (_initialize_event_top): Register "set debug event-loop"
2787 setting.
2788
ba988419
SM
27892020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2790
2791 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
2792 * debug.h: Remove.
2793 * infrun.c: Include gdbsupport/common-debug.h.
2794 * linux-nat.c: Likewise.
2795
db20ebdf
SM
27962020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2797
2798 * async-event.h (create_async_signal_handler): Add name
2799 parameter.
2800 (create_async_event_handler): Likewise.
2801 * async-event.c (struct async_signal_handler) <name>: New field.
2802 (struct async_event_handler) <name>: New field.
2803 (create_async_signal_handler): Assign name.
2804 (create_async_event_handler): Assign name.
2805 * event-top.c (async_init_signals): Pass name when creating
2806 handler.
2807 * infrun.c (_initialize_infrun): Likewise.
2808 * record-btrace.c (record_btrace_push_target): Likewise.
2809 * record-full.c (record_full_open): Likewise.
2810 * remote-notif.c (remote_notif_state_allocate): Likewise.
2811 * remote.c (remote_target::open_1): Likewise.
2812 * tui/tui-win.c (tui_initialize_win): Likewise.
2813
2554f6f5
SM
28142020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2815
2816 * async-event.c (initialize_async_signal_handlers): Pass name to
2817 add_file_handler
2818 * event-top.c (ui_register_input_event_handler): Likewise.
2819 * linux-nat.c (linux_nat_target::async): Likewise.
2820 * run-on-main-thread.c (_initialize_run_on_main_thread):
2821 Likewise
2822 * ser-base.c (reschedule): Likewise.
2823 (ser_base_async): Likewise.
2824 * tui/tui-io.c: Likewise.
2825 * top.h (struct ui) <num>: New field.
2826 * top.c (highest_ui_num): New variable.
2827 (ui::ui): Initialize num.
2828
a7aba266
SM
28292020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2830
2831 * observable.h <inferior_created>: Remove parameters. Update all
2832 listeners.
2833 * inferior.h (post_create_inferior): Remove target parameter.
2834 Update all callers.
2835
048fde1e 28362020-10-02 Nitika Achra <Nitika.Achra@amd.com>
2837
2838 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
2839 and DW_MACRO_undef_strx.
2840 (dwarf_decode_macros): Likewise
2841 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
2842 which is the value of DW_AT_str_offsets_base.
2843 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
2844 str_offsets_base.
2845
064280be
KR
28462020-10-01 Kamil Rytarowski <n54@gmx.com>
2847
2848 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
2849
6ff33035
KR
28502020-10-01 Kamil Rytarowski <n54@gmx.com>
2851
2852 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
2853 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
2854
1eb6eb79
KR
28552020-10-01 Kamil Rytarowski <n54@gmx.com>
2856
2857 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
2858
95eb9e54
TV
28592020-09-30 Tom de Vries <tdevries@suse.de>
2860
2861 PR symtab/26683
2862 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
2863
cae21f8e
TT
28642020-09-30 Tom Tromey <tromey@adacore.com>
2865
2866 * dwarf2/read.c (handle_variant): Use constant_value.
2867
529908cb
TT
28682020-09-29 Tom Tromey <tom@tromey.com>
2869
2870 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
2871 (read_file_scope, dwarf2_get_pc_bounds)
2872 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
2873 (read_structure_type, handle_struct_member_die)
2874 (read_enumeration_type, read_array_type, read_set_type)
2875 (read_tag_pointer_type, read_tag_reference_type)
2876 (read_subroutine_type, read_base_type, read_subrange_type)
2877 (read_full_die_1, partial_die_info::read)
2878 (partial_die_info::read, by, new_symbol)
2879 (dwarf2_const_value_data, dwarf2_const_value_attr)
2880 (dump_die_shallow, dwarf2_fetch_constant_bytes)
2881 (prepare_one_comp_unit): Update.
2882 * dwarf2/attribute.h (DW_UNSND): Remove.
2883
c45bc3f8
TT
28842020-09-29 Tom Tromey <tom@tromey.com>
2885
2886 * dwarf2/read.c (read_func_scope, prototyped_function_p)
2887 (read_subroutine_type, partial_die_info::read)
2888 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
2889 (dwarf2_add_member_fn): Update.
2890 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
2891 * dwarf2/attribute.c (attribute::as_boolean): New method.
2892
23dca5c3
TT
28932020-09-29 Tom Tromey <tom@tromey.com>
2894
2895 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
2896 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
2897 method.
2898 * dwarf2/attribute.c (attribute::as_virtuality): New method.
2899
52c14d11
TT
29002020-09-29 Tom Tromey <tom@tromey.com>
2901
2902 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
2903 the attribute's form.
2904
e8e5c158
TT
29052020-09-29 Tom Tromey <tom@tromey.com>
2906
2907 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
2908 (dwarf2_add_member_fn): Update.
2909 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
2910 * dwarf2/attribute.c (attribute::defaulted): New method, from
2911 is_valid_DW_AT_defaulted.
2912
d4df075e
TT
29132020-09-29 Tom Tromey <tom@tromey.com>
2914
2915 * dwarf2/read.c (dw2_get_file_names_reader)
2916 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
2917 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
2918 (dwarf2_symbol_mark_computed): Use as_unsigned.
2919 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
2920 method.
2921 <form_is_section_offset>: Update comment.
2922
bf23a268
TT
29232020-09-29 Tom Tromey <tom@tromey.com>
2924
2925 * dwarf2/read.c (dwarf2_access_attribute): Rename from
2926 dwarf2_default_access_attribute. Look up attribute.
2927 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
2928 Update.
2929
7a5f294d
TT
29302020-09-29 Tom Tromey <tom@tromey.com>
2931
2932 * dwarf2/read.c (skip_one_die): Update.
2933 (read_full_die_1): Change how reprocessing is done.
2934 (partial_die_info::read): Update.
2935 (read_attribute_value): Remove need_reprocess parameter.
2936 (read_attribute): Likewise.
2937 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
2938 New method.
2939
36d378cf
TT
29402020-09-29 Tom Tromey <tom@tromey.com>
2941
2942 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
2943 (dwarf2_const_value_attr, dump_die_shallow)
2944 (dwarf2_fetch_constant_bytes): Update.
2945 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
2946 comment.
2947 <set_address>: New method.
2948 (DW_ADDR): Remove.
2949 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
2950 (attribute::as_string, attribute::as_address): Add assert.
2951
fe56917a
TT
29522020-09-29 Tom Tromey <tom@tromey.com>
2953
2954 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
2955 (read_attribute_reprocess, read_attribute_value): Update.
2956 (read_attribute): Clear requires_reprocessing.
2957 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
2958 form_requires_reprocessing>: New methods.
2959 <string_init>: Clear requires_reprocessing.
2960 <set_unsigned_reprocess>: New method.
2961 <name>: Shrink by one bit.
2962 <requires_reprocessing>: New member.
2963 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
2964 method.
2965
414ad644
TT
29662020-09-29 Tom Tromey <tom@tromey.com>
2967
2968 * dwarf2/read.c (read_attribute_value): Update.
2969 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
2970 set_unsigned>: New methods.
2971 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
2972
1bc397c5
TT
29732020-09-29 Tom Tromey <tom@tromey.com>
2974
2975 * dwarf2/read.c (get_alignment, read_array_order)
2976 (read_attribute_value, dwarf2_const_value_attr)
2977 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
2978 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
2979 New methods.
2980 (DW_SND): Remove.
2981
630ed6b9
TT
29822020-09-29 Tom Tromey <tom@tromey.com>
2983
2984 * dwarf2/read.c (read_attribute_value, lookup_die_type)
2985 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
2986 Update.
2987 * dwarf2/attribute.h (struct attribute) <as_signature,
2988 set_signature>: New methods.
2989 (DW_SIGNATURE): Remove.
2990
9d2246fc
TT
29912020-09-29 Tom Tromey <tom@tromey.com>
2992
2993 * dwarf2/read.c (read_call_site_scope)
2994 (handle_data_member_location, dwarf2_add_member_fn)
2995 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
2996 (partial_die_info::read, read_attribute_value)
2997 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
2998 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
2999 (dwarf2_symbol_mark_computed): Update.
3000 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
3001 methods.
3002 (DW_BLOCK): Remove.
3003 * dwarf2/attribute.c (attribute::form_is_block): Add
3004 DW_FORM_data16.
3005
c6481205
TT
30062020-09-29 Tom Tromey <tom@tromey.com>
3007
3008 * dwarf2/read.c (read_cutu_die_from_dwo)
3009 (read_attribute_reprocess, read_attribute_value, read_attribute)
3010 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
3011 (dwarf2_fetch_constant_bytes): Update.
3012 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
3013 <set_string_noncanonical, set_string_canonical>: New methods.
3014 <string_is_canonical>: Update comment.
3015 <canonical_string_p>: Add assert.
3016 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
3017 * dwarf2/attribute.c (attribute::form_is_string): New method.
3018 (attribute::string): Use it.
3019
3b64bf15
TT
30202020-09-29 Tom Tromey <tom@tromey.com>
3021
3022 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
3023 (dump_die_shallow): Use canonical_string_p.
3024 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
3025 method.
3026
2c830f54
TT
30272020-09-29 Tom Tromey <tom@tromey.com>
3028
3029 * dwarf2/read.c (partial_die_info::read)
3030 (dwarf2_const_value_attr, anonymous_struct_prefix, )
3031 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
3032 attribute::as_string.
3033
6c412691
TT
30342020-09-29 Tom Tromey <tom@tromey.com>
3035
3036 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
3037 DW_ADDR.
3038 (attribute::string): Don't use DW_STRING.
3039 (attribute::get_ref_die_offset): Don't use DW_UNSND.
3040 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
3041
95f982e5
TT
30422020-09-29 Tom Tromey <tom@tromey.com>
3043
3044 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
3045 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
3046 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
3047 * dwarf2/attribute.h (struct attribute): Rename methods.
3048 * dwarf2/attribute.c (attribute::as_address): Rename from
3049 value_as_address.
3050 (attribute::as_string): Rename from value_as_string.
3051
f800b00e
TT
30522020-09-29 Tom Tromey <tom@tromey.com>
3053
3054 * dwarf2/read.c (partial_die_info::read) <case
3055 DW_AT_linkage_name>: Use value_as_string.
3056 (dwarf2_string_attr): Use value_as_string.
3057 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
3058 method.
3059 * dwarf2/attribute.c (attribute::value_as_string): New method.
3060
de38d64a
PA
30612020-09-29 Pedro Alves <pedro@palves.net>
3062
3063 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
3064 defined before using '#pragma GCC diagnostic' instead of checking
3065 __clang__.
3066
9aed480c
TT
30672020-09-28 Tom Tromey <tom@tromey.com>
3068
3069 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
3070 (handle_signal_stop): Update.
3071 * procfs.c (procfs_target::insert_watchpoint): Update.
3072 * target.h (target_have_steppable_watchpoint): Now a function.
3073
8a3ecb79
TT
30742020-09-28 Tom Tromey <tom@tromey.com>
3075
3076 * infrun.c (set_schedlock_func): Update.
3077 * target.h (target_can_lock_scheduler): Now a function.
3078
55f6301a
TT
30792020-09-28 Tom Tromey <tom@tromey.com>
3080
3081 * inferior.h (class inferior) <has_execution>: Update.
3082 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
3083 * valops.c (find_function_in_inferior)
3084 (value_allocate_space_in_inferior): Update.
3085 * top.c (kill_or_detach): Update.
3086 * target.c (target_preopen, set_target_permissions): Update.
3087 (target_has_execution_current): Remove.
3088 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
3089 Update.
3090 * solib.c (update_solib_list, reload_shared_libraries): Update.
3091 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
3092 * solib-dsbt.c (enable_break): Update.
3093 * score-tdep.c (score7_fetch_inst): Update.
3094 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
3095 Update.
3096 * remote.c (remote_target::start_remote)
3097 (remote_target::remote_check_symbols, remote_target::open_1)
3098 (remote_target::remote_detach_1, remote_target::verify_memory)
3099 (remote_target::xfer_partial, remote_target::read_description)
3100 (remote_target::get_min_fast_tracepoint_insn_len): Update.
3101 * record-full.c (record_full_open_1): Update.
3102 * record-btrace.c (record_btrace_target_open): Update.
3103 * objc-lang.c (lookup_objc_class, lookup_child_selector)
3104 (value_nsstring): Update.
3105 * linux-thread-db.c (add_thread_db_info)
3106 (thread_db_find_new_threads_silently, check_thread_db_callback)
3107 (try_thread_db_load_1, record_thread): Update.
3108 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
3109 Update.
3110 * linux-fork.c (checkpoint_command): Update.
3111 * infrun.c (set_non_stop, set_observer_mode)
3112 (check_multi_target_resumption, for_each_just_stopped_thread)
3113 (maybe_remove_breakpoints, normal_stop)
3114 (class infcall_suspend_state): Update.
3115 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
3116 (info_program_command, attach_command): Update.
3117 * infcall.c (call_function_by_hand_dummy): Update.
3118 * inf-loop.c (inferior_event_handler): Update.
3119 * gcore.c (gcore_command, derive_heap_segment): Update.
3120 * exec.c (exec_file_command): Update.
3121 * eval.c (evaluate_subexp): Update.
3122 * compile/compile.c (compile_to_object): Update.
3123 * cli/cli-dump.c (restore_command): Update.
3124 * breakpoint.c (update_watchpoint)
3125 (update_inserted_breakpoint_locations)
3126 (insert_breakpoint_locations, get_bpstat_thread): Update.
3127 * target.h (target_has_execution): Remove macro.
3128 (target_has_execution_current): Don't declare.
3129 (target_has_execution): Rename from target_has_execution_1. Add
3130 argument default.
3131
05374cfd
TT
31322020-09-28 Tom Tromey <tom@tromey.com>
3133
3134 * mi/mi-main.c (exec_reverse_continue)
3135 (mi_cmd_list_target_features): Update.
3136 * infrun.c (set_exec_direction_func): Update.
3137 * target.c (default_execution_direction): Update.
3138 * reverse.c (exec_reverse_once): Update.
3139 * target.h (target_can_execute_reverse): Now a function.
3140
9dccd06e
TT
31412020-09-28 Tom Tromey <tom@tromey.com>
3142
3143 * tui/tui-regs.c (tui_get_register)
3144 (tui_data_window::show_registers): Update.
3145 * thread.c (scoped_restore_current_thread::restore)
3146 (scoped_restore_current_thread::scoped_restore_current_thread):
3147 Update.
3148 * regcache-dump.c (regcache_print): Update.
3149 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
3150 Update.
3151 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
3152 * mep-tdep.c (current_me_module, current_options): Update.
3153 * linux-thread-db.c (thread_db_load): Update.
3154 * infcmd.c (registers_info, info_vector_command)
3155 (info_float_command): Update.
3156 * ia64-tdep.c (ia64_frame_prev_register)
3157 (ia64_sigtramp_frame_prev_register): Update.
3158 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
3159 * gcore.c (derive_stack_segment): Update.
3160 * frame.c (get_current_frame, has_stack_frames): Update.
3161 * findvar.c (language_defn::read_var_value): Update.
3162 * arm-tdep.c (arm_pc_is_thumb): Update.
3163 * target.c (target_has_registers): Rename from
3164 target_has_registers_1.
3165 * target.h (target_has_registers): Remove macro.
3166 (target_has_registers): Rename from target_has_registers_1.
3167
841de120
TT
31682020-09-28 Tom Tromey <tom@tromey.com>
3169
3170 * windows-tdep.c (tlb_make_value): Update.
3171 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3172 * thread.c (scoped_restore_current_thread::restore)
3173 (scoped_restore_current_thread::scoped_restore_current_thread)
3174 (thread_command): Update.
3175 * stack.c (backtrace_command_1, frame_apply_level_command)
3176 (frame_apply_all_command, frame_apply_command): Update.
3177 * infrun.c (siginfo_make_value, restore_infcall_control_state):
3178 Update.
3179 * gcore.c (derive_stack_segment): Update.
3180 * frame.c (get_current_frame, has_stack_frames): Update.
3181 * auxv.c (info_auxv_command): Update.
3182 * ada-tasks.c (ada_build_task_list): Update.
3183 * target.c (target_has_stack): Rename from target_has_stack_1.
3184 * target.h (target_has_stack): Remove macro.
3185 (target_has_stack): Rename from target_has_stack_1.
3186
a739972c
TT
31872020-09-28 Tom Tromey <tom@tromey.com>
3188
3189 * target.c (target_has_memory): Rename from target_has_memory_1.
3190 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3191 * thread.c (scoped_restore_current_thread::restore)
3192 (scoped_restore_current_thread::scoped_restore_current_thread):
3193 Update.
3194 * frame.c (get_current_frame, has_stack_frames): Update.
3195 * target.h (target_has_memory): Remove macro.
3196 (target_has_memory): Rename from target_has_memory_1.
3197
5b8a4776
TT
31982020-09-28 Tom Tromey <tom@tromey.com>
3199
3200 * target.c (target_has_all_memory_1): Remove.
3201 * target.h (target_has_all_memory): Remove define.
3202 (target_has_all_memory_1): Don't declare.
3203
bd356ec6
SM
32042020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
3205
3206 * ser-base.c: Adjust comments formatting.
3207
2c72d5e5
TT
32082020-09-27 Tom Tromey <tom@tromey.com>
3209
3210 PR tui/25342:
3211 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
3212
35a98237
TT
32132020-09-27 Tom Tromey <tom@tromey.com>
3214
3215 PR tui/25342:
3216 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
3217
9e820dec
TT
32182020-09-27 Tom Tromey <tom@tromey.com>
3219
3220 * unittests/tui-selftests.c: Update.
3221 * tui/tui-winsource.h (struct tui_source_window_base)
3222 <extra_margin, show_line_number, refresh_pad>: New methods.
3223 <m_max_length, m_pad>: New members.
3224 (tui_copy_source_line): Update.
3225 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
3226 first_col, line_width, ndigits parameters. Add length.
3227 (tui_source_window_base::show_source_line): Write to pad. Line
3228 number now 0-based.
3229 (tui_source_window_base::refresh_pad): New method.
3230 (tui_source_window_base::show_source_content): Write to pad. Call
3231 refresh_pad.
3232 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
3233 not refill.
3234 (tui_source_window_base::update_exec_info): Call
3235 show_line_number.
3236 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
3237 method.
3238 <m_digits>: New member.
3239 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
3240 and m_max_length.
3241 (tui_source_window::show_line_number): New method.
3242 * tui/tui-io.h (tui_puts): Fix comment.
3243 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
3244 m_max_length.
3245
c15c15c8
TT
32462020-09-27 Tom Tromey <tom@tromey.com>
3247
3248 * tui/tui-winsource.c
3249 (tui_source_window_base::set_is_exec_point_at): Don't call
3250 show_source_line.
3251
149830c1
TT
32522020-09-27 Tom Tromey <tom@tromey.com>
3253
3254 * python/py-tui.c (class tui_py_window) <refresh_window>: New
3255 method.
3256 <erase>: Update.
3257 <cursor_x, cursor_y>: Remove.
3258 <m_inner_window>: New member.
3259 (tui_py_window::rerender): Create inner window.
3260 (tui_py_window::output): Write to inner window.
3261
8f9929bb
GR
32622020-09-26 Gareth Rees <grees@undo.io> (tiny change)
3263
3264 PR python/26586
3265 * cli/cli-script.c (execute_control_commands): don't set
3266 instream to nullptr here as this breaks the from_tty argument
3267 to gdb.execute in Python.
3268 (execute_user_command): set instream to nullptr here instead.
3269
956bdb59
SM
32702020-09-25 Simon Marchi <simon.marchi@efficios.com>
3271
3272 * infrun.h (infrun_debug_printf): Fix formatting.
3273 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
3274
3b93626b
SJ
32752020-09-25 Saagar Jha <saagar@saagarjha.com>
3276
3277 * compile/compile-object-load.h (struct munmap_list): Add
3278 explicitly-defined move constructor.
3279
b551a89f
TT
32802020-09-24 Tom Tromey <tromey@adacore.com>
3281
3282 PR tui/26638:
3283 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
3284 method.
3285 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
3286 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
3287 (tui_prev_win): Rewrite.
3288
99bb393f
HD
32892020-09-23 Hannes Domani <ssbssa@yahoo.de>
3290
3291 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
3292 in WOW64 processes as SIGINT.
3293 * nat/windows-nat.h: Make wow64_process a shared variable.
3294 * windows-nat.c: Remove static wow64_process variable.
3295
20a5fcbd
TT
32962020-09-23 Tom Tromey <tom@tromey.com>
3297
3298 PR symtab/25470:
3299 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
3300 offset and bit size.
3301 * printcmd.c (print_scalar_formatted): Handle zero-length
3302 integer.
3303 (print_scalar_formatted): Use bit_size_differs_p.
3304 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
3305 constant.
3306 (union type_specific): <int_stuff>: New member.
3307 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
3308 methods.
3309 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
3310 TYPE_SPECIFIC_FIELD.
3311 (recursive_dump_type, copy_type_recursive): Update.
3312 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
3313 DW_AT_data_bit_offset.
3314
bac51ab7
TT
33152020-09-23 Tom Tromey <tom@tromey.com>
3316
3317 * utils.h (class gdb_argv): Add move operators.
3318 <append>: New methods.
3319 * compile/compile.c (build_argc_argv): Remove.
3320 (compile_args_argc): Remove.
3321 (compile_args_argv): Change type.
3322 (set_compile_args): Simplify.
3323 (append_args): Remove.
3324 (filter_args): Remove argcp parameter.
3325 (get_args): Return gdb_argv. Simplify.
3326 (compile_to_object): Update.
3327
92677124
TT
33282020-09-23 Tom Tromey <tom@tromey.com>
3329
3330 * compile/compile-object-run.c (do_module_cleanup)
3331 <~do_module_cleanup> :Remove.
3332 (do_module_cleanup): Update.
3333 * compile/compile-object-load.h (struct munmap_list): Add move
3334 assignment operator.
3335 <source_file>: Now a std::string.
3336 <munmap_list>: Rename. No longer a pointer.
3337 * compile/compile-object-load.c (struct setup_sections_data): Add
3338 constructor.
3339 <setup_one_section>: Declare.
3340 <munmap_list>: Move earlier.
3341 <m_bfd>: New member.
3342 <m_last_size, m_last_section_first, m_last_prot,
3343 m_last_max_alignment>: Rename, add initializers where needed.
3344 (setup_sections_data::setup_one_section): Rename from
3345 setup_sections. Update.
3346 (compile_object_load): Update. Don't use bfd_map_over_sections.
3347
e616f60a
TT
33482020-09-23 Tom Tromey <tom@tromey.com>
3349
3350 * compile/compile-object-run.c (struct do_module_cleanup): Add
3351 parameters to constructor. Update destructor.
3352 <source_file, scope, scope_data, out_value_type, out_value_addr,
3353 munmap_list_head, objfile_name_string>: Remove.
3354 <module>: New member.
3355 (do_module_cleanup): Update.
3356 (compile_object_run): Update.
3357
e947a848
TT
33582020-09-23 Tom Tromey <tom@tromey.com>
3359
3360 * compile/compile.c (eval_compile_command): Update.
3361 * compile/compile-object-run.h (compile_object_run): Take a
3362 compile_module_up.
3363 * compile/compile-object-run.c (compile_object_run): Take a
3364 compile_module_up.
3365 * compile/compile-object-load.h (struct compile_module): Add
3366 constructor, destructor.
3367 (compile_module_up): New typedef.
3368 (compile_object_load): Return compile_object_up.
3369 * compile/compile-object-load.c (compile_object_load): Return
3370 compile_module_up.
3371
0dbf6ee6
TT
33722020-09-23 Tom Tromey <tom@tromey.com>
3373
3374 * compile/compile-object-run.c (struct do_module_cleanup): Add
3375 constructor, destructor.
3376 <objfile_name_string>: Don't use struct hack.
3377 (do_module_cleanup): Use delete.
3378 (compile_object_run): Use new.
3379
ebe824f5
TT
33802020-09-23 Tom Tromey <tom@tromey.com>
3381
3382 * compile/compile-cplus-types.c
3383 (compile_cplus_convert_struct_or_union): Use std::vector.
3384 (compile_cplus_convert_func): Likewise.
3385 * compile/compile-c-types.c (convert_func): Use std::vector.
3386
5dd918d9
TT
33872020-09-21 Tom Tromey <tromey@adacore.com>
3388
3389 * sparc-tdep.c (sparc32_skip_prologue): Use
3390 skip_prologue_using_sal.
3391
5486c517
TT
33922020-09-19 Tom Tromey <tom@tromey.com>
3393
3394 * symfile.c (add_section_size_callback): Remove.
3395 (load_one_section): Rename from load_section_callback. Change
3396 parameters.
3397 (generic_load): Use foreach.
3398
8a6bb1d1
TT
33992020-09-19 Tom Tromey <tom@tromey.com>
3400
3401 * exec.c (add_to_section_table): Remove.
3402 (build_section_table): Use foreach.
3403
08f93a1a
TT
34042020-09-19 Tom Tromey <tom@tromey.com>
3405
3406 * elfread.c (elf_locate_sections): Change parameters.
3407 (elf_symfile_read): Use foreach.
3408
03cd72b8
TT
34092020-09-19 Tom Tromey <tom@tromey.com>
3410
3411 * cli/cli-dump.c (struct callback_data): Remove.
3412 (restore_one_section): Rename from restore_section_callback.
3413 Change parameters.
3414 (restore_binary_file): Change parameters.
3415 (restore_command): Use foreach.
3416
f4f2b85f
TT
34172020-09-19 Tom Tromey <tom@tromey.com>
3418
3419 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
3420 (gcore_copy_callback): Likewise.
3421 (gcore_memory_sections): Use foreach.
3422
b35c1d1c
TT
34232020-09-19 Tom Tromey <tom@tromey.com>
3424
3425 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
3426 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
3427 parameters.
3428 (generic_elf_osabi_sniffer): Use foreach.
3429 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
3430 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
3431
5bb6e9dd
TT
34322020-09-19 Tom Tromey <tom@tromey.com>
3433
3434 * dwarf2/read.c (locate_dwz_sections): Change parameters.
3435 (dwarf2_get_dwz_file): Use foreach.
3436 (dwarf2_locate_dwo_sections): Change parameters.
3437 (open_and_init_dwo_file): Use foreach.
3438 (dwarf2_locate_common_dwp_sections): Change parameters.
3439 (open_and_init_dwp_file): Use foreach.
3440
ad7277da
TT
34412020-09-19 Tom Tromey <tom@tromey.com>
3442
3443 * symfile.h: (find_lowest_section): Don't declare.
3444 * symfile.c (find_lowest_section): Now static. Change
3445 parameters.
3446 (struct place_section_arg): Remove.
3447 (place_section): Change parameters.
3448 (addr_info_make_relative): Use foreach.
3449 (symfile_dummy_outputs): Remove.
3450 (default_symfile_relocate): Use foreach.
3451
cb814f2e
TT
34522020-09-19 Tom Tromey <tom@tromey.com>
3453
3454 * objfiles.c (add_to_objfile_sections): Rename from
3455 add_to_objfile_sections_full.
3456 (add_to_objfile_sections): Remove.
3457 (build_objfile_section_table): Use foreach.
3458
3cabfd26
TT
34592020-09-19 Tom Tromey <tom@tromey.com>
3460
3461 * stap-probe.c (get_stap_base_address_1): Remove.
3462 (get_stap_base_address): Use foreach.
3463
1ce51eb5
TT
34642020-09-19 Tom Tromey <tom@tromey.com>
3465
3466 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
3467 parameters.
3468 (gdb_bfd_close_or_warn): Use foreach.
3469
a190fabb
TT
34702020-09-19 Tom Tromey <tom@tromey.com>
3471
3472 * corelow.c (add_to_thread_list): Change parameters.
3473 (core_target_open): Use foreach.
3474
cafb0d81
TT
34752020-09-19 Tom Tromey <tom@tromey.com>
3476
3477 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
3478 existing function.
3479
c8d5abea
AB
34802020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3481
3482 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
3483 for arrays.
3484
6d816919
AB
34852020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3486
3487 * eval.c: Remove 'f-lang.h' include.
3488 (value_f90_subarray): Moved to f-lang.c.
3489 (eval_call): Renamed to...
3490 (evaluate_subexp_do_call): ...this, is no longer static, header
3491 comment moved into header file.
3492 (evaluate_funcall): Update call to eval_call.
3493 (skip_undetermined_arglist): Moved to f-lang.c.
3494 (fortran_value_subarray): Likewise.
3495 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3496 moved to evaluate_subexp_f.
3497 (calc_f77_array_dims): Moved to f-lang.c
3498 * expprint.c (print_subexp_funcall): New function.
3499 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3500 moved to print_subexp_f, OP_FUNCALL uses new function.
3501 (dump_subexp_body_funcall): New function.
3502 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
3503 moved to dump_subexp_f, OP_FUNCALL uses new function.
3504 * expression.h (evaluate_subexp_do_call): Declare.
3505 * f-lang.c (value_f90_subarray): Moved from eval.c.
3506 (skip_undetermined_arglist): Likewise.
3507 (calc_f77_array_dims): Likewise.
3508 (fortran_value_subarray): Likewise.
3509 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
3510 (operator_length_f): Likewise.
3511 (print_subexp_f): Likewise.
3512 (dump_subexp_body_f): Likewise.
3513 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
3514 declaration of this operation to here.
3515 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
3516 support moved to operator_length_f.
3517 * parser-defs.h (dump_subexp_body_funcall): Declare.
3518 (print_subexp_funcall): Declare.
3519 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
3520 fortran-operator.def.
3521
8c37706a
AB
35222020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3523
3524 * eval.c (fortran_value_subarray): New function, content is taken
3525 from...
3526 (evaluate_subexp_standard): ...here, in two places. Now arrays
3527 and strings both call the new function.
3528 (calc_f77_array_dims): Add header comment, handle strings.
3529
14f9473c
VC
35302020-09-18 Victor Collod <vcollod@nvidia.com>
3531
3532 PR gdb/26635
3533 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
3534 (i386_analyze_prologue): Call i386_skip_endbr.
3535
b60cea74
TT
35362020-09-18 Tom Tromey <tromey@adacore.com>
3537
3538 * windows-nat.c (struct windows_nat_target) <wait>: Update.
3539 (windows_nat_target::wait): Update.
3540 * target/wait.h (enum target_wait_flag): New. Use
3541 DEF_ENUM_FLAGS_TYPE.
3542 * target/target.h (target_wait): Change type of options.
3543 * target.h (target_options_to_string, default_target_wait):
3544 Update.
3545 (struct target_ops) <wait>: Change type of options.
3546 * target.c (target_wait, default_target_wait, do_option): Change
3547 type of "options".
3548 (target_options_to_string): Likewise.
3549 * target-delegates.c: Rebuild.
3550 * target-debug.h (target_debug_print_target_wait_flags): Rename
3551 from target_debug_print_options.
3552 * sol-thread.c (class sol_thread_target) <wait>: Update.
3553 (sol_thread_target::wait): Update.
3554 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
3555 (rs6000_nat_target::wait): Update.
3556 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
3557 Update.
3558 (remote_target::wait_ns, remote_target::wait_as): Change type of
3559 "options".
3560 (remote_target::wait): Update.
3561 * remote-sim.c (struct gdbsim_target) <wait>: Update.
3562 (gdbsim_target::wait): Update.
3563 * record-full.c (class record_full_base_target) <wait>: Update.
3564 (record_full_wait_1): Change type of "options".
3565 (record_full_base_target::wait): Update.
3566 * record-btrace.c (class record_btrace_target) <wait>: Update.
3567 (record_btrace_target::wait): Update.
3568 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
3569 Update.
3570 (ravenscar_thread_target::wait): Update.
3571 * procfs.c (class procfs_target) <wait>: Update.
3572 (procfs_target::wait): Update.
3573 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
3574 * obsd-nat.c (obsd_nat_target::wait): Update.
3575 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
3576 (nto_procfs_target::wait): Update.
3577 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
3578 * nbsd-nat.c (nbsd_wait): Change type of "options".
3579 (nbsd_nat_target::wait): Update.
3580 * linux-thread-db.c (class thread_db_target) <wait>: Update.
3581 (thread_db_target::wait): Update.
3582 * linux-nat.h (class linux_nat_target) <wait>: Update.
3583 * linux-nat.c (linux_nat_target::wait): Update.
3584 (linux_nat_wait_1): Update.
3585 * infrun.c (do_target_wait_1, do_target_wait): Change type of
3586 "options".
3587 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
3588 * inf-ptrace.c (inf_ptrace_target::wait): Update.
3589 * go32-nat.c (struct go32_nat_target) <wait>: Update.
3590 (go32_nat_target::wait): Update.
3591 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
3592 * gnu-nat.c (gnu_nat_target::wait): Update.
3593 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
3594 * fbsd-nat.c (fbsd_nat_target::wait): Update.
3595 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
3596 * darwin-nat.c (darwin_nat_target::wait): Update.
3597 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
3598 (bsd_uthread_target::wait): Update.
3599 * aix-thread.c (class aix_thread_target) <wait>: Update.
3600 (aix_thread_target::wait): Update.
3601
0295dde6
AB
36022020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
3603
3604 * compile/compile-object-run.c (create_copied_type_recursive): New
3605 function.
3606 (compile_object_run): Use new function.
3607
d3483b43
JT
36082020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
3609
3610 * NEWS: Mention x86_64 Cygwin core file support.
3611
e7d612ad
JT
36122020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3613
3614 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
3615 (core_process_module_section): Handle NOTE_INFO_MODULE64.
3616
aff9d387
JT
36172020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3618
62a5151b
JT
3619 * windows-tdep.h: Add prototypes.
3620 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
3621 (i386_windows_core_pid_to_str): Move and rename ...
3622 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
3623 (windows_core_pid_to_str): ... and here.
3624 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
3625
36262020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
3627 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
3628 (amd64_windows_init_abi_common): ... and register.
3629
7d155da3
JT
36302020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3631
3632 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
3633 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
3634
e8ef12b9
PA
36352020-09-18 Pedro Alves <pedro@palves.net>
3636
3637 PR gdb/26631
3638 * thread.c (thread_find_command): Switch inferior before calling
3639 target methods.
3640
c1e1314d
TT
36412020-09-17 Tom Tromey <tromey@adacore.com>
3642
3643 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
3644 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
3645 (tdesc_arch_data_up): New typedef.
3646 (tdesc_use_registers, tdesc_data_alloc): Update.
3647 (tdesc_data_cleanup): Don't declare.
3648 * target-descriptions.c (tdesc_data_alloc): Return a
3649 tdesc_arch_data_up.
3650 (tdesc_arch_data_deleter::operator()): Rename from
3651 tdesc_data_cleanup. Change argument type.
3652 (tdesc_use_registers): Change early_data to an rvalue reference.
3653 (tdesc_use_registers): Don't use delete.
3654 * sparc-tdep.c (sparc32_gdbarch_init): Update.
3655 * s390-tdep.c (s390_gdbarch_init): Update.
3656 * rx-tdep.c (rx_gdbarch_init): Update.
3657 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3658 * riscv-tdep.c (riscv_gdbarch_init): Update.
3659 * or1k-tdep.c (or1k_gdbarch_init): Update.
3660 * nios2-tdep.c (nios2_gdbarch_init): Update.
3661 * nds32-tdep.c (nds32_gdbarch_init): Update.
3662 * mips-tdep.c (mips_gdbarch_init): Update.
3663 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
3664 * m68k-tdep.c (m68k_gdbarch_init): Update.
3665 * i386-tdep.c (i386_gdbarch_init): Update.
3666 * arm-tdep.c (arm_gdbarch_init): Update.
3667 * arc-tdep.c (arc_tdesc_init): Update.
3668 (arc_gdbarch_init): Update.
3669 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
3670
0363df3d
HD
36712020-09-17 Hannes Domani <ssbssa@yahoo.de>
3672
3673 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
3674 for WOW64 processes.
3675
280a9412
TT
36762020-09-17 Tom Tromey <tom@tromey.com>
3677
3678 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
3679
6108fd18
TT
36802020-09-17 Tom Tromey <tom@tromey.com>
3681
3682 * value.c (preserve_values): Update.
3683 * python/py-type.c (save_objfile_types): Update.
3684 * guile/scm-type.c (save_objfile_types): Update.
3685 * gdbtypes.h (create_copied_types_hash): Return htab_up.
3686 * gdbtypes.c (create_copied_types_hash): Return htab_up.
3687 * compile/compile-object-run.c (compile_object_run): Update.
3688
fa9b1164
TT
36892020-09-17 Tom Tromey <tom@tromey.com>
3690
3691 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
3692 Remove.
3693 <m_table>: Now htab_up.
3694 * typeprint.c (typedef_hash_table::recursively_update)
3695 (typedef_hash_table::add_template_parameters)
3696 (typedef_hash_table::typedef_hash_table): Update.
3697 (typedef_hash_table::~typedef_hash_table): Remove.
3698 (typedef_hash_table::typedef_hash_table)
3699 (typedef_hash_table::find_global_typedef)
3700 (typedef_hash_table::find_typedef): Update.
3701
eb53f105
TT
37022020-09-17 Tom Tromey <tom@tromey.com>
3703
3704 * target-descriptions.c (tdesc_use_registers): Use htab_up.
3705
7a8a5d47
TT
37062020-09-17 Tom Tromey <tom@tromey.com>
3707
3708 * linespec.c (class decode_compound_collector)
3709 <~decode_compound_collector>: Remove.
3710 <m_unique_syms>: Now htab_up.
3711 (decode_compound_collector::operator ()): Update.
3712 (class symtab_collector) <~symtab_collector>: Remove.
3713 <m_symtab_table>: Now htab_up.
3714 (symtab_collector::operator ()): Update.
3715
99032cfc
TT
37162020-09-17 Tom Tromey <tom@tromey.com>
3717
3718 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
3719 (filename_seen_cache::clear): Update.
3720 (~filename_seen_cache): Remove.
3721 (filename_seen_cache::seen): Update.
3722 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
3723 htab_up.
3724 <~filename_seen_cache>: Remove.
3725 <traverse>: Update.
3726
32580f6d
TT
37272020-09-17 Tom Tromey <tom@tromey.com>
3728
3729 * completer.c (completion_tracker::discard_completions)
3730 (completion_tracker::~completion_tracker)
3731 (completion_tracker::maybe_add_completion)
3732 (completion_tracker::remove_completion)
3733 (completion_tracker::recompute_lowest_common_denominator)
3734 (completion_tracker::build_completion_result): Update.
3735 * completer.h (class completion_tracker) <have_completions>:
3736 Update.
3737 <m_entries_hash>: Now htab_up.
3738
c1fb9836
TT
37392020-09-17 Tom Tromey <tom@tromey.com>
3740
3741 * breakpoint.c (ambiguous_names_p): Use htab_up.
3742
88f07206
TT
37432020-09-17 Tom Tromey <tom@tromey.com>
3744
3745 * auto-load.c (struct auto_load_pspace_info)
3746 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
3747 <loaded_script_files, loaded_script_texts>: Change type to
3748 htab_up.
3749 (~auto_load_pspace_info) Remove.
3750 (init_loaded_scripts_info, maybe_add_script_file)
3751 (maybe_add_script_text, auto_load_info_scripts): Update.
3752
9519b2ee
TT
37532020-09-17 Tom Tromey <tromey@adacore.com>
3754
3755 * c-exp.y (name_obstack): Now static.
3756
d2cd4113
CC
37572020-09-17 Chungyi Chi <demonic@csie.io>
3758
3759 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
3760
b650a282
SM
37612020-09-16 Simon Marchi <simon.marchi@efficios.com>
3762
3763 * breakpoint.h (init_catchpoint): Change int parameter to bool.
3764 (add_solib_catchpoint): Likewise.
3765 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
3766 to bool.
3767 (add_solib_catchpoint): Change int parameter/variable to bool.
3768 (catch_load_or_unload): Likewise.
3769 (init_catchpoint): Likewise.
3770 (create_fork_vfork_event_catchpoint): Likewise.
3771 (catch_fork_command_1): Likewise.
3772 (catch_exec_command_1): Likewise.
3773
4d0bcfcf
SM
37742020-09-16 Simon Marchi <simon.marchi@efficios.com>
3775
3776 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
3777 Change instance_flags to m_instance_flags.
3778
fe830662
TT
37792020-09-16 Tom Tromey <tromey@adacore.com>
3780
3781 PR gdb/26598:
3782 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
3783
fe5ddfc3
JB
37842020-09-16 John Baldwin <jhb@FreeBSD.org>
3785
3786 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
3787 PL_FLAG_EXEC.
3788 (fbsd_nat_target::insert_exec_catchpoint)
3789 (fbsd_nat_target::remove_exec_catchpoint): Always define.
3790 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
3791 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
3792
e911c666
JB
37932020-09-16 John Baldwin <jhb@FreeBSD.org>
3794
3795 * configure.ac: Remove check for kinfo_getvmmap().
3796 * configure, config.in: Regenerate.
3797 * fbsd-nat.c (fbsd_read_mapping): Remove
3798 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
3799 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
3800 kinfo_get_vmmap() are always present.
3801
1f17d372
JB
38022020-09-16 John Baldwin <jhb@FreeBSD.org>
3803
3804 * fbsd-nat.c: Always include support for
3805 TARGET_OBJECT_SIGNAL_INFO.
3806
bcb1da7f
JB
38072020-09-16 John Baldwin <jhb@FreeBSD.org>
3808
3809 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
3810 sysctl and remove procfs fallback.
3811
5515f729
JB
38122020-09-16 John Baldwin <jhb@FreeBSD.org>
3813
3814 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
3815 * fbsd-nat.h: Likewise.
3816
da1df1db
TBA
38172020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3818
3819 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
3820 argument.
3821
0e25e767
AB
38222020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3823
3824 * ada-lang.c (ada_language_data): Delete.
3825 (ada_language): Remove references to ada_language_data.
3826 * c-lang.c (c_language_data): Delete.
3827 (c_language): Remove references to c_language_data.
3828 (cplus_language_data): Delete.
3829 (cplus_language): Remove references to cplus_language_data.
3830 (asm_language_data): Delete.
3831 (asm_language): Remove references to asm_language_data.
3832 (minimal_language_data): Delete.
3833 (minimal_language): Remove references to minimal_language_data.
3834 * d-lang.c (d_language_data): Delete.
3835 (d_language): Remove references to d_language_data.
3836 * f-lang.c (f_language_data): Delete.
3837 (f_language): Remove references to f_language_data.
3838 * go-lang.c (go_language_data): Delete.
3839 (go_language): Remove references to go_language_data.
3840 * language.c (unknown_language_data): Delete.
3841 (unknown_language): Remove references to unknown_language_data.
3842 (auto_language_data): Delete.
3843 (auto_language): Remove references to auto_language_data.
3844 * language.h (language_data): Delete struct.
3845 (language_defn): No longer inherit from language_data.
3846 * m2-lang.c (m2_language_data): Delete.
3847 (m2_language): Remove references to m2_language_data.
3848 * objc-lang.c (objc_language_data): Delete.
3849 (objc_language): Remove references to objc_language_data.
3850 * opencl-lang.c (opencl_language_data): Delete.
3851 (opencl_language): Remove references to opencl_language_data.
3852 * p-lang.c (pascal_language_data): Delete.
3853 (pascal_language): Remove references to pascal_language_data.
3854 * rust-lang.c (rust_language_data): Delete.
3855 (rust_language): Remove references to rust_language_data.
3856
b7c6e27d
AB
38572020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3858
3859 * ada-lang.c (ada_language_data): Remove la_op_print_tab
3860 initializer.
3861 (ada_language::opcode_print_table): New member function.
3862 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
3863 (c_language::opcode_print_table): New member function.
3864 (cplus_language_data): Remove la_op_print_tab initializer.
3865 (cplus_language::opcode_print_table): New member function.
3866 (asm_language_data): Remove la_op_print_tab initializer.
3867 (asm_language::opcode_print_table): New member function.
3868 (minimal_language_data): Remove la_op_print_tab initializer.
3869 (minimal_language::opcode_print_table): New member function.
3870 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
3871 (d_language::opcode_print_table): New member function.
3872 * expprint.c (print_subexp_standard): Update call to
3873 opcode_print_table.
3874 (op_string): Likewise.
3875 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
3876 (f_language::opcode_print_table): New member function.
3877 * go-lang.c (go_language_data): Remove la_op_print_tab
3878 initializer.
3879 (go_language::opcode_print_table): New member function.
3880 * language.c (unknown_language_data): Remove la_op_print_tab
3881 initializer.
3882 (unknown_language::opcode_print_table): New member function.
3883 (auto_language_data): Remove la_op_print_tab initializer.
3884 (auto_language::opcode_print_table): New member function.
3885 * language.h (language_data): Remove la_op_print_tab field.
3886 (language_defn::opcode_print_table): Declare new member function.
3887 * m2-lang.c (m2_language_data): Remove la_op_print_tab
3888 initializer.
3889 (m2_language::opcode_print_table): New member function.
3890 * objc-lang.c (objc_language_data): Remove la_op_print_tab
3891 initializer.
3892 (objc_language::opcode_print_table): New member function.
3893 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
3894 initializer.
3895 (opencl_language::opcode_print_table): New member function.
3896 * p-lang.c (pascal_language_data): Remove la_op_print_tab
3897 initializer.
3898 (pascal_language::opcode_print_table): New member function.
3899 * rust-lang.c (rust_language_data): Remove la_op_print_tab
3900 initializer.
3901 (rust_language::opcode_print_table): New member function.
3902
5aba6ebe
AB
39032020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3904
3905 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
3906 (ada_language::expression_ops): New member function.
3907 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
3908 (c_language::expression_ops): New member function.
3909 (cplus_language_data): Remove la_exp_desc initializer.
3910 (cplus_language::expression_ops): New member function.
3911 (asm_language_data): Remove la_exp_desc initializer.
3912 (asm_language::expression_ops): New member function.
3913 (minimal_language_data): Remove la_exp_desc initializer.
3914 (minimal_language::expression_ops): New member function.
3915 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
3916 (d_language::expression_ops): New member function.
3917 * eval.c (evaluate_subexp): Update call to expression_ops.
3918 * expprint.c (print_subexp): Likewise.
3919 (op_name): Likewise.
3920 (dump_subexp_body): Likewise.
3921 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
3922 (f_language::expression_ops): New member function.
3923 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
3924 (go_language::expression_ops): New member function.
3925 * language.c (language_defn::expression_ops): New function.
3926 (unknown_language_data): Remove la_exp_desc initializer.
3927 (auto_language_data): Likewise.
3928 * language.h (language_data): Remove la_exp_desc field.
3929 (language_defn::expression_ops): Declare new member function.
3930 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
3931 (m2_language::expression_ops): New member function.
3932 * objc-lang.c (objc_language_data): Remove la_exp_desc
3933 initializer.
3934 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
3935 initializer.
3936 (opencl_language::expression_ops): New member function.
3937 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
3938 * parse.c (operator_length): Update call to expression_ops.
3939 (exp_iterate): Likewise.
3940 * rust-lang.c (rust_language_data): Remove la_exp_desc
3941 initializer.
3942 (ruse_language::expression_ops): New member function.
3943
b63a3f3f
AB
39442020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3945
3946 * ada-lang.c (ada_language_data): Remove la_varobj_ops
3947 initializer.
3948 (ada_language::varobj_ops): New member function.
3949 * c-lang.c (c_language_data): Remove la_varobj_ops
3950 initializer.
3951 (cplus_language_data): Likewise.
3952 (cplus_language::varobj_ops): New member function.
3953 (asm_language_data): Remove la_varobj_ops initializer.
3954 (minimal_language_data): Likewise.
3955 * d-lang.c (d_language_data): Likewise.
3956 * f-lang.c (f_language_data): Likewise.
3957 * go-lang.c (go_language_data): Likewise.
3958 * language.c (language_defn::varobj_ops): New function.
3959 (unknown_language_data): Remove la_varobj_ops
3960 initializer.
3961 (auto_language_data): Likewise.
3962 * language.h (language_data): Remove la_varobj_ops field.
3963 (language_defn::varobj_ops): Declare new member function.
3964 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
3965 * objc-lang.c (objc_language_data): Likewise.
3966 * opencl-lang.c (opencl_language_data): Likewise.
3967 * p-lang.c (pascal_language_data): Likewise.
3968 * rust-lang.c (rust_language_data): Likewise.
3969 * varobj.c (varobj_create): Update call to varobj_ops.
3970 * varobj.h (default_varobj_ops): Delete define.
3971
1ac14a04
AB
39722020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3973
3974 * ada-lang.c (ada_language_data): Remove la_macro_expansion
3975 initializer.
3976 * c-lang.c (c_language_data): Likewise.
3977 (c_language::macro_expansion): New member function.
3978 (cplus_language_data): Likewise.
3979 (cplus_language::macro_expansion): New member function.
3980 (asm_language_data): Likewise.
3981 (asm_language::macro_expansion): New member function.
3982 (minimal_language_data): Likewise.
3983 (minimal_language::macro_expansion): New member function.
3984 * d-lang.c (d_language_data): Remove la_macro_expansion
3985 initializer.
3986 * f-lang.c (f_language_data): Likewise.
3987 * go-lang.c (go_language_data): Likewise.
3988 * language.c (unknown_language_data): Likewise.
3989 (auto_language_data): Likewise.
3990 * language.h (language_data): Remove la_macro_expansion field.
3991 (language_defn::macro_expansion): New member function.
3992 * m2-lang.c (m2_language_data): Remove la_macro_expansion
3993 initializer.
3994 * objc-lang.c (objc_language_data): Likewise.
3995 (objc_language::macro_expansion): New member function.
3996 * opencl-lang.c (opencl_language_data): Likewise.
3997 (opencl_language::macro_expansion): New member function.
3998 * p-lang.c (pascal_language_data): Remove la_macro_expansion
3999 initializer.
4000 * rust-lang.c (rust_language_data): Likewise.
4001 * symtab.c (default_collect_symbol_completion_matches_break_on):
4002 Update call to macro_expansion.
4003
3a3440fb
AB
40042020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4005
4006 * ada-lang.c (ada_language_data): Remove la_array_ordering
4007 initializer.
4008 * c-lang.c (c_language_data): Likewise.
4009 (cplus_language_data): Likewise.
4010 (asm_language_data): Likewise.
4011 (minimal_language_data): Likewise.
4012 * d-lang.c (d_language_data): Likewise.
4013 * dwarf2/read.c (read_array_order): Update for call to
4014 array_ordering.
4015 * f-lang.c (f_language_data): Remove la_array_ordering
4016 initializer.
4017 (f_language::array_ordering): New member function.
4018 * go-lang.c (go_language_data): Remove la_array_ordering
4019 initializer.
4020 * language.c (unknown_language_data): Likewise.
4021 (auto_language_data): Likewise.
4022 * language.h (language_data): Delete la_array_ordering field.
4023 (language_defn::array_ordering): New member function.
4024 * m2-lang.c (m2_language_data): Remove la_array_ordering
4025 initializer.
4026 * objc-lang.c (objc_language_data): Likewise.
4027 * opencl-lang.c (opencl_language_data): Likewise.
4028 * p-lang.c (pascal_language_data): Likewise.
4029 * rust-lang.c (rust_language_data): Likewise.
4030
0d201fa4
AB
40312020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4032
4033 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
4034 initializer.
4035 * c-lang.c (c_language_data): Likewise.
4036 (cplus_language_data): Likewise.
4037 (asm_language_data): Likewise.
4038 (minimal_language_data): Likewise.
4039 * d-lang.c (d_language_data): Likewise.
4040 * f-lang.c (f_language_data): Likewise.
4041 (f_language::case_sensitivity): New member function.
4042 * go-lang.c (go_language_data): Remove la_case_sensitivity
4043 initializer.
4044 * language.c (enum case_mode): Moved here from language.h.
4045 (case_mode): Make static.
4046 (show_case_command): Update for case_sensitivity being a method.
4047 (set_case_command): Likewise.
4048 (set_range_case): Likewise.
4049 (unknown_language_data): Remove la_case_sensitivity initializer.
4050 (auto_language_data): Likewise.
4051 * language.h (case_mode): Delete, move enum declaration to
4052 language.c.
4053 (language_data): Delete la_case_sensitivity field.
4054 (language_defn::case_sensitivity): New member function.
4055 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
4056 initializer.
4057 * objc-lang.c (objc_language_data): Likewise.
4058 * opencl-lang.c (opencl_language_data): Likewise.
4059 * p-lang.c (pascal_language_data): Likewise.
4060 * rust-lang.c (rust_language_data): Likewise.
4061
efdf6a73
AB
40622020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4063
4064 * ada-lang.c (ada_language_data): Remove la_range_check
4065 initializer.
4066 * c-lang.c (c_language_data): Likewise.
4067 (cplus_language_data): Likewise.
4068 (asm_language_data): Likewise.
4069 (minimal_language_data): Likewise.
4070 * d-lang.c (d_language_data): Likewise.
4071 * f-lang.c (f_language_data): Likewise.
4072 (f_language::range_checking_on_by_default): New member function.
4073 * go-lang.c (go_language_data): Remove la_range_check initializer.
4074 * language.c (enum range_mode): Moved here from language.h.
4075 (range_mode): Made static.
4076 (show_range_command): Update to use
4077 range_checking_on_by_default.
4078 (set_range_command): Likewise.
4079 (set_range_case): Likewise.
4080 (unknown_language_data): Remove la_range_check initializer.
4081 (auto_language_data): Likewise.
4082 * language.h (range_mode): Delete. Enum definition moved to
4083 language.c.
4084 (language_data): Remove la_range_check field.
4085 (language_defn::range_checking_on_by_default): New member
4086 function.
4087 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
4088 (m2_language::range_checking_on_by_default): New member function.
4089 * objc-lang.c (objc_language_data): Remove la_range_check
4090 initializer.
4091 * opencl-lang.c (opencl_language_data): Likewise.
4092 * p-lang.c (pascal_language_data): Likewise.
4093 (pascal_language::range_checking_on_by_default): New member
4094 function.
4095 * rust-lang.c (rust_language_data): Remove la_range_check
4096 initializer.
4097 (rust_language::range_checking_on_by_default): New member
4098 function.
4099
bf92aec5
AB
41002020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4101
4102 * dwarf2/read.c (dwarf2_physname): Remove special case for
4103 language_go.
4104 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
4105 member function.
4106
d3355e4d
AB
41072020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4108
4109 * ada-lang.c (ada_language_data): Remove
4110 la_store_sym_names_in_linkage_form_p initializer.
4111 (ada_language::store_sym_names_in_linkage_form_p): New member
4112 function.
4113 * c-lang.c (c_language_data): Remove
4114 la_store_sym_names_in_linkage_form_p initializer.
4115 (c_language::store_sym_names_in_linkage_form_p): New member
4116 function.
4117 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
4118 initializer.
4119 (asm_language_data): Likewise.
4120 (asm_language::store_sym_names_in_linkage_form_p): New member
4121 function.
4122 (minimal_language_data): Remove
4123 la_store_sym_names_in_linkage_form_p initializer.
4124 (minimal_language::store_sym_names_in_linkage_form_p): New member
4125 function.
4126 * d-lang.c (d_language_data): Remove
4127 la_store_sym_names_in_linkage_form_p initializer.
4128 * dwarf2/read.c (dwarf2_physname): Update call to
4129 store_sym_names_in_linkage_form_p.
4130 * f-lang.c (f_language_data): Remove
4131 la_store_sym_names_in_linkage_form_p initializer.
4132 * go-lang.c (go_language_data): Remove
4133 la_store_sym_names_in_linkage_form_p initializer.
4134 * language.c (unknown_language_data): Remove
4135 la_store_sym_names_in_linkage_form_p initializer.
4136 (unknown_language::store_sym_names_in_linkage_form_p): New member
4137 function.
4138 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
4139 initializer.
4140 (auto_language::store_sym_names_in_linkage_form_p): New member
4141 function.
4142 * language.h (language_data): Remove
4143 la_store_sym_names_in_linkage_form_p member variable.
4144 (language_defn::store_sym_names_in_linkage_form_p): New member
4145 function.
4146 * m2-lang.c (m2_language_data): Remove
4147 la_store_sym_names_in_linkage_form_p initializer.
4148 * objc-lang.c (objc_language_data): Likewise.
4149 * opencl-lang.c (opencl_language_data): Likewise.
4150 * p-lang.c (pascal_language_data): Likewise.
4151 * rust-lang.c (rust_language_data): Likewise.
4152
22c12a6c
AB
41532020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4154
4155 * ada-lang.c (ada_language_data): Remove string_lower_bound
4156 initializer.
4157 * c-lang.c (c_language_data): Likewise.
4158 (cplus_language_data): Likewise.
4159 (asm_language_data): Likewise.
4160 (minimal_language_data): Likewise.
4161 * d-lang.c (d_language_data): Likewise.
4162 * f-lang.c (f_language_data): Likewise.
4163 * go-lang.c (go_language_data): Likewise.
4164 * language.c (unknown_language_data): Likewise.
4165 (auto_language_data): Likewise.
4166 * language.h (language_data): Remove string_lower_bound field.
4167 (language_defn::string_lower_bound): New member function.
4168 * m2-lang.c (m2_language_data): Remove string_lower_bound
4169 initializer.
4170 (m2_language::string_lower_bound): New member function.
4171 * objc-lang.c (objc_language_data): Remove string_lower_bound
4172 initializer.
4173 * opencl-lang.c (opencl_language_data): Likewise.
4174 * p-lang.c (pascal_language_data): Likewise.
4175 * rust-lang.c (rust_language_data): Likewise.
4176 * valops.c (value_cstring): Update call to string_lower_bound.
4177 (value_string): Likewise.
4178 * value.c (allocate_repeated_value): Likewise.
4179
1c236ddd
AB
41802020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4181
4182 * valops.c (value_repeat): Fix incorrect argument name in comment.
4183
67bd3fd5
AB
41842020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4185
4186 * ada-lang.c (ada_language_data): Remove c_style_arrays
4187 initializer.
4188 (ada_language::c_style_arrays_p): New member fuction.
4189 * c-lang.c (c_language_data): Remove c_style_arrays
4190 initializer.
4191 (cplus_language_data): Likewise.
4192 (asm_language_data): Likewise.
4193 (minimal_language_data): Likewise.
4194 * d-lang.c (d_language_data): Likewise.
4195 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
4196 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
4197 (f_language::c_style_arrays_p): New member function.
4198 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
4199 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
4200 * language.c (unknown_language_data): Remove c_style_arrays
4201 initializer.
4202 (auto_language_data): Likewise.
4203 * language.h (language_data): Remove c_style_arrays field.
4204 (language_defn::c_style_arrays_p): New member function.
4205 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
4206 (m2_language::c_style_arrays_p): New member function.
4207 * objc-lang.c (objc_language_data): Remove c_style_arrays
4208 initializer.
4209 * opencl-lang.c (opencl_language_data): Likewise.
4210 * p-lang.c (pascal_language_data): Likewise.
4211 * rust-lang.c (rust_language_data): Likewise.
4212 * valarith.c (value_subscript): Update call to c_style_arrays_p,
4213 and update local variable to a bool.
4214 * valops.c (value_cast): Update call to c_style_arrays_p.
4215 (value_array): Likewise.
4216 * value.c (coerce_array): Likewise.
4217
85967615
AB
42182020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4219
4220 * ada-lang.c (ada_language_data): Remove la_language initializer.
4221 * c-lang.c (c_language_data): Likewise.
4222 (cplus_language_data): Likewise.
4223 (asm_language_data): Likewise.
4224 (minimal_language_data): Likewise.
4225 * d-lang.c (d_language_data): Likewise.
4226 * f-lang.c (f_language_data): Likewise.
4227 * go-lang.c (go_language_data): Likewise.
4228 * language.c (unknown_language_data): Likewise.
4229 (auto_language_data): Likewise.
4230 * language.h (language_data): Remove la_language field.
4231 (language_defn::language_defn): Initialise la_language field.
4232 (language_defn::la_language): New member variable.
4233 * m2-lang.c (m2_language_data): Remove la_language field.
4234 * objc-lang.c (objc_language_data): Likewise.
4235 * opencl-lang.c (opencl_language_data): Likewise.
4236 * p-lang.c (pascal_language_data): Likewise.
4237 * rust-lang.c (rust_language_data): Likewise.
4238
e171d6f1
AB
42392020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4240
4241 * ada-lang.c (ada_extensions): Delete, moved into
4242 ada_language::filename_extensions.
4243 (ada_language_data): Remove la_filename_extensions initializer.
4244 (ada_language::filename_extensions): New member function.
4245 * c-lang.c (c_extensions): Delete, moved into
4246 c_language::filename_extensions.
4247 (c_language_data): Remove la_filename_extensions initializer.
4248 (c_language::filename_extensions): New member function.
4249 (cplus_extensions): Delete, moved into
4250 cplus_language::filename_extensions.
4251 (cplus_language_data): Remove la_filename_extensions initializer.
4252 (cplus_language::filename_extensions): New member function.
4253 (asm_extensions): Delete, moved into
4254 asm_language::filename_extensions.
4255 (asm_language_data): Remove la_filename_extensions initializer.
4256 (asm_language::filename_extensions): New member function.
4257 (minimal_language_data): Remove la_filename_extensions
4258 initializer.
4259 * d-lang.c (d_extensions): Delete, moved into
4260 d_language::filename_extensions.
4261 (d_language_data): Remove la_filename_extensions initializer.
4262 (d_language::filename_extensions): New member function.
4263 * f-lang.c (f_extensions): Delete, moved into
4264 f_language::filename_extensions.
4265 (f_language_data): Remove la_filename_extensions initializer.
4266 (f_language::filename_extensions): New member function.
4267 * go-lang.c (go_language_data): Remove la_filename_extensions
4268 initializer.
4269 * language.c (add_set_language_command): Update now that
4270 filename_extensions returns a vector.
4271 (unknown_language_data): Remove la_filename_extensions
4272 initializer.
4273 (auto_language_data): Likewise.
4274 * language.h (language_data): Remove la_filename_extensions field.
4275 (language_defn::filename_extensions): New member function.
4276 * m2-lang.c (m2_language_data): Remove la_filename_extensions
4277 initializer.
4278 * objc-lang.c (objc_extensions): Delete, moved into
4279 objc_language::filename_extensions.
4280 (objc_language_data): Remove la_filename_extensions initializer.
4281 (objc_language::filename_extensions): New member function.
4282 * opencl-lang.c (opencl_language_data): Remove
4283 la_filename_extensions initializer.
4284 * p-lang.c (pascal_extensions): Delete, moved into
4285 pascal_language::filename_extensions.
4286 (pascal_language_data): Remove la_filename_extensions initializer.
4287 (pascal_language::filename_extensions): New member function.
4288 * rust-lang.c (rust_extensions): Delete, moved into
4289 rust_language::filename_extensions.
4290 (rust_language_data): Remove la_filename_extensions initializer.
4291 (rust_language::filename_extensions): New member function.
4292 * symfile.c (add_filename_language): Add new assert.
4293
6f7664a9
AB
42942020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4295
4296 * ada-lang.c (ada_language_data): Remove la_name and
4297 la_natural_name initializers.
4298 (ada_language::name): New member function.
4299 (ada_language::natural_name): New member function.
4300 * c-lang.c (c_language_data): Remove la_name and
4301 la_natural_name initializers.
4302 (c_language::name): New member function.
4303 (c_language::natural_name): New member function.
4304 (cplus_language_data): Remove la_name and
4305 la_natural_name initializers.
4306 (cplus_language::name): New member function.
4307 (cplus_language::natural_name): New member function.
4308 (asm_language_data): Remove la_name and
4309 la_natural_name initializers.
4310 (asm_language::name): New member function.
4311 (asm_language::natural_name): New member function.
4312 (minimal_language_data): Remove la_name and
4313 la_natural_name initializers.
4314 (minimal_language::name): New member function.
4315 (minimal_language::natural_name): New member function.
4316 * compile/compile.c (compile_to_object): Update call to
4317 lanugage_defn::name.
4318 * d-lang.c (d_language_data): Remove la_name and
4319 la_natural_name initializers.
4320 (d_language::name): New member function.
4321 (d_language::natural_name): New member function.
4322 * expprint.c (print_subexp_standard): Update call to
4323 language_defn::name.
4324 (dump_raw_expression): Likewise
4325 (dump_prefix_expression): Likewise.
4326 * f-lang.c (f_language_data): Remove la_name and
4327 la_natural_name initializers.
4328 (f_language::name): New member function.
4329 (f_language::natural_name): New member function.
4330 * go-lang.c (go_language_data): Remove la_name and
4331 la_natural_name initializers.
4332 (go_language::name): New member function.
4333 (go_language::natural_name): New member function.
4334 * language.c (show_language_command): Update call to
4335 language_defn::name.
4336 (set_language_command): Likewise.
4337 (language_enum): Likewise.
4338 (language_str): Likewise.
4339 (add_set_language_command): Likewise, use
4340 language_defn::natural_name in the doc string.
4341 (unknown_language_data): Remove la_name and
4342 la_natural_name initializers.
4343 (unknown_language::name): New member function.
4344 (unknown_language::natural_name): New member function.
4345 (auto_language_data): Remove la_name and
4346 la_natural_name initializers.
4347 (auto_language::name): New member function.
4348 (auto_language::natural_name): New member function.
4349 (language_lookup_primitive_type_as_symbol): Update call to
4350 language_defn::name.
4351 * language.h (language_data): Remove la_name and la_natural_name
4352 member variables.
4353 (language_defn::name): New member function.
4354 (language_defn::natural_name): New member function.
4355 * m2-lang.c (m2_language_data): Remove la_name and
4356 la_natural_name initializers.
4357 (m2_language::name): New member function.
4358 (m2_language::natural_name): New member function.
4359 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
4360 language_defn::natural_name.
4361 * objc-lang.c (objc_language_data): Remove la_name and
4362 la_natural_name initializers.
4363 (objc_language::name): New member function.
4364 (objc_language::natural_name): New member function.
4365 * opencl-lang.c (opencl_language_data): Remove la_name and
4366 la_natural_name initializers.
4367 (opencl_language::name): New member function.
4368 (opencl_language::natural_name): New member function.
4369 * p-lang.c (pascal_language_data): Remove la_name and
4370 la_natural_name initializers.
4371 (pascal_language::name): New member function.
4372 (pascal_language::natural_name): New member function.
4373 * rust-lang.c (rust_language_data): Remove la_name and
4374 la_natural_name initializers.
4375 (rust_language::name): New member function.
4376 (rust_language::natural_name): New member function.
4377 * symtab.c (lookup_language_this): Update call to
4378 language_defn::name.
4379
5bae7c4e
AB
43802020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4381
4382 * ada-lang.c (ada_language_data): Remove la_name_of_this
4383 initializer.
4384 * ax-gdb.c (gen_expr): Update call to name_of_this.
4385 * c-exp.y (classify_name): Likewise.
4386 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
4387 (cplus_language_data): Likewise.
4388 (cplus_language::name_of_this): New member function.
4389 (asm_language_data): Remove la_name_of_this initializer.
4390 (minimal_language_data): Likewise.
4391 * d-lang.c (d_language_data): Likewise.
4392 (d_language::name_of_this): New member function.
4393 * expprint.c (print_subexp_standard): Update call to name_of_this.
4394 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
4395 * go-lang.c (go_language_data): Likewise.
4396 * language.c (unknown_language_data): Likewise.
4397 (unknown_language::name_of_this): New member function.
4398 (auto_language_data): Remove la_name_of_this initializer.
4399 (auto_language::name_of_this): New member function.
4400 * language.h (language_data): Delete la_name_of_this member
4401 variable.
4402 (language_defn::name_of_this): New member function.
4403 * m2-lang.c (m2_language_data): Remove la_name_of_this
4404 initializer.
4405 * objc-lang.c (objc_language_data): Likewise.
4406 (objc_language::name_of_this): New member function.
4407 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
4408 initializer.
4409 * p-lang.c (pascal_language_data): Likewise.
4410 (pascal_language::name_of_this): New member function.
4411 * rust-lang.c (rust_language_data): Remove la_name_of_this
4412 initializer.
4413 * symtab.c (lookup_language_this): Update call to name_of_this.
4414 (lookup_symbol_aux): Likewise.
4415 * valops.c (value_of_this): Likewise.
4416
22e3f3ed
AB
44172020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4418
4419 * ada-lang.c (ada_language_data): Remove
4420 la_struct_too_deep_ellipsis initializer.
4421 (ada_language::struct_too_deep_ellipsis): New member function.
4422 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
4423 initializer.
4424 (cplus_language_data): Likewise.
4425 (asm_language_data): Likewise.
4426 (minimal_language_data): Likewise.
4427 * cp-valprint.c (cp_print_value): Update call to
4428 struct_too_deep_ellipsis.
4429 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
4430 initializer.
4431 * f-lang.c (f_language_data): Likewise.
4432 (f_language::struct_too_deep_ellipsis): New member function.
4433 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
4434 initializer.
4435 * language.c (unknown_language_data): Likewise.
4436 (auto_language_data): Likewise.
4437 * language.h (language_data): Delete la_struct_too_deep_ellipsis
4438 member variable.
4439 (language_defn::struct_too_deep_ellipsis): New member function.
4440 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
4441 initializer.Q
4442 * objc-lang.c (objc_language_data): Likewise.
4443 * opencl-lang.c (opencl_language_data): Likewise.
4444 * p-lang.c (pascal_language_data): Likewise.
4445 * rust-lang.c (rust_language_data): Likewise.
4446 * valprint.c (val_print_check_max_depth): Update call to
4447 struct_too_deep_ellipsis.
4448
ed29e1c7
FW
44492020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
4450
4451 * MAINTAINERS (Write After Approval): Add myself.
4452
12d8f940
TT
44532020-09-15 Tom Tromey <tom@tromey.com>
4454
4455 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
4456 Remove.
4457
6b5a7bc7
TT
44582020-09-15 Tom Tromey <tom@tromey.com>
4459
4460 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
4461 and TYPE_CODE_METHODPTR cases.
4462 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
4463 (c_value_print_inner): Update.
4464 * valprint.c (generic_value_print_memberptr): New function, from
4465 c_value_print_memberptr.
4466 (generic_value_print): Use it. Call cplus_print_method_ptr.
4467
47f0e2ff
TT
44682020-09-15 Tom Tromey <tromey@adacore.com>
4469
4470 * python/python-internal.h (PyInt_FromLong): Remove define.
4471 * python/py-value.c (convert_value_from_python): Use
4472 gdb_py_object_from_longest.
4473 * python/py-type.c (typy_get_code): Use
4474 gdb_py_object_from_longest.
4475 * python/py-symtab.c (salpy_get_line): Use
4476 gdb_py_object_from_longest.
4477 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
4478 gdb_py_object_from_longest.
4479 * python/py-record.c (recpy_gap_reason_code): Use
4480 gdb_py_object_from_longest.
4481 * python/py-record-btrace.c (recpy_bt_insn_size)
4482 (recpy_bt_func_level, btpy_list_count): Use
4483 gdb_py_object_from_longest.
4484 * python/py-infthread.c (gdbpy_create_ptid_object): Use
4485 gdb_py_object_from_longest. Fix error handling.
4486 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
4487 gdb_py_object_from_longest.
4488 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
4489 gdb_py_object_from_longest.
4490 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
4491 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
4492 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
4493
512116ce
TT
44942020-09-15 Tom Tromey <tromey@adacore.com>
4495
4496 * python/python.c (gdbpy_parameter_value): Use
4497 gdb_py_object_from_ulongest.
4498
4ab1029c
TT
44992020-09-15 Tom Tromey <tromey@adacore.com>
4500
4501 * python/py-infevents.c (create_register_changed_event_object):
4502 Use gdb_py_object_from_longest.
4503 * python/py-exitedevent.c (create_exited_event_object): Use
4504 gdb_py_object_from_longest.
4505
062534d4
TT
45062020-09-15 Tom Tromey <tromey@adacore.com>
4507
4508 * python/python.c (gdbpy_parameter_value): Use
4509 gdb_py_object_from_longest.
4510 * python/py-type.c (convert_field, typy_range): Use
4511 gdb_py_object_from_longest.
4512 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
4513 gdb_py_object_from_longest.
4514 * python/py-lazy-string.c (stpy_get_length): Use
4515 gdb_py_object_from_longest.
4516 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
4517 gdb_py_object_from_longest.
4518 * python/py-infevents.c (create_memory_changed_event_object): Use
4519 gdb_py_object_from_longest.
4520 * python/py-inferior.c (infpy_get_num): Use
4521 gdb_py_object_from_longest.
4522 (infpy_get_pid): Likewise.
4523
d1cab987
TT
45242020-09-15 Tom Tromey <tromey@adacore.com>
4525
4526 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
4527 defines.
4528 * python/py-value.c (valpy_long): Use
4529 gdb_py_object_from_ulongest.
4530 * python/py-symtab.c (salpy_get_pc): Use
4531 gdb_py_object_from_ulongest.
4532 (salpy_get_last): Likewise.
4533 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
4534 gdb_py_object_from_ulongest.
4535 * python/py-lazy-string.c (stpy_get_address): Use
4536 gdb_py_object_from_ulongest.
4537 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
4538 * python/py-arch.c (archpy_disassemble): Use
4539 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
4540 error handling.
4541
4bde49dc
TT
45422020-09-15 Tom Tromey <tromey@adacore.com>
4543
4544 * python/python-internal.h (gdb_py_long_from_longest): Remove
4545 defines.
4546 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
4547 * python/py-type.c (convert_field, typy_get_sizeof): Use
4548 gdb_py_object_from_longest.
4549 * python/py-record-btrace.c (btpy_list_index): Use
4550 gdb_py_object_from_longest.
4551
37431074
TT
45522020-09-15 Tom Tromey <tromey@adacore.com>
4553
4554 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
4555 * python/py-record.c (recpy_element_number): Use
4556 gdb_py_object_from_longest.
4557 (recpy_gap_number): Likewise.
4558
cbe25684
TT
45592020-09-15 Tom Tromey <tromey@adacore.com>
4560
4561 * top.c (ui::ui): Update.
4562 (highest_ui_num): Remove.
4563 * top.h (struct ui) <num>: Remove.
4564
db92ac45
TT
45652020-09-15 Tom Tromey <tromey@adacore.com>
4566
4567 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
4568 * ui-style.c (ansi_regex_text): Now array.
4569 * rust-exp.y (number_regex_text): Now array.
4570 * linespec.c (linespec_quote_characters): Now array.
4571 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
4572 Now arrays.
4573
d2b31b67
SM
45742020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4575
4576 * debuginfod-support.c (debuginfod_client_deleter): New.
4577 (debuginfod_client_up): New.
4578 (debuginfod_init): Return debuginfod_client_up.
4579 (debuginfod_source_query): Adjust.
4580 (debuginfod_debuginfo_query): Adjust.
4581
3246bd8e
SM
45822020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4583
4584 * debuginfod-support.c (debuginfod_source_query): Use
4585 make_unique_xstrdup.
4586
10242f36
SM
45872020-09-14 Simon Marchi <simon.marchi@efficios.com>
4588
4589 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
4590 with `type::instance_flags`.
4591
e1044e6a
MM
45922020-09-14 Michael Mullin <masmullin@gmail.com>
4593
4594 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
4595 Remove baton parameter.
4596
04902b09
PA
45972020-09-14 Pedro Alves <pedro@palves.net>
4598
4599 * Makefile.in (SELFTESTS_SRCS): Add
4600 unittests/enum-flags-selftests.c.
4601 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
4602 btrace_function_flags instead of enum btrace_function_flag.
4603 * compile/compile-c-types.c (convert_qualified): Use
4604 enum_flags::raw.
4605 * compile/compile-cplus-symbols.c (convert_one_symbol)
4606 (convert_symbol_bmsym):
4607 * compile/compile-cplus-types.c (compile_cplus_convert_method)
4608 (compile_cplus_convert_struct_or_union_methods)
4609 (compile_cplus_instance::convert_qualified_base):
4610 * go-exp.y (parse_string_or_char): Add cast to int.
4611 * unittests/enum-flags-selftests.c: New file.
4612 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
4613 type to btrace_thread_flags from btrace_thread_flag.
4614 (record_btrace_cancel_resume, record_btrace_step_thread): Change
4615 local's type to btrace_thread_flags from btrace_thread_flag. Add
4616 cast in DEBUG call.
4617
69896a2c
PA
46182020-09-14 Pedro Alves <pedro@palves.net>
4619
4620 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
4621 * gdbtypes.c (address_space_name_to_int): Rename to ...
4622 (address_space_name_to_type_instance_flags): ... this.
4623 (address_space_int_to_name): Rename to ...
4624 (address_space_type_instance_flags_to_name): ... this.
4625 * gdbtypes.h (address_space_name_to_int): Rename to ...
4626 (address_space_name_to_type_instance_flags): ... this.
4627 (address_space_int_to_name): Rename to ...
4628 (address_space_type_instance_flags_to_name): ... this.
4629 * type-stack.c (type_stack::insert): Adjust to rename.
4630 * type-stack.h (type_stack::insert): Likewise.
4631
314ad88d
PA
46322020-09-14 Pedro Alves <pedro@palves.net>
4633 Andrew Burgess <andrew.burgess@embecosm.com>
4634
4635 * avr-tdep.c (avr_address_class_type_flags): Return
4636 type_instance_flags.
4637 (avr_address_class_type_flags_to_name): Take a
4638 type_instance_flags.
4639 (avr_address_class_name_to_type_flags): Return bool and take a
4640 type_instance_flags.
4641 * d-lang.c (build_d_types): Use type::set_instance_flags.
4642 * ft32-tdep.c (ft32_address_class_type_flags): Return
4643 type_instance_flags.
4644 (ft32_address_class_type_flags_to_name): Take a
4645 type_instance_flags.
4646 (ft32_address_class_name_to_type_flags): Return bool and take a
4647 type_instance_flags.
4648 (ft32_gdbarch_init): Use type::set_instance_flags.
4649 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
4650 * gdbarch.h, gdbarch.c: Regenerate.
4651 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
4652 (address_class_name_to_type_flags): Use type_instance_flags and
4653 bool.
4654 * gdbtypes.c (address_space_name_to_int)
4655 (address_space_int_to_name, make_qualified_type): Use
4656 type_instance_flags.
4657 (make_qualified_type): Use type_instance_flags and
4658 type::set_instance_flags.
4659 (make_type_with_address_space, make_cv_type, make_vector_type)
4660 (check_typedef): Use type_instance_flags.
4661 (recursive_dump_type): Cast type_instance_flags to unsigned for
4662 printing.
4663 (copy_type_recursive): Use type::set_instance_flags.
4664 (gdbtypes_post_init): Use type::set_instance_flags.
4665 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
4666 <m_instance_flags>: ... this.
4667 <instance_flags, set_instance_flags>: New methods.
4668 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
4669 (SET_TYPE_INSTANCE_FLAGS): New.
4670 (address_space_name_to_int, address_space_int_to_name)
4671 (make_type_with_address_space): Pass flags using
4672 type_instance_flags instead of int.
4673 * stabsread.c (cleanup_undefined_types_noname): Use
4674 type::set_instance_flags.
4675 * s390-tdep.c (s390_address_class_type_flags): Return
4676 type_instance_flags.
4677 (s390_address_class_type_flags_to_name): Take a
4678 type_instance_flags.
4679 (s390_address_class_name_to_type_flags): Return bool and take a
4680 type_instance_flags.
4681 * type-stack.c (type_stack::follow_types): Use
4682 type_instance_flags.
4683 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
4684
27087b7f
TT
46852020-09-14 Tom Tromey <tromey@adacore.com>
4686
4687 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
4688 * x86-tdep.c (x86_is_thunk_register_name)
4689 (x86_in_indirect_branch_thunk): Update.
4690 * sparc64-tdep.c (sparc64_fpu_register_names)
4691 (sparc64_cp0_register_names, sparc64_register_names)
4692 (sparc64_pseudo_register_names): Now const.
4693 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
4694 cp0_registers_num>: Now const.
4695 * sparc-tdep.c (sparc_core_register_names)
4696 (sparc32_fpu_register_names, sparc32_cp0_register_names)
4697 (sparc32_pseudo_register_names): Now const.
4698 (validate_tdesc_registers): Update.
4699 * rust-lang.c (rust_extensions): Now const.
4700 * p-lang.c (p_extensions): Now const.
4701 * objc-lang.c (objc_extensions): Now const.
4702 * nto-tdep.c (nto_thread_state_str): Now const.
4703 * moxie-tdep.c (moxie_register_names): Now const.
4704 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
4705 Now const.
4706 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
4707 (mips_linux_reg_names): Now const.
4708 (mips_gdbarch_init): Update.
4709 * microblaze-tdep.c (microblaze_register_names): Now const.
4710 * m68k-tdep.c (m68k_register_names): Now const.
4711 * m32r-tdep.c (m32r_register_names): Now const.
4712 * ia64-tdep.c (ia64_register_names): Now const.
4713 * i386-tdep.h (struct gdbarch_tdep) <register_names,
4714 ymmh_register_names, ymm16h_regnum, mpx_register_names,
4715 k_register_names, zmmh_register_names, xmm_avx512_register_names,
4716 ymm_avx512_register_names, pkeys_register_names>: Now const.
4717 * i386-tdep.c (i386_register_names, i386_zmm_names)
4718 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
4719 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
4720 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
4721 * f-lang.c (f_extensions): Now const.
4722 * d-lang.c (d_extensions): Now const.
4723 * csky-tdep.c (csky_register_names): Now const.
4724 * charset.c (default_charset_names, charset_enum): Now const.
4725 (_initialize_charset): Update.
4726 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
4727 const.
4728 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
4729 (bsd_uthread_solib_loaded): Update.
4730 (bsd_uthread_state): Now const.
4731 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
4732 (amd64_ymm_avx512_names, amd64_ymmh_names)
4733 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
4734 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
4735 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
4736 (amd64_dword_names): Now const.
4737 * agent.c (can_use_agent_enum): Now const.
4738 * ada-tasks.c (task_states, long_task_states): Now const.
4739 * ada-lang.c (known_runtime_file_name_patterns)
4740 (known_auxiliary_function_name_patterns, attribute_names)
4741 (standard_exc, ada_extensions): Now const.
4742
89806626
SM
47432020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4744
4745 * bcache.h (struct bcache) <bcache>: Remove constructor.
4746 <m_hash_function, m_compare_function>: Remove.
4747 <~bcache>: Make virtual.
4748 <compare>: Remove static method, introduce virtual method.
4749 <default_hash>: Remove.
4750 <hash>: New virtual method.
4751 * bcache.c (bcache::expand_hash_table): Update.
4752 (bcache::insert): Update.
4753 (bcache::hash): New.
4754 (bcache::compare): Update comment and parameter names.
4755 * gdbtypes.c (types_deeply_equal): Update.
4756 * psymtab.h (struct psymbol_bcache): New struct.
4757 (class psymtab_storage) <psymtab_storage>: Make default.
4758 <psymbol_cache>: Change type to psymbol_bcache.
4759 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
4760 (psymbol_hash): Change to...
4761 (psymbol_bcache::hash): ... this.
4762 (psymbol_compare): Change to...
4763 (psymbol_bcache::compare): ... this.
4764
677c92fe
SM
47652020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4766
4767 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
4768 checking for initial lwp.
4769
3eba3a01
TT
47702020-09-14 Tom Tromey <tromey@adacore.com>
4771
4772 * m68k-tdep.c (m68k_extract_return_value): Use
4773 pointer_result_regnum.
4774 (m68k_store_return_value): Likewise.
4775 (m68k_reg_struct_return_p): Handle vectors and arrays.
4776 (m68k_return_value): Handle arrays.
4777 (m68k_svr4_return_value): Fix single-element aggregate handling.
4778 Handle long double. Adjust for embedded ABI.
4779 (m68k_svr4_init_abi): Set pointer_result_regnum.
4780 (m68k_embedded_init_abi): New function.
4781 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
4782 (m68k_osabi_sniffer): New function.
4783 (_initialize_m68k_tdep): Register osabi sniffer.
4784 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
4785 member.
4786
33f4dd48
SM
47872020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4788
4789 * xml-support.c (xml_fetch_content_from_file): Replace xfree
4790 with gdb::unique_xmalloc_ptr<char>.
4791
8400a90d
SM
47922020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4793
4794 * xml-support.h (xml_fetch_another): Change type to be a
4795 function_view.
4796 (xml_process_xincludes): Remove baton parameter.
4797 (xml_fetch_content_from_file): Change baton parameter to
4798 dirname.
4799 * xml-support.c (struct xinclude_parsing_data)
4800 <xinclude_parsing_data>: Remove baton parameter.
4801 <fetcher_baton>: Remove.
4802 (xinclude_start_include): Adjust.
4803 (xml_process_xincludes): Adjust.
4804 (xml_fetch_content_from_file): Replace baton parameter with
4805 dirname.
4806 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
4807 (xml_init_syscalls_info): Use a lambda.
4808 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
4809 (file_read_description_xml): Use a lambda.
4810 (fetch_available_features_from_target): Change baton parameter
4811 to target_ops.
4812 (target_read_description_xml): Use a lambda.
4813 (target_fetch_description_xml): Use a lambda.
4814 (string_read_description_xml): Update.
4815
04f5bab2
SM
48162020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4817
4818 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
4819 uses with type::endianity_is_not_default.
4820
db558e34
SM
48212020-09-14 Simon Marchi <simon.marchi@efficios.com>
4822
4823 * gdbtypes.h (struct type) <endianity_is_not_default,
4824 set_endianity_is_not_default>: New methods.
4825 (TYPE_ENDIANITY_NOT_DEFAULT): Use
4826 type::endianity_is_not_default, change all write call sites to
4827 use type::set_endianity_is_not_default.
4828
22c4c60c
SM
48292020-09-14 Simon Marchi <simon.marchi@efficios.com>
4830
4831 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
4832 uses with type::is_fixed_instance.
4833
9cdd0d12
SM
48342020-09-14 Simon Marchi <simon.marchi@efficios.com>
4835
4836 * gdbtypes.h (struct type) <is_fixed_instance,
4837 set_is_fixed_instance>: New methods.
4838 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
4839 write call sites to use type::set_is_fixed_instance.
4840
0becda7a
SM
48412020-09-14 Simon Marchi <simon.marchi@efficios.com>
4842
4843 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
4844 uses with type::is_gnu_ifunc.
4845
03cc7249
SM
48462020-09-14 Simon Marchi <simon.marchi@efficios.com>
4847
4848 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
4849 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
4850 use type::set_is_gnu_ifunc.
4851
3f46044c
SM
48522020-09-14 Simon Marchi <simon.marchi@efficios.com>
4853
4854 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
4855 uses with type::stub_is_supported.
4856
9baccff6
SM
48572020-09-14 Simon Marchi <simon.marchi@efficios.com>
4858
4859 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
4860 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
4861 use type::set_stub_is_supported.
4862
bd63c870
SM
48632020-09-14 Simon Marchi <simon.marchi@efficios.com>
4864
4865 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
4866 uses with type::is_vector.
4867
2062087b
SM
48682020-09-14 Simon Marchi <simon.marchi@efficios.com>
4869
4870 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
4871 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
4872 use type::set_is_vector.
4873
a409645d
SM
48742020-09-14 Simon Marchi <simon.marchi@efficios.com>
4875
4876 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
4877 uses with type::has_varargs.
4878
1d6286ed
SM
48792020-09-14 Simon Marchi <simon.marchi@efficios.com>
4880
4881 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
4882 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
4883 use type::set_has_varargs.
4884
7f9f399b
SM
48852020-09-14 Simon Marchi <simon.marchi@efficios.com>
4886
4887 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
4888 uses with type::is_prototyped.
4889
27e69b7a
SM
48902020-09-14 Simon Marchi <simon.marchi@efficios.com>
4891
4892 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
4893 New methods.
4894 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
4895 call sites to use type::set_is_prototyped.
4896
d2183968
SM
48972020-09-14 Simon Marchi <simon.marchi@efficios.com>
4898
4899 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
4900 uses with type::target_is_stub.
4901
8f53807e
SM
49022020-09-14 Simon Marchi <simon.marchi@efficios.com>
4903
4904 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
4905 New methods.
4906 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
4907 sites to use type::set_target_is_stub.
4908
e46d3488
SM
49092020-09-14 Simon Marchi <simon.marchi@efficios.com>
4910
4911 * gdbtypes.h (TYPE_STUB): Remove, replace all
4912 uses with type::is_stub.
4913
b4b73759
SM
49142020-09-14 Simon Marchi <simon.marchi@efficios.com>
4915
4916 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
4917 (TYPE_STUB): Use type::is_stub, change all write call sites to
4918 use type::set_is_stub.
4919
20ce4123
SM
49202020-09-14 Simon Marchi <simon.marchi@efficios.com>
4921
4922 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
4923 type::has_no_signedness.
4924
15152a54
SM
49252020-09-14 Simon Marchi <simon.marchi@efficios.com>
4926
4927 * gdbtypes.h (struct type) <has_no_signedness,
4928 set_has_no_signedness>: New methods.
4929 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
4930 call sites to use type::set_has_no_signedness.
4931
c6d940a9
SM
49322020-09-14 Simon Marchi <simon.marchi@efficios.com>
4933
4934 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
4935 type::is_unsigned.
4936
653223d3
SM
49372020-09-14 Simon Marchi <simon.marchi@efficios.com>
4938
4939 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
4940 methods.
4941 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
4942 sites to use type::set_is_unsigned.
4943
55ea94da 49442020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 4945 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 4946
e851246a
SM
4947 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
4948 pointer and stack frame offset when unwinding.
55ea94da 4949
6791b117
PA
49502020-09-13 Pedro Alves <pedro@palves.net>
4951
4952 * NEWS: Document "-break-insert --qualified".
4953 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
4954
77f2120b
PA
49552020-09-13 Pedro Alves <pedro@palves.net>
4956
4957 * linespec.c (classify_mtype, compare_msyms): Delete.
4958 (search_minsyms_for_name): Remove classification logic. Instead
4959 filter out trampoline symbols if we also found an external
4960 function of the same name.
4961
ed6a896c
JB
49622020-09-13 Joel Brobecker <brobecker@adacore.com>
4963
4964 * NEWS: Create a new section for the next release branch.
4965 Rename the section of the current branch, now that it has
4966 been cut.
4967
32aea73e
JB
49682020-09-13 Joel Brobecker <brobecker@adacore.com>
4969
4970 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
4971 * version.in: Bump version to 11.0.50.DATE-git.
4972
8087c3fa
JB
49732020-09-12 Joel Brobecker <brobecker@adacore.com>
4974
4975 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
4976
2a67f09d
FW
49772020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
4978 Felix Willgerodt <Felix.Willgerodt@intel.com>
4979
4980 * gdbarch.sh: Added bfloat16 type.
4981 * gdbarch.c: Regenerated.
4982 * gdbarch.h: Regenerated.
4983 * gdbtypes.c (floatformats_bfloat16): New struct.
4984 (gdbtypes_post_init): Add builtin_bfloat16.
4985 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
4986 (floatformats_bfloat16): New struct.
4987 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
4988 (i386_ymm_type): Add field "v16_bfloat16"
4989 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
4990 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
4991 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
4992 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
4993 * features/i386/64bit-avx512.xml: Add bfloat16 type.
4994 * features/i386/64bit-avx512.c: Regenerated.
4995 * features/i386/64bit-sse.xml: Add bfloat16 type.
4996 * features/i386/64bit-sse.c: Regenerated.
4997
1347d111
FW
49982020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
4999
5000 * i386-tdep.c (i386_zmm_type): Fix field names.
5001 (i386_ymm_type): Fix field names.
5002
7a4e8e7d
TBA
50032020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5004
5005 * breakpoint.c: Fix typo in the help message of the
5006 "set breakpoint condition-evaluation" command.
5007
cf4ac4be
KR
50082020-09-10 Kamil Rytarowski <n54@gmx.com>
5009
5010 * nbsd-nat.c: Include "nat/netbsd-nat.h".
5011 * (nbsd_nat_target::pid_to_exec_file)
5012 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
5013 (nbsd_nat_target::post_startup_inferior)
5014 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
5015 (nbsd_add_threads): Switch local code to common gdb/nat functions.
5016 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
5017 * (nbsd_thread_lister): Remove.
5018
f404573e
KR
50192020-09-10 Kamil Rytarowski <n54@gmx.com>
5020
5021 * fork-inferior.c (startup_inferior): Avoid double free.
5022
1ccb2c17
KR
50232020-09-10 Kamil Rytarowski <n54@gmx.com>
5024
5025 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
5026 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
5027
feedfcc7
KR
50282020-09-10 Kamil Rytarowski <n54@gmx.com>
5029
5030 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
5031 * netbsd-nat.c: Include <sys/ptrace.h>.
5032 * (netbsd_nat::enable_proc_events): Add.
5033
c489f8c6
KR
50342020-09-10 Kamil Rytarowski <n54@gmx.com>
5035
5036 * netbsd-nat.h: Include "gdbsupport/function-view.h".
5037 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5038 (netbsd_nat::for_each_thread): Add.
5039 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
5040 "gdbsupport/common-debug.h".
5041 * (netbsd_nat::netbsd_thread_lister)
5042 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5043 (netbsd_nat::for_each_thread): Add.
5044
330662f6
KR
50452020-09-10 Kamil Rytarowski <n54@gmx.com>
5046
5047 * netbsd-nat.h: Include <unistd.h>.
5048 * (netbsd_nat::pid_to_exec_file): Add.
5049 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
5050 * (netbsd_nat::pid_to_exec_file) Add.
5051
70b67307
KR
50522020-09-10 Kamil Rytarowski <n54@gmx.com>
5053
5054 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
5055
99cf6da6
KR
50562020-09-10 Kamil Rytarowski <n54@gmx.com>
5057
5058 * netbsd-nat.h: New file.
5059 * netbsd-nat.c: Likewise.
5060
1b788fb6
TT
50612020-09-09 Tom Tromey <tromey@adacore.com>
5062
5063 * ada-lang.c (remove_extra_symbols): Do not increment when
5064 removing an element
5065
03b0a45f
TT
50662020-09-08 Tom Tromey <tromey@adacore.com>
5067
5068 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
5069
3cae4447
TT
50702020-09-08 Tom Tromey <tromey@adacore.com>
5071
5072 PR win32/25302:
5073 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
5074 (gdb_bfd_init_data): New function.
5075 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
5076
7f08fd51
TBA
50772020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5078
5079 * infrun.c (fetch_inferior_event): Use
5080 `switch_to_target_no_thread` to switch the target.
5081
3e6ff933
TT
50822020-09-06 Tom Tromey <tom@tromey.com>
5083
5084 * symfile.h (dwarf2_free_objfile): Don't declare.
5085
e56798df
AKS
50862020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5087
5088 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
5089 to match 16 byte real/complex type generated by Flang compiler.
5090
8f5c6526
TV
50912020-09-03 Tom de Vries <tdevries@suse.de>
5092
5093 PR breakpoint/26546
5094 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
5095 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
5096
c5065df0
SM
50972020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
5098
5099 * maint.c (index_digits): New function.
5100 (struct maint_print_section_data): Remove.
5101 (print_bfd_section_info): Remove print_data parameter, add arg
5102 and index_digits.
5103 (print_objfile_section_info): Likewise.
5104 (print_bfd_section_info_maybe_relocated): Likewise (plus
5105 objfile).
5106 (maintenance_info_sections): Adjust calls.
5107
02c6f3f1
TT
51082020-09-02 Tom Tromey <tromey@adacore.com>
5109
5110 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
5111 for null pointers.
5112 (ada_varobj_adjust_for_child_access): Special-case null pointers.
5113
ef5e5b0b
SM
51142020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
5115
5116 * bcache.h (struct bcache) <insert>: Change type of `added` to
5117 pointer to bool.
5118 * bcache.c (bcache::insert): Likewise.
5119 * gdbtypes.c (check_types_worklist): Adjust.
5120 * psymtab.c (add_psymbol_to_bcache): Adjust.
5121
973695d6
KB
51222020-08-31 Kevin Buettner <kevinb@redhat.com>
5123
5124 * corelow.c (unordered_set): Include.
5125 (class core_target): Add field 'm_core_unavailable_mappings'.
5126 (core_target::build_file_mappings): Print only one warning
5127 per inaccessible file. Add unavailable/broken mappings
5128 to m_core_unavailable_mappings.
5129 (core_target::xfer_partial): Call...
5130 (core_target::xfer_memory_via_mappings): New method.
5131
264fc0e2
SM
51322020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5133
5134 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
5135 type to bool.
5136
2de01bdb
SM
51372020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5138
5139 * dwarf2/read.c (struct field_info): Fix indentation.
5140
f3bd50f1
SM
51412020-08-31 Simon Marchi <simon.marchi@efficios.com>
5142
5143 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
5144 ordering in comment.
5145 * frame.c (frame_id_eq): Fix indentation.
5146
22b9b4b0
SL
51472020-08-31 Scott Linder <scott@scottlinder.com>
5148 Simon Marchi <simon.marchi@efficios.com>
5149
5150 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
5151 inline frame ids in outer frame.
5152
84154d16
SM
51532020-08-31 Simon Marchi <simon.marchi@efficios.com>
5154
5155 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
5156 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
5157 (outer_frame_id): Use FID_STACK_OUTER instead of
5158 FID_STACK_INVALID.
5159 (frame_id_p): Don't check for outer_frame_id.
5160
8efaf6b3
SM
51612020-08-31 Simon Marchi <simon.marchi@efficios.com>
5162
5163 * frame-unwind.c (frame_unwind_got_optimized): Don't set
5164 regnum/frame in value. Call allocate_value_lazy.
5165 * frame.c (frame_unwind_register_value): Use
5166 val_print_not_saved.
5167
fe1fe7ea
SM
51682020-08-31 Simon Marchi <simon.marchi@efficios.com>
5169
5170 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
5171
f7c7700d
PA
51722020-08-29 Pedro Alves <pedro@palves.net>
5173
5174 * progspace.c (print_program_space): Use all_inferiors. Switch to
5175 the inferior before calling target_pid_to_str.
5176
e0814aae
TT
51772020-08-28 Tom Tromey <tom@tromey.com>
5178
5179 * xcoffread.c (xcoff_end_psymtab): Update comment.
5180 * dbxread.c (dbx_end_psymtab): Update comment.
5181
626d2320
TV
51822020-08-28 Tom de Vries <tdevries@suse.de>
5183
5184 PR breakpoint/26544
5185 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
5186 event_location.
5187 (create_breakpoint): Same.
5188 (base_breakpoint_decode_location): Same.
5189 (bkpt_create_sals_from_location): Same.
5190 (bkpt_decode_location): Same.
5191 (bkpt_probe_create_sals_from_location): Same.
5192 (bkpt_probe_decode_location): Same.
5193 (tracepoint_create_sals_from_location): Same.
5194 (tracepoint_decode_location): Same.
5195 (tracepoint_probe_decode_location): Same.
5196 (strace_marker_create_sals_from_location): Same.
5197 (strace_marker_decode_location): Same.
5198 (create_sals_from_location_default): Same.
5199 (decode_location_default): Same.
5200 * breakpoint.h (struct breakpoint_ops): Same.
5201 (create_breakpoint): Same.
5202 * linespec.h (decode_line_full): Same.
5203 * linespec.c (decode_line_full): Same. Throw error if
5204 result.size () == 0.
5205
df631783
PA
52062020-08-27 Pedro Alves <pedro@palves.net>
5207
5208 PR gdb/26524
5209 * breakpoint.c (until_break_fsm) <location_breakpoint,
5210 caller_breakpoint>: Delete fields.
5211 <breakpoints>: New field.
5212 <until_break_fsm>: Adjust to save a breakpoint vector instead of
5213 two individual breakpoints.
5214 (until_break_fsm::should_stop): Loop over breakpoints in the
5215 breakpoint vector.
5216 (until_break_fsm::clean_up): Adjust to clear the breakpoints
5217 vector.
5218 (until_break_command): Handle location expanding into multiple
5219 sals.
5220
b2b38aa4
PA
52212020-08-27 Pedro Alves <pedro@palves.net>
5222
5223 PR gdb/26523
5224 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
5225 bp_until breakpoints user-specified locations. Update intro
5226 comment.
5227
b886559f
SM
52282020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
5229
5230 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
5231 gdb_bfd_sections): New.
5232 * maint.c (print_bfd_section_info): Change param type to
5233 maint_print_section_data.
5234 (print_objfile_section_info): Likewise.
5235 (print_bfd_section_info_maybe_relocated): Likewise.
5236 (maintenance_info_sections): Use gdb_bfd_sections.
5237
4c6e63bf
SV
52382020-08-25 Shahab Vahedi <shahab@synopsys.com>
5239
5240 * MAINTAINERS: Add ARC target and maintainer.
5241
8d7f0635
AK
52422020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
5243
5244 * configure.tgt: ARC support for GNU/Linux.
5245 * Makefile.in (ALL_TARGET_OBJS): Likewise.
5246 * arc-linux-tdep.c: New file.
5247 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
5248 * arc-tdep.c (arc_write_pc): Use it.
5249
fdd8731b
SV
52502020-08-25 Shahab Vahedi <shahab@synopsys.com>
5251
5252 * arc-tdep.c (arc_check_for_hardware_loop): New.
5253 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
5254
22459524
SV
52552020-08-25 Shahab Vahedi <shahab@synopsys.com>
5256
5257 * arc-tdep.h: Include "gdbarch.h".
5258
995d3a19
SV
52592020-08-25 Shahab Vahedi <shahab@synopsys.com>
5260
5261 * arch/arc.h
5262 (arc_gdbarch_features): New class to stir the selection of target XML.
5263 (arc_create_target_description): Use FEATURES to choose XML target.
5264 (arc_lookup_target_description): Use arc_create_target_description
5265 to create _new_ target descriptions or return the already created
5266 ones if the FEATURES is the same.
5267 * arch/arc.c: Implementation of prototypes described above.
5268 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
5269 (arc_gdbarch_features_init): Initialize the FEATURES struct.
5270 * arc-tdep.c (*_feature_name): Make feature names consistent.
5271 (arc_register_feature): A new struct to hold information about
5272 registers of a particular target/feature.
5273 (arc_check_tdesc_feature): Check if XML provides registers in
5274 compliance with ARC_REGISTER_FEATURE structs.
5275 (arc_update_acc_reg_names): Add aliases for r58 and r59.
5276 (determine_*_reg_feature_set): Which feature name to look for.
5277 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
5278 (mach_type_to_arc_isa): Convert from a set of binutils machine types
5279 to expected ISA enums to be used in arc_gdbarch_features structs.
5280 * features/Makefile (FEATURE_XMLFILES): Add new files.
5281 * gdb/features/arc/v1-aux.c: New file.
5282 * gdb/features/arc/v1-aux.xml: Likewise.
5283 * gdb/features/arc/v1-core.c: Likewise.
5284 * gdb/features/arc/v1-core.xml: Likewise.
5285 * gdb/features/arc/v2-aux.c: Likewise.
5286 * gdb/features/arc/v2-aux.xml: Likewise.
5287 * gdb/features/arc/v2-core.c: Likewise.
5288 * gdb/features/arc/v2-core.xml: Likewise.
5289 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
5290
3945d2d7
GM
52912020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
5292 Andrew Burgess <andrew.burgess@embecosm.com>
5293
5294 PR m2/26372
fc5d6901 5295 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
5296 an assert. Remove single element array indexing pattern as the
5297 MULTI_SUBSCRIPT support will handle this case too.
5298
2677f2d3
SM
52992020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
5300
5301 * value.h (valprint_check_validity): Move declaration from
5302 here...
5303 * valprint.h (valprint_check_validity): ... to here.
5304
c426fddb
SM
53052020-08-24 Simon Marchi <simon.marchi@efficios.com>
5306
5307 * debug.h: New file.
5308 * debug.c (debug_prefixed_vprintf): New function.
5309 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
5310 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
5311
1eb8556f
SM
53122020-08-24 Simon Marchi <simon.marchi@efficios.com>
5313
5314 * infrun.h (infrun_debug_printf_1): New function declaration.
5315 (infrun_debug_printf): New macro.
5316 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
5317 throughout.
5318 (infrun_debug_printf): New function.
5319 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
5320 (handle_jit_event): Likewise.
5321
b8fff44e
MW
53222020-08-21 Mark Wielaard <mark@klomp.org>
5323
5324 * ada-lex.l: Extend register warnings diagnostics comment for g++.
5325
d19c3068
SM
53262020-08-22 Simon Marchi <simon.marchi@efficios.com>
5327
5328 * frame.c (enum class frame_id_status): New.
5329 (struct frame_info) <this_id::p>: Change type to frame_id_status.
5330 (fprintf_frame): Update.
5331 (compute_frame_id): Set frame id status to "computing" on entry.
5332 Set it back to "not_computed" on failure and to "computed" on
5333 success.
5334 (get_frame_id): Assert the frame id is not being computed.
5335 (create_sentinel_frame): Use frame_id_status::COMPUTED.
5336 (create_new_frame): Likewise.
5337 (frame_cleanup_after_sniffer): Update assert.
5338
b70e516e
SM
53392020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5340
5341 * regcache.c (pid_ptid_regcache_map): New type.
5342 (target_ptid_regcache_map): Remove.
5343 (target_pid_ptid_regcache_map): New type.
5344 (regcaches): Change type to target_pid_ptid_regcache_map.
5345 (get_thread_arch_aspace_regcache): Update.
5346 (regcache_thread_ptid_changed): Update, handle pid-like ptid
5347 case.
5348 (regcaches_size): Update.
5349 (regcache_count): Update.
5350 (registers_changed_ptid_target_pid_test): New.
5351 (_initialize_regcache): Register new test.
5352
cdd9148a
SM
53532020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5354
5355 * regcache.c (regcache_count): New.
5356 (struct regcache_test_data): New.
5357 (regcache_test_data_up): New.
5358 (populate_regcaches_for_test): New.
5359 (regcaches_test): Remove.
5360 (get_thread_arch_aspace_regcache_test): New.
5361 (registers_changed_ptid_all_test): New.
5362 (registers_changed_ptid_target_test): New.
5363 (registers_changed_ptid_target_ptid_test): New.
5364 (regcache_thread_ptid_changed): Remove regcache_count lambda.
5365 (_initialize_regcache): Register new tests.
5366
dd125343
SM
53672020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5368
5369 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
5370 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
5371 gdbarch and aspace parameter. Use current inferior's aspace.
5372 Validate regcache's arch value.
5373 (regcaches_test): Update.
5374
3ee93972
SM
53752020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5376
5377 * regcache.c (regcaches_test): Call registers_changed.
5378
33bf4c5c
TBA
53792020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5380
5381 * infrun.c (process_event_stop_test): Fix typo "breapoint".
5382
c2fd7fae
AKS
53832020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5384
5385 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
5386 to find the end of prologue for flang compiled binaries.
5387 * arm-tdep.c (arm_skip_prologue): Likewise.
5388 * i386-tdep.c (i386_skip_prologue): Likewise.
5389 * producer.c (producer_is_llvm): New function.
5390 (producer_parsing_tests): Added new tests for clang/flang.
5391 * producer.h (producer_is_llvm): New declaration.
5392
9327494e
SM
53932020-08-18 Simon Marchi <simon.marchi@efficios.com>
5394
5395 * linux-nat.c (linux_nat_debug_printf): New function.
5396 (linux_nat_debug_printf_1): New macro. Use throughout the file.
5397
d138725a
AM
53982020-08-18 Aaron Merey <amerey@redhat.com>
5399
5400 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
5401 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
5402 (CLIBS): Add DEBUGINFOD_LIBS.
5403
f9b11e6b
ST
54042020-08-17 Sergei Trofimovich <siarheit@google.com>
5405
5406 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
5407 'gdbarch_num_regs'.
5408
3ae7ab99
TT
54092020-08-17 Tom Tromey <tromey@adacore.com>
5410
5411 * ada-varobj.c (ada_varobj_decode_var): Handle case where
5412 ada_get_decoded_value returns NULL.
5413
b017825f
TT
54142020-08-17 Tom Tromey <tromey@adacore.com>
5415
5416 * python/py-inferior.c (infpy_search_memory): Use
5417 gdb_py_object_from_ulongest.
5418 * python/py-infevents.c (create_inferior_call_event_object)
5419 (create_memory_changed_event_object): Use
5420 gdb_py_object_from_ulongest.
5421 * python/py-linetable.c (ltpy_entry_get_pc): Use
5422 gdb_py_object_from_ulongest.
5423
7635cf79
SM
54242020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5425
5426 * loc.c (class symbol_needs_eval_context): Fix indentation.
5427
f54be24b
SM
54282020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5429
5430 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
5431 bool.
5432
53d5a2a5
TV
54332020-08-17 Tom de Vries <tdevries@suse.de>
5434
5435 PR gdb/26393
5436 * gdbtypes.c (dump_dynamic_prop): New function.
5437 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
5438
547ce8f0
TV
54392020-08-15 Tom de Vries <tdevries@suse.de>
5440
5441 PR backtrace/26390
5442 * stack.c (print_frame_args): Temporarily set the selected
5443 frame to FRAME while printing the frame's arguments.
5444
6ea815e7
PFC
54452020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5446
5447 PR breakpoints/26385
5448 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
5449 Always clear watchpoint with PTRACE_SET_DEBUGREG.
5450
6e562fa3
PFC
54512020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5452
5453 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
5454 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
5455 and >= to check return value instead of == -1 and != -1.
5456
d369b608
SM
54572020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
5458
5459 * utils.h (class gdb_argv) <as_array_view>: New method.
5460 * utils.c (gdb_argv_as_array_view_test): New.
5461 (_initialize_utils): Register selftest.
5462 * maint.c (maintenance_selftest): Use the new method.
5463
b31488a3
KR
54642020-08-13 Kamil Rytarowski <n54@gmx.com>
5465
5466 * target.h (supports_dumpcore, dumpcore): New
5467 function declarations.
5468 * target.c (supports_dumpcore, dumpcore): New
5469 functions.
5470 * target-delegates.c: Rebuild.
5471 * gcore.c (gcore_command): Use target_supports_dumpcore ()
5472 and target_dumpcore ().
5473
002a3166
AM
54742020-08-13 Aaron Merey <amerey@redhat.com>
5475
5476 * debuginfod-support.c: Replace global variables with user_data.
5477
ece5bc8a
SM
54782020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
5479
5480 * maint.c (maintenance_selftest): Split args and pass array_view
5481 to run_tests.
5482
6d8a0a5e
LM
54832020-08-12 Luis Machado <luis.machado@linaro.org>
5484
5485 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
5486 type's length.
5487 Use %s and pulongest to print the length.
5488
7cf663a9
PA
54892020-08-12 Pedro Alves <palves@redhat.com>
5490
5491 * NEWS: Move "Multi-target debugging support" item to the
5492 "Changes since GDB 9" section.
5493
27c7b875
PA
54942020-08-12 Pedro Alves <palves@redhat.com>
5495
5496 PR gdb/26336
5497 * progspace.c (program_space::remove_objfile): Invalidate the
5498 frame cache.
5499
1796a2a1
TV
55002020-08-11 Tom de Vries <tdevries@suse.de>
5501
5502 * MAINTAINERS: Mark ms1 as deleted.
5503
f8e3fe0d
LM
55042020-08-10 Luis Machado <luis.machado@linaro.org>
5505
5506 PR gdb/26310
5507
5508 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
5509 act accordingly.
5510 (aarch64_analyze_prologue_test): Add more unit tests to exercise
5511 movz/str/stur/stp skipping behavior.
5512
cc308722
LM
55132020-08-10 Luis Machado <luis.machado@linaro.org>
5514
5515 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
5516 struct user_sve_header instead of struct sve_context.
5517
041d9819
SM
55182020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
5519
5520 * read.h (dwarf2_fetch_die_loc_sect_off,
5521 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
5522 `void *` parameter with function_view.
5523 * read.c (dwarf2_fetch_die_loc_sect_off,
5524 dwarf2_fetch_die_loc_cu_off): Likewise.
5525 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
5526 (per_cu_dwarf_call): Adjust.
5527 (get_frame_address_in_block_wrapper): Remove.
5528 (indirect_synthetic_pointer): Adjust.
5529 (get_ax_pc): Remove.
5530 (dwarf2_compile_expr_to_ax): Adjust.
5531
38f8aa06
TV
55322020-08-08 Tom de Vries <tdevries@suse.de>
5533
5534 PR build/26344
5535 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
5536 constructor.
5537 * regcache.c (get_thread_arch_aspace_regcache): Same.
5538
a52b3ae2
TT
55392020-08-07 Tom Tromey <tromey@adacore.com>
5540
5541 * ravenscar-thread.c
5542 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
5543 New method.
5544 (ravenscar_thread_target::wait): Check
5545 runtime_initialized.
5546 (ravenscar_thread_target::prepare_to_store)
5547 (ravenscar_thread_target::stopped_by_sw_breakpoint)
5548 (ravenscar_thread_target::stopped_by_hw_breakpoint)
5549 (ravenscar_thread_target::stopped_by_watchpoint)
5550 (ravenscar_thread_target::stopped_data_address)
5551 (ravenscar_thread_target::core_of_thread): Use
5552 scoped_restore_current_thread and
5553 set_base_thread_from_ravenscar_task.
5554
0e29517d
TT
55552020-08-07 Tom Tromey <tromey@adacore.com>
5556
5557 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
5558
592f9bd7
TT
55592020-08-07 Tom Tromey <tromey@adacore.com>
5560
5561 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
5562 update_inferior_ptid before update_thread_list.
5563 (temporarily_change_regcache_ptid): New class.
5564 (ravenscar_thread_target::fetch_registers)
5565 (ravenscar_thread_target::store_registers)
5566 (ravenscar_thread_target::prepare_to_store): Use base thread when
5567 forwarding operation.
5568
39e2018a
TT
55692020-08-07 Tom Tromey <tromey@adacore.com>
5570
5571 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
5572 "is_pid" case.
5573
2080266b
TT
55742020-08-07 Tom Tromey <tromey@adacore.com>
5575
5576 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
5577 New methods.
5578 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
5579 first.
5580 (ravenscar_thread_target::add_thread): Rename from
5581 ravenscar_add_thread.
5582 (ravenscar_thread_target::update_thread_list): Use a lambda.
5583 (ravenscar_thread_target::xfer_partial): New method.
5584
78c02f21
TT
55852020-08-07 Tom Tromey <tromey@adacore.com>
5586
5587 * ada-lang.h (ada_task_list_iterator_ftype): Now a
5588 gdb::function_view.
5589 (iterate_over_live_ada_tasks): Change type of argument.
5590 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
5591 of argument.
5592
d5d833af
TT
55932020-08-07 Tom Tromey <tromey@adacore.com>
5594
5595 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
5596 Remove.
5597 (ravenscar_thread_target::extra_thread_info): Remove.
5598 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
5599 defer to target beneath for non-Ravenscar threads.
5600
a8ac85bb
TT
56012020-08-07 Tom Tromey <tromey@adacore.com>
5602
5603 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
5604 get_base_thread_from_ravenscar_task>: Now methods.
5605 <m_cpu_map>: New member.
5606 (ravenscar_thread_target::get_thread_base_cpu): Rename from
5607 ravenscar_get_thread_base_cpu. Check m_cpu_map.
5608 (ravenscar_thread_target::task_is_currently_active): Update.
5609 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
5610 Now a method.
5611 (ravenscar_thread_target::add_active_thread): Put initial thread
5612 into the m_cpu_map.
5613
550ab58d
TT
56142020-08-07 Tom Tromey <tromey@adacore.com>
5615
5616 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
5617 event_ptid.
5618
e9546579
TT
56192020-08-07 Tom Tromey <tromey@adacore.com>
5620
5621 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
5622 runtime_initialized.
5623
3d4470e5
TT
56242020-08-07 Tom Tromey <tromey@adacore.com>
5625
5626 * ravenscar-thread.c (ravenscar_thread_target): Don't call
5627 add_active_thread.
5628 (ravenscar_thread_target::add_active_thread): Now public.
5629 (ravenscar_inferior_created): Call add_active_thread after pushing
5630 the target.
5631
888bdb2b
SM
56322020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
5633
5634 * regcache.c (ptid_regcache_map): New type.
5635 (target_ptid_regcache_map): New type.
5636 (regcaches): Change type to target_ptid_regcache_map.
5637 (get_thread_arch_aspace_regcache): Update to regcaches' new
5638 type.
5639 (regcache_thread_ptid_changed): Likewise.
5640 (registers_changed_ptid): Likewise.
5641 (regcaches_size): Likewise.
5642 (regcaches_test): Update.
5643 (regcache_thread_ptid_changed): Update.
5644 * regcache.h (regcache_up): New type.
5645 * gdbsupport/ptid.h (hash_ptid): New struct.
5646
b161a60d
SM
56472020-08-07 Simon Marchi <simon.marchi@efficios.com>
5648
5649 * observable.h (thread_ptid_changed): Add parameter
5650 `process_stratum_target *`.
5651 * infrun.c (infrun_thread_ptid_changed): Add parameter
5652 `process_stratum_target *` and use it.
5653 (selftests): New namespace.
5654 (infrun_thread_ptid_changed): New function.
5655 (_initialize_infrun): Register selftest.
5656 * regcache.c (regcache_thread_ptid_changed): Add parameter
5657 `process_stratum_target *` and use it.
5658 (regcache_thread_ptid_changed): New function.
5659 (_initialize_regcache): Register selftest.
5660 * thread.c (thread_change_ptid): Pass target to
5661 thread_ptid_changed observable.
5662
d2854d8d
CT
56632020-08-06 Caroline Tice <cmtice@google.com>
5664
fe4c3d43
SM
5665 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
5666 (struct dwp_sections): Update field comments. Add loclists and
5667 rnglists fields.
5668 (struct virtual_v2_dwo_sections): Rename struct to
5669 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
5670 size & offset fields for loclists and rnglists.
5671 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
5672 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
5673 skipping dummy type units.
5674 (create_dwp_hash_table): Update the large comment above the function to
5675 discuss Version 5 DWP files as well, with references. Update all the
5676 version checks in the function to check for version 5 as well. Add new
5677 section at the end to create dwp hash table for version 5.
5678 (create_dwp_v2_section): Rename function to
5679 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
5680 Add V5 to error message text.
5681 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
5682 into calls to create_dwp_v2_or_v5_section.
5683 (create_dwo_unit_in_dwp_v5): New function.
5684 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
5685 check for version2; add else clause to handle version 5.
5686 (open_and_init_dwo_file): Add code to check dwarf version & only call
5687 create_debug_types_hash_table (with sections.types) if version is not 5;
5688 else call create_debug_type_hash_table, with sections.info.
5689 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
5690 version 5.
5691 (dwarf2_locate_v5_dwp_sections): New function.
5692 (open_and_init_dwp_file): Add else-if clause for version 5 to call
5693 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 5694
159ed7d9
SM
56952020-08-06 Simon Marchi <simon.marchi@efficios.com>
5696
5697 * regcache.h (class regcache): Remove friend
5698 registers_changed_ptid.
5699 <regcache_thread_ptid_changed>: Remove.
5700 <regcaches>: Remove.
5701 * regcache.c (regcache::regcaches): Rename to...
5702 (regcaches): ... this. Make static.
5703 (get_thread_arch_aspace_regcache): Update.
5704 (regcache::regcache_thread_ptid_changed): Rename to...
5705 (regcache_thread_ptid_changed): ... this. Update.
5706 (class regcache_access): Remove.
5707 (regcaches_test): Update.
5708 (_initialize_regcache): Update.
5709 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
5710 <forward_list>.
5711
174981ae
SM
57122020-08-06 Simon Marchi <simon.marchi@efficios.com>
5713
5714 * regcache.h (class regcache) <current_regcache>: Rename to...
5715 <regcaches>: ... this. Move doc here.
5716 * regcache.c (regcache::current_regcache) Rename to...
5717 (regcache::regcaches): ... this. Move doc to header.
5718 (get_thread_arch_aspace_regcache): Update.
5719 (regcache::regcache_thread_ptid_changed): Update.
5720 (registers_changed_ptid): Update.
5721 (class regcache_access) <current_regcache_size>: Rename to...
5722 <regcaches_size>: ... this.
5723 (current_regcache_test): Rename to...
5724 (regcaches_test): ... this.
5725 (_initialize_regcache): Update.
5726
ed908db6
VC
57272020-08-06 Victor Collod <vcollod@nvidia.com>
5728
5729 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
5730
b5582ab7
KB
57312020-08-05 Kevin Buettner <kevinb@redhat.com>
5732
5733 * corelow.c (core_target::build_file_mappings): Don't output
5734 null pathname in warning.
5735
ea946b86
SM
57362020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
5737
5738 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
5739 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
5740 gdb.dwarf2/dw2-single-line-discriminators.exp,
5741 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
5742
57d02173
TT
57432020-08-05 Tom Tromey <tromey@adacore.com>
5744
5745 PR rust/26197:
5746 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
5747 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
5748 Fix off-by-one and type size errors in ordinary case.
5749
5555c86d
TV
57502020-08-05 Tom de Vries <tdevries@suse.de>
5751
5752 * gdbtypes.c (type_not_allocated, type_not_associated): Use
5753 "prop->const_val () == 0" instead of "prop->const_val () != 0".
5754
97916bfe
SM
57552020-08-04 Simon Marchi <simon.marchi@efficios.com>
5756
5757 * frame.h (frame_id_p): Return bool.
5758 (frame_id_artificial_p): Return bool.
5759 (frame_id_eq): Return bool.
5760 (has_stack_frames): Return bool.
5761 (get_selected_frame): Fix typo in comment.
5762 (get_frame_pc_if_available): Return bool.
5763 (get_frame_address_in_block_if_available): Return bool.
5764 (get_frame_func_if_available): Return bool.
5765 (read_frame_register_unsigned): Return bool.
5766 (get_frame_register_bytes): Return bool.
5767 (safe_frame_unwind_memory): Return bool.
5768 (deprecated_frame_register_read): Return bool.
5769 (frame_unwinder_is): Return bool.
5770 * frame.c (struct frame_info) <prev_arch::p>: Change type to
5771 bool.
5772 <this_id::p>: Likewise.
5773 <prev_p>: Likewise.
5774 (frame_stash_add): Return bool.
5775 (get_frame_id): Use bool.
5776 (frame_id_build_special) Use bool.
5777 (frame_id_build_unavailable_stack): Use bool.
5778 (frame_id_build): Use bool.
5779 (frame_id_p): Return bool, use true/false instead of 1/0.
5780 (frame_id_artificial_p): Likewise.
5781 (frame_id_eq): Likewise.
5782 (frame_id_inner): Likewise.
5783 (get_frame_func_if_available): Likewise.
5784 (read_frame_register_unsigned): Likewise.
5785 (deprecated_frame_register_read): Likewise.
5786 (get_frame_register_bytes): Likewise.
5787 (has_stack_frames): Likewise.
5788 (inside_main_func): Likewise.
5789 (inside_entry_func): Likewise.
5790 (get_frame_pc_if_available): Likewise.
5791 (get_frame_address_in_block_if_available): Likewise.
5792 (frame_unwinder_is): Likewise.
5793 (safe_frame_unwind_memory): Likewise.
5794 (frame_unwind_arch): Likewise.
5795
fedfee88
SM
57962020-08-04 Simon Marchi <simon.marchi@efficios.com>
5797
5798 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
5799 type to cached_copy_status.
5800 (fprintf_frame): Adjust.
5801 (get_frame_func_if_available): Adjust.
5802 (frame_cleanup_after_sniffer): Adjust.
5803
6cfa9b59
MW
58042020-08-04 Mark Wielaard <mark@klomp.org>
5805
5806 * MAINTAINERS (Write After Approval): Update email address.
5807
66d6346b
SM
58082020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5809
5810 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
5811 dynamic_prop::const_val.
5812
8a6d5e35
SM
58132020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5814
5815 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
5816 dynamic_prop::kind.
5817
51d6067d
SM
58182020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5819
5820 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
5821
b26e2ae7
JM
58222020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
5823
5824 * configure.tgt: Set gdb_sim for bpf-*-* targets.
5825
39791af2
JM
58262020-08-04 Weimin Pan <weimin.pan@oracle.com>
5827 Jose E. Marchesi <jose.marchesi@oracle.com>
5828
5829 * configure.tgt: Add entry for bpf-*-*.
5830 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
5831 (ALLDEPFILES): Add bpf-tdep.c.
5832 * bpf-tdep.c: New file.
5833 * MAINTAINERS: Add bpf target and maintainer.
5834 * NEWS: Mention the support for the new target.
5835
521894aa
TV
58362020-08-04 Tom de Vries <tdevries@suse.de>
5837
5838 PR symtab/23270
5839 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
5840 Error.
5841
5d6356e9
JB
58422020-08-03 John Baldwin <jhb@FreeBSD.org>
5843
5844 * syscalls/freebsd.xml: Regenerate.
5845
0cf82b81
JB
58462020-08-03 John Baldwin <jhb@FreeBSD.org>
5847
5848 * syscalls/update-freebsd.sh: Fix usage and year range.
5849
8f34b746
TV
58502020-08-03 Tom de Vries <tdevries@suse.de>
5851
5852 PR symtab/26333
5853 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
5854 DW_LNE_lo_user/DW_LNE_hi_user range.
5855
5e500d33
SM
58562020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
5857
5858 PR ada/26318
5859 * ada-lang.c (ada_modulus): Return 0 if property is not of const
5860 kind.
5861
78319c15
TBA
58622020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5863
5864 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
5865
4c55e970
TBA
58662020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5867
5868 * breakpoint.c (set_breakpoint_condition): Update the condition
5869 expressions after checking that the input condition string parses
5870 successfully and does not contain junk at the end.
5871
1e620590
TBA
58722020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5873
5874 * breakpoint.c (set_breakpoint_condition): Update the
5875 condition string after parsing the new condition successfully.
5876
c8693053
RO
58772020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5878
5879 * proc-api.c (_STRUCTURED_PROC): Don't define.
5880 * proc-events.c: Likewise.
5881 * proc-flags.c: Likewise.
5882 * proc-why.c: Likewise.
5883 * procfs.c: Likewise.
5884
5885 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
5886 * configure, config.in: Regenerate.
5887
5a99adb8
TV
58882020-07-30 Tom de Vries <tdevries@suse.de>
5889
5890 PR build/26320
5891 * ui-style.h (struct ui_file_style::color): Wrap m_value and
5892 m_red/m_green/m_blue in a union.
5893
8ba83e91
TV
58942020-07-29 Tom de Vries <tdevries@suse.de>
5895
5896 PR tdep/26280
5897 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
5898
f75a0693
AB
58992020-07-28 Tom Tromey <tromey@adacore.com>
5900
5901 PR symtab/26270:
5902 * symtab.h (find_pc_partial_function_sym): Declare.
5903 * cli/cli-cmds.c (disassemble_command): Use
5904 find_pc_partial_function_sym. Check asm_demangle.
5905 * blockframe.c (cache_pc_function_sym): New global.
5906 (cache_pc_function_name): Remove.
5907 (clear_pc_function_cache): Update.
5908 (find_pc_partial_function_sym): New function, from
5909 find_pc_partial_function.
5910 (find_pc_partial_function): Rewrite using
5911 find_pc_partial_function_sym.
5912
16f3242c
TT
59132020-07-28 Tom Tromey <tromey@adacore.com>
5914
5915 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
5916 help. Add usage.
5917
4888741a
TT
59182020-07-28 Tom Tromey <tromey@adacore.com>
5919
5920 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
5921 <DW_OP_GNU_variable_value>: Cast to address type.
5922
4d46f402
KR
59232020-07-28 Kamil Rytarowski <n54@gmx.com>
5924
5925 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
5926 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
5927 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
5928 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
5929 (nbsd_get_siginfo_type): New.
5930 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
5931 (_initialize_nbsd_tdep): New.
5932
d70f978b
L
59332020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5934
5935 PR binutils/26301
5936 * configure: Regenerated.
5937
377170fa
L
59382020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5939
5940 PR binutils/26301
5941 * configure: Regenerated.
5942
43d5901d
AB
59432020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5944
5945 * python/py-frame.c: Remove 'user-regs.h' include.
5946 (frapy_read_register): Rewrite to make use of
5947 gdbpy_parse_register_id.
5948 * python/py-registers.c (gdbpy_parse_register_id): New function,
5949 moved here from python/py-unwind.c. Updated the return type, and
5950 also accepts register descriptor objects.
5951 * python/py-unwind.c: Remove 'user-regs.h' include.
5952 (pyuw_parse_register_id): Moved to python/py-registers.c.
5953 (unwind_infopy_add_saved_register): Update to use
5954 gdbpy_parse_register_id.
5955 (pending_framepy_read_register): Likewise.
5956 * python/python-internal.h (gdbpy_parse_register_id): Declare.
5957
14fa8fb3
AB
59582020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5959
5960 * python/py-registers.c: Add 'user-regs.h' include.
5961 (register_descriptor_iter_find): New function.
5962 (register_descriptor_iterator_object_methods): New static global
5963 methods array.
5964 (register_descriptor_iterator_object_type): Add pointer to methods
5965 array.
5966
ddce1758
JB
59672020-07-27 John Baldwin <jhb@FreeBSD.org>
5968
5969 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
5970 for all architectures on FreeBSD 11.3 and later.
5971
a4089f52
TT
59722020-07-27 Tom Tromey <tromey@adacore.com>
5973
5974 * gcore.h (load_corefile): Don't declare.
5975
95420d30
TV
59762020-07-27 Tom de Vries <tdevries@suse.de>
5977
5978 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
5979 * config.in: Regenerate.
5980 * configure: Regenerate.
5981
05a6b8c2
EZ
59822020-07-26 Eli Zaretskii <eliz@gnu.org>
5983
5984 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
5985 ws2tcpip.h. When checking whether socklen_t type is defined, use
5986 ws2tcpip.h if it is available and sys/socket.h isn't.
5987 * configure: Regenerate.
5988 * config.in: Regenerate.
5989
e79eb02f
AB
59902020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
5991
5992 PR fortran/23051
5993 PR fortran/26139
5994 * valops.c (value_ind): Pass address to
5995 readjust_indirect_value_type.
5996 * value.c (readjust_indirect_value_type): Make parameter
5997 non-const, and add extra address parameter. Resolve original type
5998 before using it.
5999 * value.h (readjust_indirect_value_type): Update function
6000 signature and comment.
6001
876518dd
TV
60022020-07-25 Tom de Vries <tdevries@suse.de>
6003
6004 PR symtab/26243
6005 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
6006 entries.
6007
f6720b1c
AM
60082020-07-24 Aaron Merey <amerey@redhat.com>
6009
6010 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
6011 * configure: Rebuild.
6012
513487e1
KB
60132020-07-23 Kevin Buettner <kevinb@redhat.com>
6014
6015 PR corefiles/26294
6016 * corelow.c (_initialize_corelow): Add period to help text
6017 for "maintenance print core-file-backed-mappings".
6018
e7bc9db8
PA
60192020-07-23 Pedro Alves <pedro@palves.net>
6020
6021 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
6022 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
6023 meanwhile.
6024 * frame.c (frame_cache_generation, get_frame_cache_generation):
6025 New.
6026 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
6027 (get_prev_frame_if_no_cycle): On exception, don't touch
6028 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
6029 * frame.h (get_frame_cache_generation): Declare.
6030
90fcc466
TV
60312020-07-23 Tom de Vries <tdevries@suse.de>
6032
6033 PR tui/26282
6034 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
6035 New default constructor.
6036
78344df7
AB
60372020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
6038
6039 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
6040 exclude non-statement entries.
6041
b089853a
KB
60422020-07-22 Kevin Buettner <kevinb@redhat.com>
6043
6044 * NEWS (New commands): Mention new command
6045 "maintenance print core-file-backed-mappings".
6046
09c2f5d4
KB
60472020-07-22 Kevin Buettner <kevinb@redhat.com>
6048
6049 * corelow.c (gdbcmd.h): Include.
6050 (core_target::info_proc_mappings): New method.
6051 (get_current_core_target): New function.
6052 (maintenance_print_core_file_backed_mappings): New function.
6053 (_initialize_corelow): Add core-file-backed-mappings to
6054 "maint print" commands.
6055
9c5ec5c2 60562020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 6057
9c5ec5c2
KB
6058 * linux-tdep.c (dump_note_entry_p): New function.
6059 (linux_dump_mapping_p_ftype): New typedef.
6060 (linux_find_memory_regions_full): Add new parameter,
6061 should_dump_mapping_p.
6062 (linux_find_memory_regions): Adjust call to
6063 linux_find_memory_regions_full.
6064 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
6065 call to linux_find_memory_regions_full.
6066
db082f59
KB
60672020-07-22 Kevin Buettner <kevinb@redhat.com>
6068
6069 * corelow.c (solist.h, unordered_map): Include.
6070 (class core_target): Add field m_core_file_mappings and
6071 method build_file_mappings.
6072 (core_target::core_target): Call build_file_mappings.
6073 (core_target::~core_target): Free memory associated with
6074 m_core_file_mappings.
6075 (core_target::build_file_mappings): New method.
6076 (core_target::xfer_partial): Use m_core_file_mappings
6077 for memory transfers.
6078 * linux-tdep.c (linux_read_core_file_mappings): New
6079 function.
6080 (linux_core_info_proc_mappings): Rewrite to use
6081 linux_read_core_file_mappings.
6082 (linux_init_abi): Register linux_read_core_file_mappings.
6083
7e183d27
KB
60842020-07-22 Kevin Buettner <kevinb@redhat.com>
6085
6086 * arch-utils.c (default_read_core_file_mappings): New function.
6087 * arch-utils.c (default_read_core_file_mappings): Declare.
6088 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
6089 * gdbarch.h, gdbarch.c: Regenerate.
6090
2735d421
KB
60912020-07-22 Kevin Buettner <kevinb@redhat.com>
6092
6093 PR corefiles/25631
6094 * corelow.c (core_target:xfer_partial): Revise
6095 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
6096 case after first checking the stratum beneath the core
6097 target.
6098 (has_all_memory): Return true.
6099 * target.c (raw_memory_xfer_partial): Revise comment
6100 regarding use of has_all_memory.
6101
e56cb451
KB
61022020-07-22 Kevin Buettner <kevinb@redhat.com>
6103
6104 * exec.h (section_table_xfer_memory): Revise declaration,
6105 replacing section name parameter with an optional callback
6106 predicate.
6107 * exec.c (section_table_xfer_memory): Likewise.
6108 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
6109 of section_table_xfer_memory.
6110
32fa152e
TT
61112020-07-22 Tom Tromey <tromey@adacore.com>
6112
6113 * mi/mi-cmd-stack.c (list_args_or_locals): Use
6114 lookup_symbol_search_name.
6115
a67a1c41
AB
61162020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6117
6118 * python/py-registers.c (gdbpy_register_object_data_init): Remove
6119 redundant local variable.
6120 (gdbpy_get_register_descriptor): Extract descriptor vector as a
6121 reference, not pointer, update code accordingly.
6122
a7b4ff4f
SM
61232020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6124 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6125
6126 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
6127 * jit.c (jit_breakpoint_re_set_internal): Use the
6128 `skip_jit_symbol_lookup` field.
6129
2340e834
SM
61302020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6131 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6132
6133 * jit.c (jit_read_descriptor): Define the descriptor address once,
6134 use twice.
6135 (jit_breakpoint_deleted): Move the declaration of the loop variable
6136 `iter` into the loop header.
6137 (jit_breakpoint_re_set_internal): Move the declaration of the local
6138 variable `objf_data` to the first point of definition.
6139 (jit_event_handler): Move the declaration of local variables
6140 `code_entry`, `entry_addr`, and `objf` to their first point of use.
6141 Rename `objf` to `jited`.
6142
c1072906
SM
61432020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6144
6145 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
6146 Remove.
6147 * jit.c (get_jiter_objfile_data): Update.
6148
c8474dc3
TBA
61492020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6150 Simon Marchi <simon.marchi@polymtl.ca>
6151
6152 * jit.c (struct jit_program_space_data): Remove.
6153 (jit_program_space_key): Remove.
6154 (jiter_objfile_data::~jiter_objfile_data): Remove program space
6155 stuff.
6156 (get_jit_program_space_data): Remove.
6157 (jit_breakpoint_deleted): Iterate on all of the program space's
6158 objfiles.
6159 (jit_inferior_init): Likewise.
6160 (jit_breakpoint_re_set_internal): Likewise. Also change return
6161 type to void.
6162 (jit_breakpoint_re_set): Pass current_program_space to
6163 jit_breakpoint_re_set_internal.
6164
77208eb7
SM
61652020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6166
6167 * jit.h (struct jiter_objfile_data) <cached_code_address,
6168 jit_breakpoint>: Move to here from ...
6169 * jit.c (jit_program_space_data): ... here.
6170 (jiter_objfile_data::~jiter_objfile_data): Update.
6171 (jit_breakpoint_deleted): Update.
6172 (jit_breakpoint_re_set_internal): Update.
6173
8c1c720f
SM
61742020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6175
6176 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
6177 checks.
6178 (jit_read_descriptor): Remove NULL check.
6179 (jit_event_handler): Add an assertion.
6180
0e74a041
SM
61812020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6182
6183 * jit.h (struct jit_objfile_data): Split into...
6184 (struct jiter_objfile_data): ... this ...
6185 (struct jited_objfile_data): ... and this.
6186 * objfiles.h (struct objfile) <jit_data>: Remove.
6187 <jiter_data, jited_data>: New fields.
6188 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
6189 (jiter_objfile_data::~jiter_objfile_data): ... this.
6190 (get_jit_objfile_data): Rename to ...
6191 (get_jiter_objfile_data): ... this.
6192 (add_objfile_entry): Update.
6193 (jit_read_descriptor): Use get_jiter_objfile_data.
6194 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
6195 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
6196 (jit_inferior_exit_hook): Use objfile's jited_data field.
6197
238b5c9f
SM
61982020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6199
6200 * jit.h: Forward-declare `struct minimal_symbol`.
6201 (struct jit_objfile_data): Migrate to here from jit.c; also add a
6202 constructor, destructor, and an objfile* field.
6203 * jit.c (jit_objfile_data): Remove.
6204 (struct jit_objfile_data): Migrate from here to jit.h.
6205 (jit_objfile_data::~jit_objfile_data): New destructor
6206 implementation with code moved from free_objfile_data.
6207 (free_objfile_data): Delete.
6208 (get_jit_objfile_data): Update to use the jit_data field of objfile.
6209 (jit_find_objf_with_entry_addr): Ditto.
6210 (jit_inferior_exit_hook): Ditto.
6211 (_initialize_jit): Remove the call to
6212 register_objfile_data_with_cleanup.
6213 * objfiles.h (struct objfile) <jit_data>: New field.
6214
fe053b9e
TBA
62152020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6216
6217 * jit.h: Forward-declare `struct objfile`.
6218 (jit_event_handler): Add a second parameter, the JITer objfile.
6219 * jit.c (jit_read_descriptor): Change the signature to take the
6220 JITer objfile as an argument instead of the jit_program_space_data.
6221 (jit_inferior_init): Update the call to jit_read_descriptor.
6222 (jit_event_handler): Use the new JITer objfile argument when calling
6223 jit_read_descriptor.
6224 * breakpoint.c (handle_jit_event): Update the call to
6225 jit_event_handler to pass the JITer objfile.
6226
4cec0c66
JB
62272020-07-21 John Baldwin <jhb@FreeBSD.org>
6228
6229 * gdbarch.c: Regenerate.
6230 * gdbarch.h: Regenerate.
6231 * gdbarch.sh (handle_segmentation_fault): Remove method.
6232 * infrun.c (handle_segmentation_fault): Remove.
6233 (print_signal_received_reason): Remove call to
6234 handle_segmentation_fault.
6235
0e42f66a
JB
62362020-07-21 John Baldwin <jhb@FreeBSD.org>
6237
6238 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6239 Rename to sparc64_linux_report_signal_info and add siggnal
6240 argument.
6241 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
6242 instead of sparc64_linux_handle_segmentation_fault.
6243
77bdfeb2
JB
62442020-07-21 John Baldwin <jhb@FreeBSD.org>
6245
6246 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
6247 i386_linux_report_signal_info instead of
6248 i386_linux_handle_segmentation_fault.
6249 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
6250 to i386_linux_report_signal_info and add siggnal argument.
6251 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
6252 of i386_linux_handle_segmentation_fault.
6253 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
6254 to i386_linux_report_signal_info and add siggnal argument.
6255
ad97bfc5
JB
62562020-07-21 John Baldwin <jhb@FreeBSD.org>
6257
6258 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
6259 hook if present.
6260
272bb05c
JB
62612020-07-21 John Baldwin <jhb@FreeBSD.org>
6262
6263 * gdbarch.c: Regenerate.
6264 * gdbarch.h: Regenerate.
6265 * gdbarch.sh (report_signal_info): New method.
6266 * infrun.c (print_signal_received_reason): Invoke gdbarch
6267 report_signal_info hook if present.
6268
baf8791e
AB
62692020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6270
6271 * python/py-registers.c : Add 'unordered_map' include.
6272 (gdbpy_new_reggroup): Renamed to...
6273 (gdbpy_get_reggroup): ...this. Update to only create register
6274 group descriptors when needed.
6275 (gdbpy_reggroup_iter_next): Update.
6276
f7306dac
AB
62772020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6278
6279 * python/py-registers.c (gdbpy_register_object_data): New static
6280 global.
6281 (gdbpy_register_object_data_init): New function.
6282 (gdbpy_new_register_descriptor): Renamed to...
6283 (gdbpy_get_register_descriptor): ...this, and update to reuse
6284 existing register descriptors where possible.
6285 (gdbpy_register_descriptor_iter_next): Update.
6286 (gdbpy_initialize_registers): Register new gdbarch data.
6287
05c309a8
SM
62882020-07-21 Simon Marchi <simon.marchi@efficios.com>
6289
6290 * linux-nat.c (stopped_pids): Make static.
6291
d1fd641e
SM
62922020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
6293
6294 PR ada/26235
6295 * gdbtypes.c (ada_discrete_type_low_bound,
6296 ada_discrete_type_high_bound): Handle undefined bounds.
6297
1de14d77
KR
62982020-07-21 Kamil Rytarowski <n54@gmx.com>
6299
6300 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
6301 declaration.
6302 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
6303 function.
6304
ed810cc7
JB
63052020-07-20 John Baldwin <jhb@FreeBSD.org>
6306
6307 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
6308 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
6309 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
6310 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
6311 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
6312 method.
6313
ae5369e7
LC
63142020-07-20 Ludovic Courtès <ludo@gnu.org>
6315
6316 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
6317 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
6318 which are deprecated in Guile 3.0.
6319 * configure.ac (try_guile_versions): Add "guile-3.0".
6320 * configure (try_guile_versions): Regenerate.
6321 * NEWS: Update entry.
6322
68cf161c
LC
63232020-07-20 Ludovic Courtès <ludo@gnu.org>
6324 Doug Evans <dje@google.com>
6325
6326 PR gdb/21104
6327 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
6328 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
6329 USING_GUILE_BEFORE_2_2.
6330 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
6331 Change type to 'scm_t_port_type *'.
6332 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
6333 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
6334 parameter and honor it. Update callers.
6335 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
6336 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
6337 functions.
6338 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
6339 USING_GUILE_BEFORE_2_2.
6340 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
6341 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
6342 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
6343 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
6344 and 'SCM_PORT_TYPE'.
6345 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
6346 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
6347 (gdbscm_memory_port_read, gdbscm_memory_port_write)
6348 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
6349 [!USING_GUILE_BEFORE_2_2]: New functions.
6350 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
6351 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
6352 'gdbscm_memory_port_read'.
6353 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
6354 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
6355 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
6356 function.
6357 (ioscm_init_memory_port): Remove.
6358 (ioscm_init_memory_port_stream): New function
6359 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
6360 function.
6361 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6362 Return scm_from_uint (0).
6363 (gdbscm_set_memory_port_read_buffer_size_x)
6364 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6365 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6366 Return scm_from_uint (0).
6367 (gdbscm_set_memory_port_write_buffer_size_x)
6368 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6369 * configure.ac (try_guile_versions): Add "guile-2.2".
6370 * configure: Regenerate.
6371 * NEWS: Add entry.
6372
aee91db3
TT
63732020-07-18 Tom Tromey <tom@tromey.com>
6374
6375 * linux-nat.c (linux_multi_process): Remove.
6376 (linux_nat_target::supports_multi_process): Return true.
6377
0e267416
AB
63782020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6379
6380 * arch/riscv.c (riscv_tdesc_cache): Change map type.
6381 (riscv_lookup_target_description): Return pointer out of
6382 unique_ptr.
6383 * target-descriptions.c (allocate_target_description): Add
6384 comment.
6385 (target_desc_deleter::operator()): Likewise.
6386 * target-descriptions.h (struct target_desc_deleter): Moved to
6387 gdbsupport/tdesc.h.
6388 (target_desc_up): Likewise.
6389
f80c8ec4
TT
63902020-07-17 Tom Tromey <tromey@adacore.com>
6391
6392 * linux-nat.c (linux_nat_target::supports_non_stop)
6393 (linux_nat_target::always_non_stop_p): Use "true".
6394 (linux_nat_target::supports_disable_randomization): Use "true" and
6395 "false".
6396
d0ce17d8
CT
63972020-07-16 Caroline Tice <cmtice@google.com>
6398
6399 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
6400 (RNGLIST_HEADER_SIZE64): New constant definition.
6401 (struct dwop_section_names): Add rnglists_dwo.
6402 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
6403 (struct loclist_header): Rename to 'loclists_rnglists_header'.
6404 (struct dwo_sections): Add rnglists field.
6405 (read_attribut_reprocess): Add tag parameter.
6406 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
6407 (cu_debug_rnglists_section): New function (decl & definition).
6408 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
6409 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
6410 die whose range is being checked; get rnglist section from
6411 cu_debug_rnglists_section, to get from either objfile or dwo file as
6412 appropriate. Add cases for DW_RLE_base_addressx,
6413 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
6414 the base address to DW_RLE_offset_pairs (not to all ranges), moving
6415 test inside if-condition and updating complaint message.
6416 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
6417 dwarf2_rnglists_process.
6418 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
6419 dwarf2_ranges_process.
6420 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
6421 need_ranges_base and update comment appropriately. Also pass die tag
6422 to dwarf2_ranges_read.
6423 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
6424 need_ranges_base and update comment appropriately. Also pass die tag
6425 to dwarf2_ranges_process.
6426 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
6427 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
6428 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
6429 need_ranges_base and update comment appropriately. Also pass die tag
6430 to read_attribute_reprocess and dwarf2_ranges_read.
6431 (read_loclist_header): Rename function to read_loclists_rnglists_header,
6432 and update function comment appropriately.
6433 (read_loclist_index): Call read_loclists_rnglists_header instead of
6434 read_loclist_header.
6435 (read_rnglist_index): New function.
6436 (read_attribute_reprocess): Add tag parameter. Add code for
6437 DW_FORM_rnglistx, passing tag to read_rnglist_index.
6438 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
6439
3dcc261c
AB
64402020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
6441
6442 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
6443 being resolved.
6444
ccb9eba6
AB
64452020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
6446
6447 * arch-utils.c (show_architecture): Update formatting of messages.
6448
cf88be68
SM
64492020-07-12 Simon Marchi <simon.marchi@efficios.com>
6450
6451 * gdbtypes.h (struct type) <bounds>: Handle array and string
6452 types.
6453 * ada-lang.c (assign_aggregate): Use type::bounds on
6454 array/string type.
6455 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
6456 * c-varobj.c (c_number_of_children): Likewise.
6457 (c_describe_child): Likewise.
6458 * eval.c (evaluate_subexp_for_sizeof): Likewise.
6459 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
6460 (f_type_print_base): Likewise.
6461 * f-valprint.c (f77_array_offset_tbl): Likewise.
6462 (f77_get_upperbound): Likewise.
6463 (f77_print_array_1): Likewise.
6464 * guile/scm-type.c (gdbscm_type_range): Likewise.
6465 * m2-typeprint.c (m2_array): Likewise.
6466 (m2_is_long_set_of_type): Likewise.
6467 * m2-valprint.c (get_long_set_bounds): Likewise.
6468 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
6469 * python/py-type.c (typy_range): Likewise.
6470 * rust-lang.c (rust_internal_print_type): Likewise.
6471 * type-stack.c (type_stack::follow_types): Likewise.
6472 * valarith.c (value_subscripted_rvalue): Likewise.
6473 * valops.c (value_cast): Likewise.
6474
509971ae
SM
64752020-07-12 Simon Marchi <simon.marchi@efficios.com>
6476
6477 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
6478 callers to use the equivalent accessor methods.
6479
107406b7
SM
64802020-07-12 Simon Marchi <simon.marchi@efficios.com>
6481
6482 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
6483 (struct type) <bit_stride>: New method.
6484 (TYPE_BIT_STRIDE): Remove.
6485 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
6486
bb789949
SM
64872020-07-12 Simon Marchi <simon.marchi@efficios.com>
6488
6489 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
6490 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
6491 callers to use the equivalent accessor methods instead.
6492
39498edb
SM
64932020-07-12 Simon Marchi <simon.marchi@efficios.com>
6494
6495 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
6496 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
6497 callers to use the equivalent accessor methods instead.
6498
3b606f38
SM
64992020-07-12 Simon Marchi <simon.marchi@efficios.com>
6500
6501 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
6502 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
6503 to use dynamic_prop::kind.
6504
064d9cb9
SM
65052020-07-12 Simon Marchi <simon.marchi@efficios.com>
6506
6507 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
6508 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
6509 to get the bound property's kind and check against
6510 PROP_UNDEFINED.
6511
5537ddd0
SM
65122020-07-12 Simon Marchi <simon.marchi@efficios.com>
6513
6514 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
6515 all callers to use type::range_bounds followed by
6516 dynamic_prop::{low,high}.
6517
8c2e4e06
SM
65182020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6519
6520 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
6521 const_val, set_const_val, baton, set_locexpr, set_loclist,
6522 set_addr_offset, variant_parts, set_variant_parts,
6523 original_type, set_original_type>: New methods.
6524 <kind>: Rename to...
6525 <m_kind>: ... this. Update all users to use the new methods
6526 instead.
6527 <data>: Rename to...
6528 <m_data>: ... this. Update all users to use the new methods
6529 instead.
6530
7c6f2712
SM
65312020-07-12 Simon Marchi <simon.marchi@efficios.com>
6532
6533 * gdbtypes.c (get_discrete_bounds): Return failure if
6534 the range type's bounds are not both defined and constant
6535 values.
6536 (get_array_bounds): Update comment. Remove undefined bound check.
6537
599088e3
SM
65382020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6539
6540 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
6541 the type::bounds method directly.
6542
c4dfcb36
SM
65432020-07-12 Simon Marchi <simon.marchi@efficios.com>
6544
6545 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
6546 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
6547 are used to set the range type's bounds to use set_bounds.
6548
0a278aa7
PW
65492020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6550
6551 * exec.c (_initialize_exec): Update exec-file-mismatch help.
6552
cce20f10
PA
65532020-07-10 Pedro Alves <pedro@palves.net>
6554
6555 * gdbthread.h (inferior_ref): Define.
6556 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
6557 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
6558 * thread.c
6559 (scoped_restore_current_thread::restore):
6560 Adjust to gdb::ref_ptr.
6561 (scoped_restore_current_thread::~scoped_restore_current_thread):
6562 Remove manual decref handling.
6563 (scoped_restore_current_thread::scoped_restore_current_thread):
6564 Adjust to use
6565 inferior_ref::new_reference/thread_info_ref::new_reference.
6566 Incref the thread before calling get_frame_id instead of after.
6567 Let TARGET_CLOSE_ERROR propagate.
6568
6d7aa592
PA
65692020-07-10 Pedro Alves <pedro@palves.net>
6570
6571 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
6572 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
6573 NOT_AVAILABLE_ERROR.
6574 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
6575 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
6576
b3e3a4c1
SM
65772020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6578 Pedro Alves <pedro@palves.net>
6579
6580 PR gdb/26199
6581 * infrun.c (threads_are_resumed_pending_p): Delete.
6582 (do_target_wait): Remove threads_are_executing and
6583 threads_are_resumed_pending_p checks from the inferior_matches
6584 lambda. Update comments.
6585
d6cc5d98
PA
65862020-07-10 Pedro Alves <pedro@palves.net>
6587
6588 PR gdb/26199
6589 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
6590 executing threads.
6591
7d3badc6
PA
65922020-07-10 Pedro Alves <pedro@palves.net>
6593
6594 PR gdb/26199
6595 * infrun.c (handle_no_resumed): Handle multiple targets.
6596
42bd97a6
PA
65972020-07-10 Pedro Alves <pedro@palves.net>
6598
6599 PR gdb/26199
6600 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
6601 target_is_async_p.
6602
43667cc6
PA
66032020-07-10 Pedro Alves <pedro@palves.net>
6604
6605 PR gdb/26199
6606 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
6607 threads, not all threads.
6608
96118d11
PA
66092020-07-10 Pedro Alves <pedro@palves.net>
6610
6611 PR gdb/26199
6612 * remote.c (remote_target::open_1): Pass remote target pointer as
6613 data to create_async_event_handler.
6614 (remote_async_inferior_event_handler): Mark async event handler
6615 before returning if the remote target still has either pending
6616 events or unacknowledged notifications.
6617
54904d81
JB
66182020-07-10 John Baldwin <jhb@FreeBSD.org>
6619
6620 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
6621 declaration.
6622 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
6623 function.
6624
f37e5866
JB
66252020-07-09 John Baldwin <jhb@FreeBSD.org>
6626
6627 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
6628 inferior_ptid.
6629
fc238d4a
JB
66302020-07-09 John Baldwin <jhb@FreeBSD.org>
6631
6632 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
6633 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
6634 AT_FREEBSD_PS_STRINGS.
6635
6e2469ff
HD
66362020-07-08 Hannes Domani <ssbssa@yahoo.de>
6637
6638 * auto-load.c (auto_load_objfile_script_1): Convert drive part
6639 of debugfile path on Windows.
6640
d1076c41
JB
66412020-07-08 John Baldwin <jhb@FreeBSD.org>
6642
6643 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
6644 argument to 'data'.
6645
15f3b077
TT
66462020-07-08 Tom Tromey <tromey@adacore.com>
6647
6648 * ada-lang.c (ada_exception_message_1): Use read_memory.
6649
9fc501fd
AB
66502020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6651
6652 PR python/22748
6653 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
6654 special handling for inline frames.
6655 * findvar.c (value_of_register_lazy): Skip inline frames when
6656 creating lazy register values.
6657 * frame.c (frame_id_computed_p): Delete definition.
6658 * frame.h (frame_id_computed_p): Delete declaration.
6659
64cb3757
AB
66602020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6661
6662 * NEWS: Mention additions to Python API.
6663 * python/py-arch.c (archpy_register_groups): New function.
6664 (arch_object_methods): Add 'register_groups' method.
6665 * python/py-registers.c (reggroup_iterator_object): New struct.
6666 (reggroup_object): New struct.
6667 (gdbpy_new_reggroup): New function.
6668 (gdbpy_reggroup_to_string): New function.
6669 (gdbpy_reggroup_name): New function.
6670 (gdbpy_reggroup_iter): New function.
6671 (gdbpy_reggroup_iter_next): New function.
6672 (gdbpy_new_reggroup_iterator): New function
6673 (gdbpy_initialize_registers): Register new types.
6674 (reggroup_iterator_object_type): Define new Python type.
6675 (gdbpy_reggroup_getset): New static global.
6676 (reggroup_object_type): Define new Python type.
6677 * python/python-internal.h
6678
0f767f94
AB
66792020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6680
6681 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
6682 * python/py-arch.c (archpy_registers): New function.
6683 (arch_object_methods): Add 'registers' method.
6684 * python/py-registers.c: New file.
6685 * python/python-internal.h
6686 (gdbpy_new_register_descriptor_iterator): Declare.
6687 (gdbpy_initialize_registers): Declare.
6688 * python/python.c (do_start_initialization): Call
6689 gdbpy_initialize_registers.
6690 * NEWS: Mention additions to the Python API.
6691
87dbc774
AB
66922020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6693
6694 * NEWS: Mention new Python API method.
6695 * python/py-unwind.c (pending_framepy_architecture): New function.
6696 (pending_frame_object_methods): Add architecture method.
6697
3bc98c0c
AB
66982020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6699
6700 * gdbarch.c: Regenerate.
6701 * gdbarch.h: Regenerate.
6702 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
6703 (gdbarch_data): Use internal_error for the case where
6704 deprecated_set_gdbarch_data was originally needed.
6705 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
6706 and use passed in obstack.
6707 (libunwind_frame_set_descr): Should no longer get back NULL from
6708 gdbarch_data.
6709 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
6710 type.
6711 * user-regs.c (user_regs_init): Update parameters, and use passed
6712 in obstack.
6713 (user_reg_add): Should no longer get back NULL from gdbarch_data.
6714 (_initialize_user_regs): Register as a pre-init gdbarch data type.
6715
d8cc8af6
TV
67162020-07-06 Tom de Vries <tdevries@suse.de>
6717
6718 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
6719 End-Of-Sequence in lte_is_less_than.
6720 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
6721 "gdb: Don't reorder line table entries too much when sorting".
6722
947f7597
TV
67232020-07-06 Tom de Vries <tdevries@suse.de>
6724
6725 PR tui/26205
6726 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
6727
1e7c1b22
TV
67282020-07-05 Tom de Vries <tdevries@suse.de>
6729
6730 PR build/26187
6731 * inferior.h (struct infcall_suspend_state_deleter): If available, use
6732 std::uncaught_exceptions instead of deprecated
6733 std::uncaught_exception.
6734
a36158ec
SM
67352020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6736
6737 * macroexp.h (macro_stringify): Return
6738 gdb::unique_xmalloc_ptr<char>.
6739 * macroexp.c (macro_stringify): Likewise.
6740 * macrotab.c (fixup_definition): Update.
6741
14d960c8
SM
67422020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6743
6744 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
6745 (lex_one_token): Update.
6746 * macroexp.c (struct macro_buffer) <release>: Return
6747 gdb::unique_xmalloc_ptr<char>.
6748 (macro_stringify): Update.
6749 (macro_expand): Update.
6750 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
6751 * macroexp.h (macro_expand_next): Likewise.
6752
211d5b1c
SM
67532020-07-02 Simon Marchi <simon.marchi@efficios.com>
6754
6755 * macroexp.h (macro_lookup_ftype): Remove.
6756 (macro_expand, macro_expand_once, macro_expand_next): Remove
6757 lookup function parameters, add scope parameter.
6758 * macroexp.c (scan, substitute_args, expand, maybe_expand,
6759 macro_expand, macro_expand_once, macro_expand_next): Likewise.
6760 * macroscope.h (standard_macro_lookup): Change parameter type
6761 to macro_scope.
6762 * macroscope.c (standard_macro_lookup): Likewise.
6763 * c-exp.y (lex_one_token): Update.
6764 * macrocmd.c (macro_expand_command): Likewise.
6765 (macro_expand_once_command): Likewise.
6766
b1a35af2
SM
67672020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6768
6769 * inf-loop.c (inferior_event_handler): Remove client_data param.
6770 * inf-loop.h (inferior_event_handler): Likewise.
6771 * infcmd.c (step_1): Adjust.
6772 * infrun.c (proceed): Adjust.
6773 (fetch_inferior_event): Remove client_data param.
6774 (infrun_async_inferior_event_handler): Adjust.
6775 * infrun.h (fetch_inferior_event): Remove `void *` param.
6776 * linux-nat.c (handle_target_event): Adjust.
6777 * record-btrace.c (record_btrace_handle_async_inferior_event):
6778 Adjust.
6779 * record-full.c (record_full_async_inferior_event_handler):
6780 Adjust.
6781 * remote.c (remote_async_inferior_event_handler): Adjust.
6782
1cdf9e33
TT
67832020-07-01 Tom Tromey <tom@tromey.com>
6784
6785 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
6786 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
6787
32c1e210
TT
67882020-07-01 Tom Tromey <tom@tromey.com>
6789
6790 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
6791 tui_gen_win_info.
6792 (tui_win_info::make_window): Merge with
6793 tui_gen_win_info::make_window.
6794 (tui_win_info::make_visible): Move from tui_gen_win_info.
6795 * tui/tui-win.c (tui_win_info::max_width): Move from
6796 tui_gen_win_info.
6797 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
6798 type.
6799 <window_factory>: Likewise.
6800 * tui/tui-layout.c (tui_win_info::resize): Move from
6801 tui_gen_win_info.
6802 (make_standard_window): Change return type.
6803 (get_locator_window, tui_get_window_by_name): Likewise.
6804 (tui_layout_window::apply): Remove a cast.
6805 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
6806 (struct tui_win_info): Merge with tui_gen_win_info.
6807 (struct tui_gen_win_info): Remove.
6808
a30cb6da
TT
68092020-07-01 Tom Tromey <tom@tromey.com>
6810
6811 * tui/tui-stack.h (struct tui_locator_window): Derive from
6812 tui_win_info.
6813 <do_scroll_horizontal, do_scroll_vertical>: New methods.
6814 <can_box>: New method.
6815
1eb2161f
TT
68162020-07-01 Tom Tromey <tom@tromey.com>
6817
6818 * tui/tui-stack.h (struct tui_locator_window): Remove body.
6819
7134f2eb
TT
68202020-07-01 Tom Tromey <tom@tromey.com>
6821
6822 * tui/tui-regs.c (tui_data_window::display_registers_from)
6823 (tui_data_window::display_registers_from)
6824 (tui_data_window::first_data_item_displayed)
6825 (tui_data_window::delete_data_content_windows): Update.
6826 (tui_data_window::refresh_window, tui_data_window::no_refresh):
6827 Remove.
6828 (tui_data_window::check_register_values): Update.
6829 (tui_data_item_window::rerender): Add parameters. Update.
6830 (tui_data_item_window::refresh_window): Remove.
6831 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
6832 virtual.
6833 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
6834 tui_gen_win_info.
6835 <refresh_window, max_height, min_height>: Remove.
6836 <rerender>: Add parameters.
6837 <x, y, visible>: New members.
6838 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
6839 <m_item_width>: New member.
6840
22b7b041
TT
68412020-07-01 Tom Tromey <tom@tromey.com>
6842
6843 * tui/tui-regs.c (tui_data_window::show_register_group)
6844 (tui_data_window::check_register_values): Update.
6845 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
6846 from item_no.
6847
c9753adb
TT
68482020-07-01 Tom Tromey <tom@tromey.com>
6849
6850 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
6851 useless "if".
6852
9ab26b4a
TT
68532020-07-01 Tom Tromey <tom@tromey.com>
6854
6855 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
6856 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
6857
e555083f
TT
68582020-07-01 Tom Tromey <tom@tromey.com>
6859
6860 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
6861 * tui/tui-winsource.h (enum tui_line_or_address_kind)
6862 (struct tui_line_or_address): Move from tui-data.h.
6863 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
6864 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
6865 (tui_cmd_window, tui_source_window_base, tui_source_window)
6866 (tui_disasm_window): Don't declare.
6867 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
6868 to tui-winsource.h.
6869 (SINGLE_KEY): Move to tui-stack.c.
6870
7a02bab7
TT
68712020-07-01 Tom Tromey <tom@tromey.com>
6872
6873 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
6874 std::string.
6875 * tui/tui-regs.c (class tab_expansion_file): New.
6876 (tab_expansion_file::write): New method.
6877 (tui_register_format): Change return type. Use
6878 tab_expansion_file.
6879 (tui_get_register, tui_data_window::display_registers_from)
6880 (tui_data_item_window::rerender): Update.
6881 * tui/tui-io.h (tui_expand_tabs): Don't declare.
6882 * tui/tui-io.c (tui_expand_tabs): Remove.
6883
ea68593b
TT
68842020-07-01 Tom Tromey <tom@tromey.com>
6885
6886 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
6887
a8caed5d
FS
68882020-07-01 Fangrui Song <maskray@google.com>
6889
6890 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
6891
9cdf9820
AKS
68922020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6893
6894 * dwarf2/read.c (set_die_type): Removed conditions to restrict
6895 forms for DW_AT_associated and DW_AT_allocated attributes,
6896 which is already checked in function attr_to_dynamic_prop.
6897
a1520ad8
TT
68982020-06-30 Tom Tromey <tromey@adacore.com>
6899
6900 * dwarf2/read.c (quirk_rust_enum): Correctly call
6901 alloc_rust_variant for default-less enum.
6902
5ac58899
TT
69032020-06-30 Tom Tromey <tromey@adacore.com>
6904
6905 PR build/26183:
6906 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
6907 gdb::to_string.
6908
19b187a9
SM
69092020-06-29 Simon Marchi <simon.marchi@efficios.com>
6910
6911 * gdbarch.sh (displaced_step_copy_insn): Update doc.
6912 * gdbarch.h: Re-generate.
6913
cd4c4c07
TT
69142020-06-28 Tom Tromey <tom@tromey.com>
6915
6916 * command.h (cmd_types): Remove.
6917 (cmd_type): Don't declare.
6918 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
6919 typedef.
6920 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
6921 * cli/cli-decode.c (cmd_type): Remove.
6922
05779d57
PA
69232020-06-27 Pedro Alves <palves@redhat.com>
6924
6925 * fork-child.c (prefork_hook): Adjust.
6926 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
6927 Delete.
6928 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
6929 * inferior.c (inferior::set_tty, inferior::tty): New methods.
6930 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
6931 Remove declarations.
6932 (struct inferior) <set_tty, tty>: New methods.
6933 (struct inferior) <terminal>: Rename to ...
6934 (struct inferior) <m_terminal>: ... this and make private.
6935 * main.c (captured_main_1): Adjust.
6936 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
6937 (mi_cmd_inferior_tty_show): Adjust.
6938 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
6939 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
6940
1776e3e5
NA
69412020-06-26 Nick Alcock <nick.alcock@oracle.com>
6942
6943 * configure.ac: Add --enable-libctf: handle --disable-static
6944 properly.
6945 * acinclude.m4: sinclude ../config/enable.m4.
6946 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
6947 (LIBCTF): Substitute in.
6948 (CTF_DEPS): New, likewise.
6949 (CLIBS): libctf needs symbols from libbfd: move earlier.
6950 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
6951 flags.
6952 * ctfread.c: Surround in ENABLE_LIBCTF.
6953 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
6954 * configure: Regenerate.
6955 * config.in: Likewise.
6956
58373b80
SM
69572020-06-25 Simon Marchi <simon.marchi@efficios.com>
6958
6959 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
6960
277474ee
SM
69612020-06-25 Simon Marchi <simon.marchi@efficios.com>
6962
6963 * inferior.h (struct inferior) <terminal>: Change type to
6964 gdb::unique_xmalloc_ptr<char>.
6965 * inferior.c (inferior::~inferior): Don't free inf->terminal.
6966 * infcmd.c (set_inferior_io_terminal): Don't free terminal
6967 field, adjust to unique pointer.
6968 (get_inferior_io_terminal): Adjust to unique pointer.
6969
6d74da72
AB
69702020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6971
6972 * riscv-tdep.c (riscv_print_registers_info): Loop over all
6973 registers, not just the known core set of registers.
6974
2e52d038
AB
69752020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6976
6977 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
6978 fflags, frm, and fcsr registers.
6979 (riscv_register_reggroup_p): Remove unknown CSRs from save and
6980 restore groups.
6981 (riscv_tdesc_unknown_reg): New function.
6982 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
6983 tdesc_use_registers.
6984 * riscv-tdep.h (struct gdbarch_tdep): Add
6985 unknown_csrs_first_regnum, unknown_csrs_count,
6986 duplicate_fflags_regnum, duplicate_frm_regnum, and
6987 duplicate_fcsr_regnum fields.
6988
be64fd07
AB
69892020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6990
6991 * target-descriptions.c (tdesc_use_registers): Add new parameter a
6992 callback, use the callback (when not null) to help number unknown
6993 registers.
6994 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
6995 (tdesc_use_registers): Add extra parameter to declaration.
6996
3b9fce96
AB
69972020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6998
6999 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
7000 in the file.
7001 (class riscv_pending_register_alias): Likewise.
7002 (riscv_register_feature::register_info): Change 'required_p' field
7003 to 'required', and change its type. Add 'check' member function.
7004 (riscv_register_feature::register_info::check): Define new member
7005 function.
7006 (riscv_xreg_feature): Change initialisation of 'required' field.
7007 (riscv_freg_feature): Likewise.
7008 (riscv_virtual_feature): Likewise.
7009 (riscv_csr_feature): Likewise.
7010 (riscv_check_tdesc_feature): Take extra parameter, the csr
7011 tdesc_feature, rewrite the function to use the new
7012 riscv_register_feature::register_info::check function.
7013 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
7014
865bad26
AB
70152020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7016
7017 * features/Makefile: Remove all references to the deleted files
7018 below.
7019 * features/riscv/32bit-csr.c: Deleted.
7020 * features/riscv/32bit-csr.xml: Deleted.
7021 * features/riscv/64bit-csr.c: Deleted.
7022 * features/riscv/64bit-csr.xml: Deleted.
7023 * features/riscv/rebuild-csr-xml.sh: Deleted.
7024
ed69cbc8
AB
70252020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7026
7027 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
7028 whitespace error for declaration of names member variable.
7029 (struct riscv_register_feature): Add new prefer_first_name member
7030 variable, and fix whitespace error in declaration of registers.
7031 (riscv_xreg_feature): Initialize prefer_first_name field.
7032 (riscv_freg_feature): Likewise.
7033 (riscv_virtual_feature): Likewise.
7034 (riscv_csr_feature): Likewise.
7035 (riscv_register_name): Expand on comments. Remove register name
7036 modifications for CSR and virtual registers.
7037
4445e8f5
AB
70382020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7039
7040 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
7041 errors.
7042
767a879e
AB
70432020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7044
7045 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
7046 riscv-opc.h.
7047 (class riscv_pending_register_alias): New class.
7048 (riscv_check_tdesc_feature): Take vector of pending aliases and
7049 populate it as appropriate.
7050 (riscv_setup_register_aliases): Delete.
7051 (riscv_gdbarch_init): Create vector of pending aliases and pass it
7052 to riscv_check_tdesc_feature in all cases. Use the vector to
7053 create the register aliases.
7054
bb6e55f3
RO
70552020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7056
7057 * sol2-tdep.c (sol2_static_transform_name): Remove.
7058 (sol2_init_abi): Don't register it.
7059 * gdbarch.sh (static_transform_name): Remove.
7060 * gdbarch.c, gdbarch.h: Regenerate.
7061
7062 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
7063 gdbarch_static_transform_name.
7064 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
7065 * stabsread.c (define_symbol) <'X'>: Remove.
7066 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
7067 handling.
7068 <'V'>: Likewise.
7069 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
7070 <'S'>: Remove call to gdbarch_static_transform_name.
7071
c6d36836
RO
70722020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7073
7074 * procfs.c (procfs_pre_trace): New function.
7075 (procfs_target::create_inferior): Pass it to fork_inferior.
7076
a7e6196b
RO
70772020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7078
7079 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
7080 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
7081 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
7082 sol2-tdep.o, sparc-sol2-tdep.o.
7083 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
7084 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
7085 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
7086 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
7087
d412e696
RO
70882020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7089
7090 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
7091 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
7092 Call sol2_init_abi.
7093 Remove calls to set_gdbarch_skip_solib_resolver,
7094 set_gdbarch_core_pid_to_str.
7095 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
7096 (i386_sol2_static_transform_name): Remove.
7097 (i386_sol2_init_abi): Call sol2_init_abi.
7098 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7099 set_gdbarch_static_transform_name,
7100 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7101 Use sol2_sigtramp_p.
7102 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
7103 (sol2_sigtramp_p): New function.
7104 (sol2_static_transform_name): New function.
7105 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
7106 (sol2_init_abi): New function.
7107 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
7108 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
7109 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
7110 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
7111 (sparc_sol2_static_transform_name): Remove.
7112 (sparc32_sol2_init_abi): Call sol2_init_abi.
7113 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7114 set_gdbarch_static_transform_name,
7115 set_gdbarch_skip_solib_resolver,
7116 set_gdbarch_core_pid_to_str.
7117 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
7118 (sparc_sol2_static_transform_name): Remove
7119 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
7120 call sol2_sigtramp_p.
7121 (sparc64_sol2_init_abi): Call sol2_init_abi.
7122 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7123 set_gdbarch_static_transform_name,
7124 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7125
a8654e7d
PW
71262020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7127
7128 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
7129 * exec.c (validate_exec_file): If from_tty, set both
7130 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
7131 * symfile.c (symbol_file_add_with_addrs): if always_confirm
7132 and from_tty, unconditionally ask a confirmation.
7133
caa7fd04
AB
71342020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7135
7136 * target-descriptions.c (tdesc_architecture_name): Protect against
7137 NULL pointer dereference.
7138 (maint_print_xml_tdesc_cmd): New function.
7139 (_initialize_target_descriptions): Register new 'maint print
7140 xml-tdesc' command and give it the filename completer.
7141 * NEWS: Mention new 'maint print xml-tdesc' command.
7142
fbf42f4e
AB
71432020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7144
7145 * target-descriptions.c (class tdesc_compatible_info): New class.
7146 (struct target_desc): Change type of compatible vector.
7147 (tdesc_compatible_p): Update for change in type of
7148 target_desc::compatible.
7149 (tdesc_compatible_info_list): New function.
7150 (tdesc_compatible_info_arch_name): New function.
7151 (tdesc_add_compatible): Update for change in type of
7152 target_desc::compatible.
7153 (print_c_tdesc::visit_pre): Likewise.
7154
20821f4e
AB
71552020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7156
7157 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
7158 whitespace to underscore.
7159 (maint_print_c_tdesc_cmd): Use fake filename for target
7160 descriptions that came from the target.
7161 (_initialize_target_descriptions): Add filename command completion
7162 for 'maint print c-tdesc'.
7163
1fb5ee62
SM
71642020-06-23 Simon Marchi <simon.marchi@efficios.com>
7165
7166 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
7167 lines.
7168
fc3ecb3e
SM
71692020-06-23 Simon Marchi <simon.marchi@efficios.com>
7170
7171 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
7172 lines.
7173 (dwarf2_find_location_expression): Likewise.
7174 (call_site_parameter_matches): Likewise.
7175 (dwarf2_compile_expr_to_ax): Likewise.
7176 (disassemble_dwarf_expression): Likewise.
7177 (loclist_describe_location): Likewise.
7178
236ef034
PA
71792020-06-23 Pedro Alves <palves@redhat.com>
7180
7181 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
7182 progspace-and-thread.h. Include scoped-mock-context.h instead.
7183 (register_to_value_test): Use scoped_mock_context.
7184 * regcache.c: Include "scoped-mock-context.h".
7185 (cooked_read_test): Don't error out if a target is already pushed.
7186 Use scoped_mock_context. Adjust.
7187 * scoped-mock-context.h: New file.
7188
39e7ecca
AB
71892020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7190
7191 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
7192 initializer.
7193 (ada_language::is_string_type_p): New member function.
7194 * c-lang.c (c_language_data): Delete la_is_string_type_p
7195 initializer.
7196 (cplus_language_data): Likewise.
7197 (asm_language_data): Likewise.
7198 (minimal_language_data): Likewise.
7199 * d-lang.c (d_language_data): Likewise.
7200 * f-lang.c (f_is_string_type_p): Delete function, implementation
7201 moved to f_language::is_string_type_p.
7202 (f_language_data): Delete la_is_string_type_p initializer.
7203 (f_language::is_string_type_p): New member function,
7204 implementation from f_is_string_type_p.
7205 * go-lang.c (go_is_string_type_p): Delete function, implementation
7206 moved to go_language::is_string_type_p.
7207 (go_language_data): Delete la_is_string_type_p initializer.
7208 (go_language::is_string_type_p): New member function,
7209 implementation from go_is_string_type_p.
7210 * language.c (language_defn::is_string_type_p): Define new member
7211 function.
7212 (default_is_string_type_p): Make static, add comment copied from
7213 header file.
7214 (unknown_language_data): Delete la_is_string_type_p initializer.
7215 (unknown_language::is_string_type_p): New member function.
7216 (auto_language_data): Delete la_is_string_type_p initializer.
7217 (auto_language::is_string_type_p): New member function.
7218 * language.h (language_data): Delete la_is_string_type_p field.
7219 (language_defn::is_string_type_p): Declare new function.
7220 (default_is_string_type_p): Delete desclaration, move comment to
7221 definition.
7222 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
7223 moved to m2_language::is_string_type_p.
7224 (m2_language_data): Delete la_is_string_type_p initializer.
7225 (m2_language::is_string_type_p): New member function,
7226 implementation from m2_is_string_type_p.
7227 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
7228 initializer.
7229 * opencl-lang.c (opencl_language_data): Likewise.
7230 * p-lang.c (pascal_is_string_type_p): Delete function,
7231 implementation moved to pascal_language::is_string_type_p.
7232 (pascal_language_data): Delete la_is_string_type_p initializer.
7233 (pascal_language::is_string_type_p): New member function,
7234 implementation from pascal_is_string_type_p.
7235 * rust-lang.c (rust_is_string_type_p): Delete function,
7236 implementation moved to rust_language::is_string_type_p.
7237 (rust_language_data): Delete la_is_string_type_p initializer.
7238 (rust_language::is_string_type_p): New member function,
7239 implementation from rust_is_string_type_p.
7240 * valprint.c (val_print_scalar_or_string_type_p): Update call to
7241 is_string_type_p.
7242
4ffc13fb
AB
72432020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7244
7245 * ada-lang.c (ada_language_data): Delete la_print_typedef
7246 initializer.
7247 (ada_language::print_typedef): New member function.
7248 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
7249 (cplus_language_data): Likewise.
7250 (asm_language_data): Likewise.
7251 (minimal_language_data): Likewise.
7252 * d-lang.c (d_language_data): Likewise.
7253 * f-lang.c (f_language_data): Likewise.
7254 (f_language::print_typedef): New member function.
7255 * go-lang.c (go_language_data): Delete la_print_typedef
7256 initializer.
7257 * language.c (language_defn::print_typedef): Define member
7258 function.
7259 (unknown_language_data): Delete la_print_typedef initializer.
7260 (unknown_language::print_typedef): New member function.
7261 (auto_language_data): Delete la_print_typedef initializer.
7262 (auto_language::print_typedef): New member function.
7263 * language.h (language_data): Delete la_print_typedef field.
7264 (language_defn::print_typedef): Declare new member function.
7265 (LA_PRINT_TYPEDEF): Update call to print_typedef.
7266 (default_print_typedef): Delete declaration.
7267 * m2-lang.c (m2_language_data): Delete la_print_typedef
7268 initializer.
7269 (m2_language::print_typedef): New member function.
7270 * objc-lang.c (objc_language_data): Delete la_print_typedef
7271 initializer.
7272 * opencl-lang.c (opencl_language_data): Likewise.
7273 * p-lang.c (pascal_language_data): Likewise.
7274 (pascal_language::print_typedef): New member function.
7275 * rust-lang.c (rust_print_typedef): Delete function,
7276 implementation moved to rust_language::print_typedef.
7277 (rust_language): Delete la_print_typedef initializer.
7278 (rust_language::print_typedef): New member function,
7279 implementation from rust_print_typedef.
7280 * typeprint.c (default_print_typedef): Delete.
7281
d711ee67
AB
72822020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7283
7284 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
7285 (ada_language::printstr): New member function.
7286 * c-lang.c (c_language_data): Delete la_printstr initializer.
7287 (cplus_language_data): Likewise.
7288 (asm_language_data): Likewise.
7289 (minimal_language_data): Likewise.
7290 * d-lang.c (d_language_data): Likewise.
7291 * f-lang.c (f_printstr): Rename to f_language::printstr.
7292 (f_language_data): Delete la_printstr initializer.
7293 (f_language::printstr): New member function, implementation from
7294 f_printstr.
7295 * go-lang.c (go_language_data): Delete la_printstr initializer.
7296 * language.c (language_defn::printstr): Define new member
7297 function.
7298 (unk_lang_printstr): Delete.
7299 (unknown_language_data): Delete la_printstr initializer.
7300 (unknown_language::printstr): New member function.
7301 (auto_language_data): Delete la_printstr initializer.
7302 (auto_language::printstr): New member function.
7303 * language.h (language_data): Delete la_printstr field.
7304 (language_defn::printstr): Declare new member function.
7305 (LA_PRINT_STRING): Update call to printstr.
7306 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
7307 (m2_language_data): Delete la_printstr initializer.
7308 (m2_language::printstr): New member function, implementation from
7309 m2_printstr.
7310 * objc-lang.c (objc_language_data): Delete la_printstr
7311 initializer.
7312 * opencl-lang.c (opencl_language_data): Likewise.
7313 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
7314 (pascal_language_data): Delete la_printstr initializer.
7315 (pascal_language::printstr): New member function, implementation
7316 from pascal_printstr.
7317 * p-lang.h (pascal_printstr): Delete declaration.
7318 * rust-lang.c (rust_printstr): Update header comment.
7319 (rust_language_data): Delete la_printstr initializer.
7320 (rust_language::printstr): New member function.
7321
52b50f2c
AB
73222020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7323
7324 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
7325 (ada_language::printchar): New member function.
7326 * c-lang.c (c_language_data): Delete la_printchar initializer.
7327 (cplus_language_data): Likewise.
7328 (asm_language_data): Likewise.
7329 (minimal_language_data): Likewise.
7330 * d-lang.c (d_language_data): Likewise.
7331 * f-lang.c (f_printchar): Rename to f_language::printchar.
7332 (f_language_data): Delete la_printchar initializer.
7333 (f_language::printchar): New member function, implementation from
7334 f_printchar.
7335 * go-lang.c (go_language_data): Delete la_printchar initializer.
7336 * language.c (unk_lang_printchar): Delete.
7337 (language_defn::printchar): Define new member function.
7338 (unknown_language_data): Delete la_printchar initializer.
7339 (unknown_language::printchar): New member function.
7340 (auto_language_data): Delete la_printchar initializer.
7341 (auto_language::printchar): New member function.
7342 * language.h (language_data): Delete la_printchar field.
7343 (language_defn::printchar): Declare new member function.
7344 (LA_PRINT_CHAR): Update call to printchar.
7345 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
7346 (m2_language::printchar): New member function.
7347 * objc-lang.c (objc_language_data): Delete la_printchar
7348 initializer.
7349 * opencl-lang.c (opencl_language_data): Likewise.
7350 * p-lang.c (pascal_language_data): Delete la_printchar
7351 initializer.
7352 (pascal_language::printchar): New member function.
7353 * rust-lang.c (rust_printchar): Rename to
7354 rust_language::printchar.
7355 (rust_language_data): Delete la_printchar initializer.
7356 (rust_language::printchar): New member function, implementation
7357 from rust_printchar.
7358
ec8cec5b
AB
73592020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7360
7361 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
7362 (ada_language_data): Delete la_emitchar initializer.
7363 (ada_language::emitchar): New member function, implementation from
7364 emit_char.
7365 * c-lang.c (c_language_data): Delete la_emitchar initializer.
7366 (cplus_language_data): Likewise.
7367 (asm_language_data): Likewise.
7368 (minimal_language_data): Likewise.
7369 * d-lang.c (d_language_data): Likewise.
7370 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
7371 (f_language_data): Delete la_emitchar initializer.
7372 (f_language::emitchar): New member function, implementation from
7373 f_emit_char.
7374 * go-lang.c (go_language_data): Delete la_emitchar initializer.
7375 * language.c (unk_lang_emit_char): Delete.
7376 (language_defn::emitchar): New member function definition.
7377 (unknown_language_data): Delete la_emitchar initializer.
7378 (unknown_language::emitchar): New member function.
7379 (auto_language_data): Delete la_emitchar initializer.
7380 (auto_language::emitchar): New member function.
7381 * language.h (language_data): Delete la_emitchar field.
7382 (language_defn::emitchar): New member field declaration.
7383 (LA_EMIT_CHAR): Update call to emitchar.
7384 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
7385 (m2_language_data): Delete la_emitchar initializer.
7386 (m2_language::emitchar): New member function, implementation from
7387 m2_emit_char.
7388 * objc-lang.c (objc_language_data): Delete la_emitchar
7389 initializer.
7390 * opencl-lang.c (opencl_language_data): Likewise.
7391 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
7392 (pascal_language_data): Delete la_emitchar initializer.
7393 (pascal_language::emitchar): New member function, implementation
7394 from pascal_emit_char.
7395 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
7396 (rust_language_data): Delete la_emitchar initializer.
7397 (rust_language::emitchar): New member function, implementation
7398 from rust_emitchar.
7399
1bf9c363
AB
74002020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7401
7402 * ada-lang.c (resolve): Rename to ada_language::post_parser.
7403 (ada_language_data): Delete la_post_parser initializer.
7404 (ada_language::post_parser): New member function.
7405 * c-lang.c (c_language_data): Delete la_post_parser initializer.
7406 (cplus_language_data): Likewise.
7407 (asm_language_data): Likewise.
7408 (minimal_language_data): Likewise.
7409 * d-lang.c (d_language_data): Likewise.
7410 * f-lang.c (f_language_data): Likewise.
7411 * go-lang.c (go_language_data): Likewise.
7412 * language.c (unknown_language_data): Likewise.
7413 (auto_language_data): Likewise.
7414 * language.h (language_data): Delete la_post_parser field.
7415 (language_defn::post_parser): New member function.
7416 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
7417 * objc-lang.c (objc_language_data): Likewise.
7418 * opencl-lang.c (opencl_language_data): Likewise.
7419 * p-lang.c (pascal_language_data): Likewise.
7420 * parse.c (parse_exp_in_context): Update call to post_parser.
7421 (null_post_parser): Delete definition.
7422 * parser-defs.h (null_post_parser): Delete declaration.
7423 * rust-lang.c (rust_language_data): Delete la_post_parser
7424 initializer.
7425
87afa652
AB
74262020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7427
7428 * ada-lang.c (parse): Rename to ada_language::parser.
7429 (ada_language_data): Delete la_parser initializer.
7430 (ada_language::parser): New member function, implementation from
7431 parse.
7432 * c-lang.c (c_language_data): Delete la_parser initializer.
7433 (cplus_language_data): Likewise.
7434 (asm_language_data): Likewise.
7435 (minimal_language_data): Likewise.
7436 * d-lang.c (d_language_data): Likewise.
7437 (d_language::parser): New member function.
7438 * f-lang.c (f_language_data): Delete la_parser initializer.
7439 (f_language::parser): New member function.
7440 * go-lang.c (go_language_data): Delete la_parser initializer.
7441 (go_language::parser): New member function.
7442 * language.c (unk_lang_parser): Delete.
7443 (language_defn::parser): Define new member function.
7444 (unknown_language_data): Delete la_parser initializer.
7445 (unknown_language::parser): New member function.
7446 (auto_language_data): Delete la_parser initializer.
7447 (auto_language::parser): New member function.
7448 * language.h (language_data): Delete la_parser field.
7449 (language_defn::parser): Declare new member function.
7450 * m2-lang.c (m2_language_data): Delete la_parser initializer.
7451 (m2_language::parser): New member function.
7452 * objc-lang.c (objc_language_data): Delete la_parser initializer.
7453 * opencl-lang.c (opencl_language_data): Likewise.
7454 * p-lang.c (pascal_language_data): Likewise.
7455 (pascal_language::parser): New member function.
7456 * parse.c (parse_exp_in_context): Update call to parser.
7457 * rust-lang.c (rust_language_data): Delete la_parser initializer.
7458 (rust_language::parser): New member function.
7459
37825800
AB
74602020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7461
7462 * top.c (print_gdb_configuration): Print --with-python-libdir
7463 configuration value.
7464
5b860c93
PW
74652020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7466
7467 * NEWS: Mention change to the alias command.
7468
cf00cd6f
PW
74692020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7470
7471 * cli/cli-cmds.c (lookup_cmd_for_default_args)
7472 (alias_command_completer)
7473 (make_alias_options_def_group): New functions.
7474 (alias_opts, alias_option_defs): New struct and array.
7475 (alias_usage_error): Update usage.
7476 (alias_command): Handles optional DEFAULT-ARGS... arguments.
7477 Use option framework.
7478 (_initialize_cli_cmds): Update alias command help.
7479 Update aliases command help.
7480 (show_user):
7481 Add NULL for new default_args lookup_cmd argument.
7482 (valid_command_p): Rename to validate_aliased_command.
7483 Add NULL for new default_args lookup_cmd argument. Verify that the
7484 aliased_command has no default args.
7485 * cli/cli-decode.c (help_cmd): Show aliases definitions.
7486 (lookup_cmd_1, lookup_cmd): New argument default_args.
7487 (add_alias_cmd):
7488 Add NULL for new default_args lookup_cmd argument.
7489 (print_help_for_command): Show default args under the layout
7490 alias some_alias = some_aliased_cmd some_alias_default_arg.
7491 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
7492 xfree default_args in destructor.
7493 * cli/cli-script.c (process_next_line, do_define_command):
7494 Add NULL for new default_args lookup_cmd argument.
7495 * command.h: Declare new default_args argument in lookup_cmd
7496 and lookup_cmd_1.
7497 * completer.c (complete_line_internal_1):
7498 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7499 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
7500 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
7501 Likewise.
7502 * infcmd.c (_initialize_infcmd): Likewise.
7503 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
7504 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
7505 * python/py-param.c (add_setshow_generic): Likewise.
7506 * remote.c (_initialize_remote): Likewise.
7507 * top.c (execute_command): Prepend default_args if command has some.
7508 (set_verbose):
7509 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7510 * tracepoint.c (validate_actionline, encode_actions_1):
7511 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7512
bd920864
TBA
75132020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7514
7515 * jit.c (jit_read_descriptor): Use bool as the return type.
7516 (jit_breakpoint_re_set_internal): Use bool as the return type.
7517 Invert the return value logic; return true if the jit breakpoint
7518 has been successfully initialized.
7519 (jit_inferior_init): Update the call to
7520 jit_breakpoint_re_set_internal.
7521
f8098322
PA
75222020-06-22 Pedro Alves <palves@redhat.com>
7523
7524 PR gdb/25939
7525 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
7526 Use the current inferior instead. Don't return
7527 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
7528 wait again.
7529 * sol-thread.c (sol_thread_target::wait): Don't reference
7530 inferior_ptid.
7531 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
7532 (sol_update_thread_list_callback): Use the current inferior's pid
7533 instead of inferior_ptid.
7534
196535a6
RO
75352020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7536
7537 * procfs.c: Cleanup many comments.
7538
7539 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
7540 (AFTER_WATCHFLAG): Replace by value.
7541
7542 (MAIN_PROC_NAME_FORMAT): Inline ...
7543 (create_procinfo): ... here.
7544
7545 (procfs_debug_inferior): Remove SYS_exec handling.
7546 (syscall_is_exec): Likewise.
7547 (procfs_set_exec_trap): Likewise.
7548
7549 (syscall_is_lwp_exit): Inline in callers.
7550 (syscall_is_exit): Likewise.
7551 (syscall_is_exec): Likewise.
7552 (syscall_is_lwp_create): Likewise.
7553
7554 (invalidate_cache): Remove #if 0 code.
7555
7556 (make_signal_thread_runnable): Remove.
7557 (procfs_target::resume): Remove #if 0 code.
7558
cf6f3e86
RO
75592020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7560
7561 PR gdb/25939
7562 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
7563 call ...
7564 (procfs_target::create_inferior): ... here.
7565
48e9cc84
PW
75662020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7567
7568 * exec.c (validate_exec_file): Ensure the build-id is up to
7569 date by calling reopen_exec_file (that checks file timestamp
7570 to decide to re-read the file).
7571
3922b302
PA
75722020-06-18 Pedro Alves <palves@redhat.com>
7573
7574 PR gdb/25412
7575 * gdbthread.h (delete_thread, delete_thread_silent)
7576 (find_thread_ptid): Update comments.
7577 * thread.c (current_thread_): New global.
7578 (is_current_thread): Move higher, and reimplement.
7579 (inferior_thread): Reimplement.
7580 (set_thread_exited): Use bool. Add assertions.
7581 (add_thread_silent): Simplify thread-reuse handling by always
7582 calling delete_thread.
7583 (delete_thread): Remove intro comment.
7584 (find_thread_ptid): Skip exited threads.
7585 (switch_to_thread_no_regs): Write to current_thread_.
7586 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
7587 INFERIOR_PTID. Clear current_thread_.
7588
6dbdab44
PA
75892020-06-18 Pedro Alves <palves@redhat.com>
7590
7591 * aix-thread.c (pd_update): Use switch_to_thread.
7592
2da4b788
PA
75932020-06-18 Pedro Alves <palves@redhat.com>
7594
7595 * ravenscar-thread.c (ravenscar_thread_target): Update.
7596 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
7597 (ravenscar_thread_target::add_active_thread): ... this. Don't
7598 set m_base_ptid here. Update to avoid referencing inferior_ptid.
7599 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
7600
50838d1b
PA
76012020-06-18 Pedro Alves <palves@redhat.com>
7602
7603 * nat/windows-nat.c (current_windows_thread): Remove.
7604 * nat/windows-nat.h (current_windows_thread): Remove.
7605 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
7606 Adjust.
7607 (display_selectors): Adjust to fetch the current
7608 windows_thread_info based on inferior_ptid.
7609 (fake_create_process): No longer write to current_windows_thread.
7610 (windows_nat_target::get_windows_debug_event):
7611 Don't set inferior_ptid or current_windows_thread.
7612 (windows_nat_target::wait): Adjust to not rely on
7613 current_windows_thread.
7614 (do_initial_windows_stuff): Now a method of windows_nat_target.
7615 Switch to the last_ptid thread.
7616 (windows_nat_target::attach): Adjust.
7617 (windows_nat_target::detach): Use switch_to_no_thread instead of
7618 writing to inferior_ptid directly.
7619 (windows_nat_target::create_inferior): Adjust.
7620
31ce04e9
PA
76212020-06-18 Pedro Alves <palves@redhat.com>
7622
7623 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
7624
1ee1a363
PA
76252020-06-18 Pedro Alves <palves@redhat.com>
7626
7627 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
7628 after creating it, instead of writing to inferior_ptid. Don't
7629 write to inferior_ptid.
7630
6d350754
PA
76312020-06-18 Pedro Alves <palves@redhat.com>
7632
7633 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
7634
5d971d48
PA
76352020-06-18 Pedro Alves <palves@redhat.com>
7636
7637 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
7638 it, instead of writing to inferior_ptid.
7639
86e57d1b
PA
76402020-06-18 Pedro Alves <palves@redhat.com>
7641
7642 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
7643 to inferior_ptid.
7644
f2e1c129
PA
76452020-06-18 Pedro Alves <palves@redhat.com>
7646
7647 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
7648 instead of writing to inferior_ptid directly.
7649
60db1b85
PA
76502020-06-18 Pedro Alves <palves@redhat.com>
7651
7652 * corelow.c (core_target::close): Use switch_to_no_thread instead
7653 of writing to inferior_ptid directly.
7654 (add_to_thread_list, core_target_open): Use switch_to_thread
7655 instead of writing to inferior_ptid directly.
7656
fe7d6a8d
PA
76572020-06-18 Pedro Alves <palves@redhat.com>
7658
7659 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
7660 inferior_ptid.
7661 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
7662 inferior_ptid.
7663 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
7664 inferior_ptid directly.
7665 (darwin_nat_target::init_thread_list): Switch to thread, instead
7666 of writing to inferior_ptid.
7667 (darwin_nat_target::attach): Don't write to inferior_ptid.
7668 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
7669
975f8708
PA
76702020-06-18 Pedro Alves <palves@redhat.com>
7671
7672 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
7673 thread.
7674 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
7675 Instead use switch_to_thread.
7676 (gnu_nat_target::detach): Use switch_to_no_thread
7677 instead of writing to inferior_ptid directly. Used passed-in
7678 inferior instead of looking up the inferior by pid.
7679
1a204730
PA
76802020-06-18 Pedro Alves <palves@redhat.com>
7681
7682 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
7683 inferior_ptid.
7684
ebe84f23
PA
76852020-06-18 Pedro Alves <palves@redhat.com>
7686
7687 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
7688 inferior_ptid.
7689 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
7690 thread.
7691 (nto_procfs_target::detach): Avoid referencing
7692 inferior_ptid. Use switch_to_no_thread instead of writing to
7693 inferior_ptid directly.
7694 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
7695 instead of writing to inferior_ptid directly.
7696 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
7697 to thread.
7698
191f02e5
PA
76992020-06-18 Pedro Alves <palves@redhat.com>
7700
7701 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
7702 after creating it, instead of writing to inferior_ptid.
7703 (gdbsim_target_open): Use switch_to_no_thread instead of writing
7704 to inferior_ptid directly.
7705 (gdbsim_target::wait): Don't write to inferior_ptid.
7706
0ac55310
PA
77072020-06-18 Pedro Alves <palves@redhat.com>
7708
7709 * remote.c (remote_target::remote_notice_new_inferior): Use
7710 switch_to_thread instead of writing to inferior_ptid directly.
7711 (remote_target::add_current_inferior_and_thread): Use
7712 switch_to_no_thread instead of writing to inferior_ptid directly.
7713 (extended_remote_target::attach): Use switch_to_inferior_no_thread
7714 and switch_to_thread instead of using set_current_inferior or
7715 writing to inferior_ptid directly.
7716
5233f39b
PA
77172020-06-18 Pedro Alves <palves@redhat.com>
7718
7719 * tracectf.c (ctf_target_open): Switch to added thread instead of
7720 writing to inferior_ptid directly.
7721 (ctf_target::close): Use switch_to_no_thread instead of writing to
7722 inferior_ptid directly.
7723
087e161b
PA
77242020-06-18 Pedro Alves <palves@redhat.com>
7725
7726 * tracefile-tfile.c (tfile_target_open): Don't write to
7727 inferior_ptid directly, instead switch to added thread.
7728 (tfile_target::close): Use switch_to_no_thread instead of writing
7729 to inferior_ptid directly.
7730
7fb43e53
PA
77312020-06-18 Pedro Alves <palves@redhat.com>
7732
7733 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
7734 (procfs_target::detach): Use switch_to_no_thread
7735 instead of writing to inferior_ptid directly.
7736 (do_attach): Change return type to void. Switch to the added
7737 thread.
7738 (procfs_target::create_inferior): Switch to the added thread.
7739 (procfs_do_thread_registers): Don't write to inferior_ptid.
7740
18493a00
PA
77412020-06-18 Pedro Alves <palves@redhat.com>
7742
7743 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
7744 of writing to inferior_ptid.
7745 (scoped_restore_exited_inferior): Delete.
7746 (handle_vfork_child_exec_or_exit): Simplify using
7747 scoped_restore_current_pspace_and_thread. Use switch_to_thread
7748 instead of writing to inferior_ptid.
7749 (THREAD_STOPPED_BY): Delete.
7750 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
7751 (thread_stopped_by_hw_breakpoint): Delete.
7752 (save_waitstatus): Use
7753 scoped_restore_current_thread+switch_to_thread, and call
7754 target_stopped_by_watchpoint instead of
7755 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
7756 instead of thread_stopped_by_sw_breakpoint, and
7757 target_stopped_by_hw_breakpoint instead of
7758 thread_stopped_by_hw_breakpoint.
7759 (handle_inferior_event)
7760 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
7761 inferior_ptid directly, nor
7762 set_current_inferior/set_current_program_space. Use
7763 switch_to_thread / switch_to_inferior_no_thread instead.
7764
a0776b13
PA
77652020-06-18 Pedro Alves <palves@redhat.com>
7766
7767 * target.c (generic_mourn_inferior): Use switch_to_no_thread
7768 instead of writing to inferior_ptid.
7769
6155c136
PA
77702020-06-18 Pedro Alves <palves@redhat.com>
7771
7772 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
7773 added thread.
7774 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
7775 to the added thread.
7776 (inf_ptrace_target::detach_success): Use switch_to_no_thread
7777 instead of writing to inferior_ptid.
7778
c5316fc6
PA
77792020-06-18 Pedro Alves <palves@redhat.com>
7780
7781 * gdbarch-selftests.c: Include "progspace-and-thread.h".
7782 (register_to_value_test): Mock a program_space too. Heap-allocate
7783 the address space. Don't write to inferior_ptid. Use
7784 switch_to_thread instead.
7785
8df01799
PA
77862020-06-18 Pedro Alves <palves@redhat.com>
7787
7788 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
7789 Delete.
7790 (find_signalled_thread()): New, factored out from
7791 linux_make_corefile_notes and adjusted to handle exited threads.
7792 (linux_make_corefile_notes): Adjust to use the new
7793 find_signalled_thread.
7794
41792d68
PA
77952020-06-18 Pedro Alves <palves@redhat.com>
7796
7797 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
7798 of saving/restoring inferior_ptid.
7799
612f258a
TT
78002020-06-17 Tom Tromey <tom@tromey.com>
7801
7802 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
7803 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
7804 declare.
7805 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
7806
efb763a5
SM
78072020-06-15 Simon Marchi <simon.marchi@efficios.com>
7808
7809 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
7810 of partial symtabs.
7811
2951f6c0
SM
78122020-06-17 Simon Marchi <simon.marchi@efficios.com>
7813
7814 * regformats/reg-arm.dat: Remove.
7815 * regformats/reg-bfin.dat: Remove.
7816 * regformats/reg-cris.dat: Remove.
7817 * regformats/reg-crisv32.dat: Remove.
7818 * regformats/reg-m32r.dat: Remove.
7819 * regformats/reg-tilegx.dat: Remove.
7820 * regformats/reg-tilegx32.dat: Remove.
7821
7d458ea5
SM
78222020-06-17 Simon Marchi <simon.marchi@efficios.com>
7823
7824 * features/Makefile (WHICH): Remove arm files.
7825 * regformats/arm/arm-with-iwmmxt.dat: Remove.
7826 * regformats/arm/arm-with-neon.dat: Remove.
7827 * regformats/arm/arm-with-vfpv2.dat: Remove.
7828 * regformats/arm/arm-with-vfpv3.dat: Remove.
7829
3af96c0d
SM
78302020-06-17 Simon Marchi <simon.marchi@efficios.com>
7831
7832 * features/Makefile (XMLTOC): Remove rx.xml.
7833
b25e22fd
PA
78342020-06-17 Pedro Alves <palves@redhat.com>
7835
7836 * gdbthread.h (thread_control_state) <trap_expected> Update
7837 comments.
7838
a78a19b1
AB
78392020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7840
7841 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
7842 ada_language::lookup_symbol_nonlocal.
7843 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
7844 (ada_language::lookup_symbol_nonlocal): New member function,
7845 implementation from ada_lookup_symbol_nonlocal.
7846 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
7847 initializer.
7848 (cplus_language_data): Delete la_lookup_symbol_nonlocal
7849 initializer.
7850 (cplus_language::lookup_symbol_nonlocal): New member function.
7851 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
7852 (minimal_language_data) Likewise.
7853 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
7854 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
7855 initializer.
7856 (d_language::lookup_symbol_nonlocal): New member function.
7857 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
7858 initializer.
7859 (f_language::lookup_symbol_nonlocal): New member function.
7860 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
7861 initializer.
7862 * language.c (unknown_language_data): Likewise.
7863 (auto_language_data): Likewise.
7864 * language.h (language_data): Delete la_lookup_symbol_nonlocal
7865 field.
7866 (language_defn::lookup_symbol_nonlocal): New member function.
7867 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
7868 initializer.
7869 * objc-lang.c (objc_language_data): Likewise.
7870 * opencl-lang.c (opencl_language_data): Likewise.
7871 * p-lang.c (pascal_language_data): Likewise.
7872 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
7873 rust_language::lookup_symbol_nonlocal.
7874 (rust_language_data): Delete la_lookup_symbol_nonlocal
7875 initializer.
7876 (rust_language::lookup_symbol_nonlocal): New member function,
7877 implementation from rust_lookup_symbol_nonlocal.
7878 * symtab.c (lookup_symbol_aux): Update call to
7879 lookup_symbol_nonlocal.
7880 (basic_lookup_symbol_nonlocal): Rename to...
7881 (language_defn::lookup_symbol_nonlocal): ...this, and update
7882 header comment. Remove language_defn parameter, and replace with
7883 uses of `this'.
7884 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
7885
ebe2334e
AB
78862020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7887
7888 * ada-lang.c (ada_language_data): Delete la_value_print_inner
7889 initializer.
7890 (ada_language::value_print_inner): New member function.
7891 * c-lang.c (c_language_data): Delete la_value_print_inner
7892 initializer.
7893 (cplus_language_data): Likewise.
7894 (asm_language_data): Likewise.
7895 (minimal_language_data): Likewise.
7896 * d-lang.c (d_language_data): Likewise.
7897 (d_language::value_print_inner): New member function.
7898 * f-lang.c (f_language_data): Delete la_value_print_inner
7899 initializer.
7900 (f_language::value_print_inner): New member function.
7901 * f-lang.h (f_value_print_innner): Rename to...
7902 (f_value_print_inner): ...this (note spelling of 'inner').
7903 * f-valprint.c (f_value_print_innner): Rename to...
7904 (f_value_print_inner): ...this (note spelling of 'inner').
7905 * go-lang.c (go_language_data): Delete la_value_print_inner
7906 initializer.
7907 (go_language::value_print_inner): New member function.
7908 * language.c (language_defn::value_print_inner): Define new member
7909 function.
7910 (unk_lang_value_print_inner): Delete.
7911 (unknown_language_data): Delete la_value_print_inner initializer.
7912 (unknown_language::value_print_inner): New member function.
7913 (auto_language_data): Delete la_value_print_inner initializer.
7914 (auto_language::value_print_inner): New member function.
7915 * language.h (language_data): Delete la_value_print_inner field.
7916 (language_defn::value_print_inner): Delcare new member function.
7917 * m2-lang.c (m2_language_data): Delete la_value_print_inner
7918 initializer.
7919 (m2_language::value_print_inner): New member function.
7920 * objc-lang.c (objc_language_data): Delete la_value_print_inner
7921 initializer.
7922 * opencl-lang.c (opencl_language_data): Likewise.
7923 * p-lang.c (pascal_language_data): Likewise.
7924 (pascal_language::value_print_inner): New member function.
7925 * rust-lang.c (rust_language_data): Delete la_value_print_inner
7926 initializer.
7927 (rust_language::value_print_inner): New member function.
7928 * valprint.c (do_val_print): Update call to value_print_inner.
7929
a1d1fa3e
AB
79302020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7931
7932 * ada-lang.c (ada_language_data): Delete la_value_print
7933 initializer.
7934 (ada_language::value_print): New member function.
7935 * c-lang.c (c_language_data): Delete la_value_print initializer.
7936 (cplus_language_data): Likewise.
7937 (asm_language_data): Likewise.
7938 (minimal_language_data): Likewise.
7939 * d-lang.c (d_language_data): Likewise.
7940 * f-lang.c (f_language_data): Likewise.
7941 * go-lang.c (go_language_data): Likewise.
7942 * language.c (unk_lang_value_print): Delete.
7943 (language_defn::value_print): Define new member function.
7944 (unknown_language_data): Delete la_value_print initializer.
7945 (unknown_language::value_print): New member function.
7946 (auto_language_data): Delete la_value_print initializer.
7947 (auto_language::value_print): New member function.
7948 * language.h (language_data): Delete la_value_print field.
7949 (language_defn::value_print): Declare new member function.
7950 (LA_VALUE_PRINT): Update call to value_print.
7951 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
7952 * objc-lang.c (objc_language_data): Likewise.
7953 * opencl-lang.c (opencl_language_data): Likewise.
7954 * p-lang.c (pascal_language_data): Likewise.
7955 (pascal_language::value_print): New member function.
7956 * rust-lang.c (rust_language_data): Delete la_value_print
7957 initializer.
7958
f16a9f57
AB
79592020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7960
7961 * ada-lang.c (ada_watch_location_expression): Rename to
7962 ada_language::watch_location_expression.
7963 (ada_language_data): Delete la_watch_location_expression
7964 initializer.
7965 (ada_language::watch_location_expression): New member function,
7966 implementation from ada_watch_location_expression.
7967 * breakpoint.c (watch_command_1): Update call to
7968 watch_location_expression.
7969 * c-lang.c (c_watch_location_expression): Rename to
7970 language_defn::watch_location_expression.
7971 (c_language_data): Delete la_watch_location_expression
7972 initializer.
7973 (cplus_language_data): Likewise.
7974 (asm_language_data): Likewise.
7975 (minimal_language_data): Likewise.
7976 * c-lang.h (c_watch_location_expression): Delete declaration.
7977 * d-lang.c (d_language_data): Delete la_watch_location_expression
7978 initializer.
7979 * f-lang.c (f_language_data): Likewise.
7980 * go-lang.c (go_language_data): Likewise.
7981 * language.c (language_defn::watch_location_expression): Member
7982 function implementation from c_watch_location_expression.
7983 (unknown_language_data): Delete la_watch_location_expression
7984 initializer.
7985 (auto_language_data): Likewise.
7986 * language.h (language_data): Delete la_watch_location_expression
7987 field.
7988 (language_defn::watch_location_expression): Declare new member
7989 function.
7990 * m2-lang.c (m2_language_data): Delete
7991 la_watch_location_expression initializer.
7992 * objc-lang.c (objc_language_data): Likewise.
7993 * opencl-lang.c (opencl_language_data): Likewise.
7994 * p-lang.c (pascal_language_data): Likewise.
7995 * rust-lang.c (rust_watch_location_expression): Rename to
7996 rust_language::watch_location_expression.
7997 (rust_language_data): Delete la_watch_location_expression
7998 initializer.
7999 (rust_language::watch_location_expression): New member function,
8000 implementation from rust_watch_location_expression.
8001
7e56227d
AB
80022020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8003
8004 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
8005 ada_language::collect_symbol_completion_matches.
8006 (ada_language_data): Delete la_collect_symbol_completion_matches
8007 initializer.
8008 (ada_language::collect_symbol_completion_matches): New member
8009 function, implementation from
8010 ada_collect_symbol_completion_matches.
8011 * c-lang.c (c_language_data): Delete
8012 la_collect_symbol_completion_matches initializer.
8013 (cplus_language_data): Likewise.
8014 (asm_language_data): Likewise.
8015 (minimal_language_data): Likewise.
8016 * d-lang.c (d_language_data): Likewise.
8017 * f-lang.c (f_collect_symbol_completion_matches): Rename to
8018 f_language::collect_symbol_completion_matches.
8019 (f_language_data): Delete la_collect_symbol_completion_matches
8020 initializer.
8021 (f_language::collect_symbol_completion_matches) New member
8022 function, implementation from f_collect_symbol_completion_matches.
8023 * go-lang.c (go_language_data): Delete
8024 la_collect_symbol_completion_matches initializer.
8025 * language.c (unknown_language_data): Likewise.
8026 (auto_language_data): Likewise.
8027 * language.h (language_data): Delete
8028 la_collect_symbol_completion_matches field.
8029 (language_defn::collect_symbol_completion_matches): New member
8030 function.
8031 * m2-lang.c (m2_language_data): Delete
8032 la_collect_symbol_completion_matches initializer.
8033 * objc-lang.c (objc_language_data): Likewise.
8034 * opencl-lang.c (opencl_language_data): Likewise.
8035 * p-lang.c (pascal_language_data): Likewise.
8036 * rust-lang.c (rust_language_data): Likewise.
8037 * symtab.c (default_collect_symbol_completion_matches): Delete.
8038 (collect_symbol_completion_matches): Update call to
8039 collect_symbol_completion_matches.
8040 (collect_symbol_completion_matches_type): Likewise.
8041 * symtab.h (default_collect_symbol_completion_matches): Delete
8042 declaration.
8043
53fc67f8
AB
80442020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8045
8046 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
8047 (ada_language_data): Delete la_word_break_characters initializer.
8048 (ada_language::word_break_characters): New member function.
8049 * c-lang.c (c_language_data): Delete la_word_break_characters
8050 initializer.
8051 (cplus_language_data): Likewise.
8052 (asm_language_data): Likewise.
8053 (minimal_language_data): Likewise.
8054 * completer.c: Update global comment.
8055 (advance_to_expression_complete_word_point): Update call to
8056 word_break_characters.
8057 (complete_files_symbols): Likewise.
8058 (complete_line_internal_1): Likewise.
8059 (default_completer_handle_brkchars): Likewise.
8060 (skip_quoted_chars): Likewise.
8061 * d-lang.c (d_language_data): Delete la_word_break_characters
8062 initializer.
8063 * f-lang.c (f_word_break_characters): Delete.
8064 (f_language_data): Delete la_word_break_characters initializer.
8065 (f_language::word_break_characters): New member function.
8066 * go-lang.c (go_language_data): Delete la_word_break_characters
8067 initializer.
8068 * language.c (unknown_language_data): Likewise.
8069 (auto_language_data): Likewise.
8070 * language.h (default_word_break_characters): Move declaration to
8071 earlier in the file.
8072 (language_data): Delete la_word_break_characters field.
8073 (language_defn::word_break_characters): New member function.
8074 * m2-lang.c (m2_language_data): Delete la_word_break_characters
8075 initializer.
8076 * objc-lang.c (objc_language_data): Likewise.
8077 * opencl-lang.c (opencl_language_data): Likewise.
8078 * p-lang.c (pascal_language_data): Likewise.
8079 * rust-lang.c (rust_language_data): Likewise.
8080
c9debfb9
AB
80812020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8082
8083 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
8084 (ada_language_data): Delete la_get_symbol_name_matcher
8085 initializer.
8086 (language_defn::get_symbol_name_matcher_inner): New member
8087 function.
8088 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
8089 initializer.
8090 (cplus_language_data): Likewise.
8091 (cplus_language::get_symbol_name_matcher_inner): New member
8092 function.
8093 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
8094 (minimal_language_data): Likewise.
8095 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
8096 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
8097 initializer.
8098 * dictionary.c (iter_match_first_hashed): Update call to
8099 get_symbol_name_matcher.
8100 (iter_match_next_hashed): Likewise.
8101 (iter_match_next_linear): Likewise.
8102 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
8103 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
8104 initializer.
8105 (f_language::get_symbol_name_matcher_inner): New member function.
8106 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
8107 initializer.
8108 * language.c (default_symbol_name_matcher): Update header comment,
8109 make static.
8110 (language_defn::get_symbol_name_matcher): New definition.
8111 (language_defn::get_symbol_name_matcher_inner): Likewise.
8112 (get_symbol_name_matcher): Delete.
8113 (unknown_language_data): Delete la_get_symbol_name_matcher
8114 initializer.
8115 (auto_language_data): Likewise.
8116 * language.h (language_data): Delete la_get_symbol_name_matcher
8117 field.
8118 (language_defn::get_symbol_name_matcher): New member function.
8119 (language_defn::get_symbol_name_matcher_inner): Likewise.
8120 (default_symbol_name_matcher): Delete declaration.
8121 * linespec.c (find_methods): Update call to
8122 get_symbol_name_matcher.
8123 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
8124 initializer.
8125 * minsyms.c (lookup_minimal_symbol): Update call to
8126 get_symbol_name_matcher.
8127 (iterate_over_minimal_symbols): Likewise.
8128 * objc-lang.c (objc_language_data): Delete
8129 la_get_symbol_name_matcher initializer.
8130 * opencl-lang.c (opencl_language_data): Likewise.
8131 * p-lang.c (pascal_language_data): Likewise.
8132 * psymtab.c (psymbol_name_matches): Update call to
8133 get_symbol_name_matcher.
8134 * rust-lang.c (rust_language_data): Delete
8135 la_get_symbol_name_matcher initializer.
8136 * symtab.c (symbol_matches_search_name): Update call to
8137 get_symbol_name_matcher.
8138 (compare_symbol_name): Likewise.
8139
9a49ad8c
AB
81402020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8141
8142 * ada-lang.c (ada_language_data): Delete la_compute_program
8143 initializer.
8144 * c-lang.c (c_language_data): Likewise.
8145 (c_language::compute_program): New member function.
8146 (cplus_language_data): Delete la_compute_program initializer.
8147 (cplus_language::compute_program): New member function.
8148 (asm_language_data): Delete la_compute_program initializer.
8149 (minimal_language_data): Likewise.
8150 * c-lang.h (c_compute_program): Update comment.
8151 (cplus_compute_program): Likewise.
8152 * compile/compile-c-support.c (c_compute_program): Likewise.
8153 (cplus_compute_program): Likewise.
8154 * compile/compile.c (compile_to_object): Update call to
8155 la_compute_program.
8156 * d-lang.c (d_language_data): Delete la_compute_program
8157 initializer.
8158 * f-lang.c (f_language_data): Likewise.
8159 * go-lang.c (go_language_data): Likewise.
8160 * language.c (unknown_language_data): Likewise.
8161 (auto_language_data): Likewise.
8162 * language.h (language_data): Delete la_compute_program field.
8163 (language_defn::compute_program): New member function.
8164 * m2-lang.c (m2_language_data): Delete la_compute_program
8165 initializer.
8166 * objc-lang.c (objc_language_data): Likewise.
8167 * opencl-lang.c (opencl_language_data): Likewise.
8168 * p-lang.c (pascal_language_data): Likewise.
8169 * rust-lang.c (rust_language_data): Likewise.
8170
eff93b4d
AB
81712020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8172
8173 * ada-lang.c (ada_language_data) Delete
8174 la_class_name_from_physname initializer.
8175 * c-lang.c (c_language_data): Likewise.
8176 (cplus_language_data): Likewise.
8177 (cplus_language::class_name_from_physname): New member function.
8178 (asm_language_data): Delete la_class_name_from_physname
8179 initializer.
8180 (minimal_language_data): Likewise.
8181 * d-lang.c (d_language_data): Likewise.
8182 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
8183 method on language_defn class.
8184 (guess_full_die_structure_name): Likewise.
8185 * f-lang.c (f_language_data): Delete la_class_name_from_physname
8186 initializer.
8187 * go-lang.c (go_language_data): Likewise.
8188 * language.c (language_class_name_from_physname): Delete.
8189 (unk_lang_class_name): Delete.
8190 (unknown_language_data): Delete la_class_name_from_physname
8191 initializer.
8192 (auto_language_data): Likewise.
8193 * language.h (language_data): Delete la_class_name_from_physname
8194 field.
8195 (language_defn::class_name_from_physname): New function.
8196 (language_class_name_from_physname): Delete declaration.
8197 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
8198 initializer.
8199 * objc-lang.c (objc_language_data): Likewise.
8200 * opencl-lang.c (opencl_language_data): Likewise.
8201 * p-lang.c (pascal_language_data): Likewise.
8202 * rust-lang.c (rust_language_data): Likewise.
8203
de543742
TT
82042020-06-16 Tom Tromey <tom@tromey.com>
8205
8206 * tui/tui-data.h (STATUS_NAME): New macro.
8207 * tui/tui-layout.c (tui_remove_some_windows)
8208 (initialize_known_windows, tui_register_window)
8209 (tui_layout_split::remove_windows, initialize_layouts)
8210 (tui_new_layout_command): Don't use hard-coded window names.
8211
a350efd4
TT
82122020-06-16 Tom Tromey <tom@tromey.com>
8213
8214 PR tui/25348:
8215 * tui/tui.c (tui_ensure_readline_initialized): Rename from
8216 tui_initialize_readline. Only run once. Call rl_initialize.
8217 * tui/tui.h (tui_ensure_readline_initialized): Rename from
8218 tui_initialize_readline.
8219 * tui/tui-io.c (tui_setup_io): Call
8220 tui_ensure_readline_initialized.
8221 * tui/tui-interp.c (tui_interp::init): Update.
8222
39ec0490
TT
82232020-06-16 Tom Tromey <tom@tromey.com>
8224
8225 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
8226 Also preserve the status window.
8227
d2d1ea20
TT
82282020-06-16 Tom Tromey <tom@tromey.com>
8229
8230 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
8231 where m_window==nullptr.
8232
66920317
TT
82332020-06-15 Tom Tromey <tromey@adacore.com>
8234
8235 * windows-nat.c (windows_nat::handle_output_debug_string):
8236 Update.
8237 (windows_nat::handle_ms_vc_exception): Update.
8238 * target.h (target_read_string): Change API.
8239 * target.c (target_read_string): Change API.
8240 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
8241 Update.
8242 * solib-frv.c (frv_current_sos): Update.
8243 * solib-dsbt.c (dsbt_current_sos): Update.
8244 * solib-darwin.c (darwin_current_sos): Update.
8245 * linux-thread-db.c (inferior_has_bug): Update.
8246 * expprint.c (print_subexp_standard): Update.
8247 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
8248 (ada_exception_message_1): Update.
8249
a5d871dd
TT
82502020-06-15 Tom Tromey <tromey@adacore.com>
8251
8252 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
8253
670e35fa
TT
82542020-06-15 Tom Tromey <tromey@adacore.com>
8255
8256 * valprint.c (read_string): Update comment.
8257 * target.c (MIN): Remove.
8258 (target_read_string): Rewrite.
8259
f5272a3b
TT
82602020-06-15 Tom Tromey <tromey@adacore.com>
8261
8262 * corefile.c (read_memory_string): Remove.
8263 * ada-valprint.c (ada_value_print_ptr): Update.
8264 * ada-lang.h (ada_tag_name): Change return type.
8265 * ada-lang.c (type_from_tag): Update.
8266 (ada_tag_name_from_tsd): Change return type. Use
8267 target_read_string.
8268 (ada_tag_name): Likewise.
8269 * gdbcore.h (read_memory_string): Don't declare.
8270
2c074f49
HD
82712020-06-14 Hannes Domani <ssbssa@yahoo.de>
8272
8273 * symtab.c (rbreak_command): Ignore Windows drive colon.
8274
6a17d503
SM
82752020-06-12 Simon Marchi <simon.marchi@efficios.com>
8276
8277 * NEWS: Mention removed GDBserver host support.
8278
453c733f
NC
82792020-06-12 Nelson Chu <nelson.chu@sifive.com>
8280
8281 * features/riscv/rebuild-csr-xml.sh: Updated.
8282
2b4e6a3f
TT
82832020-06-11 Tom Tromey <tom@tromey.com>
8284
8285 PR gdb/18318:
8286 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
8287
4412332f
JG
82882020-06-09 Jonny Grant <jg@jguk.org>
82892020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
8290
8291 * main.c (captured_main_1): Don't print new line after help.
8292 (print_gdb_help): add mailing list and IRC channel information
8293 to --help. Add new lines between items in the footer. Remove
8294 quotes around bug url.
8295
2f33032a
KS
82962020-06-11 Keith Seitz <keiths@redhat.com>
8297
8298 PR gdb/21356
8299 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
8300 Resolve typedefs for type length calculations.
8301
7ab96794
TV
83022020-06-10 Tom de Vries <tdevries@suse.de>
8303
8304 PR ada/24713
8305 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
8306 (write_psymbols): Enable .gdb_index for ada.
8307 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
8308 ada.
8309
e5f3ece2
TV
83102020-06-10 Tom de Vries <tdevries@suse.de>
8311
8312 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
8313 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
8314 namei" instead of "const char *name" argument.
8315 (dw2_map_matching_symbols): Use "offset_type namei" variant of
8316 dw2_symtab_iter_init.
8317
940da03e
SM
83182020-06-08 Simon Marchi <simon.marchi@efficios.com>
8319
8320 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
8321 to use type::field and field::type instead.
8322
b6cdac4b
SM
83232020-06-08 Simon Marchi <simon.marchi@efficios.com>
8324
8325 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
8326 to use field::type instead.
8327
5d14b6e5
SM
83282020-06-08 Simon Marchi <simon.marchi@efficios.com>
8329
8330 * gdbtypes.h (struct field) <type, set_type>: New methods.
8331 Rename `type` field to...
8332 <m_type>: ... this. Change references throughout to use type or
8333 set_type methods.
8334 (FIELD_TYPE): Use field::type. Change call sites that modify
8335 the field's type to use field::set_type instead.
8336
3d967001
SM
83372020-06-08 Simon Marchi <simon.marchi@efficios.com>
8338
8339 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
8340 to use type::index_type instead.
8341
262abc0d
SM
83422020-06-08 Simon Marchi <simon.marchi@efficios.com>
8343
8344 * gdbtypes.h (struct type) <index_type, set_index_type>: New
8345 methods.
8346 (TYPE_INDEX_TYPE): Use type::index_type.
8347 * gdbtypes.c (create_array_type_with_stride): Likewise.
8348
82836c92
TT
83492020-06-07 Tom Tromey <tom@tromey.com>
8350
8351 * valprint.c (generic_val_print_float): Remove "embedded_offset"
8352 parameter.
8353 (generic_value_print): Update.
8354
940dace9
AB
83552020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8356
8357 Revert commit 982a38f60b0.
8358 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
8359
982a38f6
AB
83602020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8361
8362 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
8363 avoid use after free.
8364
82f06518
TV
83652020-06-05 Tom de Vries <tdevries@suse.de>
8366
8367 * NEWS: Fix typos.
8368
f8c41851
SM
83692020-06-04 Simon Marchi <simon.marchi@efficios.com>
8370
8371 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
8372 the per_bfd object.
8373 (dwarf2_read_debug_names): Likewise.
8374 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
8375 object when re-using a per_bfd object with an index.
8376
f9b5d5ea
TV
83772020-06-03 Tom de Vries <tdevries@suse.de>
8378
8379 PR symtab/26046
8380 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
8381 children for C++.
8382 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
8383 DW_TAG_subprogram.
8384
f6eee2d0
AB
83852020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8386
8387 * ada-lang.c (ada_language_data): Delete skip_trampoline
8388 initializer.
8389 * c-lang.c (c_language_data): Likewise.
8390 (cplus_language_data): Likewise.
8391 (cplus_language::skip_trampoline): New member function.
8392 (asm_language_data): Delete skip_trampoline initializer.
8393 (minimal_language_data): Likewise.
8394 * d-lang.c (d_language_data): Likewise.
8395 * f-lang.c (f_language_data): Likewise.
8396 * go-lang.c (go_language_data): Likewise.
8397 * language.c (unk_lang_trampoline): Delete function.
8398 (skip_language_trampoline): Update.
8399 (unknown_language_data): Delete skip_trampoline initializer.
8400 (auto_language_data): Likewise.
8401 * language.h (language_data): Delete skip_trampoline field.
8402 (language_defn::skip_trampoline): New function.
8403 * m2-lang.c (m2_language_data): Delete skip_trampoline
8404 initializer.
8405 * objc-lang.c (objc_skip_trampoline): Delete function, move
8406 implementation to objc_language::skip_trampoline.
8407 (objc_language_data): Delete skip_trampoline initializer.
8408 (objc_language::skip_trampoline): New member function with
8409 implementation from objc_skip_trampoline.
8410 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
8411 initializer.
8412 * p-lang.c (pascal_language_data): Likewise.
8413 * rust-lang.c (rust_language_data): Likewise.
8414
0a50df5d
AB
84152020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8416
8417 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
8418 (ada_language::demangle): New member function.
8419 * c-lang.c (c_language_data): Delete la_demangle initializer.
8420 (cplus_language_data): Delete la_demangle initializer.
8421 (cplus_language::demangle): New member function.
8422 (asm_language_data): Delete la_demangle initializer.
8423 (minimal_language_data): Delete la_demangle initializer.
8424 * d-lang.c (d_language_data): Delete la_demangle initializer.
8425 (d_language::demangle): New member function.
8426 * f-lang.c (f_language_data): Delete la_demangle initializer.
8427 (f_language::demangle): New member function.
8428 * go-lang.c (go_language_data): Delete la_demangle initializer.
8429 (go_language::demangle): New member function.
8430 * language.c (language_demangle): Update.
8431 (unk_lang_demangle): Delete.
8432 (unknown_language_data): Delete la_demangle initializer.
8433 (unknown_language::demangle): New member function.
8434 (auto_language_data): Delete la_demangle initializer.
8435 (auto_language::demangle): New member function.
8436 * language.h (language_data): Delete la_demangle field.
8437 (language_defn::demangle): New function.
8438 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
8439 * objc-lang.c (objc_language_data): Delete la_demangle
8440 initializer.
8441 (objc_language::demangle): New member function.
8442 * opencl-lang.c (opencl_language_data): Delete la_demangle
8443 initializer.
8444 * p-lang.c (pascal_language_data): Likewise.
8445 * rust-lang.c (rust_language_data): Likewise.
8446 (rust_language::demangle): New member function.
8447
fbfb0a46
AB
84482020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8449
8450 * ada-lang.c (ada_language_data): Delete la_print_type
8451 initializer.
8452 (ada_language::print_type): New member function.
8453 * c-lang.c (c_language_data): Delete la_print_type initializer.
8454 (c_language::print_type): New member function.
8455 (cplus_language_data): Delete la_print_type initializer.
8456 (cplus_language::print_type): New member function.
8457 (asm_language_data): Delete la_print_type initializer.
8458 (asm_language::print_type): New member function.
8459 (minimal_language_data): Delete la_print_type initializer.
8460 (minimal_language::print_type): New member function.
8461 * d-lang.c (d_language_data): Delete la_print_type initializer.
8462 (d_language::print_type): New member function.
8463 * f-lang.c (f_language_data): Delete la_print_type initializer.
8464 (f_language::print_type): New member function.
8465 * go-lang.c (go_language_data): Delete la_print_type initializer.
8466 (go_language::print_type): New member function.
8467 * language.c (unk_lang_print_type): Delete.
8468 (unknown_language_data): Delete la_print_type initializer.
8469 (unknown_language::print_type): New member function.
8470 (auto_language_data): Delete la_print_type initializer.
8471 (auto_language::print_type): New member function.
8472 * language.h (language_data): Delete la_print_type field.
8473 (language_defn::print_type): New function.
8474 (LA_PRINT_TYPE): Update.
8475 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
8476 (m2_language::print_type): New member function.
8477 * objc-lang.c (objc_language_data): Delete la_print_type
8478 initializer.
8479 (objc_language::print_type): New member function.
8480 * opencl-lang.c (opencl_print_type): Delete, implementation moved
8481 to opencl_language::print_type.
8482 (opencl_language_data): Delete la_print_type initializer.
8483 (opencl_language::print_type): New member function, implementation
8484 from opencl_print_type.
8485 * p-lang.c (pascal_language_data): Delete la_print_type
8486 initializer.
8487 (pascal_language::print_type): New member function.
8488 * rust-lang.c (rust_print_type): Delete, implementation moved to
8489 rust_language::print_type.
8490 (rust_language_data): Delete la_print_type initializer.
8491 (rust_language::print_type): New member function, implementation
8492 from rust_print_type.
8493
6f827019
AB
84942020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8495
8496 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
8497 implementation moves to...
8498 (ada_language::sniff_from_mangled_name): ...here. Update return
8499 type.
8500 (ada_language_data): Delete la_sniff_from_mangled_name
8501 initializer.
8502 * c-lang.c (c_language_data): Likewise.
8503 (cplus_language_data): Likewise.
8504 (cplus_language::sniff_from_mangled_name): New member function,
8505 implementation taken from gdb_sniff_from_mangled_name.
8506 (asm_language_data): Delete la_sniff_from_mangled_name
8507 initializer.
8508 (minimal_language_data): Likewise.
8509 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
8510 implementation moves to cplus_language::sniff_from_mangled_name.
8511 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
8512 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
8513 moves to...
8514 (d_language::sniff_from_mangled_name): ...here.
8515 (d_language_data): Delete la_sniff_from_mangled_name initializer.
8516 * f-lang.c (f_language_data): Likewise.
8517 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
8518 moves to...
8519 (go_language::sniff_from_mangled_name): ...here.
8520 (go_language_data): Delete la_sniff_from_mangled_name initializer.
8521 * language.c (language_sniff_from_mangled_name): Delete.
8522 (unknown_language_data): Delete la_sniff_from_mangled_name
8523 initializer.
8524 (auto_language_data): Likewise.
8525 * language.h (language_data): Delete la_sniff_from_mangled_name
8526 field.
8527 (language_defn::sniff_from_mangled_name): New function.
8528 (language_sniff_from_mangled_name): Delete declaration.
8529 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
8530 field.
8531 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
8532 implementation moves to...
8533 (objc_language::sniff_from_mangled_name): ...here.
8534 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
8535 * opencl-lang.c (opencl_language_data): Likewise.
8536 * p-lang.c (pascal_language_data): Likewise.
8537 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
8538 implementation moves to...
8539 (rust_language::sniff_from_mangled_name): ...here.
8540 (rust_language_data): Delete la_sniff_from_mangled_name
8541 initializer.
8542 * symtab.c (symbol_find_demangled_name): Call
8543 sniff_from_mangled_name member function.
8544
fb8006fd
AB
85452020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8546
8547 * ada-lang.c (ada_language_data): Delete la_search_name_hash
8548 initializer.
8549 * c-lang.c (c_language_data): Likewise.
8550 (cplus_language_data): Likewise.
8551 (cplus_language::search_name_hash): New member function.
8552 (asm_language_data): Delete la_search_name_hash initializer.
8553 (minimal_language_data): Likewise.
8554 * d-lang.c (d_language_data): Likewise.
8555 * dictionary.c (default_search_name_hash): Rename to...
8556 (language_defn::search_name_hash): ...this.
8557 * f-lang.c (f_language_data): Likewise.
8558 (f_language::search_name_hash): New member function.
8559 * go-lang.c (go_language_data): Delete la_search_name_hash
8560 initializer.
8561 * language.c (unknown_language_data): Likewise.
8562 (auto_language_data): Likewise.
8563 * language.h (struct language_data): Delete la_search_name_hash
8564 field.
8565 (language_defn::search_name_hash): Declare new member function.
8566 (default_search_name_hash): Delete declaration.
8567 * m2-lang.c (m2_language_data): Delete la_search_name_hash
8568 initializer.
8569 * objc-lang.c (objc_language_data): Likewise.
8570 * opencl-lang.c (opencl_language_data): Likewise.
8571 * p-lang.c (pascal_language_data): Likewise.
8572 * rust-lang.c (rust_language_data): Likewise.
8573 * symtab.c (search_name_hash): Update call.
8574
8e25bafe
AB
85752020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8576
8577 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
8578 initializer.
8579 * c-lang.c (class compile_instance): Declare.
8580 (c_language_data): Delete la_get_compile_instance initializer.
8581 (c_language::get_compile_instance): New member function.
8582 (cplus_language_data): Delete la_get_compile_instance initializer.
8583 (cplus_language::get_compile_instance): New member function.
8584 (asm_language_data): Delete la_get_compile_instance initializer.
8585 (minimal_language_data): Likewise.
8586 * c-lang.h (c_get_compile_context): Update comment.
8587 (cplus_get_compile_context): Update comment.
8588 * compile/compile.c (compile_to_object): Update calls, don't rely
8589 on function pointer being NULL.
8590 * d-lang.c (d_language_data): Delete la_get_compile_instance
8591 initializer.
8592 * f-lang.c (f_language_data): Likewise.
8593 * go-lang.c (go_language_data): Likewise.
8594 * language.c (unknown_language_data): Likewise.
8595 (auto_language_data): Likewise.
8596 * language.h (language_data): Delete la_get_compile_instance field.
8597 (language_defn::get_compile_instance): New member function.
8598 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
8599 initializer.
8600 * objc-lang.c (objc_language_data): Likewise.
8601 * opencl-lang.c (opencl_language_data): Likewise.
8602 * p-lang.c (pascal_language_data): Likewise.
8603 * rust-lang.c (rust_language_data): Likewise.
8604
4009ee92
AB
86052020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8606
8607 * ada-lang.c (ada_add_all_symbols): Update comment.
8608 (ada_iterate_over_symbols): Delete, move implementation to...
8609 (ada_language::iterate_over_symbols): ...here, a new member
8610 function, rewrite to use range based for loop.
8611 (ada_language_data): Delete la_iterate_over_symbols initializer.
8612 * c-lang.c (c_language_data): Likewise.
8613 (cplus_language_data): Likewise.
8614 (asm_language_data): Likewise.
8615 (minimal_language_data): Likewise.
8616 * d-lang.c (d_language_data): Likewise.
8617 * f-lang.c (f_language_data): Likewise.
8618 * go-lang.c (go_language_data): Likewise.
8619 * language.c (unknown_language_data): Likewise.
8620 (auto_language_data): Likewise.
8621 * language.h (language_data): Delete la_iterate_over_symbols field.
8622 (language_defn::iterate_over_symbols): New member function.
8623 (LA_ITERATE_OVER_SYMBOLS): Update.
8624 * linespec.c (iterate_over_all_matching_symtabs): Update.
8625 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
8626 initializer.
8627 * objc-lang.c (objc_language_data): Likewise.
8628 * opencl-lang.c (opencl_language_data): Likewise.
8629 * p-lang.c (pascal_language_data): Likewise.
8630 * rust-lang.c (rust_language_data): Likewise.
8631
54f4ca46
AB
86322020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8633
8634 * ada-lang.c (ada_language_data): Delete
8635 la_lookup_transparent_type initializer.
8636 * c-lang.c (c_language_data): Likewise.
8637 (cplus_language_data): Likewise.
8638 (cplus_language::lookup_transparent_type): New member function.
8639 (asm_language_data): Delete la_lookup_transparent_type
8640 initializer.
8641 (minimal_language_data): Likewise.
8642 * d-lang.c (d_language_data): Likewise.
8643 * f-lang.c (f_language_data): Likewise.
8644 * go-lang.c (go_language_data): Likewise.
8645 * language.c (unknown_language_data): Likewise.
8646 (auto_language_data): Likewise.
8647 * language.h (struct language_data): Delete
8648 la_lookup_transparent_type field.
8649 (language_defn::lookup_transparent_type): New member function.
8650 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
8651 initializer.
8652 * objc-lang.c (objc_language_data): Likewise.
8653 * opencl-lang.c (opencl_language_data): Likewise.
8654 * p-lang.c (pascal_language_data): Likewise.
8655 * rust-lang.c (rust_language_data): Likewise.
8656 * symtab.c (symbol_matches_domain): Update call.
8657
1fb314aa
AB
86582020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8659
8660 * ada-lang.c (ada_language_arch_info): Delete function, move
8661 implementation to...
8662 (ada_language::language_arch_info): ...here, a new member
8663 function.
8664 (ada_language_data): Delete la_language_arch_info.
8665 * c-lang.c (c_language_data): Likewise.
8666 (c_language::language_arch_info): New member function.
8667 (cplus_language_arch_info): Delete function, move
8668 implementation to...
8669 (cplus_language::language_arch_info): ...here, a new member
8670 function.
8671 (cplus_language_data): Delete la_language_arch_info.
8672 (asm_language_data): Likewise.
8673 (asm_language::language_arch_info): New member function.
8674 (minimal_language_data): Delete la_language_arch_info.
8675 (minimal_language::language_arch_info): New member function.
8676 * d-lang.c (d_language_arch_info): Delete function, move
8677 implementation to...
8678 (d_language::language_arch_info): ...here, a new member
8679 function.
8680 (d_language_data): Delete la_language_arch_info.
8681 * f-lang.c (f_language_arch_info): Delete function, move
8682 implementation to...
8683 (f_language::language_arch_info): ...here, a new member
8684 function.
8685 (f_language_data): Delete la_language_arch_info.
8686 * go-lang.c (go_language_arch_info): Delete function, move
8687 implementation to...
8688 (go_language::language_arch_info): ...here, a new member
8689 function.
8690 (go_language_data): Delete la_language_arch_info.
8691 * language.c (unknown_language_data): Likewise.
8692 (unknown_language::language_arch_info): New member function.
8693 (auto_language_data): Delete la_language_arch_info.
8694 (auto_language::language_arch_info): New member function.
8695 (language_gdbarch_post_init): Update call to
8696 la_language_arch_info.
8697 * language.h (language_data): Delete la_language_arch_info
8698 function pointer.
8699 (language_defn::language_arch_info): New function.
8700 * m2-lang.c (m2_language_arch_info): Delete function, move
8701 implementation to...
8702 (m2_language::language_arch_info): ...here, a new member
8703 function.
8704 (m2_language_data): Delete la_language_arch_info.
8705 * objc-lang.c (objc_language_arch_info): Delete function, move
8706 implementation to...
8707 (objc_language::language_arch_info): ...here, a new member
8708 function.
8709 (objc_language_data): Delete la_language_arch_info.
8710 * opencl-lang.c (opencl_language_arch_info): Delete function, move
8711 implementation to...
8712 (opencl_language::language_arch_info): ...here, a new member
8713 function.
8714 (opencl_language_data): Delete la_language_arch_info.
8715 * p-lang.c (pascal_language_arch_info): Delete function, move
8716 implementation to...
8717 (pascal_language::language_arch_info): ...here, a new member
8718 function.
8719 (pascal_language_data): Delete la_language_arch_info.
8720 * rust-lang.c (rust_language_arch_info): Delete function, move
8721 implementation to...
8722 (rust_language::language_arch_info): ...here, a new member
8723 function.
8724 (rust_language_data): Delete la_language_arch_info.
8725
48448202
AB
87262020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8727
8728 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
8729 initializer.
8730 * c-lang.c (c_language_data): Likewise.
8731 (cplus_language_data): Likewise.
8732 (cplus_language::pass_by_reference_info): New method.
8733 (asm_language_data): Delete la_pass_by_reference initializer.
8734 (minimal_language_data): Likewise.
8735 * cp-abi.c (cp_pass_by_reference): Remove use of
8736 default_pass_by_reference.
8737 * d-lang.c (d_language_data): Likewise.
8738 * f-lang.c (f_language_data): Likewise.
8739 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
8740 default_pass_by_reference.
8741 * go-lang.c (go_language_data): Likewise.
8742 * language.c (language_pass_by_reference): Update.
8743 (default_pass_by_reference): Delete.
8744 (unknown_language_data): Delete la_pass_by_reference
8745 initializer.
8746 (auto_language_data): Likewise.
8747 * language.h (struct language_data): Delete la_pass_by_reference
8748 field.
8749 (language_defn::pass_by_reference_info): New member function.
8750 (default_pass_by_reference): Delete declaration.
8751 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
8752 initializer.
8753 * objc-lang.c (objc_language_data): Likewise.
8754 * opencl-lang.c (opencl_language_data): Likewise.
8755 * p-lang.c (pascal_language_data): Likewise.
8756 * rust-lang.c (rust_language_data): Likewise.
8757
15e5fd35
AB
87582020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8759
8760 * ada-lang.c (ada_read_var_value): Delete function, move
8761 implementation to...
8762 (ada_language::read_var_value): ...here.
8763 (ada_language_data): Delete la_read_var_value initializer.
8764 * c-lang.c (c_language_data): Likewise.
8765 (cplus_language_data): Likewise.
8766 (minimal_language_data): Likewise.
8767 * d-lang.c (d_language_data): Likewise.
8768 * f-lang.c (f_language_data): Likewise.
8769 * findvar.c (default_read_var_value): Rename to...
8770 (language_defn::read_var_value): ...this.
8771 * findvar.c (read_var_value): Update header comment, and change to
8772 call member function instead of function pointer.
8773 * go-lang.c (go_language_data): Likewise.
8774 * language.c (unknown_language_data): Delete la_read_var_value
8775 initializer.
8776 (auto_language_data): Likewise.
8777 * language.h (struct language_data): Delete la_read_var_value
8778 field.
8779 (language_defn::read_var_value): New member function.
8780 (default_read_var_value): Delete declaration.
8781 * m2-lang.c (m2_language_data): Delete la_read_var_value
8782 initializer.
8783 * objc-lang.c (objc_language_data): Likewise.
8784 * opencl-lang.c (opencl_language_data): Likewise.
8785 * p-lang.c (pascal_language_data): Likewise.
8786 * rust-lang.c (rust_language_data): Likewise.
8787 * value.h (default_read_var_value): Delete declaration.
8788
5bd40f2a
AB
87892020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8790
8791 * ada-lang.c (ada_print_array_index): Delete function, move
8792 implementation to...
8793 (ada_language::print_array_index): ...here.
8794 (ada_language_data): Delete la_print_array_index initializer.
8795 * c-lang.c (c_language_data): Likewise.
8796 (cplus_language_data): Likewise.
8797 (minimal_language_data): Likewise.
8798 * d-lang.c (d_language_data): Likewise.
8799 * f-lang.c (f_language_data): Likewise.
8800 * go-lang.c (go_language_data): Likewise.
8801 * language.c (default_print_array_index): Delete function, move
8802 implementation to...
8803 (language_defn::print_array_index): ...here.
8804 (unknown_language_data): Delete la_print_array_index initializer.
8805 (auto_language_data): Likewise.
8806 * language.h (struct language_data): Delete la_print_array_index
8807 field.
8808 (language_defn::print_array_index): New member function.
8809 (LA_PRINT_ARRAY_INDEX): Update.
8810 (default_print_array_index): Delete declaration.
8811 * m2-lang.c (m2_language_data): Delete la_print_array_index
8812 initializer.
8813 * objc-lang.c (objc_language_data): Likewise.
8814 * opencl-lang.c (opencl_language_data): Likewise.
8815 * p-lang.c (pascal_language_data): Likewise.
8816 * rust-lang.c (rust_language_data): Likewise.
8817
0874fd07
AB
88182020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8819
8820 * gdb/ada-lang.c (ada_language_defn): Convert to...
8821 (ada_language_data): ...this.
8822 (class ada_language): New class.
8823 (ada_language_defn): New static global.
8824 * gdb/c-lang.c (c_language_defn): Convert to...
8825 (c_language_data): ...this.
8826 (class c_language): New class.
8827 (c_language_defn): New static global.
8828 (cplus_language_defn): Convert to...
8829 (cplus_language_data): ...this.
8830 (class cplus_language): New class.
8831 (cplus_language_defn): New static global.
8832 (asm_language_defn): Convert to...
8833 (asm_language_data): ...this.
8834 (class asm_language): New class.
8835 (asm_language_defn): New static global.
8836 (minimal_language_defn): Convert to...
8837 (minimal_language_data): ...this.
8838 (class minimal_language): New class.
8839 (minimal_language_defn): New static global.
8840 * gdb/d-lang.c (d_language_defn): Convert to...
8841 (d_language_data): ...this.
8842 (class d_language): New class.
8843 (d_language_defn): New static global.
8844 * gdb/f-lang.c (f_language_defn): Convert to...
8845 (f_language_data): ...this.
8846 (class f_language): New class.
8847 (f_language_defn): New static global.
8848 * gdb/go-lang.c (go_language_defn): Convert to...
8849 (go_language_data): ...this.
8850 (class go_language): New class.
8851 (go_language_defn): New static global.
8852 * gdb/language.c (unknown_language_defn): Remove declaration.
8853 (current_language): Initialize to nullptr, real initialization is
8854 moved to _initialize_language.
8855 (languages): Delete global.
8856 (language_defn::languages): Define.
8857 (set_language_command): Use language_defn::languages.
8858 (set_language): Likewise.
8859 (range_error): Likewise.
8860 (language_enum): Likewise.
8861 (language_def): Likewise.
8862 (add_set_language_command): Use language_def::languages for the
8863 language list, and language_def to lookup language pointers.
8864 (skip_language_trampoline): Use language_defn::languages.
8865 (unknown_language_defn): Convert to...
8866 (unknown_language_data): ...this.
8867 (class unknown_language): New class.
8868 (unknown_language_defn): New static global.
8869 (auto_language_defn): Convert to...
8870 (auto_language_data): ...this.
8871 (class auto_language): New class.
8872 (auto_language_defn): New static global.
8873 (language_gdbarch_post_init): Use language_defn::languages.
8874 (_initialize_language): Initialize current_language.
8875 * gdb/language.h (struct language_defn): Rename to...
8876 (struct language_data): ...this.
8877 (struct language_defn): New.
8878 (auto_language_defn): Delete.
8879 (unknown_language_defn): Delete.
8880 (minimal_language_defn): Delete.
8881 (ada_language_defn): Delete.
8882 (asm_language_defn): Delete.
8883 (c_language_defn): Delete.
8884 (cplus_language_defn): Delete.
8885 (d_language_defn): Delete.
8886 (f_language_defn): Delete.
8887 (go_language_defn): Delete.
8888 (m2_language_defn): Delete.
8889 (objc_language_defn): Delete.
8890 (opencl_language_defn): Delete.
8891 (pascal_language_defn): Delete.
8892 (rust_language_defn): Delete.
8893 * gdb/m2-lang.c (m2_language_defn): Convert to...
8894 (m2_language_data): ...this.
8895 (class m2_language): New class.
8896 (m2_language_defn): New static global.
8897 * gdb/objc-lang.c (objc_language_defn): Convert to...
8898 (objc_language_data): ...this.
8899 (class objc_language): New class.
8900 (objc_language_defn): New static global.
8901 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
8902 (opencl_language_data): ...this.
8903 (class opencl_language): New class.
8904 (opencl_language_defn): New static global.
8905 * gdb/p-lang.c (pascal_language_defn): Convert to...
8906 (pascal_language_data): ...this.
8907 (class pascal_language): New class.
8908 (pascal_language_defn): New static global.
8909 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
8910 language pointer, update comment format.
8911 * gdb/rust-lang.c (rust_language_defn): Convert to...
8912 (rust_language_data): ...this.
8913 (class rust_language): New class.
8914 (rust_language_defn): New static global.
8915
1313c56e
AB
89162020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
8917
8918 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
8919 member variable.
8920 <m_stmt_at_address>: New member variable.
8921 (lnp_state_machine::record_line): Don't record some lines, update
8922 tracking of is_stmt at the same address.
8923 (lnp_state_machine::lnp_state_machine): Initialise new member
8924 variables.
8925
b7ed9f3d
ST
89262020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
8927
8928 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
8929 "-include gnu-nat-mig.h".
8930 * gnu-nat-mig.h: New file.
8931 * gnu-nat.c: Include "gnu-nat-mig.h".
8932 (exc_server, msg_reply_server, notify_server,
8933 process_reply_server): Remove declarations.
8934
14a8ad62
ST
89352020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8936
8937 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
8938 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
8939 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
8940 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
8941 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
8942 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
8943 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
8944 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
8945 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
8946 to gnu_nat_target class.
8947 * gnu-nat.c: Likewise.
8948 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
8949 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
8950 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
8951 object.
8952 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
8953 instead of `gnu_target'.
8954
0af5e106
ST
89552020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8956
8957 * i386-gnu-tdep.c: Include "gdbcore.h"
8958 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
8959 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
8960 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
8961 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
8962 i386_gnu_sigcontext_addr): New functions
8963 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
8964 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
8965 tdep.
8966
078f2fc9
ST
89672020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8968
8969 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
8970 before fork_inferior call. Avoid calling it if target_is_pushed returns
8971 true.
8972
53dff92c
ST
89732020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8974
8975 * gnu-nat.h (gnu_target): New variable declaration.
8976 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
8977 gnu_target.
8978 * gnu-nat.c (gnu_target): New variable.
8979 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
8980 add_thread_silent, and add_thread calls.
8981 (gnu_nat_target::create_inferior): Pass gnu_target to
8982 add_thread_silent, thread_change_ptid call.
8983 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
8984 call.
8985
5a8b8627
ST
89862020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8987
8988 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
8989 (gnu_nat_target::find_memory_regions): Remove unused
8990 `old_address' variable.
8991
366f550a
ST
89922020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8993
8994 * gnu-nat.c: Include "gdbarch.h".
8995
f14871bf
ST
89962020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8997
8998 * reply_mig_hack.awk (Error return): Cast function through
8999 void *, to bypass compiler function call check.
9000
c6887cfb
ST
90012020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9002
9003 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
9004 $(srcdir)/reply_mig_hack.awk.
9005
6930bffe
ST
90062020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9007
9008 * gnu-nat.h (gnu_debug_flag): Set type to bool.
9009
112c22ed
JG
90102020-05-30 Jonny Grant <jg@jguk.org>
9011
9012 * configure.ac (ACX_BUGURL): change bug URL to https.
9013
f68f85b5
PA
90142020-05-30 Pedro Alves <palves@redhat.com>
9015
9016 * cp-support.c (replace_typedefs_template): New.
9017 (replace_typedefs_qualified_name): Handle
9018 DEMANGLE_COMPONENT_TEMPLATE.
9019
976ca316
SM
90202020-05-29 Simon Marchi <simon.marchi@efficios.com>
9021
9022 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
9023 dwarf2/index-cache.h, dwarf2/index-write.c,
9024 dwarf2/index-write.h, dwarf2/line-header.c,
9025 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
9026 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
9027 variables and fields from `dwarf2_per_objfile` to just
9028 `per_objfile` throughout.
9029
989ade05
SM
90302020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
9031
9032 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9033 <push_dwarf_reg_entry_value>: Add comment.
9034
c47bae85
KB
90352020-05-28 Kevin Buettner <kevinb@redhat.com>
9036 Keith Seitz <keiths@redhat.com>
9037
9038 * python/python.c (do_start_initialization): Call PyEval_SaveThread
9039 instead of PyEval_ReleaseLock.
9040 (class gdbpy_gil): Move to earlier in file.
9041 (finalize_python): Set gdb_python_initialized.
9042 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
9043 when not initialized.
9044
44486dcf
SM
90452020-05-28 Simon Marchi <simon.marchi@efficios.com>
9046
9047 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9048 <push_dwarf_reg_entry_value>: Remove assert. Override
9049 per_objfile with caller_per_objfile.
9050
f030440d
TV
90512020-05-28 Tom de Vries <tdevries@suse.de>
9052
9053 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
9054 PR gold/15646 workaround to symbol kind "type".
9055
f0fbb768
TT
90562020-05-27 Tom Tromey <tromey@adacore.com>
9057
9058 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
9059
af0b2a3e
TT
90602020-05-27 Tom Tromey <tromey@adacore.com>
9061
9062 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
9063 Use htab_find_with_hash.
9064 <add_abbrev>: Remove "abbrev_number" parameter.
9065 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
9066 "abbrev_number" parameter. Use htab_find_slot_with_hash.
9067 (hash_abbrev): Add comment.
9068 (abbrev_table::lookup_abbrev): Move to header file.
9069 (abbrev_table::read): Update.
9070
7d00ffec
TT
90712020-05-27 Tom Tromey <tromey@adacore.com>
9072
9073 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
9074 method.
9075 <canonical_name>: New member.
9076 <raw_name>: Rename from "name".
9077 (partial_die_info): Initialize canonical_name.
9078 (scan_partial_symbols): Check raw_name.
9079 (partial_die_parent_scope, partial_die_full_name)
9080 (add_partial_symbol, add_partial_subprogram)
9081 (add_partial_enumeration, load_partial_dies): Use "name" method.
9082 (partial_die_info::name): New method.
9083 (partial_die_info::read, guess_partial_die_structure_name)
9084 (partial_die_info::fixup): Update.
9085
697bba18
TT
90862020-05-27 Tom Tromey <tromey@adacore.com>
9087
9088 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
9089 <get_ref_die_offset>: Inline.
9090 <get_ref_die_offset_complaint>: New method.
9091 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
9092 (attribute::get_ref_die_offset_complaint): Rename from
9093 get_ref_die_offset. Just issue complaint.
9094
c17ace43
HD
90952020-05-27 Hannes Domani <ssbssa@yahoo.de>
9096
9097 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
9098
96445f0b
HD
90992020-05-27 Hannes Domani <ssbssa@yahoo.de>
9100
9101 * exec.c (exec_file_attach): Use errno value of first openp failure.
9102
ac637ec3
HD
91032020-05-27 Hannes Domani <ssbssa@yahoo.de>
9104
9105 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
9106 Don't close thread handle.
9107
17ee85fc
TT
91082020-05-27 Tom Tromey <tom@tromey.com>
9109 Simon Marchi <simon.marchi@efficios.com>
9110
9111 * objfiles.h (struct objfile) <partial_symtabs>: Now a
9112 shared_ptr.
9113 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
9114 member.
9115 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
9116 dwarf2_per_bfd_objfile_data_key>: New globals.
9117 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
9118 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
9119 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
9120 shared.
9121 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
9122 short-circuit when sharing.
9123 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
9124 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
9125
39b16f87
SM
91262020-05-27 Simon Marchi <simon.marchi@efficios.com>
9127
9128 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
9129 to...
9130 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
9131 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
9132
fcf23d5b
SM
91332020-05-27 Simon Marchi <simon.marchi@efficios.com>
9134
9135 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
9136 build_name_components, find_name_components_bounds>:
9137 Add per_objfile parameter.
9138 (struct mapped_index) <symbol_name_at>: Likewise.
9139 (struct mapped_debug_names): Remove constructor.
9140 <dwarf2_per_objfile>: Remove field.
9141 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
9142 (mapped_index_base::find_name_components_bounds,
9143 mapped_index_base::build_name_components,
9144 dw2_expand_symtabs_matching_symbol): Likewise.
9145 (class mock_mapped_index) <symbol_name_at>: Likewise.
9146 (check_match): Likewise.
9147 (check_find_bounds_finds): Likewise.
9148 (test_mapped_index_find_name_component_bounds): Update.
9149 (CHECK_MATCH): Update.
9150 (dw2_expand_symtabs_matching): Update.
9151 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
9152 per_objfile parameter.
9153 <find_vec_in_debug_names>: Likewise.
9154 <m_per_objfile>: New field.
9155 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
9156 parameter.
9157 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
9158 (dw2_debug_names_iterator::next): Update.
9159 (dw2_debug_names_lookup_symbol): Update.
9160 (dw2_debug_names_expand_symtabs_for_function): Update.
9161 (dw2_debug_names_map_matching_symbols): Update.
9162 (dw2_debug_names_expand_symtabs_matching): Update.
9163 (dwarf2_read_debug_names): Update.
9164
7188ed02
SM
91652020-05-27 Simon Marchi <simon.marchi@efficios.com>
9166
9167 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
9168 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
9169 move to dwarf2_per_objfile.
9170 <read_in_chain>: Remove.
9171 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
9172 remove_all_cus, age_comp_units>: New methods.
9173 <m_dwarf2_cus>: New member.
9174 (struct dwarf2_per_cu_data) <cu>: Remove.
9175 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
9176 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
9177 moved to methods of dwarf2_per_objfile.
9178 (dwarf2_clear_marks): Remove.
9179 (dwarf2_queue_item::~dwarf2_queue_item): Update.
9180 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
9181 (dwarf2_per_bfd::free_cached_comp_units): Remove.
9182 (dwarf2_per_objfile::remove_all_cus): New.
9183 (class free_cached_comp_units) <~free_cached_comp_units>:
9184 Update.
9185 (load_cu): Update.
9186 (dw2_do_instantiate_symtab): Adjust.
9187 (fill_in_sig_entry_from_dwo_entry): Adjust.
9188 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9189 (cutu_reader::cutu_reader): Likewise.
9190 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
9191 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
9192 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
9193 and dwarf2_per_objfile::age_comp_units.
9194 (load_partial_comp_unit): Update.
9195 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
9196 (process_queue): Likewise.
9197 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
9198 backlink.
9199 (dwarf2_read_addr_index): Likewise.
9200 (follow_die_offset): Likewise.
9201 (dwarf2_fetch_die_loc_sect_off): Likewise.
9202 (dwarf2_fetch_constant_bytes): Likewise.
9203 (dwarf2_fetch_die_type_sect_off): Likewise.
9204 (follow_die_sig_1): Likewise.
9205 (load_full_type_unit): Likewise.
9206 (read_signatured_type): Likewise.
9207 (dwarf2_cu::dwarf2_cu): Don't set cu field.
9208 (dwarf2_cu::~dwarf2_cu): Remove.
9209 (dwarf2_per_objfile::get_cu): New.
9210 (dwarf2_per_objfile::set_cu): New.
9211 (age_cached_comp_units): Rename to...
9212 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
9213 to std::unordered_map.
9214 (free_one_cached_comp_unit): Rename to...
9215 (dwarf2_per_objfile::remove_cu): ... this. Adjust
9216 to std::unordered_map.
9217 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
9218 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
9219 a dwarf2_per_objfile in data.
9220 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
9221 (dwarf2_clear_marks): Remove.
9222
2e671100
SM
92232020-05-27 Simon Marchi <simon.marchi@efficios.com>
9224
9225 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
9226 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
9227 (init_tu_and_read_dwo_dies): Likewise.
9228 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
9229 (cutu_reader::cutu_reader): Likewise.
9230 (load_partial_comp_unit): Likewise.
9231 (process_psymtab_comp_unit): Update.
9232 (build_type_psymtabs_1): Update.
9233 (process_skeletonless_type_unit): Update.
9234 (load_full_comp_unit): Update.
9235 (find_partial_die): Update.
9236 (dwarf2_read_addr_index): Update.
9237 (read_signatured_type): Update.
9238
2e6a9f79
SM
92392020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9240
9241 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
9242 m_header_read_in>: New fields.
9243 <get_header>: New method.
9244 * dwarf2/read.c (per_cu_header_read_in): Remove.
9245 (dwarf2_per_cu_data::get_header): New.
9246 (dwarf2_per_cu_data::addr_size): Update.
9247 (dwarf2_per_cu_data::offset_size): Update.
9248 (dwarf2_per_cu_data::ref_addr_size): Update.
9249
1b555f17
SM
92502020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9251
9252 * dwarf2/read.c (load_cu): Return dwarf2_cu.
9253 (dw2_do_instantiate_symtab): Update.
9254 (queue_and_load_all_dwo_tus): Change parameter from
9255 dwarf2_per_cu_data to dwarf2_cu.
9256 (dwarf2_fetch_die_loc_sect_off): Update.
9257 (dwarf2_fetch_constant_bytes): Update.
9258 (dwarf2_fetch_die_type_sect_off): Update.
9259
8fc0b21d
SM
92602020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9261
9262 * dwarf2/read.c (process_full_comp_unit,
9263 process_full_type_unit): Remove per_cu, per_objfile paramters.
9264 Add dwarf2_cu parameter.
9265 (process_queue): Update.
9266
168c9250
SM
92672020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9268
9269 * dwarf2/read.c (create_cu_from_index_list): Replace
9270 dwarf2_per_objfile parameter with dwarf2_per_bfd.
9271 (create_cus_from_index_list): Likewise.
9272 (create_cus_from_index): Likewise.
9273 (create_signatured_type_table_from_index): Likewise.
9274 (create_cus_from_debug_names_list): Likewise.
9275 (create_cus_from_debug_names): Likewise.
9276 (dwarf2_read_gdb_index): Update.
9277 (dwarf2_read_debug_names): Update.
9278
e286671b
TT
92792020-05-27 Tom Tromey <tom@tromey.com>
9280 Simon Marchi <simon.marchi@efficios.com>
9281
9282 * dwarf2/read.h (struct dwarf2_per_objfile)
9283 <get_type_for_signatured_type, set_type_for_signatured_type>:
9284 New methods.
9285 <m_type_map>: New member.
9286 (struct signatured_type) <type>: Remove.
9287 * dwarf2/read.c
9288 (dwarf2_per_objfile::get_type_for_signatured_type,
9289 dwarf2_per_objfile::set_type_for_signatured_type): New.
9290 (get_signatured_type): Use new methods.
9291
8adb8487
TT
92922020-05-27 Tom Tromey <tom@tromey.com>
9293 Simon Marchi <simon.marchi@efficios.com>
9294
9295 * dwarf2/read.h (struct type_unit_group_unshareable): New.
9296 (struct dwarf2_per_objfile) <type_units>: New member.
9297 <get_type_unit_group_unshareable>: New method.
9298 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
9299 num_symtabs, symtabs>: Remove; move to
9300 type_unit_group_unshareable.
9301 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
9302 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
9303 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
9304
127bbf4b
SM
93052020-05-27 Simon Marchi <simon.marchi@efficios.com>
9306
9307 * dwarf2/read.h (struct dwarf2_per_cu_data):
9308 <dwarf2_per_objfile>: Remove.
9309 * dwarf2/read.c (create_cu_from_index_list): Don't assign
9310 dwarf2_per_objfile.
9311 (create_signatured_type_table_from_index): Likewise.
9312 (create_signatured_type_table_from_debug_names): Likewise.
9313 (create_debug_type_hash_table): Likewise.
9314 (fill_in_sig_entry_from_dwo_entry): Likewise.
9315 (create_type_unit_group): Likewise.
9316 (read_comp_units_from_section): Likewise.
9317 (create_cus_hash_table): Likewise.
9318
f6e649dd
SM
93192020-05-27 Simon Marchi <simon.marchi@efficios.com>
9320
9321 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
9322 dwarf2_per_cu_data::dwarf2_per_objfile.
9323 (compute_compunit_symtab_includes): Likewise.
9324 (dwarf2_cu::start_symtab): Likewise.
9325
aa66c379
SM
93262020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9327
9328 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
9329 parameter.
9330 * dwarf2/read.c (get_die_type_at_offset): Likewise.
9331 (read_namespace_alias): Update.
9332 (lookup_die_type): Update.
9333 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
9334 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
9335 Update.
9336 (disassemble_dwarf_expression): Update.
9337
120ce1b5
SM
93382020-05-27 Simon Marchi <simon.marchi@efficios.com>
9339
9340 * dwarf2/read.h (struct dwarf2_queue_item): Add
9341 dwarf2_per_objfile parameter, assign new parameter.
9342 <per_objfile>: New field.
9343 * dwarf2/read.c (free_one_cached_comp_unit): Add
9344 dwarf2_per_objfile parameter.
9345 (queue_comp_unit): Likewise.
9346 (dw2_do_instantiate_symtab): Update.
9347 (process_psymtab_comp_unit): Update.
9348 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
9349 (process_imported_unit_die): Update.
9350 (queue_and_load_dwo_tu): Update.
9351 (follow_die_offset): Update.
9352 (follow_die_sig_1): Update.
9353
9f47c707
SM
93542020-05-27 Simon Marchi <simon.marchi@efficios.com>
9355
9356 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
9357 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
9358 (read_call_site_scope): Assign per_objfile.
9359 (dwarf2_per_cu_data::objfile): Remove.
9360 * gdbtypes.h (struct call_site) <per_objfile>: New member.
9361 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
9362 dwarf2_per_objfile parameter.
9363 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
9364 dwarf2_per_objfile parameter.
9365 (dwarf_expr_reg_to_entry_parameter): Add output
9366 dwarf2_per_objfile parameter.
9367 (locexpr_get_frame_base): Update.
9368 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
9369 <push_dwarf_reg_entry_value>: Update.
9370 <call_site_to_target_addr>: Update.
9371 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
9372 parameter.
9373 (value_of_dwarf_reg_entry): Update.
9374 (rw_pieced_value): Update.
9375 (indirect_synthetic_pointer): Update.
9376 (dwarf2_evaluate_property): Update.
9377 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
9378 parameter.
9379 (locexpr_read_variable): Update.
9380 (locexpr_get_symbol_read_needs): Update.
9381 (loclist_read_variable): Update.
9382
14095eb3
SM
93832020-05-27 Simon Marchi <simon.marchi@efficios.com>
9384
9385 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9386 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9387 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9388 parameter.
9389 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9390 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9391 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9392 parameter.
9393 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
9394 sect_variable_value): Add dwarf2_per_objfile parameter.
9395 (class dwarf_evaluate_loc_desc) <dwarf_call,
9396 dwarf_variable_value>: Update.
9397 (fetch_const_value_from_synthetic_pointer): Add
9398 dwarf2_per_objfile parameter.
9399 (fetch_const_value_from_synthetic_pointer): Update.
9400 (coerced_pieced_ref): Update.
9401 (class symbol_needs_eval_context) <dwarf_call,
9402 dwarf_variable_value>: Update.
9403 (dwarf2_compile_expr_to_ax): Update.
9404
3c3cd3d4
SM
94052020-05-27 Simon Marchi <simon.marchi@efficios.com>
9406
9407 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
9408 parameter.
9409 (dwarf2_evaluate_loc_desc_full): Update.
9410
82ca3f51
SM
94112020-05-27 Simon Marchi <simon.marchi@efficios.com>
9412
9413 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
9414 parameter.
9415 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
9416 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
9417 dwarf2_per_objfile parameter.
9418 (decode_debug_loc_dwo_addresses): Likewise.
9419 (dwarf2_find_location_expression): Update.
9420 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
9421 (locexpr_describe_location_piece): Add dwarf2_per_objfile
9422 parameter.
9423 (disassemble_dwarf_expression): Add dwarf2_per_objfile
9424 parameter.
9425 (locexpr_describe_location_1): Likewise.
9426 (locexpr_describe_location): Update.
9427
4b167ea1
SM
94282020-05-27 Simon Marchi <simon.marchi@efficios.com>
9429
9430 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
9431 Remove.
9432 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
9433 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
9434 (dwarf2_compile_property_to_c): Update.
9435 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
9436 use text offset from objfile.
9437 (locexpr_tracepoint_var_ref): Update.
9438 (locexpr_generate_c_location): Update.
9439 (loclist_describe_location): Update.
9440 (loclist_tracepoint_var_ref): Update.
9441 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
9442 dwarf2_per_objfile parameter.
9443 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
9444 use text offset from objfile.
9445 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
9446
89b07335
SM
94472020-05-27 Simon Marchi <simon.marchi@efficios.com>
9448
9449 * dwarf2/expr.h (struct dwarf_expr_context)
9450 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
9451 <offset>: Remove.
9452 <per_objfile>: New member.
9453 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
9454 dwarf2_per_objfile parameter. Don't set offset, set
9455 per_objfile.
9456 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
9457 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
9458 a dwarf2_per_objfile object instead of an offset.
9459 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
9460 constructor.
9461 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
9462 to dwarf2_expr_executor constructor. Don't set offset.
9463 (dwarf2_fetch_cfa_info): Update.
9464 (struct dwarf2_frame_cache) <text_offset>: Remove.
9465 <per_objfile>: New field.
9466 (dwarf2_frame_cache): Update.
9467 (dwarf2_frame_prev_register): Update.
9468 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9469 <dwarf_evaluate_loc_desc>: Add constructor.
9470 (dwarf2_evaluate_loc_desc_full): Update.
9471 (dwarf2_locexpr_baton_eval): Update.
9472 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
9473 Add constructor.
9474 (dwarf2_loc_desc_get_symbol_read_needs): Update.
9475
293e7e51
SM
94762020-05-27 Simon Marchi <simon.marchi@efficios.com>
9477
9478 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
9479 addr_sized_int_type>: Move to dwarf2_cu.
9480 <int_type>: Move to dwarf2_per_objfile.
9481 (struct dwarf2_per_objfile) <int_type>: Move here.
9482 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
9483 addr_sized_int_type>: Move here.
9484 (read_func_scope): Update.
9485 (read_array_type): Update.
9486 (read_tag_string_type): Update.
9487 (attr_to_dynamic_prop): Update.
9488 (dwarf2_per_cu_data::int_type): Rename to...
9489 (dwarf2_per_objfile::int_type): ... this.
9490 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
9491 (dwarf2_cu::addr_sized_int_type): ... this.
9492 (read_subrange_type): Update.
9493 (dwarf2_per_cu_data::addr_type): Rename to...
9494 (dwarf2_cu::addr_type): ... this.
9495 (set_die_type): Update.
9496
64874a40
SM
94972020-05-27 Simon Marchi <simon.marchi@efficios.com>
9498
9499 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
9500 data through per_cu->cu.
9501
4ab09049
SM
95022020-05-27 Simon Marchi <simon.marchi@efficios.com>
9503
9504 * dwarf2/read.c (lookup_dwo_comp_unit): Change
9505 dwarf2_per_cu_data parameter fo dwarf2_cu.
9506 (lookup_dwo_type_unit): Likewise.
9507 (read_cutu_die_from_dwo): Likewise.
9508 (lookup_dwo_unit): Likewise.
9509 (open_and_init_dwo_file): Likewise.
9510 (lookup_dwo_cutu): Likewise.
9511 (lookup_dwo_comp_unit): Likewise.
9512 (lookup_dwo_type_unit): Likewise.
9513 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9514 (cutu_reader::cutu_reader): Update.
9515
47b14e86
SM
95162020-05-27 Simon Marchi <simon.marchi@efficios.com>
9517
9518 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
9519 parameter.
9520 (process_full_type_unit): Likewise.
9521 (process_queue): Update.
9522
43182c09
SM
95232020-05-27 Simon Marchi <simon.marchi@efficios.com>
9524
9525 * dwarf2/read.c (recursively_compute_inclusions): Add
9526 dwarf2_per_objfile parameter.
9527 (compute_compunit_symtab_includes): Likewise.
9528 (process_cu_includes): Update.
9529
7aa104c4
SM
95302020-05-27 Simon Marchi <simon.marchi@efficios.com>
9531
9532 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
9533 parameter.
9534 (create_type_unit_group): Update.
9535 (process_psymtab_comp_unit_reader): Update.
9536 (build_type_psymtabs_reader): Update.
9537
e3beb21d
SM
95382020-05-27 Simon Marchi <simon.marchi@efficios.com>
9539
9540 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
9541 object through m_this_cu->cu.
9542
d460f660
SM
95432020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9544
9545 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
9546 the info parameter.
9547 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
9548
ab432490
SM
95492020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9550
9551 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
9552 per_objfile parameter.
9553 (load_full_type_unit): Add per_objfile parameter.
9554 (read_signatured_type): Likewise.
9555 (load_full_comp_unit): Likewise.
9556 (load_cu): Likewise.
9557 (dw2_do_instantiate_symtab): Likewise.
9558 (dw2_get_file_names): Likewise.
9559 (dw2_map_symtabs_matching_filename): Update.
9560 (dw_expand_symtabs_matching_file_matcher): Update.
9561 (dw2_map_symbol_filenames): Update.
9562 (process_psymtab_comp_unit): Add per_objfile parameter.
9563 (build_type_psymtabs_1): Update.
9564 (process_skeletonless_type_unit): Update.
9565 (dwarf2_build_psymtabs_hard): Update.
9566 (load_partial_comp_unit): Add per_objfile parameter.
9567 (scan_partial_symbols): Update.
9568 (load_full_comp_unit): Add per_objfile parameter.
9569 (process_imported_unit_die): Update.
9570 (create_cus_hash_table): Update.
9571 (find_partial_die): Update.
9572 (dwarf2_read_addr_index): Update.
9573 (follow_die_offset): Update.
9574 (dwarf2_fetch_die_loc_sect_off): Update.
9575 (dwarf2_fetch_constant_bytes): Update.
9576 (dwarf2_fetch_die_type_sect_off): Update.
9577 (follow_die_sig_1): Update.
9578 (load_full_type_unit): Add per_objfile parameter.
9579 (read_signatured_type): Likewise.
9580
313bad1b
SM
95812020-05-27 Simon Marchi <simon.marchi@efficios.com>
9582
9583 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
9584 of objfile_name.
9585
c3699833
SM
95862020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9587
9588 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
9589 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9590 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
9591 field.
9592 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9593 (create_cus_from_index): Update.
9594 (dwarf2_read_gdb_index): Update.
9595 (create_cus_from_debug_names): Update.
9596 (dwarf2_read_debug_names): Update.
9597 (get_abbrev_section_for_cu): Update.
9598 (create_all_comp_units): Update.
9599 (read_attribute_value): Update.
9600 (get_debug_line_section): Update.
9601 * dwarf2/index-cache.c (index_cache::store): Update.
9602 * dwarf2/index-write.c (save_gdb_index_command): Update.
9603 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
9604
1859c670
SM
96052020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9606
9607 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
9608 member.
9609 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
9610 dwarf2_per_cu_data::per_bfd.
9611 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
9612 (create_type_unit_group): Likewise.
9613 (queue_comp_unit): Remove reference to
9614 per_cu->dwarf2_per_objfile.
9615 (maybe_queue_comp_unit): Likewise.
9616 (fill_in_sig_entry_from_dwo_entry): Assign new field.
9617 (create_cus_hash_table): Assign new field.
9618
5e22e966
SM
96192020-05-27 Simon Marchi <simon.marchi@efficios.com>
9620
9621 * dwarf2/read.c: Replace
9622 dwarf2_cu->per_cu->dwarf2_per_objfile references with
9623 dwarf2_cu->per_objfile throughout.
9624
97a1449a
SM
96252020-05-27 Simon Marchi <simon.marchi@efficios.com>
9626
9627 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
9628 parameter, don't use per_cu->dwarf2_per_objfile.
9629 (dw2_instantiate_symtab): Likewise.
9630 (dw2_find_last_source_symtab): Update.
9631 (dw2_map_expand_apply): Update.
9632 (dw2_lookup_symbol): Update.
9633 (dw2_expand_symtabs_for_function): Update.
9634 (dw2_expand_all_symtabs): Update.
9635 (dw2_expand_symtabs_with_fullname): Update.
9636 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
9637 don't use per_cu->dwarf2_per_objfile.
9638 (dw2_expand_marked_cus): Update.
9639 (dw2_find_pc_sect_compunit_symtab): Update.
9640 (dw2_debug_names_lookup_symbol): Update.
9641 (dw2_debug_names_expand_symtabs_for_function): Update.
9642 (dw2_debug_names_map_matching_symbols): Update.
9643 (dwarf2_psymtab::expand_psymtab): Update.
9644
9e021579
SM
96452020-05-27 Simon Marchi <simon.marchi@efficios.com>
9646
9647 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
9648 <per_objfile>: New member.
9649 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
9650 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
9651 call to dwarf2_cu.
9652 (cutu_reader::cutu_reader): Update.
9653 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
9654
ae090bdb
SM
96552020-05-27 Simon Marchi <simon.marchi@efficios.com>
9656
9657 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
9658 struct dwarf2_per_objfile.
9659 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
9660 dwarf2_per_bfd.
9661 * dwarf2/read.c (set_die_type): Update.
9662 (get_die_type_at_offset): Update.
9663
af758d11
SM
96642020-05-27 Tom Tromey <tom@tromey.com>
9665 Simon Marchi <simon.marchi@efficios.com>
9666
9667 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
9668 method.
9669 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
9670 get_symtab, set_symtab>: New methods.
9671 <m_symtabs>: New field.
9672 (struct dwarf2_psymtab): Derive from partial_symtab.
9673 <readin_p, get_compunit_symtab>: Declare methods.
9674 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
9675 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
9676 New methods.
9677 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
9678 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
9679 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
9680 (dw2_symtab_iter_next, dw2_print_stats)
9681 (dw2_expand_symtabs_with_fullname)
9682 (dw2_expand_symtabs_matching_one)
9683 (dw_expand_symtabs_matching_file_matcher)
9684 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
9685 (dw2_debug_names_iterator::next)
9686 (dw2_debug_names_map_matching_symbols)
9687 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
9688 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
9689 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
9690 New methods.
9691 (get_compunit_symtab, process_full_comp_unit)
9692 (process_full_type_unit): Update.
9693 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
9694
5989a64e
SM
96952020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9696
9697 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
9698 then introduce a new dwarf2_per_objfile type.
9699 <read_line_string>: Move to the new dwarf2_per_objfile type.
9700 <objfile>: Likewise.
9701 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
9702 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
9703 dwarf2_per_objfile->per_bfd.
9704 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
9705 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
9706 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
9707 (dwarf2_per_bfd::free_cached_comp_units): ... this.
9708 (dwarf2_has_info): Allocate dwarf2_per_bfd.
9709 (dwarf2_per_objfile::locate_sections): Rename to...
9710 (dwarf2_per_bfd::locate_sections): ... this.
9711 (dwarf2_per_objfile::get_cutu): Rename to...
9712 (dwarf2_per_bfd::get_cutu): ... this.
9713 (dwarf2_per_objfile::get_cu): Rename to...
9714 (dwarf2_per_bfd::get_cu): ... this.
9715 (dwarf2_per_objfile::get_tu): Rename to...
9716 (dwarf2_per_bfd::get_tu): ... this.
9717 (dwarf2_per_objfile::allocate_per_cu): Rename to...
9718 (dwarf2_per_bfd::allocate_per_cu): ... this.
9719 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
9720 (dwarf2_per_bfd::allocate_signatured_type): ... this.
9721 (get_gdb_index_contents_ftype): Change parameter from
9722 dwarf2_per_objfile to dwarf2_per_bfd.
9723 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
9724 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
9725
a50264ba
TT
97262020-05-27 Tom Tromey <tom@tromey.com>
9727 Simon Marchi <simon.marchi@efficios.com>
9728
9729 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
9730 (allocate_piece_closure): Set "per_objfile" member.
9731 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
9732 (locexpr_describe_location, loclist_describe_location): Use new
9733 member.
9734 * dwarf2/read.c (read_call_site_scope)
9735 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
9736 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
9737 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
9738 handle_data_member_location): Set per_objfile member.
9739 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
9740 member.
9741 (struct dwarf2_loclist_baton) <per_objfile>: New member.
9742
d3473f0c
TT
97432020-05-27 Tom Tromey <tom@tromey.com>
9744
9745 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
9746 allocate_signatured_type>: Declare new methods.
9747 <m_num_psymtabs>: New member.
9748 (struct dwarf2_per_cu_data) <index>: New member.
9749 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
9750 (dwarf2_per_objfile::allocate_signatured_type): New methods.
9751 (create_cu_from_index_list): Use allocate_per_cu.
9752 (create_signatured_type_table_from_index)
9753 (create_signatured_type_table_from_debug_names)
9754 (create_debug_type_hash_table, add_type_unit)
9755 (read_comp_units_from_section): Use allocate_signatured_type.
9756
5717c425
TT
97572020-05-27 Tom Tromey <tom@tromey.com>
9758
9759 * psymtab.c (partial_map_expand_apply)
9760 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9761 (psym_lookup_global_symbol_language)
9762 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9763 (psym_print_stats, psym_expand_symtabs_for_function)
9764 (psym_map_symbol_filenames, psym_map_matching_symbols)
9765 (psym_expand_symtabs_matching)
9766 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9767 (maintenance_check_psymtabs): Update.
9768 * psympriv.h (struct partial_symtab) <readin_p,
9769 get_compunit_symtab>: Add objfile parameter.
9770 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
9771 Likewise.
9772 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
9773 get_compunit_symtab>: Likewise.
9774 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
9775
45940949
TT
97762020-05-27 Tom Tromey <tom@tromey.com>
9777
9778 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
9779 member.
9780 * dwarf2/read.c (delete_file_name_entry): Fix comment.
9781 (create_cu_from_index_list)
9782 (create_signatured_type_table_from_index)
9783 (create_signatured_type_table_from_debug_names)
9784 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
9785 (dwarf2_create_include_psymtab)
9786 (create_debug_type_hash_table, add_type_unit)
9787 (create_type_unit_group, read_comp_units_from_section)
9788 (dwarf2_compute_name, create_cus_hash_table)
9789 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9790 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
9791 obstack.
9792 (dw2_get_real_path): Likewise. Change argument to
9793 dwarf2_per_objfile.
9794
f8c6d152
LM
97952020-05-27 Luis Machado <luis.machado@linaro.org>
9796
9797 PR tdep/26000
9798 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
9799 for ldrd (immediate).
9800
e98d2e6d
PW
98012020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9802
9803 * command.h: Add comment giving the name of class_tui.
9804 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
9805 create the fake command for the help for class_tui.
9806
53a47a3e
TT
98072020-05-26 Tom Tromey <tromey@adacore.com>
9808
9809 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
9810 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
9811 (val_atr): New function.
9812 (value_val_atr): Use it.
9813 * ada-valprint.c (print_optional_low_bound): Change low bound
9814 handling for enums.
9815 (val_print_packed_array_elements): Don't call discrete_position.
9816 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
9817 discrete_position for enum types.
9818 * language.c (default_print_array_index): Change type.
9819 * language.h (struct language_defn) <la_print_array_index>: Add
9820 index_type parameter, change type of index_value.
9821 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
9822 (default_print_array_index): Update.
9823 * valprint.c (maybe_print_array_index): Don't call
9824 value_from_longest. Update.
9825 (value_print_array_elements): Don't call discrete_position.
9826
0bc2354b
TT
98272020-05-26 Tom Tromey <tromey@adacore.com>
9828
9829 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
9830 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
9831
1218a4bf
CDA
98322020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
9833
9834 PR gdb/13519
9835 * avr-tdep.c (avr_integer_to_address): Return data or code
9836 address accordingly to the second 'type' argument of the
9837 function.
9838
92651b1d
MW
98392020-05-25 Michael Weghorn <m.weghorn@posteo.de>
9840
9841 * infcmd.c, inferior.h: (construct_inferior_arguments):
9842 Moved function from here to gdbsupport/common-inferior.{h,cc}
9843
0a4f5f8c
TT
98442020-05-23 Tom Tromey <tom@tromey.com>
9845
9846 Revert commit eca1f90c:
9847 * NEWS: Remove entry for completion styling.
9848 * completer.c (_rl_completion_prefix_display_length): Move
9849 declaration later.
9850 (gdb_fnprint): Revert.
9851 (gdb_display_match_list_1): Likewise.
9852 * cli/cli-style.c (completion_prefix_style)
9853 (completion_difference_style, completion_suffix_style): Remove.
9854 (_initialize_cli_style): Revert.
9855 * cli/cli-style.h (completion_prefix_style)
9856 (completion_difference_style, completion_suffix_style): Don't
9857 declare.
9858
e08bd6c5
PA
98592020-05-24 Pedro Alves <palves@redhat.com>
9860
9861 * symtab.c (completion_list_add_name): Return boolean indication
9862 of whether the symbol matched.
9863 (completion_list_add_symbol): Don't try to remove C++ aliases if
9864 the symbol didn't match in the first place.
9865 * symtab.h (completion_list_add_name): Return bool.
9866
ceacbf6e
SM
98672020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
9868
9869 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
9870 type::field.
9871
26f16254
JB
98722020-05-23 Joel Brobecker <brobecker@adacore.com>
9873
9874 GDB 9.2 released.
9875
eca1f90c
TT
98762020-05-23 Tom Tromey <tom@tromey.com>
9877
9878 * NEWS: Add entry for completion styling.
9879 * completer.c (_rl_completion_prefix_display_length): Move
9880 declaration earlier.
9881 (gdb_fnprint): Use completion_style.
9882 (gdb_display_match_list_1): Likewise.
9883 * cli/cli-style.c (completion_prefix_style)
9884 (completion_difference_style, completion_suffix_style): New
9885 globals.
9886 (_initialize_cli_style): Register new globals.
9887 * cli/cli-style.h (completion_prefix_style)
9888 (completion_difference_style, completion_suffix_style): Declare.
9889
51e2cfa2
PA
98902020-05-23 Pedro Alves <palves@redhat.com>
9891
9892 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
9893 (parse_escape): Use ISDIGIT instead of isdigit.
9894 (puts_debug): Use gdb_isprint instead of isprint.
9895 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
9896 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
9897 ISSPACE instead of isspace.
9898 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
9899 instead of isspace.
9900 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
9901 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
9902 instead of isxdigit and ISDIGIT instead of isdigit.
9903
80fc5e77
SM
99042020-05-22 Simon Marchi <simon.marchi@efficios.com>
9905
9906 * gdbtypes.h (struct type) <field>: New method.
9907 (TYPE_FIELDS): Remove, replace all uses with either type::fields
9908 or type::field.
9909
3cabb6b0
SM
99102020-05-22 Simon Marchi <simon.marchi@efficios.com>
9911
9912 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
9913 (TYPE_FIELDS): Use type::fields. Change all call sites that
9914 modify the propery to use type::set_fields instead.
9915
1f704f76
SM
99162020-05-22 Simon Marchi <simon.marchi@efficios.com>
9917
9918 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
9919 type::num_fields instead.
9920
5e33d5f4
SM
99212020-05-22 Simon Marchi <simon.marchi@efficios.com>
9922
9923 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
9924 methods.
9925 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
9926 that modify the number of fields to use type::set_num_fields
9927 instead.
9928
9392ebb3
TT
99292020-05-22 Tom Tromey <tromey@adacore.com>
9930
9931 * compile/compile-object-load.h (munmap_list_free): Don't
9932 declare.
9933
7c13f4e8
AB
99342020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
9935
9936 * annotate.c (annotate_source_line): Update return type, add call
9937 to update current symtab and line.
9938 * annotate.h (annotate_source_line): Update return type, and
9939 extend header comment.
9940 * source.c (info_line_command): Check annotation_level before
9941 calling annotate_source_line.
9942 * stack.c (print_frame_info): If calling annotate_source_line
9943 returns true, then don't print any other source line information.
9944
aa370940
SM
99452020-05-21 Simon Marchi <simon.marchi@efficios.com>
9946
9947 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
9948
84d53fa9
SM
99492020-05-21 Simon Marchi <simon.marchi@efficios.com>
9950
9951 * coffread.c (patch_type): Remove NULL check before xfree.
9952 * corefile.c (set_gnutarget): Likewise.
9953 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
9954 * exec.c (build_section_table): Likewise.
9955 * remote.c (remote_target::pass_signals): Likewise.
9956 * utils.c (n_spaces): Likewise.
9957 * cli/cli-script.c (document_command): Likewise.
9958 * i386-windows-tdep.c (core_process_module_section): Likewise.
9959 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
9960
9d428aae
SM
99612020-05-20 Simon Marchi <simon.marchi@efficios.com>
9962
9963 * symfile.c (reread_symbols): Clear objfile's section_offsets
9964 vector and section indices, re-compute them by calling
9965 sym_offsets.
9966
250106a7
TT
99672020-05-20 Tom Tromey <tromey@adacore.com>
9968
9969 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 9970 (desc_one_bound, desc_index_type): Compute field name.
250106a7 9971
9a0bacfb
TV
99722020-05-20 Tom de Vries <tdevries@suse.de>
9973
9974 PR symtab/25833
9975 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
9976
7b958a48
AM
99772020-05-20 Alan Modra <amodra@gmail.com>
9978
9979 PR 25993
9980 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
9981 bfd_set_filename.
9982 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
9983 passed to bfd_set_filename.
9984 * symfile-mem.c (add_vsyscall_page): Likewise for string
9985 passed to symbol_file_add_from_memory.
9986 (symbol_file_add_from_memory): Make name param a const char* and
9987 don't strdup.
9988
c7e97679
AM
99892020-05-20 Alan Modra <amodra@gmail.com>
9990
9991 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
9992 rather than accessing bfd->filename directly.
9993 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
9994 and use bfd_section_name.
9995 * dwarf2/frame.c (decode_frame_entry): Likewise.
9996 * exec.c (exec_set_section_address): Likewise.
9997 * solib-aix.c (solib_aix_bfd_open): Likewise.
9998 * stap-probe.c (get_stap_base_address): Likewise.
9999 * symfile.c (reread_symbols): Likewise.
10000
563c591b
TT
100012020-05-19 Tom Tromey <tromey@adacore.com>
10002
10003 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
10004
f408d82c
SM
100052020-05-19 Simon Marchi <simon.marchi@efficios.com>
10006
10007 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
10008
98c59b52
PA
100092020-05-19 Pedro Alves <palves@redhat.com>
10010
10011 * NEWS (set exec-file-mismatch): Adjust entry.
10012 * exec.c: Include "build-id.h".
10013 (validate_exec_file): Try to match build IDs instead of filenames.
10014 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
10015 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
10016 and pass down 'warn_if_slow'.
10017 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
10018 gdb_bfd_open_closure to pass it down.
10019 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
10020
4111f652
PA
100212020-05-19 Pedro Alves <palves@redhat.com>
10022
10023 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
10024 * target.c (target_fileio_open_1): Rename to target_fileio_open
10025 and make extern. Use bool.
10026 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
10027 (target_fileio_read_alloc_1): Adjust.
10028 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
10029 (target_fileio_open_warn_if_slow): Delete declaration.
10030
ad80db5b
PA
100312020-05-19 Pedro Alves <palves@redhat.com>
10032
10033 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
10034 Adjust all callers.
10035
1d6ce4d3
YS
100362020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
10037
10038 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
10039 whether disp is negative.
10040
9005fbbb
SM
100412020-05-19 Simon Marchi <simon.marchi@efficios.com>
10042
10043 * symfile.h (struct symfile_segment_data)
10044 <~symfile_segment_data>: Remove.
10045 <segment_info>: Change to std::vector.
10046 * symfile.c (default_symfile_segments): Update.
10047 * elfread.c (elf_symfile_segments): Update.
10048
68b888ff
SM
100492020-05-19 Simon Marchi <simon.marchi@efficios.com>
10050
10051 * symfile.h (struct symfile_segment_data) <struct segment>: New.
10052 <segments>: New.
10053 <segment_bases, segment_sizes>: Remove.
10054 * symfile.c (default_symfile_segments): Update.
10055 * elfread.c (elf_symfile_segments): Update.
10056 * remote.c (remote_target::get_offsets): Update.
10057 * solib-target.c (solib_target_relocate_section_addresses):
10058 Update.
10059
62982abd
SM
100602020-05-19 Simon Marchi <simon.marchi@efficios.com>
10061
10062 * symfile.h (struct symfile_segment_data): Initialize fields.
10063 <~symfile_segment_data>: Add.
10064 (symfile_segment_data_up): New.
10065 (struct sym_fns) <sym_segments>: Return a
10066 symfile_segment_data_up.
10067 (default_symfile_segments): Return a symfile_segment_data_up.
10068 (free_symfile_segment_data): Remove.
10069 (get_symfile_segment_data): Return a symfile_segment_data_up.
10070 * symfile.c (default_symfile_segments): Likewise.
10071 (get_symfile_segment_data): Likewise.
10072 (free_symfile_segment_data): Remove.
10073 (symfile_find_segment_sections): Update.
10074 * elfread.c (elf_symfile_segments): Return a
10075 symfile_segment_data_up.
10076 * remote.c (remote_target::get_offsets): Update.
10077 * solib-target.c (solib_target_relocate_section_addresses):
10078 Update.
10079 * symfile-debug.c (debug_sym_segments): Return a
10080 symfile_segment_data_up.
10081
7f204339
RO
100822020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10083
e52a0f1b
RO
10084 PR build/25981
10085 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
10086 Hardcode register numbers.
10087
7f204339
RO
10088 PR build/25981
10089 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
10090 procfs_find_LDT_entry): Remove.
10091 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
10092 procfs_find_LDT_entry): Remove.
10093 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
10094 Remove.
10095
7f32a4d5
PA
100962020-05-17 Pedro Alves <palves@redhat.com>
10097 Andrew Burgess <andrew.burgess@embecosm.com>
10098 Keno Fischer <keno@juliacomputing.com>
10099
10100 PR gdb/25741
10101 * breakpoint.c (build_target_condition_list): Update comments.
10102 (build_target_command_list): Update comments and skip matching
10103 locations.
10104 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
10105 a separate function. Simplify "set breakpoint auto-hw off"
10106 handling.
10107 (insert_breakpoints): Update comment.
10108 (tracepoint_locations_match): New parameter. For breakpoints,
10109 compare location types too, if the caller wants to.
10110 (handle_automatic_hardware_breakpoints): New functions.
10111 (bp_location_is_less_than): Also sort by location type and
10112 hardware breakpoint length.
10113 (update_global_location_list): Handle "set breakpoint auto-hw on"
10114 here.
10115 (update_breakpoint_locations): Ask breakpoint_locations_match to
10116 ignore location types.
10117
7d93a1e0
SM
101182020-05-16 Simon Marchi <simon.marchi@efficios.com>
10119
10120 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
10121 type::name instead.
10122
d0e39ea2
SM
101232020-05-16 Simon Marchi <simon.marchi@efficios.com>
10124
10125 * gdbtypes.h (struct type) <name, set_name>: New methods.
10126 (TYPE_CODE): Use type::name. Change all call sites used to set
10127 the name to use type::set_name instead.
10128
2dab0c7b
TT
101292020-05-16 Tom Tromey <tom@tromey.com>
10130
10131 * top.c (quit_force): Update.
10132 * infrun.c (handle_no_resumed): Update.
10133 * top.h (all_uis): New function.
10134 (ALL_UIS): Remove.
10135
59f7bd8d
SM
101362020-05-16 Simon Marchi <simon.marchi@efficios.com>
10137
10138 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
10139
9bf058f0
PA
101402020-05-16 Pedro Alves <palves@redhat.com>
10141
10142 * ia64-linux-nat.c
10143 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
10144 Declare method.
10145 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
10146
8f86ae1a
SM
101472020-05-15 Simon Marchi <simon.marchi@efficios.com>
10148
10149 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
10150 (sparc64_adi_info): Likewise.
10151
d6bc0792
TT
101522020-05-15 Tom Tromey <tom@tromey.com>
10153
10154 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
10155 block_objfile.
10156 (lookup_objfile_from_block): Remove.
10157 (lookup_symbol_in_block, lookup_symbol_in_static_block)
10158 (lookup_global_symbol): Use block_objfile.
10159 * symtab.h (lookup_objfile_from_block): Don't declare.
10160 * printcmd.c (clear_dangling_display_expressions): Use
10161 block_objfile.
10162 * parse.c (operator_check_standard): Use block_objfile.
10163
8c14c3a3
TT
101642020-05-15 Tom Tromey <tom@tromey.com>
10165
10166 * language.c (language_alloc_type_symbol): Set
10167 SYMBOL_SECTION.
10168 * symtab.c (initialize_objfile_symbol): Remove.
10169 (allocate_symbol): Remove.
10170 (allocate_template_symbol): Remove.
10171 * dwarf2/read.c (fixup_go_packaging): Use "new".
10172 (new_symbol): Use "new".
10173 (read_variable): Don't call initialize_objfile_symbol. Use
10174 "new".
10175 (read_func_scope): Use "new".
10176 * xcoffread.c (process_xcoff_symbol): Don't call
10177 initialize_objfile_symbol.
10178 (SYMBOL_DUP): Remove.
10179 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
10180 "new".
10181 * symtab.h (allocate_symbol, initialize_objfile_symbol)
10182 (allocate_template_symbol): Don't declare.
10183 (struct symbol): Add copy constructor. Change defaults.
10184 * jit.c (finalize_symtab): Use "new".
10185 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
10186 Use "new".
10187 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
10188 (common_block_end): Use "new".
10189 * mdebugread.c (parse_symbol): Use "new".
10190 (new_symbol): Likewise.
10191
5b4a1a8d
PW
101922020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10193
10194 * NEWS: Mention changes to help and apropos.
10195
57b4f16e
PW
101962020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10197
10198 * command.h (enum command_class): Improve comments, document
10199 that class_alias is for user-defined aliases, give the class
10200 name for each class, remove unused class_xdb.
10201 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
10202 * breakpoint.c (_initialize_breakpoint): Replace class_alias
10203 by a precise class.
10204 * infcmd.c (_initialize_infcmd): Likewise.
10205 * reverse.c (_initialize_reverse): Likewise.
10206 * stack.c (_initialize_stack): Likewise.
10207 * symfile.c (_initialize_symfile): Likewise.
10208 * tracepoint.c (_initialize_tracepoint): Likewise.
10209
7c05caf7
PW
102102020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10211
10212 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
10213 when their aliased command is traversed.
10214 (help_cmd): Add fput_command_names_styled call to
10215 output command name and aliases when command has an alias.
10216
3b3aaacb
PW
102172020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10218
10219 * cli/cli-decode.h (help_cmd_list): Remove declaration.
10220 * cli/cli-decode.c (help_cmd_list): Declare as static,
10221 remove prefix argument, use bool for recurse arg, rework to show the aliases of
10222 a command together with the command.
10223 (fput_command_name_styled, fput_command_names_styled): New functions.
10224 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
10225 fput_command_name_styled.
10226 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
10227 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
10228
7aa1b46f
PW
102292020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10230
10231 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
10232 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
10233 * command.h (cmd_show_list): Likewise.
10234 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
10235 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
10236
89bcba74
PW
102372020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10238
10239 * unittests/command-def-selftests.c (traverse_command_structure):
10240 Verify all commands of a list have the same prefix command and
10241 that only the top cmdlist commands have a null prefix.
10242
3f4d92eb
PW
102432020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10244
10245 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
10246 as prefix, not one of its aliases.
10247 (set_cmd_prefix): Remove.
10248 (do_add_cmd): Centralize the setting of the prefix of a command, when
10249 command is defined after its full chain of prefix commands.
10250 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
10251 (add_setshow_cmd_full): Likewise.
10252 (update_prefix_field_of_prefixed_commands): New function.
10253 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
10254 update_prefix_field_of_prefixed_commands.
10255 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
10256 addresses of remote_set_cmdlist and remote_show_cmdlist given
10257 as argument, not the address of an argument.
10258 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
10259 * gdb/remote.c (_initialize_remote): Likewise.
10260
0605465f
PW
102612020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10262
10263 * cli/cli-cmds.c (alias_command): Check for an existing alias
10264 using lookup_cmd_composition, as valid_command_p is too strict
10265 and forbids aliases that are the prefix of an existing alias
10266 or command.
10267 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
10268 command is properly recognised as a valid command.
10269
58e6ac70
PW
102702020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10271
10272 * unittests/help-doc-selftests.c: Rename to
10273 unittests/command-def-selftests.c
10274 * unittests/command-def-selftests.c (help_doc_tests): Update some
10275 comments.
10276 (command_structure_tests, traverse_command_structure): New namespace
10277 and function.
10278 (command_structure_invariants_tests): New function.
10279 (_initialize_command_def_selftests) Renamed from
10280 _initialize_help_doc_selftests, register command_structure_invariants
10281 selftest.
10282
a7b9ceb8
PW
102832020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10284
10285 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
10286 an alias of 'show'.
10287
b2188a06
JB
102882020-05-15 Joel Brobecker <brobecker@adacore.com>
10289
10290 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
10291 ada_is_fixed_point_type. Update all callers.
10292 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
10293 all callers.
10294 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
10295 Update all callers.
10296 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
10297 print_fixed_point_type. Update all callers.
10298 * ada-valprint.c (ada_value_print_num): Replace call to
10299 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
10300
a51951c2
KB
103012020-05-14 Kevin Buettner <kevinb@redhat.com>
10302
10303 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
10304 processors.
10305 (cpu_supports_bts): Add CV_AMD case.
10306
29d6859f
LM
103072020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
10308 Simon Marchi <simon.marchi@efficios.com>
10309
10310 * infrun.c (stop_all_threads): Collect multiple wait events at
10311 each pass.
10312
78134374
SM
103132020-05-14 Simon Marchi <simon.marchi@efficios.com>
10314
10315 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
10316 type::code instead.
10317
67607e24
SM
103182020-05-14 Simon Marchi <simon.marchi@efficios.com>
10319
10320 * gdbtypes.h (struct type) <code, set_code>: New methods.
10321 (TYPE_CODE): Use type::code. Change all call sites used to set
10322 the code to use type::set_code instead.
10323
a05575d3
TBA
103242020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10325 Tom de Vries <tdevries@suse.de>
10326 Pedro Alves <palves@redhat.com>
10327
10328 PR threads/25478
10329 * infrun.c (stop_all_threads): Do NOT ignore
10330 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
10331 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
10332 received.
10333 (handle_no_resumed): Remove code handling a live inferior with no
10334 threads.
10335 * remote.c (has_single_non_exited_thread): New.
10336 (remote_target::update_thread_list): Do not delete a thread if is
10337 the last thread of the process.
10338 * thread.c (thread_select): Call delete_exited_threads instead of
10339 prune_threads.
10340
6ad82919
TBA
103412020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10342
10343 * infrun.c (stop_all_threads): Enable/disable thread events of all
10344 targets. Move a debug message denoting the end of the function
10345 into the SCOPED_EXIT block.
10346
d890404b
TBA
103472020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10348
10349 * process-stratum-target.h: Include <set>.
10350 (all_non_exited_process_targets, switch_to_target_no_thread): New
10351 function declarations.
10352 * process-stratum-target.c (all_non_exited_process_targets)
10353 (switch_to_target_no_thread): New function implementations.
10354
293b3ebc
TBA
103552020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10356
10357 * infrun.c (handle_inferior_event): Extract out a piece of code
10358 into...
10359 (mark_non_executing_threads): ...this new function.
10360
7ca9b62a
TBA
103612020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10362
10363 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
10364 use.
10365
fc75c28b
TBA
103662020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10367
10368 * regcache.c (regcache_read_pc_protected): New function
10369 implementation that returns 0 if the PC cannot read via
10370 'regcache_read_pc'.
10371 * infrun.c (proceed): Call 'regcache_read_pc_protected'
10372 instead of 'regcache_read_pc'.
10373 (keep_going_pass_signal): Ditto.
10374
a89febbd
TT
103752020-05-13 Tom Tromey <tromey@adacore.com>
10376
10377 * ada-lang.c (align_value): Remove.
10378 (ada_template_to_fixed_record_type_1): Use align_up.
10379
f7e23710
TBA
103802020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10381
10382 * async-event.c: Update the copyright year.
10383 * async-event.h: Update the copyright year.
10384
02ff80c2
SM
103852020-05-12 Simon Marchi <simon.marchi@efficios.com>
10386
10387 * objfiles.h (is_addr_in_objfile,
10388 shared_objfile_contains_address_p): Return bool.
10389 * objfile.c (is_addr_in_objfile,
10390 shared_objfile_contains_address_p): Return bool.
10391
4fd6c7e8
TT
103922020-05-11 Tom Tromey <tromey@adacore.com>
10393
10394 * cli/cli-cmds.c (info_command): Restore.
10395 (_initialize_cli_cmds): Use add_prefix_command for "info".
10396 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
10397
5eb68a39
TT
103982020-05-11 Tom Tromey <tromey@adacore.com>
10399
10400 * ada-lang.c (ada_value_primitive_field): Now public.
10401 * ada-lang.h (ada_value_primitive_field): Declare.
10402 * ada-valprint.c (print_field_values): Use
10403 ada_value_primitive_field for wrapper fields.
10404
7666722f
TV
104052020-05-11 Tom de Vries <tdevries@suse.de>
10406
10407 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
10408 MODULE_DOMAIN.
10409
3ee6bb11
TV
104102020-05-11 Tom de Vries <tdevries@suse.de>
10411
10412 PR symtab/25941
10413 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
10414 with length 0, if not gdb-produced.
10415 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
10416
43434996
TV
104172020-05-09 Tom de Vries <tdevries@suse.de>
10418
10419 PR gdb/25955
10420 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
10421 calculation.
10422
2f78cffc
TT
104232020-05-09 Tom Tromey <tom@tromey.com>
10424
10425 * top.c (server_command): Now bool.
10426 * top.h (server_command): Now bool.
10427
4f7bc5ed
TT
104282020-05-08 Tom Tromey <tromey@adacore.com>
10429
10430 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
10431 already being processed.
10432
8be4b118
TT
104332020-05-08 Tom Tromey <tom@tromey.com>
10434
10435 * printcmd.c (struct display) <next>: Remove.
10436 <display>: New constructor.
10437 <exp_string>: Now a std::string.
10438 <enabled_p>: Now a bool.
10439 (display_number): Move definition earlier.
10440 (displays): Rename from display_chain. Now a std::vector.
10441 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
10442 (display_command): Update.
10443 (do_one_display, disable_display)
10444 (enable_disable_display_command, do_enable_disable_display):
10445 Update.
10446 (free_display): Remove.
10447 (clear_displays): Rewrite.
10448 (delete_display): Update.
10449 (map_display_numbers): Use function_view. Remove "data"
10450 parameter. Update.
10451 (do_delete_display): Remove.
10452 (undisplay_command): Update.
10453 (do_one_display, do_displays, disable_display)
10454 (info_display_command): Update.
10455 (do_enable_disable_display): Remove.
10456 (enable_disable_display_command)
10457 (clear_dangling_display_expressions): Update.
10458
94c93c35
TT
104592020-05-08 Tom Tromey <tom@tromey.com>
10460
10461 * symtab.c (set_symbol_cache_size)
10462 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
10463 (maintenance_print_symbol_cache_statistics): Update.
10464 * symmisc.c (print_symbol_bcache_statistics)
10465 (print_objfile_statistics, maintenance_print_objfiles)
10466 (maintenance_info_symtabs, maintenance_check_symtabs)
10467 (maintenance_expand_symtabs, maintenance_info_line_tables):
10468 Update.
10469 * symfile-debug.c (set_debug_symfile): Update.
10470 * source.c (forget_cached_source_info): Update.
10471 * python/python.c (gdbpy_progspaces): Update.
10472 * psymtab.c (maintenance_info_psymtabs): Update.
10473 * probe.c (parse_probes): Update.
10474 * linespec.c (iterate_over_all_matching_symtabs)
10475 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
10476 * guile/scm-progspace.c (gdbscm_progspaces): Update.
10477 * exec.c (exec_target::close): Update.
10478 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
10479 * breakpoint.c (print_one_breakpoint_location)
10480 (create_longjmp_master_breakpoint)
10481 (create_std_terminate_master_breakpoint): Update.
10482 * progspace.c (program_spaces): Now a std::vector.
10483 (maybe_new_address_space): Update.
10484 (add_program_space): Remove.
10485 (program_space::program_space): Update.
10486 (remove_program_space): Update.
10487 (number_of_program_spaces): Remove.
10488 (print_program_space, update_address_spaces): Update.
10489 * progspace.h (program_spaces): Change type.
10490 (ALL_PSPACES): Remove.
10491 (number_of_program_spaces): Don't declare.
10492 (struct program_space) <next>: Remove.
10493
a1fd1ac9
TT
104942020-05-08 Tom Tromey <tom@tromey.com>
10495
10496 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
10497 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
10498 (enable_break): Update.
10499 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
10500 (frv_fdpic_find_canonical_descriptor): Update.
10501 (frv_fetch_objfile_link_map): Update.
10502 * progspace.c (program_space::free_all_objfiles): Update.
10503 (program_space::solibs): New method.
10504 * progspace.h (struct program_space) <solibs>: New method.
10505 * solist.h (master_so_list): Don't declare.
10506 (ALL_SO_LIBS): Remove.
10507 * solib.h (so_list_head): Remove.
10508 (update_solib_list): Update comment.
10509 * solib.c (master_so_list): Remove.
10510 (solib_used, update_solib_list, solib_add)
10511 (info_sharedlibrary_command, clear_solib)
10512 (reload_shared_libraries_1, remove_user_added_objfile): Update.
10513
38eae084
TT
105142020-05-08 Tom Tromey <tom@tromey.com>
10515
10516 * extension.c (extension_languages): Now a std::array.
10517 (ALL_EXTENSION_LANGUAGES): Remove.
10518 (get_ext_lang_defn, get_ext_lang_of_file)
10519 (eval_ext_lang_from_control_command): Update.
10520 (finish_ext_lang_initialization)
10521 (auto_load_ext_lang_scripts_for_objfile)
10522 (ext_lang_type_printers::ext_lang_type_printers)
10523 (apply_ext_lang_type_printers)
10524 (ext_lang_type_printers::~ext_lang_type_printers)
10525 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
10526 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
10527 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
10528 (get_matching_xmethod_workers, ext_lang_colorize)
10529 (ext_lang_before_prompt): Update.
10530 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
10531
596dc4ad
TT
105322020-05-08 Tom Tromey <tom@tromey.com>
10533
10534 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
10535 overload.
10536 <swap_string, m_string>: Remove.
10537 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
10538 Update.
10539 * stabsread.c (define_symbol, read_type): Update.
10540 * linespec.c (find_linespec_symbols): Update.
10541 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
10542 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
10543 * dbxread.c (read_dbx_symtab): Update.
10544 * cp-support.h (cp_canonicalize_string_full)
10545 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
10546 Return unique_xmalloc_ptr.
10547 * cp-support.c (inspect_type): Update.
10548 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
10549 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
10550 Likewise.
10551 * c-typeprint.c (print_name_maybe_canonical): Update.
10552 * break-catch-throw.c (check_status_exception_catchpoint):
10553 Update.
10554
bf4cb9be
TV
105552020-05-08 Tom de Vries <tdevries@suse.de>
10556
10557 * infrun.c (follow_fork): Copy current_line and current_symtab to
10558 child thread.
10559
a1b68f28
SM
105602020-05-07 Simon Marchi <simon.marchi@efficios.com>
10561
10562 * async-event.c (struct async_signal_handler, struct
10563 async_event_handler): Reformat, remove typedef.
10564
98d48915
SM
105652020-05-07 Simon Marchi <simon.marchi@efficios.com>
10566
10567 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
10568 access thistype->main_type->dyn_prop_list directly.
10569
7aa91313
SM
105702020-05-07 Simon Marchi <simon.marchi@efficios.com>
10571
10572 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
10573 (remove_dyn_prop): Remove. Update all users to use
10574 type::remove_dyn_prop.
10575 * gdbtypes.c (remove_dyn_prop): Rename to...
10576 (type::remove_dyn_prop): ... this.
10577
5c54719c
SM
105782020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
10579
10580 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
10581 (add_dyn_prop): Remove. Update all users to use
10582 type::add_dyn_prop.
10583 * gdbtypes.c (add_dyn_prop): Rename to...
10584 (type::add_dyn_prop): ... this.
10585
24e99c6c
SM
105862020-05-07 Simon Marchi <simon.marchi@efficios.com>
10587
10588 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
10589 (get_dyn_prop): Remove. Update all users to use
10590 type::dyn_prop.
10591 * gdbtypes.c (get_dyn_prop): Rename to...
10592 (type::dyn_prop): ... this.
10593
0d4bf016
SM
105942020-05-06 Simon Marchi <simon.marchi@efficios.com>
10595
10596 * gdbtypes.h (struct main_type) <flag_static>: Remove.
10597
ac4a4f1c
SM
105982020-05-06 Simon Marchi <simon.marchi@efficios.com>
10599
10600 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
10601 instruction, skip it if it's there.
10602
a3bbacc1
SM
106032020-05-05 Simon Marchi <simon.marchi@efficios.com>
10604
10605 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
10606
c3236f84
SM
106072020-05-04 Simon Marchi <simon.marchi@efficios.com>
10608
10609 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
10610 * gdbtypes.c (recursive_dump_type): Remove use of
10611 TYPE_INCOMPLETE.
10612
3b6acaee
TT
106132020-05-03 Tom Tromey <tom@tromey.com>
10614
10615 * breakpoint.c (catch_command, tcatch_command): Remove.
10616 (_initialize_breakpoint): Use add_basic_prefix_cmd,
10617 add_show_prefix_cmd.
10618 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
10619 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
10620 Remove.
10621 (add_internal_problem_command): Use add_basic_prefix_cmd,
10622 add_show_prefix_cmd.
10623 * mips-tdep.c (set_mipsfpu_command): Remove.
10624 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
10625 * dwarf2/index-cache.c (set_index_cache_command): Remove.
10626 (_initialize_index_cache): Use add_basic_prefix_cmd.
10627 * memattr.c (dummy_cmd): Remove.
10628 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
10629 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
10630 (_initialize_tui_win): Use add_basic_prefix_cmd,
10631 add_show_prefix_cmd.
10632 * cli/cli-logging.c (set_logging_command): Remove.
10633 (_initialize_cli_logging): Use add_basic_prefix_cmd,
10634 add_show_prefix_cmd.
10635 (show_logging_command): Remove.
10636 * target.c (target_command): Remove.
10637 (add_target): Use add_basic_prefix_cmd.
10638
a51119cd
HD
106392020-05-02 Hannes Domani <ssbssa@yahoo.de>
10640
10641 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
10642
652fc23a 106432020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 10644
652fc23a
PW
10645 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
10646 info_command.
10647
117539e6
KR
106482020-04-30 Kamil Rytarowski <n54@gmx.com>
10649
10650 * nbsd-nat.c (nbsd_enable_proc_events)
10651 (nbsd_nat_target::post_startup_inferior): Add.
10652 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
10653 (nbsd_nat_target::update_thread_list): Rewrite.
10654 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
10655 "PTRACE_LWP_CREATE".
10656 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
10657
102e38eb 106582020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 10659
102e38eb
PW
10660 * stack.c (_initialize_stack): Remove duplicated creation
10661 of "frame" command and "f" alias.
10662
ee9d1e5f
HD
106632020-04-30 Hannes Domani <ssbssa@yahoo.de>
10664
10665 PR gdb/18706
10666 * gdbtypes.c (check_typedef): Calculate size of array of
10667 stubbed type.
10668
627c7fb8
HD
106692020-04-30 Hannes Domani <ssbssa@yahoo.de>
10670
10671 PR gdb/15559
10672 * i386-tdep.c (i386_push_dummy_call): Call
10673 i386_thiscall_push_dummy_call.
10674 (i386_thiscall_push_dummy_call): New function.
10675 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
10676 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
10677 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
10678
ffc2844e
SM
106792020-04-29 Simon Marchi <simon.marchi@efficios.com>
10680
10681 * gdbarch.sh (do_read): Add shellcheck disable directive for
10682 warning SC2162.
10683
1207375d
SM
106842020-04-29 Simon Marchi <simon.marchi@efficios.com>
10685
10686 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
10687 "referenced but not assigned" warning.
10688
9fdb2916
SM
106892020-04-29 Simon Marchi <simon.marchi@efficios.com>
10690
10691 * gdbarch.sh: Remove code that sets fallbackdefault.
10692
759cea5e
SM
106932020-04-29 Simon Marchi <simon.marchi@efficios.com>
10694
10695 * gdbarch.sh: Use shell operators && and || instead of
10696 -a and -o.
10697
cb02ab24
SM
106982020-04-29 Simon Marchi <simon.marchi@efficios.com>
10699
10700 * gdbarch.sh: Use $(...) instead of `...`.
10701
a6fc5ffc
SM
107022020-04-29 Simon Marchi <simon.marchi@efficios.com>
10703
10704 * gdbarch.sh: Use double quotes around variables.
10705
8d113d13
SM
107062020-04-29 Simon Marchi <simon.marchi@efficios.com>
10707
10708 * gdbarch.sh: Use %s with printf, instead of variables in the
10709 format string.
10710
ed6acedd
TT
107112020-04-29 Tom Tromey <tromey@adacore.com>
10712
10713 PR ada/25875:
10714 * dwarf2/read.c (update_enumeration_type_from_children): Compute
10715 type fields here.
10716 (read_enumeration_type): Call
10717 update_enumeration_type_from_children later. Update comments.
10718 (process_enumeration_scope): Don't create type fields.
10719
b68b1b58
KR
107202020-04-29 Kamil Rytarowski <n54@gmx.com>
10721
10722 * nbsd-tdep.c: Include "xml-syscall.h".
10723 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
10724
f94b2e03
KR
107252020-04-29 Kamil Rytarowski <n54@gmx.com>
10726
10727 * nbsd-nat.c: Include "sys/wait.h".
10728 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
10729 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
10730 (nbsd_nat_target::remove_exec_catchpoint)
10731 (nbsd_nat_target::set_syscall_catchpoint): Add.
10732 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
10733 (nbsd_nat_target::insert_exec_catchpoint)
10734 (nbsd_nat_target::remove_exec_catchpoint)
10735 (nbsd_nat_target::set_syscall_catchpoint): Add.
10736 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
10737 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
10738 `nbsd_get_syscall_number'.
10739
fc49bc72
TT
107402020-04-29 Tom Tromey <tom@tromey.com>
10741
10742 * stack.c (print_block_frame_labels): Remove.
10743
d642b692
HD
107442020-04-29 Hannes Domani <ssbssa@yahoo.de>
10745
10746 PR gdb/17320
10747 * ada-valprint.c (val_print_packed_array_elements): Move array
10748 end bracket to new line.
10749 (ada_val_print_string): Remove extra spaces before first array
10750 element.
10751 * c-valprint.c (c_value_print_array): Likewise.
10752 * m2-valprint.c (m2_print_array_contents): Likewise.
10753 (m2_value_print_inner): Likewise.
10754 * p-valprint.c (pascal_value_print_inner): Likewise.
10755 * valprint.c (generic_val_print_array): Likewise.
10756 (value_print_array_elements): Move first array element and array
10757 end bracket to new line.
10758
ea90f227
TV
107592020-04-29 Tom de Vries <tdevries@suse.de>
10760
10761 PR symtab/25889
10762 * linespec.c (find_method): Fix ix calculation.
10763
4498ef4f
KR
107642020-04-28 Kamil Rytarowski <n54@gmx.com>
10765
10766 * syscalls/update-netbsd.sh: New file.
10767 * syscalls/netbsd.xml: Regenerate.
10768 * data-directory/Makefile.in: Register `netbsd.xml' in
10769 `SYSCALLS_FILES'.
10770
a55e30b5
SM
107712020-04-28 Simon Marchi <simon.marchi@efficios.com>
10772
10773 * syscalls/update-freebsd.sh: Add double quotes.
10774
2b2fbab8
TT
107752020-04-28 Tom Tromey <tom@tromey.com>
10776
10777 * NEWS: Update.
10778 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
10779 (cmdpy_init): Allow class_tui.
10780
a65189c9
TV
107812020-04-28 Mark Williams <mark@myosotissp.com>
10782
10783 PR gdb/24480
10784 * dwarf2read.c: Add missing assingments to list_in_scope when
10785 start_symtab was already called.
10786
1b95cdb7
SM
107872020-04-28 Simon Marchi <simon.marchi@efficios.com>
10788
10789 PR gdb/25881
10790 * dwarf2/read.c (offset_map_type): Use
10791 gdb:hash_enum<sect_offset> as hash function.
10792
15cd93d0
TV
107932020-04-28 Tom de Vries <tdevries@suse.de>
10794
10795 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
10796 with DW_AT_signature.
10797
1eb39914
SM
107982020-04-27 Simon Marchi <simon.marchi@efficios.com>
10799
10800 * configure.ac: Remove check for fs_base/gs_base in
10801 user_regs_struct.
10802 * configure: Re-generate.
10803 * config.in: Re-generate.
10804 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
10805 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
10806 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
10807
991a3e2e
LM
108082020-04-27 Luis Machado <luis.machado@linaro.org>
10809
10810 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
10811 problematic inline frame unwinding situation.
10812 * frame.c (frame_id_computed_p): New function.
10813 * frame.h (frame_id_computed_p): New prototype.
10814
361ba0e8
TT
108152020-04-26 Tom Tromey <tom@tromey.com>
10816
10817 * command.h (enum command_class) <class_pseudo>: Remove.
10818
bc3609fd
PW
108192020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10820
10821 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
10822 and whitespace.
10823
b9771db7
KR
108242020-04-25 Kamil Rytarowski <n54@gmx.com>
10825
ec16513e
SM
10826 * inf-ptrace.c (inf_ptrace_target::wait): Remove
10827 `PT_GET_PROCESS_STATE' block.
b9771db7 10828
7151c1af
TT
108292020-04-24 Tom Tromey <tom@tromey.com>
10830
10831 * symtab.h (symbol_get_demangled_name): Don't declare.
10832 * symtab.c (symbol_get_demangled_name): Remove.
10833 (general_symbol_info::natural_name)
10834 (general_symbol_info::demangled_name): Update.
10835
906bb4c5
TT
108362020-04-24 Tom Tromey <tom@tromey.com>
10837
10838 PR rust/25025:
10839 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
10840
bcfe6157
TT
108412020-04-24 Tom Tromey <tom@tromey.com>
10842
10843 PR symtab/12707:
10844 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
10845 exists.
10846 (new_symbol): Likewise.
10847 * compile/compile-object-load.c (get_out_value_type): Use
10848 symbol_matches_search_name.
10849
f049a313
TT
108502020-04-24 Tom Tromey <tom@tromey.com>
10851
10852 * dwarf2/read.c (add_partial_symbol): Do not call
10853 compute_and_set_names.
10854
76e288d1
TT
108552020-04-24 Tom Tromey <tom@tromey.com>
10856
10857 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
10858 overload.
10859
2467f4f6
TT
108602020-04-24 Tom Tromey <tom@tromey.com>
10861
10862 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
10863 (add_psymbol_to_list): New overload. Make old overload call new
10864 one.
10865 * psympriv.h (add_psymbol_to_list): New overload.
10866
e61108c9
TT
108672020-04-24 Tom Tromey <tom@tromey.com>
10868
10869 * dwarf2/read.c (partial_die_info::read) <case
10870 DW_AT_linkage_name>: Use value_as_string.
10871 (dwarf2_string_attr): Use value_as_string.
10872 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
10873 method.
10874 * dwarf2/attribute.c (attribute::value_as_string): New method.
10875
8c87a452
TT
108762020-04-24 Tom Tromey <tom@tromey.com>
10877
10878 * symtab.c (general_symbol_info::natural_name)
10879 (general_symbol_info::demangled_name): Check for language_rust.
10880
787de330
TT
108812020-04-24 Tom Tromey <tom@tromey.com>
10882
10883 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
10884 (dwarf2_physname): ... from here.
10885 (partial_die_info::read): Add Rust "{" hack.
10886
ff985671
TT
108872020-04-24 Tom Tromey <tom@tromey.com>
10888
10889 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
10890 method.
10891 (symbol_set_demangled_name): Don't declare.
10892 * symtab.c (general_symbol_info::set_demangled_name): Rename from
10893 symbol_set_demangled_name.
10894 (general_symbol_info::set_language)
10895 (general_symbol_info::compute_and_set_names): Update.
10896 * minsyms.c (minimal_symbol_reader::install): Update.
10897 * dwarf2/read.c (new_symbol): Update.
10898
1acda803
TT
108992020-04-24 Tom Tromey <tromey@adacore.com>
10900
10901 PR python/23662:
10902 * python/py-type.c (convert_field): Handle
10903 FIELD_LOC_KIND_DWARF_BLOCK.
10904 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
10905 (typy_get_dynamic): Nw function.
10906 (type_object_getset): Add "dynamic".
10907 * NEWS: Add entry.
10908
d656f129
TT
109092020-04-24 Tom Tromey <tromey@adacore.com>
10910
10911 * ada-typeprint.c (print_choices, print_variant_part)
10912 (print_record_field_types_dynamic): New functions.
10913 (print_record_field_types): Use print_record_field_types_dynamic.
10914
7d79de9a
TT
109152020-04-24 Tom Tromey <tromey@adacore.com>
10916
10917 * dwarf2/read.c (handle_data_member_location): New overload.
10918 (dwarf2_add_field): Use it.
10919 (decode_locdesc): Add "computed" parameter. Update comment.
10920 * gdbtypes.c (is_dynamic_type_internal): Also look for
10921 FIELD_LOC_KIND_DWARF_BLOCK.
10922 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
10923 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
10924 virtual base classes.
10925 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
10926 FIELD_LOC_KIND_DWARF_BLOCK.
10927
f8e89861
TT
109282020-04-24 Tom Tromey <tromey@adacore.com>
10929
10930 * dwarf2/read.c (read_structure_type): Handle dynamic length.
10931 * gdbtypes.c (is_dynamic_type_internal): Check
10932 TYPE_HAS_DYNAMIC_LENGTH.
10933 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
10934 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
10935 New macros.
10936 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
10937 constant.
10938
9c6a1327
TT
109392020-04-24 Tom Tromey <tromey@adacore.com>
10940
10941 * dwarf2/read.c (struct variant_field): Rewrite.
10942 (struct variant_part_builder): New.
10943 (struct nextfield): Remove "variant" field. Add "offset".
10944 (struct field_info): Add "current_variant_part" and
10945 "variant_parts".
10946 (alloc_discriminant_info): Remove.
10947 (alloc_rust_variant): New function.
10948 (quirk_rust_enum): Update.
10949 (dwarf2_add_field): Set "offset" member. Don't handle
10950 DW_TAG_variant_part.
10951 (offset_map_type): New typedef.
10952 (convert_variant_range, create_one_variant)
10953 (create_one_variant_part, create_variant_parts)
10954 (add_variant_property): New functions.
10955 (dwarf2_attach_fields_to_type): Call add_variant_property.
10956 (read_structure_type): Don't handle DW_TAG_variant_part.
10957 (handle_variant_part, handle_variant): New functions.
10958 (handle_struct_member_die): Use them.
10959 (process_structure_scope): Don't handle variant parts.
10960 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
10961 (struct discriminant_info): Remove.
10962 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
10963 (struct main_type) <flag_discriminated_union>: Remove.
10964 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
10965 (rust_enum_variant): Return int. Remove "contents". Rewrite.
10966 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
10967 Update.
10968 * valops.c (value_union_variant): Remove.
10969 * value.h (value_union_variant): Don't declare.
10970
b249d2c2
TT
109712020-04-24 Tom Tromey <tromey@adacore.com>
10972
10973 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
10974 (ada_value_primitive_packed_val): Update.
10975 * ada-valprint.c (ada_value_print_1): Update.
10976 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
10977 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
10978 just an address. Use evaluate_for_locexpr_baton.
10979 (dwarf2_evaluate_property): Update.
10980 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
10981 array_view.
10982 * findvar.c (default_read_var_value): Update.
10983 * gdbtypes.c (compute_variant_fields_inner)
10984 (resolve_dynamic_type_internal): Update.
10985 (resolve_dynamic_type): Change type of valaddr parameter.
10986 * gdbtypes.h (resolve_dynamic_type): Update.
10987 * valarith.c (value_subscripted_rvalue): Update.
10988 * value.c (value_from_contents_and_address): Update.
10989
61122aa9
TT
109902020-04-24 Tom Tromey <tromey@adacore.com>
10991
10992 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
10993 "push_initial_value" parameter.
10994 (dwarf2_evaluate_property): Likewise.
10995 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
10996
ef83a141
TT
109972020-04-24 Tom Tromey <tromey@adacore.com>
10998
10999 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
11000 (variant::matches, compute_variant_fields_recurse)
11001 (compute_variant_fields_inner, compute_variant_fields): New
11002 functions.
11003 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
11004 Use resolved_type after type is made.
11005 (operator==): Add new cases.
11006 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
11007 (struct discriminant_range, struct variant, struct variant_part):
11008 New.
11009 (union dynamic_prop_data) <variant_parts, original_type>: New
11010 members.
11011 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
11012 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
11013 constants.
11014 * value.c (unpack_bits_as_long): Now public.
11015 * value.h (unpack_bits_as_long): Declare.
11016
675127ec
TT
110172020-04-24 Tom Tromey <tromey@adacore.com>
11018
11019 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
11020 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
11021
9852ceef
HD
110222020-04-24 Hannes Domani <ssbssa@yahoo.de>
11023
11024 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
11025
7632c6ce
KR
110262020-04-24 Kamil Rytarowski <n54@gmx.com>
11027
11028 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
11029 (remove_fork_catchpoint, post_startup_inferior)
11030 (post_attach): Move...
11031 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
11032 (remove_fork_catchpoint, post_startup_inferior)
11033 (post_attach): ...here.
11034 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
11035 (remove_fork_catchpoint, post_startup_inferior)
11036 (post_attach): Move...
11037 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
11038 (remove_fork_catchpoint, post_startup_inferior)
11039 (post_attach): ...here.
11040
7be2bb4f
TT
110412020-04-24 Tom Tromey <tromey@adacore.com>
11042
11043 * nat/windows-nat.h (struct windows_thread_info)
11044 <pc_adjusted>: New member.
11045 * windows-nat.c (windows_fetch_one_register): Check
11046 pc_adjusted.
11047 (windows_nat_target::get_windows_debug_event)
11048 (windows_nat_target::wait): Set pc_adjusted.
11049
f80cb3b4
TV
110502020-04-24 Tom de Vries <tdevries@suse.de>
11051
11052 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
11053 Run gdb-add-index inside temp dir.
11054
29514b87
TT
110552020-04-23 Tom Tromey <tromey@adacore.com>
11056
11057 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
11058 in loop.
11059
5939967b
LM
110602020-04-23 Luis Machado <luis.machado@linaro.org>
11061
11062 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
11063 get_frame_register instead of gdbarch_unwind_pc.
11064
70bc38f5
TV
110652020-04-23 Tom de Vries <tdevries@suse.de>
11066
11067 * symtab.c (lookup_global_symbol): Prefer def over decl.
11068
de82891c
TV
110692020-04-23 Tom de Vries <tdevries@suse.de>
11070
11071 PR symtab/25807
11072 * block.c (best_symbol, better_symbol): Promote to external.
11073 * block.h (best_symbol, better_symbol): Declare.
11074 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
11075 decl.
11076
ecc6c606
TT
110772020-04-23 Tom Tromey <tromey@adacore.com>
11078
11079 PR ada/25837:
11080 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
11081 "const char *", not a "const std::string &".
11082 <name_and_matcher::operator==>: Update.
11083 * unittests/lookup_name_info-selftests.c: Change type of
11084 "result".
11085
740480b8
TT
110862020-04-23 Tom Tromey <tom@tromey.com>
11087
11088 * inferior.h (iterate_over_inferiors): Don't declare.
11089 * inferior.c (iterate_over_inferiors): Remove.
11090 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
11091 Remove.
11092 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
11093 use iterate_over_inferiors.
11094 (darwin_resume_inferior_it)
11095 (struct resume_inferior_threads_param)
11096 (darwin_resume_inferior_threads_it): Remove.
11097 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
11098
ae3ab1f0
TV
110992020-04-23 Tom de Vries <tdevries@suse.de>
11100
11101 * blockframe.c (find_pc_partial_function): Use
11102 find_pc_sect_compunit_symtab rather than
11103 objfile->sf->qf->find_pc_sect_compunit_symtab.
11104
317d2668
TV
111052020-04-22 Tom de Vries <tdevries@suse.de>
11106
11107 PR symtab/25764
11108 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
11109 in psymtabs.
11110
eea9e357
TV
111112020-04-22 Tom de Vries <tdevries@suse.de>
11112
11113 PR symtab/25801
11114 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
11115 symtabs.
11116
3d5afab3
TV
111172020-04-22 Tom de Vries <tdevries@suse.de>
11118
11119 PR symtab/25700
11120 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
11121 CU if already created.
11122
d43b7a2d
TBA
111232020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11124
11125 * infrun.c (displaced_step_fixup): Switch to the event_thread
11126 before calling displaced_step_restore, not after.
11127
d89edf9b
MM
111282020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11129
11130 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
11131 its inferior is not recorded by us.
11132 (record_btrace_target_open): Replace call to
11133 all_non_exited_threads () with call to current_inferior
11134 ()->non_exited_threads ().
11135 (record_btrace_target::stop_recording): Likewise.
11136 (record_btrace_target::close): Likewise.
11137 (record_btrace_target::wait): Likewise.
11138 (record_btrace_target::record_stop_replaying): Likewise.
11139
5897fd49
MM
111402020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11141
11142 * btrace.c (btrace_enable): Throw an error on double enables and
11143 when enabling recording fails.
11144 (btrace_disable): Throw an error if the thread is not recorded.
11145
1a476b6d
MM
111462020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11147
11148 * record-btrace.c (record_btrace_target::fetch_registers): Forward
11149 request if we do not have a thread_info.
11150
4778a5f8
TV
111512020-04-21 Tom de Vries <tdevries@suse.de>
11152
11153 PR gdb/25471
11154 * thread.c
11155 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
11156 exception in get_frame_id.
11157
0fa7617d
TT
111582020-04-20 Tom Tromey <tromey@adacore.com>
11159
11160 * python/python.c (struct gdbpy_event): Mark move constructor as
11161 noexcept.
11162 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
11163 constructor as noexcept.
11164 * completer.h (struct completion_result): Mark move constructor as
11165 noexcept.
11166 * completer.c (completion_result::completion_result): Use
11167 initialization style. Don't call reset_match_list.
11168
ad23bda0
MS
111692020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
11170
11171 * MAINTAINERS (Write After Approval): Add myself.
11172
45e1f031
TT
111732020-04-18 Tom Tromey <tom@tromey.com>
11174
11175 * windows-tdep.c (init_w32_command_list)
11176 (w32_prefix_command_valid): Restore.
11177 (_initialize_windows_tdep): Call init_w32_command_list.
11178
08feed99
TT
111792020-04-18 Tom Tromey <tom@tromey.com>
11180
11181 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
11182 * value.c (value_fn_field): Update.
11183 * valops.c (find_function_in_inferior)
11184 (value_allocate_space_in_inferior): Update.
11185 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11186 Update.
11187 * tui/tui-source.c (tui_source_window::set_contents): Update.
11188 * symtab.c (lookup_global_or_static_symbol)
11189 (find_function_start_sal_1, skip_prologue_sal)
11190 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
11191 * symmisc.c (dump_msymbols, dump_symtab_1)
11192 (maintenance_print_one_line_table): Update.
11193 * symfile.c (init_entry_point_info, section_is_mapped)
11194 (list_overlays_command, simple_read_overlay_table)
11195 (simple_overlay_update_1): Update.
11196 * stap-probe.c (handle_stap_probe): Update.
11197 * stabsread.c (dbx_init_float_type, define_symbol)
11198 (read_one_struct_field, read_enum_type, read_range_type): Update.
11199 * source.c (info_line_command): Update.
11200 * python/python.c (gdbpy_source_objfile_script)
11201 (gdbpy_execute_objfile_script): Update.
11202 * python/py-type.c (save_objfile_types): Update.
11203 * python/py-objfile.c (py_free_objfile): Update.
11204 * python/py-inferior.c (python_new_objfile): Update.
11205 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
11206 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
11207 (maintenance_check_psymtabs): Update.
11208 * printcmd.c (info_address_command): Update.
11209 * objfiles.h (struct objfile) <arch>: New method, from
11210 get_objfile_arch.
11211 (get_objfile_arch): Don't declare.
11212 * objfiles.c (get_objfile_arch): Remove.
11213 (filter_overlapping_sections): Update.
11214 * minsyms.c (msymbol_is_function): Update.
11215 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
11216 (output_nondebug_symbol): Update.
11217 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
11218 (mdebug_expand_psymtab): Update.
11219 * machoread.c (macho_add_oso_symfile): Update.
11220 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
11221 Update.
11222 * linux-fork.c (checkpoint_command): Update.
11223 * linespec.c (convert_linespec_to_sals): Update.
11224 * jit.c (finalize_symtab): Update.
11225 * infrun.c (insert_exception_resume_from_probe): Update.
11226 * ia64-tdep.c (ia64_find_unwind_table): Update.
11227 * hppa-tdep.c (internalize_unwinds): Update.
11228 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
11229 Update.
11230 * gcore.c (call_target_sbrk): Update.
11231 * elfread.c (record_minimal_symbol, elf_symtab_read)
11232 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
11233 (elf_gnu_ifunc_resolve_by_got): Update.
11234 * dwarf2/read.c (create_addrmap_from_index)
11235 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11236 (read_debug_names_from_section)
11237 (process_psymtab_comp_unit_reader, add_partial_symbol)
11238 (add_partial_subprogram, process_full_comp_unit)
11239 (read_file_scope, read_func_scope, read_lexical_block_scope)
11240 (read_call_site_scope, dwarf2_ranges_read)
11241 (dwarf2_record_block_ranges, dwarf2_add_field)
11242 (mark_common_block_symbol_computed, read_tag_pointer_type)
11243 (read_tag_string_type, dwarf2_init_float_type)
11244 (dwarf2_init_complex_target_type, read_base_type)
11245 (partial_die_info::read, partial_die_info::read)
11246 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
11247 (dwarf2_fetch_die_loc_sect_off): Update.
11248 * dwarf2/loc.c (dwarf2_find_location_expression)
11249 (class dwarf_evaluate_loc_desc, rw_pieced_value)
11250 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
11251 (dwarf2_loc_desc_get_symbol_read_needs)
11252 (locexpr_describe_location_piece, locexpr_describe_location_1)
11253 (loclist_describe_location): Update.
11254 * dwarf2/index-write.c (write_debug_names): Update.
11255 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
11256 * dtrace-probe.c (dtrace_process_dof): Update.
11257 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
11258 (process_one_symbol): Update.
11259 * ctfread.c (ctf_init_float_type, read_base_type): Update.
11260 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
11261 (coff_read_enum_type): Update.
11262 * cli/cli-cmds.c (edit_command, list_command): Update.
11263 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
11264 * breakpoint.c (create_overlay_event_breakpoint)
11265 (create_longjmp_master_breakpoint)
11266 (create_std_terminate_master_breakpoint)
11267 (create_exception_master_breakpoint, get_sal_arch): Update.
11268 * block.c (block_gdbarch): Update.
11269 * annotate.c (annotate_source_line): Update.
11270
0743fc83
TT
112712020-04-17 Tom Tromey <tromey@adacore.com>
11272
11273 * auto-load.c (show_auto_load_cmd): Remove.
11274 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
11275 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
11276 (maintenance_print_arc_command): Remove.
11277 * tui/tui-win.c (tui_command): Remove.
11278 (tui_get_cmd_list): Use add_basic_prefix_cmd.
11279 * tui/tui-layout.c (tui_layout_command): Remove.
11280 (_initialize_tui_layout): Use add_basic_prefix_cmd.
11281 * python/python.c (user_set_python, user_show_python): Remove.
11282 (_initialize_python): Use add_basic_prefix_cmd,
11283 add_show_prefix_cmd.
11284 * guile/guile.c (set_guile_command, show_guile_command): Remove.
11285 (install_gdb_commands): Use add_basic_prefix_cmd,
11286 add_show_prefix_cmd.
11287 (info_guile_command): Remove.
11288 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
11289 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
11290 add_show_prefix_cmd.
11291 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
11292 Remove do_set and do_show parameters.
11293 * cli/cli-style.c (set_style, show_style): Remove.
11294 (_initialize_cli_style): Use add_basic_prefix_cmd,
11295 add_show_prefix_cmd.
11296 (cli_style_option::add_setshow_commands): Remove do_set and
11297 do_show parameters.
11298 (cli_style_option::add_setshow_commands): Use
11299 add_basic_prefix_cmd, add_show_prefix_cmd.
11300 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
11301 (set_style_name): Remove.
11302 * cli/cli-dump.c (dump_command, append_command): Remove.
11303 (srec_dump_command, ihex_dump_command, verilog_dump_command)
11304 (tekhex_dump_command, binary_dump_command)
11305 (binary_append_command): Remove.
11306 (_initialize_cli_dump): Use add_basic_prefix_cmd.
11307 * windows-tdep.c (w32_prefix_command_valid): Remove global.
11308 (init_w32_command_list): Remove; move into ...
11309 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
11310 * valprint.c (set_print, show_print, set_print_raw)
11311 (show_print_raw): Remove.
11312 (_initialize_valprint): Use add_basic_prefix_cmd,
11313 add_show_prefix_cmd.
11314 * typeprint.c (set_print_type, show_print_type): Remove.
11315 (_initialize_typeprint): Use add_basic_prefix_cmd,
11316 add_show_prefix_cmd.
11317 * record.c (set_record_command, show_record_command): Remove.
11318 (_initialize_record): Use add_basic_prefix_cmd,
11319 add_show_prefix_cmd.
11320 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
11321 add_show_prefix_cmd.
11322 (info_command, show_command, set_debug, show_debug): Remove.
11323 * top.h (set_history, show_history): Don't declare.
11324 * top.c (set_history, show_history): Remove.
11325 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
11326 (unset_tdesc_cmd): Remove.
11327 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
11328 add_show_prefix_cmd.
11329 * symtab.c (info_module_command): Remove.
11330 (_initialize_symtab): Use add_basic_prefix_cmd.
11331 * symfile.c (overlay_command): Remove.
11332 (_initialize_symfile): Use add_basic_prefix_cmd.
11333 * sparc64-tdep.c (info_adi_command): Remove.
11334 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
11335 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
11336 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
11337 add_show_prefix_cmd.
11338 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
11339 (_initialize_serial): Use add_basic_prefix_cmd,
11340 add_show_prefix_cmd.
11341 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
11342 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
11343 add_show_prefix_cmd.
11344 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
11345 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
11346 add_show_prefix_cmd.
11347 * riscv-tdep.c (show_riscv_command, set_riscv_command)
11348 (show_debug_riscv_command, set_debug_riscv_command): Remove.
11349 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
11350 add_show_prefix_cmd.
11351 * remote.c (remote_command, set_remote_cmd): Remove.
11352 (_initialize_remote): Use add_basic_prefix_cmd.
11353 * record-full.c (set_record_full_command)
11354 (show_record_full_command): Remove.
11355 (_initialize_record_full): Use add_basic_prefix_cmd,
11356 add_show_prefix_cmd.
11357 * record-btrace.c (cmd_set_record_btrace)
11358 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
11359 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
11360 (cmd_show_record_btrace_pt): Remove.
11361 (_initialize_record_btrace): Use add_basic_prefix_cmd,
11362 add_show_prefix_cmd.
11363 * ravenscar-thread.c (set_ravenscar_command)
11364 (show_ravenscar_command): Remove.
11365 (_initialize_ravenscar): Use add_basic_prefix_cmd,
11366 add_show_prefix_cmd.
11367 * mips-tdep.c (show_mips_command, set_mips_command)
11368 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
11369 add_show_prefix_cmd.
11370 * maint.c (maintenance_command, maintenance_info_command)
11371 (maintenance_check_command, maintenance_print_command)
11372 (maintenance_set_cmd, maintenance_show_cmd): Remove.
11373 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
11374 add_show_prefix_cmd.
11375 (show_per_command_cmd): Remove.
11376 * maint-test-settings.c (maintenance_set_test_settings_cmd):
11377 Remove.
11378 (maintenance_show_test_settings_cmd): Remove.
11379 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
11380 add_show_prefix_cmd.
11381 * maint-test-options.c (maintenance_test_options_command):
11382 Remove.
11383 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
11384 * macrocmd.c (macro_command): Remove
11385 (_initialize_macrocmd): Use add_basic_prefix_cmd.
11386 * language.c (set_check, show_check): Remove.
11387 (_initialize_language): Use add_basic_prefix_cmd,
11388 add_show_prefix_cmd.
11389 * infcmd.c (unset_command): Remove.
11390 (_initialize_infcmd): Use add_basic_prefix_cmd.
11391 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
11392 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
11393 add_show_prefix_cmd.
11394 * go32-nat.c (go32_info_dos_command): Remove.
11395 (_initialize_go32_nat): Use add_basic_prefix_cmd.
11396 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
11397 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
11398 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
11399 (_initialize_frame): Use add_basic_prefix_cmd,
11400 add_show_prefix_cmd.
11401 * dcache.c (set_dcache_command, show_dcache_command): Remove.
11402 (_initialize_dcache): Use add_basic_prefix_cmd,
11403 add_show_prefix_cmd.
11404 * cp-support.c (maint_cplus_command): Remove.
11405 (_initialize_cp_support): Use add_basic_prefix_cmd.
11406 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
11407 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
11408 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
11409 add_basic_prefix_cmd, add_show_prefix_cmd.
11410 * breakpoint.c (save_command): Remove.
11411 (_initialize_breakpoint): Use add_basic_prefix_cmd.
11412 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
11413 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
11414 add_show_prefix_cmd.
11415 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
11416 (set_ada_command, show_ada_command): Remove.
11417 (_initialize_ada_language): Use add_basic_prefix_cmd,
11418 add_show_prefix_cmd.
11419 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
11420
3557f442
KR
114212020-04-16 Kamil Rytarowski <n54@gmx.com>
11422
11423 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
11424 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
11425
16197208
SM
114262020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11427
11428 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
11429 warning messages.
11430
00ac85d3
SM
114312020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11432
11433 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
11434 import table is not at beginning of .idata section.
11435
381ce63f
PA
114362020-04-16 Pedro Alves <palves@redhat.com>
11437
11438 * inferior.c (delete_inferior): Use delete operator directly
11439 instead of delete_program_space.
11440 * progspace.c (add_program_space): New, factored out from
11441 program_space::program_space.
11442 (remove_program_space): New, factored out from
11443 delete_program_space.
11444 (program_space::program_space): Remove intro comment. Rewrite.
11445 (program_space::~program_space): Remove intro comment. Call
11446 remove_program_space.
11447 (delete_program_space): Delete.
11448 * progspace.h (program_space::program_space): Make explicit. Move
11449 intro comment here, adjusted.
11450 (program_space::~program_space): Move intro comment here,
11451 adjusted.
11452 (delete_program_space): Remove.
11453
a010605f
TT
114542020-04-16 Tom Tromey <tromey@adacore.com>
11455
11456 * windows-nat.c (windows_nat::handle_access_violation): New
11457 function.
11458 * nat/windows-nat.h (handle_access_violation): Declare.
11459 * nat/windows-nat.c (handle_exception): Move Cygwin code to
11460 windows-nat.c. Call handle_access_violation.
11461
efba5c23
TV
114622020-04-16 Tom de Vries <tdevries@suse.de>
11463
11464 PR symtab/25791
11465 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
11466 CUs without psymtab.
11467
97ed802d
KB
114682020-04-16 Kevin Buettner <kevinb@redhat.com>
11469
11470 * python/python.c (do_start_initialization): Don't call
11471 PyEval_InitThreads for Python 3.9 and beyond.
11472
c7d64809
KR
114732020-04-15 Kamil Rytarowski <n54@gmx.com>
11474
11475 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
11476 thread functions.
11477 (obsd_nat_target::wait): Likewise.
11478
ce127a96
TT
114792020-04-15 Tom Tromey <tromey@adacore.com>
11480
11481 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
11482 (DEBUG_EXCEPT): Use debug_printf.
11483
99f1bc6a
AB
114842020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
11485
11486 * completer.c (class completion_tracker::completion_hash_entry)
11487 <hash_name>: New member function.
11488 (completion_tracker::discard_completions): New callback to hash a
11489 completion_hash_entry, pass this to htab_create_alloc.
11490
a0e9b532
JT
114912016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
11492
11493 * windows-nat.c (windows_make_so): Warn rather than stopping with
11494 an error if realpath() fails.
11495
06ca5dd4
KR
114962020-04-14 Kamil Rytarowski <n54@gmx.com>
11497
11498 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
11499 (nbsd_nat_target::info_proc): Add do_status.
11500
194d088f
TV
115012020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
11502 Tom de Vries <tdevries@suse.de>
11503
11504 PR symtab/25718
11505 * psympriv.h (struct partial_symtab::read_symtab)
11506 (struct partial_symtab::expand_psymtab)
11507 (struct partial_symtab::read_dependencies): Update comments.
11508 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
11509 read_symtab for includer.
11510 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
11511 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
11512 (struct dwarf2_include_psymtab::m_readin): Remove.
11513 (struct dwarf2_include_psymtab::includer): New member function.
11514 (dwarf2_psymtab::expand_psymtab): Assert !readin.
11515
c1a66c06
TV
115162020-04-14 Tom de Vries <tdevries@suse.de>
11517
11518 PR symtab/25720
11519 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
11520 with NULL symbol_matcher and lookup_name.
11521 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
11522 and lookup_name.
11523 * dwarf2/read.c (dw2_expand_symtabs_matching)
11524 (dw2_debug_names_expand_symtabs_matching): Same.
11525 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
11526 Make lookup_name a pointer. Update comment.
11527 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
11528 lookup_name being a pointer.
11529 * symfile.c (expand_symtabs_matching): Same.
11530 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
11531 * linespec.c (iterate_over_all_matching_symtabs): Same.
11532
400b5eca
TT
115332020-04-13 Tom Tromey <tom@tromey.com>
11534
11535 * run-on-main-thread.c: Update include.
11536 * unittests/main-thread-selftests.c: Update include.
11537 * tui/tui-win.c: Update include.
11538 * tui/tui-io.c: Update include.
11539 * tui/tui-interp.c: Update include.
11540 * tui/tui-hooks.c: Update include.
11541 * top.h: Update include.
11542 * top.c: Update include.
11543 * ser-base.c: Update include.
11544 * remote.c: Update include.
11545 * remote-notif.c: Update include.
11546 * remote-fileio.c: Update include.
11547 * record-full.c: Update include.
11548 * record-btrace.c: Update include.
11549 * python/python.c: Update include.
11550 * posix-hdep.c: Update include.
11551 * mingw-hdep.c: Update include.
11552 * mi/mi-main.c: Update include.
11553 * mi/mi-interp.c: Update include.
11554 * main.c: Update include.
11555 * linux-nat.c: Update include.
11556 * interps.c: Update include.
11557 * infrun.c: Update include.
11558 * inf-loop.c: Update include.
11559 * event-top.c: Update include.
11560 * event-loop.c: Move to ../gdbsupport/.
11561 * event-loop.h: Move to ../gdbsupport/.
11562 * async-event.h: Update include.
11563 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
11564
93b54c8e
TT
115652020-04-13 Tom Tromey <tom@tromey.com>
11566
11567 * tui/tui-win.c: Include async-event.h.
11568 * remote.c: Include async-event.h.
11569 * remote-notif.c: Include async-event.h.
11570 * record-full.c: Include async-event.h.
11571 * record-btrace.c: Include async-event.h.
11572 * infrun.c: Include async-event.h.
11573 * event-top.c: Include async-event.h.
11574 * event-loop.h: Move some declarations to async-event.h.
11575 * event-loop.c: Don't include ser-event.h or top.h. Move some
11576 code to async-event.c.
11577 * async-event.h: New file.
11578 * async-event.c: New file.
11579 * Makefile.in (COMMON_SFILES): Add async-event.c.
11580 (HFILES_NO_SRCDIR): Add async-event.h.
11581
c1cd3163
TT
115822020-04-13 Tom Tromey <tom@tromey.com>
11583
11584 * utils.c (flush_streams): New function.
11585 * event-loop.c (gdb_wait_for_event): Call flush_streams.
11586
29f2bf4f
TT
115872020-04-13 Tom Tromey <tom@tromey.com>
11588
11589 * event-loop.c (handle_file_event): Use warning, not
11590 printf_unfiltered.
11591
98029d02
TT
115922020-04-13 Tom Tromey <tom@tromey.com>
11593
11594 * event-loop.c: Include <chrono>.
11595
06cc9596
TT
115962020-04-13 Tom Tromey <tom@tromey.com>
11597
11598 * gdb_select.h: Move to ../gdbsupport/.
11599 * event-loop.c: Update include path.
11600 * top.c: Update include path.
11601 * ser-base.c: Update include path.
11602 * ui-file.c: Update include path.
11603 * ser-tcp.c: Update include path.
11604 * guile/scm-ports.c: Update include path.
11605 * posix-hdep.c: Update include path.
11606 * ser-unix.c: Update include path.
11607 * gdb_usleep.c: Update include path.
11608 * mingw-hdep.c: Update include path.
11609 * inflow.c: Update include path.
11610 * infrun.c: Update include path.
11611 * event-top.c: Update include path.
11612
8ae8e197
TT
116132020-04-13 Tom Tromey <tom@tromey.com>
11614
11615 * configure: Rebuild.
11616 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
11617
58cf28e8
TT
116182020-04-13 Tom Tromey <tom@tromey.com>
11619
11620 * event-loop.h (start_event_loop): Don't declare.
11621 * event-loop.c (start_event_loop): Move...
11622 * main.c (start_event_loop): ...here. Now static.
11623
b7f999ae
SDJ
116242020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
11625
11626 * MAINTAINERS: Update my email address.
11627
1085dfd4
KR
116282020-04-12 Kamil Rytarowski <n54@gmx.com>
11629
11630 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
11631 IP_ALL.
11632
49d1d1f5
KR
116332020-04-12 Kamil Rytarowski <n54@gmx.com>
11634
11635 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 11636 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 11637
b4848d2a
KR
116382020-04-12 Kamil Rytarowski <n54@gmx.com>
11639
11640 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 11641 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 11642
51c133d5
KR
116432020-04-12 Kamil Rytarowski <n54@gmx.com>
11644
11645 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
11646
54b8cbd0
KR
116472020-04-11 Kamil Rytarowski <n54@gmx.com>
11648
11649 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
11650 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
11651 (nbsd_nat_target::info_proc): New functions.
11652 * nbsd-nat.c (kinfo_get_vmmap): New function.
11653 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
11654 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
11655 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
11656 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
11657 functions.
11658 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
11659 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
11660 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
11661 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
11662 (KINFO_VME_FLAG_GROWS_DOWN): New.
11663
cf83625d
AS
116642020-04-10 Artur Shepilko <nomadbyte@gmail.com>
11665
11666 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
11667 bit shift.
11668
0c4311ab
TT
116692020-04-10 Tom Tromey <tromey@adacore.com>
11670
11671 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
11672
3e65b3e9
TT
116732020-04-10 Tom Tromey <tromey@adacore.com>
11674
11675 * symtab.c (get_symbol_address, get_msymbol_address): Skip
11676 separate debug files.
11677
13302e95
HD
116782020-04-10 Hannes Domani <ssbssa@yahoo.de>
11679
11680 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11681 Move to...
11682 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11683 ... here.
11684 * windows-nat.c (windows_nat_target::get_windows_debug_event):
11685 Check for STATUS_WX86_BREAKPOINT.
11686 (windows_nat_target::wait): Same.
11687
bdfc1e8a
TV
116882020-04-10 Tom de Vries <tdevries@suse.de>
11689
11690 PR cli/25808
11691 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
11692
f4460aec
SM
116932020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11694
11695 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
11696 (Write After Approval): Remove Tom de Vries.
11697
a25198bb
BE
116982020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
11699
11700 revert partially:
11701 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11702
aac66a4c
SM
11703 * buildsym.c (record_line): Fix undefined behavior and preserve
11704 lines at eof.
a25198bb 11705
206c98a6
KR
117062020-04-09 Kamil Rytarowski <n54@gmx.com>
11707
11708 * auxv.h (svr4_auxv_parse): New.
11709 * auxv.c (default_auxv_parse): Split into default_auxv_parse
11710 and generic_auxv_parse.
11711 (svr4_auxv_parse): Add.
11712 * obsd-tdep.c: Include "auxv.h".
11713 (obsd_auxv_parse): Remove.
11714 (obsd_init_abi): Remove comment.
11715 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
11716 from `obsd_auxv_parse' to `svr4_auxv_parse'.
11717 * nbsd-tdep.c: Include "auxv.h".
11718 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
11719
71fbdbaf
TT
117202020-04-08 Tom Tromey <tromey@adacore.com>
11721
11722 * nat/windows-nat.h (last_wait_event): Don't declare.
11723 (wait_for_debug_event): Update comment.
11724 * nat/windows-nat.c (last_wait_event): Now static.
11725
2c1d95e8
TT
117262020-04-08 Tom Tromey <tromey@adacore.com>
11727
11728 * windows-nat.c (wait_for_debug_event): Move to
11729 nat/windows-nat.c.
11730 * nat/windows-nat.h (wait_for_debug_event): Declare.
11731 * nat/windows-nat.c (wait_for_debug_event): Move from
11732 windows-nat.c. No longer static.
11733
d2977bc4
TT
117342020-04-08 Tom Tromey <tromey@adacore.com>
11735
11736 * windows-nat.c (get_windows_debug_event): Use
11737 fetch_pending_stop.
11738 * nat/windows-nat.h (fetch_pending_stop): Declare.
11739 * nat/windows-nat.c (fetch_pending_stop): New function.
11740
e758e19c
TT
117412020-04-08 Tom Tromey <tromey@adacore.com>
11742
11743 * windows-nat.c (windows_continue): Use matching_pending_stop and
11744 continue_last_debug_event.
11745 * nat/windows-nat.h (matching_pending_stop)
11746 (continue_last_debug_event): Declare.
11747 * nat/windows-nat.c (DEBUG_EVENTS): New define.
11748 (matching_pending_stop, continue_last_debug_event): New
11749 functions.
11750
8d30e395
TT
117512020-04-08 Tom Tromey <tromey@adacore.com>
11752
11753 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
11754 (handle_exception_result): Move to nat/windows-nat.h.
11755 (DEBUG_EXCEPTION_SIMPLE): Remove.
11756 (windows_nat::handle_ms_vc_exception): New function.
11757 (handle_exception): Move to nat/windows-nat.c.
11758 (get_windows_debug_event): Update.
11759 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
11760 nat/windows-nat.c.
11761 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
11762 (handle_exception_result): Move from windows-nat.c.
11763 (handle_exception): Declare.
11764 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
11765 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
11766 windows-nat.c.
11767
29de418d
TT
117682020-04-08 Tom Tromey <tromey@adacore.com>
11769
11770 * windows-nat.c (exception_count, event_count): Remove.
11771 (handle_exception, get_windows_debug_event)
11772 (do_initial_windows_stuff): Update.
11773
a816ba18
TT
117742020-04-08 Tom Tromey <tromey@adacore.com>
11775
11776 * windows-nat.c (windows_nat::handle_load_dll)
11777 (windows_nat::handle_unload_dll): Rename. No longer static.
11778 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
11779 Declare.
11780
a00caa12
TT
117812020-04-08 Tom Tromey <tromey@adacore.com>
11782
11783 * complaints.h (stop_whining): Declare at top-level.
11784 (complaint): Don't declare stop_whining.
11785
d41b524f
TT
117862020-04-08 Tom Tromey <tromey@adacore.com>
11787
11788 * windows-nat.c (windows_nat::handle_output_debug_string):
11789 Rename. No longer static.
11790 * nat/windows-nat.h (handle_output_debug_string): Declare.
11791
3c76026d
TT
117922020-04-08 Tom Tromey <tromey@adacore.com>
11793
11794 * 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 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
11798 (display_selectors, fake_create_process)
11799 (get_windows_debug_event): Update.
11800 * nat/windows-nat.h (current_process_handle, current_process_id)
11801 (main_thread_id, last_sig, current_event, last_wait_event)
11802 (current_windows_thread, desired_stop_thread_id, pending_stops)
11803 (struct pending_stop, siginfo_er): Move from windows-nat.c.
11804 * nat/windows-nat.c (current_process_handle, current_process_id)
11805 (main_thread_id, last_sig, current_event, last_wait_event)
11806 (current_windows_thread, desired_stop_thread_id, pending_stops)
11807 (siginfo_er): New globals. Move from windows-nat.c.
11808
9d8679cc
TT
118092020-04-08 Tom Tromey <tromey@adacore.com>
11810
11811 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
11812 (handle_load_dll): Update.
11813 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
11814
28688adf
TT
118152020-04-08 Tom Tromey <tromey@adacore.com>
11816
11817 * windows-nat.c (enum thread_disposition_type): Move to
11818 nat/windows-nat.h.
11819 (windows_nat::thread_rec): Rename from thread_rec. No longer
11820 static.
11821 (windows_add_thread, windows_nat_target::fetch_registers)
11822 (windows_nat_target::store_registers, handle_exception)
11823 (windows_nat_target::resume, get_windows_debug_event)
11824 (windows_nat_target::get_tib_address)
11825 (windows_nat_target::thread_name)
11826 (windows_nat_target::thread_alive): Update.
11827 * nat/windows-nat.h (enum thread_disposition_type): Move from
11828 windows-nat.c.
11829 (thread_rec): Declare.
11830
4834dad0
TT
118312020-04-08 Tom Tromey <tromey@adacore.com>
11832
11833 * windows-nat.c: Add "using namespace".
11834 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
11835 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
11836
65bafd5b
TT
118372020-04-08 Tom Tromey <tromey@adacore.com>
11838
11839 * nat/windows-nat.h (struct windows_thread_info): Declare
11840 destructor.
11841 * nat/windows-nat.c (~windows_thread_info): New.
11842
0a4afda3
TT
118432020-04-08 Tom Tromey <tromey@adacore.com>
11844
11845 PR gdb/22992
11846 * windows-nat.c (current_event): Update comment.
11847 (last_wait_event, desired_stop_thread_id): New globals.
11848 (struct pending_stop): New.
11849 (pending_stops): New global.
11850 (windows_nat_target) <stopped_by_sw_breakpoint>
11851 <supports_stopped_by_sw_breakpoint>: New methods.
11852 (windows_fetch_one_register): Add assertions. Adjust PC.
11853 (windows_continue): Handle pending stops. Suspend other threads
11854 when stepping. Use last_wait_event
11855 (wait_for_debug_event): New function.
11856 (get_windows_debug_event): Use wait_for_debug_event. Handle
11857 pending stops. Queue spurious stops.
11858 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
11859 (windows_nat_target::kill): Use wait_for_debug_event.
11860 * nat/windows-nat.h (struct windows_thread_info)
11861 <stopped_at_software_breakpoint>: New field.
11862 * nat/windows-nat.c (windows_thread_info::resume): Clear
11863 stopped_at_software_breakpoint.
11864
8e61ebec
TT
118652020-04-08 Tom Tromey <tromey@adacore.com>
11866
11867 * windows-nat.c (enum thread_disposition_type): New.
11868 (thread_rec): Replace "get_context" parameter with "disposition";
11869 change type.
11870 (windows_add_thread, windows_nat_target::fetch_registers)
11871 (windows_nat_target::store_registers, handle_exception)
11872 (windows_nat_target::resume, get_windows_debug_event)
11873 (windows_nat_target::get_tib_address)
11874 (windows_nat_target::thread_name)
11875 (windows_nat_target::thread_alive): Update.
11876
98a03287
TT
118772020-04-08 Tom Tromey <tromey@adacore.com>
11878
11879 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
11880 (windows_continue): Use windows_continue::resume.
11881 * nat/windows-nat.h (struct windows_thread_info) <suspend,
11882 resume>: Declare new methods.
11883 * nat/windows-nat.c: New file.
11884 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
11885
7c7411bc
TT
118862020-04-08 Tom Tromey <tromey@adacore.com>
11887
11888 * windows-nat.c (windows_add_thread, windows_delete_thread)
11889 (windows_nat_target::fetch_registers)
11890 (windows_nat_target::store_registers, fake_create_process)
11891 (windows_nat_target::resume, windows_nat_target::resume)
11892 (get_windows_debug_event, windows_nat_target::wait)
11893 (windows_nat_target::pid_to_str)
11894 (windows_nat_target::get_tib_address)
11895 (windows_nat_target::get_ada_task_ptid)
11896 (windows_nat_target::thread_name)
11897 (windows_nat_target::thread_alive): Use lwp, not tid.
11898
2950fdf7
TT
118992020-04-08 Tom Tromey <tromey@adacore.com>
11900
11901 * windows-nat.c (handle_exception)
11902 (windows_nat_target::thread_name): Update.
11903 * nat/windows-nat.h (windows_thread_info): Remove destructor.
11904 <name>: Now unique_xmalloc_ptr.
11905
62fe396b
TT
119062020-04-08 Tom Tromey <tromey@adacore.com>
11907
11908 * windows-nat.c (thread_rec)
11909 (windows_nat_target::fetch_registers): Update.
11910 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
11911 Update comment.
11912 <debug_registers_changed, reload_context>: Now bool.
11913
e9534bd2
TT
119142020-04-08 Tom Tromey <tromey@adacore.com>
11915
11916 * windows-nat.c (windows_add_thread): Use new.
11917 (windows_init_thread_list, windows_delete_thread): Use delete.
11918 (get_windows_debug_event): Update.
11919 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
11920 destructor, and initializers.
11921
ae1f8880
TT
119222020-04-08 Tom Tromey <tromey@adacore.com>
11923
11924 * windows-nat.c (struct windows_thread_info): Remove.
11925 * nat/windows-nat.h: New file.
11926
55a1e039
TT
119272020-04-08 Tom Tromey <tromey@adacore.com>
11928
11929 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
11930 (thread_rec, windows_add_thread, windows_delete_thread)
11931 (windows_continue): Update.
11932
93366324
TT
119332020-04-08 Tom Tromey <tromey@adacore.com>
11934
11935 * windows-nat.c (struct windows_thread_info): Remove typedef.
11936 (thread_head): Remove.
11937 (thread_list): New global.
11938 (thread_rec, windows_add_thread, windows_init_thread_list)
11939 (windows_delete_thread, windows_continue): Update.
11940
0f2265e2
SM
119412020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11942
11943 * windows-tdep.h (windows_init_abi): Add comment.
11944 (cygwin_init_abi): New declaration.
11945 * windows-tdep.c: Split signal enumeration in two, one for
11946 Windows and one for Cygwin.
11947 (windows_gdb_signal_to_target): Only deal with signal of the
11948 Windows OS ABI.
11949 (cygwin_gdb_signal_to_target): New function.
11950 (windows_init_abi): Rename to windows_init_abi_common, don't set
11951 gdb_signal_to_target gdbarch method. Add new new function with
11952 this name.
11953 (cygwin_init_abi): New function.
11954 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
11955 comment. Don't call windows_init_abi.
11956 (amd64_windows_init_abi): Add comment, call windows_init_abi.
11957 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
11958 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
11959 i386_windows_init_abi_common, don't call windows_init_abi. Add
11960 a new function of this name.
11961 (i386_cygwin_init_abi): New function.
11962 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
11963 OS ABI Cygwin.
11964
3810f182
SM
119652020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11966
11967 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
11968 parameter.c.
11969 (dwarf2_read_gdb_index): Update.
11970
063f8e80
KR
119712020-04-07 Kamil Rytarowski <n54@gmx.com>
11972
11973 * nbsd-tdep.c: Include "objfiles.h".
11974 (nbsd_skip_solib_resolver): New.
11975 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
11976
85a9510c 119772020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11978
11979 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
11980 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
11981 with DW_LLE_base_addressx are being emitted in DWARFv5.
11982 Add the newly added kind DW_LOC_OFFSET_PAIR also.
11983 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
11984 unsigned integer.
11985
9fc3eaae 119862020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11987
11988 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
11989 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
11990 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
11991 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
11992 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
11993 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
11994 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
11995
11996
41144253 119972020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11998
11999 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
12000 (read_loclist_index): New function definition.
12001 (lookup_loclist_base): New function definition.
12002 (read_loclist_header): New function definition.
12003 (dwarf2_cu): Add loclist_base and loclist_header field.
12004 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
12005 (read_full_die_1): Read the value of DW_AT_loclists_base.
12006 (read_attribute_reprocess): Handle DW_FORM_loclistx.
12007 (read_attribute_value): Handle DW_FORM_loclistx.
12008 (skip_one_die): Handle DW_FORM_loclistx.
12009 (loclist_header): New structure declaration.
12010 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
12011
9f4e76a4
SM
120122020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12013
12014 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
12015 constructor. Remove `addr` parameter from other constructor and
12016 add `per_cu` parameter.
12017 * dwarf2/read.c (create_partial_symtab): Update.
12018
25c11aca
TV
120192020-04-07 Tom de Vries <tdevries@suse.de>
12020
12021 PR symtab/25796
12022 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
12023 (partial_die_info::fixup): Inherit has_const_value.
12024
5707e24b
TV
120252020-04-07 Tom de Vries <tdevries@suse.de>
12026
12027 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
12028 symbols without address.
12029
05f00e22
KR
120302020-04-06 Kamil Rytarowski <n54@gmx.com>
12031
12032 * nbsd-nat.h (struct thread_info): Add forward declaration.
12033 (nbsd_nat_target::thread_alive): Add.
12034 (nbsd_nat_target::thread_name): Likewise.
12035 (nbsd_nat_target::update_thread_list): Likewise.
12036 (update_thread_list::post_attach): Likewise.
12037 (post_attach::pid_to_str): Likewise.
12038 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
12039 (nbsd_thread_lister): Add.
12040 (nbsd_nat_target::thread_alive): Likewise.
12041 (nbsd_nat_target::thread_name): Likewise.
12042 (nbsd_add_threads): Likewise.
12043 (update_thread_list::post_attach): Likewise.
12044 (nbsd_nat_target::update_thread_list): Likewise.
12045 (post_attach::pid_to_str): Likewise.
12046
6ee448cc
TT
120472020-04-06 Tom Tromey <tromey@adacore.com>
12048
12049 * ada-valprint.c (print_variant_part): Extract the variant field.
12050 (print_field_values): Use the field as the outer value when
12051 recursing.
12052
dea34e8c
TT
120532020-04-06 Tom Tromey <tromey@adacore.com>
12054
12055 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
12056 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
12057 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
12058 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
12059 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
12060
93689ce9
TT
120612020-04-06 Tom Tromey <tromey@adacore.com>
12062
12063 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
12064 TYPE_CODE_ERROR.
12065
79743962
KR
120662020-04-06 Kamil Rytarowski <n54@gmx.com>
12067
12068 * nbsd-tdep.c: Include "gdbarch.h".
12069 Define enum with NetBSD signal numbers.
12070 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
12071 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
12072 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
12073 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
12074 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
12075 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
12076 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
12077 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12078 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
12079 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
12080 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
12081 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
12082
9e7c9a03
HD
120832020-04-03 Hannes Domani <ssbssa@yahoo.de>
12084
12085 PR gdb/25325
12086 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
12087
d9e49b61
TT
120882020-04-03 Tom Tromey <tromey@adacore.com>
12089
12090 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
12091 Read constant block.
12092
e0fc5c3f
SM
120932020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12094
12095 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
12096 (gdb_bfd_get_full_section_contents): New declaration.
12097 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
12098 * windows-tdep.c (is_linked_with_cygwin_dll): Use
12099 gdb_bfd_get_full_section_contents.
12100
e2ff18a0
SM
121012020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12102
12103 * exec.c (build_section_table): Replace internal_error with
12104 gdb_assert.
12105 (section_table_xfer_memory_partial): Likewise.
12106 * mdebugread.c (parse_partial_symbols): Likewise.
12107 * psymtab.c (lookup_partial_symbol): Likewise.
12108 * utils.c (wrap_here): Likewise.
12109
0830d301
TT
121102020-04-02 Tom Tromey <tromey@adacore.com>
12111
12112 * f-lang.c (build_fortran_types): Use arch_type to initialize
12113 builtin_complex_s32 in the TYPE_CODE_ERROR case.
12114
e7da7f8f
TT
121152020-04-02 Tom Tromey <tromey@adacore.com>
12116
12117 * dwarf2/read.c (partial_die_info::read): Do not create a vector
12118 of attributes.
12119
c90d28ac
AB
121202020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
12121 Bernd Edlinger <bernd.edlinger@hotmail.de>
12122 Tom Tromey <tromey@adacore.com>
12123
12124 * buildsym.c (buildsym_compunit::record_line): Remove
12125 deduplication code.
12126
1aa98955
TV
121272020-04-02 Tom de Vries <tdevries@suse.de>
12128
12129 PR ada/24671
12130 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
12131
d3214198
TV
121322020-04-02 Tom de Vries <tdevries@suse.de>
12133
12134 * dwarf2/read.c (dwarf2_gdb_index_functions,
12135 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
12136 NULL.
12137 * psymtab.c (psym_lookup_global_symbol_language): New function.
12138 (psym_functions): Init psym_lookup_global_symbol_language with
12139 psym_lookup_global_symbol_language.
12140 * symfile-debug.c (debug_sym_quick_functions): Init
12141 lookup_global_symbol_language with NULL.
12142 * symfile.c (set_initial_language): Remove fixme comment.
12143 * symfile.h (struct quick_symbol_functions): Add
12144 lookup_global_symbol_language.
12145 * symtab.c (find_quick_global_symbol_language): New function.
12146 (find_main_name): Use find_quick_global_symbol_language.
12147
2836752f
SM
121482020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
12149
12150 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
12151
64dc2d4b
BE
121522020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12153
12154 * buildsym.c (record_line): Fix undefined behavior and preserve
12155 lines at eof.
12156
bbe3dc41
BE
121572020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12158
12159 * buildsym.c (record_line): Fix the resizing condition.
12160
6b4a335b
TT
121612020-04-01 Tom Tromey <tom@tromey.com>
12162
12163 * value.h (value_literal_complex): Add comment.
12164 * valops.c (value_literal_complex): Refer to value.h.
12165
3638a098
TT
121662020-04-01 Tom Tromey <tom@tromey.com>
12167
12168 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
12169 (scalar_type): New rule, from typebase.
12170 (typebase): Use scalar_type. Recognize complex types.
12171 (field_name): Handle FLOAT_KEYWORD.
12172 (ident_tokens): Add _Complex and __complex__.
12173
c34e8714
TT
121742020-04-01 Tom Tromey <tom@tromey.com>
12175
12176 PR exp/25299:
12177 * valarith.c (promotion_type, complex_binop): New functions.
12178 (scalar_binop): Handle complex numbers. Use promotion_type.
12179 (value_pos, value_neg, value_complement): Handle complex numbers.
12180
fa649bb7
TT
121812020-04-01 Tom Tromey <tom@tromey.com>
12182
12183 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
12184 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
12185 (parse_number): Handle complex numbers.
12186
981c08ce
TT
121872020-04-01 Tom Tromey <tom@tromey.com>
12188
12189 * c-valprint.c (c_decorations): Change complex suffix to "i".
12190
4c99290d
TT
121912020-04-01 Tom Tromey <tom@tromey.com>
12192
12193 * valprint.c (generic_value_print_complex): Use accessors.
12194 * value.h (value_real_part, value_imaginary_part): Declare.
12195 * valops.c (value_real_part, value_imaginary_part): New
12196 functions.
12197 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
12198
5b930b45
TT
121992020-04-01 Tom Tromey <tom@tromey.com>
12200
12201 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
12202 (read_range_type): Update.
12203 * mdebugread.c (basic_type): Update.
12204 * go-lang.c (build_go_types): Use init_complex_type.
12205 * gdbtypes.h (struct main_type) <complex_type>: New member.
12206 (init_complex_type): Update.
12207 (arch_complex_type): Don't declare.
12208 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
12209 Make name if none given. Use alloc_type_copy. Look for cached
12210 complex type.
12211 (arch_complex_type): Remove.
12212 (gdbtypes_post_init): Use init_complex_type.
12213 * f-lang.c (build_fortran_types): Use init_complex_type.
12214 * dwarf2/read.c (read_base_type): Update.
12215 * d-lang.c (build_d_types): Use init_complex_type.
12216 * ctfread.c (read_base_type): Update.
12217
53cccef1
TBA
122182020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12219
12220 * infrun.c (stop_all_threads): Update assertion, plus when
12221 stopping threads, take into account that we might be trying
12222 to stop an all-stop target.
12223 (stop_waiting): Call 'stop_all_threads' if there exists a
12224 non-stop target.
12225
a0714d30
TBA
122262020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12227
12228 * target.h (exists_non_stop_target): New function declaration.
12229 * target.c (exists_non_stop_target): New function.
12230
60e22c1e
HD
122312020-04-01 Hannes Domani <ssbssa@yahoo.de>
12232
12233 PR gdb/24789
12234 * eval.c (is_integral_or_integral_reference): New function.
12235 (evaluate_subexp_standard): Allow integer references in
12236 pointer arithmetic.
12237
e139a727
TBA
122382020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12239
12240 * remote.c (remote_target::remote_parse_stop_reply): Remove the
12241 check for no ptid in the stop reply when the target is non-stop.
12242
e0802d59
TT
122432020-04-01 Tom Tromey <tromey@adacore.com>
12244
12245 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
12246 "name" parameter to rvalue reference. Initialize m_name_holder.
12247 <lookup_name_info>: New overloads.
12248 <name>: Return gdb::string_view.
12249 <c_str>: New method.
12250 <make_ignore_params>: Update.
12251 <search_name_hash>: Update.
12252 <language_lookup_name>: Return const char *.
12253 <m_name>: Change type.
12254 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
12255 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
12256 (lookup_name_info::match_any): Update.
12257 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
12258 Update.
12259 * minsyms.c (linkage_name_str): Update.
12260 * language.c (default_symbol_name_matcher): Update.
12261 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
12262 Update.
12263 * ada-lang.c (ada_fold_name): Change parameter to string_view.
12264 (ada_lookup_name_info::ada_lookup_name_info): Update.
12265 (literal_symbol_name_matcher): Update.
12266
8c072cb6
TT
122672020-04-01 Tom Tromey <tromey@adacore.com>
12268
12269 * psymtab.c (psymtab_search_name): Remove function.
12270 (psym_lookup_symbol): Create search name and lookup name here.
12271 (lookup_partial_symbol): Remove "name" parameter; add
12272 lookup_name.
12273 (psym_expand_symtabs_for_function): Update.
12274
6f29a534
TT
122752020-03-31 Joel Jones <joelkevinjones@gmail.com>
12276
12277 PR tui/25597:
12278 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
12279
af62665e
TT
122802020-03-31 Tom Tromey <tromey@adacore.com>
12281
12282 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
12283 memcpy.
12284
d1a89da5
NC
122852020-03-30 Nelson Chu <nelson.chu@sifive.com>
12286
12287 * features/riscv/32bit-csr.xml: Regenerated.
12288 * features/riscv/64bit-csr.xml: Regenerated.
12289
d8af9068
TT
122902020-03-30 Tom Tromey <tromey@adacore.com>
12291
12292 * ada-valprint.c (print_variant_part): Update.
12293 * ada-lang.h (ada_which_variant_applies): Update.
12294 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
12295 outer_valaddr parameters; replace with "outer" value parameter.
12296 (to_fixed_variant_branch_type): Update.
12297
227c0bf4
PFC
122982020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12299
12300 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
12301 <list>. Remove inclusion of observable.h.
12302 (PPC_DEBUG_CURRENT_VERSION): Move up define.
12303 (struct arch_lwp_info): New struct.
12304 (class ppc_linux_dreg_interface): New class.
12305 (struct ppc_linux_process_info): New struct.
12306 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
12307 <low_new_clone, low_forget_process, low_prepare_to_resume>
12308 <copy_thread_dreg_state, mark_thread_stale>
12309 <mark_debug_registers_changed, register_hw_breakpoint>
12310 <clear_hw_breakpoint, register_wp, clear_wp>
12311 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
12312 <num_memory_accesses, get_trigger_type>
12313 <create_watchpoint_request, hwdebug_point_cmp>
12314 <init_arch_lwp_info, get_arch_lwp_info>
12315 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
12316 methods.
12317 <struct ptid_hash>: New inner struct.
12318 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
12319 members.
12320 (saved_dabr_value, hwdebug_info, max_slots_number)
12321 (struct hw_break_tuple, struct thread_points, ppc_threads)
12322 (have_ptrace_hwdebug_interface)
12323 (hwdebug_find_thread_points_by_tid)
12324 (hwdebug_insert_point, hwdebug_remove_point): Remove.
12325 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
12326 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
12327 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
12328 use m_dreg_interface.
12329 (hwdebug_point_cmp): Change to...
12330 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
12331 reference arguments instead of pointers.
12332 (ppc_linux_nat_target::ranged_break_num_registers): Use
12333 m_dreg_interface.
12334 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
12335 m_dreg_interface. Call register_hw_breakpoint.
12336 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
12337 m_dreg_interface. Call clear_hw_breakpoint.
12338 (get_trigger_type): Change to...
12339 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
12340 comment.
12341 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
12342 use m_dreg_interface. Call register_hw_breakpoint.
12343 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
12344 use m_dreg_interface. Call clear_hw_breakpoint.
12345 (can_use_watchpoint_cond_accel): Change to...
12346 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
12347 method. Update comment, use m_dreg_interface and
12348 m_process_info.
12349 (calculate_dvc): Change to...
12350 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
12351 m_dreg_interface.
12352 (num_memory_accesses): Change to...
12353 (ppc_linux_nat_target::num_memory_accesses): ...this method.
12354 (check_condition): Change to...
12355 (ppc_linux_nat_target::check_condition): ...this method.
12356 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
12357 comment, use m_dreg_interface.
12358 (create_watchpoint_request): Change to...
12359 (ppc_linux_nat_target::create_watchpoint_request): ...this
12360 method. Use m_dreg_interface.
12361 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
12362 m_dreg_interface. Call register_hw_breakpoint or register_wp.
12363 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
12364 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
12365 (ppc_linux_nat_target::low_forget_process)
12366 (ppc_linux_nat_target::low_new_fork)
12367 (ppc_linux_nat_target::low_new_clone)
12368 (ppc_linux_nat_target::low_delete_thread)
12369 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
12370 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
12371 only call mark_thread_stale.
12372 (ppc_linux_thread_exit): Remove.
12373 (ppc_linux_nat_target::stopped_data_address): Change to...
12374 (ppc_linux_nat_target::low_stopped_data_address): This. Add
12375 comment, use m_dreg_interface and m_thread_hw_breakpoints.
12376 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
12377 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
12378 comment. Call low_stopped_data_address.
12379 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
12380 m_dreg_interface.
12381 (ppc_linux_nat_target::masked_watch_num_registers): Use
12382 m_dreg_interface.
12383 (ppc_linux_nat_target::copy_thread_dreg_state)
12384 (ppc_linux_nat_target::mark_thread_stale)
12385 (ppc_linux_nat_target::mark_debug_registers_changed)
12386 (ppc_linux_nat_target::register_hw_breakpoint)
12387 (ppc_linux_nat_target::clear_hw_breakpoint)
12388 (ppc_linux_nat_target::register_wp)
12389 (ppc_linux_nat_target::clear_wp)
12390 (ppc_linux_nat_target::init_arch_lwp_info)
12391 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
12392 (_initialize_ppc_linux_nat): Remove observer callback.
12393
4db10d8f
PFC
123942020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12395
12396 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
12397 (ppc_linux_nat_target::auxv_parse)
12398 (ppc_linux_nat_target::read_description)
12399 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
12400 Move up.
12401
1310c1b0
PFC
124022020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12403
12404 * linux-nat.h (low_new_clone): New method.
12405 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
12406
69b037c3
SM
124072020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12408
12409 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
12410 (dbx_expand_psymtab): ... this.
12411 (start_psymtab): Update.
12412 * mdebugread.c (psymtab_to_symtab_1): Rename to...
12413 (mdebug_expand_psymtab): ... this.
12414 (parse_partial_symbols): Update.
12415 (new_psymtab): Update.
12416 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
12417 (xcoff_expand_psymtab): ... this.
12418 (xcoff_start_psymtab): Update.
12419
48993951
SM
124202020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12421
12422 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
12423 <expand_dependencies>: ... this.
12424 * psymtab.c (partial_symtab::read_dependencies): Rename to...
12425 (partial_symtab::expand_dependencies): ... this.
12426 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
12427 Update.
12428 (dwarf2_psymtab::expand_psymtab): Update.
12429 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12430 * mdebugread.c (psymtab_to_symtab_1): Update.
12431 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12432
3ad83046
SM
124332020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12434
12435 * psympriv.h (discard_psymtab): Remove.
12436 * dbxread.c (dbx_end_psymtab): Update.
12437 * xcoffread.c (xcoff_end_psymtab): Update.
12438
4d1b9ab6
TT
124392020-03-28 Tom Tromey <tom@tromey.com>
12440
12441 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
12442 comment.
12443
f1749218
TT
124442020-03-28 Tom Tromey <tom@tromey.com>
12445
12446 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
12447
ebea7626
HD
124482020-03-27 Hannes Domani <ssbssa@yahoo.de>
12449
12450 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12451
a879b4d5
JB
124522020-03-26 John Baldwin <jhb@FreeBSD.org>
12453
12454 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
12455
0826b30a
TT
124562020-03-26 Tom Tromey <tom@tromey.com>
12457
12458 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
12459 (mark_common_block_symbol_computed, read_tag_string_type)
12460 (attr_to_dynamic_prop, read_subrange_type): Update.
12461 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
12462 to be methods on struct attribute.
12463 (skip_one_die, process_imported_unit_die, read_namespace_alias)
12464 (read_call_site_scope, partial_die_info::read)
12465 (partial_die_info::read, lookup_die_type, follow_die_ref):
12466 Update.
12467 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
12468 from dwarf2_get_ref_die_offset.
12469 (attribute::constant_value): New method, from
12470 dwarf2_get_attr_constant_value.
12471 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
12472 Declare method.
12473 <constant_value>: New method.
12474
2b2558bf
TT
124752020-03-26 Tom Tromey <tom@tromey.com>
12476
12477 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
12478 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
12479 (dwarf_type_encoding_name): Move to stringify.c.
12480 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
12481 * dwarf2/stringify.c: New file.
12482 * dwarf2/stringify.h: New file.
12483
eeb64781
TT
124842020-03-26 Tom Tromey <tom@tromey.com>
12485
12486 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
12487 Rewrite.
12488
a39fdb41
TT
124892020-03-26 Tom Tromey <tom@tromey.com>
12490
12491 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
12492 methods.
12493 * dwarf2/read.c (lookup_addr_base): Move to die.h.
12494 (lookup_ranges_base): Likewise.
12495 (read_cutu_die_from_dwo, read_full_die_1): Update.
12496
436c571c
TT
124972020-03-26 Tom Tromey <tom@tromey.com>
12498
12499 * dwarf2/read.c (read_import_statement, read_file_scope)
12500 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
12501 (read_lexical_block_scope, read_call_site_scope)
12502 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
12503 (handle_struct_member_die, process_structure_scope)
12504 (update_enumeration_type_from_children)
12505 (process_enumeration_scope, read_array_type, read_common_block)
12506 (read_namespace, read_module, read_subroutine_type): Update.
12507 (sibling_die): Remove.
12508
052c8bb8
TT
125092020-03-26 Tom Tromey <tom@tromey.com>
12510
12511 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
12512 (build_type_psymtabs_reader, read_structure_type)
12513 (read_enumeration_type, read_full_die_1): Update.
12514 (dwarf2_attr_no_follow): Move to die.h.
12515 * dwarf2/die.h (struct die_info) <attr>: New method.
12516
2b24b6e4
TT
125172020-03-26 Tom Tromey <tom@tromey.com>
12518
12519 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
12520 <base_address>: Now an optional.
12521 (dwarf2_find_base_address, dwarf2_rnglists_process)
12522 (dwarf2_ranges_process, fill_in_loclist_baton)
12523 (dwarf2_symbol_mark_computed): Update.
12524
c2d50fd0
TT
125252020-03-26 Tom Tromey <tom@tromey.com>
12526
12527 * dwarf2/read.c (struct die_info): Move to die.h.
12528 * dwarf2/die.h: New file.
12529
0df7ad3a
TT
125302020-03-26 Tom Tromey <tom@tromey.com>
12531
12532 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
12533 * dwarf2/read.c
12534 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12535 Move to line-header.c.
12536 (read_checked_initial_length_and_offset, read_formatted_entries):
12537 Likewise.
12538 (dwarf_decode_line_header): Split into two.
12539 * dwarf2/line-header.c
12540 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12541 Move from read.c.
12542 (read_checked_initial_length_and_offset, read_formatted_entries):
12543 Likewise.
12544 (dwarf_decode_line_header): New function, split from read.c.
12545
86c0bb4c
TT
125462020-03-26 Tom Tromey <tom@tromey.com>
12547
12548 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
12549 Declare method.
12550 * dwarf2/read.c (read_attribute_value): Update.
12551 (dwarf2_per_objfile::read_line_string): Rename from
12552 read_indirect_line_string.
12553 (read_formatted_entries): Update.
12554
2ef46c2f
TT
125552020-03-26 Tom Tromey <tom@tromey.com>
12556
12557 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
12558 variable.
12559
4f9c1eda
TT
125602020-03-26 Tom Tromey <tom@tromey.com>
12561
12562 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
12563 const.
12564 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
12565 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
12566 parameter const.
12567
5a0e026f
TT
125682020-03-26 Tom Tromey <tom@tromey.com>
12569
12570 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
12571 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
12572 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
12573 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
12574
8844c11b
TT
125752020-03-26 Tom Tromey <tom@tromey.com>
12576
12577 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
12578 file_names_size, file_full_name, file_file_name>: Use const.
12579 <file_name_at, file_names>: Add const overload.
12580 * dwarf2/line-header.c (line_header::file_file_name)
12581 (line_header::file_full_name): Update.
12582
c90ec28a
TT
125832020-03-26 Tom Tromey <tom@tromey.com>
12584
12585 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
12586 (macro_start_file, consume_improper_spaces)
12587 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
12588 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
12589 (dwarf_decode_macros): Move to macro.c.
12590 * dwarf2/macro.c: New file.
12591 * dwarf2/macro.h: New file.
12592 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
12593
4f44ae6c
TT
125942020-03-26 Tom Tromey <tom@tromey.com>
12595
12596 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
12597 method.
12598 * dwarf2/section.c: New method. From
12599 read_indirect_string_at_offset_from.
12600 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
12601 (read_indirect_string_at_offset_from): Move to section.c.
12602 (read_indirect_string_at_offset): Rewrite.
12603 (read_indirect_line_string_at_offset): Remove.
12604 (read_indirect_string, read_indirect_line_string)
12605 (dwarf_decode_macro_bytes): Update.
12606
a0194fa8
TT
126072020-03-26 Tom Tromey <tom@tromey.com>
12608
12609 * dwarf2/section.h (struct dwarf2_section_info)
12610 <overload_complaint>: Declare.
12611 (dwarf2_section_buffer_overflow_complaint): Don't declare.
12612 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
12613 Rename from dwarf2_section_buffer_overflow_complaint.
12614 * dwarf2/read.c (skip_one_die, partial_die_info::read)
12615 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
12616
3d27bbdb
TT
126172020-03-26 Tom Tromey <tom@tromey.com>
12618
12619 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
12620 Declare.
12621 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
12622 Move from read.c.
12623 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
12624 to section.c.
12625
9eac9650
TT
126262020-03-26 Tom Tromey <tom@tromey.com>
12627
12628 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
12629
bf80d710
TT
126302020-03-26 Tom Tromey <tom@tromey.com>
12631
12632 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
12633 "builder".
12634 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
12635 parameter.
12636 (dwarf_decode_macros): Update.
12637
0314b390
TT
126382020-03-26 Tom Tromey <tom@tromey.com>
12639
12640 * dwarf2/read.c (read_attribute_value): Update.
12641 (read_indirect_string_from_dwz): Move to dwz.c; change into
12642 method.
12643 (dwarf_decode_macro_bytes): Update.
12644 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
12645 * dwarf2/dwz.c: New file.
12646 * Makefile.in (COMMON_SFILES): Add dwz.c.
12647
9fda78b6
TT
126482020-03-26 Tom Tromey <tom@tromey.com>
12649
12650 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
12651 * dwarf2/read.c: Add include.
12652 * dwarf2/index-write.c: Add include.
12653 * dwarf2/index-cache.c: Add include.
12654 * dwarf2/dwz.h: New file.
12655
33aa3c10
TT
126562020-03-25 Tom Tromey <tom@tromey.com>
12657
12658 * compile/compile-object-load.c (get_out_value_type): Mention
12659 correct symbol name in error message.
12660
d503b685
HD
126612020-03-25 Hannes Domani <ssbssa@yahoo.de>
12662
12663 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12664
7b1eff95
TV
126652020-03-25 Tom de Vries <tdevries@suse.de>
12666
12667 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
12668 * symmisc.c (dump_symtab_1): Print user and includes fields.
12669 (maintenance_info_symtabs): Same.
12670
dd895392
AB
126712020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
12672
12673 PR gdb/25534
12674 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
12675 (riscv_regcache_cooked_write): New function.
12676 (riscv_push_dummy_call): Use new function.
12677 (riscv_return_value): Likewise.
12678
5ab2fbf1
SM
126792020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
12680
12681 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
12682 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
12683 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
12684 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
12685 * infrun.c (follow_fork): Likewise.
12686 (follow_fork_inferior): Likewise.
12687 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
12688 * linux-nat.h (class linux_nat_target): Likewise.
12689 * remote.c (class remote_target) <follow_fork>: Likewise.
12690 (remote_target::follow_fork): Likewise.
12691 * target-delegates.c: Re-generate.
12692 * target.c (default_follow_fork): Likewise.
12693 (target_follow_fork): Likewise.
12694 * target.h (struct target_ops) <follow_fork>: Likewise.
12695 (target_follow_fork): Likewise.
12696
a64fafb5
TV
126972020-03-24 Tom de Vries <tdevries@suse.de>
12698
12699 * psymtab.c (maintenance_info_psymtabs): Print user field.
12700
fe26d3a3
TT
127012020-03-20 Tom Tromey <tromey@adacore.com>
12702
12703 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
12704 const.
12705 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
12706 const.
12707
c884cc46
SM
127082020-03-20 Simon Marchi <simon.marchi@efficios.com>
12709
12710 * ptrace.m4: Don't check for ptrace declaration.
12711 * config.in: Re-generate.
12712 * configure: Re-generate.
12713 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
12714 not defined.
12715
1ff700c2
KR
127162020-03-20 Kamil Rytarowski <n54@gmx.com>
12717
12718 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
12719 `PTRACE_TYPE_RET'.
12720 * i386-bsd-nat.c (gdb_ptrace): Likewise.
12721 * sparc-nat.c (gdb_ptrace): Likewise.
12722 * x86-bsd-nat.c (gdb_ptrace): Likewise.
12723
f7d4f0b1
TT
127242020-03-20 Tom Tromey <tromey@adacore.com>
12725
12726 * c-exp.y (lex_one_token): Fix assert.
12727
f67210ff
TT
127282020-03-20 Tom Tromey <tromey@adacore.com>
12729
12730 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
12731 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
12732 strncpy call.
12733
1773be9e
TT
127342020-03-20 Tom Tromey <tromey@adacore.com>
12735
12736 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
12737
70304be9
TT
127382020-03-20 Tom Tromey <tromey@adacore.com>
12739
12740 * ada-valprint.c (print_variant_part): Remove parameters; switch
12741 to value-based API.
12742 (print_field_values): Likewise.
12743 (ada_val_print_struct_union): Likewise.
12744 (ada_value_print_1): Update.
12745
9faa006d
KR
127462020-03-20 Kamil Rytarowski <n54@gmx.com>
12747
12748 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
12749 nbsd_nat_target instead of inf_ptrace_target.
12750 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12751 nbsd_nat_target.
12752
4a90f062
KR
127532020-03-20 Kamil Rytarowski <n54@gmx.com>
12754
12755 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
12756 it to the ptrace call.
12757 * (store_registers): Likewise.
12758
127592020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
12760
12761 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
12762 it to the ptrace call.
12763 * (store_registers): Likewise.
12764
2d07da27
LM
127652020-03-19 Luis Machado <luis.machado@linaro.org>
12766
12767 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
12768 valid, fetch vg value from ptrace.
12769
f09db380
KR
127702020-03-19 Kamil Rytarowski <n54@gmx.com>
12771 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
12772 * inf-ptrace.c: Likewise.
12773 * (gdb_ptrace): Add.
12774 * (inf_ptrace_target::resume): Update.
12775 * (inf_ptrace_target::xfer_partial): Likewise.
12776 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
12777 * (inf_ptrace_peek_poke): Update.
12778
fcc7376e
KR
127792020-03-19 Kamil Rytarowski <n54@gmx.com>
12780
12781 * x86-bsd-nat.c (gdb_ptrace): New.
12782 * (x86bsd_dr_set): Add new argument `ptid'.
12783 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
12784 x86bsd_dr_set_addr): Update.
12785
cada5fc9
AB
127862020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12787
12788 * remote.c (remote_target::process_stop_reply): Handle events for
12789 all threads differently.
12790
19a2740f
AB
127912020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12792
12793 * completer.c (completion_tracker::remove_completion): Define new
12794 function.
12795 * completer.h (completion_tracker::remove_completion): Declare new
12796 function.
12797 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
12798 when adding a C++ function symbol.
12799
724fd9ba
AB
128002020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12801
12802 * completer.c (completion_tracker::completion_hash_entry): Define
12803 new class.
12804 (advance_to_filename_complete_word_point): Call
12805 recompute_lowest_common_denominator.
12806 (completion_tracker::completion_tracker): Call discard_completions
12807 to setup the hash table.
12808 (completion_tracker::discard_completions): Allow for being called
12809 from the constructor, pass new equal function, and element deleter
12810 when constructing the hash table. Initialise new class member
12811 variables.
12812 (completion_tracker::maybe_add_completion): Remove use of
12813 m_entries_vec, and store more information into m_entries_hash.
12814 (completion_tracker::recompute_lcd_visitor): New function, most
12815 content taken from...
12816 (completion_tracker::recompute_lowest_common_denominator):
12817 ...here, this now just visits each item in the hash calling the
12818 above visitor.
12819 (completion_tracker::build_completion_result): Remove use of
12820 m_entries_vec, call recompute_lowest_common_denominator.
12821 * completer.h (completion_tracker::have_completions): Remove use
12822 of m_entries_vec.
12823 (completion_tracker::completion_hash_entry): Declare new class.
12824 (completion_tracker::recompute_lowest_common_denominator): Change
12825 function signature.
12826 (completion_tracker::recompute_lcd_visitor): Declare new function.
12827 (completion_tracker::m_entries_vec): Delete.
12828 (completion_tracker::m_entries_hash): Initialize to NULL.
12829 (completion_tracker::m_lowest_common_denominator_valid): New
12830 member variable.
12831 (completion_tracker::m_lowest_common_denominator_max_length): New
12832 member variable.
12833
5a82b8a1
KR
128342020-03-17 Kamil Rytarowski <n54@gmx.com>
12835
12836 * regformats/regdef.h: Put reg in gdb namespace.
12837
fb516a69
KR
128382020-03-17 Kamil Rytarowski <n54@gmx.com>
12839
12840 * i386-bsd-nat.c (gdb_ptrace): New.
12841 * (i386bsd_fetch_inferior_registers,
12842 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12843 * (i386bsd_fetch_inferior_registers,
12844 i386bsd_store_inferior_registers) Use gdb_ptrace.
12845
1c0aa1fb
KR
128462020-03-17 Kamil Rytarowski <n54@gmx.com>
12847
12848 * amd64-bsd-nat.c (gdb_ptrace): New.
12849 * (amd64bsd_fetch_inferior_registers,
12850 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12851 * (amd64bsd_fetch_inferior_registers,
12852 amd64bsd_store_inferior_registers) Use gdb_ptrace.
12853
5ccd2fb7
KR
128542020-03-17 Kamil Rytarowski <n54@gmx.com>
12855
12856 * user-regs.c (user_reg::read): Rename to...
12857 (user_reg::xread): ...this.
12858 * (append_user_reg): Rename argument `read' to `xread'.
12859 * (user_reg_add_builtin): Likewise.
12860 * (user_reg_add): Likewise.
12861 * (value_of_user_reg): Likewise.
12862
2108a63a
KR
128632020-03-17 Kamil Rytarowski <n54@gmx.com>
12864
12865 * sparc-nat.c (gdb_ptrace): New.
12866 * sparc-nat.c (sparc_fetch_inferior_registers)
12867 (sparc_store_inferior_registers) Remove obsolete comment.
12868 * sparc-nat.c (sparc_fetch_inferior_registers)
12869 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
12870 * sparc-nat.c (sparc_fetch_inferior_registers)
12871 (sparc_store_inferior_registers) Use gdb_ptrace.
12872
a225c9a8
KR
128732020-03-17 Kamil Rytarowski <n54@gmx.com>
12874
12875 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
12876 it to the ptrace call.
12877 * sh-nbsd-nat.c (store_registers): Likewise.
12878
98097623
KR
128792020-03-17 Kamil Rytarowski <n54@gmx.com>
12880
12881 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
12882 nbsd_nat_target instead of inf_ptrace_target.
12883 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12884 nbsd_nat_target.
12885
9e38d619
KR
128862020-03-17 Kamil Rytarowski <n54@gmx.com>
12887
12888 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
12889
a2ecbe9f
KR
128902020-03-17 Kamil Rytarowski <n54@gmx.com>
12891
12892 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
12893 <sys/sysctl.h>.
12894 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
12895
58990295
TV
128962020-03-17 Tom de Vries <tdevries@suse.de>
12897
12898 PR gdb/23710
12899 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
12900 fields.
12901 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
12902 fields.
12903 (process_imported_unit_die): Skip import of c++ CUs.
12904
771dd3a8
TT
129052020-03-16 Tom Tromey <tom@tromey.com>
12906
12907 * p-valprint.c (pascal_object_print_value): Initialize
12908 base_value.
12909
817a7585
AK
129102020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
12911 Shahab Vahedi <shahab@synopsys.com>
12912
12913 * Makefile.in: Add arch/arc.o
12914 * configure.tgt: Likewise.
12915 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
12916 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 12917 (arc_read_description): New function to cache target descriptions.
817a7585
AK
12918 * arc-tdep.h (arc_read_description): Add proto type.
12919 * arch/arc.c: New file.
12920 * arch/arc.h: Likewise.
12921 * features/Makefile: Replace old target descriptions with new.
12922 * features/arc-arcompact.c: Remove.
12923 * features/arc-arcompact.xml: Likewise.
12924 * features/arc-v2.c: Likewise
12925 * features/arc-v2.xml: Likewise
12926 * features/arc/aux-arcompact.xml: New file.
12927 * features/arc/aux-v2.xml: Likewise.
12928 * features/arc/core-arcompact.xml: Likewise.
12929 * features/arc/core-v2.xml: Likewise.
12930 * features/arc/aux-arcompact.c: Generate.
12931 * features/arc/aux-v2.c: Likewise.
12932 * features/arc/core-arcompact.c: Likewise.
12933 * features/arc/core-v2.c: Likewise.
12934 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
12935
67430cd0
TT
129362020-03-16 Tom Tromey <tromey@adacore.com>
12937
12938 PR gdb/25663:
12939 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
12940 putting value into bcache.
12941
30efb6c7
SM
129422020-03-16 Simon Marchi <simon.marchi@efficios.com>
12943
12944 PR gdb/21500
12945 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
12946 to...
12947 (amd64_windows_init_abi_common): ... this. Don't set size of
12948 long type.
12949 (amd64_windows_init_abi): New function.
12950 (amd64_cygwin_init_abi): New function.
12951 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
12952 the Cygwin OS ABI.
12953 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
12954 comment.
12955
8db52437
SM
129562020-03-16 Simon Marchi <simon.marchi@efficios.com>
12957
12958 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
12959 * windows-tdep.c (CYGWIN_DLL_NAME): New.
12960 (pe_import_directory_entry): New struct type.
12961 (is_linked_with_cygwin_dll): New function.
12962 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
12963 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
12964 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
12965
5982a56a
SM
129662020-03-16 Simon Marchi <simon.marchi@efficios.com>
12967
12968 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
12969 i386_cygwin_core_osabi_sniffer.
12970
7a1998df
SM
129712020-03-16 Simon Marchi <simon.marchi@efficios.com>
12972
12973 * i386-cygwin-tdep.c: Rename to...
12974 * i386-windows-tdep.c: ... this.
12975 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
12976 i386-windows-tdep.c.
12977 * configure.tgt: Likewise.
12978
053205cc
SM
129792020-03-16 Simon Marchi <simon.marchi@efficios.com>
12980
12981 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
12982 * osabi.c (gdb_osabi_names): Add "Windows".
12983 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
12984 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
12985 (i386_cygwin_core_osabi_sniffer): New function, extracted from
12986 i386_cygwin_osabi_sniffer.
12987 (_initialize_i386_cygwin_tdep): Register OS ABI
12988 GDB_OSABI_WINDOWS for i386.
12989 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
12990 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
12991 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
12992 for x86-64.
12993 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
12994 when the target matches '*-*-mingw*'.
12995
fe4b2ee6
SM
129962020-03-16 Simon Marchi <simon.marchi@efficios.com>
12997
12998 * defs.h (enum gdb_osabi): Move to...
12999 * osabi.h (enum gdb_osabi): ... here.
13000 * gdbarch.sh: Include osabi.h in gdbarch.h.
13001 * gdbarch.h: Re-generate.
13002
cb9b645d
SM
130032020-03-16 Simon Marchi <simon.marchi@efficios.com>
13004
13005 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
13006 function.
13007 (_initialize_amd64_windows_tdep): Register osabi sniffer.
13008
3293bbaf
TT
130092020-03-14 Tom Tromey <tom@tromey.com>
13010
13011 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
13012 for C++.
13013 (c_type_print_modifier): Likewise. Add "language" parameter.
13014 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
13015 (c_type_print_base_1): Update.
13016 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
13017 constants.
13018 * type-stack.c (type_stack::insert): Handle tp_atomic and
13019 tp_restrict.
13020 (type_stack::follow_type_instance_flags): Likewise.
13021 (type_stack::follow_types): Likewise. Merge type-following code.
13022 * c-exp.y (RESTRICT, ATOMIC): New tokens.
13023 (space_identifier, cv_with_space_id)
13024 (const_or_volatile_or_space_identifier_noopt)
13025 (const_or_volatile_or_space_identifier): Remove.
13026 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
13027 rules.
13028 (ptr_operator, typebase): Update.
13029 (enum token_flag) <FLAG_C>: New constant.
13030 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
13031 "_Atomic".
13032 (lex_one_token): Handle FLAG_C.
13033
154151a6
KR
130342020-03-14 Kamil Rytarowski <n54@gmx.com>
13035
13036 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
13037 it to the ptrace call.
13038 * m68k-bsd-nat.c (store_registers): Likewise.
13039
bc107784
KR
130402020-03-14 Kamil Rytarowski <n54@gmx.com>
13041
13042 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
13043 gdb_byte *.
13044 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
13045 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
13046 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
13047
01a80117
KR
130482020-03-14 Kamil Rytarowski <n54@gmx.com>
13049
13050 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
13051 nbsd_nat_target instead of inf_ptrace_target.
13052 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13053 nbsd_nat_target.
13054
f90280ca
KR
130552020-03-14 Kamil Rytarowski <n54@gmx.com>
13056
13057 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
13058 register_t.
13059
6def66f1
KR
130602020-03-14 Kamil Rytarowski <n54@gmx.com>
13061
13062 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
13063 it to the ptrace call.
13064 * alpha-bsd-nat.c (store_registers): Likewise.
13065
66eaca97
KR
130662020-03-14 Kamil Rytarowski <n54@gmx.com>
13067
13068 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
13069 includes.
13070 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
13071 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
13072 fill_fpregset): Likewise.
13073
4fed520b
KR
130742020-03-14 Kamil Rytarowski <n54@gmx.com>
13075
13076 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
13077 nbsd_nat_target instead of inf_ptrace_target.
13078 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13079 nbsd_nat_target.
13080
2190cf06
KR
130812020-03-14 Kamil Rytarowski <n54@gmx.com>
13082
13083 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
13084 register_t.
13085
75c56d3d
KR
130862020-03-14 Kamil Rytarowski <n54@gmx.com>
13087
13088 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
13089 it to the ptrace call.
13090 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
13091 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
13092 * arm-nbsd-nat.c (store_register): Likewise.
13093 * arm-nbsd-nat.c (store_regs): Likewise.
13094 * arm-nbsd-nat.c (store_fp_register): Likewise.
13095 * arm-nbsd-nat.c (store_fp_regs): Likewise.
13096
6018d381
KR
130972020-03-14 Kamil Rytarowski <n54@gmx.com>
13098
13099 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
13100 nbsd_nat_target instead of inf_ptrace_target.
13101 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13102 nbsd_nat_target.
13103
013f99f0
KR
131042020-03-14 Kamil Rytarowski <n54@gmx.com>
13105
13106 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
13107 it to the ptrace call.
13108 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
13109
12753073
KR
131102020-03-14 Kamil Rytarowski <n54@gmx.com>
13111
6227b330
KR
13112 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
13113 it to the ptrace call.
13114 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
13115
131162020-03-14 Kamil Rytarowski <n54@gmx.com>
13117
13118 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
13119 gdb_byte *.
12753073
KR
13120 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
13121
d5be5fa4
KR
131222020-03-14 Kamil Rytarowski <n54@gmx.com>
13123
13124 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
13125 instead of inf_ptrace_target.
13126 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13127 nbsd_nat_target.
13128
8110f842
KR
131292020-03-14 Kamil Rytarowski <n54@gmx.com>
13130
13131 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13132 register_t.
13133
52feded7
KR
131342020-03-14 Kamil Rytarowski <n54@gmx.com>
13135
13136 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13137 register_t.
13138
25567eee
KR
131392020-03-14 Kamil Rytarowski <n54@gmx.com>
13140
13141 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
13142 register_t.
13143
426a9c18
TT
131442020-03-13 Tom Tromey <tom@tromey.com>
13145
13146 * value.h (val_print): Don't declare.
13147 * valprint.h (val_print_array_elements)
13148 (val_print_scalar_formatted, generic_val_print): Don't declare.
13149 * valprint.c (generic_val_print_array): Take a struct value.
13150 (generic_val_print_ptr, generic_val_print_memberptr)
13151 (generic_val_print_bool, generic_val_print_int)
13152 (generic_val_print_char, generic_val_print_complex)
13153 (generic_val_print): Remove.
13154 (generic_value_print): Update.
13155 (do_val_print): Remove unused parameters. Don't call
13156 la_val_print.
13157 (val_print): Remove.
13158 (common_val_print): Update. Don't call value_check_printable.
13159 (val_print_scalar_formatted, val_print_array_elements): Remove.
13160 * rust-lang.c (rust_val_print): Remove.
13161 (rust_language_defn): Update.
13162 * p-valprint.c (pascal_val_print): Remove.
13163 (pascal_value_print_inner): Update.
13164 (pascal_object_print_val_fields, pascal_object_print_val):
13165 Remove.
13166 (pascal_object_print_static_field): Update.
13167 * p-lang.h (pascal_val_print): Don't declare.
13168 * p-lang.c (pascal_language_defn): Update.
13169 * opencl-lang.c (opencl_language_defn): Update.
13170 * objc-lang.c (objc_language_defn): Update.
13171 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
13172 * m2-lang.h (m2_val_print): Don't declare.
13173 * m2-lang.c (m2_language_defn): Update.
13174 * language.h (struct language_defn) <la_val_print>: Remove.
13175 * language.c (unk_lang_value_print_inner): Rename. Change
13176 argument types.
13177 (unknown_language_defn, auto_language_defn): Update.
13178 * go-valprint.c (go_val_print): Remove.
13179 * go-lang.h (go_val_print): Don't declare.
13180 * go-lang.c (go_language_defn): Update.
13181 * f-valprint.c (f_val_print): Remove.
13182 * f-lang.h (f_value_print): Don't declare.
13183 * f-lang.c (f_language_defn): Update.
13184 * d-valprint.c (d_val_print): Remove.
13185 * d-lang.h (d_value_print): Don't declare.
13186 * d-lang.c (d_language_defn): Update.
13187 * cp-valprint.c (cp_print_value_fields)
13188 (cp_print_value_fields_rtti, cp_print_value): Remove.
13189 (cp_print_static_field): Update.
13190 * c-valprint.c (c_val_print_array, c_val_print_ptr)
13191 (c_val_print_struct, c_val_print_union, c_val_print_int)
13192 (c_val_print_memberptr, c_val_print): Remove.
13193 * c-lang.h (c_val_print_array, cp_print_value_fields)
13194 (cp_print_value_fields_rtti): Don't declare.
13195 * c-lang.c (c_language_defn, cplus_language_defn)
13196 (asm_language_defn, minimal_language_defn): Update.
13197 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
13198 (ada_val_print_enum): Take a struct value.
13199 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
13200 (ada_val_print): Remove.
13201 (ada_value_print_1): Update.
13202 (printable_val_type): Remove.
13203 * ada-lang.h (ada_val_print): Don't declare.
13204 * ada-lang.c (ada_language_defn): Update.
13205
42331a1e
TT
132062020-03-13 Tom Tromey <tom@tromey.com>
13207
13208 * valprint.c (do_val_print): Update.
13209 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
13210 a struct value.
13211 (value_to_value_object_no_release): Declare.
13212 * python/py-value.c (value_to_value_object_no_release): New
13213 function.
13214 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
13215 struct value.
13216 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
13217 function.
13218 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
13219 a struct value.
13220 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
13221 Declare.
13222 (gdbscm_apply_val_pretty_printer): Take a struct value.
13223 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
13224 value.
13225 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
13226 value.
13227 * extension-priv.h (struct extension_language_ops)
13228 <apply_val_pretty_printer>: Take a struct value.
13229 * cp-valprint.c (cp_print_value): Create a struct value.
13230 (cp_print_value): Update.
13231
3a916a97
TT
132322020-03-13 Tom Tromey <tom@tromey.com>
13233
13234 * ada-valprint.c (print_field_values): Call common_val_print.
13235
b59eac37
TT
132362020-03-13 Tom Tromey <tom@tromey.com>
13237
13238 * ada-valprint.c (val_print_packed_array_elements): Remove
13239 bitoffset and val parameters. Call common_val_print.
13240 (ada_val_print_string): Remove offset, address, and original_value
13241 parameters.
13242 (ada_val_print_array): Update.
13243 (ada_value_print_array): New function.
13244 (ada_value_print_1): Call it.
13245
03371129
TT
132462020-03-13 Tom Tromey <tom@tromey.com>
13247
13248 * ada-valprint.c (ada_value_print): Use common_val_print.
13249
2e088f8b
TT
132502020-03-13 Tom Tromey <tom@tromey.com>
13251
13252 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
13253
39ef85a8
TT
132542020-03-13 Tom Tromey <tom@tromey.com>
13255
13256 * ada-valprint.c (ada_value_print_num): New function.
13257 (ada_value_print_1): Use it.
13258
b9fa6e07
TT
132592020-03-13 Tom Tromey <tom@tromey.com>
13260
13261 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
13262
416595d6
TT
132632020-03-13 Tom Tromey <tom@tromey.com>
13264
13265 * ada-valprint.c (ada_value_print_ptr): New function.
13266 (ada_value_print_1): Use it.
13267
5b5e15ec
TT
132682020-03-13 Tom Tromey <tom@tromey.com>
13269
13270 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
13271 call common_val_print.
13272 (ada_val_print_1): Update.
13273 (ada_value_print_1): New function.
13274 (ada_value_print_inner): Rewrite.
13275
fbf54e75
TT
132762020-03-13 Tom Tromey <tom@tromey.com>
13277
13278 * cp-valprint.c (cp_print_value_fields): Update.
13279 (cp_print_value): New function.
13280
64b653ca
TT
132812020-03-13 Tom Tromey <tom@tromey.com>
13282
13283 * m2-valprint.c (m2_value_print_inner): Use
13284 cp_print_value_fields.
13285 * cp-valprint.c (cp_print_value_fields): New function.
13286 * c-valprint.c (c_value_print_struct): New function.
13287 (c_value_print_inner): Use c_value_print_struct.
13288 * c-lang.h (cp_print_value_fields): Declare.
13289
6999f067
TT
132902020-03-13 Tom Tromey <tom@tromey.com>
13291
13292 * c-valprint.c (c_value_print_array): New function.
13293 (c_value_print_inner): Use it.
13294
ce80b8bd
TT
132952020-03-13 Tom Tromey <tom@tromey.com>
13296
13297 * c-valprint.c (c_value_print_memberptr): New function.
13298 (c_value_print_inner): Use it.
13299
2faac269
TT
133002020-03-13 Tom Tromey <tom@tromey.com>
13301
13302 * c-valprint.c (c_value_print_int): New function.
13303 (c_value_print_inner): Use it.
13304
da3e2c29
TT
133052020-03-13 Tom Tromey <tom@tromey.com>
13306
13307 * c-valprint.c (c_value_print_ptr): New function.
13308 (c_value_print_inner): Use it.
13309
50836231
TT
133102020-03-13 Tom Tromey <tom@tromey.com>
13311
13312 * c-valprint.c (c_value_print_inner): Rewrite.
13313
4f412b6e
TT
133142020-03-13 Tom Tromey <tom@tromey.com>
13315
13316 * valprint.c (generic_value_print_complex): New function.
13317 (generic_value_print): Use it.
13318
f5354008
TT
133192020-03-13 Tom Tromey <tom@tromey.com>
13320
13321 * valprint.c (generic_val_print_float): Don't call
13322 val_print_scalar_formatted.
13323 (generic_val_print, generic_value_print): Update.
13324
3eec3b05
TT
133252020-03-13 Tom Tromey <tom@tromey.com>
13326
13327 * valprint.c (generic_value_print_char): New function
13328 (generic_value_print): Use it.
13329
fdddfccb
TT
133302020-03-13 Tom Tromey <tom@tromey.com>
13331
13332 * valprint.c (generic_value_print_int): New function.
13333 (generic_value_print): Use it.
13334
6dde7521
TT
133352020-03-13 Tom Tromey <tom@tromey.com>
13336
13337 * valprint.c (generic_value_print_bool): New function.
13338 (generic_value_print): Use it.
13339
4112d2e6
TT
133402020-03-13 Tom Tromey <tom@tromey.com>
13341
13342 * valprint.c (generic_val_print_func): Simplify.
13343 (generic_val_print, generic_value_print): Update.
13344
65786af6
TT
133452020-03-13 Tom Tromey <tom@tromey.com>
13346
13347 * valprint.c (generic_val_print_flags): Remove.
13348 (generic_val_print, generic_value_print): Update.
13349 (val_print_type_code_flags): Add original_value parameter.
13350
40f3ce18
TT
133512020-03-13 Tom Tromey <tom@tromey.com>
13352
13353 * valprint.c (generic_val_print): Update.
13354 (generic_value_print): Update.
13355 * valprint.c (generic_val_print_enum): Don't call
13356 val_print_scalar_formatted.
13357
2a5b130b
TT
133582020-03-13 Tom Tromey <tom@tromey.com>
13359
13360 * valprint.c (generic_value_print): Call generic_value_print_ptr.
13361 * valprint.c (generic_value_print_ptr): New function.
13362
abc66ce9
TT
133632020-03-13 Tom Tromey <tom@tromey.com>
13364
13365 * valprint.c (generic_value_print): Rewrite.
13366
07a32858
TT
133672020-03-13 Tom Tromey <tom@tromey.com>
13368
13369 * p-valprint.c (pascal_object_print_value_fields)
13370 (pascal_object_print_value): New functions.
13371
64d64d3a
TT
133722020-03-13 Tom Tromey <tom@tromey.com>
13373
13374 * p-valprint.c (pascal_value_print_inner): Rewrite.
13375
6a95a1f5
TT
133762020-03-13 Tom Tromey <tom@tromey.com>
13377
13378 * f-valprint.c (f_value_print_innner): Rewrite.
13379
59fcdac6
TT
133802020-03-13 Tom Tromey <tom@tromey.com>
13381
13382 * m2-valprint.c (m2_print_unbounded_array): New overload.
13383 (m2_print_unbounded_array): Update.
13384 (m2_print_array_contents): Take a struct value.
13385 (m2_value_print_inner): Rewrite.
13386
d133c3e1
TT
133872020-03-13 Tom Tromey <tom@tromey.com>
13388
13389 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
13390 (d_value_print_inner): New function.
13391 * d-lang.h (d_value_print_inner): Declare.
13392 * d-lang.c (d_language_defn): Use d_value_print_inner.
13393
23b0f06b
TT
133942020-03-13 Tom Tromey <tom@tromey.com>
13395
13396 * go-valprint.c (go_value_print_inner): New function.
13397 * go-lang.h (go_value_print_inner): Declare.
13398 * go-lang.c (go_language_defn): Use go_value_print_inner.
13399
5f56f7cb
TT
134002020-03-13 Tom Tromey <tom@tromey.com>
13401
13402 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
13403 API.
13404 (rust_val_print): Rewrite.
13405 (rust_value_print_inner): New function, from rust_val_print.
13406 (rust_language_defn): Use rust_value_print_inner.
13407
26792ee0
TT
134082020-03-13 Tom Tromey <tom@tromey.com>
13409
13410 * ada-valprint.c (ada_value_print_inner): New function.
13411 * ada-lang.h (ada_value_print_inner): Declare.
13412 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
13413
24051bbe
TT
134142020-03-13 Tom Tromey <tom@tromey.com>
13415
13416 * f-valprint.c (f_value_print_innner): New function.
13417 * f-lang.h (f_value_print_innner): Declare.
13418 * f-lang.c (f_language_defn): Use f_value_print_innner.
13419
c0941be6
TT
134202020-03-13 Tom Tromey <tom@tromey.com>
13421
13422 * p-valprint.c (pascal_value_print_inner): New function.
13423 * p-lang.h (pascal_value_print_inner): Declare.
13424 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
13425
62c4663d
TT
134262020-03-13 Tom Tromey <tom@tromey.com>
13427
13428 * m2-valprint.c (m2_value_print_inner): New function.
13429 * m2-lang.h (m2_value_print_inner): Declare.
13430 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
13431
62182190
TT
134322020-03-13 Tom Tromey <tom@tromey.com>
13433
13434 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
13435 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
13436 * c-valprint.c (c_value_print_inner): New function.
13437 * c-lang.h (c_value_print_inner): Declare.
13438 * c-lang.c (c_language_defn, cplus_language_defn)
13439 (asm_language_defn, minimal_language_defn): Use
13440 c_value_print_inner.
13441
1e592a8a
TT
134422020-03-13 Tom Tromey <tom@tromey.com>
13443
13444 * p-valprint.c (pascal_object_print_value_fields): Now static.
13445 * p-lang.h (pascal_object_print_value_fields): Don't declare.
13446
7fe471e9
TT
134472020-03-13 Tom Tromey <tom@tromey.com>
13448
13449 * c-valprint.c (c_val_print_array): Simplify.
13450
d121c6ce
TT
134512020-03-13 Tom Tromey <tom@tromey.com>
13452
13453 * valprint.c (value_print_array_elements): New function.
13454 * valprint.h (value_print_array_elements): Declare.
13455
4dba70ee
TT
134562020-03-13 Tom Tromey <tom@tromey.com>
13457
13458 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
13459 * mips-tdep.c (mips_print_register): Use
13460 value_print_scalar_formatted.
13461
4f9ae810
TT
134622020-03-13 Tom Tromey <tom@tromey.com>
13463
13464 * valprint.h (value_print_scalar_formatted): Declare.
13465 * valprint.c (value_print_scalar_formatted): New function.
13466
156bfec9
TT
134672020-03-13 Tom Tromey <tom@tromey.com>
13468
13469 * valprint.h (generic_value_print): Declare.
13470 * valprint.c (generic_value_print): New function.
13471
2b4e573d
TT
134722020-03-13 Tom Tromey <tom@tromey.com>
13473
13474 * valprint.c (do_val_print): Call la_value_print_inner, if
13475 available.
13476 * rust-lang.c (rust_language_defn): Update.
13477 * p-lang.c (pascal_language_defn): Update.
13478 * opencl-lang.c (opencl_language_defn): Update.
13479 * objc-lang.c (objc_language_defn): Update.
13480 * m2-lang.c (m2_language_defn): Update.
13481 * language.h (struct language_defn) <la_value_print_inner>: New
13482 member.
13483 * language.c (unknown_language_defn, auto_language_defn): Update.
13484 * go-lang.c (go_language_defn): Update.
13485 * f-lang.c (f_language_defn): Update.
13486 * d-lang.c (d_language_defn): Update.
13487 * c-lang.c (c_language_defn, cplus_language_defn)
13488 (asm_language_defn, minimal_language_defn): Update.
13489 * ada-lang.c (ada_language_defn): Update.
13490
a1f6a07c
TT
134912020-03-13 Tom Tromey <tom@tromey.com>
13492
13493 * c-valprint.c (c_value_print): Use common_val_print.
13494
410cf315
TT
134952020-03-13 Tom Tromey <tom@tromey.com>
13496
13497 * cp-valprint.c (cp_print_static_field): Use common_val_print.
13498
72a45c93
TT
134992020-03-13 Tom Tromey <tom@tromey.com>
13500
13501 * f-valprint.c (f77_print_array_1, f_val_print): Use
13502 common_val_print.
13503
040f66bd
TT
135042020-03-13 Tom Tromey <tom@tromey.com>
13505
13506 * riscv-tdep.c (riscv_print_one_register_info): Use
13507 common_val_print.
13508
a6e05a6c
TT
135092020-03-13 Tom Tromey <tom@tromey.com>
13510
13511 * mi/mi-main.c (output_register): Use common_val_print.
13512
3444c526
TT
135132020-03-13 Tom Tromey <tom@tromey.com>
13514
13515 * infcmd.c (default_print_one_register_info): Use
13516 common_val_print.
13517
c2a44efe
TT
135182020-03-13 Tom Tromey <tom@tromey.com>
13519
13520 * valprint.h (common_val_print_checked): Declare.
13521 * valprint.c (common_val_print_checked): New function.
13522 * stack.c (print_frame_arg): Use common_val_print_checked.
13523
b0c26e99
TT
135242020-03-13 Tom Tromey <tom@tromey.com>
13525
13526 * valprint.c (do_val_print): New function, from val_print.
13527 (val_print): Use do_val_print.
13528 (common_val_print): Use do_val_print.
13529
ce3acbe9
TT
135302020-03-13 Tom Tromey <tom@tromey.com>
13531
13532 * valprint.c (value_print): Use scoped_value_mark.
13533
96c7f873
TV
135342020-03-13 Tom de Vries <tdevries@suse.de>
13535
13536 PR symtab/25646
13537 * psymtab.c (partial_symtab::partial_symtab): Don't set
13538 globals_offset and statics_offset. Push element onto
13539 current_global_psymbols and current_static_psymbols stacks.
13540 (concat): New function.
13541 (end_psymtab_common): Set globals_offset and statics_offset. Pop
13542 element from current_global_psymbols and current_static_psymbols
13543 stacks. Concat popped elements to global_psymbols and
13544 static_symbols.
13545 (add_psymbol_to_list): Use current_global_psymbols and
13546 current_static_psymbols stacks.
13547 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
13548 current_static_psymbols fields.
13549
6ba0a321
CB
135502020-03-12 Christian Biesinger <cbiesinger@google.com>
13551
13552 * corelow.c (sniff_core_bfd): Remove.
13553 (class core_target) <m_core_vec>: Remove.
13554 (core_target::core_target): Update.
13555 (core_file_fns): Remove.
13556 (deprecated_add_core_fns): Remove.
13557 (default_core_sniffer): Remove.
13558 (sniff_core_bfd): Remove.
13559 (default_check_format): Remove.
13560 (gdb_check_format): Remove.
13561 (core_target_open): Update.
13562 (core_target::get_core_register_section): Update.
13563 (get_core_registers_cb): Update.
13564 (core_target::fetch_registers): Update.
13565 * gdbcore.h (struct core_fns): Remove.
13566 (deprecated_add_core_fns): Remove.
13567 (default_core_sniffer): Remove.
13568 (default_check_format): Remove.
13569
227031b2
TT
135702020-03-12 Tom Tromey <tom@tromey.com>
13571
13572 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
13573 CORE_ADDR.
13574 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
13575
53807e9f
TT
135762020-03-12 Tom Tromey <tom@tromey.com>
13577
13578 * remote.c (remote_target::download_tracepoint)
13579 (remote_target::enable_tracepoint)
13580 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
13581 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
13582 sprintf_vma.
13583
64f25102
TT
135842020-03-12 Tom Tromey <tom@tromey.com>
13585
13586 * symfile-mem.c: Update CORE_ADDR size assert.
13587
272cd5a3
SM
135882020-03-12 Simon Marchi <simon.marchi@efficios.com>
13589
13590 * selftest.m4: Move to gdbsupport/.
13591 * acinclude.m4: Update path to selftest.m4.
13592
74cd3f9d
SM
135932020-03-12 Simon Marchi <simon.marchi@efficios.com>
13594
13595 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
13596 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
13597 gdbarch-selfselftests.c and selftest-arch.c.
13598 (SUBDIR_UNITTESTS_OBS): Rename to...
13599 (SELFTESTS_OBS): ... this.
13600 (COMMON_SFILES): Remove disasm-selftests.c and
13601 gdbarch-selftests.c.
13602 * configure.ac: Don't add selftest-arch.{c,o} to
13603 CONFIG_{SRCS,OBS}.
13604 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
13605 preprocessor conditions.
13606
db6878ac
SM
136072020-03-12 Simon Marchi <simon.marchi@efficios.com>
13608
13609 * configure.ac: Don't source bfd/development.sh.
13610 * selftest.m4: Modify comment.
13611 * configure: Re-generate.
13612
4d696a5c
SM
136132020-03-12 Simon Marchi <simon.marchi@efficios.com>
13614
13615 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
13616 not "true" or "false".
13617 * configure: Re-generate.
13618
8dd8e1c7
CB
136192020-03-12 Christian Biesinger <cbiesinger@google.com>
13620
13621 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
13622 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
13623 renamed to arm_nbsd_supply_gregset.
13624 (fetch_register): Update to call arm_nbsd_supply_gregset.
13625 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
13626 (arm_netbsd_nat_target::fetch_registers): Update.
13627 (fetch_elfcore_registers): Removed.
13628 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
13629 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
13630 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
13631 not require NetBSD system headers.
13632 (arm_nbsd_regset): New struct.
13633 (arm_nbsd_iterate_over_regset_sections): New function.
13634 (arm_netbsd_init_abi_common): Updated to call
13635 set_gdbarch_iterate_over_regset_sections.
13636 * arm-nbsd-tdep.h: New file.
13637
dd69bf7a
KB
136382020-03-11 Kevin Buettner <kevinb@redhat.com>
13639
13640 * symtab.c (find_pc_sect_line): Add check which prevents infinite
13641 recursion.
13642
a0761e34
SM
136432020-03-11 Simon Marchi <simon.marchi@efficios.com>
13644
13645 * configure: Re-generate.
13646
e7a82140
TT
136472020-03-11 Tom Tromey <tromey@adacore.com>
13648
13649 * ada-typeprint.c (print_choices): Fix comment.
13650
dcc050c8
AB
136512020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
13652
13653 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
13654 previous item in the list, when the list has no items.
13655
1c33af77
TV
136562020-03-11 Tom de Vries <tdevries@suse.de>
13657
13658 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
13659 PROP_LOCLIST handling code.
13660
8c95582d
AB
136612020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
13662
13663 * buildsym-legacy.c (record_line): Pass extra parameter to
13664 record_line.
13665 * buildsym.c (buildsym_compunit::record_line): Take an extra
13666 parameter, reduce duplication in the line table, and record the
13667 is_stmt flag in the line table.
13668 * buildsym.h (buildsym_compunit::record_line): Add extra
13669 parameter.
13670 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
13671 non-statement lines.
13672 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
13673 this to the symtab builder.
13674 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
13675 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
13676 through to dwarf_record_line_1.
13677 * infrun.c (process_event_stop_test): When stepping, don't stop at
13678 a non-statement instruction, and only refresh the step info when
13679 we land in the middle of a line's range. Also add an extra
13680 comment.
13681 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
13682 field.
13683 * record-btrace.c (btrace_find_line_range): Only record lines
13684 marked as is-statement.
13685 * stack.c (frame_show_address): Show the frame address if we are
13686 in a non-statement sal.
13687 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
13688 (maintenance_print_one_line_table): Print a header for the is_stmt
13689 column, and include is_stmt information in the output.
13690 * symtab.c (find_pc_sect_line): Find lines marked as statements in
13691 preference to non-statements.
13692 (find_pcs_for_symtab_line): Prefer is-statement entries.
13693 (find_line_common): Likewise.
13694 * symtab.h (struct linetable_entry): Add is_stmt field.
13695 (struct symtab_and_line): Likewise.
13696 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
13697 arranging the line table.
13698
e4003a34
TV
136992020-03-07 Tom de Vries <tdevries@suse.de>
13700
13701 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
13702 DIE.
13703
e8932576
TT
137042020-03-07 Tom Tromey <tom@tromey.com>
13705
13706 * valops.c (value_literal_complex): Remove obsolete comment.
13707 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
13708 comment.
13709
29734269
SM
137102020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
13711
13712 * infrun.h: Forward-declare thread_info.
13713 (set_step_info): Add thread_info parameter, add doc.
13714 * infrun.c (set_step_info): Add thread_info parameter, move doc
13715 to header.
13716 * infrun.c (process_event_stop_test): Pass thread to
13717 set_step_info call.
13718 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
13719 set_step_info.
13720 (prepare_one_step): Add thread_info parameter, pass it to
13721 set_step_frame and prepare_one_step (recursive) call.
13722 (step_1): Pass thread to prepare_one_step call.
13723 (step_command_fsm::should_stop): Pass thread to
13724 prepare_one_step.
13725 (until_next_fsm): Pass thread to set_step_frame call.
13726 (finish_command): Pass thread to set_step_info call.
13727
b7d64b29
HD
137282020-03-06 Hannes Domani <ssbssa@yahoo.de>
13729
13730 * windows-tdep.c (windows_solib_create_inferior_hook):
13731 Check if inferior is running.
13732
09f2921c
TV
137332020-03-06 Tom de Vries <tdevries@suse.de>
13734
13735 * NEWS: Fix "the the".
13736 * ctfread.c: Same.
13737
fd760e79
TV
137382020-03-06 Tom de Vries <tdevries@suse.de>
13739
13740 * psymtab.c (psymtab_to_symtab): Don't print "done.".
13741
20ea4a60
AB
137422020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13743
13744 * .dir-locals.el: Add a comment referencing the other copies of
13745 this file.
13746
0afbabf0
JB
137472020-03-05 John Baldwin <jhb@FreeBSD.org>
13748
13749 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
13750 psargs.
13751
842806cb
TBA
137522020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13753
13754 * .gitattributes: New file.
13755
be1e3d3e
TT
137562020-03-04 Tom Tromey <tom@tromey.com>
13757
13758 * symmisc.c (print_symbol_bcache_statistics)
13759 (print_objfile_statistics): Update.
13760 * symfile.c (allocate_symtab): Use intern.
13761 * psymtab.c (partial_symtab::partial_symtab): Use intern.
13762 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
13763 macro_cache>: Remove.
13764 <string_cache>: New member.
13765 (struct objfile) <intern>: New methods.
13766 * elfread.c (elf_symtab_read): Use intern.
13767 * dwarf2/read.c (fixup_go_packaging): Intern package name.
13768 (dwarf2_compute_name, dwarf2_physname)
13769 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
13770 names.
13771 (guess_partial_die_structure_name): Update.
13772 (partial_die_info::fixup): Intern name.
13773 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
13774 name.
13775 (dwarf2_name): Intern name. Update.
13776 * buildsym.c (buildsym_compunit::get_macro_table): Use
13777 string_cache.
13778
4e7625fd
TT
137792020-03-04 Tom Tromey <tom@tromey.com>
13780
13781 * jit.c (bfd_open_from_target_memory): Make "target" const.
13782 * corefile.c (gnutarget): Now const.
13783 * gdbcore.h (gnutarget): Now const.
13784
46f9f931
HD
137852020-03-04 Hannes Domani <ssbssa@yahoo.de>
13786
13787 * NEWS: Mention support for WOW64 processes.
13788 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
13789 (amd64_windows_segment_register_p): Remove static.
13790 (_initialize_amd64_windows_nat): Update.
13791 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
13792 * i386-windows-nat.c (context_offset): Update.
13793 (i386_mappings): Rename and remove static.
13794 (i386_windows_segment_register_p): Remove static.
13795 (_initialize_i386_windows_nat): Update.
13796 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
13797 (STATUS_WX86_SINGLE_STEP): New macro.
13798 (EnumProcessModulesEx): New macro.
13799 (Wow64SuspendThread): New macro.
13800 (Wow64GetThreadContext): New macro.
13801 (Wow64SetThreadContext): New macro.
13802 (Wow64GetThreadSelectorEntry): New macro.
13803 (windows_set_context_register_offsets): Add static.
13804 (windows_set_segment_register_p): Likewise.
13805 (windows_add_thread): Adapt for WOW64 processes.
13806 (windows_fetch_one_register): Likewise.
13807 (windows_nat_target::fetch_registers): Likewise.
13808 (windows_store_one_register): Likewise.
13809 (display_selector): Likewise.
13810 (display_selectors): Likewise.
13811 (handle_exception): Likewise.
13812 (windows_continue): Likewise.
13813 (windows_nat_target::resume): Likewise.
13814 (windows_add_all_dlls): Likewise.
13815 (do_initial_windows_stuff): Likewise.
13816 (windows_nat_target::attach): Likewise.
13817 (windows_get_exec_module_filename): Likewise.
13818 (windows_nat_target::create_inferior): Likewise.
13819 (windows_xfer_siginfo): Likewise.
13820 (_initialize_loadable): Initialize Wow64SuspendThread,
13821 Wow64GetThreadContext, Wow64SetThreadContext,
13822 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
13823 * windows-nat.h (windows_set_context_register_offsets):
13824 Remove declaration.
13825 (windows_set_segment_register_p): Likewise.
13826 (i386_windows_segment_register_p): Add declaration.
13827 (amd64_windows_segment_register_p): Likewise.
13828
440cf44e
LM
138292020-03-04 Luis Machado <luis.machado@linaro.org>
13830
13831 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
13832 in "info registers" for AArch64/ARM.
13833
13834 The change caused "info registers" to not print GPR's.
13835
13836 gdb/ChangeLog:
13837
13838 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
13839
13840 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13841 when reg->group is empty and reggroup is not.
13842
1009d92f
TT
138432020-03-03 Tom Tromey <tromey@adacore.com>
13844
13845 * dwarf2/frame.c (struct dwarf2_frame_cache)
13846 <checked_tailcall_bottom, entry_cfa_sp_offset,
13847 entry_cfa_sp_offset_p>: Remove members.
13848 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
13849 (dwarf2_frame_prev_register): Don't call
13850 dwarf2_tailcall_sniffer_first.
13851 (dwarf2_append_unwinders): Don't append tailcall unwinder.
13852 * frame-unwind.c (add_unwinder): New fuction.
13853 (frame_unwind_init): Use it. Add tailcall unwinder.
13854
5e5d66b6
AB
138552020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
13856 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13857
13858 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
13859 value should be printed as true.
13860
584cf46d
HD
138612020-03-03 Hannes Domani <ssbssa@yahoo.de>
13862
13863 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
13864 (windows_init_abi): Set and use windows_so_ops.
13865
7b973adc
SDJ
138662020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
13867
13868 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
13869 when verifying if dealing with a convenience variable.
13870
bb7b70ab
LM
138712020-03-03 Luis Machado <luis.machado@linaro.org>
13872
13873 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
13874
9822cb57
SM
138752020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13876
13877 * infrun.c (gdbarch_supports_displaced_stepping): New.
13878 (use_displaced_stepping): Break up conditions in smaller pieces.
13879 Use gdbarch_supports_displaced_stepping.
13880 (displaced_step_prepare_throw): Use
13881 gdbarch_supports_displaced_stepping.
13882
63e163f2
AB
138832020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13884
13885 * NEWS: Mention new behaviour of the history filename.
13886 * top.c (write_history_p): Add comment.
13887 (show_write_history_p): Add header comment, give a different
13888 message when history writing is on, but the history filename is
13889 empty.
13890 (history_filename): Add comment.
13891 (history_filename_empty): New function.
13892 (show_history_filename): Add header comment, give a different
13893 message when the filename is empty.
13894 (init_history): Compare history_filename against nullptr, and only
13895 read history if the filename is not empty.
13896 (set_history_filename): Add header comment, and only make
13897 non-empty filenames absolute.
13898 (init_main): Make the filename argument to 'set history filename'
13899 optional.
13900
81b86b97
CB
139012020-03-02 Christian Biesinger <cbiesinger@google.com>
13902
13903 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
13904 (arm_supply_vfpregset): ...this, and update to use VFP registers.
13905 (fetch_fp_register): Update.
13906 (fetch_fp_regs): Update.
13907 (store_fp_register): Update.
13908 (store_fp_regs): Update.
13909 (arm_netbsd_nat_target::read_description): New function.
13910 (fetch_elfcore_registers): Update.
13911
24ed6739
AB
139122020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13913
13914 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
13915 general_thread if the stop reply is missing a thread-id.
13916 (remote_target::process_stop_reply): Use the first non-exited
13917 thread if the target didn't pass a thread-id.
13918 * infrun.c (do_target_wait): Move call to
13919 switch_to_inferior_no_thread to ....
13920 (do_target_wait_1): ... here.
13921
a84bb2a0
JT
139222020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
13923
13924 * debuginfod-support.c: Include defs.h first.
13925
658dadf0
TV
139262020-02-28 Tom de Vries <tdevries@suse.de>
13927
13928 * symfile.c (set_initial_language): Use default language for lookup.
13929
4ebe4877
SM
139302020-02-28 Simon Marchi <simon.marchi@efficios.com>
13931
13932 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
13933 reader variable, pass `this` to read_cutu_die_from_dwo.
13934
e5da1139
AM
139352020-02-27 Aaron Merey <amerey@redhat.com>
13936
13937 * source.c (open_source_file): Check for nullptr when computing
13938 srcpath.
13939
317f7127
TT
139402020-02-27 Tom Tromey <tromey@adacore.com>
13941
13942 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
13943 member.
13944 (dwarf2_add_field): Don't update nfields.
13945 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
13946
3104d9ee
AB
139472020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13948
13949 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
13950 abs.
13951
b83470bf
TT
139522020-02-26 Tom Tromey <tom@tromey.com>
13953
13954 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
13955 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
13956 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
13957 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
13958 per_cu_data.
13959
edfe0a0c
TT
139602020-02-26 Tom Tromey <tom@tromey.com>
13961
13962 * dwarf2/index-write.c (psym_index_map): Change type.
13963 (add_address_entry_worker, write_one_signatured_type)
13964 (recursively_count_psymbols, recursively_write_psymbols)
13965 (class debug_names, psyms_seen_size, write_gdbindex)
13966 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
13967
0d79cdc4
AM
139682020-02-26 Aaron Merey <amerey@redhat.com>
13969
13970 * Makefile.in: Handle optional debuginfod support.
13971 * NEWS: Update.
13972 * README: Add --with-debuginfod summary.
13973 * config.in: Regenerate.
13974 * configure: Regenerate.
13975 * configure.ac: Handle optional debuginfod support.
13976 * debuginfod-support.c: debuginfod helper functions.
13977 * debuginfod-support.h: Ditto.
13978 * doc/gdb.texinfo: Add --with-debuginfod to configure options
13979 summary.
13980 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
13981 when a dwz file cannot be found.
13982 * elfread.c (elf_symfile_read): Query debuginfod servers when a
13983 debuginfo file cannot be found.
13984 * source.c (open_source_file): Query debuginfod servers when a
13985 source file cannot be found.
13986 * top.c (print_gdb_configuration): Include
13987 --{with,without}-debuginfod in the output.
13988
b65ce565
JG
139892020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
13990
13991 * thread.c (thr_try_catch_cmd): Print thread name.
13992
d4c9a4f8
SM
139932020-02-26 Simon Marchi <simon.marchi@efficios.com>
13994
13995 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
13996 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13997 dwarf2_fetch_die_type_sect_off): Move to...
13998 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
13999 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14000 dwarf2_fetch_die_type_sect_off): ... here.
14001 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
14002 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14003 dwarf2_fetch_die_type_sect_off): Move doc to header file.
14004
0dce4280
TV
140052020-02-26 Tom de Vries <tdevries@suse.de>
14006
14007 PR gdb/25603
14008 * symfile.c (set_initial_language): Exit-early if
14009 language_mode == language_mode_manual.
14010
450a1bfc
SM
140112020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14012
14013 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
14014 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
14015 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
14016
9e80cfa1
AB
140172020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
14018
14019 * gdbtypes.c (create_array_type_with_stride): Handle negative
14020 array strides.
14021 * valarith.c (value_subscripted_rvalue): Likewise.
14022
09624f1f
LM
140232020-02-25 Luis Machado <luis.machado@linaro.org>
14024
14025 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
14026
8cb5117c
SM
140272020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14028
14029 * loc.h (dwarf2_get_die_type): Move to...
14030 * read.h (dwarf2_get_die_type): ... here.
14031 * read.c (dwarf2_get_die_type): Move doc to header.
14032
c325c44e
JB
140332020-02-25 Joel Brobecker <brobecker@adacore.com>
14034
14035 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
14036 'gnulib/Makefile.in' to the list.
14037
4ac93832
TT
140382020-02-24 Tom Tromey <tom@tromey.com>
14039
14040 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
14041 Remove.
14042 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
14043 XOBNEWVEC.
14044
197400e8
TT
140452020-02-24 Tom Tromey <tom@tromey.com>
14046
14047 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
14048 New method.
14049 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
14050 (dw2_do_instantiate_symtab, dw2_get_file_names)
14051 (build_type_psymtab_dependencies, load_full_type_unit): Update.
14052
76935768
TT
140532020-02-24 Tom Tromey <tom@tromey.com>
14054
14055 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
14056 make_scoped_restore.
14057 (dwarf2_psymtab::read_symtab): Don't clear
14058 reading_partial_symbols.
14059
a88ef40d
TV
140602020-02-24 Tom de Vries <tdevries@suse.de>
14061
14062 PR gdb/25592
14063 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
14064
c9af6521
TV
140652020-02-24 Tom de Vries <tdevries@suse.de>
14066
14067 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
14068 commands layout next/prev/regs.
14069
5707a07a
TT
140702020-02-22 Tom Tromey <tom@tromey.com>
14071
14072 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
14073 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
14074
3b0fb49e
TT
140752020-02-22 Tom Tromey <tom@tromey.com>
14076
14077 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
14078
283be8bf
TT
140792020-02-22 Tom Tromey <tom@tromey.com>
14080
14081 * tui/tui-win.c (_initialize_tui_win): Add usage text.
14082 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
14083 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
14084 * tui/tui.c (_initialize_tui): Add usage text.
14085
ca793b96
TT
140862020-02-22 Tom Tromey <tom@tromey.com>
14087
14088 * tui/tui-win.c (tui_set_focus_command)
14089 (tui_set_win_height_command): Use error_no_arg.
14090 (_initialize_tui_win): Update help text.
14091 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
14092
432b5c40
TT
140932020-02-22 Tom Tromey <tom@tromey.com>
14094
14095 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
14096 * tui/tui-disasm.h (struct tui_disasm_window)
14097 <display_start_addr>: Declare.
14098 * tui/tui-source.h (struct tui_source_window)
14099 <display_start_addr>: Declare.
14100 * tui/tui-winsource.h (struct tui_source_window_base)
14101 <show_source_line, display_start_addr>: New methods.
14102 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
14103 Rename and move to protected section.
14104 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
14105 (tui_source_window_base::do_erase_source_content): Update.
14106 (tui_source_window_base::show_source_line): Now a method.
14107 (tui_source_window_base::show_source_content)
14108 (tui_source_window_base::tui_source_window_base)
14109 (tui_source_window_base::rerender)
14110 (tui_source_window_base::refill)
14111 (tui_source_window_base::do_scroll_horizontal)
14112 (tui_source_window_base::set_is_exec_point_at)
14113 (tui_source_window_base::update_breakpoint_info)
14114 (tui_source_window_base::update_exec_info): Update.
14115 * tui/tui-source.c (tui_source_window::set_contents)
14116 (tui_source_window::showing_source_p)
14117 (tui_source_window::do_scroll_vertical)
14118 (tui_source_window::location_matches_p)
14119 (tui_source_window::line_is_displayed): Update.
14120 (tui_source_window::display_start_addr): New method.
14121 * tui/tui-disasm.c (tui_disasm_window::set_contents)
14122 (tui_disasm_window::do_scroll_vertical)
14123 (tui_disasm_window::location_matches_p): Update.
14124 (tui_disasm_window::display_start_addr): New method.
14125
01b1af32
TT
141262020-02-22 Tom Tromey <tom@tromey.com>
14127
14128 * NEWS: Add entry for gdb.register_window_type.
14129 * tui/tui-layout.h (window_factory): New typedef.
14130 (tui_register_window): Declare.
14131 * tui/tui-layout.c (saved_tui_windows): New global.
14132 (tui_apply_current_layout): Use it.
14133 (tui_register_window): New function.
14134 * python/python.c (do_start_initialization): Call
14135 gdbpy_initialize_tui.
14136 (python_GdbMethods): Add "register_window_type" function.
14137 * python/python-internal.h (gdbpy_register_tui_window)
14138 (gdbpy_initialize_tui): Declare.
14139 * python/py-tui.c: New file.
14140 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
14141
fc96d20b
TT
141422020-02-22 Tom Tromey <tom@tromey.com>
14143
14144 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
14145
935c78c0
TT
141462020-02-22 Tom Tromey <tom@tromey.com>
14147
14148 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
14149 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
14150 * tui/tui-data.c (tui_set_win_with_focus): Remove.
14151 (tui_set_win_focus_to): Move from tui-win.c.
14152
0240c8f1
TT
141532020-02-22 Tom Tromey <tom@tromey.com>
14154
14155 * tui/tui-layout.c (make_standard_window, get_locator_window): New
14156 functions.
14157 (known_window_types): New global.
14158 (tui_get_window_by_name): Reimplement.
14159 (initialize_known_windows): New function.
14160 (validate_window_name): Rewrite.
14161 (_initialize_tui_layout): Call initialize_known_windows.
14162
fdb01f0c
TT
141632020-02-22 Tom Tromey <tom@tromey.com>
14164
14165 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
14166 Remove constants.
14167 * tui/tui-winsource.h (struct tui_source_window_base)
14168 <tui_source_window_base>: Remove parameter.
14169 * tui/tui-winsource.c
14170 (tui_source_window_base::tui_source_window_base): Remove
14171 parameter.
14172 (tui_source_window_base::refill): Update.
14173 * tui/tui-stack.h (struct tui_locator_window)
14174 <tui_locator_window>: Update.
14175 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
14176 Default the constructor.
14177 * tui/tui-regs.h (struct tui_data_item_window)
14178 <tui_data_item_window>: Default the constructor.
14179 (struct tui_data_window) <tui_data_window>: Likewise.
14180 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
14181 Default the constructor.
14182 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
14183 Default the constructor.
14184 <type>: Remove.
14185 (struct tui_win_info) <tui_win_info>: Default the constructor.
14186 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
14187 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
14188 Default the constructor.
14189
865a5aec
TT
141902020-02-22 Tom Tromey <tom@tromey.com>
14191
14192 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
14193 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
14194 * tui/tui-win.c (tui_resize_all): Don't call
14195 tui_delete_invisible_windows.
14196 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
14197 done.
14198 (tui_set_layout): Update.
14199 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
14200 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
14201 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
14202
e098d18c
TT
142032020-02-22 Tom Tromey <tom@tromey.com>
14204
14205 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
14206 correctly.
14207
eb9c8874
TT
142082020-02-22 Tom Tromey <tom@tromey.com>
14209
14210 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
14211
7eed1a8e
TT
142122020-02-22 Tom Tromey <tom@tromey.com>
14213
14214 * tui/tui-winsource.h (struct tui_source_window_iterator)
14215 <inner_iterator>: New etytypedef.
14216 <tui_source_window_iterator>: Take "end" parameter.
14217 <tui_source_window_iterator>: Take iterator.
14218 <operator*, advance>: Update.
14219 <m_iter>: Change type.
14220 <m_end>: New field.
14221 (struct tui_source_windows) <begin, end>: Update.
14222 * tui/tui-layout.c (tui_windows): New global.
14223 (tui_apply_current_layout): Clear tui_windows.
14224 (tui_layout_window::apply): Update tui_windows.
14225 * tui/tui-data.h (tui_windows): Declare.
14226 (all_tui_windows): Now inline function.
14227 (class tui_window_iterator, struct all_tui_windows): Remove.
14228
7c043ba6
TT
142292020-02-22 Tom Tromey <tom@tromey.com>
14230
14231 PR tui/17850:
14232 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
14233 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
14234 "height" argument.
14235 (class tui_layout_window) <get_sizes>: Likewise.
14236 (class tui_layout_split) <tui_layout_split>: Add "vertical"
14237 argument.
14238 <get_sizes>: Add "height" argument.
14239 <m_vertical>: New field.
14240 * tui/tui-layout.c (tui_layout_split::clone): Update.
14241 (tui_layout_split::get_sizes): Add "height" argument.
14242 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
14243 (tui_new_layout_command): Parse "-horizontal".
14244 (_initialize_tui_layout): Update help string.
14245 (tui_layout_split::specification): Add "-horizontal" when needed.
14246 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
14247 argument.
14248 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
14249 New methods.
14250
6bc56648
TT
142512020-02-22 Tom Tromey <tom@tromey.com>
14252
14253 * tui/tui-layout.h (enum tui_adjust_result): New.
14254 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
14255 (class tui_layout_window) <adjust_size>: Return
14256 tui_adjust_result. Rewrite.
14257 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
14258 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
14259
c22fef7e
TT
142602020-02-22 Tom Tromey <tom@tromey.com>
14261
14262 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
14263 parameter and return types.
14264 (class tui_layout_base) <specification>: Add "depth".
14265 (class tui_layout_window) <specification>: Add "depth".
14266 (class tui_layout_split) <specification>: Add "depth".
14267 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
14268 and return types.
14269 (tui_new_layout_command): Parse sub-layouts.
14270 (_initialize_tui_layout): Update help string.
14271 (tui_layout_window::specification): Add "depth".
14272 (add_layout_command): Update.
14273
ee325b61
TT
142742020-02-22 Tom Tromey <tom@tromey.com>
14275
14276 * NEWS: Add "tui new-layout" item.
14277 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
14278 Add new-layout command to help text.
14279 (validate_window_name): New function.
14280 (tui_new_layout_command): New function.
14281 (_initialize_tui_layout): Register "new-layout".
14282 (tui_layout_window::specification): New method.
14283 (tui_layout_window::specification): New method.
14284 * tui/tui-layout.h (class tui_layout_base) <specification>: New
14285 method.
14286 (class tui_layout_window) <specification>: New method.
14287 (class tui_layout_split) <specification>: New method.
14288
416eb92d
TT
142892020-02-22 Tom Tromey <tom@tromey.com>
14290
14291 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
14292 * tui/tui-win.c (window_name_completer): Update comment.
14293 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
14294 Declare method.
14295 (class tui_layout_window) <replace_window>: Likewise.
14296 (class tui_layout_split) <replace_window>: Likewise.
14297 (tui_set_layout): Don't declare.
14298 (tui_set_initial_layout): Declare function.
14299 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
14300 (asm_regs_layout): New globals.
14301 (tui_current_layout, show_layout): Remove.
14302 (tui_set_layout, tui_add_win_to_layout): Rewrite.
14303 (find_layout, tui_apply_layout): New function.
14304 (layout_completer): Remove.
14305 (tui_next_layout): Reimplement.
14306 (tui_next_layout_command): New function.
14307 (tui_set_initial_layout, tui_prev_layout_command): New functions.
14308 (tui_regs_layout): Reimplement.
14309 (tui_regs_layout_command): New function.
14310 (extract_display_start_addr): Rewrite.
14311 (next_layout, prev_layout): Remove.
14312 (tui_layout_window::replace_window): New method.
14313 (tui_layout_split::replace_window): New method.
14314 (destroy_layout): New function.
14315 (layout_list): New global.
14316 (add_layout_command): New function.
14317 (initialize_layouts): Update.
14318 (tui_layout_command): New function.
14319 (_initialize_tui_layout): Install "layout" commands.
14320 * tui/tui-data.h (enum tui_layout_type): Remove.
14321 (tui_current_layout): Don't declare.
14322
0dbc2fc7
TT
143232020-02-22 Tom Tromey <tom@tromey.com>
14324
14325 * tui/tui-regs.c (tui_reg_layout): Remove.
14326 (tui_reg_command): Use tui_regs_layout.
14327 * tui/tui-layout.h (tui_reg_command): Declare.
14328 * tui/tui-layout.c (tui_reg_command): New function.
14329
5afe342e
TT
143302020-02-22 Tom Tromey <tom@tromey.com>
14331
14332 * tui/tui.c (tui_rl_delete_other_windows): Call
14333 tui_remove_some_windows.
14334 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
14335 Declare method.
14336 (class tui_layout_window) <remove_windows>: New method.
14337 (class tui_layout_split) <remove_windows>: Declare.
14338 (tui_remove_some_windows): Declare.
14339 * tui/tui-layout.c (tui_remove_some_windows): New function.
14340 (tui_layout_split::remove_windows): New method.
14341
427326a8
TT
143422020-02-22 Tom Tromey <tom@tromey.com>
14343
14344 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
14345 * tui/tui-layout.h (tui_next_layout): Declare.
14346 * tui/tui-layout.c (tui_next_layout): New function.
14347
3fe12b6d
TT
143482020-02-22 Tom Tromey <tom@tromey.com>
14349
14350 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
14351 correct coordinates.
14352
59b8b5d2
TT
143532020-02-22 Tom Tromey <tom@tromey.com>
14354
14355 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
14356 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
14357 DATA_WIN case.
14358
2a3d458b
TT
143592020-02-22 Tom Tromey <tom@tromey.com>
14360
14361 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
14362 TUI_DISASM_WIN, not tui_win_list.
14363
3f0cbb04
TT
143642020-02-22 Tom Tromey <tom@tromey.com>
14365
14366 * valprint.c (generic_val_print_enum_1)
14367 (val_print_type_code_flags): Style member names.
14368 * rust-lang.c (val_print_struct, rust_print_enum)
14369 (rust_print_struct_def, rust_internal_print_type): Style member
14370 names.
14371 * p-valprint.c (pascal_object_print_value_fields): Style member
14372 names. Only call fprintf_symbol_filtered for static members.
14373 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
14374 * f-valprint.c (f_val_print): Style member names.
14375 * f-typeprint.c (f_type_print_base): Style member names.
14376 * cp-valprint.c (cp_print_value_fields): Style member names. Only
14377 call fprintf_symbol_filtered for static members.
14378 (cp_print_class_member): Style member names.
14379 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
14380 member names.
14381 * ada-valprint.c (ada_print_scalar): Style enum names.
14382 (ada_val_print_enum): Likewise.
14383 * ada-typeprint.c (print_enum_type): Style enum names.
14384
d4d947ae
TT
143852020-02-21 Tom Tromey <tom@tromey.com>
14386
14387 * psympriv.h (struct partial_symtab): Update comment.
14388
e94e944b
TT
143892020-02-21 Tom Tromey <tromey@adacore.com>
14390
14391 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
14392 type is CORE_ADDR.
14393
1eb73179
TV
143942020-02-21 Tom de Vries <tdevries@suse.de>
14395
14396 PR gdb/25534
14397 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
14398 if dependencies[i]->user != NULL.
14399
4f180d53
AT
144002020-02-21 Ali Tamur <tamur@google.com>
14401
14402 * dwarf2/read.c (dwarf2_name): Add null check.
14403
22b6cd70
TT
144042020-02-20 Tom Tromey <tom@tromey.com>
14405
14406 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
14407 ">=", in binary search.
14408 (dwarf2_find_containing_comp_unit): New overload.
14409 (run_test): New self-test.
14410 (_initialize_dwarf2_read): Register new test.
14411
bd0cf5a6
NC
144122020-02-20 Nelson Chu <nelson.chu@sifive.com>
14413
14414 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
14415 * riscv-tdep.h: Likewise.
14416 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
14417 rv32-only CSR.
14418 * features/riscv/64bit-csr.xml: Regenerated.
14419
3f702acd
SDJ
144202020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
14421 Tom Tromey <tom@tromey.com>
14422
14423 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
14424 of 'fputc_unfiltered'.
14425 (putchar_unfiltered): Call 'fputc_unfiltered'.
14426 (fputc_unfiltered): Call 'fputs_unfiltered'.
14427
d13c7322
AB
144282020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
14429
14430 * config.in: Regenerate.
14431 * configure: Regenerate.
14432 * configure.ac: Add --with-python-libdir option.
14433 * main.c: Use WITH_PYTHON_LIBDIR.
14434
869d8950
TT
144352020-02-19 Tom Tromey <tom@tromey.com>
14436
14437 * symtab.c (general_symbol_info::compute_and_set_names): Use
14438 obstack_strndup. Simplify call to symbol_set_demangled_name.
14439
298e9637
SM
144402020-02-19 Simon Marchi <simon.marchi@efficios.com>
14441
14442 * dwarf2/read.c (allocate_signatured_type_table,
14443 allocate_dwo_unit_table, allocate_type_unit_groups_table,
14444 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
14445 Remove objfile parameter, update all callers.
14446
08410482
DE
144472020-02-19 Doug Evans <dje@google.com>
14448
14449 PR rust/25535
14450 * rust-lang.c (rust_print_enum): Apply embedded_offset to
14451 rust_enum_variant calculation.
14452
dfdeeca1
TT
144532020-02-19 Tom Tromey <tromey@adacore.com>
14454
14455 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
14456
2ef5453b
TT
144572020-02-19 Tom Tromey <tromey@adacore.com>
14458
14459 * ada-lang.c (cache_symbol): Use obstack_strdup.
14460
9f1528a1
AB
144612020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14462
14463 * configure: Regenerate.
14464
d3c22fa8
TT
144652020-02-19 Tom Tromey <tromey@adacore.com>
14466
14467 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
14468 NULL check.
14469
bf84f706
MR
144702020-02-19 Maciej W. Rozycki <macro@wdc.com>
14471
14472 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
14473
d1c9b20f
AB
144742020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14475
14476 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
14477 if GDBSERVER is not defined.
14478 (riscv_tdesc_cache): Likewise, also store const target_desc.
14479 (STATIC_IN_GDB): Define.
14480 (riscv_create_target_description): Update declaration with
14481 STATIC_IN_GDB.
14482 (riscv_lookup_target_description): New function, only define if
14483 GDBSERVER is not defined.
14484 * arch/riscv.h (riscv_create_target_description): Declare only
14485 when GDBSERVER is defined.
14486 (riscv_lookup_target_description): New declaration when GDBSERVER
14487 is not defined.
14488 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
14489 (riscv_linux_read_features): ...this, and return
14490 riscv_gdbarch_features instead of target_desc.
14491 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
14492 (riscv_linux_read_description): Rename to...
14493 (riscv_linux_read_features): ...this.
14494 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14495 Update to use riscv_gdbarch_features and
14496 riscv_lookup_target_description.
14497 * riscv-tdep.c (riscv_find_default_target_description): Use
14498 riscv_lookup_target_description instead of
14499 riscv_create_target_description.
14500
373d7ac0
SM
145012020-02-18 Simon Marchi <simon.marchi@efficios.com>
14502
14503 * valprint.c (generic_val_print_enum_1): When printing a flag
14504 enum with value 0 and there is no enumerator with value 0, print
14505 just "0" instead of "(unknown: 0x0)".
14506
b29a2df0
SM
145072020-02-18 Simon Marchi <simon.marchi@efficios.com>
14508
14509 * valprint.c (generic_val_print_enum_1): Print unknown part of
14510 flag enum in hex.
14511
6740f0cc
SM
145122020-02-18 Simon Marchi <simon.marchi@efficios.com>
14513
14514 * dwarf2/read.c (update_enumeration_type_from_children): Allow
14515 flag enums to contain duplicate enumerators.
14516 * valprint.c (generic_val_print_enum_1): Update comment.
14517
edd45eb0
SM
145182020-02-18 Simon Marchi <simon.marchi@efficios.com>
14519
14520 * dwarf2/read.c: Include "count-one-bits.h".
14521 (update_enumeration_type_from_children): If an enumerator has
14522 multiple bits set, don't treat the enumeration as a "flag enum".
14523 * valprint.c (generic_val_print_enum_1): Assert that enumerators
14524 of flag enums have 0 or 1 bit set.
14525
6d0cf446
BE
145262020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
14527
14528 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
14529 conversion.
14530 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14531 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14532 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14533 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14534 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14535
7001c1b7
SM
145362020-02-18 Simon Marchi <simon.marchi@efficios.com>
14537
14538 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
14539
fdb61c6c
SM
145402020-02-14 Simon Marchi <simon.marchi@efficios.com>
14541
14542 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
14543 displaced_step_closure_up.
14544 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14545 (struct displaced_step_closure_up):
14546 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14547 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14548 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
14549 Likewise.
14550 * gdbarch.sh (displaced_step_copy_insn): Likewise.
14551 * gdbarch.c, gdbarch.h: Re-generate.
14552 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
14553 displaced_step_closure_up.
14554 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14555 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14556 * infrun.h (displaced_step_closure_up): New type alias.
14557 (struct displaced_step_inferior_state) <step_closure>: Change
14558 type to displaced_step_closure_up.
14559 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
14560 displaced_step_closure_up.
14561 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14562
a4a38eb4
TT
145632020-02-14 Tom Tromey <tom@tromey.com>
14564
14565 * minidebug.c (gnu_debug_key): New global.
14566 (find_separate_debug_file_in_section): Use it.
14567
e8217e61
SM
145682020-02-14 Simon Marchi <simon.marchi@efficios.com>
14569
14570 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
14571 std::unique_ptr.
14572 * gdbarch.c: Re-generate.
14573 * gdbarch.h: Re-generate.
14574 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
14575 change.
14576 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
14577 type to std::unique_ptr.
14578 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14579 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14580 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14581 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14582 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
14583 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14584 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14585 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14586 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14587
d8d83535
SM
145882020-02-14 Simon Marchi <simon.marchi@efficios.com>
14589
14590 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
14591 std::unique_ptr.
14592 (displaced_step_clear): Rename to...
14593 (displaced_step_reset): ... this. Just call displaced->reset ().
14594 (displaced_step_clear_cleanup): Rename to...
14595 (displaced_step_reset_cleanup): ... this.
14596 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
14597 (displaced_step_fixup): Likewise.
14598 (resume_1): Likewise.
14599 (handle_inferior_event): Restore child's memory before calling
14600 displaced_step_fixup on the parent.
14601 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
14602 to std::unique_ptr.
14603 <step_closure>: Change type to std::unique_ptr.
14604
5f661e03
SM
146052020-02-14 Simon Marchi <simon.marchi@efficios.com>
14606
14607 * arm-tdep.c: Include count-one-bits.h.
14608 (cleanup_block_store_pc): Use count_one_bits.
14609 (cleanup_block_load_pc): Use count_one_bits.
14610 (arm_copy_block_xfer): Use count_one_bits.
14611 (thumb2_copy_block_xfer): Use count_one_bits.
14612 (thumb_copy_pop_pc_16bit): Use count_one_bits.
14613 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
14614 (thumb_get_next_pcs_raw): Use count_one_bits.
14615 (arm_get_next_pcs_raw): Use count_one_bits_l.
14616 * arch/arm.c (bitcount): Remove.
14617 * arch/arm.h (bitcount): Remove.
14618
8084e579
TT
146192020-02-14 Tom Tromey <tromey@adacore.com>
14620
14621 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
14622 Update.
14623 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
14624 * dwarf2/loc.c (call_site_find_chain_1): Return
14625 unique_xmalloc_ptr.
14626 (call_site_find_chain): Likewise.
14627
258bf0ee
RB
146282020-02-14 Richard Biener <rguenther@suse.de>
14629
14630 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
14631 on expression with division operators.
14632
f98a8458
AKS
146332020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14634
14635 * MAINTAINERS (Write After Approval): Adding myself.
14636
d1437c0e
TT
146372020-02-12 Tom Tromey <tom@tromey.com>
14638
14639 * event-loop.c (event_data, gdb_event, event_handler_func):
14640 Remove.
14641
3d4560f7
TT
146422020-02-12 Tom Tromey <tom@tromey.com>
14643
14644 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
14645 (dwarf2_frame_objfile_data): Add comment.
14646 (find_comp_unit, set_comp_unit): New functions.
14647 (dwarf2_frame_find_fde): Use find_comp_unit.
14648 (dwarf2_build_frame_info): Use set_comp_unit.
14649
21982304
TT
146502020-02-12 Tom Tromey <tom@tromey.com>
14651
14652 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
14653 (comp_unit): Don't initialize objfile.
14654 (execute_cfa_program): Add text_offset parameter.
14655 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
14656 (dwarf2_frame_cache): Update.
14657 (dwarf2_build_frame_info): Don't set "objfile" member.
14658
4debb237
TT
146592020-02-12 Tom Tromey <tom@tromey.com>
14660
14661 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
14662 (decode_frame_entry): Likewise.
14663 (dwarf2_build_frame_info): Update.
14664
0d404d44
TT
146652020-02-12 Tom Tromey <tom@tromey.com>
14666
14667 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
14668 (decode_frame_entry_1): Use the comp_unit obstack.
14669
a7a3ae5c
TT
146702020-02-12 Tom Tromey <tom@tromey.com>
14671
14672 * dwarf2/frame.c (struct comp_unit): Add initializers and
14673 constructor.
14674 (dwarf2_frame_objfile_data): Store a comp_unit.
14675 (dwarf2_frame_find_fde): Update.
14676 (dwarf2_build_frame_info): Use "new".
14677
a9d65418
TT
146782020-02-12 Tom Tromey <tom@tromey.com>
14679
14680 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
14681 (dwarf2_fde_table): Typedef for std::vector.
14682 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
14683 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
14684 (decode_frame_entry): Update.
14685 (dwarf2_build_frame_info): Use "new".
14686
7559c217
CB
146872020-02-12 Christian Biesinger <cbiesinger@google.com>
14688
14689 * arm-tdep.c (arm_gdbarch_init): Update.
14690 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
14691 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
14692 have_neon, is_m>: Change to bool.
14693
aeefc73c
CB
146942020-02-12 Christian Biesinger <cbiesinger@google.com>
14695
14696 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
14697
d27b8e5f
TT
146982020-02-12 Tom Tromey <tom@tromey.com>
14699
14700 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
14701
cd5900f3
HD
147022020-02-12 Hannes Domani <ssbssa@yahoo.de>
14703
14704 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
14705 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
14706
f056b22b
TT
147072020-02-11 Tom Tromey <tom@tromey.com>
14708
14709 * psymtab.h: Update comment.
14710
f92ff6b5
TT
147112020-02-11 Tom Tromey <tom@tromey.com>
14712
14713 * gdb_obstack.h (struct auto_obstack): Use
14714 DISABLE_COPY_AND_ASSIGN.
14715
3fd6912b
TT
147162020-02-11 Tom Tromey <tom@tromey.com>
14717
14718 * dwarf2/frame.h (struct objfile): Don't forward declare.
14719
69ed9b74
CB
147202020-02-11 Christian Biesinger <cbiesinger@google.com>
14721
14722 * cris-tdep.c (cris_supply_gregset): Change signature to match
14723 what struct regset expects.
14724 (cris_regset): New struct.
14725 (fetch_core_registers): Remove.
14726 (cris_iterate_over_regset_sections): New function.
14727 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
14728 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
14729
bda874f6
CB
147302020-02-11 Christian Biesinger <cbiesinger@google.com>
14731
14732 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
14733 registers.
14734
754e1564
CB
147352020-02-11 Christian Biesinger <cbiesinger@google.com>
14736
14737 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
14738
8ddd8e0e
SM
147392020-02-11 Simon Marchi <simon.marchi@efficios.com>
14740
14741 * configure: Re-generate.
14742
898e7f60
SM
147432020-02-11 Simon Marchi <simon.marchi@efficios.com>
14744
14745 * configure: Re-generate.
14746
58df732b
SM
147472020-02-11 Simon Marchi <simon.marchi@efficios.com>
14748
14749 * acinclude: Update warning.m4 path.
14750 * warning.m4: Move to gdbsupport.
14751
da5bd37e
TT
147522020-02-11 Tom Tromey <tromey@adacore.com>
14753
14754 * remote.c (remote_console_output): Update.
14755 * printcmd.c (printf_command): Update.
14756 * event-loop.c (gdb_wait_for_event): Update.
14757 * linux-nat.c (sigchld_handler): Update.
14758 * remote-sim.c (gdb_os_write_stdout): Update.
14759 (gdb_os_flush_stdout): Update.
14760 (gdb_os_flush_stderr): Update.
14761 (gdb_os_write_stderr): Update.
14762 * exceptions.c (print_exception): Update.
14763 * remote-fileio.c (remote_fileio_func_read): Update.
14764 (remote_fileio_func_write): Update.
14765 * tui/tui.c (tui_enable): Update.
14766 * tui/tui-interp.c (tui_interp::init): Update.
14767 * utils.c (init_page_info): Update.
14768 (putchar_unfiltered, fputc_unfiltered): Update.
14769 (gdb_flush): Update.
14770 (emit_style_escape): Update.
14771 (flush_wrap_buffer, fputs_maybe_filtered): Update.
14772 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
14773 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
14774 (stderr_file::write): Update.
14775 (stderr_file::puts): Update.
14776 * ui-file.h (ui_file_isatty, ui_file_write)
14777 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
14778 (ui_file_puts): Don't declare.
14779
85f0dd3c
TV
147802020-02-10 Tom de Vries <tdevries@suse.de>
14781
14782 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
14783 sentinel to char *.
14784
2e927613
TV
147852020-02-09 Tom de Vries <tdevries@suse.de>
14786
14787 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
14788 filename if it matches "<artificial>".
14789
6bafc845
HD
147902020-02-09 Hannes Domani <ssbssa@yahoo.de>
14791
14792 * windows-tdep.c (struct enum_value_name): New struct.
14793 (create_enum): New function.
14794 (windows_get_siginfo_type): Create and use enum types.
14795
7928d571
HD
147962020-02-09 Hannes Domani <ssbssa@yahoo.de>
14797
14798 * NEWS: Mention $_siginfo support for Windows.
14799 * windows-nat.c (handle_exception): Set siginfo_er.
14800 (windows_nat_target::mourn_inferior): Reset siginfo_er.
14801 (windows_xfer_siginfo): New function.
14802 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
14803 * windows-tdep.c (struct windows_gdbarch_data): New struct.
14804 (init_windows_gdbarch_data): New function.
14805 (get_windows_gdbarch_data): New function.
14806 (windows_get_siginfo_type): New function.
14807 (windows_init_abi): Register windows_get_siginfo_type.
14808 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
14809
6751ebae
TT
148102020-02-08 Tom Tromey <tom@tromey.com>
14811
14812 * dwarf2/read.c (class cutu_reader) <cutu_reader,
14813 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
14814 <keep>: Declare method.
14815 <m_keep>: Remove member.
14816 <~cutu_reader>: Remove.
14817 (cutu_reader::init_tu_and_read_dwo_dies): Update.
14818 (cutu_reader::cutu_reader): Update.
14819 (cutu_reader::keep): Rename from ~cutu_reader.
14820 (process_psymtab_comp_unit, build_type_psymtabs_1)
14821 (process_skeletonless_type_unit, load_partial_comp_unit)
14822 (load_full_comp_unit, dwarf2_read_addr_index)
14823 (read_signatured_type): Update.
14824
135f5437
TT
148252020-02-08 Tom Tromey <tom@tromey.com>
14826
14827 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
14828 "want_partial_unit" parameter.
14829 (process_psymtab_comp_unit): Change want_partial_unit to bool.
14830 Inline check for DW_TAG_partial_unit.
14831 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
14832
9f66ff1c
TT
148332020-02-08 Tom Tromey <tom@tromey.com>
14834
14835 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
14836 read.c.
14837 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
14838 read.c.
14839
c8a7a66f
TT
148402020-02-08 Tom Tromey <tom@tromey.com>
14841
14842 * dwarf2/read.c (read_address): Move to comp-unit.c.
14843 (dwarf2_rnglists_process, dwarf2_ranges_process)
14844 (read_attribute_value, dwarf_decode_lines_1)
14845 (var_decode_location, decode_locdesc): Update.
14846 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
14847 read.c. Remove "cu" parameter.
14848 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
14849 method.
14850
8266302d
TT
148512020-02-08 Tom Tromey <tom@tromey.com>
14852
14853 * dwarf2/read.c (read_attribute_value, read_indirect_string)
14854 (read_indirect_line_string): Update.
14855 * dwarf2/comp-unit.c (read_offset): Remove.
14856 (read_comp_unit_head): Update.
14857 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
14858 method.
14859 (read_offset): Don't declare.
14860
4057dfde
TT
148612020-02-08 Tom Tromey <tom@tromey.com>
14862
14863 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
14864 * dwarf2/read.c (struct comp_unit_head): Move to
14865 dwarf2/comp-unit.h.
14866 (enum class rcuh_kind): Move to comp-unit.h.
14867 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
14868 (read_comp_unit_head, error_check_comp_unit_head)
14869 (read_and_check_comp_unit_head): Move to comp-unit.c.
14870 (read_offset, dwarf_unit_type_name): Likewise.
14871 (create_debug_type_hash_table, read_cutu_die_from_dwo)
14872 (cutu_reader::cutu_reader, read_call_site_scope)
14873 (find_partial_die, follow_die_offset): Update.
14874 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
14875
24aa364d
TT
148762020-02-08 Tom Tromey <tom@tromey.com>
14877
14878 * dwarf2/read.c (read_offset_1): Move to leb.c.
14879 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
14880 (dwarf_decode_macro_bytes): Update.
14881 * dwarf2/leb.c (read_offset): Rename; move from read.c.
14882 * dwarf2/leb.h (read_offset): Declare.
14883
2c7d5afc
TT
148842020-02-08 Tom Tromey <tom@tromey.com>
14885
14886 * dwarf2/read.c (dwarf2_section_size): Remove.
14887 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
14888 Update.
14889 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
14890
4075cb26
TT
148912020-02-08 Tom Tromey <tom@tromey.com>
14892
14893 * dwarf2/read.c (read_initial_length): Move to leb.c.
14894 * dwarf2/leb.h (read_initial_length): Declare.
14895 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
14896 handle_nonstd parameter.
14897 * dwarf2/frame.c (read_initial_length): Remove.
14898 (decode_frame_entry_1): Update.
14899
09ba997f
TT
149002020-02-08 Tom Tromey <tom@tromey.com>
14901
14902 * dwarf2/loc.c (dwarf2_find_location_expression)
14903 (dwarf_evaluate_loc_desc::get_tls_address)
14904 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
14905 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
14906 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
14907 (dwarf2_compile_property_to_c)
14908 (dwarf2_loc_desc_get_symbol_read_needs)
14909 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
14910 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
14911 (loclist_describe_location, loclist_tracepoint_var_ref)
14912 (loclist_generate_c_location): Update.
14913 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
14914 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
14915 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
14916 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
14917 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
14918 (dwarf2_per_cu_data::addr_size)
14919 (dwarf2_per_cu_data::ref_addr_size)
14920 (dwarf2_per_cu_data::text_offset)
14921 (dwarf2_per_cu_data::addr_type): Now methods.
14922 (per_cu_header_read_in): Make per_cu "const".
14923 (dwarf2_version): Remove.
14924 (dwarf2_per_cu_data::int_type): Now a method.
14925 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
14926 (set_die_type, read_array_type, read_subrange_index_type)
14927 (read_tag_string_type, read_subrange_type): Update.
14928 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
14929 offset_size, ref_addr_size, text_offset, addr_type, version,
14930 objfile, int_type, addr_sized_int_type>: Declare methods.
14931
96c738c0
TT
149322020-02-08 Tom Tromey <tom@tromey.com>
14933
14934 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
14935 Move earlier.
14936
8fdd972c
TT
149372020-02-08 Tom Tromey <tom@tromey.com>
14938
14939 * dwarf2/read.h (dwarf_line_debug): Declare.
14940 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
14941 * dwarf2/read.c: Move line_header code to new files.
14942 (dwarf_line_debug): No longer static.
14943 * dwarf2/line-header.c: New file.
14944 * dwarf2/line-header.h: New file.
14945
03075812
TT
149462020-02-08 Tom Tromey <tom@tromey.com>
14947
14948 * dwarf2/read.c (struct line_header) <file_full_name,
14949 file_file_name>: Return unique_xmalloc_ptr.
14950 (line_header::file_file_name): Update.
14951 (line_header::file_full_name): Update.
14952 (dw2_get_file_names_reader): Update.
14953 (macro_start_file): Update.
14954
bb822404
TT
149552020-02-08 Tom Tromey <tom@tromey.com>
14956
14957 * dwarf2/read.c (struct line_header) <file_full_name,
14958 file_file_name>: Declare methods.
14959 (dw2_get_file_names_reader): Update.
14960 (file_file_name): Now a method.
14961 (file_full_name): Likewise.
14962 (macro_start_file): Update.
14963
009b64fc
TT
149642020-02-08 Tom Tromey <tom@tromey.com>
14965
14966 * dwarf2/read.c (dwarf_always_disassemble)
14967 (show_dwarf_always_disassemble): Move to loc.c.
14968 (_initialize_dwarf2_read): Move "always-disassemble" registration
14969 to loc.c.
14970 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
14971 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
14972 static.
14973 (show_dwarf_always_disassemble): Move from read.c.
14974 (_initialize_dwarf2loc): Move always-disassemble from read.c.
14975
5895093f
TT
149762020-02-08 Tom Tromey <tom@tromey.com>
14977
14978 * dwarf2/read.c (~dwarf2_per_objfile): Update.
14979 (create_quick_file_names_table): Return htab_up.
14980 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
14981 Update.
14982 * dwarf2/read.h (struct dwarf2_per_objfile)
14983 <quick_file_names_table>: Now htab_up.
14984
b3b32279
TT
149852020-02-08 Tom Tromey <tom@tromey.com>
14986
14987 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
14988
1d33d811
TT
149892020-02-08 Tom Tromey <tom@tromey.com>
14990
14991 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
14992 Rewrite.
14993 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
14994 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
14995 (abbrev_table::abbrev_table): No longer inline.
14996 (ABBREV_HASH_SIZE): Remove.
14997 (abbrev_table::m_abbrevs): Now an htab_up.
14998
86de1d91
TT
149992020-02-08 Tom Tromey <tom@tromey.com>
15000
15001 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
15002 (cutu_reader): Update.
15003 (build_type_psymtabs_1): Update.
15004 * dwarf2/abbrev.c (abbrev_table::read): Rename.
15005 (abbrev_table::alloc_abbrev): Update.
15006 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
15007 (abbrev_table::read): New static method, renamed from
15008 abbrev_table_read_table.
15009 (abbrev_table::alloc_abbrev)
15010 (abbrev_table::add_abbrev): Now private.
15011 (abbrev_table::abbrev_table): Now private.
15012 (abbrev_table::m_abbrev_obstack): Now private. Rename.
15013
0335378b
TT
150142020-02-08 Tom Tromey <tom@tromey.com>
15015
15016 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
15017 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
15018 htab_up.
15019
48b490f2
TT
150202020-02-08 Tom Tromey <tom@tromey.com>
15021
15022 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
15023 htab_up.
15024 (lookup_dwo_unit_in_dwp): Update.
15025 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
15026 on obstack.
15027
bc68fb19
TT
150282020-02-08 Tom Tromey <tom@tromey.com>
15029
15030 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
15031 obstack.
15032
d15acc42
TT
150332020-02-08 Tom Tromey <tom@tromey.com>
15034
15035 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
15036 line_header_hash.
15037 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
15038 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
15039 Change type to htab_up.
15040
eaa5fa8b
TT
150412020-02-08 Tom Tromey <tom@tromey.com>
15042
15043 * dwarf2/read.c (allocate_type_unit_groups_table): Return
15044 htab_up. Don't allocate on obstack.
15045 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
15046 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
15047 Change type to htab_up.
15048
b0b6a987
TT
150492020-02-08 Tom Tromey <tom@tromey.com>
15050
15051 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
15052 Change type to htab_up.
15053 * dwarf2/read.c (create_signatured_type_table_from_index)
15054 (create_signatured_type_table_from_debug_names)
15055 (create_all_type_units, add_type_unit)
15056 (lookup_dwo_signatured_type, lookup_signatured_type)
15057 (process_skeletonless_type_unit): Update.
15058 (create_debug_type_hash_table, create_debug_types_hash_table):
15059 Change type of types_htab.
15060 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
15061 htab_up. Don't allocate on obstack.
15062 (create_cus_hash_table): Change type of cus_htab parameter.
15063 (struct dwo_file) <cus, tus>: Now htab_up.
15064 (lookup_dwo_signatured_type, lookup_dwo_cutu)
15065 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
15066 (queue_and_load_all_dwo_tus): Update.
15067 * dwarf2/index-write.c (write_gdbindex): Update.
15068 (write_debug_names): Update.
15069
39856def
TT
150702020-02-08 Tom Tromey <tom@tromey.com>
15071
15072 * dwarf2/read.h (struct dwarf2_queue_item): Move from
15073 dwarf2/read.c. Remove "next" member. Add constructor ntad
15074 destructor.
15075 (struct dwarf2_per_objfile) <queue>: New member.
15076 * dwarf2/read.c (struct dwarf2_queue_item): Move to
15077 dwarf2/read.h.
15078 (dwarf2_queue, dwarf2_queue_tail): Remove.
15079 (class dwarf2_queue_guard): Add parameter to constructor. Use
15080 DISABLE_COPY_AND_ASSIGN.
15081 <m_per_objfile>: New member.
15082 <~dwarf2_queue_guard>: Rewrite.
15083 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
15084 Update.
15085 (~dwarf2_queue_item): New.
15086
3e225074
TT
150872020-02-08 Tom Tromey <tom@tromey.com>
15088
15089 * dwarf2/read.c (struct die_info) <has_children>: New member.
15090 (dw2_get_file_names_reader): Remove has_children.
15091 (dw2_get_file_names): Update.
15092 (read_cutu_die_from_dwo): Remove has_children.
15093 (cutu_reader::init_tu_and_read_dwo_dies)
15094 (cutu_reader::cutu_reader): Update.
15095 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
15096 Remove has_children.
15097 (build_type_psymtabs_1, process_skeletonless_type_unit)
15098 (load_partial_comp_unit, load_full_comp_unit): Update.
15099 (create_dwo_cu_reader): Remove has_children.
15100 (create_cus_hash_table, read_die_and_children): Update.
15101 (read_full_die_1,read_full_die): Remove has_children.
15102 (read_signatured_type): Update.
15103 (class cutu_reader) <has_children>: Remove.
15104
82ca8957
TT
151052020-02-08 Tom Tromey <tom@tromey.com>
15106
15107 * dwarf2/expr.c: Rename from dwarf2expr.c.
15108 * dwarf2/expr.h: Rename from dwarf2expr.h.
15109 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
15110 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
15111 * dwarf2/frame.c: Rename from dwarf2-frame.c.
15112 * dwarf2/frame.h: Rename from dwarf2-frame.h.
15113 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
15114 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
15115 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
15116 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
15117 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
15118 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
15119 * dwarf2/loc.c: Rename from dwarf2loc.c.
15120 * dwarf2/loc.h: Rename from dwarf2loc.h.
15121 * dwarf2/read.c: Rename from dwarf2read.c.
15122 * dwarf2/read.h: Rename from dwarf2read.h.
15123 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
15124 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
15125 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
15126 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
15127 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
15128 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
15129 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
15130 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
15131 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
15132 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
15133 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
15134 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
15135 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
15136 Update.
15137 * Makefile.in (COMMON_SFILES): Update.
15138 (HFILES_NO_SRCDIR): Update.
15139
9e35d499
TT
151402020-02-08 Tom Tromey <tom@tromey.com>
15141
15142 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
15143 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
15144
1eba2311
TT
151452020-02-08 Tom Tromey <tom@tromey.com>
15146
15147 * dwarf2read.h (struct die_info): Don't declare.
15148
e41c2da2
TT
151492020-02-08 Tom Tromey <tom@tromey.com>
15150
15151 * dwarf2read.h (die_info_ptr): Remove typedef.
15152
4fc6c0d5
TT
151532020-02-08 Tom Tromey <tom@tromey.com>
15154
15155 * dwarf2read.c (read_call_site_scope)
15156 (handle_data_member_location, dwarf2_add_member_fn)
15157 (mark_common_block_symbol_computed, read_common_block)
15158 (attr_to_dynamic_prop, partial_die_info::read)
15159 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
15160 (dwarf2_symbol_mark_computed, set_die_type): Update.
15161 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
15162 method.
15163 (attr_form_is_block): Don't declare.
15164 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
15165
cd6c91b4
TT
151662020-02-08 Tom Tromey <tom@tromey.com>
15167
15168 * dwarf2read.c (dwarf2_find_base_address, )
15169 (read_call_site_scope, rust_containing_type)
15170 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
15171 (handle_data_member_location, dwarf2_add_member_fn)
15172 (get_alignment, read_structure_type, process_structure_scope)
15173 (mark_common_block_symbol_computed, read_common_block)
15174 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
15175 (partial_die_info::read, read_attribute_value, new_symbol)
15176 (lookup_die_type, dwarf2_get_ref_die_offset)
15177 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
15178 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
15179 (dwarf2_symbol_mark_computed): Update.
15180 * dwarf2/attribute.h (struct attribute) <value_as_address,
15181 form_is_section_offset, form_is_constant, form_is_ref>: Declare
15182 methods.
15183 (value_as_address, attr_form_is_section_offset)
15184 (attr_form_is_constant, attr_form_is_ref): Don't declare.
15185 * dwarf2/attribute.c (attribute::value_as_address)
15186 (attribute::form_is_section_offset, attribute::form_is_constant)
15187 (attribute::form_is_ref): Now methods.
15188
162dce55
TT
151892020-02-08 Tom Tromey <tom@tromey.com>
15190
15191 * dwarf2read.c (struct attribute, DW_STRING)
15192 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
15193 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
15194 (attr_form_is_block, attr_form_is_section_offset)
15195 (attr_form_is_constant, attr_form_is_ref): Move.
15196 * dwarf2/attribute.h: New file.
15197 * dwarf2/attribute.c: New file, from dwarf2read.c.
15198 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
15199
3054dd54
TT
152002020-02-08 Tom Tromey <tom@tromey.com>
15201
15202 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
15203 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
15204 Move.
15205 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
15206 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
15207 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
15208 abbrev.c.
15209 * dwarf2/abbrev.h: New file.
15210 * dwarf2/abbrev.c: New file, from dwarf2read.c.
15211 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
15212
96b79293
TT
152132020-02-08 Tom Tromey <tom@tromey.com>
15214
15215 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
15216 (dwarf2_section_size, dwarf2_get_section_info)
15217 (create_signatured_type_table_from_debug_names)
15218 (create_addrmap_from_aranges, read_debug_names_from_section)
15219 (get_gdb_index_contents_from_section, read_comp_unit_head)
15220 (error_check_comp_unit_head, read_abbrev_offset)
15221 (create_debug_type_hash_table, init_cu_die_reader)
15222 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
15223 (read_comp_units_from_section, create_cus_hash_table)
15224 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
15225 (create_dwp_v2_section, dwarf2_rnglists_process)
15226 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
15227 (abbrev_table_read_table, read_indirect_string_at_offset_from)
15228 (read_indirect_string_from_dwz, read_addr_index_1)
15229 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
15230 (dwarf_decode_macro_bytes, dwarf_decode_macros)
15231 (fill_in_loclist_baton): Update.
15232 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
15233 get_containing_section, get_bfd_owner, get_bfd_section,
15234 get_file_name, get_id, get_flags, empty, read>: Declare methods.
15235 (dwarf2_read_section, get_section_name, get_section_file_name)
15236 (get_containing_section, get_section_bfd_owner)
15237 (get_section_bfd_section, get_section_name, get_section_file_name)
15238 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
15239 declare.
15240 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
15241 (dwarf2_section_info::get_bfd_owner)
15242 (dwarf2_section_info::get_bfd_section)
15243 (dwarf2_section_info::get_name)
15244 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
15245 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
15246 (dwarf2_section_info::read): Now methods.
15247 * dwarf-index-write.c (class debug_names): Update.
15248
2c86cff9
TT
152492020-02-08 Tom Tromey <tom@tromey.com>
15250
15251 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
15252 Move to dwarf2/section.h.
15253 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
15254 (get_section_bfd_section, get_section_name)
15255 (get_section_file_name, get_section_id, get_section_flags)
15256 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
15257 dwarf2/section.c.
15258 * dwarf2/section.h: New file.
15259 * dwarf2/section.c: New file, from dwarf2read.c.
15260 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
15261
f4382c45
TT
152622020-02-08 Tom Tromey <tom@tromey.com>
15263
15264 * dwarf2read.h (read_unsigned_leb128): Don't declare.
15265 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
15266 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
15267 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
15268 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
15269 * dwarf2/leb.h: New file, from dwarf2read.c.
15270 * dwarf2/leb.c: New file, from dwarf2read.c.
15271 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
15272 Remove.
15273 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
15274 (COMMON_SFILES): Add dwarf2/leb.c.
15275
01840b7a
JB
152762020-02-08 Joel Brobecker <brobecker@adacore.com>
15277
15278 GDB 9.1 released.
15279
dfcb27e4
IB
152802020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15281
15282 PR gdb/25190:
aac66a4c
SM
15283 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
15284 * gdb/remote.c (remote_console_output): Update.
15285 * gdb/ui-file.c (fputs_unfiltered): Rename to...
15286 (ui_file_puts): ...this.
15287 * gdb/ui-file.h (ui_file_puts): Add declaration.
15288 * gdb/utils.c (emit_style_escape): Update.
15289 (flush_wrap_buffer): Update.
15290 (fputs_maybe_filtered): Update.
15291 (fputs_unfiltered): Add function.
dfcb27e4 15292
faa17681
IB
152932020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15294
aac66a4c
SM
15295 * gdb/event-loop.c (gdb_wait_for_event): Update.
15296 * gdb/printcmd.c (printf_command): Update.
15297 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
15298 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
15299 (gdb_os_flush_stderr): Update.
15300 * gdb/remote.c (remote_console_output): Update.
15301 * gdb/ui-file.c (gdb_flush): Rename to...
15302 (ui_file_flush): ...this.
15303 (stderr_file::write): Update.
15304 (stderr_file::puts): Update.
15305 * gdb/ui-file.h (gdb_flush): Rename to...
15306 (ui_file_flush): ...this.
15307 * gdb/utils.c (gdb_flush): Add function.
15308 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 15309
5abbbe1d
TT
153102020-02-07 Tom Tromey <tromey@adacore.com>
15311
15312 PR breakpoints/24915:
15313 * source.c (find_and_open_source): Do not check basenames_may_differ.
15314
919adfe8
TT
153152020-02-07 Tom Tromey <tom@tromey.com>
15316
15317 * README: Update gdbserver documentation.
15318 * gdbserver: Move to top level.
15319 * configure.tgt (build_gdbserver): Remove.
15320 * configure.ac: Remove --enable-gdbserver.
15321 * configure: Rebuild.
15322 * Makefile.in (distclean): Don't mention gdbserver.
15323
1d5d29e7
SV
153242020-02-06 Shahab Vahedi <shahab@synopsys.com>
15325
15326 * source-cache.c (source_cache::ensure): Surround
15327 get_plain_source_lines with a try/catch.
15328 (source_cache::get_line_charpos): Get rid of try/catch
15329 and only check for the return value of "ensure".
15330 * tui/tui-source.c (tui_source_window::set_contents):
15331 Simplify "nlines" calculation.
15332
6eb1129c
SV
153332020-02-06 Shahab Vahedi <shahab@synopsys.com>
15334
15335 * MAINTAINERS (Write After Approval): Add myself.
15336
c6a42d11
CB
153372020-02-05 Christian Biesinger <cbiesinger@google.com>
15338
15339 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
15340 function call.
15341
c8ecdda6
CB
153422020-02-05 Christian Biesinger <cbiesinger@google.com>
15343
15344 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
15345
f6480e70
MR
153462020-02-05 Maciej W. Rozycki <macro@wdc.com>
15347
15348 * nat/riscv-linux-tdesc.h: New file.
15349 * nat/riscv-linux-tdesc.c: New file, taking code from...
15350 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
15351 ... here.
15352 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
15353 NATDEPFILES.
15354
dcc9fbc6
AB
153552020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
15356
15357 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
15358 we don't set the fake simulator ptid to the null_ptid.
15359
719546c4
SM
153602020-02-03 Simon Marchi <simon.marchi@efficios.com>
15361
15362 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
15363 * gdbthread.h (class thread_info) <resumed>: Likewise.
15364 * infrun.c (resume_1): Likewise.
15365 (proceed): Likewise.
15366 (infrun_thread_stop_requested): Likewise.
15367 (stop_all_threads): Likewise.
15368 (handle_inferior_event): Likewise.
15369 (restart_threads): Likewise.
15370 (finish_step_over): Likewise.
15371 (keep_going_stepped_thread): Likewise.
15372 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
15373 (linux_handle_extended_wait): Likewise.
15374 * record-btrace.c (get_thread_current_frame_id): Likewise.
15375 * record-full.c (record_full_wait_1): Likewise.
15376 * remote.c (remote_target::process_initial_stop_replies): Likewise.
15377 * target.c (target_resume): Likewise.
15378 * thread.c (set_running_thread): Likewise.
15379
e409c542
AKS
153802020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15381
15382 * f-valprint.c (f77_print_array_1): Changed datatype of index
15383 variable to LONGEST from int to enable it to contain bound
15384 values correctly.
15385
ee98c0da
MR
153862020-02-03 Maciej W. Rozycki <macro@wdc.com>
15387
15388 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
15389 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
15390 offsets according to FLEN determined.
15391 (riscv_linux_nat_target::read_description): Determine FLEN
15392 dynamically.
15393 (riscv_linux_nat_target::fetch_registers): Size regset buffer
15394 according to FLEN determined.
15395 (riscv_linux_nat_target::store_registers): Likewise.
15396
aa66aac4
SV
153972020-02-01 Shahab Vahedi <shahab@synopsys.com>
15398
15399 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
15400 when reg->group is empty and reggroup is not.
15401
fd9faca8
TT
154022020-01-31 Tom Tromey <tromey@adacore.com>
15403
15404 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
15405 Call beneath target's mourn_inferior after unpushing.
15406
42330a68
AB
154072020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15408
15409 PR tui/9765
15410 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
15411 have enough lines to fill the screen, still return the lowest
15412 address we found.
15413
7a27a45b
AB
154142020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15415
15416 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
15417 '-', '<', and '>' commands.
15418
c47f70e2
PA
154192020-01-29 Pedro Alves <palves@redhat.com>
15420 Sergio Durigan Junior <sergiodj@redhat.com>
15421
15422 * infcmd.c (construct_inferior_arguments): Assert that
15423 'argc' is greater than 0.
15424
5133a315
LM
154252020-01-29 Luis Machado <luis.machado@linaro.org>
15426
15427 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
15428 (BRK_INSN_MASK): Define to 0xd4200000.
15429 (aarch64_program_breakpoint_here_p): New function.
15430 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
15431 * arch-utils.c (default_program_breakpoint_here_p): Moved from
15432 breakpoint.c.
15433 * arch-utils.h (default_program_breakpoint_here_p): Moved from
15434 breakpoint.h
15435 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
15436 call gdbarch_program_breakpoint_here_p.
15437 (program_breakpoint_here): Moved to arch-utils.c, renamed to
15438 default_program_breakpoint_here_p, changed return type to bool and
15439 simplified.
15440 * breakpoint.h (program_breakpoint_here): Moved prototype to
15441 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
15442 return type to bool.
15443 * gdbarch.c: Regenerate.
15444 * gdbarch.h: Regenerate.
15445 * gdbarch.sh (program_breakpoint_here_p): New method.
15446 * infrun.c (handle_signal_stop): Call
15447 gdbarch_program_breakpoint_here_p.
15448
168f8c6b
TT
154492020-01-26 Tom Tromey <tom@tromey.com>
15450
15451 * ctfread.c (struct ctf_fp_info): Reindent.
15452 (_initialize_ctfread): Remove.
15453
128a391f
TT
154542020-01-26 Tom Tromey <tom@tromey.com>
15455
15456 * psymtab.c (partial_map_expand_apply)
15457 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
15458 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
15459 (psym_print_stats, psym_expand_symtabs_for_function)
15460 (psym_map_symbol_filenames, psym_map_matching_symbols)
15461 (psym_expand_symtabs_matching)
15462 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
15463 (maintenance_check_psymtabs): Use new methods.
15464 * psympriv.h (struct partial_symtab) <readin_p,
15465 get_compunit_symtab>: New methods.
15466 <readin, compunit_symtab>: Remove members.
15467 (struct standard_psymtab): New.
15468 (struct legacy_psymtab): Derive from standard_psymtab.
15469 * dwarf2read.h (struct dwarf2_psymtab): Derive from
15470 standard_psymtab.
15471 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
15472
0494dbec
TT
154732020-01-26 Tom Tromey <tom@tromey.com>
15474
15475 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
15476 read_dependencies. Add assert.
15477 * psymtab.c (partial_symtab::read_dependencies): New method.
15478 * psympriv.h (struct partial_symtab) <read_dependencies>: New
15479 method.
15480 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
15481 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
15482 read_dependencies.
15483 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
15484 Add assert.
15485
8566b89b
TT
154862020-01-26 Tom Tromey <tom@tromey.com>
15487
15488 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
15489 Call expand_psymtab.
15490 (xcoff_read_symtab): Call expand_psymtab.
15491 (xcoff_start_psymtab, xcoff_end_psymtab): Set
15492 legacy_expand_psymtab.
15493 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
15494 method.
15495 (struct legacy_psymtab) <expand_psymtab>: Implement.
15496 <legacy_expand_psymtab>: New member.
15497 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
15498 (parse_partial_symbols): Set legacy_expand_psymtab.
15499 (psymtab_to_symtab_1): Change argument order. Call
15500 expand_psymtab.
15501 (new_psymtab): Set legacy_expand_psymtab.
15502 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
15503 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
15504 expand_psymtab.
15505 (dwarf2_psymtab::expand_psymtab): Rename from
15506 psymtab_to_symtab_1. Call expand_psymtab.
15507 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
15508 (dbx_end_psymtab): Likewise.
15509 (dbx_psymtab_to_symtab_1): Change argument order. Call
15510 expand_psymtab.
15511 (dbx_read_symtab): Call expand_psymtab.
15512 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
15513 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
15514 (ctf_psymtab::read_symtab): Call expand_psymtab.
15515
077cbab2
TT
155162020-01-26 Tom Tromey <tom@tromey.com>
15517
15518 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
15519 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
15520 messages.
15521 * mdebugread.c (mdebug_read_symtab): Remove prints.
15522 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
15523 assert.
15524 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
15525
891813be
TT
155262020-01-26 Tom Tromey <tom@tromey.com>
15527
15528 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
15529 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
15530 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
15531 legacy_symtab.
15532 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
15533 * psymtab.c (psymtab_to_symtab): Call method.
15534 (dump_psymtab): Update.
15535 * psympriv.h (struct partial_symtab): Add virtual destructor.
15536 <read_symtab>: New method.
15537 (struct legacy_symtab): New.
15538 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
15539 (struct pst_map) <pst>: Now a legacy_psymtab.
15540 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
15541 (new_psymtab): Use legacy_psymtab.
15542 * dwarf2read.h (struct dwarf2_psymtab): New.
15543 (struct dwarf2_per_cu_data) <psymtab>: Use it.
15544 * dwarf2read.c (dwarf2_create_include_psymtab)
15545 (dwarf2_build_include_psymtabs, create_type_unit_group)
15546 (create_partial_symtab, process_psymtab_comp_unit_reader)
15547 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
15548 (set_partial_user): Use dwarf2_psymtab.
15549 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
15550 (psymtab_to_symtab_1, process_full_comp_unit)
15551 (process_full_type_unit, dwarf2_ranges_read)
15552 (dwarf2_get_pc_bounds, psymtab_include_file_name)
15553 (dwarf_decode_lines): Use dwarf2_psymtab.
15554 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
15555 (add_address_entry_worker, write_one_signatured_type)
15556 (recursively_count_psymbols, recursively_write_psymbols)
15557 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
15558 (write_debug_names): Likewise.
15559 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
15560 <pst>: Now a legacy_psymtab.
15561 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
15562 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
15563 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
15564 * ctfread.c (struct ctf_psymtab): New.
15565 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
15566 ctf_psymtab.
15567 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
15568 (create_partial_symtab): Return a ctf_psymtab.
15569 (scan_partial_symbols): Update.
15570
c3693a1d
TT
155712020-01-26 Tom Tromey <tom@tromey.com>
15572
15573 * xcoffread.c (xcoff_start_psymtab): Use new.
15574 * psymtab.c (partial_symtab::partial_symtab): New constructor,
15575 renamed from start_psymtab_common.
15576 * psympriv.h (struct partial_symtab): Add new constructor.
15577 (start_psymtab_common): Don't declare.
15578 * mdebugread.c (parse_partial_symbols): Use new.
15579 * dwarf2read.c (create_partial_symtab): Use new.
15580 * dbxread.c (start_psymtab): Use new.
15581 * ctfread.c (create_partial_symtab): Use new.
15582
32caafd0
TT
155832020-01-26 Tom Tromey <tom@tromey.com>
15584
15585 * xcoffread.c (xcoff_end_psymtab): Use new.
15586 * psymtab.c (start_psymtab_common): Use new.
15587 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
15588 Update.
15589 * psympriv.h (struct partial_symtab): Add parameters to
15590 constructor. Don't inline.
15591 (allocate_psymtab): Don't declare.
15592 * mdebugread.c (new_psymtab): Use new.
15593 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
15594 * dbxread.c (dbx_end_psymtab): Use new.
15595
abaa2f23
TT
155962020-01-26 Tom Tromey <tom@tromey.com>
15597
15598 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
15599 allocate_psymtab. Update documentation.
15600 * psymtab.c (psymtab_storage::install_psymtab): Rename from
15601 allocate_psymtab. Do not use new.
15602 (allocate_psymtab): Use new. Update.
15603
6d94535f
TT
156042020-01-26 Tom Tromey <tom@tromey.com>
15605
15606 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
15607 * psymtab.c (psym_print_stats): Update.
15608 * psympriv.h (struct partial_symtab) <readin,
15609 psymtabs_addrmap_supported, anonymous>: Now bool.
15610 * mdebugread.c (psymtab_to_symtab_1): Update.
15611 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
15612 (build_type_psymtabs_reader, psymtab_to_symtab_1)
15613 (process_full_comp_unit, process_full_type_unit): Update.
15614 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
15615 * ctfread.c (psymtab_to_symtab): Update.
15616
6f17252b
TT
156172020-01-26 Tom Tromey <tom@tromey.com>
15618
15619 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
15620 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
15621 * psymtab.c (psymtab_storage): Delete psymtabs.
15622 (psymtab_storage::allocate_psymtab): Use new.
15623 (psymtab_storage::discard_psymtab): Use delete.
15624 * psympriv.h (struct partial_symtab): Add constructor and
15625 initializers.
15626
f6f1cebc
TT
156272020-01-26 Tom Tromey <tom@tromey.com>
15628
15629 * machoread.c: Do not include psympriv.h.
15630
e47e48f6
PW
156312020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15632
15633 * NEWS: Mention the new option and the set/show commands.
15634
a2fedca9
PW
156352020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15636
15637 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
15638 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
15639 (validate_exec_file): New variables, enums, functions.
15640 (exec_file_locate_attach, print_section_info): Style the filenames.
15641 (_initialize_exec): Install show_exec_file_mismatch_command and
15642 set_exec_file_mismatch_command.
15643 * gdbcore.h (validate_exec_file): Declare.
15644 * infcmd.c (attach_command): Call validate_exec_file.
15645 * remote.c ( remote_target::remote_add_inferior): Likewise.
15646
7ffa82e1
AB
156472020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15648
15649 * frame.c (find_frame_sal): Move call to get_next_frame into more
15650 inner scope.
15651 * inline-frame.c (inilne_state) <inline_state>: Update argument
15652 types.
15653 (inilne_state) <skipped_symbol>: Rename to...
15654 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
15655 (skip_inline_frames): Build vector of skipped symbols and use this
15656 to reate the inline_state.
15657 (inline_skipped_symbol): Add a comment and some assertions, fetch
15658 skipped symbol from the list.
15659
3d92a3e3
AB
156602020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15661
15662 * buildsym.c (lte_is_less_than): Delete.
15663 (buildsym_compunit::end_symtab_with_blockvector): Create local
15664 lambda function to sort line table entries, and use
15665 std::stable_sort instead of std::sort.
15666 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
15667 markers when looking for a previous line.
15668
94a72be7
AB
156692020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15670
15671 * dwarf2read.c (lnp_state_machine::record_line): Include
15672 end_sequence parameter in debug print out. Record the line if we
15673 are at an end_sequence marker even if it's not the start of a
15674 statement.
15675 * symmisc.c (maintenance_print_one_line_table): Print end of
15676 sequence markers with 'END' not '0'.
15677
53af73bf
PA
156782020-01-24 Pedro Alves <palves@redhat.com>
15679
15680 PR gdb/25410
15681 * thread.c (scoped_restore_current_thread::restore): Use
15682 switch_to_inferior_no_thread.
15683 * exec.c: Include "progspace-and-thread.h".
15684 (add_target_sections, remove_target_sections):
15685 scoped_restore_current_pspace_and_thread instead of
15686 scoped_restore_current_thread.
15687 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
15688 and aspace to the inferior before calling clone_program_space.
15689 Remove stale comment.
15690
3050c6f4
CB
156912020-01-24 Christian Biesinger <cbiesinger@google.com>
15692
15693 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
15694 (arm_netbsd_nat_target::fetch_registers): ...this.
15695 (arm_nbsd_nat_target::store_registers): Rename to...
15696 (arm_netbsd_nat_target::store_registers): ...this.
15697
73685c7e
CB
156982020-01-24 Christian Biesinger <cbiesinger@google.com>
15699
15700 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
15701 register_t.
15702
89203d40
CB
157032020-01-24 Christian Biesinger <cbiesinger@google.com>
15704
15705 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
15706 Update comment.
15707 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
15708 Likewise.
15709 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
15710 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
15711 the correct replacement (iterate_over_regset_sections).
15712 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
15713 Update comment.
15714
1ba1ac88
AB
157152020-01-24 Graham Markall <graham.markall@embecosm.com>
15716
15717 PR gdb/23718
15718 * gdb/python/python.c (execute_gdb_command): Call
15719 async_enable_stdin in catch block.
15720
f3364a6d
AB
157212020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15722
15723 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
15724 SWITCH_THRU_ALL_UIS.
15725
733d0a67
AB
157262020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15727
15728 PR tui/9765
15729 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
15730 comment, add extra parameter, and update to store previous symbol
15731 when appropriate.
15732 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
15733 add extra parameter.
15734 * tui/tui-disasm.c (tui_disassemble): Update header comment,
15735 remove unneeded parameter, add try/catch around gdb_print_insn,
15736 rewrite to add items to asm_lines vector.
15737 (tui_find_backward_disassembly_start_address): New function.
15738 (tui_find_disassembly_address): Updated throughout.
15739 (tui_disasm_window::set_contents): Update for changes to
15740 tui_disassemble.
15741 (tui_disasm_window::do_scroll_vertical): No need to adjust the
15742 number of lines to scroll.
15743
b3b3bada
SM
157442020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
15745
15746 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
15747 (SECT_OFF_DATA): Likewise.
15748 (SECT_OFF_RODATA): Likewise.
15749 (SECT_OFF_TEXT): Likewise.
15750 (SECT_OFF_BSS): Likewise.
15751 (struct objfile) <text_section_offset, data_section_offset>: New
15752 methods.
15753 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
15754 objfile::text_section_offset.
15755 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
15756 * coffread.c (coff_symtab_read): Likewise.
15757 (enter_linenos): Likewise.
15758 (process_coff_symbol): Likewise.
15759 * ctfread.c (get_objfile_text_range): Likewise.
15760 * dtrace-probe.c (dtrace_probe::get_relocated_address):
15761 Use objfile::data_section_offset.
15762 * dwarf2-frame.c (execute_cfa_program): Use
15763 objfile::text_section_offset.
15764 (dwarf2_frame_find_fde): Likewise.
15765 * dwarf2read.c (create_addrmap_from_index): Likewise.
15766 (create_addrmap_from_aranges): Likewise.
15767 (dw2_find_pc_sect_compunit_symtab): Likewise.
15768 (process_psymtab_comp_unit_reader): Likewise.
15769 (add_partial_symbol): Likewise.
15770 (add_partial_subprogram): Likewise.
15771 (process_full_comp_unit): Likewise.
15772 (read_file_scope): Likewise.
15773 (read_func_scope): Likewise.
15774 (read_lexical_block_scope): Likewise.
15775 (read_call_site_scope): Likewise.
15776 (dwarf2_rnglists_process): Likewise.
15777 (dwarf2_ranges_process): Likewise.
15778 (dwarf2_ranges_read): Likewise.
15779 (dwarf_decode_lines_1): Likewise.
15780 (new_symbol): Likewise.
15781 (dwarf2_fetch_die_loc_sect_off): Likewise.
15782 (dwarf2_per_cu_text_offset): Likewise.
15783 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
15784 * hppa-tdep.c (read_unwind_info): Likewise.
15785 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
15786 * psympriv.h (struct partial_symtab): Likewise.
15787 * psymtab.c (find_pc_sect_psymtab): Likewise.
15788 * solib-svr4.c (enable_break): Likewise.
15789 * stap-probe.c (relocate_address): Use
15790 objfile::data_section_offset.
15791 * xcoffread.c (enter_line_range): Use
15792 objfile::text_section_offset.
15793 (read_xcoff_symtab): Likewise.
15794
ab53f382
SM
157952020-01-23 Simon Marchi <simon.marchi@efficios.com>
15796
15797 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
15798 declaration to narrower scopes.
15799
e7eee665
SM
158002020-01-23 Simon Marchi <simon.marchi@efficios.com>
15801
15802 * darwin-nat.h (struct darwin_exception_msg, enum
15803 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
15804 Move up.
15805 (class darwin_nat_target) <wait_1, check_new_threads,
15806 decode_exception_message, decode_message, stop_inferior,
15807 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
15808 * darwin-nat.c (darwin_check_new_threads): Rename to...
15809 (darwin_nat_target::check_new_threads): ... this.
15810 (darwin_suspend_inferior_it): Remove.
15811 (darwin_decode_exception_message): Rename to...
15812 (darwin_nat_target::decode_exception_message): ... this.
15813 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
15814 (darwin_decode_message): Rename to...
15815 (darwin_nat_target::decode_message): ... this.
15816 (cancel_breakpoint): Rename to...
15817 (darwin_nat_target::cancel_breakpoint): ... this.
15818 (darwin_wait): Rename to...
15819 (darwin_nat_target::wait_1): ... this. Use range-based for loop
15820 instead of iterate_over_inferiors.
15821 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
15822 (darwin_stop_inferior): Rename to...
15823 (darwin_nat_target::stop_inferior): ... this.
15824 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
15825 (darwin_init_thread_list): Rename to...
15826 (darwin_nat_target::init_thread_list): ... this.
15827 (darwin_ptrace_him): Rename to...
15828 (darwin_nat_target::ptrace_him): ... this.
15829 (darwin_nat_target::create_inferior): Pass lambda function to
15830 fork_inferior.
15831 (darwin_nat_target::detach): Call stop_inferior instead of
15832 darwin_stop_inferior.
15833 * fork-inferior.h (fork_inferior): Change init_trace_fun
15834 parameter to gdb::function_view.
15835 * fork-inferior.c (fork_inferior): Likewise.
15836
c162ed3e
HD
158372020-01-23 Hannes Domani <ssbssa@yahoo.de>
15838
15839 * i386-cygwin-tdep.c (core_process_module_section): Update.
15840 * windows-nat.c (struct lm_info_windows): Add text_offset.
15841 (windows_xfer_shared_libraries): Update.
15842 * windows-tdep.c (windows_xfer_shared_library):
15843 Add text_offset_cached argument.
15844 * windows-tdep.h (windows_xfer_shared_library): Update.
15845
a1237872
SM
158462020-01-21 Simon Marchi <simon.marchi@efficios.com>
15847
15848 * gdbarch.sh: Add declaration for _initialize_gdbarch.
15849
b3ee6dd9
SM
158502020-01-21 Simon Marchi <simon.marchi@efficios.com>
15851
15852 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
15853 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
15854 replace with range-based for.
15855 (gdbsim_interrupt_inferior): Remove.
15856 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
15857 with a range-based for. Inline code from
15858 gdbsim_interrupt_inferior.
15859
f9fac3c8
SM
158602020-01-21 Simon Marchi <simon.marchi@efficios.com>
15861
15862 * infrun.c (proceed): Fix indentation.
15863
f6474de9
TT
158642020-01-21 Tom Tromey <tromey@adacore.com>
15865
15866 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
15867 * python/python.c (python_extension_ops): Update.
15868 (gdbpy_colorize): New function.
15869 * python/lib/gdb/__init__.py (colorize): New function.
15870 * extension.h (ext_lang_colorize): Declare.
15871 * extension.c (ext_lang_colorize): New function.
15872 * extension-priv.h (struct extension_language_ops) <colorize>: New
15873 member.
15874 * cli/cli-style.c (_initialize_cli_style): Update help text.
15875
f0c702d4
LM
158762020-01-21 Luis Machado <luis.machado@linaro.org>
15877
15878 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
15879 <cond>: Change type to bool.
15880 (aarch64_displaced_step_b_cond): Update cond to use bool type.
15881 (aarch64_displaced_step_cb): Likewise.
15882 (aarch64_displaced_step_tb): Likewise.
15883
1ab139e5
LM
158842020-01-21 Luis Machado <luis.machado@linaro.org>
15885
15886 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
15887 output.
15888
0c271889
LM
158892020-01-21 Luis Machado <luis.machado@linaro.org>
15890
15891 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
15892 <pc_adjust>: Adjust the documentation.
15893 (aarch64_displaced_step_fixup): Check if PC really moved before
15894 adjusting it.
15895
4d89c1c7
TT
158962020-01-19 Tom Tromey <tom@tromey.com>
15897
15898 * disasm.c (~gdb_disassembler): New destructor.
15899 (gdb_buffered_insn_length): Call disassemble_free_target.
15900 * disasm.h (class gdb_disassembler): Declare destructor. Use
15901 DISABLE_COPY_AND_ASSIGN.
15902
c0ab21c2
TT
159032020-01-19 Tom Tromey <tom@tromey.com>
15904
15905 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
15906 (die_reader_func_ftype): Remove.
15907 (cutu_reader): New class.
15908 (dw2_get_file_names_reader): Remove "data" parameter.
15909 (dw2_get_file_names): Use cutu_reader.
15910 (create_debug_type_hash_table): Update.
15911 (read_cutu_die_from_dwo): Update comment.
15912 (lookup_dwo_unit): Add dwo_name parameter.
15913 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
15914 die_reader_func_ftype and data parameters.
15915 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
15916 Remove die_reader_func_ftype and data parameters.
15917 (~cutu_reader): New; from init_cutu_and_read_dies.
15918 (cutu_reader::cutu_reader): Rename from
15919 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
15920 and data parameters.
15921 (init_cutu_and_read_dies_simple): Remove.
15922 (struct process_psymtab_comp_unit_data): Remove.
15923 (process_psymtab_comp_unit_reader): Remove data parameter; add
15924 want_partial_unit and pretend_language parameters.
15925 (process_psymtab_comp_unit): Use cutu_reader.
15926 (build_type_psymtabs_reader): Remove data parameter.
15927 (build_type_psymtabs_1): Use cutu_reader.
15928 (process_skeletonless_type_unit): Likewise.
15929 (load_partial_comp_unit_reader): Remove.
15930 (load_partial_comp_unit): Use cutu_reader.
15931 (load_full_comp_unit_reader): Remove.
15932 (load_full_comp_unit): Use cutu_reader.
15933 (struct create_dwo_cu_data): Remove.
15934 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
15935 dwo_unit parameters.
15936 (create_cus_hash_table): Use cutu_reader.
15937 (struct dwarf2_read_addr_index_data): Remove.
15938 (dwarf2_read_addr_index_reader): Remove.
15939 (dwarf2_read_addr_index): Use cutu_reader.
15940 (read_signatured_type_reader): Remove.
15941 (read_signatured_type): Use cutu_reader.
15942
45bbae5c
TT
159432020-01-19 Tom Tromey <tom@tromey.com>
15944
15945 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
15946 * tui/tui-wingeneral.h (class tui_suppress_output): New.
15947 (tui_wrefresh): Declare.
15948 * tui/tui-wingeneral.c (suppress_output): New global.
15949 (tui_suppress_output, ~tui_suppress_output): New constructor and
15950 destructor.
15951 (tui_wrefresh): New function.
15952 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
15953 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
15954 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
15955 method.
15956 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
15957 tui_wrefresh.
15958 (tui_data_window::no_refresh): New method.
15959 (tui_data_item_window::refresh_window): Call tui_wrefresh.
15960 (tui_reg_command): Use tui_suppress_output
15961 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
15962 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
15963 method.
15964 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
15965
4f13c1c0
TT
159662020-01-19 Tom Tromey <tom@tromey.com>
15967
15968 * tui/tui-winsource.c (tui_update_source_windows_with_line):
15969 Handle case where symtab is null.
15970
fa47e446
SM
159712020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
15972
15973 * linux-fork.c (one_fork_p): Simplify.
15974
26f42329
SM
159752020-01-17 Simon Marchi <simon.marchi@efficios.com>
15976
15977 * top.c (struct qt_args): Remove.
15978 (kill_or_detach): Change return type to void, replace `void *`
15979 parameter with a proper one.
15980 (print_inferior_quit_action): Likewise.
15981 (quit_confirm): Use range-based for loop to iterate over inferiors.
15982 (quit_force): Likewise.
15983
a9ac81b1
SM
159842020-01-17 Simon Marchi <simon.marchi@efficios.com>
15985
15986 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
15987 `void *` parameter with proper parameters.
15988 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
15989 (print_one_inferior): Change return type to void, replace `void *`
15990 parameter with proper parameters.
15991 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
15992 inferiors.
15993 (get_other_inferior): Remove.
15994 (mi_cmd_remove_inferior): Use range-based loop to iterate over
15995 inferiors.
15996
788eca49
SM
159972020-01-17 Simon Marchi <simon.marchi@efficios.com>
15998
15999 * mi/mi-interp.c (report_initial_inferior): Remove.
16000 (mi_interp::init): Use range-based for to iterate over inferiors.
16001
d9bc85b6
SM
160022020-01-17 Simon Marchi <simon.marchi@efficios.com>
16003
16004 * python/py-inferior.c (build_inferior_list): Remove.
16005 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
16006
40c94099
CB
160072020-01-16 Christian Biesinger <cbiesinger@google.com>
16008
16009 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
16010 (btrace_stitch_trace): Likewise.
16011 * charset.c (intermediate_encoding): Likewise (vaild).
16012 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
16013 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
16014 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
16015
e0cdfe3c
HD
160162020-01-16 Hannes Domani <ssbssa@yahoo.de>
16017
16018 * windows-tdep.c (windows_get_tlb_type):
16019 Add rtl_user_process_parameters type.
16020
790f1718 160212020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 16022 Norbert Lange <nolange79@gmail.com>
790f1718
PA
16023
16024 PR build/24805
16025 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
16026 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
16027 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
16028 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
16029 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
16030 (ps_plog): Redeclare exported functions with default visibility.
16031
3112ed97
NA
160322020-01-16 Nitika Achra <Nitika.Achra@amd.com>
16033
16034 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
16035 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
16036
8dc3273e
SM
160372020-01-15 Simon Marchi <simon.marchi@efficios.com>
16038
16039 * infcmd.c (post_create_inferior): Use get_thread_regcache
16040 instead of get_current_regcache.
16041
ff47f4f0
TT
160422020-01-14 Tom Tromey <tom@tromey.com>
16043
16044 PR symtab/12535:
16045 * python/python.c (gdbpy_decode_line): Treat empty string the same
16046 as no argument.
16047
975f45b7
TT
160482020-01-14 Tom Tromey <tom@tromey.com>
16049
16050 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
16051
25e57356
TT
160522020-01-14 Tom Tromey <tom@tromey.com>
16053
16054 * nat/linux-btrace.c: Don't include <config.h>.
16055 * nat/linux-ptrace.c: Don't include <config.h>.
16056 * nat/x86-linux-dregs.c: Don't include <config.h>.
16057
05ea2a05
TT
160582020-01-14 Tom Tromey <tom@tromey.com>
16059
16060 * configure: Rebuild.
16061 * configure.ac: Move many checks to ../gdbsupport/common.m4.
16062
01027315
TT
160632020-01-14 Tom Tromey <tom@tromey.com>
16064
16065 * nat/x86-linux-dregs.c: Include configh.h.
16066 * nat/linux-ptrace.c: Include configh.h.
16067 * nat/linux-btrace.c: Include configh.h.
16068 * defs.h: Include config.h, bfd.h.
16069 * configure.ac: Don't source common.host.
16070 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
16071 * configure: Rebuild.
16072 * acinclude.m4: Update path.
16073 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
16074 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
16075 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
16076 (CLIBS): Add LIBSUPPORT.
16077 (CDEPS): Likewise.
16078 (COMMON_SFILES): Remove gdbsupport files.
16079 (HFILES_NO_SRCDIR): Likewise.
16080 (stamp-version): Update path to create-version.sh.
16081 (ALLDEPFILES): Remove gdbsupport files.
16082
b2ceabe8
TT
160832020-01-14 Tom Tromey <tom@tromey.com>
16084
16085 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
16086 USE_WIN32API when needed.
16087 * configure.ac (USE_WIN32API): Don't define.
16088 (WIN32LIBS): Use WIN32APILIBS.
16089 * configure: Rebuild.
16090
25c51f71
TT
160912020-01-14 Tom Tromey <tom@tromey.com>
16092
16093 * configure: Rebuild.
16094 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
16095
717c684d
BE
160962020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
16097
16098 * skip.c (skip_function_command): Make skip w/o arguments use the
16099 name of the inlined function if pc is inside any inlined function.
16100
7da6a5b9
LM
161012020-01-14 Luis Machado <luis.machado@linaro.org>
16102
16103 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
16104 * infrun.c (resume_1): Likewise.
16105 (handle_inferior_event): Remove stale comment.
16106 * linux-nat.c (linux_nat_target::resume): Update comments.
16107 (save_stop_reason): Likewise.
16108 (linux_nat_filter_event): Likewise.
16109 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
16110
44e4c775
AB
161112020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16112
16113 * elfread.c (record_minimal_symbol): Set section index to 0 for
16114 non-allocatable sections.
16115
18a8505e
AT
16116
161172020-01-13 Ali Tamur <tamur@google.com>
16118
16119 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
16120 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
16121 to gdb::optional. Update comments.
16122 (dwo_file): Update comments.
16123 (read_attribute): Update API to take an additional out parameter,
16124 need_reprocess. This is used to mark attributes that need other
16125 attributes (e.g. str_offsets_base) for correct computation which may not
16126 have been read yet.
16127 (read_attribute_reprocess): New function declaration.
16128 (read_addr_index): Likewise.
16129 (read_dwo_str_index): Likewise.
16130 (read_stub_str_index): Likewise.
16131 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
16132 (lookup_addr_base): New function definition.
16133 (lookup_ranges_base): Likewise.
16134 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
16135 lookup_ranges_base.
16136 (init_cutu_and_read_dies): Update comments.
16137 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
16138 unit. This is used to inherit parent's str_offsets_base and addr_base.
16139 Update comments.
16140 (init_cutu_and_read_dies_simple): Reflect API changes.
16141 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
16142 (create_cus_hash_table): Change API to take parent compile unit.
16143 Reflect API changes.
16144 (open_and_init_dwo_file): Reflect API changes.
16145 (dwarf2_get_pc_bounds): Update comments.
16146 (dwarf2_record_block_ranges): Likewise.
16147 (read_full_die_1): Change implementation to reprocess attributes that
16148 need str_offsets_base and addr_base.
16149 (partial_die_info::read): Likewise.
16150 (read_attribute_reprocess): New function definition.
16151 (read_attribute_value): Change API to take an additional out parameter,
16152 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
16153 when a non-dwo compile unit has index based attributes.
16154 (read_attribute): Reflect API changes.
16155 (read_addr_index_1): Reflect API changes. Update comments.
16156 (dwarf2_read_addr_index_data): Reflect API changes.
16157 (dwarf2_read_addr_index): Likewise.
16158 (read_str_index): Change API and implementation. This becomes a helper
16159 to be used by the new string index related methods. Update error
16160 message and comments.
16161 (read_dwo_str_index): New function definition.
16162 (read_stub_str_index): Likewise.
16163 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
16164 * symfile.h (dwarf2_debug_sections): Likewise.
16165 * xcoffread.c (dwarf2_debug_sections): Likewise.
16166
0cac9354
SM
161672020-01-13 Simon Marchi <simon.marchi@efficios.com>
16168
16169 * gdbcore.h (struct core_fns) <core_read_registers>: Change
16170 core_reg_sect type to gdb_byte *.
16171 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
16172 * cris-tdep.c (fetch_core_registers): Likewise.
16173 * corelow.c (core_target::get_core_register_section): Change
16174 type of `contents` to gdb::byte_vector.
16175
9a6d629c
AB
161762020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16177
16178 * tui/tui-wingeneral.c (box_win): Position the title in the center
16179 of the border.
16180
d8b2f9e3
SM
161812020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16182
16183 * corelow.c (core_target::get_core_register_section): Use
16184 std::vector instead of alloca.
16185
bb564c58
SM
161862020-01-13 Simon Marchi <simon.marchi@efficios.com>
16187
16188 * warning.m4: Add -Wmissing-declarations to build_warnings.
16189 * configure: Re-generate.
16190
6b366111
SM
161912020-01-13 Simon Marchi <simon.marchi@efficios.com>
16192
16193 * python/python.c (init__gdb_module): Add declaration.
16194
6c265988
SM
161952020-01-13 Simon Marchi <simon.marchi@efficios.com>
16196
16197 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
16198 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
16199 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
16200 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
16201 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
16202 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
16203 * ada-exp.y (_initialize_ada_exp): Add declaration.
16204 * ada-lang.c (_initialize_ada_language): Add declaration.
16205 * ada-tasks.c (_initialize_tasks): Add declaration.
16206 * agent.c (_initialize_agent): Add declaration.
16207 * aix-thread.c (_initialize_aix_thread): Add declaration.
16208 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
16209 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
16210 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
16211 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
16212 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
16213 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
16214 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
16215 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
16216 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
16217 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
16218 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
16219 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
16220 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
16221 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
16222 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
16223 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
16224 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
16225 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
16226 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
16227 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
16228 * annotate.c (_initialize_annotate): Add declaration.
16229 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
16230 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
16231 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
16232 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
16233 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
16234 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
16235 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
16236 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
16237 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
16238 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
16239 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
16240 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
16241 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
16242 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
16243 * auto-load.c (_initialize_auto_load): Add declaration.
16244 * auxv.c (_initialize_auxv): Add declaration.
16245 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
16246 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
16247 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
16248 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
16249 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
16250 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
16251 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
16252 * breakpoint.c (_initialize_breakpoint): Add declaration.
16253 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
16254 * btrace.c (_initialize_btrace): Add declaration.
16255 * charset.c (_initialize_charset): Add declaration.
16256 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
16257 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
16258 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
16259 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
16260 * cli/cli-script.c (_initialize_cli_script): Add declaration.
16261 * cli/cli-style.c (_initialize_cli_style): Add declaration.
16262 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
16263 * coffread.c (_initialize_coffread): Add declaration.
16264 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
16265 * compile/compile.c (_initialize_compile): Add declaration.
16266 * complaints.c (_initialize_complaints): Add declaration.
16267 * completer.c (_initialize_completer): Add declaration.
16268 * copying.c (_initialize_copying): Add declaration.
16269 * corefile.c (_initialize_core): Add declaration.
16270 * corelow.c (_initialize_corelow): Add declaration.
16271 * cp-abi.c (_initialize_cp_abi): Add declaration.
16272 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
16273 * cp-support.c (_initialize_cp_support): Add declaration.
16274 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
16275 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
16276 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
16277 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
16278 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
16279 * ctfread.c (_initialize_ctfread): Add declaration.
16280 * d-lang.c (_initialize_d_language): Add declaration.
16281 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
16282 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
16283 * dbxread.c (_initialize_dbxread): Add declaration.
16284 * dcache.c (_initialize_dcache): Add declaration.
16285 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
16286 * disasm.c (_initialize_disasm): Add declaration.
16287 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
16288 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
16289 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
16290 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
16291 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
16292 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
16293 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
16294 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
16295 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
16296 * elfread.c (_initialize_elfread): Add declaration.
16297 * exec.c (_initialize_exec): Add declaration.
16298 * extension.c (_initialize_extension): Add declaration.
16299 * f-lang.c (_initialize_f_language): Add declaration.
16300 * f-valprint.c (_initialize_f_valprint): Add declaration.
16301 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
16302 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
16303 * filesystem.c (_initialize_filesystem): Add declaration.
16304 * findcmd.c (_initialize_mem_search): Add declaration.
16305 * findvar.c (_initialize_findvar): Add declaration.
16306 * fork-child.c (_initialize_fork_child): Add declaration.
16307 * frame-base.c (_initialize_frame_base): Add declaration.
16308 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
16309 * frame.c (_initialize_frame): Add declaration.
16310 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
16311 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
16312 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
16313 * gcore.c (_initialize_gcore): Add declaration.
16314 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
16315 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
16316 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
16317 * gdbarch.c (_initialize_gdbarch): Add declaration.
16318 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
16319 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
16320 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
16321 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
16322 * go-lang.c (_initialize_go_language): Add declaration.
16323 * go32-nat.c (_initialize_go32_nat): Add declaration.
16324 * guile/guile.c (_initialize_guile): Add declaration.
16325 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
16326 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
16327 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
16328 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
16329 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
16330 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
16331 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
16332 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
16333 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
16334 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
16335 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
16336 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
16337 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
16338 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
16339 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
16340 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
16341 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
16342 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
16343 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
16344 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
16345 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
16346 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
16347 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
16348 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
16349 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
16350 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
16351 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
16352 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
16353 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
16354 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
16355 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
16356 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
16357 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
16358 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
16359 * infcall.c (_initialize_infcall): Add declaration.
16360 * infcmd.c (_initialize_infcmd): Add declaration.
16361 * inflow.c (_initialize_inflow): Add declaration.
16362 * infrun.c (_initialize_infrun): Add declaration.
16363 * interps.c (_initialize_interpreter): Add declaration.
16364 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
16365 * jit.c (_initialize_jit): Add declaration.
16366 * language.c (_initialize_language): Add declaration.
16367 * linux-fork.c (_initialize_linux_fork): Add declaration.
16368 * linux-nat.c (_initialize_linux_nat): Add declaration.
16369 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
16370 * linux-thread-db.c (_initialize_thread_db): Add declaration.
16371 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
16372 * m2-lang.c (_initialize_m2_language): Add declaration.
16373 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
16374 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
16375 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
16376 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
16377 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
16378 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
16379 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
16380 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
16381 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
16382 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
16383 * machoread.c (_initialize_machoread): Add declaration.
16384 * macrocmd.c (_initialize_macrocmd): Add declaration.
16385 * macroscope.c (_initialize_macroscope): Add declaration.
16386 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
16387 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
16388 * maint.c (_initialize_maint_cmds): Add declaration.
16389 * mdebugread.c (_initialize_mdebugread): Add declaration.
16390 * memattr.c (_initialize_mem): Add declaration.
16391 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
16392 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
16393 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
16394 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
16395 * mi/mi-main.c (_initialize_mi_main): Add declaration.
16396 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
16397 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
16398 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
16399 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
16400 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
16401 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
16402 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
16403 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
16404 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
16405 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
16406 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
16407 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
16408 * mipsread.c (_initialize_mipsread): Add declaration.
16409 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
16410 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
16411 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
16412 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
16413 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
16414 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
16415 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
16416 * nto-procfs.c (_initialize_procfs): Add declaration.
16417 * objc-lang.c (_initialize_objc_language): Add declaration.
16418 * observable.c (_initialize_observer): Add declaration.
16419 * opencl-lang.c (_initialize_opencl_language): Add declaration.
16420 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
16421 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
16422 * osabi.c (_initialize_gdb_osabi): Add declaration.
16423 * osdata.c (_initialize_osdata): Add declaration.
16424 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
16425 * parse.c (_initialize_parse): Add declaration.
16426 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
16427 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
16428 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
16429 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
16430 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
16431 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
16432 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
16433 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
16434 * printcmd.c (_initialize_printcmd): Add declaration.
16435 * probe.c (_initialize_probe): Add declaration.
16436 * proc-api.c (_initialize_proc_api): Add declaration.
16437 * proc-events.c (_initialize_proc_events): Add declaration.
16438 * proc-service.c (_initialize_proc_service): Add declaration.
16439 * procfs.c (_initialize_procfs): Add declaration.
16440 * producer.c (_initialize_producer): Add declaration.
16441 * psymtab.c (_initialize_psymtab): Add declaration.
16442 * python/python.c (_initialize_python): Add declaration.
16443 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
16444 * record-btrace.c (_initialize_record_btrace): Add declaration.
16445 * record-full.c (_initialize_record_full): Add declaration.
16446 * record.c (_initialize_record): Add declaration.
16447 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
16448 * regcache.c (_initialize_regcache): Add declaration.
16449 * reggroups.c (_initialize_reggroup): Add declaration.
16450 * remote-notif.c (_initialize_notif): Add declaration.
16451 * remote-sim.c (_initialize_remote_sim): Add declaration.
16452 * remote.c (_initialize_remote): Add declaration.
16453 * reverse.c (_initialize_reverse): Add declaration.
16454 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
16455 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
16456 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
16457 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
16458 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
16459 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
16460 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
16461 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
16462 Add declaration.
16463 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
16464 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
16465 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
16466 * rust-exp.y (_initialize_rust_exp): Add declaration.
16467 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
16468 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
16469 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
16470 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
16471 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
16472 * score-tdep.c (_initialize_score_tdep): Add declaration.
16473 * ser-go32.c (_initialize_ser_dos): Add declaration.
16474 * ser-mingw.c (_initialize_ser_windows): Add declaration.
16475 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
16476 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
16477 * ser-uds.c (_initialize_ser_socket): Add declaration.
16478 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
16479 * serial.c (_initialize_serial): Add declaration.
16480 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
16481 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
16482 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
16483 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
16484 * skip.c (_initialize_step_skip): Add declaration.
16485 * sol-thread.c (_initialize_sol_thread): Add declaration.
16486 * solib-aix.c (_initialize_solib_aix): Add declaration.
16487 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
16488 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
16489 * solib-frv.c (_initialize_frv_solib): Add declaration.
16490 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
16491 * solib-target.c (_initialize_solib_target): Add declaration.
16492 * solib.c (_initialize_solib): Add declaration.
16493 * source-cache.c (_initialize_source_cache): Add declaration.
16494 * source.c (_initialize_source): Add declaration.
16495 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
16496 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
16497 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
16498 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
16499 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
16500 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
16501 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
16502 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
16503 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
16504 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
16505 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
16506 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
16507 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
16508 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
16509 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
16510 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
16511 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
16512 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
16513 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
16514 * stabsread.c (_initialize_stabsread): Add declaration.
16515 * stack.c (_initialize_stack): Add declaration.
16516 * stap-probe.c (_initialize_stap_probe): Add declaration.
16517 * std-regs.c (_initialize_frame_reg): Add declaration.
16518 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
16519 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
16520 * symfile.c (_initialize_symfile): Add declaration.
16521 * symmisc.c (_initialize_symmisc): Add declaration.
16522 * symtab.c (_initialize_symtab): Add declaration.
16523 * target.c (_initialize_target): Add declaration.
16524 * target-connection.c (_initialize_target_connection): Add
16525 declaration.
16526 * target-dcache.c (_initialize_target_dcache): Add declaration.
16527 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
16528 * thread.c (_initialize_thread): Add declaration.
16529 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
16530 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
16531 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
16532 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
16533 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
16534 * tracectf.c (_initialize_ctf): Add declaration.
16535 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
16536 * tracefile.c (_initialize_tracefile): Add declaration.
16537 * tracepoint.c (_initialize_tracepoint): Add declaration.
16538 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
16539 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
16540 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
16541 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
16542 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
16543 * tui/tui-win.c (_initialize_tui_win): Add declaration.
16544 * tui/tui.c (_initialize_tui): Add declaration.
16545 * typeprint.c (_initialize_typeprint): Add declaration.
16546 * ui-style.c (_initialize_ui_style): Add declaration.
16547 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
16548 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
16549 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
16550 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
16551 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
16552 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
16553 * unittests/filtered_iterator-selftests.c
16554 (_initialize_filtered_iterator_selftests): Add declaration.
16555 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
16556 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
16557 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
16558 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
16559 * unittests/main-thread-selftests.c
16560 (_initialize_main_thread_selftests): Add declaration.
16561 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
16562 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
16563 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
16564 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
16565 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
16566 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
16567 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
16568 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
16569 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
16570 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
16571 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
16572 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
16573 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
16574 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
16575 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
16576 declaration.
16577 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
16578 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
16579 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
16580 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
16581 * user-regs.c (_initialize_user_regs): Add declaration.
16582 * utils.c (_initialize_utils): Add declaration.
16583 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
16584 * valops.c (_initialize_valops): Add declaration.
16585 * valprint.c (_initialize_valprint): Add declaration.
16586 * value.c (_initialize_values): Add declaration.
16587 * varobj.c (_initialize_varobj): Add declaration.
16588 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
16589 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
16590 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
16591 * windows-nat.c (_initialize_windows_nat): Add declaration.
16592 (_initialize_check_for_gdb_ini): Add declaration.
16593 (_initialize_loadable): Add declaration.
16594 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
16595 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
16596 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
16597 * xcoffread.c (_initialize_xcoffread): Add declaration.
16598 * xml-support.c (_initialize_xml_support): Add declaration.
16599 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
16600 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
16601 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
16602 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
16603
e2de1eec
SM
166042020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16605
16606 * regformats/regdat.sh: Generate declaration for init function.
16607
e0037b4c
SM
166082020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16609
16610 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
16611 up.
16612 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
16613 close_one_inferior>: New methods.
16614 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
16615 pass down target to find_inferior_pid.
16616 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
16617 Pass down target to find_inferior_ptid.
16618 (gdbsim_target::create_inferior): Pass down target to
16619 add_thread_silent.
16620 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
16621 target down to find_inferior_ptid and switch_to_thread.
16622 (gdbsim_target::close): Update to call close_one_inferior.
16623 (struct resume_data): Remove.
16624 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
16625 directly, rather than through a void pointer.
16626 (gdbsim_target::resume): Update to call resume_one_inferior.
16627
58920b5b
SM
166282020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
16629
16630 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
16631
4ec89149
PA
166322020-01-12 Pedro Alves <palves@redhat.com>
16633
16634 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
16635 directly for the current inferior instead of
16636 discard_all_inferiors.
16637 (discard_all_inferiors): Delete.
16638
7c392d1d
TT
166392020-01-11 Tom Tromey <tom@tromey.com>
16640
16641 * tui/tui-wingeneral.c (box_win): Check cli_styling.
16642 * tui/tui-winsource.c (tui_source_window_base::refill): Use
16643 deprecated_safe_get_selected_frame.
16644
d9ebdab7
TBA
166452020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16646
16647 * inferior.c (print_inferior): Switch inferior before printing it.
16648
f3c469b9
PA
166492020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
16650 Pedro Alves <palves@redhat.com>
16651
16652 * progspace-and-thread.c (switch_to_program_space_and_thread):
16653 Assert there's an inferior for PSPACE. Use
16654 switch_to_inferior_no_thread to switch the inferior too.
16655 * progspace.c (program_space::~program_space): Call
16656 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
16657 (program_space::free_all_objfiles): Don't call clear_symtab_users
16658 here.
16659 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
16660
65c574f6
PA
166612020-01-10 Pedro Alves <palves@redhat.com>
16662
16663 * NEWS: Mention multi-target debugging, "info connections", and
16664 "add-inferior -no-connection".
16665
2f4fcf00
PA
166662020-01-10 Pedro Alves <palves@redhat.com>
16667
16668 * infrun.c: Include "target-connection.h".
16669 (check_multi_target_resumption): New.
16670 (proceed): Call it.
16671 * target-connection.c (make_target_connection_string): Make
16672 extern.
16673 * target-connection.h (make_target_connection_string): Declare.
16674
121b3efd
PA
166752020-01-10 Pedro Alves <palves@redhat.com>
16676
16677 * Makefile.in (COMMON_SFILES): Add target-connection.c.
16678 * inferior.c (uiout_field_connection): New function.
16679 (print_inferior): Add new "connection-id" column.
16680 (add_inferior_command): Show connection number/string of added
16681 inferior.
16682 * process-stratum-target.h
16683 (process_stratum_target::connection_string): New virtual method.
16684 (process_stratum_target::connection_number): New field.
16685 * remote.c (remote_target::connection_string): New override.
16686 * target-connection.c: New file.
16687 * target-connection.h: New file.
16688 * target.c (decref_target): Remove process_stratum targets from
16689 the connection list.
16690 (target_stack::push): Add process_stratum targets to the
16691 connection list.
16692
4f837581
PA
166932020-01-10 Pedro Alves <palves@redhat.com>
16694
16695 Revert:
16696 2016-04-12 Pedro Alves <palves@redhat.com>
16697 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
16698 Remove references to name.
16699 * serial.h (struct serial) <name>: Delete.
16700
f4ec508e
PA
167012020-01-10 Pedro Alves <palves@redhat.com>
16702
16703 * gdbarch-selftests.c (register_to_value_test): Remove "target
16704 already pushed" check.
16705
5b6d1e4f
PA
167062020-01-10 Pedro Alves <palves@redhat.com>
16707 John Baldwin <jhb@FreeBSD.org>
16708
16709 * aarch64-linux-nat.c
16710 (aarch64_linux_nat_target::thread_architecture): Adjust.
16711 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
16712 (task_command_1): Likewise.
16713 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
16714 (aix_thread_target::wait, aix_thread_target::fetch_registers)
16715 (aix_thread_target::store_registers)
16716 (aix_thread_target::thread_alive): Adjust.
16717 * amd64-fbsd-tdep.c: Include "inferior.h".
16718 (amd64fbsd_get_thread_local_address): Pass down target.
16719 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
16720 thread's gdbarch instead of target_gdbarch.
16721 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
16722 get_last_target_status.
16723 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
16724 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
16725 inferiors.
16726 (update_inserted_breakpoint_locations): Skip if inferiors with no
16727 execution.
16728 (update_global_location_list): When handling moribund locations,
16729 find representative inferior for location's pspace, and use thread
16730 count of its process_stratum target.
16731 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
16732 * bsd-uthread.c (bsd_uthread_target::wait): Use
16733 as_process_stratum_target and adjust thread_change_ptid and
16734 add_thread calls.
16735 (bsd_uthread_target::update_thread_list): Use
16736 as_process_stratum_target and adjust find_thread_ptid,
16737 thread_change_ptid and add_thread calls.
16738 * btrace.c (maint_btrace_packet_history_cmd): Adjust
16739 find_thread_ptid call.
16740 * corelow.c (add_to_thread_list): Adjust add_thread call.
16741 (core_target_open): Adjust add_thread_silent and thread_count
16742 calls.
16743 (core_target::pid_to_str): Adjust find_inferior_ptid call.
16744 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
16745 * event-top.c (async_disconnect): Pop targets from all inferiors.
16746 * exec.c (add_target_sections): Push exec target on all inferiors
16747 sharing the program space.
16748 (remove_target_sections): Remove the exec target from all
16749 inferiors sharing the program space.
16750 (exec_on_vfork): New.
16751 * exec.h (exec_on_vfork): Declare.
16752 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
16753 Pass it down.
16754 (fbsd_nat_target::update_thread_list): Adjust.
16755 (fbsd_nat_target::resume): Adjust.
16756 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
16757 down.
16758 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
16759 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
16760 get_thread_arch_regcache call.
16761 * fork-child.c (gdb_startup_inferior): Pass target down to
16762 startup_inferior and set_executing.
16763 * gdbthread.h (struct process_stratum_target): Forward declare.
16764 (add_thread, add_thread_silent, add_thread_with_info)
16765 (in_thread_list): Add process_stratum_target parameter.
16766 (find_thread_ptid(inferior*, ptid_t)): New overload.
16767 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
16768 parameter.
16769 (all_threads()): Delete overload.
16770 (all_threads, all_non_exited_threads): Add process_stratum_target
16771 parameter.
16772 (all_threads_safe): Use brace initialization.
16773 (thread_count): Add process_stratum_target parameter.
16774 (set_resumed, set_running, set_stop_requested, set_executing)
16775 (threads_are_executing, finish_thread_state): Add
16776 process_stratum_target parameter.
16777 (switch_to_thread): Use is_current_thread.
16778 * i386-fbsd-tdep.c: Include "inferior.h".
16779 (i386fbsd_get_thread_local_address): Pass down target.
16780 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
16781 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
16782 have_inferiors check.
16783 * inf-ptrace.c (inf_ptrace_target::create_inferior)
16784 (inf_ptrace_target::attach): Adjust.
16785 * infcall.c (run_inferior_call): Adjust.
16786 * infcmd.c (run_command_1): Pass target to
16787 scoped_finish_thread_state.
16788 (proceed_thread_callback): Skip inferiors with no execution.
16789 (continue_command): Rename 'all_threads' local to avoid hiding
16790 'all_threads' function. Adjust get_last_target_status call.
16791 (prepare_one_step): Adjust set_running call.
16792 (signal_command): Use user_visible_resume_target. Compare thread
16793 pointers instead of inferior_ptid.
16794 (info_program_command): Adjust to pass down target.
16795 (attach_command): Mark target's 'thread_executing' flag.
16796 (stop_current_target_threads_ns): New, factored out from ...
16797 (interrupt_target_1): ... this. Switch inferior before making
16798 target calls.
16799 * inferior-iter.h
16800 (struct all_inferiors_iterator, struct all_inferiors_range)
16801 (struct all_inferiors_safe_range)
16802 (struct all_non_exited_inferiors_range): Filter on
16803 process_stratum_target too. Remove explicit.
16804 * inferior.c (inferior::inferior): Push dummy target on target
16805 stack.
16806 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
16807 Add process_stratum_target parameter, and pass it down.
16808 (have_live_inferiors): Adjust.
16809 (switch_to_inferior_and_push_target): New.
16810 (add_inferior_command, clone_inferior_command): Handle
16811 "-no-connection" parameter. Use
16812 switch_to_inferior_and_push_target.
16813 (_initialize_inferior): Mention "-no-connection" option in
16814 the help of "add-inferior" and "clone-inferior" commands.
16815 * inferior.h: Include "process-stratum-target.h".
16816 (interrupt_target_1): Use bool.
16817 (struct inferior) <push_target, unpush_target, target_is_pushed,
16818 find_target_beneath, top_target, process_target, target_at,
16819 m_stack>: New.
16820 (discard_all_inferiors): Delete.
16821 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
16822 (all_inferiors, all_non_exited_inferiors): Add
16823 process_stratum_target parameter.
16824 * infrun.c: Include "gdb_select.h" and <unordered_map>.
16825 (target_last_proc_target): New global.
16826 (follow_fork_inferior): Push target on new inferior. Pass target
16827 to add_thread_silent. Call exec_on_vfork. Handle target's
16828 reference count.
16829 (follow_fork): Adjust get_last_target_status call. Also consider
16830 target.
16831 (follow_exec): Push target on new inferior.
16832 (struct execution_control_state) <target>: New field.
16833 (user_visible_resume_target): New.
16834 (do_target_resume): Call target_async.
16835 (resume_1): Set target's threads_executing flag. Consider resume
16836 target.
16837 (commit_resume_all_targets): New.
16838 (proceed): Also consider resume target. Skip threads of inferiors
16839 with no execution. Commit resumtion in all targets.
16840 (start_remote): Pass current inferior to wait_for_inferior.
16841 (infrun_thread_stop_requested): Consider target as well. Pass
16842 thread_info pointer to clear_inline_frame_state instead of ptid.
16843 (infrun_thread_thread_exit): Consider target as well.
16844 (random_pending_event_thread): New inferior parameter. Use it.
16845 (do_target_wait): Rename to ...
16846 (do_target_wait_1): ... this. Add inferior parameter, and pass it
16847 down.
16848 (threads_are_resumed_pending_p, do_target_wait): New.
16849 (prepare_for_detach): Adjust calls.
16850 (wait_for_inferior): New inferior parameter. Handle it. Use
16851 do_target_wait_1 instead of do_target_wait.
16852 (fetch_inferior_event): Adjust. Switch to representative
16853 inferior. Pass target down.
16854 (set_last_target_status): Add process_stratum_target parameter.
16855 Save target in global.
16856 (get_last_target_status): Add process_stratum_target parameter and
16857 handle it.
16858 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
16859 (context_switch): Check inferior_ptid == null_ptid before calling
16860 inferior_thread().
16861 (get_inferior_stop_soon): Pass down target.
16862 (wait_one): Rename to ...
16863 (poll_one_curr_target): ... this.
16864 (struct wait_one_event): New.
16865 (wait_one): New.
16866 (stop_all_threads): Adjust.
16867 (handle_no_resumed, handle_inferior_event): Adjust to consider the
16868 event's target.
16869 (switch_back_to_stepped_thread): Also consider target.
16870 (print_stop_event): Update.
16871 (normal_stop): Update. Also consider the resume target.
16872 * infrun.h (wait_for_inferior): Remove declaration.
16873 (user_visible_resume_target): New declaration.
16874 (get_last_target_status, set_last_target_status): New
16875 process_stratum_target parameter.
16876 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16877 process_stratum_target parameter, and use it.
16878 (clear_inline_frame_state (thread_info*)): New.
16879 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16880 process_stratum_target parameter.
16881 (clear_inline_frame_state (thread_info*)): Declare.
16882 * linux-fork.c (delete_checkpoint_command): Pass target down to
16883 find_thread_ptid.
16884 (checkpoint_command): Adjust.
16885 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
16886 instead of just tweaking inferior_ptid.
16887 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
16888 (exit_lwp): Pass target down to find_thread_ptid.
16889 (attach_proc_task_lwp_callback): Pass target down to
16890 add_thread/set_running/set_executing.
16891 (linux_nat_target::attach): Pass target down to
16892 thread_change_ptid.
16893 (get_detach_signal): Pass target down to find_thread_ptid.
16894 Consider last target status's target.
16895 (linux_resume_one_lwp_throw, resume_lwp)
16896 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
16897 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
16898 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
16899 (linux_nat_target::async_wait_fd): New.
16900 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
16901 target down.
16902 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
16903 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
16904 * linux-thread-db.c (struct thread_db_info::process_target): New
16905 field.
16906 (add_thread_db_info): Save target.
16907 (get_thread_db_info): New process_stratum_target parameter. Also
16908 match target.
16909 (delete_thread_db_info): New process_stratum_target parameter.
16910 Also match target.
16911 (thread_from_lwp): Adjust to pass down target.
16912 (thread_db_notice_clone): Pass down target.
16913 (check_thread_db_callback): Pass down target.
16914 (try_thread_db_load_1): Always push the thread_db target.
16915 (try_thread_db_load, record_thread): Pass target down.
16916 (thread_db_target::detach): Pass target down. Always unpush the
16917 thread_db target.
16918 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
16919 target down. Always unpush the thread_db target.
16920 (find_new_threads_callback, thread_db_find_new_threads_2)
16921 (thread_db_target::update_thread_list): Pass target down.
16922 (thread_db_target::pid_to_str): Pass current inferior down.
16923 (thread_db_target::get_thread_local_address): Pass target down.
16924 (thread_db_target::resume, maintenance_check_libthread_db): Pass
16925 target down.
16926 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
16927 * procfs.c (procfs_target::procfs_init_inferior): Declare.
16928 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
16929 (procfs_init_inferior): Rename to ...
16930 (procfs_target::procfs_init_inferior): ... this and adjust.
16931 (procfs_target::create_inferior, procfs_notice_thread)
16932 (procfs_do_thread_registers): Adjust.
16933 * ppc-fbsd-tdep.c: Include "inferior.h".
16934 (ppcfbsd_get_thread_local_address): Pass down target.
16935 * proc-service.c (ps_xfer_memory): Switch current inferior and
16936 program space as well.
16937 (get_ps_regcache): Pass target down.
16938 * process-stratum-target.c
16939 (process_stratum_target::thread_address_space)
16940 (process_stratum_target::thread_architecture): Pass target down.
16941 * process-stratum-target.h
16942 (process_stratum_target::threads_executing): New field.
16943 (as_process_stratum_target): New.
16944 * ravenscar-thread.c
16945 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
16946 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
16947 down.
16948 * record-btrace.c (record_btrace_target::info_record): Adjust.
16949 (record_btrace_target::record_method)
16950 (record_btrace_target::record_is_replaying)
16951 (record_btrace_target::fetch_registers)
16952 (get_thread_current_frame_id, record_btrace_target::resume)
16953 (record_btrace_target::wait, record_btrace_target::stop): Pass
16954 target down.
16955 * record-full.c (record_full_wait_1): Switch to event thread.
16956 Pass target down.
16957 * regcache.c (regcache::regcache)
16958 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
16959 process_stratum_target parameter and handle it.
16960 (current_thread_target): New global.
16961 (get_thread_regcache): Add process_stratum_target parameter and
16962 handle it. Switch inferior before calling target method.
16963 (get_thread_regcache): Pass target down.
16964 (get_thread_regcache_for_ptid): Pass target down.
16965 (registers_changed_ptid): Add process_stratum_target parameter and
16966 handle it.
16967 (registers_changed_thread, registers_changed): Pass target down.
16968 (test_get_thread_arch_aspace_regcache): New.
16969 (current_regcache_test): Define a couple local test_target_ops
16970 instances and use them for testing.
16971 (readwrite_regcache): Pass process_stratum_target parameter.
16972 (cooked_read_test, cooked_write_test): Pass mock_target down.
16973 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
16974 (get_thread_arch_aspace_regcache): Add process_stratum_target
16975 parameter.
16976 (regcache::target): New method.
16977 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
16978 (regcache::registers_changed_ptid): Add process_stratum_target
16979 parameter.
16980 (regcache::m_target): New field.
16981 (registers_changed_ptid): Add process_stratum_target parameter.
16982 * remote.c (remote_state::supports_vCont_probed): New field.
16983 (remote_target::async_wait_fd): New method.
16984 (remote_unpush_and_throw): Add remote_target parameter.
16985 (get_current_remote_target): Adjust.
16986 (remote_target::remote_add_inferior): Push target.
16987 (remote_target::remote_add_thread)
16988 (remote_target::remote_notice_new_inferior)
16989 (get_remote_thread_info): Pass target down.
16990 (remote_target::update_thread_list): Skip threads of inferiors
16991 bound to other targets. (remote_target::close): Don't discard
16992 inferiors. (remote_target::add_current_inferior_and_thread)
16993 (remote_target::process_initial_stop_replies)
16994 (remote_target::start_remote)
16995 (remote_target::remote_serial_quit_handler): Pass down target.
16996 (remote_target::remote_unpush_target): New remote_target
16997 parameter. Unpush the target from all inferiors.
16998 (remote_target::remote_unpush_and_throw): New remote_target
16999 parameter. Pass it down.
17000 (remote_target::open_1): Check whether the current inferior has
17001 execution instead of checking whether any inferior is live. Pass
17002 target down.
17003 (remote_target::remote_detach_1): Pass down target. Use
17004 remote_unpush_target.
17005 (extended_remote_target::attach): Pass down target.
17006 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
17007 (remote_target::append_resumption): Pass down target.
17008 (remote_target::append_pending_thread_resumptions)
17009 (remote_target::remote_resume_with_hc, remote_target::resume)
17010 (remote_target::commit_resume): Pass down target.
17011 (remote_target::remote_stop_ns): Check supports_vCont_probed.
17012 (remote_target::interrupt_query)
17013 (remote_target::remove_new_fork_children)
17014 (remote_target::check_pending_events_prevent_wildcard_vcont)
17015 (remote_target::remote_parse_stop_reply)
17016 (remote_target::process_stop_reply): Pass down target.
17017 (first_remote_resumed_thread): New remote_target parameter. Pass
17018 it down.
17019 (remote_target::wait_as): Pass down target.
17020 (unpush_and_perror): New remote_target parameter. Pass it down.
17021 (remote_target::readchar, remote_target::remote_serial_write)
17022 (remote_target::getpkt_or_notif_sane_1)
17023 (remote_target::kill_new_fork_children, remote_target::kill): Pass
17024 down target.
17025 (remote_target::mourn_inferior): Pass down target. Use
17026 remote_unpush_target.
17027 (remote_target::core_of_thread)
17028 (remote_target::remote_btrace_maybe_reopen): Pass down target.
17029 (remote_target::pid_to_exec_file)
17030 (remote_target::thread_handle_to_thread_info): Pass down target.
17031 (remote_target::async_wait_fd): New.
17032 * riscv-fbsd-tdep.c: Include "inferior.h".
17033 (riscv_fbsd_get_thread_local_address): Pass down target.
17034 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
17035 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
17036 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
17037 Adjust.
17038 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
17039 * solib-svr4.c (enable_break): Pass down target.
17040 * spu-multiarch.c (parse_spufs_run): Pass down target.
17041 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
17042 * target-delegates.c: Regenerate.
17043 * target.c (g_target_stack): Delete.
17044 (current_top_target): Return the current inferior's top target.
17045 (target_has_execution_1): Refer to the passed-in inferior's top
17046 target.
17047 (target_supports_terminal_ours): Check whether the initial
17048 inferior was already created.
17049 (decref_target): New.
17050 (target_stack::push): Incref/decref the target.
17051 (push_target, push_target, unpush_target): Adjust.
17052 (target_stack::unpush): Defref target.
17053 (target_is_pushed): Return bool. Adjust to refer to the current
17054 inferior's target stack.
17055 (dispose_inferior): Delete, and inline parts ...
17056 (target_preopen): ... here. Only dispose of the current inferior.
17057 (target_detach): Hold strong target reference while detaching.
17058 Pass target down.
17059 (target_thread_name): Add assertion.
17060 (target_resume): Pass down target.
17061 (target_ops::beneath, find_target_at): Adjust to refer to the
17062 current inferior's target stack.
17063 (get_dummy_target): New.
17064 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
17065 has a thread running.
17066 (initialize_targets): Rename to ...
17067 (_initialize_target): ... this.
17068 * target.h: Include "gdbsupport/refcounted-object.h".
17069 (struct target_ops): Inherit refcounted_object.
17070 (target_ops::shortname, target_ops::longname): Make const.
17071 (target_ops::async_wait_fd): New method.
17072 (decref_target): Declare.
17073 (struct target_ops_ref_policy): New.
17074 (target_ops_ref): New typedef.
17075 (get_dummy_target): Declare function.
17076 (target_is_pushed): Return bool.
17077 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
17078 (all_matching_threads_iterator::all_matching_threads_iterator):
17079 Handle filter target.
17080 * thread-iter.h (struct all_matching_threads_iterator, struct
17081 all_matching_threads_range, class all_non_exited_threads_range):
17082 Filter by target too. Remove explicit.
17083 * thread.c (threads_executing): Delete.
17084 (inferior_thread): Pass down current inferior.
17085 (clear_thread_inferior_resources): Pass down thread pointer
17086 instead of ptid_t.
17087 (add_thread_silent, add_thread_with_info, add_thread): Add
17088 process_stratum_target parameter. Use it for thread and inferior
17089 searches.
17090 (is_current_thread): New.
17091 (thread_info::deletable): Use it.
17092 (find_thread_ptid, thread_count, in_thread_list)
17093 (thread_change_ptid, set_resumed, set_running): New
17094 process_stratum_target parameter. Pass it down.
17095 (set_executing): New process_stratum_target parameter. Pass it
17096 down. Adjust reference to 'threads_executing'.
17097 (threads_are_executing): New process_stratum_target parameter.
17098 Adjust reference to 'threads_executing'.
17099 (set_stop_requested, finish_thread_state): New
17100 process_stratum_target parameter. Pass it down.
17101 (switch_to_thread): Also match inferior.
17102 (switch_to_thread): New process_stratum_target parameter. Pass it
17103 down.
17104 (update_threads_executing): Reimplement.
17105 * top.c (quit_force): Pop targets from all inferior.
17106 (gdb_init): Don't call initialize_targets.
17107 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
17108 Declare.
17109 (windows_add_thread, windows_delete_thread): Adjust.
17110 (get_windows_debug_event): Rename to ...
17111 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
17112 * tracefile-tfile.c (tfile_target_open): Pass down target.
17113 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
17114 Forward declare.
17115 (switch_to_thread): Add process_stratum_target parameter.
17116 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
17117 parameter. Use it.
17118 (mi_on_resume): Pass target down.
17119 * nat/fork-inferior.c (startup_inferior): Add
17120 process_stratum_target parameter. Pass it down.
17121 * nat/fork-inferior.h (startup_inferior): Add
17122 process_stratum_target parameter.
17123 * python/py-threadevent.c (py_get_event_thread): Pass target down.
17124
75c6c844
PA
171252020-01-10 Pedro Alves <palves@redhat.com>
17126
17127 * remote.c (remote_target::start_remote): Don't set inferior_ptid
17128 directly. Instead find the first thread in the thread list and
17129 use switch_to_thread.
17130
78f2c40a
PA
171312020-01-10 Pedro Alves <palves@redhat.com>
17132
17133 * remote.c (remote_target::remote_add_inferior): Don't bind a
17134 process to the current inferior if the current inferior is already
17135 bound to a process.
17136
e7af6c70
TBA
171372020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17138 Pedro Alves <palves@redhat.com>
17139
17140 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
17141 If no process is specified, return null_ptid instead of
17142 inferior_ptid.
17143 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
17144 TARGET_WAITKIND_SIGNALLED with no pid.
17145
31ba933e
PA
171462020-01-10 Pedro Alves <palves@redhat.com>
17147
17148 * remote.c (first_remote_resumed_thread): New.
17149 (remote_target::wait_as): Use it as default event_ptid instead of
17150 inferior_ptid.
17151
735fc2ca
PA
171522020-01-10 Pedro Alves <palves@redhat.com>
17153
17154 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
17155
c17e02e1
PA
171562020-01-10 Pedro Alves <palves@redhat.com>
17157
17158 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
17159 not -1.
17160
ab1ddbcf
PA
171612020-01-10 Pedro Alves <palves@redhat.com>
17162
17163 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
17164 ptid to get_last_target_status.
17165 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
17166 ptid to get_last_target_status.
17167 * infcmd.c (continue_command): Don't pass a target_waitstatus to
17168 get_last_target_status.
17169 (info_program_command): Don't pass a target_waitstatus to
17170 get_last_target_status.
17171 * infrun.c (init_wait_for_inferior): Use
17172 nullify_last_target_wait_ptid.
17173 (get_last_target_status): Handle nullptr arguments.
17174 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
17175 (print_stop_event): Don't pass a ptid to get_last_target_status.
17176 (normal_stop): Don't pass a ptid to get_last_target_status.
17177 * infrun.h (get_last_target_status, set_last_target_status): Move
17178 comments here and update.
17179 (nullify_last_target_wait_ptid): Declare.
17180 * linux-fork.c (fork_load_infrun_state): Remove local extern
17181 declaration of nullify_last_target_wait_ptid.
17182 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
17183 to get_last_target_status.
17184
f3f8ece4
PA
171852020-01-10 Pedro Alves <palves@redhat.com>
17186
17187 * gdbthread.h (scoped_restore_current_thread)
17188 <dont_restore, restore, m_dont_restore>: Declare.
17189 * thread.c (thread_alive): Add assertion. Return bool.
17190 (switch_to_thread_if_alive): New.
17191 (prune_threads): Switch inferior/thread.
17192 (print_thread_info_1): Switch thread before calling target methods.
17193 (scoped_restore_current_thread::restore): New, factored out from
17194 ...
17195 (scoped_restore_current_thread::~scoped_restore_current_thread):
17196 ... this.
17197 (scoped_restore_current_thread::scoped_restore_current_thread):
17198 Add assertion.
17199 (thread_apply_all_command, thread_select): Use
17200 switch_to_thread_if_alive.
17201 * infrun.c (proceed, restart_threads, handle_signal_stop)
17202 (switch_back_to_stepped_thread): Switch current thread before
17203 calling target methods.
17204
db2d40f7
PA
172052020-01-10 Pedro Alves <palves@redhat.com>
17206
17207 * inferior.c (switch_to_inferior_no_thread): New function,
17208 factored out from ...
17209 (inferior_command): ... here.
17210 * inferior.h (switch_to_inferior_no_thread): Declare.
17211 * mi/mi-main.c (run_one_inferior): Use
17212 switch_to_inferior_no_thread.
17213
bd420a2d
PA
172142020-01-10 Pedro Alves <palves@redhat.com>
17215
17216 * infcmd.c (kill_command): Remove dead code.
17217
ddf5db90
PA
172182020-01-10 Pedro Alves <palves@redhat.com>
17219
17220 * remote.c (remote_target::mourn_inferior): No longer check
17221 whether the target is running.
17222
5018ce90
PA
172232020-01-10 Pedro Alves <palves@redhat.com>
17224
17225 * corelow.c (core_target::has_execution): Change parameter type to
17226 inferior pointer.
17227 * inferior.c (number_of_live_inferiors): Use
17228 inferior::has_execution instead of target_has_execution_1.
17229 * inferior.h (inferior::has_execution): New.
17230 * linux-thread-db.c (thread_db_target::update_thread_list): Use
17231 inferior::has_execution instead of target_has_execution_1.
17232 * process-stratum-target.c
17233 (process_stratum_target::has_execution): Change parameter type to
17234 inferior pointer. Check the inferior's PID instead of
17235 inferior_ptid.
17236 * process-stratum-target.h
17237 (process_stratum_target::has_execution): Change parameter type to
17238 inferior pointer.
17239 * record-full.c (record_full_core_target::has_execution): Change
17240 parameter type to inferior pointer.
17241 * target.c (target_has_execution_1): Change parameter type to
17242 inferior pointer.
17243 (target_has_execution_current): Adjust.
17244 * target.h (target_ops::has_execution): Change parameter type to
17245 inferior pointer.
17246 (target_has_execution_1): Change parameter type to inferior
17247 pointer. Change return type to bool.
17248 * tracefile.h (tracefile_target::has_execution): Change parameter
17249 type to inferior pointer.
17250
74375d18
PA
172512020-01-10 Pedro Alves <palves@redhat.com>
17252
17253 * exceptions.c (print_flush): Remove current_top_target() check.
17254
acdf84a6
PA
172552020-01-10 Pedro Alves <palves@redhat.com>
17256
17257 * remote.c (show_remote_exec_file): Show the current inferior's
17258 exec-file instead of the command variable's value.
17259
ec506636
PA
172602020-01-10 Pedro Alves <palves@redhat.com>
17261
17262 * record-full.c (record_full_resume_ptid): New global.
17263 (record_full_target::resume): Set it.
17264 (record_full_wait_1): Use record_full_resume_ptid instead of
17265 inferior_ptid.
17266
873657b9
PA
172672020-01-10 Pedro Alves <palves@redhat.com>
17268
17269 * gdbthread.h (scoped_restore_current_thread)
17270 <dont_restore, restore, m_dont_restore>: Declare.
17271 * thread.c (thread_alive): Add assertion. Return bool.
17272 (switch_to_thread_if_alive): New.
17273 (prune_threads): Switch inferior/thread.
17274 (print_thread_info_1): Switch thread before calling target methods.
17275 (scoped_restore_current_thread::restore): New, factored out from
17276 ...
17277 (scoped_restore_current_thread::~scoped_restore_current_thread):
17278 ... this.
17279 (scoped_restore_current_thread::scoped_restore_current_thread):
17280 Add assertion.
17281 (thread_apply_all_command, thread_select): Use
17282 switch_to_thread_if_alive.
17283
7f0ae84c
GB
172842020-01-10 George Barrett <bob@bob131.so>
17285
17286 * stap-probe.c (stap_modify_semaphore): Don't check for null
17287 semaphores.
17288 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
17289 for null semaphores.
17290
f5a7c406
AB
172912020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17292
17293 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
17294 all source windows, and maintain horizontal scroll status while
17295 doing so.
17296
9ae6bf64
TT
172972020-01-09 Tom Tromey <tom@tromey.com>
17298
17299 PR tui/18932:
17300 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
17301 update_source_window, not print_source_lines.
17302
b2efe70c
AB
173032020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17304
17305 * tui/tui.c (tui_enable): Register tui hooks after calling
17306 tui_display_main.
17307
5f23a082
CB
173082020-01-09 Christian Biesinger <cbiesinger@google.com>
17309
17310 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
17311
3061113b
SM
173122020-01-08 Simon Marchi <simon.marchi@efficios.com>
17313
17314 * thread.c (print_thread_info_1): Fix indentation.
17315
57d75002
CB
173162020-01-09 Christian Biesinger <cbiesinger@google.com>
17317
17318 * symtab.c (general_symbol_info::compute_and_set_names): Move the
17319 unique_xmalloc_ptr outside the if to always free the demangled name.
17320
6a053cb1
TT
173212020-01-08 Tom Tromey <tromey@adacore.com>
17322
17323 * xcoffread.c (enter_line_range, read_xcoff_symtab)
17324 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
17325 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
17326 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
17327 Remove.
17328 (section_offsets): New typedef.
17329 * symtab.c (fixup_section, get_msymbol_address): Update.
17330 * symmisc.c (dump_msymbols): Update.
17331 * symfile.h (relative_addr_info_to_section_offsets)
17332 (symfile_map_offsets_to_segments): Update.
17333 * symfile.c (build_section_addr_info_from_objfile)
17334 (init_objfile_sect_indices): Update.
17335 (struct place_section_arg): Change type of "offsets".
17336 (place_section): Update.
17337 (relative_addr_info_to_section_offsets): Change type of
17338 "section_offsets". Remove "num_sections" parameter.
17339 (default_symfile_offsets, syms_from_objfile_1)
17340 (set_objfile_default_section_offset): Update.
17341 (reread_symbols): No need to preserve section offsets by hand.
17342 (symfile_map_offsets_to_segments): Change type of "offsets".
17343 * stap-probe.c (relocate_address): Update.
17344 * stabsread.h (process_one_symbol): Update.
17345 * solib-target.c (struct lm_info_target) <offsets>: Change type.
17346 (solib_target_relocate_section_addresses): Update.
17347 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
17348 Update.
17349 * solib-frv.c (frv_relocate_main_executable): Update.
17350 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
17351 * solib-aix.c (solib_aix_get_section_offsets): Change return
17352 type.
17353 (solib_aix_solib_create_inferior_hook): Update.
17354 * remote.c (remote_target::get_offsets): Update.
17355 * psymtab.c (find_pc_sect_psymtab): Update.
17356 * psympriv.h (struct partial_symbol) <address, text_low,
17357 text_high>: Update.
17358 * objfiles.h (obj_section_offset): Update.
17359 (struct objfile) <section_offsets>: Change type.
17360 <num_sections>: Remove.
17361 (objfile_relocate): Update.
17362 * objfiles.c (entry_point_address_query): Update
17363 (relocate_one_symbol): Change type of "section_offsets".
17364 (objfile_relocate1, objfile_relocate1): Change type of
17365 "new_offsets".
17366 (objfile_rebase1): Update.
17367 * mipsread.c (mipscoff_symfile_read): Update.
17368 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
17369 parameter.
17370 * mdebugread.c (parse_symbol): Change type of "section_offsets".
17371 (parse_external, psymtab_to_symtab_1): Update.
17372 * machoread.c (macho_symfile_offsets): Update.
17373 * ia64-tdep.c (ia64_find_unwind_table): Update.
17374 * hppa-tdep.c (read_unwind_info): Update.
17375 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
17376 * dwarf2read.c (create_addrmap_from_index)
17377 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
17378 (process_psymtab_comp_unit_reader, add_partial_symbol)
17379 (add_partial_subprogram, process_full_comp_unit)
17380 (read_file_scope, read_func_scope, read_lexical_block_scope)
17381 (read_call_site_scope, dwarf2_rnglists_process)
17382 (dwarf2_ranges_process, dwarf2_ranges_read)
17383 (dwarf_decode_lines_1, var_decode_location, new_symbol)
17384 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
17385 Update.
17386 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
17387 Update.
17388 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
17389 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
17390 (process_one_symbol): Change type of "section_offsets".
17391 * ctfread.c (get_objfile_text_range): Update.
17392 * coffread.c (coff_symtab_read, enter_linenos)
17393 (process_coff_symbol): Update.
17394 * coff-pe-read.c (add_pe_forwarded_sym): Update.
17395 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
17396
456e800a
TT
173972020-01-08 Tom Tromey <tromey@adacore.com>
17398
17399 * dwarf2read.c (parse_macro_definition): Use std::string.
17400 (parse_macro_definition): Likewise.
17401
6dfa2fc2
TT
174022020-01-08 Tom Tromey <tromey@adacore.com>
17403
17404 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
17405 (ATTR_ALLOC_CHUNK): Remove.
17406
421d1616
TT
174072020-01-08 Tom Tromey <tromey@adacore.com>
17408
17409 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
17410
43816ebc
TT
174112020-01-08 Tom Tromey <tromey@adacore.com>
17412
17413 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
17414 (dwarf2_compute_name, open_dwo_file): Likewise.
17415 (process_enumeration_scope): Use std::vector.
17416 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
17417 (partial_die_info::fixup, dwarf2_start_subfile)
17418 (guess_full_die_structure_name, dwarf2_name): Likewise.
17419 (determine_prefix): Update.
17420 (guess_full_die_structure_name): Make return type const.
17421 (partial_die_full_name): Return unique_xmalloc_ptr.
17422 (DW_FIELD_ALLOC_CHUNK): Remove.
17423
4212d509
TT
174242020-01-07 Tom Tromey <tromey@adacore.com>
17425
17426 PR build/24937:
17427 * stap-probe.c (class stap_static_probe_ops): Add constructor.
17428
06a6207a
JT
174292020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17430
17431 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
17432
153d79c4
AB
174332020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
17434
17435 * stack.c (print_frame_info): Move disassemble_next_line code
17436 inside source_print block.
17437
66182876
EZ
174382020-01-06 Eli Zaretskii <eliz@gnu.org>
17439
17440 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
17441 gdb/signals.h, as we are now using native signal symbols.
17442
cbfa8581
SV
174432020-01-06 Shahab Vahedi <shahab@synopsys.com>
17444
17445 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
17446 overflow by an early check of content vs threshold.
aac66a4c 17447 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
17448 Likewise.
17449
3f602821
EZ
174502020-01-06 Eli Zaretskii <eliz@gnu.org>
17451
17452 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
17453
a08c904d
JT
174542020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17455
17456 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
17457 export table if no section contains it's RVA.
17458
89a65580
EZ
174592020-01-06 Eli Zaretskii <eliz@gnu.org>
17460
17461 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
17462
8b7fcda2
HD
174632020-01-06 Hannes Domani <ssbssa@yahoo.de>
17464
17465 * source.c (print_source_lines_base): Set last_line_listed.
17466
a61b4f69
SV
174672020-01-06 Shahab Vahedi <shahab@synopsys.com>
17468
17469 * tui/tui-disasm.c: Remove trailing spaces.
17470
559e7e50
EZ
174712020-01-06 Eli Zaretskii <eliz@gnu.org>
17472 Pedro Alves <palves@redhat.com>
17473
17474 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
17475 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
17476 (windows_gdb_signal_to_target): New function, uses the above
17477 enumeration to convert GDB internal signal codes to equivalent
17478 Windows codes.
17479 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
17480 * windows-nat.c: Include "gdb_wait.h".
17481 (get_windows_debug_event): Extract the fatal exception from the
17482 exit status and convert to the equivalent Posix signal number.
17483 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
17484 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
17485 * gdbsupport/gdb_wait.c: New file, implements
17486 windows_status_to_termsig.
17487 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
17488 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
17489
f2302a34
AB
174902020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
17491
17492 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
17493 show_layout.
17494
6a5206eb
LM
174952020-01-05 Luis Machado <luis.machado@linaro.org>
17496
17497 * aarch64-linux-nat.c
17498 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
17499 and bfd_mach_aarch64.
17500
6ec1d75e
PW
175012020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17502
17503 * ui-file.c (stdio_file::can_emit_style_escape)
17504 (tee_file::can_emit_style_escape): Ensure style is used also on
17505 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
17506 to gdb_stdout.
17507 * main.c (set_gdb_data_directory): Use file style to output the
17508 warning that the given pathname is not a directory.
17509 * top.c (show_history_filename, gdb_safe_append_history)
17510 (show_gdb_datadir): Use file style.
17511
44f81a76
HD
175122020-01-03 Hannes Domani <ssbssa@yahoo.de>
17513
17514 * solib-target.c (struct lm_info_target):
17515 Change offsets to be a unique_xmalloc_ptr.
17516 (solib_target_relocate_section_addresses): Update.
17517
25057eb0
HD
175182020-01-03 Hannes Domani <ssbssa@yahoo.de>
17519
17520 * windows-nat.c (windows_clear_solib): Free so_list linked list.
17521
6e2118f5
BE
175222020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
17523
17524 * MAINTAINERS (Write After Approval): Add myself.
17525
8133c7dc
LM
175262020-01-02 Luis Machado <luis.machado@linaro.org>
17527
17528 * proc-service.c (get_ps_regcache): Remove reference to obsolete
17529 Cell BE architecture.
17530 * target.h (struct target_ops) <thread_architecture>: Likewise.
17531
48189bec
HD
175322020-01-01 Hannes Domani <ssbssa@yahoo.de>
17533
17534 * Makefile.in: Use INSTALL_PROGRAM_ENV.
17535
ead1063b
HD
175362020-01-01 Hannes Domani <ssbssa@yahoo.de>
17537
17538 * MAINTAINERS (Write After Approval): Add myself.
17539
e5d78223
JB
175402020-01-01 Joel Brobecker <brobecker@adacore.com>
17541
17542 * gdbarch.sh: Update copyright year range of generated files.
17543
b811d2c2
JB
175442020-01-01 Joel Brobecker <brobecker@adacore.com>
17545
17546 Update copyright year range in all GDB files.
17547
5f4def5c
JB
175482020-01-01 Joel Brobecker <brobecker@adacore.com>
17549
17550 * copyright.py: Convert to Python 3.
17551
51fd4002
JB
175522020-01-01 Joel Brobecker <brobecker@adacore.com>
17553
17554 * copyright.py: Adapt after move of gnulib directory from gdb
17555 directory to toplevel directory.
17556
5fb651f2
JB
175572020-01-01 Joel Brobecker <brobecker@adacore.com>
17558
17559 * copyright.py (main): Exit if run from the wrong directory.
17560
5dd8bf88
JB
175612020-01-01 Joel Brobecker <brobecker@adacore.com>
17562
17563 * top.c (print_gdb_version): Change copyright year to 2020.
17564
9f71dacb 175652020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 17566
9f71dacb 17567 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 17568
9f71dacb 17569For older changes see ChangeLog-2019.
c906108c
SS
17570\f
17571Local Variables:
17572mode: change-log
17573left-margin: 8
17574fill-column: 74
17575version-control: never
57da7796 17576coding: utf-8
c906108c 17577End: