gdb: clear inferior displaced stepping state and in-line step-over info on exec
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
3b7a962d
SM
12020-12-04 Simon Marchi <simon.marchi@efficios.com>
2
3 * infrun.c (infrun_inferior_execd): New function.
4 (_initialize_infrun): Attach inferior_execd observer.
5
42a4fec5
SM
62020-12-04 Simon Marchi <simon.marchi@efficios.com>
7
8 * observable.h (inferior_execd): Declare new observable.
9 * observable.c (inferior_execd): Declare new observable.
10 * infrun.c (follow_exec): Notify inferior_execd observer.
11 * jit.c (jit_inferior_created_hook): Make static.
12 (_initialize_jit): Register inferior_execd observer.
13 * jit.h (jit_inferior_created_hook): Remove declaration.
14 * solib.c (_initialize_solib): Register inferior_execd observer.
15
aafdfb4e
TV
162020-12-04 Tom de Vries <tdevries@suse.de>
17
18 PR gdb/27003
19 * completer.c (completion_tracker::build_completion_result): Don't
20 access match_list[0][-1].
21
f99b5177
TT
222020-12-04 Tom Tromey <tromey@adacore.com>
23
24 * linespec.c (struct linespec_token): Rename; remove typedef.
25 * guile/scm-block.c (struct block_smob): Remove typedef.
26 (struct block_syms_progress_smob): Likewise.
27 * guile/scm-symbol.c (struct symbol_smob): Remove typedef.
28 * guile/scm-symtab.c (symtab_smob): Remove typedef.
29 (struct sal_smob): Remove typedef.
30 * guile/scm-param.c (struct param_smob): Remove typedef.
31 * guile/scm-progspace.c (struct pspace_smob): Rename.
32 * guile/scm-objfile.c (struct objfile_smob): Rename.
33 * guile/scm-iterator.c (struct iterator_smob): Rename.
34 * guile/scm-frame.c (struct frame_smob): Rename.
35 * guile/scm-arch.c (struct arch_smob): Rename.
36 * guile/scm-type.c (struct field_smob): Remove typedef.
37 (struct type_smob): Rename.
38 * guile/scm-cmd.c (struct command_smob): Remove typedef.
39 * guile/scm-ports.c (struct ioscm_memory_port): Remove typedef.
40 * guile/scm-value.c (struct value_smob): Remove typedef.
41 * guile/scm-lazy-string.c (lazy_string_smob): Remove typedef.
42 * guile/guile-internal.h (struct scheme_variable)
43 (struct scheme_function, struct scheme_integer_constant)
44 (struct gdb_smob, struct chained_gdb_smob)
45 (struct eqable_gdb_smob, arch_smob, frame_smob, iterator_smob)
46 (objfile_smob, pspace_smob, type_smob): Remove typedef.
47 * guile/scm-pretty-print.c (pretty_printer_smob): Remove typedef.
48 (struct pretty_printer_worker_smob): Remove typedef.
49 * guile/scm-exception.c (struct exception_smob): Remove typedef.
50 * python/py-block.c (struct block_object): Remove typedef.
51 (block_syms_iterator_object): Update.
52 (set_block): Update.
53 (block_syms_iterator_object): Remove typedef.
54 * python/py-inferior.c (struct membuf_object): Remove typedef.
55 * python/py-symtab.c (struct symtab_object): Remove typedef.
56 (set_symtab): Update.
57 (sal_object): Remove typedef.
58 (set_sal): Update.
59 * python/py-frame.c (frame_object): Remove typedef.
60 * python/py-record-btrace.c (struct btpy_list_object): Remove
61 typedef.
62 * python/py-arch.c (struct arch_object): Remove typedef.
63 * python/py-linetable.c (struct linetable_entry_object)
64 (linetable_object, struct ltpy_iterator_object): Remove typedef.
65 * python/py-events.h (eventregistry_object): Remove typedef.
66 (struct events_object): Remove typedef.
67 * python/python-internal.h (gdbpy_breakpoint_object): Remove
68 typedef.
69 (thread_object): Remove typedef.
70 * python/py-progspace.c (pspace_object): Remove typedef.
71 * python/py-value.c (struct value_object): Remove typedef.
72 * python/py-record.h (recpy_record_object): Remove typedef.
73 (struct recpy_element_object): Remove typedef.
74 * python/py-lazy-string.c (lazy_string_object): Remove typedef.
75 * python/py-objfile.c (objfile_object): Remove typedef.
76 * python/py-cmd.c (struct cmdpy_object): Remove typedef.
77 * python/py-type.c (type_object): Remove typedef.
78 (typy_iterator_object): Update.
79 (set_type): Update.
80 (field_object): Remove typedef.
81 (typy_iterator_object): Remove typedef.
82 * python/py-registers.c (register_descriptor_iterator_object):
83 Remove typedef.
84 (struct register_descriptor_object)
85 (struct reggroup_iterator_object, struct reggroup_object): Remove
86 typedef.
87 * python/py-record.c (recpy_gap_object): Remove typedef.
88 * python/py-symbol.c (symbol_object): Remove typedef.
89 (set_symbol): Update.
90 * python/py-event.h (event_object): Remove typedef.
91 * python/py-param.c (parmpy_object): Remove typedef.
92 * python/py-instruction.c (struct py_insn_obj): Remove typedef.
93 * python/py-unwind.c (struct pending_frame_object): Remove typedef.
94 (unwind_info_object, struct cached_frame_info): Likewise.
95
91f87213
TT
962020-12-04 Tom Tromey <tromey@adacore.com>
97
98 * value.c (value_internal_function_name): Make return type const.
99 * value.h (value_internal_function_name): Make return type const.
100
5382f971
LM
1012020-12-04 Luis Machado <luis.machado@linaro.org>
102
103 * aarch64-tdep.c (submask, bit, bits): Remove.
104 * arch/aarch64-insn.c (extract_signed_bitfield): Remove.
105 (aarch64_decode_adr, aarch64_decode_b aarch64_decode_bcond)
106 (aarch64_decode_cb, aarch64_decode_tb)
107 (aarch64_decode_ldr_literal): Use sbits to extract a signed
108 immediate.
109 * arch/aarch64-insn.h (submask, bits, bit, sbits): New macros.
110
b6a6aa07
TV
1112020-12-04 Tom de Vries <tdevries@suse.de>
112
113 PR tdep/27007
114 * i386-tdep.c (i386_16_byte_align_p): Skip static fields.
115
0bc2e38d
SM
1162020-12-03 Simon Marchi <simon.marchi@polymtl.ca>
117
118 PR gdb/26876
119 * dwarf2/frame.c (find_comp_unit, set_comp_unit): Reverse use of
120 dwarf2_frame_bfd_data and dwarf2_frame_objfile_data.
121
25428040
AB
1222020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
123
124 * arch/riscv.c: Include 'rv32e-xregs.c'.
125 (riscv_create_target_description): Update to handle rv32e.
126 * arch/riscv.h (struct riscv_gdbarch_features) <embedded>: New
127 member variable.
128 <operator==>: Update to account for new field.
129 <hash>: Likewise.
130 * features/Makefile (FEATURE_XMLFILES): Add riscv/rv32e-xregs.xml.
131 * features/riscv/rv32e-xregs.c: Generated.
132 * features/riscv/rv32e-xregs.xml: New file.
133 * riscv-tdep.c (riscv_debug_breakpoints): Move from later in the
134 file.
135 (riscv_debug_infcall): Likewise.
136 (riscv_debug_unwinder): Likewise.
137 (riscv_debug_gdbarch): Likewise.
138 (enum riscv_register_required_status): Delete.
139 (struct riscv_register_feature): Add constructor, delete default
140 constructor, copy, and assign constructors.
141 (struct riscv_register_feature::register_info) <required>: Delete.
142 <check>: Update comment and arguments.
143 (struct riscv_register_feature) <name>: Change to member function.
144 <prefer_first_name>: Delete.
145 <tdesc_feature>: New member function.
146 <registers>: Rename to...
147 <m_registers>: ...this.
148 <m_feature_name>: New member variable.
149 (riscv_register_feature::register_info::check): Update arguments.
150 (riscv_xreg_feature): Rewrite as class, create a single static
151 instance of the class.
152 (riscv_freg_feature): Likewise.
153 (riscv_virtual_feature): Likewise.
154 (riscv_csr_feature): Likewise.
155 (riscv_create_csr_aliases): Has become a member function inside
156 riscv_csr_feature class.
157 (riscv_abi_embedded): New function definition.
158 (riscv_register_name): Adjust to use new feature objects.
159 (struct riscv_call_info) <riscv_call_info>: Check for rv32e abi,
160 and adjust available argument registers.
161 (riscv_features_from_gdbarch_info): Check for EF_RISCV_RVE flag.
162 (riscv_check_tdesc_feature): Delete.
163 (riscv_tdesc_unknown_reg): Adjust to use new feature objects.
164 (riscv_gdbarch_init): Delete target description checking code, and
165 instead call to the new feature objects to perform the checks.
166 Reorder handling of no abi information case, allows small code
167 simplification.
168 (_initialize_riscv_tdep): Remove call, this is now done in the
169 riscv_csr_feature constructor.
170 * riscv-tdep.h (riscv_abi_embedded): Declare.
171
533b2ae0
AB
1722020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
173
174 * riscv-tdep.c (riscv_create_csr_aliases): Remove use of
175 DECLARE_CSR_ALIAS.
176
e4502042
AB
1772020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
178
179 * riscv-tdep.c (riscv_is_unknown_csr): New function,
180 implementation moved from riscv_register_reggroup_p.
181 (riscv_register_reggroup_p): Update group handling for unknown
182 CSRs.
183
2bf3b79d
SDJ
1842020-12-01 Sergio Durigan Junior <sergiodj@sergiodj.net>
185
186 * dwarf2/read.c (dwz_search_other_debugdirs): New function.
187 (dwarf2_get_dwz_file): Convert 'filename' to a
188 std::string. Use dwz_search_other_debugdirs to search for DWZ
189 files in the debug-file-directories provided by the user as well.
190
77bf7e99
TT
1912020-12-01 Tom Tromey <tom@tromey.com>
192
193 * parse.c (expr_builder::expr_builder): Initialize expout.
194 (expr_builder::release): Use expression::resize.
195 (expression::expression, expression::~expression)
196 (expression::resize): New methods.
197 (write_exp_elt): Use expression::resize.
198 (prefixify_expression): Update.
199 (increase_expout_size): Use expression::resize.
200 * expression.h (struct expression): Add constructor, destructor.
201 <resize>: New method.
202 (expression_up): Change type.
203
539d71e8
RA
2042020-12-01 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
205 * ppc-linux-nat.c: (PPC_DEBUG_FEATURE_DATA_BP_ARCH_31): New define.
206 (region_ok_for_hw_watchpoint): Check if 2nd DAWR is avaliable before
207 set region.
208
7ce05d21
TV
2092020-11-30 Tom de Vries <tdevries@suse.de>
210
211 PR symtab/26905
212 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add and handle
213 is_reference parameter.
214 (dwarf2_evaluate_property): Update dwarf2_locexpr_baton_eval call.
215
88b91969
TT
2162020-11-30 Tom Tromey <tom@tromey.com>
217
218 * rust-lang.c (rust_op_name): Remove.
219 (exp_descriptor_rust): Update.
220 * parser-defs.h (op_name_standard): Don't declare.
221 (struct exp_descriptor) <op_name>: Remove.
222 * parse.c (exp_descriptor_standard): Update.
223 * opencl-lang.c (exp_descriptor_opencl): Update.
224 * m2-lang.c (m2_language::exp_descriptor_modula2): Update.
225 * f-lang.c (op_name_f): Remove.
226 (f_language::exp_descriptor_tab): Update.
227 * expression.h (op_name): Update.
228 * expprint.c (op_name): Rewrite.
229 (op_name_standard): Remove.
230 (dump_raw_expression, dump_subexp): Update.
231 * c-lang.c (exp_descriptor_c): Update.
232 * ax-gdb.c (gen_expr): Update.
233 * ada-lang.c (ada_op_name): Remove.
234 (ada_exp_descriptor): Update.
235
1cd49c43
TT
2362020-11-30 Tom Tromey <tom@tromey.com>
237
238 * eval.c (init_array_element): Remove.
239 (evaluate_subexp_standard) <OP_ARRAY>: Remove "index_pc".
240
96fb9086
HD
2412020-11-29 Hannes Domani <ssbssa@yahoo.de>
242
243 PR tui/26973
244 * tui/tui-layout.c (tui_apply_current_layout): Don't delete the
245 static locator win info.
246
b4132322
AR
2472020-11-28 Alex Richardson <Alexander.Richardson@cl.cam.ac.uk>
248
249 * acincludde.m4 (GDB_AC_CHECK_BFD): Include string.h in the test
250 program.
251
3df8c6af
AB
2522020-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
253
254 * printcmd.c (skip_over_slash_fmt): Reorder code to ensure in_fmt
255 is always initialized.
256
0ae45769
RA
2572020-11-26 Rogerio Alves <rcardoso@linux.ibm.com>
258 * MAINTAINERS (Write After Approval): Add myself.
259
239ca5e4
PW
2602020-11-26 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
261
262 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
263 * features/aarch64-fpu.xml: Add named FPCR and FPSR register bit-fields.
264
cbfa382a
TT
2652020-11-25 Tom Tromey <tom@tromey.com>
266
267 * eval.c (evaluate_subexp_standard): Remove unnecessary
268 variables.
269
af30c400
TT
2702020-11-25 Tom Tromey <tom@tromey.com>
271
272 * d-lang.c: Include parser-defs.h.
273 * rust-lang.c: Include parser-defs.h.
274 * c-lang.h: Do not include parser-defs.h.
275
1c64f6cb
SM
2762020-11-24 Simon Marchi <simon.marchi@polymtl.ca>
277
278 * regcache.h (struct cached_reg): Remove typedef.
279
2c20a601
JB
2802020-11-24 Joel Brobecker <brobecker@adacore.com>
281
282 * README: Fix the URL of the MPFR library.
283
c609df64
JB
2842020-11-24 Joel Brobecker <brobecker@adacore.com>
285
286 * README: Document the --with-libgmp-prefix configure option.
287
fa123c32
JB
2882020-11-24 Joel Brobecker <brobecker@adacore.com>
289
290 * NEWS: Add entry documenting support for DWARF-based fixed
291 point types.
292
0fb8bb02
JB
2932020-11-24 Joel Brobecker <brobecker@adacore.com>
294
295 * NEWS: Document that building GDB now requires GMP.
296
4afa9fd9
JB
2972020-11-24 Joel Brobecker <brobecker@adacore.com>
298
299 * typeprint.c (print_type_scalar): Add handling of
300 TYPE_CODE_FIXED_POINT.
301
af619ce9
JB
3022020-11-24 Joel Brobecker <brobecker@adacore.com>
303
304 * valarith.c (fixed_point_binop): Replace the
305 INIT_VAL_WITH_FIXED_POINT_VAL macro by a lambda. Update all
306 users accordingly.
307
e6fcee3a
JB
3082020-11-24 Joel Brobecker <brobecker@adacore.com>
309
310 * gdbtypes.h (struct type) <fixed_point_scaling_factor>: New method,
311 replacing fixed_point_scaling_factor. All callers updated
312 throughout this project.
313 (fixed_point_scaling_factor): Delete declaration.
314 * gdbtypes.c (type::fixed_point_scaling_factor): Replaces
315 fixed_point_scaling_factor. Adjust implementation accordingly.
316
d19937a7
JB
3172020-11-24 Joel Brobecker <brobecker@adacore.com>
318
319 * gdbtypes.h (struct type) <fixed_point_type_base_type> New method,
320 replacing the fixed_point_type_base_type function. All callers
321 updated throughout this project.
322 (fixed_point_type_base_type): Remove declaration.
323 * gdbtypes.c (type::fixed_point_type_base_type): Replaces
324 fixed_point_type_base_type. Adjust implementation accordingly.
325
2a12c336
JB
3262020-11-24 Joel Brobecker <brobecker@adacore.com>
327
328 * gdbtypes.h (struct type) <fixed_point_info, set_fixed_point_info>:
329 New methods.
330 (INIT_FIXED_POINT_SPECIFIC): Adjust.
331 (TYPE_FIXED_POINT_INFO): Delete macro.
332 (allocate_fixed_point_type_info): Change return type to void.
333 * gdbtypes.c (copy_type_recursive): Replace the use of
334 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
335 (fixed_point_scaling_factor): Likewise.
336 (allocate_fixed_point_type_info): Change return type to void.
337 Adjust implementation accordingly.
338 * dwarf2/read.c (finish_fixed_point_type): Replace the use of
339 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
340
c9f0b43f
JB
3412020-11-24 Joel Brobecker <brobecker@adacore.com>
342
343 * gmp-utils.h (gdb_mpz::read): Change buf and len parameters
344 into one single gdb::array_view parameter.
345 (gdb_mpz::write): Likewise.
346 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
347 * gmp-utils.c (gdb_mpz::read): Change buf and len parameters
348 into one single gdb::array_view parameter.
349 Adjust implementation accordingly.
350 (gdb_mpz::write): Likewise.
351 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
352 * unittests/gmp-utils-selftests.c: Adapt following changes above.
353 * valarith.c, valops.c, valprint.c, value.c: Likewise.
354
987b6703
JB
3552020-11-24 Joel Brobecker <brobecker@adacore.com>
356
357 * gmp-utils.h (gmp_string_printf): Rename from gmp_string_asprintf.
358 Change return type to std::string. Update all callers.
359 * gmp-utils.c (gmp_string_printf): Likewise.
360
4fbb7cce
JB
3612020-11-24 Joel Brobecker <brobecker@adacore.com>
362
363 * unittests/gmp-utils-selftests.c (write_fp_test): Use mpq_set_si
364 instead of mpq_set_ui to initialize our GMP rational.
365
d6ab69dd
TV
3662020-11-23 Tom de Vries <tdevries@suse.de>
367
368 * debuginfod-support.c (debuginfod_source_query)
369 (debuginfod_debuginfo_query): Only set DESTNAME if successful.
370
dab72643
TT
3712020-11-21 Tom Tromey <tom@tromey.com>
372
373 * breakpoint.c (watchpoint_exp_is_const): Return bool.
374
c0ad05d5
SM
3752020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
376
377 * unittests/gmp-utils-selftests.c (gdb_mpz_read_all_from_small):
378 Pass 2.0 to pow.
379 (gdb_mpz_write_all_from_small): Likewise.
380
a43b29c9
SM
3812020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
382
383 * dwarf2/read.c (finish_fixed_point_type): Use std::abs instead
384 of abs.
385
ae41200b
NA
3862020-11-20 Nick Alcock <nick.alcock@oracle.com>
387
388 * ctfread.c (elfctf_build_psymtabs): Use ctf_dict_open, not
389 ctf_arc_open_by_name.
390
139633c3
NA
3912020-11-20 Nick Alcock <nick.alcock@oracle.com>
392
393 * ctfread.c: Change uses of ctf_file_t to ctf_dict_t.
394 (ctf_fp_info::~ctf_fp_info): Call ctf_dict_close, not ctf_file_close.
395
cbbcd7a7
PA
3962020-11-20 Pedro Alves <pedro@palves.net>
397
398 * language.c (language_arch_info::lookup_primitive_type): Use
399 gdb::function_view instead of gdb::function.
400 (template language_lookup_primitive_type): Rename to ...
401 (language_lookup_primitive_type_1): ... this, and make static.
402 (language_lookup_primitive_type(const struct language_defn *,
403 struct gdbarch *, const char *): Make non-template.
404 (language_lookup_primitive_type(const struct language_defn *,
405 struct gdbarch *, std::function<bool (struct type *)>): Make
406 non-template and use gdb::function_view.
407 * language.h (language_arch_info::lookup_primitive_type): Use
408 gdb::function_view instead of std::function.
409 (language_lookup_primitive_type): No longer template.
410 * opencl-lang.c (lookup_opencl_vector_type): 'filter' is now a
411 lambda instead of a std::function.
412
d5ef21c3
AA
4132020-11-19 Andreas Arnez <arnez@linux.ibm.com>
414
415 PR tdep/26916
416 * s390-tdep.c (s390_process_record): Fix recording of STOC, STOCG,
417 and STOCFH.
418
a5adb8f3
SM
4192020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
420
421 * f-lang.c (fortran_value_subarray): Use plongest/pulongest.
422
70125a45
SM
4232020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
424
425 * gdbarch.sh (read_core_file_mappings): Remove `other` parameter
426 in `loop_cb` parameter.
427 * gdbarch.c: Re-generate.
428 * gdbarch.h: Re-generate.
429 * arch-utils.c (default_read_core_file_mappings): Remove `other`
430 parameter.
431 * arch-utils.h (default_read_core_file_mappings): Likewise.
432 * corelow.c (core_target::build_file_mappings): Likewise.
433 * linux-tdep.c (linux_read_core_file_mappings): Likewise.
434 (linux_core_info_proc_mappings): Likewise.
435
a5c641b5
AB
4362020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
437
438 * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
439 * NEWS: Mention new options.
440 * f-array-walker.h: New file.
441 * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
442 (repack_array_slices): New static global.
443 (show_repack_array_slices): New function.
444 (fortran_array_slicing_debug): New static global.
445 (show_fortran_array_slicing_debug): New function.
446 (value_f90_subarray): Delete.
447 (skip_undetermined_arglist): Delete.
448 (class fortran_array_repacker_base_impl): New class.
449 (class fortran_lazy_array_repacker_impl): New class.
450 (class fortran_array_repacker_impl): New class.
451 (fortran_value_subarray): Complete rewrite.
452 (set_fortran_list): New static global.
453 (show_fortran_list): Likewise.
454 (_initialize_f_language): Register new commands.
455 (fortran_adjust_dynamic_array_base_address_hack): New function.
456 * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
457 Declare.
458 * f-valprint.c: Include 'f-array-walker.h'.
459 (class fortran_array_printer_impl): New class.
460 (f77_print_array_1): Delete.
461 (f77_print_array): Delete.
462 (fortran_print_array): New.
463 (f_value_print_inner): Update to call fortran_print_array.
464 * gdbtypes.c: Include 'f-lang.h'.
465 (resolve_dynamic_type_internal): Call
466 fortran_adjust_dynamic_array_base_address_hack.
467
a15a5258
AB
4682020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
469
470 * breakpoint.c (struct watch_options): New struct.
471 (watch_option_defs): New static global.
472 (make_watch_options_def_group): New function.
473 (watch_maybe_just_location): Convert option parsing.
474 (watch_command_completer): New function.
475 (_initialize_breakpoint): Build help text using options mechanism.
476
2e362716
AB
4772020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
478
479 * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
480 (watch_command_1): Update parameter types. Convert locals to
481 bool.
482 (watch_command_wrapper): Change parameter type.
483 (watch_maybe_just_location): Change locals to bool.
484 (rwatch_command_wrapper): Update parameter type.
485 (awatch_command_wrapper): Update parameter type.
486 * breakpoint.h (watch_command_wrapper): Change parameter type.
487 (rwatch_command_wrapper): Update parameter type.
488 (awatch_command_wrapper): Update parameter type.
489 * eval.c (fetch_subexp_value): Change parameter type.
490 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
491 'false' not '0'.
492 * value.h (fetch_subexp_value): Change parameter type in
493 declaration.
494
b3ff61f8
AB
4952020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
496
497 * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
498 skip_spaces.
499
5b7d45d3
KS
5002020-11-18 Keith Seitz <keiths@redhat.com>
501
502 * linux-tdep.c (dump_note_entry_p): Return true instead of
503 checking `filename'.
504
c44191f8
TV
5052020-11-18 Tom de Vries <tdevries@suse.de>
506
507 * debuginfod-support.c (debuginfod_source_query)
508 (debuginfod_debuginfo_query): Also do early exit if
509 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
510
5d8254e1
TV
5112020-11-18 Tom de Vries <tdevries@suse.de>
512
513 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
514 warning.
515
584903d3
SM
5162020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
517
518 * gdbtypes.h (get_array_bounds): Return bool, adjust some
519 callers. Move doc here.
520 * gdbtypes.c (get_array_bounds): Return bool
521
6f2643db
AB
5222020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
523
524 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
525 assert.
526 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
527 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
528 case to the default.
529
037d7135
AB
5302020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
531
532 * printcmd.c: Include 'safe-ctype.c'.
533 (skip_over_slash_fmt): New function.
534 (print_command_completer): Call skip_over_slash_fmt.
535 (display_and_x_command_completer): New function.
536 (_initialize_printcmd): Add command completion for 'x' and
537 'display'.
538
2b3cb400
PA
5392020-11-16 Pedro Alves <pedro@palves.net>
540
541 * frame.c (get_prev_frame): Move get_frame_id call from here ...
542 (get_prev_frame_always_1): ... to here.
543 * inline-frame.c (inline_frame_this_id): Mention
544 get_prev_frame_always_1 in comment.
545
b74dbc20
JB
5462020-11-15 Joel Brobecker <brobecker@adacore.com>
547
548 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
549 handling.
550 (value_less): Add fixed-point handling.
551
0a12719e
JB
5522020-11-15 Joel Brobecker <brobecker@adacore.com>
553
554 * eval.c (binop_promote): Add fixed-point type handling.
555 * valarith.c (fixed_point_binop): New function.
556 (scalar_binop): Add fixed-point type handling.
557 (value_neg): Add fixed-point type handling.
558 * valops.c (value_cast_to_fixed_point): New function.
559 (value_cast): Add fixed-point type handling.
560
0c9150e4
JB
5612020-11-15 Joel Brobecker <brobecker@adacore.com>
562
563 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
564 range types.
565 * c-typeprint.c (c_type_print_varspec_prefix)
566 (c_type_print_varspec_suffix, c_type_print_base_1): Add
567 TYPE_CODE_FIXED_POINT handling.
568 * p-typeprint.c (pascal_type_print_varspec_prefix)
569 (pascal_type_print_varspec_suffix): Likewise.
570 * typeprint.c (print_type_fixed_point): New function.
571 * typeprint.h (print_type_fixed_point): Add declaration.
572
b26daff9
JB
5732020-11-15 Joel Brobecker <brobecker@adacore.com>
574
575 * printcmd.c (print_scalar_formatted): Add fixed-point type
576 handling when options->format is set.
577
09584414
JB
5782020-11-15 Joel Brobecker <brobecker@adacore.com>
579
580 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
581 * dwarf2/read.c (get_dwarf2_rational_constant)
582 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
583 (has_zero_over_zero_small_attribute): New functions.
584 read_base_type, set_die_type): Add fixed-point type handling.
585 * gdb-gdb.py.in: Add fixed-point type handling.
586 * gdbtypes.c: #include "gmp-utils.h".
587 (create_range_type, set_type_code): Add fixed-point type handling.
588 (init_fixed_point_type): New function.
589 (is_integral_type, is_scalar_type): Add fixed-point type handling.
590 (print_fixed_point_type_info): New function.
591 (recursive_dump_type, copy_type_recursive): Add fixed-point type
592 handling.
593 (fixed_point_type_storage): New typedef.
594 (fixed_point_objfile_key): New static global.
595 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
596 (fixed_point_type_base_type, fixed_point_scaling_factor): New
597 functions.
598 * gdbtypes.h: #include "gmp-utils.h".
599 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
600 (union type_specific) <fixed_point_info>: New field.
601 (struct fixed_point_type_info): New struct.
602 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
603 (init_fixed_point_type, is_fixed_point_type)
604 (fixed_point_type_base_type, fixed_point_scaling_factor)
605 (allocate_fixed_point_type_info): Add declarations.
606 * valprint.c (generic_val_print_fixed_point): New function.
607 (generic_value_print): Add fixed-point type handling.
608 * value.c (value_as_address, unpack_long): Add fixed-point type
609 handling.
610
e55c6530
JB
6112020-11-15 Joel Brobecker <brobecker@adacore.com>
612
613 * utils.h (uinteger_pow): Add declaration.
614 * utils.c (uinteger_pow): Moved here (without changes)...
615 * valarith.c (uinteger_pow): ... from here.
616
b34c74ab
JB
6172020-11-15 Joel Brobecker <brobecker@adacore.com>
618
40d9d2fd 619 * gmp-utils.h, gmp-utils.c: New file.
b34c74ab
JB
620 * unittests/gmp-utils-selftests.c: New file.
621 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
622 unittests/gmp-utils-selftests.c.
623 (COMMON_SFILES) Add gmp-utils.c.
624 (HFILES_NO_SRCDIR): Add gmp-utils.h.
625
1b4ac058
JB
6262020-11-15 Joel Brobecker <brobecker@adacore.com>
627
628 * configure.ac: Generate an error if a usable GMP library
629 could not be found.
630 * configure: Regenerate.
631
2c947d9b
JB
6322020-11-15 Joel Brobecker <brobecker@adacore.com>
633
634 * configure.ac: Add support for --with-libgmp-prefix.
635 * Makefile.in (LIBGMP): New variable.
636 (CLIBS): Include $(LIBGMP).
637 * configure, config.in: Regenerate
638
9dd02fc0
AB
6392020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
640
641 PR cli/26879
642 * f-exp.y (COMPLETE): New token.
643 (exp): Two new rules for tab-completion.
644 (saw_name_at_eof): New static global.
645 (last_was_structop): Likewise.
646 (yylex): Set new variables, and return COMPLETE token at the end
647 of the input stream in some cases.
648
758cb810
TT
6492020-11-14 Tom Tromey <tom@tromey.com>
650
651 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
652
749065b7
TT
6532020-11-14 Tom Tromey <tom@tromey.com>
654
655 * opencl-lang.c (opencl_component_ref): Make "comps" const.
656
2c5b1849
SM
6572020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
658
659 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
660
e8b2f0d9
TT
6612020-11-13 Tom Tromey <tom@tromey.com>
662
663 * c-lang.c (convert_ucn, convert_octal, convert_hex)
664 (convert_escape, parse_one_string): Constify.
665
25f4c262
KS
6662020-11-13 Keith Seitz <keiths@redhat.com>
667
668 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
669 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
670 outside of ELF segments" warning for debugin
671
9d3ab915
KS
6722020-11-13 Keith Seitz <keiths@redhat.com>
673
674 PR gdb/23034
675 * elfread.c (elf_symfile_segments): Output a BFD file name
676 for the "Loadable section ... outside of ELF segments" warning.
677
9ecab40c
SM
6782020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
679
680 PR gdb/26835
681 * arm-tdep.c (class arm_instruction_reader): New.
682 (target_arm_instruction_reader): New.
683 (arm_analyze_prologue): Add instruction reader parameter and use
684 it. Use arm_expand_immediate.
685 (class target_arm_instruction_reader): Adjust.
686 (arm_skip_prologue): Adjust.
687 (arm_expand_immediate): New.
688 (arm_scan_prologue): Adjust.
689 (arm_analyze_prologue_test): New.
690 (class test_arm_instruction_reader): New.
691
5a7cf527
AB
6922020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
693
694 * f-lang.c (fortran_argument_convert): Add declaration. Add
695 header comment, taken from f-lang.h. Make static.
696 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
697 (fortran_argument_convert): Delete declaration.
698
7bea47f0
AB
6992020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
700
701 * ada-exp.y (find_primitive_type): Make parameter const.
702 * ada-lang.c (enum ada_primitive_types): Delete.
703 (ada_language::language_arch_info): Update.
704 * c-lang.c (enum c_primitive_types): Delete.
705 (c_language_arch_info): Update.
706 (enum cplus_primitive_types): Delete.
707 (cplus_language::language_arch_info): Update.
708 * d-lang.c (enum d_primitive_types): Delete.
709 (d_language::language_arch_info): Update.
710 * f-lang.c (enum f_primitive_types): Delete.
711 (f_language::language_arch_info): Update.
712 * go-lang.c (enum go_primitive_types): Delete.
713 (go_language::language_arch_info): Update.
714 * language.c (auto_or_unknown_language::language_arch_info):
715 Update.
716 (language_gdbarch_post_init): Use obstack_new, use array indexing.
717 (language_string_char_type): Add header comment, call function in
718 language_arch_info.
719 (language_bool_type): Likewise
720 (language_arch_info::bool_type): Define.
721 (language_lookup_primitive_type_1): Delete.
722 (language_lookup_primitive_type): Rewrite as a templated function
723 to call function in language_arch_info, then instantiate twice.
724 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
725 (language_arch_info::lookup_primitive_type_and_symbol): Define.
726 (language_arch_info::lookup_primitive_type): Define twice with
727 different signatures.
728 (language_arch_info::lookup_primitive_type_as_symbol): Define.
729 (language_lookup_primitive_type_as_symbol): Rewrite to call a
730 member function in language_arch_info.
731 * language.h (language_arch_info): Complete rewrite.
732 (language_lookup_primitive_type): Make templated.
733 * m2-lang.c (enum m2_primitive_types): Delete.
734 (m2_language::language_arch_info): Update.
735 * opencl-lang.c (OCL_P_TYPE): Delete.
736 (enum opencl_primitive_types): Delete.
737 (opencl_type_data): Delete.
738 (builtin_opencl_type): Delete.
739 (lookup_opencl_vector_type): Update.
740 (opencl_language::language_arch_info): Update, lots of content
741 moved from...
742 (build_opencl_types): ...here. This function is now deleted.
743 (_initialize_opencl_language): Delete.
744 * p-lang.c (enum pascal_primitive_types): Delete.
745 (pascal_language::language_arch_info): Update.
746 * rust-lang.c (enum rust_primitive_types): Delete.
747 (rust_language::language_arch_info): Update.
748
bf6e5d01
SM
7492020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
750
751 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
752 dwarf2_queue_guard.
753
1350c3b4
SM
7542020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
755
756 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
757 comment.
758
6f738b01
SM
7592020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
760
761 * dwarf2/read.c (dwarf_read_debug_printf,
762 dwarf_read_debug_printf_v): New macros, use throughout the file.
763
10c19fad
SV
7642020-11-12 Shahab Vahedi <shahab@synopsys.com>
765
10806efd 766 PR tdep/27015
10c19fad
SV
767 * arc-linux-tdep.c (collect_register): Populate "eret" by
768 "pc" value from the regcache when asked for "pc" value.
769
1f2624a3
TT
7702020-11-12 Tom Tromey <tom@tromey.com>
771
772 PR rust/26799:
773 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
774 exist.
775
ab33b152
AB
7762020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
777
778 * features/Makefile (XMLTOC): Add rx.xml.
779 (FEATURE_XMLFILES): Remove rx.xml.
780 (FEATURE_CFILES rule): Pass '-single-feature' flag.
781 * features/rx.c: Regenerate.
782 * features/rx.xml: Wrap in `target` tags, and reindent.
783 * target-descriptions.c (struct maint_print_c_tdesc_options): New
784 structure.
785 (maint_print_c_tdesc_opt_def): New typedef.
786 (maint_print_c_tdesc_opt_defs): New static global.
787 (make_maint_print_c_tdesc_options_def_group): New function.
788 (maint_print_c_tdesc_cmd): Make use of command line flags, only
789 print single feature C file for target descriptions containing a
790 single feature.
791 (maint_print_c_tdesc_cmd_completer): New function.
792 (_initialize_target_descriptions): Update call to register command
793 completer, and include command line flag in help text.
794
550820e1
AB
7952020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
796
797 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
798 numbers.
799 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
800 enum values.
801
baf20f76
TT
8022020-11-10 Tom Tromey <tom@tromey.com>
803
804 * value.h (internalvar_name): Update.
805 * value.c (internalvar_name): Make return type const.
806
caaece0e
TT
8072020-11-10 Tom Tromey <tom@tromey.com>
808
809 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
810 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
811 const.
812
8e20b4be
TT
8132020-11-10 Tom Tromey <tom@tromey.com>
814
815 * objc-lang.h (value_nsstring): Update.
816 * objc-lang.c (value_nsstring): Make "ptr" const.
817
86775fab
AB
8182020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
819
820 * expprint.c (print_subexp_funcall): Increment expression position
821 after reading argument count.
822 * f-lang.c (print_subexp_f): Skip over opcode before calling
823 common function.
824 (dump_subexp_body_f): Likewise.
825
3fed4c0b
RG
8262020-11-06 Romain Geissler <romain.geissler@amadeus.com>
827
828 PR python/26832
829 * configure: Regenerate.
830 * configure.ac: Check for python modules ctypes instead of
831 itertools.
832
ac3d4064
PA
8332020-11-06 Pedro Alves <pedro@palves.net>
834
835 * macroexp.c (struct macro_buffer): Split in two classes. Add
836 uses adjusted.
837 (struct shared_macro_buffer): New, factored out from struct
838 macro_buffer.
839 (struct growable_macro_buffer): New, factored out from struct
840 macro_buffer.
841 (set_token, get_comment, get_identifier, get_pp_number)
842 (get_character_constant, get_string_literal, get_punctuator)
843 (get_next_token_for_substitution): Constify parameters.
844 (substitute_args): Constify locals.
845
606decb2
TT
8462020-11-05 Tom Tromey <tom@tromey.com>
847
848 * dwarf2/read.c (read_cutu_die_from_dwo)
849 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
850 (build_type_psymtabs_1): Update.
851 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
852 parameter.
853 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
854 Don't read section. Add assert.
855
9c91c725
TT
8562020-11-04 Tom Tromey <tromey@adacore.com>
857
858 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
859
8d9fd3a1
TT
8602020-11-04 Tom Tromey <tromey@adacore.com>
861
862 * ada-typeprint.c (ada_print_type): Handle __T types.
863
d8f62e84
TT
8642020-11-04 Tom Tromey <tromey@adacore.com>
865
866 * dwarf2/read.c (add_partial_symbol, process_die):
867 Handle DW_TAG_array_type.
868 (is_type_tag_for_partial): Add "lang" parameter.
869 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
870
7ff5b937
TT
8712020-11-04 Tom Tromey <tromey@adacore.com>
872
873 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
874
10f6a3ad
TT
8752020-11-04 Tom Tromey <tromey@adacore.com>
876
877 * dwarf2/read.c (read_array_type): Only apply stride to innermost
878 array.
879
b72795a8
TT
8802020-11-04 Tom Tromey <tromey@adacore.com>
881
882 * gdbtypes.c (update_static_array_size): Handle bit stride.
883
24aa1b02
TT
8842020-11-04 Tom Tromey <tromey@adacore.com>
885
886 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
887
c9a28cbe
TT
8882020-11-04 Tom Tromey <tromey@adacore.com>
889
890 * ada-lang.c (ada_is_any_packed_array_type): New function.
891 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
892
57567375
TT
8932020-11-04 Tom Tromey <tromey@adacore.com>
894
895 * dwarf2/read.c (recognize_bound_expression)
896 (quirk_ada_thick_pointer): New functions.
897 (read_array_type): Call quirk_ada_thick_pointer.
898 (set_die_type): Add "skip_data_location" parameter.
899 (quirk_ada_thick_pointer): New function.
900 (process_structure_scope): Call quirk_ada_thick_pointer.
901 * ada-lang.c (ada_is_unconstrained_packed_array_type)
902 (decode_packed_array_bitsize): Handle thick pointers without
903 parallel types.
904 (ada_is_gnat_encoded_packed_array_type): Rename from
905 ada_is_packed_array_type.
906 (ada_is_constrained_packed_array_type): Update.
907 * ada-valprint.c (ada_val_print_gnat_array): Remove.
908 (ada_value_print_1): Use ada_get_decoded_value.
909
a7400e44
TT
9102020-11-04 Tom Tromey <tromey@adacore.com>
911
912 * ada-lang.c (recursively_update_array_bitsize): New function.
913 (decode_constrained_packed_array_type): Call it.
914
75fd6a26
TT
9152020-11-04 Tom Tromey <tromey@adacore.com>
916
917 * ada-lang.c (to_fixed_array_type): Error if
918 decode_constrained_packed_array_type returns NULL.
919
93f9561e
TT
9202020-11-04 Tom Tromey <tromey@adacore.com>
921
922 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
923
257e02d8
TT
9242020-11-02 Tom Tromey <tromey@adacore.com>
925
926 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
927 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
928 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
929 * amd64-ravenscar-thread.c: New file.
930 * amd64-ravenscar-thread.h: New file.
931 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
932 * configure.tgt (amd64_tobjs): Add ravenscar objects.
933
74d877e5
AB
9342020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
935
936 * main.c (execute_cmdargs): New function.
937 (captured_main_1): Make use of execute_cmdargs.
938
64aaad63
AB
9392020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
940
941 * NEWS: Mention changes to config file search path.
942 * main.c
943
5b3d3560
TT
9442020-11-02 Tom Tromey <tromey@adacore.com>
945
946 * python/python.c: Consolidate two HAVE_PYTHON blocks.
947 (python_GdbModuleDef): Move earlier. Now static.
948 (do_start_initialization): Consolidate some IS_PY3K blocks.
949
dda83cd7
SM
9502020-11-02 Simon Marchi <simon.marchi@efficios.com>
951
952 * aarch64-linux-tdep.c: Fix indentation.
953 * aarch64-ravenscar-thread.c: Fix indentation.
954 * aarch64-tdep.c: Fix indentation.
955 * aarch64-tdep.h: Fix indentation.
956 * ada-lang.c: Fix indentation.
957 * ada-lang.h: Fix indentation.
958 * ada-tasks.c: Fix indentation.
959 * ada-typeprint.c: Fix indentation.
960 * ada-valprint.c: Fix indentation.
961 * ada-varobj.c: Fix indentation.
962 * addrmap.c: Fix indentation.
963 * addrmap.h: Fix indentation.
964 * agent.c: Fix indentation.
965 * aix-thread.c: Fix indentation.
966 * alpha-bsd-nat.c: Fix indentation.
967 * alpha-linux-tdep.c: Fix indentation.
968 * alpha-mdebug-tdep.c: Fix indentation.
969 * alpha-nbsd-tdep.c: Fix indentation.
970 * alpha-obsd-tdep.c: Fix indentation.
971 * alpha-tdep.c: Fix indentation.
972 * amd64-bsd-nat.c: Fix indentation.
973 * amd64-darwin-tdep.c: Fix indentation.
974 * amd64-linux-nat.c: Fix indentation.
975 * amd64-linux-tdep.c: Fix indentation.
976 * amd64-nat.c: Fix indentation.
977 * amd64-obsd-tdep.c: Fix indentation.
978 * amd64-tdep.c: Fix indentation.
979 * amd64-windows-tdep.c: Fix indentation.
980 * annotate.c: Fix indentation.
981 * arc-tdep.c: Fix indentation.
982 * arch-utils.c: Fix indentation.
983 * arch/arm-get-next-pcs.c: Fix indentation.
984 * arch/arm.c: Fix indentation.
985 * arm-linux-nat.c: Fix indentation.
986 * arm-linux-tdep.c: Fix indentation.
987 * arm-nbsd-tdep.c: Fix indentation.
988 * arm-pikeos-tdep.c: Fix indentation.
989 * arm-tdep.c: Fix indentation.
990 * arm-tdep.h: Fix indentation.
991 * arm-wince-tdep.c: Fix indentation.
992 * auto-load.c: Fix indentation.
993 * auxv.c: Fix indentation.
994 * avr-tdep.c: Fix indentation.
995 * ax-gdb.c: Fix indentation.
996 * ax-general.c: Fix indentation.
997 * bfin-linux-tdep.c: Fix indentation.
998 * block.c: Fix indentation.
999 * block.h: Fix indentation.
1000 * blockframe.c: Fix indentation.
1001 * bpf-tdep.c: Fix indentation.
1002 * break-catch-sig.c: Fix indentation.
1003 * break-catch-syscall.c: Fix indentation.
1004 * break-catch-throw.c: Fix indentation.
1005 * breakpoint.c: Fix indentation.
1006 * breakpoint.h: Fix indentation.
1007 * bsd-uthread.c: Fix indentation.
1008 * btrace.c: Fix indentation.
1009 * build-id.c: Fix indentation.
1010 * buildsym-legacy.h: Fix indentation.
1011 * buildsym.c: Fix indentation.
1012 * c-typeprint.c: Fix indentation.
1013 * c-valprint.c: Fix indentation.
1014 * c-varobj.c: Fix indentation.
1015 * charset.c: Fix indentation.
1016 * cli/cli-cmds.c: Fix indentation.
1017 * cli/cli-decode.c: Fix indentation.
1018 * cli/cli-decode.h: Fix indentation.
1019 * cli/cli-script.c: Fix indentation.
1020 * cli/cli-setshow.c: Fix indentation.
1021 * coff-pe-read.c: Fix indentation.
1022 * coffread.c: Fix indentation.
1023 * compile/compile-cplus-types.c: Fix indentation.
1024 * compile/compile-object-load.c: Fix indentation.
1025 * compile/compile-object-run.c: Fix indentation.
1026 * completer.c: Fix indentation.
1027 * corefile.c: Fix indentation.
1028 * corelow.c: Fix indentation.
1029 * cp-abi.h: Fix indentation.
1030 * cp-namespace.c: Fix indentation.
1031 * cp-support.c: Fix indentation.
1032 * cp-valprint.c: Fix indentation.
1033 * cris-linux-tdep.c: Fix indentation.
1034 * cris-tdep.c: Fix indentation.
1035 * darwin-nat-info.c: Fix indentation.
1036 * darwin-nat.c: Fix indentation.
1037 * darwin-nat.h: Fix indentation.
1038 * dbxread.c: Fix indentation.
1039 * dcache.c: Fix indentation.
1040 * disasm.c: Fix indentation.
1041 * dtrace-probe.c: Fix indentation.
1042 * dwarf2/abbrev.c: Fix indentation.
1043 * dwarf2/attribute.c: Fix indentation.
1044 * dwarf2/expr.c: Fix indentation.
1045 * dwarf2/frame.c: Fix indentation.
1046 * dwarf2/index-cache.c: Fix indentation.
1047 * dwarf2/index-write.c: Fix indentation.
1048 * dwarf2/line-header.c: Fix indentation.
1049 * dwarf2/loc.c: Fix indentation.
1050 * dwarf2/macro.c: Fix indentation.
1051 * dwarf2/read.c: Fix indentation.
1052 * dwarf2/read.h: Fix indentation.
1053 * elfread.c: Fix indentation.
1054 * eval.c: Fix indentation.
1055 * event-top.c: Fix indentation.
1056 * exec.c: Fix indentation.
1057 * exec.h: Fix indentation.
1058 * expprint.c: Fix indentation.
1059 * f-lang.c: Fix indentation.
1060 * f-typeprint.c: Fix indentation.
1061 * f-valprint.c: Fix indentation.
1062 * fbsd-nat.c: Fix indentation.
1063 * fbsd-tdep.c: Fix indentation.
1064 * findvar.c: Fix indentation.
1065 * fork-child.c: Fix indentation.
1066 * frame-unwind.c: Fix indentation.
1067 * frame-unwind.h: Fix indentation.
1068 * frame.c: Fix indentation.
1069 * frv-linux-tdep.c: Fix indentation.
1070 * frv-tdep.c: Fix indentation.
1071 * frv-tdep.h: Fix indentation.
1072 * ft32-tdep.c: Fix indentation.
1073 * gcore.c: Fix indentation.
1074 * gdb_bfd.c: Fix indentation.
1075 * gdbarch.sh: Fix indentation.
1076 * gdbarch.c: Re-generate
1077 * gdbarch.h: Re-generate.
1078 * gdbcore.h: Fix indentation.
1079 * gdbthread.h: Fix indentation.
1080 * gdbtypes.c: Fix indentation.
1081 * gdbtypes.h: Fix indentation.
1082 * glibc-tdep.c: Fix indentation.
1083 * gnu-nat.c: Fix indentation.
1084 * gnu-nat.h: Fix indentation.
1085 * gnu-v2-abi.c: Fix indentation.
1086 * gnu-v3-abi.c: Fix indentation.
1087 * go32-nat.c: Fix indentation.
1088 * guile/guile-internal.h: Fix indentation.
1089 * guile/scm-cmd.c: Fix indentation.
1090 * guile/scm-frame.c: Fix indentation.
1091 * guile/scm-iterator.c: Fix indentation.
1092 * guile/scm-math.c: Fix indentation.
1093 * guile/scm-ports.c: Fix indentation.
1094 * guile/scm-pretty-print.c: Fix indentation.
1095 * guile/scm-value.c: Fix indentation.
1096 * h8300-tdep.c: Fix indentation.
1097 * hppa-linux-nat.c: Fix indentation.
1098 * hppa-linux-tdep.c: Fix indentation.
1099 * hppa-nbsd-nat.c: Fix indentation.
1100 * hppa-nbsd-tdep.c: Fix indentation.
1101 * hppa-obsd-nat.c: Fix indentation.
1102 * hppa-tdep.c: Fix indentation.
1103 * hppa-tdep.h: Fix indentation.
1104 * i386-bsd-nat.c: Fix indentation.
1105 * i386-darwin-nat.c: Fix indentation.
1106 * i386-darwin-tdep.c: Fix indentation.
1107 * i386-dicos-tdep.c: Fix indentation.
1108 * i386-gnu-nat.c: Fix indentation.
1109 * i386-linux-nat.c: Fix indentation.
1110 * i386-linux-tdep.c: Fix indentation.
1111 * i386-nto-tdep.c: Fix indentation.
1112 * i386-obsd-tdep.c: Fix indentation.
1113 * i386-sol2-nat.c: Fix indentation.
1114 * i386-tdep.c: Fix indentation.
1115 * i386-tdep.h: Fix indentation.
1116 * i386-windows-tdep.c: Fix indentation.
1117 * i387-tdep.c: Fix indentation.
1118 * i387-tdep.h: Fix indentation.
1119 * ia64-libunwind-tdep.c: Fix indentation.
1120 * ia64-libunwind-tdep.h: Fix indentation.
1121 * ia64-linux-nat.c: Fix indentation.
1122 * ia64-linux-tdep.c: Fix indentation.
1123 * ia64-tdep.c: Fix indentation.
1124 * ia64-tdep.h: Fix indentation.
1125 * ia64-vms-tdep.c: Fix indentation.
1126 * infcall.c: Fix indentation.
1127 * infcmd.c: Fix indentation.
1128 * inferior.c: Fix indentation.
1129 * infrun.c: Fix indentation.
1130 * iq2000-tdep.c: Fix indentation.
1131 * language.c: Fix indentation.
1132 * linespec.c: Fix indentation.
1133 * linux-fork.c: Fix indentation.
1134 * linux-nat.c: Fix indentation.
1135 * linux-tdep.c: Fix indentation.
1136 * linux-thread-db.c: Fix indentation.
1137 * lm32-tdep.c: Fix indentation.
1138 * m2-lang.c: Fix indentation.
1139 * m2-typeprint.c: Fix indentation.
1140 * m2-valprint.c: Fix indentation.
1141 * m32c-tdep.c: Fix indentation.
1142 * m32r-linux-tdep.c: Fix indentation.
1143 * m32r-tdep.c: Fix indentation.
1144 * m68hc11-tdep.c: Fix indentation.
1145 * m68k-bsd-nat.c: Fix indentation.
1146 * m68k-linux-nat.c: Fix indentation.
1147 * m68k-linux-tdep.c: Fix indentation.
1148 * m68k-tdep.c: Fix indentation.
1149 * machoread.c: Fix indentation.
1150 * macrocmd.c: Fix indentation.
1151 * macroexp.c: Fix indentation.
1152 * macroscope.c: Fix indentation.
1153 * macrotab.c: Fix indentation.
1154 * macrotab.h: Fix indentation.
1155 * main.c: Fix indentation.
1156 * mdebugread.c: Fix indentation.
1157 * mep-tdep.c: Fix indentation.
1158 * mi/mi-cmd-catch.c: Fix indentation.
1159 * mi/mi-cmd-disas.c: Fix indentation.
1160 * mi/mi-cmd-env.c: Fix indentation.
1161 * mi/mi-cmd-stack.c: Fix indentation.
1162 * mi/mi-cmd-var.c: Fix indentation.
1163 * mi/mi-cmds.c: Fix indentation.
1164 * mi/mi-main.c: Fix indentation.
1165 * mi/mi-parse.c: Fix indentation.
1166 * microblaze-tdep.c: Fix indentation.
1167 * minidebug.c: Fix indentation.
1168 * minsyms.c: Fix indentation.
1169 * mips-linux-nat.c: Fix indentation.
1170 * mips-linux-tdep.c: Fix indentation.
1171 * mips-nbsd-tdep.c: Fix indentation.
1172 * mips-tdep.c: Fix indentation.
1173 * mn10300-linux-tdep.c: Fix indentation.
1174 * mn10300-tdep.c: Fix indentation.
1175 * moxie-tdep.c: Fix indentation.
1176 * msp430-tdep.c: Fix indentation.
1177 * namespace.h: Fix indentation.
1178 * nat/fork-inferior.c: Fix indentation.
1179 * nat/gdb_ptrace.h: Fix indentation.
1180 * nat/linux-namespaces.c: Fix indentation.
1181 * nat/linux-osdata.c: Fix indentation.
1182 * nat/netbsd-nat.c: Fix indentation.
1183 * nat/x86-dregs.c: Fix indentation.
1184 * nbsd-nat.c: Fix indentation.
1185 * nbsd-tdep.c: Fix indentation.
1186 * nios2-linux-tdep.c: Fix indentation.
1187 * nios2-tdep.c: Fix indentation.
1188 * nto-procfs.c: Fix indentation.
1189 * nto-tdep.c: Fix indentation.
1190 * objfiles.c: Fix indentation.
1191 * objfiles.h: Fix indentation.
1192 * opencl-lang.c: Fix indentation.
1193 * or1k-tdep.c: Fix indentation.
1194 * osabi.c: Fix indentation.
1195 * osabi.h: Fix indentation.
1196 * osdata.c: Fix indentation.
1197 * p-lang.c: Fix indentation.
1198 * p-typeprint.c: Fix indentation.
1199 * p-valprint.c: Fix indentation.
1200 * parse.c: Fix indentation.
1201 * ppc-linux-nat.c: Fix indentation.
1202 * ppc-linux-tdep.c: Fix indentation.
1203 * ppc-nbsd-nat.c: Fix indentation.
1204 * ppc-nbsd-tdep.c: Fix indentation.
1205 * ppc-obsd-nat.c: Fix indentation.
1206 * ppc-ravenscar-thread.c: Fix indentation.
1207 * ppc-sysv-tdep.c: Fix indentation.
1208 * ppc64-tdep.c: Fix indentation.
1209 * printcmd.c: Fix indentation.
1210 * proc-api.c: Fix indentation.
1211 * producer.c: Fix indentation.
1212 * producer.h: Fix indentation.
1213 * prologue-value.c: Fix indentation.
1214 * prologue-value.h: Fix indentation.
1215 * psymtab.c: Fix indentation.
1216 * python/py-arch.c: Fix indentation.
1217 * python/py-bpevent.c: Fix indentation.
1218 * python/py-event.c: Fix indentation.
1219 * python/py-event.h: Fix indentation.
1220 * python/py-finishbreakpoint.c: Fix indentation.
1221 * python/py-frame.c: Fix indentation.
1222 * python/py-framefilter.c: Fix indentation.
1223 * python/py-inferior.c: Fix indentation.
1224 * python/py-infthread.c: Fix indentation.
1225 * python/py-objfile.c: Fix indentation.
1226 * python/py-prettyprint.c: Fix indentation.
1227 * python/py-registers.c: Fix indentation.
1228 * python/py-signalevent.c: Fix indentation.
1229 * python/py-stopevent.c: Fix indentation.
1230 * python/py-stopevent.h: Fix indentation.
1231 * python/py-threadevent.c: Fix indentation.
1232 * python/py-tui.c: Fix indentation.
1233 * python/py-unwind.c: Fix indentation.
1234 * python/py-value.c: Fix indentation.
1235 * python/py-xmethods.c: Fix indentation.
1236 * python/python-internal.h: Fix indentation.
1237 * python/python.c: Fix indentation.
1238 * ravenscar-thread.c: Fix indentation.
1239 * record-btrace.c: Fix indentation.
1240 * record-full.c: Fix indentation.
1241 * record.c: Fix indentation.
1242 * reggroups.c: Fix indentation.
1243 * regset.h: Fix indentation.
1244 * remote-fileio.c: Fix indentation.
1245 * remote.c: Fix indentation.
1246 * reverse.c: Fix indentation.
1247 * riscv-linux-tdep.c: Fix indentation.
1248 * riscv-ravenscar-thread.c: Fix indentation.
1249 * riscv-tdep.c: Fix indentation.
1250 * rl78-tdep.c: Fix indentation.
1251 * rs6000-aix-tdep.c: Fix indentation.
1252 * rs6000-lynx178-tdep.c: Fix indentation.
1253 * rs6000-nat.c: Fix indentation.
1254 * rs6000-tdep.c: Fix indentation.
1255 * rust-lang.c: Fix indentation.
1256 * rx-tdep.c: Fix indentation.
1257 * s12z-tdep.c: Fix indentation.
1258 * s390-linux-tdep.c: Fix indentation.
1259 * score-tdep.c: Fix indentation.
1260 * ser-base.c: Fix indentation.
1261 * ser-mingw.c: Fix indentation.
1262 * ser-uds.c: Fix indentation.
1263 * ser-unix.c: Fix indentation.
1264 * serial.c: Fix indentation.
1265 * sh-linux-tdep.c: Fix indentation.
1266 * sh-nbsd-tdep.c: Fix indentation.
1267 * sh-tdep.c: Fix indentation.
1268 * skip.c: Fix indentation.
1269 * sol-thread.c: Fix indentation.
1270 * solib-aix.c: Fix indentation.
1271 * solib-darwin.c: Fix indentation.
1272 * solib-frv.c: Fix indentation.
1273 * solib-svr4.c: Fix indentation.
1274 * solib.c: Fix indentation.
1275 * source.c: Fix indentation.
1276 * sparc-linux-tdep.c: Fix indentation.
1277 * sparc-nbsd-tdep.c: Fix indentation.
1278 * sparc-obsd-tdep.c: Fix indentation.
1279 * sparc-ravenscar-thread.c: Fix indentation.
1280 * sparc-tdep.c: Fix indentation.
1281 * sparc64-linux-tdep.c: Fix indentation.
1282 * sparc64-nbsd-tdep.c: Fix indentation.
1283 * sparc64-obsd-tdep.c: Fix indentation.
1284 * sparc64-tdep.c: Fix indentation.
1285 * stabsread.c: Fix indentation.
1286 * stack.c: Fix indentation.
1287 * stap-probe.c: Fix indentation.
1288 * stubs/ia64vms-stub.c: Fix indentation.
1289 * stubs/m32r-stub.c: Fix indentation.
1290 * stubs/m68k-stub.c: Fix indentation.
1291 * stubs/sh-stub.c: Fix indentation.
1292 * stubs/sparc-stub.c: Fix indentation.
1293 * symfile-mem.c: Fix indentation.
1294 * symfile.c: Fix indentation.
1295 * symfile.h: Fix indentation.
1296 * symmisc.c: Fix indentation.
1297 * symtab.c: Fix indentation.
1298 * symtab.h: Fix indentation.
1299 * target-float.c: Fix indentation.
1300 * target.c: Fix indentation.
1301 * target.h: Fix indentation.
1302 * tic6x-tdep.c: Fix indentation.
1303 * tilegx-linux-tdep.c: Fix indentation.
1304 * tilegx-tdep.c: Fix indentation.
1305 * top.c: Fix indentation.
1306 * tracefile-tfile.c: Fix indentation.
1307 * tracepoint.c: Fix indentation.
1308 * tui/tui-disasm.c: Fix indentation.
1309 * tui/tui-io.c: Fix indentation.
1310 * tui/tui-regs.c: Fix indentation.
1311 * tui/tui-stack.c: Fix indentation.
1312 * tui/tui-win.c: Fix indentation.
1313 * tui/tui-winsource.c: Fix indentation.
1314 * tui/tui.c: Fix indentation.
1315 * typeprint.c: Fix indentation.
1316 * ui-out.h: Fix indentation.
1317 * unittests/copy_bitwise-selftests.c: Fix indentation.
1318 * unittests/memory-map-selftests.c: Fix indentation.
1319 * utils.c: Fix indentation.
1320 * v850-tdep.c: Fix indentation.
1321 * valarith.c: Fix indentation.
1322 * valops.c: Fix indentation.
1323 * valprint.c: Fix indentation.
1324 * valprint.h: Fix indentation.
1325 * value.c: Fix indentation.
1326 * value.h: Fix indentation.
1327 * varobj.c: Fix indentation.
1328 * vax-tdep.c: Fix indentation.
1329 * windows-nat.c: Fix indentation.
1330 * windows-tdep.c: Fix indentation.
1331 * xcoffread.c: Fix indentation.
1332 * xml-syscall.c: Fix indentation.
1333 * xml-tdesc.c: Fix indentation.
1334 * xstormy16-tdep.c: Fix indentation.
1335 * xtensa-config.c: Fix indentation.
1336 * xtensa-linux-nat.c: Fix indentation.
1337 * xtensa-linux-tdep.c: Fix indentation.
1338 * xtensa-tdep.c: Fix indentation.
1339
e1f57067
AB
13402020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1341 Craig Blackmore <craig.blackmore@embecosm.com>
1342
1343 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
1344 as an unsigned value.
1345
ae7754b2
TT
13462020-11-01 Tom Tromey <tom@tromey.com>
1347
1348 * dbxread.c (dbx_end_psymtab): Update.
1349 * dwarf2/read.c (process_psymtab_comp_unit_reader)
1350 (build_type_psymtabs_reader): Update.
1351 * xcoffread.c (xcoff_end_psymtab): Update.
1352 * ctfread.c (scan_partial_symbols): Update.
1353 * psymtab.c (sort_pst_symbols): Remove.
1354 (partial_symtab::end): Rename from end_psymtab_common. Inline
1355 sort_pst_symbols.
1356 * psympriv.h (struct partial_symtab) <end>: New method.
1357 (end_psymtab_common): Don't declare.
1358
0684bb51
TT
13592020-11-01 Tom Tromey <tom@tromey.com>
1360
1361 * symmisc.c (count_psyms): New function.
1362 (print_objfile_statistics): Use it.
1363 * psymtab.c (append_psymbol_to_list): Remove.
1364 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
1365 * objfiles.h (struct objstats) <n_psyms>: Remove.
1366
089002bb
TT
13672020-11-01 Tom Tromey <tom@tromey.com>
1368
1369 * dbxread.c (dbx_end_psymtab): Update.
1370 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
1371 (build_type_psymtabs_reader): Update.
1372 * xcoffread.c (xcoff_end_psymtab): Update.
1373 * ctfread.c (scan_partial_symbols): Update.
1374 * psympriv.h (end_psymtab_common): Update.
1375 * psymtab.c (end_psymtab_common): Remove objfile parameter.
1376 (sort_pst_symbols): Likewise.
1377
525454d6
TT
13782020-11-01 Tom Tromey <tom@tromey.com>
1379
1380 * dbxread.c (dbx_symfile_read): Update.
1381 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
1382 * xcoffread.c (xcoff_initial_scan): Update.
1383 * psympriv.h (init_psymbol_list): Don't declare.
1384 * psymtab.c (init_psymbol_list): Remove.
1385
60bd1d53
JB
13862020-11-01 Joel Brobecker <brobecker@adacore.com>
1387
1388 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
1389 gnat_encoded_fixed_type_info. Update all callers.
1390
db99d0d0
JB
13912020-11-01 Joel Brobecker <brobecker@adacore.com>
1392
1393 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
1394 line too long.
1395
75f24e86
JB
13962020-11-01 Joel Brobecker <brobecker@adacore.com>
1397
1398 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
1399 cast_from_fixed. Update all callers.
1400 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
1401 Update all callers.
1402 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
1403 Update all callers.
1404 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
1405 ada_scaling_factor.
1406 * ada-typeprint.c: Replace call to ada_scaling_factor by call
1407 to print_gnat_encoded_fixed_point_type.
1408 * ada-valprint.c: Likewise.
1409
4f0469cd
AB
14102020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1411
1412 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
1413 (debug_prefixed_printf): Add check of debug_displaced flag.
1414 * linux-nat.c (linux_nat_debug_printf): Add check of
1415 debug_linux_nat flag.
1416
17417fb0
SM
14172020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1418
1419 * infrun.c (infrun_debug_printf_1): Remove.
1420 (displaced_debug_printf_1): Remove.
1421 (stop_all_threads): Use debug_prefixed_printf.
1422 * infrun.h (infrun_debug_printf_1): Remove.
1423 (infrun_debug_printf): Use debug_prefixed_printf.
1424 (displaced_debug_printf_1): Remove.
1425 (displaced_debug_printf): Use debug_prefixed_printf.
1426 * linux-nat.c (linux_nat_debug_printf_1): Remove.
1427 (linux_nat_debug_printf): Use debug_prefixed_printf.
1428
ad6dba1c
SM
14292020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1430
1431 * configure: Re-generate.
1432 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
1433 AC_LANG_PROGRAM.
1434
b6fb30ed
SM
14352020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1436
1437 * configure: Re-generate.
1438
5164c117
SM
14392020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1440
1441 * configure: Re-generate.
1442
864ca435
SM
14432020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1444
1445 * configure: Re-generate.
1446
b9442ec1
SM
14472020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1448
1449 * configure: Re-generate.
1450
294f2697
SM
14512020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1452
1453 * acinclude.m4: Modernize.
1454 * configure: Re-generate.
1455
5593a99a
SM
14562020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1457
1458 * configure.ac: Modernize.
1459 * configure: Re-generate.
1460
e41fda1d
SM
14612020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1462
1463 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
1464 * configure: Re-generate.
1465 * configure.ac: Remove AM_PROG_CC_STDC.
1466
91e1a0ed
SM
14672020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1468
1469 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
1470 AC_CANONICAL_SYSTEM.
1471 * configure: Re-generate.
1472
136821d9
SM
14732020-10-30 Simon Marchi <simon.marchi@efficios.com>
1474
1475 * infrun.h (displaced_debug_printf): New macro. Replace
1476 displaced debug prints throughout to use it.
1477 (displaced_debug_printf_1): New declaration.
1478 (displaced_step_dump_bytes): Return string, remove ui_file
1479 parameter, update all callers.
1480 * infrun.c (displaced_debug_printf_1): New function.
1481 (displaced_step_dump_bytes): Return string, remove ui_file
1482 parameter
1483
aa2045e7
SM
14842020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
1485
1486 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
1487
b1ec2735
TT
14882020-10-30 Tom Tromey <tromey@adacore.com>
1489
1490 * Makefile.in (stamp-init): Depend on config.status.
1491
b78b3a29
TBA
14922020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1493
1494 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
1495
d70bdd3c
PA
14962020-10-30 Pedro Alves <pedro@palves.net>
1497
1498 * thread.c (lookup_selected_frame): Move ...
1499 * frame.c (lookup_selected_frame): ... here.
1500
79952e69
PA
15012020-10-30 Pedro Alves <pedro@palves.net>
1502
1503 * blockframe.c (block_innermost_frame): Use get_selected_frame.
1504 * frame.c
1505 (scoped_restore_selected_frame::scoped_restore_selected_frame):
1506 Use save_selected_frame. Save language as well.
1507 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
1508 Use restore_selected_frame, and restore language as well.
1509 (selected_frame_id, selected_frame_level): New.
1510 (selected_frame): Update comments.
1511 (save_selected_frame, restore_selected_frame): New.
1512 (get_selected_frame): Use lookup_selected_frame.
1513 (get_selected_frame_if_set): Delete.
1514 (select_frame): Record selected_frame_level and selected_frame_id.
1515 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
1516 fields.
1517 (get_selected_frame): Make 'message' parameter optional.
1518 (get_selected_frame_if_set): Delete declaration.
1519 (select_frame): Update comments.
1520 (save_selected_frame, restore_selected_frame)
1521 (lookup_selected_frame): Declare.
1522 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
1523 * infrun.c (struct infcall_control_state) <selected_frame_level>:
1524 New field.
1525 (save_infcall_control_state): Use save_selected_frame.
1526 (restore_selected_frame): Delete.
1527 (restore_infcall_control_state): Use restore_selected_frame.
1528 * stack.c (select_frame_command_core, frame_command_core): Use
1529 get_selected_frame.
1530 * thread.c (restore_selected_frame): Rename to ...
1531 (lookup_selected_frame): ... this and make extern. Select the
1532 current frame if the frame level is -1.
1533 (scoped_restore_current_thread::restore): Also restore the
1534 language.
1535 (scoped_restore_current_thread::~scoped_restore_current_thread):
1536 Don't try/catch.
1537 (scoped_restore_current_thread::scoped_restore_current_thread):
1538 Save the language as well. Use save_selected_frame.
1539
58103c33
SM
15402020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1541
1542 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
1543 documentation.
1544 * gdbarch.h: Re-generate.
1545
40a53766
SM
15462020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1547
1548 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
1549 parameter.
1550 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
1551 Likewise.
1552 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1553 Likewise.
1554 * arch-utils.c (default_displaced_step_hw_singlestep):
1555 Likewise.
1556 * arch-utils.h (default_displaced_step_hw_singlestep):
1557 Likewise.
1558 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
1559 Likewise.
1560 * s390-tdep.c (s390_displaced_step_hw_singlestep):
1561 Likewise.
1562 * gdbarch.c: Re-generate.
1563 * gdbarch.h: Re-generate.
1564 * infrun.c (resume_1): Adjust.
1565
8407f91b
TT
15662020-10-29 Tom Tromey <tom@tromey.com>
1567
1568 * progspace.c (program_space::~program_space): Don't call
1569 exec_close.
1570
5008b3b2
TT
15712020-10-29 Tom Tromey <tom@tromey.com>
1572
1573 * exec.c (exec_target::close): Don't change current program
1574 space.
1575
d9eebde0
TT
15762020-10-29 Tom Tromey <tom@tromey.com>
1577
1578 * symfile.c (add_symbol_file_command): Update.
1579 * exec.c (program_space::add_target_sections): Rename.
1580 * symfile-mem.c (symbol_file_add_from_memory): Update.
1581 * progspace.h (struct program_space) <add_target_sections>:
1582 Declare new overload.
1583 * exec.h (add_target_sections_of_objfile): Don't declare.
1584
3769e227
TT
15852020-10-29 Tom Tromey <tom@tromey.com>
1586
1587 * solib.c (solib_map_sections): Update.
1588 * exec.c (program_space::add_target_sections): Now a method.
1589 (exec_file_attach): Update.
1590 * exec.h (add_target_sections): Don't declare.
1591 * progspace.h (struct program_space) <add_target_sections>:
1592 Declare.
1593
2a3f84af
TT
15942020-10-29 Tom Tromey <tom@tromey.com>
1595
1596 * progspace.h (struct program_space) <remove_target_sections>:
1597 Declare.
1598 * exec.c (program_space::remove_target_sections): Now a method.
1599 * exec.h (remove_target_sections): Don't declare.
1600
004eecfd
TT
16012020-10-29 Tom Tromey <tom@tromey.com>
1602
1603 * inferior.c (delete_inferior): Update.
1604 * progspace.c (program_space::empty): Rename from
1605 program_space_empty_p. Return bool.
1606 * progspace.h (struct program_space) <empty>: New method.
1607 (program_space_empty_p): Don't declare.
1608
e39fb971
TT
16092020-10-29 Tom Tromey <tom@tromey.com>
1610
1611 * progspace.c (program_space::~program_space): Don't call
1612 clear_program_space_solib_cache.
1613 (program_space::clear_solib_cache): Rename from
1614 clear_solib_cache.
1615 * solib.c (handle_solib_event): Update.
1616 * progspace.h (struct program_space) <clear_solib_cache>: New
1617 method.
1618 (clear_program_space_solib_cache): Don't declare.
1619
a42d7dd8
TT
16202020-10-29 Tom Tromey <tom@tromey.com>
1621
1622 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1623 * target.c (info_target_command): Update.
1624 * symfile.c (syms_from_objfile_1, finish_new_objfile)
1625 (symbol_file_clear, reread_symbols): Update.
1626 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
1627 * stabsread.c (scan_file_globals): Update.
1628 * solib.c (update_solib_list): Update.
1629 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
1630 (svr4_fetch_objfile_link_map, enable_break)
1631 (svr4_relocate_main_executable)
1632 (svr4_iterate_over_objfiles_in_search_order): Update.
1633 * solib-frv.c (lm_base, enable_break)
1634 (frv_relocate_main_executable): Update.
1635 (main_got, frv_fdpic_find_canonical_descriptor): Update.
1636 (frv_fetch_objfile_link_map): Update.
1637 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
1638 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
1639 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
1640 * remote.c (remote_target::get_offsets): Update.
1641 (remote_target::start_remote)
1642 (extended_remote_target::post_attach): Update.
1643 * objfiles.c (entry_point_address_query): Update.
1644 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
1645 * minsyms.c (get_symbol_leading_char): Update.
1646 * frame.c (inside_main_func): Update.
1647 * progspace.h (symfile_objfile): Remove macro.
1648
19f6550e
TT
16492020-10-29 Tom Tromey <tom@tromey.com>
1650
1651 * exec.c (exec_file_attach): Update.
1652 * progspace.c (program_space::exec_close): Update.
1653 * progspace.h (struct program_space) <ebfd>: Now a
1654 gdb_bfd_ref_ptr.
1655 <set_exec_bfd>: Change argument type.
1656 <exec_bfd>: Update.
1657
7e10abd1
TT
16582020-10-29 Tom Tromey <tom@tromey.com>
1659
1660 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1661 * symfile.c (reread_symbols): Update.
1662 * symfile-mem.c (add_symbol_file_from_memory_command)
1663 (add_vsyscall_page): Update.
1664 * source-cache.c (source_cache::get_plain_source_lines): Update.
1665 * solib-svr4.c (find_program_interpreter, elf_locate_base)
1666 (svr4_current_sos_direct, svr4_exec_displacement)
1667 (svr4_relocate_main_executable): Update.
1668 (svr4_iterate_over_objfiles_in_search_order): Update.
1669 * solib-frv.c (enable_break2, enable_break): Update.
1670 * solib-dsbt.c (lm_base, enable_break): Update.
1671 * solib-darwin.c (find_program_interpreter)
1672 (darwin_solib_create_inferior_hook): Update.
1673 * sol-thread.c (rw_common, ps_pdmodel): Update.
1674 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
1675 * remote.c (compare_sections_command)
1676 (remote_target::trace_set_readonly_regions): Update.
1677 * remote-sim.c (get_sim_inferior_data)
1678 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
1679 (gdbsim_target_open, gdbsim_target::files_info): Update.
1680 * exec.h (exec_bfd): Remove macro.
1681 * progspace.c (initialize_progspace): Update.
1682 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
1683 Update.
1684 * nto-procfs.c (nto_procfs_target::post_attach)
1685 (nto_procfs_target::create_inferior): Update.
1686 * maint.c (maintenance_info_sections): Update.
1687 * linux-thread-db.c (thread_db_target::get_thread_local_address):
1688 Update.
1689 * infcmd.c (post_create_inferior): Update.
1690 * gcore.c (default_gcore_arch, default_gcore_target): Update.
1691 (objfile_find_memory_regions): Update.
1692 * exec.c (validate_exec_file, exec_file_attach)
1693 (exec_read_partial_read_only, print_section_info): Update.
1694 * corelow.c (core_target_open): Update.
1695 * corefile.c (reopen_exec_file, validate_files): Update.
1696 * arm-tdep.c (gdb_print_insn_arm): Update.
1697 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
1698 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
1699 methods.
1700
b55221ab
TT
17012020-10-29 Tom Tromey <tom@tromey.com>
1702
1703 * progspace.h (current_target_sections): Remove macro.
1704 * solib-svr4.c (scan_dyntag): Update.
1705 * solib-dsbt.c (scan_dyntag): Update.
1706 * exec.c (exec_target::close): Update.
1707 (add_target_sections, add_target_sections_of_objfile)
1708 (remove_target_sections, exec_target::get_section_table)
1709 (exec_target::files_info, set_section_command)
1710 (exec_set_section_address, exec_target::has_memory)
1711 (exec_target::has_memory): Update.
1712
5a36e715
TT
17132020-10-29 Tom Tromey <tom@tromey.com>
1714
1715 * source-cache.c (source_cache::get_plain_source_lines): Use
1716 current_program_space.
1717 * corefile.c (reopen_exec_file): Use current_program_space.
1718 * exec.c (exec_file_attach): Use current_program_space.
1719 * exec.h (exec_bfd_mtime): Remove.
1720
784c8592
TT
17212020-10-29 Tom Tromey <tom@tromey.com>
1722
1723 * gcore.c (default_gcore_mach): Remove.
1724 (create_gcore_bfd): Update.
1725
8a4f1402
TT
17262020-10-29 Tom Tromey <tom@tromey.com>
1727
1728 * progspace.c (program_space::exec_close): New method, from
1729 exec_close in exec.c.
1730 * exec.c (exec_close): Move to progspace.c.
1731 (exec_target::close, exec_file_attach): Update.
1732 * progspace.h (struct program_space) <exec_close>: Declare
1733 method.
1734
c20cb686
TT
17352020-10-29 Tom Tromey <tom@tromey.com>
1736
1737 * progspace.h (struct program_space) <exec_filename>: Rename from
1738 pspace_exec_filename. Now a unique_xmalloc_ptr.
1739 * inferior.c (print_selected_inferior): Update.
1740 (print_inferior): Update.
1741 * mi/mi-main.c (print_one_inferior): Update.
1742 * exec.h (exec_filename): Remove macro.
1743 * corefile.c (get_exec_file): Update.
1744 * exec.c (exec_close): Update.
1745 (exec_file_attach): Update.
1746 * progspace.c (clone_program_space): Update.
1747 (print_program_space): Update.
1748
6be2a9ab
TT
17492020-10-29 Tom Tromey <tom@tromey.com>
1750
1751 * target-section.h (struct target_section): Add constructor.
1752 * exec.c (build_section_table, add_target_sections_of_objfile):
1753 Update.
1754 * corelow.c (core_target::build_file_mappings): Update.
1755
cfaa8f76
TBA
17562020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1757
1758 PR gdb/19318
1759 * inferior.c (detach_inferior_command): Restore the current thread.
1760 (kill_inferior_command): Ditto.
1761
1b00ef06
TV
17622020-10-28 Tom de Vries <tdevries@suse.de>
1763
1764 PR symtab/26772
1765 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
1766 map, check it in the "best match" loop.
1767
7f40ce1a
SM
17682020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1769
1770 * m32c-tdep.c: Remove unused includes.
1771
5eb9e3f5
SM
17722020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1773
1774 * xtensa-tdep.c: Remove includes.
1775
b1d4d8d1
TBA
17762020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1777
1778 * breakpoint.c (struct condition_command_opts): New struct.
1779 (condition_command_option_defs): New static global.
1780 (make_condition_command_options_def_group): New function.
1781 (condition_completer): Update to consider the '-force' flag.
1782 (condition_command): Use gdb::option for the '-force' flag.
1783
bd24c5d6
TV
17842020-10-27 Tom de Vries <tdevries@suse.de>
1785
1786 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
1787 symbols in section check.
1788
61eb46a4
TV
17892020-10-27 Tom de Vries <tdevries@suse.de>
1790
1791 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
1792
733d554a
TBA
17932020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1794
1795 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
1796 * breakpoint.c: Update the help text of the 'condition' and 'break'
1797 commands.
1798 (set_breakpoint_condition): Take a new bool parameter
1799 to control whether condition definition should be forced even when
1800 the condition expression is invalid in all of the current locations.
1801 (condition_command): Update the call to 'set_breakpoint_condition'.
1802 (find_condition_and_thread): Take the "-force-condition" flag into
1803 account.
1804 * linespec.c (linespec_keywords): Add "-force-condition" as an
1805 element.
1806 (FORCE_KEYWORD_INDEX): New #define.
1807 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
1808 as a keyword.
1809 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
1810 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
1811 * python/py-breakpoint.c (bppy_set_condition): Ditto.
1812 * NEWS: Mention the changes to the 'break' and 'condition' commands.
1813
b5fa468f
TBA
18142020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1815
1816 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
1817 * breakpoint.c (set_breakpoint_location_condition): New function.
1818 (set_breakpoint_condition): Disable a breakpoint location if parsing
1819 the condition string gives an error.
1820 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
1821 (build_target_condition_list): Ditto.
1822 (build_target_command_list): Ditto.
1823 (build_bpstat_chain): Ditto.
1824 (print_one_breakpoint_location): Ditto.
1825 (print_one_breakpoint): Ditto.
1826 (breakpoint_1): Ditto.
1827 (bp_location::bp_location): Ditto.
1828 (locations_are_equal): Ditto.
1829 (update_breakpoint_locations): Ditto.
1830 (enable_disable_bp_num_loc): Ditto.
1831 (init_breakpoint_sal): Use set_breakpoint_location_condition.
1832 (find_condition_and_thread_for_sals): New static function.
1833 (create_breakpoint): Call find_condition_and_thread_for_sals.
1834 (location_to_sals): Call find_condition_and_thread_for_sals instead
1835 of find_condition_and_thread.
1836
1c47ec3e
TV
18372020-10-26 Tom de Vries <tdevries@suse.de>
1838
1839 * dwarf2/read.c (process_full_comp_unit): Call
1840 dwarf2_find_base_address.
1841
6390859c
TT
18422020-10-26 Tom Tromey <tromey@adacore.com>
1843
1844 * gdbtypes.c (create_range_type): Revert previous patch. Add
1845 comment.
1846
d744f0f9
PA
18472020-10-26 Pedro Alves <pedro@palves.net>
1848
1849 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
1850 (my_waitpid): Use gdb::handle_eintr.
1851
006811bc
SM
18522020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
1853
1854 * acinclude.m4: Update ptrace.m4 path.
1855 * ptrace.m4: Moved to gdbsupport.
1856
c75e31a1
SM
18572020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1858
1859 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
1860 instead of target_gdbarch.
1861
32495661
SM
18622020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1863
1864 * jit.c (jit_reader_load_command): Pass current inferior.
1865 (jit_inferior_init): Change parameter type to inferior, use it.
1866 (jit_inferior_created): Remove.
1867 (jit_inferior_created_hook): Pass inferior parameter down.
1868 (_initialize_jit): Use jit_inferior_created_hook instead of
1869 jit_inferior_created.
1870 * jit.h (jit_inferior_created_hook): Add inferior parameter.
1871 * infrun.c (follow_exec): Pass inferior to
1872 jit_inferior_created_hook.
1873
3f66685e
SM
18742020-10-24 Simon Marchi <simon.marchi@efficios.com>
1875
1876 * linux-thread-db.c (check_pid_namespace_match): Add inferior
1877 parameter and use it.
1878 (thread_db_inferior_created): Pass inferior argument.
1879
a0ff652f
SM
18802020-10-24 Simon Marchi <simon.marchi@efficios.com>
1881
1882 * aix-thread.c (aix_thread_inferior_created): Add inferior
1883 parameter.
1884 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
1885 * dummy-frame.c (cleanup_dummy_frames): Likewise.
1886 * jit.c (jit_inferior_created): Likewise.
1887 * linux-thread-db.c (thread_db_inferior_created): Likewise.
1888 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
1889 * observable.h (inferior_created): Likewise.
1890 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
1891 * symfile-mem.c (add_vsyscall_page): Likewise.
1892 * infcmd.c (post_create_inferior): Pass inferior argument.
1893
3c67532c
JB
18942020-10-24 Joel Brobecker <brobecker@adacore.com>
1895
1896 GDB 10.1 released.
1897
8747316e
JB
18982020-10-23 Joel Brobecker <brobecker@adacore.com>
1899
1900 * ada-typeprint.c (ada_print_type): Remove superfluous second call
1901 to ada_check_typedef.
1902
1a0ea399
AB
19032020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1904
1905 * f-exp.y (f_parse): Rename to...
1906 (f_language::parser): ...this.
1907 * f-lang.c (f_get_encoding): Rename to...
1908 (f_language::get_encoding): ...this.
1909 (f_op_print_tab): Rename to...
1910 (f_language::op_print_tab): ...this.
1911 (exp_descriptor_f): Rename to...
1912 (f_language::exp_descriptor_tab): ...this.
1913 (class f_language): Moved to f-lang.h.
1914 (f_language::language_arch_info): New function, moved out of class
1915 declaration.
1916 (f_language::search_name_hash): Likewise.
1917 (f_language::lookup_symbol_nonlocal): Likewise.
1918 (f_language::get_symbol_name_matcher_inner): Likewise.
1919 * f-lang.h: Add 'valprint.h' include.
1920 (class f_language): Moved here from f-lang.c.
1921 * f-typeprint.c (f_type_print_args): Delete commented out
1922 declaration.
1923 (f_print_typedef): Rename to...
1924 (f_language::print_typedef): ...this.
1925 (f_print_type): Rename to...
1926 (f_language::print_type): ...this.
1927 (f_type_print_varspec_prefix): Delete declaration and rename to...
1928 (f_language::f_type_print_varspec_prefix): ...this.
1929 (f_type_print_varspec_suffix): Delete declaration and rename to...
1930 (f_language::f_type_print_varspec_suffix): ...this.
1931 (f_type_print_base): Delete declaration and rename to...
1932 (f_language::f_type_print_base): ...this.
1933 * f-valprint.c (f_value_print_inner): Rename to...
1934 (f_language::value_print_inner): ...this.
1935 * parse.c: Delete 'f-lang.h' include.
1936
88cefd9b
AB
19372020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1938
1939 * language.h (language_defn::print_type): Add variable names in
1940 declaration, and update header comment.
1941
5399db93
AB
19422020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1943
1944 * ada-lang.c (ada_language::demangle): Rename to...
1945 (ada_language::demangle_symbol): ...this.
1946 * c-lang.c (cplus_language::demangle): Rename to...
1947 (cplus_language::demangle_symbol): ...this.
1948 * d-lang.c (d_language::demangle): Rename to...
1949 (d_language::demangle_symbol): ...this.
1950 * f-lang.c (f_language::demangle): Rename to...
1951 (f_language::demangle_symbol): ...this.
1952 * go-lang.c (go_language::demangle): Rename to...
1953 (go_language::demangle_symbol): ...this.
1954 * language.c (language_demangle): Update call to demangle_symbol.
1955 (auto_or_unknown_language::demangle): Rename to...
1956 (auto_or_unknown_language::demangle_symbol): ...this.
1957 * language.h (language_defn::demangle): Rename to...
1958 (language_defn::demangle_symbol): ...this.
1959 * objc-lang.c (objc_language::demangle): Rename to...
1960 (objc_language::demangle_symbol): ...this.
1961 * rust-lang.c (rust_language::demangle): Rename to...
1962 (rust_language::demangle_symbol): ...this.
1963
4b2f86ef
AB
19642020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1965
1966 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
1967 (iterate_over_file_blocks): Replace use of macro with the macros
1968 definition.
1969
e74b39de
AB
19702020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1971
1972 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
1973 * valprint.c (maybe_print_array_index): Replace use of macro with
1974 the macros definition.
1975
00c696a6
AB
19762020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1977
1978 * ada-lang.c (ada_language::print_array_index): Call value_print
1979 directly.
1980 * language.c (language_defn::print_array_index): Likewise.
1981 * language.h (LA_VALUE_PRINT): Delete.
1982 * valprint.c (value_print): Call value_print on the
1983 current_language directly.
1984
d3b67c56
AB
19852020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1986
1987 * language.h (LA_PRINT_TYPEDEF): Delete.
1988 * typeprint.c (typedef_print): Call print_typedef directly on the
1989 current_language object.
1990
790e2a12
AB
19912020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1992
1993 * m2-exp.y (m2_parse): Rename to...
1994 (m2_language::parser): ...this. Update function signature.
1995 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
1996 (m2_op_print): Rename to...
1997 (m2_language::op_print_tab): ...this, and make const.
1998 (exp_descriptor_modula2): Rename to...
1999 (m2_language::exp_descriptor_modula2): ...this.
2000 (class m2_language): Move to m2-lang.h.
2001 (m2_language::language_arch_info): New function, moved out of
2002 class declaration.
2003 (m2_language::printchar): New function, body from m2_printchar.
2004 (m2_language::printstr): New function, moved out of class
2005 declaration.
2006 (m2_language::emitchar): Likewise.
2007 * m2-lang.h (m2_parse): Delete declaration.
2008 (m2_print_typedef): Delete declaration.
2009 (m2_value_print_inner): Delete declaration.
2010 (class m2_language): Class declaration moved from m2-lang.c,
2011 larger functions are left in m2-lang.c.
2012 * m2-typeprint.c (m2_print_typedef): Rename to...
2013 (m2_language::print_typedef): ...this, and update function
2014 signature.
2015 * m2-valprint.c (m2_value_print_inner): Rename to...
2016 (m2_language::value_print_inner): ...this, replace use of
2017 LA_PRINT_STRING with a direct call to printstr member function,
2018 and update recursive call.
2019
b01175fc
AB
20202020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2021
2022 * language.c (default_is_string_type_p): Delete, implementation
2023 moved into auto_or_unknown_language::is_string_type_p.
2024 (unk_op_print_tab): Moved into
2025 auto_or_unknown_language::opcode_print_table.
2026 (unknown_language_arch_info): Delete, implementation moved into
2027 auto_or_unknown_language::language_arch_info.
2028 (class auto_or_unknown_language): New class, member functions
2029 copied from unknown_language class, with some updates.
2030 (class unknown_language): Most member functions moved into
2031 auto_or_unknown_language class. Inherit from
2032 auto_or_unknown_language class.
2033 (class auto_language): Inherit from auto_or_unknown_language.
2034 Delete most member functions.
2035
1a97fe8c
HD
20362020-10-22 Hannes Domani <ssbssa@yahoo.de>
2037
2038 * stabsread.c (read_member_functions): Remove gdb_assert.
2039
6b9d0dfd
HD
20402020-10-22 Hannes Domani <ssbssa@yahoo.de>
2041
2042 * gdbtypes.c (init_complex_type): Check target type name.
2043
4b4bb603
SM
20442020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2045
2046 * target-debug.h (target_debug_print_struct_target_ops_p):
2047 Remove.
2048 (target_debug_print_async_callback_ftype_p): Remove.
2049 (target_debug_print_struct_trace_state_variable_p): Remove.
2050 (target_debug_print_struct_traceframe_info_p): Remove.
2051 (target_debug_print_VEC__btrace_block_s__pp): Remove.
2052 (target_debug_print_enum_btrace_format): Remove.
2053 (target_debug_print_enum_info_proc_what): Remove.
2054 (target_debug_print_thread_info_pp): Remove.
2055
24f5300a
SM
20562020-10-22 Simon Marchi <simon.marchi@efficios.com>
2057
2058 * target.h (struct target_ops) <make_corefile_notes>:
2059 Change return type to unique pointer.
2060 * target.c (dummy_make_corefile_notes): Likewise.
2061 * exec.c (struct exec_target) <make_corefile_notes>:
2062 Likewise.
2063 (exec_target::make_corefile_notes): Likewise.
2064 * procfs.c (class procfs_target) <make_corefile_notes>:
2065 Likewise.
2066 (procfs_do_thread_registers): Adjust to unique pointer.
2067 (struct procfs_corefile_thread_data): Add constructor.
2068 <note_data>: Change type to unique pointer.
2069 (procfs_corefile_thread_callback): Adjust to unique pointer.
2070 (procfs_target::make_corefile_notes): Change return type to
2071 unique pointer.
2072 * target-delegates.c: Re-generate.
2073 * gcore.c (write_gcore_file_1): Adjust.
2074 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
2075 New.
2076
5fb4027f
TV
20772020-10-22 Tom de Vries <tdevries@suse.de>
2078
2079 * block.c (find_block_in_blockvector): Make sure the returned block
2080 contains pc.
2081
4a636814
SM
20822020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2083
2084 PR gdb/26693
2085 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
2086 parameter.
2087 (load_cu): Pass existing CU.
2088 (process_imported_unit_die): Likewise.
2089 (follow_die_offset): Likewise.
2090
1bd57575
LM
20912020-10-22 Luis Machado <luis.machado@linaro.org>
2092
2093 * corelow.c (core_target::xfer_partial): Also check for an empty
2094 m_core_unavailable_mappings vector.
2095
6b4c676c
AB
20962020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2097
2098 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
2099 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
2100 * f-exp.y (arglist): Allow for a series of subranges.
2101 (subrange): Add cases for subranges with strides.
2102 * f-lang.c (value_f90_subarray): Catch use of array strides and
2103 throw an error.
2104 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
2105
f2d8e4c5
AB
21062020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2107
2108 * expprint.c (print_subexp_standard): Change enum range_type to
2109 range_flag and rename variables to match.
2110 (dump_subexp_body_standard): Likewise.
2111 * expression.h (enum range_type): Rename to...
2112 (enum range_flag): ...this.
2113 (range_types): Rename to...
2114 (range_flags): ...this.
2115 * f-lang.c (value_f90_subarray): Change enum range_type to
2116 range_flag and rename variables to match.
2117 * parse.c (operator_length_standard): Likewise.
2118 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
2119 range_type to range_flag.
2120 * rust-lang.c (rust_evaluate_funcall): Likewise.
2121 (rust_range): Likewise.
2122 (rust_compute_range): Likewise.
2123 (rust_subscript): Likewise.
2124
2f1b18db
AB
21252020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2126
2127 * expprint.c (print_subexp_standard): Update to reflect changes to
2128 enum range_type.
2129 (dump_subexp_body_standard): Likewise.
2130 * expression.h (enum range_type): Convert to a bit field enum, and
2131 make the enum unsigned.
2132 * f-exp.y (subrange): Update to reflect changes to enum
2133 range_type.
2134 * f-lang.c (value_f90_subarray): Likewise.
2135 * parse.c (operator_length_standard): Likewise.
2136 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
2137 * rust-lang.c (rust_range): Likewise.
2138 (rust_compute_range): Likewise.
2139 (rust_subscript): Likewise.
2140
a46d1843
SM
21412020-10-21 Simon Marchi <simon.marchi@efficios.com>
2142
2143 * infrun.c (displaced_step_in_progress_thread): Fix comment.
2144 (displaced_step_in_progress): Fix comment.
2145
c21f37a8
SM
21462020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
2147
2148 * gdbarch.sh (make_corefile_notes): Return unique pointer.
2149 * gdbarch.c: Re-generate.
2150 * gdbarch.h: Re-generate.
2151 * gcore.c (write_gcore_file_1): Adjust.
2152 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
2153 constructor.
2154 <note_data>: Change type to unique pointer.
2155 <abort_iteration>: Change type to bool.
2156 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
2157 (fbsd_collect_thread_registers): Return void, adjust.
2158 (struct fbsd_corefile_thread_data): Add construtor.
2159 <note_data>: Change type to unique pointer.
2160 (fbsd_corefile_thread): Adjust.
2161 (fbsd_make_corefile_notes): Return unique pointer, adjust.
2162 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
2163 to unique pointer, adjust.
2164 (struct linux_collect_regset_section_cb_data): Add constructor.
2165 <note_data>: Change type to unique pointer.
2166 <abort_iteration>: Change type to bool.
2167 (linux_collect_thread_registers): Return void, adjust.
2168 (struct linux_corefile_thread_data): Add constructor.
2169 <note_data>: Change type to unique pointer.
2170 (linux_corefile_thread): Adjust.
2171 (linux_make_corefile_notes): Return unique pointer, adjust.
2172
07fbbd01
SM
21732020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2174
2175 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
2176 * gdbarch.c: Re-generate.
2177 * gdbarch.h: Re-generate.
2178 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
2179 bool.
2180 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
2181 Likewise.
2182 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
2183 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
2184 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
2185 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
2186
39535193
SM
21872020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2188
2189 * gdbarch.sh: Make generated predicates return bool.
2190 * gdbarch.c: Re-generate.
2191 * gdbarch.h: Re-generate.
2192
ad523d01
TT
21932020-10-20 Tom Tromey <tom@tromey.com>
2194
2195 * varobj-iter.h (struct varobj_item): Remove typedef.
2196
c4464ade
SM
21972020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2198
2199 * infrun.c (currently_stepping): Change int to bool
2200 (maybe_software_singlestep): Likewise.
2201 (show_stop_on_solib_events): Likewise.
2202 (stepping_past_nonsteppable_watchpoint): Likewise.
2203 (displaced_step_in_progress_any_inferior): Likewise.
2204 (displaced_step_in_progress_thread): Likewise.
2205 (keep_going_stepped_thread): Likewise.
2206 (thread_still_needs_step_over): Likewise.
2207 (start_step_over): Likewise.
2208 (do_target_resume): Likewise.
2209 (resume_1): Likewise.
2210 (clear_proceed_status): Likewise.
2211 (thread_still_needs_step_over_bp): Likewise.
2212 (proceed): Likewise.
2213 (switch_back_to_stepped_thread): Likewise.
2214 (adjust_pc_after_break): Likewise.
2215 (stepped_in_from): Likewise.
2216 (handle_stop_requested): Likewise.
2217 (handle_syscall_event): Likewise.
2218 (handle_no_resumed): Likewise.
2219 (handle_inferior_event): Likewise.
2220 (finish_step_over): Likewise.
2221 (handle_signal_stop): Likewise.
2222 (process_event_stop_test): Likewise.
2223
2eb20436
SM
22242020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2225
2226 * infrun.c (get_displaced_stepping_state): Fix comment.
2227
e0c45ded
AS
22282020-10-20 Andreas Schwab <schwab@linux-m68k.org>
2229
2230 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
2231
22cc388e
TT
22322020-10-19 Tom Tromey <tromey@adacore.com>
2233
2234 PR tui/26719
2235 * tui/tui-winsource.h (struct tui_source_window_base)
2236 <refresh_window>: Rename from refresh_pad.
2237 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
2238 Rename from refresh_pad.
2239 (tui_source_window_base::show_source_content)
2240 (tui_source_window_base::do_scroll_horizontal): Update.
2241
3c6eb4d4
TBA
22422020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2243
2244 * thread.c (_initialize_thread): Fine-tune the help text of
2245 'info threads'.
2246
26703721
TBA
22472020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2248
2249 * frame.c: Remove the unused 'uinteger_option_def' type alias.
2250
61c26be8
MS
22512020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
2252
2253 * breakpoint.c (handle_jit_event): Add an argument, change how
2254 `jit_event_handler` is called.
2255
932539d7
TT
22562020-10-17 Tom Tromey <tom@tromey.com>
2257
2258 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
2259 (scan_xcoff_symtab): Update.
2260 * psymtab.h (class psymtab_storage) <global_psymbols,
2261 static_psymbols, current_global_psymbols,
2262 current_static_psymbols>: Remove.
2263 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
2264 (match_partial_symbol, lookup_partial_symbol): Update.
2265 (print_partial_symbols): Change parameters.
2266 (dump_psymtab, recursively_search_psymtabs)
2267 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
2268 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
2269 (concat): Remove.
2270 (end_psymtab_common): Simplify.
2271 (append_psymbol_to_list): Change parameters.
2272 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
2273 (init_psymbol_list): Simplify.
2274 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2275 * psympriv.h (struct partial_symtab) <empty>: New method.
2276 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
2277 Remove.
2278 <global_psymbols, static_psymbols>: New members.
2279 <add_psymbol>: New methods.
2280 (add_psymbol_to_list): Don't declare.
2281 (psymbol_placement): Move earlier.
2282 * mdebugread.c (parse_partial_symbols): Update.
2283 (handle_psymbol_enumerators): Change parameters.
2284 (mdebug_expand_psymtab): Update.
2285 * dwarf2/read.c (process_psymtab_comp_unit_reader)
2286 (add_partial_symbol): Update.
2287 * dwarf2/index-write.c (write_psymbols): Change parameters.
2288 (write_one_signatured_type): Update.
2289 (recursively_count_psymbols): Update.
2290 (recursively_write_psymbols): Update.
2291 (class debug_names) <recursively_write_psymbols>: Update.
2292 <write_psymbols>: Change parameters.
2293 <write_one_signatured_type>: Update.
2294 * dbxread.c (read_dbx_symtab): Update.
2295 (dbx_end_psymtab): Use partial_symtab::empty.
2296 * ctfread.c (struct ctf_context) <pst>: New member.
2297 (create_partial_symtab): Set it.
2298 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
2299 (scan_partial_symbols): Use the psymtab's context. Update.
2300
cfabbd35
TT
23012020-10-17 Tom Tromey <tom@tromey.com>
2302
2303 * valprint.c (generic_value_print): Remove comment.
2304 * m2-valprint.c (m2_value_print_inner): Remove comment.
2305 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
2306 type.
2307
520596f2
TV
23082020-10-17 Tom de Vries <tdevries@suse.de>
2309
2310 PR symtab/26317
2311 * source.c (select_source_symtab): Handling sal.symtab == NULL for
2312 symbol main.
2313
76547ab3
TV
23142020-10-14 Tom de Vries <tdevries@suse.de>
2315
2316 PR gdb/26733
2317 * solib.c (solib_contains_address_p): Handle
2318 'solib->sections == nullptr'.
2319
d3a07122
SM
23202020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2321
2322 PR gdb/26642
2323 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
2324 target can't do async.
2325 * target.c (target_wait): Assert that we don't pass
2326 TARGET_WNOHANG to a target that can't async.
2327
1b71cfcf
KR
23282020-10-13 Kamil Rytarowski <n54@gmx.com>
2329
2330 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
2331 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
2332 * alpha-bsd-nat.c: Adjust include.
2333 * alpha-bsd-tdep.h: Adjust comment.
2334 * alpha-nbsd-tdep.c: Rename to ...
2335 * alpha-netbsd-tdep.c: ... this, adjust include.
2336 * amd64-nbsd-nat.c: Rename to ...
2337 * amd64-netbsd-nat.c: ... this, adjust include.
2338 * amd64-nbsd-tdep.c: Rename to ...
2339 * amd64-netbsd-tdep.c: ... this, adjust include.
2340 * amd64-tdep.h: Adjust include.
2341 * arm-nbsd-nat.c: Rename to ...
2342 * arm-netbsd-nat.c: ... this, adjust include.
2343 * arm-nbsd-tdep.c: Rename to ...
2344 * arm-netbsd-tdep.c: ... this, adjust include.
2345 * arm-nbsd-tdep.h: Rename to ...
2346 * arm-netbsd-tdep.h: ... this, adjust include.
2347 * configure.nat: Adjust file lists.
2348 * configure.tgt: Likewise.
2349 * hppa-nbsd-nat.c: Rename to ...
2350 * hppa-netbsd-nat.c: ... this, adjust include.
2351 * hppa-nbsd-tdep.c: Rename to ...
2352 * hppa-netbsd-tdep.c: ... this, adjust include.
2353 * i386-nbsd-nat.c: Rename to ...
2354 * i386-netbsd-nat.c: ... this, adjust include.
2355 * i386-nbsd-tdep.c: Rename to ...
2356 * i386-netbsd-tdep.c: ... this, adjust include.
2357 * m68k-bsd-nat.c: Adjust include.
2358 * mips-nbsd-nat.c: Rename to ...
2359 * mips-netbsd-nat.c: ... this, adjust include.
2360 * mips-nbsd-tdep.c: Rename to ...
2361 * mips-netbsd-tdep.c: ... this, adjust include.
2362 * mips-nbsd-tdep.h: Rename to ...
2363 * mips-netbsd-tdep.h: ... this.
2364 * nbsd-nat.c: Rename to ...
2365 * netbsd-nat.c: ... this, adjust include.
2366 * nbsd-nat.h: Rename to ...
2367 * netbsd-nat.h: ... this, adjust include.
2368 * nbsd-tdep.c: Rename to ...
2369 * netbsd-tdep.c: ... this, adjust include.
2370 * nbsd-tdep.h: Rename to ...
2371 * netbsd-tdep.h: ... this.
2372 * ppc-nbsd-nat.c: Rename to ...
2373 * ppc-netbsd-nat.c: ... this, adjust include.
2374 * ppc-nbsd-tdep.c: Rename to ...
2375 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
2376 * ppc-nbsd-tdep.h: Rename to ...
2377 * ppc-netbsd-tdep.h: ... this.
2378 * sh-nbsd-nat.c: Rename to ...
2379 * sh-netbsd-nat.c: ... this, adjust include.
2380 * sh-nbsd-tdep.c: Rename to ...
2381 * sh-netbsd-tdep.c: ... this, adjust include.
2382 * sparc-nbsd-nat.c: Rename to ...
2383 * sparc-netbsd-nat.c: ... this.
2384 * sparc-nbsd-tdep.c: Rename to ...
2385 * sparc-netbsd-tdep.c: ... this, adjust include.
2386 * sparc64-nbsd-nat.c: Rename to ...
2387 * sparc64-netbsd-nat.c: ... this.
2388 * sparc64-nbsd-tdep.c: Rename to ...
2389 * sparc64-netbsd-tdep.c: ... this, adjust include.
2390 * sparc64-tdep.h: Adjust comment.
2391 * vax-bsd-nat.c: Adjust include.
2392 * vax-nbsd-tdep.c: Rename to ...
2393 * vax-netbsd-tdep.c: ... this, adjust include.
2394
d7a78e5c
TT
23952020-10-12 Tom Tromey <tom@tromey.com>
2396
2397 * target.h (struct target_ops) <get_section_table>: Update.
2398 (target_get_section_table): Update.
2399 * target.c (target_get_section_table, target_section_by_addr)
2400 (memory_xfer_partial_1): Update.
2401 * target-section.h (target_section_table): Now an alias.
2402 * target-delegates.c: Rebuild.
2403 * target-debug.h (target_debug_print_target_section_table_p):
2404 Rename from target_debug_print_struct_target_section_table_p.
2405 * symfile.c (build_section_addr_info_from_section_table): Update.
2406 * solib.c (solib_map_sections, solib_contains_address_p): Update.
2407 * solib-svr4.c (scan_dyntag): Update.
2408 * solib-dsbt.c (scan_dyntag): Update.
2409 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2410 Update.
2411 * record-full.c (record_full_core_target::xfer_partial): Update.
2412 * progspace.h (struct program_space) <target_sections>: Update.
2413 * exec.h (print_section_info): Update.
2414 * exec.c (exec_target::close, build_section_table)
2415 (add_target_sections, add_target_sections_of_objfile)
2416 (remove_target_sections, exec_on_vfork)
2417 (section_table_available_memory)
2418 (section_table_xfer_memory_partial)
2419 (exec_target::get_section_table, exec_target::xfer_partial)
2420 (print_section_info, set_section_command)
2421 (exec_set_section_address, exec_target::has_memory): Update.
2422 * corelow.c (core_target::build_file_mappings)
2423 (core_target::xfer_partial, core_target::info_proc_mappings)
2424 (core_target::info_proc_mappings): Update.
2425 * bfd-target.c (class target_bfd): Update
2426
eda214ce
TT
24272020-10-12 Tom Tromey <tom@tromey.com>
2428
2429 * progspace.c (program_space::~program_space): Don't call
2430 clear_section_table.
2431 * exec.h (clear_section_table): Don't declare.
2432 * exec.c (exec_target::close): Update.
2433 (clear_section_table): Remove.
2434
91840ee3
TT
24352020-10-12 Tom Tromey <tom@tromey.com>
2436
2437 * exec.c (add_target_sections_of_objfile): Simplify.
2438
2d128614
TT
24392020-10-12 Tom Tromey <tom@tromey.com>
2440
2441 * solib.c (solib_map_sections): Update.
2442 * record-full.c (record_full_core_open_1): Update.
2443 * exec.h (build_section_table): Return a target_section_table.
2444 * exec.c (exec_file_attach): Update.
2445 (build_section_table): Return a target_section_table.
2446 * corelow.c (core_target::core_target): Update.
2447 * bfd-target.c (target_bfd::target_bfd): Update.
2448
bb2a6777
TT
24492020-10-12 Tom Tromey <tom@tromey.com>
2450
2451 * target.c (target_section_by_addr, memory_xfer_partial_1):
2452 Update.
2453 * target-section.h (struct target_section_table): Use
2454 std::vector.
2455 * symfile.h (build_section_addr_info_from_section_table): Take a
2456 target_section_table.
2457 * symfile.c (build_section_addr_info_from_section_table): Take a
2458 target_section_table.
2459 * solist.h (struct so_list) <sections>: Change type.
2460 <sections_end>: Remove.
2461 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
2462 (solib_contains_address_p): Update.
2463 * solib-svr4.c (scan_dyntag): Update.
2464 * solib-dsbt.c (scan_dyntag): Update.
2465 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2466 Update.
2467 * record-full.c (record_full_core_start, record_full_core_end):
2468 Remove.
2469 (record_full_core_sections): New global.
2470 (record_full_core_open_1, record_full_core_target::xfer_partial):
2471 Update.
2472 * exec.h (build_section_table, section_table_xfer_memory_partial)
2473 (add_target_sections): Take a target_section_table.
2474 * exec.c (exec_file_attach, clear_section_table): Update.
2475 (resize_section_table): Remove.
2476 (build_section_table, add_target_sections): Take a
2477 target_section_table.
2478 (add_target_sections_of_objfile, remove_target_sections)
2479 (exec_on_vfork): Update.
2480 (section_table_available_memory): Take a target_section_table.
2481 (section_table_read_available_memory): Update.
2482 (section_table_xfer_memory_partial): Take a target_section_table.
2483 (print_section_info, set_section_command)
2484 (exec_set_section_address, exec_target::has_memory): Update.
2485 * corelow.c (class core_target) <m_core_section_table,
2486 m_core_file_mappings>: Remove braces.
2487 <~core_target>: Remove.
2488 (core_target::core_target): Update.
2489 (core_target::~core_target): Remove.
2490 (core_target::build_file_mappings)
2491 (core_target::xfer_memory_via_mappings)
2492 (core_target::xfer_partial, core_target::info_proc_mappings):
2493 Update.
2494 * bfd-target.c (target_bfd::xfer_partial): Update.
2495 (target_bfd::target_bfd): Update.
2496 (target_bfd::~target_bfd): Remove.
2497
7b466b10
TT
24982020-10-12 Tom Tromey <tom@tromey.com>
2499
2500 * target.h (struct target_section, struct target_section_table):
2501 Move to target-section.h.
2502 * target-section.h: New file.
2503
87a37e5e
PA
25042020-10-12 Pedro Alves <pedro@palves.net>
2505
2506 PR exp/26602
2507 * valops.c (struct struct_field_searcher): New.
2508 (update_search_result): Rename to ...
2509 (struct_field_searcher::update_result): ... this. Simplify
2510 prototype. Record all found fields.
2511 (do_search_struct_field): Rename to ...
2512 (struct_field_searcher::search): ... this. Simplify prototype.
2513 Maintain stack of visited baseclass path. Call update_result for
2514 fields too. Keep searching fields in baseclasses instead of
2515 stopping at the first found field.
2516 (search_struct_field): Use struct_field_searcher. When looking
2517 for fields, report ambiguous access attempts.
2518
9370fd51
AB
25192020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
2520
2521 * frame.c (inside_main_func): Check full symbols as well as
2522 minimal symbols.
2523
59c8a30b
JB
25242020-10-09 Joel Brobecker <brobecker@adacore.com>
2525
2526 * ada-lang.c (advance_wild_match): Rewrite the function's
2527 description. Change the type of target0, t0 and t1 to char.
2528
7c184d33
TT
25292020-10-09 Tom Tromey <tromey@adacore.com>
2530
2531 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
2532
5c4258f4
TT
25332020-10-09 Tom Tromey <tromey@adacore.com>
2534
2535 * ada-lang.h (ada_encode): Return std::string.
2536 * ada-lang.c (ada_encode_1): Return std::string.
2537 (ada_encode): Likewise.
2538 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
2539 Update.
2540 * ada-exp.y (block_lookup, write_var_or_type): Update.
2541
3d87245c
HD
25422020-10-09 Hannes Domani <ssbssa@yahoo.de>
2543
2544 PR exp/26714
2545 * printcmd.c (print_formatted): Handle void results as
2546 unformatted prints.
2547
bbb826f5
AB
25482020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2549
2550 * arch/aarch32.c (aarch32_create_target_description): Release the
2551 target_desc_up as late as possible.
2552 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2553 * arch/amd64.c (amd64_create_target_description): Likewise.
2554 * arch/arc.c (arc_create_target_description): Return a
2555 target_desc_up, don't release it.
2556 * arch/arc.h (arc_create_target_description): Update declaration.
2557 (arc_lookup_target_description): Move target_desc_up into the
2558 cache, and return a borrowed pointer.
2559 * arch/arm.c (arm_create_target_description): Release the
2560 target_desc_up as late as possible.
2561 * arch/i386.c (i386_create_target_description): Likewise.
2562 * arch/riscv.h (riscv_create_target_description): Update
2563 declaration to match definition.
2564 * arch/tic6x.c (tic6x_create_target_description): Release the
2565 target_desc_up as late as possible.
2566
361cb219
AB
25672020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2568
2569 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
2570 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
2571
f5c4b229
JV
25722020-10-09 Jan Vrany <jan.vrany@labware.com>
2573
2574 * source.c (directory_command): Notify observers that "directories"
2575 parameter has changed.
2576
b2701685
TT
25772020-10-08 Tom Tromey <tom@tromey.com>
2578
2579 * cli/cli-cmds.c (print_disassembly): Style function name and
2580 addresses. Add _() wrappers.
2581
ada508b6
SV
25822020-10-08 Shahab Vahedi <shahab@synopsys.com>
2583
2584 * NEWS: Mention ARC support in GDBserver.
2585
51a948fd
AB
25862020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
2587
2588 * arch/aarch32.c (aarch32_create_target_description): Release
2589 unique_ptr returned from allocate_target_description.
2590 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2591 * arch/amd64.c (amd64_create_target_description): Likewise.
2592 * arch/arc.c (arc_create_target_description): Likewise.
2593 * arch/arm.c (arm_create_target_description): Likewise.
2594 * arch/i386.c (i386_create_target_description): Likewise.
2595 * arch/riscv.c (riscv_create_target_description): Update return
2596 type. Handle allocate_target_description returning a unique_ptr.
2597 (riscv_lookup_target_description): Update to handle unique_ptr.
2598 * arch/tic6x.c (tic6x_create_target_description): Release
2599 unique_ptr returned from allocate_target_description.
2600 * features/microblaze-with-stack-protect.c: Regenerate.
2601 * features/microblaze.c: Regenerate.
2602 * features/mips-dsp-linux.c: Regenerate.
2603 * features/mips-linux.c: Regenerate.
2604 * features/mips64-dsp-linux.c: Regenerate.
2605 * features/mips64-linux.c: Regenerate.
2606 * features/nds32.c: Regenerate.
2607 * features/nios2.c: Regenerate.
2608 * features/or1k.c: Regenerate.
2609 * features/rs6000/powerpc-32.c: Regenerate.
2610 * features/rs6000/powerpc-32l.c: Regenerate.
2611 * features/rs6000/powerpc-403.c: Regenerate.
2612 * features/rs6000/powerpc-403gc.c: Regenerate.
2613 * features/rs6000/powerpc-405.c: Regenerate.
2614 * features/rs6000/powerpc-505.c: Regenerate.
2615 * features/rs6000/powerpc-601.c: Regenerate.
2616 * features/rs6000/powerpc-602.c: Regenerate.
2617 * features/rs6000/powerpc-603.c: Regenerate.
2618 * features/rs6000/powerpc-604.c: Regenerate.
2619 * features/rs6000/powerpc-64.c: Regenerate.
2620 * features/rs6000/powerpc-64l.c: Regenerate.
2621 * features/rs6000/powerpc-7400.c: Regenerate.
2622 * features/rs6000/powerpc-750.c: Regenerate.
2623 * features/rs6000/powerpc-860.c: Regenerate.
2624 * features/rs6000/powerpc-altivec32.c: Regenerate.
2625 * features/rs6000/powerpc-altivec32l.c: Regenerate.
2626 * features/rs6000/powerpc-altivec64.c: Regenerate.
2627 * features/rs6000/powerpc-altivec64l.c: Regenerate.
2628 * features/rs6000/powerpc-e500.c: Regenerate.
2629 * features/rs6000/powerpc-e500l.c: Regenerate.
2630 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
2631 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
2632 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
2633 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
2634 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
2635 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
2636 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
2637 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
2638 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
2639 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
2640 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
2641 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
2642 * features/rs6000/powerpc-vsx32.c: Regenerate.
2643 * features/rs6000/powerpc-vsx32l.c: Regenerate.
2644 * features/rs6000/powerpc-vsx64.c: Regenerate.
2645 * features/rs6000/powerpc-vsx64l.c: Regenerate.
2646 * features/rs6000/rs6000.c: Regenerate.
2647 * features/rx.c: Regenerate.
2648 * features/s390-gs-linux64.c: Regenerate.
2649 * features/s390-linux32.c: Regenerate.
2650 * features/s390-linux32v1.c: Regenerate.
2651 * features/s390-linux32v2.c: Regenerate.
2652 * features/s390-linux64.c: Regenerate.
2653 * features/s390-linux64v1.c: Regenerate.
2654 * features/s390-linux64v2.c: Regenerate.
2655 * features/s390-te-linux64.c: Regenerate.
2656 * features/s390-tevx-linux64.c: Regenerate.
2657 * features/s390-vx-linux64.c: Regenerate.
2658 * features/s390x-gs-linux64.c: Regenerate.
2659 * features/s390x-linux64.c: Regenerate.
2660 * features/s390x-linux64v1.c: Regenerate.
2661 * features/s390x-linux64v2.c: Regenerate.
2662 * features/s390x-te-linux64.c: Regenerate.
2663 * features/s390x-tevx-linux64.c: Regenerate.
2664 * features/s390x-vx-linux64.c: Regenerate.
2665 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
2666 from allocate_target_description.
2667 * target-descriptions.c (allocate_target_description): Update
2668 return type.
2669 (print_c_tdesc::visit_pre): Release unique_ptr returned from
2670 allocate_target_description.
2671
485c47e5
TT
26722020-10-07 Tom Tromey <tromey@adacore.com>
2673
2674 * unittests/search-memory-selftests.c: New file.
2675 * Makefile.in (SELFTESTS_SRCS): Add
2676 unittests/search-memory-selftests.c.
2677
3a135a91
TT
26782020-10-07 Tom Tromey <tromey@adacore.com>
2679
2680 PR gdb/16930:
2681 * findcmd.c (_initialize_mem_search): Mention that the range is
2682 inclusive.
2683
4a72de73
TT
26842020-10-07 Tom Tromey <tromey@adacore.com>
2685
2686 * target.h (simple_search_memory): Don't declare.
2687 * target.c (simple_search_memory): Move to gdbsupport.
2688 (default_search_memory): Update.
2689 * remote.c (remote_target::search_memory): Update.
2690
a038ffd8
SM
26912020-10-07 Simon Marchi <simon.marchi@efficios.com>
2692
2693 * Makefile.in (COMPILE): Add CXXFLAGS.
2694 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
2695 (check-headers): Add CXXFLAGS.
2696
cc463201
AK
26972020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
2698
2699 * arc-linux-tdep.h: New file.
2700 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
2701 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
2702 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
2703 arc_linux_gregset, arc_linux_v2_regset,
2704 arc_linux_iterate_over_regset_sections,
2705 arc_linux_core_read_description): Implement.
2706 (arc_linux_init_osabi): Set iterate_over_regset_sections.
2707 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
2708 (arc_gdbarch_features_create): Add.
2709 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
2710
e4bd363f
SV
27112020-10-07 Shahab Vahedi <shahab@synopsys.com>
2712
2713 * arch/arc.h: Rename "arc_gdbarch_features" to
2714 "arc_arch_features".
2715 * arc-tdep.h: Likewise.
2716 * arc-tdep.c: Likewise.
2717
b68bef99
TBA
27182020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2719
2720 * infcmd.c (attach_command): Remove the redundant call to
2721 `clear_proceed_status`.
2722
4641551a
KR
27232020-10-07 Kamil Rytarowski <n54@gmx.com>
2724
2725 * nat/netbsd-nat.c (write_memory, read_memory): Update.
2726
91e5e8db
KR
27272020-10-07 Kamil Rytarowski <n54@gmx.com>
2728
2729 * nat/netbsd-nat.c (write_memory, read_memory): Add.
2730 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
2731 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
2732
64c03bdb
SM
27332020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
2734
2735 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
2736 (_initialize_break_catch_sig): Don't allocate array.
2737
31a8f60f
AB
27382020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
2739
2740 * symtab.c (find_pc_line): Return unmapped addresses when the
2741 requested address is also unmapped.
2742
9e6dbd8b
SM
27432020-10-05 Simon Marchi <simon.marchi@efficios.com>
2744
2745 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
2746 tui/tui-out.h.
2747
a1d217e8
SM
27482020-10-05 Simon Marchi <simon.marchi@efficios.com>
2749
2750 * amd64-windows-tdep.c (amd64_windows_return_value): Use
2751 type::is_vector instead of TYPE_VECTOR.
2752
7d144117
SM
27532020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
2754
2755 * auto-load.c (auto_load_objfile_script_1): Don't use
2756 debugfile_holder as temporary variable when stripping drive
2757 letter.
2758
cd096ec8
HD
27592020-10-05 Hannes Domani <ssbssa@yahoo.de>
2760
2761 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
2762 Add TYPE_CODE_COMPLEX.
2763 (amd64_windows_return_value): Fix types returned via XMM0.
2764
b58e7f72
AH
27652020-10-05 Alan Hayward <alan.hayward@arm.com>
2766
2767 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
2768 AArch64/ARM maintainers.
2769
8d378f27
SM
27702020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
2771
2772 * NEWS: Mention set/show debug event-loop.
2773
d5519913
TT
27742020-10-02 Tom Tromey <tromey@adacore.com>
2775
2776 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
2777 REG_EXTENDED.
2778
18b67edc
SM
27792020-10-02 Simon Marchi <simon.marchi@efficios.com>
2780
2781 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
2782 * procfs.c (procfs_inferior_created): Remove.
2783 (_initialize_procfs): Don't register procfs_inferior_created.
2784
6b01403b
SM
27852020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2786
2787 * async-event.c (invoke_async_signal_handlers): Add debug
2788 print.
2789 (check_async_event_handlers): Likewise.
2790 * event-top.c (show_debug_event_loop): New function.
2791 (_initialize_event_top): Register "set debug event-loop"
2792 setting.
2793
ba988419
SM
27942020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2795
2796 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
2797 * debug.h: Remove.
2798 * infrun.c: Include gdbsupport/common-debug.h.
2799 * linux-nat.c: Likewise.
2800
db20ebdf
SM
28012020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2802
2803 * async-event.h (create_async_signal_handler): Add name
2804 parameter.
2805 (create_async_event_handler): Likewise.
2806 * async-event.c (struct async_signal_handler) <name>: New field.
2807 (struct async_event_handler) <name>: New field.
2808 (create_async_signal_handler): Assign name.
2809 (create_async_event_handler): Assign name.
2810 * event-top.c (async_init_signals): Pass name when creating
2811 handler.
2812 * infrun.c (_initialize_infrun): Likewise.
2813 * record-btrace.c (record_btrace_push_target): Likewise.
2814 * record-full.c (record_full_open): Likewise.
2815 * remote-notif.c (remote_notif_state_allocate): Likewise.
2816 * remote.c (remote_target::open_1): Likewise.
2817 * tui/tui-win.c (tui_initialize_win): Likewise.
2818
2554f6f5
SM
28192020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2820
2821 * async-event.c (initialize_async_signal_handlers): Pass name to
2822 add_file_handler
2823 * event-top.c (ui_register_input_event_handler): Likewise.
2824 * linux-nat.c (linux_nat_target::async): Likewise.
2825 * run-on-main-thread.c (_initialize_run_on_main_thread):
2826 Likewise
2827 * ser-base.c (reschedule): Likewise.
2828 (ser_base_async): Likewise.
2829 * tui/tui-io.c: Likewise.
2830 * top.h (struct ui) <num>: New field.
2831 * top.c (highest_ui_num): New variable.
2832 (ui::ui): Initialize num.
2833
a7aba266
SM
28342020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2835
2836 * observable.h <inferior_created>: Remove parameters. Update all
2837 listeners.
2838 * inferior.h (post_create_inferior): Remove target parameter.
2839 Update all callers.
2840
048fde1e 28412020-10-02 Nitika Achra <Nitika.Achra@amd.com>
2842
2843 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
2844 and DW_MACRO_undef_strx.
2845 (dwarf_decode_macros): Likewise
2846 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
2847 which is the value of DW_AT_str_offsets_base.
2848 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
2849 str_offsets_base.
2850
064280be
KR
28512020-10-01 Kamil Rytarowski <n54@gmx.com>
2852
2853 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
2854
6ff33035
KR
28552020-10-01 Kamil Rytarowski <n54@gmx.com>
2856
2857 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
2858 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
2859
1eb6eb79
KR
28602020-10-01 Kamil Rytarowski <n54@gmx.com>
2861
2862 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
2863
95eb9e54
TV
28642020-09-30 Tom de Vries <tdevries@suse.de>
2865
2866 PR symtab/26683
2867 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
2868
cae21f8e
TT
28692020-09-30 Tom Tromey <tromey@adacore.com>
2870
2871 * dwarf2/read.c (handle_variant): Use constant_value.
2872
529908cb
TT
28732020-09-29 Tom Tromey <tom@tromey.com>
2874
2875 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
2876 (read_file_scope, dwarf2_get_pc_bounds)
2877 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
2878 (read_structure_type, handle_struct_member_die)
2879 (read_enumeration_type, read_array_type, read_set_type)
2880 (read_tag_pointer_type, read_tag_reference_type)
2881 (read_subroutine_type, read_base_type, read_subrange_type)
2882 (read_full_die_1, partial_die_info::read)
2883 (partial_die_info::read, by, new_symbol)
2884 (dwarf2_const_value_data, dwarf2_const_value_attr)
2885 (dump_die_shallow, dwarf2_fetch_constant_bytes)
2886 (prepare_one_comp_unit): Update.
2887 * dwarf2/attribute.h (DW_UNSND): Remove.
2888
c45bc3f8
TT
28892020-09-29 Tom Tromey <tom@tromey.com>
2890
2891 * dwarf2/read.c (read_func_scope, prototyped_function_p)
2892 (read_subroutine_type, partial_die_info::read)
2893 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
2894 (dwarf2_add_member_fn): Update.
2895 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
2896 * dwarf2/attribute.c (attribute::as_boolean): New method.
2897
23dca5c3
TT
28982020-09-29 Tom Tromey <tom@tromey.com>
2899
2900 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
2901 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
2902 method.
2903 * dwarf2/attribute.c (attribute::as_virtuality): New method.
2904
52c14d11
TT
29052020-09-29 Tom Tromey <tom@tromey.com>
2906
2907 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
2908 the attribute's form.
2909
e8e5c158
TT
29102020-09-29 Tom Tromey <tom@tromey.com>
2911
2912 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
2913 (dwarf2_add_member_fn): Update.
2914 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
2915 * dwarf2/attribute.c (attribute::defaulted): New method, from
2916 is_valid_DW_AT_defaulted.
2917
d4df075e
TT
29182020-09-29 Tom Tromey <tom@tromey.com>
2919
2920 * dwarf2/read.c (dw2_get_file_names_reader)
2921 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
2922 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
2923 (dwarf2_symbol_mark_computed): Use as_unsigned.
2924 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
2925 method.
2926 <form_is_section_offset>: Update comment.
2927
bf23a268
TT
29282020-09-29 Tom Tromey <tom@tromey.com>
2929
2930 * dwarf2/read.c (dwarf2_access_attribute): Rename from
2931 dwarf2_default_access_attribute. Look up attribute.
2932 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
2933 Update.
2934
7a5f294d
TT
29352020-09-29 Tom Tromey <tom@tromey.com>
2936
2937 * dwarf2/read.c (skip_one_die): Update.
2938 (read_full_die_1): Change how reprocessing is done.
2939 (partial_die_info::read): Update.
2940 (read_attribute_value): Remove need_reprocess parameter.
2941 (read_attribute): Likewise.
2942 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
2943 New method.
2944
36d378cf
TT
29452020-09-29 Tom Tromey <tom@tromey.com>
2946
2947 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
2948 (dwarf2_const_value_attr, dump_die_shallow)
2949 (dwarf2_fetch_constant_bytes): Update.
2950 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
2951 comment.
2952 <set_address>: New method.
2953 (DW_ADDR): Remove.
2954 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
2955 (attribute::as_string, attribute::as_address): Add assert.
2956
fe56917a
TT
29572020-09-29 Tom Tromey <tom@tromey.com>
2958
2959 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
2960 (read_attribute_reprocess, read_attribute_value): Update.
2961 (read_attribute): Clear requires_reprocessing.
2962 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
2963 form_requires_reprocessing>: New methods.
2964 <string_init>: Clear requires_reprocessing.
2965 <set_unsigned_reprocess>: New method.
2966 <name>: Shrink by one bit.
2967 <requires_reprocessing>: New member.
2968 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
2969 method.
2970
414ad644
TT
29712020-09-29 Tom Tromey <tom@tromey.com>
2972
2973 * dwarf2/read.c (read_attribute_value): Update.
2974 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
2975 set_unsigned>: New methods.
2976 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
2977
1bc397c5
TT
29782020-09-29 Tom Tromey <tom@tromey.com>
2979
2980 * dwarf2/read.c (get_alignment, read_array_order)
2981 (read_attribute_value, dwarf2_const_value_attr)
2982 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
2983 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
2984 New methods.
2985 (DW_SND): Remove.
2986
630ed6b9
TT
29872020-09-29 Tom Tromey <tom@tromey.com>
2988
2989 * dwarf2/read.c (read_attribute_value, lookup_die_type)
2990 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
2991 Update.
2992 * dwarf2/attribute.h (struct attribute) <as_signature,
2993 set_signature>: New methods.
2994 (DW_SIGNATURE): Remove.
2995
9d2246fc
TT
29962020-09-29 Tom Tromey <tom@tromey.com>
2997
2998 * dwarf2/read.c (read_call_site_scope)
2999 (handle_data_member_location, dwarf2_add_member_fn)
3000 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3001 (partial_die_info::read, read_attribute_value)
3002 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
3003 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
3004 (dwarf2_symbol_mark_computed): Update.
3005 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
3006 methods.
3007 (DW_BLOCK): Remove.
3008 * dwarf2/attribute.c (attribute::form_is_block): Add
3009 DW_FORM_data16.
3010
c6481205
TT
30112020-09-29 Tom Tromey <tom@tromey.com>
3012
3013 * dwarf2/read.c (read_cutu_die_from_dwo)
3014 (read_attribute_reprocess, read_attribute_value, read_attribute)
3015 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
3016 (dwarf2_fetch_constant_bytes): Update.
3017 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
3018 <set_string_noncanonical, set_string_canonical>: New methods.
3019 <string_is_canonical>: Update comment.
3020 <canonical_string_p>: Add assert.
3021 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
3022 * dwarf2/attribute.c (attribute::form_is_string): New method.
3023 (attribute::string): Use it.
3024
3b64bf15
TT
30252020-09-29 Tom Tromey <tom@tromey.com>
3026
3027 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
3028 (dump_die_shallow): Use canonical_string_p.
3029 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
3030 method.
3031
2c830f54
TT
30322020-09-29 Tom Tromey <tom@tromey.com>
3033
3034 * dwarf2/read.c (partial_die_info::read)
3035 (dwarf2_const_value_attr, anonymous_struct_prefix, )
3036 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
3037 attribute::as_string.
3038
6c412691
TT
30392020-09-29 Tom Tromey <tom@tromey.com>
3040
3041 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
3042 DW_ADDR.
3043 (attribute::string): Don't use DW_STRING.
3044 (attribute::get_ref_die_offset): Don't use DW_UNSND.
3045 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
3046
95f982e5
TT
30472020-09-29 Tom Tromey <tom@tromey.com>
3048
3049 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
3050 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
3051 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
3052 * dwarf2/attribute.h (struct attribute): Rename methods.
3053 * dwarf2/attribute.c (attribute::as_address): Rename from
3054 value_as_address.
3055 (attribute::as_string): Rename from value_as_string.
3056
f800b00e
TT
30572020-09-29 Tom Tromey <tom@tromey.com>
3058
3059 * dwarf2/read.c (partial_die_info::read) <case
3060 DW_AT_linkage_name>: Use value_as_string.
3061 (dwarf2_string_attr): Use value_as_string.
3062 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
3063 method.
3064 * dwarf2/attribute.c (attribute::value_as_string): New method.
3065
de38d64a
PA
30662020-09-29 Pedro Alves <pedro@palves.net>
3067
3068 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
3069 defined before using '#pragma GCC diagnostic' instead of checking
3070 __clang__.
3071
9aed480c
TT
30722020-09-28 Tom Tromey <tom@tromey.com>
3073
3074 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
3075 (handle_signal_stop): Update.
3076 * procfs.c (procfs_target::insert_watchpoint): Update.
3077 * target.h (target_have_steppable_watchpoint): Now a function.
3078
8a3ecb79
TT
30792020-09-28 Tom Tromey <tom@tromey.com>
3080
3081 * infrun.c (set_schedlock_func): Update.
3082 * target.h (target_can_lock_scheduler): Now a function.
3083
55f6301a
TT
30842020-09-28 Tom Tromey <tom@tromey.com>
3085
3086 * inferior.h (class inferior) <has_execution>: Update.
3087 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
3088 * valops.c (find_function_in_inferior)
3089 (value_allocate_space_in_inferior): Update.
3090 * top.c (kill_or_detach): Update.
3091 * target.c (target_preopen, set_target_permissions): Update.
3092 (target_has_execution_current): Remove.
3093 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
3094 Update.
3095 * solib.c (update_solib_list, reload_shared_libraries): Update.
3096 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
3097 * solib-dsbt.c (enable_break): Update.
3098 * score-tdep.c (score7_fetch_inst): Update.
3099 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
3100 Update.
3101 * remote.c (remote_target::start_remote)
3102 (remote_target::remote_check_symbols, remote_target::open_1)
3103 (remote_target::remote_detach_1, remote_target::verify_memory)
3104 (remote_target::xfer_partial, remote_target::read_description)
3105 (remote_target::get_min_fast_tracepoint_insn_len): Update.
3106 * record-full.c (record_full_open_1): Update.
3107 * record-btrace.c (record_btrace_target_open): Update.
3108 * objc-lang.c (lookup_objc_class, lookup_child_selector)
3109 (value_nsstring): Update.
3110 * linux-thread-db.c (add_thread_db_info)
3111 (thread_db_find_new_threads_silently, check_thread_db_callback)
3112 (try_thread_db_load_1, record_thread): Update.
3113 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
3114 Update.
3115 * linux-fork.c (checkpoint_command): Update.
3116 * infrun.c (set_non_stop, set_observer_mode)
3117 (check_multi_target_resumption, for_each_just_stopped_thread)
3118 (maybe_remove_breakpoints, normal_stop)
3119 (class infcall_suspend_state): Update.
3120 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
3121 (info_program_command, attach_command): Update.
3122 * infcall.c (call_function_by_hand_dummy): Update.
3123 * inf-loop.c (inferior_event_handler): Update.
3124 * gcore.c (gcore_command, derive_heap_segment): Update.
3125 * exec.c (exec_file_command): Update.
3126 * eval.c (evaluate_subexp): Update.
3127 * compile/compile.c (compile_to_object): Update.
3128 * cli/cli-dump.c (restore_command): Update.
3129 * breakpoint.c (update_watchpoint)
3130 (update_inserted_breakpoint_locations)
3131 (insert_breakpoint_locations, get_bpstat_thread): Update.
3132 * target.h (target_has_execution): Remove macro.
3133 (target_has_execution_current): Don't declare.
3134 (target_has_execution): Rename from target_has_execution_1. Add
3135 argument default.
3136
05374cfd
TT
31372020-09-28 Tom Tromey <tom@tromey.com>
3138
3139 * mi/mi-main.c (exec_reverse_continue)
3140 (mi_cmd_list_target_features): Update.
3141 * infrun.c (set_exec_direction_func): Update.
3142 * target.c (default_execution_direction): Update.
3143 * reverse.c (exec_reverse_once): Update.
3144 * target.h (target_can_execute_reverse): Now a function.
3145
9dccd06e
TT
31462020-09-28 Tom Tromey <tom@tromey.com>
3147
3148 * tui/tui-regs.c (tui_get_register)
3149 (tui_data_window::show_registers): Update.
3150 * thread.c (scoped_restore_current_thread::restore)
3151 (scoped_restore_current_thread::scoped_restore_current_thread):
3152 Update.
3153 * regcache-dump.c (regcache_print): Update.
3154 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
3155 Update.
3156 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
3157 * mep-tdep.c (current_me_module, current_options): Update.
3158 * linux-thread-db.c (thread_db_load): Update.
3159 * infcmd.c (registers_info, info_vector_command)
3160 (info_float_command): Update.
3161 * ia64-tdep.c (ia64_frame_prev_register)
3162 (ia64_sigtramp_frame_prev_register): Update.
3163 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
3164 * gcore.c (derive_stack_segment): Update.
3165 * frame.c (get_current_frame, has_stack_frames): Update.
3166 * findvar.c (language_defn::read_var_value): Update.
3167 * arm-tdep.c (arm_pc_is_thumb): Update.
3168 * target.c (target_has_registers): Rename from
3169 target_has_registers_1.
3170 * target.h (target_has_registers): Remove macro.
3171 (target_has_registers): Rename from target_has_registers_1.
3172
841de120
TT
31732020-09-28 Tom Tromey <tom@tromey.com>
3174
3175 * windows-tdep.c (tlb_make_value): Update.
3176 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3177 * thread.c (scoped_restore_current_thread::restore)
3178 (scoped_restore_current_thread::scoped_restore_current_thread)
3179 (thread_command): Update.
3180 * stack.c (backtrace_command_1, frame_apply_level_command)
3181 (frame_apply_all_command, frame_apply_command): Update.
3182 * infrun.c (siginfo_make_value, restore_infcall_control_state):
3183 Update.
3184 * gcore.c (derive_stack_segment): Update.
3185 * frame.c (get_current_frame, has_stack_frames): Update.
3186 * auxv.c (info_auxv_command): Update.
3187 * ada-tasks.c (ada_build_task_list): Update.
3188 * target.c (target_has_stack): Rename from target_has_stack_1.
3189 * target.h (target_has_stack): Remove macro.
3190 (target_has_stack): Rename from target_has_stack_1.
3191
a739972c
TT
31922020-09-28 Tom Tromey <tom@tromey.com>
3193
3194 * target.c (target_has_memory): Rename from target_has_memory_1.
3195 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3196 * thread.c (scoped_restore_current_thread::restore)
3197 (scoped_restore_current_thread::scoped_restore_current_thread):
3198 Update.
3199 * frame.c (get_current_frame, has_stack_frames): Update.
3200 * target.h (target_has_memory): Remove macro.
3201 (target_has_memory): Rename from target_has_memory_1.
3202
5b8a4776
TT
32032020-09-28 Tom Tromey <tom@tromey.com>
3204
3205 * target.c (target_has_all_memory_1): Remove.
3206 * target.h (target_has_all_memory): Remove define.
3207 (target_has_all_memory_1): Don't declare.
3208
bd356ec6
SM
32092020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
3210
3211 * ser-base.c: Adjust comments formatting.
3212
2c72d5e5
TT
32132020-09-27 Tom Tromey <tom@tromey.com>
3214
3215 PR tui/25342:
3216 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
3217
35a98237
TT
32182020-09-27 Tom Tromey <tom@tromey.com>
3219
3220 PR tui/25342:
3221 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
3222
9e820dec
TT
32232020-09-27 Tom Tromey <tom@tromey.com>
3224
3225 * unittests/tui-selftests.c: Update.
3226 * tui/tui-winsource.h (struct tui_source_window_base)
3227 <extra_margin, show_line_number, refresh_pad>: New methods.
3228 <m_max_length, m_pad>: New members.
3229 (tui_copy_source_line): Update.
3230 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
3231 first_col, line_width, ndigits parameters. Add length.
3232 (tui_source_window_base::show_source_line): Write to pad. Line
3233 number now 0-based.
3234 (tui_source_window_base::refresh_pad): New method.
3235 (tui_source_window_base::show_source_content): Write to pad. Call
3236 refresh_pad.
3237 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
3238 not refill.
3239 (tui_source_window_base::update_exec_info): Call
3240 show_line_number.
3241 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
3242 method.
3243 <m_digits>: New member.
3244 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
3245 and m_max_length.
3246 (tui_source_window::show_line_number): New method.
3247 * tui/tui-io.h (tui_puts): Fix comment.
3248 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
3249 m_max_length.
3250
c15c15c8
TT
32512020-09-27 Tom Tromey <tom@tromey.com>
3252
3253 * tui/tui-winsource.c
3254 (tui_source_window_base::set_is_exec_point_at): Don't call
3255 show_source_line.
3256
149830c1
TT
32572020-09-27 Tom Tromey <tom@tromey.com>
3258
3259 * python/py-tui.c (class tui_py_window) <refresh_window>: New
3260 method.
3261 <erase>: Update.
3262 <cursor_x, cursor_y>: Remove.
3263 <m_inner_window>: New member.
3264 (tui_py_window::rerender): Create inner window.
3265 (tui_py_window::output): Write to inner window.
3266
8f9929bb
GR
32672020-09-26 Gareth Rees <grees@undo.io> (tiny change)
3268
3269 PR python/26586
3270 * cli/cli-script.c (execute_control_commands): don't set
3271 instream to nullptr here as this breaks the from_tty argument
3272 to gdb.execute in Python.
3273 (execute_user_command): set instream to nullptr here instead.
3274
956bdb59
SM
32752020-09-25 Simon Marchi <simon.marchi@efficios.com>
3276
3277 * infrun.h (infrun_debug_printf): Fix formatting.
3278 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
3279
3b93626b
SJ
32802020-09-25 Saagar Jha <saagar@saagarjha.com>
3281
3282 * compile/compile-object-load.h (struct munmap_list): Add
3283 explicitly-defined move constructor.
3284
b551a89f
TT
32852020-09-24 Tom Tromey <tromey@adacore.com>
3286
3287 PR tui/26638:
3288 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
3289 method.
3290 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
3291 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
3292 (tui_prev_win): Rewrite.
3293
99bb393f
HD
32942020-09-23 Hannes Domani <ssbssa@yahoo.de>
3295
3296 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
3297 in WOW64 processes as SIGINT.
3298 * nat/windows-nat.h: Make wow64_process a shared variable.
3299 * windows-nat.c: Remove static wow64_process variable.
3300
20a5fcbd
TT
33012020-09-23 Tom Tromey <tom@tromey.com>
3302
3303 PR symtab/25470:
3304 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
3305 offset and bit size.
3306 * printcmd.c (print_scalar_formatted): Handle zero-length
3307 integer.
3308 (print_scalar_formatted): Use bit_size_differs_p.
3309 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
3310 constant.
3311 (union type_specific): <int_stuff>: New member.
3312 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
3313 methods.
3314 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
3315 TYPE_SPECIFIC_FIELD.
3316 (recursive_dump_type, copy_type_recursive): Update.
3317 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
3318 DW_AT_data_bit_offset.
3319
bac51ab7
TT
33202020-09-23 Tom Tromey <tom@tromey.com>
3321
3322 * utils.h (class gdb_argv): Add move operators.
3323 <append>: New methods.
3324 * compile/compile.c (build_argc_argv): Remove.
3325 (compile_args_argc): Remove.
3326 (compile_args_argv): Change type.
3327 (set_compile_args): Simplify.
3328 (append_args): Remove.
3329 (filter_args): Remove argcp parameter.
3330 (get_args): Return gdb_argv. Simplify.
3331 (compile_to_object): Update.
3332
92677124
TT
33332020-09-23 Tom Tromey <tom@tromey.com>
3334
3335 * compile/compile-object-run.c (do_module_cleanup)
3336 <~do_module_cleanup> :Remove.
3337 (do_module_cleanup): Update.
3338 * compile/compile-object-load.h (struct munmap_list): Add move
3339 assignment operator.
3340 <source_file>: Now a std::string.
3341 <munmap_list>: Rename. No longer a pointer.
3342 * compile/compile-object-load.c (struct setup_sections_data): Add
3343 constructor.
3344 <setup_one_section>: Declare.
3345 <munmap_list>: Move earlier.
3346 <m_bfd>: New member.
3347 <m_last_size, m_last_section_first, m_last_prot,
3348 m_last_max_alignment>: Rename, add initializers where needed.
3349 (setup_sections_data::setup_one_section): Rename from
3350 setup_sections. Update.
3351 (compile_object_load): Update. Don't use bfd_map_over_sections.
3352
e616f60a
TT
33532020-09-23 Tom Tromey <tom@tromey.com>
3354
3355 * compile/compile-object-run.c (struct do_module_cleanup): Add
3356 parameters to constructor. Update destructor.
3357 <source_file, scope, scope_data, out_value_type, out_value_addr,
3358 munmap_list_head, objfile_name_string>: Remove.
3359 <module>: New member.
3360 (do_module_cleanup): Update.
3361 (compile_object_run): Update.
3362
e947a848
TT
33632020-09-23 Tom Tromey <tom@tromey.com>
3364
3365 * compile/compile.c (eval_compile_command): Update.
3366 * compile/compile-object-run.h (compile_object_run): Take a
3367 compile_module_up.
3368 * compile/compile-object-run.c (compile_object_run): Take a
3369 compile_module_up.
3370 * compile/compile-object-load.h (struct compile_module): Add
3371 constructor, destructor.
3372 (compile_module_up): New typedef.
3373 (compile_object_load): Return compile_object_up.
3374 * compile/compile-object-load.c (compile_object_load): Return
3375 compile_module_up.
3376
0dbf6ee6
TT
33772020-09-23 Tom Tromey <tom@tromey.com>
3378
3379 * compile/compile-object-run.c (struct do_module_cleanup): Add
3380 constructor, destructor.
3381 <objfile_name_string>: Don't use struct hack.
3382 (do_module_cleanup): Use delete.
3383 (compile_object_run): Use new.
3384
ebe824f5
TT
33852020-09-23 Tom Tromey <tom@tromey.com>
3386
3387 * compile/compile-cplus-types.c
3388 (compile_cplus_convert_struct_or_union): Use std::vector.
3389 (compile_cplus_convert_func): Likewise.
3390 * compile/compile-c-types.c (convert_func): Use std::vector.
3391
5dd918d9
TT
33922020-09-21 Tom Tromey <tromey@adacore.com>
3393
3394 * sparc-tdep.c (sparc32_skip_prologue): Use
3395 skip_prologue_using_sal.
3396
5486c517
TT
33972020-09-19 Tom Tromey <tom@tromey.com>
3398
3399 * symfile.c (add_section_size_callback): Remove.
3400 (load_one_section): Rename from load_section_callback. Change
3401 parameters.
3402 (generic_load): Use foreach.
3403
8a6bb1d1
TT
34042020-09-19 Tom Tromey <tom@tromey.com>
3405
3406 * exec.c (add_to_section_table): Remove.
3407 (build_section_table): Use foreach.
3408
08f93a1a
TT
34092020-09-19 Tom Tromey <tom@tromey.com>
3410
3411 * elfread.c (elf_locate_sections): Change parameters.
3412 (elf_symfile_read): Use foreach.
3413
03cd72b8
TT
34142020-09-19 Tom Tromey <tom@tromey.com>
3415
3416 * cli/cli-dump.c (struct callback_data): Remove.
3417 (restore_one_section): Rename from restore_section_callback.
3418 Change parameters.
3419 (restore_binary_file): Change parameters.
3420 (restore_command): Use foreach.
3421
f4f2b85f
TT
34222020-09-19 Tom Tromey <tom@tromey.com>
3423
3424 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
3425 (gcore_copy_callback): Likewise.
3426 (gcore_memory_sections): Use foreach.
3427
b35c1d1c
TT
34282020-09-19 Tom Tromey <tom@tromey.com>
3429
3430 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
3431 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
3432 parameters.
3433 (generic_elf_osabi_sniffer): Use foreach.
3434 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
3435 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
3436
5bb6e9dd
TT
34372020-09-19 Tom Tromey <tom@tromey.com>
3438
3439 * dwarf2/read.c (locate_dwz_sections): Change parameters.
3440 (dwarf2_get_dwz_file): Use foreach.
3441 (dwarf2_locate_dwo_sections): Change parameters.
3442 (open_and_init_dwo_file): Use foreach.
3443 (dwarf2_locate_common_dwp_sections): Change parameters.
3444 (open_and_init_dwp_file): Use foreach.
3445
ad7277da
TT
34462020-09-19 Tom Tromey <tom@tromey.com>
3447
3448 * symfile.h: (find_lowest_section): Don't declare.
3449 * symfile.c (find_lowest_section): Now static. Change
3450 parameters.
3451 (struct place_section_arg): Remove.
3452 (place_section): Change parameters.
3453 (addr_info_make_relative): Use foreach.
3454 (symfile_dummy_outputs): Remove.
3455 (default_symfile_relocate): Use foreach.
3456
cb814f2e
TT
34572020-09-19 Tom Tromey <tom@tromey.com>
3458
3459 * objfiles.c (add_to_objfile_sections): Rename from
3460 add_to_objfile_sections_full.
3461 (add_to_objfile_sections): Remove.
3462 (build_objfile_section_table): Use foreach.
3463
3cabfd26
TT
34642020-09-19 Tom Tromey <tom@tromey.com>
3465
3466 * stap-probe.c (get_stap_base_address_1): Remove.
3467 (get_stap_base_address): Use foreach.
3468
1ce51eb5
TT
34692020-09-19 Tom Tromey <tom@tromey.com>
3470
3471 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
3472 parameters.
3473 (gdb_bfd_close_or_warn): Use foreach.
3474
a190fabb
TT
34752020-09-19 Tom Tromey <tom@tromey.com>
3476
3477 * corelow.c (add_to_thread_list): Change parameters.
3478 (core_target_open): Use foreach.
3479
cafb0d81
TT
34802020-09-19 Tom Tromey <tom@tromey.com>
3481
3482 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
3483 existing function.
3484
c8d5abea
AB
34852020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3486
3487 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
3488 for arrays.
3489
6d816919
AB
34902020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3491
3492 * eval.c: Remove 'f-lang.h' include.
3493 (value_f90_subarray): Moved to f-lang.c.
3494 (eval_call): Renamed to...
3495 (evaluate_subexp_do_call): ...this, is no longer static, header
3496 comment moved into header file.
3497 (evaluate_funcall): Update call to eval_call.
3498 (skip_undetermined_arglist): Moved to f-lang.c.
3499 (fortran_value_subarray): Likewise.
3500 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3501 moved to evaluate_subexp_f.
3502 (calc_f77_array_dims): Moved to f-lang.c
3503 * expprint.c (print_subexp_funcall): New function.
3504 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3505 moved to print_subexp_f, OP_FUNCALL uses new function.
3506 (dump_subexp_body_funcall): New function.
3507 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
3508 moved to dump_subexp_f, OP_FUNCALL uses new function.
3509 * expression.h (evaluate_subexp_do_call): Declare.
3510 * f-lang.c (value_f90_subarray): Moved from eval.c.
3511 (skip_undetermined_arglist): Likewise.
3512 (calc_f77_array_dims): Likewise.
3513 (fortran_value_subarray): Likewise.
3514 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
3515 (operator_length_f): Likewise.
3516 (print_subexp_f): Likewise.
3517 (dump_subexp_body_f): Likewise.
3518 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
3519 declaration of this operation to here.
3520 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
3521 support moved to operator_length_f.
3522 * parser-defs.h (dump_subexp_body_funcall): Declare.
3523 (print_subexp_funcall): Declare.
3524 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
3525 fortran-operator.def.
3526
8c37706a
AB
35272020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3528
3529 * eval.c (fortran_value_subarray): New function, content is taken
3530 from...
3531 (evaluate_subexp_standard): ...here, in two places. Now arrays
3532 and strings both call the new function.
3533 (calc_f77_array_dims): Add header comment, handle strings.
3534
14f9473c
VC
35352020-09-18 Victor Collod <vcollod@nvidia.com>
3536
3537 PR gdb/26635
3538 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
3539 (i386_analyze_prologue): Call i386_skip_endbr.
3540
b60cea74
TT
35412020-09-18 Tom Tromey <tromey@adacore.com>
3542
3543 * windows-nat.c (struct windows_nat_target) <wait>: Update.
3544 (windows_nat_target::wait): Update.
3545 * target/wait.h (enum target_wait_flag): New. Use
3546 DEF_ENUM_FLAGS_TYPE.
3547 * target/target.h (target_wait): Change type of options.
3548 * target.h (target_options_to_string, default_target_wait):
3549 Update.
3550 (struct target_ops) <wait>: Change type of options.
3551 * target.c (target_wait, default_target_wait, do_option): Change
3552 type of "options".
3553 (target_options_to_string): Likewise.
3554 * target-delegates.c: Rebuild.
3555 * target-debug.h (target_debug_print_target_wait_flags): Rename
3556 from target_debug_print_options.
3557 * sol-thread.c (class sol_thread_target) <wait>: Update.
3558 (sol_thread_target::wait): Update.
3559 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
3560 (rs6000_nat_target::wait): Update.
3561 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
3562 Update.
3563 (remote_target::wait_ns, remote_target::wait_as): Change type of
3564 "options".
3565 (remote_target::wait): Update.
3566 * remote-sim.c (struct gdbsim_target) <wait>: Update.
3567 (gdbsim_target::wait): Update.
3568 * record-full.c (class record_full_base_target) <wait>: Update.
3569 (record_full_wait_1): Change type of "options".
3570 (record_full_base_target::wait): Update.
3571 * record-btrace.c (class record_btrace_target) <wait>: Update.
3572 (record_btrace_target::wait): Update.
3573 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
3574 Update.
3575 (ravenscar_thread_target::wait): Update.
3576 * procfs.c (class procfs_target) <wait>: Update.
3577 (procfs_target::wait): Update.
3578 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
3579 * obsd-nat.c (obsd_nat_target::wait): Update.
3580 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
3581 (nto_procfs_target::wait): Update.
3582 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
3583 * nbsd-nat.c (nbsd_wait): Change type of "options".
3584 (nbsd_nat_target::wait): Update.
3585 * linux-thread-db.c (class thread_db_target) <wait>: Update.
3586 (thread_db_target::wait): Update.
3587 * linux-nat.h (class linux_nat_target) <wait>: Update.
3588 * linux-nat.c (linux_nat_target::wait): Update.
3589 (linux_nat_wait_1): Update.
3590 * infrun.c (do_target_wait_1, do_target_wait): Change type of
3591 "options".
3592 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
3593 * inf-ptrace.c (inf_ptrace_target::wait): Update.
3594 * go32-nat.c (struct go32_nat_target) <wait>: Update.
3595 (go32_nat_target::wait): Update.
3596 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
3597 * gnu-nat.c (gnu_nat_target::wait): Update.
3598 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
3599 * fbsd-nat.c (fbsd_nat_target::wait): Update.
3600 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
3601 * darwin-nat.c (darwin_nat_target::wait): Update.
3602 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
3603 (bsd_uthread_target::wait): Update.
3604 * aix-thread.c (class aix_thread_target) <wait>: Update.
3605 (aix_thread_target::wait): Update.
3606
0295dde6
AB
36072020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
3608
3609 * compile/compile-object-run.c (create_copied_type_recursive): New
3610 function.
3611 (compile_object_run): Use new function.
3612
d3483b43
JT
36132020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
3614
3615 * NEWS: Mention x86_64 Cygwin core file support.
3616
e7d612ad
JT
36172020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3618
3619 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
3620 (core_process_module_section): Handle NOTE_INFO_MODULE64.
3621
aff9d387
JT
36222020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3623
62a5151b
JT
3624 * windows-tdep.h: Add prototypes.
3625 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
3626 (i386_windows_core_pid_to_str): Move and rename ...
3627 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
3628 (windows_core_pid_to_str): ... and here.
3629 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
3630
36312020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
3632 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
3633 (amd64_windows_init_abi_common): ... and register.
3634
7d155da3
JT
36352020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3636
3637 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
3638 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
3639
e8ef12b9
PA
36402020-09-18 Pedro Alves <pedro@palves.net>
3641
3642 PR gdb/26631
3643 * thread.c (thread_find_command): Switch inferior before calling
3644 target methods.
3645
c1e1314d
TT
36462020-09-17 Tom Tromey <tromey@adacore.com>
3647
3648 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
3649 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
3650 (tdesc_arch_data_up): New typedef.
3651 (tdesc_use_registers, tdesc_data_alloc): Update.
3652 (tdesc_data_cleanup): Don't declare.
3653 * target-descriptions.c (tdesc_data_alloc): Return a
3654 tdesc_arch_data_up.
3655 (tdesc_arch_data_deleter::operator()): Rename from
3656 tdesc_data_cleanup. Change argument type.
3657 (tdesc_use_registers): Change early_data to an rvalue reference.
3658 (tdesc_use_registers): Don't use delete.
3659 * sparc-tdep.c (sparc32_gdbarch_init): Update.
3660 * s390-tdep.c (s390_gdbarch_init): Update.
3661 * rx-tdep.c (rx_gdbarch_init): Update.
3662 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3663 * riscv-tdep.c (riscv_gdbarch_init): Update.
3664 * or1k-tdep.c (or1k_gdbarch_init): Update.
3665 * nios2-tdep.c (nios2_gdbarch_init): Update.
3666 * nds32-tdep.c (nds32_gdbarch_init): Update.
3667 * mips-tdep.c (mips_gdbarch_init): Update.
3668 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
3669 * m68k-tdep.c (m68k_gdbarch_init): Update.
3670 * i386-tdep.c (i386_gdbarch_init): Update.
3671 * arm-tdep.c (arm_gdbarch_init): Update.
3672 * arc-tdep.c (arc_tdesc_init): Update.
3673 (arc_gdbarch_init): Update.
3674 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
3675
0363df3d
HD
36762020-09-17 Hannes Domani <ssbssa@yahoo.de>
3677
3678 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
3679 for WOW64 processes.
3680
280a9412
TT
36812020-09-17 Tom Tromey <tom@tromey.com>
3682
3683 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
3684
6108fd18
TT
36852020-09-17 Tom Tromey <tom@tromey.com>
3686
3687 * value.c (preserve_values): Update.
3688 * python/py-type.c (save_objfile_types): Update.
3689 * guile/scm-type.c (save_objfile_types): Update.
3690 * gdbtypes.h (create_copied_types_hash): Return htab_up.
3691 * gdbtypes.c (create_copied_types_hash): Return htab_up.
3692 * compile/compile-object-run.c (compile_object_run): Update.
3693
fa9b1164
TT
36942020-09-17 Tom Tromey <tom@tromey.com>
3695
3696 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
3697 Remove.
3698 <m_table>: Now htab_up.
3699 * typeprint.c (typedef_hash_table::recursively_update)
3700 (typedef_hash_table::add_template_parameters)
3701 (typedef_hash_table::typedef_hash_table): Update.
3702 (typedef_hash_table::~typedef_hash_table): Remove.
3703 (typedef_hash_table::typedef_hash_table)
3704 (typedef_hash_table::find_global_typedef)
3705 (typedef_hash_table::find_typedef): Update.
3706
eb53f105
TT
37072020-09-17 Tom Tromey <tom@tromey.com>
3708
3709 * target-descriptions.c (tdesc_use_registers): Use htab_up.
3710
7a8a5d47
TT
37112020-09-17 Tom Tromey <tom@tromey.com>
3712
3713 * linespec.c (class decode_compound_collector)
3714 <~decode_compound_collector>: Remove.
3715 <m_unique_syms>: Now htab_up.
3716 (decode_compound_collector::operator ()): Update.
3717 (class symtab_collector) <~symtab_collector>: Remove.
3718 <m_symtab_table>: Now htab_up.
3719 (symtab_collector::operator ()): Update.
3720
99032cfc
TT
37212020-09-17 Tom Tromey <tom@tromey.com>
3722
3723 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
3724 (filename_seen_cache::clear): Update.
3725 (~filename_seen_cache): Remove.
3726 (filename_seen_cache::seen): Update.
3727 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
3728 htab_up.
3729 <~filename_seen_cache>: Remove.
3730 <traverse>: Update.
3731
32580f6d
TT
37322020-09-17 Tom Tromey <tom@tromey.com>
3733
3734 * completer.c (completion_tracker::discard_completions)
3735 (completion_tracker::~completion_tracker)
3736 (completion_tracker::maybe_add_completion)
3737 (completion_tracker::remove_completion)
3738 (completion_tracker::recompute_lowest_common_denominator)
3739 (completion_tracker::build_completion_result): Update.
3740 * completer.h (class completion_tracker) <have_completions>:
3741 Update.
3742 <m_entries_hash>: Now htab_up.
3743
c1fb9836
TT
37442020-09-17 Tom Tromey <tom@tromey.com>
3745
3746 * breakpoint.c (ambiguous_names_p): Use htab_up.
3747
88f07206
TT
37482020-09-17 Tom Tromey <tom@tromey.com>
3749
3750 * auto-load.c (struct auto_load_pspace_info)
3751 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
3752 <loaded_script_files, loaded_script_texts>: Change type to
3753 htab_up.
3754 (~auto_load_pspace_info) Remove.
3755 (init_loaded_scripts_info, maybe_add_script_file)
3756 (maybe_add_script_text, auto_load_info_scripts): Update.
3757
9519b2ee
TT
37582020-09-17 Tom Tromey <tromey@adacore.com>
3759
3760 * c-exp.y (name_obstack): Now static.
3761
d2cd4113
CC
37622020-09-17 Chungyi Chi <demonic@csie.io>
3763
3764 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
3765
b650a282
SM
37662020-09-16 Simon Marchi <simon.marchi@efficios.com>
3767
3768 * breakpoint.h (init_catchpoint): Change int parameter to bool.
3769 (add_solib_catchpoint): Likewise.
3770 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
3771 to bool.
3772 (add_solib_catchpoint): Change int parameter/variable to bool.
3773 (catch_load_or_unload): Likewise.
3774 (init_catchpoint): Likewise.
3775 (create_fork_vfork_event_catchpoint): Likewise.
3776 (catch_fork_command_1): Likewise.
3777 (catch_exec_command_1): Likewise.
3778
4d0bcfcf
SM
37792020-09-16 Simon Marchi <simon.marchi@efficios.com>
3780
3781 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
3782 Change instance_flags to m_instance_flags.
3783
fe830662
TT
37842020-09-16 Tom Tromey <tromey@adacore.com>
3785
3786 PR gdb/26598:
3787 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
3788
fe5ddfc3
JB
37892020-09-16 John Baldwin <jhb@FreeBSD.org>
3790
3791 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
3792 PL_FLAG_EXEC.
3793 (fbsd_nat_target::insert_exec_catchpoint)
3794 (fbsd_nat_target::remove_exec_catchpoint): Always define.
3795 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
3796 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
3797
e911c666
JB
37982020-09-16 John Baldwin <jhb@FreeBSD.org>
3799
3800 * configure.ac: Remove check for kinfo_getvmmap().
3801 * configure, config.in: Regenerate.
3802 * fbsd-nat.c (fbsd_read_mapping): Remove
3803 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
3804 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
3805 kinfo_get_vmmap() are always present.
3806
1f17d372
JB
38072020-09-16 John Baldwin <jhb@FreeBSD.org>
3808
3809 * fbsd-nat.c: Always include support for
3810 TARGET_OBJECT_SIGNAL_INFO.
3811
bcb1da7f
JB
38122020-09-16 John Baldwin <jhb@FreeBSD.org>
3813
3814 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
3815 sysctl and remove procfs fallback.
3816
5515f729
JB
38172020-09-16 John Baldwin <jhb@FreeBSD.org>
3818
3819 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
3820 * fbsd-nat.h: Likewise.
3821
da1df1db
TBA
38222020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3823
3824 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
3825 argument.
3826
0e25e767
AB
38272020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3828
3829 * ada-lang.c (ada_language_data): Delete.
3830 (ada_language): Remove references to ada_language_data.
3831 * c-lang.c (c_language_data): Delete.
3832 (c_language): Remove references to c_language_data.
3833 (cplus_language_data): Delete.
3834 (cplus_language): Remove references to cplus_language_data.
3835 (asm_language_data): Delete.
3836 (asm_language): Remove references to asm_language_data.
3837 (minimal_language_data): Delete.
3838 (minimal_language): Remove references to minimal_language_data.
3839 * d-lang.c (d_language_data): Delete.
3840 (d_language): Remove references to d_language_data.
3841 * f-lang.c (f_language_data): Delete.
3842 (f_language): Remove references to f_language_data.
3843 * go-lang.c (go_language_data): Delete.
3844 (go_language): Remove references to go_language_data.
3845 * language.c (unknown_language_data): Delete.
3846 (unknown_language): Remove references to unknown_language_data.
3847 (auto_language_data): Delete.
3848 (auto_language): Remove references to auto_language_data.
3849 * language.h (language_data): Delete struct.
3850 (language_defn): No longer inherit from language_data.
3851 * m2-lang.c (m2_language_data): Delete.
3852 (m2_language): Remove references to m2_language_data.
3853 * objc-lang.c (objc_language_data): Delete.
3854 (objc_language): Remove references to objc_language_data.
3855 * opencl-lang.c (opencl_language_data): Delete.
3856 (opencl_language): Remove references to opencl_language_data.
3857 * p-lang.c (pascal_language_data): Delete.
3858 (pascal_language): Remove references to pascal_language_data.
3859 * rust-lang.c (rust_language_data): Delete.
3860 (rust_language): Remove references to rust_language_data.
3861
b7c6e27d
AB
38622020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3863
3864 * ada-lang.c (ada_language_data): Remove la_op_print_tab
3865 initializer.
3866 (ada_language::opcode_print_table): New member function.
3867 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
3868 (c_language::opcode_print_table): New member function.
3869 (cplus_language_data): Remove la_op_print_tab initializer.
3870 (cplus_language::opcode_print_table): New member function.
3871 (asm_language_data): Remove la_op_print_tab initializer.
3872 (asm_language::opcode_print_table): New member function.
3873 (minimal_language_data): Remove la_op_print_tab initializer.
3874 (minimal_language::opcode_print_table): New member function.
3875 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
3876 (d_language::opcode_print_table): New member function.
3877 * expprint.c (print_subexp_standard): Update call to
3878 opcode_print_table.
3879 (op_string): Likewise.
3880 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
3881 (f_language::opcode_print_table): New member function.
3882 * go-lang.c (go_language_data): Remove la_op_print_tab
3883 initializer.
3884 (go_language::opcode_print_table): New member function.
3885 * language.c (unknown_language_data): Remove la_op_print_tab
3886 initializer.
3887 (unknown_language::opcode_print_table): New member function.
3888 (auto_language_data): Remove la_op_print_tab initializer.
3889 (auto_language::opcode_print_table): New member function.
3890 * language.h (language_data): Remove la_op_print_tab field.
3891 (language_defn::opcode_print_table): Declare new member function.
3892 * m2-lang.c (m2_language_data): Remove la_op_print_tab
3893 initializer.
3894 (m2_language::opcode_print_table): New member function.
3895 * objc-lang.c (objc_language_data): Remove la_op_print_tab
3896 initializer.
3897 (objc_language::opcode_print_table): New member function.
3898 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
3899 initializer.
3900 (opencl_language::opcode_print_table): New member function.
3901 * p-lang.c (pascal_language_data): Remove la_op_print_tab
3902 initializer.
3903 (pascal_language::opcode_print_table): New member function.
3904 * rust-lang.c (rust_language_data): Remove la_op_print_tab
3905 initializer.
3906 (rust_language::opcode_print_table): New member function.
3907
5aba6ebe
AB
39082020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3909
3910 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
3911 (ada_language::expression_ops): New member function.
3912 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
3913 (c_language::expression_ops): New member function.
3914 (cplus_language_data): Remove la_exp_desc initializer.
3915 (cplus_language::expression_ops): New member function.
3916 (asm_language_data): Remove la_exp_desc initializer.
3917 (asm_language::expression_ops): New member function.
3918 (minimal_language_data): Remove la_exp_desc initializer.
3919 (minimal_language::expression_ops): New member function.
3920 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
3921 (d_language::expression_ops): New member function.
3922 * eval.c (evaluate_subexp): Update call to expression_ops.
3923 * expprint.c (print_subexp): Likewise.
3924 (op_name): Likewise.
3925 (dump_subexp_body): Likewise.
3926 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
3927 (f_language::expression_ops): New member function.
3928 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
3929 (go_language::expression_ops): New member function.
3930 * language.c (language_defn::expression_ops): New function.
3931 (unknown_language_data): Remove la_exp_desc initializer.
3932 (auto_language_data): Likewise.
3933 * language.h (language_data): Remove la_exp_desc field.
3934 (language_defn::expression_ops): Declare new member function.
3935 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
3936 (m2_language::expression_ops): New member function.
3937 * objc-lang.c (objc_language_data): Remove la_exp_desc
3938 initializer.
3939 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
3940 initializer.
3941 (opencl_language::expression_ops): New member function.
3942 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
3943 * parse.c (operator_length): Update call to expression_ops.
3944 (exp_iterate): Likewise.
3945 * rust-lang.c (rust_language_data): Remove la_exp_desc
3946 initializer.
3947 (ruse_language::expression_ops): New member function.
3948
b63a3f3f
AB
39492020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3950
3951 * ada-lang.c (ada_language_data): Remove la_varobj_ops
3952 initializer.
3953 (ada_language::varobj_ops): New member function.
3954 * c-lang.c (c_language_data): Remove la_varobj_ops
3955 initializer.
3956 (cplus_language_data): Likewise.
3957 (cplus_language::varobj_ops): New member function.
3958 (asm_language_data): Remove la_varobj_ops initializer.
3959 (minimal_language_data): Likewise.
3960 * d-lang.c (d_language_data): Likewise.
3961 * f-lang.c (f_language_data): Likewise.
3962 * go-lang.c (go_language_data): Likewise.
3963 * language.c (language_defn::varobj_ops): New function.
3964 (unknown_language_data): Remove la_varobj_ops
3965 initializer.
3966 (auto_language_data): Likewise.
3967 * language.h (language_data): Remove la_varobj_ops field.
3968 (language_defn::varobj_ops): Declare new member function.
3969 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
3970 * objc-lang.c (objc_language_data): Likewise.
3971 * opencl-lang.c (opencl_language_data): Likewise.
3972 * p-lang.c (pascal_language_data): Likewise.
3973 * rust-lang.c (rust_language_data): Likewise.
3974 * varobj.c (varobj_create): Update call to varobj_ops.
3975 * varobj.h (default_varobj_ops): Delete define.
3976
1ac14a04
AB
39772020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3978
3979 * ada-lang.c (ada_language_data): Remove la_macro_expansion
3980 initializer.
3981 * c-lang.c (c_language_data): Likewise.
3982 (c_language::macro_expansion): New member function.
3983 (cplus_language_data): Likewise.
3984 (cplus_language::macro_expansion): New member function.
3985 (asm_language_data): Likewise.
3986 (asm_language::macro_expansion): New member function.
3987 (minimal_language_data): Likewise.
3988 (minimal_language::macro_expansion): New member function.
3989 * d-lang.c (d_language_data): Remove la_macro_expansion
3990 initializer.
3991 * f-lang.c (f_language_data): Likewise.
3992 * go-lang.c (go_language_data): Likewise.
3993 * language.c (unknown_language_data): Likewise.
3994 (auto_language_data): Likewise.
3995 * language.h (language_data): Remove la_macro_expansion field.
3996 (language_defn::macro_expansion): New member function.
3997 * m2-lang.c (m2_language_data): Remove la_macro_expansion
3998 initializer.
3999 * objc-lang.c (objc_language_data): Likewise.
4000 (objc_language::macro_expansion): New member function.
4001 * opencl-lang.c (opencl_language_data): Likewise.
4002 (opencl_language::macro_expansion): New member function.
4003 * p-lang.c (pascal_language_data): Remove la_macro_expansion
4004 initializer.
4005 * rust-lang.c (rust_language_data): Likewise.
4006 * symtab.c (default_collect_symbol_completion_matches_break_on):
4007 Update call to macro_expansion.
4008
3a3440fb
AB
40092020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4010
4011 * ada-lang.c (ada_language_data): Remove la_array_ordering
4012 initializer.
4013 * c-lang.c (c_language_data): Likewise.
4014 (cplus_language_data): Likewise.
4015 (asm_language_data): Likewise.
4016 (minimal_language_data): Likewise.
4017 * d-lang.c (d_language_data): Likewise.
4018 * dwarf2/read.c (read_array_order): Update for call to
4019 array_ordering.
4020 * f-lang.c (f_language_data): Remove la_array_ordering
4021 initializer.
4022 (f_language::array_ordering): New member function.
4023 * go-lang.c (go_language_data): Remove la_array_ordering
4024 initializer.
4025 * language.c (unknown_language_data): Likewise.
4026 (auto_language_data): Likewise.
4027 * language.h (language_data): Delete la_array_ordering field.
4028 (language_defn::array_ordering): New member function.
4029 * m2-lang.c (m2_language_data): Remove la_array_ordering
4030 initializer.
4031 * objc-lang.c (objc_language_data): Likewise.
4032 * opencl-lang.c (opencl_language_data): Likewise.
4033 * p-lang.c (pascal_language_data): Likewise.
4034 * rust-lang.c (rust_language_data): Likewise.
4035
0d201fa4
AB
40362020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4037
4038 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
4039 initializer.
4040 * c-lang.c (c_language_data): Likewise.
4041 (cplus_language_data): Likewise.
4042 (asm_language_data): Likewise.
4043 (minimal_language_data): Likewise.
4044 * d-lang.c (d_language_data): Likewise.
4045 * f-lang.c (f_language_data): Likewise.
4046 (f_language::case_sensitivity): New member function.
4047 * go-lang.c (go_language_data): Remove la_case_sensitivity
4048 initializer.
4049 * language.c (enum case_mode): Moved here from language.h.
4050 (case_mode): Make static.
4051 (show_case_command): Update for case_sensitivity being a method.
4052 (set_case_command): Likewise.
4053 (set_range_case): Likewise.
4054 (unknown_language_data): Remove la_case_sensitivity initializer.
4055 (auto_language_data): Likewise.
4056 * language.h (case_mode): Delete, move enum declaration to
4057 language.c.
4058 (language_data): Delete la_case_sensitivity field.
4059 (language_defn::case_sensitivity): New member function.
4060 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
4061 initializer.
4062 * objc-lang.c (objc_language_data): Likewise.
4063 * opencl-lang.c (opencl_language_data): Likewise.
4064 * p-lang.c (pascal_language_data): Likewise.
4065 * rust-lang.c (rust_language_data): Likewise.
4066
efdf6a73
AB
40672020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4068
4069 * ada-lang.c (ada_language_data): Remove la_range_check
4070 initializer.
4071 * c-lang.c (c_language_data): Likewise.
4072 (cplus_language_data): Likewise.
4073 (asm_language_data): Likewise.
4074 (minimal_language_data): Likewise.
4075 * d-lang.c (d_language_data): Likewise.
4076 * f-lang.c (f_language_data): Likewise.
4077 (f_language::range_checking_on_by_default): New member function.
4078 * go-lang.c (go_language_data): Remove la_range_check initializer.
4079 * language.c (enum range_mode): Moved here from language.h.
4080 (range_mode): Made static.
4081 (show_range_command): Update to use
4082 range_checking_on_by_default.
4083 (set_range_command): Likewise.
4084 (set_range_case): Likewise.
4085 (unknown_language_data): Remove la_range_check initializer.
4086 (auto_language_data): Likewise.
4087 * language.h (range_mode): Delete. Enum definition moved to
4088 language.c.
4089 (language_data): Remove la_range_check field.
4090 (language_defn::range_checking_on_by_default): New member
4091 function.
4092 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
4093 (m2_language::range_checking_on_by_default): New member function.
4094 * objc-lang.c (objc_language_data): Remove la_range_check
4095 initializer.
4096 * opencl-lang.c (opencl_language_data): Likewise.
4097 * p-lang.c (pascal_language_data): Likewise.
4098 (pascal_language::range_checking_on_by_default): New member
4099 function.
4100 * rust-lang.c (rust_language_data): Remove la_range_check
4101 initializer.
4102 (rust_language::range_checking_on_by_default): New member
4103 function.
4104
bf92aec5
AB
41052020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4106
4107 * dwarf2/read.c (dwarf2_physname): Remove special case for
4108 language_go.
4109 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
4110 member function.
4111
d3355e4d
AB
41122020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4113
4114 * ada-lang.c (ada_language_data): Remove
4115 la_store_sym_names_in_linkage_form_p initializer.
4116 (ada_language::store_sym_names_in_linkage_form_p): New member
4117 function.
4118 * c-lang.c (c_language_data): Remove
4119 la_store_sym_names_in_linkage_form_p initializer.
4120 (c_language::store_sym_names_in_linkage_form_p): New member
4121 function.
4122 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
4123 initializer.
4124 (asm_language_data): Likewise.
4125 (asm_language::store_sym_names_in_linkage_form_p): New member
4126 function.
4127 (minimal_language_data): Remove
4128 la_store_sym_names_in_linkage_form_p initializer.
4129 (minimal_language::store_sym_names_in_linkage_form_p): New member
4130 function.
4131 * d-lang.c (d_language_data): Remove
4132 la_store_sym_names_in_linkage_form_p initializer.
4133 * dwarf2/read.c (dwarf2_physname): Update call to
4134 store_sym_names_in_linkage_form_p.
4135 * f-lang.c (f_language_data): Remove
4136 la_store_sym_names_in_linkage_form_p initializer.
4137 * go-lang.c (go_language_data): Remove
4138 la_store_sym_names_in_linkage_form_p initializer.
4139 * language.c (unknown_language_data): Remove
4140 la_store_sym_names_in_linkage_form_p initializer.
4141 (unknown_language::store_sym_names_in_linkage_form_p): New member
4142 function.
4143 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
4144 initializer.
4145 (auto_language::store_sym_names_in_linkage_form_p): New member
4146 function.
4147 * language.h (language_data): Remove
4148 la_store_sym_names_in_linkage_form_p member variable.
4149 (language_defn::store_sym_names_in_linkage_form_p): New member
4150 function.
4151 * m2-lang.c (m2_language_data): Remove
4152 la_store_sym_names_in_linkage_form_p initializer.
4153 * objc-lang.c (objc_language_data): Likewise.
4154 * opencl-lang.c (opencl_language_data): Likewise.
4155 * p-lang.c (pascal_language_data): Likewise.
4156 * rust-lang.c (rust_language_data): Likewise.
4157
22c12a6c
AB
41582020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4159
4160 * ada-lang.c (ada_language_data): Remove string_lower_bound
4161 initializer.
4162 * c-lang.c (c_language_data): Likewise.
4163 (cplus_language_data): Likewise.
4164 (asm_language_data): Likewise.
4165 (minimal_language_data): Likewise.
4166 * d-lang.c (d_language_data): Likewise.
4167 * f-lang.c (f_language_data): Likewise.
4168 * go-lang.c (go_language_data): Likewise.
4169 * language.c (unknown_language_data): Likewise.
4170 (auto_language_data): Likewise.
4171 * language.h (language_data): Remove string_lower_bound field.
4172 (language_defn::string_lower_bound): New member function.
4173 * m2-lang.c (m2_language_data): Remove string_lower_bound
4174 initializer.
4175 (m2_language::string_lower_bound): New member function.
4176 * objc-lang.c (objc_language_data): Remove string_lower_bound
4177 initializer.
4178 * opencl-lang.c (opencl_language_data): Likewise.
4179 * p-lang.c (pascal_language_data): Likewise.
4180 * rust-lang.c (rust_language_data): Likewise.
4181 * valops.c (value_cstring): Update call to string_lower_bound.
4182 (value_string): Likewise.
4183 * value.c (allocate_repeated_value): Likewise.
4184
1c236ddd
AB
41852020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4186
4187 * valops.c (value_repeat): Fix incorrect argument name in comment.
4188
67bd3fd5
AB
41892020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4190
4191 * ada-lang.c (ada_language_data): Remove c_style_arrays
4192 initializer.
4193 (ada_language::c_style_arrays_p): New member fuction.
4194 * c-lang.c (c_language_data): Remove c_style_arrays
4195 initializer.
4196 (cplus_language_data): Likewise.
4197 (asm_language_data): Likewise.
4198 (minimal_language_data): Likewise.
4199 * d-lang.c (d_language_data): Likewise.
4200 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
4201 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
4202 (f_language::c_style_arrays_p): New member function.
4203 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
4204 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
4205 * language.c (unknown_language_data): Remove c_style_arrays
4206 initializer.
4207 (auto_language_data): Likewise.
4208 * language.h (language_data): Remove c_style_arrays field.
4209 (language_defn::c_style_arrays_p): New member function.
4210 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
4211 (m2_language::c_style_arrays_p): New member function.
4212 * objc-lang.c (objc_language_data): Remove c_style_arrays
4213 initializer.
4214 * opencl-lang.c (opencl_language_data): Likewise.
4215 * p-lang.c (pascal_language_data): Likewise.
4216 * rust-lang.c (rust_language_data): Likewise.
4217 * valarith.c (value_subscript): Update call to c_style_arrays_p,
4218 and update local variable to a bool.
4219 * valops.c (value_cast): Update call to c_style_arrays_p.
4220 (value_array): Likewise.
4221 * value.c (coerce_array): Likewise.
4222
85967615
AB
42232020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4224
4225 * ada-lang.c (ada_language_data): Remove la_language initializer.
4226 * c-lang.c (c_language_data): Likewise.
4227 (cplus_language_data): Likewise.
4228 (asm_language_data): Likewise.
4229 (minimal_language_data): Likewise.
4230 * d-lang.c (d_language_data): Likewise.
4231 * f-lang.c (f_language_data): Likewise.
4232 * go-lang.c (go_language_data): Likewise.
4233 * language.c (unknown_language_data): Likewise.
4234 (auto_language_data): Likewise.
4235 * language.h (language_data): Remove la_language field.
4236 (language_defn::language_defn): Initialise la_language field.
4237 (language_defn::la_language): New member variable.
4238 * m2-lang.c (m2_language_data): Remove la_language field.
4239 * objc-lang.c (objc_language_data): Likewise.
4240 * opencl-lang.c (opencl_language_data): Likewise.
4241 * p-lang.c (pascal_language_data): Likewise.
4242 * rust-lang.c (rust_language_data): Likewise.
4243
e171d6f1
AB
42442020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4245
4246 * ada-lang.c (ada_extensions): Delete, moved into
4247 ada_language::filename_extensions.
4248 (ada_language_data): Remove la_filename_extensions initializer.
4249 (ada_language::filename_extensions): New member function.
4250 * c-lang.c (c_extensions): Delete, moved into
4251 c_language::filename_extensions.
4252 (c_language_data): Remove la_filename_extensions initializer.
4253 (c_language::filename_extensions): New member function.
4254 (cplus_extensions): Delete, moved into
4255 cplus_language::filename_extensions.
4256 (cplus_language_data): Remove la_filename_extensions initializer.
4257 (cplus_language::filename_extensions): New member function.
4258 (asm_extensions): Delete, moved into
4259 asm_language::filename_extensions.
4260 (asm_language_data): Remove la_filename_extensions initializer.
4261 (asm_language::filename_extensions): New member function.
4262 (minimal_language_data): Remove la_filename_extensions
4263 initializer.
4264 * d-lang.c (d_extensions): Delete, moved into
4265 d_language::filename_extensions.
4266 (d_language_data): Remove la_filename_extensions initializer.
4267 (d_language::filename_extensions): New member function.
4268 * f-lang.c (f_extensions): Delete, moved into
4269 f_language::filename_extensions.
4270 (f_language_data): Remove la_filename_extensions initializer.
4271 (f_language::filename_extensions): New member function.
4272 * go-lang.c (go_language_data): Remove la_filename_extensions
4273 initializer.
4274 * language.c (add_set_language_command): Update now that
4275 filename_extensions returns a vector.
4276 (unknown_language_data): Remove la_filename_extensions
4277 initializer.
4278 (auto_language_data): Likewise.
4279 * language.h (language_data): Remove la_filename_extensions field.
4280 (language_defn::filename_extensions): New member function.
4281 * m2-lang.c (m2_language_data): Remove la_filename_extensions
4282 initializer.
4283 * objc-lang.c (objc_extensions): Delete, moved into
4284 objc_language::filename_extensions.
4285 (objc_language_data): Remove la_filename_extensions initializer.
4286 (objc_language::filename_extensions): New member function.
4287 * opencl-lang.c (opencl_language_data): Remove
4288 la_filename_extensions initializer.
4289 * p-lang.c (pascal_extensions): Delete, moved into
4290 pascal_language::filename_extensions.
4291 (pascal_language_data): Remove la_filename_extensions initializer.
4292 (pascal_language::filename_extensions): New member function.
4293 * rust-lang.c (rust_extensions): Delete, moved into
4294 rust_language::filename_extensions.
4295 (rust_language_data): Remove la_filename_extensions initializer.
4296 (rust_language::filename_extensions): New member function.
4297 * symfile.c (add_filename_language): Add new assert.
4298
6f7664a9
AB
42992020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4300
4301 * ada-lang.c (ada_language_data): Remove la_name and
4302 la_natural_name initializers.
4303 (ada_language::name): New member function.
4304 (ada_language::natural_name): New member function.
4305 * c-lang.c (c_language_data): Remove la_name and
4306 la_natural_name initializers.
4307 (c_language::name): New member function.
4308 (c_language::natural_name): New member function.
4309 (cplus_language_data): Remove la_name and
4310 la_natural_name initializers.
4311 (cplus_language::name): New member function.
4312 (cplus_language::natural_name): New member function.
4313 (asm_language_data): Remove la_name and
4314 la_natural_name initializers.
4315 (asm_language::name): New member function.
4316 (asm_language::natural_name): New member function.
4317 (minimal_language_data): Remove la_name and
4318 la_natural_name initializers.
4319 (minimal_language::name): New member function.
4320 (minimal_language::natural_name): New member function.
4321 * compile/compile.c (compile_to_object): Update call to
4322 lanugage_defn::name.
4323 * d-lang.c (d_language_data): Remove la_name and
4324 la_natural_name initializers.
4325 (d_language::name): New member function.
4326 (d_language::natural_name): New member function.
4327 * expprint.c (print_subexp_standard): Update call to
4328 language_defn::name.
4329 (dump_raw_expression): Likewise
4330 (dump_prefix_expression): Likewise.
4331 * f-lang.c (f_language_data): Remove la_name and
4332 la_natural_name initializers.
4333 (f_language::name): New member function.
4334 (f_language::natural_name): New member function.
4335 * go-lang.c (go_language_data): Remove la_name and
4336 la_natural_name initializers.
4337 (go_language::name): New member function.
4338 (go_language::natural_name): New member function.
4339 * language.c (show_language_command): Update call to
4340 language_defn::name.
4341 (set_language_command): Likewise.
4342 (language_enum): Likewise.
4343 (language_str): Likewise.
4344 (add_set_language_command): Likewise, use
4345 language_defn::natural_name in the doc string.
4346 (unknown_language_data): Remove la_name and
4347 la_natural_name initializers.
4348 (unknown_language::name): New member function.
4349 (unknown_language::natural_name): New member function.
4350 (auto_language_data): Remove la_name and
4351 la_natural_name initializers.
4352 (auto_language::name): New member function.
4353 (auto_language::natural_name): New member function.
4354 (language_lookup_primitive_type_as_symbol): Update call to
4355 language_defn::name.
4356 * language.h (language_data): Remove la_name and la_natural_name
4357 member variables.
4358 (language_defn::name): New member function.
4359 (language_defn::natural_name): New member function.
4360 * m2-lang.c (m2_language_data): Remove la_name and
4361 la_natural_name initializers.
4362 (m2_language::name): New member function.
4363 (m2_language::natural_name): New member function.
4364 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
4365 language_defn::natural_name.
4366 * objc-lang.c (objc_language_data): Remove la_name and
4367 la_natural_name initializers.
4368 (objc_language::name): New member function.
4369 (objc_language::natural_name): New member function.
4370 * opencl-lang.c (opencl_language_data): Remove la_name and
4371 la_natural_name initializers.
4372 (opencl_language::name): New member function.
4373 (opencl_language::natural_name): New member function.
4374 * p-lang.c (pascal_language_data): Remove la_name and
4375 la_natural_name initializers.
4376 (pascal_language::name): New member function.
4377 (pascal_language::natural_name): New member function.
4378 * rust-lang.c (rust_language_data): Remove la_name and
4379 la_natural_name initializers.
4380 (rust_language::name): New member function.
4381 (rust_language::natural_name): New member function.
4382 * symtab.c (lookup_language_this): Update call to
4383 language_defn::name.
4384
5bae7c4e
AB
43852020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4386
4387 * ada-lang.c (ada_language_data): Remove la_name_of_this
4388 initializer.
4389 * ax-gdb.c (gen_expr): Update call to name_of_this.
4390 * c-exp.y (classify_name): Likewise.
4391 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
4392 (cplus_language_data): Likewise.
4393 (cplus_language::name_of_this): New member function.
4394 (asm_language_data): Remove la_name_of_this initializer.
4395 (minimal_language_data): Likewise.
4396 * d-lang.c (d_language_data): Likewise.
4397 (d_language::name_of_this): New member function.
4398 * expprint.c (print_subexp_standard): Update call to name_of_this.
4399 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
4400 * go-lang.c (go_language_data): Likewise.
4401 * language.c (unknown_language_data): Likewise.
4402 (unknown_language::name_of_this): New member function.
4403 (auto_language_data): Remove la_name_of_this initializer.
4404 (auto_language::name_of_this): New member function.
4405 * language.h (language_data): Delete la_name_of_this member
4406 variable.
4407 (language_defn::name_of_this): New member function.
4408 * m2-lang.c (m2_language_data): Remove la_name_of_this
4409 initializer.
4410 * objc-lang.c (objc_language_data): Likewise.
4411 (objc_language::name_of_this): New member function.
4412 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
4413 initializer.
4414 * p-lang.c (pascal_language_data): Likewise.
4415 (pascal_language::name_of_this): New member function.
4416 * rust-lang.c (rust_language_data): Remove la_name_of_this
4417 initializer.
4418 * symtab.c (lookup_language_this): Update call to name_of_this.
4419 (lookup_symbol_aux): Likewise.
4420 * valops.c (value_of_this): Likewise.
4421
22e3f3ed
AB
44222020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4423
4424 * ada-lang.c (ada_language_data): Remove
4425 la_struct_too_deep_ellipsis initializer.
4426 (ada_language::struct_too_deep_ellipsis): New member function.
4427 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
4428 initializer.
4429 (cplus_language_data): Likewise.
4430 (asm_language_data): Likewise.
4431 (minimal_language_data): Likewise.
4432 * cp-valprint.c (cp_print_value): Update call to
4433 struct_too_deep_ellipsis.
4434 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
4435 initializer.
4436 * f-lang.c (f_language_data): Likewise.
4437 (f_language::struct_too_deep_ellipsis): New member function.
4438 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
4439 initializer.
4440 * language.c (unknown_language_data): Likewise.
4441 (auto_language_data): Likewise.
4442 * language.h (language_data): Delete la_struct_too_deep_ellipsis
4443 member variable.
4444 (language_defn::struct_too_deep_ellipsis): New member function.
4445 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
4446 initializer.Q
4447 * objc-lang.c (objc_language_data): Likewise.
4448 * opencl-lang.c (opencl_language_data): Likewise.
4449 * p-lang.c (pascal_language_data): Likewise.
4450 * rust-lang.c (rust_language_data): Likewise.
4451 * valprint.c (val_print_check_max_depth): Update call to
4452 struct_too_deep_ellipsis.
4453
ed29e1c7
FW
44542020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
4455
4456 * MAINTAINERS (Write After Approval): Add myself.
4457
12d8f940
TT
44582020-09-15 Tom Tromey <tom@tromey.com>
4459
4460 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
4461 Remove.
4462
6b5a7bc7
TT
44632020-09-15 Tom Tromey <tom@tromey.com>
4464
4465 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
4466 and TYPE_CODE_METHODPTR cases.
4467 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
4468 (c_value_print_inner): Update.
4469 * valprint.c (generic_value_print_memberptr): New function, from
4470 c_value_print_memberptr.
4471 (generic_value_print): Use it. Call cplus_print_method_ptr.
4472
47f0e2ff
TT
44732020-09-15 Tom Tromey <tromey@adacore.com>
4474
4475 * python/python-internal.h (PyInt_FromLong): Remove define.
4476 * python/py-value.c (convert_value_from_python): Use
4477 gdb_py_object_from_longest.
4478 * python/py-type.c (typy_get_code): Use
4479 gdb_py_object_from_longest.
4480 * python/py-symtab.c (salpy_get_line): Use
4481 gdb_py_object_from_longest.
4482 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
4483 gdb_py_object_from_longest.
4484 * python/py-record.c (recpy_gap_reason_code): Use
4485 gdb_py_object_from_longest.
4486 * python/py-record-btrace.c (recpy_bt_insn_size)
4487 (recpy_bt_func_level, btpy_list_count): Use
4488 gdb_py_object_from_longest.
4489 * python/py-infthread.c (gdbpy_create_ptid_object): Use
4490 gdb_py_object_from_longest. Fix error handling.
4491 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
4492 gdb_py_object_from_longest.
4493 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
4494 gdb_py_object_from_longest.
4495 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
4496 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
4497 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
4498
512116ce
TT
44992020-09-15 Tom Tromey <tromey@adacore.com>
4500
4501 * python/python.c (gdbpy_parameter_value): Use
4502 gdb_py_object_from_ulongest.
4503
4ab1029c
TT
45042020-09-15 Tom Tromey <tromey@adacore.com>
4505
4506 * python/py-infevents.c (create_register_changed_event_object):
4507 Use gdb_py_object_from_longest.
4508 * python/py-exitedevent.c (create_exited_event_object): Use
4509 gdb_py_object_from_longest.
4510
062534d4
TT
45112020-09-15 Tom Tromey <tromey@adacore.com>
4512
4513 * python/python.c (gdbpy_parameter_value): Use
4514 gdb_py_object_from_longest.
4515 * python/py-type.c (convert_field, typy_range): Use
4516 gdb_py_object_from_longest.
4517 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
4518 gdb_py_object_from_longest.
4519 * python/py-lazy-string.c (stpy_get_length): Use
4520 gdb_py_object_from_longest.
4521 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
4522 gdb_py_object_from_longest.
4523 * python/py-infevents.c (create_memory_changed_event_object): Use
4524 gdb_py_object_from_longest.
4525 * python/py-inferior.c (infpy_get_num): Use
4526 gdb_py_object_from_longest.
4527 (infpy_get_pid): Likewise.
4528
d1cab987
TT
45292020-09-15 Tom Tromey <tromey@adacore.com>
4530
4531 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
4532 defines.
4533 * python/py-value.c (valpy_long): Use
4534 gdb_py_object_from_ulongest.
4535 * python/py-symtab.c (salpy_get_pc): Use
4536 gdb_py_object_from_ulongest.
4537 (salpy_get_last): Likewise.
4538 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
4539 gdb_py_object_from_ulongest.
4540 * python/py-lazy-string.c (stpy_get_address): Use
4541 gdb_py_object_from_ulongest.
4542 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
4543 * python/py-arch.c (archpy_disassemble): Use
4544 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
4545 error handling.
4546
4bde49dc
TT
45472020-09-15 Tom Tromey <tromey@adacore.com>
4548
4549 * python/python-internal.h (gdb_py_long_from_longest): Remove
4550 defines.
4551 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
4552 * python/py-type.c (convert_field, typy_get_sizeof): Use
4553 gdb_py_object_from_longest.
4554 * python/py-record-btrace.c (btpy_list_index): Use
4555 gdb_py_object_from_longest.
4556
37431074
TT
45572020-09-15 Tom Tromey <tromey@adacore.com>
4558
4559 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
4560 * python/py-record.c (recpy_element_number): Use
4561 gdb_py_object_from_longest.
4562 (recpy_gap_number): Likewise.
4563
cbe25684
TT
45642020-09-15 Tom Tromey <tromey@adacore.com>
4565
4566 * top.c (ui::ui): Update.
4567 (highest_ui_num): Remove.
4568 * top.h (struct ui) <num>: Remove.
4569
db92ac45
TT
45702020-09-15 Tom Tromey <tromey@adacore.com>
4571
4572 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
4573 * ui-style.c (ansi_regex_text): Now array.
4574 * rust-exp.y (number_regex_text): Now array.
4575 * linespec.c (linespec_quote_characters): Now array.
4576 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
4577 Now arrays.
4578
d2b31b67
SM
45792020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4580
4581 * debuginfod-support.c (debuginfod_client_deleter): New.
4582 (debuginfod_client_up): New.
4583 (debuginfod_init): Return debuginfod_client_up.
4584 (debuginfod_source_query): Adjust.
4585 (debuginfod_debuginfo_query): Adjust.
4586
3246bd8e
SM
45872020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4588
4589 * debuginfod-support.c (debuginfod_source_query): Use
4590 make_unique_xstrdup.
4591
10242f36
SM
45922020-09-14 Simon Marchi <simon.marchi@efficios.com>
4593
4594 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
4595 with `type::instance_flags`.
4596
e1044e6a
MM
45972020-09-14 Michael Mullin <masmullin@gmail.com>
4598
4599 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
4600 Remove baton parameter.
4601
04902b09
PA
46022020-09-14 Pedro Alves <pedro@palves.net>
4603
4604 * Makefile.in (SELFTESTS_SRCS): Add
4605 unittests/enum-flags-selftests.c.
4606 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
4607 btrace_function_flags instead of enum btrace_function_flag.
4608 * compile/compile-c-types.c (convert_qualified): Use
4609 enum_flags::raw.
4610 * compile/compile-cplus-symbols.c (convert_one_symbol)
4611 (convert_symbol_bmsym):
4612 * compile/compile-cplus-types.c (compile_cplus_convert_method)
4613 (compile_cplus_convert_struct_or_union_methods)
4614 (compile_cplus_instance::convert_qualified_base):
4615 * go-exp.y (parse_string_or_char): Add cast to int.
4616 * unittests/enum-flags-selftests.c: New file.
4617 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
4618 type to btrace_thread_flags from btrace_thread_flag.
4619 (record_btrace_cancel_resume, record_btrace_step_thread): Change
4620 local's type to btrace_thread_flags from btrace_thread_flag. Add
4621 cast in DEBUG call.
4622
69896a2c
PA
46232020-09-14 Pedro Alves <pedro@palves.net>
4624
4625 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
4626 * gdbtypes.c (address_space_name_to_int): Rename to ...
4627 (address_space_name_to_type_instance_flags): ... this.
4628 (address_space_int_to_name): Rename to ...
4629 (address_space_type_instance_flags_to_name): ... this.
4630 * gdbtypes.h (address_space_name_to_int): Rename to ...
4631 (address_space_name_to_type_instance_flags): ... this.
4632 (address_space_int_to_name): Rename to ...
4633 (address_space_type_instance_flags_to_name): ... this.
4634 * type-stack.c (type_stack::insert): Adjust to rename.
4635 * type-stack.h (type_stack::insert): Likewise.
4636
314ad88d
PA
46372020-09-14 Pedro Alves <pedro@palves.net>
4638 Andrew Burgess <andrew.burgess@embecosm.com>
4639
4640 * avr-tdep.c (avr_address_class_type_flags): Return
4641 type_instance_flags.
4642 (avr_address_class_type_flags_to_name): Take a
4643 type_instance_flags.
4644 (avr_address_class_name_to_type_flags): Return bool and take a
4645 type_instance_flags.
4646 * d-lang.c (build_d_types): Use type::set_instance_flags.
4647 * ft32-tdep.c (ft32_address_class_type_flags): Return
4648 type_instance_flags.
4649 (ft32_address_class_type_flags_to_name): Take a
4650 type_instance_flags.
4651 (ft32_address_class_name_to_type_flags): Return bool and take a
4652 type_instance_flags.
4653 (ft32_gdbarch_init): Use type::set_instance_flags.
4654 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
4655 * gdbarch.h, gdbarch.c: Regenerate.
4656 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
4657 (address_class_name_to_type_flags): Use type_instance_flags and
4658 bool.
4659 * gdbtypes.c (address_space_name_to_int)
4660 (address_space_int_to_name, make_qualified_type): Use
4661 type_instance_flags.
4662 (make_qualified_type): Use type_instance_flags and
4663 type::set_instance_flags.
4664 (make_type_with_address_space, make_cv_type, make_vector_type)
4665 (check_typedef): Use type_instance_flags.
4666 (recursive_dump_type): Cast type_instance_flags to unsigned for
4667 printing.
4668 (copy_type_recursive): Use type::set_instance_flags.
4669 (gdbtypes_post_init): Use type::set_instance_flags.
4670 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
4671 <m_instance_flags>: ... this.
4672 <instance_flags, set_instance_flags>: New methods.
4673 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
4674 (SET_TYPE_INSTANCE_FLAGS): New.
4675 (address_space_name_to_int, address_space_int_to_name)
4676 (make_type_with_address_space): Pass flags using
4677 type_instance_flags instead of int.
4678 * stabsread.c (cleanup_undefined_types_noname): Use
4679 type::set_instance_flags.
4680 * s390-tdep.c (s390_address_class_type_flags): Return
4681 type_instance_flags.
4682 (s390_address_class_type_flags_to_name): Take a
4683 type_instance_flags.
4684 (s390_address_class_name_to_type_flags): Return bool and take a
4685 type_instance_flags.
4686 * type-stack.c (type_stack::follow_types): Use
4687 type_instance_flags.
4688 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
4689
27087b7f
TT
46902020-09-14 Tom Tromey <tromey@adacore.com>
4691
4692 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
4693 * x86-tdep.c (x86_is_thunk_register_name)
4694 (x86_in_indirect_branch_thunk): Update.
4695 * sparc64-tdep.c (sparc64_fpu_register_names)
4696 (sparc64_cp0_register_names, sparc64_register_names)
4697 (sparc64_pseudo_register_names): Now const.
4698 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
4699 cp0_registers_num>: Now const.
4700 * sparc-tdep.c (sparc_core_register_names)
4701 (sparc32_fpu_register_names, sparc32_cp0_register_names)
4702 (sparc32_pseudo_register_names): Now const.
4703 (validate_tdesc_registers): Update.
4704 * rust-lang.c (rust_extensions): Now const.
4705 * p-lang.c (p_extensions): Now const.
4706 * objc-lang.c (objc_extensions): Now const.
4707 * nto-tdep.c (nto_thread_state_str): Now const.
4708 * moxie-tdep.c (moxie_register_names): Now const.
4709 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
4710 Now const.
4711 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
4712 (mips_linux_reg_names): Now const.
4713 (mips_gdbarch_init): Update.
4714 * microblaze-tdep.c (microblaze_register_names): Now const.
4715 * m68k-tdep.c (m68k_register_names): Now const.
4716 * m32r-tdep.c (m32r_register_names): Now const.
4717 * ia64-tdep.c (ia64_register_names): Now const.
4718 * i386-tdep.h (struct gdbarch_tdep) <register_names,
4719 ymmh_register_names, ymm16h_regnum, mpx_register_names,
4720 k_register_names, zmmh_register_names, xmm_avx512_register_names,
4721 ymm_avx512_register_names, pkeys_register_names>: Now const.
4722 * i386-tdep.c (i386_register_names, i386_zmm_names)
4723 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
4724 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
4725 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
4726 * f-lang.c (f_extensions): Now const.
4727 * d-lang.c (d_extensions): Now const.
4728 * csky-tdep.c (csky_register_names): Now const.
4729 * charset.c (default_charset_names, charset_enum): Now const.
4730 (_initialize_charset): Update.
4731 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
4732 const.
4733 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
4734 (bsd_uthread_solib_loaded): Update.
4735 (bsd_uthread_state): Now const.
4736 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
4737 (amd64_ymm_avx512_names, amd64_ymmh_names)
4738 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
4739 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
4740 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
4741 (amd64_dword_names): Now const.
4742 * agent.c (can_use_agent_enum): Now const.
4743 * ada-tasks.c (task_states, long_task_states): Now const.
4744 * ada-lang.c (known_runtime_file_name_patterns)
4745 (known_auxiliary_function_name_patterns, attribute_names)
4746 (standard_exc, ada_extensions): Now const.
4747
89806626
SM
47482020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4749
4750 * bcache.h (struct bcache) <bcache>: Remove constructor.
4751 <m_hash_function, m_compare_function>: Remove.
4752 <~bcache>: Make virtual.
4753 <compare>: Remove static method, introduce virtual method.
4754 <default_hash>: Remove.
4755 <hash>: New virtual method.
4756 * bcache.c (bcache::expand_hash_table): Update.
4757 (bcache::insert): Update.
4758 (bcache::hash): New.
4759 (bcache::compare): Update comment and parameter names.
4760 * gdbtypes.c (types_deeply_equal): Update.
4761 * psymtab.h (struct psymbol_bcache): New struct.
4762 (class psymtab_storage) <psymtab_storage>: Make default.
4763 <psymbol_cache>: Change type to psymbol_bcache.
4764 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
4765 (psymbol_hash): Change to...
4766 (psymbol_bcache::hash): ... this.
4767 (psymbol_compare): Change to...
4768 (psymbol_bcache::compare): ... this.
4769
677c92fe
SM
47702020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4771
4772 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
4773 checking for initial lwp.
4774
3eba3a01
TT
47752020-09-14 Tom Tromey <tromey@adacore.com>
4776
4777 * m68k-tdep.c (m68k_extract_return_value): Use
4778 pointer_result_regnum.
4779 (m68k_store_return_value): Likewise.
4780 (m68k_reg_struct_return_p): Handle vectors and arrays.
4781 (m68k_return_value): Handle arrays.
4782 (m68k_svr4_return_value): Fix single-element aggregate handling.
4783 Handle long double. Adjust for embedded ABI.
4784 (m68k_svr4_init_abi): Set pointer_result_regnum.
4785 (m68k_embedded_init_abi): New function.
4786 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
4787 (m68k_osabi_sniffer): New function.
4788 (_initialize_m68k_tdep): Register osabi sniffer.
4789 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
4790 member.
4791
33f4dd48
SM
47922020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4793
4794 * xml-support.c (xml_fetch_content_from_file): Replace xfree
4795 with gdb::unique_xmalloc_ptr<char>.
4796
8400a90d
SM
47972020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4798
4799 * xml-support.h (xml_fetch_another): Change type to be a
4800 function_view.
4801 (xml_process_xincludes): Remove baton parameter.
4802 (xml_fetch_content_from_file): Change baton parameter to
4803 dirname.
4804 * xml-support.c (struct xinclude_parsing_data)
4805 <xinclude_parsing_data>: Remove baton parameter.
4806 <fetcher_baton>: Remove.
4807 (xinclude_start_include): Adjust.
4808 (xml_process_xincludes): Adjust.
4809 (xml_fetch_content_from_file): Replace baton parameter with
4810 dirname.
4811 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
4812 (xml_init_syscalls_info): Use a lambda.
4813 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
4814 (file_read_description_xml): Use a lambda.
4815 (fetch_available_features_from_target): Change baton parameter
4816 to target_ops.
4817 (target_read_description_xml): Use a lambda.
4818 (target_fetch_description_xml): Use a lambda.
4819 (string_read_description_xml): Update.
4820
04f5bab2
SM
48212020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4822
4823 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
4824 uses with type::endianity_is_not_default.
4825
db558e34
SM
48262020-09-14 Simon Marchi <simon.marchi@efficios.com>
4827
4828 * gdbtypes.h (struct type) <endianity_is_not_default,
4829 set_endianity_is_not_default>: New methods.
4830 (TYPE_ENDIANITY_NOT_DEFAULT): Use
4831 type::endianity_is_not_default, change all write call sites to
4832 use type::set_endianity_is_not_default.
4833
22c4c60c
SM
48342020-09-14 Simon Marchi <simon.marchi@efficios.com>
4835
4836 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
4837 uses with type::is_fixed_instance.
4838
9cdd0d12
SM
48392020-09-14 Simon Marchi <simon.marchi@efficios.com>
4840
4841 * gdbtypes.h (struct type) <is_fixed_instance,
4842 set_is_fixed_instance>: New methods.
4843 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
4844 write call sites to use type::set_is_fixed_instance.
4845
0becda7a
SM
48462020-09-14 Simon Marchi <simon.marchi@efficios.com>
4847
4848 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
4849 uses with type::is_gnu_ifunc.
4850
03cc7249
SM
48512020-09-14 Simon Marchi <simon.marchi@efficios.com>
4852
4853 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
4854 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
4855 use type::set_is_gnu_ifunc.
4856
3f46044c
SM
48572020-09-14 Simon Marchi <simon.marchi@efficios.com>
4858
4859 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
4860 uses with type::stub_is_supported.
4861
9baccff6
SM
48622020-09-14 Simon Marchi <simon.marchi@efficios.com>
4863
4864 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
4865 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
4866 use type::set_stub_is_supported.
4867
bd63c870
SM
48682020-09-14 Simon Marchi <simon.marchi@efficios.com>
4869
4870 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
4871 uses with type::is_vector.
4872
2062087b
SM
48732020-09-14 Simon Marchi <simon.marchi@efficios.com>
4874
4875 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
4876 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
4877 use type::set_is_vector.
4878
a409645d
SM
48792020-09-14 Simon Marchi <simon.marchi@efficios.com>
4880
4881 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
4882 uses with type::has_varargs.
4883
1d6286ed
SM
48842020-09-14 Simon Marchi <simon.marchi@efficios.com>
4885
4886 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
4887 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
4888 use type::set_has_varargs.
4889
7f9f399b
SM
48902020-09-14 Simon Marchi <simon.marchi@efficios.com>
4891
4892 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
4893 uses with type::is_prototyped.
4894
27e69b7a
SM
48952020-09-14 Simon Marchi <simon.marchi@efficios.com>
4896
4897 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
4898 New methods.
4899 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
4900 call sites to use type::set_is_prototyped.
4901
d2183968
SM
49022020-09-14 Simon Marchi <simon.marchi@efficios.com>
4903
4904 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
4905 uses with type::target_is_stub.
4906
8f53807e
SM
49072020-09-14 Simon Marchi <simon.marchi@efficios.com>
4908
4909 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
4910 New methods.
4911 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
4912 sites to use type::set_target_is_stub.
4913
e46d3488
SM
49142020-09-14 Simon Marchi <simon.marchi@efficios.com>
4915
4916 * gdbtypes.h (TYPE_STUB): Remove, replace all
4917 uses with type::is_stub.
4918
b4b73759
SM
49192020-09-14 Simon Marchi <simon.marchi@efficios.com>
4920
4921 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
4922 (TYPE_STUB): Use type::is_stub, change all write call sites to
4923 use type::set_is_stub.
4924
20ce4123
SM
49252020-09-14 Simon Marchi <simon.marchi@efficios.com>
4926
4927 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
4928 type::has_no_signedness.
4929
15152a54
SM
49302020-09-14 Simon Marchi <simon.marchi@efficios.com>
4931
4932 * gdbtypes.h (struct type) <has_no_signedness,
4933 set_has_no_signedness>: New methods.
4934 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
4935 call sites to use type::set_has_no_signedness.
4936
c6d940a9
SM
49372020-09-14 Simon Marchi <simon.marchi@efficios.com>
4938
4939 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
4940 type::is_unsigned.
4941
653223d3
SM
49422020-09-14 Simon Marchi <simon.marchi@efficios.com>
4943
4944 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
4945 methods.
4946 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
4947 sites to use type::set_is_unsigned.
4948
55ea94da 49492020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 4950 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 4951
e851246a
SM
4952 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
4953 pointer and stack frame offset when unwinding.
55ea94da 4954
6791b117
PA
49552020-09-13 Pedro Alves <pedro@palves.net>
4956
4957 * NEWS: Document "-break-insert --qualified".
4958 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
4959
77f2120b
PA
49602020-09-13 Pedro Alves <pedro@palves.net>
4961
4962 * linespec.c (classify_mtype, compare_msyms): Delete.
4963 (search_minsyms_for_name): Remove classification logic. Instead
4964 filter out trampoline symbols if we also found an external
4965 function of the same name.
4966
ed6a896c
JB
49672020-09-13 Joel Brobecker <brobecker@adacore.com>
4968
4969 * NEWS: Create a new section for the next release branch.
4970 Rename the section of the current branch, now that it has
4971 been cut.
4972
32aea73e
JB
49732020-09-13 Joel Brobecker <brobecker@adacore.com>
4974
4975 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
4976 * version.in: Bump version to 11.0.50.DATE-git.
4977
8087c3fa
JB
49782020-09-12 Joel Brobecker <brobecker@adacore.com>
4979
4980 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
4981
2a67f09d
FW
49822020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
4983 Felix Willgerodt <Felix.Willgerodt@intel.com>
4984
4985 * gdbarch.sh: Added bfloat16 type.
4986 * gdbarch.c: Regenerated.
4987 * gdbarch.h: Regenerated.
4988 * gdbtypes.c (floatformats_bfloat16): New struct.
4989 (gdbtypes_post_init): Add builtin_bfloat16.
4990 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
4991 (floatformats_bfloat16): New struct.
4992 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
4993 (i386_ymm_type): Add field "v16_bfloat16"
4994 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
4995 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
4996 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
4997 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
4998 * features/i386/64bit-avx512.xml: Add bfloat16 type.
4999 * features/i386/64bit-avx512.c: Regenerated.
5000 * features/i386/64bit-sse.xml: Add bfloat16 type.
5001 * features/i386/64bit-sse.c: Regenerated.
5002
1347d111
FW
50032020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
5004
5005 * i386-tdep.c (i386_zmm_type): Fix field names.
5006 (i386_ymm_type): Fix field names.
5007
7a4e8e7d
TBA
50082020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5009
5010 * breakpoint.c: Fix typo in the help message of the
5011 "set breakpoint condition-evaluation" command.
5012
cf4ac4be
KR
50132020-09-10 Kamil Rytarowski <n54@gmx.com>
5014
5015 * nbsd-nat.c: Include "nat/netbsd-nat.h".
5016 * (nbsd_nat_target::pid_to_exec_file)
5017 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
5018 (nbsd_nat_target::post_startup_inferior)
5019 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
5020 (nbsd_add_threads): Switch local code to common gdb/nat functions.
5021 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
5022 * (nbsd_thread_lister): Remove.
5023
f404573e
KR
50242020-09-10 Kamil Rytarowski <n54@gmx.com>
5025
5026 * fork-inferior.c (startup_inferior): Avoid double free.
5027
1ccb2c17
KR
50282020-09-10 Kamil Rytarowski <n54@gmx.com>
5029
5030 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
5031 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
5032
feedfcc7
KR
50332020-09-10 Kamil Rytarowski <n54@gmx.com>
5034
5035 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
5036 * netbsd-nat.c: Include <sys/ptrace.h>.
5037 * (netbsd_nat::enable_proc_events): Add.
5038
c489f8c6
KR
50392020-09-10 Kamil Rytarowski <n54@gmx.com>
5040
5041 * netbsd-nat.h: Include "gdbsupport/function-view.h".
5042 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5043 (netbsd_nat::for_each_thread): Add.
5044 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
5045 "gdbsupport/common-debug.h".
5046 * (netbsd_nat::netbsd_thread_lister)
5047 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5048 (netbsd_nat::for_each_thread): Add.
5049
330662f6
KR
50502020-09-10 Kamil Rytarowski <n54@gmx.com>
5051
5052 * netbsd-nat.h: Include <unistd.h>.
5053 * (netbsd_nat::pid_to_exec_file): Add.
5054 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
5055 * (netbsd_nat::pid_to_exec_file) Add.
5056
70b67307
KR
50572020-09-10 Kamil Rytarowski <n54@gmx.com>
5058
5059 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
5060
99cf6da6
KR
50612020-09-10 Kamil Rytarowski <n54@gmx.com>
5062
5063 * netbsd-nat.h: New file.
5064 * netbsd-nat.c: Likewise.
5065
1b788fb6
TT
50662020-09-09 Tom Tromey <tromey@adacore.com>
5067
5068 * ada-lang.c (remove_extra_symbols): Do not increment when
5069 removing an element
5070
03b0a45f
TT
50712020-09-08 Tom Tromey <tromey@adacore.com>
5072
5073 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
5074
3cae4447
TT
50752020-09-08 Tom Tromey <tromey@adacore.com>
5076
5077 PR win32/25302:
5078 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
5079 (gdb_bfd_init_data): New function.
5080 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
5081
7f08fd51
TBA
50822020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5083
5084 * infrun.c (fetch_inferior_event): Use
5085 `switch_to_target_no_thread` to switch the target.
5086
3e6ff933
TT
50872020-09-06 Tom Tromey <tom@tromey.com>
5088
5089 * symfile.h (dwarf2_free_objfile): Don't declare.
5090
e56798df
AKS
50912020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5092
5093 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
5094 to match 16 byte real/complex type generated by Flang compiler.
5095
8f5c6526
TV
50962020-09-03 Tom de Vries <tdevries@suse.de>
5097
5098 PR breakpoint/26546
5099 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
5100 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
5101
c5065df0
SM
51022020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
5103
5104 * maint.c (index_digits): New function.
5105 (struct maint_print_section_data): Remove.
5106 (print_bfd_section_info): Remove print_data parameter, add arg
5107 and index_digits.
5108 (print_objfile_section_info): Likewise.
5109 (print_bfd_section_info_maybe_relocated): Likewise (plus
5110 objfile).
5111 (maintenance_info_sections): Adjust calls.
5112
02c6f3f1
TT
51132020-09-02 Tom Tromey <tromey@adacore.com>
5114
5115 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
5116 for null pointers.
5117 (ada_varobj_adjust_for_child_access): Special-case null pointers.
5118
ef5e5b0b
SM
51192020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
5120
5121 * bcache.h (struct bcache) <insert>: Change type of `added` to
5122 pointer to bool.
5123 * bcache.c (bcache::insert): Likewise.
5124 * gdbtypes.c (check_types_worklist): Adjust.
5125 * psymtab.c (add_psymbol_to_bcache): Adjust.
5126
973695d6
KB
51272020-08-31 Kevin Buettner <kevinb@redhat.com>
5128
5129 * corelow.c (unordered_set): Include.
5130 (class core_target): Add field 'm_core_unavailable_mappings'.
5131 (core_target::build_file_mappings): Print only one warning
5132 per inaccessible file. Add unavailable/broken mappings
5133 to m_core_unavailable_mappings.
5134 (core_target::xfer_partial): Call...
5135 (core_target::xfer_memory_via_mappings): New method.
5136
264fc0e2
SM
51372020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5138
5139 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
5140 type to bool.
5141
2de01bdb
SM
51422020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5143
5144 * dwarf2/read.c (struct field_info): Fix indentation.
5145
f3bd50f1
SM
51462020-08-31 Simon Marchi <simon.marchi@efficios.com>
5147
5148 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
5149 ordering in comment.
5150 * frame.c (frame_id_eq): Fix indentation.
5151
22b9b4b0
SL
51522020-08-31 Scott Linder <scott@scottlinder.com>
5153 Simon Marchi <simon.marchi@efficios.com>
5154
5155 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
5156 inline frame ids in outer frame.
5157
84154d16
SM
51582020-08-31 Simon Marchi <simon.marchi@efficios.com>
5159
5160 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
5161 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
5162 (outer_frame_id): Use FID_STACK_OUTER instead of
5163 FID_STACK_INVALID.
5164 (frame_id_p): Don't check for outer_frame_id.
5165
8efaf6b3
SM
51662020-08-31 Simon Marchi <simon.marchi@efficios.com>
5167
5168 * frame-unwind.c (frame_unwind_got_optimized): Don't set
5169 regnum/frame in value. Call allocate_value_lazy.
5170 * frame.c (frame_unwind_register_value): Use
5171 val_print_not_saved.
5172
fe1fe7ea
SM
51732020-08-31 Simon Marchi <simon.marchi@efficios.com>
5174
5175 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
5176
f7c7700d
PA
51772020-08-29 Pedro Alves <pedro@palves.net>
5178
5179 * progspace.c (print_program_space): Use all_inferiors. Switch to
5180 the inferior before calling target_pid_to_str.
5181
e0814aae
TT
51822020-08-28 Tom Tromey <tom@tromey.com>
5183
5184 * xcoffread.c (xcoff_end_psymtab): Update comment.
5185 * dbxread.c (dbx_end_psymtab): Update comment.
5186
626d2320
TV
51872020-08-28 Tom de Vries <tdevries@suse.de>
5188
5189 PR breakpoint/26544
5190 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
5191 event_location.
5192 (create_breakpoint): Same.
5193 (base_breakpoint_decode_location): Same.
5194 (bkpt_create_sals_from_location): Same.
5195 (bkpt_decode_location): Same.
5196 (bkpt_probe_create_sals_from_location): Same.
5197 (bkpt_probe_decode_location): Same.
5198 (tracepoint_create_sals_from_location): Same.
5199 (tracepoint_decode_location): Same.
5200 (tracepoint_probe_decode_location): Same.
5201 (strace_marker_create_sals_from_location): Same.
5202 (strace_marker_decode_location): Same.
5203 (create_sals_from_location_default): Same.
5204 (decode_location_default): Same.
5205 * breakpoint.h (struct breakpoint_ops): Same.
5206 (create_breakpoint): Same.
5207 * linespec.h (decode_line_full): Same.
5208 * linespec.c (decode_line_full): Same. Throw error if
5209 result.size () == 0.
5210
df631783
PA
52112020-08-27 Pedro Alves <pedro@palves.net>
5212
5213 PR gdb/26524
5214 * breakpoint.c (until_break_fsm) <location_breakpoint,
5215 caller_breakpoint>: Delete fields.
5216 <breakpoints>: New field.
5217 <until_break_fsm>: Adjust to save a breakpoint vector instead of
5218 two individual breakpoints.
5219 (until_break_fsm::should_stop): Loop over breakpoints in the
5220 breakpoint vector.
5221 (until_break_fsm::clean_up): Adjust to clear the breakpoints
5222 vector.
5223 (until_break_command): Handle location expanding into multiple
5224 sals.
5225
b2b38aa4
PA
52262020-08-27 Pedro Alves <pedro@palves.net>
5227
5228 PR gdb/26523
5229 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
5230 bp_until breakpoints user-specified locations. Update intro
5231 comment.
5232
b886559f
SM
52332020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
5234
5235 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
5236 gdb_bfd_sections): New.
5237 * maint.c (print_bfd_section_info): Change param type to
5238 maint_print_section_data.
5239 (print_objfile_section_info): Likewise.
5240 (print_bfd_section_info_maybe_relocated): Likewise.
5241 (maintenance_info_sections): Use gdb_bfd_sections.
5242
4c6e63bf
SV
52432020-08-25 Shahab Vahedi <shahab@synopsys.com>
5244
5245 * MAINTAINERS: Add ARC target and maintainer.
5246
8d7f0635
AK
52472020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
5248
5249 * configure.tgt: ARC support for GNU/Linux.
5250 * Makefile.in (ALL_TARGET_OBJS): Likewise.
5251 * arc-linux-tdep.c: New file.
5252 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
5253 * arc-tdep.c (arc_write_pc): Use it.
5254
fdd8731b
SV
52552020-08-25 Shahab Vahedi <shahab@synopsys.com>
5256
5257 * arc-tdep.c (arc_check_for_hardware_loop): New.
5258 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
5259
22459524
SV
52602020-08-25 Shahab Vahedi <shahab@synopsys.com>
5261
5262 * arc-tdep.h: Include "gdbarch.h".
5263
995d3a19
SV
52642020-08-25 Shahab Vahedi <shahab@synopsys.com>
5265
5266 * arch/arc.h
5267 (arc_gdbarch_features): New class to stir the selection of target XML.
5268 (arc_create_target_description): Use FEATURES to choose XML target.
5269 (arc_lookup_target_description): Use arc_create_target_description
5270 to create _new_ target descriptions or return the already created
5271 ones if the FEATURES is the same.
5272 * arch/arc.c: Implementation of prototypes described above.
5273 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
5274 (arc_gdbarch_features_init): Initialize the FEATURES struct.
5275 * arc-tdep.c (*_feature_name): Make feature names consistent.
5276 (arc_register_feature): A new struct to hold information about
5277 registers of a particular target/feature.
5278 (arc_check_tdesc_feature): Check if XML provides registers in
5279 compliance with ARC_REGISTER_FEATURE structs.
5280 (arc_update_acc_reg_names): Add aliases for r58 and r59.
5281 (determine_*_reg_feature_set): Which feature name to look for.
5282 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
5283 (mach_type_to_arc_isa): Convert from a set of binutils machine types
5284 to expected ISA enums to be used in arc_gdbarch_features structs.
5285 * features/Makefile (FEATURE_XMLFILES): Add new files.
5286 * gdb/features/arc/v1-aux.c: New file.
5287 * gdb/features/arc/v1-aux.xml: Likewise.
5288 * gdb/features/arc/v1-core.c: Likewise.
5289 * gdb/features/arc/v1-core.xml: Likewise.
5290 * gdb/features/arc/v2-aux.c: Likewise.
5291 * gdb/features/arc/v2-aux.xml: Likewise.
5292 * gdb/features/arc/v2-core.c: Likewise.
5293 * gdb/features/arc/v2-core.xml: Likewise.
5294 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
5295
3945d2d7
GM
52962020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
5297 Andrew Burgess <andrew.burgess@embecosm.com>
5298
5299 PR m2/26372
fc5d6901 5300 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
5301 an assert. Remove single element array indexing pattern as the
5302 MULTI_SUBSCRIPT support will handle this case too.
5303
2677f2d3
SM
53042020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
5305
5306 * value.h (valprint_check_validity): Move declaration from
5307 here...
5308 * valprint.h (valprint_check_validity): ... to here.
5309
c426fddb
SM
53102020-08-24 Simon Marchi <simon.marchi@efficios.com>
5311
5312 * debug.h: New file.
5313 * debug.c (debug_prefixed_vprintf): New function.
5314 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
5315 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
5316
1eb8556f
SM
53172020-08-24 Simon Marchi <simon.marchi@efficios.com>
5318
5319 * infrun.h (infrun_debug_printf_1): New function declaration.
5320 (infrun_debug_printf): New macro.
5321 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
5322 throughout.
5323 (infrun_debug_printf): New function.
5324 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
5325 (handle_jit_event): Likewise.
5326
b8fff44e
MW
53272020-08-21 Mark Wielaard <mark@klomp.org>
5328
5329 * ada-lex.l: Extend register warnings diagnostics comment for g++.
5330
d19c3068
SM
53312020-08-22 Simon Marchi <simon.marchi@efficios.com>
5332
5333 * frame.c (enum class frame_id_status): New.
5334 (struct frame_info) <this_id::p>: Change type to frame_id_status.
5335 (fprintf_frame): Update.
5336 (compute_frame_id): Set frame id status to "computing" on entry.
5337 Set it back to "not_computed" on failure and to "computed" on
5338 success.
5339 (get_frame_id): Assert the frame id is not being computed.
5340 (create_sentinel_frame): Use frame_id_status::COMPUTED.
5341 (create_new_frame): Likewise.
5342 (frame_cleanup_after_sniffer): Update assert.
5343
b70e516e
SM
53442020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5345
5346 * regcache.c (pid_ptid_regcache_map): New type.
5347 (target_ptid_regcache_map): Remove.
5348 (target_pid_ptid_regcache_map): New type.
5349 (regcaches): Change type to target_pid_ptid_regcache_map.
5350 (get_thread_arch_aspace_regcache): Update.
5351 (regcache_thread_ptid_changed): Update, handle pid-like ptid
5352 case.
5353 (regcaches_size): Update.
5354 (regcache_count): Update.
5355 (registers_changed_ptid_target_pid_test): New.
5356 (_initialize_regcache): Register new test.
5357
cdd9148a
SM
53582020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5359
5360 * regcache.c (regcache_count): New.
5361 (struct regcache_test_data): New.
5362 (regcache_test_data_up): New.
5363 (populate_regcaches_for_test): New.
5364 (regcaches_test): Remove.
5365 (get_thread_arch_aspace_regcache_test): New.
5366 (registers_changed_ptid_all_test): New.
5367 (registers_changed_ptid_target_test): New.
5368 (registers_changed_ptid_target_ptid_test): New.
5369 (regcache_thread_ptid_changed): Remove regcache_count lambda.
5370 (_initialize_regcache): Register new tests.
5371
dd125343
SM
53722020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5373
5374 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
5375 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
5376 gdbarch and aspace parameter. Use current inferior's aspace.
5377 Validate regcache's arch value.
5378 (regcaches_test): Update.
5379
3ee93972
SM
53802020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5381
5382 * regcache.c (regcaches_test): Call registers_changed.
5383
33bf4c5c
TBA
53842020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5385
5386 * infrun.c (process_event_stop_test): Fix typo "breapoint".
5387
c2fd7fae
AKS
53882020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5389
5390 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
5391 to find the end of prologue for flang compiled binaries.
5392 * arm-tdep.c (arm_skip_prologue): Likewise.
5393 * i386-tdep.c (i386_skip_prologue): Likewise.
5394 * producer.c (producer_is_llvm): New function.
5395 (producer_parsing_tests): Added new tests for clang/flang.
5396 * producer.h (producer_is_llvm): New declaration.
5397
9327494e
SM
53982020-08-18 Simon Marchi <simon.marchi@efficios.com>
5399
5400 * linux-nat.c (linux_nat_debug_printf): New function.
5401 (linux_nat_debug_printf_1): New macro. Use throughout the file.
5402
d138725a
AM
54032020-08-18 Aaron Merey <amerey@redhat.com>
5404
5405 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
5406 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
5407 (CLIBS): Add DEBUGINFOD_LIBS.
5408
f9b11e6b
ST
54092020-08-17 Sergei Trofimovich <siarheit@google.com>
5410
5411 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
5412 'gdbarch_num_regs'.
5413
3ae7ab99
TT
54142020-08-17 Tom Tromey <tromey@adacore.com>
5415
5416 * ada-varobj.c (ada_varobj_decode_var): Handle case where
5417 ada_get_decoded_value returns NULL.
5418
b017825f
TT
54192020-08-17 Tom Tromey <tromey@adacore.com>
5420
5421 * python/py-inferior.c (infpy_search_memory): Use
5422 gdb_py_object_from_ulongest.
5423 * python/py-infevents.c (create_inferior_call_event_object)
5424 (create_memory_changed_event_object): Use
5425 gdb_py_object_from_ulongest.
5426 * python/py-linetable.c (ltpy_entry_get_pc): Use
5427 gdb_py_object_from_ulongest.
5428
7635cf79
SM
54292020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5430
5431 * loc.c (class symbol_needs_eval_context): Fix indentation.
5432
f54be24b
SM
54332020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5434
5435 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
5436 bool.
5437
53d5a2a5
TV
54382020-08-17 Tom de Vries <tdevries@suse.de>
5439
5440 PR gdb/26393
5441 * gdbtypes.c (dump_dynamic_prop): New function.
5442 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
5443
547ce8f0
TV
54442020-08-15 Tom de Vries <tdevries@suse.de>
5445
5446 PR backtrace/26390
5447 * stack.c (print_frame_args): Temporarily set the selected
5448 frame to FRAME while printing the frame's arguments.
5449
6ea815e7
PFC
54502020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5451
5452 PR breakpoints/26385
5453 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
5454 Always clear watchpoint with PTRACE_SET_DEBUGREG.
5455
6e562fa3
PFC
54562020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5457
5458 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
5459 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
5460 and >= to check return value instead of == -1 and != -1.
5461
d369b608
SM
54622020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
5463
5464 * utils.h (class gdb_argv) <as_array_view>: New method.
5465 * utils.c (gdb_argv_as_array_view_test): New.
5466 (_initialize_utils): Register selftest.
5467 * maint.c (maintenance_selftest): Use the new method.
5468
b31488a3
KR
54692020-08-13 Kamil Rytarowski <n54@gmx.com>
5470
5471 * target.h (supports_dumpcore, dumpcore): New
5472 function declarations.
5473 * target.c (supports_dumpcore, dumpcore): New
5474 functions.
5475 * target-delegates.c: Rebuild.
5476 * gcore.c (gcore_command): Use target_supports_dumpcore ()
5477 and target_dumpcore ().
5478
002a3166
AM
54792020-08-13 Aaron Merey <amerey@redhat.com>
5480
5481 * debuginfod-support.c: Replace global variables with user_data.
5482
ece5bc8a
SM
54832020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
5484
5485 * maint.c (maintenance_selftest): Split args and pass array_view
5486 to run_tests.
5487
6d8a0a5e
LM
54882020-08-12 Luis Machado <luis.machado@linaro.org>
5489
5490 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
5491 type's length.
5492 Use %s and pulongest to print the length.
5493
7cf663a9
PA
54942020-08-12 Pedro Alves <palves@redhat.com>
5495
5496 * NEWS: Move "Multi-target debugging support" item to the
5497 "Changes since GDB 9" section.
5498
27c7b875
PA
54992020-08-12 Pedro Alves <palves@redhat.com>
5500
5501 PR gdb/26336
5502 * progspace.c (program_space::remove_objfile): Invalidate the
5503 frame cache.
5504
1796a2a1
TV
55052020-08-11 Tom de Vries <tdevries@suse.de>
5506
5507 * MAINTAINERS: Mark ms1 as deleted.
5508
f8e3fe0d
LM
55092020-08-10 Luis Machado <luis.machado@linaro.org>
5510
5511 PR gdb/26310
5512
5513 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
5514 act accordingly.
5515 (aarch64_analyze_prologue_test): Add more unit tests to exercise
5516 movz/str/stur/stp skipping behavior.
5517
cc308722
LM
55182020-08-10 Luis Machado <luis.machado@linaro.org>
5519
5520 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
5521 struct user_sve_header instead of struct sve_context.
5522
041d9819
SM
55232020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
5524
5525 * read.h (dwarf2_fetch_die_loc_sect_off,
5526 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
5527 `void *` parameter with function_view.
5528 * read.c (dwarf2_fetch_die_loc_sect_off,
5529 dwarf2_fetch_die_loc_cu_off): Likewise.
5530 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
5531 (per_cu_dwarf_call): Adjust.
5532 (get_frame_address_in_block_wrapper): Remove.
5533 (indirect_synthetic_pointer): Adjust.
5534 (get_ax_pc): Remove.
5535 (dwarf2_compile_expr_to_ax): Adjust.
5536
38f8aa06
TV
55372020-08-08 Tom de Vries <tdevries@suse.de>
5538
5539 PR build/26344
5540 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
5541 constructor.
5542 * regcache.c (get_thread_arch_aspace_regcache): Same.
5543
a52b3ae2
TT
55442020-08-07 Tom Tromey <tromey@adacore.com>
5545
5546 * ravenscar-thread.c
5547 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
5548 New method.
5549 (ravenscar_thread_target::wait): Check
5550 runtime_initialized.
5551 (ravenscar_thread_target::prepare_to_store)
5552 (ravenscar_thread_target::stopped_by_sw_breakpoint)
5553 (ravenscar_thread_target::stopped_by_hw_breakpoint)
5554 (ravenscar_thread_target::stopped_by_watchpoint)
5555 (ravenscar_thread_target::stopped_data_address)
5556 (ravenscar_thread_target::core_of_thread): Use
5557 scoped_restore_current_thread and
5558 set_base_thread_from_ravenscar_task.
5559
0e29517d
TT
55602020-08-07 Tom Tromey <tromey@adacore.com>
5561
5562 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
5563
592f9bd7
TT
55642020-08-07 Tom Tromey <tromey@adacore.com>
5565
5566 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
5567 update_inferior_ptid before update_thread_list.
5568 (temporarily_change_regcache_ptid): New class.
5569 (ravenscar_thread_target::fetch_registers)
5570 (ravenscar_thread_target::store_registers)
5571 (ravenscar_thread_target::prepare_to_store): Use base thread when
5572 forwarding operation.
5573
39e2018a
TT
55742020-08-07 Tom Tromey <tromey@adacore.com>
5575
5576 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
5577 "is_pid" case.
5578
2080266b
TT
55792020-08-07 Tom Tromey <tromey@adacore.com>
5580
5581 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
5582 New methods.
5583 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
5584 first.
5585 (ravenscar_thread_target::add_thread): Rename from
5586 ravenscar_add_thread.
5587 (ravenscar_thread_target::update_thread_list): Use a lambda.
5588 (ravenscar_thread_target::xfer_partial): New method.
5589
78c02f21
TT
55902020-08-07 Tom Tromey <tromey@adacore.com>
5591
5592 * ada-lang.h (ada_task_list_iterator_ftype): Now a
5593 gdb::function_view.
5594 (iterate_over_live_ada_tasks): Change type of argument.
5595 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
5596 of argument.
5597
d5d833af
TT
55982020-08-07 Tom Tromey <tromey@adacore.com>
5599
5600 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
5601 Remove.
5602 (ravenscar_thread_target::extra_thread_info): Remove.
5603 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
5604 defer to target beneath for non-Ravenscar threads.
5605
a8ac85bb
TT
56062020-08-07 Tom Tromey <tromey@adacore.com>
5607
5608 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
5609 get_base_thread_from_ravenscar_task>: Now methods.
5610 <m_cpu_map>: New member.
5611 (ravenscar_thread_target::get_thread_base_cpu): Rename from
5612 ravenscar_get_thread_base_cpu. Check m_cpu_map.
5613 (ravenscar_thread_target::task_is_currently_active): Update.
5614 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
5615 Now a method.
5616 (ravenscar_thread_target::add_active_thread): Put initial thread
5617 into the m_cpu_map.
5618
550ab58d
TT
56192020-08-07 Tom Tromey <tromey@adacore.com>
5620
5621 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
5622 event_ptid.
5623
e9546579
TT
56242020-08-07 Tom Tromey <tromey@adacore.com>
5625
5626 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
5627 runtime_initialized.
5628
3d4470e5
TT
56292020-08-07 Tom Tromey <tromey@adacore.com>
5630
5631 * ravenscar-thread.c (ravenscar_thread_target): Don't call
5632 add_active_thread.
5633 (ravenscar_thread_target::add_active_thread): Now public.
5634 (ravenscar_inferior_created): Call add_active_thread after pushing
5635 the target.
5636
888bdb2b
SM
56372020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
5638
5639 * regcache.c (ptid_regcache_map): New type.
5640 (target_ptid_regcache_map): New type.
5641 (regcaches): Change type to target_ptid_regcache_map.
5642 (get_thread_arch_aspace_regcache): Update to regcaches' new
5643 type.
5644 (regcache_thread_ptid_changed): Likewise.
5645 (registers_changed_ptid): Likewise.
5646 (regcaches_size): Likewise.
5647 (regcaches_test): Update.
5648 (regcache_thread_ptid_changed): Update.
5649 * regcache.h (regcache_up): New type.
5650 * gdbsupport/ptid.h (hash_ptid): New struct.
5651
b161a60d
SM
56522020-08-07 Simon Marchi <simon.marchi@efficios.com>
5653
5654 * observable.h (thread_ptid_changed): Add parameter
5655 `process_stratum_target *`.
5656 * infrun.c (infrun_thread_ptid_changed): Add parameter
5657 `process_stratum_target *` and use it.
5658 (selftests): New namespace.
5659 (infrun_thread_ptid_changed): New function.
5660 (_initialize_infrun): Register selftest.
5661 * regcache.c (regcache_thread_ptid_changed): Add parameter
5662 `process_stratum_target *` and use it.
5663 (regcache_thread_ptid_changed): New function.
5664 (_initialize_regcache): Register selftest.
5665 * thread.c (thread_change_ptid): Pass target to
5666 thread_ptid_changed observable.
5667
d2854d8d
CT
56682020-08-06 Caroline Tice <cmtice@google.com>
5669
fe4c3d43
SM
5670 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
5671 (struct dwp_sections): Update field comments. Add loclists and
5672 rnglists fields.
5673 (struct virtual_v2_dwo_sections): Rename struct to
5674 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
5675 size & offset fields for loclists and rnglists.
5676 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
5677 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
5678 skipping dummy type units.
5679 (create_dwp_hash_table): Update the large comment above the function to
5680 discuss Version 5 DWP files as well, with references. Update all the
5681 version checks in the function to check for version 5 as well. Add new
5682 section at the end to create dwp hash table for version 5.
5683 (create_dwp_v2_section): Rename function to
5684 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
5685 Add V5 to error message text.
5686 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
5687 into calls to create_dwp_v2_or_v5_section.
5688 (create_dwo_unit_in_dwp_v5): New function.
5689 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
5690 check for version2; add else clause to handle version 5.
5691 (open_and_init_dwo_file): Add code to check dwarf version & only call
5692 create_debug_types_hash_table (with sections.types) if version is not 5;
5693 else call create_debug_type_hash_table, with sections.info.
5694 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
5695 version 5.
5696 (dwarf2_locate_v5_dwp_sections): New function.
5697 (open_and_init_dwp_file): Add else-if clause for version 5 to call
5698 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 5699
159ed7d9
SM
57002020-08-06 Simon Marchi <simon.marchi@efficios.com>
5701
5702 * regcache.h (class regcache): Remove friend
5703 registers_changed_ptid.
5704 <regcache_thread_ptid_changed>: Remove.
5705 <regcaches>: Remove.
5706 * regcache.c (regcache::regcaches): Rename to...
5707 (regcaches): ... this. Make static.
5708 (get_thread_arch_aspace_regcache): Update.
5709 (regcache::regcache_thread_ptid_changed): Rename to...
5710 (regcache_thread_ptid_changed): ... this. Update.
5711 (class regcache_access): Remove.
5712 (regcaches_test): Update.
5713 (_initialize_regcache): Update.
5714 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
5715 <forward_list>.
5716
174981ae
SM
57172020-08-06 Simon Marchi <simon.marchi@efficios.com>
5718
5719 * regcache.h (class regcache) <current_regcache>: Rename to...
5720 <regcaches>: ... this. Move doc here.
5721 * regcache.c (regcache::current_regcache) Rename to...
5722 (regcache::regcaches): ... this. Move doc to header.
5723 (get_thread_arch_aspace_regcache): Update.
5724 (regcache::regcache_thread_ptid_changed): Update.
5725 (registers_changed_ptid): Update.
5726 (class regcache_access) <current_regcache_size>: Rename to...
5727 <regcaches_size>: ... this.
5728 (current_regcache_test): Rename to...
5729 (regcaches_test): ... this.
5730 (_initialize_regcache): Update.
5731
ed908db6
VC
57322020-08-06 Victor Collod <vcollod@nvidia.com>
5733
5734 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
5735
b5582ab7
KB
57362020-08-05 Kevin Buettner <kevinb@redhat.com>
5737
5738 * corelow.c (core_target::build_file_mappings): Don't output
5739 null pathname in warning.
5740
ea946b86
SM
57412020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
5742
5743 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
5744 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
5745 gdb.dwarf2/dw2-single-line-discriminators.exp,
5746 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
5747
57d02173
TT
57482020-08-05 Tom Tromey <tromey@adacore.com>
5749
5750 PR rust/26197:
5751 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
5752 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
5753 Fix off-by-one and type size errors in ordinary case.
5754
5555c86d
TV
57552020-08-05 Tom de Vries <tdevries@suse.de>
5756
5757 * gdbtypes.c (type_not_allocated, type_not_associated): Use
5758 "prop->const_val () == 0" instead of "prop->const_val () != 0".
5759
97916bfe
SM
57602020-08-04 Simon Marchi <simon.marchi@efficios.com>
5761
5762 * frame.h (frame_id_p): Return bool.
5763 (frame_id_artificial_p): Return bool.
5764 (frame_id_eq): Return bool.
5765 (has_stack_frames): Return bool.
5766 (get_selected_frame): Fix typo in comment.
5767 (get_frame_pc_if_available): Return bool.
5768 (get_frame_address_in_block_if_available): Return bool.
5769 (get_frame_func_if_available): Return bool.
5770 (read_frame_register_unsigned): Return bool.
5771 (get_frame_register_bytes): Return bool.
5772 (safe_frame_unwind_memory): Return bool.
5773 (deprecated_frame_register_read): Return bool.
5774 (frame_unwinder_is): Return bool.
5775 * frame.c (struct frame_info) <prev_arch::p>: Change type to
5776 bool.
5777 <this_id::p>: Likewise.
5778 <prev_p>: Likewise.
5779 (frame_stash_add): Return bool.
5780 (get_frame_id): Use bool.
5781 (frame_id_build_special) Use bool.
5782 (frame_id_build_unavailable_stack): Use bool.
5783 (frame_id_build): Use bool.
5784 (frame_id_p): Return bool, use true/false instead of 1/0.
5785 (frame_id_artificial_p): Likewise.
5786 (frame_id_eq): Likewise.
5787 (frame_id_inner): Likewise.
5788 (get_frame_func_if_available): Likewise.
5789 (read_frame_register_unsigned): Likewise.
5790 (deprecated_frame_register_read): Likewise.
5791 (get_frame_register_bytes): Likewise.
5792 (has_stack_frames): Likewise.
5793 (inside_main_func): Likewise.
5794 (inside_entry_func): Likewise.
5795 (get_frame_pc_if_available): Likewise.
5796 (get_frame_address_in_block_if_available): Likewise.
5797 (frame_unwinder_is): Likewise.
5798 (safe_frame_unwind_memory): Likewise.
5799 (frame_unwind_arch): Likewise.
5800
fedfee88
SM
58012020-08-04 Simon Marchi <simon.marchi@efficios.com>
5802
5803 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
5804 type to cached_copy_status.
5805 (fprintf_frame): Adjust.
5806 (get_frame_func_if_available): Adjust.
5807 (frame_cleanup_after_sniffer): Adjust.
5808
6cfa9b59
MW
58092020-08-04 Mark Wielaard <mark@klomp.org>
5810
5811 * MAINTAINERS (Write After Approval): Update email address.
5812
66d6346b
SM
58132020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5814
5815 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
5816 dynamic_prop::const_val.
5817
8a6d5e35
SM
58182020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5819
5820 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
5821 dynamic_prop::kind.
5822
51d6067d
SM
58232020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5824
5825 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
5826
b26e2ae7
JM
58272020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
5828
5829 * configure.tgt: Set gdb_sim for bpf-*-* targets.
5830
39791af2
JM
58312020-08-04 Weimin Pan <weimin.pan@oracle.com>
5832 Jose E. Marchesi <jose.marchesi@oracle.com>
5833
5834 * configure.tgt: Add entry for bpf-*-*.
5835 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
5836 (ALLDEPFILES): Add bpf-tdep.c.
5837 * bpf-tdep.c: New file.
5838 * MAINTAINERS: Add bpf target and maintainer.
5839 * NEWS: Mention the support for the new target.
5840
521894aa
TV
58412020-08-04 Tom de Vries <tdevries@suse.de>
5842
5843 PR symtab/23270
5844 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
5845 Error.
5846
5d6356e9
JB
58472020-08-03 John Baldwin <jhb@FreeBSD.org>
5848
5849 * syscalls/freebsd.xml: Regenerate.
5850
0cf82b81
JB
58512020-08-03 John Baldwin <jhb@FreeBSD.org>
5852
5853 * syscalls/update-freebsd.sh: Fix usage and year range.
5854
8f34b746
TV
58552020-08-03 Tom de Vries <tdevries@suse.de>
5856
5857 PR symtab/26333
5858 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
5859 DW_LNE_lo_user/DW_LNE_hi_user range.
5860
5e500d33
SM
58612020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
5862
5863 PR ada/26318
5864 * ada-lang.c (ada_modulus): Return 0 if property is not of const
5865 kind.
5866
78319c15
TBA
58672020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5868
5869 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
5870
4c55e970
TBA
58712020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5872
5873 * breakpoint.c (set_breakpoint_condition): Update the condition
5874 expressions after checking that the input condition string parses
5875 successfully and does not contain junk at the end.
5876
1e620590
TBA
58772020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5878
5879 * breakpoint.c (set_breakpoint_condition): Update the
5880 condition string after parsing the new condition successfully.
5881
c8693053
RO
58822020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5883
5884 * proc-api.c (_STRUCTURED_PROC): Don't define.
5885 * proc-events.c: Likewise.
5886 * proc-flags.c: Likewise.
5887 * proc-why.c: Likewise.
5888 * procfs.c: Likewise.
5889
5890 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
5891 * configure, config.in: Regenerate.
5892
5a99adb8
TV
58932020-07-30 Tom de Vries <tdevries@suse.de>
5894
5895 PR build/26320
5896 * ui-style.h (struct ui_file_style::color): Wrap m_value and
5897 m_red/m_green/m_blue in a union.
5898
8ba83e91
TV
58992020-07-29 Tom de Vries <tdevries@suse.de>
5900
5901 PR tdep/26280
5902 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
5903
f75a0693
AB
59042020-07-28 Tom Tromey <tromey@adacore.com>
5905
5906 PR symtab/26270:
5907 * symtab.h (find_pc_partial_function_sym): Declare.
5908 * cli/cli-cmds.c (disassemble_command): Use
5909 find_pc_partial_function_sym. Check asm_demangle.
5910 * blockframe.c (cache_pc_function_sym): New global.
5911 (cache_pc_function_name): Remove.
5912 (clear_pc_function_cache): Update.
5913 (find_pc_partial_function_sym): New function, from
5914 find_pc_partial_function.
5915 (find_pc_partial_function): Rewrite using
5916 find_pc_partial_function_sym.
5917
16f3242c
TT
59182020-07-28 Tom Tromey <tromey@adacore.com>
5919
5920 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
5921 help. Add usage.
5922
4888741a
TT
59232020-07-28 Tom Tromey <tromey@adacore.com>
5924
5925 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
5926 <DW_OP_GNU_variable_value>: Cast to address type.
5927
4d46f402
KR
59282020-07-28 Kamil Rytarowski <n54@gmx.com>
5929
5930 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
5931 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
5932 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
5933 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
5934 (nbsd_get_siginfo_type): New.
5935 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
5936 (_initialize_nbsd_tdep): New.
5937
d70f978b
L
59382020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5939
5940 PR binutils/26301
5941 * configure: Regenerated.
5942
377170fa
L
59432020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5944
5945 PR binutils/26301
5946 * configure: Regenerated.
5947
43d5901d
AB
59482020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5949
5950 * python/py-frame.c: Remove 'user-regs.h' include.
5951 (frapy_read_register): Rewrite to make use of
5952 gdbpy_parse_register_id.
5953 * python/py-registers.c (gdbpy_parse_register_id): New function,
5954 moved here from python/py-unwind.c. Updated the return type, and
5955 also accepts register descriptor objects.
5956 * python/py-unwind.c: Remove 'user-regs.h' include.
5957 (pyuw_parse_register_id): Moved to python/py-registers.c.
5958 (unwind_infopy_add_saved_register): Update to use
5959 gdbpy_parse_register_id.
5960 (pending_framepy_read_register): Likewise.
5961 * python/python-internal.h (gdbpy_parse_register_id): Declare.
5962
14fa8fb3
AB
59632020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5964
5965 * python/py-registers.c: Add 'user-regs.h' include.
5966 (register_descriptor_iter_find): New function.
5967 (register_descriptor_iterator_object_methods): New static global
5968 methods array.
5969 (register_descriptor_iterator_object_type): Add pointer to methods
5970 array.
5971
ddce1758
JB
59722020-07-27 John Baldwin <jhb@FreeBSD.org>
5973
5974 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
5975 for all architectures on FreeBSD 11.3 and later.
5976
a4089f52
TT
59772020-07-27 Tom Tromey <tromey@adacore.com>
5978
5979 * gcore.h (load_corefile): Don't declare.
5980
95420d30
TV
59812020-07-27 Tom de Vries <tdevries@suse.de>
5982
5983 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
5984 * config.in: Regenerate.
5985 * configure: Regenerate.
5986
05a6b8c2
EZ
59872020-07-26 Eli Zaretskii <eliz@gnu.org>
5988
5989 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
5990 ws2tcpip.h. When checking whether socklen_t type is defined, use
5991 ws2tcpip.h if it is available and sys/socket.h isn't.
5992 * configure: Regenerate.
5993 * config.in: Regenerate.
5994
e79eb02f
AB
59952020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
5996
5997 PR fortran/23051
5998 PR fortran/26139
5999 * valops.c (value_ind): Pass address to
6000 readjust_indirect_value_type.
6001 * value.c (readjust_indirect_value_type): Make parameter
6002 non-const, and add extra address parameter. Resolve original type
6003 before using it.
6004 * value.h (readjust_indirect_value_type): Update function
6005 signature and comment.
6006
876518dd
TV
60072020-07-25 Tom de Vries <tdevries@suse.de>
6008
6009 PR symtab/26243
6010 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
6011 entries.
6012
f6720b1c
AM
60132020-07-24 Aaron Merey <amerey@redhat.com>
6014
6015 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
6016 * configure: Rebuild.
6017
513487e1
KB
60182020-07-23 Kevin Buettner <kevinb@redhat.com>
6019
6020 PR corefiles/26294
6021 * corelow.c (_initialize_corelow): Add period to help text
6022 for "maintenance print core-file-backed-mappings".
6023
e7bc9db8
PA
60242020-07-23 Pedro Alves <pedro@palves.net>
6025
6026 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
6027 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
6028 meanwhile.
6029 * frame.c (frame_cache_generation, get_frame_cache_generation):
6030 New.
6031 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
6032 (get_prev_frame_if_no_cycle): On exception, don't touch
6033 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
6034 * frame.h (get_frame_cache_generation): Declare.
6035
90fcc466
TV
60362020-07-23 Tom de Vries <tdevries@suse.de>
6037
6038 PR tui/26282
6039 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
6040 New default constructor.
6041
78344df7
AB
60422020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
6043
6044 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
6045 exclude non-statement entries.
6046
b089853a
KB
60472020-07-22 Kevin Buettner <kevinb@redhat.com>
6048
6049 * NEWS (New commands): Mention new command
6050 "maintenance print core-file-backed-mappings".
6051
09c2f5d4
KB
60522020-07-22 Kevin Buettner <kevinb@redhat.com>
6053
6054 * corelow.c (gdbcmd.h): Include.
6055 (core_target::info_proc_mappings): New method.
6056 (get_current_core_target): New function.
6057 (maintenance_print_core_file_backed_mappings): New function.
6058 (_initialize_corelow): Add core-file-backed-mappings to
6059 "maint print" commands.
6060
9c5ec5c2 60612020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 6062
9c5ec5c2
KB
6063 * linux-tdep.c (dump_note_entry_p): New function.
6064 (linux_dump_mapping_p_ftype): New typedef.
6065 (linux_find_memory_regions_full): Add new parameter,
6066 should_dump_mapping_p.
6067 (linux_find_memory_regions): Adjust call to
6068 linux_find_memory_regions_full.
6069 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
6070 call to linux_find_memory_regions_full.
6071
db082f59
KB
60722020-07-22 Kevin Buettner <kevinb@redhat.com>
6073
6074 * corelow.c (solist.h, unordered_map): Include.
6075 (class core_target): Add field m_core_file_mappings and
6076 method build_file_mappings.
6077 (core_target::core_target): Call build_file_mappings.
6078 (core_target::~core_target): Free memory associated with
6079 m_core_file_mappings.
6080 (core_target::build_file_mappings): New method.
6081 (core_target::xfer_partial): Use m_core_file_mappings
6082 for memory transfers.
6083 * linux-tdep.c (linux_read_core_file_mappings): New
6084 function.
6085 (linux_core_info_proc_mappings): Rewrite to use
6086 linux_read_core_file_mappings.
6087 (linux_init_abi): Register linux_read_core_file_mappings.
6088
7e183d27
KB
60892020-07-22 Kevin Buettner <kevinb@redhat.com>
6090
6091 * arch-utils.c (default_read_core_file_mappings): New function.
6092 * arch-utils.c (default_read_core_file_mappings): Declare.
6093 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
6094 * gdbarch.h, gdbarch.c: Regenerate.
6095
2735d421
KB
60962020-07-22 Kevin Buettner <kevinb@redhat.com>
6097
6098 PR corefiles/25631
6099 * corelow.c (core_target:xfer_partial): Revise
6100 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
6101 case after first checking the stratum beneath the core
6102 target.
6103 (has_all_memory): Return true.
6104 * target.c (raw_memory_xfer_partial): Revise comment
6105 regarding use of has_all_memory.
6106
e56cb451
KB
61072020-07-22 Kevin Buettner <kevinb@redhat.com>
6108
6109 * exec.h (section_table_xfer_memory): Revise declaration,
6110 replacing section name parameter with an optional callback
6111 predicate.
6112 * exec.c (section_table_xfer_memory): Likewise.
6113 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
6114 of section_table_xfer_memory.
6115
32fa152e
TT
61162020-07-22 Tom Tromey <tromey@adacore.com>
6117
6118 * mi/mi-cmd-stack.c (list_args_or_locals): Use
6119 lookup_symbol_search_name.
6120
a67a1c41
AB
61212020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6122
6123 * python/py-registers.c (gdbpy_register_object_data_init): Remove
6124 redundant local variable.
6125 (gdbpy_get_register_descriptor): Extract descriptor vector as a
6126 reference, not pointer, update code accordingly.
6127
a7b4ff4f
SM
61282020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6129 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6130
6131 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
6132 * jit.c (jit_breakpoint_re_set_internal): Use the
6133 `skip_jit_symbol_lookup` field.
6134
2340e834
SM
61352020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6136 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6137
6138 * jit.c (jit_read_descriptor): Define the descriptor address once,
6139 use twice.
6140 (jit_breakpoint_deleted): Move the declaration of the loop variable
6141 `iter` into the loop header.
6142 (jit_breakpoint_re_set_internal): Move the declaration of the local
6143 variable `objf_data` to the first point of definition.
6144 (jit_event_handler): Move the declaration of local variables
6145 `code_entry`, `entry_addr`, and `objf` to their first point of use.
6146 Rename `objf` to `jited`.
6147
c1072906
SM
61482020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6149
6150 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
6151 Remove.
6152 * jit.c (get_jiter_objfile_data): Update.
6153
c8474dc3
TBA
61542020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6155 Simon Marchi <simon.marchi@polymtl.ca>
6156
6157 * jit.c (struct jit_program_space_data): Remove.
6158 (jit_program_space_key): Remove.
6159 (jiter_objfile_data::~jiter_objfile_data): Remove program space
6160 stuff.
6161 (get_jit_program_space_data): Remove.
6162 (jit_breakpoint_deleted): Iterate on all of the program space's
6163 objfiles.
6164 (jit_inferior_init): Likewise.
6165 (jit_breakpoint_re_set_internal): Likewise. Also change return
6166 type to void.
6167 (jit_breakpoint_re_set): Pass current_program_space to
6168 jit_breakpoint_re_set_internal.
6169
77208eb7
SM
61702020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6171
6172 * jit.h (struct jiter_objfile_data) <cached_code_address,
6173 jit_breakpoint>: Move to here from ...
6174 * jit.c (jit_program_space_data): ... here.
6175 (jiter_objfile_data::~jiter_objfile_data): Update.
6176 (jit_breakpoint_deleted): Update.
6177 (jit_breakpoint_re_set_internal): Update.
6178
8c1c720f
SM
61792020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6180
6181 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
6182 checks.
6183 (jit_read_descriptor): Remove NULL check.
6184 (jit_event_handler): Add an assertion.
6185
0e74a041
SM
61862020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6187
6188 * jit.h (struct jit_objfile_data): Split into...
6189 (struct jiter_objfile_data): ... this ...
6190 (struct jited_objfile_data): ... and this.
6191 * objfiles.h (struct objfile) <jit_data>: Remove.
6192 <jiter_data, jited_data>: New fields.
6193 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
6194 (jiter_objfile_data::~jiter_objfile_data): ... this.
6195 (get_jit_objfile_data): Rename to ...
6196 (get_jiter_objfile_data): ... this.
6197 (add_objfile_entry): Update.
6198 (jit_read_descriptor): Use get_jiter_objfile_data.
6199 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
6200 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
6201 (jit_inferior_exit_hook): Use objfile's jited_data field.
6202
238b5c9f
SM
62032020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6204
6205 * jit.h: Forward-declare `struct minimal_symbol`.
6206 (struct jit_objfile_data): Migrate to here from jit.c; also add a
6207 constructor, destructor, and an objfile* field.
6208 * jit.c (jit_objfile_data): Remove.
6209 (struct jit_objfile_data): Migrate from here to jit.h.
6210 (jit_objfile_data::~jit_objfile_data): New destructor
6211 implementation with code moved from free_objfile_data.
6212 (free_objfile_data): Delete.
6213 (get_jit_objfile_data): Update to use the jit_data field of objfile.
6214 (jit_find_objf_with_entry_addr): Ditto.
6215 (jit_inferior_exit_hook): Ditto.
6216 (_initialize_jit): Remove the call to
6217 register_objfile_data_with_cleanup.
6218 * objfiles.h (struct objfile) <jit_data>: New field.
6219
fe053b9e
TBA
62202020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6221
6222 * jit.h: Forward-declare `struct objfile`.
6223 (jit_event_handler): Add a second parameter, the JITer objfile.
6224 * jit.c (jit_read_descriptor): Change the signature to take the
6225 JITer objfile as an argument instead of the jit_program_space_data.
6226 (jit_inferior_init): Update the call to jit_read_descriptor.
6227 (jit_event_handler): Use the new JITer objfile argument when calling
6228 jit_read_descriptor.
6229 * breakpoint.c (handle_jit_event): Update the call to
6230 jit_event_handler to pass the JITer objfile.
6231
4cec0c66
JB
62322020-07-21 John Baldwin <jhb@FreeBSD.org>
6233
6234 * gdbarch.c: Regenerate.
6235 * gdbarch.h: Regenerate.
6236 * gdbarch.sh (handle_segmentation_fault): Remove method.
6237 * infrun.c (handle_segmentation_fault): Remove.
6238 (print_signal_received_reason): Remove call to
6239 handle_segmentation_fault.
6240
0e42f66a
JB
62412020-07-21 John Baldwin <jhb@FreeBSD.org>
6242
6243 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6244 Rename to sparc64_linux_report_signal_info and add siggnal
6245 argument.
6246 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
6247 instead of sparc64_linux_handle_segmentation_fault.
6248
77bdfeb2
JB
62492020-07-21 John Baldwin <jhb@FreeBSD.org>
6250
6251 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
6252 i386_linux_report_signal_info instead of
6253 i386_linux_handle_segmentation_fault.
6254 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
6255 to i386_linux_report_signal_info and add siggnal argument.
6256 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
6257 of i386_linux_handle_segmentation_fault.
6258 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
6259 to i386_linux_report_signal_info and add siggnal argument.
6260
ad97bfc5
JB
62612020-07-21 John Baldwin <jhb@FreeBSD.org>
6262
6263 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
6264 hook if present.
6265
272bb05c
JB
62662020-07-21 John Baldwin <jhb@FreeBSD.org>
6267
6268 * gdbarch.c: Regenerate.
6269 * gdbarch.h: Regenerate.
6270 * gdbarch.sh (report_signal_info): New method.
6271 * infrun.c (print_signal_received_reason): Invoke gdbarch
6272 report_signal_info hook if present.
6273
baf8791e
AB
62742020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6275
6276 * python/py-registers.c : Add 'unordered_map' include.
6277 (gdbpy_new_reggroup): Renamed to...
6278 (gdbpy_get_reggroup): ...this. Update to only create register
6279 group descriptors when needed.
6280 (gdbpy_reggroup_iter_next): Update.
6281
f7306dac
AB
62822020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6283
6284 * python/py-registers.c (gdbpy_register_object_data): New static
6285 global.
6286 (gdbpy_register_object_data_init): New function.
6287 (gdbpy_new_register_descriptor): Renamed to...
6288 (gdbpy_get_register_descriptor): ...this, and update to reuse
6289 existing register descriptors where possible.
6290 (gdbpy_register_descriptor_iter_next): Update.
6291 (gdbpy_initialize_registers): Register new gdbarch data.
6292
05c309a8
SM
62932020-07-21 Simon Marchi <simon.marchi@efficios.com>
6294
6295 * linux-nat.c (stopped_pids): Make static.
6296
d1fd641e
SM
62972020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
6298
6299 PR ada/26235
6300 * gdbtypes.c (ada_discrete_type_low_bound,
6301 ada_discrete_type_high_bound): Handle undefined bounds.
6302
1de14d77
KR
63032020-07-21 Kamil Rytarowski <n54@gmx.com>
6304
6305 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
6306 declaration.
6307 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
6308 function.
6309
ed810cc7
JB
63102020-07-20 John Baldwin <jhb@FreeBSD.org>
6311
6312 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
6313 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
6314 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
6315 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
6316 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
6317 method.
6318
ae5369e7
LC
63192020-07-20 Ludovic Courtès <ludo@gnu.org>
6320
6321 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
6322 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
6323 which are deprecated in Guile 3.0.
6324 * configure.ac (try_guile_versions): Add "guile-3.0".
6325 * configure (try_guile_versions): Regenerate.
6326 * NEWS: Update entry.
6327
68cf161c
LC
63282020-07-20 Ludovic Courtès <ludo@gnu.org>
6329 Doug Evans <dje@google.com>
6330
6331 PR gdb/21104
6332 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
6333 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
6334 USING_GUILE_BEFORE_2_2.
6335 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
6336 Change type to 'scm_t_port_type *'.
6337 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
6338 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
6339 parameter and honor it. Update callers.
6340 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
6341 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
6342 functions.
6343 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
6344 USING_GUILE_BEFORE_2_2.
6345 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
6346 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
6347 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
6348 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
6349 and 'SCM_PORT_TYPE'.
6350 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
6351 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
6352 (gdbscm_memory_port_read, gdbscm_memory_port_write)
6353 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
6354 [!USING_GUILE_BEFORE_2_2]: New functions.
6355 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
6356 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
6357 'gdbscm_memory_port_read'.
6358 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
6359 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
6360 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
6361 function.
6362 (ioscm_init_memory_port): Remove.
6363 (ioscm_init_memory_port_stream): New function
6364 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
6365 function.
6366 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6367 Return scm_from_uint (0).
6368 (gdbscm_set_memory_port_read_buffer_size_x)
6369 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6370 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6371 Return scm_from_uint (0).
6372 (gdbscm_set_memory_port_write_buffer_size_x)
6373 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6374 * configure.ac (try_guile_versions): Add "guile-2.2".
6375 * configure: Regenerate.
6376 * NEWS: Add entry.
6377
aee91db3
TT
63782020-07-18 Tom Tromey <tom@tromey.com>
6379
6380 * linux-nat.c (linux_multi_process): Remove.
6381 (linux_nat_target::supports_multi_process): Return true.
6382
0e267416
AB
63832020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6384
6385 * arch/riscv.c (riscv_tdesc_cache): Change map type.
6386 (riscv_lookup_target_description): Return pointer out of
6387 unique_ptr.
6388 * target-descriptions.c (allocate_target_description): Add
6389 comment.
6390 (target_desc_deleter::operator()): Likewise.
6391 * target-descriptions.h (struct target_desc_deleter): Moved to
6392 gdbsupport/tdesc.h.
6393 (target_desc_up): Likewise.
6394
f80c8ec4
TT
63952020-07-17 Tom Tromey <tromey@adacore.com>
6396
6397 * linux-nat.c (linux_nat_target::supports_non_stop)
6398 (linux_nat_target::always_non_stop_p): Use "true".
6399 (linux_nat_target::supports_disable_randomization): Use "true" and
6400 "false".
6401
d0ce17d8
CT
64022020-07-16 Caroline Tice <cmtice@google.com>
6403
6404 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
6405 (RNGLIST_HEADER_SIZE64): New constant definition.
6406 (struct dwop_section_names): Add rnglists_dwo.
6407 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
6408 (struct loclist_header): Rename to 'loclists_rnglists_header'.
6409 (struct dwo_sections): Add rnglists field.
6410 (read_attribut_reprocess): Add tag parameter.
6411 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
6412 (cu_debug_rnglists_section): New function (decl & definition).
6413 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
6414 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
6415 die whose range is being checked; get rnglist section from
6416 cu_debug_rnglists_section, to get from either objfile or dwo file as
6417 appropriate. Add cases for DW_RLE_base_addressx,
6418 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
6419 the base address to DW_RLE_offset_pairs (not to all ranges), moving
6420 test inside if-condition and updating complaint message.
6421 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
6422 dwarf2_rnglists_process.
6423 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
6424 dwarf2_ranges_process.
6425 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
6426 need_ranges_base and update comment appropriately. Also pass die tag
6427 to dwarf2_ranges_read.
6428 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
6429 need_ranges_base and update comment appropriately. Also pass die tag
6430 to dwarf2_ranges_process.
6431 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
6432 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
6433 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
6434 need_ranges_base and update comment appropriately. Also pass die tag
6435 to read_attribute_reprocess and dwarf2_ranges_read.
6436 (read_loclist_header): Rename function to read_loclists_rnglists_header,
6437 and update function comment appropriately.
6438 (read_loclist_index): Call read_loclists_rnglists_header instead of
6439 read_loclist_header.
6440 (read_rnglist_index): New function.
6441 (read_attribute_reprocess): Add tag parameter. Add code for
6442 DW_FORM_rnglistx, passing tag to read_rnglist_index.
6443 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
6444
3dcc261c
AB
64452020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
6446
6447 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
6448 being resolved.
6449
ccb9eba6
AB
64502020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
6451
6452 * arch-utils.c (show_architecture): Update formatting of messages.
6453
cf88be68
SM
64542020-07-12 Simon Marchi <simon.marchi@efficios.com>
6455
6456 * gdbtypes.h (struct type) <bounds>: Handle array and string
6457 types.
6458 * ada-lang.c (assign_aggregate): Use type::bounds on
6459 array/string type.
6460 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
6461 * c-varobj.c (c_number_of_children): Likewise.
6462 (c_describe_child): Likewise.
6463 * eval.c (evaluate_subexp_for_sizeof): Likewise.
6464 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
6465 (f_type_print_base): Likewise.
6466 * f-valprint.c (f77_array_offset_tbl): Likewise.
6467 (f77_get_upperbound): Likewise.
6468 (f77_print_array_1): Likewise.
6469 * guile/scm-type.c (gdbscm_type_range): Likewise.
6470 * m2-typeprint.c (m2_array): Likewise.
6471 (m2_is_long_set_of_type): Likewise.
6472 * m2-valprint.c (get_long_set_bounds): Likewise.
6473 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
6474 * python/py-type.c (typy_range): Likewise.
6475 * rust-lang.c (rust_internal_print_type): Likewise.
6476 * type-stack.c (type_stack::follow_types): Likewise.
6477 * valarith.c (value_subscripted_rvalue): Likewise.
6478 * valops.c (value_cast): Likewise.
6479
509971ae
SM
64802020-07-12 Simon Marchi <simon.marchi@efficios.com>
6481
6482 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
6483 callers to use the equivalent accessor methods.
6484
107406b7
SM
64852020-07-12 Simon Marchi <simon.marchi@efficios.com>
6486
6487 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
6488 (struct type) <bit_stride>: New method.
6489 (TYPE_BIT_STRIDE): Remove.
6490 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
6491
bb789949
SM
64922020-07-12 Simon Marchi <simon.marchi@efficios.com>
6493
6494 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
6495 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
6496 callers to use the equivalent accessor methods instead.
6497
39498edb
SM
64982020-07-12 Simon Marchi <simon.marchi@efficios.com>
6499
6500 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
6501 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
6502 callers to use the equivalent accessor methods instead.
6503
3b606f38
SM
65042020-07-12 Simon Marchi <simon.marchi@efficios.com>
6505
6506 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
6507 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
6508 to use dynamic_prop::kind.
6509
064d9cb9
SM
65102020-07-12 Simon Marchi <simon.marchi@efficios.com>
6511
6512 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
6513 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
6514 to get the bound property's kind and check against
6515 PROP_UNDEFINED.
6516
5537ddd0
SM
65172020-07-12 Simon Marchi <simon.marchi@efficios.com>
6518
6519 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
6520 all callers to use type::range_bounds followed by
6521 dynamic_prop::{low,high}.
6522
8c2e4e06
SM
65232020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6524
6525 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
6526 const_val, set_const_val, baton, set_locexpr, set_loclist,
6527 set_addr_offset, variant_parts, set_variant_parts,
6528 original_type, set_original_type>: New methods.
6529 <kind>: Rename to...
6530 <m_kind>: ... this. Update all users to use the new methods
6531 instead.
6532 <data>: Rename to...
6533 <m_data>: ... this. Update all users to use the new methods
6534 instead.
6535
7c6f2712
SM
65362020-07-12 Simon Marchi <simon.marchi@efficios.com>
6537
6538 * gdbtypes.c (get_discrete_bounds): Return failure if
6539 the range type's bounds are not both defined and constant
6540 values.
6541 (get_array_bounds): Update comment. Remove undefined bound check.
6542
599088e3
SM
65432020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6544
6545 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
6546 the type::bounds method directly.
6547
c4dfcb36
SM
65482020-07-12 Simon Marchi <simon.marchi@efficios.com>
6549
6550 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
6551 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
6552 are used to set the range type's bounds to use set_bounds.
6553
0a278aa7
PW
65542020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6555
6556 * exec.c (_initialize_exec): Update exec-file-mismatch help.
6557
cce20f10
PA
65582020-07-10 Pedro Alves <pedro@palves.net>
6559
6560 * gdbthread.h (inferior_ref): Define.
6561 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
6562 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
6563 * thread.c
6564 (scoped_restore_current_thread::restore):
6565 Adjust to gdb::ref_ptr.
6566 (scoped_restore_current_thread::~scoped_restore_current_thread):
6567 Remove manual decref handling.
6568 (scoped_restore_current_thread::scoped_restore_current_thread):
6569 Adjust to use
6570 inferior_ref::new_reference/thread_info_ref::new_reference.
6571 Incref the thread before calling get_frame_id instead of after.
6572 Let TARGET_CLOSE_ERROR propagate.
6573
6d7aa592
PA
65742020-07-10 Pedro Alves <pedro@palves.net>
6575
6576 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
6577 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
6578 NOT_AVAILABLE_ERROR.
6579 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
6580 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
6581
b3e3a4c1
SM
65822020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6583 Pedro Alves <pedro@palves.net>
6584
6585 PR gdb/26199
6586 * infrun.c (threads_are_resumed_pending_p): Delete.
6587 (do_target_wait): Remove threads_are_executing and
6588 threads_are_resumed_pending_p checks from the inferior_matches
6589 lambda. Update comments.
6590
d6cc5d98
PA
65912020-07-10 Pedro Alves <pedro@palves.net>
6592
6593 PR gdb/26199
6594 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
6595 executing threads.
6596
7d3badc6
PA
65972020-07-10 Pedro Alves <pedro@palves.net>
6598
6599 PR gdb/26199
6600 * infrun.c (handle_no_resumed): Handle multiple targets.
6601
42bd97a6
PA
66022020-07-10 Pedro Alves <pedro@palves.net>
6603
6604 PR gdb/26199
6605 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
6606 target_is_async_p.
6607
43667cc6
PA
66082020-07-10 Pedro Alves <pedro@palves.net>
6609
6610 PR gdb/26199
6611 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
6612 threads, not all threads.
6613
96118d11
PA
66142020-07-10 Pedro Alves <pedro@palves.net>
6615
6616 PR gdb/26199
6617 * remote.c (remote_target::open_1): Pass remote target pointer as
6618 data to create_async_event_handler.
6619 (remote_async_inferior_event_handler): Mark async event handler
6620 before returning if the remote target still has either pending
6621 events or unacknowledged notifications.
6622
54904d81
JB
66232020-07-10 John Baldwin <jhb@FreeBSD.org>
6624
6625 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
6626 declaration.
6627 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
6628 function.
6629
f37e5866
JB
66302020-07-09 John Baldwin <jhb@FreeBSD.org>
6631
6632 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
6633 inferior_ptid.
6634
fc238d4a
JB
66352020-07-09 John Baldwin <jhb@FreeBSD.org>
6636
6637 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
6638 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
6639 AT_FREEBSD_PS_STRINGS.
6640
6e2469ff
HD
66412020-07-08 Hannes Domani <ssbssa@yahoo.de>
6642
6643 * auto-load.c (auto_load_objfile_script_1): Convert drive part
6644 of debugfile path on Windows.
6645
d1076c41
JB
66462020-07-08 John Baldwin <jhb@FreeBSD.org>
6647
6648 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
6649 argument to 'data'.
6650
15f3b077
TT
66512020-07-08 Tom Tromey <tromey@adacore.com>
6652
6653 * ada-lang.c (ada_exception_message_1): Use read_memory.
6654
9fc501fd
AB
66552020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6656
6657 PR python/22748
6658 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
6659 special handling for inline frames.
6660 * findvar.c (value_of_register_lazy): Skip inline frames when
6661 creating lazy register values.
6662 * frame.c (frame_id_computed_p): Delete definition.
6663 * frame.h (frame_id_computed_p): Delete declaration.
6664
64cb3757
AB
66652020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6666
6667 * NEWS: Mention additions to Python API.
6668 * python/py-arch.c (archpy_register_groups): New function.
6669 (arch_object_methods): Add 'register_groups' method.
6670 * python/py-registers.c (reggroup_iterator_object): New struct.
6671 (reggroup_object): New struct.
6672 (gdbpy_new_reggroup): New function.
6673 (gdbpy_reggroup_to_string): New function.
6674 (gdbpy_reggroup_name): New function.
6675 (gdbpy_reggroup_iter): New function.
6676 (gdbpy_reggroup_iter_next): New function.
6677 (gdbpy_new_reggroup_iterator): New function
6678 (gdbpy_initialize_registers): Register new types.
6679 (reggroup_iterator_object_type): Define new Python type.
6680 (gdbpy_reggroup_getset): New static global.
6681 (reggroup_object_type): Define new Python type.
6682 * python/python-internal.h
6683
0f767f94
AB
66842020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6685
6686 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
6687 * python/py-arch.c (archpy_registers): New function.
6688 (arch_object_methods): Add 'registers' method.
6689 * python/py-registers.c: New file.
6690 * python/python-internal.h
6691 (gdbpy_new_register_descriptor_iterator): Declare.
6692 (gdbpy_initialize_registers): Declare.
6693 * python/python.c (do_start_initialization): Call
6694 gdbpy_initialize_registers.
6695 * NEWS: Mention additions to the Python API.
6696
87dbc774
AB
66972020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6698
6699 * NEWS: Mention new Python API method.
6700 * python/py-unwind.c (pending_framepy_architecture): New function.
6701 (pending_frame_object_methods): Add architecture method.
6702
3bc98c0c
AB
67032020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6704
6705 * gdbarch.c: Regenerate.
6706 * gdbarch.h: Regenerate.
6707 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
6708 (gdbarch_data): Use internal_error for the case where
6709 deprecated_set_gdbarch_data was originally needed.
6710 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
6711 and use passed in obstack.
6712 (libunwind_frame_set_descr): Should no longer get back NULL from
6713 gdbarch_data.
6714 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
6715 type.
6716 * user-regs.c (user_regs_init): Update parameters, and use passed
6717 in obstack.
6718 (user_reg_add): Should no longer get back NULL from gdbarch_data.
6719 (_initialize_user_regs): Register as a pre-init gdbarch data type.
6720
d8cc8af6
TV
67212020-07-06 Tom de Vries <tdevries@suse.de>
6722
6723 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
6724 End-Of-Sequence in lte_is_less_than.
6725 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
6726 "gdb: Don't reorder line table entries too much when sorting".
6727
947f7597
TV
67282020-07-06 Tom de Vries <tdevries@suse.de>
6729
6730 PR tui/26205
6731 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
6732
1e7c1b22
TV
67332020-07-05 Tom de Vries <tdevries@suse.de>
6734
6735 PR build/26187
6736 * inferior.h (struct infcall_suspend_state_deleter): If available, use
6737 std::uncaught_exceptions instead of deprecated
6738 std::uncaught_exception.
6739
a36158ec
SM
67402020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6741
6742 * macroexp.h (macro_stringify): Return
6743 gdb::unique_xmalloc_ptr<char>.
6744 * macroexp.c (macro_stringify): Likewise.
6745 * macrotab.c (fixup_definition): Update.
6746
14d960c8
SM
67472020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6748
6749 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
6750 (lex_one_token): Update.
6751 * macroexp.c (struct macro_buffer) <release>: Return
6752 gdb::unique_xmalloc_ptr<char>.
6753 (macro_stringify): Update.
6754 (macro_expand): Update.
6755 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
6756 * macroexp.h (macro_expand_next): Likewise.
6757
211d5b1c
SM
67582020-07-02 Simon Marchi <simon.marchi@efficios.com>
6759
6760 * macroexp.h (macro_lookup_ftype): Remove.
6761 (macro_expand, macro_expand_once, macro_expand_next): Remove
6762 lookup function parameters, add scope parameter.
6763 * macroexp.c (scan, substitute_args, expand, maybe_expand,
6764 macro_expand, macro_expand_once, macro_expand_next): Likewise.
6765 * macroscope.h (standard_macro_lookup): Change parameter type
6766 to macro_scope.
6767 * macroscope.c (standard_macro_lookup): Likewise.
6768 * c-exp.y (lex_one_token): Update.
6769 * macrocmd.c (macro_expand_command): Likewise.
6770 (macro_expand_once_command): Likewise.
6771
b1a35af2
SM
67722020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6773
6774 * inf-loop.c (inferior_event_handler): Remove client_data param.
6775 * inf-loop.h (inferior_event_handler): Likewise.
6776 * infcmd.c (step_1): Adjust.
6777 * infrun.c (proceed): Adjust.
6778 (fetch_inferior_event): Remove client_data param.
6779 (infrun_async_inferior_event_handler): Adjust.
6780 * infrun.h (fetch_inferior_event): Remove `void *` param.
6781 * linux-nat.c (handle_target_event): Adjust.
6782 * record-btrace.c (record_btrace_handle_async_inferior_event):
6783 Adjust.
6784 * record-full.c (record_full_async_inferior_event_handler):
6785 Adjust.
6786 * remote.c (remote_async_inferior_event_handler): Adjust.
6787
1cdf9e33
TT
67882020-07-01 Tom Tromey <tom@tromey.com>
6789
6790 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
6791 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
6792
32c1e210
TT
67932020-07-01 Tom Tromey <tom@tromey.com>
6794
6795 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
6796 tui_gen_win_info.
6797 (tui_win_info::make_window): Merge with
6798 tui_gen_win_info::make_window.
6799 (tui_win_info::make_visible): Move from tui_gen_win_info.
6800 * tui/tui-win.c (tui_win_info::max_width): Move from
6801 tui_gen_win_info.
6802 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
6803 type.
6804 <window_factory>: Likewise.
6805 * tui/tui-layout.c (tui_win_info::resize): Move from
6806 tui_gen_win_info.
6807 (make_standard_window): Change return type.
6808 (get_locator_window, tui_get_window_by_name): Likewise.
6809 (tui_layout_window::apply): Remove a cast.
6810 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
6811 (struct tui_win_info): Merge with tui_gen_win_info.
6812 (struct tui_gen_win_info): Remove.
6813
a30cb6da
TT
68142020-07-01 Tom Tromey <tom@tromey.com>
6815
6816 * tui/tui-stack.h (struct tui_locator_window): Derive from
6817 tui_win_info.
6818 <do_scroll_horizontal, do_scroll_vertical>: New methods.
6819 <can_box>: New method.
6820
1eb2161f
TT
68212020-07-01 Tom Tromey <tom@tromey.com>
6822
6823 * tui/tui-stack.h (struct tui_locator_window): Remove body.
6824
7134f2eb
TT
68252020-07-01 Tom Tromey <tom@tromey.com>
6826
6827 * tui/tui-regs.c (tui_data_window::display_registers_from)
6828 (tui_data_window::display_registers_from)
6829 (tui_data_window::first_data_item_displayed)
6830 (tui_data_window::delete_data_content_windows): Update.
6831 (tui_data_window::refresh_window, tui_data_window::no_refresh):
6832 Remove.
6833 (tui_data_window::check_register_values): Update.
6834 (tui_data_item_window::rerender): Add parameters. Update.
6835 (tui_data_item_window::refresh_window): Remove.
6836 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
6837 virtual.
6838 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
6839 tui_gen_win_info.
6840 <refresh_window, max_height, min_height>: Remove.
6841 <rerender>: Add parameters.
6842 <x, y, visible>: New members.
6843 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
6844 <m_item_width>: New member.
6845
22b7b041
TT
68462020-07-01 Tom Tromey <tom@tromey.com>
6847
6848 * tui/tui-regs.c (tui_data_window::show_register_group)
6849 (tui_data_window::check_register_values): Update.
6850 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
6851 from item_no.
6852
c9753adb
TT
68532020-07-01 Tom Tromey <tom@tromey.com>
6854
6855 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
6856 useless "if".
6857
9ab26b4a
TT
68582020-07-01 Tom Tromey <tom@tromey.com>
6859
6860 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
6861 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
6862
e555083f
TT
68632020-07-01 Tom Tromey <tom@tromey.com>
6864
6865 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
6866 * tui/tui-winsource.h (enum tui_line_or_address_kind)
6867 (struct tui_line_or_address): Move from tui-data.h.
6868 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
6869 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
6870 (tui_cmd_window, tui_source_window_base, tui_source_window)
6871 (tui_disasm_window): Don't declare.
6872 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
6873 to tui-winsource.h.
6874 (SINGLE_KEY): Move to tui-stack.c.
6875
7a02bab7
TT
68762020-07-01 Tom Tromey <tom@tromey.com>
6877
6878 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
6879 std::string.
6880 * tui/tui-regs.c (class tab_expansion_file): New.
6881 (tab_expansion_file::write): New method.
6882 (tui_register_format): Change return type. Use
6883 tab_expansion_file.
6884 (tui_get_register, tui_data_window::display_registers_from)
6885 (tui_data_item_window::rerender): Update.
6886 * tui/tui-io.h (tui_expand_tabs): Don't declare.
6887 * tui/tui-io.c (tui_expand_tabs): Remove.
6888
ea68593b
TT
68892020-07-01 Tom Tromey <tom@tromey.com>
6890
6891 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
6892
a8caed5d
FS
68932020-07-01 Fangrui Song <maskray@google.com>
6894
6895 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
6896
9cdf9820
AKS
68972020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6898
6899 * dwarf2/read.c (set_die_type): Removed conditions to restrict
6900 forms for DW_AT_associated and DW_AT_allocated attributes,
6901 which is already checked in function attr_to_dynamic_prop.
6902
a1520ad8
TT
69032020-06-30 Tom Tromey <tromey@adacore.com>
6904
6905 * dwarf2/read.c (quirk_rust_enum): Correctly call
6906 alloc_rust_variant for default-less enum.
6907
5ac58899
TT
69082020-06-30 Tom Tromey <tromey@adacore.com>
6909
6910 PR build/26183:
6911 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
6912 gdb::to_string.
6913
19b187a9
SM
69142020-06-29 Simon Marchi <simon.marchi@efficios.com>
6915
6916 * gdbarch.sh (displaced_step_copy_insn): Update doc.
6917 * gdbarch.h: Re-generate.
6918
cd4c4c07
TT
69192020-06-28 Tom Tromey <tom@tromey.com>
6920
6921 * command.h (cmd_types): Remove.
6922 (cmd_type): Don't declare.
6923 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
6924 typedef.
6925 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
6926 * cli/cli-decode.c (cmd_type): Remove.
6927
05779d57
PA
69282020-06-27 Pedro Alves <palves@redhat.com>
6929
6930 * fork-child.c (prefork_hook): Adjust.
6931 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
6932 Delete.
6933 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
6934 * inferior.c (inferior::set_tty, inferior::tty): New methods.
6935 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
6936 Remove declarations.
6937 (struct inferior) <set_tty, tty>: New methods.
6938 (struct inferior) <terminal>: Rename to ...
6939 (struct inferior) <m_terminal>: ... this and make private.
6940 * main.c (captured_main_1): Adjust.
6941 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
6942 (mi_cmd_inferior_tty_show): Adjust.
6943 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
6944 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
6945
1776e3e5
NA
69462020-06-26 Nick Alcock <nick.alcock@oracle.com>
6947
6948 * configure.ac: Add --enable-libctf: handle --disable-static
6949 properly.
6950 * acinclude.m4: sinclude ../config/enable.m4.
6951 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
6952 (LIBCTF): Substitute in.
6953 (CTF_DEPS): New, likewise.
6954 (CLIBS): libctf needs symbols from libbfd: move earlier.
6955 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
6956 flags.
6957 * ctfread.c: Surround in ENABLE_LIBCTF.
6958 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
6959 * configure: Regenerate.
6960 * config.in: Likewise.
6961
58373b80
SM
69622020-06-25 Simon Marchi <simon.marchi@efficios.com>
6963
6964 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
6965
277474ee
SM
69662020-06-25 Simon Marchi <simon.marchi@efficios.com>
6967
6968 * inferior.h (struct inferior) <terminal>: Change type to
6969 gdb::unique_xmalloc_ptr<char>.
6970 * inferior.c (inferior::~inferior): Don't free inf->terminal.
6971 * infcmd.c (set_inferior_io_terminal): Don't free terminal
6972 field, adjust to unique pointer.
6973 (get_inferior_io_terminal): Adjust to unique pointer.
6974
6d74da72
AB
69752020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6976
6977 * riscv-tdep.c (riscv_print_registers_info): Loop over all
6978 registers, not just the known core set of registers.
6979
2e52d038
AB
69802020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6981
6982 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
6983 fflags, frm, and fcsr registers.
6984 (riscv_register_reggroup_p): Remove unknown CSRs from save and
6985 restore groups.
6986 (riscv_tdesc_unknown_reg): New function.
6987 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
6988 tdesc_use_registers.
6989 * riscv-tdep.h (struct gdbarch_tdep): Add
6990 unknown_csrs_first_regnum, unknown_csrs_count,
6991 duplicate_fflags_regnum, duplicate_frm_regnum, and
6992 duplicate_fcsr_regnum fields.
6993
be64fd07
AB
69942020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6995
6996 * target-descriptions.c (tdesc_use_registers): Add new parameter a
6997 callback, use the callback (when not null) to help number unknown
6998 registers.
6999 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
7000 (tdesc_use_registers): Add extra parameter to declaration.
7001
3b9fce96
AB
70022020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7003
7004 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
7005 in the file.
7006 (class riscv_pending_register_alias): Likewise.
7007 (riscv_register_feature::register_info): Change 'required_p' field
7008 to 'required', and change its type. Add 'check' member function.
7009 (riscv_register_feature::register_info::check): Define new member
7010 function.
7011 (riscv_xreg_feature): Change initialisation of 'required' field.
7012 (riscv_freg_feature): Likewise.
7013 (riscv_virtual_feature): Likewise.
7014 (riscv_csr_feature): Likewise.
7015 (riscv_check_tdesc_feature): Take extra parameter, the csr
7016 tdesc_feature, rewrite the function to use the new
7017 riscv_register_feature::register_info::check function.
7018 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
7019
865bad26
AB
70202020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7021
7022 * features/Makefile: Remove all references to the deleted files
7023 below.
7024 * features/riscv/32bit-csr.c: Deleted.
7025 * features/riscv/32bit-csr.xml: Deleted.
7026 * features/riscv/64bit-csr.c: Deleted.
7027 * features/riscv/64bit-csr.xml: Deleted.
7028 * features/riscv/rebuild-csr-xml.sh: Deleted.
7029
ed69cbc8
AB
70302020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7031
7032 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
7033 whitespace error for declaration of names member variable.
7034 (struct riscv_register_feature): Add new prefer_first_name member
7035 variable, and fix whitespace error in declaration of registers.
7036 (riscv_xreg_feature): Initialize prefer_first_name field.
7037 (riscv_freg_feature): Likewise.
7038 (riscv_virtual_feature): Likewise.
7039 (riscv_csr_feature): Likewise.
7040 (riscv_register_name): Expand on comments. Remove register name
7041 modifications for CSR and virtual registers.
7042
4445e8f5
AB
70432020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7044
7045 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
7046 errors.
7047
767a879e
AB
70482020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7049
7050 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
7051 riscv-opc.h.
7052 (class riscv_pending_register_alias): New class.
7053 (riscv_check_tdesc_feature): Take vector of pending aliases and
7054 populate it as appropriate.
7055 (riscv_setup_register_aliases): Delete.
7056 (riscv_gdbarch_init): Create vector of pending aliases and pass it
7057 to riscv_check_tdesc_feature in all cases. Use the vector to
7058 create the register aliases.
7059
bb6e55f3
RO
70602020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7061
7062 * sol2-tdep.c (sol2_static_transform_name): Remove.
7063 (sol2_init_abi): Don't register it.
7064 * gdbarch.sh (static_transform_name): Remove.
7065 * gdbarch.c, gdbarch.h: Regenerate.
7066
7067 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
7068 gdbarch_static_transform_name.
7069 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
7070 * stabsread.c (define_symbol) <'X'>: Remove.
7071 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
7072 handling.
7073 <'V'>: Likewise.
7074 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
7075 <'S'>: Remove call to gdbarch_static_transform_name.
7076
c6d36836
RO
70772020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7078
7079 * procfs.c (procfs_pre_trace): New function.
7080 (procfs_target::create_inferior): Pass it to fork_inferior.
7081
a7e6196b
RO
70822020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7083
7084 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
7085 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
7086 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
7087 sol2-tdep.o, sparc-sol2-tdep.o.
7088 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
7089 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
7090 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
7091 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
7092
d412e696
RO
70932020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7094
7095 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
7096 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
7097 Call sol2_init_abi.
7098 Remove calls to set_gdbarch_skip_solib_resolver,
7099 set_gdbarch_core_pid_to_str.
7100 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
7101 (i386_sol2_static_transform_name): Remove.
7102 (i386_sol2_init_abi): Call sol2_init_abi.
7103 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7104 set_gdbarch_static_transform_name,
7105 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7106 Use sol2_sigtramp_p.
7107 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
7108 (sol2_sigtramp_p): New function.
7109 (sol2_static_transform_name): New function.
7110 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
7111 (sol2_init_abi): New function.
7112 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
7113 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
7114 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
7115 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
7116 (sparc_sol2_static_transform_name): Remove.
7117 (sparc32_sol2_init_abi): Call sol2_init_abi.
7118 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7119 set_gdbarch_static_transform_name,
7120 set_gdbarch_skip_solib_resolver,
7121 set_gdbarch_core_pid_to_str.
7122 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
7123 (sparc_sol2_static_transform_name): Remove
7124 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
7125 call sol2_sigtramp_p.
7126 (sparc64_sol2_init_abi): Call sol2_init_abi.
7127 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7128 set_gdbarch_static_transform_name,
7129 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7130
a8654e7d
PW
71312020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7132
7133 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
7134 * exec.c (validate_exec_file): If from_tty, set both
7135 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
7136 * symfile.c (symbol_file_add_with_addrs): if always_confirm
7137 and from_tty, unconditionally ask a confirmation.
7138
caa7fd04
AB
71392020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7140
7141 * target-descriptions.c (tdesc_architecture_name): Protect against
7142 NULL pointer dereference.
7143 (maint_print_xml_tdesc_cmd): New function.
7144 (_initialize_target_descriptions): Register new 'maint print
7145 xml-tdesc' command and give it the filename completer.
7146 * NEWS: Mention new 'maint print xml-tdesc' command.
7147
fbf42f4e
AB
71482020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7149
7150 * target-descriptions.c (class tdesc_compatible_info): New class.
7151 (struct target_desc): Change type of compatible vector.
7152 (tdesc_compatible_p): Update for change in type of
7153 target_desc::compatible.
7154 (tdesc_compatible_info_list): New function.
7155 (tdesc_compatible_info_arch_name): New function.
7156 (tdesc_add_compatible): Update for change in type of
7157 target_desc::compatible.
7158 (print_c_tdesc::visit_pre): Likewise.
7159
20821f4e
AB
71602020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7161
7162 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
7163 whitespace to underscore.
7164 (maint_print_c_tdesc_cmd): Use fake filename for target
7165 descriptions that came from the target.
7166 (_initialize_target_descriptions): Add filename command completion
7167 for 'maint print c-tdesc'.
7168
1fb5ee62
SM
71692020-06-23 Simon Marchi <simon.marchi@efficios.com>
7170
7171 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
7172 lines.
7173
fc3ecb3e
SM
71742020-06-23 Simon Marchi <simon.marchi@efficios.com>
7175
7176 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
7177 lines.
7178 (dwarf2_find_location_expression): Likewise.
7179 (call_site_parameter_matches): Likewise.
7180 (dwarf2_compile_expr_to_ax): Likewise.
7181 (disassemble_dwarf_expression): Likewise.
7182 (loclist_describe_location): Likewise.
7183
236ef034
PA
71842020-06-23 Pedro Alves <palves@redhat.com>
7185
7186 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
7187 progspace-and-thread.h. Include scoped-mock-context.h instead.
7188 (register_to_value_test): Use scoped_mock_context.
7189 * regcache.c: Include "scoped-mock-context.h".
7190 (cooked_read_test): Don't error out if a target is already pushed.
7191 Use scoped_mock_context. Adjust.
7192 * scoped-mock-context.h: New file.
7193
39e7ecca
AB
71942020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7195
7196 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
7197 initializer.
7198 (ada_language::is_string_type_p): New member function.
7199 * c-lang.c (c_language_data): Delete la_is_string_type_p
7200 initializer.
7201 (cplus_language_data): Likewise.
7202 (asm_language_data): Likewise.
7203 (minimal_language_data): Likewise.
7204 * d-lang.c (d_language_data): Likewise.
7205 * f-lang.c (f_is_string_type_p): Delete function, implementation
7206 moved to f_language::is_string_type_p.
7207 (f_language_data): Delete la_is_string_type_p initializer.
7208 (f_language::is_string_type_p): New member function,
7209 implementation from f_is_string_type_p.
7210 * go-lang.c (go_is_string_type_p): Delete function, implementation
7211 moved to go_language::is_string_type_p.
7212 (go_language_data): Delete la_is_string_type_p initializer.
7213 (go_language::is_string_type_p): New member function,
7214 implementation from go_is_string_type_p.
7215 * language.c (language_defn::is_string_type_p): Define new member
7216 function.
7217 (default_is_string_type_p): Make static, add comment copied from
7218 header file.
7219 (unknown_language_data): Delete la_is_string_type_p initializer.
7220 (unknown_language::is_string_type_p): New member function.
7221 (auto_language_data): Delete la_is_string_type_p initializer.
7222 (auto_language::is_string_type_p): New member function.
7223 * language.h (language_data): Delete la_is_string_type_p field.
7224 (language_defn::is_string_type_p): Declare new function.
7225 (default_is_string_type_p): Delete desclaration, move comment to
7226 definition.
7227 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
7228 moved to m2_language::is_string_type_p.
7229 (m2_language_data): Delete la_is_string_type_p initializer.
7230 (m2_language::is_string_type_p): New member function,
7231 implementation from m2_is_string_type_p.
7232 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
7233 initializer.
7234 * opencl-lang.c (opencl_language_data): Likewise.
7235 * p-lang.c (pascal_is_string_type_p): Delete function,
7236 implementation moved to pascal_language::is_string_type_p.
7237 (pascal_language_data): Delete la_is_string_type_p initializer.
7238 (pascal_language::is_string_type_p): New member function,
7239 implementation from pascal_is_string_type_p.
7240 * rust-lang.c (rust_is_string_type_p): Delete function,
7241 implementation moved to rust_language::is_string_type_p.
7242 (rust_language_data): Delete la_is_string_type_p initializer.
7243 (rust_language::is_string_type_p): New member function,
7244 implementation from rust_is_string_type_p.
7245 * valprint.c (val_print_scalar_or_string_type_p): Update call to
7246 is_string_type_p.
7247
4ffc13fb
AB
72482020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7249
7250 * ada-lang.c (ada_language_data): Delete la_print_typedef
7251 initializer.
7252 (ada_language::print_typedef): New member function.
7253 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
7254 (cplus_language_data): Likewise.
7255 (asm_language_data): Likewise.
7256 (minimal_language_data): Likewise.
7257 * d-lang.c (d_language_data): Likewise.
7258 * f-lang.c (f_language_data): Likewise.
7259 (f_language::print_typedef): New member function.
7260 * go-lang.c (go_language_data): Delete la_print_typedef
7261 initializer.
7262 * language.c (language_defn::print_typedef): Define member
7263 function.
7264 (unknown_language_data): Delete la_print_typedef initializer.
7265 (unknown_language::print_typedef): New member function.
7266 (auto_language_data): Delete la_print_typedef initializer.
7267 (auto_language::print_typedef): New member function.
7268 * language.h (language_data): Delete la_print_typedef field.
7269 (language_defn::print_typedef): Declare new member function.
7270 (LA_PRINT_TYPEDEF): Update call to print_typedef.
7271 (default_print_typedef): Delete declaration.
7272 * m2-lang.c (m2_language_data): Delete la_print_typedef
7273 initializer.
7274 (m2_language::print_typedef): New member function.
7275 * objc-lang.c (objc_language_data): Delete la_print_typedef
7276 initializer.
7277 * opencl-lang.c (opencl_language_data): Likewise.
7278 * p-lang.c (pascal_language_data): Likewise.
7279 (pascal_language::print_typedef): New member function.
7280 * rust-lang.c (rust_print_typedef): Delete function,
7281 implementation moved to rust_language::print_typedef.
7282 (rust_language): Delete la_print_typedef initializer.
7283 (rust_language::print_typedef): New member function,
7284 implementation from rust_print_typedef.
7285 * typeprint.c (default_print_typedef): Delete.
7286
d711ee67
AB
72872020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7288
7289 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
7290 (ada_language::printstr): New member function.
7291 * c-lang.c (c_language_data): Delete la_printstr initializer.
7292 (cplus_language_data): Likewise.
7293 (asm_language_data): Likewise.
7294 (minimal_language_data): Likewise.
7295 * d-lang.c (d_language_data): Likewise.
7296 * f-lang.c (f_printstr): Rename to f_language::printstr.
7297 (f_language_data): Delete la_printstr initializer.
7298 (f_language::printstr): New member function, implementation from
7299 f_printstr.
7300 * go-lang.c (go_language_data): Delete la_printstr initializer.
7301 * language.c (language_defn::printstr): Define new member
7302 function.
7303 (unk_lang_printstr): Delete.
7304 (unknown_language_data): Delete la_printstr initializer.
7305 (unknown_language::printstr): New member function.
7306 (auto_language_data): Delete la_printstr initializer.
7307 (auto_language::printstr): New member function.
7308 * language.h (language_data): Delete la_printstr field.
7309 (language_defn::printstr): Declare new member function.
7310 (LA_PRINT_STRING): Update call to printstr.
7311 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
7312 (m2_language_data): Delete la_printstr initializer.
7313 (m2_language::printstr): New member function, implementation from
7314 m2_printstr.
7315 * objc-lang.c (objc_language_data): Delete la_printstr
7316 initializer.
7317 * opencl-lang.c (opencl_language_data): Likewise.
7318 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
7319 (pascal_language_data): Delete la_printstr initializer.
7320 (pascal_language::printstr): New member function, implementation
7321 from pascal_printstr.
7322 * p-lang.h (pascal_printstr): Delete declaration.
7323 * rust-lang.c (rust_printstr): Update header comment.
7324 (rust_language_data): Delete la_printstr initializer.
7325 (rust_language::printstr): New member function.
7326
52b50f2c
AB
73272020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7328
7329 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
7330 (ada_language::printchar): New member function.
7331 * c-lang.c (c_language_data): Delete la_printchar initializer.
7332 (cplus_language_data): Likewise.
7333 (asm_language_data): Likewise.
7334 (minimal_language_data): Likewise.
7335 * d-lang.c (d_language_data): Likewise.
7336 * f-lang.c (f_printchar): Rename to f_language::printchar.
7337 (f_language_data): Delete la_printchar initializer.
7338 (f_language::printchar): New member function, implementation from
7339 f_printchar.
7340 * go-lang.c (go_language_data): Delete la_printchar initializer.
7341 * language.c (unk_lang_printchar): Delete.
7342 (language_defn::printchar): Define new member function.
7343 (unknown_language_data): Delete la_printchar initializer.
7344 (unknown_language::printchar): New member function.
7345 (auto_language_data): Delete la_printchar initializer.
7346 (auto_language::printchar): New member function.
7347 * language.h (language_data): Delete la_printchar field.
7348 (language_defn::printchar): Declare new member function.
7349 (LA_PRINT_CHAR): Update call to printchar.
7350 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
7351 (m2_language::printchar): New member function.
7352 * objc-lang.c (objc_language_data): Delete la_printchar
7353 initializer.
7354 * opencl-lang.c (opencl_language_data): Likewise.
7355 * p-lang.c (pascal_language_data): Delete la_printchar
7356 initializer.
7357 (pascal_language::printchar): New member function.
7358 * rust-lang.c (rust_printchar): Rename to
7359 rust_language::printchar.
7360 (rust_language_data): Delete la_printchar initializer.
7361 (rust_language::printchar): New member function, implementation
7362 from rust_printchar.
7363
ec8cec5b
AB
73642020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7365
7366 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
7367 (ada_language_data): Delete la_emitchar initializer.
7368 (ada_language::emitchar): New member function, implementation from
7369 emit_char.
7370 * c-lang.c (c_language_data): Delete la_emitchar initializer.
7371 (cplus_language_data): Likewise.
7372 (asm_language_data): Likewise.
7373 (minimal_language_data): Likewise.
7374 * d-lang.c (d_language_data): Likewise.
7375 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
7376 (f_language_data): Delete la_emitchar initializer.
7377 (f_language::emitchar): New member function, implementation from
7378 f_emit_char.
7379 * go-lang.c (go_language_data): Delete la_emitchar initializer.
7380 * language.c (unk_lang_emit_char): Delete.
7381 (language_defn::emitchar): New member function definition.
7382 (unknown_language_data): Delete la_emitchar initializer.
7383 (unknown_language::emitchar): New member function.
7384 (auto_language_data): Delete la_emitchar initializer.
7385 (auto_language::emitchar): New member function.
7386 * language.h (language_data): Delete la_emitchar field.
7387 (language_defn::emitchar): New member field declaration.
7388 (LA_EMIT_CHAR): Update call to emitchar.
7389 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
7390 (m2_language_data): Delete la_emitchar initializer.
7391 (m2_language::emitchar): New member function, implementation from
7392 m2_emit_char.
7393 * objc-lang.c (objc_language_data): Delete la_emitchar
7394 initializer.
7395 * opencl-lang.c (opencl_language_data): Likewise.
7396 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
7397 (pascal_language_data): Delete la_emitchar initializer.
7398 (pascal_language::emitchar): New member function, implementation
7399 from pascal_emit_char.
7400 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
7401 (rust_language_data): Delete la_emitchar initializer.
7402 (rust_language::emitchar): New member function, implementation
7403 from rust_emitchar.
7404
1bf9c363
AB
74052020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7406
7407 * ada-lang.c (resolve): Rename to ada_language::post_parser.
7408 (ada_language_data): Delete la_post_parser initializer.
7409 (ada_language::post_parser): New member function.
7410 * c-lang.c (c_language_data): Delete la_post_parser initializer.
7411 (cplus_language_data): Likewise.
7412 (asm_language_data): Likewise.
7413 (minimal_language_data): Likewise.
7414 * d-lang.c (d_language_data): Likewise.
7415 * f-lang.c (f_language_data): Likewise.
7416 * go-lang.c (go_language_data): Likewise.
7417 * language.c (unknown_language_data): Likewise.
7418 (auto_language_data): Likewise.
7419 * language.h (language_data): Delete la_post_parser field.
7420 (language_defn::post_parser): New member function.
7421 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
7422 * objc-lang.c (objc_language_data): Likewise.
7423 * opencl-lang.c (opencl_language_data): Likewise.
7424 * p-lang.c (pascal_language_data): Likewise.
7425 * parse.c (parse_exp_in_context): Update call to post_parser.
7426 (null_post_parser): Delete definition.
7427 * parser-defs.h (null_post_parser): Delete declaration.
7428 * rust-lang.c (rust_language_data): Delete la_post_parser
7429 initializer.
7430
87afa652
AB
74312020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7432
7433 * ada-lang.c (parse): Rename to ada_language::parser.
7434 (ada_language_data): Delete la_parser initializer.
7435 (ada_language::parser): New member function, implementation from
7436 parse.
7437 * c-lang.c (c_language_data): Delete la_parser initializer.
7438 (cplus_language_data): Likewise.
7439 (asm_language_data): Likewise.
7440 (minimal_language_data): Likewise.
7441 * d-lang.c (d_language_data): Likewise.
7442 (d_language::parser): New member function.
7443 * f-lang.c (f_language_data): Delete la_parser initializer.
7444 (f_language::parser): New member function.
7445 * go-lang.c (go_language_data): Delete la_parser initializer.
7446 (go_language::parser): New member function.
7447 * language.c (unk_lang_parser): Delete.
7448 (language_defn::parser): Define new member function.
7449 (unknown_language_data): Delete la_parser initializer.
7450 (unknown_language::parser): New member function.
7451 (auto_language_data): Delete la_parser initializer.
7452 (auto_language::parser): New member function.
7453 * language.h (language_data): Delete la_parser field.
7454 (language_defn::parser): Declare new member function.
7455 * m2-lang.c (m2_language_data): Delete la_parser initializer.
7456 (m2_language::parser): New member function.
7457 * objc-lang.c (objc_language_data): Delete la_parser initializer.
7458 * opencl-lang.c (opencl_language_data): Likewise.
7459 * p-lang.c (pascal_language_data): Likewise.
7460 (pascal_language::parser): New member function.
7461 * parse.c (parse_exp_in_context): Update call to parser.
7462 * rust-lang.c (rust_language_data): Delete la_parser initializer.
7463 (rust_language::parser): New member function.
7464
37825800
AB
74652020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7466
7467 * top.c (print_gdb_configuration): Print --with-python-libdir
7468 configuration value.
7469
5b860c93
PW
74702020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7471
7472 * NEWS: Mention change to the alias command.
7473
cf00cd6f
PW
74742020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7475
7476 * cli/cli-cmds.c (lookup_cmd_for_default_args)
7477 (alias_command_completer)
7478 (make_alias_options_def_group): New functions.
7479 (alias_opts, alias_option_defs): New struct and array.
7480 (alias_usage_error): Update usage.
7481 (alias_command): Handles optional DEFAULT-ARGS... arguments.
7482 Use option framework.
7483 (_initialize_cli_cmds): Update alias command help.
7484 Update aliases command help.
7485 (show_user):
7486 Add NULL for new default_args lookup_cmd argument.
7487 (valid_command_p): Rename to validate_aliased_command.
7488 Add NULL for new default_args lookup_cmd argument. Verify that the
7489 aliased_command has no default args.
7490 * cli/cli-decode.c (help_cmd): Show aliases definitions.
7491 (lookup_cmd_1, lookup_cmd): New argument default_args.
7492 (add_alias_cmd):
7493 Add NULL for new default_args lookup_cmd argument.
7494 (print_help_for_command): Show default args under the layout
7495 alias some_alias = some_aliased_cmd some_alias_default_arg.
7496 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
7497 xfree default_args in destructor.
7498 * cli/cli-script.c (process_next_line, do_define_command):
7499 Add NULL for new default_args lookup_cmd argument.
7500 * command.h: Declare new default_args argument in lookup_cmd
7501 and lookup_cmd_1.
7502 * completer.c (complete_line_internal_1):
7503 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7504 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
7505 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
7506 Likewise.
7507 * infcmd.c (_initialize_infcmd): Likewise.
7508 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
7509 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
7510 * python/py-param.c (add_setshow_generic): Likewise.
7511 * remote.c (_initialize_remote): Likewise.
7512 * top.c (execute_command): Prepend default_args if command has some.
7513 (set_verbose):
7514 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7515 * tracepoint.c (validate_actionline, encode_actions_1):
7516 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7517
bd920864
TBA
75182020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7519
7520 * jit.c (jit_read_descriptor): Use bool as the return type.
7521 (jit_breakpoint_re_set_internal): Use bool as the return type.
7522 Invert the return value logic; return true if the jit breakpoint
7523 has been successfully initialized.
7524 (jit_inferior_init): Update the call to
7525 jit_breakpoint_re_set_internal.
7526
f8098322
PA
75272020-06-22 Pedro Alves <palves@redhat.com>
7528
7529 PR gdb/25939
7530 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
7531 Use the current inferior instead. Don't return
7532 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
7533 wait again.
7534 * sol-thread.c (sol_thread_target::wait): Don't reference
7535 inferior_ptid.
7536 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
7537 (sol_update_thread_list_callback): Use the current inferior's pid
7538 instead of inferior_ptid.
7539
196535a6
RO
75402020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7541
7542 * procfs.c: Cleanup many comments.
7543
7544 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
7545 (AFTER_WATCHFLAG): Replace by value.
7546
7547 (MAIN_PROC_NAME_FORMAT): Inline ...
7548 (create_procinfo): ... here.
7549
7550 (procfs_debug_inferior): Remove SYS_exec handling.
7551 (syscall_is_exec): Likewise.
7552 (procfs_set_exec_trap): Likewise.
7553
7554 (syscall_is_lwp_exit): Inline in callers.
7555 (syscall_is_exit): Likewise.
7556 (syscall_is_exec): Likewise.
7557 (syscall_is_lwp_create): Likewise.
7558
7559 (invalidate_cache): Remove #if 0 code.
7560
7561 (make_signal_thread_runnable): Remove.
7562 (procfs_target::resume): Remove #if 0 code.
7563
cf6f3e86
RO
75642020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7565
7566 PR gdb/25939
7567 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
7568 call ...
7569 (procfs_target::create_inferior): ... here.
7570
48e9cc84
PW
75712020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7572
7573 * exec.c (validate_exec_file): Ensure the build-id is up to
7574 date by calling reopen_exec_file (that checks file timestamp
7575 to decide to re-read the file).
7576
3922b302
PA
75772020-06-18 Pedro Alves <palves@redhat.com>
7578
7579 PR gdb/25412
7580 * gdbthread.h (delete_thread, delete_thread_silent)
7581 (find_thread_ptid): Update comments.
7582 * thread.c (current_thread_): New global.
7583 (is_current_thread): Move higher, and reimplement.
7584 (inferior_thread): Reimplement.
7585 (set_thread_exited): Use bool. Add assertions.
7586 (add_thread_silent): Simplify thread-reuse handling by always
7587 calling delete_thread.
7588 (delete_thread): Remove intro comment.
7589 (find_thread_ptid): Skip exited threads.
7590 (switch_to_thread_no_regs): Write to current_thread_.
7591 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
7592 INFERIOR_PTID. Clear current_thread_.
7593
6dbdab44
PA
75942020-06-18 Pedro Alves <palves@redhat.com>
7595
7596 * aix-thread.c (pd_update): Use switch_to_thread.
7597
2da4b788
PA
75982020-06-18 Pedro Alves <palves@redhat.com>
7599
7600 * ravenscar-thread.c (ravenscar_thread_target): Update.
7601 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
7602 (ravenscar_thread_target::add_active_thread): ... this. Don't
7603 set m_base_ptid here. Update to avoid referencing inferior_ptid.
7604 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
7605
50838d1b
PA
76062020-06-18 Pedro Alves <palves@redhat.com>
7607
7608 * nat/windows-nat.c (current_windows_thread): Remove.
7609 * nat/windows-nat.h (current_windows_thread): Remove.
7610 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
7611 Adjust.
7612 (display_selectors): Adjust to fetch the current
7613 windows_thread_info based on inferior_ptid.
7614 (fake_create_process): No longer write to current_windows_thread.
7615 (windows_nat_target::get_windows_debug_event):
7616 Don't set inferior_ptid or current_windows_thread.
7617 (windows_nat_target::wait): Adjust to not rely on
7618 current_windows_thread.
7619 (do_initial_windows_stuff): Now a method of windows_nat_target.
7620 Switch to the last_ptid thread.
7621 (windows_nat_target::attach): Adjust.
7622 (windows_nat_target::detach): Use switch_to_no_thread instead of
7623 writing to inferior_ptid directly.
7624 (windows_nat_target::create_inferior): Adjust.
7625
31ce04e9
PA
76262020-06-18 Pedro Alves <palves@redhat.com>
7627
7628 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
7629
1ee1a363
PA
76302020-06-18 Pedro Alves <palves@redhat.com>
7631
7632 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
7633 after creating it, instead of writing to inferior_ptid. Don't
7634 write to inferior_ptid.
7635
6d350754
PA
76362020-06-18 Pedro Alves <palves@redhat.com>
7637
7638 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
7639
5d971d48
PA
76402020-06-18 Pedro Alves <palves@redhat.com>
7641
7642 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
7643 it, instead of writing to inferior_ptid.
7644
86e57d1b
PA
76452020-06-18 Pedro Alves <palves@redhat.com>
7646
7647 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
7648 to inferior_ptid.
7649
f2e1c129
PA
76502020-06-18 Pedro Alves <palves@redhat.com>
7651
7652 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
7653 instead of writing to inferior_ptid directly.
7654
60db1b85
PA
76552020-06-18 Pedro Alves <palves@redhat.com>
7656
7657 * corelow.c (core_target::close): Use switch_to_no_thread instead
7658 of writing to inferior_ptid directly.
7659 (add_to_thread_list, core_target_open): Use switch_to_thread
7660 instead of writing to inferior_ptid directly.
7661
fe7d6a8d
PA
76622020-06-18 Pedro Alves <palves@redhat.com>
7663
7664 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
7665 inferior_ptid.
7666 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
7667 inferior_ptid.
7668 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
7669 inferior_ptid directly.
7670 (darwin_nat_target::init_thread_list): Switch to thread, instead
7671 of writing to inferior_ptid.
7672 (darwin_nat_target::attach): Don't write to inferior_ptid.
7673 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
7674
975f8708
PA
76752020-06-18 Pedro Alves <palves@redhat.com>
7676
7677 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
7678 thread.
7679 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
7680 Instead use switch_to_thread.
7681 (gnu_nat_target::detach): Use switch_to_no_thread
7682 instead of writing to inferior_ptid directly. Used passed-in
7683 inferior instead of looking up the inferior by pid.
7684
1a204730
PA
76852020-06-18 Pedro Alves <palves@redhat.com>
7686
7687 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
7688 inferior_ptid.
7689
ebe84f23
PA
76902020-06-18 Pedro Alves <palves@redhat.com>
7691
7692 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
7693 inferior_ptid.
7694 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
7695 thread.
7696 (nto_procfs_target::detach): Avoid referencing
7697 inferior_ptid. Use switch_to_no_thread instead of writing to
7698 inferior_ptid directly.
7699 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
7700 instead of writing to inferior_ptid directly.
7701 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
7702 to thread.
7703
191f02e5
PA
77042020-06-18 Pedro Alves <palves@redhat.com>
7705
7706 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
7707 after creating it, instead of writing to inferior_ptid.
7708 (gdbsim_target_open): Use switch_to_no_thread instead of writing
7709 to inferior_ptid directly.
7710 (gdbsim_target::wait): Don't write to inferior_ptid.
7711
0ac55310
PA
77122020-06-18 Pedro Alves <palves@redhat.com>
7713
7714 * remote.c (remote_target::remote_notice_new_inferior): Use
7715 switch_to_thread instead of writing to inferior_ptid directly.
7716 (remote_target::add_current_inferior_and_thread): Use
7717 switch_to_no_thread instead of writing to inferior_ptid directly.
7718 (extended_remote_target::attach): Use switch_to_inferior_no_thread
7719 and switch_to_thread instead of using set_current_inferior or
7720 writing to inferior_ptid directly.
7721
5233f39b
PA
77222020-06-18 Pedro Alves <palves@redhat.com>
7723
7724 * tracectf.c (ctf_target_open): Switch to added thread instead of
7725 writing to inferior_ptid directly.
7726 (ctf_target::close): Use switch_to_no_thread instead of writing to
7727 inferior_ptid directly.
7728
087e161b
PA
77292020-06-18 Pedro Alves <palves@redhat.com>
7730
7731 * tracefile-tfile.c (tfile_target_open): Don't write to
7732 inferior_ptid directly, instead switch to added thread.
7733 (tfile_target::close): Use switch_to_no_thread instead of writing
7734 to inferior_ptid directly.
7735
7fb43e53
PA
77362020-06-18 Pedro Alves <palves@redhat.com>
7737
7738 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
7739 (procfs_target::detach): Use switch_to_no_thread
7740 instead of writing to inferior_ptid directly.
7741 (do_attach): Change return type to void. Switch to the added
7742 thread.
7743 (procfs_target::create_inferior): Switch to the added thread.
7744 (procfs_do_thread_registers): Don't write to inferior_ptid.
7745
18493a00
PA
77462020-06-18 Pedro Alves <palves@redhat.com>
7747
7748 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
7749 of writing to inferior_ptid.
7750 (scoped_restore_exited_inferior): Delete.
7751 (handle_vfork_child_exec_or_exit): Simplify using
7752 scoped_restore_current_pspace_and_thread. Use switch_to_thread
7753 instead of writing to inferior_ptid.
7754 (THREAD_STOPPED_BY): Delete.
7755 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
7756 (thread_stopped_by_hw_breakpoint): Delete.
7757 (save_waitstatus): Use
7758 scoped_restore_current_thread+switch_to_thread, and call
7759 target_stopped_by_watchpoint instead of
7760 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
7761 instead of thread_stopped_by_sw_breakpoint, and
7762 target_stopped_by_hw_breakpoint instead of
7763 thread_stopped_by_hw_breakpoint.
7764 (handle_inferior_event)
7765 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
7766 inferior_ptid directly, nor
7767 set_current_inferior/set_current_program_space. Use
7768 switch_to_thread / switch_to_inferior_no_thread instead.
7769
a0776b13
PA
77702020-06-18 Pedro Alves <palves@redhat.com>
7771
7772 * target.c (generic_mourn_inferior): Use switch_to_no_thread
7773 instead of writing to inferior_ptid.
7774
6155c136
PA
77752020-06-18 Pedro Alves <palves@redhat.com>
7776
7777 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
7778 added thread.
7779 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
7780 to the added thread.
7781 (inf_ptrace_target::detach_success): Use switch_to_no_thread
7782 instead of writing to inferior_ptid.
7783
c5316fc6
PA
77842020-06-18 Pedro Alves <palves@redhat.com>
7785
7786 * gdbarch-selftests.c: Include "progspace-and-thread.h".
7787 (register_to_value_test): Mock a program_space too. Heap-allocate
7788 the address space. Don't write to inferior_ptid. Use
7789 switch_to_thread instead.
7790
8df01799
PA
77912020-06-18 Pedro Alves <palves@redhat.com>
7792
7793 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
7794 Delete.
7795 (find_signalled_thread()): New, factored out from
7796 linux_make_corefile_notes and adjusted to handle exited threads.
7797 (linux_make_corefile_notes): Adjust to use the new
7798 find_signalled_thread.
7799
41792d68
PA
78002020-06-18 Pedro Alves <palves@redhat.com>
7801
7802 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
7803 of saving/restoring inferior_ptid.
7804
612f258a
TT
78052020-06-17 Tom Tromey <tom@tromey.com>
7806
7807 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
7808 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
7809 declare.
7810 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
7811
efb763a5
SM
78122020-06-15 Simon Marchi <simon.marchi@efficios.com>
7813
7814 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
7815 of partial symtabs.
7816
2951f6c0
SM
78172020-06-17 Simon Marchi <simon.marchi@efficios.com>
7818
7819 * regformats/reg-arm.dat: Remove.
7820 * regformats/reg-bfin.dat: Remove.
7821 * regformats/reg-cris.dat: Remove.
7822 * regformats/reg-crisv32.dat: Remove.
7823 * regformats/reg-m32r.dat: Remove.
7824 * regformats/reg-tilegx.dat: Remove.
7825 * regformats/reg-tilegx32.dat: Remove.
7826
7d458ea5
SM
78272020-06-17 Simon Marchi <simon.marchi@efficios.com>
7828
7829 * features/Makefile (WHICH): Remove arm files.
7830 * regformats/arm/arm-with-iwmmxt.dat: Remove.
7831 * regformats/arm/arm-with-neon.dat: Remove.
7832 * regformats/arm/arm-with-vfpv2.dat: Remove.
7833 * regformats/arm/arm-with-vfpv3.dat: Remove.
7834
3af96c0d
SM
78352020-06-17 Simon Marchi <simon.marchi@efficios.com>
7836
7837 * features/Makefile (XMLTOC): Remove rx.xml.
7838
b25e22fd
PA
78392020-06-17 Pedro Alves <palves@redhat.com>
7840
7841 * gdbthread.h (thread_control_state) <trap_expected> Update
7842 comments.
7843
a78a19b1
AB
78442020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7845
7846 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
7847 ada_language::lookup_symbol_nonlocal.
7848 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
7849 (ada_language::lookup_symbol_nonlocal): New member function,
7850 implementation from ada_lookup_symbol_nonlocal.
7851 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
7852 initializer.
7853 (cplus_language_data): Delete la_lookup_symbol_nonlocal
7854 initializer.
7855 (cplus_language::lookup_symbol_nonlocal): New member function.
7856 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
7857 (minimal_language_data) Likewise.
7858 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
7859 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
7860 initializer.
7861 (d_language::lookup_symbol_nonlocal): New member function.
7862 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
7863 initializer.
7864 (f_language::lookup_symbol_nonlocal): New member function.
7865 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
7866 initializer.
7867 * language.c (unknown_language_data): Likewise.
7868 (auto_language_data): Likewise.
7869 * language.h (language_data): Delete la_lookup_symbol_nonlocal
7870 field.
7871 (language_defn::lookup_symbol_nonlocal): New member function.
7872 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
7873 initializer.
7874 * objc-lang.c (objc_language_data): Likewise.
7875 * opencl-lang.c (opencl_language_data): Likewise.
7876 * p-lang.c (pascal_language_data): Likewise.
7877 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
7878 rust_language::lookup_symbol_nonlocal.
7879 (rust_language_data): Delete la_lookup_symbol_nonlocal
7880 initializer.
7881 (rust_language::lookup_symbol_nonlocal): New member function,
7882 implementation from rust_lookup_symbol_nonlocal.
7883 * symtab.c (lookup_symbol_aux): Update call to
7884 lookup_symbol_nonlocal.
7885 (basic_lookup_symbol_nonlocal): Rename to...
7886 (language_defn::lookup_symbol_nonlocal): ...this, and update
7887 header comment. Remove language_defn parameter, and replace with
7888 uses of `this'.
7889 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
7890
ebe2334e
AB
78912020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7892
7893 * ada-lang.c (ada_language_data): Delete la_value_print_inner
7894 initializer.
7895 (ada_language::value_print_inner): New member function.
7896 * c-lang.c (c_language_data): Delete la_value_print_inner
7897 initializer.
7898 (cplus_language_data): Likewise.
7899 (asm_language_data): Likewise.
7900 (minimal_language_data): Likewise.
7901 * d-lang.c (d_language_data): Likewise.
7902 (d_language::value_print_inner): New member function.
7903 * f-lang.c (f_language_data): Delete la_value_print_inner
7904 initializer.
7905 (f_language::value_print_inner): New member function.
7906 * f-lang.h (f_value_print_innner): Rename to...
7907 (f_value_print_inner): ...this (note spelling of 'inner').
7908 * f-valprint.c (f_value_print_innner): Rename to...
7909 (f_value_print_inner): ...this (note spelling of 'inner').
7910 * go-lang.c (go_language_data): Delete la_value_print_inner
7911 initializer.
7912 (go_language::value_print_inner): New member function.
7913 * language.c (language_defn::value_print_inner): Define new member
7914 function.
7915 (unk_lang_value_print_inner): Delete.
7916 (unknown_language_data): Delete la_value_print_inner initializer.
7917 (unknown_language::value_print_inner): New member function.
7918 (auto_language_data): Delete la_value_print_inner initializer.
7919 (auto_language::value_print_inner): New member function.
7920 * language.h (language_data): Delete la_value_print_inner field.
7921 (language_defn::value_print_inner): Delcare new member function.
7922 * m2-lang.c (m2_language_data): Delete la_value_print_inner
7923 initializer.
7924 (m2_language::value_print_inner): New member function.
7925 * objc-lang.c (objc_language_data): Delete la_value_print_inner
7926 initializer.
7927 * opencl-lang.c (opencl_language_data): Likewise.
7928 * p-lang.c (pascal_language_data): Likewise.
7929 (pascal_language::value_print_inner): New member function.
7930 * rust-lang.c (rust_language_data): Delete la_value_print_inner
7931 initializer.
7932 (rust_language::value_print_inner): New member function.
7933 * valprint.c (do_val_print): Update call to value_print_inner.
7934
a1d1fa3e
AB
79352020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7936
7937 * ada-lang.c (ada_language_data): Delete la_value_print
7938 initializer.
7939 (ada_language::value_print): New member function.
7940 * c-lang.c (c_language_data): Delete la_value_print initializer.
7941 (cplus_language_data): Likewise.
7942 (asm_language_data): Likewise.
7943 (minimal_language_data): Likewise.
7944 * d-lang.c (d_language_data): Likewise.
7945 * f-lang.c (f_language_data): Likewise.
7946 * go-lang.c (go_language_data): Likewise.
7947 * language.c (unk_lang_value_print): Delete.
7948 (language_defn::value_print): Define new member function.
7949 (unknown_language_data): Delete la_value_print initializer.
7950 (unknown_language::value_print): New member function.
7951 (auto_language_data): Delete la_value_print initializer.
7952 (auto_language::value_print): New member function.
7953 * language.h (language_data): Delete la_value_print field.
7954 (language_defn::value_print): Declare new member function.
7955 (LA_VALUE_PRINT): Update call to value_print.
7956 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
7957 * objc-lang.c (objc_language_data): Likewise.
7958 * opencl-lang.c (opencl_language_data): Likewise.
7959 * p-lang.c (pascal_language_data): Likewise.
7960 (pascal_language::value_print): New member function.
7961 * rust-lang.c (rust_language_data): Delete la_value_print
7962 initializer.
7963
f16a9f57
AB
79642020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7965
7966 * ada-lang.c (ada_watch_location_expression): Rename to
7967 ada_language::watch_location_expression.
7968 (ada_language_data): Delete la_watch_location_expression
7969 initializer.
7970 (ada_language::watch_location_expression): New member function,
7971 implementation from ada_watch_location_expression.
7972 * breakpoint.c (watch_command_1): Update call to
7973 watch_location_expression.
7974 * c-lang.c (c_watch_location_expression): Rename to
7975 language_defn::watch_location_expression.
7976 (c_language_data): Delete la_watch_location_expression
7977 initializer.
7978 (cplus_language_data): Likewise.
7979 (asm_language_data): Likewise.
7980 (minimal_language_data): Likewise.
7981 * c-lang.h (c_watch_location_expression): Delete declaration.
7982 * d-lang.c (d_language_data): Delete la_watch_location_expression
7983 initializer.
7984 * f-lang.c (f_language_data): Likewise.
7985 * go-lang.c (go_language_data): Likewise.
7986 * language.c (language_defn::watch_location_expression): Member
7987 function implementation from c_watch_location_expression.
7988 (unknown_language_data): Delete la_watch_location_expression
7989 initializer.
7990 (auto_language_data): Likewise.
7991 * language.h (language_data): Delete la_watch_location_expression
7992 field.
7993 (language_defn::watch_location_expression): Declare new member
7994 function.
7995 * m2-lang.c (m2_language_data): Delete
7996 la_watch_location_expression initializer.
7997 * objc-lang.c (objc_language_data): Likewise.
7998 * opencl-lang.c (opencl_language_data): Likewise.
7999 * p-lang.c (pascal_language_data): Likewise.
8000 * rust-lang.c (rust_watch_location_expression): Rename to
8001 rust_language::watch_location_expression.
8002 (rust_language_data): Delete la_watch_location_expression
8003 initializer.
8004 (rust_language::watch_location_expression): New member function,
8005 implementation from rust_watch_location_expression.
8006
7e56227d
AB
80072020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8008
8009 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
8010 ada_language::collect_symbol_completion_matches.
8011 (ada_language_data): Delete la_collect_symbol_completion_matches
8012 initializer.
8013 (ada_language::collect_symbol_completion_matches): New member
8014 function, implementation from
8015 ada_collect_symbol_completion_matches.
8016 * c-lang.c (c_language_data): Delete
8017 la_collect_symbol_completion_matches initializer.
8018 (cplus_language_data): Likewise.
8019 (asm_language_data): Likewise.
8020 (minimal_language_data): Likewise.
8021 * d-lang.c (d_language_data): Likewise.
8022 * f-lang.c (f_collect_symbol_completion_matches): Rename to
8023 f_language::collect_symbol_completion_matches.
8024 (f_language_data): Delete la_collect_symbol_completion_matches
8025 initializer.
8026 (f_language::collect_symbol_completion_matches) New member
8027 function, implementation from f_collect_symbol_completion_matches.
8028 * go-lang.c (go_language_data): Delete
8029 la_collect_symbol_completion_matches initializer.
8030 * language.c (unknown_language_data): Likewise.
8031 (auto_language_data): Likewise.
8032 * language.h (language_data): Delete
8033 la_collect_symbol_completion_matches field.
8034 (language_defn::collect_symbol_completion_matches): New member
8035 function.
8036 * m2-lang.c (m2_language_data): Delete
8037 la_collect_symbol_completion_matches initializer.
8038 * objc-lang.c (objc_language_data): Likewise.
8039 * opencl-lang.c (opencl_language_data): Likewise.
8040 * p-lang.c (pascal_language_data): Likewise.
8041 * rust-lang.c (rust_language_data): Likewise.
8042 * symtab.c (default_collect_symbol_completion_matches): Delete.
8043 (collect_symbol_completion_matches): Update call to
8044 collect_symbol_completion_matches.
8045 (collect_symbol_completion_matches_type): Likewise.
8046 * symtab.h (default_collect_symbol_completion_matches): Delete
8047 declaration.
8048
53fc67f8
AB
80492020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8050
8051 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
8052 (ada_language_data): Delete la_word_break_characters initializer.
8053 (ada_language::word_break_characters): New member function.
8054 * c-lang.c (c_language_data): Delete la_word_break_characters
8055 initializer.
8056 (cplus_language_data): Likewise.
8057 (asm_language_data): Likewise.
8058 (minimal_language_data): Likewise.
8059 * completer.c: Update global comment.
8060 (advance_to_expression_complete_word_point): Update call to
8061 word_break_characters.
8062 (complete_files_symbols): Likewise.
8063 (complete_line_internal_1): Likewise.
8064 (default_completer_handle_brkchars): Likewise.
8065 (skip_quoted_chars): Likewise.
8066 * d-lang.c (d_language_data): Delete la_word_break_characters
8067 initializer.
8068 * f-lang.c (f_word_break_characters): Delete.
8069 (f_language_data): Delete la_word_break_characters initializer.
8070 (f_language::word_break_characters): New member function.
8071 * go-lang.c (go_language_data): Delete la_word_break_characters
8072 initializer.
8073 * language.c (unknown_language_data): Likewise.
8074 (auto_language_data): Likewise.
8075 * language.h (default_word_break_characters): Move declaration to
8076 earlier in the file.
8077 (language_data): Delete la_word_break_characters field.
8078 (language_defn::word_break_characters): New member function.
8079 * m2-lang.c (m2_language_data): Delete la_word_break_characters
8080 initializer.
8081 * objc-lang.c (objc_language_data): Likewise.
8082 * opencl-lang.c (opencl_language_data): Likewise.
8083 * p-lang.c (pascal_language_data): Likewise.
8084 * rust-lang.c (rust_language_data): Likewise.
8085
c9debfb9
AB
80862020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8087
8088 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
8089 (ada_language_data): Delete la_get_symbol_name_matcher
8090 initializer.
8091 (language_defn::get_symbol_name_matcher_inner): New member
8092 function.
8093 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
8094 initializer.
8095 (cplus_language_data): Likewise.
8096 (cplus_language::get_symbol_name_matcher_inner): New member
8097 function.
8098 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
8099 (minimal_language_data): Likewise.
8100 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
8101 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
8102 initializer.
8103 * dictionary.c (iter_match_first_hashed): Update call to
8104 get_symbol_name_matcher.
8105 (iter_match_next_hashed): Likewise.
8106 (iter_match_next_linear): Likewise.
8107 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
8108 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
8109 initializer.
8110 (f_language::get_symbol_name_matcher_inner): New member function.
8111 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
8112 initializer.
8113 * language.c (default_symbol_name_matcher): Update header comment,
8114 make static.
8115 (language_defn::get_symbol_name_matcher): New definition.
8116 (language_defn::get_symbol_name_matcher_inner): Likewise.
8117 (get_symbol_name_matcher): Delete.
8118 (unknown_language_data): Delete la_get_symbol_name_matcher
8119 initializer.
8120 (auto_language_data): Likewise.
8121 * language.h (language_data): Delete la_get_symbol_name_matcher
8122 field.
8123 (language_defn::get_symbol_name_matcher): New member function.
8124 (language_defn::get_symbol_name_matcher_inner): Likewise.
8125 (default_symbol_name_matcher): Delete declaration.
8126 * linespec.c (find_methods): Update call to
8127 get_symbol_name_matcher.
8128 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
8129 initializer.
8130 * minsyms.c (lookup_minimal_symbol): Update call to
8131 get_symbol_name_matcher.
8132 (iterate_over_minimal_symbols): Likewise.
8133 * objc-lang.c (objc_language_data): Delete
8134 la_get_symbol_name_matcher initializer.
8135 * opencl-lang.c (opencl_language_data): Likewise.
8136 * p-lang.c (pascal_language_data): Likewise.
8137 * psymtab.c (psymbol_name_matches): Update call to
8138 get_symbol_name_matcher.
8139 * rust-lang.c (rust_language_data): Delete
8140 la_get_symbol_name_matcher initializer.
8141 * symtab.c (symbol_matches_search_name): Update call to
8142 get_symbol_name_matcher.
8143 (compare_symbol_name): Likewise.
8144
9a49ad8c
AB
81452020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8146
8147 * ada-lang.c (ada_language_data): Delete la_compute_program
8148 initializer.
8149 * c-lang.c (c_language_data): Likewise.
8150 (c_language::compute_program): New member function.
8151 (cplus_language_data): Delete la_compute_program initializer.
8152 (cplus_language::compute_program): New member function.
8153 (asm_language_data): Delete la_compute_program initializer.
8154 (minimal_language_data): Likewise.
8155 * c-lang.h (c_compute_program): Update comment.
8156 (cplus_compute_program): Likewise.
8157 * compile/compile-c-support.c (c_compute_program): Likewise.
8158 (cplus_compute_program): Likewise.
8159 * compile/compile.c (compile_to_object): Update call to
8160 la_compute_program.
8161 * d-lang.c (d_language_data): Delete la_compute_program
8162 initializer.
8163 * f-lang.c (f_language_data): Likewise.
8164 * go-lang.c (go_language_data): Likewise.
8165 * language.c (unknown_language_data): Likewise.
8166 (auto_language_data): Likewise.
8167 * language.h (language_data): Delete la_compute_program field.
8168 (language_defn::compute_program): New member function.
8169 * m2-lang.c (m2_language_data): Delete la_compute_program
8170 initializer.
8171 * objc-lang.c (objc_language_data): Likewise.
8172 * opencl-lang.c (opencl_language_data): Likewise.
8173 * p-lang.c (pascal_language_data): Likewise.
8174 * rust-lang.c (rust_language_data): Likewise.
8175
eff93b4d
AB
81762020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8177
8178 * ada-lang.c (ada_language_data) Delete
8179 la_class_name_from_physname initializer.
8180 * c-lang.c (c_language_data): Likewise.
8181 (cplus_language_data): Likewise.
8182 (cplus_language::class_name_from_physname): New member function.
8183 (asm_language_data): Delete la_class_name_from_physname
8184 initializer.
8185 (minimal_language_data): Likewise.
8186 * d-lang.c (d_language_data): Likewise.
8187 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
8188 method on language_defn class.
8189 (guess_full_die_structure_name): Likewise.
8190 * f-lang.c (f_language_data): Delete la_class_name_from_physname
8191 initializer.
8192 * go-lang.c (go_language_data): Likewise.
8193 * language.c (language_class_name_from_physname): Delete.
8194 (unk_lang_class_name): Delete.
8195 (unknown_language_data): Delete la_class_name_from_physname
8196 initializer.
8197 (auto_language_data): Likewise.
8198 * language.h (language_data): Delete la_class_name_from_physname
8199 field.
8200 (language_defn::class_name_from_physname): New function.
8201 (language_class_name_from_physname): Delete declaration.
8202 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
8203 initializer.
8204 * objc-lang.c (objc_language_data): Likewise.
8205 * opencl-lang.c (opencl_language_data): Likewise.
8206 * p-lang.c (pascal_language_data): Likewise.
8207 * rust-lang.c (rust_language_data): Likewise.
8208
de543742
TT
82092020-06-16 Tom Tromey <tom@tromey.com>
8210
8211 * tui/tui-data.h (STATUS_NAME): New macro.
8212 * tui/tui-layout.c (tui_remove_some_windows)
8213 (initialize_known_windows, tui_register_window)
8214 (tui_layout_split::remove_windows, initialize_layouts)
8215 (tui_new_layout_command): Don't use hard-coded window names.
8216
a350efd4
TT
82172020-06-16 Tom Tromey <tom@tromey.com>
8218
8219 PR tui/25348:
8220 * tui/tui.c (tui_ensure_readline_initialized): Rename from
8221 tui_initialize_readline. Only run once. Call rl_initialize.
8222 * tui/tui.h (tui_ensure_readline_initialized): Rename from
8223 tui_initialize_readline.
8224 * tui/tui-io.c (tui_setup_io): Call
8225 tui_ensure_readline_initialized.
8226 * tui/tui-interp.c (tui_interp::init): Update.
8227
39ec0490
TT
82282020-06-16 Tom Tromey <tom@tromey.com>
8229
8230 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
8231 Also preserve the status window.
8232
d2d1ea20
TT
82332020-06-16 Tom Tromey <tom@tromey.com>
8234
8235 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
8236 where m_window==nullptr.
8237
66920317
TT
82382020-06-15 Tom Tromey <tromey@adacore.com>
8239
8240 * windows-nat.c (windows_nat::handle_output_debug_string):
8241 Update.
8242 (windows_nat::handle_ms_vc_exception): Update.
8243 * target.h (target_read_string): Change API.
8244 * target.c (target_read_string): Change API.
8245 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
8246 Update.
8247 * solib-frv.c (frv_current_sos): Update.
8248 * solib-dsbt.c (dsbt_current_sos): Update.
8249 * solib-darwin.c (darwin_current_sos): Update.
8250 * linux-thread-db.c (inferior_has_bug): Update.
8251 * expprint.c (print_subexp_standard): Update.
8252 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
8253 (ada_exception_message_1): Update.
8254
a5d871dd
TT
82552020-06-15 Tom Tromey <tromey@adacore.com>
8256
8257 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
8258
670e35fa
TT
82592020-06-15 Tom Tromey <tromey@adacore.com>
8260
8261 * valprint.c (read_string): Update comment.
8262 * target.c (MIN): Remove.
8263 (target_read_string): Rewrite.
8264
f5272a3b
TT
82652020-06-15 Tom Tromey <tromey@adacore.com>
8266
8267 * corefile.c (read_memory_string): Remove.
8268 * ada-valprint.c (ada_value_print_ptr): Update.
8269 * ada-lang.h (ada_tag_name): Change return type.
8270 * ada-lang.c (type_from_tag): Update.
8271 (ada_tag_name_from_tsd): Change return type. Use
8272 target_read_string.
8273 (ada_tag_name): Likewise.
8274 * gdbcore.h (read_memory_string): Don't declare.
8275
2c074f49
HD
82762020-06-14 Hannes Domani <ssbssa@yahoo.de>
8277
8278 * symtab.c (rbreak_command): Ignore Windows drive colon.
8279
6a17d503
SM
82802020-06-12 Simon Marchi <simon.marchi@efficios.com>
8281
8282 * NEWS: Mention removed GDBserver host support.
8283
453c733f
NC
82842020-06-12 Nelson Chu <nelson.chu@sifive.com>
8285
8286 * features/riscv/rebuild-csr-xml.sh: Updated.
8287
2b4e6a3f
TT
82882020-06-11 Tom Tromey <tom@tromey.com>
8289
8290 PR gdb/18318:
8291 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
8292
4412332f
JG
82932020-06-09 Jonny Grant <jg@jguk.org>
82942020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
8295
8296 * main.c (captured_main_1): Don't print new line after help.
8297 (print_gdb_help): add mailing list and IRC channel information
8298 to --help. Add new lines between items in the footer. Remove
8299 quotes around bug url.
8300
2f33032a
KS
83012020-06-11 Keith Seitz <keiths@redhat.com>
8302
8303 PR gdb/21356
8304 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
8305 Resolve typedefs for type length calculations.
8306
7ab96794
TV
83072020-06-10 Tom de Vries <tdevries@suse.de>
8308
8309 PR ada/24713
8310 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
8311 (write_psymbols): Enable .gdb_index for ada.
8312 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
8313 ada.
8314
e5f3ece2
TV
83152020-06-10 Tom de Vries <tdevries@suse.de>
8316
8317 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
8318 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
8319 namei" instead of "const char *name" argument.
8320 (dw2_map_matching_symbols): Use "offset_type namei" variant of
8321 dw2_symtab_iter_init.
8322
940da03e
SM
83232020-06-08 Simon Marchi <simon.marchi@efficios.com>
8324
8325 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
8326 to use type::field and field::type instead.
8327
b6cdac4b
SM
83282020-06-08 Simon Marchi <simon.marchi@efficios.com>
8329
8330 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
8331 to use field::type instead.
8332
5d14b6e5
SM
83332020-06-08 Simon Marchi <simon.marchi@efficios.com>
8334
8335 * gdbtypes.h (struct field) <type, set_type>: New methods.
8336 Rename `type` field to...
8337 <m_type>: ... this. Change references throughout to use type or
8338 set_type methods.
8339 (FIELD_TYPE): Use field::type. Change call sites that modify
8340 the field's type to use field::set_type instead.
8341
3d967001
SM
83422020-06-08 Simon Marchi <simon.marchi@efficios.com>
8343
8344 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
8345 to use type::index_type instead.
8346
262abc0d
SM
83472020-06-08 Simon Marchi <simon.marchi@efficios.com>
8348
8349 * gdbtypes.h (struct type) <index_type, set_index_type>: New
8350 methods.
8351 (TYPE_INDEX_TYPE): Use type::index_type.
8352 * gdbtypes.c (create_array_type_with_stride): Likewise.
8353
82836c92
TT
83542020-06-07 Tom Tromey <tom@tromey.com>
8355
8356 * valprint.c (generic_val_print_float): Remove "embedded_offset"
8357 parameter.
8358 (generic_value_print): Update.
8359
940dace9
AB
83602020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8361
8362 Revert commit 982a38f60b0.
8363 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
8364
982a38f6
AB
83652020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8366
8367 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
8368 avoid use after free.
8369
82f06518
TV
83702020-06-05 Tom de Vries <tdevries@suse.de>
8371
8372 * NEWS: Fix typos.
8373
f8c41851
SM
83742020-06-04 Simon Marchi <simon.marchi@efficios.com>
8375
8376 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
8377 the per_bfd object.
8378 (dwarf2_read_debug_names): Likewise.
8379 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
8380 object when re-using a per_bfd object with an index.
8381
f9b5d5ea
TV
83822020-06-03 Tom de Vries <tdevries@suse.de>
8383
8384 PR symtab/26046
8385 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
8386 children for C++.
8387 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
8388 DW_TAG_subprogram.
8389
f6eee2d0
AB
83902020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8391
8392 * ada-lang.c (ada_language_data): Delete skip_trampoline
8393 initializer.
8394 * c-lang.c (c_language_data): Likewise.
8395 (cplus_language_data): Likewise.
8396 (cplus_language::skip_trampoline): New member function.
8397 (asm_language_data): Delete skip_trampoline initializer.
8398 (minimal_language_data): Likewise.
8399 * d-lang.c (d_language_data): Likewise.
8400 * f-lang.c (f_language_data): Likewise.
8401 * go-lang.c (go_language_data): Likewise.
8402 * language.c (unk_lang_trampoline): Delete function.
8403 (skip_language_trampoline): Update.
8404 (unknown_language_data): Delete skip_trampoline initializer.
8405 (auto_language_data): Likewise.
8406 * language.h (language_data): Delete skip_trampoline field.
8407 (language_defn::skip_trampoline): New function.
8408 * m2-lang.c (m2_language_data): Delete skip_trampoline
8409 initializer.
8410 * objc-lang.c (objc_skip_trampoline): Delete function, move
8411 implementation to objc_language::skip_trampoline.
8412 (objc_language_data): Delete skip_trampoline initializer.
8413 (objc_language::skip_trampoline): New member function with
8414 implementation from objc_skip_trampoline.
8415 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
8416 initializer.
8417 * p-lang.c (pascal_language_data): Likewise.
8418 * rust-lang.c (rust_language_data): Likewise.
8419
0a50df5d
AB
84202020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8421
8422 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
8423 (ada_language::demangle): New member function.
8424 * c-lang.c (c_language_data): Delete la_demangle initializer.
8425 (cplus_language_data): Delete la_demangle initializer.
8426 (cplus_language::demangle): New member function.
8427 (asm_language_data): Delete la_demangle initializer.
8428 (minimal_language_data): Delete la_demangle initializer.
8429 * d-lang.c (d_language_data): Delete la_demangle initializer.
8430 (d_language::demangle): New member function.
8431 * f-lang.c (f_language_data): Delete la_demangle initializer.
8432 (f_language::demangle): New member function.
8433 * go-lang.c (go_language_data): Delete la_demangle initializer.
8434 (go_language::demangle): New member function.
8435 * language.c (language_demangle): Update.
8436 (unk_lang_demangle): Delete.
8437 (unknown_language_data): Delete la_demangle initializer.
8438 (unknown_language::demangle): New member function.
8439 (auto_language_data): Delete la_demangle initializer.
8440 (auto_language::demangle): New member function.
8441 * language.h (language_data): Delete la_demangle field.
8442 (language_defn::demangle): New function.
8443 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
8444 * objc-lang.c (objc_language_data): Delete la_demangle
8445 initializer.
8446 (objc_language::demangle): New member function.
8447 * opencl-lang.c (opencl_language_data): Delete la_demangle
8448 initializer.
8449 * p-lang.c (pascal_language_data): Likewise.
8450 * rust-lang.c (rust_language_data): Likewise.
8451 (rust_language::demangle): New member function.
8452
fbfb0a46
AB
84532020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8454
8455 * ada-lang.c (ada_language_data): Delete la_print_type
8456 initializer.
8457 (ada_language::print_type): New member function.
8458 * c-lang.c (c_language_data): Delete la_print_type initializer.
8459 (c_language::print_type): New member function.
8460 (cplus_language_data): Delete la_print_type initializer.
8461 (cplus_language::print_type): New member function.
8462 (asm_language_data): Delete la_print_type initializer.
8463 (asm_language::print_type): New member function.
8464 (minimal_language_data): Delete la_print_type initializer.
8465 (minimal_language::print_type): New member function.
8466 * d-lang.c (d_language_data): Delete la_print_type initializer.
8467 (d_language::print_type): New member function.
8468 * f-lang.c (f_language_data): Delete la_print_type initializer.
8469 (f_language::print_type): New member function.
8470 * go-lang.c (go_language_data): Delete la_print_type initializer.
8471 (go_language::print_type): New member function.
8472 * language.c (unk_lang_print_type): Delete.
8473 (unknown_language_data): Delete la_print_type initializer.
8474 (unknown_language::print_type): New member function.
8475 (auto_language_data): Delete la_print_type initializer.
8476 (auto_language::print_type): New member function.
8477 * language.h (language_data): Delete la_print_type field.
8478 (language_defn::print_type): New function.
8479 (LA_PRINT_TYPE): Update.
8480 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
8481 (m2_language::print_type): New member function.
8482 * objc-lang.c (objc_language_data): Delete la_print_type
8483 initializer.
8484 (objc_language::print_type): New member function.
8485 * opencl-lang.c (opencl_print_type): Delete, implementation moved
8486 to opencl_language::print_type.
8487 (opencl_language_data): Delete la_print_type initializer.
8488 (opencl_language::print_type): New member function, implementation
8489 from opencl_print_type.
8490 * p-lang.c (pascal_language_data): Delete la_print_type
8491 initializer.
8492 (pascal_language::print_type): New member function.
8493 * rust-lang.c (rust_print_type): Delete, implementation moved to
8494 rust_language::print_type.
8495 (rust_language_data): Delete la_print_type initializer.
8496 (rust_language::print_type): New member function, implementation
8497 from rust_print_type.
8498
6f827019
AB
84992020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8500
8501 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
8502 implementation moves to...
8503 (ada_language::sniff_from_mangled_name): ...here. Update return
8504 type.
8505 (ada_language_data): Delete la_sniff_from_mangled_name
8506 initializer.
8507 * c-lang.c (c_language_data): Likewise.
8508 (cplus_language_data): Likewise.
8509 (cplus_language::sniff_from_mangled_name): New member function,
8510 implementation taken from gdb_sniff_from_mangled_name.
8511 (asm_language_data): Delete la_sniff_from_mangled_name
8512 initializer.
8513 (minimal_language_data): Likewise.
8514 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
8515 implementation moves to cplus_language::sniff_from_mangled_name.
8516 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
8517 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
8518 moves to...
8519 (d_language::sniff_from_mangled_name): ...here.
8520 (d_language_data): Delete la_sniff_from_mangled_name initializer.
8521 * f-lang.c (f_language_data): Likewise.
8522 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
8523 moves to...
8524 (go_language::sniff_from_mangled_name): ...here.
8525 (go_language_data): Delete la_sniff_from_mangled_name initializer.
8526 * language.c (language_sniff_from_mangled_name): Delete.
8527 (unknown_language_data): Delete la_sniff_from_mangled_name
8528 initializer.
8529 (auto_language_data): Likewise.
8530 * language.h (language_data): Delete la_sniff_from_mangled_name
8531 field.
8532 (language_defn::sniff_from_mangled_name): New function.
8533 (language_sniff_from_mangled_name): Delete declaration.
8534 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
8535 field.
8536 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
8537 implementation moves to...
8538 (objc_language::sniff_from_mangled_name): ...here.
8539 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
8540 * opencl-lang.c (opencl_language_data): Likewise.
8541 * p-lang.c (pascal_language_data): Likewise.
8542 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
8543 implementation moves to...
8544 (rust_language::sniff_from_mangled_name): ...here.
8545 (rust_language_data): Delete la_sniff_from_mangled_name
8546 initializer.
8547 * symtab.c (symbol_find_demangled_name): Call
8548 sniff_from_mangled_name member function.
8549
fb8006fd
AB
85502020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8551
8552 * ada-lang.c (ada_language_data): Delete la_search_name_hash
8553 initializer.
8554 * c-lang.c (c_language_data): Likewise.
8555 (cplus_language_data): Likewise.
8556 (cplus_language::search_name_hash): New member function.
8557 (asm_language_data): Delete la_search_name_hash initializer.
8558 (minimal_language_data): Likewise.
8559 * d-lang.c (d_language_data): Likewise.
8560 * dictionary.c (default_search_name_hash): Rename to...
8561 (language_defn::search_name_hash): ...this.
8562 * f-lang.c (f_language_data): Likewise.
8563 (f_language::search_name_hash): New member function.
8564 * go-lang.c (go_language_data): Delete la_search_name_hash
8565 initializer.
8566 * language.c (unknown_language_data): Likewise.
8567 (auto_language_data): Likewise.
8568 * language.h (struct language_data): Delete la_search_name_hash
8569 field.
8570 (language_defn::search_name_hash): Declare new member function.
8571 (default_search_name_hash): Delete declaration.
8572 * m2-lang.c (m2_language_data): Delete la_search_name_hash
8573 initializer.
8574 * objc-lang.c (objc_language_data): Likewise.
8575 * opencl-lang.c (opencl_language_data): Likewise.
8576 * p-lang.c (pascal_language_data): Likewise.
8577 * rust-lang.c (rust_language_data): Likewise.
8578 * symtab.c (search_name_hash): Update call.
8579
8e25bafe
AB
85802020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8581
8582 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
8583 initializer.
8584 * c-lang.c (class compile_instance): Declare.
8585 (c_language_data): Delete la_get_compile_instance initializer.
8586 (c_language::get_compile_instance): New member function.
8587 (cplus_language_data): Delete la_get_compile_instance initializer.
8588 (cplus_language::get_compile_instance): New member function.
8589 (asm_language_data): Delete la_get_compile_instance initializer.
8590 (minimal_language_data): Likewise.
8591 * c-lang.h (c_get_compile_context): Update comment.
8592 (cplus_get_compile_context): Update comment.
8593 * compile/compile.c (compile_to_object): Update calls, don't rely
8594 on function pointer being NULL.
8595 * d-lang.c (d_language_data): Delete la_get_compile_instance
8596 initializer.
8597 * f-lang.c (f_language_data): Likewise.
8598 * go-lang.c (go_language_data): Likewise.
8599 * language.c (unknown_language_data): Likewise.
8600 (auto_language_data): Likewise.
8601 * language.h (language_data): Delete la_get_compile_instance field.
8602 (language_defn::get_compile_instance): New member function.
8603 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
8604 initializer.
8605 * objc-lang.c (objc_language_data): Likewise.
8606 * opencl-lang.c (opencl_language_data): Likewise.
8607 * p-lang.c (pascal_language_data): Likewise.
8608 * rust-lang.c (rust_language_data): Likewise.
8609
4009ee92
AB
86102020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8611
8612 * ada-lang.c (ada_add_all_symbols): Update comment.
8613 (ada_iterate_over_symbols): Delete, move implementation to...
8614 (ada_language::iterate_over_symbols): ...here, a new member
8615 function, rewrite to use range based for loop.
8616 (ada_language_data): Delete la_iterate_over_symbols initializer.
8617 * c-lang.c (c_language_data): Likewise.
8618 (cplus_language_data): Likewise.
8619 (asm_language_data): Likewise.
8620 (minimal_language_data): Likewise.
8621 * d-lang.c (d_language_data): Likewise.
8622 * f-lang.c (f_language_data): Likewise.
8623 * go-lang.c (go_language_data): Likewise.
8624 * language.c (unknown_language_data): Likewise.
8625 (auto_language_data): Likewise.
8626 * language.h (language_data): Delete la_iterate_over_symbols field.
8627 (language_defn::iterate_over_symbols): New member function.
8628 (LA_ITERATE_OVER_SYMBOLS): Update.
8629 * linespec.c (iterate_over_all_matching_symtabs): Update.
8630 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
8631 initializer.
8632 * objc-lang.c (objc_language_data): Likewise.
8633 * opencl-lang.c (opencl_language_data): Likewise.
8634 * p-lang.c (pascal_language_data): Likewise.
8635 * rust-lang.c (rust_language_data): Likewise.
8636
54f4ca46
AB
86372020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8638
8639 * ada-lang.c (ada_language_data): Delete
8640 la_lookup_transparent_type initializer.
8641 * c-lang.c (c_language_data): Likewise.
8642 (cplus_language_data): Likewise.
8643 (cplus_language::lookup_transparent_type): New member function.
8644 (asm_language_data): Delete la_lookup_transparent_type
8645 initializer.
8646 (minimal_language_data): Likewise.
8647 * d-lang.c (d_language_data): Likewise.
8648 * f-lang.c (f_language_data): Likewise.
8649 * go-lang.c (go_language_data): Likewise.
8650 * language.c (unknown_language_data): Likewise.
8651 (auto_language_data): Likewise.
8652 * language.h (struct language_data): Delete
8653 la_lookup_transparent_type field.
8654 (language_defn::lookup_transparent_type): New member function.
8655 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
8656 initializer.
8657 * objc-lang.c (objc_language_data): Likewise.
8658 * opencl-lang.c (opencl_language_data): Likewise.
8659 * p-lang.c (pascal_language_data): Likewise.
8660 * rust-lang.c (rust_language_data): Likewise.
8661 * symtab.c (symbol_matches_domain): Update call.
8662
1fb314aa
AB
86632020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8664
8665 * ada-lang.c (ada_language_arch_info): Delete function, move
8666 implementation to...
8667 (ada_language::language_arch_info): ...here, a new member
8668 function.
8669 (ada_language_data): Delete la_language_arch_info.
8670 * c-lang.c (c_language_data): Likewise.
8671 (c_language::language_arch_info): New member function.
8672 (cplus_language_arch_info): Delete function, move
8673 implementation to...
8674 (cplus_language::language_arch_info): ...here, a new member
8675 function.
8676 (cplus_language_data): Delete la_language_arch_info.
8677 (asm_language_data): Likewise.
8678 (asm_language::language_arch_info): New member function.
8679 (minimal_language_data): Delete la_language_arch_info.
8680 (minimal_language::language_arch_info): New member function.
8681 * d-lang.c (d_language_arch_info): Delete function, move
8682 implementation to...
8683 (d_language::language_arch_info): ...here, a new member
8684 function.
8685 (d_language_data): Delete la_language_arch_info.
8686 * f-lang.c (f_language_arch_info): Delete function, move
8687 implementation to...
8688 (f_language::language_arch_info): ...here, a new member
8689 function.
8690 (f_language_data): Delete la_language_arch_info.
8691 * go-lang.c (go_language_arch_info): Delete function, move
8692 implementation to...
8693 (go_language::language_arch_info): ...here, a new member
8694 function.
8695 (go_language_data): Delete la_language_arch_info.
8696 * language.c (unknown_language_data): Likewise.
8697 (unknown_language::language_arch_info): New member function.
8698 (auto_language_data): Delete la_language_arch_info.
8699 (auto_language::language_arch_info): New member function.
8700 (language_gdbarch_post_init): Update call to
8701 la_language_arch_info.
8702 * language.h (language_data): Delete la_language_arch_info
8703 function pointer.
8704 (language_defn::language_arch_info): New function.
8705 * m2-lang.c (m2_language_arch_info): Delete function, move
8706 implementation to...
8707 (m2_language::language_arch_info): ...here, a new member
8708 function.
8709 (m2_language_data): Delete la_language_arch_info.
8710 * objc-lang.c (objc_language_arch_info): Delete function, move
8711 implementation to...
8712 (objc_language::language_arch_info): ...here, a new member
8713 function.
8714 (objc_language_data): Delete la_language_arch_info.
8715 * opencl-lang.c (opencl_language_arch_info): Delete function, move
8716 implementation to...
8717 (opencl_language::language_arch_info): ...here, a new member
8718 function.
8719 (opencl_language_data): Delete la_language_arch_info.
8720 * p-lang.c (pascal_language_arch_info): Delete function, move
8721 implementation to...
8722 (pascal_language::language_arch_info): ...here, a new member
8723 function.
8724 (pascal_language_data): Delete la_language_arch_info.
8725 * rust-lang.c (rust_language_arch_info): Delete function, move
8726 implementation to...
8727 (rust_language::language_arch_info): ...here, a new member
8728 function.
8729 (rust_language_data): Delete la_language_arch_info.
8730
48448202
AB
87312020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8732
8733 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
8734 initializer.
8735 * c-lang.c (c_language_data): Likewise.
8736 (cplus_language_data): Likewise.
8737 (cplus_language::pass_by_reference_info): New method.
8738 (asm_language_data): Delete la_pass_by_reference initializer.
8739 (minimal_language_data): Likewise.
8740 * cp-abi.c (cp_pass_by_reference): Remove use of
8741 default_pass_by_reference.
8742 * d-lang.c (d_language_data): Likewise.
8743 * f-lang.c (f_language_data): Likewise.
8744 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
8745 default_pass_by_reference.
8746 * go-lang.c (go_language_data): Likewise.
8747 * language.c (language_pass_by_reference): Update.
8748 (default_pass_by_reference): Delete.
8749 (unknown_language_data): Delete la_pass_by_reference
8750 initializer.
8751 (auto_language_data): Likewise.
8752 * language.h (struct language_data): Delete la_pass_by_reference
8753 field.
8754 (language_defn::pass_by_reference_info): New member function.
8755 (default_pass_by_reference): Delete declaration.
8756 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
8757 initializer.
8758 * objc-lang.c (objc_language_data): Likewise.
8759 * opencl-lang.c (opencl_language_data): Likewise.
8760 * p-lang.c (pascal_language_data): Likewise.
8761 * rust-lang.c (rust_language_data): Likewise.
8762
15e5fd35
AB
87632020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8764
8765 * ada-lang.c (ada_read_var_value): Delete function, move
8766 implementation to...
8767 (ada_language::read_var_value): ...here.
8768 (ada_language_data): Delete la_read_var_value initializer.
8769 * c-lang.c (c_language_data): Likewise.
8770 (cplus_language_data): Likewise.
8771 (minimal_language_data): Likewise.
8772 * d-lang.c (d_language_data): Likewise.
8773 * f-lang.c (f_language_data): Likewise.
8774 * findvar.c (default_read_var_value): Rename to...
8775 (language_defn::read_var_value): ...this.
8776 * findvar.c (read_var_value): Update header comment, and change to
8777 call member function instead of function pointer.
8778 * go-lang.c (go_language_data): Likewise.
8779 * language.c (unknown_language_data): Delete la_read_var_value
8780 initializer.
8781 (auto_language_data): Likewise.
8782 * language.h (struct language_data): Delete la_read_var_value
8783 field.
8784 (language_defn::read_var_value): New member function.
8785 (default_read_var_value): Delete declaration.
8786 * m2-lang.c (m2_language_data): Delete la_read_var_value
8787 initializer.
8788 * objc-lang.c (objc_language_data): Likewise.
8789 * opencl-lang.c (opencl_language_data): Likewise.
8790 * p-lang.c (pascal_language_data): Likewise.
8791 * rust-lang.c (rust_language_data): Likewise.
8792 * value.h (default_read_var_value): Delete declaration.
8793
5bd40f2a
AB
87942020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8795
8796 * ada-lang.c (ada_print_array_index): Delete function, move
8797 implementation to...
8798 (ada_language::print_array_index): ...here.
8799 (ada_language_data): Delete la_print_array_index initializer.
8800 * c-lang.c (c_language_data): Likewise.
8801 (cplus_language_data): Likewise.
8802 (minimal_language_data): Likewise.
8803 * d-lang.c (d_language_data): Likewise.
8804 * f-lang.c (f_language_data): Likewise.
8805 * go-lang.c (go_language_data): Likewise.
8806 * language.c (default_print_array_index): Delete function, move
8807 implementation to...
8808 (language_defn::print_array_index): ...here.
8809 (unknown_language_data): Delete la_print_array_index initializer.
8810 (auto_language_data): Likewise.
8811 * language.h (struct language_data): Delete la_print_array_index
8812 field.
8813 (language_defn::print_array_index): New member function.
8814 (LA_PRINT_ARRAY_INDEX): Update.
8815 (default_print_array_index): Delete declaration.
8816 * m2-lang.c (m2_language_data): Delete la_print_array_index
8817 initializer.
8818 * objc-lang.c (objc_language_data): Likewise.
8819 * opencl-lang.c (opencl_language_data): Likewise.
8820 * p-lang.c (pascal_language_data): Likewise.
8821 * rust-lang.c (rust_language_data): Likewise.
8822
0874fd07
AB
88232020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8824
8825 * gdb/ada-lang.c (ada_language_defn): Convert to...
8826 (ada_language_data): ...this.
8827 (class ada_language): New class.
8828 (ada_language_defn): New static global.
8829 * gdb/c-lang.c (c_language_defn): Convert to...
8830 (c_language_data): ...this.
8831 (class c_language): New class.
8832 (c_language_defn): New static global.
8833 (cplus_language_defn): Convert to...
8834 (cplus_language_data): ...this.
8835 (class cplus_language): New class.
8836 (cplus_language_defn): New static global.
8837 (asm_language_defn): Convert to...
8838 (asm_language_data): ...this.
8839 (class asm_language): New class.
8840 (asm_language_defn): New static global.
8841 (minimal_language_defn): Convert to...
8842 (minimal_language_data): ...this.
8843 (class minimal_language): New class.
8844 (minimal_language_defn): New static global.
8845 * gdb/d-lang.c (d_language_defn): Convert to...
8846 (d_language_data): ...this.
8847 (class d_language): New class.
8848 (d_language_defn): New static global.
8849 * gdb/f-lang.c (f_language_defn): Convert to...
8850 (f_language_data): ...this.
8851 (class f_language): New class.
8852 (f_language_defn): New static global.
8853 * gdb/go-lang.c (go_language_defn): Convert to...
8854 (go_language_data): ...this.
8855 (class go_language): New class.
8856 (go_language_defn): New static global.
8857 * gdb/language.c (unknown_language_defn): Remove declaration.
8858 (current_language): Initialize to nullptr, real initialization is
8859 moved to _initialize_language.
8860 (languages): Delete global.
8861 (language_defn::languages): Define.
8862 (set_language_command): Use language_defn::languages.
8863 (set_language): Likewise.
8864 (range_error): Likewise.
8865 (language_enum): Likewise.
8866 (language_def): Likewise.
8867 (add_set_language_command): Use language_def::languages for the
8868 language list, and language_def to lookup language pointers.
8869 (skip_language_trampoline): Use language_defn::languages.
8870 (unknown_language_defn): Convert to...
8871 (unknown_language_data): ...this.
8872 (class unknown_language): New class.
8873 (unknown_language_defn): New static global.
8874 (auto_language_defn): Convert to...
8875 (auto_language_data): ...this.
8876 (class auto_language): New class.
8877 (auto_language_defn): New static global.
8878 (language_gdbarch_post_init): Use language_defn::languages.
8879 (_initialize_language): Initialize current_language.
8880 * gdb/language.h (struct language_defn): Rename to...
8881 (struct language_data): ...this.
8882 (struct language_defn): New.
8883 (auto_language_defn): Delete.
8884 (unknown_language_defn): Delete.
8885 (minimal_language_defn): Delete.
8886 (ada_language_defn): Delete.
8887 (asm_language_defn): Delete.
8888 (c_language_defn): Delete.
8889 (cplus_language_defn): Delete.
8890 (d_language_defn): Delete.
8891 (f_language_defn): Delete.
8892 (go_language_defn): Delete.
8893 (m2_language_defn): Delete.
8894 (objc_language_defn): Delete.
8895 (opencl_language_defn): Delete.
8896 (pascal_language_defn): Delete.
8897 (rust_language_defn): Delete.
8898 * gdb/m2-lang.c (m2_language_defn): Convert to...
8899 (m2_language_data): ...this.
8900 (class m2_language): New class.
8901 (m2_language_defn): New static global.
8902 * gdb/objc-lang.c (objc_language_defn): Convert to...
8903 (objc_language_data): ...this.
8904 (class objc_language): New class.
8905 (objc_language_defn): New static global.
8906 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
8907 (opencl_language_data): ...this.
8908 (class opencl_language): New class.
8909 (opencl_language_defn): New static global.
8910 * gdb/p-lang.c (pascal_language_defn): Convert to...
8911 (pascal_language_data): ...this.
8912 (class pascal_language): New class.
8913 (pascal_language_defn): New static global.
8914 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
8915 language pointer, update comment format.
8916 * gdb/rust-lang.c (rust_language_defn): Convert to...
8917 (rust_language_data): ...this.
8918 (class rust_language): New class.
8919 (rust_language_defn): New static global.
8920
1313c56e
AB
89212020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
8922
8923 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
8924 member variable.
8925 <m_stmt_at_address>: New member variable.
8926 (lnp_state_machine::record_line): Don't record some lines, update
8927 tracking of is_stmt at the same address.
8928 (lnp_state_machine::lnp_state_machine): Initialise new member
8929 variables.
8930
b7ed9f3d
ST
89312020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
8932
8933 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
8934 "-include gnu-nat-mig.h".
8935 * gnu-nat-mig.h: New file.
8936 * gnu-nat.c: Include "gnu-nat-mig.h".
8937 (exc_server, msg_reply_server, notify_server,
8938 process_reply_server): Remove declarations.
8939
14a8ad62
ST
89402020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8941
8942 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
8943 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
8944 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
8945 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
8946 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
8947 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
8948 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
8949 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
8950 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
8951 to gnu_nat_target class.
8952 * gnu-nat.c: Likewise.
8953 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
8954 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
8955 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
8956 object.
8957 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
8958 instead of `gnu_target'.
8959
0af5e106
ST
89602020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8961
8962 * i386-gnu-tdep.c: Include "gdbcore.h"
8963 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
8964 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
8965 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
8966 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
8967 i386_gnu_sigcontext_addr): New functions
8968 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
8969 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
8970 tdep.
8971
078f2fc9
ST
89722020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8973
8974 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
8975 before fork_inferior call. Avoid calling it if target_is_pushed returns
8976 true.
8977
53dff92c
ST
89782020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8979
8980 * gnu-nat.h (gnu_target): New variable declaration.
8981 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
8982 gnu_target.
8983 * gnu-nat.c (gnu_target): New variable.
8984 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
8985 add_thread_silent, and add_thread calls.
8986 (gnu_nat_target::create_inferior): Pass gnu_target to
8987 add_thread_silent, thread_change_ptid call.
8988 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
8989 call.
8990
5a8b8627
ST
89912020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8992
8993 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
8994 (gnu_nat_target::find_memory_regions): Remove unused
8995 `old_address' variable.
8996
366f550a
ST
89972020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8998
8999 * gnu-nat.c: Include "gdbarch.h".
9000
f14871bf
ST
90012020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9002
9003 * reply_mig_hack.awk (Error return): Cast function through
9004 void *, to bypass compiler function call check.
9005
c6887cfb
ST
90062020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9007
9008 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
9009 $(srcdir)/reply_mig_hack.awk.
9010
6930bffe
ST
90112020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9012
9013 * gnu-nat.h (gnu_debug_flag): Set type to bool.
9014
112c22ed
JG
90152020-05-30 Jonny Grant <jg@jguk.org>
9016
9017 * configure.ac (ACX_BUGURL): change bug URL to https.
9018
f68f85b5
PA
90192020-05-30 Pedro Alves <palves@redhat.com>
9020
9021 * cp-support.c (replace_typedefs_template): New.
9022 (replace_typedefs_qualified_name): Handle
9023 DEMANGLE_COMPONENT_TEMPLATE.
9024
976ca316
SM
90252020-05-29 Simon Marchi <simon.marchi@efficios.com>
9026
9027 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
9028 dwarf2/index-cache.h, dwarf2/index-write.c,
9029 dwarf2/index-write.h, dwarf2/line-header.c,
9030 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
9031 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
9032 variables and fields from `dwarf2_per_objfile` to just
9033 `per_objfile` throughout.
9034
989ade05
SM
90352020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
9036
9037 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9038 <push_dwarf_reg_entry_value>: Add comment.
9039
c47bae85
KB
90402020-05-28 Kevin Buettner <kevinb@redhat.com>
9041 Keith Seitz <keiths@redhat.com>
9042
9043 * python/python.c (do_start_initialization): Call PyEval_SaveThread
9044 instead of PyEval_ReleaseLock.
9045 (class gdbpy_gil): Move to earlier in file.
9046 (finalize_python): Set gdb_python_initialized.
9047 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
9048 when not initialized.
9049
44486dcf
SM
90502020-05-28 Simon Marchi <simon.marchi@efficios.com>
9051
9052 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9053 <push_dwarf_reg_entry_value>: Remove assert. Override
9054 per_objfile with caller_per_objfile.
9055
f030440d
TV
90562020-05-28 Tom de Vries <tdevries@suse.de>
9057
9058 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
9059 PR gold/15646 workaround to symbol kind "type".
9060
f0fbb768
TT
90612020-05-27 Tom Tromey <tromey@adacore.com>
9062
9063 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
9064
af0b2a3e
TT
90652020-05-27 Tom Tromey <tromey@adacore.com>
9066
9067 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
9068 Use htab_find_with_hash.
9069 <add_abbrev>: Remove "abbrev_number" parameter.
9070 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
9071 "abbrev_number" parameter. Use htab_find_slot_with_hash.
9072 (hash_abbrev): Add comment.
9073 (abbrev_table::lookup_abbrev): Move to header file.
9074 (abbrev_table::read): Update.
9075
7d00ffec
TT
90762020-05-27 Tom Tromey <tromey@adacore.com>
9077
9078 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
9079 method.
9080 <canonical_name>: New member.
9081 <raw_name>: Rename from "name".
9082 (partial_die_info): Initialize canonical_name.
9083 (scan_partial_symbols): Check raw_name.
9084 (partial_die_parent_scope, partial_die_full_name)
9085 (add_partial_symbol, add_partial_subprogram)
9086 (add_partial_enumeration, load_partial_dies): Use "name" method.
9087 (partial_die_info::name): New method.
9088 (partial_die_info::read, guess_partial_die_structure_name)
9089 (partial_die_info::fixup): Update.
9090
697bba18
TT
90912020-05-27 Tom Tromey <tromey@adacore.com>
9092
9093 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
9094 <get_ref_die_offset>: Inline.
9095 <get_ref_die_offset_complaint>: New method.
9096 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
9097 (attribute::get_ref_die_offset_complaint): Rename from
9098 get_ref_die_offset. Just issue complaint.
9099
c17ace43
HD
91002020-05-27 Hannes Domani <ssbssa@yahoo.de>
9101
9102 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
9103
96445f0b
HD
91042020-05-27 Hannes Domani <ssbssa@yahoo.de>
9105
9106 * exec.c (exec_file_attach): Use errno value of first openp failure.
9107
ac637ec3
HD
91082020-05-27 Hannes Domani <ssbssa@yahoo.de>
9109
9110 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
9111 Don't close thread handle.
9112
17ee85fc
TT
91132020-05-27 Tom Tromey <tom@tromey.com>
9114 Simon Marchi <simon.marchi@efficios.com>
9115
9116 * objfiles.h (struct objfile) <partial_symtabs>: Now a
9117 shared_ptr.
9118 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
9119 member.
9120 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
9121 dwarf2_per_bfd_objfile_data_key>: New globals.
9122 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
9123 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
9124 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
9125 shared.
9126 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
9127 short-circuit when sharing.
9128 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
9129 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
9130
39b16f87
SM
91312020-05-27 Simon Marchi <simon.marchi@efficios.com>
9132
9133 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
9134 to...
9135 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
9136 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
9137
fcf23d5b
SM
91382020-05-27 Simon Marchi <simon.marchi@efficios.com>
9139
9140 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
9141 build_name_components, find_name_components_bounds>:
9142 Add per_objfile parameter.
9143 (struct mapped_index) <symbol_name_at>: Likewise.
9144 (struct mapped_debug_names): Remove constructor.
9145 <dwarf2_per_objfile>: Remove field.
9146 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
9147 (mapped_index_base::find_name_components_bounds,
9148 mapped_index_base::build_name_components,
9149 dw2_expand_symtabs_matching_symbol): Likewise.
9150 (class mock_mapped_index) <symbol_name_at>: Likewise.
9151 (check_match): Likewise.
9152 (check_find_bounds_finds): Likewise.
9153 (test_mapped_index_find_name_component_bounds): Update.
9154 (CHECK_MATCH): Update.
9155 (dw2_expand_symtabs_matching): Update.
9156 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
9157 per_objfile parameter.
9158 <find_vec_in_debug_names>: Likewise.
9159 <m_per_objfile>: New field.
9160 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
9161 parameter.
9162 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
9163 (dw2_debug_names_iterator::next): Update.
9164 (dw2_debug_names_lookup_symbol): Update.
9165 (dw2_debug_names_expand_symtabs_for_function): Update.
9166 (dw2_debug_names_map_matching_symbols): Update.
9167 (dw2_debug_names_expand_symtabs_matching): Update.
9168 (dwarf2_read_debug_names): Update.
9169
7188ed02
SM
91702020-05-27 Simon Marchi <simon.marchi@efficios.com>
9171
9172 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
9173 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
9174 move to dwarf2_per_objfile.
9175 <read_in_chain>: Remove.
9176 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
9177 remove_all_cus, age_comp_units>: New methods.
9178 <m_dwarf2_cus>: New member.
9179 (struct dwarf2_per_cu_data) <cu>: Remove.
9180 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
9181 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
9182 moved to methods of dwarf2_per_objfile.
9183 (dwarf2_clear_marks): Remove.
9184 (dwarf2_queue_item::~dwarf2_queue_item): Update.
9185 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
9186 (dwarf2_per_bfd::free_cached_comp_units): Remove.
9187 (dwarf2_per_objfile::remove_all_cus): New.
9188 (class free_cached_comp_units) <~free_cached_comp_units>:
9189 Update.
9190 (load_cu): Update.
9191 (dw2_do_instantiate_symtab): Adjust.
9192 (fill_in_sig_entry_from_dwo_entry): Adjust.
9193 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9194 (cutu_reader::cutu_reader): Likewise.
9195 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
9196 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
9197 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
9198 and dwarf2_per_objfile::age_comp_units.
9199 (load_partial_comp_unit): Update.
9200 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
9201 (process_queue): Likewise.
9202 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
9203 backlink.
9204 (dwarf2_read_addr_index): Likewise.
9205 (follow_die_offset): Likewise.
9206 (dwarf2_fetch_die_loc_sect_off): Likewise.
9207 (dwarf2_fetch_constant_bytes): Likewise.
9208 (dwarf2_fetch_die_type_sect_off): Likewise.
9209 (follow_die_sig_1): Likewise.
9210 (load_full_type_unit): Likewise.
9211 (read_signatured_type): Likewise.
9212 (dwarf2_cu::dwarf2_cu): Don't set cu field.
9213 (dwarf2_cu::~dwarf2_cu): Remove.
9214 (dwarf2_per_objfile::get_cu): New.
9215 (dwarf2_per_objfile::set_cu): New.
9216 (age_cached_comp_units): Rename to...
9217 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
9218 to std::unordered_map.
9219 (free_one_cached_comp_unit): Rename to...
9220 (dwarf2_per_objfile::remove_cu): ... this. Adjust
9221 to std::unordered_map.
9222 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
9223 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
9224 a dwarf2_per_objfile in data.
9225 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
9226 (dwarf2_clear_marks): Remove.
9227
2e671100
SM
92282020-05-27 Simon Marchi <simon.marchi@efficios.com>
9229
9230 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
9231 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
9232 (init_tu_and_read_dwo_dies): Likewise.
9233 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
9234 (cutu_reader::cutu_reader): Likewise.
9235 (load_partial_comp_unit): Likewise.
9236 (process_psymtab_comp_unit): Update.
9237 (build_type_psymtabs_1): Update.
9238 (process_skeletonless_type_unit): Update.
9239 (load_full_comp_unit): Update.
9240 (find_partial_die): Update.
9241 (dwarf2_read_addr_index): Update.
9242 (read_signatured_type): Update.
9243
2e6a9f79
SM
92442020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9245
9246 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
9247 m_header_read_in>: New fields.
9248 <get_header>: New method.
9249 * dwarf2/read.c (per_cu_header_read_in): Remove.
9250 (dwarf2_per_cu_data::get_header): New.
9251 (dwarf2_per_cu_data::addr_size): Update.
9252 (dwarf2_per_cu_data::offset_size): Update.
9253 (dwarf2_per_cu_data::ref_addr_size): Update.
9254
1b555f17
SM
92552020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9256
9257 * dwarf2/read.c (load_cu): Return dwarf2_cu.
9258 (dw2_do_instantiate_symtab): Update.
9259 (queue_and_load_all_dwo_tus): Change parameter from
9260 dwarf2_per_cu_data to dwarf2_cu.
9261 (dwarf2_fetch_die_loc_sect_off): Update.
9262 (dwarf2_fetch_constant_bytes): Update.
9263 (dwarf2_fetch_die_type_sect_off): Update.
9264
8fc0b21d
SM
92652020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9266
9267 * dwarf2/read.c (process_full_comp_unit,
9268 process_full_type_unit): Remove per_cu, per_objfile paramters.
9269 Add dwarf2_cu parameter.
9270 (process_queue): Update.
9271
168c9250
SM
92722020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9273
9274 * dwarf2/read.c (create_cu_from_index_list): Replace
9275 dwarf2_per_objfile parameter with dwarf2_per_bfd.
9276 (create_cus_from_index_list): Likewise.
9277 (create_cus_from_index): Likewise.
9278 (create_signatured_type_table_from_index): Likewise.
9279 (create_cus_from_debug_names_list): Likewise.
9280 (create_cus_from_debug_names): Likewise.
9281 (dwarf2_read_gdb_index): Update.
9282 (dwarf2_read_debug_names): Update.
9283
e286671b
TT
92842020-05-27 Tom Tromey <tom@tromey.com>
9285 Simon Marchi <simon.marchi@efficios.com>
9286
9287 * dwarf2/read.h (struct dwarf2_per_objfile)
9288 <get_type_for_signatured_type, set_type_for_signatured_type>:
9289 New methods.
9290 <m_type_map>: New member.
9291 (struct signatured_type) <type>: Remove.
9292 * dwarf2/read.c
9293 (dwarf2_per_objfile::get_type_for_signatured_type,
9294 dwarf2_per_objfile::set_type_for_signatured_type): New.
9295 (get_signatured_type): Use new methods.
9296
8adb8487
TT
92972020-05-27 Tom Tromey <tom@tromey.com>
9298 Simon Marchi <simon.marchi@efficios.com>
9299
9300 * dwarf2/read.h (struct type_unit_group_unshareable): New.
9301 (struct dwarf2_per_objfile) <type_units>: New member.
9302 <get_type_unit_group_unshareable>: New method.
9303 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
9304 num_symtabs, symtabs>: Remove; move to
9305 type_unit_group_unshareable.
9306 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
9307 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
9308 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
9309
127bbf4b
SM
93102020-05-27 Simon Marchi <simon.marchi@efficios.com>
9311
9312 * dwarf2/read.h (struct dwarf2_per_cu_data):
9313 <dwarf2_per_objfile>: Remove.
9314 * dwarf2/read.c (create_cu_from_index_list): Don't assign
9315 dwarf2_per_objfile.
9316 (create_signatured_type_table_from_index): Likewise.
9317 (create_signatured_type_table_from_debug_names): Likewise.
9318 (create_debug_type_hash_table): Likewise.
9319 (fill_in_sig_entry_from_dwo_entry): Likewise.
9320 (create_type_unit_group): Likewise.
9321 (read_comp_units_from_section): Likewise.
9322 (create_cus_hash_table): Likewise.
9323
f6e649dd
SM
93242020-05-27 Simon Marchi <simon.marchi@efficios.com>
9325
9326 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
9327 dwarf2_per_cu_data::dwarf2_per_objfile.
9328 (compute_compunit_symtab_includes): Likewise.
9329 (dwarf2_cu::start_symtab): Likewise.
9330
aa66c379
SM
93312020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9332
9333 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
9334 parameter.
9335 * dwarf2/read.c (get_die_type_at_offset): Likewise.
9336 (read_namespace_alias): Update.
9337 (lookup_die_type): Update.
9338 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
9339 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
9340 Update.
9341 (disassemble_dwarf_expression): Update.
9342
120ce1b5
SM
93432020-05-27 Simon Marchi <simon.marchi@efficios.com>
9344
9345 * dwarf2/read.h (struct dwarf2_queue_item): Add
9346 dwarf2_per_objfile parameter, assign new parameter.
9347 <per_objfile>: New field.
9348 * dwarf2/read.c (free_one_cached_comp_unit): Add
9349 dwarf2_per_objfile parameter.
9350 (queue_comp_unit): Likewise.
9351 (dw2_do_instantiate_symtab): Update.
9352 (process_psymtab_comp_unit): Update.
9353 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
9354 (process_imported_unit_die): Update.
9355 (queue_and_load_dwo_tu): Update.
9356 (follow_die_offset): Update.
9357 (follow_die_sig_1): Update.
9358
9f47c707
SM
93592020-05-27 Simon Marchi <simon.marchi@efficios.com>
9360
9361 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
9362 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
9363 (read_call_site_scope): Assign per_objfile.
9364 (dwarf2_per_cu_data::objfile): Remove.
9365 * gdbtypes.h (struct call_site) <per_objfile>: New member.
9366 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
9367 dwarf2_per_objfile parameter.
9368 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
9369 dwarf2_per_objfile parameter.
9370 (dwarf_expr_reg_to_entry_parameter): Add output
9371 dwarf2_per_objfile parameter.
9372 (locexpr_get_frame_base): Update.
9373 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
9374 <push_dwarf_reg_entry_value>: Update.
9375 <call_site_to_target_addr>: Update.
9376 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
9377 parameter.
9378 (value_of_dwarf_reg_entry): Update.
9379 (rw_pieced_value): Update.
9380 (indirect_synthetic_pointer): Update.
9381 (dwarf2_evaluate_property): Update.
9382 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
9383 parameter.
9384 (locexpr_read_variable): Update.
9385 (locexpr_get_symbol_read_needs): Update.
9386 (loclist_read_variable): Update.
9387
14095eb3
SM
93882020-05-27 Simon Marchi <simon.marchi@efficios.com>
9389
9390 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9391 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9392 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9393 parameter.
9394 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9395 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9396 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9397 parameter.
9398 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
9399 sect_variable_value): Add dwarf2_per_objfile parameter.
9400 (class dwarf_evaluate_loc_desc) <dwarf_call,
9401 dwarf_variable_value>: Update.
9402 (fetch_const_value_from_synthetic_pointer): Add
9403 dwarf2_per_objfile parameter.
9404 (fetch_const_value_from_synthetic_pointer): Update.
9405 (coerced_pieced_ref): Update.
9406 (class symbol_needs_eval_context) <dwarf_call,
9407 dwarf_variable_value>: Update.
9408 (dwarf2_compile_expr_to_ax): Update.
9409
3c3cd3d4
SM
94102020-05-27 Simon Marchi <simon.marchi@efficios.com>
9411
9412 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
9413 parameter.
9414 (dwarf2_evaluate_loc_desc_full): Update.
9415
82ca3f51
SM
94162020-05-27 Simon Marchi <simon.marchi@efficios.com>
9417
9418 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
9419 parameter.
9420 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
9421 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
9422 dwarf2_per_objfile parameter.
9423 (decode_debug_loc_dwo_addresses): Likewise.
9424 (dwarf2_find_location_expression): Update.
9425 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
9426 (locexpr_describe_location_piece): Add dwarf2_per_objfile
9427 parameter.
9428 (disassemble_dwarf_expression): Add dwarf2_per_objfile
9429 parameter.
9430 (locexpr_describe_location_1): Likewise.
9431 (locexpr_describe_location): Update.
9432
4b167ea1
SM
94332020-05-27 Simon Marchi <simon.marchi@efficios.com>
9434
9435 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
9436 Remove.
9437 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
9438 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
9439 (dwarf2_compile_property_to_c): Update.
9440 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
9441 use text offset from objfile.
9442 (locexpr_tracepoint_var_ref): Update.
9443 (locexpr_generate_c_location): Update.
9444 (loclist_describe_location): Update.
9445 (loclist_tracepoint_var_ref): Update.
9446 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
9447 dwarf2_per_objfile parameter.
9448 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
9449 use text offset from objfile.
9450 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
9451
89b07335
SM
94522020-05-27 Simon Marchi <simon.marchi@efficios.com>
9453
9454 * dwarf2/expr.h (struct dwarf_expr_context)
9455 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
9456 <offset>: Remove.
9457 <per_objfile>: New member.
9458 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
9459 dwarf2_per_objfile parameter. Don't set offset, set
9460 per_objfile.
9461 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
9462 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
9463 a dwarf2_per_objfile object instead of an offset.
9464 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
9465 constructor.
9466 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
9467 to dwarf2_expr_executor constructor. Don't set offset.
9468 (dwarf2_fetch_cfa_info): Update.
9469 (struct dwarf2_frame_cache) <text_offset>: Remove.
9470 <per_objfile>: New field.
9471 (dwarf2_frame_cache): Update.
9472 (dwarf2_frame_prev_register): Update.
9473 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9474 <dwarf_evaluate_loc_desc>: Add constructor.
9475 (dwarf2_evaluate_loc_desc_full): Update.
9476 (dwarf2_locexpr_baton_eval): Update.
9477 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
9478 Add constructor.
9479 (dwarf2_loc_desc_get_symbol_read_needs): Update.
9480
293e7e51
SM
94812020-05-27 Simon Marchi <simon.marchi@efficios.com>
9482
9483 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
9484 addr_sized_int_type>: Move to dwarf2_cu.
9485 <int_type>: Move to dwarf2_per_objfile.
9486 (struct dwarf2_per_objfile) <int_type>: Move here.
9487 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
9488 addr_sized_int_type>: Move here.
9489 (read_func_scope): Update.
9490 (read_array_type): Update.
9491 (read_tag_string_type): Update.
9492 (attr_to_dynamic_prop): Update.
9493 (dwarf2_per_cu_data::int_type): Rename to...
9494 (dwarf2_per_objfile::int_type): ... this.
9495 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
9496 (dwarf2_cu::addr_sized_int_type): ... this.
9497 (read_subrange_type): Update.
9498 (dwarf2_per_cu_data::addr_type): Rename to...
9499 (dwarf2_cu::addr_type): ... this.
9500 (set_die_type): Update.
9501
64874a40
SM
95022020-05-27 Simon Marchi <simon.marchi@efficios.com>
9503
9504 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
9505 data through per_cu->cu.
9506
4ab09049
SM
95072020-05-27 Simon Marchi <simon.marchi@efficios.com>
9508
9509 * dwarf2/read.c (lookup_dwo_comp_unit): Change
9510 dwarf2_per_cu_data parameter fo dwarf2_cu.
9511 (lookup_dwo_type_unit): Likewise.
9512 (read_cutu_die_from_dwo): Likewise.
9513 (lookup_dwo_unit): Likewise.
9514 (open_and_init_dwo_file): Likewise.
9515 (lookup_dwo_cutu): Likewise.
9516 (lookup_dwo_comp_unit): Likewise.
9517 (lookup_dwo_type_unit): Likewise.
9518 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9519 (cutu_reader::cutu_reader): Update.
9520
47b14e86
SM
95212020-05-27 Simon Marchi <simon.marchi@efficios.com>
9522
9523 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
9524 parameter.
9525 (process_full_type_unit): Likewise.
9526 (process_queue): Update.
9527
43182c09
SM
95282020-05-27 Simon Marchi <simon.marchi@efficios.com>
9529
9530 * dwarf2/read.c (recursively_compute_inclusions): Add
9531 dwarf2_per_objfile parameter.
9532 (compute_compunit_symtab_includes): Likewise.
9533 (process_cu_includes): Update.
9534
7aa104c4
SM
95352020-05-27 Simon Marchi <simon.marchi@efficios.com>
9536
9537 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
9538 parameter.
9539 (create_type_unit_group): Update.
9540 (process_psymtab_comp_unit_reader): Update.
9541 (build_type_psymtabs_reader): Update.
9542
e3beb21d
SM
95432020-05-27 Simon Marchi <simon.marchi@efficios.com>
9544
9545 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
9546 object through m_this_cu->cu.
9547
d460f660
SM
95482020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9549
9550 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
9551 the info parameter.
9552 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
9553
ab432490
SM
95542020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9555
9556 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
9557 per_objfile parameter.
9558 (load_full_type_unit): Add per_objfile parameter.
9559 (read_signatured_type): Likewise.
9560 (load_full_comp_unit): Likewise.
9561 (load_cu): Likewise.
9562 (dw2_do_instantiate_symtab): Likewise.
9563 (dw2_get_file_names): Likewise.
9564 (dw2_map_symtabs_matching_filename): Update.
9565 (dw_expand_symtabs_matching_file_matcher): Update.
9566 (dw2_map_symbol_filenames): Update.
9567 (process_psymtab_comp_unit): Add per_objfile parameter.
9568 (build_type_psymtabs_1): Update.
9569 (process_skeletonless_type_unit): Update.
9570 (dwarf2_build_psymtabs_hard): Update.
9571 (load_partial_comp_unit): Add per_objfile parameter.
9572 (scan_partial_symbols): Update.
9573 (load_full_comp_unit): Add per_objfile parameter.
9574 (process_imported_unit_die): Update.
9575 (create_cus_hash_table): Update.
9576 (find_partial_die): Update.
9577 (dwarf2_read_addr_index): Update.
9578 (follow_die_offset): Update.
9579 (dwarf2_fetch_die_loc_sect_off): Update.
9580 (dwarf2_fetch_constant_bytes): Update.
9581 (dwarf2_fetch_die_type_sect_off): Update.
9582 (follow_die_sig_1): Update.
9583 (load_full_type_unit): Add per_objfile parameter.
9584 (read_signatured_type): Likewise.
9585
313bad1b
SM
95862020-05-27 Simon Marchi <simon.marchi@efficios.com>
9587
9588 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
9589 of objfile_name.
9590
c3699833
SM
95912020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9592
9593 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
9594 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9595 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
9596 field.
9597 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9598 (create_cus_from_index): Update.
9599 (dwarf2_read_gdb_index): Update.
9600 (create_cus_from_debug_names): Update.
9601 (dwarf2_read_debug_names): Update.
9602 (get_abbrev_section_for_cu): Update.
9603 (create_all_comp_units): Update.
9604 (read_attribute_value): Update.
9605 (get_debug_line_section): Update.
9606 * dwarf2/index-cache.c (index_cache::store): Update.
9607 * dwarf2/index-write.c (save_gdb_index_command): Update.
9608 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
9609
1859c670
SM
96102020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9611
9612 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
9613 member.
9614 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
9615 dwarf2_per_cu_data::per_bfd.
9616 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
9617 (create_type_unit_group): Likewise.
9618 (queue_comp_unit): Remove reference to
9619 per_cu->dwarf2_per_objfile.
9620 (maybe_queue_comp_unit): Likewise.
9621 (fill_in_sig_entry_from_dwo_entry): Assign new field.
9622 (create_cus_hash_table): Assign new field.
9623
5e22e966
SM
96242020-05-27 Simon Marchi <simon.marchi@efficios.com>
9625
9626 * dwarf2/read.c: Replace
9627 dwarf2_cu->per_cu->dwarf2_per_objfile references with
9628 dwarf2_cu->per_objfile throughout.
9629
97a1449a
SM
96302020-05-27 Simon Marchi <simon.marchi@efficios.com>
9631
9632 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
9633 parameter, don't use per_cu->dwarf2_per_objfile.
9634 (dw2_instantiate_symtab): Likewise.
9635 (dw2_find_last_source_symtab): Update.
9636 (dw2_map_expand_apply): Update.
9637 (dw2_lookup_symbol): Update.
9638 (dw2_expand_symtabs_for_function): Update.
9639 (dw2_expand_all_symtabs): Update.
9640 (dw2_expand_symtabs_with_fullname): Update.
9641 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
9642 don't use per_cu->dwarf2_per_objfile.
9643 (dw2_expand_marked_cus): Update.
9644 (dw2_find_pc_sect_compunit_symtab): Update.
9645 (dw2_debug_names_lookup_symbol): Update.
9646 (dw2_debug_names_expand_symtabs_for_function): Update.
9647 (dw2_debug_names_map_matching_symbols): Update.
9648 (dwarf2_psymtab::expand_psymtab): Update.
9649
9e021579
SM
96502020-05-27 Simon Marchi <simon.marchi@efficios.com>
9651
9652 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
9653 <per_objfile>: New member.
9654 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
9655 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
9656 call to dwarf2_cu.
9657 (cutu_reader::cutu_reader): Update.
9658 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
9659
ae090bdb
SM
96602020-05-27 Simon Marchi <simon.marchi@efficios.com>
9661
9662 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
9663 struct dwarf2_per_objfile.
9664 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
9665 dwarf2_per_bfd.
9666 * dwarf2/read.c (set_die_type): Update.
9667 (get_die_type_at_offset): Update.
9668
af758d11
SM
96692020-05-27 Tom Tromey <tom@tromey.com>
9670 Simon Marchi <simon.marchi@efficios.com>
9671
9672 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
9673 method.
9674 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
9675 get_symtab, set_symtab>: New methods.
9676 <m_symtabs>: New field.
9677 (struct dwarf2_psymtab): Derive from partial_symtab.
9678 <readin_p, get_compunit_symtab>: Declare methods.
9679 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
9680 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
9681 New methods.
9682 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
9683 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
9684 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
9685 (dw2_symtab_iter_next, dw2_print_stats)
9686 (dw2_expand_symtabs_with_fullname)
9687 (dw2_expand_symtabs_matching_one)
9688 (dw_expand_symtabs_matching_file_matcher)
9689 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
9690 (dw2_debug_names_iterator::next)
9691 (dw2_debug_names_map_matching_symbols)
9692 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
9693 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
9694 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
9695 New methods.
9696 (get_compunit_symtab, process_full_comp_unit)
9697 (process_full_type_unit): Update.
9698 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
9699
5989a64e
SM
97002020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9701
9702 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
9703 then introduce a new dwarf2_per_objfile type.
9704 <read_line_string>: Move to the new dwarf2_per_objfile type.
9705 <objfile>: Likewise.
9706 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
9707 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
9708 dwarf2_per_objfile->per_bfd.
9709 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
9710 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
9711 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
9712 (dwarf2_per_bfd::free_cached_comp_units): ... this.
9713 (dwarf2_has_info): Allocate dwarf2_per_bfd.
9714 (dwarf2_per_objfile::locate_sections): Rename to...
9715 (dwarf2_per_bfd::locate_sections): ... this.
9716 (dwarf2_per_objfile::get_cutu): Rename to...
9717 (dwarf2_per_bfd::get_cutu): ... this.
9718 (dwarf2_per_objfile::get_cu): Rename to...
9719 (dwarf2_per_bfd::get_cu): ... this.
9720 (dwarf2_per_objfile::get_tu): Rename to...
9721 (dwarf2_per_bfd::get_tu): ... this.
9722 (dwarf2_per_objfile::allocate_per_cu): Rename to...
9723 (dwarf2_per_bfd::allocate_per_cu): ... this.
9724 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
9725 (dwarf2_per_bfd::allocate_signatured_type): ... this.
9726 (get_gdb_index_contents_ftype): Change parameter from
9727 dwarf2_per_objfile to dwarf2_per_bfd.
9728 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
9729 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
9730
a50264ba
TT
97312020-05-27 Tom Tromey <tom@tromey.com>
9732 Simon Marchi <simon.marchi@efficios.com>
9733
9734 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
9735 (allocate_piece_closure): Set "per_objfile" member.
9736 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
9737 (locexpr_describe_location, loclist_describe_location): Use new
9738 member.
9739 * dwarf2/read.c (read_call_site_scope)
9740 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
9741 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
9742 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
9743 handle_data_member_location): Set per_objfile member.
9744 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
9745 member.
9746 (struct dwarf2_loclist_baton) <per_objfile>: New member.
9747
d3473f0c
TT
97482020-05-27 Tom Tromey <tom@tromey.com>
9749
9750 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
9751 allocate_signatured_type>: Declare new methods.
9752 <m_num_psymtabs>: New member.
9753 (struct dwarf2_per_cu_data) <index>: New member.
9754 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
9755 (dwarf2_per_objfile::allocate_signatured_type): New methods.
9756 (create_cu_from_index_list): Use allocate_per_cu.
9757 (create_signatured_type_table_from_index)
9758 (create_signatured_type_table_from_debug_names)
9759 (create_debug_type_hash_table, add_type_unit)
9760 (read_comp_units_from_section): Use allocate_signatured_type.
9761
5717c425
TT
97622020-05-27 Tom Tromey <tom@tromey.com>
9763
9764 * psymtab.c (partial_map_expand_apply)
9765 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9766 (psym_lookup_global_symbol_language)
9767 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9768 (psym_print_stats, psym_expand_symtabs_for_function)
9769 (psym_map_symbol_filenames, psym_map_matching_symbols)
9770 (psym_expand_symtabs_matching)
9771 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9772 (maintenance_check_psymtabs): Update.
9773 * psympriv.h (struct partial_symtab) <readin_p,
9774 get_compunit_symtab>: Add objfile parameter.
9775 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
9776 Likewise.
9777 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
9778 get_compunit_symtab>: Likewise.
9779 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
9780
45940949
TT
97812020-05-27 Tom Tromey <tom@tromey.com>
9782
9783 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
9784 member.
9785 * dwarf2/read.c (delete_file_name_entry): Fix comment.
9786 (create_cu_from_index_list)
9787 (create_signatured_type_table_from_index)
9788 (create_signatured_type_table_from_debug_names)
9789 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
9790 (dwarf2_create_include_psymtab)
9791 (create_debug_type_hash_table, add_type_unit)
9792 (create_type_unit_group, read_comp_units_from_section)
9793 (dwarf2_compute_name, create_cus_hash_table)
9794 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9795 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
9796 obstack.
9797 (dw2_get_real_path): Likewise. Change argument to
9798 dwarf2_per_objfile.
9799
f8c6d152
LM
98002020-05-27 Luis Machado <luis.machado@linaro.org>
9801
9802 PR tdep/26000
9803 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
9804 for ldrd (immediate).
9805
e98d2e6d
PW
98062020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9807
9808 * command.h: Add comment giving the name of class_tui.
9809 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
9810 create the fake command for the help for class_tui.
9811
53a47a3e
TT
98122020-05-26 Tom Tromey <tromey@adacore.com>
9813
9814 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
9815 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
9816 (val_atr): New function.
9817 (value_val_atr): Use it.
9818 * ada-valprint.c (print_optional_low_bound): Change low bound
9819 handling for enums.
9820 (val_print_packed_array_elements): Don't call discrete_position.
9821 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
9822 discrete_position for enum types.
9823 * language.c (default_print_array_index): Change type.
9824 * language.h (struct language_defn) <la_print_array_index>: Add
9825 index_type parameter, change type of index_value.
9826 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
9827 (default_print_array_index): Update.
9828 * valprint.c (maybe_print_array_index): Don't call
9829 value_from_longest. Update.
9830 (value_print_array_elements): Don't call discrete_position.
9831
0bc2354b
TT
98322020-05-26 Tom Tromey <tromey@adacore.com>
9833
9834 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
9835 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
9836
1218a4bf
CDA
98372020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
9838
9839 PR gdb/13519
9840 * avr-tdep.c (avr_integer_to_address): Return data or code
9841 address accordingly to the second 'type' argument of the
9842 function.
9843
92651b1d
MW
98442020-05-25 Michael Weghorn <m.weghorn@posteo.de>
9845
9846 * infcmd.c, inferior.h: (construct_inferior_arguments):
9847 Moved function from here to gdbsupport/common-inferior.{h,cc}
9848
0a4f5f8c
TT
98492020-05-23 Tom Tromey <tom@tromey.com>
9850
9851 Revert commit eca1f90c:
9852 * NEWS: Remove entry for completion styling.
9853 * completer.c (_rl_completion_prefix_display_length): Move
9854 declaration later.
9855 (gdb_fnprint): Revert.
9856 (gdb_display_match_list_1): Likewise.
9857 * cli/cli-style.c (completion_prefix_style)
9858 (completion_difference_style, completion_suffix_style): Remove.
9859 (_initialize_cli_style): Revert.
9860 * cli/cli-style.h (completion_prefix_style)
9861 (completion_difference_style, completion_suffix_style): Don't
9862 declare.
9863
e08bd6c5
PA
98642020-05-24 Pedro Alves <palves@redhat.com>
9865
9866 * symtab.c (completion_list_add_name): Return boolean indication
9867 of whether the symbol matched.
9868 (completion_list_add_symbol): Don't try to remove C++ aliases if
9869 the symbol didn't match in the first place.
9870 * symtab.h (completion_list_add_name): Return bool.
9871
ceacbf6e
SM
98722020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
9873
9874 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
9875 type::field.
9876
26f16254
JB
98772020-05-23 Joel Brobecker <brobecker@adacore.com>
9878
9879 GDB 9.2 released.
9880
eca1f90c
TT
98812020-05-23 Tom Tromey <tom@tromey.com>
9882
9883 * NEWS: Add entry for completion styling.
9884 * completer.c (_rl_completion_prefix_display_length): Move
9885 declaration earlier.
9886 (gdb_fnprint): Use completion_style.
9887 (gdb_display_match_list_1): Likewise.
9888 * cli/cli-style.c (completion_prefix_style)
9889 (completion_difference_style, completion_suffix_style): New
9890 globals.
9891 (_initialize_cli_style): Register new globals.
9892 * cli/cli-style.h (completion_prefix_style)
9893 (completion_difference_style, completion_suffix_style): Declare.
9894
51e2cfa2
PA
98952020-05-23 Pedro Alves <palves@redhat.com>
9896
9897 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
9898 (parse_escape): Use ISDIGIT instead of isdigit.
9899 (puts_debug): Use gdb_isprint instead of isprint.
9900 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
9901 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
9902 ISSPACE instead of isspace.
9903 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
9904 instead of isspace.
9905 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
9906 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
9907 instead of isxdigit and ISDIGIT instead of isdigit.
9908
80fc5e77
SM
99092020-05-22 Simon Marchi <simon.marchi@efficios.com>
9910
9911 * gdbtypes.h (struct type) <field>: New method.
9912 (TYPE_FIELDS): Remove, replace all uses with either type::fields
9913 or type::field.
9914
3cabb6b0
SM
99152020-05-22 Simon Marchi <simon.marchi@efficios.com>
9916
9917 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
9918 (TYPE_FIELDS): Use type::fields. Change all call sites that
9919 modify the propery to use type::set_fields instead.
9920
1f704f76
SM
99212020-05-22 Simon Marchi <simon.marchi@efficios.com>
9922
9923 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
9924 type::num_fields instead.
9925
5e33d5f4
SM
99262020-05-22 Simon Marchi <simon.marchi@efficios.com>
9927
9928 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
9929 methods.
9930 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
9931 that modify the number of fields to use type::set_num_fields
9932 instead.
9933
9392ebb3
TT
99342020-05-22 Tom Tromey <tromey@adacore.com>
9935
9936 * compile/compile-object-load.h (munmap_list_free): Don't
9937 declare.
9938
7c13f4e8
AB
99392020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
9940
9941 * annotate.c (annotate_source_line): Update return type, add call
9942 to update current symtab and line.
9943 * annotate.h (annotate_source_line): Update return type, and
9944 extend header comment.
9945 * source.c (info_line_command): Check annotation_level before
9946 calling annotate_source_line.
9947 * stack.c (print_frame_info): If calling annotate_source_line
9948 returns true, then don't print any other source line information.
9949
aa370940
SM
99502020-05-21 Simon Marchi <simon.marchi@efficios.com>
9951
9952 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
9953
84d53fa9
SM
99542020-05-21 Simon Marchi <simon.marchi@efficios.com>
9955
9956 * coffread.c (patch_type): Remove NULL check before xfree.
9957 * corefile.c (set_gnutarget): Likewise.
9958 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
9959 * exec.c (build_section_table): Likewise.
9960 * remote.c (remote_target::pass_signals): Likewise.
9961 * utils.c (n_spaces): Likewise.
9962 * cli/cli-script.c (document_command): Likewise.
9963 * i386-windows-tdep.c (core_process_module_section): Likewise.
9964 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
9965
9d428aae
SM
99662020-05-20 Simon Marchi <simon.marchi@efficios.com>
9967
9968 * symfile.c (reread_symbols): Clear objfile's section_offsets
9969 vector and section indices, re-compute them by calling
9970 sym_offsets.
9971
250106a7
TT
99722020-05-20 Tom Tromey <tromey@adacore.com>
9973
9974 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 9975 (desc_one_bound, desc_index_type): Compute field name.
250106a7 9976
9a0bacfb
TV
99772020-05-20 Tom de Vries <tdevries@suse.de>
9978
9979 PR symtab/25833
9980 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
9981
7b958a48
AM
99822020-05-20 Alan Modra <amodra@gmail.com>
9983
9984 PR 25993
9985 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
9986 bfd_set_filename.
9987 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
9988 passed to bfd_set_filename.
9989 * symfile-mem.c (add_vsyscall_page): Likewise for string
9990 passed to symbol_file_add_from_memory.
9991 (symbol_file_add_from_memory): Make name param a const char* and
9992 don't strdup.
9993
c7e97679
AM
99942020-05-20 Alan Modra <amodra@gmail.com>
9995
9996 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
9997 rather than accessing bfd->filename directly.
9998 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
9999 and use bfd_section_name.
10000 * dwarf2/frame.c (decode_frame_entry): Likewise.
10001 * exec.c (exec_set_section_address): Likewise.
10002 * solib-aix.c (solib_aix_bfd_open): Likewise.
10003 * stap-probe.c (get_stap_base_address): Likewise.
10004 * symfile.c (reread_symbols): Likewise.
10005
563c591b
TT
100062020-05-19 Tom Tromey <tromey@adacore.com>
10007
10008 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
10009
f408d82c
SM
100102020-05-19 Simon Marchi <simon.marchi@efficios.com>
10011
10012 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
10013
98c59b52
PA
100142020-05-19 Pedro Alves <palves@redhat.com>
10015
10016 * NEWS (set exec-file-mismatch): Adjust entry.
10017 * exec.c: Include "build-id.h".
10018 (validate_exec_file): Try to match build IDs instead of filenames.
10019 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
10020 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
10021 and pass down 'warn_if_slow'.
10022 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
10023 gdb_bfd_open_closure to pass it down.
10024 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
10025
4111f652
PA
100262020-05-19 Pedro Alves <palves@redhat.com>
10027
10028 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
10029 * target.c (target_fileio_open_1): Rename to target_fileio_open
10030 and make extern. Use bool.
10031 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
10032 (target_fileio_read_alloc_1): Adjust.
10033 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
10034 (target_fileio_open_warn_if_slow): Delete declaration.
10035
ad80db5b
PA
100362020-05-19 Pedro Alves <palves@redhat.com>
10037
10038 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
10039 Adjust all callers.
10040
1d6ce4d3
YS
100412020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
10042
10043 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
10044 whether disp is negative.
10045
9005fbbb
SM
100462020-05-19 Simon Marchi <simon.marchi@efficios.com>
10047
10048 * symfile.h (struct symfile_segment_data)
10049 <~symfile_segment_data>: Remove.
10050 <segment_info>: Change to std::vector.
10051 * symfile.c (default_symfile_segments): Update.
10052 * elfread.c (elf_symfile_segments): Update.
10053
68b888ff
SM
100542020-05-19 Simon Marchi <simon.marchi@efficios.com>
10055
10056 * symfile.h (struct symfile_segment_data) <struct segment>: New.
10057 <segments>: New.
10058 <segment_bases, segment_sizes>: Remove.
10059 * symfile.c (default_symfile_segments): Update.
10060 * elfread.c (elf_symfile_segments): Update.
10061 * remote.c (remote_target::get_offsets): Update.
10062 * solib-target.c (solib_target_relocate_section_addresses):
10063 Update.
10064
62982abd
SM
100652020-05-19 Simon Marchi <simon.marchi@efficios.com>
10066
10067 * symfile.h (struct symfile_segment_data): Initialize fields.
10068 <~symfile_segment_data>: Add.
10069 (symfile_segment_data_up): New.
10070 (struct sym_fns) <sym_segments>: Return a
10071 symfile_segment_data_up.
10072 (default_symfile_segments): Return a symfile_segment_data_up.
10073 (free_symfile_segment_data): Remove.
10074 (get_symfile_segment_data): Return a symfile_segment_data_up.
10075 * symfile.c (default_symfile_segments): Likewise.
10076 (get_symfile_segment_data): Likewise.
10077 (free_symfile_segment_data): Remove.
10078 (symfile_find_segment_sections): Update.
10079 * elfread.c (elf_symfile_segments): Return a
10080 symfile_segment_data_up.
10081 * remote.c (remote_target::get_offsets): Update.
10082 * solib-target.c (solib_target_relocate_section_addresses):
10083 Update.
10084 * symfile-debug.c (debug_sym_segments): Return a
10085 symfile_segment_data_up.
10086
7f204339
RO
100872020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10088
e52a0f1b
RO
10089 PR build/25981
10090 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
10091 Hardcode register numbers.
10092
7f204339
RO
10093 PR build/25981
10094 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
10095 procfs_find_LDT_entry): Remove.
10096 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
10097 procfs_find_LDT_entry): Remove.
10098 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
10099 Remove.
10100
7f32a4d5
PA
101012020-05-17 Pedro Alves <palves@redhat.com>
10102 Andrew Burgess <andrew.burgess@embecosm.com>
10103 Keno Fischer <keno@juliacomputing.com>
10104
10105 PR gdb/25741
10106 * breakpoint.c (build_target_condition_list): Update comments.
10107 (build_target_command_list): Update comments and skip matching
10108 locations.
10109 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
10110 a separate function. Simplify "set breakpoint auto-hw off"
10111 handling.
10112 (insert_breakpoints): Update comment.
10113 (tracepoint_locations_match): New parameter. For breakpoints,
10114 compare location types too, if the caller wants to.
10115 (handle_automatic_hardware_breakpoints): New functions.
10116 (bp_location_is_less_than): Also sort by location type and
10117 hardware breakpoint length.
10118 (update_global_location_list): Handle "set breakpoint auto-hw on"
10119 here.
10120 (update_breakpoint_locations): Ask breakpoint_locations_match to
10121 ignore location types.
10122
7d93a1e0
SM
101232020-05-16 Simon Marchi <simon.marchi@efficios.com>
10124
10125 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
10126 type::name instead.
10127
d0e39ea2
SM
101282020-05-16 Simon Marchi <simon.marchi@efficios.com>
10129
10130 * gdbtypes.h (struct type) <name, set_name>: New methods.
10131 (TYPE_CODE): Use type::name. Change all call sites used to set
10132 the name to use type::set_name instead.
10133
2dab0c7b
TT
101342020-05-16 Tom Tromey <tom@tromey.com>
10135
10136 * top.c (quit_force): Update.
10137 * infrun.c (handle_no_resumed): Update.
10138 * top.h (all_uis): New function.
10139 (ALL_UIS): Remove.
10140
59f7bd8d
SM
101412020-05-16 Simon Marchi <simon.marchi@efficios.com>
10142
10143 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
10144
9bf058f0
PA
101452020-05-16 Pedro Alves <palves@redhat.com>
10146
10147 * ia64-linux-nat.c
10148 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
10149 Declare method.
10150 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
10151
8f86ae1a
SM
101522020-05-15 Simon Marchi <simon.marchi@efficios.com>
10153
10154 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
10155 (sparc64_adi_info): Likewise.
10156
d6bc0792
TT
101572020-05-15 Tom Tromey <tom@tromey.com>
10158
10159 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
10160 block_objfile.
10161 (lookup_objfile_from_block): Remove.
10162 (lookup_symbol_in_block, lookup_symbol_in_static_block)
10163 (lookup_global_symbol): Use block_objfile.
10164 * symtab.h (lookup_objfile_from_block): Don't declare.
10165 * printcmd.c (clear_dangling_display_expressions): Use
10166 block_objfile.
10167 * parse.c (operator_check_standard): Use block_objfile.
10168
8c14c3a3
TT
101692020-05-15 Tom Tromey <tom@tromey.com>
10170
10171 * language.c (language_alloc_type_symbol): Set
10172 SYMBOL_SECTION.
10173 * symtab.c (initialize_objfile_symbol): Remove.
10174 (allocate_symbol): Remove.
10175 (allocate_template_symbol): Remove.
10176 * dwarf2/read.c (fixup_go_packaging): Use "new".
10177 (new_symbol): Use "new".
10178 (read_variable): Don't call initialize_objfile_symbol. Use
10179 "new".
10180 (read_func_scope): Use "new".
10181 * xcoffread.c (process_xcoff_symbol): Don't call
10182 initialize_objfile_symbol.
10183 (SYMBOL_DUP): Remove.
10184 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
10185 "new".
10186 * symtab.h (allocate_symbol, initialize_objfile_symbol)
10187 (allocate_template_symbol): Don't declare.
10188 (struct symbol): Add copy constructor. Change defaults.
10189 * jit.c (finalize_symtab): Use "new".
10190 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
10191 Use "new".
10192 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
10193 (common_block_end): Use "new".
10194 * mdebugread.c (parse_symbol): Use "new".
10195 (new_symbol): Likewise.
10196
5b4a1a8d
PW
101972020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10198
10199 * NEWS: Mention changes to help and apropos.
10200
57b4f16e
PW
102012020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10202
10203 * command.h (enum command_class): Improve comments, document
10204 that class_alias is for user-defined aliases, give the class
10205 name for each class, remove unused class_xdb.
10206 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
10207 * breakpoint.c (_initialize_breakpoint): Replace class_alias
10208 by a precise class.
10209 * infcmd.c (_initialize_infcmd): Likewise.
10210 * reverse.c (_initialize_reverse): Likewise.
10211 * stack.c (_initialize_stack): Likewise.
10212 * symfile.c (_initialize_symfile): Likewise.
10213 * tracepoint.c (_initialize_tracepoint): Likewise.
10214
7c05caf7
PW
102152020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10216
10217 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
10218 when their aliased command is traversed.
10219 (help_cmd): Add fput_command_names_styled call to
10220 output command name and aliases when command has an alias.
10221
3b3aaacb
PW
102222020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10223
10224 * cli/cli-decode.h (help_cmd_list): Remove declaration.
10225 * cli/cli-decode.c (help_cmd_list): Declare as static,
10226 remove prefix argument, use bool for recurse arg, rework to show the aliases of
10227 a command together with the command.
10228 (fput_command_name_styled, fput_command_names_styled): New functions.
10229 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
10230 fput_command_name_styled.
10231 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
10232 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
10233
7aa1b46f
PW
102342020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10235
10236 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
10237 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
10238 * command.h (cmd_show_list): Likewise.
10239 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
10240 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
10241
89bcba74
PW
102422020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10243
10244 * unittests/command-def-selftests.c (traverse_command_structure):
10245 Verify all commands of a list have the same prefix command and
10246 that only the top cmdlist commands have a null prefix.
10247
3f4d92eb
PW
102482020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10249
10250 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
10251 as prefix, not one of its aliases.
10252 (set_cmd_prefix): Remove.
10253 (do_add_cmd): Centralize the setting of the prefix of a command, when
10254 command is defined after its full chain of prefix commands.
10255 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
10256 (add_setshow_cmd_full): Likewise.
10257 (update_prefix_field_of_prefixed_commands): New function.
10258 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
10259 update_prefix_field_of_prefixed_commands.
10260 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
10261 addresses of remote_set_cmdlist and remote_show_cmdlist given
10262 as argument, not the address of an argument.
10263 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
10264 * gdb/remote.c (_initialize_remote): Likewise.
10265
0605465f
PW
102662020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10267
10268 * cli/cli-cmds.c (alias_command): Check for an existing alias
10269 using lookup_cmd_composition, as valid_command_p is too strict
10270 and forbids aliases that are the prefix of an existing alias
10271 or command.
10272 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
10273 command is properly recognised as a valid command.
10274
58e6ac70
PW
102752020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10276
10277 * unittests/help-doc-selftests.c: Rename to
10278 unittests/command-def-selftests.c
10279 * unittests/command-def-selftests.c (help_doc_tests): Update some
10280 comments.
10281 (command_structure_tests, traverse_command_structure): New namespace
10282 and function.
10283 (command_structure_invariants_tests): New function.
10284 (_initialize_command_def_selftests) Renamed from
10285 _initialize_help_doc_selftests, register command_structure_invariants
10286 selftest.
10287
a7b9ceb8
PW
102882020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10289
10290 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
10291 an alias of 'show'.
10292
b2188a06
JB
102932020-05-15 Joel Brobecker <brobecker@adacore.com>
10294
10295 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
10296 ada_is_fixed_point_type. Update all callers.
10297 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
10298 all callers.
10299 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
10300 Update all callers.
10301 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
10302 print_fixed_point_type. Update all callers.
10303 * ada-valprint.c (ada_value_print_num): Replace call to
10304 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
10305
a51951c2
KB
103062020-05-14 Kevin Buettner <kevinb@redhat.com>
10307
10308 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
10309 processors.
10310 (cpu_supports_bts): Add CV_AMD case.
10311
29d6859f
LM
103122020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
10313 Simon Marchi <simon.marchi@efficios.com>
10314
10315 * infrun.c (stop_all_threads): Collect multiple wait events at
10316 each pass.
10317
78134374
SM
103182020-05-14 Simon Marchi <simon.marchi@efficios.com>
10319
10320 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
10321 type::code instead.
10322
67607e24
SM
103232020-05-14 Simon Marchi <simon.marchi@efficios.com>
10324
10325 * gdbtypes.h (struct type) <code, set_code>: New methods.
10326 (TYPE_CODE): Use type::code. Change all call sites used to set
10327 the code to use type::set_code instead.
10328
a05575d3
TBA
103292020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10330 Tom de Vries <tdevries@suse.de>
10331 Pedro Alves <palves@redhat.com>
10332
10333 PR threads/25478
10334 * infrun.c (stop_all_threads): Do NOT ignore
10335 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
10336 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
10337 received.
10338 (handle_no_resumed): Remove code handling a live inferior with no
10339 threads.
10340 * remote.c (has_single_non_exited_thread): New.
10341 (remote_target::update_thread_list): Do not delete a thread if is
10342 the last thread of the process.
10343 * thread.c (thread_select): Call delete_exited_threads instead of
10344 prune_threads.
10345
6ad82919
TBA
103462020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10347
10348 * infrun.c (stop_all_threads): Enable/disable thread events of all
10349 targets. Move a debug message denoting the end of the function
10350 into the SCOPED_EXIT block.
10351
d890404b
TBA
103522020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10353
10354 * process-stratum-target.h: Include <set>.
10355 (all_non_exited_process_targets, switch_to_target_no_thread): New
10356 function declarations.
10357 * process-stratum-target.c (all_non_exited_process_targets)
10358 (switch_to_target_no_thread): New function implementations.
10359
293b3ebc
TBA
103602020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10361
10362 * infrun.c (handle_inferior_event): Extract out a piece of code
10363 into...
10364 (mark_non_executing_threads): ...this new function.
10365
7ca9b62a
TBA
103662020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10367
10368 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
10369 use.
10370
fc75c28b
TBA
103712020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10372
10373 * regcache.c (regcache_read_pc_protected): New function
10374 implementation that returns 0 if the PC cannot read via
10375 'regcache_read_pc'.
10376 * infrun.c (proceed): Call 'regcache_read_pc_protected'
10377 instead of 'regcache_read_pc'.
10378 (keep_going_pass_signal): Ditto.
10379
a89febbd
TT
103802020-05-13 Tom Tromey <tromey@adacore.com>
10381
10382 * ada-lang.c (align_value): Remove.
10383 (ada_template_to_fixed_record_type_1): Use align_up.
10384
f7e23710
TBA
103852020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10386
10387 * async-event.c: Update the copyright year.
10388 * async-event.h: Update the copyright year.
10389
02ff80c2
SM
103902020-05-12 Simon Marchi <simon.marchi@efficios.com>
10391
10392 * objfiles.h (is_addr_in_objfile,
10393 shared_objfile_contains_address_p): Return bool.
10394 * objfile.c (is_addr_in_objfile,
10395 shared_objfile_contains_address_p): Return bool.
10396
4fd6c7e8
TT
103972020-05-11 Tom Tromey <tromey@adacore.com>
10398
10399 * cli/cli-cmds.c (info_command): Restore.
10400 (_initialize_cli_cmds): Use add_prefix_command for "info".
10401 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
10402
5eb68a39
TT
104032020-05-11 Tom Tromey <tromey@adacore.com>
10404
10405 * ada-lang.c (ada_value_primitive_field): Now public.
10406 * ada-lang.h (ada_value_primitive_field): Declare.
10407 * ada-valprint.c (print_field_values): Use
10408 ada_value_primitive_field for wrapper fields.
10409
7666722f
TV
104102020-05-11 Tom de Vries <tdevries@suse.de>
10411
10412 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
10413 MODULE_DOMAIN.
10414
3ee6bb11
TV
104152020-05-11 Tom de Vries <tdevries@suse.de>
10416
10417 PR symtab/25941
10418 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
10419 with length 0, if not gdb-produced.
10420 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
10421
43434996
TV
104222020-05-09 Tom de Vries <tdevries@suse.de>
10423
10424 PR gdb/25955
10425 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
10426 calculation.
10427
2f78cffc
TT
104282020-05-09 Tom Tromey <tom@tromey.com>
10429
10430 * top.c (server_command): Now bool.
10431 * top.h (server_command): Now bool.
10432
4f7bc5ed
TT
104332020-05-08 Tom Tromey <tromey@adacore.com>
10434
10435 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
10436 already being processed.
10437
8be4b118
TT
104382020-05-08 Tom Tromey <tom@tromey.com>
10439
10440 * printcmd.c (struct display) <next>: Remove.
10441 <display>: New constructor.
10442 <exp_string>: Now a std::string.
10443 <enabled_p>: Now a bool.
10444 (display_number): Move definition earlier.
10445 (displays): Rename from display_chain. Now a std::vector.
10446 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
10447 (display_command): Update.
10448 (do_one_display, disable_display)
10449 (enable_disable_display_command, do_enable_disable_display):
10450 Update.
10451 (free_display): Remove.
10452 (clear_displays): Rewrite.
10453 (delete_display): Update.
10454 (map_display_numbers): Use function_view. Remove "data"
10455 parameter. Update.
10456 (do_delete_display): Remove.
10457 (undisplay_command): Update.
10458 (do_one_display, do_displays, disable_display)
10459 (info_display_command): Update.
10460 (do_enable_disable_display): Remove.
10461 (enable_disable_display_command)
10462 (clear_dangling_display_expressions): Update.
10463
94c93c35
TT
104642020-05-08 Tom Tromey <tom@tromey.com>
10465
10466 * symtab.c (set_symbol_cache_size)
10467 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
10468 (maintenance_print_symbol_cache_statistics): Update.
10469 * symmisc.c (print_symbol_bcache_statistics)
10470 (print_objfile_statistics, maintenance_print_objfiles)
10471 (maintenance_info_symtabs, maintenance_check_symtabs)
10472 (maintenance_expand_symtabs, maintenance_info_line_tables):
10473 Update.
10474 * symfile-debug.c (set_debug_symfile): Update.
10475 * source.c (forget_cached_source_info): Update.
10476 * python/python.c (gdbpy_progspaces): Update.
10477 * psymtab.c (maintenance_info_psymtabs): Update.
10478 * probe.c (parse_probes): Update.
10479 * linespec.c (iterate_over_all_matching_symtabs)
10480 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
10481 * guile/scm-progspace.c (gdbscm_progspaces): Update.
10482 * exec.c (exec_target::close): Update.
10483 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
10484 * breakpoint.c (print_one_breakpoint_location)
10485 (create_longjmp_master_breakpoint)
10486 (create_std_terminate_master_breakpoint): Update.
10487 * progspace.c (program_spaces): Now a std::vector.
10488 (maybe_new_address_space): Update.
10489 (add_program_space): Remove.
10490 (program_space::program_space): Update.
10491 (remove_program_space): Update.
10492 (number_of_program_spaces): Remove.
10493 (print_program_space, update_address_spaces): Update.
10494 * progspace.h (program_spaces): Change type.
10495 (ALL_PSPACES): Remove.
10496 (number_of_program_spaces): Don't declare.
10497 (struct program_space) <next>: Remove.
10498
a1fd1ac9
TT
104992020-05-08 Tom Tromey <tom@tromey.com>
10500
10501 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
10502 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
10503 (enable_break): Update.
10504 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
10505 (frv_fdpic_find_canonical_descriptor): Update.
10506 (frv_fetch_objfile_link_map): Update.
10507 * progspace.c (program_space::free_all_objfiles): Update.
10508 (program_space::solibs): New method.
10509 * progspace.h (struct program_space) <solibs>: New method.
10510 * solist.h (master_so_list): Don't declare.
10511 (ALL_SO_LIBS): Remove.
10512 * solib.h (so_list_head): Remove.
10513 (update_solib_list): Update comment.
10514 * solib.c (master_so_list): Remove.
10515 (solib_used, update_solib_list, solib_add)
10516 (info_sharedlibrary_command, clear_solib)
10517 (reload_shared_libraries_1, remove_user_added_objfile): Update.
10518
38eae084
TT
105192020-05-08 Tom Tromey <tom@tromey.com>
10520
10521 * extension.c (extension_languages): Now a std::array.
10522 (ALL_EXTENSION_LANGUAGES): Remove.
10523 (get_ext_lang_defn, get_ext_lang_of_file)
10524 (eval_ext_lang_from_control_command): Update.
10525 (finish_ext_lang_initialization)
10526 (auto_load_ext_lang_scripts_for_objfile)
10527 (ext_lang_type_printers::ext_lang_type_printers)
10528 (apply_ext_lang_type_printers)
10529 (ext_lang_type_printers::~ext_lang_type_printers)
10530 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
10531 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
10532 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
10533 (get_matching_xmethod_workers, ext_lang_colorize)
10534 (ext_lang_before_prompt): Update.
10535 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
10536
596dc4ad
TT
105372020-05-08 Tom Tromey <tom@tromey.com>
10538
10539 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
10540 overload.
10541 <swap_string, m_string>: Remove.
10542 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
10543 Update.
10544 * stabsread.c (define_symbol, read_type): Update.
10545 * linespec.c (find_linespec_symbols): Update.
10546 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
10547 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
10548 * dbxread.c (read_dbx_symtab): Update.
10549 * cp-support.h (cp_canonicalize_string_full)
10550 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
10551 Return unique_xmalloc_ptr.
10552 * cp-support.c (inspect_type): Update.
10553 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
10554 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
10555 Likewise.
10556 * c-typeprint.c (print_name_maybe_canonical): Update.
10557 * break-catch-throw.c (check_status_exception_catchpoint):
10558 Update.
10559
bf4cb9be
TV
105602020-05-08 Tom de Vries <tdevries@suse.de>
10561
10562 * infrun.c (follow_fork): Copy current_line and current_symtab to
10563 child thread.
10564
a1b68f28
SM
105652020-05-07 Simon Marchi <simon.marchi@efficios.com>
10566
10567 * async-event.c (struct async_signal_handler, struct
10568 async_event_handler): Reformat, remove typedef.
10569
98d48915
SM
105702020-05-07 Simon Marchi <simon.marchi@efficios.com>
10571
10572 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
10573 access thistype->main_type->dyn_prop_list directly.
10574
7aa91313
SM
105752020-05-07 Simon Marchi <simon.marchi@efficios.com>
10576
10577 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
10578 (remove_dyn_prop): Remove. Update all users to use
10579 type::remove_dyn_prop.
10580 * gdbtypes.c (remove_dyn_prop): Rename to...
10581 (type::remove_dyn_prop): ... this.
10582
5c54719c
SM
105832020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
10584
10585 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
10586 (add_dyn_prop): Remove. Update all users to use
10587 type::add_dyn_prop.
10588 * gdbtypes.c (add_dyn_prop): Rename to...
10589 (type::add_dyn_prop): ... this.
10590
24e99c6c
SM
105912020-05-07 Simon Marchi <simon.marchi@efficios.com>
10592
10593 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
10594 (get_dyn_prop): Remove. Update all users to use
10595 type::dyn_prop.
10596 * gdbtypes.c (get_dyn_prop): Rename to...
10597 (type::dyn_prop): ... this.
10598
0d4bf016
SM
105992020-05-06 Simon Marchi <simon.marchi@efficios.com>
10600
10601 * gdbtypes.h (struct main_type) <flag_static>: Remove.
10602
ac4a4f1c
SM
106032020-05-06 Simon Marchi <simon.marchi@efficios.com>
10604
10605 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
10606 instruction, skip it if it's there.
10607
a3bbacc1
SM
106082020-05-05 Simon Marchi <simon.marchi@efficios.com>
10609
10610 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
10611
c3236f84
SM
106122020-05-04 Simon Marchi <simon.marchi@efficios.com>
10613
10614 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
10615 * gdbtypes.c (recursive_dump_type): Remove use of
10616 TYPE_INCOMPLETE.
10617
3b6acaee
TT
106182020-05-03 Tom Tromey <tom@tromey.com>
10619
10620 * breakpoint.c (catch_command, tcatch_command): Remove.
10621 (_initialize_breakpoint): Use add_basic_prefix_cmd,
10622 add_show_prefix_cmd.
10623 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
10624 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
10625 Remove.
10626 (add_internal_problem_command): Use add_basic_prefix_cmd,
10627 add_show_prefix_cmd.
10628 * mips-tdep.c (set_mipsfpu_command): Remove.
10629 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
10630 * dwarf2/index-cache.c (set_index_cache_command): Remove.
10631 (_initialize_index_cache): Use add_basic_prefix_cmd.
10632 * memattr.c (dummy_cmd): Remove.
10633 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
10634 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
10635 (_initialize_tui_win): Use add_basic_prefix_cmd,
10636 add_show_prefix_cmd.
10637 * cli/cli-logging.c (set_logging_command): Remove.
10638 (_initialize_cli_logging): Use add_basic_prefix_cmd,
10639 add_show_prefix_cmd.
10640 (show_logging_command): Remove.
10641 * target.c (target_command): Remove.
10642 (add_target): Use add_basic_prefix_cmd.
10643
a51119cd
HD
106442020-05-02 Hannes Domani <ssbssa@yahoo.de>
10645
10646 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
10647
652fc23a 106482020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 10649
652fc23a
PW
10650 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
10651 info_command.
10652
117539e6
KR
106532020-04-30 Kamil Rytarowski <n54@gmx.com>
10654
10655 * nbsd-nat.c (nbsd_enable_proc_events)
10656 (nbsd_nat_target::post_startup_inferior): Add.
10657 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
10658 (nbsd_nat_target::update_thread_list): Rewrite.
10659 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
10660 "PTRACE_LWP_CREATE".
10661 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
10662
102e38eb 106632020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 10664
102e38eb
PW
10665 * stack.c (_initialize_stack): Remove duplicated creation
10666 of "frame" command and "f" alias.
10667
ee9d1e5f
HD
106682020-04-30 Hannes Domani <ssbssa@yahoo.de>
10669
10670 PR gdb/18706
10671 * gdbtypes.c (check_typedef): Calculate size of array of
10672 stubbed type.
10673
627c7fb8
HD
106742020-04-30 Hannes Domani <ssbssa@yahoo.de>
10675
10676 PR gdb/15559
10677 * i386-tdep.c (i386_push_dummy_call): Call
10678 i386_thiscall_push_dummy_call.
10679 (i386_thiscall_push_dummy_call): New function.
10680 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
10681 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
10682 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
10683
ffc2844e
SM
106842020-04-29 Simon Marchi <simon.marchi@efficios.com>
10685
10686 * gdbarch.sh (do_read): Add shellcheck disable directive for
10687 warning SC2162.
10688
1207375d
SM
106892020-04-29 Simon Marchi <simon.marchi@efficios.com>
10690
10691 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
10692 "referenced but not assigned" warning.
10693
9fdb2916
SM
106942020-04-29 Simon Marchi <simon.marchi@efficios.com>
10695
10696 * gdbarch.sh: Remove code that sets fallbackdefault.
10697
759cea5e
SM
106982020-04-29 Simon Marchi <simon.marchi@efficios.com>
10699
10700 * gdbarch.sh: Use shell operators && and || instead of
10701 -a and -o.
10702
cb02ab24
SM
107032020-04-29 Simon Marchi <simon.marchi@efficios.com>
10704
10705 * gdbarch.sh: Use $(...) instead of `...`.
10706
a6fc5ffc
SM
107072020-04-29 Simon Marchi <simon.marchi@efficios.com>
10708
10709 * gdbarch.sh: Use double quotes around variables.
10710
8d113d13
SM
107112020-04-29 Simon Marchi <simon.marchi@efficios.com>
10712
10713 * gdbarch.sh: Use %s with printf, instead of variables in the
10714 format string.
10715
ed6acedd
TT
107162020-04-29 Tom Tromey <tromey@adacore.com>
10717
10718 PR ada/25875:
10719 * dwarf2/read.c (update_enumeration_type_from_children): Compute
10720 type fields here.
10721 (read_enumeration_type): Call
10722 update_enumeration_type_from_children later. Update comments.
10723 (process_enumeration_scope): Don't create type fields.
10724
b68b1b58
KR
107252020-04-29 Kamil Rytarowski <n54@gmx.com>
10726
10727 * nbsd-tdep.c: Include "xml-syscall.h".
10728 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
10729
f94b2e03
KR
107302020-04-29 Kamil Rytarowski <n54@gmx.com>
10731
10732 * nbsd-nat.c: Include "sys/wait.h".
10733 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
10734 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
10735 (nbsd_nat_target::remove_exec_catchpoint)
10736 (nbsd_nat_target::set_syscall_catchpoint): Add.
10737 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
10738 (nbsd_nat_target::insert_exec_catchpoint)
10739 (nbsd_nat_target::remove_exec_catchpoint)
10740 (nbsd_nat_target::set_syscall_catchpoint): Add.
10741 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
10742 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
10743 `nbsd_get_syscall_number'.
10744
fc49bc72
TT
107452020-04-29 Tom Tromey <tom@tromey.com>
10746
10747 * stack.c (print_block_frame_labels): Remove.
10748
d642b692
HD
107492020-04-29 Hannes Domani <ssbssa@yahoo.de>
10750
10751 PR gdb/17320
10752 * ada-valprint.c (val_print_packed_array_elements): Move array
10753 end bracket to new line.
10754 (ada_val_print_string): Remove extra spaces before first array
10755 element.
10756 * c-valprint.c (c_value_print_array): Likewise.
10757 * m2-valprint.c (m2_print_array_contents): Likewise.
10758 (m2_value_print_inner): Likewise.
10759 * p-valprint.c (pascal_value_print_inner): Likewise.
10760 * valprint.c (generic_val_print_array): Likewise.
10761 (value_print_array_elements): Move first array element and array
10762 end bracket to new line.
10763
ea90f227
TV
107642020-04-29 Tom de Vries <tdevries@suse.de>
10765
10766 PR symtab/25889
10767 * linespec.c (find_method): Fix ix calculation.
10768
4498ef4f
KR
107692020-04-28 Kamil Rytarowski <n54@gmx.com>
10770
10771 * syscalls/update-netbsd.sh: New file.
10772 * syscalls/netbsd.xml: Regenerate.
10773 * data-directory/Makefile.in: Register `netbsd.xml' in
10774 `SYSCALLS_FILES'.
10775
a55e30b5
SM
107762020-04-28 Simon Marchi <simon.marchi@efficios.com>
10777
10778 * syscalls/update-freebsd.sh: Add double quotes.
10779
2b2fbab8
TT
107802020-04-28 Tom Tromey <tom@tromey.com>
10781
10782 * NEWS: Update.
10783 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
10784 (cmdpy_init): Allow class_tui.
10785
a65189c9
TV
107862020-04-28 Mark Williams <mark@myosotissp.com>
10787
10788 PR gdb/24480
10789 * dwarf2read.c: Add missing assingments to list_in_scope when
10790 start_symtab was already called.
10791
1b95cdb7
SM
107922020-04-28 Simon Marchi <simon.marchi@efficios.com>
10793
10794 PR gdb/25881
10795 * dwarf2/read.c (offset_map_type): Use
10796 gdb:hash_enum<sect_offset> as hash function.
10797
15cd93d0
TV
107982020-04-28 Tom de Vries <tdevries@suse.de>
10799
10800 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
10801 with DW_AT_signature.
10802
1eb39914
SM
108032020-04-27 Simon Marchi <simon.marchi@efficios.com>
10804
10805 * configure.ac: Remove check for fs_base/gs_base in
10806 user_regs_struct.
10807 * configure: Re-generate.
10808 * config.in: Re-generate.
10809 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
10810 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
10811 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
10812
991a3e2e
LM
108132020-04-27 Luis Machado <luis.machado@linaro.org>
10814
10815 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
10816 problematic inline frame unwinding situation.
10817 * frame.c (frame_id_computed_p): New function.
10818 * frame.h (frame_id_computed_p): New prototype.
10819
361ba0e8
TT
108202020-04-26 Tom Tromey <tom@tromey.com>
10821
10822 * command.h (enum command_class) <class_pseudo>: Remove.
10823
bc3609fd
PW
108242020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10825
10826 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
10827 and whitespace.
10828
b9771db7
KR
108292020-04-25 Kamil Rytarowski <n54@gmx.com>
10830
ec16513e
SM
10831 * inf-ptrace.c (inf_ptrace_target::wait): Remove
10832 `PT_GET_PROCESS_STATE' block.
b9771db7 10833
7151c1af
TT
108342020-04-24 Tom Tromey <tom@tromey.com>
10835
10836 * symtab.h (symbol_get_demangled_name): Don't declare.
10837 * symtab.c (symbol_get_demangled_name): Remove.
10838 (general_symbol_info::natural_name)
10839 (general_symbol_info::demangled_name): Update.
10840
906bb4c5
TT
108412020-04-24 Tom Tromey <tom@tromey.com>
10842
10843 PR rust/25025:
10844 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
10845
bcfe6157
TT
108462020-04-24 Tom Tromey <tom@tromey.com>
10847
10848 PR symtab/12707:
10849 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
10850 exists.
10851 (new_symbol): Likewise.
10852 * compile/compile-object-load.c (get_out_value_type): Use
10853 symbol_matches_search_name.
10854
f049a313
TT
108552020-04-24 Tom Tromey <tom@tromey.com>
10856
10857 * dwarf2/read.c (add_partial_symbol): Do not call
10858 compute_and_set_names.
10859
76e288d1
TT
108602020-04-24 Tom Tromey <tom@tromey.com>
10861
10862 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
10863 overload.
10864
2467f4f6
TT
108652020-04-24 Tom Tromey <tom@tromey.com>
10866
10867 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
10868 (add_psymbol_to_list): New overload. Make old overload call new
10869 one.
10870 * psympriv.h (add_psymbol_to_list): New overload.
10871
e61108c9
TT
108722020-04-24 Tom Tromey <tom@tromey.com>
10873
10874 * dwarf2/read.c (partial_die_info::read) <case
10875 DW_AT_linkage_name>: Use value_as_string.
10876 (dwarf2_string_attr): Use value_as_string.
10877 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
10878 method.
10879 * dwarf2/attribute.c (attribute::value_as_string): New method.
10880
8c87a452
TT
108812020-04-24 Tom Tromey <tom@tromey.com>
10882
10883 * symtab.c (general_symbol_info::natural_name)
10884 (general_symbol_info::demangled_name): Check for language_rust.
10885
787de330
TT
108862020-04-24 Tom Tromey <tom@tromey.com>
10887
10888 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
10889 (dwarf2_physname): ... from here.
10890 (partial_die_info::read): Add Rust "{" hack.
10891
ff985671
TT
108922020-04-24 Tom Tromey <tom@tromey.com>
10893
10894 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
10895 method.
10896 (symbol_set_demangled_name): Don't declare.
10897 * symtab.c (general_symbol_info::set_demangled_name): Rename from
10898 symbol_set_demangled_name.
10899 (general_symbol_info::set_language)
10900 (general_symbol_info::compute_and_set_names): Update.
10901 * minsyms.c (minimal_symbol_reader::install): Update.
10902 * dwarf2/read.c (new_symbol): Update.
10903
1acda803
TT
109042020-04-24 Tom Tromey <tromey@adacore.com>
10905
10906 PR python/23662:
10907 * python/py-type.c (convert_field): Handle
10908 FIELD_LOC_KIND_DWARF_BLOCK.
10909 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
10910 (typy_get_dynamic): Nw function.
10911 (type_object_getset): Add "dynamic".
10912 * NEWS: Add entry.
10913
d656f129
TT
109142020-04-24 Tom Tromey <tromey@adacore.com>
10915
10916 * ada-typeprint.c (print_choices, print_variant_part)
10917 (print_record_field_types_dynamic): New functions.
10918 (print_record_field_types): Use print_record_field_types_dynamic.
10919
7d79de9a
TT
109202020-04-24 Tom Tromey <tromey@adacore.com>
10921
10922 * dwarf2/read.c (handle_data_member_location): New overload.
10923 (dwarf2_add_field): Use it.
10924 (decode_locdesc): Add "computed" parameter. Update comment.
10925 * gdbtypes.c (is_dynamic_type_internal): Also look for
10926 FIELD_LOC_KIND_DWARF_BLOCK.
10927 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
10928 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
10929 virtual base classes.
10930 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
10931 FIELD_LOC_KIND_DWARF_BLOCK.
10932
f8e89861
TT
109332020-04-24 Tom Tromey <tromey@adacore.com>
10934
10935 * dwarf2/read.c (read_structure_type): Handle dynamic length.
10936 * gdbtypes.c (is_dynamic_type_internal): Check
10937 TYPE_HAS_DYNAMIC_LENGTH.
10938 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
10939 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
10940 New macros.
10941 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
10942 constant.
10943
9c6a1327
TT
109442020-04-24 Tom Tromey <tromey@adacore.com>
10945
10946 * dwarf2/read.c (struct variant_field): Rewrite.
10947 (struct variant_part_builder): New.
10948 (struct nextfield): Remove "variant" field. Add "offset".
10949 (struct field_info): Add "current_variant_part" and
10950 "variant_parts".
10951 (alloc_discriminant_info): Remove.
10952 (alloc_rust_variant): New function.
10953 (quirk_rust_enum): Update.
10954 (dwarf2_add_field): Set "offset" member. Don't handle
10955 DW_TAG_variant_part.
10956 (offset_map_type): New typedef.
10957 (convert_variant_range, create_one_variant)
10958 (create_one_variant_part, create_variant_parts)
10959 (add_variant_property): New functions.
10960 (dwarf2_attach_fields_to_type): Call add_variant_property.
10961 (read_structure_type): Don't handle DW_TAG_variant_part.
10962 (handle_variant_part, handle_variant): New functions.
10963 (handle_struct_member_die): Use them.
10964 (process_structure_scope): Don't handle variant parts.
10965 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
10966 (struct discriminant_info): Remove.
10967 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
10968 (struct main_type) <flag_discriminated_union>: Remove.
10969 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
10970 (rust_enum_variant): Return int. Remove "contents". Rewrite.
10971 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
10972 Update.
10973 * valops.c (value_union_variant): Remove.
10974 * value.h (value_union_variant): Don't declare.
10975
b249d2c2
TT
109762020-04-24 Tom Tromey <tromey@adacore.com>
10977
10978 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
10979 (ada_value_primitive_packed_val): Update.
10980 * ada-valprint.c (ada_value_print_1): Update.
10981 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
10982 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
10983 just an address. Use evaluate_for_locexpr_baton.
10984 (dwarf2_evaluate_property): Update.
10985 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
10986 array_view.
10987 * findvar.c (default_read_var_value): Update.
10988 * gdbtypes.c (compute_variant_fields_inner)
10989 (resolve_dynamic_type_internal): Update.
10990 (resolve_dynamic_type): Change type of valaddr parameter.
10991 * gdbtypes.h (resolve_dynamic_type): Update.
10992 * valarith.c (value_subscripted_rvalue): Update.
10993 * value.c (value_from_contents_and_address): Update.
10994
61122aa9
TT
109952020-04-24 Tom Tromey <tromey@adacore.com>
10996
10997 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
10998 "push_initial_value" parameter.
10999 (dwarf2_evaluate_property): Likewise.
11000 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
11001
ef83a141
TT
110022020-04-24 Tom Tromey <tromey@adacore.com>
11003
11004 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
11005 (variant::matches, compute_variant_fields_recurse)
11006 (compute_variant_fields_inner, compute_variant_fields): New
11007 functions.
11008 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
11009 Use resolved_type after type is made.
11010 (operator==): Add new cases.
11011 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
11012 (struct discriminant_range, struct variant, struct variant_part):
11013 New.
11014 (union dynamic_prop_data) <variant_parts, original_type>: New
11015 members.
11016 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
11017 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
11018 constants.
11019 * value.c (unpack_bits_as_long): Now public.
11020 * value.h (unpack_bits_as_long): Declare.
11021
675127ec
TT
110222020-04-24 Tom Tromey <tromey@adacore.com>
11023
11024 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
11025 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
11026
9852ceef
HD
110272020-04-24 Hannes Domani <ssbssa@yahoo.de>
11028
11029 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
11030
7632c6ce
KR
110312020-04-24 Kamil Rytarowski <n54@gmx.com>
11032
11033 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
11034 (remove_fork_catchpoint, post_startup_inferior)
11035 (post_attach): Move...
11036 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
11037 (remove_fork_catchpoint, post_startup_inferior)
11038 (post_attach): ...here.
11039 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
11040 (remove_fork_catchpoint, post_startup_inferior)
11041 (post_attach): Move...
11042 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
11043 (remove_fork_catchpoint, post_startup_inferior)
11044 (post_attach): ...here.
11045
7be2bb4f
TT
110462020-04-24 Tom Tromey <tromey@adacore.com>
11047
11048 * nat/windows-nat.h (struct windows_thread_info)
11049 <pc_adjusted>: New member.
11050 * windows-nat.c (windows_fetch_one_register): Check
11051 pc_adjusted.
11052 (windows_nat_target::get_windows_debug_event)
11053 (windows_nat_target::wait): Set pc_adjusted.
11054
f80cb3b4
TV
110552020-04-24 Tom de Vries <tdevries@suse.de>
11056
11057 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
11058 Run gdb-add-index inside temp dir.
11059
29514b87
TT
110602020-04-23 Tom Tromey <tromey@adacore.com>
11061
11062 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
11063 in loop.
11064
5939967b
LM
110652020-04-23 Luis Machado <luis.machado@linaro.org>
11066
11067 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
11068 get_frame_register instead of gdbarch_unwind_pc.
11069
70bc38f5
TV
110702020-04-23 Tom de Vries <tdevries@suse.de>
11071
11072 * symtab.c (lookup_global_symbol): Prefer def over decl.
11073
de82891c
TV
110742020-04-23 Tom de Vries <tdevries@suse.de>
11075
11076 PR symtab/25807
11077 * block.c (best_symbol, better_symbol): Promote to external.
11078 * block.h (best_symbol, better_symbol): Declare.
11079 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
11080 decl.
11081
ecc6c606
TT
110822020-04-23 Tom Tromey <tromey@adacore.com>
11083
11084 PR ada/25837:
11085 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
11086 "const char *", not a "const std::string &".
11087 <name_and_matcher::operator==>: Update.
11088 * unittests/lookup_name_info-selftests.c: Change type of
11089 "result".
11090
740480b8
TT
110912020-04-23 Tom Tromey <tom@tromey.com>
11092
11093 * inferior.h (iterate_over_inferiors): Don't declare.
11094 * inferior.c (iterate_over_inferiors): Remove.
11095 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
11096 Remove.
11097 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
11098 use iterate_over_inferiors.
11099 (darwin_resume_inferior_it)
11100 (struct resume_inferior_threads_param)
11101 (darwin_resume_inferior_threads_it): Remove.
11102 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
11103
ae3ab1f0
TV
111042020-04-23 Tom de Vries <tdevries@suse.de>
11105
11106 * blockframe.c (find_pc_partial_function): Use
11107 find_pc_sect_compunit_symtab rather than
11108 objfile->sf->qf->find_pc_sect_compunit_symtab.
11109
317d2668
TV
111102020-04-22 Tom de Vries <tdevries@suse.de>
11111
11112 PR symtab/25764
11113 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
11114 in psymtabs.
11115
eea9e357
TV
111162020-04-22 Tom de Vries <tdevries@suse.de>
11117
11118 PR symtab/25801
11119 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
11120 symtabs.
11121
3d5afab3
TV
111222020-04-22 Tom de Vries <tdevries@suse.de>
11123
11124 PR symtab/25700
11125 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
11126 CU if already created.
11127
d43b7a2d
TBA
111282020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11129
11130 * infrun.c (displaced_step_fixup): Switch to the event_thread
11131 before calling displaced_step_restore, not after.
11132
d89edf9b
MM
111332020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11134
11135 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
11136 its inferior is not recorded by us.
11137 (record_btrace_target_open): Replace call to
11138 all_non_exited_threads () with call to current_inferior
11139 ()->non_exited_threads ().
11140 (record_btrace_target::stop_recording): Likewise.
11141 (record_btrace_target::close): Likewise.
11142 (record_btrace_target::wait): Likewise.
11143 (record_btrace_target::record_stop_replaying): Likewise.
11144
5897fd49
MM
111452020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11146
11147 * btrace.c (btrace_enable): Throw an error on double enables and
11148 when enabling recording fails.
11149 (btrace_disable): Throw an error if the thread is not recorded.
11150
1a476b6d
MM
111512020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11152
11153 * record-btrace.c (record_btrace_target::fetch_registers): Forward
11154 request if we do not have a thread_info.
11155
4778a5f8
TV
111562020-04-21 Tom de Vries <tdevries@suse.de>
11157
11158 PR gdb/25471
11159 * thread.c
11160 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
11161 exception in get_frame_id.
11162
0fa7617d
TT
111632020-04-20 Tom Tromey <tromey@adacore.com>
11164
11165 * python/python.c (struct gdbpy_event): Mark move constructor as
11166 noexcept.
11167 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
11168 constructor as noexcept.
11169 * completer.h (struct completion_result): Mark move constructor as
11170 noexcept.
11171 * completer.c (completion_result::completion_result): Use
11172 initialization style. Don't call reset_match_list.
11173
ad23bda0
MS
111742020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
11175
11176 * MAINTAINERS (Write After Approval): Add myself.
11177
45e1f031
TT
111782020-04-18 Tom Tromey <tom@tromey.com>
11179
11180 * windows-tdep.c (init_w32_command_list)
11181 (w32_prefix_command_valid): Restore.
11182 (_initialize_windows_tdep): Call init_w32_command_list.
11183
08feed99
TT
111842020-04-18 Tom Tromey <tom@tromey.com>
11185
11186 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
11187 * value.c (value_fn_field): Update.
11188 * valops.c (find_function_in_inferior)
11189 (value_allocate_space_in_inferior): Update.
11190 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11191 Update.
11192 * tui/tui-source.c (tui_source_window::set_contents): Update.
11193 * symtab.c (lookup_global_or_static_symbol)
11194 (find_function_start_sal_1, skip_prologue_sal)
11195 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
11196 * symmisc.c (dump_msymbols, dump_symtab_1)
11197 (maintenance_print_one_line_table): Update.
11198 * symfile.c (init_entry_point_info, section_is_mapped)
11199 (list_overlays_command, simple_read_overlay_table)
11200 (simple_overlay_update_1): Update.
11201 * stap-probe.c (handle_stap_probe): Update.
11202 * stabsread.c (dbx_init_float_type, define_symbol)
11203 (read_one_struct_field, read_enum_type, read_range_type): Update.
11204 * source.c (info_line_command): Update.
11205 * python/python.c (gdbpy_source_objfile_script)
11206 (gdbpy_execute_objfile_script): Update.
11207 * python/py-type.c (save_objfile_types): Update.
11208 * python/py-objfile.c (py_free_objfile): Update.
11209 * python/py-inferior.c (python_new_objfile): Update.
11210 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
11211 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
11212 (maintenance_check_psymtabs): Update.
11213 * printcmd.c (info_address_command): Update.
11214 * objfiles.h (struct objfile) <arch>: New method, from
11215 get_objfile_arch.
11216 (get_objfile_arch): Don't declare.
11217 * objfiles.c (get_objfile_arch): Remove.
11218 (filter_overlapping_sections): Update.
11219 * minsyms.c (msymbol_is_function): Update.
11220 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
11221 (output_nondebug_symbol): Update.
11222 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
11223 (mdebug_expand_psymtab): Update.
11224 * machoread.c (macho_add_oso_symfile): Update.
11225 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
11226 Update.
11227 * linux-fork.c (checkpoint_command): Update.
11228 * linespec.c (convert_linespec_to_sals): Update.
11229 * jit.c (finalize_symtab): Update.
11230 * infrun.c (insert_exception_resume_from_probe): Update.
11231 * ia64-tdep.c (ia64_find_unwind_table): Update.
11232 * hppa-tdep.c (internalize_unwinds): Update.
11233 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
11234 Update.
11235 * gcore.c (call_target_sbrk): Update.
11236 * elfread.c (record_minimal_symbol, elf_symtab_read)
11237 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
11238 (elf_gnu_ifunc_resolve_by_got): Update.
11239 * dwarf2/read.c (create_addrmap_from_index)
11240 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11241 (read_debug_names_from_section)
11242 (process_psymtab_comp_unit_reader, add_partial_symbol)
11243 (add_partial_subprogram, process_full_comp_unit)
11244 (read_file_scope, read_func_scope, read_lexical_block_scope)
11245 (read_call_site_scope, dwarf2_ranges_read)
11246 (dwarf2_record_block_ranges, dwarf2_add_field)
11247 (mark_common_block_symbol_computed, read_tag_pointer_type)
11248 (read_tag_string_type, dwarf2_init_float_type)
11249 (dwarf2_init_complex_target_type, read_base_type)
11250 (partial_die_info::read, partial_die_info::read)
11251 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
11252 (dwarf2_fetch_die_loc_sect_off): Update.
11253 * dwarf2/loc.c (dwarf2_find_location_expression)
11254 (class dwarf_evaluate_loc_desc, rw_pieced_value)
11255 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
11256 (dwarf2_loc_desc_get_symbol_read_needs)
11257 (locexpr_describe_location_piece, locexpr_describe_location_1)
11258 (loclist_describe_location): Update.
11259 * dwarf2/index-write.c (write_debug_names): Update.
11260 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
11261 * dtrace-probe.c (dtrace_process_dof): Update.
11262 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
11263 (process_one_symbol): Update.
11264 * ctfread.c (ctf_init_float_type, read_base_type): Update.
11265 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
11266 (coff_read_enum_type): Update.
11267 * cli/cli-cmds.c (edit_command, list_command): Update.
11268 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
11269 * breakpoint.c (create_overlay_event_breakpoint)
11270 (create_longjmp_master_breakpoint)
11271 (create_std_terminate_master_breakpoint)
11272 (create_exception_master_breakpoint, get_sal_arch): Update.
11273 * block.c (block_gdbarch): Update.
11274 * annotate.c (annotate_source_line): Update.
11275
0743fc83
TT
112762020-04-17 Tom Tromey <tromey@adacore.com>
11277
11278 * auto-load.c (show_auto_load_cmd): Remove.
11279 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
11280 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
11281 (maintenance_print_arc_command): Remove.
11282 * tui/tui-win.c (tui_command): Remove.
11283 (tui_get_cmd_list): Use add_basic_prefix_cmd.
11284 * tui/tui-layout.c (tui_layout_command): Remove.
11285 (_initialize_tui_layout): Use add_basic_prefix_cmd.
11286 * python/python.c (user_set_python, user_show_python): Remove.
11287 (_initialize_python): Use add_basic_prefix_cmd,
11288 add_show_prefix_cmd.
11289 * guile/guile.c (set_guile_command, show_guile_command): Remove.
11290 (install_gdb_commands): Use add_basic_prefix_cmd,
11291 add_show_prefix_cmd.
11292 (info_guile_command): Remove.
11293 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
11294 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
11295 add_show_prefix_cmd.
11296 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
11297 Remove do_set and do_show parameters.
11298 * cli/cli-style.c (set_style, show_style): Remove.
11299 (_initialize_cli_style): Use add_basic_prefix_cmd,
11300 add_show_prefix_cmd.
11301 (cli_style_option::add_setshow_commands): Remove do_set and
11302 do_show parameters.
11303 (cli_style_option::add_setshow_commands): Use
11304 add_basic_prefix_cmd, add_show_prefix_cmd.
11305 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
11306 (set_style_name): Remove.
11307 * cli/cli-dump.c (dump_command, append_command): Remove.
11308 (srec_dump_command, ihex_dump_command, verilog_dump_command)
11309 (tekhex_dump_command, binary_dump_command)
11310 (binary_append_command): Remove.
11311 (_initialize_cli_dump): Use add_basic_prefix_cmd.
11312 * windows-tdep.c (w32_prefix_command_valid): Remove global.
11313 (init_w32_command_list): Remove; move into ...
11314 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
11315 * valprint.c (set_print, show_print, set_print_raw)
11316 (show_print_raw): Remove.
11317 (_initialize_valprint): Use add_basic_prefix_cmd,
11318 add_show_prefix_cmd.
11319 * typeprint.c (set_print_type, show_print_type): Remove.
11320 (_initialize_typeprint): Use add_basic_prefix_cmd,
11321 add_show_prefix_cmd.
11322 * record.c (set_record_command, show_record_command): Remove.
11323 (_initialize_record): Use add_basic_prefix_cmd,
11324 add_show_prefix_cmd.
11325 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
11326 add_show_prefix_cmd.
11327 (info_command, show_command, set_debug, show_debug): Remove.
11328 * top.h (set_history, show_history): Don't declare.
11329 * top.c (set_history, show_history): Remove.
11330 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
11331 (unset_tdesc_cmd): Remove.
11332 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
11333 add_show_prefix_cmd.
11334 * symtab.c (info_module_command): Remove.
11335 (_initialize_symtab): Use add_basic_prefix_cmd.
11336 * symfile.c (overlay_command): Remove.
11337 (_initialize_symfile): Use add_basic_prefix_cmd.
11338 * sparc64-tdep.c (info_adi_command): Remove.
11339 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
11340 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
11341 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
11342 add_show_prefix_cmd.
11343 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
11344 (_initialize_serial): Use add_basic_prefix_cmd,
11345 add_show_prefix_cmd.
11346 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
11347 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
11348 add_show_prefix_cmd.
11349 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
11350 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
11351 add_show_prefix_cmd.
11352 * riscv-tdep.c (show_riscv_command, set_riscv_command)
11353 (show_debug_riscv_command, set_debug_riscv_command): Remove.
11354 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
11355 add_show_prefix_cmd.
11356 * remote.c (remote_command, set_remote_cmd): Remove.
11357 (_initialize_remote): Use add_basic_prefix_cmd.
11358 * record-full.c (set_record_full_command)
11359 (show_record_full_command): Remove.
11360 (_initialize_record_full): Use add_basic_prefix_cmd,
11361 add_show_prefix_cmd.
11362 * record-btrace.c (cmd_set_record_btrace)
11363 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
11364 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
11365 (cmd_show_record_btrace_pt): Remove.
11366 (_initialize_record_btrace): Use add_basic_prefix_cmd,
11367 add_show_prefix_cmd.
11368 * ravenscar-thread.c (set_ravenscar_command)
11369 (show_ravenscar_command): Remove.
11370 (_initialize_ravenscar): Use add_basic_prefix_cmd,
11371 add_show_prefix_cmd.
11372 * mips-tdep.c (show_mips_command, set_mips_command)
11373 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
11374 add_show_prefix_cmd.
11375 * maint.c (maintenance_command, maintenance_info_command)
11376 (maintenance_check_command, maintenance_print_command)
11377 (maintenance_set_cmd, maintenance_show_cmd): Remove.
11378 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
11379 add_show_prefix_cmd.
11380 (show_per_command_cmd): Remove.
11381 * maint-test-settings.c (maintenance_set_test_settings_cmd):
11382 Remove.
11383 (maintenance_show_test_settings_cmd): Remove.
11384 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
11385 add_show_prefix_cmd.
11386 * maint-test-options.c (maintenance_test_options_command):
11387 Remove.
11388 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
11389 * macrocmd.c (macro_command): Remove
11390 (_initialize_macrocmd): Use add_basic_prefix_cmd.
11391 * language.c (set_check, show_check): Remove.
11392 (_initialize_language): Use add_basic_prefix_cmd,
11393 add_show_prefix_cmd.
11394 * infcmd.c (unset_command): Remove.
11395 (_initialize_infcmd): Use add_basic_prefix_cmd.
11396 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
11397 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
11398 add_show_prefix_cmd.
11399 * go32-nat.c (go32_info_dos_command): Remove.
11400 (_initialize_go32_nat): Use add_basic_prefix_cmd.
11401 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
11402 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
11403 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
11404 (_initialize_frame): Use add_basic_prefix_cmd,
11405 add_show_prefix_cmd.
11406 * dcache.c (set_dcache_command, show_dcache_command): Remove.
11407 (_initialize_dcache): Use add_basic_prefix_cmd,
11408 add_show_prefix_cmd.
11409 * cp-support.c (maint_cplus_command): Remove.
11410 (_initialize_cp_support): Use add_basic_prefix_cmd.
11411 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
11412 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
11413 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
11414 add_basic_prefix_cmd, add_show_prefix_cmd.
11415 * breakpoint.c (save_command): Remove.
11416 (_initialize_breakpoint): Use add_basic_prefix_cmd.
11417 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
11418 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
11419 add_show_prefix_cmd.
11420 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
11421 (set_ada_command, show_ada_command): Remove.
11422 (_initialize_ada_language): Use add_basic_prefix_cmd,
11423 add_show_prefix_cmd.
11424 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
11425
3557f442
KR
114262020-04-16 Kamil Rytarowski <n54@gmx.com>
11427
11428 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
11429 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
11430
16197208
SM
114312020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11432
11433 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
11434 warning messages.
11435
00ac85d3
SM
114362020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11437
11438 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
11439 import table is not at beginning of .idata section.
11440
381ce63f
PA
114412020-04-16 Pedro Alves <palves@redhat.com>
11442
11443 * inferior.c (delete_inferior): Use delete operator directly
11444 instead of delete_program_space.
11445 * progspace.c (add_program_space): New, factored out from
11446 program_space::program_space.
11447 (remove_program_space): New, factored out from
11448 delete_program_space.
11449 (program_space::program_space): Remove intro comment. Rewrite.
11450 (program_space::~program_space): Remove intro comment. Call
11451 remove_program_space.
11452 (delete_program_space): Delete.
11453 * progspace.h (program_space::program_space): Make explicit. Move
11454 intro comment here, adjusted.
11455 (program_space::~program_space): Move intro comment here,
11456 adjusted.
11457 (delete_program_space): Remove.
11458
a010605f
TT
114592020-04-16 Tom Tromey <tromey@adacore.com>
11460
11461 * windows-nat.c (windows_nat::handle_access_violation): New
11462 function.
11463 * nat/windows-nat.h (handle_access_violation): Declare.
11464 * nat/windows-nat.c (handle_exception): Move Cygwin code to
11465 windows-nat.c. Call handle_access_violation.
11466
efba5c23
TV
114672020-04-16 Tom de Vries <tdevries@suse.de>
11468
11469 PR symtab/25791
11470 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
11471 CUs without psymtab.
11472
97ed802d
KB
114732020-04-16 Kevin Buettner <kevinb@redhat.com>
11474
11475 * python/python.c (do_start_initialization): Don't call
11476 PyEval_InitThreads for Python 3.9 and beyond.
11477
c7d64809
KR
114782020-04-15 Kamil Rytarowski <n54@gmx.com>
11479
11480 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
11481 thread functions.
11482 (obsd_nat_target::wait): Likewise.
11483
ce127a96
TT
114842020-04-15 Tom Tromey <tromey@adacore.com>
11485
11486 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
11487 (DEBUG_EXCEPT): Use debug_printf.
11488
99f1bc6a
AB
114892020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
11490
11491 * completer.c (class completion_tracker::completion_hash_entry)
11492 <hash_name>: New member function.
11493 (completion_tracker::discard_completions): New callback to hash a
11494 completion_hash_entry, pass this to htab_create_alloc.
11495
a0e9b532
JT
114962016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
11497
11498 * windows-nat.c (windows_make_so): Warn rather than stopping with
11499 an error if realpath() fails.
11500
06ca5dd4
KR
115012020-04-14 Kamil Rytarowski <n54@gmx.com>
11502
11503 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
11504 (nbsd_nat_target::info_proc): Add do_status.
11505
194d088f
TV
115062020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
11507 Tom de Vries <tdevries@suse.de>
11508
11509 PR symtab/25718
11510 * psympriv.h (struct partial_symtab::read_symtab)
11511 (struct partial_symtab::expand_psymtab)
11512 (struct partial_symtab::read_dependencies): Update comments.
11513 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
11514 read_symtab for includer.
11515 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
11516 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
11517 (struct dwarf2_include_psymtab::m_readin): Remove.
11518 (struct dwarf2_include_psymtab::includer): New member function.
11519 (dwarf2_psymtab::expand_psymtab): Assert !readin.
11520
c1a66c06
TV
115212020-04-14 Tom de Vries <tdevries@suse.de>
11522
11523 PR symtab/25720
11524 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
11525 with NULL symbol_matcher and lookup_name.
11526 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
11527 and lookup_name.
11528 * dwarf2/read.c (dw2_expand_symtabs_matching)
11529 (dw2_debug_names_expand_symtabs_matching): Same.
11530 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
11531 Make lookup_name a pointer. Update comment.
11532 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
11533 lookup_name being a pointer.
11534 * symfile.c (expand_symtabs_matching): Same.
11535 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
11536 * linespec.c (iterate_over_all_matching_symtabs): Same.
11537
400b5eca
TT
115382020-04-13 Tom Tromey <tom@tromey.com>
11539
11540 * run-on-main-thread.c: Update include.
11541 * unittests/main-thread-selftests.c: Update include.
11542 * tui/tui-win.c: Update include.
11543 * tui/tui-io.c: Update include.
11544 * tui/tui-interp.c: Update include.
11545 * tui/tui-hooks.c: Update include.
11546 * top.h: Update include.
11547 * top.c: Update include.
11548 * ser-base.c: Update include.
11549 * remote.c: Update include.
11550 * remote-notif.c: Update include.
11551 * remote-fileio.c: Update include.
11552 * record-full.c: Update include.
11553 * record-btrace.c: Update include.
11554 * python/python.c: Update include.
11555 * posix-hdep.c: Update include.
11556 * mingw-hdep.c: Update include.
11557 * mi/mi-main.c: Update include.
11558 * mi/mi-interp.c: Update include.
11559 * main.c: Update include.
11560 * linux-nat.c: Update include.
11561 * interps.c: Update include.
11562 * infrun.c: Update include.
11563 * inf-loop.c: Update include.
11564 * event-top.c: Update include.
11565 * event-loop.c: Move to ../gdbsupport/.
11566 * event-loop.h: Move to ../gdbsupport/.
11567 * async-event.h: Update include.
11568 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
11569
93b54c8e
TT
115702020-04-13 Tom Tromey <tom@tromey.com>
11571
11572 * tui/tui-win.c: Include async-event.h.
11573 * remote.c: Include async-event.h.
11574 * remote-notif.c: Include async-event.h.
11575 * record-full.c: Include async-event.h.
11576 * record-btrace.c: Include async-event.h.
11577 * infrun.c: Include async-event.h.
11578 * event-top.c: Include async-event.h.
11579 * event-loop.h: Move some declarations to async-event.h.
11580 * event-loop.c: Don't include ser-event.h or top.h. Move some
11581 code to async-event.c.
11582 * async-event.h: New file.
11583 * async-event.c: New file.
11584 * Makefile.in (COMMON_SFILES): Add async-event.c.
11585 (HFILES_NO_SRCDIR): Add async-event.h.
11586
c1cd3163
TT
115872020-04-13 Tom Tromey <tom@tromey.com>
11588
11589 * utils.c (flush_streams): New function.
11590 * event-loop.c (gdb_wait_for_event): Call flush_streams.
11591
29f2bf4f
TT
115922020-04-13 Tom Tromey <tom@tromey.com>
11593
11594 * event-loop.c (handle_file_event): Use warning, not
11595 printf_unfiltered.
11596
98029d02
TT
115972020-04-13 Tom Tromey <tom@tromey.com>
11598
11599 * event-loop.c: Include <chrono>.
11600
06cc9596
TT
116012020-04-13 Tom Tromey <tom@tromey.com>
11602
11603 * gdb_select.h: Move to ../gdbsupport/.
11604 * event-loop.c: Update include path.
11605 * top.c: Update include path.
11606 * ser-base.c: Update include path.
11607 * ui-file.c: Update include path.
11608 * ser-tcp.c: Update include path.
11609 * guile/scm-ports.c: Update include path.
11610 * posix-hdep.c: Update include path.
11611 * ser-unix.c: Update include path.
11612 * gdb_usleep.c: Update include path.
11613 * mingw-hdep.c: Update include path.
11614 * inflow.c: Update include path.
11615 * infrun.c: Update include path.
11616 * event-top.c: Update include path.
11617
8ae8e197
TT
116182020-04-13 Tom Tromey <tom@tromey.com>
11619
11620 * configure: Rebuild.
11621 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
11622
58cf28e8
TT
116232020-04-13 Tom Tromey <tom@tromey.com>
11624
11625 * event-loop.h (start_event_loop): Don't declare.
11626 * event-loop.c (start_event_loop): Move...
11627 * main.c (start_event_loop): ...here. Now static.
11628
b7f999ae
SDJ
116292020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
11630
11631 * MAINTAINERS: Update my email address.
11632
1085dfd4
KR
116332020-04-12 Kamil Rytarowski <n54@gmx.com>
11634
11635 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
11636 IP_ALL.
11637
49d1d1f5
KR
116382020-04-12 Kamil Rytarowski <n54@gmx.com>
11639
11640 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 11641 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 11642
b4848d2a
KR
116432020-04-12 Kamil Rytarowski <n54@gmx.com>
11644
11645 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 11646 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 11647
51c133d5
KR
116482020-04-12 Kamil Rytarowski <n54@gmx.com>
11649
11650 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
11651
54b8cbd0
KR
116522020-04-11 Kamil Rytarowski <n54@gmx.com>
11653
11654 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
11655 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
11656 (nbsd_nat_target::info_proc): New functions.
11657 * nbsd-nat.c (kinfo_get_vmmap): New function.
11658 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
11659 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
11660 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
11661 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
11662 functions.
11663 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
11664 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
11665 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
11666 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
11667 (KINFO_VME_FLAG_GROWS_DOWN): New.
11668
cf83625d
AS
116692020-04-10 Artur Shepilko <nomadbyte@gmail.com>
11670
11671 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
11672 bit shift.
11673
0c4311ab
TT
116742020-04-10 Tom Tromey <tromey@adacore.com>
11675
11676 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
11677
3e65b3e9
TT
116782020-04-10 Tom Tromey <tromey@adacore.com>
11679
11680 * symtab.c (get_symbol_address, get_msymbol_address): Skip
11681 separate debug files.
11682
13302e95
HD
116832020-04-10 Hannes Domani <ssbssa@yahoo.de>
11684
11685 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11686 Move to...
11687 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11688 ... here.
11689 * windows-nat.c (windows_nat_target::get_windows_debug_event):
11690 Check for STATUS_WX86_BREAKPOINT.
11691 (windows_nat_target::wait): Same.
11692
bdfc1e8a
TV
116932020-04-10 Tom de Vries <tdevries@suse.de>
11694
11695 PR cli/25808
11696 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
11697
f4460aec
SM
116982020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11699
11700 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
11701 (Write After Approval): Remove Tom de Vries.
11702
a25198bb
BE
117032020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
11704
11705 revert partially:
11706 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11707
aac66a4c
SM
11708 * buildsym.c (record_line): Fix undefined behavior and preserve
11709 lines at eof.
a25198bb 11710
206c98a6
KR
117112020-04-09 Kamil Rytarowski <n54@gmx.com>
11712
11713 * auxv.h (svr4_auxv_parse): New.
11714 * auxv.c (default_auxv_parse): Split into default_auxv_parse
11715 and generic_auxv_parse.
11716 (svr4_auxv_parse): Add.
11717 * obsd-tdep.c: Include "auxv.h".
11718 (obsd_auxv_parse): Remove.
11719 (obsd_init_abi): Remove comment.
11720 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
11721 from `obsd_auxv_parse' to `svr4_auxv_parse'.
11722 * nbsd-tdep.c: Include "auxv.h".
11723 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
11724
71fbdbaf
TT
117252020-04-08 Tom Tromey <tromey@adacore.com>
11726
11727 * nat/windows-nat.h (last_wait_event): Don't declare.
11728 (wait_for_debug_event): Update comment.
11729 * nat/windows-nat.c (last_wait_event): Now static.
11730
2c1d95e8
TT
117312020-04-08 Tom Tromey <tromey@adacore.com>
11732
11733 * windows-nat.c (wait_for_debug_event): Move to
11734 nat/windows-nat.c.
11735 * nat/windows-nat.h (wait_for_debug_event): Declare.
11736 * nat/windows-nat.c (wait_for_debug_event): Move from
11737 windows-nat.c. No longer static.
11738
d2977bc4
TT
117392020-04-08 Tom Tromey <tromey@adacore.com>
11740
11741 * windows-nat.c (get_windows_debug_event): Use
11742 fetch_pending_stop.
11743 * nat/windows-nat.h (fetch_pending_stop): Declare.
11744 * nat/windows-nat.c (fetch_pending_stop): New function.
11745
e758e19c
TT
117462020-04-08 Tom Tromey <tromey@adacore.com>
11747
11748 * windows-nat.c (windows_continue): Use matching_pending_stop and
11749 continue_last_debug_event.
11750 * nat/windows-nat.h (matching_pending_stop)
11751 (continue_last_debug_event): Declare.
11752 * nat/windows-nat.c (DEBUG_EVENTS): New define.
11753 (matching_pending_stop, continue_last_debug_event): New
11754 functions.
11755
8d30e395
TT
117562020-04-08 Tom Tromey <tromey@adacore.com>
11757
11758 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
11759 (handle_exception_result): Move to nat/windows-nat.h.
11760 (DEBUG_EXCEPTION_SIMPLE): Remove.
11761 (windows_nat::handle_ms_vc_exception): New function.
11762 (handle_exception): Move to nat/windows-nat.c.
11763 (get_windows_debug_event): Update.
11764 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
11765 nat/windows-nat.c.
11766 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
11767 (handle_exception_result): Move from windows-nat.c.
11768 (handle_exception): Declare.
11769 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
11770 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
11771 windows-nat.c.
11772
29de418d
TT
117732020-04-08 Tom Tromey <tromey@adacore.com>
11774
11775 * windows-nat.c (exception_count, event_count): Remove.
11776 (handle_exception, get_windows_debug_event)
11777 (do_initial_windows_stuff): Update.
11778
a816ba18
TT
117792020-04-08 Tom Tromey <tromey@adacore.com>
11780
11781 * windows-nat.c (windows_nat::handle_load_dll)
11782 (windows_nat::handle_unload_dll): Rename. No longer static.
11783 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
11784 Declare.
11785
a00caa12
TT
117862020-04-08 Tom Tromey <tromey@adacore.com>
11787
11788 * complaints.h (stop_whining): Declare at top-level.
11789 (complaint): Don't declare stop_whining.
11790
d41b524f
TT
117912020-04-08 Tom Tromey <tromey@adacore.com>
11792
11793 * windows-nat.c (windows_nat::handle_output_debug_string):
11794 Rename. No longer static.
11795 * nat/windows-nat.h (handle_output_debug_string): Declare.
11796
3c76026d
TT
117972020-04-08 Tom Tromey <tromey@adacore.com>
11798
11799 * windows-nat.c (current_process_handle, current_process_id)
11800 (main_thread_id, last_sig, current_event, last_wait_event)
11801 (current_windows_thread, desired_stop_thread_id, pending_stops)
11802 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
11803 (display_selectors, fake_create_process)
11804 (get_windows_debug_event): Update.
11805 * nat/windows-nat.h (current_process_handle, current_process_id)
11806 (main_thread_id, last_sig, current_event, last_wait_event)
11807 (current_windows_thread, desired_stop_thread_id, pending_stops)
11808 (struct pending_stop, siginfo_er): Move from windows-nat.c.
11809 * nat/windows-nat.c (current_process_handle, current_process_id)
11810 (main_thread_id, last_sig, current_event, last_wait_event)
11811 (current_windows_thread, desired_stop_thread_id, pending_stops)
11812 (siginfo_er): New globals. Move from windows-nat.c.
11813
9d8679cc
TT
118142020-04-08 Tom Tromey <tromey@adacore.com>
11815
11816 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
11817 (handle_load_dll): Update.
11818 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
11819
28688adf
TT
118202020-04-08 Tom Tromey <tromey@adacore.com>
11821
11822 * windows-nat.c (enum thread_disposition_type): Move to
11823 nat/windows-nat.h.
11824 (windows_nat::thread_rec): Rename from thread_rec. No longer
11825 static.
11826 (windows_add_thread, windows_nat_target::fetch_registers)
11827 (windows_nat_target::store_registers, handle_exception)
11828 (windows_nat_target::resume, get_windows_debug_event)
11829 (windows_nat_target::get_tib_address)
11830 (windows_nat_target::thread_name)
11831 (windows_nat_target::thread_alive): Update.
11832 * nat/windows-nat.h (enum thread_disposition_type): Move from
11833 windows-nat.c.
11834 (thread_rec): Declare.
11835
4834dad0
TT
118362020-04-08 Tom Tromey <tromey@adacore.com>
11837
11838 * windows-nat.c: Add "using namespace".
11839 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
11840 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
11841
65bafd5b
TT
118422020-04-08 Tom Tromey <tromey@adacore.com>
11843
11844 * nat/windows-nat.h (struct windows_thread_info): Declare
11845 destructor.
11846 * nat/windows-nat.c (~windows_thread_info): New.
11847
0a4afda3
TT
118482020-04-08 Tom Tromey <tromey@adacore.com>
11849
11850 PR gdb/22992
11851 * windows-nat.c (current_event): Update comment.
11852 (last_wait_event, desired_stop_thread_id): New globals.
11853 (struct pending_stop): New.
11854 (pending_stops): New global.
11855 (windows_nat_target) <stopped_by_sw_breakpoint>
11856 <supports_stopped_by_sw_breakpoint>: New methods.
11857 (windows_fetch_one_register): Add assertions. Adjust PC.
11858 (windows_continue): Handle pending stops. Suspend other threads
11859 when stepping. Use last_wait_event
11860 (wait_for_debug_event): New function.
11861 (get_windows_debug_event): Use wait_for_debug_event. Handle
11862 pending stops. Queue spurious stops.
11863 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
11864 (windows_nat_target::kill): Use wait_for_debug_event.
11865 * nat/windows-nat.h (struct windows_thread_info)
11866 <stopped_at_software_breakpoint>: New field.
11867 * nat/windows-nat.c (windows_thread_info::resume): Clear
11868 stopped_at_software_breakpoint.
11869
8e61ebec
TT
118702020-04-08 Tom Tromey <tromey@adacore.com>
11871
11872 * windows-nat.c (enum thread_disposition_type): New.
11873 (thread_rec): Replace "get_context" parameter with "disposition";
11874 change type.
11875 (windows_add_thread, windows_nat_target::fetch_registers)
11876 (windows_nat_target::store_registers, handle_exception)
11877 (windows_nat_target::resume, get_windows_debug_event)
11878 (windows_nat_target::get_tib_address)
11879 (windows_nat_target::thread_name)
11880 (windows_nat_target::thread_alive): Update.
11881
98a03287
TT
118822020-04-08 Tom Tromey <tromey@adacore.com>
11883
11884 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
11885 (windows_continue): Use windows_continue::resume.
11886 * nat/windows-nat.h (struct windows_thread_info) <suspend,
11887 resume>: Declare new methods.
11888 * nat/windows-nat.c: New file.
11889 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
11890
7c7411bc
TT
118912020-04-08 Tom Tromey <tromey@adacore.com>
11892
11893 * windows-nat.c (windows_add_thread, windows_delete_thread)
11894 (windows_nat_target::fetch_registers)
11895 (windows_nat_target::store_registers, fake_create_process)
11896 (windows_nat_target::resume, windows_nat_target::resume)
11897 (get_windows_debug_event, windows_nat_target::wait)
11898 (windows_nat_target::pid_to_str)
11899 (windows_nat_target::get_tib_address)
11900 (windows_nat_target::get_ada_task_ptid)
11901 (windows_nat_target::thread_name)
11902 (windows_nat_target::thread_alive): Use lwp, not tid.
11903
2950fdf7
TT
119042020-04-08 Tom Tromey <tromey@adacore.com>
11905
11906 * windows-nat.c (handle_exception)
11907 (windows_nat_target::thread_name): Update.
11908 * nat/windows-nat.h (windows_thread_info): Remove destructor.
11909 <name>: Now unique_xmalloc_ptr.
11910
62fe396b
TT
119112020-04-08 Tom Tromey <tromey@adacore.com>
11912
11913 * windows-nat.c (thread_rec)
11914 (windows_nat_target::fetch_registers): Update.
11915 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
11916 Update comment.
11917 <debug_registers_changed, reload_context>: Now bool.
11918
e9534bd2
TT
119192020-04-08 Tom Tromey <tromey@adacore.com>
11920
11921 * windows-nat.c (windows_add_thread): Use new.
11922 (windows_init_thread_list, windows_delete_thread): Use delete.
11923 (get_windows_debug_event): Update.
11924 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
11925 destructor, and initializers.
11926
ae1f8880
TT
119272020-04-08 Tom Tromey <tromey@adacore.com>
11928
11929 * windows-nat.c (struct windows_thread_info): Remove.
11930 * nat/windows-nat.h: New file.
11931
55a1e039
TT
119322020-04-08 Tom Tromey <tromey@adacore.com>
11933
11934 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
11935 (thread_rec, windows_add_thread, windows_delete_thread)
11936 (windows_continue): Update.
11937
93366324
TT
119382020-04-08 Tom Tromey <tromey@adacore.com>
11939
11940 * windows-nat.c (struct windows_thread_info): Remove typedef.
11941 (thread_head): Remove.
11942 (thread_list): New global.
11943 (thread_rec, windows_add_thread, windows_init_thread_list)
11944 (windows_delete_thread, windows_continue): Update.
11945
0f2265e2
SM
119462020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11947
11948 * windows-tdep.h (windows_init_abi): Add comment.
11949 (cygwin_init_abi): New declaration.
11950 * windows-tdep.c: Split signal enumeration in two, one for
11951 Windows and one for Cygwin.
11952 (windows_gdb_signal_to_target): Only deal with signal of the
11953 Windows OS ABI.
11954 (cygwin_gdb_signal_to_target): New function.
11955 (windows_init_abi): Rename to windows_init_abi_common, don't set
11956 gdb_signal_to_target gdbarch method. Add new new function with
11957 this name.
11958 (cygwin_init_abi): New function.
11959 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
11960 comment. Don't call windows_init_abi.
11961 (amd64_windows_init_abi): Add comment, call windows_init_abi.
11962 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
11963 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
11964 i386_windows_init_abi_common, don't call windows_init_abi. Add
11965 a new function of this name.
11966 (i386_cygwin_init_abi): New function.
11967 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
11968 OS ABI Cygwin.
11969
3810f182
SM
119702020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11971
11972 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
11973 parameter.c.
11974 (dwarf2_read_gdb_index): Update.
11975
063f8e80
KR
119762020-04-07 Kamil Rytarowski <n54@gmx.com>
11977
11978 * nbsd-tdep.c: Include "objfiles.h".
11979 (nbsd_skip_solib_resolver): New.
11980 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
11981
85a9510c 119822020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11983
11984 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
11985 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
11986 with DW_LLE_base_addressx are being emitted in DWARFv5.
11987 Add the newly added kind DW_LOC_OFFSET_PAIR also.
11988 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
11989 unsigned integer.
11990
9fc3eaae 119912020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11992
11993 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
11994 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
11995 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
11996 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
11997 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
11998 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
11999 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
12000
12001
41144253 120022020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12003
12004 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
12005 (read_loclist_index): New function definition.
12006 (lookup_loclist_base): New function definition.
12007 (read_loclist_header): New function definition.
12008 (dwarf2_cu): Add loclist_base and loclist_header field.
12009 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
12010 (read_full_die_1): Read the value of DW_AT_loclists_base.
12011 (read_attribute_reprocess): Handle DW_FORM_loclistx.
12012 (read_attribute_value): Handle DW_FORM_loclistx.
12013 (skip_one_die): Handle DW_FORM_loclistx.
12014 (loclist_header): New structure declaration.
12015 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
12016
9f4e76a4
SM
120172020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12018
12019 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
12020 constructor. Remove `addr` parameter from other constructor and
12021 add `per_cu` parameter.
12022 * dwarf2/read.c (create_partial_symtab): Update.
12023
25c11aca
TV
120242020-04-07 Tom de Vries <tdevries@suse.de>
12025
12026 PR symtab/25796
12027 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
12028 (partial_die_info::fixup): Inherit has_const_value.
12029
5707e24b
TV
120302020-04-07 Tom de Vries <tdevries@suse.de>
12031
12032 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
12033 symbols without address.
12034
05f00e22
KR
120352020-04-06 Kamil Rytarowski <n54@gmx.com>
12036
12037 * nbsd-nat.h (struct thread_info): Add forward declaration.
12038 (nbsd_nat_target::thread_alive): Add.
12039 (nbsd_nat_target::thread_name): Likewise.
12040 (nbsd_nat_target::update_thread_list): Likewise.
12041 (update_thread_list::post_attach): Likewise.
12042 (post_attach::pid_to_str): Likewise.
12043 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
12044 (nbsd_thread_lister): Add.
12045 (nbsd_nat_target::thread_alive): Likewise.
12046 (nbsd_nat_target::thread_name): Likewise.
12047 (nbsd_add_threads): Likewise.
12048 (update_thread_list::post_attach): Likewise.
12049 (nbsd_nat_target::update_thread_list): Likewise.
12050 (post_attach::pid_to_str): Likewise.
12051
6ee448cc
TT
120522020-04-06 Tom Tromey <tromey@adacore.com>
12053
12054 * ada-valprint.c (print_variant_part): Extract the variant field.
12055 (print_field_values): Use the field as the outer value when
12056 recursing.
12057
dea34e8c
TT
120582020-04-06 Tom Tromey <tromey@adacore.com>
12059
12060 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
12061 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
12062 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
12063 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
12064 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
12065
93689ce9
TT
120662020-04-06 Tom Tromey <tromey@adacore.com>
12067
12068 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
12069 TYPE_CODE_ERROR.
12070
79743962
KR
120712020-04-06 Kamil Rytarowski <n54@gmx.com>
12072
12073 * nbsd-tdep.c: Include "gdbarch.h".
12074 Define enum with NetBSD signal numbers.
12075 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
12076 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
12077 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
12078 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
12079 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
12080 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
12081 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
12082 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12083 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
12084 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
12085 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
12086 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
12087
9e7c9a03
HD
120882020-04-03 Hannes Domani <ssbssa@yahoo.de>
12089
12090 PR gdb/25325
12091 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
12092
d9e49b61
TT
120932020-04-03 Tom Tromey <tromey@adacore.com>
12094
12095 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
12096 Read constant block.
12097
e0fc5c3f
SM
120982020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12099
12100 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
12101 (gdb_bfd_get_full_section_contents): New declaration.
12102 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
12103 * windows-tdep.c (is_linked_with_cygwin_dll): Use
12104 gdb_bfd_get_full_section_contents.
12105
e2ff18a0
SM
121062020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12107
12108 * exec.c (build_section_table): Replace internal_error with
12109 gdb_assert.
12110 (section_table_xfer_memory_partial): Likewise.
12111 * mdebugread.c (parse_partial_symbols): Likewise.
12112 * psymtab.c (lookup_partial_symbol): Likewise.
12113 * utils.c (wrap_here): Likewise.
12114
0830d301
TT
121152020-04-02 Tom Tromey <tromey@adacore.com>
12116
12117 * f-lang.c (build_fortran_types): Use arch_type to initialize
12118 builtin_complex_s32 in the TYPE_CODE_ERROR case.
12119
e7da7f8f
TT
121202020-04-02 Tom Tromey <tromey@adacore.com>
12121
12122 * dwarf2/read.c (partial_die_info::read): Do not create a vector
12123 of attributes.
12124
c90d28ac
AB
121252020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
12126 Bernd Edlinger <bernd.edlinger@hotmail.de>
12127 Tom Tromey <tromey@adacore.com>
12128
12129 * buildsym.c (buildsym_compunit::record_line): Remove
12130 deduplication code.
12131
1aa98955
TV
121322020-04-02 Tom de Vries <tdevries@suse.de>
12133
12134 PR ada/24671
12135 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
12136
d3214198
TV
121372020-04-02 Tom de Vries <tdevries@suse.de>
12138
12139 * dwarf2/read.c (dwarf2_gdb_index_functions,
12140 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
12141 NULL.
12142 * psymtab.c (psym_lookup_global_symbol_language): New function.
12143 (psym_functions): Init psym_lookup_global_symbol_language with
12144 psym_lookup_global_symbol_language.
12145 * symfile-debug.c (debug_sym_quick_functions): Init
12146 lookup_global_symbol_language with NULL.
12147 * symfile.c (set_initial_language): Remove fixme comment.
12148 * symfile.h (struct quick_symbol_functions): Add
12149 lookup_global_symbol_language.
12150 * symtab.c (find_quick_global_symbol_language): New function.
12151 (find_main_name): Use find_quick_global_symbol_language.
12152
2836752f
SM
121532020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
12154
12155 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
12156
64dc2d4b
BE
121572020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12158
12159 * buildsym.c (record_line): Fix undefined behavior and preserve
12160 lines at eof.
12161
bbe3dc41
BE
121622020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12163
12164 * buildsym.c (record_line): Fix the resizing condition.
12165
6b4a335b
TT
121662020-04-01 Tom Tromey <tom@tromey.com>
12167
12168 * value.h (value_literal_complex): Add comment.
12169 * valops.c (value_literal_complex): Refer to value.h.
12170
3638a098
TT
121712020-04-01 Tom Tromey <tom@tromey.com>
12172
12173 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
12174 (scalar_type): New rule, from typebase.
12175 (typebase): Use scalar_type. Recognize complex types.
12176 (field_name): Handle FLOAT_KEYWORD.
12177 (ident_tokens): Add _Complex and __complex__.
12178
c34e8714
TT
121792020-04-01 Tom Tromey <tom@tromey.com>
12180
12181 PR exp/25299:
12182 * valarith.c (promotion_type, complex_binop): New functions.
12183 (scalar_binop): Handle complex numbers. Use promotion_type.
12184 (value_pos, value_neg, value_complement): Handle complex numbers.
12185
fa649bb7
TT
121862020-04-01 Tom Tromey <tom@tromey.com>
12187
12188 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
12189 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
12190 (parse_number): Handle complex numbers.
12191
981c08ce
TT
121922020-04-01 Tom Tromey <tom@tromey.com>
12193
12194 * c-valprint.c (c_decorations): Change complex suffix to "i".
12195
4c99290d
TT
121962020-04-01 Tom Tromey <tom@tromey.com>
12197
12198 * valprint.c (generic_value_print_complex): Use accessors.
12199 * value.h (value_real_part, value_imaginary_part): Declare.
12200 * valops.c (value_real_part, value_imaginary_part): New
12201 functions.
12202 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
12203
5b930b45
TT
122042020-04-01 Tom Tromey <tom@tromey.com>
12205
12206 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
12207 (read_range_type): Update.
12208 * mdebugread.c (basic_type): Update.
12209 * go-lang.c (build_go_types): Use init_complex_type.
12210 * gdbtypes.h (struct main_type) <complex_type>: New member.
12211 (init_complex_type): Update.
12212 (arch_complex_type): Don't declare.
12213 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
12214 Make name if none given. Use alloc_type_copy. Look for cached
12215 complex type.
12216 (arch_complex_type): Remove.
12217 (gdbtypes_post_init): Use init_complex_type.
12218 * f-lang.c (build_fortran_types): Use init_complex_type.
12219 * dwarf2/read.c (read_base_type): Update.
12220 * d-lang.c (build_d_types): Use init_complex_type.
12221 * ctfread.c (read_base_type): Update.
12222
53cccef1
TBA
122232020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12224
12225 * infrun.c (stop_all_threads): Update assertion, plus when
12226 stopping threads, take into account that we might be trying
12227 to stop an all-stop target.
12228 (stop_waiting): Call 'stop_all_threads' if there exists a
12229 non-stop target.
12230
a0714d30
TBA
122312020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12232
12233 * target.h (exists_non_stop_target): New function declaration.
12234 * target.c (exists_non_stop_target): New function.
12235
60e22c1e
HD
122362020-04-01 Hannes Domani <ssbssa@yahoo.de>
12237
12238 PR gdb/24789
12239 * eval.c (is_integral_or_integral_reference): New function.
12240 (evaluate_subexp_standard): Allow integer references in
12241 pointer arithmetic.
12242
e139a727
TBA
122432020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12244
12245 * remote.c (remote_target::remote_parse_stop_reply): Remove the
12246 check for no ptid in the stop reply when the target is non-stop.
12247
e0802d59
TT
122482020-04-01 Tom Tromey <tromey@adacore.com>
12249
12250 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
12251 "name" parameter to rvalue reference. Initialize m_name_holder.
12252 <lookup_name_info>: New overloads.
12253 <name>: Return gdb::string_view.
12254 <c_str>: New method.
12255 <make_ignore_params>: Update.
12256 <search_name_hash>: Update.
12257 <language_lookup_name>: Return const char *.
12258 <m_name>: Change type.
12259 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
12260 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
12261 (lookup_name_info::match_any): Update.
12262 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
12263 Update.
12264 * minsyms.c (linkage_name_str): Update.
12265 * language.c (default_symbol_name_matcher): Update.
12266 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
12267 Update.
12268 * ada-lang.c (ada_fold_name): Change parameter to string_view.
12269 (ada_lookup_name_info::ada_lookup_name_info): Update.
12270 (literal_symbol_name_matcher): Update.
12271
8c072cb6
TT
122722020-04-01 Tom Tromey <tromey@adacore.com>
12273
12274 * psymtab.c (psymtab_search_name): Remove function.
12275 (psym_lookup_symbol): Create search name and lookup name here.
12276 (lookup_partial_symbol): Remove "name" parameter; add
12277 lookup_name.
12278 (psym_expand_symtabs_for_function): Update.
12279
6f29a534
TT
122802020-03-31 Joel Jones <joelkevinjones@gmail.com>
12281
12282 PR tui/25597:
12283 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
12284
af62665e
TT
122852020-03-31 Tom Tromey <tromey@adacore.com>
12286
12287 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
12288 memcpy.
12289
d1a89da5
NC
122902020-03-30 Nelson Chu <nelson.chu@sifive.com>
12291
12292 * features/riscv/32bit-csr.xml: Regenerated.
12293 * features/riscv/64bit-csr.xml: Regenerated.
12294
d8af9068
TT
122952020-03-30 Tom Tromey <tromey@adacore.com>
12296
12297 * ada-valprint.c (print_variant_part): Update.
12298 * ada-lang.h (ada_which_variant_applies): Update.
12299 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
12300 outer_valaddr parameters; replace with "outer" value parameter.
12301 (to_fixed_variant_branch_type): Update.
12302
227c0bf4
PFC
123032020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12304
12305 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
12306 <list>. Remove inclusion of observable.h.
12307 (PPC_DEBUG_CURRENT_VERSION): Move up define.
12308 (struct arch_lwp_info): New struct.
12309 (class ppc_linux_dreg_interface): New class.
12310 (struct ppc_linux_process_info): New struct.
12311 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
12312 <low_new_clone, low_forget_process, low_prepare_to_resume>
12313 <copy_thread_dreg_state, mark_thread_stale>
12314 <mark_debug_registers_changed, register_hw_breakpoint>
12315 <clear_hw_breakpoint, register_wp, clear_wp>
12316 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
12317 <num_memory_accesses, get_trigger_type>
12318 <create_watchpoint_request, hwdebug_point_cmp>
12319 <init_arch_lwp_info, get_arch_lwp_info>
12320 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
12321 methods.
12322 <struct ptid_hash>: New inner struct.
12323 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
12324 members.
12325 (saved_dabr_value, hwdebug_info, max_slots_number)
12326 (struct hw_break_tuple, struct thread_points, ppc_threads)
12327 (have_ptrace_hwdebug_interface)
12328 (hwdebug_find_thread_points_by_tid)
12329 (hwdebug_insert_point, hwdebug_remove_point): Remove.
12330 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
12331 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
12332 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
12333 use m_dreg_interface.
12334 (hwdebug_point_cmp): Change to...
12335 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
12336 reference arguments instead of pointers.
12337 (ppc_linux_nat_target::ranged_break_num_registers): Use
12338 m_dreg_interface.
12339 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
12340 m_dreg_interface. Call register_hw_breakpoint.
12341 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
12342 m_dreg_interface. Call clear_hw_breakpoint.
12343 (get_trigger_type): Change to...
12344 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
12345 comment.
12346 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
12347 use m_dreg_interface. Call register_hw_breakpoint.
12348 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
12349 use m_dreg_interface. Call clear_hw_breakpoint.
12350 (can_use_watchpoint_cond_accel): Change to...
12351 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
12352 method. Update comment, use m_dreg_interface and
12353 m_process_info.
12354 (calculate_dvc): Change to...
12355 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
12356 m_dreg_interface.
12357 (num_memory_accesses): Change to...
12358 (ppc_linux_nat_target::num_memory_accesses): ...this method.
12359 (check_condition): Change to...
12360 (ppc_linux_nat_target::check_condition): ...this method.
12361 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
12362 comment, use m_dreg_interface.
12363 (create_watchpoint_request): Change to...
12364 (ppc_linux_nat_target::create_watchpoint_request): ...this
12365 method. Use m_dreg_interface.
12366 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
12367 m_dreg_interface. Call register_hw_breakpoint or register_wp.
12368 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
12369 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
12370 (ppc_linux_nat_target::low_forget_process)
12371 (ppc_linux_nat_target::low_new_fork)
12372 (ppc_linux_nat_target::low_new_clone)
12373 (ppc_linux_nat_target::low_delete_thread)
12374 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
12375 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
12376 only call mark_thread_stale.
12377 (ppc_linux_thread_exit): Remove.
12378 (ppc_linux_nat_target::stopped_data_address): Change to...
12379 (ppc_linux_nat_target::low_stopped_data_address): This. Add
12380 comment, use m_dreg_interface and m_thread_hw_breakpoints.
12381 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
12382 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
12383 comment. Call low_stopped_data_address.
12384 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
12385 m_dreg_interface.
12386 (ppc_linux_nat_target::masked_watch_num_registers): Use
12387 m_dreg_interface.
12388 (ppc_linux_nat_target::copy_thread_dreg_state)
12389 (ppc_linux_nat_target::mark_thread_stale)
12390 (ppc_linux_nat_target::mark_debug_registers_changed)
12391 (ppc_linux_nat_target::register_hw_breakpoint)
12392 (ppc_linux_nat_target::clear_hw_breakpoint)
12393 (ppc_linux_nat_target::register_wp)
12394 (ppc_linux_nat_target::clear_wp)
12395 (ppc_linux_nat_target::init_arch_lwp_info)
12396 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
12397 (_initialize_ppc_linux_nat): Remove observer callback.
12398
4db10d8f
PFC
123992020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12400
12401 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
12402 (ppc_linux_nat_target::auxv_parse)
12403 (ppc_linux_nat_target::read_description)
12404 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
12405 Move up.
12406
1310c1b0
PFC
124072020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12408
12409 * linux-nat.h (low_new_clone): New method.
12410 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
12411
69b037c3
SM
124122020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12413
12414 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
12415 (dbx_expand_psymtab): ... this.
12416 (start_psymtab): Update.
12417 * mdebugread.c (psymtab_to_symtab_1): Rename to...
12418 (mdebug_expand_psymtab): ... this.
12419 (parse_partial_symbols): Update.
12420 (new_psymtab): Update.
12421 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
12422 (xcoff_expand_psymtab): ... this.
12423 (xcoff_start_psymtab): Update.
12424
48993951
SM
124252020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12426
12427 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
12428 <expand_dependencies>: ... this.
12429 * psymtab.c (partial_symtab::read_dependencies): Rename to...
12430 (partial_symtab::expand_dependencies): ... this.
12431 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
12432 Update.
12433 (dwarf2_psymtab::expand_psymtab): Update.
12434 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12435 * mdebugread.c (psymtab_to_symtab_1): Update.
12436 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12437
3ad83046
SM
124382020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12439
12440 * psympriv.h (discard_psymtab): Remove.
12441 * dbxread.c (dbx_end_psymtab): Update.
12442 * xcoffread.c (xcoff_end_psymtab): Update.
12443
4d1b9ab6
TT
124442020-03-28 Tom Tromey <tom@tromey.com>
12445
12446 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
12447 comment.
12448
f1749218
TT
124492020-03-28 Tom Tromey <tom@tromey.com>
12450
12451 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
12452
ebea7626
HD
124532020-03-27 Hannes Domani <ssbssa@yahoo.de>
12454
12455 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12456
a879b4d5
JB
124572020-03-26 John Baldwin <jhb@FreeBSD.org>
12458
12459 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
12460
0826b30a
TT
124612020-03-26 Tom Tromey <tom@tromey.com>
12462
12463 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
12464 (mark_common_block_symbol_computed, read_tag_string_type)
12465 (attr_to_dynamic_prop, read_subrange_type): Update.
12466 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
12467 to be methods on struct attribute.
12468 (skip_one_die, process_imported_unit_die, read_namespace_alias)
12469 (read_call_site_scope, partial_die_info::read)
12470 (partial_die_info::read, lookup_die_type, follow_die_ref):
12471 Update.
12472 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
12473 from dwarf2_get_ref_die_offset.
12474 (attribute::constant_value): New method, from
12475 dwarf2_get_attr_constant_value.
12476 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
12477 Declare method.
12478 <constant_value>: New method.
12479
2b2558bf
TT
124802020-03-26 Tom Tromey <tom@tromey.com>
12481
12482 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
12483 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
12484 (dwarf_type_encoding_name): Move to stringify.c.
12485 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
12486 * dwarf2/stringify.c: New file.
12487 * dwarf2/stringify.h: New file.
12488
eeb64781
TT
124892020-03-26 Tom Tromey <tom@tromey.com>
12490
12491 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
12492 Rewrite.
12493
a39fdb41
TT
124942020-03-26 Tom Tromey <tom@tromey.com>
12495
12496 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
12497 methods.
12498 * dwarf2/read.c (lookup_addr_base): Move to die.h.
12499 (lookup_ranges_base): Likewise.
12500 (read_cutu_die_from_dwo, read_full_die_1): Update.
12501
436c571c
TT
125022020-03-26 Tom Tromey <tom@tromey.com>
12503
12504 * dwarf2/read.c (read_import_statement, read_file_scope)
12505 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
12506 (read_lexical_block_scope, read_call_site_scope)
12507 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
12508 (handle_struct_member_die, process_structure_scope)
12509 (update_enumeration_type_from_children)
12510 (process_enumeration_scope, read_array_type, read_common_block)
12511 (read_namespace, read_module, read_subroutine_type): Update.
12512 (sibling_die): Remove.
12513
052c8bb8
TT
125142020-03-26 Tom Tromey <tom@tromey.com>
12515
12516 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
12517 (build_type_psymtabs_reader, read_structure_type)
12518 (read_enumeration_type, read_full_die_1): Update.
12519 (dwarf2_attr_no_follow): Move to die.h.
12520 * dwarf2/die.h (struct die_info) <attr>: New method.
12521
2b24b6e4
TT
125222020-03-26 Tom Tromey <tom@tromey.com>
12523
12524 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
12525 <base_address>: Now an optional.
12526 (dwarf2_find_base_address, dwarf2_rnglists_process)
12527 (dwarf2_ranges_process, fill_in_loclist_baton)
12528 (dwarf2_symbol_mark_computed): Update.
12529
c2d50fd0
TT
125302020-03-26 Tom Tromey <tom@tromey.com>
12531
12532 * dwarf2/read.c (struct die_info): Move to die.h.
12533 * dwarf2/die.h: New file.
12534
0df7ad3a
TT
125352020-03-26 Tom Tromey <tom@tromey.com>
12536
12537 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
12538 * dwarf2/read.c
12539 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12540 Move to line-header.c.
12541 (read_checked_initial_length_and_offset, read_formatted_entries):
12542 Likewise.
12543 (dwarf_decode_line_header): Split into two.
12544 * dwarf2/line-header.c
12545 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12546 Move from read.c.
12547 (read_checked_initial_length_and_offset, read_formatted_entries):
12548 Likewise.
12549 (dwarf_decode_line_header): New function, split from read.c.
12550
86c0bb4c
TT
125512020-03-26 Tom Tromey <tom@tromey.com>
12552
12553 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
12554 Declare method.
12555 * dwarf2/read.c (read_attribute_value): Update.
12556 (dwarf2_per_objfile::read_line_string): Rename from
12557 read_indirect_line_string.
12558 (read_formatted_entries): Update.
12559
2ef46c2f
TT
125602020-03-26 Tom Tromey <tom@tromey.com>
12561
12562 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
12563 variable.
12564
4f9c1eda
TT
125652020-03-26 Tom Tromey <tom@tromey.com>
12566
12567 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
12568 const.
12569 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
12570 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
12571 parameter const.
12572
5a0e026f
TT
125732020-03-26 Tom Tromey <tom@tromey.com>
12574
12575 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
12576 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
12577 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
12578 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
12579
8844c11b
TT
125802020-03-26 Tom Tromey <tom@tromey.com>
12581
12582 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
12583 file_names_size, file_full_name, file_file_name>: Use const.
12584 <file_name_at, file_names>: Add const overload.
12585 * dwarf2/line-header.c (line_header::file_file_name)
12586 (line_header::file_full_name): Update.
12587
c90ec28a
TT
125882020-03-26 Tom Tromey <tom@tromey.com>
12589
12590 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
12591 (macro_start_file, consume_improper_spaces)
12592 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
12593 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
12594 (dwarf_decode_macros): Move to macro.c.
12595 * dwarf2/macro.c: New file.
12596 * dwarf2/macro.h: New file.
12597 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
12598
4f44ae6c
TT
125992020-03-26 Tom Tromey <tom@tromey.com>
12600
12601 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
12602 method.
12603 * dwarf2/section.c: New method. From
12604 read_indirect_string_at_offset_from.
12605 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
12606 (read_indirect_string_at_offset_from): Move to section.c.
12607 (read_indirect_string_at_offset): Rewrite.
12608 (read_indirect_line_string_at_offset): Remove.
12609 (read_indirect_string, read_indirect_line_string)
12610 (dwarf_decode_macro_bytes): Update.
12611
a0194fa8
TT
126122020-03-26 Tom Tromey <tom@tromey.com>
12613
12614 * dwarf2/section.h (struct dwarf2_section_info)
12615 <overload_complaint>: Declare.
12616 (dwarf2_section_buffer_overflow_complaint): Don't declare.
12617 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
12618 Rename from dwarf2_section_buffer_overflow_complaint.
12619 * dwarf2/read.c (skip_one_die, partial_die_info::read)
12620 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
12621
3d27bbdb
TT
126222020-03-26 Tom Tromey <tom@tromey.com>
12623
12624 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
12625 Declare.
12626 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
12627 Move from read.c.
12628 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
12629 to section.c.
12630
9eac9650
TT
126312020-03-26 Tom Tromey <tom@tromey.com>
12632
12633 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
12634
bf80d710
TT
126352020-03-26 Tom Tromey <tom@tromey.com>
12636
12637 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
12638 "builder".
12639 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
12640 parameter.
12641 (dwarf_decode_macros): Update.
12642
0314b390
TT
126432020-03-26 Tom Tromey <tom@tromey.com>
12644
12645 * dwarf2/read.c (read_attribute_value): Update.
12646 (read_indirect_string_from_dwz): Move to dwz.c; change into
12647 method.
12648 (dwarf_decode_macro_bytes): Update.
12649 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
12650 * dwarf2/dwz.c: New file.
12651 * Makefile.in (COMMON_SFILES): Add dwz.c.
12652
9fda78b6
TT
126532020-03-26 Tom Tromey <tom@tromey.com>
12654
12655 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
12656 * dwarf2/read.c: Add include.
12657 * dwarf2/index-write.c: Add include.
12658 * dwarf2/index-cache.c: Add include.
12659 * dwarf2/dwz.h: New file.
12660
33aa3c10
TT
126612020-03-25 Tom Tromey <tom@tromey.com>
12662
12663 * compile/compile-object-load.c (get_out_value_type): Mention
12664 correct symbol name in error message.
12665
d503b685
HD
126662020-03-25 Hannes Domani <ssbssa@yahoo.de>
12667
12668 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12669
7b1eff95
TV
126702020-03-25 Tom de Vries <tdevries@suse.de>
12671
12672 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
12673 * symmisc.c (dump_symtab_1): Print user and includes fields.
12674 (maintenance_info_symtabs): Same.
12675
dd895392
AB
126762020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
12677
12678 PR gdb/25534
12679 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
12680 (riscv_regcache_cooked_write): New function.
12681 (riscv_push_dummy_call): Use new function.
12682 (riscv_return_value): Likewise.
12683
5ab2fbf1
SM
126842020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
12685
12686 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
12687 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
12688 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
12689 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
12690 * infrun.c (follow_fork): Likewise.
12691 (follow_fork_inferior): Likewise.
12692 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
12693 * linux-nat.h (class linux_nat_target): Likewise.
12694 * remote.c (class remote_target) <follow_fork>: Likewise.
12695 (remote_target::follow_fork): Likewise.
12696 * target-delegates.c: Re-generate.
12697 * target.c (default_follow_fork): Likewise.
12698 (target_follow_fork): Likewise.
12699 * target.h (struct target_ops) <follow_fork>: Likewise.
12700 (target_follow_fork): Likewise.
12701
a64fafb5
TV
127022020-03-24 Tom de Vries <tdevries@suse.de>
12703
12704 * psymtab.c (maintenance_info_psymtabs): Print user field.
12705
fe26d3a3
TT
127062020-03-20 Tom Tromey <tromey@adacore.com>
12707
12708 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
12709 const.
12710 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
12711 const.
12712
c884cc46
SM
127132020-03-20 Simon Marchi <simon.marchi@efficios.com>
12714
12715 * ptrace.m4: Don't check for ptrace declaration.
12716 * config.in: Re-generate.
12717 * configure: Re-generate.
12718 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
12719 not defined.
12720
1ff700c2
KR
127212020-03-20 Kamil Rytarowski <n54@gmx.com>
12722
12723 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
12724 `PTRACE_TYPE_RET'.
12725 * i386-bsd-nat.c (gdb_ptrace): Likewise.
12726 * sparc-nat.c (gdb_ptrace): Likewise.
12727 * x86-bsd-nat.c (gdb_ptrace): Likewise.
12728
f7d4f0b1
TT
127292020-03-20 Tom Tromey <tromey@adacore.com>
12730
12731 * c-exp.y (lex_one_token): Fix assert.
12732
f67210ff
TT
127332020-03-20 Tom Tromey <tromey@adacore.com>
12734
12735 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
12736 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
12737 strncpy call.
12738
1773be9e
TT
127392020-03-20 Tom Tromey <tromey@adacore.com>
12740
12741 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
12742
70304be9
TT
127432020-03-20 Tom Tromey <tromey@adacore.com>
12744
12745 * ada-valprint.c (print_variant_part): Remove parameters; switch
12746 to value-based API.
12747 (print_field_values): Likewise.
12748 (ada_val_print_struct_union): Likewise.
12749 (ada_value_print_1): Update.
12750
9faa006d
KR
127512020-03-20 Kamil Rytarowski <n54@gmx.com>
12752
12753 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
12754 nbsd_nat_target instead of inf_ptrace_target.
12755 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12756 nbsd_nat_target.
12757
4a90f062
KR
127582020-03-20 Kamil Rytarowski <n54@gmx.com>
12759
12760 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
12761 it to the ptrace call.
12762 * (store_registers): Likewise.
12763
127642020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
12765
12766 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
12767 it to the ptrace call.
12768 * (store_registers): Likewise.
12769
2d07da27
LM
127702020-03-19 Luis Machado <luis.machado@linaro.org>
12771
12772 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
12773 valid, fetch vg value from ptrace.
12774
f09db380
KR
127752020-03-19 Kamil Rytarowski <n54@gmx.com>
12776 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
12777 * inf-ptrace.c: Likewise.
12778 * (gdb_ptrace): Add.
12779 * (inf_ptrace_target::resume): Update.
12780 * (inf_ptrace_target::xfer_partial): Likewise.
12781 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
12782 * (inf_ptrace_peek_poke): Update.
12783
fcc7376e
KR
127842020-03-19 Kamil Rytarowski <n54@gmx.com>
12785
12786 * x86-bsd-nat.c (gdb_ptrace): New.
12787 * (x86bsd_dr_set): Add new argument `ptid'.
12788 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
12789 x86bsd_dr_set_addr): Update.
12790
cada5fc9
AB
127912020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12792
12793 * remote.c (remote_target::process_stop_reply): Handle events for
12794 all threads differently.
12795
19a2740f
AB
127962020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12797
12798 * completer.c (completion_tracker::remove_completion): Define new
12799 function.
12800 * completer.h (completion_tracker::remove_completion): Declare new
12801 function.
12802 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
12803 when adding a C++ function symbol.
12804
724fd9ba
AB
128052020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12806
12807 * completer.c (completion_tracker::completion_hash_entry): Define
12808 new class.
12809 (advance_to_filename_complete_word_point): Call
12810 recompute_lowest_common_denominator.
12811 (completion_tracker::completion_tracker): Call discard_completions
12812 to setup the hash table.
12813 (completion_tracker::discard_completions): Allow for being called
12814 from the constructor, pass new equal function, and element deleter
12815 when constructing the hash table. Initialise new class member
12816 variables.
12817 (completion_tracker::maybe_add_completion): Remove use of
12818 m_entries_vec, and store more information into m_entries_hash.
12819 (completion_tracker::recompute_lcd_visitor): New function, most
12820 content taken from...
12821 (completion_tracker::recompute_lowest_common_denominator):
12822 ...here, this now just visits each item in the hash calling the
12823 above visitor.
12824 (completion_tracker::build_completion_result): Remove use of
12825 m_entries_vec, call recompute_lowest_common_denominator.
12826 * completer.h (completion_tracker::have_completions): Remove use
12827 of m_entries_vec.
12828 (completion_tracker::completion_hash_entry): Declare new class.
12829 (completion_tracker::recompute_lowest_common_denominator): Change
12830 function signature.
12831 (completion_tracker::recompute_lcd_visitor): Declare new function.
12832 (completion_tracker::m_entries_vec): Delete.
12833 (completion_tracker::m_entries_hash): Initialize to NULL.
12834 (completion_tracker::m_lowest_common_denominator_valid): New
12835 member variable.
12836 (completion_tracker::m_lowest_common_denominator_max_length): New
12837 member variable.
12838
5a82b8a1
KR
128392020-03-17 Kamil Rytarowski <n54@gmx.com>
12840
12841 * regformats/regdef.h: Put reg in gdb namespace.
12842
fb516a69
KR
128432020-03-17 Kamil Rytarowski <n54@gmx.com>
12844
12845 * i386-bsd-nat.c (gdb_ptrace): New.
12846 * (i386bsd_fetch_inferior_registers,
12847 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12848 * (i386bsd_fetch_inferior_registers,
12849 i386bsd_store_inferior_registers) Use gdb_ptrace.
12850
1c0aa1fb
KR
128512020-03-17 Kamil Rytarowski <n54@gmx.com>
12852
12853 * amd64-bsd-nat.c (gdb_ptrace): New.
12854 * (amd64bsd_fetch_inferior_registers,
12855 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12856 * (amd64bsd_fetch_inferior_registers,
12857 amd64bsd_store_inferior_registers) Use gdb_ptrace.
12858
5ccd2fb7
KR
128592020-03-17 Kamil Rytarowski <n54@gmx.com>
12860
12861 * user-regs.c (user_reg::read): Rename to...
12862 (user_reg::xread): ...this.
12863 * (append_user_reg): Rename argument `read' to `xread'.
12864 * (user_reg_add_builtin): Likewise.
12865 * (user_reg_add): Likewise.
12866 * (value_of_user_reg): Likewise.
12867
2108a63a
KR
128682020-03-17 Kamil Rytarowski <n54@gmx.com>
12869
12870 * sparc-nat.c (gdb_ptrace): New.
12871 * sparc-nat.c (sparc_fetch_inferior_registers)
12872 (sparc_store_inferior_registers) Remove obsolete comment.
12873 * sparc-nat.c (sparc_fetch_inferior_registers)
12874 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
12875 * sparc-nat.c (sparc_fetch_inferior_registers)
12876 (sparc_store_inferior_registers) Use gdb_ptrace.
12877
a225c9a8
KR
128782020-03-17 Kamil Rytarowski <n54@gmx.com>
12879
12880 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
12881 it to the ptrace call.
12882 * sh-nbsd-nat.c (store_registers): Likewise.
12883
98097623
KR
128842020-03-17 Kamil Rytarowski <n54@gmx.com>
12885
12886 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
12887 nbsd_nat_target instead of inf_ptrace_target.
12888 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12889 nbsd_nat_target.
12890
9e38d619
KR
128912020-03-17 Kamil Rytarowski <n54@gmx.com>
12892
12893 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
12894
a2ecbe9f
KR
128952020-03-17 Kamil Rytarowski <n54@gmx.com>
12896
12897 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
12898 <sys/sysctl.h>.
12899 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
12900
58990295
TV
129012020-03-17 Tom de Vries <tdevries@suse.de>
12902
12903 PR gdb/23710
12904 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
12905 fields.
12906 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
12907 fields.
12908 (process_imported_unit_die): Skip import of c++ CUs.
12909
771dd3a8
TT
129102020-03-16 Tom Tromey <tom@tromey.com>
12911
12912 * p-valprint.c (pascal_object_print_value): Initialize
12913 base_value.
12914
817a7585
AK
129152020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
12916 Shahab Vahedi <shahab@synopsys.com>
12917
12918 * Makefile.in: Add arch/arc.o
12919 * configure.tgt: Likewise.
12920 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
12921 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 12922 (arc_read_description): New function to cache target descriptions.
817a7585
AK
12923 * arc-tdep.h (arc_read_description): Add proto type.
12924 * arch/arc.c: New file.
12925 * arch/arc.h: Likewise.
12926 * features/Makefile: Replace old target descriptions with new.
12927 * features/arc-arcompact.c: Remove.
12928 * features/arc-arcompact.xml: Likewise.
12929 * features/arc-v2.c: Likewise
12930 * features/arc-v2.xml: Likewise
12931 * features/arc/aux-arcompact.xml: New file.
12932 * features/arc/aux-v2.xml: Likewise.
12933 * features/arc/core-arcompact.xml: Likewise.
12934 * features/arc/core-v2.xml: Likewise.
12935 * features/arc/aux-arcompact.c: Generate.
12936 * features/arc/aux-v2.c: Likewise.
12937 * features/arc/core-arcompact.c: Likewise.
12938 * features/arc/core-v2.c: Likewise.
12939 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
12940
67430cd0
TT
129412020-03-16 Tom Tromey <tromey@adacore.com>
12942
12943 PR gdb/25663:
12944 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
12945 putting value into bcache.
12946
30efb6c7
SM
129472020-03-16 Simon Marchi <simon.marchi@efficios.com>
12948
12949 PR gdb/21500
12950 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
12951 to...
12952 (amd64_windows_init_abi_common): ... this. Don't set size of
12953 long type.
12954 (amd64_windows_init_abi): New function.
12955 (amd64_cygwin_init_abi): New function.
12956 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
12957 the Cygwin OS ABI.
12958 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
12959 comment.
12960
8db52437
SM
129612020-03-16 Simon Marchi <simon.marchi@efficios.com>
12962
12963 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
12964 * windows-tdep.c (CYGWIN_DLL_NAME): New.
12965 (pe_import_directory_entry): New struct type.
12966 (is_linked_with_cygwin_dll): New function.
12967 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
12968 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
12969 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
12970
5982a56a
SM
129712020-03-16 Simon Marchi <simon.marchi@efficios.com>
12972
12973 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
12974 i386_cygwin_core_osabi_sniffer.
12975
7a1998df
SM
129762020-03-16 Simon Marchi <simon.marchi@efficios.com>
12977
12978 * i386-cygwin-tdep.c: Rename to...
12979 * i386-windows-tdep.c: ... this.
12980 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
12981 i386-windows-tdep.c.
12982 * configure.tgt: Likewise.
12983
053205cc
SM
129842020-03-16 Simon Marchi <simon.marchi@efficios.com>
12985
12986 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
12987 * osabi.c (gdb_osabi_names): Add "Windows".
12988 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
12989 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
12990 (i386_cygwin_core_osabi_sniffer): New function, extracted from
12991 i386_cygwin_osabi_sniffer.
12992 (_initialize_i386_cygwin_tdep): Register OS ABI
12993 GDB_OSABI_WINDOWS for i386.
12994 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
12995 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
12996 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
12997 for x86-64.
12998 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
12999 when the target matches '*-*-mingw*'.
13000
fe4b2ee6
SM
130012020-03-16 Simon Marchi <simon.marchi@efficios.com>
13002
13003 * defs.h (enum gdb_osabi): Move to...
13004 * osabi.h (enum gdb_osabi): ... here.
13005 * gdbarch.sh: Include osabi.h in gdbarch.h.
13006 * gdbarch.h: Re-generate.
13007
cb9b645d
SM
130082020-03-16 Simon Marchi <simon.marchi@efficios.com>
13009
13010 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
13011 function.
13012 (_initialize_amd64_windows_tdep): Register osabi sniffer.
13013
3293bbaf
TT
130142020-03-14 Tom Tromey <tom@tromey.com>
13015
13016 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
13017 for C++.
13018 (c_type_print_modifier): Likewise. Add "language" parameter.
13019 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
13020 (c_type_print_base_1): Update.
13021 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
13022 constants.
13023 * type-stack.c (type_stack::insert): Handle tp_atomic and
13024 tp_restrict.
13025 (type_stack::follow_type_instance_flags): Likewise.
13026 (type_stack::follow_types): Likewise. Merge type-following code.
13027 * c-exp.y (RESTRICT, ATOMIC): New tokens.
13028 (space_identifier, cv_with_space_id)
13029 (const_or_volatile_or_space_identifier_noopt)
13030 (const_or_volatile_or_space_identifier): Remove.
13031 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
13032 rules.
13033 (ptr_operator, typebase): Update.
13034 (enum token_flag) <FLAG_C>: New constant.
13035 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
13036 "_Atomic".
13037 (lex_one_token): Handle FLAG_C.
13038
154151a6
KR
130392020-03-14 Kamil Rytarowski <n54@gmx.com>
13040
13041 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
13042 it to the ptrace call.
13043 * m68k-bsd-nat.c (store_registers): Likewise.
13044
bc107784
KR
130452020-03-14 Kamil Rytarowski <n54@gmx.com>
13046
13047 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
13048 gdb_byte *.
13049 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
13050 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
13051 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
13052
01a80117
KR
130532020-03-14 Kamil Rytarowski <n54@gmx.com>
13054
13055 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
13056 nbsd_nat_target instead of inf_ptrace_target.
13057 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13058 nbsd_nat_target.
13059
f90280ca
KR
130602020-03-14 Kamil Rytarowski <n54@gmx.com>
13061
13062 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
13063 register_t.
13064
6def66f1
KR
130652020-03-14 Kamil Rytarowski <n54@gmx.com>
13066
13067 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
13068 it to the ptrace call.
13069 * alpha-bsd-nat.c (store_registers): Likewise.
13070
66eaca97
KR
130712020-03-14 Kamil Rytarowski <n54@gmx.com>
13072
13073 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
13074 includes.
13075 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
13076 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
13077 fill_fpregset): Likewise.
13078
4fed520b
KR
130792020-03-14 Kamil Rytarowski <n54@gmx.com>
13080
13081 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
13082 nbsd_nat_target instead of inf_ptrace_target.
13083 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13084 nbsd_nat_target.
13085
2190cf06
KR
130862020-03-14 Kamil Rytarowski <n54@gmx.com>
13087
13088 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
13089 register_t.
13090
75c56d3d
KR
130912020-03-14 Kamil Rytarowski <n54@gmx.com>
13092
13093 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
13094 it to the ptrace call.
13095 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
13096 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
13097 * arm-nbsd-nat.c (store_register): Likewise.
13098 * arm-nbsd-nat.c (store_regs): Likewise.
13099 * arm-nbsd-nat.c (store_fp_register): Likewise.
13100 * arm-nbsd-nat.c (store_fp_regs): Likewise.
13101
6018d381
KR
131022020-03-14 Kamil Rytarowski <n54@gmx.com>
13103
13104 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
13105 nbsd_nat_target instead of inf_ptrace_target.
13106 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13107 nbsd_nat_target.
13108
013f99f0
KR
131092020-03-14 Kamil Rytarowski <n54@gmx.com>
13110
13111 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
13112 it to the ptrace call.
13113 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
13114
12753073
KR
131152020-03-14 Kamil Rytarowski <n54@gmx.com>
13116
6227b330
KR
13117 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
13118 it to the ptrace call.
13119 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
13120
131212020-03-14 Kamil Rytarowski <n54@gmx.com>
13122
13123 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
13124 gdb_byte *.
12753073
KR
13125 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
13126
d5be5fa4
KR
131272020-03-14 Kamil Rytarowski <n54@gmx.com>
13128
13129 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
13130 instead of inf_ptrace_target.
13131 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13132 nbsd_nat_target.
13133
8110f842
KR
131342020-03-14 Kamil Rytarowski <n54@gmx.com>
13135
13136 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13137 register_t.
13138
52feded7
KR
131392020-03-14 Kamil Rytarowski <n54@gmx.com>
13140
13141 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13142 register_t.
13143
25567eee
KR
131442020-03-14 Kamil Rytarowski <n54@gmx.com>
13145
13146 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
13147 register_t.
13148
426a9c18
TT
131492020-03-13 Tom Tromey <tom@tromey.com>
13150
13151 * value.h (val_print): Don't declare.
13152 * valprint.h (val_print_array_elements)
13153 (val_print_scalar_formatted, generic_val_print): Don't declare.
13154 * valprint.c (generic_val_print_array): Take a struct value.
13155 (generic_val_print_ptr, generic_val_print_memberptr)
13156 (generic_val_print_bool, generic_val_print_int)
13157 (generic_val_print_char, generic_val_print_complex)
13158 (generic_val_print): Remove.
13159 (generic_value_print): Update.
13160 (do_val_print): Remove unused parameters. Don't call
13161 la_val_print.
13162 (val_print): Remove.
13163 (common_val_print): Update. Don't call value_check_printable.
13164 (val_print_scalar_formatted, val_print_array_elements): Remove.
13165 * rust-lang.c (rust_val_print): Remove.
13166 (rust_language_defn): Update.
13167 * p-valprint.c (pascal_val_print): Remove.
13168 (pascal_value_print_inner): Update.
13169 (pascal_object_print_val_fields, pascal_object_print_val):
13170 Remove.
13171 (pascal_object_print_static_field): Update.
13172 * p-lang.h (pascal_val_print): Don't declare.
13173 * p-lang.c (pascal_language_defn): Update.
13174 * opencl-lang.c (opencl_language_defn): Update.
13175 * objc-lang.c (objc_language_defn): Update.
13176 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
13177 * m2-lang.h (m2_val_print): Don't declare.
13178 * m2-lang.c (m2_language_defn): Update.
13179 * language.h (struct language_defn) <la_val_print>: Remove.
13180 * language.c (unk_lang_value_print_inner): Rename. Change
13181 argument types.
13182 (unknown_language_defn, auto_language_defn): Update.
13183 * go-valprint.c (go_val_print): Remove.
13184 * go-lang.h (go_val_print): Don't declare.
13185 * go-lang.c (go_language_defn): Update.
13186 * f-valprint.c (f_val_print): Remove.
13187 * f-lang.h (f_value_print): Don't declare.
13188 * f-lang.c (f_language_defn): Update.
13189 * d-valprint.c (d_val_print): Remove.
13190 * d-lang.h (d_value_print): Don't declare.
13191 * d-lang.c (d_language_defn): Update.
13192 * cp-valprint.c (cp_print_value_fields)
13193 (cp_print_value_fields_rtti, cp_print_value): Remove.
13194 (cp_print_static_field): Update.
13195 * c-valprint.c (c_val_print_array, c_val_print_ptr)
13196 (c_val_print_struct, c_val_print_union, c_val_print_int)
13197 (c_val_print_memberptr, c_val_print): Remove.
13198 * c-lang.h (c_val_print_array, cp_print_value_fields)
13199 (cp_print_value_fields_rtti): Don't declare.
13200 * c-lang.c (c_language_defn, cplus_language_defn)
13201 (asm_language_defn, minimal_language_defn): Update.
13202 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
13203 (ada_val_print_enum): Take a struct value.
13204 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
13205 (ada_val_print): Remove.
13206 (ada_value_print_1): Update.
13207 (printable_val_type): Remove.
13208 * ada-lang.h (ada_val_print): Don't declare.
13209 * ada-lang.c (ada_language_defn): Update.
13210
42331a1e
TT
132112020-03-13 Tom Tromey <tom@tromey.com>
13212
13213 * valprint.c (do_val_print): Update.
13214 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
13215 a struct value.
13216 (value_to_value_object_no_release): Declare.
13217 * python/py-value.c (value_to_value_object_no_release): New
13218 function.
13219 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
13220 struct value.
13221 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
13222 function.
13223 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
13224 a struct value.
13225 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
13226 Declare.
13227 (gdbscm_apply_val_pretty_printer): Take a struct value.
13228 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
13229 value.
13230 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
13231 value.
13232 * extension-priv.h (struct extension_language_ops)
13233 <apply_val_pretty_printer>: Take a struct value.
13234 * cp-valprint.c (cp_print_value): Create a struct value.
13235 (cp_print_value): Update.
13236
3a916a97
TT
132372020-03-13 Tom Tromey <tom@tromey.com>
13238
13239 * ada-valprint.c (print_field_values): Call common_val_print.
13240
b59eac37
TT
132412020-03-13 Tom Tromey <tom@tromey.com>
13242
13243 * ada-valprint.c (val_print_packed_array_elements): Remove
13244 bitoffset and val parameters. Call common_val_print.
13245 (ada_val_print_string): Remove offset, address, and original_value
13246 parameters.
13247 (ada_val_print_array): Update.
13248 (ada_value_print_array): New function.
13249 (ada_value_print_1): Call it.
13250
03371129
TT
132512020-03-13 Tom Tromey <tom@tromey.com>
13252
13253 * ada-valprint.c (ada_value_print): Use common_val_print.
13254
2e088f8b
TT
132552020-03-13 Tom Tromey <tom@tromey.com>
13256
13257 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
13258
39ef85a8
TT
132592020-03-13 Tom Tromey <tom@tromey.com>
13260
13261 * ada-valprint.c (ada_value_print_num): New function.
13262 (ada_value_print_1): Use it.
13263
b9fa6e07
TT
132642020-03-13 Tom Tromey <tom@tromey.com>
13265
13266 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
13267
416595d6
TT
132682020-03-13 Tom Tromey <tom@tromey.com>
13269
13270 * ada-valprint.c (ada_value_print_ptr): New function.
13271 (ada_value_print_1): Use it.
13272
5b5e15ec
TT
132732020-03-13 Tom Tromey <tom@tromey.com>
13274
13275 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
13276 call common_val_print.
13277 (ada_val_print_1): Update.
13278 (ada_value_print_1): New function.
13279 (ada_value_print_inner): Rewrite.
13280
fbf54e75
TT
132812020-03-13 Tom Tromey <tom@tromey.com>
13282
13283 * cp-valprint.c (cp_print_value_fields): Update.
13284 (cp_print_value): New function.
13285
64b653ca
TT
132862020-03-13 Tom Tromey <tom@tromey.com>
13287
13288 * m2-valprint.c (m2_value_print_inner): Use
13289 cp_print_value_fields.
13290 * cp-valprint.c (cp_print_value_fields): New function.
13291 * c-valprint.c (c_value_print_struct): New function.
13292 (c_value_print_inner): Use c_value_print_struct.
13293 * c-lang.h (cp_print_value_fields): Declare.
13294
6999f067
TT
132952020-03-13 Tom Tromey <tom@tromey.com>
13296
13297 * c-valprint.c (c_value_print_array): New function.
13298 (c_value_print_inner): Use it.
13299
ce80b8bd
TT
133002020-03-13 Tom Tromey <tom@tromey.com>
13301
13302 * c-valprint.c (c_value_print_memberptr): New function.
13303 (c_value_print_inner): Use it.
13304
2faac269
TT
133052020-03-13 Tom Tromey <tom@tromey.com>
13306
13307 * c-valprint.c (c_value_print_int): New function.
13308 (c_value_print_inner): Use it.
13309
da3e2c29
TT
133102020-03-13 Tom Tromey <tom@tromey.com>
13311
13312 * c-valprint.c (c_value_print_ptr): New function.
13313 (c_value_print_inner): Use it.
13314
50836231
TT
133152020-03-13 Tom Tromey <tom@tromey.com>
13316
13317 * c-valprint.c (c_value_print_inner): Rewrite.
13318
4f412b6e
TT
133192020-03-13 Tom Tromey <tom@tromey.com>
13320
13321 * valprint.c (generic_value_print_complex): New function.
13322 (generic_value_print): Use it.
13323
f5354008
TT
133242020-03-13 Tom Tromey <tom@tromey.com>
13325
13326 * valprint.c (generic_val_print_float): Don't call
13327 val_print_scalar_formatted.
13328 (generic_val_print, generic_value_print): Update.
13329
3eec3b05
TT
133302020-03-13 Tom Tromey <tom@tromey.com>
13331
13332 * valprint.c (generic_value_print_char): New function
13333 (generic_value_print): Use it.
13334
fdddfccb
TT
133352020-03-13 Tom Tromey <tom@tromey.com>
13336
13337 * valprint.c (generic_value_print_int): New function.
13338 (generic_value_print): Use it.
13339
6dde7521
TT
133402020-03-13 Tom Tromey <tom@tromey.com>
13341
13342 * valprint.c (generic_value_print_bool): New function.
13343 (generic_value_print): Use it.
13344
4112d2e6
TT
133452020-03-13 Tom Tromey <tom@tromey.com>
13346
13347 * valprint.c (generic_val_print_func): Simplify.
13348 (generic_val_print, generic_value_print): Update.
13349
65786af6
TT
133502020-03-13 Tom Tromey <tom@tromey.com>
13351
13352 * valprint.c (generic_val_print_flags): Remove.
13353 (generic_val_print, generic_value_print): Update.
13354 (val_print_type_code_flags): Add original_value parameter.
13355
40f3ce18
TT
133562020-03-13 Tom Tromey <tom@tromey.com>
13357
13358 * valprint.c (generic_val_print): Update.
13359 (generic_value_print): Update.
13360 * valprint.c (generic_val_print_enum): Don't call
13361 val_print_scalar_formatted.
13362
2a5b130b
TT
133632020-03-13 Tom Tromey <tom@tromey.com>
13364
13365 * valprint.c (generic_value_print): Call generic_value_print_ptr.
13366 * valprint.c (generic_value_print_ptr): New function.
13367
abc66ce9
TT
133682020-03-13 Tom Tromey <tom@tromey.com>
13369
13370 * valprint.c (generic_value_print): Rewrite.
13371
07a32858
TT
133722020-03-13 Tom Tromey <tom@tromey.com>
13373
13374 * p-valprint.c (pascal_object_print_value_fields)
13375 (pascal_object_print_value): New functions.
13376
64d64d3a
TT
133772020-03-13 Tom Tromey <tom@tromey.com>
13378
13379 * p-valprint.c (pascal_value_print_inner): Rewrite.
13380
6a95a1f5
TT
133812020-03-13 Tom Tromey <tom@tromey.com>
13382
13383 * f-valprint.c (f_value_print_innner): Rewrite.
13384
59fcdac6
TT
133852020-03-13 Tom Tromey <tom@tromey.com>
13386
13387 * m2-valprint.c (m2_print_unbounded_array): New overload.
13388 (m2_print_unbounded_array): Update.
13389 (m2_print_array_contents): Take a struct value.
13390 (m2_value_print_inner): Rewrite.
13391
d133c3e1
TT
133922020-03-13 Tom Tromey <tom@tromey.com>
13393
13394 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
13395 (d_value_print_inner): New function.
13396 * d-lang.h (d_value_print_inner): Declare.
13397 * d-lang.c (d_language_defn): Use d_value_print_inner.
13398
23b0f06b
TT
133992020-03-13 Tom Tromey <tom@tromey.com>
13400
13401 * go-valprint.c (go_value_print_inner): New function.
13402 * go-lang.h (go_value_print_inner): Declare.
13403 * go-lang.c (go_language_defn): Use go_value_print_inner.
13404
5f56f7cb
TT
134052020-03-13 Tom Tromey <tom@tromey.com>
13406
13407 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
13408 API.
13409 (rust_val_print): Rewrite.
13410 (rust_value_print_inner): New function, from rust_val_print.
13411 (rust_language_defn): Use rust_value_print_inner.
13412
26792ee0
TT
134132020-03-13 Tom Tromey <tom@tromey.com>
13414
13415 * ada-valprint.c (ada_value_print_inner): New function.
13416 * ada-lang.h (ada_value_print_inner): Declare.
13417 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
13418
24051bbe
TT
134192020-03-13 Tom Tromey <tom@tromey.com>
13420
13421 * f-valprint.c (f_value_print_innner): New function.
13422 * f-lang.h (f_value_print_innner): Declare.
13423 * f-lang.c (f_language_defn): Use f_value_print_innner.
13424
c0941be6
TT
134252020-03-13 Tom Tromey <tom@tromey.com>
13426
13427 * p-valprint.c (pascal_value_print_inner): New function.
13428 * p-lang.h (pascal_value_print_inner): Declare.
13429 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
13430
62c4663d
TT
134312020-03-13 Tom Tromey <tom@tromey.com>
13432
13433 * m2-valprint.c (m2_value_print_inner): New function.
13434 * m2-lang.h (m2_value_print_inner): Declare.
13435 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
13436
62182190
TT
134372020-03-13 Tom Tromey <tom@tromey.com>
13438
13439 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
13440 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
13441 * c-valprint.c (c_value_print_inner): New function.
13442 * c-lang.h (c_value_print_inner): Declare.
13443 * c-lang.c (c_language_defn, cplus_language_defn)
13444 (asm_language_defn, minimal_language_defn): Use
13445 c_value_print_inner.
13446
1e592a8a
TT
134472020-03-13 Tom Tromey <tom@tromey.com>
13448
13449 * p-valprint.c (pascal_object_print_value_fields): Now static.
13450 * p-lang.h (pascal_object_print_value_fields): Don't declare.
13451
7fe471e9
TT
134522020-03-13 Tom Tromey <tom@tromey.com>
13453
13454 * c-valprint.c (c_val_print_array): Simplify.
13455
d121c6ce
TT
134562020-03-13 Tom Tromey <tom@tromey.com>
13457
13458 * valprint.c (value_print_array_elements): New function.
13459 * valprint.h (value_print_array_elements): Declare.
13460
4dba70ee
TT
134612020-03-13 Tom Tromey <tom@tromey.com>
13462
13463 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
13464 * mips-tdep.c (mips_print_register): Use
13465 value_print_scalar_formatted.
13466
4f9ae810
TT
134672020-03-13 Tom Tromey <tom@tromey.com>
13468
13469 * valprint.h (value_print_scalar_formatted): Declare.
13470 * valprint.c (value_print_scalar_formatted): New function.
13471
156bfec9
TT
134722020-03-13 Tom Tromey <tom@tromey.com>
13473
13474 * valprint.h (generic_value_print): Declare.
13475 * valprint.c (generic_value_print): New function.
13476
2b4e573d
TT
134772020-03-13 Tom Tromey <tom@tromey.com>
13478
13479 * valprint.c (do_val_print): Call la_value_print_inner, if
13480 available.
13481 * rust-lang.c (rust_language_defn): Update.
13482 * p-lang.c (pascal_language_defn): Update.
13483 * opencl-lang.c (opencl_language_defn): Update.
13484 * objc-lang.c (objc_language_defn): Update.
13485 * m2-lang.c (m2_language_defn): Update.
13486 * language.h (struct language_defn) <la_value_print_inner>: New
13487 member.
13488 * language.c (unknown_language_defn, auto_language_defn): Update.
13489 * go-lang.c (go_language_defn): Update.
13490 * f-lang.c (f_language_defn): Update.
13491 * d-lang.c (d_language_defn): Update.
13492 * c-lang.c (c_language_defn, cplus_language_defn)
13493 (asm_language_defn, minimal_language_defn): Update.
13494 * ada-lang.c (ada_language_defn): Update.
13495
a1f6a07c
TT
134962020-03-13 Tom Tromey <tom@tromey.com>
13497
13498 * c-valprint.c (c_value_print): Use common_val_print.
13499
410cf315
TT
135002020-03-13 Tom Tromey <tom@tromey.com>
13501
13502 * cp-valprint.c (cp_print_static_field): Use common_val_print.
13503
72a45c93
TT
135042020-03-13 Tom Tromey <tom@tromey.com>
13505
13506 * f-valprint.c (f77_print_array_1, f_val_print): Use
13507 common_val_print.
13508
040f66bd
TT
135092020-03-13 Tom Tromey <tom@tromey.com>
13510
13511 * riscv-tdep.c (riscv_print_one_register_info): Use
13512 common_val_print.
13513
a6e05a6c
TT
135142020-03-13 Tom Tromey <tom@tromey.com>
13515
13516 * mi/mi-main.c (output_register): Use common_val_print.
13517
3444c526
TT
135182020-03-13 Tom Tromey <tom@tromey.com>
13519
13520 * infcmd.c (default_print_one_register_info): Use
13521 common_val_print.
13522
c2a44efe
TT
135232020-03-13 Tom Tromey <tom@tromey.com>
13524
13525 * valprint.h (common_val_print_checked): Declare.
13526 * valprint.c (common_val_print_checked): New function.
13527 * stack.c (print_frame_arg): Use common_val_print_checked.
13528
b0c26e99
TT
135292020-03-13 Tom Tromey <tom@tromey.com>
13530
13531 * valprint.c (do_val_print): New function, from val_print.
13532 (val_print): Use do_val_print.
13533 (common_val_print): Use do_val_print.
13534
ce3acbe9
TT
135352020-03-13 Tom Tromey <tom@tromey.com>
13536
13537 * valprint.c (value_print): Use scoped_value_mark.
13538
96c7f873
TV
135392020-03-13 Tom de Vries <tdevries@suse.de>
13540
13541 PR symtab/25646
13542 * psymtab.c (partial_symtab::partial_symtab): Don't set
13543 globals_offset and statics_offset. Push element onto
13544 current_global_psymbols and current_static_psymbols stacks.
13545 (concat): New function.
13546 (end_psymtab_common): Set globals_offset and statics_offset. Pop
13547 element from current_global_psymbols and current_static_psymbols
13548 stacks. Concat popped elements to global_psymbols and
13549 static_symbols.
13550 (add_psymbol_to_list): Use current_global_psymbols and
13551 current_static_psymbols stacks.
13552 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
13553 current_static_psymbols fields.
13554
6ba0a321
CB
135552020-03-12 Christian Biesinger <cbiesinger@google.com>
13556
13557 * corelow.c (sniff_core_bfd): Remove.
13558 (class core_target) <m_core_vec>: Remove.
13559 (core_target::core_target): Update.
13560 (core_file_fns): Remove.
13561 (deprecated_add_core_fns): Remove.
13562 (default_core_sniffer): Remove.
13563 (sniff_core_bfd): Remove.
13564 (default_check_format): Remove.
13565 (gdb_check_format): Remove.
13566 (core_target_open): Update.
13567 (core_target::get_core_register_section): Update.
13568 (get_core_registers_cb): Update.
13569 (core_target::fetch_registers): Update.
13570 * gdbcore.h (struct core_fns): Remove.
13571 (deprecated_add_core_fns): Remove.
13572 (default_core_sniffer): Remove.
13573 (default_check_format): Remove.
13574
227031b2
TT
135752020-03-12 Tom Tromey <tom@tromey.com>
13576
13577 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
13578 CORE_ADDR.
13579 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
13580
53807e9f
TT
135812020-03-12 Tom Tromey <tom@tromey.com>
13582
13583 * remote.c (remote_target::download_tracepoint)
13584 (remote_target::enable_tracepoint)
13585 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
13586 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
13587 sprintf_vma.
13588
64f25102
TT
135892020-03-12 Tom Tromey <tom@tromey.com>
13590
13591 * symfile-mem.c: Update CORE_ADDR size assert.
13592
272cd5a3
SM
135932020-03-12 Simon Marchi <simon.marchi@efficios.com>
13594
13595 * selftest.m4: Move to gdbsupport/.
13596 * acinclude.m4: Update path to selftest.m4.
13597
74cd3f9d
SM
135982020-03-12 Simon Marchi <simon.marchi@efficios.com>
13599
13600 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
13601 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
13602 gdbarch-selfselftests.c and selftest-arch.c.
13603 (SUBDIR_UNITTESTS_OBS): Rename to...
13604 (SELFTESTS_OBS): ... this.
13605 (COMMON_SFILES): Remove disasm-selftests.c and
13606 gdbarch-selftests.c.
13607 * configure.ac: Don't add selftest-arch.{c,o} to
13608 CONFIG_{SRCS,OBS}.
13609 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
13610 preprocessor conditions.
13611
db6878ac
SM
136122020-03-12 Simon Marchi <simon.marchi@efficios.com>
13613
13614 * configure.ac: Don't source bfd/development.sh.
13615 * selftest.m4: Modify comment.
13616 * configure: Re-generate.
13617
4d696a5c
SM
136182020-03-12 Simon Marchi <simon.marchi@efficios.com>
13619
13620 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
13621 not "true" or "false".
13622 * configure: Re-generate.
13623
8dd8e1c7
CB
136242020-03-12 Christian Biesinger <cbiesinger@google.com>
13625
13626 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
13627 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
13628 renamed to arm_nbsd_supply_gregset.
13629 (fetch_register): Update to call arm_nbsd_supply_gregset.
13630 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
13631 (arm_netbsd_nat_target::fetch_registers): Update.
13632 (fetch_elfcore_registers): Removed.
13633 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
13634 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
13635 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
13636 not require NetBSD system headers.
13637 (arm_nbsd_regset): New struct.
13638 (arm_nbsd_iterate_over_regset_sections): New function.
13639 (arm_netbsd_init_abi_common): Updated to call
13640 set_gdbarch_iterate_over_regset_sections.
13641 * arm-nbsd-tdep.h: New file.
13642
dd69bf7a
KB
136432020-03-11 Kevin Buettner <kevinb@redhat.com>
13644
13645 * symtab.c (find_pc_sect_line): Add check which prevents infinite
13646 recursion.
13647
a0761e34
SM
136482020-03-11 Simon Marchi <simon.marchi@efficios.com>
13649
13650 * configure: Re-generate.
13651
e7a82140
TT
136522020-03-11 Tom Tromey <tromey@adacore.com>
13653
13654 * ada-typeprint.c (print_choices): Fix comment.
13655
dcc050c8
AB
136562020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
13657
13658 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
13659 previous item in the list, when the list has no items.
13660
1c33af77
TV
136612020-03-11 Tom de Vries <tdevries@suse.de>
13662
13663 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
13664 PROP_LOCLIST handling code.
13665
8c95582d
AB
136662020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
13667
13668 * buildsym-legacy.c (record_line): Pass extra parameter to
13669 record_line.
13670 * buildsym.c (buildsym_compunit::record_line): Take an extra
13671 parameter, reduce duplication in the line table, and record the
13672 is_stmt flag in the line table.
13673 * buildsym.h (buildsym_compunit::record_line): Add extra
13674 parameter.
13675 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
13676 non-statement lines.
13677 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
13678 this to the symtab builder.
13679 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
13680 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
13681 through to dwarf_record_line_1.
13682 * infrun.c (process_event_stop_test): When stepping, don't stop at
13683 a non-statement instruction, and only refresh the step info when
13684 we land in the middle of a line's range. Also add an extra
13685 comment.
13686 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
13687 field.
13688 * record-btrace.c (btrace_find_line_range): Only record lines
13689 marked as is-statement.
13690 * stack.c (frame_show_address): Show the frame address if we are
13691 in a non-statement sal.
13692 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
13693 (maintenance_print_one_line_table): Print a header for the is_stmt
13694 column, and include is_stmt information in the output.
13695 * symtab.c (find_pc_sect_line): Find lines marked as statements in
13696 preference to non-statements.
13697 (find_pcs_for_symtab_line): Prefer is-statement entries.
13698 (find_line_common): Likewise.
13699 * symtab.h (struct linetable_entry): Add is_stmt field.
13700 (struct symtab_and_line): Likewise.
13701 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
13702 arranging the line table.
13703
e4003a34
TV
137042020-03-07 Tom de Vries <tdevries@suse.de>
13705
13706 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
13707 DIE.
13708
e8932576
TT
137092020-03-07 Tom Tromey <tom@tromey.com>
13710
13711 * valops.c (value_literal_complex): Remove obsolete comment.
13712 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
13713 comment.
13714
29734269
SM
137152020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
13716
13717 * infrun.h: Forward-declare thread_info.
13718 (set_step_info): Add thread_info parameter, add doc.
13719 * infrun.c (set_step_info): Add thread_info parameter, move doc
13720 to header.
13721 * infrun.c (process_event_stop_test): Pass thread to
13722 set_step_info call.
13723 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
13724 set_step_info.
13725 (prepare_one_step): Add thread_info parameter, pass it to
13726 set_step_frame and prepare_one_step (recursive) call.
13727 (step_1): Pass thread to prepare_one_step call.
13728 (step_command_fsm::should_stop): Pass thread to
13729 prepare_one_step.
13730 (until_next_fsm): Pass thread to set_step_frame call.
13731 (finish_command): Pass thread to set_step_info call.
13732
b7d64b29
HD
137332020-03-06 Hannes Domani <ssbssa@yahoo.de>
13734
13735 * windows-tdep.c (windows_solib_create_inferior_hook):
13736 Check if inferior is running.
13737
09f2921c
TV
137382020-03-06 Tom de Vries <tdevries@suse.de>
13739
13740 * NEWS: Fix "the the".
13741 * ctfread.c: Same.
13742
fd760e79
TV
137432020-03-06 Tom de Vries <tdevries@suse.de>
13744
13745 * psymtab.c (psymtab_to_symtab): Don't print "done.".
13746
20ea4a60
AB
137472020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13748
13749 * .dir-locals.el: Add a comment referencing the other copies of
13750 this file.
13751
0afbabf0
JB
137522020-03-05 John Baldwin <jhb@FreeBSD.org>
13753
13754 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
13755 psargs.
13756
842806cb
TBA
137572020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13758
13759 * .gitattributes: New file.
13760
be1e3d3e
TT
137612020-03-04 Tom Tromey <tom@tromey.com>
13762
13763 * symmisc.c (print_symbol_bcache_statistics)
13764 (print_objfile_statistics): Update.
13765 * symfile.c (allocate_symtab): Use intern.
13766 * psymtab.c (partial_symtab::partial_symtab): Use intern.
13767 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
13768 macro_cache>: Remove.
13769 <string_cache>: New member.
13770 (struct objfile) <intern>: New methods.
13771 * elfread.c (elf_symtab_read): Use intern.
13772 * dwarf2/read.c (fixup_go_packaging): Intern package name.
13773 (dwarf2_compute_name, dwarf2_physname)
13774 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
13775 names.
13776 (guess_partial_die_structure_name): Update.
13777 (partial_die_info::fixup): Intern name.
13778 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
13779 name.
13780 (dwarf2_name): Intern name. Update.
13781 * buildsym.c (buildsym_compunit::get_macro_table): Use
13782 string_cache.
13783
4e7625fd
TT
137842020-03-04 Tom Tromey <tom@tromey.com>
13785
13786 * jit.c (bfd_open_from_target_memory): Make "target" const.
13787 * corefile.c (gnutarget): Now const.
13788 * gdbcore.h (gnutarget): Now const.
13789
46f9f931
HD
137902020-03-04 Hannes Domani <ssbssa@yahoo.de>
13791
13792 * NEWS: Mention support for WOW64 processes.
13793 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
13794 (amd64_windows_segment_register_p): Remove static.
13795 (_initialize_amd64_windows_nat): Update.
13796 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
13797 * i386-windows-nat.c (context_offset): Update.
13798 (i386_mappings): Rename and remove static.
13799 (i386_windows_segment_register_p): Remove static.
13800 (_initialize_i386_windows_nat): Update.
13801 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
13802 (STATUS_WX86_SINGLE_STEP): New macro.
13803 (EnumProcessModulesEx): New macro.
13804 (Wow64SuspendThread): New macro.
13805 (Wow64GetThreadContext): New macro.
13806 (Wow64SetThreadContext): New macro.
13807 (Wow64GetThreadSelectorEntry): New macro.
13808 (windows_set_context_register_offsets): Add static.
13809 (windows_set_segment_register_p): Likewise.
13810 (windows_add_thread): Adapt for WOW64 processes.
13811 (windows_fetch_one_register): Likewise.
13812 (windows_nat_target::fetch_registers): Likewise.
13813 (windows_store_one_register): Likewise.
13814 (display_selector): Likewise.
13815 (display_selectors): Likewise.
13816 (handle_exception): Likewise.
13817 (windows_continue): Likewise.
13818 (windows_nat_target::resume): Likewise.
13819 (windows_add_all_dlls): Likewise.
13820 (do_initial_windows_stuff): Likewise.
13821 (windows_nat_target::attach): Likewise.
13822 (windows_get_exec_module_filename): Likewise.
13823 (windows_nat_target::create_inferior): Likewise.
13824 (windows_xfer_siginfo): Likewise.
13825 (_initialize_loadable): Initialize Wow64SuspendThread,
13826 Wow64GetThreadContext, Wow64SetThreadContext,
13827 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
13828 * windows-nat.h (windows_set_context_register_offsets):
13829 Remove declaration.
13830 (windows_set_segment_register_p): Likewise.
13831 (i386_windows_segment_register_p): Add declaration.
13832 (amd64_windows_segment_register_p): Likewise.
13833
440cf44e
LM
138342020-03-04 Luis Machado <luis.machado@linaro.org>
13835
13836 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
13837 in "info registers" for AArch64/ARM.
13838
13839 The change caused "info registers" to not print GPR's.
13840
13841 gdb/ChangeLog:
13842
13843 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
13844
13845 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13846 when reg->group is empty and reggroup is not.
13847
1009d92f
TT
138482020-03-03 Tom Tromey <tromey@adacore.com>
13849
13850 * dwarf2/frame.c (struct dwarf2_frame_cache)
13851 <checked_tailcall_bottom, entry_cfa_sp_offset,
13852 entry_cfa_sp_offset_p>: Remove members.
13853 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
13854 (dwarf2_frame_prev_register): Don't call
13855 dwarf2_tailcall_sniffer_first.
13856 (dwarf2_append_unwinders): Don't append tailcall unwinder.
13857 * frame-unwind.c (add_unwinder): New fuction.
13858 (frame_unwind_init): Use it. Add tailcall unwinder.
13859
5e5d66b6
AB
138602020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
13861 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13862
13863 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
13864 value should be printed as true.
13865
584cf46d
HD
138662020-03-03 Hannes Domani <ssbssa@yahoo.de>
13867
13868 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
13869 (windows_init_abi): Set and use windows_so_ops.
13870
7b973adc
SDJ
138712020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
13872
13873 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
13874 when verifying if dealing with a convenience variable.
13875
bb7b70ab
LM
138762020-03-03 Luis Machado <luis.machado@linaro.org>
13877
13878 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
13879
9822cb57
SM
138802020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13881
13882 * infrun.c (gdbarch_supports_displaced_stepping): New.
13883 (use_displaced_stepping): Break up conditions in smaller pieces.
13884 Use gdbarch_supports_displaced_stepping.
13885 (displaced_step_prepare_throw): Use
13886 gdbarch_supports_displaced_stepping.
13887
63e163f2
AB
138882020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13889
13890 * NEWS: Mention new behaviour of the history filename.
13891 * top.c (write_history_p): Add comment.
13892 (show_write_history_p): Add header comment, give a different
13893 message when history writing is on, but the history filename is
13894 empty.
13895 (history_filename): Add comment.
13896 (history_filename_empty): New function.
13897 (show_history_filename): Add header comment, give a different
13898 message when the filename is empty.
13899 (init_history): Compare history_filename against nullptr, and only
13900 read history if the filename is not empty.
13901 (set_history_filename): Add header comment, and only make
13902 non-empty filenames absolute.
13903 (init_main): Make the filename argument to 'set history filename'
13904 optional.
13905
81b86b97
CB
139062020-03-02 Christian Biesinger <cbiesinger@google.com>
13907
13908 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
13909 (arm_supply_vfpregset): ...this, and update to use VFP registers.
13910 (fetch_fp_register): Update.
13911 (fetch_fp_regs): Update.
13912 (store_fp_register): Update.
13913 (store_fp_regs): Update.
13914 (arm_netbsd_nat_target::read_description): New function.
13915 (fetch_elfcore_registers): Update.
13916
24ed6739
AB
139172020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13918
13919 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
13920 general_thread if the stop reply is missing a thread-id.
13921 (remote_target::process_stop_reply): Use the first non-exited
13922 thread if the target didn't pass a thread-id.
13923 * infrun.c (do_target_wait): Move call to
13924 switch_to_inferior_no_thread to ....
13925 (do_target_wait_1): ... here.
13926
a84bb2a0
JT
139272020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
13928
13929 * debuginfod-support.c: Include defs.h first.
13930
658dadf0
TV
139312020-02-28 Tom de Vries <tdevries@suse.de>
13932
13933 * symfile.c (set_initial_language): Use default language for lookup.
13934
4ebe4877
SM
139352020-02-28 Simon Marchi <simon.marchi@efficios.com>
13936
13937 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
13938 reader variable, pass `this` to read_cutu_die_from_dwo.
13939
e5da1139
AM
139402020-02-27 Aaron Merey <amerey@redhat.com>
13941
13942 * source.c (open_source_file): Check for nullptr when computing
13943 srcpath.
13944
317f7127
TT
139452020-02-27 Tom Tromey <tromey@adacore.com>
13946
13947 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
13948 member.
13949 (dwarf2_add_field): Don't update nfields.
13950 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
13951
3104d9ee
AB
139522020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13953
13954 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
13955 abs.
13956
b83470bf
TT
139572020-02-26 Tom Tromey <tom@tromey.com>
13958
13959 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
13960 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
13961 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
13962 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
13963 per_cu_data.
13964
edfe0a0c
TT
139652020-02-26 Tom Tromey <tom@tromey.com>
13966
13967 * dwarf2/index-write.c (psym_index_map): Change type.
13968 (add_address_entry_worker, write_one_signatured_type)
13969 (recursively_count_psymbols, recursively_write_psymbols)
13970 (class debug_names, psyms_seen_size, write_gdbindex)
13971 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
13972
0d79cdc4
AM
139732020-02-26 Aaron Merey <amerey@redhat.com>
13974
13975 * Makefile.in: Handle optional debuginfod support.
13976 * NEWS: Update.
13977 * README: Add --with-debuginfod summary.
13978 * config.in: Regenerate.
13979 * configure: Regenerate.
13980 * configure.ac: Handle optional debuginfod support.
13981 * debuginfod-support.c: debuginfod helper functions.
13982 * debuginfod-support.h: Ditto.
13983 * doc/gdb.texinfo: Add --with-debuginfod to configure options
13984 summary.
13985 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
13986 when a dwz file cannot be found.
13987 * elfread.c (elf_symfile_read): Query debuginfod servers when a
13988 debuginfo file cannot be found.
13989 * source.c (open_source_file): Query debuginfod servers when a
13990 source file cannot be found.
13991 * top.c (print_gdb_configuration): Include
13992 --{with,without}-debuginfod in the output.
13993
b65ce565
JG
139942020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
13995
13996 * thread.c (thr_try_catch_cmd): Print thread name.
13997
d4c9a4f8
SM
139982020-02-26 Simon Marchi <simon.marchi@efficios.com>
13999
14000 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
14001 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14002 dwarf2_fetch_die_type_sect_off): Move to...
14003 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
14004 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14005 dwarf2_fetch_die_type_sect_off): ... here.
14006 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
14007 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14008 dwarf2_fetch_die_type_sect_off): Move doc to header file.
14009
0dce4280
TV
140102020-02-26 Tom de Vries <tdevries@suse.de>
14011
14012 PR gdb/25603
14013 * symfile.c (set_initial_language): Exit-early if
14014 language_mode == language_mode_manual.
14015
450a1bfc
SM
140162020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14017
14018 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
14019 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
14020 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
14021
9e80cfa1
AB
140222020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
14023
14024 * gdbtypes.c (create_array_type_with_stride): Handle negative
14025 array strides.
14026 * valarith.c (value_subscripted_rvalue): Likewise.
14027
09624f1f
LM
140282020-02-25 Luis Machado <luis.machado@linaro.org>
14029
14030 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
14031
8cb5117c
SM
140322020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14033
14034 * loc.h (dwarf2_get_die_type): Move to...
14035 * read.h (dwarf2_get_die_type): ... here.
14036 * read.c (dwarf2_get_die_type): Move doc to header.
14037
c325c44e
JB
140382020-02-25 Joel Brobecker <brobecker@adacore.com>
14039
14040 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
14041 'gnulib/Makefile.in' to the list.
14042
4ac93832
TT
140432020-02-24 Tom Tromey <tom@tromey.com>
14044
14045 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
14046 Remove.
14047 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
14048 XOBNEWVEC.
14049
197400e8
TT
140502020-02-24 Tom Tromey <tom@tromey.com>
14051
14052 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
14053 New method.
14054 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
14055 (dw2_do_instantiate_symtab, dw2_get_file_names)
14056 (build_type_psymtab_dependencies, load_full_type_unit): Update.
14057
76935768
TT
140582020-02-24 Tom Tromey <tom@tromey.com>
14059
14060 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
14061 make_scoped_restore.
14062 (dwarf2_psymtab::read_symtab): Don't clear
14063 reading_partial_symbols.
14064
a88ef40d
TV
140652020-02-24 Tom de Vries <tdevries@suse.de>
14066
14067 PR gdb/25592
14068 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
14069
c9af6521
TV
140702020-02-24 Tom de Vries <tdevries@suse.de>
14071
14072 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
14073 commands layout next/prev/regs.
14074
5707a07a
TT
140752020-02-22 Tom Tromey <tom@tromey.com>
14076
14077 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
14078 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
14079
3b0fb49e
TT
140802020-02-22 Tom Tromey <tom@tromey.com>
14081
14082 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
14083
283be8bf
TT
140842020-02-22 Tom Tromey <tom@tromey.com>
14085
14086 * tui/tui-win.c (_initialize_tui_win): Add usage text.
14087 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
14088 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
14089 * tui/tui.c (_initialize_tui): Add usage text.
14090
ca793b96
TT
140912020-02-22 Tom Tromey <tom@tromey.com>
14092
14093 * tui/tui-win.c (tui_set_focus_command)
14094 (tui_set_win_height_command): Use error_no_arg.
14095 (_initialize_tui_win): Update help text.
14096 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
14097
432b5c40
TT
140982020-02-22 Tom Tromey <tom@tromey.com>
14099
14100 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
14101 * tui/tui-disasm.h (struct tui_disasm_window)
14102 <display_start_addr>: Declare.
14103 * tui/tui-source.h (struct tui_source_window)
14104 <display_start_addr>: Declare.
14105 * tui/tui-winsource.h (struct tui_source_window_base)
14106 <show_source_line, display_start_addr>: New methods.
14107 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
14108 Rename and move to protected section.
14109 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
14110 (tui_source_window_base::do_erase_source_content): Update.
14111 (tui_source_window_base::show_source_line): Now a method.
14112 (tui_source_window_base::show_source_content)
14113 (tui_source_window_base::tui_source_window_base)
14114 (tui_source_window_base::rerender)
14115 (tui_source_window_base::refill)
14116 (tui_source_window_base::do_scroll_horizontal)
14117 (tui_source_window_base::set_is_exec_point_at)
14118 (tui_source_window_base::update_breakpoint_info)
14119 (tui_source_window_base::update_exec_info): Update.
14120 * tui/tui-source.c (tui_source_window::set_contents)
14121 (tui_source_window::showing_source_p)
14122 (tui_source_window::do_scroll_vertical)
14123 (tui_source_window::location_matches_p)
14124 (tui_source_window::line_is_displayed): Update.
14125 (tui_source_window::display_start_addr): New method.
14126 * tui/tui-disasm.c (tui_disasm_window::set_contents)
14127 (tui_disasm_window::do_scroll_vertical)
14128 (tui_disasm_window::location_matches_p): Update.
14129 (tui_disasm_window::display_start_addr): New method.
14130
01b1af32
TT
141312020-02-22 Tom Tromey <tom@tromey.com>
14132
14133 * NEWS: Add entry for gdb.register_window_type.
14134 * tui/tui-layout.h (window_factory): New typedef.
14135 (tui_register_window): Declare.
14136 * tui/tui-layout.c (saved_tui_windows): New global.
14137 (tui_apply_current_layout): Use it.
14138 (tui_register_window): New function.
14139 * python/python.c (do_start_initialization): Call
14140 gdbpy_initialize_tui.
14141 (python_GdbMethods): Add "register_window_type" function.
14142 * python/python-internal.h (gdbpy_register_tui_window)
14143 (gdbpy_initialize_tui): Declare.
14144 * python/py-tui.c: New file.
14145 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
14146
fc96d20b
TT
141472020-02-22 Tom Tromey <tom@tromey.com>
14148
14149 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
14150
935c78c0
TT
141512020-02-22 Tom Tromey <tom@tromey.com>
14152
14153 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
14154 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
14155 * tui/tui-data.c (tui_set_win_with_focus): Remove.
14156 (tui_set_win_focus_to): Move from tui-win.c.
14157
0240c8f1
TT
141582020-02-22 Tom Tromey <tom@tromey.com>
14159
14160 * tui/tui-layout.c (make_standard_window, get_locator_window): New
14161 functions.
14162 (known_window_types): New global.
14163 (tui_get_window_by_name): Reimplement.
14164 (initialize_known_windows): New function.
14165 (validate_window_name): Rewrite.
14166 (_initialize_tui_layout): Call initialize_known_windows.
14167
fdb01f0c
TT
141682020-02-22 Tom Tromey <tom@tromey.com>
14169
14170 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
14171 Remove constants.
14172 * tui/tui-winsource.h (struct tui_source_window_base)
14173 <tui_source_window_base>: Remove parameter.
14174 * tui/tui-winsource.c
14175 (tui_source_window_base::tui_source_window_base): Remove
14176 parameter.
14177 (tui_source_window_base::refill): Update.
14178 * tui/tui-stack.h (struct tui_locator_window)
14179 <tui_locator_window>: Update.
14180 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
14181 Default the constructor.
14182 * tui/tui-regs.h (struct tui_data_item_window)
14183 <tui_data_item_window>: Default the constructor.
14184 (struct tui_data_window) <tui_data_window>: Likewise.
14185 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
14186 Default the constructor.
14187 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
14188 Default the constructor.
14189 <type>: Remove.
14190 (struct tui_win_info) <tui_win_info>: Default the constructor.
14191 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
14192 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
14193 Default the constructor.
14194
865a5aec
TT
141952020-02-22 Tom Tromey <tom@tromey.com>
14196
14197 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
14198 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
14199 * tui/tui-win.c (tui_resize_all): Don't call
14200 tui_delete_invisible_windows.
14201 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
14202 done.
14203 (tui_set_layout): Update.
14204 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
14205 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
14206 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
14207
e098d18c
TT
142082020-02-22 Tom Tromey <tom@tromey.com>
14209
14210 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
14211 correctly.
14212
eb9c8874
TT
142132020-02-22 Tom Tromey <tom@tromey.com>
14214
14215 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
14216
7eed1a8e
TT
142172020-02-22 Tom Tromey <tom@tromey.com>
14218
14219 * tui/tui-winsource.h (struct tui_source_window_iterator)
14220 <inner_iterator>: New etytypedef.
14221 <tui_source_window_iterator>: Take "end" parameter.
14222 <tui_source_window_iterator>: Take iterator.
14223 <operator*, advance>: Update.
14224 <m_iter>: Change type.
14225 <m_end>: New field.
14226 (struct tui_source_windows) <begin, end>: Update.
14227 * tui/tui-layout.c (tui_windows): New global.
14228 (tui_apply_current_layout): Clear tui_windows.
14229 (tui_layout_window::apply): Update tui_windows.
14230 * tui/tui-data.h (tui_windows): Declare.
14231 (all_tui_windows): Now inline function.
14232 (class tui_window_iterator, struct all_tui_windows): Remove.
14233
7c043ba6
TT
142342020-02-22 Tom Tromey <tom@tromey.com>
14235
14236 PR tui/17850:
14237 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
14238 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
14239 "height" argument.
14240 (class tui_layout_window) <get_sizes>: Likewise.
14241 (class tui_layout_split) <tui_layout_split>: Add "vertical"
14242 argument.
14243 <get_sizes>: Add "height" argument.
14244 <m_vertical>: New field.
14245 * tui/tui-layout.c (tui_layout_split::clone): Update.
14246 (tui_layout_split::get_sizes): Add "height" argument.
14247 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
14248 (tui_new_layout_command): Parse "-horizontal".
14249 (_initialize_tui_layout): Update help string.
14250 (tui_layout_split::specification): Add "-horizontal" when needed.
14251 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
14252 argument.
14253 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
14254 New methods.
14255
6bc56648
TT
142562020-02-22 Tom Tromey <tom@tromey.com>
14257
14258 * tui/tui-layout.h (enum tui_adjust_result): New.
14259 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
14260 (class tui_layout_window) <adjust_size>: Return
14261 tui_adjust_result. Rewrite.
14262 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
14263 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
14264
c22fef7e
TT
142652020-02-22 Tom Tromey <tom@tromey.com>
14266
14267 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
14268 parameter and return types.
14269 (class tui_layout_base) <specification>: Add "depth".
14270 (class tui_layout_window) <specification>: Add "depth".
14271 (class tui_layout_split) <specification>: Add "depth".
14272 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
14273 and return types.
14274 (tui_new_layout_command): Parse sub-layouts.
14275 (_initialize_tui_layout): Update help string.
14276 (tui_layout_window::specification): Add "depth".
14277 (add_layout_command): Update.
14278
ee325b61
TT
142792020-02-22 Tom Tromey <tom@tromey.com>
14280
14281 * NEWS: Add "tui new-layout" item.
14282 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
14283 Add new-layout command to help text.
14284 (validate_window_name): New function.
14285 (tui_new_layout_command): New function.
14286 (_initialize_tui_layout): Register "new-layout".
14287 (tui_layout_window::specification): New method.
14288 (tui_layout_window::specification): New method.
14289 * tui/tui-layout.h (class tui_layout_base) <specification>: New
14290 method.
14291 (class tui_layout_window) <specification>: New method.
14292 (class tui_layout_split) <specification>: New method.
14293
416eb92d
TT
142942020-02-22 Tom Tromey <tom@tromey.com>
14295
14296 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
14297 * tui/tui-win.c (window_name_completer): Update comment.
14298 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
14299 Declare method.
14300 (class tui_layout_window) <replace_window>: Likewise.
14301 (class tui_layout_split) <replace_window>: Likewise.
14302 (tui_set_layout): Don't declare.
14303 (tui_set_initial_layout): Declare function.
14304 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
14305 (asm_regs_layout): New globals.
14306 (tui_current_layout, show_layout): Remove.
14307 (tui_set_layout, tui_add_win_to_layout): Rewrite.
14308 (find_layout, tui_apply_layout): New function.
14309 (layout_completer): Remove.
14310 (tui_next_layout): Reimplement.
14311 (tui_next_layout_command): New function.
14312 (tui_set_initial_layout, tui_prev_layout_command): New functions.
14313 (tui_regs_layout): Reimplement.
14314 (tui_regs_layout_command): New function.
14315 (extract_display_start_addr): Rewrite.
14316 (next_layout, prev_layout): Remove.
14317 (tui_layout_window::replace_window): New method.
14318 (tui_layout_split::replace_window): New method.
14319 (destroy_layout): New function.
14320 (layout_list): New global.
14321 (add_layout_command): New function.
14322 (initialize_layouts): Update.
14323 (tui_layout_command): New function.
14324 (_initialize_tui_layout): Install "layout" commands.
14325 * tui/tui-data.h (enum tui_layout_type): Remove.
14326 (tui_current_layout): Don't declare.
14327
0dbc2fc7
TT
143282020-02-22 Tom Tromey <tom@tromey.com>
14329
14330 * tui/tui-regs.c (tui_reg_layout): Remove.
14331 (tui_reg_command): Use tui_regs_layout.
14332 * tui/tui-layout.h (tui_reg_command): Declare.
14333 * tui/tui-layout.c (tui_reg_command): New function.
14334
5afe342e
TT
143352020-02-22 Tom Tromey <tom@tromey.com>
14336
14337 * tui/tui.c (tui_rl_delete_other_windows): Call
14338 tui_remove_some_windows.
14339 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
14340 Declare method.
14341 (class tui_layout_window) <remove_windows>: New method.
14342 (class tui_layout_split) <remove_windows>: Declare.
14343 (tui_remove_some_windows): Declare.
14344 * tui/tui-layout.c (tui_remove_some_windows): New function.
14345 (tui_layout_split::remove_windows): New method.
14346
427326a8
TT
143472020-02-22 Tom Tromey <tom@tromey.com>
14348
14349 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
14350 * tui/tui-layout.h (tui_next_layout): Declare.
14351 * tui/tui-layout.c (tui_next_layout): New function.
14352
3fe12b6d
TT
143532020-02-22 Tom Tromey <tom@tromey.com>
14354
14355 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
14356 correct coordinates.
14357
59b8b5d2
TT
143582020-02-22 Tom Tromey <tom@tromey.com>
14359
14360 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
14361 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
14362 DATA_WIN case.
14363
2a3d458b
TT
143642020-02-22 Tom Tromey <tom@tromey.com>
14365
14366 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
14367 TUI_DISASM_WIN, not tui_win_list.
14368
3f0cbb04
TT
143692020-02-22 Tom Tromey <tom@tromey.com>
14370
14371 * valprint.c (generic_val_print_enum_1)
14372 (val_print_type_code_flags): Style member names.
14373 * rust-lang.c (val_print_struct, rust_print_enum)
14374 (rust_print_struct_def, rust_internal_print_type): Style member
14375 names.
14376 * p-valprint.c (pascal_object_print_value_fields): Style member
14377 names. Only call fprintf_symbol_filtered for static members.
14378 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
14379 * f-valprint.c (f_val_print): Style member names.
14380 * f-typeprint.c (f_type_print_base): Style member names.
14381 * cp-valprint.c (cp_print_value_fields): Style member names. Only
14382 call fprintf_symbol_filtered for static members.
14383 (cp_print_class_member): Style member names.
14384 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
14385 member names.
14386 * ada-valprint.c (ada_print_scalar): Style enum names.
14387 (ada_val_print_enum): Likewise.
14388 * ada-typeprint.c (print_enum_type): Style enum names.
14389
d4d947ae
TT
143902020-02-21 Tom Tromey <tom@tromey.com>
14391
14392 * psympriv.h (struct partial_symtab): Update comment.
14393
e94e944b
TT
143942020-02-21 Tom Tromey <tromey@adacore.com>
14395
14396 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
14397 type is CORE_ADDR.
14398
1eb73179
TV
143992020-02-21 Tom de Vries <tdevries@suse.de>
14400
14401 PR gdb/25534
14402 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
14403 if dependencies[i]->user != NULL.
14404
4f180d53
AT
144052020-02-21 Ali Tamur <tamur@google.com>
14406
14407 * dwarf2/read.c (dwarf2_name): Add null check.
14408
22b6cd70
TT
144092020-02-20 Tom Tromey <tom@tromey.com>
14410
14411 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
14412 ">=", in binary search.
14413 (dwarf2_find_containing_comp_unit): New overload.
14414 (run_test): New self-test.
14415 (_initialize_dwarf2_read): Register new test.
14416
bd0cf5a6
NC
144172020-02-20 Nelson Chu <nelson.chu@sifive.com>
14418
14419 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
14420 * riscv-tdep.h: Likewise.
14421 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
14422 rv32-only CSR.
14423 * features/riscv/64bit-csr.xml: Regenerated.
14424
3f702acd
SDJ
144252020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
14426 Tom Tromey <tom@tromey.com>
14427
14428 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
14429 of 'fputc_unfiltered'.
14430 (putchar_unfiltered): Call 'fputc_unfiltered'.
14431 (fputc_unfiltered): Call 'fputs_unfiltered'.
14432
d13c7322
AB
144332020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
14434
14435 * config.in: Regenerate.
14436 * configure: Regenerate.
14437 * configure.ac: Add --with-python-libdir option.
14438 * main.c: Use WITH_PYTHON_LIBDIR.
14439
869d8950
TT
144402020-02-19 Tom Tromey <tom@tromey.com>
14441
14442 * symtab.c (general_symbol_info::compute_and_set_names): Use
14443 obstack_strndup. Simplify call to symbol_set_demangled_name.
14444
298e9637
SM
144452020-02-19 Simon Marchi <simon.marchi@efficios.com>
14446
14447 * dwarf2/read.c (allocate_signatured_type_table,
14448 allocate_dwo_unit_table, allocate_type_unit_groups_table,
14449 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
14450 Remove objfile parameter, update all callers.
14451
08410482
DE
144522020-02-19 Doug Evans <dje@google.com>
14453
14454 PR rust/25535
14455 * rust-lang.c (rust_print_enum): Apply embedded_offset to
14456 rust_enum_variant calculation.
14457
dfdeeca1
TT
144582020-02-19 Tom Tromey <tromey@adacore.com>
14459
14460 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
14461
2ef5453b
TT
144622020-02-19 Tom Tromey <tromey@adacore.com>
14463
14464 * ada-lang.c (cache_symbol): Use obstack_strdup.
14465
9f1528a1
AB
144662020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14467
14468 * configure: Regenerate.
14469
d3c22fa8
TT
144702020-02-19 Tom Tromey <tromey@adacore.com>
14471
14472 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
14473 NULL check.
14474
bf84f706
MR
144752020-02-19 Maciej W. Rozycki <macro@wdc.com>
14476
14477 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
14478
d1c9b20f
AB
144792020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14480
14481 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
14482 if GDBSERVER is not defined.
14483 (riscv_tdesc_cache): Likewise, also store const target_desc.
14484 (STATIC_IN_GDB): Define.
14485 (riscv_create_target_description): Update declaration with
14486 STATIC_IN_GDB.
14487 (riscv_lookup_target_description): New function, only define if
14488 GDBSERVER is not defined.
14489 * arch/riscv.h (riscv_create_target_description): Declare only
14490 when GDBSERVER is defined.
14491 (riscv_lookup_target_description): New declaration when GDBSERVER
14492 is not defined.
14493 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
14494 (riscv_linux_read_features): ...this, and return
14495 riscv_gdbarch_features instead of target_desc.
14496 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
14497 (riscv_linux_read_description): Rename to...
14498 (riscv_linux_read_features): ...this.
14499 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14500 Update to use riscv_gdbarch_features and
14501 riscv_lookup_target_description.
14502 * riscv-tdep.c (riscv_find_default_target_description): Use
14503 riscv_lookup_target_description instead of
14504 riscv_create_target_description.
14505
373d7ac0
SM
145062020-02-18 Simon Marchi <simon.marchi@efficios.com>
14507
14508 * valprint.c (generic_val_print_enum_1): When printing a flag
14509 enum with value 0 and there is no enumerator with value 0, print
14510 just "0" instead of "(unknown: 0x0)".
14511
b29a2df0
SM
145122020-02-18 Simon Marchi <simon.marchi@efficios.com>
14513
14514 * valprint.c (generic_val_print_enum_1): Print unknown part of
14515 flag enum in hex.
14516
6740f0cc
SM
145172020-02-18 Simon Marchi <simon.marchi@efficios.com>
14518
14519 * dwarf2/read.c (update_enumeration_type_from_children): Allow
14520 flag enums to contain duplicate enumerators.
14521 * valprint.c (generic_val_print_enum_1): Update comment.
14522
edd45eb0
SM
145232020-02-18 Simon Marchi <simon.marchi@efficios.com>
14524
14525 * dwarf2/read.c: Include "count-one-bits.h".
14526 (update_enumeration_type_from_children): If an enumerator has
14527 multiple bits set, don't treat the enumeration as a "flag enum".
14528 * valprint.c (generic_val_print_enum_1): Assert that enumerators
14529 of flag enums have 0 or 1 bit set.
14530
6d0cf446
BE
145312020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
14532
14533 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
14534 conversion.
14535 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14536 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14537 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14538 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14539 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14540
7001c1b7
SM
145412020-02-18 Simon Marchi <simon.marchi@efficios.com>
14542
14543 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
14544
fdb61c6c
SM
145452020-02-14 Simon Marchi <simon.marchi@efficios.com>
14546
14547 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
14548 displaced_step_closure_up.
14549 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14550 (struct displaced_step_closure_up):
14551 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14552 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14553 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
14554 Likewise.
14555 * gdbarch.sh (displaced_step_copy_insn): Likewise.
14556 * gdbarch.c, gdbarch.h: Re-generate.
14557 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
14558 displaced_step_closure_up.
14559 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14560 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14561 * infrun.h (displaced_step_closure_up): New type alias.
14562 (struct displaced_step_inferior_state) <step_closure>: Change
14563 type to displaced_step_closure_up.
14564 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
14565 displaced_step_closure_up.
14566 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14567
a4a38eb4
TT
145682020-02-14 Tom Tromey <tom@tromey.com>
14569
14570 * minidebug.c (gnu_debug_key): New global.
14571 (find_separate_debug_file_in_section): Use it.
14572
e8217e61
SM
145732020-02-14 Simon Marchi <simon.marchi@efficios.com>
14574
14575 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
14576 std::unique_ptr.
14577 * gdbarch.c: Re-generate.
14578 * gdbarch.h: Re-generate.
14579 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
14580 change.
14581 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
14582 type to std::unique_ptr.
14583 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14584 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14585 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14586 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14587 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
14588 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14589 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14590 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14591 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14592
d8d83535
SM
145932020-02-14 Simon Marchi <simon.marchi@efficios.com>
14594
14595 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
14596 std::unique_ptr.
14597 (displaced_step_clear): Rename to...
14598 (displaced_step_reset): ... this. Just call displaced->reset ().
14599 (displaced_step_clear_cleanup): Rename to...
14600 (displaced_step_reset_cleanup): ... this.
14601 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
14602 (displaced_step_fixup): Likewise.
14603 (resume_1): Likewise.
14604 (handle_inferior_event): Restore child's memory before calling
14605 displaced_step_fixup on the parent.
14606 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
14607 to std::unique_ptr.
14608 <step_closure>: Change type to std::unique_ptr.
14609
5f661e03
SM
146102020-02-14 Simon Marchi <simon.marchi@efficios.com>
14611
14612 * arm-tdep.c: Include count-one-bits.h.
14613 (cleanup_block_store_pc): Use count_one_bits.
14614 (cleanup_block_load_pc): Use count_one_bits.
14615 (arm_copy_block_xfer): Use count_one_bits.
14616 (thumb2_copy_block_xfer): Use count_one_bits.
14617 (thumb_copy_pop_pc_16bit): Use count_one_bits.
14618 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
14619 (thumb_get_next_pcs_raw): Use count_one_bits.
14620 (arm_get_next_pcs_raw): Use count_one_bits_l.
14621 * arch/arm.c (bitcount): Remove.
14622 * arch/arm.h (bitcount): Remove.
14623
8084e579
TT
146242020-02-14 Tom Tromey <tromey@adacore.com>
14625
14626 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
14627 Update.
14628 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
14629 * dwarf2/loc.c (call_site_find_chain_1): Return
14630 unique_xmalloc_ptr.
14631 (call_site_find_chain): Likewise.
14632
258bf0ee
RB
146332020-02-14 Richard Biener <rguenther@suse.de>
14634
14635 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
14636 on expression with division operators.
14637
f98a8458
AKS
146382020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14639
14640 * MAINTAINERS (Write After Approval): Adding myself.
14641
d1437c0e
TT
146422020-02-12 Tom Tromey <tom@tromey.com>
14643
14644 * event-loop.c (event_data, gdb_event, event_handler_func):
14645 Remove.
14646
3d4560f7
TT
146472020-02-12 Tom Tromey <tom@tromey.com>
14648
14649 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
14650 (dwarf2_frame_objfile_data): Add comment.
14651 (find_comp_unit, set_comp_unit): New functions.
14652 (dwarf2_frame_find_fde): Use find_comp_unit.
14653 (dwarf2_build_frame_info): Use set_comp_unit.
14654
21982304
TT
146552020-02-12 Tom Tromey <tom@tromey.com>
14656
14657 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
14658 (comp_unit): Don't initialize objfile.
14659 (execute_cfa_program): Add text_offset parameter.
14660 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
14661 (dwarf2_frame_cache): Update.
14662 (dwarf2_build_frame_info): Don't set "objfile" member.
14663
4debb237
TT
146642020-02-12 Tom Tromey <tom@tromey.com>
14665
14666 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
14667 (decode_frame_entry): Likewise.
14668 (dwarf2_build_frame_info): Update.
14669
0d404d44
TT
146702020-02-12 Tom Tromey <tom@tromey.com>
14671
14672 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
14673 (decode_frame_entry_1): Use the comp_unit obstack.
14674
a7a3ae5c
TT
146752020-02-12 Tom Tromey <tom@tromey.com>
14676
14677 * dwarf2/frame.c (struct comp_unit): Add initializers and
14678 constructor.
14679 (dwarf2_frame_objfile_data): Store a comp_unit.
14680 (dwarf2_frame_find_fde): Update.
14681 (dwarf2_build_frame_info): Use "new".
14682
a9d65418
TT
146832020-02-12 Tom Tromey <tom@tromey.com>
14684
14685 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
14686 (dwarf2_fde_table): Typedef for std::vector.
14687 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
14688 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
14689 (decode_frame_entry): Update.
14690 (dwarf2_build_frame_info): Use "new".
14691
7559c217
CB
146922020-02-12 Christian Biesinger <cbiesinger@google.com>
14693
14694 * arm-tdep.c (arm_gdbarch_init): Update.
14695 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
14696 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
14697 have_neon, is_m>: Change to bool.
14698
aeefc73c
CB
146992020-02-12 Christian Biesinger <cbiesinger@google.com>
14700
14701 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
14702
d27b8e5f
TT
147032020-02-12 Tom Tromey <tom@tromey.com>
14704
14705 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
14706
cd5900f3
HD
147072020-02-12 Hannes Domani <ssbssa@yahoo.de>
14708
14709 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
14710 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
14711
f056b22b
TT
147122020-02-11 Tom Tromey <tom@tromey.com>
14713
14714 * psymtab.h: Update comment.
14715
f92ff6b5
TT
147162020-02-11 Tom Tromey <tom@tromey.com>
14717
14718 * gdb_obstack.h (struct auto_obstack): Use
14719 DISABLE_COPY_AND_ASSIGN.
14720
3fd6912b
TT
147212020-02-11 Tom Tromey <tom@tromey.com>
14722
14723 * dwarf2/frame.h (struct objfile): Don't forward declare.
14724
69ed9b74
CB
147252020-02-11 Christian Biesinger <cbiesinger@google.com>
14726
14727 * cris-tdep.c (cris_supply_gregset): Change signature to match
14728 what struct regset expects.
14729 (cris_regset): New struct.
14730 (fetch_core_registers): Remove.
14731 (cris_iterate_over_regset_sections): New function.
14732 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
14733 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
14734
bda874f6
CB
147352020-02-11 Christian Biesinger <cbiesinger@google.com>
14736
14737 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
14738 registers.
14739
754e1564
CB
147402020-02-11 Christian Biesinger <cbiesinger@google.com>
14741
14742 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
14743
8ddd8e0e
SM
147442020-02-11 Simon Marchi <simon.marchi@efficios.com>
14745
14746 * configure: Re-generate.
14747
898e7f60
SM
147482020-02-11 Simon Marchi <simon.marchi@efficios.com>
14749
14750 * configure: Re-generate.
14751
58df732b
SM
147522020-02-11 Simon Marchi <simon.marchi@efficios.com>
14753
14754 * acinclude: Update warning.m4 path.
14755 * warning.m4: Move to gdbsupport.
14756
da5bd37e
TT
147572020-02-11 Tom Tromey <tromey@adacore.com>
14758
14759 * remote.c (remote_console_output): Update.
14760 * printcmd.c (printf_command): Update.
14761 * event-loop.c (gdb_wait_for_event): Update.
14762 * linux-nat.c (sigchld_handler): Update.
14763 * remote-sim.c (gdb_os_write_stdout): Update.
14764 (gdb_os_flush_stdout): Update.
14765 (gdb_os_flush_stderr): Update.
14766 (gdb_os_write_stderr): Update.
14767 * exceptions.c (print_exception): Update.
14768 * remote-fileio.c (remote_fileio_func_read): Update.
14769 (remote_fileio_func_write): Update.
14770 * tui/tui.c (tui_enable): Update.
14771 * tui/tui-interp.c (tui_interp::init): Update.
14772 * utils.c (init_page_info): Update.
14773 (putchar_unfiltered, fputc_unfiltered): Update.
14774 (gdb_flush): Update.
14775 (emit_style_escape): Update.
14776 (flush_wrap_buffer, fputs_maybe_filtered): Update.
14777 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
14778 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
14779 (stderr_file::write): Update.
14780 (stderr_file::puts): Update.
14781 * ui-file.h (ui_file_isatty, ui_file_write)
14782 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
14783 (ui_file_puts): Don't declare.
14784
85f0dd3c
TV
147852020-02-10 Tom de Vries <tdevries@suse.de>
14786
14787 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
14788 sentinel to char *.
14789
2e927613
TV
147902020-02-09 Tom de Vries <tdevries@suse.de>
14791
14792 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
14793 filename if it matches "<artificial>".
14794
6bafc845
HD
147952020-02-09 Hannes Domani <ssbssa@yahoo.de>
14796
14797 * windows-tdep.c (struct enum_value_name): New struct.
14798 (create_enum): New function.
14799 (windows_get_siginfo_type): Create and use enum types.
14800
7928d571
HD
148012020-02-09 Hannes Domani <ssbssa@yahoo.de>
14802
14803 * NEWS: Mention $_siginfo support for Windows.
14804 * windows-nat.c (handle_exception): Set siginfo_er.
14805 (windows_nat_target::mourn_inferior): Reset siginfo_er.
14806 (windows_xfer_siginfo): New function.
14807 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
14808 * windows-tdep.c (struct windows_gdbarch_data): New struct.
14809 (init_windows_gdbarch_data): New function.
14810 (get_windows_gdbarch_data): New function.
14811 (windows_get_siginfo_type): New function.
14812 (windows_init_abi): Register windows_get_siginfo_type.
14813 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
14814
6751ebae
TT
148152020-02-08 Tom Tromey <tom@tromey.com>
14816
14817 * dwarf2/read.c (class cutu_reader) <cutu_reader,
14818 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
14819 <keep>: Declare method.
14820 <m_keep>: Remove member.
14821 <~cutu_reader>: Remove.
14822 (cutu_reader::init_tu_and_read_dwo_dies): Update.
14823 (cutu_reader::cutu_reader): Update.
14824 (cutu_reader::keep): Rename from ~cutu_reader.
14825 (process_psymtab_comp_unit, build_type_psymtabs_1)
14826 (process_skeletonless_type_unit, load_partial_comp_unit)
14827 (load_full_comp_unit, dwarf2_read_addr_index)
14828 (read_signatured_type): Update.
14829
135f5437
TT
148302020-02-08 Tom Tromey <tom@tromey.com>
14831
14832 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
14833 "want_partial_unit" parameter.
14834 (process_psymtab_comp_unit): Change want_partial_unit to bool.
14835 Inline check for DW_TAG_partial_unit.
14836 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
14837
9f66ff1c
TT
148382020-02-08 Tom Tromey <tom@tromey.com>
14839
14840 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
14841 read.c.
14842 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
14843 read.c.
14844
c8a7a66f
TT
148452020-02-08 Tom Tromey <tom@tromey.com>
14846
14847 * dwarf2/read.c (read_address): Move to comp-unit.c.
14848 (dwarf2_rnglists_process, dwarf2_ranges_process)
14849 (read_attribute_value, dwarf_decode_lines_1)
14850 (var_decode_location, decode_locdesc): Update.
14851 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
14852 read.c. Remove "cu" parameter.
14853 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
14854 method.
14855
8266302d
TT
148562020-02-08 Tom Tromey <tom@tromey.com>
14857
14858 * dwarf2/read.c (read_attribute_value, read_indirect_string)
14859 (read_indirect_line_string): Update.
14860 * dwarf2/comp-unit.c (read_offset): Remove.
14861 (read_comp_unit_head): Update.
14862 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
14863 method.
14864 (read_offset): Don't declare.
14865
4057dfde
TT
148662020-02-08 Tom Tromey <tom@tromey.com>
14867
14868 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
14869 * dwarf2/read.c (struct comp_unit_head): Move to
14870 dwarf2/comp-unit.h.
14871 (enum class rcuh_kind): Move to comp-unit.h.
14872 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
14873 (read_comp_unit_head, error_check_comp_unit_head)
14874 (read_and_check_comp_unit_head): Move to comp-unit.c.
14875 (read_offset, dwarf_unit_type_name): Likewise.
14876 (create_debug_type_hash_table, read_cutu_die_from_dwo)
14877 (cutu_reader::cutu_reader, read_call_site_scope)
14878 (find_partial_die, follow_die_offset): Update.
14879 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
14880
24aa364d
TT
148812020-02-08 Tom Tromey <tom@tromey.com>
14882
14883 * dwarf2/read.c (read_offset_1): Move to leb.c.
14884 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
14885 (dwarf_decode_macro_bytes): Update.
14886 * dwarf2/leb.c (read_offset): Rename; move from read.c.
14887 * dwarf2/leb.h (read_offset): Declare.
14888
2c7d5afc
TT
148892020-02-08 Tom Tromey <tom@tromey.com>
14890
14891 * dwarf2/read.c (dwarf2_section_size): Remove.
14892 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
14893 Update.
14894 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
14895
4075cb26
TT
148962020-02-08 Tom Tromey <tom@tromey.com>
14897
14898 * dwarf2/read.c (read_initial_length): Move to leb.c.
14899 * dwarf2/leb.h (read_initial_length): Declare.
14900 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
14901 handle_nonstd parameter.
14902 * dwarf2/frame.c (read_initial_length): Remove.
14903 (decode_frame_entry_1): Update.
14904
09ba997f
TT
149052020-02-08 Tom Tromey <tom@tromey.com>
14906
14907 * dwarf2/loc.c (dwarf2_find_location_expression)
14908 (dwarf_evaluate_loc_desc::get_tls_address)
14909 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
14910 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
14911 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
14912 (dwarf2_compile_property_to_c)
14913 (dwarf2_loc_desc_get_symbol_read_needs)
14914 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
14915 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
14916 (loclist_describe_location, loclist_tracepoint_var_ref)
14917 (loclist_generate_c_location): Update.
14918 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
14919 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
14920 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
14921 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
14922 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
14923 (dwarf2_per_cu_data::addr_size)
14924 (dwarf2_per_cu_data::ref_addr_size)
14925 (dwarf2_per_cu_data::text_offset)
14926 (dwarf2_per_cu_data::addr_type): Now methods.
14927 (per_cu_header_read_in): Make per_cu "const".
14928 (dwarf2_version): Remove.
14929 (dwarf2_per_cu_data::int_type): Now a method.
14930 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
14931 (set_die_type, read_array_type, read_subrange_index_type)
14932 (read_tag_string_type, read_subrange_type): Update.
14933 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
14934 offset_size, ref_addr_size, text_offset, addr_type, version,
14935 objfile, int_type, addr_sized_int_type>: Declare methods.
14936
96c738c0
TT
149372020-02-08 Tom Tromey <tom@tromey.com>
14938
14939 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
14940 Move earlier.
14941
8fdd972c
TT
149422020-02-08 Tom Tromey <tom@tromey.com>
14943
14944 * dwarf2/read.h (dwarf_line_debug): Declare.
14945 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
14946 * dwarf2/read.c: Move line_header code to new files.
14947 (dwarf_line_debug): No longer static.
14948 * dwarf2/line-header.c: New file.
14949 * dwarf2/line-header.h: New file.
14950
03075812
TT
149512020-02-08 Tom Tromey <tom@tromey.com>
14952
14953 * dwarf2/read.c (struct line_header) <file_full_name,
14954 file_file_name>: Return unique_xmalloc_ptr.
14955 (line_header::file_file_name): Update.
14956 (line_header::file_full_name): Update.
14957 (dw2_get_file_names_reader): Update.
14958 (macro_start_file): Update.
14959
bb822404
TT
149602020-02-08 Tom Tromey <tom@tromey.com>
14961
14962 * dwarf2/read.c (struct line_header) <file_full_name,
14963 file_file_name>: Declare methods.
14964 (dw2_get_file_names_reader): Update.
14965 (file_file_name): Now a method.
14966 (file_full_name): Likewise.
14967 (macro_start_file): Update.
14968
009b64fc
TT
149692020-02-08 Tom Tromey <tom@tromey.com>
14970
14971 * dwarf2/read.c (dwarf_always_disassemble)
14972 (show_dwarf_always_disassemble): Move to loc.c.
14973 (_initialize_dwarf2_read): Move "always-disassemble" registration
14974 to loc.c.
14975 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
14976 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
14977 static.
14978 (show_dwarf_always_disassemble): Move from read.c.
14979 (_initialize_dwarf2loc): Move always-disassemble from read.c.
14980
5895093f
TT
149812020-02-08 Tom Tromey <tom@tromey.com>
14982
14983 * dwarf2/read.c (~dwarf2_per_objfile): Update.
14984 (create_quick_file_names_table): Return htab_up.
14985 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
14986 Update.
14987 * dwarf2/read.h (struct dwarf2_per_objfile)
14988 <quick_file_names_table>: Now htab_up.
14989
b3b32279
TT
149902020-02-08 Tom Tromey <tom@tromey.com>
14991
14992 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
14993
1d33d811
TT
149942020-02-08 Tom Tromey <tom@tromey.com>
14995
14996 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
14997 Rewrite.
14998 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
14999 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
15000 (abbrev_table::abbrev_table): No longer inline.
15001 (ABBREV_HASH_SIZE): Remove.
15002 (abbrev_table::m_abbrevs): Now an htab_up.
15003
86de1d91
TT
150042020-02-08 Tom Tromey <tom@tromey.com>
15005
15006 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
15007 (cutu_reader): Update.
15008 (build_type_psymtabs_1): Update.
15009 * dwarf2/abbrev.c (abbrev_table::read): Rename.
15010 (abbrev_table::alloc_abbrev): Update.
15011 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
15012 (abbrev_table::read): New static method, renamed from
15013 abbrev_table_read_table.
15014 (abbrev_table::alloc_abbrev)
15015 (abbrev_table::add_abbrev): Now private.
15016 (abbrev_table::abbrev_table): Now private.
15017 (abbrev_table::m_abbrev_obstack): Now private. Rename.
15018
0335378b
TT
150192020-02-08 Tom Tromey <tom@tromey.com>
15020
15021 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
15022 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
15023 htab_up.
15024
48b490f2
TT
150252020-02-08 Tom Tromey <tom@tromey.com>
15026
15027 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
15028 htab_up.
15029 (lookup_dwo_unit_in_dwp): Update.
15030 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
15031 on obstack.
15032
bc68fb19
TT
150332020-02-08 Tom Tromey <tom@tromey.com>
15034
15035 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
15036 obstack.
15037
d15acc42
TT
150382020-02-08 Tom Tromey <tom@tromey.com>
15039
15040 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
15041 line_header_hash.
15042 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
15043 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
15044 Change type to htab_up.
15045
eaa5fa8b
TT
150462020-02-08 Tom Tromey <tom@tromey.com>
15047
15048 * dwarf2/read.c (allocate_type_unit_groups_table): Return
15049 htab_up. Don't allocate on obstack.
15050 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
15051 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
15052 Change type to htab_up.
15053
b0b6a987
TT
150542020-02-08 Tom Tromey <tom@tromey.com>
15055
15056 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
15057 Change type to htab_up.
15058 * dwarf2/read.c (create_signatured_type_table_from_index)
15059 (create_signatured_type_table_from_debug_names)
15060 (create_all_type_units, add_type_unit)
15061 (lookup_dwo_signatured_type, lookup_signatured_type)
15062 (process_skeletonless_type_unit): Update.
15063 (create_debug_type_hash_table, create_debug_types_hash_table):
15064 Change type of types_htab.
15065 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
15066 htab_up. Don't allocate on obstack.
15067 (create_cus_hash_table): Change type of cus_htab parameter.
15068 (struct dwo_file) <cus, tus>: Now htab_up.
15069 (lookup_dwo_signatured_type, lookup_dwo_cutu)
15070 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
15071 (queue_and_load_all_dwo_tus): Update.
15072 * dwarf2/index-write.c (write_gdbindex): Update.
15073 (write_debug_names): Update.
15074
39856def
TT
150752020-02-08 Tom Tromey <tom@tromey.com>
15076
15077 * dwarf2/read.h (struct dwarf2_queue_item): Move from
15078 dwarf2/read.c. Remove "next" member. Add constructor ntad
15079 destructor.
15080 (struct dwarf2_per_objfile) <queue>: New member.
15081 * dwarf2/read.c (struct dwarf2_queue_item): Move to
15082 dwarf2/read.h.
15083 (dwarf2_queue, dwarf2_queue_tail): Remove.
15084 (class dwarf2_queue_guard): Add parameter to constructor. Use
15085 DISABLE_COPY_AND_ASSIGN.
15086 <m_per_objfile>: New member.
15087 <~dwarf2_queue_guard>: Rewrite.
15088 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
15089 Update.
15090 (~dwarf2_queue_item): New.
15091
3e225074
TT
150922020-02-08 Tom Tromey <tom@tromey.com>
15093
15094 * dwarf2/read.c (struct die_info) <has_children>: New member.
15095 (dw2_get_file_names_reader): Remove has_children.
15096 (dw2_get_file_names): Update.
15097 (read_cutu_die_from_dwo): Remove has_children.
15098 (cutu_reader::init_tu_and_read_dwo_dies)
15099 (cutu_reader::cutu_reader): Update.
15100 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
15101 Remove has_children.
15102 (build_type_psymtabs_1, process_skeletonless_type_unit)
15103 (load_partial_comp_unit, load_full_comp_unit): Update.
15104 (create_dwo_cu_reader): Remove has_children.
15105 (create_cus_hash_table, read_die_and_children): Update.
15106 (read_full_die_1,read_full_die): Remove has_children.
15107 (read_signatured_type): Update.
15108 (class cutu_reader) <has_children>: Remove.
15109
82ca8957
TT
151102020-02-08 Tom Tromey <tom@tromey.com>
15111
15112 * dwarf2/expr.c: Rename from dwarf2expr.c.
15113 * dwarf2/expr.h: Rename from dwarf2expr.h.
15114 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
15115 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
15116 * dwarf2/frame.c: Rename from dwarf2-frame.c.
15117 * dwarf2/frame.h: Rename from dwarf2-frame.h.
15118 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
15119 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
15120 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
15121 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
15122 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
15123 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
15124 * dwarf2/loc.c: Rename from dwarf2loc.c.
15125 * dwarf2/loc.h: Rename from dwarf2loc.h.
15126 * dwarf2/read.c: Rename from dwarf2read.c.
15127 * dwarf2/read.h: Rename from dwarf2read.h.
15128 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
15129 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
15130 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
15131 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
15132 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
15133 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
15134 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
15135 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
15136 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
15137 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
15138 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
15139 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
15140 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
15141 Update.
15142 * Makefile.in (COMMON_SFILES): Update.
15143 (HFILES_NO_SRCDIR): Update.
15144
9e35d499
TT
151452020-02-08 Tom Tromey <tom@tromey.com>
15146
15147 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
15148 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
15149
1eba2311
TT
151502020-02-08 Tom Tromey <tom@tromey.com>
15151
15152 * dwarf2read.h (struct die_info): Don't declare.
15153
e41c2da2
TT
151542020-02-08 Tom Tromey <tom@tromey.com>
15155
15156 * dwarf2read.h (die_info_ptr): Remove typedef.
15157
4fc6c0d5
TT
151582020-02-08 Tom Tromey <tom@tromey.com>
15159
15160 * dwarf2read.c (read_call_site_scope)
15161 (handle_data_member_location, dwarf2_add_member_fn)
15162 (mark_common_block_symbol_computed, read_common_block)
15163 (attr_to_dynamic_prop, partial_die_info::read)
15164 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
15165 (dwarf2_symbol_mark_computed, set_die_type): Update.
15166 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
15167 method.
15168 (attr_form_is_block): Don't declare.
15169 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
15170
cd6c91b4
TT
151712020-02-08 Tom Tromey <tom@tromey.com>
15172
15173 * dwarf2read.c (dwarf2_find_base_address, )
15174 (read_call_site_scope, rust_containing_type)
15175 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
15176 (handle_data_member_location, dwarf2_add_member_fn)
15177 (get_alignment, read_structure_type, process_structure_scope)
15178 (mark_common_block_symbol_computed, read_common_block)
15179 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
15180 (partial_die_info::read, read_attribute_value, new_symbol)
15181 (lookup_die_type, dwarf2_get_ref_die_offset)
15182 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
15183 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
15184 (dwarf2_symbol_mark_computed): Update.
15185 * dwarf2/attribute.h (struct attribute) <value_as_address,
15186 form_is_section_offset, form_is_constant, form_is_ref>: Declare
15187 methods.
15188 (value_as_address, attr_form_is_section_offset)
15189 (attr_form_is_constant, attr_form_is_ref): Don't declare.
15190 * dwarf2/attribute.c (attribute::value_as_address)
15191 (attribute::form_is_section_offset, attribute::form_is_constant)
15192 (attribute::form_is_ref): Now methods.
15193
162dce55
TT
151942020-02-08 Tom Tromey <tom@tromey.com>
15195
15196 * dwarf2read.c (struct attribute, DW_STRING)
15197 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
15198 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
15199 (attr_form_is_block, attr_form_is_section_offset)
15200 (attr_form_is_constant, attr_form_is_ref): Move.
15201 * dwarf2/attribute.h: New file.
15202 * dwarf2/attribute.c: New file, from dwarf2read.c.
15203 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
15204
3054dd54
TT
152052020-02-08 Tom Tromey <tom@tromey.com>
15206
15207 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
15208 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
15209 Move.
15210 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
15211 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
15212 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
15213 abbrev.c.
15214 * dwarf2/abbrev.h: New file.
15215 * dwarf2/abbrev.c: New file, from dwarf2read.c.
15216 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
15217
96b79293
TT
152182020-02-08 Tom Tromey <tom@tromey.com>
15219
15220 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
15221 (dwarf2_section_size, dwarf2_get_section_info)
15222 (create_signatured_type_table_from_debug_names)
15223 (create_addrmap_from_aranges, read_debug_names_from_section)
15224 (get_gdb_index_contents_from_section, read_comp_unit_head)
15225 (error_check_comp_unit_head, read_abbrev_offset)
15226 (create_debug_type_hash_table, init_cu_die_reader)
15227 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
15228 (read_comp_units_from_section, create_cus_hash_table)
15229 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
15230 (create_dwp_v2_section, dwarf2_rnglists_process)
15231 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
15232 (abbrev_table_read_table, read_indirect_string_at_offset_from)
15233 (read_indirect_string_from_dwz, read_addr_index_1)
15234 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
15235 (dwarf_decode_macro_bytes, dwarf_decode_macros)
15236 (fill_in_loclist_baton): Update.
15237 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
15238 get_containing_section, get_bfd_owner, get_bfd_section,
15239 get_file_name, get_id, get_flags, empty, read>: Declare methods.
15240 (dwarf2_read_section, get_section_name, get_section_file_name)
15241 (get_containing_section, get_section_bfd_owner)
15242 (get_section_bfd_section, get_section_name, get_section_file_name)
15243 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
15244 declare.
15245 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
15246 (dwarf2_section_info::get_bfd_owner)
15247 (dwarf2_section_info::get_bfd_section)
15248 (dwarf2_section_info::get_name)
15249 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
15250 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
15251 (dwarf2_section_info::read): Now methods.
15252 * dwarf-index-write.c (class debug_names): Update.
15253
2c86cff9
TT
152542020-02-08 Tom Tromey <tom@tromey.com>
15255
15256 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
15257 Move to dwarf2/section.h.
15258 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
15259 (get_section_bfd_section, get_section_name)
15260 (get_section_file_name, get_section_id, get_section_flags)
15261 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
15262 dwarf2/section.c.
15263 * dwarf2/section.h: New file.
15264 * dwarf2/section.c: New file, from dwarf2read.c.
15265 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
15266
f4382c45
TT
152672020-02-08 Tom Tromey <tom@tromey.com>
15268
15269 * dwarf2read.h (read_unsigned_leb128): Don't declare.
15270 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
15271 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
15272 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
15273 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
15274 * dwarf2/leb.h: New file, from dwarf2read.c.
15275 * dwarf2/leb.c: New file, from dwarf2read.c.
15276 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
15277 Remove.
15278 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
15279 (COMMON_SFILES): Add dwarf2/leb.c.
15280
01840b7a
JB
152812020-02-08 Joel Brobecker <brobecker@adacore.com>
15282
15283 GDB 9.1 released.
15284
dfcb27e4
IB
152852020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15286
15287 PR gdb/25190:
aac66a4c
SM
15288 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
15289 * gdb/remote.c (remote_console_output): Update.
15290 * gdb/ui-file.c (fputs_unfiltered): Rename to...
15291 (ui_file_puts): ...this.
15292 * gdb/ui-file.h (ui_file_puts): Add declaration.
15293 * gdb/utils.c (emit_style_escape): Update.
15294 (flush_wrap_buffer): Update.
15295 (fputs_maybe_filtered): Update.
15296 (fputs_unfiltered): Add function.
dfcb27e4 15297
faa17681
IB
152982020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15299
aac66a4c
SM
15300 * gdb/event-loop.c (gdb_wait_for_event): Update.
15301 * gdb/printcmd.c (printf_command): Update.
15302 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
15303 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
15304 (gdb_os_flush_stderr): Update.
15305 * gdb/remote.c (remote_console_output): Update.
15306 * gdb/ui-file.c (gdb_flush): Rename to...
15307 (ui_file_flush): ...this.
15308 (stderr_file::write): Update.
15309 (stderr_file::puts): Update.
15310 * gdb/ui-file.h (gdb_flush): Rename to...
15311 (ui_file_flush): ...this.
15312 * gdb/utils.c (gdb_flush): Add function.
15313 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 15314
5abbbe1d
TT
153152020-02-07 Tom Tromey <tromey@adacore.com>
15316
15317 PR breakpoints/24915:
15318 * source.c (find_and_open_source): Do not check basenames_may_differ.
15319
919adfe8
TT
153202020-02-07 Tom Tromey <tom@tromey.com>
15321
15322 * README: Update gdbserver documentation.
15323 * gdbserver: Move to top level.
15324 * configure.tgt (build_gdbserver): Remove.
15325 * configure.ac: Remove --enable-gdbserver.
15326 * configure: Rebuild.
15327 * Makefile.in (distclean): Don't mention gdbserver.
15328
1d5d29e7
SV
153292020-02-06 Shahab Vahedi <shahab@synopsys.com>
15330
15331 * source-cache.c (source_cache::ensure): Surround
15332 get_plain_source_lines with a try/catch.
15333 (source_cache::get_line_charpos): Get rid of try/catch
15334 and only check for the return value of "ensure".
15335 * tui/tui-source.c (tui_source_window::set_contents):
15336 Simplify "nlines" calculation.
15337
6eb1129c
SV
153382020-02-06 Shahab Vahedi <shahab@synopsys.com>
15339
15340 * MAINTAINERS (Write After Approval): Add myself.
15341
c6a42d11
CB
153422020-02-05 Christian Biesinger <cbiesinger@google.com>
15343
15344 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
15345 function call.
15346
c8ecdda6
CB
153472020-02-05 Christian Biesinger <cbiesinger@google.com>
15348
15349 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
15350
f6480e70
MR
153512020-02-05 Maciej W. Rozycki <macro@wdc.com>
15352
15353 * nat/riscv-linux-tdesc.h: New file.
15354 * nat/riscv-linux-tdesc.c: New file, taking code from...
15355 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
15356 ... here.
15357 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
15358 NATDEPFILES.
15359
dcc9fbc6
AB
153602020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
15361
15362 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
15363 we don't set the fake simulator ptid to the null_ptid.
15364
719546c4
SM
153652020-02-03 Simon Marchi <simon.marchi@efficios.com>
15366
15367 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
15368 * gdbthread.h (class thread_info) <resumed>: Likewise.
15369 * infrun.c (resume_1): Likewise.
15370 (proceed): Likewise.
15371 (infrun_thread_stop_requested): Likewise.
15372 (stop_all_threads): Likewise.
15373 (handle_inferior_event): Likewise.
15374 (restart_threads): Likewise.
15375 (finish_step_over): Likewise.
15376 (keep_going_stepped_thread): Likewise.
15377 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
15378 (linux_handle_extended_wait): Likewise.
15379 * record-btrace.c (get_thread_current_frame_id): Likewise.
15380 * record-full.c (record_full_wait_1): Likewise.
15381 * remote.c (remote_target::process_initial_stop_replies): Likewise.
15382 * target.c (target_resume): Likewise.
15383 * thread.c (set_running_thread): Likewise.
15384
e409c542
AKS
153852020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15386
15387 * f-valprint.c (f77_print_array_1): Changed datatype of index
15388 variable to LONGEST from int to enable it to contain bound
15389 values correctly.
15390
ee98c0da
MR
153912020-02-03 Maciej W. Rozycki <macro@wdc.com>
15392
15393 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
15394 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
15395 offsets according to FLEN determined.
15396 (riscv_linux_nat_target::read_description): Determine FLEN
15397 dynamically.
15398 (riscv_linux_nat_target::fetch_registers): Size regset buffer
15399 according to FLEN determined.
15400 (riscv_linux_nat_target::store_registers): Likewise.
15401
aa66aac4
SV
154022020-02-01 Shahab Vahedi <shahab@synopsys.com>
15403
15404 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
15405 when reg->group is empty and reggroup is not.
15406
fd9faca8
TT
154072020-01-31 Tom Tromey <tromey@adacore.com>
15408
15409 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
15410 Call beneath target's mourn_inferior after unpushing.
15411
42330a68
AB
154122020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15413
15414 PR tui/9765
15415 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
15416 have enough lines to fill the screen, still return the lowest
15417 address we found.
15418
7a27a45b
AB
154192020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15420
15421 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
15422 '-', '<', and '>' commands.
15423
c47f70e2
PA
154242020-01-29 Pedro Alves <palves@redhat.com>
15425 Sergio Durigan Junior <sergiodj@redhat.com>
15426
15427 * infcmd.c (construct_inferior_arguments): Assert that
15428 'argc' is greater than 0.
15429
5133a315
LM
154302020-01-29 Luis Machado <luis.machado@linaro.org>
15431
15432 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
15433 (BRK_INSN_MASK): Define to 0xd4200000.
15434 (aarch64_program_breakpoint_here_p): New function.
15435 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
15436 * arch-utils.c (default_program_breakpoint_here_p): Moved from
15437 breakpoint.c.
15438 * arch-utils.h (default_program_breakpoint_here_p): Moved from
15439 breakpoint.h
15440 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
15441 call gdbarch_program_breakpoint_here_p.
15442 (program_breakpoint_here): Moved to arch-utils.c, renamed to
15443 default_program_breakpoint_here_p, changed return type to bool and
15444 simplified.
15445 * breakpoint.h (program_breakpoint_here): Moved prototype to
15446 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
15447 return type to bool.
15448 * gdbarch.c: Regenerate.
15449 * gdbarch.h: Regenerate.
15450 * gdbarch.sh (program_breakpoint_here_p): New method.
15451 * infrun.c (handle_signal_stop): Call
15452 gdbarch_program_breakpoint_here_p.
15453
168f8c6b
TT
154542020-01-26 Tom Tromey <tom@tromey.com>
15455
15456 * ctfread.c (struct ctf_fp_info): Reindent.
15457 (_initialize_ctfread): Remove.
15458
128a391f
TT
154592020-01-26 Tom Tromey <tom@tromey.com>
15460
15461 * psymtab.c (partial_map_expand_apply)
15462 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
15463 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
15464 (psym_print_stats, psym_expand_symtabs_for_function)
15465 (psym_map_symbol_filenames, psym_map_matching_symbols)
15466 (psym_expand_symtabs_matching)
15467 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
15468 (maintenance_check_psymtabs): Use new methods.
15469 * psympriv.h (struct partial_symtab) <readin_p,
15470 get_compunit_symtab>: New methods.
15471 <readin, compunit_symtab>: Remove members.
15472 (struct standard_psymtab): New.
15473 (struct legacy_psymtab): Derive from standard_psymtab.
15474 * dwarf2read.h (struct dwarf2_psymtab): Derive from
15475 standard_psymtab.
15476 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
15477
0494dbec
TT
154782020-01-26 Tom Tromey <tom@tromey.com>
15479
15480 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
15481 read_dependencies. Add assert.
15482 * psymtab.c (partial_symtab::read_dependencies): New method.
15483 * psympriv.h (struct partial_symtab) <read_dependencies>: New
15484 method.
15485 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
15486 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
15487 read_dependencies.
15488 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
15489 Add assert.
15490
8566b89b
TT
154912020-01-26 Tom Tromey <tom@tromey.com>
15492
15493 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
15494 Call expand_psymtab.
15495 (xcoff_read_symtab): Call expand_psymtab.
15496 (xcoff_start_psymtab, xcoff_end_psymtab): Set
15497 legacy_expand_psymtab.
15498 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
15499 method.
15500 (struct legacy_psymtab) <expand_psymtab>: Implement.
15501 <legacy_expand_psymtab>: New member.
15502 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
15503 (parse_partial_symbols): Set legacy_expand_psymtab.
15504 (psymtab_to_symtab_1): Change argument order. Call
15505 expand_psymtab.
15506 (new_psymtab): Set legacy_expand_psymtab.
15507 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
15508 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
15509 expand_psymtab.
15510 (dwarf2_psymtab::expand_psymtab): Rename from
15511 psymtab_to_symtab_1. Call expand_psymtab.
15512 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
15513 (dbx_end_psymtab): Likewise.
15514 (dbx_psymtab_to_symtab_1): Change argument order. Call
15515 expand_psymtab.
15516 (dbx_read_symtab): Call expand_psymtab.
15517 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
15518 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
15519 (ctf_psymtab::read_symtab): Call expand_psymtab.
15520
077cbab2
TT
155212020-01-26 Tom Tromey <tom@tromey.com>
15522
15523 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
15524 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
15525 messages.
15526 * mdebugread.c (mdebug_read_symtab): Remove prints.
15527 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
15528 assert.
15529 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
15530
891813be
TT
155312020-01-26 Tom Tromey <tom@tromey.com>
15532
15533 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
15534 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
15535 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
15536 legacy_symtab.
15537 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
15538 * psymtab.c (psymtab_to_symtab): Call method.
15539 (dump_psymtab): Update.
15540 * psympriv.h (struct partial_symtab): Add virtual destructor.
15541 <read_symtab>: New method.
15542 (struct legacy_symtab): New.
15543 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
15544 (struct pst_map) <pst>: Now a legacy_psymtab.
15545 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
15546 (new_psymtab): Use legacy_psymtab.
15547 * dwarf2read.h (struct dwarf2_psymtab): New.
15548 (struct dwarf2_per_cu_data) <psymtab>: Use it.
15549 * dwarf2read.c (dwarf2_create_include_psymtab)
15550 (dwarf2_build_include_psymtabs, create_type_unit_group)
15551 (create_partial_symtab, process_psymtab_comp_unit_reader)
15552 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
15553 (set_partial_user): Use dwarf2_psymtab.
15554 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
15555 (psymtab_to_symtab_1, process_full_comp_unit)
15556 (process_full_type_unit, dwarf2_ranges_read)
15557 (dwarf2_get_pc_bounds, psymtab_include_file_name)
15558 (dwarf_decode_lines): Use dwarf2_psymtab.
15559 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
15560 (add_address_entry_worker, write_one_signatured_type)
15561 (recursively_count_psymbols, recursively_write_psymbols)
15562 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
15563 (write_debug_names): Likewise.
15564 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
15565 <pst>: Now a legacy_psymtab.
15566 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
15567 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
15568 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
15569 * ctfread.c (struct ctf_psymtab): New.
15570 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
15571 ctf_psymtab.
15572 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
15573 (create_partial_symtab): Return a ctf_psymtab.
15574 (scan_partial_symbols): Update.
15575
c3693a1d
TT
155762020-01-26 Tom Tromey <tom@tromey.com>
15577
15578 * xcoffread.c (xcoff_start_psymtab): Use new.
15579 * psymtab.c (partial_symtab::partial_symtab): New constructor,
15580 renamed from start_psymtab_common.
15581 * psympriv.h (struct partial_symtab): Add new constructor.
15582 (start_psymtab_common): Don't declare.
15583 * mdebugread.c (parse_partial_symbols): Use new.
15584 * dwarf2read.c (create_partial_symtab): Use new.
15585 * dbxread.c (start_psymtab): Use new.
15586 * ctfread.c (create_partial_symtab): Use new.
15587
32caafd0
TT
155882020-01-26 Tom Tromey <tom@tromey.com>
15589
15590 * xcoffread.c (xcoff_end_psymtab): Use new.
15591 * psymtab.c (start_psymtab_common): Use new.
15592 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
15593 Update.
15594 * psympriv.h (struct partial_symtab): Add parameters to
15595 constructor. Don't inline.
15596 (allocate_psymtab): Don't declare.
15597 * mdebugread.c (new_psymtab): Use new.
15598 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
15599 * dbxread.c (dbx_end_psymtab): Use new.
15600
abaa2f23
TT
156012020-01-26 Tom Tromey <tom@tromey.com>
15602
15603 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
15604 allocate_psymtab. Update documentation.
15605 * psymtab.c (psymtab_storage::install_psymtab): Rename from
15606 allocate_psymtab. Do not use new.
15607 (allocate_psymtab): Use new. Update.
15608
6d94535f
TT
156092020-01-26 Tom Tromey <tom@tromey.com>
15610
15611 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
15612 * psymtab.c (psym_print_stats): Update.
15613 * psympriv.h (struct partial_symtab) <readin,
15614 psymtabs_addrmap_supported, anonymous>: Now bool.
15615 * mdebugread.c (psymtab_to_symtab_1): Update.
15616 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
15617 (build_type_psymtabs_reader, psymtab_to_symtab_1)
15618 (process_full_comp_unit, process_full_type_unit): Update.
15619 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
15620 * ctfread.c (psymtab_to_symtab): Update.
15621
6f17252b
TT
156222020-01-26 Tom Tromey <tom@tromey.com>
15623
15624 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
15625 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
15626 * psymtab.c (psymtab_storage): Delete psymtabs.
15627 (psymtab_storage::allocate_psymtab): Use new.
15628 (psymtab_storage::discard_psymtab): Use delete.
15629 * psympriv.h (struct partial_symtab): Add constructor and
15630 initializers.
15631
f6f1cebc
TT
156322020-01-26 Tom Tromey <tom@tromey.com>
15633
15634 * machoread.c: Do not include psympriv.h.
15635
e47e48f6
PW
156362020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15637
15638 * NEWS: Mention the new option and the set/show commands.
15639
a2fedca9
PW
156402020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15641
15642 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
15643 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
15644 (validate_exec_file): New variables, enums, functions.
15645 (exec_file_locate_attach, print_section_info): Style the filenames.
15646 (_initialize_exec): Install show_exec_file_mismatch_command and
15647 set_exec_file_mismatch_command.
15648 * gdbcore.h (validate_exec_file): Declare.
15649 * infcmd.c (attach_command): Call validate_exec_file.
15650 * remote.c ( remote_target::remote_add_inferior): Likewise.
15651
7ffa82e1
AB
156522020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15653
15654 * frame.c (find_frame_sal): Move call to get_next_frame into more
15655 inner scope.
15656 * inline-frame.c (inilne_state) <inline_state>: Update argument
15657 types.
15658 (inilne_state) <skipped_symbol>: Rename to...
15659 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
15660 (skip_inline_frames): Build vector of skipped symbols and use this
15661 to reate the inline_state.
15662 (inline_skipped_symbol): Add a comment and some assertions, fetch
15663 skipped symbol from the list.
15664
3d92a3e3
AB
156652020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15666
15667 * buildsym.c (lte_is_less_than): Delete.
15668 (buildsym_compunit::end_symtab_with_blockvector): Create local
15669 lambda function to sort line table entries, and use
15670 std::stable_sort instead of std::sort.
15671 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
15672 markers when looking for a previous line.
15673
94a72be7
AB
156742020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15675
15676 * dwarf2read.c (lnp_state_machine::record_line): Include
15677 end_sequence parameter in debug print out. Record the line if we
15678 are at an end_sequence marker even if it's not the start of a
15679 statement.
15680 * symmisc.c (maintenance_print_one_line_table): Print end of
15681 sequence markers with 'END' not '0'.
15682
53af73bf
PA
156832020-01-24 Pedro Alves <palves@redhat.com>
15684
15685 PR gdb/25410
15686 * thread.c (scoped_restore_current_thread::restore): Use
15687 switch_to_inferior_no_thread.
15688 * exec.c: Include "progspace-and-thread.h".
15689 (add_target_sections, remove_target_sections):
15690 scoped_restore_current_pspace_and_thread instead of
15691 scoped_restore_current_thread.
15692 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
15693 and aspace to the inferior before calling clone_program_space.
15694 Remove stale comment.
15695
3050c6f4
CB
156962020-01-24 Christian Biesinger <cbiesinger@google.com>
15697
15698 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
15699 (arm_netbsd_nat_target::fetch_registers): ...this.
15700 (arm_nbsd_nat_target::store_registers): Rename to...
15701 (arm_netbsd_nat_target::store_registers): ...this.
15702
73685c7e
CB
157032020-01-24 Christian Biesinger <cbiesinger@google.com>
15704
15705 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
15706 register_t.
15707
89203d40
CB
157082020-01-24 Christian Biesinger <cbiesinger@google.com>
15709
15710 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
15711 Update comment.
15712 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
15713 Likewise.
15714 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
15715 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
15716 the correct replacement (iterate_over_regset_sections).
15717 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
15718 Update comment.
15719
1ba1ac88
AB
157202020-01-24 Graham Markall <graham.markall@embecosm.com>
15721
15722 PR gdb/23718
15723 * gdb/python/python.c (execute_gdb_command): Call
15724 async_enable_stdin in catch block.
15725
f3364a6d
AB
157262020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15727
15728 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
15729 SWITCH_THRU_ALL_UIS.
15730
733d0a67
AB
157312020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15732
15733 PR tui/9765
15734 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
15735 comment, add extra parameter, and update to store previous symbol
15736 when appropriate.
15737 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
15738 add extra parameter.
15739 * tui/tui-disasm.c (tui_disassemble): Update header comment,
15740 remove unneeded parameter, add try/catch around gdb_print_insn,
15741 rewrite to add items to asm_lines vector.
15742 (tui_find_backward_disassembly_start_address): New function.
15743 (tui_find_disassembly_address): Updated throughout.
15744 (tui_disasm_window::set_contents): Update for changes to
15745 tui_disassemble.
15746 (tui_disasm_window::do_scroll_vertical): No need to adjust the
15747 number of lines to scroll.
15748
b3b3bada
SM
157492020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
15750
15751 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
15752 (SECT_OFF_DATA): Likewise.
15753 (SECT_OFF_RODATA): Likewise.
15754 (SECT_OFF_TEXT): Likewise.
15755 (SECT_OFF_BSS): Likewise.
15756 (struct objfile) <text_section_offset, data_section_offset>: New
15757 methods.
15758 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
15759 objfile::text_section_offset.
15760 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
15761 * coffread.c (coff_symtab_read): Likewise.
15762 (enter_linenos): Likewise.
15763 (process_coff_symbol): Likewise.
15764 * ctfread.c (get_objfile_text_range): Likewise.
15765 * dtrace-probe.c (dtrace_probe::get_relocated_address):
15766 Use objfile::data_section_offset.
15767 * dwarf2-frame.c (execute_cfa_program): Use
15768 objfile::text_section_offset.
15769 (dwarf2_frame_find_fde): Likewise.
15770 * dwarf2read.c (create_addrmap_from_index): Likewise.
15771 (create_addrmap_from_aranges): Likewise.
15772 (dw2_find_pc_sect_compunit_symtab): Likewise.
15773 (process_psymtab_comp_unit_reader): Likewise.
15774 (add_partial_symbol): Likewise.
15775 (add_partial_subprogram): Likewise.
15776 (process_full_comp_unit): Likewise.
15777 (read_file_scope): Likewise.
15778 (read_func_scope): Likewise.
15779 (read_lexical_block_scope): Likewise.
15780 (read_call_site_scope): Likewise.
15781 (dwarf2_rnglists_process): Likewise.
15782 (dwarf2_ranges_process): Likewise.
15783 (dwarf2_ranges_read): Likewise.
15784 (dwarf_decode_lines_1): Likewise.
15785 (new_symbol): Likewise.
15786 (dwarf2_fetch_die_loc_sect_off): Likewise.
15787 (dwarf2_per_cu_text_offset): Likewise.
15788 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
15789 * hppa-tdep.c (read_unwind_info): Likewise.
15790 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
15791 * psympriv.h (struct partial_symtab): Likewise.
15792 * psymtab.c (find_pc_sect_psymtab): Likewise.
15793 * solib-svr4.c (enable_break): Likewise.
15794 * stap-probe.c (relocate_address): Use
15795 objfile::data_section_offset.
15796 * xcoffread.c (enter_line_range): Use
15797 objfile::text_section_offset.
15798 (read_xcoff_symtab): Likewise.
15799
ab53f382
SM
158002020-01-23 Simon Marchi <simon.marchi@efficios.com>
15801
15802 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
15803 declaration to narrower scopes.
15804
e7eee665
SM
158052020-01-23 Simon Marchi <simon.marchi@efficios.com>
15806
15807 * darwin-nat.h (struct darwin_exception_msg, enum
15808 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
15809 Move up.
15810 (class darwin_nat_target) <wait_1, check_new_threads,
15811 decode_exception_message, decode_message, stop_inferior,
15812 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
15813 * darwin-nat.c (darwin_check_new_threads): Rename to...
15814 (darwin_nat_target::check_new_threads): ... this.
15815 (darwin_suspend_inferior_it): Remove.
15816 (darwin_decode_exception_message): Rename to...
15817 (darwin_nat_target::decode_exception_message): ... this.
15818 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
15819 (darwin_decode_message): Rename to...
15820 (darwin_nat_target::decode_message): ... this.
15821 (cancel_breakpoint): Rename to...
15822 (darwin_nat_target::cancel_breakpoint): ... this.
15823 (darwin_wait): Rename to...
15824 (darwin_nat_target::wait_1): ... this. Use range-based for loop
15825 instead of iterate_over_inferiors.
15826 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
15827 (darwin_stop_inferior): Rename to...
15828 (darwin_nat_target::stop_inferior): ... this.
15829 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
15830 (darwin_init_thread_list): Rename to...
15831 (darwin_nat_target::init_thread_list): ... this.
15832 (darwin_ptrace_him): Rename to...
15833 (darwin_nat_target::ptrace_him): ... this.
15834 (darwin_nat_target::create_inferior): Pass lambda function to
15835 fork_inferior.
15836 (darwin_nat_target::detach): Call stop_inferior instead of
15837 darwin_stop_inferior.
15838 * fork-inferior.h (fork_inferior): Change init_trace_fun
15839 parameter to gdb::function_view.
15840 * fork-inferior.c (fork_inferior): Likewise.
15841
c162ed3e
HD
158422020-01-23 Hannes Domani <ssbssa@yahoo.de>
15843
15844 * i386-cygwin-tdep.c (core_process_module_section): Update.
15845 * windows-nat.c (struct lm_info_windows): Add text_offset.
15846 (windows_xfer_shared_libraries): Update.
15847 * windows-tdep.c (windows_xfer_shared_library):
15848 Add text_offset_cached argument.
15849 * windows-tdep.h (windows_xfer_shared_library): Update.
15850
a1237872
SM
158512020-01-21 Simon Marchi <simon.marchi@efficios.com>
15852
15853 * gdbarch.sh: Add declaration for _initialize_gdbarch.
15854
b3ee6dd9
SM
158552020-01-21 Simon Marchi <simon.marchi@efficios.com>
15856
15857 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
15858 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
15859 replace with range-based for.
15860 (gdbsim_interrupt_inferior): Remove.
15861 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
15862 with a range-based for. Inline code from
15863 gdbsim_interrupt_inferior.
15864
f9fac3c8
SM
158652020-01-21 Simon Marchi <simon.marchi@efficios.com>
15866
15867 * infrun.c (proceed): Fix indentation.
15868
f6474de9
TT
158692020-01-21 Tom Tromey <tromey@adacore.com>
15870
15871 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
15872 * python/python.c (python_extension_ops): Update.
15873 (gdbpy_colorize): New function.
15874 * python/lib/gdb/__init__.py (colorize): New function.
15875 * extension.h (ext_lang_colorize): Declare.
15876 * extension.c (ext_lang_colorize): New function.
15877 * extension-priv.h (struct extension_language_ops) <colorize>: New
15878 member.
15879 * cli/cli-style.c (_initialize_cli_style): Update help text.
15880
f0c702d4
LM
158812020-01-21 Luis Machado <luis.machado@linaro.org>
15882
15883 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
15884 <cond>: Change type to bool.
15885 (aarch64_displaced_step_b_cond): Update cond to use bool type.
15886 (aarch64_displaced_step_cb): Likewise.
15887 (aarch64_displaced_step_tb): Likewise.
15888
1ab139e5
LM
158892020-01-21 Luis Machado <luis.machado@linaro.org>
15890
15891 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
15892 output.
15893
0c271889
LM
158942020-01-21 Luis Machado <luis.machado@linaro.org>
15895
15896 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
15897 <pc_adjust>: Adjust the documentation.
15898 (aarch64_displaced_step_fixup): Check if PC really moved before
15899 adjusting it.
15900
4d89c1c7
TT
159012020-01-19 Tom Tromey <tom@tromey.com>
15902
15903 * disasm.c (~gdb_disassembler): New destructor.
15904 (gdb_buffered_insn_length): Call disassemble_free_target.
15905 * disasm.h (class gdb_disassembler): Declare destructor. Use
15906 DISABLE_COPY_AND_ASSIGN.
15907
c0ab21c2
TT
159082020-01-19 Tom Tromey <tom@tromey.com>
15909
15910 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
15911 (die_reader_func_ftype): Remove.
15912 (cutu_reader): New class.
15913 (dw2_get_file_names_reader): Remove "data" parameter.
15914 (dw2_get_file_names): Use cutu_reader.
15915 (create_debug_type_hash_table): Update.
15916 (read_cutu_die_from_dwo): Update comment.
15917 (lookup_dwo_unit): Add dwo_name parameter.
15918 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
15919 die_reader_func_ftype and data parameters.
15920 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
15921 Remove die_reader_func_ftype and data parameters.
15922 (~cutu_reader): New; from init_cutu_and_read_dies.
15923 (cutu_reader::cutu_reader): Rename from
15924 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
15925 and data parameters.
15926 (init_cutu_and_read_dies_simple): Remove.
15927 (struct process_psymtab_comp_unit_data): Remove.
15928 (process_psymtab_comp_unit_reader): Remove data parameter; add
15929 want_partial_unit and pretend_language parameters.
15930 (process_psymtab_comp_unit): Use cutu_reader.
15931 (build_type_psymtabs_reader): Remove data parameter.
15932 (build_type_psymtabs_1): Use cutu_reader.
15933 (process_skeletonless_type_unit): Likewise.
15934 (load_partial_comp_unit_reader): Remove.
15935 (load_partial_comp_unit): Use cutu_reader.
15936 (load_full_comp_unit_reader): Remove.
15937 (load_full_comp_unit): Use cutu_reader.
15938 (struct create_dwo_cu_data): Remove.
15939 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
15940 dwo_unit parameters.
15941 (create_cus_hash_table): Use cutu_reader.
15942 (struct dwarf2_read_addr_index_data): Remove.
15943 (dwarf2_read_addr_index_reader): Remove.
15944 (dwarf2_read_addr_index): Use cutu_reader.
15945 (read_signatured_type_reader): Remove.
15946 (read_signatured_type): Use cutu_reader.
15947
45bbae5c
TT
159482020-01-19 Tom Tromey <tom@tromey.com>
15949
15950 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
15951 * tui/tui-wingeneral.h (class tui_suppress_output): New.
15952 (tui_wrefresh): Declare.
15953 * tui/tui-wingeneral.c (suppress_output): New global.
15954 (tui_suppress_output, ~tui_suppress_output): New constructor and
15955 destructor.
15956 (tui_wrefresh): New function.
15957 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
15958 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
15959 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
15960 method.
15961 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
15962 tui_wrefresh.
15963 (tui_data_window::no_refresh): New method.
15964 (tui_data_item_window::refresh_window): Call tui_wrefresh.
15965 (tui_reg_command): Use tui_suppress_output
15966 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
15967 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
15968 method.
15969 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
15970
4f13c1c0
TT
159712020-01-19 Tom Tromey <tom@tromey.com>
15972
15973 * tui/tui-winsource.c (tui_update_source_windows_with_line):
15974 Handle case where symtab is null.
15975
fa47e446
SM
159762020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
15977
15978 * linux-fork.c (one_fork_p): Simplify.
15979
26f42329
SM
159802020-01-17 Simon Marchi <simon.marchi@efficios.com>
15981
15982 * top.c (struct qt_args): Remove.
15983 (kill_or_detach): Change return type to void, replace `void *`
15984 parameter with a proper one.
15985 (print_inferior_quit_action): Likewise.
15986 (quit_confirm): Use range-based for loop to iterate over inferiors.
15987 (quit_force): Likewise.
15988
a9ac81b1
SM
159892020-01-17 Simon Marchi <simon.marchi@efficios.com>
15990
15991 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
15992 `void *` parameter with proper parameters.
15993 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
15994 (print_one_inferior): Change return type to void, replace `void *`
15995 parameter with proper parameters.
15996 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
15997 inferiors.
15998 (get_other_inferior): Remove.
15999 (mi_cmd_remove_inferior): Use range-based loop to iterate over
16000 inferiors.
16001
788eca49
SM
160022020-01-17 Simon Marchi <simon.marchi@efficios.com>
16003
16004 * mi/mi-interp.c (report_initial_inferior): Remove.
16005 (mi_interp::init): Use range-based for to iterate over inferiors.
16006
d9bc85b6
SM
160072020-01-17 Simon Marchi <simon.marchi@efficios.com>
16008
16009 * python/py-inferior.c (build_inferior_list): Remove.
16010 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
16011
40c94099
CB
160122020-01-16 Christian Biesinger <cbiesinger@google.com>
16013
16014 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
16015 (btrace_stitch_trace): Likewise.
16016 * charset.c (intermediate_encoding): Likewise (vaild).
16017 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
16018 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
16019 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
16020
e0cdfe3c
HD
160212020-01-16 Hannes Domani <ssbssa@yahoo.de>
16022
16023 * windows-tdep.c (windows_get_tlb_type):
16024 Add rtl_user_process_parameters type.
16025
790f1718 160262020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 16027 Norbert Lange <nolange79@gmail.com>
790f1718
PA
16028
16029 PR build/24805
16030 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
16031 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
16032 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
16033 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
16034 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
16035 (ps_plog): Redeclare exported functions with default visibility.
16036
3112ed97
NA
160372020-01-16 Nitika Achra <Nitika.Achra@amd.com>
16038
16039 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
16040 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
16041
8dc3273e
SM
160422020-01-15 Simon Marchi <simon.marchi@efficios.com>
16043
16044 * infcmd.c (post_create_inferior): Use get_thread_regcache
16045 instead of get_current_regcache.
16046
ff47f4f0
TT
160472020-01-14 Tom Tromey <tom@tromey.com>
16048
16049 PR symtab/12535:
16050 * python/python.c (gdbpy_decode_line): Treat empty string the same
16051 as no argument.
16052
975f45b7
TT
160532020-01-14 Tom Tromey <tom@tromey.com>
16054
16055 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
16056
25e57356
TT
160572020-01-14 Tom Tromey <tom@tromey.com>
16058
16059 * nat/linux-btrace.c: Don't include <config.h>.
16060 * nat/linux-ptrace.c: Don't include <config.h>.
16061 * nat/x86-linux-dregs.c: Don't include <config.h>.
16062
05ea2a05
TT
160632020-01-14 Tom Tromey <tom@tromey.com>
16064
16065 * configure: Rebuild.
16066 * configure.ac: Move many checks to ../gdbsupport/common.m4.
16067
01027315
TT
160682020-01-14 Tom Tromey <tom@tromey.com>
16069
16070 * nat/x86-linux-dregs.c: Include configh.h.
16071 * nat/linux-ptrace.c: Include configh.h.
16072 * nat/linux-btrace.c: Include configh.h.
16073 * defs.h: Include config.h, bfd.h.
16074 * configure.ac: Don't source common.host.
16075 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
16076 * configure: Rebuild.
16077 * acinclude.m4: Update path.
16078 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
16079 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
16080 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
16081 (CLIBS): Add LIBSUPPORT.
16082 (CDEPS): Likewise.
16083 (COMMON_SFILES): Remove gdbsupport files.
16084 (HFILES_NO_SRCDIR): Likewise.
16085 (stamp-version): Update path to create-version.sh.
16086 (ALLDEPFILES): Remove gdbsupport files.
16087
b2ceabe8
TT
160882020-01-14 Tom Tromey <tom@tromey.com>
16089
16090 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
16091 USE_WIN32API when needed.
16092 * configure.ac (USE_WIN32API): Don't define.
16093 (WIN32LIBS): Use WIN32APILIBS.
16094 * configure: Rebuild.
16095
25c51f71
TT
160962020-01-14 Tom Tromey <tom@tromey.com>
16097
16098 * configure: Rebuild.
16099 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
16100
717c684d
BE
161012020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
16102
16103 * skip.c (skip_function_command): Make skip w/o arguments use the
16104 name of the inlined function if pc is inside any inlined function.
16105
7da6a5b9
LM
161062020-01-14 Luis Machado <luis.machado@linaro.org>
16107
16108 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
16109 * infrun.c (resume_1): Likewise.
16110 (handle_inferior_event): Remove stale comment.
16111 * linux-nat.c (linux_nat_target::resume): Update comments.
16112 (save_stop_reason): Likewise.
16113 (linux_nat_filter_event): Likewise.
16114 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
16115
44e4c775
AB
161162020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16117
16118 * elfread.c (record_minimal_symbol): Set section index to 0 for
16119 non-allocatable sections.
16120
18a8505e
AT
16121
161222020-01-13 Ali Tamur <tamur@google.com>
16123
16124 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
16125 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
16126 to gdb::optional. Update comments.
16127 (dwo_file): Update comments.
16128 (read_attribute): Update API to take an additional out parameter,
16129 need_reprocess. This is used to mark attributes that need other
16130 attributes (e.g. str_offsets_base) for correct computation which may not
16131 have been read yet.
16132 (read_attribute_reprocess): New function declaration.
16133 (read_addr_index): Likewise.
16134 (read_dwo_str_index): Likewise.
16135 (read_stub_str_index): Likewise.
16136 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
16137 (lookup_addr_base): New function definition.
16138 (lookup_ranges_base): Likewise.
16139 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
16140 lookup_ranges_base.
16141 (init_cutu_and_read_dies): Update comments.
16142 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
16143 unit. This is used to inherit parent's str_offsets_base and addr_base.
16144 Update comments.
16145 (init_cutu_and_read_dies_simple): Reflect API changes.
16146 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
16147 (create_cus_hash_table): Change API to take parent compile unit.
16148 Reflect API changes.
16149 (open_and_init_dwo_file): Reflect API changes.
16150 (dwarf2_get_pc_bounds): Update comments.
16151 (dwarf2_record_block_ranges): Likewise.
16152 (read_full_die_1): Change implementation to reprocess attributes that
16153 need str_offsets_base and addr_base.
16154 (partial_die_info::read): Likewise.
16155 (read_attribute_reprocess): New function definition.
16156 (read_attribute_value): Change API to take an additional out parameter,
16157 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
16158 when a non-dwo compile unit has index based attributes.
16159 (read_attribute): Reflect API changes.
16160 (read_addr_index_1): Reflect API changes. Update comments.
16161 (dwarf2_read_addr_index_data): Reflect API changes.
16162 (dwarf2_read_addr_index): Likewise.
16163 (read_str_index): Change API and implementation. This becomes a helper
16164 to be used by the new string index related methods. Update error
16165 message and comments.
16166 (read_dwo_str_index): New function definition.
16167 (read_stub_str_index): Likewise.
16168 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
16169 * symfile.h (dwarf2_debug_sections): Likewise.
16170 * xcoffread.c (dwarf2_debug_sections): Likewise.
16171
0cac9354
SM
161722020-01-13 Simon Marchi <simon.marchi@efficios.com>
16173
16174 * gdbcore.h (struct core_fns) <core_read_registers>: Change
16175 core_reg_sect type to gdb_byte *.
16176 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
16177 * cris-tdep.c (fetch_core_registers): Likewise.
16178 * corelow.c (core_target::get_core_register_section): Change
16179 type of `contents` to gdb::byte_vector.
16180
9a6d629c
AB
161812020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16182
16183 * tui/tui-wingeneral.c (box_win): Position the title in the center
16184 of the border.
16185
d8b2f9e3
SM
161862020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16187
16188 * corelow.c (core_target::get_core_register_section): Use
16189 std::vector instead of alloca.
16190
bb564c58
SM
161912020-01-13 Simon Marchi <simon.marchi@efficios.com>
16192
16193 * warning.m4: Add -Wmissing-declarations to build_warnings.
16194 * configure: Re-generate.
16195
6b366111
SM
161962020-01-13 Simon Marchi <simon.marchi@efficios.com>
16197
16198 * python/python.c (init__gdb_module): Add declaration.
16199
6c265988
SM
162002020-01-13 Simon Marchi <simon.marchi@efficios.com>
16201
16202 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
16203 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
16204 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
16205 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
16206 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
16207 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
16208 * ada-exp.y (_initialize_ada_exp): Add declaration.
16209 * ada-lang.c (_initialize_ada_language): Add declaration.
16210 * ada-tasks.c (_initialize_tasks): Add declaration.
16211 * agent.c (_initialize_agent): Add declaration.
16212 * aix-thread.c (_initialize_aix_thread): Add declaration.
16213 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
16214 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
16215 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
16216 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
16217 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
16218 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
16219 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
16220 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
16221 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
16222 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
16223 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
16224 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
16225 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
16226 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
16227 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
16228 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
16229 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
16230 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
16231 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
16232 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
16233 * annotate.c (_initialize_annotate): Add declaration.
16234 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
16235 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
16236 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
16237 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
16238 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
16239 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
16240 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
16241 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
16242 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
16243 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
16244 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
16245 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
16246 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
16247 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
16248 * auto-load.c (_initialize_auto_load): Add declaration.
16249 * auxv.c (_initialize_auxv): Add declaration.
16250 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
16251 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
16252 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
16253 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
16254 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
16255 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
16256 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
16257 * breakpoint.c (_initialize_breakpoint): Add declaration.
16258 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
16259 * btrace.c (_initialize_btrace): Add declaration.
16260 * charset.c (_initialize_charset): Add declaration.
16261 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
16262 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
16263 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
16264 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
16265 * cli/cli-script.c (_initialize_cli_script): Add declaration.
16266 * cli/cli-style.c (_initialize_cli_style): Add declaration.
16267 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
16268 * coffread.c (_initialize_coffread): Add declaration.
16269 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
16270 * compile/compile.c (_initialize_compile): Add declaration.
16271 * complaints.c (_initialize_complaints): Add declaration.
16272 * completer.c (_initialize_completer): Add declaration.
16273 * copying.c (_initialize_copying): Add declaration.
16274 * corefile.c (_initialize_core): Add declaration.
16275 * corelow.c (_initialize_corelow): Add declaration.
16276 * cp-abi.c (_initialize_cp_abi): Add declaration.
16277 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
16278 * cp-support.c (_initialize_cp_support): Add declaration.
16279 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
16280 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
16281 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
16282 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
16283 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
16284 * ctfread.c (_initialize_ctfread): Add declaration.
16285 * d-lang.c (_initialize_d_language): Add declaration.
16286 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
16287 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
16288 * dbxread.c (_initialize_dbxread): Add declaration.
16289 * dcache.c (_initialize_dcache): Add declaration.
16290 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
16291 * disasm.c (_initialize_disasm): Add declaration.
16292 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
16293 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
16294 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
16295 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
16296 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
16297 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
16298 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
16299 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
16300 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
16301 * elfread.c (_initialize_elfread): Add declaration.
16302 * exec.c (_initialize_exec): Add declaration.
16303 * extension.c (_initialize_extension): Add declaration.
16304 * f-lang.c (_initialize_f_language): Add declaration.
16305 * f-valprint.c (_initialize_f_valprint): Add declaration.
16306 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
16307 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
16308 * filesystem.c (_initialize_filesystem): Add declaration.
16309 * findcmd.c (_initialize_mem_search): Add declaration.
16310 * findvar.c (_initialize_findvar): Add declaration.
16311 * fork-child.c (_initialize_fork_child): Add declaration.
16312 * frame-base.c (_initialize_frame_base): Add declaration.
16313 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
16314 * frame.c (_initialize_frame): Add declaration.
16315 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
16316 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
16317 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
16318 * gcore.c (_initialize_gcore): Add declaration.
16319 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
16320 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
16321 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
16322 * gdbarch.c (_initialize_gdbarch): Add declaration.
16323 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
16324 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
16325 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
16326 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
16327 * go-lang.c (_initialize_go_language): Add declaration.
16328 * go32-nat.c (_initialize_go32_nat): Add declaration.
16329 * guile/guile.c (_initialize_guile): Add declaration.
16330 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
16331 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
16332 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
16333 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
16334 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
16335 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
16336 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
16337 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
16338 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
16339 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
16340 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
16341 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
16342 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
16343 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
16344 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
16345 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
16346 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
16347 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
16348 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
16349 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
16350 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
16351 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
16352 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
16353 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
16354 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
16355 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
16356 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
16357 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
16358 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
16359 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
16360 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
16361 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
16362 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
16363 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
16364 * infcall.c (_initialize_infcall): Add declaration.
16365 * infcmd.c (_initialize_infcmd): Add declaration.
16366 * inflow.c (_initialize_inflow): Add declaration.
16367 * infrun.c (_initialize_infrun): Add declaration.
16368 * interps.c (_initialize_interpreter): Add declaration.
16369 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
16370 * jit.c (_initialize_jit): Add declaration.
16371 * language.c (_initialize_language): Add declaration.
16372 * linux-fork.c (_initialize_linux_fork): Add declaration.
16373 * linux-nat.c (_initialize_linux_nat): Add declaration.
16374 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
16375 * linux-thread-db.c (_initialize_thread_db): Add declaration.
16376 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
16377 * m2-lang.c (_initialize_m2_language): Add declaration.
16378 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
16379 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
16380 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
16381 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
16382 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
16383 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
16384 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
16385 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
16386 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
16387 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
16388 * machoread.c (_initialize_machoread): Add declaration.
16389 * macrocmd.c (_initialize_macrocmd): Add declaration.
16390 * macroscope.c (_initialize_macroscope): Add declaration.
16391 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
16392 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
16393 * maint.c (_initialize_maint_cmds): Add declaration.
16394 * mdebugread.c (_initialize_mdebugread): Add declaration.
16395 * memattr.c (_initialize_mem): Add declaration.
16396 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
16397 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
16398 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
16399 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
16400 * mi/mi-main.c (_initialize_mi_main): Add declaration.
16401 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
16402 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
16403 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
16404 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
16405 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
16406 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
16407 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
16408 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
16409 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
16410 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
16411 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
16412 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
16413 * mipsread.c (_initialize_mipsread): Add declaration.
16414 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
16415 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
16416 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
16417 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
16418 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
16419 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
16420 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
16421 * nto-procfs.c (_initialize_procfs): Add declaration.
16422 * objc-lang.c (_initialize_objc_language): Add declaration.
16423 * observable.c (_initialize_observer): Add declaration.
16424 * opencl-lang.c (_initialize_opencl_language): Add declaration.
16425 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
16426 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
16427 * osabi.c (_initialize_gdb_osabi): Add declaration.
16428 * osdata.c (_initialize_osdata): Add declaration.
16429 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
16430 * parse.c (_initialize_parse): Add declaration.
16431 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
16432 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
16433 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
16434 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
16435 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
16436 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
16437 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
16438 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
16439 * printcmd.c (_initialize_printcmd): Add declaration.
16440 * probe.c (_initialize_probe): Add declaration.
16441 * proc-api.c (_initialize_proc_api): Add declaration.
16442 * proc-events.c (_initialize_proc_events): Add declaration.
16443 * proc-service.c (_initialize_proc_service): Add declaration.
16444 * procfs.c (_initialize_procfs): Add declaration.
16445 * producer.c (_initialize_producer): Add declaration.
16446 * psymtab.c (_initialize_psymtab): Add declaration.
16447 * python/python.c (_initialize_python): Add declaration.
16448 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
16449 * record-btrace.c (_initialize_record_btrace): Add declaration.
16450 * record-full.c (_initialize_record_full): Add declaration.
16451 * record.c (_initialize_record): Add declaration.
16452 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
16453 * regcache.c (_initialize_regcache): Add declaration.
16454 * reggroups.c (_initialize_reggroup): Add declaration.
16455 * remote-notif.c (_initialize_notif): Add declaration.
16456 * remote-sim.c (_initialize_remote_sim): Add declaration.
16457 * remote.c (_initialize_remote): Add declaration.
16458 * reverse.c (_initialize_reverse): Add declaration.
16459 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
16460 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
16461 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
16462 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
16463 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
16464 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
16465 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
16466 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
16467 Add declaration.
16468 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
16469 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
16470 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
16471 * rust-exp.y (_initialize_rust_exp): Add declaration.
16472 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
16473 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
16474 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
16475 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
16476 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
16477 * score-tdep.c (_initialize_score_tdep): Add declaration.
16478 * ser-go32.c (_initialize_ser_dos): Add declaration.
16479 * ser-mingw.c (_initialize_ser_windows): Add declaration.
16480 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
16481 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
16482 * ser-uds.c (_initialize_ser_socket): Add declaration.
16483 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
16484 * serial.c (_initialize_serial): Add declaration.
16485 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
16486 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
16487 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
16488 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
16489 * skip.c (_initialize_step_skip): Add declaration.
16490 * sol-thread.c (_initialize_sol_thread): Add declaration.
16491 * solib-aix.c (_initialize_solib_aix): Add declaration.
16492 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
16493 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
16494 * solib-frv.c (_initialize_frv_solib): Add declaration.
16495 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
16496 * solib-target.c (_initialize_solib_target): Add declaration.
16497 * solib.c (_initialize_solib): Add declaration.
16498 * source-cache.c (_initialize_source_cache): Add declaration.
16499 * source.c (_initialize_source): Add declaration.
16500 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
16501 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
16502 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
16503 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
16504 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
16505 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
16506 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
16507 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
16508 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
16509 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
16510 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
16511 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
16512 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
16513 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
16514 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
16515 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
16516 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
16517 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
16518 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
16519 * stabsread.c (_initialize_stabsread): Add declaration.
16520 * stack.c (_initialize_stack): Add declaration.
16521 * stap-probe.c (_initialize_stap_probe): Add declaration.
16522 * std-regs.c (_initialize_frame_reg): Add declaration.
16523 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
16524 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
16525 * symfile.c (_initialize_symfile): Add declaration.
16526 * symmisc.c (_initialize_symmisc): Add declaration.
16527 * symtab.c (_initialize_symtab): Add declaration.
16528 * target.c (_initialize_target): Add declaration.
16529 * target-connection.c (_initialize_target_connection): Add
16530 declaration.
16531 * target-dcache.c (_initialize_target_dcache): Add declaration.
16532 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
16533 * thread.c (_initialize_thread): Add declaration.
16534 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
16535 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
16536 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
16537 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
16538 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
16539 * tracectf.c (_initialize_ctf): Add declaration.
16540 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
16541 * tracefile.c (_initialize_tracefile): Add declaration.
16542 * tracepoint.c (_initialize_tracepoint): Add declaration.
16543 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
16544 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
16545 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
16546 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
16547 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
16548 * tui/tui-win.c (_initialize_tui_win): Add declaration.
16549 * tui/tui.c (_initialize_tui): Add declaration.
16550 * typeprint.c (_initialize_typeprint): Add declaration.
16551 * ui-style.c (_initialize_ui_style): Add declaration.
16552 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
16553 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
16554 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
16555 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
16556 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
16557 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
16558 * unittests/filtered_iterator-selftests.c
16559 (_initialize_filtered_iterator_selftests): Add declaration.
16560 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
16561 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
16562 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
16563 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
16564 * unittests/main-thread-selftests.c
16565 (_initialize_main_thread_selftests): Add declaration.
16566 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
16567 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
16568 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
16569 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
16570 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
16571 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
16572 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
16573 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
16574 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
16575 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
16576 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
16577 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
16578 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
16579 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
16580 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
16581 declaration.
16582 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
16583 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
16584 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
16585 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
16586 * user-regs.c (_initialize_user_regs): Add declaration.
16587 * utils.c (_initialize_utils): Add declaration.
16588 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
16589 * valops.c (_initialize_valops): Add declaration.
16590 * valprint.c (_initialize_valprint): Add declaration.
16591 * value.c (_initialize_values): Add declaration.
16592 * varobj.c (_initialize_varobj): Add declaration.
16593 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
16594 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
16595 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
16596 * windows-nat.c (_initialize_windows_nat): Add declaration.
16597 (_initialize_check_for_gdb_ini): Add declaration.
16598 (_initialize_loadable): Add declaration.
16599 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
16600 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
16601 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
16602 * xcoffread.c (_initialize_xcoffread): Add declaration.
16603 * xml-support.c (_initialize_xml_support): Add declaration.
16604 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
16605 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
16606 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
16607 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
16608
e2de1eec
SM
166092020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16610
16611 * regformats/regdat.sh: Generate declaration for init function.
16612
e0037b4c
SM
166132020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16614
16615 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
16616 up.
16617 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
16618 close_one_inferior>: New methods.
16619 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
16620 pass down target to find_inferior_pid.
16621 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
16622 Pass down target to find_inferior_ptid.
16623 (gdbsim_target::create_inferior): Pass down target to
16624 add_thread_silent.
16625 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
16626 target down to find_inferior_ptid and switch_to_thread.
16627 (gdbsim_target::close): Update to call close_one_inferior.
16628 (struct resume_data): Remove.
16629 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
16630 directly, rather than through a void pointer.
16631 (gdbsim_target::resume): Update to call resume_one_inferior.
16632
58920b5b
SM
166332020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
16634
16635 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
16636
4ec89149
PA
166372020-01-12 Pedro Alves <palves@redhat.com>
16638
16639 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
16640 directly for the current inferior instead of
16641 discard_all_inferiors.
16642 (discard_all_inferiors): Delete.
16643
7c392d1d
TT
166442020-01-11 Tom Tromey <tom@tromey.com>
16645
16646 * tui/tui-wingeneral.c (box_win): Check cli_styling.
16647 * tui/tui-winsource.c (tui_source_window_base::refill): Use
16648 deprecated_safe_get_selected_frame.
16649
d9ebdab7
TBA
166502020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16651
16652 * inferior.c (print_inferior): Switch inferior before printing it.
16653
f3c469b9
PA
166542020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
16655 Pedro Alves <palves@redhat.com>
16656
16657 * progspace-and-thread.c (switch_to_program_space_and_thread):
16658 Assert there's an inferior for PSPACE. Use
16659 switch_to_inferior_no_thread to switch the inferior too.
16660 * progspace.c (program_space::~program_space): Call
16661 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
16662 (program_space::free_all_objfiles): Don't call clear_symtab_users
16663 here.
16664 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
16665
65c574f6
PA
166662020-01-10 Pedro Alves <palves@redhat.com>
16667
16668 * NEWS: Mention multi-target debugging, "info connections", and
16669 "add-inferior -no-connection".
16670
2f4fcf00
PA
166712020-01-10 Pedro Alves <palves@redhat.com>
16672
16673 * infrun.c: Include "target-connection.h".
16674 (check_multi_target_resumption): New.
16675 (proceed): Call it.
16676 * target-connection.c (make_target_connection_string): Make
16677 extern.
16678 * target-connection.h (make_target_connection_string): Declare.
16679
121b3efd
PA
166802020-01-10 Pedro Alves <palves@redhat.com>
16681
16682 * Makefile.in (COMMON_SFILES): Add target-connection.c.
16683 * inferior.c (uiout_field_connection): New function.
16684 (print_inferior): Add new "connection-id" column.
16685 (add_inferior_command): Show connection number/string of added
16686 inferior.
16687 * process-stratum-target.h
16688 (process_stratum_target::connection_string): New virtual method.
16689 (process_stratum_target::connection_number): New field.
16690 * remote.c (remote_target::connection_string): New override.
16691 * target-connection.c: New file.
16692 * target-connection.h: New file.
16693 * target.c (decref_target): Remove process_stratum targets from
16694 the connection list.
16695 (target_stack::push): Add process_stratum targets to the
16696 connection list.
16697
4f837581
PA
166982020-01-10 Pedro Alves <palves@redhat.com>
16699
16700 Revert:
16701 2016-04-12 Pedro Alves <palves@redhat.com>
16702 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
16703 Remove references to name.
16704 * serial.h (struct serial) <name>: Delete.
16705
f4ec508e
PA
167062020-01-10 Pedro Alves <palves@redhat.com>
16707
16708 * gdbarch-selftests.c (register_to_value_test): Remove "target
16709 already pushed" check.
16710
5b6d1e4f
PA
167112020-01-10 Pedro Alves <palves@redhat.com>
16712 John Baldwin <jhb@FreeBSD.org>
16713
16714 * aarch64-linux-nat.c
16715 (aarch64_linux_nat_target::thread_architecture): Adjust.
16716 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
16717 (task_command_1): Likewise.
16718 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
16719 (aix_thread_target::wait, aix_thread_target::fetch_registers)
16720 (aix_thread_target::store_registers)
16721 (aix_thread_target::thread_alive): Adjust.
16722 * amd64-fbsd-tdep.c: Include "inferior.h".
16723 (amd64fbsd_get_thread_local_address): Pass down target.
16724 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
16725 thread's gdbarch instead of target_gdbarch.
16726 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
16727 get_last_target_status.
16728 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
16729 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
16730 inferiors.
16731 (update_inserted_breakpoint_locations): Skip if inferiors with no
16732 execution.
16733 (update_global_location_list): When handling moribund locations,
16734 find representative inferior for location's pspace, and use thread
16735 count of its process_stratum target.
16736 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
16737 * bsd-uthread.c (bsd_uthread_target::wait): Use
16738 as_process_stratum_target and adjust thread_change_ptid and
16739 add_thread calls.
16740 (bsd_uthread_target::update_thread_list): Use
16741 as_process_stratum_target and adjust find_thread_ptid,
16742 thread_change_ptid and add_thread calls.
16743 * btrace.c (maint_btrace_packet_history_cmd): Adjust
16744 find_thread_ptid call.
16745 * corelow.c (add_to_thread_list): Adjust add_thread call.
16746 (core_target_open): Adjust add_thread_silent and thread_count
16747 calls.
16748 (core_target::pid_to_str): Adjust find_inferior_ptid call.
16749 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
16750 * event-top.c (async_disconnect): Pop targets from all inferiors.
16751 * exec.c (add_target_sections): Push exec target on all inferiors
16752 sharing the program space.
16753 (remove_target_sections): Remove the exec target from all
16754 inferiors sharing the program space.
16755 (exec_on_vfork): New.
16756 * exec.h (exec_on_vfork): Declare.
16757 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
16758 Pass it down.
16759 (fbsd_nat_target::update_thread_list): Adjust.
16760 (fbsd_nat_target::resume): Adjust.
16761 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
16762 down.
16763 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
16764 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
16765 get_thread_arch_regcache call.
16766 * fork-child.c (gdb_startup_inferior): Pass target down to
16767 startup_inferior and set_executing.
16768 * gdbthread.h (struct process_stratum_target): Forward declare.
16769 (add_thread, add_thread_silent, add_thread_with_info)
16770 (in_thread_list): Add process_stratum_target parameter.
16771 (find_thread_ptid(inferior*, ptid_t)): New overload.
16772 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
16773 parameter.
16774 (all_threads()): Delete overload.
16775 (all_threads, all_non_exited_threads): Add process_stratum_target
16776 parameter.
16777 (all_threads_safe): Use brace initialization.
16778 (thread_count): Add process_stratum_target parameter.
16779 (set_resumed, set_running, set_stop_requested, set_executing)
16780 (threads_are_executing, finish_thread_state): Add
16781 process_stratum_target parameter.
16782 (switch_to_thread): Use is_current_thread.
16783 * i386-fbsd-tdep.c: Include "inferior.h".
16784 (i386fbsd_get_thread_local_address): Pass down target.
16785 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
16786 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
16787 have_inferiors check.
16788 * inf-ptrace.c (inf_ptrace_target::create_inferior)
16789 (inf_ptrace_target::attach): Adjust.
16790 * infcall.c (run_inferior_call): Adjust.
16791 * infcmd.c (run_command_1): Pass target to
16792 scoped_finish_thread_state.
16793 (proceed_thread_callback): Skip inferiors with no execution.
16794 (continue_command): Rename 'all_threads' local to avoid hiding
16795 'all_threads' function. Adjust get_last_target_status call.
16796 (prepare_one_step): Adjust set_running call.
16797 (signal_command): Use user_visible_resume_target. Compare thread
16798 pointers instead of inferior_ptid.
16799 (info_program_command): Adjust to pass down target.
16800 (attach_command): Mark target's 'thread_executing' flag.
16801 (stop_current_target_threads_ns): New, factored out from ...
16802 (interrupt_target_1): ... this. Switch inferior before making
16803 target calls.
16804 * inferior-iter.h
16805 (struct all_inferiors_iterator, struct all_inferiors_range)
16806 (struct all_inferiors_safe_range)
16807 (struct all_non_exited_inferiors_range): Filter on
16808 process_stratum_target too. Remove explicit.
16809 * inferior.c (inferior::inferior): Push dummy target on target
16810 stack.
16811 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
16812 Add process_stratum_target parameter, and pass it down.
16813 (have_live_inferiors): Adjust.
16814 (switch_to_inferior_and_push_target): New.
16815 (add_inferior_command, clone_inferior_command): Handle
16816 "-no-connection" parameter. Use
16817 switch_to_inferior_and_push_target.
16818 (_initialize_inferior): Mention "-no-connection" option in
16819 the help of "add-inferior" and "clone-inferior" commands.
16820 * inferior.h: Include "process-stratum-target.h".
16821 (interrupt_target_1): Use bool.
16822 (struct inferior) <push_target, unpush_target, target_is_pushed,
16823 find_target_beneath, top_target, process_target, target_at,
16824 m_stack>: New.
16825 (discard_all_inferiors): Delete.
16826 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
16827 (all_inferiors, all_non_exited_inferiors): Add
16828 process_stratum_target parameter.
16829 * infrun.c: Include "gdb_select.h" and <unordered_map>.
16830 (target_last_proc_target): New global.
16831 (follow_fork_inferior): Push target on new inferior. Pass target
16832 to add_thread_silent. Call exec_on_vfork. Handle target's
16833 reference count.
16834 (follow_fork): Adjust get_last_target_status call. Also consider
16835 target.
16836 (follow_exec): Push target on new inferior.
16837 (struct execution_control_state) <target>: New field.
16838 (user_visible_resume_target): New.
16839 (do_target_resume): Call target_async.
16840 (resume_1): Set target's threads_executing flag. Consider resume
16841 target.
16842 (commit_resume_all_targets): New.
16843 (proceed): Also consider resume target. Skip threads of inferiors
16844 with no execution. Commit resumtion in all targets.
16845 (start_remote): Pass current inferior to wait_for_inferior.
16846 (infrun_thread_stop_requested): Consider target as well. Pass
16847 thread_info pointer to clear_inline_frame_state instead of ptid.
16848 (infrun_thread_thread_exit): Consider target as well.
16849 (random_pending_event_thread): New inferior parameter. Use it.
16850 (do_target_wait): Rename to ...
16851 (do_target_wait_1): ... this. Add inferior parameter, and pass it
16852 down.
16853 (threads_are_resumed_pending_p, do_target_wait): New.
16854 (prepare_for_detach): Adjust calls.
16855 (wait_for_inferior): New inferior parameter. Handle it. Use
16856 do_target_wait_1 instead of do_target_wait.
16857 (fetch_inferior_event): Adjust. Switch to representative
16858 inferior. Pass target down.
16859 (set_last_target_status): Add process_stratum_target parameter.
16860 Save target in global.
16861 (get_last_target_status): Add process_stratum_target parameter and
16862 handle it.
16863 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
16864 (context_switch): Check inferior_ptid == null_ptid before calling
16865 inferior_thread().
16866 (get_inferior_stop_soon): Pass down target.
16867 (wait_one): Rename to ...
16868 (poll_one_curr_target): ... this.
16869 (struct wait_one_event): New.
16870 (wait_one): New.
16871 (stop_all_threads): Adjust.
16872 (handle_no_resumed, handle_inferior_event): Adjust to consider the
16873 event's target.
16874 (switch_back_to_stepped_thread): Also consider target.
16875 (print_stop_event): Update.
16876 (normal_stop): Update. Also consider the resume target.
16877 * infrun.h (wait_for_inferior): Remove declaration.
16878 (user_visible_resume_target): New declaration.
16879 (get_last_target_status, set_last_target_status): New
16880 process_stratum_target parameter.
16881 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16882 process_stratum_target parameter, and use it.
16883 (clear_inline_frame_state (thread_info*)): New.
16884 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16885 process_stratum_target parameter.
16886 (clear_inline_frame_state (thread_info*)): Declare.
16887 * linux-fork.c (delete_checkpoint_command): Pass target down to
16888 find_thread_ptid.
16889 (checkpoint_command): Adjust.
16890 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
16891 instead of just tweaking inferior_ptid.
16892 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
16893 (exit_lwp): Pass target down to find_thread_ptid.
16894 (attach_proc_task_lwp_callback): Pass target down to
16895 add_thread/set_running/set_executing.
16896 (linux_nat_target::attach): Pass target down to
16897 thread_change_ptid.
16898 (get_detach_signal): Pass target down to find_thread_ptid.
16899 Consider last target status's target.
16900 (linux_resume_one_lwp_throw, resume_lwp)
16901 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
16902 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
16903 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
16904 (linux_nat_target::async_wait_fd): New.
16905 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
16906 target down.
16907 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
16908 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
16909 * linux-thread-db.c (struct thread_db_info::process_target): New
16910 field.
16911 (add_thread_db_info): Save target.
16912 (get_thread_db_info): New process_stratum_target parameter. Also
16913 match target.
16914 (delete_thread_db_info): New process_stratum_target parameter.
16915 Also match target.
16916 (thread_from_lwp): Adjust to pass down target.
16917 (thread_db_notice_clone): Pass down target.
16918 (check_thread_db_callback): Pass down target.
16919 (try_thread_db_load_1): Always push the thread_db target.
16920 (try_thread_db_load, record_thread): Pass target down.
16921 (thread_db_target::detach): Pass target down. Always unpush the
16922 thread_db target.
16923 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
16924 target down. Always unpush the thread_db target.
16925 (find_new_threads_callback, thread_db_find_new_threads_2)
16926 (thread_db_target::update_thread_list): Pass target down.
16927 (thread_db_target::pid_to_str): Pass current inferior down.
16928 (thread_db_target::get_thread_local_address): Pass target down.
16929 (thread_db_target::resume, maintenance_check_libthread_db): Pass
16930 target down.
16931 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
16932 * procfs.c (procfs_target::procfs_init_inferior): Declare.
16933 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
16934 (procfs_init_inferior): Rename to ...
16935 (procfs_target::procfs_init_inferior): ... this and adjust.
16936 (procfs_target::create_inferior, procfs_notice_thread)
16937 (procfs_do_thread_registers): Adjust.
16938 * ppc-fbsd-tdep.c: Include "inferior.h".
16939 (ppcfbsd_get_thread_local_address): Pass down target.
16940 * proc-service.c (ps_xfer_memory): Switch current inferior and
16941 program space as well.
16942 (get_ps_regcache): Pass target down.
16943 * process-stratum-target.c
16944 (process_stratum_target::thread_address_space)
16945 (process_stratum_target::thread_architecture): Pass target down.
16946 * process-stratum-target.h
16947 (process_stratum_target::threads_executing): New field.
16948 (as_process_stratum_target): New.
16949 * ravenscar-thread.c
16950 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
16951 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
16952 down.
16953 * record-btrace.c (record_btrace_target::info_record): Adjust.
16954 (record_btrace_target::record_method)
16955 (record_btrace_target::record_is_replaying)
16956 (record_btrace_target::fetch_registers)
16957 (get_thread_current_frame_id, record_btrace_target::resume)
16958 (record_btrace_target::wait, record_btrace_target::stop): Pass
16959 target down.
16960 * record-full.c (record_full_wait_1): Switch to event thread.
16961 Pass target down.
16962 * regcache.c (regcache::regcache)
16963 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
16964 process_stratum_target parameter and handle it.
16965 (current_thread_target): New global.
16966 (get_thread_regcache): Add process_stratum_target parameter and
16967 handle it. Switch inferior before calling target method.
16968 (get_thread_regcache): Pass target down.
16969 (get_thread_regcache_for_ptid): Pass target down.
16970 (registers_changed_ptid): Add process_stratum_target parameter and
16971 handle it.
16972 (registers_changed_thread, registers_changed): Pass target down.
16973 (test_get_thread_arch_aspace_regcache): New.
16974 (current_regcache_test): Define a couple local test_target_ops
16975 instances and use them for testing.
16976 (readwrite_regcache): Pass process_stratum_target parameter.
16977 (cooked_read_test, cooked_write_test): Pass mock_target down.
16978 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
16979 (get_thread_arch_aspace_regcache): Add process_stratum_target
16980 parameter.
16981 (regcache::target): New method.
16982 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
16983 (regcache::registers_changed_ptid): Add process_stratum_target
16984 parameter.
16985 (regcache::m_target): New field.
16986 (registers_changed_ptid): Add process_stratum_target parameter.
16987 * remote.c (remote_state::supports_vCont_probed): New field.
16988 (remote_target::async_wait_fd): New method.
16989 (remote_unpush_and_throw): Add remote_target parameter.
16990 (get_current_remote_target): Adjust.
16991 (remote_target::remote_add_inferior): Push target.
16992 (remote_target::remote_add_thread)
16993 (remote_target::remote_notice_new_inferior)
16994 (get_remote_thread_info): Pass target down.
16995 (remote_target::update_thread_list): Skip threads of inferiors
16996 bound to other targets. (remote_target::close): Don't discard
16997 inferiors. (remote_target::add_current_inferior_and_thread)
16998 (remote_target::process_initial_stop_replies)
16999 (remote_target::start_remote)
17000 (remote_target::remote_serial_quit_handler): Pass down target.
17001 (remote_target::remote_unpush_target): New remote_target
17002 parameter. Unpush the target from all inferiors.
17003 (remote_target::remote_unpush_and_throw): New remote_target
17004 parameter. Pass it down.
17005 (remote_target::open_1): Check whether the current inferior has
17006 execution instead of checking whether any inferior is live. Pass
17007 target down.
17008 (remote_target::remote_detach_1): Pass down target. Use
17009 remote_unpush_target.
17010 (extended_remote_target::attach): Pass down target.
17011 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
17012 (remote_target::append_resumption): Pass down target.
17013 (remote_target::append_pending_thread_resumptions)
17014 (remote_target::remote_resume_with_hc, remote_target::resume)
17015 (remote_target::commit_resume): Pass down target.
17016 (remote_target::remote_stop_ns): Check supports_vCont_probed.
17017 (remote_target::interrupt_query)
17018 (remote_target::remove_new_fork_children)
17019 (remote_target::check_pending_events_prevent_wildcard_vcont)
17020 (remote_target::remote_parse_stop_reply)
17021 (remote_target::process_stop_reply): Pass down target.
17022 (first_remote_resumed_thread): New remote_target parameter. Pass
17023 it down.
17024 (remote_target::wait_as): Pass down target.
17025 (unpush_and_perror): New remote_target parameter. Pass it down.
17026 (remote_target::readchar, remote_target::remote_serial_write)
17027 (remote_target::getpkt_or_notif_sane_1)
17028 (remote_target::kill_new_fork_children, remote_target::kill): Pass
17029 down target.
17030 (remote_target::mourn_inferior): Pass down target. Use
17031 remote_unpush_target.
17032 (remote_target::core_of_thread)
17033 (remote_target::remote_btrace_maybe_reopen): Pass down target.
17034 (remote_target::pid_to_exec_file)
17035 (remote_target::thread_handle_to_thread_info): Pass down target.
17036 (remote_target::async_wait_fd): New.
17037 * riscv-fbsd-tdep.c: Include "inferior.h".
17038 (riscv_fbsd_get_thread_local_address): Pass down target.
17039 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
17040 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
17041 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
17042 Adjust.
17043 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
17044 * solib-svr4.c (enable_break): Pass down target.
17045 * spu-multiarch.c (parse_spufs_run): Pass down target.
17046 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
17047 * target-delegates.c: Regenerate.
17048 * target.c (g_target_stack): Delete.
17049 (current_top_target): Return the current inferior's top target.
17050 (target_has_execution_1): Refer to the passed-in inferior's top
17051 target.
17052 (target_supports_terminal_ours): Check whether the initial
17053 inferior was already created.
17054 (decref_target): New.
17055 (target_stack::push): Incref/decref the target.
17056 (push_target, push_target, unpush_target): Adjust.
17057 (target_stack::unpush): Defref target.
17058 (target_is_pushed): Return bool. Adjust to refer to the current
17059 inferior's target stack.
17060 (dispose_inferior): Delete, and inline parts ...
17061 (target_preopen): ... here. Only dispose of the current inferior.
17062 (target_detach): Hold strong target reference while detaching.
17063 Pass target down.
17064 (target_thread_name): Add assertion.
17065 (target_resume): Pass down target.
17066 (target_ops::beneath, find_target_at): Adjust to refer to the
17067 current inferior's target stack.
17068 (get_dummy_target): New.
17069 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
17070 has a thread running.
17071 (initialize_targets): Rename to ...
17072 (_initialize_target): ... this.
17073 * target.h: Include "gdbsupport/refcounted-object.h".
17074 (struct target_ops): Inherit refcounted_object.
17075 (target_ops::shortname, target_ops::longname): Make const.
17076 (target_ops::async_wait_fd): New method.
17077 (decref_target): Declare.
17078 (struct target_ops_ref_policy): New.
17079 (target_ops_ref): New typedef.
17080 (get_dummy_target): Declare function.
17081 (target_is_pushed): Return bool.
17082 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
17083 (all_matching_threads_iterator::all_matching_threads_iterator):
17084 Handle filter target.
17085 * thread-iter.h (struct all_matching_threads_iterator, struct
17086 all_matching_threads_range, class all_non_exited_threads_range):
17087 Filter by target too. Remove explicit.
17088 * thread.c (threads_executing): Delete.
17089 (inferior_thread): Pass down current inferior.
17090 (clear_thread_inferior_resources): Pass down thread pointer
17091 instead of ptid_t.
17092 (add_thread_silent, add_thread_with_info, add_thread): Add
17093 process_stratum_target parameter. Use it for thread and inferior
17094 searches.
17095 (is_current_thread): New.
17096 (thread_info::deletable): Use it.
17097 (find_thread_ptid, thread_count, in_thread_list)
17098 (thread_change_ptid, set_resumed, set_running): New
17099 process_stratum_target parameter. Pass it down.
17100 (set_executing): New process_stratum_target parameter. Pass it
17101 down. Adjust reference to 'threads_executing'.
17102 (threads_are_executing): New process_stratum_target parameter.
17103 Adjust reference to 'threads_executing'.
17104 (set_stop_requested, finish_thread_state): New
17105 process_stratum_target parameter. Pass it down.
17106 (switch_to_thread): Also match inferior.
17107 (switch_to_thread): New process_stratum_target parameter. Pass it
17108 down.
17109 (update_threads_executing): Reimplement.
17110 * top.c (quit_force): Pop targets from all inferior.
17111 (gdb_init): Don't call initialize_targets.
17112 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
17113 Declare.
17114 (windows_add_thread, windows_delete_thread): Adjust.
17115 (get_windows_debug_event): Rename to ...
17116 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
17117 * tracefile-tfile.c (tfile_target_open): Pass down target.
17118 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
17119 Forward declare.
17120 (switch_to_thread): Add process_stratum_target parameter.
17121 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
17122 parameter. Use it.
17123 (mi_on_resume): Pass target down.
17124 * nat/fork-inferior.c (startup_inferior): Add
17125 process_stratum_target parameter. Pass it down.
17126 * nat/fork-inferior.h (startup_inferior): Add
17127 process_stratum_target parameter.
17128 * python/py-threadevent.c (py_get_event_thread): Pass target down.
17129
75c6c844
PA
171302020-01-10 Pedro Alves <palves@redhat.com>
17131
17132 * remote.c (remote_target::start_remote): Don't set inferior_ptid
17133 directly. Instead find the first thread in the thread list and
17134 use switch_to_thread.
17135
78f2c40a
PA
171362020-01-10 Pedro Alves <palves@redhat.com>
17137
17138 * remote.c (remote_target::remote_add_inferior): Don't bind a
17139 process to the current inferior if the current inferior is already
17140 bound to a process.
17141
e7af6c70
TBA
171422020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17143 Pedro Alves <palves@redhat.com>
17144
17145 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
17146 If no process is specified, return null_ptid instead of
17147 inferior_ptid.
17148 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
17149 TARGET_WAITKIND_SIGNALLED with no pid.
17150
31ba933e
PA
171512020-01-10 Pedro Alves <palves@redhat.com>
17152
17153 * remote.c (first_remote_resumed_thread): New.
17154 (remote_target::wait_as): Use it as default event_ptid instead of
17155 inferior_ptid.
17156
735fc2ca
PA
171572020-01-10 Pedro Alves <palves@redhat.com>
17158
17159 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
17160
c17e02e1
PA
171612020-01-10 Pedro Alves <palves@redhat.com>
17162
17163 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
17164 not -1.
17165
ab1ddbcf
PA
171662020-01-10 Pedro Alves <palves@redhat.com>
17167
17168 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
17169 ptid to get_last_target_status.
17170 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
17171 ptid to get_last_target_status.
17172 * infcmd.c (continue_command): Don't pass a target_waitstatus to
17173 get_last_target_status.
17174 (info_program_command): Don't pass a target_waitstatus to
17175 get_last_target_status.
17176 * infrun.c (init_wait_for_inferior): Use
17177 nullify_last_target_wait_ptid.
17178 (get_last_target_status): Handle nullptr arguments.
17179 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
17180 (print_stop_event): Don't pass a ptid to get_last_target_status.
17181 (normal_stop): Don't pass a ptid to get_last_target_status.
17182 * infrun.h (get_last_target_status, set_last_target_status): Move
17183 comments here and update.
17184 (nullify_last_target_wait_ptid): Declare.
17185 * linux-fork.c (fork_load_infrun_state): Remove local extern
17186 declaration of nullify_last_target_wait_ptid.
17187 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
17188 to get_last_target_status.
17189
f3f8ece4
PA
171902020-01-10 Pedro Alves <palves@redhat.com>
17191
17192 * gdbthread.h (scoped_restore_current_thread)
17193 <dont_restore, restore, m_dont_restore>: Declare.
17194 * thread.c (thread_alive): Add assertion. Return bool.
17195 (switch_to_thread_if_alive): New.
17196 (prune_threads): Switch inferior/thread.
17197 (print_thread_info_1): Switch thread before calling target methods.
17198 (scoped_restore_current_thread::restore): New, factored out from
17199 ...
17200 (scoped_restore_current_thread::~scoped_restore_current_thread):
17201 ... this.
17202 (scoped_restore_current_thread::scoped_restore_current_thread):
17203 Add assertion.
17204 (thread_apply_all_command, thread_select): Use
17205 switch_to_thread_if_alive.
17206 * infrun.c (proceed, restart_threads, handle_signal_stop)
17207 (switch_back_to_stepped_thread): Switch current thread before
17208 calling target methods.
17209
db2d40f7
PA
172102020-01-10 Pedro Alves <palves@redhat.com>
17211
17212 * inferior.c (switch_to_inferior_no_thread): New function,
17213 factored out from ...
17214 (inferior_command): ... here.
17215 * inferior.h (switch_to_inferior_no_thread): Declare.
17216 * mi/mi-main.c (run_one_inferior): Use
17217 switch_to_inferior_no_thread.
17218
bd420a2d
PA
172192020-01-10 Pedro Alves <palves@redhat.com>
17220
17221 * infcmd.c (kill_command): Remove dead code.
17222
ddf5db90
PA
172232020-01-10 Pedro Alves <palves@redhat.com>
17224
17225 * remote.c (remote_target::mourn_inferior): No longer check
17226 whether the target is running.
17227
5018ce90
PA
172282020-01-10 Pedro Alves <palves@redhat.com>
17229
17230 * corelow.c (core_target::has_execution): Change parameter type to
17231 inferior pointer.
17232 * inferior.c (number_of_live_inferiors): Use
17233 inferior::has_execution instead of target_has_execution_1.
17234 * inferior.h (inferior::has_execution): New.
17235 * linux-thread-db.c (thread_db_target::update_thread_list): Use
17236 inferior::has_execution instead of target_has_execution_1.
17237 * process-stratum-target.c
17238 (process_stratum_target::has_execution): Change parameter type to
17239 inferior pointer. Check the inferior's PID instead of
17240 inferior_ptid.
17241 * process-stratum-target.h
17242 (process_stratum_target::has_execution): Change parameter type to
17243 inferior pointer.
17244 * record-full.c (record_full_core_target::has_execution): Change
17245 parameter type to inferior pointer.
17246 * target.c (target_has_execution_1): Change parameter type to
17247 inferior pointer.
17248 (target_has_execution_current): Adjust.
17249 * target.h (target_ops::has_execution): Change parameter type to
17250 inferior pointer.
17251 (target_has_execution_1): Change parameter type to inferior
17252 pointer. Change return type to bool.
17253 * tracefile.h (tracefile_target::has_execution): Change parameter
17254 type to inferior pointer.
17255
74375d18
PA
172562020-01-10 Pedro Alves <palves@redhat.com>
17257
17258 * exceptions.c (print_flush): Remove current_top_target() check.
17259
acdf84a6
PA
172602020-01-10 Pedro Alves <palves@redhat.com>
17261
17262 * remote.c (show_remote_exec_file): Show the current inferior's
17263 exec-file instead of the command variable's value.
17264
ec506636
PA
172652020-01-10 Pedro Alves <palves@redhat.com>
17266
17267 * record-full.c (record_full_resume_ptid): New global.
17268 (record_full_target::resume): Set it.
17269 (record_full_wait_1): Use record_full_resume_ptid instead of
17270 inferior_ptid.
17271
873657b9
PA
172722020-01-10 Pedro Alves <palves@redhat.com>
17273
17274 * gdbthread.h (scoped_restore_current_thread)
17275 <dont_restore, restore, m_dont_restore>: Declare.
17276 * thread.c (thread_alive): Add assertion. Return bool.
17277 (switch_to_thread_if_alive): New.
17278 (prune_threads): Switch inferior/thread.
17279 (print_thread_info_1): Switch thread before calling target methods.
17280 (scoped_restore_current_thread::restore): New, factored out from
17281 ...
17282 (scoped_restore_current_thread::~scoped_restore_current_thread):
17283 ... this.
17284 (scoped_restore_current_thread::scoped_restore_current_thread):
17285 Add assertion.
17286 (thread_apply_all_command, thread_select): Use
17287 switch_to_thread_if_alive.
17288
7f0ae84c
GB
172892020-01-10 George Barrett <bob@bob131.so>
17290
17291 * stap-probe.c (stap_modify_semaphore): Don't check for null
17292 semaphores.
17293 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
17294 for null semaphores.
17295
f5a7c406
AB
172962020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17297
17298 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
17299 all source windows, and maintain horizontal scroll status while
17300 doing so.
17301
9ae6bf64
TT
173022020-01-09 Tom Tromey <tom@tromey.com>
17303
17304 PR tui/18932:
17305 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
17306 update_source_window, not print_source_lines.
17307
b2efe70c
AB
173082020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17309
17310 * tui/tui.c (tui_enable): Register tui hooks after calling
17311 tui_display_main.
17312
5f23a082
CB
173132020-01-09 Christian Biesinger <cbiesinger@google.com>
17314
17315 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
17316
3061113b
SM
173172020-01-08 Simon Marchi <simon.marchi@efficios.com>
17318
17319 * thread.c (print_thread_info_1): Fix indentation.
17320
57d75002
CB
173212020-01-09 Christian Biesinger <cbiesinger@google.com>
17322
17323 * symtab.c (general_symbol_info::compute_and_set_names): Move the
17324 unique_xmalloc_ptr outside the if to always free the demangled name.
17325
6a053cb1
TT
173262020-01-08 Tom Tromey <tromey@adacore.com>
17327
17328 * xcoffread.c (enter_line_range, read_xcoff_symtab)
17329 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
17330 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
17331 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
17332 Remove.
17333 (section_offsets): New typedef.
17334 * symtab.c (fixup_section, get_msymbol_address): Update.
17335 * symmisc.c (dump_msymbols): Update.
17336 * symfile.h (relative_addr_info_to_section_offsets)
17337 (symfile_map_offsets_to_segments): Update.
17338 * symfile.c (build_section_addr_info_from_objfile)
17339 (init_objfile_sect_indices): Update.
17340 (struct place_section_arg): Change type of "offsets".
17341 (place_section): Update.
17342 (relative_addr_info_to_section_offsets): Change type of
17343 "section_offsets". Remove "num_sections" parameter.
17344 (default_symfile_offsets, syms_from_objfile_1)
17345 (set_objfile_default_section_offset): Update.
17346 (reread_symbols): No need to preserve section offsets by hand.
17347 (symfile_map_offsets_to_segments): Change type of "offsets".
17348 * stap-probe.c (relocate_address): Update.
17349 * stabsread.h (process_one_symbol): Update.
17350 * solib-target.c (struct lm_info_target) <offsets>: Change type.
17351 (solib_target_relocate_section_addresses): Update.
17352 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
17353 Update.
17354 * solib-frv.c (frv_relocate_main_executable): Update.
17355 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
17356 * solib-aix.c (solib_aix_get_section_offsets): Change return
17357 type.
17358 (solib_aix_solib_create_inferior_hook): Update.
17359 * remote.c (remote_target::get_offsets): Update.
17360 * psymtab.c (find_pc_sect_psymtab): Update.
17361 * psympriv.h (struct partial_symbol) <address, text_low,
17362 text_high>: Update.
17363 * objfiles.h (obj_section_offset): Update.
17364 (struct objfile) <section_offsets>: Change type.
17365 <num_sections>: Remove.
17366 (objfile_relocate): Update.
17367 * objfiles.c (entry_point_address_query): Update
17368 (relocate_one_symbol): Change type of "section_offsets".
17369 (objfile_relocate1, objfile_relocate1): Change type of
17370 "new_offsets".
17371 (objfile_rebase1): Update.
17372 * mipsread.c (mipscoff_symfile_read): Update.
17373 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
17374 parameter.
17375 * mdebugread.c (parse_symbol): Change type of "section_offsets".
17376 (parse_external, psymtab_to_symtab_1): Update.
17377 * machoread.c (macho_symfile_offsets): Update.
17378 * ia64-tdep.c (ia64_find_unwind_table): Update.
17379 * hppa-tdep.c (read_unwind_info): Update.
17380 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
17381 * dwarf2read.c (create_addrmap_from_index)
17382 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
17383 (process_psymtab_comp_unit_reader, add_partial_symbol)
17384 (add_partial_subprogram, process_full_comp_unit)
17385 (read_file_scope, read_func_scope, read_lexical_block_scope)
17386 (read_call_site_scope, dwarf2_rnglists_process)
17387 (dwarf2_ranges_process, dwarf2_ranges_read)
17388 (dwarf_decode_lines_1, var_decode_location, new_symbol)
17389 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
17390 Update.
17391 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
17392 Update.
17393 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
17394 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
17395 (process_one_symbol): Change type of "section_offsets".
17396 * ctfread.c (get_objfile_text_range): Update.
17397 * coffread.c (coff_symtab_read, enter_linenos)
17398 (process_coff_symbol): Update.
17399 * coff-pe-read.c (add_pe_forwarded_sym): Update.
17400 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
17401
456e800a
TT
174022020-01-08 Tom Tromey <tromey@adacore.com>
17403
17404 * dwarf2read.c (parse_macro_definition): Use std::string.
17405 (parse_macro_definition): Likewise.
17406
6dfa2fc2
TT
174072020-01-08 Tom Tromey <tromey@adacore.com>
17408
17409 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
17410 (ATTR_ALLOC_CHUNK): Remove.
17411
421d1616
TT
174122020-01-08 Tom Tromey <tromey@adacore.com>
17413
17414 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
17415
43816ebc
TT
174162020-01-08 Tom Tromey <tromey@adacore.com>
17417
17418 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
17419 (dwarf2_compute_name, open_dwo_file): Likewise.
17420 (process_enumeration_scope): Use std::vector.
17421 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
17422 (partial_die_info::fixup, dwarf2_start_subfile)
17423 (guess_full_die_structure_name, dwarf2_name): Likewise.
17424 (determine_prefix): Update.
17425 (guess_full_die_structure_name): Make return type const.
17426 (partial_die_full_name): Return unique_xmalloc_ptr.
17427 (DW_FIELD_ALLOC_CHUNK): Remove.
17428
4212d509
TT
174292020-01-07 Tom Tromey <tromey@adacore.com>
17430
17431 PR build/24937:
17432 * stap-probe.c (class stap_static_probe_ops): Add constructor.
17433
06a6207a
JT
174342020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17435
17436 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
17437
153d79c4
AB
174382020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
17439
17440 * stack.c (print_frame_info): Move disassemble_next_line code
17441 inside source_print block.
17442
66182876
EZ
174432020-01-06 Eli Zaretskii <eliz@gnu.org>
17444
17445 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
17446 gdb/signals.h, as we are now using native signal symbols.
17447
cbfa8581
SV
174482020-01-06 Shahab Vahedi <shahab@synopsys.com>
17449
17450 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
17451 overflow by an early check of content vs threshold.
aac66a4c 17452 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
17453 Likewise.
17454
3f602821
EZ
174552020-01-06 Eli Zaretskii <eliz@gnu.org>
17456
17457 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
17458
a08c904d
JT
174592020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17460
17461 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
17462 export table if no section contains it's RVA.
17463
89a65580
EZ
174642020-01-06 Eli Zaretskii <eliz@gnu.org>
17465
17466 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
17467
8b7fcda2
HD
174682020-01-06 Hannes Domani <ssbssa@yahoo.de>
17469
17470 * source.c (print_source_lines_base): Set last_line_listed.
17471
a61b4f69
SV
174722020-01-06 Shahab Vahedi <shahab@synopsys.com>
17473
17474 * tui/tui-disasm.c: Remove trailing spaces.
17475
559e7e50
EZ
174762020-01-06 Eli Zaretskii <eliz@gnu.org>
17477 Pedro Alves <palves@redhat.com>
17478
17479 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
17480 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
17481 (windows_gdb_signal_to_target): New function, uses the above
17482 enumeration to convert GDB internal signal codes to equivalent
17483 Windows codes.
17484 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
17485 * windows-nat.c: Include "gdb_wait.h".
17486 (get_windows_debug_event): Extract the fatal exception from the
17487 exit status and convert to the equivalent Posix signal number.
17488 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
17489 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
17490 * gdbsupport/gdb_wait.c: New file, implements
17491 windows_status_to_termsig.
17492 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
17493 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
17494
f2302a34
AB
174952020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
17496
17497 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
17498 show_layout.
17499
6a5206eb
LM
175002020-01-05 Luis Machado <luis.machado@linaro.org>
17501
17502 * aarch64-linux-nat.c
17503 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
17504 and bfd_mach_aarch64.
17505
6ec1d75e
PW
175062020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17507
17508 * ui-file.c (stdio_file::can_emit_style_escape)
17509 (tee_file::can_emit_style_escape): Ensure style is used also on
17510 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
17511 to gdb_stdout.
17512 * main.c (set_gdb_data_directory): Use file style to output the
17513 warning that the given pathname is not a directory.
17514 * top.c (show_history_filename, gdb_safe_append_history)
17515 (show_gdb_datadir): Use file style.
17516
44f81a76
HD
175172020-01-03 Hannes Domani <ssbssa@yahoo.de>
17518
17519 * solib-target.c (struct lm_info_target):
17520 Change offsets to be a unique_xmalloc_ptr.
17521 (solib_target_relocate_section_addresses): Update.
17522
25057eb0
HD
175232020-01-03 Hannes Domani <ssbssa@yahoo.de>
17524
17525 * windows-nat.c (windows_clear_solib): Free so_list linked list.
17526
6e2118f5
BE
175272020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
17528
17529 * MAINTAINERS (Write After Approval): Add myself.
17530
8133c7dc
LM
175312020-01-02 Luis Machado <luis.machado@linaro.org>
17532
17533 * proc-service.c (get_ps_regcache): Remove reference to obsolete
17534 Cell BE architecture.
17535 * target.h (struct target_ops) <thread_architecture>: Likewise.
17536
48189bec
HD
175372020-01-01 Hannes Domani <ssbssa@yahoo.de>
17538
17539 * Makefile.in: Use INSTALL_PROGRAM_ENV.
17540
ead1063b
HD
175412020-01-01 Hannes Domani <ssbssa@yahoo.de>
17542
17543 * MAINTAINERS (Write After Approval): Add myself.
17544
e5d78223
JB
175452020-01-01 Joel Brobecker <brobecker@adacore.com>
17546
17547 * gdbarch.sh: Update copyright year range of generated files.
17548
b811d2c2
JB
175492020-01-01 Joel Brobecker <brobecker@adacore.com>
17550
17551 Update copyright year range in all GDB files.
17552
5f4def5c
JB
175532020-01-01 Joel Brobecker <brobecker@adacore.com>
17554
17555 * copyright.py: Convert to Python 3.
17556
51fd4002
JB
175572020-01-01 Joel Brobecker <brobecker@adacore.com>
17558
17559 * copyright.py: Adapt after move of gnulib directory from gdb
17560 directory to toplevel directory.
17561
5fb651f2
JB
175622020-01-01 Joel Brobecker <brobecker@adacore.com>
17563
17564 * copyright.py (main): Exit if run from the wrong directory.
17565
5dd8bf88
JB
175662020-01-01 Joel Brobecker <brobecker@adacore.com>
17567
17568 * top.c (print_gdb_version): Change copyright year to 2020.
17569
9f71dacb 175702020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 17571
9f71dacb 17572 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 17573
9f71dacb 17574For older changes see ChangeLog-2019.
c906108c
SS
17575\f
17576Local Variables:
17577mode: change-log
17578left-margin: 8
17579fill-column: 74
17580version-control: never
57da7796 17581coding: utf-8
c906108c 17582End:
This page took 4.696555 seconds and 4 git commands to generate.