]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
Remove redundant typedefs
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
f99b5177
TT
12020-12-04 Tom Tromey <tromey@adacore.com>
2
3 * linespec.c (struct linespec_token): Rename; remove typedef.
4 * guile/scm-block.c (struct block_smob): Remove typedef.
5 (struct block_syms_progress_smob): Likewise.
6 * guile/scm-symbol.c (struct symbol_smob): Remove typedef.
7 * guile/scm-symtab.c (symtab_smob): Remove typedef.
8 (struct sal_smob): Remove typedef.
9 * guile/scm-param.c (struct param_smob): Remove typedef.
10 * guile/scm-progspace.c (struct pspace_smob): Rename.
11 * guile/scm-objfile.c (struct objfile_smob): Rename.
12 * guile/scm-iterator.c (struct iterator_smob): Rename.
13 * guile/scm-frame.c (struct frame_smob): Rename.
14 * guile/scm-arch.c (struct arch_smob): Rename.
15 * guile/scm-type.c (struct field_smob): Remove typedef.
16 (struct type_smob): Rename.
17 * guile/scm-cmd.c (struct command_smob): Remove typedef.
18 * guile/scm-ports.c (struct ioscm_memory_port): Remove typedef.
19 * guile/scm-value.c (struct value_smob): Remove typedef.
20 * guile/scm-lazy-string.c (lazy_string_smob): Remove typedef.
21 * guile/guile-internal.h (struct scheme_variable)
22 (struct scheme_function, struct scheme_integer_constant)
23 (struct gdb_smob, struct chained_gdb_smob)
24 (struct eqable_gdb_smob, arch_smob, frame_smob, iterator_smob)
25 (objfile_smob, pspace_smob, type_smob): Remove typedef.
26 * guile/scm-pretty-print.c (pretty_printer_smob): Remove typedef.
27 (struct pretty_printer_worker_smob): Remove typedef.
28 * guile/scm-exception.c (struct exception_smob): Remove typedef.
29 * python/py-block.c (struct block_object): Remove typedef.
30 (block_syms_iterator_object): Update.
31 (set_block): Update.
32 (block_syms_iterator_object): Remove typedef.
33 * python/py-inferior.c (struct membuf_object): Remove typedef.
34 * python/py-symtab.c (struct symtab_object): Remove typedef.
35 (set_symtab): Update.
36 (sal_object): Remove typedef.
37 (set_sal): Update.
38 * python/py-frame.c (frame_object): Remove typedef.
39 * python/py-record-btrace.c (struct btpy_list_object): Remove
40 typedef.
41 * python/py-arch.c (struct arch_object): Remove typedef.
42 * python/py-linetable.c (struct linetable_entry_object)
43 (linetable_object, struct ltpy_iterator_object): Remove typedef.
44 * python/py-events.h (eventregistry_object): Remove typedef.
45 (struct events_object): Remove typedef.
46 * python/python-internal.h (gdbpy_breakpoint_object): Remove
47 typedef.
48 (thread_object): Remove typedef.
49 * python/py-progspace.c (pspace_object): Remove typedef.
50 * python/py-value.c (struct value_object): Remove typedef.
51 * python/py-record.h (recpy_record_object): Remove typedef.
52 (struct recpy_element_object): Remove typedef.
53 * python/py-lazy-string.c (lazy_string_object): Remove typedef.
54 * python/py-objfile.c (objfile_object): Remove typedef.
55 * python/py-cmd.c (struct cmdpy_object): Remove typedef.
56 * python/py-type.c (type_object): Remove typedef.
57 (typy_iterator_object): Update.
58 (set_type): Update.
59 (field_object): Remove typedef.
60 (typy_iterator_object): Remove typedef.
61 * python/py-registers.c (register_descriptor_iterator_object):
62 Remove typedef.
63 (struct register_descriptor_object)
64 (struct reggroup_iterator_object, struct reggroup_object): Remove
65 typedef.
66 * python/py-record.c (recpy_gap_object): Remove typedef.
67 * python/py-symbol.c (symbol_object): Remove typedef.
68 (set_symbol): Update.
69 * python/py-event.h (event_object): Remove typedef.
70 * python/py-param.c (parmpy_object): Remove typedef.
71 * python/py-instruction.c (struct py_insn_obj): Remove typedef.
72 * python/py-unwind.c (struct pending_frame_object): Remove typedef.
73 (unwind_info_object, struct cached_frame_info): Likewise.
74
91f87213
TT
752020-12-04 Tom Tromey <tromey@adacore.com>
76
77 * value.c (value_internal_function_name): Make return type const.
78 * value.h (value_internal_function_name): Make return type const.
79
5382f971
LM
802020-12-04 Luis Machado <luis.machado@linaro.org>
81
82 * aarch64-tdep.c (submask, bit, bits): Remove.
83 * arch/aarch64-insn.c (extract_signed_bitfield): Remove.
84 (aarch64_decode_adr, aarch64_decode_b aarch64_decode_bcond)
85 (aarch64_decode_cb, aarch64_decode_tb)
86 (aarch64_decode_ldr_literal): Use sbits to extract a signed
87 immediate.
88 * arch/aarch64-insn.h (submask, bits, bit, sbits): New macros.
89
b6a6aa07
TV
902020-12-04 Tom de Vries <tdevries@suse.de>
91
92 PR tdep/27007
93 * i386-tdep.c (i386_16_byte_align_p): Skip static fields.
94
0bc2e38d
SM
952020-12-03 Simon Marchi <simon.marchi@polymtl.ca>
96
97 PR gdb/26876
98 * dwarf2/frame.c (find_comp_unit, set_comp_unit): Reverse use of
99 dwarf2_frame_bfd_data and dwarf2_frame_objfile_data.
100
25428040
AB
1012020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
102
103 * arch/riscv.c: Include 'rv32e-xregs.c'.
104 (riscv_create_target_description): Update to handle rv32e.
105 * arch/riscv.h (struct riscv_gdbarch_features) <embedded>: New
106 member variable.
107 <operator==>: Update to account for new field.
108 <hash>: Likewise.
109 * features/Makefile (FEATURE_XMLFILES): Add riscv/rv32e-xregs.xml.
110 * features/riscv/rv32e-xregs.c: Generated.
111 * features/riscv/rv32e-xregs.xml: New file.
112 * riscv-tdep.c (riscv_debug_breakpoints): Move from later in the
113 file.
114 (riscv_debug_infcall): Likewise.
115 (riscv_debug_unwinder): Likewise.
116 (riscv_debug_gdbarch): Likewise.
117 (enum riscv_register_required_status): Delete.
118 (struct riscv_register_feature): Add constructor, delete default
119 constructor, copy, and assign constructors.
120 (struct riscv_register_feature::register_info) <required>: Delete.
121 <check>: Update comment and arguments.
122 (struct riscv_register_feature) <name>: Change to member function.
123 <prefer_first_name>: Delete.
124 <tdesc_feature>: New member function.
125 <registers>: Rename to...
126 <m_registers>: ...this.
127 <m_feature_name>: New member variable.
128 (riscv_register_feature::register_info::check): Update arguments.
129 (riscv_xreg_feature): Rewrite as class, create a single static
130 instance of the class.
131 (riscv_freg_feature): Likewise.
132 (riscv_virtual_feature): Likewise.
133 (riscv_csr_feature): Likewise.
134 (riscv_create_csr_aliases): Has become a member function inside
135 riscv_csr_feature class.
136 (riscv_abi_embedded): New function definition.
137 (riscv_register_name): Adjust to use new feature objects.
138 (struct riscv_call_info) <riscv_call_info>: Check for rv32e abi,
139 and adjust available argument registers.
140 (riscv_features_from_gdbarch_info): Check for EF_RISCV_RVE flag.
141 (riscv_check_tdesc_feature): Delete.
142 (riscv_tdesc_unknown_reg): Adjust to use new feature objects.
143 (riscv_gdbarch_init): Delete target description checking code, and
144 instead call to the new feature objects to perform the checks.
145 Reorder handling of no abi information case, allows small code
146 simplification.
147 (_initialize_riscv_tdep): Remove call, this is now done in the
148 riscv_csr_feature constructor.
149 * riscv-tdep.h (riscv_abi_embedded): Declare.
150
533b2ae0
AB
1512020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
152
153 * riscv-tdep.c (riscv_create_csr_aliases): Remove use of
154 DECLARE_CSR_ALIAS.
155
e4502042
AB
1562020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
157
158 * riscv-tdep.c (riscv_is_unknown_csr): New function,
159 implementation moved from riscv_register_reggroup_p.
160 (riscv_register_reggroup_p): Update group handling for unknown
161 CSRs.
162
2bf3b79d
SDJ
1632020-12-01 Sergio Durigan Junior <sergiodj@sergiodj.net>
164
165 * dwarf2/read.c (dwz_search_other_debugdirs): New function.
166 (dwarf2_get_dwz_file): Convert 'filename' to a
167 std::string. Use dwz_search_other_debugdirs to search for DWZ
168 files in the debug-file-directories provided by the user as well.
169
77bf7e99
TT
1702020-12-01 Tom Tromey <tom@tromey.com>
171
172 * parse.c (expr_builder::expr_builder): Initialize expout.
173 (expr_builder::release): Use expression::resize.
174 (expression::expression, expression::~expression)
175 (expression::resize): New methods.
176 (write_exp_elt): Use expression::resize.
177 (prefixify_expression): Update.
178 (increase_expout_size): Use expression::resize.
179 * expression.h (struct expression): Add constructor, destructor.
180 <resize>: New method.
181 (expression_up): Change type.
182
539d71e8
RA
1832020-12-01 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
184 * ppc-linux-nat.c: (PPC_DEBUG_FEATURE_DATA_BP_ARCH_31): New define.
185 (region_ok_for_hw_watchpoint): Check if 2nd DAWR is avaliable before
186 set region.
187
7ce05d21
TV
1882020-11-30 Tom de Vries <tdevries@suse.de>
189
190 PR symtab/26905
191 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add and handle
192 is_reference parameter.
193 (dwarf2_evaluate_property): Update dwarf2_locexpr_baton_eval call.
194
88b91969
TT
1952020-11-30 Tom Tromey <tom@tromey.com>
196
197 * rust-lang.c (rust_op_name): Remove.
198 (exp_descriptor_rust): Update.
199 * parser-defs.h (op_name_standard): Don't declare.
200 (struct exp_descriptor) <op_name>: Remove.
201 * parse.c (exp_descriptor_standard): Update.
202 * opencl-lang.c (exp_descriptor_opencl): Update.
203 * m2-lang.c (m2_language::exp_descriptor_modula2): Update.
204 * f-lang.c (op_name_f): Remove.
205 (f_language::exp_descriptor_tab): Update.
206 * expression.h (op_name): Update.
207 * expprint.c (op_name): Rewrite.
208 (op_name_standard): Remove.
209 (dump_raw_expression, dump_subexp): Update.
210 * c-lang.c (exp_descriptor_c): Update.
211 * ax-gdb.c (gen_expr): Update.
212 * ada-lang.c (ada_op_name): Remove.
213 (ada_exp_descriptor): Update.
214
1cd49c43
TT
2152020-11-30 Tom Tromey <tom@tromey.com>
216
217 * eval.c (init_array_element): Remove.
218 (evaluate_subexp_standard) <OP_ARRAY>: Remove "index_pc".
219
96fb9086
HD
2202020-11-29 Hannes Domani <ssbssa@yahoo.de>
221
222 PR tui/26973
223 * tui/tui-layout.c (tui_apply_current_layout): Don't delete the
224 static locator win info.
225
b4132322
AR
2262020-11-28 Alex Richardson <Alexander.Richardson@cl.cam.ac.uk>
227
228 * acincludde.m4 (GDB_AC_CHECK_BFD): Include string.h in the test
229 program.
230
3df8c6af
AB
2312020-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
232
233 * printcmd.c (skip_over_slash_fmt): Reorder code to ensure in_fmt
234 is always initialized.
235
0ae45769
RA
2362020-11-26 Rogerio Alves <rcardoso@linux.ibm.com>
237 * MAINTAINERS (Write After Approval): Add myself.
238
239ca5e4
PW
2392020-11-26 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
240
241 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
242 * features/aarch64-fpu.xml: Add named FPCR and FPSR register bit-fields.
243
cbfa382a
TT
2442020-11-25 Tom Tromey <tom@tromey.com>
245
246 * eval.c (evaluate_subexp_standard): Remove unnecessary
247 variables.
248
af30c400
TT
2492020-11-25 Tom Tromey <tom@tromey.com>
250
251 * d-lang.c: Include parser-defs.h.
252 * rust-lang.c: Include parser-defs.h.
253 * c-lang.h: Do not include parser-defs.h.
254
1c64f6cb
SM
2552020-11-24 Simon Marchi <simon.marchi@polymtl.ca>
256
257 * regcache.h (struct cached_reg): Remove typedef.
258
2c20a601
JB
2592020-11-24 Joel Brobecker <brobecker@adacore.com>
260
261 * README: Fix the URL of the MPFR library.
262
c609df64
JB
2632020-11-24 Joel Brobecker <brobecker@adacore.com>
264
265 * README: Document the --with-libgmp-prefix configure option.
266
fa123c32
JB
2672020-11-24 Joel Brobecker <brobecker@adacore.com>
268
269 * NEWS: Add entry documenting support for DWARF-based fixed
270 point types.
271
0fb8bb02
JB
2722020-11-24 Joel Brobecker <brobecker@adacore.com>
273
274 * NEWS: Document that building GDB now requires GMP.
275
4afa9fd9
JB
2762020-11-24 Joel Brobecker <brobecker@adacore.com>
277
278 * typeprint.c (print_type_scalar): Add handling of
279 TYPE_CODE_FIXED_POINT.
280
af619ce9
JB
2812020-11-24 Joel Brobecker <brobecker@adacore.com>
282
283 * valarith.c (fixed_point_binop): Replace the
284 INIT_VAL_WITH_FIXED_POINT_VAL macro by a lambda. Update all
285 users accordingly.
286
e6fcee3a
JB
2872020-11-24 Joel Brobecker <brobecker@adacore.com>
288
289 * gdbtypes.h (struct type) <fixed_point_scaling_factor>: New method,
290 replacing fixed_point_scaling_factor. All callers updated
291 throughout this project.
292 (fixed_point_scaling_factor): Delete declaration.
293 * gdbtypes.c (type::fixed_point_scaling_factor): Replaces
294 fixed_point_scaling_factor. Adjust implementation accordingly.
295
d19937a7
JB
2962020-11-24 Joel Brobecker <brobecker@adacore.com>
297
298 * gdbtypes.h (struct type) <fixed_point_type_base_type> New method,
299 replacing the fixed_point_type_base_type function. All callers
300 updated throughout this project.
301 (fixed_point_type_base_type): Remove declaration.
302 * gdbtypes.c (type::fixed_point_type_base_type): Replaces
303 fixed_point_type_base_type. Adjust implementation accordingly.
304
2a12c336
JB
3052020-11-24 Joel Brobecker <brobecker@adacore.com>
306
307 * gdbtypes.h (struct type) <fixed_point_info, set_fixed_point_info>:
308 New methods.
309 (INIT_FIXED_POINT_SPECIFIC): Adjust.
310 (TYPE_FIXED_POINT_INFO): Delete macro.
311 (allocate_fixed_point_type_info): Change return type to void.
312 * gdbtypes.c (copy_type_recursive): Replace the use of
313 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
314 (fixed_point_scaling_factor): Likewise.
315 (allocate_fixed_point_type_info): Change return type to void.
316 Adjust implementation accordingly.
317 * dwarf2/read.c (finish_fixed_point_type): Replace the use of
318 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
319
c9f0b43f
JB
3202020-11-24 Joel Brobecker <brobecker@adacore.com>
321
322 * gmp-utils.h (gdb_mpz::read): Change buf and len parameters
323 into one single gdb::array_view parameter.
324 (gdb_mpz::write): Likewise.
325 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
326 * gmp-utils.c (gdb_mpz::read): Change buf and len parameters
327 into one single gdb::array_view parameter.
328 Adjust implementation accordingly.
329 (gdb_mpz::write): Likewise.
330 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
331 * unittests/gmp-utils-selftests.c: Adapt following changes above.
332 * valarith.c, valops.c, valprint.c, value.c: Likewise.
333
987b6703
JB
3342020-11-24 Joel Brobecker <brobecker@adacore.com>
335
336 * gmp-utils.h (gmp_string_printf): Rename from gmp_string_asprintf.
337 Change return type to std::string. Update all callers.
338 * gmp-utils.c (gmp_string_printf): Likewise.
339
4fbb7cce
JB
3402020-11-24 Joel Brobecker <brobecker@adacore.com>
341
342 * unittests/gmp-utils-selftests.c (write_fp_test): Use mpq_set_si
343 instead of mpq_set_ui to initialize our GMP rational.
344
d6ab69dd
TV
3452020-11-23 Tom de Vries <tdevries@suse.de>
346
347 * debuginfod-support.c (debuginfod_source_query)
348 (debuginfod_debuginfo_query): Only set DESTNAME if successful.
349
dab72643
TT
3502020-11-21 Tom Tromey <tom@tromey.com>
351
352 * breakpoint.c (watchpoint_exp_is_const): Return bool.
353
c0ad05d5
SM
3542020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
355
356 * unittests/gmp-utils-selftests.c (gdb_mpz_read_all_from_small):
357 Pass 2.0 to pow.
358 (gdb_mpz_write_all_from_small): Likewise.
359
a43b29c9
SM
3602020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
361
362 * dwarf2/read.c (finish_fixed_point_type): Use std::abs instead
363 of abs.
364
ae41200b
NA
3652020-11-20 Nick Alcock <nick.alcock@oracle.com>
366
367 * ctfread.c (elfctf_build_psymtabs): Use ctf_dict_open, not
368 ctf_arc_open_by_name.
369
139633c3
NA
3702020-11-20 Nick Alcock <nick.alcock@oracle.com>
371
372 * ctfread.c: Change uses of ctf_file_t to ctf_dict_t.
373 (ctf_fp_info::~ctf_fp_info): Call ctf_dict_close, not ctf_file_close.
374
cbbcd7a7
PA
3752020-11-20 Pedro Alves <pedro@palves.net>
376
377 * language.c (language_arch_info::lookup_primitive_type): Use
378 gdb::function_view instead of gdb::function.
379 (template language_lookup_primitive_type): Rename to ...
380 (language_lookup_primitive_type_1): ... this, and make static.
381 (language_lookup_primitive_type(const struct language_defn *,
382 struct gdbarch *, const char *): Make non-template.
383 (language_lookup_primitive_type(const struct language_defn *,
384 struct gdbarch *, std::function<bool (struct type *)>): Make
385 non-template and use gdb::function_view.
386 * language.h (language_arch_info::lookup_primitive_type): Use
387 gdb::function_view instead of std::function.
388 (language_lookup_primitive_type): No longer template.
389 * opencl-lang.c (lookup_opencl_vector_type): 'filter' is now a
390 lambda instead of a std::function.
391
d5ef21c3
AA
3922020-11-19 Andreas Arnez <arnez@linux.ibm.com>
393
394 PR tdep/26916
395 * s390-tdep.c (s390_process_record): Fix recording of STOC, STOCG,
396 and STOCFH.
397
a5adb8f3
SM
3982020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
399
400 * f-lang.c (fortran_value_subarray): Use plongest/pulongest.
401
70125a45
SM
4022020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
403
404 * gdbarch.sh (read_core_file_mappings): Remove `other` parameter
405 in `loop_cb` parameter.
406 * gdbarch.c: Re-generate.
407 * gdbarch.h: Re-generate.
408 * arch-utils.c (default_read_core_file_mappings): Remove `other`
409 parameter.
410 * arch-utils.h (default_read_core_file_mappings): Likewise.
411 * corelow.c (core_target::build_file_mappings): Likewise.
412 * linux-tdep.c (linux_read_core_file_mappings): Likewise.
413 (linux_core_info_proc_mappings): Likewise.
414
a5c641b5
AB
4152020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
416
417 * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
418 * NEWS: Mention new options.
419 * f-array-walker.h: New file.
420 * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
421 (repack_array_slices): New static global.
422 (show_repack_array_slices): New function.
423 (fortran_array_slicing_debug): New static global.
424 (show_fortran_array_slicing_debug): New function.
425 (value_f90_subarray): Delete.
426 (skip_undetermined_arglist): Delete.
427 (class fortran_array_repacker_base_impl): New class.
428 (class fortran_lazy_array_repacker_impl): New class.
429 (class fortran_array_repacker_impl): New class.
430 (fortran_value_subarray): Complete rewrite.
431 (set_fortran_list): New static global.
432 (show_fortran_list): Likewise.
433 (_initialize_f_language): Register new commands.
434 (fortran_adjust_dynamic_array_base_address_hack): New function.
435 * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
436 Declare.
437 * f-valprint.c: Include 'f-array-walker.h'.
438 (class fortran_array_printer_impl): New class.
439 (f77_print_array_1): Delete.
440 (f77_print_array): Delete.
441 (fortran_print_array): New.
442 (f_value_print_inner): Update to call fortran_print_array.
443 * gdbtypes.c: Include 'f-lang.h'.
444 (resolve_dynamic_type_internal): Call
445 fortran_adjust_dynamic_array_base_address_hack.
446
a15a5258
AB
4472020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
448
449 * breakpoint.c (struct watch_options): New struct.
450 (watch_option_defs): New static global.
451 (make_watch_options_def_group): New function.
452 (watch_maybe_just_location): Convert option parsing.
453 (watch_command_completer): New function.
454 (_initialize_breakpoint): Build help text using options mechanism.
455
2e362716
AB
4562020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
457
458 * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
459 (watch_command_1): Update parameter types. Convert locals to
460 bool.
461 (watch_command_wrapper): Change parameter type.
462 (watch_maybe_just_location): Change locals to bool.
463 (rwatch_command_wrapper): Update parameter type.
464 (awatch_command_wrapper): Update parameter type.
465 * breakpoint.h (watch_command_wrapper): Change parameter type.
466 (rwatch_command_wrapper): Update parameter type.
467 (awatch_command_wrapper): Update parameter type.
468 * eval.c (fetch_subexp_value): Change parameter type.
469 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
470 'false' not '0'.
471 * value.h (fetch_subexp_value): Change parameter type in
472 declaration.
473
b3ff61f8
AB
4742020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
475
476 * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
477 skip_spaces.
478
5b7d45d3
KS
4792020-11-18 Keith Seitz <keiths@redhat.com>
480
481 * linux-tdep.c (dump_note_entry_p): Return true instead of
482 checking `filename'.
483
c44191f8
TV
4842020-11-18 Tom de Vries <tdevries@suse.de>
485
486 * debuginfod-support.c (debuginfod_source_query)
487 (debuginfod_debuginfo_query): Also do early exit if
488 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
489
5d8254e1
TV
4902020-11-18 Tom de Vries <tdevries@suse.de>
491
492 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
493 warning.
494
584903d3
SM
4952020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
496
497 * gdbtypes.h (get_array_bounds): Return bool, adjust some
498 callers. Move doc here.
499 * gdbtypes.c (get_array_bounds): Return bool
500
6f2643db
AB
5012020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
502
503 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
504 assert.
505 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
506 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
507 case to the default.
508
037d7135
AB
5092020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
510
511 * printcmd.c: Include 'safe-ctype.c'.
512 (skip_over_slash_fmt): New function.
513 (print_command_completer): Call skip_over_slash_fmt.
514 (display_and_x_command_completer): New function.
515 (_initialize_printcmd): Add command completion for 'x' and
516 'display'.
517
2b3cb400
PA
5182020-11-16 Pedro Alves <pedro@palves.net>
519
520 * frame.c (get_prev_frame): Move get_frame_id call from here ...
521 (get_prev_frame_always_1): ... to here.
522 * inline-frame.c (inline_frame_this_id): Mention
523 get_prev_frame_always_1 in comment.
524
b74dbc20
JB
5252020-11-15 Joel Brobecker <brobecker@adacore.com>
526
527 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
528 handling.
529 (value_less): Add fixed-point handling.
530
0a12719e
JB
5312020-11-15 Joel Brobecker <brobecker@adacore.com>
532
533 * eval.c (binop_promote): Add fixed-point type handling.
534 * valarith.c (fixed_point_binop): New function.
535 (scalar_binop): Add fixed-point type handling.
536 (value_neg): Add fixed-point type handling.
537 * valops.c (value_cast_to_fixed_point): New function.
538 (value_cast): Add fixed-point type handling.
539
0c9150e4
JB
5402020-11-15 Joel Brobecker <brobecker@adacore.com>
541
542 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
543 range types.
544 * c-typeprint.c (c_type_print_varspec_prefix)
545 (c_type_print_varspec_suffix, c_type_print_base_1): Add
546 TYPE_CODE_FIXED_POINT handling.
547 * p-typeprint.c (pascal_type_print_varspec_prefix)
548 (pascal_type_print_varspec_suffix): Likewise.
549 * typeprint.c (print_type_fixed_point): New function.
550 * typeprint.h (print_type_fixed_point): Add declaration.
551
b26daff9
JB
5522020-11-15 Joel Brobecker <brobecker@adacore.com>
553
554 * printcmd.c (print_scalar_formatted): Add fixed-point type
555 handling when options->format is set.
556
09584414
JB
5572020-11-15 Joel Brobecker <brobecker@adacore.com>
558
559 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
560 * dwarf2/read.c (get_dwarf2_rational_constant)
561 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
562 (has_zero_over_zero_small_attribute): New functions.
563 read_base_type, set_die_type): Add fixed-point type handling.
564 * gdb-gdb.py.in: Add fixed-point type handling.
565 * gdbtypes.c: #include "gmp-utils.h".
566 (create_range_type, set_type_code): Add fixed-point type handling.
567 (init_fixed_point_type): New function.
568 (is_integral_type, is_scalar_type): Add fixed-point type handling.
569 (print_fixed_point_type_info): New function.
570 (recursive_dump_type, copy_type_recursive): Add fixed-point type
571 handling.
572 (fixed_point_type_storage): New typedef.
573 (fixed_point_objfile_key): New static global.
574 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
575 (fixed_point_type_base_type, fixed_point_scaling_factor): New
576 functions.
577 * gdbtypes.h: #include "gmp-utils.h".
578 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
579 (union type_specific) <fixed_point_info>: New field.
580 (struct fixed_point_type_info): New struct.
581 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
582 (init_fixed_point_type, is_fixed_point_type)
583 (fixed_point_type_base_type, fixed_point_scaling_factor)
584 (allocate_fixed_point_type_info): Add declarations.
585 * valprint.c (generic_val_print_fixed_point): New function.
586 (generic_value_print): Add fixed-point type handling.
587 * value.c (value_as_address, unpack_long): Add fixed-point type
588 handling.
589
e55c6530
JB
5902020-11-15 Joel Brobecker <brobecker@adacore.com>
591
592 * utils.h (uinteger_pow): Add declaration.
593 * utils.c (uinteger_pow): Moved here (without changes)...
594 * valarith.c (uinteger_pow): ... from here.
595
b34c74ab
JB
5962020-11-15 Joel Brobecker <brobecker@adacore.com>
597
40d9d2fd 598 * gmp-utils.h, gmp-utils.c: New file.
b34c74ab
JB
599 * unittests/gmp-utils-selftests.c: New file.
600 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
601 unittests/gmp-utils-selftests.c.
602 (COMMON_SFILES) Add gmp-utils.c.
603 (HFILES_NO_SRCDIR): Add gmp-utils.h.
604
1b4ac058
JB
6052020-11-15 Joel Brobecker <brobecker@adacore.com>
606
607 * configure.ac: Generate an error if a usable GMP library
608 could not be found.
609 * configure: Regenerate.
610
2c947d9b
JB
6112020-11-15 Joel Brobecker <brobecker@adacore.com>
612
613 * configure.ac: Add support for --with-libgmp-prefix.
614 * Makefile.in (LIBGMP): New variable.
615 (CLIBS): Include $(LIBGMP).
616 * configure, config.in: Regenerate
617
9dd02fc0
AB
6182020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
619
620 PR cli/26879
621 * f-exp.y (COMPLETE): New token.
622 (exp): Two new rules for tab-completion.
623 (saw_name_at_eof): New static global.
624 (last_was_structop): Likewise.
625 (yylex): Set new variables, and return COMPLETE token at the end
626 of the input stream in some cases.
627
758cb810
TT
6282020-11-14 Tom Tromey <tom@tromey.com>
629
630 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
631
749065b7
TT
6322020-11-14 Tom Tromey <tom@tromey.com>
633
634 * opencl-lang.c (opencl_component_ref): Make "comps" const.
635
2c5b1849
SM
6362020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
637
638 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
639
e8b2f0d9
TT
6402020-11-13 Tom Tromey <tom@tromey.com>
641
642 * c-lang.c (convert_ucn, convert_octal, convert_hex)
643 (convert_escape, parse_one_string): Constify.
644
25f4c262
KS
6452020-11-13 Keith Seitz <keiths@redhat.com>
646
647 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
648 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
649 outside of ELF segments" warning for debugin
650
9d3ab915
KS
6512020-11-13 Keith Seitz <keiths@redhat.com>
652
653 PR gdb/23034
654 * elfread.c (elf_symfile_segments): Output a BFD file name
655 for the "Loadable section ... outside of ELF segments" warning.
656
9ecab40c
SM
6572020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
658
659 PR gdb/26835
660 * arm-tdep.c (class arm_instruction_reader): New.
661 (target_arm_instruction_reader): New.
662 (arm_analyze_prologue): Add instruction reader parameter and use
663 it. Use arm_expand_immediate.
664 (class target_arm_instruction_reader): Adjust.
665 (arm_skip_prologue): Adjust.
666 (arm_expand_immediate): New.
667 (arm_scan_prologue): Adjust.
668 (arm_analyze_prologue_test): New.
669 (class test_arm_instruction_reader): New.
670
5a7cf527
AB
6712020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
672
673 * f-lang.c (fortran_argument_convert): Add declaration. Add
674 header comment, taken from f-lang.h. Make static.
675 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
676 (fortran_argument_convert): Delete declaration.
677
7bea47f0
AB
6782020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
679
680 * ada-exp.y (find_primitive_type): Make parameter const.
681 * ada-lang.c (enum ada_primitive_types): Delete.
682 (ada_language::language_arch_info): Update.
683 * c-lang.c (enum c_primitive_types): Delete.
684 (c_language_arch_info): Update.
685 (enum cplus_primitive_types): Delete.
686 (cplus_language::language_arch_info): Update.
687 * d-lang.c (enum d_primitive_types): Delete.
688 (d_language::language_arch_info): Update.
689 * f-lang.c (enum f_primitive_types): Delete.
690 (f_language::language_arch_info): Update.
691 * go-lang.c (enum go_primitive_types): Delete.
692 (go_language::language_arch_info): Update.
693 * language.c (auto_or_unknown_language::language_arch_info):
694 Update.
695 (language_gdbarch_post_init): Use obstack_new, use array indexing.
696 (language_string_char_type): Add header comment, call function in
697 language_arch_info.
698 (language_bool_type): Likewise
699 (language_arch_info::bool_type): Define.
700 (language_lookup_primitive_type_1): Delete.
701 (language_lookup_primitive_type): Rewrite as a templated function
702 to call function in language_arch_info, then instantiate twice.
703 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
704 (language_arch_info::lookup_primitive_type_and_symbol): Define.
705 (language_arch_info::lookup_primitive_type): Define twice with
706 different signatures.
707 (language_arch_info::lookup_primitive_type_as_symbol): Define.
708 (language_lookup_primitive_type_as_symbol): Rewrite to call a
709 member function in language_arch_info.
710 * language.h (language_arch_info): Complete rewrite.
711 (language_lookup_primitive_type): Make templated.
712 * m2-lang.c (enum m2_primitive_types): Delete.
713 (m2_language::language_arch_info): Update.
714 * opencl-lang.c (OCL_P_TYPE): Delete.
715 (enum opencl_primitive_types): Delete.
716 (opencl_type_data): Delete.
717 (builtin_opencl_type): Delete.
718 (lookup_opencl_vector_type): Update.
719 (opencl_language::language_arch_info): Update, lots of content
720 moved from...
721 (build_opencl_types): ...here. This function is now deleted.
722 (_initialize_opencl_language): Delete.
723 * p-lang.c (enum pascal_primitive_types): Delete.
724 (pascal_language::language_arch_info): Update.
725 * rust-lang.c (enum rust_primitive_types): Delete.
726 (rust_language::language_arch_info): Update.
727
bf6e5d01
SM
7282020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
729
730 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
731 dwarf2_queue_guard.
732
1350c3b4
SM
7332020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
734
735 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
736 comment.
737
6f738b01
SM
7382020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
739
740 * dwarf2/read.c (dwarf_read_debug_printf,
741 dwarf_read_debug_printf_v): New macros, use throughout the file.
742
10c19fad
SV
7432020-11-12 Shahab Vahedi <shahab@synopsys.com>
744
10806efd 745 PR tdep/27015
10c19fad
SV
746 * arc-linux-tdep.c (collect_register): Populate "eret" by
747 "pc" value from the regcache when asked for "pc" value.
748
1f2624a3
TT
7492020-11-12 Tom Tromey <tom@tromey.com>
750
751 PR rust/26799:
752 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
753 exist.
754
ab33b152
AB
7552020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
756
757 * features/Makefile (XMLTOC): Add rx.xml.
758 (FEATURE_XMLFILES): Remove rx.xml.
759 (FEATURE_CFILES rule): Pass '-single-feature' flag.
760 * features/rx.c: Regenerate.
761 * features/rx.xml: Wrap in `target` tags, and reindent.
762 * target-descriptions.c (struct maint_print_c_tdesc_options): New
763 structure.
764 (maint_print_c_tdesc_opt_def): New typedef.
765 (maint_print_c_tdesc_opt_defs): New static global.
766 (make_maint_print_c_tdesc_options_def_group): New function.
767 (maint_print_c_tdesc_cmd): Make use of command line flags, only
768 print single feature C file for target descriptions containing a
769 single feature.
770 (maint_print_c_tdesc_cmd_completer): New function.
771 (_initialize_target_descriptions): Update call to register command
772 completer, and include command line flag in help text.
773
550820e1
AB
7742020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
775
776 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
777 numbers.
778 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
779 enum values.
780
baf20f76
TT
7812020-11-10 Tom Tromey <tom@tromey.com>
782
783 * value.h (internalvar_name): Update.
784 * value.c (internalvar_name): Make return type const.
785
caaece0e
TT
7862020-11-10 Tom Tromey <tom@tromey.com>
787
788 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
789 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
790 const.
791
8e20b4be
TT
7922020-11-10 Tom Tromey <tom@tromey.com>
793
794 * objc-lang.h (value_nsstring): Update.
795 * objc-lang.c (value_nsstring): Make "ptr" const.
796
86775fab
AB
7972020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
798
799 * expprint.c (print_subexp_funcall): Increment expression position
800 after reading argument count.
801 * f-lang.c (print_subexp_f): Skip over opcode before calling
802 common function.
803 (dump_subexp_body_f): Likewise.
804
3fed4c0b
RG
8052020-11-06 Romain Geissler <romain.geissler@amadeus.com>
806
807 PR python/26832
808 * configure: Regenerate.
809 * configure.ac: Check for python modules ctypes instead of
810 itertools.
811
ac3d4064
PA
8122020-11-06 Pedro Alves <pedro@palves.net>
813
814 * macroexp.c (struct macro_buffer): Split in two classes. Add
815 uses adjusted.
816 (struct shared_macro_buffer): New, factored out from struct
817 macro_buffer.
818 (struct growable_macro_buffer): New, factored out from struct
819 macro_buffer.
820 (set_token, get_comment, get_identifier, get_pp_number)
821 (get_character_constant, get_string_literal, get_punctuator)
822 (get_next_token_for_substitution): Constify parameters.
823 (substitute_args): Constify locals.
824
606decb2
TT
8252020-11-05 Tom Tromey <tom@tromey.com>
826
827 * dwarf2/read.c (read_cutu_die_from_dwo)
828 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
829 (build_type_psymtabs_1): Update.
830 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
831 parameter.
832 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
833 Don't read section. Add assert.
834
9c91c725
TT
8352020-11-04 Tom Tromey <tromey@adacore.com>
836
837 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
838
8d9fd3a1
TT
8392020-11-04 Tom Tromey <tromey@adacore.com>
840
841 * ada-typeprint.c (ada_print_type): Handle __T types.
842
d8f62e84
TT
8432020-11-04 Tom Tromey <tromey@adacore.com>
844
845 * dwarf2/read.c (add_partial_symbol, process_die):
846 Handle DW_TAG_array_type.
847 (is_type_tag_for_partial): Add "lang" parameter.
848 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
849
7ff5b937
TT
8502020-11-04 Tom Tromey <tromey@adacore.com>
851
852 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
853
10f6a3ad
TT
8542020-11-04 Tom Tromey <tromey@adacore.com>
855
856 * dwarf2/read.c (read_array_type): Only apply stride to innermost
857 array.
858
b72795a8
TT
8592020-11-04 Tom Tromey <tromey@adacore.com>
860
861 * gdbtypes.c (update_static_array_size): Handle bit stride.
862
24aa1b02
TT
8632020-11-04 Tom Tromey <tromey@adacore.com>
864
865 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
866
c9a28cbe
TT
8672020-11-04 Tom Tromey <tromey@adacore.com>
868
869 * ada-lang.c (ada_is_any_packed_array_type): New function.
870 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
871
57567375
TT
8722020-11-04 Tom Tromey <tromey@adacore.com>
873
874 * dwarf2/read.c (recognize_bound_expression)
875 (quirk_ada_thick_pointer): New functions.
876 (read_array_type): Call quirk_ada_thick_pointer.
877 (set_die_type): Add "skip_data_location" parameter.
878 (quirk_ada_thick_pointer): New function.
879 (process_structure_scope): Call quirk_ada_thick_pointer.
880 * ada-lang.c (ada_is_unconstrained_packed_array_type)
881 (decode_packed_array_bitsize): Handle thick pointers without
882 parallel types.
883 (ada_is_gnat_encoded_packed_array_type): Rename from
884 ada_is_packed_array_type.
885 (ada_is_constrained_packed_array_type): Update.
886 * ada-valprint.c (ada_val_print_gnat_array): Remove.
887 (ada_value_print_1): Use ada_get_decoded_value.
888
a7400e44
TT
8892020-11-04 Tom Tromey <tromey@adacore.com>
890
891 * ada-lang.c (recursively_update_array_bitsize): New function.
892 (decode_constrained_packed_array_type): Call it.
893
75fd6a26
TT
8942020-11-04 Tom Tromey <tromey@adacore.com>
895
896 * ada-lang.c (to_fixed_array_type): Error if
897 decode_constrained_packed_array_type returns NULL.
898
93f9561e
TT
8992020-11-04 Tom Tromey <tromey@adacore.com>
900
901 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
902
257e02d8
TT
9032020-11-02 Tom Tromey <tromey@adacore.com>
904
905 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
906 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
907 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
908 * amd64-ravenscar-thread.c: New file.
909 * amd64-ravenscar-thread.h: New file.
910 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
911 * configure.tgt (amd64_tobjs): Add ravenscar objects.
912
74d877e5
AB
9132020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
914
915 * main.c (execute_cmdargs): New function.
916 (captured_main_1): Make use of execute_cmdargs.
917
64aaad63
AB
9182020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
919
920 * NEWS: Mention changes to config file search path.
921 * main.c
922
5b3d3560
TT
9232020-11-02 Tom Tromey <tromey@adacore.com>
924
925 * python/python.c: Consolidate two HAVE_PYTHON blocks.
926 (python_GdbModuleDef): Move earlier. Now static.
927 (do_start_initialization): Consolidate some IS_PY3K blocks.
928
dda83cd7
SM
9292020-11-02 Simon Marchi <simon.marchi@efficios.com>
930
931 * aarch64-linux-tdep.c: Fix indentation.
932 * aarch64-ravenscar-thread.c: Fix indentation.
933 * aarch64-tdep.c: Fix indentation.
934 * aarch64-tdep.h: Fix indentation.
935 * ada-lang.c: Fix indentation.
936 * ada-lang.h: Fix indentation.
937 * ada-tasks.c: Fix indentation.
938 * ada-typeprint.c: Fix indentation.
939 * ada-valprint.c: Fix indentation.
940 * ada-varobj.c: Fix indentation.
941 * addrmap.c: Fix indentation.
942 * addrmap.h: Fix indentation.
943 * agent.c: Fix indentation.
944 * aix-thread.c: Fix indentation.
945 * alpha-bsd-nat.c: Fix indentation.
946 * alpha-linux-tdep.c: Fix indentation.
947 * alpha-mdebug-tdep.c: Fix indentation.
948 * alpha-nbsd-tdep.c: Fix indentation.
949 * alpha-obsd-tdep.c: Fix indentation.
950 * alpha-tdep.c: Fix indentation.
951 * amd64-bsd-nat.c: Fix indentation.
952 * amd64-darwin-tdep.c: Fix indentation.
953 * amd64-linux-nat.c: Fix indentation.
954 * amd64-linux-tdep.c: Fix indentation.
955 * amd64-nat.c: Fix indentation.
956 * amd64-obsd-tdep.c: Fix indentation.
957 * amd64-tdep.c: Fix indentation.
958 * amd64-windows-tdep.c: Fix indentation.
959 * annotate.c: Fix indentation.
960 * arc-tdep.c: Fix indentation.
961 * arch-utils.c: Fix indentation.
962 * arch/arm-get-next-pcs.c: Fix indentation.
963 * arch/arm.c: Fix indentation.
964 * arm-linux-nat.c: Fix indentation.
965 * arm-linux-tdep.c: Fix indentation.
966 * arm-nbsd-tdep.c: Fix indentation.
967 * arm-pikeos-tdep.c: Fix indentation.
968 * arm-tdep.c: Fix indentation.
969 * arm-tdep.h: Fix indentation.
970 * arm-wince-tdep.c: Fix indentation.
971 * auto-load.c: Fix indentation.
972 * auxv.c: Fix indentation.
973 * avr-tdep.c: Fix indentation.
974 * ax-gdb.c: Fix indentation.
975 * ax-general.c: Fix indentation.
976 * bfin-linux-tdep.c: Fix indentation.
977 * block.c: Fix indentation.
978 * block.h: Fix indentation.
979 * blockframe.c: Fix indentation.
980 * bpf-tdep.c: Fix indentation.
981 * break-catch-sig.c: Fix indentation.
982 * break-catch-syscall.c: Fix indentation.
983 * break-catch-throw.c: Fix indentation.
984 * breakpoint.c: Fix indentation.
985 * breakpoint.h: Fix indentation.
986 * bsd-uthread.c: Fix indentation.
987 * btrace.c: Fix indentation.
988 * build-id.c: Fix indentation.
989 * buildsym-legacy.h: Fix indentation.
990 * buildsym.c: Fix indentation.
991 * c-typeprint.c: Fix indentation.
992 * c-valprint.c: Fix indentation.
993 * c-varobj.c: Fix indentation.
994 * charset.c: Fix indentation.
995 * cli/cli-cmds.c: Fix indentation.
996 * cli/cli-decode.c: Fix indentation.
997 * cli/cli-decode.h: Fix indentation.
998 * cli/cli-script.c: Fix indentation.
999 * cli/cli-setshow.c: Fix indentation.
1000 * coff-pe-read.c: Fix indentation.
1001 * coffread.c: Fix indentation.
1002 * compile/compile-cplus-types.c: Fix indentation.
1003 * compile/compile-object-load.c: Fix indentation.
1004 * compile/compile-object-run.c: Fix indentation.
1005 * completer.c: Fix indentation.
1006 * corefile.c: Fix indentation.
1007 * corelow.c: Fix indentation.
1008 * cp-abi.h: Fix indentation.
1009 * cp-namespace.c: Fix indentation.
1010 * cp-support.c: Fix indentation.
1011 * cp-valprint.c: Fix indentation.
1012 * cris-linux-tdep.c: Fix indentation.
1013 * cris-tdep.c: Fix indentation.
1014 * darwin-nat-info.c: Fix indentation.
1015 * darwin-nat.c: Fix indentation.
1016 * darwin-nat.h: Fix indentation.
1017 * dbxread.c: Fix indentation.
1018 * dcache.c: Fix indentation.
1019 * disasm.c: Fix indentation.
1020 * dtrace-probe.c: Fix indentation.
1021 * dwarf2/abbrev.c: Fix indentation.
1022 * dwarf2/attribute.c: Fix indentation.
1023 * dwarf2/expr.c: Fix indentation.
1024 * dwarf2/frame.c: Fix indentation.
1025 * dwarf2/index-cache.c: Fix indentation.
1026 * dwarf2/index-write.c: Fix indentation.
1027 * dwarf2/line-header.c: Fix indentation.
1028 * dwarf2/loc.c: Fix indentation.
1029 * dwarf2/macro.c: Fix indentation.
1030 * dwarf2/read.c: Fix indentation.
1031 * dwarf2/read.h: Fix indentation.
1032 * elfread.c: Fix indentation.
1033 * eval.c: Fix indentation.
1034 * event-top.c: Fix indentation.
1035 * exec.c: Fix indentation.
1036 * exec.h: Fix indentation.
1037 * expprint.c: Fix indentation.
1038 * f-lang.c: Fix indentation.
1039 * f-typeprint.c: Fix indentation.
1040 * f-valprint.c: Fix indentation.
1041 * fbsd-nat.c: Fix indentation.
1042 * fbsd-tdep.c: Fix indentation.
1043 * findvar.c: Fix indentation.
1044 * fork-child.c: Fix indentation.
1045 * frame-unwind.c: Fix indentation.
1046 * frame-unwind.h: Fix indentation.
1047 * frame.c: Fix indentation.
1048 * frv-linux-tdep.c: Fix indentation.
1049 * frv-tdep.c: Fix indentation.
1050 * frv-tdep.h: Fix indentation.
1051 * ft32-tdep.c: Fix indentation.
1052 * gcore.c: Fix indentation.
1053 * gdb_bfd.c: Fix indentation.
1054 * gdbarch.sh: Fix indentation.
1055 * gdbarch.c: Re-generate
1056 * gdbarch.h: Re-generate.
1057 * gdbcore.h: Fix indentation.
1058 * gdbthread.h: Fix indentation.
1059 * gdbtypes.c: Fix indentation.
1060 * gdbtypes.h: Fix indentation.
1061 * glibc-tdep.c: Fix indentation.
1062 * gnu-nat.c: Fix indentation.
1063 * gnu-nat.h: Fix indentation.
1064 * gnu-v2-abi.c: Fix indentation.
1065 * gnu-v3-abi.c: Fix indentation.
1066 * go32-nat.c: Fix indentation.
1067 * guile/guile-internal.h: Fix indentation.
1068 * guile/scm-cmd.c: Fix indentation.
1069 * guile/scm-frame.c: Fix indentation.
1070 * guile/scm-iterator.c: Fix indentation.
1071 * guile/scm-math.c: Fix indentation.
1072 * guile/scm-ports.c: Fix indentation.
1073 * guile/scm-pretty-print.c: Fix indentation.
1074 * guile/scm-value.c: Fix indentation.
1075 * h8300-tdep.c: Fix indentation.
1076 * hppa-linux-nat.c: Fix indentation.
1077 * hppa-linux-tdep.c: Fix indentation.
1078 * hppa-nbsd-nat.c: Fix indentation.
1079 * hppa-nbsd-tdep.c: Fix indentation.
1080 * hppa-obsd-nat.c: Fix indentation.
1081 * hppa-tdep.c: Fix indentation.
1082 * hppa-tdep.h: Fix indentation.
1083 * i386-bsd-nat.c: Fix indentation.
1084 * i386-darwin-nat.c: Fix indentation.
1085 * i386-darwin-tdep.c: Fix indentation.
1086 * i386-dicos-tdep.c: Fix indentation.
1087 * i386-gnu-nat.c: Fix indentation.
1088 * i386-linux-nat.c: Fix indentation.
1089 * i386-linux-tdep.c: Fix indentation.
1090 * i386-nto-tdep.c: Fix indentation.
1091 * i386-obsd-tdep.c: Fix indentation.
1092 * i386-sol2-nat.c: Fix indentation.
1093 * i386-tdep.c: Fix indentation.
1094 * i386-tdep.h: Fix indentation.
1095 * i386-windows-tdep.c: Fix indentation.
1096 * i387-tdep.c: Fix indentation.
1097 * i387-tdep.h: Fix indentation.
1098 * ia64-libunwind-tdep.c: Fix indentation.
1099 * ia64-libunwind-tdep.h: Fix indentation.
1100 * ia64-linux-nat.c: Fix indentation.
1101 * ia64-linux-tdep.c: Fix indentation.
1102 * ia64-tdep.c: Fix indentation.
1103 * ia64-tdep.h: Fix indentation.
1104 * ia64-vms-tdep.c: Fix indentation.
1105 * infcall.c: Fix indentation.
1106 * infcmd.c: Fix indentation.
1107 * inferior.c: Fix indentation.
1108 * infrun.c: Fix indentation.
1109 * iq2000-tdep.c: Fix indentation.
1110 * language.c: Fix indentation.
1111 * linespec.c: Fix indentation.
1112 * linux-fork.c: Fix indentation.
1113 * linux-nat.c: Fix indentation.
1114 * linux-tdep.c: Fix indentation.
1115 * linux-thread-db.c: Fix indentation.
1116 * lm32-tdep.c: Fix indentation.
1117 * m2-lang.c: Fix indentation.
1118 * m2-typeprint.c: Fix indentation.
1119 * m2-valprint.c: Fix indentation.
1120 * m32c-tdep.c: Fix indentation.
1121 * m32r-linux-tdep.c: Fix indentation.
1122 * m32r-tdep.c: Fix indentation.
1123 * m68hc11-tdep.c: Fix indentation.
1124 * m68k-bsd-nat.c: Fix indentation.
1125 * m68k-linux-nat.c: Fix indentation.
1126 * m68k-linux-tdep.c: Fix indentation.
1127 * m68k-tdep.c: Fix indentation.
1128 * machoread.c: Fix indentation.
1129 * macrocmd.c: Fix indentation.
1130 * macroexp.c: Fix indentation.
1131 * macroscope.c: Fix indentation.
1132 * macrotab.c: Fix indentation.
1133 * macrotab.h: Fix indentation.
1134 * main.c: Fix indentation.
1135 * mdebugread.c: Fix indentation.
1136 * mep-tdep.c: Fix indentation.
1137 * mi/mi-cmd-catch.c: Fix indentation.
1138 * mi/mi-cmd-disas.c: Fix indentation.
1139 * mi/mi-cmd-env.c: Fix indentation.
1140 * mi/mi-cmd-stack.c: Fix indentation.
1141 * mi/mi-cmd-var.c: Fix indentation.
1142 * mi/mi-cmds.c: Fix indentation.
1143 * mi/mi-main.c: Fix indentation.
1144 * mi/mi-parse.c: Fix indentation.
1145 * microblaze-tdep.c: Fix indentation.
1146 * minidebug.c: Fix indentation.
1147 * minsyms.c: Fix indentation.
1148 * mips-linux-nat.c: Fix indentation.
1149 * mips-linux-tdep.c: Fix indentation.
1150 * mips-nbsd-tdep.c: Fix indentation.
1151 * mips-tdep.c: Fix indentation.
1152 * mn10300-linux-tdep.c: Fix indentation.
1153 * mn10300-tdep.c: Fix indentation.
1154 * moxie-tdep.c: Fix indentation.
1155 * msp430-tdep.c: Fix indentation.
1156 * namespace.h: Fix indentation.
1157 * nat/fork-inferior.c: Fix indentation.
1158 * nat/gdb_ptrace.h: Fix indentation.
1159 * nat/linux-namespaces.c: Fix indentation.
1160 * nat/linux-osdata.c: Fix indentation.
1161 * nat/netbsd-nat.c: Fix indentation.
1162 * nat/x86-dregs.c: Fix indentation.
1163 * nbsd-nat.c: Fix indentation.
1164 * nbsd-tdep.c: Fix indentation.
1165 * nios2-linux-tdep.c: Fix indentation.
1166 * nios2-tdep.c: Fix indentation.
1167 * nto-procfs.c: Fix indentation.
1168 * nto-tdep.c: Fix indentation.
1169 * objfiles.c: Fix indentation.
1170 * objfiles.h: Fix indentation.
1171 * opencl-lang.c: Fix indentation.
1172 * or1k-tdep.c: Fix indentation.
1173 * osabi.c: Fix indentation.
1174 * osabi.h: Fix indentation.
1175 * osdata.c: Fix indentation.
1176 * p-lang.c: Fix indentation.
1177 * p-typeprint.c: Fix indentation.
1178 * p-valprint.c: Fix indentation.
1179 * parse.c: Fix indentation.
1180 * ppc-linux-nat.c: Fix indentation.
1181 * ppc-linux-tdep.c: Fix indentation.
1182 * ppc-nbsd-nat.c: Fix indentation.
1183 * ppc-nbsd-tdep.c: Fix indentation.
1184 * ppc-obsd-nat.c: Fix indentation.
1185 * ppc-ravenscar-thread.c: Fix indentation.
1186 * ppc-sysv-tdep.c: Fix indentation.
1187 * ppc64-tdep.c: Fix indentation.
1188 * printcmd.c: Fix indentation.
1189 * proc-api.c: Fix indentation.
1190 * producer.c: Fix indentation.
1191 * producer.h: Fix indentation.
1192 * prologue-value.c: Fix indentation.
1193 * prologue-value.h: Fix indentation.
1194 * psymtab.c: Fix indentation.
1195 * python/py-arch.c: Fix indentation.
1196 * python/py-bpevent.c: Fix indentation.
1197 * python/py-event.c: Fix indentation.
1198 * python/py-event.h: Fix indentation.
1199 * python/py-finishbreakpoint.c: Fix indentation.
1200 * python/py-frame.c: Fix indentation.
1201 * python/py-framefilter.c: Fix indentation.
1202 * python/py-inferior.c: Fix indentation.
1203 * python/py-infthread.c: Fix indentation.
1204 * python/py-objfile.c: Fix indentation.
1205 * python/py-prettyprint.c: Fix indentation.
1206 * python/py-registers.c: Fix indentation.
1207 * python/py-signalevent.c: Fix indentation.
1208 * python/py-stopevent.c: Fix indentation.
1209 * python/py-stopevent.h: Fix indentation.
1210 * python/py-threadevent.c: Fix indentation.
1211 * python/py-tui.c: Fix indentation.
1212 * python/py-unwind.c: Fix indentation.
1213 * python/py-value.c: Fix indentation.
1214 * python/py-xmethods.c: Fix indentation.
1215 * python/python-internal.h: Fix indentation.
1216 * python/python.c: Fix indentation.
1217 * ravenscar-thread.c: Fix indentation.
1218 * record-btrace.c: Fix indentation.
1219 * record-full.c: Fix indentation.
1220 * record.c: Fix indentation.
1221 * reggroups.c: Fix indentation.
1222 * regset.h: Fix indentation.
1223 * remote-fileio.c: Fix indentation.
1224 * remote.c: Fix indentation.
1225 * reverse.c: Fix indentation.
1226 * riscv-linux-tdep.c: Fix indentation.
1227 * riscv-ravenscar-thread.c: Fix indentation.
1228 * riscv-tdep.c: Fix indentation.
1229 * rl78-tdep.c: Fix indentation.
1230 * rs6000-aix-tdep.c: Fix indentation.
1231 * rs6000-lynx178-tdep.c: Fix indentation.
1232 * rs6000-nat.c: Fix indentation.
1233 * rs6000-tdep.c: Fix indentation.
1234 * rust-lang.c: Fix indentation.
1235 * rx-tdep.c: Fix indentation.
1236 * s12z-tdep.c: Fix indentation.
1237 * s390-linux-tdep.c: Fix indentation.
1238 * score-tdep.c: Fix indentation.
1239 * ser-base.c: Fix indentation.
1240 * ser-mingw.c: Fix indentation.
1241 * ser-uds.c: Fix indentation.
1242 * ser-unix.c: Fix indentation.
1243 * serial.c: Fix indentation.
1244 * sh-linux-tdep.c: Fix indentation.
1245 * sh-nbsd-tdep.c: Fix indentation.
1246 * sh-tdep.c: Fix indentation.
1247 * skip.c: Fix indentation.
1248 * sol-thread.c: Fix indentation.
1249 * solib-aix.c: Fix indentation.
1250 * solib-darwin.c: Fix indentation.
1251 * solib-frv.c: Fix indentation.
1252 * solib-svr4.c: Fix indentation.
1253 * solib.c: Fix indentation.
1254 * source.c: Fix indentation.
1255 * sparc-linux-tdep.c: Fix indentation.
1256 * sparc-nbsd-tdep.c: Fix indentation.
1257 * sparc-obsd-tdep.c: Fix indentation.
1258 * sparc-ravenscar-thread.c: Fix indentation.
1259 * sparc-tdep.c: Fix indentation.
1260 * sparc64-linux-tdep.c: Fix indentation.
1261 * sparc64-nbsd-tdep.c: Fix indentation.
1262 * sparc64-obsd-tdep.c: Fix indentation.
1263 * sparc64-tdep.c: Fix indentation.
1264 * stabsread.c: Fix indentation.
1265 * stack.c: Fix indentation.
1266 * stap-probe.c: Fix indentation.
1267 * stubs/ia64vms-stub.c: Fix indentation.
1268 * stubs/m32r-stub.c: Fix indentation.
1269 * stubs/m68k-stub.c: Fix indentation.
1270 * stubs/sh-stub.c: Fix indentation.
1271 * stubs/sparc-stub.c: Fix indentation.
1272 * symfile-mem.c: Fix indentation.
1273 * symfile.c: Fix indentation.
1274 * symfile.h: Fix indentation.
1275 * symmisc.c: Fix indentation.
1276 * symtab.c: Fix indentation.
1277 * symtab.h: Fix indentation.
1278 * target-float.c: Fix indentation.
1279 * target.c: Fix indentation.
1280 * target.h: Fix indentation.
1281 * tic6x-tdep.c: Fix indentation.
1282 * tilegx-linux-tdep.c: Fix indentation.
1283 * tilegx-tdep.c: Fix indentation.
1284 * top.c: Fix indentation.
1285 * tracefile-tfile.c: Fix indentation.
1286 * tracepoint.c: Fix indentation.
1287 * tui/tui-disasm.c: Fix indentation.
1288 * tui/tui-io.c: Fix indentation.
1289 * tui/tui-regs.c: Fix indentation.
1290 * tui/tui-stack.c: Fix indentation.
1291 * tui/tui-win.c: Fix indentation.
1292 * tui/tui-winsource.c: Fix indentation.
1293 * tui/tui.c: Fix indentation.
1294 * typeprint.c: Fix indentation.
1295 * ui-out.h: Fix indentation.
1296 * unittests/copy_bitwise-selftests.c: Fix indentation.
1297 * unittests/memory-map-selftests.c: Fix indentation.
1298 * utils.c: Fix indentation.
1299 * v850-tdep.c: Fix indentation.
1300 * valarith.c: Fix indentation.
1301 * valops.c: Fix indentation.
1302 * valprint.c: Fix indentation.
1303 * valprint.h: Fix indentation.
1304 * value.c: Fix indentation.
1305 * value.h: Fix indentation.
1306 * varobj.c: Fix indentation.
1307 * vax-tdep.c: Fix indentation.
1308 * windows-nat.c: Fix indentation.
1309 * windows-tdep.c: Fix indentation.
1310 * xcoffread.c: Fix indentation.
1311 * xml-syscall.c: Fix indentation.
1312 * xml-tdesc.c: Fix indentation.
1313 * xstormy16-tdep.c: Fix indentation.
1314 * xtensa-config.c: Fix indentation.
1315 * xtensa-linux-nat.c: Fix indentation.
1316 * xtensa-linux-tdep.c: Fix indentation.
1317 * xtensa-tdep.c: Fix indentation.
1318
e1f57067
AB
13192020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1320 Craig Blackmore <craig.blackmore@embecosm.com>
1321
1322 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
1323 as an unsigned value.
1324
ae7754b2
TT
13252020-11-01 Tom Tromey <tom@tromey.com>
1326
1327 * dbxread.c (dbx_end_psymtab): Update.
1328 * dwarf2/read.c (process_psymtab_comp_unit_reader)
1329 (build_type_psymtabs_reader): Update.
1330 * xcoffread.c (xcoff_end_psymtab): Update.
1331 * ctfread.c (scan_partial_symbols): Update.
1332 * psymtab.c (sort_pst_symbols): Remove.
1333 (partial_symtab::end): Rename from end_psymtab_common. Inline
1334 sort_pst_symbols.
1335 * psympriv.h (struct partial_symtab) <end>: New method.
1336 (end_psymtab_common): Don't declare.
1337
0684bb51
TT
13382020-11-01 Tom Tromey <tom@tromey.com>
1339
1340 * symmisc.c (count_psyms): New function.
1341 (print_objfile_statistics): Use it.
1342 * psymtab.c (append_psymbol_to_list): Remove.
1343 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
1344 * objfiles.h (struct objstats) <n_psyms>: Remove.
1345
089002bb
TT
13462020-11-01 Tom Tromey <tom@tromey.com>
1347
1348 * dbxread.c (dbx_end_psymtab): Update.
1349 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
1350 (build_type_psymtabs_reader): Update.
1351 * xcoffread.c (xcoff_end_psymtab): Update.
1352 * ctfread.c (scan_partial_symbols): Update.
1353 * psympriv.h (end_psymtab_common): Update.
1354 * psymtab.c (end_psymtab_common): Remove objfile parameter.
1355 (sort_pst_symbols): Likewise.
1356
525454d6
TT
13572020-11-01 Tom Tromey <tom@tromey.com>
1358
1359 * dbxread.c (dbx_symfile_read): Update.
1360 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
1361 * xcoffread.c (xcoff_initial_scan): Update.
1362 * psympriv.h (init_psymbol_list): Don't declare.
1363 * psymtab.c (init_psymbol_list): Remove.
1364
60bd1d53
JB
13652020-11-01 Joel Brobecker <brobecker@adacore.com>
1366
1367 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
1368 gnat_encoded_fixed_type_info. Update all callers.
1369
db99d0d0
JB
13702020-11-01 Joel Brobecker <brobecker@adacore.com>
1371
1372 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
1373 line too long.
1374
75f24e86
JB
13752020-11-01 Joel Brobecker <brobecker@adacore.com>
1376
1377 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
1378 cast_from_fixed. Update all callers.
1379 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
1380 Update all callers.
1381 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
1382 Update all callers.
1383 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
1384 ada_scaling_factor.
1385 * ada-typeprint.c: Replace call to ada_scaling_factor by call
1386 to print_gnat_encoded_fixed_point_type.
1387 * ada-valprint.c: Likewise.
1388
4f0469cd
AB
13892020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1390
1391 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
1392 (debug_prefixed_printf): Add check of debug_displaced flag.
1393 * linux-nat.c (linux_nat_debug_printf): Add check of
1394 debug_linux_nat flag.
1395
17417fb0
SM
13962020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1397
1398 * infrun.c (infrun_debug_printf_1): Remove.
1399 (displaced_debug_printf_1): Remove.
1400 (stop_all_threads): Use debug_prefixed_printf.
1401 * infrun.h (infrun_debug_printf_1): Remove.
1402 (infrun_debug_printf): Use debug_prefixed_printf.
1403 (displaced_debug_printf_1): Remove.
1404 (displaced_debug_printf): Use debug_prefixed_printf.
1405 * linux-nat.c (linux_nat_debug_printf_1): Remove.
1406 (linux_nat_debug_printf): Use debug_prefixed_printf.
1407
ad6dba1c
SM
14082020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1409
1410 * configure: Re-generate.
1411 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
1412 AC_LANG_PROGRAM.
1413
b6fb30ed
SM
14142020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1415
1416 * configure: Re-generate.
1417
5164c117
SM
14182020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1419
1420 * configure: Re-generate.
1421
864ca435
SM
14222020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1423
1424 * configure: Re-generate.
1425
b9442ec1
SM
14262020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1427
1428 * configure: Re-generate.
1429
294f2697
SM
14302020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1431
1432 * acinclude.m4: Modernize.
1433 * configure: Re-generate.
1434
5593a99a
SM
14352020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1436
1437 * configure.ac: Modernize.
1438 * configure: Re-generate.
1439
e41fda1d
SM
14402020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1441
1442 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
1443 * configure: Re-generate.
1444 * configure.ac: Remove AM_PROG_CC_STDC.
1445
91e1a0ed
SM
14462020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1447
1448 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
1449 AC_CANONICAL_SYSTEM.
1450 * configure: Re-generate.
1451
136821d9
SM
14522020-10-30 Simon Marchi <simon.marchi@efficios.com>
1453
1454 * infrun.h (displaced_debug_printf): New macro. Replace
1455 displaced debug prints throughout to use it.
1456 (displaced_debug_printf_1): New declaration.
1457 (displaced_step_dump_bytes): Return string, remove ui_file
1458 parameter, update all callers.
1459 * infrun.c (displaced_debug_printf_1): New function.
1460 (displaced_step_dump_bytes): Return string, remove ui_file
1461 parameter
1462
aa2045e7
SM
14632020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
1464
1465 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
1466
b1ec2735
TT
14672020-10-30 Tom Tromey <tromey@adacore.com>
1468
1469 * Makefile.in (stamp-init): Depend on config.status.
1470
b78b3a29
TBA
14712020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1472
1473 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
1474
d70bdd3c
PA
14752020-10-30 Pedro Alves <pedro@palves.net>
1476
1477 * thread.c (lookup_selected_frame): Move ...
1478 * frame.c (lookup_selected_frame): ... here.
1479
79952e69
PA
14802020-10-30 Pedro Alves <pedro@palves.net>
1481
1482 * blockframe.c (block_innermost_frame): Use get_selected_frame.
1483 * frame.c
1484 (scoped_restore_selected_frame::scoped_restore_selected_frame):
1485 Use save_selected_frame. Save language as well.
1486 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
1487 Use restore_selected_frame, and restore language as well.
1488 (selected_frame_id, selected_frame_level): New.
1489 (selected_frame): Update comments.
1490 (save_selected_frame, restore_selected_frame): New.
1491 (get_selected_frame): Use lookup_selected_frame.
1492 (get_selected_frame_if_set): Delete.
1493 (select_frame): Record selected_frame_level and selected_frame_id.
1494 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
1495 fields.
1496 (get_selected_frame): Make 'message' parameter optional.
1497 (get_selected_frame_if_set): Delete declaration.
1498 (select_frame): Update comments.
1499 (save_selected_frame, restore_selected_frame)
1500 (lookup_selected_frame): Declare.
1501 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
1502 * infrun.c (struct infcall_control_state) <selected_frame_level>:
1503 New field.
1504 (save_infcall_control_state): Use save_selected_frame.
1505 (restore_selected_frame): Delete.
1506 (restore_infcall_control_state): Use restore_selected_frame.
1507 * stack.c (select_frame_command_core, frame_command_core): Use
1508 get_selected_frame.
1509 * thread.c (restore_selected_frame): Rename to ...
1510 (lookup_selected_frame): ... this and make extern. Select the
1511 current frame if the frame level is -1.
1512 (scoped_restore_current_thread::restore): Also restore the
1513 language.
1514 (scoped_restore_current_thread::~scoped_restore_current_thread):
1515 Don't try/catch.
1516 (scoped_restore_current_thread::scoped_restore_current_thread):
1517 Save the language as well. Use save_selected_frame.
1518
58103c33
SM
15192020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1520
1521 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
1522 documentation.
1523 * gdbarch.h: Re-generate.
1524
40a53766
SM
15252020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1526
1527 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
1528 parameter.
1529 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
1530 Likewise.
1531 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1532 Likewise.
1533 * arch-utils.c (default_displaced_step_hw_singlestep):
1534 Likewise.
1535 * arch-utils.h (default_displaced_step_hw_singlestep):
1536 Likewise.
1537 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
1538 Likewise.
1539 * s390-tdep.c (s390_displaced_step_hw_singlestep):
1540 Likewise.
1541 * gdbarch.c: Re-generate.
1542 * gdbarch.h: Re-generate.
1543 * infrun.c (resume_1): Adjust.
1544
8407f91b
TT
15452020-10-29 Tom Tromey <tom@tromey.com>
1546
1547 * progspace.c (program_space::~program_space): Don't call
1548 exec_close.
1549
5008b3b2
TT
15502020-10-29 Tom Tromey <tom@tromey.com>
1551
1552 * exec.c (exec_target::close): Don't change current program
1553 space.
1554
d9eebde0
TT
15552020-10-29 Tom Tromey <tom@tromey.com>
1556
1557 * symfile.c (add_symbol_file_command): Update.
1558 * exec.c (program_space::add_target_sections): Rename.
1559 * symfile-mem.c (symbol_file_add_from_memory): Update.
1560 * progspace.h (struct program_space) <add_target_sections>:
1561 Declare new overload.
1562 * exec.h (add_target_sections_of_objfile): Don't declare.
1563
3769e227
TT
15642020-10-29 Tom Tromey <tom@tromey.com>
1565
1566 * solib.c (solib_map_sections): Update.
1567 * exec.c (program_space::add_target_sections): Now a method.
1568 (exec_file_attach): Update.
1569 * exec.h (add_target_sections): Don't declare.
1570 * progspace.h (struct program_space) <add_target_sections>:
1571 Declare.
1572
2a3f84af
TT
15732020-10-29 Tom Tromey <tom@tromey.com>
1574
1575 * progspace.h (struct program_space) <remove_target_sections>:
1576 Declare.
1577 * exec.c (program_space::remove_target_sections): Now a method.
1578 * exec.h (remove_target_sections): Don't declare.
1579
004eecfd
TT
15802020-10-29 Tom Tromey <tom@tromey.com>
1581
1582 * inferior.c (delete_inferior): Update.
1583 * progspace.c (program_space::empty): Rename from
1584 program_space_empty_p. Return bool.
1585 * progspace.h (struct program_space) <empty>: New method.
1586 (program_space_empty_p): Don't declare.
1587
e39fb971
TT
15882020-10-29 Tom Tromey <tom@tromey.com>
1589
1590 * progspace.c (program_space::~program_space): Don't call
1591 clear_program_space_solib_cache.
1592 (program_space::clear_solib_cache): Rename from
1593 clear_solib_cache.
1594 * solib.c (handle_solib_event): Update.
1595 * progspace.h (struct program_space) <clear_solib_cache>: New
1596 method.
1597 (clear_program_space_solib_cache): Don't declare.
1598
a42d7dd8
TT
15992020-10-29 Tom Tromey <tom@tromey.com>
1600
1601 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1602 * target.c (info_target_command): Update.
1603 * symfile.c (syms_from_objfile_1, finish_new_objfile)
1604 (symbol_file_clear, reread_symbols): Update.
1605 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
1606 * stabsread.c (scan_file_globals): Update.
1607 * solib.c (update_solib_list): Update.
1608 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
1609 (svr4_fetch_objfile_link_map, enable_break)
1610 (svr4_relocate_main_executable)
1611 (svr4_iterate_over_objfiles_in_search_order): Update.
1612 * solib-frv.c (lm_base, enable_break)
1613 (frv_relocate_main_executable): Update.
1614 (main_got, frv_fdpic_find_canonical_descriptor): Update.
1615 (frv_fetch_objfile_link_map): Update.
1616 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
1617 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
1618 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
1619 * remote.c (remote_target::get_offsets): Update.
1620 (remote_target::start_remote)
1621 (extended_remote_target::post_attach): Update.
1622 * objfiles.c (entry_point_address_query): Update.
1623 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
1624 * minsyms.c (get_symbol_leading_char): Update.
1625 * frame.c (inside_main_func): Update.
1626 * progspace.h (symfile_objfile): Remove macro.
1627
19f6550e
TT
16282020-10-29 Tom Tromey <tom@tromey.com>
1629
1630 * exec.c (exec_file_attach): Update.
1631 * progspace.c (program_space::exec_close): Update.
1632 * progspace.h (struct program_space) <ebfd>: Now a
1633 gdb_bfd_ref_ptr.
1634 <set_exec_bfd>: Change argument type.
1635 <exec_bfd>: Update.
1636
7e10abd1
TT
16372020-10-29 Tom Tromey <tom@tromey.com>
1638
1639 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1640 * symfile.c (reread_symbols): Update.
1641 * symfile-mem.c (add_symbol_file_from_memory_command)
1642 (add_vsyscall_page): Update.
1643 * source-cache.c (source_cache::get_plain_source_lines): Update.
1644 * solib-svr4.c (find_program_interpreter, elf_locate_base)
1645 (svr4_current_sos_direct, svr4_exec_displacement)
1646 (svr4_relocate_main_executable): Update.
1647 (svr4_iterate_over_objfiles_in_search_order): Update.
1648 * solib-frv.c (enable_break2, enable_break): Update.
1649 * solib-dsbt.c (lm_base, enable_break): Update.
1650 * solib-darwin.c (find_program_interpreter)
1651 (darwin_solib_create_inferior_hook): Update.
1652 * sol-thread.c (rw_common, ps_pdmodel): Update.
1653 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
1654 * remote.c (compare_sections_command)
1655 (remote_target::trace_set_readonly_regions): Update.
1656 * remote-sim.c (get_sim_inferior_data)
1657 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
1658 (gdbsim_target_open, gdbsim_target::files_info): Update.
1659 * exec.h (exec_bfd): Remove macro.
1660 * progspace.c (initialize_progspace): Update.
1661 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
1662 Update.
1663 * nto-procfs.c (nto_procfs_target::post_attach)
1664 (nto_procfs_target::create_inferior): Update.
1665 * maint.c (maintenance_info_sections): Update.
1666 * linux-thread-db.c (thread_db_target::get_thread_local_address):
1667 Update.
1668 * infcmd.c (post_create_inferior): Update.
1669 * gcore.c (default_gcore_arch, default_gcore_target): Update.
1670 (objfile_find_memory_regions): Update.
1671 * exec.c (validate_exec_file, exec_file_attach)
1672 (exec_read_partial_read_only, print_section_info): Update.
1673 * corelow.c (core_target_open): Update.
1674 * corefile.c (reopen_exec_file, validate_files): Update.
1675 * arm-tdep.c (gdb_print_insn_arm): Update.
1676 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
1677 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
1678 methods.
1679
b55221ab
TT
16802020-10-29 Tom Tromey <tom@tromey.com>
1681
1682 * progspace.h (current_target_sections): Remove macro.
1683 * solib-svr4.c (scan_dyntag): Update.
1684 * solib-dsbt.c (scan_dyntag): Update.
1685 * exec.c (exec_target::close): Update.
1686 (add_target_sections, add_target_sections_of_objfile)
1687 (remove_target_sections, exec_target::get_section_table)
1688 (exec_target::files_info, set_section_command)
1689 (exec_set_section_address, exec_target::has_memory)
1690 (exec_target::has_memory): Update.
1691
5a36e715
TT
16922020-10-29 Tom Tromey <tom@tromey.com>
1693
1694 * source-cache.c (source_cache::get_plain_source_lines): Use
1695 current_program_space.
1696 * corefile.c (reopen_exec_file): Use current_program_space.
1697 * exec.c (exec_file_attach): Use current_program_space.
1698 * exec.h (exec_bfd_mtime): Remove.
1699
784c8592
TT
17002020-10-29 Tom Tromey <tom@tromey.com>
1701
1702 * gcore.c (default_gcore_mach): Remove.
1703 (create_gcore_bfd): Update.
1704
8a4f1402
TT
17052020-10-29 Tom Tromey <tom@tromey.com>
1706
1707 * progspace.c (program_space::exec_close): New method, from
1708 exec_close in exec.c.
1709 * exec.c (exec_close): Move to progspace.c.
1710 (exec_target::close, exec_file_attach): Update.
1711 * progspace.h (struct program_space) <exec_close>: Declare
1712 method.
1713
c20cb686
TT
17142020-10-29 Tom Tromey <tom@tromey.com>
1715
1716 * progspace.h (struct program_space) <exec_filename>: Rename from
1717 pspace_exec_filename. Now a unique_xmalloc_ptr.
1718 * inferior.c (print_selected_inferior): Update.
1719 (print_inferior): Update.
1720 * mi/mi-main.c (print_one_inferior): Update.
1721 * exec.h (exec_filename): Remove macro.
1722 * corefile.c (get_exec_file): Update.
1723 * exec.c (exec_close): Update.
1724 (exec_file_attach): Update.
1725 * progspace.c (clone_program_space): Update.
1726 (print_program_space): Update.
1727
6be2a9ab
TT
17282020-10-29 Tom Tromey <tom@tromey.com>
1729
1730 * target-section.h (struct target_section): Add constructor.
1731 * exec.c (build_section_table, add_target_sections_of_objfile):
1732 Update.
1733 * corelow.c (core_target::build_file_mappings): Update.
1734
cfaa8f76
TBA
17352020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1736
1737 PR gdb/19318
1738 * inferior.c (detach_inferior_command): Restore the current thread.
1739 (kill_inferior_command): Ditto.
1740
1b00ef06
TV
17412020-10-28 Tom de Vries <tdevries@suse.de>
1742
1743 PR symtab/26772
1744 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
1745 map, check it in the "best match" loop.
1746
7f40ce1a
SM
17472020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1748
1749 * m32c-tdep.c: Remove unused includes.
1750
5eb9e3f5
SM
17512020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1752
1753 * xtensa-tdep.c: Remove includes.
1754
b1d4d8d1
TBA
17552020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1756
1757 * breakpoint.c (struct condition_command_opts): New struct.
1758 (condition_command_option_defs): New static global.
1759 (make_condition_command_options_def_group): New function.
1760 (condition_completer): Update to consider the '-force' flag.
1761 (condition_command): Use gdb::option for the '-force' flag.
1762
bd24c5d6
TV
17632020-10-27 Tom de Vries <tdevries@suse.de>
1764
1765 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
1766 symbols in section check.
1767
61eb46a4
TV
17682020-10-27 Tom de Vries <tdevries@suse.de>
1769
1770 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
1771
733d554a
TBA
17722020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1773
1774 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
1775 * breakpoint.c: Update the help text of the 'condition' and 'break'
1776 commands.
1777 (set_breakpoint_condition): Take a new bool parameter
1778 to control whether condition definition should be forced even when
1779 the condition expression is invalid in all of the current locations.
1780 (condition_command): Update the call to 'set_breakpoint_condition'.
1781 (find_condition_and_thread): Take the "-force-condition" flag into
1782 account.
1783 * linespec.c (linespec_keywords): Add "-force-condition" as an
1784 element.
1785 (FORCE_KEYWORD_INDEX): New #define.
1786 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
1787 as a keyword.
1788 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
1789 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
1790 * python/py-breakpoint.c (bppy_set_condition): Ditto.
1791 * NEWS: Mention the changes to the 'break' and 'condition' commands.
1792
b5fa468f
TBA
17932020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1794
1795 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
1796 * breakpoint.c (set_breakpoint_location_condition): New function.
1797 (set_breakpoint_condition): Disable a breakpoint location if parsing
1798 the condition string gives an error.
1799 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
1800 (build_target_condition_list): Ditto.
1801 (build_target_command_list): Ditto.
1802 (build_bpstat_chain): Ditto.
1803 (print_one_breakpoint_location): Ditto.
1804 (print_one_breakpoint): Ditto.
1805 (breakpoint_1): Ditto.
1806 (bp_location::bp_location): Ditto.
1807 (locations_are_equal): Ditto.
1808 (update_breakpoint_locations): Ditto.
1809 (enable_disable_bp_num_loc): Ditto.
1810 (init_breakpoint_sal): Use set_breakpoint_location_condition.
1811 (find_condition_and_thread_for_sals): New static function.
1812 (create_breakpoint): Call find_condition_and_thread_for_sals.
1813 (location_to_sals): Call find_condition_and_thread_for_sals instead
1814 of find_condition_and_thread.
1815
1c47ec3e
TV
18162020-10-26 Tom de Vries <tdevries@suse.de>
1817
1818 * dwarf2/read.c (process_full_comp_unit): Call
1819 dwarf2_find_base_address.
1820
6390859c
TT
18212020-10-26 Tom Tromey <tromey@adacore.com>
1822
1823 * gdbtypes.c (create_range_type): Revert previous patch. Add
1824 comment.
1825
d744f0f9
PA
18262020-10-26 Pedro Alves <pedro@palves.net>
1827
1828 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
1829 (my_waitpid): Use gdb::handle_eintr.
1830
006811bc
SM
18312020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
1832
1833 * acinclude.m4: Update ptrace.m4 path.
1834 * ptrace.m4: Moved to gdbsupport.
1835
c75e31a1
SM
18362020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1837
1838 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
1839 instead of target_gdbarch.
1840
32495661
SM
18412020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1842
1843 * jit.c (jit_reader_load_command): Pass current inferior.
1844 (jit_inferior_init): Change parameter type to inferior, use it.
1845 (jit_inferior_created): Remove.
1846 (jit_inferior_created_hook): Pass inferior parameter down.
1847 (_initialize_jit): Use jit_inferior_created_hook instead of
1848 jit_inferior_created.
1849 * jit.h (jit_inferior_created_hook): Add inferior parameter.
1850 * infrun.c (follow_exec): Pass inferior to
1851 jit_inferior_created_hook.
1852
3f66685e
SM
18532020-10-24 Simon Marchi <simon.marchi@efficios.com>
1854
1855 * linux-thread-db.c (check_pid_namespace_match): Add inferior
1856 parameter and use it.
1857 (thread_db_inferior_created): Pass inferior argument.
1858
a0ff652f
SM
18592020-10-24 Simon Marchi <simon.marchi@efficios.com>
1860
1861 * aix-thread.c (aix_thread_inferior_created): Add inferior
1862 parameter.
1863 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
1864 * dummy-frame.c (cleanup_dummy_frames): Likewise.
1865 * jit.c (jit_inferior_created): Likewise.
1866 * linux-thread-db.c (thread_db_inferior_created): Likewise.
1867 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
1868 * observable.h (inferior_created): Likewise.
1869 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
1870 * symfile-mem.c (add_vsyscall_page): Likewise.
1871 * infcmd.c (post_create_inferior): Pass inferior argument.
1872
3c67532c
JB
18732020-10-24 Joel Brobecker <brobecker@adacore.com>
1874
1875 GDB 10.1 released.
1876
8747316e
JB
18772020-10-23 Joel Brobecker <brobecker@adacore.com>
1878
1879 * ada-typeprint.c (ada_print_type): Remove superfluous second call
1880 to ada_check_typedef.
1881
1a0ea399
AB
18822020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1883
1884 * f-exp.y (f_parse): Rename to...
1885 (f_language::parser): ...this.
1886 * f-lang.c (f_get_encoding): Rename to...
1887 (f_language::get_encoding): ...this.
1888 (f_op_print_tab): Rename to...
1889 (f_language::op_print_tab): ...this.
1890 (exp_descriptor_f): Rename to...
1891 (f_language::exp_descriptor_tab): ...this.
1892 (class f_language): Moved to f-lang.h.
1893 (f_language::language_arch_info): New function, moved out of class
1894 declaration.
1895 (f_language::search_name_hash): Likewise.
1896 (f_language::lookup_symbol_nonlocal): Likewise.
1897 (f_language::get_symbol_name_matcher_inner): Likewise.
1898 * f-lang.h: Add 'valprint.h' include.
1899 (class f_language): Moved here from f-lang.c.
1900 * f-typeprint.c (f_type_print_args): Delete commented out
1901 declaration.
1902 (f_print_typedef): Rename to...
1903 (f_language::print_typedef): ...this.
1904 (f_print_type): Rename to...
1905 (f_language::print_type): ...this.
1906 (f_type_print_varspec_prefix): Delete declaration and rename to...
1907 (f_language::f_type_print_varspec_prefix): ...this.
1908 (f_type_print_varspec_suffix): Delete declaration and rename to...
1909 (f_language::f_type_print_varspec_suffix): ...this.
1910 (f_type_print_base): Delete declaration and rename to...
1911 (f_language::f_type_print_base): ...this.
1912 * f-valprint.c (f_value_print_inner): Rename to...
1913 (f_language::value_print_inner): ...this.
1914 * parse.c: Delete 'f-lang.h' include.
1915
88cefd9b
AB
19162020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1917
1918 * language.h (language_defn::print_type): Add variable names in
1919 declaration, and update header comment.
1920
5399db93
AB
19212020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1922
1923 * ada-lang.c (ada_language::demangle): Rename to...
1924 (ada_language::demangle_symbol): ...this.
1925 * c-lang.c (cplus_language::demangle): Rename to...
1926 (cplus_language::demangle_symbol): ...this.
1927 * d-lang.c (d_language::demangle): Rename to...
1928 (d_language::demangle_symbol): ...this.
1929 * f-lang.c (f_language::demangle): Rename to...
1930 (f_language::demangle_symbol): ...this.
1931 * go-lang.c (go_language::demangle): Rename to...
1932 (go_language::demangle_symbol): ...this.
1933 * language.c (language_demangle): Update call to demangle_symbol.
1934 (auto_or_unknown_language::demangle): Rename to...
1935 (auto_or_unknown_language::demangle_symbol): ...this.
1936 * language.h (language_defn::demangle): Rename to...
1937 (language_defn::demangle_symbol): ...this.
1938 * objc-lang.c (objc_language::demangle): Rename to...
1939 (objc_language::demangle_symbol): ...this.
1940 * rust-lang.c (rust_language::demangle): Rename to...
1941 (rust_language::demangle_symbol): ...this.
1942
4b2f86ef
AB
19432020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1944
1945 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
1946 (iterate_over_file_blocks): Replace use of macro with the macros
1947 definition.
1948
e74b39de
AB
19492020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1950
1951 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
1952 * valprint.c (maybe_print_array_index): Replace use of macro with
1953 the macros definition.
1954
00c696a6
AB
19552020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1956
1957 * ada-lang.c (ada_language::print_array_index): Call value_print
1958 directly.
1959 * language.c (language_defn::print_array_index): Likewise.
1960 * language.h (LA_VALUE_PRINT): Delete.
1961 * valprint.c (value_print): Call value_print on the
1962 current_language directly.
1963
d3b67c56
AB
19642020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1965
1966 * language.h (LA_PRINT_TYPEDEF): Delete.
1967 * typeprint.c (typedef_print): Call print_typedef directly on the
1968 current_language object.
1969
790e2a12
AB
19702020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1971
1972 * m2-exp.y (m2_parse): Rename to...
1973 (m2_language::parser): ...this. Update function signature.
1974 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
1975 (m2_op_print): Rename to...
1976 (m2_language::op_print_tab): ...this, and make const.
1977 (exp_descriptor_modula2): Rename to...
1978 (m2_language::exp_descriptor_modula2): ...this.
1979 (class m2_language): Move to m2-lang.h.
1980 (m2_language::language_arch_info): New function, moved out of
1981 class declaration.
1982 (m2_language::printchar): New function, body from m2_printchar.
1983 (m2_language::printstr): New function, moved out of class
1984 declaration.
1985 (m2_language::emitchar): Likewise.
1986 * m2-lang.h (m2_parse): Delete declaration.
1987 (m2_print_typedef): Delete declaration.
1988 (m2_value_print_inner): Delete declaration.
1989 (class m2_language): Class declaration moved from m2-lang.c,
1990 larger functions are left in m2-lang.c.
1991 * m2-typeprint.c (m2_print_typedef): Rename to...
1992 (m2_language::print_typedef): ...this, and update function
1993 signature.
1994 * m2-valprint.c (m2_value_print_inner): Rename to...
1995 (m2_language::value_print_inner): ...this, replace use of
1996 LA_PRINT_STRING with a direct call to printstr member function,
1997 and update recursive call.
1998
b01175fc
AB
19992020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2000
2001 * language.c (default_is_string_type_p): Delete, implementation
2002 moved into auto_or_unknown_language::is_string_type_p.
2003 (unk_op_print_tab): Moved into
2004 auto_or_unknown_language::opcode_print_table.
2005 (unknown_language_arch_info): Delete, implementation moved into
2006 auto_or_unknown_language::language_arch_info.
2007 (class auto_or_unknown_language): New class, member functions
2008 copied from unknown_language class, with some updates.
2009 (class unknown_language): Most member functions moved into
2010 auto_or_unknown_language class. Inherit from
2011 auto_or_unknown_language class.
2012 (class auto_language): Inherit from auto_or_unknown_language.
2013 Delete most member functions.
2014
1a97fe8c
HD
20152020-10-22 Hannes Domani <ssbssa@yahoo.de>
2016
2017 * stabsread.c (read_member_functions): Remove gdb_assert.
2018
6b9d0dfd
HD
20192020-10-22 Hannes Domani <ssbssa@yahoo.de>
2020
2021 * gdbtypes.c (init_complex_type): Check target type name.
2022
4b4bb603
SM
20232020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2024
2025 * target-debug.h (target_debug_print_struct_target_ops_p):
2026 Remove.
2027 (target_debug_print_async_callback_ftype_p): Remove.
2028 (target_debug_print_struct_trace_state_variable_p): Remove.
2029 (target_debug_print_struct_traceframe_info_p): Remove.
2030 (target_debug_print_VEC__btrace_block_s__pp): Remove.
2031 (target_debug_print_enum_btrace_format): Remove.
2032 (target_debug_print_enum_info_proc_what): Remove.
2033 (target_debug_print_thread_info_pp): Remove.
2034
24f5300a
SM
20352020-10-22 Simon Marchi <simon.marchi@efficios.com>
2036
2037 * target.h (struct target_ops) <make_corefile_notes>:
2038 Change return type to unique pointer.
2039 * target.c (dummy_make_corefile_notes): Likewise.
2040 * exec.c (struct exec_target) <make_corefile_notes>:
2041 Likewise.
2042 (exec_target::make_corefile_notes): Likewise.
2043 * procfs.c (class procfs_target) <make_corefile_notes>:
2044 Likewise.
2045 (procfs_do_thread_registers): Adjust to unique pointer.
2046 (struct procfs_corefile_thread_data): Add constructor.
2047 <note_data>: Change type to unique pointer.
2048 (procfs_corefile_thread_callback): Adjust to unique pointer.
2049 (procfs_target::make_corefile_notes): Change return type to
2050 unique pointer.
2051 * target-delegates.c: Re-generate.
2052 * gcore.c (write_gcore_file_1): Adjust.
2053 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
2054 New.
2055
5fb4027f
TV
20562020-10-22 Tom de Vries <tdevries@suse.de>
2057
2058 * block.c (find_block_in_blockvector): Make sure the returned block
2059 contains pc.
2060
4a636814
SM
20612020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2062
2063 PR gdb/26693
2064 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
2065 parameter.
2066 (load_cu): Pass existing CU.
2067 (process_imported_unit_die): Likewise.
2068 (follow_die_offset): Likewise.
2069
1bd57575
LM
20702020-10-22 Luis Machado <luis.machado@linaro.org>
2071
2072 * corelow.c (core_target::xfer_partial): Also check for an empty
2073 m_core_unavailable_mappings vector.
2074
6b4c676c
AB
20752020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2076
2077 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
2078 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
2079 * f-exp.y (arglist): Allow for a series of subranges.
2080 (subrange): Add cases for subranges with strides.
2081 * f-lang.c (value_f90_subarray): Catch use of array strides and
2082 throw an error.
2083 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
2084
f2d8e4c5
AB
20852020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2086
2087 * expprint.c (print_subexp_standard): Change enum range_type to
2088 range_flag and rename variables to match.
2089 (dump_subexp_body_standard): Likewise.
2090 * expression.h (enum range_type): Rename to...
2091 (enum range_flag): ...this.
2092 (range_types): Rename to...
2093 (range_flags): ...this.
2094 * f-lang.c (value_f90_subarray): Change enum range_type to
2095 range_flag and rename variables to match.
2096 * parse.c (operator_length_standard): Likewise.
2097 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
2098 range_type to range_flag.
2099 * rust-lang.c (rust_evaluate_funcall): Likewise.
2100 (rust_range): Likewise.
2101 (rust_compute_range): Likewise.
2102 (rust_subscript): Likewise.
2103
2f1b18db
AB
21042020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2105
2106 * expprint.c (print_subexp_standard): Update to reflect changes to
2107 enum range_type.
2108 (dump_subexp_body_standard): Likewise.
2109 * expression.h (enum range_type): Convert to a bit field enum, and
2110 make the enum unsigned.
2111 * f-exp.y (subrange): Update to reflect changes to enum
2112 range_type.
2113 * f-lang.c (value_f90_subarray): Likewise.
2114 * parse.c (operator_length_standard): Likewise.
2115 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
2116 * rust-lang.c (rust_range): Likewise.
2117 (rust_compute_range): Likewise.
2118 (rust_subscript): Likewise.
2119
a46d1843
SM
21202020-10-21 Simon Marchi <simon.marchi@efficios.com>
2121
2122 * infrun.c (displaced_step_in_progress_thread): Fix comment.
2123 (displaced_step_in_progress): Fix comment.
2124
c21f37a8
SM
21252020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
2126
2127 * gdbarch.sh (make_corefile_notes): Return unique pointer.
2128 * gdbarch.c: Re-generate.
2129 * gdbarch.h: Re-generate.
2130 * gcore.c (write_gcore_file_1): Adjust.
2131 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
2132 constructor.
2133 <note_data>: Change type to unique pointer.
2134 <abort_iteration>: Change type to bool.
2135 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
2136 (fbsd_collect_thread_registers): Return void, adjust.
2137 (struct fbsd_corefile_thread_data): Add construtor.
2138 <note_data>: Change type to unique pointer.
2139 (fbsd_corefile_thread): Adjust.
2140 (fbsd_make_corefile_notes): Return unique pointer, adjust.
2141 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
2142 to unique pointer, adjust.
2143 (struct linux_collect_regset_section_cb_data): Add constructor.
2144 <note_data>: Change type to unique pointer.
2145 <abort_iteration>: Change type to bool.
2146 (linux_collect_thread_registers): Return void, adjust.
2147 (struct linux_corefile_thread_data): Add constructor.
2148 <note_data>: Change type to unique pointer.
2149 (linux_corefile_thread): Adjust.
2150 (linux_make_corefile_notes): Return unique pointer, adjust.
2151
07fbbd01
SM
21522020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2153
2154 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
2155 * gdbarch.c: Re-generate.
2156 * gdbarch.h: Re-generate.
2157 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
2158 bool.
2159 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
2160 Likewise.
2161 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
2162 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
2163 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
2164 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
2165
39535193
SM
21662020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2167
2168 * gdbarch.sh: Make generated predicates return bool.
2169 * gdbarch.c: Re-generate.
2170 * gdbarch.h: Re-generate.
2171
ad523d01
TT
21722020-10-20 Tom Tromey <tom@tromey.com>
2173
2174 * varobj-iter.h (struct varobj_item): Remove typedef.
2175
c4464ade
SM
21762020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2177
2178 * infrun.c (currently_stepping): Change int to bool
2179 (maybe_software_singlestep): Likewise.
2180 (show_stop_on_solib_events): Likewise.
2181 (stepping_past_nonsteppable_watchpoint): Likewise.
2182 (displaced_step_in_progress_any_inferior): Likewise.
2183 (displaced_step_in_progress_thread): Likewise.
2184 (keep_going_stepped_thread): Likewise.
2185 (thread_still_needs_step_over): Likewise.
2186 (start_step_over): Likewise.
2187 (do_target_resume): Likewise.
2188 (resume_1): Likewise.
2189 (clear_proceed_status): Likewise.
2190 (thread_still_needs_step_over_bp): Likewise.
2191 (proceed): Likewise.
2192 (switch_back_to_stepped_thread): Likewise.
2193 (adjust_pc_after_break): Likewise.
2194 (stepped_in_from): Likewise.
2195 (handle_stop_requested): Likewise.
2196 (handle_syscall_event): Likewise.
2197 (handle_no_resumed): Likewise.
2198 (handle_inferior_event): Likewise.
2199 (finish_step_over): Likewise.
2200 (handle_signal_stop): Likewise.
2201 (process_event_stop_test): Likewise.
2202
2eb20436
SM
22032020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2204
2205 * infrun.c (get_displaced_stepping_state): Fix comment.
2206
e0c45ded
AS
22072020-10-20 Andreas Schwab <schwab@linux-m68k.org>
2208
2209 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
2210
22cc388e
TT
22112020-10-19 Tom Tromey <tromey@adacore.com>
2212
2213 PR tui/26719
2214 * tui/tui-winsource.h (struct tui_source_window_base)
2215 <refresh_window>: Rename from refresh_pad.
2216 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
2217 Rename from refresh_pad.
2218 (tui_source_window_base::show_source_content)
2219 (tui_source_window_base::do_scroll_horizontal): Update.
2220
3c6eb4d4
TBA
22212020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2222
2223 * thread.c (_initialize_thread): Fine-tune the help text of
2224 'info threads'.
2225
26703721
TBA
22262020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2227
2228 * frame.c: Remove the unused 'uinteger_option_def' type alias.
2229
61c26be8
MS
22302020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
2231
2232 * breakpoint.c (handle_jit_event): Add an argument, change how
2233 `jit_event_handler` is called.
2234
932539d7
TT
22352020-10-17 Tom Tromey <tom@tromey.com>
2236
2237 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
2238 (scan_xcoff_symtab): Update.
2239 * psymtab.h (class psymtab_storage) <global_psymbols,
2240 static_psymbols, current_global_psymbols,
2241 current_static_psymbols>: Remove.
2242 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
2243 (match_partial_symbol, lookup_partial_symbol): Update.
2244 (print_partial_symbols): Change parameters.
2245 (dump_psymtab, recursively_search_psymtabs)
2246 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
2247 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
2248 (concat): Remove.
2249 (end_psymtab_common): Simplify.
2250 (append_psymbol_to_list): Change parameters.
2251 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
2252 (init_psymbol_list): Simplify.
2253 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2254 * psympriv.h (struct partial_symtab) <empty>: New method.
2255 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
2256 Remove.
2257 <global_psymbols, static_psymbols>: New members.
2258 <add_psymbol>: New methods.
2259 (add_psymbol_to_list): Don't declare.
2260 (psymbol_placement): Move earlier.
2261 * mdebugread.c (parse_partial_symbols): Update.
2262 (handle_psymbol_enumerators): Change parameters.
2263 (mdebug_expand_psymtab): Update.
2264 * dwarf2/read.c (process_psymtab_comp_unit_reader)
2265 (add_partial_symbol): Update.
2266 * dwarf2/index-write.c (write_psymbols): Change parameters.
2267 (write_one_signatured_type): Update.
2268 (recursively_count_psymbols): Update.
2269 (recursively_write_psymbols): Update.
2270 (class debug_names) <recursively_write_psymbols>: Update.
2271 <write_psymbols>: Change parameters.
2272 <write_one_signatured_type>: Update.
2273 * dbxread.c (read_dbx_symtab): Update.
2274 (dbx_end_psymtab): Use partial_symtab::empty.
2275 * ctfread.c (struct ctf_context) <pst>: New member.
2276 (create_partial_symtab): Set it.
2277 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
2278 (scan_partial_symbols): Use the psymtab's context. Update.
2279
cfabbd35
TT
22802020-10-17 Tom Tromey <tom@tromey.com>
2281
2282 * valprint.c (generic_value_print): Remove comment.
2283 * m2-valprint.c (m2_value_print_inner): Remove comment.
2284 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
2285 type.
2286
520596f2
TV
22872020-10-17 Tom de Vries <tdevries@suse.de>
2288
2289 PR symtab/26317
2290 * source.c (select_source_symtab): Handling sal.symtab == NULL for
2291 symbol main.
2292
76547ab3
TV
22932020-10-14 Tom de Vries <tdevries@suse.de>
2294
2295 PR gdb/26733
2296 * solib.c (solib_contains_address_p): Handle
2297 'solib->sections == nullptr'.
2298
d3a07122
SM
22992020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2300
2301 PR gdb/26642
2302 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
2303 target can't do async.
2304 * target.c (target_wait): Assert that we don't pass
2305 TARGET_WNOHANG to a target that can't async.
2306
1b71cfcf
KR
23072020-10-13 Kamil Rytarowski <n54@gmx.com>
2308
2309 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
2310 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
2311 * alpha-bsd-nat.c: Adjust include.
2312 * alpha-bsd-tdep.h: Adjust comment.
2313 * alpha-nbsd-tdep.c: Rename to ...
2314 * alpha-netbsd-tdep.c: ... this, adjust include.
2315 * amd64-nbsd-nat.c: Rename to ...
2316 * amd64-netbsd-nat.c: ... this, adjust include.
2317 * amd64-nbsd-tdep.c: Rename to ...
2318 * amd64-netbsd-tdep.c: ... this, adjust include.
2319 * amd64-tdep.h: Adjust include.
2320 * arm-nbsd-nat.c: Rename to ...
2321 * arm-netbsd-nat.c: ... this, adjust include.
2322 * arm-nbsd-tdep.c: Rename to ...
2323 * arm-netbsd-tdep.c: ... this, adjust include.
2324 * arm-nbsd-tdep.h: Rename to ...
2325 * arm-netbsd-tdep.h: ... this, adjust include.
2326 * configure.nat: Adjust file lists.
2327 * configure.tgt: Likewise.
2328 * hppa-nbsd-nat.c: Rename to ...
2329 * hppa-netbsd-nat.c: ... this, adjust include.
2330 * hppa-nbsd-tdep.c: Rename to ...
2331 * hppa-netbsd-tdep.c: ... this, adjust include.
2332 * i386-nbsd-nat.c: Rename to ...
2333 * i386-netbsd-nat.c: ... this, adjust include.
2334 * i386-nbsd-tdep.c: Rename to ...
2335 * i386-netbsd-tdep.c: ... this, adjust include.
2336 * m68k-bsd-nat.c: Adjust include.
2337 * mips-nbsd-nat.c: Rename to ...
2338 * mips-netbsd-nat.c: ... this, adjust include.
2339 * mips-nbsd-tdep.c: Rename to ...
2340 * mips-netbsd-tdep.c: ... this, adjust include.
2341 * mips-nbsd-tdep.h: Rename to ...
2342 * mips-netbsd-tdep.h: ... this.
2343 * nbsd-nat.c: Rename to ...
2344 * netbsd-nat.c: ... this, adjust include.
2345 * nbsd-nat.h: Rename to ...
2346 * netbsd-nat.h: ... this, adjust include.
2347 * nbsd-tdep.c: Rename to ...
2348 * netbsd-tdep.c: ... this, adjust include.
2349 * nbsd-tdep.h: Rename to ...
2350 * netbsd-tdep.h: ... this.
2351 * ppc-nbsd-nat.c: Rename to ...
2352 * ppc-netbsd-nat.c: ... this, adjust include.
2353 * ppc-nbsd-tdep.c: Rename to ...
2354 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
2355 * ppc-nbsd-tdep.h: Rename to ...
2356 * ppc-netbsd-tdep.h: ... this.
2357 * sh-nbsd-nat.c: Rename to ...
2358 * sh-netbsd-nat.c: ... this, adjust include.
2359 * sh-nbsd-tdep.c: Rename to ...
2360 * sh-netbsd-tdep.c: ... this, adjust include.
2361 * sparc-nbsd-nat.c: Rename to ...
2362 * sparc-netbsd-nat.c: ... this.
2363 * sparc-nbsd-tdep.c: Rename to ...
2364 * sparc-netbsd-tdep.c: ... this, adjust include.
2365 * sparc64-nbsd-nat.c: Rename to ...
2366 * sparc64-netbsd-nat.c: ... this.
2367 * sparc64-nbsd-tdep.c: Rename to ...
2368 * sparc64-netbsd-tdep.c: ... this, adjust include.
2369 * sparc64-tdep.h: Adjust comment.
2370 * vax-bsd-nat.c: Adjust include.
2371 * vax-nbsd-tdep.c: Rename to ...
2372 * vax-netbsd-tdep.c: ... this, adjust include.
2373
d7a78e5c
TT
23742020-10-12 Tom Tromey <tom@tromey.com>
2375
2376 * target.h (struct target_ops) <get_section_table>: Update.
2377 (target_get_section_table): Update.
2378 * target.c (target_get_section_table, target_section_by_addr)
2379 (memory_xfer_partial_1): Update.
2380 * target-section.h (target_section_table): Now an alias.
2381 * target-delegates.c: Rebuild.
2382 * target-debug.h (target_debug_print_target_section_table_p):
2383 Rename from target_debug_print_struct_target_section_table_p.
2384 * symfile.c (build_section_addr_info_from_section_table): Update.
2385 * solib.c (solib_map_sections, solib_contains_address_p): Update.
2386 * solib-svr4.c (scan_dyntag): Update.
2387 * solib-dsbt.c (scan_dyntag): Update.
2388 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2389 Update.
2390 * record-full.c (record_full_core_target::xfer_partial): Update.
2391 * progspace.h (struct program_space) <target_sections>: Update.
2392 * exec.h (print_section_info): Update.
2393 * exec.c (exec_target::close, build_section_table)
2394 (add_target_sections, add_target_sections_of_objfile)
2395 (remove_target_sections, exec_on_vfork)
2396 (section_table_available_memory)
2397 (section_table_xfer_memory_partial)
2398 (exec_target::get_section_table, exec_target::xfer_partial)
2399 (print_section_info, set_section_command)
2400 (exec_set_section_address, exec_target::has_memory): Update.
2401 * corelow.c (core_target::build_file_mappings)
2402 (core_target::xfer_partial, core_target::info_proc_mappings)
2403 (core_target::info_proc_mappings): Update.
2404 * bfd-target.c (class target_bfd): Update
2405
eda214ce
TT
24062020-10-12 Tom Tromey <tom@tromey.com>
2407
2408 * progspace.c (program_space::~program_space): Don't call
2409 clear_section_table.
2410 * exec.h (clear_section_table): Don't declare.
2411 * exec.c (exec_target::close): Update.
2412 (clear_section_table): Remove.
2413
91840ee3
TT
24142020-10-12 Tom Tromey <tom@tromey.com>
2415
2416 * exec.c (add_target_sections_of_objfile): Simplify.
2417
2d128614
TT
24182020-10-12 Tom Tromey <tom@tromey.com>
2419
2420 * solib.c (solib_map_sections): Update.
2421 * record-full.c (record_full_core_open_1): Update.
2422 * exec.h (build_section_table): Return a target_section_table.
2423 * exec.c (exec_file_attach): Update.
2424 (build_section_table): Return a target_section_table.
2425 * corelow.c (core_target::core_target): Update.
2426 * bfd-target.c (target_bfd::target_bfd): Update.
2427
bb2a6777
TT
24282020-10-12 Tom Tromey <tom@tromey.com>
2429
2430 * target.c (target_section_by_addr, memory_xfer_partial_1):
2431 Update.
2432 * target-section.h (struct target_section_table): Use
2433 std::vector.
2434 * symfile.h (build_section_addr_info_from_section_table): Take a
2435 target_section_table.
2436 * symfile.c (build_section_addr_info_from_section_table): Take a
2437 target_section_table.
2438 * solist.h (struct so_list) <sections>: Change type.
2439 <sections_end>: Remove.
2440 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
2441 (solib_contains_address_p): Update.
2442 * solib-svr4.c (scan_dyntag): Update.
2443 * solib-dsbt.c (scan_dyntag): Update.
2444 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2445 Update.
2446 * record-full.c (record_full_core_start, record_full_core_end):
2447 Remove.
2448 (record_full_core_sections): New global.
2449 (record_full_core_open_1, record_full_core_target::xfer_partial):
2450 Update.
2451 * exec.h (build_section_table, section_table_xfer_memory_partial)
2452 (add_target_sections): Take a target_section_table.
2453 * exec.c (exec_file_attach, clear_section_table): Update.
2454 (resize_section_table): Remove.
2455 (build_section_table, add_target_sections): Take a
2456 target_section_table.
2457 (add_target_sections_of_objfile, remove_target_sections)
2458 (exec_on_vfork): Update.
2459 (section_table_available_memory): Take a target_section_table.
2460 (section_table_read_available_memory): Update.
2461 (section_table_xfer_memory_partial): Take a target_section_table.
2462 (print_section_info, set_section_command)
2463 (exec_set_section_address, exec_target::has_memory): Update.
2464 * corelow.c (class core_target) <m_core_section_table,
2465 m_core_file_mappings>: Remove braces.
2466 <~core_target>: Remove.
2467 (core_target::core_target): Update.
2468 (core_target::~core_target): Remove.
2469 (core_target::build_file_mappings)
2470 (core_target::xfer_memory_via_mappings)
2471 (core_target::xfer_partial, core_target::info_proc_mappings):
2472 Update.
2473 * bfd-target.c (target_bfd::xfer_partial): Update.
2474 (target_bfd::target_bfd): Update.
2475 (target_bfd::~target_bfd): Remove.
2476
7b466b10
TT
24772020-10-12 Tom Tromey <tom@tromey.com>
2478
2479 * target.h (struct target_section, struct target_section_table):
2480 Move to target-section.h.
2481 * target-section.h: New file.
2482
87a37e5e
PA
24832020-10-12 Pedro Alves <pedro@palves.net>
2484
2485 PR exp/26602
2486 * valops.c (struct struct_field_searcher): New.
2487 (update_search_result): Rename to ...
2488 (struct_field_searcher::update_result): ... this. Simplify
2489 prototype. Record all found fields.
2490 (do_search_struct_field): Rename to ...
2491 (struct_field_searcher::search): ... this. Simplify prototype.
2492 Maintain stack of visited baseclass path. Call update_result for
2493 fields too. Keep searching fields in baseclasses instead of
2494 stopping at the first found field.
2495 (search_struct_field): Use struct_field_searcher. When looking
2496 for fields, report ambiguous access attempts.
2497
9370fd51
AB
24982020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
2499
2500 * frame.c (inside_main_func): Check full symbols as well as
2501 minimal symbols.
2502
59c8a30b
JB
25032020-10-09 Joel Brobecker <brobecker@adacore.com>
2504
2505 * ada-lang.c (advance_wild_match): Rewrite the function's
2506 description. Change the type of target0, t0 and t1 to char.
2507
7c184d33
TT
25082020-10-09 Tom Tromey <tromey@adacore.com>
2509
2510 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
2511
5c4258f4
TT
25122020-10-09 Tom Tromey <tromey@adacore.com>
2513
2514 * ada-lang.h (ada_encode): Return std::string.
2515 * ada-lang.c (ada_encode_1): Return std::string.
2516 (ada_encode): Likewise.
2517 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
2518 Update.
2519 * ada-exp.y (block_lookup, write_var_or_type): Update.
2520
3d87245c
HD
25212020-10-09 Hannes Domani <ssbssa@yahoo.de>
2522
2523 PR exp/26714
2524 * printcmd.c (print_formatted): Handle void results as
2525 unformatted prints.
2526
bbb826f5
AB
25272020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2528
2529 * arch/aarch32.c (aarch32_create_target_description): Release the
2530 target_desc_up as late as possible.
2531 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2532 * arch/amd64.c (amd64_create_target_description): Likewise.
2533 * arch/arc.c (arc_create_target_description): Return a
2534 target_desc_up, don't release it.
2535 * arch/arc.h (arc_create_target_description): Update declaration.
2536 (arc_lookup_target_description): Move target_desc_up into the
2537 cache, and return a borrowed pointer.
2538 * arch/arm.c (arm_create_target_description): Release the
2539 target_desc_up as late as possible.
2540 * arch/i386.c (i386_create_target_description): Likewise.
2541 * arch/riscv.h (riscv_create_target_description): Update
2542 declaration to match definition.
2543 * arch/tic6x.c (tic6x_create_target_description): Release the
2544 target_desc_up as late as possible.
2545
361cb219
AB
25462020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2547
2548 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
2549 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
2550
f5c4b229
JV
25512020-10-09 Jan Vrany <jan.vrany@labware.com>
2552
2553 * source.c (directory_command): Notify observers that "directories"
2554 parameter has changed.
2555
b2701685
TT
25562020-10-08 Tom Tromey <tom@tromey.com>
2557
2558 * cli/cli-cmds.c (print_disassembly): Style function name and
2559 addresses. Add _() wrappers.
2560
ada508b6
SV
25612020-10-08 Shahab Vahedi <shahab@synopsys.com>
2562
2563 * NEWS: Mention ARC support in GDBserver.
2564
51a948fd
AB
25652020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
2566
2567 * arch/aarch32.c (aarch32_create_target_description): Release
2568 unique_ptr returned from allocate_target_description.
2569 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2570 * arch/amd64.c (amd64_create_target_description): Likewise.
2571 * arch/arc.c (arc_create_target_description): Likewise.
2572 * arch/arm.c (arm_create_target_description): Likewise.
2573 * arch/i386.c (i386_create_target_description): Likewise.
2574 * arch/riscv.c (riscv_create_target_description): Update return
2575 type. Handle allocate_target_description returning a unique_ptr.
2576 (riscv_lookup_target_description): Update to handle unique_ptr.
2577 * arch/tic6x.c (tic6x_create_target_description): Release
2578 unique_ptr returned from allocate_target_description.
2579 * features/microblaze-with-stack-protect.c: Regenerate.
2580 * features/microblaze.c: Regenerate.
2581 * features/mips-dsp-linux.c: Regenerate.
2582 * features/mips-linux.c: Regenerate.
2583 * features/mips64-dsp-linux.c: Regenerate.
2584 * features/mips64-linux.c: Regenerate.
2585 * features/nds32.c: Regenerate.
2586 * features/nios2.c: Regenerate.
2587 * features/or1k.c: Regenerate.
2588 * features/rs6000/powerpc-32.c: Regenerate.
2589 * features/rs6000/powerpc-32l.c: Regenerate.
2590 * features/rs6000/powerpc-403.c: Regenerate.
2591 * features/rs6000/powerpc-403gc.c: Regenerate.
2592 * features/rs6000/powerpc-405.c: Regenerate.
2593 * features/rs6000/powerpc-505.c: Regenerate.
2594 * features/rs6000/powerpc-601.c: Regenerate.
2595 * features/rs6000/powerpc-602.c: Regenerate.
2596 * features/rs6000/powerpc-603.c: Regenerate.
2597 * features/rs6000/powerpc-604.c: Regenerate.
2598 * features/rs6000/powerpc-64.c: Regenerate.
2599 * features/rs6000/powerpc-64l.c: Regenerate.
2600 * features/rs6000/powerpc-7400.c: Regenerate.
2601 * features/rs6000/powerpc-750.c: Regenerate.
2602 * features/rs6000/powerpc-860.c: Regenerate.
2603 * features/rs6000/powerpc-altivec32.c: Regenerate.
2604 * features/rs6000/powerpc-altivec32l.c: Regenerate.
2605 * features/rs6000/powerpc-altivec64.c: Regenerate.
2606 * features/rs6000/powerpc-altivec64l.c: Regenerate.
2607 * features/rs6000/powerpc-e500.c: Regenerate.
2608 * features/rs6000/powerpc-e500l.c: Regenerate.
2609 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
2610 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
2611 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
2612 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
2613 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
2614 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
2615 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
2616 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
2617 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
2618 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
2619 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
2620 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
2621 * features/rs6000/powerpc-vsx32.c: Regenerate.
2622 * features/rs6000/powerpc-vsx32l.c: Regenerate.
2623 * features/rs6000/powerpc-vsx64.c: Regenerate.
2624 * features/rs6000/powerpc-vsx64l.c: Regenerate.
2625 * features/rs6000/rs6000.c: Regenerate.
2626 * features/rx.c: Regenerate.
2627 * features/s390-gs-linux64.c: Regenerate.
2628 * features/s390-linux32.c: Regenerate.
2629 * features/s390-linux32v1.c: Regenerate.
2630 * features/s390-linux32v2.c: Regenerate.
2631 * features/s390-linux64.c: Regenerate.
2632 * features/s390-linux64v1.c: Regenerate.
2633 * features/s390-linux64v2.c: Regenerate.
2634 * features/s390-te-linux64.c: Regenerate.
2635 * features/s390-tevx-linux64.c: Regenerate.
2636 * features/s390-vx-linux64.c: Regenerate.
2637 * features/s390x-gs-linux64.c: Regenerate.
2638 * features/s390x-linux64.c: Regenerate.
2639 * features/s390x-linux64v1.c: Regenerate.
2640 * features/s390x-linux64v2.c: Regenerate.
2641 * features/s390x-te-linux64.c: Regenerate.
2642 * features/s390x-tevx-linux64.c: Regenerate.
2643 * features/s390x-vx-linux64.c: Regenerate.
2644 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
2645 from allocate_target_description.
2646 * target-descriptions.c (allocate_target_description): Update
2647 return type.
2648 (print_c_tdesc::visit_pre): Release unique_ptr returned from
2649 allocate_target_description.
2650
485c47e5
TT
26512020-10-07 Tom Tromey <tromey@adacore.com>
2652
2653 * unittests/search-memory-selftests.c: New file.
2654 * Makefile.in (SELFTESTS_SRCS): Add
2655 unittests/search-memory-selftests.c.
2656
3a135a91
TT
26572020-10-07 Tom Tromey <tromey@adacore.com>
2658
2659 PR gdb/16930:
2660 * findcmd.c (_initialize_mem_search): Mention that the range is
2661 inclusive.
2662
4a72de73
TT
26632020-10-07 Tom Tromey <tromey@adacore.com>
2664
2665 * target.h (simple_search_memory): Don't declare.
2666 * target.c (simple_search_memory): Move to gdbsupport.
2667 (default_search_memory): Update.
2668 * remote.c (remote_target::search_memory): Update.
2669
a038ffd8
SM
26702020-10-07 Simon Marchi <simon.marchi@efficios.com>
2671
2672 * Makefile.in (COMPILE): Add CXXFLAGS.
2673 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
2674 (check-headers): Add CXXFLAGS.
2675
cc463201
AK
26762020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
2677
2678 * arc-linux-tdep.h: New file.
2679 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
2680 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
2681 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
2682 arc_linux_gregset, arc_linux_v2_regset,
2683 arc_linux_iterate_over_regset_sections,
2684 arc_linux_core_read_description): Implement.
2685 (arc_linux_init_osabi): Set iterate_over_regset_sections.
2686 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
2687 (arc_gdbarch_features_create): Add.
2688 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
2689
e4bd363f
SV
26902020-10-07 Shahab Vahedi <shahab@synopsys.com>
2691
2692 * arch/arc.h: Rename "arc_gdbarch_features" to
2693 "arc_arch_features".
2694 * arc-tdep.h: Likewise.
2695 * arc-tdep.c: Likewise.
2696
b68bef99
TBA
26972020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2698
2699 * infcmd.c (attach_command): Remove the redundant call to
2700 `clear_proceed_status`.
2701
4641551a
KR
27022020-10-07 Kamil Rytarowski <n54@gmx.com>
2703
2704 * nat/netbsd-nat.c (write_memory, read_memory): Update.
2705
91e5e8db
KR
27062020-10-07 Kamil Rytarowski <n54@gmx.com>
2707
2708 * nat/netbsd-nat.c (write_memory, read_memory): Add.
2709 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
2710 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
2711
64c03bdb
SM
27122020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
2713
2714 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
2715 (_initialize_break_catch_sig): Don't allocate array.
2716
31a8f60f
AB
27172020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
2718
2719 * symtab.c (find_pc_line): Return unmapped addresses when the
2720 requested address is also unmapped.
2721
9e6dbd8b
SM
27222020-10-05 Simon Marchi <simon.marchi@efficios.com>
2723
2724 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
2725 tui/tui-out.h.
2726
a1d217e8
SM
27272020-10-05 Simon Marchi <simon.marchi@efficios.com>
2728
2729 * amd64-windows-tdep.c (amd64_windows_return_value): Use
2730 type::is_vector instead of TYPE_VECTOR.
2731
7d144117
SM
27322020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
2733
2734 * auto-load.c (auto_load_objfile_script_1): Don't use
2735 debugfile_holder as temporary variable when stripping drive
2736 letter.
2737
cd096ec8
HD
27382020-10-05 Hannes Domani <ssbssa@yahoo.de>
2739
2740 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
2741 Add TYPE_CODE_COMPLEX.
2742 (amd64_windows_return_value): Fix types returned via XMM0.
2743
b58e7f72
AH
27442020-10-05 Alan Hayward <alan.hayward@arm.com>
2745
2746 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
2747 AArch64/ARM maintainers.
2748
8d378f27
SM
27492020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
2750
2751 * NEWS: Mention set/show debug event-loop.
2752
d5519913
TT
27532020-10-02 Tom Tromey <tromey@adacore.com>
2754
2755 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
2756 REG_EXTENDED.
2757
18b67edc
SM
27582020-10-02 Simon Marchi <simon.marchi@efficios.com>
2759
2760 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
2761 * procfs.c (procfs_inferior_created): Remove.
2762 (_initialize_procfs): Don't register procfs_inferior_created.
2763
6b01403b
SM
27642020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2765
2766 * async-event.c (invoke_async_signal_handlers): Add debug
2767 print.
2768 (check_async_event_handlers): Likewise.
2769 * event-top.c (show_debug_event_loop): New function.
2770 (_initialize_event_top): Register "set debug event-loop"
2771 setting.
2772
ba988419
SM
27732020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2774
2775 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
2776 * debug.h: Remove.
2777 * infrun.c: Include gdbsupport/common-debug.h.
2778 * linux-nat.c: Likewise.
2779
db20ebdf
SM
27802020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2781
2782 * async-event.h (create_async_signal_handler): Add name
2783 parameter.
2784 (create_async_event_handler): Likewise.
2785 * async-event.c (struct async_signal_handler) <name>: New field.
2786 (struct async_event_handler) <name>: New field.
2787 (create_async_signal_handler): Assign name.
2788 (create_async_event_handler): Assign name.
2789 * event-top.c (async_init_signals): Pass name when creating
2790 handler.
2791 * infrun.c (_initialize_infrun): Likewise.
2792 * record-btrace.c (record_btrace_push_target): Likewise.
2793 * record-full.c (record_full_open): Likewise.
2794 * remote-notif.c (remote_notif_state_allocate): Likewise.
2795 * remote.c (remote_target::open_1): Likewise.
2796 * tui/tui-win.c (tui_initialize_win): Likewise.
2797
2554f6f5
SM
27982020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2799
2800 * async-event.c (initialize_async_signal_handlers): Pass name to
2801 add_file_handler
2802 * event-top.c (ui_register_input_event_handler): Likewise.
2803 * linux-nat.c (linux_nat_target::async): Likewise.
2804 * run-on-main-thread.c (_initialize_run_on_main_thread):
2805 Likewise
2806 * ser-base.c (reschedule): Likewise.
2807 (ser_base_async): Likewise.
2808 * tui/tui-io.c: Likewise.
2809 * top.h (struct ui) <num>: New field.
2810 * top.c (highest_ui_num): New variable.
2811 (ui::ui): Initialize num.
2812
a7aba266
SM
28132020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2814
2815 * observable.h <inferior_created>: Remove parameters. Update all
2816 listeners.
2817 * inferior.h (post_create_inferior): Remove target parameter.
2818 Update all callers.
2819
048fde1e 28202020-10-02 Nitika Achra <Nitika.Achra@amd.com>
2821
2822 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
2823 and DW_MACRO_undef_strx.
2824 (dwarf_decode_macros): Likewise
2825 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
2826 which is the value of DW_AT_str_offsets_base.
2827 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
2828 str_offsets_base.
2829
064280be
KR
28302020-10-01 Kamil Rytarowski <n54@gmx.com>
2831
2832 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
2833
6ff33035
KR
28342020-10-01 Kamil Rytarowski <n54@gmx.com>
2835
2836 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
2837 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
2838
1eb6eb79
KR
28392020-10-01 Kamil Rytarowski <n54@gmx.com>
2840
2841 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
2842
95eb9e54
TV
28432020-09-30 Tom de Vries <tdevries@suse.de>
2844
2845 PR symtab/26683
2846 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
2847
cae21f8e
TT
28482020-09-30 Tom Tromey <tromey@adacore.com>
2849
2850 * dwarf2/read.c (handle_variant): Use constant_value.
2851
529908cb
TT
28522020-09-29 Tom Tromey <tom@tromey.com>
2853
2854 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
2855 (read_file_scope, dwarf2_get_pc_bounds)
2856 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
2857 (read_structure_type, handle_struct_member_die)
2858 (read_enumeration_type, read_array_type, read_set_type)
2859 (read_tag_pointer_type, read_tag_reference_type)
2860 (read_subroutine_type, read_base_type, read_subrange_type)
2861 (read_full_die_1, partial_die_info::read)
2862 (partial_die_info::read, by, new_symbol)
2863 (dwarf2_const_value_data, dwarf2_const_value_attr)
2864 (dump_die_shallow, dwarf2_fetch_constant_bytes)
2865 (prepare_one_comp_unit): Update.
2866 * dwarf2/attribute.h (DW_UNSND): Remove.
2867
c45bc3f8
TT
28682020-09-29 Tom Tromey <tom@tromey.com>
2869
2870 * dwarf2/read.c (read_func_scope, prototyped_function_p)
2871 (read_subroutine_type, partial_die_info::read)
2872 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
2873 (dwarf2_add_member_fn): Update.
2874 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
2875 * dwarf2/attribute.c (attribute::as_boolean): New method.
2876
23dca5c3
TT
28772020-09-29 Tom Tromey <tom@tromey.com>
2878
2879 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
2880 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
2881 method.
2882 * dwarf2/attribute.c (attribute::as_virtuality): New method.
2883
52c14d11
TT
28842020-09-29 Tom Tromey <tom@tromey.com>
2885
2886 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
2887 the attribute's form.
2888
e8e5c158
TT
28892020-09-29 Tom Tromey <tom@tromey.com>
2890
2891 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
2892 (dwarf2_add_member_fn): Update.
2893 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
2894 * dwarf2/attribute.c (attribute::defaulted): New method, from
2895 is_valid_DW_AT_defaulted.
2896
d4df075e
TT
28972020-09-29 Tom Tromey <tom@tromey.com>
2898
2899 * dwarf2/read.c (dw2_get_file_names_reader)
2900 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
2901 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
2902 (dwarf2_symbol_mark_computed): Use as_unsigned.
2903 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
2904 method.
2905 <form_is_section_offset>: Update comment.
2906
bf23a268
TT
29072020-09-29 Tom Tromey <tom@tromey.com>
2908
2909 * dwarf2/read.c (dwarf2_access_attribute): Rename from
2910 dwarf2_default_access_attribute. Look up attribute.
2911 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
2912 Update.
2913
7a5f294d
TT
29142020-09-29 Tom Tromey <tom@tromey.com>
2915
2916 * dwarf2/read.c (skip_one_die): Update.
2917 (read_full_die_1): Change how reprocessing is done.
2918 (partial_die_info::read): Update.
2919 (read_attribute_value): Remove need_reprocess parameter.
2920 (read_attribute): Likewise.
2921 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
2922 New method.
2923
36d378cf
TT
29242020-09-29 Tom Tromey <tom@tromey.com>
2925
2926 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
2927 (dwarf2_const_value_attr, dump_die_shallow)
2928 (dwarf2_fetch_constant_bytes): Update.
2929 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
2930 comment.
2931 <set_address>: New method.
2932 (DW_ADDR): Remove.
2933 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
2934 (attribute::as_string, attribute::as_address): Add assert.
2935
fe56917a
TT
29362020-09-29 Tom Tromey <tom@tromey.com>
2937
2938 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
2939 (read_attribute_reprocess, read_attribute_value): Update.
2940 (read_attribute): Clear requires_reprocessing.
2941 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
2942 form_requires_reprocessing>: New methods.
2943 <string_init>: Clear requires_reprocessing.
2944 <set_unsigned_reprocess>: New method.
2945 <name>: Shrink by one bit.
2946 <requires_reprocessing>: New member.
2947 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
2948 method.
2949
414ad644
TT
29502020-09-29 Tom Tromey <tom@tromey.com>
2951
2952 * dwarf2/read.c (read_attribute_value): Update.
2953 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
2954 set_unsigned>: New methods.
2955 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
2956
1bc397c5
TT
29572020-09-29 Tom Tromey <tom@tromey.com>
2958
2959 * dwarf2/read.c (get_alignment, read_array_order)
2960 (read_attribute_value, dwarf2_const_value_attr)
2961 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
2962 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
2963 New methods.
2964 (DW_SND): Remove.
2965
630ed6b9
TT
29662020-09-29 Tom Tromey <tom@tromey.com>
2967
2968 * dwarf2/read.c (read_attribute_value, lookup_die_type)
2969 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
2970 Update.
2971 * dwarf2/attribute.h (struct attribute) <as_signature,
2972 set_signature>: New methods.
2973 (DW_SIGNATURE): Remove.
2974
9d2246fc
TT
29752020-09-29 Tom Tromey <tom@tromey.com>
2976
2977 * dwarf2/read.c (read_call_site_scope)
2978 (handle_data_member_location, dwarf2_add_member_fn)
2979 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
2980 (partial_die_info::read, read_attribute_value)
2981 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
2982 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
2983 (dwarf2_symbol_mark_computed): Update.
2984 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
2985 methods.
2986 (DW_BLOCK): Remove.
2987 * dwarf2/attribute.c (attribute::form_is_block): Add
2988 DW_FORM_data16.
2989
c6481205
TT
29902020-09-29 Tom Tromey <tom@tromey.com>
2991
2992 * dwarf2/read.c (read_cutu_die_from_dwo)
2993 (read_attribute_reprocess, read_attribute_value, read_attribute)
2994 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
2995 (dwarf2_fetch_constant_bytes): Update.
2996 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
2997 <set_string_noncanonical, set_string_canonical>: New methods.
2998 <string_is_canonical>: Update comment.
2999 <canonical_string_p>: Add assert.
3000 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
3001 * dwarf2/attribute.c (attribute::form_is_string): New method.
3002 (attribute::string): Use it.
3003
3b64bf15
TT
30042020-09-29 Tom Tromey <tom@tromey.com>
3005
3006 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
3007 (dump_die_shallow): Use canonical_string_p.
3008 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
3009 method.
3010
2c830f54
TT
30112020-09-29 Tom Tromey <tom@tromey.com>
3012
3013 * dwarf2/read.c (partial_die_info::read)
3014 (dwarf2_const_value_attr, anonymous_struct_prefix, )
3015 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
3016 attribute::as_string.
3017
6c412691
TT
30182020-09-29 Tom Tromey <tom@tromey.com>
3019
3020 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
3021 DW_ADDR.
3022 (attribute::string): Don't use DW_STRING.
3023 (attribute::get_ref_die_offset): Don't use DW_UNSND.
3024 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
3025
95f982e5
TT
30262020-09-29 Tom Tromey <tom@tromey.com>
3027
3028 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
3029 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
3030 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
3031 * dwarf2/attribute.h (struct attribute): Rename methods.
3032 * dwarf2/attribute.c (attribute::as_address): Rename from
3033 value_as_address.
3034 (attribute::as_string): Rename from value_as_string.
3035
f800b00e
TT
30362020-09-29 Tom Tromey <tom@tromey.com>
3037
3038 * dwarf2/read.c (partial_die_info::read) <case
3039 DW_AT_linkage_name>: Use value_as_string.
3040 (dwarf2_string_attr): Use value_as_string.
3041 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
3042 method.
3043 * dwarf2/attribute.c (attribute::value_as_string): New method.
3044
de38d64a
PA
30452020-09-29 Pedro Alves <pedro@palves.net>
3046
3047 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
3048 defined before using '#pragma GCC diagnostic' instead of checking
3049 __clang__.
3050
9aed480c
TT
30512020-09-28 Tom Tromey <tom@tromey.com>
3052
3053 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
3054 (handle_signal_stop): Update.
3055 * procfs.c (procfs_target::insert_watchpoint): Update.
3056 * target.h (target_have_steppable_watchpoint): Now a function.
3057
8a3ecb79
TT
30582020-09-28 Tom Tromey <tom@tromey.com>
3059
3060 * infrun.c (set_schedlock_func): Update.
3061 * target.h (target_can_lock_scheduler): Now a function.
3062
55f6301a
TT
30632020-09-28 Tom Tromey <tom@tromey.com>
3064
3065 * inferior.h (class inferior) <has_execution>: Update.
3066 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
3067 * valops.c (find_function_in_inferior)
3068 (value_allocate_space_in_inferior): Update.
3069 * top.c (kill_or_detach): Update.
3070 * target.c (target_preopen, set_target_permissions): Update.
3071 (target_has_execution_current): Remove.
3072 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
3073 Update.
3074 * solib.c (update_solib_list, reload_shared_libraries): Update.
3075 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
3076 * solib-dsbt.c (enable_break): Update.
3077 * score-tdep.c (score7_fetch_inst): Update.
3078 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
3079 Update.
3080 * remote.c (remote_target::start_remote)
3081 (remote_target::remote_check_symbols, remote_target::open_1)
3082 (remote_target::remote_detach_1, remote_target::verify_memory)
3083 (remote_target::xfer_partial, remote_target::read_description)
3084 (remote_target::get_min_fast_tracepoint_insn_len): Update.
3085 * record-full.c (record_full_open_1): Update.
3086 * record-btrace.c (record_btrace_target_open): Update.
3087 * objc-lang.c (lookup_objc_class, lookup_child_selector)
3088 (value_nsstring): Update.
3089 * linux-thread-db.c (add_thread_db_info)
3090 (thread_db_find_new_threads_silently, check_thread_db_callback)
3091 (try_thread_db_load_1, record_thread): Update.
3092 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
3093 Update.
3094 * linux-fork.c (checkpoint_command): Update.
3095 * infrun.c (set_non_stop, set_observer_mode)
3096 (check_multi_target_resumption, for_each_just_stopped_thread)
3097 (maybe_remove_breakpoints, normal_stop)
3098 (class infcall_suspend_state): Update.
3099 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
3100 (info_program_command, attach_command): Update.
3101 * infcall.c (call_function_by_hand_dummy): Update.
3102 * inf-loop.c (inferior_event_handler): Update.
3103 * gcore.c (gcore_command, derive_heap_segment): Update.
3104 * exec.c (exec_file_command): Update.
3105 * eval.c (evaluate_subexp): Update.
3106 * compile/compile.c (compile_to_object): Update.
3107 * cli/cli-dump.c (restore_command): Update.
3108 * breakpoint.c (update_watchpoint)
3109 (update_inserted_breakpoint_locations)
3110 (insert_breakpoint_locations, get_bpstat_thread): Update.
3111 * target.h (target_has_execution): Remove macro.
3112 (target_has_execution_current): Don't declare.
3113 (target_has_execution): Rename from target_has_execution_1. Add
3114 argument default.
3115
05374cfd
TT
31162020-09-28 Tom Tromey <tom@tromey.com>
3117
3118 * mi/mi-main.c (exec_reverse_continue)
3119 (mi_cmd_list_target_features): Update.
3120 * infrun.c (set_exec_direction_func): Update.
3121 * target.c (default_execution_direction): Update.
3122 * reverse.c (exec_reverse_once): Update.
3123 * target.h (target_can_execute_reverse): Now a function.
3124
9dccd06e
TT
31252020-09-28 Tom Tromey <tom@tromey.com>
3126
3127 * tui/tui-regs.c (tui_get_register)
3128 (tui_data_window::show_registers): Update.
3129 * thread.c (scoped_restore_current_thread::restore)
3130 (scoped_restore_current_thread::scoped_restore_current_thread):
3131 Update.
3132 * regcache-dump.c (regcache_print): Update.
3133 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
3134 Update.
3135 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
3136 * mep-tdep.c (current_me_module, current_options): Update.
3137 * linux-thread-db.c (thread_db_load): Update.
3138 * infcmd.c (registers_info, info_vector_command)
3139 (info_float_command): Update.
3140 * ia64-tdep.c (ia64_frame_prev_register)
3141 (ia64_sigtramp_frame_prev_register): Update.
3142 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
3143 * gcore.c (derive_stack_segment): Update.
3144 * frame.c (get_current_frame, has_stack_frames): Update.
3145 * findvar.c (language_defn::read_var_value): Update.
3146 * arm-tdep.c (arm_pc_is_thumb): Update.
3147 * target.c (target_has_registers): Rename from
3148 target_has_registers_1.
3149 * target.h (target_has_registers): Remove macro.
3150 (target_has_registers): Rename from target_has_registers_1.
3151
841de120
TT
31522020-09-28 Tom Tromey <tom@tromey.com>
3153
3154 * windows-tdep.c (tlb_make_value): Update.
3155 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3156 * thread.c (scoped_restore_current_thread::restore)
3157 (scoped_restore_current_thread::scoped_restore_current_thread)
3158 (thread_command): Update.
3159 * stack.c (backtrace_command_1, frame_apply_level_command)
3160 (frame_apply_all_command, frame_apply_command): Update.
3161 * infrun.c (siginfo_make_value, restore_infcall_control_state):
3162 Update.
3163 * gcore.c (derive_stack_segment): Update.
3164 * frame.c (get_current_frame, has_stack_frames): Update.
3165 * auxv.c (info_auxv_command): Update.
3166 * ada-tasks.c (ada_build_task_list): Update.
3167 * target.c (target_has_stack): Rename from target_has_stack_1.
3168 * target.h (target_has_stack): Remove macro.
3169 (target_has_stack): Rename from target_has_stack_1.
3170
a739972c
TT
31712020-09-28 Tom Tromey <tom@tromey.com>
3172
3173 * target.c (target_has_memory): Rename from target_has_memory_1.
3174 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3175 * thread.c (scoped_restore_current_thread::restore)
3176 (scoped_restore_current_thread::scoped_restore_current_thread):
3177 Update.
3178 * frame.c (get_current_frame, has_stack_frames): Update.
3179 * target.h (target_has_memory): Remove macro.
3180 (target_has_memory): Rename from target_has_memory_1.
3181
5b8a4776
TT
31822020-09-28 Tom Tromey <tom@tromey.com>
3183
3184 * target.c (target_has_all_memory_1): Remove.
3185 * target.h (target_has_all_memory): Remove define.
3186 (target_has_all_memory_1): Don't declare.
3187
bd356ec6
SM
31882020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
3189
3190 * ser-base.c: Adjust comments formatting.
3191
2c72d5e5
TT
31922020-09-27 Tom Tromey <tom@tromey.com>
3193
3194 PR tui/25342:
3195 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
3196
35a98237
TT
31972020-09-27 Tom Tromey <tom@tromey.com>
3198
3199 PR tui/25342:
3200 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
3201
9e820dec
TT
32022020-09-27 Tom Tromey <tom@tromey.com>
3203
3204 * unittests/tui-selftests.c: Update.
3205 * tui/tui-winsource.h (struct tui_source_window_base)
3206 <extra_margin, show_line_number, refresh_pad>: New methods.
3207 <m_max_length, m_pad>: New members.
3208 (tui_copy_source_line): Update.
3209 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
3210 first_col, line_width, ndigits parameters. Add length.
3211 (tui_source_window_base::show_source_line): Write to pad. Line
3212 number now 0-based.
3213 (tui_source_window_base::refresh_pad): New method.
3214 (tui_source_window_base::show_source_content): Write to pad. Call
3215 refresh_pad.
3216 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
3217 not refill.
3218 (tui_source_window_base::update_exec_info): Call
3219 show_line_number.
3220 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
3221 method.
3222 <m_digits>: New member.
3223 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
3224 and m_max_length.
3225 (tui_source_window::show_line_number): New method.
3226 * tui/tui-io.h (tui_puts): Fix comment.
3227 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
3228 m_max_length.
3229
c15c15c8
TT
32302020-09-27 Tom Tromey <tom@tromey.com>
3231
3232 * tui/tui-winsource.c
3233 (tui_source_window_base::set_is_exec_point_at): Don't call
3234 show_source_line.
3235
149830c1
TT
32362020-09-27 Tom Tromey <tom@tromey.com>
3237
3238 * python/py-tui.c (class tui_py_window) <refresh_window>: New
3239 method.
3240 <erase>: Update.
3241 <cursor_x, cursor_y>: Remove.
3242 <m_inner_window>: New member.
3243 (tui_py_window::rerender): Create inner window.
3244 (tui_py_window::output): Write to inner window.
3245
8f9929bb
GR
32462020-09-26 Gareth Rees <grees@undo.io> (tiny change)
3247
3248 PR python/26586
3249 * cli/cli-script.c (execute_control_commands): don't set
3250 instream to nullptr here as this breaks the from_tty argument
3251 to gdb.execute in Python.
3252 (execute_user_command): set instream to nullptr here instead.
3253
956bdb59
SM
32542020-09-25 Simon Marchi <simon.marchi@efficios.com>
3255
3256 * infrun.h (infrun_debug_printf): Fix formatting.
3257 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
3258
3b93626b
SJ
32592020-09-25 Saagar Jha <saagar@saagarjha.com>
3260
3261 * compile/compile-object-load.h (struct munmap_list): Add
3262 explicitly-defined move constructor.
3263
b551a89f
TT
32642020-09-24 Tom Tromey <tromey@adacore.com>
3265
3266 PR tui/26638:
3267 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
3268 method.
3269 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
3270 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
3271 (tui_prev_win): Rewrite.
3272
99bb393f
HD
32732020-09-23 Hannes Domani <ssbssa@yahoo.de>
3274
3275 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
3276 in WOW64 processes as SIGINT.
3277 * nat/windows-nat.h: Make wow64_process a shared variable.
3278 * windows-nat.c: Remove static wow64_process variable.
3279
20a5fcbd
TT
32802020-09-23 Tom Tromey <tom@tromey.com>
3281
3282 PR symtab/25470:
3283 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
3284 offset and bit size.
3285 * printcmd.c (print_scalar_formatted): Handle zero-length
3286 integer.
3287 (print_scalar_formatted): Use bit_size_differs_p.
3288 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
3289 constant.
3290 (union type_specific): <int_stuff>: New member.
3291 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
3292 methods.
3293 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
3294 TYPE_SPECIFIC_FIELD.
3295 (recursive_dump_type, copy_type_recursive): Update.
3296 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
3297 DW_AT_data_bit_offset.
3298
bac51ab7
TT
32992020-09-23 Tom Tromey <tom@tromey.com>
3300
3301 * utils.h (class gdb_argv): Add move operators.
3302 <append>: New methods.
3303 * compile/compile.c (build_argc_argv): Remove.
3304 (compile_args_argc): Remove.
3305 (compile_args_argv): Change type.
3306 (set_compile_args): Simplify.
3307 (append_args): Remove.
3308 (filter_args): Remove argcp parameter.
3309 (get_args): Return gdb_argv. Simplify.
3310 (compile_to_object): Update.
3311
92677124
TT
33122020-09-23 Tom Tromey <tom@tromey.com>
3313
3314 * compile/compile-object-run.c (do_module_cleanup)
3315 <~do_module_cleanup> :Remove.
3316 (do_module_cleanup): Update.
3317 * compile/compile-object-load.h (struct munmap_list): Add move
3318 assignment operator.
3319 <source_file>: Now a std::string.
3320 <munmap_list>: Rename. No longer a pointer.
3321 * compile/compile-object-load.c (struct setup_sections_data): Add
3322 constructor.
3323 <setup_one_section>: Declare.
3324 <munmap_list>: Move earlier.
3325 <m_bfd>: New member.
3326 <m_last_size, m_last_section_first, m_last_prot,
3327 m_last_max_alignment>: Rename, add initializers where needed.
3328 (setup_sections_data::setup_one_section): Rename from
3329 setup_sections. Update.
3330 (compile_object_load): Update. Don't use bfd_map_over_sections.
3331
e616f60a
TT
33322020-09-23 Tom Tromey <tom@tromey.com>
3333
3334 * compile/compile-object-run.c (struct do_module_cleanup): Add
3335 parameters to constructor. Update destructor.
3336 <source_file, scope, scope_data, out_value_type, out_value_addr,
3337 munmap_list_head, objfile_name_string>: Remove.
3338 <module>: New member.
3339 (do_module_cleanup): Update.
3340 (compile_object_run): Update.
3341
e947a848
TT
33422020-09-23 Tom Tromey <tom@tromey.com>
3343
3344 * compile/compile.c (eval_compile_command): Update.
3345 * compile/compile-object-run.h (compile_object_run): Take a
3346 compile_module_up.
3347 * compile/compile-object-run.c (compile_object_run): Take a
3348 compile_module_up.
3349 * compile/compile-object-load.h (struct compile_module): Add
3350 constructor, destructor.
3351 (compile_module_up): New typedef.
3352 (compile_object_load): Return compile_object_up.
3353 * compile/compile-object-load.c (compile_object_load): Return
3354 compile_module_up.
3355
0dbf6ee6
TT
33562020-09-23 Tom Tromey <tom@tromey.com>
3357
3358 * compile/compile-object-run.c (struct do_module_cleanup): Add
3359 constructor, destructor.
3360 <objfile_name_string>: Don't use struct hack.
3361 (do_module_cleanup): Use delete.
3362 (compile_object_run): Use new.
3363
ebe824f5
TT
33642020-09-23 Tom Tromey <tom@tromey.com>
3365
3366 * compile/compile-cplus-types.c
3367 (compile_cplus_convert_struct_or_union): Use std::vector.
3368 (compile_cplus_convert_func): Likewise.
3369 * compile/compile-c-types.c (convert_func): Use std::vector.
3370
5dd918d9
TT
33712020-09-21 Tom Tromey <tromey@adacore.com>
3372
3373 * sparc-tdep.c (sparc32_skip_prologue): Use
3374 skip_prologue_using_sal.
3375
5486c517
TT
33762020-09-19 Tom Tromey <tom@tromey.com>
3377
3378 * symfile.c (add_section_size_callback): Remove.
3379 (load_one_section): Rename from load_section_callback. Change
3380 parameters.
3381 (generic_load): Use foreach.
3382
8a6bb1d1
TT
33832020-09-19 Tom Tromey <tom@tromey.com>
3384
3385 * exec.c (add_to_section_table): Remove.
3386 (build_section_table): Use foreach.
3387
08f93a1a
TT
33882020-09-19 Tom Tromey <tom@tromey.com>
3389
3390 * elfread.c (elf_locate_sections): Change parameters.
3391 (elf_symfile_read): Use foreach.
3392
03cd72b8
TT
33932020-09-19 Tom Tromey <tom@tromey.com>
3394
3395 * cli/cli-dump.c (struct callback_data): Remove.
3396 (restore_one_section): Rename from restore_section_callback.
3397 Change parameters.
3398 (restore_binary_file): Change parameters.
3399 (restore_command): Use foreach.
3400
f4f2b85f
TT
34012020-09-19 Tom Tromey <tom@tromey.com>
3402
3403 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
3404 (gcore_copy_callback): Likewise.
3405 (gcore_memory_sections): Use foreach.
3406
b35c1d1c
TT
34072020-09-19 Tom Tromey <tom@tromey.com>
3408
3409 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
3410 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
3411 parameters.
3412 (generic_elf_osabi_sniffer): Use foreach.
3413 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
3414 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
3415
5bb6e9dd
TT
34162020-09-19 Tom Tromey <tom@tromey.com>
3417
3418 * dwarf2/read.c (locate_dwz_sections): Change parameters.
3419 (dwarf2_get_dwz_file): Use foreach.
3420 (dwarf2_locate_dwo_sections): Change parameters.
3421 (open_and_init_dwo_file): Use foreach.
3422 (dwarf2_locate_common_dwp_sections): Change parameters.
3423 (open_and_init_dwp_file): Use foreach.
3424
ad7277da
TT
34252020-09-19 Tom Tromey <tom@tromey.com>
3426
3427 * symfile.h: (find_lowest_section): Don't declare.
3428 * symfile.c (find_lowest_section): Now static. Change
3429 parameters.
3430 (struct place_section_arg): Remove.
3431 (place_section): Change parameters.
3432 (addr_info_make_relative): Use foreach.
3433 (symfile_dummy_outputs): Remove.
3434 (default_symfile_relocate): Use foreach.
3435
cb814f2e
TT
34362020-09-19 Tom Tromey <tom@tromey.com>
3437
3438 * objfiles.c (add_to_objfile_sections): Rename from
3439 add_to_objfile_sections_full.
3440 (add_to_objfile_sections): Remove.
3441 (build_objfile_section_table): Use foreach.
3442
3cabfd26
TT
34432020-09-19 Tom Tromey <tom@tromey.com>
3444
3445 * stap-probe.c (get_stap_base_address_1): Remove.
3446 (get_stap_base_address): Use foreach.
3447
1ce51eb5
TT
34482020-09-19 Tom Tromey <tom@tromey.com>
3449
3450 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
3451 parameters.
3452 (gdb_bfd_close_or_warn): Use foreach.
3453
a190fabb
TT
34542020-09-19 Tom Tromey <tom@tromey.com>
3455
3456 * corelow.c (add_to_thread_list): Change parameters.
3457 (core_target_open): Use foreach.
3458
cafb0d81
TT
34592020-09-19 Tom Tromey <tom@tromey.com>
3460
3461 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
3462 existing function.
3463
c8d5abea
AB
34642020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3465
3466 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
3467 for arrays.
3468
6d816919
AB
34692020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3470
3471 * eval.c: Remove 'f-lang.h' include.
3472 (value_f90_subarray): Moved to f-lang.c.
3473 (eval_call): Renamed to...
3474 (evaluate_subexp_do_call): ...this, is no longer static, header
3475 comment moved into header file.
3476 (evaluate_funcall): Update call to eval_call.
3477 (skip_undetermined_arglist): Moved to f-lang.c.
3478 (fortran_value_subarray): Likewise.
3479 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3480 moved to evaluate_subexp_f.
3481 (calc_f77_array_dims): Moved to f-lang.c
3482 * expprint.c (print_subexp_funcall): New function.
3483 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3484 moved to print_subexp_f, OP_FUNCALL uses new function.
3485 (dump_subexp_body_funcall): New function.
3486 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
3487 moved to dump_subexp_f, OP_FUNCALL uses new function.
3488 * expression.h (evaluate_subexp_do_call): Declare.
3489 * f-lang.c (value_f90_subarray): Moved from eval.c.
3490 (skip_undetermined_arglist): Likewise.
3491 (calc_f77_array_dims): Likewise.
3492 (fortran_value_subarray): Likewise.
3493 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
3494 (operator_length_f): Likewise.
3495 (print_subexp_f): Likewise.
3496 (dump_subexp_body_f): Likewise.
3497 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
3498 declaration of this operation to here.
3499 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
3500 support moved to operator_length_f.
3501 * parser-defs.h (dump_subexp_body_funcall): Declare.
3502 (print_subexp_funcall): Declare.
3503 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
3504 fortran-operator.def.
3505
8c37706a
AB
35062020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3507
3508 * eval.c (fortran_value_subarray): New function, content is taken
3509 from...
3510 (evaluate_subexp_standard): ...here, in two places. Now arrays
3511 and strings both call the new function.
3512 (calc_f77_array_dims): Add header comment, handle strings.
3513
14f9473c
VC
35142020-09-18 Victor Collod <vcollod@nvidia.com>
3515
3516 PR gdb/26635
3517 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
3518 (i386_analyze_prologue): Call i386_skip_endbr.
3519
b60cea74
TT
35202020-09-18 Tom Tromey <tromey@adacore.com>
3521
3522 * windows-nat.c (struct windows_nat_target) <wait>: Update.
3523 (windows_nat_target::wait): Update.
3524 * target/wait.h (enum target_wait_flag): New. Use
3525 DEF_ENUM_FLAGS_TYPE.
3526 * target/target.h (target_wait): Change type of options.
3527 * target.h (target_options_to_string, default_target_wait):
3528 Update.
3529 (struct target_ops) <wait>: Change type of options.
3530 * target.c (target_wait, default_target_wait, do_option): Change
3531 type of "options".
3532 (target_options_to_string): Likewise.
3533 * target-delegates.c: Rebuild.
3534 * target-debug.h (target_debug_print_target_wait_flags): Rename
3535 from target_debug_print_options.
3536 * sol-thread.c (class sol_thread_target) <wait>: Update.
3537 (sol_thread_target::wait): Update.
3538 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
3539 (rs6000_nat_target::wait): Update.
3540 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
3541 Update.
3542 (remote_target::wait_ns, remote_target::wait_as): Change type of
3543 "options".
3544 (remote_target::wait): Update.
3545 * remote-sim.c (struct gdbsim_target) <wait>: Update.
3546 (gdbsim_target::wait): Update.
3547 * record-full.c (class record_full_base_target) <wait>: Update.
3548 (record_full_wait_1): Change type of "options".
3549 (record_full_base_target::wait): Update.
3550 * record-btrace.c (class record_btrace_target) <wait>: Update.
3551 (record_btrace_target::wait): Update.
3552 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
3553 Update.
3554 (ravenscar_thread_target::wait): Update.
3555 * procfs.c (class procfs_target) <wait>: Update.
3556 (procfs_target::wait): Update.
3557 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
3558 * obsd-nat.c (obsd_nat_target::wait): Update.
3559 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
3560 (nto_procfs_target::wait): Update.
3561 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
3562 * nbsd-nat.c (nbsd_wait): Change type of "options".
3563 (nbsd_nat_target::wait): Update.
3564 * linux-thread-db.c (class thread_db_target) <wait>: Update.
3565 (thread_db_target::wait): Update.
3566 * linux-nat.h (class linux_nat_target) <wait>: Update.
3567 * linux-nat.c (linux_nat_target::wait): Update.
3568 (linux_nat_wait_1): Update.
3569 * infrun.c (do_target_wait_1, do_target_wait): Change type of
3570 "options".
3571 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
3572 * inf-ptrace.c (inf_ptrace_target::wait): Update.
3573 * go32-nat.c (struct go32_nat_target) <wait>: Update.
3574 (go32_nat_target::wait): Update.
3575 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
3576 * gnu-nat.c (gnu_nat_target::wait): Update.
3577 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
3578 * fbsd-nat.c (fbsd_nat_target::wait): Update.
3579 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
3580 * darwin-nat.c (darwin_nat_target::wait): Update.
3581 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
3582 (bsd_uthread_target::wait): Update.
3583 * aix-thread.c (class aix_thread_target) <wait>: Update.
3584 (aix_thread_target::wait): Update.
3585
0295dde6
AB
35862020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
3587
3588 * compile/compile-object-run.c (create_copied_type_recursive): New
3589 function.
3590 (compile_object_run): Use new function.
3591
d3483b43
JT
35922020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
3593
3594 * NEWS: Mention x86_64 Cygwin core file support.
3595
e7d612ad
JT
35962020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3597
3598 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
3599 (core_process_module_section): Handle NOTE_INFO_MODULE64.
3600
aff9d387
JT
36012020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3602
62a5151b
JT
3603 * windows-tdep.h: Add prototypes.
3604 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
3605 (i386_windows_core_pid_to_str): Move and rename ...
3606 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
3607 (windows_core_pid_to_str): ... and here.
3608 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
3609
36102020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
3611 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
3612 (amd64_windows_init_abi_common): ... and register.
3613
7d155da3
JT
36142020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3615
3616 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
3617 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
3618
e8ef12b9
PA
36192020-09-18 Pedro Alves <pedro@palves.net>
3620
3621 PR gdb/26631
3622 * thread.c (thread_find_command): Switch inferior before calling
3623 target methods.
3624
c1e1314d
TT
36252020-09-17 Tom Tromey <tromey@adacore.com>
3626
3627 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
3628 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
3629 (tdesc_arch_data_up): New typedef.
3630 (tdesc_use_registers, tdesc_data_alloc): Update.
3631 (tdesc_data_cleanup): Don't declare.
3632 * target-descriptions.c (tdesc_data_alloc): Return a
3633 tdesc_arch_data_up.
3634 (tdesc_arch_data_deleter::operator()): Rename from
3635 tdesc_data_cleanup. Change argument type.
3636 (tdesc_use_registers): Change early_data to an rvalue reference.
3637 (tdesc_use_registers): Don't use delete.
3638 * sparc-tdep.c (sparc32_gdbarch_init): Update.
3639 * s390-tdep.c (s390_gdbarch_init): Update.
3640 * rx-tdep.c (rx_gdbarch_init): Update.
3641 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3642 * riscv-tdep.c (riscv_gdbarch_init): Update.
3643 * or1k-tdep.c (or1k_gdbarch_init): Update.
3644 * nios2-tdep.c (nios2_gdbarch_init): Update.
3645 * nds32-tdep.c (nds32_gdbarch_init): Update.
3646 * mips-tdep.c (mips_gdbarch_init): Update.
3647 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
3648 * m68k-tdep.c (m68k_gdbarch_init): Update.
3649 * i386-tdep.c (i386_gdbarch_init): Update.
3650 * arm-tdep.c (arm_gdbarch_init): Update.
3651 * arc-tdep.c (arc_tdesc_init): Update.
3652 (arc_gdbarch_init): Update.
3653 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
3654
0363df3d
HD
36552020-09-17 Hannes Domani <ssbssa@yahoo.de>
3656
3657 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
3658 for WOW64 processes.
3659
280a9412
TT
36602020-09-17 Tom Tromey <tom@tromey.com>
3661
3662 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
3663
6108fd18
TT
36642020-09-17 Tom Tromey <tom@tromey.com>
3665
3666 * value.c (preserve_values): Update.
3667 * python/py-type.c (save_objfile_types): Update.
3668 * guile/scm-type.c (save_objfile_types): Update.
3669 * gdbtypes.h (create_copied_types_hash): Return htab_up.
3670 * gdbtypes.c (create_copied_types_hash): Return htab_up.
3671 * compile/compile-object-run.c (compile_object_run): Update.
3672
fa9b1164
TT
36732020-09-17 Tom Tromey <tom@tromey.com>
3674
3675 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
3676 Remove.
3677 <m_table>: Now htab_up.
3678 * typeprint.c (typedef_hash_table::recursively_update)
3679 (typedef_hash_table::add_template_parameters)
3680 (typedef_hash_table::typedef_hash_table): Update.
3681 (typedef_hash_table::~typedef_hash_table): Remove.
3682 (typedef_hash_table::typedef_hash_table)
3683 (typedef_hash_table::find_global_typedef)
3684 (typedef_hash_table::find_typedef): Update.
3685
eb53f105
TT
36862020-09-17 Tom Tromey <tom@tromey.com>
3687
3688 * target-descriptions.c (tdesc_use_registers): Use htab_up.
3689
7a8a5d47
TT
36902020-09-17 Tom Tromey <tom@tromey.com>
3691
3692 * linespec.c (class decode_compound_collector)
3693 <~decode_compound_collector>: Remove.
3694 <m_unique_syms>: Now htab_up.
3695 (decode_compound_collector::operator ()): Update.
3696 (class symtab_collector) <~symtab_collector>: Remove.
3697 <m_symtab_table>: Now htab_up.
3698 (symtab_collector::operator ()): Update.
3699
99032cfc
TT
37002020-09-17 Tom Tromey <tom@tromey.com>
3701
3702 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
3703 (filename_seen_cache::clear): Update.
3704 (~filename_seen_cache): Remove.
3705 (filename_seen_cache::seen): Update.
3706 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
3707 htab_up.
3708 <~filename_seen_cache>: Remove.
3709 <traverse>: Update.
3710
32580f6d
TT
37112020-09-17 Tom Tromey <tom@tromey.com>
3712
3713 * completer.c (completion_tracker::discard_completions)
3714 (completion_tracker::~completion_tracker)
3715 (completion_tracker::maybe_add_completion)
3716 (completion_tracker::remove_completion)
3717 (completion_tracker::recompute_lowest_common_denominator)
3718 (completion_tracker::build_completion_result): Update.
3719 * completer.h (class completion_tracker) <have_completions>:
3720 Update.
3721 <m_entries_hash>: Now htab_up.
3722
c1fb9836
TT
37232020-09-17 Tom Tromey <tom@tromey.com>
3724
3725 * breakpoint.c (ambiguous_names_p): Use htab_up.
3726
88f07206
TT
37272020-09-17 Tom Tromey <tom@tromey.com>
3728
3729 * auto-load.c (struct auto_load_pspace_info)
3730 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
3731 <loaded_script_files, loaded_script_texts>: Change type to
3732 htab_up.
3733 (~auto_load_pspace_info) Remove.
3734 (init_loaded_scripts_info, maybe_add_script_file)
3735 (maybe_add_script_text, auto_load_info_scripts): Update.
3736
9519b2ee
TT
37372020-09-17 Tom Tromey <tromey@adacore.com>
3738
3739 * c-exp.y (name_obstack): Now static.
3740
d2cd4113
CC
37412020-09-17 Chungyi Chi <demonic@csie.io>
3742
3743 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
3744
b650a282
SM
37452020-09-16 Simon Marchi <simon.marchi@efficios.com>
3746
3747 * breakpoint.h (init_catchpoint): Change int parameter to bool.
3748 (add_solib_catchpoint): Likewise.
3749 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
3750 to bool.
3751 (add_solib_catchpoint): Change int parameter/variable to bool.
3752 (catch_load_or_unload): Likewise.
3753 (init_catchpoint): Likewise.
3754 (create_fork_vfork_event_catchpoint): Likewise.
3755 (catch_fork_command_1): Likewise.
3756 (catch_exec_command_1): Likewise.
3757
4d0bcfcf
SM
37582020-09-16 Simon Marchi <simon.marchi@efficios.com>
3759
3760 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
3761 Change instance_flags to m_instance_flags.
3762
fe830662
TT
37632020-09-16 Tom Tromey <tromey@adacore.com>
3764
3765 PR gdb/26598:
3766 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
3767
fe5ddfc3
JB
37682020-09-16 John Baldwin <jhb@FreeBSD.org>
3769
3770 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
3771 PL_FLAG_EXEC.
3772 (fbsd_nat_target::insert_exec_catchpoint)
3773 (fbsd_nat_target::remove_exec_catchpoint): Always define.
3774 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
3775 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
3776
e911c666
JB
37772020-09-16 John Baldwin <jhb@FreeBSD.org>
3778
3779 * configure.ac: Remove check for kinfo_getvmmap().
3780 * configure, config.in: Regenerate.
3781 * fbsd-nat.c (fbsd_read_mapping): Remove
3782 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
3783 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
3784 kinfo_get_vmmap() are always present.
3785
1f17d372
JB
37862020-09-16 John Baldwin <jhb@FreeBSD.org>
3787
3788 * fbsd-nat.c: Always include support for
3789 TARGET_OBJECT_SIGNAL_INFO.
3790
bcb1da7f
JB
37912020-09-16 John Baldwin <jhb@FreeBSD.org>
3792
3793 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
3794 sysctl and remove procfs fallback.
3795
5515f729
JB
37962020-09-16 John Baldwin <jhb@FreeBSD.org>
3797
3798 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
3799 * fbsd-nat.h: Likewise.
3800
da1df1db
TBA
38012020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3802
3803 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
3804 argument.
3805
0e25e767
AB
38062020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3807
3808 * ada-lang.c (ada_language_data): Delete.
3809 (ada_language): Remove references to ada_language_data.
3810 * c-lang.c (c_language_data): Delete.
3811 (c_language): Remove references to c_language_data.
3812 (cplus_language_data): Delete.
3813 (cplus_language): Remove references to cplus_language_data.
3814 (asm_language_data): Delete.
3815 (asm_language): Remove references to asm_language_data.
3816 (minimal_language_data): Delete.
3817 (minimal_language): Remove references to minimal_language_data.
3818 * d-lang.c (d_language_data): Delete.
3819 (d_language): Remove references to d_language_data.
3820 * f-lang.c (f_language_data): Delete.
3821 (f_language): Remove references to f_language_data.
3822 * go-lang.c (go_language_data): Delete.
3823 (go_language): Remove references to go_language_data.
3824 * language.c (unknown_language_data): Delete.
3825 (unknown_language): Remove references to unknown_language_data.
3826 (auto_language_data): Delete.
3827 (auto_language): Remove references to auto_language_data.
3828 * language.h (language_data): Delete struct.
3829 (language_defn): No longer inherit from language_data.
3830 * m2-lang.c (m2_language_data): Delete.
3831 (m2_language): Remove references to m2_language_data.
3832 * objc-lang.c (objc_language_data): Delete.
3833 (objc_language): Remove references to objc_language_data.
3834 * opencl-lang.c (opencl_language_data): Delete.
3835 (opencl_language): Remove references to opencl_language_data.
3836 * p-lang.c (pascal_language_data): Delete.
3837 (pascal_language): Remove references to pascal_language_data.
3838 * rust-lang.c (rust_language_data): Delete.
3839 (rust_language): Remove references to rust_language_data.
3840
b7c6e27d
AB
38412020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3842
3843 * ada-lang.c (ada_language_data): Remove la_op_print_tab
3844 initializer.
3845 (ada_language::opcode_print_table): New member function.
3846 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
3847 (c_language::opcode_print_table): New member function.
3848 (cplus_language_data): Remove la_op_print_tab initializer.
3849 (cplus_language::opcode_print_table): New member function.
3850 (asm_language_data): Remove la_op_print_tab initializer.
3851 (asm_language::opcode_print_table): New member function.
3852 (minimal_language_data): Remove la_op_print_tab initializer.
3853 (minimal_language::opcode_print_table): New member function.
3854 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
3855 (d_language::opcode_print_table): New member function.
3856 * expprint.c (print_subexp_standard): Update call to
3857 opcode_print_table.
3858 (op_string): Likewise.
3859 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
3860 (f_language::opcode_print_table): New member function.
3861 * go-lang.c (go_language_data): Remove la_op_print_tab
3862 initializer.
3863 (go_language::opcode_print_table): New member function.
3864 * language.c (unknown_language_data): Remove la_op_print_tab
3865 initializer.
3866 (unknown_language::opcode_print_table): New member function.
3867 (auto_language_data): Remove la_op_print_tab initializer.
3868 (auto_language::opcode_print_table): New member function.
3869 * language.h (language_data): Remove la_op_print_tab field.
3870 (language_defn::opcode_print_table): Declare new member function.
3871 * m2-lang.c (m2_language_data): Remove la_op_print_tab
3872 initializer.
3873 (m2_language::opcode_print_table): New member function.
3874 * objc-lang.c (objc_language_data): Remove la_op_print_tab
3875 initializer.
3876 (objc_language::opcode_print_table): New member function.
3877 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
3878 initializer.
3879 (opencl_language::opcode_print_table): New member function.
3880 * p-lang.c (pascal_language_data): Remove la_op_print_tab
3881 initializer.
3882 (pascal_language::opcode_print_table): New member function.
3883 * rust-lang.c (rust_language_data): Remove la_op_print_tab
3884 initializer.
3885 (rust_language::opcode_print_table): New member function.
3886
5aba6ebe
AB
38872020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3888
3889 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
3890 (ada_language::expression_ops): New member function.
3891 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
3892 (c_language::expression_ops): New member function.
3893 (cplus_language_data): Remove la_exp_desc initializer.
3894 (cplus_language::expression_ops): New member function.
3895 (asm_language_data): Remove la_exp_desc initializer.
3896 (asm_language::expression_ops): New member function.
3897 (minimal_language_data): Remove la_exp_desc initializer.
3898 (minimal_language::expression_ops): New member function.
3899 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
3900 (d_language::expression_ops): New member function.
3901 * eval.c (evaluate_subexp): Update call to expression_ops.
3902 * expprint.c (print_subexp): Likewise.
3903 (op_name): Likewise.
3904 (dump_subexp_body): Likewise.
3905 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
3906 (f_language::expression_ops): New member function.
3907 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
3908 (go_language::expression_ops): New member function.
3909 * language.c (language_defn::expression_ops): New function.
3910 (unknown_language_data): Remove la_exp_desc initializer.
3911 (auto_language_data): Likewise.
3912 * language.h (language_data): Remove la_exp_desc field.
3913 (language_defn::expression_ops): Declare new member function.
3914 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
3915 (m2_language::expression_ops): New member function.
3916 * objc-lang.c (objc_language_data): Remove la_exp_desc
3917 initializer.
3918 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
3919 initializer.
3920 (opencl_language::expression_ops): New member function.
3921 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
3922 * parse.c (operator_length): Update call to expression_ops.
3923 (exp_iterate): Likewise.
3924 * rust-lang.c (rust_language_data): Remove la_exp_desc
3925 initializer.
3926 (ruse_language::expression_ops): New member function.
3927
b63a3f3f
AB
39282020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3929
3930 * ada-lang.c (ada_language_data): Remove la_varobj_ops
3931 initializer.
3932 (ada_language::varobj_ops): New member function.
3933 * c-lang.c (c_language_data): Remove la_varobj_ops
3934 initializer.
3935 (cplus_language_data): Likewise.
3936 (cplus_language::varobj_ops): New member function.
3937 (asm_language_data): Remove la_varobj_ops initializer.
3938 (minimal_language_data): Likewise.
3939 * d-lang.c (d_language_data): Likewise.
3940 * f-lang.c (f_language_data): Likewise.
3941 * go-lang.c (go_language_data): Likewise.
3942 * language.c (language_defn::varobj_ops): New function.
3943 (unknown_language_data): Remove la_varobj_ops
3944 initializer.
3945 (auto_language_data): Likewise.
3946 * language.h (language_data): Remove la_varobj_ops field.
3947 (language_defn::varobj_ops): Declare new member function.
3948 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
3949 * objc-lang.c (objc_language_data): Likewise.
3950 * opencl-lang.c (opencl_language_data): Likewise.
3951 * p-lang.c (pascal_language_data): Likewise.
3952 * rust-lang.c (rust_language_data): Likewise.
3953 * varobj.c (varobj_create): Update call to varobj_ops.
3954 * varobj.h (default_varobj_ops): Delete define.
3955
1ac14a04
AB
39562020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3957
3958 * ada-lang.c (ada_language_data): Remove la_macro_expansion
3959 initializer.
3960 * c-lang.c (c_language_data): Likewise.
3961 (c_language::macro_expansion): New member function.
3962 (cplus_language_data): Likewise.
3963 (cplus_language::macro_expansion): New member function.
3964 (asm_language_data): Likewise.
3965 (asm_language::macro_expansion): New member function.
3966 (minimal_language_data): Likewise.
3967 (minimal_language::macro_expansion): New member function.
3968 * d-lang.c (d_language_data): Remove la_macro_expansion
3969 initializer.
3970 * f-lang.c (f_language_data): Likewise.
3971 * go-lang.c (go_language_data): Likewise.
3972 * language.c (unknown_language_data): Likewise.
3973 (auto_language_data): Likewise.
3974 * language.h (language_data): Remove la_macro_expansion field.
3975 (language_defn::macro_expansion): New member function.
3976 * m2-lang.c (m2_language_data): Remove la_macro_expansion
3977 initializer.
3978 * objc-lang.c (objc_language_data): Likewise.
3979 (objc_language::macro_expansion): New member function.
3980 * opencl-lang.c (opencl_language_data): Likewise.
3981 (opencl_language::macro_expansion): New member function.
3982 * p-lang.c (pascal_language_data): Remove la_macro_expansion
3983 initializer.
3984 * rust-lang.c (rust_language_data): Likewise.
3985 * symtab.c (default_collect_symbol_completion_matches_break_on):
3986 Update call to macro_expansion.
3987
3a3440fb
AB
39882020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3989
3990 * ada-lang.c (ada_language_data): Remove la_array_ordering
3991 initializer.
3992 * c-lang.c (c_language_data): Likewise.
3993 (cplus_language_data): Likewise.
3994 (asm_language_data): Likewise.
3995 (minimal_language_data): Likewise.
3996 * d-lang.c (d_language_data): Likewise.
3997 * dwarf2/read.c (read_array_order): Update for call to
3998 array_ordering.
3999 * f-lang.c (f_language_data): Remove la_array_ordering
4000 initializer.
4001 (f_language::array_ordering): New member function.
4002 * go-lang.c (go_language_data): Remove la_array_ordering
4003 initializer.
4004 * language.c (unknown_language_data): Likewise.
4005 (auto_language_data): Likewise.
4006 * language.h (language_data): Delete la_array_ordering field.
4007 (language_defn::array_ordering): New member function.
4008 * m2-lang.c (m2_language_data): Remove la_array_ordering
4009 initializer.
4010 * objc-lang.c (objc_language_data): Likewise.
4011 * opencl-lang.c (opencl_language_data): Likewise.
4012 * p-lang.c (pascal_language_data): Likewise.
4013 * rust-lang.c (rust_language_data): Likewise.
4014
0d201fa4
AB
40152020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4016
4017 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
4018 initializer.
4019 * c-lang.c (c_language_data): Likewise.
4020 (cplus_language_data): Likewise.
4021 (asm_language_data): Likewise.
4022 (minimal_language_data): Likewise.
4023 * d-lang.c (d_language_data): Likewise.
4024 * f-lang.c (f_language_data): Likewise.
4025 (f_language::case_sensitivity): New member function.
4026 * go-lang.c (go_language_data): Remove la_case_sensitivity
4027 initializer.
4028 * language.c (enum case_mode): Moved here from language.h.
4029 (case_mode): Make static.
4030 (show_case_command): Update for case_sensitivity being a method.
4031 (set_case_command): Likewise.
4032 (set_range_case): Likewise.
4033 (unknown_language_data): Remove la_case_sensitivity initializer.
4034 (auto_language_data): Likewise.
4035 * language.h (case_mode): Delete, move enum declaration to
4036 language.c.
4037 (language_data): Delete la_case_sensitivity field.
4038 (language_defn::case_sensitivity): New member function.
4039 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
4040 initializer.
4041 * objc-lang.c (objc_language_data): Likewise.
4042 * opencl-lang.c (opencl_language_data): Likewise.
4043 * p-lang.c (pascal_language_data): Likewise.
4044 * rust-lang.c (rust_language_data): Likewise.
4045
efdf6a73
AB
40462020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4047
4048 * ada-lang.c (ada_language_data): Remove la_range_check
4049 initializer.
4050 * c-lang.c (c_language_data): Likewise.
4051 (cplus_language_data): Likewise.
4052 (asm_language_data): Likewise.
4053 (minimal_language_data): Likewise.
4054 * d-lang.c (d_language_data): Likewise.
4055 * f-lang.c (f_language_data): Likewise.
4056 (f_language::range_checking_on_by_default): New member function.
4057 * go-lang.c (go_language_data): Remove la_range_check initializer.
4058 * language.c (enum range_mode): Moved here from language.h.
4059 (range_mode): Made static.
4060 (show_range_command): Update to use
4061 range_checking_on_by_default.
4062 (set_range_command): Likewise.
4063 (set_range_case): Likewise.
4064 (unknown_language_data): Remove la_range_check initializer.
4065 (auto_language_data): Likewise.
4066 * language.h (range_mode): Delete. Enum definition moved to
4067 language.c.
4068 (language_data): Remove la_range_check field.
4069 (language_defn::range_checking_on_by_default): New member
4070 function.
4071 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
4072 (m2_language::range_checking_on_by_default): New member function.
4073 * objc-lang.c (objc_language_data): Remove la_range_check
4074 initializer.
4075 * opencl-lang.c (opencl_language_data): Likewise.
4076 * p-lang.c (pascal_language_data): Likewise.
4077 (pascal_language::range_checking_on_by_default): New member
4078 function.
4079 * rust-lang.c (rust_language_data): Remove la_range_check
4080 initializer.
4081 (rust_language::range_checking_on_by_default): New member
4082 function.
4083
bf92aec5
AB
40842020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4085
4086 * dwarf2/read.c (dwarf2_physname): Remove special case for
4087 language_go.
4088 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
4089 member function.
4090
d3355e4d
AB
40912020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4092
4093 * ada-lang.c (ada_language_data): Remove
4094 la_store_sym_names_in_linkage_form_p initializer.
4095 (ada_language::store_sym_names_in_linkage_form_p): New member
4096 function.
4097 * c-lang.c (c_language_data): Remove
4098 la_store_sym_names_in_linkage_form_p initializer.
4099 (c_language::store_sym_names_in_linkage_form_p): New member
4100 function.
4101 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
4102 initializer.
4103 (asm_language_data): Likewise.
4104 (asm_language::store_sym_names_in_linkage_form_p): New member
4105 function.
4106 (minimal_language_data): Remove
4107 la_store_sym_names_in_linkage_form_p initializer.
4108 (minimal_language::store_sym_names_in_linkage_form_p): New member
4109 function.
4110 * d-lang.c (d_language_data): Remove
4111 la_store_sym_names_in_linkage_form_p initializer.
4112 * dwarf2/read.c (dwarf2_physname): Update call to
4113 store_sym_names_in_linkage_form_p.
4114 * f-lang.c (f_language_data): Remove
4115 la_store_sym_names_in_linkage_form_p initializer.
4116 * go-lang.c (go_language_data): Remove
4117 la_store_sym_names_in_linkage_form_p initializer.
4118 * language.c (unknown_language_data): Remove
4119 la_store_sym_names_in_linkage_form_p initializer.
4120 (unknown_language::store_sym_names_in_linkage_form_p): New member
4121 function.
4122 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
4123 initializer.
4124 (auto_language::store_sym_names_in_linkage_form_p): New member
4125 function.
4126 * language.h (language_data): Remove
4127 la_store_sym_names_in_linkage_form_p member variable.
4128 (language_defn::store_sym_names_in_linkage_form_p): New member
4129 function.
4130 * m2-lang.c (m2_language_data): Remove
4131 la_store_sym_names_in_linkage_form_p initializer.
4132 * objc-lang.c (objc_language_data): Likewise.
4133 * opencl-lang.c (opencl_language_data): Likewise.
4134 * p-lang.c (pascal_language_data): Likewise.
4135 * rust-lang.c (rust_language_data): Likewise.
4136
22c12a6c
AB
41372020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4138
4139 * ada-lang.c (ada_language_data): Remove string_lower_bound
4140 initializer.
4141 * c-lang.c (c_language_data): Likewise.
4142 (cplus_language_data): Likewise.
4143 (asm_language_data): Likewise.
4144 (minimal_language_data): Likewise.
4145 * d-lang.c (d_language_data): Likewise.
4146 * f-lang.c (f_language_data): Likewise.
4147 * go-lang.c (go_language_data): Likewise.
4148 * language.c (unknown_language_data): Likewise.
4149 (auto_language_data): Likewise.
4150 * language.h (language_data): Remove string_lower_bound field.
4151 (language_defn::string_lower_bound): New member function.
4152 * m2-lang.c (m2_language_data): Remove string_lower_bound
4153 initializer.
4154 (m2_language::string_lower_bound): New member function.
4155 * objc-lang.c (objc_language_data): Remove string_lower_bound
4156 initializer.
4157 * opencl-lang.c (opencl_language_data): Likewise.
4158 * p-lang.c (pascal_language_data): Likewise.
4159 * rust-lang.c (rust_language_data): Likewise.
4160 * valops.c (value_cstring): Update call to string_lower_bound.
4161 (value_string): Likewise.
4162 * value.c (allocate_repeated_value): Likewise.
4163
1c236ddd
AB
41642020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4165
4166 * valops.c (value_repeat): Fix incorrect argument name in comment.
4167
67bd3fd5
AB
41682020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4169
4170 * ada-lang.c (ada_language_data): Remove c_style_arrays
4171 initializer.
4172 (ada_language::c_style_arrays_p): New member fuction.
4173 * c-lang.c (c_language_data): Remove c_style_arrays
4174 initializer.
4175 (cplus_language_data): Likewise.
4176 (asm_language_data): Likewise.
4177 (minimal_language_data): Likewise.
4178 * d-lang.c (d_language_data): Likewise.
4179 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
4180 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
4181 (f_language::c_style_arrays_p): New member function.
4182 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
4183 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
4184 * language.c (unknown_language_data): Remove c_style_arrays
4185 initializer.
4186 (auto_language_data): Likewise.
4187 * language.h (language_data): Remove c_style_arrays field.
4188 (language_defn::c_style_arrays_p): New member function.
4189 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
4190 (m2_language::c_style_arrays_p): New member function.
4191 * objc-lang.c (objc_language_data): Remove c_style_arrays
4192 initializer.
4193 * opencl-lang.c (opencl_language_data): Likewise.
4194 * p-lang.c (pascal_language_data): Likewise.
4195 * rust-lang.c (rust_language_data): Likewise.
4196 * valarith.c (value_subscript): Update call to c_style_arrays_p,
4197 and update local variable to a bool.
4198 * valops.c (value_cast): Update call to c_style_arrays_p.
4199 (value_array): Likewise.
4200 * value.c (coerce_array): Likewise.
4201
85967615
AB
42022020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4203
4204 * ada-lang.c (ada_language_data): Remove la_language initializer.
4205 * c-lang.c (c_language_data): Likewise.
4206 (cplus_language_data): Likewise.
4207 (asm_language_data): Likewise.
4208 (minimal_language_data): Likewise.
4209 * d-lang.c (d_language_data): Likewise.
4210 * f-lang.c (f_language_data): Likewise.
4211 * go-lang.c (go_language_data): Likewise.
4212 * language.c (unknown_language_data): Likewise.
4213 (auto_language_data): Likewise.
4214 * language.h (language_data): Remove la_language field.
4215 (language_defn::language_defn): Initialise la_language field.
4216 (language_defn::la_language): New member variable.
4217 * m2-lang.c (m2_language_data): Remove la_language field.
4218 * objc-lang.c (objc_language_data): Likewise.
4219 * opencl-lang.c (opencl_language_data): Likewise.
4220 * p-lang.c (pascal_language_data): Likewise.
4221 * rust-lang.c (rust_language_data): Likewise.
4222
e171d6f1
AB
42232020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4224
4225 * ada-lang.c (ada_extensions): Delete, moved into
4226 ada_language::filename_extensions.
4227 (ada_language_data): Remove la_filename_extensions initializer.
4228 (ada_language::filename_extensions): New member function.
4229 * c-lang.c (c_extensions): Delete, moved into
4230 c_language::filename_extensions.
4231 (c_language_data): Remove la_filename_extensions initializer.
4232 (c_language::filename_extensions): New member function.
4233 (cplus_extensions): Delete, moved into
4234 cplus_language::filename_extensions.
4235 (cplus_language_data): Remove la_filename_extensions initializer.
4236 (cplus_language::filename_extensions): New member function.
4237 (asm_extensions): Delete, moved into
4238 asm_language::filename_extensions.
4239 (asm_language_data): Remove la_filename_extensions initializer.
4240 (asm_language::filename_extensions): New member function.
4241 (minimal_language_data): Remove la_filename_extensions
4242 initializer.
4243 * d-lang.c (d_extensions): Delete, moved into
4244 d_language::filename_extensions.
4245 (d_language_data): Remove la_filename_extensions initializer.
4246 (d_language::filename_extensions): New member function.
4247 * f-lang.c (f_extensions): Delete, moved into
4248 f_language::filename_extensions.
4249 (f_language_data): Remove la_filename_extensions initializer.
4250 (f_language::filename_extensions): New member function.
4251 * go-lang.c (go_language_data): Remove la_filename_extensions
4252 initializer.
4253 * language.c (add_set_language_command): Update now that
4254 filename_extensions returns a vector.
4255 (unknown_language_data): Remove la_filename_extensions
4256 initializer.
4257 (auto_language_data): Likewise.
4258 * language.h (language_data): Remove la_filename_extensions field.
4259 (language_defn::filename_extensions): New member function.
4260 * m2-lang.c (m2_language_data): Remove la_filename_extensions
4261 initializer.
4262 * objc-lang.c (objc_extensions): Delete, moved into
4263 objc_language::filename_extensions.
4264 (objc_language_data): Remove la_filename_extensions initializer.
4265 (objc_language::filename_extensions): New member function.
4266 * opencl-lang.c (opencl_language_data): Remove
4267 la_filename_extensions initializer.
4268 * p-lang.c (pascal_extensions): Delete, moved into
4269 pascal_language::filename_extensions.
4270 (pascal_language_data): Remove la_filename_extensions initializer.
4271 (pascal_language::filename_extensions): New member function.
4272 * rust-lang.c (rust_extensions): Delete, moved into
4273 rust_language::filename_extensions.
4274 (rust_language_data): Remove la_filename_extensions initializer.
4275 (rust_language::filename_extensions): New member function.
4276 * symfile.c (add_filename_language): Add new assert.
4277
6f7664a9
AB
42782020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4279
4280 * ada-lang.c (ada_language_data): Remove la_name and
4281 la_natural_name initializers.
4282 (ada_language::name): New member function.
4283 (ada_language::natural_name): New member function.
4284 * c-lang.c (c_language_data): Remove la_name and
4285 la_natural_name initializers.
4286 (c_language::name): New member function.
4287 (c_language::natural_name): New member function.
4288 (cplus_language_data): Remove la_name and
4289 la_natural_name initializers.
4290 (cplus_language::name): New member function.
4291 (cplus_language::natural_name): New member function.
4292 (asm_language_data): Remove la_name and
4293 la_natural_name initializers.
4294 (asm_language::name): New member function.
4295 (asm_language::natural_name): New member function.
4296 (minimal_language_data): Remove la_name and
4297 la_natural_name initializers.
4298 (minimal_language::name): New member function.
4299 (minimal_language::natural_name): New member function.
4300 * compile/compile.c (compile_to_object): Update call to
4301 lanugage_defn::name.
4302 * d-lang.c (d_language_data): Remove la_name and
4303 la_natural_name initializers.
4304 (d_language::name): New member function.
4305 (d_language::natural_name): New member function.
4306 * expprint.c (print_subexp_standard): Update call to
4307 language_defn::name.
4308 (dump_raw_expression): Likewise
4309 (dump_prefix_expression): Likewise.
4310 * f-lang.c (f_language_data): Remove la_name and
4311 la_natural_name initializers.
4312 (f_language::name): New member function.
4313 (f_language::natural_name): New member function.
4314 * go-lang.c (go_language_data): Remove la_name and
4315 la_natural_name initializers.
4316 (go_language::name): New member function.
4317 (go_language::natural_name): New member function.
4318 * language.c (show_language_command): Update call to
4319 language_defn::name.
4320 (set_language_command): Likewise.
4321 (language_enum): Likewise.
4322 (language_str): Likewise.
4323 (add_set_language_command): Likewise, use
4324 language_defn::natural_name in the doc string.
4325 (unknown_language_data): Remove la_name and
4326 la_natural_name initializers.
4327 (unknown_language::name): New member function.
4328 (unknown_language::natural_name): New member function.
4329 (auto_language_data): Remove la_name and
4330 la_natural_name initializers.
4331 (auto_language::name): New member function.
4332 (auto_language::natural_name): New member function.
4333 (language_lookup_primitive_type_as_symbol): Update call to
4334 language_defn::name.
4335 * language.h (language_data): Remove la_name and la_natural_name
4336 member variables.
4337 (language_defn::name): New member function.
4338 (language_defn::natural_name): New member function.
4339 * m2-lang.c (m2_language_data): Remove la_name and
4340 la_natural_name initializers.
4341 (m2_language::name): New member function.
4342 (m2_language::natural_name): New member function.
4343 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
4344 language_defn::natural_name.
4345 * objc-lang.c (objc_language_data): Remove la_name and
4346 la_natural_name initializers.
4347 (objc_language::name): New member function.
4348 (objc_language::natural_name): New member function.
4349 * opencl-lang.c (opencl_language_data): Remove la_name and
4350 la_natural_name initializers.
4351 (opencl_language::name): New member function.
4352 (opencl_language::natural_name): New member function.
4353 * p-lang.c (pascal_language_data): Remove la_name and
4354 la_natural_name initializers.
4355 (pascal_language::name): New member function.
4356 (pascal_language::natural_name): New member function.
4357 * rust-lang.c (rust_language_data): Remove la_name and
4358 la_natural_name initializers.
4359 (rust_language::name): New member function.
4360 (rust_language::natural_name): New member function.
4361 * symtab.c (lookup_language_this): Update call to
4362 language_defn::name.
4363
5bae7c4e
AB
43642020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4365
4366 * ada-lang.c (ada_language_data): Remove la_name_of_this
4367 initializer.
4368 * ax-gdb.c (gen_expr): Update call to name_of_this.
4369 * c-exp.y (classify_name): Likewise.
4370 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
4371 (cplus_language_data): Likewise.
4372 (cplus_language::name_of_this): New member function.
4373 (asm_language_data): Remove la_name_of_this initializer.
4374 (minimal_language_data): Likewise.
4375 * d-lang.c (d_language_data): Likewise.
4376 (d_language::name_of_this): New member function.
4377 * expprint.c (print_subexp_standard): Update call to name_of_this.
4378 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
4379 * go-lang.c (go_language_data): Likewise.
4380 * language.c (unknown_language_data): Likewise.
4381 (unknown_language::name_of_this): New member function.
4382 (auto_language_data): Remove la_name_of_this initializer.
4383 (auto_language::name_of_this): New member function.
4384 * language.h (language_data): Delete la_name_of_this member
4385 variable.
4386 (language_defn::name_of_this): New member function.
4387 * m2-lang.c (m2_language_data): Remove la_name_of_this
4388 initializer.
4389 * objc-lang.c (objc_language_data): Likewise.
4390 (objc_language::name_of_this): New member function.
4391 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
4392 initializer.
4393 * p-lang.c (pascal_language_data): Likewise.
4394 (pascal_language::name_of_this): New member function.
4395 * rust-lang.c (rust_language_data): Remove la_name_of_this
4396 initializer.
4397 * symtab.c (lookup_language_this): Update call to name_of_this.
4398 (lookup_symbol_aux): Likewise.
4399 * valops.c (value_of_this): Likewise.
4400
22e3f3ed
AB
44012020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4402
4403 * ada-lang.c (ada_language_data): Remove
4404 la_struct_too_deep_ellipsis initializer.
4405 (ada_language::struct_too_deep_ellipsis): New member function.
4406 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
4407 initializer.
4408 (cplus_language_data): Likewise.
4409 (asm_language_data): Likewise.
4410 (minimal_language_data): Likewise.
4411 * cp-valprint.c (cp_print_value): Update call to
4412 struct_too_deep_ellipsis.
4413 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
4414 initializer.
4415 * f-lang.c (f_language_data): Likewise.
4416 (f_language::struct_too_deep_ellipsis): New member function.
4417 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
4418 initializer.
4419 * language.c (unknown_language_data): Likewise.
4420 (auto_language_data): Likewise.
4421 * language.h (language_data): Delete la_struct_too_deep_ellipsis
4422 member variable.
4423 (language_defn::struct_too_deep_ellipsis): New member function.
4424 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
4425 initializer.Q
4426 * objc-lang.c (objc_language_data): Likewise.
4427 * opencl-lang.c (opencl_language_data): Likewise.
4428 * p-lang.c (pascal_language_data): Likewise.
4429 * rust-lang.c (rust_language_data): Likewise.
4430 * valprint.c (val_print_check_max_depth): Update call to
4431 struct_too_deep_ellipsis.
4432
ed29e1c7
FW
44332020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
4434
4435 * MAINTAINERS (Write After Approval): Add myself.
4436
12d8f940
TT
44372020-09-15 Tom Tromey <tom@tromey.com>
4438
4439 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
4440 Remove.
4441
6b5a7bc7
TT
44422020-09-15 Tom Tromey <tom@tromey.com>
4443
4444 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
4445 and TYPE_CODE_METHODPTR cases.
4446 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
4447 (c_value_print_inner): Update.
4448 * valprint.c (generic_value_print_memberptr): New function, from
4449 c_value_print_memberptr.
4450 (generic_value_print): Use it. Call cplus_print_method_ptr.
4451
47f0e2ff
TT
44522020-09-15 Tom Tromey <tromey@adacore.com>
4453
4454 * python/python-internal.h (PyInt_FromLong): Remove define.
4455 * python/py-value.c (convert_value_from_python): Use
4456 gdb_py_object_from_longest.
4457 * python/py-type.c (typy_get_code): Use
4458 gdb_py_object_from_longest.
4459 * python/py-symtab.c (salpy_get_line): Use
4460 gdb_py_object_from_longest.
4461 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
4462 gdb_py_object_from_longest.
4463 * python/py-record.c (recpy_gap_reason_code): Use
4464 gdb_py_object_from_longest.
4465 * python/py-record-btrace.c (recpy_bt_insn_size)
4466 (recpy_bt_func_level, btpy_list_count): Use
4467 gdb_py_object_from_longest.
4468 * python/py-infthread.c (gdbpy_create_ptid_object): Use
4469 gdb_py_object_from_longest. Fix error handling.
4470 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
4471 gdb_py_object_from_longest.
4472 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
4473 gdb_py_object_from_longest.
4474 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
4475 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
4476 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
4477
512116ce
TT
44782020-09-15 Tom Tromey <tromey@adacore.com>
4479
4480 * python/python.c (gdbpy_parameter_value): Use
4481 gdb_py_object_from_ulongest.
4482
4ab1029c
TT
44832020-09-15 Tom Tromey <tromey@adacore.com>
4484
4485 * python/py-infevents.c (create_register_changed_event_object):
4486 Use gdb_py_object_from_longest.
4487 * python/py-exitedevent.c (create_exited_event_object): Use
4488 gdb_py_object_from_longest.
4489
062534d4
TT
44902020-09-15 Tom Tromey <tromey@adacore.com>
4491
4492 * python/python.c (gdbpy_parameter_value): Use
4493 gdb_py_object_from_longest.
4494 * python/py-type.c (convert_field, typy_range): Use
4495 gdb_py_object_from_longest.
4496 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
4497 gdb_py_object_from_longest.
4498 * python/py-lazy-string.c (stpy_get_length): Use
4499 gdb_py_object_from_longest.
4500 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
4501 gdb_py_object_from_longest.
4502 * python/py-infevents.c (create_memory_changed_event_object): Use
4503 gdb_py_object_from_longest.
4504 * python/py-inferior.c (infpy_get_num): Use
4505 gdb_py_object_from_longest.
4506 (infpy_get_pid): Likewise.
4507
d1cab987
TT
45082020-09-15 Tom Tromey <tromey@adacore.com>
4509
4510 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
4511 defines.
4512 * python/py-value.c (valpy_long): Use
4513 gdb_py_object_from_ulongest.
4514 * python/py-symtab.c (salpy_get_pc): Use
4515 gdb_py_object_from_ulongest.
4516 (salpy_get_last): Likewise.
4517 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
4518 gdb_py_object_from_ulongest.
4519 * python/py-lazy-string.c (stpy_get_address): Use
4520 gdb_py_object_from_ulongest.
4521 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
4522 * python/py-arch.c (archpy_disassemble): Use
4523 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
4524 error handling.
4525
4bde49dc
TT
45262020-09-15 Tom Tromey <tromey@adacore.com>
4527
4528 * python/python-internal.h (gdb_py_long_from_longest): Remove
4529 defines.
4530 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
4531 * python/py-type.c (convert_field, typy_get_sizeof): Use
4532 gdb_py_object_from_longest.
4533 * python/py-record-btrace.c (btpy_list_index): Use
4534 gdb_py_object_from_longest.
4535
37431074
TT
45362020-09-15 Tom Tromey <tromey@adacore.com>
4537
4538 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
4539 * python/py-record.c (recpy_element_number): Use
4540 gdb_py_object_from_longest.
4541 (recpy_gap_number): Likewise.
4542
cbe25684
TT
45432020-09-15 Tom Tromey <tromey@adacore.com>
4544
4545 * top.c (ui::ui): Update.
4546 (highest_ui_num): Remove.
4547 * top.h (struct ui) <num>: Remove.
4548
db92ac45
TT
45492020-09-15 Tom Tromey <tromey@adacore.com>
4550
4551 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
4552 * ui-style.c (ansi_regex_text): Now array.
4553 * rust-exp.y (number_regex_text): Now array.
4554 * linespec.c (linespec_quote_characters): Now array.
4555 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
4556 Now arrays.
4557
d2b31b67
SM
45582020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4559
4560 * debuginfod-support.c (debuginfod_client_deleter): New.
4561 (debuginfod_client_up): New.
4562 (debuginfod_init): Return debuginfod_client_up.
4563 (debuginfod_source_query): Adjust.
4564 (debuginfod_debuginfo_query): Adjust.
4565
3246bd8e
SM
45662020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4567
4568 * debuginfod-support.c (debuginfod_source_query): Use
4569 make_unique_xstrdup.
4570
10242f36
SM
45712020-09-14 Simon Marchi <simon.marchi@efficios.com>
4572
4573 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
4574 with `type::instance_flags`.
4575
e1044e6a
MM
45762020-09-14 Michael Mullin <masmullin@gmail.com>
4577
4578 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
4579 Remove baton parameter.
4580
04902b09
PA
45812020-09-14 Pedro Alves <pedro@palves.net>
4582
4583 * Makefile.in (SELFTESTS_SRCS): Add
4584 unittests/enum-flags-selftests.c.
4585 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
4586 btrace_function_flags instead of enum btrace_function_flag.
4587 * compile/compile-c-types.c (convert_qualified): Use
4588 enum_flags::raw.
4589 * compile/compile-cplus-symbols.c (convert_one_symbol)
4590 (convert_symbol_bmsym):
4591 * compile/compile-cplus-types.c (compile_cplus_convert_method)
4592 (compile_cplus_convert_struct_or_union_methods)
4593 (compile_cplus_instance::convert_qualified_base):
4594 * go-exp.y (parse_string_or_char): Add cast to int.
4595 * unittests/enum-flags-selftests.c: New file.
4596 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
4597 type to btrace_thread_flags from btrace_thread_flag.
4598 (record_btrace_cancel_resume, record_btrace_step_thread): Change
4599 local's type to btrace_thread_flags from btrace_thread_flag. Add
4600 cast in DEBUG call.
4601
69896a2c
PA
46022020-09-14 Pedro Alves <pedro@palves.net>
4603
4604 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
4605 * gdbtypes.c (address_space_name_to_int): Rename to ...
4606 (address_space_name_to_type_instance_flags): ... this.
4607 (address_space_int_to_name): Rename to ...
4608 (address_space_type_instance_flags_to_name): ... this.
4609 * gdbtypes.h (address_space_name_to_int): Rename to ...
4610 (address_space_name_to_type_instance_flags): ... this.
4611 (address_space_int_to_name): Rename to ...
4612 (address_space_type_instance_flags_to_name): ... this.
4613 * type-stack.c (type_stack::insert): Adjust to rename.
4614 * type-stack.h (type_stack::insert): Likewise.
4615
314ad88d
PA
46162020-09-14 Pedro Alves <pedro@palves.net>
4617 Andrew Burgess <andrew.burgess@embecosm.com>
4618
4619 * avr-tdep.c (avr_address_class_type_flags): Return
4620 type_instance_flags.
4621 (avr_address_class_type_flags_to_name): Take a
4622 type_instance_flags.
4623 (avr_address_class_name_to_type_flags): Return bool and take a
4624 type_instance_flags.
4625 * d-lang.c (build_d_types): Use type::set_instance_flags.
4626 * ft32-tdep.c (ft32_address_class_type_flags): Return
4627 type_instance_flags.
4628 (ft32_address_class_type_flags_to_name): Take a
4629 type_instance_flags.
4630 (ft32_address_class_name_to_type_flags): Return bool and take a
4631 type_instance_flags.
4632 (ft32_gdbarch_init): Use type::set_instance_flags.
4633 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
4634 * gdbarch.h, gdbarch.c: Regenerate.
4635 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
4636 (address_class_name_to_type_flags): Use type_instance_flags and
4637 bool.
4638 * gdbtypes.c (address_space_name_to_int)
4639 (address_space_int_to_name, make_qualified_type): Use
4640 type_instance_flags.
4641 (make_qualified_type): Use type_instance_flags and
4642 type::set_instance_flags.
4643 (make_type_with_address_space, make_cv_type, make_vector_type)
4644 (check_typedef): Use type_instance_flags.
4645 (recursive_dump_type): Cast type_instance_flags to unsigned for
4646 printing.
4647 (copy_type_recursive): Use type::set_instance_flags.
4648 (gdbtypes_post_init): Use type::set_instance_flags.
4649 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
4650 <m_instance_flags>: ... this.
4651 <instance_flags, set_instance_flags>: New methods.
4652 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
4653 (SET_TYPE_INSTANCE_FLAGS): New.
4654 (address_space_name_to_int, address_space_int_to_name)
4655 (make_type_with_address_space): Pass flags using
4656 type_instance_flags instead of int.
4657 * stabsread.c (cleanup_undefined_types_noname): Use
4658 type::set_instance_flags.
4659 * s390-tdep.c (s390_address_class_type_flags): Return
4660 type_instance_flags.
4661 (s390_address_class_type_flags_to_name): Take a
4662 type_instance_flags.
4663 (s390_address_class_name_to_type_flags): Return bool and take a
4664 type_instance_flags.
4665 * type-stack.c (type_stack::follow_types): Use
4666 type_instance_flags.
4667 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
4668
27087b7f
TT
46692020-09-14 Tom Tromey <tromey@adacore.com>
4670
4671 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
4672 * x86-tdep.c (x86_is_thunk_register_name)
4673 (x86_in_indirect_branch_thunk): Update.
4674 * sparc64-tdep.c (sparc64_fpu_register_names)
4675 (sparc64_cp0_register_names, sparc64_register_names)
4676 (sparc64_pseudo_register_names): Now const.
4677 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
4678 cp0_registers_num>: Now const.
4679 * sparc-tdep.c (sparc_core_register_names)
4680 (sparc32_fpu_register_names, sparc32_cp0_register_names)
4681 (sparc32_pseudo_register_names): Now const.
4682 (validate_tdesc_registers): Update.
4683 * rust-lang.c (rust_extensions): Now const.
4684 * p-lang.c (p_extensions): Now const.
4685 * objc-lang.c (objc_extensions): Now const.
4686 * nto-tdep.c (nto_thread_state_str): Now const.
4687 * moxie-tdep.c (moxie_register_names): Now const.
4688 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
4689 Now const.
4690 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
4691 (mips_linux_reg_names): Now const.
4692 (mips_gdbarch_init): Update.
4693 * microblaze-tdep.c (microblaze_register_names): Now const.
4694 * m68k-tdep.c (m68k_register_names): Now const.
4695 * m32r-tdep.c (m32r_register_names): Now const.
4696 * ia64-tdep.c (ia64_register_names): Now const.
4697 * i386-tdep.h (struct gdbarch_tdep) <register_names,
4698 ymmh_register_names, ymm16h_regnum, mpx_register_names,
4699 k_register_names, zmmh_register_names, xmm_avx512_register_names,
4700 ymm_avx512_register_names, pkeys_register_names>: Now const.
4701 * i386-tdep.c (i386_register_names, i386_zmm_names)
4702 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
4703 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
4704 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
4705 * f-lang.c (f_extensions): Now const.
4706 * d-lang.c (d_extensions): Now const.
4707 * csky-tdep.c (csky_register_names): Now const.
4708 * charset.c (default_charset_names, charset_enum): Now const.
4709 (_initialize_charset): Update.
4710 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
4711 const.
4712 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
4713 (bsd_uthread_solib_loaded): Update.
4714 (bsd_uthread_state): Now const.
4715 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
4716 (amd64_ymm_avx512_names, amd64_ymmh_names)
4717 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
4718 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
4719 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
4720 (amd64_dword_names): Now const.
4721 * agent.c (can_use_agent_enum): Now const.
4722 * ada-tasks.c (task_states, long_task_states): Now const.
4723 * ada-lang.c (known_runtime_file_name_patterns)
4724 (known_auxiliary_function_name_patterns, attribute_names)
4725 (standard_exc, ada_extensions): Now const.
4726
89806626
SM
47272020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4728
4729 * bcache.h (struct bcache) <bcache>: Remove constructor.
4730 <m_hash_function, m_compare_function>: Remove.
4731 <~bcache>: Make virtual.
4732 <compare>: Remove static method, introduce virtual method.
4733 <default_hash>: Remove.
4734 <hash>: New virtual method.
4735 * bcache.c (bcache::expand_hash_table): Update.
4736 (bcache::insert): Update.
4737 (bcache::hash): New.
4738 (bcache::compare): Update comment and parameter names.
4739 * gdbtypes.c (types_deeply_equal): Update.
4740 * psymtab.h (struct psymbol_bcache): New struct.
4741 (class psymtab_storage) <psymtab_storage>: Make default.
4742 <psymbol_cache>: Change type to psymbol_bcache.
4743 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
4744 (psymbol_hash): Change to...
4745 (psymbol_bcache::hash): ... this.
4746 (psymbol_compare): Change to...
4747 (psymbol_bcache::compare): ... this.
4748
677c92fe
SM
47492020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4750
4751 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
4752 checking for initial lwp.
4753
3eba3a01
TT
47542020-09-14 Tom Tromey <tromey@adacore.com>
4755
4756 * m68k-tdep.c (m68k_extract_return_value): Use
4757 pointer_result_regnum.
4758 (m68k_store_return_value): Likewise.
4759 (m68k_reg_struct_return_p): Handle vectors and arrays.
4760 (m68k_return_value): Handle arrays.
4761 (m68k_svr4_return_value): Fix single-element aggregate handling.
4762 Handle long double. Adjust for embedded ABI.
4763 (m68k_svr4_init_abi): Set pointer_result_regnum.
4764 (m68k_embedded_init_abi): New function.
4765 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
4766 (m68k_osabi_sniffer): New function.
4767 (_initialize_m68k_tdep): Register osabi sniffer.
4768 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
4769 member.
4770
33f4dd48
SM
47712020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4772
4773 * xml-support.c (xml_fetch_content_from_file): Replace xfree
4774 with gdb::unique_xmalloc_ptr<char>.
4775
8400a90d
SM
47762020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4777
4778 * xml-support.h (xml_fetch_another): Change type to be a
4779 function_view.
4780 (xml_process_xincludes): Remove baton parameter.
4781 (xml_fetch_content_from_file): Change baton parameter to
4782 dirname.
4783 * xml-support.c (struct xinclude_parsing_data)
4784 <xinclude_parsing_data>: Remove baton parameter.
4785 <fetcher_baton>: Remove.
4786 (xinclude_start_include): Adjust.
4787 (xml_process_xincludes): Adjust.
4788 (xml_fetch_content_from_file): Replace baton parameter with
4789 dirname.
4790 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
4791 (xml_init_syscalls_info): Use a lambda.
4792 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
4793 (file_read_description_xml): Use a lambda.
4794 (fetch_available_features_from_target): Change baton parameter
4795 to target_ops.
4796 (target_read_description_xml): Use a lambda.
4797 (target_fetch_description_xml): Use a lambda.
4798 (string_read_description_xml): Update.
4799
04f5bab2
SM
48002020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4801
4802 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
4803 uses with type::endianity_is_not_default.
4804
db558e34
SM
48052020-09-14 Simon Marchi <simon.marchi@efficios.com>
4806
4807 * gdbtypes.h (struct type) <endianity_is_not_default,
4808 set_endianity_is_not_default>: New methods.
4809 (TYPE_ENDIANITY_NOT_DEFAULT): Use
4810 type::endianity_is_not_default, change all write call sites to
4811 use type::set_endianity_is_not_default.
4812
22c4c60c
SM
48132020-09-14 Simon Marchi <simon.marchi@efficios.com>
4814
4815 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
4816 uses with type::is_fixed_instance.
4817
9cdd0d12
SM
48182020-09-14 Simon Marchi <simon.marchi@efficios.com>
4819
4820 * gdbtypes.h (struct type) <is_fixed_instance,
4821 set_is_fixed_instance>: New methods.
4822 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
4823 write call sites to use type::set_is_fixed_instance.
4824
0becda7a
SM
48252020-09-14 Simon Marchi <simon.marchi@efficios.com>
4826
4827 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
4828 uses with type::is_gnu_ifunc.
4829
03cc7249
SM
48302020-09-14 Simon Marchi <simon.marchi@efficios.com>
4831
4832 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
4833 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
4834 use type::set_is_gnu_ifunc.
4835
3f46044c
SM
48362020-09-14 Simon Marchi <simon.marchi@efficios.com>
4837
4838 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
4839 uses with type::stub_is_supported.
4840
9baccff6
SM
48412020-09-14 Simon Marchi <simon.marchi@efficios.com>
4842
4843 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
4844 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
4845 use type::set_stub_is_supported.
4846
bd63c870
SM
48472020-09-14 Simon Marchi <simon.marchi@efficios.com>
4848
4849 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
4850 uses with type::is_vector.
4851
2062087b
SM
48522020-09-14 Simon Marchi <simon.marchi@efficios.com>
4853
4854 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
4855 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
4856 use type::set_is_vector.
4857
a409645d
SM
48582020-09-14 Simon Marchi <simon.marchi@efficios.com>
4859
4860 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
4861 uses with type::has_varargs.
4862
1d6286ed
SM
48632020-09-14 Simon Marchi <simon.marchi@efficios.com>
4864
4865 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
4866 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
4867 use type::set_has_varargs.
4868
7f9f399b
SM
48692020-09-14 Simon Marchi <simon.marchi@efficios.com>
4870
4871 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
4872 uses with type::is_prototyped.
4873
27e69b7a
SM
48742020-09-14 Simon Marchi <simon.marchi@efficios.com>
4875
4876 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
4877 New methods.
4878 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
4879 call sites to use type::set_is_prototyped.
4880
d2183968
SM
48812020-09-14 Simon Marchi <simon.marchi@efficios.com>
4882
4883 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
4884 uses with type::target_is_stub.
4885
8f53807e
SM
48862020-09-14 Simon Marchi <simon.marchi@efficios.com>
4887
4888 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
4889 New methods.
4890 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
4891 sites to use type::set_target_is_stub.
4892
e46d3488
SM
48932020-09-14 Simon Marchi <simon.marchi@efficios.com>
4894
4895 * gdbtypes.h (TYPE_STUB): Remove, replace all
4896 uses with type::is_stub.
4897
b4b73759
SM
48982020-09-14 Simon Marchi <simon.marchi@efficios.com>
4899
4900 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
4901 (TYPE_STUB): Use type::is_stub, change all write call sites to
4902 use type::set_is_stub.
4903
20ce4123
SM
49042020-09-14 Simon Marchi <simon.marchi@efficios.com>
4905
4906 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
4907 type::has_no_signedness.
4908
15152a54
SM
49092020-09-14 Simon Marchi <simon.marchi@efficios.com>
4910
4911 * gdbtypes.h (struct type) <has_no_signedness,
4912 set_has_no_signedness>: New methods.
4913 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
4914 call sites to use type::set_has_no_signedness.
4915
c6d940a9
SM
49162020-09-14 Simon Marchi <simon.marchi@efficios.com>
4917
4918 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
4919 type::is_unsigned.
4920
653223d3
SM
49212020-09-14 Simon Marchi <simon.marchi@efficios.com>
4922
4923 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
4924 methods.
4925 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
4926 sites to use type::set_is_unsigned.
4927
55ea94da 49282020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 4929 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 4930
e851246a
SM
4931 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
4932 pointer and stack frame offset when unwinding.
55ea94da 4933
6791b117
PA
49342020-09-13 Pedro Alves <pedro@palves.net>
4935
4936 * NEWS: Document "-break-insert --qualified".
4937 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
4938
77f2120b
PA
49392020-09-13 Pedro Alves <pedro@palves.net>
4940
4941 * linespec.c (classify_mtype, compare_msyms): Delete.
4942 (search_minsyms_for_name): Remove classification logic. Instead
4943 filter out trampoline symbols if we also found an external
4944 function of the same name.
4945
ed6a896c
JB
49462020-09-13 Joel Brobecker <brobecker@adacore.com>
4947
4948 * NEWS: Create a new section for the next release branch.
4949 Rename the section of the current branch, now that it has
4950 been cut.
4951
32aea73e
JB
49522020-09-13 Joel Brobecker <brobecker@adacore.com>
4953
4954 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
4955 * version.in: Bump version to 11.0.50.DATE-git.
4956
8087c3fa
JB
49572020-09-12 Joel Brobecker <brobecker@adacore.com>
4958
4959 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
4960
2a67f09d
FW
49612020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
4962 Felix Willgerodt <Felix.Willgerodt@intel.com>
4963
4964 * gdbarch.sh: Added bfloat16 type.
4965 * gdbarch.c: Regenerated.
4966 * gdbarch.h: Regenerated.
4967 * gdbtypes.c (floatformats_bfloat16): New struct.
4968 (gdbtypes_post_init): Add builtin_bfloat16.
4969 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
4970 (floatformats_bfloat16): New struct.
4971 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
4972 (i386_ymm_type): Add field "v16_bfloat16"
4973 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
4974 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
4975 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
4976 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
4977 * features/i386/64bit-avx512.xml: Add bfloat16 type.
4978 * features/i386/64bit-avx512.c: Regenerated.
4979 * features/i386/64bit-sse.xml: Add bfloat16 type.
4980 * features/i386/64bit-sse.c: Regenerated.
4981
1347d111
FW
49822020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
4983
4984 * i386-tdep.c (i386_zmm_type): Fix field names.
4985 (i386_ymm_type): Fix field names.
4986
7a4e8e7d
TBA
49872020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
4988
4989 * breakpoint.c: Fix typo in the help message of the
4990 "set breakpoint condition-evaluation" command.
4991
cf4ac4be
KR
49922020-09-10 Kamil Rytarowski <n54@gmx.com>
4993
4994 * nbsd-nat.c: Include "nat/netbsd-nat.h".
4995 * (nbsd_nat_target::pid_to_exec_file)
4996 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
4997 (nbsd_nat_target::post_startup_inferior)
4998 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
4999 (nbsd_add_threads): Switch local code to common gdb/nat functions.
5000 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
5001 * (nbsd_thread_lister): Remove.
5002
f404573e
KR
50032020-09-10 Kamil Rytarowski <n54@gmx.com>
5004
5005 * fork-inferior.c (startup_inferior): Avoid double free.
5006
1ccb2c17
KR
50072020-09-10 Kamil Rytarowski <n54@gmx.com>
5008
5009 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
5010 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
5011
feedfcc7
KR
50122020-09-10 Kamil Rytarowski <n54@gmx.com>
5013
5014 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
5015 * netbsd-nat.c: Include <sys/ptrace.h>.
5016 * (netbsd_nat::enable_proc_events): Add.
5017
c489f8c6
KR
50182020-09-10 Kamil Rytarowski <n54@gmx.com>
5019
5020 * netbsd-nat.h: Include "gdbsupport/function-view.h".
5021 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5022 (netbsd_nat::for_each_thread): Add.
5023 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
5024 "gdbsupport/common-debug.h".
5025 * (netbsd_nat::netbsd_thread_lister)
5026 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5027 (netbsd_nat::for_each_thread): Add.
5028
330662f6
KR
50292020-09-10 Kamil Rytarowski <n54@gmx.com>
5030
5031 * netbsd-nat.h: Include <unistd.h>.
5032 * (netbsd_nat::pid_to_exec_file): Add.
5033 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
5034 * (netbsd_nat::pid_to_exec_file) Add.
5035
70b67307
KR
50362020-09-10 Kamil Rytarowski <n54@gmx.com>
5037
5038 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
5039
99cf6da6
KR
50402020-09-10 Kamil Rytarowski <n54@gmx.com>
5041
5042 * netbsd-nat.h: New file.
5043 * netbsd-nat.c: Likewise.
5044
1b788fb6
TT
50452020-09-09 Tom Tromey <tromey@adacore.com>
5046
5047 * ada-lang.c (remove_extra_symbols): Do not increment when
5048 removing an element
5049
03b0a45f
TT
50502020-09-08 Tom Tromey <tromey@adacore.com>
5051
5052 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
5053
3cae4447
TT
50542020-09-08 Tom Tromey <tromey@adacore.com>
5055
5056 PR win32/25302:
5057 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
5058 (gdb_bfd_init_data): New function.
5059 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
5060
7f08fd51
TBA
50612020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5062
5063 * infrun.c (fetch_inferior_event): Use
5064 `switch_to_target_no_thread` to switch the target.
5065
3e6ff933
TT
50662020-09-06 Tom Tromey <tom@tromey.com>
5067
5068 * symfile.h (dwarf2_free_objfile): Don't declare.
5069
e56798df
AKS
50702020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5071
5072 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
5073 to match 16 byte real/complex type generated by Flang compiler.
5074
8f5c6526
TV
50752020-09-03 Tom de Vries <tdevries@suse.de>
5076
5077 PR breakpoint/26546
5078 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
5079 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
5080
c5065df0
SM
50812020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
5082
5083 * maint.c (index_digits): New function.
5084 (struct maint_print_section_data): Remove.
5085 (print_bfd_section_info): Remove print_data parameter, add arg
5086 and index_digits.
5087 (print_objfile_section_info): Likewise.
5088 (print_bfd_section_info_maybe_relocated): Likewise (plus
5089 objfile).
5090 (maintenance_info_sections): Adjust calls.
5091
02c6f3f1
TT
50922020-09-02 Tom Tromey <tromey@adacore.com>
5093
5094 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
5095 for null pointers.
5096 (ada_varobj_adjust_for_child_access): Special-case null pointers.
5097
ef5e5b0b
SM
50982020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
5099
5100 * bcache.h (struct bcache) <insert>: Change type of `added` to
5101 pointer to bool.
5102 * bcache.c (bcache::insert): Likewise.
5103 * gdbtypes.c (check_types_worklist): Adjust.
5104 * psymtab.c (add_psymbol_to_bcache): Adjust.
5105
973695d6
KB
51062020-08-31 Kevin Buettner <kevinb@redhat.com>
5107
5108 * corelow.c (unordered_set): Include.
5109 (class core_target): Add field 'm_core_unavailable_mappings'.
5110 (core_target::build_file_mappings): Print only one warning
5111 per inaccessible file. Add unavailable/broken mappings
5112 to m_core_unavailable_mappings.
5113 (core_target::xfer_partial): Call...
5114 (core_target::xfer_memory_via_mappings): New method.
5115
264fc0e2
SM
51162020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5117
5118 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
5119 type to bool.
5120
2de01bdb
SM
51212020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5122
5123 * dwarf2/read.c (struct field_info): Fix indentation.
5124
f3bd50f1
SM
51252020-08-31 Simon Marchi <simon.marchi@efficios.com>
5126
5127 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
5128 ordering in comment.
5129 * frame.c (frame_id_eq): Fix indentation.
5130
22b9b4b0
SL
51312020-08-31 Scott Linder <scott@scottlinder.com>
5132 Simon Marchi <simon.marchi@efficios.com>
5133
5134 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
5135 inline frame ids in outer frame.
5136
84154d16
SM
51372020-08-31 Simon Marchi <simon.marchi@efficios.com>
5138
5139 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
5140 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
5141 (outer_frame_id): Use FID_STACK_OUTER instead of
5142 FID_STACK_INVALID.
5143 (frame_id_p): Don't check for outer_frame_id.
5144
8efaf6b3
SM
51452020-08-31 Simon Marchi <simon.marchi@efficios.com>
5146
5147 * frame-unwind.c (frame_unwind_got_optimized): Don't set
5148 regnum/frame in value. Call allocate_value_lazy.
5149 * frame.c (frame_unwind_register_value): Use
5150 val_print_not_saved.
5151
fe1fe7ea
SM
51522020-08-31 Simon Marchi <simon.marchi@efficios.com>
5153
5154 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
5155
f7c7700d
PA
51562020-08-29 Pedro Alves <pedro@palves.net>
5157
5158 * progspace.c (print_program_space): Use all_inferiors. Switch to
5159 the inferior before calling target_pid_to_str.
5160
e0814aae
TT
51612020-08-28 Tom Tromey <tom@tromey.com>
5162
5163 * xcoffread.c (xcoff_end_psymtab): Update comment.
5164 * dbxread.c (dbx_end_psymtab): Update comment.
5165
626d2320
TV
51662020-08-28 Tom de Vries <tdevries@suse.de>
5167
5168 PR breakpoint/26544
5169 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
5170 event_location.
5171 (create_breakpoint): Same.
5172 (base_breakpoint_decode_location): Same.
5173 (bkpt_create_sals_from_location): Same.
5174 (bkpt_decode_location): Same.
5175 (bkpt_probe_create_sals_from_location): Same.
5176 (bkpt_probe_decode_location): Same.
5177 (tracepoint_create_sals_from_location): Same.
5178 (tracepoint_decode_location): Same.
5179 (tracepoint_probe_decode_location): Same.
5180 (strace_marker_create_sals_from_location): Same.
5181 (strace_marker_decode_location): Same.
5182 (create_sals_from_location_default): Same.
5183 (decode_location_default): Same.
5184 * breakpoint.h (struct breakpoint_ops): Same.
5185 (create_breakpoint): Same.
5186 * linespec.h (decode_line_full): Same.
5187 * linespec.c (decode_line_full): Same. Throw error if
5188 result.size () == 0.
5189
df631783
PA
51902020-08-27 Pedro Alves <pedro@palves.net>
5191
5192 PR gdb/26524
5193 * breakpoint.c (until_break_fsm) <location_breakpoint,
5194 caller_breakpoint>: Delete fields.
5195 <breakpoints>: New field.
5196 <until_break_fsm>: Adjust to save a breakpoint vector instead of
5197 two individual breakpoints.
5198 (until_break_fsm::should_stop): Loop over breakpoints in the
5199 breakpoint vector.
5200 (until_break_fsm::clean_up): Adjust to clear the breakpoints
5201 vector.
5202 (until_break_command): Handle location expanding into multiple
5203 sals.
5204
b2b38aa4
PA
52052020-08-27 Pedro Alves <pedro@palves.net>
5206
5207 PR gdb/26523
5208 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
5209 bp_until breakpoints user-specified locations. Update intro
5210 comment.
5211
b886559f
SM
52122020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
5213
5214 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
5215 gdb_bfd_sections): New.
5216 * maint.c (print_bfd_section_info): Change param type to
5217 maint_print_section_data.
5218 (print_objfile_section_info): Likewise.
5219 (print_bfd_section_info_maybe_relocated): Likewise.
5220 (maintenance_info_sections): Use gdb_bfd_sections.
5221
4c6e63bf
SV
52222020-08-25 Shahab Vahedi <shahab@synopsys.com>
5223
5224 * MAINTAINERS: Add ARC target and maintainer.
5225
8d7f0635
AK
52262020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
5227
5228 * configure.tgt: ARC support for GNU/Linux.
5229 * Makefile.in (ALL_TARGET_OBJS): Likewise.
5230 * arc-linux-tdep.c: New file.
5231 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
5232 * arc-tdep.c (arc_write_pc): Use it.
5233
fdd8731b
SV
52342020-08-25 Shahab Vahedi <shahab@synopsys.com>
5235
5236 * arc-tdep.c (arc_check_for_hardware_loop): New.
5237 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
5238
22459524
SV
52392020-08-25 Shahab Vahedi <shahab@synopsys.com>
5240
5241 * arc-tdep.h: Include "gdbarch.h".
5242
995d3a19
SV
52432020-08-25 Shahab Vahedi <shahab@synopsys.com>
5244
5245 * arch/arc.h
5246 (arc_gdbarch_features): New class to stir the selection of target XML.
5247 (arc_create_target_description): Use FEATURES to choose XML target.
5248 (arc_lookup_target_description): Use arc_create_target_description
5249 to create _new_ target descriptions or return the already created
5250 ones if the FEATURES is the same.
5251 * arch/arc.c: Implementation of prototypes described above.
5252 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
5253 (arc_gdbarch_features_init): Initialize the FEATURES struct.
5254 * arc-tdep.c (*_feature_name): Make feature names consistent.
5255 (arc_register_feature): A new struct to hold information about
5256 registers of a particular target/feature.
5257 (arc_check_tdesc_feature): Check if XML provides registers in
5258 compliance with ARC_REGISTER_FEATURE structs.
5259 (arc_update_acc_reg_names): Add aliases for r58 and r59.
5260 (determine_*_reg_feature_set): Which feature name to look for.
5261 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
5262 (mach_type_to_arc_isa): Convert from a set of binutils machine types
5263 to expected ISA enums to be used in arc_gdbarch_features structs.
5264 * features/Makefile (FEATURE_XMLFILES): Add new files.
5265 * gdb/features/arc/v1-aux.c: New file.
5266 * gdb/features/arc/v1-aux.xml: Likewise.
5267 * gdb/features/arc/v1-core.c: Likewise.
5268 * gdb/features/arc/v1-core.xml: Likewise.
5269 * gdb/features/arc/v2-aux.c: Likewise.
5270 * gdb/features/arc/v2-aux.xml: Likewise.
5271 * gdb/features/arc/v2-core.c: Likewise.
5272 * gdb/features/arc/v2-core.xml: Likewise.
5273 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
5274
3945d2d7
GM
52752020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
5276 Andrew Burgess <andrew.burgess@embecosm.com>
5277
5278 PR m2/26372
fc5d6901 5279 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
5280 an assert. Remove single element array indexing pattern as the
5281 MULTI_SUBSCRIPT support will handle this case too.
5282
2677f2d3
SM
52832020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
5284
5285 * value.h (valprint_check_validity): Move declaration from
5286 here...
5287 * valprint.h (valprint_check_validity): ... to here.
5288
c426fddb
SM
52892020-08-24 Simon Marchi <simon.marchi@efficios.com>
5290
5291 * debug.h: New file.
5292 * debug.c (debug_prefixed_vprintf): New function.
5293 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
5294 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
5295
1eb8556f
SM
52962020-08-24 Simon Marchi <simon.marchi@efficios.com>
5297
5298 * infrun.h (infrun_debug_printf_1): New function declaration.
5299 (infrun_debug_printf): New macro.
5300 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
5301 throughout.
5302 (infrun_debug_printf): New function.
5303 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
5304 (handle_jit_event): Likewise.
5305
b8fff44e
MW
53062020-08-21 Mark Wielaard <mark@klomp.org>
5307
5308 * ada-lex.l: Extend register warnings diagnostics comment for g++.
5309
d19c3068
SM
53102020-08-22 Simon Marchi <simon.marchi@efficios.com>
5311
5312 * frame.c (enum class frame_id_status): New.
5313 (struct frame_info) <this_id::p>: Change type to frame_id_status.
5314 (fprintf_frame): Update.
5315 (compute_frame_id): Set frame id status to "computing" on entry.
5316 Set it back to "not_computed" on failure and to "computed" on
5317 success.
5318 (get_frame_id): Assert the frame id is not being computed.
5319 (create_sentinel_frame): Use frame_id_status::COMPUTED.
5320 (create_new_frame): Likewise.
5321 (frame_cleanup_after_sniffer): Update assert.
5322
b70e516e
SM
53232020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5324
5325 * regcache.c (pid_ptid_regcache_map): New type.
5326 (target_ptid_regcache_map): Remove.
5327 (target_pid_ptid_regcache_map): New type.
5328 (regcaches): Change type to target_pid_ptid_regcache_map.
5329 (get_thread_arch_aspace_regcache): Update.
5330 (regcache_thread_ptid_changed): Update, handle pid-like ptid
5331 case.
5332 (regcaches_size): Update.
5333 (regcache_count): Update.
5334 (registers_changed_ptid_target_pid_test): New.
5335 (_initialize_regcache): Register new test.
5336
cdd9148a
SM
53372020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5338
5339 * regcache.c (regcache_count): New.
5340 (struct regcache_test_data): New.
5341 (regcache_test_data_up): New.
5342 (populate_regcaches_for_test): New.
5343 (regcaches_test): Remove.
5344 (get_thread_arch_aspace_regcache_test): New.
5345 (registers_changed_ptid_all_test): New.
5346 (registers_changed_ptid_target_test): New.
5347 (registers_changed_ptid_target_ptid_test): New.
5348 (regcache_thread_ptid_changed): Remove regcache_count lambda.
5349 (_initialize_regcache): Register new tests.
5350
dd125343
SM
53512020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5352
5353 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
5354 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
5355 gdbarch and aspace parameter. Use current inferior's aspace.
5356 Validate regcache's arch value.
5357 (regcaches_test): Update.
5358
3ee93972
SM
53592020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5360
5361 * regcache.c (regcaches_test): Call registers_changed.
5362
33bf4c5c
TBA
53632020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5364
5365 * infrun.c (process_event_stop_test): Fix typo "breapoint".
5366
c2fd7fae
AKS
53672020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5368
5369 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
5370 to find the end of prologue for flang compiled binaries.
5371 * arm-tdep.c (arm_skip_prologue): Likewise.
5372 * i386-tdep.c (i386_skip_prologue): Likewise.
5373 * producer.c (producer_is_llvm): New function.
5374 (producer_parsing_tests): Added new tests for clang/flang.
5375 * producer.h (producer_is_llvm): New declaration.
5376
9327494e
SM
53772020-08-18 Simon Marchi <simon.marchi@efficios.com>
5378
5379 * linux-nat.c (linux_nat_debug_printf): New function.
5380 (linux_nat_debug_printf_1): New macro. Use throughout the file.
5381
d138725a
AM
53822020-08-18 Aaron Merey <amerey@redhat.com>
5383
5384 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
5385 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
5386 (CLIBS): Add DEBUGINFOD_LIBS.
5387
f9b11e6b
ST
53882020-08-17 Sergei Trofimovich <siarheit@google.com>
5389
5390 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
5391 'gdbarch_num_regs'.
5392
3ae7ab99
TT
53932020-08-17 Tom Tromey <tromey@adacore.com>
5394
5395 * ada-varobj.c (ada_varobj_decode_var): Handle case where
5396 ada_get_decoded_value returns NULL.
5397
b017825f
TT
53982020-08-17 Tom Tromey <tromey@adacore.com>
5399
5400 * python/py-inferior.c (infpy_search_memory): Use
5401 gdb_py_object_from_ulongest.
5402 * python/py-infevents.c (create_inferior_call_event_object)
5403 (create_memory_changed_event_object): Use
5404 gdb_py_object_from_ulongest.
5405 * python/py-linetable.c (ltpy_entry_get_pc): Use
5406 gdb_py_object_from_ulongest.
5407
7635cf79
SM
54082020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5409
5410 * loc.c (class symbol_needs_eval_context): Fix indentation.
5411
f54be24b
SM
54122020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5413
5414 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
5415 bool.
5416
53d5a2a5
TV
54172020-08-17 Tom de Vries <tdevries@suse.de>
5418
5419 PR gdb/26393
5420 * gdbtypes.c (dump_dynamic_prop): New function.
5421 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
5422
547ce8f0
TV
54232020-08-15 Tom de Vries <tdevries@suse.de>
5424
5425 PR backtrace/26390
5426 * stack.c (print_frame_args): Temporarily set the selected
5427 frame to FRAME while printing the frame's arguments.
5428
6ea815e7
PFC
54292020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5430
5431 PR breakpoints/26385
5432 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
5433 Always clear watchpoint with PTRACE_SET_DEBUGREG.
5434
6e562fa3
PFC
54352020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5436
5437 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
5438 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
5439 and >= to check return value instead of == -1 and != -1.
5440
d369b608
SM
54412020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
5442
5443 * utils.h (class gdb_argv) <as_array_view>: New method.
5444 * utils.c (gdb_argv_as_array_view_test): New.
5445 (_initialize_utils): Register selftest.
5446 * maint.c (maintenance_selftest): Use the new method.
5447
b31488a3
KR
54482020-08-13 Kamil Rytarowski <n54@gmx.com>
5449
5450 * target.h (supports_dumpcore, dumpcore): New
5451 function declarations.
5452 * target.c (supports_dumpcore, dumpcore): New
5453 functions.
5454 * target-delegates.c: Rebuild.
5455 * gcore.c (gcore_command): Use target_supports_dumpcore ()
5456 and target_dumpcore ().
5457
002a3166
AM
54582020-08-13 Aaron Merey <amerey@redhat.com>
5459
5460 * debuginfod-support.c: Replace global variables with user_data.
5461
ece5bc8a
SM
54622020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
5463
5464 * maint.c (maintenance_selftest): Split args and pass array_view
5465 to run_tests.
5466
6d8a0a5e
LM
54672020-08-12 Luis Machado <luis.machado@linaro.org>
5468
5469 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
5470 type's length.
5471 Use %s and pulongest to print the length.
5472
7cf663a9
PA
54732020-08-12 Pedro Alves <palves@redhat.com>
5474
5475 * NEWS: Move "Multi-target debugging support" item to the
5476 "Changes since GDB 9" section.
5477
27c7b875
PA
54782020-08-12 Pedro Alves <palves@redhat.com>
5479
5480 PR gdb/26336
5481 * progspace.c (program_space::remove_objfile): Invalidate the
5482 frame cache.
5483
1796a2a1
TV
54842020-08-11 Tom de Vries <tdevries@suse.de>
5485
5486 * MAINTAINERS: Mark ms1 as deleted.
5487
f8e3fe0d
LM
54882020-08-10 Luis Machado <luis.machado@linaro.org>
5489
5490 PR gdb/26310
5491
5492 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
5493 act accordingly.
5494 (aarch64_analyze_prologue_test): Add more unit tests to exercise
5495 movz/str/stur/stp skipping behavior.
5496
cc308722
LM
54972020-08-10 Luis Machado <luis.machado@linaro.org>
5498
5499 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
5500 struct user_sve_header instead of struct sve_context.
5501
041d9819
SM
55022020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
5503
5504 * read.h (dwarf2_fetch_die_loc_sect_off,
5505 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
5506 `void *` parameter with function_view.
5507 * read.c (dwarf2_fetch_die_loc_sect_off,
5508 dwarf2_fetch_die_loc_cu_off): Likewise.
5509 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
5510 (per_cu_dwarf_call): Adjust.
5511 (get_frame_address_in_block_wrapper): Remove.
5512 (indirect_synthetic_pointer): Adjust.
5513 (get_ax_pc): Remove.
5514 (dwarf2_compile_expr_to_ax): Adjust.
5515
38f8aa06
TV
55162020-08-08 Tom de Vries <tdevries@suse.de>
5517
5518 PR build/26344
5519 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
5520 constructor.
5521 * regcache.c (get_thread_arch_aspace_regcache): Same.
5522
a52b3ae2
TT
55232020-08-07 Tom Tromey <tromey@adacore.com>
5524
5525 * ravenscar-thread.c
5526 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
5527 New method.
5528 (ravenscar_thread_target::wait): Check
5529 runtime_initialized.
5530 (ravenscar_thread_target::prepare_to_store)
5531 (ravenscar_thread_target::stopped_by_sw_breakpoint)
5532 (ravenscar_thread_target::stopped_by_hw_breakpoint)
5533 (ravenscar_thread_target::stopped_by_watchpoint)
5534 (ravenscar_thread_target::stopped_data_address)
5535 (ravenscar_thread_target::core_of_thread): Use
5536 scoped_restore_current_thread and
5537 set_base_thread_from_ravenscar_task.
5538
0e29517d
TT
55392020-08-07 Tom Tromey <tromey@adacore.com>
5540
5541 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
5542
592f9bd7
TT
55432020-08-07 Tom Tromey <tromey@adacore.com>
5544
5545 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
5546 update_inferior_ptid before update_thread_list.
5547 (temporarily_change_regcache_ptid): New class.
5548 (ravenscar_thread_target::fetch_registers)
5549 (ravenscar_thread_target::store_registers)
5550 (ravenscar_thread_target::prepare_to_store): Use base thread when
5551 forwarding operation.
5552
39e2018a
TT
55532020-08-07 Tom Tromey <tromey@adacore.com>
5554
5555 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
5556 "is_pid" case.
5557
2080266b
TT
55582020-08-07 Tom Tromey <tromey@adacore.com>
5559
5560 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
5561 New methods.
5562 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
5563 first.
5564 (ravenscar_thread_target::add_thread): Rename from
5565 ravenscar_add_thread.
5566 (ravenscar_thread_target::update_thread_list): Use a lambda.
5567 (ravenscar_thread_target::xfer_partial): New method.
5568
78c02f21
TT
55692020-08-07 Tom Tromey <tromey@adacore.com>
5570
5571 * ada-lang.h (ada_task_list_iterator_ftype): Now a
5572 gdb::function_view.
5573 (iterate_over_live_ada_tasks): Change type of argument.
5574 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
5575 of argument.
5576
d5d833af
TT
55772020-08-07 Tom Tromey <tromey@adacore.com>
5578
5579 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
5580 Remove.
5581 (ravenscar_thread_target::extra_thread_info): Remove.
5582 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
5583 defer to target beneath for non-Ravenscar threads.
5584
a8ac85bb
TT
55852020-08-07 Tom Tromey <tromey@adacore.com>
5586
5587 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
5588 get_base_thread_from_ravenscar_task>: Now methods.
5589 <m_cpu_map>: New member.
5590 (ravenscar_thread_target::get_thread_base_cpu): Rename from
5591 ravenscar_get_thread_base_cpu. Check m_cpu_map.
5592 (ravenscar_thread_target::task_is_currently_active): Update.
5593 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
5594 Now a method.
5595 (ravenscar_thread_target::add_active_thread): Put initial thread
5596 into the m_cpu_map.
5597
550ab58d
TT
55982020-08-07 Tom Tromey <tromey@adacore.com>
5599
5600 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
5601 event_ptid.
5602
e9546579
TT
56032020-08-07 Tom Tromey <tromey@adacore.com>
5604
5605 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
5606 runtime_initialized.
5607
3d4470e5
TT
56082020-08-07 Tom Tromey <tromey@adacore.com>
5609
5610 * ravenscar-thread.c (ravenscar_thread_target): Don't call
5611 add_active_thread.
5612 (ravenscar_thread_target::add_active_thread): Now public.
5613 (ravenscar_inferior_created): Call add_active_thread after pushing
5614 the target.
5615
888bdb2b
SM
56162020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
5617
5618 * regcache.c (ptid_regcache_map): New type.
5619 (target_ptid_regcache_map): New type.
5620 (regcaches): Change type to target_ptid_regcache_map.
5621 (get_thread_arch_aspace_regcache): Update to regcaches' new
5622 type.
5623 (regcache_thread_ptid_changed): Likewise.
5624 (registers_changed_ptid): Likewise.
5625 (regcaches_size): Likewise.
5626 (regcaches_test): Update.
5627 (regcache_thread_ptid_changed): Update.
5628 * regcache.h (regcache_up): New type.
5629 * gdbsupport/ptid.h (hash_ptid): New struct.
5630
b161a60d
SM
56312020-08-07 Simon Marchi <simon.marchi@efficios.com>
5632
5633 * observable.h (thread_ptid_changed): Add parameter
5634 `process_stratum_target *`.
5635 * infrun.c (infrun_thread_ptid_changed): Add parameter
5636 `process_stratum_target *` and use it.
5637 (selftests): New namespace.
5638 (infrun_thread_ptid_changed): New function.
5639 (_initialize_infrun): Register selftest.
5640 * regcache.c (regcache_thread_ptid_changed): Add parameter
5641 `process_stratum_target *` and use it.
5642 (regcache_thread_ptid_changed): New function.
5643 (_initialize_regcache): Register selftest.
5644 * thread.c (thread_change_ptid): Pass target to
5645 thread_ptid_changed observable.
5646
d2854d8d
CT
56472020-08-06 Caroline Tice <cmtice@google.com>
5648
fe4c3d43
SM
5649 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
5650 (struct dwp_sections): Update field comments. Add loclists and
5651 rnglists fields.
5652 (struct virtual_v2_dwo_sections): Rename struct to
5653 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
5654 size & offset fields for loclists and rnglists.
5655 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
5656 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
5657 skipping dummy type units.
5658 (create_dwp_hash_table): Update the large comment above the function to
5659 discuss Version 5 DWP files as well, with references. Update all the
5660 version checks in the function to check for version 5 as well. Add new
5661 section at the end to create dwp hash table for version 5.
5662 (create_dwp_v2_section): Rename function to
5663 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
5664 Add V5 to error message text.
5665 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
5666 into calls to create_dwp_v2_or_v5_section.
5667 (create_dwo_unit_in_dwp_v5): New function.
5668 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
5669 check for version2; add else clause to handle version 5.
5670 (open_and_init_dwo_file): Add code to check dwarf version & only call
5671 create_debug_types_hash_table (with sections.types) if version is not 5;
5672 else call create_debug_type_hash_table, with sections.info.
5673 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
5674 version 5.
5675 (dwarf2_locate_v5_dwp_sections): New function.
5676 (open_and_init_dwp_file): Add else-if clause for version 5 to call
5677 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 5678
159ed7d9
SM
56792020-08-06 Simon Marchi <simon.marchi@efficios.com>
5680
5681 * regcache.h (class regcache): Remove friend
5682 registers_changed_ptid.
5683 <regcache_thread_ptid_changed>: Remove.
5684 <regcaches>: Remove.
5685 * regcache.c (regcache::regcaches): Rename to...
5686 (regcaches): ... this. Make static.
5687 (get_thread_arch_aspace_regcache): Update.
5688 (regcache::regcache_thread_ptid_changed): Rename to...
5689 (regcache_thread_ptid_changed): ... this. Update.
5690 (class regcache_access): Remove.
5691 (regcaches_test): Update.
5692 (_initialize_regcache): Update.
5693 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
5694 <forward_list>.
5695
174981ae
SM
56962020-08-06 Simon Marchi <simon.marchi@efficios.com>
5697
5698 * regcache.h (class regcache) <current_regcache>: Rename to...
5699 <regcaches>: ... this. Move doc here.
5700 * regcache.c (regcache::current_regcache) Rename to...
5701 (regcache::regcaches): ... this. Move doc to header.
5702 (get_thread_arch_aspace_regcache): Update.
5703 (regcache::regcache_thread_ptid_changed): Update.
5704 (registers_changed_ptid): Update.
5705 (class regcache_access) <current_regcache_size>: Rename to...
5706 <regcaches_size>: ... this.
5707 (current_regcache_test): Rename to...
5708 (regcaches_test): ... this.
5709 (_initialize_regcache): Update.
5710
ed908db6
VC
57112020-08-06 Victor Collod <vcollod@nvidia.com>
5712
5713 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
5714
b5582ab7
KB
57152020-08-05 Kevin Buettner <kevinb@redhat.com>
5716
5717 * corelow.c (core_target::build_file_mappings): Don't output
5718 null pathname in warning.
5719
ea946b86
SM
57202020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
5721
5722 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
5723 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
5724 gdb.dwarf2/dw2-single-line-discriminators.exp,
5725 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
5726
57d02173
TT
57272020-08-05 Tom Tromey <tromey@adacore.com>
5728
5729 PR rust/26197:
5730 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
5731 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
5732 Fix off-by-one and type size errors in ordinary case.
5733
5555c86d
TV
57342020-08-05 Tom de Vries <tdevries@suse.de>
5735
5736 * gdbtypes.c (type_not_allocated, type_not_associated): Use
5737 "prop->const_val () == 0" instead of "prop->const_val () != 0".
5738
97916bfe
SM
57392020-08-04 Simon Marchi <simon.marchi@efficios.com>
5740
5741 * frame.h (frame_id_p): Return bool.
5742 (frame_id_artificial_p): Return bool.
5743 (frame_id_eq): Return bool.
5744 (has_stack_frames): Return bool.
5745 (get_selected_frame): Fix typo in comment.
5746 (get_frame_pc_if_available): Return bool.
5747 (get_frame_address_in_block_if_available): Return bool.
5748 (get_frame_func_if_available): Return bool.
5749 (read_frame_register_unsigned): Return bool.
5750 (get_frame_register_bytes): Return bool.
5751 (safe_frame_unwind_memory): Return bool.
5752 (deprecated_frame_register_read): Return bool.
5753 (frame_unwinder_is): Return bool.
5754 * frame.c (struct frame_info) <prev_arch::p>: Change type to
5755 bool.
5756 <this_id::p>: Likewise.
5757 <prev_p>: Likewise.
5758 (frame_stash_add): Return bool.
5759 (get_frame_id): Use bool.
5760 (frame_id_build_special) Use bool.
5761 (frame_id_build_unavailable_stack): Use bool.
5762 (frame_id_build): Use bool.
5763 (frame_id_p): Return bool, use true/false instead of 1/0.
5764 (frame_id_artificial_p): Likewise.
5765 (frame_id_eq): Likewise.
5766 (frame_id_inner): Likewise.
5767 (get_frame_func_if_available): Likewise.
5768 (read_frame_register_unsigned): Likewise.
5769 (deprecated_frame_register_read): Likewise.
5770 (get_frame_register_bytes): Likewise.
5771 (has_stack_frames): Likewise.
5772 (inside_main_func): Likewise.
5773 (inside_entry_func): Likewise.
5774 (get_frame_pc_if_available): Likewise.
5775 (get_frame_address_in_block_if_available): Likewise.
5776 (frame_unwinder_is): Likewise.
5777 (safe_frame_unwind_memory): Likewise.
5778 (frame_unwind_arch): Likewise.
5779
fedfee88
SM
57802020-08-04 Simon Marchi <simon.marchi@efficios.com>
5781
5782 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
5783 type to cached_copy_status.
5784 (fprintf_frame): Adjust.
5785 (get_frame_func_if_available): Adjust.
5786 (frame_cleanup_after_sniffer): Adjust.
5787
6cfa9b59
MW
57882020-08-04 Mark Wielaard <mark@klomp.org>
5789
5790 * MAINTAINERS (Write After Approval): Update email address.
5791
66d6346b
SM
57922020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5793
5794 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
5795 dynamic_prop::const_val.
5796
8a6d5e35
SM
57972020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5798
5799 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
5800 dynamic_prop::kind.
5801
51d6067d
SM
58022020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5803
5804 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
5805
b26e2ae7
JM
58062020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
5807
5808 * configure.tgt: Set gdb_sim for bpf-*-* targets.
5809
39791af2
JM
58102020-08-04 Weimin Pan <weimin.pan@oracle.com>
5811 Jose E. Marchesi <jose.marchesi@oracle.com>
5812
5813 * configure.tgt: Add entry for bpf-*-*.
5814 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
5815 (ALLDEPFILES): Add bpf-tdep.c.
5816 * bpf-tdep.c: New file.
5817 * MAINTAINERS: Add bpf target and maintainer.
5818 * NEWS: Mention the support for the new target.
5819
521894aa
TV
58202020-08-04 Tom de Vries <tdevries@suse.de>
5821
5822 PR symtab/23270
5823 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
5824 Error.
5825
5d6356e9
JB
58262020-08-03 John Baldwin <jhb@FreeBSD.org>
5827
5828 * syscalls/freebsd.xml: Regenerate.
5829
0cf82b81
JB
58302020-08-03 John Baldwin <jhb@FreeBSD.org>
5831
5832 * syscalls/update-freebsd.sh: Fix usage and year range.
5833
8f34b746
TV
58342020-08-03 Tom de Vries <tdevries@suse.de>
5835
5836 PR symtab/26333
5837 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
5838 DW_LNE_lo_user/DW_LNE_hi_user range.
5839
5e500d33
SM
58402020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
5841
5842 PR ada/26318
5843 * ada-lang.c (ada_modulus): Return 0 if property is not of const
5844 kind.
5845
78319c15
TBA
58462020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5847
5848 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
5849
4c55e970
TBA
58502020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5851
5852 * breakpoint.c (set_breakpoint_condition): Update the condition
5853 expressions after checking that the input condition string parses
5854 successfully and does not contain junk at the end.
5855
1e620590
TBA
58562020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5857
5858 * breakpoint.c (set_breakpoint_condition): Update the
5859 condition string after parsing the new condition successfully.
5860
c8693053
RO
58612020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5862
5863 * proc-api.c (_STRUCTURED_PROC): Don't define.
5864 * proc-events.c: Likewise.
5865 * proc-flags.c: Likewise.
5866 * proc-why.c: Likewise.
5867 * procfs.c: Likewise.
5868
5869 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
5870 * configure, config.in: Regenerate.
5871
5a99adb8
TV
58722020-07-30 Tom de Vries <tdevries@suse.de>
5873
5874 PR build/26320
5875 * ui-style.h (struct ui_file_style::color): Wrap m_value and
5876 m_red/m_green/m_blue in a union.
5877
8ba83e91
TV
58782020-07-29 Tom de Vries <tdevries@suse.de>
5879
5880 PR tdep/26280
5881 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
5882
f75a0693
AB
58832020-07-28 Tom Tromey <tromey@adacore.com>
5884
5885 PR symtab/26270:
5886 * symtab.h (find_pc_partial_function_sym): Declare.
5887 * cli/cli-cmds.c (disassemble_command): Use
5888 find_pc_partial_function_sym. Check asm_demangle.
5889 * blockframe.c (cache_pc_function_sym): New global.
5890 (cache_pc_function_name): Remove.
5891 (clear_pc_function_cache): Update.
5892 (find_pc_partial_function_sym): New function, from
5893 find_pc_partial_function.
5894 (find_pc_partial_function): Rewrite using
5895 find_pc_partial_function_sym.
5896
16f3242c
TT
58972020-07-28 Tom Tromey <tromey@adacore.com>
5898
5899 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
5900 help. Add usage.
5901
4888741a
TT
59022020-07-28 Tom Tromey <tromey@adacore.com>
5903
5904 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
5905 <DW_OP_GNU_variable_value>: Cast to address type.
5906
4d46f402
KR
59072020-07-28 Kamil Rytarowski <n54@gmx.com>
5908
5909 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
5910 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
5911 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
5912 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
5913 (nbsd_get_siginfo_type): New.
5914 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
5915 (_initialize_nbsd_tdep): New.
5916
d70f978b
L
59172020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5918
5919 PR binutils/26301
5920 * configure: Regenerated.
5921
377170fa
L
59222020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5923
5924 PR binutils/26301
5925 * configure: Regenerated.
5926
43d5901d
AB
59272020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5928
5929 * python/py-frame.c: Remove 'user-regs.h' include.
5930 (frapy_read_register): Rewrite to make use of
5931 gdbpy_parse_register_id.
5932 * python/py-registers.c (gdbpy_parse_register_id): New function,
5933 moved here from python/py-unwind.c. Updated the return type, and
5934 also accepts register descriptor objects.
5935 * python/py-unwind.c: Remove 'user-regs.h' include.
5936 (pyuw_parse_register_id): Moved to python/py-registers.c.
5937 (unwind_infopy_add_saved_register): Update to use
5938 gdbpy_parse_register_id.
5939 (pending_framepy_read_register): Likewise.
5940 * python/python-internal.h (gdbpy_parse_register_id): Declare.
5941
14fa8fb3
AB
59422020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5943
5944 * python/py-registers.c: Add 'user-regs.h' include.
5945 (register_descriptor_iter_find): New function.
5946 (register_descriptor_iterator_object_methods): New static global
5947 methods array.
5948 (register_descriptor_iterator_object_type): Add pointer to methods
5949 array.
5950
ddce1758
JB
59512020-07-27 John Baldwin <jhb@FreeBSD.org>
5952
5953 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
5954 for all architectures on FreeBSD 11.3 and later.
5955
a4089f52
TT
59562020-07-27 Tom Tromey <tromey@adacore.com>
5957
5958 * gcore.h (load_corefile): Don't declare.
5959
95420d30
TV
59602020-07-27 Tom de Vries <tdevries@suse.de>
5961
5962 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
5963 * config.in: Regenerate.
5964 * configure: Regenerate.
5965
05a6b8c2
EZ
59662020-07-26 Eli Zaretskii <eliz@gnu.org>
5967
5968 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
5969 ws2tcpip.h. When checking whether socklen_t type is defined, use
5970 ws2tcpip.h if it is available and sys/socket.h isn't.
5971 * configure: Regenerate.
5972 * config.in: Regenerate.
5973
e79eb02f
AB
59742020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
5975
5976 PR fortran/23051
5977 PR fortran/26139
5978 * valops.c (value_ind): Pass address to
5979 readjust_indirect_value_type.
5980 * value.c (readjust_indirect_value_type): Make parameter
5981 non-const, and add extra address parameter. Resolve original type
5982 before using it.
5983 * value.h (readjust_indirect_value_type): Update function
5984 signature and comment.
5985
876518dd
TV
59862020-07-25 Tom de Vries <tdevries@suse.de>
5987
5988 PR symtab/26243
5989 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
5990 entries.
5991
f6720b1c
AM
59922020-07-24 Aaron Merey <amerey@redhat.com>
5993
5994 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
5995 * configure: Rebuild.
5996
513487e1
KB
59972020-07-23 Kevin Buettner <kevinb@redhat.com>
5998
5999 PR corefiles/26294
6000 * corelow.c (_initialize_corelow): Add period to help text
6001 for "maintenance print core-file-backed-mappings".
6002
e7bc9db8
PA
60032020-07-23 Pedro Alves <pedro@palves.net>
6004
6005 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
6006 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
6007 meanwhile.
6008 * frame.c (frame_cache_generation, get_frame_cache_generation):
6009 New.
6010 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
6011 (get_prev_frame_if_no_cycle): On exception, don't touch
6012 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
6013 * frame.h (get_frame_cache_generation): Declare.
6014
90fcc466
TV
60152020-07-23 Tom de Vries <tdevries@suse.de>
6016
6017 PR tui/26282
6018 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
6019 New default constructor.
6020
78344df7
AB
60212020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
6022
6023 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
6024 exclude non-statement entries.
6025
b089853a
KB
60262020-07-22 Kevin Buettner <kevinb@redhat.com>
6027
6028 * NEWS (New commands): Mention new command
6029 "maintenance print core-file-backed-mappings".
6030
09c2f5d4
KB
60312020-07-22 Kevin Buettner <kevinb@redhat.com>
6032
6033 * corelow.c (gdbcmd.h): Include.
6034 (core_target::info_proc_mappings): New method.
6035 (get_current_core_target): New function.
6036 (maintenance_print_core_file_backed_mappings): New function.
6037 (_initialize_corelow): Add core-file-backed-mappings to
6038 "maint print" commands.
6039
9c5ec5c2 60402020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 6041
9c5ec5c2
KB
6042 * linux-tdep.c (dump_note_entry_p): New function.
6043 (linux_dump_mapping_p_ftype): New typedef.
6044 (linux_find_memory_regions_full): Add new parameter,
6045 should_dump_mapping_p.
6046 (linux_find_memory_regions): Adjust call to
6047 linux_find_memory_regions_full.
6048 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
6049 call to linux_find_memory_regions_full.
6050
db082f59
KB
60512020-07-22 Kevin Buettner <kevinb@redhat.com>
6052
6053 * corelow.c (solist.h, unordered_map): Include.
6054 (class core_target): Add field m_core_file_mappings and
6055 method build_file_mappings.
6056 (core_target::core_target): Call build_file_mappings.
6057 (core_target::~core_target): Free memory associated with
6058 m_core_file_mappings.
6059 (core_target::build_file_mappings): New method.
6060 (core_target::xfer_partial): Use m_core_file_mappings
6061 for memory transfers.
6062 * linux-tdep.c (linux_read_core_file_mappings): New
6063 function.
6064 (linux_core_info_proc_mappings): Rewrite to use
6065 linux_read_core_file_mappings.
6066 (linux_init_abi): Register linux_read_core_file_mappings.
6067
7e183d27
KB
60682020-07-22 Kevin Buettner <kevinb@redhat.com>
6069
6070 * arch-utils.c (default_read_core_file_mappings): New function.
6071 * arch-utils.c (default_read_core_file_mappings): Declare.
6072 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
6073 * gdbarch.h, gdbarch.c: Regenerate.
6074
2735d421
KB
60752020-07-22 Kevin Buettner <kevinb@redhat.com>
6076
6077 PR corefiles/25631
6078 * corelow.c (core_target:xfer_partial): Revise
6079 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
6080 case after first checking the stratum beneath the core
6081 target.
6082 (has_all_memory): Return true.
6083 * target.c (raw_memory_xfer_partial): Revise comment
6084 regarding use of has_all_memory.
6085
e56cb451
KB
60862020-07-22 Kevin Buettner <kevinb@redhat.com>
6087
6088 * exec.h (section_table_xfer_memory): Revise declaration,
6089 replacing section name parameter with an optional callback
6090 predicate.
6091 * exec.c (section_table_xfer_memory): Likewise.
6092 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
6093 of section_table_xfer_memory.
6094
32fa152e
TT
60952020-07-22 Tom Tromey <tromey@adacore.com>
6096
6097 * mi/mi-cmd-stack.c (list_args_or_locals): Use
6098 lookup_symbol_search_name.
6099
a67a1c41
AB
61002020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6101
6102 * python/py-registers.c (gdbpy_register_object_data_init): Remove
6103 redundant local variable.
6104 (gdbpy_get_register_descriptor): Extract descriptor vector as a
6105 reference, not pointer, update code accordingly.
6106
a7b4ff4f
SM
61072020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6108 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6109
6110 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
6111 * jit.c (jit_breakpoint_re_set_internal): Use the
6112 `skip_jit_symbol_lookup` field.
6113
2340e834
SM
61142020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6115 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6116
6117 * jit.c (jit_read_descriptor): Define the descriptor address once,
6118 use twice.
6119 (jit_breakpoint_deleted): Move the declaration of the loop variable
6120 `iter` into the loop header.
6121 (jit_breakpoint_re_set_internal): Move the declaration of the local
6122 variable `objf_data` to the first point of definition.
6123 (jit_event_handler): Move the declaration of local variables
6124 `code_entry`, `entry_addr`, and `objf` to their first point of use.
6125 Rename `objf` to `jited`.
6126
c1072906
SM
61272020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6128
6129 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
6130 Remove.
6131 * jit.c (get_jiter_objfile_data): Update.
6132
c8474dc3
TBA
61332020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6134 Simon Marchi <simon.marchi@polymtl.ca>
6135
6136 * jit.c (struct jit_program_space_data): Remove.
6137 (jit_program_space_key): Remove.
6138 (jiter_objfile_data::~jiter_objfile_data): Remove program space
6139 stuff.
6140 (get_jit_program_space_data): Remove.
6141 (jit_breakpoint_deleted): Iterate on all of the program space's
6142 objfiles.
6143 (jit_inferior_init): Likewise.
6144 (jit_breakpoint_re_set_internal): Likewise. Also change return
6145 type to void.
6146 (jit_breakpoint_re_set): Pass current_program_space to
6147 jit_breakpoint_re_set_internal.
6148
77208eb7
SM
61492020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6150
6151 * jit.h (struct jiter_objfile_data) <cached_code_address,
6152 jit_breakpoint>: Move to here from ...
6153 * jit.c (jit_program_space_data): ... here.
6154 (jiter_objfile_data::~jiter_objfile_data): Update.
6155 (jit_breakpoint_deleted): Update.
6156 (jit_breakpoint_re_set_internal): Update.
6157
8c1c720f
SM
61582020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6159
6160 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
6161 checks.
6162 (jit_read_descriptor): Remove NULL check.
6163 (jit_event_handler): Add an assertion.
6164
0e74a041
SM
61652020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6166
6167 * jit.h (struct jit_objfile_data): Split into...
6168 (struct jiter_objfile_data): ... this ...
6169 (struct jited_objfile_data): ... and this.
6170 * objfiles.h (struct objfile) <jit_data>: Remove.
6171 <jiter_data, jited_data>: New fields.
6172 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
6173 (jiter_objfile_data::~jiter_objfile_data): ... this.
6174 (get_jit_objfile_data): Rename to ...
6175 (get_jiter_objfile_data): ... this.
6176 (add_objfile_entry): Update.
6177 (jit_read_descriptor): Use get_jiter_objfile_data.
6178 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
6179 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
6180 (jit_inferior_exit_hook): Use objfile's jited_data field.
6181
238b5c9f
SM
61822020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6183
6184 * jit.h: Forward-declare `struct minimal_symbol`.
6185 (struct jit_objfile_data): Migrate to here from jit.c; also add a
6186 constructor, destructor, and an objfile* field.
6187 * jit.c (jit_objfile_data): Remove.
6188 (struct jit_objfile_data): Migrate from here to jit.h.
6189 (jit_objfile_data::~jit_objfile_data): New destructor
6190 implementation with code moved from free_objfile_data.
6191 (free_objfile_data): Delete.
6192 (get_jit_objfile_data): Update to use the jit_data field of objfile.
6193 (jit_find_objf_with_entry_addr): Ditto.
6194 (jit_inferior_exit_hook): Ditto.
6195 (_initialize_jit): Remove the call to
6196 register_objfile_data_with_cleanup.
6197 * objfiles.h (struct objfile) <jit_data>: New field.
6198
fe053b9e
TBA
61992020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6200
6201 * jit.h: Forward-declare `struct objfile`.
6202 (jit_event_handler): Add a second parameter, the JITer objfile.
6203 * jit.c (jit_read_descriptor): Change the signature to take the
6204 JITer objfile as an argument instead of the jit_program_space_data.
6205 (jit_inferior_init): Update the call to jit_read_descriptor.
6206 (jit_event_handler): Use the new JITer objfile argument when calling
6207 jit_read_descriptor.
6208 * breakpoint.c (handle_jit_event): Update the call to
6209 jit_event_handler to pass the JITer objfile.
6210
4cec0c66
JB
62112020-07-21 John Baldwin <jhb@FreeBSD.org>
6212
6213 * gdbarch.c: Regenerate.
6214 * gdbarch.h: Regenerate.
6215 * gdbarch.sh (handle_segmentation_fault): Remove method.
6216 * infrun.c (handle_segmentation_fault): Remove.
6217 (print_signal_received_reason): Remove call to
6218 handle_segmentation_fault.
6219
0e42f66a
JB
62202020-07-21 John Baldwin <jhb@FreeBSD.org>
6221
6222 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6223 Rename to sparc64_linux_report_signal_info and add siggnal
6224 argument.
6225 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
6226 instead of sparc64_linux_handle_segmentation_fault.
6227
77bdfeb2
JB
62282020-07-21 John Baldwin <jhb@FreeBSD.org>
6229
6230 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
6231 i386_linux_report_signal_info instead of
6232 i386_linux_handle_segmentation_fault.
6233 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
6234 to i386_linux_report_signal_info and add siggnal argument.
6235 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
6236 of i386_linux_handle_segmentation_fault.
6237 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
6238 to i386_linux_report_signal_info and add siggnal argument.
6239
ad97bfc5
JB
62402020-07-21 John Baldwin <jhb@FreeBSD.org>
6241
6242 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
6243 hook if present.
6244
272bb05c
JB
62452020-07-21 John Baldwin <jhb@FreeBSD.org>
6246
6247 * gdbarch.c: Regenerate.
6248 * gdbarch.h: Regenerate.
6249 * gdbarch.sh (report_signal_info): New method.
6250 * infrun.c (print_signal_received_reason): Invoke gdbarch
6251 report_signal_info hook if present.
6252
baf8791e
AB
62532020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6254
6255 * python/py-registers.c : Add 'unordered_map' include.
6256 (gdbpy_new_reggroup): Renamed to...
6257 (gdbpy_get_reggroup): ...this. Update to only create register
6258 group descriptors when needed.
6259 (gdbpy_reggroup_iter_next): Update.
6260
f7306dac
AB
62612020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6262
6263 * python/py-registers.c (gdbpy_register_object_data): New static
6264 global.
6265 (gdbpy_register_object_data_init): New function.
6266 (gdbpy_new_register_descriptor): Renamed to...
6267 (gdbpy_get_register_descriptor): ...this, and update to reuse
6268 existing register descriptors where possible.
6269 (gdbpy_register_descriptor_iter_next): Update.
6270 (gdbpy_initialize_registers): Register new gdbarch data.
6271
05c309a8
SM
62722020-07-21 Simon Marchi <simon.marchi@efficios.com>
6273
6274 * linux-nat.c (stopped_pids): Make static.
6275
d1fd641e
SM
62762020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
6277
6278 PR ada/26235
6279 * gdbtypes.c (ada_discrete_type_low_bound,
6280 ada_discrete_type_high_bound): Handle undefined bounds.
6281
1de14d77
KR
62822020-07-21 Kamil Rytarowski <n54@gmx.com>
6283
6284 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
6285 declaration.
6286 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
6287 function.
6288
ed810cc7
JB
62892020-07-20 John Baldwin <jhb@FreeBSD.org>
6290
6291 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
6292 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
6293 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
6294 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
6295 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
6296 method.
6297
ae5369e7
LC
62982020-07-20 Ludovic Courtès <ludo@gnu.org>
6299
6300 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
6301 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
6302 which are deprecated in Guile 3.0.
6303 * configure.ac (try_guile_versions): Add "guile-3.0".
6304 * configure (try_guile_versions): Regenerate.
6305 * NEWS: Update entry.
6306
68cf161c
LC
63072020-07-20 Ludovic Courtès <ludo@gnu.org>
6308 Doug Evans <dje@google.com>
6309
6310 PR gdb/21104
6311 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
6312 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
6313 USING_GUILE_BEFORE_2_2.
6314 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
6315 Change type to 'scm_t_port_type *'.
6316 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
6317 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
6318 parameter and honor it. Update callers.
6319 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
6320 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
6321 functions.
6322 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
6323 USING_GUILE_BEFORE_2_2.
6324 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
6325 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
6326 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
6327 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
6328 and 'SCM_PORT_TYPE'.
6329 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
6330 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
6331 (gdbscm_memory_port_read, gdbscm_memory_port_write)
6332 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
6333 [!USING_GUILE_BEFORE_2_2]: New functions.
6334 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
6335 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
6336 'gdbscm_memory_port_read'.
6337 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
6338 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
6339 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
6340 function.
6341 (ioscm_init_memory_port): Remove.
6342 (ioscm_init_memory_port_stream): New function
6343 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
6344 function.
6345 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6346 Return scm_from_uint (0).
6347 (gdbscm_set_memory_port_read_buffer_size_x)
6348 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6349 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6350 Return scm_from_uint (0).
6351 (gdbscm_set_memory_port_write_buffer_size_x)
6352 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6353 * configure.ac (try_guile_versions): Add "guile-2.2".
6354 * configure: Regenerate.
6355 * NEWS: Add entry.
6356
aee91db3
TT
63572020-07-18 Tom Tromey <tom@tromey.com>
6358
6359 * linux-nat.c (linux_multi_process): Remove.
6360 (linux_nat_target::supports_multi_process): Return true.
6361
0e267416
AB
63622020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6363
6364 * arch/riscv.c (riscv_tdesc_cache): Change map type.
6365 (riscv_lookup_target_description): Return pointer out of
6366 unique_ptr.
6367 * target-descriptions.c (allocate_target_description): Add
6368 comment.
6369 (target_desc_deleter::operator()): Likewise.
6370 * target-descriptions.h (struct target_desc_deleter): Moved to
6371 gdbsupport/tdesc.h.
6372 (target_desc_up): Likewise.
6373
f80c8ec4
TT
63742020-07-17 Tom Tromey <tromey@adacore.com>
6375
6376 * linux-nat.c (linux_nat_target::supports_non_stop)
6377 (linux_nat_target::always_non_stop_p): Use "true".
6378 (linux_nat_target::supports_disable_randomization): Use "true" and
6379 "false".
6380
d0ce17d8
CT
63812020-07-16 Caroline Tice <cmtice@google.com>
6382
6383 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
6384 (RNGLIST_HEADER_SIZE64): New constant definition.
6385 (struct dwop_section_names): Add rnglists_dwo.
6386 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
6387 (struct loclist_header): Rename to 'loclists_rnglists_header'.
6388 (struct dwo_sections): Add rnglists field.
6389 (read_attribut_reprocess): Add tag parameter.
6390 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
6391 (cu_debug_rnglists_section): New function (decl & definition).
6392 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
6393 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
6394 die whose range is being checked; get rnglist section from
6395 cu_debug_rnglists_section, to get from either objfile or dwo file as
6396 appropriate. Add cases for DW_RLE_base_addressx,
6397 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
6398 the base address to DW_RLE_offset_pairs (not to all ranges), moving
6399 test inside if-condition and updating complaint message.
6400 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
6401 dwarf2_rnglists_process.
6402 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
6403 dwarf2_ranges_process.
6404 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
6405 need_ranges_base and update comment appropriately. Also pass die tag
6406 to dwarf2_ranges_read.
6407 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
6408 need_ranges_base and update comment appropriately. Also pass die tag
6409 to dwarf2_ranges_process.
6410 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
6411 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
6412 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
6413 need_ranges_base and update comment appropriately. Also pass die tag
6414 to read_attribute_reprocess and dwarf2_ranges_read.
6415 (read_loclist_header): Rename function to read_loclists_rnglists_header,
6416 and update function comment appropriately.
6417 (read_loclist_index): Call read_loclists_rnglists_header instead of
6418 read_loclist_header.
6419 (read_rnglist_index): New function.
6420 (read_attribute_reprocess): Add tag parameter. Add code for
6421 DW_FORM_rnglistx, passing tag to read_rnglist_index.
6422 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
6423
3dcc261c
AB
64242020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
6425
6426 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
6427 being resolved.
6428
ccb9eba6
AB
64292020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
6430
6431 * arch-utils.c (show_architecture): Update formatting of messages.
6432
cf88be68
SM
64332020-07-12 Simon Marchi <simon.marchi@efficios.com>
6434
6435 * gdbtypes.h (struct type) <bounds>: Handle array and string
6436 types.
6437 * ada-lang.c (assign_aggregate): Use type::bounds on
6438 array/string type.
6439 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
6440 * c-varobj.c (c_number_of_children): Likewise.
6441 (c_describe_child): Likewise.
6442 * eval.c (evaluate_subexp_for_sizeof): Likewise.
6443 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
6444 (f_type_print_base): Likewise.
6445 * f-valprint.c (f77_array_offset_tbl): Likewise.
6446 (f77_get_upperbound): Likewise.
6447 (f77_print_array_1): Likewise.
6448 * guile/scm-type.c (gdbscm_type_range): Likewise.
6449 * m2-typeprint.c (m2_array): Likewise.
6450 (m2_is_long_set_of_type): Likewise.
6451 * m2-valprint.c (get_long_set_bounds): Likewise.
6452 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
6453 * python/py-type.c (typy_range): Likewise.
6454 * rust-lang.c (rust_internal_print_type): Likewise.
6455 * type-stack.c (type_stack::follow_types): Likewise.
6456 * valarith.c (value_subscripted_rvalue): Likewise.
6457 * valops.c (value_cast): Likewise.
6458
509971ae
SM
64592020-07-12 Simon Marchi <simon.marchi@efficios.com>
6460
6461 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
6462 callers to use the equivalent accessor methods.
6463
107406b7
SM
64642020-07-12 Simon Marchi <simon.marchi@efficios.com>
6465
6466 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
6467 (struct type) <bit_stride>: New method.
6468 (TYPE_BIT_STRIDE): Remove.
6469 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
6470
bb789949
SM
64712020-07-12 Simon Marchi <simon.marchi@efficios.com>
6472
6473 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
6474 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
6475 callers to use the equivalent accessor methods instead.
6476
39498edb
SM
64772020-07-12 Simon Marchi <simon.marchi@efficios.com>
6478
6479 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
6480 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
6481 callers to use the equivalent accessor methods instead.
6482
3b606f38
SM
64832020-07-12 Simon Marchi <simon.marchi@efficios.com>
6484
6485 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
6486 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
6487 to use dynamic_prop::kind.
6488
064d9cb9
SM
64892020-07-12 Simon Marchi <simon.marchi@efficios.com>
6490
6491 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
6492 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
6493 to get the bound property's kind and check against
6494 PROP_UNDEFINED.
6495
5537ddd0
SM
64962020-07-12 Simon Marchi <simon.marchi@efficios.com>
6497
6498 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
6499 all callers to use type::range_bounds followed by
6500 dynamic_prop::{low,high}.
6501
8c2e4e06
SM
65022020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6503
6504 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
6505 const_val, set_const_val, baton, set_locexpr, set_loclist,
6506 set_addr_offset, variant_parts, set_variant_parts,
6507 original_type, set_original_type>: New methods.
6508 <kind>: Rename to...
6509 <m_kind>: ... this. Update all users to use the new methods
6510 instead.
6511 <data>: Rename to...
6512 <m_data>: ... this. Update all users to use the new methods
6513 instead.
6514
7c6f2712
SM
65152020-07-12 Simon Marchi <simon.marchi@efficios.com>
6516
6517 * gdbtypes.c (get_discrete_bounds): Return failure if
6518 the range type's bounds are not both defined and constant
6519 values.
6520 (get_array_bounds): Update comment. Remove undefined bound check.
6521
599088e3
SM
65222020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6523
6524 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
6525 the type::bounds method directly.
6526
c4dfcb36
SM
65272020-07-12 Simon Marchi <simon.marchi@efficios.com>
6528
6529 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
6530 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
6531 are used to set the range type's bounds to use set_bounds.
6532
0a278aa7
PW
65332020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6534
6535 * exec.c (_initialize_exec): Update exec-file-mismatch help.
6536
cce20f10
PA
65372020-07-10 Pedro Alves <pedro@palves.net>
6538
6539 * gdbthread.h (inferior_ref): Define.
6540 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
6541 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
6542 * thread.c
6543 (scoped_restore_current_thread::restore):
6544 Adjust to gdb::ref_ptr.
6545 (scoped_restore_current_thread::~scoped_restore_current_thread):
6546 Remove manual decref handling.
6547 (scoped_restore_current_thread::scoped_restore_current_thread):
6548 Adjust to use
6549 inferior_ref::new_reference/thread_info_ref::new_reference.
6550 Incref the thread before calling get_frame_id instead of after.
6551 Let TARGET_CLOSE_ERROR propagate.
6552
6d7aa592
PA
65532020-07-10 Pedro Alves <pedro@palves.net>
6554
6555 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
6556 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
6557 NOT_AVAILABLE_ERROR.
6558 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
6559 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
6560
b3e3a4c1
SM
65612020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6562 Pedro Alves <pedro@palves.net>
6563
6564 PR gdb/26199
6565 * infrun.c (threads_are_resumed_pending_p): Delete.
6566 (do_target_wait): Remove threads_are_executing and
6567 threads_are_resumed_pending_p checks from the inferior_matches
6568 lambda. Update comments.
6569
d6cc5d98
PA
65702020-07-10 Pedro Alves <pedro@palves.net>
6571
6572 PR gdb/26199
6573 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
6574 executing threads.
6575
7d3badc6
PA
65762020-07-10 Pedro Alves <pedro@palves.net>
6577
6578 PR gdb/26199
6579 * infrun.c (handle_no_resumed): Handle multiple targets.
6580
42bd97a6
PA
65812020-07-10 Pedro Alves <pedro@palves.net>
6582
6583 PR gdb/26199
6584 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
6585 target_is_async_p.
6586
43667cc6
PA
65872020-07-10 Pedro Alves <pedro@palves.net>
6588
6589 PR gdb/26199
6590 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
6591 threads, not all threads.
6592
96118d11
PA
65932020-07-10 Pedro Alves <pedro@palves.net>
6594
6595 PR gdb/26199
6596 * remote.c (remote_target::open_1): Pass remote target pointer as
6597 data to create_async_event_handler.
6598 (remote_async_inferior_event_handler): Mark async event handler
6599 before returning if the remote target still has either pending
6600 events or unacknowledged notifications.
6601
54904d81
JB
66022020-07-10 John Baldwin <jhb@FreeBSD.org>
6603
6604 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
6605 declaration.
6606 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
6607 function.
6608
f37e5866
JB
66092020-07-09 John Baldwin <jhb@FreeBSD.org>
6610
6611 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
6612 inferior_ptid.
6613
fc238d4a
JB
66142020-07-09 John Baldwin <jhb@FreeBSD.org>
6615
6616 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
6617 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
6618 AT_FREEBSD_PS_STRINGS.
6619
6e2469ff
HD
66202020-07-08 Hannes Domani <ssbssa@yahoo.de>
6621
6622 * auto-load.c (auto_load_objfile_script_1): Convert drive part
6623 of debugfile path on Windows.
6624
d1076c41
JB
66252020-07-08 John Baldwin <jhb@FreeBSD.org>
6626
6627 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
6628 argument to 'data'.
6629
15f3b077
TT
66302020-07-08 Tom Tromey <tromey@adacore.com>
6631
6632 * ada-lang.c (ada_exception_message_1): Use read_memory.
6633
9fc501fd
AB
66342020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6635
6636 PR python/22748
6637 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
6638 special handling for inline frames.
6639 * findvar.c (value_of_register_lazy): Skip inline frames when
6640 creating lazy register values.
6641 * frame.c (frame_id_computed_p): Delete definition.
6642 * frame.h (frame_id_computed_p): Delete declaration.
6643
64cb3757
AB
66442020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6645
6646 * NEWS: Mention additions to Python API.
6647 * python/py-arch.c (archpy_register_groups): New function.
6648 (arch_object_methods): Add 'register_groups' method.
6649 * python/py-registers.c (reggroup_iterator_object): New struct.
6650 (reggroup_object): New struct.
6651 (gdbpy_new_reggroup): New function.
6652 (gdbpy_reggroup_to_string): New function.
6653 (gdbpy_reggroup_name): New function.
6654 (gdbpy_reggroup_iter): New function.
6655 (gdbpy_reggroup_iter_next): New function.
6656 (gdbpy_new_reggroup_iterator): New function
6657 (gdbpy_initialize_registers): Register new types.
6658 (reggroup_iterator_object_type): Define new Python type.
6659 (gdbpy_reggroup_getset): New static global.
6660 (reggroup_object_type): Define new Python type.
6661 * python/python-internal.h
6662
0f767f94
AB
66632020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6664
6665 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
6666 * python/py-arch.c (archpy_registers): New function.
6667 (arch_object_methods): Add 'registers' method.
6668 * python/py-registers.c: New file.
6669 * python/python-internal.h
6670 (gdbpy_new_register_descriptor_iterator): Declare.
6671 (gdbpy_initialize_registers): Declare.
6672 * python/python.c (do_start_initialization): Call
6673 gdbpy_initialize_registers.
6674 * NEWS: Mention additions to the Python API.
6675
87dbc774
AB
66762020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6677
6678 * NEWS: Mention new Python API method.
6679 * python/py-unwind.c (pending_framepy_architecture): New function.
6680 (pending_frame_object_methods): Add architecture method.
6681
3bc98c0c
AB
66822020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6683
6684 * gdbarch.c: Regenerate.
6685 * gdbarch.h: Regenerate.
6686 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
6687 (gdbarch_data): Use internal_error for the case where
6688 deprecated_set_gdbarch_data was originally needed.
6689 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
6690 and use passed in obstack.
6691 (libunwind_frame_set_descr): Should no longer get back NULL from
6692 gdbarch_data.
6693 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
6694 type.
6695 * user-regs.c (user_regs_init): Update parameters, and use passed
6696 in obstack.
6697 (user_reg_add): Should no longer get back NULL from gdbarch_data.
6698 (_initialize_user_regs): Register as a pre-init gdbarch data type.
6699
d8cc8af6
TV
67002020-07-06 Tom de Vries <tdevries@suse.de>
6701
6702 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
6703 End-Of-Sequence in lte_is_less_than.
6704 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
6705 "gdb: Don't reorder line table entries too much when sorting".
6706
947f7597
TV
67072020-07-06 Tom de Vries <tdevries@suse.de>
6708
6709 PR tui/26205
6710 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
6711
1e7c1b22
TV
67122020-07-05 Tom de Vries <tdevries@suse.de>
6713
6714 PR build/26187
6715 * inferior.h (struct infcall_suspend_state_deleter): If available, use
6716 std::uncaught_exceptions instead of deprecated
6717 std::uncaught_exception.
6718
a36158ec
SM
67192020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6720
6721 * macroexp.h (macro_stringify): Return
6722 gdb::unique_xmalloc_ptr<char>.
6723 * macroexp.c (macro_stringify): Likewise.
6724 * macrotab.c (fixup_definition): Update.
6725
14d960c8
SM
67262020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6727
6728 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
6729 (lex_one_token): Update.
6730 * macroexp.c (struct macro_buffer) <release>: Return
6731 gdb::unique_xmalloc_ptr<char>.
6732 (macro_stringify): Update.
6733 (macro_expand): Update.
6734 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
6735 * macroexp.h (macro_expand_next): Likewise.
6736
211d5b1c
SM
67372020-07-02 Simon Marchi <simon.marchi@efficios.com>
6738
6739 * macroexp.h (macro_lookup_ftype): Remove.
6740 (macro_expand, macro_expand_once, macro_expand_next): Remove
6741 lookup function parameters, add scope parameter.
6742 * macroexp.c (scan, substitute_args, expand, maybe_expand,
6743 macro_expand, macro_expand_once, macro_expand_next): Likewise.
6744 * macroscope.h (standard_macro_lookup): Change parameter type
6745 to macro_scope.
6746 * macroscope.c (standard_macro_lookup): Likewise.
6747 * c-exp.y (lex_one_token): Update.
6748 * macrocmd.c (macro_expand_command): Likewise.
6749 (macro_expand_once_command): Likewise.
6750
b1a35af2
SM
67512020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6752
6753 * inf-loop.c (inferior_event_handler): Remove client_data param.
6754 * inf-loop.h (inferior_event_handler): Likewise.
6755 * infcmd.c (step_1): Adjust.
6756 * infrun.c (proceed): Adjust.
6757 (fetch_inferior_event): Remove client_data param.
6758 (infrun_async_inferior_event_handler): Adjust.
6759 * infrun.h (fetch_inferior_event): Remove `void *` param.
6760 * linux-nat.c (handle_target_event): Adjust.
6761 * record-btrace.c (record_btrace_handle_async_inferior_event):
6762 Adjust.
6763 * record-full.c (record_full_async_inferior_event_handler):
6764 Adjust.
6765 * remote.c (remote_async_inferior_event_handler): Adjust.
6766
1cdf9e33
TT
67672020-07-01 Tom Tromey <tom@tromey.com>
6768
6769 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
6770 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
6771
32c1e210
TT
67722020-07-01 Tom Tromey <tom@tromey.com>
6773
6774 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
6775 tui_gen_win_info.
6776 (tui_win_info::make_window): Merge with
6777 tui_gen_win_info::make_window.
6778 (tui_win_info::make_visible): Move from tui_gen_win_info.
6779 * tui/tui-win.c (tui_win_info::max_width): Move from
6780 tui_gen_win_info.
6781 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
6782 type.
6783 <window_factory>: Likewise.
6784 * tui/tui-layout.c (tui_win_info::resize): Move from
6785 tui_gen_win_info.
6786 (make_standard_window): Change return type.
6787 (get_locator_window, tui_get_window_by_name): Likewise.
6788 (tui_layout_window::apply): Remove a cast.
6789 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
6790 (struct tui_win_info): Merge with tui_gen_win_info.
6791 (struct tui_gen_win_info): Remove.
6792
a30cb6da
TT
67932020-07-01 Tom Tromey <tom@tromey.com>
6794
6795 * tui/tui-stack.h (struct tui_locator_window): Derive from
6796 tui_win_info.
6797 <do_scroll_horizontal, do_scroll_vertical>: New methods.
6798 <can_box>: New method.
6799
1eb2161f
TT
68002020-07-01 Tom Tromey <tom@tromey.com>
6801
6802 * tui/tui-stack.h (struct tui_locator_window): Remove body.
6803
7134f2eb
TT
68042020-07-01 Tom Tromey <tom@tromey.com>
6805
6806 * tui/tui-regs.c (tui_data_window::display_registers_from)
6807 (tui_data_window::display_registers_from)
6808 (tui_data_window::first_data_item_displayed)
6809 (tui_data_window::delete_data_content_windows): Update.
6810 (tui_data_window::refresh_window, tui_data_window::no_refresh):
6811 Remove.
6812 (tui_data_window::check_register_values): Update.
6813 (tui_data_item_window::rerender): Add parameters. Update.
6814 (tui_data_item_window::refresh_window): Remove.
6815 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
6816 virtual.
6817 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
6818 tui_gen_win_info.
6819 <refresh_window, max_height, min_height>: Remove.
6820 <rerender>: Add parameters.
6821 <x, y, visible>: New members.
6822 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
6823 <m_item_width>: New member.
6824
22b7b041
TT
68252020-07-01 Tom Tromey <tom@tromey.com>
6826
6827 * tui/tui-regs.c (tui_data_window::show_register_group)
6828 (tui_data_window::check_register_values): Update.
6829 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
6830 from item_no.
6831
c9753adb
TT
68322020-07-01 Tom Tromey <tom@tromey.com>
6833
6834 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
6835 useless "if".
6836
9ab26b4a
TT
68372020-07-01 Tom Tromey <tom@tromey.com>
6838
6839 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
6840 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
6841
e555083f
TT
68422020-07-01 Tom Tromey <tom@tromey.com>
6843
6844 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
6845 * tui/tui-winsource.h (enum tui_line_or_address_kind)
6846 (struct tui_line_or_address): Move from tui-data.h.
6847 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
6848 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
6849 (tui_cmd_window, tui_source_window_base, tui_source_window)
6850 (tui_disasm_window): Don't declare.
6851 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
6852 to tui-winsource.h.
6853 (SINGLE_KEY): Move to tui-stack.c.
6854
7a02bab7
TT
68552020-07-01 Tom Tromey <tom@tromey.com>
6856
6857 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
6858 std::string.
6859 * tui/tui-regs.c (class tab_expansion_file): New.
6860 (tab_expansion_file::write): New method.
6861 (tui_register_format): Change return type. Use
6862 tab_expansion_file.
6863 (tui_get_register, tui_data_window::display_registers_from)
6864 (tui_data_item_window::rerender): Update.
6865 * tui/tui-io.h (tui_expand_tabs): Don't declare.
6866 * tui/tui-io.c (tui_expand_tabs): Remove.
6867
ea68593b
TT
68682020-07-01 Tom Tromey <tom@tromey.com>
6869
6870 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
6871
a8caed5d
FS
68722020-07-01 Fangrui Song <maskray@google.com>
6873
6874 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
6875
9cdf9820
AKS
68762020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6877
6878 * dwarf2/read.c (set_die_type): Removed conditions to restrict
6879 forms for DW_AT_associated and DW_AT_allocated attributes,
6880 which is already checked in function attr_to_dynamic_prop.
6881
a1520ad8
TT
68822020-06-30 Tom Tromey <tromey@adacore.com>
6883
6884 * dwarf2/read.c (quirk_rust_enum): Correctly call
6885 alloc_rust_variant for default-less enum.
6886
5ac58899
TT
68872020-06-30 Tom Tromey <tromey@adacore.com>
6888
6889 PR build/26183:
6890 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
6891 gdb::to_string.
6892
19b187a9
SM
68932020-06-29 Simon Marchi <simon.marchi@efficios.com>
6894
6895 * gdbarch.sh (displaced_step_copy_insn): Update doc.
6896 * gdbarch.h: Re-generate.
6897
cd4c4c07
TT
68982020-06-28 Tom Tromey <tom@tromey.com>
6899
6900 * command.h (cmd_types): Remove.
6901 (cmd_type): Don't declare.
6902 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
6903 typedef.
6904 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
6905 * cli/cli-decode.c (cmd_type): Remove.
6906
05779d57
PA
69072020-06-27 Pedro Alves <palves@redhat.com>
6908
6909 * fork-child.c (prefork_hook): Adjust.
6910 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
6911 Delete.
6912 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
6913 * inferior.c (inferior::set_tty, inferior::tty): New methods.
6914 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
6915 Remove declarations.
6916 (struct inferior) <set_tty, tty>: New methods.
6917 (struct inferior) <terminal>: Rename to ...
6918 (struct inferior) <m_terminal>: ... this and make private.
6919 * main.c (captured_main_1): Adjust.
6920 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
6921 (mi_cmd_inferior_tty_show): Adjust.
6922 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
6923 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
6924
1776e3e5
NA
69252020-06-26 Nick Alcock <nick.alcock@oracle.com>
6926
6927 * configure.ac: Add --enable-libctf: handle --disable-static
6928 properly.
6929 * acinclude.m4: sinclude ../config/enable.m4.
6930 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
6931 (LIBCTF): Substitute in.
6932 (CTF_DEPS): New, likewise.
6933 (CLIBS): libctf needs symbols from libbfd: move earlier.
6934 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
6935 flags.
6936 * ctfread.c: Surround in ENABLE_LIBCTF.
6937 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
6938 * configure: Regenerate.
6939 * config.in: Likewise.
6940
58373b80
SM
69412020-06-25 Simon Marchi <simon.marchi@efficios.com>
6942
6943 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
6944
277474ee
SM
69452020-06-25 Simon Marchi <simon.marchi@efficios.com>
6946
6947 * inferior.h (struct inferior) <terminal>: Change type to
6948 gdb::unique_xmalloc_ptr<char>.
6949 * inferior.c (inferior::~inferior): Don't free inf->terminal.
6950 * infcmd.c (set_inferior_io_terminal): Don't free terminal
6951 field, adjust to unique pointer.
6952 (get_inferior_io_terminal): Adjust to unique pointer.
6953
6d74da72
AB
69542020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6955
6956 * riscv-tdep.c (riscv_print_registers_info): Loop over all
6957 registers, not just the known core set of registers.
6958
2e52d038
AB
69592020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6960
6961 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
6962 fflags, frm, and fcsr registers.
6963 (riscv_register_reggroup_p): Remove unknown CSRs from save and
6964 restore groups.
6965 (riscv_tdesc_unknown_reg): New function.
6966 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
6967 tdesc_use_registers.
6968 * riscv-tdep.h (struct gdbarch_tdep): Add
6969 unknown_csrs_first_regnum, unknown_csrs_count,
6970 duplicate_fflags_regnum, duplicate_frm_regnum, and
6971 duplicate_fcsr_regnum fields.
6972
be64fd07
AB
69732020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6974
6975 * target-descriptions.c (tdesc_use_registers): Add new parameter a
6976 callback, use the callback (when not null) to help number unknown
6977 registers.
6978 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
6979 (tdesc_use_registers): Add extra parameter to declaration.
6980
3b9fce96
AB
69812020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
6982
6983 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
6984 in the file.
6985 (class riscv_pending_register_alias): Likewise.
6986 (riscv_register_feature::register_info): Change 'required_p' field
6987 to 'required', and change its type. Add 'check' member function.
6988 (riscv_register_feature::register_info::check): Define new member
6989 function.
6990 (riscv_xreg_feature): Change initialisation of 'required' field.
6991 (riscv_freg_feature): Likewise.
6992 (riscv_virtual_feature): Likewise.
6993 (riscv_csr_feature): Likewise.
6994 (riscv_check_tdesc_feature): Take extra parameter, the csr
6995 tdesc_feature, rewrite the function to use the new
6996 riscv_register_feature::register_info::check function.
6997 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
6998
865bad26
AB
69992020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7000
7001 * features/Makefile: Remove all references to the deleted files
7002 below.
7003 * features/riscv/32bit-csr.c: Deleted.
7004 * features/riscv/32bit-csr.xml: Deleted.
7005 * features/riscv/64bit-csr.c: Deleted.
7006 * features/riscv/64bit-csr.xml: Deleted.
7007 * features/riscv/rebuild-csr-xml.sh: Deleted.
7008
ed69cbc8
AB
70092020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7010
7011 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
7012 whitespace error for declaration of names member variable.
7013 (struct riscv_register_feature): Add new prefer_first_name member
7014 variable, and fix whitespace error in declaration of registers.
7015 (riscv_xreg_feature): Initialize prefer_first_name field.
7016 (riscv_freg_feature): Likewise.
7017 (riscv_virtual_feature): Likewise.
7018 (riscv_csr_feature): Likewise.
7019 (riscv_register_name): Expand on comments. Remove register name
7020 modifications for CSR and virtual registers.
7021
4445e8f5
AB
70222020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7023
7024 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
7025 errors.
7026
767a879e
AB
70272020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7028
7029 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
7030 riscv-opc.h.
7031 (class riscv_pending_register_alias): New class.
7032 (riscv_check_tdesc_feature): Take vector of pending aliases and
7033 populate it as appropriate.
7034 (riscv_setup_register_aliases): Delete.
7035 (riscv_gdbarch_init): Create vector of pending aliases and pass it
7036 to riscv_check_tdesc_feature in all cases. Use the vector to
7037 create the register aliases.
7038
bb6e55f3
RO
70392020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7040
7041 * sol2-tdep.c (sol2_static_transform_name): Remove.
7042 (sol2_init_abi): Don't register it.
7043 * gdbarch.sh (static_transform_name): Remove.
7044 * gdbarch.c, gdbarch.h: Regenerate.
7045
7046 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
7047 gdbarch_static_transform_name.
7048 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
7049 * stabsread.c (define_symbol) <'X'>: Remove.
7050 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
7051 handling.
7052 <'V'>: Likewise.
7053 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
7054 <'S'>: Remove call to gdbarch_static_transform_name.
7055
c6d36836
RO
70562020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7057
7058 * procfs.c (procfs_pre_trace): New function.
7059 (procfs_target::create_inferior): Pass it to fork_inferior.
7060
a7e6196b
RO
70612020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7062
7063 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
7064 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
7065 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
7066 sol2-tdep.o, sparc-sol2-tdep.o.
7067 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
7068 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
7069 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
7070 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
7071
d412e696
RO
70722020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7073
7074 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
7075 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
7076 Call sol2_init_abi.
7077 Remove calls to set_gdbarch_skip_solib_resolver,
7078 set_gdbarch_core_pid_to_str.
7079 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
7080 (i386_sol2_static_transform_name): Remove.
7081 (i386_sol2_init_abi): Call sol2_init_abi.
7082 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7083 set_gdbarch_static_transform_name,
7084 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7085 Use sol2_sigtramp_p.
7086 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
7087 (sol2_sigtramp_p): New function.
7088 (sol2_static_transform_name): New function.
7089 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
7090 (sol2_init_abi): New function.
7091 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
7092 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
7093 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
7094 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
7095 (sparc_sol2_static_transform_name): Remove.
7096 (sparc32_sol2_init_abi): Call sol2_init_abi.
7097 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7098 set_gdbarch_static_transform_name,
7099 set_gdbarch_skip_solib_resolver,
7100 set_gdbarch_core_pid_to_str.
7101 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
7102 (sparc_sol2_static_transform_name): Remove
7103 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
7104 call sol2_sigtramp_p.
7105 (sparc64_sol2_init_abi): Call sol2_init_abi.
7106 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7107 set_gdbarch_static_transform_name,
7108 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7109
a8654e7d
PW
71102020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7111
7112 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
7113 * exec.c (validate_exec_file): If from_tty, set both
7114 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
7115 * symfile.c (symbol_file_add_with_addrs): if always_confirm
7116 and from_tty, unconditionally ask a confirmation.
7117
caa7fd04
AB
71182020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7119
7120 * target-descriptions.c (tdesc_architecture_name): Protect against
7121 NULL pointer dereference.
7122 (maint_print_xml_tdesc_cmd): New function.
7123 (_initialize_target_descriptions): Register new 'maint print
7124 xml-tdesc' command and give it the filename completer.
7125 * NEWS: Mention new 'maint print xml-tdesc' command.
7126
fbf42f4e
AB
71272020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7128
7129 * target-descriptions.c (class tdesc_compatible_info): New class.
7130 (struct target_desc): Change type of compatible vector.
7131 (tdesc_compatible_p): Update for change in type of
7132 target_desc::compatible.
7133 (tdesc_compatible_info_list): New function.
7134 (tdesc_compatible_info_arch_name): New function.
7135 (tdesc_add_compatible): Update for change in type of
7136 target_desc::compatible.
7137 (print_c_tdesc::visit_pre): Likewise.
7138
20821f4e
AB
71392020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7140
7141 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
7142 whitespace to underscore.
7143 (maint_print_c_tdesc_cmd): Use fake filename for target
7144 descriptions that came from the target.
7145 (_initialize_target_descriptions): Add filename command completion
7146 for 'maint print c-tdesc'.
7147
1fb5ee62
SM
71482020-06-23 Simon Marchi <simon.marchi@efficios.com>
7149
7150 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
7151 lines.
7152
fc3ecb3e
SM
71532020-06-23 Simon Marchi <simon.marchi@efficios.com>
7154
7155 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
7156 lines.
7157 (dwarf2_find_location_expression): Likewise.
7158 (call_site_parameter_matches): Likewise.
7159 (dwarf2_compile_expr_to_ax): Likewise.
7160 (disassemble_dwarf_expression): Likewise.
7161 (loclist_describe_location): Likewise.
7162
236ef034
PA
71632020-06-23 Pedro Alves <palves@redhat.com>
7164
7165 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
7166 progspace-and-thread.h. Include scoped-mock-context.h instead.
7167 (register_to_value_test): Use scoped_mock_context.
7168 * regcache.c: Include "scoped-mock-context.h".
7169 (cooked_read_test): Don't error out if a target is already pushed.
7170 Use scoped_mock_context. Adjust.
7171 * scoped-mock-context.h: New file.
7172
39e7ecca
AB
71732020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7174
7175 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
7176 initializer.
7177 (ada_language::is_string_type_p): New member function.
7178 * c-lang.c (c_language_data): Delete la_is_string_type_p
7179 initializer.
7180 (cplus_language_data): Likewise.
7181 (asm_language_data): Likewise.
7182 (minimal_language_data): Likewise.
7183 * d-lang.c (d_language_data): Likewise.
7184 * f-lang.c (f_is_string_type_p): Delete function, implementation
7185 moved to f_language::is_string_type_p.
7186 (f_language_data): Delete la_is_string_type_p initializer.
7187 (f_language::is_string_type_p): New member function,
7188 implementation from f_is_string_type_p.
7189 * go-lang.c (go_is_string_type_p): Delete function, implementation
7190 moved to go_language::is_string_type_p.
7191 (go_language_data): Delete la_is_string_type_p initializer.
7192 (go_language::is_string_type_p): New member function,
7193 implementation from go_is_string_type_p.
7194 * language.c (language_defn::is_string_type_p): Define new member
7195 function.
7196 (default_is_string_type_p): Make static, add comment copied from
7197 header file.
7198 (unknown_language_data): Delete la_is_string_type_p initializer.
7199 (unknown_language::is_string_type_p): New member function.
7200 (auto_language_data): Delete la_is_string_type_p initializer.
7201 (auto_language::is_string_type_p): New member function.
7202 * language.h (language_data): Delete la_is_string_type_p field.
7203 (language_defn::is_string_type_p): Declare new function.
7204 (default_is_string_type_p): Delete desclaration, move comment to
7205 definition.
7206 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
7207 moved to m2_language::is_string_type_p.
7208 (m2_language_data): Delete la_is_string_type_p initializer.
7209 (m2_language::is_string_type_p): New member function,
7210 implementation from m2_is_string_type_p.
7211 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
7212 initializer.
7213 * opencl-lang.c (opencl_language_data): Likewise.
7214 * p-lang.c (pascal_is_string_type_p): Delete function,
7215 implementation moved to pascal_language::is_string_type_p.
7216 (pascal_language_data): Delete la_is_string_type_p initializer.
7217 (pascal_language::is_string_type_p): New member function,
7218 implementation from pascal_is_string_type_p.
7219 * rust-lang.c (rust_is_string_type_p): Delete function,
7220 implementation moved to rust_language::is_string_type_p.
7221 (rust_language_data): Delete la_is_string_type_p initializer.
7222 (rust_language::is_string_type_p): New member function,
7223 implementation from rust_is_string_type_p.
7224 * valprint.c (val_print_scalar_or_string_type_p): Update call to
7225 is_string_type_p.
7226
4ffc13fb
AB
72272020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7228
7229 * ada-lang.c (ada_language_data): Delete la_print_typedef
7230 initializer.
7231 (ada_language::print_typedef): New member function.
7232 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
7233 (cplus_language_data): Likewise.
7234 (asm_language_data): Likewise.
7235 (minimal_language_data): Likewise.
7236 * d-lang.c (d_language_data): Likewise.
7237 * f-lang.c (f_language_data): Likewise.
7238 (f_language::print_typedef): New member function.
7239 * go-lang.c (go_language_data): Delete la_print_typedef
7240 initializer.
7241 * language.c (language_defn::print_typedef): Define member
7242 function.
7243 (unknown_language_data): Delete la_print_typedef initializer.
7244 (unknown_language::print_typedef): New member function.
7245 (auto_language_data): Delete la_print_typedef initializer.
7246 (auto_language::print_typedef): New member function.
7247 * language.h (language_data): Delete la_print_typedef field.
7248 (language_defn::print_typedef): Declare new member function.
7249 (LA_PRINT_TYPEDEF): Update call to print_typedef.
7250 (default_print_typedef): Delete declaration.
7251 * m2-lang.c (m2_language_data): Delete la_print_typedef
7252 initializer.
7253 (m2_language::print_typedef): New member function.
7254 * objc-lang.c (objc_language_data): Delete la_print_typedef
7255 initializer.
7256 * opencl-lang.c (opencl_language_data): Likewise.
7257 * p-lang.c (pascal_language_data): Likewise.
7258 (pascal_language::print_typedef): New member function.
7259 * rust-lang.c (rust_print_typedef): Delete function,
7260 implementation moved to rust_language::print_typedef.
7261 (rust_language): Delete la_print_typedef initializer.
7262 (rust_language::print_typedef): New member function,
7263 implementation from rust_print_typedef.
7264 * typeprint.c (default_print_typedef): Delete.
7265
d711ee67
AB
72662020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7267
7268 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
7269 (ada_language::printstr): New member function.
7270 * c-lang.c (c_language_data): Delete la_printstr initializer.
7271 (cplus_language_data): Likewise.
7272 (asm_language_data): Likewise.
7273 (minimal_language_data): Likewise.
7274 * d-lang.c (d_language_data): Likewise.
7275 * f-lang.c (f_printstr): Rename to f_language::printstr.
7276 (f_language_data): Delete la_printstr initializer.
7277 (f_language::printstr): New member function, implementation from
7278 f_printstr.
7279 * go-lang.c (go_language_data): Delete la_printstr initializer.
7280 * language.c (language_defn::printstr): Define new member
7281 function.
7282 (unk_lang_printstr): Delete.
7283 (unknown_language_data): Delete la_printstr initializer.
7284 (unknown_language::printstr): New member function.
7285 (auto_language_data): Delete la_printstr initializer.
7286 (auto_language::printstr): New member function.
7287 * language.h (language_data): Delete la_printstr field.
7288 (language_defn::printstr): Declare new member function.
7289 (LA_PRINT_STRING): Update call to printstr.
7290 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
7291 (m2_language_data): Delete la_printstr initializer.
7292 (m2_language::printstr): New member function, implementation from
7293 m2_printstr.
7294 * objc-lang.c (objc_language_data): Delete la_printstr
7295 initializer.
7296 * opencl-lang.c (opencl_language_data): Likewise.
7297 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
7298 (pascal_language_data): Delete la_printstr initializer.
7299 (pascal_language::printstr): New member function, implementation
7300 from pascal_printstr.
7301 * p-lang.h (pascal_printstr): Delete declaration.
7302 * rust-lang.c (rust_printstr): Update header comment.
7303 (rust_language_data): Delete la_printstr initializer.
7304 (rust_language::printstr): New member function.
7305
52b50f2c
AB
73062020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7307
7308 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
7309 (ada_language::printchar): New member function.
7310 * c-lang.c (c_language_data): Delete la_printchar initializer.
7311 (cplus_language_data): Likewise.
7312 (asm_language_data): Likewise.
7313 (minimal_language_data): Likewise.
7314 * d-lang.c (d_language_data): Likewise.
7315 * f-lang.c (f_printchar): Rename to f_language::printchar.
7316 (f_language_data): Delete la_printchar initializer.
7317 (f_language::printchar): New member function, implementation from
7318 f_printchar.
7319 * go-lang.c (go_language_data): Delete la_printchar initializer.
7320 * language.c (unk_lang_printchar): Delete.
7321 (language_defn::printchar): Define new member function.
7322 (unknown_language_data): Delete la_printchar initializer.
7323 (unknown_language::printchar): New member function.
7324 (auto_language_data): Delete la_printchar initializer.
7325 (auto_language::printchar): New member function.
7326 * language.h (language_data): Delete la_printchar field.
7327 (language_defn::printchar): Declare new member function.
7328 (LA_PRINT_CHAR): Update call to printchar.
7329 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
7330 (m2_language::printchar): New member function.
7331 * objc-lang.c (objc_language_data): Delete la_printchar
7332 initializer.
7333 * opencl-lang.c (opencl_language_data): Likewise.
7334 * p-lang.c (pascal_language_data): Delete la_printchar
7335 initializer.
7336 (pascal_language::printchar): New member function.
7337 * rust-lang.c (rust_printchar): Rename to
7338 rust_language::printchar.
7339 (rust_language_data): Delete la_printchar initializer.
7340 (rust_language::printchar): New member function, implementation
7341 from rust_printchar.
7342
ec8cec5b
AB
73432020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7344
7345 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
7346 (ada_language_data): Delete la_emitchar initializer.
7347 (ada_language::emitchar): New member function, implementation from
7348 emit_char.
7349 * c-lang.c (c_language_data): Delete la_emitchar initializer.
7350 (cplus_language_data): Likewise.
7351 (asm_language_data): Likewise.
7352 (minimal_language_data): Likewise.
7353 * d-lang.c (d_language_data): Likewise.
7354 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
7355 (f_language_data): Delete la_emitchar initializer.
7356 (f_language::emitchar): New member function, implementation from
7357 f_emit_char.
7358 * go-lang.c (go_language_data): Delete la_emitchar initializer.
7359 * language.c (unk_lang_emit_char): Delete.
7360 (language_defn::emitchar): New member function definition.
7361 (unknown_language_data): Delete la_emitchar initializer.
7362 (unknown_language::emitchar): New member function.
7363 (auto_language_data): Delete la_emitchar initializer.
7364 (auto_language::emitchar): New member function.
7365 * language.h (language_data): Delete la_emitchar field.
7366 (language_defn::emitchar): New member field declaration.
7367 (LA_EMIT_CHAR): Update call to emitchar.
7368 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
7369 (m2_language_data): Delete la_emitchar initializer.
7370 (m2_language::emitchar): New member function, implementation from
7371 m2_emit_char.
7372 * objc-lang.c (objc_language_data): Delete la_emitchar
7373 initializer.
7374 * opencl-lang.c (opencl_language_data): Likewise.
7375 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
7376 (pascal_language_data): Delete la_emitchar initializer.
7377 (pascal_language::emitchar): New member function, implementation
7378 from pascal_emit_char.
7379 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
7380 (rust_language_data): Delete la_emitchar initializer.
7381 (rust_language::emitchar): New member function, implementation
7382 from rust_emitchar.
7383
1bf9c363
AB
73842020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7385
7386 * ada-lang.c (resolve): Rename to ada_language::post_parser.
7387 (ada_language_data): Delete la_post_parser initializer.
7388 (ada_language::post_parser): New member function.
7389 * c-lang.c (c_language_data): Delete la_post_parser initializer.
7390 (cplus_language_data): Likewise.
7391 (asm_language_data): Likewise.
7392 (minimal_language_data): Likewise.
7393 * d-lang.c (d_language_data): Likewise.
7394 * f-lang.c (f_language_data): Likewise.
7395 * go-lang.c (go_language_data): Likewise.
7396 * language.c (unknown_language_data): Likewise.
7397 (auto_language_data): Likewise.
7398 * language.h (language_data): Delete la_post_parser field.
7399 (language_defn::post_parser): New member function.
7400 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
7401 * objc-lang.c (objc_language_data): Likewise.
7402 * opencl-lang.c (opencl_language_data): Likewise.
7403 * p-lang.c (pascal_language_data): Likewise.
7404 * parse.c (parse_exp_in_context): Update call to post_parser.
7405 (null_post_parser): Delete definition.
7406 * parser-defs.h (null_post_parser): Delete declaration.
7407 * rust-lang.c (rust_language_data): Delete la_post_parser
7408 initializer.
7409
87afa652
AB
74102020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7411
7412 * ada-lang.c (parse): Rename to ada_language::parser.
7413 (ada_language_data): Delete la_parser initializer.
7414 (ada_language::parser): New member function, implementation from
7415 parse.
7416 * c-lang.c (c_language_data): Delete la_parser initializer.
7417 (cplus_language_data): Likewise.
7418 (asm_language_data): Likewise.
7419 (minimal_language_data): Likewise.
7420 * d-lang.c (d_language_data): Likewise.
7421 (d_language::parser): New member function.
7422 * f-lang.c (f_language_data): Delete la_parser initializer.
7423 (f_language::parser): New member function.
7424 * go-lang.c (go_language_data): Delete la_parser initializer.
7425 (go_language::parser): New member function.
7426 * language.c (unk_lang_parser): Delete.
7427 (language_defn::parser): Define new member function.
7428 (unknown_language_data): Delete la_parser initializer.
7429 (unknown_language::parser): New member function.
7430 (auto_language_data): Delete la_parser initializer.
7431 (auto_language::parser): New member function.
7432 * language.h (language_data): Delete la_parser field.
7433 (language_defn::parser): Declare new member function.
7434 * m2-lang.c (m2_language_data): Delete la_parser initializer.
7435 (m2_language::parser): New member function.
7436 * objc-lang.c (objc_language_data): Delete la_parser initializer.
7437 * opencl-lang.c (opencl_language_data): Likewise.
7438 * p-lang.c (pascal_language_data): Likewise.
7439 (pascal_language::parser): New member function.
7440 * parse.c (parse_exp_in_context): Update call to parser.
7441 * rust-lang.c (rust_language_data): Delete la_parser initializer.
7442 (rust_language::parser): New member function.
7443
37825800
AB
74442020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7445
7446 * top.c (print_gdb_configuration): Print --with-python-libdir
7447 configuration value.
7448
5b860c93
PW
74492020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7450
7451 * NEWS: Mention change to the alias command.
7452
cf00cd6f
PW
74532020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7454
7455 * cli/cli-cmds.c (lookup_cmd_for_default_args)
7456 (alias_command_completer)
7457 (make_alias_options_def_group): New functions.
7458 (alias_opts, alias_option_defs): New struct and array.
7459 (alias_usage_error): Update usage.
7460 (alias_command): Handles optional DEFAULT-ARGS... arguments.
7461 Use option framework.
7462 (_initialize_cli_cmds): Update alias command help.
7463 Update aliases command help.
7464 (show_user):
7465 Add NULL for new default_args lookup_cmd argument.
7466 (valid_command_p): Rename to validate_aliased_command.
7467 Add NULL for new default_args lookup_cmd argument. Verify that the
7468 aliased_command has no default args.
7469 * cli/cli-decode.c (help_cmd): Show aliases definitions.
7470 (lookup_cmd_1, lookup_cmd): New argument default_args.
7471 (add_alias_cmd):
7472 Add NULL for new default_args lookup_cmd argument.
7473 (print_help_for_command): Show default args under the layout
7474 alias some_alias = some_aliased_cmd some_alias_default_arg.
7475 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
7476 xfree default_args in destructor.
7477 * cli/cli-script.c (process_next_line, do_define_command):
7478 Add NULL for new default_args lookup_cmd argument.
7479 * command.h: Declare new default_args argument in lookup_cmd
7480 and lookup_cmd_1.
7481 * completer.c (complete_line_internal_1):
7482 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7483 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
7484 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
7485 Likewise.
7486 * infcmd.c (_initialize_infcmd): Likewise.
7487 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
7488 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
7489 * python/py-param.c (add_setshow_generic): Likewise.
7490 * remote.c (_initialize_remote): Likewise.
7491 * top.c (execute_command): Prepend default_args if command has some.
7492 (set_verbose):
7493 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7494 * tracepoint.c (validate_actionline, encode_actions_1):
7495 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7496
bd920864
TBA
74972020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7498
7499 * jit.c (jit_read_descriptor): Use bool as the return type.
7500 (jit_breakpoint_re_set_internal): Use bool as the return type.
7501 Invert the return value logic; return true if the jit breakpoint
7502 has been successfully initialized.
7503 (jit_inferior_init): Update the call to
7504 jit_breakpoint_re_set_internal.
7505
f8098322
PA
75062020-06-22 Pedro Alves <palves@redhat.com>
7507
7508 PR gdb/25939
7509 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
7510 Use the current inferior instead. Don't return
7511 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
7512 wait again.
7513 * sol-thread.c (sol_thread_target::wait): Don't reference
7514 inferior_ptid.
7515 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
7516 (sol_update_thread_list_callback): Use the current inferior's pid
7517 instead of inferior_ptid.
7518
196535a6
RO
75192020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7520
7521 * procfs.c: Cleanup many comments.
7522
7523 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
7524 (AFTER_WATCHFLAG): Replace by value.
7525
7526 (MAIN_PROC_NAME_FORMAT): Inline ...
7527 (create_procinfo): ... here.
7528
7529 (procfs_debug_inferior): Remove SYS_exec handling.
7530 (syscall_is_exec): Likewise.
7531 (procfs_set_exec_trap): Likewise.
7532
7533 (syscall_is_lwp_exit): Inline in callers.
7534 (syscall_is_exit): Likewise.
7535 (syscall_is_exec): Likewise.
7536 (syscall_is_lwp_create): Likewise.
7537
7538 (invalidate_cache): Remove #if 0 code.
7539
7540 (make_signal_thread_runnable): Remove.
7541 (procfs_target::resume): Remove #if 0 code.
7542
cf6f3e86
RO
75432020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7544
7545 PR gdb/25939
7546 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
7547 call ...
7548 (procfs_target::create_inferior): ... here.
7549
48e9cc84
PW
75502020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7551
7552 * exec.c (validate_exec_file): Ensure the build-id is up to
7553 date by calling reopen_exec_file (that checks file timestamp
7554 to decide to re-read the file).
7555
3922b302
PA
75562020-06-18 Pedro Alves <palves@redhat.com>
7557
7558 PR gdb/25412
7559 * gdbthread.h (delete_thread, delete_thread_silent)
7560 (find_thread_ptid): Update comments.
7561 * thread.c (current_thread_): New global.
7562 (is_current_thread): Move higher, and reimplement.
7563 (inferior_thread): Reimplement.
7564 (set_thread_exited): Use bool. Add assertions.
7565 (add_thread_silent): Simplify thread-reuse handling by always
7566 calling delete_thread.
7567 (delete_thread): Remove intro comment.
7568 (find_thread_ptid): Skip exited threads.
7569 (switch_to_thread_no_regs): Write to current_thread_.
7570 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
7571 INFERIOR_PTID. Clear current_thread_.
7572
6dbdab44
PA
75732020-06-18 Pedro Alves <palves@redhat.com>
7574
7575 * aix-thread.c (pd_update): Use switch_to_thread.
7576
2da4b788
PA
75772020-06-18 Pedro Alves <palves@redhat.com>
7578
7579 * ravenscar-thread.c (ravenscar_thread_target): Update.
7580 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
7581 (ravenscar_thread_target::add_active_thread): ... this. Don't
7582 set m_base_ptid here. Update to avoid referencing inferior_ptid.
7583 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
7584
50838d1b
PA
75852020-06-18 Pedro Alves <palves@redhat.com>
7586
7587 * nat/windows-nat.c (current_windows_thread): Remove.
7588 * nat/windows-nat.h (current_windows_thread): Remove.
7589 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
7590 Adjust.
7591 (display_selectors): Adjust to fetch the current
7592 windows_thread_info based on inferior_ptid.
7593 (fake_create_process): No longer write to current_windows_thread.
7594 (windows_nat_target::get_windows_debug_event):
7595 Don't set inferior_ptid or current_windows_thread.
7596 (windows_nat_target::wait): Adjust to not rely on
7597 current_windows_thread.
7598 (do_initial_windows_stuff): Now a method of windows_nat_target.
7599 Switch to the last_ptid thread.
7600 (windows_nat_target::attach): Adjust.
7601 (windows_nat_target::detach): Use switch_to_no_thread instead of
7602 writing to inferior_ptid directly.
7603 (windows_nat_target::create_inferior): Adjust.
7604
31ce04e9
PA
76052020-06-18 Pedro Alves <palves@redhat.com>
7606
7607 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
7608
1ee1a363
PA
76092020-06-18 Pedro Alves <palves@redhat.com>
7610
7611 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
7612 after creating it, instead of writing to inferior_ptid. Don't
7613 write to inferior_ptid.
7614
6d350754
PA
76152020-06-18 Pedro Alves <palves@redhat.com>
7616
7617 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
7618
5d971d48
PA
76192020-06-18 Pedro Alves <palves@redhat.com>
7620
7621 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
7622 it, instead of writing to inferior_ptid.
7623
86e57d1b
PA
76242020-06-18 Pedro Alves <palves@redhat.com>
7625
7626 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
7627 to inferior_ptid.
7628
f2e1c129
PA
76292020-06-18 Pedro Alves <palves@redhat.com>
7630
7631 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
7632 instead of writing to inferior_ptid directly.
7633
60db1b85
PA
76342020-06-18 Pedro Alves <palves@redhat.com>
7635
7636 * corelow.c (core_target::close): Use switch_to_no_thread instead
7637 of writing to inferior_ptid directly.
7638 (add_to_thread_list, core_target_open): Use switch_to_thread
7639 instead of writing to inferior_ptid directly.
7640
fe7d6a8d
PA
76412020-06-18 Pedro Alves <palves@redhat.com>
7642
7643 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
7644 inferior_ptid.
7645 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
7646 inferior_ptid.
7647 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
7648 inferior_ptid directly.
7649 (darwin_nat_target::init_thread_list): Switch to thread, instead
7650 of writing to inferior_ptid.
7651 (darwin_nat_target::attach): Don't write to inferior_ptid.
7652 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
7653
975f8708
PA
76542020-06-18 Pedro Alves <palves@redhat.com>
7655
7656 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
7657 thread.
7658 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
7659 Instead use switch_to_thread.
7660 (gnu_nat_target::detach): Use switch_to_no_thread
7661 instead of writing to inferior_ptid directly. Used passed-in
7662 inferior instead of looking up the inferior by pid.
7663
1a204730
PA
76642020-06-18 Pedro Alves <palves@redhat.com>
7665
7666 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
7667 inferior_ptid.
7668
ebe84f23
PA
76692020-06-18 Pedro Alves <palves@redhat.com>
7670
7671 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
7672 inferior_ptid.
7673 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
7674 thread.
7675 (nto_procfs_target::detach): Avoid referencing
7676 inferior_ptid. Use switch_to_no_thread instead of writing to
7677 inferior_ptid directly.
7678 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
7679 instead of writing to inferior_ptid directly.
7680 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
7681 to thread.
7682
191f02e5
PA
76832020-06-18 Pedro Alves <palves@redhat.com>
7684
7685 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
7686 after creating it, instead of writing to inferior_ptid.
7687 (gdbsim_target_open): Use switch_to_no_thread instead of writing
7688 to inferior_ptid directly.
7689 (gdbsim_target::wait): Don't write to inferior_ptid.
7690
0ac55310
PA
76912020-06-18 Pedro Alves <palves@redhat.com>
7692
7693 * remote.c (remote_target::remote_notice_new_inferior): Use
7694 switch_to_thread instead of writing to inferior_ptid directly.
7695 (remote_target::add_current_inferior_and_thread): Use
7696 switch_to_no_thread instead of writing to inferior_ptid directly.
7697 (extended_remote_target::attach): Use switch_to_inferior_no_thread
7698 and switch_to_thread instead of using set_current_inferior or
7699 writing to inferior_ptid directly.
7700
5233f39b
PA
77012020-06-18 Pedro Alves <palves@redhat.com>
7702
7703 * tracectf.c (ctf_target_open): Switch to added thread instead of
7704 writing to inferior_ptid directly.
7705 (ctf_target::close): Use switch_to_no_thread instead of writing to
7706 inferior_ptid directly.
7707
087e161b
PA
77082020-06-18 Pedro Alves <palves@redhat.com>
7709
7710 * tracefile-tfile.c (tfile_target_open): Don't write to
7711 inferior_ptid directly, instead switch to added thread.
7712 (tfile_target::close): Use switch_to_no_thread instead of writing
7713 to inferior_ptid directly.
7714
7fb43e53
PA
77152020-06-18 Pedro Alves <palves@redhat.com>
7716
7717 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
7718 (procfs_target::detach): Use switch_to_no_thread
7719 instead of writing to inferior_ptid directly.
7720 (do_attach): Change return type to void. Switch to the added
7721 thread.
7722 (procfs_target::create_inferior): Switch to the added thread.
7723 (procfs_do_thread_registers): Don't write to inferior_ptid.
7724
18493a00
PA
77252020-06-18 Pedro Alves <palves@redhat.com>
7726
7727 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
7728 of writing to inferior_ptid.
7729 (scoped_restore_exited_inferior): Delete.
7730 (handle_vfork_child_exec_or_exit): Simplify using
7731 scoped_restore_current_pspace_and_thread. Use switch_to_thread
7732 instead of writing to inferior_ptid.
7733 (THREAD_STOPPED_BY): Delete.
7734 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
7735 (thread_stopped_by_hw_breakpoint): Delete.
7736 (save_waitstatus): Use
7737 scoped_restore_current_thread+switch_to_thread, and call
7738 target_stopped_by_watchpoint instead of
7739 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
7740 instead of thread_stopped_by_sw_breakpoint, and
7741 target_stopped_by_hw_breakpoint instead of
7742 thread_stopped_by_hw_breakpoint.
7743 (handle_inferior_event)
7744 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
7745 inferior_ptid directly, nor
7746 set_current_inferior/set_current_program_space. Use
7747 switch_to_thread / switch_to_inferior_no_thread instead.
7748
a0776b13
PA
77492020-06-18 Pedro Alves <palves@redhat.com>
7750
7751 * target.c (generic_mourn_inferior): Use switch_to_no_thread
7752 instead of writing to inferior_ptid.
7753
6155c136
PA
77542020-06-18 Pedro Alves <palves@redhat.com>
7755
7756 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
7757 added thread.
7758 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
7759 to the added thread.
7760 (inf_ptrace_target::detach_success): Use switch_to_no_thread
7761 instead of writing to inferior_ptid.
7762
c5316fc6
PA
77632020-06-18 Pedro Alves <palves@redhat.com>
7764
7765 * gdbarch-selftests.c: Include "progspace-and-thread.h".
7766 (register_to_value_test): Mock a program_space too. Heap-allocate
7767 the address space. Don't write to inferior_ptid. Use
7768 switch_to_thread instead.
7769
8df01799
PA
77702020-06-18 Pedro Alves <palves@redhat.com>
7771
7772 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
7773 Delete.
7774 (find_signalled_thread()): New, factored out from
7775 linux_make_corefile_notes and adjusted to handle exited threads.
7776 (linux_make_corefile_notes): Adjust to use the new
7777 find_signalled_thread.
7778
41792d68
PA
77792020-06-18 Pedro Alves <palves@redhat.com>
7780
7781 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
7782 of saving/restoring inferior_ptid.
7783
612f258a
TT
77842020-06-17 Tom Tromey <tom@tromey.com>
7785
7786 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
7787 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
7788 declare.
7789 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
7790
efb763a5
SM
77912020-06-15 Simon Marchi <simon.marchi@efficios.com>
7792
7793 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
7794 of partial symtabs.
7795
2951f6c0
SM
77962020-06-17 Simon Marchi <simon.marchi@efficios.com>
7797
7798 * regformats/reg-arm.dat: Remove.
7799 * regformats/reg-bfin.dat: Remove.
7800 * regformats/reg-cris.dat: Remove.
7801 * regformats/reg-crisv32.dat: Remove.
7802 * regformats/reg-m32r.dat: Remove.
7803 * regformats/reg-tilegx.dat: Remove.
7804 * regformats/reg-tilegx32.dat: Remove.
7805
7d458ea5
SM
78062020-06-17 Simon Marchi <simon.marchi@efficios.com>
7807
7808 * features/Makefile (WHICH): Remove arm files.
7809 * regformats/arm/arm-with-iwmmxt.dat: Remove.
7810 * regformats/arm/arm-with-neon.dat: Remove.
7811 * regformats/arm/arm-with-vfpv2.dat: Remove.
7812 * regformats/arm/arm-with-vfpv3.dat: Remove.
7813
3af96c0d
SM
78142020-06-17 Simon Marchi <simon.marchi@efficios.com>
7815
7816 * features/Makefile (XMLTOC): Remove rx.xml.
7817
b25e22fd
PA
78182020-06-17 Pedro Alves <palves@redhat.com>
7819
7820 * gdbthread.h (thread_control_state) <trap_expected> Update
7821 comments.
7822
a78a19b1
AB
78232020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7824
7825 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
7826 ada_language::lookup_symbol_nonlocal.
7827 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
7828 (ada_language::lookup_symbol_nonlocal): New member function,
7829 implementation from ada_lookup_symbol_nonlocal.
7830 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
7831 initializer.
7832 (cplus_language_data): Delete la_lookup_symbol_nonlocal
7833 initializer.
7834 (cplus_language::lookup_symbol_nonlocal): New member function.
7835 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
7836 (minimal_language_data) Likewise.
7837 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
7838 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
7839 initializer.
7840 (d_language::lookup_symbol_nonlocal): New member function.
7841 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
7842 initializer.
7843 (f_language::lookup_symbol_nonlocal): New member function.
7844 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
7845 initializer.
7846 * language.c (unknown_language_data): Likewise.
7847 (auto_language_data): Likewise.
7848 * language.h (language_data): Delete la_lookup_symbol_nonlocal
7849 field.
7850 (language_defn::lookup_symbol_nonlocal): New member function.
7851 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
7852 initializer.
7853 * objc-lang.c (objc_language_data): Likewise.
7854 * opencl-lang.c (opencl_language_data): Likewise.
7855 * p-lang.c (pascal_language_data): Likewise.
7856 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
7857 rust_language::lookup_symbol_nonlocal.
7858 (rust_language_data): Delete la_lookup_symbol_nonlocal
7859 initializer.
7860 (rust_language::lookup_symbol_nonlocal): New member function,
7861 implementation from rust_lookup_symbol_nonlocal.
7862 * symtab.c (lookup_symbol_aux): Update call to
7863 lookup_symbol_nonlocal.
7864 (basic_lookup_symbol_nonlocal): Rename to...
7865 (language_defn::lookup_symbol_nonlocal): ...this, and update
7866 header comment. Remove language_defn parameter, and replace with
7867 uses of `this'.
7868 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
7869
ebe2334e
AB
78702020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7871
7872 * ada-lang.c (ada_language_data): Delete la_value_print_inner
7873 initializer.
7874 (ada_language::value_print_inner): New member function.
7875 * c-lang.c (c_language_data): Delete la_value_print_inner
7876 initializer.
7877 (cplus_language_data): Likewise.
7878 (asm_language_data): Likewise.
7879 (minimal_language_data): Likewise.
7880 * d-lang.c (d_language_data): Likewise.
7881 (d_language::value_print_inner): New member function.
7882 * f-lang.c (f_language_data): Delete la_value_print_inner
7883 initializer.
7884 (f_language::value_print_inner): New member function.
7885 * f-lang.h (f_value_print_innner): Rename to...
7886 (f_value_print_inner): ...this (note spelling of 'inner').
7887 * f-valprint.c (f_value_print_innner): Rename to...
7888 (f_value_print_inner): ...this (note spelling of 'inner').
7889 * go-lang.c (go_language_data): Delete la_value_print_inner
7890 initializer.
7891 (go_language::value_print_inner): New member function.
7892 * language.c (language_defn::value_print_inner): Define new member
7893 function.
7894 (unk_lang_value_print_inner): Delete.
7895 (unknown_language_data): Delete la_value_print_inner initializer.
7896 (unknown_language::value_print_inner): New member function.
7897 (auto_language_data): Delete la_value_print_inner initializer.
7898 (auto_language::value_print_inner): New member function.
7899 * language.h (language_data): Delete la_value_print_inner field.
7900 (language_defn::value_print_inner): Delcare new member function.
7901 * m2-lang.c (m2_language_data): Delete la_value_print_inner
7902 initializer.
7903 (m2_language::value_print_inner): New member function.
7904 * objc-lang.c (objc_language_data): Delete la_value_print_inner
7905 initializer.
7906 * opencl-lang.c (opencl_language_data): Likewise.
7907 * p-lang.c (pascal_language_data): Likewise.
7908 (pascal_language::value_print_inner): New member function.
7909 * rust-lang.c (rust_language_data): Delete la_value_print_inner
7910 initializer.
7911 (rust_language::value_print_inner): New member function.
7912 * valprint.c (do_val_print): Update call to value_print_inner.
7913
a1d1fa3e
AB
79142020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7915
7916 * ada-lang.c (ada_language_data): Delete la_value_print
7917 initializer.
7918 (ada_language::value_print): New member function.
7919 * c-lang.c (c_language_data): Delete la_value_print initializer.
7920 (cplus_language_data): Likewise.
7921 (asm_language_data): Likewise.
7922 (minimal_language_data): Likewise.
7923 * d-lang.c (d_language_data): Likewise.
7924 * f-lang.c (f_language_data): Likewise.
7925 * go-lang.c (go_language_data): Likewise.
7926 * language.c (unk_lang_value_print): Delete.
7927 (language_defn::value_print): Define new member function.
7928 (unknown_language_data): Delete la_value_print initializer.
7929 (unknown_language::value_print): New member function.
7930 (auto_language_data): Delete la_value_print initializer.
7931 (auto_language::value_print): New member function.
7932 * language.h (language_data): Delete la_value_print field.
7933 (language_defn::value_print): Declare new member function.
7934 (LA_VALUE_PRINT): Update call to value_print.
7935 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
7936 * objc-lang.c (objc_language_data): Likewise.
7937 * opencl-lang.c (opencl_language_data): Likewise.
7938 * p-lang.c (pascal_language_data): Likewise.
7939 (pascal_language::value_print): New member function.
7940 * rust-lang.c (rust_language_data): Delete la_value_print
7941 initializer.
7942
f16a9f57
AB
79432020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7944
7945 * ada-lang.c (ada_watch_location_expression): Rename to
7946 ada_language::watch_location_expression.
7947 (ada_language_data): Delete la_watch_location_expression
7948 initializer.
7949 (ada_language::watch_location_expression): New member function,
7950 implementation from ada_watch_location_expression.
7951 * breakpoint.c (watch_command_1): Update call to
7952 watch_location_expression.
7953 * c-lang.c (c_watch_location_expression): Rename to
7954 language_defn::watch_location_expression.
7955 (c_language_data): Delete la_watch_location_expression
7956 initializer.
7957 (cplus_language_data): Likewise.
7958 (asm_language_data): Likewise.
7959 (minimal_language_data): Likewise.
7960 * c-lang.h (c_watch_location_expression): Delete declaration.
7961 * d-lang.c (d_language_data): Delete la_watch_location_expression
7962 initializer.
7963 * f-lang.c (f_language_data): Likewise.
7964 * go-lang.c (go_language_data): Likewise.
7965 * language.c (language_defn::watch_location_expression): Member
7966 function implementation from c_watch_location_expression.
7967 (unknown_language_data): Delete la_watch_location_expression
7968 initializer.
7969 (auto_language_data): Likewise.
7970 * language.h (language_data): Delete la_watch_location_expression
7971 field.
7972 (language_defn::watch_location_expression): Declare new member
7973 function.
7974 * m2-lang.c (m2_language_data): Delete
7975 la_watch_location_expression initializer.
7976 * objc-lang.c (objc_language_data): Likewise.
7977 * opencl-lang.c (opencl_language_data): Likewise.
7978 * p-lang.c (pascal_language_data): Likewise.
7979 * rust-lang.c (rust_watch_location_expression): Rename to
7980 rust_language::watch_location_expression.
7981 (rust_language_data): Delete la_watch_location_expression
7982 initializer.
7983 (rust_language::watch_location_expression): New member function,
7984 implementation from rust_watch_location_expression.
7985
7e56227d
AB
79862020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7987
7988 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
7989 ada_language::collect_symbol_completion_matches.
7990 (ada_language_data): Delete la_collect_symbol_completion_matches
7991 initializer.
7992 (ada_language::collect_symbol_completion_matches): New member
7993 function, implementation from
7994 ada_collect_symbol_completion_matches.
7995 * c-lang.c (c_language_data): Delete
7996 la_collect_symbol_completion_matches initializer.
7997 (cplus_language_data): Likewise.
7998 (asm_language_data): Likewise.
7999 (minimal_language_data): Likewise.
8000 * d-lang.c (d_language_data): Likewise.
8001 * f-lang.c (f_collect_symbol_completion_matches): Rename to
8002 f_language::collect_symbol_completion_matches.
8003 (f_language_data): Delete la_collect_symbol_completion_matches
8004 initializer.
8005 (f_language::collect_symbol_completion_matches) New member
8006 function, implementation from f_collect_symbol_completion_matches.
8007 * go-lang.c (go_language_data): Delete
8008 la_collect_symbol_completion_matches initializer.
8009 * language.c (unknown_language_data): Likewise.
8010 (auto_language_data): Likewise.
8011 * language.h (language_data): Delete
8012 la_collect_symbol_completion_matches field.
8013 (language_defn::collect_symbol_completion_matches): New member
8014 function.
8015 * m2-lang.c (m2_language_data): Delete
8016 la_collect_symbol_completion_matches initializer.
8017 * objc-lang.c (objc_language_data): Likewise.
8018 * opencl-lang.c (opencl_language_data): Likewise.
8019 * p-lang.c (pascal_language_data): Likewise.
8020 * rust-lang.c (rust_language_data): Likewise.
8021 * symtab.c (default_collect_symbol_completion_matches): Delete.
8022 (collect_symbol_completion_matches): Update call to
8023 collect_symbol_completion_matches.
8024 (collect_symbol_completion_matches_type): Likewise.
8025 * symtab.h (default_collect_symbol_completion_matches): Delete
8026 declaration.
8027
53fc67f8
AB
80282020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8029
8030 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
8031 (ada_language_data): Delete la_word_break_characters initializer.
8032 (ada_language::word_break_characters): New member function.
8033 * c-lang.c (c_language_data): Delete la_word_break_characters
8034 initializer.
8035 (cplus_language_data): Likewise.
8036 (asm_language_data): Likewise.
8037 (minimal_language_data): Likewise.
8038 * completer.c: Update global comment.
8039 (advance_to_expression_complete_word_point): Update call to
8040 word_break_characters.
8041 (complete_files_symbols): Likewise.
8042 (complete_line_internal_1): Likewise.
8043 (default_completer_handle_brkchars): Likewise.
8044 (skip_quoted_chars): Likewise.
8045 * d-lang.c (d_language_data): Delete la_word_break_characters
8046 initializer.
8047 * f-lang.c (f_word_break_characters): Delete.
8048 (f_language_data): Delete la_word_break_characters initializer.
8049 (f_language::word_break_characters): New member function.
8050 * go-lang.c (go_language_data): Delete la_word_break_characters
8051 initializer.
8052 * language.c (unknown_language_data): Likewise.
8053 (auto_language_data): Likewise.
8054 * language.h (default_word_break_characters): Move declaration to
8055 earlier in the file.
8056 (language_data): Delete la_word_break_characters field.
8057 (language_defn::word_break_characters): New member function.
8058 * m2-lang.c (m2_language_data): Delete la_word_break_characters
8059 initializer.
8060 * objc-lang.c (objc_language_data): Likewise.
8061 * opencl-lang.c (opencl_language_data): Likewise.
8062 * p-lang.c (pascal_language_data): Likewise.
8063 * rust-lang.c (rust_language_data): Likewise.
8064
c9debfb9
AB
80652020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8066
8067 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
8068 (ada_language_data): Delete la_get_symbol_name_matcher
8069 initializer.
8070 (language_defn::get_symbol_name_matcher_inner): New member
8071 function.
8072 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
8073 initializer.
8074 (cplus_language_data): Likewise.
8075 (cplus_language::get_symbol_name_matcher_inner): New member
8076 function.
8077 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
8078 (minimal_language_data): Likewise.
8079 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
8080 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
8081 initializer.
8082 * dictionary.c (iter_match_first_hashed): Update call to
8083 get_symbol_name_matcher.
8084 (iter_match_next_hashed): Likewise.
8085 (iter_match_next_linear): Likewise.
8086 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
8087 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
8088 initializer.
8089 (f_language::get_symbol_name_matcher_inner): New member function.
8090 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
8091 initializer.
8092 * language.c (default_symbol_name_matcher): Update header comment,
8093 make static.
8094 (language_defn::get_symbol_name_matcher): New definition.
8095 (language_defn::get_symbol_name_matcher_inner): Likewise.
8096 (get_symbol_name_matcher): Delete.
8097 (unknown_language_data): Delete la_get_symbol_name_matcher
8098 initializer.
8099 (auto_language_data): Likewise.
8100 * language.h (language_data): Delete la_get_symbol_name_matcher
8101 field.
8102 (language_defn::get_symbol_name_matcher): New member function.
8103 (language_defn::get_symbol_name_matcher_inner): Likewise.
8104 (default_symbol_name_matcher): Delete declaration.
8105 * linespec.c (find_methods): Update call to
8106 get_symbol_name_matcher.
8107 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
8108 initializer.
8109 * minsyms.c (lookup_minimal_symbol): Update call to
8110 get_symbol_name_matcher.
8111 (iterate_over_minimal_symbols): Likewise.
8112 * objc-lang.c (objc_language_data): Delete
8113 la_get_symbol_name_matcher initializer.
8114 * opencl-lang.c (opencl_language_data): Likewise.
8115 * p-lang.c (pascal_language_data): Likewise.
8116 * psymtab.c (psymbol_name_matches): Update call to
8117 get_symbol_name_matcher.
8118 * rust-lang.c (rust_language_data): Delete
8119 la_get_symbol_name_matcher initializer.
8120 * symtab.c (symbol_matches_search_name): Update call to
8121 get_symbol_name_matcher.
8122 (compare_symbol_name): Likewise.
8123
9a49ad8c
AB
81242020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8125
8126 * ada-lang.c (ada_language_data): Delete la_compute_program
8127 initializer.
8128 * c-lang.c (c_language_data): Likewise.
8129 (c_language::compute_program): New member function.
8130 (cplus_language_data): Delete la_compute_program initializer.
8131 (cplus_language::compute_program): New member function.
8132 (asm_language_data): Delete la_compute_program initializer.
8133 (minimal_language_data): Likewise.
8134 * c-lang.h (c_compute_program): Update comment.
8135 (cplus_compute_program): Likewise.
8136 * compile/compile-c-support.c (c_compute_program): Likewise.
8137 (cplus_compute_program): Likewise.
8138 * compile/compile.c (compile_to_object): Update call to
8139 la_compute_program.
8140 * d-lang.c (d_language_data): Delete la_compute_program
8141 initializer.
8142 * f-lang.c (f_language_data): Likewise.
8143 * go-lang.c (go_language_data): Likewise.
8144 * language.c (unknown_language_data): Likewise.
8145 (auto_language_data): Likewise.
8146 * language.h (language_data): Delete la_compute_program field.
8147 (language_defn::compute_program): New member function.
8148 * m2-lang.c (m2_language_data): Delete la_compute_program
8149 initializer.
8150 * objc-lang.c (objc_language_data): Likewise.
8151 * opencl-lang.c (opencl_language_data): Likewise.
8152 * p-lang.c (pascal_language_data): Likewise.
8153 * rust-lang.c (rust_language_data): Likewise.
8154
eff93b4d
AB
81552020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8156
8157 * ada-lang.c (ada_language_data) Delete
8158 la_class_name_from_physname initializer.
8159 * c-lang.c (c_language_data): Likewise.
8160 (cplus_language_data): Likewise.
8161 (cplus_language::class_name_from_physname): New member function.
8162 (asm_language_data): Delete la_class_name_from_physname
8163 initializer.
8164 (minimal_language_data): Likewise.
8165 * d-lang.c (d_language_data): Likewise.
8166 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
8167 method on language_defn class.
8168 (guess_full_die_structure_name): Likewise.
8169 * f-lang.c (f_language_data): Delete la_class_name_from_physname
8170 initializer.
8171 * go-lang.c (go_language_data): Likewise.
8172 * language.c (language_class_name_from_physname): Delete.
8173 (unk_lang_class_name): Delete.
8174 (unknown_language_data): Delete la_class_name_from_physname
8175 initializer.
8176 (auto_language_data): Likewise.
8177 * language.h (language_data): Delete la_class_name_from_physname
8178 field.
8179 (language_defn::class_name_from_physname): New function.
8180 (language_class_name_from_physname): Delete declaration.
8181 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
8182 initializer.
8183 * objc-lang.c (objc_language_data): Likewise.
8184 * opencl-lang.c (opencl_language_data): Likewise.
8185 * p-lang.c (pascal_language_data): Likewise.
8186 * rust-lang.c (rust_language_data): Likewise.
8187
de543742
TT
81882020-06-16 Tom Tromey <tom@tromey.com>
8189
8190 * tui/tui-data.h (STATUS_NAME): New macro.
8191 * tui/tui-layout.c (tui_remove_some_windows)
8192 (initialize_known_windows, tui_register_window)
8193 (tui_layout_split::remove_windows, initialize_layouts)
8194 (tui_new_layout_command): Don't use hard-coded window names.
8195
a350efd4
TT
81962020-06-16 Tom Tromey <tom@tromey.com>
8197
8198 PR tui/25348:
8199 * tui/tui.c (tui_ensure_readline_initialized): Rename from
8200 tui_initialize_readline. Only run once. Call rl_initialize.
8201 * tui/tui.h (tui_ensure_readline_initialized): Rename from
8202 tui_initialize_readline.
8203 * tui/tui-io.c (tui_setup_io): Call
8204 tui_ensure_readline_initialized.
8205 * tui/tui-interp.c (tui_interp::init): Update.
8206
39ec0490
TT
82072020-06-16 Tom Tromey <tom@tromey.com>
8208
8209 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
8210 Also preserve the status window.
8211
d2d1ea20
TT
82122020-06-16 Tom Tromey <tom@tromey.com>
8213
8214 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
8215 where m_window==nullptr.
8216
66920317
TT
82172020-06-15 Tom Tromey <tromey@adacore.com>
8218
8219 * windows-nat.c (windows_nat::handle_output_debug_string):
8220 Update.
8221 (windows_nat::handle_ms_vc_exception): Update.
8222 * target.h (target_read_string): Change API.
8223 * target.c (target_read_string): Change API.
8224 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
8225 Update.
8226 * solib-frv.c (frv_current_sos): Update.
8227 * solib-dsbt.c (dsbt_current_sos): Update.
8228 * solib-darwin.c (darwin_current_sos): Update.
8229 * linux-thread-db.c (inferior_has_bug): Update.
8230 * expprint.c (print_subexp_standard): Update.
8231 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
8232 (ada_exception_message_1): Update.
8233
a5d871dd
TT
82342020-06-15 Tom Tromey <tromey@adacore.com>
8235
8236 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
8237
670e35fa
TT
82382020-06-15 Tom Tromey <tromey@adacore.com>
8239
8240 * valprint.c (read_string): Update comment.
8241 * target.c (MIN): Remove.
8242 (target_read_string): Rewrite.
8243
f5272a3b
TT
82442020-06-15 Tom Tromey <tromey@adacore.com>
8245
8246 * corefile.c (read_memory_string): Remove.
8247 * ada-valprint.c (ada_value_print_ptr): Update.
8248 * ada-lang.h (ada_tag_name): Change return type.
8249 * ada-lang.c (type_from_tag): Update.
8250 (ada_tag_name_from_tsd): Change return type. Use
8251 target_read_string.
8252 (ada_tag_name): Likewise.
8253 * gdbcore.h (read_memory_string): Don't declare.
8254
2c074f49
HD
82552020-06-14 Hannes Domani <ssbssa@yahoo.de>
8256
8257 * symtab.c (rbreak_command): Ignore Windows drive colon.
8258
6a17d503
SM
82592020-06-12 Simon Marchi <simon.marchi@efficios.com>
8260
8261 * NEWS: Mention removed GDBserver host support.
8262
453c733f
NC
82632020-06-12 Nelson Chu <nelson.chu@sifive.com>
8264
8265 * features/riscv/rebuild-csr-xml.sh: Updated.
8266
2b4e6a3f
TT
82672020-06-11 Tom Tromey <tom@tromey.com>
8268
8269 PR gdb/18318:
8270 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
8271
4412332f
JG
82722020-06-09 Jonny Grant <jg@jguk.org>
82732020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
8274
8275 * main.c (captured_main_1): Don't print new line after help.
8276 (print_gdb_help): add mailing list and IRC channel information
8277 to --help. Add new lines between items in the footer. Remove
8278 quotes around bug url.
8279
2f33032a
KS
82802020-06-11 Keith Seitz <keiths@redhat.com>
8281
8282 PR gdb/21356
8283 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
8284 Resolve typedefs for type length calculations.
8285
7ab96794
TV
82862020-06-10 Tom de Vries <tdevries@suse.de>
8287
8288 PR ada/24713
8289 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
8290 (write_psymbols): Enable .gdb_index for ada.
8291 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
8292 ada.
8293
e5f3ece2
TV
82942020-06-10 Tom de Vries <tdevries@suse.de>
8295
8296 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
8297 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
8298 namei" instead of "const char *name" argument.
8299 (dw2_map_matching_symbols): Use "offset_type namei" variant of
8300 dw2_symtab_iter_init.
8301
940da03e
SM
83022020-06-08 Simon Marchi <simon.marchi@efficios.com>
8303
8304 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
8305 to use type::field and field::type instead.
8306
b6cdac4b
SM
83072020-06-08 Simon Marchi <simon.marchi@efficios.com>
8308
8309 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
8310 to use field::type instead.
8311
5d14b6e5
SM
83122020-06-08 Simon Marchi <simon.marchi@efficios.com>
8313
8314 * gdbtypes.h (struct field) <type, set_type>: New methods.
8315 Rename `type` field to...
8316 <m_type>: ... this. Change references throughout to use type or
8317 set_type methods.
8318 (FIELD_TYPE): Use field::type. Change call sites that modify
8319 the field's type to use field::set_type instead.
8320
3d967001
SM
83212020-06-08 Simon Marchi <simon.marchi@efficios.com>
8322
8323 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
8324 to use type::index_type instead.
8325
262abc0d
SM
83262020-06-08 Simon Marchi <simon.marchi@efficios.com>
8327
8328 * gdbtypes.h (struct type) <index_type, set_index_type>: New
8329 methods.
8330 (TYPE_INDEX_TYPE): Use type::index_type.
8331 * gdbtypes.c (create_array_type_with_stride): Likewise.
8332
82836c92
TT
83332020-06-07 Tom Tromey <tom@tromey.com>
8334
8335 * valprint.c (generic_val_print_float): Remove "embedded_offset"
8336 parameter.
8337 (generic_value_print): Update.
8338
940dace9
AB
83392020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8340
8341 Revert commit 982a38f60b0.
8342 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
8343
982a38f6
AB
83442020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8345
8346 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
8347 avoid use after free.
8348
82f06518
TV
83492020-06-05 Tom de Vries <tdevries@suse.de>
8350
8351 * NEWS: Fix typos.
8352
f8c41851
SM
83532020-06-04 Simon Marchi <simon.marchi@efficios.com>
8354
8355 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
8356 the per_bfd object.
8357 (dwarf2_read_debug_names): Likewise.
8358 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
8359 object when re-using a per_bfd object with an index.
8360
f9b5d5ea
TV
83612020-06-03 Tom de Vries <tdevries@suse.de>
8362
8363 PR symtab/26046
8364 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
8365 children for C++.
8366 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
8367 DW_TAG_subprogram.
8368
f6eee2d0
AB
83692020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8370
8371 * ada-lang.c (ada_language_data): Delete skip_trampoline
8372 initializer.
8373 * c-lang.c (c_language_data): Likewise.
8374 (cplus_language_data): Likewise.
8375 (cplus_language::skip_trampoline): New member function.
8376 (asm_language_data): Delete skip_trampoline initializer.
8377 (minimal_language_data): Likewise.
8378 * d-lang.c (d_language_data): Likewise.
8379 * f-lang.c (f_language_data): Likewise.
8380 * go-lang.c (go_language_data): Likewise.
8381 * language.c (unk_lang_trampoline): Delete function.
8382 (skip_language_trampoline): Update.
8383 (unknown_language_data): Delete skip_trampoline initializer.
8384 (auto_language_data): Likewise.
8385 * language.h (language_data): Delete skip_trampoline field.
8386 (language_defn::skip_trampoline): New function.
8387 * m2-lang.c (m2_language_data): Delete skip_trampoline
8388 initializer.
8389 * objc-lang.c (objc_skip_trampoline): Delete function, move
8390 implementation to objc_language::skip_trampoline.
8391 (objc_language_data): Delete skip_trampoline initializer.
8392 (objc_language::skip_trampoline): New member function with
8393 implementation from objc_skip_trampoline.
8394 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
8395 initializer.
8396 * p-lang.c (pascal_language_data): Likewise.
8397 * rust-lang.c (rust_language_data): Likewise.
8398
0a50df5d
AB
83992020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8400
8401 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
8402 (ada_language::demangle): New member function.
8403 * c-lang.c (c_language_data): Delete la_demangle initializer.
8404 (cplus_language_data): Delete la_demangle initializer.
8405 (cplus_language::demangle): New member function.
8406 (asm_language_data): Delete la_demangle initializer.
8407 (minimal_language_data): Delete la_demangle initializer.
8408 * d-lang.c (d_language_data): Delete la_demangle initializer.
8409 (d_language::demangle): New member function.
8410 * f-lang.c (f_language_data): Delete la_demangle initializer.
8411 (f_language::demangle): New member function.
8412 * go-lang.c (go_language_data): Delete la_demangle initializer.
8413 (go_language::demangle): New member function.
8414 * language.c (language_demangle): Update.
8415 (unk_lang_demangle): Delete.
8416 (unknown_language_data): Delete la_demangle initializer.
8417 (unknown_language::demangle): New member function.
8418 (auto_language_data): Delete la_demangle initializer.
8419 (auto_language::demangle): New member function.
8420 * language.h (language_data): Delete la_demangle field.
8421 (language_defn::demangle): New function.
8422 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
8423 * objc-lang.c (objc_language_data): Delete la_demangle
8424 initializer.
8425 (objc_language::demangle): New member function.
8426 * opencl-lang.c (opencl_language_data): Delete la_demangle
8427 initializer.
8428 * p-lang.c (pascal_language_data): Likewise.
8429 * rust-lang.c (rust_language_data): Likewise.
8430 (rust_language::demangle): New member function.
8431
fbfb0a46
AB
84322020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8433
8434 * ada-lang.c (ada_language_data): Delete la_print_type
8435 initializer.
8436 (ada_language::print_type): New member function.
8437 * c-lang.c (c_language_data): Delete la_print_type initializer.
8438 (c_language::print_type): New member function.
8439 (cplus_language_data): Delete la_print_type initializer.
8440 (cplus_language::print_type): New member function.
8441 (asm_language_data): Delete la_print_type initializer.
8442 (asm_language::print_type): New member function.
8443 (minimal_language_data): Delete la_print_type initializer.
8444 (minimal_language::print_type): New member function.
8445 * d-lang.c (d_language_data): Delete la_print_type initializer.
8446 (d_language::print_type): New member function.
8447 * f-lang.c (f_language_data): Delete la_print_type initializer.
8448 (f_language::print_type): New member function.
8449 * go-lang.c (go_language_data): Delete la_print_type initializer.
8450 (go_language::print_type): New member function.
8451 * language.c (unk_lang_print_type): Delete.
8452 (unknown_language_data): Delete la_print_type initializer.
8453 (unknown_language::print_type): New member function.
8454 (auto_language_data): Delete la_print_type initializer.
8455 (auto_language::print_type): New member function.
8456 * language.h (language_data): Delete la_print_type field.
8457 (language_defn::print_type): New function.
8458 (LA_PRINT_TYPE): Update.
8459 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
8460 (m2_language::print_type): New member function.
8461 * objc-lang.c (objc_language_data): Delete la_print_type
8462 initializer.
8463 (objc_language::print_type): New member function.
8464 * opencl-lang.c (opencl_print_type): Delete, implementation moved
8465 to opencl_language::print_type.
8466 (opencl_language_data): Delete la_print_type initializer.
8467 (opencl_language::print_type): New member function, implementation
8468 from opencl_print_type.
8469 * p-lang.c (pascal_language_data): Delete la_print_type
8470 initializer.
8471 (pascal_language::print_type): New member function.
8472 * rust-lang.c (rust_print_type): Delete, implementation moved to
8473 rust_language::print_type.
8474 (rust_language_data): Delete la_print_type initializer.
8475 (rust_language::print_type): New member function, implementation
8476 from rust_print_type.
8477
6f827019
AB
84782020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8479
8480 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
8481 implementation moves to...
8482 (ada_language::sniff_from_mangled_name): ...here. Update return
8483 type.
8484 (ada_language_data): Delete la_sniff_from_mangled_name
8485 initializer.
8486 * c-lang.c (c_language_data): Likewise.
8487 (cplus_language_data): Likewise.
8488 (cplus_language::sniff_from_mangled_name): New member function,
8489 implementation taken from gdb_sniff_from_mangled_name.
8490 (asm_language_data): Delete la_sniff_from_mangled_name
8491 initializer.
8492 (minimal_language_data): Likewise.
8493 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
8494 implementation moves to cplus_language::sniff_from_mangled_name.
8495 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
8496 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
8497 moves to...
8498 (d_language::sniff_from_mangled_name): ...here.
8499 (d_language_data): Delete la_sniff_from_mangled_name initializer.
8500 * f-lang.c (f_language_data): Likewise.
8501 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
8502 moves to...
8503 (go_language::sniff_from_mangled_name): ...here.
8504 (go_language_data): Delete la_sniff_from_mangled_name initializer.
8505 * language.c (language_sniff_from_mangled_name): Delete.
8506 (unknown_language_data): Delete la_sniff_from_mangled_name
8507 initializer.
8508 (auto_language_data): Likewise.
8509 * language.h (language_data): Delete la_sniff_from_mangled_name
8510 field.
8511 (language_defn::sniff_from_mangled_name): New function.
8512 (language_sniff_from_mangled_name): Delete declaration.
8513 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
8514 field.
8515 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
8516 implementation moves to...
8517 (objc_language::sniff_from_mangled_name): ...here.
8518 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
8519 * opencl-lang.c (opencl_language_data): Likewise.
8520 * p-lang.c (pascal_language_data): Likewise.
8521 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
8522 implementation moves to...
8523 (rust_language::sniff_from_mangled_name): ...here.
8524 (rust_language_data): Delete la_sniff_from_mangled_name
8525 initializer.
8526 * symtab.c (symbol_find_demangled_name): Call
8527 sniff_from_mangled_name member function.
8528
fb8006fd
AB
85292020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8530
8531 * ada-lang.c (ada_language_data): Delete la_search_name_hash
8532 initializer.
8533 * c-lang.c (c_language_data): Likewise.
8534 (cplus_language_data): Likewise.
8535 (cplus_language::search_name_hash): New member function.
8536 (asm_language_data): Delete la_search_name_hash initializer.
8537 (minimal_language_data): Likewise.
8538 * d-lang.c (d_language_data): Likewise.
8539 * dictionary.c (default_search_name_hash): Rename to...
8540 (language_defn::search_name_hash): ...this.
8541 * f-lang.c (f_language_data): Likewise.
8542 (f_language::search_name_hash): New member function.
8543 * go-lang.c (go_language_data): Delete la_search_name_hash
8544 initializer.
8545 * language.c (unknown_language_data): Likewise.
8546 (auto_language_data): Likewise.
8547 * language.h (struct language_data): Delete la_search_name_hash
8548 field.
8549 (language_defn::search_name_hash): Declare new member function.
8550 (default_search_name_hash): Delete declaration.
8551 * m2-lang.c (m2_language_data): Delete la_search_name_hash
8552 initializer.
8553 * objc-lang.c (objc_language_data): Likewise.
8554 * opencl-lang.c (opencl_language_data): Likewise.
8555 * p-lang.c (pascal_language_data): Likewise.
8556 * rust-lang.c (rust_language_data): Likewise.
8557 * symtab.c (search_name_hash): Update call.
8558
8e25bafe
AB
85592020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8560
8561 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
8562 initializer.
8563 * c-lang.c (class compile_instance): Declare.
8564 (c_language_data): Delete la_get_compile_instance initializer.
8565 (c_language::get_compile_instance): New member function.
8566 (cplus_language_data): Delete la_get_compile_instance initializer.
8567 (cplus_language::get_compile_instance): New member function.
8568 (asm_language_data): Delete la_get_compile_instance initializer.
8569 (minimal_language_data): Likewise.
8570 * c-lang.h (c_get_compile_context): Update comment.
8571 (cplus_get_compile_context): Update comment.
8572 * compile/compile.c (compile_to_object): Update calls, don't rely
8573 on function pointer being NULL.
8574 * d-lang.c (d_language_data): Delete la_get_compile_instance
8575 initializer.
8576 * f-lang.c (f_language_data): Likewise.
8577 * go-lang.c (go_language_data): Likewise.
8578 * language.c (unknown_language_data): Likewise.
8579 (auto_language_data): Likewise.
8580 * language.h (language_data): Delete la_get_compile_instance field.
8581 (language_defn::get_compile_instance): New member function.
8582 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
8583 initializer.
8584 * objc-lang.c (objc_language_data): Likewise.
8585 * opencl-lang.c (opencl_language_data): Likewise.
8586 * p-lang.c (pascal_language_data): Likewise.
8587 * rust-lang.c (rust_language_data): Likewise.
8588
4009ee92
AB
85892020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8590
8591 * ada-lang.c (ada_add_all_symbols): Update comment.
8592 (ada_iterate_over_symbols): Delete, move implementation to...
8593 (ada_language::iterate_over_symbols): ...here, a new member
8594 function, rewrite to use range based for loop.
8595 (ada_language_data): Delete la_iterate_over_symbols initializer.
8596 * c-lang.c (c_language_data): Likewise.
8597 (cplus_language_data): Likewise.
8598 (asm_language_data): Likewise.
8599 (minimal_language_data): Likewise.
8600 * d-lang.c (d_language_data): Likewise.
8601 * f-lang.c (f_language_data): Likewise.
8602 * go-lang.c (go_language_data): Likewise.
8603 * language.c (unknown_language_data): Likewise.
8604 (auto_language_data): Likewise.
8605 * language.h (language_data): Delete la_iterate_over_symbols field.
8606 (language_defn::iterate_over_symbols): New member function.
8607 (LA_ITERATE_OVER_SYMBOLS): Update.
8608 * linespec.c (iterate_over_all_matching_symtabs): Update.
8609 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
8610 initializer.
8611 * objc-lang.c (objc_language_data): Likewise.
8612 * opencl-lang.c (opencl_language_data): Likewise.
8613 * p-lang.c (pascal_language_data): Likewise.
8614 * rust-lang.c (rust_language_data): Likewise.
8615
54f4ca46
AB
86162020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8617
8618 * ada-lang.c (ada_language_data): Delete
8619 la_lookup_transparent_type initializer.
8620 * c-lang.c (c_language_data): Likewise.
8621 (cplus_language_data): Likewise.
8622 (cplus_language::lookup_transparent_type): New member function.
8623 (asm_language_data): Delete la_lookup_transparent_type
8624 initializer.
8625 (minimal_language_data): Likewise.
8626 * d-lang.c (d_language_data): Likewise.
8627 * f-lang.c (f_language_data): Likewise.
8628 * go-lang.c (go_language_data): Likewise.
8629 * language.c (unknown_language_data): Likewise.
8630 (auto_language_data): Likewise.
8631 * language.h (struct language_data): Delete
8632 la_lookup_transparent_type field.
8633 (language_defn::lookup_transparent_type): New member function.
8634 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
8635 initializer.
8636 * objc-lang.c (objc_language_data): Likewise.
8637 * opencl-lang.c (opencl_language_data): Likewise.
8638 * p-lang.c (pascal_language_data): Likewise.
8639 * rust-lang.c (rust_language_data): Likewise.
8640 * symtab.c (symbol_matches_domain): Update call.
8641
1fb314aa
AB
86422020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8643
8644 * ada-lang.c (ada_language_arch_info): Delete function, move
8645 implementation to...
8646 (ada_language::language_arch_info): ...here, a new member
8647 function.
8648 (ada_language_data): Delete la_language_arch_info.
8649 * c-lang.c (c_language_data): Likewise.
8650 (c_language::language_arch_info): New member function.
8651 (cplus_language_arch_info): Delete function, move
8652 implementation to...
8653 (cplus_language::language_arch_info): ...here, a new member
8654 function.
8655 (cplus_language_data): Delete la_language_arch_info.
8656 (asm_language_data): Likewise.
8657 (asm_language::language_arch_info): New member function.
8658 (minimal_language_data): Delete la_language_arch_info.
8659 (minimal_language::language_arch_info): New member function.
8660 * d-lang.c (d_language_arch_info): Delete function, move
8661 implementation to...
8662 (d_language::language_arch_info): ...here, a new member
8663 function.
8664 (d_language_data): Delete la_language_arch_info.
8665 * f-lang.c (f_language_arch_info): Delete function, move
8666 implementation to...
8667 (f_language::language_arch_info): ...here, a new member
8668 function.
8669 (f_language_data): Delete la_language_arch_info.
8670 * go-lang.c (go_language_arch_info): Delete function, move
8671 implementation to...
8672 (go_language::language_arch_info): ...here, a new member
8673 function.
8674 (go_language_data): Delete la_language_arch_info.
8675 * language.c (unknown_language_data): Likewise.
8676 (unknown_language::language_arch_info): New member function.
8677 (auto_language_data): Delete la_language_arch_info.
8678 (auto_language::language_arch_info): New member function.
8679 (language_gdbarch_post_init): Update call to
8680 la_language_arch_info.
8681 * language.h (language_data): Delete la_language_arch_info
8682 function pointer.
8683 (language_defn::language_arch_info): New function.
8684 * m2-lang.c (m2_language_arch_info): Delete function, move
8685 implementation to...
8686 (m2_language::language_arch_info): ...here, a new member
8687 function.
8688 (m2_language_data): Delete la_language_arch_info.
8689 * objc-lang.c (objc_language_arch_info): Delete function, move
8690 implementation to...
8691 (objc_language::language_arch_info): ...here, a new member
8692 function.
8693 (objc_language_data): Delete la_language_arch_info.
8694 * opencl-lang.c (opencl_language_arch_info): Delete function, move
8695 implementation to...
8696 (opencl_language::language_arch_info): ...here, a new member
8697 function.
8698 (opencl_language_data): Delete la_language_arch_info.
8699 * p-lang.c (pascal_language_arch_info): Delete function, move
8700 implementation to...
8701 (pascal_language::language_arch_info): ...here, a new member
8702 function.
8703 (pascal_language_data): Delete la_language_arch_info.
8704 * rust-lang.c (rust_language_arch_info): Delete function, move
8705 implementation to...
8706 (rust_language::language_arch_info): ...here, a new member
8707 function.
8708 (rust_language_data): Delete la_language_arch_info.
8709
48448202
AB
87102020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8711
8712 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
8713 initializer.
8714 * c-lang.c (c_language_data): Likewise.
8715 (cplus_language_data): Likewise.
8716 (cplus_language::pass_by_reference_info): New method.
8717 (asm_language_data): Delete la_pass_by_reference initializer.
8718 (minimal_language_data): Likewise.
8719 * cp-abi.c (cp_pass_by_reference): Remove use of
8720 default_pass_by_reference.
8721 * d-lang.c (d_language_data): Likewise.
8722 * f-lang.c (f_language_data): Likewise.
8723 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
8724 default_pass_by_reference.
8725 * go-lang.c (go_language_data): Likewise.
8726 * language.c (language_pass_by_reference): Update.
8727 (default_pass_by_reference): Delete.
8728 (unknown_language_data): Delete la_pass_by_reference
8729 initializer.
8730 (auto_language_data): Likewise.
8731 * language.h (struct language_data): Delete la_pass_by_reference
8732 field.
8733 (language_defn::pass_by_reference_info): New member function.
8734 (default_pass_by_reference): Delete declaration.
8735 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
8736 initializer.
8737 * objc-lang.c (objc_language_data): Likewise.
8738 * opencl-lang.c (opencl_language_data): Likewise.
8739 * p-lang.c (pascal_language_data): Likewise.
8740 * rust-lang.c (rust_language_data): Likewise.
8741
15e5fd35
AB
87422020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8743
8744 * ada-lang.c (ada_read_var_value): Delete function, move
8745 implementation to...
8746 (ada_language::read_var_value): ...here.
8747 (ada_language_data): Delete la_read_var_value initializer.
8748 * c-lang.c (c_language_data): Likewise.
8749 (cplus_language_data): Likewise.
8750 (minimal_language_data): Likewise.
8751 * d-lang.c (d_language_data): Likewise.
8752 * f-lang.c (f_language_data): Likewise.
8753 * findvar.c (default_read_var_value): Rename to...
8754 (language_defn::read_var_value): ...this.
8755 * findvar.c (read_var_value): Update header comment, and change to
8756 call member function instead of function pointer.
8757 * go-lang.c (go_language_data): Likewise.
8758 * language.c (unknown_language_data): Delete la_read_var_value
8759 initializer.
8760 (auto_language_data): Likewise.
8761 * language.h (struct language_data): Delete la_read_var_value
8762 field.
8763 (language_defn::read_var_value): New member function.
8764 (default_read_var_value): Delete declaration.
8765 * m2-lang.c (m2_language_data): Delete la_read_var_value
8766 initializer.
8767 * objc-lang.c (objc_language_data): Likewise.
8768 * opencl-lang.c (opencl_language_data): Likewise.
8769 * p-lang.c (pascal_language_data): Likewise.
8770 * rust-lang.c (rust_language_data): Likewise.
8771 * value.h (default_read_var_value): Delete declaration.
8772
5bd40f2a
AB
87732020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8774
8775 * ada-lang.c (ada_print_array_index): Delete function, move
8776 implementation to...
8777 (ada_language::print_array_index): ...here.
8778 (ada_language_data): Delete la_print_array_index initializer.
8779 * c-lang.c (c_language_data): Likewise.
8780 (cplus_language_data): Likewise.
8781 (minimal_language_data): Likewise.
8782 * d-lang.c (d_language_data): Likewise.
8783 * f-lang.c (f_language_data): Likewise.
8784 * go-lang.c (go_language_data): Likewise.
8785 * language.c (default_print_array_index): Delete function, move
8786 implementation to...
8787 (language_defn::print_array_index): ...here.
8788 (unknown_language_data): Delete la_print_array_index initializer.
8789 (auto_language_data): Likewise.
8790 * language.h (struct language_data): Delete la_print_array_index
8791 field.
8792 (language_defn::print_array_index): New member function.
8793 (LA_PRINT_ARRAY_INDEX): Update.
8794 (default_print_array_index): Delete declaration.
8795 * m2-lang.c (m2_language_data): Delete la_print_array_index
8796 initializer.
8797 * objc-lang.c (objc_language_data): Likewise.
8798 * opencl-lang.c (opencl_language_data): Likewise.
8799 * p-lang.c (pascal_language_data): Likewise.
8800 * rust-lang.c (rust_language_data): Likewise.
8801
0874fd07
AB
88022020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8803
8804 * gdb/ada-lang.c (ada_language_defn): Convert to...
8805 (ada_language_data): ...this.
8806 (class ada_language): New class.
8807 (ada_language_defn): New static global.
8808 * gdb/c-lang.c (c_language_defn): Convert to...
8809 (c_language_data): ...this.
8810 (class c_language): New class.
8811 (c_language_defn): New static global.
8812 (cplus_language_defn): Convert to...
8813 (cplus_language_data): ...this.
8814 (class cplus_language): New class.
8815 (cplus_language_defn): New static global.
8816 (asm_language_defn): Convert to...
8817 (asm_language_data): ...this.
8818 (class asm_language): New class.
8819 (asm_language_defn): New static global.
8820 (minimal_language_defn): Convert to...
8821 (minimal_language_data): ...this.
8822 (class minimal_language): New class.
8823 (minimal_language_defn): New static global.
8824 * gdb/d-lang.c (d_language_defn): Convert to...
8825 (d_language_data): ...this.
8826 (class d_language): New class.
8827 (d_language_defn): New static global.
8828 * gdb/f-lang.c (f_language_defn): Convert to...
8829 (f_language_data): ...this.
8830 (class f_language): New class.
8831 (f_language_defn): New static global.
8832 * gdb/go-lang.c (go_language_defn): Convert to...
8833 (go_language_data): ...this.
8834 (class go_language): New class.
8835 (go_language_defn): New static global.
8836 * gdb/language.c (unknown_language_defn): Remove declaration.
8837 (current_language): Initialize to nullptr, real initialization is
8838 moved to _initialize_language.
8839 (languages): Delete global.
8840 (language_defn::languages): Define.
8841 (set_language_command): Use language_defn::languages.
8842 (set_language): Likewise.
8843 (range_error): Likewise.
8844 (language_enum): Likewise.
8845 (language_def): Likewise.
8846 (add_set_language_command): Use language_def::languages for the
8847 language list, and language_def to lookup language pointers.
8848 (skip_language_trampoline): Use language_defn::languages.
8849 (unknown_language_defn): Convert to...
8850 (unknown_language_data): ...this.
8851 (class unknown_language): New class.
8852 (unknown_language_defn): New static global.
8853 (auto_language_defn): Convert to...
8854 (auto_language_data): ...this.
8855 (class auto_language): New class.
8856 (auto_language_defn): New static global.
8857 (language_gdbarch_post_init): Use language_defn::languages.
8858 (_initialize_language): Initialize current_language.
8859 * gdb/language.h (struct language_defn): Rename to...
8860 (struct language_data): ...this.
8861 (struct language_defn): New.
8862 (auto_language_defn): Delete.
8863 (unknown_language_defn): Delete.
8864 (minimal_language_defn): Delete.
8865 (ada_language_defn): Delete.
8866 (asm_language_defn): Delete.
8867 (c_language_defn): Delete.
8868 (cplus_language_defn): Delete.
8869 (d_language_defn): Delete.
8870 (f_language_defn): Delete.
8871 (go_language_defn): Delete.
8872 (m2_language_defn): Delete.
8873 (objc_language_defn): Delete.
8874 (opencl_language_defn): Delete.
8875 (pascal_language_defn): Delete.
8876 (rust_language_defn): Delete.
8877 * gdb/m2-lang.c (m2_language_defn): Convert to...
8878 (m2_language_data): ...this.
8879 (class m2_language): New class.
8880 (m2_language_defn): New static global.
8881 * gdb/objc-lang.c (objc_language_defn): Convert to...
8882 (objc_language_data): ...this.
8883 (class objc_language): New class.
8884 (objc_language_defn): New static global.
8885 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
8886 (opencl_language_data): ...this.
8887 (class opencl_language): New class.
8888 (opencl_language_defn): New static global.
8889 * gdb/p-lang.c (pascal_language_defn): Convert to...
8890 (pascal_language_data): ...this.
8891 (class pascal_language): New class.
8892 (pascal_language_defn): New static global.
8893 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
8894 language pointer, update comment format.
8895 * gdb/rust-lang.c (rust_language_defn): Convert to...
8896 (rust_language_data): ...this.
8897 (class rust_language): New class.
8898 (rust_language_defn): New static global.
8899
1313c56e
AB
89002020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
8901
8902 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
8903 member variable.
8904 <m_stmt_at_address>: New member variable.
8905 (lnp_state_machine::record_line): Don't record some lines, update
8906 tracking of is_stmt at the same address.
8907 (lnp_state_machine::lnp_state_machine): Initialise new member
8908 variables.
8909
b7ed9f3d
ST
89102020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
8911
8912 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
8913 "-include gnu-nat-mig.h".
8914 * gnu-nat-mig.h: New file.
8915 * gnu-nat.c: Include "gnu-nat-mig.h".
8916 (exc_server, msg_reply_server, notify_server,
8917 process_reply_server): Remove declarations.
8918
14a8ad62
ST
89192020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8920
8921 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
8922 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
8923 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
8924 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
8925 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
8926 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
8927 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
8928 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
8929 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
8930 to gnu_nat_target class.
8931 * gnu-nat.c: Likewise.
8932 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
8933 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
8934 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
8935 object.
8936 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
8937 instead of `gnu_target'.
8938
0af5e106
ST
89392020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8940
8941 * i386-gnu-tdep.c: Include "gdbcore.h"
8942 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
8943 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
8944 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
8945 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
8946 i386_gnu_sigcontext_addr): New functions
8947 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
8948 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
8949 tdep.
8950
078f2fc9
ST
89512020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8952
8953 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
8954 before fork_inferior call. Avoid calling it if target_is_pushed returns
8955 true.
8956
53dff92c
ST
89572020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8958
8959 * gnu-nat.h (gnu_target): New variable declaration.
8960 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
8961 gnu_target.
8962 * gnu-nat.c (gnu_target): New variable.
8963 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
8964 add_thread_silent, and add_thread calls.
8965 (gnu_nat_target::create_inferior): Pass gnu_target to
8966 add_thread_silent, thread_change_ptid call.
8967 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
8968 call.
8969
5a8b8627
ST
89702020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8971
8972 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
8973 (gnu_nat_target::find_memory_regions): Remove unused
8974 `old_address' variable.
8975
366f550a
ST
89762020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8977
8978 * gnu-nat.c: Include "gdbarch.h".
8979
f14871bf
ST
89802020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8981
8982 * reply_mig_hack.awk (Error return): Cast function through
8983 void *, to bypass compiler function call check.
8984
c6887cfb
ST
89852020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8986
8987 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
8988 $(srcdir)/reply_mig_hack.awk.
8989
6930bffe
ST
89902020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8991
8992 * gnu-nat.h (gnu_debug_flag): Set type to bool.
8993
112c22ed
JG
89942020-05-30 Jonny Grant <jg@jguk.org>
8995
8996 * configure.ac (ACX_BUGURL): change bug URL to https.
8997
f68f85b5
PA
89982020-05-30 Pedro Alves <palves@redhat.com>
8999
9000 * cp-support.c (replace_typedefs_template): New.
9001 (replace_typedefs_qualified_name): Handle
9002 DEMANGLE_COMPONENT_TEMPLATE.
9003
976ca316
SM
90042020-05-29 Simon Marchi <simon.marchi@efficios.com>
9005
9006 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
9007 dwarf2/index-cache.h, dwarf2/index-write.c,
9008 dwarf2/index-write.h, dwarf2/line-header.c,
9009 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
9010 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
9011 variables and fields from `dwarf2_per_objfile` to just
9012 `per_objfile` throughout.
9013
989ade05
SM
90142020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
9015
9016 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9017 <push_dwarf_reg_entry_value>: Add comment.
9018
c47bae85
KB
90192020-05-28 Kevin Buettner <kevinb@redhat.com>
9020 Keith Seitz <keiths@redhat.com>
9021
9022 * python/python.c (do_start_initialization): Call PyEval_SaveThread
9023 instead of PyEval_ReleaseLock.
9024 (class gdbpy_gil): Move to earlier in file.
9025 (finalize_python): Set gdb_python_initialized.
9026 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
9027 when not initialized.
9028
44486dcf
SM
90292020-05-28 Simon Marchi <simon.marchi@efficios.com>
9030
9031 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9032 <push_dwarf_reg_entry_value>: Remove assert. Override
9033 per_objfile with caller_per_objfile.
9034
f030440d
TV
90352020-05-28 Tom de Vries <tdevries@suse.de>
9036
9037 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
9038 PR gold/15646 workaround to symbol kind "type".
9039
f0fbb768
TT
90402020-05-27 Tom Tromey <tromey@adacore.com>
9041
9042 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
9043
af0b2a3e
TT
90442020-05-27 Tom Tromey <tromey@adacore.com>
9045
9046 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
9047 Use htab_find_with_hash.
9048 <add_abbrev>: Remove "abbrev_number" parameter.
9049 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
9050 "abbrev_number" parameter. Use htab_find_slot_with_hash.
9051 (hash_abbrev): Add comment.
9052 (abbrev_table::lookup_abbrev): Move to header file.
9053 (abbrev_table::read): Update.
9054
7d00ffec
TT
90552020-05-27 Tom Tromey <tromey@adacore.com>
9056
9057 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
9058 method.
9059 <canonical_name>: New member.
9060 <raw_name>: Rename from "name".
9061 (partial_die_info): Initialize canonical_name.
9062 (scan_partial_symbols): Check raw_name.
9063 (partial_die_parent_scope, partial_die_full_name)
9064 (add_partial_symbol, add_partial_subprogram)
9065 (add_partial_enumeration, load_partial_dies): Use "name" method.
9066 (partial_die_info::name): New method.
9067 (partial_die_info::read, guess_partial_die_structure_name)
9068 (partial_die_info::fixup): Update.
9069
697bba18
TT
90702020-05-27 Tom Tromey <tromey@adacore.com>
9071
9072 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
9073 <get_ref_die_offset>: Inline.
9074 <get_ref_die_offset_complaint>: New method.
9075 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
9076 (attribute::get_ref_die_offset_complaint): Rename from
9077 get_ref_die_offset. Just issue complaint.
9078
c17ace43
HD
90792020-05-27 Hannes Domani <ssbssa@yahoo.de>
9080
9081 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
9082
96445f0b
HD
90832020-05-27 Hannes Domani <ssbssa@yahoo.de>
9084
9085 * exec.c (exec_file_attach): Use errno value of first openp failure.
9086
ac637ec3
HD
90872020-05-27 Hannes Domani <ssbssa@yahoo.de>
9088
9089 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
9090 Don't close thread handle.
9091
17ee85fc
TT
90922020-05-27 Tom Tromey <tom@tromey.com>
9093 Simon Marchi <simon.marchi@efficios.com>
9094
9095 * objfiles.h (struct objfile) <partial_symtabs>: Now a
9096 shared_ptr.
9097 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
9098 member.
9099 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
9100 dwarf2_per_bfd_objfile_data_key>: New globals.
9101 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
9102 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
9103 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
9104 shared.
9105 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
9106 short-circuit when sharing.
9107 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
9108 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
9109
39b16f87
SM
91102020-05-27 Simon Marchi <simon.marchi@efficios.com>
9111
9112 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
9113 to...
9114 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
9115 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
9116
fcf23d5b
SM
91172020-05-27 Simon Marchi <simon.marchi@efficios.com>
9118
9119 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
9120 build_name_components, find_name_components_bounds>:
9121 Add per_objfile parameter.
9122 (struct mapped_index) <symbol_name_at>: Likewise.
9123 (struct mapped_debug_names): Remove constructor.
9124 <dwarf2_per_objfile>: Remove field.
9125 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
9126 (mapped_index_base::find_name_components_bounds,
9127 mapped_index_base::build_name_components,
9128 dw2_expand_symtabs_matching_symbol): Likewise.
9129 (class mock_mapped_index) <symbol_name_at>: Likewise.
9130 (check_match): Likewise.
9131 (check_find_bounds_finds): Likewise.
9132 (test_mapped_index_find_name_component_bounds): Update.
9133 (CHECK_MATCH): Update.
9134 (dw2_expand_symtabs_matching): Update.
9135 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
9136 per_objfile parameter.
9137 <find_vec_in_debug_names>: Likewise.
9138 <m_per_objfile>: New field.
9139 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
9140 parameter.
9141 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
9142 (dw2_debug_names_iterator::next): Update.
9143 (dw2_debug_names_lookup_symbol): Update.
9144 (dw2_debug_names_expand_symtabs_for_function): Update.
9145 (dw2_debug_names_map_matching_symbols): Update.
9146 (dw2_debug_names_expand_symtabs_matching): Update.
9147 (dwarf2_read_debug_names): Update.
9148
7188ed02
SM
91492020-05-27 Simon Marchi <simon.marchi@efficios.com>
9150
9151 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
9152 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
9153 move to dwarf2_per_objfile.
9154 <read_in_chain>: Remove.
9155 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
9156 remove_all_cus, age_comp_units>: New methods.
9157 <m_dwarf2_cus>: New member.
9158 (struct dwarf2_per_cu_data) <cu>: Remove.
9159 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
9160 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
9161 moved to methods of dwarf2_per_objfile.
9162 (dwarf2_clear_marks): Remove.
9163 (dwarf2_queue_item::~dwarf2_queue_item): Update.
9164 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
9165 (dwarf2_per_bfd::free_cached_comp_units): Remove.
9166 (dwarf2_per_objfile::remove_all_cus): New.
9167 (class free_cached_comp_units) <~free_cached_comp_units>:
9168 Update.
9169 (load_cu): Update.
9170 (dw2_do_instantiate_symtab): Adjust.
9171 (fill_in_sig_entry_from_dwo_entry): Adjust.
9172 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9173 (cutu_reader::cutu_reader): Likewise.
9174 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
9175 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
9176 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
9177 and dwarf2_per_objfile::age_comp_units.
9178 (load_partial_comp_unit): Update.
9179 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
9180 (process_queue): Likewise.
9181 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
9182 backlink.
9183 (dwarf2_read_addr_index): Likewise.
9184 (follow_die_offset): Likewise.
9185 (dwarf2_fetch_die_loc_sect_off): Likewise.
9186 (dwarf2_fetch_constant_bytes): Likewise.
9187 (dwarf2_fetch_die_type_sect_off): Likewise.
9188 (follow_die_sig_1): Likewise.
9189 (load_full_type_unit): Likewise.
9190 (read_signatured_type): Likewise.
9191 (dwarf2_cu::dwarf2_cu): Don't set cu field.
9192 (dwarf2_cu::~dwarf2_cu): Remove.
9193 (dwarf2_per_objfile::get_cu): New.
9194 (dwarf2_per_objfile::set_cu): New.
9195 (age_cached_comp_units): Rename to...
9196 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
9197 to std::unordered_map.
9198 (free_one_cached_comp_unit): Rename to...
9199 (dwarf2_per_objfile::remove_cu): ... this. Adjust
9200 to std::unordered_map.
9201 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
9202 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
9203 a dwarf2_per_objfile in data.
9204 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
9205 (dwarf2_clear_marks): Remove.
9206
2e671100
SM
92072020-05-27 Simon Marchi <simon.marchi@efficios.com>
9208
9209 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
9210 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
9211 (init_tu_and_read_dwo_dies): Likewise.
9212 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
9213 (cutu_reader::cutu_reader): Likewise.
9214 (load_partial_comp_unit): Likewise.
9215 (process_psymtab_comp_unit): Update.
9216 (build_type_psymtabs_1): Update.
9217 (process_skeletonless_type_unit): Update.
9218 (load_full_comp_unit): Update.
9219 (find_partial_die): Update.
9220 (dwarf2_read_addr_index): Update.
9221 (read_signatured_type): Update.
9222
2e6a9f79
SM
92232020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9224
9225 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
9226 m_header_read_in>: New fields.
9227 <get_header>: New method.
9228 * dwarf2/read.c (per_cu_header_read_in): Remove.
9229 (dwarf2_per_cu_data::get_header): New.
9230 (dwarf2_per_cu_data::addr_size): Update.
9231 (dwarf2_per_cu_data::offset_size): Update.
9232 (dwarf2_per_cu_data::ref_addr_size): Update.
9233
1b555f17
SM
92342020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9235
9236 * dwarf2/read.c (load_cu): Return dwarf2_cu.
9237 (dw2_do_instantiate_symtab): Update.
9238 (queue_and_load_all_dwo_tus): Change parameter from
9239 dwarf2_per_cu_data to dwarf2_cu.
9240 (dwarf2_fetch_die_loc_sect_off): Update.
9241 (dwarf2_fetch_constant_bytes): Update.
9242 (dwarf2_fetch_die_type_sect_off): Update.
9243
8fc0b21d
SM
92442020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9245
9246 * dwarf2/read.c (process_full_comp_unit,
9247 process_full_type_unit): Remove per_cu, per_objfile paramters.
9248 Add dwarf2_cu parameter.
9249 (process_queue): Update.
9250
168c9250
SM
92512020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9252
9253 * dwarf2/read.c (create_cu_from_index_list): Replace
9254 dwarf2_per_objfile parameter with dwarf2_per_bfd.
9255 (create_cus_from_index_list): Likewise.
9256 (create_cus_from_index): Likewise.
9257 (create_signatured_type_table_from_index): Likewise.
9258 (create_cus_from_debug_names_list): Likewise.
9259 (create_cus_from_debug_names): Likewise.
9260 (dwarf2_read_gdb_index): Update.
9261 (dwarf2_read_debug_names): Update.
9262
e286671b
TT
92632020-05-27 Tom Tromey <tom@tromey.com>
9264 Simon Marchi <simon.marchi@efficios.com>
9265
9266 * dwarf2/read.h (struct dwarf2_per_objfile)
9267 <get_type_for_signatured_type, set_type_for_signatured_type>:
9268 New methods.
9269 <m_type_map>: New member.
9270 (struct signatured_type) <type>: Remove.
9271 * dwarf2/read.c
9272 (dwarf2_per_objfile::get_type_for_signatured_type,
9273 dwarf2_per_objfile::set_type_for_signatured_type): New.
9274 (get_signatured_type): Use new methods.
9275
8adb8487
TT
92762020-05-27 Tom Tromey <tom@tromey.com>
9277 Simon Marchi <simon.marchi@efficios.com>
9278
9279 * dwarf2/read.h (struct type_unit_group_unshareable): New.
9280 (struct dwarf2_per_objfile) <type_units>: New member.
9281 <get_type_unit_group_unshareable>: New method.
9282 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
9283 num_symtabs, symtabs>: Remove; move to
9284 type_unit_group_unshareable.
9285 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
9286 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
9287 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
9288
127bbf4b
SM
92892020-05-27 Simon Marchi <simon.marchi@efficios.com>
9290
9291 * dwarf2/read.h (struct dwarf2_per_cu_data):
9292 <dwarf2_per_objfile>: Remove.
9293 * dwarf2/read.c (create_cu_from_index_list): Don't assign
9294 dwarf2_per_objfile.
9295 (create_signatured_type_table_from_index): Likewise.
9296 (create_signatured_type_table_from_debug_names): Likewise.
9297 (create_debug_type_hash_table): Likewise.
9298 (fill_in_sig_entry_from_dwo_entry): Likewise.
9299 (create_type_unit_group): Likewise.
9300 (read_comp_units_from_section): Likewise.
9301 (create_cus_hash_table): Likewise.
9302
f6e649dd
SM
93032020-05-27 Simon Marchi <simon.marchi@efficios.com>
9304
9305 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
9306 dwarf2_per_cu_data::dwarf2_per_objfile.
9307 (compute_compunit_symtab_includes): Likewise.
9308 (dwarf2_cu::start_symtab): Likewise.
9309
aa66c379
SM
93102020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9311
9312 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
9313 parameter.
9314 * dwarf2/read.c (get_die_type_at_offset): Likewise.
9315 (read_namespace_alias): Update.
9316 (lookup_die_type): Update.
9317 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
9318 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
9319 Update.
9320 (disassemble_dwarf_expression): Update.
9321
120ce1b5
SM
93222020-05-27 Simon Marchi <simon.marchi@efficios.com>
9323
9324 * dwarf2/read.h (struct dwarf2_queue_item): Add
9325 dwarf2_per_objfile parameter, assign new parameter.
9326 <per_objfile>: New field.
9327 * dwarf2/read.c (free_one_cached_comp_unit): Add
9328 dwarf2_per_objfile parameter.
9329 (queue_comp_unit): Likewise.
9330 (dw2_do_instantiate_symtab): Update.
9331 (process_psymtab_comp_unit): Update.
9332 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
9333 (process_imported_unit_die): Update.
9334 (queue_and_load_dwo_tu): Update.
9335 (follow_die_offset): Update.
9336 (follow_die_sig_1): Update.
9337
9f47c707
SM
93382020-05-27 Simon Marchi <simon.marchi@efficios.com>
9339
9340 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
9341 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
9342 (read_call_site_scope): Assign per_objfile.
9343 (dwarf2_per_cu_data::objfile): Remove.
9344 * gdbtypes.h (struct call_site) <per_objfile>: New member.
9345 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
9346 dwarf2_per_objfile parameter.
9347 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
9348 dwarf2_per_objfile parameter.
9349 (dwarf_expr_reg_to_entry_parameter): Add output
9350 dwarf2_per_objfile parameter.
9351 (locexpr_get_frame_base): Update.
9352 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
9353 <push_dwarf_reg_entry_value>: Update.
9354 <call_site_to_target_addr>: Update.
9355 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
9356 parameter.
9357 (value_of_dwarf_reg_entry): Update.
9358 (rw_pieced_value): Update.
9359 (indirect_synthetic_pointer): Update.
9360 (dwarf2_evaluate_property): Update.
9361 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
9362 parameter.
9363 (locexpr_read_variable): Update.
9364 (locexpr_get_symbol_read_needs): Update.
9365 (loclist_read_variable): Update.
9366
14095eb3
SM
93672020-05-27 Simon Marchi <simon.marchi@efficios.com>
9368
9369 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9370 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9371 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9372 parameter.
9373 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9374 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9375 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9376 parameter.
9377 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
9378 sect_variable_value): Add dwarf2_per_objfile parameter.
9379 (class dwarf_evaluate_loc_desc) <dwarf_call,
9380 dwarf_variable_value>: Update.
9381 (fetch_const_value_from_synthetic_pointer): Add
9382 dwarf2_per_objfile parameter.
9383 (fetch_const_value_from_synthetic_pointer): Update.
9384 (coerced_pieced_ref): Update.
9385 (class symbol_needs_eval_context) <dwarf_call,
9386 dwarf_variable_value>: Update.
9387 (dwarf2_compile_expr_to_ax): Update.
9388
3c3cd3d4
SM
93892020-05-27 Simon Marchi <simon.marchi@efficios.com>
9390
9391 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
9392 parameter.
9393 (dwarf2_evaluate_loc_desc_full): Update.
9394
82ca3f51
SM
93952020-05-27 Simon Marchi <simon.marchi@efficios.com>
9396
9397 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
9398 parameter.
9399 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
9400 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
9401 dwarf2_per_objfile parameter.
9402 (decode_debug_loc_dwo_addresses): Likewise.
9403 (dwarf2_find_location_expression): Update.
9404 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
9405 (locexpr_describe_location_piece): Add dwarf2_per_objfile
9406 parameter.
9407 (disassemble_dwarf_expression): Add dwarf2_per_objfile
9408 parameter.
9409 (locexpr_describe_location_1): Likewise.
9410 (locexpr_describe_location): Update.
9411
4b167ea1
SM
94122020-05-27 Simon Marchi <simon.marchi@efficios.com>
9413
9414 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
9415 Remove.
9416 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
9417 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
9418 (dwarf2_compile_property_to_c): Update.
9419 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
9420 use text offset from objfile.
9421 (locexpr_tracepoint_var_ref): Update.
9422 (locexpr_generate_c_location): Update.
9423 (loclist_describe_location): Update.
9424 (loclist_tracepoint_var_ref): Update.
9425 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
9426 dwarf2_per_objfile parameter.
9427 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
9428 use text offset from objfile.
9429 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
9430
89b07335
SM
94312020-05-27 Simon Marchi <simon.marchi@efficios.com>
9432
9433 * dwarf2/expr.h (struct dwarf_expr_context)
9434 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
9435 <offset>: Remove.
9436 <per_objfile>: New member.
9437 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
9438 dwarf2_per_objfile parameter. Don't set offset, set
9439 per_objfile.
9440 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
9441 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
9442 a dwarf2_per_objfile object instead of an offset.
9443 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
9444 constructor.
9445 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
9446 to dwarf2_expr_executor constructor. Don't set offset.
9447 (dwarf2_fetch_cfa_info): Update.
9448 (struct dwarf2_frame_cache) <text_offset>: Remove.
9449 <per_objfile>: New field.
9450 (dwarf2_frame_cache): Update.
9451 (dwarf2_frame_prev_register): Update.
9452 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9453 <dwarf_evaluate_loc_desc>: Add constructor.
9454 (dwarf2_evaluate_loc_desc_full): Update.
9455 (dwarf2_locexpr_baton_eval): Update.
9456 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
9457 Add constructor.
9458 (dwarf2_loc_desc_get_symbol_read_needs): Update.
9459
293e7e51
SM
94602020-05-27 Simon Marchi <simon.marchi@efficios.com>
9461
9462 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
9463 addr_sized_int_type>: Move to dwarf2_cu.
9464 <int_type>: Move to dwarf2_per_objfile.
9465 (struct dwarf2_per_objfile) <int_type>: Move here.
9466 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
9467 addr_sized_int_type>: Move here.
9468 (read_func_scope): Update.
9469 (read_array_type): Update.
9470 (read_tag_string_type): Update.
9471 (attr_to_dynamic_prop): Update.
9472 (dwarf2_per_cu_data::int_type): Rename to...
9473 (dwarf2_per_objfile::int_type): ... this.
9474 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
9475 (dwarf2_cu::addr_sized_int_type): ... this.
9476 (read_subrange_type): Update.
9477 (dwarf2_per_cu_data::addr_type): Rename to...
9478 (dwarf2_cu::addr_type): ... this.
9479 (set_die_type): Update.
9480
64874a40
SM
94812020-05-27 Simon Marchi <simon.marchi@efficios.com>
9482
9483 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
9484 data through per_cu->cu.
9485
4ab09049
SM
94862020-05-27 Simon Marchi <simon.marchi@efficios.com>
9487
9488 * dwarf2/read.c (lookup_dwo_comp_unit): Change
9489 dwarf2_per_cu_data parameter fo dwarf2_cu.
9490 (lookup_dwo_type_unit): Likewise.
9491 (read_cutu_die_from_dwo): Likewise.
9492 (lookup_dwo_unit): Likewise.
9493 (open_and_init_dwo_file): Likewise.
9494 (lookup_dwo_cutu): Likewise.
9495 (lookup_dwo_comp_unit): Likewise.
9496 (lookup_dwo_type_unit): Likewise.
9497 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9498 (cutu_reader::cutu_reader): Update.
9499
47b14e86
SM
95002020-05-27 Simon Marchi <simon.marchi@efficios.com>
9501
9502 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
9503 parameter.
9504 (process_full_type_unit): Likewise.
9505 (process_queue): Update.
9506
43182c09
SM
95072020-05-27 Simon Marchi <simon.marchi@efficios.com>
9508
9509 * dwarf2/read.c (recursively_compute_inclusions): Add
9510 dwarf2_per_objfile parameter.
9511 (compute_compunit_symtab_includes): Likewise.
9512 (process_cu_includes): Update.
9513
7aa104c4
SM
95142020-05-27 Simon Marchi <simon.marchi@efficios.com>
9515
9516 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
9517 parameter.
9518 (create_type_unit_group): Update.
9519 (process_psymtab_comp_unit_reader): Update.
9520 (build_type_psymtabs_reader): Update.
9521
e3beb21d
SM
95222020-05-27 Simon Marchi <simon.marchi@efficios.com>
9523
9524 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
9525 object through m_this_cu->cu.
9526
d460f660
SM
95272020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9528
9529 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
9530 the info parameter.
9531 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
9532
ab432490
SM
95332020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9534
9535 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
9536 per_objfile parameter.
9537 (load_full_type_unit): Add per_objfile parameter.
9538 (read_signatured_type): Likewise.
9539 (load_full_comp_unit): Likewise.
9540 (load_cu): Likewise.
9541 (dw2_do_instantiate_symtab): Likewise.
9542 (dw2_get_file_names): Likewise.
9543 (dw2_map_symtabs_matching_filename): Update.
9544 (dw_expand_symtabs_matching_file_matcher): Update.
9545 (dw2_map_symbol_filenames): Update.
9546 (process_psymtab_comp_unit): Add per_objfile parameter.
9547 (build_type_psymtabs_1): Update.
9548 (process_skeletonless_type_unit): Update.
9549 (dwarf2_build_psymtabs_hard): Update.
9550 (load_partial_comp_unit): Add per_objfile parameter.
9551 (scan_partial_symbols): Update.
9552 (load_full_comp_unit): Add per_objfile parameter.
9553 (process_imported_unit_die): Update.
9554 (create_cus_hash_table): Update.
9555 (find_partial_die): Update.
9556 (dwarf2_read_addr_index): Update.
9557 (follow_die_offset): Update.
9558 (dwarf2_fetch_die_loc_sect_off): Update.
9559 (dwarf2_fetch_constant_bytes): Update.
9560 (dwarf2_fetch_die_type_sect_off): Update.
9561 (follow_die_sig_1): Update.
9562 (load_full_type_unit): Add per_objfile parameter.
9563 (read_signatured_type): Likewise.
9564
313bad1b
SM
95652020-05-27 Simon Marchi <simon.marchi@efficios.com>
9566
9567 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
9568 of objfile_name.
9569
c3699833
SM
95702020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9571
9572 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
9573 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9574 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
9575 field.
9576 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9577 (create_cus_from_index): Update.
9578 (dwarf2_read_gdb_index): Update.
9579 (create_cus_from_debug_names): Update.
9580 (dwarf2_read_debug_names): Update.
9581 (get_abbrev_section_for_cu): Update.
9582 (create_all_comp_units): Update.
9583 (read_attribute_value): Update.
9584 (get_debug_line_section): Update.
9585 * dwarf2/index-cache.c (index_cache::store): Update.
9586 * dwarf2/index-write.c (save_gdb_index_command): Update.
9587 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
9588
1859c670
SM
95892020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9590
9591 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
9592 member.
9593 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
9594 dwarf2_per_cu_data::per_bfd.
9595 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
9596 (create_type_unit_group): Likewise.
9597 (queue_comp_unit): Remove reference to
9598 per_cu->dwarf2_per_objfile.
9599 (maybe_queue_comp_unit): Likewise.
9600 (fill_in_sig_entry_from_dwo_entry): Assign new field.
9601 (create_cus_hash_table): Assign new field.
9602
5e22e966
SM
96032020-05-27 Simon Marchi <simon.marchi@efficios.com>
9604
9605 * dwarf2/read.c: Replace
9606 dwarf2_cu->per_cu->dwarf2_per_objfile references with
9607 dwarf2_cu->per_objfile throughout.
9608
97a1449a
SM
96092020-05-27 Simon Marchi <simon.marchi@efficios.com>
9610
9611 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
9612 parameter, don't use per_cu->dwarf2_per_objfile.
9613 (dw2_instantiate_symtab): Likewise.
9614 (dw2_find_last_source_symtab): Update.
9615 (dw2_map_expand_apply): Update.
9616 (dw2_lookup_symbol): Update.
9617 (dw2_expand_symtabs_for_function): Update.
9618 (dw2_expand_all_symtabs): Update.
9619 (dw2_expand_symtabs_with_fullname): Update.
9620 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
9621 don't use per_cu->dwarf2_per_objfile.
9622 (dw2_expand_marked_cus): Update.
9623 (dw2_find_pc_sect_compunit_symtab): Update.
9624 (dw2_debug_names_lookup_symbol): Update.
9625 (dw2_debug_names_expand_symtabs_for_function): Update.
9626 (dw2_debug_names_map_matching_symbols): Update.
9627 (dwarf2_psymtab::expand_psymtab): Update.
9628
9e021579
SM
96292020-05-27 Simon Marchi <simon.marchi@efficios.com>
9630
9631 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
9632 <per_objfile>: New member.
9633 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
9634 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
9635 call to dwarf2_cu.
9636 (cutu_reader::cutu_reader): Update.
9637 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
9638
ae090bdb
SM
96392020-05-27 Simon Marchi <simon.marchi@efficios.com>
9640
9641 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
9642 struct dwarf2_per_objfile.
9643 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
9644 dwarf2_per_bfd.
9645 * dwarf2/read.c (set_die_type): Update.
9646 (get_die_type_at_offset): Update.
9647
af758d11
SM
96482020-05-27 Tom Tromey <tom@tromey.com>
9649 Simon Marchi <simon.marchi@efficios.com>
9650
9651 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
9652 method.
9653 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
9654 get_symtab, set_symtab>: New methods.
9655 <m_symtabs>: New field.
9656 (struct dwarf2_psymtab): Derive from partial_symtab.
9657 <readin_p, get_compunit_symtab>: Declare methods.
9658 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
9659 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
9660 New methods.
9661 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
9662 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
9663 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
9664 (dw2_symtab_iter_next, dw2_print_stats)
9665 (dw2_expand_symtabs_with_fullname)
9666 (dw2_expand_symtabs_matching_one)
9667 (dw_expand_symtabs_matching_file_matcher)
9668 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
9669 (dw2_debug_names_iterator::next)
9670 (dw2_debug_names_map_matching_symbols)
9671 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
9672 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
9673 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
9674 New methods.
9675 (get_compunit_symtab, process_full_comp_unit)
9676 (process_full_type_unit): Update.
9677 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
9678
5989a64e
SM
96792020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9680
9681 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
9682 then introduce a new dwarf2_per_objfile type.
9683 <read_line_string>: Move to the new dwarf2_per_objfile type.
9684 <objfile>: Likewise.
9685 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
9686 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
9687 dwarf2_per_objfile->per_bfd.
9688 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
9689 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
9690 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
9691 (dwarf2_per_bfd::free_cached_comp_units): ... this.
9692 (dwarf2_has_info): Allocate dwarf2_per_bfd.
9693 (dwarf2_per_objfile::locate_sections): Rename to...
9694 (dwarf2_per_bfd::locate_sections): ... this.
9695 (dwarf2_per_objfile::get_cutu): Rename to...
9696 (dwarf2_per_bfd::get_cutu): ... this.
9697 (dwarf2_per_objfile::get_cu): Rename to...
9698 (dwarf2_per_bfd::get_cu): ... this.
9699 (dwarf2_per_objfile::get_tu): Rename to...
9700 (dwarf2_per_bfd::get_tu): ... this.
9701 (dwarf2_per_objfile::allocate_per_cu): Rename to...
9702 (dwarf2_per_bfd::allocate_per_cu): ... this.
9703 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
9704 (dwarf2_per_bfd::allocate_signatured_type): ... this.
9705 (get_gdb_index_contents_ftype): Change parameter from
9706 dwarf2_per_objfile to dwarf2_per_bfd.
9707 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
9708 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
9709
a50264ba
TT
97102020-05-27 Tom Tromey <tom@tromey.com>
9711 Simon Marchi <simon.marchi@efficios.com>
9712
9713 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
9714 (allocate_piece_closure): Set "per_objfile" member.
9715 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
9716 (locexpr_describe_location, loclist_describe_location): Use new
9717 member.
9718 * dwarf2/read.c (read_call_site_scope)
9719 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
9720 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
9721 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
9722 handle_data_member_location): Set per_objfile member.
9723 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
9724 member.
9725 (struct dwarf2_loclist_baton) <per_objfile>: New member.
9726
d3473f0c
TT
97272020-05-27 Tom Tromey <tom@tromey.com>
9728
9729 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
9730 allocate_signatured_type>: Declare new methods.
9731 <m_num_psymtabs>: New member.
9732 (struct dwarf2_per_cu_data) <index>: New member.
9733 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
9734 (dwarf2_per_objfile::allocate_signatured_type): New methods.
9735 (create_cu_from_index_list): Use allocate_per_cu.
9736 (create_signatured_type_table_from_index)
9737 (create_signatured_type_table_from_debug_names)
9738 (create_debug_type_hash_table, add_type_unit)
9739 (read_comp_units_from_section): Use allocate_signatured_type.
9740
5717c425
TT
97412020-05-27 Tom Tromey <tom@tromey.com>
9742
9743 * psymtab.c (partial_map_expand_apply)
9744 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9745 (psym_lookup_global_symbol_language)
9746 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9747 (psym_print_stats, psym_expand_symtabs_for_function)
9748 (psym_map_symbol_filenames, psym_map_matching_symbols)
9749 (psym_expand_symtabs_matching)
9750 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9751 (maintenance_check_psymtabs): Update.
9752 * psympriv.h (struct partial_symtab) <readin_p,
9753 get_compunit_symtab>: Add objfile parameter.
9754 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
9755 Likewise.
9756 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
9757 get_compunit_symtab>: Likewise.
9758 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
9759
45940949
TT
97602020-05-27 Tom Tromey <tom@tromey.com>
9761
9762 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
9763 member.
9764 * dwarf2/read.c (delete_file_name_entry): Fix comment.
9765 (create_cu_from_index_list)
9766 (create_signatured_type_table_from_index)
9767 (create_signatured_type_table_from_debug_names)
9768 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
9769 (dwarf2_create_include_psymtab)
9770 (create_debug_type_hash_table, add_type_unit)
9771 (create_type_unit_group, read_comp_units_from_section)
9772 (dwarf2_compute_name, create_cus_hash_table)
9773 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9774 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
9775 obstack.
9776 (dw2_get_real_path): Likewise. Change argument to
9777 dwarf2_per_objfile.
9778
f8c6d152
LM
97792020-05-27 Luis Machado <luis.machado@linaro.org>
9780
9781 PR tdep/26000
9782 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
9783 for ldrd (immediate).
9784
e98d2e6d
PW
97852020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9786
9787 * command.h: Add comment giving the name of class_tui.
9788 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
9789 create the fake command for the help for class_tui.
9790
53a47a3e
TT
97912020-05-26 Tom Tromey <tromey@adacore.com>
9792
9793 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
9794 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
9795 (val_atr): New function.
9796 (value_val_atr): Use it.
9797 * ada-valprint.c (print_optional_low_bound): Change low bound
9798 handling for enums.
9799 (val_print_packed_array_elements): Don't call discrete_position.
9800 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
9801 discrete_position for enum types.
9802 * language.c (default_print_array_index): Change type.
9803 * language.h (struct language_defn) <la_print_array_index>: Add
9804 index_type parameter, change type of index_value.
9805 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
9806 (default_print_array_index): Update.
9807 * valprint.c (maybe_print_array_index): Don't call
9808 value_from_longest. Update.
9809 (value_print_array_elements): Don't call discrete_position.
9810
0bc2354b
TT
98112020-05-26 Tom Tromey <tromey@adacore.com>
9812
9813 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
9814 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
9815
1218a4bf
CDA
98162020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
9817
9818 PR gdb/13519
9819 * avr-tdep.c (avr_integer_to_address): Return data or code
9820 address accordingly to the second 'type' argument of the
9821 function.
9822
92651b1d
MW
98232020-05-25 Michael Weghorn <m.weghorn@posteo.de>
9824
9825 * infcmd.c, inferior.h: (construct_inferior_arguments):
9826 Moved function from here to gdbsupport/common-inferior.{h,cc}
9827
0a4f5f8c
TT
98282020-05-23 Tom Tromey <tom@tromey.com>
9829
9830 Revert commit eca1f90c:
9831 * NEWS: Remove entry for completion styling.
9832 * completer.c (_rl_completion_prefix_display_length): Move
9833 declaration later.
9834 (gdb_fnprint): Revert.
9835 (gdb_display_match_list_1): Likewise.
9836 * cli/cli-style.c (completion_prefix_style)
9837 (completion_difference_style, completion_suffix_style): Remove.
9838 (_initialize_cli_style): Revert.
9839 * cli/cli-style.h (completion_prefix_style)
9840 (completion_difference_style, completion_suffix_style): Don't
9841 declare.
9842
e08bd6c5
PA
98432020-05-24 Pedro Alves <palves@redhat.com>
9844
9845 * symtab.c (completion_list_add_name): Return boolean indication
9846 of whether the symbol matched.
9847 (completion_list_add_symbol): Don't try to remove C++ aliases if
9848 the symbol didn't match in the first place.
9849 * symtab.h (completion_list_add_name): Return bool.
9850
ceacbf6e
SM
98512020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
9852
9853 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
9854 type::field.
9855
26f16254
JB
98562020-05-23 Joel Brobecker <brobecker@adacore.com>
9857
9858 GDB 9.2 released.
9859
eca1f90c
TT
98602020-05-23 Tom Tromey <tom@tromey.com>
9861
9862 * NEWS: Add entry for completion styling.
9863 * completer.c (_rl_completion_prefix_display_length): Move
9864 declaration earlier.
9865 (gdb_fnprint): Use completion_style.
9866 (gdb_display_match_list_1): Likewise.
9867 * cli/cli-style.c (completion_prefix_style)
9868 (completion_difference_style, completion_suffix_style): New
9869 globals.
9870 (_initialize_cli_style): Register new globals.
9871 * cli/cli-style.h (completion_prefix_style)
9872 (completion_difference_style, completion_suffix_style): Declare.
9873
51e2cfa2
PA
98742020-05-23 Pedro Alves <palves@redhat.com>
9875
9876 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
9877 (parse_escape): Use ISDIGIT instead of isdigit.
9878 (puts_debug): Use gdb_isprint instead of isprint.
9879 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
9880 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
9881 ISSPACE instead of isspace.
9882 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
9883 instead of isspace.
9884 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
9885 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
9886 instead of isxdigit and ISDIGIT instead of isdigit.
9887
80fc5e77
SM
98882020-05-22 Simon Marchi <simon.marchi@efficios.com>
9889
9890 * gdbtypes.h (struct type) <field>: New method.
9891 (TYPE_FIELDS): Remove, replace all uses with either type::fields
9892 or type::field.
9893
3cabb6b0
SM
98942020-05-22 Simon Marchi <simon.marchi@efficios.com>
9895
9896 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
9897 (TYPE_FIELDS): Use type::fields. Change all call sites that
9898 modify the propery to use type::set_fields instead.
9899
1f704f76
SM
99002020-05-22 Simon Marchi <simon.marchi@efficios.com>
9901
9902 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
9903 type::num_fields instead.
9904
5e33d5f4
SM
99052020-05-22 Simon Marchi <simon.marchi@efficios.com>
9906
9907 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
9908 methods.
9909 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
9910 that modify the number of fields to use type::set_num_fields
9911 instead.
9912
9392ebb3
TT
99132020-05-22 Tom Tromey <tromey@adacore.com>
9914
9915 * compile/compile-object-load.h (munmap_list_free): Don't
9916 declare.
9917
7c13f4e8
AB
99182020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
9919
9920 * annotate.c (annotate_source_line): Update return type, add call
9921 to update current symtab and line.
9922 * annotate.h (annotate_source_line): Update return type, and
9923 extend header comment.
9924 * source.c (info_line_command): Check annotation_level before
9925 calling annotate_source_line.
9926 * stack.c (print_frame_info): If calling annotate_source_line
9927 returns true, then don't print any other source line information.
9928
aa370940
SM
99292020-05-21 Simon Marchi <simon.marchi@efficios.com>
9930
9931 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
9932
84d53fa9
SM
99332020-05-21 Simon Marchi <simon.marchi@efficios.com>
9934
9935 * coffread.c (patch_type): Remove NULL check before xfree.
9936 * corefile.c (set_gnutarget): Likewise.
9937 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
9938 * exec.c (build_section_table): Likewise.
9939 * remote.c (remote_target::pass_signals): Likewise.
9940 * utils.c (n_spaces): Likewise.
9941 * cli/cli-script.c (document_command): Likewise.
9942 * i386-windows-tdep.c (core_process_module_section): Likewise.
9943 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
9944
9d428aae
SM
99452020-05-20 Simon Marchi <simon.marchi@efficios.com>
9946
9947 * symfile.c (reread_symbols): Clear objfile's section_offsets
9948 vector and section indices, re-compute them by calling
9949 sym_offsets.
9950
250106a7
TT
99512020-05-20 Tom Tromey <tromey@adacore.com>
9952
9953 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 9954 (desc_one_bound, desc_index_type): Compute field name.
250106a7 9955
9a0bacfb
TV
99562020-05-20 Tom de Vries <tdevries@suse.de>
9957
9958 PR symtab/25833
9959 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
9960
7b958a48
AM
99612020-05-20 Alan Modra <amodra@gmail.com>
9962
9963 PR 25993
9964 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
9965 bfd_set_filename.
9966 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
9967 passed to bfd_set_filename.
9968 * symfile-mem.c (add_vsyscall_page): Likewise for string
9969 passed to symbol_file_add_from_memory.
9970 (symbol_file_add_from_memory): Make name param a const char* and
9971 don't strdup.
9972
c7e97679
AM
99732020-05-20 Alan Modra <amodra@gmail.com>
9974
9975 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
9976 rather than accessing bfd->filename directly.
9977 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
9978 and use bfd_section_name.
9979 * dwarf2/frame.c (decode_frame_entry): Likewise.
9980 * exec.c (exec_set_section_address): Likewise.
9981 * solib-aix.c (solib_aix_bfd_open): Likewise.
9982 * stap-probe.c (get_stap_base_address): Likewise.
9983 * symfile.c (reread_symbols): Likewise.
9984
563c591b
TT
99852020-05-19 Tom Tromey <tromey@adacore.com>
9986
9987 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
9988
f408d82c
SM
99892020-05-19 Simon Marchi <simon.marchi@efficios.com>
9990
9991 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
9992
98c59b52
PA
99932020-05-19 Pedro Alves <palves@redhat.com>
9994
9995 * NEWS (set exec-file-mismatch): Adjust entry.
9996 * exec.c: Include "build-id.h".
9997 (validate_exec_file): Try to match build IDs instead of filenames.
9998 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
9999 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
10000 and pass down 'warn_if_slow'.
10001 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
10002 gdb_bfd_open_closure to pass it down.
10003 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
10004
4111f652
PA
100052020-05-19 Pedro Alves <palves@redhat.com>
10006
10007 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
10008 * target.c (target_fileio_open_1): Rename to target_fileio_open
10009 and make extern. Use bool.
10010 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
10011 (target_fileio_read_alloc_1): Adjust.
10012 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
10013 (target_fileio_open_warn_if_slow): Delete declaration.
10014
ad80db5b
PA
100152020-05-19 Pedro Alves <palves@redhat.com>
10016
10017 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
10018 Adjust all callers.
10019
1d6ce4d3
YS
100202020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
10021
10022 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
10023 whether disp is negative.
10024
9005fbbb
SM
100252020-05-19 Simon Marchi <simon.marchi@efficios.com>
10026
10027 * symfile.h (struct symfile_segment_data)
10028 <~symfile_segment_data>: Remove.
10029 <segment_info>: Change to std::vector.
10030 * symfile.c (default_symfile_segments): Update.
10031 * elfread.c (elf_symfile_segments): Update.
10032
68b888ff
SM
100332020-05-19 Simon Marchi <simon.marchi@efficios.com>
10034
10035 * symfile.h (struct symfile_segment_data) <struct segment>: New.
10036 <segments>: New.
10037 <segment_bases, segment_sizes>: Remove.
10038 * symfile.c (default_symfile_segments): Update.
10039 * elfread.c (elf_symfile_segments): Update.
10040 * remote.c (remote_target::get_offsets): Update.
10041 * solib-target.c (solib_target_relocate_section_addresses):
10042 Update.
10043
62982abd
SM
100442020-05-19 Simon Marchi <simon.marchi@efficios.com>
10045
10046 * symfile.h (struct symfile_segment_data): Initialize fields.
10047 <~symfile_segment_data>: Add.
10048 (symfile_segment_data_up): New.
10049 (struct sym_fns) <sym_segments>: Return a
10050 symfile_segment_data_up.
10051 (default_symfile_segments): Return a symfile_segment_data_up.
10052 (free_symfile_segment_data): Remove.
10053 (get_symfile_segment_data): Return a symfile_segment_data_up.
10054 * symfile.c (default_symfile_segments): Likewise.
10055 (get_symfile_segment_data): Likewise.
10056 (free_symfile_segment_data): Remove.
10057 (symfile_find_segment_sections): Update.
10058 * elfread.c (elf_symfile_segments): Return a
10059 symfile_segment_data_up.
10060 * remote.c (remote_target::get_offsets): Update.
10061 * solib-target.c (solib_target_relocate_section_addresses):
10062 Update.
10063 * symfile-debug.c (debug_sym_segments): Return a
10064 symfile_segment_data_up.
10065
7f204339
RO
100662020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10067
e52a0f1b
RO
10068 PR build/25981
10069 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
10070 Hardcode register numbers.
10071
7f204339
RO
10072 PR build/25981
10073 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
10074 procfs_find_LDT_entry): Remove.
10075 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
10076 procfs_find_LDT_entry): Remove.
10077 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
10078 Remove.
10079
7f32a4d5
PA
100802020-05-17 Pedro Alves <palves@redhat.com>
10081 Andrew Burgess <andrew.burgess@embecosm.com>
10082 Keno Fischer <keno@juliacomputing.com>
10083
10084 PR gdb/25741
10085 * breakpoint.c (build_target_condition_list): Update comments.
10086 (build_target_command_list): Update comments and skip matching
10087 locations.
10088 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
10089 a separate function. Simplify "set breakpoint auto-hw off"
10090 handling.
10091 (insert_breakpoints): Update comment.
10092 (tracepoint_locations_match): New parameter. For breakpoints,
10093 compare location types too, if the caller wants to.
10094 (handle_automatic_hardware_breakpoints): New functions.
10095 (bp_location_is_less_than): Also sort by location type and
10096 hardware breakpoint length.
10097 (update_global_location_list): Handle "set breakpoint auto-hw on"
10098 here.
10099 (update_breakpoint_locations): Ask breakpoint_locations_match to
10100 ignore location types.
10101
7d93a1e0
SM
101022020-05-16 Simon Marchi <simon.marchi@efficios.com>
10103
10104 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
10105 type::name instead.
10106
d0e39ea2
SM
101072020-05-16 Simon Marchi <simon.marchi@efficios.com>
10108
10109 * gdbtypes.h (struct type) <name, set_name>: New methods.
10110 (TYPE_CODE): Use type::name. Change all call sites used to set
10111 the name to use type::set_name instead.
10112
2dab0c7b
TT
101132020-05-16 Tom Tromey <tom@tromey.com>
10114
10115 * top.c (quit_force): Update.
10116 * infrun.c (handle_no_resumed): Update.
10117 * top.h (all_uis): New function.
10118 (ALL_UIS): Remove.
10119
59f7bd8d
SM
101202020-05-16 Simon Marchi <simon.marchi@efficios.com>
10121
10122 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
10123
9bf058f0
PA
101242020-05-16 Pedro Alves <palves@redhat.com>
10125
10126 * ia64-linux-nat.c
10127 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
10128 Declare method.
10129 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
10130
8f86ae1a
SM
101312020-05-15 Simon Marchi <simon.marchi@efficios.com>
10132
10133 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
10134 (sparc64_adi_info): Likewise.
10135
d6bc0792
TT
101362020-05-15 Tom Tromey <tom@tromey.com>
10137
10138 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
10139 block_objfile.
10140 (lookup_objfile_from_block): Remove.
10141 (lookup_symbol_in_block, lookup_symbol_in_static_block)
10142 (lookup_global_symbol): Use block_objfile.
10143 * symtab.h (lookup_objfile_from_block): Don't declare.
10144 * printcmd.c (clear_dangling_display_expressions): Use
10145 block_objfile.
10146 * parse.c (operator_check_standard): Use block_objfile.
10147
8c14c3a3
TT
101482020-05-15 Tom Tromey <tom@tromey.com>
10149
10150 * language.c (language_alloc_type_symbol): Set
10151 SYMBOL_SECTION.
10152 * symtab.c (initialize_objfile_symbol): Remove.
10153 (allocate_symbol): Remove.
10154 (allocate_template_symbol): Remove.
10155 * dwarf2/read.c (fixup_go_packaging): Use "new".
10156 (new_symbol): Use "new".
10157 (read_variable): Don't call initialize_objfile_symbol. Use
10158 "new".
10159 (read_func_scope): Use "new".
10160 * xcoffread.c (process_xcoff_symbol): Don't call
10161 initialize_objfile_symbol.
10162 (SYMBOL_DUP): Remove.
10163 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
10164 "new".
10165 * symtab.h (allocate_symbol, initialize_objfile_symbol)
10166 (allocate_template_symbol): Don't declare.
10167 (struct symbol): Add copy constructor. Change defaults.
10168 * jit.c (finalize_symtab): Use "new".
10169 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
10170 Use "new".
10171 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
10172 (common_block_end): Use "new".
10173 * mdebugread.c (parse_symbol): Use "new".
10174 (new_symbol): Likewise.
10175
5b4a1a8d
PW
101762020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10177
10178 * NEWS: Mention changes to help and apropos.
10179
57b4f16e
PW
101802020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10181
10182 * command.h (enum command_class): Improve comments, document
10183 that class_alias is for user-defined aliases, give the class
10184 name for each class, remove unused class_xdb.
10185 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
10186 * breakpoint.c (_initialize_breakpoint): Replace class_alias
10187 by a precise class.
10188 * infcmd.c (_initialize_infcmd): Likewise.
10189 * reverse.c (_initialize_reverse): Likewise.
10190 * stack.c (_initialize_stack): Likewise.
10191 * symfile.c (_initialize_symfile): Likewise.
10192 * tracepoint.c (_initialize_tracepoint): Likewise.
10193
7c05caf7
PW
101942020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10195
10196 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
10197 when their aliased command is traversed.
10198 (help_cmd): Add fput_command_names_styled call to
10199 output command name and aliases when command has an alias.
10200
3b3aaacb
PW
102012020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10202
10203 * cli/cli-decode.h (help_cmd_list): Remove declaration.
10204 * cli/cli-decode.c (help_cmd_list): Declare as static,
10205 remove prefix argument, use bool for recurse arg, rework to show the aliases of
10206 a command together with the command.
10207 (fput_command_name_styled, fput_command_names_styled): New functions.
10208 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
10209 fput_command_name_styled.
10210 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
10211 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
10212
7aa1b46f
PW
102132020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10214
10215 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
10216 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
10217 * command.h (cmd_show_list): Likewise.
10218 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
10219 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
10220
89bcba74
PW
102212020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10222
10223 * unittests/command-def-selftests.c (traverse_command_structure):
10224 Verify all commands of a list have the same prefix command and
10225 that only the top cmdlist commands have a null prefix.
10226
3f4d92eb
PW
102272020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10228
10229 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
10230 as prefix, not one of its aliases.
10231 (set_cmd_prefix): Remove.
10232 (do_add_cmd): Centralize the setting of the prefix of a command, when
10233 command is defined after its full chain of prefix commands.
10234 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
10235 (add_setshow_cmd_full): Likewise.
10236 (update_prefix_field_of_prefixed_commands): New function.
10237 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
10238 update_prefix_field_of_prefixed_commands.
10239 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
10240 addresses of remote_set_cmdlist and remote_show_cmdlist given
10241 as argument, not the address of an argument.
10242 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
10243 * gdb/remote.c (_initialize_remote): Likewise.
10244
0605465f
PW
102452020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10246
10247 * cli/cli-cmds.c (alias_command): Check for an existing alias
10248 using lookup_cmd_composition, as valid_command_p is too strict
10249 and forbids aliases that are the prefix of an existing alias
10250 or command.
10251 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
10252 command is properly recognised as a valid command.
10253
58e6ac70
PW
102542020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10255
10256 * unittests/help-doc-selftests.c: Rename to
10257 unittests/command-def-selftests.c
10258 * unittests/command-def-selftests.c (help_doc_tests): Update some
10259 comments.
10260 (command_structure_tests, traverse_command_structure): New namespace
10261 and function.
10262 (command_structure_invariants_tests): New function.
10263 (_initialize_command_def_selftests) Renamed from
10264 _initialize_help_doc_selftests, register command_structure_invariants
10265 selftest.
10266
a7b9ceb8
PW
102672020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10268
10269 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
10270 an alias of 'show'.
10271
b2188a06
JB
102722020-05-15 Joel Brobecker <brobecker@adacore.com>
10273
10274 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
10275 ada_is_fixed_point_type. Update all callers.
10276 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
10277 all callers.
10278 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
10279 Update all callers.
10280 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
10281 print_fixed_point_type. Update all callers.
10282 * ada-valprint.c (ada_value_print_num): Replace call to
10283 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
10284
a51951c2
KB
102852020-05-14 Kevin Buettner <kevinb@redhat.com>
10286
10287 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
10288 processors.
10289 (cpu_supports_bts): Add CV_AMD case.
10290
29d6859f
LM
102912020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
10292 Simon Marchi <simon.marchi@efficios.com>
10293
10294 * infrun.c (stop_all_threads): Collect multiple wait events at
10295 each pass.
10296
78134374
SM
102972020-05-14 Simon Marchi <simon.marchi@efficios.com>
10298
10299 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
10300 type::code instead.
10301
67607e24
SM
103022020-05-14 Simon Marchi <simon.marchi@efficios.com>
10303
10304 * gdbtypes.h (struct type) <code, set_code>: New methods.
10305 (TYPE_CODE): Use type::code. Change all call sites used to set
10306 the code to use type::set_code instead.
10307
a05575d3
TBA
103082020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10309 Tom de Vries <tdevries@suse.de>
10310 Pedro Alves <palves@redhat.com>
10311
10312 PR threads/25478
10313 * infrun.c (stop_all_threads): Do NOT ignore
10314 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
10315 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
10316 received.
10317 (handle_no_resumed): Remove code handling a live inferior with no
10318 threads.
10319 * remote.c (has_single_non_exited_thread): New.
10320 (remote_target::update_thread_list): Do not delete a thread if is
10321 the last thread of the process.
10322 * thread.c (thread_select): Call delete_exited_threads instead of
10323 prune_threads.
10324
6ad82919
TBA
103252020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10326
10327 * infrun.c (stop_all_threads): Enable/disable thread events of all
10328 targets. Move a debug message denoting the end of the function
10329 into the SCOPED_EXIT block.
10330
d890404b
TBA
103312020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10332
10333 * process-stratum-target.h: Include <set>.
10334 (all_non_exited_process_targets, switch_to_target_no_thread): New
10335 function declarations.
10336 * process-stratum-target.c (all_non_exited_process_targets)
10337 (switch_to_target_no_thread): New function implementations.
10338
293b3ebc
TBA
103392020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10340
10341 * infrun.c (handle_inferior_event): Extract out a piece of code
10342 into...
10343 (mark_non_executing_threads): ...this new function.
10344
7ca9b62a
TBA
103452020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10346
10347 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
10348 use.
10349
fc75c28b
TBA
103502020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10351
10352 * regcache.c (regcache_read_pc_protected): New function
10353 implementation that returns 0 if the PC cannot read via
10354 'regcache_read_pc'.
10355 * infrun.c (proceed): Call 'regcache_read_pc_protected'
10356 instead of 'regcache_read_pc'.
10357 (keep_going_pass_signal): Ditto.
10358
a89febbd
TT
103592020-05-13 Tom Tromey <tromey@adacore.com>
10360
10361 * ada-lang.c (align_value): Remove.
10362 (ada_template_to_fixed_record_type_1): Use align_up.
10363
f7e23710
TBA
103642020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10365
10366 * async-event.c: Update the copyright year.
10367 * async-event.h: Update the copyright year.
10368
02ff80c2
SM
103692020-05-12 Simon Marchi <simon.marchi@efficios.com>
10370
10371 * objfiles.h (is_addr_in_objfile,
10372 shared_objfile_contains_address_p): Return bool.
10373 * objfile.c (is_addr_in_objfile,
10374 shared_objfile_contains_address_p): Return bool.
10375
4fd6c7e8
TT
103762020-05-11 Tom Tromey <tromey@adacore.com>
10377
10378 * cli/cli-cmds.c (info_command): Restore.
10379 (_initialize_cli_cmds): Use add_prefix_command for "info".
10380 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
10381
5eb68a39
TT
103822020-05-11 Tom Tromey <tromey@adacore.com>
10383
10384 * ada-lang.c (ada_value_primitive_field): Now public.
10385 * ada-lang.h (ada_value_primitive_field): Declare.
10386 * ada-valprint.c (print_field_values): Use
10387 ada_value_primitive_field for wrapper fields.
10388
7666722f
TV
103892020-05-11 Tom de Vries <tdevries@suse.de>
10390
10391 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
10392 MODULE_DOMAIN.
10393
3ee6bb11
TV
103942020-05-11 Tom de Vries <tdevries@suse.de>
10395
10396 PR symtab/25941
10397 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
10398 with length 0, if not gdb-produced.
10399 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
10400
43434996
TV
104012020-05-09 Tom de Vries <tdevries@suse.de>
10402
10403 PR gdb/25955
10404 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
10405 calculation.
10406
2f78cffc
TT
104072020-05-09 Tom Tromey <tom@tromey.com>
10408
10409 * top.c (server_command): Now bool.
10410 * top.h (server_command): Now bool.
10411
4f7bc5ed
TT
104122020-05-08 Tom Tromey <tromey@adacore.com>
10413
10414 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
10415 already being processed.
10416
8be4b118
TT
104172020-05-08 Tom Tromey <tom@tromey.com>
10418
10419 * printcmd.c (struct display) <next>: Remove.
10420 <display>: New constructor.
10421 <exp_string>: Now a std::string.
10422 <enabled_p>: Now a bool.
10423 (display_number): Move definition earlier.
10424 (displays): Rename from display_chain. Now a std::vector.
10425 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
10426 (display_command): Update.
10427 (do_one_display, disable_display)
10428 (enable_disable_display_command, do_enable_disable_display):
10429 Update.
10430 (free_display): Remove.
10431 (clear_displays): Rewrite.
10432 (delete_display): Update.
10433 (map_display_numbers): Use function_view. Remove "data"
10434 parameter. Update.
10435 (do_delete_display): Remove.
10436 (undisplay_command): Update.
10437 (do_one_display, do_displays, disable_display)
10438 (info_display_command): Update.
10439 (do_enable_disable_display): Remove.
10440 (enable_disable_display_command)
10441 (clear_dangling_display_expressions): Update.
10442
94c93c35
TT
104432020-05-08 Tom Tromey <tom@tromey.com>
10444
10445 * symtab.c (set_symbol_cache_size)
10446 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
10447 (maintenance_print_symbol_cache_statistics): Update.
10448 * symmisc.c (print_symbol_bcache_statistics)
10449 (print_objfile_statistics, maintenance_print_objfiles)
10450 (maintenance_info_symtabs, maintenance_check_symtabs)
10451 (maintenance_expand_symtabs, maintenance_info_line_tables):
10452 Update.
10453 * symfile-debug.c (set_debug_symfile): Update.
10454 * source.c (forget_cached_source_info): Update.
10455 * python/python.c (gdbpy_progspaces): Update.
10456 * psymtab.c (maintenance_info_psymtabs): Update.
10457 * probe.c (parse_probes): Update.
10458 * linespec.c (iterate_over_all_matching_symtabs)
10459 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
10460 * guile/scm-progspace.c (gdbscm_progspaces): Update.
10461 * exec.c (exec_target::close): Update.
10462 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
10463 * breakpoint.c (print_one_breakpoint_location)
10464 (create_longjmp_master_breakpoint)
10465 (create_std_terminate_master_breakpoint): Update.
10466 * progspace.c (program_spaces): Now a std::vector.
10467 (maybe_new_address_space): Update.
10468 (add_program_space): Remove.
10469 (program_space::program_space): Update.
10470 (remove_program_space): Update.
10471 (number_of_program_spaces): Remove.
10472 (print_program_space, update_address_spaces): Update.
10473 * progspace.h (program_spaces): Change type.
10474 (ALL_PSPACES): Remove.
10475 (number_of_program_spaces): Don't declare.
10476 (struct program_space) <next>: Remove.
10477
a1fd1ac9
TT
104782020-05-08 Tom Tromey <tom@tromey.com>
10479
10480 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
10481 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
10482 (enable_break): Update.
10483 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
10484 (frv_fdpic_find_canonical_descriptor): Update.
10485 (frv_fetch_objfile_link_map): Update.
10486 * progspace.c (program_space::free_all_objfiles): Update.
10487 (program_space::solibs): New method.
10488 * progspace.h (struct program_space) <solibs>: New method.
10489 * solist.h (master_so_list): Don't declare.
10490 (ALL_SO_LIBS): Remove.
10491 * solib.h (so_list_head): Remove.
10492 (update_solib_list): Update comment.
10493 * solib.c (master_so_list): Remove.
10494 (solib_used, update_solib_list, solib_add)
10495 (info_sharedlibrary_command, clear_solib)
10496 (reload_shared_libraries_1, remove_user_added_objfile): Update.
10497
38eae084
TT
104982020-05-08 Tom Tromey <tom@tromey.com>
10499
10500 * extension.c (extension_languages): Now a std::array.
10501 (ALL_EXTENSION_LANGUAGES): Remove.
10502 (get_ext_lang_defn, get_ext_lang_of_file)
10503 (eval_ext_lang_from_control_command): Update.
10504 (finish_ext_lang_initialization)
10505 (auto_load_ext_lang_scripts_for_objfile)
10506 (ext_lang_type_printers::ext_lang_type_printers)
10507 (apply_ext_lang_type_printers)
10508 (ext_lang_type_printers::~ext_lang_type_printers)
10509 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
10510 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
10511 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
10512 (get_matching_xmethod_workers, ext_lang_colorize)
10513 (ext_lang_before_prompt): Update.
10514 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
10515
596dc4ad
TT
105162020-05-08 Tom Tromey <tom@tromey.com>
10517
10518 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
10519 overload.
10520 <swap_string, m_string>: Remove.
10521 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
10522 Update.
10523 * stabsread.c (define_symbol, read_type): Update.
10524 * linespec.c (find_linespec_symbols): Update.
10525 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
10526 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
10527 * dbxread.c (read_dbx_symtab): Update.
10528 * cp-support.h (cp_canonicalize_string_full)
10529 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
10530 Return unique_xmalloc_ptr.
10531 * cp-support.c (inspect_type): Update.
10532 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
10533 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
10534 Likewise.
10535 * c-typeprint.c (print_name_maybe_canonical): Update.
10536 * break-catch-throw.c (check_status_exception_catchpoint):
10537 Update.
10538
bf4cb9be
TV
105392020-05-08 Tom de Vries <tdevries@suse.de>
10540
10541 * infrun.c (follow_fork): Copy current_line and current_symtab to
10542 child thread.
10543
a1b68f28
SM
105442020-05-07 Simon Marchi <simon.marchi@efficios.com>
10545
10546 * async-event.c (struct async_signal_handler, struct
10547 async_event_handler): Reformat, remove typedef.
10548
98d48915
SM
105492020-05-07 Simon Marchi <simon.marchi@efficios.com>
10550
10551 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
10552 access thistype->main_type->dyn_prop_list directly.
10553
7aa91313
SM
105542020-05-07 Simon Marchi <simon.marchi@efficios.com>
10555
10556 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
10557 (remove_dyn_prop): Remove. Update all users to use
10558 type::remove_dyn_prop.
10559 * gdbtypes.c (remove_dyn_prop): Rename to...
10560 (type::remove_dyn_prop): ... this.
10561
5c54719c
SM
105622020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
10563
10564 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
10565 (add_dyn_prop): Remove. Update all users to use
10566 type::add_dyn_prop.
10567 * gdbtypes.c (add_dyn_prop): Rename to...
10568 (type::add_dyn_prop): ... this.
10569
24e99c6c
SM
105702020-05-07 Simon Marchi <simon.marchi@efficios.com>
10571
10572 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
10573 (get_dyn_prop): Remove. Update all users to use
10574 type::dyn_prop.
10575 * gdbtypes.c (get_dyn_prop): Rename to...
10576 (type::dyn_prop): ... this.
10577
0d4bf016
SM
105782020-05-06 Simon Marchi <simon.marchi@efficios.com>
10579
10580 * gdbtypes.h (struct main_type) <flag_static>: Remove.
10581
ac4a4f1c
SM
105822020-05-06 Simon Marchi <simon.marchi@efficios.com>
10583
10584 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
10585 instruction, skip it if it's there.
10586
a3bbacc1
SM
105872020-05-05 Simon Marchi <simon.marchi@efficios.com>
10588
10589 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
10590
c3236f84
SM
105912020-05-04 Simon Marchi <simon.marchi@efficios.com>
10592
10593 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
10594 * gdbtypes.c (recursive_dump_type): Remove use of
10595 TYPE_INCOMPLETE.
10596
3b6acaee
TT
105972020-05-03 Tom Tromey <tom@tromey.com>
10598
10599 * breakpoint.c (catch_command, tcatch_command): Remove.
10600 (_initialize_breakpoint): Use add_basic_prefix_cmd,
10601 add_show_prefix_cmd.
10602 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
10603 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
10604 Remove.
10605 (add_internal_problem_command): Use add_basic_prefix_cmd,
10606 add_show_prefix_cmd.
10607 * mips-tdep.c (set_mipsfpu_command): Remove.
10608 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
10609 * dwarf2/index-cache.c (set_index_cache_command): Remove.
10610 (_initialize_index_cache): Use add_basic_prefix_cmd.
10611 * memattr.c (dummy_cmd): Remove.
10612 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
10613 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
10614 (_initialize_tui_win): Use add_basic_prefix_cmd,
10615 add_show_prefix_cmd.
10616 * cli/cli-logging.c (set_logging_command): Remove.
10617 (_initialize_cli_logging): Use add_basic_prefix_cmd,
10618 add_show_prefix_cmd.
10619 (show_logging_command): Remove.
10620 * target.c (target_command): Remove.
10621 (add_target): Use add_basic_prefix_cmd.
10622
a51119cd
HD
106232020-05-02 Hannes Domani <ssbssa@yahoo.de>
10624
10625 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
10626
652fc23a 106272020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 10628
652fc23a
PW
10629 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
10630 info_command.
10631
117539e6
KR
106322020-04-30 Kamil Rytarowski <n54@gmx.com>
10633
10634 * nbsd-nat.c (nbsd_enable_proc_events)
10635 (nbsd_nat_target::post_startup_inferior): Add.
10636 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
10637 (nbsd_nat_target::update_thread_list): Rewrite.
10638 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
10639 "PTRACE_LWP_CREATE".
10640 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
10641
102e38eb 106422020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 10643
102e38eb
PW
10644 * stack.c (_initialize_stack): Remove duplicated creation
10645 of "frame" command and "f" alias.
10646
ee9d1e5f
HD
106472020-04-30 Hannes Domani <ssbssa@yahoo.de>
10648
10649 PR gdb/18706
10650 * gdbtypes.c (check_typedef): Calculate size of array of
10651 stubbed type.
10652
627c7fb8
HD
106532020-04-30 Hannes Domani <ssbssa@yahoo.de>
10654
10655 PR gdb/15559
10656 * i386-tdep.c (i386_push_dummy_call): Call
10657 i386_thiscall_push_dummy_call.
10658 (i386_thiscall_push_dummy_call): New function.
10659 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
10660 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
10661 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
10662
ffc2844e
SM
106632020-04-29 Simon Marchi <simon.marchi@efficios.com>
10664
10665 * gdbarch.sh (do_read): Add shellcheck disable directive for
10666 warning SC2162.
10667
1207375d
SM
106682020-04-29 Simon Marchi <simon.marchi@efficios.com>
10669
10670 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
10671 "referenced but not assigned" warning.
10672
9fdb2916
SM
106732020-04-29 Simon Marchi <simon.marchi@efficios.com>
10674
10675 * gdbarch.sh: Remove code that sets fallbackdefault.
10676
759cea5e
SM
106772020-04-29 Simon Marchi <simon.marchi@efficios.com>
10678
10679 * gdbarch.sh: Use shell operators && and || instead of
10680 -a and -o.
10681
cb02ab24
SM
106822020-04-29 Simon Marchi <simon.marchi@efficios.com>
10683
10684 * gdbarch.sh: Use $(...) instead of `...`.
10685
a6fc5ffc
SM
106862020-04-29 Simon Marchi <simon.marchi@efficios.com>
10687
10688 * gdbarch.sh: Use double quotes around variables.
10689
8d113d13
SM
106902020-04-29 Simon Marchi <simon.marchi@efficios.com>
10691
10692 * gdbarch.sh: Use %s with printf, instead of variables in the
10693 format string.
10694
ed6acedd
TT
106952020-04-29 Tom Tromey <tromey@adacore.com>
10696
10697 PR ada/25875:
10698 * dwarf2/read.c (update_enumeration_type_from_children): Compute
10699 type fields here.
10700 (read_enumeration_type): Call
10701 update_enumeration_type_from_children later. Update comments.
10702 (process_enumeration_scope): Don't create type fields.
10703
b68b1b58
KR
107042020-04-29 Kamil Rytarowski <n54@gmx.com>
10705
10706 * nbsd-tdep.c: Include "xml-syscall.h".
10707 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
10708
f94b2e03
KR
107092020-04-29 Kamil Rytarowski <n54@gmx.com>
10710
10711 * nbsd-nat.c: Include "sys/wait.h".
10712 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
10713 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
10714 (nbsd_nat_target::remove_exec_catchpoint)
10715 (nbsd_nat_target::set_syscall_catchpoint): Add.
10716 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
10717 (nbsd_nat_target::insert_exec_catchpoint)
10718 (nbsd_nat_target::remove_exec_catchpoint)
10719 (nbsd_nat_target::set_syscall_catchpoint): Add.
10720 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
10721 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
10722 `nbsd_get_syscall_number'.
10723
fc49bc72
TT
107242020-04-29 Tom Tromey <tom@tromey.com>
10725
10726 * stack.c (print_block_frame_labels): Remove.
10727
d642b692
HD
107282020-04-29 Hannes Domani <ssbssa@yahoo.de>
10729
10730 PR gdb/17320
10731 * ada-valprint.c (val_print_packed_array_elements): Move array
10732 end bracket to new line.
10733 (ada_val_print_string): Remove extra spaces before first array
10734 element.
10735 * c-valprint.c (c_value_print_array): Likewise.
10736 * m2-valprint.c (m2_print_array_contents): Likewise.
10737 (m2_value_print_inner): Likewise.
10738 * p-valprint.c (pascal_value_print_inner): Likewise.
10739 * valprint.c (generic_val_print_array): Likewise.
10740 (value_print_array_elements): Move first array element and array
10741 end bracket to new line.
10742
ea90f227
TV
107432020-04-29 Tom de Vries <tdevries@suse.de>
10744
10745 PR symtab/25889
10746 * linespec.c (find_method): Fix ix calculation.
10747
4498ef4f
KR
107482020-04-28 Kamil Rytarowski <n54@gmx.com>
10749
10750 * syscalls/update-netbsd.sh: New file.
10751 * syscalls/netbsd.xml: Regenerate.
10752 * data-directory/Makefile.in: Register `netbsd.xml' in
10753 `SYSCALLS_FILES'.
10754
a55e30b5
SM
107552020-04-28 Simon Marchi <simon.marchi@efficios.com>
10756
10757 * syscalls/update-freebsd.sh: Add double quotes.
10758
2b2fbab8
TT
107592020-04-28 Tom Tromey <tom@tromey.com>
10760
10761 * NEWS: Update.
10762 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
10763 (cmdpy_init): Allow class_tui.
10764
a65189c9
TV
107652020-04-28 Mark Williams <mark@myosotissp.com>
10766
10767 PR gdb/24480
10768 * dwarf2read.c: Add missing assingments to list_in_scope when
10769 start_symtab was already called.
10770
1b95cdb7
SM
107712020-04-28 Simon Marchi <simon.marchi@efficios.com>
10772
10773 PR gdb/25881
10774 * dwarf2/read.c (offset_map_type): Use
10775 gdb:hash_enum<sect_offset> as hash function.
10776
15cd93d0
TV
107772020-04-28 Tom de Vries <tdevries@suse.de>
10778
10779 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
10780 with DW_AT_signature.
10781
1eb39914
SM
107822020-04-27 Simon Marchi <simon.marchi@efficios.com>
10783
10784 * configure.ac: Remove check for fs_base/gs_base in
10785 user_regs_struct.
10786 * configure: Re-generate.
10787 * config.in: Re-generate.
10788 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
10789 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
10790 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
10791
991a3e2e
LM
107922020-04-27 Luis Machado <luis.machado@linaro.org>
10793
10794 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
10795 problematic inline frame unwinding situation.
10796 * frame.c (frame_id_computed_p): New function.
10797 * frame.h (frame_id_computed_p): New prototype.
10798
361ba0e8
TT
107992020-04-26 Tom Tromey <tom@tromey.com>
10800
10801 * command.h (enum command_class) <class_pseudo>: Remove.
10802
bc3609fd
PW
108032020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10804
10805 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
10806 and whitespace.
10807
b9771db7
KR
108082020-04-25 Kamil Rytarowski <n54@gmx.com>
10809
ec16513e
SM
10810 * inf-ptrace.c (inf_ptrace_target::wait): Remove
10811 `PT_GET_PROCESS_STATE' block.
b9771db7 10812
7151c1af
TT
108132020-04-24 Tom Tromey <tom@tromey.com>
10814
10815 * symtab.h (symbol_get_demangled_name): Don't declare.
10816 * symtab.c (symbol_get_demangled_name): Remove.
10817 (general_symbol_info::natural_name)
10818 (general_symbol_info::demangled_name): Update.
10819
906bb4c5
TT
108202020-04-24 Tom Tromey <tom@tromey.com>
10821
10822 PR rust/25025:
10823 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
10824
bcfe6157
TT
108252020-04-24 Tom Tromey <tom@tromey.com>
10826
10827 PR symtab/12707:
10828 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
10829 exists.
10830 (new_symbol): Likewise.
10831 * compile/compile-object-load.c (get_out_value_type): Use
10832 symbol_matches_search_name.
10833
f049a313
TT
108342020-04-24 Tom Tromey <tom@tromey.com>
10835
10836 * dwarf2/read.c (add_partial_symbol): Do not call
10837 compute_and_set_names.
10838
76e288d1
TT
108392020-04-24 Tom Tromey <tom@tromey.com>
10840
10841 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
10842 overload.
10843
2467f4f6
TT
108442020-04-24 Tom Tromey <tom@tromey.com>
10845
10846 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
10847 (add_psymbol_to_list): New overload. Make old overload call new
10848 one.
10849 * psympriv.h (add_psymbol_to_list): New overload.
10850
e61108c9
TT
108512020-04-24 Tom Tromey <tom@tromey.com>
10852
10853 * dwarf2/read.c (partial_die_info::read) <case
10854 DW_AT_linkage_name>: Use value_as_string.
10855 (dwarf2_string_attr): Use value_as_string.
10856 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
10857 method.
10858 * dwarf2/attribute.c (attribute::value_as_string): New method.
10859
8c87a452
TT
108602020-04-24 Tom Tromey <tom@tromey.com>
10861
10862 * symtab.c (general_symbol_info::natural_name)
10863 (general_symbol_info::demangled_name): Check for language_rust.
10864
787de330
TT
108652020-04-24 Tom Tromey <tom@tromey.com>
10866
10867 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
10868 (dwarf2_physname): ... from here.
10869 (partial_die_info::read): Add Rust "{" hack.
10870
ff985671
TT
108712020-04-24 Tom Tromey <tom@tromey.com>
10872
10873 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
10874 method.
10875 (symbol_set_demangled_name): Don't declare.
10876 * symtab.c (general_symbol_info::set_demangled_name): Rename from
10877 symbol_set_demangled_name.
10878 (general_symbol_info::set_language)
10879 (general_symbol_info::compute_and_set_names): Update.
10880 * minsyms.c (minimal_symbol_reader::install): Update.
10881 * dwarf2/read.c (new_symbol): Update.
10882
1acda803
TT
108832020-04-24 Tom Tromey <tromey@adacore.com>
10884
10885 PR python/23662:
10886 * python/py-type.c (convert_field): Handle
10887 FIELD_LOC_KIND_DWARF_BLOCK.
10888 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
10889 (typy_get_dynamic): Nw function.
10890 (type_object_getset): Add "dynamic".
10891 * NEWS: Add entry.
10892
d656f129
TT
108932020-04-24 Tom Tromey <tromey@adacore.com>
10894
10895 * ada-typeprint.c (print_choices, print_variant_part)
10896 (print_record_field_types_dynamic): New functions.
10897 (print_record_field_types): Use print_record_field_types_dynamic.
10898
7d79de9a
TT
108992020-04-24 Tom Tromey <tromey@adacore.com>
10900
10901 * dwarf2/read.c (handle_data_member_location): New overload.
10902 (dwarf2_add_field): Use it.
10903 (decode_locdesc): Add "computed" parameter. Update comment.
10904 * gdbtypes.c (is_dynamic_type_internal): Also look for
10905 FIELD_LOC_KIND_DWARF_BLOCK.
10906 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
10907 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
10908 virtual base classes.
10909 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
10910 FIELD_LOC_KIND_DWARF_BLOCK.
10911
f8e89861
TT
109122020-04-24 Tom Tromey <tromey@adacore.com>
10913
10914 * dwarf2/read.c (read_structure_type): Handle dynamic length.
10915 * gdbtypes.c (is_dynamic_type_internal): Check
10916 TYPE_HAS_DYNAMIC_LENGTH.
10917 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
10918 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
10919 New macros.
10920 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
10921 constant.
10922
9c6a1327
TT
109232020-04-24 Tom Tromey <tromey@adacore.com>
10924
10925 * dwarf2/read.c (struct variant_field): Rewrite.
10926 (struct variant_part_builder): New.
10927 (struct nextfield): Remove "variant" field. Add "offset".
10928 (struct field_info): Add "current_variant_part" and
10929 "variant_parts".
10930 (alloc_discriminant_info): Remove.
10931 (alloc_rust_variant): New function.
10932 (quirk_rust_enum): Update.
10933 (dwarf2_add_field): Set "offset" member. Don't handle
10934 DW_TAG_variant_part.
10935 (offset_map_type): New typedef.
10936 (convert_variant_range, create_one_variant)
10937 (create_one_variant_part, create_variant_parts)
10938 (add_variant_property): New functions.
10939 (dwarf2_attach_fields_to_type): Call add_variant_property.
10940 (read_structure_type): Don't handle DW_TAG_variant_part.
10941 (handle_variant_part, handle_variant): New functions.
10942 (handle_struct_member_die): Use them.
10943 (process_structure_scope): Don't handle variant parts.
10944 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
10945 (struct discriminant_info): Remove.
10946 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
10947 (struct main_type) <flag_discriminated_union>: Remove.
10948 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
10949 (rust_enum_variant): Return int. Remove "contents". Rewrite.
10950 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
10951 Update.
10952 * valops.c (value_union_variant): Remove.
10953 * value.h (value_union_variant): Don't declare.
10954
b249d2c2
TT
109552020-04-24 Tom Tromey <tromey@adacore.com>
10956
10957 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
10958 (ada_value_primitive_packed_val): Update.
10959 * ada-valprint.c (ada_value_print_1): Update.
10960 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
10961 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
10962 just an address. Use evaluate_for_locexpr_baton.
10963 (dwarf2_evaluate_property): Update.
10964 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
10965 array_view.
10966 * findvar.c (default_read_var_value): Update.
10967 * gdbtypes.c (compute_variant_fields_inner)
10968 (resolve_dynamic_type_internal): Update.
10969 (resolve_dynamic_type): Change type of valaddr parameter.
10970 * gdbtypes.h (resolve_dynamic_type): Update.
10971 * valarith.c (value_subscripted_rvalue): Update.
10972 * value.c (value_from_contents_and_address): Update.
10973
61122aa9
TT
109742020-04-24 Tom Tromey <tromey@adacore.com>
10975
10976 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
10977 "push_initial_value" parameter.
10978 (dwarf2_evaluate_property): Likewise.
10979 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
10980
ef83a141
TT
109812020-04-24 Tom Tromey <tromey@adacore.com>
10982
10983 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
10984 (variant::matches, compute_variant_fields_recurse)
10985 (compute_variant_fields_inner, compute_variant_fields): New
10986 functions.
10987 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
10988 Use resolved_type after type is made.
10989 (operator==): Add new cases.
10990 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
10991 (struct discriminant_range, struct variant, struct variant_part):
10992 New.
10993 (union dynamic_prop_data) <variant_parts, original_type>: New
10994 members.
10995 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
10996 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
10997 constants.
10998 * value.c (unpack_bits_as_long): Now public.
10999 * value.h (unpack_bits_as_long): Declare.
11000
675127ec
TT
110012020-04-24 Tom Tromey <tromey@adacore.com>
11002
11003 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
11004 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
11005
9852ceef
HD
110062020-04-24 Hannes Domani <ssbssa@yahoo.de>
11007
11008 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
11009
7632c6ce
KR
110102020-04-24 Kamil Rytarowski <n54@gmx.com>
11011
11012 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
11013 (remove_fork_catchpoint, post_startup_inferior)
11014 (post_attach): Move...
11015 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
11016 (remove_fork_catchpoint, post_startup_inferior)
11017 (post_attach): ...here.
11018 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
11019 (remove_fork_catchpoint, post_startup_inferior)
11020 (post_attach): Move...
11021 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
11022 (remove_fork_catchpoint, post_startup_inferior)
11023 (post_attach): ...here.
11024
7be2bb4f
TT
110252020-04-24 Tom Tromey <tromey@adacore.com>
11026
11027 * nat/windows-nat.h (struct windows_thread_info)
11028 <pc_adjusted>: New member.
11029 * windows-nat.c (windows_fetch_one_register): Check
11030 pc_adjusted.
11031 (windows_nat_target::get_windows_debug_event)
11032 (windows_nat_target::wait): Set pc_adjusted.
11033
f80cb3b4
TV
110342020-04-24 Tom de Vries <tdevries@suse.de>
11035
11036 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
11037 Run gdb-add-index inside temp dir.
11038
29514b87
TT
110392020-04-23 Tom Tromey <tromey@adacore.com>
11040
11041 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
11042 in loop.
11043
5939967b
LM
110442020-04-23 Luis Machado <luis.machado@linaro.org>
11045
11046 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
11047 get_frame_register instead of gdbarch_unwind_pc.
11048
70bc38f5
TV
110492020-04-23 Tom de Vries <tdevries@suse.de>
11050
11051 * symtab.c (lookup_global_symbol): Prefer def over decl.
11052
de82891c
TV
110532020-04-23 Tom de Vries <tdevries@suse.de>
11054
11055 PR symtab/25807
11056 * block.c (best_symbol, better_symbol): Promote to external.
11057 * block.h (best_symbol, better_symbol): Declare.
11058 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
11059 decl.
11060
ecc6c606
TT
110612020-04-23 Tom Tromey <tromey@adacore.com>
11062
11063 PR ada/25837:
11064 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
11065 "const char *", not a "const std::string &".
11066 <name_and_matcher::operator==>: Update.
11067 * unittests/lookup_name_info-selftests.c: Change type of
11068 "result".
11069
740480b8
TT
110702020-04-23 Tom Tromey <tom@tromey.com>
11071
11072 * inferior.h (iterate_over_inferiors): Don't declare.
11073 * inferior.c (iterate_over_inferiors): Remove.
11074 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
11075 Remove.
11076 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
11077 use iterate_over_inferiors.
11078 (darwin_resume_inferior_it)
11079 (struct resume_inferior_threads_param)
11080 (darwin_resume_inferior_threads_it): Remove.
11081 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
11082
ae3ab1f0
TV
110832020-04-23 Tom de Vries <tdevries@suse.de>
11084
11085 * blockframe.c (find_pc_partial_function): Use
11086 find_pc_sect_compunit_symtab rather than
11087 objfile->sf->qf->find_pc_sect_compunit_symtab.
11088
317d2668
TV
110892020-04-22 Tom de Vries <tdevries@suse.de>
11090
11091 PR symtab/25764
11092 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
11093 in psymtabs.
11094
eea9e357
TV
110952020-04-22 Tom de Vries <tdevries@suse.de>
11096
11097 PR symtab/25801
11098 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
11099 symtabs.
11100
3d5afab3
TV
111012020-04-22 Tom de Vries <tdevries@suse.de>
11102
11103 PR symtab/25700
11104 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
11105 CU if already created.
11106
d43b7a2d
TBA
111072020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11108
11109 * infrun.c (displaced_step_fixup): Switch to the event_thread
11110 before calling displaced_step_restore, not after.
11111
d89edf9b
MM
111122020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11113
11114 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
11115 its inferior is not recorded by us.
11116 (record_btrace_target_open): Replace call to
11117 all_non_exited_threads () with call to current_inferior
11118 ()->non_exited_threads ().
11119 (record_btrace_target::stop_recording): Likewise.
11120 (record_btrace_target::close): Likewise.
11121 (record_btrace_target::wait): Likewise.
11122 (record_btrace_target::record_stop_replaying): Likewise.
11123
5897fd49
MM
111242020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11125
11126 * btrace.c (btrace_enable): Throw an error on double enables and
11127 when enabling recording fails.
11128 (btrace_disable): Throw an error if the thread is not recorded.
11129
1a476b6d
MM
111302020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11131
11132 * record-btrace.c (record_btrace_target::fetch_registers): Forward
11133 request if we do not have a thread_info.
11134
4778a5f8
TV
111352020-04-21 Tom de Vries <tdevries@suse.de>
11136
11137 PR gdb/25471
11138 * thread.c
11139 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
11140 exception in get_frame_id.
11141
0fa7617d
TT
111422020-04-20 Tom Tromey <tromey@adacore.com>
11143
11144 * python/python.c (struct gdbpy_event): Mark move constructor as
11145 noexcept.
11146 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
11147 constructor as noexcept.
11148 * completer.h (struct completion_result): Mark move constructor as
11149 noexcept.
11150 * completer.c (completion_result::completion_result): Use
11151 initialization style. Don't call reset_match_list.
11152
ad23bda0
MS
111532020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
11154
11155 * MAINTAINERS (Write After Approval): Add myself.
11156
45e1f031
TT
111572020-04-18 Tom Tromey <tom@tromey.com>
11158
11159 * windows-tdep.c (init_w32_command_list)
11160 (w32_prefix_command_valid): Restore.
11161 (_initialize_windows_tdep): Call init_w32_command_list.
11162
08feed99
TT
111632020-04-18 Tom Tromey <tom@tromey.com>
11164
11165 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
11166 * value.c (value_fn_field): Update.
11167 * valops.c (find_function_in_inferior)
11168 (value_allocate_space_in_inferior): Update.
11169 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11170 Update.
11171 * tui/tui-source.c (tui_source_window::set_contents): Update.
11172 * symtab.c (lookup_global_or_static_symbol)
11173 (find_function_start_sal_1, skip_prologue_sal)
11174 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
11175 * symmisc.c (dump_msymbols, dump_symtab_1)
11176 (maintenance_print_one_line_table): Update.
11177 * symfile.c (init_entry_point_info, section_is_mapped)
11178 (list_overlays_command, simple_read_overlay_table)
11179 (simple_overlay_update_1): Update.
11180 * stap-probe.c (handle_stap_probe): Update.
11181 * stabsread.c (dbx_init_float_type, define_symbol)
11182 (read_one_struct_field, read_enum_type, read_range_type): Update.
11183 * source.c (info_line_command): Update.
11184 * python/python.c (gdbpy_source_objfile_script)
11185 (gdbpy_execute_objfile_script): Update.
11186 * python/py-type.c (save_objfile_types): Update.
11187 * python/py-objfile.c (py_free_objfile): Update.
11188 * python/py-inferior.c (python_new_objfile): Update.
11189 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
11190 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
11191 (maintenance_check_psymtabs): Update.
11192 * printcmd.c (info_address_command): Update.
11193 * objfiles.h (struct objfile) <arch>: New method, from
11194 get_objfile_arch.
11195 (get_objfile_arch): Don't declare.
11196 * objfiles.c (get_objfile_arch): Remove.
11197 (filter_overlapping_sections): Update.
11198 * minsyms.c (msymbol_is_function): Update.
11199 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
11200 (output_nondebug_symbol): Update.
11201 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
11202 (mdebug_expand_psymtab): Update.
11203 * machoread.c (macho_add_oso_symfile): Update.
11204 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
11205 Update.
11206 * linux-fork.c (checkpoint_command): Update.
11207 * linespec.c (convert_linespec_to_sals): Update.
11208 * jit.c (finalize_symtab): Update.
11209 * infrun.c (insert_exception_resume_from_probe): Update.
11210 * ia64-tdep.c (ia64_find_unwind_table): Update.
11211 * hppa-tdep.c (internalize_unwinds): Update.
11212 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
11213 Update.
11214 * gcore.c (call_target_sbrk): Update.
11215 * elfread.c (record_minimal_symbol, elf_symtab_read)
11216 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
11217 (elf_gnu_ifunc_resolve_by_got): Update.
11218 * dwarf2/read.c (create_addrmap_from_index)
11219 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11220 (read_debug_names_from_section)
11221 (process_psymtab_comp_unit_reader, add_partial_symbol)
11222 (add_partial_subprogram, process_full_comp_unit)
11223 (read_file_scope, read_func_scope, read_lexical_block_scope)
11224 (read_call_site_scope, dwarf2_ranges_read)
11225 (dwarf2_record_block_ranges, dwarf2_add_field)
11226 (mark_common_block_symbol_computed, read_tag_pointer_type)
11227 (read_tag_string_type, dwarf2_init_float_type)
11228 (dwarf2_init_complex_target_type, read_base_type)
11229 (partial_die_info::read, partial_die_info::read)
11230 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
11231 (dwarf2_fetch_die_loc_sect_off): Update.
11232 * dwarf2/loc.c (dwarf2_find_location_expression)
11233 (class dwarf_evaluate_loc_desc, rw_pieced_value)
11234 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
11235 (dwarf2_loc_desc_get_symbol_read_needs)
11236 (locexpr_describe_location_piece, locexpr_describe_location_1)
11237 (loclist_describe_location): Update.
11238 * dwarf2/index-write.c (write_debug_names): Update.
11239 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
11240 * dtrace-probe.c (dtrace_process_dof): Update.
11241 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
11242 (process_one_symbol): Update.
11243 * ctfread.c (ctf_init_float_type, read_base_type): Update.
11244 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
11245 (coff_read_enum_type): Update.
11246 * cli/cli-cmds.c (edit_command, list_command): Update.
11247 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
11248 * breakpoint.c (create_overlay_event_breakpoint)
11249 (create_longjmp_master_breakpoint)
11250 (create_std_terminate_master_breakpoint)
11251 (create_exception_master_breakpoint, get_sal_arch): Update.
11252 * block.c (block_gdbarch): Update.
11253 * annotate.c (annotate_source_line): Update.
11254
0743fc83
TT
112552020-04-17 Tom Tromey <tromey@adacore.com>
11256
11257 * auto-load.c (show_auto_load_cmd): Remove.
11258 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
11259 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
11260 (maintenance_print_arc_command): Remove.
11261 * tui/tui-win.c (tui_command): Remove.
11262 (tui_get_cmd_list): Use add_basic_prefix_cmd.
11263 * tui/tui-layout.c (tui_layout_command): Remove.
11264 (_initialize_tui_layout): Use add_basic_prefix_cmd.
11265 * python/python.c (user_set_python, user_show_python): Remove.
11266 (_initialize_python): Use add_basic_prefix_cmd,
11267 add_show_prefix_cmd.
11268 * guile/guile.c (set_guile_command, show_guile_command): Remove.
11269 (install_gdb_commands): Use add_basic_prefix_cmd,
11270 add_show_prefix_cmd.
11271 (info_guile_command): Remove.
11272 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
11273 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
11274 add_show_prefix_cmd.
11275 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
11276 Remove do_set and do_show parameters.
11277 * cli/cli-style.c (set_style, show_style): Remove.
11278 (_initialize_cli_style): Use add_basic_prefix_cmd,
11279 add_show_prefix_cmd.
11280 (cli_style_option::add_setshow_commands): Remove do_set and
11281 do_show parameters.
11282 (cli_style_option::add_setshow_commands): Use
11283 add_basic_prefix_cmd, add_show_prefix_cmd.
11284 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
11285 (set_style_name): Remove.
11286 * cli/cli-dump.c (dump_command, append_command): Remove.
11287 (srec_dump_command, ihex_dump_command, verilog_dump_command)
11288 (tekhex_dump_command, binary_dump_command)
11289 (binary_append_command): Remove.
11290 (_initialize_cli_dump): Use add_basic_prefix_cmd.
11291 * windows-tdep.c (w32_prefix_command_valid): Remove global.
11292 (init_w32_command_list): Remove; move into ...
11293 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
11294 * valprint.c (set_print, show_print, set_print_raw)
11295 (show_print_raw): Remove.
11296 (_initialize_valprint): Use add_basic_prefix_cmd,
11297 add_show_prefix_cmd.
11298 * typeprint.c (set_print_type, show_print_type): Remove.
11299 (_initialize_typeprint): Use add_basic_prefix_cmd,
11300 add_show_prefix_cmd.
11301 * record.c (set_record_command, show_record_command): Remove.
11302 (_initialize_record): Use add_basic_prefix_cmd,
11303 add_show_prefix_cmd.
11304 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
11305 add_show_prefix_cmd.
11306 (info_command, show_command, set_debug, show_debug): Remove.
11307 * top.h (set_history, show_history): Don't declare.
11308 * top.c (set_history, show_history): Remove.
11309 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
11310 (unset_tdesc_cmd): Remove.
11311 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
11312 add_show_prefix_cmd.
11313 * symtab.c (info_module_command): Remove.
11314 (_initialize_symtab): Use add_basic_prefix_cmd.
11315 * symfile.c (overlay_command): Remove.
11316 (_initialize_symfile): Use add_basic_prefix_cmd.
11317 * sparc64-tdep.c (info_adi_command): Remove.
11318 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
11319 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
11320 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
11321 add_show_prefix_cmd.
11322 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
11323 (_initialize_serial): Use add_basic_prefix_cmd,
11324 add_show_prefix_cmd.
11325 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
11326 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
11327 add_show_prefix_cmd.
11328 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
11329 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
11330 add_show_prefix_cmd.
11331 * riscv-tdep.c (show_riscv_command, set_riscv_command)
11332 (show_debug_riscv_command, set_debug_riscv_command): Remove.
11333 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
11334 add_show_prefix_cmd.
11335 * remote.c (remote_command, set_remote_cmd): Remove.
11336 (_initialize_remote): Use add_basic_prefix_cmd.
11337 * record-full.c (set_record_full_command)
11338 (show_record_full_command): Remove.
11339 (_initialize_record_full): Use add_basic_prefix_cmd,
11340 add_show_prefix_cmd.
11341 * record-btrace.c (cmd_set_record_btrace)
11342 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
11343 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
11344 (cmd_show_record_btrace_pt): Remove.
11345 (_initialize_record_btrace): Use add_basic_prefix_cmd,
11346 add_show_prefix_cmd.
11347 * ravenscar-thread.c (set_ravenscar_command)
11348 (show_ravenscar_command): Remove.
11349 (_initialize_ravenscar): Use add_basic_prefix_cmd,
11350 add_show_prefix_cmd.
11351 * mips-tdep.c (show_mips_command, set_mips_command)
11352 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
11353 add_show_prefix_cmd.
11354 * maint.c (maintenance_command, maintenance_info_command)
11355 (maintenance_check_command, maintenance_print_command)
11356 (maintenance_set_cmd, maintenance_show_cmd): Remove.
11357 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
11358 add_show_prefix_cmd.
11359 (show_per_command_cmd): Remove.
11360 * maint-test-settings.c (maintenance_set_test_settings_cmd):
11361 Remove.
11362 (maintenance_show_test_settings_cmd): Remove.
11363 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
11364 add_show_prefix_cmd.
11365 * maint-test-options.c (maintenance_test_options_command):
11366 Remove.
11367 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
11368 * macrocmd.c (macro_command): Remove
11369 (_initialize_macrocmd): Use add_basic_prefix_cmd.
11370 * language.c (set_check, show_check): Remove.
11371 (_initialize_language): Use add_basic_prefix_cmd,
11372 add_show_prefix_cmd.
11373 * infcmd.c (unset_command): Remove.
11374 (_initialize_infcmd): Use add_basic_prefix_cmd.
11375 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
11376 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
11377 add_show_prefix_cmd.
11378 * go32-nat.c (go32_info_dos_command): Remove.
11379 (_initialize_go32_nat): Use add_basic_prefix_cmd.
11380 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
11381 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
11382 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
11383 (_initialize_frame): Use add_basic_prefix_cmd,
11384 add_show_prefix_cmd.
11385 * dcache.c (set_dcache_command, show_dcache_command): Remove.
11386 (_initialize_dcache): Use add_basic_prefix_cmd,
11387 add_show_prefix_cmd.
11388 * cp-support.c (maint_cplus_command): Remove.
11389 (_initialize_cp_support): Use add_basic_prefix_cmd.
11390 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
11391 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
11392 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
11393 add_basic_prefix_cmd, add_show_prefix_cmd.
11394 * breakpoint.c (save_command): Remove.
11395 (_initialize_breakpoint): Use add_basic_prefix_cmd.
11396 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
11397 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
11398 add_show_prefix_cmd.
11399 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
11400 (set_ada_command, show_ada_command): Remove.
11401 (_initialize_ada_language): Use add_basic_prefix_cmd,
11402 add_show_prefix_cmd.
11403 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
11404
3557f442
KR
114052020-04-16 Kamil Rytarowski <n54@gmx.com>
11406
11407 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
11408 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
11409
16197208
SM
114102020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11411
11412 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
11413 warning messages.
11414
00ac85d3
SM
114152020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11416
11417 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
11418 import table is not at beginning of .idata section.
11419
381ce63f
PA
114202020-04-16 Pedro Alves <palves@redhat.com>
11421
11422 * inferior.c (delete_inferior): Use delete operator directly
11423 instead of delete_program_space.
11424 * progspace.c (add_program_space): New, factored out from
11425 program_space::program_space.
11426 (remove_program_space): New, factored out from
11427 delete_program_space.
11428 (program_space::program_space): Remove intro comment. Rewrite.
11429 (program_space::~program_space): Remove intro comment. Call
11430 remove_program_space.
11431 (delete_program_space): Delete.
11432 * progspace.h (program_space::program_space): Make explicit. Move
11433 intro comment here, adjusted.
11434 (program_space::~program_space): Move intro comment here,
11435 adjusted.
11436 (delete_program_space): Remove.
11437
a010605f
TT
114382020-04-16 Tom Tromey <tromey@adacore.com>
11439
11440 * windows-nat.c (windows_nat::handle_access_violation): New
11441 function.
11442 * nat/windows-nat.h (handle_access_violation): Declare.
11443 * nat/windows-nat.c (handle_exception): Move Cygwin code to
11444 windows-nat.c. Call handle_access_violation.
11445
efba5c23
TV
114462020-04-16 Tom de Vries <tdevries@suse.de>
11447
11448 PR symtab/25791
11449 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
11450 CUs without psymtab.
11451
97ed802d
KB
114522020-04-16 Kevin Buettner <kevinb@redhat.com>
11453
11454 * python/python.c (do_start_initialization): Don't call
11455 PyEval_InitThreads for Python 3.9 and beyond.
11456
c7d64809
KR
114572020-04-15 Kamil Rytarowski <n54@gmx.com>
11458
11459 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
11460 thread functions.
11461 (obsd_nat_target::wait): Likewise.
11462
ce127a96
TT
114632020-04-15 Tom Tromey <tromey@adacore.com>
11464
11465 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
11466 (DEBUG_EXCEPT): Use debug_printf.
11467
99f1bc6a
AB
114682020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
11469
11470 * completer.c (class completion_tracker::completion_hash_entry)
11471 <hash_name>: New member function.
11472 (completion_tracker::discard_completions): New callback to hash a
11473 completion_hash_entry, pass this to htab_create_alloc.
11474
a0e9b532
JT
114752016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
11476
11477 * windows-nat.c (windows_make_so): Warn rather than stopping with
11478 an error if realpath() fails.
11479
06ca5dd4
KR
114802020-04-14 Kamil Rytarowski <n54@gmx.com>
11481
11482 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
11483 (nbsd_nat_target::info_proc): Add do_status.
11484
194d088f
TV
114852020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
11486 Tom de Vries <tdevries@suse.de>
11487
11488 PR symtab/25718
11489 * psympriv.h (struct partial_symtab::read_symtab)
11490 (struct partial_symtab::expand_psymtab)
11491 (struct partial_symtab::read_dependencies): Update comments.
11492 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
11493 read_symtab for includer.
11494 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
11495 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
11496 (struct dwarf2_include_psymtab::m_readin): Remove.
11497 (struct dwarf2_include_psymtab::includer): New member function.
11498 (dwarf2_psymtab::expand_psymtab): Assert !readin.
11499
c1a66c06
TV
115002020-04-14 Tom de Vries <tdevries@suse.de>
11501
11502 PR symtab/25720
11503 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
11504 with NULL symbol_matcher and lookup_name.
11505 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
11506 and lookup_name.
11507 * dwarf2/read.c (dw2_expand_symtabs_matching)
11508 (dw2_debug_names_expand_symtabs_matching): Same.
11509 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
11510 Make lookup_name a pointer. Update comment.
11511 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
11512 lookup_name being a pointer.
11513 * symfile.c (expand_symtabs_matching): Same.
11514 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
11515 * linespec.c (iterate_over_all_matching_symtabs): Same.
11516
400b5eca
TT
115172020-04-13 Tom Tromey <tom@tromey.com>
11518
11519 * run-on-main-thread.c: Update include.
11520 * unittests/main-thread-selftests.c: Update include.
11521 * tui/tui-win.c: Update include.
11522 * tui/tui-io.c: Update include.
11523 * tui/tui-interp.c: Update include.
11524 * tui/tui-hooks.c: Update include.
11525 * top.h: Update include.
11526 * top.c: Update include.
11527 * ser-base.c: Update include.
11528 * remote.c: Update include.
11529 * remote-notif.c: Update include.
11530 * remote-fileio.c: Update include.
11531 * record-full.c: Update include.
11532 * record-btrace.c: Update include.
11533 * python/python.c: Update include.
11534 * posix-hdep.c: Update include.
11535 * mingw-hdep.c: Update include.
11536 * mi/mi-main.c: Update include.
11537 * mi/mi-interp.c: Update include.
11538 * main.c: Update include.
11539 * linux-nat.c: Update include.
11540 * interps.c: Update include.
11541 * infrun.c: Update include.
11542 * inf-loop.c: Update include.
11543 * event-top.c: Update include.
11544 * event-loop.c: Move to ../gdbsupport/.
11545 * event-loop.h: Move to ../gdbsupport/.
11546 * async-event.h: Update include.
11547 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
11548
93b54c8e
TT
115492020-04-13 Tom Tromey <tom@tromey.com>
11550
11551 * tui/tui-win.c: Include async-event.h.
11552 * remote.c: Include async-event.h.
11553 * remote-notif.c: Include async-event.h.
11554 * record-full.c: Include async-event.h.
11555 * record-btrace.c: Include async-event.h.
11556 * infrun.c: Include async-event.h.
11557 * event-top.c: Include async-event.h.
11558 * event-loop.h: Move some declarations to async-event.h.
11559 * event-loop.c: Don't include ser-event.h or top.h. Move some
11560 code to async-event.c.
11561 * async-event.h: New file.
11562 * async-event.c: New file.
11563 * Makefile.in (COMMON_SFILES): Add async-event.c.
11564 (HFILES_NO_SRCDIR): Add async-event.h.
11565
c1cd3163
TT
115662020-04-13 Tom Tromey <tom@tromey.com>
11567
11568 * utils.c (flush_streams): New function.
11569 * event-loop.c (gdb_wait_for_event): Call flush_streams.
11570
29f2bf4f
TT
115712020-04-13 Tom Tromey <tom@tromey.com>
11572
11573 * event-loop.c (handle_file_event): Use warning, not
11574 printf_unfiltered.
11575
98029d02
TT
115762020-04-13 Tom Tromey <tom@tromey.com>
11577
11578 * event-loop.c: Include <chrono>.
11579
06cc9596
TT
115802020-04-13 Tom Tromey <tom@tromey.com>
11581
11582 * gdb_select.h: Move to ../gdbsupport/.
11583 * event-loop.c: Update include path.
11584 * top.c: Update include path.
11585 * ser-base.c: Update include path.
11586 * ui-file.c: Update include path.
11587 * ser-tcp.c: Update include path.
11588 * guile/scm-ports.c: Update include path.
11589 * posix-hdep.c: Update include path.
11590 * ser-unix.c: Update include path.
11591 * gdb_usleep.c: Update include path.
11592 * mingw-hdep.c: Update include path.
11593 * inflow.c: Update include path.
11594 * infrun.c: Update include path.
11595 * event-top.c: Update include path.
11596
8ae8e197
TT
115972020-04-13 Tom Tromey <tom@tromey.com>
11598
11599 * configure: Rebuild.
11600 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
11601
58cf28e8
TT
116022020-04-13 Tom Tromey <tom@tromey.com>
11603
11604 * event-loop.h (start_event_loop): Don't declare.
11605 * event-loop.c (start_event_loop): Move...
11606 * main.c (start_event_loop): ...here. Now static.
11607
b7f999ae
SDJ
116082020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
11609
11610 * MAINTAINERS: Update my email address.
11611
1085dfd4
KR
116122020-04-12 Kamil Rytarowski <n54@gmx.com>
11613
11614 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
11615 IP_ALL.
11616
49d1d1f5
KR
116172020-04-12 Kamil Rytarowski <n54@gmx.com>
11618
11619 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 11620 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 11621
b4848d2a
KR
116222020-04-12 Kamil Rytarowski <n54@gmx.com>
11623
11624 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 11625 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 11626
51c133d5
KR
116272020-04-12 Kamil Rytarowski <n54@gmx.com>
11628
11629 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
11630
54b8cbd0
KR
116312020-04-11 Kamil Rytarowski <n54@gmx.com>
11632
11633 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
11634 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
11635 (nbsd_nat_target::info_proc): New functions.
11636 * nbsd-nat.c (kinfo_get_vmmap): New function.
11637 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
11638 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
11639 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
11640 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
11641 functions.
11642 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
11643 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
11644 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
11645 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
11646 (KINFO_VME_FLAG_GROWS_DOWN): New.
11647
cf83625d
AS
116482020-04-10 Artur Shepilko <nomadbyte@gmail.com>
11649
11650 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
11651 bit shift.
11652
0c4311ab
TT
116532020-04-10 Tom Tromey <tromey@adacore.com>
11654
11655 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
11656
3e65b3e9
TT
116572020-04-10 Tom Tromey <tromey@adacore.com>
11658
11659 * symtab.c (get_symbol_address, get_msymbol_address): Skip
11660 separate debug files.
11661
13302e95
HD
116622020-04-10 Hannes Domani <ssbssa@yahoo.de>
11663
11664 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11665 Move to...
11666 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11667 ... here.
11668 * windows-nat.c (windows_nat_target::get_windows_debug_event):
11669 Check for STATUS_WX86_BREAKPOINT.
11670 (windows_nat_target::wait): Same.
11671
bdfc1e8a
TV
116722020-04-10 Tom de Vries <tdevries@suse.de>
11673
11674 PR cli/25808
11675 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
11676
f4460aec
SM
116772020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11678
11679 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
11680 (Write After Approval): Remove Tom de Vries.
11681
a25198bb
BE
116822020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
11683
11684 revert partially:
11685 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11686
aac66a4c
SM
11687 * buildsym.c (record_line): Fix undefined behavior and preserve
11688 lines at eof.
a25198bb 11689
206c98a6
KR
116902020-04-09 Kamil Rytarowski <n54@gmx.com>
11691
11692 * auxv.h (svr4_auxv_parse): New.
11693 * auxv.c (default_auxv_parse): Split into default_auxv_parse
11694 and generic_auxv_parse.
11695 (svr4_auxv_parse): Add.
11696 * obsd-tdep.c: Include "auxv.h".
11697 (obsd_auxv_parse): Remove.
11698 (obsd_init_abi): Remove comment.
11699 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
11700 from `obsd_auxv_parse' to `svr4_auxv_parse'.
11701 * nbsd-tdep.c: Include "auxv.h".
11702 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
11703
71fbdbaf
TT
117042020-04-08 Tom Tromey <tromey@adacore.com>
11705
11706 * nat/windows-nat.h (last_wait_event): Don't declare.
11707 (wait_for_debug_event): Update comment.
11708 * nat/windows-nat.c (last_wait_event): Now static.
11709
2c1d95e8
TT
117102020-04-08 Tom Tromey <tromey@adacore.com>
11711
11712 * windows-nat.c (wait_for_debug_event): Move to
11713 nat/windows-nat.c.
11714 * nat/windows-nat.h (wait_for_debug_event): Declare.
11715 * nat/windows-nat.c (wait_for_debug_event): Move from
11716 windows-nat.c. No longer static.
11717
d2977bc4
TT
117182020-04-08 Tom Tromey <tromey@adacore.com>
11719
11720 * windows-nat.c (get_windows_debug_event): Use
11721 fetch_pending_stop.
11722 * nat/windows-nat.h (fetch_pending_stop): Declare.
11723 * nat/windows-nat.c (fetch_pending_stop): New function.
11724
e758e19c
TT
117252020-04-08 Tom Tromey <tromey@adacore.com>
11726
11727 * windows-nat.c (windows_continue): Use matching_pending_stop and
11728 continue_last_debug_event.
11729 * nat/windows-nat.h (matching_pending_stop)
11730 (continue_last_debug_event): Declare.
11731 * nat/windows-nat.c (DEBUG_EVENTS): New define.
11732 (matching_pending_stop, continue_last_debug_event): New
11733 functions.
11734
8d30e395
TT
117352020-04-08 Tom Tromey <tromey@adacore.com>
11736
11737 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
11738 (handle_exception_result): Move to nat/windows-nat.h.
11739 (DEBUG_EXCEPTION_SIMPLE): Remove.
11740 (windows_nat::handle_ms_vc_exception): New function.
11741 (handle_exception): Move to nat/windows-nat.c.
11742 (get_windows_debug_event): Update.
11743 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
11744 nat/windows-nat.c.
11745 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
11746 (handle_exception_result): Move from windows-nat.c.
11747 (handle_exception): Declare.
11748 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
11749 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
11750 windows-nat.c.
11751
29de418d
TT
117522020-04-08 Tom Tromey <tromey@adacore.com>
11753
11754 * windows-nat.c (exception_count, event_count): Remove.
11755 (handle_exception, get_windows_debug_event)
11756 (do_initial_windows_stuff): Update.
11757
a816ba18
TT
117582020-04-08 Tom Tromey <tromey@adacore.com>
11759
11760 * windows-nat.c (windows_nat::handle_load_dll)
11761 (windows_nat::handle_unload_dll): Rename. No longer static.
11762 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
11763 Declare.
11764
a00caa12
TT
117652020-04-08 Tom Tromey <tromey@adacore.com>
11766
11767 * complaints.h (stop_whining): Declare at top-level.
11768 (complaint): Don't declare stop_whining.
11769
d41b524f
TT
117702020-04-08 Tom Tromey <tromey@adacore.com>
11771
11772 * windows-nat.c (windows_nat::handle_output_debug_string):
11773 Rename. No longer static.
11774 * nat/windows-nat.h (handle_output_debug_string): Declare.
11775
3c76026d
TT
117762020-04-08 Tom Tromey <tromey@adacore.com>
11777
11778 * windows-nat.c (current_process_handle, current_process_id)
11779 (main_thread_id, last_sig, current_event, last_wait_event)
11780 (current_windows_thread, desired_stop_thread_id, pending_stops)
11781 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
11782 (display_selectors, fake_create_process)
11783 (get_windows_debug_event): Update.
11784 * nat/windows-nat.h (current_process_handle, current_process_id)
11785 (main_thread_id, last_sig, current_event, last_wait_event)
11786 (current_windows_thread, desired_stop_thread_id, pending_stops)
11787 (struct pending_stop, siginfo_er): Move from windows-nat.c.
11788 * nat/windows-nat.c (current_process_handle, current_process_id)
11789 (main_thread_id, last_sig, current_event, last_wait_event)
11790 (current_windows_thread, desired_stop_thread_id, pending_stops)
11791 (siginfo_er): New globals. Move from windows-nat.c.
11792
9d8679cc
TT
117932020-04-08 Tom Tromey <tromey@adacore.com>
11794
11795 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
11796 (handle_load_dll): Update.
11797 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
11798
28688adf
TT
117992020-04-08 Tom Tromey <tromey@adacore.com>
11800
11801 * windows-nat.c (enum thread_disposition_type): Move to
11802 nat/windows-nat.h.
11803 (windows_nat::thread_rec): Rename from thread_rec. No longer
11804 static.
11805 (windows_add_thread, windows_nat_target::fetch_registers)
11806 (windows_nat_target::store_registers, handle_exception)
11807 (windows_nat_target::resume, get_windows_debug_event)
11808 (windows_nat_target::get_tib_address)
11809 (windows_nat_target::thread_name)
11810 (windows_nat_target::thread_alive): Update.
11811 * nat/windows-nat.h (enum thread_disposition_type): Move from
11812 windows-nat.c.
11813 (thread_rec): Declare.
11814
4834dad0
TT
118152020-04-08 Tom Tromey <tromey@adacore.com>
11816
11817 * windows-nat.c: Add "using namespace".
11818 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
11819 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
11820
65bafd5b
TT
118212020-04-08 Tom Tromey <tromey@adacore.com>
11822
11823 * nat/windows-nat.h (struct windows_thread_info): Declare
11824 destructor.
11825 * nat/windows-nat.c (~windows_thread_info): New.
11826
0a4afda3
TT
118272020-04-08 Tom Tromey <tromey@adacore.com>
11828
11829 PR gdb/22992
11830 * windows-nat.c (current_event): Update comment.
11831 (last_wait_event, desired_stop_thread_id): New globals.
11832 (struct pending_stop): New.
11833 (pending_stops): New global.
11834 (windows_nat_target) <stopped_by_sw_breakpoint>
11835 <supports_stopped_by_sw_breakpoint>: New methods.
11836 (windows_fetch_one_register): Add assertions. Adjust PC.
11837 (windows_continue): Handle pending stops. Suspend other threads
11838 when stepping. Use last_wait_event
11839 (wait_for_debug_event): New function.
11840 (get_windows_debug_event): Use wait_for_debug_event. Handle
11841 pending stops. Queue spurious stops.
11842 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
11843 (windows_nat_target::kill): Use wait_for_debug_event.
11844 * nat/windows-nat.h (struct windows_thread_info)
11845 <stopped_at_software_breakpoint>: New field.
11846 * nat/windows-nat.c (windows_thread_info::resume): Clear
11847 stopped_at_software_breakpoint.
11848
8e61ebec
TT
118492020-04-08 Tom Tromey <tromey@adacore.com>
11850
11851 * windows-nat.c (enum thread_disposition_type): New.
11852 (thread_rec): Replace "get_context" parameter with "disposition";
11853 change type.
11854 (windows_add_thread, windows_nat_target::fetch_registers)
11855 (windows_nat_target::store_registers, handle_exception)
11856 (windows_nat_target::resume, get_windows_debug_event)
11857 (windows_nat_target::get_tib_address)
11858 (windows_nat_target::thread_name)
11859 (windows_nat_target::thread_alive): Update.
11860
98a03287
TT
118612020-04-08 Tom Tromey <tromey@adacore.com>
11862
11863 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
11864 (windows_continue): Use windows_continue::resume.
11865 * nat/windows-nat.h (struct windows_thread_info) <suspend,
11866 resume>: Declare new methods.
11867 * nat/windows-nat.c: New file.
11868 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
11869
7c7411bc
TT
118702020-04-08 Tom Tromey <tromey@adacore.com>
11871
11872 * windows-nat.c (windows_add_thread, windows_delete_thread)
11873 (windows_nat_target::fetch_registers)
11874 (windows_nat_target::store_registers, fake_create_process)
11875 (windows_nat_target::resume, windows_nat_target::resume)
11876 (get_windows_debug_event, windows_nat_target::wait)
11877 (windows_nat_target::pid_to_str)
11878 (windows_nat_target::get_tib_address)
11879 (windows_nat_target::get_ada_task_ptid)
11880 (windows_nat_target::thread_name)
11881 (windows_nat_target::thread_alive): Use lwp, not tid.
11882
2950fdf7
TT
118832020-04-08 Tom Tromey <tromey@adacore.com>
11884
11885 * windows-nat.c (handle_exception)
11886 (windows_nat_target::thread_name): Update.
11887 * nat/windows-nat.h (windows_thread_info): Remove destructor.
11888 <name>: Now unique_xmalloc_ptr.
11889
62fe396b
TT
118902020-04-08 Tom Tromey <tromey@adacore.com>
11891
11892 * windows-nat.c (thread_rec)
11893 (windows_nat_target::fetch_registers): Update.
11894 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
11895 Update comment.
11896 <debug_registers_changed, reload_context>: Now bool.
11897
e9534bd2
TT
118982020-04-08 Tom Tromey <tromey@adacore.com>
11899
11900 * windows-nat.c (windows_add_thread): Use new.
11901 (windows_init_thread_list, windows_delete_thread): Use delete.
11902 (get_windows_debug_event): Update.
11903 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
11904 destructor, and initializers.
11905
ae1f8880
TT
119062020-04-08 Tom Tromey <tromey@adacore.com>
11907
11908 * windows-nat.c (struct windows_thread_info): Remove.
11909 * nat/windows-nat.h: New file.
11910
55a1e039
TT
119112020-04-08 Tom Tromey <tromey@adacore.com>
11912
11913 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
11914 (thread_rec, windows_add_thread, windows_delete_thread)
11915 (windows_continue): Update.
11916
93366324
TT
119172020-04-08 Tom Tromey <tromey@adacore.com>
11918
11919 * windows-nat.c (struct windows_thread_info): Remove typedef.
11920 (thread_head): Remove.
11921 (thread_list): New global.
11922 (thread_rec, windows_add_thread, windows_init_thread_list)
11923 (windows_delete_thread, windows_continue): Update.
11924
0f2265e2
SM
119252020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11926
11927 * windows-tdep.h (windows_init_abi): Add comment.
11928 (cygwin_init_abi): New declaration.
11929 * windows-tdep.c: Split signal enumeration in two, one for
11930 Windows and one for Cygwin.
11931 (windows_gdb_signal_to_target): Only deal with signal of the
11932 Windows OS ABI.
11933 (cygwin_gdb_signal_to_target): New function.
11934 (windows_init_abi): Rename to windows_init_abi_common, don't set
11935 gdb_signal_to_target gdbarch method. Add new new function with
11936 this name.
11937 (cygwin_init_abi): New function.
11938 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
11939 comment. Don't call windows_init_abi.
11940 (amd64_windows_init_abi): Add comment, call windows_init_abi.
11941 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
11942 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
11943 i386_windows_init_abi_common, don't call windows_init_abi. Add
11944 a new function of this name.
11945 (i386_cygwin_init_abi): New function.
11946 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
11947 OS ABI Cygwin.
11948
3810f182
SM
119492020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11950
11951 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
11952 parameter.c.
11953 (dwarf2_read_gdb_index): Update.
11954
063f8e80
KR
119552020-04-07 Kamil Rytarowski <n54@gmx.com>
11956
11957 * nbsd-tdep.c: Include "objfiles.h".
11958 (nbsd_skip_solib_resolver): New.
11959 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
11960
85a9510c 119612020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11962
11963 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
11964 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
11965 with DW_LLE_base_addressx are being emitted in DWARFv5.
11966 Add the newly added kind DW_LOC_OFFSET_PAIR also.
11967 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
11968 unsigned integer.
11969
9fc3eaae 119702020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11971
11972 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
11973 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
11974 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
11975 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
11976 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
11977 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
11978 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
11979
11980
41144253 119812020-04-07 Nitika Achra <Nitika.Achra@amd.com>
11982
11983 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
11984 (read_loclist_index): New function definition.
11985 (lookup_loclist_base): New function definition.
11986 (read_loclist_header): New function definition.
11987 (dwarf2_cu): Add loclist_base and loclist_header field.
11988 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
11989 (read_full_die_1): Read the value of DW_AT_loclists_base.
11990 (read_attribute_reprocess): Handle DW_FORM_loclistx.
11991 (read_attribute_value): Handle DW_FORM_loclistx.
11992 (skip_one_die): Handle DW_FORM_loclistx.
11993 (loclist_header): New structure declaration.
11994 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
11995
9f4e76a4
SM
119962020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
11997
11998 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
11999 constructor. Remove `addr` parameter from other constructor and
12000 add `per_cu` parameter.
12001 * dwarf2/read.c (create_partial_symtab): Update.
12002
25c11aca
TV
120032020-04-07 Tom de Vries <tdevries@suse.de>
12004
12005 PR symtab/25796
12006 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
12007 (partial_die_info::fixup): Inherit has_const_value.
12008
5707e24b
TV
120092020-04-07 Tom de Vries <tdevries@suse.de>
12010
12011 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
12012 symbols without address.
12013
05f00e22
KR
120142020-04-06 Kamil Rytarowski <n54@gmx.com>
12015
12016 * nbsd-nat.h (struct thread_info): Add forward declaration.
12017 (nbsd_nat_target::thread_alive): Add.
12018 (nbsd_nat_target::thread_name): Likewise.
12019 (nbsd_nat_target::update_thread_list): Likewise.
12020 (update_thread_list::post_attach): Likewise.
12021 (post_attach::pid_to_str): Likewise.
12022 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
12023 (nbsd_thread_lister): Add.
12024 (nbsd_nat_target::thread_alive): Likewise.
12025 (nbsd_nat_target::thread_name): Likewise.
12026 (nbsd_add_threads): Likewise.
12027 (update_thread_list::post_attach): Likewise.
12028 (nbsd_nat_target::update_thread_list): Likewise.
12029 (post_attach::pid_to_str): Likewise.
12030
6ee448cc
TT
120312020-04-06 Tom Tromey <tromey@adacore.com>
12032
12033 * ada-valprint.c (print_variant_part): Extract the variant field.
12034 (print_field_values): Use the field as the outer value when
12035 recursing.
12036
dea34e8c
TT
120372020-04-06 Tom Tromey <tromey@adacore.com>
12038
12039 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
12040 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
12041 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
12042 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
12043 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
12044
93689ce9
TT
120452020-04-06 Tom Tromey <tromey@adacore.com>
12046
12047 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
12048 TYPE_CODE_ERROR.
12049
79743962
KR
120502020-04-06 Kamil Rytarowski <n54@gmx.com>
12051
12052 * nbsd-tdep.c: Include "gdbarch.h".
12053 Define enum with NetBSD signal numbers.
12054 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
12055 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
12056 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
12057 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
12058 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
12059 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
12060 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
12061 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12062 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
12063 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
12064 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
12065 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
12066
9e7c9a03
HD
120672020-04-03 Hannes Domani <ssbssa@yahoo.de>
12068
12069 PR gdb/25325
12070 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
12071
d9e49b61
TT
120722020-04-03 Tom Tromey <tromey@adacore.com>
12073
12074 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
12075 Read constant block.
12076
e0fc5c3f
SM
120772020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12078
12079 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
12080 (gdb_bfd_get_full_section_contents): New declaration.
12081 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
12082 * windows-tdep.c (is_linked_with_cygwin_dll): Use
12083 gdb_bfd_get_full_section_contents.
12084
e2ff18a0
SM
120852020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12086
12087 * exec.c (build_section_table): Replace internal_error with
12088 gdb_assert.
12089 (section_table_xfer_memory_partial): Likewise.
12090 * mdebugread.c (parse_partial_symbols): Likewise.
12091 * psymtab.c (lookup_partial_symbol): Likewise.
12092 * utils.c (wrap_here): Likewise.
12093
0830d301
TT
120942020-04-02 Tom Tromey <tromey@adacore.com>
12095
12096 * f-lang.c (build_fortran_types): Use arch_type to initialize
12097 builtin_complex_s32 in the TYPE_CODE_ERROR case.
12098
e7da7f8f
TT
120992020-04-02 Tom Tromey <tromey@adacore.com>
12100
12101 * dwarf2/read.c (partial_die_info::read): Do not create a vector
12102 of attributes.
12103
c90d28ac
AB
121042020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
12105 Bernd Edlinger <bernd.edlinger@hotmail.de>
12106 Tom Tromey <tromey@adacore.com>
12107
12108 * buildsym.c (buildsym_compunit::record_line): Remove
12109 deduplication code.
12110
1aa98955
TV
121112020-04-02 Tom de Vries <tdevries@suse.de>
12112
12113 PR ada/24671
12114 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
12115
d3214198
TV
121162020-04-02 Tom de Vries <tdevries@suse.de>
12117
12118 * dwarf2/read.c (dwarf2_gdb_index_functions,
12119 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
12120 NULL.
12121 * psymtab.c (psym_lookup_global_symbol_language): New function.
12122 (psym_functions): Init psym_lookup_global_symbol_language with
12123 psym_lookup_global_symbol_language.
12124 * symfile-debug.c (debug_sym_quick_functions): Init
12125 lookup_global_symbol_language with NULL.
12126 * symfile.c (set_initial_language): Remove fixme comment.
12127 * symfile.h (struct quick_symbol_functions): Add
12128 lookup_global_symbol_language.
12129 * symtab.c (find_quick_global_symbol_language): New function.
12130 (find_main_name): Use find_quick_global_symbol_language.
12131
2836752f
SM
121322020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
12133
12134 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
12135
64dc2d4b
BE
121362020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12137
12138 * buildsym.c (record_line): Fix undefined behavior and preserve
12139 lines at eof.
12140
bbe3dc41
BE
121412020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12142
12143 * buildsym.c (record_line): Fix the resizing condition.
12144
6b4a335b
TT
121452020-04-01 Tom Tromey <tom@tromey.com>
12146
12147 * value.h (value_literal_complex): Add comment.
12148 * valops.c (value_literal_complex): Refer to value.h.
12149
3638a098
TT
121502020-04-01 Tom Tromey <tom@tromey.com>
12151
12152 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
12153 (scalar_type): New rule, from typebase.
12154 (typebase): Use scalar_type. Recognize complex types.
12155 (field_name): Handle FLOAT_KEYWORD.
12156 (ident_tokens): Add _Complex and __complex__.
12157
c34e8714
TT
121582020-04-01 Tom Tromey <tom@tromey.com>
12159
12160 PR exp/25299:
12161 * valarith.c (promotion_type, complex_binop): New functions.
12162 (scalar_binop): Handle complex numbers. Use promotion_type.
12163 (value_pos, value_neg, value_complement): Handle complex numbers.
12164
fa649bb7
TT
121652020-04-01 Tom Tromey <tom@tromey.com>
12166
12167 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
12168 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
12169 (parse_number): Handle complex numbers.
12170
981c08ce
TT
121712020-04-01 Tom Tromey <tom@tromey.com>
12172
12173 * c-valprint.c (c_decorations): Change complex suffix to "i".
12174
4c99290d
TT
121752020-04-01 Tom Tromey <tom@tromey.com>
12176
12177 * valprint.c (generic_value_print_complex): Use accessors.
12178 * value.h (value_real_part, value_imaginary_part): Declare.
12179 * valops.c (value_real_part, value_imaginary_part): New
12180 functions.
12181 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
12182
5b930b45
TT
121832020-04-01 Tom Tromey <tom@tromey.com>
12184
12185 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
12186 (read_range_type): Update.
12187 * mdebugread.c (basic_type): Update.
12188 * go-lang.c (build_go_types): Use init_complex_type.
12189 * gdbtypes.h (struct main_type) <complex_type>: New member.
12190 (init_complex_type): Update.
12191 (arch_complex_type): Don't declare.
12192 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
12193 Make name if none given. Use alloc_type_copy. Look for cached
12194 complex type.
12195 (arch_complex_type): Remove.
12196 (gdbtypes_post_init): Use init_complex_type.
12197 * f-lang.c (build_fortran_types): Use init_complex_type.
12198 * dwarf2/read.c (read_base_type): Update.
12199 * d-lang.c (build_d_types): Use init_complex_type.
12200 * ctfread.c (read_base_type): Update.
12201
53cccef1
TBA
122022020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12203
12204 * infrun.c (stop_all_threads): Update assertion, plus when
12205 stopping threads, take into account that we might be trying
12206 to stop an all-stop target.
12207 (stop_waiting): Call 'stop_all_threads' if there exists a
12208 non-stop target.
12209
a0714d30
TBA
122102020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12211
12212 * target.h (exists_non_stop_target): New function declaration.
12213 * target.c (exists_non_stop_target): New function.
12214
60e22c1e
HD
122152020-04-01 Hannes Domani <ssbssa@yahoo.de>
12216
12217 PR gdb/24789
12218 * eval.c (is_integral_or_integral_reference): New function.
12219 (evaluate_subexp_standard): Allow integer references in
12220 pointer arithmetic.
12221
e139a727
TBA
122222020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12223
12224 * remote.c (remote_target::remote_parse_stop_reply): Remove the
12225 check for no ptid in the stop reply when the target is non-stop.
12226
e0802d59
TT
122272020-04-01 Tom Tromey <tromey@adacore.com>
12228
12229 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
12230 "name" parameter to rvalue reference. Initialize m_name_holder.
12231 <lookup_name_info>: New overloads.
12232 <name>: Return gdb::string_view.
12233 <c_str>: New method.
12234 <make_ignore_params>: Update.
12235 <search_name_hash>: Update.
12236 <language_lookup_name>: Return const char *.
12237 <m_name>: Change type.
12238 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
12239 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
12240 (lookup_name_info::match_any): Update.
12241 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
12242 Update.
12243 * minsyms.c (linkage_name_str): Update.
12244 * language.c (default_symbol_name_matcher): Update.
12245 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
12246 Update.
12247 * ada-lang.c (ada_fold_name): Change parameter to string_view.
12248 (ada_lookup_name_info::ada_lookup_name_info): Update.
12249 (literal_symbol_name_matcher): Update.
12250
8c072cb6
TT
122512020-04-01 Tom Tromey <tromey@adacore.com>
12252
12253 * psymtab.c (psymtab_search_name): Remove function.
12254 (psym_lookup_symbol): Create search name and lookup name here.
12255 (lookup_partial_symbol): Remove "name" parameter; add
12256 lookup_name.
12257 (psym_expand_symtabs_for_function): Update.
12258
6f29a534
TT
122592020-03-31 Joel Jones <joelkevinjones@gmail.com>
12260
12261 PR tui/25597:
12262 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
12263
af62665e
TT
122642020-03-31 Tom Tromey <tromey@adacore.com>
12265
12266 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
12267 memcpy.
12268
d1a89da5
NC
122692020-03-30 Nelson Chu <nelson.chu@sifive.com>
12270
12271 * features/riscv/32bit-csr.xml: Regenerated.
12272 * features/riscv/64bit-csr.xml: Regenerated.
12273
d8af9068
TT
122742020-03-30 Tom Tromey <tromey@adacore.com>
12275
12276 * ada-valprint.c (print_variant_part): Update.
12277 * ada-lang.h (ada_which_variant_applies): Update.
12278 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
12279 outer_valaddr parameters; replace with "outer" value parameter.
12280 (to_fixed_variant_branch_type): Update.
12281
227c0bf4
PFC
122822020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12283
12284 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
12285 <list>. Remove inclusion of observable.h.
12286 (PPC_DEBUG_CURRENT_VERSION): Move up define.
12287 (struct arch_lwp_info): New struct.
12288 (class ppc_linux_dreg_interface): New class.
12289 (struct ppc_linux_process_info): New struct.
12290 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
12291 <low_new_clone, low_forget_process, low_prepare_to_resume>
12292 <copy_thread_dreg_state, mark_thread_stale>
12293 <mark_debug_registers_changed, register_hw_breakpoint>
12294 <clear_hw_breakpoint, register_wp, clear_wp>
12295 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
12296 <num_memory_accesses, get_trigger_type>
12297 <create_watchpoint_request, hwdebug_point_cmp>
12298 <init_arch_lwp_info, get_arch_lwp_info>
12299 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
12300 methods.
12301 <struct ptid_hash>: New inner struct.
12302 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
12303 members.
12304 (saved_dabr_value, hwdebug_info, max_slots_number)
12305 (struct hw_break_tuple, struct thread_points, ppc_threads)
12306 (have_ptrace_hwdebug_interface)
12307 (hwdebug_find_thread_points_by_tid)
12308 (hwdebug_insert_point, hwdebug_remove_point): Remove.
12309 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
12310 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
12311 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
12312 use m_dreg_interface.
12313 (hwdebug_point_cmp): Change to...
12314 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
12315 reference arguments instead of pointers.
12316 (ppc_linux_nat_target::ranged_break_num_registers): Use
12317 m_dreg_interface.
12318 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
12319 m_dreg_interface. Call register_hw_breakpoint.
12320 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
12321 m_dreg_interface. Call clear_hw_breakpoint.
12322 (get_trigger_type): Change to...
12323 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
12324 comment.
12325 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
12326 use m_dreg_interface. Call register_hw_breakpoint.
12327 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
12328 use m_dreg_interface. Call clear_hw_breakpoint.
12329 (can_use_watchpoint_cond_accel): Change to...
12330 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
12331 method. Update comment, use m_dreg_interface and
12332 m_process_info.
12333 (calculate_dvc): Change to...
12334 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
12335 m_dreg_interface.
12336 (num_memory_accesses): Change to...
12337 (ppc_linux_nat_target::num_memory_accesses): ...this method.
12338 (check_condition): Change to...
12339 (ppc_linux_nat_target::check_condition): ...this method.
12340 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
12341 comment, use m_dreg_interface.
12342 (create_watchpoint_request): Change to...
12343 (ppc_linux_nat_target::create_watchpoint_request): ...this
12344 method. Use m_dreg_interface.
12345 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
12346 m_dreg_interface. Call register_hw_breakpoint or register_wp.
12347 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
12348 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
12349 (ppc_linux_nat_target::low_forget_process)
12350 (ppc_linux_nat_target::low_new_fork)
12351 (ppc_linux_nat_target::low_new_clone)
12352 (ppc_linux_nat_target::low_delete_thread)
12353 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
12354 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
12355 only call mark_thread_stale.
12356 (ppc_linux_thread_exit): Remove.
12357 (ppc_linux_nat_target::stopped_data_address): Change to...
12358 (ppc_linux_nat_target::low_stopped_data_address): This. Add
12359 comment, use m_dreg_interface and m_thread_hw_breakpoints.
12360 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
12361 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
12362 comment. Call low_stopped_data_address.
12363 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
12364 m_dreg_interface.
12365 (ppc_linux_nat_target::masked_watch_num_registers): Use
12366 m_dreg_interface.
12367 (ppc_linux_nat_target::copy_thread_dreg_state)
12368 (ppc_linux_nat_target::mark_thread_stale)
12369 (ppc_linux_nat_target::mark_debug_registers_changed)
12370 (ppc_linux_nat_target::register_hw_breakpoint)
12371 (ppc_linux_nat_target::clear_hw_breakpoint)
12372 (ppc_linux_nat_target::register_wp)
12373 (ppc_linux_nat_target::clear_wp)
12374 (ppc_linux_nat_target::init_arch_lwp_info)
12375 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
12376 (_initialize_ppc_linux_nat): Remove observer callback.
12377
4db10d8f
PFC
123782020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12379
12380 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
12381 (ppc_linux_nat_target::auxv_parse)
12382 (ppc_linux_nat_target::read_description)
12383 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
12384 Move up.
12385
1310c1b0
PFC
123862020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12387
12388 * linux-nat.h (low_new_clone): New method.
12389 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
12390
69b037c3
SM
123912020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12392
12393 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
12394 (dbx_expand_psymtab): ... this.
12395 (start_psymtab): Update.
12396 * mdebugread.c (psymtab_to_symtab_1): Rename to...
12397 (mdebug_expand_psymtab): ... this.
12398 (parse_partial_symbols): Update.
12399 (new_psymtab): Update.
12400 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
12401 (xcoff_expand_psymtab): ... this.
12402 (xcoff_start_psymtab): Update.
12403
48993951
SM
124042020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12405
12406 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
12407 <expand_dependencies>: ... this.
12408 * psymtab.c (partial_symtab::read_dependencies): Rename to...
12409 (partial_symtab::expand_dependencies): ... this.
12410 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
12411 Update.
12412 (dwarf2_psymtab::expand_psymtab): Update.
12413 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12414 * mdebugread.c (psymtab_to_symtab_1): Update.
12415 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12416
3ad83046
SM
124172020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12418
12419 * psympriv.h (discard_psymtab): Remove.
12420 * dbxread.c (dbx_end_psymtab): Update.
12421 * xcoffread.c (xcoff_end_psymtab): Update.
12422
4d1b9ab6
TT
124232020-03-28 Tom Tromey <tom@tromey.com>
12424
12425 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
12426 comment.
12427
f1749218
TT
124282020-03-28 Tom Tromey <tom@tromey.com>
12429
12430 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
12431
ebea7626
HD
124322020-03-27 Hannes Domani <ssbssa@yahoo.de>
12433
12434 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12435
a879b4d5
JB
124362020-03-26 John Baldwin <jhb@FreeBSD.org>
12437
12438 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
12439
0826b30a
TT
124402020-03-26 Tom Tromey <tom@tromey.com>
12441
12442 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
12443 (mark_common_block_symbol_computed, read_tag_string_type)
12444 (attr_to_dynamic_prop, read_subrange_type): Update.
12445 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
12446 to be methods on struct attribute.
12447 (skip_one_die, process_imported_unit_die, read_namespace_alias)
12448 (read_call_site_scope, partial_die_info::read)
12449 (partial_die_info::read, lookup_die_type, follow_die_ref):
12450 Update.
12451 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
12452 from dwarf2_get_ref_die_offset.
12453 (attribute::constant_value): New method, from
12454 dwarf2_get_attr_constant_value.
12455 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
12456 Declare method.
12457 <constant_value>: New method.
12458
2b2558bf
TT
124592020-03-26 Tom Tromey <tom@tromey.com>
12460
12461 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
12462 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
12463 (dwarf_type_encoding_name): Move to stringify.c.
12464 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
12465 * dwarf2/stringify.c: New file.
12466 * dwarf2/stringify.h: New file.
12467
eeb64781
TT
124682020-03-26 Tom Tromey <tom@tromey.com>
12469
12470 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
12471 Rewrite.
12472
a39fdb41
TT
124732020-03-26 Tom Tromey <tom@tromey.com>
12474
12475 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
12476 methods.
12477 * dwarf2/read.c (lookup_addr_base): Move to die.h.
12478 (lookup_ranges_base): Likewise.
12479 (read_cutu_die_from_dwo, read_full_die_1): Update.
12480
436c571c
TT
124812020-03-26 Tom Tromey <tom@tromey.com>
12482
12483 * dwarf2/read.c (read_import_statement, read_file_scope)
12484 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
12485 (read_lexical_block_scope, read_call_site_scope)
12486 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
12487 (handle_struct_member_die, process_structure_scope)
12488 (update_enumeration_type_from_children)
12489 (process_enumeration_scope, read_array_type, read_common_block)
12490 (read_namespace, read_module, read_subroutine_type): Update.
12491 (sibling_die): Remove.
12492
052c8bb8
TT
124932020-03-26 Tom Tromey <tom@tromey.com>
12494
12495 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
12496 (build_type_psymtabs_reader, read_structure_type)
12497 (read_enumeration_type, read_full_die_1): Update.
12498 (dwarf2_attr_no_follow): Move to die.h.
12499 * dwarf2/die.h (struct die_info) <attr>: New method.
12500
2b24b6e4
TT
125012020-03-26 Tom Tromey <tom@tromey.com>
12502
12503 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
12504 <base_address>: Now an optional.
12505 (dwarf2_find_base_address, dwarf2_rnglists_process)
12506 (dwarf2_ranges_process, fill_in_loclist_baton)
12507 (dwarf2_symbol_mark_computed): Update.
12508
c2d50fd0
TT
125092020-03-26 Tom Tromey <tom@tromey.com>
12510
12511 * dwarf2/read.c (struct die_info): Move to die.h.
12512 * dwarf2/die.h: New file.
12513
0df7ad3a
TT
125142020-03-26 Tom Tromey <tom@tromey.com>
12515
12516 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
12517 * dwarf2/read.c
12518 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12519 Move to line-header.c.
12520 (read_checked_initial_length_and_offset, read_formatted_entries):
12521 Likewise.
12522 (dwarf_decode_line_header): Split into two.
12523 * dwarf2/line-header.c
12524 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12525 Move from read.c.
12526 (read_checked_initial_length_and_offset, read_formatted_entries):
12527 Likewise.
12528 (dwarf_decode_line_header): New function, split from read.c.
12529
86c0bb4c
TT
125302020-03-26 Tom Tromey <tom@tromey.com>
12531
12532 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
12533 Declare method.
12534 * dwarf2/read.c (read_attribute_value): Update.
12535 (dwarf2_per_objfile::read_line_string): Rename from
12536 read_indirect_line_string.
12537 (read_formatted_entries): Update.
12538
2ef46c2f
TT
125392020-03-26 Tom Tromey <tom@tromey.com>
12540
12541 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
12542 variable.
12543
4f9c1eda
TT
125442020-03-26 Tom Tromey <tom@tromey.com>
12545
12546 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
12547 const.
12548 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
12549 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
12550 parameter const.
12551
5a0e026f
TT
125522020-03-26 Tom Tromey <tom@tromey.com>
12553
12554 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
12555 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
12556 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
12557 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
12558
8844c11b
TT
125592020-03-26 Tom Tromey <tom@tromey.com>
12560
12561 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
12562 file_names_size, file_full_name, file_file_name>: Use const.
12563 <file_name_at, file_names>: Add const overload.
12564 * dwarf2/line-header.c (line_header::file_file_name)
12565 (line_header::file_full_name): Update.
12566
c90ec28a
TT
125672020-03-26 Tom Tromey <tom@tromey.com>
12568
12569 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
12570 (macro_start_file, consume_improper_spaces)
12571 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
12572 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
12573 (dwarf_decode_macros): Move to macro.c.
12574 * dwarf2/macro.c: New file.
12575 * dwarf2/macro.h: New file.
12576 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
12577
4f44ae6c
TT
125782020-03-26 Tom Tromey <tom@tromey.com>
12579
12580 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
12581 method.
12582 * dwarf2/section.c: New method. From
12583 read_indirect_string_at_offset_from.
12584 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
12585 (read_indirect_string_at_offset_from): Move to section.c.
12586 (read_indirect_string_at_offset): Rewrite.
12587 (read_indirect_line_string_at_offset): Remove.
12588 (read_indirect_string, read_indirect_line_string)
12589 (dwarf_decode_macro_bytes): Update.
12590
a0194fa8
TT
125912020-03-26 Tom Tromey <tom@tromey.com>
12592
12593 * dwarf2/section.h (struct dwarf2_section_info)
12594 <overload_complaint>: Declare.
12595 (dwarf2_section_buffer_overflow_complaint): Don't declare.
12596 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
12597 Rename from dwarf2_section_buffer_overflow_complaint.
12598 * dwarf2/read.c (skip_one_die, partial_die_info::read)
12599 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
12600
3d27bbdb
TT
126012020-03-26 Tom Tromey <tom@tromey.com>
12602
12603 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
12604 Declare.
12605 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
12606 Move from read.c.
12607 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
12608 to section.c.
12609
9eac9650
TT
126102020-03-26 Tom Tromey <tom@tromey.com>
12611
12612 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
12613
bf80d710
TT
126142020-03-26 Tom Tromey <tom@tromey.com>
12615
12616 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
12617 "builder".
12618 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
12619 parameter.
12620 (dwarf_decode_macros): Update.
12621
0314b390
TT
126222020-03-26 Tom Tromey <tom@tromey.com>
12623
12624 * dwarf2/read.c (read_attribute_value): Update.
12625 (read_indirect_string_from_dwz): Move to dwz.c; change into
12626 method.
12627 (dwarf_decode_macro_bytes): Update.
12628 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
12629 * dwarf2/dwz.c: New file.
12630 * Makefile.in (COMMON_SFILES): Add dwz.c.
12631
9fda78b6
TT
126322020-03-26 Tom Tromey <tom@tromey.com>
12633
12634 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
12635 * dwarf2/read.c: Add include.
12636 * dwarf2/index-write.c: Add include.
12637 * dwarf2/index-cache.c: Add include.
12638 * dwarf2/dwz.h: New file.
12639
33aa3c10
TT
126402020-03-25 Tom Tromey <tom@tromey.com>
12641
12642 * compile/compile-object-load.c (get_out_value_type): Mention
12643 correct symbol name in error message.
12644
d503b685
HD
126452020-03-25 Hannes Domani <ssbssa@yahoo.de>
12646
12647 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12648
7b1eff95
TV
126492020-03-25 Tom de Vries <tdevries@suse.de>
12650
12651 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
12652 * symmisc.c (dump_symtab_1): Print user and includes fields.
12653 (maintenance_info_symtabs): Same.
12654
dd895392
AB
126552020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
12656
12657 PR gdb/25534
12658 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
12659 (riscv_regcache_cooked_write): New function.
12660 (riscv_push_dummy_call): Use new function.
12661 (riscv_return_value): Likewise.
12662
5ab2fbf1
SM
126632020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
12664
12665 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
12666 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
12667 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
12668 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
12669 * infrun.c (follow_fork): Likewise.
12670 (follow_fork_inferior): Likewise.
12671 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
12672 * linux-nat.h (class linux_nat_target): Likewise.
12673 * remote.c (class remote_target) <follow_fork>: Likewise.
12674 (remote_target::follow_fork): Likewise.
12675 * target-delegates.c: Re-generate.
12676 * target.c (default_follow_fork): Likewise.
12677 (target_follow_fork): Likewise.
12678 * target.h (struct target_ops) <follow_fork>: Likewise.
12679 (target_follow_fork): Likewise.
12680
a64fafb5
TV
126812020-03-24 Tom de Vries <tdevries@suse.de>
12682
12683 * psymtab.c (maintenance_info_psymtabs): Print user field.
12684
fe26d3a3
TT
126852020-03-20 Tom Tromey <tromey@adacore.com>
12686
12687 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
12688 const.
12689 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
12690 const.
12691
c884cc46
SM
126922020-03-20 Simon Marchi <simon.marchi@efficios.com>
12693
12694 * ptrace.m4: Don't check for ptrace declaration.
12695 * config.in: Re-generate.
12696 * configure: Re-generate.
12697 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
12698 not defined.
12699
1ff700c2
KR
127002020-03-20 Kamil Rytarowski <n54@gmx.com>
12701
12702 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
12703 `PTRACE_TYPE_RET'.
12704 * i386-bsd-nat.c (gdb_ptrace): Likewise.
12705 * sparc-nat.c (gdb_ptrace): Likewise.
12706 * x86-bsd-nat.c (gdb_ptrace): Likewise.
12707
f7d4f0b1
TT
127082020-03-20 Tom Tromey <tromey@adacore.com>
12709
12710 * c-exp.y (lex_one_token): Fix assert.
12711
f67210ff
TT
127122020-03-20 Tom Tromey <tromey@adacore.com>
12713
12714 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
12715 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
12716 strncpy call.
12717
1773be9e
TT
127182020-03-20 Tom Tromey <tromey@adacore.com>
12719
12720 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
12721
70304be9
TT
127222020-03-20 Tom Tromey <tromey@adacore.com>
12723
12724 * ada-valprint.c (print_variant_part): Remove parameters; switch
12725 to value-based API.
12726 (print_field_values): Likewise.
12727 (ada_val_print_struct_union): Likewise.
12728 (ada_value_print_1): Update.
12729
9faa006d
KR
127302020-03-20 Kamil Rytarowski <n54@gmx.com>
12731
12732 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
12733 nbsd_nat_target instead of inf_ptrace_target.
12734 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12735 nbsd_nat_target.
12736
4a90f062
KR
127372020-03-20 Kamil Rytarowski <n54@gmx.com>
12738
12739 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
12740 it to the ptrace call.
12741 * (store_registers): Likewise.
12742
127432020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
12744
12745 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
12746 it to the ptrace call.
12747 * (store_registers): Likewise.
12748
2d07da27
LM
127492020-03-19 Luis Machado <luis.machado@linaro.org>
12750
12751 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
12752 valid, fetch vg value from ptrace.
12753
f09db380
KR
127542020-03-19 Kamil Rytarowski <n54@gmx.com>
12755 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
12756 * inf-ptrace.c: Likewise.
12757 * (gdb_ptrace): Add.
12758 * (inf_ptrace_target::resume): Update.
12759 * (inf_ptrace_target::xfer_partial): Likewise.
12760 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
12761 * (inf_ptrace_peek_poke): Update.
12762
fcc7376e
KR
127632020-03-19 Kamil Rytarowski <n54@gmx.com>
12764
12765 * x86-bsd-nat.c (gdb_ptrace): New.
12766 * (x86bsd_dr_set): Add new argument `ptid'.
12767 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
12768 x86bsd_dr_set_addr): Update.
12769
cada5fc9
AB
127702020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12771
12772 * remote.c (remote_target::process_stop_reply): Handle events for
12773 all threads differently.
12774
19a2740f
AB
127752020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12776
12777 * completer.c (completion_tracker::remove_completion): Define new
12778 function.
12779 * completer.h (completion_tracker::remove_completion): Declare new
12780 function.
12781 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
12782 when adding a C++ function symbol.
12783
724fd9ba
AB
127842020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12785
12786 * completer.c (completion_tracker::completion_hash_entry): Define
12787 new class.
12788 (advance_to_filename_complete_word_point): Call
12789 recompute_lowest_common_denominator.
12790 (completion_tracker::completion_tracker): Call discard_completions
12791 to setup the hash table.
12792 (completion_tracker::discard_completions): Allow for being called
12793 from the constructor, pass new equal function, and element deleter
12794 when constructing the hash table. Initialise new class member
12795 variables.
12796 (completion_tracker::maybe_add_completion): Remove use of
12797 m_entries_vec, and store more information into m_entries_hash.
12798 (completion_tracker::recompute_lcd_visitor): New function, most
12799 content taken from...
12800 (completion_tracker::recompute_lowest_common_denominator):
12801 ...here, this now just visits each item in the hash calling the
12802 above visitor.
12803 (completion_tracker::build_completion_result): Remove use of
12804 m_entries_vec, call recompute_lowest_common_denominator.
12805 * completer.h (completion_tracker::have_completions): Remove use
12806 of m_entries_vec.
12807 (completion_tracker::completion_hash_entry): Declare new class.
12808 (completion_tracker::recompute_lowest_common_denominator): Change
12809 function signature.
12810 (completion_tracker::recompute_lcd_visitor): Declare new function.
12811 (completion_tracker::m_entries_vec): Delete.
12812 (completion_tracker::m_entries_hash): Initialize to NULL.
12813 (completion_tracker::m_lowest_common_denominator_valid): New
12814 member variable.
12815 (completion_tracker::m_lowest_common_denominator_max_length): New
12816 member variable.
12817
5a82b8a1
KR
128182020-03-17 Kamil Rytarowski <n54@gmx.com>
12819
12820 * regformats/regdef.h: Put reg in gdb namespace.
12821
fb516a69
KR
128222020-03-17 Kamil Rytarowski <n54@gmx.com>
12823
12824 * i386-bsd-nat.c (gdb_ptrace): New.
12825 * (i386bsd_fetch_inferior_registers,
12826 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12827 * (i386bsd_fetch_inferior_registers,
12828 i386bsd_store_inferior_registers) Use gdb_ptrace.
12829
1c0aa1fb
KR
128302020-03-17 Kamil Rytarowski <n54@gmx.com>
12831
12832 * amd64-bsd-nat.c (gdb_ptrace): New.
12833 * (amd64bsd_fetch_inferior_registers,
12834 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12835 * (amd64bsd_fetch_inferior_registers,
12836 amd64bsd_store_inferior_registers) Use gdb_ptrace.
12837
5ccd2fb7
KR
128382020-03-17 Kamil Rytarowski <n54@gmx.com>
12839
12840 * user-regs.c (user_reg::read): Rename to...
12841 (user_reg::xread): ...this.
12842 * (append_user_reg): Rename argument `read' to `xread'.
12843 * (user_reg_add_builtin): Likewise.
12844 * (user_reg_add): Likewise.
12845 * (value_of_user_reg): Likewise.
12846
2108a63a
KR
128472020-03-17 Kamil Rytarowski <n54@gmx.com>
12848
12849 * sparc-nat.c (gdb_ptrace): New.
12850 * sparc-nat.c (sparc_fetch_inferior_registers)
12851 (sparc_store_inferior_registers) Remove obsolete comment.
12852 * sparc-nat.c (sparc_fetch_inferior_registers)
12853 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
12854 * sparc-nat.c (sparc_fetch_inferior_registers)
12855 (sparc_store_inferior_registers) Use gdb_ptrace.
12856
a225c9a8
KR
128572020-03-17 Kamil Rytarowski <n54@gmx.com>
12858
12859 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
12860 it to the ptrace call.
12861 * sh-nbsd-nat.c (store_registers): Likewise.
12862
98097623
KR
128632020-03-17 Kamil Rytarowski <n54@gmx.com>
12864
12865 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
12866 nbsd_nat_target instead of inf_ptrace_target.
12867 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12868 nbsd_nat_target.
12869
9e38d619
KR
128702020-03-17 Kamil Rytarowski <n54@gmx.com>
12871
12872 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
12873
a2ecbe9f
KR
128742020-03-17 Kamil Rytarowski <n54@gmx.com>
12875
12876 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
12877 <sys/sysctl.h>.
12878 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
12879
58990295
TV
128802020-03-17 Tom de Vries <tdevries@suse.de>
12881
12882 PR gdb/23710
12883 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
12884 fields.
12885 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
12886 fields.
12887 (process_imported_unit_die): Skip import of c++ CUs.
12888
771dd3a8
TT
128892020-03-16 Tom Tromey <tom@tromey.com>
12890
12891 * p-valprint.c (pascal_object_print_value): Initialize
12892 base_value.
12893
817a7585
AK
128942020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
12895 Shahab Vahedi <shahab@synopsys.com>
12896
12897 * Makefile.in: Add arch/arc.o
12898 * configure.tgt: Likewise.
12899 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
12900 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 12901 (arc_read_description): New function to cache target descriptions.
817a7585
AK
12902 * arc-tdep.h (arc_read_description): Add proto type.
12903 * arch/arc.c: New file.
12904 * arch/arc.h: Likewise.
12905 * features/Makefile: Replace old target descriptions with new.
12906 * features/arc-arcompact.c: Remove.
12907 * features/arc-arcompact.xml: Likewise.
12908 * features/arc-v2.c: Likewise
12909 * features/arc-v2.xml: Likewise
12910 * features/arc/aux-arcompact.xml: New file.
12911 * features/arc/aux-v2.xml: Likewise.
12912 * features/arc/core-arcompact.xml: Likewise.
12913 * features/arc/core-v2.xml: Likewise.
12914 * features/arc/aux-arcompact.c: Generate.
12915 * features/arc/aux-v2.c: Likewise.
12916 * features/arc/core-arcompact.c: Likewise.
12917 * features/arc/core-v2.c: Likewise.
12918 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
12919
67430cd0
TT
129202020-03-16 Tom Tromey <tromey@adacore.com>
12921
12922 PR gdb/25663:
12923 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
12924 putting value into bcache.
12925
30efb6c7
SM
129262020-03-16 Simon Marchi <simon.marchi@efficios.com>
12927
12928 PR gdb/21500
12929 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
12930 to...
12931 (amd64_windows_init_abi_common): ... this. Don't set size of
12932 long type.
12933 (amd64_windows_init_abi): New function.
12934 (amd64_cygwin_init_abi): New function.
12935 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
12936 the Cygwin OS ABI.
12937 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
12938 comment.
12939
8db52437
SM
129402020-03-16 Simon Marchi <simon.marchi@efficios.com>
12941
12942 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
12943 * windows-tdep.c (CYGWIN_DLL_NAME): New.
12944 (pe_import_directory_entry): New struct type.
12945 (is_linked_with_cygwin_dll): New function.
12946 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
12947 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
12948 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
12949
5982a56a
SM
129502020-03-16 Simon Marchi <simon.marchi@efficios.com>
12951
12952 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
12953 i386_cygwin_core_osabi_sniffer.
12954
7a1998df
SM
129552020-03-16 Simon Marchi <simon.marchi@efficios.com>
12956
12957 * i386-cygwin-tdep.c: Rename to...
12958 * i386-windows-tdep.c: ... this.
12959 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
12960 i386-windows-tdep.c.
12961 * configure.tgt: Likewise.
12962
053205cc
SM
129632020-03-16 Simon Marchi <simon.marchi@efficios.com>
12964
12965 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
12966 * osabi.c (gdb_osabi_names): Add "Windows".
12967 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
12968 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
12969 (i386_cygwin_core_osabi_sniffer): New function, extracted from
12970 i386_cygwin_osabi_sniffer.
12971 (_initialize_i386_cygwin_tdep): Register OS ABI
12972 GDB_OSABI_WINDOWS for i386.
12973 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
12974 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
12975 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
12976 for x86-64.
12977 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
12978 when the target matches '*-*-mingw*'.
12979
fe4b2ee6
SM
129802020-03-16 Simon Marchi <simon.marchi@efficios.com>
12981
12982 * defs.h (enum gdb_osabi): Move to...
12983 * osabi.h (enum gdb_osabi): ... here.
12984 * gdbarch.sh: Include osabi.h in gdbarch.h.
12985 * gdbarch.h: Re-generate.
12986
cb9b645d
SM
129872020-03-16 Simon Marchi <simon.marchi@efficios.com>
12988
12989 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
12990 function.
12991 (_initialize_amd64_windows_tdep): Register osabi sniffer.
12992
3293bbaf
TT
129932020-03-14 Tom Tromey <tom@tromey.com>
12994
12995 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
12996 for C++.
12997 (c_type_print_modifier): Likewise. Add "language" parameter.
12998 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
12999 (c_type_print_base_1): Update.
13000 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
13001 constants.
13002 * type-stack.c (type_stack::insert): Handle tp_atomic and
13003 tp_restrict.
13004 (type_stack::follow_type_instance_flags): Likewise.
13005 (type_stack::follow_types): Likewise. Merge type-following code.
13006 * c-exp.y (RESTRICT, ATOMIC): New tokens.
13007 (space_identifier, cv_with_space_id)
13008 (const_or_volatile_or_space_identifier_noopt)
13009 (const_or_volatile_or_space_identifier): Remove.
13010 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
13011 rules.
13012 (ptr_operator, typebase): Update.
13013 (enum token_flag) <FLAG_C>: New constant.
13014 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
13015 "_Atomic".
13016 (lex_one_token): Handle FLAG_C.
13017
154151a6
KR
130182020-03-14 Kamil Rytarowski <n54@gmx.com>
13019
13020 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
13021 it to the ptrace call.
13022 * m68k-bsd-nat.c (store_registers): Likewise.
13023
bc107784
KR
130242020-03-14 Kamil Rytarowski <n54@gmx.com>
13025
13026 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
13027 gdb_byte *.
13028 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
13029 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
13030 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
13031
01a80117
KR
130322020-03-14 Kamil Rytarowski <n54@gmx.com>
13033
13034 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
13035 nbsd_nat_target instead of inf_ptrace_target.
13036 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13037 nbsd_nat_target.
13038
f90280ca
KR
130392020-03-14 Kamil Rytarowski <n54@gmx.com>
13040
13041 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
13042 register_t.
13043
6def66f1
KR
130442020-03-14 Kamil Rytarowski <n54@gmx.com>
13045
13046 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
13047 it to the ptrace call.
13048 * alpha-bsd-nat.c (store_registers): Likewise.
13049
66eaca97
KR
130502020-03-14 Kamil Rytarowski <n54@gmx.com>
13051
13052 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
13053 includes.
13054 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
13055 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
13056 fill_fpregset): Likewise.
13057
4fed520b
KR
130582020-03-14 Kamil Rytarowski <n54@gmx.com>
13059
13060 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
13061 nbsd_nat_target instead of inf_ptrace_target.
13062 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13063 nbsd_nat_target.
13064
2190cf06
KR
130652020-03-14 Kamil Rytarowski <n54@gmx.com>
13066
13067 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
13068 register_t.
13069
75c56d3d
KR
130702020-03-14 Kamil Rytarowski <n54@gmx.com>
13071
13072 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
13073 it to the ptrace call.
13074 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
13075 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
13076 * arm-nbsd-nat.c (store_register): Likewise.
13077 * arm-nbsd-nat.c (store_regs): Likewise.
13078 * arm-nbsd-nat.c (store_fp_register): Likewise.
13079 * arm-nbsd-nat.c (store_fp_regs): Likewise.
13080
6018d381
KR
130812020-03-14 Kamil Rytarowski <n54@gmx.com>
13082
13083 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
13084 nbsd_nat_target instead of inf_ptrace_target.
13085 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13086 nbsd_nat_target.
13087
013f99f0
KR
130882020-03-14 Kamil Rytarowski <n54@gmx.com>
13089
13090 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
13091 it to the ptrace call.
13092 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
13093
12753073
KR
130942020-03-14 Kamil Rytarowski <n54@gmx.com>
13095
6227b330
KR
13096 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
13097 it to the ptrace call.
13098 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
13099
131002020-03-14 Kamil Rytarowski <n54@gmx.com>
13101
13102 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
13103 gdb_byte *.
12753073
KR
13104 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
13105
d5be5fa4
KR
131062020-03-14 Kamil Rytarowski <n54@gmx.com>
13107
13108 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
13109 instead of inf_ptrace_target.
13110 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13111 nbsd_nat_target.
13112
8110f842
KR
131132020-03-14 Kamil Rytarowski <n54@gmx.com>
13114
13115 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13116 register_t.
13117
52feded7
KR
131182020-03-14 Kamil Rytarowski <n54@gmx.com>
13119
13120 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13121 register_t.
13122
25567eee
KR
131232020-03-14 Kamil Rytarowski <n54@gmx.com>
13124
13125 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
13126 register_t.
13127
426a9c18
TT
131282020-03-13 Tom Tromey <tom@tromey.com>
13129
13130 * value.h (val_print): Don't declare.
13131 * valprint.h (val_print_array_elements)
13132 (val_print_scalar_formatted, generic_val_print): Don't declare.
13133 * valprint.c (generic_val_print_array): Take a struct value.
13134 (generic_val_print_ptr, generic_val_print_memberptr)
13135 (generic_val_print_bool, generic_val_print_int)
13136 (generic_val_print_char, generic_val_print_complex)
13137 (generic_val_print): Remove.
13138 (generic_value_print): Update.
13139 (do_val_print): Remove unused parameters. Don't call
13140 la_val_print.
13141 (val_print): Remove.
13142 (common_val_print): Update. Don't call value_check_printable.
13143 (val_print_scalar_formatted, val_print_array_elements): Remove.
13144 * rust-lang.c (rust_val_print): Remove.
13145 (rust_language_defn): Update.
13146 * p-valprint.c (pascal_val_print): Remove.
13147 (pascal_value_print_inner): Update.
13148 (pascal_object_print_val_fields, pascal_object_print_val):
13149 Remove.
13150 (pascal_object_print_static_field): Update.
13151 * p-lang.h (pascal_val_print): Don't declare.
13152 * p-lang.c (pascal_language_defn): Update.
13153 * opencl-lang.c (opencl_language_defn): Update.
13154 * objc-lang.c (objc_language_defn): Update.
13155 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
13156 * m2-lang.h (m2_val_print): Don't declare.
13157 * m2-lang.c (m2_language_defn): Update.
13158 * language.h (struct language_defn) <la_val_print>: Remove.
13159 * language.c (unk_lang_value_print_inner): Rename. Change
13160 argument types.
13161 (unknown_language_defn, auto_language_defn): Update.
13162 * go-valprint.c (go_val_print): Remove.
13163 * go-lang.h (go_val_print): Don't declare.
13164 * go-lang.c (go_language_defn): Update.
13165 * f-valprint.c (f_val_print): Remove.
13166 * f-lang.h (f_value_print): Don't declare.
13167 * f-lang.c (f_language_defn): Update.
13168 * d-valprint.c (d_val_print): Remove.
13169 * d-lang.h (d_value_print): Don't declare.
13170 * d-lang.c (d_language_defn): Update.
13171 * cp-valprint.c (cp_print_value_fields)
13172 (cp_print_value_fields_rtti, cp_print_value): Remove.
13173 (cp_print_static_field): Update.
13174 * c-valprint.c (c_val_print_array, c_val_print_ptr)
13175 (c_val_print_struct, c_val_print_union, c_val_print_int)
13176 (c_val_print_memberptr, c_val_print): Remove.
13177 * c-lang.h (c_val_print_array, cp_print_value_fields)
13178 (cp_print_value_fields_rtti): Don't declare.
13179 * c-lang.c (c_language_defn, cplus_language_defn)
13180 (asm_language_defn, minimal_language_defn): Update.
13181 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
13182 (ada_val_print_enum): Take a struct value.
13183 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
13184 (ada_val_print): Remove.
13185 (ada_value_print_1): Update.
13186 (printable_val_type): Remove.
13187 * ada-lang.h (ada_val_print): Don't declare.
13188 * ada-lang.c (ada_language_defn): Update.
13189
42331a1e
TT
131902020-03-13 Tom Tromey <tom@tromey.com>
13191
13192 * valprint.c (do_val_print): Update.
13193 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
13194 a struct value.
13195 (value_to_value_object_no_release): Declare.
13196 * python/py-value.c (value_to_value_object_no_release): New
13197 function.
13198 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
13199 struct value.
13200 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
13201 function.
13202 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
13203 a struct value.
13204 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
13205 Declare.
13206 (gdbscm_apply_val_pretty_printer): Take a struct value.
13207 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
13208 value.
13209 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
13210 value.
13211 * extension-priv.h (struct extension_language_ops)
13212 <apply_val_pretty_printer>: Take a struct value.
13213 * cp-valprint.c (cp_print_value): Create a struct value.
13214 (cp_print_value): Update.
13215
3a916a97
TT
132162020-03-13 Tom Tromey <tom@tromey.com>
13217
13218 * ada-valprint.c (print_field_values): Call common_val_print.
13219
b59eac37
TT
132202020-03-13 Tom Tromey <tom@tromey.com>
13221
13222 * ada-valprint.c (val_print_packed_array_elements): Remove
13223 bitoffset and val parameters. Call common_val_print.
13224 (ada_val_print_string): Remove offset, address, and original_value
13225 parameters.
13226 (ada_val_print_array): Update.
13227 (ada_value_print_array): New function.
13228 (ada_value_print_1): Call it.
13229
03371129
TT
132302020-03-13 Tom Tromey <tom@tromey.com>
13231
13232 * ada-valprint.c (ada_value_print): Use common_val_print.
13233
2e088f8b
TT
132342020-03-13 Tom Tromey <tom@tromey.com>
13235
13236 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
13237
39ef85a8
TT
132382020-03-13 Tom Tromey <tom@tromey.com>
13239
13240 * ada-valprint.c (ada_value_print_num): New function.
13241 (ada_value_print_1): Use it.
13242
b9fa6e07
TT
132432020-03-13 Tom Tromey <tom@tromey.com>
13244
13245 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
13246
416595d6
TT
132472020-03-13 Tom Tromey <tom@tromey.com>
13248
13249 * ada-valprint.c (ada_value_print_ptr): New function.
13250 (ada_value_print_1): Use it.
13251
5b5e15ec
TT
132522020-03-13 Tom Tromey <tom@tromey.com>
13253
13254 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
13255 call common_val_print.
13256 (ada_val_print_1): Update.
13257 (ada_value_print_1): New function.
13258 (ada_value_print_inner): Rewrite.
13259
fbf54e75
TT
132602020-03-13 Tom Tromey <tom@tromey.com>
13261
13262 * cp-valprint.c (cp_print_value_fields): Update.
13263 (cp_print_value): New function.
13264
64b653ca
TT
132652020-03-13 Tom Tromey <tom@tromey.com>
13266
13267 * m2-valprint.c (m2_value_print_inner): Use
13268 cp_print_value_fields.
13269 * cp-valprint.c (cp_print_value_fields): New function.
13270 * c-valprint.c (c_value_print_struct): New function.
13271 (c_value_print_inner): Use c_value_print_struct.
13272 * c-lang.h (cp_print_value_fields): Declare.
13273
6999f067
TT
132742020-03-13 Tom Tromey <tom@tromey.com>
13275
13276 * c-valprint.c (c_value_print_array): New function.
13277 (c_value_print_inner): Use it.
13278
ce80b8bd
TT
132792020-03-13 Tom Tromey <tom@tromey.com>
13280
13281 * c-valprint.c (c_value_print_memberptr): New function.
13282 (c_value_print_inner): Use it.
13283
2faac269
TT
132842020-03-13 Tom Tromey <tom@tromey.com>
13285
13286 * c-valprint.c (c_value_print_int): New function.
13287 (c_value_print_inner): Use it.
13288
da3e2c29
TT
132892020-03-13 Tom Tromey <tom@tromey.com>
13290
13291 * c-valprint.c (c_value_print_ptr): New function.
13292 (c_value_print_inner): Use it.
13293
50836231
TT
132942020-03-13 Tom Tromey <tom@tromey.com>
13295
13296 * c-valprint.c (c_value_print_inner): Rewrite.
13297
4f412b6e
TT
132982020-03-13 Tom Tromey <tom@tromey.com>
13299
13300 * valprint.c (generic_value_print_complex): New function.
13301 (generic_value_print): Use it.
13302
f5354008
TT
133032020-03-13 Tom Tromey <tom@tromey.com>
13304
13305 * valprint.c (generic_val_print_float): Don't call
13306 val_print_scalar_formatted.
13307 (generic_val_print, generic_value_print): Update.
13308
3eec3b05
TT
133092020-03-13 Tom Tromey <tom@tromey.com>
13310
13311 * valprint.c (generic_value_print_char): New function
13312 (generic_value_print): Use it.
13313
fdddfccb
TT
133142020-03-13 Tom Tromey <tom@tromey.com>
13315
13316 * valprint.c (generic_value_print_int): New function.
13317 (generic_value_print): Use it.
13318
6dde7521
TT
133192020-03-13 Tom Tromey <tom@tromey.com>
13320
13321 * valprint.c (generic_value_print_bool): New function.
13322 (generic_value_print): Use it.
13323
4112d2e6
TT
133242020-03-13 Tom Tromey <tom@tromey.com>
13325
13326 * valprint.c (generic_val_print_func): Simplify.
13327 (generic_val_print, generic_value_print): Update.
13328
65786af6
TT
133292020-03-13 Tom Tromey <tom@tromey.com>
13330
13331 * valprint.c (generic_val_print_flags): Remove.
13332 (generic_val_print, generic_value_print): Update.
13333 (val_print_type_code_flags): Add original_value parameter.
13334
40f3ce18
TT
133352020-03-13 Tom Tromey <tom@tromey.com>
13336
13337 * valprint.c (generic_val_print): Update.
13338 (generic_value_print): Update.
13339 * valprint.c (generic_val_print_enum): Don't call
13340 val_print_scalar_formatted.
13341
2a5b130b
TT
133422020-03-13 Tom Tromey <tom@tromey.com>
13343
13344 * valprint.c (generic_value_print): Call generic_value_print_ptr.
13345 * valprint.c (generic_value_print_ptr): New function.
13346
abc66ce9
TT
133472020-03-13 Tom Tromey <tom@tromey.com>
13348
13349 * valprint.c (generic_value_print): Rewrite.
13350
07a32858
TT
133512020-03-13 Tom Tromey <tom@tromey.com>
13352
13353 * p-valprint.c (pascal_object_print_value_fields)
13354 (pascal_object_print_value): New functions.
13355
64d64d3a
TT
133562020-03-13 Tom Tromey <tom@tromey.com>
13357
13358 * p-valprint.c (pascal_value_print_inner): Rewrite.
13359
6a95a1f5
TT
133602020-03-13 Tom Tromey <tom@tromey.com>
13361
13362 * f-valprint.c (f_value_print_innner): Rewrite.
13363
59fcdac6
TT
133642020-03-13 Tom Tromey <tom@tromey.com>
13365
13366 * m2-valprint.c (m2_print_unbounded_array): New overload.
13367 (m2_print_unbounded_array): Update.
13368 (m2_print_array_contents): Take a struct value.
13369 (m2_value_print_inner): Rewrite.
13370
d133c3e1
TT
133712020-03-13 Tom Tromey <tom@tromey.com>
13372
13373 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
13374 (d_value_print_inner): New function.
13375 * d-lang.h (d_value_print_inner): Declare.
13376 * d-lang.c (d_language_defn): Use d_value_print_inner.
13377
23b0f06b
TT
133782020-03-13 Tom Tromey <tom@tromey.com>
13379
13380 * go-valprint.c (go_value_print_inner): New function.
13381 * go-lang.h (go_value_print_inner): Declare.
13382 * go-lang.c (go_language_defn): Use go_value_print_inner.
13383
5f56f7cb
TT
133842020-03-13 Tom Tromey <tom@tromey.com>
13385
13386 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
13387 API.
13388 (rust_val_print): Rewrite.
13389 (rust_value_print_inner): New function, from rust_val_print.
13390 (rust_language_defn): Use rust_value_print_inner.
13391
26792ee0
TT
133922020-03-13 Tom Tromey <tom@tromey.com>
13393
13394 * ada-valprint.c (ada_value_print_inner): New function.
13395 * ada-lang.h (ada_value_print_inner): Declare.
13396 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
13397
24051bbe
TT
133982020-03-13 Tom Tromey <tom@tromey.com>
13399
13400 * f-valprint.c (f_value_print_innner): New function.
13401 * f-lang.h (f_value_print_innner): Declare.
13402 * f-lang.c (f_language_defn): Use f_value_print_innner.
13403
c0941be6
TT
134042020-03-13 Tom Tromey <tom@tromey.com>
13405
13406 * p-valprint.c (pascal_value_print_inner): New function.
13407 * p-lang.h (pascal_value_print_inner): Declare.
13408 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
13409
62c4663d
TT
134102020-03-13 Tom Tromey <tom@tromey.com>
13411
13412 * m2-valprint.c (m2_value_print_inner): New function.
13413 * m2-lang.h (m2_value_print_inner): Declare.
13414 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
13415
62182190
TT
134162020-03-13 Tom Tromey <tom@tromey.com>
13417
13418 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
13419 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
13420 * c-valprint.c (c_value_print_inner): New function.
13421 * c-lang.h (c_value_print_inner): Declare.
13422 * c-lang.c (c_language_defn, cplus_language_defn)
13423 (asm_language_defn, minimal_language_defn): Use
13424 c_value_print_inner.
13425
1e592a8a
TT
134262020-03-13 Tom Tromey <tom@tromey.com>
13427
13428 * p-valprint.c (pascal_object_print_value_fields): Now static.
13429 * p-lang.h (pascal_object_print_value_fields): Don't declare.
13430
7fe471e9
TT
134312020-03-13 Tom Tromey <tom@tromey.com>
13432
13433 * c-valprint.c (c_val_print_array): Simplify.
13434
d121c6ce
TT
134352020-03-13 Tom Tromey <tom@tromey.com>
13436
13437 * valprint.c (value_print_array_elements): New function.
13438 * valprint.h (value_print_array_elements): Declare.
13439
4dba70ee
TT
134402020-03-13 Tom Tromey <tom@tromey.com>
13441
13442 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
13443 * mips-tdep.c (mips_print_register): Use
13444 value_print_scalar_formatted.
13445
4f9ae810
TT
134462020-03-13 Tom Tromey <tom@tromey.com>
13447
13448 * valprint.h (value_print_scalar_formatted): Declare.
13449 * valprint.c (value_print_scalar_formatted): New function.
13450
156bfec9
TT
134512020-03-13 Tom Tromey <tom@tromey.com>
13452
13453 * valprint.h (generic_value_print): Declare.
13454 * valprint.c (generic_value_print): New function.
13455
2b4e573d
TT
134562020-03-13 Tom Tromey <tom@tromey.com>
13457
13458 * valprint.c (do_val_print): Call la_value_print_inner, if
13459 available.
13460 * rust-lang.c (rust_language_defn): Update.
13461 * p-lang.c (pascal_language_defn): Update.
13462 * opencl-lang.c (opencl_language_defn): Update.
13463 * objc-lang.c (objc_language_defn): Update.
13464 * m2-lang.c (m2_language_defn): Update.
13465 * language.h (struct language_defn) <la_value_print_inner>: New
13466 member.
13467 * language.c (unknown_language_defn, auto_language_defn): Update.
13468 * go-lang.c (go_language_defn): Update.
13469 * f-lang.c (f_language_defn): Update.
13470 * d-lang.c (d_language_defn): Update.
13471 * c-lang.c (c_language_defn, cplus_language_defn)
13472 (asm_language_defn, minimal_language_defn): Update.
13473 * ada-lang.c (ada_language_defn): Update.
13474
a1f6a07c
TT
134752020-03-13 Tom Tromey <tom@tromey.com>
13476
13477 * c-valprint.c (c_value_print): Use common_val_print.
13478
410cf315
TT
134792020-03-13 Tom Tromey <tom@tromey.com>
13480
13481 * cp-valprint.c (cp_print_static_field): Use common_val_print.
13482
72a45c93
TT
134832020-03-13 Tom Tromey <tom@tromey.com>
13484
13485 * f-valprint.c (f77_print_array_1, f_val_print): Use
13486 common_val_print.
13487
040f66bd
TT
134882020-03-13 Tom Tromey <tom@tromey.com>
13489
13490 * riscv-tdep.c (riscv_print_one_register_info): Use
13491 common_val_print.
13492
a6e05a6c
TT
134932020-03-13 Tom Tromey <tom@tromey.com>
13494
13495 * mi/mi-main.c (output_register): Use common_val_print.
13496
3444c526
TT
134972020-03-13 Tom Tromey <tom@tromey.com>
13498
13499 * infcmd.c (default_print_one_register_info): Use
13500 common_val_print.
13501
c2a44efe
TT
135022020-03-13 Tom Tromey <tom@tromey.com>
13503
13504 * valprint.h (common_val_print_checked): Declare.
13505 * valprint.c (common_val_print_checked): New function.
13506 * stack.c (print_frame_arg): Use common_val_print_checked.
13507
b0c26e99
TT
135082020-03-13 Tom Tromey <tom@tromey.com>
13509
13510 * valprint.c (do_val_print): New function, from val_print.
13511 (val_print): Use do_val_print.
13512 (common_val_print): Use do_val_print.
13513
ce3acbe9
TT
135142020-03-13 Tom Tromey <tom@tromey.com>
13515
13516 * valprint.c (value_print): Use scoped_value_mark.
13517
96c7f873
TV
135182020-03-13 Tom de Vries <tdevries@suse.de>
13519
13520 PR symtab/25646
13521 * psymtab.c (partial_symtab::partial_symtab): Don't set
13522 globals_offset and statics_offset. Push element onto
13523 current_global_psymbols and current_static_psymbols stacks.
13524 (concat): New function.
13525 (end_psymtab_common): Set globals_offset and statics_offset. Pop
13526 element from current_global_psymbols and current_static_psymbols
13527 stacks. Concat popped elements to global_psymbols and
13528 static_symbols.
13529 (add_psymbol_to_list): Use current_global_psymbols and
13530 current_static_psymbols stacks.
13531 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
13532 current_static_psymbols fields.
13533
6ba0a321
CB
135342020-03-12 Christian Biesinger <cbiesinger@google.com>
13535
13536 * corelow.c (sniff_core_bfd): Remove.
13537 (class core_target) <m_core_vec>: Remove.
13538 (core_target::core_target): Update.
13539 (core_file_fns): Remove.
13540 (deprecated_add_core_fns): Remove.
13541 (default_core_sniffer): Remove.
13542 (sniff_core_bfd): Remove.
13543 (default_check_format): Remove.
13544 (gdb_check_format): Remove.
13545 (core_target_open): Update.
13546 (core_target::get_core_register_section): Update.
13547 (get_core_registers_cb): Update.
13548 (core_target::fetch_registers): Update.
13549 * gdbcore.h (struct core_fns): Remove.
13550 (deprecated_add_core_fns): Remove.
13551 (default_core_sniffer): Remove.
13552 (default_check_format): Remove.
13553
227031b2
TT
135542020-03-12 Tom Tromey <tom@tromey.com>
13555
13556 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
13557 CORE_ADDR.
13558 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
13559
53807e9f
TT
135602020-03-12 Tom Tromey <tom@tromey.com>
13561
13562 * remote.c (remote_target::download_tracepoint)
13563 (remote_target::enable_tracepoint)
13564 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
13565 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
13566 sprintf_vma.
13567
64f25102
TT
135682020-03-12 Tom Tromey <tom@tromey.com>
13569
13570 * symfile-mem.c: Update CORE_ADDR size assert.
13571
272cd5a3
SM
135722020-03-12 Simon Marchi <simon.marchi@efficios.com>
13573
13574 * selftest.m4: Move to gdbsupport/.
13575 * acinclude.m4: Update path to selftest.m4.
13576
74cd3f9d
SM
135772020-03-12 Simon Marchi <simon.marchi@efficios.com>
13578
13579 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
13580 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
13581 gdbarch-selfselftests.c and selftest-arch.c.
13582 (SUBDIR_UNITTESTS_OBS): Rename to...
13583 (SELFTESTS_OBS): ... this.
13584 (COMMON_SFILES): Remove disasm-selftests.c and
13585 gdbarch-selftests.c.
13586 * configure.ac: Don't add selftest-arch.{c,o} to
13587 CONFIG_{SRCS,OBS}.
13588 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
13589 preprocessor conditions.
13590
db6878ac
SM
135912020-03-12 Simon Marchi <simon.marchi@efficios.com>
13592
13593 * configure.ac: Don't source bfd/development.sh.
13594 * selftest.m4: Modify comment.
13595 * configure: Re-generate.
13596
4d696a5c
SM
135972020-03-12 Simon Marchi <simon.marchi@efficios.com>
13598
13599 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
13600 not "true" or "false".
13601 * configure: Re-generate.
13602
8dd8e1c7
CB
136032020-03-12 Christian Biesinger <cbiesinger@google.com>
13604
13605 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
13606 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
13607 renamed to arm_nbsd_supply_gregset.
13608 (fetch_register): Update to call arm_nbsd_supply_gregset.
13609 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
13610 (arm_netbsd_nat_target::fetch_registers): Update.
13611 (fetch_elfcore_registers): Removed.
13612 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
13613 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
13614 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
13615 not require NetBSD system headers.
13616 (arm_nbsd_regset): New struct.
13617 (arm_nbsd_iterate_over_regset_sections): New function.
13618 (arm_netbsd_init_abi_common): Updated to call
13619 set_gdbarch_iterate_over_regset_sections.
13620 * arm-nbsd-tdep.h: New file.
13621
dd69bf7a
KB
136222020-03-11 Kevin Buettner <kevinb@redhat.com>
13623
13624 * symtab.c (find_pc_sect_line): Add check which prevents infinite
13625 recursion.
13626
a0761e34
SM
136272020-03-11 Simon Marchi <simon.marchi@efficios.com>
13628
13629 * configure: Re-generate.
13630
e7a82140
TT
136312020-03-11 Tom Tromey <tromey@adacore.com>
13632
13633 * ada-typeprint.c (print_choices): Fix comment.
13634
dcc050c8
AB
136352020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
13636
13637 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
13638 previous item in the list, when the list has no items.
13639
1c33af77
TV
136402020-03-11 Tom de Vries <tdevries@suse.de>
13641
13642 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
13643 PROP_LOCLIST handling code.
13644
8c95582d
AB
136452020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
13646
13647 * buildsym-legacy.c (record_line): Pass extra parameter to
13648 record_line.
13649 * buildsym.c (buildsym_compunit::record_line): Take an extra
13650 parameter, reduce duplication in the line table, and record the
13651 is_stmt flag in the line table.
13652 * buildsym.h (buildsym_compunit::record_line): Add extra
13653 parameter.
13654 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
13655 non-statement lines.
13656 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
13657 this to the symtab builder.
13658 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
13659 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
13660 through to dwarf_record_line_1.
13661 * infrun.c (process_event_stop_test): When stepping, don't stop at
13662 a non-statement instruction, and only refresh the step info when
13663 we land in the middle of a line's range. Also add an extra
13664 comment.
13665 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
13666 field.
13667 * record-btrace.c (btrace_find_line_range): Only record lines
13668 marked as is-statement.
13669 * stack.c (frame_show_address): Show the frame address if we are
13670 in a non-statement sal.
13671 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
13672 (maintenance_print_one_line_table): Print a header for the is_stmt
13673 column, and include is_stmt information in the output.
13674 * symtab.c (find_pc_sect_line): Find lines marked as statements in
13675 preference to non-statements.
13676 (find_pcs_for_symtab_line): Prefer is-statement entries.
13677 (find_line_common): Likewise.
13678 * symtab.h (struct linetable_entry): Add is_stmt field.
13679 (struct symtab_and_line): Likewise.
13680 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
13681 arranging the line table.
13682
e4003a34
TV
136832020-03-07 Tom de Vries <tdevries@suse.de>
13684
13685 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
13686 DIE.
13687
e8932576
TT
136882020-03-07 Tom Tromey <tom@tromey.com>
13689
13690 * valops.c (value_literal_complex): Remove obsolete comment.
13691 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
13692 comment.
13693
29734269
SM
136942020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
13695
13696 * infrun.h: Forward-declare thread_info.
13697 (set_step_info): Add thread_info parameter, add doc.
13698 * infrun.c (set_step_info): Add thread_info parameter, move doc
13699 to header.
13700 * infrun.c (process_event_stop_test): Pass thread to
13701 set_step_info call.
13702 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
13703 set_step_info.
13704 (prepare_one_step): Add thread_info parameter, pass it to
13705 set_step_frame and prepare_one_step (recursive) call.
13706 (step_1): Pass thread to prepare_one_step call.
13707 (step_command_fsm::should_stop): Pass thread to
13708 prepare_one_step.
13709 (until_next_fsm): Pass thread to set_step_frame call.
13710 (finish_command): Pass thread to set_step_info call.
13711
b7d64b29
HD
137122020-03-06 Hannes Domani <ssbssa@yahoo.de>
13713
13714 * windows-tdep.c (windows_solib_create_inferior_hook):
13715 Check if inferior is running.
13716
09f2921c
TV
137172020-03-06 Tom de Vries <tdevries@suse.de>
13718
13719 * NEWS: Fix "the the".
13720 * ctfread.c: Same.
13721
fd760e79
TV
137222020-03-06 Tom de Vries <tdevries@suse.de>
13723
13724 * psymtab.c (psymtab_to_symtab): Don't print "done.".
13725
20ea4a60
AB
137262020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13727
13728 * .dir-locals.el: Add a comment referencing the other copies of
13729 this file.
13730
0afbabf0
JB
137312020-03-05 John Baldwin <jhb@FreeBSD.org>
13732
13733 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
13734 psargs.
13735
842806cb
TBA
137362020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13737
13738 * .gitattributes: New file.
13739
be1e3d3e
TT
137402020-03-04 Tom Tromey <tom@tromey.com>
13741
13742 * symmisc.c (print_symbol_bcache_statistics)
13743 (print_objfile_statistics): Update.
13744 * symfile.c (allocate_symtab): Use intern.
13745 * psymtab.c (partial_symtab::partial_symtab): Use intern.
13746 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
13747 macro_cache>: Remove.
13748 <string_cache>: New member.
13749 (struct objfile) <intern>: New methods.
13750 * elfread.c (elf_symtab_read): Use intern.
13751 * dwarf2/read.c (fixup_go_packaging): Intern package name.
13752 (dwarf2_compute_name, dwarf2_physname)
13753 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
13754 names.
13755 (guess_partial_die_structure_name): Update.
13756 (partial_die_info::fixup): Intern name.
13757 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
13758 name.
13759 (dwarf2_name): Intern name. Update.
13760 * buildsym.c (buildsym_compunit::get_macro_table): Use
13761 string_cache.
13762
4e7625fd
TT
137632020-03-04 Tom Tromey <tom@tromey.com>
13764
13765 * jit.c (bfd_open_from_target_memory): Make "target" const.
13766 * corefile.c (gnutarget): Now const.
13767 * gdbcore.h (gnutarget): Now const.
13768
46f9f931
HD
137692020-03-04 Hannes Domani <ssbssa@yahoo.de>
13770
13771 * NEWS: Mention support for WOW64 processes.
13772 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
13773 (amd64_windows_segment_register_p): Remove static.
13774 (_initialize_amd64_windows_nat): Update.
13775 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
13776 * i386-windows-nat.c (context_offset): Update.
13777 (i386_mappings): Rename and remove static.
13778 (i386_windows_segment_register_p): Remove static.
13779 (_initialize_i386_windows_nat): Update.
13780 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
13781 (STATUS_WX86_SINGLE_STEP): New macro.
13782 (EnumProcessModulesEx): New macro.
13783 (Wow64SuspendThread): New macro.
13784 (Wow64GetThreadContext): New macro.
13785 (Wow64SetThreadContext): New macro.
13786 (Wow64GetThreadSelectorEntry): New macro.
13787 (windows_set_context_register_offsets): Add static.
13788 (windows_set_segment_register_p): Likewise.
13789 (windows_add_thread): Adapt for WOW64 processes.
13790 (windows_fetch_one_register): Likewise.
13791 (windows_nat_target::fetch_registers): Likewise.
13792 (windows_store_one_register): Likewise.
13793 (display_selector): Likewise.
13794 (display_selectors): Likewise.
13795 (handle_exception): Likewise.
13796 (windows_continue): Likewise.
13797 (windows_nat_target::resume): Likewise.
13798 (windows_add_all_dlls): Likewise.
13799 (do_initial_windows_stuff): Likewise.
13800 (windows_nat_target::attach): Likewise.
13801 (windows_get_exec_module_filename): Likewise.
13802 (windows_nat_target::create_inferior): Likewise.
13803 (windows_xfer_siginfo): Likewise.
13804 (_initialize_loadable): Initialize Wow64SuspendThread,
13805 Wow64GetThreadContext, Wow64SetThreadContext,
13806 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
13807 * windows-nat.h (windows_set_context_register_offsets):
13808 Remove declaration.
13809 (windows_set_segment_register_p): Likewise.
13810 (i386_windows_segment_register_p): Add declaration.
13811 (amd64_windows_segment_register_p): Likewise.
13812
440cf44e
LM
138132020-03-04 Luis Machado <luis.machado@linaro.org>
13814
13815 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
13816 in "info registers" for AArch64/ARM.
13817
13818 The change caused "info registers" to not print GPR's.
13819
13820 gdb/ChangeLog:
13821
13822 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
13823
13824 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13825 when reg->group is empty and reggroup is not.
13826
1009d92f
TT
138272020-03-03 Tom Tromey <tromey@adacore.com>
13828
13829 * dwarf2/frame.c (struct dwarf2_frame_cache)
13830 <checked_tailcall_bottom, entry_cfa_sp_offset,
13831 entry_cfa_sp_offset_p>: Remove members.
13832 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
13833 (dwarf2_frame_prev_register): Don't call
13834 dwarf2_tailcall_sniffer_first.
13835 (dwarf2_append_unwinders): Don't append tailcall unwinder.
13836 * frame-unwind.c (add_unwinder): New fuction.
13837 (frame_unwind_init): Use it. Add tailcall unwinder.
13838
5e5d66b6
AB
138392020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
13840 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13841
13842 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
13843 value should be printed as true.
13844
584cf46d
HD
138452020-03-03 Hannes Domani <ssbssa@yahoo.de>
13846
13847 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
13848 (windows_init_abi): Set and use windows_so_ops.
13849
7b973adc
SDJ
138502020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
13851
13852 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
13853 when verifying if dealing with a convenience variable.
13854
bb7b70ab
LM
138552020-03-03 Luis Machado <luis.machado@linaro.org>
13856
13857 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
13858
9822cb57
SM
138592020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13860
13861 * infrun.c (gdbarch_supports_displaced_stepping): New.
13862 (use_displaced_stepping): Break up conditions in smaller pieces.
13863 Use gdbarch_supports_displaced_stepping.
13864 (displaced_step_prepare_throw): Use
13865 gdbarch_supports_displaced_stepping.
13866
63e163f2
AB
138672020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13868
13869 * NEWS: Mention new behaviour of the history filename.
13870 * top.c (write_history_p): Add comment.
13871 (show_write_history_p): Add header comment, give a different
13872 message when history writing is on, but the history filename is
13873 empty.
13874 (history_filename): Add comment.
13875 (history_filename_empty): New function.
13876 (show_history_filename): Add header comment, give a different
13877 message when the filename is empty.
13878 (init_history): Compare history_filename against nullptr, and only
13879 read history if the filename is not empty.
13880 (set_history_filename): Add header comment, and only make
13881 non-empty filenames absolute.
13882 (init_main): Make the filename argument to 'set history filename'
13883 optional.
13884
81b86b97
CB
138852020-03-02 Christian Biesinger <cbiesinger@google.com>
13886
13887 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
13888 (arm_supply_vfpregset): ...this, and update to use VFP registers.
13889 (fetch_fp_register): Update.
13890 (fetch_fp_regs): Update.
13891 (store_fp_register): Update.
13892 (store_fp_regs): Update.
13893 (arm_netbsd_nat_target::read_description): New function.
13894 (fetch_elfcore_registers): Update.
13895
24ed6739
AB
138962020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13897
13898 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
13899 general_thread if the stop reply is missing a thread-id.
13900 (remote_target::process_stop_reply): Use the first non-exited
13901 thread if the target didn't pass a thread-id.
13902 * infrun.c (do_target_wait): Move call to
13903 switch_to_inferior_no_thread to ....
13904 (do_target_wait_1): ... here.
13905
a84bb2a0
JT
139062020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
13907
13908 * debuginfod-support.c: Include defs.h first.
13909
658dadf0
TV
139102020-02-28 Tom de Vries <tdevries@suse.de>
13911
13912 * symfile.c (set_initial_language): Use default language for lookup.
13913
4ebe4877
SM
139142020-02-28 Simon Marchi <simon.marchi@efficios.com>
13915
13916 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
13917 reader variable, pass `this` to read_cutu_die_from_dwo.
13918
e5da1139
AM
139192020-02-27 Aaron Merey <amerey@redhat.com>
13920
13921 * source.c (open_source_file): Check for nullptr when computing
13922 srcpath.
13923
317f7127
TT
139242020-02-27 Tom Tromey <tromey@adacore.com>
13925
13926 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
13927 member.
13928 (dwarf2_add_field): Don't update nfields.
13929 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
13930
3104d9ee
AB
139312020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13932
13933 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
13934 abs.
13935
b83470bf
TT
139362020-02-26 Tom Tromey <tom@tromey.com>
13937
13938 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
13939 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
13940 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
13941 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
13942 per_cu_data.
13943
edfe0a0c
TT
139442020-02-26 Tom Tromey <tom@tromey.com>
13945
13946 * dwarf2/index-write.c (psym_index_map): Change type.
13947 (add_address_entry_worker, write_one_signatured_type)
13948 (recursively_count_psymbols, recursively_write_psymbols)
13949 (class debug_names, psyms_seen_size, write_gdbindex)
13950 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
13951
0d79cdc4
AM
139522020-02-26 Aaron Merey <amerey@redhat.com>
13953
13954 * Makefile.in: Handle optional debuginfod support.
13955 * NEWS: Update.
13956 * README: Add --with-debuginfod summary.
13957 * config.in: Regenerate.
13958 * configure: Regenerate.
13959 * configure.ac: Handle optional debuginfod support.
13960 * debuginfod-support.c: debuginfod helper functions.
13961 * debuginfod-support.h: Ditto.
13962 * doc/gdb.texinfo: Add --with-debuginfod to configure options
13963 summary.
13964 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
13965 when a dwz file cannot be found.
13966 * elfread.c (elf_symfile_read): Query debuginfod servers when a
13967 debuginfo file cannot be found.
13968 * source.c (open_source_file): Query debuginfod servers when a
13969 source file cannot be found.
13970 * top.c (print_gdb_configuration): Include
13971 --{with,without}-debuginfod in the output.
13972
b65ce565
JG
139732020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
13974
13975 * thread.c (thr_try_catch_cmd): Print thread name.
13976
d4c9a4f8
SM
139772020-02-26 Simon Marchi <simon.marchi@efficios.com>
13978
13979 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
13980 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13981 dwarf2_fetch_die_type_sect_off): Move to...
13982 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
13983 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13984 dwarf2_fetch_die_type_sect_off): ... here.
13985 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
13986 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
13987 dwarf2_fetch_die_type_sect_off): Move doc to header file.
13988
0dce4280
TV
139892020-02-26 Tom de Vries <tdevries@suse.de>
13990
13991 PR gdb/25603
13992 * symfile.c (set_initial_language): Exit-early if
13993 language_mode == language_mode_manual.
13994
450a1bfc
SM
139952020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
13996
13997 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
13998 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
13999 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
14000
9e80cfa1
AB
140012020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
14002
14003 * gdbtypes.c (create_array_type_with_stride): Handle negative
14004 array strides.
14005 * valarith.c (value_subscripted_rvalue): Likewise.
14006
09624f1f
LM
140072020-02-25 Luis Machado <luis.machado@linaro.org>
14008
14009 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
14010
8cb5117c
SM
140112020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14012
14013 * loc.h (dwarf2_get_die_type): Move to...
14014 * read.h (dwarf2_get_die_type): ... here.
14015 * read.c (dwarf2_get_die_type): Move doc to header.
14016
c325c44e
JB
140172020-02-25 Joel Brobecker <brobecker@adacore.com>
14018
14019 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
14020 'gnulib/Makefile.in' to the list.
14021
4ac93832
TT
140222020-02-24 Tom Tromey <tom@tromey.com>
14023
14024 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
14025 Remove.
14026 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
14027 XOBNEWVEC.
14028
197400e8
TT
140292020-02-24 Tom Tromey <tom@tromey.com>
14030
14031 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
14032 New method.
14033 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
14034 (dw2_do_instantiate_symtab, dw2_get_file_names)
14035 (build_type_psymtab_dependencies, load_full_type_unit): Update.
14036
76935768
TT
140372020-02-24 Tom Tromey <tom@tromey.com>
14038
14039 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
14040 make_scoped_restore.
14041 (dwarf2_psymtab::read_symtab): Don't clear
14042 reading_partial_symbols.
14043
a88ef40d
TV
140442020-02-24 Tom de Vries <tdevries@suse.de>
14045
14046 PR gdb/25592
14047 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
14048
c9af6521
TV
140492020-02-24 Tom de Vries <tdevries@suse.de>
14050
14051 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
14052 commands layout next/prev/regs.
14053
5707a07a
TT
140542020-02-22 Tom Tromey <tom@tromey.com>
14055
14056 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
14057 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
14058
3b0fb49e
TT
140592020-02-22 Tom Tromey <tom@tromey.com>
14060
14061 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
14062
283be8bf
TT
140632020-02-22 Tom Tromey <tom@tromey.com>
14064
14065 * tui/tui-win.c (_initialize_tui_win): Add usage text.
14066 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
14067 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
14068 * tui/tui.c (_initialize_tui): Add usage text.
14069
ca793b96
TT
140702020-02-22 Tom Tromey <tom@tromey.com>
14071
14072 * tui/tui-win.c (tui_set_focus_command)
14073 (tui_set_win_height_command): Use error_no_arg.
14074 (_initialize_tui_win): Update help text.
14075 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
14076
432b5c40
TT
140772020-02-22 Tom Tromey <tom@tromey.com>
14078
14079 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
14080 * tui/tui-disasm.h (struct tui_disasm_window)
14081 <display_start_addr>: Declare.
14082 * tui/tui-source.h (struct tui_source_window)
14083 <display_start_addr>: Declare.
14084 * tui/tui-winsource.h (struct tui_source_window_base)
14085 <show_source_line, display_start_addr>: New methods.
14086 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
14087 Rename and move to protected section.
14088 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
14089 (tui_source_window_base::do_erase_source_content): Update.
14090 (tui_source_window_base::show_source_line): Now a method.
14091 (tui_source_window_base::show_source_content)
14092 (tui_source_window_base::tui_source_window_base)
14093 (tui_source_window_base::rerender)
14094 (tui_source_window_base::refill)
14095 (tui_source_window_base::do_scroll_horizontal)
14096 (tui_source_window_base::set_is_exec_point_at)
14097 (tui_source_window_base::update_breakpoint_info)
14098 (tui_source_window_base::update_exec_info): Update.
14099 * tui/tui-source.c (tui_source_window::set_contents)
14100 (tui_source_window::showing_source_p)
14101 (tui_source_window::do_scroll_vertical)
14102 (tui_source_window::location_matches_p)
14103 (tui_source_window::line_is_displayed): Update.
14104 (tui_source_window::display_start_addr): New method.
14105 * tui/tui-disasm.c (tui_disasm_window::set_contents)
14106 (tui_disasm_window::do_scroll_vertical)
14107 (tui_disasm_window::location_matches_p): Update.
14108 (tui_disasm_window::display_start_addr): New method.
14109
01b1af32
TT
141102020-02-22 Tom Tromey <tom@tromey.com>
14111
14112 * NEWS: Add entry for gdb.register_window_type.
14113 * tui/tui-layout.h (window_factory): New typedef.
14114 (tui_register_window): Declare.
14115 * tui/tui-layout.c (saved_tui_windows): New global.
14116 (tui_apply_current_layout): Use it.
14117 (tui_register_window): New function.
14118 * python/python.c (do_start_initialization): Call
14119 gdbpy_initialize_tui.
14120 (python_GdbMethods): Add "register_window_type" function.
14121 * python/python-internal.h (gdbpy_register_tui_window)
14122 (gdbpy_initialize_tui): Declare.
14123 * python/py-tui.c: New file.
14124 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
14125
fc96d20b
TT
141262020-02-22 Tom Tromey <tom@tromey.com>
14127
14128 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
14129
935c78c0
TT
141302020-02-22 Tom Tromey <tom@tromey.com>
14131
14132 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
14133 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
14134 * tui/tui-data.c (tui_set_win_with_focus): Remove.
14135 (tui_set_win_focus_to): Move from tui-win.c.
14136
0240c8f1
TT
141372020-02-22 Tom Tromey <tom@tromey.com>
14138
14139 * tui/tui-layout.c (make_standard_window, get_locator_window): New
14140 functions.
14141 (known_window_types): New global.
14142 (tui_get_window_by_name): Reimplement.
14143 (initialize_known_windows): New function.
14144 (validate_window_name): Rewrite.
14145 (_initialize_tui_layout): Call initialize_known_windows.
14146
fdb01f0c
TT
141472020-02-22 Tom Tromey <tom@tromey.com>
14148
14149 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
14150 Remove constants.
14151 * tui/tui-winsource.h (struct tui_source_window_base)
14152 <tui_source_window_base>: Remove parameter.
14153 * tui/tui-winsource.c
14154 (tui_source_window_base::tui_source_window_base): Remove
14155 parameter.
14156 (tui_source_window_base::refill): Update.
14157 * tui/tui-stack.h (struct tui_locator_window)
14158 <tui_locator_window>: Update.
14159 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
14160 Default the constructor.
14161 * tui/tui-regs.h (struct tui_data_item_window)
14162 <tui_data_item_window>: Default the constructor.
14163 (struct tui_data_window) <tui_data_window>: Likewise.
14164 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
14165 Default the constructor.
14166 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
14167 Default the constructor.
14168 <type>: Remove.
14169 (struct tui_win_info) <tui_win_info>: Default the constructor.
14170 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
14171 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
14172 Default the constructor.
14173
865a5aec
TT
141742020-02-22 Tom Tromey <tom@tromey.com>
14175
14176 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
14177 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
14178 * tui/tui-win.c (tui_resize_all): Don't call
14179 tui_delete_invisible_windows.
14180 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
14181 done.
14182 (tui_set_layout): Update.
14183 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
14184 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
14185 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
14186
e098d18c
TT
141872020-02-22 Tom Tromey <tom@tromey.com>
14188
14189 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
14190 correctly.
14191
eb9c8874
TT
141922020-02-22 Tom Tromey <tom@tromey.com>
14193
14194 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
14195
7eed1a8e
TT
141962020-02-22 Tom Tromey <tom@tromey.com>
14197
14198 * tui/tui-winsource.h (struct tui_source_window_iterator)
14199 <inner_iterator>: New etytypedef.
14200 <tui_source_window_iterator>: Take "end" parameter.
14201 <tui_source_window_iterator>: Take iterator.
14202 <operator*, advance>: Update.
14203 <m_iter>: Change type.
14204 <m_end>: New field.
14205 (struct tui_source_windows) <begin, end>: Update.
14206 * tui/tui-layout.c (tui_windows): New global.
14207 (tui_apply_current_layout): Clear tui_windows.
14208 (tui_layout_window::apply): Update tui_windows.
14209 * tui/tui-data.h (tui_windows): Declare.
14210 (all_tui_windows): Now inline function.
14211 (class tui_window_iterator, struct all_tui_windows): Remove.
14212
7c043ba6
TT
142132020-02-22 Tom Tromey <tom@tromey.com>
14214
14215 PR tui/17850:
14216 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
14217 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
14218 "height" argument.
14219 (class tui_layout_window) <get_sizes>: Likewise.
14220 (class tui_layout_split) <tui_layout_split>: Add "vertical"
14221 argument.
14222 <get_sizes>: Add "height" argument.
14223 <m_vertical>: New field.
14224 * tui/tui-layout.c (tui_layout_split::clone): Update.
14225 (tui_layout_split::get_sizes): Add "height" argument.
14226 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
14227 (tui_new_layout_command): Parse "-horizontal".
14228 (_initialize_tui_layout): Update help string.
14229 (tui_layout_split::specification): Add "-horizontal" when needed.
14230 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
14231 argument.
14232 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
14233 New methods.
14234
6bc56648
TT
142352020-02-22 Tom Tromey <tom@tromey.com>
14236
14237 * tui/tui-layout.h (enum tui_adjust_result): New.
14238 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
14239 (class tui_layout_window) <adjust_size>: Return
14240 tui_adjust_result. Rewrite.
14241 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
14242 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
14243
c22fef7e
TT
142442020-02-22 Tom Tromey <tom@tromey.com>
14245
14246 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
14247 parameter and return types.
14248 (class tui_layout_base) <specification>: Add "depth".
14249 (class tui_layout_window) <specification>: Add "depth".
14250 (class tui_layout_split) <specification>: Add "depth".
14251 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
14252 and return types.
14253 (tui_new_layout_command): Parse sub-layouts.
14254 (_initialize_tui_layout): Update help string.
14255 (tui_layout_window::specification): Add "depth".
14256 (add_layout_command): Update.
14257
ee325b61
TT
142582020-02-22 Tom Tromey <tom@tromey.com>
14259
14260 * NEWS: Add "tui new-layout" item.
14261 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
14262 Add new-layout command to help text.
14263 (validate_window_name): New function.
14264 (tui_new_layout_command): New function.
14265 (_initialize_tui_layout): Register "new-layout".
14266 (tui_layout_window::specification): New method.
14267 (tui_layout_window::specification): New method.
14268 * tui/tui-layout.h (class tui_layout_base) <specification>: New
14269 method.
14270 (class tui_layout_window) <specification>: New method.
14271 (class tui_layout_split) <specification>: New method.
14272
416eb92d
TT
142732020-02-22 Tom Tromey <tom@tromey.com>
14274
14275 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
14276 * tui/tui-win.c (window_name_completer): Update comment.
14277 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
14278 Declare method.
14279 (class tui_layout_window) <replace_window>: Likewise.
14280 (class tui_layout_split) <replace_window>: Likewise.
14281 (tui_set_layout): Don't declare.
14282 (tui_set_initial_layout): Declare function.
14283 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
14284 (asm_regs_layout): New globals.
14285 (tui_current_layout, show_layout): Remove.
14286 (tui_set_layout, tui_add_win_to_layout): Rewrite.
14287 (find_layout, tui_apply_layout): New function.
14288 (layout_completer): Remove.
14289 (tui_next_layout): Reimplement.
14290 (tui_next_layout_command): New function.
14291 (tui_set_initial_layout, tui_prev_layout_command): New functions.
14292 (tui_regs_layout): Reimplement.
14293 (tui_regs_layout_command): New function.
14294 (extract_display_start_addr): Rewrite.
14295 (next_layout, prev_layout): Remove.
14296 (tui_layout_window::replace_window): New method.
14297 (tui_layout_split::replace_window): New method.
14298 (destroy_layout): New function.
14299 (layout_list): New global.
14300 (add_layout_command): New function.
14301 (initialize_layouts): Update.
14302 (tui_layout_command): New function.
14303 (_initialize_tui_layout): Install "layout" commands.
14304 * tui/tui-data.h (enum tui_layout_type): Remove.
14305 (tui_current_layout): Don't declare.
14306
0dbc2fc7
TT
143072020-02-22 Tom Tromey <tom@tromey.com>
14308
14309 * tui/tui-regs.c (tui_reg_layout): Remove.
14310 (tui_reg_command): Use tui_regs_layout.
14311 * tui/tui-layout.h (tui_reg_command): Declare.
14312 * tui/tui-layout.c (tui_reg_command): New function.
14313
5afe342e
TT
143142020-02-22 Tom Tromey <tom@tromey.com>
14315
14316 * tui/tui.c (tui_rl_delete_other_windows): Call
14317 tui_remove_some_windows.
14318 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
14319 Declare method.
14320 (class tui_layout_window) <remove_windows>: New method.
14321 (class tui_layout_split) <remove_windows>: Declare.
14322 (tui_remove_some_windows): Declare.
14323 * tui/tui-layout.c (tui_remove_some_windows): New function.
14324 (tui_layout_split::remove_windows): New method.
14325
427326a8
TT
143262020-02-22 Tom Tromey <tom@tromey.com>
14327
14328 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
14329 * tui/tui-layout.h (tui_next_layout): Declare.
14330 * tui/tui-layout.c (tui_next_layout): New function.
14331
3fe12b6d
TT
143322020-02-22 Tom Tromey <tom@tromey.com>
14333
14334 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
14335 correct coordinates.
14336
59b8b5d2
TT
143372020-02-22 Tom Tromey <tom@tromey.com>
14338
14339 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
14340 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
14341 DATA_WIN case.
14342
2a3d458b
TT
143432020-02-22 Tom Tromey <tom@tromey.com>
14344
14345 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
14346 TUI_DISASM_WIN, not tui_win_list.
14347
3f0cbb04
TT
143482020-02-22 Tom Tromey <tom@tromey.com>
14349
14350 * valprint.c (generic_val_print_enum_1)
14351 (val_print_type_code_flags): Style member names.
14352 * rust-lang.c (val_print_struct, rust_print_enum)
14353 (rust_print_struct_def, rust_internal_print_type): Style member
14354 names.
14355 * p-valprint.c (pascal_object_print_value_fields): Style member
14356 names. Only call fprintf_symbol_filtered for static members.
14357 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
14358 * f-valprint.c (f_val_print): Style member names.
14359 * f-typeprint.c (f_type_print_base): Style member names.
14360 * cp-valprint.c (cp_print_value_fields): Style member names. Only
14361 call fprintf_symbol_filtered for static members.
14362 (cp_print_class_member): Style member names.
14363 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
14364 member names.
14365 * ada-valprint.c (ada_print_scalar): Style enum names.
14366 (ada_val_print_enum): Likewise.
14367 * ada-typeprint.c (print_enum_type): Style enum names.
14368
d4d947ae
TT
143692020-02-21 Tom Tromey <tom@tromey.com>
14370
14371 * psympriv.h (struct partial_symtab): Update comment.
14372
e94e944b
TT
143732020-02-21 Tom Tromey <tromey@adacore.com>
14374
14375 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
14376 type is CORE_ADDR.
14377
1eb73179
TV
143782020-02-21 Tom de Vries <tdevries@suse.de>
14379
14380 PR gdb/25534
14381 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
14382 if dependencies[i]->user != NULL.
14383
4f180d53
AT
143842020-02-21 Ali Tamur <tamur@google.com>
14385
14386 * dwarf2/read.c (dwarf2_name): Add null check.
14387
22b6cd70
TT
143882020-02-20 Tom Tromey <tom@tromey.com>
14389
14390 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
14391 ">=", in binary search.
14392 (dwarf2_find_containing_comp_unit): New overload.
14393 (run_test): New self-test.
14394 (_initialize_dwarf2_read): Register new test.
14395
bd0cf5a6
NC
143962020-02-20 Nelson Chu <nelson.chu@sifive.com>
14397
14398 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
14399 * riscv-tdep.h: Likewise.
14400 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
14401 rv32-only CSR.
14402 * features/riscv/64bit-csr.xml: Regenerated.
14403
3f702acd
SDJ
144042020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
14405 Tom Tromey <tom@tromey.com>
14406
14407 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
14408 of 'fputc_unfiltered'.
14409 (putchar_unfiltered): Call 'fputc_unfiltered'.
14410 (fputc_unfiltered): Call 'fputs_unfiltered'.
14411
d13c7322
AB
144122020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
14413
14414 * config.in: Regenerate.
14415 * configure: Regenerate.
14416 * configure.ac: Add --with-python-libdir option.
14417 * main.c: Use WITH_PYTHON_LIBDIR.
14418
869d8950
TT
144192020-02-19 Tom Tromey <tom@tromey.com>
14420
14421 * symtab.c (general_symbol_info::compute_and_set_names): Use
14422 obstack_strndup. Simplify call to symbol_set_demangled_name.
14423
298e9637
SM
144242020-02-19 Simon Marchi <simon.marchi@efficios.com>
14425
14426 * dwarf2/read.c (allocate_signatured_type_table,
14427 allocate_dwo_unit_table, allocate_type_unit_groups_table,
14428 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
14429 Remove objfile parameter, update all callers.
14430
08410482
DE
144312020-02-19 Doug Evans <dje@google.com>
14432
14433 PR rust/25535
14434 * rust-lang.c (rust_print_enum): Apply embedded_offset to
14435 rust_enum_variant calculation.
14436
dfdeeca1
TT
144372020-02-19 Tom Tromey <tromey@adacore.com>
14438
14439 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
14440
2ef5453b
TT
144412020-02-19 Tom Tromey <tromey@adacore.com>
14442
14443 * ada-lang.c (cache_symbol): Use obstack_strdup.
14444
9f1528a1
AB
144452020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14446
14447 * configure: Regenerate.
14448
d3c22fa8
TT
144492020-02-19 Tom Tromey <tromey@adacore.com>
14450
14451 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
14452 NULL check.
14453
bf84f706
MR
144542020-02-19 Maciej W. Rozycki <macro@wdc.com>
14455
14456 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
14457
d1c9b20f
AB
144582020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14459
14460 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
14461 if GDBSERVER is not defined.
14462 (riscv_tdesc_cache): Likewise, also store const target_desc.
14463 (STATIC_IN_GDB): Define.
14464 (riscv_create_target_description): Update declaration with
14465 STATIC_IN_GDB.
14466 (riscv_lookup_target_description): New function, only define if
14467 GDBSERVER is not defined.
14468 * arch/riscv.h (riscv_create_target_description): Declare only
14469 when GDBSERVER is defined.
14470 (riscv_lookup_target_description): New declaration when GDBSERVER
14471 is not defined.
14472 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
14473 (riscv_linux_read_features): ...this, and return
14474 riscv_gdbarch_features instead of target_desc.
14475 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
14476 (riscv_linux_read_description): Rename to...
14477 (riscv_linux_read_features): ...this.
14478 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14479 Update to use riscv_gdbarch_features and
14480 riscv_lookup_target_description.
14481 * riscv-tdep.c (riscv_find_default_target_description): Use
14482 riscv_lookup_target_description instead of
14483 riscv_create_target_description.
14484
373d7ac0
SM
144852020-02-18 Simon Marchi <simon.marchi@efficios.com>
14486
14487 * valprint.c (generic_val_print_enum_1): When printing a flag
14488 enum with value 0 and there is no enumerator with value 0, print
14489 just "0" instead of "(unknown: 0x0)".
14490
b29a2df0
SM
144912020-02-18 Simon Marchi <simon.marchi@efficios.com>
14492
14493 * valprint.c (generic_val_print_enum_1): Print unknown part of
14494 flag enum in hex.
14495
6740f0cc
SM
144962020-02-18 Simon Marchi <simon.marchi@efficios.com>
14497
14498 * dwarf2/read.c (update_enumeration_type_from_children): Allow
14499 flag enums to contain duplicate enumerators.
14500 * valprint.c (generic_val_print_enum_1): Update comment.
14501
edd45eb0
SM
145022020-02-18 Simon Marchi <simon.marchi@efficios.com>
14503
14504 * dwarf2/read.c: Include "count-one-bits.h".
14505 (update_enumeration_type_from_children): If an enumerator has
14506 multiple bits set, don't treat the enumeration as a "flag enum".
14507 * valprint.c (generic_val_print_enum_1): Assert that enumerators
14508 of flag enums have 0 or 1 bit set.
14509
6d0cf446
BE
145102020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
14511
14512 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
14513 conversion.
14514 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14515 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14516 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14517 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14518 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14519
7001c1b7
SM
145202020-02-18 Simon Marchi <simon.marchi@efficios.com>
14521
14522 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
14523
fdb61c6c
SM
145242020-02-14 Simon Marchi <simon.marchi@efficios.com>
14525
14526 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
14527 displaced_step_closure_up.
14528 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14529 (struct displaced_step_closure_up):
14530 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14531 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14532 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
14533 Likewise.
14534 * gdbarch.sh (displaced_step_copy_insn): Likewise.
14535 * gdbarch.c, gdbarch.h: Re-generate.
14536 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
14537 displaced_step_closure_up.
14538 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14539 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14540 * infrun.h (displaced_step_closure_up): New type alias.
14541 (struct displaced_step_inferior_state) <step_closure>: Change
14542 type to displaced_step_closure_up.
14543 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
14544 displaced_step_closure_up.
14545 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14546
a4a38eb4
TT
145472020-02-14 Tom Tromey <tom@tromey.com>
14548
14549 * minidebug.c (gnu_debug_key): New global.
14550 (find_separate_debug_file_in_section): Use it.
14551
e8217e61
SM
145522020-02-14 Simon Marchi <simon.marchi@efficios.com>
14553
14554 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
14555 std::unique_ptr.
14556 * gdbarch.c: Re-generate.
14557 * gdbarch.h: Re-generate.
14558 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
14559 change.
14560 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
14561 type to std::unique_ptr.
14562 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14563 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14564 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14565 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14566 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
14567 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14568 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14569 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14570 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14571
d8d83535
SM
145722020-02-14 Simon Marchi <simon.marchi@efficios.com>
14573
14574 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
14575 std::unique_ptr.
14576 (displaced_step_clear): Rename to...
14577 (displaced_step_reset): ... this. Just call displaced->reset ().
14578 (displaced_step_clear_cleanup): Rename to...
14579 (displaced_step_reset_cleanup): ... this.
14580 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
14581 (displaced_step_fixup): Likewise.
14582 (resume_1): Likewise.
14583 (handle_inferior_event): Restore child's memory before calling
14584 displaced_step_fixup on the parent.
14585 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
14586 to std::unique_ptr.
14587 <step_closure>: Change type to std::unique_ptr.
14588
5f661e03
SM
145892020-02-14 Simon Marchi <simon.marchi@efficios.com>
14590
14591 * arm-tdep.c: Include count-one-bits.h.
14592 (cleanup_block_store_pc): Use count_one_bits.
14593 (cleanup_block_load_pc): Use count_one_bits.
14594 (arm_copy_block_xfer): Use count_one_bits.
14595 (thumb2_copy_block_xfer): Use count_one_bits.
14596 (thumb_copy_pop_pc_16bit): Use count_one_bits.
14597 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
14598 (thumb_get_next_pcs_raw): Use count_one_bits.
14599 (arm_get_next_pcs_raw): Use count_one_bits_l.
14600 * arch/arm.c (bitcount): Remove.
14601 * arch/arm.h (bitcount): Remove.
14602
8084e579
TT
146032020-02-14 Tom Tromey <tromey@adacore.com>
14604
14605 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
14606 Update.
14607 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
14608 * dwarf2/loc.c (call_site_find_chain_1): Return
14609 unique_xmalloc_ptr.
14610 (call_site_find_chain): Likewise.
14611
258bf0ee
RB
146122020-02-14 Richard Biener <rguenther@suse.de>
14613
14614 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
14615 on expression with division operators.
14616
f98a8458
AKS
146172020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14618
14619 * MAINTAINERS (Write After Approval): Adding myself.
14620
d1437c0e
TT
146212020-02-12 Tom Tromey <tom@tromey.com>
14622
14623 * event-loop.c (event_data, gdb_event, event_handler_func):
14624 Remove.
14625
3d4560f7
TT
146262020-02-12 Tom Tromey <tom@tromey.com>
14627
14628 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
14629 (dwarf2_frame_objfile_data): Add comment.
14630 (find_comp_unit, set_comp_unit): New functions.
14631 (dwarf2_frame_find_fde): Use find_comp_unit.
14632 (dwarf2_build_frame_info): Use set_comp_unit.
14633
21982304
TT
146342020-02-12 Tom Tromey <tom@tromey.com>
14635
14636 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
14637 (comp_unit): Don't initialize objfile.
14638 (execute_cfa_program): Add text_offset parameter.
14639 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
14640 (dwarf2_frame_cache): Update.
14641 (dwarf2_build_frame_info): Don't set "objfile" member.
14642
4debb237
TT
146432020-02-12 Tom Tromey <tom@tromey.com>
14644
14645 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
14646 (decode_frame_entry): Likewise.
14647 (dwarf2_build_frame_info): Update.
14648
0d404d44
TT
146492020-02-12 Tom Tromey <tom@tromey.com>
14650
14651 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
14652 (decode_frame_entry_1): Use the comp_unit obstack.
14653
a7a3ae5c
TT
146542020-02-12 Tom Tromey <tom@tromey.com>
14655
14656 * dwarf2/frame.c (struct comp_unit): Add initializers and
14657 constructor.
14658 (dwarf2_frame_objfile_data): Store a comp_unit.
14659 (dwarf2_frame_find_fde): Update.
14660 (dwarf2_build_frame_info): Use "new".
14661
a9d65418
TT
146622020-02-12 Tom Tromey <tom@tromey.com>
14663
14664 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
14665 (dwarf2_fde_table): Typedef for std::vector.
14666 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
14667 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
14668 (decode_frame_entry): Update.
14669 (dwarf2_build_frame_info): Use "new".
14670
7559c217
CB
146712020-02-12 Christian Biesinger <cbiesinger@google.com>
14672
14673 * arm-tdep.c (arm_gdbarch_init): Update.
14674 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
14675 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
14676 have_neon, is_m>: Change to bool.
14677
aeefc73c
CB
146782020-02-12 Christian Biesinger <cbiesinger@google.com>
14679
14680 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
14681
d27b8e5f
TT
146822020-02-12 Tom Tromey <tom@tromey.com>
14683
14684 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
14685
cd5900f3
HD
146862020-02-12 Hannes Domani <ssbssa@yahoo.de>
14687
14688 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
14689 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
14690
f056b22b
TT
146912020-02-11 Tom Tromey <tom@tromey.com>
14692
14693 * psymtab.h: Update comment.
14694
f92ff6b5
TT
146952020-02-11 Tom Tromey <tom@tromey.com>
14696
14697 * gdb_obstack.h (struct auto_obstack): Use
14698 DISABLE_COPY_AND_ASSIGN.
14699
3fd6912b
TT
147002020-02-11 Tom Tromey <tom@tromey.com>
14701
14702 * dwarf2/frame.h (struct objfile): Don't forward declare.
14703
69ed9b74
CB
147042020-02-11 Christian Biesinger <cbiesinger@google.com>
14705
14706 * cris-tdep.c (cris_supply_gregset): Change signature to match
14707 what struct regset expects.
14708 (cris_regset): New struct.
14709 (fetch_core_registers): Remove.
14710 (cris_iterate_over_regset_sections): New function.
14711 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
14712 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
14713
bda874f6
CB
147142020-02-11 Christian Biesinger <cbiesinger@google.com>
14715
14716 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
14717 registers.
14718
754e1564
CB
147192020-02-11 Christian Biesinger <cbiesinger@google.com>
14720
14721 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
14722
8ddd8e0e
SM
147232020-02-11 Simon Marchi <simon.marchi@efficios.com>
14724
14725 * configure: Re-generate.
14726
898e7f60
SM
147272020-02-11 Simon Marchi <simon.marchi@efficios.com>
14728
14729 * configure: Re-generate.
14730
58df732b
SM
147312020-02-11 Simon Marchi <simon.marchi@efficios.com>
14732
14733 * acinclude: Update warning.m4 path.
14734 * warning.m4: Move to gdbsupport.
14735
da5bd37e
TT
147362020-02-11 Tom Tromey <tromey@adacore.com>
14737
14738 * remote.c (remote_console_output): Update.
14739 * printcmd.c (printf_command): Update.
14740 * event-loop.c (gdb_wait_for_event): Update.
14741 * linux-nat.c (sigchld_handler): Update.
14742 * remote-sim.c (gdb_os_write_stdout): Update.
14743 (gdb_os_flush_stdout): Update.
14744 (gdb_os_flush_stderr): Update.
14745 (gdb_os_write_stderr): Update.
14746 * exceptions.c (print_exception): Update.
14747 * remote-fileio.c (remote_fileio_func_read): Update.
14748 (remote_fileio_func_write): Update.
14749 * tui/tui.c (tui_enable): Update.
14750 * tui/tui-interp.c (tui_interp::init): Update.
14751 * utils.c (init_page_info): Update.
14752 (putchar_unfiltered, fputc_unfiltered): Update.
14753 (gdb_flush): Update.
14754 (emit_style_escape): Update.
14755 (flush_wrap_buffer, fputs_maybe_filtered): Update.
14756 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
14757 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
14758 (stderr_file::write): Update.
14759 (stderr_file::puts): Update.
14760 * ui-file.h (ui_file_isatty, ui_file_write)
14761 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
14762 (ui_file_puts): Don't declare.
14763
85f0dd3c
TV
147642020-02-10 Tom de Vries <tdevries@suse.de>
14765
14766 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
14767 sentinel to char *.
14768
2e927613
TV
147692020-02-09 Tom de Vries <tdevries@suse.de>
14770
14771 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
14772 filename if it matches "<artificial>".
14773
6bafc845
HD
147742020-02-09 Hannes Domani <ssbssa@yahoo.de>
14775
14776 * windows-tdep.c (struct enum_value_name): New struct.
14777 (create_enum): New function.
14778 (windows_get_siginfo_type): Create and use enum types.
14779
7928d571
HD
147802020-02-09 Hannes Domani <ssbssa@yahoo.de>
14781
14782 * NEWS: Mention $_siginfo support for Windows.
14783 * windows-nat.c (handle_exception): Set siginfo_er.
14784 (windows_nat_target::mourn_inferior): Reset siginfo_er.
14785 (windows_xfer_siginfo): New function.
14786 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
14787 * windows-tdep.c (struct windows_gdbarch_data): New struct.
14788 (init_windows_gdbarch_data): New function.
14789 (get_windows_gdbarch_data): New function.
14790 (windows_get_siginfo_type): New function.
14791 (windows_init_abi): Register windows_get_siginfo_type.
14792 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
14793
6751ebae
TT
147942020-02-08 Tom Tromey <tom@tromey.com>
14795
14796 * dwarf2/read.c (class cutu_reader) <cutu_reader,
14797 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
14798 <keep>: Declare method.
14799 <m_keep>: Remove member.
14800 <~cutu_reader>: Remove.
14801 (cutu_reader::init_tu_and_read_dwo_dies): Update.
14802 (cutu_reader::cutu_reader): Update.
14803 (cutu_reader::keep): Rename from ~cutu_reader.
14804 (process_psymtab_comp_unit, build_type_psymtabs_1)
14805 (process_skeletonless_type_unit, load_partial_comp_unit)
14806 (load_full_comp_unit, dwarf2_read_addr_index)
14807 (read_signatured_type): Update.
14808
135f5437
TT
148092020-02-08 Tom Tromey <tom@tromey.com>
14810
14811 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
14812 "want_partial_unit" parameter.
14813 (process_psymtab_comp_unit): Change want_partial_unit to bool.
14814 Inline check for DW_TAG_partial_unit.
14815 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
14816
9f66ff1c
TT
148172020-02-08 Tom Tromey <tom@tromey.com>
14818
14819 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
14820 read.c.
14821 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
14822 read.c.
14823
c8a7a66f
TT
148242020-02-08 Tom Tromey <tom@tromey.com>
14825
14826 * dwarf2/read.c (read_address): Move to comp-unit.c.
14827 (dwarf2_rnglists_process, dwarf2_ranges_process)
14828 (read_attribute_value, dwarf_decode_lines_1)
14829 (var_decode_location, decode_locdesc): Update.
14830 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
14831 read.c. Remove "cu" parameter.
14832 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
14833 method.
14834
8266302d
TT
148352020-02-08 Tom Tromey <tom@tromey.com>
14836
14837 * dwarf2/read.c (read_attribute_value, read_indirect_string)
14838 (read_indirect_line_string): Update.
14839 * dwarf2/comp-unit.c (read_offset): Remove.
14840 (read_comp_unit_head): Update.
14841 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
14842 method.
14843 (read_offset): Don't declare.
14844
4057dfde
TT
148452020-02-08 Tom Tromey <tom@tromey.com>
14846
14847 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
14848 * dwarf2/read.c (struct comp_unit_head): Move to
14849 dwarf2/comp-unit.h.
14850 (enum class rcuh_kind): Move to comp-unit.h.
14851 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
14852 (read_comp_unit_head, error_check_comp_unit_head)
14853 (read_and_check_comp_unit_head): Move to comp-unit.c.
14854 (read_offset, dwarf_unit_type_name): Likewise.
14855 (create_debug_type_hash_table, read_cutu_die_from_dwo)
14856 (cutu_reader::cutu_reader, read_call_site_scope)
14857 (find_partial_die, follow_die_offset): Update.
14858 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
14859
24aa364d
TT
148602020-02-08 Tom Tromey <tom@tromey.com>
14861
14862 * dwarf2/read.c (read_offset_1): Move to leb.c.
14863 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
14864 (dwarf_decode_macro_bytes): Update.
14865 * dwarf2/leb.c (read_offset): Rename; move from read.c.
14866 * dwarf2/leb.h (read_offset): Declare.
14867
2c7d5afc
TT
148682020-02-08 Tom Tromey <tom@tromey.com>
14869
14870 * dwarf2/read.c (dwarf2_section_size): Remove.
14871 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
14872 Update.
14873 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
14874
4075cb26
TT
148752020-02-08 Tom Tromey <tom@tromey.com>
14876
14877 * dwarf2/read.c (read_initial_length): Move to leb.c.
14878 * dwarf2/leb.h (read_initial_length): Declare.
14879 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
14880 handle_nonstd parameter.
14881 * dwarf2/frame.c (read_initial_length): Remove.
14882 (decode_frame_entry_1): Update.
14883
09ba997f
TT
148842020-02-08 Tom Tromey <tom@tromey.com>
14885
14886 * dwarf2/loc.c (dwarf2_find_location_expression)
14887 (dwarf_evaluate_loc_desc::get_tls_address)
14888 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
14889 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
14890 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
14891 (dwarf2_compile_property_to_c)
14892 (dwarf2_loc_desc_get_symbol_read_needs)
14893 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
14894 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
14895 (loclist_describe_location, loclist_tracepoint_var_ref)
14896 (loclist_generate_c_location): Update.
14897 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
14898 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
14899 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
14900 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
14901 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
14902 (dwarf2_per_cu_data::addr_size)
14903 (dwarf2_per_cu_data::ref_addr_size)
14904 (dwarf2_per_cu_data::text_offset)
14905 (dwarf2_per_cu_data::addr_type): Now methods.
14906 (per_cu_header_read_in): Make per_cu "const".
14907 (dwarf2_version): Remove.
14908 (dwarf2_per_cu_data::int_type): Now a method.
14909 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
14910 (set_die_type, read_array_type, read_subrange_index_type)
14911 (read_tag_string_type, read_subrange_type): Update.
14912 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
14913 offset_size, ref_addr_size, text_offset, addr_type, version,
14914 objfile, int_type, addr_sized_int_type>: Declare methods.
14915
96c738c0
TT
149162020-02-08 Tom Tromey <tom@tromey.com>
14917
14918 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
14919 Move earlier.
14920
8fdd972c
TT
149212020-02-08 Tom Tromey <tom@tromey.com>
14922
14923 * dwarf2/read.h (dwarf_line_debug): Declare.
14924 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
14925 * dwarf2/read.c: Move line_header code to new files.
14926 (dwarf_line_debug): No longer static.
14927 * dwarf2/line-header.c: New file.
14928 * dwarf2/line-header.h: New file.
14929
03075812
TT
149302020-02-08 Tom Tromey <tom@tromey.com>
14931
14932 * dwarf2/read.c (struct line_header) <file_full_name,
14933 file_file_name>: Return unique_xmalloc_ptr.
14934 (line_header::file_file_name): Update.
14935 (line_header::file_full_name): Update.
14936 (dw2_get_file_names_reader): Update.
14937 (macro_start_file): Update.
14938
bb822404
TT
149392020-02-08 Tom Tromey <tom@tromey.com>
14940
14941 * dwarf2/read.c (struct line_header) <file_full_name,
14942 file_file_name>: Declare methods.
14943 (dw2_get_file_names_reader): Update.
14944 (file_file_name): Now a method.
14945 (file_full_name): Likewise.
14946 (macro_start_file): Update.
14947
009b64fc
TT
149482020-02-08 Tom Tromey <tom@tromey.com>
14949
14950 * dwarf2/read.c (dwarf_always_disassemble)
14951 (show_dwarf_always_disassemble): Move to loc.c.
14952 (_initialize_dwarf2_read): Move "always-disassemble" registration
14953 to loc.c.
14954 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
14955 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
14956 static.
14957 (show_dwarf_always_disassemble): Move from read.c.
14958 (_initialize_dwarf2loc): Move always-disassemble from read.c.
14959
5895093f
TT
149602020-02-08 Tom Tromey <tom@tromey.com>
14961
14962 * dwarf2/read.c (~dwarf2_per_objfile): Update.
14963 (create_quick_file_names_table): Return htab_up.
14964 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
14965 Update.
14966 * dwarf2/read.h (struct dwarf2_per_objfile)
14967 <quick_file_names_table>: Now htab_up.
14968
b3b32279
TT
149692020-02-08 Tom Tromey <tom@tromey.com>
14970
14971 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
14972
1d33d811
TT
149732020-02-08 Tom Tromey <tom@tromey.com>
14974
14975 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
14976 Rewrite.
14977 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
14978 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
14979 (abbrev_table::abbrev_table): No longer inline.
14980 (ABBREV_HASH_SIZE): Remove.
14981 (abbrev_table::m_abbrevs): Now an htab_up.
14982
86de1d91
TT
149832020-02-08 Tom Tromey <tom@tromey.com>
14984
14985 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
14986 (cutu_reader): Update.
14987 (build_type_psymtabs_1): Update.
14988 * dwarf2/abbrev.c (abbrev_table::read): Rename.
14989 (abbrev_table::alloc_abbrev): Update.
14990 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
14991 (abbrev_table::read): New static method, renamed from
14992 abbrev_table_read_table.
14993 (abbrev_table::alloc_abbrev)
14994 (abbrev_table::add_abbrev): Now private.
14995 (abbrev_table::abbrev_table): Now private.
14996 (abbrev_table::m_abbrev_obstack): Now private. Rename.
14997
0335378b
TT
149982020-02-08 Tom Tromey <tom@tromey.com>
14999
15000 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
15001 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
15002 htab_up.
15003
48b490f2
TT
150042020-02-08 Tom Tromey <tom@tromey.com>
15005
15006 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
15007 htab_up.
15008 (lookup_dwo_unit_in_dwp): Update.
15009 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
15010 on obstack.
15011
bc68fb19
TT
150122020-02-08 Tom Tromey <tom@tromey.com>
15013
15014 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
15015 obstack.
15016
d15acc42
TT
150172020-02-08 Tom Tromey <tom@tromey.com>
15018
15019 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
15020 line_header_hash.
15021 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
15022 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
15023 Change type to htab_up.
15024
eaa5fa8b
TT
150252020-02-08 Tom Tromey <tom@tromey.com>
15026
15027 * dwarf2/read.c (allocate_type_unit_groups_table): Return
15028 htab_up. Don't allocate on obstack.
15029 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
15030 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
15031 Change type to htab_up.
15032
b0b6a987
TT
150332020-02-08 Tom Tromey <tom@tromey.com>
15034
15035 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
15036 Change type to htab_up.
15037 * dwarf2/read.c (create_signatured_type_table_from_index)
15038 (create_signatured_type_table_from_debug_names)
15039 (create_all_type_units, add_type_unit)
15040 (lookup_dwo_signatured_type, lookup_signatured_type)
15041 (process_skeletonless_type_unit): Update.
15042 (create_debug_type_hash_table, create_debug_types_hash_table):
15043 Change type of types_htab.
15044 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
15045 htab_up. Don't allocate on obstack.
15046 (create_cus_hash_table): Change type of cus_htab parameter.
15047 (struct dwo_file) <cus, tus>: Now htab_up.
15048 (lookup_dwo_signatured_type, lookup_dwo_cutu)
15049 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
15050 (queue_and_load_all_dwo_tus): Update.
15051 * dwarf2/index-write.c (write_gdbindex): Update.
15052 (write_debug_names): Update.
15053
39856def
TT
150542020-02-08 Tom Tromey <tom@tromey.com>
15055
15056 * dwarf2/read.h (struct dwarf2_queue_item): Move from
15057 dwarf2/read.c. Remove "next" member. Add constructor ntad
15058 destructor.
15059 (struct dwarf2_per_objfile) <queue>: New member.
15060 * dwarf2/read.c (struct dwarf2_queue_item): Move to
15061 dwarf2/read.h.
15062 (dwarf2_queue, dwarf2_queue_tail): Remove.
15063 (class dwarf2_queue_guard): Add parameter to constructor. Use
15064 DISABLE_COPY_AND_ASSIGN.
15065 <m_per_objfile>: New member.
15066 <~dwarf2_queue_guard>: Rewrite.
15067 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
15068 Update.
15069 (~dwarf2_queue_item): New.
15070
3e225074
TT
150712020-02-08 Tom Tromey <tom@tromey.com>
15072
15073 * dwarf2/read.c (struct die_info) <has_children>: New member.
15074 (dw2_get_file_names_reader): Remove has_children.
15075 (dw2_get_file_names): Update.
15076 (read_cutu_die_from_dwo): Remove has_children.
15077 (cutu_reader::init_tu_and_read_dwo_dies)
15078 (cutu_reader::cutu_reader): Update.
15079 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
15080 Remove has_children.
15081 (build_type_psymtabs_1, process_skeletonless_type_unit)
15082 (load_partial_comp_unit, load_full_comp_unit): Update.
15083 (create_dwo_cu_reader): Remove has_children.
15084 (create_cus_hash_table, read_die_and_children): Update.
15085 (read_full_die_1,read_full_die): Remove has_children.
15086 (read_signatured_type): Update.
15087 (class cutu_reader) <has_children>: Remove.
15088
82ca8957
TT
150892020-02-08 Tom Tromey <tom@tromey.com>
15090
15091 * dwarf2/expr.c: Rename from dwarf2expr.c.
15092 * dwarf2/expr.h: Rename from dwarf2expr.h.
15093 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
15094 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
15095 * dwarf2/frame.c: Rename from dwarf2-frame.c.
15096 * dwarf2/frame.h: Rename from dwarf2-frame.h.
15097 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
15098 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
15099 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
15100 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
15101 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
15102 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
15103 * dwarf2/loc.c: Rename from dwarf2loc.c.
15104 * dwarf2/loc.h: Rename from dwarf2loc.h.
15105 * dwarf2/read.c: Rename from dwarf2read.c.
15106 * dwarf2/read.h: Rename from dwarf2read.h.
15107 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
15108 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
15109 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
15110 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
15111 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
15112 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
15113 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
15114 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
15115 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
15116 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
15117 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
15118 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
15119 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
15120 Update.
15121 * Makefile.in (COMMON_SFILES): Update.
15122 (HFILES_NO_SRCDIR): Update.
15123
9e35d499
TT
151242020-02-08 Tom Tromey <tom@tromey.com>
15125
15126 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
15127 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
15128
1eba2311
TT
151292020-02-08 Tom Tromey <tom@tromey.com>
15130
15131 * dwarf2read.h (struct die_info): Don't declare.
15132
e41c2da2
TT
151332020-02-08 Tom Tromey <tom@tromey.com>
15134
15135 * dwarf2read.h (die_info_ptr): Remove typedef.
15136
4fc6c0d5
TT
151372020-02-08 Tom Tromey <tom@tromey.com>
15138
15139 * dwarf2read.c (read_call_site_scope)
15140 (handle_data_member_location, dwarf2_add_member_fn)
15141 (mark_common_block_symbol_computed, read_common_block)
15142 (attr_to_dynamic_prop, partial_die_info::read)
15143 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
15144 (dwarf2_symbol_mark_computed, set_die_type): Update.
15145 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
15146 method.
15147 (attr_form_is_block): Don't declare.
15148 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
15149
cd6c91b4
TT
151502020-02-08 Tom Tromey <tom@tromey.com>
15151
15152 * dwarf2read.c (dwarf2_find_base_address, )
15153 (read_call_site_scope, rust_containing_type)
15154 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
15155 (handle_data_member_location, dwarf2_add_member_fn)
15156 (get_alignment, read_structure_type, process_structure_scope)
15157 (mark_common_block_symbol_computed, read_common_block)
15158 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
15159 (partial_die_info::read, read_attribute_value, new_symbol)
15160 (lookup_die_type, dwarf2_get_ref_die_offset)
15161 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
15162 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
15163 (dwarf2_symbol_mark_computed): Update.
15164 * dwarf2/attribute.h (struct attribute) <value_as_address,
15165 form_is_section_offset, form_is_constant, form_is_ref>: Declare
15166 methods.
15167 (value_as_address, attr_form_is_section_offset)
15168 (attr_form_is_constant, attr_form_is_ref): Don't declare.
15169 * dwarf2/attribute.c (attribute::value_as_address)
15170 (attribute::form_is_section_offset, attribute::form_is_constant)
15171 (attribute::form_is_ref): Now methods.
15172
162dce55
TT
151732020-02-08 Tom Tromey <tom@tromey.com>
15174
15175 * dwarf2read.c (struct attribute, DW_STRING)
15176 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
15177 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
15178 (attr_form_is_block, attr_form_is_section_offset)
15179 (attr_form_is_constant, attr_form_is_ref): Move.
15180 * dwarf2/attribute.h: New file.
15181 * dwarf2/attribute.c: New file, from dwarf2read.c.
15182 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
15183
3054dd54
TT
151842020-02-08 Tom Tromey <tom@tromey.com>
15185
15186 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
15187 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
15188 Move.
15189 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
15190 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
15191 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
15192 abbrev.c.
15193 * dwarf2/abbrev.h: New file.
15194 * dwarf2/abbrev.c: New file, from dwarf2read.c.
15195 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
15196
96b79293
TT
151972020-02-08 Tom Tromey <tom@tromey.com>
15198
15199 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
15200 (dwarf2_section_size, dwarf2_get_section_info)
15201 (create_signatured_type_table_from_debug_names)
15202 (create_addrmap_from_aranges, read_debug_names_from_section)
15203 (get_gdb_index_contents_from_section, read_comp_unit_head)
15204 (error_check_comp_unit_head, read_abbrev_offset)
15205 (create_debug_type_hash_table, init_cu_die_reader)
15206 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
15207 (read_comp_units_from_section, create_cus_hash_table)
15208 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
15209 (create_dwp_v2_section, dwarf2_rnglists_process)
15210 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
15211 (abbrev_table_read_table, read_indirect_string_at_offset_from)
15212 (read_indirect_string_from_dwz, read_addr_index_1)
15213 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
15214 (dwarf_decode_macro_bytes, dwarf_decode_macros)
15215 (fill_in_loclist_baton): Update.
15216 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
15217 get_containing_section, get_bfd_owner, get_bfd_section,
15218 get_file_name, get_id, get_flags, empty, read>: Declare methods.
15219 (dwarf2_read_section, get_section_name, get_section_file_name)
15220 (get_containing_section, get_section_bfd_owner)
15221 (get_section_bfd_section, get_section_name, get_section_file_name)
15222 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
15223 declare.
15224 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
15225 (dwarf2_section_info::get_bfd_owner)
15226 (dwarf2_section_info::get_bfd_section)
15227 (dwarf2_section_info::get_name)
15228 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
15229 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
15230 (dwarf2_section_info::read): Now methods.
15231 * dwarf-index-write.c (class debug_names): Update.
15232
2c86cff9
TT
152332020-02-08 Tom Tromey <tom@tromey.com>
15234
15235 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
15236 Move to dwarf2/section.h.
15237 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
15238 (get_section_bfd_section, get_section_name)
15239 (get_section_file_name, get_section_id, get_section_flags)
15240 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
15241 dwarf2/section.c.
15242 * dwarf2/section.h: New file.
15243 * dwarf2/section.c: New file, from dwarf2read.c.
15244 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
15245
f4382c45
TT
152462020-02-08 Tom Tromey <tom@tromey.com>
15247
15248 * dwarf2read.h (read_unsigned_leb128): Don't declare.
15249 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
15250 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
15251 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
15252 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
15253 * dwarf2/leb.h: New file, from dwarf2read.c.
15254 * dwarf2/leb.c: New file, from dwarf2read.c.
15255 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
15256 Remove.
15257 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
15258 (COMMON_SFILES): Add dwarf2/leb.c.
15259
01840b7a
JB
152602020-02-08 Joel Brobecker <brobecker@adacore.com>
15261
15262 GDB 9.1 released.
15263
dfcb27e4
IB
152642020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15265
15266 PR gdb/25190:
aac66a4c
SM
15267 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
15268 * gdb/remote.c (remote_console_output): Update.
15269 * gdb/ui-file.c (fputs_unfiltered): Rename to...
15270 (ui_file_puts): ...this.
15271 * gdb/ui-file.h (ui_file_puts): Add declaration.
15272 * gdb/utils.c (emit_style_escape): Update.
15273 (flush_wrap_buffer): Update.
15274 (fputs_maybe_filtered): Update.
15275 (fputs_unfiltered): Add function.
dfcb27e4 15276
faa17681
IB
152772020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15278
aac66a4c
SM
15279 * gdb/event-loop.c (gdb_wait_for_event): Update.
15280 * gdb/printcmd.c (printf_command): Update.
15281 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
15282 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
15283 (gdb_os_flush_stderr): Update.
15284 * gdb/remote.c (remote_console_output): Update.
15285 * gdb/ui-file.c (gdb_flush): Rename to...
15286 (ui_file_flush): ...this.
15287 (stderr_file::write): Update.
15288 (stderr_file::puts): Update.
15289 * gdb/ui-file.h (gdb_flush): Rename to...
15290 (ui_file_flush): ...this.
15291 * gdb/utils.c (gdb_flush): Add function.
15292 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 15293
5abbbe1d
TT
152942020-02-07 Tom Tromey <tromey@adacore.com>
15295
15296 PR breakpoints/24915:
15297 * source.c (find_and_open_source): Do not check basenames_may_differ.
15298
919adfe8
TT
152992020-02-07 Tom Tromey <tom@tromey.com>
15300
15301 * README: Update gdbserver documentation.
15302 * gdbserver: Move to top level.
15303 * configure.tgt (build_gdbserver): Remove.
15304 * configure.ac: Remove --enable-gdbserver.
15305 * configure: Rebuild.
15306 * Makefile.in (distclean): Don't mention gdbserver.
15307
1d5d29e7
SV
153082020-02-06 Shahab Vahedi <shahab@synopsys.com>
15309
15310 * source-cache.c (source_cache::ensure): Surround
15311 get_plain_source_lines with a try/catch.
15312 (source_cache::get_line_charpos): Get rid of try/catch
15313 and only check for the return value of "ensure".
15314 * tui/tui-source.c (tui_source_window::set_contents):
15315 Simplify "nlines" calculation.
15316
6eb1129c
SV
153172020-02-06 Shahab Vahedi <shahab@synopsys.com>
15318
15319 * MAINTAINERS (Write After Approval): Add myself.
15320
c6a42d11
CB
153212020-02-05 Christian Biesinger <cbiesinger@google.com>
15322
15323 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
15324 function call.
15325
c8ecdda6
CB
153262020-02-05 Christian Biesinger <cbiesinger@google.com>
15327
15328 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
15329
f6480e70
MR
153302020-02-05 Maciej W. Rozycki <macro@wdc.com>
15331
15332 * nat/riscv-linux-tdesc.h: New file.
15333 * nat/riscv-linux-tdesc.c: New file, taking code from...
15334 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
15335 ... here.
15336 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
15337 NATDEPFILES.
15338
dcc9fbc6
AB
153392020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
15340
15341 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
15342 we don't set the fake simulator ptid to the null_ptid.
15343
719546c4
SM
153442020-02-03 Simon Marchi <simon.marchi@efficios.com>
15345
15346 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
15347 * gdbthread.h (class thread_info) <resumed>: Likewise.
15348 * infrun.c (resume_1): Likewise.
15349 (proceed): Likewise.
15350 (infrun_thread_stop_requested): Likewise.
15351 (stop_all_threads): Likewise.
15352 (handle_inferior_event): Likewise.
15353 (restart_threads): Likewise.
15354 (finish_step_over): Likewise.
15355 (keep_going_stepped_thread): Likewise.
15356 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
15357 (linux_handle_extended_wait): Likewise.
15358 * record-btrace.c (get_thread_current_frame_id): Likewise.
15359 * record-full.c (record_full_wait_1): Likewise.
15360 * remote.c (remote_target::process_initial_stop_replies): Likewise.
15361 * target.c (target_resume): Likewise.
15362 * thread.c (set_running_thread): Likewise.
15363
e409c542
AKS
153642020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15365
15366 * f-valprint.c (f77_print_array_1): Changed datatype of index
15367 variable to LONGEST from int to enable it to contain bound
15368 values correctly.
15369
ee98c0da
MR
153702020-02-03 Maciej W. Rozycki <macro@wdc.com>
15371
15372 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
15373 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
15374 offsets according to FLEN determined.
15375 (riscv_linux_nat_target::read_description): Determine FLEN
15376 dynamically.
15377 (riscv_linux_nat_target::fetch_registers): Size regset buffer
15378 according to FLEN determined.
15379 (riscv_linux_nat_target::store_registers): Likewise.
15380
aa66aac4
SV
153812020-02-01 Shahab Vahedi <shahab@synopsys.com>
15382
15383 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
15384 when reg->group is empty and reggroup is not.
15385
fd9faca8
TT
153862020-01-31 Tom Tromey <tromey@adacore.com>
15387
15388 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
15389 Call beneath target's mourn_inferior after unpushing.
15390
42330a68
AB
153912020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15392
15393 PR tui/9765
15394 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
15395 have enough lines to fill the screen, still return the lowest
15396 address we found.
15397
7a27a45b
AB
153982020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15399
15400 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
15401 '-', '<', and '>' commands.
15402
c47f70e2
PA
154032020-01-29 Pedro Alves <palves@redhat.com>
15404 Sergio Durigan Junior <sergiodj@redhat.com>
15405
15406 * infcmd.c (construct_inferior_arguments): Assert that
15407 'argc' is greater than 0.
15408
5133a315
LM
154092020-01-29 Luis Machado <luis.machado@linaro.org>
15410
15411 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
15412 (BRK_INSN_MASK): Define to 0xd4200000.
15413 (aarch64_program_breakpoint_here_p): New function.
15414 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
15415 * arch-utils.c (default_program_breakpoint_here_p): Moved from
15416 breakpoint.c.
15417 * arch-utils.h (default_program_breakpoint_here_p): Moved from
15418 breakpoint.h
15419 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
15420 call gdbarch_program_breakpoint_here_p.
15421 (program_breakpoint_here): Moved to arch-utils.c, renamed to
15422 default_program_breakpoint_here_p, changed return type to bool and
15423 simplified.
15424 * breakpoint.h (program_breakpoint_here): Moved prototype to
15425 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
15426 return type to bool.
15427 * gdbarch.c: Regenerate.
15428 * gdbarch.h: Regenerate.
15429 * gdbarch.sh (program_breakpoint_here_p): New method.
15430 * infrun.c (handle_signal_stop): Call
15431 gdbarch_program_breakpoint_here_p.
15432
168f8c6b
TT
154332020-01-26 Tom Tromey <tom@tromey.com>
15434
15435 * ctfread.c (struct ctf_fp_info): Reindent.
15436 (_initialize_ctfread): Remove.
15437
128a391f
TT
154382020-01-26 Tom Tromey <tom@tromey.com>
15439
15440 * psymtab.c (partial_map_expand_apply)
15441 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
15442 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
15443 (psym_print_stats, psym_expand_symtabs_for_function)
15444 (psym_map_symbol_filenames, psym_map_matching_symbols)
15445 (psym_expand_symtabs_matching)
15446 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
15447 (maintenance_check_psymtabs): Use new methods.
15448 * psympriv.h (struct partial_symtab) <readin_p,
15449 get_compunit_symtab>: New methods.
15450 <readin, compunit_symtab>: Remove members.
15451 (struct standard_psymtab): New.
15452 (struct legacy_psymtab): Derive from standard_psymtab.
15453 * dwarf2read.h (struct dwarf2_psymtab): Derive from
15454 standard_psymtab.
15455 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
15456
0494dbec
TT
154572020-01-26 Tom Tromey <tom@tromey.com>
15458
15459 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
15460 read_dependencies. Add assert.
15461 * psymtab.c (partial_symtab::read_dependencies): New method.
15462 * psympriv.h (struct partial_symtab) <read_dependencies>: New
15463 method.
15464 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
15465 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
15466 read_dependencies.
15467 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
15468 Add assert.
15469
8566b89b
TT
154702020-01-26 Tom Tromey <tom@tromey.com>
15471
15472 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
15473 Call expand_psymtab.
15474 (xcoff_read_symtab): Call expand_psymtab.
15475 (xcoff_start_psymtab, xcoff_end_psymtab): Set
15476 legacy_expand_psymtab.
15477 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
15478 method.
15479 (struct legacy_psymtab) <expand_psymtab>: Implement.
15480 <legacy_expand_psymtab>: New member.
15481 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
15482 (parse_partial_symbols): Set legacy_expand_psymtab.
15483 (psymtab_to_symtab_1): Change argument order. Call
15484 expand_psymtab.
15485 (new_psymtab): Set legacy_expand_psymtab.
15486 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
15487 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
15488 expand_psymtab.
15489 (dwarf2_psymtab::expand_psymtab): Rename from
15490 psymtab_to_symtab_1. Call expand_psymtab.
15491 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
15492 (dbx_end_psymtab): Likewise.
15493 (dbx_psymtab_to_symtab_1): Change argument order. Call
15494 expand_psymtab.
15495 (dbx_read_symtab): Call expand_psymtab.
15496 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
15497 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
15498 (ctf_psymtab::read_symtab): Call expand_psymtab.
15499
077cbab2
TT
155002020-01-26 Tom Tromey <tom@tromey.com>
15501
15502 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
15503 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
15504 messages.
15505 * mdebugread.c (mdebug_read_symtab): Remove prints.
15506 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
15507 assert.
15508 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
15509
891813be
TT
155102020-01-26 Tom Tromey <tom@tromey.com>
15511
15512 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
15513 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
15514 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
15515 legacy_symtab.
15516 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
15517 * psymtab.c (psymtab_to_symtab): Call method.
15518 (dump_psymtab): Update.
15519 * psympriv.h (struct partial_symtab): Add virtual destructor.
15520 <read_symtab>: New method.
15521 (struct legacy_symtab): New.
15522 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
15523 (struct pst_map) <pst>: Now a legacy_psymtab.
15524 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
15525 (new_psymtab): Use legacy_psymtab.
15526 * dwarf2read.h (struct dwarf2_psymtab): New.
15527 (struct dwarf2_per_cu_data) <psymtab>: Use it.
15528 * dwarf2read.c (dwarf2_create_include_psymtab)
15529 (dwarf2_build_include_psymtabs, create_type_unit_group)
15530 (create_partial_symtab, process_psymtab_comp_unit_reader)
15531 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
15532 (set_partial_user): Use dwarf2_psymtab.
15533 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
15534 (psymtab_to_symtab_1, process_full_comp_unit)
15535 (process_full_type_unit, dwarf2_ranges_read)
15536 (dwarf2_get_pc_bounds, psymtab_include_file_name)
15537 (dwarf_decode_lines): Use dwarf2_psymtab.
15538 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
15539 (add_address_entry_worker, write_one_signatured_type)
15540 (recursively_count_psymbols, recursively_write_psymbols)
15541 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
15542 (write_debug_names): Likewise.
15543 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
15544 <pst>: Now a legacy_psymtab.
15545 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
15546 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
15547 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
15548 * ctfread.c (struct ctf_psymtab): New.
15549 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
15550 ctf_psymtab.
15551 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
15552 (create_partial_symtab): Return a ctf_psymtab.
15553 (scan_partial_symbols): Update.
15554
c3693a1d
TT
155552020-01-26 Tom Tromey <tom@tromey.com>
15556
15557 * xcoffread.c (xcoff_start_psymtab): Use new.
15558 * psymtab.c (partial_symtab::partial_symtab): New constructor,
15559 renamed from start_psymtab_common.
15560 * psympriv.h (struct partial_symtab): Add new constructor.
15561 (start_psymtab_common): Don't declare.
15562 * mdebugread.c (parse_partial_symbols): Use new.
15563 * dwarf2read.c (create_partial_symtab): Use new.
15564 * dbxread.c (start_psymtab): Use new.
15565 * ctfread.c (create_partial_symtab): Use new.
15566
32caafd0
TT
155672020-01-26 Tom Tromey <tom@tromey.com>
15568
15569 * xcoffread.c (xcoff_end_psymtab): Use new.
15570 * psymtab.c (start_psymtab_common): Use new.
15571 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
15572 Update.
15573 * psympriv.h (struct partial_symtab): Add parameters to
15574 constructor. Don't inline.
15575 (allocate_psymtab): Don't declare.
15576 * mdebugread.c (new_psymtab): Use new.
15577 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
15578 * dbxread.c (dbx_end_psymtab): Use new.
15579
abaa2f23
TT
155802020-01-26 Tom Tromey <tom@tromey.com>
15581
15582 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
15583 allocate_psymtab. Update documentation.
15584 * psymtab.c (psymtab_storage::install_psymtab): Rename from
15585 allocate_psymtab. Do not use new.
15586 (allocate_psymtab): Use new. Update.
15587
6d94535f
TT
155882020-01-26 Tom Tromey <tom@tromey.com>
15589
15590 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
15591 * psymtab.c (psym_print_stats): Update.
15592 * psympriv.h (struct partial_symtab) <readin,
15593 psymtabs_addrmap_supported, anonymous>: Now bool.
15594 * mdebugread.c (psymtab_to_symtab_1): Update.
15595 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
15596 (build_type_psymtabs_reader, psymtab_to_symtab_1)
15597 (process_full_comp_unit, process_full_type_unit): Update.
15598 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
15599 * ctfread.c (psymtab_to_symtab): Update.
15600
6f17252b
TT
156012020-01-26 Tom Tromey <tom@tromey.com>
15602
15603 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
15604 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
15605 * psymtab.c (psymtab_storage): Delete psymtabs.
15606 (psymtab_storage::allocate_psymtab): Use new.
15607 (psymtab_storage::discard_psymtab): Use delete.
15608 * psympriv.h (struct partial_symtab): Add constructor and
15609 initializers.
15610
f6f1cebc
TT
156112020-01-26 Tom Tromey <tom@tromey.com>
15612
15613 * machoread.c: Do not include psympriv.h.
15614
e47e48f6
PW
156152020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15616
15617 * NEWS: Mention the new option and the set/show commands.
15618
a2fedca9
PW
156192020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15620
15621 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
15622 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
15623 (validate_exec_file): New variables, enums, functions.
15624 (exec_file_locate_attach, print_section_info): Style the filenames.
15625 (_initialize_exec): Install show_exec_file_mismatch_command and
15626 set_exec_file_mismatch_command.
15627 * gdbcore.h (validate_exec_file): Declare.
15628 * infcmd.c (attach_command): Call validate_exec_file.
15629 * remote.c ( remote_target::remote_add_inferior): Likewise.
15630
7ffa82e1
AB
156312020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15632
15633 * frame.c (find_frame_sal): Move call to get_next_frame into more
15634 inner scope.
15635 * inline-frame.c (inilne_state) <inline_state>: Update argument
15636 types.
15637 (inilne_state) <skipped_symbol>: Rename to...
15638 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
15639 (skip_inline_frames): Build vector of skipped symbols and use this
15640 to reate the inline_state.
15641 (inline_skipped_symbol): Add a comment and some assertions, fetch
15642 skipped symbol from the list.
15643
3d92a3e3
AB
156442020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15645
15646 * buildsym.c (lte_is_less_than): Delete.
15647 (buildsym_compunit::end_symtab_with_blockvector): Create local
15648 lambda function to sort line table entries, and use
15649 std::stable_sort instead of std::sort.
15650 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
15651 markers when looking for a previous line.
15652
94a72be7
AB
156532020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15654
15655 * dwarf2read.c (lnp_state_machine::record_line): Include
15656 end_sequence parameter in debug print out. Record the line if we
15657 are at an end_sequence marker even if it's not the start of a
15658 statement.
15659 * symmisc.c (maintenance_print_one_line_table): Print end of
15660 sequence markers with 'END' not '0'.
15661
53af73bf
PA
156622020-01-24 Pedro Alves <palves@redhat.com>
15663
15664 PR gdb/25410
15665 * thread.c (scoped_restore_current_thread::restore): Use
15666 switch_to_inferior_no_thread.
15667 * exec.c: Include "progspace-and-thread.h".
15668 (add_target_sections, remove_target_sections):
15669 scoped_restore_current_pspace_and_thread instead of
15670 scoped_restore_current_thread.
15671 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
15672 and aspace to the inferior before calling clone_program_space.
15673 Remove stale comment.
15674
3050c6f4
CB
156752020-01-24 Christian Biesinger <cbiesinger@google.com>
15676
15677 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
15678 (arm_netbsd_nat_target::fetch_registers): ...this.
15679 (arm_nbsd_nat_target::store_registers): Rename to...
15680 (arm_netbsd_nat_target::store_registers): ...this.
15681
73685c7e
CB
156822020-01-24 Christian Biesinger <cbiesinger@google.com>
15683
15684 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
15685 register_t.
15686
89203d40
CB
156872020-01-24 Christian Biesinger <cbiesinger@google.com>
15688
15689 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
15690 Update comment.
15691 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
15692 Likewise.
15693 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
15694 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
15695 the correct replacement (iterate_over_regset_sections).
15696 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
15697 Update comment.
15698
1ba1ac88
AB
156992020-01-24 Graham Markall <graham.markall@embecosm.com>
15700
15701 PR gdb/23718
15702 * gdb/python/python.c (execute_gdb_command): Call
15703 async_enable_stdin in catch block.
15704
f3364a6d
AB
157052020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15706
15707 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
15708 SWITCH_THRU_ALL_UIS.
15709
733d0a67
AB
157102020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15711
15712 PR tui/9765
15713 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
15714 comment, add extra parameter, and update to store previous symbol
15715 when appropriate.
15716 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
15717 add extra parameter.
15718 * tui/tui-disasm.c (tui_disassemble): Update header comment,
15719 remove unneeded parameter, add try/catch around gdb_print_insn,
15720 rewrite to add items to asm_lines vector.
15721 (tui_find_backward_disassembly_start_address): New function.
15722 (tui_find_disassembly_address): Updated throughout.
15723 (tui_disasm_window::set_contents): Update for changes to
15724 tui_disassemble.
15725 (tui_disasm_window::do_scroll_vertical): No need to adjust the
15726 number of lines to scroll.
15727
b3b3bada
SM
157282020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
15729
15730 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
15731 (SECT_OFF_DATA): Likewise.
15732 (SECT_OFF_RODATA): Likewise.
15733 (SECT_OFF_TEXT): Likewise.
15734 (SECT_OFF_BSS): Likewise.
15735 (struct objfile) <text_section_offset, data_section_offset>: New
15736 methods.
15737 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
15738 objfile::text_section_offset.
15739 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
15740 * coffread.c (coff_symtab_read): Likewise.
15741 (enter_linenos): Likewise.
15742 (process_coff_symbol): Likewise.
15743 * ctfread.c (get_objfile_text_range): Likewise.
15744 * dtrace-probe.c (dtrace_probe::get_relocated_address):
15745 Use objfile::data_section_offset.
15746 * dwarf2-frame.c (execute_cfa_program): Use
15747 objfile::text_section_offset.
15748 (dwarf2_frame_find_fde): Likewise.
15749 * dwarf2read.c (create_addrmap_from_index): Likewise.
15750 (create_addrmap_from_aranges): Likewise.
15751 (dw2_find_pc_sect_compunit_symtab): Likewise.
15752 (process_psymtab_comp_unit_reader): Likewise.
15753 (add_partial_symbol): Likewise.
15754 (add_partial_subprogram): Likewise.
15755 (process_full_comp_unit): Likewise.
15756 (read_file_scope): Likewise.
15757 (read_func_scope): Likewise.
15758 (read_lexical_block_scope): Likewise.
15759 (read_call_site_scope): Likewise.
15760 (dwarf2_rnglists_process): Likewise.
15761 (dwarf2_ranges_process): Likewise.
15762 (dwarf2_ranges_read): Likewise.
15763 (dwarf_decode_lines_1): Likewise.
15764 (new_symbol): Likewise.
15765 (dwarf2_fetch_die_loc_sect_off): Likewise.
15766 (dwarf2_per_cu_text_offset): Likewise.
15767 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
15768 * hppa-tdep.c (read_unwind_info): Likewise.
15769 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
15770 * psympriv.h (struct partial_symtab): Likewise.
15771 * psymtab.c (find_pc_sect_psymtab): Likewise.
15772 * solib-svr4.c (enable_break): Likewise.
15773 * stap-probe.c (relocate_address): Use
15774 objfile::data_section_offset.
15775 * xcoffread.c (enter_line_range): Use
15776 objfile::text_section_offset.
15777 (read_xcoff_symtab): Likewise.
15778
ab53f382
SM
157792020-01-23 Simon Marchi <simon.marchi@efficios.com>
15780
15781 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
15782 declaration to narrower scopes.
15783
e7eee665
SM
157842020-01-23 Simon Marchi <simon.marchi@efficios.com>
15785
15786 * darwin-nat.h (struct darwin_exception_msg, enum
15787 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
15788 Move up.
15789 (class darwin_nat_target) <wait_1, check_new_threads,
15790 decode_exception_message, decode_message, stop_inferior,
15791 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
15792 * darwin-nat.c (darwin_check_new_threads): Rename to...
15793 (darwin_nat_target::check_new_threads): ... this.
15794 (darwin_suspend_inferior_it): Remove.
15795 (darwin_decode_exception_message): Rename to...
15796 (darwin_nat_target::decode_exception_message): ... this.
15797 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
15798 (darwin_decode_message): Rename to...
15799 (darwin_nat_target::decode_message): ... this.
15800 (cancel_breakpoint): Rename to...
15801 (darwin_nat_target::cancel_breakpoint): ... this.
15802 (darwin_wait): Rename to...
15803 (darwin_nat_target::wait_1): ... this. Use range-based for loop
15804 instead of iterate_over_inferiors.
15805 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
15806 (darwin_stop_inferior): Rename to...
15807 (darwin_nat_target::stop_inferior): ... this.
15808 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
15809 (darwin_init_thread_list): Rename to...
15810 (darwin_nat_target::init_thread_list): ... this.
15811 (darwin_ptrace_him): Rename to...
15812 (darwin_nat_target::ptrace_him): ... this.
15813 (darwin_nat_target::create_inferior): Pass lambda function to
15814 fork_inferior.
15815 (darwin_nat_target::detach): Call stop_inferior instead of
15816 darwin_stop_inferior.
15817 * fork-inferior.h (fork_inferior): Change init_trace_fun
15818 parameter to gdb::function_view.
15819 * fork-inferior.c (fork_inferior): Likewise.
15820
c162ed3e
HD
158212020-01-23 Hannes Domani <ssbssa@yahoo.de>
15822
15823 * i386-cygwin-tdep.c (core_process_module_section): Update.
15824 * windows-nat.c (struct lm_info_windows): Add text_offset.
15825 (windows_xfer_shared_libraries): Update.
15826 * windows-tdep.c (windows_xfer_shared_library):
15827 Add text_offset_cached argument.
15828 * windows-tdep.h (windows_xfer_shared_library): Update.
15829
a1237872
SM
158302020-01-21 Simon Marchi <simon.marchi@efficios.com>
15831
15832 * gdbarch.sh: Add declaration for _initialize_gdbarch.
15833
b3ee6dd9
SM
158342020-01-21 Simon Marchi <simon.marchi@efficios.com>
15835
15836 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
15837 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
15838 replace with range-based for.
15839 (gdbsim_interrupt_inferior): Remove.
15840 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
15841 with a range-based for. Inline code from
15842 gdbsim_interrupt_inferior.
15843
f9fac3c8
SM
158442020-01-21 Simon Marchi <simon.marchi@efficios.com>
15845
15846 * infrun.c (proceed): Fix indentation.
15847
f6474de9
TT
158482020-01-21 Tom Tromey <tromey@adacore.com>
15849
15850 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
15851 * python/python.c (python_extension_ops): Update.
15852 (gdbpy_colorize): New function.
15853 * python/lib/gdb/__init__.py (colorize): New function.
15854 * extension.h (ext_lang_colorize): Declare.
15855 * extension.c (ext_lang_colorize): New function.
15856 * extension-priv.h (struct extension_language_ops) <colorize>: New
15857 member.
15858 * cli/cli-style.c (_initialize_cli_style): Update help text.
15859
f0c702d4
LM
158602020-01-21 Luis Machado <luis.machado@linaro.org>
15861
15862 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
15863 <cond>: Change type to bool.
15864 (aarch64_displaced_step_b_cond): Update cond to use bool type.
15865 (aarch64_displaced_step_cb): Likewise.
15866 (aarch64_displaced_step_tb): Likewise.
15867
1ab139e5
LM
158682020-01-21 Luis Machado <luis.machado@linaro.org>
15869
15870 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
15871 output.
15872
0c271889
LM
158732020-01-21 Luis Machado <luis.machado@linaro.org>
15874
15875 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
15876 <pc_adjust>: Adjust the documentation.
15877 (aarch64_displaced_step_fixup): Check if PC really moved before
15878 adjusting it.
15879
4d89c1c7
TT
158802020-01-19 Tom Tromey <tom@tromey.com>
15881
15882 * disasm.c (~gdb_disassembler): New destructor.
15883 (gdb_buffered_insn_length): Call disassemble_free_target.
15884 * disasm.h (class gdb_disassembler): Declare destructor. Use
15885 DISABLE_COPY_AND_ASSIGN.
15886
c0ab21c2
TT
158872020-01-19 Tom Tromey <tom@tromey.com>
15888
15889 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
15890 (die_reader_func_ftype): Remove.
15891 (cutu_reader): New class.
15892 (dw2_get_file_names_reader): Remove "data" parameter.
15893 (dw2_get_file_names): Use cutu_reader.
15894 (create_debug_type_hash_table): Update.
15895 (read_cutu_die_from_dwo): Update comment.
15896 (lookup_dwo_unit): Add dwo_name parameter.
15897 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
15898 die_reader_func_ftype and data parameters.
15899 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
15900 Remove die_reader_func_ftype and data parameters.
15901 (~cutu_reader): New; from init_cutu_and_read_dies.
15902 (cutu_reader::cutu_reader): Rename from
15903 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
15904 and data parameters.
15905 (init_cutu_and_read_dies_simple): Remove.
15906 (struct process_psymtab_comp_unit_data): Remove.
15907 (process_psymtab_comp_unit_reader): Remove data parameter; add
15908 want_partial_unit and pretend_language parameters.
15909 (process_psymtab_comp_unit): Use cutu_reader.
15910 (build_type_psymtabs_reader): Remove data parameter.
15911 (build_type_psymtabs_1): Use cutu_reader.
15912 (process_skeletonless_type_unit): Likewise.
15913 (load_partial_comp_unit_reader): Remove.
15914 (load_partial_comp_unit): Use cutu_reader.
15915 (load_full_comp_unit_reader): Remove.
15916 (load_full_comp_unit): Use cutu_reader.
15917 (struct create_dwo_cu_data): Remove.
15918 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
15919 dwo_unit parameters.
15920 (create_cus_hash_table): Use cutu_reader.
15921 (struct dwarf2_read_addr_index_data): Remove.
15922 (dwarf2_read_addr_index_reader): Remove.
15923 (dwarf2_read_addr_index): Use cutu_reader.
15924 (read_signatured_type_reader): Remove.
15925 (read_signatured_type): Use cutu_reader.
15926
45bbae5c
TT
159272020-01-19 Tom Tromey <tom@tromey.com>
15928
15929 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
15930 * tui/tui-wingeneral.h (class tui_suppress_output): New.
15931 (tui_wrefresh): Declare.
15932 * tui/tui-wingeneral.c (suppress_output): New global.
15933 (tui_suppress_output, ~tui_suppress_output): New constructor and
15934 destructor.
15935 (tui_wrefresh): New function.
15936 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
15937 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
15938 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
15939 method.
15940 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
15941 tui_wrefresh.
15942 (tui_data_window::no_refresh): New method.
15943 (tui_data_item_window::refresh_window): Call tui_wrefresh.
15944 (tui_reg_command): Use tui_suppress_output
15945 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
15946 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
15947 method.
15948 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
15949
4f13c1c0
TT
159502020-01-19 Tom Tromey <tom@tromey.com>
15951
15952 * tui/tui-winsource.c (tui_update_source_windows_with_line):
15953 Handle case where symtab is null.
15954
fa47e446
SM
159552020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
15956
15957 * linux-fork.c (one_fork_p): Simplify.
15958
26f42329
SM
159592020-01-17 Simon Marchi <simon.marchi@efficios.com>
15960
15961 * top.c (struct qt_args): Remove.
15962 (kill_or_detach): Change return type to void, replace `void *`
15963 parameter with a proper one.
15964 (print_inferior_quit_action): Likewise.
15965 (quit_confirm): Use range-based for loop to iterate over inferiors.
15966 (quit_force): Likewise.
15967
a9ac81b1
SM
159682020-01-17 Simon Marchi <simon.marchi@efficios.com>
15969
15970 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
15971 `void *` parameter with proper parameters.
15972 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
15973 (print_one_inferior): Change return type to void, replace `void *`
15974 parameter with proper parameters.
15975 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
15976 inferiors.
15977 (get_other_inferior): Remove.
15978 (mi_cmd_remove_inferior): Use range-based loop to iterate over
15979 inferiors.
15980
788eca49
SM
159812020-01-17 Simon Marchi <simon.marchi@efficios.com>
15982
15983 * mi/mi-interp.c (report_initial_inferior): Remove.
15984 (mi_interp::init): Use range-based for to iterate over inferiors.
15985
d9bc85b6
SM
159862020-01-17 Simon Marchi <simon.marchi@efficios.com>
15987
15988 * python/py-inferior.c (build_inferior_list): Remove.
15989 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
15990
40c94099
CB
159912020-01-16 Christian Biesinger <cbiesinger@google.com>
15992
15993 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
15994 (btrace_stitch_trace): Likewise.
15995 * charset.c (intermediate_encoding): Likewise (vaild).
15996 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
15997 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
15998 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
15999
e0cdfe3c
HD
160002020-01-16 Hannes Domani <ssbssa@yahoo.de>
16001
16002 * windows-tdep.c (windows_get_tlb_type):
16003 Add rtl_user_process_parameters type.
16004
790f1718 160052020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 16006 Norbert Lange <nolange79@gmail.com>
790f1718
PA
16007
16008 PR build/24805
16009 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
16010 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
16011 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
16012 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
16013 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
16014 (ps_plog): Redeclare exported functions with default visibility.
16015
3112ed97
NA
160162020-01-16 Nitika Achra <Nitika.Achra@amd.com>
16017
16018 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
16019 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
16020
8dc3273e
SM
160212020-01-15 Simon Marchi <simon.marchi@efficios.com>
16022
16023 * infcmd.c (post_create_inferior): Use get_thread_regcache
16024 instead of get_current_regcache.
16025
ff47f4f0
TT
160262020-01-14 Tom Tromey <tom@tromey.com>
16027
16028 PR symtab/12535:
16029 * python/python.c (gdbpy_decode_line): Treat empty string the same
16030 as no argument.
16031
975f45b7
TT
160322020-01-14 Tom Tromey <tom@tromey.com>
16033
16034 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
16035
25e57356
TT
160362020-01-14 Tom Tromey <tom@tromey.com>
16037
16038 * nat/linux-btrace.c: Don't include <config.h>.
16039 * nat/linux-ptrace.c: Don't include <config.h>.
16040 * nat/x86-linux-dregs.c: Don't include <config.h>.
16041
05ea2a05
TT
160422020-01-14 Tom Tromey <tom@tromey.com>
16043
16044 * configure: Rebuild.
16045 * configure.ac: Move many checks to ../gdbsupport/common.m4.
16046
01027315
TT
160472020-01-14 Tom Tromey <tom@tromey.com>
16048
16049 * nat/x86-linux-dregs.c: Include configh.h.
16050 * nat/linux-ptrace.c: Include configh.h.
16051 * nat/linux-btrace.c: Include configh.h.
16052 * defs.h: Include config.h, bfd.h.
16053 * configure.ac: Don't source common.host.
16054 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
16055 * configure: Rebuild.
16056 * acinclude.m4: Update path.
16057 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
16058 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
16059 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
16060 (CLIBS): Add LIBSUPPORT.
16061 (CDEPS): Likewise.
16062 (COMMON_SFILES): Remove gdbsupport files.
16063 (HFILES_NO_SRCDIR): Likewise.
16064 (stamp-version): Update path to create-version.sh.
16065 (ALLDEPFILES): Remove gdbsupport files.
16066
b2ceabe8
TT
160672020-01-14 Tom Tromey <tom@tromey.com>
16068
16069 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
16070 USE_WIN32API when needed.
16071 * configure.ac (USE_WIN32API): Don't define.
16072 (WIN32LIBS): Use WIN32APILIBS.
16073 * configure: Rebuild.
16074
25c51f71
TT
160752020-01-14 Tom Tromey <tom@tromey.com>
16076
16077 * configure: Rebuild.
16078 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
16079
717c684d
BE
160802020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
16081
16082 * skip.c (skip_function_command): Make skip w/o arguments use the
16083 name of the inlined function if pc is inside any inlined function.
16084
7da6a5b9
LM
160852020-01-14 Luis Machado <luis.machado@linaro.org>
16086
16087 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
16088 * infrun.c (resume_1): Likewise.
16089 (handle_inferior_event): Remove stale comment.
16090 * linux-nat.c (linux_nat_target::resume): Update comments.
16091 (save_stop_reason): Likewise.
16092 (linux_nat_filter_event): Likewise.
16093 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
16094
44e4c775
AB
160952020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16096
16097 * elfread.c (record_minimal_symbol): Set section index to 0 for
16098 non-allocatable sections.
16099
18a8505e
AT
16100
161012020-01-13 Ali Tamur <tamur@google.com>
16102
16103 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
16104 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
16105 to gdb::optional. Update comments.
16106 (dwo_file): Update comments.
16107 (read_attribute): Update API to take an additional out parameter,
16108 need_reprocess. This is used to mark attributes that need other
16109 attributes (e.g. str_offsets_base) for correct computation which may not
16110 have been read yet.
16111 (read_attribute_reprocess): New function declaration.
16112 (read_addr_index): Likewise.
16113 (read_dwo_str_index): Likewise.
16114 (read_stub_str_index): Likewise.
16115 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
16116 (lookup_addr_base): New function definition.
16117 (lookup_ranges_base): Likewise.
16118 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
16119 lookup_ranges_base.
16120 (init_cutu_and_read_dies): Update comments.
16121 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
16122 unit. This is used to inherit parent's str_offsets_base and addr_base.
16123 Update comments.
16124 (init_cutu_and_read_dies_simple): Reflect API changes.
16125 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
16126 (create_cus_hash_table): Change API to take parent compile unit.
16127 Reflect API changes.
16128 (open_and_init_dwo_file): Reflect API changes.
16129 (dwarf2_get_pc_bounds): Update comments.
16130 (dwarf2_record_block_ranges): Likewise.
16131 (read_full_die_1): Change implementation to reprocess attributes that
16132 need str_offsets_base and addr_base.
16133 (partial_die_info::read): Likewise.
16134 (read_attribute_reprocess): New function definition.
16135 (read_attribute_value): Change API to take an additional out parameter,
16136 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
16137 when a non-dwo compile unit has index based attributes.
16138 (read_attribute): Reflect API changes.
16139 (read_addr_index_1): Reflect API changes. Update comments.
16140 (dwarf2_read_addr_index_data): Reflect API changes.
16141 (dwarf2_read_addr_index): Likewise.
16142 (read_str_index): Change API and implementation. This becomes a helper
16143 to be used by the new string index related methods. Update error
16144 message and comments.
16145 (read_dwo_str_index): New function definition.
16146 (read_stub_str_index): Likewise.
16147 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
16148 * symfile.h (dwarf2_debug_sections): Likewise.
16149 * xcoffread.c (dwarf2_debug_sections): Likewise.
16150
0cac9354
SM
161512020-01-13 Simon Marchi <simon.marchi@efficios.com>
16152
16153 * gdbcore.h (struct core_fns) <core_read_registers>: Change
16154 core_reg_sect type to gdb_byte *.
16155 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
16156 * cris-tdep.c (fetch_core_registers): Likewise.
16157 * corelow.c (core_target::get_core_register_section): Change
16158 type of `contents` to gdb::byte_vector.
16159
9a6d629c
AB
161602020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16161
16162 * tui/tui-wingeneral.c (box_win): Position the title in the center
16163 of the border.
16164
d8b2f9e3
SM
161652020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16166
16167 * corelow.c (core_target::get_core_register_section): Use
16168 std::vector instead of alloca.
16169
bb564c58
SM
161702020-01-13 Simon Marchi <simon.marchi@efficios.com>
16171
16172 * warning.m4: Add -Wmissing-declarations to build_warnings.
16173 * configure: Re-generate.
16174
6b366111
SM
161752020-01-13 Simon Marchi <simon.marchi@efficios.com>
16176
16177 * python/python.c (init__gdb_module): Add declaration.
16178
6c265988
SM
161792020-01-13 Simon Marchi <simon.marchi@efficios.com>
16180
16181 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
16182 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
16183 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
16184 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
16185 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
16186 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
16187 * ada-exp.y (_initialize_ada_exp): Add declaration.
16188 * ada-lang.c (_initialize_ada_language): Add declaration.
16189 * ada-tasks.c (_initialize_tasks): Add declaration.
16190 * agent.c (_initialize_agent): Add declaration.
16191 * aix-thread.c (_initialize_aix_thread): Add declaration.
16192 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
16193 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
16194 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
16195 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
16196 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
16197 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
16198 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
16199 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
16200 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
16201 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
16202 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
16203 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
16204 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
16205 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
16206 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
16207 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
16208 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
16209 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
16210 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
16211 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
16212 * annotate.c (_initialize_annotate): Add declaration.
16213 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
16214 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
16215 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
16216 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
16217 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
16218 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
16219 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
16220 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
16221 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
16222 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
16223 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
16224 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
16225 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
16226 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
16227 * auto-load.c (_initialize_auto_load): Add declaration.
16228 * auxv.c (_initialize_auxv): Add declaration.
16229 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
16230 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
16231 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
16232 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
16233 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
16234 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
16235 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
16236 * breakpoint.c (_initialize_breakpoint): Add declaration.
16237 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
16238 * btrace.c (_initialize_btrace): Add declaration.
16239 * charset.c (_initialize_charset): Add declaration.
16240 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
16241 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
16242 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
16243 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
16244 * cli/cli-script.c (_initialize_cli_script): Add declaration.
16245 * cli/cli-style.c (_initialize_cli_style): Add declaration.
16246 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
16247 * coffread.c (_initialize_coffread): Add declaration.
16248 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
16249 * compile/compile.c (_initialize_compile): Add declaration.
16250 * complaints.c (_initialize_complaints): Add declaration.
16251 * completer.c (_initialize_completer): Add declaration.
16252 * copying.c (_initialize_copying): Add declaration.
16253 * corefile.c (_initialize_core): Add declaration.
16254 * corelow.c (_initialize_corelow): Add declaration.
16255 * cp-abi.c (_initialize_cp_abi): Add declaration.
16256 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
16257 * cp-support.c (_initialize_cp_support): Add declaration.
16258 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
16259 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
16260 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
16261 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
16262 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
16263 * ctfread.c (_initialize_ctfread): Add declaration.
16264 * d-lang.c (_initialize_d_language): Add declaration.
16265 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
16266 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
16267 * dbxread.c (_initialize_dbxread): Add declaration.
16268 * dcache.c (_initialize_dcache): Add declaration.
16269 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
16270 * disasm.c (_initialize_disasm): Add declaration.
16271 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
16272 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
16273 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
16274 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
16275 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
16276 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
16277 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
16278 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
16279 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
16280 * elfread.c (_initialize_elfread): Add declaration.
16281 * exec.c (_initialize_exec): Add declaration.
16282 * extension.c (_initialize_extension): Add declaration.
16283 * f-lang.c (_initialize_f_language): Add declaration.
16284 * f-valprint.c (_initialize_f_valprint): Add declaration.
16285 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
16286 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
16287 * filesystem.c (_initialize_filesystem): Add declaration.
16288 * findcmd.c (_initialize_mem_search): Add declaration.
16289 * findvar.c (_initialize_findvar): Add declaration.
16290 * fork-child.c (_initialize_fork_child): Add declaration.
16291 * frame-base.c (_initialize_frame_base): Add declaration.
16292 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
16293 * frame.c (_initialize_frame): Add declaration.
16294 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
16295 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
16296 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
16297 * gcore.c (_initialize_gcore): Add declaration.
16298 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
16299 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
16300 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
16301 * gdbarch.c (_initialize_gdbarch): Add declaration.
16302 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
16303 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
16304 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
16305 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
16306 * go-lang.c (_initialize_go_language): Add declaration.
16307 * go32-nat.c (_initialize_go32_nat): Add declaration.
16308 * guile/guile.c (_initialize_guile): Add declaration.
16309 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
16310 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
16311 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
16312 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
16313 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
16314 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
16315 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
16316 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
16317 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
16318 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
16319 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
16320 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
16321 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
16322 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
16323 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
16324 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
16325 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
16326 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
16327 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
16328 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
16329 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
16330 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
16331 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
16332 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
16333 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
16334 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
16335 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
16336 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
16337 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
16338 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
16339 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
16340 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
16341 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
16342 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
16343 * infcall.c (_initialize_infcall): Add declaration.
16344 * infcmd.c (_initialize_infcmd): Add declaration.
16345 * inflow.c (_initialize_inflow): Add declaration.
16346 * infrun.c (_initialize_infrun): Add declaration.
16347 * interps.c (_initialize_interpreter): Add declaration.
16348 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
16349 * jit.c (_initialize_jit): Add declaration.
16350 * language.c (_initialize_language): Add declaration.
16351 * linux-fork.c (_initialize_linux_fork): Add declaration.
16352 * linux-nat.c (_initialize_linux_nat): Add declaration.
16353 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
16354 * linux-thread-db.c (_initialize_thread_db): Add declaration.
16355 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
16356 * m2-lang.c (_initialize_m2_language): Add declaration.
16357 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
16358 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
16359 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
16360 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
16361 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
16362 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
16363 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
16364 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
16365 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
16366 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
16367 * machoread.c (_initialize_machoread): Add declaration.
16368 * macrocmd.c (_initialize_macrocmd): Add declaration.
16369 * macroscope.c (_initialize_macroscope): Add declaration.
16370 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
16371 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
16372 * maint.c (_initialize_maint_cmds): Add declaration.
16373 * mdebugread.c (_initialize_mdebugread): Add declaration.
16374 * memattr.c (_initialize_mem): Add declaration.
16375 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
16376 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
16377 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
16378 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
16379 * mi/mi-main.c (_initialize_mi_main): Add declaration.
16380 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
16381 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
16382 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
16383 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
16384 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
16385 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
16386 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
16387 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
16388 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
16389 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
16390 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
16391 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
16392 * mipsread.c (_initialize_mipsread): Add declaration.
16393 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
16394 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
16395 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
16396 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
16397 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
16398 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
16399 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
16400 * nto-procfs.c (_initialize_procfs): Add declaration.
16401 * objc-lang.c (_initialize_objc_language): Add declaration.
16402 * observable.c (_initialize_observer): Add declaration.
16403 * opencl-lang.c (_initialize_opencl_language): Add declaration.
16404 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
16405 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
16406 * osabi.c (_initialize_gdb_osabi): Add declaration.
16407 * osdata.c (_initialize_osdata): Add declaration.
16408 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
16409 * parse.c (_initialize_parse): Add declaration.
16410 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
16411 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
16412 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
16413 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
16414 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
16415 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
16416 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
16417 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
16418 * printcmd.c (_initialize_printcmd): Add declaration.
16419 * probe.c (_initialize_probe): Add declaration.
16420 * proc-api.c (_initialize_proc_api): Add declaration.
16421 * proc-events.c (_initialize_proc_events): Add declaration.
16422 * proc-service.c (_initialize_proc_service): Add declaration.
16423 * procfs.c (_initialize_procfs): Add declaration.
16424 * producer.c (_initialize_producer): Add declaration.
16425 * psymtab.c (_initialize_psymtab): Add declaration.
16426 * python/python.c (_initialize_python): Add declaration.
16427 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
16428 * record-btrace.c (_initialize_record_btrace): Add declaration.
16429 * record-full.c (_initialize_record_full): Add declaration.
16430 * record.c (_initialize_record): Add declaration.
16431 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
16432 * regcache.c (_initialize_regcache): Add declaration.
16433 * reggroups.c (_initialize_reggroup): Add declaration.
16434 * remote-notif.c (_initialize_notif): Add declaration.
16435 * remote-sim.c (_initialize_remote_sim): Add declaration.
16436 * remote.c (_initialize_remote): Add declaration.
16437 * reverse.c (_initialize_reverse): Add declaration.
16438 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
16439 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
16440 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
16441 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
16442 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
16443 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
16444 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
16445 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
16446 Add declaration.
16447 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
16448 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
16449 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
16450 * rust-exp.y (_initialize_rust_exp): Add declaration.
16451 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
16452 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
16453 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
16454 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
16455 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
16456 * score-tdep.c (_initialize_score_tdep): Add declaration.
16457 * ser-go32.c (_initialize_ser_dos): Add declaration.
16458 * ser-mingw.c (_initialize_ser_windows): Add declaration.
16459 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
16460 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
16461 * ser-uds.c (_initialize_ser_socket): Add declaration.
16462 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
16463 * serial.c (_initialize_serial): Add declaration.
16464 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
16465 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
16466 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
16467 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
16468 * skip.c (_initialize_step_skip): Add declaration.
16469 * sol-thread.c (_initialize_sol_thread): Add declaration.
16470 * solib-aix.c (_initialize_solib_aix): Add declaration.
16471 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
16472 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
16473 * solib-frv.c (_initialize_frv_solib): Add declaration.
16474 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
16475 * solib-target.c (_initialize_solib_target): Add declaration.
16476 * solib.c (_initialize_solib): Add declaration.
16477 * source-cache.c (_initialize_source_cache): Add declaration.
16478 * source.c (_initialize_source): Add declaration.
16479 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
16480 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
16481 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
16482 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
16483 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
16484 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
16485 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
16486 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
16487 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
16488 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
16489 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
16490 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
16491 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
16492 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
16493 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
16494 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
16495 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
16496 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
16497 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
16498 * stabsread.c (_initialize_stabsread): Add declaration.
16499 * stack.c (_initialize_stack): Add declaration.
16500 * stap-probe.c (_initialize_stap_probe): Add declaration.
16501 * std-regs.c (_initialize_frame_reg): Add declaration.
16502 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
16503 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
16504 * symfile.c (_initialize_symfile): Add declaration.
16505 * symmisc.c (_initialize_symmisc): Add declaration.
16506 * symtab.c (_initialize_symtab): Add declaration.
16507 * target.c (_initialize_target): Add declaration.
16508 * target-connection.c (_initialize_target_connection): Add
16509 declaration.
16510 * target-dcache.c (_initialize_target_dcache): Add declaration.
16511 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
16512 * thread.c (_initialize_thread): Add declaration.
16513 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
16514 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
16515 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
16516 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
16517 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
16518 * tracectf.c (_initialize_ctf): Add declaration.
16519 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
16520 * tracefile.c (_initialize_tracefile): Add declaration.
16521 * tracepoint.c (_initialize_tracepoint): Add declaration.
16522 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
16523 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
16524 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
16525 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
16526 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
16527 * tui/tui-win.c (_initialize_tui_win): Add declaration.
16528 * tui/tui.c (_initialize_tui): Add declaration.
16529 * typeprint.c (_initialize_typeprint): Add declaration.
16530 * ui-style.c (_initialize_ui_style): Add declaration.
16531 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
16532 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
16533 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
16534 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
16535 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
16536 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
16537 * unittests/filtered_iterator-selftests.c
16538 (_initialize_filtered_iterator_selftests): Add declaration.
16539 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
16540 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
16541 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
16542 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
16543 * unittests/main-thread-selftests.c
16544 (_initialize_main_thread_selftests): Add declaration.
16545 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
16546 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
16547 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
16548 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
16549 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
16550 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
16551 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
16552 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
16553 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
16554 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
16555 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
16556 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
16557 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
16558 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
16559 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
16560 declaration.
16561 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
16562 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
16563 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
16564 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
16565 * user-regs.c (_initialize_user_regs): Add declaration.
16566 * utils.c (_initialize_utils): Add declaration.
16567 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
16568 * valops.c (_initialize_valops): Add declaration.
16569 * valprint.c (_initialize_valprint): Add declaration.
16570 * value.c (_initialize_values): Add declaration.
16571 * varobj.c (_initialize_varobj): Add declaration.
16572 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
16573 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
16574 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
16575 * windows-nat.c (_initialize_windows_nat): Add declaration.
16576 (_initialize_check_for_gdb_ini): Add declaration.
16577 (_initialize_loadable): Add declaration.
16578 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
16579 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
16580 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
16581 * xcoffread.c (_initialize_xcoffread): Add declaration.
16582 * xml-support.c (_initialize_xml_support): Add declaration.
16583 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
16584 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
16585 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
16586 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
16587
e2de1eec
SM
165882020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16589
16590 * regformats/regdat.sh: Generate declaration for init function.
16591
e0037b4c
SM
165922020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16593
16594 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
16595 up.
16596 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
16597 close_one_inferior>: New methods.
16598 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
16599 pass down target to find_inferior_pid.
16600 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
16601 Pass down target to find_inferior_ptid.
16602 (gdbsim_target::create_inferior): Pass down target to
16603 add_thread_silent.
16604 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
16605 target down to find_inferior_ptid and switch_to_thread.
16606 (gdbsim_target::close): Update to call close_one_inferior.
16607 (struct resume_data): Remove.
16608 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
16609 directly, rather than through a void pointer.
16610 (gdbsim_target::resume): Update to call resume_one_inferior.
16611
58920b5b
SM
166122020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
16613
16614 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
16615
4ec89149
PA
166162020-01-12 Pedro Alves <palves@redhat.com>
16617
16618 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
16619 directly for the current inferior instead of
16620 discard_all_inferiors.
16621 (discard_all_inferiors): Delete.
16622
7c392d1d
TT
166232020-01-11 Tom Tromey <tom@tromey.com>
16624
16625 * tui/tui-wingeneral.c (box_win): Check cli_styling.
16626 * tui/tui-winsource.c (tui_source_window_base::refill): Use
16627 deprecated_safe_get_selected_frame.
16628
d9ebdab7
TBA
166292020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16630
16631 * inferior.c (print_inferior): Switch inferior before printing it.
16632
f3c469b9
PA
166332020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
16634 Pedro Alves <palves@redhat.com>
16635
16636 * progspace-and-thread.c (switch_to_program_space_and_thread):
16637 Assert there's an inferior for PSPACE. Use
16638 switch_to_inferior_no_thread to switch the inferior too.
16639 * progspace.c (program_space::~program_space): Call
16640 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
16641 (program_space::free_all_objfiles): Don't call clear_symtab_users
16642 here.
16643 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
16644
65c574f6
PA
166452020-01-10 Pedro Alves <palves@redhat.com>
16646
16647 * NEWS: Mention multi-target debugging, "info connections", and
16648 "add-inferior -no-connection".
16649
2f4fcf00
PA
166502020-01-10 Pedro Alves <palves@redhat.com>
16651
16652 * infrun.c: Include "target-connection.h".
16653 (check_multi_target_resumption): New.
16654 (proceed): Call it.
16655 * target-connection.c (make_target_connection_string): Make
16656 extern.
16657 * target-connection.h (make_target_connection_string): Declare.
16658
121b3efd
PA
166592020-01-10 Pedro Alves <palves@redhat.com>
16660
16661 * Makefile.in (COMMON_SFILES): Add target-connection.c.
16662 * inferior.c (uiout_field_connection): New function.
16663 (print_inferior): Add new "connection-id" column.
16664 (add_inferior_command): Show connection number/string of added
16665 inferior.
16666 * process-stratum-target.h
16667 (process_stratum_target::connection_string): New virtual method.
16668 (process_stratum_target::connection_number): New field.
16669 * remote.c (remote_target::connection_string): New override.
16670 * target-connection.c: New file.
16671 * target-connection.h: New file.
16672 * target.c (decref_target): Remove process_stratum targets from
16673 the connection list.
16674 (target_stack::push): Add process_stratum targets to the
16675 connection list.
16676
4f837581
PA
166772020-01-10 Pedro Alves <palves@redhat.com>
16678
16679 Revert:
16680 2016-04-12 Pedro Alves <palves@redhat.com>
16681 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
16682 Remove references to name.
16683 * serial.h (struct serial) <name>: Delete.
16684
f4ec508e
PA
166852020-01-10 Pedro Alves <palves@redhat.com>
16686
16687 * gdbarch-selftests.c (register_to_value_test): Remove "target
16688 already pushed" check.
16689
5b6d1e4f
PA
166902020-01-10 Pedro Alves <palves@redhat.com>
16691 John Baldwin <jhb@FreeBSD.org>
16692
16693 * aarch64-linux-nat.c
16694 (aarch64_linux_nat_target::thread_architecture): Adjust.
16695 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
16696 (task_command_1): Likewise.
16697 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
16698 (aix_thread_target::wait, aix_thread_target::fetch_registers)
16699 (aix_thread_target::store_registers)
16700 (aix_thread_target::thread_alive): Adjust.
16701 * amd64-fbsd-tdep.c: Include "inferior.h".
16702 (amd64fbsd_get_thread_local_address): Pass down target.
16703 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
16704 thread's gdbarch instead of target_gdbarch.
16705 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
16706 get_last_target_status.
16707 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
16708 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
16709 inferiors.
16710 (update_inserted_breakpoint_locations): Skip if inferiors with no
16711 execution.
16712 (update_global_location_list): When handling moribund locations,
16713 find representative inferior for location's pspace, and use thread
16714 count of its process_stratum target.
16715 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
16716 * bsd-uthread.c (bsd_uthread_target::wait): Use
16717 as_process_stratum_target and adjust thread_change_ptid and
16718 add_thread calls.
16719 (bsd_uthread_target::update_thread_list): Use
16720 as_process_stratum_target and adjust find_thread_ptid,
16721 thread_change_ptid and add_thread calls.
16722 * btrace.c (maint_btrace_packet_history_cmd): Adjust
16723 find_thread_ptid call.
16724 * corelow.c (add_to_thread_list): Adjust add_thread call.
16725 (core_target_open): Adjust add_thread_silent and thread_count
16726 calls.
16727 (core_target::pid_to_str): Adjust find_inferior_ptid call.
16728 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
16729 * event-top.c (async_disconnect): Pop targets from all inferiors.
16730 * exec.c (add_target_sections): Push exec target on all inferiors
16731 sharing the program space.
16732 (remove_target_sections): Remove the exec target from all
16733 inferiors sharing the program space.
16734 (exec_on_vfork): New.
16735 * exec.h (exec_on_vfork): Declare.
16736 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
16737 Pass it down.
16738 (fbsd_nat_target::update_thread_list): Adjust.
16739 (fbsd_nat_target::resume): Adjust.
16740 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
16741 down.
16742 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
16743 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
16744 get_thread_arch_regcache call.
16745 * fork-child.c (gdb_startup_inferior): Pass target down to
16746 startup_inferior and set_executing.
16747 * gdbthread.h (struct process_stratum_target): Forward declare.
16748 (add_thread, add_thread_silent, add_thread_with_info)
16749 (in_thread_list): Add process_stratum_target parameter.
16750 (find_thread_ptid(inferior*, ptid_t)): New overload.
16751 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
16752 parameter.
16753 (all_threads()): Delete overload.
16754 (all_threads, all_non_exited_threads): Add process_stratum_target
16755 parameter.
16756 (all_threads_safe): Use brace initialization.
16757 (thread_count): Add process_stratum_target parameter.
16758 (set_resumed, set_running, set_stop_requested, set_executing)
16759 (threads_are_executing, finish_thread_state): Add
16760 process_stratum_target parameter.
16761 (switch_to_thread): Use is_current_thread.
16762 * i386-fbsd-tdep.c: Include "inferior.h".
16763 (i386fbsd_get_thread_local_address): Pass down target.
16764 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
16765 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
16766 have_inferiors check.
16767 * inf-ptrace.c (inf_ptrace_target::create_inferior)
16768 (inf_ptrace_target::attach): Adjust.
16769 * infcall.c (run_inferior_call): Adjust.
16770 * infcmd.c (run_command_1): Pass target to
16771 scoped_finish_thread_state.
16772 (proceed_thread_callback): Skip inferiors with no execution.
16773 (continue_command): Rename 'all_threads' local to avoid hiding
16774 'all_threads' function. Adjust get_last_target_status call.
16775 (prepare_one_step): Adjust set_running call.
16776 (signal_command): Use user_visible_resume_target. Compare thread
16777 pointers instead of inferior_ptid.
16778 (info_program_command): Adjust to pass down target.
16779 (attach_command): Mark target's 'thread_executing' flag.
16780 (stop_current_target_threads_ns): New, factored out from ...
16781 (interrupt_target_1): ... this. Switch inferior before making
16782 target calls.
16783 * inferior-iter.h
16784 (struct all_inferiors_iterator, struct all_inferiors_range)
16785 (struct all_inferiors_safe_range)
16786 (struct all_non_exited_inferiors_range): Filter on
16787 process_stratum_target too. Remove explicit.
16788 * inferior.c (inferior::inferior): Push dummy target on target
16789 stack.
16790 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
16791 Add process_stratum_target parameter, and pass it down.
16792 (have_live_inferiors): Adjust.
16793 (switch_to_inferior_and_push_target): New.
16794 (add_inferior_command, clone_inferior_command): Handle
16795 "-no-connection" parameter. Use
16796 switch_to_inferior_and_push_target.
16797 (_initialize_inferior): Mention "-no-connection" option in
16798 the help of "add-inferior" and "clone-inferior" commands.
16799 * inferior.h: Include "process-stratum-target.h".
16800 (interrupt_target_1): Use bool.
16801 (struct inferior) <push_target, unpush_target, target_is_pushed,
16802 find_target_beneath, top_target, process_target, target_at,
16803 m_stack>: New.
16804 (discard_all_inferiors): Delete.
16805 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
16806 (all_inferiors, all_non_exited_inferiors): Add
16807 process_stratum_target parameter.
16808 * infrun.c: Include "gdb_select.h" and <unordered_map>.
16809 (target_last_proc_target): New global.
16810 (follow_fork_inferior): Push target on new inferior. Pass target
16811 to add_thread_silent. Call exec_on_vfork. Handle target's
16812 reference count.
16813 (follow_fork): Adjust get_last_target_status call. Also consider
16814 target.
16815 (follow_exec): Push target on new inferior.
16816 (struct execution_control_state) <target>: New field.
16817 (user_visible_resume_target): New.
16818 (do_target_resume): Call target_async.
16819 (resume_1): Set target's threads_executing flag. Consider resume
16820 target.
16821 (commit_resume_all_targets): New.
16822 (proceed): Also consider resume target. Skip threads of inferiors
16823 with no execution. Commit resumtion in all targets.
16824 (start_remote): Pass current inferior to wait_for_inferior.
16825 (infrun_thread_stop_requested): Consider target as well. Pass
16826 thread_info pointer to clear_inline_frame_state instead of ptid.
16827 (infrun_thread_thread_exit): Consider target as well.
16828 (random_pending_event_thread): New inferior parameter. Use it.
16829 (do_target_wait): Rename to ...
16830 (do_target_wait_1): ... this. Add inferior parameter, and pass it
16831 down.
16832 (threads_are_resumed_pending_p, do_target_wait): New.
16833 (prepare_for_detach): Adjust calls.
16834 (wait_for_inferior): New inferior parameter. Handle it. Use
16835 do_target_wait_1 instead of do_target_wait.
16836 (fetch_inferior_event): Adjust. Switch to representative
16837 inferior. Pass target down.
16838 (set_last_target_status): Add process_stratum_target parameter.
16839 Save target in global.
16840 (get_last_target_status): Add process_stratum_target parameter and
16841 handle it.
16842 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
16843 (context_switch): Check inferior_ptid == null_ptid before calling
16844 inferior_thread().
16845 (get_inferior_stop_soon): Pass down target.
16846 (wait_one): Rename to ...
16847 (poll_one_curr_target): ... this.
16848 (struct wait_one_event): New.
16849 (wait_one): New.
16850 (stop_all_threads): Adjust.
16851 (handle_no_resumed, handle_inferior_event): Adjust to consider the
16852 event's target.
16853 (switch_back_to_stepped_thread): Also consider target.
16854 (print_stop_event): Update.
16855 (normal_stop): Update. Also consider the resume target.
16856 * infrun.h (wait_for_inferior): Remove declaration.
16857 (user_visible_resume_target): New declaration.
16858 (get_last_target_status, set_last_target_status): New
16859 process_stratum_target parameter.
16860 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16861 process_stratum_target parameter, and use it.
16862 (clear_inline_frame_state (thread_info*)): New.
16863 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16864 process_stratum_target parameter.
16865 (clear_inline_frame_state (thread_info*)): Declare.
16866 * linux-fork.c (delete_checkpoint_command): Pass target down to
16867 find_thread_ptid.
16868 (checkpoint_command): Adjust.
16869 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
16870 instead of just tweaking inferior_ptid.
16871 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
16872 (exit_lwp): Pass target down to find_thread_ptid.
16873 (attach_proc_task_lwp_callback): Pass target down to
16874 add_thread/set_running/set_executing.
16875 (linux_nat_target::attach): Pass target down to
16876 thread_change_ptid.
16877 (get_detach_signal): Pass target down to find_thread_ptid.
16878 Consider last target status's target.
16879 (linux_resume_one_lwp_throw, resume_lwp)
16880 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
16881 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
16882 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
16883 (linux_nat_target::async_wait_fd): New.
16884 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
16885 target down.
16886 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
16887 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
16888 * linux-thread-db.c (struct thread_db_info::process_target): New
16889 field.
16890 (add_thread_db_info): Save target.
16891 (get_thread_db_info): New process_stratum_target parameter. Also
16892 match target.
16893 (delete_thread_db_info): New process_stratum_target parameter.
16894 Also match target.
16895 (thread_from_lwp): Adjust to pass down target.
16896 (thread_db_notice_clone): Pass down target.
16897 (check_thread_db_callback): Pass down target.
16898 (try_thread_db_load_1): Always push the thread_db target.
16899 (try_thread_db_load, record_thread): Pass target down.
16900 (thread_db_target::detach): Pass target down. Always unpush the
16901 thread_db target.
16902 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
16903 target down. Always unpush the thread_db target.
16904 (find_new_threads_callback, thread_db_find_new_threads_2)
16905 (thread_db_target::update_thread_list): Pass target down.
16906 (thread_db_target::pid_to_str): Pass current inferior down.
16907 (thread_db_target::get_thread_local_address): Pass target down.
16908 (thread_db_target::resume, maintenance_check_libthread_db): Pass
16909 target down.
16910 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
16911 * procfs.c (procfs_target::procfs_init_inferior): Declare.
16912 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
16913 (procfs_init_inferior): Rename to ...
16914 (procfs_target::procfs_init_inferior): ... this and adjust.
16915 (procfs_target::create_inferior, procfs_notice_thread)
16916 (procfs_do_thread_registers): Adjust.
16917 * ppc-fbsd-tdep.c: Include "inferior.h".
16918 (ppcfbsd_get_thread_local_address): Pass down target.
16919 * proc-service.c (ps_xfer_memory): Switch current inferior and
16920 program space as well.
16921 (get_ps_regcache): Pass target down.
16922 * process-stratum-target.c
16923 (process_stratum_target::thread_address_space)
16924 (process_stratum_target::thread_architecture): Pass target down.
16925 * process-stratum-target.h
16926 (process_stratum_target::threads_executing): New field.
16927 (as_process_stratum_target): New.
16928 * ravenscar-thread.c
16929 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
16930 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
16931 down.
16932 * record-btrace.c (record_btrace_target::info_record): Adjust.
16933 (record_btrace_target::record_method)
16934 (record_btrace_target::record_is_replaying)
16935 (record_btrace_target::fetch_registers)
16936 (get_thread_current_frame_id, record_btrace_target::resume)
16937 (record_btrace_target::wait, record_btrace_target::stop): Pass
16938 target down.
16939 * record-full.c (record_full_wait_1): Switch to event thread.
16940 Pass target down.
16941 * regcache.c (regcache::regcache)
16942 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
16943 process_stratum_target parameter and handle it.
16944 (current_thread_target): New global.
16945 (get_thread_regcache): Add process_stratum_target parameter and
16946 handle it. Switch inferior before calling target method.
16947 (get_thread_regcache): Pass target down.
16948 (get_thread_regcache_for_ptid): Pass target down.
16949 (registers_changed_ptid): Add process_stratum_target parameter and
16950 handle it.
16951 (registers_changed_thread, registers_changed): Pass target down.
16952 (test_get_thread_arch_aspace_regcache): New.
16953 (current_regcache_test): Define a couple local test_target_ops
16954 instances and use them for testing.
16955 (readwrite_regcache): Pass process_stratum_target parameter.
16956 (cooked_read_test, cooked_write_test): Pass mock_target down.
16957 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
16958 (get_thread_arch_aspace_regcache): Add process_stratum_target
16959 parameter.
16960 (regcache::target): New method.
16961 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
16962 (regcache::registers_changed_ptid): Add process_stratum_target
16963 parameter.
16964 (regcache::m_target): New field.
16965 (registers_changed_ptid): Add process_stratum_target parameter.
16966 * remote.c (remote_state::supports_vCont_probed): New field.
16967 (remote_target::async_wait_fd): New method.
16968 (remote_unpush_and_throw): Add remote_target parameter.
16969 (get_current_remote_target): Adjust.
16970 (remote_target::remote_add_inferior): Push target.
16971 (remote_target::remote_add_thread)
16972 (remote_target::remote_notice_new_inferior)
16973 (get_remote_thread_info): Pass target down.
16974 (remote_target::update_thread_list): Skip threads of inferiors
16975 bound to other targets. (remote_target::close): Don't discard
16976 inferiors. (remote_target::add_current_inferior_and_thread)
16977 (remote_target::process_initial_stop_replies)
16978 (remote_target::start_remote)
16979 (remote_target::remote_serial_quit_handler): Pass down target.
16980 (remote_target::remote_unpush_target): New remote_target
16981 parameter. Unpush the target from all inferiors.
16982 (remote_target::remote_unpush_and_throw): New remote_target
16983 parameter. Pass it down.
16984 (remote_target::open_1): Check whether the current inferior has
16985 execution instead of checking whether any inferior is live. Pass
16986 target down.
16987 (remote_target::remote_detach_1): Pass down target. Use
16988 remote_unpush_target.
16989 (extended_remote_target::attach): Pass down target.
16990 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
16991 (remote_target::append_resumption): Pass down target.
16992 (remote_target::append_pending_thread_resumptions)
16993 (remote_target::remote_resume_with_hc, remote_target::resume)
16994 (remote_target::commit_resume): Pass down target.
16995 (remote_target::remote_stop_ns): Check supports_vCont_probed.
16996 (remote_target::interrupt_query)
16997 (remote_target::remove_new_fork_children)
16998 (remote_target::check_pending_events_prevent_wildcard_vcont)
16999 (remote_target::remote_parse_stop_reply)
17000 (remote_target::process_stop_reply): Pass down target.
17001 (first_remote_resumed_thread): New remote_target parameter. Pass
17002 it down.
17003 (remote_target::wait_as): Pass down target.
17004 (unpush_and_perror): New remote_target parameter. Pass it down.
17005 (remote_target::readchar, remote_target::remote_serial_write)
17006 (remote_target::getpkt_or_notif_sane_1)
17007 (remote_target::kill_new_fork_children, remote_target::kill): Pass
17008 down target.
17009 (remote_target::mourn_inferior): Pass down target. Use
17010 remote_unpush_target.
17011 (remote_target::core_of_thread)
17012 (remote_target::remote_btrace_maybe_reopen): Pass down target.
17013 (remote_target::pid_to_exec_file)
17014 (remote_target::thread_handle_to_thread_info): Pass down target.
17015 (remote_target::async_wait_fd): New.
17016 * riscv-fbsd-tdep.c: Include "inferior.h".
17017 (riscv_fbsd_get_thread_local_address): Pass down target.
17018 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
17019 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
17020 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
17021 Adjust.
17022 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
17023 * solib-svr4.c (enable_break): Pass down target.
17024 * spu-multiarch.c (parse_spufs_run): Pass down target.
17025 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
17026 * target-delegates.c: Regenerate.
17027 * target.c (g_target_stack): Delete.
17028 (current_top_target): Return the current inferior's top target.
17029 (target_has_execution_1): Refer to the passed-in inferior's top
17030 target.
17031 (target_supports_terminal_ours): Check whether the initial
17032 inferior was already created.
17033 (decref_target): New.
17034 (target_stack::push): Incref/decref the target.
17035 (push_target, push_target, unpush_target): Adjust.
17036 (target_stack::unpush): Defref target.
17037 (target_is_pushed): Return bool. Adjust to refer to the current
17038 inferior's target stack.
17039 (dispose_inferior): Delete, and inline parts ...
17040 (target_preopen): ... here. Only dispose of the current inferior.
17041 (target_detach): Hold strong target reference while detaching.
17042 Pass target down.
17043 (target_thread_name): Add assertion.
17044 (target_resume): Pass down target.
17045 (target_ops::beneath, find_target_at): Adjust to refer to the
17046 current inferior's target stack.
17047 (get_dummy_target): New.
17048 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
17049 has a thread running.
17050 (initialize_targets): Rename to ...
17051 (_initialize_target): ... this.
17052 * target.h: Include "gdbsupport/refcounted-object.h".
17053 (struct target_ops): Inherit refcounted_object.
17054 (target_ops::shortname, target_ops::longname): Make const.
17055 (target_ops::async_wait_fd): New method.
17056 (decref_target): Declare.
17057 (struct target_ops_ref_policy): New.
17058 (target_ops_ref): New typedef.
17059 (get_dummy_target): Declare function.
17060 (target_is_pushed): Return bool.
17061 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
17062 (all_matching_threads_iterator::all_matching_threads_iterator):
17063 Handle filter target.
17064 * thread-iter.h (struct all_matching_threads_iterator, struct
17065 all_matching_threads_range, class all_non_exited_threads_range):
17066 Filter by target too. Remove explicit.
17067 * thread.c (threads_executing): Delete.
17068 (inferior_thread): Pass down current inferior.
17069 (clear_thread_inferior_resources): Pass down thread pointer
17070 instead of ptid_t.
17071 (add_thread_silent, add_thread_with_info, add_thread): Add
17072 process_stratum_target parameter. Use it for thread and inferior
17073 searches.
17074 (is_current_thread): New.
17075 (thread_info::deletable): Use it.
17076 (find_thread_ptid, thread_count, in_thread_list)
17077 (thread_change_ptid, set_resumed, set_running): New
17078 process_stratum_target parameter. Pass it down.
17079 (set_executing): New process_stratum_target parameter. Pass it
17080 down. Adjust reference to 'threads_executing'.
17081 (threads_are_executing): New process_stratum_target parameter.
17082 Adjust reference to 'threads_executing'.
17083 (set_stop_requested, finish_thread_state): New
17084 process_stratum_target parameter. Pass it down.
17085 (switch_to_thread): Also match inferior.
17086 (switch_to_thread): New process_stratum_target parameter. Pass it
17087 down.
17088 (update_threads_executing): Reimplement.
17089 * top.c (quit_force): Pop targets from all inferior.
17090 (gdb_init): Don't call initialize_targets.
17091 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
17092 Declare.
17093 (windows_add_thread, windows_delete_thread): Adjust.
17094 (get_windows_debug_event): Rename to ...
17095 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
17096 * tracefile-tfile.c (tfile_target_open): Pass down target.
17097 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
17098 Forward declare.
17099 (switch_to_thread): Add process_stratum_target parameter.
17100 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
17101 parameter. Use it.
17102 (mi_on_resume): Pass target down.
17103 * nat/fork-inferior.c (startup_inferior): Add
17104 process_stratum_target parameter. Pass it down.
17105 * nat/fork-inferior.h (startup_inferior): Add
17106 process_stratum_target parameter.
17107 * python/py-threadevent.c (py_get_event_thread): Pass target down.
17108
75c6c844
PA
171092020-01-10 Pedro Alves <palves@redhat.com>
17110
17111 * remote.c (remote_target::start_remote): Don't set inferior_ptid
17112 directly. Instead find the first thread in the thread list and
17113 use switch_to_thread.
17114
78f2c40a
PA
171152020-01-10 Pedro Alves <palves@redhat.com>
17116
17117 * remote.c (remote_target::remote_add_inferior): Don't bind a
17118 process to the current inferior if the current inferior is already
17119 bound to a process.
17120
e7af6c70
TBA
171212020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17122 Pedro Alves <palves@redhat.com>
17123
17124 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
17125 If no process is specified, return null_ptid instead of
17126 inferior_ptid.
17127 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
17128 TARGET_WAITKIND_SIGNALLED with no pid.
17129
31ba933e
PA
171302020-01-10 Pedro Alves <palves@redhat.com>
17131
17132 * remote.c (first_remote_resumed_thread): New.
17133 (remote_target::wait_as): Use it as default event_ptid instead of
17134 inferior_ptid.
17135
735fc2ca
PA
171362020-01-10 Pedro Alves <palves@redhat.com>
17137
17138 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
17139
c17e02e1
PA
171402020-01-10 Pedro Alves <palves@redhat.com>
17141
17142 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
17143 not -1.
17144
ab1ddbcf
PA
171452020-01-10 Pedro Alves <palves@redhat.com>
17146
17147 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
17148 ptid to get_last_target_status.
17149 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
17150 ptid to get_last_target_status.
17151 * infcmd.c (continue_command): Don't pass a target_waitstatus to
17152 get_last_target_status.
17153 (info_program_command): Don't pass a target_waitstatus to
17154 get_last_target_status.
17155 * infrun.c (init_wait_for_inferior): Use
17156 nullify_last_target_wait_ptid.
17157 (get_last_target_status): Handle nullptr arguments.
17158 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
17159 (print_stop_event): Don't pass a ptid to get_last_target_status.
17160 (normal_stop): Don't pass a ptid to get_last_target_status.
17161 * infrun.h (get_last_target_status, set_last_target_status): Move
17162 comments here and update.
17163 (nullify_last_target_wait_ptid): Declare.
17164 * linux-fork.c (fork_load_infrun_state): Remove local extern
17165 declaration of nullify_last_target_wait_ptid.
17166 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
17167 to get_last_target_status.
17168
f3f8ece4
PA
171692020-01-10 Pedro Alves <palves@redhat.com>
17170
17171 * gdbthread.h (scoped_restore_current_thread)
17172 <dont_restore, restore, m_dont_restore>: Declare.
17173 * thread.c (thread_alive): Add assertion. Return bool.
17174 (switch_to_thread_if_alive): New.
17175 (prune_threads): Switch inferior/thread.
17176 (print_thread_info_1): Switch thread before calling target methods.
17177 (scoped_restore_current_thread::restore): New, factored out from
17178 ...
17179 (scoped_restore_current_thread::~scoped_restore_current_thread):
17180 ... this.
17181 (scoped_restore_current_thread::scoped_restore_current_thread):
17182 Add assertion.
17183 (thread_apply_all_command, thread_select): Use
17184 switch_to_thread_if_alive.
17185 * infrun.c (proceed, restart_threads, handle_signal_stop)
17186 (switch_back_to_stepped_thread): Switch current thread before
17187 calling target methods.
17188
db2d40f7
PA
171892020-01-10 Pedro Alves <palves@redhat.com>
17190
17191 * inferior.c (switch_to_inferior_no_thread): New function,
17192 factored out from ...
17193 (inferior_command): ... here.
17194 * inferior.h (switch_to_inferior_no_thread): Declare.
17195 * mi/mi-main.c (run_one_inferior): Use
17196 switch_to_inferior_no_thread.
17197
bd420a2d
PA
171982020-01-10 Pedro Alves <palves@redhat.com>
17199
17200 * infcmd.c (kill_command): Remove dead code.
17201
ddf5db90
PA
172022020-01-10 Pedro Alves <palves@redhat.com>
17203
17204 * remote.c (remote_target::mourn_inferior): No longer check
17205 whether the target is running.
17206
5018ce90
PA
172072020-01-10 Pedro Alves <palves@redhat.com>
17208
17209 * corelow.c (core_target::has_execution): Change parameter type to
17210 inferior pointer.
17211 * inferior.c (number_of_live_inferiors): Use
17212 inferior::has_execution instead of target_has_execution_1.
17213 * inferior.h (inferior::has_execution): New.
17214 * linux-thread-db.c (thread_db_target::update_thread_list): Use
17215 inferior::has_execution instead of target_has_execution_1.
17216 * process-stratum-target.c
17217 (process_stratum_target::has_execution): Change parameter type to
17218 inferior pointer. Check the inferior's PID instead of
17219 inferior_ptid.
17220 * process-stratum-target.h
17221 (process_stratum_target::has_execution): Change parameter type to
17222 inferior pointer.
17223 * record-full.c (record_full_core_target::has_execution): Change
17224 parameter type to inferior pointer.
17225 * target.c (target_has_execution_1): Change parameter type to
17226 inferior pointer.
17227 (target_has_execution_current): Adjust.
17228 * target.h (target_ops::has_execution): Change parameter type to
17229 inferior pointer.
17230 (target_has_execution_1): Change parameter type to inferior
17231 pointer. Change return type to bool.
17232 * tracefile.h (tracefile_target::has_execution): Change parameter
17233 type to inferior pointer.
17234
74375d18
PA
172352020-01-10 Pedro Alves <palves@redhat.com>
17236
17237 * exceptions.c (print_flush): Remove current_top_target() check.
17238
acdf84a6
PA
172392020-01-10 Pedro Alves <palves@redhat.com>
17240
17241 * remote.c (show_remote_exec_file): Show the current inferior's
17242 exec-file instead of the command variable's value.
17243
ec506636
PA
172442020-01-10 Pedro Alves <palves@redhat.com>
17245
17246 * record-full.c (record_full_resume_ptid): New global.
17247 (record_full_target::resume): Set it.
17248 (record_full_wait_1): Use record_full_resume_ptid instead of
17249 inferior_ptid.
17250
873657b9
PA
172512020-01-10 Pedro Alves <palves@redhat.com>
17252
17253 * gdbthread.h (scoped_restore_current_thread)
17254 <dont_restore, restore, m_dont_restore>: Declare.
17255 * thread.c (thread_alive): Add assertion. Return bool.
17256 (switch_to_thread_if_alive): New.
17257 (prune_threads): Switch inferior/thread.
17258 (print_thread_info_1): Switch thread before calling target methods.
17259 (scoped_restore_current_thread::restore): New, factored out from
17260 ...
17261 (scoped_restore_current_thread::~scoped_restore_current_thread):
17262 ... this.
17263 (scoped_restore_current_thread::scoped_restore_current_thread):
17264 Add assertion.
17265 (thread_apply_all_command, thread_select): Use
17266 switch_to_thread_if_alive.
17267
7f0ae84c
GB
172682020-01-10 George Barrett <bob@bob131.so>
17269
17270 * stap-probe.c (stap_modify_semaphore): Don't check for null
17271 semaphores.
17272 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
17273 for null semaphores.
17274
f5a7c406
AB
172752020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17276
17277 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
17278 all source windows, and maintain horizontal scroll status while
17279 doing so.
17280
9ae6bf64
TT
172812020-01-09 Tom Tromey <tom@tromey.com>
17282
17283 PR tui/18932:
17284 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
17285 update_source_window, not print_source_lines.
17286
b2efe70c
AB
172872020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17288
17289 * tui/tui.c (tui_enable): Register tui hooks after calling
17290 tui_display_main.
17291
5f23a082
CB
172922020-01-09 Christian Biesinger <cbiesinger@google.com>
17293
17294 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
17295
3061113b
SM
172962020-01-08 Simon Marchi <simon.marchi@efficios.com>
17297
17298 * thread.c (print_thread_info_1): Fix indentation.
17299
57d75002
CB
173002020-01-09 Christian Biesinger <cbiesinger@google.com>
17301
17302 * symtab.c (general_symbol_info::compute_and_set_names): Move the
17303 unique_xmalloc_ptr outside the if to always free the demangled name.
17304
6a053cb1
TT
173052020-01-08 Tom Tromey <tromey@adacore.com>
17306
17307 * xcoffread.c (enter_line_range, read_xcoff_symtab)
17308 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
17309 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
17310 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
17311 Remove.
17312 (section_offsets): New typedef.
17313 * symtab.c (fixup_section, get_msymbol_address): Update.
17314 * symmisc.c (dump_msymbols): Update.
17315 * symfile.h (relative_addr_info_to_section_offsets)
17316 (symfile_map_offsets_to_segments): Update.
17317 * symfile.c (build_section_addr_info_from_objfile)
17318 (init_objfile_sect_indices): Update.
17319 (struct place_section_arg): Change type of "offsets".
17320 (place_section): Update.
17321 (relative_addr_info_to_section_offsets): Change type of
17322 "section_offsets". Remove "num_sections" parameter.
17323 (default_symfile_offsets, syms_from_objfile_1)
17324 (set_objfile_default_section_offset): Update.
17325 (reread_symbols): No need to preserve section offsets by hand.
17326 (symfile_map_offsets_to_segments): Change type of "offsets".
17327 * stap-probe.c (relocate_address): Update.
17328 * stabsread.h (process_one_symbol): Update.
17329 * solib-target.c (struct lm_info_target) <offsets>: Change type.
17330 (solib_target_relocate_section_addresses): Update.
17331 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
17332 Update.
17333 * solib-frv.c (frv_relocate_main_executable): Update.
17334 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
17335 * solib-aix.c (solib_aix_get_section_offsets): Change return
17336 type.
17337 (solib_aix_solib_create_inferior_hook): Update.
17338 * remote.c (remote_target::get_offsets): Update.
17339 * psymtab.c (find_pc_sect_psymtab): Update.
17340 * psympriv.h (struct partial_symbol) <address, text_low,
17341 text_high>: Update.
17342 * objfiles.h (obj_section_offset): Update.
17343 (struct objfile) <section_offsets>: Change type.
17344 <num_sections>: Remove.
17345 (objfile_relocate): Update.
17346 * objfiles.c (entry_point_address_query): Update
17347 (relocate_one_symbol): Change type of "section_offsets".
17348 (objfile_relocate1, objfile_relocate1): Change type of
17349 "new_offsets".
17350 (objfile_rebase1): Update.
17351 * mipsread.c (mipscoff_symfile_read): Update.
17352 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
17353 parameter.
17354 * mdebugread.c (parse_symbol): Change type of "section_offsets".
17355 (parse_external, psymtab_to_symtab_1): Update.
17356 * machoread.c (macho_symfile_offsets): Update.
17357 * ia64-tdep.c (ia64_find_unwind_table): Update.
17358 * hppa-tdep.c (read_unwind_info): Update.
17359 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
17360 * dwarf2read.c (create_addrmap_from_index)
17361 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
17362 (process_psymtab_comp_unit_reader, add_partial_symbol)
17363 (add_partial_subprogram, process_full_comp_unit)
17364 (read_file_scope, read_func_scope, read_lexical_block_scope)
17365 (read_call_site_scope, dwarf2_rnglists_process)
17366 (dwarf2_ranges_process, dwarf2_ranges_read)
17367 (dwarf_decode_lines_1, var_decode_location, new_symbol)
17368 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
17369 Update.
17370 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
17371 Update.
17372 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
17373 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
17374 (process_one_symbol): Change type of "section_offsets".
17375 * ctfread.c (get_objfile_text_range): Update.
17376 * coffread.c (coff_symtab_read, enter_linenos)
17377 (process_coff_symbol): Update.
17378 * coff-pe-read.c (add_pe_forwarded_sym): Update.
17379 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
17380
456e800a
TT
173812020-01-08 Tom Tromey <tromey@adacore.com>
17382
17383 * dwarf2read.c (parse_macro_definition): Use std::string.
17384 (parse_macro_definition): Likewise.
17385
6dfa2fc2
TT
173862020-01-08 Tom Tromey <tromey@adacore.com>
17387
17388 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
17389 (ATTR_ALLOC_CHUNK): Remove.
17390
421d1616
TT
173912020-01-08 Tom Tromey <tromey@adacore.com>
17392
17393 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
17394
43816ebc
TT
173952020-01-08 Tom Tromey <tromey@adacore.com>
17396
17397 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
17398 (dwarf2_compute_name, open_dwo_file): Likewise.
17399 (process_enumeration_scope): Use std::vector.
17400 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
17401 (partial_die_info::fixup, dwarf2_start_subfile)
17402 (guess_full_die_structure_name, dwarf2_name): Likewise.
17403 (determine_prefix): Update.
17404 (guess_full_die_structure_name): Make return type const.
17405 (partial_die_full_name): Return unique_xmalloc_ptr.
17406 (DW_FIELD_ALLOC_CHUNK): Remove.
17407
4212d509
TT
174082020-01-07 Tom Tromey <tromey@adacore.com>
17409
17410 PR build/24937:
17411 * stap-probe.c (class stap_static_probe_ops): Add constructor.
17412
06a6207a
JT
174132020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17414
17415 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
17416
153d79c4
AB
174172020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
17418
17419 * stack.c (print_frame_info): Move disassemble_next_line code
17420 inside source_print block.
17421
66182876
EZ
174222020-01-06 Eli Zaretskii <eliz@gnu.org>
17423
17424 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
17425 gdb/signals.h, as we are now using native signal symbols.
17426
cbfa8581
SV
174272020-01-06 Shahab Vahedi <shahab@synopsys.com>
17428
17429 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
17430 overflow by an early check of content vs threshold.
aac66a4c 17431 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
17432 Likewise.
17433
3f602821
EZ
174342020-01-06 Eli Zaretskii <eliz@gnu.org>
17435
17436 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
17437
a08c904d
JT
174382020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17439
17440 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
17441 export table if no section contains it's RVA.
17442
89a65580
EZ
174432020-01-06 Eli Zaretskii <eliz@gnu.org>
17444
17445 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
17446
8b7fcda2
HD
174472020-01-06 Hannes Domani <ssbssa@yahoo.de>
17448
17449 * source.c (print_source_lines_base): Set last_line_listed.
17450
a61b4f69
SV
174512020-01-06 Shahab Vahedi <shahab@synopsys.com>
17452
17453 * tui/tui-disasm.c: Remove trailing spaces.
17454
559e7e50
EZ
174552020-01-06 Eli Zaretskii <eliz@gnu.org>
17456 Pedro Alves <palves@redhat.com>
17457
17458 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
17459 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
17460 (windows_gdb_signal_to_target): New function, uses the above
17461 enumeration to convert GDB internal signal codes to equivalent
17462 Windows codes.
17463 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
17464 * windows-nat.c: Include "gdb_wait.h".
17465 (get_windows_debug_event): Extract the fatal exception from the
17466 exit status and convert to the equivalent Posix signal number.
17467 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
17468 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
17469 * gdbsupport/gdb_wait.c: New file, implements
17470 windows_status_to_termsig.
17471 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
17472 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
17473
f2302a34
AB
174742020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
17475
17476 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
17477 show_layout.
17478
6a5206eb
LM
174792020-01-05 Luis Machado <luis.machado@linaro.org>
17480
17481 * aarch64-linux-nat.c
17482 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
17483 and bfd_mach_aarch64.
17484
6ec1d75e
PW
174852020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17486
17487 * ui-file.c (stdio_file::can_emit_style_escape)
17488 (tee_file::can_emit_style_escape): Ensure style is used also on
17489 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
17490 to gdb_stdout.
17491 * main.c (set_gdb_data_directory): Use file style to output the
17492 warning that the given pathname is not a directory.
17493 * top.c (show_history_filename, gdb_safe_append_history)
17494 (show_gdb_datadir): Use file style.
17495
44f81a76
HD
174962020-01-03 Hannes Domani <ssbssa@yahoo.de>
17497
17498 * solib-target.c (struct lm_info_target):
17499 Change offsets to be a unique_xmalloc_ptr.
17500 (solib_target_relocate_section_addresses): Update.
17501
25057eb0
HD
175022020-01-03 Hannes Domani <ssbssa@yahoo.de>
17503
17504 * windows-nat.c (windows_clear_solib): Free so_list linked list.
17505
6e2118f5
BE
175062020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
17507
17508 * MAINTAINERS (Write After Approval): Add myself.
17509
8133c7dc
LM
175102020-01-02 Luis Machado <luis.machado@linaro.org>
17511
17512 * proc-service.c (get_ps_regcache): Remove reference to obsolete
17513 Cell BE architecture.
17514 * target.h (struct target_ops) <thread_architecture>: Likewise.
17515
48189bec
HD
175162020-01-01 Hannes Domani <ssbssa@yahoo.de>
17517
17518 * Makefile.in: Use INSTALL_PROGRAM_ENV.
17519
ead1063b
HD
175202020-01-01 Hannes Domani <ssbssa@yahoo.de>
17521
17522 * MAINTAINERS (Write After Approval): Add myself.
17523
e5d78223
JB
175242020-01-01 Joel Brobecker <brobecker@adacore.com>
17525
17526 * gdbarch.sh: Update copyright year range of generated files.
17527
b811d2c2
JB
175282020-01-01 Joel Brobecker <brobecker@adacore.com>
17529
17530 Update copyright year range in all GDB files.
17531
5f4def5c
JB
175322020-01-01 Joel Brobecker <brobecker@adacore.com>
17533
17534 * copyright.py: Convert to Python 3.
17535
51fd4002
JB
175362020-01-01 Joel Brobecker <brobecker@adacore.com>
17537
17538 * copyright.py: Adapt after move of gnulib directory from gdb
17539 directory to toplevel directory.
17540
5fb651f2
JB
175412020-01-01 Joel Brobecker <brobecker@adacore.com>
17542
17543 * copyright.py (main): Exit if run from the wrong directory.
17544
5dd8bf88
JB
175452020-01-01 Joel Brobecker <brobecker@adacore.com>
17546
17547 * top.c (print_gdb_version): Change copyright year to 2020.
17548
9f71dacb 175492020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 17550
9f71dacb 17551 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 17552
9f71dacb 17553For older changes see ChangeLog-2019.
c906108c
SS
17554\f
17555Local Variables:
17556mode: change-log
17557left-margin: 8
17558fill-column: 74
17559version-control: never
57da7796 17560coding: utf-8
c906108c 17561End: