]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
gdb: get rid of get_displaced_stepping_state
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
f5f01699
SM
12020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
2
3 * infrun.c (get_displaced_stepping_state): Remove, change
4 callers to access the field directly.
5
c0aba012
SM
62020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
7
8 * infrun.c (handle_inferior_event): Restore displaced step
9 buffer bytes in child process when handling fork, even if fork
10 happened in another thread than the displaced-stepping one.
11
3b7a962d
SM
122020-12-04 Simon Marchi <simon.marchi@efficios.com>
13
14 * infrun.c (infrun_inferior_execd): New function.
15 (_initialize_infrun): Attach inferior_execd observer.
16
42a4fec5
SM
172020-12-04 Simon Marchi <simon.marchi@efficios.com>
18
19 * observable.h (inferior_execd): Declare new observable.
20 * observable.c (inferior_execd): Declare new observable.
21 * infrun.c (follow_exec): Notify inferior_execd observer.
22 * jit.c (jit_inferior_created_hook): Make static.
23 (_initialize_jit): Register inferior_execd observer.
24 * jit.h (jit_inferior_created_hook): Remove declaration.
25 * solib.c (_initialize_solib): Register inferior_execd observer.
26
aafdfb4e
TV
272020-12-04 Tom de Vries <tdevries@suse.de>
28
29 PR gdb/27003
30 * completer.c (completion_tracker::build_completion_result): Don't
31 access match_list[0][-1].
32
f99b5177
TT
332020-12-04 Tom Tromey <tromey@adacore.com>
34
35 * linespec.c (struct linespec_token): Rename; remove typedef.
36 * guile/scm-block.c (struct block_smob): Remove typedef.
37 (struct block_syms_progress_smob): Likewise.
38 * guile/scm-symbol.c (struct symbol_smob): Remove typedef.
39 * guile/scm-symtab.c (symtab_smob): Remove typedef.
40 (struct sal_smob): Remove typedef.
41 * guile/scm-param.c (struct param_smob): Remove typedef.
42 * guile/scm-progspace.c (struct pspace_smob): Rename.
43 * guile/scm-objfile.c (struct objfile_smob): Rename.
44 * guile/scm-iterator.c (struct iterator_smob): Rename.
45 * guile/scm-frame.c (struct frame_smob): Rename.
46 * guile/scm-arch.c (struct arch_smob): Rename.
47 * guile/scm-type.c (struct field_smob): Remove typedef.
48 (struct type_smob): Rename.
49 * guile/scm-cmd.c (struct command_smob): Remove typedef.
50 * guile/scm-ports.c (struct ioscm_memory_port): Remove typedef.
51 * guile/scm-value.c (struct value_smob): Remove typedef.
52 * guile/scm-lazy-string.c (lazy_string_smob): Remove typedef.
53 * guile/guile-internal.h (struct scheme_variable)
54 (struct scheme_function, struct scheme_integer_constant)
55 (struct gdb_smob, struct chained_gdb_smob)
56 (struct eqable_gdb_smob, arch_smob, frame_smob, iterator_smob)
57 (objfile_smob, pspace_smob, type_smob): Remove typedef.
58 * guile/scm-pretty-print.c (pretty_printer_smob): Remove typedef.
59 (struct pretty_printer_worker_smob): Remove typedef.
60 * guile/scm-exception.c (struct exception_smob): Remove typedef.
61 * python/py-block.c (struct block_object): Remove typedef.
62 (block_syms_iterator_object): Update.
63 (set_block): Update.
64 (block_syms_iterator_object): Remove typedef.
65 * python/py-inferior.c (struct membuf_object): Remove typedef.
66 * python/py-symtab.c (struct symtab_object): Remove typedef.
67 (set_symtab): Update.
68 (sal_object): Remove typedef.
69 (set_sal): Update.
70 * python/py-frame.c (frame_object): Remove typedef.
71 * python/py-record-btrace.c (struct btpy_list_object): Remove
72 typedef.
73 * python/py-arch.c (struct arch_object): Remove typedef.
74 * python/py-linetable.c (struct linetable_entry_object)
75 (linetable_object, struct ltpy_iterator_object): Remove typedef.
76 * python/py-events.h (eventregistry_object): Remove typedef.
77 (struct events_object): Remove typedef.
78 * python/python-internal.h (gdbpy_breakpoint_object): Remove
79 typedef.
80 (thread_object): Remove typedef.
81 * python/py-progspace.c (pspace_object): Remove typedef.
82 * python/py-value.c (struct value_object): Remove typedef.
83 * python/py-record.h (recpy_record_object): Remove typedef.
84 (struct recpy_element_object): Remove typedef.
85 * python/py-lazy-string.c (lazy_string_object): Remove typedef.
86 * python/py-objfile.c (objfile_object): Remove typedef.
87 * python/py-cmd.c (struct cmdpy_object): Remove typedef.
88 * python/py-type.c (type_object): Remove typedef.
89 (typy_iterator_object): Update.
90 (set_type): Update.
91 (field_object): Remove typedef.
92 (typy_iterator_object): Remove typedef.
93 * python/py-registers.c (register_descriptor_iterator_object):
94 Remove typedef.
95 (struct register_descriptor_object)
96 (struct reggroup_iterator_object, struct reggroup_object): Remove
97 typedef.
98 * python/py-record.c (recpy_gap_object): Remove typedef.
99 * python/py-symbol.c (symbol_object): Remove typedef.
100 (set_symbol): Update.
101 * python/py-event.h (event_object): Remove typedef.
102 * python/py-param.c (parmpy_object): Remove typedef.
103 * python/py-instruction.c (struct py_insn_obj): Remove typedef.
104 * python/py-unwind.c (struct pending_frame_object): Remove typedef.
105 (unwind_info_object, struct cached_frame_info): Likewise.
106
91f87213
TT
1072020-12-04 Tom Tromey <tromey@adacore.com>
108
109 * value.c (value_internal_function_name): Make return type const.
110 * value.h (value_internal_function_name): Make return type const.
111
5382f971
LM
1122020-12-04 Luis Machado <luis.machado@linaro.org>
113
114 * aarch64-tdep.c (submask, bit, bits): Remove.
115 * arch/aarch64-insn.c (extract_signed_bitfield): Remove.
116 (aarch64_decode_adr, aarch64_decode_b aarch64_decode_bcond)
117 (aarch64_decode_cb, aarch64_decode_tb)
118 (aarch64_decode_ldr_literal): Use sbits to extract a signed
119 immediate.
120 * arch/aarch64-insn.h (submask, bits, bit, sbits): New macros.
121
b6a6aa07
TV
1222020-12-04 Tom de Vries <tdevries@suse.de>
123
124 PR tdep/27007
125 * i386-tdep.c (i386_16_byte_align_p): Skip static fields.
126
0bc2e38d
SM
1272020-12-03 Simon Marchi <simon.marchi@polymtl.ca>
128
129 PR gdb/26876
130 * dwarf2/frame.c (find_comp_unit, set_comp_unit): Reverse use of
131 dwarf2_frame_bfd_data and dwarf2_frame_objfile_data.
132
25428040
AB
1332020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
134
135 * arch/riscv.c: Include 'rv32e-xregs.c'.
136 (riscv_create_target_description): Update to handle rv32e.
137 * arch/riscv.h (struct riscv_gdbarch_features) <embedded>: New
138 member variable.
139 <operator==>: Update to account for new field.
140 <hash>: Likewise.
141 * features/Makefile (FEATURE_XMLFILES): Add riscv/rv32e-xregs.xml.
142 * features/riscv/rv32e-xregs.c: Generated.
143 * features/riscv/rv32e-xregs.xml: New file.
144 * riscv-tdep.c (riscv_debug_breakpoints): Move from later in the
145 file.
146 (riscv_debug_infcall): Likewise.
147 (riscv_debug_unwinder): Likewise.
148 (riscv_debug_gdbarch): Likewise.
149 (enum riscv_register_required_status): Delete.
150 (struct riscv_register_feature): Add constructor, delete default
151 constructor, copy, and assign constructors.
152 (struct riscv_register_feature::register_info) <required>: Delete.
153 <check>: Update comment and arguments.
154 (struct riscv_register_feature) <name>: Change to member function.
155 <prefer_first_name>: Delete.
156 <tdesc_feature>: New member function.
157 <registers>: Rename to...
158 <m_registers>: ...this.
159 <m_feature_name>: New member variable.
160 (riscv_register_feature::register_info::check): Update arguments.
161 (riscv_xreg_feature): Rewrite as class, create a single static
162 instance of the class.
163 (riscv_freg_feature): Likewise.
164 (riscv_virtual_feature): Likewise.
165 (riscv_csr_feature): Likewise.
166 (riscv_create_csr_aliases): Has become a member function inside
167 riscv_csr_feature class.
168 (riscv_abi_embedded): New function definition.
169 (riscv_register_name): Adjust to use new feature objects.
170 (struct riscv_call_info) <riscv_call_info>: Check for rv32e abi,
171 and adjust available argument registers.
172 (riscv_features_from_gdbarch_info): Check for EF_RISCV_RVE flag.
173 (riscv_check_tdesc_feature): Delete.
174 (riscv_tdesc_unknown_reg): Adjust to use new feature objects.
175 (riscv_gdbarch_init): Delete target description checking code, and
176 instead call to the new feature objects to perform the checks.
177 Reorder handling of no abi information case, allows small code
178 simplification.
179 (_initialize_riscv_tdep): Remove call, this is now done in the
180 riscv_csr_feature constructor.
181 * riscv-tdep.h (riscv_abi_embedded): Declare.
182
533b2ae0
AB
1832020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
184
185 * riscv-tdep.c (riscv_create_csr_aliases): Remove use of
186 DECLARE_CSR_ALIAS.
187
e4502042
AB
1882020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
189
190 * riscv-tdep.c (riscv_is_unknown_csr): New function,
191 implementation moved from riscv_register_reggroup_p.
192 (riscv_register_reggroup_p): Update group handling for unknown
193 CSRs.
194
2bf3b79d
SDJ
1952020-12-01 Sergio Durigan Junior <sergiodj@sergiodj.net>
196
197 * dwarf2/read.c (dwz_search_other_debugdirs): New function.
198 (dwarf2_get_dwz_file): Convert 'filename' to a
199 std::string. Use dwz_search_other_debugdirs to search for DWZ
200 files in the debug-file-directories provided by the user as well.
201
77bf7e99
TT
2022020-12-01 Tom Tromey <tom@tromey.com>
203
204 * parse.c (expr_builder::expr_builder): Initialize expout.
205 (expr_builder::release): Use expression::resize.
206 (expression::expression, expression::~expression)
207 (expression::resize): New methods.
208 (write_exp_elt): Use expression::resize.
209 (prefixify_expression): Update.
210 (increase_expout_size): Use expression::resize.
211 * expression.h (struct expression): Add constructor, destructor.
212 <resize>: New method.
213 (expression_up): Change type.
214
539d71e8
RA
2152020-12-01 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
216 * ppc-linux-nat.c: (PPC_DEBUG_FEATURE_DATA_BP_ARCH_31): New define.
217 (region_ok_for_hw_watchpoint): Check if 2nd DAWR is avaliable before
218 set region.
219
7ce05d21
TV
2202020-11-30 Tom de Vries <tdevries@suse.de>
221
222 PR symtab/26905
223 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add and handle
224 is_reference parameter.
225 (dwarf2_evaluate_property): Update dwarf2_locexpr_baton_eval call.
226
88b91969
TT
2272020-11-30 Tom Tromey <tom@tromey.com>
228
229 * rust-lang.c (rust_op_name): Remove.
230 (exp_descriptor_rust): Update.
231 * parser-defs.h (op_name_standard): Don't declare.
232 (struct exp_descriptor) <op_name>: Remove.
233 * parse.c (exp_descriptor_standard): Update.
234 * opencl-lang.c (exp_descriptor_opencl): Update.
235 * m2-lang.c (m2_language::exp_descriptor_modula2): Update.
236 * f-lang.c (op_name_f): Remove.
237 (f_language::exp_descriptor_tab): Update.
238 * expression.h (op_name): Update.
239 * expprint.c (op_name): Rewrite.
240 (op_name_standard): Remove.
241 (dump_raw_expression, dump_subexp): Update.
242 * c-lang.c (exp_descriptor_c): Update.
243 * ax-gdb.c (gen_expr): Update.
244 * ada-lang.c (ada_op_name): Remove.
245 (ada_exp_descriptor): Update.
246
1cd49c43
TT
2472020-11-30 Tom Tromey <tom@tromey.com>
248
249 * eval.c (init_array_element): Remove.
250 (evaluate_subexp_standard) <OP_ARRAY>: Remove "index_pc".
251
96fb9086
HD
2522020-11-29 Hannes Domani <ssbssa@yahoo.de>
253
254 PR tui/26973
255 * tui/tui-layout.c (tui_apply_current_layout): Don't delete the
256 static locator win info.
257
b4132322
AR
2582020-11-28 Alex Richardson <Alexander.Richardson@cl.cam.ac.uk>
259
260 * acincludde.m4 (GDB_AC_CHECK_BFD): Include string.h in the test
261 program.
262
3df8c6af
AB
2632020-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
264
265 * printcmd.c (skip_over_slash_fmt): Reorder code to ensure in_fmt
266 is always initialized.
267
0ae45769
RA
2682020-11-26 Rogerio Alves <rcardoso@linux.ibm.com>
269 * MAINTAINERS (Write After Approval): Add myself.
270
239ca5e4
PW
2712020-11-26 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
272
273 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
274 * features/aarch64-fpu.xml: Add named FPCR and FPSR register bit-fields.
275
cbfa382a
TT
2762020-11-25 Tom Tromey <tom@tromey.com>
277
278 * eval.c (evaluate_subexp_standard): Remove unnecessary
279 variables.
280
af30c400
TT
2812020-11-25 Tom Tromey <tom@tromey.com>
282
283 * d-lang.c: Include parser-defs.h.
284 * rust-lang.c: Include parser-defs.h.
285 * c-lang.h: Do not include parser-defs.h.
286
1c64f6cb
SM
2872020-11-24 Simon Marchi <simon.marchi@polymtl.ca>
288
289 * regcache.h (struct cached_reg): Remove typedef.
290
2c20a601
JB
2912020-11-24 Joel Brobecker <brobecker@adacore.com>
292
293 * README: Fix the URL of the MPFR library.
294
c609df64
JB
2952020-11-24 Joel Brobecker <brobecker@adacore.com>
296
297 * README: Document the --with-libgmp-prefix configure option.
298
fa123c32
JB
2992020-11-24 Joel Brobecker <brobecker@adacore.com>
300
301 * NEWS: Add entry documenting support for DWARF-based fixed
302 point types.
303
0fb8bb02
JB
3042020-11-24 Joel Brobecker <brobecker@adacore.com>
305
306 * NEWS: Document that building GDB now requires GMP.
307
4afa9fd9
JB
3082020-11-24 Joel Brobecker <brobecker@adacore.com>
309
310 * typeprint.c (print_type_scalar): Add handling of
311 TYPE_CODE_FIXED_POINT.
312
af619ce9
JB
3132020-11-24 Joel Brobecker <brobecker@adacore.com>
314
315 * valarith.c (fixed_point_binop): Replace the
316 INIT_VAL_WITH_FIXED_POINT_VAL macro by a lambda. Update all
317 users accordingly.
318
e6fcee3a
JB
3192020-11-24 Joel Brobecker <brobecker@adacore.com>
320
321 * gdbtypes.h (struct type) <fixed_point_scaling_factor>: New method,
322 replacing fixed_point_scaling_factor. All callers updated
323 throughout this project.
324 (fixed_point_scaling_factor): Delete declaration.
325 * gdbtypes.c (type::fixed_point_scaling_factor): Replaces
326 fixed_point_scaling_factor. Adjust implementation accordingly.
327
d19937a7
JB
3282020-11-24 Joel Brobecker <brobecker@adacore.com>
329
330 * gdbtypes.h (struct type) <fixed_point_type_base_type> New method,
331 replacing the fixed_point_type_base_type function. All callers
332 updated throughout this project.
333 (fixed_point_type_base_type): Remove declaration.
334 * gdbtypes.c (type::fixed_point_type_base_type): Replaces
335 fixed_point_type_base_type. Adjust implementation accordingly.
336
2a12c336
JB
3372020-11-24 Joel Brobecker <brobecker@adacore.com>
338
339 * gdbtypes.h (struct type) <fixed_point_info, set_fixed_point_info>:
340 New methods.
341 (INIT_FIXED_POINT_SPECIFIC): Adjust.
342 (TYPE_FIXED_POINT_INFO): Delete macro.
343 (allocate_fixed_point_type_info): Change return type to void.
344 * gdbtypes.c (copy_type_recursive): Replace the use of
345 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
346 (fixed_point_scaling_factor): Likewise.
347 (allocate_fixed_point_type_info): Change return type to void.
348 Adjust implementation accordingly.
349 * dwarf2/read.c (finish_fixed_point_type): Replace the use of
350 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
351
c9f0b43f
JB
3522020-11-24 Joel Brobecker <brobecker@adacore.com>
353
354 * gmp-utils.h (gdb_mpz::read): Change buf and len parameters
355 into one single gdb::array_view parameter.
356 (gdb_mpz::write): Likewise.
357 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
358 * gmp-utils.c (gdb_mpz::read): Change buf and len parameters
359 into one single gdb::array_view parameter.
360 Adjust implementation accordingly.
361 (gdb_mpz::write): Likewise.
362 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
363 * unittests/gmp-utils-selftests.c: Adapt following changes above.
364 * valarith.c, valops.c, valprint.c, value.c: Likewise.
365
987b6703
JB
3662020-11-24 Joel Brobecker <brobecker@adacore.com>
367
368 * gmp-utils.h (gmp_string_printf): Rename from gmp_string_asprintf.
369 Change return type to std::string. Update all callers.
370 * gmp-utils.c (gmp_string_printf): Likewise.
371
4fbb7cce
JB
3722020-11-24 Joel Brobecker <brobecker@adacore.com>
373
374 * unittests/gmp-utils-selftests.c (write_fp_test): Use mpq_set_si
375 instead of mpq_set_ui to initialize our GMP rational.
376
d6ab69dd
TV
3772020-11-23 Tom de Vries <tdevries@suse.de>
378
379 * debuginfod-support.c (debuginfod_source_query)
380 (debuginfod_debuginfo_query): Only set DESTNAME if successful.
381
dab72643
TT
3822020-11-21 Tom Tromey <tom@tromey.com>
383
384 * breakpoint.c (watchpoint_exp_is_const): Return bool.
385
c0ad05d5
SM
3862020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
387
388 * unittests/gmp-utils-selftests.c (gdb_mpz_read_all_from_small):
389 Pass 2.0 to pow.
390 (gdb_mpz_write_all_from_small): Likewise.
391
a43b29c9
SM
3922020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
393
394 * dwarf2/read.c (finish_fixed_point_type): Use std::abs instead
395 of abs.
396
ae41200b
NA
3972020-11-20 Nick Alcock <nick.alcock@oracle.com>
398
399 * ctfread.c (elfctf_build_psymtabs): Use ctf_dict_open, not
400 ctf_arc_open_by_name.
401
139633c3
NA
4022020-11-20 Nick Alcock <nick.alcock@oracle.com>
403
404 * ctfread.c: Change uses of ctf_file_t to ctf_dict_t.
405 (ctf_fp_info::~ctf_fp_info): Call ctf_dict_close, not ctf_file_close.
406
cbbcd7a7
PA
4072020-11-20 Pedro Alves <pedro@palves.net>
408
409 * language.c (language_arch_info::lookup_primitive_type): Use
410 gdb::function_view instead of gdb::function.
411 (template language_lookup_primitive_type): Rename to ...
412 (language_lookup_primitive_type_1): ... this, and make static.
413 (language_lookup_primitive_type(const struct language_defn *,
414 struct gdbarch *, const char *): Make non-template.
415 (language_lookup_primitive_type(const struct language_defn *,
416 struct gdbarch *, std::function<bool (struct type *)>): Make
417 non-template and use gdb::function_view.
418 * language.h (language_arch_info::lookup_primitive_type): Use
419 gdb::function_view instead of std::function.
420 (language_lookup_primitive_type): No longer template.
421 * opencl-lang.c (lookup_opencl_vector_type): 'filter' is now a
422 lambda instead of a std::function.
423
d5ef21c3
AA
4242020-11-19 Andreas Arnez <arnez@linux.ibm.com>
425
426 PR tdep/26916
427 * s390-tdep.c (s390_process_record): Fix recording of STOC, STOCG,
428 and STOCFH.
429
a5adb8f3
SM
4302020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
431
432 * f-lang.c (fortran_value_subarray): Use plongest/pulongest.
433
70125a45
SM
4342020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
435
436 * gdbarch.sh (read_core_file_mappings): Remove `other` parameter
437 in `loop_cb` parameter.
438 * gdbarch.c: Re-generate.
439 * gdbarch.h: Re-generate.
440 * arch-utils.c (default_read_core_file_mappings): Remove `other`
441 parameter.
442 * arch-utils.h (default_read_core_file_mappings): Likewise.
443 * corelow.c (core_target::build_file_mappings): Likewise.
444 * linux-tdep.c (linux_read_core_file_mappings): Likewise.
445 (linux_core_info_proc_mappings): Likewise.
446
a5c641b5
AB
4472020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
448
449 * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
450 * NEWS: Mention new options.
451 * f-array-walker.h: New file.
452 * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
453 (repack_array_slices): New static global.
454 (show_repack_array_slices): New function.
455 (fortran_array_slicing_debug): New static global.
456 (show_fortran_array_slicing_debug): New function.
457 (value_f90_subarray): Delete.
458 (skip_undetermined_arglist): Delete.
459 (class fortran_array_repacker_base_impl): New class.
460 (class fortran_lazy_array_repacker_impl): New class.
461 (class fortran_array_repacker_impl): New class.
462 (fortran_value_subarray): Complete rewrite.
463 (set_fortran_list): New static global.
464 (show_fortran_list): Likewise.
465 (_initialize_f_language): Register new commands.
466 (fortran_adjust_dynamic_array_base_address_hack): New function.
467 * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
468 Declare.
469 * f-valprint.c: Include 'f-array-walker.h'.
470 (class fortran_array_printer_impl): New class.
471 (f77_print_array_1): Delete.
472 (f77_print_array): Delete.
473 (fortran_print_array): New.
474 (f_value_print_inner): Update to call fortran_print_array.
475 * gdbtypes.c: Include 'f-lang.h'.
476 (resolve_dynamic_type_internal): Call
477 fortran_adjust_dynamic_array_base_address_hack.
478
a15a5258
AB
4792020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
480
481 * breakpoint.c (struct watch_options): New struct.
482 (watch_option_defs): New static global.
483 (make_watch_options_def_group): New function.
484 (watch_maybe_just_location): Convert option parsing.
485 (watch_command_completer): New function.
486 (_initialize_breakpoint): Build help text using options mechanism.
487
2e362716
AB
4882020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
489
490 * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
491 (watch_command_1): Update parameter types. Convert locals to
492 bool.
493 (watch_command_wrapper): Change parameter type.
494 (watch_maybe_just_location): Change locals to bool.
495 (rwatch_command_wrapper): Update parameter type.
496 (awatch_command_wrapper): Update parameter type.
497 * breakpoint.h (watch_command_wrapper): Change parameter type.
498 (rwatch_command_wrapper): Update parameter type.
499 (awatch_command_wrapper): Update parameter type.
500 * eval.c (fetch_subexp_value): Change parameter type.
501 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
502 'false' not '0'.
503 * value.h (fetch_subexp_value): Change parameter type in
504 declaration.
505
b3ff61f8
AB
5062020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
507
508 * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
509 skip_spaces.
510
5b7d45d3
KS
5112020-11-18 Keith Seitz <keiths@redhat.com>
512
513 * linux-tdep.c (dump_note_entry_p): Return true instead of
514 checking `filename'.
515
c44191f8
TV
5162020-11-18 Tom de Vries <tdevries@suse.de>
517
518 * debuginfod-support.c (debuginfod_source_query)
519 (debuginfod_debuginfo_query): Also do early exit if
520 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
521
5d8254e1
TV
5222020-11-18 Tom de Vries <tdevries@suse.de>
523
524 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
525 warning.
526
584903d3
SM
5272020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
528
529 * gdbtypes.h (get_array_bounds): Return bool, adjust some
530 callers. Move doc here.
531 * gdbtypes.c (get_array_bounds): Return bool
532
6f2643db
AB
5332020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
534
535 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
536 assert.
537 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
538 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
539 case to the default.
540
037d7135
AB
5412020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
542
543 * printcmd.c: Include 'safe-ctype.c'.
544 (skip_over_slash_fmt): New function.
545 (print_command_completer): Call skip_over_slash_fmt.
546 (display_and_x_command_completer): New function.
547 (_initialize_printcmd): Add command completion for 'x' and
548 'display'.
549
2b3cb400
PA
5502020-11-16 Pedro Alves <pedro@palves.net>
551
552 * frame.c (get_prev_frame): Move get_frame_id call from here ...
553 (get_prev_frame_always_1): ... to here.
554 * inline-frame.c (inline_frame_this_id): Mention
555 get_prev_frame_always_1 in comment.
556
b74dbc20
JB
5572020-11-15 Joel Brobecker <brobecker@adacore.com>
558
559 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
560 handling.
561 (value_less): Add fixed-point handling.
562
0a12719e
JB
5632020-11-15 Joel Brobecker <brobecker@adacore.com>
564
565 * eval.c (binop_promote): Add fixed-point type handling.
566 * valarith.c (fixed_point_binop): New function.
567 (scalar_binop): Add fixed-point type handling.
568 (value_neg): Add fixed-point type handling.
569 * valops.c (value_cast_to_fixed_point): New function.
570 (value_cast): Add fixed-point type handling.
571
0c9150e4
JB
5722020-11-15 Joel Brobecker <brobecker@adacore.com>
573
574 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
575 range types.
576 * c-typeprint.c (c_type_print_varspec_prefix)
577 (c_type_print_varspec_suffix, c_type_print_base_1): Add
578 TYPE_CODE_FIXED_POINT handling.
579 * p-typeprint.c (pascal_type_print_varspec_prefix)
580 (pascal_type_print_varspec_suffix): Likewise.
581 * typeprint.c (print_type_fixed_point): New function.
582 * typeprint.h (print_type_fixed_point): Add declaration.
583
b26daff9
JB
5842020-11-15 Joel Brobecker <brobecker@adacore.com>
585
586 * printcmd.c (print_scalar_formatted): Add fixed-point type
587 handling when options->format is set.
588
09584414
JB
5892020-11-15 Joel Brobecker <brobecker@adacore.com>
590
591 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
592 * dwarf2/read.c (get_dwarf2_rational_constant)
593 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
594 (has_zero_over_zero_small_attribute): New functions.
595 read_base_type, set_die_type): Add fixed-point type handling.
596 * gdb-gdb.py.in: Add fixed-point type handling.
597 * gdbtypes.c: #include "gmp-utils.h".
598 (create_range_type, set_type_code): Add fixed-point type handling.
599 (init_fixed_point_type): New function.
600 (is_integral_type, is_scalar_type): Add fixed-point type handling.
601 (print_fixed_point_type_info): New function.
602 (recursive_dump_type, copy_type_recursive): Add fixed-point type
603 handling.
604 (fixed_point_type_storage): New typedef.
605 (fixed_point_objfile_key): New static global.
606 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
607 (fixed_point_type_base_type, fixed_point_scaling_factor): New
608 functions.
609 * gdbtypes.h: #include "gmp-utils.h".
610 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
611 (union type_specific) <fixed_point_info>: New field.
612 (struct fixed_point_type_info): New struct.
613 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
614 (init_fixed_point_type, is_fixed_point_type)
615 (fixed_point_type_base_type, fixed_point_scaling_factor)
616 (allocate_fixed_point_type_info): Add declarations.
617 * valprint.c (generic_val_print_fixed_point): New function.
618 (generic_value_print): Add fixed-point type handling.
619 * value.c (value_as_address, unpack_long): Add fixed-point type
620 handling.
621
e55c6530
JB
6222020-11-15 Joel Brobecker <brobecker@adacore.com>
623
624 * utils.h (uinteger_pow): Add declaration.
625 * utils.c (uinteger_pow): Moved here (without changes)...
626 * valarith.c (uinteger_pow): ... from here.
627
b34c74ab
JB
6282020-11-15 Joel Brobecker <brobecker@adacore.com>
629
40d9d2fd 630 * gmp-utils.h, gmp-utils.c: New file.
b34c74ab
JB
631 * unittests/gmp-utils-selftests.c: New file.
632 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
633 unittests/gmp-utils-selftests.c.
634 (COMMON_SFILES) Add gmp-utils.c.
635 (HFILES_NO_SRCDIR): Add gmp-utils.h.
636
1b4ac058
JB
6372020-11-15 Joel Brobecker <brobecker@adacore.com>
638
639 * configure.ac: Generate an error if a usable GMP library
640 could not be found.
641 * configure: Regenerate.
642
2c947d9b
JB
6432020-11-15 Joel Brobecker <brobecker@adacore.com>
644
645 * configure.ac: Add support for --with-libgmp-prefix.
646 * Makefile.in (LIBGMP): New variable.
647 (CLIBS): Include $(LIBGMP).
648 * configure, config.in: Regenerate
649
9dd02fc0
AB
6502020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
651
652 PR cli/26879
653 * f-exp.y (COMPLETE): New token.
654 (exp): Two new rules for tab-completion.
655 (saw_name_at_eof): New static global.
656 (last_was_structop): Likewise.
657 (yylex): Set new variables, and return COMPLETE token at the end
658 of the input stream in some cases.
659
758cb810
TT
6602020-11-14 Tom Tromey <tom@tromey.com>
661
662 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
663
749065b7
TT
6642020-11-14 Tom Tromey <tom@tromey.com>
665
666 * opencl-lang.c (opencl_component_ref): Make "comps" const.
667
2c5b1849
SM
6682020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
669
670 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
671
e8b2f0d9
TT
6722020-11-13 Tom Tromey <tom@tromey.com>
673
674 * c-lang.c (convert_ucn, convert_octal, convert_hex)
675 (convert_escape, parse_one_string): Constify.
676
25f4c262
KS
6772020-11-13 Keith Seitz <keiths@redhat.com>
678
679 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
680 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
681 outside of ELF segments" warning for debugin
682
9d3ab915
KS
6832020-11-13 Keith Seitz <keiths@redhat.com>
684
685 PR gdb/23034
686 * elfread.c (elf_symfile_segments): Output a BFD file name
687 for the "Loadable section ... outside of ELF segments" warning.
688
9ecab40c
SM
6892020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
690
691 PR gdb/26835
692 * arm-tdep.c (class arm_instruction_reader): New.
693 (target_arm_instruction_reader): New.
694 (arm_analyze_prologue): Add instruction reader parameter and use
695 it. Use arm_expand_immediate.
696 (class target_arm_instruction_reader): Adjust.
697 (arm_skip_prologue): Adjust.
698 (arm_expand_immediate): New.
699 (arm_scan_prologue): Adjust.
700 (arm_analyze_prologue_test): New.
701 (class test_arm_instruction_reader): New.
702
5a7cf527
AB
7032020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
704
705 * f-lang.c (fortran_argument_convert): Add declaration. Add
706 header comment, taken from f-lang.h. Make static.
707 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
708 (fortran_argument_convert): Delete declaration.
709
7bea47f0
AB
7102020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
711
712 * ada-exp.y (find_primitive_type): Make parameter const.
713 * ada-lang.c (enum ada_primitive_types): Delete.
714 (ada_language::language_arch_info): Update.
715 * c-lang.c (enum c_primitive_types): Delete.
716 (c_language_arch_info): Update.
717 (enum cplus_primitive_types): Delete.
718 (cplus_language::language_arch_info): Update.
719 * d-lang.c (enum d_primitive_types): Delete.
720 (d_language::language_arch_info): Update.
721 * f-lang.c (enum f_primitive_types): Delete.
722 (f_language::language_arch_info): Update.
723 * go-lang.c (enum go_primitive_types): Delete.
724 (go_language::language_arch_info): Update.
725 * language.c (auto_or_unknown_language::language_arch_info):
726 Update.
727 (language_gdbarch_post_init): Use obstack_new, use array indexing.
728 (language_string_char_type): Add header comment, call function in
729 language_arch_info.
730 (language_bool_type): Likewise
731 (language_arch_info::bool_type): Define.
732 (language_lookup_primitive_type_1): Delete.
733 (language_lookup_primitive_type): Rewrite as a templated function
734 to call function in language_arch_info, then instantiate twice.
735 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
736 (language_arch_info::lookup_primitive_type_and_symbol): Define.
737 (language_arch_info::lookup_primitive_type): Define twice with
738 different signatures.
739 (language_arch_info::lookup_primitive_type_as_symbol): Define.
740 (language_lookup_primitive_type_as_symbol): Rewrite to call a
741 member function in language_arch_info.
742 * language.h (language_arch_info): Complete rewrite.
743 (language_lookup_primitive_type): Make templated.
744 * m2-lang.c (enum m2_primitive_types): Delete.
745 (m2_language::language_arch_info): Update.
746 * opencl-lang.c (OCL_P_TYPE): Delete.
747 (enum opencl_primitive_types): Delete.
748 (opencl_type_data): Delete.
749 (builtin_opencl_type): Delete.
750 (lookup_opencl_vector_type): Update.
751 (opencl_language::language_arch_info): Update, lots of content
752 moved from...
753 (build_opencl_types): ...here. This function is now deleted.
754 (_initialize_opencl_language): Delete.
755 * p-lang.c (enum pascal_primitive_types): Delete.
756 (pascal_language::language_arch_info): Update.
757 * rust-lang.c (enum rust_primitive_types): Delete.
758 (rust_language::language_arch_info): Update.
759
bf6e5d01
SM
7602020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
761
762 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
763 dwarf2_queue_guard.
764
1350c3b4
SM
7652020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
766
767 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
768 comment.
769
6f738b01
SM
7702020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
771
772 * dwarf2/read.c (dwarf_read_debug_printf,
773 dwarf_read_debug_printf_v): New macros, use throughout the file.
774
10c19fad
SV
7752020-11-12 Shahab Vahedi <shahab@synopsys.com>
776
10806efd 777 PR tdep/27015
10c19fad
SV
778 * arc-linux-tdep.c (collect_register): Populate "eret" by
779 "pc" value from the regcache when asked for "pc" value.
780
1f2624a3
TT
7812020-11-12 Tom Tromey <tom@tromey.com>
782
783 PR rust/26799:
784 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
785 exist.
786
ab33b152
AB
7872020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
788
789 * features/Makefile (XMLTOC): Add rx.xml.
790 (FEATURE_XMLFILES): Remove rx.xml.
791 (FEATURE_CFILES rule): Pass '-single-feature' flag.
792 * features/rx.c: Regenerate.
793 * features/rx.xml: Wrap in `target` tags, and reindent.
794 * target-descriptions.c (struct maint_print_c_tdesc_options): New
795 structure.
796 (maint_print_c_tdesc_opt_def): New typedef.
797 (maint_print_c_tdesc_opt_defs): New static global.
798 (make_maint_print_c_tdesc_options_def_group): New function.
799 (maint_print_c_tdesc_cmd): Make use of command line flags, only
800 print single feature C file for target descriptions containing a
801 single feature.
802 (maint_print_c_tdesc_cmd_completer): New function.
803 (_initialize_target_descriptions): Update call to register command
804 completer, and include command line flag in help text.
805
550820e1
AB
8062020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
807
808 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
809 numbers.
810 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
811 enum values.
812
baf20f76
TT
8132020-11-10 Tom Tromey <tom@tromey.com>
814
815 * value.h (internalvar_name): Update.
816 * value.c (internalvar_name): Make return type const.
817
caaece0e
TT
8182020-11-10 Tom Tromey <tom@tromey.com>
819
820 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
821 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
822 const.
823
8e20b4be
TT
8242020-11-10 Tom Tromey <tom@tromey.com>
825
826 * objc-lang.h (value_nsstring): Update.
827 * objc-lang.c (value_nsstring): Make "ptr" const.
828
86775fab
AB
8292020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
830
831 * expprint.c (print_subexp_funcall): Increment expression position
832 after reading argument count.
833 * f-lang.c (print_subexp_f): Skip over opcode before calling
834 common function.
835 (dump_subexp_body_f): Likewise.
836
3fed4c0b
RG
8372020-11-06 Romain Geissler <romain.geissler@amadeus.com>
838
839 PR python/26832
840 * configure: Regenerate.
841 * configure.ac: Check for python modules ctypes instead of
842 itertools.
843
ac3d4064
PA
8442020-11-06 Pedro Alves <pedro@palves.net>
845
846 * macroexp.c (struct macro_buffer): Split in two classes. Add
847 uses adjusted.
848 (struct shared_macro_buffer): New, factored out from struct
849 macro_buffer.
850 (struct growable_macro_buffer): New, factored out from struct
851 macro_buffer.
852 (set_token, get_comment, get_identifier, get_pp_number)
853 (get_character_constant, get_string_literal, get_punctuator)
854 (get_next_token_for_substitution): Constify parameters.
855 (substitute_args): Constify locals.
856
606decb2
TT
8572020-11-05 Tom Tromey <tom@tromey.com>
858
859 * dwarf2/read.c (read_cutu_die_from_dwo)
860 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
861 (build_type_psymtabs_1): Update.
862 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
863 parameter.
864 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
865 Don't read section. Add assert.
866
9c91c725
TT
8672020-11-04 Tom Tromey <tromey@adacore.com>
868
869 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
870
8d9fd3a1
TT
8712020-11-04 Tom Tromey <tromey@adacore.com>
872
873 * ada-typeprint.c (ada_print_type): Handle __T types.
874
d8f62e84
TT
8752020-11-04 Tom Tromey <tromey@adacore.com>
876
877 * dwarf2/read.c (add_partial_symbol, process_die):
878 Handle DW_TAG_array_type.
879 (is_type_tag_for_partial): Add "lang" parameter.
880 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
881
7ff5b937
TT
8822020-11-04 Tom Tromey <tromey@adacore.com>
883
884 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
885
10f6a3ad
TT
8862020-11-04 Tom Tromey <tromey@adacore.com>
887
888 * dwarf2/read.c (read_array_type): Only apply stride to innermost
889 array.
890
b72795a8
TT
8912020-11-04 Tom Tromey <tromey@adacore.com>
892
893 * gdbtypes.c (update_static_array_size): Handle bit stride.
894
24aa1b02
TT
8952020-11-04 Tom Tromey <tromey@adacore.com>
896
897 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
898
c9a28cbe
TT
8992020-11-04 Tom Tromey <tromey@adacore.com>
900
901 * ada-lang.c (ada_is_any_packed_array_type): New function.
902 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
903
57567375
TT
9042020-11-04 Tom Tromey <tromey@adacore.com>
905
906 * dwarf2/read.c (recognize_bound_expression)
907 (quirk_ada_thick_pointer): New functions.
908 (read_array_type): Call quirk_ada_thick_pointer.
909 (set_die_type): Add "skip_data_location" parameter.
910 (quirk_ada_thick_pointer): New function.
911 (process_structure_scope): Call quirk_ada_thick_pointer.
912 * ada-lang.c (ada_is_unconstrained_packed_array_type)
913 (decode_packed_array_bitsize): Handle thick pointers without
914 parallel types.
915 (ada_is_gnat_encoded_packed_array_type): Rename from
916 ada_is_packed_array_type.
917 (ada_is_constrained_packed_array_type): Update.
918 * ada-valprint.c (ada_val_print_gnat_array): Remove.
919 (ada_value_print_1): Use ada_get_decoded_value.
920
a7400e44
TT
9212020-11-04 Tom Tromey <tromey@adacore.com>
922
923 * ada-lang.c (recursively_update_array_bitsize): New function.
924 (decode_constrained_packed_array_type): Call it.
925
75fd6a26
TT
9262020-11-04 Tom Tromey <tromey@adacore.com>
927
928 * ada-lang.c (to_fixed_array_type): Error if
929 decode_constrained_packed_array_type returns NULL.
930
93f9561e
TT
9312020-11-04 Tom Tromey <tromey@adacore.com>
932
933 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
934
257e02d8
TT
9352020-11-02 Tom Tromey <tromey@adacore.com>
936
937 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
938 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
939 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
940 * amd64-ravenscar-thread.c: New file.
941 * amd64-ravenscar-thread.h: New file.
942 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
943 * configure.tgt (amd64_tobjs): Add ravenscar objects.
944
74d877e5
AB
9452020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
946
947 * main.c (execute_cmdargs): New function.
948 (captured_main_1): Make use of execute_cmdargs.
949
64aaad63
AB
9502020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
951
952 * NEWS: Mention changes to config file search path.
953 * main.c
954
5b3d3560
TT
9552020-11-02 Tom Tromey <tromey@adacore.com>
956
957 * python/python.c: Consolidate two HAVE_PYTHON blocks.
958 (python_GdbModuleDef): Move earlier. Now static.
959 (do_start_initialization): Consolidate some IS_PY3K blocks.
960
dda83cd7
SM
9612020-11-02 Simon Marchi <simon.marchi@efficios.com>
962
963 * aarch64-linux-tdep.c: Fix indentation.
964 * aarch64-ravenscar-thread.c: Fix indentation.
965 * aarch64-tdep.c: Fix indentation.
966 * aarch64-tdep.h: Fix indentation.
967 * ada-lang.c: Fix indentation.
968 * ada-lang.h: Fix indentation.
969 * ada-tasks.c: Fix indentation.
970 * ada-typeprint.c: Fix indentation.
971 * ada-valprint.c: Fix indentation.
972 * ada-varobj.c: Fix indentation.
973 * addrmap.c: Fix indentation.
974 * addrmap.h: Fix indentation.
975 * agent.c: Fix indentation.
976 * aix-thread.c: Fix indentation.
977 * alpha-bsd-nat.c: Fix indentation.
978 * alpha-linux-tdep.c: Fix indentation.
979 * alpha-mdebug-tdep.c: Fix indentation.
980 * alpha-nbsd-tdep.c: Fix indentation.
981 * alpha-obsd-tdep.c: Fix indentation.
982 * alpha-tdep.c: Fix indentation.
983 * amd64-bsd-nat.c: Fix indentation.
984 * amd64-darwin-tdep.c: Fix indentation.
985 * amd64-linux-nat.c: Fix indentation.
986 * amd64-linux-tdep.c: Fix indentation.
987 * amd64-nat.c: Fix indentation.
988 * amd64-obsd-tdep.c: Fix indentation.
989 * amd64-tdep.c: Fix indentation.
990 * amd64-windows-tdep.c: Fix indentation.
991 * annotate.c: Fix indentation.
992 * arc-tdep.c: Fix indentation.
993 * arch-utils.c: Fix indentation.
994 * arch/arm-get-next-pcs.c: Fix indentation.
995 * arch/arm.c: Fix indentation.
996 * arm-linux-nat.c: Fix indentation.
997 * arm-linux-tdep.c: Fix indentation.
998 * arm-nbsd-tdep.c: Fix indentation.
999 * arm-pikeos-tdep.c: Fix indentation.
1000 * arm-tdep.c: Fix indentation.
1001 * arm-tdep.h: Fix indentation.
1002 * arm-wince-tdep.c: Fix indentation.
1003 * auto-load.c: Fix indentation.
1004 * auxv.c: Fix indentation.
1005 * avr-tdep.c: Fix indentation.
1006 * ax-gdb.c: Fix indentation.
1007 * ax-general.c: Fix indentation.
1008 * bfin-linux-tdep.c: Fix indentation.
1009 * block.c: Fix indentation.
1010 * block.h: Fix indentation.
1011 * blockframe.c: Fix indentation.
1012 * bpf-tdep.c: Fix indentation.
1013 * break-catch-sig.c: Fix indentation.
1014 * break-catch-syscall.c: Fix indentation.
1015 * break-catch-throw.c: Fix indentation.
1016 * breakpoint.c: Fix indentation.
1017 * breakpoint.h: Fix indentation.
1018 * bsd-uthread.c: Fix indentation.
1019 * btrace.c: Fix indentation.
1020 * build-id.c: Fix indentation.
1021 * buildsym-legacy.h: Fix indentation.
1022 * buildsym.c: Fix indentation.
1023 * c-typeprint.c: Fix indentation.
1024 * c-valprint.c: Fix indentation.
1025 * c-varobj.c: Fix indentation.
1026 * charset.c: Fix indentation.
1027 * cli/cli-cmds.c: Fix indentation.
1028 * cli/cli-decode.c: Fix indentation.
1029 * cli/cli-decode.h: Fix indentation.
1030 * cli/cli-script.c: Fix indentation.
1031 * cli/cli-setshow.c: Fix indentation.
1032 * coff-pe-read.c: Fix indentation.
1033 * coffread.c: Fix indentation.
1034 * compile/compile-cplus-types.c: Fix indentation.
1035 * compile/compile-object-load.c: Fix indentation.
1036 * compile/compile-object-run.c: Fix indentation.
1037 * completer.c: Fix indentation.
1038 * corefile.c: Fix indentation.
1039 * corelow.c: Fix indentation.
1040 * cp-abi.h: Fix indentation.
1041 * cp-namespace.c: Fix indentation.
1042 * cp-support.c: Fix indentation.
1043 * cp-valprint.c: Fix indentation.
1044 * cris-linux-tdep.c: Fix indentation.
1045 * cris-tdep.c: Fix indentation.
1046 * darwin-nat-info.c: Fix indentation.
1047 * darwin-nat.c: Fix indentation.
1048 * darwin-nat.h: Fix indentation.
1049 * dbxread.c: Fix indentation.
1050 * dcache.c: Fix indentation.
1051 * disasm.c: Fix indentation.
1052 * dtrace-probe.c: Fix indentation.
1053 * dwarf2/abbrev.c: Fix indentation.
1054 * dwarf2/attribute.c: Fix indentation.
1055 * dwarf2/expr.c: Fix indentation.
1056 * dwarf2/frame.c: Fix indentation.
1057 * dwarf2/index-cache.c: Fix indentation.
1058 * dwarf2/index-write.c: Fix indentation.
1059 * dwarf2/line-header.c: Fix indentation.
1060 * dwarf2/loc.c: Fix indentation.
1061 * dwarf2/macro.c: Fix indentation.
1062 * dwarf2/read.c: Fix indentation.
1063 * dwarf2/read.h: Fix indentation.
1064 * elfread.c: Fix indentation.
1065 * eval.c: Fix indentation.
1066 * event-top.c: Fix indentation.
1067 * exec.c: Fix indentation.
1068 * exec.h: Fix indentation.
1069 * expprint.c: Fix indentation.
1070 * f-lang.c: Fix indentation.
1071 * f-typeprint.c: Fix indentation.
1072 * f-valprint.c: Fix indentation.
1073 * fbsd-nat.c: Fix indentation.
1074 * fbsd-tdep.c: Fix indentation.
1075 * findvar.c: Fix indentation.
1076 * fork-child.c: Fix indentation.
1077 * frame-unwind.c: Fix indentation.
1078 * frame-unwind.h: Fix indentation.
1079 * frame.c: Fix indentation.
1080 * frv-linux-tdep.c: Fix indentation.
1081 * frv-tdep.c: Fix indentation.
1082 * frv-tdep.h: Fix indentation.
1083 * ft32-tdep.c: Fix indentation.
1084 * gcore.c: Fix indentation.
1085 * gdb_bfd.c: Fix indentation.
1086 * gdbarch.sh: Fix indentation.
1087 * gdbarch.c: Re-generate
1088 * gdbarch.h: Re-generate.
1089 * gdbcore.h: Fix indentation.
1090 * gdbthread.h: Fix indentation.
1091 * gdbtypes.c: Fix indentation.
1092 * gdbtypes.h: Fix indentation.
1093 * glibc-tdep.c: Fix indentation.
1094 * gnu-nat.c: Fix indentation.
1095 * gnu-nat.h: Fix indentation.
1096 * gnu-v2-abi.c: Fix indentation.
1097 * gnu-v3-abi.c: Fix indentation.
1098 * go32-nat.c: Fix indentation.
1099 * guile/guile-internal.h: Fix indentation.
1100 * guile/scm-cmd.c: Fix indentation.
1101 * guile/scm-frame.c: Fix indentation.
1102 * guile/scm-iterator.c: Fix indentation.
1103 * guile/scm-math.c: Fix indentation.
1104 * guile/scm-ports.c: Fix indentation.
1105 * guile/scm-pretty-print.c: Fix indentation.
1106 * guile/scm-value.c: Fix indentation.
1107 * h8300-tdep.c: Fix indentation.
1108 * hppa-linux-nat.c: Fix indentation.
1109 * hppa-linux-tdep.c: Fix indentation.
1110 * hppa-nbsd-nat.c: Fix indentation.
1111 * hppa-nbsd-tdep.c: Fix indentation.
1112 * hppa-obsd-nat.c: Fix indentation.
1113 * hppa-tdep.c: Fix indentation.
1114 * hppa-tdep.h: Fix indentation.
1115 * i386-bsd-nat.c: Fix indentation.
1116 * i386-darwin-nat.c: Fix indentation.
1117 * i386-darwin-tdep.c: Fix indentation.
1118 * i386-dicos-tdep.c: Fix indentation.
1119 * i386-gnu-nat.c: Fix indentation.
1120 * i386-linux-nat.c: Fix indentation.
1121 * i386-linux-tdep.c: Fix indentation.
1122 * i386-nto-tdep.c: Fix indentation.
1123 * i386-obsd-tdep.c: Fix indentation.
1124 * i386-sol2-nat.c: Fix indentation.
1125 * i386-tdep.c: Fix indentation.
1126 * i386-tdep.h: Fix indentation.
1127 * i386-windows-tdep.c: Fix indentation.
1128 * i387-tdep.c: Fix indentation.
1129 * i387-tdep.h: Fix indentation.
1130 * ia64-libunwind-tdep.c: Fix indentation.
1131 * ia64-libunwind-tdep.h: Fix indentation.
1132 * ia64-linux-nat.c: Fix indentation.
1133 * ia64-linux-tdep.c: Fix indentation.
1134 * ia64-tdep.c: Fix indentation.
1135 * ia64-tdep.h: Fix indentation.
1136 * ia64-vms-tdep.c: Fix indentation.
1137 * infcall.c: Fix indentation.
1138 * infcmd.c: Fix indentation.
1139 * inferior.c: Fix indentation.
1140 * infrun.c: Fix indentation.
1141 * iq2000-tdep.c: Fix indentation.
1142 * language.c: Fix indentation.
1143 * linespec.c: Fix indentation.
1144 * linux-fork.c: Fix indentation.
1145 * linux-nat.c: Fix indentation.
1146 * linux-tdep.c: Fix indentation.
1147 * linux-thread-db.c: Fix indentation.
1148 * lm32-tdep.c: Fix indentation.
1149 * m2-lang.c: Fix indentation.
1150 * m2-typeprint.c: Fix indentation.
1151 * m2-valprint.c: Fix indentation.
1152 * m32c-tdep.c: Fix indentation.
1153 * m32r-linux-tdep.c: Fix indentation.
1154 * m32r-tdep.c: Fix indentation.
1155 * m68hc11-tdep.c: Fix indentation.
1156 * m68k-bsd-nat.c: Fix indentation.
1157 * m68k-linux-nat.c: Fix indentation.
1158 * m68k-linux-tdep.c: Fix indentation.
1159 * m68k-tdep.c: Fix indentation.
1160 * machoread.c: Fix indentation.
1161 * macrocmd.c: Fix indentation.
1162 * macroexp.c: Fix indentation.
1163 * macroscope.c: Fix indentation.
1164 * macrotab.c: Fix indentation.
1165 * macrotab.h: Fix indentation.
1166 * main.c: Fix indentation.
1167 * mdebugread.c: Fix indentation.
1168 * mep-tdep.c: Fix indentation.
1169 * mi/mi-cmd-catch.c: Fix indentation.
1170 * mi/mi-cmd-disas.c: Fix indentation.
1171 * mi/mi-cmd-env.c: Fix indentation.
1172 * mi/mi-cmd-stack.c: Fix indentation.
1173 * mi/mi-cmd-var.c: Fix indentation.
1174 * mi/mi-cmds.c: Fix indentation.
1175 * mi/mi-main.c: Fix indentation.
1176 * mi/mi-parse.c: Fix indentation.
1177 * microblaze-tdep.c: Fix indentation.
1178 * minidebug.c: Fix indentation.
1179 * minsyms.c: Fix indentation.
1180 * mips-linux-nat.c: Fix indentation.
1181 * mips-linux-tdep.c: Fix indentation.
1182 * mips-nbsd-tdep.c: Fix indentation.
1183 * mips-tdep.c: Fix indentation.
1184 * mn10300-linux-tdep.c: Fix indentation.
1185 * mn10300-tdep.c: Fix indentation.
1186 * moxie-tdep.c: Fix indentation.
1187 * msp430-tdep.c: Fix indentation.
1188 * namespace.h: Fix indentation.
1189 * nat/fork-inferior.c: Fix indentation.
1190 * nat/gdb_ptrace.h: Fix indentation.
1191 * nat/linux-namespaces.c: Fix indentation.
1192 * nat/linux-osdata.c: Fix indentation.
1193 * nat/netbsd-nat.c: Fix indentation.
1194 * nat/x86-dregs.c: Fix indentation.
1195 * nbsd-nat.c: Fix indentation.
1196 * nbsd-tdep.c: Fix indentation.
1197 * nios2-linux-tdep.c: Fix indentation.
1198 * nios2-tdep.c: Fix indentation.
1199 * nto-procfs.c: Fix indentation.
1200 * nto-tdep.c: Fix indentation.
1201 * objfiles.c: Fix indentation.
1202 * objfiles.h: Fix indentation.
1203 * opencl-lang.c: Fix indentation.
1204 * or1k-tdep.c: Fix indentation.
1205 * osabi.c: Fix indentation.
1206 * osabi.h: Fix indentation.
1207 * osdata.c: Fix indentation.
1208 * p-lang.c: Fix indentation.
1209 * p-typeprint.c: Fix indentation.
1210 * p-valprint.c: Fix indentation.
1211 * parse.c: Fix indentation.
1212 * ppc-linux-nat.c: Fix indentation.
1213 * ppc-linux-tdep.c: Fix indentation.
1214 * ppc-nbsd-nat.c: Fix indentation.
1215 * ppc-nbsd-tdep.c: Fix indentation.
1216 * ppc-obsd-nat.c: Fix indentation.
1217 * ppc-ravenscar-thread.c: Fix indentation.
1218 * ppc-sysv-tdep.c: Fix indentation.
1219 * ppc64-tdep.c: Fix indentation.
1220 * printcmd.c: Fix indentation.
1221 * proc-api.c: Fix indentation.
1222 * producer.c: Fix indentation.
1223 * producer.h: Fix indentation.
1224 * prologue-value.c: Fix indentation.
1225 * prologue-value.h: Fix indentation.
1226 * psymtab.c: Fix indentation.
1227 * python/py-arch.c: Fix indentation.
1228 * python/py-bpevent.c: Fix indentation.
1229 * python/py-event.c: Fix indentation.
1230 * python/py-event.h: Fix indentation.
1231 * python/py-finishbreakpoint.c: Fix indentation.
1232 * python/py-frame.c: Fix indentation.
1233 * python/py-framefilter.c: Fix indentation.
1234 * python/py-inferior.c: Fix indentation.
1235 * python/py-infthread.c: Fix indentation.
1236 * python/py-objfile.c: Fix indentation.
1237 * python/py-prettyprint.c: Fix indentation.
1238 * python/py-registers.c: Fix indentation.
1239 * python/py-signalevent.c: Fix indentation.
1240 * python/py-stopevent.c: Fix indentation.
1241 * python/py-stopevent.h: Fix indentation.
1242 * python/py-threadevent.c: Fix indentation.
1243 * python/py-tui.c: Fix indentation.
1244 * python/py-unwind.c: Fix indentation.
1245 * python/py-value.c: Fix indentation.
1246 * python/py-xmethods.c: Fix indentation.
1247 * python/python-internal.h: Fix indentation.
1248 * python/python.c: Fix indentation.
1249 * ravenscar-thread.c: Fix indentation.
1250 * record-btrace.c: Fix indentation.
1251 * record-full.c: Fix indentation.
1252 * record.c: Fix indentation.
1253 * reggroups.c: Fix indentation.
1254 * regset.h: Fix indentation.
1255 * remote-fileio.c: Fix indentation.
1256 * remote.c: Fix indentation.
1257 * reverse.c: Fix indentation.
1258 * riscv-linux-tdep.c: Fix indentation.
1259 * riscv-ravenscar-thread.c: Fix indentation.
1260 * riscv-tdep.c: Fix indentation.
1261 * rl78-tdep.c: Fix indentation.
1262 * rs6000-aix-tdep.c: Fix indentation.
1263 * rs6000-lynx178-tdep.c: Fix indentation.
1264 * rs6000-nat.c: Fix indentation.
1265 * rs6000-tdep.c: Fix indentation.
1266 * rust-lang.c: Fix indentation.
1267 * rx-tdep.c: Fix indentation.
1268 * s12z-tdep.c: Fix indentation.
1269 * s390-linux-tdep.c: Fix indentation.
1270 * score-tdep.c: Fix indentation.
1271 * ser-base.c: Fix indentation.
1272 * ser-mingw.c: Fix indentation.
1273 * ser-uds.c: Fix indentation.
1274 * ser-unix.c: Fix indentation.
1275 * serial.c: Fix indentation.
1276 * sh-linux-tdep.c: Fix indentation.
1277 * sh-nbsd-tdep.c: Fix indentation.
1278 * sh-tdep.c: Fix indentation.
1279 * skip.c: Fix indentation.
1280 * sol-thread.c: Fix indentation.
1281 * solib-aix.c: Fix indentation.
1282 * solib-darwin.c: Fix indentation.
1283 * solib-frv.c: Fix indentation.
1284 * solib-svr4.c: Fix indentation.
1285 * solib.c: Fix indentation.
1286 * source.c: Fix indentation.
1287 * sparc-linux-tdep.c: Fix indentation.
1288 * sparc-nbsd-tdep.c: Fix indentation.
1289 * sparc-obsd-tdep.c: Fix indentation.
1290 * sparc-ravenscar-thread.c: Fix indentation.
1291 * sparc-tdep.c: Fix indentation.
1292 * sparc64-linux-tdep.c: Fix indentation.
1293 * sparc64-nbsd-tdep.c: Fix indentation.
1294 * sparc64-obsd-tdep.c: Fix indentation.
1295 * sparc64-tdep.c: Fix indentation.
1296 * stabsread.c: Fix indentation.
1297 * stack.c: Fix indentation.
1298 * stap-probe.c: Fix indentation.
1299 * stubs/ia64vms-stub.c: Fix indentation.
1300 * stubs/m32r-stub.c: Fix indentation.
1301 * stubs/m68k-stub.c: Fix indentation.
1302 * stubs/sh-stub.c: Fix indentation.
1303 * stubs/sparc-stub.c: Fix indentation.
1304 * symfile-mem.c: Fix indentation.
1305 * symfile.c: Fix indentation.
1306 * symfile.h: Fix indentation.
1307 * symmisc.c: Fix indentation.
1308 * symtab.c: Fix indentation.
1309 * symtab.h: Fix indentation.
1310 * target-float.c: Fix indentation.
1311 * target.c: Fix indentation.
1312 * target.h: Fix indentation.
1313 * tic6x-tdep.c: Fix indentation.
1314 * tilegx-linux-tdep.c: Fix indentation.
1315 * tilegx-tdep.c: Fix indentation.
1316 * top.c: Fix indentation.
1317 * tracefile-tfile.c: Fix indentation.
1318 * tracepoint.c: Fix indentation.
1319 * tui/tui-disasm.c: Fix indentation.
1320 * tui/tui-io.c: Fix indentation.
1321 * tui/tui-regs.c: Fix indentation.
1322 * tui/tui-stack.c: Fix indentation.
1323 * tui/tui-win.c: Fix indentation.
1324 * tui/tui-winsource.c: Fix indentation.
1325 * tui/tui.c: Fix indentation.
1326 * typeprint.c: Fix indentation.
1327 * ui-out.h: Fix indentation.
1328 * unittests/copy_bitwise-selftests.c: Fix indentation.
1329 * unittests/memory-map-selftests.c: Fix indentation.
1330 * utils.c: Fix indentation.
1331 * v850-tdep.c: Fix indentation.
1332 * valarith.c: Fix indentation.
1333 * valops.c: Fix indentation.
1334 * valprint.c: Fix indentation.
1335 * valprint.h: Fix indentation.
1336 * value.c: Fix indentation.
1337 * value.h: Fix indentation.
1338 * varobj.c: Fix indentation.
1339 * vax-tdep.c: Fix indentation.
1340 * windows-nat.c: Fix indentation.
1341 * windows-tdep.c: Fix indentation.
1342 * xcoffread.c: Fix indentation.
1343 * xml-syscall.c: Fix indentation.
1344 * xml-tdesc.c: Fix indentation.
1345 * xstormy16-tdep.c: Fix indentation.
1346 * xtensa-config.c: Fix indentation.
1347 * xtensa-linux-nat.c: Fix indentation.
1348 * xtensa-linux-tdep.c: Fix indentation.
1349 * xtensa-tdep.c: Fix indentation.
1350
e1f57067
AB
13512020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1352 Craig Blackmore <craig.blackmore@embecosm.com>
1353
1354 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
1355 as an unsigned value.
1356
ae7754b2
TT
13572020-11-01 Tom Tromey <tom@tromey.com>
1358
1359 * dbxread.c (dbx_end_psymtab): Update.
1360 * dwarf2/read.c (process_psymtab_comp_unit_reader)
1361 (build_type_psymtabs_reader): Update.
1362 * xcoffread.c (xcoff_end_psymtab): Update.
1363 * ctfread.c (scan_partial_symbols): Update.
1364 * psymtab.c (sort_pst_symbols): Remove.
1365 (partial_symtab::end): Rename from end_psymtab_common. Inline
1366 sort_pst_symbols.
1367 * psympriv.h (struct partial_symtab) <end>: New method.
1368 (end_psymtab_common): Don't declare.
1369
0684bb51
TT
13702020-11-01 Tom Tromey <tom@tromey.com>
1371
1372 * symmisc.c (count_psyms): New function.
1373 (print_objfile_statistics): Use it.
1374 * psymtab.c (append_psymbol_to_list): Remove.
1375 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
1376 * objfiles.h (struct objstats) <n_psyms>: Remove.
1377
089002bb
TT
13782020-11-01 Tom Tromey <tom@tromey.com>
1379
1380 * dbxread.c (dbx_end_psymtab): Update.
1381 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
1382 (build_type_psymtabs_reader): Update.
1383 * xcoffread.c (xcoff_end_psymtab): Update.
1384 * ctfread.c (scan_partial_symbols): Update.
1385 * psympriv.h (end_psymtab_common): Update.
1386 * psymtab.c (end_psymtab_common): Remove objfile parameter.
1387 (sort_pst_symbols): Likewise.
1388
525454d6
TT
13892020-11-01 Tom Tromey <tom@tromey.com>
1390
1391 * dbxread.c (dbx_symfile_read): Update.
1392 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
1393 * xcoffread.c (xcoff_initial_scan): Update.
1394 * psympriv.h (init_psymbol_list): Don't declare.
1395 * psymtab.c (init_psymbol_list): Remove.
1396
60bd1d53
JB
13972020-11-01 Joel Brobecker <brobecker@adacore.com>
1398
1399 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
1400 gnat_encoded_fixed_type_info. Update all callers.
1401
db99d0d0
JB
14022020-11-01 Joel Brobecker <brobecker@adacore.com>
1403
1404 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
1405 line too long.
1406
75f24e86
JB
14072020-11-01 Joel Brobecker <brobecker@adacore.com>
1408
1409 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
1410 cast_from_fixed. Update all callers.
1411 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
1412 Update all callers.
1413 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
1414 Update all callers.
1415 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
1416 ada_scaling_factor.
1417 * ada-typeprint.c: Replace call to ada_scaling_factor by call
1418 to print_gnat_encoded_fixed_point_type.
1419 * ada-valprint.c: Likewise.
1420
4f0469cd
AB
14212020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1422
1423 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
1424 (debug_prefixed_printf): Add check of debug_displaced flag.
1425 * linux-nat.c (linux_nat_debug_printf): Add check of
1426 debug_linux_nat flag.
1427
17417fb0
SM
14282020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1429
1430 * infrun.c (infrun_debug_printf_1): Remove.
1431 (displaced_debug_printf_1): Remove.
1432 (stop_all_threads): Use debug_prefixed_printf.
1433 * infrun.h (infrun_debug_printf_1): Remove.
1434 (infrun_debug_printf): Use debug_prefixed_printf.
1435 (displaced_debug_printf_1): Remove.
1436 (displaced_debug_printf): Use debug_prefixed_printf.
1437 * linux-nat.c (linux_nat_debug_printf_1): Remove.
1438 (linux_nat_debug_printf): Use debug_prefixed_printf.
1439
ad6dba1c
SM
14402020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1441
1442 * configure: Re-generate.
1443 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
1444 AC_LANG_PROGRAM.
1445
b6fb30ed
SM
14462020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1447
1448 * configure: Re-generate.
1449
5164c117
SM
14502020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1451
1452 * configure: Re-generate.
1453
864ca435
SM
14542020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1455
1456 * configure: Re-generate.
1457
b9442ec1
SM
14582020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1459
1460 * configure: Re-generate.
1461
294f2697
SM
14622020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1463
1464 * acinclude.m4: Modernize.
1465 * configure: Re-generate.
1466
5593a99a
SM
14672020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1468
1469 * configure.ac: Modernize.
1470 * configure: Re-generate.
1471
e41fda1d
SM
14722020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1473
1474 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
1475 * configure: Re-generate.
1476 * configure.ac: Remove AM_PROG_CC_STDC.
1477
91e1a0ed
SM
14782020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1479
1480 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
1481 AC_CANONICAL_SYSTEM.
1482 * configure: Re-generate.
1483
136821d9
SM
14842020-10-30 Simon Marchi <simon.marchi@efficios.com>
1485
1486 * infrun.h (displaced_debug_printf): New macro. Replace
1487 displaced debug prints throughout to use it.
1488 (displaced_debug_printf_1): New declaration.
1489 (displaced_step_dump_bytes): Return string, remove ui_file
1490 parameter, update all callers.
1491 * infrun.c (displaced_debug_printf_1): New function.
1492 (displaced_step_dump_bytes): Return string, remove ui_file
1493 parameter
1494
aa2045e7
SM
14952020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
1496
1497 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
1498
b1ec2735
TT
14992020-10-30 Tom Tromey <tromey@adacore.com>
1500
1501 * Makefile.in (stamp-init): Depend on config.status.
1502
b78b3a29
TBA
15032020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1504
1505 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
1506
d70bdd3c
PA
15072020-10-30 Pedro Alves <pedro@palves.net>
1508
1509 * thread.c (lookup_selected_frame): Move ...
1510 * frame.c (lookup_selected_frame): ... here.
1511
79952e69
PA
15122020-10-30 Pedro Alves <pedro@palves.net>
1513
1514 * blockframe.c (block_innermost_frame): Use get_selected_frame.
1515 * frame.c
1516 (scoped_restore_selected_frame::scoped_restore_selected_frame):
1517 Use save_selected_frame. Save language as well.
1518 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
1519 Use restore_selected_frame, and restore language as well.
1520 (selected_frame_id, selected_frame_level): New.
1521 (selected_frame): Update comments.
1522 (save_selected_frame, restore_selected_frame): New.
1523 (get_selected_frame): Use lookup_selected_frame.
1524 (get_selected_frame_if_set): Delete.
1525 (select_frame): Record selected_frame_level and selected_frame_id.
1526 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
1527 fields.
1528 (get_selected_frame): Make 'message' parameter optional.
1529 (get_selected_frame_if_set): Delete declaration.
1530 (select_frame): Update comments.
1531 (save_selected_frame, restore_selected_frame)
1532 (lookup_selected_frame): Declare.
1533 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
1534 * infrun.c (struct infcall_control_state) <selected_frame_level>:
1535 New field.
1536 (save_infcall_control_state): Use save_selected_frame.
1537 (restore_selected_frame): Delete.
1538 (restore_infcall_control_state): Use restore_selected_frame.
1539 * stack.c (select_frame_command_core, frame_command_core): Use
1540 get_selected_frame.
1541 * thread.c (restore_selected_frame): Rename to ...
1542 (lookup_selected_frame): ... this and make extern. Select the
1543 current frame if the frame level is -1.
1544 (scoped_restore_current_thread::restore): Also restore the
1545 language.
1546 (scoped_restore_current_thread::~scoped_restore_current_thread):
1547 Don't try/catch.
1548 (scoped_restore_current_thread::scoped_restore_current_thread):
1549 Save the language as well. Use save_selected_frame.
1550
58103c33
SM
15512020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1552
1553 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
1554 documentation.
1555 * gdbarch.h: Re-generate.
1556
40a53766
SM
15572020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1558
1559 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
1560 parameter.
1561 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
1562 Likewise.
1563 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1564 Likewise.
1565 * arch-utils.c (default_displaced_step_hw_singlestep):
1566 Likewise.
1567 * arch-utils.h (default_displaced_step_hw_singlestep):
1568 Likewise.
1569 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
1570 Likewise.
1571 * s390-tdep.c (s390_displaced_step_hw_singlestep):
1572 Likewise.
1573 * gdbarch.c: Re-generate.
1574 * gdbarch.h: Re-generate.
1575 * infrun.c (resume_1): Adjust.
1576
8407f91b
TT
15772020-10-29 Tom Tromey <tom@tromey.com>
1578
1579 * progspace.c (program_space::~program_space): Don't call
1580 exec_close.
1581
5008b3b2
TT
15822020-10-29 Tom Tromey <tom@tromey.com>
1583
1584 * exec.c (exec_target::close): Don't change current program
1585 space.
1586
d9eebde0
TT
15872020-10-29 Tom Tromey <tom@tromey.com>
1588
1589 * symfile.c (add_symbol_file_command): Update.
1590 * exec.c (program_space::add_target_sections): Rename.
1591 * symfile-mem.c (symbol_file_add_from_memory): Update.
1592 * progspace.h (struct program_space) <add_target_sections>:
1593 Declare new overload.
1594 * exec.h (add_target_sections_of_objfile): Don't declare.
1595
3769e227
TT
15962020-10-29 Tom Tromey <tom@tromey.com>
1597
1598 * solib.c (solib_map_sections): Update.
1599 * exec.c (program_space::add_target_sections): Now a method.
1600 (exec_file_attach): Update.
1601 * exec.h (add_target_sections): Don't declare.
1602 * progspace.h (struct program_space) <add_target_sections>:
1603 Declare.
1604
2a3f84af
TT
16052020-10-29 Tom Tromey <tom@tromey.com>
1606
1607 * progspace.h (struct program_space) <remove_target_sections>:
1608 Declare.
1609 * exec.c (program_space::remove_target_sections): Now a method.
1610 * exec.h (remove_target_sections): Don't declare.
1611
004eecfd
TT
16122020-10-29 Tom Tromey <tom@tromey.com>
1613
1614 * inferior.c (delete_inferior): Update.
1615 * progspace.c (program_space::empty): Rename from
1616 program_space_empty_p. Return bool.
1617 * progspace.h (struct program_space) <empty>: New method.
1618 (program_space_empty_p): Don't declare.
1619
e39fb971
TT
16202020-10-29 Tom Tromey <tom@tromey.com>
1621
1622 * progspace.c (program_space::~program_space): Don't call
1623 clear_program_space_solib_cache.
1624 (program_space::clear_solib_cache): Rename from
1625 clear_solib_cache.
1626 * solib.c (handle_solib_event): Update.
1627 * progspace.h (struct program_space) <clear_solib_cache>: New
1628 method.
1629 (clear_program_space_solib_cache): Don't declare.
1630
a42d7dd8
TT
16312020-10-29 Tom Tromey <tom@tromey.com>
1632
1633 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1634 * target.c (info_target_command): Update.
1635 * symfile.c (syms_from_objfile_1, finish_new_objfile)
1636 (symbol_file_clear, reread_symbols): Update.
1637 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
1638 * stabsread.c (scan_file_globals): Update.
1639 * solib.c (update_solib_list): Update.
1640 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
1641 (svr4_fetch_objfile_link_map, enable_break)
1642 (svr4_relocate_main_executable)
1643 (svr4_iterate_over_objfiles_in_search_order): Update.
1644 * solib-frv.c (lm_base, enable_break)
1645 (frv_relocate_main_executable): Update.
1646 (main_got, frv_fdpic_find_canonical_descriptor): Update.
1647 (frv_fetch_objfile_link_map): Update.
1648 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
1649 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
1650 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
1651 * remote.c (remote_target::get_offsets): Update.
1652 (remote_target::start_remote)
1653 (extended_remote_target::post_attach): Update.
1654 * objfiles.c (entry_point_address_query): Update.
1655 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
1656 * minsyms.c (get_symbol_leading_char): Update.
1657 * frame.c (inside_main_func): Update.
1658 * progspace.h (symfile_objfile): Remove macro.
1659
19f6550e
TT
16602020-10-29 Tom Tromey <tom@tromey.com>
1661
1662 * exec.c (exec_file_attach): Update.
1663 * progspace.c (program_space::exec_close): Update.
1664 * progspace.h (struct program_space) <ebfd>: Now a
1665 gdb_bfd_ref_ptr.
1666 <set_exec_bfd>: Change argument type.
1667 <exec_bfd>: Update.
1668
7e10abd1
TT
16692020-10-29 Tom Tromey <tom@tromey.com>
1670
1671 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1672 * symfile.c (reread_symbols): Update.
1673 * symfile-mem.c (add_symbol_file_from_memory_command)
1674 (add_vsyscall_page): Update.
1675 * source-cache.c (source_cache::get_plain_source_lines): Update.
1676 * solib-svr4.c (find_program_interpreter, elf_locate_base)
1677 (svr4_current_sos_direct, svr4_exec_displacement)
1678 (svr4_relocate_main_executable): Update.
1679 (svr4_iterate_over_objfiles_in_search_order): Update.
1680 * solib-frv.c (enable_break2, enable_break): Update.
1681 * solib-dsbt.c (lm_base, enable_break): Update.
1682 * solib-darwin.c (find_program_interpreter)
1683 (darwin_solib_create_inferior_hook): Update.
1684 * sol-thread.c (rw_common, ps_pdmodel): Update.
1685 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
1686 * remote.c (compare_sections_command)
1687 (remote_target::trace_set_readonly_regions): Update.
1688 * remote-sim.c (get_sim_inferior_data)
1689 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
1690 (gdbsim_target_open, gdbsim_target::files_info): Update.
1691 * exec.h (exec_bfd): Remove macro.
1692 * progspace.c (initialize_progspace): Update.
1693 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
1694 Update.
1695 * nto-procfs.c (nto_procfs_target::post_attach)
1696 (nto_procfs_target::create_inferior): Update.
1697 * maint.c (maintenance_info_sections): Update.
1698 * linux-thread-db.c (thread_db_target::get_thread_local_address):
1699 Update.
1700 * infcmd.c (post_create_inferior): Update.
1701 * gcore.c (default_gcore_arch, default_gcore_target): Update.
1702 (objfile_find_memory_regions): Update.
1703 * exec.c (validate_exec_file, exec_file_attach)
1704 (exec_read_partial_read_only, print_section_info): Update.
1705 * corelow.c (core_target_open): Update.
1706 * corefile.c (reopen_exec_file, validate_files): Update.
1707 * arm-tdep.c (gdb_print_insn_arm): Update.
1708 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
1709 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
1710 methods.
1711
b55221ab
TT
17122020-10-29 Tom Tromey <tom@tromey.com>
1713
1714 * progspace.h (current_target_sections): Remove macro.
1715 * solib-svr4.c (scan_dyntag): Update.
1716 * solib-dsbt.c (scan_dyntag): Update.
1717 * exec.c (exec_target::close): Update.
1718 (add_target_sections, add_target_sections_of_objfile)
1719 (remove_target_sections, exec_target::get_section_table)
1720 (exec_target::files_info, set_section_command)
1721 (exec_set_section_address, exec_target::has_memory)
1722 (exec_target::has_memory): Update.
1723
5a36e715
TT
17242020-10-29 Tom Tromey <tom@tromey.com>
1725
1726 * source-cache.c (source_cache::get_plain_source_lines): Use
1727 current_program_space.
1728 * corefile.c (reopen_exec_file): Use current_program_space.
1729 * exec.c (exec_file_attach): Use current_program_space.
1730 * exec.h (exec_bfd_mtime): Remove.
1731
784c8592
TT
17322020-10-29 Tom Tromey <tom@tromey.com>
1733
1734 * gcore.c (default_gcore_mach): Remove.
1735 (create_gcore_bfd): Update.
1736
8a4f1402
TT
17372020-10-29 Tom Tromey <tom@tromey.com>
1738
1739 * progspace.c (program_space::exec_close): New method, from
1740 exec_close in exec.c.
1741 * exec.c (exec_close): Move to progspace.c.
1742 (exec_target::close, exec_file_attach): Update.
1743 * progspace.h (struct program_space) <exec_close>: Declare
1744 method.
1745
c20cb686
TT
17462020-10-29 Tom Tromey <tom@tromey.com>
1747
1748 * progspace.h (struct program_space) <exec_filename>: Rename from
1749 pspace_exec_filename. Now a unique_xmalloc_ptr.
1750 * inferior.c (print_selected_inferior): Update.
1751 (print_inferior): Update.
1752 * mi/mi-main.c (print_one_inferior): Update.
1753 * exec.h (exec_filename): Remove macro.
1754 * corefile.c (get_exec_file): Update.
1755 * exec.c (exec_close): Update.
1756 (exec_file_attach): Update.
1757 * progspace.c (clone_program_space): Update.
1758 (print_program_space): Update.
1759
6be2a9ab
TT
17602020-10-29 Tom Tromey <tom@tromey.com>
1761
1762 * target-section.h (struct target_section): Add constructor.
1763 * exec.c (build_section_table, add_target_sections_of_objfile):
1764 Update.
1765 * corelow.c (core_target::build_file_mappings): Update.
1766
cfaa8f76
TBA
17672020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1768
1769 PR gdb/19318
1770 * inferior.c (detach_inferior_command): Restore the current thread.
1771 (kill_inferior_command): Ditto.
1772
1b00ef06
TV
17732020-10-28 Tom de Vries <tdevries@suse.de>
1774
1775 PR symtab/26772
1776 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
1777 map, check it in the "best match" loop.
1778
7f40ce1a
SM
17792020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1780
1781 * m32c-tdep.c: Remove unused includes.
1782
5eb9e3f5
SM
17832020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1784
1785 * xtensa-tdep.c: Remove includes.
1786
b1d4d8d1
TBA
17872020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1788
1789 * breakpoint.c (struct condition_command_opts): New struct.
1790 (condition_command_option_defs): New static global.
1791 (make_condition_command_options_def_group): New function.
1792 (condition_completer): Update to consider the '-force' flag.
1793 (condition_command): Use gdb::option for the '-force' flag.
1794
bd24c5d6
TV
17952020-10-27 Tom de Vries <tdevries@suse.de>
1796
1797 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
1798 symbols in section check.
1799
61eb46a4
TV
18002020-10-27 Tom de Vries <tdevries@suse.de>
1801
1802 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
1803
733d554a
TBA
18042020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1805
1806 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
1807 * breakpoint.c: Update the help text of the 'condition' and 'break'
1808 commands.
1809 (set_breakpoint_condition): Take a new bool parameter
1810 to control whether condition definition should be forced even when
1811 the condition expression is invalid in all of the current locations.
1812 (condition_command): Update the call to 'set_breakpoint_condition'.
1813 (find_condition_and_thread): Take the "-force-condition" flag into
1814 account.
1815 * linespec.c (linespec_keywords): Add "-force-condition" as an
1816 element.
1817 (FORCE_KEYWORD_INDEX): New #define.
1818 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
1819 as a keyword.
1820 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
1821 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
1822 * python/py-breakpoint.c (bppy_set_condition): Ditto.
1823 * NEWS: Mention the changes to the 'break' and 'condition' commands.
1824
b5fa468f
TBA
18252020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1826
1827 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
1828 * breakpoint.c (set_breakpoint_location_condition): New function.
1829 (set_breakpoint_condition): Disable a breakpoint location if parsing
1830 the condition string gives an error.
1831 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
1832 (build_target_condition_list): Ditto.
1833 (build_target_command_list): Ditto.
1834 (build_bpstat_chain): Ditto.
1835 (print_one_breakpoint_location): Ditto.
1836 (print_one_breakpoint): Ditto.
1837 (breakpoint_1): Ditto.
1838 (bp_location::bp_location): Ditto.
1839 (locations_are_equal): Ditto.
1840 (update_breakpoint_locations): Ditto.
1841 (enable_disable_bp_num_loc): Ditto.
1842 (init_breakpoint_sal): Use set_breakpoint_location_condition.
1843 (find_condition_and_thread_for_sals): New static function.
1844 (create_breakpoint): Call find_condition_and_thread_for_sals.
1845 (location_to_sals): Call find_condition_and_thread_for_sals instead
1846 of find_condition_and_thread.
1847
1c47ec3e
TV
18482020-10-26 Tom de Vries <tdevries@suse.de>
1849
1850 * dwarf2/read.c (process_full_comp_unit): Call
1851 dwarf2_find_base_address.
1852
6390859c
TT
18532020-10-26 Tom Tromey <tromey@adacore.com>
1854
1855 * gdbtypes.c (create_range_type): Revert previous patch. Add
1856 comment.
1857
d744f0f9
PA
18582020-10-26 Pedro Alves <pedro@palves.net>
1859
1860 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
1861 (my_waitpid): Use gdb::handle_eintr.
1862
006811bc
SM
18632020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
1864
1865 * acinclude.m4: Update ptrace.m4 path.
1866 * ptrace.m4: Moved to gdbsupport.
1867
c75e31a1
SM
18682020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1869
1870 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
1871 instead of target_gdbarch.
1872
32495661
SM
18732020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1874
1875 * jit.c (jit_reader_load_command): Pass current inferior.
1876 (jit_inferior_init): Change parameter type to inferior, use it.
1877 (jit_inferior_created): Remove.
1878 (jit_inferior_created_hook): Pass inferior parameter down.
1879 (_initialize_jit): Use jit_inferior_created_hook instead of
1880 jit_inferior_created.
1881 * jit.h (jit_inferior_created_hook): Add inferior parameter.
1882 * infrun.c (follow_exec): Pass inferior to
1883 jit_inferior_created_hook.
1884
3f66685e
SM
18852020-10-24 Simon Marchi <simon.marchi@efficios.com>
1886
1887 * linux-thread-db.c (check_pid_namespace_match): Add inferior
1888 parameter and use it.
1889 (thread_db_inferior_created): Pass inferior argument.
1890
a0ff652f
SM
18912020-10-24 Simon Marchi <simon.marchi@efficios.com>
1892
1893 * aix-thread.c (aix_thread_inferior_created): Add inferior
1894 parameter.
1895 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
1896 * dummy-frame.c (cleanup_dummy_frames): Likewise.
1897 * jit.c (jit_inferior_created): Likewise.
1898 * linux-thread-db.c (thread_db_inferior_created): Likewise.
1899 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
1900 * observable.h (inferior_created): Likewise.
1901 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
1902 * symfile-mem.c (add_vsyscall_page): Likewise.
1903 * infcmd.c (post_create_inferior): Pass inferior argument.
1904
3c67532c
JB
19052020-10-24 Joel Brobecker <brobecker@adacore.com>
1906
1907 GDB 10.1 released.
1908
8747316e
JB
19092020-10-23 Joel Brobecker <brobecker@adacore.com>
1910
1911 * ada-typeprint.c (ada_print_type): Remove superfluous second call
1912 to ada_check_typedef.
1913
1a0ea399
AB
19142020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1915
1916 * f-exp.y (f_parse): Rename to...
1917 (f_language::parser): ...this.
1918 * f-lang.c (f_get_encoding): Rename to...
1919 (f_language::get_encoding): ...this.
1920 (f_op_print_tab): Rename to...
1921 (f_language::op_print_tab): ...this.
1922 (exp_descriptor_f): Rename to...
1923 (f_language::exp_descriptor_tab): ...this.
1924 (class f_language): Moved to f-lang.h.
1925 (f_language::language_arch_info): New function, moved out of class
1926 declaration.
1927 (f_language::search_name_hash): Likewise.
1928 (f_language::lookup_symbol_nonlocal): Likewise.
1929 (f_language::get_symbol_name_matcher_inner): Likewise.
1930 * f-lang.h: Add 'valprint.h' include.
1931 (class f_language): Moved here from f-lang.c.
1932 * f-typeprint.c (f_type_print_args): Delete commented out
1933 declaration.
1934 (f_print_typedef): Rename to...
1935 (f_language::print_typedef): ...this.
1936 (f_print_type): Rename to...
1937 (f_language::print_type): ...this.
1938 (f_type_print_varspec_prefix): Delete declaration and rename to...
1939 (f_language::f_type_print_varspec_prefix): ...this.
1940 (f_type_print_varspec_suffix): Delete declaration and rename to...
1941 (f_language::f_type_print_varspec_suffix): ...this.
1942 (f_type_print_base): Delete declaration and rename to...
1943 (f_language::f_type_print_base): ...this.
1944 * f-valprint.c (f_value_print_inner): Rename to...
1945 (f_language::value_print_inner): ...this.
1946 * parse.c: Delete 'f-lang.h' include.
1947
88cefd9b
AB
19482020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1949
1950 * language.h (language_defn::print_type): Add variable names in
1951 declaration, and update header comment.
1952
5399db93
AB
19532020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1954
1955 * ada-lang.c (ada_language::demangle): Rename to...
1956 (ada_language::demangle_symbol): ...this.
1957 * c-lang.c (cplus_language::demangle): Rename to...
1958 (cplus_language::demangle_symbol): ...this.
1959 * d-lang.c (d_language::demangle): Rename to...
1960 (d_language::demangle_symbol): ...this.
1961 * f-lang.c (f_language::demangle): Rename to...
1962 (f_language::demangle_symbol): ...this.
1963 * go-lang.c (go_language::demangle): Rename to...
1964 (go_language::demangle_symbol): ...this.
1965 * language.c (language_demangle): Update call to demangle_symbol.
1966 (auto_or_unknown_language::demangle): Rename to...
1967 (auto_or_unknown_language::demangle_symbol): ...this.
1968 * language.h (language_defn::demangle): Rename to...
1969 (language_defn::demangle_symbol): ...this.
1970 * objc-lang.c (objc_language::demangle): Rename to...
1971 (objc_language::demangle_symbol): ...this.
1972 * rust-lang.c (rust_language::demangle): Rename to...
1973 (rust_language::demangle_symbol): ...this.
1974
4b2f86ef
AB
19752020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1976
1977 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
1978 (iterate_over_file_blocks): Replace use of macro with the macros
1979 definition.
1980
e74b39de
AB
19812020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1982
1983 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
1984 * valprint.c (maybe_print_array_index): Replace use of macro with
1985 the macros definition.
1986
00c696a6
AB
19872020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1988
1989 * ada-lang.c (ada_language::print_array_index): Call value_print
1990 directly.
1991 * language.c (language_defn::print_array_index): Likewise.
1992 * language.h (LA_VALUE_PRINT): Delete.
1993 * valprint.c (value_print): Call value_print on the
1994 current_language directly.
1995
d3b67c56
AB
19962020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1997
1998 * language.h (LA_PRINT_TYPEDEF): Delete.
1999 * typeprint.c (typedef_print): Call print_typedef directly on the
2000 current_language object.
2001
790e2a12
AB
20022020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2003
2004 * m2-exp.y (m2_parse): Rename to...
2005 (m2_language::parser): ...this. Update function signature.
2006 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
2007 (m2_op_print): Rename to...
2008 (m2_language::op_print_tab): ...this, and make const.
2009 (exp_descriptor_modula2): Rename to...
2010 (m2_language::exp_descriptor_modula2): ...this.
2011 (class m2_language): Move to m2-lang.h.
2012 (m2_language::language_arch_info): New function, moved out of
2013 class declaration.
2014 (m2_language::printchar): New function, body from m2_printchar.
2015 (m2_language::printstr): New function, moved out of class
2016 declaration.
2017 (m2_language::emitchar): Likewise.
2018 * m2-lang.h (m2_parse): Delete declaration.
2019 (m2_print_typedef): Delete declaration.
2020 (m2_value_print_inner): Delete declaration.
2021 (class m2_language): Class declaration moved from m2-lang.c,
2022 larger functions are left in m2-lang.c.
2023 * m2-typeprint.c (m2_print_typedef): Rename to...
2024 (m2_language::print_typedef): ...this, and update function
2025 signature.
2026 * m2-valprint.c (m2_value_print_inner): Rename to...
2027 (m2_language::value_print_inner): ...this, replace use of
2028 LA_PRINT_STRING with a direct call to printstr member function,
2029 and update recursive call.
2030
b01175fc
AB
20312020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2032
2033 * language.c (default_is_string_type_p): Delete, implementation
2034 moved into auto_or_unknown_language::is_string_type_p.
2035 (unk_op_print_tab): Moved into
2036 auto_or_unknown_language::opcode_print_table.
2037 (unknown_language_arch_info): Delete, implementation moved into
2038 auto_or_unknown_language::language_arch_info.
2039 (class auto_or_unknown_language): New class, member functions
2040 copied from unknown_language class, with some updates.
2041 (class unknown_language): Most member functions moved into
2042 auto_or_unknown_language class. Inherit from
2043 auto_or_unknown_language class.
2044 (class auto_language): Inherit from auto_or_unknown_language.
2045 Delete most member functions.
2046
1a97fe8c
HD
20472020-10-22 Hannes Domani <ssbssa@yahoo.de>
2048
2049 * stabsread.c (read_member_functions): Remove gdb_assert.
2050
6b9d0dfd
HD
20512020-10-22 Hannes Domani <ssbssa@yahoo.de>
2052
2053 * gdbtypes.c (init_complex_type): Check target type name.
2054
4b4bb603
SM
20552020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2056
2057 * target-debug.h (target_debug_print_struct_target_ops_p):
2058 Remove.
2059 (target_debug_print_async_callback_ftype_p): Remove.
2060 (target_debug_print_struct_trace_state_variable_p): Remove.
2061 (target_debug_print_struct_traceframe_info_p): Remove.
2062 (target_debug_print_VEC__btrace_block_s__pp): Remove.
2063 (target_debug_print_enum_btrace_format): Remove.
2064 (target_debug_print_enum_info_proc_what): Remove.
2065 (target_debug_print_thread_info_pp): Remove.
2066
24f5300a
SM
20672020-10-22 Simon Marchi <simon.marchi@efficios.com>
2068
2069 * target.h (struct target_ops) <make_corefile_notes>:
2070 Change return type to unique pointer.
2071 * target.c (dummy_make_corefile_notes): Likewise.
2072 * exec.c (struct exec_target) <make_corefile_notes>:
2073 Likewise.
2074 (exec_target::make_corefile_notes): Likewise.
2075 * procfs.c (class procfs_target) <make_corefile_notes>:
2076 Likewise.
2077 (procfs_do_thread_registers): Adjust to unique pointer.
2078 (struct procfs_corefile_thread_data): Add constructor.
2079 <note_data>: Change type to unique pointer.
2080 (procfs_corefile_thread_callback): Adjust to unique pointer.
2081 (procfs_target::make_corefile_notes): Change return type to
2082 unique pointer.
2083 * target-delegates.c: Re-generate.
2084 * gcore.c (write_gcore_file_1): Adjust.
2085 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
2086 New.
2087
5fb4027f
TV
20882020-10-22 Tom de Vries <tdevries@suse.de>
2089
2090 * block.c (find_block_in_blockvector): Make sure the returned block
2091 contains pc.
2092
4a636814
SM
20932020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2094
2095 PR gdb/26693
2096 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
2097 parameter.
2098 (load_cu): Pass existing CU.
2099 (process_imported_unit_die): Likewise.
2100 (follow_die_offset): Likewise.
2101
1bd57575
LM
21022020-10-22 Luis Machado <luis.machado@linaro.org>
2103
2104 * corelow.c (core_target::xfer_partial): Also check for an empty
2105 m_core_unavailable_mappings vector.
2106
6b4c676c
AB
21072020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2108
2109 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
2110 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
2111 * f-exp.y (arglist): Allow for a series of subranges.
2112 (subrange): Add cases for subranges with strides.
2113 * f-lang.c (value_f90_subarray): Catch use of array strides and
2114 throw an error.
2115 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
2116
f2d8e4c5
AB
21172020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2118
2119 * expprint.c (print_subexp_standard): Change enum range_type to
2120 range_flag and rename variables to match.
2121 (dump_subexp_body_standard): Likewise.
2122 * expression.h (enum range_type): Rename to...
2123 (enum range_flag): ...this.
2124 (range_types): Rename to...
2125 (range_flags): ...this.
2126 * f-lang.c (value_f90_subarray): Change enum range_type to
2127 range_flag and rename variables to match.
2128 * parse.c (operator_length_standard): Likewise.
2129 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
2130 range_type to range_flag.
2131 * rust-lang.c (rust_evaluate_funcall): Likewise.
2132 (rust_range): Likewise.
2133 (rust_compute_range): Likewise.
2134 (rust_subscript): Likewise.
2135
2f1b18db
AB
21362020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2137
2138 * expprint.c (print_subexp_standard): Update to reflect changes to
2139 enum range_type.
2140 (dump_subexp_body_standard): Likewise.
2141 * expression.h (enum range_type): Convert to a bit field enum, and
2142 make the enum unsigned.
2143 * f-exp.y (subrange): Update to reflect changes to enum
2144 range_type.
2145 * f-lang.c (value_f90_subarray): Likewise.
2146 * parse.c (operator_length_standard): Likewise.
2147 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
2148 * rust-lang.c (rust_range): Likewise.
2149 (rust_compute_range): Likewise.
2150 (rust_subscript): Likewise.
2151
a46d1843
SM
21522020-10-21 Simon Marchi <simon.marchi@efficios.com>
2153
2154 * infrun.c (displaced_step_in_progress_thread): Fix comment.
2155 (displaced_step_in_progress): Fix comment.
2156
c21f37a8
SM
21572020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
2158
2159 * gdbarch.sh (make_corefile_notes): Return unique pointer.
2160 * gdbarch.c: Re-generate.
2161 * gdbarch.h: Re-generate.
2162 * gcore.c (write_gcore_file_1): Adjust.
2163 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
2164 constructor.
2165 <note_data>: Change type to unique pointer.
2166 <abort_iteration>: Change type to bool.
2167 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
2168 (fbsd_collect_thread_registers): Return void, adjust.
2169 (struct fbsd_corefile_thread_data): Add construtor.
2170 <note_data>: Change type to unique pointer.
2171 (fbsd_corefile_thread): Adjust.
2172 (fbsd_make_corefile_notes): Return unique pointer, adjust.
2173 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
2174 to unique pointer, adjust.
2175 (struct linux_collect_regset_section_cb_data): Add constructor.
2176 <note_data>: Change type to unique pointer.
2177 <abort_iteration>: Change type to bool.
2178 (linux_collect_thread_registers): Return void, adjust.
2179 (struct linux_corefile_thread_data): Add constructor.
2180 <note_data>: Change type to unique pointer.
2181 (linux_corefile_thread): Adjust.
2182 (linux_make_corefile_notes): Return unique pointer, adjust.
2183
07fbbd01
SM
21842020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2185
2186 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
2187 * gdbarch.c: Re-generate.
2188 * gdbarch.h: Re-generate.
2189 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
2190 bool.
2191 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
2192 Likewise.
2193 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
2194 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
2195 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
2196 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
2197
39535193
SM
21982020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2199
2200 * gdbarch.sh: Make generated predicates return bool.
2201 * gdbarch.c: Re-generate.
2202 * gdbarch.h: Re-generate.
2203
ad523d01
TT
22042020-10-20 Tom Tromey <tom@tromey.com>
2205
2206 * varobj-iter.h (struct varobj_item): Remove typedef.
2207
c4464ade
SM
22082020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2209
2210 * infrun.c (currently_stepping): Change int to bool
2211 (maybe_software_singlestep): Likewise.
2212 (show_stop_on_solib_events): Likewise.
2213 (stepping_past_nonsteppable_watchpoint): Likewise.
2214 (displaced_step_in_progress_any_inferior): Likewise.
2215 (displaced_step_in_progress_thread): Likewise.
2216 (keep_going_stepped_thread): Likewise.
2217 (thread_still_needs_step_over): Likewise.
2218 (start_step_over): Likewise.
2219 (do_target_resume): Likewise.
2220 (resume_1): Likewise.
2221 (clear_proceed_status): Likewise.
2222 (thread_still_needs_step_over_bp): Likewise.
2223 (proceed): Likewise.
2224 (switch_back_to_stepped_thread): Likewise.
2225 (adjust_pc_after_break): Likewise.
2226 (stepped_in_from): Likewise.
2227 (handle_stop_requested): Likewise.
2228 (handle_syscall_event): Likewise.
2229 (handle_no_resumed): Likewise.
2230 (handle_inferior_event): Likewise.
2231 (finish_step_over): Likewise.
2232 (handle_signal_stop): Likewise.
2233 (process_event_stop_test): Likewise.
2234
2eb20436
SM
22352020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2236
2237 * infrun.c (get_displaced_stepping_state): Fix comment.
2238
e0c45ded
AS
22392020-10-20 Andreas Schwab <schwab@linux-m68k.org>
2240
2241 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
2242
22cc388e
TT
22432020-10-19 Tom Tromey <tromey@adacore.com>
2244
2245 PR tui/26719
2246 * tui/tui-winsource.h (struct tui_source_window_base)
2247 <refresh_window>: Rename from refresh_pad.
2248 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
2249 Rename from refresh_pad.
2250 (tui_source_window_base::show_source_content)
2251 (tui_source_window_base::do_scroll_horizontal): Update.
2252
3c6eb4d4
TBA
22532020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2254
2255 * thread.c (_initialize_thread): Fine-tune the help text of
2256 'info threads'.
2257
26703721
TBA
22582020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2259
2260 * frame.c: Remove the unused 'uinteger_option_def' type alias.
2261
61c26be8
MS
22622020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
2263
2264 * breakpoint.c (handle_jit_event): Add an argument, change how
2265 `jit_event_handler` is called.
2266
932539d7
TT
22672020-10-17 Tom Tromey <tom@tromey.com>
2268
2269 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
2270 (scan_xcoff_symtab): Update.
2271 * psymtab.h (class psymtab_storage) <global_psymbols,
2272 static_psymbols, current_global_psymbols,
2273 current_static_psymbols>: Remove.
2274 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
2275 (match_partial_symbol, lookup_partial_symbol): Update.
2276 (print_partial_symbols): Change parameters.
2277 (dump_psymtab, recursively_search_psymtabs)
2278 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
2279 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
2280 (concat): Remove.
2281 (end_psymtab_common): Simplify.
2282 (append_psymbol_to_list): Change parameters.
2283 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
2284 (init_psymbol_list): Simplify.
2285 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2286 * psympriv.h (struct partial_symtab) <empty>: New method.
2287 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
2288 Remove.
2289 <global_psymbols, static_psymbols>: New members.
2290 <add_psymbol>: New methods.
2291 (add_psymbol_to_list): Don't declare.
2292 (psymbol_placement): Move earlier.
2293 * mdebugread.c (parse_partial_symbols): Update.
2294 (handle_psymbol_enumerators): Change parameters.
2295 (mdebug_expand_psymtab): Update.
2296 * dwarf2/read.c (process_psymtab_comp_unit_reader)
2297 (add_partial_symbol): Update.
2298 * dwarf2/index-write.c (write_psymbols): Change parameters.
2299 (write_one_signatured_type): Update.
2300 (recursively_count_psymbols): Update.
2301 (recursively_write_psymbols): Update.
2302 (class debug_names) <recursively_write_psymbols>: Update.
2303 <write_psymbols>: Change parameters.
2304 <write_one_signatured_type>: Update.
2305 * dbxread.c (read_dbx_symtab): Update.
2306 (dbx_end_psymtab): Use partial_symtab::empty.
2307 * ctfread.c (struct ctf_context) <pst>: New member.
2308 (create_partial_symtab): Set it.
2309 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
2310 (scan_partial_symbols): Use the psymtab's context. Update.
2311
cfabbd35
TT
23122020-10-17 Tom Tromey <tom@tromey.com>
2313
2314 * valprint.c (generic_value_print): Remove comment.
2315 * m2-valprint.c (m2_value_print_inner): Remove comment.
2316 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
2317 type.
2318
520596f2
TV
23192020-10-17 Tom de Vries <tdevries@suse.de>
2320
2321 PR symtab/26317
2322 * source.c (select_source_symtab): Handling sal.symtab == NULL for
2323 symbol main.
2324
76547ab3
TV
23252020-10-14 Tom de Vries <tdevries@suse.de>
2326
2327 PR gdb/26733
2328 * solib.c (solib_contains_address_p): Handle
2329 'solib->sections == nullptr'.
2330
d3a07122
SM
23312020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2332
2333 PR gdb/26642
2334 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
2335 target can't do async.
2336 * target.c (target_wait): Assert that we don't pass
2337 TARGET_WNOHANG to a target that can't async.
2338
1b71cfcf
KR
23392020-10-13 Kamil Rytarowski <n54@gmx.com>
2340
2341 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
2342 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
2343 * alpha-bsd-nat.c: Adjust include.
2344 * alpha-bsd-tdep.h: Adjust comment.
2345 * alpha-nbsd-tdep.c: Rename to ...
2346 * alpha-netbsd-tdep.c: ... this, adjust include.
2347 * amd64-nbsd-nat.c: Rename to ...
2348 * amd64-netbsd-nat.c: ... this, adjust include.
2349 * amd64-nbsd-tdep.c: Rename to ...
2350 * amd64-netbsd-tdep.c: ... this, adjust include.
2351 * amd64-tdep.h: Adjust include.
2352 * arm-nbsd-nat.c: Rename to ...
2353 * arm-netbsd-nat.c: ... this, adjust include.
2354 * arm-nbsd-tdep.c: Rename to ...
2355 * arm-netbsd-tdep.c: ... this, adjust include.
2356 * arm-nbsd-tdep.h: Rename to ...
2357 * arm-netbsd-tdep.h: ... this, adjust include.
2358 * configure.nat: Adjust file lists.
2359 * configure.tgt: Likewise.
2360 * hppa-nbsd-nat.c: Rename to ...
2361 * hppa-netbsd-nat.c: ... this, adjust include.
2362 * hppa-nbsd-tdep.c: Rename to ...
2363 * hppa-netbsd-tdep.c: ... this, adjust include.
2364 * i386-nbsd-nat.c: Rename to ...
2365 * i386-netbsd-nat.c: ... this, adjust include.
2366 * i386-nbsd-tdep.c: Rename to ...
2367 * i386-netbsd-tdep.c: ... this, adjust include.
2368 * m68k-bsd-nat.c: Adjust include.
2369 * mips-nbsd-nat.c: Rename to ...
2370 * mips-netbsd-nat.c: ... this, adjust include.
2371 * mips-nbsd-tdep.c: Rename to ...
2372 * mips-netbsd-tdep.c: ... this, adjust include.
2373 * mips-nbsd-tdep.h: Rename to ...
2374 * mips-netbsd-tdep.h: ... this.
2375 * nbsd-nat.c: Rename to ...
2376 * netbsd-nat.c: ... this, adjust include.
2377 * nbsd-nat.h: Rename to ...
2378 * netbsd-nat.h: ... this, adjust include.
2379 * nbsd-tdep.c: Rename to ...
2380 * netbsd-tdep.c: ... this, adjust include.
2381 * nbsd-tdep.h: Rename to ...
2382 * netbsd-tdep.h: ... this.
2383 * ppc-nbsd-nat.c: Rename to ...
2384 * ppc-netbsd-nat.c: ... this, adjust include.
2385 * ppc-nbsd-tdep.c: Rename to ...
2386 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
2387 * ppc-nbsd-tdep.h: Rename to ...
2388 * ppc-netbsd-tdep.h: ... this.
2389 * sh-nbsd-nat.c: Rename to ...
2390 * sh-netbsd-nat.c: ... this, adjust include.
2391 * sh-nbsd-tdep.c: Rename to ...
2392 * sh-netbsd-tdep.c: ... this, adjust include.
2393 * sparc-nbsd-nat.c: Rename to ...
2394 * sparc-netbsd-nat.c: ... this.
2395 * sparc-nbsd-tdep.c: Rename to ...
2396 * sparc-netbsd-tdep.c: ... this, adjust include.
2397 * sparc64-nbsd-nat.c: Rename to ...
2398 * sparc64-netbsd-nat.c: ... this.
2399 * sparc64-nbsd-tdep.c: Rename to ...
2400 * sparc64-netbsd-tdep.c: ... this, adjust include.
2401 * sparc64-tdep.h: Adjust comment.
2402 * vax-bsd-nat.c: Adjust include.
2403 * vax-nbsd-tdep.c: Rename to ...
2404 * vax-netbsd-tdep.c: ... this, adjust include.
2405
d7a78e5c
TT
24062020-10-12 Tom Tromey <tom@tromey.com>
2407
2408 * target.h (struct target_ops) <get_section_table>: Update.
2409 (target_get_section_table): Update.
2410 * target.c (target_get_section_table, target_section_by_addr)
2411 (memory_xfer_partial_1): Update.
2412 * target-section.h (target_section_table): Now an alias.
2413 * target-delegates.c: Rebuild.
2414 * target-debug.h (target_debug_print_target_section_table_p):
2415 Rename from target_debug_print_struct_target_section_table_p.
2416 * symfile.c (build_section_addr_info_from_section_table): Update.
2417 * solib.c (solib_map_sections, solib_contains_address_p): Update.
2418 * solib-svr4.c (scan_dyntag): Update.
2419 * solib-dsbt.c (scan_dyntag): Update.
2420 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2421 Update.
2422 * record-full.c (record_full_core_target::xfer_partial): Update.
2423 * progspace.h (struct program_space) <target_sections>: Update.
2424 * exec.h (print_section_info): Update.
2425 * exec.c (exec_target::close, build_section_table)
2426 (add_target_sections, add_target_sections_of_objfile)
2427 (remove_target_sections, exec_on_vfork)
2428 (section_table_available_memory)
2429 (section_table_xfer_memory_partial)
2430 (exec_target::get_section_table, exec_target::xfer_partial)
2431 (print_section_info, set_section_command)
2432 (exec_set_section_address, exec_target::has_memory): Update.
2433 * corelow.c (core_target::build_file_mappings)
2434 (core_target::xfer_partial, core_target::info_proc_mappings)
2435 (core_target::info_proc_mappings): Update.
2436 * bfd-target.c (class target_bfd): Update
2437
eda214ce
TT
24382020-10-12 Tom Tromey <tom@tromey.com>
2439
2440 * progspace.c (program_space::~program_space): Don't call
2441 clear_section_table.
2442 * exec.h (clear_section_table): Don't declare.
2443 * exec.c (exec_target::close): Update.
2444 (clear_section_table): Remove.
2445
91840ee3
TT
24462020-10-12 Tom Tromey <tom@tromey.com>
2447
2448 * exec.c (add_target_sections_of_objfile): Simplify.
2449
2d128614
TT
24502020-10-12 Tom Tromey <tom@tromey.com>
2451
2452 * solib.c (solib_map_sections): Update.
2453 * record-full.c (record_full_core_open_1): Update.
2454 * exec.h (build_section_table): Return a target_section_table.
2455 * exec.c (exec_file_attach): Update.
2456 (build_section_table): Return a target_section_table.
2457 * corelow.c (core_target::core_target): Update.
2458 * bfd-target.c (target_bfd::target_bfd): Update.
2459
bb2a6777
TT
24602020-10-12 Tom Tromey <tom@tromey.com>
2461
2462 * target.c (target_section_by_addr, memory_xfer_partial_1):
2463 Update.
2464 * target-section.h (struct target_section_table): Use
2465 std::vector.
2466 * symfile.h (build_section_addr_info_from_section_table): Take a
2467 target_section_table.
2468 * symfile.c (build_section_addr_info_from_section_table): Take a
2469 target_section_table.
2470 * solist.h (struct so_list) <sections>: Change type.
2471 <sections_end>: Remove.
2472 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
2473 (solib_contains_address_p): Update.
2474 * solib-svr4.c (scan_dyntag): Update.
2475 * solib-dsbt.c (scan_dyntag): Update.
2476 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2477 Update.
2478 * record-full.c (record_full_core_start, record_full_core_end):
2479 Remove.
2480 (record_full_core_sections): New global.
2481 (record_full_core_open_1, record_full_core_target::xfer_partial):
2482 Update.
2483 * exec.h (build_section_table, section_table_xfer_memory_partial)
2484 (add_target_sections): Take a target_section_table.
2485 * exec.c (exec_file_attach, clear_section_table): Update.
2486 (resize_section_table): Remove.
2487 (build_section_table, add_target_sections): Take a
2488 target_section_table.
2489 (add_target_sections_of_objfile, remove_target_sections)
2490 (exec_on_vfork): Update.
2491 (section_table_available_memory): Take a target_section_table.
2492 (section_table_read_available_memory): Update.
2493 (section_table_xfer_memory_partial): Take a target_section_table.
2494 (print_section_info, set_section_command)
2495 (exec_set_section_address, exec_target::has_memory): Update.
2496 * corelow.c (class core_target) <m_core_section_table,
2497 m_core_file_mappings>: Remove braces.
2498 <~core_target>: Remove.
2499 (core_target::core_target): Update.
2500 (core_target::~core_target): Remove.
2501 (core_target::build_file_mappings)
2502 (core_target::xfer_memory_via_mappings)
2503 (core_target::xfer_partial, core_target::info_proc_mappings):
2504 Update.
2505 * bfd-target.c (target_bfd::xfer_partial): Update.
2506 (target_bfd::target_bfd): Update.
2507 (target_bfd::~target_bfd): Remove.
2508
7b466b10
TT
25092020-10-12 Tom Tromey <tom@tromey.com>
2510
2511 * target.h (struct target_section, struct target_section_table):
2512 Move to target-section.h.
2513 * target-section.h: New file.
2514
87a37e5e
PA
25152020-10-12 Pedro Alves <pedro@palves.net>
2516
2517 PR exp/26602
2518 * valops.c (struct struct_field_searcher): New.
2519 (update_search_result): Rename to ...
2520 (struct_field_searcher::update_result): ... this. Simplify
2521 prototype. Record all found fields.
2522 (do_search_struct_field): Rename to ...
2523 (struct_field_searcher::search): ... this. Simplify prototype.
2524 Maintain stack of visited baseclass path. Call update_result for
2525 fields too. Keep searching fields in baseclasses instead of
2526 stopping at the first found field.
2527 (search_struct_field): Use struct_field_searcher. When looking
2528 for fields, report ambiguous access attempts.
2529
9370fd51
AB
25302020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
2531
2532 * frame.c (inside_main_func): Check full symbols as well as
2533 minimal symbols.
2534
59c8a30b
JB
25352020-10-09 Joel Brobecker <brobecker@adacore.com>
2536
2537 * ada-lang.c (advance_wild_match): Rewrite the function's
2538 description. Change the type of target0, t0 and t1 to char.
2539
7c184d33
TT
25402020-10-09 Tom Tromey <tromey@adacore.com>
2541
2542 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
2543
5c4258f4
TT
25442020-10-09 Tom Tromey <tromey@adacore.com>
2545
2546 * ada-lang.h (ada_encode): Return std::string.
2547 * ada-lang.c (ada_encode_1): Return std::string.
2548 (ada_encode): Likewise.
2549 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
2550 Update.
2551 * ada-exp.y (block_lookup, write_var_or_type): Update.
2552
3d87245c
HD
25532020-10-09 Hannes Domani <ssbssa@yahoo.de>
2554
2555 PR exp/26714
2556 * printcmd.c (print_formatted): Handle void results as
2557 unformatted prints.
2558
bbb826f5
AB
25592020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2560
2561 * arch/aarch32.c (aarch32_create_target_description): Release the
2562 target_desc_up as late as possible.
2563 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2564 * arch/amd64.c (amd64_create_target_description): Likewise.
2565 * arch/arc.c (arc_create_target_description): Return a
2566 target_desc_up, don't release it.
2567 * arch/arc.h (arc_create_target_description): Update declaration.
2568 (arc_lookup_target_description): Move target_desc_up into the
2569 cache, and return a borrowed pointer.
2570 * arch/arm.c (arm_create_target_description): Release the
2571 target_desc_up as late as possible.
2572 * arch/i386.c (i386_create_target_description): Likewise.
2573 * arch/riscv.h (riscv_create_target_description): Update
2574 declaration to match definition.
2575 * arch/tic6x.c (tic6x_create_target_description): Release the
2576 target_desc_up as late as possible.
2577
361cb219
AB
25782020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2579
2580 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
2581 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
2582
f5c4b229
JV
25832020-10-09 Jan Vrany <jan.vrany@labware.com>
2584
2585 * source.c (directory_command): Notify observers that "directories"
2586 parameter has changed.
2587
b2701685
TT
25882020-10-08 Tom Tromey <tom@tromey.com>
2589
2590 * cli/cli-cmds.c (print_disassembly): Style function name and
2591 addresses. Add _() wrappers.
2592
ada508b6
SV
25932020-10-08 Shahab Vahedi <shahab@synopsys.com>
2594
2595 * NEWS: Mention ARC support in GDBserver.
2596
51a948fd
AB
25972020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
2598
2599 * arch/aarch32.c (aarch32_create_target_description): Release
2600 unique_ptr returned from allocate_target_description.
2601 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2602 * arch/amd64.c (amd64_create_target_description): Likewise.
2603 * arch/arc.c (arc_create_target_description): Likewise.
2604 * arch/arm.c (arm_create_target_description): Likewise.
2605 * arch/i386.c (i386_create_target_description): Likewise.
2606 * arch/riscv.c (riscv_create_target_description): Update return
2607 type. Handle allocate_target_description returning a unique_ptr.
2608 (riscv_lookup_target_description): Update to handle unique_ptr.
2609 * arch/tic6x.c (tic6x_create_target_description): Release
2610 unique_ptr returned from allocate_target_description.
2611 * features/microblaze-with-stack-protect.c: Regenerate.
2612 * features/microblaze.c: Regenerate.
2613 * features/mips-dsp-linux.c: Regenerate.
2614 * features/mips-linux.c: Regenerate.
2615 * features/mips64-dsp-linux.c: Regenerate.
2616 * features/mips64-linux.c: Regenerate.
2617 * features/nds32.c: Regenerate.
2618 * features/nios2.c: Regenerate.
2619 * features/or1k.c: Regenerate.
2620 * features/rs6000/powerpc-32.c: Regenerate.
2621 * features/rs6000/powerpc-32l.c: Regenerate.
2622 * features/rs6000/powerpc-403.c: Regenerate.
2623 * features/rs6000/powerpc-403gc.c: Regenerate.
2624 * features/rs6000/powerpc-405.c: Regenerate.
2625 * features/rs6000/powerpc-505.c: Regenerate.
2626 * features/rs6000/powerpc-601.c: Regenerate.
2627 * features/rs6000/powerpc-602.c: Regenerate.
2628 * features/rs6000/powerpc-603.c: Regenerate.
2629 * features/rs6000/powerpc-604.c: Regenerate.
2630 * features/rs6000/powerpc-64.c: Regenerate.
2631 * features/rs6000/powerpc-64l.c: Regenerate.
2632 * features/rs6000/powerpc-7400.c: Regenerate.
2633 * features/rs6000/powerpc-750.c: Regenerate.
2634 * features/rs6000/powerpc-860.c: Regenerate.
2635 * features/rs6000/powerpc-altivec32.c: Regenerate.
2636 * features/rs6000/powerpc-altivec32l.c: Regenerate.
2637 * features/rs6000/powerpc-altivec64.c: Regenerate.
2638 * features/rs6000/powerpc-altivec64l.c: Regenerate.
2639 * features/rs6000/powerpc-e500.c: Regenerate.
2640 * features/rs6000/powerpc-e500l.c: Regenerate.
2641 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
2642 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
2643 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
2644 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
2645 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
2646 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
2647 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
2648 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
2649 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
2650 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
2651 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
2652 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
2653 * features/rs6000/powerpc-vsx32.c: Regenerate.
2654 * features/rs6000/powerpc-vsx32l.c: Regenerate.
2655 * features/rs6000/powerpc-vsx64.c: Regenerate.
2656 * features/rs6000/powerpc-vsx64l.c: Regenerate.
2657 * features/rs6000/rs6000.c: Regenerate.
2658 * features/rx.c: Regenerate.
2659 * features/s390-gs-linux64.c: Regenerate.
2660 * features/s390-linux32.c: Regenerate.
2661 * features/s390-linux32v1.c: Regenerate.
2662 * features/s390-linux32v2.c: Regenerate.
2663 * features/s390-linux64.c: Regenerate.
2664 * features/s390-linux64v1.c: Regenerate.
2665 * features/s390-linux64v2.c: Regenerate.
2666 * features/s390-te-linux64.c: Regenerate.
2667 * features/s390-tevx-linux64.c: Regenerate.
2668 * features/s390-vx-linux64.c: Regenerate.
2669 * features/s390x-gs-linux64.c: Regenerate.
2670 * features/s390x-linux64.c: Regenerate.
2671 * features/s390x-linux64v1.c: Regenerate.
2672 * features/s390x-linux64v2.c: Regenerate.
2673 * features/s390x-te-linux64.c: Regenerate.
2674 * features/s390x-tevx-linux64.c: Regenerate.
2675 * features/s390x-vx-linux64.c: Regenerate.
2676 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
2677 from allocate_target_description.
2678 * target-descriptions.c (allocate_target_description): Update
2679 return type.
2680 (print_c_tdesc::visit_pre): Release unique_ptr returned from
2681 allocate_target_description.
2682
485c47e5
TT
26832020-10-07 Tom Tromey <tromey@adacore.com>
2684
2685 * unittests/search-memory-selftests.c: New file.
2686 * Makefile.in (SELFTESTS_SRCS): Add
2687 unittests/search-memory-selftests.c.
2688
3a135a91
TT
26892020-10-07 Tom Tromey <tromey@adacore.com>
2690
2691 PR gdb/16930:
2692 * findcmd.c (_initialize_mem_search): Mention that the range is
2693 inclusive.
2694
4a72de73
TT
26952020-10-07 Tom Tromey <tromey@adacore.com>
2696
2697 * target.h (simple_search_memory): Don't declare.
2698 * target.c (simple_search_memory): Move to gdbsupport.
2699 (default_search_memory): Update.
2700 * remote.c (remote_target::search_memory): Update.
2701
a038ffd8
SM
27022020-10-07 Simon Marchi <simon.marchi@efficios.com>
2703
2704 * Makefile.in (COMPILE): Add CXXFLAGS.
2705 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
2706 (check-headers): Add CXXFLAGS.
2707
cc463201
AK
27082020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
2709
2710 * arc-linux-tdep.h: New file.
2711 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
2712 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
2713 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
2714 arc_linux_gregset, arc_linux_v2_regset,
2715 arc_linux_iterate_over_regset_sections,
2716 arc_linux_core_read_description): Implement.
2717 (arc_linux_init_osabi): Set iterate_over_regset_sections.
2718 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
2719 (arc_gdbarch_features_create): Add.
2720 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
2721
e4bd363f
SV
27222020-10-07 Shahab Vahedi <shahab@synopsys.com>
2723
2724 * arch/arc.h: Rename "arc_gdbarch_features" to
2725 "arc_arch_features".
2726 * arc-tdep.h: Likewise.
2727 * arc-tdep.c: Likewise.
2728
b68bef99
TBA
27292020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2730
2731 * infcmd.c (attach_command): Remove the redundant call to
2732 `clear_proceed_status`.
2733
4641551a
KR
27342020-10-07 Kamil Rytarowski <n54@gmx.com>
2735
2736 * nat/netbsd-nat.c (write_memory, read_memory): Update.
2737
91e5e8db
KR
27382020-10-07 Kamil Rytarowski <n54@gmx.com>
2739
2740 * nat/netbsd-nat.c (write_memory, read_memory): Add.
2741 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
2742 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
2743
64c03bdb
SM
27442020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
2745
2746 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
2747 (_initialize_break_catch_sig): Don't allocate array.
2748
31a8f60f
AB
27492020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
2750
2751 * symtab.c (find_pc_line): Return unmapped addresses when the
2752 requested address is also unmapped.
2753
9e6dbd8b
SM
27542020-10-05 Simon Marchi <simon.marchi@efficios.com>
2755
2756 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
2757 tui/tui-out.h.
2758
a1d217e8
SM
27592020-10-05 Simon Marchi <simon.marchi@efficios.com>
2760
2761 * amd64-windows-tdep.c (amd64_windows_return_value): Use
2762 type::is_vector instead of TYPE_VECTOR.
2763
7d144117
SM
27642020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
2765
2766 * auto-load.c (auto_load_objfile_script_1): Don't use
2767 debugfile_holder as temporary variable when stripping drive
2768 letter.
2769
cd096ec8
HD
27702020-10-05 Hannes Domani <ssbssa@yahoo.de>
2771
2772 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
2773 Add TYPE_CODE_COMPLEX.
2774 (amd64_windows_return_value): Fix types returned via XMM0.
2775
b58e7f72
AH
27762020-10-05 Alan Hayward <alan.hayward@arm.com>
2777
2778 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
2779 AArch64/ARM maintainers.
2780
8d378f27
SM
27812020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
2782
2783 * NEWS: Mention set/show debug event-loop.
2784
d5519913
TT
27852020-10-02 Tom Tromey <tromey@adacore.com>
2786
2787 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
2788 REG_EXTENDED.
2789
18b67edc
SM
27902020-10-02 Simon Marchi <simon.marchi@efficios.com>
2791
2792 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
2793 * procfs.c (procfs_inferior_created): Remove.
2794 (_initialize_procfs): Don't register procfs_inferior_created.
2795
6b01403b
SM
27962020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2797
2798 * async-event.c (invoke_async_signal_handlers): Add debug
2799 print.
2800 (check_async_event_handlers): Likewise.
2801 * event-top.c (show_debug_event_loop): New function.
2802 (_initialize_event_top): Register "set debug event-loop"
2803 setting.
2804
ba988419
SM
28052020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2806
2807 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
2808 * debug.h: Remove.
2809 * infrun.c: Include gdbsupport/common-debug.h.
2810 * linux-nat.c: Likewise.
2811
db20ebdf
SM
28122020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2813
2814 * async-event.h (create_async_signal_handler): Add name
2815 parameter.
2816 (create_async_event_handler): Likewise.
2817 * async-event.c (struct async_signal_handler) <name>: New field.
2818 (struct async_event_handler) <name>: New field.
2819 (create_async_signal_handler): Assign name.
2820 (create_async_event_handler): Assign name.
2821 * event-top.c (async_init_signals): Pass name when creating
2822 handler.
2823 * infrun.c (_initialize_infrun): Likewise.
2824 * record-btrace.c (record_btrace_push_target): Likewise.
2825 * record-full.c (record_full_open): Likewise.
2826 * remote-notif.c (remote_notif_state_allocate): Likewise.
2827 * remote.c (remote_target::open_1): Likewise.
2828 * tui/tui-win.c (tui_initialize_win): Likewise.
2829
2554f6f5
SM
28302020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2831
2832 * async-event.c (initialize_async_signal_handlers): Pass name to
2833 add_file_handler
2834 * event-top.c (ui_register_input_event_handler): Likewise.
2835 * linux-nat.c (linux_nat_target::async): Likewise.
2836 * run-on-main-thread.c (_initialize_run_on_main_thread):
2837 Likewise
2838 * ser-base.c (reschedule): Likewise.
2839 (ser_base_async): Likewise.
2840 * tui/tui-io.c: Likewise.
2841 * top.h (struct ui) <num>: New field.
2842 * top.c (highest_ui_num): New variable.
2843 (ui::ui): Initialize num.
2844
a7aba266
SM
28452020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2846
2847 * observable.h <inferior_created>: Remove parameters. Update all
2848 listeners.
2849 * inferior.h (post_create_inferior): Remove target parameter.
2850 Update all callers.
2851
048fde1e 28522020-10-02 Nitika Achra <Nitika.Achra@amd.com>
2853
2854 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
2855 and DW_MACRO_undef_strx.
2856 (dwarf_decode_macros): Likewise
2857 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
2858 which is the value of DW_AT_str_offsets_base.
2859 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
2860 str_offsets_base.
2861
064280be
KR
28622020-10-01 Kamil Rytarowski <n54@gmx.com>
2863
2864 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
2865
6ff33035
KR
28662020-10-01 Kamil Rytarowski <n54@gmx.com>
2867
2868 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
2869 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
2870
1eb6eb79
KR
28712020-10-01 Kamil Rytarowski <n54@gmx.com>
2872
2873 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
2874
95eb9e54
TV
28752020-09-30 Tom de Vries <tdevries@suse.de>
2876
2877 PR symtab/26683
2878 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
2879
cae21f8e
TT
28802020-09-30 Tom Tromey <tromey@adacore.com>
2881
2882 * dwarf2/read.c (handle_variant): Use constant_value.
2883
529908cb
TT
28842020-09-29 Tom Tromey <tom@tromey.com>
2885
2886 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
2887 (read_file_scope, dwarf2_get_pc_bounds)
2888 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
2889 (read_structure_type, handle_struct_member_die)
2890 (read_enumeration_type, read_array_type, read_set_type)
2891 (read_tag_pointer_type, read_tag_reference_type)
2892 (read_subroutine_type, read_base_type, read_subrange_type)
2893 (read_full_die_1, partial_die_info::read)
2894 (partial_die_info::read, by, new_symbol)
2895 (dwarf2_const_value_data, dwarf2_const_value_attr)
2896 (dump_die_shallow, dwarf2_fetch_constant_bytes)
2897 (prepare_one_comp_unit): Update.
2898 * dwarf2/attribute.h (DW_UNSND): Remove.
2899
c45bc3f8
TT
29002020-09-29 Tom Tromey <tom@tromey.com>
2901
2902 * dwarf2/read.c (read_func_scope, prototyped_function_p)
2903 (read_subroutine_type, partial_die_info::read)
2904 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
2905 (dwarf2_add_member_fn): Update.
2906 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
2907 * dwarf2/attribute.c (attribute::as_boolean): New method.
2908
23dca5c3
TT
29092020-09-29 Tom Tromey <tom@tromey.com>
2910
2911 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
2912 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
2913 method.
2914 * dwarf2/attribute.c (attribute::as_virtuality): New method.
2915
52c14d11
TT
29162020-09-29 Tom Tromey <tom@tromey.com>
2917
2918 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
2919 the attribute's form.
2920
e8e5c158
TT
29212020-09-29 Tom Tromey <tom@tromey.com>
2922
2923 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
2924 (dwarf2_add_member_fn): Update.
2925 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
2926 * dwarf2/attribute.c (attribute::defaulted): New method, from
2927 is_valid_DW_AT_defaulted.
2928
d4df075e
TT
29292020-09-29 Tom Tromey <tom@tromey.com>
2930
2931 * dwarf2/read.c (dw2_get_file_names_reader)
2932 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
2933 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
2934 (dwarf2_symbol_mark_computed): Use as_unsigned.
2935 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
2936 method.
2937 <form_is_section_offset>: Update comment.
2938
bf23a268
TT
29392020-09-29 Tom Tromey <tom@tromey.com>
2940
2941 * dwarf2/read.c (dwarf2_access_attribute): Rename from
2942 dwarf2_default_access_attribute. Look up attribute.
2943 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
2944 Update.
2945
7a5f294d
TT
29462020-09-29 Tom Tromey <tom@tromey.com>
2947
2948 * dwarf2/read.c (skip_one_die): Update.
2949 (read_full_die_1): Change how reprocessing is done.
2950 (partial_die_info::read): Update.
2951 (read_attribute_value): Remove need_reprocess parameter.
2952 (read_attribute): Likewise.
2953 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
2954 New method.
2955
36d378cf
TT
29562020-09-29 Tom Tromey <tom@tromey.com>
2957
2958 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
2959 (dwarf2_const_value_attr, dump_die_shallow)
2960 (dwarf2_fetch_constant_bytes): Update.
2961 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
2962 comment.
2963 <set_address>: New method.
2964 (DW_ADDR): Remove.
2965 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
2966 (attribute::as_string, attribute::as_address): Add assert.
2967
fe56917a
TT
29682020-09-29 Tom Tromey <tom@tromey.com>
2969
2970 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
2971 (read_attribute_reprocess, read_attribute_value): Update.
2972 (read_attribute): Clear requires_reprocessing.
2973 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
2974 form_requires_reprocessing>: New methods.
2975 <string_init>: Clear requires_reprocessing.
2976 <set_unsigned_reprocess>: New method.
2977 <name>: Shrink by one bit.
2978 <requires_reprocessing>: New member.
2979 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
2980 method.
2981
414ad644
TT
29822020-09-29 Tom Tromey <tom@tromey.com>
2983
2984 * dwarf2/read.c (read_attribute_value): Update.
2985 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
2986 set_unsigned>: New methods.
2987 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
2988
1bc397c5
TT
29892020-09-29 Tom Tromey <tom@tromey.com>
2990
2991 * dwarf2/read.c (get_alignment, read_array_order)
2992 (read_attribute_value, dwarf2_const_value_attr)
2993 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
2994 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
2995 New methods.
2996 (DW_SND): Remove.
2997
630ed6b9
TT
29982020-09-29 Tom Tromey <tom@tromey.com>
2999
3000 * dwarf2/read.c (read_attribute_value, lookup_die_type)
3001 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
3002 Update.
3003 * dwarf2/attribute.h (struct attribute) <as_signature,
3004 set_signature>: New methods.
3005 (DW_SIGNATURE): Remove.
3006
9d2246fc
TT
30072020-09-29 Tom Tromey <tom@tromey.com>
3008
3009 * dwarf2/read.c (read_call_site_scope)
3010 (handle_data_member_location, dwarf2_add_member_fn)
3011 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3012 (partial_die_info::read, read_attribute_value)
3013 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
3014 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
3015 (dwarf2_symbol_mark_computed): Update.
3016 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
3017 methods.
3018 (DW_BLOCK): Remove.
3019 * dwarf2/attribute.c (attribute::form_is_block): Add
3020 DW_FORM_data16.
3021
c6481205
TT
30222020-09-29 Tom Tromey <tom@tromey.com>
3023
3024 * dwarf2/read.c (read_cutu_die_from_dwo)
3025 (read_attribute_reprocess, read_attribute_value, read_attribute)
3026 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
3027 (dwarf2_fetch_constant_bytes): Update.
3028 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
3029 <set_string_noncanonical, set_string_canonical>: New methods.
3030 <string_is_canonical>: Update comment.
3031 <canonical_string_p>: Add assert.
3032 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
3033 * dwarf2/attribute.c (attribute::form_is_string): New method.
3034 (attribute::string): Use it.
3035
3b64bf15
TT
30362020-09-29 Tom Tromey <tom@tromey.com>
3037
3038 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
3039 (dump_die_shallow): Use canonical_string_p.
3040 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
3041 method.
3042
2c830f54
TT
30432020-09-29 Tom Tromey <tom@tromey.com>
3044
3045 * dwarf2/read.c (partial_die_info::read)
3046 (dwarf2_const_value_attr, anonymous_struct_prefix, )
3047 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
3048 attribute::as_string.
3049
6c412691
TT
30502020-09-29 Tom Tromey <tom@tromey.com>
3051
3052 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
3053 DW_ADDR.
3054 (attribute::string): Don't use DW_STRING.
3055 (attribute::get_ref_die_offset): Don't use DW_UNSND.
3056 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
3057
95f982e5
TT
30582020-09-29 Tom Tromey <tom@tromey.com>
3059
3060 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
3061 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
3062 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
3063 * dwarf2/attribute.h (struct attribute): Rename methods.
3064 * dwarf2/attribute.c (attribute::as_address): Rename from
3065 value_as_address.
3066 (attribute::as_string): Rename from value_as_string.
3067
f800b00e
TT
30682020-09-29 Tom Tromey <tom@tromey.com>
3069
3070 * dwarf2/read.c (partial_die_info::read) <case
3071 DW_AT_linkage_name>: Use value_as_string.
3072 (dwarf2_string_attr): Use value_as_string.
3073 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
3074 method.
3075 * dwarf2/attribute.c (attribute::value_as_string): New method.
3076
de38d64a
PA
30772020-09-29 Pedro Alves <pedro@palves.net>
3078
3079 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
3080 defined before using '#pragma GCC diagnostic' instead of checking
3081 __clang__.
3082
9aed480c
TT
30832020-09-28 Tom Tromey <tom@tromey.com>
3084
3085 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
3086 (handle_signal_stop): Update.
3087 * procfs.c (procfs_target::insert_watchpoint): Update.
3088 * target.h (target_have_steppable_watchpoint): Now a function.
3089
8a3ecb79
TT
30902020-09-28 Tom Tromey <tom@tromey.com>
3091
3092 * infrun.c (set_schedlock_func): Update.
3093 * target.h (target_can_lock_scheduler): Now a function.
3094
55f6301a
TT
30952020-09-28 Tom Tromey <tom@tromey.com>
3096
3097 * inferior.h (class inferior) <has_execution>: Update.
3098 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
3099 * valops.c (find_function_in_inferior)
3100 (value_allocate_space_in_inferior): Update.
3101 * top.c (kill_or_detach): Update.
3102 * target.c (target_preopen, set_target_permissions): Update.
3103 (target_has_execution_current): Remove.
3104 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
3105 Update.
3106 * solib.c (update_solib_list, reload_shared_libraries): Update.
3107 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
3108 * solib-dsbt.c (enable_break): Update.
3109 * score-tdep.c (score7_fetch_inst): Update.
3110 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
3111 Update.
3112 * remote.c (remote_target::start_remote)
3113 (remote_target::remote_check_symbols, remote_target::open_1)
3114 (remote_target::remote_detach_1, remote_target::verify_memory)
3115 (remote_target::xfer_partial, remote_target::read_description)
3116 (remote_target::get_min_fast_tracepoint_insn_len): Update.
3117 * record-full.c (record_full_open_1): Update.
3118 * record-btrace.c (record_btrace_target_open): Update.
3119 * objc-lang.c (lookup_objc_class, lookup_child_selector)
3120 (value_nsstring): Update.
3121 * linux-thread-db.c (add_thread_db_info)
3122 (thread_db_find_new_threads_silently, check_thread_db_callback)
3123 (try_thread_db_load_1, record_thread): Update.
3124 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
3125 Update.
3126 * linux-fork.c (checkpoint_command): Update.
3127 * infrun.c (set_non_stop, set_observer_mode)
3128 (check_multi_target_resumption, for_each_just_stopped_thread)
3129 (maybe_remove_breakpoints, normal_stop)
3130 (class infcall_suspend_state): Update.
3131 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
3132 (info_program_command, attach_command): Update.
3133 * infcall.c (call_function_by_hand_dummy): Update.
3134 * inf-loop.c (inferior_event_handler): Update.
3135 * gcore.c (gcore_command, derive_heap_segment): Update.
3136 * exec.c (exec_file_command): Update.
3137 * eval.c (evaluate_subexp): Update.
3138 * compile/compile.c (compile_to_object): Update.
3139 * cli/cli-dump.c (restore_command): Update.
3140 * breakpoint.c (update_watchpoint)
3141 (update_inserted_breakpoint_locations)
3142 (insert_breakpoint_locations, get_bpstat_thread): Update.
3143 * target.h (target_has_execution): Remove macro.
3144 (target_has_execution_current): Don't declare.
3145 (target_has_execution): Rename from target_has_execution_1. Add
3146 argument default.
3147
05374cfd
TT
31482020-09-28 Tom Tromey <tom@tromey.com>
3149
3150 * mi/mi-main.c (exec_reverse_continue)
3151 (mi_cmd_list_target_features): Update.
3152 * infrun.c (set_exec_direction_func): Update.
3153 * target.c (default_execution_direction): Update.
3154 * reverse.c (exec_reverse_once): Update.
3155 * target.h (target_can_execute_reverse): Now a function.
3156
9dccd06e
TT
31572020-09-28 Tom Tromey <tom@tromey.com>
3158
3159 * tui/tui-regs.c (tui_get_register)
3160 (tui_data_window::show_registers): Update.
3161 * thread.c (scoped_restore_current_thread::restore)
3162 (scoped_restore_current_thread::scoped_restore_current_thread):
3163 Update.
3164 * regcache-dump.c (regcache_print): Update.
3165 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
3166 Update.
3167 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
3168 * mep-tdep.c (current_me_module, current_options): Update.
3169 * linux-thread-db.c (thread_db_load): Update.
3170 * infcmd.c (registers_info, info_vector_command)
3171 (info_float_command): Update.
3172 * ia64-tdep.c (ia64_frame_prev_register)
3173 (ia64_sigtramp_frame_prev_register): Update.
3174 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
3175 * gcore.c (derive_stack_segment): Update.
3176 * frame.c (get_current_frame, has_stack_frames): Update.
3177 * findvar.c (language_defn::read_var_value): Update.
3178 * arm-tdep.c (arm_pc_is_thumb): Update.
3179 * target.c (target_has_registers): Rename from
3180 target_has_registers_1.
3181 * target.h (target_has_registers): Remove macro.
3182 (target_has_registers): Rename from target_has_registers_1.
3183
841de120
TT
31842020-09-28 Tom Tromey <tom@tromey.com>
3185
3186 * windows-tdep.c (tlb_make_value): Update.
3187 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3188 * thread.c (scoped_restore_current_thread::restore)
3189 (scoped_restore_current_thread::scoped_restore_current_thread)
3190 (thread_command): Update.
3191 * stack.c (backtrace_command_1, frame_apply_level_command)
3192 (frame_apply_all_command, frame_apply_command): Update.
3193 * infrun.c (siginfo_make_value, restore_infcall_control_state):
3194 Update.
3195 * gcore.c (derive_stack_segment): Update.
3196 * frame.c (get_current_frame, has_stack_frames): Update.
3197 * auxv.c (info_auxv_command): Update.
3198 * ada-tasks.c (ada_build_task_list): Update.
3199 * target.c (target_has_stack): Rename from target_has_stack_1.
3200 * target.h (target_has_stack): Remove macro.
3201 (target_has_stack): Rename from target_has_stack_1.
3202
a739972c
TT
32032020-09-28 Tom Tromey <tom@tromey.com>
3204
3205 * target.c (target_has_memory): Rename from target_has_memory_1.
3206 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3207 * thread.c (scoped_restore_current_thread::restore)
3208 (scoped_restore_current_thread::scoped_restore_current_thread):
3209 Update.
3210 * frame.c (get_current_frame, has_stack_frames): Update.
3211 * target.h (target_has_memory): Remove macro.
3212 (target_has_memory): Rename from target_has_memory_1.
3213
5b8a4776
TT
32142020-09-28 Tom Tromey <tom@tromey.com>
3215
3216 * target.c (target_has_all_memory_1): Remove.
3217 * target.h (target_has_all_memory): Remove define.
3218 (target_has_all_memory_1): Don't declare.
3219
bd356ec6
SM
32202020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
3221
3222 * ser-base.c: Adjust comments formatting.
3223
2c72d5e5
TT
32242020-09-27 Tom Tromey <tom@tromey.com>
3225
3226 PR tui/25342:
3227 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
3228
35a98237
TT
32292020-09-27 Tom Tromey <tom@tromey.com>
3230
3231 PR tui/25342:
3232 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
3233
9e820dec
TT
32342020-09-27 Tom Tromey <tom@tromey.com>
3235
3236 * unittests/tui-selftests.c: Update.
3237 * tui/tui-winsource.h (struct tui_source_window_base)
3238 <extra_margin, show_line_number, refresh_pad>: New methods.
3239 <m_max_length, m_pad>: New members.
3240 (tui_copy_source_line): Update.
3241 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
3242 first_col, line_width, ndigits parameters. Add length.
3243 (tui_source_window_base::show_source_line): Write to pad. Line
3244 number now 0-based.
3245 (tui_source_window_base::refresh_pad): New method.
3246 (tui_source_window_base::show_source_content): Write to pad. Call
3247 refresh_pad.
3248 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
3249 not refill.
3250 (tui_source_window_base::update_exec_info): Call
3251 show_line_number.
3252 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
3253 method.
3254 <m_digits>: New member.
3255 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
3256 and m_max_length.
3257 (tui_source_window::show_line_number): New method.
3258 * tui/tui-io.h (tui_puts): Fix comment.
3259 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
3260 m_max_length.
3261
c15c15c8
TT
32622020-09-27 Tom Tromey <tom@tromey.com>
3263
3264 * tui/tui-winsource.c
3265 (tui_source_window_base::set_is_exec_point_at): Don't call
3266 show_source_line.
3267
149830c1
TT
32682020-09-27 Tom Tromey <tom@tromey.com>
3269
3270 * python/py-tui.c (class tui_py_window) <refresh_window>: New
3271 method.
3272 <erase>: Update.
3273 <cursor_x, cursor_y>: Remove.
3274 <m_inner_window>: New member.
3275 (tui_py_window::rerender): Create inner window.
3276 (tui_py_window::output): Write to inner window.
3277
8f9929bb
GR
32782020-09-26 Gareth Rees <grees@undo.io> (tiny change)
3279
3280 PR python/26586
3281 * cli/cli-script.c (execute_control_commands): don't set
3282 instream to nullptr here as this breaks the from_tty argument
3283 to gdb.execute in Python.
3284 (execute_user_command): set instream to nullptr here instead.
3285
956bdb59
SM
32862020-09-25 Simon Marchi <simon.marchi@efficios.com>
3287
3288 * infrun.h (infrun_debug_printf): Fix formatting.
3289 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
3290
3b93626b
SJ
32912020-09-25 Saagar Jha <saagar@saagarjha.com>
3292
3293 * compile/compile-object-load.h (struct munmap_list): Add
3294 explicitly-defined move constructor.
3295
b551a89f
TT
32962020-09-24 Tom Tromey <tromey@adacore.com>
3297
3298 PR tui/26638:
3299 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
3300 method.
3301 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
3302 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
3303 (tui_prev_win): Rewrite.
3304
99bb393f
HD
33052020-09-23 Hannes Domani <ssbssa@yahoo.de>
3306
3307 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
3308 in WOW64 processes as SIGINT.
3309 * nat/windows-nat.h: Make wow64_process a shared variable.
3310 * windows-nat.c: Remove static wow64_process variable.
3311
20a5fcbd
TT
33122020-09-23 Tom Tromey <tom@tromey.com>
3313
3314 PR symtab/25470:
3315 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
3316 offset and bit size.
3317 * printcmd.c (print_scalar_formatted): Handle zero-length
3318 integer.
3319 (print_scalar_formatted): Use bit_size_differs_p.
3320 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
3321 constant.
3322 (union type_specific): <int_stuff>: New member.
3323 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
3324 methods.
3325 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
3326 TYPE_SPECIFIC_FIELD.
3327 (recursive_dump_type, copy_type_recursive): Update.
3328 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
3329 DW_AT_data_bit_offset.
3330
bac51ab7
TT
33312020-09-23 Tom Tromey <tom@tromey.com>
3332
3333 * utils.h (class gdb_argv): Add move operators.
3334 <append>: New methods.
3335 * compile/compile.c (build_argc_argv): Remove.
3336 (compile_args_argc): Remove.
3337 (compile_args_argv): Change type.
3338 (set_compile_args): Simplify.
3339 (append_args): Remove.
3340 (filter_args): Remove argcp parameter.
3341 (get_args): Return gdb_argv. Simplify.
3342 (compile_to_object): Update.
3343
92677124
TT
33442020-09-23 Tom Tromey <tom@tromey.com>
3345
3346 * compile/compile-object-run.c (do_module_cleanup)
3347 <~do_module_cleanup> :Remove.
3348 (do_module_cleanup): Update.
3349 * compile/compile-object-load.h (struct munmap_list): Add move
3350 assignment operator.
3351 <source_file>: Now a std::string.
3352 <munmap_list>: Rename. No longer a pointer.
3353 * compile/compile-object-load.c (struct setup_sections_data): Add
3354 constructor.
3355 <setup_one_section>: Declare.
3356 <munmap_list>: Move earlier.
3357 <m_bfd>: New member.
3358 <m_last_size, m_last_section_first, m_last_prot,
3359 m_last_max_alignment>: Rename, add initializers where needed.
3360 (setup_sections_data::setup_one_section): Rename from
3361 setup_sections. Update.
3362 (compile_object_load): Update. Don't use bfd_map_over_sections.
3363
e616f60a
TT
33642020-09-23 Tom Tromey <tom@tromey.com>
3365
3366 * compile/compile-object-run.c (struct do_module_cleanup): Add
3367 parameters to constructor. Update destructor.
3368 <source_file, scope, scope_data, out_value_type, out_value_addr,
3369 munmap_list_head, objfile_name_string>: Remove.
3370 <module>: New member.
3371 (do_module_cleanup): Update.
3372 (compile_object_run): Update.
3373
e947a848
TT
33742020-09-23 Tom Tromey <tom@tromey.com>
3375
3376 * compile/compile.c (eval_compile_command): Update.
3377 * compile/compile-object-run.h (compile_object_run): Take a
3378 compile_module_up.
3379 * compile/compile-object-run.c (compile_object_run): Take a
3380 compile_module_up.
3381 * compile/compile-object-load.h (struct compile_module): Add
3382 constructor, destructor.
3383 (compile_module_up): New typedef.
3384 (compile_object_load): Return compile_object_up.
3385 * compile/compile-object-load.c (compile_object_load): Return
3386 compile_module_up.
3387
0dbf6ee6
TT
33882020-09-23 Tom Tromey <tom@tromey.com>
3389
3390 * compile/compile-object-run.c (struct do_module_cleanup): Add
3391 constructor, destructor.
3392 <objfile_name_string>: Don't use struct hack.
3393 (do_module_cleanup): Use delete.
3394 (compile_object_run): Use new.
3395
ebe824f5
TT
33962020-09-23 Tom Tromey <tom@tromey.com>
3397
3398 * compile/compile-cplus-types.c
3399 (compile_cplus_convert_struct_or_union): Use std::vector.
3400 (compile_cplus_convert_func): Likewise.
3401 * compile/compile-c-types.c (convert_func): Use std::vector.
3402
5dd918d9
TT
34032020-09-21 Tom Tromey <tromey@adacore.com>
3404
3405 * sparc-tdep.c (sparc32_skip_prologue): Use
3406 skip_prologue_using_sal.
3407
5486c517
TT
34082020-09-19 Tom Tromey <tom@tromey.com>
3409
3410 * symfile.c (add_section_size_callback): Remove.
3411 (load_one_section): Rename from load_section_callback. Change
3412 parameters.
3413 (generic_load): Use foreach.
3414
8a6bb1d1
TT
34152020-09-19 Tom Tromey <tom@tromey.com>
3416
3417 * exec.c (add_to_section_table): Remove.
3418 (build_section_table): Use foreach.
3419
08f93a1a
TT
34202020-09-19 Tom Tromey <tom@tromey.com>
3421
3422 * elfread.c (elf_locate_sections): Change parameters.
3423 (elf_symfile_read): Use foreach.
3424
03cd72b8
TT
34252020-09-19 Tom Tromey <tom@tromey.com>
3426
3427 * cli/cli-dump.c (struct callback_data): Remove.
3428 (restore_one_section): Rename from restore_section_callback.
3429 Change parameters.
3430 (restore_binary_file): Change parameters.
3431 (restore_command): Use foreach.
3432
f4f2b85f
TT
34332020-09-19 Tom Tromey <tom@tromey.com>
3434
3435 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
3436 (gcore_copy_callback): Likewise.
3437 (gcore_memory_sections): Use foreach.
3438
b35c1d1c
TT
34392020-09-19 Tom Tromey <tom@tromey.com>
3440
3441 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
3442 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
3443 parameters.
3444 (generic_elf_osabi_sniffer): Use foreach.
3445 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
3446 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
3447
5bb6e9dd
TT
34482020-09-19 Tom Tromey <tom@tromey.com>
3449
3450 * dwarf2/read.c (locate_dwz_sections): Change parameters.
3451 (dwarf2_get_dwz_file): Use foreach.
3452 (dwarf2_locate_dwo_sections): Change parameters.
3453 (open_and_init_dwo_file): Use foreach.
3454 (dwarf2_locate_common_dwp_sections): Change parameters.
3455 (open_and_init_dwp_file): Use foreach.
3456
ad7277da
TT
34572020-09-19 Tom Tromey <tom@tromey.com>
3458
3459 * symfile.h: (find_lowest_section): Don't declare.
3460 * symfile.c (find_lowest_section): Now static. Change
3461 parameters.
3462 (struct place_section_arg): Remove.
3463 (place_section): Change parameters.
3464 (addr_info_make_relative): Use foreach.
3465 (symfile_dummy_outputs): Remove.
3466 (default_symfile_relocate): Use foreach.
3467
cb814f2e
TT
34682020-09-19 Tom Tromey <tom@tromey.com>
3469
3470 * objfiles.c (add_to_objfile_sections): Rename from
3471 add_to_objfile_sections_full.
3472 (add_to_objfile_sections): Remove.
3473 (build_objfile_section_table): Use foreach.
3474
3cabfd26
TT
34752020-09-19 Tom Tromey <tom@tromey.com>
3476
3477 * stap-probe.c (get_stap_base_address_1): Remove.
3478 (get_stap_base_address): Use foreach.
3479
1ce51eb5
TT
34802020-09-19 Tom Tromey <tom@tromey.com>
3481
3482 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
3483 parameters.
3484 (gdb_bfd_close_or_warn): Use foreach.
3485
a190fabb
TT
34862020-09-19 Tom Tromey <tom@tromey.com>
3487
3488 * corelow.c (add_to_thread_list): Change parameters.
3489 (core_target_open): Use foreach.
3490
cafb0d81
TT
34912020-09-19 Tom Tromey <tom@tromey.com>
3492
3493 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
3494 existing function.
3495
c8d5abea
AB
34962020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3497
3498 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
3499 for arrays.
3500
6d816919
AB
35012020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3502
3503 * eval.c: Remove 'f-lang.h' include.
3504 (value_f90_subarray): Moved to f-lang.c.
3505 (eval_call): Renamed to...
3506 (evaluate_subexp_do_call): ...this, is no longer static, header
3507 comment moved into header file.
3508 (evaluate_funcall): Update call to eval_call.
3509 (skip_undetermined_arglist): Moved to f-lang.c.
3510 (fortran_value_subarray): Likewise.
3511 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3512 moved to evaluate_subexp_f.
3513 (calc_f77_array_dims): Moved to f-lang.c
3514 * expprint.c (print_subexp_funcall): New function.
3515 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3516 moved to print_subexp_f, OP_FUNCALL uses new function.
3517 (dump_subexp_body_funcall): New function.
3518 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
3519 moved to dump_subexp_f, OP_FUNCALL uses new function.
3520 * expression.h (evaluate_subexp_do_call): Declare.
3521 * f-lang.c (value_f90_subarray): Moved from eval.c.
3522 (skip_undetermined_arglist): Likewise.
3523 (calc_f77_array_dims): Likewise.
3524 (fortran_value_subarray): Likewise.
3525 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
3526 (operator_length_f): Likewise.
3527 (print_subexp_f): Likewise.
3528 (dump_subexp_body_f): Likewise.
3529 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
3530 declaration of this operation to here.
3531 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
3532 support moved to operator_length_f.
3533 * parser-defs.h (dump_subexp_body_funcall): Declare.
3534 (print_subexp_funcall): Declare.
3535 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
3536 fortran-operator.def.
3537
8c37706a
AB
35382020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3539
3540 * eval.c (fortran_value_subarray): New function, content is taken
3541 from...
3542 (evaluate_subexp_standard): ...here, in two places. Now arrays
3543 and strings both call the new function.
3544 (calc_f77_array_dims): Add header comment, handle strings.
3545
14f9473c
VC
35462020-09-18 Victor Collod <vcollod@nvidia.com>
3547
3548 PR gdb/26635
3549 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
3550 (i386_analyze_prologue): Call i386_skip_endbr.
3551
b60cea74
TT
35522020-09-18 Tom Tromey <tromey@adacore.com>
3553
3554 * windows-nat.c (struct windows_nat_target) <wait>: Update.
3555 (windows_nat_target::wait): Update.
3556 * target/wait.h (enum target_wait_flag): New. Use
3557 DEF_ENUM_FLAGS_TYPE.
3558 * target/target.h (target_wait): Change type of options.
3559 * target.h (target_options_to_string, default_target_wait):
3560 Update.
3561 (struct target_ops) <wait>: Change type of options.
3562 * target.c (target_wait, default_target_wait, do_option): Change
3563 type of "options".
3564 (target_options_to_string): Likewise.
3565 * target-delegates.c: Rebuild.
3566 * target-debug.h (target_debug_print_target_wait_flags): Rename
3567 from target_debug_print_options.
3568 * sol-thread.c (class sol_thread_target) <wait>: Update.
3569 (sol_thread_target::wait): Update.
3570 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
3571 (rs6000_nat_target::wait): Update.
3572 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
3573 Update.
3574 (remote_target::wait_ns, remote_target::wait_as): Change type of
3575 "options".
3576 (remote_target::wait): Update.
3577 * remote-sim.c (struct gdbsim_target) <wait>: Update.
3578 (gdbsim_target::wait): Update.
3579 * record-full.c (class record_full_base_target) <wait>: Update.
3580 (record_full_wait_1): Change type of "options".
3581 (record_full_base_target::wait): Update.
3582 * record-btrace.c (class record_btrace_target) <wait>: Update.
3583 (record_btrace_target::wait): Update.
3584 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
3585 Update.
3586 (ravenscar_thread_target::wait): Update.
3587 * procfs.c (class procfs_target) <wait>: Update.
3588 (procfs_target::wait): Update.
3589 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
3590 * obsd-nat.c (obsd_nat_target::wait): Update.
3591 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
3592 (nto_procfs_target::wait): Update.
3593 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
3594 * nbsd-nat.c (nbsd_wait): Change type of "options".
3595 (nbsd_nat_target::wait): Update.
3596 * linux-thread-db.c (class thread_db_target) <wait>: Update.
3597 (thread_db_target::wait): Update.
3598 * linux-nat.h (class linux_nat_target) <wait>: Update.
3599 * linux-nat.c (linux_nat_target::wait): Update.
3600 (linux_nat_wait_1): Update.
3601 * infrun.c (do_target_wait_1, do_target_wait): Change type of
3602 "options".
3603 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
3604 * inf-ptrace.c (inf_ptrace_target::wait): Update.
3605 * go32-nat.c (struct go32_nat_target) <wait>: Update.
3606 (go32_nat_target::wait): Update.
3607 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
3608 * gnu-nat.c (gnu_nat_target::wait): Update.
3609 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
3610 * fbsd-nat.c (fbsd_nat_target::wait): Update.
3611 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
3612 * darwin-nat.c (darwin_nat_target::wait): Update.
3613 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
3614 (bsd_uthread_target::wait): Update.
3615 * aix-thread.c (class aix_thread_target) <wait>: Update.
3616 (aix_thread_target::wait): Update.
3617
0295dde6
AB
36182020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
3619
3620 * compile/compile-object-run.c (create_copied_type_recursive): New
3621 function.
3622 (compile_object_run): Use new function.
3623
d3483b43
JT
36242020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
3625
3626 * NEWS: Mention x86_64 Cygwin core file support.
3627
e7d612ad
JT
36282020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3629
3630 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
3631 (core_process_module_section): Handle NOTE_INFO_MODULE64.
3632
aff9d387
JT
36332020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3634
62a5151b
JT
3635 * windows-tdep.h: Add prototypes.
3636 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
3637 (i386_windows_core_pid_to_str): Move and rename ...
3638 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
3639 (windows_core_pid_to_str): ... and here.
3640 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
3641
36422020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
3643 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
3644 (amd64_windows_init_abi_common): ... and register.
3645
7d155da3
JT
36462020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3647
3648 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
3649 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
3650
e8ef12b9
PA
36512020-09-18 Pedro Alves <pedro@palves.net>
3652
3653 PR gdb/26631
3654 * thread.c (thread_find_command): Switch inferior before calling
3655 target methods.
3656
c1e1314d
TT
36572020-09-17 Tom Tromey <tromey@adacore.com>
3658
3659 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
3660 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
3661 (tdesc_arch_data_up): New typedef.
3662 (tdesc_use_registers, tdesc_data_alloc): Update.
3663 (tdesc_data_cleanup): Don't declare.
3664 * target-descriptions.c (tdesc_data_alloc): Return a
3665 tdesc_arch_data_up.
3666 (tdesc_arch_data_deleter::operator()): Rename from
3667 tdesc_data_cleanup. Change argument type.
3668 (tdesc_use_registers): Change early_data to an rvalue reference.
3669 (tdesc_use_registers): Don't use delete.
3670 * sparc-tdep.c (sparc32_gdbarch_init): Update.
3671 * s390-tdep.c (s390_gdbarch_init): Update.
3672 * rx-tdep.c (rx_gdbarch_init): Update.
3673 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3674 * riscv-tdep.c (riscv_gdbarch_init): Update.
3675 * or1k-tdep.c (or1k_gdbarch_init): Update.
3676 * nios2-tdep.c (nios2_gdbarch_init): Update.
3677 * nds32-tdep.c (nds32_gdbarch_init): Update.
3678 * mips-tdep.c (mips_gdbarch_init): Update.
3679 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
3680 * m68k-tdep.c (m68k_gdbarch_init): Update.
3681 * i386-tdep.c (i386_gdbarch_init): Update.
3682 * arm-tdep.c (arm_gdbarch_init): Update.
3683 * arc-tdep.c (arc_tdesc_init): Update.
3684 (arc_gdbarch_init): Update.
3685 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
3686
0363df3d
HD
36872020-09-17 Hannes Domani <ssbssa@yahoo.de>
3688
3689 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
3690 for WOW64 processes.
3691
280a9412
TT
36922020-09-17 Tom Tromey <tom@tromey.com>
3693
3694 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
3695
6108fd18
TT
36962020-09-17 Tom Tromey <tom@tromey.com>
3697
3698 * value.c (preserve_values): Update.
3699 * python/py-type.c (save_objfile_types): Update.
3700 * guile/scm-type.c (save_objfile_types): Update.
3701 * gdbtypes.h (create_copied_types_hash): Return htab_up.
3702 * gdbtypes.c (create_copied_types_hash): Return htab_up.
3703 * compile/compile-object-run.c (compile_object_run): Update.
3704
fa9b1164
TT
37052020-09-17 Tom Tromey <tom@tromey.com>
3706
3707 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
3708 Remove.
3709 <m_table>: Now htab_up.
3710 * typeprint.c (typedef_hash_table::recursively_update)
3711 (typedef_hash_table::add_template_parameters)
3712 (typedef_hash_table::typedef_hash_table): Update.
3713 (typedef_hash_table::~typedef_hash_table): Remove.
3714 (typedef_hash_table::typedef_hash_table)
3715 (typedef_hash_table::find_global_typedef)
3716 (typedef_hash_table::find_typedef): Update.
3717
eb53f105
TT
37182020-09-17 Tom Tromey <tom@tromey.com>
3719
3720 * target-descriptions.c (tdesc_use_registers): Use htab_up.
3721
7a8a5d47
TT
37222020-09-17 Tom Tromey <tom@tromey.com>
3723
3724 * linespec.c (class decode_compound_collector)
3725 <~decode_compound_collector>: Remove.
3726 <m_unique_syms>: Now htab_up.
3727 (decode_compound_collector::operator ()): Update.
3728 (class symtab_collector) <~symtab_collector>: Remove.
3729 <m_symtab_table>: Now htab_up.
3730 (symtab_collector::operator ()): Update.
3731
99032cfc
TT
37322020-09-17 Tom Tromey <tom@tromey.com>
3733
3734 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
3735 (filename_seen_cache::clear): Update.
3736 (~filename_seen_cache): Remove.
3737 (filename_seen_cache::seen): Update.
3738 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
3739 htab_up.
3740 <~filename_seen_cache>: Remove.
3741 <traverse>: Update.
3742
32580f6d
TT
37432020-09-17 Tom Tromey <tom@tromey.com>
3744
3745 * completer.c (completion_tracker::discard_completions)
3746 (completion_tracker::~completion_tracker)
3747 (completion_tracker::maybe_add_completion)
3748 (completion_tracker::remove_completion)
3749 (completion_tracker::recompute_lowest_common_denominator)
3750 (completion_tracker::build_completion_result): Update.
3751 * completer.h (class completion_tracker) <have_completions>:
3752 Update.
3753 <m_entries_hash>: Now htab_up.
3754
c1fb9836
TT
37552020-09-17 Tom Tromey <tom@tromey.com>
3756
3757 * breakpoint.c (ambiguous_names_p): Use htab_up.
3758
88f07206
TT
37592020-09-17 Tom Tromey <tom@tromey.com>
3760
3761 * auto-load.c (struct auto_load_pspace_info)
3762 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
3763 <loaded_script_files, loaded_script_texts>: Change type to
3764 htab_up.
3765 (~auto_load_pspace_info) Remove.
3766 (init_loaded_scripts_info, maybe_add_script_file)
3767 (maybe_add_script_text, auto_load_info_scripts): Update.
3768
9519b2ee
TT
37692020-09-17 Tom Tromey <tromey@adacore.com>
3770
3771 * c-exp.y (name_obstack): Now static.
3772
d2cd4113
CC
37732020-09-17 Chungyi Chi <demonic@csie.io>
3774
3775 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
3776
b650a282
SM
37772020-09-16 Simon Marchi <simon.marchi@efficios.com>
3778
3779 * breakpoint.h (init_catchpoint): Change int parameter to bool.
3780 (add_solib_catchpoint): Likewise.
3781 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
3782 to bool.
3783 (add_solib_catchpoint): Change int parameter/variable to bool.
3784 (catch_load_or_unload): Likewise.
3785 (init_catchpoint): Likewise.
3786 (create_fork_vfork_event_catchpoint): Likewise.
3787 (catch_fork_command_1): Likewise.
3788 (catch_exec_command_1): Likewise.
3789
4d0bcfcf
SM
37902020-09-16 Simon Marchi <simon.marchi@efficios.com>
3791
3792 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
3793 Change instance_flags to m_instance_flags.
3794
fe830662
TT
37952020-09-16 Tom Tromey <tromey@adacore.com>
3796
3797 PR gdb/26598:
3798 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
3799
fe5ddfc3
JB
38002020-09-16 John Baldwin <jhb@FreeBSD.org>
3801
3802 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
3803 PL_FLAG_EXEC.
3804 (fbsd_nat_target::insert_exec_catchpoint)
3805 (fbsd_nat_target::remove_exec_catchpoint): Always define.
3806 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
3807 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
3808
e911c666
JB
38092020-09-16 John Baldwin <jhb@FreeBSD.org>
3810
3811 * configure.ac: Remove check for kinfo_getvmmap().
3812 * configure, config.in: Regenerate.
3813 * fbsd-nat.c (fbsd_read_mapping): Remove
3814 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
3815 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
3816 kinfo_get_vmmap() are always present.
3817
1f17d372
JB
38182020-09-16 John Baldwin <jhb@FreeBSD.org>
3819
3820 * fbsd-nat.c: Always include support for
3821 TARGET_OBJECT_SIGNAL_INFO.
3822
bcb1da7f
JB
38232020-09-16 John Baldwin <jhb@FreeBSD.org>
3824
3825 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
3826 sysctl and remove procfs fallback.
3827
5515f729
JB
38282020-09-16 John Baldwin <jhb@FreeBSD.org>
3829
3830 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
3831 * fbsd-nat.h: Likewise.
3832
da1df1db
TBA
38332020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3834
3835 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
3836 argument.
3837
0e25e767
AB
38382020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3839
3840 * ada-lang.c (ada_language_data): Delete.
3841 (ada_language): Remove references to ada_language_data.
3842 * c-lang.c (c_language_data): Delete.
3843 (c_language): Remove references to c_language_data.
3844 (cplus_language_data): Delete.
3845 (cplus_language): Remove references to cplus_language_data.
3846 (asm_language_data): Delete.
3847 (asm_language): Remove references to asm_language_data.
3848 (minimal_language_data): Delete.
3849 (minimal_language): Remove references to minimal_language_data.
3850 * d-lang.c (d_language_data): Delete.
3851 (d_language): Remove references to d_language_data.
3852 * f-lang.c (f_language_data): Delete.
3853 (f_language): Remove references to f_language_data.
3854 * go-lang.c (go_language_data): Delete.
3855 (go_language): Remove references to go_language_data.
3856 * language.c (unknown_language_data): Delete.
3857 (unknown_language): Remove references to unknown_language_data.
3858 (auto_language_data): Delete.
3859 (auto_language): Remove references to auto_language_data.
3860 * language.h (language_data): Delete struct.
3861 (language_defn): No longer inherit from language_data.
3862 * m2-lang.c (m2_language_data): Delete.
3863 (m2_language): Remove references to m2_language_data.
3864 * objc-lang.c (objc_language_data): Delete.
3865 (objc_language): Remove references to objc_language_data.
3866 * opencl-lang.c (opencl_language_data): Delete.
3867 (opencl_language): Remove references to opencl_language_data.
3868 * p-lang.c (pascal_language_data): Delete.
3869 (pascal_language): Remove references to pascal_language_data.
3870 * rust-lang.c (rust_language_data): Delete.
3871 (rust_language): Remove references to rust_language_data.
3872
b7c6e27d
AB
38732020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3874
3875 * ada-lang.c (ada_language_data): Remove la_op_print_tab
3876 initializer.
3877 (ada_language::opcode_print_table): New member function.
3878 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
3879 (c_language::opcode_print_table): New member function.
3880 (cplus_language_data): Remove la_op_print_tab initializer.
3881 (cplus_language::opcode_print_table): New member function.
3882 (asm_language_data): Remove la_op_print_tab initializer.
3883 (asm_language::opcode_print_table): New member function.
3884 (minimal_language_data): Remove la_op_print_tab initializer.
3885 (minimal_language::opcode_print_table): New member function.
3886 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
3887 (d_language::opcode_print_table): New member function.
3888 * expprint.c (print_subexp_standard): Update call to
3889 opcode_print_table.
3890 (op_string): Likewise.
3891 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
3892 (f_language::opcode_print_table): New member function.
3893 * go-lang.c (go_language_data): Remove la_op_print_tab
3894 initializer.
3895 (go_language::opcode_print_table): New member function.
3896 * language.c (unknown_language_data): Remove la_op_print_tab
3897 initializer.
3898 (unknown_language::opcode_print_table): New member function.
3899 (auto_language_data): Remove la_op_print_tab initializer.
3900 (auto_language::opcode_print_table): New member function.
3901 * language.h (language_data): Remove la_op_print_tab field.
3902 (language_defn::opcode_print_table): Declare new member function.
3903 * m2-lang.c (m2_language_data): Remove la_op_print_tab
3904 initializer.
3905 (m2_language::opcode_print_table): New member function.
3906 * objc-lang.c (objc_language_data): Remove la_op_print_tab
3907 initializer.
3908 (objc_language::opcode_print_table): New member function.
3909 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
3910 initializer.
3911 (opencl_language::opcode_print_table): New member function.
3912 * p-lang.c (pascal_language_data): Remove la_op_print_tab
3913 initializer.
3914 (pascal_language::opcode_print_table): New member function.
3915 * rust-lang.c (rust_language_data): Remove la_op_print_tab
3916 initializer.
3917 (rust_language::opcode_print_table): New member function.
3918
5aba6ebe
AB
39192020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3920
3921 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
3922 (ada_language::expression_ops): New member function.
3923 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
3924 (c_language::expression_ops): New member function.
3925 (cplus_language_data): Remove la_exp_desc initializer.
3926 (cplus_language::expression_ops): New member function.
3927 (asm_language_data): Remove la_exp_desc initializer.
3928 (asm_language::expression_ops): New member function.
3929 (minimal_language_data): Remove la_exp_desc initializer.
3930 (minimal_language::expression_ops): New member function.
3931 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
3932 (d_language::expression_ops): New member function.
3933 * eval.c (evaluate_subexp): Update call to expression_ops.
3934 * expprint.c (print_subexp): Likewise.
3935 (op_name): Likewise.
3936 (dump_subexp_body): Likewise.
3937 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
3938 (f_language::expression_ops): New member function.
3939 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
3940 (go_language::expression_ops): New member function.
3941 * language.c (language_defn::expression_ops): New function.
3942 (unknown_language_data): Remove la_exp_desc initializer.
3943 (auto_language_data): Likewise.
3944 * language.h (language_data): Remove la_exp_desc field.
3945 (language_defn::expression_ops): Declare new member function.
3946 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
3947 (m2_language::expression_ops): New member function.
3948 * objc-lang.c (objc_language_data): Remove la_exp_desc
3949 initializer.
3950 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
3951 initializer.
3952 (opencl_language::expression_ops): New member function.
3953 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
3954 * parse.c (operator_length): Update call to expression_ops.
3955 (exp_iterate): Likewise.
3956 * rust-lang.c (rust_language_data): Remove la_exp_desc
3957 initializer.
3958 (ruse_language::expression_ops): New member function.
3959
b63a3f3f
AB
39602020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3961
3962 * ada-lang.c (ada_language_data): Remove la_varobj_ops
3963 initializer.
3964 (ada_language::varobj_ops): New member function.
3965 * c-lang.c (c_language_data): Remove la_varobj_ops
3966 initializer.
3967 (cplus_language_data): Likewise.
3968 (cplus_language::varobj_ops): New member function.
3969 (asm_language_data): Remove la_varobj_ops initializer.
3970 (minimal_language_data): Likewise.
3971 * d-lang.c (d_language_data): Likewise.
3972 * f-lang.c (f_language_data): Likewise.
3973 * go-lang.c (go_language_data): Likewise.
3974 * language.c (language_defn::varobj_ops): New function.
3975 (unknown_language_data): Remove la_varobj_ops
3976 initializer.
3977 (auto_language_data): Likewise.
3978 * language.h (language_data): Remove la_varobj_ops field.
3979 (language_defn::varobj_ops): Declare new member function.
3980 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
3981 * objc-lang.c (objc_language_data): Likewise.
3982 * opencl-lang.c (opencl_language_data): Likewise.
3983 * p-lang.c (pascal_language_data): Likewise.
3984 * rust-lang.c (rust_language_data): Likewise.
3985 * varobj.c (varobj_create): Update call to varobj_ops.
3986 * varobj.h (default_varobj_ops): Delete define.
3987
1ac14a04
AB
39882020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3989
3990 * ada-lang.c (ada_language_data): Remove la_macro_expansion
3991 initializer.
3992 * c-lang.c (c_language_data): Likewise.
3993 (c_language::macro_expansion): New member function.
3994 (cplus_language_data): Likewise.
3995 (cplus_language::macro_expansion): New member function.
3996 (asm_language_data): Likewise.
3997 (asm_language::macro_expansion): New member function.
3998 (minimal_language_data): Likewise.
3999 (minimal_language::macro_expansion): New member function.
4000 * d-lang.c (d_language_data): Remove la_macro_expansion
4001 initializer.
4002 * f-lang.c (f_language_data): Likewise.
4003 * go-lang.c (go_language_data): Likewise.
4004 * language.c (unknown_language_data): Likewise.
4005 (auto_language_data): Likewise.
4006 * language.h (language_data): Remove la_macro_expansion field.
4007 (language_defn::macro_expansion): New member function.
4008 * m2-lang.c (m2_language_data): Remove la_macro_expansion
4009 initializer.
4010 * objc-lang.c (objc_language_data): Likewise.
4011 (objc_language::macro_expansion): New member function.
4012 * opencl-lang.c (opencl_language_data): Likewise.
4013 (opencl_language::macro_expansion): New member function.
4014 * p-lang.c (pascal_language_data): Remove la_macro_expansion
4015 initializer.
4016 * rust-lang.c (rust_language_data): Likewise.
4017 * symtab.c (default_collect_symbol_completion_matches_break_on):
4018 Update call to macro_expansion.
4019
3a3440fb
AB
40202020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4021
4022 * ada-lang.c (ada_language_data): Remove la_array_ordering
4023 initializer.
4024 * c-lang.c (c_language_data): Likewise.
4025 (cplus_language_data): Likewise.
4026 (asm_language_data): Likewise.
4027 (minimal_language_data): Likewise.
4028 * d-lang.c (d_language_data): Likewise.
4029 * dwarf2/read.c (read_array_order): Update for call to
4030 array_ordering.
4031 * f-lang.c (f_language_data): Remove la_array_ordering
4032 initializer.
4033 (f_language::array_ordering): New member function.
4034 * go-lang.c (go_language_data): Remove la_array_ordering
4035 initializer.
4036 * language.c (unknown_language_data): Likewise.
4037 (auto_language_data): Likewise.
4038 * language.h (language_data): Delete la_array_ordering field.
4039 (language_defn::array_ordering): New member function.
4040 * m2-lang.c (m2_language_data): Remove la_array_ordering
4041 initializer.
4042 * objc-lang.c (objc_language_data): Likewise.
4043 * opencl-lang.c (opencl_language_data): Likewise.
4044 * p-lang.c (pascal_language_data): Likewise.
4045 * rust-lang.c (rust_language_data): Likewise.
4046
0d201fa4
AB
40472020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4048
4049 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
4050 initializer.
4051 * c-lang.c (c_language_data): Likewise.
4052 (cplus_language_data): Likewise.
4053 (asm_language_data): Likewise.
4054 (minimal_language_data): Likewise.
4055 * d-lang.c (d_language_data): Likewise.
4056 * f-lang.c (f_language_data): Likewise.
4057 (f_language::case_sensitivity): New member function.
4058 * go-lang.c (go_language_data): Remove la_case_sensitivity
4059 initializer.
4060 * language.c (enum case_mode): Moved here from language.h.
4061 (case_mode): Make static.
4062 (show_case_command): Update for case_sensitivity being a method.
4063 (set_case_command): Likewise.
4064 (set_range_case): Likewise.
4065 (unknown_language_data): Remove la_case_sensitivity initializer.
4066 (auto_language_data): Likewise.
4067 * language.h (case_mode): Delete, move enum declaration to
4068 language.c.
4069 (language_data): Delete la_case_sensitivity field.
4070 (language_defn::case_sensitivity): New member function.
4071 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
4072 initializer.
4073 * objc-lang.c (objc_language_data): Likewise.
4074 * opencl-lang.c (opencl_language_data): Likewise.
4075 * p-lang.c (pascal_language_data): Likewise.
4076 * rust-lang.c (rust_language_data): Likewise.
4077
efdf6a73
AB
40782020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4079
4080 * ada-lang.c (ada_language_data): Remove la_range_check
4081 initializer.
4082 * c-lang.c (c_language_data): Likewise.
4083 (cplus_language_data): Likewise.
4084 (asm_language_data): Likewise.
4085 (minimal_language_data): Likewise.
4086 * d-lang.c (d_language_data): Likewise.
4087 * f-lang.c (f_language_data): Likewise.
4088 (f_language::range_checking_on_by_default): New member function.
4089 * go-lang.c (go_language_data): Remove la_range_check initializer.
4090 * language.c (enum range_mode): Moved here from language.h.
4091 (range_mode): Made static.
4092 (show_range_command): Update to use
4093 range_checking_on_by_default.
4094 (set_range_command): Likewise.
4095 (set_range_case): Likewise.
4096 (unknown_language_data): Remove la_range_check initializer.
4097 (auto_language_data): Likewise.
4098 * language.h (range_mode): Delete. Enum definition moved to
4099 language.c.
4100 (language_data): Remove la_range_check field.
4101 (language_defn::range_checking_on_by_default): New member
4102 function.
4103 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
4104 (m2_language::range_checking_on_by_default): New member function.
4105 * objc-lang.c (objc_language_data): Remove la_range_check
4106 initializer.
4107 * opencl-lang.c (opencl_language_data): Likewise.
4108 * p-lang.c (pascal_language_data): Likewise.
4109 (pascal_language::range_checking_on_by_default): New member
4110 function.
4111 * rust-lang.c (rust_language_data): Remove la_range_check
4112 initializer.
4113 (rust_language::range_checking_on_by_default): New member
4114 function.
4115
bf92aec5
AB
41162020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4117
4118 * dwarf2/read.c (dwarf2_physname): Remove special case for
4119 language_go.
4120 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
4121 member function.
4122
d3355e4d
AB
41232020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4124
4125 * ada-lang.c (ada_language_data): Remove
4126 la_store_sym_names_in_linkage_form_p initializer.
4127 (ada_language::store_sym_names_in_linkage_form_p): New member
4128 function.
4129 * c-lang.c (c_language_data): Remove
4130 la_store_sym_names_in_linkage_form_p initializer.
4131 (c_language::store_sym_names_in_linkage_form_p): New member
4132 function.
4133 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
4134 initializer.
4135 (asm_language_data): Likewise.
4136 (asm_language::store_sym_names_in_linkage_form_p): New member
4137 function.
4138 (minimal_language_data): Remove
4139 la_store_sym_names_in_linkage_form_p initializer.
4140 (minimal_language::store_sym_names_in_linkage_form_p): New member
4141 function.
4142 * d-lang.c (d_language_data): Remove
4143 la_store_sym_names_in_linkage_form_p initializer.
4144 * dwarf2/read.c (dwarf2_physname): Update call to
4145 store_sym_names_in_linkage_form_p.
4146 * f-lang.c (f_language_data): Remove
4147 la_store_sym_names_in_linkage_form_p initializer.
4148 * go-lang.c (go_language_data): Remove
4149 la_store_sym_names_in_linkage_form_p initializer.
4150 * language.c (unknown_language_data): Remove
4151 la_store_sym_names_in_linkage_form_p initializer.
4152 (unknown_language::store_sym_names_in_linkage_form_p): New member
4153 function.
4154 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
4155 initializer.
4156 (auto_language::store_sym_names_in_linkage_form_p): New member
4157 function.
4158 * language.h (language_data): Remove
4159 la_store_sym_names_in_linkage_form_p member variable.
4160 (language_defn::store_sym_names_in_linkage_form_p): New member
4161 function.
4162 * m2-lang.c (m2_language_data): Remove
4163 la_store_sym_names_in_linkage_form_p initializer.
4164 * objc-lang.c (objc_language_data): Likewise.
4165 * opencl-lang.c (opencl_language_data): Likewise.
4166 * p-lang.c (pascal_language_data): Likewise.
4167 * rust-lang.c (rust_language_data): Likewise.
4168
22c12a6c
AB
41692020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4170
4171 * ada-lang.c (ada_language_data): Remove string_lower_bound
4172 initializer.
4173 * c-lang.c (c_language_data): Likewise.
4174 (cplus_language_data): Likewise.
4175 (asm_language_data): Likewise.
4176 (minimal_language_data): Likewise.
4177 * d-lang.c (d_language_data): Likewise.
4178 * f-lang.c (f_language_data): Likewise.
4179 * go-lang.c (go_language_data): Likewise.
4180 * language.c (unknown_language_data): Likewise.
4181 (auto_language_data): Likewise.
4182 * language.h (language_data): Remove string_lower_bound field.
4183 (language_defn::string_lower_bound): New member function.
4184 * m2-lang.c (m2_language_data): Remove string_lower_bound
4185 initializer.
4186 (m2_language::string_lower_bound): New member function.
4187 * objc-lang.c (objc_language_data): Remove string_lower_bound
4188 initializer.
4189 * opencl-lang.c (opencl_language_data): Likewise.
4190 * p-lang.c (pascal_language_data): Likewise.
4191 * rust-lang.c (rust_language_data): Likewise.
4192 * valops.c (value_cstring): Update call to string_lower_bound.
4193 (value_string): Likewise.
4194 * value.c (allocate_repeated_value): Likewise.
4195
1c236ddd
AB
41962020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4197
4198 * valops.c (value_repeat): Fix incorrect argument name in comment.
4199
67bd3fd5
AB
42002020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4201
4202 * ada-lang.c (ada_language_data): Remove c_style_arrays
4203 initializer.
4204 (ada_language::c_style_arrays_p): New member fuction.
4205 * c-lang.c (c_language_data): Remove c_style_arrays
4206 initializer.
4207 (cplus_language_data): Likewise.
4208 (asm_language_data): Likewise.
4209 (minimal_language_data): Likewise.
4210 * d-lang.c (d_language_data): Likewise.
4211 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
4212 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
4213 (f_language::c_style_arrays_p): New member function.
4214 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
4215 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
4216 * language.c (unknown_language_data): Remove c_style_arrays
4217 initializer.
4218 (auto_language_data): Likewise.
4219 * language.h (language_data): Remove c_style_arrays field.
4220 (language_defn::c_style_arrays_p): New member function.
4221 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
4222 (m2_language::c_style_arrays_p): New member function.
4223 * objc-lang.c (objc_language_data): Remove c_style_arrays
4224 initializer.
4225 * opencl-lang.c (opencl_language_data): Likewise.
4226 * p-lang.c (pascal_language_data): Likewise.
4227 * rust-lang.c (rust_language_data): Likewise.
4228 * valarith.c (value_subscript): Update call to c_style_arrays_p,
4229 and update local variable to a bool.
4230 * valops.c (value_cast): Update call to c_style_arrays_p.
4231 (value_array): Likewise.
4232 * value.c (coerce_array): Likewise.
4233
85967615
AB
42342020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4235
4236 * ada-lang.c (ada_language_data): Remove la_language initializer.
4237 * c-lang.c (c_language_data): Likewise.
4238 (cplus_language_data): Likewise.
4239 (asm_language_data): Likewise.
4240 (minimal_language_data): Likewise.
4241 * d-lang.c (d_language_data): Likewise.
4242 * f-lang.c (f_language_data): Likewise.
4243 * go-lang.c (go_language_data): Likewise.
4244 * language.c (unknown_language_data): Likewise.
4245 (auto_language_data): Likewise.
4246 * language.h (language_data): Remove la_language field.
4247 (language_defn::language_defn): Initialise la_language field.
4248 (language_defn::la_language): New member variable.
4249 * m2-lang.c (m2_language_data): Remove la_language field.
4250 * objc-lang.c (objc_language_data): Likewise.
4251 * opencl-lang.c (opencl_language_data): Likewise.
4252 * p-lang.c (pascal_language_data): Likewise.
4253 * rust-lang.c (rust_language_data): Likewise.
4254
e171d6f1
AB
42552020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4256
4257 * ada-lang.c (ada_extensions): Delete, moved into
4258 ada_language::filename_extensions.
4259 (ada_language_data): Remove la_filename_extensions initializer.
4260 (ada_language::filename_extensions): New member function.
4261 * c-lang.c (c_extensions): Delete, moved into
4262 c_language::filename_extensions.
4263 (c_language_data): Remove la_filename_extensions initializer.
4264 (c_language::filename_extensions): New member function.
4265 (cplus_extensions): Delete, moved into
4266 cplus_language::filename_extensions.
4267 (cplus_language_data): Remove la_filename_extensions initializer.
4268 (cplus_language::filename_extensions): New member function.
4269 (asm_extensions): Delete, moved into
4270 asm_language::filename_extensions.
4271 (asm_language_data): Remove la_filename_extensions initializer.
4272 (asm_language::filename_extensions): New member function.
4273 (minimal_language_data): Remove la_filename_extensions
4274 initializer.
4275 * d-lang.c (d_extensions): Delete, moved into
4276 d_language::filename_extensions.
4277 (d_language_data): Remove la_filename_extensions initializer.
4278 (d_language::filename_extensions): New member function.
4279 * f-lang.c (f_extensions): Delete, moved into
4280 f_language::filename_extensions.
4281 (f_language_data): Remove la_filename_extensions initializer.
4282 (f_language::filename_extensions): New member function.
4283 * go-lang.c (go_language_data): Remove la_filename_extensions
4284 initializer.
4285 * language.c (add_set_language_command): Update now that
4286 filename_extensions returns a vector.
4287 (unknown_language_data): Remove la_filename_extensions
4288 initializer.
4289 (auto_language_data): Likewise.
4290 * language.h (language_data): Remove la_filename_extensions field.
4291 (language_defn::filename_extensions): New member function.
4292 * m2-lang.c (m2_language_data): Remove la_filename_extensions
4293 initializer.
4294 * objc-lang.c (objc_extensions): Delete, moved into
4295 objc_language::filename_extensions.
4296 (objc_language_data): Remove la_filename_extensions initializer.
4297 (objc_language::filename_extensions): New member function.
4298 * opencl-lang.c (opencl_language_data): Remove
4299 la_filename_extensions initializer.
4300 * p-lang.c (pascal_extensions): Delete, moved into
4301 pascal_language::filename_extensions.
4302 (pascal_language_data): Remove la_filename_extensions initializer.
4303 (pascal_language::filename_extensions): New member function.
4304 * rust-lang.c (rust_extensions): Delete, moved into
4305 rust_language::filename_extensions.
4306 (rust_language_data): Remove la_filename_extensions initializer.
4307 (rust_language::filename_extensions): New member function.
4308 * symfile.c (add_filename_language): Add new assert.
4309
6f7664a9
AB
43102020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4311
4312 * ada-lang.c (ada_language_data): Remove la_name and
4313 la_natural_name initializers.
4314 (ada_language::name): New member function.
4315 (ada_language::natural_name): New member function.
4316 * c-lang.c (c_language_data): Remove la_name and
4317 la_natural_name initializers.
4318 (c_language::name): New member function.
4319 (c_language::natural_name): New member function.
4320 (cplus_language_data): Remove la_name and
4321 la_natural_name initializers.
4322 (cplus_language::name): New member function.
4323 (cplus_language::natural_name): New member function.
4324 (asm_language_data): Remove la_name and
4325 la_natural_name initializers.
4326 (asm_language::name): New member function.
4327 (asm_language::natural_name): New member function.
4328 (minimal_language_data): Remove la_name and
4329 la_natural_name initializers.
4330 (minimal_language::name): New member function.
4331 (minimal_language::natural_name): New member function.
4332 * compile/compile.c (compile_to_object): Update call to
4333 lanugage_defn::name.
4334 * d-lang.c (d_language_data): Remove la_name and
4335 la_natural_name initializers.
4336 (d_language::name): New member function.
4337 (d_language::natural_name): New member function.
4338 * expprint.c (print_subexp_standard): Update call to
4339 language_defn::name.
4340 (dump_raw_expression): Likewise
4341 (dump_prefix_expression): Likewise.
4342 * f-lang.c (f_language_data): Remove la_name and
4343 la_natural_name initializers.
4344 (f_language::name): New member function.
4345 (f_language::natural_name): New member function.
4346 * go-lang.c (go_language_data): Remove la_name and
4347 la_natural_name initializers.
4348 (go_language::name): New member function.
4349 (go_language::natural_name): New member function.
4350 * language.c (show_language_command): Update call to
4351 language_defn::name.
4352 (set_language_command): Likewise.
4353 (language_enum): Likewise.
4354 (language_str): Likewise.
4355 (add_set_language_command): Likewise, use
4356 language_defn::natural_name in the doc string.
4357 (unknown_language_data): Remove la_name and
4358 la_natural_name initializers.
4359 (unknown_language::name): New member function.
4360 (unknown_language::natural_name): New member function.
4361 (auto_language_data): Remove la_name and
4362 la_natural_name initializers.
4363 (auto_language::name): New member function.
4364 (auto_language::natural_name): New member function.
4365 (language_lookup_primitive_type_as_symbol): Update call to
4366 language_defn::name.
4367 * language.h (language_data): Remove la_name and la_natural_name
4368 member variables.
4369 (language_defn::name): New member function.
4370 (language_defn::natural_name): New member function.
4371 * m2-lang.c (m2_language_data): Remove la_name and
4372 la_natural_name initializers.
4373 (m2_language::name): New member function.
4374 (m2_language::natural_name): New member function.
4375 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
4376 language_defn::natural_name.
4377 * objc-lang.c (objc_language_data): Remove la_name and
4378 la_natural_name initializers.
4379 (objc_language::name): New member function.
4380 (objc_language::natural_name): New member function.
4381 * opencl-lang.c (opencl_language_data): Remove la_name and
4382 la_natural_name initializers.
4383 (opencl_language::name): New member function.
4384 (opencl_language::natural_name): New member function.
4385 * p-lang.c (pascal_language_data): Remove la_name and
4386 la_natural_name initializers.
4387 (pascal_language::name): New member function.
4388 (pascal_language::natural_name): New member function.
4389 * rust-lang.c (rust_language_data): Remove la_name and
4390 la_natural_name initializers.
4391 (rust_language::name): New member function.
4392 (rust_language::natural_name): New member function.
4393 * symtab.c (lookup_language_this): Update call to
4394 language_defn::name.
4395
5bae7c4e
AB
43962020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4397
4398 * ada-lang.c (ada_language_data): Remove la_name_of_this
4399 initializer.
4400 * ax-gdb.c (gen_expr): Update call to name_of_this.
4401 * c-exp.y (classify_name): Likewise.
4402 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
4403 (cplus_language_data): Likewise.
4404 (cplus_language::name_of_this): New member function.
4405 (asm_language_data): Remove la_name_of_this initializer.
4406 (minimal_language_data): Likewise.
4407 * d-lang.c (d_language_data): Likewise.
4408 (d_language::name_of_this): New member function.
4409 * expprint.c (print_subexp_standard): Update call to name_of_this.
4410 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
4411 * go-lang.c (go_language_data): Likewise.
4412 * language.c (unknown_language_data): Likewise.
4413 (unknown_language::name_of_this): New member function.
4414 (auto_language_data): Remove la_name_of_this initializer.
4415 (auto_language::name_of_this): New member function.
4416 * language.h (language_data): Delete la_name_of_this member
4417 variable.
4418 (language_defn::name_of_this): New member function.
4419 * m2-lang.c (m2_language_data): Remove la_name_of_this
4420 initializer.
4421 * objc-lang.c (objc_language_data): Likewise.
4422 (objc_language::name_of_this): New member function.
4423 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
4424 initializer.
4425 * p-lang.c (pascal_language_data): Likewise.
4426 (pascal_language::name_of_this): New member function.
4427 * rust-lang.c (rust_language_data): Remove la_name_of_this
4428 initializer.
4429 * symtab.c (lookup_language_this): Update call to name_of_this.
4430 (lookup_symbol_aux): Likewise.
4431 * valops.c (value_of_this): Likewise.
4432
22e3f3ed
AB
44332020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4434
4435 * ada-lang.c (ada_language_data): Remove
4436 la_struct_too_deep_ellipsis initializer.
4437 (ada_language::struct_too_deep_ellipsis): New member function.
4438 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
4439 initializer.
4440 (cplus_language_data): Likewise.
4441 (asm_language_data): Likewise.
4442 (minimal_language_data): Likewise.
4443 * cp-valprint.c (cp_print_value): Update call to
4444 struct_too_deep_ellipsis.
4445 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
4446 initializer.
4447 * f-lang.c (f_language_data): Likewise.
4448 (f_language::struct_too_deep_ellipsis): New member function.
4449 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
4450 initializer.
4451 * language.c (unknown_language_data): Likewise.
4452 (auto_language_data): Likewise.
4453 * language.h (language_data): Delete la_struct_too_deep_ellipsis
4454 member variable.
4455 (language_defn::struct_too_deep_ellipsis): New member function.
4456 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
4457 initializer.Q
4458 * objc-lang.c (objc_language_data): Likewise.
4459 * opencl-lang.c (opencl_language_data): Likewise.
4460 * p-lang.c (pascal_language_data): Likewise.
4461 * rust-lang.c (rust_language_data): Likewise.
4462 * valprint.c (val_print_check_max_depth): Update call to
4463 struct_too_deep_ellipsis.
4464
ed29e1c7
FW
44652020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
4466
4467 * MAINTAINERS (Write After Approval): Add myself.
4468
12d8f940
TT
44692020-09-15 Tom Tromey <tom@tromey.com>
4470
4471 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
4472 Remove.
4473
6b5a7bc7
TT
44742020-09-15 Tom Tromey <tom@tromey.com>
4475
4476 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
4477 and TYPE_CODE_METHODPTR cases.
4478 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
4479 (c_value_print_inner): Update.
4480 * valprint.c (generic_value_print_memberptr): New function, from
4481 c_value_print_memberptr.
4482 (generic_value_print): Use it. Call cplus_print_method_ptr.
4483
47f0e2ff
TT
44842020-09-15 Tom Tromey <tromey@adacore.com>
4485
4486 * python/python-internal.h (PyInt_FromLong): Remove define.
4487 * python/py-value.c (convert_value_from_python): Use
4488 gdb_py_object_from_longest.
4489 * python/py-type.c (typy_get_code): Use
4490 gdb_py_object_from_longest.
4491 * python/py-symtab.c (salpy_get_line): Use
4492 gdb_py_object_from_longest.
4493 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
4494 gdb_py_object_from_longest.
4495 * python/py-record.c (recpy_gap_reason_code): Use
4496 gdb_py_object_from_longest.
4497 * python/py-record-btrace.c (recpy_bt_insn_size)
4498 (recpy_bt_func_level, btpy_list_count): Use
4499 gdb_py_object_from_longest.
4500 * python/py-infthread.c (gdbpy_create_ptid_object): Use
4501 gdb_py_object_from_longest. Fix error handling.
4502 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
4503 gdb_py_object_from_longest.
4504 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
4505 gdb_py_object_from_longest.
4506 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
4507 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
4508 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
4509
512116ce
TT
45102020-09-15 Tom Tromey <tromey@adacore.com>
4511
4512 * python/python.c (gdbpy_parameter_value): Use
4513 gdb_py_object_from_ulongest.
4514
4ab1029c
TT
45152020-09-15 Tom Tromey <tromey@adacore.com>
4516
4517 * python/py-infevents.c (create_register_changed_event_object):
4518 Use gdb_py_object_from_longest.
4519 * python/py-exitedevent.c (create_exited_event_object): Use
4520 gdb_py_object_from_longest.
4521
062534d4
TT
45222020-09-15 Tom Tromey <tromey@adacore.com>
4523
4524 * python/python.c (gdbpy_parameter_value): Use
4525 gdb_py_object_from_longest.
4526 * python/py-type.c (convert_field, typy_range): Use
4527 gdb_py_object_from_longest.
4528 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
4529 gdb_py_object_from_longest.
4530 * python/py-lazy-string.c (stpy_get_length): Use
4531 gdb_py_object_from_longest.
4532 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
4533 gdb_py_object_from_longest.
4534 * python/py-infevents.c (create_memory_changed_event_object): Use
4535 gdb_py_object_from_longest.
4536 * python/py-inferior.c (infpy_get_num): Use
4537 gdb_py_object_from_longest.
4538 (infpy_get_pid): Likewise.
4539
d1cab987
TT
45402020-09-15 Tom Tromey <tromey@adacore.com>
4541
4542 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
4543 defines.
4544 * python/py-value.c (valpy_long): Use
4545 gdb_py_object_from_ulongest.
4546 * python/py-symtab.c (salpy_get_pc): Use
4547 gdb_py_object_from_ulongest.
4548 (salpy_get_last): Likewise.
4549 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
4550 gdb_py_object_from_ulongest.
4551 * python/py-lazy-string.c (stpy_get_address): Use
4552 gdb_py_object_from_ulongest.
4553 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
4554 * python/py-arch.c (archpy_disassemble): Use
4555 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
4556 error handling.
4557
4bde49dc
TT
45582020-09-15 Tom Tromey <tromey@adacore.com>
4559
4560 * python/python-internal.h (gdb_py_long_from_longest): Remove
4561 defines.
4562 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
4563 * python/py-type.c (convert_field, typy_get_sizeof): Use
4564 gdb_py_object_from_longest.
4565 * python/py-record-btrace.c (btpy_list_index): Use
4566 gdb_py_object_from_longest.
4567
37431074
TT
45682020-09-15 Tom Tromey <tromey@adacore.com>
4569
4570 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
4571 * python/py-record.c (recpy_element_number): Use
4572 gdb_py_object_from_longest.
4573 (recpy_gap_number): Likewise.
4574
cbe25684
TT
45752020-09-15 Tom Tromey <tromey@adacore.com>
4576
4577 * top.c (ui::ui): Update.
4578 (highest_ui_num): Remove.
4579 * top.h (struct ui) <num>: Remove.
4580
db92ac45
TT
45812020-09-15 Tom Tromey <tromey@adacore.com>
4582
4583 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
4584 * ui-style.c (ansi_regex_text): Now array.
4585 * rust-exp.y (number_regex_text): Now array.
4586 * linespec.c (linespec_quote_characters): Now array.
4587 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
4588 Now arrays.
4589
d2b31b67
SM
45902020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4591
4592 * debuginfod-support.c (debuginfod_client_deleter): New.
4593 (debuginfod_client_up): New.
4594 (debuginfod_init): Return debuginfod_client_up.
4595 (debuginfod_source_query): Adjust.
4596 (debuginfod_debuginfo_query): Adjust.
4597
3246bd8e
SM
45982020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4599
4600 * debuginfod-support.c (debuginfod_source_query): Use
4601 make_unique_xstrdup.
4602
10242f36
SM
46032020-09-14 Simon Marchi <simon.marchi@efficios.com>
4604
4605 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
4606 with `type::instance_flags`.
4607
e1044e6a
MM
46082020-09-14 Michael Mullin <masmullin@gmail.com>
4609
4610 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
4611 Remove baton parameter.
4612
04902b09
PA
46132020-09-14 Pedro Alves <pedro@palves.net>
4614
4615 * Makefile.in (SELFTESTS_SRCS): Add
4616 unittests/enum-flags-selftests.c.
4617 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
4618 btrace_function_flags instead of enum btrace_function_flag.
4619 * compile/compile-c-types.c (convert_qualified): Use
4620 enum_flags::raw.
4621 * compile/compile-cplus-symbols.c (convert_one_symbol)
4622 (convert_symbol_bmsym):
4623 * compile/compile-cplus-types.c (compile_cplus_convert_method)
4624 (compile_cplus_convert_struct_or_union_methods)
4625 (compile_cplus_instance::convert_qualified_base):
4626 * go-exp.y (parse_string_or_char): Add cast to int.
4627 * unittests/enum-flags-selftests.c: New file.
4628 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
4629 type to btrace_thread_flags from btrace_thread_flag.
4630 (record_btrace_cancel_resume, record_btrace_step_thread): Change
4631 local's type to btrace_thread_flags from btrace_thread_flag. Add
4632 cast in DEBUG call.
4633
69896a2c
PA
46342020-09-14 Pedro Alves <pedro@palves.net>
4635
4636 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
4637 * gdbtypes.c (address_space_name_to_int): Rename to ...
4638 (address_space_name_to_type_instance_flags): ... this.
4639 (address_space_int_to_name): Rename to ...
4640 (address_space_type_instance_flags_to_name): ... this.
4641 * gdbtypes.h (address_space_name_to_int): Rename to ...
4642 (address_space_name_to_type_instance_flags): ... this.
4643 (address_space_int_to_name): Rename to ...
4644 (address_space_type_instance_flags_to_name): ... this.
4645 * type-stack.c (type_stack::insert): Adjust to rename.
4646 * type-stack.h (type_stack::insert): Likewise.
4647
314ad88d
PA
46482020-09-14 Pedro Alves <pedro@palves.net>
4649 Andrew Burgess <andrew.burgess@embecosm.com>
4650
4651 * avr-tdep.c (avr_address_class_type_flags): Return
4652 type_instance_flags.
4653 (avr_address_class_type_flags_to_name): Take a
4654 type_instance_flags.
4655 (avr_address_class_name_to_type_flags): Return bool and take a
4656 type_instance_flags.
4657 * d-lang.c (build_d_types): Use type::set_instance_flags.
4658 * ft32-tdep.c (ft32_address_class_type_flags): Return
4659 type_instance_flags.
4660 (ft32_address_class_type_flags_to_name): Take a
4661 type_instance_flags.
4662 (ft32_address_class_name_to_type_flags): Return bool and take a
4663 type_instance_flags.
4664 (ft32_gdbarch_init): Use type::set_instance_flags.
4665 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
4666 * gdbarch.h, gdbarch.c: Regenerate.
4667 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
4668 (address_class_name_to_type_flags): Use type_instance_flags and
4669 bool.
4670 * gdbtypes.c (address_space_name_to_int)
4671 (address_space_int_to_name, make_qualified_type): Use
4672 type_instance_flags.
4673 (make_qualified_type): Use type_instance_flags and
4674 type::set_instance_flags.
4675 (make_type_with_address_space, make_cv_type, make_vector_type)
4676 (check_typedef): Use type_instance_flags.
4677 (recursive_dump_type): Cast type_instance_flags to unsigned for
4678 printing.
4679 (copy_type_recursive): Use type::set_instance_flags.
4680 (gdbtypes_post_init): Use type::set_instance_flags.
4681 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
4682 <m_instance_flags>: ... this.
4683 <instance_flags, set_instance_flags>: New methods.
4684 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
4685 (SET_TYPE_INSTANCE_FLAGS): New.
4686 (address_space_name_to_int, address_space_int_to_name)
4687 (make_type_with_address_space): Pass flags using
4688 type_instance_flags instead of int.
4689 * stabsread.c (cleanup_undefined_types_noname): Use
4690 type::set_instance_flags.
4691 * s390-tdep.c (s390_address_class_type_flags): Return
4692 type_instance_flags.
4693 (s390_address_class_type_flags_to_name): Take a
4694 type_instance_flags.
4695 (s390_address_class_name_to_type_flags): Return bool and take a
4696 type_instance_flags.
4697 * type-stack.c (type_stack::follow_types): Use
4698 type_instance_flags.
4699 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
4700
27087b7f
TT
47012020-09-14 Tom Tromey <tromey@adacore.com>
4702
4703 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
4704 * x86-tdep.c (x86_is_thunk_register_name)
4705 (x86_in_indirect_branch_thunk): Update.
4706 * sparc64-tdep.c (sparc64_fpu_register_names)
4707 (sparc64_cp0_register_names, sparc64_register_names)
4708 (sparc64_pseudo_register_names): Now const.
4709 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
4710 cp0_registers_num>: Now const.
4711 * sparc-tdep.c (sparc_core_register_names)
4712 (sparc32_fpu_register_names, sparc32_cp0_register_names)
4713 (sparc32_pseudo_register_names): Now const.
4714 (validate_tdesc_registers): Update.
4715 * rust-lang.c (rust_extensions): Now const.
4716 * p-lang.c (p_extensions): Now const.
4717 * objc-lang.c (objc_extensions): Now const.
4718 * nto-tdep.c (nto_thread_state_str): Now const.
4719 * moxie-tdep.c (moxie_register_names): Now const.
4720 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
4721 Now const.
4722 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
4723 (mips_linux_reg_names): Now const.
4724 (mips_gdbarch_init): Update.
4725 * microblaze-tdep.c (microblaze_register_names): Now const.
4726 * m68k-tdep.c (m68k_register_names): Now const.
4727 * m32r-tdep.c (m32r_register_names): Now const.
4728 * ia64-tdep.c (ia64_register_names): Now const.
4729 * i386-tdep.h (struct gdbarch_tdep) <register_names,
4730 ymmh_register_names, ymm16h_regnum, mpx_register_names,
4731 k_register_names, zmmh_register_names, xmm_avx512_register_names,
4732 ymm_avx512_register_names, pkeys_register_names>: Now const.
4733 * i386-tdep.c (i386_register_names, i386_zmm_names)
4734 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
4735 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
4736 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
4737 * f-lang.c (f_extensions): Now const.
4738 * d-lang.c (d_extensions): Now const.
4739 * csky-tdep.c (csky_register_names): Now const.
4740 * charset.c (default_charset_names, charset_enum): Now const.
4741 (_initialize_charset): Update.
4742 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
4743 const.
4744 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
4745 (bsd_uthread_solib_loaded): Update.
4746 (bsd_uthread_state): Now const.
4747 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
4748 (amd64_ymm_avx512_names, amd64_ymmh_names)
4749 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
4750 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
4751 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
4752 (amd64_dword_names): Now const.
4753 * agent.c (can_use_agent_enum): Now const.
4754 * ada-tasks.c (task_states, long_task_states): Now const.
4755 * ada-lang.c (known_runtime_file_name_patterns)
4756 (known_auxiliary_function_name_patterns, attribute_names)
4757 (standard_exc, ada_extensions): Now const.
4758
89806626
SM
47592020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4760
4761 * bcache.h (struct bcache) <bcache>: Remove constructor.
4762 <m_hash_function, m_compare_function>: Remove.
4763 <~bcache>: Make virtual.
4764 <compare>: Remove static method, introduce virtual method.
4765 <default_hash>: Remove.
4766 <hash>: New virtual method.
4767 * bcache.c (bcache::expand_hash_table): Update.
4768 (bcache::insert): Update.
4769 (bcache::hash): New.
4770 (bcache::compare): Update comment and parameter names.
4771 * gdbtypes.c (types_deeply_equal): Update.
4772 * psymtab.h (struct psymbol_bcache): New struct.
4773 (class psymtab_storage) <psymtab_storage>: Make default.
4774 <psymbol_cache>: Change type to psymbol_bcache.
4775 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
4776 (psymbol_hash): Change to...
4777 (psymbol_bcache::hash): ... this.
4778 (psymbol_compare): Change to...
4779 (psymbol_bcache::compare): ... this.
4780
677c92fe
SM
47812020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4782
4783 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
4784 checking for initial lwp.
4785
3eba3a01
TT
47862020-09-14 Tom Tromey <tromey@adacore.com>
4787
4788 * m68k-tdep.c (m68k_extract_return_value): Use
4789 pointer_result_regnum.
4790 (m68k_store_return_value): Likewise.
4791 (m68k_reg_struct_return_p): Handle vectors and arrays.
4792 (m68k_return_value): Handle arrays.
4793 (m68k_svr4_return_value): Fix single-element aggregate handling.
4794 Handle long double. Adjust for embedded ABI.
4795 (m68k_svr4_init_abi): Set pointer_result_regnum.
4796 (m68k_embedded_init_abi): New function.
4797 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
4798 (m68k_osabi_sniffer): New function.
4799 (_initialize_m68k_tdep): Register osabi sniffer.
4800 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
4801 member.
4802
33f4dd48
SM
48032020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4804
4805 * xml-support.c (xml_fetch_content_from_file): Replace xfree
4806 with gdb::unique_xmalloc_ptr<char>.
4807
8400a90d
SM
48082020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4809
4810 * xml-support.h (xml_fetch_another): Change type to be a
4811 function_view.
4812 (xml_process_xincludes): Remove baton parameter.
4813 (xml_fetch_content_from_file): Change baton parameter to
4814 dirname.
4815 * xml-support.c (struct xinclude_parsing_data)
4816 <xinclude_parsing_data>: Remove baton parameter.
4817 <fetcher_baton>: Remove.
4818 (xinclude_start_include): Adjust.
4819 (xml_process_xincludes): Adjust.
4820 (xml_fetch_content_from_file): Replace baton parameter with
4821 dirname.
4822 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
4823 (xml_init_syscalls_info): Use a lambda.
4824 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
4825 (file_read_description_xml): Use a lambda.
4826 (fetch_available_features_from_target): Change baton parameter
4827 to target_ops.
4828 (target_read_description_xml): Use a lambda.
4829 (target_fetch_description_xml): Use a lambda.
4830 (string_read_description_xml): Update.
4831
04f5bab2
SM
48322020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4833
4834 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
4835 uses with type::endianity_is_not_default.
4836
db558e34
SM
48372020-09-14 Simon Marchi <simon.marchi@efficios.com>
4838
4839 * gdbtypes.h (struct type) <endianity_is_not_default,
4840 set_endianity_is_not_default>: New methods.
4841 (TYPE_ENDIANITY_NOT_DEFAULT): Use
4842 type::endianity_is_not_default, change all write call sites to
4843 use type::set_endianity_is_not_default.
4844
22c4c60c
SM
48452020-09-14 Simon Marchi <simon.marchi@efficios.com>
4846
4847 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
4848 uses with type::is_fixed_instance.
4849
9cdd0d12
SM
48502020-09-14 Simon Marchi <simon.marchi@efficios.com>
4851
4852 * gdbtypes.h (struct type) <is_fixed_instance,
4853 set_is_fixed_instance>: New methods.
4854 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
4855 write call sites to use type::set_is_fixed_instance.
4856
0becda7a
SM
48572020-09-14 Simon Marchi <simon.marchi@efficios.com>
4858
4859 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
4860 uses with type::is_gnu_ifunc.
4861
03cc7249
SM
48622020-09-14 Simon Marchi <simon.marchi@efficios.com>
4863
4864 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
4865 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
4866 use type::set_is_gnu_ifunc.
4867
3f46044c
SM
48682020-09-14 Simon Marchi <simon.marchi@efficios.com>
4869
4870 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
4871 uses with type::stub_is_supported.
4872
9baccff6
SM
48732020-09-14 Simon Marchi <simon.marchi@efficios.com>
4874
4875 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
4876 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
4877 use type::set_stub_is_supported.
4878
bd63c870
SM
48792020-09-14 Simon Marchi <simon.marchi@efficios.com>
4880
4881 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
4882 uses with type::is_vector.
4883
2062087b
SM
48842020-09-14 Simon Marchi <simon.marchi@efficios.com>
4885
4886 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
4887 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
4888 use type::set_is_vector.
4889
a409645d
SM
48902020-09-14 Simon Marchi <simon.marchi@efficios.com>
4891
4892 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
4893 uses with type::has_varargs.
4894
1d6286ed
SM
48952020-09-14 Simon Marchi <simon.marchi@efficios.com>
4896
4897 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
4898 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
4899 use type::set_has_varargs.
4900
7f9f399b
SM
49012020-09-14 Simon Marchi <simon.marchi@efficios.com>
4902
4903 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
4904 uses with type::is_prototyped.
4905
27e69b7a
SM
49062020-09-14 Simon Marchi <simon.marchi@efficios.com>
4907
4908 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
4909 New methods.
4910 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
4911 call sites to use type::set_is_prototyped.
4912
d2183968
SM
49132020-09-14 Simon Marchi <simon.marchi@efficios.com>
4914
4915 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
4916 uses with type::target_is_stub.
4917
8f53807e
SM
49182020-09-14 Simon Marchi <simon.marchi@efficios.com>
4919
4920 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
4921 New methods.
4922 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
4923 sites to use type::set_target_is_stub.
4924
e46d3488
SM
49252020-09-14 Simon Marchi <simon.marchi@efficios.com>
4926
4927 * gdbtypes.h (TYPE_STUB): Remove, replace all
4928 uses with type::is_stub.
4929
b4b73759
SM
49302020-09-14 Simon Marchi <simon.marchi@efficios.com>
4931
4932 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
4933 (TYPE_STUB): Use type::is_stub, change all write call sites to
4934 use type::set_is_stub.
4935
20ce4123
SM
49362020-09-14 Simon Marchi <simon.marchi@efficios.com>
4937
4938 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
4939 type::has_no_signedness.
4940
15152a54
SM
49412020-09-14 Simon Marchi <simon.marchi@efficios.com>
4942
4943 * gdbtypes.h (struct type) <has_no_signedness,
4944 set_has_no_signedness>: New methods.
4945 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
4946 call sites to use type::set_has_no_signedness.
4947
c6d940a9
SM
49482020-09-14 Simon Marchi <simon.marchi@efficios.com>
4949
4950 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
4951 type::is_unsigned.
4952
653223d3
SM
49532020-09-14 Simon Marchi <simon.marchi@efficios.com>
4954
4955 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
4956 methods.
4957 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
4958 sites to use type::set_is_unsigned.
4959
55ea94da 49602020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 4961 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 4962
e851246a
SM
4963 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
4964 pointer and stack frame offset when unwinding.
55ea94da 4965
6791b117
PA
49662020-09-13 Pedro Alves <pedro@palves.net>
4967
4968 * NEWS: Document "-break-insert --qualified".
4969 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
4970
77f2120b
PA
49712020-09-13 Pedro Alves <pedro@palves.net>
4972
4973 * linespec.c (classify_mtype, compare_msyms): Delete.
4974 (search_minsyms_for_name): Remove classification logic. Instead
4975 filter out trampoline symbols if we also found an external
4976 function of the same name.
4977
ed6a896c
JB
49782020-09-13 Joel Brobecker <brobecker@adacore.com>
4979
4980 * NEWS: Create a new section for the next release branch.
4981 Rename the section of the current branch, now that it has
4982 been cut.
4983
32aea73e
JB
49842020-09-13 Joel Brobecker <brobecker@adacore.com>
4985
4986 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
4987 * version.in: Bump version to 11.0.50.DATE-git.
4988
8087c3fa
JB
49892020-09-12 Joel Brobecker <brobecker@adacore.com>
4990
4991 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
4992
2a67f09d
FW
49932020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
4994 Felix Willgerodt <Felix.Willgerodt@intel.com>
4995
4996 * gdbarch.sh: Added bfloat16 type.
4997 * gdbarch.c: Regenerated.
4998 * gdbarch.h: Regenerated.
4999 * gdbtypes.c (floatformats_bfloat16): New struct.
5000 (gdbtypes_post_init): Add builtin_bfloat16.
5001 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
5002 (floatformats_bfloat16): New struct.
5003 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
5004 (i386_ymm_type): Add field "v16_bfloat16"
5005 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
5006 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
5007 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
5008 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
5009 * features/i386/64bit-avx512.xml: Add bfloat16 type.
5010 * features/i386/64bit-avx512.c: Regenerated.
5011 * features/i386/64bit-sse.xml: Add bfloat16 type.
5012 * features/i386/64bit-sse.c: Regenerated.
5013
1347d111
FW
50142020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
5015
5016 * i386-tdep.c (i386_zmm_type): Fix field names.
5017 (i386_ymm_type): Fix field names.
5018
7a4e8e7d
TBA
50192020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5020
5021 * breakpoint.c: Fix typo in the help message of the
5022 "set breakpoint condition-evaluation" command.
5023
cf4ac4be
KR
50242020-09-10 Kamil Rytarowski <n54@gmx.com>
5025
5026 * nbsd-nat.c: Include "nat/netbsd-nat.h".
5027 * (nbsd_nat_target::pid_to_exec_file)
5028 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
5029 (nbsd_nat_target::post_startup_inferior)
5030 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
5031 (nbsd_add_threads): Switch local code to common gdb/nat functions.
5032 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
5033 * (nbsd_thread_lister): Remove.
5034
f404573e
KR
50352020-09-10 Kamil Rytarowski <n54@gmx.com>
5036
5037 * fork-inferior.c (startup_inferior): Avoid double free.
5038
1ccb2c17
KR
50392020-09-10 Kamil Rytarowski <n54@gmx.com>
5040
5041 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
5042 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
5043
feedfcc7
KR
50442020-09-10 Kamil Rytarowski <n54@gmx.com>
5045
5046 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
5047 * netbsd-nat.c: Include <sys/ptrace.h>.
5048 * (netbsd_nat::enable_proc_events): Add.
5049
c489f8c6
KR
50502020-09-10 Kamil Rytarowski <n54@gmx.com>
5051
5052 * netbsd-nat.h: Include "gdbsupport/function-view.h".
5053 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5054 (netbsd_nat::for_each_thread): Add.
5055 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
5056 "gdbsupport/common-debug.h".
5057 * (netbsd_nat::netbsd_thread_lister)
5058 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5059 (netbsd_nat::for_each_thread): Add.
5060
330662f6
KR
50612020-09-10 Kamil Rytarowski <n54@gmx.com>
5062
5063 * netbsd-nat.h: Include <unistd.h>.
5064 * (netbsd_nat::pid_to_exec_file): Add.
5065 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
5066 * (netbsd_nat::pid_to_exec_file) Add.
5067
70b67307
KR
50682020-09-10 Kamil Rytarowski <n54@gmx.com>
5069
5070 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
5071
99cf6da6
KR
50722020-09-10 Kamil Rytarowski <n54@gmx.com>
5073
5074 * netbsd-nat.h: New file.
5075 * netbsd-nat.c: Likewise.
5076
1b788fb6
TT
50772020-09-09 Tom Tromey <tromey@adacore.com>
5078
5079 * ada-lang.c (remove_extra_symbols): Do not increment when
5080 removing an element
5081
03b0a45f
TT
50822020-09-08 Tom Tromey <tromey@adacore.com>
5083
5084 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
5085
3cae4447
TT
50862020-09-08 Tom Tromey <tromey@adacore.com>
5087
5088 PR win32/25302:
5089 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
5090 (gdb_bfd_init_data): New function.
5091 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
5092
7f08fd51
TBA
50932020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5094
5095 * infrun.c (fetch_inferior_event): Use
5096 `switch_to_target_no_thread` to switch the target.
5097
3e6ff933
TT
50982020-09-06 Tom Tromey <tom@tromey.com>
5099
5100 * symfile.h (dwarf2_free_objfile): Don't declare.
5101
e56798df
AKS
51022020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5103
5104 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
5105 to match 16 byte real/complex type generated by Flang compiler.
5106
8f5c6526
TV
51072020-09-03 Tom de Vries <tdevries@suse.de>
5108
5109 PR breakpoint/26546
5110 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
5111 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
5112
c5065df0
SM
51132020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
5114
5115 * maint.c (index_digits): New function.
5116 (struct maint_print_section_data): Remove.
5117 (print_bfd_section_info): Remove print_data parameter, add arg
5118 and index_digits.
5119 (print_objfile_section_info): Likewise.
5120 (print_bfd_section_info_maybe_relocated): Likewise (plus
5121 objfile).
5122 (maintenance_info_sections): Adjust calls.
5123
02c6f3f1
TT
51242020-09-02 Tom Tromey <tromey@adacore.com>
5125
5126 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
5127 for null pointers.
5128 (ada_varobj_adjust_for_child_access): Special-case null pointers.
5129
ef5e5b0b
SM
51302020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
5131
5132 * bcache.h (struct bcache) <insert>: Change type of `added` to
5133 pointer to bool.
5134 * bcache.c (bcache::insert): Likewise.
5135 * gdbtypes.c (check_types_worklist): Adjust.
5136 * psymtab.c (add_psymbol_to_bcache): Adjust.
5137
973695d6
KB
51382020-08-31 Kevin Buettner <kevinb@redhat.com>
5139
5140 * corelow.c (unordered_set): Include.
5141 (class core_target): Add field 'm_core_unavailable_mappings'.
5142 (core_target::build_file_mappings): Print only one warning
5143 per inaccessible file. Add unavailable/broken mappings
5144 to m_core_unavailable_mappings.
5145 (core_target::xfer_partial): Call...
5146 (core_target::xfer_memory_via_mappings): New method.
5147
264fc0e2
SM
51482020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5149
5150 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
5151 type to bool.
5152
2de01bdb
SM
51532020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5154
5155 * dwarf2/read.c (struct field_info): Fix indentation.
5156
f3bd50f1
SM
51572020-08-31 Simon Marchi <simon.marchi@efficios.com>
5158
5159 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
5160 ordering in comment.
5161 * frame.c (frame_id_eq): Fix indentation.
5162
22b9b4b0
SL
51632020-08-31 Scott Linder <scott@scottlinder.com>
5164 Simon Marchi <simon.marchi@efficios.com>
5165
5166 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
5167 inline frame ids in outer frame.
5168
84154d16
SM
51692020-08-31 Simon Marchi <simon.marchi@efficios.com>
5170
5171 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
5172 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
5173 (outer_frame_id): Use FID_STACK_OUTER instead of
5174 FID_STACK_INVALID.
5175 (frame_id_p): Don't check for outer_frame_id.
5176
8efaf6b3
SM
51772020-08-31 Simon Marchi <simon.marchi@efficios.com>
5178
5179 * frame-unwind.c (frame_unwind_got_optimized): Don't set
5180 regnum/frame in value. Call allocate_value_lazy.
5181 * frame.c (frame_unwind_register_value): Use
5182 val_print_not_saved.
5183
fe1fe7ea
SM
51842020-08-31 Simon Marchi <simon.marchi@efficios.com>
5185
5186 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
5187
f7c7700d
PA
51882020-08-29 Pedro Alves <pedro@palves.net>
5189
5190 * progspace.c (print_program_space): Use all_inferiors. Switch to
5191 the inferior before calling target_pid_to_str.
5192
e0814aae
TT
51932020-08-28 Tom Tromey <tom@tromey.com>
5194
5195 * xcoffread.c (xcoff_end_psymtab): Update comment.
5196 * dbxread.c (dbx_end_psymtab): Update comment.
5197
626d2320
TV
51982020-08-28 Tom de Vries <tdevries@suse.de>
5199
5200 PR breakpoint/26544
5201 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
5202 event_location.
5203 (create_breakpoint): Same.
5204 (base_breakpoint_decode_location): Same.
5205 (bkpt_create_sals_from_location): Same.
5206 (bkpt_decode_location): Same.
5207 (bkpt_probe_create_sals_from_location): Same.
5208 (bkpt_probe_decode_location): Same.
5209 (tracepoint_create_sals_from_location): Same.
5210 (tracepoint_decode_location): Same.
5211 (tracepoint_probe_decode_location): Same.
5212 (strace_marker_create_sals_from_location): Same.
5213 (strace_marker_decode_location): Same.
5214 (create_sals_from_location_default): Same.
5215 (decode_location_default): Same.
5216 * breakpoint.h (struct breakpoint_ops): Same.
5217 (create_breakpoint): Same.
5218 * linespec.h (decode_line_full): Same.
5219 * linespec.c (decode_line_full): Same. Throw error if
5220 result.size () == 0.
5221
df631783
PA
52222020-08-27 Pedro Alves <pedro@palves.net>
5223
5224 PR gdb/26524
5225 * breakpoint.c (until_break_fsm) <location_breakpoint,
5226 caller_breakpoint>: Delete fields.
5227 <breakpoints>: New field.
5228 <until_break_fsm>: Adjust to save a breakpoint vector instead of
5229 two individual breakpoints.
5230 (until_break_fsm::should_stop): Loop over breakpoints in the
5231 breakpoint vector.
5232 (until_break_fsm::clean_up): Adjust to clear the breakpoints
5233 vector.
5234 (until_break_command): Handle location expanding into multiple
5235 sals.
5236
b2b38aa4
PA
52372020-08-27 Pedro Alves <pedro@palves.net>
5238
5239 PR gdb/26523
5240 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
5241 bp_until breakpoints user-specified locations. Update intro
5242 comment.
5243
b886559f
SM
52442020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
5245
5246 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
5247 gdb_bfd_sections): New.
5248 * maint.c (print_bfd_section_info): Change param type to
5249 maint_print_section_data.
5250 (print_objfile_section_info): Likewise.
5251 (print_bfd_section_info_maybe_relocated): Likewise.
5252 (maintenance_info_sections): Use gdb_bfd_sections.
5253
4c6e63bf
SV
52542020-08-25 Shahab Vahedi <shahab@synopsys.com>
5255
5256 * MAINTAINERS: Add ARC target and maintainer.
5257
8d7f0635
AK
52582020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
5259
5260 * configure.tgt: ARC support for GNU/Linux.
5261 * Makefile.in (ALL_TARGET_OBJS): Likewise.
5262 * arc-linux-tdep.c: New file.
5263 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
5264 * arc-tdep.c (arc_write_pc): Use it.
5265
fdd8731b
SV
52662020-08-25 Shahab Vahedi <shahab@synopsys.com>
5267
5268 * arc-tdep.c (arc_check_for_hardware_loop): New.
5269 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
5270
22459524
SV
52712020-08-25 Shahab Vahedi <shahab@synopsys.com>
5272
5273 * arc-tdep.h: Include "gdbarch.h".
5274
995d3a19
SV
52752020-08-25 Shahab Vahedi <shahab@synopsys.com>
5276
5277 * arch/arc.h
5278 (arc_gdbarch_features): New class to stir the selection of target XML.
5279 (arc_create_target_description): Use FEATURES to choose XML target.
5280 (arc_lookup_target_description): Use arc_create_target_description
5281 to create _new_ target descriptions or return the already created
5282 ones if the FEATURES is the same.
5283 * arch/arc.c: Implementation of prototypes described above.
5284 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
5285 (arc_gdbarch_features_init): Initialize the FEATURES struct.
5286 * arc-tdep.c (*_feature_name): Make feature names consistent.
5287 (arc_register_feature): A new struct to hold information about
5288 registers of a particular target/feature.
5289 (arc_check_tdesc_feature): Check if XML provides registers in
5290 compliance with ARC_REGISTER_FEATURE structs.
5291 (arc_update_acc_reg_names): Add aliases for r58 and r59.
5292 (determine_*_reg_feature_set): Which feature name to look for.
5293 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
5294 (mach_type_to_arc_isa): Convert from a set of binutils machine types
5295 to expected ISA enums to be used in arc_gdbarch_features structs.
5296 * features/Makefile (FEATURE_XMLFILES): Add new files.
5297 * gdb/features/arc/v1-aux.c: New file.
5298 * gdb/features/arc/v1-aux.xml: Likewise.
5299 * gdb/features/arc/v1-core.c: Likewise.
5300 * gdb/features/arc/v1-core.xml: Likewise.
5301 * gdb/features/arc/v2-aux.c: Likewise.
5302 * gdb/features/arc/v2-aux.xml: Likewise.
5303 * gdb/features/arc/v2-core.c: Likewise.
5304 * gdb/features/arc/v2-core.xml: Likewise.
5305 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
5306
3945d2d7
GM
53072020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
5308 Andrew Burgess <andrew.burgess@embecosm.com>
5309
5310 PR m2/26372
fc5d6901 5311 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
5312 an assert. Remove single element array indexing pattern as the
5313 MULTI_SUBSCRIPT support will handle this case too.
5314
2677f2d3
SM
53152020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
5316
5317 * value.h (valprint_check_validity): Move declaration from
5318 here...
5319 * valprint.h (valprint_check_validity): ... to here.
5320
c426fddb
SM
53212020-08-24 Simon Marchi <simon.marchi@efficios.com>
5322
5323 * debug.h: New file.
5324 * debug.c (debug_prefixed_vprintf): New function.
5325 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
5326 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
5327
1eb8556f
SM
53282020-08-24 Simon Marchi <simon.marchi@efficios.com>
5329
5330 * infrun.h (infrun_debug_printf_1): New function declaration.
5331 (infrun_debug_printf): New macro.
5332 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
5333 throughout.
5334 (infrun_debug_printf): New function.
5335 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
5336 (handle_jit_event): Likewise.
5337
b8fff44e
MW
53382020-08-21 Mark Wielaard <mark@klomp.org>
5339
5340 * ada-lex.l: Extend register warnings diagnostics comment for g++.
5341
d19c3068
SM
53422020-08-22 Simon Marchi <simon.marchi@efficios.com>
5343
5344 * frame.c (enum class frame_id_status): New.
5345 (struct frame_info) <this_id::p>: Change type to frame_id_status.
5346 (fprintf_frame): Update.
5347 (compute_frame_id): Set frame id status to "computing" on entry.
5348 Set it back to "not_computed" on failure and to "computed" on
5349 success.
5350 (get_frame_id): Assert the frame id is not being computed.
5351 (create_sentinel_frame): Use frame_id_status::COMPUTED.
5352 (create_new_frame): Likewise.
5353 (frame_cleanup_after_sniffer): Update assert.
5354
b70e516e
SM
53552020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5356
5357 * regcache.c (pid_ptid_regcache_map): New type.
5358 (target_ptid_regcache_map): Remove.
5359 (target_pid_ptid_regcache_map): New type.
5360 (regcaches): Change type to target_pid_ptid_regcache_map.
5361 (get_thread_arch_aspace_regcache): Update.
5362 (regcache_thread_ptid_changed): Update, handle pid-like ptid
5363 case.
5364 (regcaches_size): Update.
5365 (regcache_count): Update.
5366 (registers_changed_ptid_target_pid_test): New.
5367 (_initialize_regcache): Register new test.
5368
cdd9148a
SM
53692020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5370
5371 * regcache.c (regcache_count): New.
5372 (struct regcache_test_data): New.
5373 (regcache_test_data_up): New.
5374 (populate_regcaches_for_test): New.
5375 (regcaches_test): Remove.
5376 (get_thread_arch_aspace_regcache_test): New.
5377 (registers_changed_ptid_all_test): New.
5378 (registers_changed_ptid_target_test): New.
5379 (registers_changed_ptid_target_ptid_test): New.
5380 (regcache_thread_ptid_changed): Remove regcache_count lambda.
5381 (_initialize_regcache): Register new tests.
5382
dd125343
SM
53832020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5384
5385 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
5386 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
5387 gdbarch and aspace parameter. Use current inferior's aspace.
5388 Validate regcache's arch value.
5389 (regcaches_test): Update.
5390
3ee93972
SM
53912020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5392
5393 * regcache.c (regcaches_test): Call registers_changed.
5394
33bf4c5c
TBA
53952020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5396
5397 * infrun.c (process_event_stop_test): Fix typo "breapoint".
5398
c2fd7fae
AKS
53992020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5400
5401 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
5402 to find the end of prologue for flang compiled binaries.
5403 * arm-tdep.c (arm_skip_prologue): Likewise.
5404 * i386-tdep.c (i386_skip_prologue): Likewise.
5405 * producer.c (producer_is_llvm): New function.
5406 (producer_parsing_tests): Added new tests for clang/flang.
5407 * producer.h (producer_is_llvm): New declaration.
5408
9327494e
SM
54092020-08-18 Simon Marchi <simon.marchi@efficios.com>
5410
5411 * linux-nat.c (linux_nat_debug_printf): New function.
5412 (linux_nat_debug_printf_1): New macro. Use throughout the file.
5413
d138725a
AM
54142020-08-18 Aaron Merey <amerey@redhat.com>
5415
5416 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
5417 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
5418 (CLIBS): Add DEBUGINFOD_LIBS.
5419
f9b11e6b
ST
54202020-08-17 Sergei Trofimovich <siarheit@google.com>
5421
5422 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
5423 'gdbarch_num_regs'.
5424
3ae7ab99
TT
54252020-08-17 Tom Tromey <tromey@adacore.com>
5426
5427 * ada-varobj.c (ada_varobj_decode_var): Handle case where
5428 ada_get_decoded_value returns NULL.
5429
b017825f
TT
54302020-08-17 Tom Tromey <tromey@adacore.com>
5431
5432 * python/py-inferior.c (infpy_search_memory): Use
5433 gdb_py_object_from_ulongest.
5434 * python/py-infevents.c (create_inferior_call_event_object)
5435 (create_memory_changed_event_object): Use
5436 gdb_py_object_from_ulongest.
5437 * python/py-linetable.c (ltpy_entry_get_pc): Use
5438 gdb_py_object_from_ulongest.
5439
7635cf79
SM
54402020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5441
5442 * loc.c (class symbol_needs_eval_context): Fix indentation.
5443
f54be24b
SM
54442020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5445
5446 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
5447 bool.
5448
53d5a2a5
TV
54492020-08-17 Tom de Vries <tdevries@suse.de>
5450
5451 PR gdb/26393
5452 * gdbtypes.c (dump_dynamic_prop): New function.
5453 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
5454
547ce8f0
TV
54552020-08-15 Tom de Vries <tdevries@suse.de>
5456
5457 PR backtrace/26390
5458 * stack.c (print_frame_args): Temporarily set the selected
5459 frame to FRAME while printing the frame's arguments.
5460
6ea815e7
PFC
54612020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5462
5463 PR breakpoints/26385
5464 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
5465 Always clear watchpoint with PTRACE_SET_DEBUGREG.
5466
6e562fa3
PFC
54672020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5468
5469 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
5470 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
5471 and >= to check return value instead of == -1 and != -1.
5472
d369b608
SM
54732020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
5474
5475 * utils.h (class gdb_argv) <as_array_view>: New method.
5476 * utils.c (gdb_argv_as_array_view_test): New.
5477 (_initialize_utils): Register selftest.
5478 * maint.c (maintenance_selftest): Use the new method.
5479
b31488a3
KR
54802020-08-13 Kamil Rytarowski <n54@gmx.com>
5481
5482 * target.h (supports_dumpcore, dumpcore): New
5483 function declarations.
5484 * target.c (supports_dumpcore, dumpcore): New
5485 functions.
5486 * target-delegates.c: Rebuild.
5487 * gcore.c (gcore_command): Use target_supports_dumpcore ()
5488 and target_dumpcore ().
5489
002a3166
AM
54902020-08-13 Aaron Merey <amerey@redhat.com>
5491
5492 * debuginfod-support.c: Replace global variables with user_data.
5493
ece5bc8a
SM
54942020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
5495
5496 * maint.c (maintenance_selftest): Split args and pass array_view
5497 to run_tests.
5498
6d8a0a5e
LM
54992020-08-12 Luis Machado <luis.machado@linaro.org>
5500
5501 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
5502 type's length.
5503 Use %s and pulongest to print the length.
5504
7cf663a9
PA
55052020-08-12 Pedro Alves <palves@redhat.com>
5506
5507 * NEWS: Move "Multi-target debugging support" item to the
5508 "Changes since GDB 9" section.
5509
27c7b875
PA
55102020-08-12 Pedro Alves <palves@redhat.com>
5511
5512 PR gdb/26336
5513 * progspace.c (program_space::remove_objfile): Invalidate the
5514 frame cache.
5515
1796a2a1
TV
55162020-08-11 Tom de Vries <tdevries@suse.de>
5517
5518 * MAINTAINERS: Mark ms1 as deleted.
5519
f8e3fe0d
LM
55202020-08-10 Luis Machado <luis.machado@linaro.org>
5521
5522 PR gdb/26310
5523
5524 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
5525 act accordingly.
5526 (aarch64_analyze_prologue_test): Add more unit tests to exercise
5527 movz/str/stur/stp skipping behavior.
5528
cc308722
LM
55292020-08-10 Luis Machado <luis.machado@linaro.org>
5530
5531 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
5532 struct user_sve_header instead of struct sve_context.
5533
041d9819
SM
55342020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
5535
5536 * read.h (dwarf2_fetch_die_loc_sect_off,
5537 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
5538 `void *` parameter with function_view.
5539 * read.c (dwarf2_fetch_die_loc_sect_off,
5540 dwarf2_fetch_die_loc_cu_off): Likewise.
5541 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
5542 (per_cu_dwarf_call): Adjust.
5543 (get_frame_address_in_block_wrapper): Remove.
5544 (indirect_synthetic_pointer): Adjust.
5545 (get_ax_pc): Remove.
5546 (dwarf2_compile_expr_to_ax): Adjust.
5547
38f8aa06
TV
55482020-08-08 Tom de Vries <tdevries@suse.de>
5549
5550 PR build/26344
5551 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
5552 constructor.
5553 * regcache.c (get_thread_arch_aspace_regcache): Same.
5554
a52b3ae2
TT
55552020-08-07 Tom Tromey <tromey@adacore.com>
5556
5557 * ravenscar-thread.c
5558 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
5559 New method.
5560 (ravenscar_thread_target::wait): Check
5561 runtime_initialized.
5562 (ravenscar_thread_target::prepare_to_store)
5563 (ravenscar_thread_target::stopped_by_sw_breakpoint)
5564 (ravenscar_thread_target::stopped_by_hw_breakpoint)
5565 (ravenscar_thread_target::stopped_by_watchpoint)
5566 (ravenscar_thread_target::stopped_data_address)
5567 (ravenscar_thread_target::core_of_thread): Use
5568 scoped_restore_current_thread and
5569 set_base_thread_from_ravenscar_task.
5570
0e29517d
TT
55712020-08-07 Tom Tromey <tromey@adacore.com>
5572
5573 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
5574
592f9bd7
TT
55752020-08-07 Tom Tromey <tromey@adacore.com>
5576
5577 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
5578 update_inferior_ptid before update_thread_list.
5579 (temporarily_change_regcache_ptid): New class.
5580 (ravenscar_thread_target::fetch_registers)
5581 (ravenscar_thread_target::store_registers)
5582 (ravenscar_thread_target::prepare_to_store): Use base thread when
5583 forwarding operation.
5584
39e2018a
TT
55852020-08-07 Tom Tromey <tromey@adacore.com>
5586
5587 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
5588 "is_pid" case.
5589
2080266b
TT
55902020-08-07 Tom Tromey <tromey@adacore.com>
5591
5592 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
5593 New methods.
5594 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
5595 first.
5596 (ravenscar_thread_target::add_thread): Rename from
5597 ravenscar_add_thread.
5598 (ravenscar_thread_target::update_thread_list): Use a lambda.
5599 (ravenscar_thread_target::xfer_partial): New method.
5600
78c02f21
TT
56012020-08-07 Tom Tromey <tromey@adacore.com>
5602
5603 * ada-lang.h (ada_task_list_iterator_ftype): Now a
5604 gdb::function_view.
5605 (iterate_over_live_ada_tasks): Change type of argument.
5606 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
5607 of argument.
5608
d5d833af
TT
56092020-08-07 Tom Tromey <tromey@adacore.com>
5610
5611 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
5612 Remove.
5613 (ravenscar_thread_target::extra_thread_info): Remove.
5614 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
5615 defer to target beneath for non-Ravenscar threads.
5616
a8ac85bb
TT
56172020-08-07 Tom Tromey <tromey@adacore.com>
5618
5619 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
5620 get_base_thread_from_ravenscar_task>: Now methods.
5621 <m_cpu_map>: New member.
5622 (ravenscar_thread_target::get_thread_base_cpu): Rename from
5623 ravenscar_get_thread_base_cpu. Check m_cpu_map.
5624 (ravenscar_thread_target::task_is_currently_active): Update.
5625 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
5626 Now a method.
5627 (ravenscar_thread_target::add_active_thread): Put initial thread
5628 into the m_cpu_map.
5629
550ab58d
TT
56302020-08-07 Tom Tromey <tromey@adacore.com>
5631
5632 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
5633 event_ptid.
5634
e9546579
TT
56352020-08-07 Tom Tromey <tromey@adacore.com>
5636
5637 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
5638 runtime_initialized.
5639
3d4470e5
TT
56402020-08-07 Tom Tromey <tromey@adacore.com>
5641
5642 * ravenscar-thread.c (ravenscar_thread_target): Don't call
5643 add_active_thread.
5644 (ravenscar_thread_target::add_active_thread): Now public.
5645 (ravenscar_inferior_created): Call add_active_thread after pushing
5646 the target.
5647
888bdb2b
SM
56482020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
5649
5650 * regcache.c (ptid_regcache_map): New type.
5651 (target_ptid_regcache_map): New type.
5652 (regcaches): Change type to target_ptid_regcache_map.
5653 (get_thread_arch_aspace_regcache): Update to regcaches' new
5654 type.
5655 (regcache_thread_ptid_changed): Likewise.
5656 (registers_changed_ptid): Likewise.
5657 (regcaches_size): Likewise.
5658 (regcaches_test): Update.
5659 (regcache_thread_ptid_changed): Update.
5660 * regcache.h (regcache_up): New type.
5661 * gdbsupport/ptid.h (hash_ptid): New struct.
5662
b161a60d
SM
56632020-08-07 Simon Marchi <simon.marchi@efficios.com>
5664
5665 * observable.h (thread_ptid_changed): Add parameter
5666 `process_stratum_target *`.
5667 * infrun.c (infrun_thread_ptid_changed): Add parameter
5668 `process_stratum_target *` and use it.
5669 (selftests): New namespace.
5670 (infrun_thread_ptid_changed): New function.
5671 (_initialize_infrun): Register selftest.
5672 * regcache.c (regcache_thread_ptid_changed): Add parameter
5673 `process_stratum_target *` and use it.
5674 (regcache_thread_ptid_changed): New function.
5675 (_initialize_regcache): Register selftest.
5676 * thread.c (thread_change_ptid): Pass target to
5677 thread_ptid_changed observable.
5678
d2854d8d
CT
56792020-08-06 Caroline Tice <cmtice@google.com>
5680
fe4c3d43
SM
5681 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
5682 (struct dwp_sections): Update field comments. Add loclists and
5683 rnglists fields.
5684 (struct virtual_v2_dwo_sections): Rename struct to
5685 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
5686 size & offset fields for loclists and rnglists.
5687 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
5688 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
5689 skipping dummy type units.
5690 (create_dwp_hash_table): Update the large comment above the function to
5691 discuss Version 5 DWP files as well, with references. Update all the
5692 version checks in the function to check for version 5 as well. Add new
5693 section at the end to create dwp hash table for version 5.
5694 (create_dwp_v2_section): Rename function to
5695 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
5696 Add V5 to error message text.
5697 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
5698 into calls to create_dwp_v2_or_v5_section.
5699 (create_dwo_unit_in_dwp_v5): New function.
5700 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
5701 check for version2; add else clause to handle version 5.
5702 (open_and_init_dwo_file): Add code to check dwarf version & only call
5703 create_debug_types_hash_table (with sections.types) if version is not 5;
5704 else call create_debug_type_hash_table, with sections.info.
5705 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
5706 version 5.
5707 (dwarf2_locate_v5_dwp_sections): New function.
5708 (open_and_init_dwp_file): Add else-if clause for version 5 to call
5709 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 5710
159ed7d9
SM
57112020-08-06 Simon Marchi <simon.marchi@efficios.com>
5712
5713 * regcache.h (class regcache): Remove friend
5714 registers_changed_ptid.
5715 <regcache_thread_ptid_changed>: Remove.
5716 <regcaches>: Remove.
5717 * regcache.c (regcache::regcaches): Rename to...
5718 (regcaches): ... this. Make static.
5719 (get_thread_arch_aspace_regcache): Update.
5720 (regcache::regcache_thread_ptid_changed): Rename to...
5721 (regcache_thread_ptid_changed): ... this. Update.
5722 (class regcache_access): Remove.
5723 (regcaches_test): Update.
5724 (_initialize_regcache): Update.
5725 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
5726 <forward_list>.
5727
174981ae
SM
57282020-08-06 Simon Marchi <simon.marchi@efficios.com>
5729
5730 * regcache.h (class regcache) <current_regcache>: Rename to...
5731 <regcaches>: ... this. Move doc here.
5732 * regcache.c (regcache::current_regcache) Rename to...
5733 (regcache::regcaches): ... this. Move doc to header.
5734 (get_thread_arch_aspace_regcache): Update.
5735 (regcache::regcache_thread_ptid_changed): Update.
5736 (registers_changed_ptid): Update.
5737 (class regcache_access) <current_regcache_size>: Rename to...
5738 <regcaches_size>: ... this.
5739 (current_regcache_test): Rename to...
5740 (regcaches_test): ... this.
5741 (_initialize_regcache): Update.
5742
ed908db6
VC
57432020-08-06 Victor Collod <vcollod@nvidia.com>
5744
5745 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
5746
b5582ab7
KB
57472020-08-05 Kevin Buettner <kevinb@redhat.com>
5748
5749 * corelow.c (core_target::build_file_mappings): Don't output
5750 null pathname in warning.
5751
ea946b86
SM
57522020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
5753
5754 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
5755 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
5756 gdb.dwarf2/dw2-single-line-discriminators.exp,
5757 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
5758
57d02173
TT
57592020-08-05 Tom Tromey <tromey@adacore.com>
5760
5761 PR rust/26197:
5762 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
5763 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
5764 Fix off-by-one and type size errors in ordinary case.
5765
5555c86d
TV
57662020-08-05 Tom de Vries <tdevries@suse.de>
5767
5768 * gdbtypes.c (type_not_allocated, type_not_associated): Use
5769 "prop->const_val () == 0" instead of "prop->const_val () != 0".
5770
97916bfe
SM
57712020-08-04 Simon Marchi <simon.marchi@efficios.com>
5772
5773 * frame.h (frame_id_p): Return bool.
5774 (frame_id_artificial_p): Return bool.
5775 (frame_id_eq): Return bool.
5776 (has_stack_frames): Return bool.
5777 (get_selected_frame): Fix typo in comment.
5778 (get_frame_pc_if_available): Return bool.
5779 (get_frame_address_in_block_if_available): Return bool.
5780 (get_frame_func_if_available): Return bool.
5781 (read_frame_register_unsigned): Return bool.
5782 (get_frame_register_bytes): Return bool.
5783 (safe_frame_unwind_memory): Return bool.
5784 (deprecated_frame_register_read): Return bool.
5785 (frame_unwinder_is): Return bool.
5786 * frame.c (struct frame_info) <prev_arch::p>: Change type to
5787 bool.
5788 <this_id::p>: Likewise.
5789 <prev_p>: Likewise.
5790 (frame_stash_add): Return bool.
5791 (get_frame_id): Use bool.
5792 (frame_id_build_special) Use bool.
5793 (frame_id_build_unavailable_stack): Use bool.
5794 (frame_id_build): Use bool.
5795 (frame_id_p): Return bool, use true/false instead of 1/0.
5796 (frame_id_artificial_p): Likewise.
5797 (frame_id_eq): Likewise.
5798 (frame_id_inner): Likewise.
5799 (get_frame_func_if_available): Likewise.
5800 (read_frame_register_unsigned): Likewise.
5801 (deprecated_frame_register_read): Likewise.
5802 (get_frame_register_bytes): Likewise.
5803 (has_stack_frames): Likewise.
5804 (inside_main_func): Likewise.
5805 (inside_entry_func): Likewise.
5806 (get_frame_pc_if_available): Likewise.
5807 (get_frame_address_in_block_if_available): Likewise.
5808 (frame_unwinder_is): Likewise.
5809 (safe_frame_unwind_memory): Likewise.
5810 (frame_unwind_arch): Likewise.
5811
fedfee88
SM
58122020-08-04 Simon Marchi <simon.marchi@efficios.com>
5813
5814 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
5815 type to cached_copy_status.
5816 (fprintf_frame): Adjust.
5817 (get_frame_func_if_available): Adjust.
5818 (frame_cleanup_after_sniffer): Adjust.
5819
6cfa9b59
MW
58202020-08-04 Mark Wielaard <mark@klomp.org>
5821
5822 * MAINTAINERS (Write After Approval): Update email address.
5823
66d6346b
SM
58242020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5825
5826 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
5827 dynamic_prop::const_val.
5828
8a6d5e35
SM
58292020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5830
5831 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
5832 dynamic_prop::kind.
5833
51d6067d
SM
58342020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5835
5836 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
5837
b26e2ae7
JM
58382020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
5839
5840 * configure.tgt: Set gdb_sim for bpf-*-* targets.
5841
39791af2
JM
58422020-08-04 Weimin Pan <weimin.pan@oracle.com>
5843 Jose E. Marchesi <jose.marchesi@oracle.com>
5844
5845 * configure.tgt: Add entry for bpf-*-*.
5846 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
5847 (ALLDEPFILES): Add bpf-tdep.c.
5848 * bpf-tdep.c: New file.
5849 * MAINTAINERS: Add bpf target and maintainer.
5850 * NEWS: Mention the support for the new target.
5851
521894aa
TV
58522020-08-04 Tom de Vries <tdevries@suse.de>
5853
5854 PR symtab/23270
5855 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
5856 Error.
5857
5d6356e9
JB
58582020-08-03 John Baldwin <jhb@FreeBSD.org>
5859
5860 * syscalls/freebsd.xml: Regenerate.
5861
0cf82b81
JB
58622020-08-03 John Baldwin <jhb@FreeBSD.org>
5863
5864 * syscalls/update-freebsd.sh: Fix usage and year range.
5865
8f34b746
TV
58662020-08-03 Tom de Vries <tdevries@suse.de>
5867
5868 PR symtab/26333
5869 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
5870 DW_LNE_lo_user/DW_LNE_hi_user range.
5871
5e500d33
SM
58722020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
5873
5874 PR ada/26318
5875 * ada-lang.c (ada_modulus): Return 0 if property is not of const
5876 kind.
5877
78319c15
TBA
58782020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5879
5880 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
5881
4c55e970
TBA
58822020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5883
5884 * breakpoint.c (set_breakpoint_condition): Update the condition
5885 expressions after checking that the input condition string parses
5886 successfully and does not contain junk at the end.
5887
1e620590
TBA
58882020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5889
5890 * breakpoint.c (set_breakpoint_condition): Update the
5891 condition string after parsing the new condition successfully.
5892
c8693053
RO
58932020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5894
5895 * proc-api.c (_STRUCTURED_PROC): Don't define.
5896 * proc-events.c: Likewise.
5897 * proc-flags.c: Likewise.
5898 * proc-why.c: Likewise.
5899 * procfs.c: Likewise.
5900
5901 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
5902 * configure, config.in: Regenerate.
5903
5a99adb8
TV
59042020-07-30 Tom de Vries <tdevries@suse.de>
5905
5906 PR build/26320
5907 * ui-style.h (struct ui_file_style::color): Wrap m_value and
5908 m_red/m_green/m_blue in a union.
5909
8ba83e91
TV
59102020-07-29 Tom de Vries <tdevries@suse.de>
5911
5912 PR tdep/26280
5913 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
5914
f75a0693
AB
59152020-07-28 Tom Tromey <tromey@adacore.com>
5916
5917 PR symtab/26270:
5918 * symtab.h (find_pc_partial_function_sym): Declare.
5919 * cli/cli-cmds.c (disassemble_command): Use
5920 find_pc_partial_function_sym. Check asm_demangle.
5921 * blockframe.c (cache_pc_function_sym): New global.
5922 (cache_pc_function_name): Remove.
5923 (clear_pc_function_cache): Update.
5924 (find_pc_partial_function_sym): New function, from
5925 find_pc_partial_function.
5926 (find_pc_partial_function): Rewrite using
5927 find_pc_partial_function_sym.
5928
16f3242c
TT
59292020-07-28 Tom Tromey <tromey@adacore.com>
5930
5931 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
5932 help. Add usage.
5933
4888741a
TT
59342020-07-28 Tom Tromey <tromey@adacore.com>
5935
5936 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
5937 <DW_OP_GNU_variable_value>: Cast to address type.
5938
4d46f402
KR
59392020-07-28 Kamil Rytarowski <n54@gmx.com>
5940
5941 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
5942 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
5943 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
5944 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
5945 (nbsd_get_siginfo_type): New.
5946 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
5947 (_initialize_nbsd_tdep): New.
5948
d70f978b
L
59492020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5950
5951 PR binutils/26301
5952 * configure: Regenerated.
5953
377170fa
L
59542020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5955
5956 PR binutils/26301
5957 * configure: Regenerated.
5958
43d5901d
AB
59592020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5960
5961 * python/py-frame.c: Remove 'user-regs.h' include.
5962 (frapy_read_register): Rewrite to make use of
5963 gdbpy_parse_register_id.
5964 * python/py-registers.c (gdbpy_parse_register_id): New function,
5965 moved here from python/py-unwind.c. Updated the return type, and
5966 also accepts register descriptor objects.
5967 * python/py-unwind.c: Remove 'user-regs.h' include.
5968 (pyuw_parse_register_id): Moved to python/py-registers.c.
5969 (unwind_infopy_add_saved_register): Update to use
5970 gdbpy_parse_register_id.
5971 (pending_framepy_read_register): Likewise.
5972 * python/python-internal.h (gdbpy_parse_register_id): Declare.
5973
14fa8fb3
AB
59742020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5975
5976 * python/py-registers.c: Add 'user-regs.h' include.
5977 (register_descriptor_iter_find): New function.
5978 (register_descriptor_iterator_object_methods): New static global
5979 methods array.
5980 (register_descriptor_iterator_object_type): Add pointer to methods
5981 array.
5982
ddce1758
JB
59832020-07-27 John Baldwin <jhb@FreeBSD.org>
5984
5985 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
5986 for all architectures on FreeBSD 11.3 and later.
5987
a4089f52
TT
59882020-07-27 Tom Tromey <tromey@adacore.com>
5989
5990 * gcore.h (load_corefile): Don't declare.
5991
95420d30
TV
59922020-07-27 Tom de Vries <tdevries@suse.de>
5993
5994 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
5995 * config.in: Regenerate.
5996 * configure: Regenerate.
5997
05a6b8c2
EZ
59982020-07-26 Eli Zaretskii <eliz@gnu.org>
5999
6000 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
6001 ws2tcpip.h. When checking whether socklen_t type is defined, use
6002 ws2tcpip.h if it is available and sys/socket.h isn't.
6003 * configure: Regenerate.
6004 * config.in: Regenerate.
6005
e79eb02f
AB
60062020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
6007
6008 PR fortran/23051
6009 PR fortran/26139
6010 * valops.c (value_ind): Pass address to
6011 readjust_indirect_value_type.
6012 * value.c (readjust_indirect_value_type): Make parameter
6013 non-const, and add extra address parameter. Resolve original type
6014 before using it.
6015 * value.h (readjust_indirect_value_type): Update function
6016 signature and comment.
6017
876518dd
TV
60182020-07-25 Tom de Vries <tdevries@suse.de>
6019
6020 PR symtab/26243
6021 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
6022 entries.
6023
f6720b1c
AM
60242020-07-24 Aaron Merey <amerey@redhat.com>
6025
6026 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
6027 * configure: Rebuild.
6028
513487e1
KB
60292020-07-23 Kevin Buettner <kevinb@redhat.com>
6030
6031 PR corefiles/26294
6032 * corelow.c (_initialize_corelow): Add period to help text
6033 for "maintenance print core-file-backed-mappings".
6034
e7bc9db8
PA
60352020-07-23 Pedro Alves <pedro@palves.net>
6036
6037 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
6038 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
6039 meanwhile.
6040 * frame.c (frame_cache_generation, get_frame_cache_generation):
6041 New.
6042 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
6043 (get_prev_frame_if_no_cycle): On exception, don't touch
6044 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
6045 * frame.h (get_frame_cache_generation): Declare.
6046
90fcc466
TV
60472020-07-23 Tom de Vries <tdevries@suse.de>
6048
6049 PR tui/26282
6050 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
6051 New default constructor.
6052
78344df7
AB
60532020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
6054
6055 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
6056 exclude non-statement entries.
6057
b089853a
KB
60582020-07-22 Kevin Buettner <kevinb@redhat.com>
6059
6060 * NEWS (New commands): Mention new command
6061 "maintenance print core-file-backed-mappings".
6062
09c2f5d4
KB
60632020-07-22 Kevin Buettner <kevinb@redhat.com>
6064
6065 * corelow.c (gdbcmd.h): Include.
6066 (core_target::info_proc_mappings): New method.
6067 (get_current_core_target): New function.
6068 (maintenance_print_core_file_backed_mappings): New function.
6069 (_initialize_corelow): Add core-file-backed-mappings to
6070 "maint print" commands.
6071
9c5ec5c2 60722020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 6073
9c5ec5c2
KB
6074 * linux-tdep.c (dump_note_entry_p): New function.
6075 (linux_dump_mapping_p_ftype): New typedef.
6076 (linux_find_memory_regions_full): Add new parameter,
6077 should_dump_mapping_p.
6078 (linux_find_memory_regions): Adjust call to
6079 linux_find_memory_regions_full.
6080 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
6081 call to linux_find_memory_regions_full.
6082
db082f59
KB
60832020-07-22 Kevin Buettner <kevinb@redhat.com>
6084
6085 * corelow.c (solist.h, unordered_map): Include.
6086 (class core_target): Add field m_core_file_mappings and
6087 method build_file_mappings.
6088 (core_target::core_target): Call build_file_mappings.
6089 (core_target::~core_target): Free memory associated with
6090 m_core_file_mappings.
6091 (core_target::build_file_mappings): New method.
6092 (core_target::xfer_partial): Use m_core_file_mappings
6093 for memory transfers.
6094 * linux-tdep.c (linux_read_core_file_mappings): New
6095 function.
6096 (linux_core_info_proc_mappings): Rewrite to use
6097 linux_read_core_file_mappings.
6098 (linux_init_abi): Register linux_read_core_file_mappings.
6099
7e183d27
KB
61002020-07-22 Kevin Buettner <kevinb@redhat.com>
6101
6102 * arch-utils.c (default_read_core_file_mappings): New function.
6103 * arch-utils.c (default_read_core_file_mappings): Declare.
6104 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
6105 * gdbarch.h, gdbarch.c: Regenerate.
6106
2735d421
KB
61072020-07-22 Kevin Buettner <kevinb@redhat.com>
6108
6109 PR corefiles/25631
6110 * corelow.c (core_target:xfer_partial): Revise
6111 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
6112 case after first checking the stratum beneath the core
6113 target.
6114 (has_all_memory): Return true.
6115 * target.c (raw_memory_xfer_partial): Revise comment
6116 regarding use of has_all_memory.
6117
e56cb451
KB
61182020-07-22 Kevin Buettner <kevinb@redhat.com>
6119
6120 * exec.h (section_table_xfer_memory): Revise declaration,
6121 replacing section name parameter with an optional callback
6122 predicate.
6123 * exec.c (section_table_xfer_memory): Likewise.
6124 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
6125 of section_table_xfer_memory.
6126
32fa152e
TT
61272020-07-22 Tom Tromey <tromey@adacore.com>
6128
6129 * mi/mi-cmd-stack.c (list_args_or_locals): Use
6130 lookup_symbol_search_name.
6131
a67a1c41
AB
61322020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6133
6134 * python/py-registers.c (gdbpy_register_object_data_init): Remove
6135 redundant local variable.
6136 (gdbpy_get_register_descriptor): Extract descriptor vector as a
6137 reference, not pointer, update code accordingly.
6138
a7b4ff4f
SM
61392020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6140 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6141
6142 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
6143 * jit.c (jit_breakpoint_re_set_internal): Use the
6144 `skip_jit_symbol_lookup` field.
6145
2340e834
SM
61462020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6147 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6148
6149 * jit.c (jit_read_descriptor): Define the descriptor address once,
6150 use twice.
6151 (jit_breakpoint_deleted): Move the declaration of the loop variable
6152 `iter` into the loop header.
6153 (jit_breakpoint_re_set_internal): Move the declaration of the local
6154 variable `objf_data` to the first point of definition.
6155 (jit_event_handler): Move the declaration of local variables
6156 `code_entry`, `entry_addr`, and `objf` to their first point of use.
6157 Rename `objf` to `jited`.
6158
c1072906
SM
61592020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6160
6161 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
6162 Remove.
6163 * jit.c (get_jiter_objfile_data): Update.
6164
c8474dc3
TBA
61652020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6166 Simon Marchi <simon.marchi@polymtl.ca>
6167
6168 * jit.c (struct jit_program_space_data): Remove.
6169 (jit_program_space_key): Remove.
6170 (jiter_objfile_data::~jiter_objfile_data): Remove program space
6171 stuff.
6172 (get_jit_program_space_data): Remove.
6173 (jit_breakpoint_deleted): Iterate on all of the program space's
6174 objfiles.
6175 (jit_inferior_init): Likewise.
6176 (jit_breakpoint_re_set_internal): Likewise. Also change return
6177 type to void.
6178 (jit_breakpoint_re_set): Pass current_program_space to
6179 jit_breakpoint_re_set_internal.
6180
77208eb7
SM
61812020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6182
6183 * jit.h (struct jiter_objfile_data) <cached_code_address,
6184 jit_breakpoint>: Move to here from ...
6185 * jit.c (jit_program_space_data): ... here.
6186 (jiter_objfile_data::~jiter_objfile_data): Update.
6187 (jit_breakpoint_deleted): Update.
6188 (jit_breakpoint_re_set_internal): Update.
6189
8c1c720f
SM
61902020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6191
6192 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
6193 checks.
6194 (jit_read_descriptor): Remove NULL check.
6195 (jit_event_handler): Add an assertion.
6196
0e74a041
SM
61972020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6198
6199 * jit.h (struct jit_objfile_data): Split into...
6200 (struct jiter_objfile_data): ... this ...
6201 (struct jited_objfile_data): ... and this.
6202 * objfiles.h (struct objfile) <jit_data>: Remove.
6203 <jiter_data, jited_data>: New fields.
6204 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
6205 (jiter_objfile_data::~jiter_objfile_data): ... this.
6206 (get_jit_objfile_data): Rename to ...
6207 (get_jiter_objfile_data): ... this.
6208 (add_objfile_entry): Update.
6209 (jit_read_descriptor): Use get_jiter_objfile_data.
6210 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
6211 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
6212 (jit_inferior_exit_hook): Use objfile's jited_data field.
6213
238b5c9f
SM
62142020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6215
6216 * jit.h: Forward-declare `struct minimal_symbol`.
6217 (struct jit_objfile_data): Migrate to here from jit.c; also add a
6218 constructor, destructor, and an objfile* field.
6219 * jit.c (jit_objfile_data): Remove.
6220 (struct jit_objfile_data): Migrate from here to jit.h.
6221 (jit_objfile_data::~jit_objfile_data): New destructor
6222 implementation with code moved from free_objfile_data.
6223 (free_objfile_data): Delete.
6224 (get_jit_objfile_data): Update to use the jit_data field of objfile.
6225 (jit_find_objf_with_entry_addr): Ditto.
6226 (jit_inferior_exit_hook): Ditto.
6227 (_initialize_jit): Remove the call to
6228 register_objfile_data_with_cleanup.
6229 * objfiles.h (struct objfile) <jit_data>: New field.
6230
fe053b9e
TBA
62312020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6232
6233 * jit.h: Forward-declare `struct objfile`.
6234 (jit_event_handler): Add a second parameter, the JITer objfile.
6235 * jit.c (jit_read_descriptor): Change the signature to take the
6236 JITer objfile as an argument instead of the jit_program_space_data.
6237 (jit_inferior_init): Update the call to jit_read_descriptor.
6238 (jit_event_handler): Use the new JITer objfile argument when calling
6239 jit_read_descriptor.
6240 * breakpoint.c (handle_jit_event): Update the call to
6241 jit_event_handler to pass the JITer objfile.
6242
4cec0c66
JB
62432020-07-21 John Baldwin <jhb@FreeBSD.org>
6244
6245 * gdbarch.c: Regenerate.
6246 * gdbarch.h: Regenerate.
6247 * gdbarch.sh (handle_segmentation_fault): Remove method.
6248 * infrun.c (handle_segmentation_fault): Remove.
6249 (print_signal_received_reason): Remove call to
6250 handle_segmentation_fault.
6251
0e42f66a
JB
62522020-07-21 John Baldwin <jhb@FreeBSD.org>
6253
6254 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6255 Rename to sparc64_linux_report_signal_info and add siggnal
6256 argument.
6257 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
6258 instead of sparc64_linux_handle_segmentation_fault.
6259
77bdfeb2
JB
62602020-07-21 John Baldwin <jhb@FreeBSD.org>
6261
6262 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
6263 i386_linux_report_signal_info instead of
6264 i386_linux_handle_segmentation_fault.
6265 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
6266 to i386_linux_report_signal_info and add siggnal argument.
6267 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
6268 of i386_linux_handle_segmentation_fault.
6269 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
6270 to i386_linux_report_signal_info and add siggnal argument.
6271
ad97bfc5
JB
62722020-07-21 John Baldwin <jhb@FreeBSD.org>
6273
6274 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
6275 hook if present.
6276
272bb05c
JB
62772020-07-21 John Baldwin <jhb@FreeBSD.org>
6278
6279 * gdbarch.c: Regenerate.
6280 * gdbarch.h: Regenerate.
6281 * gdbarch.sh (report_signal_info): New method.
6282 * infrun.c (print_signal_received_reason): Invoke gdbarch
6283 report_signal_info hook if present.
6284
baf8791e
AB
62852020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6286
6287 * python/py-registers.c : Add 'unordered_map' include.
6288 (gdbpy_new_reggroup): Renamed to...
6289 (gdbpy_get_reggroup): ...this. Update to only create register
6290 group descriptors when needed.
6291 (gdbpy_reggroup_iter_next): Update.
6292
f7306dac
AB
62932020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6294
6295 * python/py-registers.c (gdbpy_register_object_data): New static
6296 global.
6297 (gdbpy_register_object_data_init): New function.
6298 (gdbpy_new_register_descriptor): Renamed to...
6299 (gdbpy_get_register_descriptor): ...this, and update to reuse
6300 existing register descriptors where possible.
6301 (gdbpy_register_descriptor_iter_next): Update.
6302 (gdbpy_initialize_registers): Register new gdbarch data.
6303
05c309a8
SM
63042020-07-21 Simon Marchi <simon.marchi@efficios.com>
6305
6306 * linux-nat.c (stopped_pids): Make static.
6307
d1fd641e
SM
63082020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
6309
6310 PR ada/26235
6311 * gdbtypes.c (ada_discrete_type_low_bound,
6312 ada_discrete_type_high_bound): Handle undefined bounds.
6313
1de14d77
KR
63142020-07-21 Kamil Rytarowski <n54@gmx.com>
6315
6316 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
6317 declaration.
6318 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
6319 function.
6320
ed810cc7
JB
63212020-07-20 John Baldwin <jhb@FreeBSD.org>
6322
6323 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
6324 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
6325 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
6326 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
6327 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
6328 method.
6329
ae5369e7
LC
63302020-07-20 Ludovic Courtès <ludo@gnu.org>
6331
6332 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
6333 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
6334 which are deprecated in Guile 3.0.
6335 * configure.ac (try_guile_versions): Add "guile-3.0".
6336 * configure (try_guile_versions): Regenerate.
6337 * NEWS: Update entry.
6338
68cf161c
LC
63392020-07-20 Ludovic Courtès <ludo@gnu.org>
6340 Doug Evans <dje@google.com>
6341
6342 PR gdb/21104
6343 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
6344 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
6345 USING_GUILE_BEFORE_2_2.
6346 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
6347 Change type to 'scm_t_port_type *'.
6348 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
6349 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
6350 parameter and honor it. Update callers.
6351 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
6352 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
6353 functions.
6354 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
6355 USING_GUILE_BEFORE_2_2.
6356 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
6357 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
6358 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
6359 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
6360 and 'SCM_PORT_TYPE'.
6361 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
6362 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
6363 (gdbscm_memory_port_read, gdbscm_memory_port_write)
6364 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
6365 [!USING_GUILE_BEFORE_2_2]: New functions.
6366 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
6367 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
6368 'gdbscm_memory_port_read'.
6369 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
6370 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
6371 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
6372 function.
6373 (ioscm_init_memory_port): Remove.
6374 (ioscm_init_memory_port_stream): New function
6375 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
6376 function.
6377 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6378 Return scm_from_uint (0).
6379 (gdbscm_set_memory_port_read_buffer_size_x)
6380 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6381 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6382 Return scm_from_uint (0).
6383 (gdbscm_set_memory_port_write_buffer_size_x)
6384 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6385 * configure.ac (try_guile_versions): Add "guile-2.2".
6386 * configure: Regenerate.
6387 * NEWS: Add entry.
6388
aee91db3
TT
63892020-07-18 Tom Tromey <tom@tromey.com>
6390
6391 * linux-nat.c (linux_multi_process): Remove.
6392 (linux_nat_target::supports_multi_process): Return true.
6393
0e267416
AB
63942020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6395
6396 * arch/riscv.c (riscv_tdesc_cache): Change map type.
6397 (riscv_lookup_target_description): Return pointer out of
6398 unique_ptr.
6399 * target-descriptions.c (allocate_target_description): Add
6400 comment.
6401 (target_desc_deleter::operator()): Likewise.
6402 * target-descriptions.h (struct target_desc_deleter): Moved to
6403 gdbsupport/tdesc.h.
6404 (target_desc_up): Likewise.
6405
f80c8ec4
TT
64062020-07-17 Tom Tromey <tromey@adacore.com>
6407
6408 * linux-nat.c (linux_nat_target::supports_non_stop)
6409 (linux_nat_target::always_non_stop_p): Use "true".
6410 (linux_nat_target::supports_disable_randomization): Use "true" and
6411 "false".
6412
d0ce17d8
CT
64132020-07-16 Caroline Tice <cmtice@google.com>
6414
6415 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
6416 (RNGLIST_HEADER_SIZE64): New constant definition.
6417 (struct dwop_section_names): Add rnglists_dwo.
6418 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
6419 (struct loclist_header): Rename to 'loclists_rnglists_header'.
6420 (struct dwo_sections): Add rnglists field.
6421 (read_attribut_reprocess): Add tag parameter.
6422 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
6423 (cu_debug_rnglists_section): New function (decl & definition).
6424 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
6425 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
6426 die whose range is being checked; get rnglist section from
6427 cu_debug_rnglists_section, to get from either objfile or dwo file as
6428 appropriate. Add cases for DW_RLE_base_addressx,
6429 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
6430 the base address to DW_RLE_offset_pairs (not to all ranges), moving
6431 test inside if-condition and updating complaint message.
6432 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
6433 dwarf2_rnglists_process.
6434 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
6435 dwarf2_ranges_process.
6436 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
6437 need_ranges_base and update comment appropriately. Also pass die tag
6438 to dwarf2_ranges_read.
6439 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
6440 need_ranges_base and update comment appropriately. Also pass die tag
6441 to dwarf2_ranges_process.
6442 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
6443 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
6444 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
6445 need_ranges_base and update comment appropriately. Also pass die tag
6446 to read_attribute_reprocess and dwarf2_ranges_read.
6447 (read_loclist_header): Rename function to read_loclists_rnglists_header,
6448 and update function comment appropriately.
6449 (read_loclist_index): Call read_loclists_rnglists_header instead of
6450 read_loclist_header.
6451 (read_rnglist_index): New function.
6452 (read_attribute_reprocess): Add tag parameter. Add code for
6453 DW_FORM_rnglistx, passing tag to read_rnglist_index.
6454 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
6455
3dcc261c
AB
64562020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
6457
6458 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
6459 being resolved.
6460
ccb9eba6
AB
64612020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
6462
6463 * arch-utils.c (show_architecture): Update formatting of messages.
6464
cf88be68
SM
64652020-07-12 Simon Marchi <simon.marchi@efficios.com>
6466
6467 * gdbtypes.h (struct type) <bounds>: Handle array and string
6468 types.
6469 * ada-lang.c (assign_aggregate): Use type::bounds on
6470 array/string type.
6471 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
6472 * c-varobj.c (c_number_of_children): Likewise.
6473 (c_describe_child): Likewise.
6474 * eval.c (evaluate_subexp_for_sizeof): Likewise.
6475 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
6476 (f_type_print_base): Likewise.
6477 * f-valprint.c (f77_array_offset_tbl): Likewise.
6478 (f77_get_upperbound): Likewise.
6479 (f77_print_array_1): Likewise.
6480 * guile/scm-type.c (gdbscm_type_range): Likewise.
6481 * m2-typeprint.c (m2_array): Likewise.
6482 (m2_is_long_set_of_type): Likewise.
6483 * m2-valprint.c (get_long_set_bounds): Likewise.
6484 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
6485 * python/py-type.c (typy_range): Likewise.
6486 * rust-lang.c (rust_internal_print_type): Likewise.
6487 * type-stack.c (type_stack::follow_types): Likewise.
6488 * valarith.c (value_subscripted_rvalue): Likewise.
6489 * valops.c (value_cast): Likewise.
6490
509971ae
SM
64912020-07-12 Simon Marchi <simon.marchi@efficios.com>
6492
6493 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
6494 callers to use the equivalent accessor methods.
6495
107406b7
SM
64962020-07-12 Simon Marchi <simon.marchi@efficios.com>
6497
6498 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
6499 (struct type) <bit_stride>: New method.
6500 (TYPE_BIT_STRIDE): Remove.
6501 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
6502
bb789949
SM
65032020-07-12 Simon Marchi <simon.marchi@efficios.com>
6504
6505 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
6506 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
6507 callers to use the equivalent accessor methods instead.
6508
39498edb
SM
65092020-07-12 Simon Marchi <simon.marchi@efficios.com>
6510
6511 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
6512 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
6513 callers to use the equivalent accessor methods instead.
6514
3b606f38
SM
65152020-07-12 Simon Marchi <simon.marchi@efficios.com>
6516
6517 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
6518 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
6519 to use dynamic_prop::kind.
6520
064d9cb9
SM
65212020-07-12 Simon Marchi <simon.marchi@efficios.com>
6522
6523 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
6524 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
6525 to get the bound property's kind and check against
6526 PROP_UNDEFINED.
6527
5537ddd0
SM
65282020-07-12 Simon Marchi <simon.marchi@efficios.com>
6529
6530 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
6531 all callers to use type::range_bounds followed by
6532 dynamic_prop::{low,high}.
6533
8c2e4e06
SM
65342020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6535
6536 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
6537 const_val, set_const_val, baton, set_locexpr, set_loclist,
6538 set_addr_offset, variant_parts, set_variant_parts,
6539 original_type, set_original_type>: New methods.
6540 <kind>: Rename to...
6541 <m_kind>: ... this. Update all users to use the new methods
6542 instead.
6543 <data>: Rename to...
6544 <m_data>: ... this. Update all users to use the new methods
6545 instead.
6546
7c6f2712
SM
65472020-07-12 Simon Marchi <simon.marchi@efficios.com>
6548
6549 * gdbtypes.c (get_discrete_bounds): Return failure if
6550 the range type's bounds are not both defined and constant
6551 values.
6552 (get_array_bounds): Update comment. Remove undefined bound check.
6553
599088e3
SM
65542020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6555
6556 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
6557 the type::bounds method directly.
6558
c4dfcb36
SM
65592020-07-12 Simon Marchi <simon.marchi@efficios.com>
6560
6561 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
6562 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
6563 are used to set the range type's bounds to use set_bounds.
6564
0a278aa7
PW
65652020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6566
6567 * exec.c (_initialize_exec): Update exec-file-mismatch help.
6568
cce20f10
PA
65692020-07-10 Pedro Alves <pedro@palves.net>
6570
6571 * gdbthread.h (inferior_ref): Define.
6572 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
6573 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
6574 * thread.c
6575 (scoped_restore_current_thread::restore):
6576 Adjust to gdb::ref_ptr.
6577 (scoped_restore_current_thread::~scoped_restore_current_thread):
6578 Remove manual decref handling.
6579 (scoped_restore_current_thread::scoped_restore_current_thread):
6580 Adjust to use
6581 inferior_ref::new_reference/thread_info_ref::new_reference.
6582 Incref the thread before calling get_frame_id instead of after.
6583 Let TARGET_CLOSE_ERROR propagate.
6584
6d7aa592
PA
65852020-07-10 Pedro Alves <pedro@palves.net>
6586
6587 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
6588 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
6589 NOT_AVAILABLE_ERROR.
6590 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
6591 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
6592
b3e3a4c1
SM
65932020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6594 Pedro Alves <pedro@palves.net>
6595
6596 PR gdb/26199
6597 * infrun.c (threads_are_resumed_pending_p): Delete.
6598 (do_target_wait): Remove threads_are_executing and
6599 threads_are_resumed_pending_p checks from the inferior_matches
6600 lambda. Update comments.
6601
d6cc5d98
PA
66022020-07-10 Pedro Alves <pedro@palves.net>
6603
6604 PR gdb/26199
6605 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
6606 executing threads.
6607
7d3badc6
PA
66082020-07-10 Pedro Alves <pedro@palves.net>
6609
6610 PR gdb/26199
6611 * infrun.c (handle_no_resumed): Handle multiple targets.
6612
42bd97a6
PA
66132020-07-10 Pedro Alves <pedro@palves.net>
6614
6615 PR gdb/26199
6616 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
6617 target_is_async_p.
6618
43667cc6
PA
66192020-07-10 Pedro Alves <pedro@palves.net>
6620
6621 PR gdb/26199
6622 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
6623 threads, not all threads.
6624
96118d11
PA
66252020-07-10 Pedro Alves <pedro@palves.net>
6626
6627 PR gdb/26199
6628 * remote.c (remote_target::open_1): Pass remote target pointer as
6629 data to create_async_event_handler.
6630 (remote_async_inferior_event_handler): Mark async event handler
6631 before returning if the remote target still has either pending
6632 events or unacknowledged notifications.
6633
54904d81
JB
66342020-07-10 John Baldwin <jhb@FreeBSD.org>
6635
6636 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
6637 declaration.
6638 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
6639 function.
6640
f37e5866
JB
66412020-07-09 John Baldwin <jhb@FreeBSD.org>
6642
6643 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
6644 inferior_ptid.
6645
fc238d4a
JB
66462020-07-09 John Baldwin <jhb@FreeBSD.org>
6647
6648 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
6649 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
6650 AT_FREEBSD_PS_STRINGS.
6651
6e2469ff
HD
66522020-07-08 Hannes Domani <ssbssa@yahoo.de>
6653
6654 * auto-load.c (auto_load_objfile_script_1): Convert drive part
6655 of debugfile path on Windows.
6656
d1076c41
JB
66572020-07-08 John Baldwin <jhb@FreeBSD.org>
6658
6659 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
6660 argument to 'data'.
6661
15f3b077
TT
66622020-07-08 Tom Tromey <tromey@adacore.com>
6663
6664 * ada-lang.c (ada_exception_message_1): Use read_memory.
6665
9fc501fd
AB
66662020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6667
6668 PR python/22748
6669 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
6670 special handling for inline frames.
6671 * findvar.c (value_of_register_lazy): Skip inline frames when
6672 creating lazy register values.
6673 * frame.c (frame_id_computed_p): Delete definition.
6674 * frame.h (frame_id_computed_p): Delete declaration.
6675
64cb3757
AB
66762020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6677
6678 * NEWS: Mention additions to Python API.
6679 * python/py-arch.c (archpy_register_groups): New function.
6680 (arch_object_methods): Add 'register_groups' method.
6681 * python/py-registers.c (reggroup_iterator_object): New struct.
6682 (reggroup_object): New struct.
6683 (gdbpy_new_reggroup): New function.
6684 (gdbpy_reggroup_to_string): New function.
6685 (gdbpy_reggroup_name): New function.
6686 (gdbpy_reggroup_iter): New function.
6687 (gdbpy_reggroup_iter_next): New function.
6688 (gdbpy_new_reggroup_iterator): New function
6689 (gdbpy_initialize_registers): Register new types.
6690 (reggroup_iterator_object_type): Define new Python type.
6691 (gdbpy_reggroup_getset): New static global.
6692 (reggroup_object_type): Define new Python type.
6693 * python/python-internal.h
6694
0f767f94
AB
66952020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6696
6697 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
6698 * python/py-arch.c (archpy_registers): New function.
6699 (arch_object_methods): Add 'registers' method.
6700 * python/py-registers.c: New file.
6701 * python/python-internal.h
6702 (gdbpy_new_register_descriptor_iterator): Declare.
6703 (gdbpy_initialize_registers): Declare.
6704 * python/python.c (do_start_initialization): Call
6705 gdbpy_initialize_registers.
6706 * NEWS: Mention additions to the Python API.
6707
87dbc774
AB
67082020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6709
6710 * NEWS: Mention new Python API method.
6711 * python/py-unwind.c (pending_framepy_architecture): New function.
6712 (pending_frame_object_methods): Add architecture method.
6713
3bc98c0c
AB
67142020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6715
6716 * gdbarch.c: Regenerate.
6717 * gdbarch.h: Regenerate.
6718 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
6719 (gdbarch_data): Use internal_error for the case where
6720 deprecated_set_gdbarch_data was originally needed.
6721 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
6722 and use passed in obstack.
6723 (libunwind_frame_set_descr): Should no longer get back NULL from
6724 gdbarch_data.
6725 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
6726 type.
6727 * user-regs.c (user_regs_init): Update parameters, and use passed
6728 in obstack.
6729 (user_reg_add): Should no longer get back NULL from gdbarch_data.
6730 (_initialize_user_regs): Register as a pre-init gdbarch data type.
6731
d8cc8af6
TV
67322020-07-06 Tom de Vries <tdevries@suse.de>
6733
6734 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
6735 End-Of-Sequence in lte_is_less_than.
6736 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
6737 "gdb: Don't reorder line table entries too much when sorting".
6738
947f7597
TV
67392020-07-06 Tom de Vries <tdevries@suse.de>
6740
6741 PR tui/26205
6742 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
6743
1e7c1b22
TV
67442020-07-05 Tom de Vries <tdevries@suse.de>
6745
6746 PR build/26187
6747 * inferior.h (struct infcall_suspend_state_deleter): If available, use
6748 std::uncaught_exceptions instead of deprecated
6749 std::uncaught_exception.
6750
a36158ec
SM
67512020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6752
6753 * macroexp.h (macro_stringify): Return
6754 gdb::unique_xmalloc_ptr<char>.
6755 * macroexp.c (macro_stringify): Likewise.
6756 * macrotab.c (fixup_definition): Update.
6757
14d960c8
SM
67582020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6759
6760 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
6761 (lex_one_token): Update.
6762 * macroexp.c (struct macro_buffer) <release>: Return
6763 gdb::unique_xmalloc_ptr<char>.
6764 (macro_stringify): Update.
6765 (macro_expand): Update.
6766 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
6767 * macroexp.h (macro_expand_next): Likewise.
6768
211d5b1c
SM
67692020-07-02 Simon Marchi <simon.marchi@efficios.com>
6770
6771 * macroexp.h (macro_lookup_ftype): Remove.
6772 (macro_expand, macro_expand_once, macro_expand_next): Remove
6773 lookup function parameters, add scope parameter.
6774 * macroexp.c (scan, substitute_args, expand, maybe_expand,
6775 macro_expand, macro_expand_once, macro_expand_next): Likewise.
6776 * macroscope.h (standard_macro_lookup): Change parameter type
6777 to macro_scope.
6778 * macroscope.c (standard_macro_lookup): Likewise.
6779 * c-exp.y (lex_one_token): Update.
6780 * macrocmd.c (macro_expand_command): Likewise.
6781 (macro_expand_once_command): Likewise.
6782
b1a35af2
SM
67832020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6784
6785 * inf-loop.c (inferior_event_handler): Remove client_data param.
6786 * inf-loop.h (inferior_event_handler): Likewise.
6787 * infcmd.c (step_1): Adjust.
6788 * infrun.c (proceed): Adjust.
6789 (fetch_inferior_event): Remove client_data param.
6790 (infrun_async_inferior_event_handler): Adjust.
6791 * infrun.h (fetch_inferior_event): Remove `void *` param.
6792 * linux-nat.c (handle_target_event): Adjust.
6793 * record-btrace.c (record_btrace_handle_async_inferior_event):
6794 Adjust.
6795 * record-full.c (record_full_async_inferior_event_handler):
6796 Adjust.
6797 * remote.c (remote_async_inferior_event_handler): Adjust.
6798
1cdf9e33
TT
67992020-07-01 Tom Tromey <tom@tromey.com>
6800
6801 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
6802 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
6803
32c1e210
TT
68042020-07-01 Tom Tromey <tom@tromey.com>
6805
6806 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
6807 tui_gen_win_info.
6808 (tui_win_info::make_window): Merge with
6809 tui_gen_win_info::make_window.
6810 (tui_win_info::make_visible): Move from tui_gen_win_info.
6811 * tui/tui-win.c (tui_win_info::max_width): Move from
6812 tui_gen_win_info.
6813 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
6814 type.
6815 <window_factory>: Likewise.
6816 * tui/tui-layout.c (tui_win_info::resize): Move from
6817 tui_gen_win_info.
6818 (make_standard_window): Change return type.
6819 (get_locator_window, tui_get_window_by_name): Likewise.
6820 (tui_layout_window::apply): Remove a cast.
6821 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
6822 (struct tui_win_info): Merge with tui_gen_win_info.
6823 (struct tui_gen_win_info): Remove.
6824
a30cb6da
TT
68252020-07-01 Tom Tromey <tom@tromey.com>
6826
6827 * tui/tui-stack.h (struct tui_locator_window): Derive from
6828 tui_win_info.
6829 <do_scroll_horizontal, do_scroll_vertical>: New methods.
6830 <can_box>: New method.
6831
1eb2161f
TT
68322020-07-01 Tom Tromey <tom@tromey.com>
6833
6834 * tui/tui-stack.h (struct tui_locator_window): Remove body.
6835
7134f2eb
TT
68362020-07-01 Tom Tromey <tom@tromey.com>
6837
6838 * tui/tui-regs.c (tui_data_window::display_registers_from)
6839 (tui_data_window::display_registers_from)
6840 (tui_data_window::first_data_item_displayed)
6841 (tui_data_window::delete_data_content_windows): Update.
6842 (tui_data_window::refresh_window, tui_data_window::no_refresh):
6843 Remove.
6844 (tui_data_window::check_register_values): Update.
6845 (tui_data_item_window::rerender): Add parameters. Update.
6846 (tui_data_item_window::refresh_window): Remove.
6847 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
6848 virtual.
6849 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
6850 tui_gen_win_info.
6851 <refresh_window, max_height, min_height>: Remove.
6852 <rerender>: Add parameters.
6853 <x, y, visible>: New members.
6854 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
6855 <m_item_width>: New member.
6856
22b7b041
TT
68572020-07-01 Tom Tromey <tom@tromey.com>
6858
6859 * tui/tui-regs.c (tui_data_window::show_register_group)
6860 (tui_data_window::check_register_values): Update.
6861 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
6862 from item_no.
6863
c9753adb
TT
68642020-07-01 Tom Tromey <tom@tromey.com>
6865
6866 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
6867 useless "if".
6868
9ab26b4a
TT
68692020-07-01 Tom Tromey <tom@tromey.com>
6870
6871 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
6872 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
6873
e555083f
TT
68742020-07-01 Tom Tromey <tom@tromey.com>
6875
6876 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
6877 * tui/tui-winsource.h (enum tui_line_or_address_kind)
6878 (struct tui_line_or_address): Move from tui-data.h.
6879 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
6880 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
6881 (tui_cmd_window, tui_source_window_base, tui_source_window)
6882 (tui_disasm_window): Don't declare.
6883 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
6884 to tui-winsource.h.
6885 (SINGLE_KEY): Move to tui-stack.c.
6886
7a02bab7
TT
68872020-07-01 Tom Tromey <tom@tromey.com>
6888
6889 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
6890 std::string.
6891 * tui/tui-regs.c (class tab_expansion_file): New.
6892 (tab_expansion_file::write): New method.
6893 (tui_register_format): Change return type. Use
6894 tab_expansion_file.
6895 (tui_get_register, tui_data_window::display_registers_from)
6896 (tui_data_item_window::rerender): Update.
6897 * tui/tui-io.h (tui_expand_tabs): Don't declare.
6898 * tui/tui-io.c (tui_expand_tabs): Remove.
6899
ea68593b
TT
69002020-07-01 Tom Tromey <tom@tromey.com>
6901
6902 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
6903
a8caed5d
FS
69042020-07-01 Fangrui Song <maskray@google.com>
6905
6906 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
6907
9cdf9820
AKS
69082020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6909
6910 * dwarf2/read.c (set_die_type): Removed conditions to restrict
6911 forms for DW_AT_associated and DW_AT_allocated attributes,
6912 which is already checked in function attr_to_dynamic_prop.
6913
a1520ad8
TT
69142020-06-30 Tom Tromey <tromey@adacore.com>
6915
6916 * dwarf2/read.c (quirk_rust_enum): Correctly call
6917 alloc_rust_variant for default-less enum.
6918
5ac58899
TT
69192020-06-30 Tom Tromey <tromey@adacore.com>
6920
6921 PR build/26183:
6922 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
6923 gdb::to_string.
6924
19b187a9
SM
69252020-06-29 Simon Marchi <simon.marchi@efficios.com>
6926
6927 * gdbarch.sh (displaced_step_copy_insn): Update doc.
6928 * gdbarch.h: Re-generate.
6929
cd4c4c07
TT
69302020-06-28 Tom Tromey <tom@tromey.com>
6931
6932 * command.h (cmd_types): Remove.
6933 (cmd_type): Don't declare.
6934 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
6935 typedef.
6936 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
6937 * cli/cli-decode.c (cmd_type): Remove.
6938
05779d57
PA
69392020-06-27 Pedro Alves <palves@redhat.com>
6940
6941 * fork-child.c (prefork_hook): Adjust.
6942 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
6943 Delete.
6944 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
6945 * inferior.c (inferior::set_tty, inferior::tty): New methods.
6946 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
6947 Remove declarations.
6948 (struct inferior) <set_tty, tty>: New methods.
6949 (struct inferior) <terminal>: Rename to ...
6950 (struct inferior) <m_terminal>: ... this and make private.
6951 * main.c (captured_main_1): Adjust.
6952 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
6953 (mi_cmd_inferior_tty_show): Adjust.
6954 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
6955 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
6956
1776e3e5
NA
69572020-06-26 Nick Alcock <nick.alcock@oracle.com>
6958
6959 * configure.ac: Add --enable-libctf: handle --disable-static
6960 properly.
6961 * acinclude.m4: sinclude ../config/enable.m4.
6962 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
6963 (LIBCTF): Substitute in.
6964 (CTF_DEPS): New, likewise.
6965 (CLIBS): libctf needs symbols from libbfd: move earlier.
6966 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
6967 flags.
6968 * ctfread.c: Surround in ENABLE_LIBCTF.
6969 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
6970 * configure: Regenerate.
6971 * config.in: Likewise.
6972
58373b80
SM
69732020-06-25 Simon Marchi <simon.marchi@efficios.com>
6974
6975 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
6976
277474ee
SM
69772020-06-25 Simon Marchi <simon.marchi@efficios.com>
6978
6979 * inferior.h (struct inferior) <terminal>: Change type to
6980 gdb::unique_xmalloc_ptr<char>.
6981 * inferior.c (inferior::~inferior): Don't free inf->terminal.
6982 * infcmd.c (set_inferior_io_terminal): Don't free terminal
6983 field, adjust to unique pointer.
6984 (get_inferior_io_terminal): Adjust to unique pointer.
6985
6d74da72
AB
69862020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6987
6988 * riscv-tdep.c (riscv_print_registers_info): Loop over all
6989 registers, not just the known core set of registers.
6990
2e52d038
AB
69912020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6992
6993 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
6994 fflags, frm, and fcsr registers.
6995 (riscv_register_reggroup_p): Remove unknown CSRs from save and
6996 restore groups.
6997 (riscv_tdesc_unknown_reg): New function.
6998 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
6999 tdesc_use_registers.
7000 * riscv-tdep.h (struct gdbarch_tdep): Add
7001 unknown_csrs_first_regnum, unknown_csrs_count,
7002 duplicate_fflags_regnum, duplicate_frm_regnum, and
7003 duplicate_fcsr_regnum fields.
7004
be64fd07
AB
70052020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7006
7007 * target-descriptions.c (tdesc_use_registers): Add new parameter a
7008 callback, use the callback (when not null) to help number unknown
7009 registers.
7010 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
7011 (tdesc_use_registers): Add extra parameter to declaration.
7012
3b9fce96
AB
70132020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7014
7015 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
7016 in the file.
7017 (class riscv_pending_register_alias): Likewise.
7018 (riscv_register_feature::register_info): Change 'required_p' field
7019 to 'required', and change its type. Add 'check' member function.
7020 (riscv_register_feature::register_info::check): Define new member
7021 function.
7022 (riscv_xreg_feature): Change initialisation of 'required' field.
7023 (riscv_freg_feature): Likewise.
7024 (riscv_virtual_feature): Likewise.
7025 (riscv_csr_feature): Likewise.
7026 (riscv_check_tdesc_feature): Take extra parameter, the csr
7027 tdesc_feature, rewrite the function to use the new
7028 riscv_register_feature::register_info::check function.
7029 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
7030
865bad26
AB
70312020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7032
7033 * features/Makefile: Remove all references to the deleted files
7034 below.
7035 * features/riscv/32bit-csr.c: Deleted.
7036 * features/riscv/32bit-csr.xml: Deleted.
7037 * features/riscv/64bit-csr.c: Deleted.
7038 * features/riscv/64bit-csr.xml: Deleted.
7039 * features/riscv/rebuild-csr-xml.sh: Deleted.
7040
ed69cbc8
AB
70412020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7042
7043 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
7044 whitespace error for declaration of names member variable.
7045 (struct riscv_register_feature): Add new prefer_first_name member
7046 variable, and fix whitespace error in declaration of registers.
7047 (riscv_xreg_feature): Initialize prefer_first_name field.
7048 (riscv_freg_feature): Likewise.
7049 (riscv_virtual_feature): Likewise.
7050 (riscv_csr_feature): Likewise.
7051 (riscv_register_name): Expand on comments. Remove register name
7052 modifications for CSR and virtual registers.
7053
4445e8f5
AB
70542020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7055
7056 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
7057 errors.
7058
767a879e
AB
70592020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7060
7061 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
7062 riscv-opc.h.
7063 (class riscv_pending_register_alias): New class.
7064 (riscv_check_tdesc_feature): Take vector of pending aliases and
7065 populate it as appropriate.
7066 (riscv_setup_register_aliases): Delete.
7067 (riscv_gdbarch_init): Create vector of pending aliases and pass it
7068 to riscv_check_tdesc_feature in all cases. Use the vector to
7069 create the register aliases.
7070
bb6e55f3
RO
70712020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7072
7073 * sol2-tdep.c (sol2_static_transform_name): Remove.
7074 (sol2_init_abi): Don't register it.
7075 * gdbarch.sh (static_transform_name): Remove.
7076 * gdbarch.c, gdbarch.h: Regenerate.
7077
7078 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
7079 gdbarch_static_transform_name.
7080 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
7081 * stabsread.c (define_symbol) <'X'>: Remove.
7082 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
7083 handling.
7084 <'V'>: Likewise.
7085 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
7086 <'S'>: Remove call to gdbarch_static_transform_name.
7087
c6d36836
RO
70882020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7089
7090 * procfs.c (procfs_pre_trace): New function.
7091 (procfs_target::create_inferior): Pass it to fork_inferior.
7092
a7e6196b
RO
70932020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7094
7095 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
7096 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
7097 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
7098 sol2-tdep.o, sparc-sol2-tdep.o.
7099 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
7100 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
7101 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
7102 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
7103
d412e696
RO
71042020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7105
7106 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
7107 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
7108 Call sol2_init_abi.
7109 Remove calls to set_gdbarch_skip_solib_resolver,
7110 set_gdbarch_core_pid_to_str.
7111 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
7112 (i386_sol2_static_transform_name): Remove.
7113 (i386_sol2_init_abi): Call sol2_init_abi.
7114 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7115 set_gdbarch_static_transform_name,
7116 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7117 Use sol2_sigtramp_p.
7118 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
7119 (sol2_sigtramp_p): New function.
7120 (sol2_static_transform_name): New function.
7121 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
7122 (sol2_init_abi): New function.
7123 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
7124 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
7125 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
7126 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
7127 (sparc_sol2_static_transform_name): Remove.
7128 (sparc32_sol2_init_abi): Call sol2_init_abi.
7129 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7130 set_gdbarch_static_transform_name,
7131 set_gdbarch_skip_solib_resolver,
7132 set_gdbarch_core_pid_to_str.
7133 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
7134 (sparc_sol2_static_transform_name): Remove
7135 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
7136 call sol2_sigtramp_p.
7137 (sparc64_sol2_init_abi): Call sol2_init_abi.
7138 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7139 set_gdbarch_static_transform_name,
7140 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7141
a8654e7d
PW
71422020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7143
7144 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
7145 * exec.c (validate_exec_file): If from_tty, set both
7146 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
7147 * symfile.c (symbol_file_add_with_addrs): if always_confirm
7148 and from_tty, unconditionally ask a confirmation.
7149
caa7fd04
AB
71502020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7151
7152 * target-descriptions.c (tdesc_architecture_name): Protect against
7153 NULL pointer dereference.
7154 (maint_print_xml_tdesc_cmd): New function.
7155 (_initialize_target_descriptions): Register new 'maint print
7156 xml-tdesc' command and give it the filename completer.
7157 * NEWS: Mention new 'maint print xml-tdesc' command.
7158
fbf42f4e
AB
71592020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7160
7161 * target-descriptions.c (class tdesc_compatible_info): New class.
7162 (struct target_desc): Change type of compatible vector.
7163 (tdesc_compatible_p): Update for change in type of
7164 target_desc::compatible.
7165 (tdesc_compatible_info_list): New function.
7166 (tdesc_compatible_info_arch_name): New function.
7167 (tdesc_add_compatible): Update for change in type of
7168 target_desc::compatible.
7169 (print_c_tdesc::visit_pre): Likewise.
7170
20821f4e
AB
71712020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7172
7173 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
7174 whitespace to underscore.
7175 (maint_print_c_tdesc_cmd): Use fake filename for target
7176 descriptions that came from the target.
7177 (_initialize_target_descriptions): Add filename command completion
7178 for 'maint print c-tdesc'.
7179
1fb5ee62
SM
71802020-06-23 Simon Marchi <simon.marchi@efficios.com>
7181
7182 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
7183 lines.
7184
fc3ecb3e
SM
71852020-06-23 Simon Marchi <simon.marchi@efficios.com>
7186
7187 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
7188 lines.
7189 (dwarf2_find_location_expression): Likewise.
7190 (call_site_parameter_matches): Likewise.
7191 (dwarf2_compile_expr_to_ax): Likewise.
7192 (disassemble_dwarf_expression): Likewise.
7193 (loclist_describe_location): Likewise.
7194
236ef034
PA
71952020-06-23 Pedro Alves <palves@redhat.com>
7196
7197 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
7198 progspace-and-thread.h. Include scoped-mock-context.h instead.
7199 (register_to_value_test): Use scoped_mock_context.
7200 * regcache.c: Include "scoped-mock-context.h".
7201 (cooked_read_test): Don't error out if a target is already pushed.
7202 Use scoped_mock_context. Adjust.
7203 * scoped-mock-context.h: New file.
7204
39e7ecca
AB
72052020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7206
7207 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
7208 initializer.
7209 (ada_language::is_string_type_p): New member function.
7210 * c-lang.c (c_language_data): Delete la_is_string_type_p
7211 initializer.
7212 (cplus_language_data): Likewise.
7213 (asm_language_data): Likewise.
7214 (minimal_language_data): Likewise.
7215 * d-lang.c (d_language_data): Likewise.
7216 * f-lang.c (f_is_string_type_p): Delete function, implementation
7217 moved to f_language::is_string_type_p.
7218 (f_language_data): Delete la_is_string_type_p initializer.
7219 (f_language::is_string_type_p): New member function,
7220 implementation from f_is_string_type_p.
7221 * go-lang.c (go_is_string_type_p): Delete function, implementation
7222 moved to go_language::is_string_type_p.
7223 (go_language_data): Delete la_is_string_type_p initializer.
7224 (go_language::is_string_type_p): New member function,
7225 implementation from go_is_string_type_p.
7226 * language.c (language_defn::is_string_type_p): Define new member
7227 function.
7228 (default_is_string_type_p): Make static, add comment copied from
7229 header file.
7230 (unknown_language_data): Delete la_is_string_type_p initializer.
7231 (unknown_language::is_string_type_p): New member function.
7232 (auto_language_data): Delete la_is_string_type_p initializer.
7233 (auto_language::is_string_type_p): New member function.
7234 * language.h (language_data): Delete la_is_string_type_p field.
7235 (language_defn::is_string_type_p): Declare new function.
7236 (default_is_string_type_p): Delete desclaration, move comment to
7237 definition.
7238 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
7239 moved to m2_language::is_string_type_p.
7240 (m2_language_data): Delete la_is_string_type_p initializer.
7241 (m2_language::is_string_type_p): New member function,
7242 implementation from m2_is_string_type_p.
7243 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
7244 initializer.
7245 * opencl-lang.c (opencl_language_data): Likewise.
7246 * p-lang.c (pascal_is_string_type_p): Delete function,
7247 implementation moved to pascal_language::is_string_type_p.
7248 (pascal_language_data): Delete la_is_string_type_p initializer.
7249 (pascal_language::is_string_type_p): New member function,
7250 implementation from pascal_is_string_type_p.
7251 * rust-lang.c (rust_is_string_type_p): Delete function,
7252 implementation moved to rust_language::is_string_type_p.
7253 (rust_language_data): Delete la_is_string_type_p initializer.
7254 (rust_language::is_string_type_p): New member function,
7255 implementation from rust_is_string_type_p.
7256 * valprint.c (val_print_scalar_or_string_type_p): Update call to
7257 is_string_type_p.
7258
4ffc13fb
AB
72592020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7260
7261 * ada-lang.c (ada_language_data): Delete la_print_typedef
7262 initializer.
7263 (ada_language::print_typedef): New member function.
7264 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
7265 (cplus_language_data): Likewise.
7266 (asm_language_data): Likewise.
7267 (minimal_language_data): Likewise.
7268 * d-lang.c (d_language_data): Likewise.
7269 * f-lang.c (f_language_data): Likewise.
7270 (f_language::print_typedef): New member function.
7271 * go-lang.c (go_language_data): Delete la_print_typedef
7272 initializer.
7273 * language.c (language_defn::print_typedef): Define member
7274 function.
7275 (unknown_language_data): Delete la_print_typedef initializer.
7276 (unknown_language::print_typedef): New member function.
7277 (auto_language_data): Delete la_print_typedef initializer.
7278 (auto_language::print_typedef): New member function.
7279 * language.h (language_data): Delete la_print_typedef field.
7280 (language_defn::print_typedef): Declare new member function.
7281 (LA_PRINT_TYPEDEF): Update call to print_typedef.
7282 (default_print_typedef): Delete declaration.
7283 * m2-lang.c (m2_language_data): Delete la_print_typedef
7284 initializer.
7285 (m2_language::print_typedef): New member function.
7286 * objc-lang.c (objc_language_data): Delete la_print_typedef
7287 initializer.
7288 * opencl-lang.c (opencl_language_data): Likewise.
7289 * p-lang.c (pascal_language_data): Likewise.
7290 (pascal_language::print_typedef): New member function.
7291 * rust-lang.c (rust_print_typedef): Delete function,
7292 implementation moved to rust_language::print_typedef.
7293 (rust_language): Delete la_print_typedef initializer.
7294 (rust_language::print_typedef): New member function,
7295 implementation from rust_print_typedef.
7296 * typeprint.c (default_print_typedef): Delete.
7297
d711ee67
AB
72982020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7299
7300 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
7301 (ada_language::printstr): New member function.
7302 * c-lang.c (c_language_data): Delete la_printstr initializer.
7303 (cplus_language_data): Likewise.
7304 (asm_language_data): Likewise.
7305 (minimal_language_data): Likewise.
7306 * d-lang.c (d_language_data): Likewise.
7307 * f-lang.c (f_printstr): Rename to f_language::printstr.
7308 (f_language_data): Delete la_printstr initializer.
7309 (f_language::printstr): New member function, implementation from
7310 f_printstr.
7311 * go-lang.c (go_language_data): Delete la_printstr initializer.
7312 * language.c (language_defn::printstr): Define new member
7313 function.
7314 (unk_lang_printstr): Delete.
7315 (unknown_language_data): Delete la_printstr initializer.
7316 (unknown_language::printstr): New member function.
7317 (auto_language_data): Delete la_printstr initializer.
7318 (auto_language::printstr): New member function.
7319 * language.h (language_data): Delete la_printstr field.
7320 (language_defn::printstr): Declare new member function.
7321 (LA_PRINT_STRING): Update call to printstr.
7322 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
7323 (m2_language_data): Delete la_printstr initializer.
7324 (m2_language::printstr): New member function, implementation from
7325 m2_printstr.
7326 * objc-lang.c (objc_language_data): Delete la_printstr
7327 initializer.
7328 * opencl-lang.c (opencl_language_data): Likewise.
7329 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
7330 (pascal_language_data): Delete la_printstr initializer.
7331 (pascal_language::printstr): New member function, implementation
7332 from pascal_printstr.
7333 * p-lang.h (pascal_printstr): Delete declaration.
7334 * rust-lang.c (rust_printstr): Update header comment.
7335 (rust_language_data): Delete la_printstr initializer.
7336 (rust_language::printstr): New member function.
7337
52b50f2c
AB
73382020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7339
7340 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
7341 (ada_language::printchar): New member function.
7342 * c-lang.c (c_language_data): Delete la_printchar initializer.
7343 (cplus_language_data): Likewise.
7344 (asm_language_data): Likewise.
7345 (minimal_language_data): Likewise.
7346 * d-lang.c (d_language_data): Likewise.
7347 * f-lang.c (f_printchar): Rename to f_language::printchar.
7348 (f_language_data): Delete la_printchar initializer.
7349 (f_language::printchar): New member function, implementation from
7350 f_printchar.
7351 * go-lang.c (go_language_data): Delete la_printchar initializer.
7352 * language.c (unk_lang_printchar): Delete.
7353 (language_defn::printchar): Define new member function.
7354 (unknown_language_data): Delete la_printchar initializer.
7355 (unknown_language::printchar): New member function.
7356 (auto_language_data): Delete la_printchar initializer.
7357 (auto_language::printchar): New member function.
7358 * language.h (language_data): Delete la_printchar field.
7359 (language_defn::printchar): Declare new member function.
7360 (LA_PRINT_CHAR): Update call to printchar.
7361 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
7362 (m2_language::printchar): New member function.
7363 * objc-lang.c (objc_language_data): Delete la_printchar
7364 initializer.
7365 * opencl-lang.c (opencl_language_data): Likewise.
7366 * p-lang.c (pascal_language_data): Delete la_printchar
7367 initializer.
7368 (pascal_language::printchar): New member function.
7369 * rust-lang.c (rust_printchar): Rename to
7370 rust_language::printchar.
7371 (rust_language_data): Delete la_printchar initializer.
7372 (rust_language::printchar): New member function, implementation
7373 from rust_printchar.
7374
ec8cec5b
AB
73752020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7376
7377 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
7378 (ada_language_data): Delete la_emitchar initializer.
7379 (ada_language::emitchar): New member function, implementation from
7380 emit_char.
7381 * c-lang.c (c_language_data): Delete la_emitchar initializer.
7382 (cplus_language_data): Likewise.
7383 (asm_language_data): Likewise.
7384 (minimal_language_data): Likewise.
7385 * d-lang.c (d_language_data): Likewise.
7386 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
7387 (f_language_data): Delete la_emitchar initializer.
7388 (f_language::emitchar): New member function, implementation from
7389 f_emit_char.
7390 * go-lang.c (go_language_data): Delete la_emitchar initializer.
7391 * language.c (unk_lang_emit_char): Delete.
7392 (language_defn::emitchar): New member function definition.
7393 (unknown_language_data): Delete la_emitchar initializer.
7394 (unknown_language::emitchar): New member function.
7395 (auto_language_data): Delete la_emitchar initializer.
7396 (auto_language::emitchar): New member function.
7397 * language.h (language_data): Delete la_emitchar field.
7398 (language_defn::emitchar): New member field declaration.
7399 (LA_EMIT_CHAR): Update call to emitchar.
7400 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
7401 (m2_language_data): Delete la_emitchar initializer.
7402 (m2_language::emitchar): New member function, implementation from
7403 m2_emit_char.
7404 * objc-lang.c (objc_language_data): Delete la_emitchar
7405 initializer.
7406 * opencl-lang.c (opencl_language_data): Likewise.
7407 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
7408 (pascal_language_data): Delete la_emitchar initializer.
7409 (pascal_language::emitchar): New member function, implementation
7410 from pascal_emit_char.
7411 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
7412 (rust_language_data): Delete la_emitchar initializer.
7413 (rust_language::emitchar): New member function, implementation
7414 from rust_emitchar.
7415
1bf9c363
AB
74162020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7417
7418 * ada-lang.c (resolve): Rename to ada_language::post_parser.
7419 (ada_language_data): Delete la_post_parser initializer.
7420 (ada_language::post_parser): New member function.
7421 * c-lang.c (c_language_data): Delete la_post_parser initializer.
7422 (cplus_language_data): Likewise.
7423 (asm_language_data): Likewise.
7424 (minimal_language_data): Likewise.
7425 * d-lang.c (d_language_data): Likewise.
7426 * f-lang.c (f_language_data): Likewise.
7427 * go-lang.c (go_language_data): Likewise.
7428 * language.c (unknown_language_data): Likewise.
7429 (auto_language_data): Likewise.
7430 * language.h (language_data): Delete la_post_parser field.
7431 (language_defn::post_parser): New member function.
7432 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
7433 * objc-lang.c (objc_language_data): Likewise.
7434 * opencl-lang.c (opencl_language_data): Likewise.
7435 * p-lang.c (pascal_language_data): Likewise.
7436 * parse.c (parse_exp_in_context): Update call to post_parser.
7437 (null_post_parser): Delete definition.
7438 * parser-defs.h (null_post_parser): Delete declaration.
7439 * rust-lang.c (rust_language_data): Delete la_post_parser
7440 initializer.
7441
87afa652
AB
74422020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7443
7444 * ada-lang.c (parse): Rename to ada_language::parser.
7445 (ada_language_data): Delete la_parser initializer.
7446 (ada_language::parser): New member function, implementation from
7447 parse.
7448 * c-lang.c (c_language_data): Delete la_parser initializer.
7449 (cplus_language_data): Likewise.
7450 (asm_language_data): Likewise.
7451 (minimal_language_data): Likewise.
7452 * d-lang.c (d_language_data): Likewise.
7453 (d_language::parser): New member function.
7454 * f-lang.c (f_language_data): Delete la_parser initializer.
7455 (f_language::parser): New member function.
7456 * go-lang.c (go_language_data): Delete la_parser initializer.
7457 (go_language::parser): New member function.
7458 * language.c (unk_lang_parser): Delete.
7459 (language_defn::parser): Define new member function.
7460 (unknown_language_data): Delete la_parser initializer.
7461 (unknown_language::parser): New member function.
7462 (auto_language_data): Delete la_parser initializer.
7463 (auto_language::parser): New member function.
7464 * language.h (language_data): Delete la_parser field.
7465 (language_defn::parser): Declare new member function.
7466 * m2-lang.c (m2_language_data): Delete la_parser initializer.
7467 (m2_language::parser): New member function.
7468 * objc-lang.c (objc_language_data): Delete la_parser initializer.
7469 * opencl-lang.c (opencl_language_data): Likewise.
7470 * p-lang.c (pascal_language_data): Likewise.
7471 (pascal_language::parser): New member function.
7472 * parse.c (parse_exp_in_context): Update call to parser.
7473 * rust-lang.c (rust_language_data): Delete la_parser initializer.
7474 (rust_language::parser): New member function.
7475
37825800
AB
74762020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7477
7478 * top.c (print_gdb_configuration): Print --with-python-libdir
7479 configuration value.
7480
5b860c93
PW
74812020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7482
7483 * NEWS: Mention change to the alias command.
7484
cf00cd6f
PW
74852020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7486
7487 * cli/cli-cmds.c (lookup_cmd_for_default_args)
7488 (alias_command_completer)
7489 (make_alias_options_def_group): New functions.
7490 (alias_opts, alias_option_defs): New struct and array.
7491 (alias_usage_error): Update usage.
7492 (alias_command): Handles optional DEFAULT-ARGS... arguments.
7493 Use option framework.
7494 (_initialize_cli_cmds): Update alias command help.
7495 Update aliases command help.
7496 (show_user):
7497 Add NULL for new default_args lookup_cmd argument.
7498 (valid_command_p): Rename to validate_aliased_command.
7499 Add NULL for new default_args lookup_cmd argument. Verify that the
7500 aliased_command has no default args.
7501 * cli/cli-decode.c (help_cmd): Show aliases definitions.
7502 (lookup_cmd_1, lookup_cmd): New argument default_args.
7503 (add_alias_cmd):
7504 Add NULL for new default_args lookup_cmd argument.
7505 (print_help_for_command): Show default args under the layout
7506 alias some_alias = some_aliased_cmd some_alias_default_arg.
7507 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
7508 xfree default_args in destructor.
7509 * cli/cli-script.c (process_next_line, do_define_command):
7510 Add NULL for new default_args lookup_cmd argument.
7511 * command.h: Declare new default_args argument in lookup_cmd
7512 and lookup_cmd_1.
7513 * completer.c (complete_line_internal_1):
7514 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7515 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
7516 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
7517 Likewise.
7518 * infcmd.c (_initialize_infcmd): Likewise.
7519 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
7520 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
7521 * python/py-param.c (add_setshow_generic): Likewise.
7522 * remote.c (_initialize_remote): Likewise.
7523 * top.c (execute_command): Prepend default_args if command has some.
7524 (set_verbose):
7525 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7526 * tracepoint.c (validate_actionline, encode_actions_1):
7527 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7528
bd920864
TBA
75292020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7530
7531 * jit.c (jit_read_descriptor): Use bool as the return type.
7532 (jit_breakpoint_re_set_internal): Use bool as the return type.
7533 Invert the return value logic; return true if the jit breakpoint
7534 has been successfully initialized.
7535 (jit_inferior_init): Update the call to
7536 jit_breakpoint_re_set_internal.
7537
f8098322
PA
75382020-06-22 Pedro Alves <palves@redhat.com>
7539
7540 PR gdb/25939
7541 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
7542 Use the current inferior instead. Don't return
7543 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
7544 wait again.
7545 * sol-thread.c (sol_thread_target::wait): Don't reference
7546 inferior_ptid.
7547 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
7548 (sol_update_thread_list_callback): Use the current inferior's pid
7549 instead of inferior_ptid.
7550
196535a6
RO
75512020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7552
7553 * procfs.c: Cleanup many comments.
7554
7555 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
7556 (AFTER_WATCHFLAG): Replace by value.
7557
7558 (MAIN_PROC_NAME_FORMAT): Inline ...
7559 (create_procinfo): ... here.
7560
7561 (procfs_debug_inferior): Remove SYS_exec handling.
7562 (syscall_is_exec): Likewise.
7563 (procfs_set_exec_trap): Likewise.
7564
7565 (syscall_is_lwp_exit): Inline in callers.
7566 (syscall_is_exit): Likewise.
7567 (syscall_is_exec): Likewise.
7568 (syscall_is_lwp_create): Likewise.
7569
7570 (invalidate_cache): Remove #if 0 code.
7571
7572 (make_signal_thread_runnable): Remove.
7573 (procfs_target::resume): Remove #if 0 code.
7574
cf6f3e86
RO
75752020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7576
7577 PR gdb/25939
7578 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
7579 call ...
7580 (procfs_target::create_inferior): ... here.
7581
48e9cc84
PW
75822020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7583
7584 * exec.c (validate_exec_file): Ensure the build-id is up to
7585 date by calling reopen_exec_file (that checks file timestamp
7586 to decide to re-read the file).
7587
3922b302
PA
75882020-06-18 Pedro Alves <palves@redhat.com>
7589
7590 PR gdb/25412
7591 * gdbthread.h (delete_thread, delete_thread_silent)
7592 (find_thread_ptid): Update comments.
7593 * thread.c (current_thread_): New global.
7594 (is_current_thread): Move higher, and reimplement.
7595 (inferior_thread): Reimplement.
7596 (set_thread_exited): Use bool. Add assertions.
7597 (add_thread_silent): Simplify thread-reuse handling by always
7598 calling delete_thread.
7599 (delete_thread): Remove intro comment.
7600 (find_thread_ptid): Skip exited threads.
7601 (switch_to_thread_no_regs): Write to current_thread_.
7602 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
7603 INFERIOR_PTID. Clear current_thread_.
7604
6dbdab44
PA
76052020-06-18 Pedro Alves <palves@redhat.com>
7606
7607 * aix-thread.c (pd_update): Use switch_to_thread.
7608
2da4b788
PA
76092020-06-18 Pedro Alves <palves@redhat.com>
7610
7611 * ravenscar-thread.c (ravenscar_thread_target): Update.
7612 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
7613 (ravenscar_thread_target::add_active_thread): ... this. Don't
7614 set m_base_ptid here. Update to avoid referencing inferior_ptid.
7615 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
7616
50838d1b
PA
76172020-06-18 Pedro Alves <palves@redhat.com>
7618
7619 * nat/windows-nat.c (current_windows_thread): Remove.
7620 * nat/windows-nat.h (current_windows_thread): Remove.
7621 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
7622 Adjust.
7623 (display_selectors): Adjust to fetch the current
7624 windows_thread_info based on inferior_ptid.
7625 (fake_create_process): No longer write to current_windows_thread.
7626 (windows_nat_target::get_windows_debug_event):
7627 Don't set inferior_ptid or current_windows_thread.
7628 (windows_nat_target::wait): Adjust to not rely on
7629 current_windows_thread.
7630 (do_initial_windows_stuff): Now a method of windows_nat_target.
7631 Switch to the last_ptid thread.
7632 (windows_nat_target::attach): Adjust.
7633 (windows_nat_target::detach): Use switch_to_no_thread instead of
7634 writing to inferior_ptid directly.
7635 (windows_nat_target::create_inferior): Adjust.
7636
31ce04e9
PA
76372020-06-18 Pedro Alves <palves@redhat.com>
7638
7639 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
7640
1ee1a363
PA
76412020-06-18 Pedro Alves <palves@redhat.com>
7642
7643 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
7644 after creating it, instead of writing to inferior_ptid. Don't
7645 write to inferior_ptid.
7646
6d350754
PA
76472020-06-18 Pedro Alves <palves@redhat.com>
7648
7649 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
7650
5d971d48
PA
76512020-06-18 Pedro Alves <palves@redhat.com>
7652
7653 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
7654 it, instead of writing to inferior_ptid.
7655
86e57d1b
PA
76562020-06-18 Pedro Alves <palves@redhat.com>
7657
7658 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
7659 to inferior_ptid.
7660
f2e1c129
PA
76612020-06-18 Pedro Alves <palves@redhat.com>
7662
7663 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
7664 instead of writing to inferior_ptid directly.
7665
60db1b85
PA
76662020-06-18 Pedro Alves <palves@redhat.com>
7667
7668 * corelow.c (core_target::close): Use switch_to_no_thread instead
7669 of writing to inferior_ptid directly.
7670 (add_to_thread_list, core_target_open): Use switch_to_thread
7671 instead of writing to inferior_ptid directly.
7672
fe7d6a8d
PA
76732020-06-18 Pedro Alves <palves@redhat.com>
7674
7675 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
7676 inferior_ptid.
7677 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
7678 inferior_ptid.
7679 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
7680 inferior_ptid directly.
7681 (darwin_nat_target::init_thread_list): Switch to thread, instead
7682 of writing to inferior_ptid.
7683 (darwin_nat_target::attach): Don't write to inferior_ptid.
7684 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
7685
975f8708
PA
76862020-06-18 Pedro Alves <palves@redhat.com>
7687
7688 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
7689 thread.
7690 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
7691 Instead use switch_to_thread.
7692 (gnu_nat_target::detach): Use switch_to_no_thread
7693 instead of writing to inferior_ptid directly. Used passed-in
7694 inferior instead of looking up the inferior by pid.
7695
1a204730
PA
76962020-06-18 Pedro Alves <palves@redhat.com>
7697
7698 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
7699 inferior_ptid.
7700
ebe84f23
PA
77012020-06-18 Pedro Alves <palves@redhat.com>
7702
7703 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
7704 inferior_ptid.
7705 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
7706 thread.
7707 (nto_procfs_target::detach): Avoid referencing
7708 inferior_ptid. Use switch_to_no_thread instead of writing to
7709 inferior_ptid directly.
7710 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
7711 instead of writing to inferior_ptid directly.
7712 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
7713 to thread.
7714
191f02e5
PA
77152020-06-18 Pedro Alves <palves@redhat.com>
7716
7717 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
7718 after creating it, instead of writing to inferior_ptid.
7719 (gdbsim_target_open): Use switch_to_no_thread instead of writing
7720 to inferior_ptid directly.
7721 (gdbsim_target::wait): Don't write to inferior_ptid.
7722
0ac55310
PA
77232020-06-18 Pedro Alves <palves@redhat.com>
7724
7725 * remote.c (remote_target::remote_notice_new_inferior): Use
7726 switch_to_thread instead of writing to inferior_ptid directly.
7727 (remote_target::add_current_inferior_and_thread): Use
7728 switch_to_no_thread instead of writing to inferior_ptid directly.
7729 (extended_remote_target::attach): Use switch_to_inferior_no_thread
7730 and switch_to_thread instead of using set_current_inferior or
7731 writing to inferior_ptid directly.
7732
5233f39b
PA
77332020-06-18 Pedro Alves <palves@redhat.com>
7734
7735 * tracectf.c (ctf_target_open): Switch to added thread instead of
7736 writing to inferior_ptid directly.
7737 (ctf_target::close): Use switch_to_no_thread instead of writing to
7738 inferior_ptid directly.
7739
087e161b
PA
77402020-06-18 Pedro Alves <palves@redhat.com>
7741
7742 * tracefile-tfile.c (tfile_target_open): Don't write to
7743 inferior_ptid directly, instead switch to added thread.
7744 (tfile_target::close): Use switch_to_no_thread instead of writing
7745 to inferior_ptid directly.
7746
7fb43e53
PA
77472020-06-18 Pedro Alves <palves@redhat.com>
7748
7749 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
7750 (procfs_target::detach): Use switch_to_no_thread
7751 instead of writing to inferior_ptid directly.
7752 (do_attach): Change return type to void. Switch to the added
7753 thread.
7754 (procfs_target::create_inferior): Switch to the added thread.
7755 (procfs_do_thread_registers): Don't write to inferior_ptid.
7756
18493a00
PA
77572020-06-18 Pedro Alves <palves@redhat.com>
7758
7759 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
7760 of writing to inferior_ptid.
7761 (scoped_restore_exited_inferior): Delete.
7762 (handle_vfork_child_exec_or_exit): Simplify using
7763 scoped_restore_current_pspace_and_thread. Use switch_to_thread
7764 instead of writing to inferior_ptid.
7765 (THREAD_STOPPED_BY): Delete.
7766 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
7767 (thread_stopped_by_hw_breakpoint): Delete.
7768 (save_waitstatus): Use
7769 scoped_restore_current_thread+switch_to_thread, and call
7770 target_stopped_by_watchpoint instead of
7771 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
7772 instead of thread_stopped_by_sw_breakpoint, and
7773 target_stopped_by_hw_breakpoint instead of
7774 thread_stopped_by_hw_breakpoint.
7775 (handle_inferior_event)
7776 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
7777 inferior_ptid directly, nor
7778 set_current_inferior/set_current_program_space. Use
7779 switch_to_thread / switch_to_inferior_no_thread instead.
7780
a0776b13
PA
77812020-06-18 Pedro Alves <palves@redhat.com>
7782
7783 * target.c (generic_mourn_inferior): Use switch_to_no_thread
7784 instead of writing to inferior_ptid.
7785
6155c136
PA
77862020-06-18 Pedro Alves <palves@redhat.com>
7787
7788 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
7789 added thread.
7790 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
7791 to the added thread.
7792 (inf_ptrace_target::detach_success): Use switch_to_no_thread
7793 instead of writing to inferior_ptid.
7794
c5316fc6
PA
77952020-06-18 Pedro Alves <palves@redhat.com>
7796
7797 * gdbarch-selftests.c: Include "progspace-and-thread.h".
7798 (register_to_value_test): Mock a program_space too. Heap-allocate
7799 the address space. Don't write to inferior_ptid. Use
7800 switch_to_thread instead.
7801
8df01799
PA
78022020-06-18 Pedro Alves <palves@redhat.com>
7803
7804 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
7805 Delete.
7806 (find_signalled_thread()): New, factored out from
7807 linux_make_corefile_notes and adjusted to handle exited threads.
7808 (linux_make_corefile_notes): Adjust to use the new
7809 find_signalled_thread.
7810
41792d68
PA
78112020-06-18 Pedro Alves <palves@redhat.com>
7812
7813 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
7814 of saving/restoring inferior_ptid.
7815
612f258a
TT
78162020-06-17 Tom Tromey <tom@tromey.com>
7817
7818 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
7819 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
7820 declare.
7821 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
7822
efb763a5
SM
78232020-06-15 Simon Marchi <simon.marchi@efficios.com>
7824
7825 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
7826 of partial symtabs.
7827
2951f6c0
SM
78282020-06-17 Simon Marchi <simon.marchi@efficios.com>
7829
7830 * regformats/reg-arm.dat: Remove.
7831 * regformats/reg-bfin.dat: Remove.
7832 * regformats/reg-cris.dat: Remove.
7833 * regformats/reg-crisv32.dat: Remove.
7834 * regformats/reg-m32r.dat: Remove.
7835 * regformats/reg-tilegx.dat: Remove.
7836 * regformats/reg-tilegx32.dat: Remove.
7837
7d458ea5
SM
78382020-06-17 Simon Marchi <simon.marchi@efficios.com>
7839
7840 * features/Makefile (WHICH): Remove arm files.
7841 * regformats/arm/arm-with-iwmmxt.dat: Remove.
7842 * regformats/arm/arm-with-neon.dat: Remove.
7843 * regformats/arm/arm-with-vfpv2.dat: Remove.
7844 * regformats/arm/arm-with-vfpv3.dat: Remove.
7845
3af96c0d
SM
78462020-06-17 Simon Marchi <simon.marchi@efficios.com>
7847
7848 * features/Makefile (XMLTOC): Remove rx.xml.
7849
b25e22fd
PA
78502020-06-17 Pedro Alves <palves@redhat.com>
7851
7852 * gdbthread.h (thread_control_state) <trap_expected> Update
7853 comments.
7854
a78a19b1
AB
78552020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7856
7857 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
7858 ada_language::lookup_symbol_nonlocal.
7859 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
7860 (ada_language::lookup_symbol_nonlocal): New member function,
7861 implementation from ada_lookup_symbol_nonlocal.
7862 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
7863 initializer.
7864 (cplus_language_data): Delete la_lookup_symbol_nonlocal
7865 initializer.
7866 (cplus_language::lookup_symbol_nonlocal): New member function.
7867 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
7868 (minimal_language_data) Likewise.
7869 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
7870 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
7871 initializer.
7872 (d_language::lookup_symbol_nonlocal): New member function.
7873 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
7874 initializer.
7875 (f_language::lookup_symbol_nonlocal): New member function.
7876 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
7877 initializer.
7878 * language.c (unknown_language_data): Likewise.
7879 (auto_language_data): Likewise.
7880 * language.h (language_data): Delete la_lookup_symbol_nonlocal
7881 field.
7882 (language_defn::lookup_symbol_nonlocal): New member function.
7883 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
7884 initializer.
7885 * objc-lang.c (objc_language_data): Likewise.
7886 * opencl-lang.c (opencl_language_data): Likewise.
7887 * p-lang.c (pascal_language_data): Likewise.
7888 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
7889 rust_language::lookup_symbol_nonlocal.
7890 (rust_language_data): Delete la_lookup_symbol_nonlocal
7891 initializer.
7892 (rust_language::lookup_symbol_nonlocal): New member function,
7893 implementation from rust_lookup_symbol_nonlocal.
7894 * symtab.c (lookup_symbol_aux): Update call to
7895 lookup_symbol_nonlocal.
7896 (basic_lookup_symbol_nonlocal): Rename to...
7897 (language_defn::lookup_symbol_nonlocal): ...this, and update
7898 header comment. Remove language_defn parameter, and replace with
7899 uses of `this'.
7900 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
7901
ebe2334e
AB
79022020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7903
7904 * ada-lang.c (ada_language_data): Delete la_value_print_inner
7905 initializer.
7906 (ada_language::value_print_inner): New member function.
7907 * c-lang.c (c_language_data): Delete la_value_print_inner
7908 initializer.
7909 (cplus_language_data): Likewise.
7910 (asm_language_data): Likewise.
7911 (minimal_language_data): Likewise.
7912 * d-lang.c (d_language_data): Likewise.
7913 (d_language::value_print_inner): New member function.
7914 * f-lang.c (f_language_data): Delete la_value_print_inner
7915 initializer.
7916 (f_language::value_print_inner): New member function.
7917 * f-lang.h (f_value_print_innner): Rename to...
7918 (f_value_print_inner): ...this (note spelling of 'inner').
7919 * f-valprint.c (f_value_print_innner): Rename to...
7920 (f_value_print_inner): ...this (note spelling of 'inner').
7921 * go-lang.c (go_language_data): Delete la_value_print_inner
7922 initializer.
7923 (go_language::value_print_inner): New member function.
7924 * language.c (language_defn::value_print_inner): Define new member
7925 function.
7926 (unk_lang_value_print_inner): Delete.
7927 (unknown_language_data): Delete la_value_print_inner initializer.
7928 (unknown_language::value_print_inner): New member function.
7929 (auto_language_data): Delete la_value_print_inner initializer.
7930 (auto_language::value_print_inner): New member function.
7931 * language.h (language_data): Delete la_value_print_inner field.
7932 (language_defn::value_print_inner): Delcare new member function.
7933 * m2-lang.c (m2_language_data): Delete la_value_print_inner
7934 initializer.
7935 (m2_language::value_print_inner): New member function.
7936 * objc-lang.c (objc_language_data): Delete la_value_print_inner
7937 initializer.
7938 * opencl-lang.c (opencl_language_data): Likewise.
7939 * p-lang.c (pascal_language_data): Likewise.
7940 (pascal_language::value_print_inner): New member function.
7941 * rust-lang.c (rust_language_data): Delete la_value_print_inner
7942 initializer.
7943 (rust_language::value_print_inner): New member function.
7944 * valprint.c (do_val_print): Update call to value_print_inner.
7945
a1d1fa3e
AB
79462020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7947
7948 * ada-lang.c (ada_language_data): Delete la_value_print
7949 initializer.
7950 (ada_language::value_print): New member function.
7951 * c-lang.c (c_language_data): Delete la_value_print initializer.
7952 (cplus_language_data): Likewise.
7953 (asm_language_data): Likewise.
7954 (minimal_language_data): Likewise.
7955 * d-lang.c (d_language_data): Likewise.
7956 * f-lang.c (f_language_data): Likewise.
7957 * go-lang.c (go_language_data): Likewise.
7958 * language.c (unk_lang_value_print): Delete.
7959 (language_defn::value_print): Define new member function.
7960 (unknown_language_data): Delete la_value_print initializer.
7961 (unknown_language::value_print): New member function.
7962 (auto_language_data): Delete la_value_print initializer.
7963 (auto_language::value_print): New member function.
7964 * language.h (language_data): Delete la_value_print field.
7965 (language_defn::value_print): Declare new member function.
7966 (LA_VALUE_PRINT): Update call to value_print.
7967 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
7968 * objc-lang.c (objc_language_data): Likewise.
7969 * opencl-lang.c (opencl_language_data): Likewise.
7970 * p-lang.c (pascal_language_data): Likewise.
7971 (pascal_language::value_print): New member function.
7972 * rust-lang.c (rust_language_data): Delete la_value_print
7973 initializer.
7974
f16a9f57
AB
79752020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7976
7977 * ada-lang.c (ada_watch_location_expression): Rename to
7978 ada_language::watch_location_expression.
7979 (ada_language_data): Delete la_watch_location_expression
7980 initializer.
7981 (ada_language::watch_location_expression): New member function,
7982 implementation from ada_watch_location_expression.
7983 * breakpoint.c (watch_command_1): Update call to
7984 watch_location_expression.
7985 * c-lang.c (c_watch_location_expression): Rename to
7986 language_defn::watch_location_expression.
7987 (c_language_data): Delete la_watch_location_expression
7988 initializer.
7989 (cplus_language_data): Likewise.
7990 (asm_language_data): Likewise.
7991 (minimal_language_data): Likewise.
7992 * c-lang.h (c_watch_location_expression): Delete declaration.
7993 * d-lang.c (d_language_data): Delete la_watch_location_expression
7994 initializer.
7995 * f-lang.c (f_language_data): Likewise.
7996 * go-lang.c (go_language_data): Likewise.
7997 * language.c (language_defn::watch_location_expression): Member
7998 function implementation from c_watch_location_expression.
7999 (unknown_language_data): Delete la_watch_location_expression
8000 initializer.
8001 (auto_language_data): Likewise.
8002 * language.h (language_data): Delete la_watch_location_expression
8003 field.
8004 (language_defn::watch_location_expression): Declare new member
8005 function.
8006 * m2-lang.c (m2_language_data): Delete
8007 la_watch_location_expression initializer.
8008 * objc-lang.c (objc_language_data): Likewise.
8009 * opencl-lang.c (opencl_language_data): Likewise.
8010 * p-lang.c (pascal_language_data): Likewise.
8011 * rust-lang.c (rust_watch_location_expression): Rename to
8012 rust_language::watch_location_expression.
8013 (rust_language_data): Delete la_watch_location_expression
8014 initializer.
8015 (rust_language::watch_location_expression): New member function,
8016 implementation from rust_watch_location_expression.
8017
7e56227d
AB
80182020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8019
8020 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
8021 ada_language::collect_symbol_completion_matches.
8022 (ada_language_data): Delete la_collect_symbol_completion_matches
8023 initializer.
8024 (ada_language::collect_symbol_completion_matches): New member
8025 function, implementation from
8026 ada_collect_symbol_completion_matches.
8027 * c-lang.c (c_language_data): Delete
8028 la_collect_symbol_completion_matches initializer.
8029 (cplus_language_data): Likewise.
8030 (asm_language_data): Likewise.
8031 (minimal_language_data): Likewise.
8032 * d-lang.c (d_language_data): Likewise.
8033 * f-lang.c (f_collect_symbol_completion_matches): Rename to
8034 f_language::collect_symbol_completion_matches.
8035 (f_language_data): Delete la_collect_symbol_completion_matches
8036 initializer.
8037 (f_language::collect_symbol_completion_matches) New member
8038 function, implementation from f_collect_symbol_completion_matches.
8039 * go-lang.c (go_language_data): Delete
8040 la_collect_symbol_completion_matches initializer.
8041 * language.c (unknown_language_data): Likewise.
8042 (auto_language_data): Likewise.
8043 * language.h (language_data): Delete
8044 la_collect_symbol_completion_matches field.
8045 (language_defn::collect_symbol_completion_matches): New member
8046 function.
8047 * m2-lang.c (m2_language_data): Delete
8048 la_collect_symbol_completion_matches initializer.
8049 * objc-lang.c (objc_language_data): Likewise.
8050 * opencl-lang.c (opencl_language_data): Likewise.
8051 * p-lang.c (pascal_language_data): Likewise.
8052 * rust-lang.c (rust_language_data): Likewise.
8053 * symtab.c (default_collect_symbol_completion_matches): Delete.
8054 (collect_symbol_completion_matches): Update call to
8055 collect_symbol_completion_matches.
8056 (collect_symbol_completion_matches_type): Likewise.
8057 * symtab.h (default_collect_symbol_completion_matches): Delete
8058 declaration.
8059
53fc67f8
AB
80602020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8061
8062 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
8063 (ada_language_data): Delete la_word_break_characters initializer.
8064 (ada_language::word_break_characters): New member function.
8065 * c-lang.c (c_language_data): Delete la_word_break_characters
8066 initializer.
8067 (cplus_language_data): Likewise.
8068 (asm_language_data): Likewise.
8069 (minimal_language_data): Likewise.
8070 * completer.c: Update global comment.
8071 (advance_to_expression_complete_word_point): Update call to
8072 word_break_characters.
8073 (complete_files_symbols): Likewise.
8074 (complete_line_internal_1): Likewise.
8075 (default_completer_handle_brkchars): Likewise.
8076 (skip_quoted_chars): Likewise.
8077 * d-lang.c (d_language_data): Delete la_word_break_characters
8078 initializer.
8079 * f-lang.c (f_word_break_characters): Delete.
8080 (f_language_data): Delete la_word_break_characters initializer.
8081 (f_language::word_break_characters): New member function.
8082 * go-lang.c (go_language_data): Delete la_word_break_characters
8083 initializer.
8084 * language.c (unknown_language_data): Likewise.
8085 (auto_language_data): Likewise.
8086 * language.h (default_word_break_characters): Move declaration to
8087 earlier in the file.
8088 (language_data): Delete la_word_break_characters field.
8089 (language_defn::word_break_characters): New member function.
8090 * m2-lang.c (m2_language_data): Delete la_word_break_characters
8091 initializer.
8092 * objc-lang.c (objc_language_data): Likewise.
8093 * opencl-lang.c (opencl_language_data): Likewise.
8094 * p-lang.c (pascal_language_data): Likewise.
8095 * rust-lang.c (rust_language_data): Likewise.
8096
c9debfb9
AB
80972020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8098
8099 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
8100 (ada_language_data): Delete la_get_symbol_name_matcher
8101 initializer.
8102 (language_defn::get_symbol_name_matcher_inner): New member
8103 function.
8104 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
8105 initializer.
8106 (cplus_language_data): Likewise.
8107 (cplus_language::get_symbol_name_matcher_inner): New member
8108 function.
8109 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
8110 (minimal_language_data): Likewise.
8111 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
8112 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
8113 initializer.
8114 * dictionary.c (iter_match_first_hashed): Update call to
8115 get_symbol_name_matcher.
8116 (iter_match_next_hashed): Likewise.
8117 (iter_match_next_linear): Likewise.
8118 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
8119 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
8120 initializer.
8121 (f_language::get_symbol_name_matcher_inner): New member function.
8122 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
8123 initializer.
8124 * language.c (default_symbol_name_matcher): Update header comment,
8125 make static.
8126 (language_defn::get_symbol_name_matcher): New definition.
8127 (language_defn::get_symbol_name_matcher_inner): Likewise.
8128 (get_symbol_name_matcher): Delete.
8129 (unknown_language_data): Delete la_get_symbol_name_matcher
8130 initializer.
8131 (auto_language_data): Likewise.
8132 * language.h (language_data): Delete la_get_symbol_name_matcher
8133 field.
8134 (language_defn::get_symbol_name_matcher): New member function.
8135 (language_defn::get_symbol_name_matcher_inner): Likewise.
8136 (default_symbol_name_matcher): Delete declaration.
8137 * linespec.c (find_methods): Update call to
8138 get_symbol_name_matcher.
8139 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
8140 initializer.
8141 * minsyms.c (lookup_minimal_symbol): Update call to
8142 get_symbol_name_matcher.
8143 (iterate_over_minimal_symbols): Likewise.
8144 * objc-lang.c (objc_language_data): Delete
8145 la_get_symbol_name_matcher initializer.
8146 * opencl-lang.c (opencl_language_data): Likewise.
8147 * p-lang.c (pascal_language_data): Likewise.
8148 * psymtab.c (psymbol_name_matches): Update call to
8149 get_symbol_name_matcher.
8150 * rust-lang.c (rust_language_data): Delete
8151 la_get_symbol_name_matcher initializer.
8152 * symtab.c (symbol_matches_search_name): Update call to
8153 get_symbol_name_matcher.
8154 (compare_symbol_name): Likewise.
8155
9a49ad8c
AB
81562020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8157
8158 * ada-lang.c (ada_language_data): Delete la_compute_program
8159 initializer.
8160 * c-lang.c (c_language_data): Likewise.
8161 (c_language::compute_program): New member function.
8162 (cplus_language_data): Delete la_compute_program initializer.
8163 (cplus_language::compute_program): New member function.
8164 (asm_language_data): Delete la_compute_program initializer.
8165 (minimal_language_data): Likewise.
8166 * c-lang.h (c_compute_program): Update comment.
8167 (cplus_compute_program): Likewise.
8168 * compile/compile-c-support.c (c_compute_program): Likewise.
8169 (cplus_compute_program): Likewise.
8170 * compile/compile.c (compile_to_object): Update call to
8171 la_compute_program.
8172 * d-lang.c (d_language_data): Delete la_compute_program
8173 initializer.
8174 * f-lang.c (f_language_data): Likewise.
8175 * go-lang.c (go_language_data): Likewise.
8176 * language.c (unknown_language_data): Likewise.
8177 (auto_language_data): Likewise.
8178 * language.h (language_data): Delete la_compute_program field.
8179 (language_defn::compute_program): New member function.
8180 * m2-lang.c (m2_language_data): Delete la_compute_program
8181 initializer.
8182 * objc-lang.c (objc_language_data): Likewise.
8183 * opencl-lang.c (opencl_language_data): Likewise.
8184 * p-lang.c (pascal_language_data): Likewise.
8185 * rust-lang.c (rust_language_data): Likewise.
8186
eff93b4d
AB
81872020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8188
8189 * ada-lang.c (ada_language_data) Delete
8190 la_class_name_from_physname initializer.
8191 * c-lang.c (c_language_data): Likewise.
8192 (cplus_language_data): Likewise.
8193 (cplus_language::class_name_from_physname): New member function.
8194 (asm_language_data): Delete la_class_name_from_physname
8195 initializer.
8196 (minimal_language_data): Likewise.
8197 * d-lang.c (d_language_data): Likewise.
8198 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
8199 method on language_defn class.
8200 (guess_full_die_structure_name): Likewise.
8201 * f-lang.c (f_language_data): Delete la_class_name_from_physname
8202 initializer.
8203 * go-lang.c (go_language_data): Likewise.
8204 * language.c (language_class_name_from_physname): Delete.
8205 (unk_lang_class_name): Delete.
8206 (unknown_language_data): Delete la_class_name_from_physname
8207 initializer.
8208 (auto_language_data): Likewise.
8209 * language.h (language_data): Delete la_class_name_from_physname
8210 field.
8211 (language_defn::class_name_from_physname): New function.
8212 (language_class_name_from_physname): Delete declaration.
8213 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
8214 initializer.
8215 * objc-lang.c (objc_language_data): Likewise.
8216 * opencl-lang.c (opencl_language_data): Likewise.
8217 * p-lang.c (pascal_language_data): Likewise.
8218 * rust-lang.c (rust_language_data): Likewise.
8219
de543742
TT
82202020-06-16 Tom Tromey <tom@tromey.com>
8221
8222 * tui/tui-data.h (STATUS_NAME): New macro.
8223 * tui/tui-layout.c (tui_remove_some_windows)
8224 (initialize_known_windows, tui_register_window)
8225 (tui_layout_split::remove_windows, initialize_layouts)
8226 (tui_new_layout_command): Don't use hard-coded window names.
8227
a350efd4
TT
82282020-06-16 Tom Tromey <tom@tromey.com>
8229
8230 PR tui/25348:
8231 * tui/tui.c (tui_ensure_readline_initialized): Rename from
8232 tui_initialize_readline. Only run once. Call rl_initialize.
8233 * tui/tui.h (tui_ensure_readline_initialized): Rename from
8234 tui_initialize_readline.
8235 * tui/tui-io.c (tui_setup_io): Call
8236 tui_ensure_readline_initialized.
8237 * tui/tui-interp.c (tui_interp::init): Update.
8238
39ec0490
TT
82392020-06-16 Tom Tromey <tom@tromey.com>
8240
8241 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
8242 Also preserve the status window.
8243
d2d1ea20
TT
82442020-06-16 Tom Tromey <tom@tromey.com>
8245
8246 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
8247 where m_window==nullptr.
8248
66920317
TT
82492020-06-15 Tom Tromey <tromey@adacore.com>
8250
8251 * windows-nat.c (windows_nat::handle_output_debug_string):
8252 Update.
8253 (windows_nat::handle_ms_vc_exception): Update.
8254 * target.h (target_read_string): Change API.
8255 * target.c (target_read_string): Change API.
8256 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
8257 Update.
8258 * solib-frv.c (frv_current_sos): Update.
8259 * solib-dsbt.c (dsbt_current_sos): Update.
8260 * solib-darwin.c (darwin_current_sos): Update.
8261 * linux-thread-db.c (inferior_has_bug): Update.
8262 * expprint.c (print_subexp_standard): Update.
8263 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
8264 (ada_exception_message_1): Update.
8265
a5d871dd
TT
82662020-06-15 Tom Tromey <tromey@adacore.com>
8267
8268 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
8269
670e35fa
TT
82702020-06-15 Tom Tromey <tromey@adacore.com>
8271
8272 * valprint.c (read_string): Update comment.
8273 * target.c (MIN): Remove.
8274 (target_read_string): Rewrite.
8275
f5272a3b
TT
82762020-06-15 Tom Tromey <tromey@adacore.com>
8277
8278 * corefile.c (read_memory_string): Remove.
8279 * ada-valprint.c (ada_value_print_ptr): Update.
8280 * ada-lang.h (ada_tag_name): Change return type.
8281 * ada-lang.c (type_from_tag): Update.
8282 (ada_tag_name_from_tsd): Change return type. Use
8283 target_read_string.
8284 (ada_tag_name): Likewise.
8285 * gdbcore.h (read_memory_string): Don't declare.
8286
2c074f49
HD
82872020-06-14 Hannes Domani <ssbssa@yahoo.de>
8288
8289 * symtab.c (rbreak_command): Ignore Windows drive colon.
8290
6a17d503
SM
82912020-06-12 Simon Marchi <simon.marchi@efficios.com>
8292
8293 * NEWS: Mention removed GDBserver host support.
8294
453c733f
NC
82952020-06-12 Nelson Chu <nelson.chu@sifive.com>
8296
8297 * features/riscv/rebuild-csr-xml.sh: Updated.
8298
2b4e6a3f
TT
82992020-06-11 Tom Tromey <tom@tromey.com>
8300
8301 PR gdb/18318:
8302 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
8303
4412332f
JG
83042020-06-09 Jonny Grant <jg@jguk.org>
83052020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
8306
8307 * main.c (captured_main_1): Don't print new line after help.
8308 (print_gdb_help): add mailing list and IRC channel information
8309 to --help. Add new lines between items in the footer. Remove
8310 quotes around bug url.
8311
2f33032a
KS
83122020-06-11 Keith Seitz <keiths@redhat.com>
8313
8314 PR gdb/21356
8315 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
8316 Resolve typedefs for type length calculations.
8317
7ab96794
TV
83182020-06-10 Tom de Vries <tdevries@suse.de>
8319
8320 PR ada/24713
8321 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
8322 (write_psymbols): Enable .gdb_index for ada.
8323 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
8324 ada.
8325
e5f3ece2
TV
83262020-06-10 Tom de Vries <tdevries@suse.de>
8327
8328 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
8329 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
8330 namei" instead of "const char *name" argument.
8331 (dw2_map_matching_symbols): Use "offset_type namei" variant of
8332 dw2_symtab_iter_init.
8333
940da03e
SM
83342020-06-08 Simon Marchi <simon.marchi@efficios.com>
8335
8336 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
8337 to use type::field and field::type instead.
8338
b6cdac4b
SM
83392020-06-08 Simon Marchi <simon.marchi@efficios.com>
8340
8341 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
8342 to use field::type instead.
8343
5d14b6e5
SM
83442020-06-08 Simon Marchi <simon.marchi@efficios.com>
8345
8346 * gdbtypes.h (struct field) <type, set_type>: New methods.
8347 Rename `type` field to...
8348 <m_type>: ... this. Change references throughout to use type or
8349 set_type methods.
8350 (FIELD_TYPE): Use field::type. Change call sites that modify
8351 the field's type to use field::set_type instead.
8352
3d967001
SM
83532020-06-08 Simon Marchi <simon.marchi@efficios.com>
8354
8355 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
8356 to use type::index_type instead.
8357
262abc0d
SM
83582020-06-08 Simon Marchi <simon.marchi@efficios.com>
8359
8360 * gdbtypes.h (struct type) <index_type, set_index_type>: New
8361 methods.
8362 (TYPE_INDEX_TYPE): Use type::index_type.
8363 * gdbtypes.c (create_array_type_with_stride): Likewise.
8364
82836c92
TT
83652020-06-07 Tom Tromey <tom@tromey.com>
8366
8367 * valprint.c (generic_val_print_float): Remove "embedded_offset"
8368 parameter.
8369 (generic_value_print): Update.
8370
940dace9
AB
83712020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8372
8373 Revert commit 982a38f60b0.
8374 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
8375
982a38f6
AB
83762020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8377
8378 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
8379 avoid use after free.
8380
82f06518
TV
83812020-06-05 Tom de Vries <tdevries@suse.de>
8382
8383 * NEWS: Fix typos.
8384
f8c41851
SM
83852020-06-04 Simon Marchi <simon.marchi@efficios.com>
8386
8387 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
8388 the per_bfd object.
8389 (dwarf2_read_debug_names): Likewise.
8390 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
8391 object when re-using a per_bfd object with an index.
8392
f9b5d5ea
TV
83932020-06-03 Tom de Vries <tdevries@suse.de>
8394
8395 PR symtab/26046
8396 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
8397 children for C++.
8398 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
8399 DW_TAG_subprogram.
8400
f6eee2d0
AB
84012020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8402
8403 * ada-lang.c (ada_language_data): Delete skip_trampoline
8404 initializer.
8405 * c-lang.c (c_language_data): Likewise.
8406 (cplus_language_data): Likewise.
8407 (cplus_language::skip_trampoline): New member function.
8408 (asm_language_data): Delete skip_trampoline initializer.
8409 (minimal_language_data): Likewise.
8410 * d-lang.c (d_language_data): Likewise.
8411 * f-lang.c (f_language_data): Likewise.
8412 * go-lang.c (go_language_data): Likewise.
8413 * language.c (unk_lang_trampoline): Delete function.
8414 (skip_language_trampoline): Update.
8415 (unknown_language_data): Delete skip_trampoline initializer.
8416 (auto_language_data): Likewise.
8417 * language.h (language_data): Delete skip_trampoline field.
8418 (language_defn::skip_trampoline): New function.
8419 * m2-lang.c (m2_language_data): Delete skip_trampoline
8420 initializer.
8421 * objc-lang.c (objc_skip_trampoline): Delete function, move
8422 implementation to objc_language::skip_trampoline.
8423 (objc_language_data): Delete skip_trampoline initializer.
8424 (objc_language::skip_trampoline): New member function with
8425 implementation from objc_skip_trampoline.
8426 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
8427 initializer.
8428 * p-lang.c (pascal_language_data): Likewise.
8429 * rust-lang.c (rust_language_data): Likewise.
8430
0a50df5d
AB
84312020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8432
8433 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
8434 (ada_language::demangle): New member function.
8435 * c-lang.c (c_language_data): Delete la_demangle initializer.
8436 (cplus_language_data): Delete la_demangle initializer.
8437 (cplus_language::demangle): New member function.
8438 (asm_language_data): Delete la_demangle initializer.
8439 (minimal_language_data): Delete la_demangle initializer.
8440 * d-lang.c (d_language_data): Delete la_demangle initializer.
8441 (d_language::demangle): New member function.
8442 * f-lang.c (f_language_data): Delete la_demangle initializer.
8443 (f_language::demangle): New member function.
8444 * go-lang.c (go_language_data): Delete la_demangle initializer.
8445 (go_language::demangle): New member function.
8446 * language.c (language_demangle): Update.
8447 (unk_lang_demangle): Delete.
8448 (unknown_language_data): Delete la_demangle initializer.
8449 (unknown_language::demangle): New member function.
8450 (auto_language_data): Delete la_demangle initializer.
8451 (auto_language::demangle): New member function.
8452 * language.h (language_data): Delete la_demangle field.
8453 (language_defn::demangle): New function.
8454 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
8455 * objc-lang.c (objc_language_data): Delete la_demangle
8456 initializer.
8457 (objc_language::demangle): New member function.
8458 * opencl-lang.c (opencl_language_data): Delete la_demangle
8459 initializer.
8460 * p-lang.c (pascal_language_data): Likewise.
8461 * rust-lang.c (rust_language_data): Likewise.
8462 (rust_language::demangle): New member function.
8463
fbfb0a46
AB
84642020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8465
8466 * ada-lang.c (ada_language_data): Delete la_print_type
8467 initializer.
8468 (ada_language::print_type): New member function.
8469 * c-lang.c (c_language_data): Delete la_print_type initializer.
8470 (c_language::print_type): New member function.
8471 (cplus_language_data): Delete la_print_type initializer.
8472 (cplus_language::print_type): New member function.
8473 (asm_language_data): Delete la_print_type initializer.
8474 (asm_language::print_type): New member function.
8475 (minimal_language_data): Delete la_print_type initializer.
8476 (minimal_language::print_type): New member function.
8477 * d-lang.c (d_language_data): Delete la_print_type initializer.
8478 (d_language::print_type): New member function.
8479 * f-lang.c (f_language_data): Delete la_print_type initializer.
8480 (f_language::print_type): New member function.
8481 * go-lang.c (go_language_data): Delete la_print_type initializer.
8482 (go_language::print_type): New member function.
8483 * language.c (unk_lang_print_type): Delete.
8484 (unknown_language_data): Delete la_print_type initializer.
8485 (unknown_language::print_type): New member function.
8486 (auto_language_data): Delete la_print_type initializer.
8487 (auto_language::print_type): New member function.
8488 * language.h (language_data): Delete la_print_type field.
8489 (language_defn::print_type): New function.
8490 (LA_PRINT_TYPE): Update.
8491 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
8492 (m2_language::print_type): New member function.
8493 * objc-lang.c (objc_language_data): Delete la_print_type
8494 initializer.
8495 (objc_language::print_type): New member function.
8496 * opencl-lang.c (opencl_print_type): Delete, implementation moved
8497 to opencl_language::print_type.
8498 (opencl_language_data): Delete la_print_type initializer.
8499 (opencl_language::print_type): New member function, implementation
8500 from opencl_print_type.
8501 * p-lang.c (pascal_language_data): Delete la_print_type
8502 initializer.
8503 (pascal_language::print_type): New member function.
8504 * rust-lang.c (rust_print_type): Delete, implementation moved to
8505 rust_language::print_type.
8506 (rust_language_data): Delete la_print_type initializer.
8507 (rust_language::print_type): New member function, implementation
8508 from rust_print_type.
8509
6f827019
AB
85102020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8511
8512 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
8513 implementation moves to...
8514 (ada_language::sniff_from_mangled_name): ...here. Update return
8515 type.
8516 (ada_language_data): Delete la_sniff_from_mangled_name
8517 initializer.
8518 * c-lang.c (c_language_data): Likewise.
8519 (cplus_language_data): Likewise.
8520 (cplus_language::sniff_from_mangled_name): New member function,
8521 implementation taken from gdb_sniff_from_mangled_name.
8522 (asm_language_data): Delete la_sniff_from_mangled_name
8523 initializer.
8524 (minimal_language_data): Likewise.
8525 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
8526 implementation moves to cplus_language::sniff_from_mangled_name.
8527 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
8528 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
8529 moves to...
8530 (d_language::sniff_from_mangled_name): ...here.
8531 (d_language_data): Delete la_sniff_from_mangled_name initializer.
8532 * f-lang.c (f_language_data): Likewise.
8533 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
8534 moves to...
8535 (go_language::sniff_from_mangled_name): ...here.
8536 (go_language_data): Delete la_sniff_from_mangled_name initializer.
8537 * language.c (language_sniff_from_mangled_name): Delete.
8538 (unknown_language_data): Delete la_sniff_from_mangled_name
8539 initializer.
8540 (auto_language_data): Likewise.
8541 * language.h (language_data): Delete la_sniff_from_mangled_name
8542 field.
8543 (language_defn::sniff_from_mangled_name): New function.
8544 (language_sniff_from_mangled_name): Delete declaration.
8545 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
8546 field.
8547 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
8548 implementation moves to...
8549 (objc_language::sniff_from_mangled_name): ...here.
8550 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
8551 * opencl-lang.c (opencl_language_data): Likewise.
8552 * p-lang.c (pascal_language_data): Likewise.
8553 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
8554 implementation moves to...
8555 (rust_language::sniff_from_mangled_name): ...here.
8556 (rust_language_data): Delete la_sniff_from_mangled_name
8557 initializer.
8558 * symtab.c (symbol_find_demangled_name): Call
8559 sniff_from_mangled_name member function.
8560
fb8006fd
AB
85612020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8562
8563 * ada-lang.c (ada_language_data): Delete la_search_name_hash
8564 initializer.
8565 * c-lang.c (c_language_data): Likewise.
8566 (cplus_language_data): Likewise.
8567 (cplus_language::search_name_hash): New member function.
8568 (asm_language_data): Delete la_search_name_hash initializer.
8569 (minimal_language_data): Likewise.
8570 * d-lang.c (d_language_data): Likewise.
8571 * dictionary.c (default_search_name_hash): Rename to...
8572 (language_defn::search_name_hash): ...this.
8573 * f-lang.c (f_language_data): Likewise.
8574 (f_language::search_name_hash): New member function.
8575 * go-lang.c (go_language_data): Delete la_search_name_hash
8576 initializer.
8577 * language.c (unknown_language_data): Likewise.
8578 (auto_language_data): Likewise.
8579 * language.h (struct language_data): Delete la_search_name_hash
8580 field.
8581 (language_defn::search_name_hash): Declare new member function.
8582 (default_search_name_hash): Delete declaration.
8583 * m2-lang.c (m2_language_data): Delete la_search_name_hash
8584 initializer.
8585 * objc-lang.c (objc_language_data): Likewise.
8586 * opencl-lang.c (opencl_language_data): Likewise.
8587 * p-lang.c (pascal_language_data): Likewise.
8588 * rust-lang.c (rust_language_data): Likewise.
8589 * symtab.c (search_name_hash): Update call.
8590
8e25bafe
AB
85912020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8592
8593 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
8594 initializer.
8595 * c-lang.c (class compile_instance): Declare.
8596 (c_language_data): Delete la_get_compile_instance initializer.
8597 (c_language::get_compile_instance): New member function.
8598 (cplus_language_data): Delete la_get_compile_instance initializer.
8599 (cplus_language::get_compile_instance): New member function.
8600 (asm_language_data): Delete la_get_compile_instance initializer.
8601 (minimal_language_data): Likewise.
8602 * c-lang.h (c_get_compile_context): Update comment.
8603 (cplus_get_compile_context): Update comment.
8604 * compile/compile.c (compile_to_object): Update calls, don't rely
8605 on function pointer being NULL.
8606 * d-lang.c (d_language_data): Delete la_get_compile_instance
8607 initializer.
8608 * f-lang.c (f_language_data): Likewise.
8609 * go-lang.c (go_language_data): Likewise.
8610 * language.c (unknown_language_data): Likewise.
8611 (auto_language_data): Likewise.
8612 * language.h (language_data): Delete la_get_compile_instance field.
8613 (language_defn::get_compile_instance): New member function.
8614 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
8615 initializer.
8616 * objc-lang.c (objc_language_data): Likewise.
8617 * opencl-lang.c (opencl_language_data): Likewise.
8618 * p-lang.c (pascal_language_data): Likewise.
8619 * rust-lang.c (rust_language_data): Likewise.
8620
4009ee92
AB
86212020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8622
8623 * ada-lang.c (ada_add_all_symbols): Update comment.
8624 (ada_iterate_over_symbols): Delete, move implementation to...
8625 (ada_language::iterate_over_symbols): ...here, a new member
8626 function, rewrite to use range based for loop.
8627 (ada_language_data): Delete la_iterate_over_symbols initializer.
8628 * c-lang.c (c_language_data): Likewise.
8629 (cplus_language_data): Likewise.
8630 (asm_language_data): Likewise.
8631 (minimal_language_data): Likewise.
8632 * d-lang.c (d_language_data): Likewise.
8633 * f-lang.c (f_language_data): Likewise.
8634 * go-lang.c (go_language_data): Likewise.
8635 * language.c (unknown_language_data): Likewise.
8636 (auto_language_data): Likewise.
8637 * language.h (language_data): Delete la_iterate_over_symbols field.
8638 (language_defn::iterate_over_symbols): New member function.
8639 (LA_ITERATE_OVER_SYMBOLS): Update.
8640 * linespec.c (iterate_over_all_matching_symtabs): Update.
8641 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
8642 initializer.
8643 * objc-lang.c (objc_language_data): Likewise.
8644 * opencl-lang.c (opencl_language_data): Likewise.
8645 * p-lang.c (pascal_language_data): Likewise.
8646 * rust-lang.c (rust_language_data): Likewise.
8647
54f4ca46
AB
86482020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8649
8650 * ada-lang.c (ada_language_data): Delete
8651 la_lookup_transparent_type initializer.
8652 * c-lang.c (c_language_data): Likewise.
8653 (cplus_language_data): Likewise.
8654 (cplus_language::lookup_transparent_type): New member function.
8655 (asm_language_data): Delete la_lookup_transparent_type
8656 initializer.
8657 (minimal_language_data): Likewise.
8658 * d-lang.c (d_language_data): Likewise.
8659 * f-lang.c (f_language_data): Likewise.
8660 * go-lang.c (go_language_data): Likewise.
8661 * language.c (unknown_language_data): Likewise.
8662 (auto_language_data): Likewise.
8663 * language.h (struct language_data): Delete
8664 la_lookup_transparent_type field.
8665 (language_defn::lookup_transparent_type): New member function.
8666 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
8667 initializer.
8668 * objc-lang.c (objc_language_data): Likewise.
8669 * opencl-lang.c (opencl_language_data): Likewise.
8670 * p-lang.c (pascal_language_data): Likewise.
8671 * rust-lang.c (rust_language_data): Likewise.
8672 * symtab.c (symbol_matches_domain): Update call.
8673
1fb314aa
AB
86742020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8675
8676 * ada-lang.c (ada_language_arch_info): Delete function, move
8677 implementation to...
8678 (ada_language::language_arch_info): ...here, a new member
8679 function.
8680 (ada_language_data): Delete la_language_arch_info.
8681 * c-lang.c (c_language_data): Likewise.
8682 (c_language::language_arch_info): New member function.
8683 (cplus_language_arch_info): Delete function, move
8684 implementation to...
8685 (cplus_language::language_arch_info): ...here, a new member
8686 function.
8687 (cplus_language_data): Delete la_language_arch_info.
8688 (asm_language_data): Likewise.
8689 (asm_language::language_arch_info): New member function.
8690 (minimal_language_data): Delete la_language_arch_info.
8691 (minimal_language::language_arch_info): New member function.
8692 * d-lang.c (d_language_arch_info): Delete function, move
8693 implementation to...
8694 (d_language::language_arch_info): ...here, a new member
8695 function.
8696 (d_language_data): Delete la_language_arch_info.
8697 * f-lang.c (f_language_arch_info): Delete function, move
8698 implementation to...
8699 (f_language::language_arch_info): ...here, a new member
8700 function.
8701 (f_language_data): Delete la_language_arch_info.
8702 * go-lang.c (go_language_arch_info): Delete function, move
8703 implementation to...
8704 (go_language::language_arch_info): ...here, a new member
8705 function.
8706 (go_language_data): Delete la_language_arch_info.
8707 * language.c (unknown_language_data): Likewise.
8708 (unknown_language::language_arch_info): New member function.
8709 (auto_language_data): Delete la_language_arch_info.
8710 (auto_language::language_arch_info): New member function.
8711 (language_gdbarch_post_init): Update call to
8712 la_language_arch_info.
8713 * language.h (language_data): Delete la_language_arch_info
8714 function pointer.
8715 (language_defn::language_arch_info): New function.
8716 * m2-lang.c (m2_language_arch_info): Delete function, move
8717 implementation to...
8718 (m2_language::language_arch_info): ...here, a new member
8719 function.
8720 (m2_language_data): Delete la_language_arch_info.
8721 * objc-lang.c (objc_language_arch_info): Delete function, move
8722 implementation to...
8723 (objc_language::language_arch_info): ...here, a new member
8724 function.
8725 (objc_language_data): Delete la_language_arch_info.
8726 * opencl-lang.c (opencl_language_arch_info): Delete function, move
8727 implementation to...
8728 (opencl_language::language_arch_info): ...here, a new member
8729 function.
8730 (opencl_language_data): Delete la_language_arch_info.
8731 * p-lang.c (pascal_language_arch_info): Delete function, move
8732 implementation to...
8733 (pascal_language::language_arch_info): ...here, a new member
8734 function.
8735 (pascal_language_data): Delete la_language_arch_info.
8736 * rust-lang.c (rust_language_arch_info): Delete function, move
8737 implementation to...
8738 (rust_language::language_arch_info): ...here, a new member
8739 function.
8740 (rust_language_data): Delete la_language_arch_info.
8741
48448202
AB
87422020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8743
8744 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
8745 initializer.
8746 * c-lang.c (c_language_data): Likewise.
8747 (cplus_language_data): Likewise.
8748 (cplus_language::pass_by_reference_info): New method.
8749 (asm_language_data): Delete la_pass_by_reference initializer.
8750 (minimal_language_data): Likewise.
8751 * cp-abi.c (cp_pass_by_reference): Remove use of
8752 default_pass_by_reference.
8753 * d-lang.c (d_language_data): Likewise.
8754 * f-lang.c (f_language_data): Likewise.
8755 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
8756 default_pass_by_reference.
8757 * go-lang.c (go_language_data): Likewise.
8758 * language.c (language_pass_by_reference): Update.
8759 (default_pass_by_reference): Delete.
8760 (unknown_language_data): Delete la_pass_by_reference
8761 initializer.
8762 (auto_language_data): Likewise.
8763 * language.h (struct language_data): Delete la_pass_by_reference
8764 field.
8765 (language_defn::pass_by_reference_info): New member function.
8766 (default_pass_by_reference): Delete declaration.
8767 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
8768 initializer.
8769 * objc-lang.c (objc_language_data): Likewise.
8770 * opencl-lang.c (opencl_language_data): Likewise.
8771 * p-lang.c (pascal_language_data): Likewise.
8772 * rust-lang.c (rust_language_data): Likewise.
8773
15e5fd35
AB
87742020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8775
8776 * ada-lang.c (ada_read_var_value): Delete function, move
8777 implementation to...
8778 (ada_language::read_var_value): ...here.
8779 (ada_language_data): Delete la_read_var_value initializer.
8780 * c-lang.c (c_language_data): Likewise.
8781 (cplus_language_data): Likewise.
8782 (minimal_language_data): Likewise.
8783 * d-lang.c (d_language_data): Likewise.
8784 * f-lang.c (f_language_data): Likewise.
8785 * findvar.c (default_read_var_value): Rename to...
8786 (language_defn::read_var_value): ...this.
8787 * findvar.c (read_var_value): Update header comment, and change to
8788 call member function instead of function pointer.
8789 * go-lang.c (go_language_data): Likewise.
8790 * language.c (unknown_language_data): Delete la_read_var_value
8791 initializer.
8792 (auto_language_data): Likewise.
8793 * language.h (struct language_data): Delete la_read_var_value
8794 field.
8795 (language_defn::read_var_value): New member function.
8796 (default_read_var_value): Delete declaration.
8797 * m2-lang.c (m2_language_data): Delete la_read_var_value
8798 initializer.
8799 * objc-lang.c (objc_language_data): Likewise.
8800 * opencl-lang.c (opencl_language_data): Likewise.
8801 * p-lang.c (pascal_language_data): Likewise.
8802 * rust-lang.c (rust_language_data): Likewise.
8803 * value.h (default_read_var_value): Delete declaration.
8804
5bd40f2a
AB
88052020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8806
8807 * ada-lang.c (ada_print_array_index): Delete function, move
8808 implementation to...
8809 (ada_language::print_array_index): ...here.
8810 (ada_language_data): Delete la_print_array_index initializer.
8811 * c-lang.c (c_language_data): Likewise.
8812 (cplus_language_data): Likewise.
8813 (minimal_language_data): Likewise.
8814 * d-lang.c (d_language_data): Likewise.
8815 * f-lang.c (f_language_data): Likewise.
8816 * go-lang.c (go_language_data): Likewise.
8817 * language.c (default_print_array_index): Delete function, move
8818 implementation to...
8819 (language_defn::print_array_index): ...here.
8820 (unknown_language_data): Delete la_print_array_index initializer.
8821 (auto_language_data): Likewise.
8822 * language.h (struct language_data): Delete la_print_array_index
8823 field.
8824 (language_defn::print_array_index): New member function.
8825 (LA_PRINT_ARRAY_INDEX): Update.
8826 (default_print_array_index): Delete declaration.
8827 * m2-lang.c (m2_language_data): Delete la_print_array_index
8828 initializer.
8829 * objc-lang.c (objc_language_data): Likewise.
8830 * opencl-lang.c (opencl_language_data): Likewise.
8831 * p-lang.c (pascal_language_data): Likewise.
8832 * rust-lang.c (rust_language_data): Likewise.
8833
0874fd07
AB
88342020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8835
8836 * gdb/ada-lang.c (ada_language_defn): Convert to...
8837 (ada_language_data): ...this.
8838 (class ada_language): New class.
8839 (ada_language_defn): New static global.
8840 * gdb/c-lang.c (c_language_defn): Convert to...
8841 (c_language_data): ...this.
8842 (class c_language): New class.
8843 (c_language_defn): New static global.
8844 (cplus_language_defn): Convert to...
8845 (cplus_language_data): ...this.
8846 (class cplus_language): New class.
8847 (cplus_language_defn): New static global.
8848 (asm_language_defn): Convert to...
8849 (asm_language_data): ...this.
8850 (class asm_language): New class.
8851 (asm_language_defn): New static global.
8852 (minimal_language_defn): Convert to...
8853 (minimal_language_data): ...this.
8854 (class minimal_language): New class.
8855 (minimal_language_defn): New static global.
8856 * gdb/d-lang.c (d_language_defn): Convert to...
8857 (d_language_data): ...this.
8858 (class d_language): New class.
8859 (d_language_defn): New static global.
8860 * gdb/f-lang.c (f_language_defn): Convert to...
8861 (f_language_data): ...this.
8862 (class f_language): New class.
8863 (f_language_defn): New static global.
8864 * gdb/go-lang.c (go_language_defn): Convert to...
8865 (go_language_data): ...this.
8866 (class go_language): New class.
8867 (go_language_defn): New static global.
8868 * gdb/language.c (unknown_language_defn): Remove declaration.
8869 (current_language): Initialize to nullptr, real initialization is
8870 moved to _initialize_language.
8871 (languages): Delete global.
8872 (language_defn::languages): Define.
8873 (set_language_command): Use language_defn::languages.
8874 (set_language): Likewise.
8875 (range_error): Likewise.
8876 (language_enum): Likewise.
8877 (language_def): Likewise.
8878 (add_set_language_command): Use language_def::languages for the
8879 language list, and language_def to lookup language pointers.
8880 (skip_language_trampoline): Use language_defn::languages.
8881 (unknown_language_defn): Convert to...
8882 (unknown_language_data): ...this.
8883 (class unknown_language): New class.
8884 (unknown_language_defn): New static global.
8885 (auto_language_defn): Convert to...
8886 (auto_language_data): ...this.
8887 (class auto_language): New class.
8888 (auto_language_defn): New static global.
8889 (language_gdbarch_post_init): Use language_defn::languages.
8890 (_initialize_language): Initialize current_language.
8891 * gdb/language.h (struct language_defn): Rename to...
8892 (struct language_data): ...this.
8893 (struct language_defn): New.
8894 (auto_language_defn): Delete.
8895 (unknown_language_defn): Delete.
8896 (minimal_language_defn): Delete.
8897 (ada_language_defn): Delete.
8898 (asm_language_defn): Delete.
8899 (c_language_defn): Delete.
8900 (cplus_language_defn): Delete.
8901 (d_language_defn): Delete.
8902 (f_language_defn): Delete.
8903 (go_language_defn): Delete.
8904 (m2_language_defn): Delete.
8905 (objc_language_defn): Delete.
8906 (opencl_language_defn): Delete.
8907 (pascal_language_defn): Delete.
8908 (rust_language_defn): Delete.
8909 * gdb/m2-lang.c (m2_language_defn): Convert to...
8910 (m2_language_data): ...this.
8911 (class m2_language): New class.
8912 (m2_language_defn): New static global.
8913 * gdb/objc-lang.c (objc_language_defn): Convert to...
8914 (objc_language_data): ...this.
8915 (class objc_language): New class.
8916 (objc_language_defn): New static global.
8917 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
8918 (opencl_language_data): ...this.
8919 (class opencl_language): New class.
8920 (opencl_language_defn): New static global.
8921 * gdb/p-lang.c (pascal_language_defn): Convert to...
8922 (pascal_language_data): ...this.
8923 (class pascal_language): New class.
8924 (pascal_language_defn): New static global.
8925 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
8926 language pointer, update comment format.
8927 * gdb/rust-lang.c (rust_language_defn): Convert to...
8928 (rust_language_data): ...this.
8929 (class rust_language): New class.
8930 (rust_language_defn): New static global.
8931
1313c56e
AB
89322020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
8933
8934 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
8935 member variable.
8936 <m_stmt_at_address>: New member variable.
8937 (lnp_state_machine::record_line): Don't record some lines, update
8938 tracking of is_stmt at the same address.
8939 (lnp_state_machine::lnp_state_machine): Initialise new member
8940 variables.
8941
b7ed9f3d
ST
89422020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
8943
8944 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
8945 "-include gnu-nat-mig.h".
8946 * gnu-nat-mig.h: New file.
8947 * gnu-nat.c: Include "gnu-nat-mig.h".
8948 (exc_server, msg_reply_server, notify_server,
8949 process_reply_server): Remove declarations.
8950
14a8ad62
ST
89512020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8952
8953 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
8954 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
8955 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
8956 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
8957 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
8958 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
8959 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
8960 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
8961 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
8962 to gnu_nat_target class.
8963 * gnu-nat.c: Likewise.
8964 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
8965 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
8966 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
8967 object.
8968 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
8969 instead of `gnu_target'.
8970
0af5e106
ST
89712020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8972
8973 * i386-gnu-tdep.c: Include "gdbcore.h"
8974 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
8975 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
8976 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
8977 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
8978 i386_gnu_sigcontext_addr): New functions
8979 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
8980 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
8981 tdep.
8982
078f2fc9
ST
89832020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8984
8985 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
8986 before fork_inferior call. Avoid calling it if target_is_pushed returns
8987 true.
8988
53dff92c
ST
89892020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8990
8991 * gnu-nat.h (gnu_target): New variable declaration.
8992 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
8993 gnu_target.
8994 * gnu-nat.c (gnu_target): New variable.
8995 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
8996 add_thread_silent, and add_thread calls.
8997 (gnu_nat_target::create_inferior): Pass gnu_target to
8998 add_thread_silent, thread_change_ptid call.
8999 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
9000 call.
9001
5a8b8627
ST
90022020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9003
9004 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
9005 (gnu_nat_target::find_memory_regions): Remove unused
9006 `old_address' variable.
9007
366f550a
ST
90082020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9009
9010 * gnu-nat.c: Include "gdbarch.h".
9011
f14871bf
ST
90122020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9013
9014 * reply_mig_hack.awk (Error return): Cast function through
9015 void *, to bypass compiler function call check.
9016
c6887cfb
ST
90172020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9018
9019 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
9020 $(srcdir)/reply_mig_hack.awk.
9021
6930bffe
ST
90222020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9023
9024 * gnu-nat.h (gnu_debug_flag): Set type to bool.
9025
112c22ed
JG
90262020-05-30 Jonny Grant <jg@jguk.org>
9027
9028 * configure.ac (ACX_BUGURL): change bug URL to https.
9029
f68f85b5
PA
90302020-05-30 Pedro Alves <palves@redhat.com>
9031
9032 * cp-support.c (replace_typedefs_template): New.
9033 (replace_typedefs_qualified_name): Handle
9034 DEMANGLE_COMPONENT_TEMPLATE.
9035
976ca316
SM
90362020-05-29 Simon Marchi <simon.marchi@efficios.com>
9037
9038 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
9039 dwarf2/index-cache.h, dwarf2/index-write.c,
9040 dwarf2/index-write.h, dwarf2/line-header.c,
9041 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
9042 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
9043 variables and fields from `dwarf2_per_objfile` to just
9044 `per_objfile` throughout.
9045
989ade05
SM
90462020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
9047
9048 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9049 <push_dwarf_reg_entry_value>: Add comment.
9050
c47bae85
KB
90512020-05-28 Kevin Buettner <kevinb@redhat.com>
9052 Keith Seitz <keiths@redhat.com>
9053
9054 * python/python.c (do_start_initialization): Call PyEval_SaveThread
9055 instead of PyEval_ReleaseLock.
9056 (class gdbpy_gil): Move to earlier in file.
9057 (finalize_python): Set gdb_python_initialized.
9058 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
9059 when not initialized.
9060
44486dcf
SM
90612020-05-28 Simon Marchi <simon.marchi@efficios.com>
9062
9063 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9064 <push_dwarf_reg_entry_value>: Remove assert. Override
9065 per_objfile with caller_per_objfile.
9066
f030440d
TV
90672020-05-28 Tom de Vries <tdevries@suse.de>
9068
9069 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
9070 PR gold/15646 workaround to symbol kind "type".
9071
f0fbb768
TT
90722020-05-27 Tom Tromey <tromey@adacore.com>
9073
9074 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
9075
af0b2a3e
TT
90762020-05-27 Tom Tromey <tromey@adacore.com>
9077
9078 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
9079 Use htab_find_with_hash.
9080 <add_abbrev>: Remove "abbrev_number" parameter.
9081 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
9082 "abbrev_number" parameter. Use htab_find_slot_with_hash.
9083 (hash_abbrev): Add comment.
9084 (abbrev_table::lookup_abbrev): Move to header file.
9085 (abbrev_table::read): Update.
9086
7d00ffec
TT
90872020-05-27 Tom Tromey <tromey@adacore.com>
9088
9089 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
9090 method.
9091 <canonical_name>: New member.
9092 <raw_name>: Rename from "name".
9093 (partial_die_info): Initialize canonical_name.
9094 (scan_partial_symbols): Check raw_name.
9095 (partial_die_parent_scope, partial_die_full_name)
9096 (add_partial_symbol, add_partial_subprogram)
9097 (add_partial_enumeration, load_partial_dies): Use "name" method.
9098 (partial_die_info::name): New method.
9099 (partial_die_info::read, guess_partial_die_structure_name)
9100 (partial_die_info::fixup): Update.
9101
697bba18
TT
91022020-05-27 Tom Tromey <tromey@adacore.com>
9103
9104 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
9105 <get_ref_die_offset>: Inline.
9106 <get_ref_die_offset_complaint>: New method.
9107 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
9108 (attribute::get_ref_die_offset_complaint): Rename from
9109 get_ref_die_offset. Just issue complaint.
9110
c17ace43
HD
91112020-05-27 Hannes Domani <ssbssa@yahoo.de>
9112
9113 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
9114
96445f0b
HD
91152020-05-27 Hannes Domani <ssbssa@yahoo.de>
9116
9117 * exec.c (exec_file_attach): Use errno value of first openp failure.
9118
ac637ec3
HD
91192020-05-27 Hannes Domani <ssbssa@yahoo.de>
9120
9121 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
9122 Don't close thread handle.
9123
17ee85fc
TT
91242020-05-27 Tom Tromey <tom@tromey.com>
9125 Simon Marchi <simon.marchi@efficios.com>
9126
9127 * objfiles.h (struct objfile) <partial_symtabs>: Now a
9128 shared_ptr.
9129 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
9130 member.
9131 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
9132 dwarf2_per_bfd_objfile_data_key>: New globals.
9133 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
9134 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
9135 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
9136 shared.
9137 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
9138 short-circuit when sharing.
9139 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
9140 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
9141
39b16f87
SM
91422020-05-27 Simon Marchi <simon.marchi@efficios.com>
9143
9144 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
9145 to...
9146 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
9147 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
9148
fcf23d5b
SM
91492020-05-27 Simon Marchi <simon.marchi@efficios.com>
9150
9151 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
9152 build_name_components, find_name_components_bounds>:
9153 Add per_objfile parameter.
9154 (struct mapped_index) <symbol_name_at>: Likewise.
9155 (struct mapped_debug_names): Remove constructor.
9156 <dwarf2_per_objfile>: Remove field.
9157 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
9158 (mapped_index_base::find_name_components_bounds,
9159 mapped_index_base::build_name_components,
9160 dw2_expand_symtabs_matching_symbol): Likewise.
9161 (class mock_mapped_index) <symbol_name_at>: Likewise.
9162 (check_match): Likewise.
9163 (check_find_bounds_finds): Likewise.
9164 (test_mapped_index_find_name_component_bounds): Update.
9165 (CHECK_MATCH): Update.
9166 (dw2_expand_symtabs_matching): Update.
9167 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
9168 per_objfile parameter.
9169 <find_vec_in_debug_names>: Likewise.
9170 <m_per_objfile>: New field.
9171 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
9172 parameter.
9173 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
9174 (dw2_debug_names_iterator::next): Update.
9175 (dw2_debug_names_lookup_symbol): Update.
9176 (dw2_debug_names_expand_symtabs_for_function): Update.
9177 (dw2_debug_names_map_matching_symbols): Update.
9178 (dw2_debug_names_expand_symtabs_matching): Update.
9179 (dwarf2_read_debug_names): Update.
9180
7188ed02
SM
91812020-05-27 Simon Marchi <simon.marchi@efficios.com>
9182
9183 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
9184 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
9185 move to dwarf2_per_objfile.
9186 <read_in_chain>: Remove.
9187 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
9188 remove_all_cus, age_comp_units>: New methods.
9189 <m_dwarf2_cus>: New member.
9190 (struct dwarf2_per_cu_data) <cu>: Remove.
9191 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
9192 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
9193 moved to methods of dwarf2_per_objfile.
9194 (dwarf2_clear_marks): Remove.
9195 (dwarf2_queue_item::~dwarf2_queue_item): Update.
9196 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
9197 (dwarf2_per_bfd::free_cached_comp_units): Remove.
9198 (dwarf2_per_objfile::remove_all_cus): New.
9199 (class free_cached_comp_units) <~free_cached_comp_units>:
9200 Update.
9201 (load_cu): Update.
9202 (dw2_do_instantiate_symtab): Adjust.
9203 (fill_in_sig_entry_from_dwo_entry): Adjust.
9204 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9205 (cutu_reader::cutu_reader): Likewise.
9206 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
9207 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
9208 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
9209 and dwarf2_per_objfile::age_comp_units.
9210 (load_partial_comp_unit): Update.
9211 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
9212 (process_queue): Likewise.
9213 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
9214 backlink.
9215 (dwarf2_read_addr_index): Likewise.
9216 (follow_die_offset): Likewise.
9217 (dwarf2_fetch_die_loc_sect_off): Likewise.
9218 (dwarf2_fetch_constant_bytes): Likewise.
9219 (dwarf2_fetch_die_type_sect_off): Likewise.
9220 (follow_die_sig_1): Likewise.
9221 (load_full_type_unit): Likewise.
9222 (read_signatured_type): Likewise.
9223 (dwarf2_cu::dwarf2_cu): Don't set cu field.
9224 (dwarf2_cu::~dwarf2_cu): Remove.
9225 (dwarf2_per_objfile::get_cu): New.
9226 (dwarf2_per_objfile::set_cu): New.
9227 (age_cached_comp_units): Rename to...
9228 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
9229 to std::unordered_map.
9230 (free_one_cached_comp_unit): Rename to...
9231 (dwarf2_per_objfile::remove_cu): ... this. Adjust
9232 to std::unordered_map.
9233 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
9234 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
9235 a dwarf2_per_objfile in data.
9236 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
9237 (dwarf2_clear_marks): Remove.
9238
2e671100
SM
92392020-05-27 Simon Marchi <simon.marchi@efficios.com>
9240
9241 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
9242 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
9243 (init_tu_and_read_dwo_dies): Likewise.
9244 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
9245 (cutu_reader::cutu_reader): Likewise.
9246 (load_partial_comp_unit): Likewise.
9247 (process_psymtab_comp_unit): Update.
9248 (build_type_psymtabs_1): Update.
9249 (process_skeletonless_type_unit): Update.
9250 (load_full_comp_unit): Update.
9251 (find_partial_die): Update.
9252 (dwarf2_read_addr_index): Update.
9253 (read_signatured_type): Update.
9254
2e6a9f79
SM
92552020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9256
9257 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
9258 m_header_read_in>: New fields.
9259 <get_header>: New method.
9260 * dwarf2/read.c (per_cu_header_read_in): Remove.
9261 (dwarf2_per_cu_data::get_header): New.
9262 (dwarf2_per_cu_data::addr_size): Update.
9263 (dwarf2_per_cu_data::offset_size): Update.
9264 (dwarf2_per_cu_data::ref_addr_size): Update.
9265
1b555f17
SM
92662020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9267
9268 * dwarf2/read.c (load_cu): Return dwarf2_cu.
9269 (dw2_do_instantiate_symtab): Update.
9270 (queue_and_load_all_dwo_tus): Change parameter from
9271 dwarf2_per_cu_data to dwarf2_cu.
9272 (dwarf2_fetch_die_loc_sect_off): Update.
9273 (dwarf2_fetch_constant_bytes): Update.
9274 (dwarf2_fetch_die_type_sect_off): Update.
9275
8fc0b21d
SM
92762020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9277
9278 * dwarf2/read.c (process_full_comp_unit,
9279 process_full_type_unit): Remove per_cu, per_objfile paramters.
9280 Add dwarf2_cu parameter.
9281 (process_queue): Update.
9282
168c9250
SM
92832020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9284
9285 * dwarf2/read.c (create_cu_from_index_list): Replace
9286 dwarf2_per_objfile parameter with dwarf2_per_bfd.
9287 (create_cus_from_index_list): Likewise.
9288 (create_cus_from_index): Likewise.
9289 (create_signatured_type_table_from_index): Likewise.
9290 (create_cus_from_debug_names_list): Likewise.
9291 (create_cus_from_debug_names): Likewise.
9292 (dwarf2_read_gdb_index): Update.
9293 (dwarf2_read_debug_names): Update.
9294
e286671b
TT
92952020-05-27 Tom Tromey <tom@tromey.com>
9296 Simon Marchi <simon.marchi@efficios.com>
9297
9298 * dwarf2/read.h (struct dwarf2_per_objfile)
9299 <get_type_for_signatured_type, set_type_for_signatured_type>:
9300 New methods.
9301 <m_type_map>: New member.
9302 (struct signatured_type) <type>: Remove.
9303 * dwarf2/read.c
9304 (dwarf2_per_objfile::get_type_for_signatured_type,
9305 dwarf2_per_objfile::set_type_for_signatured_type): New.
9306 (get_signatured_type): Use new methods.
9307
8adb8487
TT
93082020-05-27 Tom Tromey <tom@tromey.com>
9309 Simon Marchi <simon.marchi@efficios.com>
9310
9311 * dwarf2/read.h (struct type_unit_group_unshareable): New.
9312 (struct dwarf2_per_objfile) <type_units>: New member.
9313 <get_type_unit_group_unshareable>: New method.
9314 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
9315 num_symtabs, symtabs>: Remove; move to
9316 type_unit_group_unshareable.
9317 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
9318 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
9319 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
9320
127bbf4b
SM
93212020-05-27 Simon Marchi <simon.marchi@efficios.com>
9322
9323 * dwarf2/read.h (struct dwarf2_per_cu_data):
9324 <dwarf2_per_objfile>: Remove.
9325 * dwarf2/read.c (create_cu_from_index_list): Don't assign
9326 dwarf2_per_objfile.
9327 (create_signatured_type_table_from_index): Likewise.
9328 (create_signatured_type_table_from_debug_names): Likewise.
9329 (create_debug_type_hash_table): Likewise.
9330 (fill_in_sig_entry_from_dwo_entry): Likewise.
9331 (create_type_unit_group): Likewise.
9332 (read_comp_units_from_section): Likewise.
9333 (create_cus_hash_table): Likewise.
9334
f6e649dd
SM
93352020-05-27 Simon Marchi <simon.marchi@efficios.com>
9336
9337 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
9338 dwarf2_per_cu_data::dwarf2_per_objfile.
9339 (compute_compunit_symtab_includes): Likewise.
9340 (dwarf2_cu::start_symtab): Likewise.
9341
aa66c379
SM
93422020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9343
9344 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
9345 parameter.
9346 * dwarf2/read.c (get_die_type_at_offset): Likewise.
9347 (read_namespace_alias): Update.
9348 (lookup_die_type): Update.
9349 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
9350 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
9351 Update.
9352 (disassemble_dwarf_expression): Update.
9353
120ce1b5
SM
93542020-05-27 Simon Marchi <simon.marchi@efficios.com>
9355
9356 * dwarf2/read.h (struct dwarf2_queue_item): Add
9357 dwarf2_per_objfile parameter, assign new parameter.
9358 <per_objfile>: New field.
9359 * dwarf2/read.c (free_one_cached_comp_unit): Add
9360 dwarf2_per_objfile parameter.
9361 (queue_comp_unit): Likewise.
9362 (dw2_do_instantiate_symtab): Update.
9363 (process_psymtab_comp_unit): Update.
9364 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
9365 (process_imported_unit_die): Update.
9366 (queue_and_load_dwo_tu): Update.
9367 (follow_die_offset): Update.
9368 (follow_die_sig_1): Update.
9369
9f47c707
SM
93702020-05-27 Simon Marchi <simon.marchi@efficios.com>
9371
9372 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
9373 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
9374 (read_call_site_scope): Assign per_objfile.
9375 (dwarf2_per_cu_data::objfile): Remove.
9376 * gdbtypes.h (struct call_site) <per_objfile>: New member.
9377 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
9378 dwarf2_per_objfile parameter.
9379 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
9380 dwarf2_per_objfile parameter.
9381 (dwarf_expr_reg_to_entry_parameter): Add output
9382 dwarf2_per_objfile parameter.
9383 (locexpr_get_frame_base): Update.
9384 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
9385 <push_dwarf_reg_entry_value>: Update.
9386 <call_site_to_target_addr>: Update.
9387 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
9388 parameter.
9389 (value_of_dwarf_reg_entry): Update.
9390 (rw_pieced_value): Update.
9391 (indirect_synthetic_pointer): Update.
9392 (dwarf2_evaluate_property): Update.
9393 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
9394 parameter.
9395 (locexpr_read_variable): Update.
9396 (locexpr_get_symbol_read_needs): Update.
9397 (loclist_read_variable): Update.
9398
14095eb3
SM
93992020-05-27 Simon Marchi <simon.marchi@efficios.com>
9400
9401 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9402 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9403 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9404 parameter.
9405 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9406 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9407 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9408 parameter.
9409 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
9410 sect_variable_value): Add dwarf2_per_objfile parameter.
9411 (class dwarf_evaluate_loc_desc) <dwarf_call,
9412 dwarf_variable_value>: Update.
9413 (fetch_const_value_from_synthetic_pointer): Add
9414 dwarf2_per_objfile parameter.
9415 (fetch_const_value_from_synthetic_pointer): Update.
9416 (coerced_pieced_ref): Update.
9417 (class symbol_needs_eval_context) <dwarf_call,
9418 dwarf_variable_value>: Update.
9419 (dwarf2_compile_expr_to_ax): Update.
9420
3c3cd3d4
SM
94212020-05-27 Simon Marchi <simon.marchi@efficios.com>
9422
9423 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
9424 parameter.
9425 (dwarf2_evaluate_loc_desc_full): Update.
9426
82ca3f51
SM
94272020-05-27 Simon Marchi <simon.marchi@efficios.com>
9428
9429 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
9430 parameter.
9431 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
9432 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
9433 dwarf2_per_objfile parameter.
9434 (decode_debug_loc_dwo_addresses): Likewise.
9435 (dwarf2_find_location_expression): Update.
9436 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
9437 (locexpr_describe_location_piece): Add dwarf2_per_objfile
9438 parameter.
9439 (disassemble_dwarf_expression): Add dwarf2_per_objfile
9440 parameter.
9441 (locexpr_describe_location_1): Likewise.
9442 (locexpr_describe_location): Update.
9443
4b167ea1
SM
94442020-05-27 Simon Marchi <simon.marchi@efficios.com>
9445
9446 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
9447 Remove.
9448 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
9449 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
9450 (dwarf2_compile_property_to_c): Update.
9451 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
9452 use text offset from objfile.
9453 (locexpr_tracepoint_var_ref): Update.
9454 (locexpr_generate_c_location): Update.
9455 (loclist_describe_location): Update.
9456 (loclist_tracepoint_var_ref): Update.
9457 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
9458 dwarf2_per_objfile parameter.
9459 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
9460 use text offset from objfile.
9461 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
9462
89b07335
SM
94632020-05-27 Simon Marchi <simon.marchi@efficios.com>
9464
9465 * dwarf2/expr.h (struct dwarf_expr_context)
9466 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
9467 <offset>: Remove.
9468 <per_objfile>: New member.
9469 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
9470 dwarf2_per_objfile parameter. Don't set offset, set
9471 per_objfile.
9472 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
9473 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
9474 a dwarf2_per_objfile object instead of an offset.
9475 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
9476 constructor.
9477 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
9478 to dwarf2_expr_executor constructor. Don't set offset.
9479 (dwarf2_fetch_cfa_info): Update.
9480 (struct dwarf2_frame_cache) <text_offset>: Remove.
9481 <per_objfile>: New field.
9482 (dwarf2_frame_cache): Update.
9483 (dwarf2_frame_prev_register): Update.
9484 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9485 <dwarf_evaluate_loc_desc>: Add constructor.
9486 (dwarf2_evaluate_loc_desc_full): Update.
9487 (dwarf2_locexpr_baton_eval): Update.
9488 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
9489 Add constructor.
9490 (dwarf2_loc_desc_get_symbol_read_needs): Update.
9491
293e7e51
SM
94922020-05-27 Simon Marchi <simon.marchi@efficios.com>
9493
9494 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
9495 addr_sized_int_type>: Move to dwarf2_cu.
9496 <int_type>: Move to dwarf2_per_objfile.
9497 (struct dwarf2_per_objfile) <int_type>: Move here.
9498 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
9499 addr_sized_int_type>: Move here.
9500 (read_func_scope): Update.
9501 (read_array_type): Update.
9502 (read_tag_string_type): Update.
9503 (attr_to_dynamic_prop): Update.
9504 (dwarf2_per_cu_data::int_type): Rename to...
9505 (dwarf2_per_objfile::int_type): ... this.
9506 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
9507 (dwarf2_cu::addr_sized_int_type): ... this.
9508 (read_subrange_type): Update.
9509 (dwarf2_per_cu_data::addr_type): Rename to...
9510 (dwarf2_cu::addr_type): ... this.
9511 (set_die_type): Update.
9512
64874a40
SM
95132020-05-27 Simon Marchi <simon.marchi@efficios.com>
9514
9515 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
9516 data through per_cu->cu.
9517
4ab09049
SM
95182020-05-27 Simon Marchi <simon.marchi@efficios.com>
9519
9520 * dwarf2/read.c (lookup_dwo_comp_unit): Change
9521 dwarf2_per_cu_data parameter fo dwarf2_cu.
9522 (lookup_dwo_type_unit): Likewise.
9523 (read_cutu_die_from_dwo): Likewise.
9524 (lookup_dwo_unit): Likewise.
9525 (open_and_init_dwo_file): Likewise.
9526 (lookup_dwo_cutu): Likewise.
9527 (lookup_dwo_comp_unit): Likewise.
9528 (lookup_dwo_type_unit): Likewise.
9529 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9530 (cutu_reader::cutu_reader): Update.
9531
47b14e86
SM
95322020-05-27 Simon Marchi <simon.marchi@efficios.com>
9533
9534 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
9535 parameter.
9536 (process_full_type_unit): Likewise.
9537 (process_queue): Update.
9538
43182c09
SM
95392020-05-27 Simon Marchi <simon.marchi@efficios.com>
9540
9541 * dwarf2/read.c (recursively_compute_inclusions): Add
9542 dwarf2_per_objfile parameter.
9543 (compute_compunit_symtab_includes): Likewise.
9544 (process_cu_includes): Update.
9545
7aa104c4
SM
95462020-05-27 Simon Marchi <simon.marchi@efficios.com>
9547
9548 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
9549 parameter.
9550 (create_type_unit_group): Update.
9551 (process_psymtab_comp_unit_reader): Update.
9552 (build_type_psymtabs_reader): Update.
9553
e3beb21d
SM
95542020-05-27 Simon Marchi <simon.marchi@efficios.com>
9555
9556 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
9557 object through m_this_cu->cu.
9558
d460f660
SM
95592020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9560
9561 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
9562 the info parameter.
9563 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
9564
ab432490
SM
95652020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9566
9567 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
9568 per_objfile parameter.
9569 (load_full_type_unit): Add per_objfile parameter.
9570 (read_signatured_type): Likewise.
9571 (load_full_comp_unit): Likewise.
9572 (load_cu): Likewise.
9573 (dw2_do_instantiate_symtab): Likewise.
9574 (dw2_get_file_names): Likewise.
9575 (dw2_map_symtabs_matching_filename): Update.
9576 (dw_expand_symtabs_matching_file_matcher): Update.
9577 (dw2_map_symbol_filenames): Update.
9578 (process_psymtab_comp_unit): Add per_objfile parameter.
9579 (build_type_psymtabs_1): Update.
9580 (process_skeletonless_type_unit): Update.
9581 (dwarf2_build_psymtabs_hard): Update.
9582 (load_partial_comp_unit): Add per_objfile parameter.
9583 (scan_partial_symbols): Update.
9584 (load_full_comp_unit): Add per_objfile parameter.
9585 (process_imported_unit_die): Update.
9586 (create_cus_hash_table): Update.
9587 (find_partial_die): Update.
9588 (dwarf2_read_addr_index): Update.
9589 (follow_die_offset): Update.
9590 (dwarf2_fetch_die_loc_sect_off): Update.
9591 (dwarf2_fetch_constant_bytes): Update.
9592 (dwarf2_fetch_die_type_sect_off): Update.
9593 (follow_die_sig_1): Update.
9594 (load_full_type_unit): Add per_objfile parameter.
9595 (read_signatured_type): Likewise.
9596
313bad1b
SM
95972020-05-27 Simon Marchi <simon.marchi@efficios.com>
9598
9599 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
9600 of objfile_name.
9601
c3699833
SM
96022020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9603
9604 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
9605 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9606 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
9607 field.
9608 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9609 (create_cus_from_index): Update.
9610 (dwarf2_read_gdb_index): Update.
9611 (create_cus_from_debug_names): Update.
9612 (dwarf2_read_debug_names): Update.
9613 (get_abbrev_section_for_cu): Update.
9614 (create_all_comp_units): Update.
9615 (read_attribute_value): Update.
9616 (get_debug_line_section): Update.
9617 * dwarf2/index-cache.c (index_cache::store): Update.
9618 * dwarf2/index-write.c (save_gdb_index_command): Update.
9619 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
9620
1859c670
SM
96212020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9622
9623 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
9624 member.
9625 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
9626 dwarf2_per_cu_data::per_bfd.
9627 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
9628 (create_type_unit_group): Likewise.
9629 (queue_comp_unit): Remove reference to
9630 per_cu->dwarf2_per_objfile.
9631 (maybe_queue_comp_unit): Likewise.
9632 (fill_in_sig_entry_from_dwo_entry): Assign new field.
9633 (create_cus_hash_table): Assign new field.
9634
5e22e966
SM
96352020-05-27 Simon Marchi <simon.marchi@efficios.com>
9636
9637 * dwarf2/read.c: Replace
9638 dwarf2_cu->per_cu->dwarf2_per_objfile references with
9639 dwarf2_cu->per_objfile throughout.
9640
97a1449a
SM
96412020-05-27 Simon Marchi <simon.marchi@efficios.com>
9642
9643 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
9644 parameter, don't use per_cu->dwarf2_per_objfile.
9645 (dw2_instantiate_symtab): Likewise.
9646 (dw2_find_last_source_symtab): Update.
9647 (dw2_map_expand_apply): Update.
9648 (dw2_lookup_symbol): Update.
9649 (dw2_expand_symtabs_for_function): Update.
9650 (dw2_expand_all_symtabs): Update.
9651 (dw2_expand_symtabs_with_fullname): Update.
9652 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
9653 don't use per_cu->dwarf2_per_objfile.
9654 (dw2_expand_marked_cus): Update.
9655 (dw2_find_pc_sect_compunit_symtab): Update.
9656 (dw2_debug_names_lookup_symbol): Update.
9657 (dw2_debug_names_expand_symtabs_for_function): Update.
9658 (dw2_debug_names_map_matching_symbols): Update.
9659 (dwarf2_psymtab::expand_psymtab): Update.
9660
9e021579
SM
96612020-05-27 Simon Marchi <simon.marchi@efficios.com>
9662
9663 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
9664 <per_objfile>: New member.
9665 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
9666 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
9667 call to dwarf2_cu.
9668 (cutu_reader::cutu_reader): Update.
9669 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
9670
ae090bdb
SM
96712020-05-27 Simon Marchi <simon.marchi@efficios.com>
9672
9673 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
9674 struct dwarf2_per_objfile.
9675 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
9676 dwarf2_per_bfd.
9677 * dwarf2/read.c (set_die_type): Update.
9678 (get_die_type_at_offset): Update.
9679
af758d11
SM
96802020-05-27 Tom Tromey <tom@tromey.com>
9681 Simon Marchi <simon.marchi@efficios.com>
9682
9683 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
9684 method.
9685 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
9686 get_symtab, set_symtab>: New methods.
9687 <m_symtabs>: New field.
9688 (struct dwarf2_psymtab): Derive from partial_symtab.
9689 <readin_p, get_compunit_symtab>: Declare methods.
9690 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
9691 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
9692 New methods.
9693 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
9694 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
9695 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
9696 (dw2_symtab_iter_next, dw2_print_stats)
9697 (dw2_expand_symtabs_with_fullname)
9698 (dw2_expand_symtabs_matching_one)
9699 (dw_expand_symtabs_matching_file_matcher)
9700 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
9701 (dw2_debug_names_iterator::next)
9702 (dw2_debug_names_map_matching_symbols)
9703 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
9704 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
9705 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
9706 New methods.
9707 (get_compunit_symtab, process_full_comp_unit)
9708 (process_full_type_unit): Update.
9709 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
9710
5989a64e
SM
97112020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9712
9713 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
9714 then introduce a new dwarf2_per_objfile type.
9715 <read_line_string>: Move to the new dwarf2_per_objfile type.
9716 <objfile>: Likewise.
9717 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
9718 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
9719 dwarf2_per_objfile->per_bfd.
9720 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
9721 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
9722 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
9723 (dwarf2_per_bfd::free_cached_comp_units): ... this.
9724 (dwarf2_has_info): Allocate dwarf2_per_bfd.
9725 (dwarf2_per_objfile::locate_sections): Rename to...
9726 (dwarf2_per_bfd::locate_sections): ... this.
9727 (dwarf2_per_objfile::get_cutu): Rename to...
9728 (dwarf2_per_bfd::get_cutu): ... this.
9729 (dwarf2_per_objfile::get_cu): Rename to...
9730 (dwarf2_per_bfd::get_cu): ... this.
9731 (dwarf2_per_objfile::get_tu): Rename to...
9732 (dwarf2_per_bfd::get_tu): ... this.
9733 (dwarf2_per_objfile::allocate_per_cu): Rename to...
9734 (dwarf2_per_bfd::allocate_per_cu): ... this.
9735 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
9736 (dwarf2_per_bfd::allocate_signatured_type): ... this.
9737 (get_gdb_index_contents_ftype): Change parameter from
9738 dwarf2_per_objfile to dwarf2_per_bfd.
9739 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
9740 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
9741
a50264ba
TT
97422020-05-27 Tom Tromey <tom@tromey.com>
9743 Simon Marchi <simon.marchi@efficios.com>
9744
9745 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
9746 (allocate_piece_closure): Set "per_objfile" member.
9747 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
9748 (locexpr_describe_location, loclist_describe_location): Use new
9749 member.
9750 * dwarf2/read.c (read_call_site_scope)
9751 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
9752 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
9753 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
9754 handle_data_member_location): Set per_objfile member.
9755 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
9756 member.
9757 (struct dwarf2_loclist_baton) <per_objfile>: New member.
9758
d3473f0c
TT
97592020-05-27 Tom Tromey <tom@tromey.com>
9760
9761 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
9762 allocate_signatured_type>: Declare new methods.
9763 <m_num_psymtabs>: New member.
9764 (struct dwarf2_per_cu_data) <index>: New member.
9765 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
9766 (dwarf2_per_objfile::allocate_signatured_type): New methods.
9767 (create_cu_from_index_list): Use allocate_per_cu.
9768 (create_signatured_type_table_from_index)
9769 (create_signatured_type_table_from_debug_names)
9770 (create_debug_type_hash_table, add_type_unit)
9771 (read_comp_units_from_section): Use allocate_signatured_type.
9772
5717c425
TT
97732020-05-27 Tom Tromey <tom@tromey.com>
9774
9775 * psymtab.c (partial_map_expand_apply)
9776 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9777 (psym_lookup_global_symbol_language)
9778 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9779 (psym_print_stats, psym_expand_symtabs_for_function)
9780 (psym_map_symbol_filenames, psym_map_matching_symbols)
9781 (psym_expand_symtabs_matching)
9782 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9783 (maintenance_check_psymtabs): Update.
9784 * psympriv.h (struct partial_symtab) <readin_p,
9785 get_compunit_symtab>: Add objfile parameter.
9786 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
9787 Likewise.
9788 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
9789 get_compunit_symtab>: Likewise.
9790 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
9791
45940949
TT
97922020-05-27 Tom Tromey <tom@tromey.com>
9793
9794 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
9795 member.
9796 * dwarf2/read.c (delete_file_name_entry): Fix comment.
9797 (create_cu_from_index_list)
9798 (create_signatured_type_table_from_index)
9799 (create_signatured_type_table_from_debug_names)
9800 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
9801 (dwarf2_create_include_psymtab)
9802 (create_debug_type_hash_table, add_type_unit)
9803 (create_type_unit_group, read_comp_units_from_section)
9804 (dwarf2_compute_name, create_cus_hash_table)
9805 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9806 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
9807 obstack.
9808 (dw2_get_real_path): Likewise. Change argument to
9809 dwarf2_per_objfile.
9810
f8c6d152
LM
98112020-05-27 Luis Machado <luis.machado@linaro.org>
9812
9813 PR tdep/26000
9814 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
9815 for ldrd (immediate).
9816
e98d2e6d
PW
98172020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9818
9819 * command.h: Add comment giving the name of class_tui.
9820 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
9821 create the fake command for the help for class_tui.
9822
53a47a3e
TT
98232020-05-26 Tom Tromey <tromey@adacore.com>
9824
9825 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
9826 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
9827 (val_atr): New function.
9828 (value_val_atr): Use it.
9829 * ada-valprint.c (print_optional_low_bound): Change low bound
9830 handling for enums.
9831 (val_print_packed_array_elements): Don't call discrete_position.
9832 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
9833 discrete_position for enum types.
9834 * language.c (default_print_array_index): Change type.
9835 * language.h (struct language_defn) <la_print_array_index>: Add
9836 index_type parameter, change type of index_value.
9837 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
9838 (default_print_array_index): Update.
9839 * valprint.c (maybe_print_array_index): Don't call
9840 value_from_longest. Update.
9841 (value_print_array_elements): Don't call discrete_position.
9842
0bc2354b
TT
98432020-05-26 Tom Tromey <tromey@adacore.com>
9844
9845 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
9846 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
9847
1218a4bf
CDA
98482020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
9849
9850 PR gdb/13519
9851 * avr-tdep.c (avr_integer_to_address): Return data or code
9852 address accordingly to the second 'type' argument of the
9853 function.
9854
92651b1d
MW
98552020-05-25 Michael Weghorn <m.weghorn@posteo.de>
9856
9857 * infcmd.c, inferior.h: (construct_inferior_arguments):
9858 Moved function from here to gdbsupport/common-inferior.{h,cc}
9859
0a4f5f8c
TT
98602020-05-23 Tom Tromey <tom@tromey.com>
9861
9862 Revert commit eca1f90c:
9863 * NEWS: Remove entry for completion styling.
9864 * completer.c (_rl_completion_prefix_display_length): Move
9865 declaration later.
9866 (gdb_fnprint): Revert.
9867 (gdb_display_match_list_1): Likewise.
9868 * cli/cli-style.c (completion_prefix_style)
9869 (completion_difference_style, completion_suffix_style): Remove.
9870 (_initialize_cli_style): Revert.
9871 * cli/cli-style.h (completion_prefix_style)
9872 (completion_difference_style, completion_suffix_style): Don't
9873 declare.
9874
e08bd6c5
PA
98752020-05-24 Pedro Alves <palves@redhat.com>
9876
9877 * symtab.c (completion_list_add_name): Return boolean indication
9878 of whether the symbol matched.
9879 (completion_list_add_symbol): Don't try to remove C++ aliases if
9880 the symbol didn't match in the first place.
9881 * symtab.h (completion_list_add_name): Return bool.
9882
ceacbf6e
SM
98832020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
9884
9885 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
9886 type::field.
9887
26f16254
JB
98882020-05-23 Joel Brobecker <brobecker@adacore.com>
9889
9890 GDB 9.2 released.
9891
eca1f90c
TT
98922020-05-23 Tom Tromey <tom@tromey.com>
9893
9894 * NEWS: Add entry for completion styling.
9895 * completer.c (_rl_completion_prefix_display_length): Move
9896 declaration earlier.
9897 (gdb_fnprint): Use completion_style.
9898 (gdb_display_match_list_1): Likewise.
9899 * cli/cli-style.c (completion_prefix_style)
9900 (completion_difference_style, completion_suffix_style): New
9901 globals.
9902 (_initialize_cli_style): Register new globals.
9903 * cli/cli-style.h (completion_prefix_style)
9904 (completion_difference_style, completion_suffix_style): Declare.
9905
51e2cfa2
PA
99062020-05-23 Pedro Alves <palves@redhat.com>
9907
9908 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
9909 (parse_escape): Use ISDIGIT instead of isdigit.
9910 (puts_debug): Use gdb_isprint instead of isprint.
9911 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
9912 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
9913 ISSPACE instead of isspace.
9914 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
9915 instead of isspace.
9916 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
9917 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
9918 instead of isxdigit and ISDIGIT instead of isdigit.
9919
80fc5e77
SM
99202020-05-22 Simon Marchi <simon.marchi@efficios.com>
9921
9922 * gdbtypes.h (struct type) <field>: New method.
9923 (TYPE_FIELDS): Remove, replace all uses with either type::fields
9924 or type::field.
9925
3cabb6b0
SM
99262020-05-22 Simon Marchi <simon.marchi@efficios.com>
9927
9928 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
9929 (TYPE_FIELDS): Use type::fields. Change all call sites that
9930 modify the propery to use type::set_fields instead.
9931
1f704f76
SM
99322020-05-22 Simon Marchi <simon.marchi@efficios.com>
9933
9934 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
9935 type::num_fields instead.
9936
5e33d5f4
SM
99372020-05-22 Simon Marchi <simon.marchi@efficios.com>
9938
9939 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
9940 methods.
9941 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
9942 that modify the number of fields to use type::set_num_fields
9943 instead.
9944
9392ebb3
TT
99452020-05-22 Tom Tromey <tromey@adacore.com>
9946
9947 * compile/compile-object-load.h (munmap_list_free): Don't
9948 declare.
9949
7c13f4e8
AB
99502020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
9951
9952 * annotate.c (annotate_source_line): Update return type, add call
9953 to update current symtab and line.
9954 * annotate.h (annotate_source_line): Update return type, and
9955 extend header comment.
9956 * source.c (info_line_command): Check annotation_level before
9957 calling annotate_source_line.
9958 * stack.c (print_frame_info): If calling annotate_source_line
9959 returns true, then don't print any other source line information.
9960
aa370940
SM
99612020-05-21 Simon Marchi <simon.marchi@efficios.com>
9962
9963 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
9964
84d53fa9
SM
99652020-05-21 Simon Marchi <simon.marchi@efficios.com>
9966
9967 * coffread.c (patch_type): Remove NULL check before xfree.
9968 * corefile.c (set_gnutarget): Likewise.
9969 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
9970 * exec.c (build_section_table): Likewise.
9971 * remote.c (remote_target::pass_signals): Likewise.
9972 * utils.c (n_spaces): Likewise.
9973 * cli/cli-script.c (document_command): Likewise.
9974 * i386-windows-tdep.c (core_process_module_section): Likewise.
9975 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
9976
9d428aae
SM
99772020-05-20 Simon Marchi <simon.marchi@efficios.com>
9978
9979 * symfile.c (reread_symbols): Clear objfile's section_offsets
9980 vector and section indices, re-compute them by calling
9981 sym_offsets.
9982
250106a7
TT
99832020-05-20 Tom Tromey <tromey@adacore.com>
9984
9985 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 9986 (desc_one_bound, desc_index_type): Compute field name.
250106a7 9987
9a0bacfb
TV
99882020-05-20 Tom de Vries <tdevries@suse.de>
9989
9990 PR symtab/25833
9991 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
9992
7b958a48
AM
99932020-05-20 Alan Modra <amodra@gmail.com>
9994
9995 PR 25993
9996 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
9997 bfd_set_filename.
9998 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
9999 passed to bfd_set_filename.
10000 * symfile-mem.c (add_vsyscall_page): Likewise for string
10001 passed to symbol_file_add_from_memory.
10002 (symbol_file_add_from_memory): Make name param a const char* and
10003 don't strdup.
10004
c7e97679
AM
100052020-05-20 Alan Modra <amodra@gmail.com>
10006
10007 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
10008 rather than accessing bfd->filename directly.
10009 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
10010 and use bfd_section_name.
10011 * dwarf2/frame.c (decode_frame_entry): Likewise.
10012 * exec.c (exec_set_section_address): Likewise.
10013 * solib-aix.c (solib_aix_bfd_open): Likewise.
10014 * stap-probe.c (get_stap_base_address): Likewise.
10015 * symfile.c (reread_symbols): Likewise.
10016
563c591b
TT
100172020-05-19 Tom Tromey <tromey@adacore.com>
10018
10019 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
10020
f408d82c
SM
100212020-05-19 Simon Marchi <simon.marchi@efficios.com>
10022
10023 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
10024
98c59b52
PA
100252020-05-19 Pedro Alves <palves@redhat.com>
10026
10027 * NEWS (set exec-file-mismatch): Adjust entry.
10028 * exec.c: Include "build-id.h".
10029 (validate_exec_file): Try to match build IDs instead of filenames.
10030 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
10031 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
10032 and pass down 'warn_if_slow'.
10033 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
10034 gdb_bfd_open_closure to pass it down.
10035 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
10036
4111f652
PA
100372020-05-19 Pedro Alves <palves@redhat.com>
10038
10039 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
10040 * target.c (target_fileio_open_1): Rename to target_fileio_open
10041 and make extern. Use bool.
10042 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
10043 (target_fileio_read_alloc_1): Adjust.
10044 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
10045 (target_fileio_open_warn_if_slow): Delete declaration.
10046
ad80db5b
PA
100472020-05-19 Pedro Alves <palves@redhat.com>
10048
10049 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
10050 Adjust all callers.
10051
1d6ce4d3
YS
100522020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
10053
10054 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
10055 whether disp is negative.
10056
9005fbbb
SM
100572020-05-19 Simon Marchi <simon.marchi@efficios.com>
10058
10059 * symfile.h (struct symfile_segment_data)
10060 <~symfile_segment_data>: Remove.
10061 <segment_info>: Change to std::vector.
10062 * symfile.c (default_symfile_segments): Update.
10063 * elfread.c (elf_symfile_segments): Update.
10064
68b888ff
SM
100652020-05-19 Simon Marchi <simon.marchi@efficios.com>
10066
10067 * symfile.h (struct symfile_segment_data) <struct segment>: New.
10068 <segments>: New.
10069 <segment_bases, segment_sizes>: Remove.
10070 * symfile.c (default_symfile_segments): Update.
10071 * elfread.c (elf_symfile_segments): Update.
10072 * remote.c (remote_target::get_offsets): Update.
10073 * solib-target.c (solib_target_relocate_section_addresses):
10074 Update.
10075
62982abd
SM
100762020-05-19 Simon Marchi <simon.marchi@efficios.com>
10077
10078 * symfile.h (struct symfile_segment_data): Initialize fields.
10079 <~symfile_segment_data>: Add.
10080 (symfile_segment_data_up): New.
10081 (struct sym_fns) <sym_segments>: Return a
10082 symfile_segment_data_up.
10083 (default_symfile_segments): Return a symfile_segment_data_up.
10084 (free_symfile_segment_data): Remove.
10085 (get_symfile_segment_data): Return a symfile_segment_data_up.
10086 * symfile.c (default_symfile_segments): Likewise.
10087 (get_symfile_segment_data): Likewise.
10088 (free_symfile_segment_data): Remove.
10089 (symfile_find_segment_sections): Update.
10090 * elfread.c (elf_symfile_segments): Return a
10091 symfile_segment_data_up.
10092 * remote.c (remote_target::get_offsets): Update.
10093 * solib-target.c (solib_target_relocate_section_addresses):
10094 Update.
10095 * symfile-debug.c (debug_sym_segments): Return a
10096 symfile_segment_data_up.
10097
7f204339
RO
100982020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10099
e52a0f1b
RO
10100 PR build/25981
10101 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
10102 Hardcode register numbers.
10103
7f204339
RO
10104 PR build/25981
10105 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
10106 procfs_find_LDT_entry): Remove.
10107 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
10108 procfs_find_LDT_entry): Remove.
10109 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
10110 Remove.
10111
7f32a4d5
PA
101122020-05-17 Pedro Alves <palves@redhat.com>
10113 Andrew Burgess <andrew.burgess@embecosm.com>
10114 Keno Fischer <keno@juliacomputing.com>
10115
10116 PR gdb/25741
10117 * breakpoint.c (build_target_condition_list): Update comments.
10118 (build_target_command_list): Update comments and skip matching
10119 locations.
10120 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
10121 a separate function. Simplify "set breakpoint auto-hw off"
10122 handling.
10123 (insert_breakpoints): Update comment.
10124 (tracepoint_locations_match): New parameter. For breakpoints,
10125 compare location types too, if the caller wants to.
10126 (handle_automatic_hardware_breakpoints): New functions.
10127 (bp_location_is_less_than): Also sort by location type and
10128 hardware breakpoint length.
10129 (update_global_location_list): Handle "set breakpoint auto-hw on"
10130 here.
10131 (update_breakpoint_locations): Ask breakpoint_locations_match to
10132 ignore location types.
10133
7d93a1e0
SM
101342020-05-16 Simon Marchi <simon.marchi@efficios.com>
10135
10136 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
10137 type::name instead.
10138
d0e39ea2
SM
101392020-05-16 Simon Marchi <simon.marchi@efficios.com>
10140
10141 * gdbtypes.h (struct type) <name, set_name>: New methods.
10142 (TYPE_CODE): Use type::name. Change all call sites used to set
10143 the name to use type::set_name instead.
10144
2dab0c7b
TT
101452020-05-16 Tom Tromey <tom@tromey.com>
10146
10147 * top.c (quit_force): Update.
10148 * infrun.c (handle_no_resumed): Update.
10149 * top.h (all_uis): New function.
10150 (ALL_UIS): Remove.
10151
59f7bd8d
SM
101522020-05-16 Simon Marchi <simon.marchi@efficios.com>
10153
10154 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
10155
9bf058f0
PA
101562020-05-16 Pedro Alves <palves@redhat.com>
10157
10158 * ia64-linux-nat.c
10159 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
10160 Declare method.
10161 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
10162
8f86ae1a
SM
101632020-05-15 Simon Marchi <simon.marchi@efficios.com>
10164
10165 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
10166 (sparc64_adi_info): Likewise.
10167
d6bc0792
TT
101682020-05-15 Tom Tromey <tom@tromey.com>
10169
10170 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
10171 block_objfile.
10172 (lookup_objfile_from_block): Remove.
10173 (lookup_symbol_in_block, lookup_symbol_in_static_block)
10174 (lookup_global_symbol): Use block_objfile.
10175 * symtab.h (lookup_objfile_from_block): Don't declare.
10176 * printcmd.c (clear_dangling_display_expressions): Use
10177 block_objfile.
10178 * parse.c (operator_check_standard): Use block_objfile.
10179
8c14c3a3
TT
101802020-05-15 Tom Tromey <tom@tromey.com>
10181
10182 * language.c (language_alloc_type_symbol): Set
10183 SYMBOL_SECTION.
10184 * symtab.c (initialize_objfile_symbol): Remove.
10185 (allocate_symbol): Remove.
10186 (allocate_template_symbol): Remove.
10187 * dwarf2/read.c (fixup_go_packaging): Use "new".
10188 (new_symbol): Use "new".
10189 (read_variable): Don't call initialize_objfile_symbol. Use
10190 "new".
10191 (read_func_scope): Use "new".
10192 * xcoffread.c (process_xcoff_symbol): Don't call
10193 initialize_objfile_symbol.
10194 (SYMBOL_DUP): Remove.
10195 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
10196 "new".
10197 * symtab.h (allocate_symbol, initialize_objfile_symbol)
10198 (allocate_template_symbol): Don't declare.
10199 (struct symbol): Add copy constructor. Change defaults.
10200 * jit.c (finalize_symtab): Use "new".
10201 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
10202 Use "new".
10203 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
10204 (common_block_end): Use "new".
10205 * mdebugread.c (parse_symbol): Use "new".
10206 (new_symbol): Likewise.
10207
5b4a1a8d
PW
102082020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10209
10210 * NEWS: Mention changes to help and apropos.
10211
57b4f16e
PW
102122020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10213
10214 * command.h (enum command_class): Improve comments, document
10215 that class_alias is for user-defined aliases, give the class
10216 name for each class, remove unused class_xdb.
10217 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
10218 * breakpoint.c (_initialize_breakpoint): Replace class_alias
10219 by a precise class.
10220 * infcmd.c (_initialize_infcmd): Likewise.
10221 * reverse.c (_initialize_reverse): Likewise.
10222 * stack.c (_initialize_stack): Likewise.
10223 * symfile.c (_initialize_symfile): Likewise.
10224 * tracepoint.c (_initialize_tracepoint): Likewise.
10225
7c05caf7
PW
102262020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10227
10228 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
10229 when their aliased command is traversed.
10230 (help_cmd): Add fput_command_names_styled call to
10231 output command name and aliases when command has an alias.
10232
3b3aaacb
PW
102332020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10234
10235 * cli/cli-decode.h (help_cmd_list): Remove declaration.
10236 * cli/cli-decode.c (help_cmd_list): Declare as static,
10237 remove prefix argument, use bool for recurse arg, rework to show the aliases of
10238 a command together with the command.
10239 (fput_command_name_styled, fput_command_names_styled): New functions.
10240 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
10241 fput_command_name_styled.
10242 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
10243 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
10244
7aa1b46f
PW
102452020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10246
10247 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
10248 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
10249 * command.h (cmd_show_list): Likewise.
10250 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
10251 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
10252
89bcba74
PW
102532020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10254
10255 * unittests/command-def-selftests.c (traverse_command_structure):
10256 Verify all commands of a list have the same prefix command and
10257 that only the top cmdlist commands have a null prefix.
10258
3f4d92eb
PW
102592020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10260
10261 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
10262 as prefix, not one of its aliases.
10263 (set_cmd_prefix): Remove.
10264 (do_add_cmd): Centralize the setting of the prefix of a command, when
10265 command is defined after its full chain of prefix commands.
10266 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
10267 (add_setshow_cmd_full): Likewise.
10268 (update_prefix_field_of_prefixed_commands): New function.
10269 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
10270 update_prefix_field_of_prefixed_commands.
10271 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
10272 addresses of remote_set_cmdlist and remote_show_cmdlist given
10273 as argument, not the address of an argument.
10274 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
10275 * gdb/remote.c (_initialize_remote): Likewise.
10276
0605465f
PW
102772020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10278
10279 * cli/cli-cmds.c (alias_command): Check for an existing alias
10280 using lookup_cmd_composition, as valid_command_p is too strict
10281 and forbids aliases that are the prefix of an existing alias
10282 or command.
10283 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
10284 command is properly recognised as a valid command.
10285
58e6ac70
PW
102862020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10287
10288 * unittests/help-doc-selftests.c: Rename to
10289 unittests/command-def-selftests.c
10290 * unittests/command-def-selftests.c (help_doc_tests): Update some
10291 comments.
10292 (command_structure_tests, traverse_command_structure): New namespace
10293 and function.
10294 (command_structure_invariants_tests): New function.
10295 (_initialize_command_def_selftests) Renamed from
10296 _initialize_help_doc_selftests, register command_structure_invariants
10297 selftest.
10298
a7b9ceb8
PW
102992020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10300
10301 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
10302 an alias of 'show'.
10303
b2188a06
JB
103042020-05-15 Joel Brobecker <brobecker@adacore.com>
10305
10306 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
10307 ada_is_fixed_point_type. Update all callers.
10308 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
10309 all callers.
10310 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
10311 Update all callers.
10312 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
10313 print_fixed_point_type. Update all callers.
10314 * ada-valprint.c (ada_value_print_num): Replace call to
10315 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
10316
a51951c2
KB
103172020-05-14 Kevin Buettner <kevinb@redhat.com>
10318
10319 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
10320 processors.
10321 (cpu_supports_bts): Add CV_AMD case.
10322
29d6859f
LM
103232020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
10324 Simon Marchi <simon.marchi@efficios.com>
10325
10326 * infrun.c (stop_all_threads): Collect multiple wait events at
10327 each pass.
10328
78134374
SM
103292020-05-14 Simon Marchi <simon.marchi@efficios.com>
10330
10331 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
10332 type::code instead.
10333
67607e24
SM
103342020-05-14 Simon Marchi <simon.marchi@efficios.com>
10335
10336 * gdbtypes.h (struct type) <code, set_code>: New methods.
10337 (TYPE_CODE): Use type::code. Change all call sites used to set
10338 the code to use type::set_code instead.
10339
a05575d3
TBA
103402020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10341 Tom de Vries <tdevries@suse.de>
10342 Pedro Alves <palves@redhat.com>
10343
10344 PR threads/25478
10345 * infrun.c (stop_all_threads): Do NOT ignore
10346 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
10347 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
10348 received.
10349 (handle_no_resumed): Remove code handling a live inferior with no
10350 threads.
10351 * remote.c (has_single_non_exited_thread): New.
10352 (remote_target::update_thread_list): Do not delete a thread if is
10353 the last thread of the process.
10354 * thread.c (thread_select): Call delete_exited_threads instead of
10355 prune_threads.
10356
6ad82919
TBA
103572020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10358
10359 * infrun.c (stop_all_threads): Enable/disable thread events of all
10360 targets. Move a debug message denoting the end of the function
10361 into the SCOPED_EXIT block.
10362
d890404b
TBA
103632020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10364
10365 * process-stratum-target.h: Include <set>.
10366 (all_non_exited_process_targets, switch_to_target_no_thread): New
10367 function declarations.
10368 * process-stratum-target.c (all_non_exited_process_targets)
10369 (switch_to_target_no_thread): New function implementations.
10370
293b3ebc
TBA
103712020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10372
10373 * infrun.c (handle_inferior_event): Extract out a piece of code
10374 into...
10375 (mark_non_executing_threads): ...this new function.
10376
7ca9b62a
TBA
103772020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10378
10379 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
10380 use.
10381
fc75c28b
TBA
103822020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10383
10384 * regcache.c (regcache_read_pc_protected): New function
10385 implementation that returns 0 if the PC cannot read via
10386 'regcache_read_pc'.
10387 * infrun.c (proceed): Call 'regcache_read_pc_protected'
10388 instead of 'regcache_read_pc'.
10389 (keep_going_pass_signal): Ditto.
10390
a89febbd
TT
103912020-05-13 Tom Tromey <tromey@adacore.com>
10392
10393 * ada-lang.c (align_value): Remove.
10394 (ada_template_to_fixed_record_type_1): Use align_up.
10395
f7e23710
TBA
103962020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10397
10398 * async-event.c: Update the copyright year.
10399 * async-event.h: Update the copyright year.
10400
02ff80c2
SM
104012020-05-12 Simon Marchi <simon.marchi@efficios.com>
10402
10403 * objfiles.h (is_addr_in_objfile,
10404 shared_objfile_contains_address_p): Return bool.
10405 * objfile.c (is_addr_in_objfile,
10406 shared_objfile_contains_address_p): Return bool.
10407
4fd6c7e8
TT
104082020-05-11 Tom Tromey <tromey@adacore.com>
10409
10410 * cli/cli-cmds.c (info_command): Restore.
10411 (_initialize_cli_cmds): Use add_prefix_command for "info".
10412 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
10413
5eb68a39
TT
104142020-05-11 Tom Tromey <tromey@adacore.com>
10415
10416 * ada-lang.c (ada_value_primitive_field): Now public.
10417 * ada-lang.h (ada_value_primitive_field): Declare.
10418 * ada-valprint.c (print_field_values): Use
10419 ada_value_primitive_field for wrapper fields.
10420
7666722f
TV
104212020-05-11 Tom de Vries <tdevries@suse.de>
10422
10423 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
10424 MODULE_DOMAIN.
10425
3ee6bb11
TV
104262020-05-11 Tom de Vries <tdevries@suse.de>
10427
10428 PR symtab/25941
10429 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
10430 with length 0, if not gdb-produced.
10431 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
10432
43434996
TV
104332020-05-09 Tom de Vries <tdevries@suse.de>
10434
10435 PR gdb/25955
10436 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
10437 calculation.
10438
2f78cffc
TT
104392020-05-09 Tom Tromey <tom@tromey.com>
10440
10441 * top.c (server_command): Now bool.
10442 * top.h (server_command): Now bool.
10443
4f7bc5ed
TT
104442020-05-08 Tom Tromey <tromey@adacore.com>
10445
10446 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
10447 already being processed.
10448
8be4b118
TT
104492020-05-08 Tom Tromey <tom@tromey.com>
10450
10451 * printcmd.c (struct display) <next>: Remove.
10452 <display>: New constructor.
10453 <exp_string>: Now a std::string.
10454 <enabled_p>: Now a bool.
10455 (display_number): Move definition earlier.
10456 (displays): Rename from display_chain. Now a std::vector.
10457 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
10458 (display_command): Update.
10459 (do_one_display, disable_display)
10460 (enable_disable_display_command, do_enable_disable_display):
10461 Update.
10462 (free_display): Remove.
10463 (clear_displays): Rewrite.
10464 (delete_display): Update.
10465 (map_display_numbers): Use function_view. Remove "data"
10466 parameter. Update.
10467 (do_delete_display): Remove.
10468 (undisplay_command): Update.
10469 (do_one_display, do_displays, disable_display)
10470 (info_display_command): Update.
10471 (do_enable_disable_display): Remove.
10472 (enable_disable_display_command)
10473 (clear_dangling_display_expressions): Update.
10474
94c93c35
TT
104752020-05-08 Tom Tromey <tom@tromey.com>
10476
10477 * symtab.c (set_symbol_cache_size)
10478 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
10479 (maintenance_print_symbol_cache_statistics): Update.
10480 * symmisc.c (print_symbol_bcache_statistics)
10481 (print_objfile_statistics, maintenance_print_objfiles)
10482 (maintenance_info_symtabs, maintenance_check_symtabs)
10483 (maintenance_expand_symtabs, maintenance_info_line_tables):
10484 Update.
10485 * symfile-debug.c (set_debug_symfile): Update.
10486 * source.c (forget_cached_source_info): Update.
10487 * python/python.c (gdbpy_progspaces): Update.
10488 * psymtab.c (maintenance_info_psymtabs): Update.
10489 * probe.c (parse_probes): Update.
10490 * linespec.c (iterate_over_all_matching_symtabs)
10491 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
10492 * guile/scm-progspace.c (gdbscm_progspaces): Update.
10493 * exec.c (exec_target::close): Update.
10494 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
10495 * breakpoint.c (print_one_breakpoint_location)
10496 (create_longjmp_master_breakpoint)
10497 (create_std_terminate_master_breakpoint): Update.
10498 * progspace.c (program_spaces): Now a std::vector.
10499 (maybe_new_address_space): Update.
10500 (add_program_space): Remove.
10501 (program_space::program_space): Update.
10502 (remove_program_space): Update.
10503 (number_of_program_spaces): Remove.
10504 (print_program_space, update_address_spaces): Update.
10505 * progspace.h (program_spaces): Change type.
10506 (ALL_PSPACES): Remove.
10507 (number_of_program_spaces): Don't declare.
10508 (struct program_space) <next>: Remove.
10509
a1fd1ac9
TT
105102020-05-08 Tom Tromey <tom@tromey.com>
10511
10512 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
10513 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
10514 (enable_break): Update.
10515 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
10516 (frv_fdpic_find_canonical_descriptor): Update.
10517 (frv_fetch_objfile_link_map): Update.
10518 * progspace.c (program_space::free_all_objfiles): Update.
10519 (program_space::solibs): New method.
10520 * progspace.h (struct program_space) <solibs>: New method.
10521 * solist.h (master_so_list): Don't declare.
10522 (ALL_SO_LIBS): Remove.
10523 * solib.h (so_list_head): Remove.
10524 (update_solib_list): Update comment.
10525 * solib.c (master_so_list): Remove.
10526 (solib_used, update_solib_list, solib_add)
10527 (info_sharedlibrary_command, clear_solib)
10528 (reload_shared_libraries_1, remove_user_added_objfile): Update.
10529
38eae084
TT
105302020-05-08 Tom Tromey <tom@tromey.com>
10531
10532 * extension.c (extension_languages): Now a std::array.
10533 (ALL_EXTENSION_LANGUAGES): Remove.
10534 (get_ext_lang_defn, get_ext_lang_of_file)
10535 (eval_ext_lang_from_control_command): Update.
10536 (finish_ext_lang_initialization)
10537 (auto_load_ext_lang_scripts_for_objfile)
10538 (ext_lang_type_printers::ext_lang_type_printers)
10539 (apply_ext_lang_type_printers)
10540 (ext_lang_type_printers::~ext_lang_type_printers)
10541 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
10542 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
10543 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
10544 (get_matching_xmethod_workers, ext_lang_colorize)
10545 (ext_lang_before_prompt): Update.
10546 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
10547
596dc4ad
TT
105482020-05-08 Tom Tromey <tom@tromey.com>
10549
10550 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
10551 overload.
10552 <swap_string, m_string>: Remove.
10553 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
10554 Update.
10555 * stabsread.c (define_symbol, read_type): Update.
10556 * linespec.c (find_linespec_symbols): Update.
10557 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
10558 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
10559 * dbxread.c (read_dbx_symtab): Update.
10560 * cp-support.h (cp_canonicalize_string_full)
10561 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
10562 Return unique_xmalloc_ptr.
10563 * cp-support.c (inspect_type): Update.
10564 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
10565 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
10566 Likewise.
10567 * c-typeprint.c (print_name_maybe_canonical): Update.
10568 * break-catch-throw.c (check_status_exception_catchpoint):
10569 Update.
10570
bf4cb9be
TV
105712020-05-08 Tom de Vries <tdevries@suse.de>
10572
10573 * infrun.c (follow_fork): Copy current_line and current_symtab to
10574 child thread.
10575
a1b68f28
SM
105762020-05-07 Simon Marchi <simon.marchi@efficios.com>
10577
10578 * async-event.c (struct async_signal_handler, struct
10579 async_event_handler): Reformat, remove typedef.
10580
98d48915
SM
105812020-05-07 Simon Marchi <simon.marchi@efficios.com>
10582
10583 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
10584 access thistype->main_type->dyn_prop_list directly.
10585
7aa91313
SM
105862020-05-07 Simon Marchi <simon.marchi@efficios.com>
10587
10588 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
10589 (remove_dyn_prop): Remove. Update all users to use
10590 type::remove_dyn_prop.
10591 * gdbtypes.c (remove_dyn_prop): Rename to...
10592 (type::remove_dyn_prop): ... this.
10593
5c54719c
SM
105942020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
10595
10596 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
10597 (add_dyn_prop): Remove. Update all users to use
10598 type::add_dyn_prop.
10599 * gdbtypes.c (add_dyn_prop): Rename to...
10600 (type::add_dyn_prop): ... this.
10601
24e99c6c
SM
106022020-05-07 Simon Marchi <simon.marchi@efficios.com>
10603
10604 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
10605 (get_dyn_prop): Remove. Update all users to use
10606 type::dyn_prop.
10607 * gdbtypes.c (get_dyn_prop): Rename to...
10608 (type::dyn_prop): ... this.
10609
0d4bf016
SM
106102020-05-06 Simon Marchi <simon.marchi@efficios.com>
10611
10612 * gdbtypes.h (struct main_type) <flag_static>: Remove.
10613
ac4a4f1c
SM
106142020-05-06 Simon Marchi <simon.marchi@efficios.com>
10615
10616 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
10617 instruction, skip it if it's there.
10618
a3bbacc1
SM
106192020-05-05 Simon Marchi <simon.marchi@efficios.com>
10620
10621 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
10622
c3236f84
SM
106232020-05-04 Simon Marchi <simon.marchi@efficios.com>
10624
10625 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
10626 * gdbtypes.c (recursive_dump_type): Remove use of
10627 TYPE_INCOMPLETE.
10628
3b6acaee
TT
106292020-05-03 Tom Tromey <tom@tromey.com>
10630
10631 * breakpoint.c (catch_command, tcatch_command): Remove.
10632 (_initialize_breakpoint): Use add_basic_prefix_cmd,
10633 add_show_prefix_cmd.
10634 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
10635 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
10636 Remove.
10637 (add_internal_problem_command): Use add_basic_prefix_cmd,
10638 add_show_prefix_cmd.
10639 * mips-tdep.c (set_mipsfpu_command): Remove.
10640 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
10641 * dwarf2/index-cache.c (set_index_cache_command): Remove.
10642 (_initialize_index_cache): Use add_basic_prefix_cmd.
10643 * memattr.c (dummy_cmd): Remove.
10644 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
10645 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
10646 (_initialize_tui_win): Use add_basic_prefix_cmd,
10647 add_show_prefix_cmd.
10648 * cli/cli-logging.c (set_logging_command): Remove.
10649 (_initialize_cli_logging): Use add_basic_prefix_cmd,
10650 add_show_prefix_cmd.
10651 (show_logging_command): Remove.
10652 * target.c (target_command): Remove.
10653 (add_target): Use add_basic_prefix_cmd.
10654
a51119cd
HD
106552020-05-02 Hannes Domani <ssbssa@yahoo.de>
10656
10657 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
10658
652fc23a 106592020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 10660
652fc23a
PW
10661 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
10662 info_command.
10663
117539e6
KR
106642020-04-30 Kamil Rytarowski <n54@gmx.com>
10665
10666 * nbsd-nat.c (nbsd_enable_proc_events)
10667 (nbsd_nat_target::post_startup_inferior): Add.
10668 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
10669 (nbsd_nat_target::update_thread_list): Rewrite.
10670 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
10671 "PTRACE_LWP_CREATE".
10672 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
10673
102e38eb 106742020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 10675
102e38eb
PW
10676 * stack.c (_initialize_stack): Remove duplicated creation
10677 of "frame" command and "f" alias.
10678
ee9d1e5f
HD
106792020-04-30 Hannes Domani <ssbssa@yahoo.de>
10680
10681 PR gdb/18706
10682 * gdbtypes.c (check_typedef): Calculate size of array of
10683 stubbed type.
10684
627c7fb8
HD
106852020-04-30 Hannes Domani <ssbssa@yahoo.de>
10686
10687 PR gdb/15559
10688 * i386-tdep.c (i386_push_dummy_call): Call
10689 i386_thiscall_push_dummy_call.
10690 (i386_thiscall_push_dummy_call): New function.
10691 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
10692 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
10693 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
10694
ffc2844e
SM
106952020-04-29 Simon Marchi <simon.marchi@efficios.com>
10696
10697 * gdbarch.sh (do_read): Add shellcheck disable directive for
10698 warning SC2162.
10699
1207375d
SM
107002020-04-29 Simon Marchi <simon.marchi@efficios.com>
10701
10702 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
10703 "referenced but not assigned" warning.
10704
9fdb2916
SM
107052020-04-29 Simon Marchi <simon.marchi@efficios.com>
10706
10707 * gdbarch.sh: Remove code that sets fallbackdefault.
10708
759cea5e
SM
107092020-04-29 Simon Marchi <simon.marchi@efficios.com>
10710
10711 * gdbarch.sh: Use shell operators && and || instead of
10712 -a and -o.
10713
cb02ab24
SM
107142020-04-29 Simon Marchi <simon.marchi@efficios.com>
10715
10716 * gdbarch.sh: Use $(...) instead of `...`.
10717
a6fc5ffc
SM
107182020-04-29 Simon Marchi <simon.marchi@efficios.com>
10719
10720 * gdbarch.sh: Use double quotes around variables.
10721
8d113d13
SM
107222020-04-29 Simon Marchi <simon.marchi@efficios.com>
10723
10724 * gdbarch.sh: Use %s with printf, instead of variables in the
10725 format string.
10726
ed6acedd
TT
107272020-04-29 Tom Tromey <tromey@adacore.com>
10728
10729 PR ada/25875:
10730 * dwarf2/read.c (update_enumeration_type_from_children): Compute
10731 type fields here.
10732 (read_enumeration_type): Call
10733 update_enumeration_type_from_children later. Update comments.
10734 (process_enumeration_scope): Don't create type fields.
10735
b68b1b58
KR
107362020-04-29 Kamil Rytarowski <n54@gmx.com>
10737
10738 * nbsd-tdep.c: Include "xml-syscall.h".
10739 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
10740
f94b2e03
KR
107412020-04-29 Kamil Rytarowski <n54@gmx.com>
10742
10743 * nbsd-nat.c: Include "sys/wait.h".
10744 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
10745 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
10746 (nbsd_nat_target::remove_exec_catchpoint)
10747 (nbsd_nat_target::set_syscall_catchpoint): Add.
10748 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
10749 (nbsd_nat_target::insert_exec_catchpoint)
10750 (nbsd_nat_target::remove_exec_catchpoint)
10751 (nbsd_nat_target::set_syscall_catchpoint): Add.
10752 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
10753 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
10754 `nbsd_get_syscall_number'.
10755
fc49bc72
TT
107562020-04-29 Tom Tromey <tom@tromey.com>
10757
10758 * stack.c (print_block_frame_labels): Remove.
10759
d642b692
HD
107602020-04-29 Hannes Domani <ssbssa@yahoo.de>
10761
10762 PR gdb/17320
10763 * ada-valprint.c (val_print_packed_array_elements): Move array
10764 end bracket to new line.
10765 (ada_val_print_string): Remove extra spaces before first array
10766 element.
10767 * c-valprint.c (c_value_print_array): Likewise.
10768 * m2-valprint.c (m2_print_array_contents): Likewise.
10769 (m2_value_print_inner): Likewise.
10770 * p-valprint.c (pascal_value_print_inner): Likewise.
10771 * valprint.c (generic_val_print_array): Likewise.
10772 (value_print_array_elements): Move first array element and array
10773 end bracket to new line.
10774
ea90f227
TV
107752020-04-29 Tom de Vries <tdevries@suse.de>
10776
10777 PR symtab/25889
10778 * linespec.c (find_method): Fix ix calculation.
10779
4498ef4f
KR
107802020-04-28 Kamil Rytarowski <n54@gmx.com>
10781
10782 * syscalls/update-netbsd.sh: New file.
10783 * syscalls/netbsd.xml: Regenerate.
10784 * data-directory/Makefile.in: Register `netbsd.xml' in
10785 `SYSCALLS_FILES'.
10786
a55e30b5
SM
107872020-04-28 Simon Marchi <simon.marchi@efficios.com>
10788
10789 * syscalls/update-freebsd.sh: Add double quotes.
10790
2b2fbab8
TT
107912020-04-28 Tom Tromey <tom@tromey.com>
10792
10793 * NEWS: Update.
10794 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
10795 (cmdpy_init): Allow class_tui.
10796
a65189c9
TV
107972020-04-28 Mark Williams <mark@myosotissp.com>
10798
10799 PR gdb/24480
10800 * dwarf2read.c: Add missing assingments to list_in_scope when
10801 start_symtab was already called.
10802
1b95cdb7
SM
108032020-04-28 Simon Marchi <simon.marchi@efficios.com>
10804
10805 PR gdb/25881
10806 * dwarf2/read.c (offset_map_type): Use
10807 gdb:hash_enum<sect_offset> as hash function.
10808
15cd93d0
TV
108092020-04-28 Tom de Vries <tdevries@suse.de>
10810
10811 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
10812 with DW_AT_signature.
10813
1eb39914
SM
108142020-04-27 Simon Marchi <simon.marchi@efficios.com>
10815
10816 * configure.ac: Remove check for fs_base/gs_base in
10817 user_regs_struct.
10818 * configure: Re-generate.
10819 * config.in: Re-generate.
10820 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
10821 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
10822 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
10823
991a3e2e
LM
108242020-04-27 Luis Machado <luis.machado@linaro.org>
10825
10826 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
10827 problematic inline frame unwinding situation.
10828 * frame.c (frame_id_computed_p): New function.
10829 * frame.h (frame_id_computed_p): New prototype.
10830
361ba0e8
TT
108312020-04-26 Tom Tromey <tom@tromey.com>
10832
10833 * command.h (enum command_class) <class_pseudo>: Remove.
10834
bc3609fd
PW
108352020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10836
10837 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
10838 and whitespace.
10839
b9771db7
KR
108402020-04-25 Kamil Rytarowski <n54@gmx.com>
10841
ec16513e
SM
10842 * inf-ptrace.c (inf_ptrace_target::wait): Remove
10843 `PT_GET_PROCESS_STATE' block.
b9771db7 10844
7151c1af
TT
108452020-04-24 Tom Tromey <tom@tromey.com>
10846
10847 * symtab.h (symbol_get_demangled_name): Don't declare.
10848 * symtab.c (symbol_get_demangled_name): Remove.
10849 (general_symbol_info::natural_name)
10850 (general_symbol_info::demangled_name): Update.
10851
906bb4c5
TT
108522020-04-24 Tom Tromey <tom@tromey.com>
10853
10854 PR rust/25025:
10855 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
10856
bcfe6157
TT
108572020-04-24 Tom Tromey <tom@tromey.com>
10858
10859 PR symtab/12707:
10860 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
10861 exists.
10862 (new_symbol): Likewise.
10863 * compile/compile-object-load.c (get_out_value_type): Use
10864 symbol_matches_search_name.
10865
f049a313
TT
108662020-04-24 Tom Tromey <tom@tromey.com>
10867
10868 * dwarf2/read.c (add_partial_symbol): Do not call
10869 compute_and_set_names.
10870
76e288d1
TT
108712020-04-24 Tom Tromey <tom@tromey.com>
10872
10873 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
10874 overload.
10875
2467f4f6
TT
108762020-04-24 Tom Tromey <tom@tromey.com>
10877
10878 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
10879 (add_psymbol_to_list): New overload. Make old overload call new
10880 one.
10881 * psympriv.h (add_psymbol_to_list): New overload.
10882
e61108c9
TT
108832020-04-24 Tom Tromey <tom@tromey.com>
10884
10885 * dwarf2/read.c (partial_die_info::read) <case
10886 DW_AT_linkage_name>: Use value_as_string.
10887 (dwarf2_string_attr): Use value_as_string.
10888 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
10889 method.
10890 * dwarf2/attribute.c (attribute::value_as_string): New method.
10891
8c87a452
TT
108922020-04-24 Tom Tromey <tom@tromey.com>
10893
10894 * symtab.c (general_symbol_info::natural_name)
10895 (general_symbol_info::demangled_name): Check for language_rust.
10896
787de330
TT
108972020-04-24 Tom Tromey <tom@tromey.com>
10898
10899 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
10900 (dwarf2_physname): ... from here.
10901 (partial_die_info::read): Add Rust "{" hack.
10902
ff985671
TT
109032020-04-24 Tom Tromey <tom@tromey.com>
10904
10905 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
10906 method.
10907 (symbol_set_demangled_name): Don't declare.
10908 * symtab.c (general_symbol_info::set_demangled_name): Rename from
10909 symbol_set_demangled_name.
10910 (general_symbol_info::set_language)
10911 (general_symbol_info::compute_and_set_names): Update.
10912 * minsyms.c (minimal_symbol_reader::install): Update.
10913 * dwarf2/read.c (new_symbol): Update.
10914
1acda803
TT
109152020-04-24 Tom Tromey <tromey@adacore.com>
10916
10917 PR python/23662:
10918 * python/py-type.c (convert_field): Handle
10919 FIELD_LOC_KIND_DWARF_BLOCK.
10920 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
10921 (typy_get_dynamic): Nw function.
10922 (type_object_getset): Add "dynamic".
10923 * NEWS: Add entry.
10924
d656f129
TT
109252020-04-24 Tom Tromey <tromey@adacore.com>
10926
10927 * ada-typeprint.c (print_choices, print_variant_part)
10928 (print_record_field_types_dynamic): New functions.
10929 (print_record_field_types): Use print_record_field_types_dynamic.
10930
7d79de9a
TT
109312020-04-24 Tom Tromey <tromey@adacore.com>
10932
10933 * dwarf2/read.c (handle_data_member_location): New overload.
10934 (dwarf2_add_field): Use it.
10935 (decode_locdesc): Add "computed" parameter. Update comment.
10936 * gdbtypes.c (is_dynamic_type_internal): Also look for
10937 FIELD_LOC_KIND_DWARF_BLOCK.
10938 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
10939 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
10940 virtual base classes.
10941 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
10942 FIELD_LOC_KIND_DWARF_BLOCK.
10943
f8e89861
TT
109442020-04-24 Tom Tromey <tromey@adacore.com>
10945
10946 * dwarf2/read.c (read_structure_type): Handle dynamic length.
10947 * gdbtypes.c (is_dynamic_type_internal): Check
10948 TYPE_HAS_DYNAMIC_LENGTH.
10949 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
10950 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
10951 New macros.
10952 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
10953 constant.
10954
9c6a1327
TT
109552020-04-24 Tom Tromey <tromey@adacore.com>
10956
10957 * dwarf2/read.c (struct variant_field): Rewrite.
10958 (struct variant_part_builder): New.
10959 (struct nextfield): Remove "variant" field. Add "offset".
10960 (struct field_info): Add "current_variant_part" and
10961 "variant_parts".
10962 (alloc_discriminant_info): Remove.
10963 (alloc_rust_variant): New function.
10964 (quirk_rust_enum): Update.
10965 (dwarf2_add_field): Set "offset" member. Don't handle
10966 DW_TAG_variant_part.
10967 (offset_map_type): New typedef.
10968 (convert_variant_range, create_one_variant)
10969 (create_one_variant_part, create_variant_parts)
10970 (add_variant_property): New functions.
10971 (dwarf2_attach_fields_to_type): Call add_variant_property.
10972 (read_structure_type): Don't handle DW_TAG_variant_part.
10973 (handle_variant_part, handle_variant): New functions.
10974 (handle_struct_member_die): Use them.
10975 (process_structure_scope): Don't handle variant parts.
10976 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
10977 (struct discriminant_info): Remove.
10978 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
10979 (struct main_type) <flag_discriminated_union>: Remove.
10980 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
10981 (rust_enum_variant): Return int. Remove "contents". Rewrite.
10982 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
10983 Update.
10984 * valops.c (value_union_variant): Remove.
10985 * value.h (value_union_variant): Don't declare.
10986
b249d2c2
TT
109872020-04-24 Tom Tromey <tromey@adacore.com>
10988
10989 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
10990 (ada_value_primitive_packed_val): Update.
10991 * ada-valprint.c (ada_value_print_1): Update.
10992 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
10993 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
10994 just an address. Use evaluate_for_locexpr_baton.
10995 (dwarf2_evaluate_property): Update.
10996 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
10997 array_view.
10998 * findvar.c (default_read_var_value): Update.
10999 * gdbtypes.c (compute_variant_fields_inner)
11000 (resolve_dynamic_type_internal): Update.
11001 (resolve_dynamic_type): Change type of valaddr parameter.
11002 * gdbtypes.h (resolve_dynamic_type): Update.
11003 * valarith.c (value_subscripted_rvalue): Update.
11004 * value.c (value_from_contents_and_address): Update.
11005
61122aa9
TT
110062020-04-24 Tom Tromey <tromey@adacore.com>
11007
11008 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
11009 "push_initial_value" parameter.
11010 (dwarf2_evaluate_property): Likewise.
11011 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
11012
ef83a141
TT
110132020-04-24 Tom Tromey <tromey@adacore.com>
11014
11015 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
11016 (variant::matches, compute_variant_fields_recurse)
11017 (compute_variant_fields_inner, compute_variant_fields): New
11018 functions.
11019 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
11020 Use resolved_type after type is made.
11021 (operator==): Add new cases.
11022 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
11023 (struct discriminant_range, struct variant, struct variant_part):
11024 New.
11025 (union dynamic_prop_data) <variant_parts, original_type>: New
11026 members.
11027 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
11028 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
11029 constants.
11030 * value.c (unpack_bits_as_long): Now public.
11031 * value.h (unpack_bits_as_long): Declare.
11032
675127ec
TT
110332020-04-24 Tom Tromey <tromey@adacore.com>
11034
11035 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
11036 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
11037
9852ceef
HD
110382020-04-24 Hannes Domani <ssbssa@yahoo.de>
11039
11040 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
11041
7632c6ce
KR
110422020-04-24 Kamil Rytarowski <n54@gmx.com>
11043
11044 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
11045 (remove_fork_catchpoint, post_startup_inferior)
11046 (post_attach): Move...
11047 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
11048 (remove_fork_catchpoint, post_startup_inferior)
11049 (post_attach): ...here.
11050 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
11051 (remove_fork_catchpoint, post_startup_inferior)
11052 (post_attach): Move...
11053 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
11054 (remove_fork_catchpoint, post_startup_inferior)
11055 (post_attach): ...here.
11056
7be2bb4f
TT
110572020-04-24 Tom Tromey <tromey@adacore.com>
11058
11059 * nat/windows-nat.h (struct windows_thread_info)
11060 <pc_adjusted>: New member.
11061 * windows-nat.c (windows_fetch_one_register): Check
11062 pc_adjusted.
11063 (windows_nat_target::get_windows_debug_event)
11064 (windows_nat_target::wait): Set pc_adjusted.
11065
f80cb3b4
TV
110662020-04-24 Tom de Vries <tdevries@suse.de>
11067
11068 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
11069 Run gdb-add-index inside temp dir.
11070
29514b87
TT
110712020-04-23 Tom Tromey <tromey@adacore.com>
11072
11073 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
11074 in loop.
11075
5939967b
LM
110762020-04-23 Luis Machado <luis.machado@linaro.org>
11077
11078 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
11079 get_frame_register instead of gdbarch_unwind_pc.
11080
70bc38f5
TV
110812020-04-23 Tom de Vries <tdevries@suse.de>
11082
11083 * symtab.c (lookup_global_symbol): Prefer def over decl.
11084
de82891c
TV
110852020-04-23 Tom de Vries <tdevries@suse.de>
11086
11087 PR symtab/25807
11088 * block.c (best_symbol, better_symbol): Promote to external.
11089 * block.h (best_symbol, better_symbol): Declare.
11090 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
11091 decl.
11092
ecc6c606
TT
110932020-04-23 Tom Tromey <tromey@adacore.com>
11094
11095 PR ada/25837:
11096 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
11097 "const char *", not a "const std::string &".
11098 <name_and_matcher::operator==>: Update.
11099 * unittests/lookup_name_info-selftests.c: Change type of
11100 "result".
11101
740480b8
TT
111022020-04-23 Tom Tromey <tom@tromey.com>
11103
11104 * inferior.h (iterate_over_inferiors): Don't declare.
11105 * inferior.c (iterate_over_inferiors): Remove.
11106 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
11107 Remove.
11108 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
11109 use iterate_over_inferiors.
11110 (darwin_resume_inferior_it)
11111 (struct resume_inferior_threads_param)
11112 (darwin_resume_inferior_threads_it): Remove.
11113 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
11114
ae3ab1f0
TV
111152020-04-23 Tom de Vries <tdevries@suse.de>
11116
11117 * blockframe.c (find_pc_partial_function): Use
11118 find_pc_sect_compunit_symtab rather than
11119 objfile->sf->qf->find_pc_sect_compunit_symtab.
11120
317d2668
TV
111212020-04-22 Tom de Vries <tdevries@suse.de>
11122
11123 PR symtab/25764
11124 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
11125 in psymtabs.
11126
eea9e357
TV
111272020-04-22 Tom de Vries <tdevries@suse.de>
11128
11129 PR symtab/25801
11130 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
11131 symtabs.
11132
3d5afab3
TV
111332020-04-22 Tom de Vries <tdevries@suse.de>
11134
11135 PR symtab/25700
11136 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
11137 CU if already created.
11138
d43b7a2d
TBA
111392020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11140
11141 * infrun.c (displaced_step_fixup): Switch to the event_thread
11142 before calling displaced_step_restore, not after.
11143
d89edf9b
MM
111442020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11145
11146 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
11147 its inferior is not recorded by us.
11148 (record_btrace_target_open): Replace call to
11149 all_non_exited_threads () with call to current_inferior
11150 ()->non_exited_threads ().
11151 (record_btrace_target::stop_recording): Likewise.
11152 (record_btrace_target::close): Likewise.
11153 (record_btrace_target::wait): Likewise.
11154 (record_btrace_target::record_stop_replaying): Likewise.
11155
5897fd49
MM
111562020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11157
11158 * btrace.c (btrace_enable): Throw an error on double enables and
11159 when enabling recording fails.
11160 (btrace_disable): Throw an error if the thread is not recorded.
11161
1a476b6d
MM
111622020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11163
11164 * record-btrace.c (record_btrace_target::fetch_registers): Forward
11165 request if we do not have a thread_info.
11166
4778a5f8
TV
111672020-04-21 Tom de Vries <tdevries@suse.de>
11168
11169 PR gdb/25471
11170 * thread.c
11171 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
11172 exception in get_frame_id.
11173
0fa7617d
TT
111742020-04-20 Tom Tromey <tromey@adacore.com>
11175
11176 * python/python.c (struct gdbpy_event): Mark move constructor as
11177 noexcept.
11178 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
11179 constructor as noexcept.
11180 * completer.h (struct completion_result): Mark move constructor as
11181 noexcept.
11182 * completer.c (completion_result::completion_result): Use
11183 initialization style. Don't call reset_match_list.
11184
ad23bda0
MS
111852020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
11186
11187 * MAINTAINERS (Write After Approval): Add myself.
11188
45e1f031
TT
111892020-04-18 Tom Tromey <tom@tromey.com>
11190
11191 * windows-tdep.c (init_w32_command_list)
11192 (w32_prefix_command_valid): Restore.
11193 (_initialize_windows_tdep): Call init_w32_command_list.
11194
08feed99
TT
111952020-04-18 Tom Tromey <tom@tromey.com>
11196
11197 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
11198 * value.c (value_fn_field): Update.
11199 * valops.c (find_function_in_inferior)
11200 (value_allocate_space_in_inferior): Update.
11201 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11202 Update.
11203 * tui/tui-source.c (tui_source_window::set_contents): Update.
11204 * symtab.c (lookup_global_or_static_symbol)
11205 (find_function_start_sal_1, skip_prologue_sal)
11206 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
11207 * symmisc.c (dump_msymbols, dump_symtab_1)
11208 (maintenance_print_one_line_table): Update.
11209 * symfile.c (init_entry_point_info, section_is_mapped)
11210 (list_overlays_command, simple_read_overlay_table)
11211 (simple_overlay_update_1): Update.
11212 * stap-probe.c (handle_stap_probe): Update.
11213 * stabsread.c (dbx_init_float_type, define_symbol)
11214 (read_one_struct_field, read_enum_type, read_range_type): Update.
11215 * source.c (info_line_command): Update.
11216 * python/python.c (gdbpy_source_objfile_script)
11217 (gdbpy_execute_objfile_script): Update.
11218 * python/py-type.c (save_objfile_types): Update.
11219 * python/py-objfile.c (py_free_objfile): Update.
11220 * python/py-inferior.c (python_new_objfile): Update.
11221 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
11222 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
11223 (maintenance_check_psymtabs): Update.
11224 * printcmd.c (info_address_command): Update.
11225 * objfiles.h (struct objfile) <arch>: New method, from
11226 get_objfile_arch.
11227 (get_objfile_arch): Don't declare.
11228 * objfiles.c (get_objfile_arch): Remove.
11229 (filter_overlapping_sections): Update.
11230 * minsyms.c (msymbol_is_function): Update.
11231 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
11232 (output_nondebug_symbol): Update.
11233 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
11234 (mdebug_expand_psymtab): Update.
11235 * machoread.c (macho_add_oso_symfile): Update.
11236 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
11237 Update.
11238 * linux-fork.c (checkpoint_command): Update.
11239 * linespec.c (convert_linespec_to_sals): Update.
11240 * jit.c (finalize_symtab): Update.
11241 * infrun.c (insert_exception_resume_from_probe): Update.
11242 * ia64-tdep.c (ia64_find_unwind_table): Update.
11243 * hppa-tdep.c (internalize_unwinds): Update.
11244 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
11245 Update.
11246 * gcore.c (call_target_sbrk): Update.
11247 * elfread.c (record_minimal_symbol, elf_symtab_read)
11248 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
11249 (elf_gnu_ifunc_resolve_by_got): Update.
11250 * dwarf2/read.c (create_addrmap_from_index)
11251 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11252 (read_debug_names_from_section)
11253 (process_psymtab_comp_unit_reader, add_partial_symbol)
11254 (add_partial_subprogram, process_full_comp_unit)
11255 (read_file_scope, read_func_scope, read_lexical_block_scope)
11256 (read_call_site_scope, dwarf2_ranges_read)
11257 (dwarf2_record_block_ranges, dwarf2_add_field)
11258 (mark_common_block_symbol_computed, read_tag_pointer_type)
11259 (read_tag_string_type, dwarf2_init_float_type)
11260 (dwarf2_init_complex_target_type, read_base_type)
11261 (partial_die_info::read, partial_die_info::read)
11262 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
11263 (dwarf2_fetch_die_loc_sect_off): Update.
11264 * dwarf2/loc.c (dwarf2_find_location_expression)
11265 (class dwarf_evaluate_loc_desc, rw_pieced_value)
11266 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
11267 (dwarf2_loc_desc_get_symbol_read_needs)
11268 (locexpr_describe_location_piece, locexpr_describe_location_1)
11269 (loclist_describe_location): Update.
11270 * dwarf2/index-write.c (write_debug_names): Update.
11271 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
11272 * dtrace-probe.c (dtrace_process_dof): Update.
11273 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
11274 (process_one_symbol): Update.
11275 * ctfread.c (ctf_init_float_type, read_base_type): Update.
11276 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
11277 (coff_read_enum_type): Update.
11278 * cli/cli-cmds.c (edit_command, list_command): Update.
11279 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
11280 * breakpoint.c (create_overlay_event_breakpoint)
11281 (create_longjmp_master_breakpoint)
11282 (create_std_terminate_master_breakpoint)
11283 (create_exception_master_breakpoint, get_sal_arch): Update.
11284 * block.c (block_gdbarch): Update.
11285 * annotate.c (annotate_source_line): Update.
11286
0743fc83
TT
112872020-04-17 Tom Tromey <tromey@adacore.com>
11288
11289 * auto-load.c (show_auto_load_cmd): Remove.
11290 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
11291 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
11292 (maintenance_print_arc_command): Remove.
11293 * tui/tui-win.c (tui_command): Remove.
11294 (tui_get_cmd_list): Use add_basic_prefix_cmd.
11295 * tui/tui-layout.c (tui_layout_command): Remove.
11296 (_initialize_tui_layout): Use add_basic_prefix_cmd.
11297 * python/python.c (user_set_python, user_show_python): Remove.
11298 (_initialize_python): Use add_basic_prefix_cmd,
11299 add_show_prefix_cmd.
11300 * guile/guile.c (set_guile_command, show_guile_command): Remove.
11301 (install_gdb_commands): Use add_basic_prefix_cmd,
11302 add_show_prefix_cmd.
11303 (info_guile_command): Remove.
11304 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
11305 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
11306 add_show_prefix_cmd.
11307 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
11308 Remove do_set and do_show parameters.
11309 * cli/cli-style.c (set_style, show_style): Remove.
11310 (_initialize_cli_style): Use add_basic_prefix_cmd,
11311 add_show_prefix_cmd.
11312 (cli_style_option::add_setshow_commands): Remove do_set and
11313 do_show parameters.
11314 (cli_style_option::add_setshow_commands): Use
11315 add_basic_prefix_cmd, add_show_prefix_cmd.
11316 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
11317 (set_style_name): Remove.
11318 * cli/cli-dump.c (dump_command, append_command): Remove.
11319 (srec_dump_command, ihex_dump_command, verilog_dump_command)
11320 (tekhex_dump_command, binary_dump_command)
11321 (binary_append_command): Remove.
11322 (_initialize_cli_dump): Use add_basic_prefix_cmd.
11323 * windows-tdep.c (w32_prefix_command_valid): Remove global.
11324 (init_w32_command_list): Remove; move into ...
11325 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
11326 * valprint.c (set_print, show_print, set_print_raw)
11327 (show_print_raw): Remove.
11328 (_initialize_valprint): Use add_basic_prefix_cmd,
11329 add_show_prefix_cmd.
11330 * typeprint.c (set_print_type, show_print_type): Remove.
11331 (_initialize_typeprint): Use add_basic_prefix_cmd,
11332 add_show_prefix_cmd.
11333 * record.c (set_record_command, show_record_command): Remove.
11334 (_initialize_record): Use add_basic_prefix_cmd,
11335 add_show_prefix_cmd.
11336 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
11337 add_show_prefix_cmd.
11338 (info_command, show_command, set_debug, show_debug): Remove.
11339 * top.h (set_history, show_history): Don't declare.
11340 * top.c (set_history, show_history): Remove.
11341 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
11342 (unset_tdesc_cmd): Remove.
11343 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
11344 add_show_prefix_cmd.
11345 * symtab.c (info_module_command): Remove.
11346 (_initialize_symtab): Use add_basic_prefix_cmd.
11347 * symfile.c (overlay_command): Remove.
11348 (_initialize_symfile): Use add_basic_prefix_cmd.
11349 * sparc64-tdep.c (info_adi_command): Remove.
11350 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
11351 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
11352 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
11353 add_show_prefix_cmd.
11354 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
11355 (_initialize_serial): Use add_basic_prefix_cmd,
11356 add_show_prefix_cmd.
11357 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
11358 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
11359 add_show_prefix_cmd.
11360 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
11361 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
11362 add_show_prefix_cmd.
11363 * riscv-tdep.c (show_riscv_command, set_riscv_command)
11364 (show_debug_riscv_command, set_debug_riscv_command): Remove.
11365 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
11366 add_show_prefix_cmd.
11367 * remote.c (remote_command, set_remote_cmd): Remove.
11368 (_initialize_remote): Use add_basic_prefix_cmd.
11369 * record-full.c (set_record_full_command)
11370 (show_record_full_command): Remove.
11371 (_initialize_record_full): Use add_basic_prefix_cmd,
11372 add_show_prefix_cmd.
11373 * record-btrace.c (cmd_set_record_btrace)
11374 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
11375 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
11376 (cmd_show_record_btrace_pt): Remove.
11377 (_initialize_record_btrace): Use add_basic_prefix_cmd,
11378 add_show_prefix_cmd.
11379 * ravenscar-thread.c (set_ravenscar_command)
11380 (show_ravenscar_command): Remove.
11381 (_initialize_ravenscar): Use add_basic_prefix_cmd,
11382 add_show_prefix_cmd.
11383 * mips-tdep.c (show_mips_command, set_mips_command)
11384 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
11385 add_show_prefix_cmd.
11386 * maint.c (maintenance_command, maintenance_info_command)
11387 (maintenance_check_command, maintenance_print_command)
11388 (maintenance_set_cmd, maintenance_show_cmd): Remove.
11389 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
11390 add_show_prefix_cmd.
11391 (show_per_command_cmd): Remove.
11392 * maint-test-settings.c (maintenance_set_test_settings_cmd):
11393 Remove.
11394 (maintenance_show_test_settings_cmd): Remove.
11395 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
11396 add_show_prefix_cmd.
11397 * maint-test-options.c (maintenance_test_options_command):
11398 Remove.
11399 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
11400 * macrocmd.c (macro_command): Remove
11401 (_initialize_macrocmd): Use add_basic_prefix_cmd.
11402 * language.c (set_check, show_check): Remove.
11403 (_initialize_language): Use add_basic_prefix_cmd,
11404 add_show_prefix_cmd.
11405 * infcmd.c (unset_command): Remove.
11406 (_initialize_infcmd): Use add_basic_prefix_cmd.
11407 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
11408 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
11409 add_show_prefix_cmd.
11410 * go32-nat.c (go32_info_dos_command): Remove.
11411 (_initialize_go32_nat): Use add_basic_prefix_cmd.
11412 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
11413 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
11414 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
11415 (_initialize_frame): Use add_basic_prefix_cmd,
11416 add_show_prefix_cmd.
11417 * dcache.c (set_dcache_command, show_dcache_command): Remove.
11418 (_initialize_dcache): Use add_basic_prefix_cmd,
11419 add_show_prefix_cmd.
11420 * cp-support.c (maint_cplus_command): Remove.
11421 (_initialize_cp_support): Use add_basic_prefix_cmd.
11422 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
11423 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
11424 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
11425 add_basic_prefix_cmd, add_show_prefix_cmd.
11426 * breakpoint.c (save_command): Remove.
11427 (_initialize_breakpoint): Use add_basic_prefix_cmd.
11428 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
11429 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
11430 add_show_prefix_cmd.
11431 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
11432 (set_ada_command, show_ada_command): Remove.
11433 (_initialize_ada_language): Use add_basic_prefix_cmd,
11434 add_show_prefix_cmd.
11435 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
11436
3557f442
KR
114372020-04-16 Kamil Rytarowski <n54@gmx.com>
11438
11439 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
11440 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
11441
16197208
SM
114422020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11443
11444 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
11445 warning messages.
11446
00ac85d3
SM
114472020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11448
11449 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
11450 import table is not at beginning of .idata section.
11451
381ce63f
PA
114522020-04-16 Pedro Alves <palves@redhat.com>
11453
11454 * inferior.c (delete_inferior): Use delete operator directly
11455 instead of delete_program_space.
11456 * progspace.c (add_program_space): New, factored out from
11457 program_space::program_space.
11458 (remove_program_space): New, factored out from
11459 delete_program_space.
11460 (program_space::program_space): Remove intro comment. Rewrite.
11461 (program_space::~program_space): Remove intro comment. Call
11462 remove_program_space.
11463 (delete_program_space): Delete.
11464 * progspace.h (program_space::program_space): Make explicit. Move
11465 intro comment here, adjusted.
11466 (program_space::~program_space): Move intro comment here,
11467 adjusted.
11468 (delete_program_space): Remove.
11469
a010605f
TT
114702020-04-16 Tom Tromey <tromey@adacore.com>
11471
11472 * windows-nat.c (windows_nat::handle_access_violation): New
11473 function.
11474 * nat/windows-nat.h (handle_access_violation): Declare.
11475 * nat/windows-nat.c (handle_exception): Move Cygwin code to
11476 windows-nat.c. Call handle_access_violation.
11477
efba5c23
TV
114782020-04-16 Tom de Vries <tdevries@suse.de>
11479
11480 PR symtab/25791
11481 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
11482 CUs without psymtab.
11483
97ed802d
KB
114842020-04-16 Kevin Buettner <kevinb@redhat.com>
11485
11486 * python/python.c (do_start_initialization): Don't call
11487 PyEval_InitThreads for Python 3.9 and beyond.
11488
c7d64809
KR
114892020-04-15 Kamil Rytarowski <n54@gmx.com>
11490
11491 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
11492 thread functions.
11493 (obsd_nat_target::wait): Likewise.
11494
ce127a96
TT
114952020-04-15 Tom Tromey <tromey@adacore.com>
11496
11497 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
11498 (DEBUG_EXCEPT): Use debug_printf.
11499
99f1bc6a
AB
115002020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
11501
11502 * completer.c (class completion_tracker::completion_hash_entry)
11503 <hash_name>: New member function.
11504 (completion_tracker::discard_completions): New callback to hash a
11505 completion_hash_entry, pass this to htab_create_alloc.
11506
a0e9b532
JT
115072016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
11508
11509 * windows-nat.c (windows_make_so): Warn rather than stopping with
11510 an error if realpath() fails.
11511
06ca5dd4
KR
115122020-04-14 Kamil Rytarowski <n54@gmx.com>
11513
11514 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
11515 (nbsd_nat_target::info_proc): Add do_status.
11516
194d088f
TV
115172020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
11518 Tom de Vries <tdevries@suse.de>
11519
11520 PR symtab/25718
11521 * psympriv.h (struct partial_symtab::read_symtab)
11522 (struct partial_symtab::expand_psymtab)
11523 (struct partial_symtab::read_dependencies): Update comments.
11524 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
11525 read_symtab for includer.
11526 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
11527 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
11528 (struct dwarf2_include_psymtab::m_readin): Remove.
11529 (struct dwarf2_include_psymtab::includer): New member function.
11530 (dwarf2_psymtab::expand_psymtab): Assert !readin.
11531
c1a66c06
TV
115322020-04-14 Tom de Vries <tdevries@suse.de>
11533
11534 PR symtab/25720
11535 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
11536 with NULL symbol_matcher and lookup_name.
11537 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
11538 and lookup_name.
11539 * dwarf2/read.c (dw2_expand_symtabs_matching)
11540 (dw2_debug_names_expand_symtabs_matching): Same.
11541 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
11542 Make lookup_name a pointer. Update comment.
11543 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
11544 lookup_name being a pointer.
11545 * symfile.c (expand_symtabs_matching): Same.
11546 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
11547 * linespec.c (iterate_over_all_matching_symtabs): Same.
11548
400b5eca
TT
115492020-04-13 Tom Tromey <tom@tromey.com>
11550
11551 * run-on-main-thread.c: Update include.
11552 * unittests/main-thread-selftests.c: Update include.
11553 * tui/tui-win.c: Update include.
11554 * tui/tui-io.c: Update include.
11555 * tui/tui-interp.c: Update include.
11556 * tui/tui-hooks.c: Update include.
11557 * top.h: Update include.
11558 * top.c: Update include.
11559 * ser-base.c: Update include.
11560 * remote.c: Update include.
11561 * remote-notif.c: Update include.
11562 * remote-fileio.c: Update include.
11563 * record-full.c: Update include.
11564 * record-btrace.c: Update include.
11565 * python/python.c: Update include.
11566 * posix-hdep.c: Update include.
11567 * mingw-hdep.c: Update include.
11568 * mi/mi-main.c: Update include.
11569 * mi/mi-interp.c: Update include.
11570 * main.c: Update include.
11571 * linux-nat.c: Update include.
11572 * interps.c: Update include.
11573 * infrun.c: Update include.
11574 * inf-loop.c: Update include.
11575 * event-top.c: Update include.
11576 * event-loop.c: Move to ../gdbsupport/.
11577 * event-loop.h: Move to ../gdbsupport/.
11578 * async-event.h: Update include.
11579 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
11580
93b54c8e
TT
115812020-04-13 Tom Tromey <tom@tromey.com>
11582
11583 * tui/tui-win.c: Include async-event.h.
11584 * remote.c: Include async-event.h.
11585 * remote-notif.c: Include async-event.h.
11586 * record-full.c: Include async-event.h.
11587 * record-btrace.c: Include async-event.h.
11588 * infrun.c: Include async-event.h.
11589 * event-top.c: Include async-event.h.
11590 * event-loop.h: Move some declarations to async-event.h.
11591 * event-loop.c: Don't include ser-event.h or top.h. Move some
11592 code to async-event.c.
11593 * async-event.h: New file.
11594 * async-event.c: New file.
11595 * Makefile.in (COMMON_SFILES): Add async-event.c.
11596 (HFILES_NO_SRCDIR): Add async-event.h.
11597
c1cd3163
TT
115982020-04-13 Tom Tromey <tom@tromey.com>
11599
11600 * utils.c (flush_streams): New function.
11601 * event-loop.c (gdb_wait_for_event): Call flush_streams.
11602
29f2bf4f
TT
116032020-04-13 Tom Tromey <tom@tromey.com>
11604
11605 * event-loop.c (handle_file_event): Use warning, not
11606 printf_unfiltered.
11607
98029d02
TT
116082020-04-13 Tom Tromey <tom@tromey.com>
11609
11610 * event-loop.c: Include <chrono>.
11611
06cc9596
TT
116122020-04-13 Tom Tromey <tom@tromey.com>
11613
11614 * gdb_select.h: Move to ../gdbsupport/.
11615 * event-loop.c: Update include path.
11616 * top.c: Update include path.
11617 * ser-base.c: Update include path.
11618 * ui-file.c: Update include path.
11619 * ser-tcp.c: Update include path.
11620 * guile/scm-ports.c: Update include path.
11621 * posix-hdep.c: Update include path.
11622 * ser-unix.c: Update include path.
11623 * gdb_usleep.c: Update include path.
11624 * mingw-hdep.c: Update include path.
11625 * inflow.c: Update include path.
11626 * infrun.c: Update include path.
11627 * event-top.c: Update include path.
11628
8ae8e197
TT
116292020-04-13 Tom Tromey <tom@tromey.com>
11630
11631 * configure: Rebuild.
11632 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
11633
58cf28e8
TT
116342020-04-13 Tom Tromey <tom@tromey.com>
11635
11636 * event-loop.h (start_event_loop): Don't declare.
11637 * event-loop.c (start_event_loop): Move...
11638 * main.c (start_event_loop): ...here. Now static.
11639
b7f999ae
SDJ
116402020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
11641
11642 * MAINTAINERS: Update my email address.
11643
1085dfd4
KR
116442020-04-12 Kamil Rytarowski <n54@gmx.com>
11645
11646 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
11647 IP_ALL.
11648
49d1d1f5
KR
116492020-04-12 Kamil Rytarowski <n54@gmx.com>
11650
11651 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 11652 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 11653
b4848d2a
KR
116542020-04-12 Kamil Rytarowski <n54@gmx.com>
11655
11656 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 11657 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 11658
51c133d5
KR
116592020-04-12 Kamil Rytarowski <n54@gmx.com>
11660
11661 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
11662
54b8cbd0
KR
116632020-04-11 Kamil Rytarowski <n54@gmx.com>
11664
11665 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
11666 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
11667 (nbsd_nat_target::info_proc): New functions.
11668 * nbsd-nat.c (kinfo_get_vmmap): New function.
11669 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
11670 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
11671 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
11672 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
11673 functions.
11674 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
11675 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
11676 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
11677 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
11678 (KINFO_VME_FLAG_GROWS_DOWN): New.
11679
cf83625d
AS
116802020-04-10 Artur Shepilko <nomadbyte@gmail.com>
11681
11682 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
11683 bit shift.
11684
0c4311ab
TT
116852020-04-10 Tom Tromey <tromey@adacore.com>
11686
11687 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
11688
3e65b3e9
TT
116892020-04-10 Tom Tromey <tromey@adacore.com>
11690
11691 * symtab.c (get_symbol_address, get_msymbol_address): Skip
11692 separate debug files.
11693
13302e95
HD
116942020-04-10 Hannes Domani <ssbssa@yahoo.de>
11695
11696 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11697 Move to...
11698 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11699 ... here.
11700 * windows-nat.c (windows_nat_target::get_windows_debug_event):
11701 Check for STATUS_WX86_BREAKPOINT.
11702 (windows_nat_target::wait): Same.
11703
bdfc1e8a
TV
117042020-04-10 Tom de Vries <tdevries@suse.de>
11705
11706 PR cli/25808
11707 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
11708
f4460aec
SM
117092020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11710
11711 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
11712 (Write After Approval): Remove Tom de Vries.
11713
a25198bb
BE
117142020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
11715
11716 revert partially:
11717 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11718
aac66a4c
SM
11719 * buildsym.c (record_line): Fix undefined behavior and preserve
11720 lines at eof.
a25198bb 11721
206c98a6
KR
117222020-04-09 Kamil Rytarowski <n54@gmx.com>
11723
11724 * auxv.h (svr4_auxv_parse): New.
11725 * auxv.c (default_auxv_parse): Split into default_auxv_parse
11726 and generic_auxv_parse.
11727 (svr4_auxv_parse): Add.
11728 * obsd-tdep.c: Include "auxv.h".
11729 (obsd_auxv_parse): Remove.
11730 (obsd_init_abi): Remove comment.
11731 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
11732 from `obsd_auxv_parse' to `svr4_auxv_parse'.
11733 * nbsd-tdep.c: Include "auxv.h".
11734 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
11735
71fbdbaf
TT
117362020-04-08 Tom Tromey <tromey@adacore.com>
11737
11738 * nat/windows-nat.h (last_wait_event): Don't declare.
11739 (wait_for_debug_event): Update comment.
11740 * nat/windows-nat.c (last_wait_event): Now static.
11741
2c1d95e8
TT
117422020-04-08 Tom Tromey <tromey@adacore.com>
11743
11744 * windows-nat.c (wait_for_debug_event): Move to
11745 nat/windows-nat.c.
11746 * nat/windows-nat.h (wait_for_debug_event): Declare.
11747 * nat/windows-nat.c (wait_for_debug_event): Move from
11748 windows-nat.c. No longer static.
11749
d2977bc4
TT
117502020-04-08 Tom Tromey <tromey@adacore.com>
11751
11752 * windows-nat.c (get_windows_debug_event): Use
11753 fetch_pending_stop.
11754 * nat/windows-nat.h (fetch_pending_stop): Declare.
11755 * nat/windows-nat.c (fetch_pending_stop): New function.
11756
e758e19c
TT
117572020-04-08 Tom Tromey <tromey@adacore.com>
11758
11759 * windows-nat.c (windows_continue): Use matching_pending_stop and
11760 continue_last_debug_event.
11761 * nat/windows-nat.h (matching_pending_stop)
11762 (continue_last_debug_event): Declare.
11763 * nat/windows-nat.c (DEBUG_EVENTS): New define.
11764 (matching_pending_stop, continue_last_debug_event): New
11765 functions.
11766
8d30e395
TT
117672020-04-08 Tom Tromey <tromey@adacore.com>
11768
11769 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
11770 (handle_exception_result): Move to nat/windows-nat.h.
11771 (DEBUG_EXCEPTION_SIMPLE): Remove.
11772 (windows_nat::handle_ms_vc_exception): New function.
11773 (handle_exception): Move to nat/windows-nat.c.
11774 (get_windows_debug_event): Update.
11775 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
11776 nat/windows-nat.c.
11777 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
11778 (handle_exception_result): Move from windows-nat.c.
11779 (handle_exception): Declare.
11780 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
11781 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
11782 windows-nat.c.
11783
29de418d
TT
117842020-04-08 Tom Tromey <tromey@adacore.com>
11785
11786 * windows-nat.c (exception_count, event_count): Remove.
11787 (handle_exception, get_windows_debug_event)
11788 (do_initial_windows_stuff): Update.
11789
a816ba18
TT
117902020-04-08 Tom Tromey <tromey@adacore.com>
11791
11792 * windows-nat.c (windows_nat::handle_load_dll)
11793 (windows_nat::handle_unload_dll): Rename. No longer static.
11794 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
11795 Declare.
11796
a00caa12
TT
117972020-04-08 Tom Tromey <tromey@adacore.com>
11798
11799 * complaints.h (stop_whining): Declare at top-level.
11800 (complaint): Don't declare stop_whining.
11801
d41b524f
TT
118022020-04-08 Tom Tromey <tromey@adacore.com>
11803
11804 * windows-nat.c (windows_nat::handle_output_debug_string):
11805 Rename. No longer static.
11806 * nat/windows-nat.h (handle_output_debug_string): Declare.
11807
3c76026d
TT
118082020-04-08 Tom Tromey <tromey@adacore.com>
11809
11810 * windows-nat.c (current_process_handle, current_process_id)
11811 (main_thread_id, last_sig, current_event, last_wait_event)
11812 (current_windows_thread, desired_stop_thread_id, pending_stops)
11813 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
11814 (display_selectors, fake_create_process)
11815 (get_windows_debug_event): Update.
11816 * nat/windows-nat.h (current_process_handle, current_process_id)
11817 (main_thread_id, last_sig, current_event, last_wait_event)
11818 (current_windows_thread, desired_stop_thread_id, pending_stops)
11819 (struct pending_stop, siginfo_er): Move from windows-nat.c.
11820 * nat/windows-nat.c (current_process_handle, current_process_id)
11821 (main_thread_id, last_sig, current_event, last_wait_event)
11822 (current_windows_thread, desired_stop_thread_id, pending_stops)
11823 (siginfo_er): New globals. Move from windows-nat.c.
11824
9d8679cc
TT
118252020-04-08 Tom Tromey <tromey@adacore.com>
11826
11827 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
11828 (handle_load_dll): Update.
11829 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
11830
28688adf
TT
118312020-04-08 Tom Tromey <tromey@adacore.com>
11832
11833 * windows-nat.c (enum thread_disposition_type): Move to
11834 nat/windows-nat.h.
11835 (windows_nat::thread_rec): Rename from thread_rec. No longer
11836 static.
11837 (windows_add_thread, windows_nat_target::fetch_registers)
11838 (windows_nat_target::store_registers, handle_exception)
11839 (windows_nat_target::resume, get_windows_debug_event)
11840 (windows_nat_target::get_tib_address)
11841 (windows_nat_target::thread_name)
11842 (windows_nat_target::thread_alive): Update.
11843 * nat/windows-nat.h (enum thread_disposition_type): Move from
11844 windows-nat.c.
11845 (thread_rec): Declare.
11846
4834dad0
TT
118472020-04-08 Tom Tromey <tromey@adacore.com>
11848
11849 * windows-nat.c: Add "using namespace".
11850 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
11851 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
11852
65bafd5b
TT
118532020-04-08 Tom Tromey <tromey@adacore.com>
11854
11855 * nat/windows-nat.h (struct windows_thread_info): Declare
11856 destructor.
11857 * nat/windows-nat.c (~windows_thread_info): New.
11858
0a4afda3
TT
118592020-04-08 Tom Tromey <tromey@adacore.com>
11860
11861 PR gdb/22992
11862 * windows-nat.c (current_event): Update comment.
11863 (last_wait_event, desired_stop_thread_id): New globals.
11864 (struct pending_stop): New.
11865 (pending_stops): New global.
11866 (windows_nat_target) <stopped_by_sw_breakpoint>
11867 <supports_stopped_by_sw_breakpoint>: New methods.
11868 (windows_fetch_one_register): Add assertions. Adjust PC.
11869 (windows_continue): Handle pending stops. Suspend other threads
11870 when stepping. Use last_wait_event
11871 (wait_for_debug_event): New function.
11872 (get_windows_debug_event): Use wait_for_debug_event. Handle
11873 pending stops. Queue spurious stops.
11874 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
11875 (windows_nat_target::kill): Use wait_for_debug_event.
11876 * nat/windows-nat.h (struct windows_thread_info)
11877 <stopped_at_software_breakpoint>: New field.
11878 * nat/windows-nat.c (windows_thread_info::resume): Clear
11879 stopped_at_software_breakpoint.
11880
8e61ebec
TT
118812020-04-08 Tom Tromey <tromey@adacore.com>
11882
11883 * windows-nat.c (enum thread_disposition_type): New.
11884 (thread_rec): Replace "get_context" parameter with "disposition";
11885 change type.
11886 (windows_add_thread, windows_nat_target::fetch_registers)
11887 (windows_nat_target::store_registers, handle_exception)
11888 (windows_nat_target::resume, get_windows_debug_event)
11889 (windows_nat_target::get_tib_address)
11890 (windows_nat_target::thread_name)
11891 (windows_nat_target::thread_alive): Update.
11892
98a03287
TT
118932020-04-08 Tom Tromey <tromey@adacore.com>
11894
11895 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
11896 (windows_continue): Use windows_continue::resume.
11897 * nat/windows-nat.h (struct windows_thread_info) <suspend,
11898 resume>: Declare new methods.
11899 * nat/windows-nat.c: New file.
11900 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
11901
7c7411bc
TT
119022020-04-08 Tom Tromey <tromey@adacore.com>
11903
11904 * windows-nat.c (windows_add_thread, windows_delete_thread)
11905 (windows_nat_target::fetch_registers)
11906 (windows_nat_target::store_registers, fake_create_process)
11907 (windows_nat_target::resume, windows_nat_target::resume)
11908 (get_windows_debug_event, windows_nat_target::wait)
11909 (windows_nat_target::pid_to_str)
11910 (windows_nat_target::get_tib_address)
11911 (windows_nat_target::get_ada_task_ptid)
11912 (windows_nat_target::thread_name)
11913 (windows_nat_target::thread_alive): Use lwp, not tid.
11914
2950fdf7
TT
119152020-04-08 Tom Tromey <tromey@adacore.com>
11916
11917 * windows-nat.c (handle_exception)
11918 (windows_nat_target::thread_name): Update.
11919 * nat/windows-nat.h (windows_thread_info): Remove destructor.
11920 <name>: Now unique_xmalloc_ptr.
11921
62fe396b
TT
119222020-04-08 Tom Tromey <tromey@adacore.com>
11923
11924 * windows-nat.c (thread_rec)
11925 (windows_nat_target::fetch_registers): Update.
11926 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
11927 Update comment.
11928 <debug_registers_changed, reload_context>: Now bool.
11929
e9534bd2
TT
119302020-04-08 Tom Tromey <tromey@adacore.com>
11931
11932 * windows-nat.c (windows_add_thread): Use new.
11933 (windows_init_thread_list, windows_delete_thread): Use delete.
11934 (get_windows_debug_event): Update.
11935 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
11936 destructor, and initializers.
11937
ae1f8880
TT
119382020-04-08 Tom Tromey <tromey@adacore.com>
11939
11940 * windows-nat.c (struct windows_thread_info): Remove.
11941 * nat/windows-nat.h: New file.
11942
55a1e039
TT
119432020-04-08 Tom Tromey <tromey@adacore.com>
11944
11945 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
11946 (thread_rec, windows_add_thread, windows_delete_thread)
11947 (windows_continue): Update.
11948
93366324
TT
119492020-04-08 Tom Tromey <tromey@adacore.com>
11950
11951 * windows-nat.c (struct windows_thread_info): Remove typedef.
11952 (thread_head): Remove.
11953 (thread_list): New global.
11954 (thread_rec, windows_add_thread, windows_init_thread_list)
11955 (windows_delete_thread, windows_continue): Update.
11956
0f2265e2
SM
119572020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11958
11959 * windows-tdep.h (windows_init_abi): Add comment.
11960 (cygwin_init_abi): New declaration.
11961 * windows-tdep.c: Split signal enumeration in two, one for
11962 Windows and one for Cygwin.
11963 (windows_gdb_signal_to_target): Only deal with signal of the
11964 Windows OS ABI.
11965 (cygwin_gdb_signal_to_target): New function.
11966 (windows_init_abi): Rename to windows_init_abi_common, don't set
11967 gdb_signal_to_target gdbarch method. Add new new function with
11968 this name.
11969 (cygwin_init_abi): New function.
11970 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
11971 comment. Don't call windows_init_abi.
11972 (amd64_windows_init_abi): Add comment, call windows_init_abi.
11973 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
11974 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
11975 i386_windows_init_abi_common, don't call windows_init_abi. Add
11976 a new function of this name.
11977 (i386_cygwin_init_abi): New function.
11978 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
11979 OS ABI Cygwin.
11980
3810f182
SM
119812020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11982
11983 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
11984 parameter.c.
11985 (dwarf2_read_gdb_index): Update.
11986
063f8e80
KR
119872020-04-07 Kamil Rytarowski <n54@gmx.com>
11988
11989 * nbsd-tdep.c: Include "objfiles.h".
11990 (nbsd_skip_solib_resolver): New.
11991 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
11992
85a9510c 119932020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11994
11995 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
11996 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
11997 with DW_LLE_base_addressx are being emitted in DWARFv5.
11998 Add the newly added kind DW_LOC_OFFSET_PAIR also.
11999 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
12000 unsigned integer.
12001
9fc3eaae 120022020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12003
12004 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
12005 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
12006 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
12007 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
12008 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
12009 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
12010 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
12011
12012
41144253 120132020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12014
12015 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
12016 (read_loclist_index): New function definition.
12017 (lookup_loclist_base): New function definition.
12018 (read_loclist_header): New function definition.
12019 (dwarf2_cu): Add loclist_base and loclist_header field.
12020 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
12021 (read_full_die_1): Read the value of DW_AT_loclists_base.
12022 (read_attribute_reprocess): Handle DW_FORM_loclistx.
12023 (read_attribute_value): Handle DW_FORM_loclistx.
12024 (skip_one_die): Handle DW_FORM_loclistx.
12025 (loclist_header): New structure declaration.
12026 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
12027
9f4e76a4
SM
120282020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12029
12030 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
12031 constructor. Remove `addr` parameter from other constructor and
12032 add `per_cu` parameter.
12033 * dwarf2/read.c (create_partial_symtab): Update.
12034
25c11aca
TV
120352020-04-07 Tom de Vries <tdevries@suse.de>
12036
12037 PR symtab/25796
12038 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
12039 (partial_die_info::fixup): Inherit has_const_value.
12040
5707e24b
TV
120412020-04-07 Tom de Vries <tdevries@suse.de>
12042
12043 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
12044 symbols without address.
12045
05f00e22
KR
120462020-04-06 Kamil Rytarowski <n54@gmx.com>
12047
12048 * nbsd-nat.h (struct thread_info): Add forward declaration.
12049 (nbsd_nat_target::thread_alive): Add.
12050 (nbsd_nat_target::thread_name): Likewise.
12051 (nbsd_nat_target::update_thread_list): Likewise.
12052 (update_thread_list::post_attach): Likewise.
12053 (post_attach::pid_to_str): Likewise.
12054 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
12055 (nbsd_thread_lister): Add.
12056 (nbsd_nat_target::thread_alive): Likewise.
12057 (nbsd_nat_target::thread_name): Likewise.
12058 (nbsd_add_threads): Likewise.
12059 (update_thread_list::post_attach): Likewise.
12060 (nbsd_nat_target::update_thread_list): Likewise.
12061 (post_attach::pid_to_str): Likewise.
12062
6ee448cc
TT
120632020-04-06 Tom Tromey <tromey@adacore.com>
12064
12065 * ada-valprint.c (print_variant_part): Extract the variant field.
12066 (print_field_values): Use the field as the outer value when
12067 recursing.
12068
dea34e8c
TT
120692020-04-06 Tom Tromey <tromey@adacore.com>
12070
12071 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
12072 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
12073 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
12074 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
12075 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
12076
93689ce9
TT
120772020-04-06 Tom Tromey <tromey@adacore.com>
12078
12079 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
12080 TYPE_CODE_ERROR.
12081
79743962
KR
120822020-04-06 Kamil Rytarowski <n54@gmx.com>
12083
12084 * nbsd-tdep.c: Include "gdbarch.h".
12085 Define enum with NetBSD signal numbers.
12086 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
12087 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
12088 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
12089 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
12090 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
12091 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
12092 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
12093 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12094 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
12095 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
12096 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
12097 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
12098
9e7c9a03
HD
120992020-04-03 Hannes Domani <ssbssa@yahoo.de>
12100
12101 PR gdb/25325
12102 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
12103
d9e49b61
TT
121042020-04-03 Tom Tromey <tromey@adacore.com>
12105
12106 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
12107 Read constant block.
12108
e0fc5c3f
SM
121092020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12110
12111 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
12112 (gdb_bfd_get_full_section_contents): New declaration.
12113 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
12114 * windows-tdep.c (is_linked_with_cygwin_dll): Use
12115 gdb_bfd_get_full_section_contents.
12116
e2ff18a0
SM
121172020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12118
12119 * exec.c (build_section_table): Replace internal_error with
12120 gdb_assert.
12121 (section_table_xfer_memory_partial): Likewise.
12122 * mdebugread.c (parse_partial_symbols): Likewise.
12123 * psymtab.c (lookup_partial_symbol): Likewise.
12124 * utils.c (wrap_here): Likewise.
12125
0830d301
TT
121262020-04-02 Tom Tromey <tromey@adacore.com>
12127
12128 * f-lang.c (build_fortran_types): Use arch_type to initialize
12129 builtin_complex_s32 in the TYPE_CODE_ERROR case.
12130
e7da7f8f
TT
121312020-04-02 Tom Tromey <tromey@adacore.com>
12132
12133 * dwarf2/read.c (partial_die_info::read): Do not create a vector
12134 of attributes.
12135
c90d28ac
AB
121362020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
12137 Bernd Edlinger <bernd.edlinger@hotmail.de>
12138 Tom Tromey <tromey@adacore.com>
12139
12140 * buildsym.c (buildsym_compunit::record_line): Remove
12141 deduplication code.
12142
1aa98955
TV
121432020-04-02 Tom de Vries <tdevries@suse.de>
12144
12145 PR ada/24671
12146 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
12147
d3214198
TV
121482020-04-02 Tom de Vries <tdevries@suse.de>
12149
12150 * dwarf2/read.c (dwarf2_gdb_index_functions,
12151 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
12152 NULL.
12153 * psymtab.c (psym_lookup_global_symbol_language): New function.
12154 (psym_functions): Init psym_lookup_global_symbol_language with
12155 psym_lookup_global_symbol_language.
12156 * symfile-debug.c (debug_sym_quick_functions): Init
12157 lookup_global_symbol_language with NULL.
12158 * symfile.c (set_initial_language): Remove fixme comment.
12159 * symfile.h (struct quick_symbol_functions): Add
12160 lookup_global_symbol_language.
12161 * symtab.c (find_quick_global_symbol_language): New function.
12162 (find_main_name): Use find_quick_global_symbol_language.
12163
2836752f
SM
121642020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
12165
12166 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
12167
64dc2d4b
BE
121682020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12169
12170 * buildsym.c (record_line): Fix undefined behavior and preserve
12171 lines at eof.
12172
bbe3dc41
BE
121732020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12174
12175 * buildsym.c (record_line): Fix the resizing condition.
12176
6b4a335b
TT
121772020-04-01 Tom Tromey <tom@tromey.com>
12178
12179 * value.h (value_literal_complex): Add comment.
12180 * valops.c (value_literal_complex): Refer to value.h.
12181
3638a098
TT
121822020-04-01 Tom Tromey <tom@tromey.com>
12183
12184 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
12185 (scalar_type): New rule, from typebase.
12186 (typebase): Use scalar_type. Recognize complex types.
12187 (field_name): Handle FLOAT_KEYWORD.
12188 (ident_tokens): Add _Complex and __complex__.
12189
c34e8714
TT
121902020-04-01 Tom Tromey <tom@tromey.com>
12191
12192 PR exp/25299:
12193 * valarith.c (promotion_type, complex_binop): New functions.
12194 (scalar_binop): Handle complex numbers. Use promotion_type.
12195 (value_pos, value_neg, value_complement): Handle complex numbers.
12196
fa649bb7
TT
121972020-04-01 Tom Tromey <tom@tromey.com>
12198
12199 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
12200 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
12201 (parse_number): Handle complex numbers.
12202
981c08ce
TT
122032020-04-01 Tom Tromey <tom@tromey.com>
12204
12205 * c-valprint.c (c_decorations): Change complex suffix to "i".
12206
4c99290d
TT
122072020-04-01 Tom Tromey <tom@tromey.com>
12208
12209 * valprint.c (generic_value_print_complex): Use accessors.
12210 * value.h (value_real_part, value_imaginary_part): Declare.
12211 * valops.c (value_real_part, value_imaginary_part): New
12212 functions.
12213 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
12214
5b930b45
TT
122152020-04-01 Tom Tromey <tom@tromey.com>
12216
12217 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
12218 (read_range_type): Update.
12219 * mdebugread.c (basic_type): Update.
12220 * go-lang.c (build_go_types): Use init_complex_type.
12221 * gdbtypes.h (struct main_type) <complex_type>: New member.
12222 (init_complex_type): Update.
12223 (arch_complex_type): Don't declare.
12224 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
12225 Make name if none given. Use alloc_type_copy. Look for cached
12226 complex type.
12227 (arch_complex_type): Remove.
12228 (gdbtypes_post_init): Use init_complex_type.
12229 * f-lang.c (build_fortran_types): Use init_complex_type.
12230 * dwarf2/read.c (read_base_type): Update.
12231 * d-lang.c (build_d_types): Use init_complex_type.
12232 * ctfread.c (read_base_type): Update.
12233
53cccef1
TBA
122342020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12235
12236 * infrun.c (stop_all_threads): Update assertion, plus when
12237 stopping threads, take into account that we might be trying
12238 to stop an all-stop target.
12239 (stop_waiting): Call 'stop_all_threads' if there exists a
12240 non-stop target.
12241
a0714d30
TBA
122422020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12243
12244 * target.h (exists_non_stop_target): New function declaration.
12245 * target.c (exists_non_stop_target): New function.
12246
60e22c1e
HD
122472020-04-01 Hannes Domani <ssbssa@yahoo.de>
12248
12249 PR gdb/24789
12250 * eval.c (is_integral_or_integral_reference): New function.
12251 (evaluate_subexp_standard): Allow integer references in
12252 pointer arithmetic.
12253
e139a727
TBA
122542020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12255
12256 * remote.c (remote_target::remote_parse_stop_reply): Remove the
12257 check for no ptid in the stop reply when the target is non-stop.
12258
e0802d59
TT
122592020-04-01 Tom Tromey <tromey@adacore.com>
12260
12261 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
12262 "name" parameter to rvalue reference. Initialize m_name_holder.
12263 <lookup_name_info>: New overloads.
12264 <name>: Return gdb::string_view.
12265 <c_str>: New method.
12266 <make_ignore_params>: Update.
12267 <search_name_hash>: Update.
12268 <language_lookup_name>: Return const char *.
12269 <m_name>: Change type.
12270 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
12271 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
12272 (lookup_name_info::match_any): Update.
12273 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
12274 Update.
12275 * minsyms.c (linkage_name_str): Update.
12276 * language.c (default_symbol_name_matcher): Update.
12277 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
12278 Update.
12279 * ada-lang.c (ada_fold_name): Change parameter to string_view.
12280 (ada_lookup_name_info::ada_lookup_name_info): Update.
12281 (literal_symbol_name_matcher): Update.
12282
8c072cb6
TT
122832020-04-01 Tom Tromey <tromey@adacore.com>
12284
12285 * psymtab.c (psymtab_search_name): Remove function.
12286 (psym_lookup_symbol): Create search name and lookup name here.
12287 (lookup_partial_symbol): Remove "name" parameter; add
12288 lookup_name.
12289 (psym_expand_symtabs_for_function): Update.
12290
6f29a534
TT
122912020-03-31 Joel Jones <joelkevinjones@gmail.com>
12292
12293 PR tui/25597:
12294 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
12295
af62665e
TT
122962020-03-31 Tom Tromey <tromey@adacore.com>
12297
12298 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
12299 memcpy.
12300
d1a89da5
NC
123012020-03-30 Nelson Chu <nelson.chu@sifive.com>
12302
12303 * features/riscv/32bit-csr.xml: Regenerated.
12304 * features/riscv/64bit-csr.xml: Regenerated.
12305
d8af9068
TT
123062020-03-30 Tom Tromey <tromey@adacore.com>
12307
12308 * ada-valprint.c (print_variant_part): Update.
12309 * ada-lang.h (ada_which_variant_applies): Update.
12310 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
12311 outer_valaddr parameters; replace with "outer" value parameter.
12312 (to_fixed_variant_branch_type): Update.
12313
227c0bf4
PFC
123142020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12315
12316 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
12317 <list>. Remove inclusion of observable.h.
12318 (PPC_DEBUG_CURRENT_VERSION): Move up define.
12319 (struct arch_lwp_info): New struct.
12320 (class ppc_linux_dreg_interface): New class.
12321 (struct ppc_linux_process_info): New struct.
12322 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
12323 <low_new_clone, low_forget_process, low_prepare_to_resume>
12324 <copy_thread_dreg_state, mark_thread_stale>
12325 <mark_debug_registers_changed, register_hw_breakpoint>
12326 <clear_hw_breakpoint, register_wp, clear_wp>
12327 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
12328 <num_memory_accesses, get_trigger_type>
12329 <create_watchpoint_request, hwdebug_point_cmp>
12330 <init_arch_lwp_info, get_arch_lwp_info>
12331 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
12332 methods.
12333 <struct ptid_hash>: New inner struct.
12334 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
12335 members.
12336 (saved_dabr_value, hwdebug_info, max_slots_number)
12337 (struct hw_break_tuple, struct thread_points, ppc_threads)
12338 (have_ptrace_hwdebug_interface)
12339 (hwdebug_find_thread_points_by_tid)
12340 (hwdebug_insert_point, hwdebug_remove_point): Remove.
12341 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
12342 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
12343 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
12344 use m_dreg_interface.
12345 (hwdebug_point_cmp): Change to...
12346 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
12347 reference arguments instead of pointers.
12348 (ppc_linux_nat_target::ranged_break_num_registers): Use
12349 m_dreg_interface.
12350 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
12351 m_dreg_interface. Call register_hw_breakpoint.
12352 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
12353 m_dreg_interface. Call clear_hw_breakpoint.
12354 (get_trigger_type): Change to...
12355 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
12356 comment.
12357 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
12358 use m_dreg_interface. Call register_hw_breakpoint.
12359 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
12360 use m_dreg_interface. Call clear_hw_breakpoint.
12361 (can_use_watchpoint_cond_accel): Change to...
12362 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
12363 method. Update comment, use m_dreg_interface and
12364 m_process_info.
12365 (calculate_dvc): Change to...
12366 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
12367 m_dreg_interface.
12368 (num_memory_accesses): Change to...
12369 (ppc_linux_nat_target::num_memory_accesses): ...this method.
12370 (check_condition): Change to...
12371 (ppc_linux_nat_target::check_condition): ...this method.
12372 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
12373 comment, use m_dreg_interface.
12374 (create_watchpoint_request): Change to...
12375 (ppc_linux_nat_target::create_watchpoint_request): ...this
12376 method. Use m_dreg_interface.
12377 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
12378 m_dreg_interface. Call register_hw_breakpoint or register_wp.
12379 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
12380 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
12381 (ppc_linux_nat_target::low_forget_process)
12382 (ppc_linux_nat_target::low_new_fork)
12383 (ppc_linux_nat_target::low_new_clone)
12384 (ppc_linux_nat_target::low_delete_thread)
12385 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
12386 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
12387 only call mark_thread_stale.
12388 (ppc_linux_thread_exit): Remove.
12389 (ppc_linux_nat_target::stopped_data_address): Change to...
12390 (ppc_linux_nat_target::low_stopped_data_address): This. Add
12391 comment, use m_dreg_interface and m_thread_hw_breakpoints.
12392 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
12393 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
12394 comment. Call low_stopped_data_address.
12395 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
12396 m_dreg_interface.
12397 (ppc_linux_nat_target::masked_watch_num_registers): Use
12398 m_dreg_interface.
12399 (ppc_linux_nat_target::copy_thread_dreg_state)
12400 (ppc_linux_nat_target::mark_thread_stale)
12401 (ppc_linux_nat_target::mark_debug_registers_changed)
12402 (ppc_linux_nat_target::register_hw_breakpoint)
12403 (ppc_linux_nat_target::clear_hw_breakpoint)
12404 (ppc_linux_nat_target::register_wp)
12405 (ppc_linux_nat_target::clear_wp)
12406 (ppc_linux_nat_target::init_arch_lwp_info)
12407 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
12408 (_initialize_ppc_linux_nat): Remove observer callback.
12409
4db10d8f
PFC
124102020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12411
12412 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
12413 (ppc_linux_nat_target::auxv_parse)
12414 (ppc_linux_nat_target::read_description)
12415 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
12416 Move up.
12417
1310c1b0
PFC
124182020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12419
12420 * linux-nat.h (low_new_clone): New method.
12421 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
12422
69b037c3
SM
124232020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12424
12425 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
12426 (dbx_expand_psymtab): ... this.
12427 (start_psymtab): Update.
12428 * mdebugread.c (psymtab_to_symtab_1): Rename to...
12429 (mdebug_expand_psymtab): ... this.
12430 (parse_partial_symbols): Update.
12431 (new_psymtab): Update.
12432 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
12433 (xcoff_expand_psymtab): ... this.
12434 (xcoff_start_psymtab): Update.
12435
48993951
SM
124362020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12437
12438 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
12439 <expand_dependencies>: ... this.
12440 * psymtab.c (partial_symtab::read_dependencies): Rename to...
12441 (partial_symtab::expand_dependencies): ... this.
12442 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
12443 Update.
12444 (dwarf2_psymtab::expand_psymtab): Update.
12445 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12446 * mdebugread.c (psymtab_to_symtab_1): Update.
12447 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12448
3ad83046
SM
124492020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12450
12451 * psympriv.h (discard_psymtab): Remove.
12452 * dbxread.c (dbx_end_psymtab): Update.
12453 * xcoffread.c (xcoff_end_psymtab): Update.
12454
4d1b9ab6
TT
124552020-03-28 Tom Tromey <tom@tromey.com>
12456
12457 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
12458 comment.
12459
f1749218
TT
124602020-03-28 Tom Tromey <tom@tromey.com>
12461
12462 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
12463
ebea7626
HD
124642020-03-27 Hannes Domani <ssbssa@yahoo.de>
12465
12466 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12467
a879b4d5
JB
124682020-03-26 John Baldwin <jhb@FreeBSD.org>
12469
12470 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
12471
0826b30a
TT
124722020-03-26 Tom Tromey <tom@tromey.com>
12473
12474 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
12475 (mark_common_block_symbol_computed, read_tag_string_type)
12476 (attr_to_dynamic_prop, read_subrange_type): Update.
12477 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
12478 to be methods on struct attribute.
12479 (skip_one_die, process_imported_unit_die, read_namespace_alias)
12480 (read_call_site_scope, partial_die_info::read)
12481 (partial_die_info::read, lookup_die_type, follow_die_ref):
12482 Update.
12483 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
12484 from dwarf2_get_ref_die_offset.
12485 (attribute::constant_value): New method, from
12486 dwarf2_get_attr_constant_value.
12487 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
12488 Declare method.
12489 <constant_value>: New method.
12490
2b2558bf
TT
124912020-03-26 Tom Tromey <tom@tromey.com>
12492
12493 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
12494 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
12495 (dwarf_type_encoding_name): Move to stringify.c.
12496 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
12497 * dwarf2/stringify.c: New file.
12498 * dwarf2/stringify.h: New file.
12499
eeb64781
TT
125002020-03-26 Tom Tromey <tom@tromey.com>
12501
12502 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
12503 Rewrite.
12504
a39fdb41
TT
125052020-03-26 Tom Tromey <tom@tromey.com>
12506
12507 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
12508 methods.
12509 * dwarf2/read.c (lookup_addr_base): Move to die.h.
12510 (lookup_ranges_base): Likewise.
12511 (read_cutu_die_from_dwo, read_full_die_1): Update.
12512
436c571c
TT
125132020-03-26 Tom Tromey <tom@tromey.com>
12514
12515 * dwarf2/read.c (read_import_statement, read_file_scope)
12516 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
12517 (read_lexical_block_scope, read_call_site_scope)
12518 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
12519 (handle_struct_member_die, process_structure_scope)
12520 (update_enumeration_type_from_children)
12521 (process_enumeration_scope, read_array_type, read_common_block)
12522 (read_namespace, read_module, read_subroutine_type): Update.
12523 (sibling_die): Remove.
12524
052c8bb8
TT
125252020-03-26 Tom Tromey <tom@tromey.com>
12526
12527 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
12528 (build_type_psymtabs_reader, read_structure_type)
12529 (read_enumeration_type, read_full_die_1): Update.
12530 (dwarf2_attr_no_follow): Move to die.h.
12531 * dwarf2/die.h (struct die_info) <attr>: New method.
12532
2b24b6e4
TT
125332020-03-26 Tom Tromey <tom@tromey.com>
12534
12535 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
12536 <base_address>: Now an optional.
12537 (dwarf2_find_base_address, dwarf2_rnglists_process)
12538 (dwarf2_ranges_process, fill_in_loclist_baton)
12539 (dwarf2_symbol_mark_computed): Update.
12540
c2d50fd0
TT
125412020-03-26 Tom Tromey <tom@tromey.com>
12542
12543 * dwarf2/read.c (struct die_info): Move to die.h.
12544 * dwarf2/die.h: New file.
12545
0df7ad3a
TT
125462020-03-26 Tom Tromey <tom@tromey.com>
12547
12548 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
12549 * dwarf2/read.c
12550 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12551 Move to line-header.c.
12552 (read_checked_initial_length_and_offset, read_formatted_entries):
12553 Likewise.
12554 (dwarf_decode_line_header): Split into two.
12555 * dwarf2/line-header.c
12556 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12557 Move from read.c.
12558 (read_checked_initial_length_and_offset, read_formatted_entries):
12559 Likewise.
12560 (dwarf_decode_line_header): New function, split from read.c.
12561
86c0bb4c
TT
125622020-03-26 Tom Tromey <tom@tromey.com>
12563
12564 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
12565 Declare method.
12566 * dwarf2/read.c (read_attribute_value): Update.
12567 (dwarf2_per_objfile::read_line_string): Rename from
12568 read_indirect_line_string.
12569 (read_formatted_entries): Update.
12570
2ef46c2f
TT
125712020-03-26 Tom Tromey <tom@tromey.com>
12572
12573 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
12574 variable.
12575
4f9c1eda
TT
125762020-03-26 Tom Tromey <tom@tromey.com>
12577
12578 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
12579 const.
12580 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
12581 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
12582 parameter const.
12583
5a0e026f
TT
125842020-03-26 Tom Tromey <tom@tromey.com>
12585
12586 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
12587 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
12588 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
12589 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
12590
8844c11b
TT
125912020-03-26 Tom Tromey <tom@tromey.com>
12592
12593 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
12594 file_names_size, file_full_name, file_file_name>: Use const.
12595 <file_name_at, file_names>: Add const overload.
12596 * dwarf2/line-header.c (line_header::file_file_name)
12597 (line_header::file_full_name): Update.
12598
c90ec28a
TT
125992020-03-26 Tom Tromey <tom@tromey.com>
12600
12601 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
12602 (macro_start_file, consume_improper_spaces)
12603 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
12604 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
12605 (dwarf_decode_macros): Move to macro.c.
12606 * dwarf2/macro.c: New file.
12607 * dwarf2/macro.h: New file.
12608 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
12609
4f44ae6c
TT
126102020-03-26 Tom Tromey <tom@tromey.com>
12611
12612 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
12613 method.
12614 * dwarf2/section.c: New method. From
12615 read_indirect_string_at_offset_from.
12616 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
12617 (read_indirect_string_at_offset_from): Move to section.c.
12618 (read_indirect_string_at_offset): Rewrite.
12619 (read_indirect_line_string_at_offset): Remove.
12620 (read_indirect_string, read_indirect_line_string)
12621 (dwarf_decode_macro_bytes): Update.
12622
a0194fa8
TT
126232020-03-26 Tom Tromey <tom@tromey.com>
12624
12625 * dwarf2/section.h (struct dwarf2_section_info)
12626 <overload_complaint>: Declare.
12627 (dwarf2_section_buffer_overflow_complaint): Don't declare.
12628 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
12629 Rename from dwarf2_section_buffer_overflow_complaint.
12630 * dwarf2/read.c (skip_one_die, partial_die_info::read)
12631 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
12632
3d27bbdb
TT
126332020-03-26 Tom Tromey <tom@tromey.com>
12634
12635 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
12636 Declare.
12637 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
12638 Move from read.c.
12639 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
12640 to section.c.
12641
9eac9650
TT
126422020-03-26 Tom Tromey <tom@tromey.com>
12643
12644 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
12645
bf80d710
TT
126462020-03-26 Tom Tromey <tom@tromey.com>
12647
12648 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
12649 "builder".
12650 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
12651 parameter.
12652 (dwarf_decode_macros): Update.
12653
0314b390
TT
126542020-03-26 Tom Tromey <tom@tromey.com>
12655
12656 * dwarf2/read.c (read_attribute_value): Update.
12657 (read_indirect_string_from_dwz): Move to dwz.c; change into
12658 method.
12659 (dwarf_decode_macro_bytes): Update.
12660 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
12661 * dwarf2/dwz.c: New file.
12662 * Makefile.in (COMMON_SFILES): Add dwz.c.
12663
9fda78b6
TT
126642020-03-26 Tom Tromey <tom@tromey.com>
12665
12666 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
12667 * dwarf2/read.c: Add include.
12668 * dwarf2/index-write.c: Add include.
12669 * dwarf2/index-cache.c: Add include.
12670 * dwarf2/dwz.h: New file.
12671
33aa3c10
TT
126722020-03-25 Tom Tromey <tom@tromey.com>
12673
12674 * compile/compile-object-load.c (get_out_value_type): Mention
12675 correct symbol name in error message.
12676
d503b685
HD
126772020-03-25 Hannes Domani <ssbssa@yahoo.de>
12678
12679 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12680
7b1eff95
TV
126812020-03-25 Tom de Vries <tdevries@suse.de>
12682
12683 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
12684 * symmisc.c (dump_symtab_1): Print user and includes fields.
12685 (maintenance_info_symtabs): Same.
12686
dd895392
AB
126872020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
12688
12689 PR gdb/25534
12690 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
12691 (riscv_regcache_cooked_write): New function.
12692 (riscv_push_dummy_call): Use new function.
12693 (riscv_return_value): Likewise.
12694
5ab2fbf1
SM
126952020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
12696
12697 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
12698 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
12699 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
12700 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
12701 * infrun.c (follow_fork): Likewise.
12702 (follow_fork_inferior): Likewise.
12703 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
12704 * linux-nat.h (class linux_nat_target): Likewise.
12705 * remote.c (class remote_target) <follow_fork>: Likewise.
12706 (remote_target::follow_fork): Likewise.
12707 * target-delegates.c: Re-generate.
12708 * target.c (default_follow_fork): Likewise.
12709 (target_follow_fork): Likewise.
12710 * target.h (struct target_ops) <follow_fork>: Likewise.
12711 (target_follow_fork): Likewise.
12712
a64fafb5
TV
127132020-03-24 Tom de Vries <tdevries@suse.de>
12714
12715 * psymtab.c (maintenance_info_psymtabs): Print user field.
12716
fe26d3a3
TT
127172020-03-20 Tom Tromey <tromey@adacore.com>
12718
12719 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
12720 const.
12721 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
12722 const.
12723
c884cc46
SM
127242020-03-20 Simon Marchi <simon.marchi@efficios.com>
12725
12726 * ptrace.m4: Don't check for ptrace declaration.
12727 * config.in: Re-generate.
12728 * configure: Re-generate.
12729 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
12730 not defined.
12731
1ff700c2
KR
127322020-03-20 Kamil Rytarowski <n54@gmx.com>
12733
12734 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
12735 `PTRACE_TYPE_RET'.
12736 * i386-bsd-nat.c (gdb_ptrace): Likewise.
12737 * sparc-nat.c (gdb_ptrace): Likewise.
12738 * x86-bsd-nat.c (gdb_ptrace): Likewise.
12739
f7d4f0b1
TT
127402020-03-20 Tom Tromey <tromey@adacore.com>
12741
12742 * c-exp.y (lex_one_token): Fix assert.
12743
f67210ff
TT
127442020-03-20 Tom Tromey <tromey@adacore.com>
12745
12746 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
12747 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
12748 strncpy call.
12749
1773be9e
TT
127502020-03-20 Tom Tromey <tromey@adacore.com>
12751
12752 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
12753
70304be9
TT
127542020-03-20 Tom Tromey <tromey@adacore.com>
12755
12756 * ada-valprint.c (print_variant_part): Remove parameters; switch
12757 to value-based API.
12758 (print_field_values): Likewise.
12759 (ada_val_print_struct_union): Likewise.
12760 (ada_value_print_1): Update.
12761
9faa006d
KR
127622020-03-20 Kamil Rytarowski <n54@gmx.com>
12763
12764 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
12765 nbsd_nat_target instead of inf_ptrace_target.
12766 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12767 nbsd_nat_target.
12768
4a90f062
KR
127692020-03-20 Kamil Rytarowski <n54@gmx.com>
12770
12771 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
12772 it to the ptrace call.
12773 * (store_registers): Likewise.
12774
127752020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
12776
12777 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
12778 it to the ptrace call.
12779 * (store_registers): Likewise.
12780
2d07da27
LM
127812020-03-19 Luis Machado <luis.machado@linaro.org>
12782
12783 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
12784 valid, fetch vg value from ptrace.
12785
f09db380
KR
127862020-03-19 Kamil Rytarowski <n54@gmx.com>
12787 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
12788 * inf-ptrace.c: Likewise.
12789 * (gdb_ptrace): Add.
12790 * (inf_ptrace_target::resume): Update.
12791 * (inf_ptrace_target::xfer_partial): Likewise.
12792 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
12793 * (inf_ptrace_peek_poke): Update.
12794
fcc7376e
KR
127952020-03-19 Kamil Rytarowski <n54@gmx.com>
12796
12797 * x86-bsd-nat.c (gdb_ptrace): New.
12798 * (x86bsd_dr_set): Add new argument `ptid'.
12799 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
12800 x86bsd_dr_set_addr): Update.
12801
cada5fc9
AB
128022020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12803
12804 * remote.c (remote_target::process_stop_reply): Handle events for
12805 all threads differently.
12806
19a2740f
AB
128072020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12808
12809 * completer.c (completion_tracker::remove_completion): Define new
12810 function.
12811 * completer.h (completion_tracker::remove_completion): Declare new
12812 function.
12813 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
12814 when adding a C++ function symbol.
12815
724fd9ba
AB
128162020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12817
12818 * completer.c (completion_tracker::completion_hash_entry): Define
12819 new class.
12820 (advance_to_filename_complete_word_point): Call
12821 recompute_lowest_common_denominator.
12822 (completion_tracker::completion_tracker): Call discard_completions
12823 to setup the hash table.
12824 (completion_tracker::discard_completions): Allow for being called
12825 from the constructor, pass new equal function, and element deleter
12826 when constructing the hash table. Initialise new class member
12827 variables.
12828 (completion_tracker::maybe_add_completion): Remove use of
12829 m_entries_vec, and store more information into m_entries_hash.
12830 (completion_tracker::recompute_lcd_visitor): New function, most
12831 content taken from...
12832 (completion_tracker::recompute_lowest_common_denominator):
12833 ...here, this now just visits each item in the hash calling the
12834 above visitor.
12835 (completion_tracker::build_completion_result): Remove use of
12836 m_entries_vec, call recompute_lowest_common_denominator.
12837 * completer.h (completion_tracker::have_completions): Remove use
12838 of m_entries_vec.
12839 (completion_tracker::completion_hash_entry): Declare new class.
12840 (completion_tracker::recompute_lowest_common_denominator): Change
12841 function signature.
12842 (completion_tracker::recompute_lcd_visitor): Declare new function.
12843 (completion_tracker::m_entries_vec): Delete.
12844 (completion_tracker::m_entries_hash): Initialize to NULL.
12845 (completion_tracker::m_lowest_common_denominator_valid): New
12846 member variable.
12847 (completion_tracker::m_lowest_common_denominator_max_length): New
12848 member variable.
12849
5a82b8a1
KR
128502020-03-17 Kamil Rytarowski <n54@gmx.com>
12851
12852 * regformats/regdef.h: Put reg in gdb namespace.
12853
fb516a69
KR
128542020-03-17 Kamil Rytarowski <n54@gmx.com>
12855
12856 * i386-bsd-nat.c (gdb_ptrace): New.
12857 * (i386bsd_fetch_inferior_registers,
12858 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12859 * (i386bsd_fetch_inferior_registers,
12860 i386bsd_store_inferior_registers) Use gdb_ptrace.
12861
1c0aa1fb
KR
128622020-03-17 Kamil Rytarowski <n54@gmx.com>
12863
12864 * amd64-bsd-nat.c (gdb_ptrace): New.
12865 * (amd64bsd_fetch_inferior_registers,
12866 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12867 * (amd64bsd_fetch_inferior_registers,
12868 amd64bsd_store_inferior_registers) Use gdb_ptrace.
12869
5ccd2fb7
KR
128702020-03-17 Kamil Rytarowski <n54@gmx.com>
12871
12872 * user-regs.c (user_reg::read): Rename to...
12873 (user_reg::xread): ...this.
12874 * (append_user_reg): Rename argument `read' to `xread'.
12875 * (user_reg_add_builtin): Likewise.
12876 * (user_reg_add): Likewise.
12877 * (value_of_user_reg): Likewise.
12878
2108a63a
KR
128792020-03-17 Kamil Rytarowski <n54@gmx.com>
12880
12881 * sparc-nat.c (gdb_ptrace): New.
12882 * sparc-nat.c (sparc_fetch_inferior_registers)
12883 (sparc_store_inferior_registers) Remove obsolete comment.
12884 * sparc-nat.c (sparc_fetch_inferior_registers)
12885 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
12886 * sparc-nat.c (sparc_fetch_inferior_registers)
12887 (sparc_store_inferior_registers) Use gdb_ptrace.
12888
a225c9a8
KR
128892020-03-17 Kamil Rytarowski <n54@gmx.com>
12890
12891 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
12892 it to the ptrace call.
12893 * sh-nbsd-nat.c (store_registers): Likewise.
12894
98097623
KR
128952020-03-17 Kamil Rytarowski <n54@gmx.com>
12896
12897 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
12898 nbsd_nat_target instead of inf_ptrace_target.
12899 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12900 nbsd_nat_target.
12901
9e38d619
KR
129022020-03-17 Kamil Rytarowski <n54@gmx.com>
12903
12904 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
12905
a2ecbe9f
KR
129062020-03-17 Kamil Rytarowski <n54@gmx.com>
12907
12908 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
12909 <sys/sysctl.h>.
12910 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
12911
58990295
TV
129122020-03-17 Tom de Vries <tdevries@suse.de>
12913
12914 PR gdb/23710
12915 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
12916 fields.
12917 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
12918 fields.
12919 (process_imported_unit_die): Skip import of c++ CUs.
12920
771dd3a8
TT
129212020-03-16 Tom Tromey <tom@tromey.com>
12922
12923 * p-valprint.c (pascal_object_print_value): Initialize
12924 base_value.
12925
817a7585
AK
129262020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
12927 Shahab Vahedi <shahab@synopsys.com>
12928
12929 * Makefile.in: Add arch/arc.o
12930 * configure.tgt: Likewise.
12931 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
12932 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 12933 (arc_read_description): New function to cache target descriptions.
817a7585
AK
12934 * arc-tdep.h (arc_read_description): Add proto type.
12935 * arch/arc.c: New file.
12936 * arch/arc.h: Likewise.
12937 * features/Makefile: Replace old target descriptions with new.
12938 * features/arc-arcompact.c: Remove.
12939 * features/arc-arcompact.xml: Likewise.
12940 * features/arc-v2.c: Likewise
12941 * features/arc-v2.xml: Likewise
12942 * features/arc/aux-arcompact.xml: New file.
12943 * features/arc/aux-v2.xml: Likewise.
12944 * features/arc/core-arcompact.xml: Likewise.
12945 * features/arc/core-v2.xml: Likewise.
12946 * features/arc/aux-arcompact.c: Generate.
12947 * features/arc/aux-v2.c: Likewise.
12948 * features/arc/core-arcompact.c: Likewise.
12949 * features/arc/core-v2.c: Likewise.
12950 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
12951
67430cd0
TT
129522020-03-16 Tom Tromey <tromey@adacore.com>
12953
12954 PR gdb/25663:
12955 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
12956 putting value into bcache.
12957
30efb6c7
SM
129582020-03-16 Simon Marchi <simon.marchi@efficios.com>
12959
12960 PR gdb/21500
12961 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
12962 to...
12963 (amd64_windows_init_abi_common): ... this. Don't set size of
12964 long type.
12965 (amd64_windows_init_abi): New function.
12966 (amd64_cygwin_init_abi): New function.
12967 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
12968 the Cygwin OS ABI.
12969 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
12970 comment.
12971
8db52437
SM
129722020-03-16 Simon Marchi <simon.marchi@efficios.com>
12973
12974 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
12975 * windows-tdep.c (CYGWIN_DLL_NAME): New.
12976 (pe_import_directory_entry): New struct type.
12977 (is_linked_with_cygwin_dll): New function.
12978 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
12979 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
12980 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
12981
5982a56a
SM
129822020-03-16 Simon Marchi <simon.marchi@efficios.com>
12983
12984 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
12985 i386_cygwin_core_osabi_sniffer.
12986
7a1998df
SM
129872020-03-16 Simon Marchi <simon.marchi@efficios.com>
12988
12989 * i386-cygwin-tdep.c: Rename to...
12990 * i386-windows-tdep.c: ... this.
12991 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
12992 i386-windows-tdep.c.
12993 * configure.tgt: Likewise.
12994
053205cc
SM
129952020-03-16 Simon Marchi <simon.marchi@efficios.com>
12996
12997 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
12998 * osabi.c (gdb_osabi_names): Add "Windows".
12999 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
13000 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
13001 (i386_cygwin_core_osabi_sniffer): New function, extracted from
13002 i386_cygwin_osabi_sniffer.
13003 (_initialize_i386_cygwin_tdep): Register OS ABI
13004 GDB_OSABI_WINDOWS for i386.
13005 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
13006 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
13007 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
13008 for x86-64.
13009 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
13010 when the target matches '*-*-mingw*'.
13011
fe4b2ee6
SM
130122020-03-16 Simon Marchi <simon.marchi@efficios.com>
13013
13014 * defs.h (enum gdb_osabi): Move to...
13015 * osabi.h (enum gdb_osabi): ... here.
13016 * gdbarch.sh: Include osabi.h in gdbarch.h.
13017 * gdbarch.h: Re-generate.
13018
cb9b645d
SM
130192020-03-16 Simon Marchi <simon.marchi@efficios.com>
13020
13021 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
13022 function.
13023 (_initialize_amd64_windows_tdep): Register osabi sniffer.
13024
3293bbaf
TT
130252020-03-14 Tom Tromey <tom@tromey.com>
13026
13027 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
13028 for C++.
13029 (c_type_print_modifier): Likewise. Add "language" parameter.
13030 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
13031 (c_type_print_base_1): Update.
13032 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
13033 constants.
13034 * type-stack.c (type_stack::insert): Handle tp_atomic and
13035 tp_restrict.
13036 (type_stack::follow_type_instance_flags): Likewise.
13037 (type_stack::follow_types): Likewise. Merge type-following code.
13038 * c-exp.y (RESTRICT, ATOMIC): New tokens.
13039 (space_identifier, cv_with_space_id)
13040 (const_or_volatile_or_space_identifier_noopt)
13041 (const_or_volatile_or_space_identifier): Remove.
13042 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
13043 rules.
13044 (ptr_operator, typebase): Update.
13045 (enum token_flag) <FLAG_C>: New constant.
13046 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
13047 "_Atomic".
13048 (lex_one_token): Handle FLAG_C.
13049
154151a6
KR
130502020-03-14 Kamil Rytarowski <n54@gmx.com>
13051
13052 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
13053 it to the ptrace call.
13054 * m68k-bsd-nat.c (store_registers): Likewise.
13055
bc107784
KR
130562020-03-14 Kamil Rytarowski <n54@gmx.com>
13057
13058 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
13059 gdb_byte *.
13060 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
13061 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
13062 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
13063
01a80117
KR
130642020-03-14 Kamil Rytarowski <n54@gmx.com>
13065
13066 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
13067 nbsd_nat_target instead of inf_ptrace_target.
13068 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13069 nbsd_nat_target.
13070
f90280ca
KR
130712020-03-14 Kamil Rytarowski <n54@gmx.com>
13072
13073 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
13074 register_t.
13075
6def66f1
KR
130762020-03-14 Kamil Rytarowski <n54@gmx.com>
13077
13078 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
13079 it to the ptrace call.
13080 * alpha-bsd-nat.c (store_registers): Likewise.
13081
66eaca97
KR
130822020-03-14 Kamil Rytarowski <n54@gmx.com>
13083
13084 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
13085 includes.
13086 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
13087 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
13088 fill_fpregset): Likewise.
13089
4fed520b
KR
130902020-03-14 Kamil Rytarowski <n54@gmx.com>
13091
13092 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
13093 nbsd_nat_target instead of inf_ptrace_target.
13094 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13095 nbsd_nat_target.
13096
2190cf06
KR
130972020-03-14 Kamil Rytarowski <n54@gmx.com>
13098
13099 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
13100 register_t.
13101
75c56d3d
KR
131022020-03-14 Kamil Rytarowski <n54@gmx.com>
13103
13104 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
13105 it to the ptrace call.
13106 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
13107 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
13108 * arm-nbsd-nat.c (store_register): Likewise.
13109 * arm-nbsd-nat.c (store_regs): Likewise.
13110 * arm-nbsd-nat.c (store_fp_register): Likewise.
13111 * arm-nbsd-nat.c (store_fp_regs): Likewise.
13112
6018d381
KR
131132020-03-14 Kamil Rytarowski <n54@gmx.com>
13114
13115 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
13116 nbsd_nat_target instead of inf_ptrace_target.
13117 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13118 nbsd_nat_target.
13119
013f99f0
KR
131202020-03-14 Kamil Rytarowski <n54@gmx.com>
13121
13122 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
13123 it to the ptrace call.
13124 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
13125
12753073
KR
131262020-03-14 Kamil Rytarowski <n54@gmx.com>
13127
6227b330
KR
13128 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
13129 it to the ptrace call.
13130 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
13131
131322020-03-14 Kamil Rytarowski <n54@gmx.com>
13133
13134 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
13135 gdb_byte *.
12753073
KR
13136 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
13137
d5be5fa4
KR
131382020-03-14 Kamil Rytarowski <n54@gmx.com>
13139
13140 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
13141 instead of inf_ptrace_target.
13142 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13143 nbsd_nat_target.
13144
8110f842
KR
131452020-03-14 Kamil Rytarowski <n54@gmx.com>
13146
13147 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13148 register_t.
13149
52feded7
KR
131502020-03-14 Kamil Rytarowski <n54@gmx.com>
13151
13152 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13153 register_t.
13154
25567eee
KR
131552020-03-14 Kamil Rytarowski <n54@gmx.com>
13156
13157 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
13158 register_t.
13159
426a9c18
TT
131602020-03-13 Tom Tromey <tom@tromey.com>
13161
13162 * value.h (val_print): Don't declare.
13163 * valprint.h (val_print_array_elements)
13164 (val_print_scalar_formatted, generic_val_print): Don't declare.
13165 * valprint.c (generic_val_print_array): Take a struct value.
13166 (generic_val_print_ptr, generic_val_print_memberptr)
13167 (generic_val_print_bool, generic_val_print_int)
13168 (generic_val_print_char, generic_val_print_complex)
13169 (generic_val_print): Remove.
13170 (generic_value_print): Update.
13171 (do_val_print): Remove unused parameters. Don't call
13172 la_val_print.
13173 (val_print): Remove.
13174 (common_val_print): Update. Don't call value_check_printable.
13175 (val_print_scalar_formatted, val_print_array_elements): Remove.
13176 * rust-lang.c (rust_val_print): Remove.
13177 (rust_language_defn): Update.
13178 * p-valprint.c (pascal_val_print): Remove.
13179 (pascal_value_print_inner): Update.
13180 (pascal_object_print_val_fields, pascal_object_print_val):
13181 Remove.
13182 (pascal_object_print_static_field): Update.
13183 * p-lang.h (pascal_val_print): Don't declare.
13184 * p-lang.c (pascal_language_defn): Update.
13185 * opencl-lang.c (opencl_language_defn): Update.
13186 * objc-lang.c (objc_language_defn): Update.
13187 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
13188 * m2-lang.h (m2_val_print): Don't declare.
13189 * m2-lang.c (m2_language_defn): Update.
13190 * language.h (struct language_defn) <la_val_print>: Remove.
13191 * language.c (unk_lang_value_print_inner): Rename. Change
13192 argument types.
13193 (unknown_language_defn, auto_language_defn): Update.
13194 * go-valprint.c (go_val_print): Remove.
13195 * go-lang.h (go_val_print): Don't declare.
13196 * go-lang.c (go_language_defn): Update.
13197 * f-valprint.c (f_val_print): Remove.
13198 * f-lang.h (f_value_print): Don't declare.
13199 * f-lang.c (f_language_defn): Update.
13200 * d-valprint.c (d_val_print): Remove.
13201 * d-lang.h (d_value_print): Don't declare.
13202 * d-lang.c (d_language_defn): Update.
13203 * cp-valprint.c (cp_print_value_fields)
13204 (cp_print_value_fields_rtti, cp_print_value): Remove.
13205 (cp_print_static_field): Update.
13206 * c-valprint.c (c_val_print_array, c_val_print_ptr)
13207 (c_val_print_struct, c_val_print_union, c_val_print_int)
13208 (c_val_print_memberptr, c_val_print): Remove.
13209 * c-lang.h (c_val_print_array, cp_print_value_fields)
13210 (cp_print_value_fields_rtti): Don't declare.
13211 * c-lang.c (c_language_defn, cplus_language_defn)
13212 (asm_language_defn, minimal_language_defn): Update.
13213 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
13214 (ada_val_print_enum): Take a struct value.
13215 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
13216 (ada_val_print): Remove.
13217 (ada_value_print_1): Update.
13218 (printable_val_type): Remove.
13219 * ada-lang.h (ada_val_print): Don't declare.
13220 * ada-lang.c (ada_language_defn): Update.
13221
42331a1e
TT
132222020-03-13 Tom Tromey <tom@tromey.com>
13223
13224 * valprint.c (do_val_print): Update.
13225 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
13226 a struct value.
13227 (value_to_value_object_no_release): Declare.
13228 * python/py-value.c (value_to_value_object_no_release): New
13229 function.
13230 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
13231 struct value.
13232 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
13233 function.
13234 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
13235 a struct value.
13236 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
13237 Declare.
13238 (gdbscm_apply_val_pretty_printer): Take a struct value.
13239 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
13240 value.
13241 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
13242 value.
13243 * extension-priv.h (struct extension_language_ops)
13244 <apply_val_pretty_printer>: Take a struct value.
13245 * cp-valprint.c (cp_print_value): Create a struct value.
13246 (cp_print_value): Update.
13247
3a916a97
TT
132482020-03-13 Tom Tromey <tom@tromey.com>
13249
13250 * ada-valprint.c (print_field_values): Call common_val_print.
13251
b59eac37
TT
132522020-03-13 Tom Tromey <tom@tromey.com>
13253
13254 * ada-valprint.c (val_print_packed_array_elements): Remove
13255 bitoffset and val parameters. Call common_val_print.
13256 (ada_val_print_string): Remove offset, address, and original_value
13257 parameters.
13258 (ada_val_print_array): Update.
13259 (ada_value_print_array): New function.
13260 (ada_value_print_1): Call it.
13261
03371129
TT
132622020-03-13 Tom Tromey <tom@tromey.com>
13263
13264 * ada-valprint.c (ada_value_print): Use common_val_print.
13265
2e088f8b
TT
132662020-03-13 Tom Tromey <tom@tromey.com>
13267
13268 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
13269
39ef85a8
TT
132702020-03-13 Tom Tromey <tom@tromey.com>
13271
13272 * ada-valprint.c (ada_value_print_num): New function.
13273 (ada_value_print_1): Use it.
13274
b9fa6e07
TT
132752020-03-13 Tom Tromey <tom@tromey.com>
13276
13277 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
13278
416595d6
TT
132792020-03-13 Tom Tromey <tom@tromey.com>
13280
13281 * ada-valprint.c (ada_value_print_ptr): New function.
13282 (ada_value_print_1): Use it.
13283
5b5e15ec
TT
132842020-03-13 Tom Tromey <tom@tromey.com>
13285
13286 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
13287 call common_val_print.
13288 (ada_val_print_1): Update.
13289 (ada_value_print_1): New function.
13290 (ada_value_print_inner): Rewrite.
13291
fbf54e75
TT
132922020-03-13 Tom Tromey <tom@tromey.com>
13293
13294 * cp-valprint.c (cp_print_value_fields): Update.
13295 (cp_print_value): New function.
13296
64b653ca
TT
132972020-03-13 Tom Tromey <tom@tromey.com>
13298
13299 * m2-valprint.c (m2_value_print_inner): Use
13300 cp_print_value_fields.
13301 * cp-valprint.c (cp_print_value_fields): New function.
13302 * c-valprint.c (c_value_print_struct): New function.
13303 (c_value_print_inner): Use c_value_print_struct.
13304 * c-lang.h (cp_print_value_fields): Declare.
13305
6999f067
TT
133062020-03-13 Tom Tromey <tom@tromey.com>
13307
13308 * c-valprint.c (c_value_print_array): New function.
13309 (c_value_print_inner): Use it.
13310
ce80b8bd
TT
133112020-03-13 Tom Tromey <tom@tromey.com>
13312
13313 * c-valprint.c (c_value_print_memberptr): New function.
13314 (c_value_print_inner): Use it.
13315
2faac269
TT
133162020-03-13 Tom Tromey <tom@tromey.com>
13317
13318 * c-valprint.c (c_value_print_int): New function.
13319 (c_value_print_inner): Use it.
13320
da3e2c29
TT
133212020-03-13 Tom Tromey <tom@tromey.com>
13322
13323 * c-valprint.c (c_value_print_ptr): New function.
13324 (c_value_print_inner): Use it.
13325
50836231
TT
133262020-03-13 Tom Tromey <tom@tromey.com>
13327
13328 * c-valprint.c (c_value_print_inner): Rewrite.
13329
4f412b6e
TT
133302020-03-13 Tom Tromey <tom@tromey.com>
13331
13332 * valprint.c (generic_value_print_complex): New function.
13333 (generic_value_print): Use it.
13334
f5354008
TT
133352020-03-13 Tom Tromey <tom@tromey.com>
13336
13337 * valprint.c (generic_val_print_float): Don't call
13338 val_print_scalar_formatted.
13339 (generic_val_print, generic_value_print): Update.
13340
3eec3b05
TT
133412020-03-13 Tom Tromey <tom@tromey.com>
13342
13343 * valprint.c (generic_value_print_char): New function
13344 (generic_value_print): Use it.
13345
fdddfccb
TT
133462020-03-13 Tom Tromey <tom@tromey.com>
13347
13348 * valprint.c (generic_value_print_int): New function.
13349 (generic_value_print): Use it.
13350
6dde7521
TT
133512020-03-13 Tom Tromey <tom@tromey.com>
13352
13353 * valprint.c (generic_value_print_bool): New function.
13354 (generic_value_print): Use it.
13355
4112d2e6
TT
133562020-03-13 Tom Tromey <tom@tromey.com>
13357
13358 * valprint.c (generic_val_print_func): Simplify.
13359 (generic_val_print, generic_value_print): Update.
13360
65786af6
TT
133612020-03-13 Tom Tromey <tom@tromey.com>
13362
13363 * valprint.c (generic_val_print_flags): Remove.
13364 (generic_val_print, generic_value_print): Update.
13365 (val_print_type_code_flags): Add original_value parameter.
13366
40f3ce18
TT
133672020-03-13 Tom Tromey <tom@tromey.com>
13368
13369 * valprint.c (generic_val_print): Update.
13370 (generic_value_print): Update.
13371 * valprint.c (generic_val_print_enum): Don't call
13372 val_print_scalar_formatted.
13373
2a5b130b
TT
133742020-03-13 Tom Tromey <tom@tromey.com>
13375
13376 * valprint.c (generic_value_print): Call generic_value_print_ptr.
13377 * valprint.c (generic_value_print_ptr): New function.
13378
abc66ce9
TT
133792020-03-13 Tom Tromey <tom@tromey.com>
13380
13381 * valprint.c (generic_value_print): Rewrite.
13382
07a32858
TT
133832020-03-13 Tom Tromey <tom@tromey.com>
13384
13385 * p-valprint.c (pascal_object_print_value_fields)
13386 (pascal_object_print_value): New functions.
13387
64d64d3a
TT
133882020-03-13 Tom Tromey <tom@tromey.com>
13389
13390 * p-valprint.c (pascal_value_print_inner): Rewrite.
13391
6a95a1f5
TT
133922020-03-13 Tom Tromey <tom@tromey.com>
13393
13394 * f-valprint.c (f_value_print_innner): Rewrite.
13395
59fcdac6
TT
133962020-03-13 Tom Tromey <tom@tromey.com>
13397
13398 * m2-valprint.c (m2_print_unbounded_array): New overload.
13399 (m2_print_unbounded_array): Update.
13400 (m2_print_array_contents): Take a struct value.
13401 (m2_value_print_inner): Rewrite.
13402
d133c3e1
TT
134032020-03-13 Tom Tromey <tom@tromey.com>
13404
13405 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
13406 (d_value_print_inner): New function.
13407 * d-lang.h (d_value_print_inner): Declare.
13408 * d-lang.c (d_language_defn): Use d_value_print_inner.
13409
23b0f06b
TT
134102020-03-13 Tom Tromey <tom@tromey.com>
13411
13412 * go-valprint.c (go_value_print_inner): New function.
13413 * go-lang.h (go_value_print_inner): Declare.
13414 * go-lang.c (go_language_defn): Use go_value_print_inner.
13415
5f56f7cb
TT
134162020-03-13 Tom Tromey <tom@tromey.com>
13417
13418 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
13419 API.
13420 (rust_val_print): Rewrite.
13421 (rust_value_print_inner): New function, from rust_val_print.
13422 (rust_language_defn): Use rust_value_print_inner.
13423
26792ee0
TT
134242020-03-13 Tom Tromey <tom@tromey.com>
13425
13426 * ada-valprint.c (ada_value_print_inner): New function.
13427 * ada-lang.h (ada_value_print_inner): Declare.
13428 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
13429
24051bbe
TT
134302020-03-13 Tom Tromey <tom@tromey.com>
13431
13432 * f-valprint.c (f_value_print_innner): New function.
13433 * f-lang.h (f_value_print_innner): Declare.
13434 * f-lang.c (f_language_defn): Use f_value_print_innner.
13435
c0941be6
TT
134362020-03-13 Tom Tromey <tom@tromey.com>
13437
13438 * p-valprint.c (pascal_value_print_inner): New function.
13439 * p-lang.h (pascal_value_print_inner): Declare.
13440 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
13441
62c4663d
TT
134422020-03-13 Tom Tromey <tom@tromey.com>
13443
13444 * m2-valprint.c (m2_value_print_inner): New function.
13445 * m2-lang.h (m2_value_print_inner): Declare.
13446 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
13447
62182190
TT
134482020-03-13 Tom Tromey <tom@tromey.com>
13449
13450 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
13451 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
13452 * c-valprint.c (c_value_print_inner): New function.
13453 * c-lang.h (c_value_print_inner): Declare.
13454 * c-lang.c (c_language_defn, cplus_language_defn)
13455 (asm_language_defn, minimal_language_defn): Use
13456 c_value_print_inner.
13457
1e592a8a
TT
134582020-03-13 Tom Tromey <tom@tromey.com>
13459
13460 * p-valprint.c (pascal_object_print_value_fields): Now static.
13461 * p-lang.h (pascal_object_print_value_fields): Don't declare.
13462
7fe471e9
TT
134632020-03-13 Tom Tromey <tom@tromey.com>
13464
13465 * c-valprint.c (c_val_print_array): Simplify.
13466
d121c6ce
TT
134672020-03-13 Tom Tromey <tom@tromey.com>
13468
13469 * valprint.c (value_print_array_elements): New function.
13470 * valprint.h (value_print_array_elements): Declare.
13471
4dba70ee
TT
134722020-03-13 Tom Tromey <tom@tromey.com>
13473
13474 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
13475 * mips-tdep.c (mips_print_register): Use
13476 value_print_scalar_formatted.
13477
4f9ae810
TT
134782020-03-13 Tom Tromey <tom@tromey.com>
13479
13480 * valprint.h (value_print_scalar_formatted): Declare.
13481 * valprint.c (value_print_scalar_formatted): New function.
13482
156bfec9
TT
134832020-03-13 Tom Tromey <tom@tromey.com>
13484
13485 * valprint.h (generic_value_print): Declare.
13486 * valprint.c (generic_value_print): New function.
13487
2b4e573d
TT
134882020-03-13 Tom Tromey <tom@tromey.com>
13489
13490 * valprint.c (do_val_print): Call la_value_print_inner, if
13491 available.
13492 * rust-lang.c (rust_language_defn): Update.
13493 * p-lang.c (pascal_language_defn): Update.
13494 * opencl-lang.c (opencl_language_defn): Update.
13495 * objc-lang.c (objc_language_defn): Update.
13496 * m2-lang.c (m2_language_defn): Update.
13497 * language.h (struct language_defn) <la_value_print_inner>: New
13498 member.
13499 * language.c (unknown_language_defn, auto_language_defn): Update.
13500 * go-lang.c (go_language_defn): Update.
13501 * f-lang.c (f_language_defn): Update.
13502 * d-lang.c (d_language_defn): Update.
13503 * c-lang.c (c_language_defn, cplus_language_defn)
13504 (asm_language_defn, minimal_language_defn): Update.
13505 * ada-lang.c (ada_language_defn): Update.
13506
a1f6a07c
TT
135072020-03-13 Tom Tromey <tom@tromey.com>
13508
13509 * c-valprint.c (c_value_print): Use common_val_print.
13510
410cf315
TT
135112020-03-13 Tom Tromey <tom@tromey.com>
13512
13513 * cp-valprint.c (cp_print_static_field): Use common_val_print.
13514
72a45c93
TT
135152020-03-13 Tom Tromey <tom@tromey.com>
13516
13517 * f-valprint.c (f77_print_array_1, f_val_print): Use
13518 common_val_print.
13519
040f66bd
TT
135202020-03-13 Tom Tromey <tom@tromey.com>
13521
13522 * riscv-tdep.c (riscv_print_one_register_info): Use
13523 common_val_print.
13524
a6e05a6c
TT
135252020-03-13 Tom Tromey <tom@tromey.com>
13526
13527 * mi/mi-main.c (output_register): Use common_val_print.
13528
3444c526
TT
135292020-03-13 Tom Tromey <tom@tromey.com>
13530
13531 * infcmd.c (default_print_one_register_info): Use
13532 common_val_print.
13533
c2a44efe
TT
135342020-03-13 Tom Tromey <tom@tromey.com>
13535
13536 * valprint.h (common_val_print_checked): Declare.
13537 * valprint.c (common_val_print_checked): New function.
13538 * stack.c (print_frame_arg): Use common_val_print_checked.
13539
b0c26e99
TT
135402020-03-13 Tom Tromey <tom@tromey.com>
13541
13542 * valprint.c (do_val_print): New function, from val_print.
13543 (val_print): Use do_val_print.
13544 (common_val_print): Use do_val_print.
13545
ce3acbe9
TT
135462020-03-13 Tom Tromey <tom@tromey.com>
13547
13548 * valprint.c (value_print): Use scoped_value_mark.
13549
96c7f873
TV
135502020-03-13 Tom de Vries <tdevries@suse.de>
13551
13552 PR symtab/25646
13553 * psymtab.c (partial_symtab::partial_symtab): Don't set
13554 globals_offset and statics_offset. Push element onto
13555 current_global_psymbols and current_static_psymbols stacks.
13556 (concat): New function.
13557 (end_psymtab_common): Set globals_offset and statics_offset. Pop
13558 element from current_global_psymbols and current_static_psymbols
13559 stacks. Concat popped elements to global_psymbols and
13560 static_symbols.
13561 (add_psymbol_to_list): Use current_global_psymbols and
13562 current_static_psymbols stacks.
13563 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
13564 current_static_psymbols fields.
13565
6ba0a321
CB
135662020-03-12 Christian Biesinger <cbiesinger@google.com>
13567
13568 * corelow.c (sniff_core_bfd): Remove.
13569 (class core_target) <m_core_vec>: Remove.
13570 (core_target::core_target): Update.
13571 (core_file_fns): Remove.
13572 (deprecated_add_core_fns): Remove.
13573 (default_core_sniffer): Remove.
13574 (sniff_core_bfd): Remove.
13575 (default_check_format): Remove.
13576 (gdb_check_format): Remove.
13577 (core_target_open): Update.
13578 (core_target::get_core_register_section): Update.
13579 (get_core_registers_cb): Update.
13580 (core_target::fetch_registers): Update.
13581 * gdbcore.h (struct core_fns): Remove.
13582 (deprecated_add_core_fns): Remove.
13583 (default_core_sniffer): Remove.
13584 (default_check_format): Remove.
13585
227031b2
TT
135862020-03-12 Tom Tromey <tom@tromey.com>
13587
13588 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
13589 CORE_ADDR.
13590 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
13591
53807e9f
TT
135922020-03-12 Tom Tromey <tom@tromey.com>
13593
13594 * remote.c (remote_target::download_tracepoint)
13595 (remote_target::enable_tracepoint)
13596 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
13597 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
13598 sprintf_vma.
13599
64f25102
TT
136002020-03-12 Tom Tromey <tom@tromey.com>
13601
13602 * symfile-mem.c: Update CORE_ADDR size assert.
13603
272cd5a3
SM
136042020-03-12 Simon Marchi <simon.marchi@efficios.com>
13605
13606 * selftest.m4: Move to gdbsupport/.
13607 * acinclude.m4: Update path to selftest.m4.
13608
74cd3f9d
SM
136092020-03-12 Simon Marchi <simon.marchi@efficios.com>
13610
13611 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
13612 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
13613 gdbarch-selfselftests.c and selftest-arch.c.
13614 (SUBDIR_UNITTESTS_OBS): Rename to...
13615 (SELFTESTS_OBS): ... this.
13616 (COMMON_SFILES): Remove disasm-selftests.c and
13617 gdbarch-selftests.c.
13618 * configure.ac: Don't add selftest-arch.{c,o} to
13619 CONFIG_{SRCS,OBS}.
13620 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
13621 preprocessor conditions.
13622
db6878ac
SM
136232020-03-12 Simon Marchi <simon.marchi@efficios.com>
13624
13625 * configure.ac: Don't source bfd/development.sh.
13626 * selftest.m4: Modify comment.
13627 * configure: Re-generate.
13628
4d696a5c
SM
136292020-03-12 Simon Marchi <simon.marchi@efficios.com>
13630
13631 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
13632 not "true" or "false".
13633 * configure: Re-generate.
13634
8dd8e1c7
CB
136352020-03-12 Christian Biesinger <cbiesinger@google.com>
13636
13637 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
13638 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
13639 renamed to arm_nbsd_supply_gregset.
13640 (fetch_register): Update to call arm_nbsd_supply_gregset.
13641 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
13642 (arm_netbsd_nat_target::fetch_registers): Update.
13643 (fetch_elfcore_registers): Removed.
13644 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
13645 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
13646 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
13647 not require NetBSD system headers.
13648 (arm_nbsd_regset): New struct.
13649 (arm_nbsd_iterate_over_regset_sections): New function.
13650 (arm_netbsd_init_abi_common): Updated to call
13651 set_gdbarch_iterate_over_regset_sections.
13652 * arm-nbsd-tdep.h: New file.
13653
dd69bf7a
KB
136542020-03-11 Kevin Buettner <kevinb@redhat.com>
13655
13656 * symtab.c (find_pc_sect_line): Add check which prevents infinite
13657 recursion.
13658
a0761e34
SM
136592020-03-11 Simon Marchi <simon.marchi@efficios.com>
13660
13661 * configure: Re-generate.
13662
e7a82140
TT
136632020-03-11 Tom Tromey <tromey@adacore.com>
13664
13665 * ada-typeprint.c (print_choices): Fix comment.
13666
dcc050c8
AB
136672020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
13668
13669 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
13670 previous item in the list, when the list has no items.
13671
1c33af77
TV
136722020-03-11 Tom de Vries <tdevries@suse.de>
13673
13674 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
13675 PROP_LOCLIST handling code.
13676
8c95582d
AB
136772020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
13678
13679 * buildsym-legacy.c (record_line): Pass extra parameter to
13680 record_line.
13681 * buildsym.c (buildsym_compunit::record_line): Take an extra
13682 parameter, reduce duplication in the line table, and record the
13683 is_stmt flag in the line table.
13684 * buildsym.h (buildsym_compunit::record_line): Add extra
13685 parameter.
13686 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
13687 non-statement lines.
13688 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
13689 this to the symtab builder.
13690 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
13691 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
13692 through to dwarf_record_line_1.
13693 * infrun.c (process_event_stop_test): When stepping, don't stop at
13694 a non-statement instruction, and only refresh the step info when
13695 we land in the middle of a line's range. Also add an extra
13696 comment.
13697 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
13698 field.
13699 * record-btrace.c (btrace_find_line_range): Only record lines
13700 marked as is-statement.
13701 * stack.c (frame_show_address): Show the frame address if we are
13702 in a non-statement sal.
13703 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
13704 (maintenance_print_one_line_table): Print a header for the is_stmt
13705 column, and include is_stmt information in the output.
13706 * symtab.c (find_pc_sect_line): Find lines marked as statements in
13707 preference to non-statements.
13708 (find_pcs_for_symtab_line): Prefer is-statement entries.
13709 (find_line_common): Likewise.
13710 * symtab.h (struct linetable_entry): Add is_stmt field.
13711 (struct symtab_and_line): Likewise.
13712 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
13713 arranging the line table.
13714
e4003a34
TV
137152020-03-07 Tom de Vries <tdevries@suse.de>
13716
13717 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
13718 DIE.
13719
e8932576
TT
137202020-03-07 Tom Tromey <tom@tromey.com>
13721
13722 * valops.c (value_literal_complex): Remove obsolete comment.
13723 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
13724 comment.
13725
29734269
SM
137262020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
13727
13728 * infrun.h: Forward-declare thread_info.
13729 (set_step_info): Add thread_info parameter, add doc.
13730 * infrun.c (set_step_info): Add thread_info parameter, move doc
13731 to header.
13732 * infrun.c (process_event_stop_test): Pass thread to
13733 set_step_info call.
13734 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
13735 set_step_info.
13736 (prepare_one_step): Add thread_info parameter, pass it to
13737 set_step_frame and prepare_one_step (recursive) call.
13738 (step_1): Pass thread to prepare_one_step call.
13739 (step_command_fsm::should_stop): Pass thread to
13740 prepare_one_step.
13741 (until_next_fsm): Pass thread to set_step_frame call.
13742 (finish_command): Pass thread to set_step_info call.
13743
b7d64b29
HD
137442020-03-06 Hannes Domani <ssbssa@yahoo.de>
13745
13746 * windows-tdep.c (windows_solib_create_inferior_hook):
13747 Check if inferior is running.
13748
09f2921c
TV
137492020-03-06 Tom de Vries <tdevries@suse.de>
13750
13751 * NEWS: Fix "the the".
13752 * ctfread.c: Same.
13753
fd760e79
TV
137542020-03-06 Tom de Vries <tdevries@suse.de>
13755
13756 * psymtab.c (psymtab_to_symtab): Don't print "done.".
13757
20ea4a60
AB
137582020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13759
13760 * .dir-locals.el: Add a comment referencing the other copies of
13761 this file.
13762
0afbabf0
JB
137632020-03-05 John Baldwin <jhb@FreeBSD.org>
13764
13765 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
13766 psargs.
13767
842806cb
TBA
137682020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13769
13770 * .gitattributes: New file.
13771
be1e3d3e
TT
137722020-03-04 Tom Tromey <tom@tromey.com>
13773
13774 * symmisc.c (print_symbol_bcache_statistics)
13775 (print_objfile_statistics): Update.
13776 * symfile.c (allocate_symtab): Use intern.
13777 * psymtab.c (partial_symtab::partial_symtab): Use intern.
13778 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
13779 macro_cache>: Remove.
13780 <string_cache>: New member.
13781 (struct objfile) <intern>: New methods.
13782 * elfread.c (elf_symtab_read): Use intern.
13783 * dwarf2/read.c (fixup_go_packaging): Intern package name.
13784 (dwarf2_compute_name, dwarf2_physname)
13785 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
13786 names.
13787 (guess_partial_die_structure_name): Update.
13788 (partial_die_info::fixup): Intern name.
13789 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
13790 name.
13791 (dwarf2_name): Intern name. Update.
13792 * buildsym.c (buildsym_compunit::get_macro_table): Use
13793 string_cache.
13794
4e7625fd
TT
137952020-03-04 Tom Tromey <tom@tromey.com>
13796
13797 * jit.c (bfd_open_from_target_memory): Make "target" const.
13798 * corefile.c (gnutarget): Now const.
13799 * gdbcore.h (gnutarget): Now const.
13800
46f9f931
HD
138012020-03-04 Hannes Domani <ssbssa@yahoo.de>
13802
13803 * NEWS: Mention support for WOW64 processes.
13804 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
13805 (amd64_windows_segment_register_p): Remove static.
13806 (_initialize_amd64_windows_nat): Update.
13807 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
13808 * i386-windows-nat.c (context_offset): Update.
13809 (i386_mappings): Rename and remove static.
13810 (i386_windows_segment_register_p): Remove static.
13811 (_initialize_i386_windows_nat): Update.
13812 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
13813 (STATUS_WX86_SINGLE_STEP): New macro.
13814 (EnumProcessModulesEx): New macro.
13815 (Wow64SuspendThread): New macro.
13816 (Wow64GetThreadContext): New macro.
13817 (Wow64SetThreadContext): New macro.
13818 (Wow64GetThreadSelectorEntry): New macro.
13819 (windows_set_context_register_offsets): Add static.
13820 (windows_set_segment_register_p): Likewise.
13821 (windows_add_thread): Adapt for WOW64 processes.
13822 (windows_fetch_one_register): Likewise.
13823 (windows_nat_target::fetch_registers): Likewise.
13824 (windows_store_one_register): Likewise.
13825 (display_selector): Likewise.
13826 (display_selectors): Likewise.
13827 (handle_exception): Likewise.
13828 (windows_continue): Likewise.
13829 (windows_nat_target::resume): Likewise.
13830 (windows_add_all_dlls): Likewise.
13831 (do_initial_windows_stuff): Likewise.
13832 (windows_nat_target::attach): Likewise.
13833 (windows_get_exec_module_filename): Likewise.
13834 (windows_nat_target::create_inferior): Likewise.
13835 (windows_xfer_siginfo): Likewise.
13836 (_initialize_loadable): Initialize Wow64SuspendThread,
13837 Wow64GetThreadContext, Wow64SetThreadContext,
13838 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
13839 * windows-nat.h (windows_set_context_register_offsets):
13840 Remove declaration.
13841 (windows_set_segment_register_p): Likewise.
13842 (i386_windows_segment_register_p): Add declaration.
13843 (amd64_windows_segment_register_p): Likewise.
13844
440cf44e
LM
138452020-03-04 Luis Machado <luis.machado@linaro.org>
13846
13847 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
13848 in "info registers" for AArch64/ARM.
13849
13850 The change caused "info registers" to not print GPR's.
13851
13852 gdb/ChangeLog:
13853
13854 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
13855
13856 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13857 when reg->group is empty and reggroup is not.
13858
1009d92f
TT
138592020-03-03 Tom Tromey <tromey@adacore.com>
13860
13861 * dwarf2/frame.c (struct dwarf2_frame_cache)
13862 <checked_tailcall_bottom, entry_cfa_sp_offset,
13863 entry_cfa_sp_offset_p>: Remove members.
13864 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
13865 (dwarf2_frame_prev_register): Don't call
13866 dwarf2_tailcall_sniffer_first.
13867 (dwarf2_append_unwinders): Don't append tailcall unwinder.
13868 * frame-unwind.c (add_unwinder): New fuction.
13869 (frame_unwind_init): Use it. Add tailcall unwinder.
13870
5e5d66b6
AB
138712020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
13872 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13873
13874 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
13875 value should be printed as true.
13876
584cf46d
HD
138772020-03-03 Hannes Domani <ssbssa@yahoo.de>
13878
13879 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
13880 (windows_init_abi): Set and use windows_so_ops.
13881
7b973adc
SDJ
138822020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
13883
13884 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
13885 when verifying if dealing with a convenience variable.
13886
bb7b70ab
LM
138872020-03-03 Luis Machado <luis.machado@linaro.org>
13888
13889 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
13890
9822cb57
SM
138912020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13892
13893 * infrun.c (gdbarch_supports_displaced_stepping): New.
13894 (use_displaced_stepping): Break up conditions in smaller pieces.
13895 Use gdbarch_supports_displaced_stepping.
13896 (displaced_step_prepare_throw): Use
13897 gdbarch_supports_displaced_stepping.
13898
63e163f2
AB
138992020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13900
13901 * NEWS: Mention new behaviour of the history filename.
13902 * top.c (write_history_p): Add comment.
13903 (show_write_history_p): Add header comment, give a different
13904 message when history writing is on, but the history filename is
13905 empty.
13906 (history_filename): Add comment.
13907 (history_filename_empty): New function.
13908 (show_history_filename): Add header comment, give a different
13909 message when the filename is empty.
13910 (init_history): Compare history_filename against nullptr, and only
13911 read history if the filename is not empty.
13912 (set_history_filename): Add header comment, and only make
13913 non-empty filenames absolute.
13914 (init_main): Make the filename argument to 'set history filename'
13915 optional.
13916
81b86b97
CB
139172020-03-02 Christian Biesinger <cbiesinger@google.com>
13918
13919 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
13920 (arm_supply_vfpregset): ...this, and update to use VFP registers.
13921 (fetch_fp_register): Update.
13922 (fetch_fp_regs): Update.
13923 (store_fp_register): Update.
13924 (store_fp_regs): Update.
13925 (arm_netbsd_nat_target::read_description): New function.
13926 (fetch_elfcore_registers): Update.
13927
24ed6739
AB
139282020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13929
13930 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
13931 general_thread if the stop reply is missing a thread-id.
13932 (remote_target::process_stop_reply): Use the first non-exited
13933 thread if the target didn't pass a thread-id.
13934 * infrun.c (do_target_wait): Move call to
13935 switch_to_inferior_no_thread to ....
13936 (do_target_wait_1): ... here.
13937
a84bb2a0
JT
139382020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
13939
13940 * debuginfod-support.c: Include defs.h first.
13941
658dadf0
TV
139422020-02-28 Tom de Vries <tdevries@suse.de>
13943
13944 * symfile.c (set_initial_language): Use default language for lookup.
13945
4ebe4877
SM
139462020-02-28 Simon Marchi <simon.marchi@efficios.com>
13947
13948 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
13949 reader variable, pass `this` to read_cutu_die_from_dwo.
13950
e5da1139
AM
139512020-02-27 Aaron Merey <amerey@redhat.com>
13952
13953 * source.c (open_source_file): Check for nullptr when computing
13954 srcpath.
13955
317f7127
TT
139562020-02-27 Tom Tromey <tromey@adacore.com>
13957
13958 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
13959 member.
13960 (dwarf2_add_field): Don't update nfields.
13961 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
13962
3104d9ee
AB
139632020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13964
13965 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
13966 abs.
13967
b83470bf
TT
139682020-02-26 Tom Tromey <tom@tromey.com>
13969
13970 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
13971 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
13972 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
13973 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
13974 per_cu_data.
13975
edfe0a0c
TT
139762020-02-26 Tom Tromey <tom@tromey.com>
13977
13978 * dwarf2/index-write.c (psym_index_map): Change type.
13979 (add_address_entry_worker, write_one_signatured_type)
13980 (recursively_count_psymbols, recursively_write_psymbols)
13981 (class debug_names, psyms_seen_size, write_gdbindex)
13982 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
13983
0d79cdc4
AM
139842020-02-26 Aaron Merey <amerey@redhat.com>
13985
13986 * Makefile.in: Handle optional debuginfod support.
13987 * NEWS: Update.
13988 * README: Add --with-debuginfod summary.
13989 * config.in: Regenerate.
13990 * configure: Regenerate.
13991 * configure.ac: Handle optional debuginfod support.
13992 * debuginfod-support.c: debuginfod helper functions.
13993 * debuginfod-support.h: Ditto.
13994 * doc/gdb.texinfo: Add --with-debuginfod to configure options
13995 summary.
13996 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
13997 when a dwz file cannot be found.
13998 * elfread.c (elf_symfile_read): Query debuginfod servers when a
13999 debuginfo file cannot be found.
14000 * source.c (open_source_file): Query debuginfod servers when a
14001 source file cannot be found.
14002 * top.c (print_gdb_configuration): Include
14003 --{with,without}-debuginfod in the output.
14004
b65ce565
JG
140052020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
14006
14007 * thread.c (thr_try_catch_cmd): Print thread name.
14008
d4c9a4f8
SM
140092020-02-26 Simon Marchi <simon.marchi@efficios.com>
14010
14011 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
14012 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14013 dwarf2_fetch_die_type_sect_off): Move to...
14014 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
14015 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14016 dwarf2_fetch_die_type_sect_off): ... here.
14017 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
14018 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14019 dwarf2_fetch_die_type_sect_off): Move doc to header file.
14020
0dce4280
TV
140212020-02-26 Tom de Vries <tdevries@suse.de>
14022
14023 PR gdb/25603
14024 * symfile.c (set_initial_language): Exit-early if
14025 language_mode == language_mode_manual.
14026
450a1bfc
SM
140272020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14028
14029 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
14030 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
14031 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
14032
9e80cfa1
AB
140332020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
14034
14035 * gdbtypes.c (create_array_type_with_stride): Handle negative
14036 array strides.
14037 * valarith.c (value_subscripted_rvalue): Likewise.
14038
09624f1f
LM
140392020-02-25 Luis Machado <luis.machado@linaro.org>
14040
14041 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
14042
8cb5117c
SM
140432020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14044
14045 * loc.h (dwarf2_get_die_type): Move to...
14046 * read.h (dwarf2_get_die_type): ... here.
14047 * read.c (dwarf2_get_die_type): Move doc to header.
14048
c325c44e
JB
140492020-02-25 Joel Brobecker <brobecker@adacore.com>
14050
14051 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
14052 'gnulib/Makefile.in' to the list.
14053
4ac93832
TT
140542020-02-24 Tom Tromey <tom@tromey.com>
14055
14056 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
14057 Remove.
14058 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
14059 XOBNEWVEC.
14060
197400e8
TT
140612020-02-24 Tom Tromey <tom@tromey.com>
14062
14063 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
14064 New method.
14065 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
14066 (dw2_do_instantiate_symtab, dw2_get_file_names)
14067 (build_type_psymtab_dependencies, load_full_type_unit): Update.
14068
76935768
TT
140692020-02-24 Tom Tromey <tom@tromey.com>
14070
14071 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
14072 make_scoped_restore.
14073 (dwarf2_psymtab::read_symtab): Don't clear
14074 reading_partial_symbols.
14075
a88ef40d
TV
140762020-02-24 Tom de Vries <tdevries@suse.de>
14077
14078 PR gdb/25592
14079 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
14080
c9af6521
TV
140812020-02-24 Tom de Vries <tdevries@suse.de>
14082
14083 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
14084 commands layout next/prev/regs.
14085
5707a07a
TT
140862020-02-22 Tom Tromey <tom@tromey.com>
14087
14088 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
14089 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
14090
3b0fb49e
TT
140912020-02-22 Tom Tromey <tom@tromey.com>
14092
14093 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
14094
283be8bf
TT
140952020-02-22 Tom Tromey <tom@tromey.com>
14096
14097 * tui/tui-win.c (_initialize_tui_win): Add usage text.
14098 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
14099 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
14100 * tui/tui.c (_initialize_tui): Add usage text.
14101
ca793b96
TT
141022020-02-22 Tom Tromey <tom@tromey.com>
14103
14104 * tui/tui-win.c (tui_set_focus_command)
14105 (tui_set_win_height_command): Use error_no_arg.
14106 (_initialize_tui_win): Update help text.
14107 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
14108
432b5c40
TT
141092020-02-22 Tom Tromey <tom@tromey.com>
14110
14111 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
14112 * tui/tui-disasm.h (struct tui_disasm_window)
14113 <display_start_addr>: Declare.
14114 * tui/tui-source.h (struct tui_source_window)
14115 <display_start_addr>: Declare.
14116 * tui/tui-winsource.h (struct tui_source_window_base)
14117 <show_source_line, display_start_addr>: New methods.
14118 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
14119 Rename and move to protected section.
14120 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
14121 (tui_source_window_base::do_erase_source_content): Update.
14122 (tui_source_window_base::show_source_line): Now a method.
14123 (tui_source_window_base::show_source_content)
14124 (tui_source_window_base::tui_source_window_base)
14125 (tui_source_window_base::rerender)
14126 (tui_source_window_base::refill)
14127 (tui_source_window_base::do_scroll_horizontal)
14128 (tui_source_window_base::set_is_exec_point_at)
14129 (tui_source_window_base::update_breakpoint_info)
14130 (tui_source_window_base::update_exec_info): Update.
14131 * tui/tui-source.c (tui_source_window::set_contents)
14132 (tui_source_window::showing_source_p)
14133 (tui_source_window::do_scroll_vertical)
14134 (tui_source_window::location_matches_p)
14135 (tui_source_window::line_is_displayed): Update.
14136 (tui_source_window::display_start_addr): New method.
14137 * tui/tui-disasm.c (tui_disasm_window::set_contents)
14138 (tui_disasm_window::do_scroll_vertical)
14139 (tui_disasm_window::location_matches_p): Update.
14140 (tui_disasm_window::display_start_addr): New method.
14141
01b1af32
TT
141422020-02-22 Tom Tromey <tom@tromey.com>
14143
14144 * NEWS: Add entry for gdb.register_window_type.
14145 * tui/tui-layout.h (window_factory): New typedef.
14146 (tui_register_window): Declare.
14147 * tui/tui-layout.c (saved_tui_windows): New global.
14148 (tui_apply_current_layout): Use it.
14149 (tui_register_window): New function.
14150 * python/python.c (do_start_initialization): Call
14151 gdbpy_initialize_tui.
14152 (python_GdbMethods): Add "register_window_type" function.
14153 * python/python-internal.h (gdbpy_register_tui_window)
14154 (gdbpy_initialize_tui): Declare.
14155 * python/py-tui.c: New file.
14156 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
14157
fc96d20b
TT
141582020-02-22 Tom Tromey <tom@tromey.com>
14159
14160 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
14161
935c78c0
TT
141622020-02-22 Tom Tromey <tom@tromey.com>
14163
14164 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
14165 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
14166 * tui/tui-data.c (tui_set_win_with_focus): Remove.
14167 (tui_set_win_focus_to): Move from tui-win.c.
14168
0240c8f1
TT
141692020-02-22 Tom Tromey <tom@tromey.com>
14170
14171 * tui/tui-layout.c (make_standard_window, get_locator_window): New
14172 functions.
14173 (known_window_types): New global.
14174 (tui_get_window_by_name): Reimplement.
14175 (initialize_known_windows): New function.
14176 (validate_window_name): Rewrite.
14177 (_initialize_tui_layout): Call initialize_known_windows.
14178
fdb01f0c
TT
141792020-02-22 Tom Tromey <tom@tromey.com>
14180
14181 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
14182 Remove constants.
14183 * tui/tui-winsource.h (struct tui_source_window_base)
14184 <tui_source_window_base>: Remove parameter.
14185 * tui/tui-winsource.c
14186 (tui_source_window_base::tui_source_window_base): Remove
14187 parameter.
14188 (tui_source_window_base::refill): Update.
14189 * tui/tui-stack.h (struct tui_locator_window)
14190 <tui_locator_window>: Update.
14191 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
14192 Default the constructor.
14193 * tui/tui-regs.h (struct tui_data_item_window)
14194 <tui_data_item_window>: Default the constructor.
14195 (struct tui_data_window) <tui_data_window>: Likewise.
14196 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
14197 Default the constructor.
14198 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
14199 Default the constructor.
14200 <type>: Remove.
14201 (struct tui_win_info) <tui_win_info>: Default the constructor.
14202 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
14203 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
14204 Default the constructor.
14205
865a5aec
TT
142062020-02-22 Tom Tromey <tom@tromey.com>
14207
14208 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
14209 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
14210 * tui/tui-win.c (tui_resize_all): Don't call
14211 tui_delete_invisible_windows.
14212 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
14213 done.
14214 (tui_set_layout): Update.
14215 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
14216 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
14217 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
14218
e098d18c
TT
142192020-02-22 Tom Tromey <tom@tromey.com>
14220
14221 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
14222 correctly.
14223
eb9c8874
TT
142242020-02-22 Tom Tromey <tom@tromey.com>
14225
14226 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
14227
7eed1a8e
TT
142282020-02-22 Tom Tromey <tom@tromey.com>
14229
14230 * tui/tui-winsource.h (struct tui_source_window_iterator)
14231 <inner_iterator>: New etytypedef.
14232 <tui_source_window_iterator>: Take "end" parameter.
14233 <tui_source_window_iterator>: Take iterator.
14234 <operator*, advance>: Update.
14235 <m_iter>: Change type.
14236 <m_end>: New field.
14237 (struct tui_source_windows) <begin, end>: Update.
14238 * tui/tui-layout.c (tui_windows): New global.
14239 (tui_apply_current_layout): Clear tui_windows.
14240 (tui_layout_window::apply): Update tui_windows.
14241 * tui/tui-data.h (tui_windows): Declare.
14242 (all_tui_windows): Now inline function.
14243 (class tui_window_iterator, struct all_tui_windows): Remove.
14244
7c043ba6
TT
142452020-02-22 Tom Tromey <tom@tromey.com>
14246
14247 PR tui/17850:
14248 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
14249 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
14250 "height" argument.
14251 (class tui_layout_window) <get_sizes>: Likewise.
14252 (class tui_layout_split) <tui_layout_split>: Add "vertical"
14253 argument.
14254 <get_sizes>: Add "height" argument.
14255 <m_vertical>: New field.
14256 * tui/tui-layout.c (tui_layout_split::clone): Update.
14257 (tui_layout_split::get_sizes): Add "height" argument.
14258 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
14259 (tui_new_layout_command): Parse "-horizontal".
14260 (_initialize_tui_layout): Update help string.
14261 (tui_layout_split::specification): Add "-horizontal" when needed.
14262 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
14263 argument.
14264 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
14265 New methods.
14266
6bc56648
TT
142672020-02-22 Tom Tromey <tom@tromey.com>
14268
14269 * tui/tui-layout.h (enum tui_adjust_result): New.
14270 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
14271 (class tui_layout_window) <adjust_size>: Return
14272 tui_adjust_result. Rewrite.
14273 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
14274 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
14275
c22fef7e
TT
142762020-02-22 Tom Tromey <tom@tromey.com>
14277
14278 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
14279 parameter and return types.
14280 (class tui_layout_base) <specification>: Add "depth".
14281 (class tui_layout_window) <specification>: Add "depth".
14282 (class tui_layout_split) <specification>: Add "depth".
14283 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
14284 and return types.
14285 (tui_new_layout_command): Parse sub-layouts.
14286 (_initialize_tui_layout): Update help string.
14287 (tui_layout_window::specification): Add "depth".
14288 (add_layout_command): Update.
14289
ee325b61
TT
142902020-02-22 Tom Tromey <tom@tromey.com>
14291
14292 * NEWS: Add "tui new-layout" item.
14293 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
14294 Add new-layout command to help text.
14295 (validate_window_name): New function.
14296 (tui_new_layout_command): New function.
14297 (_initialize_tui_layout): Register "new-layout".
14298 (tui_layout_window::specification): New method.
14299 (tui_layout_window::specification): New method.
14300 * tui/tui-layout.h (class tui_layout_base) <specification>: New
14301 method.
14302 (class tui_layout_window) <specification>: New method.
14303 (class tui_layout_split) <specification>: New method.
14304
416eb92d
TT
143052020-02-22 Tom Tromey <tom@tromey.com>
14306
14307 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
14308 * tui/tui-win.c (window_name_completer): Update comment.
14309 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
14310 Declare method.
14311 (class tui_layout_window) <replace_window>: Likewise.
14312 (class tui_layout_split) <replace_window>: Likewise.
14313 (tui_set_layout): Don't declare.
14314 (tui_set_initial_layout): Declare function.
14315 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
14316 (asm_regs_layout): New globals.
14317 (tui_current_layout, show_layout): Remove.
14318 (tui_set_layout, tui_add_win_to_layout): Rewrite.
14319 (find_layout, tui_apply_layout): New function.
14320 (layout_completer): Remove.
14321 (tui_next_layout): Reimplement.
14322 (tui_next_layout_command): New function.
14323 (tui_set_initial_layout, tui_prev_layout_command): New functions.
14324 (tui_regs_layout): Reimplement.
14325 (tui_regs_layout_command): New function.
14326 (extract_display_start_addr): Rewrite.
14327 (next_layout, prev_layout): Remove.
14328 (tui_layout_window::replace_window): New method.
14329 (tui_layout_split::replace_window): New method.
14330 (destroy_layout): New function.
14331 (layout_list): New global.
14332 (add_layout_command): New function.
14333 (initialize_layouts): Update.
14334 (tui_layout_command): New function.
14335 (_initialize_tui_layout): Install "layout" commands.
14336 * tui/tui-data.h (enum tui_layout_type): Remove.
14337 (tui_current_layout): Don't declare.
14338
0dbc2fc7
TT
143392020-02-22 Tom Tromey <tom@tromey.com>
14340
14341 * tui/tui-regs.c (tui_reg_layout): Remove.
14342 (tui_reg_command): Use tui_regs_layout.
14343 * tui/tui-layout.h (tui_reg_command): Declare.
14344 * tui/tui-layout.c (tui_reg_command): New function.
14345
5afe342e
TT
143462020-02-22 Tom Tromey <tom@tromey.com>
14347
14348 * tui/tui.c (tui_rl_delete_other_windows): Call
14349 tui_remove_some_windows.
14350 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
14351 Declare method.
14352 (class tui_layout_window) <remove_windows>: New method.
14353 (class tui_layout_split) <remove_windows>: Declare.
14354 (tui_remove_some_windows): Declare.
14355 * tui/tui-layout.c (tui_remove_some_windows): New function.
14356 (tui_layout_split::remove_windows): New method.
14357
427326a8
TT
143582020-02-22 Tom Tromey <tom@tromey.com>
14359
14360 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
14361 * tui/tui-layout.h (tui_next_layout): Declare.
14362 * tui/tui-layout.c (tui_next_layout): New function.
14363
3fe12b6d
TT
143642020-02-22 Tom Tromey <tom@tromey.com>
14365
14366 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
14367 correct coordinates.
14368
59b8b5d2
TT
143692020-02-22 Tom Tromey <tom@tromey.com>
14370
14371 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
14372 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
14373 DATA_WIN case.
14374
2a3d458b
TT
143752020-02-22 Tom Tromey <tom@tromey.com>
14376
14377 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
14378 TUI_DISASM_WIN, not tui_win_list.
14379
3f0cbb04
TT
143802020-02-22 Tom Tromey <tom@tromey.com>
14381
14382 * valprint.c (generic_val_print_enum_1)
14383 (val_print_type_code_flags): Style member names.
14384 * rust-lang.c (val_print_struct, rust_print_enum)
14385 (rust_print_struct_def, rust_internal_print_type): Style member
14386 names.
14387 * p-valprint.c (pascal_object_print_value_fields): Style member
14388 names. Only call fprintf_symbol_filtered for static members.
14389 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
14390 * f-valprint.c (f_val_print): Style member names.
14391 * f-typeprint.c (f_type_print_base): Style member names.
14392 * cp-valprint.c (cp_print_value_fields): Style member names. Only
14393 call fprintf_symbol_filtered for static members.
14394 (cp_print_class_member): Style member names.
14395 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
14396 member names.
14397 * ada-valprint.c (ada_print_scalar): Style enum names.
14398 (ada_val_print_enum): Likewise.
14399 * ada-typeprint.c (print_enum_type): Style enum names.
14400
d4d947ae
TT
144012020-02-21 Tom Tromey <tom@tromey.com>
14402
14403 * psympriv.h (struct partial_symtab): Update comment.
14404
e94e944b
TT
144052020-02-21 Tom Tromey <tromey@adacore.com>
14406
14407 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
14408 type is CORE_ADDR.
14409
1eb73179
TV
144102020-02-21 Tom de Vries <tdevries@suse.de>
14411
14412 PR gdb/25534
14413 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
14414 if dependencies[i]->user != NULL.
14415
4f180d53
AT
144162020-02-21 Ali Tamur <tamur@google.com>
14417
14418 * dwarf2/read.c (dwarf2_name): Add null check.
14419
22b6cd70
TT
144202020-02-20 Tom Tromey <tom@tromey.com>
14421
14422 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
14423 ">=", in binary search.
14424 (dwarf2_find_containing_comp_unit): New overload.
14425 (run_test): New self-test.
14426 (_initialize_dwarf2_read): Register new test.
14427
bd0cf5a6
NC
144282020-02-20 Nelson Chu <nelson.chu@sifive.com>
14429
14430 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
14431 * riscv-tdep.h: Likewise.
14432 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
14433 rv32-only CSR.
14434 * features/riscv/64bit-csr.xml: Regenerated.
14435
3f702acd
SDJ
144362020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
14437 Tom Tromey <tom@tromey.com>
14438
14439 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
14440 of 'fputc_unfiltered'.
14441 (putchar_unfiltered): Call 'fputc_unfiltered'.
14442 (fputc_unfiltered): Call 'fputs_unfiltered'.
14443
d13c7322
AB
144442020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
14445
14446 * config.in: Regenerate.
14447 * configure: Regenerate.
14448 * configure.ac: Add --with-python-libdir option.
14449 * main.c: Use WITH_PYTHON_LIBDIR.
14450
869d8950
TT
144512020-02-19 Tom Tromey <tom@tromey.com>
14452
14453 * symtab.c (general_symbol_info::compute_and_set_names): Use
14454 obstack_strndup. Simplify call to symbol_set_demangled_name.
14455
298e9637
SM
144562020-02-19 Simon Marchi <simon.marchi@efficios.com>
14457
14458 * dwarf2/read.c (allocate_signatured_type_table,
14459 allocate_dwo_unit_table, allocate_type_unit_groups_table,
14460 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
14461 Remove objfile parameter, update all callers.
14462
08410482
DE
144632020-02-19 Doug Evans <dje@google.com>
14464
14465 PR rust/25535
14466 * rust-lang.c (rust_print_enum): Apply embedded_offset to
14467 rust_enum_variant calculation.
14468
dfdeeca1
TT
144692020-02-19 Tom Tromey <tromey@adacore.com>
14470
14471 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
14472
2ef5453b
TT
144732020-02-19 Tom Tromey <tromey@adacore.com>
14474
14475 * ada-lang.c (cache_symbol): Use obstack_strdup.
14476
9f1528a1
AB
144772020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14478
14479 * configure: Regenerate.
14480
d3c22fa8
TT
144812020-02-19 Tom Tromey <tromey@adacore.com>
14482
14483 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
14484 NULL check.
14485
bf84f706
MR
144862020-02-19 Maciej W. Rozycki <macro@wdc.com>
14487
14488 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
14489
d1c9b20f
AB
144902020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14491
14492 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
14493 if GDBSERVER is not defined.
14494 (riscv_tdesc_cache): Likewise, also store const target_desc.
14495 (STATIC_IN_GDB): Define.
14496 (riscv_create_target_description): Update declaration with
14497 STATIC_IN_GDB.
14498 (riscv_lookup_target_description): New function, only define if
14499 GDBSERVER is not defined.
14500 * arch/riscv.h (riscv_create_target_description): Declare only
14501 when GDBSERVER is defined.
14502 (riscv_lookup_target_description): New declaration when GDBSERVER
14503 is not defined.
14504 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
14505 (riscv_linux_read_features): ...this, and return
14506 riscv_gdbarch_features instead of target_desc.
14507 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
14508 (riscv_linux_read_description): Rename to...
14509 (riscv_linux_read_features): ...this.
14510 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14511 Update to use riscv_gdbarch_features and
14512 riscv_lookup_target_description.
14513 * riscv-tdep.c (riscv_find_default_target_description): Use
14514 riscv_lookup_target_description instead of
14515 riscv_create_target_description.
14516
373d7ac0
SM
145172020-02-18 Simon Marchi <simon.marchi@efficios.com>
14518
14519 * valprint.c (generic_val_print_enum_1): When printing a flag
14520 enum with value 0 and there is no enumerator with value 0, print
14521 just "0" instead of "(unknown: 0x0)".
14522
b29a2df0
SM
145232020-02-18 Simon Marchi <simon.marchi@efficios.com>
14524
14525 * valprint.c (generic_val_print_enum_1): Print unknown part of
14526 flag enum in hex.
14527
6740f0cc
SM
145282020-02-18 Simon Marchi <simon.marchi@efficios.com>
14529
14530 * dwarf2/read.c (update_enumeration_type_from_children): Allow
14531 flag enums to contain duplicate enumerators.
14532 * valprint.c (generic_val_print_enum_1): Update comment.
14533
edd45eb0
SM
145342020-02-18 Simon Marchi <simon.marchi@efficios.com>
14535
14536 * dwarf2/read.c: Include "count-one-bits.h".
14537 (update_enumeration_type_from_children): If an enumerator has
14538 multiple bits set, don't treat the enumeration as a "flag enum".
14539 * valprint.c (generic_val_print_enum_1): Assert that enumerators
14540 of flag enums have 0 or 1 bit set.
14541
6d0cf446
BE
145422020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
14543
14544 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
14545 conversion.
14546 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14547 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14548 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14549 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14550 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14551
7001c1b7
SM
145522020-02-18 Simon Marchi <simon.marchi@efficios.com>
14553
14554 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
14555
fdb61c6c
SM
145562020-02-14 Simon Marchi <simon.marchi@efficios.com>
14557
14558 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
14559 displaced_step_closure_up.
14560 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14561 (struct displaced_step_closure_up):
14562 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14563 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14564 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
14565 Likewise.
14566 * gdbarch.sh (displaced_step_copy_insn): Likewise.
14567 * gdbarch.c, gdbarch.h: Re-generate.
14568 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
14569 displaced_step_closure_up.
14570 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14571 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14572 * infrun.h (displaced_step_closure_up): New type alias.
14573 (struct displaced_step_inferior_state) <step_closure>: Change
14574 type to displaced_step_closure_up.
14575 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
14576 displaced_step_closure_up.
14577 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14578
a4a38eb4
TT
145792020-02-14 Tom Tromey <tom@tromey.com>
14580
14581 * minidebug.c (gnu_debug_key): New global.
14582 (find_separate_debug_file_in_section): Use it.
14583
e8217e61
SM
145842020-02-14 Simon Marchi <simon.marchi@efficios.com>
14585
14586 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
14587 std::unique_ptr.
14588 * gdbarch.c: Re-generate.
14589 * gdbarch.h: Re-generate.
14590 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
14591 change.
14592 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
14593 type to std::unique_ptr.
14594 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14595 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14596 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14597 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14598 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
14599 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14600 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14601 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14602 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14603
d8d83535
SM
146042020-02-14 Simon Marchi <simon.marchi@efficios.com>
14605
14606 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
14607 std::unique_ptr.
14608 (displaced_step_clear): Rename to...
14609 (displaced_step_reset): ... this. Just call displaced->reset ().
14610 (displaced_step_clear_cleanup): Rename to...
14611 (displaced_step_reset_cleanup): ... this.
14612 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
14613 (displaced_step_fixup): Likewise.
14614 (resume_1): Likewise.
14615 (handle_inferior_event): Restore child's memory before calling
14616 displaced_step_fixup on the parent.
14617 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
14618 to std::unique_ptr.
14619 <step_closure>: Change type to std::unique_ptr.
14620
5f661e03
SM
146212020-02-14 Simon Marchi <simon.marchi@efficios.com>
14622
14623 * arm-tdep.c: Include count-one-bits.h.
14624 (cleanup_block_store_pc): Use count_one_bits.
14625 (cleanup_block_load_pc): Use count_one_bits.
14626 (arm_copy_block_xfer): Use count_one_bits.
14627 (thumb2_copy_block_xfer): Use count_one_bits.
14628 (thumb_copy_pop_pc_16bit): Use count_one_bits.
14629 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
14630 (thumb_get_next_pcs_raw): Use count_one_bits.
14631 (arm_get_next_pcs_raw): Use count_one_bits_l.
14632 * arch/arm.c (bitcount): Remove.
14633 * arch/arm.h (bitcount): Remove.
14634
8084e579
TT
146352020-02-14 Tom Tromey <tromey@adacore.com>
14636
14637 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
14638 Update.
14639 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
14640 * dwarf2/loc.c (call_site_find_chain_1): Return
14641 unique_xmalloc_ptr.
14642 (call_site_find_chain): Likewise.
14643
258bf0ee
RB
146442020-02-14 Richard Biener <rguenther@suse.de>
14645
14646 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
14647 on expression with division operators.
14648
f98a8458
AKS
146492020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14650
14651 * MAINTAINERS (Write After Approval): Adding myself.
14652
d1437c0e
TT
146532020-02-12 Tom Tromey <tom@tromey.com>
14654
14655 * event-loop.c (event_data, gdb_event, event_handler_func):
14656 Remove.
14657
3d4560f7
TT
146582020-02-12 Tom Tromey <tom@tromey.com>
14659
14660 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
14661 (dwarf2_frame_objfile_data): Add comment.
14662 (find_comp_unit, set_comp_unit): New functions.
14663 (dwarf2_frame_find_fde): Use find_comp_unit.
14664 (dwarf2_build_frame_info): Use set_comp_unit.
14665
21982304
TT
146662020-02-12 Tom Tromey <tom@tromey.com>
14667
14668 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
14669 (comp_unit): Don't initialize objfile.
14670 (execute_cfa_program): Add text_offset parameter.
14671 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
14672 (dwarf2_frame_cache): Update.
14673 (dwarf2_build_frame_info): Don't set "objfile" member.
14674
4debb237
TT
146752020-02-12 Tom Tromey <tom@tromey.com>
14676
14677 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
14678 (decode_frame_entry): Likewise.
14679 (dwarf2_build_frame_info): Update.
14680
0d404d44
TT
146812020-02-12 Tom Tromey <tom@tromey.com>
14682
14683 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
14684 (decode_frame_entry_1): Use the comp_unit obstack.
14685
a7a3ae5c
TT
146862020-02-12 Tom Tromey <tom@tromey.com>
14687
14688 * dwarf2/frame.c (struct comp_unit): Add initializers and
14689 constructor.
14690 (dwarf2_frame_objfile_data): Store a comp_unit.
14691 (dwarf2_frame_find_fde): Update.
14692 (dwarf2_build_frame_info): Use "new".
14693
a9d65418
TT
146942020-02-12 Tom Tromey <tom@tromey.com>
14695
14696 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
14697 (dwarf2_fde_table): Typedef for std::vector.
14698 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
14699 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
14700 (decode_frame_entry): Update.
14701 (dwarf2_build_frame_info): Use "new".
14702
7559c217
CB
147032020-02-12 Christian Biesinger <cbiesinger@google.com>
14704
14705 * arm-tdep.c (arm_gdbarch_init): Update.
14706 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
14707 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
14708 have_neon, is_m>: Change to bool.
14709
aeefc73c
CB
147102020-02-12 Christian Biesinger <cbiesinger@google.com>
14711
14712 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
14713
d27b8e5f
TT
147142020-02-12 Tom Tromey <tom@tromey.com>
14715
14716 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
14717
cd5900f3
HD
147182020-02-12 Hannes Domani <ssbssa@yahoo.de>
14719
14720 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
14721 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
14722
f056b22b
TT
147232020-02-11 Tom Tromey <tom@tromey.com>
14724
14725 * psymtab.h: Update comment.
14726
f92ff6b5
TT
147272020-02-11 Tom Tromey <tom@tromey.com>
14728
14729 * gdb_obstack.h (struct auto_obstack): Use
14730 DISABLE_COPY_AND_ASSIGN.
14731
3fd6912b
TT
147322020-02-11 Tom Tromey <tom@tromey.com>
14733
14734 * dwarf2/frame.h (struct objfile): Don't forward declare.
14735
69ed9b74
CB
147362020-02-11 Christian Biesinger <cbiesinger@google.com>
14737
14738 * cris-tdep.c (cris_supply_gregset): Change signature to match
14739 what struct regset expects.
14740 (cris_regset): New struct.
14741 (fetch_core_registers): Remove.
14742 (cris_iterate_over_regset_sections): New function.
14743 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
14744 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
14745
bda874f6
CB
147462020-02-11 Christian Biesinger <cbiesinger@google.com>
14747
14748 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
14749 registers.
14750
754e1564
CB
147512020-02-11 Christian Biesinger <cbiesinger@google.com>
14752
14753 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
14754
8ddd8e0e
SM
147552020-02-11 Simon Marchi <simon.marchi@efficios.com>
14756
14757 * configure: Re-generate.
14758
898e7f60
SM
147592020-02-11 Simon Marchi <simon.marchi@efficios.com>
14760
14761 * configure: Re-generate.
14762
58df732b
SM
147632020-02-11 Simon Marchi <simon.marchi@efficios.com>
14764
14765 * acinclude: Update warning.m4 path.
14766 * warning.m4: Move to gdbsupport.
14767
da5bd37e
TT
147682020-02-11 Tom Tromey <tromey@adacore.com>
14769
14770 * remote.c (remote_console_output): Update.
14771 * printcmd.c (printf_command): Update.
14772 * event-loop.c (gdb_wait_for_event): Update.
14773 * linux-nat.c (sigchld_handler): Update.
14774 * remote-sim.c (gdb_os_write_stdout): Update.
14775 (gdb_os_flush_stdout): Update.
14776 (gdb_os_flush_stderr): Update.
14777 (gdb_os_write_stderr): Update.
14778 * exceptions.c (print_exception): Update.
14779 * remote-fileio.c (remote_fileio_func_read): Update.
14780 (remote_fileio_func_write): Update.
14781 * tui/tui.c (tui_enable): Update.
14782 * tui/tui-interp.c (tui_interp::init): Update.
14783 * utils.c (init_page_info): Update.
14784 (putchar_unfiltered, fputc_unfiltered): Update.
14785 (gdb_flush): Update.
14786 (emit_style_escape): Update.
14787 (flush_wrap_buffer, fputs_maybe_filtered): Update.
14788 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
14789 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
14790 (stderr_file::write): Update.
14791 (stderr_file::puts): Update.
14792 * ui-file.h (ui_file_isatty, ui_file_write)
14793 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
14794 (ui_file_puts): Don't declare.
14795
85f0dd3c
TV
147962020-02-10 Tom de Vries <tdevries@suse.de>
14797
14798 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
14799 sentinel to char *.
14800
2e927613
TV
148012020-02-09 Tom de Vries <tdevries@suse.de>
14802
14803 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
14804 filename if it matches "<artificial>".
14805
6bafc845
HD
148062020-02-09 Hannes Domani <ssbssa@yahoo.de>
14807
14808 * windows-tdep.c (struct enum_value_name): New struct.
14809 (create_enum): New function.
14810 (windows_get_siginfo_type): Create and use enum types.
14811
7928d571
HD
148122020-02-09 Hannes Domani <ssbssa@yahoo.de>
14813
14814 * NEWS: Mention $_siginfo support for Windows.
14815 * windows-nat.c (handle_exception): Set siginfo_er.
14816 (windows_nat_target::mourn_inferior): Reset siginfo_er.
14817 (windows_xfer_siginfo): New function.
14818 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
14819 * windows-tdep.c (struct windows_gdbarch_data): New struct.
14820 (init_windows_gdbarch_data): New function.
14821 (get_windows_gdbarch_data): New function.
14822 (windows_get_siginfo_type): New function.
14823 (windows_init_abi): Register windows_get_siginfo_type.
14824 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
14825
6751ebae
TT
148262020-02-08 Tom Tromey <tom@tromey.com>
14827
14828 * dwarf2/read.c (class cutu_reader) <cutu_reader,
14829 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
14830 <keep>: Declare method.
14831 <m_keep>: Remove member.
14832 <~cutu_reader>: Remove.
14833 (cutu_reader::init_tu_and_read_dwo_dies): Update.
14834 (cutu_reader::cutu_reader): Update.
14835 (cutu_reader::keep): Rename from ~cutu_reader.
14836 (process_psymtab_comp_unit, build_type_psymtabs_1)
14837 (process_skeletonless_type_unit, load_partial_comp_unit)
14838 (load_full_comp_unit, dwarf2_read_addr_index)
14839 (read_signatured_type): Update.
14840
135f5437
TT
148412020-02-08 Tom Tromey <tom@tromey.com>
14842
14843 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
14844 "want_partial_unit" parameter.
14845 (process_psymtab_comp_unit): Change want_partial_unit to bool.
14846 Inline check for DW_TAG_partial_unit.
14847 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
14848
9f66ff1c
TT
148492020-02-08 Tom Tromey <tom@tromey.com>
14850
14851 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
14852 read.c.
14853 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
14854 read.c.
14855
c8a7a66f
TT
148562020-02-08 Tom Tromey <tom@tromey.com>
14857
14858 * dwarf2/read.c (read_address): Move to comp-unit.c.
14859 (dwarf2_rnglists_process, dwarf2_ranges_process)
14860 (read_attribute_value, dwarf_decode_lines_1)
14861 (var_decode_location, decode_locdesc): Update.
14862 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
14863 read.c. Remove "cu" parameter.
14864 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
14865 method.
14866
8266302d
TT
148672020-02-08 Tom Tromey <tom@tromey.com>
14868
14869 * dwarf2/read.c (read_attribute_value, read_indirect_string)
14870 (read_indirect_line_string): Update.
14871 * dwarf2/comp-unit.c (read_offset): Remove.
14872 (read_comp_unit_head): Update.
14873 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
14874 method.
14875 (read_offset): Don't declare.
14876
4057dfde
TT
148772020-02-08 Tom Tromey <tom@tromey.com>
14878
14879 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
14880 * dwarf2/read.c (struct comp_unit_head): Move to
14881 dwarf2/comp-unit.h.
14882 (enum class rcuh_kind): Move to comp-unit.h.
14883 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
14884 (read_comp_unit_head, error_check_comp_unit_head)
14885 (read_and_check_comp_unit_head): Move to comp-unit.c.
14886 (read_offset, dwarf_unit_type_name): Likewise.
14887 (create_debug_type_hash_table, read_cutu_die_from_dwo)
14888 (cutu_reader::cutu_reader, read_call_site_scope)
14889 (find_partial_die, follow_die_offset): Update.
14890 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
14891
24aa364d
TT
148922020-02-08 Tom Tromey <tom@tromey.com>
14893
14894 * dwarf2/read.c (read_offset_1): Move to leb.c.
14895 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
14896 (dwarf_decode_macro_bytes): Update.
14897 * dwarf2/leb.c (read_offset): Rename; move from read.c.
14898 * dwarf2/leb.h (read_offset): Declare.
14899
2c7d5afc
TT
149002020-02-08 Tom Tromey <tom@tromey.com>
14901
14902 * dwarf2/read.c (dwarf2_section_size): Remove.
14903 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
14904 Update.
14905 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
14906
4075cb26
TT
149072020-02-08 Tom Tromey <tom@tromey.com>
14908
14909 * dwarf2/read.c (read_initial_length): Move to leb.c.
14910 * dwarf2/leb.h (read_initial_length): Declare.
14911 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
14912 handle_nonstd parameter.
14913 * dwarf2/frame.c (read_initial_length): Remove.
14914 (decode_frame_entry_1): Update.
14915
09ba997f
TT
149162020-02-08 Tom Tromey <tom@tromey.com>
14917
14918 * dwarf2/loc.c (dwarf2_find_location_expression)
14919 (dwarf_evaluate_loc_desc::get_tls_address)
14920 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
14921 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
14922 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
14923 (dwarf2_compile_property_to_c)
14924 (dwarf2_loc_desc_get_symbol_read_needs)
14925 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
14926 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
14927 (loclist_describe_location, loclist_tracepoint_var_ref)
14928 (loclist_generate_c_location): Update.
14929 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
14930 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
14931 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
14932 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
14933 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
14934 (dwarf2_per_cu_data::addr_size)
14935 (dwarf2_per_cu_data::ref_addr_size)
14936 (dwarf2_per_cu_data::text_offset)
14937 (dwarf2_per_cu_data::addr_type): Now methods.
14938 (per_cu_header_read_in): Make per_cu "const".
14939 (dwarf2_version): Remove.
14940 (dwarf2_per_cu_data::int_type): Now a method.
14941 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
14942 (set_die_type, read_array_type, read_subrange_index_type)
14943 (read_tag_string_type, read_subrange_type): Update.
14944 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
14945 offset_size, ref_addr_size, text_offset, addr_type, version,
14946 objfile, int_type, addr_sized_int_type>: Declare methods.
14947
96c738c0
TT
149482020-02-08 Tom Tromey <tom@tromey.com>
14949
14950 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
14951 Move earlier.
14952
8fdd972c
TT
149532020-02-08 Tom Tromey <tom@tromey.com>
14954
14955 * dwarf2/read.h (dwarf_line_debug): Declare.
14956 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
14957 * dwarf2/read.c: Move line_header code to new files.
14958 (dwarf_line_debug): No longer static.
14959 * dwarf2/line-header.c: New file.
14960 * dwarf2/line-header.h: New file.
14961
03075812
TT
149622020-02-08 Tom Tromey <tom@tromey.com>
14963
14964 * dwarf2/read.c (struct line_header) <file_full_name,
14965 file_file_name>: Return unique_xmalloc_ptr.
14966 (line_header::file_file_name): Update.
14967 (line_header::file_full_name): Update.
14968 (dw2_get_file_names_reader): Update.
14969 (macro_start_file): Update.
14970
bb822404
TT
149712020-02-08 Tom Tromey <tom@tromey.com>
14972
14973 * dwarf2/read.c (struct line_header) <file_full_name,
14974 file_file_name>: Declare methods.
14975 (dw2_get_file_names_reader): Update.
14976 (file_file_name): Now a method.
14977 (file_full_name): Likewise.
14978 (macro_start_file): Update.
14979
009b64fc
TT
149802020-02-08 Tom Tromey <tom@tromey.com>
14981
14982 * dwarf2/read.c (dwarf_always_disassemble)
14983 (show_dwarf_always_disassemble): Move to loc.c.
14984 (_initialize_dwarf2_read): Move "always-disassemble" registration
14985 to loc.c.
14986 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
14987 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
14988 static.
14989 (show_dwarf_always_disassemble): Move from read.c.
14990 (_initialize_dwarf2loc): Move always-disassemble from read.c.
14991
5895093f
TT
149922020-02-08 Tom Tromey <tom@tromey.com>
14993
14994 * dwarf2/read.c (~dwarf2_per_objfile): Update.
14995 (create_quick_file_names_table): Return htab_up.
14996 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
14997 Update.
14998 * dwarf2/read.h (struct dwarf2_per_objfile)
14999 <quick_file_names_table>: Now htab_up.
15000
b3b32279
TT
150012020-02-08 Tom Tromey <tom@tromey.com>
15002
15003 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
15004
1d33d811
TT
150052020-02-08 Tom Tromey <tom@tromey.com>
15006
15007 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
15008 Rewrite.
15009 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
15010 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
15011 (abbrev_table::abbrev_table): No longer inline.
15012 (ABBREV_HASH_SIZE): Remove.
15013 (abbrev_table::m_abbrevs): Now an htab_up.
15014
86de1d91
TT
150152020-02-08 Tom Tromey <tom@tromey.com>
15016
15017 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
15018 (cutu_reader): Update.
15019 (build_type_psymtabs_1): Update.
15020 * dwarf2/abbrev.c (abbrev_table::read): Rename.
15021 (abbrev_table::alloc_abbrev): Update.
15022 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
15023 (abbrev_table::read): New static method, renamed from
15024 abbrev_table_read_table.
15025 (abbrev_table::alloc_abbrev)
15026 (abbrev_table::add_abbrev): Now private.
15027 (abbrev_table::abbrev_table): Now private.
15028 (abbrev_table::m_abbrev_obstack): Now private. Rename.
15029
0335378b
TT
150302020-02-08 Tom Tromey <tom@tromey.com>
15031
15032 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
15033 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
15034 htab_up.
15035
48b490f2
TT
150362020-02-08 Tom Tromey <tom@tromey.com>
15037
15038 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
15039 htab_up.
15040 (lookup_dwo_unit_in_dwp): Update.
15041 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
15042 on obstack.
15043
bc68fb19
TT
150442020-02-08 Tom Tromey <tom@tromey.com>
15045
15046 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
15047 obstack.
15048
d15acc42
TT
150492020-02-08 Tom Tromey <tom@tromey.com>
15050
15051 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
15052 line_header_hash.
15053 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
15054 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
15055 Change type to htab_up.
15056
eaa5fa8b
TT
150572020-02-08 Tom Tromey <tom@tromey.com>
15058
15059 * dwarf2/read.c (allocate_type_unit_groups_table): Return
15060 htab_up. Don't allocate on obstack.
15061 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
15062 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
15063 Change type to htab_up.
15064
b0b6a987
TT
150652020-02-08 Tom Tromey <tom@tromey.com>
15066
15067 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
15068 Change type to htab_up.
15069 * dwarf2/read.c (create_signatured_type_table_from_index)
15070 (create_signatured_type_table_from_debug_names)
15071 (create_all_type_units, add_type_unit)
15072 (lookup_dwo_signatured_type, lookup_signatured_type)
15073 (process_skeletonless_type_unit): Update.
15074 (create_debug_type_hash_table, create_debug_types_hash_table):
15075 Change type of types_htab.
15076 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
15077 htab_up. Don't allocate on obstack.
15078 (create_cus_hash_table): Change type of cus_htab parameter.
15079 (struct dwo_file) <cus, tus>: Now htab_up.
15080 (lookup_dwo_signatured_type, lookup_dwo_cutu)
15081 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
15082 (queue_and_load_all_dwo_tus): Update.
15083 * dwarf2/index-write.c (write_gdbindex): Update.
15084 (write_debug_names): Update.
15085
39856def
TT
150862020-02-08 Tom Tromey <tom@tromey.com>
15087
15088 * dwarf2/read.h (struct dwarf2_queue_item): Move from
15089 dwarf2/read.c. Remove "next" member. Add constructor ntad
15090 destructor.
15091 (struct dwarf2_per_objfile) <queue>: New member.
15092 * dwarf2/read.c (struct dwarf2_queue_item): Move to
15093 dwarf2/read.h.
15094 (dwarf2_queue, dwarf2_queue_tail): Remove.
15095 (class dwarf2_queue_guard): Add parameter to constructor. Use
15096 DISABLE_COPY_AND_ASSIGN.
15097 <m_per_objfile>: New member.
15098 <~dwarf2_queue_guard>: Rewrite.
15099 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
15100 Update.
15101 (~dwarf2_queue_item): New.
15102
3e225074
TT
151032020-02-08 Tom Tromey <tom@tromey.com>
15104
15105 * dwarf2/read.c (struct die_info) <has_children>: New member.
15106 (dw2_get_file_names_reader): Remove has_children.
15107 (dw2_get_file_names): Update.
15108 (read_cutu_die_from_dwo): Remove has_children.
15109 (cutu_reader::init_tu_and_read_dwo_dies)
15110 (cutu_reader::cutu_reader): Update.
15111 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
15112 Remove has_children.
15113 (build_type_psymtabs_1, process_skeletonless_type_unit)
15114 (load_partial_comp_unit, load_full_comp_unit): Update.
15115 (create_dwo_cu_reader): Remove has_children.
15116 (create_cus_hash_table, read_die_and_children): Update.
15117 (read_full_die_1,read_full_die): Remove has_children.
15118 (read_signatured_type): Update.
15119 (class cutu_reader) <has_children>: Remove.
15120
82ca8957
TT
151212020-02-08 Tom Tromey <tom@tromey.com>
15122
15123 * dwarf2/expr.c: Rename from dwarf2expr.c.
15124 * dwarf2/expr.h: Rename from dwarf2expr.h.
15125 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
15126 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
15127 * dwarf2/frame.c: Rename from dwarf2-frame.c.
15128 * dwarf2/frame.h: Rename from dwarf2-frame.h.
15129 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
15130 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
15131 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
15132 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
15133 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
15134 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
15135 * dwarf2/loc.c: Rename from dwarf2loc.c.
15136 * dwarf2/loc.h: Rename from dwarf2loc.h.
15137 * dwarf2/read.c: Rename from dwarf2read.c.
15138 * dwarf2/read.h: Rename from dwarf2read.h.
15139 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
15140 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
15141 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
15142 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
15143 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
15144 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
15145 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
15146 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
15147 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
15148 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
15149 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
15150 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
15151 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
15152 Update.
15153 * Makefile.in (COMMON_SFILES): Update.
15154 (HFILES_NO_SRCDIR): Update.
15155
9e35d499
TT
151562020-02-08 Tom Tromey <tom@tromey.com>
15157
15158 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
15159 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
15160
1eba2311
TT
151612020-02-08 Tom Tromey <tom@tromey.com>
15162
15163 * dwarf2read.h (struct die_info): Don't declare.
15164
e41c2da2
TT
151652020-02-08 Tom Tromey <tom@tromey.com>
15166
15167 * dwarf2read.h (die_info_ptr): Remove typedef.
15168
4fc6c0d5
TT
151692020-02-08 Tom Tromey <tom@tromey.com>
15170
15171 * dwarf2read.c (read_call_site_scope)
15172 (handle_data_member_location, dwarf2_add_member_fn)
15173 (mark_common_block_symbol_computed, read_common_block)
15174 (attr_to_dynamic_prop, partial_die_info::read)
15175 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
15176 (dwarf2_symbol_mark_computed, set_die_type): Update.
15177 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
15178 method.
15179 (attr_form_is_block): Don't declare.
15180 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
15181
cd6c91b4
TT
151822020-02-08 Tom Tromey <tom@tromey.com>
15183
15184 * dwarf2read.c (dwarf2_find_base_address, )
15185 (read_call_site_scope, rust_containing_type)
15186 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
15187 (handle_data_member_location, dwarf2_add_member_fn)
15188 (get_alignment, read_structure_type, process_structure_scope)
15189 (mark_common_block_symbol_computed, read_common_block)
15190 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
15191 (partial_die_info::read, read_attribute_value, new_symbol)
15192 (lookup_die_type, dwarf2_get_ref_die_offset)
15193 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
15194 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
15195 (dwarf2_symbol_mark_computed): Update.
15196 * dwarf2/attribute.h (struct attribute) <value_as_address,
15197 form_is_section_offset, form_is_constant, form_is_ref>: Declare
15198 methods.
15199 (value_as_address, attr_form_is_section_offset)
15200 (attr_form_is_constant, attr_form_is_ref): Don't declare.
15201 * dwarf2/attribute.c (attribute::value_as_address)
15202 (attribute::form_is_section_offset, attribute::form_is_constant)
15203 (attribute::form_is_ref): Now methods.
15204
162dce55
TT
152052020-02-08 Tom Tromey <tom@tromey.com>
15206
15207 * dwarf2read.c (struct attribute, DW_STRING)
15208 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
15209 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
15210 (attr_form_is_block, attr_form_is_section_offset)
15211 (attr_form_is_constant, attr_form_is_ref): Move.
15212 * dwarf2/attribute.h: New file.
15213 * dwarf2/attribute.c: New file, from dwarf2read.c.
15214 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
15215
3054dd54
TT
152162020-02-08 Tom Tromey <tom@tromey.com>
15217
15218 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
15219 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
15220 Move.
15221 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
15222 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
15223 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
15224 abbrev.c.
15225 * dwarf2/abbrev.h: New file.
15226 * dwarf2/abbrev.c: New file, from dwarf2read.c.
15227 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
15228
96b79293
TT
152292020-02-08 Tom Tromey <tom@tromey.com>
15230
15231 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
15232 (dwarf2_section_size, dwarf2_get_section_info)
15233 (create_signatured_type_table_from_debug_names)
15234 (create_addrmap_from_aranges, read_debug_names_from_section)
15235 (get_gdb_index_contents_from_section, read_comp_unit_head)
15236 (error_check_comp_unit_head, read_abbrev_offset)
15237 (create_debug_type_hash_table, init_cu_die_reader)
15238 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
15239 (read_comp_units_from_section, create_cus_hash_table)
15240 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
15241 (create_dwp_v2_section, dwarf2_rnglists_process)
15242 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
15243 (abbrev_table_read_table, read_indirect_string_at_offset_from)
15244 (read_indirect_string_from_dwz, read_addr_index_1)
15245 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
15246 (dwarf_decode_macro_bytes, dwarf_decode_macros)
15247 (fill_in_loclist_baton): Update.
15248 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
15249 get_containing_section, get_bfd_owner, get_bfd_section,
15250 get_file_name, get_id, get_flags, empty, read>: Declare methods.
15251 (dwarf2_read_section, get_section_name, get_section_file_name)
15252 (get_containing_section, get_section_bfd_owner)
15253 (get_section_bfd_section, get_section_name, get_section_file_name)
15254 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
15255 declare.
15256 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
15257 (dwarf2_section_info::get_bfd_owner)
15258 (dwarf2_section_info::get_bfd_section)
15259 (dwarf2_section_info::get_name)
15260 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
15261 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
15262 (dwarf2_section_info::read): Now methods.
15263 * dwarf-index-write.c (class debug_names): Update.
15264
2c86cff9
TT
152652020-02-08 Tom Tromey <tom@tromey.com>
15266
15267 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
15268 Move to dwarf2/section.h.
15269 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
15270 (get_section_bfd_section, get_section_name)
15271 (get_section_file_name, get_section_id, get_section_flags)
15272 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
15273 dwarf2/section.c.
15274 * dwarf2/section.h: New file.
15275 * dwarf2/section.c: New file, from dwarf2read.c.
15276 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
15277
f4382c45
TT
152782020-02-08 Tom Tromey <tom@tromey.com>
15279
15280 * dwarf2read.h (read_unsigned_leb128): Don't declare.
15281 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
15282 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
15283 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
15284 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
15285 * dwarf2/leb.h: New file, from dwarf2read.c.
15286 * dwarf2/leb.c: New file, from dwarf2read.c.
15287 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
15288 Remove.
15289 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
15290 (COMMON_SFILES): Add dwarf2/leb.c.
15291
01840b7a
JB
152922020-02-08 Joel Brobecker <brobecker@adacore.com>
15293
15294 GDB 9.1 released.
15295
dfcb27e4
IB
152962020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15297
15298 PR gdb/25190:
aac66a4c
SM
15299 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
15300 * gdb/remote.c (remote_console_output): Update.
15301 * gdb/ui-file.c (fputs_unfiltered): Rename to...
15302 (ui_file_puts): ...this.
15303 * gdb/ui-file.h (ui_file_puts): Add declaration.
15304 * gdb/utils.c (emit_style_escape): Update.
15305 (flush_wrap_buffer): Update.
15306 (fputs_maybe_filtered): Update.
15307 (fputs_unfiltered): Add function.
dfcb27e4 15308
faa17681
IB
153092020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15310
aac66a4c
SM
15311 * gdb/event-loop.c (gdb_wait_for_event): Update.
15312 * gdb/printcmd.c (printf_command): Update.
15313 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
15314 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
15315 (gdb_os_flush_stderr): Update.
15316 * gdb/remote.c (remote_console_output): Update.
15317 * gdb/ui-file.c (gdb_flush): Rename to...
15318 (ui_file_flush): ...this.
15319 (stderr_file::write): Update.
15320 (stderr_file::puts): Update.
15321 * gdb/ui-file.h (gdb_flush): Rename to...
15322 (ui_file_flush): ...this.
15323 * gdb/utils.c (gdb_flush): Add function.
15324 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 15325
5abbbe1d
TT
153262020-02-07 Tom Tromey <tromey@adacore.com>
15327
15328 PR breakpoints/24915:
15329 * source.c (find_and_open_source): Do not check basenames_may_differ.
15330
919adfe8
TT
153312020-02-07 Tom Tromey <tom@tromey.com>
15332
15333 * README: Update gdbserver documentation.
15334 * gdbserver: Move to top level.
15335 * configure.tgt (build_gdbserver): Remove.
15336 * configure.ac: Remove --enable-gdbserver.
15337 * configure: Rebuild.
15338 * Makefile.in (distclean): Don't mention gdbserver.
15339
1d5d29e7
SV
153402020-02-06 Shahab Vahedi <shahab@synopsys.com>
15341
15342 * source-cache.c (source_cache::ensure): Surround
15343 get_plain_source_lines with a try/catch.
15344 (source_cache::get_line_charpos): Get rid of try/catch
15345 and only check for the return value of "ensure".
15346 * tui/tui-source.c (tui_source_window::set_contents):
15347 Simplify "nlines" calculation.
15348
6eb1129c
SV
153492020-02-06 Shahab Vahedi <shahab@synopsys.com>
15350
15351 * MAINTAINERS (Write After Approval): Add myself.
15352
c6a42d11
CB
153532020-02-05 Christian Biesinger <cbiesinger@google.com>
15354
15355 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
15356 function call.
15357
c8ecdda6
CB
153582020-02-05 Christian Biesinger <cbiesinger@google.com>
15359
15360 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
15361
f6480e70
MR
153622020-02-05 Maciej W. Rozycki <macro@wdc.com>
15363
15364 * nat/riscv-linux-tdesc.h: New file.
15365 * nat/riscv-linux-tdesc.c: New file, taking code from...
15366 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
15367 ... here.
15368 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
15369 NATDEPFILES.
15370
dcc9fbc6
AB
153712020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
15372
15373 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
15374 we don't set the fake simulator ptid to the null_ptid.
15375
719546c4
SM
153762020-02-03 Simon Marchi <simon.marchi@efficios.com>
15377
15378 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
15379 * gdbthread.h (class thread_info) <resumed>: Likewise.
15380 * infrun.c (resume_1): Likewise.
15381 (proceed): Likewise.
15382 (infrun_thread_stop_requested): Likewise.
15383 (stop_all_threads): Likewise.
15384 (handle_inferior_event): Likewise.
15385 (restart_threads): Likewise.
15386 (finish_step_over): Likewise.
15387 (keep_going_stepped_thread): Likewise.
15388 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
15389 (linux_handle_extended_wait): Likewise.
15390 * record-btrace.c (get_thread_current_frame_id): Likewise.
15391 * record-full.c (record_full_wait_1): Likewise.
15392 * remote.c (remote_target::process_initial_stop_replies): Likewise.
15393 * target.c (target_resume): Likewise.
15394 * thread.c (set_running_thread): Likewise.
15395
e409c542
AKS
153962020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15397
15398 * f-valprint.c (f77_print_array_1): Changed datatype of index
15399 variable to LONGEST from int to enable it to contain bound
15400 values correctly.
15401
ee98c0da
MR
154022020-02-03 Maciej W. Rozycki <macro@wdc.com>
15403
15404 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
15405 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
15406 offsets according to FLEN determined.
15407 (riscv_linux_nat_target::read_description): Determine FLEN
15408 dynamically.
15409 (riscv_linux_nat_target::fetch_registers): Size regset buffer
15410 according to FLEN determined.
15411 (riscv_linux_nat_target::store_registers): Likewise.
15412
aa66aac4
SV
154132020-02-01 Shahab Vahedi <shahab@synopsys.com>
15414
15415 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
15416 when reg->group is empty and reggroup is not.
15417
fd9faca8
TT
154182020-01-31 Tom Tromey <tromey@adacore.com>
15419
15420 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
15421 Call beneath target's mourn_inferior after unpushing.
15422
42330a68
AB
154232020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15424
15425 PR tui/9765
15426 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
15427 have enough lines to fill the screen, still return the lowest
15428 address we found.
15429
7a27a45b
AB
154302020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15431
15432 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
15433 '-', '<', and '>' commands.
15434
c47f70e2
PA
154352020-01-29 Pedro Alves <palves@redhat.com>
15436 Sergio Durigan Junior <sergiodj@redhat.com>
15437
15438 * infcmd.c (construct_inferior_arguments): Assert that
15439 'argc' is greater than 0.
15440
5133a315
LM
154412020-01-29 Luis Machado <luis.machado@linaro.org>
15442
15443 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
15444 (BRK_INSN_MASK): Define to 0xd4200000.
15445 (aarch64_program_breakpoint_here_p): New function.
15446 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
15447 * arch-utils.c (default_program_breakpoint_here_p): Moved from
15448 breakpoint.c.
15449 * arch-utils.h (default_program_breakpoint_here_p): Moved from
15450 breakpoint.h
15451 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
15452 call gdbarch_program_breakpoint_here_p.
15453 (program_breakpoint_here): Moved to arch-utils.c, renamed to
15454 default_program_breakpoint_here_p, changed return type to bool and
15455 simplified.
15456 * breakpoint.h (program_breakpoint_here): Moved prototype to
15457 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
15458 return type to bool.
15459 * gdbarch.c: Regenerate.
15460 * gdbarch.h: Regenerate.
15461 * gdbarch.sh (program_breakpoint_here_p): New method.
15462 * infrun.c (handle_signal_stop): Call
15463 gdbarch_program_breakpoint_here_p.
15464
168f8c6b
TT
154652020-01-26 Tom Tromey <tom@tromey.com>
15466
15467 * ctfread.c (struct ctf_fp_info): Reindent.
15468 (_initialize_ctfread): Remove.
15469
128a391f
TT
154702020-01-26 Tom Tromey <tom@tromey.com>
15471
15472 * psymtab.c (partial_map_expand_apply)
15473 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
15474 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
15475 (psym_print_stats, psym_expand_symtabs_for_function)
15476 (psym_map_symbol_filenames, psym_map_matching_symbols)
15477 (psym_expand_symtabs_matching)
15478 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
15479 (maintenance_check_psymtabs): Use new methods.
15480 * psympriv.h (struct partial_symtab) <readin_p,
15481 get_compunit_symtab>: New methods.
15482 <readin, compunit_symtab>: Remove members.
15483 (struct standard_psymtab): New.
15484 (struct legacy_psymtab): Derive from standard_psymtab.
15485 * dwarf2read.h (struct dwarf2_psymtab): Derive from
15486 standard_psymtab.
15487 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
15488
0494dbec
TT
154892020-01-26 Tom Tromey <tom@tromey.com>
15490
15491 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
15492 read_dependencies. Add assert.
15493 * psymtab.c (partial_symtab::read_dependencies): New method.
15494 * psympriv.h (struct partial_symtab) <read_dependencies>: New
15495 method.
15496 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
15497 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
15498 read_dependencies.
15499 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
15500 Add assert.
15501
8566b89b
TT
155022020-01-26 Tom Tromey <tom@tromey.com>
15503
15504 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
15505 Call expand_psymtab.
15506 (xcoff_read_symtab): Call expand_psymtab.
15507 (xcoff_start_psymtab, xcoff_end_psymtab): Set
15508 legacy_expand_psymtab.
15509 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
15510 method.
15511 (struct legacy_psymtab) <expand_psymtab>: Implement.
15512 <legacy_expand_psymtab>: New member.
15513 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
15514 (parse_partial_symbols): Set legacy_expand_psymtab.
15515 (psymtab_to_symtab_1): Change argument order. Call
15516 expand_psymtab.
15517 (new_psymtab): Set legacy_expand_psymtab.
15518 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
15519 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
15520 expand_psymtab.
15521 (dwarf2_psymtab::expand_psymtab): Rename from
15522 psymtab_to_symtab_1. Call expand_psymtab.
15523 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
15524 (dbx_end_psymtab): Likewise.
15525 (dbx_psymtab_to_symtab_1): Change argument order. Call
15526 expand_psymtab.
15527 (dbx_read_symtab): Call expand_psymtab.
15528 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
15529 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
15530 (ctf_psymtab::read_symtab): Call expand_psymtab.
15531
077cbab2
TT
155322020-01-26 Tom Tromey <tom@tromey.com>
15533
15534 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
15535 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
15536 messages.
15537 * mdebugread.c (mdebug_read_symtab): Remove prints.
15538 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
15539 assert.
15540 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
15541
891813be
TT
155422020-01-26 Tom Tromey <tom@tromey.com>
15543
15544 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
15545 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
15546 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
15547 legacy_symtab.
15548 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
15549 * psymtab.c (psymtab_to_symtab): Call method.
15550 (dump_psymtab): Update.
15551 * psympriv.h (struct partial_symtab): Add virtual destructor.
15552 <read_symtab>: New method.
15553 (struct legacy_symtab): New.
15554 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
15555 (struct pst_map) <pst>: Now a legacy_psymtab.
15556 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
15557 (new_psymtab): Use legacy_psymtab.
15558 * dwarf2read.h (struct dwarf2_psymtab): New.
15559 (struct dwarf2_per_cu_data) <psymtab>: Use it.
15560 * dwarf2read.c (dwarf2_create_include_psymtab)
15561 (dwarf2_build_include_psymtabs, create_type_unit_group)
15562 (create_partial_symtab, process_psymtab_comp_unit_reader)
15563 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
15564 (set_partial_user): Use dwarf2_psymtab.
15565 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
15566 (psymtab_to_symtab_1, process_full_comp_unit)
15567 (process_full_type_unit, dwarf2_ranges_read)
15568 (dwarf2_get_pc_bounds, psymtab_include_file_name)
15569 (dwarf_decode_lines): Use dwarf2_psymtab.
15570 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
15571 (add_address_entry_worker, write_one_signatured_type)
15572 (recursively_count_psymbols, recursively_write_psymbols)
15573 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
15574 (write_debug_names): Likewise.
15575 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
15576 <pst>: Now a legacy_psymtab.
15577 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
15578 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
15579 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
15580 * ctfread.c (struct ctf_psymtab): New.
15581 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
15582 ctf_psymtab.
15583 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
15584 (create_partial_symtab): Return a ctf_psymtab.
15585 (scan_partial_symbols): Update.
15586
c3693a1d
TT
155872020-01-26 Tom Tromey <tom@tromey.com>
15588
15589 * xcoffread.c (xcoff_start_psymtab): Use new.
15590 * psymtab.c (partial_symtab::partial_symtab): New constructor,
15591 renamed from start_psymtab_common.
15592 * psympriv.h (struct partial_symtab): Add new constructor.
15593 (start_psymtab_common): Don't declare.
15594 * mdebugread.c (parse_partial_symbols): Use new.
15595 * dwarf2read.c (create_partial_symtab): Use new.
15596 * dbxread.c (start_psymtab): Use new.
15597 * ctfread.c (create_partial_symtab): Use new.
15598
32caafd0
TT
155992020-01-26 Tom Tromey <tom@tromey.com>
15600
15601 * xcoffread.c (xcoff_end_psymtab): Use new.
15602 * psymtab.c (start_psymtab_common): Use new.
15603 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
15604 Update.
15605 * psympriv.h (struct partial_symtab): Add parameters to
15606 constructor. Don't inline.
15607 (allocate_psymtab): Don't declare.
15608 * mdebugread.c (new_psymtab): Use new.
15609 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
15610 * dbxread.c (dbx_end_psymtab): Use new.
15611
abaa2f23
TT
156122020-01-26 Tom Tromey <tom@tromey.com>
15613
15614 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
15615 allocate_psymtab. Update documentation.
15616 * psymtab.c (psymtab_storage::install_psymtab): Rename from
15617 allocate_psymtab. Do not use new.
15618 (allocate_psymtab): Use new. Update.
15619
6d94535f
TT
156202020-01-26 Tom Tromey <tom@tromey.com>
15621
15622 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
15623 * psymtab.c (psym_print_stats): Update.
15624 * psympriv.h (struct partial_symtab) <readin,
15625 psymtabs_addrmap_supported, anonymous>: Now bool.
15626 * mdebugread.c (psymtab_to_symtab_1): Update.
15627 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
15628 (build_type_psymtabs_reader, psymtab_to_symtab_1)
15629 (process_full_comp_unit, process_full_type_unit): Update.
15630 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
15631 * ctfread.c (psymtab_to_symtab): Update.
15632
6f17252b
TT
156332020-01-26 Tom Tromey <tom@tromey.com>
15634
15635 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
15636 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
15637 * psymtab.c (psymtab_storage): Delete psymtabs.
15638 (psymtab_storage::allocate_psymtab): Use new.
15639 (psymtab_storage::discard_psymtab): Use delete.
15640 * psympriv.h (struct partial_symtab): Add constructor and
15641 initializers.
15642
f6f1cebc
TT
156432020-01-26 Tom Tromey <tom@tromey.com>
15644
15645 * machoread.c: Do not include psympriv.h.
15646
e47e48f6
PW
156472020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15648
15649 * NEWS: Mention the new option and the set/show commands.
15650
a2fedca9
PW
156512020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15652
15653 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
15654 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
15655 (validate_exec_file): New variables, enums, functions.
15656 (exec_file_locate_attach, print_section_info): Style the filenames.
15657 (_initialize_exec): Install show_exec_file_mismatch_command and
15658 set_exec_file_mismatch_command.
15659 * gdbcore.h (validate_exec_file): Declare.
15660 * infcmd.c (attach_command): Call validate_exec_file.
15661 * remote.c ( remote_target::remote_add_inferior): Likewise.
15662
7ffa82e1
AB
156632020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15664
15665 * frame.c (find_frame_sal): Move call to get_next_frame into more
15666 inner scope.
15667 * inline-frame.c (inilne_state) <inline_state>: Update argument
15668 types.
15669 (inilne_state) <skipped_symbol>: Rename to...
15670 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
15671 (skip_inline_frames): Build vector of skipped symbols and use this
15672 to reate the inline_state.
15673 (inline_skipped_symbol): Add a comment and some assertions, fetch
15674 skipped symbol from the list.
15675
3d92a3e3
AB
156762020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15677
15678 * buildsym.c (lte_is_less_than): Delete.
15679 (buildsym_compunit::end_symtab_with_blockvector): Create local
15680 lambda function to sort line table entries, and use
15681 std::stable_sort instead of std::sort.
15682 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
15683 markers when looking for a previous line.
15684
94a72be7
AB
156852020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15686
15687 * dwarf2read.c (lnp_state_machine::record_line): Include
15688 end_sequence parameter in debug print out. Record the line if we
15689 are at an end_sequence marker even if it's not the start of a
15690 statement.
15691 * symmisc.c (maintenance_print_one_line_table): Print end of
15692 sequence markers with 'END' not '0'.
15693
53af73bf
PA
156942020-01-24 Pedro Alves <palves@redhat.com>
15695
15696 PR gdb/25410
15697 * thread.c (scoped_restore_current_thread::restore): Use
15698 switch_to_inferior_no_thread.
15699 * exec.c: Include "progspace-and-thread.h".
15700 (add_target_sections, remove_target_sections):
15701 scoped_restore_current_pspace_and_thread instead of
15702 scoped_restore_current_thread.
15703 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
15704 and aspace to the inferior before calling clone_program_space.
15705 Remove stale comment.
15706
3050c6f4
CB
157072020-01-24 Christian Biesinger <cbiesinger@google.com>
15708
15709 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
15710 (arm_netbsd_nat_target::fetch_registers): ...this.
15711 (arm_nbsd_nat_target::store_registers): Rename to...
15712 (arm_netbsd_nat_target::store_registers): ...this.
15713
73685c7e
CB
157142020-01-24 Christian Biesinger <cbiesinger@google.com>
15715
15716 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
15717 register_t.
15718
89203d40
CB
157192020-01-24 Christian Biesinger <cbiesinger@google.com>
15720
15721 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
15722 Update comment.
15723 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
15724 Likewise.
15725 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
15726 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
15727 the correct replacement (iterate_over_regset_sections).
15728 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
15729 Update comment.
15730
1ba1ac88
AB
157312020-01-24 Graham Markall <graham.markall@embecosm.com>
15732
15733 PR gdb/23718
15734 * gdb/python/python.c (execute_gdb_command): Call
15735 async_enable_stdin in catch block.
15736
f3364a6d
AB
157372020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15738
15739 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
15740 SWITCH_THRU_ALL_UIS.
15741
733d0a67
AB
157422020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15743
15744 PR tui/9765
15745 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
15746 comment, add extra parameter, and update to store previous symbol
15747 when appropriate.
15748 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
15749 add extra parameter.
15750 * tui/tui-disasm.c (tui_disassemble): Update header comment,
15751 remove unneeded parameter, add try/catch around gdb_print_insn,
15752 rewrite to add items to asm_lines vector.
15753 (tui_find_backward_disassembly_start_address): New function.
15754 (tui_find_disassembly_address): Updated throughout.
15755 (tui_disasm_window::set_contents): Update for changes to
15756 tui_disassemble.
15757 (tui_disasm_window::do_scroll_vertical): No need to adjust the
15758 number of lines to scroll.
15759
b3b3bada
SM
157602020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
15761
15762 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
15763 (SECT_OFF_DATA): Likewise.
15764 (SECT_OFF_RODATA): Likewise.
15765 (SECT_OFF_TEXT): Likewise.
15766 (SECT_OFF_BSS): Likewise.
15767 (struct objfile) <text_section_offset, data_section_offset>: New
15768 methods.
15769 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
15770 objfile::text_section_offset.
15771 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
15772 * coffread.c (coff_symtab_read): Likewise.
15773 (enter_linenos): Likewise.
15774 (process_coff_symbol): Likewise.
15775 * ctfread.c (get_objfile_text_range): Likewise.
15776 * dtrace-probe.c (dtrace_probe::get_relocated_address):
15777 Use objfile::data_section_offset.
15778 * dwarf2-frame.c (execute_cfa_program): Use
15779 objfile::text_section_offset.
15780 (dwarf2_frame_find_fde): Likewise.
15781 * dwarf2read.c (create_addrmap_from_index): Likewise.
15782 (create_addrmap_from_aranges): Likewise.
15783 (dw2_find_pc_sect_compunit_symtab): Likewise.
15784 (process_psymtab_comp_unit_reader): Likewise.
15785 (add_partial_symbol): Likewise.
15786 (add_partial_subprogram): Likewise.
15787 (process_full_comp_unit): Likewise.
15788 (read_file_scope): Likewise.
15789 (read_func_scope): Likewise.
15790 (read_lexical_block_scope): Likewise.
15791 (read_call_site_scope): Likewise.
15792 (dwarf2_rnglists_process): Likewise.
15793 (dwarf2_ranges_process): Likewise.
15794 (dwarf2_ranges_read): Likewise.
15795 (dwarf_decode_lines_1): Likewise.
15796 (new_symbol): Likewise.
15797 (dwarf2_fetch_die_loc_sect_off): Likewise.
15798 (dwarf2_per_cu_text_offset): Likewise.
15799 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
15800 * hppa-tdep.c (read_unwind_info): Likewise.
15801 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
15802 * psympriv.h (struct partial_symtab): Likewise.
15803 * psymtab.c (find_pc_sect_psymtab): Likewise.
15804 * solib-svr4.c (enable_break): Likewise.
15805 * stap-probe.c (relocate_address): Use
15806 objfile::data_section_offset.
15807 * xcoffread.c (enter_line_range): Use
15808 objfile::text_section_offset.
15809 (read_xcoff_symtab): Likewise.
15810
ab53f382
SM
158112020-01-23 Simon Marchi <simon.marchi@efficios.com>
15812
15813 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
15814 declaration to narrower scopes.
15815
e7eee665
SM
158162020-01-23 Simon Marchi <simon.marchi@efficios.com>
15817
15818 * darwin-nat.h (struct darwin_exception_msg, enum
15819 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
15820 Move up.
15821 (class darwin_nat_target) <wait_1, check_new_threads,
15822 decode_exception_message, decode_message, stop_inferior,
15823 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
15824 * darwin-nat.c (darwin_check_new_threads): Rename to...
15825 (darwin_nat_target::check_new_threads): ... this.
15826 (darwin_suspend_inferior_it): Remove.
15827 (darwin_decode_exception_message): Rename to...
15828 (darwin_nat_target::decode_exception_message): ... this.
15829 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
15830 (darwin_decode_message): Rename to...
15831 (darwin_nat_target::decode_message): ... this.
15832 (cancel_breakpoint): Rename to...
15833 (darwin_nat_target::cancel_breakpoint): ... this.
15834 (darwin_wait): Rename to...
15835 (darwin_nat_target::wait_1): ... this. Use range-based for loop
15836 instead of iterate_over_inferiors.
15837 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
15838 (darwin_stop_inferior): Rename to...
15839 (darwin_nat_target::stop_inferior): ... this.
15840 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
15841 (darwin_init_thread_list): Rename to...
15842 (darwin_nat_target::init_thread_list): ... this.
15843 (darwin_ptrace_him): Rename to...
15844 (darwin_nat_target::ptrace_him): ... this.
15845 (darwin_nat_target::create_inferior): Pass lambda function to
15846 fork_inferior.
15847 (darwin_nat_target::detach): Call stop_inferior instead of
15848 darwin_stop_inferior.
15849 * fork-inferior.h (fork_inferior): Change init_trace_fun
15850 parameter to gdb::function_view.
15851 * fork-inferior.c (fork_inferior): Likewise.
15852
c162ed3e
HD
158532020-01-23 Hannes Domani <ssbssa@yahoo.de>
15854
15855 * i386-cygwin-tdep.c (core_process_module_section): Update.
15856 * windows-nat.c (struct lm_info_windows): Add text_offset.
15857 (windows_xfer_shared_libraries): Update.
15858 * windows-tdep.c (windows_xfer_shared_library):
15859 Add text_offset_cached argument.
15860 * windows-tdep.h (windows_xfer_shared_library): Update.
15861
a1237872
SM
158622020-01-21 Simon Marchi <simon.marchi@efficios.com>
15863
15864 * gdbarch.sh: Add declaration for _initialize_gdbarch.
15865
b3ee6dd9
SM
158662020-01-21 Simon Marchi <simon.marchi@efficios.com>
15867
15868 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
15869 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
15870 replace with range-based for.
15871 (gdbsim_interrupt_inferior): Remove.
15872 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
15873 with a range-based for. Inline code from
15874 gdbsim_interrupt_inferior.
15875
f9fac3c8
SM
158762020-01-21 Simon Marchi <simon.marchi@efficios.com>
15877
15878 * infrun.c (proceed): Fix indentation.
15879
f6474de9
TT
158802020-01-21 Tom Tromey <tromey@adacore.com>
15881
15882 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
15883 * python/python.c (python_extension_ops): Update.
15884 (gdbpy_colorize): New function.
15885 * python/lib/gdb/__init__.py (colorize): New function.
15886 * extension.h (ext_lang_colorize): Declare.
15887 * extension.c (ext_lang_colorize): New function.
15888 * extension-priv.h (struct extension_language_ops) <colorize>: New
15889 member.
15890 * cli/cli-style.c (_initialize_cli_style): Update help text.
15891
f0c702d4
LM
158922020-01-21 Luis Machado <luis.machado@linaro.org>
15893
15894 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
15895 <cond>: Change type to bool.
15896 (aarch64_displaced_step_b_cond): Update cond to use bool type.
15897 (aarch64_displaced_step_cb): Likewise.
15898 (aarch64_displaced_step_tb): Likewise.
15899
1ab139e5
LM
159002020-01-21 Luis Machado <luis.machado@linaro.org>
15901
15902 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
15903 output.
15904
0c271889
LM
159052020-01-21 Luis Machado <luis.machado@linaro.org>
15906
15907 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
15908 <pc_adjust>: Adjust the documentation.
15909 (aarch64_displaced_step_fixup): Check if PC really moved before
15910 adjusting it.
15911
4d89c1c7
TT
159122020-01-19 Tom Tromey <tom@tromey.com>
15913
15914 * disasm.c (~gdb_disassembler): New destructor.
15915 (gdb_buffered_insn_length): Call disassemble_free_target.
15916 * disasm.h (class gdb_disassembler): Declare destructor. Use
15917 DISABLE_COPY_AND_ASSIGN.
15918
c0ab21c2
TT
159192020-01-19 Tom Tromey <tom@tromey.com>
15920
15921 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
15922 (die_reader_func_ftype): Remove.
15923 (cutu_reader): New class.
15924 (dw2_get_file_names_reader): Remove "data" parameter.
15925 (dw2_get_file_names): Use cutu_reader.
15926 (create_debug_type_hash_table): Update.
15927 (read_cutu_die_from_dwo): Update comment.
15928 (lookup_dwo_unit): Add dwo_name parameter.
15929 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
15930 die_reader_func_ftype and data parameters.
15931 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
15932 Remove die_reader_func_ftype and data parameters.
15933 (~cutu_reader): New; from init_cutu_and_read_dies.
15934 (cutu_reader::cutu_reader): Rename from
15935 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
15936 and data parameters.
15937 (init_cutu_and_read_dies_simple): Remove.
15938 (struct process_psymtab_comp_unit_data): Remove.
15939 (process_psymtab_comp_unit_reader): Remove data parameter; add
15940 want_partial_unit and pretend_language parameters.
15941 (process_psymtab_comp_unit): Use cutu_reader.
15942 (build_type_psymtabs_reader): Remove data parameter.
15943 (build_type_psymtabs_1): Use cutu_reader.
15944 (process_skeletonless_type_unit): Likewise.
15945 (load_partial_comp_unit_reader): Remove.
15946 (load_partial_comp_unit): Use cutu_reader.
15947 (load_full_comp_unit_reader): Remove.
15948 (load_full_comp_unit): Use cutu_reader.
15949 (struct create_dwo_cu_data): Remove.
15950 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
15951 dwo_unit parameters.
15952 (create_cus_hash_table): Use cutu_reader.
15953 (struct dwarf2_read_addr_index_data): Remove.
15954 (dwarf2_read_addr_index_reader): Remove.
15955 (dwarf2_read_addr_index): Use cutu_reader.
15956 (read_signatured_type_reader): Remove.
15957 (read_signatured_type): Use cutu_reader.
15958
45bbae5c
TT
159592020-01-19 Tom Tromey <tom@tromey.com>
15960
15961 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
15962 * tui/tui-wingeneral.h (class tui_suppress_output): New.
15963 (tui_wrefresh): Declare.
15964 * tui/tui-wingeneral.c (suppress_output): New global.
15965 (tui_suppress_output, ~tui_suppress_output): New constructor and
15966 destructor.
15967 (tui_wrefresh): New function.
15968 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
15969 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
15970 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
15971 method.
15972 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
15973 tui_wrefresh.
15974 (tui_data_window::no_refresh): New method.
15975 (tui_data_item_window::refresh_window): Call tui_wrefresh.
15976 (tui_reg_command): Use tui_suppress_output
15977 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
15978 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
15979 method.
15980 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
15981
4f13c1c0
TT
159822020-01-19 Tom Tromey <tom@tromey.com>
15983
15984 * tui/tui-winsource.c (tui_update_source_windows_with_line):
15985 Handle case where symtab is null.
15986
fa47e446
SM
159872020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
15988
15989 * linux-fork.c (one_fork_p): Simplify.
15990
26f42329
SM
159912020-01-17 Simon Marchi <simon.marchi@efficios.com>
15992
15993 * top.c (struct qt_args): Remove.
15994 (kill_or_detach): Change return type to void, replace `void *`
15995 parameter with a proper one.
15996 (print_inferior_quit_action): Likewise.
15997 (quit_confirm): Use range-based for loop to iterate over inferiors.
15998 (quit_force): Likewise.
15999
a9ac81b1
SM
160002020-01-17 Simon Marchi <simon.marchi@efficios.com>
16001
16002 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
16003 `void *` parameter with proper parameters.
16004 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
16005 (print_one_inferior): Change return type to void, replace `void *`
16006 parameter with proper parameters.
16007 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
16008 inferiors.
16009 (get_other_inferior): Remove.
16010 (mi_cmd_remove_inferior): Use range-based loop to iterate over
16011 inferiors.
16012
788eca49
SM
160132020-01-17 Simon Marchi <simon.marchi@efficios.com>
16014
16015 * mi/mi-interp.c (report_initial_inferior): Remove.
16016 (mi_interp::init): Use range-based for to iterate over inferiors.
16017
d9bc85b6
SM
160182020-01-17 Simon Marchi <simon.marchi@efficios.com>
16019
16020 * python/py-inferior.c (build_inferior_list): Remove.
16021 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
16022
40c94099
CB
160232020-01-16 Christian Biesinger <cbiesinger@google.com>
16024
16025 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
16026 (btrace_stitch_trace): Likewise.
16027 * charset.c (intermediate_encoding): Likewise (vaild).
16028 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
16029 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
16030 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
16031
e0cdfe3c
HD
160322020-01-16 Hannes Domani <ssbssa@yahoo.de>
16033
16034 * windows-tdep.c (windows_get_tlb_type):
16035 Add rtl_user_process_parameters type.
16036
790f1718 160372020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 16038 Norbert Lange <nolange79@gmail.com>
790f1718
PA
16039
16040 PR build/24805
16041 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
16042 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
16043 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
16044 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
16045 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
16046 (ps_plog): Redeclare exported functions with default visibility.
16047
3112ed97
NA
160482020-01-16 Nitika Achra <Nitika.Achra@amd.com>
16049
16050 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
16051 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
16052
8dc3273e
SM
160532020-01-15 Simon Marchi <simon.marchi@efficios.com>
16054
16055 * infcmd.c (post_create_inferior): Use get_thread_regcache
16056 instead of get_current_regcache.
16057
ff47f4f0
TT
160582020-01-14 Tom Tromey <tom@tromey.com>
16059
16060 PR symtab/12535:
16061 * python/python.c (gdbpy_decode_line): Treat empty string the same
16062 as no argument.
16063
975f45b7
TT
160642020-01-14 Tom Tromey <tom@tromey.com>
16065
16066 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
16067
25e57356
TT
160682020-01-14 Tom Tromey <tom@tromey.com>
16069
16070 * nat/linux-btrace.c: Don't include <config.h>.
16071 * nat/linux-ptrace.c: Don't include <config.h>.
16072 * nat/x86-linux-dregs.c: Don't include <config.h>.
16073
05ea2a05
TT
160742020-01-14 Tom Tromey <tom@tromey.com>
16075
16076 * configure: Rebuild.
16077 * configure.ac: Move many checks to ../gdbsupport/common.m4.
16078
01027315
TT
160792020-01-14 Tom Tromey <tom@tromey.com>
16080
16081 * nat/x86-linux-dregs.c: Include configh.h.
16082 * nat/linux-ptrace.c: Include configh.h.
16083 * nat/linux-btrace.c: Include configh.h.
16084 * defs.h: Include config.h, bfd.h.
16085 * configure.ac: Don't source common.host.
16086 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
16087 * configure: Rebuild.
16088 * acinclude.m4: Update path.
16089 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
16090 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
16091 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
16092 (CLIBS): Add LIBSUPPORT.
16093 (CDEPS): Likewise.
16094 (COMMON_SFILES): Remove gdbsupport files.
16095 (HFILES_NO_SRCDIR): Likewise.
16096 (stamp-version): Update path to create-version.sh.
16097 (ALLDEPFILES): Remove gdbsupport files.
16098
b2ceabe8
TT
160992020-01-14 Tom Tromey <tom@tromey.com>
16100
16101 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
16102 USE_WIN32API when needed.
16103 * configure.ac (USE_WIN32API): Don't define.
16104 (WIN32LIBS): Use WIN32APILIBS.
16105 * configure: Rebuild.
16106
25c51f71
TT
161072020-01-14 Tom Tromey <tom@tromey.com>
16108
16109 * configure: Rebuild.
16110 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
16111
717c684d
BE
161122020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
16113
16114 * skip.c (skip_function_command): Make skip w/o arguments use the
16115 name of the inlined function if pc is inside any inlined function.
16116
7da6a5b9
LM
161172020-01-14 Luis Machado <luis.machado@linaro.org>
16118
16119 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
16120 * infrun.c (resume_1): Likewise.
16121 (handle_inferior_event): Remove stale comment.
16122 * linux-nat.c (linux_nat_target::resume): Update comments.
16123 (save_stop_reason): Likewise.
16124 (linux_nat_filter_event): Likewise.
16125 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
16126
44e4c775
AB
161272020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16128
16129 * elfread.c (record_minimal_symbol): Set section index to 0 for
16130 non-allocatable sections.
16131
18a8505e
AT
16132
161332020-01-13 Ali Tamur <tamur@google.com>
16134
16135 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
16136 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
16137 to gdb::optional. Update comments.
16138 (dwo_file): Update comments.
16139 (read_attribute): Update API to take an additional out parameter,
16140 need_reprocess. This is used to mark attributes that need other
16141 attributes (e.g. str_offsets_base) for correct computation which may not
16142 have been read yet.
16143 (read_attribute_reprocess): New function declaration.
16144 (read_addr_index): Likewise.
16145 (read_dwo_str_index): Likewise.
16146 (read_stub_str_index): Likewise.
16147 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
16148 (lookup_addr_base): New function definition.
16149 (lookup_ranges_base): Likewise.
16150 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
16151 lookup_ranges_base.
16152 (init_cutu_and_read_dies): Update comments.
16153 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
16154 unit. This is used to inherit parent's str_offsets_base and addr_base.
16155 Update comments.
16156 (init_cutu_and_read_dies_simple): Reflect API changes.
16157 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
16158 (create_cus_hash_table): Change API to take parent compile unit.
16159 Reflect API changes.
16160 (open_and_init_dwo_file): Reflect API changes.
16161 (dwarf2_get_pc_bounds): Update comments.
16162 (dwarf2_record_block_ranges): Likewise.
16163 (read_full_die_1): Change implementation to reprocess attributes that
16164 need str_offsets_base and addr_base.
16165 (partial_die_info::read): Likewise.
16166 (read_attribute_reprocess): New function definition.
16167 (read_attribute_value): Change API to take an additional out parameter,
16168 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
16169 when a non-dwo compile unit has index based attributes.
16170 (read_attribute): Reflect API changes.
16171 (read_addr_index_1): Reflect API changes. Update comments.
16172 (dwarf2_read_addr_index_data): Reflect API changes.
16173 (dwarf2_read_addr_index): Likewise.
16174 (read_str_index): Change API and implementation. This becomes a helper
16175 to be used by the new string index related methods. Update error
16176 message and comments.
16177 (read_dwo_str_index): New function definition.
16178 (read_stub_str_index): Likewise.
16179 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
16180 * symfile.h (dwarf2_debug_sections): Likewise.
16181 * xcoffread.c (dwarf2_debug_sections): Likewise.
16182
0cac9354
SM
161832020-01-13 Simon Marchi <simon.marchi@efficios.com>
16184
16185 * gdbcore.h (struct core_fns) <core_read_registers>: Change
16186 core_reg_sect type to gdb_byte *.
16187 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
16188 * cris-tdep.c (fetch_core_registers): Likewise.
16189 * corelow.c (core_target::get_core_register_section): Change
16190 type of `contents` to gdb::byte_vector.
16191
9a6d629c
AB
161922020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16193
16194 * tui/tui-wingeneral.c (box_win): Position the title in the center
16195 of the border.
16196
d8b2f9e3
SM
161972020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16198
16199 * corelow.c (core_target::get_core_register_section): Use
16200 std::vector instead of alloca.
16201
bb564c58
SM
162022020-01-13 Simon Marchi <simon.marchi@efficios.com>
16203
16204 * warning.m4: Add -Wmissing-declarations to build_warnings.
16205 * configure: Re-generate.
16206
6b366111
SM
162072020-01-13 Simon Marchi <simon.marchi@efficios.com>
16208
16209 * python/python.c (init__gdb_module): Add declaration.
16210
6c265988
SM
162112020-01-13 Simon Marchi <simon.marchi@efficios.com>
16212
16213 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
16214 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
16215 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
16216 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
16217 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
16218 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
16219 * ada-exp.y (_initialize_ada_exp): Add declaration.
16220 * ada-lang.c (_initialize_ada_language): Add declaration.
16221 * ada-tasks.c (_initialize_tasks): Add declaration.
16222 * agent.c (_initialize_agent): Add declaration.
16223 * aix-thread.c (_initialize_aix_thread): Add declaration.
16224 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
16225 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
16226 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
16227 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
16228 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
16229 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
16230 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
16231 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
16232 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
16233 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
16234 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
16235 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
16236 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
16237 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
16238 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
16239 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
16240 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
16241 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
16242 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
16243 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
16244 * annotate.c (_initialize_annotate): Add declaration.
16245 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
16246 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
16247 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
16248 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
16249 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
16250 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
16251 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
16252 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
16253 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
16254 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
16255 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
16256 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
16257 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
16258 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
16259 * auto-load.c (_initialize_auto_load): Add declaration.
16260 * auxv.c (_initialize_auxv): Add declaration.
16261 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
16262 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
16263 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
16264 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
16265 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
16266 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
16267 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
16268 * breakpoint.c (_initialize_breakpoint): Add declaration.
16269 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
16270 * btrace.c (_initialize_btrace): Add declaration.
16271 * charset.c (_initialize_charset): Add declaration.
16272 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
16273 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
16274 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
16275 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
16276 * cli/cli-script.c (_initialize_cli_script): Add declaration.
16277 * cli/cli-style.c (_initialize_cli_style): Add declaration.
16278 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
16279 * coffread.c (_initialize_coffread): Add declaration.
16280 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
16281 * compile/compile.c (_initialize_compile): Add declaration.
16282 * complaints.c (_initialize_complaints): Add declaration.
16283 * completer.c (_initialize_completer): Add declaration.
16284 * copying.c (_initialize_copying): Add declaration.
16285 * corefile.c (_initialize_core): Add declaration.
16286 * corelow.c (_initialize_corelow): Add declaration.
16287 * cp-abi.c (_initialize_cp_abi): Add declaration.
16288 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
16289 * cp-support.c (_initialize_cp_support): Add declaration.
16290 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
16291 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
16292 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
16293 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
16294 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
16295 * ctfread.c (_initialize_ctfread): Add declaration.
16296 * d-lang.c (_initialize_d_language): Add declaration.
16297 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
16298 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
16299 * dbxread.c (_initialize_dbxread): Add declaration.
16300 * dcache.c (_initialize_dcache): Add declaration.
16301 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
16302 * disasm.c (_initialize_disasm): Add declaration.
16303 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
16304 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
16305 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
16306 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
16307 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
16308 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
16309 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
16310 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
16311 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
16312 * elfread.c (_initialize_elfread): Add declaration.
16313 * exec.c (_initialize_exec): Add declaration.
16314 * extension.c (_initialize_extension): Add declaration.
16315 * f-lang.c (_initialize_f_language): Add declaration.
16316 * f-valprint.c (_initialize_f_valprint): Add declaration.
16317 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
16318 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
16319 * filesystem.c (_initialize_filesystem): Add declaration.
16320 * findcmd.c (_initialize_mem_search): Add declaration.
16321 * findvar.c (_initialize_findvar): Add declaration.
16322 * fork-child.c (_initialize_fork_child): Add declaration.
16323 * frame-base.c (_initialize_frame_base): Add declaration.
16324 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
16325 * frame.c (_initialize_frame): Add declaration.
16326 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
16327 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
16328 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
16329 * gcore.c (_initialize_gcore): Add declaration.
16330 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
16331 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
16332 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
16333 * gdbarch.c (_initialize_gdbarch): Add declaration.
16334 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
16335 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
16336 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
16337 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
16338 * go-lang.c (_initialize_go_language): Add declaration.
16339 * go32-nat.c (_initialize_go32_nat): Add declaration.
16340 * guile/guile.c (_initialize_guile): Add declaration.
16341 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
16342 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
16343 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
16344 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
16345 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
16346 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
16347 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
16348 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
16349 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
16350 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
16351 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
16352 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
16353 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
16354 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
16355 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
16356 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
16357 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
16358 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
16359 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
16360 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
16361 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
16362 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
16363 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
16364 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
16365 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
16366 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
16367 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
16368 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
16369 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
16370 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
16371 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
16372 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
16373 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
16374 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
16375 * infcall.c (_initialize_infcall): Add declaration.
16376 * infcmd.c (_initialize_infcmd): Add declaration.
16377 * inflow.c (_initialize_inflow): Add declaration.
16378 * infrun.c (_initialize_infrun): Add declaration.
16379 * interps.c (_initialize_interpreter): Add declaration.
16380 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
16381 * jit.c (_initialize_jit): Add declaration.
16382 * language.c (_initialize_language): Add declaration.
16383 * linux-fork.c (_initialize_linux_fork): Add declaration.
16384 * linux-nat.c (_initialize_linux_nat): Add declaration.
16385 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
16386 * linux-thread-db.c (_initialize_thread_db): Add declaration.
16387 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
16388 * m2-lang.c (_initialize_m2_language): Add declaration.
16389 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
16390 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
16391 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
16392 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
16393 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
16394 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
16395 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
16396 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
16397 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
16398 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
16399 * machoread.c (_initialize_machoread): Add declaration.
16400 * macrocmd.c (_initialize_macrocmd): Add declaration.
16401 * macroscope.c (_initialize_macroscope): Add declaration.
16402 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
16403 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
16404 * maint.c (_initialize_maint_cmds): Add declaration.
16405 * mdebugread.c (_initialize_mdebugread): Add declaration.
16406 * memattr.c (_initialize_mem): Add declaration.
16407 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
16408 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
16409 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
16410 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
16411 * mi/mi-main.c (_initialize_mi_main): Add declaration.
16412 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
16413 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
16414 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
16415 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
16416 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
16417 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
16418 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
16419 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
16420 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
16421 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
16422 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
16423 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
16424 * mipsread.c (_initialize_mipsread): Add declaration.
16425 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
16426 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
16427 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
16428 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
16429 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
16430 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
16431 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
16432 * nto-procfs.c (_initialize_procfs): Add declaration.
16433 * objc-lang.c (_initialize_objc_language): Add declaration.
16434 * observable.c (_initialize_observer): Add declaration.
16435 * opencl-lang.c (_initialize_opencl_language): Add declaration.
16436 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
16437 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
16438 * osabi.c (_initialize_gdb_osabi): Add declaration.
16439 * osdata.c (_initialize_osdata): Add declaration.
16440 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
16441 * parse.c (_initialize_parse): Add declaration.
16442 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
16443 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
16444 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
16445 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
16446 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
16447 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
16448 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
16449 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
16450 * printcmd.c (_initialize_printcmd): Add declaration.
16451 * probe.c (_initialize_probe): Add declaration.
16452 * proc-api.c (_initialize_proc_api): Add declaration.
16453 * proc-events.c (_initialize_proc_events): Add declaration.
16454 * proc-service.c (_initialize_proc_service): Add declaration.
16455 * procfs.c (_initialize_procfs): Add declaration.
16456 * producer.c (_initialize_producer): Add declaration.
16457 * psymtab.c (_initialize_psymtab): Add declaration.
16458 * python/python.c (_initialize_python): Add declaration.
16459 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
16460 * record-btrace.c (_initialize_record_btrace): Add declaration.
16461 * record-full.c (_initialize_record_full): Add declaration.
16462 * record.c (_initialize_record): Add declaration.
16463 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
16464 * regcache.c (_initialize_regcache): Add declaration.
16465 * reggroups.c (_initialize_reggroup): Add declaration.
16466 * remote-notif.c (_initialize_notif): Add declaration.
16467 * remote-sim.c (_initialize_remote_sim): Add declaration.
16468 * remote.c (_initialize_remote): Add declaration.
16469 * reverse.c (_initialize_reverse): Add declaration.
16470 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
16471 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
16472 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
16473 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
16474 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
16475 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
16476 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
16477 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
16478 Add declaration.
16479 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
16480 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
16481 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
16482 * rust-exp.y (_initialize_rust_exp): Add declaration.
16483 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
16484 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
16485 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
16486 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
16487 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
16488 * score-tdep.c (_initialize_score_tdep): Add declaration.
16489 * ser-go32.c (_initialize_ser_dos): Add declaration.
16490 * ser-mingw.c (_initialize_ser_windows): Add declaration.
16491 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
16492 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
16493 * ser-uds.c (_initialize_ser_socket): Add declaration.
16494 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
16495 * serial.c (_initialize_serial): Add declaration.
16496 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
16497 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
16498 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
16499 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
16500 * skip.c (_initialize_step_skip): Add declaration.
16501 * sol-thread.c (_initialize_sol_thread): Add declaration.
16502 * solib-aix.c (_initialize_solib_aix): Add declaration.
16503 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
16504 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
16505 * solib-frv.c (_initialize_frv_solib): Add declaration.
16506 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
16507 * solib-target.c (_initialize_solib_target): Add declaration.
16508 * solib.c (_initialize_solib): Add declaration.
16509 * source-cache.c (_initialize_source_cache): Add declaration.
16510 * source.c (_initialize_source): Add declaration.
16511 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
16512 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
16513 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
16514 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
16515 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
16516 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
16517 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
16518 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
16519 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
16520 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
16521 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
16522 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
16523 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
16524 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
16525 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
16526 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
16527 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
16528 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
16529 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
16530 * stabsread.c (_initialize_stabsread): Add declaration.
16531 * stack.c (_initialize_stack): Add declaration.
16532 * stap-probe.c (_initialize_stap_probe): Add declaration.
16533 * std-regs.c (_initialize_frame_reg): Add declaration.
16534 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
16535 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
16536 * symfile.c (_initialize_symfile): Add declaration.
16537 * symmisc.c (_initialize_symmisc): Add declaration.
16538 * symtab.c (_initialize_symtab): Add declaration.
16539 * target.c (_initialize_target): Add declaration.
16540 * target-connection.c (_initialize_target_connection): Add
16541 declaration.
16542 * target-dcache.c (_initialize_target_dcache): Add declaration.
16543 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
16544 * thread.c (_initialize_thread): Add declaration.
16545 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
16546 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
16547 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
16548 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
16549 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
16550 * tracectf.c (_initialize_ctf): Add declaration.
16551 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
16552 * tracefile.c (_initialize_tracefile): Add declaration.
16553 * tracepoint.c (_initialize_tracepoint): Add declaration.
16554 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
16555 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
16556 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
16557 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
16558 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
16559 * tui/tui-win.c (_initialize_tui_win): Add declaration.
16560 * tui/tui.c (_initialize_tui): Add declaration.
16561 * typeprint.c (_initialize_typeprint): Add declaration.
16562 * ui-style.c (_initialize_ui_style): Add declaration.
16563 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
16564 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
16565 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
16566 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
16567 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
16568 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
16569 * unittests/filtered_iterator-selftests.c
16570 (_initialize_filtered_iterator_selftests): Add declaration.
16571 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
16572 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
16573 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
16574 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
16575 * unittests/main-thread-selftests.c
16576 (_initialize_main_thread_selftests): Add declaration.
16577 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
16578 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
16579 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
16580 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
16581 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
16582 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
16583 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
16584 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
16585 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
16586 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
16587 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
16588 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
16589 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
16590 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
16591 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
16592 declaration.
16593 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
16594 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
16595 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
16596 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
16597 * user-regs.c (_initialize_user_regs): Add declaration.
16598 * utils.c (_initialize_utils): Add declaration.
16599 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
16600 * valops.c (_initialize_valops): Add declaration.
16601 * valprint.c (_initialize_valprint): Add declaration.
16602 * value.c (_initialize_values): Add declaration.
16603 * varobj.c (_initialize_varobj): Add declaration.
16604 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
16605 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
16606 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
16607 * windows-nat.c (_initialize_windows_nat): Add declaration.
16608 (_initialize_check_for_gdb_ini): Add declaration.
16609 (_initialize_loadable): Add declaration.
16610 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
16611 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
16612 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
16613 * xcoffread.c (_initialize_xcoffread): Add declaration.
16614 * xml-support.c (_initialize_xml_support): Add declaration.
16615 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
16616 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
16617 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
16618 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
16619
e2de1eec
SM
166202020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16621
16622 * regformats/regdat.sh: Generate declaration for init function.
16623
e0037b4c
SM
166242020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16625
16626 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
16627 up.
16628 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
16629 close_one_inferior>: New methods.
16630 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
16631 pass down target to find_inferior_pid.
16632 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
16633 Pass down target to find_inferior_ptid.
16634 (gdbsim_target::create_inferior): Pass down target to
16635 add_thread_silent.
16636 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
16637 target down to find_inferior_ptid and switch_to_thread.
16638 (gdbsim_target::close): Update to call close_one_inferior.
16639 (struct resume_data): Remove.
16640 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
16641 directly, rather than through a void pointer.
16642 (gdbsim_target::resume): Update to call resume_one_inferior.
16643
58920b5b
SM
166442020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
16645
16646 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
16647
4ec89149
PA
166482020-01-12 Pedro Alves <palves@redhat.com>
16649
16650 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
16651 directly for the current inferior instead of
16652 discard_all_inferiors.
16653 (discard_all_inferiors): Delete.
16654
7c392d1d
TT
166552020-01-11 Tom Tromey <tom@tromey.com>
16656
16657 * tui/tui-wingeneral.c (box_win): Check cli_styling.
16658 * tui/tui-winsource.c (tui_source_window_base::refill): Use
16659 deprecated_safe_get_selected_frame.
16660
d9ebdab7
TBA
166612020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16662
16663 * inferior.c (print_inferior): Switch inferior before printing it.
16664
f3c469b9
PA
166652020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
16666 Pedro Alves <palves@redhat.com>
16667
16668 * progspace-and-thread.c (switch_to_program_space_and_thread):
16669 Assert there's an inferior for PSPACE. Use
16670 switch_to_inferior_no_thread to switch the inferior too.
16671 * progspace.c (program_space::~program_space): Call
16672 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
16673 (program_space::free_all_objfiles): Don't call clear_symtab_users
16674 here.
16675 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
16676
65c574f6
PA
166772020-01-10 Pedro Alves <palves@redhat.com>
16678
16679 * NEWS: Mention multi-target debugging, "info connections", and
16680 "add-inferior -no-connection".
16681
2f4fcf00
PA
166822020-01-10 Pedro Alves <palves@redhat.com>
16683
16684 * infrun.c: Include "target-connection.h".
16685 (check_multi_target_resumption): New.
16686 (proceed): Call it.
16687 * target-connection.c (make_target_connection_string): Make
16688 extern.
16689 * target-connection.h (make_target_connection_string): Declare.
16690
121b3efd
PA
166912020-01-10 Pedro Alves <palves@redhat.com>
16692
16693 * Makefile.in (COMMON_SFILES): Add target-connection.c.
16694 * inferior.c (uiout_field_connection): New function.
16695 (print_inferior): Add new "connection-id" column.
16696 (add_inferior_command): Show connection number/string of added
16697 inferior.
16698 * process-stratum-target.h
16699 (process_stratum_target::connection_string): New virtual method.
16700 (process_stratum_target::connection_number): New field.
16701 * remote.c (remote_target::connection_string): New override.
16702 * target-connection.c: New file.
16703 * target-connection.h: New file.
16704 * target.c (decref_target): Remove process_stratum targets from
16705 the connection list.
16706 (target_stack::push): Add process_stratum targets to the
16707 connection list.
16708
4f837581
PA
167092020-01-10 Pedro Alves <palves@redhat.com>
16710
16711 Revert:
16712 2016-04-12 Pedro Alves <palves@redhat.com>
16713 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
16714 Remove references to name.
16715 * serial.h (struct serial) <name>: Delete.
16716
f4ec508e
PA
167172020-01-10 Pedro Alves <palves@redhat.com>
16718
16719 * gdbarch-selftests.c (register_to_value_test): Remove "target
16720 already pushed" check.
16721
5b6d1e4f
PA
167222020-01-10 Pedro Alves <palves@redhat.com>
16723 John Baldwin <jhb@FreeBSD.org>
16724
16725 * aarch64-linux-nat.c
16726 (aarch64_linux_nat_target::thread_architecture): Adjust.
16727 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
16728 (task_command_1): Likewise.
16729 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
16730 (aix_thread_target::wait, aix_thread_target::fetch_registers)
16731 (aix_thread_target::store_registers)
16732 (aix_thread_target::thread_alive): Adjust.
16733 * amd64-fbsd-tdep.c: Include "inferior.h".
16734 (amd64fbsd_get_thread_local_address): Pass down target.
16735 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
16736 thread's gdbarch instead of target_gdbarch.
16737 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
16738 get_last_target_status.
16739 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
16740 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
16741 inferiors.
16742 (update_inserted_breakpoint_locations): Skip if inferiors with no
16743 execution.
16744 (update_global_location_list): When handling moribund locations,
16745 find representative inferior for location's pspace, and use thread
16746 count of its process_stratum target.
16747 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
16748 * bsd-uthread.c (bsd_uthread_target::wait): Use
16749 as_process_stratum_target and adjust thread_change_ptid and
16750 add_thread calls.
16751 (bsd_uthread_target::update_thread_list): Use
16752 as_process_stratum_target and adjust find_thread_ptid,
16753 thread_change_ptid and add_thread calls.
16754 * btrace.c (maint_btrace_packet_history_cmd): Adjust
16755 find_thread_ptid call.
16756 * corelow.c (add_to_thread_list): Adjust add_thread call.
16757 (core_target_open): Adjust add_thread_silent and thread_count
16758 calls.
16759 (core_target::pid_to_str): Adjust find_inferior_ptid call.
16760 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
16761 * event-top.c (async_disconnect): Pop targets from all inferiors.
16762 * exec.c (add_target_sections): Push exec target on all inferiors
16763 sharing the program space.
16764 (remove_target_sections): Remove the exec target from all
16765 inferiors sharing the program space.
16766 (exec_on_vfork): New.
16767 * exec.h (exec_on_vfork): Declare.
16768 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
16769 Pass it down.
16770 (fbsd_nat_target::update_thread_list): Adjust.
16771 (fbsd_nat_target::resume): Adjust.
16772 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
16773 down.
16774 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
16775 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
16776 get_thread_arch_regcache call.
16777 * fork-child.c (gdb_startup_inferior): Pass target down to
16778 startup_inferior and set_executing.
16779 * gdbthread.h (struct process_stratum_target): Forward declare.
16780 (add_thread, add_thread_silent, add_thread_with_info)
16781 (in_thread_list): Add process_stratum_target parameter.
16782 (find_thread_ptid(inferior*, ptid_t)): New overload.
16783 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
16784 parameter.
16785 (all_threads()): Delete overload.
16786 (all_threads, all_non_exited_threads): Add process_stratum_target
16787 parameter.
16788 (all_threads_safe): Use brace initialization.
16789 (thread_count): Add process_stratum_target parameter.
16790 (set_resumed, set_running, set_stop_requested, set_executing)
16791 (threads_are_executing, finish_thread_state): Add
16792 process_stratum_target parameter.
16793 (switch_to_thread): Use is_current_thread.
16794 * i386-fbsd-tdep.c: Include "inferior.h".
16795 (i386fbsd_get_thread_local_address): Pass down target.
16796 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
16797 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
16798 have_inferiors check.
16799 * inf-ptrace.c (inf_ptrace_target::create_inferior)
16800 (inf_ptrace_target::attach): Adjust.
16801 * infcall.c (run_inferior_call): Adjust.
16802 * infcmd.c (run_command_1): Pass target to
16803 scoped_finish_thread_state.
16804 (proceed_thread_callback): Skip inferiors with no execution.
16805 (continue_command): Rename 'all_threads' local to avoid hiding
16806 'all_threads' function. Adjust get_last_target_status call.
16807 (prepare_one_step): Adjust set_running call.
16808 (signal_command): Use user_visible_resume_target. Compare thread
16809 pointers instead of inferior_ptid.
16810 (info_program_command): Adjust to pass down target.
16811 (attach_command): Mark target's 'thread_executing' flag.
16812 (stop_current_target_threads_ns): New, factored out from ...
16813 (interrupt_target_1): ... this. Switch inferior before making
16814 target calls.
16815 * inferior-iter.h
16816 (struct all_inferiors_iterator, struct all_inferiors_range)
16817 (struct all_inferiors_safe_range)
16818 (struct all_non_exited_inferiors_range): Filter on
16819 process_stratum_target too. Remove explicit.
16820 * inferior.c (inferior::inferior): Push dummy target on target
16821 stack.
16822 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
16823 Add process_stratum_target parameter, and pass it down.
16824 (have_live_inferiors): Adjust.
16825 (switch_to_inferior_and_push_target): New.
16826 (add_inferior_command, clone_inferior_command): Handle
16827 "-no-connection" parameter. Use
16828 switch_to_inferior_and_push_target.
16829 (_initialize_inferior): Mention "-no-connection" option in
16830 the help of "add-inferior" and "clone-inferior" commands.
16831 * inferior.h: Include "process-stratum-target.h".
16832 (interrupt_target_1): Use bool.
16833 (struct inferior) <push_target, unpush_target, target_is_pushed,
16834 find_target_beneath, top_target, process_target, target_at,
16835 m_stack>: New.
16836 (discard_all_inferiors): Delete.
16837 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
16838 (all_inferiors, all_non_exited_inferiors): Add
16839 process_stratum_target parameter.
16840 * infrun.c: Include "gdb_select.h" and <unordered_map>.
16841 (target_last_proc_target): New global.
16842 (follow_fork_inferior): Push target on new inferior. Pass target
16843 to add_thread_silent. Call exec_on_vfork. Handle target's
16844 reference count.
16845 (follow_fork): Adjust get_last_target_status call. Also consider
16846 target.
16847 (follow_exec): Push target on new inferior.
16848 (struct execution_control_state) <target>: New field.
16849 (user_visible_resume_target): New.
16850 (do_target_resume): Call target_async.
16851 (resume_1): Set target's threads_executing flag. Consider resume
16852 target.
16853 (commit_resume_all_targets): New.
16854 (proceed): Also consider resume target. Skip threads of inferiors
16855 with no execution. Commit resumtion in all targets.
16856 (start_remote): Pass current inferior to wait_for_inferior.
16857 (infrun_thread_stop_requested): Consider target as well. Pass
16858 thread_info pointer to clear_inline_frame_state instead of ptid.
16859 (infrun_thread_thread_exit): Consider target as well.
16860 (random_pending_event_thread): New inferior parameter. Use it.
16861 (do_target_wait): Rename to ...
16862 (do_target_wait_1): ... this. Add inferior parameter, and pass it
16863 down.
16864 (threads_are_resumed_pending_p, do_target_wait): New.
16865 (prepare_for_detach): Adjust calls.
16866 (wait_for_inferior): New inferior parameter. Handle it. Use
16867 do_target_wait_1 instead of do_target_wait.
16868 (fetch_inferior_event): Adjust. Switch to representative
16869 inferior. Pass target down.
16870 (set_last_target_status): Add process_stratum_target parameter.
16871 Save target in global.
16872 (get_last_target_status): Add process_stratum_target parameter and
16873 handle it.
16874 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
16875 (context_switch): Check inferior_ptid == null_ptid before calling
16876 inferior_thread().
16877 (get_inferior_stop_soon): Pass down target.
16878 (wait_one): Rename to ...
16879 (poll_one_curr_target): ... this.
16880 (struct wait_one_event): New.
16881 (wait_one): New.
16882 (stop_all_threads): Adjust.
16883 (handle_no_resumed, handle_inferior_event): Adjust to consider the
16884 event's target.
16885 (switch_back_to_stepped_thread): Also consider target.
16886 (print_stop_event): Update.
16887 (normal_stop): Update. Also consider the resume target.
16888 * infrun.h (wait_for_inferior): Remove declaration.
16889 (user_visible_resume_target): New declaration.
16890 (get_last_target_status, set_last_target_status): New
16891 process_stratum_target parameter.
16892 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16893 process_stratum_target parameter, and use it.
16894 (clear_inline_frame_state (thread_info*)): New.
16895 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16896 process_stratum_target parameter.
16897 (clear_inline_frame_state (thread_info*)): Declare.
16898 * linux-fork.c (delete_checkpoint_command): Pass target down to
16899 find_thread_ptid.
16900 (checkpoint_command): Adjust.
16901 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
16902 instead of just tweaking inferior_ptid.
16903 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
16904 (exit_lwp): Pass target down to find_thread_ptid.
16905 (attach_proc_task_lwp_callback): Pass target down to
16906 add_thread/set_running/set_executing.
16907 (linux_nat_target::attach): Pass target down to
16908 thread_change_ptid.
16909 (get_detach_signal): Pass target down to find_thread_ptid.
16910 Consider last target status's target.
16911 (linux_resume_one_lwp_throw, resume_lwp)
16912 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
16913 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
16914 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
16915 (linux_nat_target::async_wait_fd): New.
16916 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
16917 target down.
16918 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
16919 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
16920 * linux-thread-db.c (struct thread_db_info::process_target): New
16921 field.
16922 (add_thread_db_info): Save target.
16923 (get_thread_db_info): New process_stratum_target parameter. Also
16924 match target.
16925 (delete_thread_db_info): New process_stratum_target parameter.
16926 Also match target.
16927 (thread_from_lwp): Adjust to pass down target.
16928 (thread_db_notice_clone): Pass down target.
16929 (check_thread_db_callback): Pass down target.
16930 (try_thread_db_load_1): Always push the thread_db target.
16931 (try_thread_db_load, record_thread): Pass target down.
16932 (thread_db_target::detach): Pass target down. Always unpush the
16933 thread_db target.
16934 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
16935 target down. Always unpush the thread_db target.
16936 (find_new_threads_callback, thread_db_find_new_threads_2)
16937 (thread_db_target::update_thread_list): Pass target down.
16938 (thread_db_target::pid_to_str): Pass current inferior down.
16939 (thread_db_target::get_thread_local_address): Pass target down.
16940 (thread_db_target::resume, maintenance_check_libthread_db): Pass
16941 target down.
16942 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
16943 * procfs.c (procfs_target::procfs_init_inferior): Declare.
16944 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
16945 (procfs_init_inferior): Rename to ...
16946 (procfs_target::procfs_init_inferior): ... this and adjust.
16947 (procfs_target::create_inferior, procfs_notice_thread)
16948 (procfs_do_thread_registers): Adjust.
16949 * ppc-fbsd-tdep.c: Include "inferior.h".
16950 (ppcfbsd_get_thread_local_address): Pass down target.
16951 * proc-service.c (ps_xfer_memory): Switch current inferior and
16952 program space as well.
16953 (get_ps_regcache): Pass target down.
16954 * process-stratum-target.c
16955 (process_stratum_target::thread_address_space)
16956 (process_stratum_target::thread_architecture): Pass target down.
16957 * process-stratum-target.h
16958 (process_stratum_target::threads_executing): New field.
16959 (as_process_stratum_target): New.
16960 * ravenscar-thread.c
16961 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
16962 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
16963 down.
16964 * record-btrace.c (record_btrace_target::info_record): Adjust.
16965 (record_btrace_target::record_method)
16966 (record_btrace_target::record_is_replaying)
16967 (record_btrace_target::fetch_registers)
16968 (get_thread_current_frame_id, record_btrace_target::resume)
16969 (record_btrace_target::wait, record_btrace_target::stop): Pass
16970 target down.
16971 * record-full.c (record_full_wait_1): Switch to event thread.
16972 Pass target down.
16973 * regcache.c (regcache::regcache)
16974 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
16975 process_stratum_target parameter and handle it.
16976 (current_thread_target): New global.
16977 (get_thread_regcache): Add process_stratum_target parameter and
16978 handle it. Switch inferior before calling target method.
16979 (get_thread_regcache): Pass target down.
16980 (get_thread_regcache_for_ptid): Pass target down.
16981 (registers_changed_ptid): Add process_stratum_target parameter and
16982 handle it.
16983 (registers_changed_thread, registers_changed): Pass target down.
16984 (test_get_thread_arch_aspace_regcache): New.
16985 (current_regcache_test): Define a couple local test_target_ops
16986 instances and use them for testing.
16987 (readwrite_regcache): Pass process_stratum_target parameter.
16988 (cooked_read_test, cooked_write_test): Pass mock_target down.
16989 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
16990 (get_thread_arch_aspace_regcache): Add process_stratum_target
16991 parameter.
16992 (regcache::target): New method.
16993 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
16994 (regcache::registers_changed_ptid): Add process_stratum_target
16995 parameter.
16996 (regcache::m_target): New field.
16997 (registers_changed_ptid): Add process_stratum_target parameter.
16998 * remote.c (remote_state::supports_vCont_probed): New field.
16999 (remote_target::async_wait_fd): New method.
17000 (remote_unpush_and_throw): Add remote_target parameter.
17001 (get_current_remote_target): Adjust.
17002 (remote_target::remote_add_inferior): Push target.
17003 (remote_target::remote_add_thread)
17004 (remote_target::remote_notice_new_inferior)
17005 (get_remote_thread_info): Pass target down.
17006 (remote_target::update_thread_list): Skip threads of inferiors
17007 bound to other targets. (remote_target::close): Don't discard
17008 inferiors. (remote_target::add_current_inferior_and_thread)
17009 (remote_target::process_initial_stop_replies)
17010 (remote_target::start_remote)
17011 (remote_target::remote_serial_quit_handler): Pass down target.
17012 (remote_target::remote_unpush_target): New remote_target
17013 parameter. Unpush the target from all inferiors.
17014 (remote_target::remote_unpush_and_throw): New remote_target
17015 parameter. Pass it down.
17016 (remote_target::open_1): Check whether the current inferior has
17017 execution instead of checking whether any inferior is live. Pass
17018 target down.
17019 (remote_target::remote_detach_1): Pass down target. Use
17020 remote_unpush_target.
17021 (extended_remote_target::attach): Pass down target.
17022 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
17023 (remote_target::append_resumption): Pass down target.
17024 (remote_target::append_pending_thread_resumptions)
17025 (remote_target::remote_resume_with_hc, remote_target::resume)
17026 (remote_target::commit_resume): Pass down target.
17027 (remote_target::remote_stop_ns): Check supports_vCont_probed.
17028 (remote_target::interrupt_query)
17029 (remote_target::remove_new_fork_children)
17030 (remote_target::check_pending_events_prevent_wildcard_vcont)
17031 (remote_target::remote_parse_stop_reply)
17032 (remote_target::process_stop_reply): Pass down target.
17033 (first_remote_resumed_thread): New remote_target parameter. Pass
17034 it down.
17035 (remote_target::wait_as): Pass down target.
17036 (unpush_and_perror): New remote_target parameter. Pass it down.
17037 (remote_target::readchar, remote_target::remote_serial_write)
17038 (remote_target::getpkt_or_notif_sane_1)
17039 (remote_target::kill_new_fork_children, remote_target::kill): Pass
17040 down target.
17041 (remote_target::mourn_inferior): Pass down target. Use
17042 remote_unpush_target.
17043 (remote_target::core_of_thread)
17044 (remote_target::remote_btrace_maybe_reopen): Pass down target.
17045 (remote_target::pid_to_exec_file)
17046 (remote_target::thread_handle_to_thread_info): Pass down target.
17047 (remote_target::async_wait_fd): New.
17048 * riscv-fbsd-tdep.c: Include "inferior.h".
17049 (riscv_fbsd_get_thread_local_address): Pass down target.
17050 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
17051 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
17052 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
17053 Adjust.
17054 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
17055 * solib-svr4.c (enable_break): Pass down target.
17056 * spu-multiarch.c (parse_spufs_run): Pass down target.
17057 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
17058 * target-delegates.c: Regenerate.
17059 * target.c (g_target_stack): Delete.
17060 (current_top_target): Return the current inferior's top target.
17061 (target_has_execution_1): Refer to the passed-in inferior's top
17062 target.
17063 (target_supports_terminal_ours): Check whether the initial
17064 inferior was already created.
17065 (decref_target): New.
17066 (target_stack::push): Incref/decref the target.
17067 (push_target, push_target, unpush_target): Adjust.
17068 (target_stack::unpush): Defref target.
17069 (target_is_pushed): Return bool. Adjust to refer to the current
17070 inferior's target stack.
17071 (dispose_inferior): Delete, and inline parts ...
17072 (target_preopen): ... here. Only dispose of the current inferior.
17073 (target_detach): Hold strong target reference while detaching.
17074 Pass target down.
17075 (target_thread_name): Add assertion.
17076 (target_resume): Pass down target.
17077 (target_ops::beneath, find_target_at): Adjust to refer to the
17078 current inferior's target stack.
17079 (get_dummy_target): New.
17080 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
17081 has a thread running.
17082 (initialize_targets): Rename to ...
17083 (_initialize_target): ... this.
17084 * target.h: Include "gdbsupport/refcounted-object.h".
17085 (struct target_ops): Inherit refcounted_object.
17086 (target_ops::shortname, target_ops::longname): Make const.
17087 (target_ops::async_wait_fd): New method.
17088 (decref_target): Declare.
17089 (struct target_ops_ref_policy): New.
17090 (target_ops_ref): New typedef.
17091 (get_dummy_target): Declare function.
17092 (target_is_pushed): Return bool.
17093 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
17094 (all_matching_threads_iterator::all_matching_threads_iterator):
17095 Handle filter target.
17096 * thread-iter.h (struct all_matching_threads_iterator, struct
17097 all_matching_threads_range, class all_non_exited_threads_range):
17098 Filter by target too. Remove explicit.
17099 * thread.c (threads_executing): Delete.
17100 (inferior_thread): Pass down current inferior.
17101 (clear_thread_inferior_resources): Pass down thread pointer
17102 instead of ptid_t.
17103 (add_thread_silent, add_thread_with_info, add_thread): Add
17104 process_stratum_target parameter. Use it for thread and inferior
17105 searches.
17106 (is_current_thread): New.
17107 (thread_info::deletable): Use it.
17108 (find_thread_ptid, thread_count, in_thread_list)
17109 (thread_change_ptid, set_resumed, set_running): New
17110 process_stratum_target parameter. Pass it down.
17111 (set_executing): New process_stratum_target parameter. Pass it
17112 down. Adjust reference to 'threads_executing'.
17113 (threads_are_executing): New process_stratum_target parameter.
17114 Adjust reference to 'threads_executing'.
17115 (set_stop_requested, finish_thread_state): New
17116 process_stratum_target parameter. Pass it down.
17117 (switch_to_thread): Also match inferior.
17118 (switch_to_thread): New process_stratum_target parameter. Pass it
17119 down.
17120 (update_threads_executing): Reimplement.
17121 * top.c (quit_force): Pop targets from all inferior.
17122 (gdb_init): Don't call initialize_targets.
17123 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
17124 Declare.
17125 (windows_add_thread, windows_delete_thread): Adjust.
17126 (get_windows_debug_event): Rename to ...
17127 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
17128 * tracefile-tfile.c (tfile_target_open): Pass down target.
17129 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
17130 Forward declare.
17131 (switch_to_thread): Add process_stratum_target parameter.
17132 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
17133 parameter. Use it.
17134 (mi_on_resume): Pass target down.
17135 * nat/fork-inferior.c (startup_inferior): Add
17136 process_stratum_target parameter. Pass it down.
17137 * nat/fork-inferior.h (startup_inferior): Add
17138 process_stratum_target parameter.
17139 * python/py-threadevent.c (py_get_event_thread): Pass target down.
17140
75c6c844
PA
171412020-01-10 Pedro Alves <palves@redhat.com>
17142
17143 * remote.c (remote_target::start_remote): Don't set inferior_ptid
17144 directly. Instead find the first thread in the thread list and
17145 use switch_to_thread.
17146
78f2c40a
PA
171472020-01-10 Pedro Alves <palves@redhat.com>
17148
17149 * remote.c (remote_target::remote_add_inferior): Don't bind a
17150 process to the current inferior if the current inferior is already
17151 bound to a process.
17152
e7af6c70
TBA
171532020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17154 Pedro Alves <palves@redhat.com>
17155
17156 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
17157 If no process is specified, return null_ptid instead of
17158 inferior_ptid.
17159 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
17160 TARGET_WAITKIND_SIGNALLED with no pid.
17161
31ba933e
PA
171622020-01-10 Pedro Alves <palves@redhat.com>
17163
17164 * remote.c (first_remote_resumed_thread): New.
17165 (remote_target::wait_as): Use it as default event_ptid instead of
17166 inferior_ptid.
17167
735fc2ca
PA
171682020-01-10 Pedro Alves <palves@redhat.com>
17169
17170 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
17171
c17e02e1
PA
171722020-01-10 Pedro Alves <palves@redhat.com>
17173
17174 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
17175 not -1.
17176
ab1ddbcf
PA
171772020-01-10 Pedro Alves <palves@redhat.com>
17178
17179 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
17180 ptid to get_last_target_status.
17181 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
17182 ptid to get_last_target_status.
17183 * infcmd.c (continue_command): Don't pass a target_waitstatus to
17184 get_last_target_status.
17185 (info_program_command): Don't pass a target_waitstatus to
17186 get_last_target_status.
17187 * infrun.c (init_wait_for_inferior): Use
17188 nullify_last_target_wait_ptid.
17189 (get_last_target_status): Handle nullptr arguments.
17190 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
17191 (print_stop_event): Don't pass a ptid to get_last_target_status.
17192 (normal_stop): Don't pass a ptid to get_last_target_status.
17193 * infrun.h (get_last_target_status, set_last_target_status): Move
17194 comments here and update.
17195 (nullify_last_target_wait_ptid): Declare.
17196 * linux-fork.c (fork_load_infrun_state): Remove local extern
17197 declaration of nullify_last_target_wait_ptid.
17198 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
17199 to get_last_target_status.
17200
f3f8ece4
PA
172012020-01-10 Pedro Alves <palves@redhat.com>
17202
17203 * gdbthread.h (scoped_restore_current_thread)
17204 <dont_restore, restore, m_dont_restore>: Declare.
17205 * thread.c (thread_alive): Add assertion. Return bool.
17206 (switch_to_thread_if_alive): New.
17207 (prune_threads): Switch inferior/thread.
17208 (print_thread_info_1): Switch thread before calling target methods.
17209 (scoped_restore_current_thread::restore): New, factored out from
17210 ...
17211 (scoped_restore_current_thread::~scoped_restore_current_thread):
17212 ... this.
17213 (scoped_restore_current_thread::scoped_restore_current_thread):
17214 Add assertion.
17215 (thread_apply_all_command, thread_select): Use
17216 switch_to_thread_if_alive.
17217 * infrun.c (proceed, restart_threads, handle_signal_stop)
17218 (switch_back_to_stepped_thread): Switch current thread before
17219 calling target methods.
17220
db2d40f7
PA
172212020-01-10 Pedro Alves <palves@redhat.com>
17222
17223 * inferior.c (switch_to_inferior_no_thread): New function,
17224 factored out from ...
17225 (inferior_command): ... here.
17226 * inferior.h (switch_to_inferior_no_thread): Declare.
17227 * mi/mi-main.c (run_one_inferior): Use
17228 switch_to_inferior_no_thread.
17229
bd420a2d
PA
172302020-01-10 Pedro Alves <palves@redhat.com>
17231
17232 * infcmd.c (kill_command): Remove dead code.
17233
ddf5db90
PA
172342020-01-10 Pedro Alves <palves@redhat.com>
17235
17236 * remote.c (remote_target::mourn_inferior): No longer check
17237 whether the target is running.
17238
5018ce90
PA
172392020-01-10 Pedro Alves <palves@redhat.com>
17240
17241 * corelow.c (core_target::has_execution): Change parameter type to
17242 inferior pointer.
17243 * inferior.c (number_of_live_inferiors): Use
17244 inferior::has_execution instead of target_has_execution_1.
17245 * inferior.h (inferior::has_execution): New.
17246 * linux-thread-db.c (thread_db_target::update_thread_list): Use
17247 inferior::has_execution instead of target_has_execution_1.
17248 * process-stratum-target.c
17249 (process_stratum_target::has_execution): Change parameter type to
17250 inferior pointer. Check the inferior's PID instead of
17251 inferior_ptid.
17252 * process-stratum-target.h
17253 (process_stratum_target::has_execution): Change parameter type to
17254 inferior pointer.
17255 * record-full.c (record_full_core_target::has_execution): Change
17256 parameter type to inferior pointer.
17257 * target.c (target_has_execution_1): Change parameter type to
17258 inferior pointer.
17259 (target_has_execution_current): Adjust.
17260 * target.h (target_ops::has_execution): Change parameter type to
17261 inferior pointer.
17262 (target_has_execution_1): Change parameter type to inferior
17263 pointer. Change return type to bool.
17264 * tracefile.h (tracefile_target::has_execution): Change parameter
17265 type to inferior pointer.
17266
74375d18
PA
172672020-01-10 Pedro Alves <palves@redhat.com>
17268
17269 * exceptions.c (print_flush): Remove current_top_target() check.
17270
acdf84a6
PA
172712020-01-10 Pedro Alves <palves@redhat.com>
17272
17273 * remote.c (show_remote_exec_file): Show the current inferior's
17274 exec-file instead of the command variable's value.
17275
ec506636
PA
172762020-01-10 Pedro Alves <palves@redhat.com>
17277
17278 * record-full.c (record_full_resume_ptid): New global.
17279 (record_full_target::resume): Set it.
17280 (record_full_wait_1): Use record_full_resume_ptid instead of
17281 inferior_ptid.
17282
873657b9
PA
172832020-01-10 Pedro Alves <palves@redhat.com>
17284
17285 * gdbthread.h (scoped_restore_current_thread)
17286 <dont_restore, restore, m_dont_restore>: Declare.
17287 * thread.c (thread_alive): Add assertion. Return bool.
17288 (switch_to_thread_if_alive): New.
17289 (prune_threads): Switch inferior/thread.
17290 (print_thread_info_1): Switch thread before calling target methods.
17291 (scoped_restore_current_thread::restore): New, factored out from
17292 ...
17293 (scoped_restore_current_thread::~scoped_restore_current_thread):
17294 ... this.
17295 (scoped_restore_current_thread::scoped_restore_current_thread):
17296 Add assertion.
17297 (thread_apply_all_command, thread_select): Use
17298 switch_to_thread_if_alive.
17299
7f0ae84c
GB
173002020-01-10 George Barrett <bob@bob131.so>
17301
17302 * stap-probe.c (stap_modify_semaphore): Don't check for null
17303 semaphores.
17304 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
17305 for null semaphores.
17306
f5a7c406
AB
173072020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17308
17309 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
17310 all source windows, and maintain horizontal scroll status while
17311 doing so.
17312
9ae6bf64
TT
173132020-01-09 Tom Tromey <tom@tromey.com>
17314
17315 PR tui/18932:
17316 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
17317 update_source_window, not print_source_lines.
17318
b2efe70c
AB
173192020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17320
17321 * tui/tui.c (tui_enable): Register tui hooks after calling
17322 tui_display_main.
17323
5f23a082
CB
173242020-01-09 Christian Biesinger <cbiesinger@google.com>
17325
17326 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
17327
3061113b
SM
173282020-01-08 Simon Marchi <simon.marchi@efficios.com>
17329
17330 * thread.c (print_thread_info_1): Fix indentation.
17331
57d75002
CB
173322020-01-09 Christian Biesinger <cbiesinger@google.com>
17333
17334 * symtab.c (general_symbol_info::compute_and_set_names): Move the
17335 unique_xmalloc_ptr outside the if to always free the demangled name.
17336
6a053cb1
TT
173372020-01-08 Tom Tromey <tromey@adacore.com>
17338
17339 * xcoffread.c (enter_line_range, read_xcoff_symtab)
17340 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
17341 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
17342 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
17343 Remove.
17344 (section_offsets): New typedef.
17345 * symtab.c (fixup_section, get_msymbol_address): Update.
17346 * symmisc.c (dump_msymbols): Update.
17347 * symfile.h (relative_addr_info_to_section_offsets)
17348 (symfile_map_offsets_to_segments): Update.
17349 * symfile.c (build_section_addr_info_from_objfile)
17350 (init_objfile_sect_indices): Update.
17351 (struct place_section_arg): Change type of "offsets".
17352 (place_section): Update.
17353 (relative_addr_info_to_section_offsets): Change type of
17354 "section_offsets". Remove "num_sections" parameter.
17355 (default_symfile_offsets, syms_from_objfile_1)
17356 (set_objfile_default_section_offset): Update.
17357 (reread_symbols): No need to preserve section offsets by hand.
17358 (symfile_map_offsets_to_segments): Change type of "offsets".
17359 * stap-probe.c (relocate_address): Update.
17360 * stabsread.h (process_one_symbol): Update.
17361 * solib-target.c (struct lm_info_target) <offsets>: Change type.
17362 (solib_target_relocate_section_addresses): Update.
17363 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
17364 Update.
17365 * solib-frv.c (frv_relocate_main_executable): Update.
17366 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
17367 * solib-aix.c (solib_aix_get_section_offsets): Change return
17368 type.
17369 (solib_aix_solib_create_inferior_hook): Update.
17370 * remote.c (remote_target::get_offsets): Update.
17371 * psymtab.c (find_pc_sect_psymtab): Update.
17372 * psympriv.h (struct partial_symbol) <address, text_low,
17373 text_high>: Update.
17374 * objfiles.h (obj_section_offset): Update.
17375 (struct objfile) <section_offsets>: Change type.
17376 <num_sections>: Remove.
17377 (objfile_relocate): Update.
17378 * objfiles.c (entry_point_address_query): Update
17379 (relocate_one_symbol): Change type of "section_offsets".
17380 (objfile_relocate1, objfile_relocate1): Change type of
17381 "new_offsets".
17382 (objfile_rebase1): Update.
17383 * mipsread.c (mipscoff_symfile_read): Update.
17384 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
17385 parameter.
17386 * mdebugread.c (parse_symbol): Change type of "section_offsets".
17387 (parse_external, psymtab_to_symtab_1): Update.
17388 * machoread.c (macho_symfile_offsets): Update.
17389 * ia64-tdep.c (ia64_find_unwind_table): Update.
17390 * hppa-tdep.c (read_unwind_info): Update.
17391 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
17392 * dwarf2read.c (create_addrmap_from_index)
17393 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
17394 (process_psymtab_comp_unit_reader, add_partial_symbol)
17395 (add_partial_subprogram, process_full_comp_unit)
17396 (read_file_scope, read_func_scope, read_lexical_block_scope)
17397 (read_call_site_scope, dwarf2_rnglists_process)
17398 (dwarf2_ranges_process, dwarf2_ranges_read)
17399 (dwarf_decode_lines_1, var_decode_location, new_symbol)
17400 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
17401 Update.
17402 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
17403 Update.
17404 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
17405 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
17406 (process_one_symbol): Change type of "section_offsets".
17407 * ctfread.c (get_objfile_text_range): Update.
17408 * coffread.c (coff_symtab_read, enter_linenos)
17409 (process_coff_symbol): Update.
17410 * coff-pe-read.c (add_pe_forwarded_sym): Update.
17411 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
17412
456e800a
TT
174132020-01-08 Tom Tromey <tromey@adacore.com>
17414
17415 * dwarf2read.c (parse_macro_definition): Use std::string.
17416 (parse_macro_definition): Likewise.
17417
6dfa2fc2
TT
174182020-01-08 Tom Tromey <tromey@adacore.com>
17419
17420 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
17421 (ATTR_ALLOC_CHUNK): Remove.
17422
421d1616
TT
174232020-01-08 Tom Tromey <tromey@adacore.com>
17424
17425 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
17426
43816ebc
TT
174272020-01-08 Tom Tromey <tromey@adacore.com>
17428
17429 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
17430 (dwarf2_compute_name, open_dwo_file): Likewise.
17431 (process_enumeration_scope): Use std::vector.
17432 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
17433 (partial_die_info::fixup, dwarf2_start_subfile)
17434 (guess_full_die_structure_name, dwarf2_name): Likewise.
17435 (determine_prefix): Update.
17436 (guess_full_die_structure_name): Make return type const.
17437 (partial_die_full_name): Return unique_xmalloc_ptr.
17438 (DW_FIELD_ALLOC_CHUNK): Remove.
17439
4212d509
TT
174402020-01-07 Tom Tromey <tromey@adacore.com>
17441
17442 PR build/24937:
17443 * stap-probe.c (class stap_static_probe_ops): Add constructor.
17444
06a6207a
JT
174452020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17446
17447 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
17448
153d79c4
AB
174492020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
17450
17451 * stack.c (print_frame_info): Move disassemble_next_line code
17452 inside source_print block.
17453
66182876
EZ
174542020-01-06 Eli Zaretskii <eliz@gnu.org>
17455
17456 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
17457 gdb/signals.h, as we are now using native signal symbols.
17458
cbfa8581
SV
174592020-01-06 Shahab Vahedi <shahab@synopsys.com>
17460
17461 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
17462 overflow by an early check of content vs threshold.
aac66a4c 17463 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
17464 Likewise.
17465
3f602821
EZ
174662020-01-06 Eli Zaretskii <eliz@gnu.org>
17467
17468 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
17469
a08c904d
JT
174702020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17471
17472 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
17473 export table if no section contains it's RVA.
17474
89a65580
EZ
174752020-01-06 Eli Zaretskii <eliz@gnu.org>
17476
17477 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
17478
8b7fcda2
HD
174792020-01-06 Hannes Domani <ssbssa@yahoo.de>
17480
17481 * source.c (print_source_lines_base): Set last_line_listed.
17482
a61b4f69
SV
174832020-01-06 Shahab Vahedi <shahab@synopsys.com>
17484
17485 * tui/tui-disasm.c: Remove trailing spaces.
17486
559e7e50
EZ
174872020-01-06 Eli Zaretskii <eliz@gnu.org>
17488 Pedro Alves <palves@redhat.com>
17489
17490 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
17491 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
17492 (windows_gdb_signal_to_target): New function, uses the above
17493 enumeration to convert GDB internal signal codes to equivalent
17494 Windows codes.
17495 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
17496 * windows-nat.c: Include "gdb_wait.h".
17497 (get_windows_debug_event): Extract the fatal exception from the
17498 exit status and convert to the equivalent Posix signal number.
17499 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
17500 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
17501 * gdbsupport/gdb_wait.c: New file, implements
17502 windows_status_to_termsig.
17503 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
17504 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
17505
f2302a34
AB
175062020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
17507
17508 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
17509 show_layout.
17510
6a5206eb
LM
175112020-01-05 Luis Machado <luis.machado@linaro.org>
17512
17513 * aarch64-linux-nat.c
17514 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
17515 and bfd_mach_aarch64.
17516
6ec1d75e
PW
175172020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17518
17519 * ui-file.c (stdio_file::can_emit_style_escape)
17520 (tee_file::can_emit_style_escape): Ensure style is used also on
17521 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
17522 to gdb_stdout.
17523 * main.c (set_gdb_data_directory): Use file style to output the
17524 warning that the given pathname is not a directory.
17525 * top.c (show_history_filename, gdb_safe_append_history)
17526 (show_gdb_datadir): Use file style.
17527
44f81a76
HD
175282020-01-03 Hannes Domani <ssbssa@yahoo.de>
17529
17530 * solib-target.c (struct lm_info_target):
17531 Change offsets to be a unique_xmalloc_ptr.
17532 (solib_target_relocate_section_addresses): Update.
17533
25057eb0
HD
175342020-01-03 Hannes Domani <ssbssa@yahoo.de>
17535
17536 * windows-nat.c (windows_clear_solib): Free so_list linked list.
17537
6e2118f5
BE
175382020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
17539
17540 * MAINTAINERS (Write After Approval): Add myself.
17541
8133c7dc
LM
175422020-01-02 Luis Machado <luis.machado@linaro.org>
17543
17544 * proc-service.c (get_ps_regcache): Remove reference to obsolete
17545 Cell BE architecture.
17546 * target.h (struct target_ops) <thread_architecture>: Likewise.
17547
48189bec
HD
175482020-01-01 Hannes Domani <ssbssa@yahoo.de>
17549
17550 * Makefile.in: Use INSTALL_PROGRAM_ENV.
17551
ead1063b
HD
175522020-01-01 Hannes Domani <ssbssa@yahoo.de>
17553
17554 * MAINTAINERS (Write After Approval): Add myself.
17555
e5d78223
JB
175562020-01-01 Joel Brobecker <brobecker@adacore.com>
17557
17558 * gdbarch.sh: Update copyright year range of generated files.
17559
b811d2c2
JB
175602020-01-01 Joel Brobecker <brobecker@adacore.com>
17561
17562 Update copyright year range in all GDB files.
17563
5f4def5c
JB
175642020-01-01 Joel Brobecker <brobecker@adacore.com>
17565
17566 * copyright.py: Convert to Python 3.
17567
51fd4002
JB
175682020-01-01 Joel Brobecker <brobecker@adacore.com>
17569
17570 * copyright.py: Adapt after move of gnulib directory from gdb
17571 directory to toplevel directory.
17572
5fb651f2
JB
175732020-01-01 Joel Brobecker <brobecker@adacore.com>
17574
17575 * copyright.py (main): Exit if run from the wrong directory.
17576
5dd8bf88
JB
175772020-01-01 Joel Brobecker <brobecker@adacore.com>
17578
17579 * top.c (print_gdb_version): Change copyright year to 2020.
17580
9f71dacb 175812020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 17582
9f71dacb 17583 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 17584
9f71dacb 17585For older changes see ChangeLog-2019.
c906108c
SS
17586\f
17587Local Variables:
17588mode: change-log
17589left-margin: 8
17590fill-column: 74
17591version-control: never
57da7796 17592coding: utf-8
c906108c 17593End: