gdb: rename things related to step over chains
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
28d5518b
SM
12020-12-04 Simon Marchi <simon.marchi@efficios.com>
2
3 * gdbthread.h (thread_step_over_chain_enqueue): Rename to...
4 (global_thread_step_over_chain_enqueue): ... this. Update all
5 users.
6 (thread_step_over_chain_remove): Rename to...
7 (global_thread_step_over_chain_remove): ... this. Update all
8 users.
9 (thread_step_over_chain_next): Rename to...
10 (global_thread_step_over_chain_next): ... this. Update all
11 users.
12 * infrun.h (step_over_queue_head): Rename to...
13 (global_thread_step_over_chain_head): ... this. Update all
14 users.
15 * infrun.c (step_over_queue_head): Rename to...
16 (global_thread_step_over_chain_head): ... this. Update all
17 users.
18 * thread.c (step_over_chain_remove): Rename to...
19 (thread_step_over_chain_remove): ... this. Update all users.
20 (thread_step_over_chain_next): Rename to...
21 (global_thread_step_over_chain_next): ... this. Update all
22 users.
23 (thread_step_over_chain_enqueue): Rename to...
24 (global_thread_step_over_chain_enqueue): ... this. Update all
25 users.
26 (thread_step_over_chain_remove): Rename to...
27 (global_thread_step_over_chain_remove): ... this. Update all
28 users.
29
f5f01699
SM
302020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
31
32 * infrun.c (get_displaced_stepping_state): Remove, change
33 callers to access the field directly.
34
c0aba012
SM
352020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
36
37 * infrun.c (handle_inferior_event): Restore displaced step
38 buffer bytes in child process when handling fork, even if fork
39 happened in another thread than the displaced-stepping one.
40
3b7a962d
SM
412020-12-04 Simon Marchi <simon.marchi@efficios.com>
42
43 * infrun.c (infrun_inferior_execd): New function.
44 (_initialize_infrun): Attach inferior_execd observer.
45
42a4fec5
SM
462020-12-04 Simon Marchi <simon.marchi@efficios.com>
47
48 * observable.h (inferior_execd): Declare new observable.
49 * observable.c (inferior_execd): Declare new observable.
50 * infrun.c (follow_exec): Notify inferior_execd observer.
51 * jit.c (jit_inferior_created_hook): Make static.
52 (_initialize_jit): Register inferior_execd observer.
53 * jit.h (jit_inferior_created_hook): Remove declaration.
54 * solib.c (_initialize_solib): Register inferior_execd observer.
55
aafdfb4e
TV
562020-12-04 Tom de Vries <tdevries@suse.de>
57
58 PR gdb/27003
59 * completer.c (completion_tracker::build_completion_result): Don't
60 access match_list[0][-1].
61
f99b5177
TT
622020-12-04 Tom Tromey <tromey@adacore.com>
63
64 * linespec.c (struct linespec_token): Rename; remove typedef.
65 * guile/scm-block.c (struct block_smob): Remove typedef.
66 (struct block_syms_progress_smob): Likewise.
67 * guile/scm-symbol.c (struct symbol_smob): Remove typedef.
68 * guile/scm-symtab.c (symtab_smob): Remove typedef.
69 (struct sal_smob): Remove typedef.
70 * guile/scm-param.c (struct param_smob): Remove typedef.
71 * guile/scm-progspace.c (struct pspace_smob): Rename.
72 * guile/scm-objfile.c (struct objfile_smob): Rename.
73 * guile/scm-iterator.c (struct iterator_smob): Rename.
74 * guile/scm-frame.c (struct frame_smob): Rename.
75 * guile/scm-arch.c (struct arch_smob): Rename.
76 * guile/scm-type.c (struct field_smob): Remove typedef.
77 (struct type_smob): Rename.
78 * guile/scm-cmd.c (struct command_smob): Remove typedef.
79 * guile/scm-ports.c (struct ioscm_memory_port): Remove typedef.
80 * guile/scm-value.c (struct value_smob): Remove typedef.
81 * guile/scm-lazy-string.c (lazy_string_smob): Remove typedef.
82 * guile/guile-internal.h (struct scheme_variable)
83 (struct scheme_function, struct scheme_integer_constant)
84 (struct gdb_smob, struct chained_gdb_smob)
85 (struct eqable_gdb_smob, arch_smob, frame_smob, iterator_smob)
86 (objfile_smob, pspace_smob, type_smob): Remove typedef.
87 * guile/scm-pretty-print.c (pretty_printer_smob): Remove typedef.
88 (struct pretty_printer_worker_smob): Remove typedef.
89 * guile/scm-exception.c (struct exception_smob): Remove typedef.
90 * python/py-block.c (struct block_object): Remove typedef.
91 (block_syms_iterator_object): Update.
92 (set_block): Update.
93 (block_syms_iterator_object): Remove typedef.
94 * python/py-inferior.c (struct membuf_object): Remove typedef.
95 * python/py-symtab.c (struct symtab_object): Remove typedef.
96 (set_symtab): Update.
97 (sal_object): Remove typedef.
98 (set_sal): Update.
99 * python/py-frame.c (frame_object): Remove typedef.
100 * python/py-record-btrace.c (struct btpy_list_object): Remove
101 typedef.
102 * python/py-arch.c (struct arch_object): Remove typedef.
103 * python/py-linetable.c (struct linetable_entry_object)
104 (linetable_object, struct ltpy_iterator_object): Remove typedef.
105 * python/py-events.h (eventregistry_object): Remove typedef.
106 (struct events_object): Remove typedef.
107 * python/python-internal.h (gdbpy_breakpoint_object): Remove
108 typedef.
109 (thread_object): Remove typedef.
110 * python/py-progspace.c (pspace_object): Remove typedef.
111 * python/py-value.c (struct value_object): Remove typedef.
112 * python/py-record.h (recpy_record_object): Remove typedef.
113 (struct recpy_element_object): Remove typedef.
114 * python/py-lazy-string.c (lazy_string_object): Remove typedef.
115 * python/py-objfile.c (objfile_object): Remove typedef.
116 * python/py-cmd.c (struct cmdpy_object): Remove typedef.
117 * python/py-type.c (type_object): Remove typedef.
118 (typy_iterator_object): Update.
119 (set_type): Update.
120 (field_object): Remove typedef.
121 (typy_iterator_object): Remove typedef.
122 * python/py-registers.c (register_descriptor_iterator_object):
123 Remove typedef.
124 (struct register_descriptor_object)
125 (struct reggroup_iterator_object, struct reggroup_object): Remove
126 typedef.
127 * python/py-record.c (recpy_gap_object): Remove typedef.
128 * python/py-symbol.c (symbol_object): Remove typedef.
129 (set_symbol): Update.
130 * python/py-event.h (event_object): Remove typedef.
131 * python/py-param.c (parmpy_object): Remove typedef.
132 * python/py-instruction.c (struct py_insn_obj): Remove typedef.
133 * python/py-unwind.c (struct pending_frame_object): Remove typedef.
134 (unwind_info_object, struct cached_frame_info): Likewise.
135
91f87213
TT
1362020-12-04 Tom Tromey <tromey@adacore.com>
137
138 * value.c (value_internal_function_name): Make return type const.
139 * value.h (value_internal_function_name): Make return type const.
140
5382f971
LM
1412020-12-04 Luis Machado <luis.machado@linaro.org>
142
143 * aarch64-tdep.c (submask, bit, bits): Remove.
144 * arch/aarch64-insn.c (extract_signed_bitfield): Remove.
145 (aarch64_decode_adr, aarch64_decode_b aarch64_decode_bcond)
146 (aarch64_decode_cb, aarch64_decode_tb)
147 (aarch64_decode_ldr_literal): Use sbits to extract a signed
148 immediate.
149 * arch/aarch64-insn.h (submask, bits, bit, sbits): New macros.
150
b6a6aa07
TV
1512020-12-04 Tom de Vries <tdevries@suse.de>
152
153 PR tdep/27007
154 * i386-tdep.c (i386_16_byte_align_p): Skip static fields.
155
0bc2e38d
SM
1562020-12-03 Simon Marchi <simon.marchi@polymtl.ca>
157
158 PR gdb/26876
159 * dwarf2/frame.c (find_comp_unit, set_comp_unit): Reverse use of
160 dwarf2_frame_bfd_data and dwarf2_frame_objfile_data.
161
25428040
AB
1622020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
163
164 * arch/riscv.c: Include 'rv32e-xregs.c'.
165 (riscv_create_target_description): Update to handle rv32e.
166 * arch/riscv.h (struct riscv_gdbarch_features) <embedded>: New
167 member variable.
168 <operator==>: Update to account for new field.
169 <hash>: Likewise.
170 * features/Makefile (FEATURE_XMLFILES): Add riscv/rv32e-xregs.xml.
171 * features/riscv/rv32e-xregs.c: Generated.
172 * features/riscv/rv32e-xregs.xml: New file.
173 * riscv-tdep.c (riscv_debug_breakpoints): Move from later in the
174 file.
175 (riscv_debug_infcall): Likewise.
176 (riscv_debug_unwinder): Likewise.
177 (riscv_debug_gdbarch): Likewise.
178 (enum riscv_register_required_status): Delete.
179 (struct riscv_register_feature): Add constructor, delete default
180 constructor, copy, and assign constructors.
181 (struct riscv_register_feature::register_info) <required>: Delete.
182 <check>: Update comment and arguments.
183 (struct riscv_register_feature) <name>: Change to member function.
184 <prefer_first_name>: Delete.
185 <tdesc_feature>: New member function.
186 <registers>: Rename to...
187 <m_registers>: ...this.
188 <m_feature_name>: New member variable.
189 (riscv_register_feature::register_info::check): Update arguments.
190 (riscv_xreg_feature): Rewrite as class, create a single static
191 instance of the class.
192 (riscv_freg_feature): Likewise.
193 (riscv_virtual_feature): Likewise.
194 (riscv_csr_feature): Likewise.
195 (riscv_create_csr_aliases): Has become a member function inside
196 riscv_csr_feature class.
197 (riscv_abi_embedded): New function definition.
198 (riscv_register_name): Adjust to use new feature objects.
199 (struct riscv_call_info) <riscv_call_info>: Check for rv32e abi,
200 and adjust available argument registers.
201 (riscv_features_from_gdbarch_info): Check for EF_RISCV_RVE flag.
202 (riscv_check_tdesc_feature): Delete.
203 (riscv_tdesc_unknown_reg): Adjust to use new feature objects.
204 (riscv_gdbarch_init): Delete target description checking code, and
205 instead call to the new feature objects to perform the checks.
206 Reorder handling of no abi information case, allows small code
207 simplification.
208 (_initialize_riscv_tdep): Remove call, this is now done in the
209 riscv_csr_feature constructor.
210 * riscv-tdep.h (riscv_abi_embedded): Declare.
211
533b2ae0
AB
2122020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
213
214 * riscv-tdep.c (riscv_create_csr_aliases): Remove use of
215 DECLARE_CSR_ALIAS.
216
e4502042
AB
2172020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
218
219 * riscv-tdep.c (riscv_is_unknown_csr): New function,
220 implementation moved from riscv_register_reggroup_p.
221 (riscv_register_reggroup_p): Update group handling for unknown
222 CSRs.
223
2bf3b79d
SDJ
2242020-12-01 Sergio Durigan Junior <sergiodj@sergiodj.net>
225
226 * dwarf2/read.c (dwz_search_other_debugdirs): New function.
227 (dwarf2_get_dwz_file): Convert 'filename' to a
228 std::string. Use dwz_search_other_debugdirs to search for DWZ
229 files in the debug-file-directories provided by the user as well.
230
77bf7e99
TT
2312020-12-01 Tom Tromey <tom@tromey.com>
232
233 * parse.c (expr_builder::expr_builder): Initialize expout.
234 (expr_builder::release): Use expression::resize.
235 (expression::expression, expression::~expression)
236 (expression::resize): New methods.
237 (write_exp_elt): Use expression::resize.
238 (prefixify_expression): Update.
239 (increase_expout_size): Use expression::resize.
240 * expression.h (struct expression): Add constructor, destructor.
241 <resize>: New method.
242 (expression_up): Change type.
243
539d71e8
RA
2442020-12-01 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
245 * ppc-linux-nat.c: (PPC_DEBUG_FEATURE_DATA_BP_ARCH_31): New define.
246 (region_ok_for_hw_watchpoint): Check if 2nd DAWR is avaliable before
247 set region.
248
7ce05d21
TV
2492020-11-30 Tom de Vries <tdevries@suse.de>
250
251 PR symtab/26905
252 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add and handle
253 is_reference parameter.
254 (dwarf2_evaluate_property): Update dwarf2_locexpr_baton_eval call.
255
88b91969
TT
2562020-11-30 Tom Tromey <tom@tromey.com>
257
258 * rust-lang.c (rust_op_name): Remove.
259 (exp_descriptor_rust): Update.
260 * parser-defs.h (op_name_standard): Don't declare.
261 (struct exp_descriptor) <op_name>: Remove.
262 * parse.c (exp_descriptor_standard): Update.
263 * opencl-lang.c (exp_descriptor_opencl): Update.
264 * m2-lang.c (m2_language::exp_descriptor_modula2): Update.
265 * f-lang.c (op_name_f): Remove.
266 (f_language::exp_descriptor_tab): Update.
267 * expression.h (op_name): Update.
268 * expprint.c (op_name): Rewrite.
269 (op_name_standard): Remove.
270 (dump_raw_expression, dump_subexp): Update.
271 * c-lang.c (exp_descriptor_c): Update.
272 * ax-gdb.c (gen_expr): Update.
273 * ada-lang.c (ada_op_name): Remove.
274 (ada_exp_descriptor): Update.
275
1cd49c43
TT
2762020-11-30 Tom Tromey <tom@tromey.com>
277
278 * eval.c (init_array_element): Remove.
279 (evaluate_subexp_standard) <OP_ARRAY>: Remove "index_pc".
280
96fb9086
HD
2812020-11-29 Hannes Domani <ssbssa@yahoo.de>
282
283 PR tui/26973
284 * tui/tui-layout.c (tui_apply_current_layout): Don't delete the
285 static locator win info.
286
b4132322
AR
2872020-11-28 Alex Richardson <Alexander.Richardson@cl.cam.ac.uk>
288
289 * acincludde.m4 (GDB_AC_CHECK_BFD): Include string.h in the test
290 program.
291
3df8c6af
AB
2922020-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
293
294 * printcmd.c (skip_over_slash_fmt): Reorder code to ensure in_fmt
295 is always initialized.
296
0ae45769
RA
2972020-11-26 Rogerio Alves <rcardoso@linux.ibm.com>
298 * MAINTAINERS (Write After Approval): Add myself.
299
239ca5e4
PW
3002020-11-26 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
301
302 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
303 * features/aarch64-fpu.xml: Add named FPCR and FPSR register bit-fields.
304
cbfa382a
TT
3052020-11-25 Tom Tromey <tom@tromey.com>
306
307 * eval.c (evaluate_subexp_standard): Remove unnecessary
308 variables.
309
af30c400
TT
3102020-11-25 Tom Tromey <tom@tromey.com>
311
312 * d-lang.c: Include parser-defs.h.
313 * rust-lang.c: Include parser-defs.h.
314 * c-lang.h: Do not include parser-defs.h.
315
1c64f6cb
SM
3162020-11-24 Simon Marchi <simon.marchi@polymtl.ca>
317
318 * regcache.h (struct cached_reg): Remove typedef.
319
2c20a601
JB
3202020-11-24 Joel Brobecker <brobecker@adacore.com>
321
322 * README: Fix the URL of the MPFR library.
323
c609df64
JB
3242020-11-24 Joel Brobecker <brobecker@adacore.com>
325
326 * README: Document the --with-libgmp-prefix configure option.
327
fa123c32
JB
3282020-11-24 Joel Brobecker <brobecker@adacore.com>
329
330 * NEWS: Add entry documenting support for DWARF-based fixed
331 point types.
332
0fb8bb02
JB
3332020-11-24 Joel Brobecker <brobecker@adacore.com>
334
335 * NEWS: Document that building GDB now requires GMP.
336
4afa9fd9
JB
3372020-11-24 Joel Brobecker <brobecker@adacore.com>
338
339 * typeprint.c (print_type_scalar): Add handling of
340 TYPE_CODE_FIXED_POINT.
341
af619ce9
JB
3422020-11-24 Joel Brobecker <brobecker@adacore.com>
343
344 * valarith.c (fixed_point_binop): Replace the
345 INIT_VAL_WITH_FIXED_POINT_VAL macro by a lambda. Update all
346 users accordingly.
347
e6fcee3a
JB
3482020-11-24 Joel Brobecker <brobecker@adacore.com>
349
350 * gdbtypes.h (struct type) <fixed_point_scaling_factor>: New method,
351 replacing fixed_point_scaling_factor. All callers updated
352 throughout this project.
353 (fixed_point_scaling_factor): Delete declaration.
354 * gdbtypes.c (type::fixed_point_scaling_factor): Replaces
355 fixed_point_scaling_factor. Adjust implementation accordingly.
356
d19937a7
JB
3572020-11-24 Joel Brobecker <brobecker@adacore.com>
358
359 * gdbtypes.h (struct type) <fixed_point_type_base_type> New method,
360 replacing the fixed_point_type_base_type function. All callers
361 updated throughout this project.
362 (fixed_point_type_base_type): Remove declaration.
363 * gdbtypes.c (type::fixed_point_type_base_type): Replaces
364 fixed_point_type_base_type. Adjust implementation accordingly.
365
2a12c336
JB
3662020-11-24 Joel Brobecker <brobecker@adacore.com>
367
368 * gdbtypes.h (struct type) <fixed_point_info, set_fixed_point_info>:
369 New methods.
370 (INIT_FIXED_POINT_SPECIFIC): Adjust.
371 (TYPE_FIXED_POINT_INFO): Delete macro.
372 (allocate_fixed_point_type_info): Change return type to void.
373 * gdbtypes.c (copy_type_recursive): Replace the use of
374 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
375 (fixed_point_scaling_factor): Likewise.
376 (allocate_fixed_point_type_info): Change return type to void.
377 Adjust implementation accordingly.
378 * dwarf2/read.c (finish_fixed_point_type): Replace the use of
379 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
380
c9f0b43f
JB
3812020-11-24 Joel Brobecker <brobecker@adacore.com>
382
383 * gmp-utils.h (gdb_mpz::read): Change buf and len parameters
384 into one single gdb::array_view parameter.
385 (gdb_mpz::write): Likewise.
386 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
387 * gmp-utils.c (gdb_mpz::read): Change buf and len parameters
388 into one single gdb::array_view parameter.
389 Adjust implementation accordingly.
390 (gdb_mpz::write): Likewise.
391 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
392 * unittests/gmp-utils-selftests.c: Adapt following changes above.
393 * valarith.c, valops.c, valprint.c, value.c: Likewise.
394
987b6703
JB
3952020-11-24 Joel Brobecker <brobecker@adacore.com>
396
397 * gmp-utils.h (gmp_string_printf): Rename from gmp_string_asprintf.
398 Change return type to std::string. Update all callers.
399 * gmp-utils.c (gmp_string_printf): Likewise.
400
4fbb7cce
JB
4012020-11-24 Joel Brobecker <brobecker@adacore.com>
402
403 * unittests/gmp-utils-selftests.c (write_fp_test): Use mpq_set_si
404 instead of mpq_set_ui to initialize our GMP rational.
405
d6ab69dd
TV
4062020-11-23 Tom de Vries <tdevries@suse.de>
407
408 * debuginfod-support.c (debuginfod_source_query)
409 (debuginfod_debuginfo_query): Only set DESTNAME if successful.
410
dab72643
TT
4112020-11-21 Tom Tromey <tom@tromey.com>
412
413 * breakpoint.c (watchpoint_exp_is_const): Return bool.
414
c0ad05d5
SM
4152020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
416
417 * unittests/gmp-utils-selftests.c (gdb_mpz_read_all_from_small):
418 Pass 2.0 to pow.
419 (gdb_mpz_write_all_from_small): Likewise.
420
a43b29c9
SM
4212020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
422
423 * dwarf2/read.c (finish_fixed_point_type): Use std::abs instead
424 of abs.
425
ae41200b
NA
4262020-11-20 Nick Alcock <nick.alcock@oracle.com>
427
428 * ctfread.c (elfctf_build_psymtabs): Use ctf_dict_open, not
429 ctf_arc_open_by_name.
430
139633c3
NA
4312020-11-20 Nick Alcock <nick.alcock@oracle.com>
432
433 * ctfread.c: Change uses of ctf_file_t to ctf_dict_t.
434 (ctf_fp_info::~ctf_fp_info): Call ctf_dict_close, not ctf_file_close.
435
cbbcd7a7
PA
4362020-11-20 Pedro Alves <pedro@palves.net>
437
438 * language.c (language_arch_info::lookup_primitive_type): Use
439 gdb::function_view instead of gdb::function.
440 (template language_lookup_primitive_type): Rename to ...
441 (language_lookup_primitive_type_1): ... this, and make static.
442 (language_lookup_primitive_type(const struct language_defn *,
443 struct gdbarch *, const char *): Make non-template.
444 (language_lookup_primitive_type(const struct language_defn *,
445 struct gdbarch *, std::function<bool (struct type *)>): Make
446 non-template and use gdb::function_view.
447 * language.h (language_arch_info::lookup_primitive_type): Use
448 gdb::function_view instead of std::function.
449 (language_lookup_primitive_type): No longer template.
450 * opencl-lang.c (lookup_opencl_vector_type): 'filter' is now a
451 lambda instead of a std::function.
452
d5ef21c3
AA
4532020-11-19 Andreas Arnez <arnez@linux.ibm.com>
454
455 PR tdep/26916
456 * s390-tdep.c (s390_process_record): Fix recording of STOC, STOCG,
457 and STOCFH.
458
a5adb8f3
SM
4592020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
460
461 * f-lang.c (fortran_value_subarray): Use plongest/pulongest.
462
70125a45
SM
4632020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
464
465 * gdbarch.sh (read_core_file_mappings): Remove `other` parameter
466 in `loop_cb` parameter.
467 * gdbarch.c: Re-generate.
468 * gdbarch.h: Re-generate.
469 * arch-utils.c (default_read_core_file_mappings): Remove `other`
470 parameter.
471 * arch-utils.h (default_read_core_file_mappings): Likewise.
472 * corelow.c (core_target::build_file_mappings): Likewise.
473 * linux-tdep.c (linux_read_core_file_mappings): Likewise.
474 (linux_core_info_proc_mappings): Likewise.
475
a5c641b5
AB
4762020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
477
478 * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
479 * NEWS: Mention new options.
480 * f-array-walker.h: New file.
481 * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
482 (repack_array_slices): New static global.
483 (show_repack_array_slices): New function.
484 (fortran_array_slicing_debug): New static global.
485 (show_fortran_array_slicing_debug): New function.
486 (value_f90_subarray): Delete.
487 (skip_undetermined_arglist): Delete.
488 (class fortran_array_repacker_base_impl): New class.
489 (class fortran_lazy_array_repacker_impl): New class.
490 (class fortran_array_repacker_impl): New class.
491 (fortran_value_subarray): Complete rewrite.
492 (set_fortran_list): New static global.
493 (show_fortran_list): Likewise.
494 (_initialize_f_language): Register new commands.
495 (fortran_adjust_dynamic_array_base_address_hack): New function.
496 * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
497 Declare.
498 * f-valprint.c: Include 'f-array-walker.h'.
499 (class fortran_array_printer_impl): New class.
500 (f77_print_array_1): Delete.
501 (f77_print_array): Delete.
502 (fortran_print_array): New.
503 (f_value_print_inner): Update to call fortran_print_array.
504 * gdbtypes.c: Include 'f-lang.h'.
505 (resolve_dynamic_type_internal): Call
506 fortran_adjust_dynamic_array_base_address_hack.
507
a15a5258
AB
5082020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
509
510 * breakpoint.c (struct watch_options): New struct.
511 (watch_option_defs): New static global.
512 (make_watch_options_def_group): New function.
513 (watch_maybe_just_location): Convert option parsing.
514 (watch_command_completer): New function.
515 (_initialize_breakpoint): Build help text using options mechanism.
516
2e362716
AB
5172020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
518
519 * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
520 (watch_command_1): Update parameter types. Convert locals to
521 bool.
522 (watch_command_wrapper): Change parameter type.
523 (watch_maybe_just_location): Change locals to bool.
524 (rwatch_command_wrapper): Update parameter type.
525 (awatch_command_wrapper): Update parameter type.
526 * breakpoint.h (watch_command_wrapper): Change parameter type.
527 (rwatch_command_wrapper): Update parameter type.
528 (awatch_command_wrapper): Update parameter type.
529 * eval.c (fetch_subexp_value): Change parameter type.
530 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
531 'false' not '0'.
532 * value.h (fetch_subexp_value): Change parameter type in
533 declaration.
534
b3ff61f8
AB
5352020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
536
537 * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
538 skip_spaces.
539
5b7d45d3
KS
5402020-11-18 Keith Seitz <keiths@redhat.com>
541
542 * linux-tdep.c (dump_note_entry_p): Return true instead of
543 checking `filename'.
544
c44191f8
TV
5452020-11-18 Tom de Vries <tdevries@suse.de>
546
547 * debuginfod-support.c (debuginfod_source_query)
548 (debuginfod_debuginfo_query): Also do early exit if
549 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
550
5d8254e1
TV
5512020-11-18 Tom de Vries <tdevries@suse.de>
552
553 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
554 warning.
555
584903d3
SM
5562020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
557
558 * gdbtypes.h (get_array_bounds): Return bool, adjust some
559 callers. Move doc here.
560 * gdbtypes.c (get_array_bounds): Return bool
561
6f2643db
AB
5622020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
563
564 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
565 assert.
566 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
567 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
568 case to the default.
569
037d7135
AB
5702020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
571
572 * printcmd.c: Include 'safe-ctype.c'.
573 (skip_over_slash_fmt): New function.
574 (print_command_completer): Call skip_over_slash_fmt.
575 (display_and_x_command_completer): New function.
576 (_initialize_printcmd): Add command completion for 'x' and
577 'display'.
578
2b3cb400
PA
5792020-11-16 Pedro Alves <pedro@palves.net>
580
581 * frame.c (get_prev_frame): Move get_frame_id call from here ...
582 (get_prev_frame_always_1): ... to here.
583 * inline-frame.c (inline_frame_this_id): Mention
584 get_prev_frame_always_1 in comment.
585
b74dbc20
JB
5862020-11-15 Joel Brobecker <brobecker@adacore.com>
587
588 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
589 handling.
590 (value_less): Add fixed-point handling.
591
0a12719e
JB
5922020-11-15 Joel Brobecker <brobecker@adacore.com>
593
594 * eval.c (binop_promote): Add fixed-point type handling.
595 * valarith.c (fixed_point_binop): New function.
596 (scalar_binop): Add fixed-point type handling.
597 (value_neg): Add fixed-point type handling.
598 * valops.c (value_cast_to_fixed_point): New function.
599 (value_cast): Add fixed-point type handling.
600
0c9150e4
JB
6012020-11-15 Joel Brobecker <brobecker@adacore.com>
602
603 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
604 range types.
605 * c-typeprint.c (c_type_print_varspec_prefix)
606 (c_type_print_varspec_suffix, c_type_print_base_1): Add
607 TYPE_CODE_FIXED_POINT handling.
608 * p-typeprint.c (pascal_type_print_varspec_prefix)
609 (pascal_type_print_varspec_suffix): Likewise.
610 * typeprint.c (print_type_fixed_point): New function.
611 * typeprint.h (print_type_fixed_point): Add declaration.
612
b26daff9
JB
6132020-11-15 Joel Brobecker <brobecker@adacore.com>
614
615 * printcmd.c (print_scalar_formatted): Add fixed-point type
616 handling when options->format is set.
617
09584414
JB
6182020-11-15 Joel Brobecker <brobecker@adacore.com>
619
620 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
621 * dwarf2/read.c (get_dwarf2_rational_constant)
622 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
623 (has_zero_over_zero_small_attribute): New functions.
624 read_base_type, set_die_type): Add fixed-point type handling.
625 * gdb-gdb.py.in: Add fixed-point type handling.
626 * gdbtypes.c: #include "gmp-utils.h".
627 (create_range_type, set_type_code): Add fixed-point type handling.
628 (init_fixed_point_type): New function.
629 (is_integral_type, is_scalar_type): Add fixed-point type handling.
630 (print_fixed_point_type_info): New function.
631 (recursive_dump_type, copy_type_recursive): Add fixed-point type
632 handling.
633 (fixed_point_type_storage): New typedef.
634 (fixed_point_objfile_key): New static global.
635 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
636 (fixed_point_type_base_type, fixed_point_scaling_factor): New
637 functions.
638 * gdbtypes.h: #include "gmp-utils.h".
639 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
640 (union type_specific) <fixed_point_info>: New field.
641 (struct fixed_point_type_info): New struct.
642 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
643 (init_fixed_point_type, is_fixed_point_type)
644 (fixed_point_type_base_type, fixed_point_scaling_factor)
645 (allocate_fixed_point_type_info): Add declarations.
646 * valprint.c (generic_val_print_fixed_point): New function.
647 (generic_value_print): Add fixed-point type handling.
648 * value.c (value_as_address, unpack_long): Add fixed-point type
649 handling.
650
e55c6530
JB
6512020-11-15 Joel Brobecker <brobecker@adacore.com>
652
653 * utils.h (uinteger_pow): Add declaration.
654 * utils.c (uinteger_pow): Moved here (without changes)...
655 * valarith.c (uinteger_pow): ... from here.
656
b34c74ab
JB
6572020-11-15 Joel Brobecker <brobecker@adacore.com>
658
40d9d2fd 659 * gmp-utils.h, gmp-utils.c: New file.
b34c74ab
JB
660 * unittests/gmp-utils-selftests.c: New file.
661 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
662 unittests/gmp-utils-selftests.c.
663 (COMMON_SFILES) Add gmp-utils.c.
664 (HFILES_NO_SRCDIR): Add gmp-utils.h.
665
1b4ac058
JB
6662020-11-15 Joel Brobecker <brobecker@adacore.com>
667
668 * configure.ac: Generate an error if a usable GMP library
669 could not be found.
670 * configure: Regenerate.
671
2c947d9b
JB
6722020-11-15 Joel Brobecker <brobecker@adacore.com>
673
674 * configure.ac: Add support for --with-libgmp-prefix.
675 * Makefile.in (LIBGMP): New variable.
676 (CLIBS): Include $(LIBGMP).
677 * configure, config.in: Regenerate
678
9dd02fc0
AB
6792020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
680
681 PR cli/26879
682 * f-exp.y (COMPLETE): New token.
683 (exp): Two new rules for tab-completion.
684 (saw_name_at_eof): New static global.
685 (last_was_structop): Likewise.
686 (yylex): Set new variables, and return COMPLETE token at the end
687 of the input stream in some cases.
688
758cb810
TT
6892020-11-14 Tom Tromey <tom@tromey.com>
690
691 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
692
749065b7
TT
6932020-11-14 Tom Tromey <tom@tromey.com>
694
695 * opencl-lang.c (opencl_component_ref): Make "comps" const.
696
2c5b1849
SM
6972020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
698
699 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
700
e8b2f0d9
TT
7012020-11-13 Tom Tromey <tom@tromey.com>
702
703 * c-lang.c (convert_ucn, convert_octal, convert_hex)
704 (convert_escape, parse_one_string): Constify.
705
25f4c262
KS
7062020-11-13 Keith Seitz <keiths@redhat.com>
707
708 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
709 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
710 outside of ELF segments" warning for debugin
711
9d3ab915
KS
7122020-11-13 Keith Seitz <keiths@redhat.com>
713
714 PR gdb/23034
715 * elfread.c (elf_symfile_segments): Output a BFD file name
716 for the "Loadable section ... outside of ELF segments" warning.
717
9ecab40c
SM
7182020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
719
720 PR gdb/26835
721 * arm-tdep.c (class arm_instruction_reader): New.
722 (target_arm_instruction_reader): New.
723 (arm_analyze_prologue): Add instruction reader parameter and use
724 it. Use arm_expand_immediate.
725 (class target_arm_instruction_reader): Adjust.
726 (arm_skip_prologue): Adjust.
727 (arm_expand_immediate): New.
728 (arm_scan_prologue): Adjust.
729 (arm_analyze_prologue_test): New.
730 (class test_arm_instruction_reader): New.
731
5a7cf527
AB
7322020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
733
734 * f-lang.c (fortran_argument_convert): Add declaration. Add
735 header comment, taken from f-lang.h. Make static.
736 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
737 (fortran_argument_convert): Delete declaration.
738
7bea47f0
AB
7392020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
740
741 * ada-exp.y (find_primitive_type): Make parameter const.
742 * ada-lang.c (enum ada_primitive_types): Delete.
743 (ada_language::language_arch_info): Update.
744 * c-lang.c (enum c_primitive_types): Delete.
745 (c_language_arch_info): Update.
746 (enum cplus_primitive_types): Delete.
747 (cplus_language::language_arch_info): Update.
748 * d-lang.c (enum d_primitive_types): Delete.
749 (d_language::language_arch_info): Update.
750 * f-lang.c (enum f_primitive_types): Delete.
751 (f_language::language_arch_info): Update.
752 * go-lang.c (enum go_primitive_types): Delete.
753 (go_language::language_arch_info): Update.
754 * language.c (auto_or_unknown_language::language_arch_info):
755 Update.
756 (language_gdbarch_post_init): Use obstack_new, use array indexing.
757 (language_string_char_type): Add header comment, call function in
758 language_arch_info.
759 (language_bool_type): Likewise
760 (language_arch_info::bool_type): Define.
761 (language_lookup_primitive_type_1): Delete.
762 (language_lookup_primitive_type): Rewrite as a templated function
763 to call function in language_arch_info, then instantiate twice.
764 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
765 (language_arch_info::lookup_primitive_type_and_symbol): Define.
766 (language_arch_info::lookup_primitive_type): Define twice with
767 different signatures.
768 (language_arch_info::lookup_primitive_type_as_symbol): Define.
769 (language_lookup_primitive_type_as_symbol): Rewrite to call a
770 member function in language_arch_info.
771 * language.h (language_arch_info): Complete rewrite.
772 (language_lookup_primitive_type): Make templated.
773 * m2-lang.c (enum m2_primitive_types): Delete.
774 (m2_language::language_arch_info): Update.
775 * opencl-lang.c (OCL_P_TYPE): Delete.
776 (enum opencl_primitive_types): Delete.
777 (opencl_type_data): Delete.
778 (builtin_opencl_type): Delete.
779 (lookup_opencl_vector_type): Update.
780 (opencl_language::language_arch_info): Update, lots of content
781 moved from...
782 (build_opencl_types): ...here. This function is now deleted.
783 (_initialize_opencl_language): Delete.
784 * p-lang.c (enum pascal_primitive_types): Delete.
785 (pascal_language::language_arch_info): Update.
786 * rust-lang.c (enum rust_primitive_types): Delete.
787 (rust_language::language_arch_info): Update.
788
bf6e5d01
SM
7892020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
790
791 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
792 dwarf2_queue_guard.
793
1350c3b4
SM
7942020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
795
796 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
797 comment.
798
6f738b01
SM
7992020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
800
801 * dwarf2/read.c (dwarf_read_debug_printf,
802 dwarf_read_debug_printf_v): New macros, use throughout the file.
803
10c19fad
SV
8042020-11-12 Shahab Vahedi <shahab@synopsys.com>
805
10806efd 806 PR tdep/27015
10c19fad
SV
807 * arc-linux-tdep.c (collect_register): Populate "eret" by
808 "pc" value from the regcache when asked for "pc" value.
809
1f2624a3
TT
8102020-11-12 Tom Tromey <tom@tromey.com>
811
812 PR rust/26799:
813 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
814 exist.
815
ab33b152
AB
8162020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
817
818 * features/Makefile (XMLTOC): Add rx.xml.
819 (FEATURE_XMLFILES): Remove rx.xml.
820 (FEATURE_CFILES rule): Pass '-single-feature' flag.
821 * features/rx.c: Regenerate.
822 * features/rx.xml: Wrap in `target` tags, and reindent.
823 * target-descriptions.c (struct maint_print_c_tdesc_options): New
824 structure.
825 (maint_print_c_tdesc_opt_def): New typedef.
826 (maint_print_c_tdesc_opt_defs): New static global.
827 (make_maint_print_c_tdesc_options_def_group): New function.
828 (maint_print_c_tdesc_cmd): Make use of command line flags, only
829 print single feature C file for target descriptions containing a
830 single feature.
831 (maint_print_c_tdesc_cmd_completer): New function.
832 (_initialize_target_descriptions): Update call to register command
833 completer, and include command line flag in help text.
834
550820e1
AB
8352020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
836
837 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
838 numbers.
839 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
840 enum values.
841
baf20f76
TT
8422020-11-10 Tom Tromey <tom@tromey.com>
843
844 * value.h (internalvar_name): Update.
845 * value.c (internalvar_name): Make return type const.
846
caaece0e
TT
8472020-11-10 Tom Tromey <tom@tromey.com>
848
849 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
850 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
851 const.
852
8e20b4be
TT
8532020-11-10 Tom Tromey <tom@tromey.com>
854
855 * objc-lang.h (value_nsstring): Update.
856 * objc-lang.c (value_nsstring): Make "ptr" const.
857
86775fab
AB
8582020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
859
860 * expprint.c (print_subexp_funcall): Increment expression position
861 after reading argument count.
862 * f-lang.c (print_subexp_f): Skip over opcode before calling
863 common function.
864 (dump_subexp_body_f): Likewise.
865
3fed4c0b
RG
8662020-11-06 Romain Geissler <romain.geissler@amadeus.com>
867
868 PR python/26832
869 * configure: Regenerate.
870 * configure.ac: Check for python modules ctypes instead of
871 itertools.
872
ac3d4064
PA
8732020-11-06 Pedro Alves <pedro@palves.net>
874
875 * macroexp.c (struct macro_buffer): Split in two classes. Add
876 uses adjusted.
877 (struct shared_macro_buffer): New, factored out from struct
878 macro_buffer.
879 (struct growable_macro_buffer): New, factored out from struct
880 macro_buffer.
881 (set_token, get_comment, get_identifier, get_pp_number)
882 (get_character_constant, get_string_literal, get_punctuator)
883 (get_next_token_for_substitution): Constify parameters.
884 (substitute_args): Constify locals.
885
606decb2
TT
8862020-11-05 Tom Tromey <tom@tromey.com>
887
888 * dwarf2/read.c (read_cutu_die_from_dwo)
889 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
890 (build_type_psymtabs_1): Update.
891 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
892 parameter.
893 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
894 Don't read section. Add assert.
895
9c91c725
TT
8962020-11-04 Tom Tromey <tromey@adacore.com>
897
898 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
899
8d9fd3a1
TT
9002020-11-04 Tom Tromey <tromey@adacore.com>
901
902 * ada-typeprint.c (ada_print_type): Handle __T types.
903
d8f62e84
TT
9042020-11-04 Tom Tromey <tromey@adacore.com>
905
906 * dwarf2/read.c (add_partial_symbol, process_die):
907 Handle DW_TAG_array_type.
908 (is_type_tag_for_partial): Add "lang" parameter.
909 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
910
7ff5b937
TT
9112020-11-04 Tom Tromey <tromey@adacore.com>
912
913 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
914
10f6a3ad
TT
9152020-11-04 Tom Tromey <tromey@adacore.com>
916
917 * dwarf2/read.c (read_array_type): Only apply stride to innermost
918 array.
919
b72795a8
TT
9202020-11-04 Tom Tromey <tromey@adacore.com>
921
922 * gdbtypes.c (update_static_array_size): Handle bit stride.
923
24aa1b02
TT
9242020-11-04 Tom Tromey <tromey@adacore.com>
925
926 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
927
c9a28cbe
TT
9282020-11-04 Tom Tromey <tromey@adacore.com>
929
930 * ada-lang.c (ada_is_any_packed_array_type): New function.
931 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
932
57567375
TT
9332020-11-04 Tom Tromey <tromey@adacore.com>
934
935 * dwarf2/read.c (recognize_bound_expression)
936 (quirk_ada_thick_pointer): New functions.
937 (read_array_type): Call quirk_ada_thick_pointer.
938 (set_die_type): Add "skip_data_location" parameter.
939 (quirk_ada_thick_pointer): New function.
940 (process_structure_scope): Call quirk_ada_thick_pointer.
941 * ada-lang.c (ada_is_unconstrained_packed_array_type)
942 (decode_packed_array_bitsize): Handle thick pointers without
943 parallel types.
944 (ada_is_gnat_encoded_packed_array_type): Rename from
945 ada_is_packed_array_type.
946 (ada_is_constrained_packed_array_type): Update.
947 * ada-valprint.c (ada_val_print_gnat_array): Remove.
948 (ada_value_print_1): Use ada_get_decoded_value.
949
a7400e44
TT
9502020-11-04 Tom Tromey <tromey@adacore.com>
951
952 * ada-lang.c (recursively_update_array_bitsize): New function.
953 (decode_constrained_packed_array_type): Call it.
954
75fd6a26
TT
9552020-11-04 Tom Tromey <tromey@adacore.com>
956
957 * ada-lang.c (to_fixed_array_type): Error if
958 decode_constrained_packed_array_type returns NULL.
959
93f9561e
TT
9602020-11-04 Tom Tromey <tromey@adacore.com>
961
962 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
963
257e02d8
TT
9642020-11-02 Tom Tromey <tromey@adacore.com>
965
966 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
967 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
968 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
969 * amd64-ravenscar-thread.c: New file.
970 * amd64-ravenscar-thread.h: New file.
971 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
972 * configure.tgt (amd64_tobjs): Add ravenscar objects.
973
74d877e5
AB
9742020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
975
976 * main.c (execute_cmdargs): New function.
977 (captured_main_1): Make use of execute_cmdargs.
978
64aaad63
AB
9792020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
980
981 * NEWS: Mention changes to config file search path.
982 * main.c
983
5b3d3560
TT
9842020-11-02 Tom Tromey <tromey@adacore.com>
985
986 * python/python.c: Consolidate two HAVE_PYTHON blocks.
987 (python_GdbModuleDef): Move earlier. Now static.
988 (do_start_initialization): Consolidate some IS_PY3K blocks.
989
dda83cd7
SM
9902020-11-02 Simon Marchi <simon.marchi@efficios.com>
991
992 * aarch64-linux-tdep.c: Fix indentation.
993 * aarch64-ravenscar-thread.c: Fix indentation.
994 * aarch64-tdep.c: Fix indentation.
995 * aarch64-tdep.h: Fix indentation.
996 * ada-lang.c: Fix indentation.
997 * ada-lang.h: Fix indentation.
998 * ada-tasks.c: Fix indentation.
999 * ada-typeprint.c: Fix indentation.
1000 * ada-valprint.c: Fix indentation.
1001 * ada-varobj.c: Fix indentation.
1002 * addrmap.c: Fix indentation.
1003 * addrmap.h: Fix indentation.
1004 * agent.c: Fix indentation.
1005 * aix-thread.c: Fix indentation.
1006 * alpha-bsd-nat.c: Fix indentation.
1007 * alpha-linux-tdep.c: Fix indentation.
1008 * alpha-mdebug-tdep.c: Fix indentation.
1009 * alpha-nbsd-tdep.c: Fix indentation.
1010 * alpha-obsd-tdep.c: Fix indentation.
1011 * alpha-tdep.c: Fix indentation.
1012 * amd64-bsd-nat.c: Fix indentation.
1013 * amd64-darwin-tdep.c: Fix indentation.
1014 * amd64-linux-nat.c: Fix indentation.
1015 * amd64-linux-tdep.c: Fix indentation.
1016 * amd64-nat.c: Fix indentation.
1017 * amd64-obsd-tdep.c: Fix indentation.
1018 * amd64-tdep.c: Fix indentation.
1019 * amd64-windows-tdep.c: Fix indentation.
1020 * annotate.c: Fix indentation.
1021 * arc-tdep.c: Fix indentation.
1022 * arch-utils.c: Fix indentation.
1023 * arch/arm-get-next-pcs.c: Fix indentation.
1024 * arch/arm.c: Fix indentation.
1025 * arm-linux-nat.c: Fix indentation.
1026 * arm-linux-tdep.c: Fix indentation.
1027 * arm-nbsd-tdep.c: Fix indentation.
1028 * arm-pikeos-tdep.c: Fix indentation.
1029 * arm-tdep.c: Fix indentation.
1030 * arm-tdep.h: Fix indentation.
1031 * arm-wince-tdep.c: Fix indentation.
1032 * auto-load.c: Fix indentation.
1033 * auxv.c: Fix indentation.
1034 * avr-tdep.c: Fix indentation.
1035 * ax-gdb.c: Fix indentation.
1036 * ax-general.c: Fix indentation.
1037 * bfin-linux-tdep.c: Fix indentation.
1038 * block.c: Fix indentation.
1039 * block.h: Fix indentation.
1040 * blockframe.c: Fix indentation.
1041 * bpf-tdep.c: Fix indentation.
1042 * break-catch-sig.c: Fix indentation.
1043 * break-catch-syscall.c: Fix indentation.
1044 * break-catch-throw.c: Fix indentation.
1045 * breakpoint.c: Fix indentation.
1046 * breakpoint.h: Fix indentation.
1047 * bsd-uthread.c: Fix indentation.
1048 * btrace.c: Fix indentation.
1049 * build-id.c: Fix indentation.
1050 * buildsym-legacy.h: Fix indentation.
1051 * buildsym.c: Fix indentation.
1052 * c-typeprint.c: Fix indentation.
1053 * c-valprint.c: Fix indentation.
1054 * c-varobj.c: Fix indentation.
1055 * charset.c: Fix indentation.
1056 * cli/cli-cmds.c: Fix indentation.
1057 * cli/cli-decode.c: Fix indentation.
1058 * cli/cli-decode.h: Fix indentation.
1059 * cli/cli-script.c: Fix indentation.
1060 * cli/cli-setshow.c: Fix indentation.
1061 * coff-pe-read.c: Fix indentation.
1062 * coffread.c: Fix indentation.
1063 * compile/compile-cplus-types.c: Fix indentation.
1064 * compile/compile-object-load.c: Fix indentation.
1065 * compile/compile-object-run.c: Fix indentation.
1066 * completer.c: Fix indentation.
1067 * corefile.c: Fix indentation.
1068 * corelow.c: Fix indentation.
1069 * cp-abi.h: Fix indentation.
1070 * cp-namespace.c: Fix indentation.
1071 * cp-support.c: Fix indentation.
1072 * cp-valprint.c: Fix indentation.
1073 * cris-linux-tdep.c: Fix indentation.
1074 * cris-tdep.c: Fix indentation.
1075 * darwin-nat-info.c: Fix indentation.
1076 * darwin-nat.c: Fix indentation.
1077 * darwin-nat.h: Fix indentation.
1078 * dbxread.c: Fix indentation.
1079 * dcache.c: Fix indentation.
1080 * disasm.c: Fix indentation.
1081 * dtrace-probe.c: Fix indentation.
1082 * dwarf2/abbrev.c: Fix indentation.
1083 * dwarf2/attribute.c: Fix indentation.
1084 * dwarf2/expr.c: Fix indentation.
1085 * dwarf2/frame.c: Fix indentation.
1086 * dwarf2/index-cache.c: Fix indentation.
1087 * dwarf2/index-write.c: Fix indentation.
1088 * dwarf2/line-header.c: Fix indentation.
1089 * dwarf2/loc.c: Fix indentation.
1090 * dwarf2/macro.c: Fix indentation.
1091 * dwarf2/read.c: Fix indentation.
1092 * dwarf2/read.h: Fix indentation.
1093 * elfread.c: Fix indentation.
1094 * eval.c: Fix indentation.
1095 * event-top.c: Fix indentation.
1096 * exec.c: Fix indentation.
1097 * exec.h: Fix indentation.
1098 * expprint.c: Fix indentation.
1099 * f-lang.c: Fix indentation.
1100 * f-typeprint.c: Fix indentation.
1101 * f-valprint.c: Fix indentation.
1102 * fbsd-nat.c: Fix indentation.
1103 * fbsd-tdep.c: Fix indentation.
1104 * findvar.c: Fix indentation.
1105 * fork-child.c: Fix indentation.
1106 * frame-unwind.c: Fix indentation.
1107 * frame-unwind.h: Fix indentation.
1108 * frame.c: Fix indentation.
1109 * frv-linux-tdep.c: Fix indentation.
1110 * frv-tdep.c: Fix indentation.
1111 * frv-tdep.h: Fix indentation.
1112 * ft32-tdep.c: Fix indentation.
1113 * gcore.c: Fix indentation.
1114 * gdb_bfd.c: Fix indentation.
1115 * gdbarch.sh: Fix indentation.
1116 * gdbarch.c: Re-generate
1117 * gdbarch.h: Re-generate.
1118 * gdbcore.h: Fix indentation.
1119 * gdbthread.h: Fix indentation.
1120 * gdbtypes.c: Fix indentation.
1121 * gdbtypes.h: Fix indentation.
1122 * glibc-tdep.c: Fix indentation.
1123 * gnu-nat.c: Fix indentation.
1124 * gnu-nat.h: Fix indentation.
1125 * gnu-v2-abi.c: Fix indentation.
1126 * gnu-v3-abi.c: Fix indentation.
1127 * go32-nat.c: Fix indentation.
1128 * guile/guile-internal.h: Fix indentation.
1129 * guile/scm-cmd.c: Fix indentation.
1130 * guile/scm-frame.c: Fix indentation.
1131 * guile/scm-iterator.c: Fix indentation.
1132 * guile/scm-math.c: Fix indentation.
1133 * guile/scm-ports.c: Fix indentation.
1134 * guile/scm-pretty-print.c: Fix indentation.
1135 * guile/scm-value.c: Fix indentation.
1136 * h8300-tdep.c: Fix indentation.
1137 * hppa-linux-nat.c: Fix indentation.
1138 * hppa-linux-tdep.c: Fix indentation.
1139 * hppa-nbsd-nat.c: Fix indentation.
1140 * hppa-nbsd-tdep.c: Fix indentation.
1141 * hppa-obsd-nat.c: Fix indentation.
1142 * hppa-tdep.c: Fix indentation.
1143 * hppa-tdep.h: Fix indentation.
1144 * i386-bsd-nat.c: Fix indentation.
1145 * i386-darwin-nat.c: Fix indentation.
1146 * i386-darwin-tdep.c: Fix indentation.
1147 * i386-dicos-tdep.c: Fix indentation.
1148 * i386-gnu-nat.c: Fix indentation.
1149 * i386-linux-nat.c: Fix indentation.
1150 * i386-linux-tdep.c: Fix indentation.
1151 * i386-nto-tdep.c: Fix indentation.
1152 * i386-obsd-tdep.c: Fix indentation.
1153 * i386-sol2-nat.c: Fix indentation.
1154 * i386-tdep.c: Fix indentation.
1155 * i386-tdep.h: Fix indentation.
1156 * i386-windows-tdep.c: Fix indentation.
1157 * i387-tdep.c: Fix indentation.
1158 * i387-tdep.h: Fix indentation.
1159 * ia64-libunwind-tdep.c: Fix indentation.
1160 * ia64-libunwind-tdep.h: Fix indentation.
1161 * ia64-linux-nat.c: Fix indentation.
1162 * ia64-linux-tdep.c: Fix indentation.
1163 * ia64-tdep.c: Fix indentation.
1164 * ia64-tdep.h: Fix indentation.
1165 * ia64-vms-tdep.c: Fix indentation.
1166 * infcall.c: Fix indentation.
1167 * infcmd.c: Fix indentation.
1168 * inferior.c: Fix indentation.
1169 * infrun.c: Fix indentation.
1170 * iq2000-tdep.c: Fix indentation.
1171 * language.c: Fix indentation.
1172 * linespec.c: Fix indentation.
1173 * linux-fork.c: Fix indentation.
1174 * linux-nat.c: Fix indentation.
1175 * linux-tdep.c: Fix indentation.
1176 * linux-thread-db.c: Fix indentation.
1177 * lm32-tdep.c: Fix indentation.
1178 * m2-lang.c: Fix indentation.
1179 * m2-typeprint.c: Fix indentation.
1180 * m2-valprint.c: Fix indentation.
1181 * m32c-tdep.c: Fix indentation.
1182 * m32r-linux-tdep.c: Fix indentation.
1183 * m32r-tdep.c: Fix indentation.
1184 * m68hc11-tdep.c: Fix indentation.
1185 * m68k-bsd-nat.c: Fix indentation.
1186 * m68k-linux-nat.c: Fix indentation.
1187 * m68k-linux-tdep.c: Fix indentation.
1188 * m68k-tdep.c: Fix indentation.
1189 * machoread.c: Fix indentation.
1190 * macrocmd.c: Fix indentation.
1191 * macroexp.c: Fix indentation.
1192 * macroscope.c: Fix indentation.
1193 * macrotab.c: Fix indentation.
1194 * macrotab.h: Fix indentation.
1195 * main.c: Fix indentation.
1196 * mdebugread.c: Fix indentation.
1197 * mep-tdep.c: Fix indentation.
1198 * mi/mi-cmd-catch.c: Fix indentation.
1199 * mi/mi-cmd-disas.c: Fix indentation.
1200 * mi/mi-cmd-env.c: Fix indentation.
1201 * mi/mi-cmd-stack.c: Fix indentation.
1202 * mi/mi-cmd-var.c: Fix indentation.
1203 * mi/mi-cmds.c: Fix indentation.
1204 * mi/mi-main.c: Fix indentation.
1205 * mi/mi-parse.c: Fix indentation.
1206 * microblaze-tdep.c: Fix indentation.
1207 * minidebug.c: Fix indentation.
1208 * minsyms.c: Fix indentation.
1209 * mips-linux-nat.c: Fix indentation.
1210 * mips-linux-tdep.c: Fix indentation.
1211 * mips-nbsd-tdep.c: Fix indentation.
1212 * mips-tdep.c: Fix indentation.
1213 * mn10300-linux-tdep.c: Fix indentation.
1214 * mn10300-tdep.c: Fix indentation.
1215 * moxie-tdep.c: Fix indentation.
1216 * msp430-tdep.c: Fix indentation.
1217 * namespace.h: Fix indentation.
1218 * nat/fork-inferior.c: Fix indentation.
1219 * nat/gdb_ptrace.h: Fix indentation.
1220 * nat/linux-namespaces.c: Fix indentation.
1221 * nat/linux-osdata.c: Fix indentation.
1222 * nat/netbsd-nat.c: Fix indentation.
1223 * nat/x86-dregs.c: Fix indentation.
1224 * nbsd-nat.c: Fix indentation.
1225 * nbsd-tdep.c: Fix indentation.
1226 * nios2-linux-tdep.c: Fix indentation.
1227 * nios2-tdep.c: Fix indentation.
1228 * nto-procfs.c: Fix indentation.
1229 * nto-tdep.c: Fix indentation.
1230 * objfiles.c: Fix indentation.
1231 * objfiles.h: Fix indentation.
1232 * opencl-lang.c: Fix indentation.
1233 * or1k-tdep.c: Fix indentation.
1234 * osabi.c: Fix indentation.
1235 * osabi.h: Fix indentation.
1236 * osdata.c: Fix indentation.
1237 * p-lang.c: Fix indentation.
1238 * p-typeprint.c: Fix indentation.
1239 * p-valprint.c: Fix indentation.
1240 * parse.c: Fix indentation.
1241 * ppc-linux-nat.c: Fix indentation.
1242 * ppc-linux-tdep.c: Fix indentation.
1243 * ppc-nbsd-nat.c: Fix indentation.
1244 * ppc-nbsd-tdep.c: Fix indentation.
1245 * ppc-obsd-nat.c: Fix indentation.
1246 * ppc-ravenscar-thread.c: Fix indentation.
1247 * ppc-sysv-tdep.c: Fix indentation.
1248 * ppc64-tdep.c: Fix indentation.
1249 * printcmd.c: Fix indentation.
1250 * proc-api.c: Fix indentation.
1251 * producer.c: Fix indentation.
1252 * producer.h: Fix indentation.
1253 * prologue-value.c: Fix indentation.
1254 * prologue-value.h: Fix indentation.
1255 * psymtab.c: Fix indentation.
1256 * python/py-arch.c: Fix indentation.
1257 * python/py-bpevent.c: Fix indentation.
1258 * python/py-event.c: Fix indentation.
1259 * python/py-event.h: Fix indentation.
1260 * python/py-finishbreakpoint.c: Fix indentation.
1261 * python/py-frame.c: Fix indentation.
1262 * python/py-framefilter.c: Fix indentation.
1263 * python/py-inferior.c: Fix indentation.
1264 * python/py-infthread.c: Fix indentation.
1265 * python/py-objfile.c: Fix indentation.
1266 * python/py-prettyprint.c: Fix indentation.
1267 * python/py-registers.c: Fix indentation.
1268 * python/py-signalevent.c: Fix indentation.
1269 * python/py-stopevent.c: Fix indentation.
1270 * python/py-stopevent.h: Fix indentation.
1271 * python/py-threadevent.c: Fix indentation.
1272 * python/py-tui.c: Fix indentation.
1273 * python/py-unwind.c: Fix indentation.
1274 * python/py-value.c: Fix indentation.
1275 * python/py-xmethods.c: Fix indentation.
1276 * python/python-internal.h: Fix indentation.
1277 * python/python.c: Fix indentation.
1278 * ravenscar-thread.c: Fix indentation.
1279 * record-btrace.c: Fix indentation.
1280 * record-full.c: Fix indentation.
1281 * record.c: Fix indentation.
1282 * reggroups.c: Fix indentation.
1283 * regset.h: Fix indentation.
1284 * remote-fileio.c: Fix indentation.
1285 * remote.c: Fix indentation.
1286 * reverse.c: Fix indentation.
1287 * riscv-linux-tdep.c: Fix indentation.
1288 * riscv-ravenscar-thread.c: Fix indentation.
1289 * riscv-tdep.c: Fix indentation.
1290 * rl78-tdep.c: Fix indentation.
1291 * rs6000-aix-tdep.c: Fix indentation.
1292 * rs6000-lynx178-tdep.c: Fix indentation.
1293 * rs6000-nat.c: Fix indentation.
1294 * rs6000-tdep.c: Fix indentation.
1295 * rust-lang.c: Fix indentation.
1296 * rx-tdep.c: Fix indentation.
1297 * s12z-tdep.c: Fix indentation.
1298 * s390-linux-tdep.c: Fix indentation.
1299 * score-tdep.c: Fix indentation.
1300 * ser-base.c: Fix indentation.
1301 * ser-mingw.c: Fix indentation.
1302 * ser-uds.c: Fix indentation.
1303 * ser-unix.c: Fix indentation.
1304 * serial.c: Fix indentation.
1305 * sh-linux-tdep.c: Fix indentation.
1306 * sh-nbsd-tdep.c: Fix indentation.
1307 * sh-tdep.c: Fix indentation.
1308 * skip.c: Fix indentation.
1309 * sol-thread.c: Fix indentation.
1310 * solib-aix.c: Fix indentation.
1311 * solib-darwin.c: Fix indentation.
1312 * solib-frv.c: Fix indentation.
1313 * solib-svr4.c: Fix indentation.
1314 * solib.c: Fix indentation.
1315 * source.c: Fix indentation.
1316 * sparc-linux-tdep.c: Fix indentation.
1317 * sparc-nbsd-tdep.c: Fix indentation.
1318 * sparc-obsd-tdep.c: Fix indentation.
1319 * sparc-ravenscar-thread.c: Fix indentation.
1320 * sparc-tdep.c: Fix indentation.
1321 * sparc64-linux-tdep.c: Fix indentation.
1322 * sparc64-nbsd-tdep.c: Fix indentation.
1323 * sparc64-obsd-tdep.c: Fix indentation.
1324 * sparc64-tdep.c: Fix indentation.
1325 * stabsread.c: Fix indentation.
1326 * stack.c: Fix indentation.
1327 * stap-probe.c: Fix indentation.
1328 * stubs/ia64vms-stub.c: Fix indentation.
1329 * stubs/m32r-stub.c: Fix indentation.
1330 * stubs/m68k-stub.c: Fix indentation.
1331 * stubs/sh-stub.c: Fix indentation.
1332 * stubs/sparc-stub.c: Fix indentation.
1333 * symfile-mem.c: Fix indentation.
1334 * symfile.c: Fix indentation.
1335 * symfile.h: Fix indentation.
1336 * symmisc.c: Fix indentation.
1337 * symtab.c: Fix indentation.
1338 * symtab.h: Fix indentation.
1339 * target-float.c: Fix indentation.
1340 * target.c: Fix indentation.
1341 * target.h: Fix indentation.
1342 * tic6x-tdep.c: Fix indentation.
1343 * tilegx-linux-tdep.c: Fix indentation.
1344 * tilegx-tdep.c: Fix indentation.
1345 * top.c: Fix indentation.
1346 * tracefile-tfile.c: Fix indentation.
1347 * tracepoint.c: Fix indentation.
1348 * tui/tui-disasm.c: Fix indentation.
1349 * tui/tui-io.c: Fix indentation.
1350 * tui/tui-regs.c: Fix indentation.
1351 * tui/tui-stack.c: Fix indentation.
1352 * tui/tui-win.c: Fix indentation.
1353 * tui/tui-winsource.c: Fix indentation.
1354 * tui/tui.c: Fix indentation.
1355 * typeprint.c: Fix indentation.
1356 * ui-out.h: Fix indentation.
1357 * unittests/copy_bitwise-selftests.c: Fix indentation.
1358 * unittests/memory-map-selftests.c: Fix indentation.
1359 * utils.c: Fix indentation.
1360 * v850-tdep.c: Fix indentation.
1361 * valarith.c: Fix indentation.
1362 * valops.c: Fix indentation.
1363 * valprint.c: Fix indentation.
1364 * valprint.h: Fix indentation.
1365 * value.c: Fix indentation.
1366 * value.h: Fix indentation.
1367 * varobj.c: Fix indentation.
1368 * vax-tdep.c: Fix indentation.
1369 * windows-nat.c: Fix indentation.
1370 * windows-tdep.c: Fix indentation.
1371 * xcoffread.c: Fix indentation.
1372 * xml-syscall.c: Fix indentation.
1373 * xml-tdesc.c: Fix indentation.
1374 * xstormy16-tdep.c: Fix indentation.
1375 * xtensa-config.c: Fix indentation.
1376 * xtensa-linux-nat.c: Fix indentation.
1377 * xtensa-linux-tdep.c: Fix indentation.
1378 * xtensa-tdep.c: Fix indentation.
1379
e1f57067
AB
13802020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1381 Craig Blackmore <craig.blackmore@embecosm.com>
1382
1383 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
1384 as an unsigned value.
1385
ae7754b2
TT
13862020-11-01 Tom Tromey <tom@tromey.com>
1387
1388 * dbxread.c (dbx_end_psymtab): Update.
1389 * dwarf2/read.c (process_psymtab_comp_unit_reader)
1390 (build_type_psymtabs_reader): Update.
1391 * xcoffread.c (xcoff_end_psymtab): Update.
1392 * ctfread.c (scan_partial_symbols): Update.
1393 * psymtab.c (sort_pst_symbols): Remove.
1394 (partial_symtab::end): Rename from end_psymtab_common. Inline
1395 sort_pst_symbols.
1396 * psympriv.h (struct partial_symtab) <end>: New method.
1397 (end_psymtab_common): Don't declare.
1398
0684bb51
TT
13992020-11-01 Tom Tromey <tom@tromey.com>
1400
1401 * symmisc.c (count_psyms): New function.
1402 (print_objfile_statistics): Use it.
1403 * psymtab.c (append_psymbol_to_list): Remove.
1404 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
1405 * objfiles.h (struct objstats) <n_psyms>: Remove.
1406
089002bb
TT
14072020-11-01 Tom Tromey <tom@tromey.com>
1408
1409 * dbxread.c (dbx_end_psymtab): Update.
1410 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
1411 (build_type_psymtabs_reader): Update.
1412 * xcoffread.c (xcoff_end_psymtab): Update.
1413 * ctfread.c (scan_partial_symbols): Update.
1414 * psympriv.h (end_psymtab_common): Update.
1415 * psymtab.c (end_psymtab_common): Remove objfile parameter.
1416 (sort_pst_symbols): Likewise.
1417
525454d6
TT
14182020-11-01 Tom Tromey <tom@tromey.com>
1419
1420 * dbxread.c (dbx_symfile_read): Update.
1421 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
1422 * xcoffread.c (xcoff_initial_scan): Update.
1423 * psympriv.h (init_psymbol_list): Don't declare.
1424 * psymtab.c (init_psymbol_list): Remove.
1425
60bd1d53
JB
14262020-11-01 Joel Brobecker <brobecker@adacore.com>
1427
1428 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
1429 gnat_encoded_fixed_type_info. Update all callers.
1430
db99d0d0
JB
14312020-11-01 Joel Brobecker <brobecker@adacore.com>
1432
1433 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
1434 line too long.
1435
75f24e86
JB
14362020-11-01 Joel Brobecker <brobecker@adacore.com>
1437
1438 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
1439 cast_from_fixed. Update all callers.
1440 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
1441 Update all callers.
1442 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
1443 Update all callers.
1444 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
1445 ada_scaling_factor.
1446 * ada-typeprint.c: Replace call to ada_scaling_factor by call
1447 to print_gnat_encoded_fixed_point_type.
1448 * ada-valprint.c: Likewise.
1449
4f0469cd
AB
14502020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1451
1452 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
1453 (debug_prefixed_printf): Add check of debug_displaced flag.
1454 * linux-nat.c (linux_nat_debug_printf): Add check of
1455 debug_linux_nat flag.
1456
17417fb0
SM
14572020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1458
1459 * infrun.c (infrun_debug_printf_1): Remove.
1460 (displaced_debug_printf_1): Remove.
1461 (stop_all_threads): Use debug_prefixed_printf.
1462 * infrun.h (infrun_debug_printf_1): Remove.
1463 (infrun_debug_printf): Use debug_prefixed_printf.
1464 (displaced_debug_printf_1): Remove.
1465 (displaced_debug_printf): Use debug_prefixed_printf.
1466 * linux-nat.c (linux_nat_debug_printf_1): Remove.
1467 (linux_nat_debug_printf): Use debug_prefixed_printf.
1468
ad6dba1c
SM
14692020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1470
1471 * configure: Re-generate.
1472 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
1473 AC_LANG_PROGRAM.
1474
b6fb30ed
SM
14752020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1476
1477 * configure: Re-generate.
1478
5164c117
SM
14792020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1480
1481 * configure: Re-generate.
1482
864ca435
SM
14832020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1484
1485 * configure: Re-generate.
1486
b9442ec1
SM
14872020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1488
1489 * configure: Re-generate.
1490
294f2697
SM
14912020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1492
1493 * acinclude.m4: Modernize.
1494 * configure: Re-generate.
1495
5593a99a
SM
14962020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1497
1498 * configure.ac: Modernize.
1499 * configure: Re-generate.
1500
e41fda1d
SM
15012020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1502
1503 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
1504 * configure: Re-generate.
1505 * configure.ac: Remove AM_PROG_CC_STDC.
1506
91e1a0ed
SM
15072020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1508
1509 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
1510 AC_CANONICAL_SYSTEM.
1511 * configure: Re-generate.
1512
136821d9
SM
15132020-10-30 Simon Marchi <simon.marchi@efficios.com>
1514
1515 * infrun.h (displaced_debug_printf): New macro. Replace
1516 displaced debug prints throughout to use it.
1517 (displaced_debug_printf_1): New declaration.
1518 (displaced_step_dump_bytes): Return string, remove ui_file
1519 parameter, update all callers.
1520 * infrun.c (displaced_debug_printf_1): New function.
1521 (displaced_step_dump_bytes): Return string, remove ui_file
1522 parameter
1523
aa2045e7
SM
15242020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
1525
1526 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
1527
b1ec2735
TT
15282020-10-30 Tom Tromey <tromey@adacore.com>
1529
1530 * Makefile.in (stamp-init): Depend on config.status.
1531
b78b3a29
TBA
15322020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1533
1534 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
1535
d70bdd3c
PA
15362020-10-30 Pedro Alves <pedro@palves.net>
1537
1538 * thread.c (lookup_selected_frame): Move ...
1539 * frame.c (lookup_selected_frame): ... here.
1540
79952e69
PA
15412020-10-30 Pedro Alves <pedro@palves.net>
1542
1543 * blockframe.c (block_innermost_frame): Use get_selected_frame.
1544 * frame.c
1545 (scoped_restore_selected_frame::scoped_restore_selected_frame):
1546 Use save_selected_frame. Save language as well.
1547 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
1548 Use restore_selected_frame, and restore language as well.
1549 (selected_frame_id, selected_frame_level): New.
1550 (selected_frame): Update comments.
1551 (save_selected_frame, restore_selected_frame): New.
1552 (get_selected_frame): Use lookup_selected_frame.
1553 (get_selected_frame_if_set): Delete.
1554 (select_frame): Record selected_frame_level and selected_frame_id.
1555 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
1556 fields.
1557 (get_selected_frame): Make 'message' parameter optional.
1558 (get_selected_frame_if_set): Delete declaration.
1559 (select_frame): Update comments.
1560 (save_selected_frame, restore_selected_frame)
1561 (lookup_selected_frame): Declare.
1562 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
1563 * infrun.c (struct infcall_control_state) <selected_frame_level>:
1564 New field.
1565 (save_infcall_control_state): Use save_selected_frame.
1566 (restore_selected_frame): Delete.
1567 (restore_infcall_control_state): Use restore_selected_frame.
1568 * stack.c (select_frame_command_core, frame_command_core): Use
1569 get_selected_frame.
1570 * thread.c (restore_selected_frame): Rename to ...
1571 (lookup_selected_frame): ... this and make extern. Select the
1572 current frame if the frame level is -1.
1573 (scoped_restore_current_thread::restore): Also restore the
1574 language.
1575 (scoped_restore_current_thread::~scoped_restore_current_thread):
1576 Don't try/catch.
1577 (scoped_restore_current_thread::scoped_restore_current_thread):
1578 Save the language as well. Use save_selected_frame.
1579
58103c33
SM
15802020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1581
1582 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
1583 documentation.
1584 * gdbarch.h: Re-generate.
1585
40a53766
SM
15862020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1587
1588 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
1589 parameter.
1590 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
1591 Likewise.
1592 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1593 Likewise.
1594 * arch-utils.c (default_displaced_step_hw_singlestep):
1595 Likewise.
1596 * arch-utils.h (default_displaced_step_hw_singlestep):
1597 Likewise.
1598 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
1599 Likewise.
1600 * s390-tdep.c (s390_displaced_step_hw_singlestep):
1601 Likewise.
1602 * gdbarch.c: Re-generate.
1603 * gdbarch.h: Re-generate.
1604 * infrun.c (resume_1): Adjust.
1605
8407f91b
TT
16062020-10-29 Tom Tromey <tom@tromey.com>
1607
1608 * progspace.c (program_space::~program_space): Don't call
1609 exec_close.
1610
5008b3b2
TT
16112020-10-29 Tom Tromey <tom@tromey.com>
1612
1613 * exec.c (exec_target::close): Don't change current program
1614 space.
1615
d9eebde0
TT
16162020-10-29 Tom Tromey <tom@tromey.com>
1617
1618 * symfile.c (add_symbol_file_command): Update.
1619 * exec.c (program_space::add_target_sections): Rename.
1620 * symfile-mem.c (symbol_file_add_from_memory): Update.
1621 * progspace.h (struct program_space) <add_target_sections>:
1622 Declare new overload.
1623 * exec.h (add_target_sections_of_objfile): Don't declare.
1624
3769e227
TT
16252020-10-29 Tom Tromey <tom@tromey.com>
1626
1627 * solib.c (solib_map_sections): Update.
1628 * exec.c (program_space::add_target_sections): Now a method.
1629 (exec_file_attach): Update.
1630 * exec.h (add_target_sections): Don't declare.
1631 * progspace.h (struct program_space) <add_target_sections>:
1632 Declare.
1633
2a3f84af
TT
16342020-10-29 Tom Tromey <tom@tromey.com>
1635
1636 * progspace.h (struct program_space) <remove_target_sections>:
1637 Declare.
1638 * exec.c (program_space::remove_target_sections): Now a method.
1639 * exec.h (remove_target_sections): Don't declare.
1640
004eecfd
TT
16412020-10-29 Tom Tromey <tom@tromey.com>
1642
1643 * inferior.c (delete_inferior): Update.
1644 * progspace.c (program_space::empty): Rename from
1645 program_space_empty_p. Return bool.
1646 * progspace.h (struct program_space) <empty>: New method.
1647 (program_space_empty_p): Don't declare.
1648
e39fb971
TT
16492020-10-29 Tom Tromey <tom@tromey.com>
1650
1651 * progspace.c (program_space::~program_space): Don't call
1652 clear_program_space_solib_cache.
1653 (program_space::clear_solib_cache): Rename from
1654 clear_solib_cache.
1655 * solib.c (handle_solib_event): Update.
1656 * progspace.h (struct program_space) <clear_solib_cache>: New
1657 method.
1658 (clear_program_space_solib_cache): Don't declare.
1659
a42d7dd8
TT
16602020-10-29 Tom Tromey <tom@tromey.com>
1661
1662 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1663 * target.c (info_target_command): Update.
1664 * symfile.c (syms_from_objfile_1, finish_new_objfile)
1665 (symbol_file_clear, reread_symbols): Update.
1666 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
1667 * stabsread.c (scan_file_globals): Update.
1668 * solib.c (update_solib_list): Update.
1669 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
1670 (svr4_fetch_objfile_link_map, enable_break)
1671 (svr4_relocate_main_executable)
1672 (svr4_iterate_over_objfiles_in_search_order): Update.
1673 * solib-frv.c (lm_base, enable_break)
1674 (frv_relocate_main_executable): Update.
1675 (main_got, frv_fdpic_find_canonical_descriptor): Update.
1676 (frv_fetch_objfile_link_map): Update.
1677 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
1678 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
1679 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
1680 * remote.c (remote_target::get_offsets): Update.
1681 (remote_target::start_remote)
1682 (extended_remote_target::post_attach): Update.
1683 * objfiles.c (entry_point_address_query): Update.
1684 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
1685 * minsyms.c (get_symbol_leading_char): Update.
1686 * frame.c (inside_main_func): Update.
1687 * progspace.h (symfile_objfile): Remove macro.
1688
19f6550e
TT
16892020-10-29 Tom Tromey <tom@tromey.com>
1690
1691 * exec.c (exec_file_attach): Update.
1692 * progspace.c (program_space::exec_close): Update.
1693 * progspace.h (struct program_space) <ebfd>: Now a
1694 gdb_bfd_ref_ptr.
1695 <set_exec_bfd>: Change argument type.
1696 <exec_bfd>: Update.
1697
7e10abd1
TT
16982020-10-29 Tom Tromey <tom@tromey.com>
1699
1700 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1701 * symfile.c (reread_symbols): Update.
1702 * symfile-mem.c (add_symbol_file_from_memory_command)
1703 (add_vsyscall_page): Update.
1704 * source-cache.c (source_cache::get_plain_source_lines): Update.
1705 * solib-svr4.c (find_program_interpreter, elf_locate_base)
1706 (svr4_current_sos_direct, svr4_exec_displacement)
1707 (svr4_relocate_main_executable): Update.
1708 (svr4_iterate_over_objfiles_in_search_order): Update.
1709 * solib-frv.c (enable_break2, enable_break): Update.
1710 * solib-dsbt.c (lm_base, enable_break): Update.
1711 * solib-darwin.c (find_program_interpreter)
1712 (darwin_solib_create_inferior_hook): Update.
1713 * sol-thread.c (rw_common, ps_pdmodel): Update.
1714 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
1715 * remote.c (compare_sections_command)
1716 (remote_target::trace_set_readonly_regions): Update.
1717 * remote-sim.c (get_sim_inferior_data)
1718 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
1719 (gdbsim_target_open, gdbsim_target::files_info): Update.
1720 * exec.h (exec_bfd): Remove macro.
1721 * progspace.c (initialize_progspace): Update.
1722 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
1723 Update.
1724 * nto-procfs.c (nto_procfs_target::post_attach)
1725 (nto_procfs_target::create_inferior): Update.
1726 * maint.c (maintenance_info_sections): Update.
1727 * linux-thread-db.c (thread_db_target::get_thread_local_address):
1728 Update.
1729 * infcmd.c (post_create_inferior): Update.
1730 * gcore.c (default_gcore_arch, default_gcore_target): Update.
1731 (objfile_find_memory_regions): Update.
1732 * exec.c (validate_exec_file, exec_file_attach)
1733 (exec_read_partial_read_only, print_section_info): Update.
1734 * corelow.c (core_target_open): Update.
1735 * corefile.c (reopen_exec_file, validate_files): Update.
1736 * arm-tdep.c (gdb_print_insn_arm): Update.
1737 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
1738 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
1739 methods.
1740
b55221ab
TT
17412020-10-29 Tom Tromey <tom@tromey.com>
1742
1743 * progspace.h (current_target_sections): Remove macro.
1744 * solib-svr4.c (scan_dyntag): Update.
1745 * solib-dsbt.c (scan_dyntag): Update.
1746 * exec.c (exec_target::close): Update.
1747 (add_target_sections, add_target_sections_of_objfile)
1748 (remove_target_sections, exec_target::get_section_table)
1749 (exec_target::files_info, set_section_command)
1750 (exec_set_section_address, exec_target::has_memory)
1751 (exec_target::has_memory): Update.
1752
5a36e715
TT
17532020-10-29 Tom Tromey <tom@tromey.com>
1754
1755 * source-cache.c (source_cache::get_plain_source_lines): Use
1756 current_program_space.
1757 * corefile.c (reopen_exec_file): Use current_program_space.
1758 * exec.c (exec_file_attach): Use current_program_space.
1759 * exec.h (exec_bfd_mtime): Remove.
1760
784c8592
TT
17612020-10-29 Tom Tromey <tom@tromey.com>
1762
1763 * gcore.c (default_gcore_mach): Remove.
1764 (create_gcore_bfd): Update.
1765
8a4f1402
TT
17662020-10-29 Tom Tromey <tom@tromey.com>
1767
1768 * progspace.c (program_space::exec_close): New method, from
1769 exec_close in exec.c.
1770 * exec.c (exec_close): Move to progspace.c.
1771 (exec_target::close, exec_file_attach): Update.
1772 * progspace.h (struct program_space) <exec_close>: Declare
1773 method.
1774
c20cb686
TT
17752020-10-29 Tom Tromey <tom@tromey.com>
1776
1777 * progspace.h (struct program_space) <exec_filename>: Rename from
1778 pspace_exec_filename. Now a unique_xmalloc_ptr.
1779 * inferior.c (print_selected_inferior): Update.
1780 (print_inferior): Update.
1781 * mi/mi-main.c (print_one_inferior): Update.
1782 * exec.h (exec_filename): Remove macro.
1783 * corefile.c (get_exec_file): Update.
1784 * exec.c (exec_close): Update.
1785 (exec_file_attach): Update.
1786 * progspace.c (clone_program_space): Update.
1787 (print_program_space): Update.
1788
6be2a9ab
TT
17892020-10-29 Tom Tromey <tom@tromey.com>
1790
1791 * target-section.h (struct target_section): Add constructor.
1792 * exec.c (build_section_table, add_target_sections_of_objfile):
1793 Update.
1794 * corelow.c (core_target::build_file_mappings): Update.
1795
cfaa8f76
TBA
17962020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1797
1798 PR gdb/19318
1799 * inferior.c (detach_inferior_command): Restore the current thread.
1800 (kill_inferior_command): Ditto.
1801
1b00ef06
TV
18022020-10-28 Tom de Vries <tdevries@suse.de>
1803
1804 PR symtab/26772
1805 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
1806 map, check it in the "best match" loop.
1807
7f40ce1a
SM
18082020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1809
1810 * m32c-tdep.c: Remove unused includes.
1811
5eb9e3f5
SM
18122020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1813
1814 * xtensa-tdep.c: Remove includes.
1815
b1d4d8d1
TBA
18162020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1817
1818 * breakpoint.c (struct condition_command_opts): New struct.
1819 (condition_command_option_defs): New static global.
1820 (make_condition_command_options_def_group): New function.
1821 (condition_completer): Update to consider the '-force' flag.
1822 (condition_command): Use gdb::option for the '-force' flag.
1823
bd24c5d6
TV
18242020-10-27 Tom de Vries <tdevries@suse.de>
1825
1826 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
1827 symbols in section check.
1828
61eb46a4
TV
18292020-10-27 Tom de Vries <tdevries@suse.de>
1830
1831 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
1832
733d554a
TBA
18332020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1834
1835 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
1836 * breakpoint.c: Update the help text of the 'condition' and 'break'
1837 commands.
1838 (set_breakpoint_condition): Take a new bool parameter
1839 to control whether condition definition should be forced even when
1840 the condition expression is invalid in all of the current locations.
1841 (condition_command): Update the call to 'set_breakpoint_condition'.
1842 (find_condition_and_thread): Take the "-force-condition" flag into
1843 account.
1844 * linespec.c (linespec_keywords): Add "-force-condition" as an
1845 element.
1846 (FORCE_KEYWORD_INDEX): New #define.
1847 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
1848 as a keyword.
1849 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
1850 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
1851 * python/py-breakpoint.c (bppy_set_condition): Ditto.
1852 * NEWS: Mention the changes to the 'break' and 'condition' commands.
1853
b5fa468f
TBA
18542020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1855
1856 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
1857 * breakpoint.c (set_breakpoint_location_condition): New function.
1858 (set_breakpoint_condition): Disable a breakpoint location if parsing
1859 the condition string gives an error.
1860 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
1861 (build_target_condition_list): Ditto.
1862 (build_target_command_list): Ditto.
1863 (build_bpstat_chain): Ditto.
1864 (print_one_breakpoint_location): Ditto.
1865 (print_one_breakpoint): Ditto.
1866 (breakpoint_1): Ditto.
1867 (bp_location::bp_location): Ditto.
1868 (locations_are_equal): Ditto.
1869 (update_breakpoint_locations): Ditto.
1870 (enable_disable_bp_num_loc): Ditto.
1871 (init_breakpoint_sal): Use set_breakpoint_location_condition.
1872 (find_condition_and_thread_for_sals): New static function.
1873 (create_breakpoint): Call find_condition_and_thread_for_sals.
1874 (location_to_sals): Call find_condition_and_thread_for_sals instead
1875 of find_condition_and_thread.
1876
1c47ec3e
TV
18772020-10-26 Tom de Vries <tdevries@suse.de>
1878
1879 * dwarf2/read.c (process_full_comp_unit): Call
1880 dwarf2_find_base_address.
1881
6390859c
TT
18822020-10-26 Tom Tromey <tromey@adacore.com>
1883
1884 * gdbtypes.c (create_range_type): Revert previous patch. Add
1885 comment.
1886
d744f0f9
PA
18872020-10-26 Pedro Alves <pedro@palves.net>
1888
1889 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
1890 (my_waitpid): Use gdb::handle_eintr.
1891
006811bc
SM
18922020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
1893
1894 * acinclude.m4: Update ptrace.m4 path.
1895 * ptrace.m4: Moved to gdbsupport.
1896
c75e31a1
SM
18972020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1898
1899 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
1900 instead of target_gdbarch.
1901
32495661
SM
19022020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1903
1904 * jit.c (jit_reader_load_command): Pass current inferior.
1905 (jit_inferior_init): Change parameter type to inferior, use it.
1906 (jit_inferior_created): Remove.
1907 (jit_inferior_created_hook): Pass inferior parameter down.
1908 (_initialize_jit): Use jit_inferior_created_hook instead of
1909 jit_inferior_created.
1910 * jit.h (jit_inferior_created_hook): Add inferior parameter.
1911 * infrun.c (follow_exec): Pass inferior to
1912 jit_inferior_created_hook.
1913
3f66685e
SM
19142020-10-24 Simon Marchi <simon.marchi@efficios.com>
1915
1916 * linux-thread-db.c (check_pid_namespace_match): Add inferior
1917 parameter and use it.
1918 (thread_db_inferior_created): Pass inferior argument.
1919
a0ff652f
SM
19202020-10-24 Simon Marchi <simon.marchi@efficios.com>
1921
1922 * aix-thread.c (aix_thread_inferior_created): Add inferior
1923 parameter.
1924 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
1925 * dummy-frame.c (cleanup_dummy_frames): Likewise.
1926 * jit.c (jit_inferior_created): Likewise.
1927 * linux-thread-db.c (thread_db_inferior_created): Likewise.
1928 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
1929 * observable.h (inferior_created): Likewise.
1930 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
1931 * symfile-mem.c (add_vsyscall_page): Likewise.
1932 * infcmd.c (post_create_inferior): Pass inferior argument.
1933
3c67532c
JB
19342020-10-24 Joel Brobecker <brobecker@adacore.com>
1935
1936 GDB 10.1 released.
1937
8747316e
JB
19382020-10-23 Joel Brobecker <brobecker@adacore.com>
1939
1940 * ada-typeprint.c (ada_print_type): Remove superfluous second call
1941 to ada_check_typedef.
1942
1a0ea399
AB
19432020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1944
1945 * f-exp.y (f_parse): Rename to...
1946 (f_language::parser): ...this.
1947 * f-lang.c (f_get_encoding): Rename to...
1948 (f_language::get_encoding): ...this.
1949 (f_op_print_tab): Rename to...
1950 (f_language::op_print_tab): ...this.
1951 (exp_descriptor_f): Rename to...
1952 (f_language::exp_descriptor_tab): ...this.
1953 (class f_language): Moved to f-lang.h.
1954 (f_language::language_arch_info): New function, moved out of class
1955 declaration.
1956 (f_language::search_name_hash): Likewise.
1957 (f_language::lookup_symbol_nonlocal): Likewise.
1958 (f_language::get_symbol_name_matcher_inner): Likewise.
1959 * f-lang.h: Add 'valprint.h' include.
1960 (class f_language): Moved here from f-lang.c.
1961 * f-typeprint.c (f_type_print_args): Delete commented out
1962 declaration.
1963 (f_print_typedef): Rename to...
1964 (f_language::print_typedef): ...this.
1965 (f_print_type): Rename to...
1966 (f_language::print_type): ...this.
1967 (f_type_print_varspec_prefix): Delete declaration and rename to...
1968 (f_language::f_type_print_varspec_prefix): ...this.
1969 (f_type_print_varspec_suffix): Delete declaration and rename to...
1970 (f_language::f_type_print_varspec_suffix): ...this.
1971 (f_type_print_base): Delete declaration and rename to...
1972 (f_language::f_type_print_base): ...this.
1973 * f-valprint.c (f_value_print_inner): Rename to...
1974 (f_language::value_print_inner): ...this.
1975 * parse.c: Delete 'f-lang.h' include.
1976
88cefd9b
AB
19772020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1978
1979 * language.h (language_defn::print_type): Add variable names in
1980 declaration, and update header comment.
1981
5399db93
AB
19822020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1983
1984 * ada-lang.c (ada_language::demangle): Rename to...
1985 (ada_language::demangle_symbol): ...this.
1986 * c-lang.c (cplus_language::demangle): Rename to...
1987 (cplus_language::demangle_symbol): ...this.
1988 * d-lang.c (d_language::demangle): Rename to...
1989 (d_language::demangle_symbol): ...this.
1990 * f-lang.c (f_language::demangle): Rename to...
1991 (f_language::demangle_symbol): ...this.
1992 * go-lang.c (go_language::demangle): Rename to...
1993 (go_language::demangle_symbol): ...this.
1994 * language.c (language_demangle): Update call to demangle_symbol.
1995 (auto_or_unknown_language::demangle): Rename to...
1996 (auto_or_unknown_language::demangle_symbol): ...this.
1997 * language.h (language_defn::demangle): Rename to...
1998 (language_defn::demangle_symbol): ...this.
1999 * objc-lang.c (objc_language::demangle): Rename to...
2000 (objc_language::demangle_symbol): ...this.
2001 * rust-lang.c (rust_language::demangle): Rename to...
2002 (rust_language::demangle_symbol): ...this.
2003
4b2f86ef
AB
20042020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2005
2006 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
2007 (iterate_over_file_blocks): Replace use of macro with the macros
2008 definition.
2009
e74b39de
AB
20102020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2011
2012 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
2013 * valprint.c (maybe_print_array_index): Replace use of macro with
2014 the macros definition.
2015
00c696a6
AB
20162020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2017
2018 * ada-lang.c (ada_language::print_array_index): Call value_print
2019 directly.
2020 * language.c (language_defn::print_array_index): Likewise.
2021 * language.h (LA_VALUE_PRINT): Delete.
2022 * valprint.c (value_print): Call value_print on the
2023 current_language directly.
2024
d3b67c56
AB
20252020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2026
2027 * language.h (LA_PRINT_TYPEDEF): Delete.
2028 * typeprint.c (typedef_print): Call print_typedef directly on the
2029 current_language object.
2030
790e2a12
AB
20312020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2032
2033 * m2-exp.y (m2_parse): Rename to...
2034 (m2_language::parser): ...this. Update function signature.
2035 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
2036 (m2_op_print): Rename to...
2037 (m2_language::op_print_tab): ...this, and make const.
2038 (exp_descriptor_modula2): Rename to...
2039 (m2_language::exp_descriptor_modula2): ...this.
2040 (class m2_language): Move to m2-lang.h.
2041 (m2_language::language_arch_info): New function, moved out of
2042 class declaration.
2043 (m2_language::printchar): New function, body from m2_printchar.
2044 (m2_language::printstr): New function, moved out of class
2045 declaration.
2046 (m2_language::emitchar): Likewise.
2047 * m2-lang.h (m2_parse): Delete declaration.
2048 (m2_print_typedef): Delete declaration.
2049 (m2_value_print_inner): Delete declaration.
2050 (class m2_language): Class declaration moved from m2-lang.c,
2051 larger functions are left in m2-lang.c.
2052 * m2-typeprint.c (m2_print_typedef): Rename to...
2053 (m2_language::print_typedef): ...this, and update function
2054 signature.
2055 * m2-valprint.c (m2_value_print_inner): Rename to...
2056 (m2_language::value_print_inner): ...this, replace use of
2057 LA_PRINT_STRING with a direct call to printstr member function,
2058 and update recursive call.
2059
b01175fc
AB
20602020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2061
2062 * language.c (default_is_string_type_p): Delete, implementation
2063 moved into auto_or_unknown_language::is_string_type_p.
2064 (unk_op_print_tab): Moved into
2065 auto_or_unknown_language::opcode_print_table.
2066 (unknown_language_arch_info): Delete, implementation moved into
2067 auto_or_unknown_language::language_arch_info.
2068 (class auto_or_unknown_language): New class, member functions
2069 copied from unknown_language class, with some updates.
2070 (class unknown_language): Most member functions moved into
2071 auto_or_unknown_language class. Inherit from
2072 auto_or_unknown_language class.
2073 (class auto_language): Inherit from auto_or_unknown_language.
2074 Delete most member functions.
2075
1a97fe8c
HD
20762020-10-22 Hannes Domani <ssbssa@yahoo.de>
2077
2078 * stabsread.c (read_member_functions): Remove gdb_assert.
2079
6b9d0dfd
HD
20802020-10-22 Hannes Domani <ssbssa@yahoo.de>
2081
2082 * gdbtypes.c (init_complex_type): Check target type name.
2083
4b4bb603
SM
20842020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2085
2086 * target-debug.h (target_debug_print_struct_target_ops_p):
2087 Remove.
2088 (target_debug_print_async_callback_ftype_p): Remove.
2089 (target_debug_print_struct_trace_state_variable_p): Remove.
2090 (target_debug_print_struct_traceframe_info_p): Remove.
2091 (target_debug_print_VEC__btrace_block_s__pp): Remove.
2092 (target_debug_print_enum_btrace_format): Remove.
2093 (target_debug_print_enum_info_proc_what): Remove.
2094 (target_debug_print_thread_info_pp): Remove.
2095
24f5300a
SM
20962020-10-22 Simon Marchi <simon.marchi@efficios.com>
2097
2098 * target.h (struct target_ops) <make_corefile_notes>:
2099 Change return type to unique pointer.
2100 * target.c (dummy_make_corefile_notes): Likewise.
2101 * exec.c (struct exec_target) <make_corefile_notes>:
2102 Likewise.
2103 (exec_target::make_corefile_notes): Likewise.
2104 * procfs.c (class procfs_target) <make_corefile_notes>:
2105 Likewise.
2106 (procfs_do_thread_registers): Adjust to unique pointer.
2107 (struct procfs_corefile_thread_data): Add constructor.
2108 <note_data>: Change type to unique pointer.
2109 (procfs_corefile_thread_callback): Adjust to unique pointer.
2110 (procfs_target::make_corefile_notes): Change return type to
2111 unique pointer.
2112 * target-delegates.c: Re-generate.
2113 * gcore.c (write_gcore_file_1): Adjust.
2114 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
2115 New.
2116
5fb4027f
TV
21172020-10-22 Tom de Vries <tdevries@suse.de>
2118
2119 * block.c (find_block_in_blockvector): Make sure the returned block
2120 contains pc.
2121
4a636814
SM
21222020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2123
2124 PR gdb/26693
2125 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
2126 parameter.
2127 (load_cu): Pass existing CU.
2128 (process_imported_unit_die): Likewise.
2129 (follow_die_offset): Likewise.
2130
1bd57575
LM
21312020-10-22 Luis Machado <luis.machado@linaro.org>
2132
2133 * corelow.c (core_target::xfer_partial): Also check for an empty
2134 m_core_unavailable_mappings vector.
2135
6b4c676c
AB
21362020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2137
2138 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
2139 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
2140 * f-exp.y (arglist): Allow for a series of subranges.
2141 (subrange): Add cases for subranges with strides.
2142 * f-lang.c (value_f90_subarray): Catch use of array strides and
2143 throw an error.
2144 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
2145
f2d8e4c5
AB
21462020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2147
2148 * expprint.c (print_subexp_standard): Change enum range_type to
2149 range_flag and rename variables to match.
2150 (dump_subexp_body_standard): Likewise.
2151 * expression.h (enum range_type): Rename to...
2152 (enum range_flag): ...this.
2153 (range_types): Rename to...
2154 (range_flags): ...this.
2155 * f-lang.c (value_f90_subarray): Change enum range_type to
2156 range_flag and rename variables to match.
2157 * parse.c (operator_length_standard): Likewise.
2158 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
2159 range_type to range_flag.
2160 * rust-lang.c (rust_evaluate_funcall): Likewise.
2161 (rust_range): Likewise.
2162 (rust_compute_range): Likewise.
2163 (rust_subscript): Likewise.
2164
2f1b18db
AB
21652020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2166
2167 * expprint.c (print_subexp_standard): Update to reflect changes to
2168 enum range_type.
2169 (dump_subexp_body_standard): Likewise.
2170 * expression.h (enum range_type): Convert to a bit field enum, and
2171 make the enum unsigned.
2172 * f-exp.y (subrange): Update to reflect changes to enum
2173 range_type.
2174 * f-lang.c (value_f90_subarray): Likewise.
2175 * parse.c (operator_length_standard): Likewise.
2176 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
2177 * rust-lang.c (rust_range): Likewise.
2178 (rust_compute_range): Likewise.
2179 (rust_subscript): Likewise.
2180
a46d1843
SM
21812020-10-21 Simon Marchi <simon.marchi@efficios.com>
2182
2183 * infrun.c (displaced_step_in_progress_thread): Fix comment.
2184 (displaced_step_in_progress): Fix comment.
2185
c21f37a8
SM
21862020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
2187
2188 * gdbarch.sh (make_corefile_notes): Return unique pointer.
2189 * gdbarch.c: Re-generate.
2190 * gdbarch.h: Re-generate.
2191 * gcore.c (write_gcore_file_1): Adjust.
2192 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
2193 constructor.
2194 <note_data>: Change type to unique pointer.
2195 <abort_iteration>: Change type to bool.
2196 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
2197 (fbsd_collect_thread_registers): Return void, adjust.
2198 (struct fbsd_corefile_thread_data): Add construtor.
2199 <note_data>: Change type to unique pointer.
2200 (fbsd_corefile_thread): Adjust.
2201 (fbsd_make_corefile_notes): Return unique pointer, adjust.
2202 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
2203 to unique pointer, adjust.
2204 (struct linux_collect_regset_section_cb_data): Add constructor.
2205 <note_data>: Change type to unique pointer.
2206 <abort_iteration>: Change type to bool.
2207 (linux_collect_thread_registers): Return void, adjust.
2208 (struct linux_corefile_thread_data): Add constructor.
2209 <note_data>: Change type to unique pointer.
2210 (linux_corefile_thread): Adjust.
2211 (linux_make_corefile_notes): Return unique pointer, adjust.
2212
07fbbd01
SM
22132020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2214
2215 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
2216 * gdbarch.c: Re-generate.
2217 * gdbarch.h: Re-generate.
2218 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
2219 bool.
2220 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
2221 Likewise.
2222 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
2223 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
2224 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
2225 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
2226
39535193
SM
22272020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2228
2229 * gdbarch.sh: Make generated predicates return bool.
2230 * gdbarch.c: Re-generate.
2231 * gdbarch.h: Re-generate.
2232
ad523d01
TT
22332020-10-20 Tom Tromey <tom@tromey.com>
2234
2235 * varobj-iter.h (struct varobj_item): Remove typedef.
2236
c4464ade
SM
22372020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2238
2239 * infrun.c (currently_stepping): Change int to bool
2240 (maybe_software_singlestep): Likewise.
2241 (show_stop_on_solib_events): Likewise.
2242 (stepping_past_nonsteppable_watchpoint): Likewise.
2243 (displaced_step_in_progress_any_inferior): Likewise.
2244 (displaced_step_in_progress_thread): Likewise.
2245 (keep_going_stepped_thread): Likewise.
2246 (thread_still_needs_step_over): Likewise.
2247 (start_step_over): Likewise.
2248 (do_target_resume): Likewise.
2249 (resume_1): Likewise.
2250 (clear_proceed_status): Likewise.
2251 (thread_still_needs_step_over_bp): Likewise.
2252 (proceed): Likewise.
2253 (switch_back_to_stepped_thread): Likewise.
2254 (adjust_pc_after_break): Likewise.
2255 (stepped_in_from): Likewise.
2256 (handle_stop_requested): Likewise.
2257 (handle_syscall_event): Likewise.
2258 (handle_no_resumed): Likewise.
2259 (handle_inferior_event): Likewise.
2260 (finish_step_over): Likewise.
2261 (handle_signal_stop): Likewise.
2262 (process_event_stop_test): Likewise.
2263
2eb20436
SM
22642020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2265
2266 * infrun.c (get_displaced_stepping_state): Fix comment.
2267
e0c45ded
AS
22682020-10-20 Andreas Schwab <schwab@linux-m68k.org>
2269
2270 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
2271
22cc388e
TT
22722020-10-19 Tom Tromey <tromey@adacore.com>
2273
2274 PR tui/26719
2275 * tui/tui-winsource.h (struct tui_source_window_base)
2276 <refresh_window>: Rename from refresh_pad.
2277 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
2278 Rename from refresh_pad.
2279 (tui_source_window_base::show_source_content)
2280 (tui_source_window_base::do_scroll_horizontal): Update.
2281
3c6eb4d4
TBA
22822020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2283
2284 * thread.c (_initialize_thread): Fine-tune the help text of
2285 'info threads'.
2286
26703721
TBA
22872020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2288
2289 * frame.c: Remove the unused 'uinteger_option_def' type alias.
2290
61c26be8
MS
22912020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
2292
2293 * breakpoint.c (handle_jit_event): Add an argument, change how
2294 `jit_event_handler` is called.
2295
932539d7
TT
22962020-10-17 Tom Tromey <tom@tromey.com>
2297
2298 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
2299 (scan_xcoff_symtab): Update.
2300 * psymtab.h (class psymtab_storage) <global_psymbols,
2301 static_psymbols, current_global_psymbols,
2302 current_static_psymbols>: Remove.
2303 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
2304 (match_partial_symbol, lookup_partial_symbol): Update.
2305 (print_partial_symbols): Change parameters.
2306 (dump_psymtab, recursively_search_psymtabs)
2307 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
2308 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
2309 (concat): Remove.
2310 (end_psymtab_common): Simplify.
2311 (append_psymbol_to_list): Change parameters.
2312 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
2313 (init_psymbol_list): Simplify.
2314 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2315 * psympriv.h (struct partial_symtab) <empty>: New method.
2316 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
2317 Remove.
2318 <global_psymbols, static_psymbols>: New members.
2319 <add_psymbol>: New methods.
2320 (add_psymbol_to_list): Don't declare.
2321 (psymbol_placement): Move earlier.
2322 * mdebugread.c (parse_partial_symbols): Update.
2323 (handle_psymbol_enumerators): Change parameters.
2324 (mdebug_expand_psymtab): Update.
2325 * dwarf2/read.c (process_psymtab_comp_unit_reader)
2326 (add_partial_symbol): Update.
2327 * dwarf2/index-write.c (write_psymbols): Change parameters.
2328 (write_one_signatured_type): Update.
2329 (recursively_count_psymbols): Update.
2330 (recursively_write_psymbols): Update.
2331 (class debug_names) <recursively_write_psymbols>: Update.
2332 <write_psymbols>: Change parameters.
2333 <write_one_signatured_type>: Update.
2334 * dbxread.c (read_dbx_symtab): Update.
2335 (dbx_end_psymtab): Use partial_symtab::empty.
2336 * ctfread.c (struct ctf_context) <pst>: New member.
2337 (create_partial_symtab): Set it.
2338 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
2339 (scan_partial_symbols): Use the psymtab's context. Update.
2340
cfabbd35
TT
23412020-10-17 Tom Tromey <tom@tromey.com>
2342
2343 * valprint.c (generic_value_print): Remove comment.
2344 * m2-valprint.c (m2_value_print_inner): Remove comment.
2345 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
2346 type.
2347
520596f2
TV
23482020-10-17 Tom de Vries <tdevries@suse.de>
2349
2350 PR symtab/26317
2351 * source.c (select_source_symtab): Handling sal.symtab == NULL for
2352 symbol main.
2353
76547ab3
TV
23542020-10-14 Tom de Vries <tdevries@suse.de>
2355
2356 PR gdb/26733
2357 * solib.c (solib_contains_address_p): Handle
2358 'solib->sections == nullptr'.
2359
d3a07122
SM
23602020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2361
2362 PR gdb/26642
2363 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
2364 target can't do async.
2365 * target.c (target_wait): Assert that we don't pass
2366 TARGET_WNOHANG to a target that can't async.
2367
1b71cfcf
KR
23682020-10-13 Kamil Rytarowski <n54@gmx.com>
2369
2370 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
2371 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
2372 * alpha-bsd-nat.c: Adjust include.
2373 * alpha-bsd-tdep.h: Adjust comment.
2374 * alpha-nbsd-tdep.c: Rename to ...
2375 * alpha-netbsd-tdep.c: ... this, adjust include.
2376 * amd64-nbsd-nat.c: Rename to ...
2377 * amd64-netbsd-nat.c: ... this, adjust include.
2378 * amd64-nbsd-tdep.c: Rename to ...
2379 * amd64-netbsd-tdep.c: ... this, adjust include.
2380 * amd64-tdep.h: Adjust include.
2381 * arm-nbsd-nat.c: Rename to ...
2382 * arm-netbsd-nat.c: ... this, adjust include.
2383 * arm-nbsd-tdep.c: Rename to ...
2384 * arm-netbsd-tdep.c: ... this, adjust include.
2385 * arm-nbsd-tdep.h: Rename to ...
2386 * arm-netbsd-tdep.h: ... this, adjust include.
2387 * configure.nat: Adjust file lists.
2388 * configure.tgt: Likewise.
2389 * hppa-nbsd-nat.c: Rename to ...
2390 * hppa-netbsd-nat.c: ... this, adjust include.
2391 * hppa-nbsd-tdep.c: Rename to ...
2392 * hppa-netbsd-tdep.c: ... this, adjust include.
2393 * i386-nbsd-nat.c: Rename to ...
2394 * i386-netbsd-nat.c: ... this, adjust include.
2395 * i386-nbsd-tdep.c: Rename to ...
2396 * i386-netbsd-tdep.c: ... this, adjust include.
2397 * m68k-bsd-nat.c: Adjust include.
2398 * mips-nbsd-nat.c: Rename to ...
2399 * mips-netbsd-nat.c: ... this, adjust include.
2400 * mips-nbsd-tdep.c: Rename to ...
2401 * mips-netbsd-tdep.c: ... this, adjust include.
2402 * mips-nbsd-tdep.h: Rename to ...
2403 * mips-netbsd-tdep.h: ... this.
2404 * nbsd-nat.c: Rename to ...
2405 * netbsd-nat.c: ... this, adjust include.
2406 * nbsd-nat.h: Rename to ...
2407 * netbsd-nat.h: ... this, adjust include.
2408 * nbsd-tdep.c: Rename to ...
2409 * netbsd-tdep.c: ... this, adjust include.
2410 * nbsd-tdep.h: Rename to ...
2411 * netbsd-tdep.h: ... this.
2412 * ppc-nbsd-nat.c: Rename to ...
2413 * ppc-netbsd-nat.c: ... this, adjust include.
2414 * ppc-nbsd-tdep.c: Rename to ...
2415 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
2416 * ppc-nbsd-tdep.h: Rename to ...
2417 * ppc-netbsd-tdep.h: ... this.
2418 * sh-nbsd-nat.c: Rename to ...
2419 * sh-netbsd-nat.c: ... this, adjust include.
2420 * sh-nbsd-tdep.c: Rename to ...
2421 * sh-netbsd-tdep.c: ... this, adjust include.
2422 * sparc-nbsd-nat.c: Rename to ...
2423 * sparc-netbsd-nat.c: ... this.
2424 * sparc-nbsd-tdep.c: Rename to ...
2425 * sparc-netbsd-tdep.c: ... this, adjust include.
2426 * sparc64-nbsd-nat.c: Rename to ...
2427 * sparc64-netbsd-nat.c: ... this.
2428 * sparc64-nbsd-tdep.c: Rename to ...
2429 * sparc64-netbsd-tdep.c: ... this, adjust include.
2430 * sparc64-tdep.h: Adjust comment.
2431 * vax-bsd-nat.c: Adjust include.
2432 * vax-nbsd-tdep.c: Rename to ...
2433 * vax-netbsd-tdep.c: ... this, adjust include.
2434
d7a78e5c
TT
24352020-10-12 Tom Tromey <tom@tromey.com>
2436
2437 * target.h (struct target_ops) <get_section_table>: Update.
2438 (target_get_section_table): Update.
2439 * target.c (target_get_section_table, target_section_by_addr)
2440 (memory_xfer_partial_1): Update.
2441 * target-section.h (target_section_table): Now an alias.
2442 * target-delegates.c: Rebuild.
2443 * target-debug.h (target_debug_print_target_section_table_p):
2444 Rename from target_debug_print_struct_target_section_table_p.
2445 * symfile.c (build_section_addr_info_from_section_table): Update.
2446 * solib.c (solib_map_sections, solib_contains_address_p): Update.
2447 * solib-svr4.c (scan_dyntag): Update.
2448 * solib-dsbt.c (scan_dyntag): Update.
2449 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2450 Update.
2451 * record-full.c (record_full_core_target::xfer_partial): Update.
2452 * progspace.h (struct program_space) <target_sections>: Update.
2453 * exec.h (print_section_info): Update.
2454 * exec.c (exec_target::close, build_section_table)
2455 (add_target_sections, add_target_sections_of_objfile)
2456 (remove_target_sections, exec_on_vfork)
2457 (section_table_available_memory)
2458 (section_table_xfer_memory_partial)
2459 (exec_target::get_section_table, exec_target::xfer_partial)
2460 (print_section_info, set_section_command)
2461 (exec_set_section_address, exec_target::has_memory): Update.
2462 * corelow.c (core_target::build_file_mappings)
2463 (core_target::xfer_partial, core_target::info_proc_mappings)
2464 (core_target::info_proc_mappings): Update.
2465 * bfd-target.c (class target_bfd): Update
2466
eda214ce
TT
24672020-10-12 Tom Tromey <tom@tromey.com>
2468
2469 * progspace.c (program_space::~program_space): Don't call
2470 clear_section_table.
2471 * exec.h (clear_section_table): Don't declare.
2472 * exec.c (exec_target::close): Update.
2473 (clear_section_table): Remove.
2474
91840ee3
TT
24752020-10-12 Tom Tromey <tom@tromey.com>
2476
2477 * exec.c (add_target_sections_of_objfile): Simplify.
2478
2d128614
TT
24792020-10-12 Tom Tromey <tom@tromey.com>
2480
2481 * solib.c (solib_map_sections): Update.
2482 * record-full.c (record_full_core_open_1): Update.
2483 * exec.h (build_section_table): Return a target_section_table.
2484 * exec.c (exec_file_attach): Update.
2485 (build_section_table): Return a target_section_table.
2486 * corelow.c (core_target::core_target): Update.
2487 * bfd-target.c (target_bfd::target_bfd): Update.
2488
bb2a6777
TT
24892020-10-12 Tom Tromey <tom@tromey.com>
2490
2491 * target.c (target_section_by_addr, memory_xfer_partial_1):
2492 Update.
2493 * target-section.h (struct target_section_table): Use
2494 std::vector.
2495 * symfile.h (build_section_addr_info_from_section_table): Take a
2496 target_section_table.
2497 * symfile.c (build_section_addr_info_from_section_table): Take a
2498 target_section_table.
2499 * solist.h (struct so_list) <sections>: Change type.
2500 <sections_end>: Remove.
2501 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
2502 (solib_contains_address_p): Update.
2503 * solib-svr4.c (scan_dyntag): Update.
2504 * solib-dsbt.c (scan_dyntag): Update.
2505 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2506 Update.
2507 * record-full.c (record_full_core_start, record_full_core_end):
2508 Remove.
2509 (record_full_core_sections): New global.
2510 (record_full_core_open_1, record_full_core_target::xfer_partial):
2511 Update.
2512 * exec.h (build_section_table, section_table_xfer_memory_partial)
2513 (add_target_sections): Take a target_section_table.
2514 * exec.c (exec_file_attach, clear_section_table): Update.
2515 (resize_section_table): Remove.
2516 (build_section_table, add_target_sections): Take a
2517 target_section_table.
2518 (add_target_sections_of_objfile, remove_target_sections)
2519 (exec_on_vfork): Update.
2520 (section_table_available_memory): Take a target_section_table.
2521 (section_table_read_available_memory): Update.
2522 (section_table_xfer_memory_partial): Take a target_section_table.
2523 (print_section_info, set_section_command)
2524 (exec_set_section_address, exec_target::has_memory): Update.
2525 * corelow.c (class core_target) <m_core_section_table,
2526 m_core_file_mappings>: Remove braces.
2527 <~core_target>: Remove.
2528 (core_target::core_target): Update.
2529 (core_target::~core_target): Remove.
2530 (core_target::build_file_mappings)
2531 (core_target::xfer_memory_via_mappings)
2532 (core_target::xfer_partial, core_target::info_proc_mappings):
2533 Update.
2534 * bfd-target.c (target_bfd::xfer_partial): Update.
2535 (target_bfd::target_bfd): Update.
2536 (target_bfd::~target_bfd): Remove.
2537
7b466b10
TT
25382020-10-12 Tom Tromey <tom@tromey.com>
2539
2540 * target.h (struct target_section, struct target_section_table):
2541 Move to target-section.h.
2542 * target-section.h: New file.
2543
87a37e5e
PA
25442020-10-12 Pedro Alves <pedro@palves.net>
2545
2546 PR exp/26602
2547 * valops.c (struct struct_field_searcher): New.
2548 (update_search_result): Rename to ...
2549 (struct_field_searcher::update_result): ... this. Simplify
2550 prototype. Record all found fields.
2551 (do_search_struct_field): Rename to ...
2552 (struct_field_searcher::search): ... this. Simplify prototype.
2553 Maintain stack of visited baseclass path. Call update_result for
2554 fields too. Keep searching fields in baseclasses instead of
2555 stopping at the first found field.
2556 (search_struct_field): Use struct_field_searcher. When looking
2557 for fields, report ambiguous access attempts.
2558
9370fd51
AB
25592020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
2560
2561 * frame.c (inside_main_func): Check full symbols as well as
2562 minimal symbols.
2563
59c8a30b
JB
25642020-10-09 Joel Brobecker <brobecker@adacore.com>
2565
2566 * ada-lang.c (advance_wild_match): Rewrite the function's
2567 description. Change the type of target0, t0 and t1 to char.
2568
7c184d33
TT
25692020-10-09 Tom Tromey <tromey@adacore.com>
2570
2571 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
2572
5c4258f4
TT
25732020-10-09 Tom Tromey <tromey@adacore.com>
2574
2575 * ada-lang.h (ada_encode): Return std::string.
2576 * ada-lang.c (ada_encode_1): Return std::string.
2577 (ada_encode): Likewise.
2578 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
2579 Update.
2580 * ada-exp.y (block_lookup, write_var_or_type): Update.
2581
3d87245c
HD
25822020-10-09 Hannes Domani <ssbssa@yahoo.de>
2583
2584 PR exp/26714
2585 * printcmd.c (print_formatted): Handle void results as
2586 unformatted prints.
2587
bbb826f5
AB
25882020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2589
2590 * arch/aarch32.c (aarch32_create_target_description): Release the
2591 target_desc_up as late as possible.
2592 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2593 * arch/amd64.c (amd64_create_target_description): Likewise.
2594 * arch/arc.c (arc_create_target_description): Return a
2595 target_desc_up, don't release it.
2596 * arch/arc.h (arc_create_target_description): Update declaration.
2597 (arc_lookup_target_description): Move target_desc_up into the
2598 cache, and return a borrowed pointer.
2599 * arch/arm.c (arm_create_target_description): Release the
2600 target_desc_up as late as possible.
2601 * arch/i386.c (i386_create_target_description): Likewise.
2602 * arch/riscv.h (riscv_create_target_description): Update
2603 declaration to match definition.
2604 * arch/tic6x.c (tic6x_create_target_description): Release the
2605 target_desc_up as late as possible.
2606
361cb219
AB
26072020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2608
2609 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
2610 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
2611
f5c4b229
JV
26122020-10-09 Jan Vrany <jan.vrany@labware.com>
2613
2614 * source.c (directory_command): Notify observers that "directories"
2615 parameter has changed.
2616
b2701685
TT
26172020-10-08 Tom Tromey <tom@tromey.com>
2618
2619 * cli/cli-cmds.c (print_disassembly): Style function name and
2620 addresses. Add _() wrappers.
2621
ada508b6
SV
26222020-10-08 Shahab Vahedi <shahab@synopsys.com>
2623
2624 * NEWS: Mention ARC support in GDBserver.
2625
51a948fd
AB
26262020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
2627
2628 * arch/aarch32.c (aarch32_create_target_description): Release
2629 unique_ptr returned from allocate_target_description.
2630 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2631 * arch/amd64.c (amd64_create_target_description): Likewise.
2632 * arch/arc.c (arc_create_target_description): Likewise.
2633 * arch/arm.c (arm_create_target_description): Likewise.
2634 * arch/i386.c (i386_create_target_description): Likewise.
2635 * arch/riscv.c (riscv_create_target_description): Update return
2636 type. Handle allocate_target_description returning a unique_ptr.
2637 (riscv_lookup_target_description): Update to handle unique_ptr.
2638 * arch/tic6x.c (tic6x_create_target_description): Release
2639 unique_ptr returned from allocate_target_description.
2640 * features/microblaze-with-stack-protect.c: Regenerate.
2641 * features/microblaze.c: Regenerate.
2642 * features/mips-dsp-linux.c: Regenerate.
2643 * features/mips-linux.c: Regenerate.
2644 * features/mips64-dsp-linux.c: Regenerate.
2645 * features/mips64-linux.c: Regenerate.
2646 * features/nds32.c: Regenerate.
2647 * features/nios2.c: Regenerate.
2648 * features/or1k.c: Regenerate.
2649 * features/rs6000/powerpc-32.c: Regenerate.
2650 * features/rs6000/powerpc-32l.c: Regenerate.
2651 * features/rs6000/powerpc-403.c: Regenerate.
2652 * features/rs6000/powerpc-403gc.c: Regenerate.
2653 * features/rs6000/powerpc-405.c: Regenerate.
2654 * features/rs6000/powerpc-505.c: Regenerate.
2655 * features/rs6000/powerpc-601.c: Regenerate.
2656 * features/rs6000/powerpc-602.c: Regenerate.
2657 * features/rs6000/powerpc-603.c: Regenerate.
2658 * features/rs6000/powerpc-604.c: Regenerate.
2659 * features/rs6000/powerpc-64.c: Regenerate.
2660 * features/rs6000/powerpc-64l.c: Regenerate.
2661 * features/rs6000/powerpc-7400.c: Regenerate.
2662 * features/rs6000/powerpc-750.c: Regenerate.
2663 * features/rs6000/powerpc-860.c: Regenerate.
2664 * features/rs6000/powerpc-altivec32.c: Regenerate.
2665 * features/rs6000/powerpc-altivec32l.c: Regenerate.
2666 * features/rs6000/powerpc-altivec64.c: Regenerate.
2667 * features/rs6000/powerpc-altivec64l.c: Regenerate.
2668 * features/rs6000/powerpc-e500.c: Regenerate.
2669 * features/rs6000/powerpc-e500l.c: Regenerate.
2670 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
2671 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
2672 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
2673 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
2674 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
2675 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
2676 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
2677 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
2678 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
2679 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
2680 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
2681 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
2682 * features/rs6000/powerpc-vsx32.c: Regenerate.
2683 * features/rs6000/powerpc-vsx32l.c: Regenerate.
2684 * features/rs6000/powerpc-vsx64.c: Regenerate.
2685 * features/rs6000/powerpc-vsx64l.c: Regenerate.
2686 * features/rs6000/rs6000.c: Regenerate.
2687 * features/rx.c: Regenerate.
2688 * features/s390-gs-linux64.c: Regenerate.
2689 * features/s390-linux32.c: Regenerate.
2690 * features/s390-linux32v1.c: Regenerate.
2691 * features/s390-linux32v2.c: Regenerate.
2692 * features/s390-linux64.c: Regenerate.
2693 * features/s390-linux64v1.c: Regenerate.
2694 * features/s390-linux64v2.c: Regenerate.
2695 * features/s390-te-linux64.c: Regenerate.
2696 * features/s390-tevx-linux64.c: Regenerate.
2697 * features/s390-vx-linux64.c: Regenerate.
2698 * features/s390x-gs-linux64.c: Regenerate.
2699 * features/s390x-linux64.c: Regenerate.
2700 * features/s390x-linux64v1.c: Regenerate.
2701 * features/s390x-linux64v2.c: Regenerate.
2702 * features/s390x-te-linux64.c: Regenerate.
2703 * features/s390x-tevx-linux64.c: Regenerate.
2704 * features/s390x-vx-linux64.c: Regenerate.
2705 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
2706 from allocate_target_description.
2707 * target-descriptions.c (allocate_target_description): Update
2708 return type.
2709 (print_c_tdesc::visit_pre): Release unique_ptr returned from
2710 allocate_target_description.
2711
485c47e5
TT
27122020-10-07 Tom Tromey <tromey@adacore.com>
2713
2714 * unittests/search-memory-selftests.c: New file.
2715 * Makefile.in (SELFTESTS_SRCS): Add
2716 unittests/search-memory-selftests.c.
2717
3a135a91
TT
27182020-10-07 Tom Tromey <tromey@adacore.com>
2719
2720 PR gdb/16930:
2721 * findcmd.c (_initialize_mem_search): Mention that the range is
2722 inclusive.
2723
4a72de73
TT
27242020-10-07 Tom Tromey <tromey@adacore.com>
2725
2726 * target.h (simple_search_memory): Don't declare.
2727 * target.c (simple_search_memory): Move to gdbsupport.
2728 (default_search_memory): Update.
2729 * remote.c (remote_target::search_memory): Update.
2730
a038ffd8
SM
27312020-10-07 Simon Marchi <simon.marchi@efficios.com>
2732
2733 * Makefile.in (COMPILE): Add CXXFLAGS.
2734 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
2735 (check-headers): Add CXXFLAGS.
2736
cc463201
AK
27372020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
2738
2739 * arc-linux-tdep.h: New file.
2740 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
2741 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
2742 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
2743 arc_linux_gregset, arc_linux_v2_regset,
2744 arc_linux_iterate_over_regset_sections,
2745 arc_linux_core_read_description): Implement.
2746 (arc_linux_init_osabi): Set iterate_over_regset_sections.
2747 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
2748 (arc_gdbarch_features_create): Add.
2749 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
2750
e4bd363f
SV
27512020-10-07 Shahab Vahedi <shahab@synopsys.com>
2752
2753 * arch/arc.h: Rename "arc_gdbarch_features" to
2754 "arc_arch_features".
2755 * arc-tdep.h: Likewise.
2756 * arc-tdep.c: Likewise.
2757
b68bef99
TBA
27582020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2759
2760 * infcmd.c (attach_command): Remove the redundant call to
2761 `clear_proceed_status`.
2762
4641551a
KR
27632020-10-07 Kamil Rytarowski <n54@gmx.com>
2764
2765 * nat/netbsd-nat.c (write_memory, read_memory): Update.
2766
91e5e8db
KR
27672020-10-07 Kamil Rytarowski <n54@gmx.com>
2768
2769 * nat/netbsd-nat.c (write_memory, read_memory): Add.
2770 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
2771 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
2772
64c03bdb
SM
27732020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
2774
2775 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
2776 (_initialize_break_catch_sig): Don't allocate array.
2777
31a8f60f
AB
27782020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
2779
2780 * symtab.c (find_pc_line): Return unmapped addresses when the
2781 requested address is also unmapped.
2782
9e6dbd8b
SM
27832020-10-05 Simon Marchi <simon.marchi@efficios.com>
2784
2785 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
2786 tui/tui-out.h.
2787
a1d217e8
SM
27882020-10-05 Simon Marchi <simon.marchi@efficios.com>
2789
2790 * amd64-windows-tdep.c (amd64_windows_return_value): Use
2791 type::is_vector instead of TYPE_VECTOR.
2792
7d144117
SM
27932020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
2794
2795 * auto-load.c (auto_load_objfile_script_1): Don't use
2796 debugfile_holder as temporary variable when stripping drive
2797 letter.
2798
cd096ec8
HD
27992020-10-05 Hannes Domani <ssbssa@yahoo.de>
2800
2801 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
2802 Add TYPE_CODE_COMPLEX.
2803 (amd64_windows_return_value): Fix types returned via XMM0.
2804
b58e7f72
AH
28052020-10-05 Alan Hayward <alan.hayward@arm.com>
2806
2807 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
2808 AArch64/ARM maintainers.
2809
8d378f27
SM
28102020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
2811
2812 * NEWS: Mention set/show debug event-loop.
2813
d5519913
TT
28142020-10-02 Tom Tromey <tromey@adacore.com>
2815
2816 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
2817 REG_EXTENDED.
2818
18b67edc
SM
28192020-10-02 Simon Marchi <simon.marchi@efficios.com>
2820
2821 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
2822 * procfs.c (procfs_inferior_created): Remove.
2823 (_initialize_procfs): Don't register procfs_inferior_created.
2824
6b01403b
SM
28252020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2826
2827 * async-event.c (invoke_async_signal_handlers): Add debug
2828 print.
2829 (check_async_event_handlers): Likewise.
2830 * event-top.c (show_debug_event_loop): New function.
2831 (_initialize_event_top): Register "set debug event-loop"
2832 setting.
2833
ba988419
SM
28342020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2835
2836 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
2837 * debug.h: Remove.
2838 * infrun.c: Include gdbsupport/common-debug.h.
2839 * linux-nat.c: Likewise.
2840
db20ebdf
SM
28412020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2842
2843 * async-event.h (create_async_signal_handler): Add name
2844 parameter.
2845 (create_async_event_handler): Likewise.
2846 * async-event.c (struct async_signal_handler) <name>: New field.
2847 (struct async_event_handler) <name>: New field.
2848 (create_async_signal_handler): Assign name.
2849 (create_async_event_handler): Assign name.
2850 * event-top.c (async_init_signals): Pass name when creating
2851 handler.
2852 * infrun.c (_initialize_infrun): Likewise.
2853 * record-btrace.c (record_btrace_push_target): Likewise.
2854 * record-full.c (record_full_open): Likewise.
2855 * remote-notif.c (remote_notif_state_allocate): Likewise.
2856 * remote.c (remote_target::open_1): Likewise.
2857 * tui/tui-win.c (tui_initialize_win): Likewise.
2858
2554f6f5
SM
28592020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2860
2861 * async-event.c (initialize_async_signal_handlers): Pass name to
2862 add_file_handler
2863 * event-top.c (ui_register_input_event_handler): Likewise.
2864 * linux-nat.c (linux_nat_target::async): Likewise.
2865 * run-on-main-thread.c (_initialize_run_on_main_thread):
2866 Likewise
2867 * ser-base.c (reschedule): Likewise.
2868 (ser_base_async): Likewise.
2869 * tui/tui-io.c: Likewise.
2870 * top.h (struct ui) <num>: New field.
2871 * top.c (highest_ui_num): New variable.
2872 (ui::ui): Initialize num.
2873
a7aba266
SM
28742020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2875
2876 * observable.h <inferior_created>: Remove parameters. Update all
2877 listeners.
2878 * inferior.h (post_create_inferior): Remove target parameter.
2879 Update all callers.
2880
048fde1e 28812020-10-02 Nitika Achra <Nitika.Achra@amd.com>
2882
2883 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
2884 and DW_MACRO_undef_strx.
2885 (dwarf_decode_macros): Likewise
2886 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
2887 which is the value of DW_AT_str_offsets_base.
2888 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
2889 str_offsets_base.
2890
064280be
KR
28912020-10-01 Kamil Rytarowski <n54@gmx.com>
2892
2893 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
2894
6ff33035
KR
28952020-10-01 Kamil Rytarowski <n54@gmx.com>
2896
2897 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
2898 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
2899
1eb6eb79
KR
29002020-10-01 Kamil Rytarowski <n54@gmx.com>
2901
2902 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
2903
95eb9e54
TV
29042020-09-30 Tom de Vries <tdevries@suse.de>
2905
2906 PR symtab/26683
2907 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
2908
cae21f8e
TT
29092020-09-30 Tom Tromey <tromey@adacore.com>
2910
2911 * dwarf2/read.c (handle_variant): Use constant_value.
2912
529908cb
TT
29132020-09-29 Tom Tromey <tom@tromey.com>
2914
2915 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
2916 (read_file_scope, dwarf2_get_pc_bounds)
2917 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
2918 (read_structure_type, handle_struct_member_die)
2919 (read_enumeration_type, read_array_type, read_set_type)
2920 (read_tag_pointer_type, read_tag_reference_type)
2921 (read_subroutine_type, read_base_type, read_subrange_type)
2922 (read_full_die_1, partial_die_info::read)
2923 (partial_die_info::read, by, new_symbol)
2924 (dwarf2_const_value_data, dwarf2_const_value_attr)
2925 (dump_die_shallow, dwarf2_fetch_constant_bytes)
2926 (prepare_one_comp_unit): Update.
2927 * dwarf2/attribute.h (DW_UNSND): Remove.
2928
c45bc3f8
TT
29292020-09-29 Tom Tromey <tom@tromey.com>
2930
2931 * dwarf2/read.c (read_func_scope, prototyped_function_p)
2932 (read_subroutine_type, partial_die_info::read)
2933 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
2934 (dwarf2_add_member_fn): Update.
2935 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
2936 * dwarf2/attribute.c (attribute::as_boolean): New method.
2937
23dca5c3
TT
29382020-09-29 Tom Tromey <tom@tromey.com>
2939
2940 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
2941 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
2942 method.
2943 * dwarf2/attribute.c (attribute::as_virtuality): New method.
2944
52c14d11
TT
29452020-09-29 Tom Tromey <tom@tromey.com>
2946
2947 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
2948 the attribute's form.
2949
e8e5c158
TT
29502020-09-29 Tom Tromey <tom@tromey.com>
2951
2952 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
2953 (dwarf2_add_member_fn): Update.
2954 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
2955 * dwarf2/attribute.c (attribute::defaulted): New method, from
2956 is_valid_DW_AT_defaulted.
2957
d4df075e
TT
29582020-09-29 Tom Tromey <tom@tromey.com>
2959
2960 * dwarf2/read.c (dw2_get_file_names_reader)
2961 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
2962 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
2963 (dwarf2_symbol_mark_computed): Use as_unsigned.
2964 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
2965 method.
2966 <form_is_section_offset>: Update comment.
2967
bf23a268
TT
29682020-09-29 Tom Tromey <tom@tromey.com>
2969
2970 * dwarf2/read.c (dwarf2_access_attribute): Rename from
2971 dwarf2_default_access_attribute. Look up attribute.
2972 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
2973 Update.
2974
7a5f294d
TT
29752020-09-29 Tom Tromey <tom@tromey.com>
2976
2977 * dwarf2/read.c (skip_one_die): Update.
2978 (read_full_die_1): Change how reprocessing is done.
2979 (partial_die_info::read): Update.
2980 (read_attribute_value): Remove need_reprocess parameter.
2981 (read_attribute): Likewise.
2982 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
2983 New method.
2984
36d378cf
TT
29852020-09-29 Tom Tromey <tom@tromey.com>
2986
2987 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
2988 (dwarf2_const_value_attr, dump_die_shallow)
2989 (dwarf2_fetch_constant_bytes): Update.
2990 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
2991 comment.
2992 <set_address>: New method.
2993 (DW_ADDR): Remove.
2994 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
2995 (attribute::as_string, attribute::as_address): Add assert.
2996
fe56917a
TT
29972020-09-29 Tom Tromey <tom@tromey.com>
2998
2999 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
3000 (read_attribute_reprocess, read_attribute_value): Update.
3001 (read_attribute): Clear requires_reprocessing.
3002 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
3003 form_requires_reprocessing>: New methods.
3004 <string_init>: Clear requires_reprocessing.
3005 <set_unsigned_reprocess>: New method.
3006 <name>: Shrink by one bit.
3007 <requires_reprocessing>: New member.
3008 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
3009 method.
3010
414ad644
TT
30112020-09-29 Tom Tromey <tom@tromey.com>
3012
3013 * dwarf2/read.c (read_attribute_value): Update.
3014 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
3015 set_unsigned>: New methods.
3016 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
3017
1bc397c5
TT
30182020-09-29 Tom Tromey <tom@tromey.com>
3019
3020 * dwarf2/read.c (get_alignment, read_array_order)
3021 (read_attribute_value, dwarf2_const_value_attr)
3022 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
3023 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
3024 New methods.
3025 (DW_SND): Remove.
3026
630ed6b9
TT
30272020-09-29 Tom Tromey <tom@tromey.com>
3028
3029 * dwarf2/read.c (read_attribute_value, lookup_die_type)
3030 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
3031 Update.
3032 * dwarf2/attribute.h (struct attribute) <as_signature,
3033 set_signature>: New methods.
3034 (DW_SIGNATURE): Remove.
3035
9d2246fc
TT
30362020-09-29 Tom Tromey <tom@tromey.com>
3037
3038 * dwarf2/read.c (read_call_site_scope)
3039 (handle_data_member_location, dwarf2_add_member_fn)
3040 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3041 (partial_die_info::read, read_attribute_value)
3042 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
3043 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
3044 (dwarf2_symbol_mark_computed): Update.
3045 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
3046 methods.
3047 (DW_BLOCK): Remove.
3048 * dwarf2/attribute.c (attribute::form_is_block): Add
3049 DW_FORM_data16.
3050
c6481205
TT
30512020-09-29 Tom Tromey <tom@tromey.com>
3052
3053 * dwarf2/read.c (read_cutu_die_from_dwo)
3054 (read_attribute_reprocess, read_attribute_value, read_attribute)
3055 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
3056 (dwarf2_fetch_constant_bytes): Update.
3057 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
3058 <set_string_noncanonical, set_string_canonical>: New methods.
3059 <string_is_canonical>: Update comment.
3060 <canonical_string_p>: Add assert.
3061 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
3062 * dwarf2/attribute.c (attribute::form_is_string): New method.
3063 (attribute::string): Use it.
3064
3b64bf15
TT
30652020-09-29 Tom Tromey <tom@tromey.com>
3066
3067 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
3068 (dump_die_shallow): Use canonical_string_p.
3069 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
3070 method.
3071
2c830f54
TT
30722020-09-29 Tom Tromey <tom@tromey.com>
3073
3074 * dwarf2/read.c (partial_die_info::read)
3075 (dwarf2_const_value_attr, anonymous_struct_prefix, )
3076 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
3077 attribute::as_string.
3078
6c412691
TT
30792020-09-29 Tom Tromey <tom@tromey.com>
3080
3081 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
3082 DW_ADDR.
3083 (attribute::string): Don't use DW_STRING.
3084 (attribute::get_ref_die_offset): Don't use DW_UNSND.
3085 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
3086
95f982e5
TT
30872020-09-29 Tom Tromey <tom@tromey.com>
3088
3089 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
3090 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
3091 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
3092 * dwarf2/attribute.h (struct attribute): Rename methods.
3093 * dwarf2/attribute.c (attribute::as_address): Rename from
3094 value_as_address.
3095 (attribute::as_string): Rename from value_as_string.
3096
f800b00e
TT
30972020-09-29 Tom Tromey <tom@tromey.com>
3098
3099 * dwarf2/read.c (partial_die_info::read) <case
3100 DW_AT_linkage_name>: Use value_as_string.
3101 (dwarf2_string_attr): Use value_as_string.
3102 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
3103 method.
3104 * dwarf2/attribute.c (attribute::value_as_string): New method.
3105
de38d64a
PA
31062020-09-29 Pedro Alves <pedro@palves.net>
3107
3108 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
3109 defined before using '#pragma GCC diagnostic' instead of checking
3110 __clang__.
3111
9aed480c
TT
31122020-09-28 Tom Tromey <tom@tromey.com>
3113
3114 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
3115 (handle_signal_stop): Update.
3116 * procfs.c (procfs_target::insert_watchpoint): Update.
3117 * target.h (target_have_steppable_watchpoint): Now a function.
3118
8a3ecb79
TT
31192020-09-28 Tom Tromey <tom@tromey.com>
3120
3121 * infrun.c (set_schedlock_func): Update.
3122 * target.h (target_can_lock_scheduler): Now a function.
3123
55f6301a
TT
31242020-09-28 Tom Tromey <tom@tromey.com>
3125
3126 * inferior.h (class inferior) <has_execution>: Update.
3127 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
3128 * valops.c (find_function_in_inferior)
3129 (value_allocate_space_in_inferior): Update.
3130 * top.c (kill_or_detach): Update.
3131 * target.c (target_preopen, set_target_permissions): Update.
3132 (target_has_execution_current): Remove.
3133 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
3134 Update.
3135 * solib.c (update_solib_list, reload_shared_libraries): Update.
3136 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
3137 * solib-dsbt.c (enable_break): Update.
3138 * score-tdep.c (score7_fetch_inst): Update.
3139 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
3140 Update.
3141 * remote.c (remote_target::start_remote)
3142 (remote_target::remote_check_symbols, remote_target::open_1)
3143 (remote_target::remote_detach_1, remote_target::verify_memory)
3144 (remote_target::xfer_partial, remote_target::read_description)
3145 (remote_target::get_min_fast_tracepoint_insn_len): Update.
3146 * record-full.c (record_full_open_1): Update.
3147 * record-btrace.c (record_btrace_target_open): Update.
3148 * objc-lang.c (lookup_objc_class, lookup_child_selector)
3149 (value_nsstring): Update.
3150 * linux-thread-db.c (add_thread_db_info)
3151 (thread_db_find_new_threads_silently, check_thread_db_callback)
3152 (try_thread_db_load_1, record_thread): Update.
3153 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
3154 Update.
3155 * linux-fork.c (checkpoint_command): Update.
3156 * infrun.c (set_non_stop, set_observer_mode)
3157 (check_multi_target_resumption, for_each_just_stopped_thread)
3158 (maybe_remove_breakpoints, normal_stop)
3159 (class infcall_suspend_state): Update.
3160 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
3161 (info_program_command, attach_command): Update.
3162 * infcall.c (call_function_by_hand_dummy): Update.
3163 * inf-loop.c (inferior_event_handler): Update.
3164 * gcore.c (gcore_command, derive_heap_segment): Update.
3165 * exec.c (exec_file_command): Update.
3166 * eval.c (evaluate_subexp): Update.
3167 * compile/compile.c (compile_to_object): Update.
3168 * cli/cli-dump.c (restore_command): Update.
3169 * breakpoint.c (update_watchpoint)
3170 (update_inserted_breakpoint_locations)
3171 (insert_breakpoint_locations, get_bpstat_thread): Update.
3172 * target.h (target_has_execution): Remove macro.
3173 (target_has_execution_current): Don't declare.
3174 (target_has_execution): Rename from target_has_execution_1. Add
3175 argument default.
3176
05374cfd
TT
31772020-09-28 Tom Tromey <tom@tromey.com>
3178
3179 * mi/mi-main.c (exec_reverse_continue)
3180 (mi_cmd_list_target_features): Update.
3181 * infrun.c (set_exec_direction_func): Update.
3182 * target.c (default_execution_direction): Update.
3183 * reverse.c (exec_reverse_once): Update.
3184 * target.h (target_can_execute_reverse): Now a function.
3185
9dccd06e
TT
31862020-09-28 Tom Tromey <tom@tromey.com>
3187
3188 * tui/tui-regs.c (tui_get_register)
3189 (tui_data_window::show_registers): Update.
3190 * thread.c (scoped_restore_current_thread::restore)
3191 (scoped_restore_current_thread::scoped_restore_current_thread):
3192 Update.
3193 * regcache-dump.c (regcache_print): Update.
3194 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
3195 Update.
3196 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
3197 * mep-tdep.c (current_me_module, current_options): Update.
3198 * linux-thread-db.c (thread_db_load): Update.
3199 * infcmd.c (registers_info, info_vector_command)
3200 (info_float_command): Update.
3201 * ia64-tdep.c (ia64_frame_prev_register)
3202 (ia64_sigtramp_frame_prev_register): Update.
3203 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
3204 * gcore.c (derive_stack_segment): Update.
3205 * frame.c (get_current_frame, has_stack_frames): Update.
3206 * findvar.c (language_defn::read_var_value): Update.
3207 * arm-tdep.c (arm_pc_is_thumb): Update.
3208 * target.c (target_has_registers): Rename from
3209 target_has_registers_1.
3210 * target.h (target_has_registers): Remove macro.
3211 (target_has_registers): Rename from target_has_registers_1.
3212
841de120
TT
32132020-09-28 Tom Tromey <tom@tromey.com>
3214
3215 * windows-tdep.c (tlb_make_value): Update.
3216 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3217 * thread.c (scoped_restore_current_thread::restore)
3218 (scoped_restore_current_thread::scoped_restore_current_thread)
3219 (thread_command): Update.
3220 * stack.c (backtrace_command_1, frame_apply_level_command)
3221 (frame_apply_all_command, frame_apply_command): Update.
3222 * infrun.c (siginfo_make_value, restore_infcall_control_state):
3223 Update.
3224 * gcore.c (derive_stack_segment): Update.
3225 * frame.c (get_current_frame, has_stack_frames): Update.
3226 * auxv.c (info_auxv_command): Update.
3227 * ada-tasks.c (ada_build_task_list): Update.
3228 * target.c (target_has_stack): Rename from target_has_stack_1.
3229 * target.h (target_has_stack): Remove macro.
3230 (target_has_stack): Rename from target_has_stack_1.
3231
a739972c
TT
32322020-09-28 Tom Tromey <tom@tromey.com>
3233
3234 * target.c (target_has_memory): Rename from target_has_memory_1.
3235 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3236 * thread.c (scoped_restore_current_thread::restore)
3237 (scoped_restore_current_thread::scoped_restore_current_thread):
3238 Update.
3239 * frame.c (get_current_frame, has_stack_frames): Update.
3240 * target.h (target_has_memory): Remove macro.
3241 (target_has_memory): Rename from target_has_memory_1.
3242
5b8a4776
TT
32432020-09-28 Tom Tromey <tom@tromey.com>
3244
3245 * target.c (target_has_all_memory_1): Remove.
3246 * target.h (target_has_all_memory): Remove define.
3247 (target_has_all_memory_1): Don't declare.
3248
bd356ec6
SM
32492020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
3250
3251 * ser-base.c: Adjust comments formatting.
3252
2c72d5e5
TT
32532020-09-27 Tom Tromey <tom@tromey.com>
3254
3255 PR tui/25342:
3256 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
3257
35a98237
TT
32582020-09-27 Tom Tromey <tom@tromey.com>
3259
3260 PR tui/25342:
3261 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
3262
9e820dec
TT
32632020-09-27 Tom Tromey <tom@tromey.com>
3264
3265 * unittests/tui-selftests.c: Update.
3266 * tui/tui-winsource.h (struct tui_source_window_base)
3267 <extra_margin, show_line_number, refresh_pad>: New methods.
3268 <m_max_length, m_pad>: New members.
3269 (tui_copy_source_line): Update.
3270 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
3271 first_col, line_width, ndigits parameters. Add length.
3272 (tui_source_window_base::show_source_line): Write to pad. Line
3273 number now 0-based.
3274 (tui_source_window_base::refresh_pad): New method.
3275 (tui_source_window_base::show_source_content): Write to pad. Call
3276 refresh_pad.
3277 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
3278 not refill.
3279 (tui_source_window_base::update_exec_info): Call
3280 show_line_number.
3281 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
3282 method.
3283 <m_digits>: New member.
3284 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
3285 and m_max_length.
3286 (tui_source_window::show_line_number): New method.
3287 * tui/tui-io.h (tui_puts): Fix comment.
3288 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
3289 m_max_length.
3290
c15c15c8
TT
32912020-09-27 Tom Tromey <tom@tromey.com>
3292
3293 * tui/tui-winsource.c
3294 (tui_source_window_base::set_is_exec_point_at): Don't call
3295 show_source_line.
3296
149830c1
TT
32972020-09-27 Tom Tromey <tom@tromey.com>
3298
3299 * python/py-tui.c (class tui_py_window) <refresh_window>: New
3300 method.
3301 <erase>: Update.
3302 <cursor_x, cursor_y>: Remove.
3303 <m_inner_window>: New member.
3304 (tui_py_window::rerender): Create inner window.
3305 (tui_py_window::output): Write to inner window.
3306
8f9929bb
GR
33072020-09-26 Gareth Rees <grees@undo.io> (tiny change)
3308
3309 PR python/26586
3310 * cli/cli-script.c (execute_control_commands): don't set
3311 instream to nullptr here as this breaks the from_tty argument
3312 to gdb.execute in Python.
3313 (execute_user_command): set instream to nullptr here instead.
3314
956bdb59
SM
33152020-09-25 Simon Marchi <simon.marchi@efficios.com>
3316
3317 * infrun.h (infrun_debug_printf): Fix formatting.
3318 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
3319
3b93626b
SJ
33202020-09-25 Saagar Jha <saagar@saagarjha.com>
3321
3322 * compile/compile-object-load.h (struct munmap_list): Add
3323 explicitly-defined move constructor.
3324
b551a89f
TT
33252020-09-24 Tom Tromey <tromey@adacore.com>
3326
3327 PR tui/26638:
3328 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
3329 method.
3330 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
3331 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
3332 (tui_prev_win): Rewrite.
3333
99bb393f
HD
33342020-09-23 Hannes Domani <ssbssa@yahoo.de>
3335
3336 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
3337 in WOW64 processes as SIGINT.
3338 * nat/windows-nat.h: Make wow64_process a shared variable.
3339 * windows-nat.c: Remove static wow64_process variable.
3340
20a5fcbd
TT
33412020-09-23 Tom Tromey <tom@tromey.com>
3342
3343 PR symtab/25470:
3344 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
3345 offset and bit size.
3346 * printcmd.c (print_scalar_formatted): Handle zero-length
3347 integer.
3348 (print_scalar_formatted): Use bit_size_differs_p.
3349 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
3350 constant.
3351 (union type_specific): <int_stuff>: New member.
3352 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
3353 methods.
3354 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
3355 TYPE_SPECIFIC_FIELD.
3356 (recursive_dump_type, copy_type_recursive): Update.
3357 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
3358 DW_AT_data_bit_offset.
3359
bac51ab7
TT
33602020-09-23 Tom Tromey <tom@tromey.com>
3361
3362 * utils.h (class gdb_argv): Add move operators.
3363 <append>: New methods.
3364 * compile/compile.c (build_argc_argv): Remove.
3365 (compile_args_argc): Remove.
3366 (compile_args_argv): Change type.
3367 (set_compile_args): Simplify.
3368 (append_args): Remove.
3369 (filter_args): Remove argcp parameter.
3370 (get_args): Return gdb_argv. Simplify.
3371 (compile_to_object): Update.
3372
92677124
TT
33732020-09-23 Tom Tromey <tom@tromey.com>
3374
3375 * compile/compile-object-run.c (do_module_cleanup)
3376 <~do_module_cleanup> :Remove.
3377 (do_module_cleanup): Update.
3378 * compile/compile-object-load.h (struct munmap_list): Add move
3379 assignment operator.
3380 <source_file>: Now a std::string.
3381 <munmap_list>: Rename. No longer a pointer.
3382 * compile/compile-object-load.c (struct setup_sections_data): Add
3383 constructor.
3384 <setup_one_section>: Declare.
3385 <munmap_list>: Move earlier.
3386 <m_bfd>: New member.
3387 <m_last_size, m_last_section_first, m_last_prot,
3388 m_last_max_alignment>: Rename, add initializers where needed.
3389 (setup_sections_data::setup_one_section): Rename from
3390 setup_sections. Update.
3391 (compile_object_load): Update. Don't use bfd_map_over_sections.
3392
e616f60a
TT
33932020-09-23 Tom Tromey <tom@tromey.com>
3394
3395 * compile/compile-object-run.c (struct do_module_cleanup): Add
3396 parameters to constructor. Update destructor.
3397 <source_file, scope, scope_data, out_value_type, out_value_addr,
3398 munmap_list_head, objfile_name_string>: Remove.
3399 <module>: New member.
3400 (do_module_cleanup): Update.
3401 (compile_object_run): Update.
3402
e947a848
TT
34032020-09-23 Tom Tromey <tom@tromey.com>
3404
3405 * compile/compile.c (eval_compile_command): Update.
3406 * compile/compile-object-run.h (compile_object_run): Take a
3407 compile_module_up.
3408 * compile/compile-object-run.c (compile_object_run): Take a
3409 compile_module_up.
3410 * compile/compile-object-load.h (struct compile_module): Add
3411 constructor, destructor.
3412 (compile_module_up): New typedef.
3413 (compile_object_load): Return compile_object_up.
3414 * compile/compile-object-load.c (compile_object_load): Return
3415 compile_module_up.
3416
0dbf6ee6
TT
34172020-09-23 Tom Tromey <tom@tromey.com>
3418
3419 * compile/compile-object-run.c (struct do_module_cleanup): Add
3420 constructor, destructor.
3421 <objfile_name_string>: Don't use struct hack.
3422 (do_module_cleanup): Use delete.
3423 (compile_object_run): Use new.
3424
ebe824f5
TT
34252020-09-23 Tom Tromey <tom@tromey.com>
3426
3427 * compile/compile-cplus-types.c
3428 (compile_cplus_convert_struct_or_union): Use std::vector.
3429 (compile_cplus_convert_func): Likewise.
3430 * compile/compile-c-types.c (convert_func): Use std::vector.
3431
5dd918d9
TT
34322020-09-21 Tom Tromey <tromey@adacore.com>
3433
3434 * sparc-tdep.c (sparc32_skip_prologue): Use
3435 skip_prologue_using_sal.
3436
5486c517
TT
34372020-09-19 Tom Tromey <tom@tromey.com>
3438
3439 * symfile.c (add_section_size_callback): Remove.
3440 (load_one_section): Rename from load_section_callback. Change
3441 parameters.
3442 (generic_load): Use foreach.
3443
8a6bb1d1
TT
34442020-09-19 Tom Tromey <tom@tromey.com>
3445
3446 * exec.c (add_to_section_table): Remove.
3447 (build_section_table): Use foreach.
3448
08f93a1a
TT
34492020-09-19 Tom Tromey <tom@tromey.com>
3450
3451 * elfread.c (elf_locate_sections): Change parameters.
3452 (elf_symfile_read): Use foreach.
3453
03cd72b8
TT
34542020-09-19 Tom Tromey <tom@tromey.com>
3455
3456 * cli/cli-dump.c (struct callback_data): Remove.
3457 (restore_one_section): Rename from restore_section_callback.
3458 Change parameters.
3459 (restore_binary_file): Change parameters.
3460 (restore_command): Use foreach.
3461
f4f2b85f
TT
34622020-09-19 Tom Tromey <tom@tromey.com>
3463
3464 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
3465 (gcore_copy_callback): Likewise.
3466 (gcore_memory_sections): Use foreach.
3467
b35c1d1c
TT
34682020-09-19 Tom Tromey <tom@tromey.com>
3469
3470 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
3471 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
3472 parameters.
3473 (generic_elf_osabi_sniffer): Use foreach.
3474 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
3475 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
3476
5bb6e9dd
TT
34772020-09-19 Tom Tromey <tom@tromey.com>
3478
3479 * dwarf2/read.c (locate_dwz_sections): Change parameters.
3480 (dwarf2_get_dwz_file): Use foreach.
3481 (dwarf2_locate_dwo_sections): Change parameters.
3482 (open_and_init_dwo_file): Use foreach.
3483 (dwarf2_locate_common_dwp_sections): Change parameters.
3484 (open_and_init_dwp_file): Use foreach.
3485
ad7277da
TT
34862020-09-19 Tom Tromey <tom@tromey.com>
3487
3488 * symfile.h: (find_lowest_section): Don't declare.
3489 * symfile.c (find_lowest_section): Now static. Change
3490 parameters.
3491 (struct place_section_arg): Remove.
3492 (place_section): Change parameters.
3493 (addr_info_make_relative): Use foreach.
3494 (symfile_dummy_outputs): Remove.
3495 (default_symfile_relocate): Use foreach.
3496
cb814f2e
TT
34972020-09-19 Tom Tromey <tom@tromey.com>
3498
3499 * objfiles.c (add_to_objfile_sections): Rename from
3500 add_to_objfile_sections_full.
3501 (add_to_objfile_sections): Remove.
3502 (build_objfile_section_table): Use foreach.
3503
3cabfd26
TT
35042020-09-19 Tom Tromey <tom@tromey.com>
3505
3506 * stap-probe.c (get_stap_base_address_1): Remove.
3507 (get_stap_base_address): Use foreach.
3508
1ce51eb5
TT
35092020-09-19 Tom Tromey <tom@tromey.com>
3510
3511 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
3512 parameters.
3513 (gdb_bfd_close_or_warn): Use foreach.
3514
a190fabb
TT
35152020-09-19 Tom Tromey <tom@tromey.com>
3516
3517 * corelow.c (add_to_thread_list): Change parameters.
3518 (core_target_open): Use foreach.
3519
cafb0d81
TT
35202020-09-19 Tom Tromey <tom@tromey.com>
3521
3522 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
3523 existing function.
3524
c8d5abea
AB
35252020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3526
3527 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
3528 for arrays.
3529
6d816919
AB
35302020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3531
3532 * eval.c: Remove 'f-lang.h' include.
3533 (value_f90_subarray): Moved to f-lang.c.
3534 (eval_call): Renamed to...
3535 (evaluate_subexp_do_call): ...this, is no longer static, header
3536 comment moved into header file.
3537 (evaluate_funcall): Update call to eval_call.
3538 (skip_undetermined_arglist): Moved to f-lang.c.
3539 (fortran_value_subarray): Likewise.
3540 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3541 moved to evaluate_subexp_f.
3542 (calc_f77_array_dims): Moved to f-lang.c
3543 * expprint.c (print_subexp_funcall): New function.
3544 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3545 moved to print_subexp_f, OP_FUNCALL uses new function.
3546 (dump_subexp_body_funcall): New function.
3547 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
3548 moved to dump_subexp_f, OP_FUNCALL uses new function.
3549 * expression.h (evaluate_subexp_do_call): Declare.
3550 * f-lang.c (value_f90_subarray): Moved from eval.c.
3551 (skip_undetermined_arglist): Likewise.
3552 (calc_f77_array_dims): Likewise.
3553 (fortran_value_subarray): Likewise.
3554 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
3555 (operator_length_f): Likewise.
3556 (print_subexp_f): Likewise.
3557 (dump_subexp_body_f): Likewise.
3558 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
3559 declaration of this operation to here.
3560 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
3561 support moved to operator_length_f.
3562 * parser-defs.h (dump_subexp_body_funcall): Declare.
3563 (print_subexp_funcall): Declare.
3564 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
3565 fortran-operator.def.
3566
8c37706a
AB
35672020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3568
3569 * eval.c (fortran_value_subarray): New function, content is taken
3570 from...
3571 (evaluate_subexp_standard): ...here, in two places. Now arrays
3572 and strings both call the new function.
3573 (calc_f77_array_dims): Add header comment, handle strings.
3574
14f9473c
VC
35752020-09-18 Victor Collod <vcollod@nvidia.com>
3576
3577 PR gdb/26635
3578 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
3579 (i386_analyze_prologue): Call i386_skip_endbr.
3580
b60cea74
TT
35812020-09-18 Tom Tromey <tromey@adacore.com>
3582
3583 * windows-nat.c (struct windows_nat_target) <wait>: Update.
3584 (windows_nat_target::wait): Update.
3585 * target/wait.h (enum target_wait_flag): New. Use
3586 DEF_ENUM_FLAGS_TYPE.
3587 * target/target.h (target_wait): Change type of options.
3588 * target.h (target_options_to_string, default_target_wait):
3589 Update.
3590 (struct target_ops) <wait>: Change type of options.
3591 * target.c (target_wait, default_target_wait, do_option): Change
3592 type of "options".
3593 (target_options_to_string): Likewise.
3594 * target-delegates.c: Rebuild.
3595 * target-debug.h (target_debug_print_target_wait_flags): Rename
3596 from target_debug_print_options.
3597 * sol-thread.c (class sol_thread_target) <wait>: Update.
3598 (sol_thread_target::wait): Update.
3599 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
3600 (rs6000_nat_target::wait): Update.
3601 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
3602 Update.
3603 (remote_target::wait_ns, remote_target::wait_as): Change type of
3604 "options".
3605 (remote_target::wait): Update.
3606 * remote-sim.c (struct gdbsim_target) <wait>: Update.
3607 (gdbsim_target::wait): Update.
3608 * record-full.c (class record_full_base_target) <wait>: Update.
3609 (record_full_wait_1): Change type of "options".
3610 (record_full_base_target::wait): Update.
3611 * record-btrace.c (class record_btrace_target) <wait>: Update.
3612 (record_btrace_target::wait): Update.
3613 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
3614 Update.
3615 (ravenscar_thread_target::wait): Update.
3616 * procfs.c (class procfs_target) <wait>: Update.
3617 (procfs_target::wait): Update.
3618 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
3619 * obsd-nat.c (obsd_nat_target::wait): Update.
3620 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
3621 (nto_procfs_target::wait): Update.
3622 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
3623 * nbsd-nat.c (nbsd_wait): Change type of "options".
3624 (nbsd_nat_target::wait): Update.
3625 * linux-thread-db.c (class thread_db_target) <wait>: Update.
3626 (thread_db_target::wait): Update.
3627 * linux-nat.h (class linux_nat_target) <wait>: Update.
3628 * linux-nat.c (linux_nat_target::wait): Update.
3629 (linux_nat_wait_1): Update.
3630 * infrun.c (do_target_wait_1, do_target_wait): Change type of
3631 "options".
3632 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
3633 * inf-ptrace.c (inf_ptrace_target::wait): Update.
3634 * go32-nat.c (struct go32_nat_target) <wait>: Update.
3635 (go32_nat_target::wait): Update.
3636 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
3637 * gnu-nat.c (gnu_nat_target::wait): Update.
3638 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
3639 * fbsd-nat.c (fbsd_nat_target::wait): Update.
3640 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
3641 * darwin-nat.c (darwin_nat_target::wait): Update.
3642 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
3643 (bsd_uthread_target::wait): Update.
3644 * aix-thread.c (class aix_thread_target) <wait>: Update.
3645 (aix_thread_target::wait): Update.
3646
0295dde6
AB
36472020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
3648
3649 * compile/compile-object-run.c (create_copied_type_recursive): New
3650 function.
3651 (compile_object_run): Use new function.
3652
d3483b43
JT
36532020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
3654
3655 * NEWS: Mention x86_64 Cygwin core file support.
3656
e7d612ad
JT
36572020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3658
3659 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
3660 (core_process_module_section): Handle NOTE_INFO_MODULE64.
3661
aff9d387
JT
36622020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3663
62a5151b
JT
3664 * windows-tdep.h: Add prototypes.
3665 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
3666 (i386_windows_core_pid_to_str): Move and rename ...
3667 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
3668 (windows_core_pid_to_str): ... and here.
3669 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
3670
36712020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
3672 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
3673 (amd64_windows_init_abi_common): ... and register.
3674
7d155da3
JT
36752020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3676
3677 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
3678 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
3679
e8ef12b9
PA
36802020-09-18 Pedro Alves <pedro@palves.net>
3681
3682 PR gdb/26631
3683 * thread.c (thread_find_command): Switch inferior before calling
3684 target methods.
3685
c1e1314d
TT
36862020-09-17 Tom Tromey <tromey@adacore.com>
3687
3688 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
3689 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
3690 (tdesc_arch_data_up): New typedef.
3691 (tdesc_use_registers, tdesc_data_alloc): Update.
3692 (tdesc_data_cleanup): Don't declare.
3693 * target-descriptions.c (tdesc_data_alloc): Return a
3694 tdesc_arch_data_up.
3695 (tdesc_arch_data_deleter::operator()): Rename from
3696 tdesc_data_cleanup. Change argument type.
3697 (tdesc_use_registers): Change early_data to an rvalue reference.
3698 (tdesc_use_registers): Don't use delete.
3699 * sparc-tdep.c (sparc32_gdbarch_init): Update.
3700 * s390-tdep.c (s390_gdbarch_init): Update.
3701 * rx-tdep.c (rx_gdbarch_init): Update.
3702 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3703 * riscv-tdep.c (riscv_gdbarch_init): Update.
3704 * or1k-tdep.c (or1k_gdbarch_init): Update.
3705 * nios2-tdep.c (nios2_gdbarch_init): Update.
3706 * nds32-tdep.c (nds32_gdbarch_init): Update.
3707 * mips-tdep.c (mips_gdbarch_init): Update.
3708 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
3709 * m68k-tdep.c (m68k_gdbarch_init): Update.
3710 * i386-tdep.c (i386_gdbarch_init): Update.
3711 * arm-tdep.c (arm_gdbarch_init): Update.
3712 * arc-tdep.c (arc_tdesc_init): Update.
3713 (arc_gdbarch_init): Update.
3714 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
3715
0363df3d
HD
37162020-09-17 Hannes Domani <ssbssa@yahoo.de>
3717
3718 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
3719 for WOW64 processes.
3720
280a9412
TT
37212020-09-17 Tom Tromey <tom@tromey.com>
3722
3723 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
3724
6108fd18
TT
37252020-09-17 Tom Tromey <tom@tromey.com>
3726
3727 * value.c (preserve_values): Update.
3728 * python/py-type.c (save_objfile_types): Update.
3729 * guile/scm-type.c (save_objfile_types): Update.
3730 * gdbtypes.h (create_copied_types_hash): Return htab_up.
3731 * gdbtypes.c (create_copied_types_hash): Return htab_up.
3732 * compile/compile-object-run.c (compile_object_run): Update.
3733
fa9b1164
TT
37342020-09-17 Tom Tromey <tom@tromey.com>
3735
3736 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
3737 Remove.
3738 <m_table>: Now htab_up.
3739 * typeprint.c (typedef_hash_table::recursively_update)
3740 (typedef_hash_table::add_template_parameters)
3741 (typedef_hash_table::typedef_hash_table): Update.
3742 (typedef_hash_table::~typedef_hash_table): Remove.
3743 (typedef_hash_table::typedef_hash_table)
3744 (typedef_hash_table::find_global_typedef)
3745 (typedef_hash_table::find_typedef): Update.
3746
eb53f105
TT
37472020-09-17 Tom Tromey <tom@tromey.com>
3748
3749 * target-descriptions.c (tdesc_use_registers): Use htab_up.
3750
7a8a5d47
TT
37512020-09-17 Tom Tromey <tom@tromey.com>
3752
3753 * linespec.c (class decode_compound_collector)
3754 <~decode_compound_collector>: Remove.
3755 <m_unique_syms>: Now htab_up.
3756 (decode_compound_collector::operator ()): Update.
3757 (class symtab_collector) <~symtab_collector>: Remove.
3758 <m_symtab_table>: Now htab_up.
3759 (symtab_collector::operator ()): Update.
3760
99032cfc
TT
37612020-09-17 Tom Tromey <tom@tromey.com>
3762
3763 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
3764 (filename_seen_cache::clear): Update.
3765 (~filename_seen_cache): Remove.
3766 (filename_seen_cache::seen): Update.
3767 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
3768 htab_up.
3769 <~filename_seen_cache>: Remove.
3770 <traverse>: Update.
3771
32580f6d
TT
37722020-09-17 Tom Tromey <tom@tromey.com>
3773
3774 * completer.c (completion_tracker::discard_completions)
3775 (completion_tracker::~completion_tracker)
3776 (completion_tracker::maybe_add_completion)
3777 (completion_tracker::remove_completion)
3778 (completion_tracker::recompute_lowest_common_denominator)
3779 (completion_tracker::build_completion_result): Update.
3780 * completer.h (class completion_tracker) <have_completions>:
3781 Update.
3782 <m_entries_hash>: Now htab_up.
3783
c1fb9836
TT
37842020-09-17 Tom Tromey <tom@tromey.com>
3785
3786 * breakpoint.c (ambiguous_names_p): Use htab_up.
3787
88f07206
TT
37882020-09-17 Tom Tromey <tom@tromey.com>
3789
3790 * auto-load.c (struct auto_load_pspace_info)
3791 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
3792 <loaded_script_files, loaded_script_texts>: Change type to
3793 htab_up.
3794 (~auto_load_pspace_info) Remove.
3795 (init_loaded_scripts_info, maybe_add_script_file)
3796 (maybe_add_script_text, auto_load_info_scripts): Update.
3797
9519b2ee
TT
37982020-09-17 Tom Tromey <tromey@adacore.com>
3799
3800 * c-exp.y (name_obstack): Now static.
3801
d2cd4113
CC
38022020-09-17 Chungyi Chi <demonic@csie.io>
3803
3804 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
3805
b650a282
SM
38062020-09-16 Simon Marchi <simon.marchi@efficios.com>
3807
3808 * breakpoint.h (init_catchpoint): Change int parameter to bool.
3809 (add_solib_catchpoint): Likewise.
3810 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
3811 to bool.
3812 (add_solib_catchpoint): Change int parameter/variable to bool.
3813 (catch_load_or_unload): Likewise.
3814 (init_catchpoint): Likewise.
3815 (create_fork_vfork_event_catchpoint): Likewise.
3816 (catch_fork_command_1): Likewise.
3817 (catch_exec_command_1): Likewise.
3818
4d0bcfcf
SM
38192020-09-16 Simon Marchi <simon.marchi@efficios.com>
3820
3821 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
3822 Change instance_flags to m_instance_flags.
3823
fe830662
TT
38242020-09-16 Tom Tromey <tromey@adacore.com>
3825
3826 PR gdb/26598:
3827 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
3828
fe5ddfc3
JB
38292020-09-16 John Baldwin <jhb@FreeBSD.org>
3830
3831 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
3832 PL_FLAG_EXEC.
3833 (fbsd_nat_target::insert_exec_catchpoint)
3834 (fbsd_nat_target::remove_exec_catchpoint): Always define.
3835 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
3836 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
3837
e911c666
JB
38382020-09-16 John Baldwin <jhb@FreeBSD.org>
3839
3840 * configure.ac: Remove check for kinfo_getvmmap().
3841 * configure, config.in: Regenerate.
3842 * fbsd-nat.c (fbsd_read_mapping): Remove
3843 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
3844 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
3845 kinfo_get_vmmap() are always present.
3846
1f17d372
JB
38472020-09-16 John Baldwin <jhb@FreeBSD.org>
3848
3849 * fbsd-nat.c: Always include support for
3850 TARGET_OBJECT_SIGNAL_INFO.
3851
bcb1da7f
JB
38522020-09-16 John Baldwin <jhb@FreeBSD.org>
3853
3854 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
3855 sysctl and remove procfs fallback.
3856
5515f729
JB
38572020-09-16 John Baldwin <jhb@FreeBSD.org>
3858
3859 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
3860 * fbsd-nat.h: Likewise.
3861
da1df1db
TBA
38622020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3863
3864 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
3865 argument.
3866
0e25e767
AB
38672020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3868
3869 * ada-lang.c (ada_language_data): Delete.
3870 (ada_language): Remove references to ada_language_data.
3871 * c-lang.c (c_language_data): Delete.
3872 (c_language): Remove references to c_language_data.
3873 (cplus_language_data): Delete.
3874 (cplus_language): Remove references to cplus_language_data.
3875 (asm_language_data): Delete.
3876 (asm_language): Remove references to asm_language_data.
3877 (minimal_language_data): Delete.
3878 (minimal_language): Remove references to minimal_language_data.
3879 * d-lang.c (d_language_data): Delete.
3880 (d_language): Remove references to d_language_data.
3881 * f-lang.c (f_language_data): Delete.
3882 (f_language): Remove references to f_language_data.
3883 * go-lang.c (go_language_data): Delete.
3884 (go_language): Remove references to go_language_data.
3885 * language.c (unknown_language_data): Delete.
3886 (unknown_language): Remove references to unknown_language_data.
3887 (auto_language_data): Delete.
3888 (auto_language): Remove references to auto_language_data.
3889 * language.h (language_data): Delete struct.
3890 (language_defn): No longer inherit from language_data.
3891 * m2-lang.c (m2_language_data): Delete.
3892 (m2_language): Remove references to m2_language_data.
3893 * objc-lang.c (objc_language_data): Delete.
3894 (objc_language): Remove references to objc_language_data.
3895 * opencl-lang.c (opencl_language_data): Delete.
3896 (opencl_language): Remove references to opencl_language_data.
3897 * p-lang.c (pascal_language_data): Delete.
3898 (pascal_language): Remove references to pascal_language_data.
3899 * rust-lang.c (rust_language_data): Delete.
3900 (rust_language): Remove references to rust_language_data.
3901
b7c6e27d
AB
39022020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3903
3904 * ada-lang.c (ada_language_data): Remove la_op_print_tab
3905 initializer.
3906 (ada_language::opcode_print_table): New member function.
3907 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
3908 (c_language::opcode_print_table): New member function.
3909 (cplus_language_data): Remove la_op_print_tab initializer.
3910 (cplus_language::opcode_print_table): New member function.
3911 (asm_language_data): Remove la_op_print_tab initializer.
3912 (asm_language::opcode_print_table): New member function.
3913 (minimal_language_data): Remove la_op_print_tab initializer.
3914 (minimal_language::opcode_print_table): New member function.
3915 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
3916 (d_language::opcode_print_table): New member function.
3917 * expprint.c (print_subexp_standard): Update call to
3918 opcode_print_table.
3919 (op_string): Likewise.
3920 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
3921 (f_language::opcode_print_table): New member function.
3922 * go-lang.c (go_language_data): Remove la_op_print_tab
3923 initializer.
3924 (go_language::opcode_print_table): New member function.
3925 * language.c (unknown_language_data): Remove la_op_print_tab
3926 initializer.
3927 (unknown_language::opcode_print_table): New member function.
3928 (auto_language_data): Remove la_op_print_tab initializer.
3929 (auto_language::opcode_print_table): New member function.
3930 * language.h (language_data): Remove la_op_print_tab field.
3931 (language_defn::opcode_print_table): Declare new member function.
3932 * m2-lang.c (m2_language_data): Remove la_op_print_tab
3933 initializer.
3934 (m2_language::opcode_print_table): New member function.
3935 * objc-lang.c (objc_language_data): Remove la_op_print_tab
3936 initializer.
3937 (objc_language::opcode_print_table): New member function.
3938 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
3939 initializer.
3940 (opencl_language::opcode_print_table): New member function.
3941 * p-lang.c (pascal_language_data): Remove la_op_print_tab
3942 initializer.
3943 (pascal_language::opcode_print_table): New member function.
3944 * rust-lang.c (rust_language_data): Remove la_op_print_tab
3945 initializer.
3946 (rust_language::opcode_print_table): New member function.
3947
5aba6ebe
AB
39482020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3949
3950 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
3951 (ada_language::expression_ops): New member function.
3952 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
3953 (c_language::expression_ops): New member function.
3954 (cplus_language_data): Remove la_exp_desc initializer.
3955 (cplus_language::expression_ops): New member function.
3956 (asm_language_data): Remove la_exp_desc initializer.
3957 (asm_language::expression_ops): New member function.
3958 (minimal_language_data): Remove la_exp_desc initializer.
3959 (minimal_language::expression_ops): New member function.
3960 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
3961 (d_language::expression_ops): New member function.
3962 * eval.c (evaluate_subexp): Update call to expression_ops.
3963 * expprint.c (print_subexp): Likewise.
3964 (op_name): Likewise.
3965 (dump_subexp_body): Likewise.
3966 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
3967 (f_language::expression_ops): New member function.
3968 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
3969 (go_language::expression_ops): New member function.
3970 * language.c (language_defn::expression_ops): New function.
3971 (unknown_language_data): Remove la_exp_desc initializer.
3972 (auto_language_data): Likewise.
3973 * language.h (language_data): Remove la_exp_desc field.
3974 (language_defn::expression_ops): Declare new member function.
3975 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
3976 (m2_language::expression_ops): New member function.
3977 * objc-lang.c (objc_language_data): Remove la_exp_desc
3978 initializer.
3979 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
3980 initializer.
3981 (opencl_language::expression_ops): New member function.
3982 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
3983 * parse.c (operator_length): Update call to expression_ops.
3984 (exp_iterate): Likewise.
3985 * rust-lang.c (rust_language_data): Remove la_exp_desc
3986 initializer.
3987 (ruse_language::expression_ops): New member function.
3988
b63a3f3f
AB
39892020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3990
3991 * ada-lang.c (ada_language_data): Remove la_varobj_ops
3992 initializer.
3993 (ada_language::varobj_ops): New member function.
3994 * c-lang.c (c_language_data): Remove la_varobj_ops
3995 initializer.
3996 (cplus_language_data): Likewise.
3997 (cplus_language::varobj_ops): New member function.
3998 (asm_language_data): Remove la_varobj_ops initializer.
3999 (minimal_language_data): Likewise.
4000 * d-lang.c (d_language_data): Likewise.
4001 * f-lang.c (f_language_data): Likewise.
4002 * go-lang.c (go_language_data): Likewise.
4003 * language.c (language_defn::varobj_ops): New function.
4004 (unknown_language_data): Remove la_varobj_ops
4005 initializer.
4006 (auto_language_data): Likewise.
4007 * language.h (language_data): Remove la_varobj_ops field.
4008 (language_defn::varobj_ops): Declare new member function.
4009 * m2-lang.c (m2_language_data): Remove la_varobj_ops 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 * varobj.c (varobj_create): Update call to varobj_ops.
4015 * varobj.h (default_varobj_ops): Delete define.
4016
1ac14a04
AB
40172020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4018
4019 * ada-lang.c (ada_language_data): Remove la_macro_expansion
4020 initializer.
4021 * c-lang.c (c_language_data): Likewise.
4022 (c_language::macro_expansion): New member function.
4023 (cplus_language_data): Likewise.
4024 (cplus_language::macro_expansion): New member function.
4025 (asm_language_data): Likewise.
4026 (asm_language::macro_expansion): New member function.
4027 (minimal_language_data): Likewise.
4028 (minimal_language::macro_expansion): New member function.
4029 * d-lang.c (d_language_data): Remove la_macro_expansion
4030 initializer.
4031 * f-lang.c (f_language_data): Likewise.
4032 * go-lang.c (go_language_data): Likewise.
4033 * language.c (unknown_language_data): Likewise.
4034 (auto_language_data): Likewise.
4035 * language.h (language_data): Remove la_macro_expansion field.
4036 (language_defn::macro_expansion): New member function.
4037 * m2-lang.c (m2_language_data): Remove la_macro_expansion
4038 initializer.
4039 * objc-lang.c (objc_language_data): Likewise.
4040 (objc_language::macro_expansion): New member function.
4041 * opencl-lang.c (opencl_language_data): Likewise.
4042 (opencl_language::macro_expansion): New member function.
4043 * p-lang.c (pascal_language_data): Remove la_macro_expansion
4044 initializer.
4045 * rust-lang.c (rust_language_data): Likewise.
4046 * symtab.c (default_collect_symbol_completion_matches_break_on):
4047 Update call to macro_expansion.
4048
3a3440fb
AB
40492020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4050
4051 * ada-lang.c (ada_language_data): Remove la_array_ordering
4052 initializer.
4053 * c-lang.c (c_language_data): Likewise.
4054 (cplus_language_data): Likewise.
4055 (asm_language_data): Likewise.
4056 (minimal_language_data): Likewise.
4057 * d-lang.c (d_language_data): Likewise.
4058 * dwarf2/read.c (read_array_order): Update for call to
4059 array_ordering.
4060 * f-lang.c (f_language_data): Remove la_array_ordering
4061 initializer.
4062 (f_language::array_ordering): New member function.
4063 * go-lang.c (go_language_data): Remove la_array_ordering
4064 initializer.
4065 * language.c (unknown_language_data): Likewise.
4066 (auto_language_data): Likewise.
4067 * language.h (language_data): Delete la_array_ordering field.
4068 (language_defn::array_ordering): New member function.
4069 * m2-lang.c (m2_language_data): Remove la_array_ordering
4070 initializer.
4071 * objc-lang.c (objc_language_data): Likewise.
4072 * opencl-lang.c (opencl_language_data): Likewise.
4073 * p-lang.c (pascal_language_data): Likewise.
4074 * rust-lang.c (rust_language_data): Likewise.
4075
0d201fa4
AB
40762020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4077
4078 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
4079 initializer.
4080 * c-lang.c (c_language_data): Likewise.
4081 (cplus_language_data): Likewise.
4082 (asm_language_data): Likewise.
4083 (minimal_language_data): Likewise.
4084 * d-lang.c (d_language_data): Likewise.
4085 * f-lang.c (f_language_data): Likewise.
4086 (f_language::case_sensitivity): New member function.
4087 * go-lang.c (go_language_data): Remove la_case_sensitivity
4088 initializer.
4089 * language.c (enum case_mode): Moved here from language.h.
4090 (case_mode): Make static.
4091 (show_case_command): Update for case_sensitivity being a method.
4092 (set_case_command): Likewise.
4093 (set_range_case): Likewise.
4094 (unknown_language_data): Remove la_case_sensitivity initializer.
4095 (auto_language_data): Likewise.
4096 * language.h (case_mode): Delete, move enum declaration to
4097 language.c.
4098 (language_data): Delete la_case_sensitivity field.
4099 (language_defn::case_sensitivity): New member function.
4100 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
4101 initializer.
4102 * objc-lang.c (objc_language_data): Likewise.
4103 * opencl-lang.c (opencl_language_data): Likewise.
4104 * p-lang.c (pascal_language_data): Likewise.
4105 * rust-lang.c (rust_language_data): Likewise.
4106
efdf6a73
AB
41072020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4108
4109 * ada-lang.c (ada_language_data): Remove la_range_check
4110 initializer.
4111 * c-lang.c (c_language_data): Likewise.
4112 (cplus_language_data): Likewise.
4113 (asm_language_data): Likewise.
4114 (minimal_language_data): Likewise.
4115 * d-lang.c (d_language_data): Likewise.
4116 * f-lang.c (f_language_data): Likewise.
4117 (f_language::range_checking_on_by_default): New member function.
4118 * go-lang.c (go_language_data): Remove la_range_check initializer.
4119 * language.c (enum range_mode): Moved here from language.h.
4120 (range_mode): Made static.
4121 (show_range_command): Update to use
4122 range_checking_on_by_default.
4123 (set_range_command): Likewise.
4124 (set_range_case): Likewise.
4125 (unknown_language_data): Remove la_range_check initializer.
4126 (auto_language_data): Likewise.
4127 * language.h (range_mode): Delete. Enum definition moved to
4128 language.c.
4129 (language_data): Remove la_range_check field.
4130 (language_defn::range_checking_on_by_default): New member
4131 function.
4132 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
4133 (m2_language::range_checking_on_by_default): New member function.
4134 * objc-lang.c (objc_language_data): Remove la_range_check
4135 initializer.
4136 * opencl-lang.c (opencl_language_data): Likewise.
4137 * p-lang.c (pascal_language_data): Likewise.
4138 (pascal_language::range_checking_on_by_default): New member
4139 function.
4140 * rust-lang.c (rust_language_data): Remove la_range_check
4141 initializer.
4142 (rust_language::range_checking_on_by_default): New member
4143 function.
4144
bf92aec5
AB
41452020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4146
4147 * dwarf2/read.c (dwarf2_physname): Remove special case for
4148 language_go.
4149 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
4150 member function.
4151
d3355e4d
AB
41522020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4153
4154 * ada-lang.c (ada_language_data): Remove
4155 la_store_sym_names_in_linkage_form_p initializer.
4156 (ada_language::store_sym_names_in_linkage_form_p): New member
4157 function.
4158 * c-lang.c (c_language_data): Remove
4159 la_store_sym_names_in_linkage_form_p initializer.
4160 (c_language::store_sym_names_in_linkage_form_p): New member
4161 function.
4162 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
4163 initializer.
4164 (asm_language_data): Likewise.
4165 (asm_language::store_sym_names_in_linkage_form_p): New member
4166 function.
4167 (minimal_language_data): Remove
4168 la_store_sym_names_in_linkage_form_p initializer.
4169 (minimal_language::store_sym_names_in_linkage_form_p): New member
4170 function.
4171 * d-lang.c (d_language_data): Remove
4172 la_store_sym_names_in_linkage_form_p initializer.
4173 * dwarf2/read.c (dwarf2_physname): Update call to
4174 store_sym_names_in_linkage_form_p.
4175 * f-lang.c (f_language_data): Remove
4176 la_store_sym_names_in_linkage_form_p initializer.
4177 * go-lang.c (go_language_data): Remove
4178 la_store_sym_names_in_linkage_form_p initializer.
4179 * language.c (unknown_language_data): Remove
4180 la_store_sym_names_in_linkage_form_p initializer.
4181 (unknown_language::store_sym_names_in_linkage_form_p): New member
4182 function.
4183 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
4184 initializer.
4185 (auto_language::store_sym_names_in_linkage_form_p): New member
4186 function.
4187 * language.h (language_data): Remove
4188 la_store_sym_names_in_linkage_form_p member variable.
4189 (language_defn::store_sym_names_in_linkage_form_p): New member
4190 function.
4191 * m2-lang.c (m2_language_data): Remove
4192 la_store_sym_names_in_linkage_form_p initializer.
4193 * objc-lang.c (objc_language_data): Likewise.
4194 * opencl-lang.c (opencl_language_data): Likewise.
4195 * p-lang.c (pascal_language_data): Likewise.
4196 * rust-lang.c (rust_language_data): Likewise.
4197
22c12a6c
AB
41982020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4199
4200 * ada-lang.c (ada_language_data): Remove string_lower_bound
4201 initializer.
4202 * c-lang.c (c_language_data): Likewise.
4203 (cplus_language_data): Likewise.
4204 (asm_language_data): Likewise.
4205 (minimal_language_data): Likewise.
4206 * d-lang.c (d_language_data): Likewise.
4207 * f-lang.c (f_language_data): Likewise.
4208 * go-lang.c (go_language_data): Likewise.
4209 * language.c (unknown_language_data): Likewise.
4210 (auto_language_data): Likewise.
4211 * language.h (language_data): Remove string_lower_bound field.
4212 (language_defn::string_lower_bound): New member function.
4213 * m2-lang.c (m2_language_data): Remove string_lower_bound
4214 initializer.
4215 (m2_language::string_lower_bound): New member function.
4216 * objc-lang.c (objc_language_data): Remove string_lower_bound
4217 initializer.
4218 * opencl-lang.c (opencl_language_data): Likewise.
4219 * p-lang.c (pascal_language_data): Likewise.
4220 * rust-lang.c (rust_language_data): Likewise.
4221 * valops.c (value_cstring): Update call to string_lower_bound.
4222 (value_string): Likewise.
4223 * value.c (allocate_repeated_value): Likewise.
4224
1c236ddd
AB
42252020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4226
4227 * valops.c (value_repeat): Fix incorrect argument name in comment.
4228
67bd3fd5
AB
42292020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4230
4231 * ada-lang.c (ada_language_data): Remove c_style_arrays
4232 initializer.
4233 (ada_language::c_style_arrays_p): New member fuction.
4234 * c-lang.c (c_language_data): Remove c_style_arrays
4235 initializer.
4236 (cplus_language_data): Likewise.
4237 (asm_language_data): Likewise.
4238 (minimal_language_data): Likewise.
4239 * d-lang.c (d_language_data): Likewise.
4240 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
4241 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
4242 (f_language::c_style_arrays_p): New member function.
4243 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
4244 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
4245 * language.c (unknown_language_data): Remove c_style_arrays
4246 initializer.
4247 (auto_language_data): Likewise.
4248 * language.h (language_data): Remove c_style_arrays field.
4249 (language_defn::c_style_arrays_p): New member function.
4250 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
4251 (m2_language::c_style_arrays_p): New member function.
4252 * objc-lang.c (objc_language_data): Remove c_style_arrays
4253 initializer.
4254 * opencl-lang.c (opencl_language_data): Likewise.
4255 * p-lang.c (pascal_language_data): Likewise.
4256 * rust-lang.c (rust_language_data): Likewise.
4257 * valarith.c (value_subscript): Update call to c_style_arrays_p,
4258 and update local variable to a bool.
4259 * valops.c (value_cast): Update call to c_style_arrays_p.
4260 (value_array): Likewise.
4261 * value.c (coerce_array): Likewise.
4262
85967615
AB
42632020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4264
4265 * ada-lang.c (ada_language_data): Remove la_language initializer.
4266 * c-lang.c (c_language_data): Likewise.
4267 (cplus_language_data): Likewise.
4268 (asm_language_data): Likewise.
4269 (minimal_language_data): Likewise.
4270 * d-lang.c (d_language_data): Likewise.
4271 * f-lang.c (f_language_data): Likewise.
4272 * go-lang.c (go_language_data): Likewise.
4273 * language.c (unknown_language_data): Likewise.
4274 (auto_language_data): Likewise.
4275 * language.h (language_data): Remove la_language field.
4276 (language_defn::language_defn): Initialise la_language field.
4277 (language_defn::la_language): New member variable.
4278 * m2-lang.c (m2_language_data): Remove la_language field.
4279 * objc-lang.c (objc_language_data): Likewise.
4280 * opencl-lang.c (opencl_language_data): Likewise.
4281 * p-lang.c (pascal_language_data): Likewise.
4282 * rust-lang.c (rust_language_data): Likewise.
4283
e171d6f1
AB
42842020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4285
4286 * ada-lang.c (ada_extensions): Delete, moved into
4287 ada_language::filename_extensions.
4288 (ada_language_data): Remove la_filename_extensions initializer.
4289 (ada_language::filename_extensions): New member function.
4290 * c-lang.c (c_extensions): Delete, moved into
4291 c_language::filename_extensions.
4292 (c_language_data): Remove la_filename_extensions initializer.
4293 (c_language::filename_extensions): New member function.
4294 (cplus_extensions): Delete, moved into
4295 cplus_language::filename_extensions.
4296 (cplus_language_data): Remove la_filename_extensions initializer.
4297 (cplus_language::filename_extensions): New member function.
4298 (asm_extensions): Delete, moved into
4299 asm_language::filename_extensions.
4300 (asm_language_data): Remove la_filename_extensions initializer.
4301 (asm_language::filename_extensions): New member function.
4302 (minimal_language_data): Remove la_filename_extensions
4303 initializer.
4304 * d-lang.c (d_extensions): Delete, moved into
4305 d_language::filename_extensions.
4306 (d_language_data): Remove la_filename_extensions initializer.
4307 (d_language::filename_extensions): New member function.
4308 * f-lang.c (f_extensions): Delete, moved into
4309 f_language::filename_extensions.
4310 (f_language_data): Remove la_filename_extensions initializer.
4311 (f_language::filename_extensions): New member function.
4312 * go-lang.c (go_language_data): Remove la_filename_extensions
4313 initializer.
4314 * language.c (add_set_language_command): Update now that
4315 filename_extensions returns a vector.
4316 (unknown_language_data): Remove la_filename_extensions
4317 initializer.
4318 (auto_language_data): Likewise.
4319 * language.h (language_data): Remove la_filename_extensions field.
4320 (language_defn::filename_extensions): New member function.
4321 * m2-lang.c (m2_language_data): Remove la_filename_extensions
4322 initializer.
4323 * objc-lang.c (objc_extensions): Delete, moved into
4324 objc_language::filename_extensions.
4325 (objc_language_data): Remove la_filename_extensions initializer.
4326 (objc_language::filename_extensions): New member function.
4327 * opencl-lang.c (opencl_language_data): Remove
4328 la_filename_extensions initializer.
4329 * p-lang.c (pascal_extensions): Delete, moved into
4330 pascal_language::filename_extensions.
4331 (pascal_language_data): Remove la_filename_extensions initializer.
4332 (pascal_language::filename_extensions): New member function.
4333 * rust-lang.c (rust_extensions): Delete, moved into
4334 rust_language::filename_extensions.
4335 (rust_language_data): Remove la_filename_extensions initializer.
4336 (rust_language::filename_extensions): New member function.
4337 * symfile.c (add_filename_language): Add new assert.
4338
6f7664a9
AB
43392020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4340
4341 * ada-lang.c (ada_language_data): Remove la_name and
4342 la_natural_name initializers.
4343 (ada_language::name): New member function.
4344 (ada_language::natural_name): New member function.
4345 * c-lang.c (c_language_data): Remove la_name and
4346 la_natural_name initializers.
4347 (c_language::name): New member function.
4348 (c_language::natural_name): New member function.
4349 (cplus_language_data): Remove la_name and
4350 la_natural_name initializers.
4351 (cplus_language::name): New member function.
4352 (cplus_language::natural_name): New member function.
4353 (asm_language_data): Remove la_name and
4354 la_natural_name initializers.
4355 (asm_language::name): New member function.
4356 (asm_language::natural_name): New member function.
4357 (minimal_language_data): Remove la_name and
4358 la_natural_name initializers.
4359 (minimal_language::name): New member function.
4360 (minimal_language::natural_name): New member function.
4361 * compile/compile.c (compile_to_object): Update call to
4362 lanugage_defn::name.
4363 * d-lang.c (d_language_data): Remove la_name and
4364 la_natural_name initializers.
4365 (d_language::name): New member function.
4366 (d_language::natural_name): New member function.
4367 * expprint.c (print_subexp_standard): Update call to
4368 language_defn::name.
4369 (dump_raw_expression): Likewise
4370 (dump_prefix_expression): Likewise.
4371 * f-lang.c (f_language_data): Remove la_name and
4372 la_natural_name initializers.
4373 (f_language::name): New member function.
4374 (f_language::natural_name): New member function.
4375 * go-lang.c (go_language_data): Remove la_name and
4376 la_natural_name initializers.
4377 (go_language::name): New member function.
4378 (go_language::natural_name): New member function.
4379 * language.c (show_language_command): Update call to
4380 language_defn::name.
4381 (set_language_command): Likewise.
4382 (language_enum): Likewise.
4383 (language_str): Likewise.
4384 (add_set_language_command): Likewise, use
4385 language_defn::natural_name in the doc string.
4386 (unknown_language_data): Remove la_name and
4387 la_natural_name initializers.
4388 (unknown_language::name): New member function.
4389 (unknown_language::natural_name): New member function.
4390 (auto_language_data): Remove la_name and
4391 la_natural_name initializers.
4392 (auto_language::name): New member function.
4393 (auto_language::natural_name): New member function.
4394 (language_lookup_primitive_type_as_symbol): Update call to
4395 language_defn::name.
4396 * language.h (language_data): Remove la_name and la_natural_name
4397 member variables.
4398 (language_defn::name): New member function.
4399 (language_defn::natural_name): New member function.
4400 * m2-lang.c (m2_language_data): Remove la_name and
4401 la_natural_name initializers.
4402 (m2_language::name): New member function.
4403 (m2_language::natural_name): New member function.
4404 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
4405 language_defn::natural_name.
4406 * objc-lang.c (objc_language_data): Remove la_name and
4407 la_natural_name initializers.
4408 (objc_language::name): New member function.
4409 (objc_language::natural_name): New member function.
4410 * opencl-lang.c (opencl_language_data): Remove la_name and
4411 la_natural_name initializers.
4412 (opencl_language::name): New member function.
4413 (opencl_language::natural_name): New member function.
4414 * p-lang.c (pascal_language_data): Remove la_name and
4415 la_natural_name initializers.
4416 (pascal_language::name): New member function.
4417 (pascal_language::natural_name): New member function.
4418 * rust-lang.c (rust_language_data): Remove la_name and
4419 la_natural_name initializers.
4420 (rust_language::name): New member function.
4421 (rust_language::natural_name): New member function.
4422 * symtab.c (lookup_language_this): Update call to
4423 language_defn::name.
4424
5bae7c4e
AB
44252020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4426
4427 * ada-lang.c (ada_language_data): Remove la_name_of_this
4428 initializer.
4429 * ax-gdb.c (gen_expr): Update call to name_of_this.
4430 * c-exp.y (classify_name): Likewise.
4431 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
4432 (cplus_language_data): Likewise.
4433 (cplus_language::name_of_this): New member function.
4434 (asm_language_data): Remove la_name_of_this initializer.
4435 (minimal_language_data): Likewise.
4436 * d-lang.c (d_language_data): Likewise.
4437 (d_language::name_of_this): New member function.
4438 * expprint.c (print_subexp_standard): Update call to name_of_this.
4439 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
4440 * go-lang.c (go_language_data): Likewise.
4441 * language.c (unknown_language_data): Likewise.
4442 (unknown_language::name_of_this): New member function.
4443 (auto_language_data): Remove la_name_of_this initializer.
4444 (auto_language::name_of_this): New member function.
4445 * language.h (language_data): Delete la_name_of_this member
4446 variable.
4447 (language_defn::name_of_this): New member function.
4448 * m2-lang.c (m2_language_data): Remove la_name_of_this
4449 initializer.
4450 * objc-lang.c (objc_language_data): Likewise.
4451 (objc_language::name_of_this): New member function.
4452 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
4453 initializer.
4454 * p-lang.c (pascal_language_data): Likewise.
4455 (pascal_language::name_of_this): New member function.
4456 * rust-lang.c (rust_language_data): Remove la_name_of_this
4457 initializer.
4458 * symtab.c (lookup_language_this): Update call to name_of_this.
4459 (lookup_symbol_aux): Likewise.
4460 * valops.c (value_of_this): Likewise.
4461
22e3f3ed
AB
44622020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4463
4464 * ada-lang.c (ada_language_data): Remove
4465 la_struct_too_deep_ellipsis initializer.
4466 (ada_language::struct_too_deep_ellipsis): New member function.
4467 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
4468 initializer.
4469 (cplus_language_data): Likewise.
4470 (asm_language_data): Likewise.
4471 (minimal_language_data): Likewise.
4472 * cp-valprint.c (cp_print_value): Update call to
4473 struct_too_deep_ellipsis.
4474 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
4475 initializer.
4476 * f-lang.c (f_language_data): Likewise.
4477 (f_language::struct_too_deep_ellipsis): New member function.
4478 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
4479 initializer.
4480 * language.c (unknown_language_data): Likewise.
4481 (auto_language_data): Likewise.
4482 * language.h (language_data): Delete la_struct_too_deep_ellipsis
4483 member variable.
4484 (language_defn::struct_too_deep_ellipsis): New member function.
4485 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
4486 initializer.Q
4487 * objc-lang.c (objc_language_data): Likewise.
4488 * opencl-lang.c (opencl_language_data): Likewise.
4489 * p-lang.c (pascal_language_data): Likewise.
4490 * rust-lang.c (rust_language_data): Likewise.
4491 * valprint.c (val_print_check_max_depth): Update call to
4492 struct_too_deep_ellipsis.
4493
ed29e1c7
FW
44942020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
4495
4496 * MAINTAINERS (Write After Approval): Add myself.
4497
12d8f940
TT
44982020-09-15 Tom Tromey <tom@tromey.com>
4499
4500 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
4501 Remove.
4502
6b5a7bc7
TT
45032020-09-15 Tom Tromey <tom@tromey.com>
4504
4505 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
4506 and TYPE_CODE_METHODPTR cases.
4507 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
4508 (c_value_print_inner): Update.
4509 * valprint.c (generic_value_print_memberptr): New function, from
4510 c_value_print_memberptr.
4511 (generic_value_print): Use it. Call cplus_print_method_ptr.
4512
47f0e2ff
TT
45132020-09-15 Tom Tromey <tromey@adacore.com>
4514
4515 * python/python-internal.h (PyInt_FromLong): Remove define.
4516 * python/py-value.c (convert_value_from_python): Use
4517 gdb_py_object_from_longest.
4518 * python/py-type.c (typy_get_code): Use
4519 gdb_py_object_from_longest.
4520 * python/py-symtab.c (salpy_get_line): Use
4521 gdb_py_object_from_longest.
4522 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
4523 gdb_py_object_from_longest.
4524 * python/py-record.c (recpy_gap_reason_code): Use
4525 gdb_py_object_from_longest.
4526 * python/py-record-btrace.c (recpy_bt_insn_size)
4527 (recpy_bt_func_level, btpy_list_count): Use
4528 gdb_py_object_from_longest.
4529 * python/py-infthread.c (gdbpy_create_ptid_object): Use
4530 gdb_py_object_from_longest. Fix error handling.
4531 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
4532 gdb_py_object_from_longest.
4533 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
4534 gdb_py_object_from_longest.
4535 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
4536 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
4537 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
4538
512116ce
TT
45392020-09-15 Tom Tromey <tromey@adacore.com>
4540
4541 * python/python.c (gdbpy_parameter_value): Use
4542 gdb_py_object_from_ulongest.
4543
4ab1029c
TT
45442020-09-15 Tom Tromey <tromey@adacore.com>
4545
4546 * python/py-infevents.c (create_register_changed_event_object):
4547 Use gdb_py_object_from_longest.
4548 * python/py-exitedevent.c (create_exited_event_object): Use
4549 gdb_py_object_from_longest.
4550
062534d4
TT
45512020-09-15 Tom Tromey <tromey@adacore.com>
4552
4553 * python/python.c (gdbpy_parameter_value): Use
4554 gdb_py_object_from_longest.
4555 * python/py-type.c (convert_field, typy_range): Use
4556 gdb_py_object_from_longest.
4557 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
4558 gdb_py_object_from_longest.
4559 * python/py-lazy-string.c (stpy_get_length): Use
4560 gdb_py_object_from_longest.
4561 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
4562 gdb_py_object_from_longest.
4563 * python/py-infevents.c (create_memory_changed_event_object): Use
4564 gdb_py_object_from_longest.
4565 * python/py-inferior.c (infpy_get_num): Use
4566 gdb_py_object_from_longest.
4567 (infpy_get_pid): Likewise.
4568
d1cab987
TT
45692020-09-15 Tom Tromey <tromey@adacore.com>
4570
4571 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
4572 defines.
4573 * python/py-value.c (valpy_long): Use
4574 gdb_py_object_from_ulongest.
4575 * python/py-symtab.c (salpy_get_pc): Use
4576 gdb_py_object_from_ulongest.
4577 (salpy_get_last): Likewise.
4578 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
4579 gdb_py_object_from_ulongest.
4580 * python/py-lazy-string.c (stpy_get_address): Use
4581 gdb_py_object_from_ulongest.
4582 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
4583 * python/py-arch.c (archpy_disassemble): Use
4584 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
4585 error handling.
4586
4bde49dc
TT
45872020-09-15 Tom Tromey <tromey@adacore.com>
4588
4589 * python/python-internal.h (gdb_py_long_from_longest): Remove
4590 defines.
4591 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
4592 * python/py-type.c (convert_field, typy_get_sizeof): Use
4593 gdb_py_object_from_longest.
4594 * python/py-record-btrace.c (btpy_list_index): Use
4595 gdb_py_object_from_longest.
4596
37431074
TT
45972020-09-15 Tom Tromey <tromey@adacore.com>
4598
4599 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
4600 * python/py-record.c (recpy_element_number): Use
4601 gdb_py_object_from_longest.
4602 (recpy_gap_number): Likewise.
4603
cbe25684
TT
46042020-09-15 Tom Tromey <tromey@adacore.com>
4605
4606 * top.c (ui::ui): Update.
4607 (highest_ui_num): Remove.
4608 * top.h (struct ui) <num>: Remove.
4609
db92ac45
TT
46102020-09-15 Tom Tromey <tromey@adacore.com>
4611
4612 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
4613 * ui-style.c (ansi_regex_text): Now array.
4614 * rust-exp.y (number_regex_text): Now array.
4615 * linespec.c (linespec_quote_characters): Now array.
4616 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
4617 Now arrays.
4618
d2b31b67
SM
46192020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4620
4621 * debuginfod-support.c (debuginfod_client_deleter): New.
4622 (debuginfod_client_up): New.
4623 (debuginfod_init): Return debuginfod_client_up.
4624 (debuginfod_source_query): Adjust.
4625 (debuginfod_debuginfo_query): Adjust.
4626
3246bd8e
SM
46272020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4628
4629 * debuginfod-support.c (debuginfod_source_query): Use
4630 make_unique_xstrdup.
4631
10242f36
SM
46322020-09-14 Simon Marchi <simon.marchi@efficios.com>
4633
4634 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
4635 with `type::instance_flags`.
4636
e1044e6a
MM
46372020-09-14 Michael Mullin <masmullin@gmail.com>
4638
4639 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
4640 Remove baton parameter.
4641
04902b09
PA
46422020-09-14 Pedro Alves <pedro@palves.net>
4643
4644 * Makefile.in (SELFTESTS_SRCS): Add
4645 unittests/enum-flags-selftests.c.
4646 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
4647 btrace_function_flags instead of enum btrace_function_flag.
4648 * compile/compile-c-types.c (convert_qualified): Use
4649 enum_flags::raw.
4650 * compile/compile-cplus-symbols.c (convert_one_symbol)
4651 (convert_symbol_bmsym):
4652 * compile/compile-cplus-types.c (compile_cplus_convert_method)
4653 (compile_cplus_convert_struct_or_union_methods)
4654 (compile_cplus_instance::convert_qualified_base):
4655 * go-exp.y (parse_string_or_char): Add cast to int.
4656 * unittests/enum-flags-selftests.c: New file.
4657 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
4658 type to btrace_thread_flags from btrace_thread_flag.
4659 (record_btrace_cancel_resume, record_btrace_step_thread): Change
4660 local's type to btrace_thread_flags from btrace_thread_flag. Add
4661 cast in DEBUG call.
4662
69896a2c
PA
46632020-09-14 Pedro Alves <pedro@palves.net>
4664
4665 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
4666 * gdbtypes.c (address_space_name_to_int): Rename to ...
4667 (address_space_name_to_type_instance_flags): ... this.
4668 (address_space_int_to_name): Rename to ...
4669 (address_space_type_instance_flags_to_name): ... this.
4670 * gdbtypes.h (address_space_name_to_int): Rename to ...
4671 (address_space_name_to_type_instance_flags): ... this.
4672 (address_space_int_to_name): Rename to ...
4673 (address_space_type_instance_flags_to_name): ... this.
4674 * type-stack.c (type_stack::insert): Adjust to rename.
4675 * type-stack.h (type_stack::insert): Likewise.
4676
314ad88d
PA
46772020-09-14 Pedro Alves <pedro@palves.net>
4678 Andrew Burgess <andrew.burgess@embecosm.com>
4679
4680 * avr-tdep.c (avr_address_class_type_flags): Return
4681 type_instance_flags.
4682 (avr_address_class_type_flags_to_name): Take a
4683 type_instance_flags.
4684 (avr_address_class_name_to_type_flags): Return bool and take a
4685 type_instance_flags.
4686 * d-lang.c (build_d_types): Use type::set_instance_flags.
4687 * ft32-tdep.c (ft32_address_class_type_flags): Return
4688 type_instance_flags.
4689 (ft32_address_class_type_flags_to_name): Take a
4690 type_instance_flags.
4691 (ft32_address_class_name_to_type_flags): Return bool and take a
4692 type_instance_flags.
4693 (ft32_gdbarch_init): Use type::set_instance_flags.
4694 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
4695 * gdbarch.h, gdbarch.c: Regenerate.
4696 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
4697 (address_class_name_to_type_flags): Use type_instance_flags and
4698 bool.
4699 * gdbtypes.c (address_space_name_to_int)
4700 (address_space_int_to_name, make_qualified_type): Use
4701 type_instance_flags.
4702 (make_qualified_type): Use type_instance_flags and
4703 type::set_instance_flags.
4704 (make_type_with_address_space, make_cv_type, make_vector_type)
4705 (check_typedef): Use type_instance_flags.
4706 (recursive_dump_type): Cast type_instance_flags to unsigned for
4707 printing.
4708 (copy_type_recursive): Use type::set_instance_flags.
4709 (gdbtypes_post_init): Use type::set_instance_flags.
4710 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
4711 <m_instance_flags>: ... this.
4712 <instance_flags, set_instance_flags>: New methods.
4713 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
4714 (SET_TYPE_INSTANCE_FLAGS): New.
4715 (address_space_name_to_int, address_space_int_to_name)
4716 (make_type_with_address_space): Pass flags using
4717 type_instance_flags instead of int.
4718 * stabsread.c (cleanup_undefined_types_noname): Use
4719 type::set_instance_flags.
4720 * s390-tdep.c (s390_address_class_type_flags): Return
4721 type_instance_flags.
4722 (s390_address_class_type_flags_to_name): Take a
4723 type_instance_flags.
4724 (s390_address_class_name_to_type_flags): Return bool and take a
4725 type_instance_flags.
4726 * type-stack.c (type_stack::follow_types): Use
4727 type_instance_flags.
4728 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
4729
27087b7f
TT
47302020-09-14 Tom Tromey <tromey@adacore.com>
4731
4732 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
4733 * x86-tdep.c (x86_is_thunk_register_name)
4734 (x86_in_indirect_branch_thunk): Update.
4735 * sparc64-tdep.c (sparc64_fpu_register_names)
4736 (sparc64_cp0_register_names, sparc64_register_names)
4737 (sparc64_pseudo_register_names): Now const.
4738 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
4739 cp0_registers_num>: Now const.
4740 * sparc-tdep.c (sparc_core_register_names)
4741 (sparc32_fpu_register_names, sparc32_cp0_register_names)
4742 (sparc32_pseudo_register_names): Now const.
4743 (validate_tdesc_registers): Update.
4744 * rust-lang.c (rust_extensions): Now const.
4745 * p-lang.c (p_extensions): Now const.
4746 * objc-lang.c (objc_extensions): Now const.
4747 * nto-tdep.c (nto_thread_state_str): Now const.
4748 * moxie-tdep.c (moxie_register_names): Now const.
4749 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
4750 Now const.
4751 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
4752 (mips_linux_reg_names): Now const.
4753 (mips_gdbarch_init): Update.
4754 * microblaze-tdep.c (microblaze_register_names): Now const.
4755 * m68k-tdep.c (m68k_register_names): Now const.
4756 * m32r-tdep.c (m32r_register_names): Now const.
4757 * ia64-tdep.c (ia64_register_names): Now const.
4758 * i386-tdep.h (struct gdbarch_tdep) <register_names,
4759 ymmh_register_names, ymm16h_regnum, mpx_register_names,
4760 k_register_names, zmmh_register_names, xmm_avx512_register_names,
4761 ymm_avx512_register_names, pkeys_register_names>: Now const.
4762 * i386-tdep.c (i386_register_names, i386_zmm_names)
4763 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
4764 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
4765 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
4766 * f-lang.c (f_extensions): Now const.
4767 * d-lang.c (d_extensions): Now const.
4768 * csky-tdep.c (csky_register_names): Now const.
4769 * charset.c (default_charset_names, charset_enum): Now const.
4770 (_initialize_charset): Update.
4771 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
4772 const.
4773 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
4774 (bsd_uthread_solib_loaded): Update.
4775 (bsd_uthread_state): Now const.
4776 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
4777 (amd64_ymm_avx512_names, amd64_ymmh_names)
4778 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
4779 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
4780 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
4781 (amd64_dword_names): Now const.
4782 * agent.c (can_use_agent_enum): Now const.
4783 * ada-tasks.c (task_states, long_task_states): Now const.
4784 * ada-lang.c (known_runtime_file_name_patterns)
4785 (known_auxiliary_function_name_patterns, attribute_names)
4786 (standard_exc, ada_extensions): Now const.
4787
89806626
SM
47882020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4789
4790 * bcache.h (struct bcache) <bcache>: Remove constructor.
4791 <m_hash_function, m_compare_function>: Remove.
4792 <~bcache>: Make virtual.
4793 <compare>: Remove static method, introduce virtual method.
4794 <default_hash>: Remove.
4795 <hash>: New virtual method.
4796 * bcache.c (bcache::expand_hash_table): Update.
4797 (bcache::insert): Update.
4798 (bcache::hash): New.
4799 (bcache::compare): Update comment and parameter names.
4800 * gdbtypes.c (types_deeply_equal): Update.
4801 * psymtab.h (struct psymbol_bcache): New struct.
4802 (class psymtab_storage) <psymtab_storage>: Make default.
4803 <psymbol_cache>: Change type to psymbol_bcache.
4804 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
4805 (psymbol_hash): Change to...
4806 (psymbol_bcache::hash): ... this.
4807 (psymbol_compare): Change to...
4808 (psymbol_bcache::compare): ... this.
4809
677c92fe
SM
48102020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4811
4812 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
4813 checking for initial lwp.
4814
3eba3a01
TT
48152020-09-14 Tom Tromey <tromey@adacore.com>
4816
4817 * m68k-tdep.c (m68k_extract_return_value): Use
4818 pointer_result_regnum.
4819 (m68k_store_return_value): Likewise.
4820 (m68k_reg_struct_return_p): Handle vectors and arrays.
4821 (m68k_return_value): Handle arrays.
4822 (m68k_svr4_return_value): Fix single-element aggregate handling.
4823 Handle long double. Adjust for embedded ABI.
4824 (m68k_svr4_init_abi): Set pointer_result_regnum.
4825 (m68k_embedded_init_abi): New function.
4826 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
4827 (m68k_osabi_sniffer): New function.
4828 (_initialize_m68k_tdep): Register osabi sniffer.
4829 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
4830 member.
4831
33f4dd48
SM
48322020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4833
4834 * xml-support.c (xml_fetch_content_from_file): Replace xfree
4835 with gdb::unique_xmalloc_ptr<char>.
4836
8400a90d
SM
48372020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4838
4839 * xml-support.h (xml_fetch_another): Change type to be a
4840 function_view.
4841 (xml_process_xincludes): Remove baton parameter.
4842 (xml_fetch_content_from_file): Change baton parameter to
4843 dirname.
4844 * xml-support.c (struct xinclude_parsing_data)
4845 <xinclude_parsing_data>: Remove baton parameter.
4846 <fetcher_baton>: Remove.
4847 (xinclude_start_include): Adjust.
4848 (xml_process_xincludes): Adjust.
4849 (xml_fetch_content_from_file): Replace baton parameter with
4850 dirname.
4851 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
4852 (xml_init_syscalls_info): Use a lambda.
4853 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
4854 (file_read_description_xml): Use a lambda.
4855 (fetch_available_features_from_target): Change baton parameter
4856 to target_ops.
4857 (target_read_description_xml): Use a lambda.
4858 (target_fetch_description_xml): Use a lambda.
4859 (string_read_description_xml): Update.
4860
04f5bab2
SM
48612020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4862
4863 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
4864 uses with type::endianity_is_not_default.
4865
db558e34
SM
48662020-09-14 Simon Marchi <simon.marchi@efficios.com>
4867
4868 * gdbtypes.h (struct type) <endianity_is_not_default,
4869 set_endianity_is_not_default>: New methods.
4870 (TYPE_ENDIANITY_NOT_DEFAULT): Use
4871 type::endianity_is_not_default, change all write call sites to
4872 use type::set_endianity_is_not_default.
4873
22c4c60c
SM
48742020-09-14 Simon Marchi <simon.marchi@efficios.com>
4875
4876 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
4877 uses with type::is_fixed_instance.
4878
9cdd0d12
SM
48792020-09-14 Simon Marchi <simon.marchi@efficios.com>
4880
4881 * gdbtypes.h (struct type) <is_fixed_instance,
4882 set_is_fixed_instance>: New methods.
4883 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
4884 write call sites to use type::set_is_fixed_instance.
4885
0becda7a
SM
48862020-09-14 Simon Marchi <simon.marchi@efficios.com>
4887
4888 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
4889 uses with type::is_gnu_ifunc.
4890
03cc7249
SM
48912020-09-14 Simon Marchi <simon.marchi@efficios.com>
4892
4893 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
4894 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
4895 use type::set_is_gnu_ifunc.
4896
3f46044c
SM
48972020-09-14 Simon Marchi <simon.marchi@efficios.com>
4898
4899 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
4900 uses with type::stub_is_supported.
4901
9baccff6
SM
49022020-09-14 Simon Marchi <simon.marchi@efficios.com>
4903
4904 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
4905 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
4906 use type::set_stub_is_supported.
4907
bd63c870
SM
49082020-09-14 Simon Marchi <simon.marchi@efficios.com>
4909
4910 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
4911 uses with type::is_vector.
4912
2062087b
SM
49132020-09-14 Simon Marchi <simon.marchi@efficios.com>
4914
4915 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
4916 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
4917 use type::set_is_vector.
4918
a409645d
SM
49192020-09-14 Simon Marchi <simon.marchi@efficios.com>
4920
4921 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
4922 uses with type::has_varargs.
4923
1d6286ed
SM
49242020-09-14 Simon Marchi <simon.marchi@efficios.com>
4925
4926 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
4927 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
4928 use type::set_has_varargs.
4929
7f9f399b
SM
49302020-09-14 Simon Marchi <simon.marchi@efficios.com>
4931
4932 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
4933 uses with type::is_prototyped.
4934
27e69b7a
SM
49352020-09-14 Simon Marchi <simon.marchi@efficios.com>
4936
4937 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
4938 New methods.
4939 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
4940 call sites to use type::set_is_prototyped.
4941
d2183968
SM
49422020-09-14 Simon Marchi <simon.marchi@efficios.com>
4943
4944 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
4945 uses with type::target_is_stub.
4946
8f53807e
SM
49472020-09-14 Simon Marchi <simon.marchi@efficios.com>
4948
4949 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
4950 New methods.
4951 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
4952 sites to use type::set_target_is_stub.
4953
e46d3488
SM
49542020-09-14 Simon Marchi <simon.marchi@efficios.com>
4955
4956 * gdbtypes.h (TYPE_STUB): Remove, replace all
4957 uses with type::is_stub.
4958
b4b73759
SM
49592020-09-14 Simon Marchi <simon.marchi@efficios.com>
4960
4961 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
4962 (TYPE_STUB): Use type::is_stub, change all write call sites to
4963 use type::set_is_stub.
4964
20ce4123
SM
49652020-09-14 Simon Marchi <simon.marchi@efficios.com>
4966
4967 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
4968 type::has_no_signedness.
4969
15152a54
SM
49702020-09-14 Simon Marchi <simon.marchi@efficios.com>
4971
4972 * gdbtypes.h (struct type) <has_no_signedness,
4973 set_has_no_signedness>: New methods.
4974 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
4975 call sites to use type::set_has_no_signedness.
4976
c6d940a9
SM
49772020-09-14 Simon Marchi <simon.marchi@efficios.com>
4978
4979 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
4980 type::is_unsigned.
4981
653223d3
SM
49822020-09-14 Simon Marchi <simon.marchi@efficios.com>
4983
4984 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
4985 methods.
4986 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
4987 sites to use type::set_is_unsigned.
4988
55ea94da 49892020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 4990 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 4991
e851246a
SM
4992 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
4993 pointer and stack frame offset when unwinding.
55ea94da 4994
6791b117
PA
49952020-09-13 Pedro Alves <pedro@palves.net>
4996
4997 * NEWS: Document "-break-insert --qualified".
4998 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
4999
77f2120b
PA
50002020-09-13 Pedro Alves <pedro@palves.net>
5001
5002 * linespec.c (classify_mtype, compare_msyms): Delete.
5003 (search_minsyms_for_name): Remove classification logic. Instead
5004 filter out trampoline symbols if we also found an external
5005 function of the same name.
5006
ed6a896c
JB
50072020-09-13 Joel Brobecker <brobecker@adacore.com>
5008
5009 * NEWS: Create a new section for the next release branch.
5010 Rename the section of the current branch, now that it has
5011 been cut.
5012
32aea73e
JB
50132020-09-13 Joel Brobecker <brobecker@adacore.com>
5014
5015 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
5016 * version.in: Bump version to 11.0.50.DATE-git.
5017
8087c3fa
JB
50182020-09-12 Joel Brobecker <brobecker@adacore.com>
5019
5020 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
5021
2a67f09d
FW
50222020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
5023 Felix Willgerodt <Felix.Willgerodt@intel.com>
5024
5025 * gdbarch.sh: Added bfloat16 type.
5026 * gdbarch.c: Regenerated.
5027 * gdbarch.h: Regenerated.
5028 * gdbtypes.c (floatformats_bfloat16): New struct.
5029 (gdbtypes_post_init): Add builtin_bfloat16.
5030 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
5031 (floatformats_bfloat16): New struct.
5032 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
5033 (i386_ymm_type): Add field "v16_bfloat16"
5034 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
5035 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
5036 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
5037 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
5038 * features/i386/64bit-avx512.xml: Add bfloat16 type.
5039 * features/i386/64bit-avx512.c: Regenerated.
5040 * features/i386/64bit-sse.xml: Add bfloat16 type.
5041 * features/i386/64bit-sse.c: Regenerated.
5042
1347d111
FW
50432020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
5044
5045 * i386-tdep.c (i386_zmm_type): Fix field names.
5046 (i386_ymm_type): Fix field names.
5047
7a4e8e7d
TBA
50482020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5049
5050 * breakpoint.c: Fix typo in the help message of the
5051 "set breakpoint condition-evaluation" command.
5052
cf4ac4be
KR
50532020-09-10 Kamil Rytarowski <n54@gmx.com>
5054
5055 * nbsd-nat.c: Include "nat/netbsd-nat.h".
5056 * (nbsd_nat_target::pid_to_exec_file)
5057 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
5058 (nbsd_nat_target::post_startup_inferior)
5059 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
5060 (nbsd_add_threads): Switch local code to common gdb/nat functions.
5061 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
5062 * (nbsd_thread_lister): Remove.
5063
f404573e
KR
50642020-09-10 Kamil Rytarowski <n54@gmx.com>
5065
5066 * fork-inferior.c (startup_inferior): Avoid double free.
5067
1ccb2c17
KR
50682020-09-10 Kamil Rytarowski <n54@gmx.com>
5069
5070 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
5071 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
5072
feedfcc7
KR
50732020-09-10 Kamil Rytarowski <n54@gmx.com>
5074
5075 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
5076 * netbsd-nat.c: Include <sys/ptrace.h>.
5077 * (netbsd_nat::enable_proc_events): Add.
5078
c489f8c6
KR
50792020-09-10 Kamil Rytarowski <n54@gmx.com>
5080
5081 * netbsd-nat.h: Include "gdbsupport/function-view.h".
5082 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5083 (netbsd_nat::for_each_thread): Add.
5084 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
5085 "gdbsupport/common-debug.h".
5086 * (netbsd_nat::netbsd_thread_lister)
5087 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5088 (netbsd_nat::for_each_thread): Add.
5089
330662f6
KR
50902020-09-10 Kamil Rytarowski <n54@gmx.com>
5091
5092 * netbsd-nat.h: Include <unistd.h>.
5093 * (netbsd_nat::pid_to_exec_file): Add.
5094 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
5095 * (netbsd_nat::pid_to_exec_file) Add.
5096
70b67307
KR
50972020-09-10 Kamil Rytarowski <n54@gmx.com>
5098
5099 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
5100
99cf6da6
KR
51012020-09-10 Kamil Rytarowski <n54@gmx.com>
5102
5103 * netbsd-nat.h: New file.
5104 * netbsd-nat.c: Likewise.
5105
1b788fb6
TT
51062020-09-09 Tom Tromey <tromey@adacore.com>
5107
5108 * ada-lang.c (remove_extra_symbols): Do not increment when
5109 removing an element
5110
03b0a45f
TT
51112020-09-08 Tom Tromey <tromey@adacore.com>
5112
5113 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
5114
3cae4447
TT
51152020-09-08 Tom Tromey <tromey@adacore.com>
5116
5117 PR win32/25302:
5118 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
5119 (gdb_bfd_init_data): New function.
5120 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
5121
7f08fd51
TBA
51222020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5123
5124 * infrun.c (fetch_inferior_event): Use
5125 `switch_to_target_no_thread` to switch the target.
5126
3e6ff933
TT
51272020-09-06 Tom Tromey <tom@tromey.com>
5128
5129 * symfile.h (dwarf2_free_objfile): Don't declare.
5130
e56798df
AKS
51312020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5132
5133 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
5134 to match 16 byte real/complex type generated by Flang compiler.
5135
8f5c6526
TV
51362020-09-03 Tom de Vries <tdevries@suse.de>
5137
5138 PR breakpoint/26546
5139 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
5140 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
5141
c5065df0
SM
51422020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
5143
5144 * maint.c (index_digits): New function.
5145 (struct maint_print_section_data): Remove.
5146 (print_bfd_section_info): Remove print_data parameter, add arg
5147 and index_digits.
5148 (print_objfile_section_info): Likewise.
5149 (print_bfd_section_info_maybe_relocated): Likewise (plus
5150 objfile).
5151 (maintenance_info_sections): Adjust calls.
5152
02c6f3f1
TT
51532020-09-02 Tom Tromey <tromey@adacore.com>
5154
5155 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
5156 for null pointers.
5157 (ada_varobj_adjust_for_child_access): Special-case null pointers.
5158
ef5e5b0b
SM
51592020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
5160
5161 * bcache.h (struct bcache) <insert>: Change type of `added` to
5162 pointer to bool.
5163 * bcache.c (bcache::insert): Likewise.
5164 * gdbtypes.c (check_types_worklist): Adjust.
5165 * psymtab.c (add_psymbol_to_bcache): Adjust.
5166
973695d6
KB
51672020-08-31 Kevin Buettner <kevinb@redhat.com>
5168
5169 * corelow.c (unordered_set): Include.
5170 (class core_target): Add field 'm_core_unavailable_mappings'.
5171 (core_target::build_file_mappings): Print only one warning
5172 per inaccessible file. Add unavailable/broken mappings
5173 to m_core_unavailable_mappings.
5174 (core_target::xfer_partial): Call...
5175 (core_target::xfer_memory_via_mappings): New method.
5176
264fc0e2
SM
51772020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5178
5179 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
5180 type to bool.
5181
2de01bdb
SM
51822020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5183
5184 * dwarf2/read.c (struct field_info): Fix indentation.
5185
f3bd50f1
SM
51862020-08-31 Simon Marchi <simon.marchi@efficios.com>
5187
5188 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
5189 ordering in comment.
5190 * frame.c (frame_id_eq): Fix indentation.
5191
22b9b4b0
SL
51922020-08-31 Scott Linder <scott@scottlinder.com>
5193 Simon Marchi <simon.marchi@efficios.com>
5194
5195 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
5196 inline frame ids in outer frame.
5197
84154d16
SM
51982020-08-31 Simon Marchi <simon.marchi@efficios.com>
5199
5200 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
5201 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
5202 (outer_frame_id): Use FID_STACK_OUTER instead of
5203 FID_STACK_INVALID.
5204 (frame_id_p): Don't check for outer_frame_id.
5205
8efaf6b3
SM
52062020-08-31 Simon Marchi <simon.marchi@efficios.com>
5207
5208 * frame-unwind.c (frame_unwind_got_optimized): Don't set
5209 regnum/frame in value. Call allocate_value_lazy.
5210 * frame.c (frame_unwind_register_value): Use
5211 val_print_not_saved.
5212
fe1fe7ea
SM
52132020-08-31 Simon Marchi <simon.marchi@efficios.com>
5214
5215 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
5216
f7c7700d
PA
52172020-08-29 Pedro Alves <pedro@palves.net>
5218
5219 * progspace.c (print_program_space): Use all_inferiors. Switch to
5220 the inferior before calling target_pid_to_str.
5221
e0814aae
TT
52222020-08-28 Tom Tromey <tom@tromey.com>
5223
5224 * xcoffread.c (xcoff_end_psymtab): Update comment.
5225 * dbxread.c (dbx_end_psymtab): Update comment.
5226
626d2320
TV
52272020-08-28 Tom de Vries <tdevries@suse.de>
5228
5229 PR breakpoint/26544
5230 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
5231 event_location.
5232 (create_breakpoint): Same.
5233 (base_breakpoint_decode_location): Same.
5234 (bkpt_create_sals_from_location): Same.
5235 (bkpt_decode_location): Same.
5236 (bkpt_probe_create_sals_from_location): Same.
5237 (bkpt_probe_decode_location): Same.
5238 (tracepoint_create_sals_from_location): Same.
5239 (tracepoint_decode_location): Same.
5240 (tracepoint_probe_decode_location): Same.
5241 (strace_marker_create_sals_from_location): Same.
5242 (strace_marker_decode_location): Same.
5243 (create_sals_from_location_default): Same.
5244 (decode_location_default): Same.
5245 * breakpoint.h (struct breakpoint_ops): Same.
5246 (create_breakpoint): Same.
5247 * linespec.h (decode_line_full): Same.
5248 * linespec.c (decode_line_full): Same. Throw error if
5249 result.size () == 0.
5250
df631783
PA
52512020-08-27 Pedro Alves <pedro@palves.net>
5252
5253 PR gdb/26524
5254 * breakpoint.c (until_break_fsm) <location_breakpoint,
5255 caller_breakpoint>: Delete fields.
5256 <breakpoints>: New field.
5257 <until_break_fsm>: Adjust to save a breakpoint vector instead of
5258 two individual breakpoints.
5259 (until_break_fsm::should_stop): Loop over breakpoints in the
5260 breakpoint vector.
5261 (until_break_fsm::clean_up): Adjust to clear the breakpoints
5262 vector.
5263 (until_break_command): Handle location expanding into multiple
5264 sals.
5265
b2b38aa4
PA
52662020-08-27 Pedro Alves <pedro@palves.net>
5267
5268 PR gdb/26523
5269 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
5270 bp_until breakpoints user-specified locations. Update intro
5271 comment.
5272
b886559f
SM
52732020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
5274
5275 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
5276 gdb_bfd_sections): New.
5277 * maint.c (print_bfd_section_info): Change param type to
5278 maint_print_section_data.
5279 (print_objfile_section_info): Likewise.
5280 (print_bfd_section_info_maybe_relocated): Likewise.
5281 (maintenance_info_sections): Use gdb_bfd_sections.
5282
4c6e63bf
SV
52832020-08-25 Shahab Vahedi <shahab@synopsys.com>
5284
5285 * MAINTAINERS: Add ARC target and maintainer.
5286
8d7f0635
AK
52872020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
5288
5289 * configure.tgt: ARC support for GNU/Linux.
5290 * Makefile.in (ALL_TARGET_OBJS): Likewise.
5291 * arc-linux-tdep.c: New file.
5292 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
5293 * arc-tdep.c (arc_write_pc): Use it.
5294
fdd8731b
SV
52952020-08-25 Shahab Vahedi <shahab@synopsys.com>
5296
5297 * arc-tdep.c (arc_check_for_hardware_loop): New.
5298 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
5299
22459524
SV
53002020-08-25 Shahab Vahedi <shahab@synopsys.com>
5301
5302 * arc-tdep.h: Include "gdbarch.h".
5303
995d3a19
SV
53042020-08-25 Shahab Vahedi <shahab@synopsys.com>
5305
5306 * arch/arc.h
5307 (arc_gdbarch_features): New class to stir the selection of target XML.
5308 (arc_create_target_description): Use FEATURES to choose XML target.
5309 (arc_lookup_target_description): Use arc_create_target_description
5310 to create _new_ target descriptions or return the already created
5311 ones if the FEATURES is the same.
5312 * arch/arc.c: Implementation of prototypes described above.
5313 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
5314 (arc_gdbarch_features_init): Initialize the FEATURES struct.
5315 * arc-tdep.c (*_feature_name): Make feature names consistent.
5316 (arc_register_feature): A new struct to hold information about
5317 registers of a particular target/feature.
5318 (arc_check_tdesc_feature): Check if XML provides registers in
5319 compliance with ARC_REGISTER_FEATURE structs.
5320 (arc_update_acc_reg_names): Add aliases for r58 and r59.
5321 (determine_*_reg_feature_set): Which feature name to look for.
5322 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
5323 (mach_type_to_arc_isa): Convert from a set of binutils machine types
5324 to expected ISA enums to be used in arc_gdbarch_features structs.
5325 * features/Makefile (FEATURE_XMLFILES): Add new files.
5326 * gdb/features/arc/v1-aux.c: New file.
5327 * gdb/features/arc/v1-aux.xml: Likewise.
5328 * gdb/features/arc/v1-core.c: Likewise.
5329 * gdb/features/arc/v1-core.xml: Likewise.
5330 * gdb/features/arc/v2-aux.c: Likewise.
5331 * gdb/features/arc/v2-aux.xml: Likewise.
5332 * gdb/features/arc/v2-core.c: Likewise.
5333 * gdb/features/arc/v2-core.xml: Likewise.
5334 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
5335
3945d2d7
GM
53362020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
5337 Andrew Burgess <andrew.burgess@embecosm.com>
5338
5339 PR m2/26372
fc5d6901 5340 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
5341 an assert. Remove single element array indexing pattern as the
5342 MULTI_SUBSCRIPT support will handle this case too.
5343
2677f2d3
SM
53442020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
5345
5346 * value.h (valprint_check_validity): Move declaration from
5347 here...
5348 * valprint.h (valprint_check_validity): ... to here.
5349
c426fddb
SM
53502020-08-24 Simon Marchi <simon.marchi@efficios.com>
5351
5352 * debug.h: New file.
5353 * debug.c (debug_prefixed_vprintf): New function.
5354 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
5355 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
5356
1eb8556f
SM
53572020-08-24 Simon Marchi <simon.marchi@efficios.com>
5358
5359 * infrun.h (infrun_debug_printf_1): New function declaration.
5360 (infrun_debug_printf): New macro.
5361 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
5362 throughout.
5363 (infrun_debug_printf): New function.
5364 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
5365 (handle_jit_event): Likewise.
5366
b8fff44e
MW
53672020-08-21 Mark Wielaard <mark@klomp.org>
5368
5369 * ada-lex.l: Extend register warnings diagnostics comment for g++.
5370
d19c3068
SM
53712020-08-22 Simon Marchi <simon.marchi@efficios.com>
5372
5373 * frame.c (enum class frame_id_status): New.
5374 (struct frame_info) <this_id::p>: Change type to frame_id_status.
5375 (fprintf_frame): Update.
5376 (compute_frame_id): Set frame id status to "computing" on entry.
5377 Set it back to "not_computed" on failure and to "computed" on
5378 success.
5379 (get_frame_id): Assert the frame id is not being computed.
5380 (create_sentinel_frame): Use frame_id_status::COMPUTED.
5381 (create_new_frame): Likewise.
5382 (frame_cleanup_after_sniffer): Update assert.
5383
b70e516e
SM
53842020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5385
5386 * regcache.c (pid_ptid_regcache_map): New type.
5387 (target_ptid_regcache_map): Remove.
5388 (target_pid_ptid_regcache_map): New type.
5389 (regcaches): Change type to target_pid_ptid_regcache_map.
5390 (get_thread_arch_aspace_regcache): Update.
5391 (regcache_thread_ptid_changed): Update, handle pid-like ptid
5392 case.
5393 (regcaches_size): Update.
5394 (regcache_count): Update.
5395 (registers_changed_ptid_target_pid_test): New.
5396 (_initialize_regcache): Register new test.
5397
cdd9148a
SM
53982020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5399
5400 * regcache.c (regcache_count): New.
5401 (struct regcache_test_data): New.
5402 (regcache_test_data_up): New.
5403 (populate_regcaches_for_test): New.
5404 (regcaches_test): Remove.
5405 (get_thread_arch_aspace_regcache_test): New.
5406 (registers_changed_ptid_all_test): New.
5407 (registers_changed_ptid_target_test): New.
5408 (registers_changed_ptid_target_ptid_test): New.
5409 (regcache_thread_ptid_changed): Remove regcache_count lambda.
5410 (_initialize_regcache): Register new tests.
5411
dd125343
SM
54122020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5413
5414 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
5415 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
5416 gdbarch and aspace parameter. Use current inferior's aspace.
5417 Validate regcache's arch value.
5418 (regcaches_test): Update.
5419
3ee93972
SM
54202020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5421
5422 * regcache.c (regcaches_test): Call registers_changed.
5423
33bf4c5c
TBA
54242020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5425
5426 * infrun.c (process_event_stop_test): Fix typo "breapoint".
5427
c2fd7fae
AKS
54282020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5429
5430 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
5431 to find the end of prologue for flang compiled binaries.
5432 * arm-tdep.c (arm_skip_prologue): Likewise.
5433 * i386-tdep.c (i386_skip_prologue): Likewise.
5434 * producer.c (producer_is_llvm): New function.
5435 (producer_parsing_tests): Added new tests for clang/flang.
5436 * producer.h (producer_is_llvm): New declaration.
5437
9327494e
SM
54382020-08-18 Simon Marchi <simon.marchi@efficios.com>
5439
5440 * linux-nat.c (linux_nat_debug_printf): New function.
5441 (linux_nat_debug_printf_1): New macro. Use throughout the file.
5442
d138725a
AM
54432020-08-18 Aaron Merey <amerey@redhat.com>
5444
5445 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
5446 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
5447 (CLIBS): Add DEBUGINFOD_LIBS.
5448
f9b11e6b
ST
54492020-08-17 Sergei Trofimovich <siarheit@google.com>
5450
5451 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
5452 'gdbarch_num_regs'.
5453
3ae7ab99
TT
54542020-08-17 Tom Tromey <tromey@adacore.com>
5455
5456 * ada-varobj.c (ada_varobj_decode_var): Handle case where
5457 ada_get_decoded_value returns NULL.
5458
b017825f
TT
54592020-08-17 Tom Tromey <tromey@adacore.com>
5460
5461 * python/py-inferior.c (infpy_search_memory): Use
5462 gdb_py_object_from_ulongest.
5463 * python/py-infevents.c (create_inferior_call_event_object)
5464 (create_memory_changed_event_object): Use
5465 gdb_py_object_from_ulongest.
5466 * python/py-linetable.c (ltpy_entry_get_pc): Use
5467 gdb_py_object_from_ulongest.
5468
7635cf79
SM
54692020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5470
5471 * loc.c (class symbol_needs_eval_context): Fix indentation.
5472
f54be24b
SM
54732020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5474
5475 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
5476 bool.
5477
53d5a2a5
TV
54782020-08-17 Tom de Vries <tdevries@suse.de>
5479
5480 PR gdb/26393
5481 * gdbtypes.c (dump_dynamic_prop): New function.
5482 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
5483
547ce8f0
TV
54842020-08-15 Tom de Vries <tdevries@suse.de>
5485
5486 PR backtrace/26390
5487 * stack.c (print_frame_args): Temporarily set the selected
5488 frame to FRAME while printing the frame's arguments.
5489
6ea815e7
PFC
54902020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5491
5492 PR breakpoints/26385
5493 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
5494 Always clear watchpoint with PTRACE_SET_DEBUGREG.
5495
6e562fa3
PFC
54962020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5497
5498 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
5499 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
5500 and >= to check return value instead of == -1 and != -1.
5501
d369b608
SM
55022020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
5503
5504 * utils.h (class gdb_argv) <as_array_view>: New method.
5505 * utils.c (gdb_argv_as_array_view_test): New.
5506 (_initialize_utils): Register selftest.
5507 * maint.c (maintenance_selftest): Use the new method.
5508
b31488a3
KR
55092020-08-13 Kamil Rytarowski <n54@gmx.com>
5510
5511 * target.h (supports_dumpcore, dumpcore): New
5512 function declarations.
5513 * target.c (supports_dumpcore, dumpcore): New
5514 functions.
5515 * target-delegates.c: Rebuild.
5516 * gcore.c (gcore_command): Use target_supports_dumpcore ()
5517 and target_dumpcore ().
5518
002a3166
AM
55192020-08-13 Aaron Merey <amerey@redhat.com>
5520
5521 * debuginfod-support.c: Replace global variables with user_data.
5522
ece5bc8a
SM
55232020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
5524
5525 * maint.c (maintenance_selftest): Split args and pass array_view
5526 to run_tests.
5527
6d8a0a5e
LM
55282020-08-12 Luis Machado <luis.machado@linaro.org>
5529
5530 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
5531 type's length.
5532 Use %s and pulongest to print the length.
5533
7cf663a9
PA
55342020-08-12 Pedro Alves <palves@redhat.com>
5535
5536 * NEWS: Move "Multi-target debugging support" item to the
5537 "Changes since GDB 9" section.
5538
27c7b875
PA
55392020-08-12 Pedro Alves <palves@redhat.com>
5540
5541 PR gdb/26336
5542 * progspace.c (program_space::remove_objfile): Invalidate the
5543 frame cache.
5544
1796a2a1
TV
55452020-08-11 Tom de Vries <tdevries@suse.de>
5546
5547 * MAINTAINERS: Mark ms1 as deleted.
5548
f8e3fe0d
LM
55492020-08-10 Luis Machado <luis.machado@linaro.org>
5550
5551 PR gdb/26310
5552
5553 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
5554 act accordingly.
5555 (aarch64_analyze_prologue_test): Add more unit tests to exercise
5556 movz/str/stur/stp skipping behavior.
5557
cc308722
LM
55582020-08-10 Luis Machado <luis.machado@linaro.org>
5559
5560 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
5561 struct user_sve_header instead of struct sve_context.
5562
041d9819
SM
55632020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
5564
5565 * read.h (dwarf2_fetch_die_loc_sect_off,
5566 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
5567 `void *` parameter with function_view.
5568 * read.c (dwarf2_fetch_die_loc_sect_off,
5569 dwarf2_fetch_die_loc_cu_off): Likewise.
5570 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
5571 (per_cu_dwarf_call): Adjust.
5572 (get_frame_address_in_block_wrapper): Remove.
5573 (indirect_synthetic_pointer): Adjust.
5574 (get_ax_pc): Remove.
5575 (dwarf2_compile_expr_to_ax): Adjust.
5576
38f8aa06
TV
55772020-08-08 Tom de Vries <tdevries@suse.de>
5578
5579 PR build/26344
5580 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
5581 constructor.
5582 * regcache.c (get_thread_arch_aspace_regcache): Same.
5583
a52b3ae2
TT
55842020-08-07 Tom Tromey <tromey@adacore.com>
5585
5586 * ravenscar-thread.c
5587 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
5588 New method.
5589 (ravenscar_thread_target::wait): Check
5590 runtime_initialized.
5591 (ravenscar_thread_target::prepare_to_store)
5592 (ravenscar_thread_target::stopped_by_sw_breakpoint)
5593 (ravenscar_thread_target::stopped_by_hw_breakpoint)
5594 (ravenscar_thread_target::stopped_by_watchpoint)
5595 (ravenscar_thread_target::stopped_data_address)
5596 (ravenscar_thread_target::core_of_thread): Use
5597 scoped_restore_current_thread and
5598 set_base_thread_from_ravenscar_task.
5599
0e29517d
TT
56002020-08-07 Tom Tromey <tromey@adacore.com>
5601
5602 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
5603
592f9bd7
TT
56042020-08-07 Tom Tromey <tromey@adacore.com>
5605
5606 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
5607 update_inferior_ptid before update_thread_list.
5608 (temporarily_change_regcache_ptid): New class.
5609 (ravenscar_thread_target::fetch_registers)
5610 (ravenscar_thread_target::store_registers)
5611 (ravenscar_thread_target::prepare_to_store): Use base thread when
5612 forwarding operation.
5613
39e2018a
TT
56142020-08-07 Tom Tromey <tromey@adacore.com>
5615
5616 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
5617 "is_pid" case.
5618
2080266b
TT
56192020-08-07 Tom Tromey <tromey@adacore.com>
5620
5621 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
5622 New methods.
5623 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
5624 first.
5625 (ravenscar_thread_target::add_thread): Rename from
5626 ravenscar_add_thread.
5627 (ravenscar_thread_target::update_thread_list): Use a lambda.
5628 (ravenscar_thread_target::xfer_partial): New method.
5629
78c02f21
TT
56302020-08-07 Tom Tromey <tromey@adacore.com>
5631
5632 * ada-lang.h (ada_task_list_iterator_ftype): Now a
5633 gdb::function_view.
5634 (iterate_over_live_ada_tasks): Change type of argument.
5635 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
5636 of argument.
5637
d5d833af
TT
56382020-08-07 Tom Tromey <tromey@adacore.com>
5639
5640 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
5641 Remove.
5642 (ravenscar_thread_target::extra_thread_info): Remove.
5643 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
5644 defer to target beneath for non-Ravenscar threads.
5645
a8ac85bb
TT
56462020-08-07 Tom Tromey <tromey@adacore.com>
5647
5648 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
5649 get_base_thread_from_ravenscar_task>: Now methods.
5650 <m_cpu_map>: New member.
5651 (ravenscar_thread_target::get_thread_base_cpu): Rename from
5652 ravenscar_get_thread_base_cpu. Check m_cpu_map.
5653 (ravenscar_thread_target::task_is_currently_active): Update.
5654 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
5655 Now a method.
5656 (ravenscar_thread_target::add_active_thread): Put initial thread
5657 into the m_cpu_map.
5658
550ab58d
TT
56592020-08-07 Tom Tromey <tromey@adacore.com>
5660
5661 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
5662 event_ptid.
5663
e9546579
TT
56642020-08-07 Tom Tromey <tromey@adacore.com>
5665
5666 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
5667 runtime_initialized.
5668
3d4470e5
TT
56692020-08-07 Tom Tromey <tromey@adacore.com>
5670
5671 * ravenscar-thread.c (ravenscar_thread_target): Don't call
5672 add_active_thread.
5673 (ravenscar_thread_target::add_active_thread): Now public.
5674 (ravenscar_inferior_created): Call add_active_thread after pushing
5675 the target.
5676
888bdb2b
SM
56772020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
5678
5679 * regcache.c (ptid_regcache_map): New type.
5680 (target_ptid_regcache_map): New type.
5681 (regcaches): Change type to target_ptid_regcache_map.
5682 (get_thread_arch_aspace_regcache): Update to regcaches' new
5683 type.
5684 (regcache_thread_ptid_changed): Likewise.
5685 (registers_changed_ptid): Likewise.
5686 (regcaches_size): Likewise.
5687 (regcaches_test): Update.
5688 (regcache_thread_ptid_changed): Update.
5689 * regcache.h (regcache_up): New type.
5690 * gdbsupport/ptid.h (hash_ptid): New struct.
5691
b161a60d
SM
56922020-08-07 Simon Marchi <simon.marchi@efficios.com>
5693
5694 * observable.h (thread_ptid_changed): Add parameter
5695 `process_stratum_target *`.
5696 * infrun.c (infrun_thread_ptid_changed): Add parameter
5697 `process_stratum_target *` and use it.
5698 (selftests): New namespace.
5699 (infrun_thread_ptid_changed): New function.
5700 (_initialize_infrun): Register selftest.
5701 * regcache.c (regcache_thread_ptid_changed): Add parameter
5702 `process_stratum_target *` and use it.
5703 (regcache_thread_ptid_changed): New function.
5704 (_initialize_regcache): Register selftest.
5705 * thread.c (thread_change_ptid): Pass target to
5706 thread_ptid_changed observable.
5707
d2854d8d
CT
57082020-08-06 Caroline Tice <cmtice@google.com>
5709
fe4c3d43
SM
5710 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
5711 (struct dwp_sections): Update field comments. Add loclists and
5712 rnglists fields.
5713 (struct virtual_v2_dwo_sections): Rename struct to
5714 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
5715 size & offset fields for loclists and rnglists.
5716 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
5717 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
5718 skipping dummy type units.
5719 (create_dwp_hash_table): Update the large comment above the function to
5720 discuss Version 5 DWP files as well, with references. Update all the
5721 version checks in the function to check for version 5 as well. Add new
5722 section at the end to create dwp hash table for version 5.
5723 (create_dwp_v2_section): Rename function to
5724 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
5725 Add V5 to error message text.
5726 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
5727 into calls to create_dwp_v2_or_v5_section.
5728 (create_dwo_unit_in_dwp_v5): New function.
5729 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
5730 check for version2; add else clause to handle version 5.
5731 (open_and_init_dwo_file): Add code to check dwarf version & only call
5732 create_debug_types_hash_table (with sections.types) if version is not 5;
5733 else call create_debug_type_hash_table, with sections.info.
5734 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
5735 version 5.
5736 (dwarf2_locate_v5_dwp_sections): New function.
5737 (open_and_init_dwp_file): Add else-if clause for version 5 to call
5738 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 5739
159ed7d9
SM
57402020-08-06 Simon Marchi <simon.marchi@efficios.com>
5741
5742 * regcache.h (class regcache): Remove friend
5743 registers_changed_ptid.
5744 <regcache_thread_ptid_changed>: Remove.
5745 <regcaches>: Remove.
5746 * regcache.c (regcache::regcaches): Rename to...
5747 (regcaches): ... this. Make static.
5748 (get_thread_arch_aspace_regcache): Update.
5749 (regcache::regcache_thread_ptid_changed): Rename to...
5750 (regcache_thread_ptid_changed): ... this. Update.
5751 (class regcache_access): Remove.
5752 (regcaches_test): Update.
5753 (_initialize_regcache): Update.
5754 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
5755 <forward_list>.
5756
174981ae
SM
57572020-08-06 Simon Marchi <simon.marchi@efficios.com>
5758
5759 * regcache.h (class regcache) <current_regcache>: Rename to...
5760 <regcaches>: ... this. Move doc here.
5761 * regcache.c (regcache::current_regcache) Rename to...
5762 (regcache::regcaches): ... this. Move doc to header.
5763 (get_thread_arch_aspace_regcache): Update.
5764 (regcache::regcache_thread_ptid_changed): Update.
5765 (registers_changed_ptid): Update.
5766 (class regcache_access) <current_regcache_size>: Rename to...
5767 <regcaches_size>: ... this.
5768 (current_regcache_test): Rename to...
5769 (regcaches_test): ... this.
5770 (_initialize_regcache): Update.
5771
ed908db6
VC
57722020-08-06 Victor Collod <vcollod@nvidia.com>
5773
5774 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
5775
b5582ab7
KB
57762020-08-05 Kevin Buettner <kevinb@redhat.com>
5777
5778 * corelow.c (core_target::build_file_mappings): Don't output
5779 null pathname in warning.
5780
ea946b86
SM
57812020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
5782
5783 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
5784 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
5785 gdb.dwarf2/dw2-single-line-discriminators.exp,
5786 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
5787
57d02173
TT
57882020-08-05 Tom Tromey <tromey@adacore.com>
5789
5790 PR rust/26197:
5791 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
5792 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
5793 Fix off-by-one and type size errors in ordinary case.
5794
5555c86d
TV
57952020-08-05 Tom de Vries <tdevries@suse.de>
5796
5797 * gdbtypes.c (type_not_allocated, type_not_associated): Use
5798 "prop->const_val () == 0" instead of "prop->const_val () != 0".
5799
97916bfe
SM
58002020-08-04 Simon Marchi <simon.marchi@efficios.com>
5801
5802 * frame.h (frame_id_p): Return bool.
5803 (frame_id_artificial_p): Return bool.
5804 (frame_id_eq): Return bool.
5805 (has_stack_frames): Return bool.
5806 (get_selected_frame): Fix typo in comment.
5807 (get_frame_pc_if_available): Return bool.
5808 (get_frame_address_in_block_if_available): Return bool.
5809 (get_frame_func_if_available): Return bool.
5810 (read_frame_register_unsigned): Return bool.
5811 (get_frame_register_bytes): Return bool.
5812 (safe_frame_unwind_memory): Return bool.
5813 (deprecated_frame_register_read): Return bool.
5814 (frame_unwinder_is): Return bool.
5815 * frame.c (struct frame_info) <prev_arch::p>: Change type to
5816 bool.
5817 <this_id::p>: Likewise.
5818 <prev_p>: Likewise.
5819 (frame_stash_add): Return bool.
5820 (get_frame_id): Use bool.
5821 (frame_id_build_special) Use bool.
5822 (frame_id_build_unavailable_stack): Use bool.
5823 (frame_id_build): Use bool.
5824 (frame_id_p): Return bool, use true/false instead of 1/0.
5825 (frame_id_artificial_p): Likewise.
5826 (frame_id_eq): Likewise.
5827 (frame_id_inner): Likewise.
5828 (get_frame_func_if_available): Likewise.
5829 (read_frame_register_unsigned): Likewise.
5830 (deprecated_frame_register_read): Likewise.
5831 (get_frame_register_bytes): Likewise.
5832 (has_stack_frames): Likewise.
5833 (inside_main_func): Likewise.
5834 (inside_entry_func): Likewise.
5835 (get_frame_pc_if_available): Likewise.
5836 (get_frame_address_in_block_if_available): Likewise.
5837 (frame_unwinder_is): Likewise.
5838 (safe_frame_unwind_memory): Likewise.
5839 (frame_unwind_arch): Likewise.
5840
fedfee88
SM
58412020-08-04 Simon Marchi <simon.marchi@efficios.com>
5842
5843 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
5844 type to cached_copy_status.
5845 (fprintf_frame): Adjust.
5846 (get_frame_func_if_available): Adjust.
5847 (frame_cleanup_after_sniffer): Adjust.
5848
6cfa9b59
MW
58492020-08-04 Mark Wielaard <mark@klomp.org>
5850
5851 * MAINTAINERS (Write After Approval): Update email address.
5852
66d6346b
SM
58532020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5854
5855 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
5856 dynamic_prop::const_val.
5857
8a6d5e35
SM
58582020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5859
5860 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
5861 dynamic_prop::kind.
5862
51d6067d
SM
58632020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5864
5865 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
5866
b26e2ae7
JM
58672020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
5868
5869 * configure.tgt: Set gdb_sim for bpf-*-* targets.
5870
39791af2
JM
58712020-08-04 Weimin Pan <weimin.pan@oracle.com>
5872 Jose E. Marchesi <jose.marchesi@oracle.com>
5873
5874 * configure.tgt: Add entry for bpf-*-*.
5875 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
5876 (ALLDEPFILES): Add bpf-tdep.c.
5877 * bpf-tdep.c: New file.
5878 * MAINTAINERS: Add bpf target and maintainer.
5879 * NEWS: Mention the support for the new target.
5880
521894aa
TV
58812020-08-04 Tom de Vries <tdevries@suse.de>
5882
5883 PR symtab/23270
5884 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
5885 Error.
5886
5d6356e9
JB
58872020-08-03 John Baldwin <jhb@FreeBSD.org>
5888
5889 * syscalls/freebsd.xml: Regenerate.
5890
0cf82b81
JB
58912020-08-03 John Baldwin <jhb@FreeBSD.org>
5892
5893 * syscalls/update-freebsd.sh: Fix usage and year range.
5894
8f34b746
TV
58952020-08-03 Tom de Vries <tdevries@suse.de>
5896
5897 PR symtab/26333
5898 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
5899 DW_LNE_lo_user/DW_LNE_hi_user range.
5900
5e500d33
SM
59012020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
5902
5903 PR ada/26318
5904 * ada-lang.c (ada_modulus): Return 0 if property is not of const
5905 kind.
5906
78319c15
TBA
59072020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5908
5909 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
5910
4c55e970
TBA
59112020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5912
5913 * breakpoint.c (set_breakpoint_condition): Update the condition
5914 expressions after checking that the input condition string parses
5915 successfully and does not contain junk at the end.
5916
1e620590
TBA
59172020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5918
5919 * breakpoint.c (set_breakpoint_condition): Update the
5920 condition string after parsing the new condition successfully.
5921
c8693053
RO
59222020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5923
5924 * proc-api.c (_STRUCTURED_PROC): Don't define.
5925 * proc-events.c: Likewise.
5926 * proc-flags.c: Likewise.
5927 * proc-why.c: Likewise.
5928 * procfs.c: Likewise.
5929
5930 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
5931 * configure, config.in: Regenerate.
5932
5a99adb8
TV
59332020-07-30 Tom de Vries <tdevries@suse.de>
5934
5935 PR build/26320
5936 * ui-style.h (struct ui_file_style::color): Wrap m_value and
5937 m_red/m_green/m_blue in a union.
5938
8ba83e91
TV
59392020-07-29 Tom de Vries <tdevries@suse.de>
5940
5941 PR tdep/26280
5942 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
5943
f75a0693
AB
59442020-07-28 Tom Tromey <tromey@adacore.com>
5945
5946 PR symtab/26270:
5947 * symtab.h (find_pc_partial_function_sym): Declare.
5948 * cli/cli-cmds.c (disassemble_command): Use
5949 find_pc_partial_function_sym. Check asm_demangle.
5950 * blockframe.c (cache_pc_function_sym): New global.
5951 (cache_pc_function_name): Remove.
5952 (clear_pc_function_cache): Update.
5953 (find_pc_partial_function_sym): New function, from
5954 find_pc_partial_function.
5955 (find_pc_partial_function): Rewrite using
5956 find_pc_partial_function_sym.
5957
16f3242c
TT
59582020-07-28 Tom Tromey <tromey@adacore.com>
5959
5960 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
5961 help. Add usage.
5962
4888741a
TT
59632020-07-28 Tom Tromey <tromey@adacore.com>
5964
5965 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
5966 <DW_OP_GNU_variable_value>: Cast to address type.
5967
4d46f402
KR
59682020-07-28 Kamil Rytarowski <n54@gmx.com>
5969
5970 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
5971 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
5972 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
5973 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
5974 (nbsd_get_siginfo_type): New.
5975 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
5976 (_initialize_nbsd_tdep): New.
5977
d70f978b
L
59782020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5979
5980 PR binutils/26301
5981 * configure: Regenerated.
5982
377170fa
L
59832020-07-28 H.J. Lu <hongjiu.lu@intel.com>
5984
5985 PR binutils/26301
5986 * configure: Regenerated.
5987
43d5901d
AB
59882020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
5989
5990 * python/py-frame.c: Remove 'user-regs.h' include.
5991 (frapy_read_register): Rewrite to make use of
5992 gdbpy_parse_register_id.
5993 * python/py-registers.c (gdbpy_parse_register_id): New function,
5994 moved here from python/py-unwind.c. Updated the return type, and
5995 also accepts register descriptor objects.
5996 * python/py-unwind.c: Remove 'user-regs.h' include.
5997 (pyuw_parse_register_id): Moved to python/py-registers.c.
5998 (unwind_infopy_add_saved_register): Update to use
5999 gdbpy_parse_register_id.
6000 (pending_framepy_read_register): Likewise.
6001 * python/python-internal.h (gdbpy_parse_register_id): Declare.
6002
14fa8fb3
AB
60032020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6004
6005 * python/py-registers.c: Add 'user-regs.h' include.
6006 (register_descriptor_iter_find): New function.
6007 (register_descriptor_iterator_object_methods): New static global
6008 methods array.
6009 (register_descriptor_iterator_object_type): Add pointer to methods
6010 array.
6011
ddce1758
JB
60122020-07-27 John Baldwin <jhb@FreeBSD.org>
6013
6014 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
6015 for all architectures on FreeBSD 11.3 and later.
6016
a4089f52
TT
60172020-07-27 Tom Tromey <tromey@adacore.com>
6018
6019 * gcore.h (load_corefile): Don't declare.
6020
95420d30
TV
60212020-07-27 Tom de Vries <tdevries@suse.de>
6022
6023 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
6024 * config.in: Regenerate.
6025 * configure: Regenerate.
6026
05a6b8c2
EZ
60272020-07-26 Eli Zaretskii <eliz@gnu.org>
6028
6029 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
6030 ws2tcpip.h. When checking whether socklen_t type is defined, use
6031 ws2tcpip.h if it is available and sys/socket.h isn't.
6032 * configure: Regenerate.
6033 * config.in: Regenerate.
6034
e79eb02f
AB
60352020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
6036
6037 PR fortran/23051
6038 PR fortran/26139
6039 * valops.c (value_ind): Pass address to
6040 readjust_indirect_value_type.
6041 * value.c (readjust_indirect_value_type): Make parameter
6042 non-const, and add extra address parameter. Resolve original type
6043 before using it.
6044 * value.h (readjust_indirect_value_type): Update function
6045 signature and comment.
6046
876518dd
TV
60472020-07-25 Tom de Vries <tdevries@suse.de>
6048
6049 PR symtab/26243
6050 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
6051 entries.
6052
f6720b1c
AM
60532020-07-24 Aaron Merey <amerey@redhat.com>
6054
6055 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
6056 * configure: Rebuild.
6057
513487e1
KB
60582020-07-23 Kevin Buettner <kevinb@redhat.com>
6059
6060 PR corefiles/26294
6061 * corelow.c (_initialize_corelow): Add period to help text
6062 for "maintenance print core-file-backed-mappings".
6063
e7bc9db8
PA
60642020-07-23 Pedro Alves <pedro@palves.net>
6065
6066 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
6067 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
6068 meanwhile.
6069 * frame.c (frame_cache_generation, get_frame_cache_generation):
6070 New.
6071 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
6072 (get_prev_frame_if_no_cycle): On exception, don't touch
6073 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
6074 * frame.h (get_frame_cache_generation): Declare.
6075
90fcc466
TV
60762020-07-23 Tom de Vries <tdevries@suse.de>
6077
6078 PR tui/26282
6079 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
6080 New default constructor.
6081
78344df7
AB
60822020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
6083
6084 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
6085 exclude non-statement entries.
6086
b089853a
KB
60872020-07-22 Kevin Buettner <kevinb@redhat.com>
6088
6089 * NEWS (New commands): Mention new command
6090 "maintenance print core-file-backed-mappings".
6091
09c2f5d4
KB
60922020-07-22 Kevin Buettner <kevinb@redhat.com>
6093
6094 * corelow.c (gdbcmd.h): Include.
6095 (core_target::info_proc_mappings): New method.
6096 (get_current_core_target): New function.
6097 (maintenance_print_core_file_backed_mappings): New function.
6098 (_initialize_corelow): Add core-file-backed-mappings to
6099 "maint print" commands.
6100
9c5ec5c2 61012020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 6102
9c5ec5c2
KB
6103 * linux-tdep.c (dump_note_entry_p): New function.
6104 (linux_dump_mapping_p_ftype): New typedef.
6105 (linux_find_memory_regions_full): Add new parameter,
6106 should_dump_mapping_p.
6107 (linux_find_memory_regions): Adjust call to
6108 linux_find_memory_regions_full.
6109 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
6110 call to linux_find_memory_regions_full.
6111
db082f59
KB
61122020-07-22 Kevin Buettner <kevinb@redhat.com>
6113
6114 * corelow.c (solist.h, unordered_map): Include.
6115 (class core_target): Add field m_core_file_mappings and
6116 method build_file_mappings.
6117 (core_target::core_target): Call build_file_mappings.
6118 (core_target::~core_target): Free memory associated with
6119 m_core_file_mappings.
6120 (core_target::build_file_mappings): New method.
6121 (core_target::xfer_partial): Use m_core_file_mappings
6122 for memory transfers.
6123 * linux-tdep.c (linux_read_core_file_mappings): New
6124 function.
6125 (linux_core_info_proc_mappings): Rewrite to use
6126 linux_read_core_file_mappings.
6127 (linux_init_abi): Register linux_read_core_file_mappings.
6128
7e183d27
KB
61292020-07-22 Kevin Buettner <kevinb@redhat.com>
6130
6131 * arch-utils.c (default_read_core_file_mappings): New function.
6132 * arch-utils.c (default_read_core_file_mappings): Declare.
6133 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
6134 * gdbarch.h, gdbarch.c: Regenerate.
6135
2735d421
KB
61362020-07-22 Kevin Buettner <kevinb@redhat.com>
6137
6138 PR corefiles/25631
6139 * corelow.c (core_target:xfer_partial): Revise
6140 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
6141 case after first checking the stratum beneath the core
6142 target.
6143 (has_all_memory): Return true.
6144 * target.c (raw_memory_xfer_partial): Revise comment
6145 regarding use of has_all_memory.
6146
e56cb451
KB
61472020-07-22 Kevin Buettner <kevinb@redhat.com>
6148
6149 * exec.h (section_table_xfer_memory): Revise declaration,
6150 replacing section name parameter with an optional callback
6151 predicate.
6152 * exec.c (section_table_xfer_memory): Likewise.
6153 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
6154 of section_table_xfer_memory.
6155
32fa152e
TT
61562020-07-22 Tom Tromey <tromey@adacore.com>
6157
6158 * mi/mi-cmd-stack.c (list_args_or_locals): Use
6159 lookup_symbol_search_name.
6160
a67a1c41
AB
61612020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6162
6163 * python/py-registers.c (gdbpy_register_object_data_init): Remove
6164 redundant local variable.
6165 (gdbpy_get_register_descriptor): Extract descriptor vector as a
6166 reference, not pointer, update code accordingly.
6167
a7b4ff4f
SM
61682020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6169 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6170
6171 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
6172 * jit.c (jit_breakpoint_re_set_internal): Use the
6173 `skip_jit_symbol_lookup` field.
6174
2340e834
SM
61752020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6176 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6177
6178 * jit.c (jit_read_descriptor): Define the descriptor address once,
6179 use twice.
6180 (jit_breakpoint_deleted): Move the declaration of the loop variable
6181 `iter` into the loop header.
6182 (jit_breakpoint_re_set_internal): Move the declaration of the local
6183 variable `objf_data` to the first point of definition.
6184 (jit_event_handler): Move the declaration of local variables
6185 `code_entry`, `entry_addr`, and `objf` to their first point of use.
6186 Rename `objf` to `jited`.
6187
c1072906
SM
61882020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6189
6190 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
6191 Remove.
6192 * jit.c (get_jiter_objfile_data): Update.
6193
c8474dc3
TBA
61942020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6195 Simon Marchi <simon.marchi@polymtl.ca>
6196
6197 * jit.c (struct jit_program_space_data): Remove.
6198 (jit_program_space_key): Remove.
6199 (jiter_objfile_data::~jiter_objfile_data): Remove program space
6200 stuff.
6201 (get_jit_program_space_data): Remove.
6202 (jit_breakpoint_deleted): Iterate on all of the program space's
6203 objfiles.
6204 (jit_inferior_init): Likewise.
6205 (jit_breakpoint_re_set_internal): Likewise. Also change return
6206 type to void.
6207 (jit_breakpoint_re_set): Pass current_program_space to
6208 jit_breakpoint_re_set_internal.
6209
77208eb7
SM
62102020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6211
6212 * jit.h (struct jiter_objfile_data) <cached_code_address,
6213 jit_breakpoint>: Move to here from ...
6214 * jit.c (jit_program_space_data): ... here.
6215 (jiter_objfile_data::~jiter_objfile_data): Update.
6216 (jit_breakpoint_deleted): Update.
6217 (jit_breakpoint_re_set_internal): Update.
6218
8c1c720f
SM
62192020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6220
6221 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
6222 checks.
6223 (jit_read_descriptor): Remove NULL check.
6224 (jit_event_handler): Add an assertion.
6225
0e74a041
SM
62262020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6227
6228 * jit.h (struct jit_objfile_data): Split into...
6229 (struct jiter_objfile_data): ... this ...
6230 (struct jited_objfile_data): ... and this.
6231 * objfiles.h (struct objfile) <jit_data>: Remove.
6232 <jiter_data, jited_data>: New fields.
6233 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
6234 (jiter_objfile_data::~jiter_objfile_data): ... this.
6235 (get_jit_objfile_data): Rename to ...
6236 (get_jiter_objfile_data): ... this.
6237 (add_objfile_entry): Update.
6238 (jit_read_descriptor): Use get_jiter_objfile_data.
6239 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
6240 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
6241 (jit_inferior_exit_hook): Use objfile's jited_data field.
6242
238b5c9f
SM
62432020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6244
6245 * jit.h: Forward-declare `struct minimal_symbol`.
6246 (struct jit_objfile_data): Migrate to here from jit.c; also add a
6247 constructor, destructor, and an objfile* field.
6248 * jit.c (jit_objfile_data): Remove.
6249 (struct jit_objfile_data): Migrate from here to jit.h.
6250 (jit_objfile_data::~jit_objfile_data): New destructor
6251 implementation with code moved from free_objfile_data.
6252 (free_objfile_data): Delete.
6253 (get_jit_objfile_data): Update to use the jit_data field of objfile.
6254 (jit_find_objf_with_entry_addr): Ditto.
6255 (jit_inferior_exit_hook): Ditto.
6256 (_initialize_jit): Remove the call to
6257 register_objfile_data_with_cleanup.
6258 * objfiles.h (struct objfile) <jit_data>: New field.
6259
fe053b9e
TBA
62602020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6261
6262 * jit.h: Forward-declare `struct objfile`.
6263 (jit_event_handler): Add a second parameter, the JITer objfile.
6264 * jit.c (jit_read_descriptor): Change the signature to take the
6265 JITer objfile as an argument instead of the jit_program_space_data.
6266 (jit_inferior_init): Update the call to jit_read_descriptor.
6267 (jit_event_handler): Use the new JITer objfile argument when calling
6268 jit_read_descriptor.
6269 * breakpoint.c (handle_jit_event): Update the call to
6270 jit_event_handler to pass the JITer objfile.
6271
4cec0c66
JB
62722020-07-21 John Baldwin <jhb@FreeBSD.org>
6273
6274 * gdbarch.c: Regenerate.
6275 * gdbarch.h: Regenerate.
6276 * gdbarch.sh (handle_segmentation_fault): Remove method.
6277 * infrun.c (handle_segmentation_fault): Remove.
6278 (print_signal_received_reason): Remove call to
6279 handle_segmentation_fault.
6280
0e42f66a
JB
62812020-07-21 John Baldwin <jhb@FreeBSD.org>
6282
6283 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6284 Rename to sparc64_linux_report_signal_info and add siggnal
6285 argument.
6286 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
6287 instead of sparc64_linux_handle_segmentation_fault.
6288
77bdfeb2
JB
62892020-07-21 John Baldwin <jhb@FreeBSD.org>
6290
6291 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
6292 i386_linux_report_signal_info instead of
6293 i386_linux_handle_segmentation_fault.
6294 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
6295 to i386_linux_report_signal_info and add siggnal argument.
6296 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
6297 of i386_linux_handle_segmentation_fault.
6298 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
6299 to i386_linux_report_signal_info and add siggnal argument.
6300
ad97bfc5
JB
63012020-07-21 John Baldwin <jhb@FreeBSD.org>
6302
6303 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
6304 hook if present.
6305
272bb05c
JB
63062020-07-21 John Baldwin <jhb@FreeBSD.org>
6307
6308 * gdbarch.c: Regenerate.
6309 * gdbarch.h: Regenerate.
6310 * gdbarch.sh (report_signal_info): New method.
6311 * infrun.c (print_signal_received_reason): Invoke gdbarch
6312 report_signal_info hook if present.
6313
baf8791e
AB
63142020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6315
6316 * python/py-registers.c : Add 'unordered_map' include.
6317 (gdbpy_new_reggroup): Renamed to...
6318 (gdbpy_get_reggroup): ...this. Update to only create register
6319 group descriptors when needed.
6320 (gdbpy_reggroup_iter_next): Update.
6321
f7306dac
AB
63222020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6323
6324 * python/py-registers.c (gdbpy_register_object_data): New static
6325 global.
6326 (gdbpy_register_object_data_init): New function.
6327 (gdbpy_new_register_descriptor): Renamed to...
6328 (gdbpy_get_register_descriptor): ...this, and update to reuse
6329 existing register descriptors where possible.
6330 (gdbpy_register_descriptor_iter_next): Update.
6331 (gdbpy_initialize_registers): Register new gdbarch data.
6332
05c309a8
SM
63332020-07-21 Simon Marchi <simon.marchi@efficios.com>
6334
6335 * linux-nat.c (stopped_pids): Make static.
6336
d1fd641e
SM
63372020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
6338
6339 PR ada/26235
6340 * gdbtypes.c (ada_discrete_type_low_bound,
6341 ada_discrete_type_high_bound): Handle undefined bounds.
6342
1de14d77
KR
63432020-07-21 Kamil Rytarowski <n54@gmx.com>
6344
6345 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
6346 declaration.
6347 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
6348 function.
6349
ed810cc7
JB
63502020-07-20 John Baldwin <jhb@FreeBSD.org>
6351
6352 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
6353 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
6354 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
6355 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
6356 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
6357 method.
6358
ae5369e7
LC
63592020-07-20 Ludovic Courtès <ludo@gnu.org>
6360
6361 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
6362 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
6363 which are deprecated in Guile 3.0.
6364 * configure.ac (try_guile_versions): Add "guile-3.0".
6365 * configure (try_guile_versions): Regenerate.
6366 * NEWS: Update entry.
6367
68cf161c
LC
63682020-07-20 Ludovic Courtès <ludo@gnu.org>
6369 Doug Evans <dje@google.com>
6370
6371 PR gdb/21104
6372 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
6373 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
6374 USING_GUILE_BEFORE_2_2.
6375 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
6376 Change type to 'scm_t_port_type *'.
6377 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
6378 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
6379 parameter and honor it. Update callers.
6380 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
6381 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
6382 functions.
6383 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
6384 USING_GUILE_BEFORE_2_2.
6385 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
6386 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
6387 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
6388 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
6389 and 'SCM_PORT_TYPE'.
6390 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
6391 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
6392 (gdbscm_memory_port_read, gdbscm_memory_port_write)
6393 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
6394 [!USING_GUILE_BEFORE_2_2]: New functions.
6395 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
6396 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
6397 'gdbscm_memory_port_read'.
6398 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
6399 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
6400 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
6401 function.
6402 (ioscm_init_memory_port): Remove.
6403 (ioscm_init_memory_port_stream): New function
6404 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
6405 function.
6406 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6407 Return scm_from_uint (0).
6408 (gdbscm_set_memory_port_read_buffer_size_x)
6409 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6410 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6411 Return scm_from_uint (0).
6412 (gdbscm_set_memory_port_write_buffer_size_x)
6413 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6414 * configure.ac (try_guile_versions): Add "guile-2.2".
6415 * configure: Regenerate.
6416 * NEWS: Add entry.
6417
aee91db3
TT
64182020-07-18 Tom Tromey <tom@tromey.com>
6419
6420 * linux-nat.c (linux_multi_process): Remove.
6421 (linux_nat_target::supports_multi_process): Return true.
6422
0e267416
AB
64232020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6424
6425 * arch/riscv.c (riscv_tdesc_cache): Change map type.
6426 (riscv_lookup_target_description): Return pointer out of
6427 unique_ptr.
6428 * target-descriptions.c (allocate_target_description): Add
6429 comment.
6430 (target_desc_deleter::operator()): Likewise.
6431 * target-descriptions.h (struct target_desc_deleter): Moved to
6432 gdbsupport/tdesc.h.
6433 (target_desc_up): Likewise.
6434
f80c8ec4
TT
64352020-07-17 Tom Tromey <tromey@adacore.com>
6436
6437 * linux-nat.c (linux_nat_target::supports_non_stop)
6438 (linux_nat_target::always_non_stop_p): Use "true".
6439 (linux_nat_target::supports_disable_randomization): Use "true" and
6440 "false".
6441
d0ce17d8
CT
64422020-07-16 Caroline Tice <cmtice@google.com>
6443
6444 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
6445 (RNGLIST_HEADER_SIZE64): New constant definition.
6446 (struct dwop_section_names): Add rnglists_dwo.
6447 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
6448 (struct loclist_header): Rename to 'loclists_rnglists_header'.
6449 (struct dwo_sections): Add rnglists field.
6450 (read_attribut_reprocess): Add tag parameter.
6451 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
6452 (cu_debug_rnglists_section): New function (decl & definition).
6453 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
6454 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
6455 die whose range is being checked; get rnglist section from
6456 cu_debug_rnglists_section, to get from either objfile or dwo file as
6457 appropriate. Add cases for DW_RLE_base_addressx,
6458 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
6459 the base address to DW_RLE_offset_pairs (not to all ranges), moving
6460 test inside if-condition and updating complaint message.
6461 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
6462 dwarf2_rnglists_process.
6463 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
6464 dwarf2_ranges_process.
6465 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
6466 need_ranges_base and update comment appropriately. Also pass die tag
6467 to dwarf2_ranges_read.
6468 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
6469 need_ranges_base and update comment appropriately. Also pass die tag
6470 to dwarf2_ranges_process.
6471 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
6472 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
6473 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
6474 need_ranges_base and update comment appropriately. Also pass die tag
6475 to read_attribute_reprocess and dwarf2_ranges_read.
6476 (read_loclist_header): Rename function to read_loclists_rnglists_header,
6477 and update function comment appropriately.
6478 (read_loclist_index): Call read_loclists_rnglists_header instead of
6479 read_loclist_header.
6480 (read_rnglist_index): New function.
6481 (read_attribute_reprocess): Add tag parameter. Add code for
6482 DW_FORM_rnglistx, passing tag to read_rnglist_index.
6483 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
6484
3dcc261c
AB
64852020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
6486
6487 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
6488 being resolved.
6489
ccb9eba6
AB
64902020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
6491
6492 * arch-utils.c (show_architecture): Update formatting of messages.
6493
cf88be68
SM
64942020-07-12 Simon Marchi <simon.marchi@efficios.com>
6495
6496 * gdbtypes.h (struct type) <bounds>: Handle array and string
6497 types.
6498 * ada-lang.c (assign_aggregate): Use type::bounds on
6499 array/string type.
6500 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
6501 * c-varobj.c (c_number_of_children): Likewise.
6502 (c_describe_child): Likewise.
6503 * eval.c (evaluate_subexp_for_sizeof): Likewise.
6504 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
6505 (f_type_print_base): Likewise.
6506 * f-valprint.c (f77_array_offset_tbl): Likewise.
6507 (f77_get_upperbound): Likewise.
6508 (f77_print_array_1): Likewise.
6509 * guile/scm-type.c (gdbscm_type_range): Likewise.
6510 * m2-typeprint.c (m2_array): Likewise.
6511 (m2_is_long_set_of_type): Likewise.
6512 * m2-valprint.c (get_long_set_bounds): Likewise.
6513 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
6514 * python/py-type.c (typy_range): Likewise.
6515 * rust-lang.c (rust_internal_print_type): Likewise.
6516 * type-stack.c (type_stack::follow_types): Likewise.
6517 * valarith.c (value_subscripted_rvalue): Likewise.
6518 * valops.c (value_cast): Likewise.
6519
509971ae
SM
65202020-07-12 Simon Marchi <simon.marchi@efficios.com>
6521
6522 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
6523 callers to use the equivalent accessor methods.
6524
107406b7
SM
65252020-07-12 Simon Marchi <simon.marchi@efficios.com>
6526
6527 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
6528 (struct type) <bit_stride>: New method.
6529 (TYPE_BIT_STRIDE): Remove.
6530 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
6531
bb789949
SM
65322020-07-12 Simon Marchi <simon.marchi@efficios.com>
6533
6534 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
6535 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
6536 callers to use the equivalent accessor methods instead.
6537
39498edb
SM
65382020-07-12 Simon Marchi <simon.marchi@efficios.com>
6539
6540 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
6541 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
6542 callers to use the equivalent accessor methods instead.
6543
3b606f38
SM
65442020-07-12 Simon Marchi <simon.marchi@efficios.com>
6545
6546 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
6547 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
6548 to use dynamic_prop::kind.
6549
064d9cb9
SM
65502020-07-12 Simon Marchi <simon.marchi@efficios.com>
6551
6552 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
6553 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
6554 to get the bound property's kind and check against
6555 PROP_UNDEFINED.
6556
5537ddd0
SM
65572020-07-12 Simon Marchi <simon.marchi@efficios.com>
6558
6559 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
6560 all callers to use type::range_bounds followed by
6561 dynamic_prop::{low,high}.
6562
8c2e4e06
SM
65632020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6564
6565 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
6566 const_val, set_const_val, baton, set_locexpr, set_loclist,
6567 set_addr_offset, variant_parts, set_variant_parts,
6568 original_type, set_original_type>: New methods.
6569 <kind>: Rename to...
6570 <m_kind>: ... this. Update all users to use the new methods
6571 instead.
6572 <data>: Rename to...
6573 <m_data>: ... this. Update all users to use the new methods
6574 instead.
6575
7c6f2712
SM
65762020-07-12 Simon Marchi <simon.marchi@efficios.com>
6577
6578 * gdbtypes.c (get_discrete_bounds): Return failure if
6579 the range type's bounds are not both defined and constant
6580 values.
6581 (get_array_bounds): Update comment. Remove undefined bound check.
6582
599088e3
SM
65832020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6584
6585 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
6586 the type::bounds method directly.
6587
c4dfcb36
SM
65882020-07-12 Simon Marchi <simon.marchi@efficios.com>
6589
6590 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
6591 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
6592 are used to set the range type's bounds to use set_bounds.
6593
0a278aa7
PW
65942020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6595
6596 * exec.c (_initialize_exec): Update exec-file-mismatch help.
6597
cce20f10
PA
65982020-07-10 Pedro Alves <pedro@palves.net>
6599
6600 * gdbthread.h (inferior_ref): Define.
6601 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
6602 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
6603 * thread.c
6604 (scoped_restore_current_thread::restore):
6605 Adjust to gdb::ref_ptr.
6606 (scoped_restore_current_thread::~scoped_restore_current_thread):
6607 Remove manual decref handling.
6608 (scoped_restore_current_thread::scoped_restore_current_thread):
6609 Adjust to use
6610 inferior_ref::new_reference/thread_info_ref::new_reference.
6611 Incref the thread before calling get_frame_id instead of after.
6612 Let TARGET_CLOSE_ERROR propagate.
6613
6d7aa592
PA
66142020-07-10 Pedro Alves <pedro@palves.net>
6615
6616 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
6617 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
6618 NOT_AVAILABLE_ERROR.
6619 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
6620 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
6621
b3e3a4c1
SM
66222020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6623 Pedro Alves <pedro@palves.net>
6624
6625 PR gdb/26199
6626 * infrun.c (threads_are_resumed_pending_p): Delete.
6627 (do_target_wait): Remove threads_are_executing and
6628 threads_are_resumed_pending_p checks from the inferior_matches
6629 lambda. Update comments.
6630
d6cc5d98
PA
66312020-07-10 Pedro Alves <pedro@palves.net>
6632
6633 PR gdb/26199
6634 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
6635 executing threads.
6636
7d3badc6
PA
66372020-07-10 Pedro Alves <pedro@palves.net>
6638
6639 PR gdb/26199
6640 * infrun.c (handle_no_resumed): Handle multiple targets.
6641
42bd97a6
PA
66422020-07-10 Pedro Alves <pedro@palves.net>
6643
6644 PR gdb/26199
6645 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
6646 target_is_async_p.
6647
43667cc6
PA
66482020-07-10 Pedro Alves <pedro@palves.net>
6649
6650 PR gdb/26199
6651 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
6652 threads, not all threads.
6653
96118d11
PA
66542020-07-10 Pedro Alves <pedro@palves.net>
6655
6656 PR gdb/26199
6657 * remote.c (remote_target::open_1): Pass remote target pointer as
6658 data to create_async_event_handler.
6659 (remote_async_inferior_event_handler): Mark async event handler
6660 before returning if the remote target still has either pending
6661 events or unacknowledged notifications.
6662
54904d81
JB
66632020-07-10 John Baldwin <jhb@FreeBSD.org>
6664
6665 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
6666 declaration.
6667 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
6668 function.
6669
f37e5866
JB
66702020-07-09 John Baldwin <jhb@FreeBSD.org>
6671
6672 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
6673 inferior_ptid.
6674
fc238d4a
JB
66752020-07-09 John Baldwin <jhb@FreeBSD.org>
6676
6677 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
6678 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
6679 AT_FREEBSD_PS_STRINGS.
6680
6e2469ff
HD
66812020-07-08 Hannes Domani <ssbssa@yahoo.de>
6682
6683 * auto-load.c (auto_load_objfile_script_1): Convert drive part
6684 of debugfile path on Windows.
6685
d1076c41
JB
66862020-07-08 John Baldwin <jhb@FreeBSD.org>
6687
6688 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
6689 argument to 'data'.
6690
15f3b077
TT
66912020-07-08 Tom Tromey <tromey@adacore.com>
6692
6693 * ada-lang.c (ada_exception_message_1): Use read_memory.
6694
9fc501fd
AB
66952020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6696
6697 PR python/22748
6698 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
6699 special handling for inline frames.
6700 * findvar.c (value_of_register_lazy): Skip inline frames when
6701 creating lazy register values.
6702 * frame.c (frame_id_computed_p): Delete definition.
6703 * frame.h (frame_id_computed_p): Delete declaration.
6704
64cb3757
AB
67052020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6706
6707 * NEWS: Mention additions to Python API.
6708 * python/py-arch.c (archpy_register_groups): New function.
6709 (arch_object_methods): Add 'register_groups' method.
6710 * python/py-registers.c (reggroup_iterator_object): New struct.
6711 (reggroup_object): New struct.
6712 (gdbpy_new_reggroup): New function.
6713 (gdbpy_reggroup_to_string): New function.
6714 (gdbpy_reggroup_name): New function.
6715 (gdbpy_reggroup_iter): New function.
6716 (gdbpy_reggroup_iter_next): New function.
6717 (gdbpy_new_reggroup_iterator): New function
6718 (gdbpy_initialize_registers): Register new types.
6719 (reggroup_iterator_object_type): Define new Python type.
6720 (gdbpy_reggroup_getset): New static global.
6721 (reggroup_object_type): Define new Python type.
6722 * python/python-internal.h
6723
0f767f94
AB
67242020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6725
6726 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
6727 * python/py-arch.c (archpy_registers): New function.
6728 (arch_object_methods): Add 'registers' method.
6729 * python/py-registers.c: New file.
6730 * python/python-internal.h
6731 (gdbpy_new_register_descriptor_iterator): Declare.
6732 (gdbpy_initialize_registers): Declare.
6733 * python/python.c (do_start_initialization): Call
6734 gdbpy_initialize_registers.
6735 * NEWS: Mention additions to the Python API.
6736
87dbc774
AB
67372020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6738
6739 * NEWS: Mention new Python API method.
6740 * python/py-unwind.c (pending_framepy_architecture): New function.
6741 (pending_frame_object_methods): Add architecture method.
6742
3bc98c0c
AB
67432020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6744
6745 * gdbarch.c: Regenerate.
6746 * gdbarch.h: Regenerate.
6747 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
6748 (gdbarch_data): Use internal_error for the case where
6749 deprecated_set_gdbarch_data was originally needed.
6750 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
6751 and use passed in obstack.
6752 (libunwind_frame_set_descr): Should no longer get back NULL from
6753 gdbarch_data.
6754 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
6755 type.
6756 * user-regs.c (user_regs_init): Update parameters, and use passed
6757 in obstack.
6758 (user_reg_add): Should no longer get back NULL from gdbarch_data.
6759 (_initialize_user_regs): Register as a pre-init gdbarch data type.
6760
d8cc8af6
TV
67612020-07-06 Tom de Vries <tdevries@suse.de>
6762
6763 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
6764 End-Of-Sequence in lte_is_less_than.
6765 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
6766 "gdb: Don't reorder line table entries too much when sorting".
6767
947f7597
TV
67682020-07-06 Tom de Vries <tdevries@suse.de>
6769
6770 PR tui/26205
6771 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
6772
1e7c1b22
TV
67732020-07-05 Tom de Vries <tdevries@suse.de>
6774
6775 PR build/26187
6776 * inferior.h (struct infcall_suspend_state_deleter): If available, use
6777 std::uncaught_exceptions instead of deprecated
6778 std::uncaught_exception.
6779
a36158ec
SM
67802020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6781
6782 * macroexp.h (macro_stringify): Return
6783 gdb::unique_xmalloc_ptr<char>.
6784 * macroexp.c (macro_stringify): Likewise.
6785 * macrotab.c (fixup_definition): Update.
6786
14d960c8
SM
67872020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6788
6789 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
6790 (lex_one_token): Update.
6791 * macroexp.c (struct macro_buffer) <release>: Return
6792 gdb::unique_xmalloc_ptr<char>.
6793 (macro_stringify): Update.
6794 (macro_expand): Update.
6795 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
6796 * macroexp.h (macro_expand_next): Likewise.
6797
211d5b1c
SM
67982020-07-02 Simon Marchi <simon.marchi@efficios.com>
6799
6800 * macroexp.h (macro_lookup_ftype): Remove.
6801 (macro_expand, macro_expand_once, macro_expand_next): Remove
6802 lookup function parameters, add scope parameter.
6803 * macroexp.c (scan, substitute_args, expand, maybe_expand,
6804 macro_expand, macro_expand_once, macro_expand_next): Likewise.
6805 * macroscope.h (standard_macro_lookup): Change parameter type
6806 to macro_scope.
6807 * macroscope.c (standard_macro_lookup): Likewise.
6808 * c-exp.y (lex_one_token): Update.
6809 * macrocmd.c (macro_expand_command): Likewise.
6810 (macro_expand_once_command): Likewise.
6811
b1a35af2
SM
68122020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6813
6814 * inf-loop.c (inferior_event_handler): Remove client_data param.
6815 * inf-loop.h (inferior_event_handler): Likewise.
6816 * infcmd.c (step_1): Adjust.
6817 * infrun.c (proceed): Adjust.
6818 (fetch_inferior_event): Remove client_data param.
6819 (infrun_async_inferior_event_handler): Adjust.
6820 * infrun.h (fetch_inferior_event): Remove `void *` param.
6821 * linux-nat.c (handle_target_event): Adjust.
6822 * record-btrace.c (record_btrace_handle_async_inferior_event):
6823 Adjust.
6824 * record-full.c (record_full_async_inferior_event_handler):
6825 Adjust.
6826 * remote.c (remote_async_inferior_event_handler): Adjust.
6827
1cdf9e33
TT
68282020-07-01 Tom Tromey <tom@tromey.com>
6829
6830 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
6831 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
6832
32c1e210
TT
68332020-07-01 Tom Tromey <tom@tromey.com>
6834
6835 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
6836 tui_gen_win_info.
6837 (tui_win_info::make_window): Merge with
6838 tui_gen_win_info::make_window.
6839 (tui_win_info::make_visible): Move from tui_gen_win_info.
6840 * tui/tui-win.c (tui_win_info::max_width): Move from
6841 tui_gen_win_info.
6842 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
6843 type.
6844 <window_factory>: Likewise.
6845 * tui/tui-layout.c (tui_win_info::resize): Move from
6846 tui_gen_win_info.
6847 (make_standard_window): Change return type.
6848 (get_locator_window, tui_get_window_by_name): Likewise.
6849 (tui_layout_window::apply): Remove a cast.
6850 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
6851 (struct tui_win_info): Merge with tui_gen_win_info.
6852 (struct tui_gen_win_info): Remove.
6853
a30cb6da
TT
68542020-07-01 Tom Tromey <tom@tromey.com>
6855
6856 * tui/tui-stack.h (struct tui_locator_window): Derive from
6857 tui_win_info.
6858 <do_scroll_horizontal, do_scroll_vertical>: New methods.
6859 <can_box>: New method.
6860
1eb2161f
TT
68612020-07-01 Tom Tromey <tom@tromey.com>
6862
6863 * tui/tui-stack.h (struct tui_locator_window): Remove body.
6864
7134f2eb
TT
68652020-07-01 Tom Tromey <tom@tromey.com>
6866
6867 * tui/tui-regs.c (tui_data_window::display_registers_from)
6868 (tui_data_window::display_registers_from)
6869 (tui_data_window::first_data_item_displayed)
6870 (tui_data_window::delete_data_content_windows): Update.
6871 (tui_data_window::refresh_window, tui_data_window::no_refresh):
6872 Remove.
6873 (tui_data_window::check_register_values): Update.
6874 (tui_data_item_window::rerender): Add parameters. Update.
6875 (tui_data_item_window::refresh_window): Remove.
6876 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
6877 virtual.
6878 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
6879 tui_gen_win_info.
6880 <refresh_window, max_height, min_height>: Remove.
6881 <rerender>: Add parameters.
6882 <x, y, visible>: New members.
6883 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
6884 <m_item_width>: New member.
6885
22b7b041
TT
68862020-07-01 Tom Tromey <tom@tromey.com>
6887
6888 * tui/tui-regs.c (tui_data_window::show_register_group)
6889 (tui_data_window::check_register_values): Update.
6890 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
6891 from item_no.
6892
c9753adb
TT
68932020-07-01 Tom Tromey <tom@tromey.com>
6894
6895 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
6896 useless "if".
6897
9ab26b4a
TT
68982020-07-01 Tom Tromey <tom@tromey.com>
6899
6900 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
6901 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
6902
e555083f
TT
69032020-07-01 Tom Tromey <tom@tromey.com>
6904
6905 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
6906 * tui/tui-winsource.h (enum tui_line_or_address_kind)
6907 (struct tui_line_or_address): Move from tui-data.h.
6908 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
6909 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
6910 (tui_cmd_window, tui_source_window_base, tui_source_window)
6911 (tui_disasm_window): Don't declare.
6912 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
6913 to tui-winsource.h.
6914 (SINGLE_KEY): Move to tui-stack.c.
6915
7a02bab7
TT
69162020-07-01 Tom Tromey <tom@tromey.com>
6917
6918 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
6919 std::string.
6920 * tui/tui-regs.c (class tab_expansion_file): New.
6921 (tab_expansion_file::write): New method.
6922 (tui_register_format): Change return type. Use
6923 tab_expansion_file.
6924 (tui_get_register, tui_data_window::display_registers_from)
6925 (tui_data_item_window::rerender): Update.
6926 * tui/tui-io.h (tui_expand_tabs): Don't declare.
6927 * tui/tui-io.c (tui_expand_tabs): Remove.
6928
ea68593b
TT
69292020-07-01 Tom Tromey <tom@tromey.com>
6930
6931 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
6932
a8caed5d
FS
69332020-07-01 Fangrui Song <maskray@google.com>
6934
6935 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
6936
9cdf9820
AKS
69372020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6938
6939 * dwarf2/read.c (set_die_type): Removed conditions to restrict
6940 forms for DW_AT_associated and DW_AT_allocated attributes,
6941 which is already checked in function attr_to_dynamic_prop.
6942
a1520ad8
TT
69432020-06-30 Tom Tromey <tromey@adacore.com>
6944
6945 * dwarf2/read.c (quirk_rust_enum): Correctly call
6946 alloc_rust_variant for default-less enum.
6947
5ac58899
TT
69482020-06-30 Tom Tromey <tromey@adacore.com>
6949
6950 PR build/26183:
6951 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
6952 gdb::to_string.
6953
19b187a9
SM
69542020-06-29 Simon Marchi <simon.marchi@efficios.com>
6955
6956 * gdbarch.sh (displaced_step_copy_insn): Update doc.
6957 * gdbarch.h: Re-generate.
6958
cd4c4c07
TT
69592020-06-28 Tom Tromey <tom@tromey.com>
6960
6961 * command.h (cmd_types): Remove.
6962 (cmd_type): Don't declare.
6963 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
6964 typedef.
6965 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
6966 * cli/cli-decode.c (cmd_type): Remove.
6967
05779d57
PA
69682020-06-27 Pedro Alves <palves@redhat.com>
6969
6970 * fork-child.c (prefork_hook): Adjust.
6971 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
6972 Delete.
6973 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
6974 * inferior.c (inferior::set_tty, inferior::tty): New methods.
6975 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
6976 Remove declarations.
6977 (struct inferior) <set_tty, tty>: New methods.
6978 (struct inferior) <terminal>: Rename to ...
6979 (struct inferior) <m_terminal>: ... this and make private.
6980 * main.c (captured_main_1): Adjust.
6981 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
6982 (mi_cmd_inferior_tty_show): Adjust.
6983 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
6984 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
6985
1776e3e5
NA
69862020-06-26 Nick Alcock <nick.alcock@oracle.com>
6987
6988 * configure.ac: Add --enable-libctf: handle --disable-static
6989 properly.
6990 * acinclude.m4: sinclude ../config/enable.m4.
6991 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
6992 (LIBCTF): Substitute in.
6993 (CTF_DEPS): New, likewise.
6994 (CLIBS): libctf needs symbols from libbfd: move earlier.
6995 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
6996 flags.
6997 * ctfread.c: Surround in ENABLE_LIBCTF.
6998 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
6999 * configure: Regenerate.
7000 * config.in: Likewise.
7001
58373b80
SM
70022020-06-25 Simon Marchi <simon.marchi@efficios.com>
7003
7004 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
7005
277474ee
SM
70062020-06-25 Simon Marchi <simon.marchi@efficios.com>
7007
7008 * inferior.h (struct inferior) <terminal>: Change type to
7009 gdb::unique_xmalloc_ptr<char>.
7010 * inferior.c (inferior::~inferior): Don't free inf->terminal.
7011 * infcmd.c (set_inferior_io_terminal): Don't free terminal
7012 field, adjust to unique pointer.
7013 (get_inferior_io_terminal): Adjust to unique pointer.
7014
6d74da72
AB
70152020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7016
7017 * riscv-tdep.c (riscv_print_registers_info): Loop over all
7018 registers, not just the known core set of registers.
7019
2e52d038
AB
70202020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7021
7022 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
7023 fflags, frm, and fcsr registers.
7024 (riscv_register_reggroup_p): Remove unknown CSRs from save and
7025 restore groups.
7026 (riscv_tdesc_unknown_reg): New function.
7027 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
7028 tdesc_use_registers.
7029 * riscv-tdep.h (struct gdbarch_tdep): Add
7030 unknown_csrs_first_regnum, unknown_csrs_count,
7031 duplicate_fflags_regnum, duplicate_frm_regnum, and
7032 duplicate_fcsr_regnum fields.
7033
be64fd07
AB
70342020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7035
7036 * target-descriptions.c (tdesc_use_registers): Add new parameter a
7037 callback, use the callback (when not null) to help number unknown
7038 registers.
7039 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
7040 (tdesc_use_registers): Add extra parameter to declaration.
7041
3b9fce96
AB
70422020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7043
7044 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
7045 in the file.
7046 (class riscv_pending_register_alias): Likewise.
7047 (riscv_register_feature::register_info): Change 'required_p' field
7048 to 'required', and change its type. Add 'check' member function.
7049 (riscv_register_feature::register_info::check): Define new member
7050 function.
7051 (riscv_xreg_feature): Change initialisation of 'required' field.
7052 (riscv_freg_feature): Likewise.
7053 (riscv_virtual_feature): Likewise.
7054 (riscv_csr_feature): Likewise.
7055 (riscv_check_tdesc_feature): Take extra parameter, the csr
7056 tdesc_feature, rewrite the function to use the new
7057 riscv_register_feature::register_info::check function.
7058 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
7059
865bad26
AB
70602020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7061
7062 * features/Makefile: Remove all references to the deleted files
7063 below.
7064 * features/riscv/32bit-csr.c: Deleted.
7065 * features/riscv/32bit-csr.xml: Deleted.
7066 * features/riscv/64bit-csr.c: Deleted.
7067 * features/riscv/64bit-csr.xml: Deleted.
7068 * features/riscv/rebuild-csr-xml.sh: Deleted.
7069
ed69cbc8
AB
70702020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7071
7072 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
7073 whitespace error for declaration of names member variable.
7074 (struct riscv_register_feature): Add new prefer_first_name member
7075 variable, and fix whitespace error in declaration of registers.
7076 (riscv_xreg_feature): Initialize prefer_first_name field.
7077 (riscv_freg_feature): Likewise.
7078 (riscv_virtual_feature): Likewise.
7079 (riscv_csr_feature): Likewise.
7080 (riscv_register_name): Expand on comments. Remove register name
7081 modifications for CSR and virtual registers.
7082
4445e8f5
AB
70832020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7084
7085 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
7086 errors.
7087
767a879e
AB
70882020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7089
7090 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
7091 riscv-opc.h.
7092 (class riscv_pending_register_alias): New class.
7093 (riscv_check_tdesc_feature): Take vector of pending aliases and
7094 populate it as appropriate.
7095 (riscv_setup_register_aliases): Delete.
7096 (riscv_gdbarch_init): Create vector of pending aliases and pass it
7097 to riscv_check_tdesc_feature in all cases. Use the vector to
7098 create the register aliases.
7099
bb6e55f3
RO
71002020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7101
7102 * sol2-tdep.c (sol2_static_transform_name): Remove.
7103 (sol2_init_abi): Don't register it.
7104 * gdbarch.sh (static_transform_name): Remove.
7105 * gdbarch.c, gdbarch.h: Regenerate.
7106
7107 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
7108 gdbarch_static_transform_name.
7109 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
7110 * stabsread.c (define_symbol) <'X'>: Remove.
7111 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
7112 handling.
7113 <'V'>: Likewise.
7114 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
7115 <'S'>: Remove call to gdbarch_static_transform_name.
7116
c6d36836
RO
71172020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7118
7119 * procfs.c (procfs_pre_trace): New function.
7120 (procfs_target::create_inferior): Pass it to fork_inferior.
7121
a7e6196b
RO
71222020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7123
7124 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
7125 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
7126 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
7127 sol2-tdep.o, sparc-sol2-tdep.o.
7128 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
7129 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
7130 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
7131 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
7132
d412e696
RO
71332020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7134
7135 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
7136 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
7137 Call sol2_init_abi.
7138 Remove calls to set_gdbarch_skip_solib_resolver,
7139 set_gdbarch_core_pid_to_str.
7140 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
7141 (i386_sol2_static_transform_name): Remove.
7142 (i386_sol2_init_abi): Call sol2_init_abi.
7143 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7144 set_gdbarch_static_transform_name,
7145 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7146 Use sol2_sigtramp_p.
7147 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
7148 (sol2_sigtramp_p): New function.
7149 (sol2_static_transform_name): New function.
7150 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
7151 (sol2_init_abi): New function.
7152 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
7153 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
7154 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
7155 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
7156 (sparc_sol2_static_transform_name): Remove.
7157 (sparc32_sol2_init_abi): Call sol2_init_abi.
7158 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7159 set_gdbarch_static_transform_name,
7160 set_gdbarch_skip_solib_resolver,
7161 set_gdbarch_core_pid_to_str.
7162 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
7163 (sparc_sol2_static_transform_name): Remove
7164 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
7165 call sol2_sigtramp_p.
7166 (sparc64_sol2_init_abi): Call sol2_init_abi.
7167 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7168 set_gdbarch_static_transform_name,
7169 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7170
a8654e7d
PW
71712020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7172
7173 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
7174 * exec.c (validate_exec_file): If from_tty, set both
7175 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
7176 * symfile.c (symbol_file_add_with_addrs): if always_confirm
7177 and from_tty, unconditionally ask a confirmation.
7178
caa7fd04
AB
71792020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7180
7181 * target-descriptions.c (tdesc_architecture_name): Protect against
7182 NULL pointer dereference.
7183 (maint_print_xml_tdesc_cmd): New function.
7184 (_initialize_target_descriptions): Register new 'maint print
7185 xml-tdesc' command and give it the filename completer.
7186 * NEWS: Mention new 'maint print xml-tdesc' command.
7187
fbf42f4e
AB
71882020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7189
7190 * target-descriptions.c (class tdesc_compatible_info): New class.
7191 (struct target_desc): Change type of compatible vector.
7192 (tdesc_compatible_p): Update for change in type of
7193 target_desc::compatible.
7194 (tdesc_compatible_info_list): New function.
7195 (tdesc_compatible_info_arch_name): New function.
7196 (tdesc_add_compatible): Update for change in type of
7197 target_desc::compatible.
7198 (print_c_tdesc::visit_pre): Likewise.
7199
20821f4e
AB
72002020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7201
7202 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
7203 whitespace to underscore.
7204 (maint_print_c_tdesc_cmd): Use fake filename for target
7205 descriptions that came from the target.
7206 (_initialize_target_descriptions): Add filename command completion
7207 for 'maint print c-tdesc'.
7208
1fb5ee62
SM
72092020-06-23 Simon Marchi <simon.marchi@efficios.com>
7210
7211 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
7212 lines.
7213
fc3ecb3e
SM
72142020-06-23 Simon Marchi <simon.marchi@efficios.com>
7215
7216 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
7217 lines.
7218 (dwarf2_find_location_expression): Likewise.
7219 (call_site_parameter_matches): Likewise.
7220 (dwarf2_compile_expr_to_ax): Likewise.
7221 (disassemble_dwarf_expression): Likewise.
7222 (loclist_describe_location): Likewise.
7223
236ef034
PA
72242020-06-23 Pedro Alves <palves@redhat.com>
7225
7226 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
7227 progspace-and-thread.h. Include scoped-mock-context.h instead.
7228 (register_to_value_test): Use scoped_mock_context.
7229 * regcache.c: Include "scoped-mock-context.h".
7230 (cooked_read_test): Don't error out if a target is already pushed.
7231 Use scoped_mock_context. Adjust.
7232 * scoped-mock-context.h: New file.
7233
39e7ecca
AB
72342020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7235
7236 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
7237 initializer.
7238 (ada_language::is_string_type_p): New member function.
7239 * c-lang.c (c_language_data): Delete la_is_string_type_p
7240 initializer.
7241 (cplus_language_data): Likewise.
7242 (asm_language_data): Likewise.
7243 (minimal_language_data): Likewise.
7244 * d-lang.c (d_language_data): Likewise.
7245 * f-lang.c (f_is_string_type_p): Delete function, implementation
7246 moved to f_language::is_string_type_p.
7247 (f_language_data): Delete la_is_string_type_p initializer.
7248 (f_language::is_string_type_p): New member function,
7249 implementation from f_is_string_type_p.
7250 * go-lang.c (go_is_string_type_p): Delete function, implementation
7251 moved to go_language::is_string_type_p.
7252 (go_language_data): Delete la_is_string_type_p initializer.
7253 (go_language::is_string_type_p): New member function,
7254 implementation from go_is_string_type_p.
7255 * language.c (language_defn::is_string_type_p): Define new member
7256 function.
7257 (default_is_string_type_p): Make static, add comment copied from
7258 header file.
7259 (unknown_language_data): Delete la_is_string_type_p initializer.
7260 (unknown_language::is_string_type_p): New member function.
7261 (auto_language_data): Delete la_is_string_type_p initializer.
7262 (auto_language::is_string_type_p): New member function.
7263 * language.h (language_data): Delete la_is_string_type_p field.
7264 (language_defn::is_string_type_p): Declare new function.
7265 (default_is_string_type_p): Delete desclaration, move comment to
7266 definition.
7267 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
7268 moved to m2_language::is_string_type_p.
7269 (m2_language_data): Delete la_is_string_type_p initializer.
7270 (m2_language::is_string_type_p): New member function,
7271 implementation from m2_is_string_type_p.
7272 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
7273 initializer.
7274 * opencl-lang.c (opencl_language_data): Likewise.
7275 * p-lang.c (pascal_is_string_type_p): Delete function,
7276 implementation moved to pascal_language::is_string_type_p.
7277 (pascal_language_data): Delete la_is_string_type_p initializer.
7278 (pascal_language::is_string_type_p): New member function,
7279 implementation from pascal_is_string_type_p.
7280 * rust-lang.c (rust_is_string_type_p): Delete function,
7281 implementation moved to rust_language::is_string_type_p.
7282 (rust_language_data): Delete la_is_string_type_p initializer.
7283 (rust_language::is_string_type_p): New member function,
7284 implementation from rust_is_string_type_p.
7285 * valprint.c (val_print_scalar_or_string_type_p): Update call to
7286 is_string_type_p.
7287
4ffc13fb
AB
72882020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7289
7290 * ada-lang.c (ada_language_data): Delete la_print_typedef
7291 initializer.
7292 (ada_language::print_typedef): New member function.
7293 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
7294 (cplus_language_data): Likewise.
7295 (asm_language_data): Likewise.
7296 (minimal_language_data): Likewise.
7297 * d-lang.c (d_language_data): Likewise.
7298 * f-lang.c (f_language_data): Likewise.
7299 (f_language::print_typedef): New member function.
7300 * go-lang.c (go_language_data): Delete la_print_typedef
7301 initializer.
7302 * language.c (language_defn::print_typedef): Define member
7303 function.
7304 (unknown_language_data): Delete la_print_typedef initializer.
7305 (unknown_language::print_typedef): New member function.
7306 (auto_language_data): Delete la_print_typedef initializer.
7307 (auto_language::print_typedef): New member function.
7308 * language.h (language_data): Delete la_print_typedef field.
7309 (language_defn::print_typedef): Declare new member function.
7310 (LA_PRINT_TYPEDEF): Update call to print_typedef.
7311 (default_print_typedef): Delete declaration.
7312 * m2-lang.c (m2_language_data): Delete la_print_typedef
7313 initializer.
7314 (m2_language::print_typedef): New member function.
7315 * objc-lang.c (objc_language_data): Delete la_print_typedef
7316 initializer.
7317 * opencl-lang.c (opencl_language_data): Likewise.
7318 * p-lang.c (pascal_language_data): Likewise.
7319 (pascal_language::print_typedef): New member function.
7320 * rust-lang.c (rust_print_typedef): Delete function,
7321 implementation moved to rust_language::print_typedef.
7322 (rust_language): Delete la_print_typedef initializer.
7323 (rust_language::print_typedef): New member function,
7324 implementation from rust_print_typedef.
7325 * typeprint.c (default_print_typedef): Delete.
7326
d711ee67
AB
73272020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7328
7329 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
7330 (ada_language::printstr): New member function.
7331 * c-lang.c (c_language_data): Delete la_printstr initializer.
7332 (cplus_language_data): Likewise.
7333 (asm_language_data): Likewise.
7334 (minimal_language_data): Likewise.
7335 * d-lang.c (d_language_data): Likewise.
7336 * f-lang.c (f_printstr): Rename to f_language::printstr.
7337 (f_language_data): Delete la_printstr initializer.
7338 (f_language::printstr): New member function, implementation from
7339 f_printstr.
7340 * go-lang.c (go_language_data): Delete la_printstr initializer.
7341 * language.c (language_defn::printstr): Define new member
7342 function.
7343 (unk_lang_printstr): Delete.
7344 (unknown_language_data): Delete la_printstr initializer.
7345 (unknown_language::printstr): New member function.
7346 (auto_language_data): Delete la_printstr initializer.
7347 (auto_language::printstr): New member function.
7348 * language.h (language_data): Delete la_printstr field.
7349 (language_defn::printstr): Declare new member function.
7350 (LA_PRINT_STRING): Update call to printstr.
7351 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
7352 (m2_language_data): Delete la_printstr initializer.
7353 (m2_language::printstr): New member function, implementation from
7354 m2_printstr.
7355 * objc-lang.c (objc_language_data): Delete la_printstr
7356 initializer.
7357 * opencl-lang.c (opencl_language_data): Likewise.
7358 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
7359 (pascal_language_data): Delete la_printstr initializer.
7360 (pascal_language::printstr): New member function, implementation
7361 from pascal_printstr.
7362 * p-lang.h (pascal_printstr): Delete declaration.
7363 * rust-lang.c (rust_printstr): Update header comment.
7364 (rust_language_data): Delete la_printstr initializer.
7365 (rust_language::printstr): New member function.
7366
52b50f2c
AB
73672020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7368
7369 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
7370 (ada_language::printchar): New member function.
7371 * c-lang.c (c_language_data): Delete la_printchar initializer.
7372 (cplus_language_data): Likewise.
7373 (asm_language_data): Likewise.
7374 (minimal_language_data): Likewise.
7375 * d-lang.c (d_language_data): Likewise.
7376 * f-lang.c (f_printchar): Rename to f_language::printchar.
7377 (f_language_data): Delete la_printchar initializer.
7378 (f_language::printchar): New member function, implementation from
7379 f_printchar.
7380 * go-lang.c (go_language_data): Delete la_printchar initializer.
7381 * language.c (unk_lang_printchar): Delete.
7382 (language_defn::printchar): Define new member function.
7383 (unknown_language_data): Delete la_printchar initializer.
7384 (unknown_language::printchar): New member function.
7385 (auto_language_data): Delete la_printchar initializer.
7386 (auto_language::printchar): New member function.
7387 * language.h (language_data): Delete la_printchar field.
7388 (language_defn::printchar): Declare new member function.
7389 (LA_PRINT_CHAR): Update call to printchar.
7390 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
7391 (m2_language::printchar): New member function.
7392 * objc-lang.c (objc_language_data): Delete la_printchar
7393 initializer.
7394 * opencl-lang.c (opencl_language_data): Likewise.
7395 * p-lang.c (pascal_language_data): Delete la_printchar
7396 initializer.
7397 (pascal_language::printchar): New member function.
7398 * rust-lang.c (rust_printchar): Rename to
7399 rust_language::printchar.
7400 (rust_language_data): Delete la_printchar initializer.
7401 (rust_language::printchar): New member function, implementation
7402 from rust_printchar.
7403
ec8cec5b
AB
74042020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7405
7406 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
7407 (ada_language_data): Delete la_emitchar initializer.
7408 (ada_language::emitchar): New member function, implementation from
7409 emit_char.
7410 * c-lang.c (c_language_data): Delete la_emitchar initializer.
7411 (cplus_language_data): Likewise.
7412 (asm_language_data): Likewise.
7413 (minimal_language_data): Likewise.
7414 * d-lang.c (d_language_data): Likewise.
7415 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
7416 (f_language_data): Delete la_emitchar initializer.
7417 (f_language::emitchar): New member function, implementation from
7418 f_emit_char.
7419 * go-lang.c (go_language_data): Delete la_emitchar initializer.
7420 * language.c (unk_lang_emit_char): Delete.
7421 (language_defn::emitchar): New member function definition.
7422 (unknown_language_data): Delete la_emitchar initializer.
7423 (unknown_language::emitchar): New member function.
7424 (auto_language_data): Delete la_emitchar initializer.
7425 (auto_language::emitchar): New member function.
7426 * language.h (language_data): Delete la_emitchar field.
7427 (language_defn::emitchar): New member field declaration.
7428 (LA_EMIT_CHAR): Update call to emitchar.
7429 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
7430 (m2_language_data): Delete la_emitchar initializer.
7431 (m2_language::emitchar): New member function, implementation from
7432 m2_emit_char.
7433 * objc-lang.c (objc_language_data): Delete la_emitchar
7434 initializer.
7435 * opencl-lang.c (opencl_language_data): Likewise.
7436 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
7437 (pascal_language_data): Delete la_emitchar initializer.
7438 (pascal_language::emitchar): New member function, implementation
7439 from pascal_emit_char.
7440 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
7441 (rust_language_data): Delete la_emitchar initializer.
7442 (rust_language::emitchar): New member function, implementation
7443 from rust_emitchar.
7444
1bf9c363
AB
74452020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7446
7447 * ada-lang.c (resolve): Rename to ada_language::post_parser.
7448 (ada_language_data): Delete la_post_parser initializer.
7449 (ada_language::post_parser): New member function.
7450 * c-lang.c (c_language_data): Delete la_post_parser initializer.
7451 (cplus_language_data): Likewise.
7452 (asm_language_data): Likewise.
7453 (minimal_language_data): Likewise.
7454 * d-lang.c (d_language_data): Likewise.
7455 * f-lang.c (f_language_data): Likewise.
7456 * go-lang.c (go_language_data): Likewise.
7457 * language.c (unknown_language_data): Likewise.
7458 (auto_language_data): Likewise.
7459 * language.h (language_data): Delete la_post_parser field.
7460 (language_defn::post_parser): New member function.
7461 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
7462 * objc-lang.c (objc_language_data): Likewise.
7463 * opencl-lang.c (opencl_language_data): Likewise.
7464 * p-lang.c (pascal_language_data): Likewise.
7465 * parse.c (parse_exp_in_context): Update call to post_parser.
7466 (null_post_parser): Delete definition.
7467 * parser-defs.h (null_post_parser): Delete declaration.
7468 * rust-lang.c (rust_language_data): Delete la_post_parser
7469 initializer.
7470
87afa652
AB
74712020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7472
7473 * ada-lang.c (parse): Rename to ada_language::parser.
7474 (ada_language_data): Delete la_parser initializer.
7475 (ada_language::parser): New member function, implementation from
7476 parse.
7477 * c-lang.c (c_language_data): Delete la_parser initializer.
7478 (cplus_language_data): Likewise.
7479 (asm_language_data): Likewise.
7480 (minimal_language_data): Likewise.
7481 * d-lang.c (d_language_data): Likewise.
7482 (d_language::parser): New member function.
7483 * f-lang.c (f_language_data): Delete la_parser initializer.
7484 (f_language::parser): New member function.
7485 * go-lang.c (go_language_data): Delete la_parser initializer.
7486 (go_language::parser): New member function.
7487 * language.c (unk_lang_parser): Delete.
7488 (language_defn::parser): Define new member function.
7489 (unknown_language_data): Delete la_parser initializer.
7490 (unknown_language::parser): New member function.
7491 (auto_language_data): Delete la_parser initializer.
7492 (auto_language::parser): New member function.
7493 * language.h (language_data): Delete la_parser field.
7494 (language_defn::parser): Declare new member function.
7495 * m2-lang.c (m2_language_data): Delete la_parser initializer.
7496 (m2_language::parser): New member function.
7497 * objc-lang.c (objc_language_data): Delete la_parser initializer.
7498 * opencl-lang.c (opencl_language_data): Likewise.
7499 * p-lang.c (pascal_language_data): Likewise.
7500 (pascal_language::parser): New member function.
7501 * parse.c (parse_exp_in_context): Update call to parser.
7502 * rust-lang.c (rust_language_data): Delete la_parser initializer.
7503 (rust_language::parser): New member function.
7504
37825800
AB
75052020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7506
7507 * top.c (print_gdb_configuration): Print --with-python-libdir
7508 configuration value.
7509
5b860c93
PW
75102020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7511
7512 * NEWS: Mention change to the alias command.
7513
cf00cd6f
PW
75142020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7515
7516 * cli/cli-cmds.c (lookup_cmd_for_default_args)
7517 (alias_command_completer)
7518 (make_alias_options_def_group): New functions.
7519 (alias_opts, alias_option_defs): New struct and array.
7520 (alias_usage_error): Update usage.
7521 (alias_command): Handles optional DEFAULT-ARGS... arguments.
7522 Use option framework.
7523 (_initialize_cli_cmds): Update alias command help.
7524 Update aliases command help.
7525 (show_user):
7526 Add NULL for new default_args lookup_cmd argument.
7527 (valid_command_p): Rename to validate_aliased_command.
7528 Add NULL for new default_args lookup_cmd argument. Verify that the
7529 aliased_command has no default args.
7530 * cli/cli-decode.c (help_cmd): Show aliases definitions.
7531 (lookup_cmd_1, lookup_cmd): New argument default_args.
7532 (add_alias_cmd):
7533 Add NULL for new default_args lookup_cmd argument.
7534 (print_help_for_command): Show default args under the layout
7535 alias some_alias = some_aliased_cmd some_alias_default_arg.
7536 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
7537 xfree default_args in destructor.
7538 * cli/cli-script.c (process_next_line, do_define_command):
7539 Add NULL for new default_args lookup_cmd argument.
7540 * command.h: Declare new default_args argument in lookup_cmd
7541 and lookup_cmd_1.
7542 * completer.c (complete_line_internal_1):
7543 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7544 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
7545 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
7546 Likewise.
7547 * infcmd.c (_initialize_infcmd): Likewise.
7548 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
7549 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
7550 * python/py-param.c (add_setshow_generic): Likewise.
7551 * remote.c (_initialize_remote): Likewise.
7552 * top.c (execute_command): Prepend default_args if command has some.
7553 (set_verbose):
7554 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7555 * tracepoint.c (validate_actionline, encode_actions_1):
7556 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7557
bd920864
TBA
75582020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7559
7560 * jit.c (jit_read_descriptor): Use bool as the return type.
7561 (jit_breakpoint_re_set_internal): Use bool as the return type.
7562 Invert the return value logic; return true if the jit breakpoint
7563 has been successfully initialized.
7564 (jit_inferior_init): Update the call to
7565 jit_breakpoint_re_set_internal.
7566
f8098322
PA
75672020-06-22 Pedro Alves <palves@redhat.com>
7568
7569 PR gdb/25939
7570 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
7571 Use the current inferior instead. Don't return
7572 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
7573 wait again.
7574 * sol-thread.c (sol_thread_target::wait): Don't reference
7575 inferior_ptid.
7576 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
7577 (sol_update_thread_list_callback): Use the current inferior's pid
7578 instead of inferior_ptid.
7579
196535a6
RO
75802020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7581
7582 * procfs.c: Cleanup many comments.
7583
7584 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
7585 (AFTER_WATCHFLAG): Replace by value.
7586
7587 (MAIN_PROC_NAME_FORMAT): Inline ...
7588 (create_procinfo): ... here.
7589
7590 (procfs_debug_inferior): Remove SYS_exec handling.
7591 (syscall_is_exec): Likewise.
7592 (procfs_set_exec_trap): Likewise.
7593
7594 (syscall_is_lwp_exit): Inline in callers.
7595 (syscall_is_exit): Likewise.
7596 (syscall_is_exec): Likewise.
7597 (syscall_is_lwp_create): Likewise.
7598
7599 (invalidate_cache): Remove #if 0 code.
7600
7601 (make_signal_thread_runnable): Remove.
7602 (procfs_target::resume): Remove #if 0 code.
7603
cf6f3e86
RO
76042020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7605
7606 PR gdb/25939
7607 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
7608 call ...
7609 (procfs_target::create_inferior): ... here.
7610
48e9cc84
PW
76112020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7612
7613 * exec.c (validate_exec_file): Ensure the build-id is up to
7614 date by calling reopen_exec_file (that checks file timestamp
7615 to decide to re-read the file).
7616
3922b302
PA
76172020-06-18 Pedro Alves <palves@redhat.com>
7618
7619 PR gdb/25412
7620 * gdbthread.h (delete_thread, delete_thread_silent)
7621 (find_thread_ptid): Update comments.
7622 * thread.c (current_thread_): New global.
7623 (is_current_thread): Move higher, and reimplement.
7624 (inferior_thread): Reimplement.
7625 (set_thread_exited): Use bool. Add assertions.
7626 (add_thread_silent): Simplify thread-reuse handling by always
7627 calling delete_thread.
7628 (delete_thread): Remove intro comment.
7629 (find_thread_ptid): Skip exited threads.
7630 (switch_to_thread_no_regs): Write to current_thread_.
7631 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
7632 INFERIOR_PTID. Clear current_thread_.
7633
6dbdab44
PA
76342020-06-18 Pedro Alves <palves@redhat.com>
7635
7636 * aix-thread.c (pd_update): Use switch_to_thread.
7637
2da4b788
PA
76382020-06-18 Pedro Alves <palves@redhat.com>
7639
7640 * ravenscar-thread.c (ravenscar_thread_target): Update.
7641 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
7642 (ravenscar_thread_target::add_active_thread): ... this. Don't
7643 set m_base_ptid here. Update to avoid referencing inferior_ptid.
7644 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
7645
50838d1b
PA
76462020-06-18 Pedro Alves <palves@redhat.com>
7647
7648 * nat/windows-nat.c (current_windows_thread): Remove.
7649 * nat/windows-nat.h (current_windows_thread): Remove.
7650 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
7651 Adjust.
7652 (display_selectors): Adjust to fetch the current
7653 windows_thread_info based on inferior_ptid.
7654 (fake_create_process): No longer write to current_windows_thread.
7655 (windows_nat_target::get_windows_debug_event):
7656 Don't set inferior_ptid or current_windows_thread.
7657 (windows_nat_target::wait): Adjust to not rely on
7658 current_windows_thread.
7659 (do_initial_windows_stuff): Now a method of windows_nat_target.
7660 Switch to the last_ptid thread.
7661 (windows_nat_target::attach): Adjust.
7662 (windows_nat_target::detach): Use switch_to_no_thread instead of
7663 writing to inferior_ptid directly.
7664 (windows_nat_target::create_inferior): Adjust.
7665
31ce04e9
PA
76662020-06-18 Pedro Alves <palves@redhat.com>
7667
7668 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
7669
1ee1a363
PA
76702020-06-18 Pedro Alves <palves@redhat.com>
7671
7672 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
7673 after creating it, instead of writing to inferior_ptid. Don't
7674 write to inferior_ptid.
7675
6d350754
PA
76762020-06-18 Pedro Alves <palves@redhat.com>
7677
7678 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
7679
5d971d48
PA
76802020-06-18 Pedro Alves <palves@redhat.com>
7681
7682 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
7683 it, instead of writing to inferior_ptid.
7684
86e57d1b
PA
76852020-06-18 Pedro Alves <palves@redhat.com>
7686
7687 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
7688 to inferior_ptid.
7689
f2e1c129
PA
76902020-06-18 Pedro Alves <palves@redhat.com>
7691
7692 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
7693 instead of writing to inferior_ptid directly.
7694
60db1b85
PA
76952020-06-18 Pedro Alves <palves@redhat.com>
7696
7697 * corelow.c (core_target::close): Use switch_to_no_thread instead
7698 of writing to inferior_ptid directly.
7699 (add_to_thread_list, core_target_open): Use switch_to_thread
7700 instead of writing to inferior_ptid directly.
7701
fe7d6a8d
PA
77022020-06-18 Pedro Alves <palves@redhat.com>
7703
7704 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
7705 inferior_ptid.
7706 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
7707 inferior_ptid.
7708 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
7709 inferior_ptid directly.
7710 (darwin_nat_target::init_thread_list): Switch to thread, instead
7711 of writing to inferior_ptid.
7712 (darwin_nat_target::attach): Don't write to inferior_ptid.
7713 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
7714
975f8708
PA
77152020-06-18 Pedro Alves <palves@redhat.com>
7716
7717 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
7718 thread.
7719 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
7720 Instead use switch_to_thread.
7721 (gnu_nat_target::detach): Use switch_to_no_thread
7722 instead of writing to inferior_ptid directly. Used passed-in
7723 inferior instead of looking up the inferior by pid.
7724
1a204730
PA
77252020-06-18 Pedro Alves <palves@redhat.com>
7726
7727 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
7728 inferior_ptid.
7729
ebe84f23
PA
77302020-06-18 Pedro Alves <palves@redhat.com>
7731
7732 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
7733 inferior_ptid.
7734 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
7735 thread.
7736 (nto_procfs_target::detach): Avoid referencing
7737 inferior_ptid. Use switch_to_no_thread instead of writing to
7738 inferior_ptid directly.
7739 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
7740 instead of writing to inferior_ptid directly.
7741 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
7742 to thread.
7743
191f02e5
PA
77442020-06-18 Pedro Alves <palves@redhat.com>
7745
7746 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
7747 after creating it, instead of writing to inferior_ptid.
7748 (gdbsim_target_open): Use switch_to_no_thread instead of writing
7749 to inferior_ptid directly.
7750 (gdbsim_target::wait): Don't write to inferior_ptid.
7751
0ac55310
PA
77522020-06-18 Pedro Alves <palves@redhat.com>
7753
7754 * remote.c (remote_target::remote_notice_new_inferior): Use
7755 switch_to_thread instead of writing to inferior_ptid directly.
7756 (remote_target::add_current_inferior_and_thread): Use
7757 switch_to_no_thread instead of writing to inferior_ptid directly.
7758 (extended_remote_target::attach): Use switch_to_inferior_no_thread
7759 and switch_to_thread instead of using set_current_inferior or
7760 writing to inferior_ptid directly.
7761
5233f39b
PA
77622020-06-18 Pedro Alves <palves@redhat.com>
7763
7764 * tracectf.c (ctf_target_open): Switch to added thread instead of
7765 writing to inferior_ptid directly.
7766 (ctf_target::close): Use switch_to_no_thread instead of writing to
7767 inferior_ptid directly.
7768
087e161b
PA
77692020-06-18 Pedro Alves <palves@redhat.com>
7770
7771 * tracefile-tfile.c (tfile_target_open): Don't write to
7772 inferior_ptid directly, instead switch to added thread.
7773 (tfile_target::close): Use switch_to_no_thread instead of writing
7774 to inferior_ptid directly.
7775
7fb43e53
PA
77762020-06-18 Pedro Alves <palves@redhat.com>
7777
7778 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
7779 (procfs_target::detach): Use switch_to_no_thread
7780 instead of writing to inferior_ptid directly.
7781 (do_attach): Change return type to void. Switch to the added
7782 thread.
7783 (procfs_target::create_inferior): Switch to the added thread.
7784 (procfs_do_thread_registers): Don't write to inferior_ptid.
7785
18493a00
PA
77862020-06-18 Pedro Alves <palves@redhat.com>
7787
7788 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
7789 of writing to inferior_ptid.
7790 (scoped_restore_exited_inferior): Delete.
7791 (handle_vfork_child_exec_or_exit): Simplify using
7792 scoped_restore_current_pspace_and_thread. Use switch_to_thread
7793 instead of writing to inferior_ptid.
7794 (THREAD_STOPPED_BY): Delete.
7795 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
7796 (thread_stopped_by_hw_breakpoint): Delete.
7797 (save_waitstatus): Use
7798 scoped_restore_current_thread+switch_to_thread, and call
7799 target_stopped_by_watchpoint instead of
7800 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
7801 instead of thread_stopped_by_sw_breakpoint, and
7802 target_stopped_by_hw_breakpoint instead of
7803 thread_stopped_by_hw_breakpoint.
7804 (handle_inferior_event)
7805 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
7806 inferior_ptid directly, nor
7807 set_current_inferior/set_current_program_space. Use
7808 switch_to_thread / switch_to_inferior_no_thread instead.
7809
a0776b13
PA
78102020-06-18 Pedro Alves <palves@redhat.com>
7811
7812 * target.c (generic_mourn_inferior): Use switch_to_no_thread
7813 instead of writing to inferior_ptid.
7814
6155c136
PA
78152020-06-18 Pedro Alves <palves@redhat.com>
7816
7817 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
7818 added thread.
7819 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
7820 to the added thread.
7821 (inf_ptrace_target::detach_success): Use switch_to_no_thread
7822 instead of writing to inferior_ptid.
7823
c5316fc6
PA
78242020-06-18 Pedro Alves <palves@redhat.com>
7825
7826 * gdbarch-selftests.c: Include "progspace-and-thread.h".
7827 (register_to_value_test): Mock a program_space too. Heap-allocate
7828 the address space. Don't write to inferior_ptid. Use
7829 switch_to_thread instead.
7830
8df01799
PA
78312020-06-18 Pedro Alves <palves@redhat.com>
7832
7833 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
7834 Delete.
7835 (find_signalled_thread()): New, factored out from
7836 linux_make_corefile_notes and adjusted to handle exited threads.
7837 (linux_make_corefile_notes): Adjust to use the new
7838 find_signalled_thread.
7839
41792d68
PA
78402020-06-18 Pedro Alves <palves@redhat.com>
7841
7842 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
7843 of saving/restoring inferior_ptid.
7844
612f258a
TT
78452020-06-17 Tom Tromey <tom@tromey.com>
7846
7847 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
7848 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
7849 declare.
7850 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
7851
efb763a5
SM
78522020-06-15 Simon Marchi <simon.marchi@efficios.com>
7853
7854 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
7855 of partial symtabs.
7856
2951f6c0
SM
78572020-06-17 Simon Marchi <simon.marchi@efficios.com>
7858
7859 * regformats/reg-arm.dat: Remove.
7860 * regformats/reg-bfin.dat: Remove.
7861 * regformats/reg-cris.dat: Remove.
7862 * regformats/reg-crisv32.dat: Remove.
7863 * regformats/reg-m32r.dat: Remove.
7864 * regformats/reg-tilegx.dat: Remove.
7865 * regformats/reg-tilegx32.dat: Remove.
7866
7d458ea5
SM
78672020-06-17 Simon Marchi <simon.marchi@efficios.com>
7868
7869 * features/Makefile (WHICH): Remove arm files.
7870 * regformats/arm/arm-with-iwmmxt.dat: Remove.
7871 * regformats/arm/arm-with-neon.dat: Remove.
7872 * regformats/arm/arm-with-vfpv2.dat: Remove.
7873 * regformats/arm/arm-with-vfpv3.dat: Remove.
7874
3af96c0d
SM
78752020-06-17 Simon Marchi <simon.marchi@efficios.com>
7876
7877 * features/Makefile (XMLTOC): Remove rx.xml.
7878
b25e22fd
PA
78792020-06-17 Pedro Alves <palves@redhat.com>
7880
7881 * gdbthread.h (thread_control_state) <trap_expected> Update
7882 comments.
7883
a78a19b1
AB
78842020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7885
7886 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
7887 ada_language::lookup_symbol_nonlocal.
7888 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
7889 (ada_language::lookup_symbol_nonlocal): New member function,
7890 implementation from ada_lookup_symbol_nonlocal.
7891 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
7892 initializer.
7893 (cplus_language_data): Delete la_lookup_symbol_nonlocal
7894 initializer.
7895 (cplus_language::lookup_symbol_nonlocal): New member function.
7896 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
7897 (minimal_language_data) Likewise.
7898 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
7899 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
7900 initializer.
7901 (d_language::lookup_symbol_nonlocal): New member function.
7902 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
7903 initializer.
7904 (f_language::lookup_symbol_nonlocal): New member function.
7905 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
7906 initializer.
7907 * language.c (unknown_language_data): Likewise.
7908 (auto_language_data): Likewise.
7909 * language.h (language_data): Delete la_lookup_symbol_nonlocal
7910 field.
7911 (language_defn::lookup_symbol_nonlocal): New member function.
7912 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
7913 initializer.
7914 * objc-lang.c (objc_language_data): Likewise.
7915 * opencl-lang.c (opencl_language_data): Likewise.
7916 * p-lang.c (pascal_language_data): Likewise.
7917 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
7918 rust_language::lookup_symbol_nonlocal.
7919 (rust_language_data): Delete la_lookup_symbol_nonlocal
7920 initializer.
7921 (rust_language::lookup_symbol_nonlocal): New member function,
7922 implementation from rust_lookup_symbol_nonlocal.
7923 * symtab.c (lookup_symbol_aux): Update call to
7924 lookup_symbol_nonlocal.
7925 (basic_lookup_symbol_nonlocal): Rename to...
7926 (language_defn::lookup_symbol_nonlocal): ...this, and update
7927 header comment. Remove language_defn parameter, and replace with
7928 uses of `this'.
7929 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
7930
ebe2334e
AB
79312020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7932
7933 * ada-lang.c (ada_language_data): Delete la_value_print_inner
7934 initializer.
7935 (ada_language::value_print_inner): New member function.
7936 * c-lang.c (c_language_data): Delete la_value_print_inner
7937 initializer.
7938 (cplus_language_data): Likewise.
7939 (asm_language_data): Likewise.
7940 (minimal_language_data): Likewise.
7941 * d-lang.c (d_language_data): Likewise.
7942 (d_language::value_print_inner): New member function.
7943 * f-lang.c (f_language_data): Delete la_value_print_inner
7944 initializer.
7945 (f_language::value_print_inner): New member function.
7946 * f-lang.h (f_value_print_innner): Rename to...
7947 (f_value_print_inner): ...this (note spelling of 'inner').
7948 * f-valprint.c (f_value_print_innner): Rename to...
7949 (f_value_print_inner): ...this (note spelling of 'inner').
7950 * go-lang.c (go_language_data): Delete la_value_print_inner
7951 initializer.
7952 (go_language::value_print_inner): New member function.
7953 * language.c (language_defn::value_print_inner): Define new member
7954 function.
7955 (unk_lang_value_print_inner): Delete.
7956 (unknown_language_data): Delete la_value_print_inner initializer.
7957 (unknown_language::value_print_inner): New member function.
7958 (auto_language_data): Delete la_value_print_inner initializer.
7959 (auto_language::value_print_inner): New member function.
7960 * language.h (language_data): Delete la_value_print_inner field.
7961 (language_defn::value_print_inner): Delcare new member function.
7962 * m2-lang.c (m2_language_data): Delete la_value_print_inner
7963 initializer.
7964 (m2_language::value_print_inner): New member function.
7965 * objc-lang.c (objc_language_data): Delete la_value_print_inner
7966 initializer.
7967 * opencl-lang.c (opencl_language_data): Likewise.
7968 * p-lang.c (pascal_language_data): Likewise.
7969 (pascal_language::value_print_inner): New member function.
7970 * rust-lang.c (rust_language_data): Delete la_value_print_inner
7971 initializer.
7972 (rust_language::value_print_inner): New member function.
7973 * valprint.c (do_val_print): Update call to value_print_inner.
7974
a1d1fa3e
AB
79752020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7976
7977 * ada-lang.c (ada_language_data): Delete la_value_print
7978 initializer.
7979 (ada_language::value_print): New member function.
7980 * c-lang.c (c_language_data): Delete la_value_print initializer.
7981 (cplus_language_data): Likewise.
7982 (asm_language_data): Likewise.
7983 (minimal_language_data): Likewise.
7984 * d-lang.c (d_language_data): Likewise.
7985 * f-lang.c (f_language_data): Likewise.
7986 * go-lang.c (go_language_data): Likewise.
7987 * language.c (unk_lang_value_print): Delete.
7988 (language_defn::value_print): Define new member function.
7989 (unknown_language_data): Delete la_value_print initializer.
7990 (unknown_language::value_print): New member function.
7991 (auto_language_data): Delete la_value_print initializer.
7992 (auto_language::value_print): New member function.
7993 * language.h (language_data): Delete la_value_print field.
7994 (language_defn::value_print): Declare new member function.
7995 (LA_VALUE_PRINT): Update call to value_print.
7996 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
7997 * objc-lang.c (objc_language_data): Likewise.
7998 * opencl-lang.c (opencl_language_data): Likewise.
7999 * p-lang.c (pascal_language_data): Likewise.
8000 (pascal_language::value_print): New member function.
8001 * rust-lang.c (rust_language_data): Delete la_value_print
8002 initializer.
8003
f16a9f57
AB
80042020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8005
8006 * ada-lang.c (ada_watch_location_expression): Rename to
8007 ada_language::watch_location_expression.
8008 (ada_language_data): Delete la_watch_location_expression
8009 initializer.
8010 (ada_language::watch_location_expression): New member function,
8011 implementation from ada_watch_location_expression.
8012 * breakpoint.c (watch_command_1): Update call to
8013 watch_location_expression.
8014 * c-lang.c (c_watch_location_expression): Rename to
8015 language_defn::watch_location_expression.
8016 (c_language_data): Delete la_watch_location_expression
8017 initializer.
8018 (cplus_language_data): Likewise.
8019 (asm_language_data): Likewise.
8020 (minimal_language_data): Likewise.
8021 * c-lang.h (c_watch_location_expression): Delete declaration.
8022 * d-lang.c (d_language_data): Delete la_watch_location_expression
8023 initializer.
8024 * f-lang.c (f_language_data): Likewise.
8025 * go-lang.c (go_language_data): Likewise.
8026 * language.c (language_defn::watch_location_expression): Member
8027 function implementation from c_watch_location_expression.
8028 (unknown_language_data): Delete la_watch_location_expression
8029 initializer.
8030 (auto_language_data): Likewise.
8031 * language.h (language_data): Delete la_watch_location_expression
8032 field.
8033 (language_defn::watch_location_expression): Declare new member
8034 function.
8035 * m2-lang.c (m2_language_data): Delete
8036 la_watch_location_expression initializer.
8037 * objc-lang.c (objc_language_data): Likewise.
8038 * opencl-lang.c (opencl_language_data): Likewise.
8039 * p-lang.c (pascal_language_data): Likewise.
8040 * rust-lang.c (rust_watch_location_expression): Rename to
8041 rust_language::watch_location_expression.
8042 (rust_language_data): Delete la_watch_location_expression
8043 initializer.
8044 (rust_language::watch_location_expression): New member function,
8045 implementation from rust_watch_location_expression.
8046
7e56227d
AB
80472020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8048
8049 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
8050 ada_language::collect_symbol_completion_matches.
8051 (ada_language_data): Delete la_collect_symbol_completion_matches
8052 initializer.
8053 (ada_language::collect_symbol_completion_matches): New member
8054 function, implementation from
8055 ada_collect_symbol_completion_matches.
8056 * c-lang.c (c_language_data): Delete
8057 la_collect_symbol_completion_matches initializer.
8058 (cplus_language_data): Likewise.
8059 (asm_language_data): Likewise.
8060 (minimal_language_data): Likewise.
8061 * d-lang.c (d_language_data): Likewise.
8062 * f-lang.c (f_collect_symbol_completion_matches): Rename to
8063 f_language::collect_symbol_completion_matches.
8064 (f_language_data): Delete la_collect_symbol_completion_matches
8065 initializer.
8066 (f_language::collect_symbol_completion_matches) New member
8067 function, implementation from f_collect_symbol_completion_matches.
8068 * go-lang.c (go_language_data): Delete
8069 la_collect_symbol_completion_matches initializer.
8070 * language.c (unknown_language_data): Likewise.
8071 (auto_language_data): Likewise.
8072 * language.h (language_data): Delete
8073 la_collect_symbol_completion_matches field.
8074 (language_defn::collect_symbol_completion_matches): New member
8075 function.
8076 * m2-lang.c (m2_language_data): Delete
8077 la_collect_symbol_completion_matches initializer.
8078 * objc-lang.c (objc_language_data): Likewise.
8079 * opencl-lang.c (opencl_language_data): Likewise.
8080 * p-lang.c (pascal_language_data): Likewise.
8081 * rust-lang.c (rust_language_data): Likewise.
8082 * symtab.c (default_collect_symbol_completion_matches): Delete.
8083 (collect_symbol_completion_matches): Update call to
8084 collect_symbol_completion_matches.
8085 (collect_symbol_completion_matches_type): Likewise.
8086 * symtab.h (default_collect_symbol_completion_matches): Delete
8087 declaration.
8088
53fc67f8
AB
80892020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8090
8091 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
8092 (ada_language_data): Delete la_word_break_characters initializer.
8093 (ada_language::word_break_characters): New member function.
8094 * c-lang.c (c_language_data): Delete la_word_break_characters
8095 initializer.
8096 (cplus_language_data): Likewise.
8097 (asm_language_data): Likewise.
8098 (minimal_language_data): Likewise.
8099 * completer.c: Update global comment.
8100 (advance_to_expression_complete_word_point): Update call to
8101 word_break_characters.
8102 (complete_files_symbols): Likewise.
8103 (complete_line_internal_1): Likewise.
8104 (default_completer_handle_brkchars): Likewise.
8105 (skip_quoted_chars): Likewise.
8106 * d-lang.c (d_language_data): Delete la_word_break_characters
8107 initializer.
8108 * f-lang.c (f_word_break_characters): Delete.
8109 (f_language_data): Delete la_word_break_characters initializer.
8110 (f_language::word_break_characters): New member function.
8111 * go-lang.c (go_language_data): Delete la_word_break_characters
8112 initializer.
8113 * language.c (unknown_language_data): Likewise.
8114 (auto_language_data): Likewise.
8115 * language.h (default_word_break_characters): Move declaration to
8116 earlier in the file.
8117 (language_data): Delete la_word_break_characters field.
8118 (language_defn::word_break_characters): New member function.
8119 * m2-lang.c (m2_language_data): Delete la_word_break_characters
8120 initializer.
8121 * objc-lang.c (objc_language_data): Likewise.
8122 * opencl-lang.c (opencl_language_data): Likewise.
8123 * p-lang.c (pascal_language_data): Likewise.
8124 * rust-lang.c (rust_language_data): Likewise.
8125
c9debfb9
AB
81262020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8127
8128 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
8129 (ada_language_data): Delete la_get_symbol_name_matcher
8130 initializer.
8131 (language_defn::get_symbol_name_matcher_inner): New member
8132 function.
8133 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
8134 initializer.
8135 (cplus_language_data): Likewise.
8136 (cplus_language::get_symbol_name_matcher_inner): New member
8137 function.
8138 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
8139 (minimal_language_data): Likewise.
8140 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
8141 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
8142 initializer.
8143 * dictionary.c (iter_match_first_hashed): Update call to
8144 get_symbol_name_matcher.
8145 (iter_match_next_hashed): Likewise.
8146 (iter_match_next_linear): Likewise.
8147 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
8148 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
8149 initializer.
8150 (f_language::get_symbol_name_matcher_inner): New member function.
8151 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
8152 initializer.
8153 * language.c (default_symbol_name_matcher): Update header comment,
8154 make static.
8155 (language_defn::get_symbol_name_matcher): New definition.
8156 (language_defn::get_symbol_name_matcher_inner): Likewise.
8157 (get_symbol_name_matcher): Delete.
8158 (unknown_language_data): Delete la_get_symbol_name_matcher
8159 initializer.
8160 (auto_language_data): Likewise.
8161 * language.h (language_data): Delete la_get_symbol_name_matcher
8162 field.
8163 (language_defn::get_symbol_name_matcher): New member function.
8164 (language_defn::get_symbol_name_matcher_inner): Likewise.
8165 (default_symbol_name_matcher): Delete declaration.
8166 * linespec.c (find_methods): Update call to
8167 get_symbol_name_matcher.
8168 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
8169 initializer.
8170 * minsyms.c (lookup_minimal_symbol): Update call to
8171 get_symbol_name_matcher.
8172 (iterate_over_minimal_symbols): Likewise.
8173 * objc-lang.c (objc_language_data): Delete
8174 la_get_symbol_name_matcher initializer.
8175 * opencl-lang.c (opencl_language_data): Likewise.
8176 * p-lang.c (pascal_language_data): Likewise.
8177 * psymtab.c (psymbol_name_matches): Update call to
8178 get_symbol_name_matcher.
8179 * rust-lang.c (rust_language_data): Delete
8180 la_get_symbol_name_matcher initializer.
8181 * symtab.c (symbol_matches_search_name): Update call to
8182 get_symbol_name_matcher.
8183 (compare_symbol_name): Likewise.
8184
9a49ad8c
AB
81852020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8186
8187 * ada-lang.c (ada_language_data): Delete la_compute_program
8188 initializer.
8189 * c-lang.c (c_language_data): Likewise.
8190 (c_language::compute_program): New member function.
8191 (cplus_language_data): Delete la_compute_program initializer.
8192 (cplus_language::compute_program): New member function.
8193 (asm_language_data): Delete la_compute_program initializer.
8194 (minimal_language_data): Likewise.
8195 * c-lang.h (c_compute_program): Update comment.
8196 (cplus_compute_program): Likewise.
8197 * compile/compile-c-support.c (c_compute_program): Likewise.
8198 (cplus_compute_program): Likewise.
8199 * compile/compile.c (compile_to_object): Update call to
8200 la_compute_program.
8201 * d-lang.c (d_language_data): Delete la_compute_program
8202 initializer.
8203 * f-lang.c (f_language_data): Likewise.
8204 * go-lang.c (go_language_data): Likewise.
8205 * language.c (unknown_language_data): Likewise.
8206 (auto_language_data): Likewise.
8207 * language.h (language_data): Delete la_compute_program field.
8208 (language_defn::compute_program): New member function.
8209 * m2-lang.c (m2_language_data): Delete la_compute_program
8210 initializer.
8211 * objc-lang.c (objc_language_data): Likewise.
8212 * opencl-lang.c (opencl_language_data): Likewise.
8213 * p-lang.c (pascal_language_data): Likewise.
8214 * rust-lang.c (rust_language_data): Likewise.
8215
eff93b4d
AB
82162020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8217
8218 * ada-lang.c (ada_language_data) Delete
8219 la_class_name_from_physname initializer.
8220 * c-lang.c (c_language_data): Likewise.
8221 (cplus_language_data): Likewise.
8222 (cplus_language::class_name_from_physname): New member function.
8223 (asm_language_data): Delete la_class_name_from_physname
8224 initializer.
8225 (minimal_language_data): Likewise.
8226 * d-lang.c (d_language_data): Likewise.
8227 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
8228 method on language_defn class.
8229 (guess_full_die_structure_name): Likewise.
8230 * f-lang.c (f_language_data): Delete la_class_name_from_physname
8231 initializer.
8232 * go-lang.c (go_language_data): Likewise.
8233 * language.c (language_class_name_from_physname): Delete.
8234 (unk_lang_class_name): Delete.
8235 (unknown_language_data): Delete la_class_name_from_physname
8236 initializer.
8237 (auto_language_data): Likewise.
8238 * language.h (language_data): Delete la_class_name_from_physname
8239 field.
8240 (language_defn::class_name_from_physname): New function.
8241 (language_class_name_from_physname): Delete declaration.
8242 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
8243 initializer.
8244 * objc-lang.c (objc_language_data): Likewise.
8245 * opencl-lang.c (opencl_language_data): Likewise.
8246 * p-lang.c (pascal_language_data): Likewise.
8247 * rust-lang.c (rust_language_data): Likewise.
8248
de543742
TT
82492020-06-16 Tom Tromey <tom@tromey.com>
8250
8251 * tui/tui-data.h (STATUS_NAME): New macro.
8252 * tui/tui-layout.c (tui_remove_some_windows)
8253 (initialize_known_windows, tui_register_window)
8254 (tui_layout_split::remove_windows, initialize_layouts)
8255 (tui_new_layout_command): Don't use hard-coded window names.
8256
a350efd4
TT
82572020-06-16 Tom Tromey <tom@tromey.com>
8258
8259 PR tui/25348:
8260 * tui/tui.c (tui_ensure_readline_initialized): Rename from
8261 tui_initialize_readline. Only run once. Call rl_initialize.
8262 * tui/tui.h (tui_ensure_readline_initialized): Rename from
8263 tui_initialize_readline.
8264 * tui/tui-io.c (tui_setup_io): Call
8265 tui_ensure_readline_initialized.
8266 * tui/tui-interp.c (tui_interp::init): Update.
8267
39ec0490
TT
82682020-06-16 Tom Tromey <tom@tromey.com>
8269
8270 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
8271 Also preserve the status window.
8272
d2d1ea20
TT
82732020-06-16 Tom Tromey <tom@tromey.com>
8274
8275 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
8276 where m_window==nullptr.
8277
66920317
TT
82782020-06-15 Tom Tromey <tromey@adacore.com>
8279
8280 * windows-nat.c (windows_nat::handle_output_debug_string):
8281 Update.
8282 (windows_nat::handle_ms_vc_exception): Update.
8283 * target.h (target_read_string): Change API.
8284 * target.c (target_read_string): Change API.
8285 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
8286 Update.
8287 * solib-frv.c (frv_current_sos): Update.
8288 * solib-dsbt.c (dsbt_current_sos): Update.
8289 * solib-darwin.c (darwin_current_sos): Update.
8290 * linux-thread-db.c (inferior_has_bug): Update.
8291 * expprint.c (print_subexp_standard): Update.
8292 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
8293 (ada_exception_message_1): Update.
8294
a5d871dd
TT
82952020-06-15 Tom Tromey <tromey@adacore.com>
8296
8297 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
8298
670e35fa
TT
82992020-06-15 Tom Tromey <tromey@adacore.com>
8300
8301 * valprint.c (read_string): Update comment.
8302 * target.c (MIN): Remove.
8303 (target_read_string): Rewrite.
8304
f5272a3b
TT
83052020-06-15 Tom Tromey <tromey@adacore.com>
8306
8307 * corefile.c (read_memory_string): Remove.
8308 * ada-valprint.c (ada_value_print_ptr): Update.
8309 * ada-lang.h (ada_tag_name): Change return type.
8310 * ada-lang.c (type_from_tag): Update.
8311 (ada_tag_name_from_tsd): Change return type. Use
8312 target_read_string.
8313 (ada_tag_name): Likewise.
8314 * gdbcore.h (read_memory_string): Don't declare.
8315
2c074f49
HD
83162020-06-14 Hannes Domani <ssbssa@yahoo.de>
8317
8318 * symtab.c (rbreak_command): Ignore Windows drive colon.
8319
6a17d503
SM
83202020-06-12 Simon Marchi <simon.marchi@efficios.com>
8321
8322 * NEWS: Mention removed GDBserver host support.
8323
453c733f
NC
83242020-06-12 Nelson Chu <nelson.chu@sifive.com>
8325
8326 * features/riscv/rebuild-csr-xml.sh: Updated.
8327
2b4e6a3f
TT
83282020-06-11 Tom Tromey <tom@tromey.com>
8329
8330 PR gdb/18318:
8331 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
8332
4412332f
JG
83332020-06-09 Jonny Grant <jg@jguk.org>
83342020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
8335
8336 * main.c (captured_main_1): Don't print new line after help.
8337 (print_gdb_help): add mailing list and IRC channel information
8338 to --help. Add new lines between items in the footer. Remove
8339 quotes around bug url.
8340
2f33032a
KS
83412020-06-11 Keith Seitz <keiths@redhat.com>
8342
8343 PR gdb/21356
8344 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
8345 Resolve typedefs for type length calculations.
8346
7ab96794
TV
83472020-06-10 Tom de Vries <tdevries@suse.de>
8348
8349 PR ada/24713
8350 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
8351 (write_psymbols): Enable .gdb_index for ada.
8352 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
8353 ada.
8354
e5f3ece2
TV
83552020-06-10 Tom de Vries <tdevries@suse.de>
8356
8357 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
8358 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
8359 namei" instead of "const char *name" argument.
8360 (dw2_map_matching_symbols): Use "offset_type namei" variant of
8361 dw2_symtab_iter_init.
8362
940da03e
SM
83632020-06-08 Simon Marchi <simon.marchi@efficios.com>
8364
8365 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
8366 to use type::field and field::type instead.
8367
b6cdac4b
SM
83682020-06-08 Simon Marchi <simon.marchi@efficios.com>
8369
8370 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
8371 to use field::type instead.
8372
5d14b6e5
SM
83732020-06-08 Simon Marchi <simon.marchi@efficios.com>
8374
8375 * gdbtypes.h (struct field) <type, set_type>: New methods.
8376 Rename `type` field to...
8377 <m_type>: ... this. Change references throughout to use type or
8378 set_type methods.
8379 (FIELD_TYPE): Use field::type. Change call sites that modify
8380 the field's type to use field::set_type instead.
8381
3d967001
SM
83822020-06-08 Simon Marchi <simon.marchi@efficios.com>
8383
8384 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
8385 to use type::index_type instead.
8386
262abc0d
SM
83872020-06-08 Simon Marchi <simon.marchi@efficios.com>
8388
8389 * gdbtypes.h (struct type) <index_type, set_index_type>: New
8390 methods.
8391 (TYPE_INDEX_TYPE): Use type::index_type.
8392 * gdbtypes.c (create_array_type_with_stride): Likewise.
8393
82836c92
TT
83942020-06-07 Tom Tromey <tom@tromey.com>
8395
8396 * valprint.c (generic_val_print_float): Remove "embedded_offset"
8397 parameter.
8398 (generic_value_print): Update.
8399
940dace9
AB
84002020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8401
8402 Revert commit 982a38f60b0.
8403 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
8404
982a38f6
AB
84052020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8406
8407 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
8408 avoid use after free.
8409
82f06518
TV
84102020-06-05 Tom de Vries <tdevries@suse.de>
8411
8412 * NEWS: Fix typos.
8413
f8c41851
SM
84142020-06-04 Simon Marchi <simon.marchi@efficios.com>
8415
8416 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
8417 the per_bfd object.
8418 (dwarf2_read_debug_names): Likewise.
8419 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
8420 object when re-using a per_bfd object with an index.
8421
f9b5d5ea
TV
84222020-06-03 Tom de Vries <tdevries@suse.de>
8423
8424 PR symtab/26046
8425 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
8426 children for C++.
8427 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
8428 DW_TAG_subprogram.
8429
f6eee2d0
AB
84302020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8431
8432 * ada-lang.c (ada_language_data): Delete skip_trampoline
8433 initializer.
8434 * c-lang.c (c_language_data): Likewise.
8435 (cplus_language_data): Likewise.
8436 (cplus_language::skip_trampoline): New member function.
8437 (asm_language_data): Delete skip_trampoline initializer.
8438 (minimal_language_data): Likewise.
8439 * d-lang.c (d_language_data): Likewise.
8440 * f-lang.c (f_language_data): Likewise.
8441 * go-lang.c (go_language_data): Likewise.
8442 * language.c (unk_lang_trampoline): Delete function.
8443 (skip_language_trampoline): Update.
8444 (unknown_language_data): Delete skip_trampoline initializer.
8445 (auto_language_data): Likewise.
8446 * language.h (language_data): Delete skip_trampoline field.
8447 (language_defn::skip_trampoline): New function.
8448 * m2-lang.c (m2_language_data): Delete skip_trampoline
8449 initializer.
8450 * objc-lang.c (objc_skip_trampoline): Delete function, move
8451 implementation to objc_language::skip_trampoline.
8452 (objc_language_data): Delete skip_trampoline initializer.
8453 (objc_language::skip_trampoline): New member function with
8454 implementation from objc_skip_trampoline.
8455 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
8456 initializer.
8457 * p-lang.c (pascal_language_data): Likewise.
8458 * rust-lang.c (rust_language_data): Likewise.
8459
0a50df5d
AB
84602020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8461
8462 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
8463 (ada_language::demangle): New member function.
8464 * c-lang.c (c_language_data): Delete la_demangle initializer.
8465 (cplus_language_data): Delete la_demangle initializer.
8466 (cplus_language::demangle): New member function.
8467 (asm_language_data): Delete la_demangle initializer.
8468 (minimal_language_data): Delete la_demangle initializer.
8469 * d-lang.c (d_language_data): Delete la_demangle initializer.
8470 (d_language::demangle): New member function.
8471 * f-lang.c (f_language_data): Delete la_demangle initializer.
8472 (f_language::demangle): New member function.
8473 * go-lang.c (go_language_data): Delete la_demangle initializer.
8474 (go_language::demangle): New member function.
8475 * language.c (language_demangle): Update.
8476 (unk_lang_demangle): Delete.
8477 (unknown_language_data): Delete la_demangle initializer.
8478 (unknown_language::demangle): New member function.
8479 (auto_language_data): Delete la_demangle initializer.
8480 (auto_language::demangle): New member function.
8481 * language.h (language_data): Delete la_demangle field.
8482 (language_defn::demangle): New function.
8483 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
8484 * objc-lang.c (objc_language_data): Delete la_demangle
8485 initializer.
8486 (objc_language::demangle): New member function.
8487 * opencl-lang.c (opencl_language_data): Delete la_demangle
8488 initializer.
8489 * p-lang.c (pascal_language_data): Likewise.
8490 * rust-lang.c (rust_language_data): Likewise.
8491 (rust_language::demangle): New member function.
8492
fbfb0a46
AB
84932020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8494
8495 * ada-lang.c (ada_language_data): Delete la_print_type
8496 initializer.
8497 (ada_language::print_type): New member function.
8498 * c-lang.c (c_language_data): Delete la_print_type initializer.
8499 (c_language::print_type): New member function.
8500 (cplus_language_data): Delete la_print_type initializer.
8501 (cplus_language::print_type): New member function.
8502 (asm_language_data): Delete la_print_type initializer.
8503 (asm_language::print_type): New member function.
8504 (minimal_language_data): Delete la_print_type initializer.
8505 (minimal_language::print_type): New member function.
8506 * d-lang.c (d_language_data): Delete la_print_type initializer.
8507 (d_language::print_type): New member function.
8508 * f-lang.c (f_language_data): Delete la_print_type initializer.
8509 (f_language::print_type): New member function.
8510 * go-lang.c (go_language_data): Delete la_print_type initializer.
8511 (go_language::print_type): New member function.
8512 * language.c (unk_lang_print_type): Delete.
8513 (unknown_language_data): Delete la_print_type initializer.
8514 (unknown_language::print_type): New member function.
8515 (auto_language_data): Delete la_print_type initializer.
8516 (auto_language::print_type): New member function.
8517 * language.h (language_data): Delete la_print_type field.
8518 (language_defn::print_type): New function.
8519 (LA_PRINT_TYPE): Update.
8520 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
8521 (m2_language::print_type): New member function.
8522 * objc-lang.c (objc_language_data): Delete la_print_type
8523 initializer.
8524 (objc_language::print_type): New member function.
8525 * opencl-lang.c (opencl_print_type): Delete, implementation moved
8526 to opencl_language::print_type.
8527 (opencl_language_data): Delete la_print_type initializer.
8528 (opencl_language::print_type): New member function, implementation
8529 from opencl_print_type.
8530 * p-lang.c (pascal_language_data): Delete la_print_type
8531 initializer.
8532 (pascal_language::print_type): New member function.
8533 * rust-lang.c (rust_print_type): Delete, implementation moved to
8534 rust_language::print_type.
8535 (rust_language_data): Delete la_print_type initializer.
8536 (rust_language::print_type): New member function, implementation
8537 from rust_print_type.
8538
6f827019
AB
85392020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8540
8541 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
8542 implementation moves to...
8543 (ada_language::sniff_from_mangled_name): ...here. Update return
8544 type.
8545 (ada_language_data): Delete la_sniff_from_mangled_name
8546 initializer.
8547 * c-lang.c (c_language_data): Likewise.
8548 (cplus_language_data): Likewise.
8549 (cplus_language::sniff_from_mangled_name): New member function,
8550 implementation taken from gdb_sniff_from_mangled_name.
8551 (asm_language_data): Delete la_sniff_from_mangled_name
8552 initializer.
8553 (minimal_language_data): Likewise.
8554 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
8555 implementation moves to cplus_language::sniff_from_mangled_name.
8556 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
8557 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
8558 moves to...
8559 (d_language::sniff_from_mangled_name): ...here.
8560 (d_language_data): Delete la_sniff_from_mangled_name initializer.
8561 * f-lang.c (f_language_data): Likewise.
8562 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
8563 moves to...
8564 (go_language::sniff_from_mangled_name): ...here.
8565 (go_language_data): Delete la_sniff_from_mangled_name initializer.
8566 * language.c (language_sniff_from_mangled_name): Delete.
8567 (unknown_language_data): Delete la_sniff_from_mangled_name
8568 initializer.
8569 (auto_language_data): Likewise.
8570 * language.h (language_data): Delete la_sniff_from_mangled_name
8571 field.
8572 (language_defn::sniff_from_mangled_name): New function.
8573 (language_sniff_from_mangled_name): Delete declaration.
8574 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
8575 field.
8576 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
8577 implementation moves to...
8578 (objc_language::sniff_from_mangled_name): ...here.
8579 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
8580 * opencl-lang.c (opencl_language_data): Likewise.
8581 * p-lang.c (pascal_language_data): Likewise.
8582 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
8583 implementation moves to...
8584 (rust_language::sniff_from_mangled_name): ...here.
8585 (rust_language_data): Delete la_sniff_from_mangled_name
8586 initializer.
8587 * symtab.c (symbol_find_demangled_name): Call
8588 sniff_from_mangled_name member function.
8589
fb8006fd
AB
85902020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8591
8592 * ada-lang.c (ada_language_data): Delete la_search_name_hash
8593 initializer.
8594 * c-lang.c (c_language_data): Likewise.
8595 (cplus_language_data): Likewise.
8596 (cplus_language::search_name_hash): New member function.
8597 (asm_language_data): Delete la_search_name_hash initializer.
8598 (minimal_language_data): Likewise.
8599 * d-lang.c (d_language_data): Likewise.
8600 * dictionary.c (default_search_name_hash): Rename to...
8601 (language_defn::search_name_hash): ...this.
8602 * f-lang.c (f_language_data): Likewise.
8603 (f_language::search_name_hash): New member function.
8604 * go-lang.c (go_language_data): Delete la_search_name_hash
8605 initializer.
8606 * language.c (unknown_language_data): Likewise.
8607 (auto_language_data): Likewise.
8608 * language.h (struct language_data): Delete la_search_name_hash
8609 field.
8610 (language_defn::search_name_hash): Declare new member function.
8611 (default_search_name_hash): Delete declaration.
8612 * m2-lang.c (m2_language_data): Delete la_search_name_hash
8613 initializer.
8614 * objc-lang.c (objc_language_data): Likewise.
8615 * opencl-lang.c (opencl_language_data): Likewise.
8616 * p-lang.c (pascal_language_data): Likewise.
8617 * rust-lang.c (rust_language_data): Likewise.
8618 * symtab.c (search_name_hash): Update call.
8619
8e25bafe
AB
86202020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8621
8622 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
8623 initializer.
8624 * c-lang.c (class compile_instance): Declare.
8625 (c_language_data): Delete la_get_compile_instance initializer.
8626 (c_language::get_compile_instance): New member function.
8627 (cplus_language_data): Delete la_get_compile_instance initializer.
8628 (cplus_language::get_compile_instance): New member function.
8629 (asm_language_data): Delete la_get_compile_instance initializer.
8630 (minimal_language_data): Likewise.
8631 * c-lang.h (c_get_compile_context): Update comment.
8632 (cplus_get_compile_context): Update comment.
8633 * compile/compile.c (compile_to_object): Update calls, don't rely
8634 on function pointer being NULL.
8635 * d-lang.c (d_language_data): Delete la_get_compile_instance
8636 initializer.
8637 * f-lang.c (f_language_data): Likewise.
8638 * go-lang.c (go_language_data): Likewise.
8639 * language.c (unknown_language_data): Likewise.
8640 (auto_language_data): Likewise.
8641 * language.h (language_data): Delete la_get_compile_instance field.
8642 (language_defn::get_compile_instance): New member function.
8643 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
8644 initializer.
8645 * objc-lang.c (objc_language_data): Likewise.
8646 * opencl-lang.c (opencl_language_data): Likewise.
8647 * p-lang.c (pascal_language_data): Likewise.
8648 * rust-lang.c (rust_language_data): Likewise.
8649
4009ee92
AB
86502020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8651
8652 * ada-lang.c (ada_add_all_symbols): Update comment.
8653 (ada_iterate_over_symbols): Delete, move implementation to...
8654 (ada_language::iterate_over_symbols): ...here, a new member
8655 function, rewrite to use range based for loop.
8656 (ada_language_data): Delete la_iterate_over_symbols initializer.
8657 * c-lang.c (c_language_data): Likewise.
8658 (cplus_language_data): Likewise.
8659 (asm_language_data): Likewise.
8660 (minimal_language_data): Likewise.
8661 * d-lang.c (d_language_data): Likewise.
8662 * f-lang.c (f_language_data): Likewise.
8663 * go-lang.c (go_language_data): Likewise.
8664 * language.c (unknown_language_data): Likewise.
8665 (auto_language_data): Likewise.
8666 * language.h (language_data): Delete la_iterate_over_symbols field.
8667 (language_defn::iterate_over_symbols): New member function.
8668 (LA_ITERATE_OVER_SYMBOLS): Update.
8669 * linespec.c (iterate_over_all_matching_symtabs): Update.
8670 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
8671 initializer.
8672 * objc-lang.c (objc_language_data): Likewise.
8673 * opencl-lang.c (opencl_language_data): Likewise.
8674 * p-lang.c (pascal_language_data): Likewise.
8675 * rust-lang.c (rust_language_data): Likewise.
8676
54f4ca46
AB
86772020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8678
8679 * ada-lang.c (ada_language_data): Delete
8680 la_lookup_transparent_type initializer.
8681 * c-lang.c (c_language_data): Likewise.
8682 (cplus_language_data): Likewise.
8683 (cplus_language::lookup_transparent_type): New member function.
8684 (asm_language_data): Delete la_lookup_transparent_type
8685 initializer.
8686 (minimal_language_data): Likewise.
8687 * d-lang.c (d_language_data): Likewise.
8688 * f-lang.c (f_language_data): Likewise.
8689 * go-lang.c (go_language_data): Likewise.
8690 * language.c (unknown_language_data): Likewise.
8691 (auto_language_data): Likewise.
8692 * language.h (struct language_data): Delete
8693 la_lookup_transparent_type field.
8694 (language_defn::lookup_transparent_type): New member function.
8695 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
8696 initializer.
8697 * objc-lang.c (objc_language_data): Likewise.
8698 * opencl-lang.c (opencl_language_data): Likewise.
8699 * p-lang.c (pascal_language_data): Likewise.
8700 * rust-lang.c (rust_language_data): Likewise.
8701 * symtab.c (symbol_matches_domain): Update call.
8702
1fb314aa
AB
87032020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8704
8705 * ada-lang.c (ada_language_arch_info): Delete function, move
8706 implementation to...
8707 (ada_language::language_arch_info): ...here, a new member
8708 function.
8709 (ada_language_data): Delete la_language_arch_info.
8710 * c-lang.c (c_language_data): Likewise.
8711 (c_language::language_arch_info): New member function.
8712 (cplus_language_arch_info): Delete function, move
8713 implementation to...
8714 (cplus_language::language_arch_info): ...here, a new member
8715 function.
8716 (cplus_language_data): Delete la_language_arch_info.
8717 (asm_language_data): Likewise.
8718 (asm_language::language_arch_info): New member function.
8719 (minimal_language_data): Delete la_language_arch_info.
8720 (minimal_language::language_arch_info): New member function.
8721 * d-lang.c (d_language_arch_info): Delete function, move
8722 implementation to...
8723 (d_language::language_arch_info): ...here, a new member
8724 function.
8725 (d_language_data): Delete la_language_arch_info.
8726 * f-lang.c (f_language_arch_info): Delete function, move
8727 implementation to...
8728 (f_language::language_arch_info): ...here, a new member
8729 function.
8730 (f_language_data): Delete la_language_arch_info.
8731 * go-lang.c (go_language_arch_info): Delete function, move
8732 implementation to...
8733 (go_language::language_arch_info): ...here, a new member
8734 function.
8735 (go_language_data): Delete la_language_arch_info.
8736 * language.c (unknown_language_data): Likewise.
8737 (unknown_language::language_arch_info): New member function.
8738 (auto_language_data): Delete la_language_arch_info.
8739 (auto_language::language_arch_info): New member function.
8740 (language_gdbarch_post_init): Update call to
8741 la_language_arch_info.
8742 * language.h (language_data): Delete la_language_arch_info
8743 function pointer.
8744 (language_defn::language_arch_info): New function.
8745 * m2-lang.c (m2_language_arch_info): Delete function, move
8746 implementation to...
8747 (m2_language::language_arch_info): ...here, a new member
8748 function.
8749 (m2_language_data): Delete la_language_arch_info.
8750 * objc-lang.c (objc_language_arch_info): Delete function, move
8751 implementation to...
8752 (objc_language::language_arch_info): ...here, a new member
8753 function.
8754 (objc_language_data): Delete la_language_arch_info.
8755 * opencl-lang.c (opencl_language_arch_info): Delete function, move
8756 implementation to...
8757 (opencl_language::language_arch_info): ...here, a new member
8758 function.
8759 (opencl_language_data): Delete la_language_arch_info.
8760 * p-lang.c (pascal_language_arch_info): Delete function, move
8761 implementation to...
8762 (pascal_language::language_arch_info): ...here, a new member
8763 function.
8764 (pascal_language_data): Delete la_language_arch_info.
8765 * rust-lang.c (rust_language_arch_info): Delete function, move
8766 implementation to...
8767 (rust_language::language_arch_info): ...here, a new member
8768 function.
8769 (rust_language_data): Delete la_language_arch_info.
8770
48448202
AB
87712020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8772
8773 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
8774 initializer.
8775 * c-lang.c (c_language_data): Likewise.
8776 (cplus_language_data): Likewise.
8777 (cplus_language::pass_by_reference_info): New method.
8778 (asm_language_data): Delete la_pass_by_reference initializer.
8779 (minimal_language_data): Likewise.
8780 * cp-abi.c (cp_pass_by_reference): Remove use of
8781 default_pass_by_reference.
8782 * d-lang.c (d_language_data): Likewise.
8783 * f-lang.c (f_language_data): Likewise.
8784 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
8785 default_pass_by_reference.
8786 * go-lang.c (go_language_data): Likewise.
8787 * language.c (language_pass_by_reference): Update.
8788 (default_pass_by_reference): Delete.
8789 (unknown_language_data): Delete la_pass_by_reference
8790 initializer.
8791 (auto_language_data): Likewise.
8792 * language.h (struct language_data): Delete la_pass_by_reference
8793 field.
8794 (language_defn::pass_by_reference_info): New member function.
8795 (default_pass_by_reference): Delete declaration.
8796 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
8797 initializer.
8798 * objc-lang.c (objc_language_data): Likewise.
8799 * opencl-lang.c (opencl_language_data): Likewise.
8800 * p-lang.c (pascal_language_data): Likewise.
8801 * rust-lang.c (rust_language_data): Likewise.
8802
15e5fd35
AB
88032020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8804
8805 * ada-lang.c (ada_read_var_value): Delete function, move
8806 implementation to...
8807 (ada_language::read_var_value): ...here.
8808 (ada_language_data): Delete la_read_var_value initializer.
8809 * c-lang.c (c_language_data): Likewise.
8810 (cplus_language_data): Likewise.
8811 (minimal_language_data): Likewise.
8812 * d-lang.c (d_language_data): Likewise.
8813 * f-lang.c (f_language_data): Likewise.
8814 * findvar.c (default_read_var_value): Rename to...
8815 (language_defn::read_var_value): ...this.
8816 * findvar.c (read_var_value): Update header comment, and change to
8817 call member function instead of function pointer.
8818 * go-lang.c (go_language_data): Likewise.
8819 * language.c (unknown_language_data): Delete la_read_var_value
8820 initializer.
8821 (auto_language_data): Likewise.
8822 * language.h (struct language_data): Delete la_read_var_value
8823 field.
8824 (language_defn::read_var_value): New member function.
8825 (default_read_var_value): Delete declaration.
8826 * m2-lang.c (m2_language_data): Delete la_read_var_value
8827 initializer.
8828 * objc-lang.c (objc_language_data): Likewise.
8829 * opencl-lang.c (opencl_language_data): Likewise.
8830 * p-lang.c (pascal_language_data): Likewise.
8831 * rust-lang.c (rust_language_data): Likewise.
8832 * value.h (default_read_var_value): Delete declaration.
8833
5bd40f2a
AB
88342020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8835
8836 * ada-lang.c (ada_print_array_index): Delete function, move
8837 implementation to...
8838 (ada_language::print_array_index): ...here.
8839 (ada_language_data): Delete la_print_array_index initializer.
8840 * c-lang.c (c_language_data): Likewise.
8841 (cplus_language_data): Likewise.
8842 (minimal_language_data): Likewise.
8843 * d-lang.c (d_language_data): Likewise.
8844 * f-lang.c (f_language_data): Likewise.
8845 * go-lang.c (go_language_data): Likewise.
8846 * language.c (default_print_array_index): Delete function, move
8847 implementation to...
8848 (language_defn::print_array_index): ...here.
8849 (unknown_language_data): Delete la_print_array_index initializer.
8850 (auto_language_data): Likewise.
8851 * language.h (struct language_data): Delete la_print_array_index
8852 field.
8853 (language_defn::print_array_index): New member function.
8854 (LA_PRINT_ARRAY_INDEX): Update.
8855 (default_print_array_index): Delete declaration.
8856 * m2-lang.c (m2_language_data): Delete la_print_array_index
8857 initializer.
8858 * objc-lang.c (objc_language_data): Likewise.
8859 * opencl-lang.c (opencl_language_data): Likewise.
8860 * p-lang.c (pascal_language_data): Likewise.
8861 * rust-lang.c (rust_language_data): Likewise.
8862
0874fd07
AB
88632020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8864
8865 * gdb/ada-lang.c (ada_language_defn): Convert to...
8866 (ada_language_data): ...this.
8867 (class ada_language): New class.
8868 (ada_language_defn): New static global.
8869 * gdb/c-lang.c (c_language_defn): Convert to...
8870 (c_language_data): ...this.
8871 (class c_language): New class.
8872 (c_language_defn): New static global.
8873 (cplus_language_defn): Convert to...
8874 (cplus_language_data): ...this.
8875 (class cplus_language): New class.
8876 (cplus_language_defn): New static global.
8877 (asm_language_defn): Convert to...
8878 (asm_language_data): ...this.
8879 (class asm_language): New class.
8880 (asm_language_defn): New static global.
8881 (minimal_language_defn): Convert to...
8882 (minimal_language_data): ...this.
8883 (class minimal_language): New class.
8884 (minimal_language_defn): New static global.
8885 * gdb/d-lang.c (d_language_defn): Convert to...
8886 (d_language_data): ...this.
8887 (class d_language): New class.
8888 (d_language_defn): New static global.
8889 * gdb/f-lang.c (f_language_defn): Convert to...
8890 (f_language_data): ...this.
8891 (class f_language): New class.
8892 (f_language_defn): New static global.
8893 * gdb/go-lang.c (go_language_defn): Convert to...
8894 (go_language_data): ...this.
8895 (class go_language): New class.
8896 (go_language_defn): New static global.
8897 * gdb/language.c (unknown_language_defn): Remove declaration.
8898 (current_language): Initialize to nullptr, real initialization is
8899 moved to _initialize_language.
8900 (languages): Delete global.
8901 (language_defn::languages): Define.
8902 (set_language_command): Use language_defn::languages.
8903 (set_language): Likewise.
8904 (range_error): Likewise.
8905 (language_enum): Likewise.
8906 (language_def): Likewise.
8907 (add_set_language_command): Use language_def::languages for the
8908 language list, and language_def to lookup language pointers.
8909 (skip_language_trampoline): Use language_defn::languages.
8910 (unknown_language_defn): Convert to...
8911 (unknown_language_data): ...this.
8912 (class unknown_language): New class.
8913 (unknown_language_defn): New static global.
8914 (auto_language_defn): Convert to...
8915 (auto_language_data): ...this.
8916 (class auto_language): New class.
8917 (auto_language_defn): New static global.
8918 (language_gdbarch_post_init): Use language_defn::languages.
8919 (_initialize_language): Initialize current_language.
8920 * gdb/language.h (struct language_defn): Rename to...
8921 (struct language_data): ...this.
8922 (struct language_defn): New.
8923 (auto_language_defn): Delete.
8924 (unknown_language_defn): Delete.
8925 (minimal_language_defn): Delete.
8926 (ada_language_defn): Delete.
8927 (asm_language_defn): Delete.
8928 (c_language_defn): Delete.
8929 (cplus_language_defn): Delete.
8930 (d_language_defn): Delete.
8931 (f_language_defn): Delete.
8932 (go_language_defn): Delete.
8933 (m2_language_defn): Delete.
8934 (objc_language_defn): Delete.
8935 (opencl_language_defn): Delete.
8936 (pascal_language_defn): Delete.
8937 (rust_language_defn): Delete.
8938 * gdb/m2-lang.c (m2_language_defn): Convert to...
8939 (m2_language_data): ...this.
8940 (class m2_language): New class.
8941 (m2_language_defn): New static global.
8942 * gdb/objc-lang.c (objc_language_defn): Convert to...
8943 (objc_language_data): ...this.
8944 (class objc_language): New class.
8945 (objc_language_defn): New static global.
8946 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
8947 (opencl_language_data): ...this.
8948 (class opencl_language): New class.
8949 (opencl_language_defn): New static global.
8950 * gdb/p-lang.c (pascal_language_defn): Convert to...
8951 (pascal_language_data): ...this.
8952 (class pascal_language): New class.
8953 (pascal_language_defn): New static global.
8954 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
8955 language pointer, update comment format.
8956 * gdb/rust-lang.c (rust_language_defn): Convert to...
8957 (rust_language_data): ...this.
8958 (class rust_language): New class.
8959 (rust_language_defn): New static global.
8960
1313c56e
AB
89612020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
8962
8963 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
8964 member variable.
8965 <m_stmt_at_address>: New member variable.
8966 (lnp_state_machine::record_line): Don't record some lines, update
8967 tracking of is_stmt at the same address.
8968 (lnp_state_machine::lnp_state_machine): Initialise new member
8969 variables.
8970
b7ed9f3d
ST
89712020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
8972
8973 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
8974 "-include gnu-nat-mig.h".
8975 * gnu-nat-mig.h: New file.
8976 * gnu-nat.c: Include "gnu-nat-mig.h".
8977 (exc_server, msg_reply_server, notify_server,
8978 process_reply_server): Remove declarations.
8979
14a8ad62
ST
89802020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
8981
8982 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
8983 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
8984 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
8985 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
8986 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
8987 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
8988 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
8989 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
8990 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
8991 to gnu_nat_target class.
8992 * gnu-nat.c: Likewise.
8993 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
8994 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
8995 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
8996 object.
8997 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
8998 instead of `gnu_target'.
8999
0af5e106
ST
90002020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9001
9002 * i386-gnu-tdep.c: Include "gdbcore.h"
9003 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
9004 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
9005 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
9006 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
9007 i386_gnu_sigcontext_addr): New functions
9008 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
9009 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
9010 tdep.
9011
078f2fc9
ST
90122020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9013
9014 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
9015 before fork_inferior call. Avoid calling it if target_is_pushed returns
9016 true.
9017
53dff92c
ST
90182020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9019
9020 * gnu-nat.h (gnu_target): New variable declaration.
9021 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
9022 gnu_target.
9023 * gnu-nat.c (gnu_target): New variable.
9024 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
9025 add_thread_silent, and add_thread calls.
9026 (gnu_nat_target::create_inferior): Pass gnu_target to
9027 add_thread_silent, thread_change_ptid call.
9028 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
9029 call.
9030
5a8b8627
ST
90312020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9032
9033 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
9034 (gnu_nat_target::find_memory_regions): Remove unused
9035 `old_address' variable.
9036
366f550a
ST
90372020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9038
9039 * gnu-nat.c: Include "gdbarch.h".
9040
f14871bf
ST
90412020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9042
9043 * reply_mig_hack.awk (Error return): Cast function through
9044 void *, to bypass compiler function call check.
9045
c6887cfb
ST
90462020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9047
9048 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
9049 $(srcdir)/reply_mig_hack.awk.
9050
6930bffe
ST
90512020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9052
9053 * gnu-nat.h (gnu_debug_flag): Set type to bool.
9054
112c22ed
JG
90552020-05-30 Jonny Grant <jg@jguk.org>
9056
9057 * configure.ac (ACX_BUGURL): change bug URL to https.
9058
f68f85b5
PA
90592020-05-30 Pedro Alves <palves@redhat.com>
9060
9061 * cp-support.c (replace_typedefs_template): New.
9062 (replace_typedefs_qualified_name): Handle
9063 DEMANGLE_COMPONENT_TEMPLATE.
9064
976ca316
SM
90652020-05-29 Simon Marchi <simon.marchi@efficios.com>
9066
9067 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
9068 dwarf2/index-cache.h, dwarf2/index-write.c,
9069 dwarf2/index-write.h, dwarf2/line-header.c,
9070 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
9071 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
9072 variables and fields from `dwarf2_per_objfile` to just
9073 `per_objfile` throughout.
9074
989ade05
SM
90752020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
9076
9077 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9078 <push_dwarf_reg_entry_value>: Add comment.
9079
c47bae85
KB
90802020-05-28 Kevin Buettner <kevinb@redhat.com>
9081 Keith Seitz <keiths@redhat.com>
9082
9083 * python/python.c (do_start_initialization): Call PyEval_SaveThread
9084 instead of PyEval_ReleaseLock.
9085 (class gdbpy_gil): Move to earlier in file.
9086 (finalize_python): Set gdb_python_initialized.
9087 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
9088 when not initialized.
9089
44486dcf
SM
90902020-05-28 Simon Marchi <simon.marchi@efficios.com>
9091
9092 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9093 <push_dwarf_reg_entry_value>: Remove assert. Override
9094 per_objfile with caller_per_objfile.
9095
f030440d
TV
90962020-05-28 Tom de Vries <tdevries@suse.de>
9097
9098 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
9099 PR gold/15646 workaround to symbol kind "type".
9100
f0fbb768
TT
91012020-05-27 Tom Tromey <tromey@adacore.com>
9102
9103 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
9104
af0b2a3e
TT
91052020-05-27 Tom Tromey <tromey@adacore.com>
9106
9107 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
9108 Use htab_find_with_hash.
9109 <add_abbrev>: Remove "abbrev_number" parameter.
9110 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
9111 "abbrev_number" parameter. Use htab_find_slot_with_hash.
9112 (hash_abbrev): Add comment.
9113 (abbrev_table::lookup_abbrev): Move to header file.
9114 (abbrev_table::read): Update.
9115
7d00ffec
TT
91162020-05-27 Tom Tromey <tromey@adacore.com>
9117
9118 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
9119 method.
9120 <canonical_name>: New member.
9121 <raw_name>: Rename from "name".
9122 (partial_die_info): Initialize canonical_name.
9123 (scan_partial_symbols): Check raw_name.
9124 (partial_die_parent_scope, partial_die_full_name)
9125 (add_partial_symbol, add_partial_subprogram)
9126 (add_partial_enumeration, load_partial_dies): Use "name" method.
9127 (partial_die_info::name): New method.
9128 (partial_die_info::read, guess_partial_die_structure_name)
9129 (partial_die_info::fixup): Update.
9130
697bba18
TT
91312020-05-27 Tom Tromey <tromey@adacore.com>
9132
9133 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
9134 <get_ref_die_offset>: Inline.
9135 <get_ref_die_offset_complaint>: New method.
9136 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
9137 (attribute::get_ref_die_offset_complaint): Rename from
9138 get_ref_die_offset. Just issue complaint.
9139
c17ace43
HD
91402020-05-27 Hannes Domani <ssbssa@yahoo.de>
9141
9142 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
9143
96445f0b
HD
91442020-05-27 Hannes Domani <ssbssa@yahoo.de>
9145
9146 * exec.c (exec_file_attach): Use errno value of first openp failure.
9147
ac637ec3
HD
91482020-05-27 Hannes Domani <ssbssa@yahoo.de>
9149
9150 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
9151 Don't close thread handle.
9152
17ee85fc
TT
91532020-05-27 Tom Tromey <tom@tromey.com>
9154 Simon Marchi <simon.marchi@efficios.com>
9155
9156 * objfiles.h (struct objfile) <partial_symtabs>: Now a
9157 shared_ptr.
9158 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
9159 member.
9160 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
9161 dwarf2_per_bfd_objfile_data_key>: New globals.
9162 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
9163 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
9164 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
9165 shared.
9166 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
9167 short-circuit when sharing.
9168 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
9169 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
9170
39b16f87
SM
91712020-05-27 Simon Marchi <simon.marchi@efficios.com>
9172
9173 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
9174 to...
9175 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
9176 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
9177
fcf23d5b
SM
91782020-05-27 Simon Marchi <simon.marchi@efficios.com>
9179
9180 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
9181 build_name_components, find_name_components_bounds>:
9182 Add per_objfile parameter.
9183 (struct mapped_index) <symbol_name_at>: Likewise.
9184 (struct mapped_debug_names): Remove constructor.
9185 <dwarf2_per_objfile>: Remove field.
9186 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
9187 (mapped_index_base::find_name_components_bounds,
9188 mapped_index_base::build_name_components,
9189 dw2_expand_symtabs_matching_symbol): Likewise.
9190 (class mock_mapped_index) <symbol_name_at>: Likewise.
9191 (check_match): Likewise.
9192 (check_find_bounds_finds): Likewise.
9193 (test_mapped_index_find_name_component_bounds): Update.
9194 (CHECK_MATCH): Update.
9195 (dw2_expand_symtabs_matching): Update.
9196 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
9197 per_objfile parameter.
9198 <find_vec_in_debug_names>: Likewise.
9199 <m_per_objfile>: New field.
9200 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
9201 parameter.
9202 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
9203 (dw2_debug_names_iterator::next): Update.
9204 (dw2_debug_names_lookup_symbol): Update.
9205 (dw2_debug_names_expand_symtabs_for_function): Update.
9206 (dw2_debug_names_map_matching_symbols): Update.
9207 (dw2_debug_names_expand_symtabs_matching): Update.
9208 (dwarf2_read_debug_names): Update.
9209
7188ed02
SM
92102020-05-27 Simon Marchi <simon.marchi@efficios.com>
9211
9212 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
9213 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
9214 move to dwarf2_per_objfile.
9215 <read_in_chain>: Remove.
9216 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
9217 remove_all_cus, age_comp_units>: New methods.
9218 <m_dwarf2_cus>: New member.
9219 (struct dwarf2_per_cu_data) <cu>: Remove.
9220 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
9221 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
9222 moved to methods of dwarf2_per_objfile.
9223 (dwarf2_clear_marks): Remove.
9224 (dwarf2_queue_item::~dwarf2_queue_item): Update.
9225 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
9226 (dwarf2_per_bfd::free_cached_comp_units): Remove.
9227 (dwarf2_per_objfile::remove_all_cus): New.
9228 (class free_cached_comp_units) <~free_cached_comp_units>:
9229 Update.
9230 (load_cu): Update.
9231 (dw2_do_instantiate_symtab): Adjust.
9232 (fill_in_sig_entry_from_dwo_entry): Adjust.
9233 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9234 (cutu_reader::cutu_reader): Likewise.
9235 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
9236 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
9237 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
9238 and dwarf2_per_objfile::age_comp_units.
9239 (load_partial_comp_unit): Update.
9240 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
9241 (process_queue): Likewise.
9242 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
9243 backlink.
9244 (dwarf2_read_addr_index): Likewise.
9245 (follow_die_offset): Likewise.
9246 (dwarf2_fetch_die_loc_sect_off): Likewise.
9247 (dwarf2_fetch_constant_bytes): Likewise.
9248 (dwarf2_fetch_die_type_sect_off): Likewise.
9249 (follow_die_sig_1): Likewise.
9250 (load_full_type_unit): Likewise.
9251 (read_signatured_type): Likewise.
9252 (dwarf2_cu::dwarf2_cu): Don't set cu field.
9253 (dwarf2_cu::~dwarf2_cu): Remove.
9254 (dwarf2_per_objfile::get_cu): New.
9255 (dwarf2_per_objfile::set_cu): New.
9256 (age_cached_comp_units): Rename to...
9257 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
9258 to std::unordered_map.
9259 (free_one_cached_comp_unit): Rename to...
9260 (dwarf2_per_objfile::remove_cu): ... this. Adjust
9261 to std::unordered_map.
9262 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
9263 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
9264 a dwarf2_per_objfile in data.
9265 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
9266 (dwarf2_clear_marks): Remove.
9267
2e671100
SM
92682020-05-27 Simon Marchi <simon.marchi@efficios.com>
9269
9270 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
9271 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
9272 (init_tu_and_read_dwo_dies): Likewise.
9273 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
9274 (cutu_reader::cutu_reader): Likewise.
9275 (load_partial_comp_unit): Likewise.
9276 (process_psymtab_comp_unit): Update.
9277 (build_type_psymtabs_1): Update.
9278 (process_skeletonless_type_unit): Update.
9279 (load_full_comp_unit): Update.
9280 (find_partial_die): Update.
9281 (dwarf2_read_addr_index): Update.
9282 (read_signatured_type): Update.
9283
2e6a9f79
SM
92842020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9285
9286 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
9287 m_header_read_in>: New fields.
9288 <get_header>: New method.
9289 * dwarf2/read.c (per_cu_header_read_in): Remove.
9290 (dwarf2_per_cu_data::get_header): New.
9291 (dwarf2_per_cu_data::addr_size): Update.
9292 (dwarf2_per_cu_data::offset_size): Update.
9293 (dwarf2_per_cu_data::ref_addr_size): Update.
9294
1b555f17
SM
92952020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9296
9297 * dwarf2/read.c (load_cu): Return dwarf2_cu.
9298 (dw2_do_instantiate_symtab): Update.
9299 (queue_and_load_all_dwo_tus): Change parameter from
9300 dwarf2_per_cu_data to dwarf2_cu.
9301 (dwarf2_fetch_die_loc_sect_off): Update.
9302 (dwarf2_fetch_constant_bytes): Update.
9303 (dwarf2_fetch_die_type_sect_off): Update.
9304
8fc0b21d
SM
93052020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9306
9307 * dwarf2/read.c (process_full_comp_unit,
9308 process_full_type_unit): Remove per_cu, per_objfile paramters.
9309 Add dwarf2_cu parameter.
9310 (process_queue): Update.
9311
168c9250
SM
93122020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9313
9314 * dwarf2/read.c (create_cu_from_index_list): Replace
9315 dwarf2_per_objfile parameter with dwarf2_per_bfd.
9316 (create_cus_from_index_list): Likewise.
9317 (create_cus_from_index): Likewise.
9318 (create_signatured_type_table_from_index): Likewise.
9319 (create_cus_from_debug_names_list): Likewise.
9320 (create_cus_from_debug_names): Likewise.
9321 (dwarf2_read_gdb_index): Update.
9322 (dwarf2_read_debug_names): Update.
9323
e286671b
TT
93242020-05-27 Tom Tromey <tom@tromey.com>
9325 Simon Marchi <simon.marchi@efficios.com>
9326
9327 * dwarf2/read.h (struct dwarf2_per_objfile)
9328 <get_type_for_signatured_type, set_type_for_signatured_type>:
9329 New methods.
9330 <m_type_map>: New member.
9331 (struct signatured_type) <type>: Remove.
9332 * dwarf2/read.c
9333 (dwarf2_per_objfile::get_type_for_signatured_type,
9334 dwarf2_per_objfile::set_type_for_signatured_type): New.
9335 (get_signatured_type): Use new methods.
9336
8adb8487
TT
93372020-05-27 Tom Tromey <tom@tromey.com>
9338 Simon Marchi <simon.marchi@efficios.com>
9339
9340 * dwarf2/read.h (struct type_unit_group_unshareable): New.
9341 (struct dwarf2_per_objfile) <type_units>: New member.
9342 <get_type_unit_group_unshareable>: New method.
9343 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
9344 num_symtabs, symtabs>: Remove; move to
9345 type_unit_group_unshareable.
9346 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
9347 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
9348 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
9349
127bbf4b
SM
93502020-05-27 Simon Marchi <simon.marchi@efficios.com>
9351
9352 * dwarf2/read.h (struct dwarf2_per_cu_data):
9353 <dwarf2_per_objfile>: Remove.
9354 * dwarf2/read.c (create_cu_from_index_list): Don't assign
9355 dwarf2_per_objfile.
9356 (create_signatured_type_table_from_index): Likewise.
9357 (create_signatured_type_table_from_debug_names): Likewise.
9358 (create_debug_type_hash_table): Likewise.
9359 (fill_in_sig_entry_from_dwo_entry): Likewise.
9360 (create_type_unit_group): Likewise.
9361 (read_comp_units_from_section): Likewise.
9362 (create_cus_hash_table): Likewise.
9363
f6e649dd
SM
93642020-05-27 Simon Marchi <simon.marchi@efficios.com>
9365
9366 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
9367 dwarf2_per_cu_data::dwarf2_per_objfile.
9368 (compute_compunit_symtab_includes): Likewise.
9369 (dwarf2_cu::start_symtab): Likewise.
9370
aa66c379
SM
93712020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9372
9373 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
9374 parameter.
9375 * dwarf2/read.c (get_die_type_at_offset): Likewise.
9376 (read_namespace_alias): Update.
9377 (lookup_die_type): Update.
9378 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
9379 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
9380 Update.
9381 (disassemble_dwarf_expression): Update.
9382
120ce1b5
SM
93832020-05-27 Simon Marchi <simon.marchi@efficios.com>
9384
9385 * dwarf2/read.h (struct dwarf2_queue_item): Add
9386 dwarf2_per_objfile parameter, assign new parameter.
9387 <per_objfile>: New field.
9388 * dwarf2/read.c (free_one_cached_comp_unit): Add
9389 dwarf2_per_objfile parameter.
9390 (queue_comp_unit): Likewise.
9391 (dw2_do_instantiate_symtab): Update.
9392 (process_psymtab_comp_unit): Update.
9393 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
9394 (process_imported_unit_die): Update.
9395 (queue_and_load_dwo_tu): Update.
9396 (follow_die_offset): Update.
9397 (follow_die_sig_1): Update.
9398
9f47c707
SM
93992020-05-27 Simon Marchi <simon.marchi@efficios.com>
9400
9401 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
9402 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
9403 (read_call_site_scope): Assign per_objfile.
9404 (dwarf2_per_cu_data::objfile): Remove.
9405 * gdbtypes.h (struct call_site) <per_objfile>: New member.
9406 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
9407 dwarf2_per_objfile parameter.
9408 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
9409 dwarf2_per_objfile parameter.
9410 (dwarf_expr_reg_to_entry_parameter): Add output
9411 dwarf2_per_objfile parameter.
9412 (locexpr_get_frame_base): Update.
9413 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
9414 <push_dwarf_reg_entry_value>: Update.
9415 <call_site_to_target_addr>: Update.
9416 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
9417 parameter.
9418 (value_of_dwarf_reg_entry): Update.
9419 (rw_pieced_value): Update.
9420 (indirect_synthetic_pointer): Update.
9421 (dwarf2_evaluate_property): Update.
9422 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
9423 parameter.
9424 (locexpr_read_variable): Update.
9425 (locexpr_get_symbol_read_needs): Update.
9426 (loclist_read_variable): Update.
9427
14095eb3
SM
94282020-05-27 Simon Marchi <simon.marchi@efficios.com>
9429
9430 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9431 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9432 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9433 parameter.
9434 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9435 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9436 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9437 parameter.
9438 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
9439 sect_variable_value): Add dwarf2_per_objfile parameter.
9440 (class dwarf_evaluate_loc_desc) <dwarf_call,
9441 dwarf_variable_value>: Update.
9442 (fetch_const_value_from_synthetic_pointer): Add
9443 dwarf2_per_objfile parameter.
9444 (fetch_const_value_from_synthetic_pointer): Update.
9445 (coerced_pieced_ref): Update.
9446 (class symbol_needs_eval_context) <dwarf_call,
9447 dwarf_variable_value>: Update.
9448 (dwarf2_compile_expr_to_ax): Update.
9449
3c3cd3d4
SM
94502020-05-27 Simon Marchi <simon.marchi@efficios.com>
9451
9452 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
9453 parameter.
9454 (dwarf2_evaluate_loc_desc_full): Update.
9455
82ca3f51
SM
94562020-05-27 Simon Marchi <simon.marchi@efficios.com>
9457
9458 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
9459 parameter.
9460 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
9461 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
9462 dwarf2_per_objfile parameter.
9463 (decode_debug_loc_dwo_addresses): Likewise.
9464 (dwarf2_find_location_expression): Update.
9465 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
9466 (locexpr_describe_location_piece): Add dwarf2_per_objfile
9467 parameter.
9468 (disassemble_dwarf_expression): Add dwarf2_per_objfile
9469 parameter.
9470 (locexpr_describe_location_1): Likewise.
9471 (locexpr_describe_location): Update.
9472
4b167ea1
SM
94732020-05-27 Simon Marchi <simon.marchi@efficios.com>
9474
9475 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
9476 Remove.
9477 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
9478 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
9479 (dwarf2_compile_property_to_c): Update.
9480 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
9481 use text offset from objfile.
9482 (locexpr_tracepoint_var_ref): Update.
9483 (locexpr_generate_c_location): Update.
9484 (loclist_describe_location): Update.
9485 (loclist_tracepoint_var_ref): Update.
9486 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
9487 dwarf2_per_objfile parameter.
9488 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
9489 use text offset from objfile.
9490 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
9491
89b07335
SM
94922020-05-27 Simon Marchi <simon.marchi@efficios.com>
9493
9494 * dwarf2/expr.h (struct dwarf_expr_context)
9495 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
9496 <offset>: Remove.
9497 <per_objfile>: New member.
9498 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
9499 dwarf2_per_objfile parameter. Don't set offset, set
9500 per_objfile.
9501 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
9502 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
9503 a dwarf2_per_objfile object instead of an offset.
9504 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
9505 constructor.
9506 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
9507 to dwarf2_expr_executor constructor. Don't set offset.
9508 (dwarf2_fetch_cfa_info): Update.
9509 (struct dwarf2_frame_cache) <text_offset>: Remove.
9510 <per_objfile>: New field.
9511 (dwarf2_frame_cache): Update.
9512 (dwarf2_frame_prev_register): Update.
9513 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9514 <dwarf_evaluate_loc_desc>: Add constructor.
9515 (dwarf2_evaluate_loc_desc_full): Update.
9516 (dwarf2_locexpr_baton_eval): Update.
9517 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
9518 Add constructor.
9519 (dwarf2_loc_desc_get_symbol_read_needs): Update.
9520
293e7e51
SM
95212020-05-27 Simon Marchi <simon.marchi@efficios.com>
9522
9523 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
9524 addr_sized_int_type>: Move to dwarf2_cu.
9525 <int_type>: Move to dwarf2_per_objfile.
9526 (struct dwarf2_per_objfile) <int_type>: Move here.
9527 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
9528 addr_sized_int_type>: Move here.
9529 (read_func_scope): Update.
9530 (read_array_type): Update.
9531 (read_tag_string_type): Update.
9532 (attr_to_dynamic_prop): Update.
9533 (dwarf2_per_cu_data::int_type): Rename to...
9534 (dwarf2_per_objfile::int_type): ... this.
9535 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
9536 (dwarf2_cu::addr_sized_int_type): ... this.
9537 (read_subrange_type): Update.
9538 (dwarf2_per_cu_data::addr_type): Rename to...
9539 (dwarf2_cu::addr_type): ... this.
9540 (set_die_type): Update.
9541
64874a40
SM
95422020-05-27 Simon Marchi <simon.marchi@efficios.com>
9543
9544 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
9545 data through per_cu->cu.
9546
4ab09049
SM
95472020-05-27 Simon Marchi <simon.marchi@efficios.com>
9548
9549 * dwarf2/read.c (lookup_dwo_comp_unit): Change
9550 dwarf2_per_cu_data parameter fo dwarf2_cu.
9551 (lookup_dwo_type_unit): Likewise.
9552 (read_cutu_die_from_dwo): Likewise.
9553 (lookup_dwo_unit): Likewise.
9554 (open_and_init_dwo_file): Likewise.
9555 (lookup_dwo_cutu): Likewise.
9556 (lookup_dwo_comp_unit): Likewise.
9557 (lookup_dwo_type_unit): Likewise.
9558 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9559 (cutu_reader::cutu_reader): Update.
9560
47b14e86
SM
95612020-05-27 Simon Marchi <simon.marchi@efficios.com>
9562
9563 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
9564 parameter.
9565 (process_full_type_unit): Likewise.
9566 (process_queue): Update.
9567
43182c09
SM
95682020-05-27 Simon Marchi <simon.marchi@efficios.com>
9569
9570 * dwarf2/read.c (recursively_compute_inclusions): Add
9571 dwarf2_per_objfile parameter.
9572 (compute_compunit_symtab_includes): Likewise.
9573 (process_cu_includes): Update.
9574
7aa104c4
SM
95752020-05-27 Simon Marchi <simon.marchi@efficios.com>
9576
9577 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
9578 parameter.
9579 (create_type_unit_group): Update.
9580 (process_psymtab_comp_unit_reader): Update.
9581 (build_type_psymtabs_reader): Update.
9582
e3beb21d
SM
95832020-05-27 Simon Marchi <simon.marchi@efficios.com>
9584
9585 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
9586 object through m_this_cu->cu.
9587
d460f660
SM
95882020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9589
9590 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
9591 the info parameter.
9592 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
9593
ab432490
SM
95942020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9595
9596 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
9597 per_objfile parameter.
9598 (load_full_type_unit): Add per_objfile parameter.
9599 (read_signatured_type): Likewise.
9600 (load_full_comp_unit): Likewise.
9601 (load_cu): Likewise.
9602 (dw2_do_instantiate_symtab): Likewise.
9603 (dw2_get_file_names): Likewise.
9604 (dw2_map_symtabs_matching_filename): Update.
9605 (dw_expand_symtabs_matching_file_matcher): Update.
9606 (dw2_map_symbol_filenames): Update.
9607 (process_psymtab_comp_unit): Add per_objfile parameter.
9608 (build_type_psymtabs_1): Update.
9609 (process_skeletonless_type_unit): Update.
9610 (dwarf2_build_psymtabs_hard): Update.
9611 (load_partial_comp_unit): Add per_objfile parameter.
9612 (scan_partial_symbols): Update.
9613 (load_full_comp_unit): Add per_objfile parameter.
9614 (process_imported_unit_die): Update.
9615 (create_cus_hash_table): Update.
9616 (find_partial_die): Update.
9617 (dwarf2_read_addr_index): Update.
9618 (follow_die_offset): Update.
9619 (dwarf2_fetch_die_loc_sect_off): Update.
9620 (dwarf2_fetch_constant_bytes): Update.
9621 (dwarf2_fetch_die_type_sect_off): Update.
9622 (follow_die_sig_1): Update.
9623 (load_full_type_unit): Add per_objfile parameter.
9624 (read_signatured_type): Likewise.
9625
313bad1b
SM
96262020-05-27 Simon Marchi <simon.marchi@efficios.com>
9627
9628 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
9629 of objfile_name.
9630
c3699833
SM
96312020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9632
9633 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
9634 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9635 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
9636 field.
9637 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9638 (create_cus_from_index): Update.
9639 (dwarf2_read_gdb_index): Update.
9640 (create_cus_from_debug_names): Update.
9641 (dwarf2_read_debug_names): Update.
9642 (get_abbrev_section_for_cu): Update.
9643 (create_all_comp_units): Update.
9644 (read_attribute_value): Update.
9645 (get_debug_line_section): Update.
9646 * dwarf2/index-cache.c (index_cache::store): Update.
9647 * dwarf2/index-write.c (save_gdb_index_command): Update.
9648 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
9649
1859c670
SM
96502020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9651
9652 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
9653 member.
9654 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
9655 dwarf2_per_cu_data::per_bfd.
9656 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
9657 (create_type_unit_group): Likewise.
9658 (queue_comp_unit): Remove reference to
9659 per_cu->dwarf2_per_objfile.
9660 (maybe_queue_comp_unit): Likewise.
9661 (fill_in_sig_entry_from_dwo_entry): Assign new field.
9662 (create_cus_hash_table): Assign new field.
9663
5e22e966
SM
96642020-05-27 Simon Marchi <simon.marchi@efficios.com>
9665
9666 * dwarf2/read.c: Replace
9667 dwarf2_cu->per_cu->dwarf2_per_objfile references with
9668 dwarf2_cu->per_objfile throughout.
9669
97a1449a
SM
96702020-05-27 Simon Marchi <simon.marchi@efficios.com>
9671
9672 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
9673 parameter, don't use per_cu->dwarf2_per_objfile.
9674 (dw2_instantiate_symtab): Likewise.
9675 (dw2_find_last_source_symtab): Update.
9676 (dw2_map_expand_apply): Update.
9677 (dw2_lookup_symbol): Update.
9678 (dw2_expand_symtabs_for_function): Update.
9679 (dw2_expand_all_symtabs): Update.
9680 (dw2_expand_symtabs_with_fullname): Update.
9681 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
9682 don't use per_cu->dwarf2_per_objfile.
9683 (dw2_expand_marked_cus): Update.
9684 (dw2_find_pc_sect_compunit_symtab): Update.
9685 (dw2_debug_names_lookup_symbol): Update.
9686 (dw2_debug_names_expand_symtabs_for_function): Update.
9687 (dw2_debug_names_map_matching_symbols): Update.
9688 (dwarf2_psymtab::expand_psymtab): Update.
9689
9e021579
SM
96902020-05-27 Simon Marchi <simon.marchi@efficios.com>
9691
9692 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
9693 <per_objfile>: New member.
9694 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
9695 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
9696 call to dwarf2_cu.
9697 (cutu_reader::cutu_reader): Update.
9698 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
9699
ae090bdb
SM
97002020-05-27 Simon Marchi <simon.marchi@efficios.com>
9701
9702 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
9703 struct dwarf2_per_objfile.
9704 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
9705 dwarf2_per_bfd.
9706 * dwarf2/read.c (set_die_type): Update.
9707 (get_die_type_at_offset): Update.
9708
af758d11
SM
97092020-05-27 Tom Tromey <tom@tromey.com>
9710 Simon Marchi <simon.marchi@efficios.com>
9711
9712 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
9713 method.
9714 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
9715 get_symtab, set_symtab>: New methods.
9716 <m_symtabs>: New field.
9717 (struct dwarf2_psymtab): Derive from partial_symtab.
9718 <readin_p, get_compunit_symtab>: Declare methods.
9719 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
9720 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
9721 New methods.
9722 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
9723 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
9724 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
9725 (dw2_symtab_iter_next, dw2_print_stats)
9726 (dw2_expand_symtabs_with_fullname)
9727 (dw2_expand_symtabs_matching_one)
9728 (dw_expand_symtabs_matching_file_matcher)
9729 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
9730 (dw2_debug_names_iterator::next)
9731 (dw2_debug_names_map_matching_symbols)
9732 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
9733 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
9734 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
9735 New methods.
9736 (get_compunit_symtab, process_full_comp_unit)
9737 (process_full_type_unit): Update.
9738 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
9739
5989a64e
SM
97402020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9741
9742 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
9743 then introduce a new dwarf2_per_objfile type.
9744 <read_line_string>: Move to the new dwarf2_per_objfile type.
9745 <objfile>: Likewise.
9746 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
9747 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
9748 dwarf2_per_objfile->per_bfd.
9749 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
9750 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
9751 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
9752 (dwarf2_per_bfd::free_cached_comp_units): ... this.
9753 (dwarf2_has_info): Allocate dwarf2_per_bfd.
9754 (dwarf2_per_objfile::locate_sections): Rename to...
9755 (dwarf2_per_bfd::locate_sections): ... this.
9756 (dwarf2_per_objfile::get_cutu): Rename to...
9757 (dwarf2_per_bfd::get_cutu): ... this.
9758 (dwarf2_per_objfile::get_cu): Rename to...
9759 (dwarf2_per_bfd::get_cu): ... this.
9760 (dwarf2_per_objfile::get_tu): Rename to...
9761 (dwarf2_per_bfd::get_tu): ... this.
9762 (dwarf2_per_objfile::allocate_per_cu): Rename to...
9763 (dwarf2_per_bfd::allocate_per_cu): ... this.
9764 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
9765 (dwarf2_per_bfd::allocate_signatured_type): ... this.
9766 (get_gdb_index_contents_ftype): Change parameter from
9767 dwarf2_per_objfile to dwarf2_per_bfd.
9768 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
9769 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
9770
a50264ba
TT
97712020-05-27 Tom Tromey <tom@tromey.com>
9772 Simon Marchi <simon.marchi@efficios.com>
9773
9774 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
9775 (allocate_piece_closure): Set "per_objfile" member.
9776 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
9777 (locexpr_describe_location, loclist_describe_location): Use new
9778 member.
9779 * dwarf2/read.c (read_call_site_scope)
9780 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
9781 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
9782 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
9783 handle_data_member_location): Set per_objfile member.
9784 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
9785 member.
9786 (struct dwarf2_loclist_baton) <per_objfile>: New member.
9787
d3473f0c
TT
97882020-05-27 Tom Tromey <tom@tromey.com>
9789
9790 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
9791 allocate_signatured_type>: Declare new methods.
9792 <m_num_psymtabs>: New member.
9793 (struct dwarf2_per_cu_data) <index>: New member.
9794 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
9795 (dwarf2_per_objfile::allocate_signatured_type): New methods.
9796 (create_cu_from_index_list): Use allocate_per_cu.
9797 (create_signatured_type_table_from_index)
9798 (create_signatured_type_table_from_debug_names)
9799 (create_debug_type_hash_table, add_type_unit)
9800 (read_comp_units_from_section): Use allocate_signatured_type.
9801
5717c425
TT
98022020-05-27 Tom Tromey <tom@tromey.com>
9803
9804 * psymtab.c (partial_map_expand_apply)
9805 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9806 (psym_lookup_global_symbol_language)
9807 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9808 (psym_print_stats, psym_expand_symtabs_for_function)
9809 (psym_map_symbol_filenames, psym_map_matching_symbols)
9810 (psym_expand_symtabs_matching)
9811 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9812 (maintenance_check_psymtabs): Update.
9813 * psympriv.h (struct partial_symtab) <readin_p,
9814 get_compunit_symtab>: Add objfile parameter.
9815 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
9816 Likewise.
9817 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
9818 get_compunit_symtab>: Likewise.
9819 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
9820
45940949
TT
98212020-05-27 Tom Tromey <tom@tromey.com>
9822
9823 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
9824 member.
9825 * dwarf2/read.c (delete_file_name_entry): Fix comment.
9826 (create_cu_from_index_list)
9827 (create_signatured_type_table_from_index)
9828 (create_signatured_type_table_from_debug_names)
9829 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
9830 (dwarf2_create_include_psymtab)
9831 (create_debug_type_hash_table, add_type_unit)
9832 (create_type_unit_group, read_comp_units_from_section)
9833 (dwarf2_compute_name, create_cus_hash_table)
9834 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9835 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
9836 obstack.
9837 (dw2_get_real_path): Likewise. Change argument to
9838 dwarf2_per_objfile.
9839
f8c6d152
LM
98402020-05-27 Luis Machado <luis.machado@linaro.org>
9841
9842 PR tdep/26000
9843 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
9844 for ldrd (immediate).
9845
e98d2e6d
PW
98462020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9847
9848 * command.h: Add comment giving the name of class_tui.
9849 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
9850 create the fake command for the help for class_tui.
9851
53a47a3e
TT
98522020-05-26 Tom Tromey <tromey@adacore.com>
9853
9854 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
9855 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
9856 (val_atr): New function.
9857 (value_val_atr): Use it.
9858 * ada-valprint.c (print_optional_low_bound): Change low bound
9859 handling for enums.
9860 (val_print_packed_array_elements): Don't call discrete_position.
9861 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
9862 discrete_position for enum types.
9863 * language.c (default_print_array_index): Change type.
9864 * language.h (struct language_defn) <la_print_array_index>: Add
9865 index_type parameter, change type of index_value.
9866 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
9867 (default_print_array_index): Update.
9868 * valprint.c (maybe_print_array_index): Don't call
9869 value_from_longest. Update.
9870 (value_print_array_elements): Don't call discrete_position.
9871
0bc2354b
TT
98722020-05-26 Tom Tromey <tromey@adacore.com>
9873
9874 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
9875 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
9876
1218a4bf
CDA
98772020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
9878
9879 PR gdb/13519
9880 * avr-tdep.c (avr_integer_to_address): Return data or code
9881 address accordingly to the second 'type' argument of the
9882 function.
9883
92651b1d
MW
98842020-05-25 Michael Weghorn <m.weghorn@posteo.de>
9885
9886 * infcmd.c, inferior.h: (construct_inferior_arguments):
9887 Moved function from here to gdbsupport/common-inferior.{h,cc}
9888
0a4f5f8c
TT
98892020-05-23 Tom Tromey <tom@tromey.com>
9890
9891 Revert commit eca1f90c:
9892 * NEWS: Remove entry for completion styling.
9893 * completer.c (_rl_completion_prefix_display_length): Move
9894 declaration later.
9895 (gdb_fnprint): Revert.
9896 (gdb_display_match_list_1): Likewise.
9897 * cli/cli-style.c (completion_prefix_style)
9898 (completion_difference_style, completion_suffix_style): Remove.
9899 (_initialize_cli_style): Revert.
9900 * cli/cli-style.h (completion_prefix_style)
9901 (completion_difference_style, completion_suffix_style): Don't
9902 declare.
9903
e08bd6c5
PA
99042020-05-24 Pedro Alves <palves@redhat.com>
9905
9906 * symtab.c (completion_list_add_name): Return boolean indication
9907 of whether the symbol matched.
9908 (completion_list_add_symbol): Don't try to remove C++ aliases if
9909 the symbol didn't match in the first place.
9910 * symtab.h (completion_list_add_name): Return bool.
9911
ceacbf6e
SM
99122020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
9913
9914 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
9915 type::field.
9916
26f16254
JB
99172020-05-23 Joel Brobecker <brobecker@adacore.com>
9918
9919 GDB 9.2 released.
9920
eca1f90c
TT
99212020-05-23 Tom Tromey <tom@tromey.com>
9922
9923 * NEWS: Add entry for completion styling.
9924 * completer.c (_rl_completion_prefix_display_length): Move
9925 declaration earlier.
9926 (gdb_fnprint): Use completion_style.
9927 (gdb_display_match_list_1): Likewise.
9928 * cli/cli-style.c (completion_prefix_style)
9929 (completion_difference_style, completion_suffix_style): New
9930 globals.
9931 (_initialize_cli_style): Register new globals.
9932 * cli/cli-style.h (completion_prefix_style)
9933 (completion_difference_style, completion_suffix_style): Declare.
9934
51e2cfa2
PA
99352020-05-23 Pedro Alves <palves@redhat.com>
9936
9937 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
9938 (parse_escape): Use ISDIGIT instead of isdigit.
9939 (puts_debug): Use gdb_isprint instead of isprint.
9940 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
9941 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
9942 ISSPACE instead of isspace.
9943 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
9944 instead of isspace.
9945 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
9946 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
9947 instead of isxdigit and ISDIGIT instead of isdigit.
9948
80fc5e77
SM
99492020-05-22 Simon Marchi <simon.marchi@efficios.com>
9950
9951 * gdbtypes.h (struct type) <field>: New method.
9952 (TYPE_FIELDS): Remove, replace all uses with either type::fields
9953 or type::field.
9954
3cabb6b0
SM
99552020-05-22 Simon Marchi <simon.marchi@efficios.com>
9956
9957 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
9958 (TYPE_FIELDS): Use type::fields. Change all call sites that
9959 modify the propery to use type::set_fields instead.
9960
1f704f76
SM
99612020-05-22 Simon Marchi <simon.marchi@efficios.com>
9962
9963 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
9964 type::num_fields instead.
9965
5e33d5f4
SM
99662020-05-22 Simon Marchi <simon.marchi@efficios.com>
9967
9968 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
9969 methods.
9970 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
9971 that modify the number of fields to use type::set_num_fields
9972 instead.
9973
9392ebb3
TT
99742020-05-22 Tom Tromey <tromey@adacore.com>
9975
9976 * compile/compile-object-load.h (munmap_list_free): Don't
9977 declare.
9978
7c13f4e8
AB
99792020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
9980
9981 * annotate.c (annotate_source_line): Update return type, add call
9982 to update current symtab and line.
9983 * annotate.h (annotate_source_line): Update return type, and
9984 extend header comment.
9985 * source.c (info_line_command): Check annotation_level before
9986 calling annotate_source_line.
9987 * stack.c (print_frame_info): If calling annotate_source_line
9988 returns true, then don't print any other source line information.
9989
aa370940
SM
99902020-05-21 Simon Marchi <simon.marchi@efficios.com>
9991
9992 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
9993
84d53fa9
SM
99942020-05-21 Simon Marchi <simon.marchi@efficios.com>
9995
9996 * coffread.c (patch_type): Remove NULL check before xfree.
9997 * corefile.c (set_gnutarget): Likewise.
9998 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
9999 * exec.c (build_section_table): Likewise.
10000 * remote.c (remote_target::pass_signals): Likewise.
10001 * utils.c (n_spaces): Likewise.
10002 * cli/cli-script.c (document_command): Likewise.
10003 * i386-windows-tdep.c (core_process_module_section): Likewise.
10004 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
10005
9d428aae
SM
100062020-05-20 Simon Marchi <simon.marchi@efficios.com>
10007
10008 * symfile.c (reread_symbols): Clear objfile's section_offsets
10009 vector and section indices, re-compute them by calling
10010 sym_offsets.
10011
250106a7
TT
100122020-05-20 Tom Tromey <tromey@adacore.com>
10013
10014 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 10015 (desc_one_bound, desc_index_type): Compute field name.
250106a7 10016
9a0bacfb
TV
100172020-05-20 Tom de Vries <tdevries@suse.de>
10018
10019 PR symtab/25833
10020 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
10021
7b958a48
AM
100222020-05-20 Alan Modra <amodra@gmail.com>
10023
10024 PR 25993
10025 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
10026 bfd_set_filename.
10027 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
10028 passed to bfd_set_filename.
10029 * symfile-mem.c (add_vsyscall_page): Likewise for string
10030 passed to symbol_file_add_from_memory.
10031 (symbol_file_add_from_memory): Make name param a const char* and
10032 don't strdup.
10033
c7e97679
AM
100342020-05-20 Alan Modra <amodra@gmail.com>
10035
10036 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
10037 rather than accessing bfd->filename directly.
10038 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
10039 and use bfd_section_name.
10040 * dwarf2/frame.c (decode_frame_entry): Likewise.
10041 * exec.c (exec_set_section_address): Likewise.
10042 * solib-aix.c (solib_aix_bfd_open): Likewise.
10043 * stap-probe.c (get_stap_base_address): Likewise.
10044 * symfile.c (reread_symbols): Likewise.
10045
563c591b
TT
100462020-05-19 Tom Tromey <tromey@adacore.com>
10047
10048 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
10049
f408d82c
SM
100502020-05-19 Simon Marchi <simon.marchi@efficios.com>
10051
10052 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
10053
98c59b52
PA
100542020-05-19 Pedro Alves <palves@redhat.com>
10055
10056 * NEWS (set exec-file-mismatch): Adjust entry.
10057 * exec.c: Include "build-id.h".
10058 (validate_exec_file): Try to match build IDs instead of filenames.
10059 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
10060 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
10061 and pass down 'warn_if_slow'.
10062 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
10063 gdb_bfd_open_closure to pass it down.
10064 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
10065
4111f652
PA
100662020-05-19 Pedro Alves <palves@redhat.com>
10067
10068 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
10069 * target.c (target_fileio_open_1): Rename to target_fileio_open
10070 and make extern. Use bool.
10071 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
10072 (target_fileio_read_alloc_1): Adjust.
10073 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
10074 (target_fileio_open_warn_if_slow): Delete declaration.
10075
ad80db5b
PA
100762020-05-19 Pedro Alves <palves@redhat.com>
10077
10078 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
10079 Adjust all callers.
10080
1d6ce4d3
YS
100812020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
10082
10083 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
10084 whether disp is negative.
10085
9005fbbb
SM
100862020-05-19 Simon Marchi <simon.marchi@efficios.com>
10087
10088 * symfile.h (struct symfile_segment_data)
10089 <~symfile_segment_data>: Remove.
10090 <segment_info>: Change to std::vector.
10091 * symfile.c (default_symfile_segments): Update.
10092 * elfread.c (elf_symfile_segments): Update.
10093
68b888ff
SM
100942020-05-19 Simon Marchi <simon.marchi@efficios.com>
10095
10096 * symfile.h (struct symfile_segment_data) <struct segment>: New.
10097 <segments>: New.
10098 <segment_bases, segment_sizes>: Remove.
10099 * symfile.c (default_symfile_segments): Update.
10100 * elfread.c (elf_symfile_segments): Update.
10101 * remote.c (remote_target::get_offsets): Update.
10102 * solib-target.c (solib_target_relocate_section_addresses):
10103 Update.
10104
62982abd
SM
101052020-05-19 Simon Marchi <simon.marchi@efficios.com>
10106
10107 * symfile.h (struct symfile_segment_data): Initialize fields.
10108 <~symfile_segment_data>: Add.
10109 (symfile_segment_data_up): New.
10110 (struct sym_fns) <sym_segments>: Return a
10111 symfile_segment_data_up.
10112 (default_symfile_segments): Return a symfile_segment_data_up.
10113 (free_symfile_segment_data): Remove.
10114 (get_symfile_segment_data): Return a symfile_segment_data_up.
10115 * symfile.c (default_symfile_segments): Likewise.
10116 (get_symfile_segment_data): Likewise.
10117 (free_symfile_segment_data): Remove.
10118 (symfile_find_segment_sections): Update.
10119 * elfread.c (elf_symfile_segments): Return a
10120 symfile_segment_data_up.
10121 * remote.c (remote_target::get_offsets): Update.
10122 * solib-target.c (solib_target_relocate_section_addresses):
10123 Update.
10124 * symfile-debug.c (debug_sym_segments): Return a
10125 symfile_segment_data_up.
10126
7f204339
RO
101272020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10128
e52a0f1b
RO
10129 PR build/25981
10130 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
10131 Hardcode register numbers.
10132
7f204339
RO
10133 PR build/25981
10134 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
10135 procfs_find_LDT_entry): Remove.
10136 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
10137 procfs_find_LDT_entry): Remove.
10138 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
10139 Remove.
10140
7f32a4d5
PA
101412020-05-17 Pedro Alves <palves@redhat.com>
10142 Andrew Burgess <andrew.burgess@embecosm.com>
10143 Keno Fischer <keno@juliacomputing.com>
10144
10145 PR gdb/25741
10146 * breakpoint.c (build_target_condition_list): Update comments.
10147 (build_target_command_list): Update comments and skip matching
10148 locations.
10149 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
10150 a separate function. Simplify "set breakpoint auto-hw off"
10151 handling.
10152 (insert_breakpoints): Update comment.
10153 (tracepoint_locations_match): New parameter. For breakpoints,
10154 compare location types too, if the caller wants to.
10155 (handle_automatic_hardware_breakpoints): New functions.
10156 (bp_location_is_less_than): Also sort by location type and
10157 hardware breakpoint length.
10158 (update_global_location_list): Handle "set breakpoint auto-hw on"
10159 here.
10160 (update_breakpoint_locations): Ask breakpoint_locations_match to
10161 ignore location types.
10162
7d93a1e0
SM
101632020-05-16 Simon Marchi <simon.marchi@efficios.com>
10164
10165 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
10166 type::name instead.
10167
d0e39ea2
SM
101682020-05-16 Simon Marchi <simon.marchi@efficios.com>
10169
10170 * gdbtypes.h (struct type) <name, set_name>: New methods.
10171 (TYPE_CODE): Use type::name. Change all call sites used to set
10172 the name to use type::set_name instead.
10173
2dab0c7b
TT
101742020-05-16 Tom Tromey <tom@tromey.com>
10175
10176 * top.c (quit_force): Update.
10177 * infrun.c (handle_no_resumed): Update.
10178 * top.h (all_uis): New function.
10179 (ALL_UIS): Remove.
10180
59f7bd8d
SM
101812020-05-16 Simon Marchi <simon.marchi@efficios.com>
10182
10183 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
10184
9bf058f0
PA
101852020-05-16 Pedro Alves <palves@redhat.com>
10186
10187 * ia64-linux-nat.c
10188 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
10189 Declare method.
10190 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
10191
8f86ae1a
SM
101922020-05-15 Simon Marchi <simon.marchi@efficios.com>
10193
10194 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
10195 (sparc64_adi_info): Likewise.
10196
d6bc0792
TT
101972020-05-15 Tom Tromey <tom@tromey.com>
10198
10199 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
10200 block_objfile.
10201 (lookup_objfile_from_block): Remove.
10202 (lookup_symbol_in_block, lookup_symbol_in_static_block)
10203 (lookup_global_symbol): Use block_objfile.
10204 * symtab.h (lookup_objfile_from_block): Don't declare.
10205 * printcmd.c (clear_dangling_display_expressions): Use
10206 block_objfile.
10207 * parse.c (operator_check_standard): Use block_objfile.
10208
8c14c3a3
TT
102092020-05-15 Tom Tromey <tom@tromey.com>
10210
10211 * language.c (language_alloc_type_symbol): Set
10212 SYMBOL_SECTION.
10213 * symtab.c (initialize_objfile_symbol): Remove.
10214 (allocate_symbol): Remove.
10215 (allocate_template_symbol): Remove.
10216 * dwarf2/read.c (fixup_go_packaging): Use "new".
10217 (new_symbol): Use "new".
10218 (read_variable): Don't call initialize_objfile_symbol. Use
10219 "new".
10220 (read_func_scope): Use "new".
10221 * xcoffread.c (process_xcoff_symbol): Don't call
10222 initialize_objfile_symbol.
10223 (SYMBOL_DUP): Remove.
10224 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
10225 "new".
10226 * symtab.h (allocate_symbol, initialize_objfile_symbol)
10227 (allocate_template_symbol): Don't declare.
10228 (struct symbol): Add copy constructor. Change defaults.
10229 * jit.c (finalize_symtab): Use "new".
10230 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
10231 Use "new".
10232 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
10233 (common_block_end): Use "new".
10234 * mdebugread.c (parse_symbol): Use "new".
10235 (new_symbol): Likewise.
10236
5b4a1a8d
PW
102372020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10238
10239 * NEWS: Mention changes to help and apropos.
10240
57b4f16e
PW
102412020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10242
10243 * command.h (enum command_class): Improve comments, document
10244 that class_alias is for user-defined aliases, give the class
10245 name for each class, remove unused class_xdb.
10246 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
10247 * breakpoint.c (_initialize_breakpoint): Replace class_alias
10248 by a precise class.
10249 * infcmd.c (_initialize_infcmd): Likewise.
10250 * reverse.c (_initialize_reverse): Likewise.
10251 * stack.c (_initialize_stack): Likewise.
10252 * symfile.c (_initialize_symfile): Likewise.
10253 * tracepoint.c (_initialize_tracepoint): Likewise.
10254
7c05caf7
PW
102552020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10256
10257 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
10258 when their aliased command is traversed.
10259 (help_cmd): Add fput_command_names_styled call to
10260 output command name and aliases when command has an alias.
10261
3b3aaacb
PW
102622020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10263
10264 * cli/cli-decode.h (help_cmd_list): Remove declaration.
10265 * cli/cli-decode.c (help_cmd_list): Declare as static,
10266 remove prefix argument, use bool for recurse arg, rework to show the aliases of
10267 a command together with the command.
10268 (fput_command_name_styled, fput_command_names_styled): New functions.
10269 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
10270 fput_command_name_styled.
10271 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
10272 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
10273
7aa1b46f
PW
102742020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10275
10276 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
10277 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
10278 * command.h (cmd_show_list): Likewise.
10279 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
10280 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
10281
89bcba74
PW
102822020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10283
10284 * unittests/command-def-selftests.c (traverse_command_structure):
10285 Verify all commands of a list have the same prefix command and
10286 that only the top cmdlist commands have a null prefix.
10287
3f4d92eb
PW
102882020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10289
10290 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
10291 as prefix, not one of its aliases.
10292 (set_cmd_prefix): Remove.
10293 (do_add_cmd): Centralize the setting of the prefix of a command, when
10294 command is defined after its full chain of prefix commands.
10295 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
10296 (add_setshow_cmd_full): Likewise.
10297 (update_prefix_field_of_prefixed_commands): New function.
10298 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
10299 update_prefix_field_of_prefixed_commands.
10300 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
10301 addresses of remote_set_cmdlist and remote_show_cmdlist given
10302 as argument, not the address of an argument.
10303 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
10304 * gdb/remote.c (_initialize_remote): Likewise.
10305
0605465f
PW
103062020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10307
10308 * cli/cli-cmds.c (alias_command): Check for an existing alias
10309 using lookup_cmd_composition, as valid_command_p is too strict
10310 and forbids aliases that are the prefix of an existing alias
10311 or command.
10312 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
10313 command is properly recognised as a valid command.
10314
58e6ac70
PW
103152020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10316
10317 * unittests/help-doc-selftests.c: Rename to
10318 unittests/command-def-selftests.c
10319 * unittests/command-def-selftests.c (help_doc_tests): Update some
10320 comments.
10321 (command_structure_tests, traverse_command_structure): New namespace
10322 and function.
10323 (command_structure_invariants_tests): New function.
10324 (_initialize_command_def_selftests) Renamed from
10325 _initialize_help_doc_selftests, register command_structure_invariants
10326 selftest.
10327
a7b9ceb8
PW
103282020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10329
10330 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
10331 an alias of 'show'.
10332
b2188a06
JB
103332020-05-15 Joel Brobecker <brobecker@adacore.com>
10334
10335 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
10336 ada_is_fixed_point_type. Update all callers.
10337 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
10338 all callers.
10339 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
10340 Update all callers.
10341 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
10342 print_fixed_point_type. Update all callers.
10343 * ada-valprint.c (ada_value_print_num): Replace call to
10344 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
10345
a51951c2
KB
103462020-05-14 Kevin Buettner <kevinb@redhat.com>
10347
10348 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
10349 processors.
10350 (cpu_supports_bts): Add CV_AMD case.
10351
29d6859f
LM
103522020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
10353 Simon Marchi <simon.marchi@efficios.com>
10354
10355 * infrun.c (stop_all_threads): Collect multiple wait events at
10356 each pass.
10357
78134374
SM
103582020-05-14 Simon Marchi <simon.marchi@efficios.com>
10359
10360 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
10361 type::code instead.
10362
67607e24
SM
103632020-05-14 Simon Marchi <simon.marchi@efficios.com>
10364
10365 * gdbtypes.h (struct type) <code, set_code>: New methods.
10366 (TYPE_CODE): Use type::code. Change all call sites used to set
10367 the code to use type::set_code instead.
10368
a05575d3
TBA
103692020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10370 Tom de Vries <tdevries@suse.de>
10371 Pedro Alves <palves@redhat.com>
10372
10373 PR threads/25478
10374 * infrun.c (stop_all_threads): Do NOT ignore
10375 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
10376 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
10377 received.
10378 (handle_no_resumed): Remove code handling a live inferior with no
10379 threads.
10380 * remote.c (has_single_non_exited_thread): New.
10381 (remote_target::update_thread_list): Do not delete a thread if is
10382 the last thread of the process.
10383 * thread.c (thread_select): Call delete_exited_threads instead of
10384 prune_threads.
10385
6ad82919
TBA
103862020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10387
10388 * infrun.c (stop_all_threads): Enable/disable thread events of all
10389 targets. Move a debug message denoting the end of the function
10390 into the SCOPED_EXIT block.
10391
d890404b
TBA
103922020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10393
10394 * process-stratum-target.h: Include <set>.
10395 (all_non_exited_process_targets, switch_to_target_no_thread): New
10396 function declarations.
10397 * process-stratum-target.c (all_non_exited_process_targets)
10398 (switch_to_target_no_thread): New function implementations.
10399
293b3ebc
TBA
104002020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10401
10402 * infrun.c (handle_inferior_event): Extract out a piece of code
10403 into...
10404 (mark_non_executing_threads): ...this new function.
10405
7ca9b62a
TBA
104062020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10407
10408 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
10409 use.
10410
fc75c28b
TBA
104112020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10412
10413 * regcache.c (regcache_read_pc_protected): New function
10414 implementation that returns 0 if the PC cannot read via
10415 'regcache_read_pc'.
10416 * infrun.c (proceed): Call 'regcache_read_pc_protected'
10417 instead of 'regcache_read_pc'.
10418 (keep_going_pass_signal): Ditto.
10419
a89febbd
TT
104202020-05-13 Tom Tromey <tromey@adacore.com>
10421
10422 * ada-lang.c (align_value): Remove.
10423 (ada_template_to_fixed_record_type_1): Use align_up.
10424
f7e23710
TBA
104252020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10426
10427 * async-event.c: Update the copyright year.
10428 * async-event.h: Update the copyright year.
10429
02ff80c2
SM
104302020-05-12 Simon Marchi <simon.marchi@efficios.com>
10431
10432 * objfiles.h (is_addr_in_objfile,
10433 shared_objfile_contains_address_p): Return bool.
10434 * objfile.c (is_addr_in_objfile,
10435 shared_objfile_contains_address_p): Return bool.
10436
4fd6c7e8
TT
104372020-05-11 Tom Tromey <tromey@adacore.com>
10438
10439 * cli/cli-cmds.c (info_command): Restore.
10440 (_initialize_cli_cmds): Use add_prefix_command for "info".
10441 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
10442
5eb68a39
TT
104432020-05-11 Tom Tromey <tromey@adacore.com>
10444
10445 * ada-lang.c (ada_value_primitive_field): Now public.
10446 * ada-lang.h (ada_value_primitive_field): Declare.
10447 * ada-valprint.c (print_field_values): Use
10448 ada_value_primitive_field for wrapper fields.
10449
7666722f
TV
104502020-05-11 Tom de Vries <tdevries@suse.de>
10451
10452 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
10453 MODULE_DOMAIN.
10454
3ee6bb11
TV
104552020-05-11 Tom de Vries <tdevries@suse.de>
10456
10457 PR symtab/25941
10458 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
10459 with length 0, if not gdb-produced.
10460 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
10461
43434996
TV
104622020-05-09 Tom de Vries <tdevries@suse.de>
10463
10464 PR gdb/25955
10465 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
10466 calculation.
10467
2f78cffc
TT
104682020-05-09 Tom Tromey <tom@tromey.com>
10469
10470 * top.c (server_command): Now bool.
10471 * top.h (server_command): Now bool.
10472
4f7bc5ed
TT
104732020-05-08 Tom Tromey <tromey@adacore.com>
10474
10475 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
10476 already being processed.
10477
8be4b118
TT
104782020-05-08 Tom Tromey <tom@tromey.com>
10479
10480 * printcmd.c (struct display) <next>: Remove.
10481 <display>: New constructor.
10482 <exp_string>: Now a std::string.
10483 <enabled_p>: Now a bool.
10484 (display_number): Move definition earlier.
10485 (displays): Rename from display_chain. Now a std::vector.
10486 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
10487 (display_command): Update.
10488 (do_one_display, disable_display)
10489 (enable_disable_display_command, do_enable_disable_display):
10490 Update.
10491 (free_display): Remove.
10492 (clear_displays): Rewrite.
10493 (delete_display): Update.
10494 (map_display_numbers): Use function_view. Remove "data"
10495 parameter. Update.
10496 (do_delete_display): Remove.
10497 (undisplay_command): Update.
10498 (do_one_display, do_displays, disable_display)
10499 (info_display_command): Update.
10500 (do_enable_disable_display): Remove.
10501 (enable_disable_display_command)
10502 (clear_dangling_display_expressions): Update.
10503
94c93c35
TT
105042020-05-08 Tom Tromey <tom@tromey.com>
10505
10506 * symtab.c (set_symbol_cache_size)
10507 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
10508 (maintenance_print_symbol_cache_statistics): Update.
10509 * symmisc.c (print_symbol_bcache_statistics)
10510 (print_objfile_statistics, maintenance_print_objfiles)
10511 (maintenance_info_symtabs, maintenance_check_symtabs)
10512 (maintenance_expand_symtabs, maintenance_info_line_tables):
10513 Update.
10514 * symfile-debug.c (set_debug_symfile): Update.
10515 * source.c (forget_cached_source_info): Update.
10516 * python/python.c (gdbpy_progspaces): Update.
10517 * psymtab.c (maintenance_info_psymtabs): Update.
10518 * probe.c (parse_probes): Update.
10519 * linespec.c (iterate_over_all_matching_symtabs)
10520 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
10521 * guile/scm-progspace.c (gdbscm_progspaces): Update.
10522 * exec.c (exec_target::close): Update.
10523 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
10524 * breakpoint.c (print_one_breakpoint_location)
10525 (create_longjmp_master_breakpoint)
10526 (create_std_terminate_master_breakpoint): Update.
10527 * progspace.c (program_spaces): Now a std::vector.
10528 (maybe_new_address_space): Update.
10529 (add_program_space): Remove.
10530 (program_space::program_space): Update.
10531 (remove_program_space): Update.
10532 (number_of_program_spaces): Remove.
10533 (print_program_space, update_address_spaces): Update.
10534 * progspace.h (program_spaces): Change type.
10535 (ALL_PSPACES): Remove.
10536 (number_of_program_spaces): Don't declare.
10537 (struct program_space) <next>: Remove.
10538
a1fd1ac9
TT
105392020-05-08 Tom Tromey <tom@tromey.com>
10540
10541 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
10542 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
10543 (enable_break): Update.
10544 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
10545 (frv_fdpic_find_canonical_descriptor): Update.
10546 (frv_fetch_objfile_link_map): Update.
10547 * progspace.c (program_space::free_all_objfiles): Update.
10548 (program_space::solibs): New method.
10549 * progspace.h (struct program_space) <solibs>: New method.
10550 * solist.h (master_so_list): Don't declare.
10551 (ALL_SO_LIBS): Remove.
10552 * solib.h (so_list_head): Remove.
10553 (update_solib_list): Update comment.
10554 * solib.c (master_so_list): Remove.
10555 (solib_used, update_solib_list, solib_add)
10556 (info_sharedlibrary_command, clear_solib)
10557 (reload_shared_libraries_1, remove_user_added_objfile): Update.
10558
38eae084
TT
105592020-05-08 Tom Tromey <tom@tromey.com>
10560
10561 * extension.c (extension_languages): Now a std::array.
10562 (ALL_EXTENSION_LANGUAGES): Remove.
10563 (get_ext_lang_defn, get_ext_lang_of_file)
10564 (eval_ext_lang_from_control_command): Update.
10565 (finish_ext_lang_initialization)
10566 (auto_load_ext_lang_scripts_for_objfile)
10567 (ext_lang_type_printers::ext_lang_type_printers)
10568 (apply_ext_lang_type_printers)
10569 (ext_lang_type_printers::~ext_lang_type_printers)
10570 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
10571 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
10572 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
10573 (get_matching_xmethod_workers, ext_lang_colorize)
10574 (ext_lang_before_prompt): Update.
10575 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
10576
596dc4ad
TT
105772020-05-08 Tom Tromey <tom@tromey.com>
10578
10579 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
10580 overload.
10581 <swap_string, m_string>: Remove.
10582 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
10583 Update.
10584 * stabsread.c (define_symbol, read_type): Update.
10585 * linespec.c (find_linespec_symbols): Update.
10586 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
10587 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
10588 * dbxread.c (read_dbx_symtab): Update.
10589 * cp-support.h (cp_canonicalize_string_full)
10590 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
10591 Return unique_xmalloc_ptr.
10592 * cp-support.c (inspect_type): Update.
10593 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
10594 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
10595 Likewise.
10596 * c-typeprint.c (print_name_maybe_canonical): Update.
10597 * break-catch-throw.c (check_status_exception_catchpoint):
10598 Update.
10599
bf4cb9be
TV
106002020-05-08 Tom de Vries <tdevries@suse.de>
10601
10602 * infrun.c (follow_fork): Copy current_line and current_symtab to
10603 child thread.
10604
a1b68f28
SM
106052020-05-07 Simon Marchi <simon.marchi@efficios.com>
10606
10607 * async-event.c (struct async_signal_handler, struct
10608 async_event_handler): Reformat, remove typedef.
10609
98d48915
SM
106102020-05-07 Simon Marchi <simon.marchi@efficios.com>
10611
10612 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
10613 access thistype->main_type->dyn_prop_list directly.
10614
7aa91313
SM
106152020-05-07 Simon Marchi <simon.marchi@efficios.com>
10616
10617 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
10618 (remove_dyn_prop): Remove. Update all users to use
10619 type::remove_dyn_prop.
10620 * gdbtypes.c (remove_dyn_prop): Rename to...
10621 (type::remove_dyn_prop): ... this.
10622
5c54719c
SM
106232020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
10624
10625 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
10626 (add_dyn_prop): Remove. Update all users to use
10627 type::add_dyn_prop.
10628 * gdbtypes.c (add_dyn_prop): Rename to...
10629 (type::add_dyn_prop): ... this.
10630
24e99c6c
SM
106312020-05-07 Simon Marchi <simon.marchi@efficios.com>
10632
10633 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
10634 (get_dyn_prop): Remove. Update all users to use
10635 type::dyn_prop.
10636 * gdbtypes.c (get_dyn_prop): Rename to...
10637 (type::dyn_prop): ... this.
10638
0d4bf016
SM
106392020-05-06 Simon Marchi <simon.marchi@efficios.com>
10640
10641 * gdbtypes.h (struct main_type) <flag_static>: Remove.
10642
ac4a4f1c
SM
106432020-05-06 Simon Marchi <simon.marchi@efficios.com>
10644
10645 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
10646 instruction, skip it if it's there.
10647
a3bbacc1
SM
106482020-05-05 Simon Marchi <simon.marchi@efficios.com>
10649
10650 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
10651
c3236f84
SM
106522020-05-04 Simon Marchi <simon.marchi@efficios.com>
10653
10654 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
10655 * gdbtypes.c (recursive_dump_type): Remove use of
10656 TYPE_INCOMPLETE.
10657
3b6acaee
TT
106582020-05-03 Tom Tromey <tom@tromey.com>
10659
10660 * breakpoint.c (catch_command, tcatch_command): Remove.
10661 (_initialize_breakpoint): Use add_basic_prefix_cmd,
10662 add_show_prefix_cmd.
10663 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
10664 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
10665 Remove.
10666 (add_internal_problem_command): Use add_basic_prefix_cmd,
10667 add_show_prefix_cmd.
10668 * mips-tdep.c (set_mipsfpu_command): Remove.
10669 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
10670 * dwarf2/index-cache.c (set_index_cache_command): Remove.
10671 (_initialize_index_cache): Use add_basic_prefix_cmd.
10672 * memattr.c (dummy_cmd): Remove.
10673 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
10674 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
10675 (_initialize_tui_win): Use add_basic_prefix_cmd,
10676 add_show_prefix_cmd.
10677 * cli/cli-logging.c (set_logging_command): Remove.
10678 (_initialize_cli_logging): Use add_basic_prefix_cmd,
10679 add_show_prefix_cmd.
10680 (show_logging_command): Remove.
10681 * target.c (target_command): Remove.
10682 (add_target): Use add_basic_prefix_cmd.
10683
a51119cd
HD
106842020-05-02 Hannes Domani <ssbssa@yahoo.de>
10685
10686 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
10687
652fc23a 106882020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 10689
652fc23a
PW
10690 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
10691 info_command.
10692
117539e6
KR
106932020-04-30 Kamil Rytarowski <n54@gmx.com>
10694
10695 * nbsd-nat.c (nbsd_enable_proc_events)
10696 (nbsd_nat_target::post_startup_inferior): Add.
10697 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
10698 (nbsd_nat_target::update_thread_list): Rewrite.
10699 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
10700 "PTRACE_LWP_CREATE".
10701 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
10702
102e38eb 107032020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 10704
102e38eb
PW
10705 * stack.c (_initialize_stack): Remove duplicated creation
10706 of "frame" command and "f" alias.
10707
ee9d1e5f
HD
107082020-04-30 Hannes Domani <ssbssa@yahoo.de>
10709
10710 PR gdb/18706
10711 * gdbtypes.c (check_typedef): Calculate size of array of
10712 stubbed type.
10713
627c7fb8
HD
107142020-04-30 Hannes Domani <ssbssa@yahoo.de>
10715
10716 PR gdb/15559
10717 * i386-tdep.c (i386_push_dummy_call): Call
10718 i386_thiscall_push_dummy_call.
10719 (i386_thiscall_push_dummy_call): New function.
10720 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
10721 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
10722 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
10723
ffc2844e
SM
107242020-04-29 Simon Marchi <simon.marchi@efficios.com>
10725
10726 * gdbarch.sh (do_read): Add shellcheck disable directive for
10727 warning SC2162.
10728
1207375d
SM
107292020-04-29 Simon Marchi <simon.marchi@efficios.com>
10730
10731 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
10732 "referenced but not assigned" warning.
10733
9fdb2916
SM
107342020-04-29 Simon Marchi <simon.marchi@efficios.com>
10735
10736 * gdbarch.sh: Remove code that sets fallbackdefault.
10737
759cea5e
SM
107382020-04-29 Simon Marchi <simon.marchi@efficios.com>
10739
10740 * gdbarch.sh: Use shell operators && and || instead of
10741 -a and -o.
10742
cb02ab24
SM
107432020-04-29 Simon Marchi <simon.marchi@efficios.com>
10744
10745 * gdbarch.sh: Use $(...) instead of `...`.
10746
a6fc5ffc
SM
107472020-04-29 Simon Marchi <simon.marchi@efficios.com>
10748
10749 * gdbarch.sh: Use double quotes around variables.
10750
8d113d13
SM
107512020-04-29 Simon Marchi <simon.marchi@efficios.com>
10752
10753 * gdbarch.sh: Use %s with printf, instead of variables in the
10754 format string.
10755
ed6acedd
TT
107562020-04-29 Tom Tromey <tromey@adacore.com>
10757
10758 PR ada/25875:
10759 * dwarf2/read.c (update_enumeration_type_from_children): Compute
10760 type fields here.
10761 (read_enumeration_type): Call
10762 update_enumeration_type_from_children later. Update comments.
10763 (process_enumeration_scope): Don't create type fields.
10764
b68b1b58
KR
107652020-04-29 Kamil Rytarowski <n54@gmx.com>
10766
10767 * nbsd-tdep.c: Include "xml-syscall.h".
10768 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
10769
f94b2e03
KR
107702020-04-29 Kamil Rytarowski <n54@gmx.com>
10771
10772 * nbsd-nat.c: Include "sys/wait.h".
10773 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
10774 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
10775 (nbsd_nat_target::remove_exec_catchpoint)
10776 (nbsd_nat_target::set_syscall_catchpoint): Add.
10777 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
10778 (nbsd_nat_target::insert_exec_catchpoint)
10779 (nbsd_nat_target::remove_exec_catchpoint)
10780 (nbsd_nat_target::set_syscall_catchpoint): Add.
10781 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
10782 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
10783 `nbsd_get_syscall_number'.
10784
fc49bc72
TT
107852020-04-29 Tom Tromey <tom@tromey.com>
10786
10787 * stack.c (print_block_frame_labels): Remove.
10788
d642b692
HD
107892020-04-29 Hannes Domani <ssbssa@yahoo.de>
10790
10791 PR gdb/17320
10792 * ada-valprint.c (val_print_packed_array_elements): Move array
10793 end bracket to new line.
10794 (ada_val_print_string): Remove extra spaces before first array
10795 element.
10796 * c-valprint.c (c_value_print_array): Likewise.
10797 * m2-valprint.c (m2_print_array_contents): Likewise.
10798 (m2_value_print_inner): Likewise.
10799 * p-valprint.c (pascal_value_print_inner): Likewise.
10800 * valprint.c (generic_val_print_array): Likewise.
10801 (value_print_array_elements): Move first array element and array
10802 end bracket to new line.
10803
ea90f227
TV
108042020-04-29 Tom de Vries <tdevries@suse.de>
10805
10806 PR symtab/25889
10807 * linespec.c (find_method): Fix ix calculation.
10808
4498ef4f
KR
108092020-04-28 Kamil Rytarowski <n54@gmx.com>
10810
10811 * syscalls/update-netbsd.sh: New file.
10812 * syscalls/netbsd.xml: Regenerate.
10813 * data-directory/Makefile.in: Register `netbsd.xml' in
10814 `SYSCALLS_FILES'.
10815
a55e30b5
SM
108162020-04-28 Simon Marchi <simon.marchi@efficios.com>
10817
10818 * syscalls/update-freebsd.sh: Add double quotes.
10819
2b2fbab8
TT
108202020-04-28 Tom Tromey <tom@tromey.com>
10821
10822 * NEWS: Update.
10823 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
10824 (cmdpy_init): Allow class_tui.
10825
a65189c9
TV
108262020-04-28 Mark Williams <mark@myosotissp.com>
10827
10828 PR gdb/24480
10829 * dwarf2read.c: Add missing assingments to list_in_scope when
10830 start_symtab was already called.
10831
1b95cdb7
SM
108322020-04-28 Simon Marchi <simon.marchi@efficios.com>
10833
10834 PR gdb/25881
10835 * dwarf2/read.c (offset_map_type): Use
10836 gdb:hash_enum<sect_offset> as hash function.
10837
15cd93d0
TV
108382020-04-28 Tom de Vries <tdevries@suse.de>
10839
10840 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
10841 with DW_AT_signature.
10842
1eb39914
SM
108432020-04-27 Simon Marchi <simon.marchi@efficios.com>
10844
10845 * configure.ac: Remove check for fs_base/gs_base in
10846 user_regs_struct.
10847 * configure: Re-generate.
10848 * config.in: Re-generate.
10849 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
10850 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
10851 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
10852
991a3e2e
LM
108532020-04-27 Luis Machado <luis.machado@linaro.org>
10854
10855 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
10856 problematic inline frame unwinding situation.
10857 * frame.c (frame_id_computed_p): New function.
10858 * frame.h (frame_id_computed_p): New prototype.
10859
361ba0e8
TT
108602020-04-26 Tom Tromey <tom@tromey.com>
10861
10862 * command.h (enum command_class) <class_pseudo>: Remove.
10863
bc3609fd
PW
108642020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10865
10866 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
10867 and whitespace.
10868
b9771db7
KR
108692020-04-25 Kamil Rytarowski <n54@gmx.com>
10870
ec16513e
SM
10871 * inf-ptrace.c (inf_ptrace_target::wait): Remove
10872 `PT_GET_PROCESS_STATE' block.
b9771db7 10873
7151c1af
TT
108742020-04-24 Tom Tromey <tom@tromey.com>
10875
10876 * symtab.h (symbol_get_demangled_name): Don't declare.
10877 * symtab.c (symbol_get_demangled_name): Remove.
10878 (general_symbol_info::natural_name)
10879 (general_symbol_info::demangled_name): Update.
10880
906bb4c5
TT
108812020-04-24 Tom Tromey <tom@tromey.com>
10882
10883 PR rust/25025:
10884 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
10885
bcfe6157
TT
108862020-04-24 Tom Tromey <tom@tromey.com>
10887
10888 PR symtab/12707:
10889 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
10890 exists.
10891 (new_symbol): Likewise.
10892 * compile/compile-object-load.c (get_out_value_type): Use
10893 symbol_matches_search_name.
10894
f049a313
TT
108952020-04-24 Tom Tromey <tom@tromey.com>
10896
10897 * dwarf2/read.c (add_partial_symbol): Do not call
10898 compute_and_set_names.
10899
76e288d1
TT
109002020-04-24 Tom Tromey <tom@tromey.com>
10901
10902 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
10903 overload.
10904
2467f4f6
TT
109052020-04-24 Tom Tromey <tom@tromey.com>
10906
10907 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
10908 (add_psymbol_to_list): New overload. Make old overload call new
10909 one.
10910 * psympriv.h (add_psymbol_to_list): New overload.
10911
e61108c9
TT
109122020-04-24 Tom Tromey <tom@tromey.com>
10913
10914 * dwarf2/read.c (partial_die_info::read) <case
10915 DW_AT_linkage_name>: Use value_as_string.
10916 (dwarf2_string_attr): Use value_as_string.
10917 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
10918 method.
10919 * dwarf2/attribute.c (attribute::value_as_string): New method.
10920
8c87a452
TT
109212020-04-24 Tom Tromey <tom@tromey.com>
10922
10923 * symtab.c (general_symbol_info::natural_name)
10924 (general_symbol_info::demangled_name): Check for language_rust.
10925
787de330
TT
109262020-04-24 Tom Tromey <tom@tromey.com>
10927
10928 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
10929 (dwarf2_physname): ... from here.
10930 (partial_die_info::read): Add Rust "{" hack.
10931
ff985671
TT
109322020-04-24 Tom Tromey <tom@tromey.com>
10933
10934 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
10935 method.
10936 (symbol_set_demangled_name): Don't declare.
10937 * symtab.c (general_symbol_info::set_demangled_name): Rename from
10938 symbol_set_demangled_name.
10939 (general_symbol_info::set_language)
10940 (general_symbol_info::compute_and_set_names): Update.
10941 * minsyms.c (minimal_symbol_reader::install): Update.
10942 * dwarf2/read.c (new_symbol): Update.
10943
1acda803
TT
109442020-04-24 Tom Tromey <tromey@adacore.com>
10945
10946 PR python/23662:
10947 * python/py-type.c (convert_field): Handle
10948 FIELD_LOC_KIND_DWARF_BLOCK.
10949 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
10950 (typy_get_dynamic): Nw function.
10951 (type_object_getset): Add "dynamic".
10952 * NEWS: Add entry.
10953
d656f129
TT
109542020-04-24 Tom Tromey <tromey@adacore.com>
10955
10956 * ada-typeprint.c (print_choices, print_variant_part)
10957 (print_record_field_types_dynamic): New functions.
10958 (print_record_field_types): Use print_record_field_types_dynamic.
10959
7d79de9a
TT
109602020-04-24 Tom Tromey <tromey@adacore.com>
10961
10962 * dwarf2/read.c (handle_data_member_location): New overload.
10963 (dwarf2_add_field): Use it.
10964 (decode_locdesc): Add "computed" parameter. Update comment.
10965 * gdbtypes.c (is_dynamic_type_internal): Also look for
10966 FIELD_LOC_KIND_DWARF_BLOCK.
10967 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
10968 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
10969 virtual base classes.
10970 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
10971 FIELD_LOC_KIND_DWARF_BLOCK.
10972
f8e89861
TT
109732020-04-24 Tom Tromey <tromey@adacore.com>
10974
10975 * dwarf2/read.c (read_structure_type): Handle dynamic length.
10976 * gdbtypes.c (is_dynamic_type_internal): Check
10977 TYPE_HAS_DYNAMIC_LENGTH.
10978 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
10979 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
10980 New macros.
10981 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
10982 constant.
10983
9c6a1327
TT
109842020-04-24 Tom Tromey <tromey@adacore.com>
10985
10986 * dwarf2/read.c (struct variant_field): Rewrite.
10987 (struct variant_part_builder): New.
10988 (struct nextfield): Remove "variant" field. Add "offset".
10989 (struct field_info): Add "current_variant_part" and
10990 "variant_parts".
10991 (alloc_discriminant_info): Remove.
10992 (alloc_rust_variant): New function.
10993 (quirk_rust_enum): Update.
10994 (dwarf2_add_field): Set "offset" member. Don't handle
10995 DW_TAG_variant_part.
10996 (offset_map_type): New typedef.
10997 (convert_variant_range, create_one_variant)
10998 (create_one_variant_part, create_variant_parts)
10999 (add_variant_property): New functions.
11000 (dwarf2_attach_fields_to_type): Call add_variant_property.
11001 (read_structure_type): Don't handle DW_TAG_variant_part.
11002 (handle_variant_part, handle_variant): New functions.
11003 (handle_struct_member_die): Use them.
11004 (process_structure_scope): Don't handle variant parts.
11005 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
11006 (struct discriminant_info): Remove.
11007 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
11008 (struct main_type) <flag_discriminated_union>: Remove.
11009 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
11010 (rust_enum_variant): Return int. Remove "contents". Rewrite.
11011 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
11012 Update.
11013 * valops.c (value_union_variant): Remove.
11014 * value.h (value_union_variant): Don't declare.
11015
b249d2c2
TT
110162020-04-24 Tom Tromey <tromey@adacore.com>
11017
11018 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
11019 (ada_value_primitive_packed_val): Update.
11020 * ada-valprint.c (ada_value_print_1): Update.
11021 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
11022 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
11023 just an address. Use evaluate_for_locexpr_baton.
11024 (dwarf2_evaluate_property): Update.
11025 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
11026 array_view.
11027 * findvar.c (default_read_var_value): Update.
11028 * gdbtypes.c (compute_variant_fields_inner)
11029 (resolve_dynamic_type_internal): Update.
11030 (resolve_dynamic_type): Change type of valaddr parameter.
11031 * gdbtypes.h (resolve_dynamic_type): Update.
11032 * valarith.c (value_subscripted_rvalue): Update.
11033 * value.c (value_from_contents_and_address): Update.
11034
61122aa9
TT
110352020-04-24 Tom Tromey <tromey@adacore.com>
11036
11037 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
11038 "push_initial_value" parameter.
11039 (dwarf2_evaluate_property): Likewise.
11040 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
11041
ef83a141
TT
110422020-04-24 Tom Tromey <tromey@adacore.com>
11043
11044 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
11045 (variant::matches, compute_variant_fields_recurse)
11046 (compute_variant_fields_inner, compute_variant_fields): New
11047 functions.
11048 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
11049 Use resolved_type after type is made.
11050 (operator==): Add new cases.
11051 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
11052 (struct discriminant_range, struct variant, struct variant_part):
11053 New.
11054 (union dynamic_prop_data) <variant_parts, original_type>: New
11055 members.
11056 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
11057 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
11058 constants.
11059 * value.c (unpack_bits_as_long): Now public.
11060 * value.h (unpack_bits_as_long): Declare.
11061
675127ec
TT
110622020-04-24 Tom Tromey <tromey@adacore.com>
11063
11064 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
11065 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
11066
9852ceef
HD
110672020-04-24 Hannes Domani <ssbssa@yahoo.de>
11068
11069 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
11070
7632c6ce
KR
110712020-04-24 Kamil Rytarowski <n54@gmx.com>
11072
11073 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
11074 (remove_fork_catchpoint, post_startup_inferior)
11075 (post_attach): Move...
11076 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
11077 (remove_fork_catchpoint, post_startup_inferior)
11078 (post_attach): ...here.
11079 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
11080 (remove_fork_catchpoint, post_startup_inferior)
11081 (post_attach): Move...
11082 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
11083 (remove_fork_catchpoint, post_startup_inferior)
11084 (post_attach): ...here.
11085
7be2bb4f
TT
110862020-04-24 Tom Tromey <tromey@adacore.com>
11087
11088 * nat/windows-nat.h (struct windows_thread_info)
11089 <pc_adjusted>: New member.
11090 * windows-nat.c (windows_fetch_one_register): Check
11091 pc_adjusted.
11092 (windows_nat_target::get_windows_debug_event)
11093 (windows_nat_target::wait): Set pc_adjusted.
11094
f80cb3b4
TV
110952020-04-24 Tom de Vries <tdevries@suse.de>
11096
11097 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
11098 Run gdb-add-index inside temp dir.
11099
29514b87
TT
111002020-04-23 Tom Tromey <tromey@adacore.com>
11101
11102 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
11103 in loop.
11104
5939967b
LM
111052020-04-23 Luis Machado <luis.machado@linaro.org>
11106
11107 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
11108 get_frame_register instead of gdbarch_unwind_pc.
11109
70bc38f5
TV
111102020-04-23 Tom de Vries <tdevries@suse.de>
11111
11112 * symtab.c (lookup_global_symbol): Prefer def over decl.
11113
de82891c
TV
111142020-04-23 Tom de Vries <tdevries@suse.de>
11115
11116 PR symtab/25807
11117 * block.c (best_symbol, better_symbol): Promote to external.
11118 * block.h (best_symbol, better_symbol): Declare.
11119 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
11120 decl.
11121
ecc6c606
TT
111222020-04-23 Tom Tromey <tromey@adacore.com>
11123
11124 PR ada/25837:
11125 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
11126 "const char *", not a "const std::string &".
11127 <name_and_matcher::operator==>: Update.
11128 * unittests/lookup_name_info-selftests.c: Change type of
11129 "result".
11130
740480b8
TT
111312020-04-23 Tom Tromey <tom@tromey.com>
11132
11133 * inferior.h (iterate_over_inferiors): Don't declare.
11134 * inferior.c (iterate_over_inferiors): Remove.
11135 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
11136 Remove.
11137 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
11138 use iterate_over_inferiors.
11139 (darwin_resume_inferior_it)
11140 (struct resume_inferior_threads_param)
11141 (darwin_resume_inferior_threads_it): Remove.
11142 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
11143
ae3ab1f0
TV
111442020-04-23 Tom de Vries <tdevries@suse.de>
11145
11146 * blockframe.c (find_pc_partial_function): Use
11147 find_pc_sect_compunit_symtab rather than
11148 objfile->sf->qf->find_pc_sect_compunit_symtab.
11149
317d2668
TV
111502020-04-22 Tom de Vries <tdevries@suse.de>
11151
11152 PR symtab/25764
11153 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
11154 in psymtabs.
11155
eea9e357
TV
111562020-04-22 Tom de Vries <tdevries@suse.de>
11157
11158 PR symtab/25801
11159 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
11160 symtabs.
11161
3d5afab3
TV
111622020-04-22 Tom de Vries <tdevries@suse.de>
11163
11164 PR symtab/25700
11165 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
11166 CU if already created.
11167
d43b7a2d
TBA
111682020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11169
11170 * infrun.c (displaced_step_fixup): Switch to the event_thread
11171 before calling displaced_step_restore, not after.
11172
d89edf9b
MM
111732020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11174
11175 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
11176 its inferior is not recorded by us.
11177 (record_btrace_target_open): Replace call to
11178 all_non_exited_threads () with call to current_inferior
11179 ()->non_exited_threads ().
11180 (record_btrace_target::stop_recording): Likewise.
11181 (record_btrace_target::close): Likewise.
11182 (record_btrace_target::wait): Likewise.
11183 (record_btrace_target::record_stop_replaying): Likewise.
11184
5897fd49
MM
111852020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11186
11187 * btrace.c (btrace_enable): Throw an error on double enables and
11188 when enabling recording fails.
11189 (btrace_disable): Throw an error if the thread is not recorded.
11190
1a476b6d
MM
111912020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11192
11193 * record-btrace.c (record_btrace_target::fetch_registers): Forward
11194 request if we do not have a thread_info.
11195
4778a5f8
TV
111962020-04-21 Tom de Vries <tdevries@suse.de>
11197
11198 PR gdb/25471
11199 * thread.c
11200 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
11201 exception in get_frame_id.
11202
0fa7617d
TT
112032020-04-20 Tom Tromey <tromey@adacore.com>
11204
11205 * python/python.c (struct gdbpy_event): Mark move constructor as
11206 noexcept.
11207 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
11208 constructor as noexcept.
11209 * completer.h (struct completion_result): Mark move constructor as
11210 noexcept.
11211 * completer.c (completion_result::completion_result): Use
11212 initialization style. Don't call reset_match_list.
11213
ad23bda0
MS
112142020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
11215
11216 * MAINTAINERS (Write After Approval): Add myself.
11217
45e1f031
TT
112182020-04-18 Tom Tromey <tom@tromey.com>
11219
11220 * windows-tdep.c (init_w32_command_list)
11221 (w32_prefix_command_valid): Restore.
11222 (_initialize_windows_tdep): Call init_w32_command_list.
11223
08feed99
TT
112242020-04-18 Tom Tromey <tom@tromey.com>
11225
11226 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
11227 * value.c (value_fn_field): Update.
11228 * valops.c (find_function_in_inferior)
11229 (value_allocate_space_in_inferior): Update.
11230 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11231 Update.
11232 * tui/tui-source.c (tui_source_window::set_contents): Update.
11233 * symtab.c (lookup_global_or_static_symbol)
11234 (find_function_start_sal_1, skip_prologue_sal)
11235 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
11236 * symmisc.c (dump_msymbols, dump_symtab_1)
11237 (maintenance_print_one_line_table): Update.
11238 * symfile.c (init_entry_point_info, section_is_mapped)
11239 (list_overlays_command, simple_read_overlay_table)
11240 (simple_overlay_update_1): Update.
11241 * stap-probe.c (handle_stap_probe): Update.
11242 * stabsread.c (dbx_init_float_type, define_symbol)
11243 (read_one_struct_field, read_enum_type, read_range_type): Update.
11244 * source.c (info_line_command): Update.
11245 * python/python.c (gdbpy_source_objfile_script)
11246 (gdbpy_execute_objfile_script): Update.
11247 * python/py-type.c (save_objfile_types): Update.
11248 * python/py-objfile.c (py_free_objfile): Update.
11249 * python/py-inferior.c (python_new_objfile): Update.
11250 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
11251 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
11252 (maintenance_check_psymtabs): Update.
11253 * printcmd.c (info_address_command): Update.
11254 * objfiles.h (struct objfile) <arch>: New method, from
11255 get_objfile_arch.
11256 (get_objfile_arch): Don't declare.
11257 * objfiles.c (get_objfile_arch): Remove.
11258 (filter_overlapping_sections): Update.
11259 * minsyms.c (msymbol_is_function): Update.
11260 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
11261 (output_nondebug_symbol): Update.
11262 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
11263 (mdebug_expand_psymtab): Update.
11264 * machoread.c (macho_add_oso_symfile): Update.
11265 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
11266 Update.
11267 * linux-fork.c (checkpoint_command): Update.
11268 * linespec.c (convert_linespec_to_sals): Update.
11269 * jit.c (finalize_symtab): Update.
11270 * infrun.c (insert_exception_resume_from_probe): Update.
11271 * ia64-tdep.c (ia64_find_unwind_table): Update.
11272 * hppa-tdep.c (internalize_unwinds): Update.
11273 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
11274 Update.
11275 * gcore.c (call_target_sbrk): Update.
11276 * elfread.c (record_minimal_symbol, elf_symtab_read)
11277 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
11278 (elf_gnu_ifunc_resolve_by_got): Update.
11279 * dwarf2/read.c (create_addrmap_from_index)
11280 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11281 (read_debug_names_from_section)
11282 (process_psymtab_comp_unit_reader, add_partial_symbol)
11283 (add_partial_subprogram, process_full_comp_unit)
11284 (read_file_scope, read_func_scope, read_lexical_block_scope)
11285 (read_call_site_scope, dwarf2_ranges_read)
11286 (dwarf2_record_block_ranges, dwarf2_add_field)
11287 (mark_common_block_symbol_computed, read_tag_pointer_type)
11288 (read_tag_string_type, dwarf2_init_float_type)
11289 (dwarf2_init_complex_target_type, read_base_type)
11290 (partial_die_info::read, partial_die_info::read)
11291 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
11292 (dwarf2_fetch_die_loc_sect_off): Update.
11293 * dwarf2/loc.c (dwarf2_find_location_expression)
11294 (class dwarf_evaluate_loc_desc, rw_pieced_value)
11295 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
11296 (dwarf2_loc_desc_get_symbol_read_needs)
11297 (locexpr_describe_location_piece, locexpr_describe_location_1)
11298 (loclist_describe_location): Update.
11299 * dwarf2/index-write.c (write_debug_names): Update.
11300 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
11301 * dtrace-probe.c (dtrace_process_dof): Update.
11302 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
11303 (process_one_symbol): Update.
11304 * ctfread.c (ctf_init_float_type, read_base_type): Update.
11305 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
11306 (coff_read_enum_type): Update.
11307 * cli/cli-cmds.c (edit_command, list_command): Update.
11308 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
11309 * breakpoint.c (create_overlay_event_breakpoint)
11310 (create_longjmp_master_breakpoint)
11311 (create_std_terminate_master_breakpoint)
11312 (create_exception_master_breakpoint, get_sal_arch): Update.
11313 * block.c (block_gdbarch): Update.
11314 * annotate.c (annotate_source_line): Update.
11315
0743fc83
TT
113162020-04-17 Tom Tromey <tromey@adacore.com>
11317
11318 * auto-load.c (show_auto_load_cmd): Remove.
11319 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
11320 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
11321 (maintenance_print_arc_command): Remove.
11322 * tui/tui-win.c (tui_command): Remove.
11323 (tui_get_cmd_list): Use add_basic_prefix_cmd.
11324 * tui/tui-layout.c (tui_layout_command): Remove.
11325 (_initialize_tui_layout): Use add_basic_prefix_cmd.
11326 * python/python.c (user_set_python, user_show_python): Remove.
11327 (_initialize_python): Use add_basic_prefix_cmd,
11328 add_show_prefix_cmd.
11329 * guile/guile.c (set_guile_command, show_guile_command): Remove.
11330 (install_gdb_commands): Use add_basic_prefix_cmd,
11331 add_show_prefix_cmd.
11332 (info_guile_command): Remove.
11333 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
11334 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
11335 add_show_prefix_cmd.
11336 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
11337 Remove do_set and do_show parameters.
11338 * cli/cli-style.c (set_style, show_style): Remove.
11339 (_initialize_cli_style): Use add_basic_prefix_cmd,
11340 add_show_prefix_cmd.
11341 (cli_style_option::add_setshow_commands): Remove do_set and
11342 do_show parameters.
11343 (cli_style_option::add_setshow_commands): Use
11344 add_basic_prefix_cmd, add_show_prefix_cmd.
11345 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
11346 (set_style_name): Remove.
11347 * cli/cli-dump.c (dump_command, append_command): Remove.
11348 (srec_dump_command, ihex_dump_command, verilog_dump_command)
11349 (tekhex_dump_command, binary_dump_command)
11350 (binary_append_command): Remove.
11351 (_initialize_cli_dump): Use add_basic_prefix_cmd.
11352 * windows-tdep.c (w32_prefix_command_valid): Remove global.
11353 (init_w32_command_list): Remove; move into ...
11354 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
11355 * valprint.c (set_print, show_print, set_print_raw)
11356 (show_print_raw): Remove.
11357 (_initialize_valprint): Use add_basic_prefix_cmd,
11358 add_show_prefix_cmd.
11359 * typeprint.c (set_print_type, show_print_type): Remove.
11360 (_initialize_typeprint): Use add_basic_prefix_cmd,
11361 add_show_prefix_cmd.
11362 * record.c (set_record_command, show_record_command): Remove.
11363 (_initialize_record): Use add_basic_prefix_cmd,
11364 add_show_prefix_cmd.
11365 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
11366 add_show_prefix_cmd.
11367 (info_command, show_command, set_debug, show_debug): Remove.
11368 * top.h (set_history, show_history): Don't declare.
11369 * top.c (set_history, show_history): Remove.
11370 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
11371 (unset_tdesc_cmd): Remove.
11372 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
11373 add_show_prefix_cmd.
11374 * symtab.c (info_module_command): Remove.
11375 (_initialize_symtab): Use add_basic_prefix_cmd.
11376 * symfile.c (overlay_command): Remove.
11377 (_initialize_symfile): Use add_basic_prefix_cmd.
11378 * sparc64-tdep.c (info_adi_command): Remove.
11379 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
11380 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
11381 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
11382 add_show_prefix_cmd.
11383 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
11384 (_initialize_serial): Use add_basic_prefix_cmd,
11385 add_show_prefix_cmd.
11386 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
11387 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
11388 add_show_prefix_cmd.
11389 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
11390 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
11391 add_show_prefix_cmd.
11392 * riscv-tdep.c (show_riscv_command, set_riscv_command)
11393 (show_debug_riscv_command, set_debug_riscv_command): Remove.
11394 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
11395 add_show_prefix_cmd.
11396 * remote.c (remote_command, set_remote_cmd): Remove.
11397 (_initialize_remote): Use add_basic_prefix_cmd.
11398 * record-full.c (set_record_full_command)
11399 (show_record_full_command): Remove.
11400 (_initialize_record_full): Use add_basic_prefix_cmd,
11401 add_show_prefix_cmd.
11402 * record-btrace.c (cmd_set_record_btrace)
11403 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
11404 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
11405 (cmd_show_record_btrace_pt): Remove.
11406 (_initialize_record_btrace): Use add_basic_prefix_cmd,
11407 add_show_prefix_cmd.
11408 * ravenscar-thread.c (set_ravenscar_command)
11409 (show_ravenscar_command): Remove.
11410 (_initialize_ravenscar): Use add_basic_prefix_cmd,
11411 add_show_prefix_cmd.
11412 * mips-tdep.c (show_mips_command, set_mips_command)
11413 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
11414 add_show_prefix_cmd.
11415 * maint.c (maintenance_command, maintenance_info_command)
11416 (maintenance_check_command, maintenance_print_command)
11417 (maintenance_set_cmd, maintenance_show_cmd): Remove.
11418 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
11419 add_show_prefix_cmd.
11420 (show_per_command_cmd): Remove.
11421 * maint-test-settings.c (maintenance_set_test_settings_cmd):
11422 Remove.
11423 (maintenance_show_test_settings_cmd): Remove.
11424 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
11425 add_show_prefix_cmd.
11426 * maint-test-options.c (maintenance_test_options_command):
11427 Remove.
11428 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
11429 * macrocmd.c (macro_command): Remove
11430 (_initialize_macrocmd): Use add_basic_prefix_cmd.
11431 * language.c (set_check, show_check): Remove.
11432 (_initialize_language): Use add_basic_prefix_cmd,
11433 add_show_prefix_cmd.
11434 * infcmd.c (unset_command): Remove.
11435 (_initialize_infcmd): Use add_basic_prefix_cmd.
11436 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
11437 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
11438 add_show_prefix_cmd.
11439 * go32-nat.c (go32_info_dos_command): Remove.
11440 (_initialize_go32_nat): Use add_basic_prefix_cmd.
11441 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
11442 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
11443 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
11444 (_initialize_frame): Use add_basic_prefix_cmd,
11445 add_show_prefix_cmd.
11446 * dcache.c (set_dcache_command, show_dcache_command): Remove.
11447 (_initialize_dcache): Use add_basic_prefix_cmd,
11448 add_show_prefix_cmd.
11449 * cp-support.c (maint_cplus_command): Remove.
11450 (_initialize_cp_support): Use add_basic_prefix_cmd.
11451 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
11452 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
11453 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
11454 add_basic_prefix_cmd, add_show_prefix_cmd.
11455 * breakpoint.c (save_command): Remove.
11456 (_initialize_breakpoint): Use add_basic_prefix_cmd.
11457 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
11458 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
11459 add_show_prefix_cmd.
11460 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
11461 (set_ada_command, show_ada_command): Remove.
11462 (_initialize_ada_language): Use add_basic_prefix_cmd,
11463 add_show_prefix_cmd.
11464 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
11465
3557f442
KR
114662020-04-16 Kamil Rytarowski <n54@gmx.com>
11467
11468 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
11469 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
11470
16197208
SM
114712020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11472
11473 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
11474 warning messages.
11475
00ac85d3
SM
114762020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11477
11478 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
11479 import table is not at beginning of .idata section.
11480
381ce63f
PA
114812020-04-16 Pedro Alves <palves@redhat.com>
11482
11483 * inferior.c (delete_inferior): Use delete operator directly
11484 instead of delete_program_space.
11485 * progspace.c (add_program_space): New, factored out from
11486 program_space::program_space.
11487 (remove_program_space): New, factored out from
11488 delete_program_space.
11489 (program_space::program_space): Remove intro comment. Rewrite.
11490 (program_space::~program_space): Remove intro comment. Call
11491 remove_program_space.
11492 (delete_program_space): Delete.
11493 * progspace.h (program_space::program_space): Make explicit. Move
11494 intro comment here, adjusted.
11495 (program_space::~program_space): Move intro comment here,
11496 adjusted.
11497 (delete_program_space): Remove.
11498
a010605f
TT
114992020-04-16 Tom Tromey <tromey@adacore.com>
11500
11501 * windows-nat.c (windows_nat::handle_access_violation): New
11502 function.
11503 * nat/windows-nat.h (handle_access_violation): Declare.
11504 * nat/windows-nat.c (handle_exception): Move Cygwin code to
11505 windows-nat.c. Call handle_access_violation.
11506
efba5c23
TV
115072020-04-16 Tom de Vries <tdevries@suse.de>
11508
11509 PR symtab/25791
11510 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
11511 CUs without psymtab.
11512
97ed802d
KB
115132020-04-16 Kevin Buettner <kevinb@redhat.com>
11514
11515 * python/python.c (do_start_initialization): Don't call
11516 PyEval_InitThreads for Python 3.9 and beyond.
11517
c7d64809
KR
115182020-04-15 Kamil Rytarowski <n54@gmx.com>
11519
11520 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
11521 thread functions.
11522 (obsd_nat_target::wait): Likewise.
11523
ce127a96
TT
115242020-04-15 Tom Tromey <tromey@adacore.com>
11525
11526 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
11527 (DEBUG_EXCEPT): Use debug_printf.
11528
99f1bc6a
AB
115292020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
11530
11531 * completer.c (class completion_tracker::completion_hash_entry)
11532 <hash_name>: New member function.
11533 (completion_tracker::discard_completions): New callback to hash a
11534 completion_hash_entry, pass this to htab_create_alloc.
11535
a0e9b532
JT
115362016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
11537
11538 * windows-nat.c (windows_make_so): Warn rather than stopping with
11539 an error if realpath() fails.
11540
06ca5dd4
KR
115412020-04-14 Kamil Rytarowski <n54@gmx.com>
11542
11543 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
11544 (nbsd_nat_target::info_proc): Add do_status.
11545
194d088f
TV
115462020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
11547 Tom de Vries <tdevries@suse.de>
11548
11549 PR symtab/25718
11550 * psympriv.h (struct partial_symtab::read_symtab)
11551 (struct partial_symtab::expand_psymtab)
11552 (struct partial_symtab::read_dependencies): Update comments.
11553 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
11554 read_symtab for includer.
11555 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
11556 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
11557 (struct dwarf2_include_psymtab::m_readin): Remove.
11558 (struct dwarf2_include_psymtab::includer): New member function.
11559 (dwarf2_psymtab::expand_psymtab): Assert !readin.
11560
c1a66c06
TV
115612020-04-14 Tom de Vries <tdevries@suse.de>
11562
11563 PR symtab/25720
11564 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
11565 with NULL symbol_matcher and lookup_name.
11566 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
11567 and lookup_name.
11568 * dwarf2/read.c (dw2_expand_symtabs_matching)
11569 (dw2_debug_names_expand_symtabs_matching): Same.
11570 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
11571 Make lookup_name a pointer. Update comment.
11572 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
11573 lookup_name being a pointer.
11574 * symfile.c (expand_symtabs_matching): Same.
11575 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
11576 * linespec.c (iterate_over_all_matching_symtabs): Same.
11577
400b5eca
TT
115782020-04-13 Tom Tromey <tom@tromey.com>
11579
11580 * run-on-main-thread.c: Update include.
11581 * unittests/main-thread-selftests.c: Update include.
11582 * tui/tui-win.c: Update include.
11583 * tui/tui-io.c: Update include.
11584 * tui/tui-interp.c: Update include.
11585 * tui/tui-hooks.c: Update include.
11586 * top.h: Update include.
11587 * top.c: Update include.
11588 * ser-base.c: Update include.
11589 * remote.c: Update include.
11590 * remote-notif.c: Update include.
11591 * remote-fileio.c: Update include.
11592 * record-full.c: Update include.
11593 * record-btrace.c: Update include.
11594 * python/python.c: Update include.
11595 * posix-hdep.c: Update include.
11596 * mingw-hdep.c: Update include.
11597 * mi/mi-main.c: Update include.
11598 * mi/mi-interp.c: Update include.
11599 * main.c: Update include.
11600 * linux-nat.c: Update include.
11601 * interps.c: Update include.
11602 * infrun.c: Update include.
11603 * inf-loop.c: Update include.
11604 * event-top.c: Update include.
11605 * event-loop.c: Move to ../gdbsupport/.
11606 * event-loop.h: Move to ../gdbsupport/.
11607 * async-event.h: Update include.
11608 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
11609
93b54c8e
TT
116102020-04-13 Tom Tromey <tom@tromey.com>
11611
11612 * tui/tui-win.c: Include async-event.h.
11613 * remote.c: Include async-event.h.
11614 * remote-notif.c: Include async-event.h.
11615 * record-full.c: Include async-event.h.
11616 * record-btrace.c: Include async-event.h.
11617 * infrun.c: Include async-event.h.
11618 * event-top.c: Include async-event.h.
11619 * event-loop.h: Move some declarations to async-event.h.
11620 * event-loop.c: Don't include ser-event.h or top.h. Move some
11621 code to async-event.c.
11622 * async-event.h: New file.
11623 * async-event.c: New file.
11624 * Makefile.in (COMMON_SFILES): Add async-event.c.
11625 (HFILES_NO_SRCDIR): Add async-event.h.
11626
c1cd3163
TT
116272020-04-13 Tom Tromey <tom@tromey.com>
11628
11629 * utils.c (flush_streams): New function.
11630 * event-loop.c (gdb_wait_for_event): Call flush_streams.
11631
29f2bf4f
TT
116322020-04-13 Tom Tromey <tom@tromey.com>
11633
11634 * event-loop.c (handle_file_event): Use warning, not
11635 printf_unfiltered.
11636
98029d02
TT
116372020-04-13 Tom Tromey <tom@tromey.com>
11638
11639 * event-loop.c: Include <chrono>.
11640
06cc9596
TT
116412020-04-13 Tom Tromey <tom@tromey.com>
11642
11643 * gdb_select.h: Move to ../gdbsupport/.
11644 * event-loop.c: Update include path.
11645 * top.c: Update include path.
11646 * ser-base.c: Update include path.
11647 * ui-file.c: Update include path.
11648 * ser-tcp.c: Update include path.
11649 * guile/scm-ports.c: Update include path.
11650 * posix-hdep.c: Update include path.
11651 * ser-unix.c: Update include path.
11652 * gdb_usleep.c: Update include path.
11653 * mingw-hdep.c: Update include path.
11654 * inflow.c: Update include path.
11655 * infrun.c: Update include path.
11656 * event-top.c: Update include path.
11657
8ae8e197
TT
116582020-04-13 Tom Tromey <tom@tromey.com>
11659
11660 * configure: Rebuild.
11661 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
11662
58cf28e8
TT
116632020-04-13 Tom Tromey <tom@tromey.com>
11664
11665 * event-loop.h (start_event_loop): Don't declare.
11666 * event-loop.c (start_event_loop): Move...
11667 * main.c (start_event_loop): ...here. Now static.
11668
b7f999ae
SDJ
116692020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
11670
11671 * MAINTAINERS: Update my email address.
11672
1085dfd4
KR
116732020-04-12 Kamil Rytarowski <n54@gmx.com>
11674
11675 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
11676 IP_ALL.
11677
49d1d1f5
KR
116782020-04-12 Kamil Rytarowski <n54@gmx.com>
11679
11680 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 11681 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 11682
b4848d2a
KR
116832020-04-12 Kamil Rytarowski <n54@gmx.com>
11684
11685 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 11686 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 11687
51c133d5
KR
116882020-04-12 Kamil Rytarowski <n54@gmx.com>
11689
11690 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
11691
54b8cbd0
KR
116922020-04-11 Kamil Rytarowski <n54@gmx.com>
11693
11694 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
11695 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
11696 (nbsd_nat_target::info_proc): New functions.
11697 * nbsd-nat.c (kinfo_get_vmmap): New function.
11698 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
11699 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
11700 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
11701 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
11702 functions.
11703 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
11704 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
11705 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
11706 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
11707 (KINFO_VME_FLAG_GROWS_DOWN): New.
11708
cf83625d
AS
117092020-04-10 Artur Shepilko <nomadbyte@gmail.com>
11710
11711 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
11712 bit shift.
11713
0c4311ab
TT
117142020-04-10 Tom Tromey <tromey@adacore.com>
11715
11716 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
11717
3e65b3e9
TT
117182020-04-10 Tom Tromey <tromey@adacore.com>
11719
11720 * symtab.c (get_symbol_address, get_msymbol_address): Skip
11721 separate debug files.
11722
13302e95
HD
117232020-04-10 Hannes Domani <ssbssa@yahoo.de>
11724
11725 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11726 Move to...
11727 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11728 ... here.
11729 * windows-nat.c (windows_nat_target::get_windows_debug_event):
11730 Check for STATUS_WX86_BREAKPOINT.
11731 (windows_nat_target::wait): Same.
11732
bdfc1e8a
TV
117332020-04-10 Tom de Vries <tdevries@suse.de>
11734
11735 PR cli/25808
11736 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
11737
f4460aec
SM
117382020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11739
11740 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
11741 (Write After Approval): Remove Tom de Vries.
11742
a25198bb
BE
117432020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
11744
11745 revert partially:
11746 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11747
aac66a4c
SM
11748 * buildsym.c (record_line): Fix undefined behavior and preserve
11749 lines at eof.
a25198bb 11750
206c98a6
KR
117512020-04-09 Kamil Rytarowski <n54@gmx.com>
11752
11753 * auxv.h (svr4_auxv_parse): New.
11754 * auxv.c (default_auxv_parse): Split into default_auxv_parse
11755 and generic_auxv_parse.
11756 (svr4_auxv_parse): Add.
11757 * obsd-tdep.c: Include "auxv.h".
11758 (obsd_auxv_parse): Remove.
11759 (obsd_init_abi): Remove comment.
11760 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
11761 from `obsd_auxv_parse' to `svr4_auxv_parse'.
11762 * nbsd-tdep.c: Include "auxv.h".
11763 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
11764
71fbdbaf
TT
117652020-04-08 Tom Tromey <tromey@adacore.com>
11766
11767 * nat/windows-nat.h (last_wait_event): Don't declare.
11768 (wait_for_debug_event): Update comment.
11769 * nat/windows-nat.c (last_wait_event): Now static.
11770
2c1d95e8
TT
117712020-04-08 Tom Tromey <tromey@adacore.com>
11772
11773 * windows-nat.c (wait_for_debug_event): Move to
11774 nat/windows-nat.c.
11775 * nat/windows-nat.h (wait_for_debug_event): Declare.
11776 * nat/windows-nat.c (wait_for_debug_event): Move from
11777 windows-nat.c. No longer static.
11778
d2977bc4
TT
117792020-04-08 Tom Tromey <tromey@adacore.com>
11780
11781 * windows-nat.c (get_windows_debug_event): Use
11782 fetch_pending_stop.
11783 * nat/windows-nat.h (fetch_pending_stop): Declare.
11784 * nat/windows-nat.c (fetch_pending_stop): New function.
11785
e758e19c
TT
117862020-04-08 Tom Tromey <tromey@adacore.com>
11787
11788 * windows-nat.c (windows_continue): Use matching_pending_stop and
11789 continue_last_debug_event.
11790 * nat/windows-nat.h (matching_pending_stop)
11791 (continue_last_debug_event): Declare.
11792 * nat/windows-nat.c (DEBUG_EVENTS): New define.
11793 (matching_pending_stop, continue_last_debug_event): New
11794 functions.
11795
8d30e395
TT
117962020-04-08 Tom Tromey <tromey@adacore.com>
11797
11798 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
11799 (handle_exception_result): Move to nat/windows-nat.h.
11800 (DEBUG_EXCEPTION_SIMPLE): Remove.
11801 (windows_nat::handle_ms_vc_exception): New function.
11802 (handle_exception): Move to nat/windows-nat.c.
11803 (get_windows_debug_event): Update.
11804 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
11805 nat/windows-nat.c.
11806 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
11807 (handle_exception_result): Move from windows-nat.c.
11808 (handle_exception): Declare.
11809 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
11810 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
11811 windows-nat.c.
11812
29de418d
TT
118132020-04-08 Tom Tromey <tromey@adacore.com>
11814
11815 * windows-nat.c (exception_count, event_count): Remove.
11816 (handle_exception, get_windows_debug_event)
11817 (do_initial_windows_stuff): Update.
11818
a816ba18
TT
118192020-04-08 Tom Tromey <tromey@adacore.com>
11820
11821 * windows-nat.c (windows_nat::handle_load_dll)
11822 (windows_nat::handle_unload_dll): Rename. No longer static.
11823 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
11824 Declare.
11825
a00caa12
TT
118262020-04-08 Tom Tromey <tromey@adacore.com>
11827
11828 * complaints.h (stop_whining): Declare at top-level.
11829 (complaint): Don't declare stop_whining.
11830
d41b524f
TT
118312020-04-08 Tom Tromey <tromey@adacore.com>
11832
11833 * windows-nat.c (windows_nat::handle_output_debug_string):
11834 Rename. No longer static.
11835 * nat/windows-nat.h (handle_output_debug_string): Declare.
11836
3c76026d
TT
118372020-04-08 Tom Tromey <tromey@adacore.com>
11838
11839 * windows-nat.c (current_process_handle, current_process_id)
11840 (main_thread_id, last_sig, current_event, last_wait_event)
11841 (current_windows_thread, desired_stop_thread_id, pending_stops)
11842 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
11843 (display_selectors, fake_create_process)
11844 (get_windows_debug_event): Update.
11845 * nat/windows-nat.h (current_process_handle, current_process_id)
11846 (main_thread_id, last_sig, current_event, last_wait_event)
11847 (current_windows_thread, desired_stop_thread_id, pending_stops)
11848 (struct pending_stop, siginfo_er): Move from windows-nat.c.
11849 * nat/windows-nat.c (current_process_handle, current_process_id)
11850 (main_thread_id, last_sig, current_event, last_wait_event)
11851 (current_windows_thread, desired_stop_thread_id, pending_stops)
11852 (siginfo_er): New globals. Move from windows-nat.c.
11853
9d8679cc
TT
118542020-04-08 Tom Tromey <tromey@adacore.com>
11855
11856 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
11857 (handle_load_dll): Update.
11858 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
11859
28688adf
TT
118602020-04-08 Tom Tromey <tromey@adacore.com>
11861
11862 * windows-nat.c (enum thread_disposition_type): Move to
11863 nat/windows-nat.h.
11864 (windows_nat::thread_rec): Rename from thread_rec. No longer
11865 static.
11866 (windows_add_thread, windows_nat_target::fetch_registers)
11867 (windows_nat_target::store_registers, handle_exception)
11868 (windows_nat_target::resume, get_windows_debug_event)
11869 (windows_nat_target::get_tib_address)
11870 (windows_nat_target::thread_name)
11871 (windows_nat_target::thread_alive): Update.
11872 * nat/windows-nat.h (enum thread_disposition_type): Move from
11873 windows-nat.c.
11874 (thread_rec): Declare.
11875
4834dad0
TT
118762020-04-08 Tom Tromey <tromey@adacore.com>
11877
11878 * windows-nat.c: Add "using namespace".
11879 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
11880 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
11881
65bafd5b
TT
118822020-04-08 Tom Tromey <tromey@adacore.com>
11883
11884 * nat/windows-nat.h (struct windows_thread_info): Declare
11885 destructor.
11886 * nat/windows-nat.c (~windows_thread_info): New.
11887
0a4afda3
TT
118882020-04-08 Tom Tromey <tromey@adacore.com>
11889
11890 PR gdb/22992
11891 * windows-nat.c (current_event): Update comment.
11892 (last_wait_event, desired_stop_thread_id): New globals.
11893 (struct pending_stop): New.
11894 (pending_stops): New global.
11895 (windows_nat_target) <stopped_by_sw_breakpoint>
11896 <supports_stopped_by_sw_breakpoint>: New methods.
11897 (windows_fetch_one_register): Add assertions. Adjust PC.
11898 (windows_continue): Handle pending stops. Suspend other threads
11899 when stepping. Use last_wait_event
11900 (wait_for_debug_event): New function.
11901 (get_windows_debug_event): Use wait_for_debug_event. Handle
11902 pending stops. Queue spurious stops.
11903 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
11904 (windows_nat_target::kill): Use wait_for_debug_event.
11905 * nat/windows-nat.h (struct windows_thread_info)
11906 <stopped_at_software_breakpoint>: New field.
11907 * nat/windows-nat.c (windows_thread_info::resume): Clear
11908 stopped_at_software_breakpoint.
11909
8e61ebec
TT
119102020-04-08 Tom Tromey <tromey@adacore.com>
11911
11912 * windows-nat.c (enum thread_disposition_type): New.
11913 (thread_rec): Replace "get_context" parameter with "disposition";
11914 change type.
11915 (windows_add_thread, windows_nat_target::fetch_registers)
11916 (windows_nat_target::store_registers, handle_exception)
11917 (windows_nat_target::resume, get_windows_debug_event)
11918 (windows_nat_target::get_tib_address)
11919 (windows_nat_target::thread_name)
11920 (windows_nat_target::thread_alive): Update.
11921
98a03287
TT
119222020-04-08 Tom Tromey <tromey@adacore.com>
11923
11924 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
11925 (windows_continue): Use windows_continue::resume.
11926 * nat/windows-nat.h (struct windows_thread_info) <suspend,
11927 resume>: Declare new methods.
11928 * nat/windows-nat.c: New file.
11929 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
11930
7c7411bc
TT
119312020-04-08 Tom Tromey <tromey@adacore.com>
11932
11933 * windows-nat.c (windows_add_thread, windows_delete_thread)
11934 (windows_nat_target::fetch_registers)
11935 (windows_nat_target::store_registers, fake_create_process)
11936 (windows_nat_target::resume, windows_nat_target::resume)
11937 (get_windows_debug_event, windows_nat_target::wait)
11938 (windows_nat_target::pid_to_str)
11939 (windows_nat_target::get_tib_address)
11940 (windows_nat_target::get_ada_task_ptid)
11941 (windows_nat_target::thread_name)
11942 (windows_nat_target::thread_alive): Use lwp, not tid.
11943
2950fdf7
TT
119442020-04-08 Tom Tromey <tromey@adacore.com>
11945
11946 * windows-nat.c (handle_exception)
11947 (windows_nat_target::thread_name): Update.
11948 * nat/windows-nat.h (windows_thread_info): Remove destructor.
11949 <name>: Now unique_xmalloc_ptr.
11950
62fe396b
TT
119512020-04-08 Tom Tromey <tromey@adacore.com>
11952
11953 * windows-nat.c (thread_rec)
11954 (windows_nat_target::fetch_registers): Update.
11955 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
11956 Update comment.
11957 <debug_registers_changed, reload_context>: Now bool.
11958
e9534bd2
TT
119592020-04-08 Tom Tromey <tromey@adacore.com>
11960
11961 * windows-nat.c (windows_add_thread): Use new.
11962 (windows_init_thread_list, windows_delete_thread): Use delete.
11963 (get_windows_debug_event): Update.
11964 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
11965 destructor, and initializers.
11966
ae1f8880
TT
119672020-04-08 Tom Tromey <tromey@adacore.com>
11968
11969 * windows-nat.c (struct windows_thread_info): Remove.
11970 * nat/windows-nat.h: New file.
11971
55a1e039
TT
119722020-04-08 Tom Tromey <tromey@adacore.com>
11973
11974 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
11975 (thread_rec, windows_add_thread, windows_delete_thread)
11976 (windows_continue): Update.
11977
93366324
TT
119782020-04-08 Tom Tromey <tromey@adacore.com>
11979
11980 * windows-nat.c (struct windows_thread_info): Remove typedef.
11981 (thread_head): Remove.
11982 (thread_list): New global.
11983 (thread_rec, windows_add_thread, windows_init_thread_list)
11984 (windows_delete_thread, windows_continue): Update.
11985
0f2265e2
SM
119862020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
11987
11988 * windows-tdep.h (windows_init_abi): Add comment.
11989 (cygwin_init_abi): New declaration.
11990 * windows-tdep.c: Split signal enumeration in two, one for
11991 Windows and one for Cygwin.
11992 (windows_gdb_signal_to_target): Only deal with signal of the
11993 Windows OS ABI.
11994 (cygwin_gdb_signal_to_target): New function.
11995 (windows_init_abi): Rename to windows_init_abi_common, don't set
11996 gdb_signal_to_target gdbarch method. Add new new function with
11997 this name.
11998 (cygwin_init_abi): New function.
11999 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
12000 comment. Don't call windows_init_abi.
12001 (amd64_windows_init_abi): Add comment, call windows_init_abi.
12002 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
12003 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
12004 i386_windows_init_abi_common, don't call windows_init_abi. Add
12005 a new function of this name.
12006 (i386_cygwin_init_abi): New function.
12007 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
12008 OS ABI Cygwin.
12009
3810f182
SM
120102020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12011
12012 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
12013 parameter.c.
12014 (dwarf2_read_gdb_index): Update.
12015
063f8e80
KR
120162020-04-07 Kamil Rytarowski <n54@gmx.com>
12017
12018 * nbsd-tdep.c: Include "objfiles.h".
12019 (nbsd_skip_solib_resolver): New.
12020 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
12021
85a9510c 120222020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12023
12024 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
12025 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
12026 with DW_LLE_base_addressx are being emitted in DWARFv5.
12027 Add the newly added kind DW_LOC_OFFSET_PAIR also.
12028 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
12029 unsigned integer.
12030
9fc3eaae 120312020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12032
12033 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
12034 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
12035 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
12036 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
12037 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
12038 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
12039 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
12040
12041
41144253 120422020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12043
12044 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
12045 (read_loclist_index): New function definition.
12046 (lookup_loclist_base): New function definition.
12047 (read_loclist_header): New function definition.
12048 (dwarf2_cu): Add loclist_base and loclist_header field.
12049 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
12050 (read_full_die_1): Read the value of DW_AT_loclists_base.
12051 (read_attribute_reprocess): Handle DW_FORM_loclistx.
12052 (read_attribute_value): Handle DW_FORM_loclistx.
12053 (skip_one_die): Handle DW_FORM_loclistx.
12054 (loclist_header): New structure declaration.
12055 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
12056
9f4e76a4
SM
120572020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12058
12059 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
12060 constructor. Remove `addr` parameter from other constructor and
12061 add `per_cu` parameter.
12062 * dwarf2/read.c (create_partial_symtab): Update.
12063
25c11aca
TV
120642020-04-07 Tom de Vries <tdevries@suse.de>
12065
12066 PR symtab/25796
12067 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
12068 (partial_die_info::fixup): Inherit has_const_value.
12069
5707e24b
TV
120702020-04-07 Tom de Vries <tdevries@suse.de>
12071
12072 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
12073 symbols without address.
12074
05f00e22
KR
120752020-04-06 Kamil Rytarowski <n54@gmx.com>
12076
12077 * nbsd-nat.h (struct thread_info): Add forward declaration.
12078 (nbsd_nat_target::thread_alive): Add.
12079 (nbsd_nat_target::thread_name): Likewise.
12080 (nbsd_nat_target::update_thread_list): Likewise.
12081 (update_thread_list::post_attach): Likewise.
12082 (post_attach::pid_to_str): Likewise.
12083 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
12084 (nbsd_thread_lister): Add.
12085 (nbsd_nat_target::thread_alive): Likewise.
12086 (nbsd_nat_target::thread_name): Likewise.
12087 (nbsd_add_threads): Likewise.
12088 (update_thread_list::post_attach): Likewise.
12089 (nbsd_nat_target::update_thread_list): Likewise.
12090 (post_attach::pid_to_str): Likewise.
12091
6ee448cc
TT
120922020-04-06 Tom Tromey <tromey@adacore.com>
12093
12094 * ada-valprint.c (print_variant_part): Extract the variant field.
12095 (print_field_values): Use the field as the outer value when
12096 recursing.
12097
dea34e8c
TT
120982020-04-06 Tom Tromey <tromey@adacore.com>
12099
12100 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
12101 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
12102 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
12103 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
12104 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
12105
93689ce9
TT
121062020-04-06 Tom Tromey <tromey@adacore.com>
12107
12108 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
12109 TYPE_CODE_ERROR.
12110
79743962
KR
121112020-04-06 Kamil Rytarowski <n54@gmx.com>
12112
12113 * nbsd-tdep.c: Include "gdbarch.h".
12114 Define enum with NetBSD signal numbers.
12115 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
12116 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
12117 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
12118 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
12119 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
12120 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
12121 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
12122 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12123 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
12124 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
12125 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
12126 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
12127
9e7c9a03
HD
121282020-04-03 Hannes Domani <ssbssa@yahoo.de>
12129
12130 PR gdb/25325
12131 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
12132
d9e49b61
TT
121332020-04-03 Tom Tromey <tromey@adacore.com>
12134
12135 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
12136 Read constant block.
12137
e0fc5c3f
SM
121382020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12139
12140 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
12141 (gdb_bfd_get_full_section_contents): New declaration.
12142 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
12143 * windows-tdep.c (is_linked_with_cygwin_dll): Use
12144 gdb_bfd_get_full_section_contents.
12145
e2ff18a0
SM
121462020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12147
12148 * exec.c (build_section_table): Replace internal_error with
12149 gdb_assert.
12150 (section_table_xfer_memory_partial): Likewise.
12151 * mdebugread.c (parse_partial_symbols): Likewise.
12152 * psymtab.c (lookup_partial_symbol): Likewise.
12153 * utils.c (wrap_here): Likewise.
12154
0830d301
TT
121552020-04-02 Tom Tromey <tromey@adacore.com>
12156
12157 * f-lang.c (build_fortran_types): Use arch_type to initialize
12158 builtin_complex_s32 in the TYPE_CODE_ERROR case.
12159
e7da7f8f
TT
121602020-04-02 Tom Tromey <tromey@adacore.com>
12161
12162 * dwarf2/read.c (partial_die_info::read): Do not create a vector
12163 of attributes.
12164
c90d28ac
AB
121652020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
12166 Bernd Edlinger <bernd.edlinger@hotmail.de>
12167 Tom Tromey <tromey@adacore.com>
12168
12169 * buildsym.c (buildsym_compunit::record_line): Remove
12170 deduplication code.
12171
1aa98955
TV
121722020-04-02 Tom de Vries <tdevries@suse.de>
12173
12174 PR ada/24671
12175 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
12176
d3214198
TV
121772020-04-02 Tom de Vries <tdevries@suse.de>
12178
12179 * dwarf2/read.c (dwarf2_gdb_index_functions,
12180 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
12181 NULL.
12182 * psymtab.c (psym_lookup_global_symbol_language): New function.
12183 (psym_functions): Init psym_lookup_global_symbol_language with
12184 psym_lookup_global_symbol_language.
12185 * symfile-debug.c (debug_sym_quick_functions): Init
12186 lookup_global_symbol_language with NULL.
12187 * symfile.c (set_initial_language): Remove fixme comment.
12188 * symfile.h (struct quick_symbol_functions): Add
12189 lookup_global_symbol_language.
12190 * symtab.c (find_quick_global_symbol_language): New function.
12191 (find_main_name): Use find_quick_global_symbol_language.
12192
2836752f
SM
121932020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
12194
12195 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
12196
64dc2d4b
BE
121972020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12198
12199 * buildsym.c (record_line): Fix undefined behavior and preserve
12200 lines at eof.
12201
bbe3dc41
BE
122022020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12203
12204 * buildsym.c (record_line): Fix the resizing condition.
12205
6b4a335b
TT
122062020-04-01 Tom Tromey <tom@tromey.com>
12207
12208 * value.h (value_literal_complex): Add comment.
12209 * valops.c (value_literal_complex): Refer to value.h.
12210
3638a098
TT
122112020-04-01 Tom Tromey <tom@tromey.com>
12212
12213 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
12214 (scalar_type): New rule, from typebase.
12215 (typebase): Use scalar_type. Recognize complex types.
12216 (field_name): Handle FLOAT_KEYWORD.
12217 (ident_tokens): Add _Complex and __complex__.
12218
c34e8714
TT
122192020-04-01 Tom Tromey <tom@tromey.com>
12220
12221 PR exp/25299:
12222 * valarith.c (promotion_type, complex_binop): New functions.
12223 (scalar_binop): Handle complex numbers. Use promotion_type.
12224 (value_pos, value_neg, value_complement): Handle complex numbers.
12225
fa649bb7
TT
122262020-04-01 Tom Tromey <tom@tromey.com>
12227
12228 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
12229 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
12230 (parse_number): Handle complex numbers.
12231
981c08ce
TT
122322020-04-01 Tom Tromey <tom@tromey.com>
12233
12234 * c-valprint.c (c_decorations): Change complex suffix to "i".
12235
4c99290d
TT
122362020-04-01 Tom Tromey <tom@tromey.com>
12237
12238 * valprint.c (generic_value_print_complex): Use accessors.
12239 * value.h (value_real_part, value_imaginary_part): Declare.
12240 * valops.c (value_real_part, value_imaginary_part): New
12241 functions.
12242 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
12243
5b930b45
TT
122442020-04-01 Tom Tromey <tom@tromey.com>
12245
12246 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
12247 (read_range_type): Update.
12248 * mdebugread.c (basic_type): Update.
12249 * go-lang.c (build_go_types): Use init_complex_type.
12250 * gdbtypes.h (struct main_type) <complex_type>: New member.
12251 (init_complex_type): Update.
12252 (arch_complex_type): Don't declare.
12253 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
12254 Make name if none given. Use alloc_type_copy. Look for cached
12255 complex type.
12256 (arch_complex_type): Remove.
12257 (gdbtypes_post_init): Use init_complex_type.
12258 * f-lang.c (build_fortran_types): Use init_complex_type.
12259 * dwarf2/read.c (read_base_type): Update.
12260 * d-lang.c (build_d_types): Use init_complex_type.
12261 * ctfread.c (read_base_type): Update.
12262
53cccef1
TBA
122632020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12264
12265 * infrun.c (stop_all_threads): Update assertion, plus when
12266 stopping threads, take into account that we might be trying
12267 to stop an all-stop target.
12268 (stop_waiting): Call 'stop_all_threads' if there exists a
12269 non-stop target.
12270
a0714d30
TBA
122712020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12272
12273 * target.h (exists_non_stop_target): New function declaration.
12274 * target.c (exists_non_stop_target): New function.
12275
60e22c1e
HD
122762020-04-01 Hannes Domani <ssbssa@yahoo.de>
12277
12278 PR gdb/24789
12279 * eval.c (is_integral_or_integral_reference): New function.
12280 (evaluate_subexp_standard): Allow integer references in
12281 pointer arithmetic.
12282
e139a727
TBA
122832020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12284
12285 * remote.c (remote_target::remote_parse_stop_reply): Remove the
12286 check for no ptid in the stop reply when the target is non-stop.
12287
e0802d59
TT
122882020-04-01 Tom Tromey <tromey@adacore.com>
12289
12290 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
12291 "name" parameter to rvalue reference. Initialize m_name_holder.
12292 <lookup_name_info>: New overloads.
12293 <name>: Return gdb::string_view.
12294 <c_str>: New method.
12295 <make_ignore_params>: Update.
12296 <search_name_hash>: Update.
12297 <language_lookup_name>: Return const char *.
12298 <m_name>: Change type.
12299 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
12300 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
12301 (lookup_name_info::match_any): Update.
12302 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
12303 Update.
12304 * minsyms.c (linkage_name_str): Update.
12305 * language.c (default_symbol_name_matcher): Update.
12306 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
12307 Update.
12308 * ada-lang.c (ada_fold_name): Change parameter to string_view.
12309 (ada_lookup_name_info::ada_lookup_name_info): Update.
12310 (literal_symbol_name_matcher): Update.
12311
8c072cb6
TT
123122020-04-01 Tom Tromey <tromey@adacore.com>
12313
12314 * psymtab.c (psymtab_search_name): Remove function.
12315 (psym_lookup_symbol): Create search name and lookup name here.
12316 (lookup_partial_symbol): Remove "name" parameter; add
12317 lookup_name.
12318 (psym_expand_symtabs_for_function): Update.
12319
6f29a534
TT
123202020-03-31 Joel Jones <joelkevinjones@gmail.com>
12321
12322 PR tui/25597:
12323 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
12324
af62665e
TT
123252020-03-31 Tom Tromey <tromey@adacore.com>
12326
12327 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
12328 memcpy.
12329
d1a89da5
NC
123302020-03-30 Nelson Chu <nelson.chu@sifive.com>
12331
12332 * features/riscv/32bit-csr.xml: Regenerated.
12333 * features/riscv/64bit-csr.xml: Regenerated.
12334
d8af9068
TT
123352020-03-30 Tom Tromey <tromey@adacore.com>
12336
12337 * ada-valprint.c (print_variant_part): Update.
12338 * ada-lang.h (ada_which_variant_applies): Update.
12339 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
12340 outer_valaddr parameters; replace with "outer" value parameter.
12341 (to_fixed_variant_branch_type): Update.
12342
227c0bf4
PFC
123432020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12344
12345 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
12346 <list>. Remove inclusion of observable.h.
12347 (PPC_DEBUG_CURRENT_VERSION): Move up define.
12348 (struct arch_lwp_info): New struct.
12349 (class ppc_linux_dreg_interface): New class.
12350 (struct ppc_linux_process_info): New struct.
12351 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
12352 <low_new_clone, low_forget_process, low_prepare_to_resume>
12353 <copy_thread_dreg_state, mark_thread_stale>
12354 <mark_debug_registers_changed, register_hw_breakpoint>
12355 <clear_hw_breakpoint, register_wp, clear_wp>
12356 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
12357 <num_memory_accesses, get_trigger_type>
12358 <create_watchpoint_request, hwdebug_point_cmp>
12359 <init_arch_lwp_info, get_arch_lwp_info>
12360 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
12361 methods.
12362 <struct ptid_hash>: New inner struct.
12363 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
12364 members.
12365 (saved_dabr_value, hwdebug_info, max_slots_number)
12366 (struct hw_break_tuple, struct thread_points, ppc_threads)
12367 (have_ptrace_hwdebug_interface)
12368 (hwdebug_find_thread_points_by_tid)
12369 (hwdebug_insert_point, hwdebug_remove_point): Remove.
12370 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
12371 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
12372 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
12373 use m_dreg_interface.
12374 (hwdebug_point_cmp): Change to...
12375 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
12376 reference arguments instead of pointers.
12377 (ppc_linux_nat_target::ranged_break_num_registers): Use
12378 m_dreg_interface.
12379 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
12380 m_dreg_interface. Call register_hw_breakpoint.
12381 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
12382 m_dreg_interface. Call clear_hw_breakpoint.
12383 (get_trigger_type): Change to...
12384 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
12385 comment.
12386 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
12387 use m_dreg_interface. Call register_hw_breakpoint.
12388 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
12389 use m_dreg_interface. Call clear_hw_breakpoint.
12390 (can_use_watchpoint_cond_accel): Change to...
12391 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
12392 method. Update comment, use m_dreg_interface and
12393 m_process_info.
12394 (calculate_dvc): Change to...
12395 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
12396 m_dreg_interface.
12397 (num_memory_accesses): Change to...
12398 (ppc_linux_nat_target::num_memory_accesses): ...this method.
12399 (check_condition): Change to...
12400 (ppc_linux_nat_target::check_condition): ...this method.
12401 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
12402 comment, use m_dreg_interface.
12403 (create_watchpoint_request): Change to...
12404 (ppc_linux_nat_target::create_watchpoint_request): ...this
12405 method. Use m_dreg_interface.
12406 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
12407 m_dreg_interface. Call register_hw_breakpoint or register_wp.
12408 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
12409 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
12410 (ppc_linux_nat_target::low_forget_process)
12411 (ppc_linux_nat_target::low_new_fork)
12412 (ppc_linux_nat_target::low_new_clone)
12413 (ppc_linux_nat_target::low_delete_thread)
12414 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
12415 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
12416 only call mark_thread_stale.
12417 (ppc_linux_thread_exit): Remove.
12418 (ppc_linux_nat_target::stopped_data_address): Change to...
12419 (ppc_linux_nat_target::low_stopped_data_address): This. Add
12420 comment, use m_dreg_interface and m_thread_hw_breakpoints.
12421 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
12422 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
12423 comment. Call low_stopped_data_address.
12424 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
12425 m_dreg_interface.
12426 (ppc_linux_nat_target::masked_watch_num_registers): Use
12427 m_dreg_interface.
12428 (ppc_linux_nat_target::copy_thread_dreg_state)
12429 (ppc_linux_nat_target::mark_thread_stale)
12430 (ppc_linux_nat_target::mark_debug_registers_changed)
12431 (ppc_linux_nat_target::register_hw_breakpoint)
12432 (ppc_linux_nat_target::clear_hw_breakpoint)
12433 (ppc_linux_nat_target::register_wp)
12434 (ppc_linux_nat_target::clear_wp)
12435 (ppc_linux_nat_target::init_arch_lwp_info)
12436 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
12437 (_initialize_ppc_linux_nat): Remove observer callback.
12438
4db10d8f
PFC
124392020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12440
12441 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
12442 (ppc_linux_nat_target::auxv_parse)
12443 (ppc_linux_nat_target::read_description)
12444 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
12445 Move up.
12446
1310c1b0
PFC
124472020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12448
12449 * linux-nat.h (low_new_clone): New method.
12450 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
12451
69b037c3
SM
124522020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12453
12454 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
12455 (dbx_expand_psymtab): ... this.
12456 (start_psymtab): Update.
12457 * mdebugread.c (psymtab_to_symtab_1): Rename to...
12458 (mdebug_expand_psymtab): ... this.
12459 (parse_partial_symbols): Update.
12460 (new_psymtab): Update.
12461 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
12462 (xcoff_expand_psymtab): ... this.
12463 (xcoff_start_psymtab): Update.
12464
48993951
SM
124652020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12466
12467 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
12468 <expand_dependencies>: ... this.
12469 * psymtab.c (partial_symtab::read_dependencies): Rename to...
12470 (partial_symtab::expand_dependencies): ... this.
12471 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
12472 Update.
12473 (dwarf2_psymtab::expand_psymtab): Update.
12474 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12475 * mdebugread.c (psymtab_to_symtab_1): Update.
12476 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12477
3ad83046
SM
124782020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12479
12480 * psympriv.h (discard_psymtab): Remove.
12481 * dbxread.c (dbx_end_psymtab): Update.
12482 * xcoffread.c (xcoff_end_psymtab): Update.
12483
4d1b9ab6
TT
124842020-03-28 Tom Tromey <tom@tromey.com>
12485
12486 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
12487 comment.
12488
f1749218
TT
124892020-03-28 Tom Tromey <tom@tromey.com>
12490
12491 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
12492
ebea7626
HD
124932020-03-27 Hannes Domani <ssbssa@yahoo.de>
12494
12495 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12496
a879b4d5
JB
124972020-03-26 John Baldwin <jhb@FreeBSD.org>
12498
12499 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
12500
0826b30a
TT
125012020-03-26 Tom Tromey <tom@tromey.com>
12502
12503 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
12504 (mark_common_block_symbol_computed, read_tag_string_type)
12505 (attr_to_dynamic_prop, read_subrange_type): Update.
12506 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
12507 to be methods on struct attribute.
12508 (skip_one_die, process_imported_unit_die, read_namespace_alias)
12509 (read_call_site_scope, partial_die_info::read)
12510 (partial_die_info::read, lookup_die_type, follow_die_ref):
12511 Update.
12512 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
12513 from dwarf2_get_ref_die_offset.
12514 (attribute::constant_value): New method, from
12515 dwarf2_get_attr_constant_value.
12516 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
12517 Declare method.
12518 <constant_value>: New method.
12519
2b2558bf
TT
125202020-03-26 Tom Tromey <tom@tromey.com>
12521
12522 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
12523 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
12524 (dwarf_type_encoding_name): Move to stringify.c.
12525 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
12526 * dwarf2/stringify.c: New file.
12527 * dwarf2/stringify.h: New file.
12528
eeb64781
TT
125292020-03-26 Tom Tromey <tom@tromey.com>
12530
12531 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
12532 Rewrite.
12533
a39fdb41
TT
125342020-03-26 Tom Tromey <tom@tromey.com>
12535
12536 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
12537 methods.
12538 * dwarf2/read.c (lookup_addr_base): Move to die.h.
12539 (lookup_ranges_base): Likewise.
12540 (read_cutu_die_from_dwo, read_full_die_1): Update.
12541
436c571c
TT
125422020-03-26 Tom Tromey <tom@tromey.com>
12543
12544 * dwarf2/read.c (read_import_statement, read_file_scope)
12545 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
12546 (read_lexical_block_scope, read_call_site_scope)
12547 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
12548 (handle_struct_member_die, process_structure_scope)
12549 (update_enumeration_type_from_children)
12550 (process_enumeration_scope, read_array_type, read_common_block)
12551 (read_namespace, read_module, read_subroutine_type): Update.
12552 (sibling_die): Remove.
12553
052c8bb8
TT
125542020-03-26 Tom Tromey <tom@tromey.com>
12555
12556 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
12557 (build_type_psymtabs_reader, read_structure_type)
12558 (read_enumeration_type, read_full_die_1): Update.
12559 (dwarf2_attr_no_follow): Move to die.h.
12560 * dwarf2/die.h (struct die_info) <attr>: New method.
12561
2b24b6e4
TT
125622020-03-26 Tom Tromey <tom@tromey.com>
12563
12564 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
12565 <base_address>: Now an optional.
12566 (dwarf2_find_base_address, dwarf2_rnglists_process)
12567 (dwarf2_ranges_process, fill_in_loclist_baton)
12568 (dwarf2_symbol_mark_computed): Update.
12569
c2d50fd0
TT
125702020-03-26 Tom Tromey <tom@tromey.com>
12571
12572 * dwarf2/read.c (struct die_info): Move to die.h.
12573 * dwarf2/die.h: New file.
12574
0df7ad3a
TT
125752020-03-26 Tom Tromey <tom@tromey.com>
12576
12577 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
12578 * dwarf2/read.c
12579 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12580 Move to line-header.c.
12581 (read_checked_initial_length_and_offset, read_formatted_entries):
12582 Likewise.
12583 (dwarf_decode_line_header): Split into two.
12584 * dwarf2/line-header.c
12585 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12586 Move from read.c.
12587 (read_checked_initial_length_and_offset, read_formatted_entries):
12588 Likewise.
12589 (dwarf_decode_line_header): New function, split from read.c.
12590
86c0bb4c
TT
125912020-03-26 Tom Tromey <tom@tromey.com>
12592
12593 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
12594 Declare method.
12595 * dwarf2/read.c (read_attribute_value): Update.
12596 (dwarf2_per_objfile::read_line_string): Rename from
12597 read_indirect_line_string.
12598 (read_formatted_entries): Update.
12599
2ef46c2f
TT
126002020-03-26 Tom Tromey <tom@tromey.com>
12601
12602 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
12603 variable.
12604
4f9c1eda
TT
126052020-03-26 Tom Tromey <tom@tromey.com>
12606
12607 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
12608 const.
12609 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
12610 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
12611 parameter const.
12612
5a0e026f
TT
126132020-03-26 Tom Tromey <tom@tromey.com>
12614
12615 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
12616 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
12617 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
12618 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
12619
8844c11b
TT
126202020-03-26 Tom Tromey <tom@tromey.com>
12621
12622 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
12623 file_names_size, file_full_name, file_file_name>: Use const.
12624 <file_name_at, file_names>: Add const overload.
12625 * dwarf2/line-header.c (line_header::file_file_name)
12626 (line_header::file_full_name): Update.
12627
c90ec28a
TT
126282020-03-26 Tom Tromey <tom@tromey.com>
12629
12630 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
12631 (macro_start_file, consume_improper_spaces)
12632 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
12633 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
12634 (dwarf_decode_macros): Move to macro.c.
12635 * dwarf2/macro.c: New file.
12636 * dwarf2/macro.h: New file.
12637 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
12638
4f44ae6c
TT
126392020-03-26 Tom Tromey <tom@tromey.com>
12640
12641 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
12642 method.
12643 * dwarf2/section.c: New method. From
12644 read_indirect_string_at_offset_from.
12645 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
12646 (read_indirect_string_at_offset_from): Move to section.c.
12647 (read_indirect_string_at_offset): Rewrite.
12648 (read_indirect_line_string_at_offset): Remove.
12649 (read_indirect_string, read_indirect_line_string)
12650 (dwarf_decode_macro_bytes): Update.
12651
a0194fa8
TT
126522020-03-26 Tom Tromey <tom@tromey.com>
12653
12654 * dwarf2/section.h (struct dwarf2_section_info)
12655 <overload_complaint>: Declare.
12656 (dwarf2_section_buffer_overflow_complaint): Don't declare.
12657 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
12658 Rename from dwarf2_section_buffer_overflow_complaint.
12659 * dwarf2/read.c (skip_one_die, partial_die_info::read)
12660 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
12661
3d27bbdb
TT
126622020-03-26 Tom Tromey <tom@tromey.com>
12663
12664 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
12665 Declare.
12666 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
12667 Move from read.c.
12668 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
12669 to section.c.
12670
9eac9650
TT
126712020-03-26 Tom Tromey <tom@tromey.com>
12672
12673 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
12674
bf80d710
TT
126752020-03-26 Tom Tromey <tom@tromey.com>
12676
12677 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
12678 "builder".
12679 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
12680 parameter.
12681 (dwarf_decode_macros): Update.
12682
0314b390
TT
126832020-03-26 Tom Tromey <tom@tromey.com>
12684
12685 * dwarf2/read.c (read_attribute_value): Update.
12686 (read_indirect_string_from_dwz): Move to dwz.c; change into
12687 method.
12688 (dwarf_decode_macro_bytes): Update.
12689 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
12690 * dwarf2/dwz.c: New file.
12691 * Makefile.in (COMMON_SFILES): Add dwz.c.
12692
9fda78b6
TT
126932020-03-26 Tom Tromey <tom@tromey.com>
12694
12695 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
12696 * dwarf2/read.c: Add include.
12697 * dwarf2/index-write.c: Add include.
12698 * dwarf2/index-cache.c: Add include.
12699 * dwarf2/dwz.h: New file.
12700
33aa3c10
TT
127012020-03-25 Tom Tromey <tom@tromey.com>
12702
12703 * compile/compile-object-load.c (get_out_value_type): Mention
12704 correct symbol name in error message.
12705
d503b685
HD
127062020-03-25 Hannes Domani <ssbssa@yahoo.de>
12707
12708 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12709
7b1eff95
TV
127102020-03-25 Tom de Vries <tdevries@suse.de>
12711
12712 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
12713 * symmisc.c (dump_symtab_1): Print user and includes fields.
12714 (maintenance_info_symtabs): Same.
12715
dd895392
AB
127162020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
12717
12718 PR gdb/25534
12719 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
12720 (riscv_regcache_cooked_write): New function.
12721 (riscv_push_dummy_call): Use new function.
12722 (riscv_return_value): Likewise.
12723
5ab2fbf1
SM
127242020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
12725
12726 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
12727 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
12728 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
12729 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
12730 * infrun.c (follow_fork): Likewise.
12731 (follow_fork_inferior): Likewise.
12732 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
12733 * linux-nat.h (class linux_nat_target): Likewise.
12734 * remote.c (class remote_target) <follow_fork>: Likewise.
12735 (remote_target::follow_fork): Likewise.
12736 * target-delegates.c: Re-generate.
12737 * target.c (default_follow_fork): Likewise.
12738 (target_follow_fork): Likewise.
12739 * target.h (struct target_ops) <follow_fork>: Likewise.
12740 (target_follow_fork): Likewise.
12741
a64fafb5
TV
127422020-03-24 Tom de Vries <tdevries@suse.de>
12743
12744 * psymtab.c (maintenance_info_psymtabs): Print user field.
12745
fe26d3a3
TT
127462020-03-20 Tom Tromey <tromey@adacore.com>
12747
12748 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
12749 const.
12750 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
12751 const.
12752
c884cc46
SM
127532020-03-20 Simon Marchi <simon.marchi@efficios.com>
12754
12755 * ptrace.m4: Don't check for ptrace declaration.
12756 * config.in: Re-generate.
12757 * configure: Re-generate.
12758 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
12759 not defined.
12760
1ff700c2
KR
127612020-03-20 Kamil Rytarowski <n54@gmx.com>
12762
12763 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
12764 `PTRACE_TYPE_RET'.
12765 * i386-bsd-nat.c (gdb_ptrace): Likewise.
12766 * sparc-nat.c (gdb_ptrace): Likewise.
12767 * x86-bsd-nat.c (gdb_ptrace): Likewise.
12768
f7d4f0b1
TT
127692020-03-20 Tom Tromey <tromey@adacore.com>
12770
12771 * c-exp.y (lex_one_token): Fix assert.
12772
f67210ff
TT
127732020-03-20 Tom Tromey <tromey@adacore.com>
12774
12775 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
12776 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
12777 strncpy call.
12778
1773be9e
TT
127792020-03-20 Tom Tromey <tromey@adacore.com>
12780
12781 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
12782
70304be9
TT
127832020-03-20 Tom Tromey <tromey@adacore.com>
12784
12785 * ada-valprint.c (print_variant_part): Remove parameters; switch
12786 to value-based API.
12787 (print_field_values): Likewise.
12788 (ada_val_print_struct_union): Likewise.
12789 (ada_value_print_1): Update.
12790
9faa006d
KR
127912020-03-20 Kamil Rytarowski <n54@gmx.com>
12792
12793 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
12794 nbsd_nat_target instead of inf_ptrace_target.
12795 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12796 nbsd_nat_target.
12797
4a90f062
KR
127982020-03-20 Kamil Rytarowski <n54@gmx.com>
12799
12800 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
12801 it to the ptrace call.
12802 * (store_registers): Likewise.
12803
128042020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
12805
12806 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
12807 it to the ptrace call.
12808 * (store_registers): Likewise.
12809
2d07da27
LM
128102020-03-19 Luis Machado <luis.machado@linaro.org>
12811
12812 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
12813 valid, fetch vg value from ptrace.
12814
f09db380
KR
128152020-03-19 Kamil Rytarowski <n54@gmx.com>
12816 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
12817 * inf-ptrace.c: Likewise.
12818 * (gdb_ptrace): Add.
12819 * (inf_ptrace_target::resume): Update.
12820 * (inf_ptrace_target::xfer_partial): Likewise.
12821 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
12822 * (inf_ptrace_peek_poke): Update.
12823
fcc7376e
KR
128242020-03-19 Kamil Rytarowski <n54@gmx.com>
12825
12826 * x86-bsd-nat.c (gdb_ptrace): New.
12827 * (x86bsd_dr_set): Add new argument `ptid'.
12828 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
12829 x86bsd_dr_set_addr): Update.
12830
cada5fc9
AB
128312020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12832
12833 * remote.c (remote_target::process_stop_reply): Handle events for
12834 all threads differently.
12835
19a2740f
AB
128362020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12837
12838 * completer.c (completion_tracker::remove_completion): Define new
12839 function.
12840 * completer.h (completion_tracker::remove_completion): Declare new
12841 function.
12842 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
12843 when adding a C++ function symbol.
12844
724fd9ba
AB
128452020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12846
12847 * completer.c (completion_tracker::completion_hash_entry): Define
12848 new class.
12849 (advance_to_filename_complete_word_point): Call
12850 recompute_lowest_common_denominator.
12851 (completion_tracker::completion_tracker): Call discard_completions
12852 to setup the hash table.
12853 (completion_tracker::discard_completions): Allow for being called
12854 from the constructor, pass new equal function, and element deleter
12855 when constructing the hash table. Initialise new class member
12856 variables.
12857 (completion_tracker::maybe_add_completion): Remove use of
12858 m_entries_vec, and store more information into m_entries_hash.
12859 (completion_tracker::recompute_lcd_visitor): New function, most
12860 content taken from...
12861 (completion_tracker::recompute_lowest_common_denominator):
12862 ...here, this now just visits each item in the hash calling the
12863 above visitor.
12864 (completion_tracker::build_completion_result): Remove use of
12865 m_entries_vec, call recompute_lowest_common_denominator.
12866 * completer.h (completion_tracker::have_completions): Remove use
12867 of m_entries_vec.
12868 (completion_tracker::completion_hash_entry): Declare new class.
12869 (completion_tracker::recompute_lowest_common_denominator): Change
12870 function signature.
12871 (completion_tracker::recompute_lcd_visitor): Declare new function.
12872 (completion_tracker::m_entries_vec): Delete.
12873 (completion_tracker::m_entries_hash): Initialize to NULL.
12874 (completion_tracker::m_lowest_common_denominator_valid): New
12875 member variable.
12876 (completion_tracker::m_lowest_common_denominator_max_length): New
12877 member variable.
12878
5a82b8a1
KR
128792020-03-17 Kamil Rytarowski <n54@gmx.com>
12880
12881 * regformats/regdef.h: Put reg in gdb namespace.
12882
fb516a69
KR
128832020-03-17 Kamil Rytarowski <n54@gmx.com>
12884
12885 * i386-bsd-nat.c (gdb_ptrace): New.
12886 * (i386bsd_fetch_inferior_registers,
12887 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12888 * (i386bsd_fetch_inferior_registers,
12889 i386bsd_store_inferior_registers) Use gdb_ptrace.
12890
1c0aa1fb
KR
128912020-03-17 Kamil Rytarowski <n54@gmx.com>
12892
12893 * amd64-bsd-nat.c (gdb_ptrace): New.
12894 * (amd64bsd_fetch_inferior_registers,
12895 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12896 * (amd64bsd_fetch_inferior_registers,
12897 amd64bsd_store_inferior_registers) Use gdb_ptrace.
12898
5ccd2fb7
KR
128992020-03-17 Kamil Rytarowski <n54@gmx.com>
12900
12901 * user-regs.c (user_reg::read): Rename to...
12902 (user_reg::xread): ...this.
12903 * (append_user_reg): Rename argument `read' to `xread'.
12904 * (user_reg_add_builtin): Likewise.
12905 * (user_reg_add): Likewise.
12906 * (value_of_user_reg): Likewise.
12907
2108a63a
KR
129082020-03-17 Kamil Rytarowski <n54@gmx.com>
12909
12910 * sparc-nat.c (gdb_ptrace): New.
12911 * sparc-nat.c (sparc_fetch_inferior_registers)
12912 (sparc_store_inferior_registers) Remove obsolete comment.
12913 * sparc-nat.c (sparc_fetch_inferior_registers)
12914 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
12915 * sparc-nat.c (sparc_fetch_inferior_registers)
12916 (sparc_store_inferior_registers) Use gdb_ptrace.
12917
a225c9a8
KR
129182020-03-17 Kamil Rytarowski <n54@gmx.com>
12919
12920 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
12921 it to the ptrace call.
12922 * sh-nbsd-nat.c (store_registers): Likewise.
12923
98097623
KR
129242020-03-17 Kamil Rytarowski <n54@gmx.com>
12925
12926 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
12927 nbsd_nat_target instead of inf_ptrace_target.
12928 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12929 nbsd_nat_target.
12930
9e38d619
KR
129312020-03-17 Kamil Rytarowski <n54@gmx.com>
12932
12933 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
12934
a2ecbe9f
KR
129352020-03-17 Kamil Rytarowski <n54@gmx.com>
12936
12937 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
12938 <sys/sysctl.h>.
12939 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
12940
58990295
TV
129412020-03-17 Tom de Vries <tdevries@suse.de>
12942
12943 PR gdb/23710
12944 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
12945 fields.
12946 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
12947 fields.
12948 (process_imported_unit_die): Skip import of c++ CUs.
12949
771dd3a8
TT
129502020-03-16 Tom Tromey <tom@tromey.com>
12951
12952 * p-valprint.c (pascal_object_print_value): Initialize
12953 base_value.
12954
817a7585
AK
129552020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
12956 Shahab Vahedi <shahab@synopsys.com>
12957
12958 * Makefile.in: Add arch/arc.o
12959 * configure.tgt: Likewise.
12960 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
12961 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 12962 (arc_read_description): New function to cache target descriptions.
817a7585
AK
12963 * arc-tdep.h (arc_read_description): Add proto type.
12964 * arch/arc.c: New file.
12965 * arch/arc.h: Likewise.
12966 * features/Makefile: Replace old target descriptions with new.
12967 * features/arc-arcompact.c: Remove.
12968 * features/arc-arcompact.xml: Likewise.
12969 * features/arc-v2.c: Likewise
12970 * features/arc-v2.xml: Likewise
12971 * features/arc/aux-arcompact.xml: New file.
12972 * features/arc/aux-v2.xml: Likewise.
12973 * features/arc/core-arcompact.xml: Likewise.
12974 * features/arc/core-v2.xml: Likewise.
12975 * features/arc/aux-arcompact.c: Generate.
12976 * features/arc/aux-v2.c: Likewise.
12977 * features/arc/core-arcompact.c: Likewise.
12978 * features/arc/core-v2.c: Likewise.
12979 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
12980
67430cd0
TT
129812020-03-16 Tom Tromey <tromey@adacore.com>
12982
12983 PR gdb/25663:
12984 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
12985 putting value into bcache.
12986
30efb6c7
SM
129872020-03-16 Simon Marchi <simon.marchi@efficios.com>
12988
12989 PR gdb/21500
12990 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
12991 to...
12992 (amd64_windows_init_abi_common): ... this. Don't set size of
12993 long type.
12994 (amd64_windows_init_abi): New function.
12995 (amd64_cygwin_init_abi): New function.
12996 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
12997 the Cygwin OS ABI.
12998 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
12999 comment.
13000
8db52437
SM
130012020-03-16 Simon Marchi <simon.marchi@efficios.com>
13002
13003 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
13004 * windows-tdep.c (CYGWIN_DLL_NAME): New.
13005 (pe_import_directory_entry): New struct type.
13006 (is_linked_with_cygwin_dll): New function.
13007 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
13008 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
13009 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
13010
5982a56a
SM
130112020-03-16 Simon Marchi <simon.marchi@efficios.com>
13012
13013 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
13014 i386_cygwin_core_osabi_sniffer.
13015
7a1998df
SM
130162020-03-16 Simon Marchi <simon.marchi@efficios.com>
13017
13018 * i386-cygwin-tdep.c: Rename to...
13019 * i386-windows-tdep.c: ... this.
13020 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
13021 i386-windows-tdep.c.
13022 * configure.tgt: Likewise.
13023
053205cc
SM
130242020-03-16 Simon Marchi <simon.marchi@efficios.com>
13025
13026 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
13027 * osabi.c (gdb_osabi_names): Add "Windows".
13028 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
13029 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
13030 (i386_cygwin_core_osabi_sniffer): New function, extracted from
13031 i386_cygwin_osabi_sniffer.
13032 (_initialize_i386_cygwin_tdep): Register OS ABI
13033 GDB_OSABI_WINDOWS for i386.
13034 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
13035 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
13036 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
13037 for x86-64.
13038 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
13039 when the target matches '*-*-mingw*'.
13040
fe4b2ee6
SM
130412020-03-16 Simon Marchi <simon.marchi@efficios.com>
13042
13043 * defs.h (enum gdb_osabi): Move to...
13044 * osabi.h (enum gdb_osabi): ... here.
13045 * gdbarch.sh: Include osabi.h in gdbarch.h.
13046 * gdbarch.h: Re-generate.
13047
cb9b645d
SM
130482020-03-16 Simon Marchi <simon.marchi@efficios.com>
13049
13050 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
13051 function.
13052 (_initialize_amd64_windows_tdep): Register osabi sniffer.
13053
3293bbaf
TT
130542020-03-14 Tom Tromey <tom@tromey.com>
13055
13056 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
13057 for C++.
13058 (c_type_print_modifier): Likewise. Add "language" parameter.
13059 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
13060 (c_type_print_base_1): Update.
13061 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
13062 constants.
13063 * type-stack.c (type_stack::insert): Handle tp_atomic and
13064 tp_restrict.
13065 (type_stack::follow_type_instance_flags): Likewise.
13066 (type_stack::follow_types): Likewise. Merge type-following code.
13067 * c-exp.y (RESTRICT, ATOMIC): New tokens.
13068 (space_identifier, cv_with_space_id)
13069 (const_or_volatile_or_space_identifier_noopt)
13070 (const_or_volatile_or_space_identifier): Remove.
13071 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
13072 rules.
13073 (ptr_operator, typebase): Update.
13074 (enum token_flag) <FLAG_C>: New constant.
13075 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
13076 "_Atomic".
13077 (lex_one_token): Handle FLAG_C.
13078
154151a6
KR
130792020-03-14 Kamil Rytarowski <n54@gmx.com>
13080
13081 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
13082 it to the ptrace call.
13083 * m68k-bsd-nat.c (store_registers): Likewise.
13084
bc107784
KR
130852020-03-14 Kamil Rytarowski <n54@gmx.com>
13086
13087 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
13088 gdb_byte *.
13089 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
13090 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
13091 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
13092
01a80117
KR
130932020-03-14 Kamil Rytarowski <n54@gmx.com>
13094
13095 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
13096 nbsd_nat_target instead of inf_ptrace_target.
13097 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13098 nbsd_nat_target.
13099
f90280ca
KR
131002020-03-14 Kamil Rytarowski <n54@gmx.com>
13101
13102 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
13103 register_t.
13104
6def66f1
KR
131052020-03-14 Kamil Rytarowski <n54@gmx.com>
13106
13107 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
13108 it to the ptrace call.
13109 * alpha-bsd-nat.c (store_registers): Likewise.
13110
66eaca97
KR
131112020-03-14 Kamil Rytarowski <n54@gmx.com>
13112
13113 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
13114 includes.
13115 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
13116 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
13117 fill_fpregset): Likewise.
13118
4fed520b
KR
131192020-03-14 Kamil Rytarowski <n54@gmx.com>
13120
13121 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
13122 nbsd_nat_target instead of inf_ptrace_target.
13123 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13124 nbsd_nat_target.
13125
2190cf06
KR
131262020-03-14 Kamil Rytarowski <n54@gmx.com>
13127
13128 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
13129 register_t.
13130
75c56d3d
KR
131312020-03-14 Kamil Rytarowski <n54@gmx.com>
13132
13133 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
13134 it to the ptrace call.
13135 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
13136 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
13137 * arm-nbsd-nat.c (store_register): Likewise.
13138 * arm-nbsd-nat.c (store_regs): Likewise.
13139 * arm-nbsd-nat.c (store_fp_register): Likewise.
13140 * arm-nbsd-nat.c (store_fp_regs): Likewise.
13141
6018d381
KR
131422020-03-14 Kamil Rytarowski <n54@gmx.com>
13143
13144 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
13145 nbsd_nat_target instead of inf_ptrace_target.
13146 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13147 nbsd_nat_target.
13148
013f99f0
KR
131492020-03-14 Kamil Rytarowski <n54@gmx.com>
13150
13151 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
13152 it to the ptrace call.
13153 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
13154
12753073
KR
131552020-03-14 Kamil Rytarowski <n54@gmx.com>
13156
6227b330
KR
13157 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
13158 it to the ptrace call.
13159 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
13160
131612020-03-14 Kamil Rytarowski <n54@gmx.com>
13162
13163 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
13164 gdb_byte *.
12753073
KR
13165 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
13166
d5be5fa4
KR
131672020-03-14 Kamil Rytarowski <n54@gmx.com>
13168
13169 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
13170 instead of inf_ptrace_target.
13171 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13172 nbsd_nat_target.
13173
8110f842
KR
131742020-03-14 Kamil Rytarowski <n54@gmx.com>
13175
13176 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13177 register_t.
13178
52feded7
KR
131792020-03-14 Kamil Rytarowski <n54@gmx.com>
13180
13181 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13182 register_t.
13183
25567eee
KR
131842020-03-14 Kamil Rytarowski <n54@gmx.com>
13185
13186 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
13187 register_t.
13188
426a9c18
TT
131892020-03-13 Tom Tromey <tom@tromey.com>
13190
13191 * value.h (val_print): Don't declare.
13192 * valprint.h (val_print_array_elements)
13193 (val_print_scalar_formatted, generic_val_print): Don't declare.
13194 * valprint.c (generic_val_print_array): Take a struct value.
13195 (generic_val_print_ptr, generic_val_print_memberptr)
13196 (generic_val_print_bool, generic_val_print_int)
13197 (generic_val_print_char, generic_val_print_complex)
13198 (generic_val_print): Remove.
13199 (generic_value_print): Update.
13200 (do_val_print): Remove unused parameters. Don't call
13201 la_val_print.
13202 (val_print): Remove.
13203 (common_val_print): Update. Don't call value_check_printable.
13204 (val_print_scalar_formatted, val_print_array_elements): Remove.
13205 * rust-lang.c (rust_val_print): Remove.
13206 (rust_language_defn): Update.
13207 * p-valprint.c (pascal_val_print): Remove.
13208 (pascal_value_print_inner): Update.
13209 (pascal_object_print_val_fields, pascal_object_print_val):
13210 Remove.
13211 (pascal_object_print_static_field): Update.
13212 * p-lang.h (pascal_val_print): Don't declare.
13213 * p-lang.c (pascal_language_defn): Update.
13214 * opencl-lang.c (opencl_language_defn): Update.
13215 * objc-lang.c (objc_language_defn): Update.
13216 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
13217 * m2-lang.h (m2_val_print): Don't declare.
13218 * m2-lang.c (m2_language_defn): Update.
13219 * language.h (struct language_defn) <la_val_print>: Remove.
13220 * language.c (unk_lang_value_print_inner): Rename. Change
13221 argument types.
13222 (unknown_language_defn, auto_language_defn): Update.
13223 * go-valprint.c (go_val_print): Remove.
13224 * go-lang.h (go_val_print): Don't declare.
13225 * go-lang.c (go_language_defn): Update.
13226 * f-valprint.c (f_val_print): Remove.
13227 * f-lang.h (f_value_print): Don't declare.
13228 * f-lang.c (f_language_defn): Update.
13229 * d-valprint.c (d_val_print): Remove.
13230 * d-lang.h (d_value_print): Don't declare.
13231 * d-lang.c (d_language_defn): Update.
13232 * cp-valprint.c (cp_print_value_fields)
13233 (cp_print_value_fields_rtti, cp_print_value): Remove.
13234 (cp_print_static_field): Update.
13235 * c-valprint.c (c_val_print_array, c_val_print_ptr)
13236 (c_val_print_struct, c_val_print_union, c_val_print_int)
13237 (c_val_print_memberptr, c_val_print): Remove.
13238 * c-lang.h (c_val_print_array, cp_print_value_fields)
13239 (cp_print_value_fields_rtti): Don't declare.
13240 * c-lang.c (c_language_defn, cplus_language_defn)
13241 (asm_language_defn, minimal_language_defn): Update.
13242 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
13243 (ada_val_print_enum): Take a struct value.
13244 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
13245 (ada_val_print): Remove.
13246 (ada_value_print_1): Update.
13247 (printable_val_type): Remove.
13248 * ada-lang.h (ada_val_print): Don't declare.
13249 * ada-lang.c (ada_language_defn): Update.
13250
42331a1e
TT
132512020-03-13 Tom Tromey <tom@tromey.com>
13252
13253 * valprint.c (do_val_print): Update.
13254 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
13255 a struct value.
13256 (value_to_value_object_no_release): Declare.
13257 * python/py-value.c (value_to_value_object_no_release): New
13258 function.
13259 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
13260 struct value.
13261 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
13262 function.
13263 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
13264 a struct value.
13265 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
13266 Declare.
13267 (gdbscm_apply_val_pretty_printer): Take a struct value.
13268 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
13269 value.
13270 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
13271 value.
13272 * extension-priv.h (struct extension_language_ops)
13273 <apply_val_pretty_printer>: Take a struct value.
13274 * cp-valprint.c (cp_print_value): Create a struct value.
13275 (cp_print_value): Update.
13276
3a916a97
TT
132772020-03-13 Tom Tromey <tom@tromey.com>
13278
13279 * ada-valprint.c (print_field_values): Call common_val_print.
13280
b59eac37
TT
132812020-03-13 Tom Tromey <tom@tromey.com>
13282
13283 * ada-valprint.c (val_print_packed_array_elements): Remove
13284 bitoffset and val parameters. Call common_val_print.
13285 (ada_val_print_string): Remove offset, address, and original_value
13286 parameters.
13287 (ada_val_print_array): Update.
13288 (ada_value_print_array): New function.
13289 (ada_value_print_1): Call it.
13290
03371129
TT
132912020-03-13 Tom Tromey <tom@tromey.com>
13292
13293 * ada-valprint.c (ada_value_print): Use common_val_print.
13294
2e088f8b
TT
132952020-03-13 Tom Tromey <tom@tromey.com>
13296
13297 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
13298
39ef85a8
TT
132992020-03-13 Tom Tromey <tom@tromey.com>
13300
13301 * ada-valprint.c (ada_value_print_num): New function.
13302 (ada_value_print_1): Use it.
13303
b9fa6e07
TT
133042020-03-13 Tom Tromey <tom@tromey.com>
13305
13306 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
13307
416595d6
TT
133082020-03-13 Tom Tromey <tom@tromey.com>
13309
13310 * ada-valprint.c (ada_value_print_ptr): New function.
13311 (ada_value_print_1): Use it.
13312
5b5e15ec
TT
133132020-03-13 Tom Tromey <tom@tromey.com>
13314
13315 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
13316 call common_val_print.
13317 (ada_val_print_1): Update.
13318 (ada_value_print_1): New function.
13319 (ada_value_print_inner): Rewrite.
13320
fbf54e75
TT
133212020-03-13 Tom Tromey <tom@tromey.com>
13322
13323 * cp-valprint.c (cp_print_value_fields): Update.
13324 (cp_print_value): New function.
13325
64b653ca
TT
133262020-03-13 Tom Tromey <tom@tromey.com>
13327
13328 * m2-valprint.c (m2_value_print_inner): Use
13329 cp_print_value_fields.
13330 * cp-valprint.c (cp_print_value_fields): New function.
13331 * c-valprint.c (c_value_print_struct): New function.
13332 (c_value_print_inner): Use c_value_print_struct.
13333 * c-lang.h (cp_print_value_fields): Declare.
13334
6999f067
TT
133352020-03-13 Tom Tromey <tom@tromey.com>
13336
13337 * c-valprint.c (c_value_print_array): New function.
13338 (c_value_print_inner): Use it.
13339
ce80b8bd
TT
133402020-03-13 Tom Tromey <tom@tromey.com>
13341
13342 * c-valprint.c (c_value_print_memberptr): New function.
13343 (c_value_print_inner): Use it.
13344
2faac269
TT
133452020-03-13 Tom Tromey <tom@tromey.com>
13346
13347 * c-valprint.c (c_value_print_int): New function.
13348 (c_value_print_inner): Use it.
13349
da3e2c29
TT
133502020-03-13 Tom Tromey <tom@tromey.com>
13351
13352 * c-valprint.c (c_value_print_ptr): New function.
13353 (c_value_print_inner): Use it.
13354
50836231
TT
133552020-03-13 Tom Tromey <tom@tromey.com>
13356
13357 * c-valprint.c (c_value_print_inner): Rewrite.
13358
4f412b6e
TT
133592020-03-13 Tom Tromey <tom@tromey.com>
13360
13361 * valprint.c (generic_value_print_complex): New function.
13362 (generic_value_print): Use it.
13363
f5354008
TT
133642020-03-13 Tom Tromey <tom@tromey.com>
13365
13366 * valprint.c (generic_val_print_float): Don't call
13367 val_print_scalar_formatted.
13368 (generic_val_print, generic_value_print): Update.
13369
3eec3b05
TT
133702020-03-13 Tom Tromey <tom@tromey.com>
13371
13372 * valprint.c (generic_value_print_char): New function
13373 (generic_value_print): Use it.
13374
fdddfccb
TT
133752020-03-13 Tom Tromey <tom@tromey.com>
13376
13377 * valprint.c (generic_value_print_int): New function.
13378 (generic_value_print): Use it.
13379
6dde7521
TT
133802020-03-13 Tom Tromey <tom@tromey.com>
13381
13382 * valprint.c (generic_value_print_bool): New function.
13383 (generic_value_print): Use it.
13384
4112d2e6
TT
133852020-03-13 Tom Tromey <tom@tromey.com>
13386
13387 * valprint.c (generic_val_print_func): Simplify.
13388 (generic_val_print, generic_value_print): Update.
13389
65786af6
TT
133902020-03-13 Tom Tromey <tom@tromey.com>
13391
13392 * valprint.c (generic_val_print_flags): Remove.
13393 (generic_val_print, generic_value_print): Update.
13394 (val_print_type_code_flags): Add original_value parameter.
13395
40f3ce18
TT
133962020-03-13 Tom Tromey <tom@tromey.com>
13397
13398 * valprint.c (generic_val_print): Update.
13399 (generic_value_print): Update.
13400 * valprint.c (generic_val_print_enum): Don't call
13401 val_print_scalar_formatted.
13402
2a5b130b
TT
134032020-03-13 Tom Tromey <tom@tromey.com>
13404
13405 * valprint.c (generic_value_print): Call generic_value_print_ptr.
13406 * valprint.c (generic_value_print_ptr): New function.
13407
abc66ce9
TT
134082020-03-13 Tom Tromey <tom@tromey.com>
13409
13410 * valprint.c (generic_value_print): Rewrite.
13411
07a32858
TT
134122020-03-13 Tom Tromey <tom@tromey.com>
13413
13414 * p-valprint.c (pascal_object_print_value_fields)
13415 (pascal_object_print_value): New functions.
13416
64d64d3a
TT
134172020-03-13 Tom Tromey <tom@tromey.com>
13418
13419 * p-valprint.c (pascal_value_print_inner): Rewrite.
13420
6a95a1f5
TT
134212020-03-13 Tom Tromey <tom@tromey.com>
13422
13423 * f-valprint.c (f_value_print_innner): Rewrite.
13424
59fcdac6
TT
134252020-03-13 Tom Tromey <tom@tromey.com>
13426
13427 * m2-valprint.c (m2_print_unbounded_array): New overload.
13428 (m2_print_unbounded_array): Update.
13429 (m2_print_array_contents): Take a struct value.
13430 (m2_value_print_inner): Rewrite.
13431
d133c3e1
TT
134322020-03-13 Tom Tromey <tom@tromey.com>
13433
13434 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
13435 (d_value_print_inner): New function.
13436 * d-lang.h (d_value_print_inner): Declare.
13437 * d-lang.c (d_language_defn): Use d_value_print_inner.
13438
23b0f06b
TT
134392020-03-13 Tom Tromey <tom@tromey.com>
13440
13441 * go-valprint.c (go_value_print_inner): New function.
13442 * go-lang.h (go_value_print_inner): Declare.
13443 * go-lang.c (go_language_defn): Use go_value_print_inner.
13444
5f56f7cb
TT
134452020-03-13 Tom Tromey <tom@tromey.com>
13446
13447 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
13448 API.
13449 (rust_val_print): Rewrite.
13450 (rust_value_print_inner): New function, from rust_val_print.
13451 (rust_language_defn): Use rust_value_print_inner.
13452
26792ee0
TT
134532020-03-13 Tom Tromey <tom@tromey.com>
13454
13455 * ada-valprint.c (ada_value_print_inner): New function.
13456 * ada-lang.h (ada_value_print_inner): Declare.
13457 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
13458
24051bbe
TT
134592020-03-13 Tom Tromey <tom@tromey.com>
13460
13461 * f-valprint.c (f_value_print_innner): New function.
13462 * f-lang.h (f_value_print_innner): Declare.
13463 * f-lang.c (f_language_defn): Use f_value_print_innner.
13464
c0941be6
TT
134652020-03-13 Tom Tromey <tom@tromey.com>
13466
13467 * p-valprint.c (pascal_value_print_inner): New function.
13468 * p-lang.h (pascal_value_print_inner): Declare.
13469 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
13470
62c4663d
TT
134712020-03-13 Tom Tromey <tom@tromey.com>
13472
13473 * m2-valprint.c (m2_value_print_inner): New function.
13474 * m2-lang.h (m2_value_print_inner): Declare.
13475 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
13476
62182190
TT
134772020-03-13 Tom Tromey <tom@tromey.com>
13478
13479 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
13480 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
13481 * c-valprint.c (c_value_print_inner): New function.
13482 * c-lang.h (c_value_print_inner): Declare.
13483 * c-lang.c (c_language_defn, cplus_language_defn)
13484 (asm_language_defn, minimal_language_defn): Use
13485 c_value_print_inner.
13486
1e592a8a
TT
134872020-03-13 Tom Tromey <tom@tromey.com>
13488
13489 * p-valprint.c (pascal_object_print_value_fields): Now static.
13490 * p-lang.h (pascal_object_print_value_fields): Don't declare.
13491
7fe471e9
TT
134922020-03-13 Tom Tromey <tom@tromey.com>
13493
13494 * c-valprint.c (c_val_print_array): Simplify.
13495
d121c6ce
TT
134962020-03-13 Tom Tromey <tom@tromey.com>
13497
13498 * valprint.c (value_print_array_elements): New function.
13499 * valprint.h (value_print_array_elements): Declare.
13500
4dba70ee
TT
135012020-03-13 Tom Tromey <tom@tromey.com>
13502
13503 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
13504 * mips-tdep.c (mips_print_register): Use
13505 value_print_scalar_formatted.
13506
4f9ae810
TT
135072020-03-13 Tom Tromey <tom@tromey.com>
13508
13509 * valprint.h (value_print_scalar_formatted): Declare.
13510 * valprint.c (value_print_scalar_formatted): New function.
13511
156bfec9
TT
135122020-03-13 Tom Tromey <tom@tromey.com>
13513
13514 * valprint.h (generic_value_print): Declare.
13515 * valprint.c (generic_value_print): New function.
13516
2b4e573d
TT
135172020-03-13 Tom Tromey <tom@tromey.com>
13518
13519 * valprint.c (do_val_print): Call la_value_print_inner, if
13520 available.
13521 * rust-lang.c (rust_language_defn): Update.
13522 * p-lang.c (pascal_language_defn): Update.
13523 * opencl-lang.c (opencl_language_defn): Update.
13524 * objc-lang.c (objc_language_defn): Update.
13525 * m2-lang.c (m2_language_defn): Update.
13526 * language.h (struct language_defn) <la_value_print_inner>: New
13527 member.
13528 * language.c (unknown_language_defn, auto_language_defn): Update.
13529 * go-lang.c (go_language_defn): Update.
13530 * f-lang.c (f_language_defn): Update.
13531 * d-lang.c (d_language_defn): Update.
13532 * c-lang.c (c_language_defn, cplus_language_defn)
13533 (asm_language_defn, minimal_language_defn): Update.
13534 * ada-lang.c (ada_language_defn): Update.
13535
a1f6a07c
TT
135362020-03-13 Tom Tromey <tom@tromey.com>
13537
13538 * c-valprint.c (c_value_print): Use common_val_print.
13539
410cf315
TT
135402020-03-13 Tom Tromey <tom@tromey.com>
13541
13542 * cp-valprint.c (cp_print_static_field): Use common_val_print.
13543
72a45c93
TT
135442020-03-13 Tom Tromey <tom@tromey.com>
13545
13546 * f-valprint.c (f77_print_array_1, f_val_print): Use
13547 common_val_print.
13548
040f66bd
TT
135492020-03-13 Tom Tromey <tom@tromey.com>
13550
13551 * riscv-tdep.c (riscv_print_one_register_info): Use
13552 common_val_print.
13553
a6e05a6c
TT
135542020-03-13 Tom Tromey <tom@tromey.com>
13555
13556 * mi/mi-main.c (output_register): Use common_val_print.
13557
3444c526
TT
135582020-03-13 Tom Tromey <tom@tromey.com>
13559
13560 * infcmd.c (default_print_one_register_info): Use
13561 common_val_print.
13562
c2a44efe
TT
135632020-03-13 Tom Tromey <tom@tromey.com>
13564
13565 * valprint.h (common_val_print_checked): Declare.
13566 * valprint.c (common_val_print_checked): New function.
13567 * stack.c (print_frame_arg): Use common_val_print_checked.
13568
b0c26e99
TT
135692020-03-13 Tom Tromey <tom@tromey.com>
13570
13571 * valprint.c (do_val_print): New function, from val_print.
13572 (val_print): Use do_val_print.
13573 (common_val_print): Use do_val_print.
13574
ce3acbe9
TT
135752020-03-13 Tom Tromey <tom@tromey.com>
13576
13577 * valprint.c (value_print): Use scoped_value_mark.
13578
96c7f873
TV
135792020-03-13 Tom de Vries <tdevries@suse.de>
13580
13581 PR symtab/25646
13582 * psymtab.c (partial_symtab::partial_symtab): Don't set
13583 globals_offset and statics_offset. Push element onto
13584 current_global_psymbols and current_static_psymbols stacks.
13585 (concat): New function.
13586 (end_psymtab_common): Set globals_offset and statics_offset. Pop
13587 element from current_global_psymbols and current_static_psymbols
13588 stacks. Concat popped elements to global_psymbols and
13589 static_symbols.
13590 (add_psymbol_to_list): Use current_global_psymbols and
13591 current_static_psymbols stacks.
13592 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
13593 current_static_psymbols fields.
13594
6ba0a321
CB
135952020-03-12 Christian Biesinger <cbiesinger@google.com>
13596
13597 * corelow.c (sniff_core_bfd): Remove.
13598 (class core_target) <m_core_vec>: Remove.
13599 (core_target::core_target): Update.
13600 (core_file_fns): Remove.
13601 (deprecated_add_core_fns): Remove.
13602 (default_core_sniffer): Remove.
13603 (sniff_core_bfd): Remove.
13604 (default_check_format): Remove.
13605 (gdb_check_format): Remove.
13606 (core_target_open): Update.
13607 (core_target::get_core_register_section): Update.
13608 (get_core_registers_cb): Update.
13609 (core_target::fetch_registers): Update.
13610 * gdbcore.h (struct core_fns): Remove.
13611 (deprecated_add_core_fns): Remove.
13612 (default_core_sniffer): Remove.
13613 (default_check_format): Remove.
13614
227031b2
TT
136152020-03-12 Tom Tromey <tom@tromey.com>
13616
13617 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
13618 CORE_ADDR.
13619 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
13620
53807e9f
TT
136212020-03-12 Tom Tromey <tom@tromey.com>
13622
13623 * remote.c (remote_target::download_tracepoint)
13624 (remote_target::enable_tracepoint)
13625 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
13626 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
13627 sprintf_vma.
13628
64f25102
TT
136292020-03-12 Tom Tromey <tom@tromey.com>
13630
13631 * symfile-mem.c: Update CORE_ADDR size assert.
13632
272cd5a3
SM
136332020-03-12 Simon Marchi <simon.marchi@efficios.com>
13634
13635 * selftest.m4: Move to gdbsupport/.
13636 * acinclude.m4: Update path to selftest.m4.
13637
74cd3f9d
SM
136382020-03-12 Simon Marchi <simon.marchi@efficios.com>
13639
13640 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
13641 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
13642 gdbarch-selfselftests.c and selftest-arch.c.
13643 (SUBDIR_UNITTESTS_OBS): Rename to...
13644 (SELFTESTS_OBS): ... this.
13645 (COMMON_SFILES): Remove disasm-selftests.c and
13646 gdbarch-selftests.c.
13647 * configure.ac: Don't add selftest-arch.{c,o} to
13648 CONFIG_{SRCS,OBS}.
13649 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
13650 preprocessor conditions.
13651
db6878ac
SM
136522020-03-12 Simon Marchi <simon.marchi@efficios.com>
13653
13654 * configure.ac: Don't source bfd/development.sh.
13655 * selftest.m4: Modify comment.
13656 * configure: Re-generate.
13657
4d696a5c
SM
136582020-03-12 Simon Marchi <simon.marchi@efficios.com>
13659
13660 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
13661 not "true" or "false".
13662 * configure: Re-generate.
13663
8dd8e1c7
CB
136642020-03-12 Christian Biesinger <cbiesinger@google.com>
13665
13666 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
13667 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
13668 renamed to arm_nbsd_supply_gregset.
13669 (fetch_register): Update to call arm_nbsd_supply_gregset.
13670 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
13671 (arm_netbsd_nat_target::fetch_registers): Update.
13672 (fetch_elfcore_registers): Removed.
13673 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
13674 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
13675 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
13676 not require NetBSD system headers.
13677 (arm_nbsd_regset): New struct.
13678 (arm_nbsd_iterate_over_regset_sections): New function.
13679 (arm_netbsd_init_abi_common): Updated to call
13680 set_gdbarch_iterate_over_regset_sections.
13681 * arm-nbsd-tdep.h: New file.
13682
dd69bf7a
KB
136832020-03-11 Kevin Buettner <kevinb@redhat.com>
13684
13685 * symtab.c (find_pc_sect_line): Add check which prevents infinite
13686 recursion.
13687
a0761e34
SM
136882020-03-11 Simon Marchi <simon.marchi@efficios.com>
13689
13690 * configure: Re-generate.
13691
e7a82140
TT
136922020-03-11 Tom Tromey <tromey@adacore.com>
13693
13694 * ada-typeprint.c (print_choices): Fix comment.
13695
dcc050c8
AB
136962020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
13697
13698 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
13699 previous item in the list, when the list has no items.
13700
1c33af77
TV
137012020-03-11 Tom de Vries <tdevries@suse.de>
13702
13703 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
13704 PROP_LOCLIST handling code.
13705
8c95582d
AB
137062020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
13707
13708 * buildsym-legacy.c (record_line): Pass extra parameter to
13709 record_line.
13710 * buildsym.c (buildsym_compunit::record_line): Take an extra
13711 parameter, reduce duplication in the line table, and record the
13712 is_stmt flag in the line table.
13713 * buildsym.h (buildsym_compunit::record_line): Add extra
13714 parameter.
13715 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
13716 non-statement lines.
13717 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
13718 this to the symtab builder.
13719 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
13720 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
13721 through to dwarf_record_line_1.
13722 * infrun.c (process_event_stop_test): When stepping, don't stop at
13723 a non-statement instruction, and only refresh the step info when
13724 we land in the middle of a line's range. Also add an extra
13725 comment.
13726 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
13727 field.
13728 * record-btrace.c (btrace_find_line_range): Only record lines
13729 marked as is-statement.
13730 * stack.c (frame_show_address): Show the frame address if we are
13731 in a non-statement sal.
13732 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
13733 (maintenance_print_one_line_table): Print a header for the is_stmt
13734 column, and include is_stmt information in the output.
13735 * symtab.c (find_pc_sect_line): Find lines marked as statements in
13736 preference to non-statements.
13737 (find_pcs_for_symtab_line): Prefer is-statement entries.
13738 (find_line_common): Likewise.
13739 * symtab.h (struct linetable_entry): Add is_stmt field.
13740 (struct symtab_and_line): Likewise.
13741 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
13742 arranging the line table.
13743
e4003a34
TV
137442020-03-07 Tom de Vries <tdevries@suse.de>
13745
13746 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
13747 DIE.
13748
e8932576
TT
137492020-03-07 Tom Tromey <tom@tromey.com>
13750
13751 * valops.c (value_literal_complex): Remove obsolete comment.
13752 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
13753 comment.
13754
29734269
SM
137552020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
13756
13757 * infrun.h: Forward-declare thread_info.
13758 (set_step_info): Add thread_info parameter, add doc.
13759 * infrun.c (set_step_info): Add thread_info parameter, move doc
13760 to header.
13761 * infrun.c (process_event_stop_test): Pass thread to
13762 set_step_info call.
13763 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
13764 set_step_info.
13765 (prepare_one_step): Add thread_info parameter, pass it to
13766 set_step_frame and prepare_one_step (recursive) call.
13767 (step_1): Pass thread to prepare_one_step call.
13768 (step_command_fsm::should_stop): Pass thread to
13769 prepare_one_step.
13770 (until_next_fsm): Pass thread to set_step_frame call.
13771 (finish_command): Pass thread to set_step_info call.
13772
b7d64b29
HD
137732020-03-06 Hannes Domani <ssbssa@yahoo.de>
13774
13775 * windows-tdep.c (windows_solib_create_inferior_hook):
13776 Check if inferior is running.
13777
09f2921c
TV
137782020-03-06 Tom de Vries <tdevries@suse.de>
13779
13780 * NEWS: Fix "the the".
13781 * ctfread.c: Same.
13782
fd760e79
TV
137832020-03-06 Tom de Vries <tdevries@suse.de>
13784
13785 * psymtab.c (psymtab_to_symtab): Don't print "done.".
13786
20ea4a60
AB
137872020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13788
13789 * .dir-locals.el: Add a comment referencing the other copies of
13790 this file.
13791
0afbabf0
JB
137922020-03-05 John Baldwin <jhb@FreeBSD.org>
13793
13794 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
13795 psargs.
13796
842806cb
TBA
137972020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13798
13799 * .gitattributes: New file.
13800
be1e3d3e
TT
138012020-03-04 Tom Tromey <tom@tromey.com>
13802
13803 * symmisc.c (print_symbol_bcache_statistics)
13804 (print_objfile_statistics): Update.
13805 * symfile.c (allocate_symtab): Use intern.
13806 * psymtab.c (partial_symtab::partial_symtab): Use intern.
13807 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
13808 macro_cache>: Remove.
13809 <string_cache>: New member.
13810 (struct objfile) <intern>: New methods.
13811 * elfread.c (elf_symtab_read): Use intern.
13812 * dwarf2/read.c (fixup_go_packaging): Intern package name.
13813 (dwarf2_compute_name, dwarf2_physname)
13814 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
13815 names.
13816 (guess_partial_die_structure_name): Update.
13817 (partial_die_info::fixup): Intern name.
13818 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
13819 name.
13820 (dwarf2_name): Intern name. Update.
13821 * buildsym.c (buildsym_compunit::get_macro_table): Use
13822 string_cache.
13823
4e7625fd
TT
138242020-03-04 Tom Tromey <tom@tromey.com>
13825
13826 * jit.c (bfd_open_from_target_memory): Make "target" const.
13827 * corefile.c (gnutarget): Now const.
13828 * gdbcore.h (gnutarget): Now const.
13829
46f9f931
HD
138302020-03-04 Hannes Domani <ssbssa@yahoo.de>
13831
13832 * NEWS: Mention support for WOW64 processes.
13833 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
13834 (amd64_windows_segment_register_p): Remove static.
13835 (_initialize_amd64_windows_nat): Update.
13836 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
13837 * i386-windows-nat.c (context_offset): Update.
13838 (i386_mappings): Rename and remove static.
13839 (i386_windows_segment_register_p): Remove static.
13840 (_initialize_i386_windows_nat): Update.
13841 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
13842 (STATUS_WX86_SINGLE_STEP): New macro.
13843 (EnumProcessModulesEx): New macro.
13844 (Wow64SuspendThread): New macro.
13845 (Wow64GetThreadContext): New macro.
13846 (Wow64SetThreadContext): New macro.
13847 (Wow64GetThreadSelectorEntry): New macro.
13848 (windows_set_context_register_offsets): Add static.
13849 (windows_set_segment_register_p): Likewise.
13850 (windows_add_thread): Adapt for WOW64 processes.
13851 (windows_fetch_one_register): Likewise.
13852 (windows_nat_target::fetch_registers): Likewise.
13853 (windows_store_one_register): Likewise.
13854 (display_selector): Likewise.
13855 (display_selectors): Likewise.
13856 (handle_exception): Likewise.
13857 (windows_continue): Likewise.
13858 (windows_nat_target::resume): Likewise.
13859 (windows_add_all_dlls): Likewise.
13860 (do_initial_windows_stuff): Likewise.
13861 (windows_nat_target::attach): Likewise.
13862 (windows_get_exec_module_filename): Likewise.
13863 (windows_nat_target::create_inferior): Likewise.
13864 (windows_xfer_siginfo): Likewise.
13865 (_initialize_loadable): Initialize Wow64SuspendThread,
13866 Wow64GetThreadContext, Wow64SetThreadContext,
13867 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
13868 * windows-nat.h (windows_set_context_register_offsets):
13869 Remove declaration.
13870 (windows_set_segment_register_p): Likewise.
13871 (i386_windows_segment_register_p): Add declaration.
13872 (amd64_windows_segment_register_p): Likewise.
13873
440cf44e
LM
138742020-03-04 Luis Machado <luis.machado@linaro.org>
13875
13876 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
13877 in "info registers" for AArch64/ARM.
13878
13879 The change caused "info registers" to not print GPR's.
13880
13881 gdb/ChangeLog:
13882
13883 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
13884
13885 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13886 when reg->group is empty and reggroup is not.
13887
1009d92f
TT
138882020-03-03 Tom Tromey <tromey@adacore.com>
13889
13890 * dwarf2/frame.c (struct dwarf2_frame_cache)
13891 <checked_tailcall_bottom, entry_cfa_sp_offset,
13892 entry_cfa_sp_offset_p>: Remove members.
13893 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
13894 (dwarf2_frame_prev_register): Don't call
13895 dwarf2_tailcall_sniffer_first.
13896 (dwarf2_append_unwinders): Don't append tailcall unwinder.
13897 * frame-unwind.c (add_unwinder): New fuction.
13898 (frame_unwind_init): Use it. Add tailcall unwinder.
13899
5e5d66b6
AB
139002020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
13901 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13902
13903 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
13904 value should be printed as true.
13905
584cf46d
HD
139062020-03-03 Hannes Domani <ssbssa@yahoo.de>
13907
13908 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
13909 (windows_init_abi): Set and use windows_so_ops.
13910
7b973adc
SDJ
139112020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
13912
13913 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
13914 when verifying if dealing with a convenience variable.
13915
bb7b70ab
LM
139162020-03-03 Luis Machado <luis.machado@linaro.org>
13917
13918 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
13919
9822cb57
SM
139202020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13921
13922 * infrun.c (gdbarch_supports_displaced_stepping): New.
13923 (use_displaced_stepping): Break up conditions in smaller pieces.
13924 Use gdbarch_supports_displaced_stepping.
13925 (displaced_step_prepare_throw): Use
13926 gdbarch_supports_displaced_stepping.
13927
63e163f2
AB
139282020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13929
13930 * NEWS: Mention new behaviour of the history filename.
13931 * top.c (write_history_p): Add comment.
13932 (show_write_history_p): Add header comment, give a different
13933 message when history writing is on, but the history filename is
13934 empty.
13935 (history_filename): Add comment.
13936 (history_filename_empty): New function.
13937 (show_history_filename): Add header comment, give a different
13938 message when the filename is empty.
13939 (init_history): Compare history_filename against nullptr, and only
13940 read history if the filename is not empty.
13941 (set_history_filename): Add header comment, and only make
13942 non-empty filenames absolute.
13943 (init_main): Make the filename argument to 'set history filename'
13944 optional.
13945
81b86b97
CB
139462020-03-02 Christian Biesinger <cbiesinger@google.com>
13947
13948 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
13949 (arm_supply_vfpregset): ...this, and update to use VFP registers.
13950 (fetch_fp_register): Update.
13951 (fetch_fp_regs): Update.
13952 (store_fp_register): Update.
13953 (store_fp_regs): Update.
13954 (arm_netbsd_nat_target::read_description): New function.
13955 (fetch_elfcore_registers): Update.
13956
24ed6739
AB
139572020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13958
13959 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
13960 general_thread if the stop reply is missing a thread-id.
13961 (remote_target::process_stop_reply): Use the first non-exited
13962 thread if the target didn't pass a thread-id.
13963 * infrun.c (do_target_wait): Move call to
13964 switch_to_inferior_no_thread to ....
13965 (do_target_wait_1): ... here.
13966
a84bb2a0
JT
139672020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
13968
13969 * debuginfod-support.c: Include defs.h first.
13970
658dadf0
TV
139712020-02-28 Tom de Vries <tdevries@suse.de>
13972
13973 * symfile.c (set_initial_language): Use default language for lookup.
13974
4ebe4877
SM
139752020-02-28 Simon Marchi <simon.marchi@efficios.com>
13976
13977 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
13978 reader variable, pass `this` to read_cutu_die_from_dwo.
13979
e5da1139
AM
139802020-02-27 Aaron Merey <amerey@redhat.com>
13981
13982 * source.c (open_source_file): Check for nullptr when computing
13983 srcpath.
13984
317f7127
TT
139852020-02-27 Tom Tromey <tromey@adacore.com>
13986
13987 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
13988 member.
13989 (dwarf2_add_field): Don't update nfields.
13990 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
13991
3104d9ee
AB
139922020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
13993
13994 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
13995 abs.
13996
b83470bf
TT
139972020-02-26 Tom Tromey <tom@tromey.com>
13998
13999 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
14000 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
14001 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
14002 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
14003 per_cu_data.
14004
edfe0a0c
TT
140052020-02-26 Tom Tromey <tom@tromey.com>
14006
14007 * dwarf2/index-write.c (psym_index_map): Change type.
14008 (add_address_entry_worker, write_one_signatured_type)
14009 (recursively_count_psymbols, recursively_write_psymbols)
14010 (class debug_names, psyms_seen_size, write_gdbindex)
14011 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
14012
0d79cdc4
AM
140132020-02-26 Aaron Merey <amerey@redhat.com>
14014
14015 * Makefile.in: Handle optional debuginfod support.
14016 * NEWS: Update.
14017 * README: Add --with-debuginfod summary.
14018 * config.in: Regenerate.
14019 * configure: Regenerate.
14020 * configure.ac: Handle optional debuginfod support.
14021 * debuginfod-support.c: debuginfod helper functions.
14022 * debuginfod-support.h: Ditto.
14023 * doc/gdb.texinfo: Add --with-debuginfod to configure options
14024 summary.
14025 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
14026 when a dwz file cannot be found.
14027 * elfread.c (elf_symfile_read): Query debuginfod servers when a
14028 debuginfo file cannot be found.
14029 * source.c (open_source_file): Query debuginfod servers when a
14030 source file cannot be found.
14031 * top.c (print_gdb_configuration): Include
14032 --{with,without}-debuginfod in the output.
14033
b65ce565
JG
140342020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
14035
14036 * thread.c (thr_try_catch_cmd): Print thread name.
14037
d4c9a4f8
SM
140382020-02-26 Simon Marchi <simon.marchi@efficios.com>
14039
14040 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
14041 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14042 dwarf2_fetch_die_type_sect_off): Move to...
14043 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
14044 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14045 dwarf2_fetch_die_type_sect_off): ... here.
14046 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
14047 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14048 dwarf2_fetch_die_type_sect_off): Move doc to header file.
14049
0dce4280
TV
140502020-02-26 Tom de Vries <tdevries@suse.de>
14051
14052 PR gdb/25603
14053 * symfile.c (set_initial_language): Exit-early if
14054 language_mode == language_mode_manual.
14055
450a1bfc
SM
140562020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14057
14058 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
14059 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
14060 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
14061
9e80cfa1
AB
140622020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
14063
14064 * gdbtypes.c (create_array_type_with_stride): Handle negative
14065 array strides.
14066 * valarith.c (value_subscripted_rvalue): Likewise.
14067
09624f1f
LM
140682020-02-25 Luis Machado <luis.machado@linaro.org>
14069
14070 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
14071
8cb5117c
SM
140722020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14073
14074 * loc.h (dwarf2_get_die_type): Move to...
14075 * read.h (dwarf2_get_die_type): ... here.
14076 * read.c (dwarf2_get_die_type): Move doc to header.
14077
c325c44e
JB
140782020-02-25 Joel Brobecker <brobecker@adacore.com>
14079
14080 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
14081 'gnulib/Makefile.in' to the list.
14082
4ac93832
TT
140832020-02-24 Tom Tromey <tom@tromey.com>
14084
14085 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
14086 Remove.
14087 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
14088 XOBNEWVEC.
14089
197400e8
TT
140902020-02-24 Tom Tromey <tom@tromey.com>
14091
14092 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
14093 New method.
14094 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
14095 (dw2_do_instantiate_symtab, dw2_get_file_names)
14096 (build_type_psymtab_dependencies, load_full_type_unit): Update.
14097
76935768
TT
140982020-02-24 Tom Tromey <tom@tromey.com>
14099
14100 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
14101 make_scoped_restore.
14102 (dwarf2_psymtab::read_symtab): Don't clear
14103 reading_partial_symbols.
14104
a88ef40d
TV
141052020-02-24 Tom de Vries <tdevries@suse.de>
14106
14107 PR gdb/25592
14108 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
14109
c9af6521
TV
141102020-02-24 Tom de Vries <tdevries@suse.de>
14111
14112 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
14113 commands layout next/prev/regs.
14114
5707a07a
TT
141152020-02-22 Tom Tromey <tom@tromey.com>
14116
14117 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
14118 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
14119
3b0fb49e
TT
141202020-02-22 Tom Tromey <tom@tromey.com>
14121
14122 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
14123
283be8bf
TT
141242020-02-22 Tom Tromey <tom@tromey.com>
14125
14126 * tui/tui-win.c (_initialize_tui_win): Add usage text.
14127 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
14128 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
14129 * tui/tui.c (_initialize_tui): Add usage text.
14130
ca793b96
TT
141312020-02-22 Tom Tromey <tom@tromey.com>
14132
14133 * tui/tui-win.c (tui_set_focus_command)
14134 (tui_set_win_height_command): Use error_no_arg.
14135 (_initialize_tui_win): Update help text.
14136 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
14137
432b5c40
TT
141382020-02-22 Tom Tromey <tom@tromey.com>
14139
14140 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
14141 * tui/tui-disasm.h (struct tui_disasm_window)
14142 <display_start_addr>: Declare.
14143 * tui/tui-source.h (struct tui_source_window)
14144 <display_start_addr>: Declare.
14145 * tui/tui-winsource.h (struct tui_source_window_base)
14146 <show_source_line, display_start_addr>: New methods.
14147 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
14148 Rename and move to protected section.
14149 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
14150 (tui_source_window_base::do_erase_source_content): Update.
14151 (tui_source_window_base::show_source_line): Now a method.
14152 (tui_source_window_base::show_source_content)
14153 (tui_source_window_base::tui_source_window_base)
14154 (tui_source_window_base::rerender)
14155 (tui_source_window_base::refill)
14156 (tui_source_window_base::do_scroll_horizontal)
14157 (tui_source_window_base::set_is_exec_point_at)
14158 (tui_source_window_base::update_breakpoint_info)
14159 (tui_source_window_base::update_exec_info): Update.
14160 * tui/tui-source.c (tui_source_window::set_contents)
14161 (tui_source_window::showing_source_p)
14162 (tui_source_window::do_scroll_vertical)
14163 (tui_source_window::location_matches_p)
14164 (tui_source_window::line_is_displayed): Update.
14165 (tui_source_window::display_start_addr): New method.
14166 * tui/tui-disasm.c (tui_disasm_window::set_contents)
14167 (tui_disasm_window::do_scroll_vertical)
14168 (tui_disasm_window::location_matches_p): Update.
14169 (tui_disasm_window::display_start_addr): New method.
14170
01b1af32
TT
141712020-02-22 Tom Tromey <tom@tromey.com>
14172
14173 * NEWS: Add entry for gdb.register_window_type.
14174 * tui/tui-layout.h (window_factory): New typedef.
14175 (tui_register_window): Declare.
14176 * tui/tui-layout.c (saved_tui_windows): New global.
14177 (tui_apply_current_layout): Use it.
14178 (tui_register_window): New function.
14179 * python/python.c (do_start_initialization): Call
14180 gdbpy_initialize_tui.
14181 (python_GdbMethods): Add "register_window_type" function.
14182 * python/python-internal.h (gdbpy_register_tui_window)
14183 (gdbpy_initialize_tui): Declare.
14184 * python/py-tui.c: New file.
14185 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
14186
fc96d20b
TT
141872020-02-22 Tom Tromey <tom@tromey.com>
14188
14189 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
14190
935c78c0
TT
141912020-02-22 Tom Tromey <tom@tromey.com>
14192
14193 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
14194 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
14195 * tui/tui-data.c (tui_set_win_with_focus): Remove.
14196 (tui_set_win_focus_to): Move from tui-win.c.
14197
0240c8f1
TT
141982020-02-22 Tom Tromey <tom@tromey.com>
14199
14200 * tui/tui-layout.c (make_standard_window, get_locator_window): New
14201 functions.
14202 (known_window_types): New global.
14203 (tui_get_window_by_name): Reimplement.
14204 (initialize_known_windows): New function.
14205 (validate_window_name): Rewrite.
14206 (_initialize_tui_layout): Call initialize_known_windows.
14207
fdb01f0c
TT
142082020-02-22 Tom Tromey <tom@tromey.com>
14209
14210 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
14211 Remove constants.
14212 * tui/tui-winsource.h (struct tui_source_window_base)
14213 <tui_source_window_base>: Remove parameter.
14214 * tui/tui-winsource.c
14215 (tui_source_window_base::tui_source_window_base): Remove
14216 parameter.
14217 (tui_source_window_base::refill): Update.
14218 * tui/tui-stack.h (struct tui_locator_window)
14219 <tui_locator_window>: Update.
14220 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
14221 Default the constructor.
14222 * tui/tui-regs.h (struct tui_data_item_window)
14223 <tui_data_item_window>: Default the constructor.
14224 (struct tui_data_window) <tui_data_window>: Likewise.
14225 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
14226 Default the constructor.
14227 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
14228 Default the constructor.
14229 <type>: Remove.
14230 (struct tui_win_info) <tui_win_info>: Default the constructor.
14231 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
14232 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
14233 Default the constructor.
14234
865a5aec
TT
142352020-02-22 Tom Tromey <tom@tromey.com>
14236
14237 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
14238 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
14239 * tui/tui-win.c (tui_resize_all): Don't call
14240 tui_delete_invisible_windows.
14241 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
14242 done.
14243 (tui_set_layout): Update.
14244 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
14245 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
14246 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
14247
e098d18c
TT
142482020-02-22 Tom Tromey <tom@tromey.com>
14249
14250 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
14251 correctly.
14252
eb9c8874
TT
142532020-02-22 Tom Tromey <tom@tromey.com>
14254
14255 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
14256
7eed1a8e
TT
142572020-02-22 Tom Tromey <tom@tromey.com>
14258
14259 * tui/tui-winsource.h (struct tui_source_window_iterator)
14260 <inner_iterator>: New etytypedef.
14261 <tui_source_window_iterator>: Take "end" parameter.
14262 <tui_source_window_iterator>: Take iterator.
14263 <operator*, advance>: Update.
14264 <m_iter>: Change type.
14265 <m_end>: New field.
14266 (struct tui_source_windows) <begin, end>: Update.
14267 * tui/tui-layout.c (tui_windows): New global.
14268 (tui_apply_current_layout): Clear tui_windows.
14269 (tui_layout_window::apply): Update tui_windows.
14270 * tui/tui-data.h (tui_windows): Declare.
14271 (all_tui_windows): Now inline function.
14272 (class tui_window_iterator, struct all_tui_windows): Remove.
14273
7c043ba6
TT
142742020-02-22 Tom Tromey <tom@tromey.com>
14275
14276 PR tui/17850:
14277 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
14278 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
14279 "height" argument.
14280 (class tui_layout_window) <get_sizes>: Likewise.
14281 (class tui_layout_split) <tui_layout_split>: Add "vertical"
14282 argument.
14283 <get_sizes>: Add "height" argument.
14284 <m_vertical>: New field.
14285 * tui/tui-layout.c (tui_layout_split::clone): Update.
14286 (tui_layout_split::get_sizes): Add "height" argument.
14287 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
14288 (tui_new_layout_command): Parse "-horizontal".
14289 (_initialize_tui_layout): Update help string.
14290 (tui_layout_split::specification): Add "-horizontal" when needed.
14291 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
14292 argument.
14293 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
14294 New methods.
14295
6bc56648
TT
142962020-02-22 Tom Tromey <tom@tromey.com>
14297
14298 * tui/tui-layout.h (enum tui_adjust_result): New.
14299 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
14300 (class tui_layout_window) <adjust_size>: Return
14301 tui_adjust_result. Rewrite.
14302 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
14303 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
14304
c22fef7e
TT
143052020-02-22 Tom Tromey <tom@tromey.com>
14306
14307 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
14308 parameter and return types.
14309 (class tui_layout_base) <specification>: Add "depth".
14310 (class tui_layout_window) <specification>: Add "depth".
14311 (class tui_layout_split) <specification>: Add "depth".
14312 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
14313 and return types.
14314 (tui_new_layout_command): Parse sub-layouts.
14315 (_initialize_tui_layout): Update help string.
14316 (tui_layout_window::specification): Add "depth".
14317 (add_layout_command): Update.
14318
ee325b61
TT
143192020-02-22 Tom Tromey <tom@tromey.com>
14320
14321 * NEWS: Add "tui new-layout" item.
14322 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
14323 Add new-layout command to help text.
14324 (validate_window_name): New function.
14325 (tui_new_layout_command): New function.
14326 (_initialize_tui_layout): Register "new-layout".
14327 (tui_layout_window::specification): New method.
14328 (tui_layout_window::specification): New method.
14329 * tui/tui-layout.h (class tui_layout_base) <specification>: New
14330 method.
14331 (class tui_layout_window) <specification>: New method.
14332 (class tui_layout_split) <specification>: New method.
14333
416eb92d
TT
143342020-02-22 Tom Tromey <tom@tromey.com>
14335
14336 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
14337 * tui/tui-win.c (window_name_completer): Update comment.
14338 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
14339 Declare method.
14340 (class tui_layout_window) <replace_window>: Likewise.
14341 (class tui_layout_split) <replace_window>: Likewise.
14342 (tui_set_layout): Don't declare.
14343 (tui_set_initial_layout): Declare function.
14344 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
14345 (asm_regs_layout): New globals.
14346 (tui_current_layout, show_layout): Remove.
14347 (tui_set_layout, tui_add_win_to_layout): Rewrite.
14348 (find_layout, tui_apply_layout): New function.
14349 (layout_completer): Remove.
14350 (tui_next_layout): Reimplement.
14351 (tui_next_layout_command): New function.
14352 (tui_set_initial_layout, tui_prev_layout_command): New functions.
14353 (tui_regs_layout): Reimplement.
14354 (tui_regs_layout_command): New function.
14355 (extract_display_start_addr): Rewrite.
14356 (next_layout, prev_layout): Remove.
14357 (tui_layout_window::replace_window): New method.
14358 (tui_layout_split::replace_window): New method.
14359 (destroy_layout): New function.
14360 (layout_list): New global.
14361 (add_layout_command): New function.
14362 (initialize_layouts): Update.
14363 (tui_layout_command): New function.
14364 (_initialize_tui_layout): Install "layout" commands.
14365 * tui/tui-data.h (enum tui_layout_type): Remove.
14366 (tui_current_layout): Don't declare.
14367
0dbc2fc7
TT
143682020-02-22 Tom Tromey <tom@tromey.com>
14369
14370 * tui/tui-regs.c (tui_reg_layout): Remove.
14371 (tui_reg_command): Use tui_regs_layout.
14372 * tui/tui-layout.h (tui_reg_command): Declare.
14373 * tui/tui-layout.c (tui_reg_command): New function.
14374
5afe342e
TT
143752020-02-22 Tom Tromey <tom@tromey.com>
14376
14377 * tui/tui.c (tui_rl_delete_other_windows): Call
14378 tui_remove_some_windows.
14379 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
14380 Declare method.
14381 (class tui_layout_window) <remove_windows>: New method.
14382 (class tui_layout_split) <remove_windows>: Declare.
14383 (tui_remove_some_windows): Declare.
14384 * tui/tui-layout.c (tui_remove_some_windows): New function.
14385 (tui_layout_split::remove_windows): New method.
14386
427326a8
TT
143872020-02-22 Tom Tromey <tom@tromey.com>
14388
14389 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
14390 * tui/tui-layout.h (tui_next_layout): Declare.
14391 * tui/tui-layout.c (tui_next_layout): New function.
14392
3fe12b6d
TT
143932020-02-22 Tom Tromey <tom@tromey.com>
14394
14395 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
14396 correct coordinates.
14397
59b8b5d2
TT
143982020-02-22 Tom Tromey <tom@tromey.com>
14399
14400 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
14401 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
14402 DATA_WIN case.
14403
2a3d458b
TT
144042020-02-22 Tom Tromey <tom@tromey.com>
14405
14406 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
14407 TUI_DISASM_WIN, not tui_win_list.
14408
3f0cbb04
TT
144092020-02-22 Tom Tromey <tom@tromey.com>
14410
14411 * valprint.c (generic_val_print_enum_1)
14412 (val_print_type_code_flags): Style member names.
14413 * rust-lang.c (val_print_struct, rust_print_enum)
14414 (rust_print_struct_def, rust_internal_print_type): Style member
14415 names.
14416 * p-valprint.c (pascal_object_print_value_fields): Style member
14417 names. Only call fprintf_symbol_filtered for static members.
14418 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
14419 * f-valprint.c (f_val_print): Style member names.
14420 * f-typeprint.c (f_type_print_base): Style member names.
14421 * cp-valprint.c (cp_print_value_fields): Style member names. Only
14422 call fprintf_symbol_filtered for static members.
14423 (cp_print_class_member): Style member names.
14424 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
14425 member names.
14426 * ada-valprint.c (ada_print_scalar): Style enum names.
14427 (ada_val_print_enum): Likewise.
14428 * ada-typeprint.c (print_enum_type): Style enum names.
14429
d4d947ae
TT
144302020-02-21 Tom Tromey <tom@tromey.com>
14431
14432 * psympriv.h (struct partial_symtab): Update comment.
14433
e94e944b
TT
144342020-02-21 Tom Tromey <tromey@adacore.com>
14435
14436 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
14437 type is CORE_ADDR.
14438
1eb73179
TV
144392020-02-21 Tom de Vries <tdevries@suse.de>
14440
14441 PR gdb/25534
14442 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
14443 if dependencies[i]->user != NULL.
14444
4f180d53
AT
144452020-02-21 Ali Tamur <tamur@google.com>
14446
14447 * dwarf2/read.c (dwarf2_name): Add null check.
14448
22b6cd70
TT
144492020-02-20 Tom Tromey <tom@tromey.com>
14450
14451 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
14452 ">=", in binary search.
14453 (dwarf2_find_containing_comp_unit): New overload.
14454 (run_test): New self-test.
14455 (_initialize_dwarf2_read): Register new test.
14456
bd0cf5a6
NC
144572020-02-20 Nelson Chu <nelson.chu@sifive.com>
14458
14459 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
14460 * riscv-tdep.h: Likewise.
14461 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
14462 rv32-only CSR.
14463 * features/riscv/64bit-csr.xml: Regenerated.
14464
3f702acd
SDJ
144652020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
14466 Tom Tromey <tom@tromey.com>
14467
14468 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
14469 of 'fputc_unfiltered'.
14470 (putchar_unfiltered): Call 'fputc_unfiltered'.
14471 (fputc_unfiltered): Call 'fputs_unfiltered'.
14472
d13c7322
AB
144732020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
14474
14475 * config.in: Regenerate.
14476 * configure: Regenerate.
14477 * configure.ac: Add --with-python-libdir option.
14478 * main.c: Use WITH_PYTHON_LIBDIR.
14479
869d8950
TT
144802020-02-19 Tom Tromey <tom@tromey.com>
14481
14482 * symtab.c (general_symbol_info::compute_and_set_names): Use
14483 obstack_strndup. Simplify call to symbol_set_demangled_name.
14484
298e9637
SM
144852020-02-19 Simon Marchi <simon.marchi@efficios.com>
14486
14487 * dwarf2/read.c (allocate_signatured_type_table,
14488 allocate_dwo_unit_table, allocate_type_unit_groups_table,
14489 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
14490 Remove objfile parameter, update all callers.
14491
08410482
DE
144922020-02-19 Doug Evans <dje@google.com>
14493
14494 PR rust/25535
14495 * rust-lang.c (rust_print_enum): Apply embedded_offset to
14496 rust_enum_variant calculation.
14497
dfdeeca1
TT
144982020-02-19 Tom Tromey <tromey@adacore.com>
14499
14500 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
14501
2ef5453b
TT
145022020-02-19 Tom Tromey <tromey@adacore.com>
14503
14504 * ada-lang.c (cache_symbol): Use obstack_strdup.
14505
9f1528a1
AB
145062020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14507
14508 * configure: Regenerate.
14509
d3c22fa8
TT
145102020-02-19 Tom Tromey <tromey@adacore.com>
14511
14512 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
14513 NULL check.
14514
bf84f706
MR
145152020-02-19 Maciej W. Rozycki <macro@wdc.com>
14516
14517 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
14518
d1c9b20f
AB
145192020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14520
14521 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
14522 if GDBSERVER is not defined.
14523 (riscv_tdesc_cache): Likewise, also store const target_desc.
14524 (STATIC_IN_GDB): Define.
14525 (riscv_create_target_description): Update declaration with
14526 STATIC_IN_GDB.
14527 (riscv_lookup_target_description): New function, only define if
14528 GDBSERVER is not defined.
14529 * arch/riscv.h (riscv_create_target_description): Declare only
14530 when GDBSERVER is defined.
14531 (riscv_lookup_target_description): New declaration when GDBSERVER
14532 is not defined.
14533 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
14534 (riscv_linux_read_features): ...this, and return
14535 riscv_gdbarch_features instead of target_desc.
14536 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
14537 (riscv_linux_read_description): Rename to...
14538 (riscv_linux_read_features): ...this.
14539 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14540 Update to use riscv_gdbarch_features and
14541 riscv_lookup_target_description.
14542 * riscv-tdep.c (riscv_find_default_target_description): Use
14543 riscv_lookup_target_description instead of
14544 riscv_create_target_description.
14545
373d7ac0
SM
145462020-02-18 Simon Marchi <simon.marchi@efficios.com>
14547
14548 * valprint.c (generic_val_print_enum_1): When printing a flag
14549 enum with value 0 and there is no enumerator with value 0, print
14550 just "0" instead of "(unknown: 0x0)".
14551
b29a2df0
SM
145522020-02-18 Simon Marchi <simon.marchi@efficios.com>
14553
14554 * valprint.c (generic_val_print_enum_1): Print unknown part of
14555 flag enum in hex.
14556
6740f0cc
SM
145572020-02-18 Simon Marchi <simon.marchi@efficios.com>
14558
14559 * dwarf2/read.c (update_enumeration_type_from_children): Allow
14560 flag enums to contain duplicate enumerators.
14561 * valprint.c (generic_val_print_enum_1): Update comment.
14562
edd45eb0
SM
145632020-02-18 Simon Marchi <simon.marchi@efficios.com>
14564
14565 * dwarf2/read.c: Include "count-one-bits.h".
14566 (update_enumeration_type_from_children): If an enumerator has
14567 multiple bits set, don't treat the enumeration as a "flag enum".
14568 * valprint.c (generic_val_print_enum_1): Assert that enumerators
14569 of flag enums have 0 or 1 bit set.
14570
6d0cf446
BE
145712020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
14572
14573 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
14574 conversion.
14575 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14576 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14577 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14578 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14579 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14580
7001c1b7
SM
145812020-02-18 Simon Marchi <simon.marchi@efficios.com>
14582
14583 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
14584
fdb61c6c
SM
145852020-02-14 Simon Marchi <simon.marchi@efficios.com>
14586
14587 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
14588 displaced_step_closure_up.
14589 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14590 (struct displaced_step_closure_up):
14591 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14592 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14593 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
14594 Likewise.
14595 * gdbarch.sh (displaced_step_copy_insn): Likewise.
14596 * gdbarch.c, gdbarch.h: Re-generate.
14597 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
14598 displaced_step_closure_up.
14599 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14600 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14601 * infrun.h (displaced_step_closure_up): New type alias.
14602 (struct displaced_step_inferior_state) <step_closure>: Change
14603 type to displaced_step_closure_up.
14604 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
14605 displaced_step_closure_up.
14606 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14607
a4a38eb4
TT
146082020-02-14 Tom Tromey <tom@tromey.com>
14609
14610 * minidebug.c (gnu_debug_key): New global.
14611 (find_separate_debug_file_in_section): Use it.
14612
e8217e61
SM
146132020-02-14 Simon Marchi <simon.marchi@efficios.com>
14614
14615 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
14616 std::unique_ptr.
14617 * gdbarch.c: Re-generate.
14618 * gdbarch.h: Re-generate.
14619 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
14620 change.
14621 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
14622 type to std::unique_ptr.
14623 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14624 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14625 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14626 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14627 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
14628 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14629 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14630 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14631 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14632
d8d83535
SM
146332020-02-14 Simon Marchi <simon.marchi@efficios.com>
14634
14635 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
14636 std::unique_ptr.
14637 (displaced_step_clear): Rename to...
14638 (displaced_step_reset): ... this. Just call displaced->reset ().
14639 (displaced_step_clear_cleanup): Rename to...
14640 (displaced_step_reset_cleanup): ... this.
14641 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
14642 (displaced_step_fixup): Likewise.
14643 (resume_1): Likewise.
14644 (handle_inferior_event): Restore child's memory before calling
14645 displaced_step_fixup on the parent.
14646 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
14647 to std::unique_ptr.
14648 <step_closure>: Change type to std::unique_ptr.
14649
5f661e03
SM
146502020-02-14 Simon Marchi <simon.marchi@efficios.com>
14651
14652 * arm-tdep.c: Include count-one-bits.h.
14653 (cleanup_block_store_pc): Use count_one_bits.
14654 (cleanup_block_load_pc): Use count_one_bits.
14655 (arm_copy_block_xfer): Use count_one_bits.
14656 (thumb2_copy_block_xfer): Use count_one_bits.
14657 (thumb_copy_pop_pc_16bit): Use count_one_bits.
14658 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
14659 (thumb_get_next_pcs_raw): Use count_one_bits.
14660 (arm_get_next_pcs_raw): Use count_one_bits_l.
14661 * arch/arm.c (bitcount): Remove.
14662 * arch/arm.h (bitcount): Remove.
14663
8084e579
TT
146642020-02-14 Tom Tromey <tromey@adacore.com>
14665
14666 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
14667 Update.
14668 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
14669 * dwarf2/loc.c (call_site_find_chain_1): Return
14670 unique_xmalloc_ptr.
14671 (call_site_find_chain): Likewise.
14672
258bf0ee
RB
146732020-02-14 Richard Biener <rguenther@suse.de>
14674
14675 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
14676 on expression with division operators.
14677
f98a8458
AKS
146782020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14679
14680 * MAINTAINERS (Write After Approval): Adding myself.
14681
d1437c0e
TT
146822020-02-12 Tom Tromey <tom@tromey.com>
14683
14684 * event-loop.c (event_data, gdb_event, event_handler_func):
14685 Remove.
14686
3d4560f7
TT
146872020-02-12 Tom Tromey <tom@tromey.com>
14688
14689 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
14690 (dwarf2_frame_objfile_data): Add comment.
14691 (find_comp_unit, set_comp_unit): New functions.
14692 (dwarf2_frame_find_fde): Use find_comp_unit.
14693 (dwarf2_build_frame_info): Use set_comp_unit.
14694
21982304
TT
146952020-02-12 Tom Tromey <tom@tromey.com>
14696
14697 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
14698 (comp_unit): Don't initialize objfile.
14699 (execute_cfa_program): Add text_offset parameter.
14700 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
14701 (dwarf2_frame_cache): Update.
14702 (dwarf2_build_frame_info): Don't set "objfile" member.
14703
4debb237
TT
147042020-02-12 Tom Tromey <tom@tromey.com>
14705
14706 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
14707 (decode_frame_entry): Likewise.
14708 (dwarf2_build_frame_info): Update.
14709
0d404d44
TT
147102020-02-12 Tom Tromey <tom@tromey.com>
14711
14712 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
14713 (decode_frame_entry_1): Use the comp_unit obstack.
14714
a7a3ae5c
TT
147152020-02-12 Tom Tromey <tom@tromey.com>
14716
14717 * dwarf2/frame.c (struct comp_unit): Add initializers and
14718 constructor.
14719 (dwarf2_frame_objfile_data): Store a comp_unit.
14720 (dwarf2_frame_find_fde): Update.
14721 (dwarf2_build_frame_info): Use "new".
14722
a9d65418
TT
147232020-02-12 Tom Tromey <tom@tromey.com>
14724
14725 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
14726 (dwarf2_fde_table): Typedef for std::vector.
14727 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
14728 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
14729 (decode_frame_entry): Update.
14730 (dwarf2_build_frame_info): Use "new".
14731
7559c217
CB
147322020-02-12 Christian Biesinger <cbiesinger@google.com>
14733
14734 * arm-tdep.c (arm_gdbarch_init): Update.
14735 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
14736 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
14737 have_neon, is_m>: Change to bool.
14738
aeefc73c
CB
147392020-02-12 Christian Biesinger <cbiesinger@google.com>
14740
14741 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
14742
d27b8e5f
TT
147432020-02-12 Tom Tromey <tom@tromey.com>
14744
14745 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
14746
cd5900f3
HD
147472020-02-12 Hannes Domani <ssbssa@yahoo.de>
14748
14749 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
14750 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
14751
f056b22b
TT
147522020-02-11 Tom Tromey <tom@tromey.com>
14753
14754 * psymtab.h: Update comment.
14755
f92ff6b5
TT
147562020-02-11 Tom Tromey <tom@tromey.com>
14757
14758 * gdb_obstack.h (struct auto_obstack): Use
14759 DISABLE_COPY_AND_ASSIGN.
14760
3fd6912b
TT
147612020-02-11 Tom Tromey <tom@tromey.com>
14762
14763 * dwarf2/frame.h (struct objfile): Don't forward declare.
14764
69ed9b74
CB
147652020-02-11 Christian Biesinger <cbiesinger@google.com>
14766
14767 * cris-tdep.c (cris_supply_gregset): Change signature to match
14768 what struct regset expects.
14769 (cris_regset): New struct.
14770 (fetch_core_registers): Remove.
14771 (cris_iterate_over_regset_sections): New function.
14772 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
14773 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
14774
bda874f6
CB
147752020-02-11 Christian Biesinger <cbiesinger@google.com>
14776
14777 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
14778 registers.
14779
754e1564
CB
147802020-02-11 Christian Biesinger <cbiesinger@google.com>
14781
14782 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
14783
8ddd8e0e
SM
147842020-02-11 Simon Marchi <simon.marchi@efficios.com>
14785
14786 * configure: Re-generate.
14787
898e7f60
SM
147882020-02-11 Simon Marchi <simon.marchi@efficios.com>
14789
14790 * configure: Re-generate.
14791
58df732b
SM
147922020-02-11 Simon Marchi <simon.marchi@efficios.com>
14793
14794 * acinclude: Update warning.m4 path.
14795 * warning.m4: Move to gdbsupport.
14796
da5bd37e
TT
147972020-02-11 Tom Tromey <tromey@adacore.com>
14798
14799 * remote.c (remote_console_output): Update.
14800 * printcmd.c (printf_command): Update.
14801 * event-loop.c (gdb_wait_for_event): Update.
14802 * linux-nat.c (sigchld_handler): Update.
14803 * remote-sim.c (gdb_os_write_stdout): Update.
14804 (gdb_os_flush_stdout): Update.
14805 (gdb_os_flush_stderr): Update.
14806 (gdb_os_write_stderr): Update.
14807 * exceptions.c (print_exception): Update.
14808 * remote-fileio.c (remote_fileio_func_read): Update.
14809 (remote_fileio_func_write): Update.
14810 * tui/tui.c (tui_enable): Update.
14811 * tui/tui-interp.c (tui_interp::init): Update.
14812 * utils.c (init_page_info): Update.
14813 (putchar_unfiltered, fputc_unfiltered): Update.
14814 (gdb_flush): Update.
14815 (emit_style_escape): Update.
14816 (flush_wrap_buffer, fputs_maybe_filtered): Update.
14817 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
14818 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
14819 (stderr_file::write): Update.
14820 (stderr_file::puts): Update.
14821 * ui-file.h (ui_file_isatty, ui_file_write)
14822 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
14823 (ui_file_puts): Don't declare.
14824
85f0dd3c
TV
148252020-02-10 Tom de Vries <tdevries@suse.de>
14826
14827 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
14828 sentinel to char *.
14829
2e927613
TV
148302020-02-09 Tom de Vries <tdevries@suse.de>
14831
14832 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
14833 filename if it matches "<artificial>".
14834
6bafc845
HD
148352020-02-09 Hannes Domani <ssbssa@yahoo.de>
14836
14837 * windows-tdep.c (struct enum_value_name): New struct.
14838 (create_enum): New function.
14839 (windows_get_siginfo_type): Create and use enum types.
14840
7928d571
HD
148412020-02-09 Hannes Domani <ssbssa@yahoo.de>
14842
14843 * NEWS: Mention $_siginfo support for Windows.
14844 * windows-nat.c (handle_exception): Set siginfo_er.
14845 (windows_nat_target::mourn_inferior): Reset siginfo_er.
14846 (windows_xfer_siginfo): New function.
14847 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
14848 * windows-tdep.c (struct windows_gdbarch_data): New struct.
14849 (init_windows_gdbarch_data): New function.
14850 (get_windows_gdbarch_data): New function.
14851 (windows_get_siginfo_type): New function.
14852 (windows_init_abi): Register windows_get_siginfo_type.
14853 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
14854
6751ebae
TT
148552020-02-08 Tom Tromey <tom@tromey.com>
14856
14857 * dwarf2/read.c (class cutu_reader) <cutu_reader,
14858 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
14859 <keep>: Declare method.
14860 <m_keep>: Remove member.
14861 <~cutu_reader>: Remove.
14862 (cutu_reader::init_tu_and_read_dwo_dies): Update.
14863 (cutu_reader::cutu_reader): Update.
14864 (cutu_reader::keep): Rename from ~cutu_reader.
14865 (process_psymtab_comp_unit, build_type_psymtabs_1)
14866 (process_skeletonless_type_unit, load_partial_comp_unit)
14867 (load_full_comp_unit, dwarf2_read_addr_index)
14868 (read_signatured_type): Update.
14869
135f5437
TT
148702020-02-08 Tom Tromey <tom@tromey.com>
14871
14872 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
14873 "want_partial_unit" parameter.
14874 (process_psymtab_comp_unit): Change want_partial_unit to bool.
14875 Inline check for DW_TAG_partial_unit.
14876 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
14877
9f66ff1c
TT
148782020-02-08 Tom Tromey <tom@tromey.com>
14879
14880 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
14881 read.c.
14882 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
14883 read.c.
14884
c8a7a66f
TT
148852020-02-08 Tom Tromey <tom@tromey.com>
14886
14887 * dwarf2/read.c (read_address): Move to comp-unit.c.
14888 (dwarf2_rnglists_process, dwarf2_ranges_process)
14889 (read_attribute_value, dwarf_decode_lines_1)
14890 (var_decode_location, decode_locdesc): Update.
14891 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
14892 read.c. Remove "cu" parameter.
14893 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
14894 method.
14895
8266302d
TT
148962020-02-08 Tom Tromey <tom@tromey.com>
14897
14898 * dwarf2/read.c (read_attribute_value, read_indirect_string)
14899 (read_indirect_line_string): Update.
14900 * dwarf2/comp-unit.c (read_offset): Remove.
14901 (read_comp_unit_head): Update.
14902 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
14903 method.
14904 (read_offset): Don't declare.
14905
4057dfde
TT
149062020-02-08 Tom Tromey <tom@tromey.com>
14907
14908 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
14909 * dwarf2/read.c (struct comp_unit_head): Move to
14910 dwarf2/comp-unit.h.
14911 (enum class rcuh_kind): Move to comp-unit.h.
14912 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
14913 (read_comp_unit_head, error_check_comp_unit_head)
14914 (read_and_check_comp_unit_head): Move to comp-unit.c.
14915 (read_offset, dwarf_unit_type_name): Likewise.
14916 (create_debug_type_hash_table, read_cutu_die_from_dwo)
14917 (cutu_reader::cutu_reader, read_call_site_scope)
14918 (find_partial_die, follow_die_offset): Update.
14919 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
14920
24aa364d
TT
149212020-02-08 Tom Tromey <tom@tromey.com>
14922
14923 * dwarf2/read.c (read_offset_1): Move to leb.c.
14924 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
14925 (dwarf_decode_macro_bytes): Update.
14926 * dwarf2/leb.c (read_offset): Rename; move from read.c.
14927 * dwarf2/leb.h (read_offset): Declare.
14928
2c7d5afc
TT
149292020-02-08 Tom Tromey <tom@tromey.com>
14930
14931 * dwarf2/read.c (dwarf2_section_size): Remove.
14932 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
14933 Update.
14934 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
14935
4075cb26
TT
149362020-02-08 Tom Tromey <tom@tromey.com>
14937
14938 * dwarf2/read.c (read_initial_length): Move to leb.c.
14939 * dwarf2/leb.h (read_initial_length): Declare.
14940 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
14941 handle_nonstd parameter.
14942 * dwarf2/frame.c (read_initial_length): Remove.
14943 (decode_frame_entry_1): Update.
14944
09ba997f
TT
149452020-02-08 Tom Tromey <tom@tromey.com>
14946
14947 * dwarf2/loc.c (dwarf2_find_location_expression)
14948 (dwarf_evaluate_loc_desc::get_tls_address)
14949 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
14950 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
14951 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
14952 (dwarf2_compile_property_to_c)
14953 (dwarf2_loc_desc_get_symbol_read_needs)
14954 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
14955 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
14956 (loclist_describe_location, loclist_tracepoint_var_ref)
14957 (loclist_generate_c_location): Update.
14958 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
14959 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
14960 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
14961 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
14962 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
14963 (dwarf2_per_cu_data::addr_size)
14964 (dwarf2_per_cu_data::ref_addr_size)
14965 (dwarf2_per_cu_data::text_offset)
14966 (dwarf2_per_cu_data::addr_type): Now methods.
14967 (per_cu_header_read_in): Make per_cu "const".
14968 (dwarf2_version): Remove.
14969 (dwarf2_per_cu_data::int_type): Now a method.
14970 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
14971 (set_die_type, read_array_type, read_subrange_index_type)
14972 (read_tag_string_type, read_subrange_type): Update.
14973 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
14974 offset_size, ref_addr_size, text_offset, addr_type, version,
14975 objfile, int_type, addr_sized_int_type>: Declare methods.
14976
96c738c0
TT
149772020-02-08 Tom Tromey <tom@tromey.com>
14978
14979 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
14980 Move earlier.
14981
8fdd972c
TT
149822020-02-08 Tom Tromey <tom@tromey.com>
14983
14984 * dwarf2/read.h (dwarf_line_debug): Declare.
14985 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
14986 * dwarf2/read.c: Move line_header code to new files.
14987 (dwarf_line_debug): No longer static.
14988 * dwarf2/line-header.c: New file.
14989 * dwarf2/line-header.h: New file.
14990
03075812
TT
149912020-02-08 Tom Tromey <tom@tromey.com>
14992
14993 * dwarf2/read.c (struct line_header) <file_full_name,
14994 file_file_name>: Return unique_xmalloc_ptr.
14995 (line_header::file_file_name): Update.
14996 (line_header::file_full_name): Update.
14997 (dw2_get_file_names_reader): Update.
14998 (macro_start_file): Update.
14999
bb822404
TT
150002020-02-08 Tom Tromey <tom@tromey.com>
15001
15002 * dwarf2/read.c (struct line_header) <file_full_name,
15003 file_file_name>: Declare methods.
15004 (dw2_get_file_names_reader): Update.
15005 (file_file_name): Now a method.
15006 (file_full_name): Likewise.
15007 (macro_start_file): Update.
15008
009b64fc
TT
150092020-02-08 Tom Tromey <tom@tromey.com>
15010
15011 * dwarf2/read.c (dwarf_always_disassemble)
15012 (show_dwarf_always_disassemble): Move to loc.c.
15013 (_initialize_dwarf2_read): Move "always-disassemble" registration
15014 to loc.c.
15015 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
15016 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
15017 static.
15018 (show_dwarf_always_disassemble): Move from read.c.
15019 (_initialize_dwarf2loc): Move always-disassemble from read.c.
15020
5895093f
TT
150212020-02-08 Tom Tromey <tom@tromey.com>
15022
15023 * dwarf2/read.c (~dwarf2_per_objfile): Update.
15024 (create_quick_file_names_table): Return htab_up.
15025 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
15026 Update.
15027 * dwarf2/read.h (struct dwarf2_per_objfile)
15028 <quick_file_names_table>: Now htab_up.
15029
b3b32279
TT
150302020-02-08 Tom Tromey <tom@tromey.com>
15031
15032 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
15033
1d33d811
TT
150342020-02-08 Tom Tromey <tom@tromey.com>
15035
15036 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
15037 Rewrite.
15038 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
15039 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
15040 (abbrev_table::abbrev_table): No longer inline.
15041 (ABBREV_HASH_SIZE): Remove.
15042 (abbrev_table::m_abbrevs): Now an htab_up.
15043
86de1d91
TT
150442020-02-08 Tom Tromey <tom@tromey.com>
15045
15046 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
15047 (cutu_reader): Update.
15048 (build_type_psymtabs_1): Update.
15049 * dwarf2/abbrev.c (abbrev_table::read): Rename.
15050 (abbrev_table::alloc_abbrev): Update.
15051 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
15052 (abbrev_table::read): New static method, renamed from
15053 abbrev_table_read_table.
15054 (abbrev_table::alloc_abbrev)
15055 (abbrev_table::add_abbrev): Now private.
15056 (abbrev_table::abbrev_table): Now private.
15057 (abbrev_table::m_abbrev_obstack): Now private. Rename.
15058
0335378b
TT
150592020-02-08 Tom Tromey <tom@tromey.com>
15060
15061 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
15062 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
15063 htab_up.
15064
48b490f2
TT
150652020-02-08 Tom Tromey <tom@tromey.com>
15066
15067 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
15068 htab_up.
15069 (lookup_dwo_unit_in_dwp): Update.
15070 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
15071 on obstack.
15072
bc68fb19
TT
150732020-02-08 Tom Tromey <tom@tromey.com>
15074
15075 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
15076 obstack.
15077
d15acc42
TT
150782020-02-08 Tom Tromey <tom@tromey.com>
15079
15080 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
15081 line_header_hash.
15082 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
15083 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
15084 Change type to htab_up.
15085
eaa5fa8b
TT
150862020-02-08 Tom Tromey <tom@tromey.com>
15087
15088 * dwarf2/read.c (allocate_type_unit_groups_table): Return
15089 htab_up. Don't allocate on obstack.
15090 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
15091 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
15092 Change type to htab_up.
15093
b0b6a987
TT
150942020-02-08 Tom Tromey <tom@tromey.com>
15095
15096 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
15097 Change type to htab_up.
15098 * dwarf2/read.c (create_signatured_type_table_from_index)
15099 (create_signatured_type_table_from_debug_names)
15100 (create_all_type_units, add_type_unit)
15101 (lookup_dwo_signatured_type, lookup_signatured_type)
15102 (process_skeletonless_type_unit): Update.
15103 (create_debug_type_hash_table, create_debug_types_hash_table):
15104 Change type of types_htab.
15105 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
15106 htab_up. Don't allocate on obstack.
15107 (create_cus_hash_table): Change type of cus_htab parameter.
15108 (struct dwo_file) <cus, tus>: Now htab_up.
15109 (lookup_dwo_signatured_type, lookup_dwo_cutu)
15110 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
15111 (queue_and_load_all_dwo_tus): Update.
15112 * dwarf2/index-write.c (write_gdbindex): Update.
15113 (write_debug_names): Update.
15114
39856def
TT
151152020-02-08 Tom Tromey <tom@tromey.com>
15116
15117 * dwarf2/read.h (struct dwarf2_queue_item): Move from
15118 dwarf2/read.c. Remove "next" member. Add constructor ntad
15119 destructor.
15120 (struct dwarf2_per_objfile) <queue>: New member.
15121 * dwarf2/read.c (struct dwarf2_queue_item): Move to
15122 dwarf2/read.h.
15123 (dwarf2_queue, dwarf2_queue_tail): Remove.
15124 (class dwarf2_queue_guard): Add parameter to constructor. Use
15125 DISABLE_COPY_AND_ASSIGN.
15126 <m_per_objfile>: New member.
15127 <~dwarf2_queue_guard>: Rewrite.
15128 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
15129 Update.
15130 (~dwarf2_queue_item): New.
15131
3e225074
TT
151322020-02-08 Tom Tromey <tom@tromey.com>
15133
15134 * dwarf2/read.c (struct die_info) <has_children>: New member.
15135 (dw2_get_file_names_reader): Remove has_children.
15136 (dw2_get_file_names): Update.
15137 (read_cutu_die_from_dwo): Remove has_children.
15138 (cutu_reader::init_tu_and_read_dwo_dies)
15139 (cutu_reader::cutu_reader): Update.
15140 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
15141 Remove has_children.
15142 (build_type_psymtabs_1, process_skeletonless_type_unit)
15143 (load_partial_comp_unit, load_full_comp_unit): Update.
15144 (create_dwo_cu_reader): Remove has_children.
15145 (create_cus_hash_table, read_die_and_children): Update.
15146 (read_full_die_1,read_full_die): Remove has_children.
15147 (read_signatured_type): Update.
15148 (class cutu_reader) <has_children>: Remove.
15149
82ca8957
TT
151502020-02-08 Tom Tromey <tom@tromey.com>
15151
15152 * dwarf2/expr.c: Rename from dwarf2expr.c.
15153 * dwarf2/expr.h: Rename from dwarf2expr.h.
15154 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
15155 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
15156 * dwarf2/frame.c: Rename from dwarf2-frame.c.
15157 * dwarf2/frame.h: Rename from dwarf2-frame.h.
15158 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
15159 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
15160 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
15161 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
15162 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
15163 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
15164 * dwarf2/loc.c: Rename from dwarf2loc.c.
15165 * dwarf2/loc.h: Rename from dwarf2loc.h.
15166 * dwarf2/read.c: Rename from dwarf2read.c.
15167 * dwarf2/read.h: Rename from dwarf2read.h.
15168 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
15169 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
15170 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
15171 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
15172 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
15173 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
15174 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
15175 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
15176 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
15177 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
15178 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
15179 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
15180 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
15181 Update.
15182 * Makefile.in (COMMON_SFILES): Update.
15183 (HFILES_NO_SRCDIR): Update.
15184
9e35d499
TT
151852020-02-08 Tom Tromey <tom@tromey.com>
15186
15187 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
15188 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
15189
1eba2311
TT
151902020-02-08 Tom Tromey <tom@tromey.com>
15191
15192 * dwarf2read.h (struct die_info): Don't declare.
15193
e41c2da2
TT
151942020-02-08 Tom Tromey <tom@tromey.com>
15195
15196 * dwarf2read.h (die_info_ptr): Remove typedef.
15197
4fc6c0d5
TT
151982020-02-08 Tom Tromey <tom@tromey.com>
15199
15200 * dwarf2read.c (read_call_site_scope)
15201 (handle_data_member_location, dwarf2_add_member_fn)
15202 (mark_common_block_symbol_computed, read_common_block)
15203 (attr_to_dynamic_prop, partial_die_info::read)
15204 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
15205 (dwarf2_symbol_mark_computed, set_die_type): Update.
15206 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
15207 method.
15208 (attr_form_is_block): Don't declare.
15209 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
15210
cd6c91b4
TT
152112020-02-08 Tom Tromey <tom@tromey.com>
15212
15213 * dwarf2read.c (dwarf2_find_base_address, )
15214 (read_call_site_scope, rust_containing_type)
15215 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
15216 (handle_data_member_location, dwarf2_add_member_fn)
15217 (get_alignment, read_structure_type, process_structure_scope)
15218 (mark_common_block_symbol_computed, read_common_block)
15219 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
15220 (partial_die_info::read, read_attribute_value, new_symbol)
15221 (lookup_die_type, dwarf2_get_ref_die_offset)
15222 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
15223 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
15224 (dwarf2_symbol_mark_computed): Update.
15225 * dwarf2/attribute.h (struct attribute) <value_as_address,
15226 form_is_section_offset, form_is_constant, form_is_ref>: Declare
15227 methods.
15228 (value_as_address, attr_form_is_section_offset)
15229 (attr_form_is_constant, attr_form_is_ref): Don't declare.
15230 * dwarf2/attribute.c (attribute::value_as_address)
15231 (attribute::form_is_section_offset, attribute::form_is_constant)
15232 (attribute::form_is_ref): Now methods.
15233
162dce55
TT
152342020-02-08 Tom Tromey <tom@tromey.com>
15235
15236 * dwarf2read.c (struct attribute, DW_STRING)
15237 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
15238 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
15239 (attr_form_is_block, attr_form_is_section_offset)
15240 (attr_form_is_constant, attr_form_is_ref): Move.
15241 * dwarf2/attribute.h: New file.
15242 * dwarf2/attribute.c: New file, from dwarf2read.c.
15243 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
15244
3054dd54
TT
152452020-02-08 Tom Tromey <tom@tromey.com>
15246
15247 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
15248 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
15249 Move.
15250 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
15251 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
15252 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
15253 abbrev.c.
15254 * dwarf2/abbrev.h: New file.
15255 * dwarf2/abbrev.c: New file, from dwarf2read.c.
15256 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
15257
96b79293
TT
152582020-02-08 Tom Tromey <tom@tromey.com>
15259
15260 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
15261 (dwarf2_section_size, dwarf2_get_section_info)
15262 (create_signatured_type_table_from_debug_names)
15263 (create_addrmap_from_aranges, read_debug_names_from_section)
15264 (get_gdb_index_contents_from_section, read_comp_unit_head)
15265 (error_check_comp_unit_head, read_abbrev_offset)
15266 (create_debug_type_hash_table, init_cu_die_reader)
15267 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
15268 (read_comp_units_from_section, create_cus_hash_table)
15269 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
15270 (create_dwp_v2_section, dwarf2_rnglists_process)
15271 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
15272 (abbrev_table_read_table, read_indirect_string_at_offset_from)
15273 (read_indirect_string_from_dwz, read_addr_index_1)
15274 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
15275 (dwarf_decode_macro_bytes, dwarf_decode_macros)
15276 (fill_in_loclist_baton): Update.
15277 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
15278 get_containing_section, get_bfd_owner, get_bfd_section,
15279 get_file_name, get_id, get_flags, empty, read>: Declare methods.
15280 (dwarf2_read_section, get_section_name, get_section_file_name)
15281 (get_containing_section, get_section_bfd_owner)
15282 (get_section_bfd_section, get_section_name, get_section_file_name)
15283 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
15284 declare.
15285 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
15286 (dwarf2_section_info::get_bfd_owner)
15287 (dwarf2_section_info::get_bfd_section)
15288 (dwarf2_section_info::get_name)
15289 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
15290 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
15291 (dwarf2_section_info::read): Now methods.
15292 * dwarf-index-write.c (class debug_names): Update.
15293
2c86cff9
TT
152942020-02-08 Tom Tromey <tom@tromey.com>
15295
15296 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
15297 Move to dwarf2/section.h.
15298 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
15299 (get_section_bfd_section, get_section_name)
15300 (get_section_file_name, get_section_id, get_section_flags)
15301 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
15302 dwarf2/section.c.
15303 * dwarf2/section.h: New file.
15304 * dwarf2/section.c: New file, from dwarf2read.c.
15305 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
15306
f4382c45
TT
153072020-02-08 Tom Tromey <tom@tromey.com>
15308
15309 * dwarf2read.h (read_unsigned_leb128): Don't declare.
15310 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
15311 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
15312 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
15313 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
15314 * dwarf2/leb.h: New file, from dwarf2read.c.
15315 * dwarf2/leb.c: New file, from dwarf2read.c.
15316 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
15317 Remove.
15318 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
15319 (COMMON_SFILES): Add dwarf2/leb.c.
15320
01840b7a
JB
153212020-02-08 Joel Brobecker <brobecker@adacore.com>
15322
15323 GDB 9.1 released.
15324
dfcb27e4
IB
153252020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15326
15327 PR gdb/25190:
aac66a4c
SM
15328 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
15329 * gdb/remote.c (remote_console_output): Update.
15330 * gdb/ui-file.c (fputs_unfiltered): Rename to...
15331 (ui_file_puts): ...this.
15332 * gdb/ui-file.h (ui_file_puts): Add declaration.
15333 * gdb/utils.c (emit_style_escape): Update.
15334 (flush_wrap_buffer): Update.
15335 (fputs_maybe_filtered): Update.
15336 (fputs_unfiltered): Add function.
dfcb27e4 15337
faa17681
IB
153382020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15339
aac66a4c
SM
15340 * gdb/event-loop.c (gdb_wait_for_event): Update.
15341 * gdb/printcmd.c (printf_command): Update.
15342 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
15343 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
15344 (gdb_os_flush_stderr): Update.
15345 * gdb/remote.c (remote_console_output): Update.
15346 * gdb/ui-file.c (gdb_flush): Rename to...
15347 (ui_file_flush): ...this.
15348 (stderr_file::write): Update.
15349 (stderr_file::puts): Update.
15350 * gdb/ui-file.h (gdb_flush): Rename to...
15351 (ui_file_flush): ...this.
15352 * gdb/utils.c (gdb_flush): Add function.
15353 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 15354
5abbbe1d
TT
153552020-02-07 Tom Tromey <tromey@adacore.com>
15356
15357 PR breakpoints/24915:
15358 * source.c (find_and_open_source): Do not check basenames_may_differ.
15359
919adfe8
TT
153602020-02-07 Tom Tromey <tom@tromey.com>
15361
15362 * README: Update gdbserver documentation.
15363 * gdbserver: Move to top level.
15364 * configure.tgt (build_gdbserver): Remove.
15365 * configure.ac: Remove --enable-gdbserver.
15366 * configure: Rebuild.
15367 * Makefile.in (distclean): Don't mention gdbserver.
15368
1d5d29e7
SV
153692020-02-06 Shahab Vahedi <shahab@synopsys.com>
15370
15371 * source-cache.c (source_cache::ensure): Surround
15372 get_plain_source_lines with a try/catch.
15373 (source_cache::get_line_charpos): Get rid of try/catch
15374 and only check for the return value of "ensure".
15375 * tui/tui-source.c (tui_source_window::set_contents):
15376 Simplify "nlines" calculation.
15377
6eb1129c
SV
153782020-02-06 Shahab Vahedi <shahab@synopsys.com>
15379
15380 * MAINTAINERS (Write After Approval): Add myself.
15381
c6a42d11
CB
153822020-02-05 Christian Biesinger <cbiesinger@google.com>
15383
15384 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
15385 function call.
15386
c8ecdda6
CB
153872020-02-05 Christian Biesinger <cbiesinger@google.com>
15388
15389 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
15390
f6480e70
MR
153912020-02-05 Maciej W. Rozycki <macro@wdc.com>
15392
15393 * nat/riscv-linux-tdesc.h: New file.
15394 * nat/riscv-linux-tdesc.c: New file, taking code from...
15395 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
15396 ... here.
15397 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
15398 NATDEPFILES.
15399
dcc9fbc6
AB
154002020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
15401
15402 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
15403 we don't set the fake simulator ptid to the null_ptid.
15404
719546c4
SM
154052020-02-03 Simon Marchi <simon.marchi@efficios.com>
15406
15407 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
15408 * gdbthread.h (class thread_info) <resumed>: Likewise.
15409 * infrun.c (resume_1): Likewise.
15410 (proceed): Likewise.
15411 (infrun_thread_stop_requested): Likewise.
15412 (stop_all_threads): Likewise.
15413 (handle_inferior_event): Likewise.
15414 (restart_threads): Likewise.
15415 (finish_step_over): Likewise.
15416 (keep_going_stepped_thread): Likewise.
15417 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
15418 (linux_handle_extended_wait): Likewise.
15419 * record-btrace.c (get_thread_current_frame_id): Likewise.
15420 * record-full.c (record_full_wait_1): Likewise.
15421 * remote.c (remote_target::process_initial_stop_replies): Likewise.
15422 * target.c (target_resume): Likewise.
15423 * thread.c (set_running_thread): Likewise.
15424
e409c542
AKS
154252020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15426
15427 * f-valprint.c (f77_print_array_1): Changed datatype of index
15428 variable to LONGEST from int to enable it to contain bound
15429 values correctly.
15430
ee98c0da
MR
154312020-02-03 Maciej W. Rozycki <macro@wdc.com>
15432
15433 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
15434 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
15435 offsets according to FLEN determined.
15436 (riscv_linux_nat_target::read_description): Determine FLEN
15437 dynamically.
15438 (riscv_linux_nat_target::fetch_registers): Size regset buffer
15439 according to FLEN determined.
15440 (riscv_linux_nat_target::store_registers): Likewise.
15441
aa66aac4
SV
154422020-02-01 Shahab Vahedi <shahab@synopsys.com>
15443
15444 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
15445 when reg->group is empty and reggroup is not.
15446
fd9faca8
TT
154472020-01-31 Tom Tromey <tromey@adacore.com>
15448
15449 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
15450 Call beneath target's mourn_inferior after unpushing.
15451
42330a68
AB
154522020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15453
15454 PR tui/9765
15455 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
15456 have enough lines to fill the screen, still return the lowest
15457 address we found.
15458
7a27a45b
AB
154592020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15460
15461 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
15462 '-', '<', and '>' commands.
15463
c47f70e2
PA
154642020-01-29 Pedro Alves <palves@redhat.com>
15465 Sergio Durigan Junior <sergiodj@redhat.com>
15466
15467 * infcmd.c (construct_inferior_arguments): Assert that
15468 'argc' is greater than 0.
15469
5133a315
LM
154702020-01-29 Luis Machado <luis.machado@linaro.org>
15471
15472 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
15473 (BRK_INSN_MASK): Define to 0xd4200000.
15474 (aarch64_program_breakpoint_here_p): New function.
15475 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
15476 * arch-utils.c (default_program_breakpoint_here_p): Moved from
15477 breakpoint.c.
15478 * arch-utils.h (default_program_breakpoint_here_p): Moved from
15479 breakpoint.h
15480 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
15481 call gdbarch_program_breakpoint_here_p.
15482 (program_breakpoint_here): Moved to arch-utils.c, renamed to
15483 default_program_breakpoint_here_p, changed return type to bool and
15484 simplified.
15485 * breakpoint.h (program_breakpoint_here): Moved prototype to
15486 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
15487 return type to bool.
15488 * gdbarch.c: Regenerate.
15489 * gdbarch.h: Regenerate.
15490 * gdbarch.sh (program_breakpoint_here_p): New method.
15491 * infrun.c (handle_signal_stop): Call
15492 gdbarch_program_breakpoint_here_p.
15493
168f8c6b
TT
154942020-01-26 Tom Tromey <tom@tromey.com>
15495
15496 * ctfread.c (struct ctf_fp_info): Reindent.
15497 (_initialize_ctfread): Remove.
15498
128a391f
TT
154992020-01-26 Tom Tromey <tom@tromey.com>
15500
15501 * psymtab.c (partial_map_expand_apply)
15502 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
15503 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
15504 (psym_print_stats, psym_expand_symtabs_for_function)
15505 (psym_map_symbol_filenames, psym_map_matching_symbols)
15506 (psym_expand_symtabs_matching)
15507 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
15508 (maintenance_check_psymtabs): Use new methods.
15509 * psympriv.h (struct partial_symtab) <readin_p,
15510 get_compunit_symtab>: New methods.
15511 <readin, compunit_symtab>: Remove members.
15512 (struct standard_psymtab): New.
15513 (struct legacy_psymtab): Derive from standard_psymtab.
15514 * dwarf2read.h (struct dwarf2_psymtab): Derive from
15515 standard_psymtab.
15516 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
15517
0494dbec
TT
155182020-01-26 Tom Tromey <tom@tromey.com>
15519
15520 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
15521 read_dependencies. Add assert.
15522 * psymtab.c (partial_symtab::read_dependencies): New method.
15523 * psympriv.h (struct partial_symtab) <read_dependencies>: New
15524 method.
15525 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
15526 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
15527 read_dependencies.
15528 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
15529 Add assert.
15530
8566b89b
TT
155312020-01-26 Tom Tromey <tom@tromey.com>
15532
15533 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
15534 Call expand_psymtab.
15535 (xcoff_read_symtab): Call expand_psymtab.
15536 (xcoff_start_psymtab, xcoff_end_psymtab): Set
15537 legacy_expand_psymtab.
15538 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
15539 method.
15540 (struct legacy_psymtab) <expand_psymtab>: Implement.
15541 <legacy_expand_psymtab>: New member.
15542 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
15543 (parse_partial_symbols): Set legacy_expand_psymtab.
15544 (psymtab_to_symtab_1): Change argument order. Call
15545 expand_psymtab.
15546 (new_psymtab): Set legacy_expand_psymtab.
15547 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
15548 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
15549 expand_psymtab.
15550 (dwarf2_psymtab::expand_psymtab): Rename from
15551 psymtab_to_symtab_1. Call expand_psymtab.
15552 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
15553 (dbx_end_psymtab): Likewise.
15554 (dbx_psymtab_to_symtab_1): Change argument order. Call
15555 expand_psymtab.
15556 (dbx_read_symtab): Call expand_psymtab.
15557 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
15558 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
15559 (ctf_psymtab::read_symtab): Call expand_psymtab.
15560
077cbab2
TT
155612020-01-26 Tom Tromey <tom@tromey.com>
15562
15563 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
15564 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
15565 messages.
15566 * mdebugread.c (mdebug_read_symtab): Remove prints.
15567 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
15568 assert.
15569 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
15570
891813be
TT
155712020-01-26 Tom Tromey <tom@tromey.com>
15572
15573 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
15574 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
15575 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
15576 legacy_symtab.
15577 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
15578 * psymtab.c (psymtab_to_symtab): Call method.
15579 (dump_psymtab): Update.
15580 * psympriv.h (struct partial_symtab): Add virtual destructor.
15581 <read_symtab>: New method.
15582 (struct legacy_symtab): New.
15583 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
15584 (struct pst_map) <pst>: Now a legacy_psymtab.
15585 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
15586 (new_psymtab): Use legacy_psymtab.
15587 * dwarf2read.h (struct dwarf2_psymtab): New.
15588 (struct dwarf2_per_cu_data) <psymtab>: Use it.
15589 * dwarf2read.c (dwarf2_create_include_psymtab)
15590 (dwarf2_build_include_psymtabs, create_type_unit_group)
15591 (create_partial_symtab, process_psymtab_comp_unit_reader)
15592 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
15593 (set_partial_user): Use dwarf2_psymtab.
15594 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
15595 (psymtab_to_symtab_1, process_full_comp_unit)
15596 (process_full_type_unit, dwarf2_ranges_read)
15597 (dwarf2_get_pc_bounds, psymtab_include_file_name)
15598 (dwarf_decode_lines): Use dwarf2_psymtab.
15599 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
15600 (add_address_entry_worker, write_one_signatured_type)
15601 (recursively_count_psymbols, recursively_write_psymbols)
15602 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
15603 (write_debug_names): Likewise.
15604 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
15605 <pst>: Now a legacy_psymtab.
15606 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
15607 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
15608 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
15609 * ctfread.c (struct ctf_psymtab): New.
15610 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
15611 ctf_psymtab.
15612 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
15613 (create_partial_symtab): Return a ctf_psymtab.
15614 (scan_partial_symbols): Update.
15615
c3693a1d
TT
156162020-01-26 Tom Tromey <tom@tromey.com>
15617
15618 * xcoffread.c (xcoff_start_psymtab): Use new.
15619 * psymtab.c (partial_symtab::partial_symtab): New constructor,
15620 renamed from start_psymtab_common.
15621 * psympriv.h (struct partial_symtab): Add new constructor.
15622 (start_psymtab_common): Don't declare.
15623 * mdebugread.c (parse_partial_symbols): Use new.
15624 * dwarf2read.c (create_partial_symtab): Use new.
15625 * dbxread.c (start_psymtab): Use new.
15626 * ctfread.c (create_partial_symtab): Use new.
15627
32caafd0
TT
156282020-01-26 Tom Tromey <tom@tromey.com>
15629
15630 * xcoffread.c (xcoff_end_psymtab): Use new.
15631 * psymtab.c (start_psymtab_common): Use new.
15632 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
15633 Update.
15634 * psympriv.h (struct partial_symtab): Add parameters to
15635 constructor. Don't inline.
15636 (allocate_psymtab): Don't declare.
15637 * mdebugread.c (new_psymtab): Use new.
15638 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
15639 * dbxread.c (dbx_end_psymtab): Use new.
15640
abaa2f23
TT
156412020-01-26 Tom Tromey <tom@tromey.com>
15642
15643 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
15644 allocate_psymtab. Update documentation.
15645 * psymtab.c (psymtab_storage::install_psymtab): Rename from
15646 allocate_psymtab. Do not use new.
15647 (allocate_psymtab): Use new. Update.
15648
6d94535f
TT
156492020-01-26 Tom Tromey <tom@tromey.com>
15650
15651 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
15652 * psymtab.c (psym_print_stats): Update.
15653 * psympriv.h (struct partial_symtab) <readin,
15654 psymtabs_addrmap_supported, anonymous>: Now bool.
15655 * mdebugread.c (psymtab_to_symtab_1): Update.
15656 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
15657 (build_type_psymtabs_reader, psymtab_to_symtab_1)
15658 (process_full_comp_unit, process_full_type_unit): Update.
15659 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
15660 * ctfread.c (psymtab_to_symtab): Update.
15661
6f17252b
TT
156622020-01-26 Tom Tromey <tom@tromey.com>
15663
15664 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
15665 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
15666 * psymtab.c (psymtab_storage): Delete psymtabs.
15667 (psymtab_storage::allocate_psymtab): Use new.
15668 (psymtab_storage::discard_psymtab): Use delete.
15669 * psympriv.h (struct partial_symtab): Add constructor and
15670 initializers.
15671
f6f1cebc
TT
156722020-01-26 Tom Tromey <tom@tromey.com>
15673
15674 * machoread.c: Do not include psympriv.h.
15675
e47e48f6
PW
156762020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15677
15678 * NEWS: Mention the new option and the set/show commands.
15679
a2fedca9
PW
156802020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15681
15682 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
15683 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
15684 (validate_exec_file): New variables, enums, functions.
15685 (exec_file_locate_attach, print_section_info): Style the filenames.
15686 (_initialize_exec): Install show_exec_file_mismatch_command and
15687 set_exec_file_mismatch_command.
15688 * gdbcore.h (validate_exec_file): Declare.
15689 * infcmd.c (attach_command): Call validate_exec_file.
15690 * remote.c ( remote_target::remote_add_inferior): Likewise.
15691
7ffa82e1
AB
156922020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15693
15694 * frame.c (find_frame_sal): Move call to get_next_frame into more
15695 inner scope.
15696 * inline-frame.c (inilne_state) <inline_state>: Update argument
15697 types.
15698 (inilne_state) <skipped_symbol>: Rename to...
15699 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
15700 (skip_inline_frames): Build vector of skipped symbols and use this
15701 to reate the inline_state.
15702 (inline_skipped_symbol): Add a comment and some assertions, fetch
15703 skipped symbol from the list.
15704
3d92a3e3
AB
157052020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15706
15707 * buildsym.c (lte_is_less_than): Delete.
15708 (buildsym_compunit::end_symtab_with_blockvector): Create local
15709 lambda function to sort line table entries, and use
15710 std::stable_sort instead of std::sort.
15711 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
15712 markers when looking for a previous line.
15713
94a72be7
AB
157142020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15715
15716 * dwarf2read.c (lnp_state_machine::record_line): Include
15717 end_sequence parameter in debug print out. Record the line if we
15718 are at an end_sequence marker even if it's not the start of a
15719 statement.
15720 * symmisc.c (maintenance_print_one_line_table): Print end of
15721 sequence markers with 'END' not '0'.
15722
53af73bf
PA
157232020-01-24 Pedro Alves <palves@redhat.com>
15724
15725 PR gdb/25410
15726 * thread.c (scoped_restore_current_thread::restore): Use
15727 switch_to_inferior_no_thread.
15728 * exec.c: Include "progspace-and-thread.h".
15729 (add_target_sections, remove_target_sections):
15730 scoped_restore_current_pspace_and_thread instead of
15731 scoped_restore_current_thread.
15732 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
15733 and aspace to the inferior before calling clone_program_space.
15734 Remove stale comment.
15735
3050c6f4
CB
157362020-01-24 Christian Biesinger <cbiesinger@google.com>
15737
15738 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
15739 (arm_netbsd_nat_target::fetch_registers): ...this.
15740 (arm_nbsd_nat_target::store_registers): Rename to...
15741 (arm_netbsd_nat_target::store_registers): ...this.
15742
73685c7e
CB
157432020-01-24 Christian Biesinger <cbiesinger@google.com>
15744
15745 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
15746 register_t.
15747
89203d40
CB
157482020-01-24 Christian Biesinger <cbiesinger@google.com>
15749
15750 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
15751 Update comment.
15752 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
15753 Likewise.
15754 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
15755 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
15756 the correct replacement (iterate_over_regset_sections).
15757 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
15758 Update comment.
15759
1ba1ac88
AB
157602020-01-24 Graham Markall <graham.markall@embecosm.com>
15761
15762 PR gdb/23718
15763 * gdb/python/python.c (execute_gdb_command): Call
15764 async_enable_stdin in catch block.
15765
f3364a6d
AB
157662020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15767
15768 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
15769 SWITCH_THRU_ALL_UIS.
15770
733d0a67
AB
157712020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15772
15773 PR tui/9765
15774 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
15775 comment, add extra parameter, and update to store previous symbol
15776 when appropriate.
15777 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
15778 add extra parameter.
15779 * tui/tui-disasm.c (tui_disassemble): Update header comment,
15780 remove unneeded parameter, add try/catch around gdb_print_insn,
15781 rewrite to add items to asm_lines vector.
15782 (tui_find_backward_disassembly_start_address): New function.
15783 (tui_find_disassembly_address): Updated throughout.
15784 (tui_disasm_window::set_contents): Update for changes to
15785 tui_disassemble.
15786 (tui_disasm_window::do_scroll_vertical): No need to adjust the
15787 number of lines to scroll.
15788
b3b3bada
SM
157892020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
15790
15791 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
15792 (SECT_OFF_DATA): Likewise.
15793 (SECT_OFF_RODATA): Likewise.
15794 (SECT_OFF_TEXT): Likewise.
15795 (SECT_OFF_BSS): Likewise.
15796 (struct objfile) <text_section_offset, data_section_offset>: New
15797 methods.
15798 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
15799 objfile::text_section_offset.
15800 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
15801 * coffread.c (coff_symtab_read): Likewise.
15802 (enter_linenos): Likewise.
15803 (process_coff_symbol): Likewise.
15804 * ctfread.c (get_objfile_text_range): Likewise.
15805 * dtrace-probe.c (dtrace_probe::get_relocated_address):
15806 Use objfile::data_section_offset.
15807 * dwarf2-frame.c (execute_cfa_program): Use
15808 objfile::text_section_offset.
15809 (dwarf2_frame_find_fde): Likewise.
15810 * dwarf2read.c (create_addrmap_from_index): Likewise.
15811 (create_addrmap_from_aranges): Likewise.
15812 (dw2_find_pc_sect_compunit_symtab): Likewise.
15813 (process_psymtab_comp_unit_reader): Likewise.
15814 (add_partial_symbol): Likewise.
15815 (add_partial_subprogram): Likewise.
15816 (process_full_comp_unit): Likewise.
15817 (read_file_scope): Likewise.
15818 (read_func_scope): Likewise.
15819 (read_lexical_block_scope): Likewise.
15820 (read_call_site_scope): Likewise.
15821 (dwarf2_rnglists_process): Likewise.
15822 (dwarf2_ranges_process): Likewise.
15823 (dwarf2_ranges_read): Likewise.
15824 (dwarf_decode_lines_1): Likewise.
15825 (new_symbol): Likewise.
15826 (dwarf2_fetch_die_loc_sect_off): Likewise.
15827 (dwarf2_per_cu_text_offset): Likewise.
15828 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
15829 * hppa-tdep.c (read_unwind_info): Likewise.
15830 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
15831 * psympriv.h (struct partial_symtab): Likewise.
15832 * psymtab.c (find_pc_sect_psymtab): Likewise.
15833 * solib-svr4.c (enable_break): Likewise.
15834 * stap-probe.c (relocate_address): Use
15835 objfile::data_section_offset.
15836 * xcoffread.c (enter_line_range): Use
15837 objfile::text_section_offset.
15838 (read_xcoff_symtab): Likewise.
15839
ab53f382
SM
158402020-01-23 Simon Marchi <simon.marchi@efficios.com>
15841
15842 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
15843 declaration to narrower scopes.
15844
e7eee665
SM
158452020-01-23 Simon Marchi <simon.marchi@efficios.com>
15846
15847 * darwin-nat.h (struct darwin_exception_msg, enum
15848 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
15849 Move up.
15850 (class darwin_nat_target) <wait_1, check_new_threads,
15851 decode_exception_message, decode_message, stop_inferior,
15852 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
15853 * darwin-nat.c (darwin_check_new_threads): Rename to...
15854 (darwin_nat_target::check_new_threads): ... this.
15855 (darwin_suspend_inferior_it): Remove.
15856 (darwin_decode_exception_message): Rename to...
15857 (darwin_nat_target::decode_exception_message): ... this.
15858 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
15859 (darwin_decode_message): Rename to...
15860 (darwin_nat_target::decode_message): ... this.
15861 (cancel_breakpoint): Rename to...
15862 (darwin_nat_target::cancel_breakpoint): ... this.
15863 (darwin_wait): Rename to...
15864 (darwin_nat_target::wait_1): ... this. Use range-based for loop
15865 instead of iterate_over_inferiors.
15866 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
15867 (darwin_stop_inferior): Rename to...
15868 (darwin_nat_target::stop_inferior): ... this.
15869 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
15870 (darwin_init_thread_list): Rename to...
15871 (darwin_nat_target::init_thread_list): ... this.
15872 (darwin_ptrace_him): Rename to...
15873 (darwin_nat_target::ptrace_him): ... this.
15874 (darwin_nat_target::create_inferior): Pass lambda function to
15875 fork_inferior.
15876 (darwin_nat_target::detach): Call stop_inferior instead of
15877 darwin_stop_inferior.
15878 * fork-inferior.h (fork_inferior): Change init_trace_fun
15879 parameter to gdb::function_view.
15880 * fork-inferior.c (fork_inferior): Likewise.
15881
c162ed3e
HD
158822020-01-23 Hannes Domani <ssbssa@yahoo.de>
15883
15884 * i386-cygwin-tdep.c (core_process_module_section): Update.
15885 * windows-nat.c (struct lm_info_windows): Add text_offset.
15886 (windows_xfer_shared_libraries): Update.
15887 * windows-tdep.c (windows_xfer_shared_library):
15888 Add text_offset_cached argument.
15889 * windows-tdep.h (windows_xfer_shared_library): Update.
15890
a1237872
SM
158912020-01-21 Simon Marchi <simon.marchi@efficios.com>
15892
15893 * gdbarch.sh: Add declaration for _initialize_gdbarch.
15894
b3ee6dd9
SM
158952020-01-21 Simon Marchi <simon.marchi@efficios.com>
15896
15897 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
15898 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
15899 replace with range-based for.
15900 (gdbsim_interrupt_inferior): Remove.
15901 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
15902 with a range-based for. Inline code from
15903 gdbsim_interrupt_inferior.
15904
f9fac3c8
SM
159052020-01-21 Simon Marchi <simon.marchi@efficios.com>
15906
15907 * infrun.c (proceed): Fix indentation.
15908
f6474de9
TT
159092020-01-21 Tom Tromey <tromey@adacore.com>
15910
15911 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
15912 * python/python.c (python_extension_ops): Update.
15913 (gdbpy_colorize): New function.
15914 * python/lib/gdb/__init__.py (colorize): New function.
15915 * extension.h (ext_lang_colorize): Declare.
15916 * extension.c (ext_lang_colorize): New function.
15917 * extension-priv.h (struct extension_language_ops) <colorize>: New
15918 member.
15919 * cli/cli-style.c (_initialize_cli_style): Update help text.
15920
f0c702d4
LM
159212020-01-21 Luis Machado <luis.machado@linaro.org>
15922
15923 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
15924 <cond>: Change type to bool.
15925 (aarch64_displaced_step_b_cond): Update cond to use bool type.
15926 (aarch64_displaced_step_cb): Likewise.
15927 (aarch64_displaced_step_tb): Likewise.
15928
1ab139e5
LM
159292020-01-21 Luis Machado <luis.machado@linaro.org>
15930
15931 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
15932 output.
15933
0c271889
LM
159342020-01-21 Luis Machado <luis.machado@linaro.org>
15935
15936 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
15937 <pc_adjust>: Adjust the documentation.
15938 (aarch64_displaced_step_fixup): Check if PC really moved before
15939 adjusting it.
15940
4d89c1c7
TT
159412020-01-19 Tom Tromey <tom@tromey.com>
15942
15943 * disasm.c (~gdb_disassembler): New destructor.
15944 (gdb_buffered_insn_length): Call disassemble_free_target.
15945 * disasm.h (class gdb_disassembler): Declare destructor. Use
15946 DISABLE_COPY_AND_ASSIGN.
15947
c0ab21c2
TT
159482020-01-19 Tom Tromey <tom@tromey.com>
15949
15950 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
15951 (die_reader_func_ftype): Remove.
15952 (cutu_reader): New class.
15953 (dw2_get_file_names_reader): Remove "data" parameter.
15954 (dw2_get_file_names): Use cutu_reader.
15955 (create_debug_type_hash_table): Update.
15956 (read_cutu_die_from_dwo): Update comment.
15957 (lookup_dwo_unit): Add dwo_name parameter.
15958 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
15959 die_reader_func_ftype and data parameters.
15960 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
15961 Remove die_reader_func_ftype and data parameters.
15962 (~cutu_reader): New; from init_cutu_and_read_dies.
15963 (cutu_reader::cutu_reader): Rename from
15964 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
15965 and data parameters.
15966 (init_cutu_and_read_dies_simple): Remove.
15967 (struct process_psymtab_comp_unit_data): Remove.
15968 (process_psymtab_comp_unit_reader): Remove data parameter; add
15969 want_partial_unit and pretend_language parameters.
15970 (process_psymtab_comp_unit): Use cutu_reader.
15971 (build_type_psymtabs_reader): Remove data parameter.
15972 (build_type_psymtabs_1): Use cutu_reader.
15973 (process_skeletonless_type_unit): Likewise.
15974 (load_partial_comp_unit_reader): Remove.
15975 (load_partial_comp_unit): Use cutu_reader.
15976 (load_full_comp_unit_reader): Remove.
15977 (load_full_comp_unit): Use cutu_reader.
15978 (struct create_dwo_cu_data): Remove.
15979 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
15980 dwo_unit parameters.
15981 (create_cus_hash_table): Use cutu_reader.
15982 (struct dwarf2_read_addr_index_data): Remove.
15983 (dwarf2_read_addr_index_reader): Remove.
15984 (dwarf2_read_addr_index): Use cutu_reader.
15985 (read_signatured_type_reader): Remove.
15986 (read_signatured_type): Use cutu_reader.
15987
45bbae5c
TT
159882020-01-19 Tom Tromey <tom@tromey.com>
15989
15990 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
15991 * tui/tui-wingeneral.h (class tui_suppress_output): New.
15992 (tui_wrefresh): Declare.
15993 * tui/tui-wingeneral.c (suppress_output): New global.
15994 (tui_suppress_output, ~tui_suppress_output): New constructor and
15995 destructor.
15996 (tui_wrefresh): New function.
15997 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
15998 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
15999 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
16000 method.
16001 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
16002 tui_wrefresh.
16003 (tui_data_window::no_refresh): New method.
16004 (tui_data_item_window::refresh_window): Call tui_wrefresh.
16005 (tui_reg_command): Use tui_suppress_output
16006 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
16007 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
16008 method.
16009 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
16010
4f13c1c0
TT
160112020-01-19 Tom Tromey <tom@tromey.com>
16012
16013 * tui/tui-winsource.c (tui_update_source_windows_with_line):
16014 Handle case where symtab is null.
16015
fa47e446
SM
160162020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
16017
16018 * linux-fork.c (one_fork_p): Simplify.
16019
26f42329
SM
160202020-01-17 Simon Marchi <simon.marchi@efficios.com>
16021
16022 * top.c (struct qt_args): Remove.
16023 (kill_or_detach): Change return type to void, replace `void *`
16024 parameter with a proper one.
16025 (print_inferior_quit_action): Likewise.
16026 (quit_confirm): Use range-based for loop to iterate over inferiors.
16027 (quit_force): Likewise.
16028
a9ac81b1
SM
160292020-01-17 Simon Marchi <simon.marchi@efficios.com>
16030
16031 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
16032 `void *` parameter with proper parameters.
16033 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
16034 (print_one_inferior): Change return type to void, replace `void *`
16035 parameter with proper parameters.
16036 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
16037 inferiors.
16038 (get_other_inferior): Remove.
16039 (mi_cmd_remove_inferior): Use range-based loop to iterate over
16040 inferiors.
16041
788eca49
SM
160422020-01-17 Simon Marchi <simon.marchi@efficios.com>
16043
16044 * mi/mi-interp.c (report_initial_inferior): Remove.
16045 (mi_interp::init): Use range-based for to iterate over inferiors.
16046
d9bc85b6
SM
160472020-01-17 Simon Marchi <simon.marchi@efficios.com>
16048
16049 * python/py-inferior.c (build_inferior_list): Remove.
16050 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
16051
40c94099
CB
160522020-01-16 Christian Biesinger <cbiesinger@google.com>
16053
16054 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
16055 (btrace_stitch_trace): Likewise.
16056 * charset.c (intermediate_encoding): Likewise (vaild).
16057 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
16058 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
16059 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
16060
e0cdfe3c
HD
160612020-01-16 Hannes Domani <ssbssa@yahoo.de>
16062
16063 * windows-tdep.c (windows_get_tlb_type):
16064 Add rtl_user_process_parameters type.
16065
790f1718 160662020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 16067 Norbert Lange <nolange79@gmail.com>
790f1718
PA
16068
16069 PR build/24805
16070 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
16071 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
16072 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
16073 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
16074 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
16075 (ps_plog): Redeclare exported functions with default visibility.
16076
3112ed97
NA
160772020-01-16 Nitika Achra <Nitika.Achra@amd.com>
16078
16079 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
16080 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
16081
8dc3273e
SM
160822020-01-15 Simon Marchi <simon.marchi@efficios.com>
16083
16084 * infcmd.c (post_create_inferior): Use get_thread_regcache
16085 instead of get_current_regcache.
16086
ff47f4f0
TT
160872020-01-14 Tom Tromey <tom@tromey.com>
16088
16089 PR symtab/12535:
16090 * python/python.c (gdbpy_decode_line): Treat empty string the same
16091 as no argument.
16092
975f45b7
TT
160932020-01-14 Tom Tromey <tom@tromey.com>
16094
16095 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
16096
25e57356
TT
160972020-01-14 Tom Tromey <tom@tromey.com>
16098
16099 * nat/linux-btrace.c: Don't include <config.h>.
16100 * nat/linux-ptrace.c: Don't include <config.h>.
16101 * nat/x86-linux-dregs.c: Don't include <config.h>.
16102
05ea2a05
TT
161032020-01-14 Tom Tromey <tom@tromey.com>
16104
16105 * configure: Rebuild.
16106 * configure.ac: Move many checks to ../gdbsupport/common.m4.
16107
01027315
TT
161082020-01-14 Tom Tromey <tom@tromey.com>
16109
16110 * nat/x86-linux-dregs.c: Include configh.h.
16111 * nat/linux-ptrace.c: Include configh.h.
16112 * nat/linux-btrace.c: Include configh.h.
16113 * defs.h: Include config.h, bfd.h.
16114 * configure.ac: Don't source common.host.
16115 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
16116 * configure: Rebuild.
16117 * acinclude.m4: Update path.
16118 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
16119 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
16120 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
16121 (CLIBS): Add LIBSUPPORT.
16122 (CDEPS): Likewise.
16123 (COMMON_SFILES): Remove gdbsupport files.
16124 (HFILES_NO_SRCDIR): Likewise.
16125 (stamp-version): Update path to create-version.sh.
16126 (ALLDEPFILES): Remove gdbsupport files.
16127
b2ceabe8
TT
161282020-01-14 Tom Tromey <tom@tromey.com>
16129
16130 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
16131 USE_WIN32API when needed.
16132 * configure.ac (USE_WIN32API): Don't define.
16133 (WIN32LIBS): Use WIN32APILIBS.
16134 * configure: Rebuild.
16135
25c51f71
TT
161362020-01-14 Tom Tromey <tom@tromey.com>
16137
16138 * configure: Rebuild.
16139 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
16140
717c684d
BE
161412020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
16142
16143 * skip.c (skip_function_command): Make skip w/o arguments use the
16144 name of the inlined function if pc is inside any inlined function.
16145
7da6a5b9
LM
161462020-01-14 Luis Machado <luis.machado@linaro.org>
16147
16148 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
16149 * infrun.c (resume_1): Likewise.
16150 (handle_inferior_event): Remove stale comment.
16151 * linux-nat.c (linux_nat_target::resume): Update comments.
16152 (save_stop_reason): Likewise.
16153 (linux_nat_filter_event): Likewise.
16154 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
16155
44e4c775
AB
161562020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16157
16158 * elfread.c (record_minimal_symbol): Set section index to 0 for
16159 non-allocatable sections.
16160
18a8505e
AT
16161
161622020-01-13 Ali Tamur <tamur@google.com>
16163
16164 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
16165 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
16166 to gdb::optional. Update comments.
16167 (dwo_file): Update comments.
16168 (read_attribute): Update API to take an additional out parameter,
16169 need_reprocess. This is used to mark attributes that need other
16170 attributes (e.g. str_offsets_base) for correct computation which may not
16171 have been read yet.
16172 (read_attribute_reprocess): New function declaration.
16173 (read_addr_index): Likewise.
16174 (read_dwo_str_index): Likewise.
16175 (read_stub_str_index): Likewise.
16176 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
16177 (lookup_addr_base): New function definition.
16178 (lookup_ranges_base): Likewise.
16179 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
16180 lookup_ranges_base.
16181 (init_cutu_and_read_dies): Update comments.
16182 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
16183 unit. This is used to inherit parent's str_offsets_base and addr_base.
16184 Update comments.
16185 (init_cutu_and_read_dies_simple): Reflect API changes.
16186 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
16187 (create_cus_hash_table): Change API to take parent compile unit.
16188 Reflect API changes.
16189 (open_and_init_dwo_file): Reflect API changes.
16190 (dwarf2_get_pc_bounds): Update comments.
16191 (dwarf2_record_block_ranges): Likewise.
16192 (read_full_die_1): Change implementation to reprocess attributes that
16193 need str_offsets_base and addr_base.
16194 (partial_die_info::read): Likewise.
16195 (read_attribute_reprocess): New function definition.
16196 (read_attribute_value): Change API to take an additional out parameter,
16197 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
16198 when a non-dwo compile unit has index based attributes.
16199 (read_attribute): Reflect API changes.
16200 (read_addr_index_1): Reflect API changes. Update comments.
16201 (dwarf2_read_addr_index_data): Reflect API changes.
16202 (dwarf2_read_addr_index): Likewise.
16203 (read_str_index): Change API and implementation. This becomes a helper
16204 to be used by the new string index related methods. Update error
16205 message and comments.
16206 (read_dwo_str_index): New function definition.
16207 (read_stub_str_index): Likewise.
16208 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
16209 * symfile.h (dwarf2_debug_sections): Likewise.
16210 * xcoffread.c (dwarf2_debug_sections): Likewise.
16211
0cac9354
SM
162122020-01-13 Simon Marchi <simon.marchi@efficios.com>
16213
16214 * gdbcore.h (struct core_fns) <core_read_registers>: Change
16215 core_reg_sect type to gdb_byte *.
16216 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
16217 * cris-tdep.c (fetch_core_registers): Likewise.
16218 * corelow.c (core_target::get_core_register_section): Change
16219 type of `contents` to gdb::byte_vector.
16220
9a6d629c
AB
162212020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16222
16223 * tui/tui-wingeneral.c (box_win): Position the title in the center
16224 of the border.
16225
d8b2f9e3
SM
162262020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16227
16228 * corelow.c (core_target::get_core_register_section): Use
16229 std::vector instead of alloca.
16230
bb564c58
SM
162312020-01-13 Simon Marchi <simon.marchi@efficios.com>
16232
16233 * warning.m4: Add -Wmissing-declarations to build_warnings.
16234 * configure: Re-generate.
16235
6b366111
SM
162362020-01-13 Simon Marchi <simon.marchi@efficios.com>
16237
16238 * python/python.c (init__gdb_module): Add declaration.
16239
6c265988
SM
162402020-01-13 Simon Marchi <simon.marchi@efficios.com>
16241
16242 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
16243 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
16244 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
16245 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
16246 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
16247 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
16248 * ada-exp.y (_initialize_ada_exp): Add declaration.
16249 * ada-lang.c (_initialize_ada_language): Add declaration.
16250 * ada-tasks.c (_initialize_tasks): Add declaration.
16251 * agent.c (_initialize_agent): Add declaration.
16252 * aix-thread.c (_initialize_aix_thread): Add declaration.
16253 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
16254 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
16255 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
16256 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
16257 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
16258 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
16259 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
16260 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
16261 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
16262 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
16263 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
16264 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
16265 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
16266 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
16267 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
16268 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
16269 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
16270 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
16271 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
16272 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
16273 * annotate.c (_initialize_annotate): Add declaration.
16274 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
16275 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
16276 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
16277 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
16278 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
16279 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
16280 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
16281 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
16282 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
16283 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
16284 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
16285 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
16286 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
16287 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
16288 * auto-load.c (_initialize_auto_load): Add declaration.
16289 * auxv.c (_initialize_auxv): Add declaration.
16290 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
16291 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
16292 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
16293 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
16294 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
16295 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
16296 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
16297 * breakpoint.c (_initialize_breakpoint): Add declaration.
16298 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
16299 * btrace.c (_initialize_btrace): Add declaration.
16300 * charset.c (_initialize_charset): Add declaration.
16301 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
16302 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
16303 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
16304 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
16305 * cli/cli-script.c (_initialize_cli_script): Add declaration.
16306 * cli/cli-style.c (_initialize_cli_style): Add declaration.
16307 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
16308 * coffread.c (_initialize_coffread): Add declaration.
16309 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
16310 * compile/compile.c (_initialize_compile): Add declaration.
16311 * complaints.c (_initialize_complaints): Add declaration.
16312 * completer.c (_initialize_completer): Add declaration.
16313 * copying.c (_initialize_copying): Add declaration.
16314 * corefile.c (_initialize_core): Add declaration.
16315 * corelow.c (_initialize_corelow): Add declaration.
16316 * cp-abi.c (_initialize_cp_abi): Add declaration.
16317 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
16318 * cp-support.c (_initialize_cp_support): Add declaration.
16319 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
16320 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
16321 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
16322 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
16323 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
16324 * ctfread.c (_initialize_ctfread): Add declaration.
16325 * d-lang.c (_initialize_d_language): Add declaration.
16326 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
16327 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
16328 * dbxread.c (_initialize_dbxread): Add declaration.
16329 * dcache.c (_initialize_dcache): Add declaration.
16330 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
16331 * disasm.c (_initialize_disasm): Add declaration.
16332 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
16333 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
16334 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
16335 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
16336 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
16337 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
16338 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
16339 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
16340 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
16341 * elfread.c (_initialize_elfread): Add declaration.
16342 * exec.c (_initialize_exec): Add declaration.
16343 * extension.c (_initialize_extension): Add declaration.
16344 * f-lang.c (_initialize_f_language): Add declaration.
16345 * f-valprint.c (_initialize_f_valprint): Add declaration.
16346 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
16347 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
16348 * filesystem.c (_initialize_filesystem): Add declaration.
16349 * findcmd.c (_initialize_mem_search): Add declaration.
16350 * findvar.c (_initialize_findvar): Add declaration.
16351 * fork-child.c (_initialize_fork_child): Add declaration.
16352 * frame-base.c (_initialize_frame_base): Add declaration.
16353 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
16354 * frame.c (_initialize_frame): Add declaration.
16355 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
16356 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
16357 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
16358 * gcore.c (_initialize_gcore): Add declaration.
16359 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
16360 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
16361 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
16362 * gdbarch.c (_initialize_gdbarch): Add declaration.
16363 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
16364 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
16365 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
16366 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
16367 * go-lang.c (_initialize_go_language): Add declaration.
16368 * go32-nat.c (_initialize_go32_nat): Add declaration.
16369 * guile/guile.c (_initialize_guile): Add declaration.
16370 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
16371 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
16372 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
16373 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
16374 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
16375 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
16376 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
16377 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
16378 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
16379 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
16380 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
16381 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
16382 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
16383 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
16384 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
16385 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
16386 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
16387 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
16388 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
16389 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
16390 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
16391 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
16392 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
16393 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
16394 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
16395 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
16396 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
16397 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
16398 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
16399 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
16400 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
16401 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
16402 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
16403 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
16404 * infcall.c (_initialize_infcall): Add declaration.
16405 * infcmd.c (_initialize_infcmd): Add declaration.
16406 * inflow.c (_initialize_inflow): Add declaration.
16407 * infrun.c (_initialize_infrun): Add declaration.
16408 * interps.c (_initialize_interpreter): Add declaration.
16409 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
16410 * jit.c (_initialize_jit): Add declaration.
16411 * language.c (_initialize_language): Add declaration.
16412 * linux-fork.c (_initialize_linux_fork): Add declaration.
16413 * linux-nat.c (_initialize_linux_nat): Add declaration.
16414 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
16415 * linux-thread-db.c (_initialize_thread_db): Add declaration.
16416 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
16417 * m2-lang.c (_initialize_m2_language): Add declaration.
16418 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
16419 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
16420 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
16421 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
16422 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
16423 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
16424 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
16425 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
16426 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
16427 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
16428 * machoread.c (_initialize_machoread): Add declaration.
16429 * macrocmd.c (_initialize_macrocmd): Add declaration.
16430 * macroscope.c (_initialize_macroscope): Add declaration.
16431 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
16432 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
16433 * maint.c (_initialize_maint_cmds): Add declaration.
16434 * mdebugread.c (_initialize_mdebugread): Add declaration.
16435 * memattr.c (_initialize_mem): Add declaration.
16436 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
16437 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
16438 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
16439 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
16440 * mi/mi-main.c (_initialize_mi_main): Add declaration.
16441 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
16442 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
16443 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
16444 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
16445 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
16446 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
16447 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
16448 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
16449 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
16450 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
16451 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
16452 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
16453 * mipsread.c (_initialize_mipsread): Add declaration.
16454 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
16455 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
16456 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
16457 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
16458 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
16459 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
16460 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
16461 * nto-procfs.c (_initialize_procfs): Add declaration.
16462 * objc-lang.c (_initialize_objc_language): Add declaration.
16463 * observable.c (_initialize_observer): Add declaration.
16464 * opencl-lang.c (_initialize_opencl_language): Add declaration.
16465 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
16466 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
16467 * osabi.c (_initialize_gdb_osabi): Add declaration.
16468 * osdata.c (_initialize_osdata): Add declaration.
16469 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
16470 * parse.c (_initialize_parse): Add declaration.
16471 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
16472 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
16473 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
16474 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
16475 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
16476 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
16477 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
16478 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
16479 * printcmd.c (_initialize_printcmd): Add declaration.
16480 * probe.c (_initialize_probe): Add declaration.
16481 * proc-api.c (_initialize_proc_api): Add declaration.
16482 * proc-events.c (_initialize_proc_events): Add declaration.
16483 * proc-service.c (_initialize_proc_service): Add declaration.
16484 * procfs.c (_initialize_procfs): Add declaration.
16485 * producer.c (_initialize_producer): Add declaration.
16486 * psymtab.c (_initialize_psymtab): Add declaration.
16487 * python/python.c (_initialize_python): Add declaration.
16488 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
16489 * record-btrace.c (_initialize_record_btrace): Add declaration.
16490 * record-full.c (_initialize_record_full): Add declaration.
16491 * record.c (_initialize_record): Add declaration.
16492 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
16493 * regcache.c (_initialize_regcache): Add declaration.
16494 * reggroups.c (_initialize_reggroup): Add declaration.
16495 * remote-notif.c (_initialize_notif): Add declaration.
16496 * remote-sim.c (_initialize_remote_sim): Add declaration.
16497 * remote.c (_initialize_remote): Add declaration.
16498 * reverse.c (_initialize_reverse): Add declaration.
16499 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
16500 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
16501 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
16502 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
16503 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
16504 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
16505 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
16506 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
16507 Add declaration.
16508 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
16509 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
16510 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
16511 * rust-exp.y (_initialize_rust_exp): Add declaration.
16512 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
16513 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
16514 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
16515 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
16516 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
16517 * score-tdep.c (_initialize_score_tdep): Add declaration.
16518 * ser-go32.c (_initialize_ser_dos): Add declaration.
16519 * ser-mingw.c (_initialize_ser_windows): Add declaration.
16520 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
16521 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
16522 * ser-uds.c (_initialize_ser_socket): Add declaration.
16523 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
16524 * serial.c (_initialize_serial): Add declaration.
16525 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
16526 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
16527 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
16528 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
16529 * skip.c (_initialize_step_skip): Add declaration.
16530 * sol-thread.c (_initialize_sol_thread): Add declaration.
16531 * solib-aix.c (_initialize_solib_aix): Add declaration.
16532 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
16533 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
16534 * solib-frv.c (_initialize_frv_solib): Add declaration.
16535 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
16536 * solib-target.c (_initialize_solib_target): Add declaration.
16537 * solib.c (_initialize_solib): Add declaration.
16538 * source-cache.c (_initialize_source_cache): Add declaration.
16539 * source.c (_initialize_source): Add declaration.
16540 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
16541 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
16542 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
16543 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
16544 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
16545 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
16546 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
16547 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
16548 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
16549 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
16550 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
16551 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
16552 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
16553 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
16554 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
16555 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
16556 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
16557 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
16558 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
16559 * stabsread.c (_initialize_stabsread): Add declaration.
16560 * stack.c (_initialize_stack): Add declaration.
16561 * stap-probe.c (_initialize_stap_probe): Add declaration.
16562 * std-regs.c (_initialize_frame_reg): Add declaration.
16563 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
16564 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
16565 * symfile.c (_initialize_symfile): Add declaration.
16566 * symmisc.c (_initialize_symmisc): Add declaration.
16567 * symtab.c (_initialize_symtab): Add declaration.
16568 * target.c (_initialize_target): Add declaration.
16569 * target-connection.c (_initialize_target_connection): Add
16570 declaration.
16571 * target-dcache.c (_initialize_target_dcache): Add declaration.
16572 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
16573 * thread.c (_initialize_thread): Add declaration.
16574 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
16575 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
16576 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
16577 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
16578 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
16579 * tracectf.c (_initialize_ctf): Add declaration.
16580 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
16581 * tracefile.c (_initialize_tracefile): Add declaration.
16582 * tracepoint.c (_initialize_tracepoint): Add declaration.
16583 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
16584 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
16585 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
16586 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
16587 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
16588 * tui/tui-win.c (_initialize_tui_win): Add declaration.
16589 * tui/tui.c (_initialize_tui): Add declaration.
16590 * typeprint.c (_initialize_typeprint): Add declaration.
16591 * ui-style.c (_initialize_ui_style): Add declaration.
16592 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
16593 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
16594 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
16595 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
16596 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
16597 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
16598 * unittests/filtered_iterator-selftests.c
16599 (_initialize_filtered_iterator_selftests): Add declaration.
16600 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
16601 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
16602 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
16603 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
16604 * unittests/main-thread-selftests.c
16605 (_initialize_main_thread_selftests): Add declaration.
16606 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
16607 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
16608 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
16609 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
16610 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
16611 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
16612 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
16613 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
16614 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
16615 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
16616 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
16617 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
16618 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
16619 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
16620 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
16621 declaration.
16622 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
16623 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
16624 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
16625 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
16626 * user-regs.c (_initialize_user_regs): Add declaration.
16627 * utils.c (_initialize_utils): Add declaration.
16628 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
16629 * valops.c (_initialize_valops): Add declaration.
16630 * valprint.c (_initialize_valprint): Add declaration.
16631 * value.c (_initialize_values): Add declaration.
16632 * varobj.c (_initialize_varobj): Add declaration.
16633 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
16634 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
16635 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
16636 * windows-nat.c (_initialize_windows_nat): Add declaration.
16637 (_initialize_check_for_gdb_ini): Add declaration.
16638 (_initialize_loadable): Add declaration.
16639 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
16640 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
16641 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
16642 * xcoffread.c (_initialize_xcoffread): Add declaration.
16643 * xml-support.c (_initialize_xml_support): Add declaration.
16644 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
16645 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
16646 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
16647 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
16648
e2de1eec
SM
166492020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16650
16651 * regformats/regdat.sh: Generate declaration for init function.
16652
e0037b4c
SM
166532020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16654
16655 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
16656 up.
16657 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
16658 close_one_inferior>: New methods.
16659 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
16660 pass down target to find_inferior_pid.
16661 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
16662 Pass down target to find_inferior_ptid.
16663 (gdbsim_target::create_inferior): Pass down target to
16664 add_thread_silent.
16665 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
16666 target down to find_inferior_ptid and switch_to_thread.
16667 (gdbsim_target::close): Update to call close_one_inferior.
16668 (struct resume_data): Remove.
16669 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
16670 directly, rather than through a void pointer.
16671 (gdbsim_target::resume): Update to call resume_one_inferior.
16672
58920b5b
SM
166732020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
16674
16675 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
16676
4ec89149
PA
166772020-01-12 Pedro Alves <palves@redhat.com>
16678
16679 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
16680 directly for the current inferior instead of
16681 discard_all_inferiors.
16682 (discard_all_inferiors): Delete.
16683
7c392d1d
TT
166842020-01-11 Tom Tromey <tom@tromey.com>
16685
16686 * tui/tui-wingeneral.c (box_win): Check cli_styling.
16687 * tui/tui-winsource.c (tui_source_window_base::refill): Use
16688 deprecated_safe_get_selected_frame.
16689
d9ebdab7
TBA
166902020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16691
16692 * inferior.c (print_inferior): Switch inferior before printing it.
16693
f3c469b9
PA
166942020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
16695 Pedro Alves <palves@redhat.com>
16696
16697 * progspace-and-thread.c (switch_to_program_space_and_thread):
16698 Assert there's an inferior for PSPACE. Use
16699 switch_to_inferior_no_thread to switch the inferior too.
16700 * progspace.c (program_space::~program_space): Call
16701 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
16702 (program_space::free_all_objfiles): Don't call clear_symtab_users
16703 here.
16704 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
16705
65c574f6
PA
167062020-01-10 Pedro Alves <palves@redhat.com>
16707
16708 * NEWS: Mention multi-target debugging, "info connections", and
16709 "add-inferior -no-connection".
16710
2f4fcf00
PA
167112020-01-10 Pedro Alves <palves@redhat.com>
16712
16713 * infrun.c: Include "target-connection.h".
16714 (check_multi_target_resumption): New.
16715 (proceed): Call it.
16716 * target-connection.c (make_target_connection_string): Make
16717 extern.
16718 * target-connection.h (make_target_connection_string): Declare.
16719
121b3efd
PA
167202020-01-10 Pedro Alves <palves@redhat.com>
16721
16722 * Makefile.in (COMMON_SFILES): Add target-connection.c.
16723 * inferior.c (uiout_field_connection): New function.
16724 (print_inferior): Add new "connection-id" column.
16725 (add_inferior_command): Show connection number/string of added
16726 inferior.
16727 * process-stratum-target.h
16728 (process_stratum_target::connection_string): New virtual method.
16729 (process_stratum_target::connection_number): New field.
16730 * remote.c (remote_target::connection_string): New override.
16731 * target-connection.c: New file.
16732 * target-connection.h: New file.
16733 * target.c (decref_target): Remove process_stratum targets from
16734 the connection list.
16735 (target_stack::push): Add process_stratum targets to the
16736 connection list.
16737
4f837581
PA
167382020-01-10 Pedro Alves <palves@redhat.com>
16739
16740 Revert:
16741 2016-04-12 Pedro Alves <palves@redhat.com>
16742 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
16743 Remove references to name.
16744 * serial.h (struct serial) <name>: Delete.
16745
f4ec508e
PA
167462020-01-10 Pedro Alves <palves@redhat.com>
16747
16748 * gdbarch-selftests.c (register_to_value_test): Remove "target
16749 already pushed" check.
16750
5b6d1e4f
PA
167512020-01-10 Pedro Alves <palves@redhat.com>
16752 John Baldwin <jhb@FreeBSD.org>
16753
16754 * aarch64-linux-nat.c
16755 (aarch64_linux_nat_target::thread_architecture): Adjust.
16756 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
16757 (task_command_1): Likewise.
16758 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
16759 (aix_thread_target::wait, aix_thread_target::fetch_registers)
16760 (aix_thread_target::store_registers)
16761 (aix_thread_target::thread_alive): Adjust.
16762 * amd64-fbsd-tdep.c: Include "inferior.h".
16763 (amd64fbsd_get_thread_local_address): Pass down target.
16764 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
16765 thread's gdbarch instead of target_gdbarch.
16766 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
16767 get_last_target_status.
16768 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
16769 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
16770 inferiors.
16771 (update_inserted_breakpoint_locations): Skip if inferiors with no
16772 execution.
16773 (update_global_location_list): When handling moribund locations,
16774 find representative inferior for location's pspace, and use thread
16775 count of its process_stratum target.
16776 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
16777 * bsd-uthread.c (bsd_uthread_target::wait): Use
16778 as_process_stratum_target and adjust thread_change_ptid and
16779 add_thread calls.
16780 (bsd_uthread_target::update_thread_list): Use
16781 as_process_stratum_target and adjust find_thread_ptid,
16782 thread_change_ptid and add_thread calls.
16783 * btrace.c (maint_btrace_packet_history_cmd): Adjust
16784 find_thread_ptid call.
16785 * corelow.c (add_to_thread_list): Adjust add_thread call.
16786 (core_target_open): Adjust add_thread_silent and thread_count
16787 calls.
16788 (core_target::pid_to_str): Adjust find_inferior_ptid call.
16789 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
16790 * event-top.c (async_disconnect): Pop targets from all inferiors.
16791 * exec.c (add_target_sections): Push exec target on all inferiors
16792 sharing the program space.
16793 (remove_target_sections): Remove the exec target from all
16794 inferiors sharing the program space.
16795 (exec_on_vfork): New.
16796 * exec.h (exec_on_vfork): Declare.
16797 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
16798 Pass it down.
16799 (fbsd_nat_target::update_thread_list): Adjust.
16800 (fbsd_nat_target::resume): Adjust.
16801 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
16802 down.
16803 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
16804 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
16805 get_thread_arch_regcache call.
16806 * fork-child.c (gdb_startup_inferior): Pass target down to
16807 startup_inferior and set_executing.
16808 * gdbthread.h (struct process_stratum_target): Forward declare.
16809 (add_thread, add_thread_silent, add_thread_with_info)
16810 (in_thread_list): Add process_stratum_target parameter.
16811 (find_thread_ptid(inferior*, ptid_t)): New overload.
16812 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
16813 parameter.
16814 (all_threads()): Delete overload.
16815 (all_threads, all_non_exited_threads): Add process_stratum_target
16816 parameter.
16817 (all_threads_safe): Use brace initialization.
16818 (thread_count): Add process_stratum_target parameter.
16819 (set_resumed, set_running, set_stop_requested, set_executing)
16820 (threads_are_executing, finish_thread_state): Add
16821 process_stratum_target parameter.
16822 (switch_to_thread): Use is_current_thread.
16823 * i386-fbsd-tdep.c: Include "inferior.h".
16824 (i386fbsd_get_thread_local_address): Pass down target.
16825 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
16826 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
16827 have_inferiors check.
16828 * inf-ptrace.c (inf_ptrace_target::create_inferior)
16829 (inf_ptrace_target::attach): Adjust.
16830 * infcall.c (run_inferior_call): Adjust.
16831 * infcmd.c (run_command_1): Pass target to
16832 scoped_finish_thread_state.
16833 (proceed_thread_callback): Skip inferiors with no execution.
16834 (continue_command): Rename 'all_threads' local to avoid hiding
16835 'all_threads' function. Adjust get_last_target_status call.
16836 (prepare_one_step): Adjust set_running call.
16837 (signal_command): Use user_visible_resume_target. Compare thread
16838 pointers instead of inferior_ptid.
16839 (info_program_command): Adjust to pass down target.
16840 (attach_command): Mark target's 'thread_executing' flag.
16841 (stop_current_target_threads_ns): New, factored out from ...
16842 (interrupt_target_1): ... this. Switch inferior before making
16843 target calls.
16844 * inferior-iter.h
16845 (struct all_inferiors_iterator, struct all_inferiors_range)
16846 (struct all_inferiors_safe_range)
16847 (struct all_non_exited_inferiors_range): Filter on
16848 process_stratum_target too. Remove explicit.
16849 * inferior.c (inferior::inferior): Push dummy target on target
16850 stack.
16851 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
16852 Add process_stratum_target parameter, and pass it down.
16853 (have_live_inferiors): Adjust.
16854 (switch_to_inferior_and_push_target): New.
16855 (add_inferior_command, clone_inferior_command): Handle
16856 "-no-connection" parameter. Use
16857 switch_to_inferior_and_push_target.
16858 (_initialize_inferior): Mention "-no-connection" option in
16859 the help of "add-inferior" and "clone-inferior" commands.
16860 * inferior.h: Include "process-stratum-target.h".
16861 (interrupt_target_1): Use bool.
16862 (struct inferior) <push_target, unpush_target, target_is_pushed,
16863 find_target_beneath, top_target, process_target, target_at,
16864 m_stack>: New.
16865 (discard_all_inferiors): Delete.
16866 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
16867 (all_inferiors, all_non_exited_inferiors): Add
16868 process_stratum_target parameter.
16869 * infrun.c: Include "gdb_select.h" and <unordered_map>.
16870 (target_last_proc_target): New global.
16871 (follow_fork_inferior): Push target on new inferior. Pass target
16872 to add_thread_silent. Call exec_on_vfork. Handle target's
16873 reference count.
16874 (follow_fork): Adjust get_last_target_status call. Also consider
16875 target.
16876 (follow_exec): Push target on new inferior.
16877 (struct execution_control_state) <target>: New field.
16878 (user_visible_resume_target): New.
16879 (do_target_resume): Call target_async.
16880 (resume_1): Set target's threads_executing flag. Consider resume
16881 target.
16882 (commit_resume_all_targets): New.
16883 (proceed): Also consider resume target. Skip threads of inferiors
16884 with no execution. Commit resumtion in all targets.
16885 (start_remote): Pass current inferior to wait_for_inferior.
16886 (infrun_thread_stop_requested): Consider target as well. Pass
16887 thread_info pointer to clear_inline_frame_state instead of ptid.
16888 (infrun_thread_thread_exit): Consider target as well.
16889 (random_pending_event_thread): New inferior parameter. Use it.
16890 (do_target_wait): Rename to ...
16891 (do_target_wait_1): ... this. Add inferior parameter, and pass it
16892 down.
16893 (threads_are_resumed_pending_p, do_target_wait): New.
16894 (prepare_for_detach): Adjust calls.
16895 (wait_for_inferior): New inferior parameter. Handle it. Use
16896 do_target_wait_1 instead of do_target_wait.
16897 (fetch_inferior_event): Adjust. Switch to representative
16898 inferior. Pass target down.
16899 (set_last_target_status): Add process_stratum_target parameter.
16900 Save target in global.
16901 (get_last_target_status): Add process_stratum_target parameter and
16902 handle it.
16903 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
16904 (context_switch): Check inferior_ptid == null_ptid before calling
16905 inferior_thread().
16906 (get_inferior_stop_soon): Pass down target.
16907 (wait_one): Rename to ...
16908 (poll_one_curr_target): ... this.
16909 (struct wait_one_event): New.
16910 (wait_one): New.
16911 (stop_all_threads): Adjust.
16912 (handle_no_resumed, handle_inferior_event): Adjust to consider the
16913 event's target.
16914 (switch_back_to_stepped_thread): Also consider target.
16915 (print_stop_event): Update.
16916 (normal_stop): Update. Also consider the resume target.
16917 * infrun.h (wait_for_inferior): Remove declaration.
16918 (user_visible_resume_target): New declaration.
16919 (get_last_target_status, set_last_target_status): New
16920 process_stratum_target parameter.
16921 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16922 process_stratum_target parameter, and use it.
16923 (clear_inline_frame_state (thread_info*)): New.
16924 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16925 process_stratum_target parameter.
16926 (clear_inline_frame_state (thread_info*)): Declare.
16927 * linux-fork.c (delete_checkpoint_command): Pass target down to
16928 find_thread_ptid.
16929 (checkpoint_command): Adjust.
16930 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
16931 instead of just tweaking inferior_ptid.
16932 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
16933 (exit_lwp): Pass target down to find_thread_ptid.
16934 (attach_proc_task_lwp_callback): Pass target down to
16935 add_thread/set_running/set_executing.
16936 (linux_nat_target::attach): Pass target down to
16937 thread_change_ptid.
16938 (get_detach_signal): Pass target down to find_thread_ptid.
16939 Consider last target status's target.
16940 (linux_resume_one_lwp_throw, resume_lwp)
16941 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
16942 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
16943 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
16944 (linux_nat_target::async_wait_fd): New.
16945 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
16946 target down.
16947 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
16948 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
16949 * linux-thread-db.c (struct thread_db_info::process_target): New
16950 field.
16951 (add_thread_db_info): Save target.
16952 (get_thread_db_info): New process_stratum_target parameter. Also
16953 match target.
16954 (delete_thread_db_info): New process_stratum_target parameter.
16955 Also match target.
16956 (thread_from_lwp): Adjust to pass down target.
16957 (thread_db_notice_clone): Pass down target.
16958 (check_thread_db_callback): Pass down target.
16959 (try_thread_db_load_1): Always push the thread_db target.
16960 (try_thread_db_load, record_thread): Pass target down.
16961 (thread_db_target::detach): Pass target down. Always unpush the
16962 thread_db target.
16963 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
16964 target down. Always unpush the thread_db target.
16965 (find_new_threads_callback, thread_db_find_new_threads_2)
16966 (thread_db_target::update_thread_list): Pass target down.
16967 (thread_db_target::pid_to_str): Pass current inferior down.
16968 (thread_db_target::get_thread_local_address): Pass target down.
16969 (thread_db_target::resume, maintenance_check_libthread_db): Pass
16970 target down.
16971 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
16972 * procfs.c (procfs_target::procfs_init_inferior): Declare.
16973 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
16974 (procfs_init_inferior): Rename to ...
16975 (procfs_target::procfs_init_inferior): ... this and adjust.
16976 (procfs_target::create_inferior, procfs_notice_thread)
16977 (procfs_do_thread_registers): Adjust.
16978 * ppc-fbsd-tdep.c: Include "inferior.h".
16979 (ppcfbsd_get_thread_local_address): Pass down target.
16980 * proc-service.c (ps_xfer_memory): Switch current inferior and
16981 program space as well.
16982 (get_ps_regcache): Pass target down.
16983 * process-stratum-target.c
16984 (process_stratum_target::thread_address_space)
16985 (process_stratum_target::thread_architecture): Pass target down.
16986 * process-stratum-target.h
16987 (process_stratum_target::threads_executing): New field.
16988 (as_process_stratum_target): New.
16989 * ravenscar-thread.c
16990 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
16991 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
16992 down.
16993 * record-btrace.c (record_btrace_target::info_record): Adjust.
16994 (record_btrace_target::record_method)
16995 (record_btrace_target::record_is_replaying)
16996 (record_btrace_target::fetch_registers)
16997 (get_thread_current_frame_id, record_btrace_target::resume)
16998 (record_btrace_target::wait, record_btrace_target::stop): Pass
16999 target down.
17000 * record-full.c (record_full_wait_1): Switch to event thread.
17001 Pass target down.
17002 * regcache.c (regcache::regcache)
17003 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
17004 process_stratum_target parameter and handle it.
17005 (current_thread_target): New global.
17006 (get_thread_regcache): Add process_stratum_target parameter and
17007 handle it. Switch inferior before calling target method.
17008 (get_thread_regcache): Pass target down.
17009 (get_thread_regcache_for_ptid): Pass target down.
17010 (registers_changed_ptid): Add process_stratum_target parameter and
17011 handle it.
17012 (registers_changed_thread, registers_changed): Pass target down.
17013 (test_get_thread_arch_aspace_regcache): New.
17014 (current_regcache_test): Define a couple local test_target_ops
17015 instances and use them for testing.
17016 (readwrite_regcache): Pass process_stratum_target parameter.
17017 (cooked_read_test, cooked_write_test): Pass mock_target down.
17018 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
17019 (get_thread_arch_aspace_regcache): Add process_stratum_target
17020 parameter.
17021 (regcache::target): New method.
17022 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
17023 (regcache::registers_changed_ptid): Add process_stratum_target
17024 parameter.
17025 (regcache::m_target): New field.
17026 (registers_changed_ptid): Add process_stratum_target parameter.
17027 * remote.c (remote_state::supports_vCont_probed): New field.
17028 (remote_target::async_wait_fd): New method.
17029 (remote_unpush_and_throw): Add remote_target parameter.
17030 (get_current_remote_target): Adjust.
17031 (remote_target::remote_add_inferior): Push target.
17032 (remote_target::remote_add_thread)
17033 (remote_target::remote_notice_new_inferior)
17034 (get_remote_thread_info): Pass target down.
17035 (remote_target::update_thread_list): Skip threads of inferiors
17036 bound to other targets. (remote_target::close): Don't discard
17037 inferiors. (remote_target::add_current_inferior_and_thread)
17038 (remote_target::process_initial_stop_replies)
17039 (remote_target::start_remote)
17040 (remote_target::remote_serial_quit_handler): Pass down target.
17041 (remote_target::remote_unpush_target): New remote_target
17042 parameter. Unpush the target from all inferiors.
17043 (remote_target::remote_unpush_and_throw): New remote_target
17044 parameter. Pass it down.
17045 (remote_target::open_1): Check whether the current inferior has
17046 execution instead of checking whether any inferior is live. Pass
17047 target down.
17048 (remote_target::remote_detach_1): Pass down target. Use
17049 remote_unpush_target.
17050 (extended_remote_target::attach): Pass down target.
17051 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
17052 (remote_target::append_resumption): Pass down target.
17053 (remote_target::append_pending_thread_resumptions)
17054 (remote_target::remote_resume_with_hc, remote_target::resume)
17055 (remote_target::commit_resume): Pass down target.
17056 (remote_target::remote_stop_ns): Check supports_vCont_probed.
17057 (remote_target::interrupt_query)
17058 (remote_target::remove_new_fork_children)
17059 (remote_target::check_pending_events_prevent_wildcard_vcont)
17060 (remote_target::remote_parse_stop_reply)
17061 (remote_target::process_stop_reply): Pass down target.
17062 (first_remote_resumed_thread): New remote_target parameter. Pass
17063 it down.
17064 (remote_target::wait_as): Pass down target.
17065 (unpush_and_perror): New remote_target parameter. Pass it down.
17066 (remote_target::readchar, remote_target::remote_serial_write)
17067 (remote_target::getpkt_or_notif_sane_1)
17068 (remote_target::kill_new_fork_children, remote_target::kill): Pass
17069 down target.
17070 (remote_target::mourn_inferior): Pass down target. Use
17071 remote_unpush_target.
17072 (remote_target::core_of_thread)
17073 (remote_target::remote_btrace_maybe_reopen): Pass down target.
17074 (remote_target::pid_to_exec_file)
17075 (remote_target::thread_handle_to_thread_info): Pass down target.
17076 (remote_target::async_wait_fd): New.
17077 * riscv-fbsd-tdep.c: Include "inferior.h".
17078 (riscv_fbsd_get_thread_local_address): Pass down target.
17079 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
17080 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
17081 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
17082 Adjust.
17083 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
17084 * solib-svr4.c (enable_break): Pass down target.
17085 * spu-multiarch.c (parse_spufs_run): Pass down target.
17086 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
17087 * target-delegates.c: Regenerate.
17088 * target.c (g_target_stack): Delete.
17089 (current_top_target): Return the current inferior's top target.
17090 (target_has_execution_1): Refer to the passed-in inferior's top
17091 target.
17092 (target_supports_terminal_ours): Check whether the initial
17093 inferior was already created.
17094 (decref_target): New.
17095 (target_stack::push): Incref/decref the target.
17096 (push_target, push_target, unpush_target): Adjust.
17097 (target_stack::unpush): Defref target.
17098 (target_is_pushed): Return bool. Adjust to refer to the current
17099 inferior's target stack.
17100 (dispose_inferior): Delete, and inline parts ...
17101 (target_preopen): ... here. Only dispose of the current inferior.
17102 (target_detach): Hold strong target reference while detaching.
17103 Pass target down.
17104 (target_thread_name): Add assertion.
17105 (target_resume): Pass down target.
17106 (target_ops::beneath, find_target_at): Adjust to refer to the
17107 current inferior's target stack.
17108 (get_dummy_target): New.
17109 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
17110 has a thread running.
17111 (initialize_targets): Rename to ...
17112 (_initialize_target): ... this.
17113 * target.h: Include "gdbsupport/refcounted-object.h".
17114 (struct target_ops): Inherit refcounted_object.
17115 (target_ops::shortname, target_ops::longname): Make const.
17116 (target_ops::async_wait_fd): New method.
17117 (decref_target): Declare.
17118 (struct target_ops_ref_policy): New.
17119 (target_ops_ref): New typedef.
17120 (get_dummy_target): Declare function.
17121 (target_is_pushed): Return bool.
17122 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
17123 (all_matching_threads_iterator::all_matching_threads_iterator):
17124 Handle filter target.
17125 * thread-iter.h (struct all_matching_threads_iterator, struct
17126 all_matching_threads_range, class all_non_exited_threads_range):
17127 Filter by target too. Remove explicit.
17128 * thread.c (threads_executing): Delete.
17129 (inferior_thread): Pass down current inferior.
17130 (clear_thread_inferior_resources): Pass down thread pointer
17131 instead of ptid_t.
17132 (add_thread_silent, add_thread_with_info, add_thread): Add
17133 process_stratum_target parameter. Use it for thread and inferior
17134 searches.
17135 (is_current_thread): New.
17136 (thread_info::deletable): Use it.
17137 (find_thread_ptid, thread_count, in_thread_list)
17138 (thread_change_ptid, set_resumed, set_running): New
17139 process_stratum_target parameter. Pass it down.
17140 (set_executing): New process_stratum_target parameter. Pass it
17141 down. Adjust reference to 'threads_executing'.
17142 (threads_are_executing): New process_stratum_target parameter.
17143 Adjust reference to 'threads_executing'.
17144 (set_stop_requested, finish_thread_state): New
17145 process_stratum_target parameter. Pass it down.
17146 (switch_to_thread): Also match inferior.
17147 (switch_to_thread): New process_stratum_target parameter. Pass it
17148 down.
17149 (update_threads_executing): Reimplement.
17150 * top.c (quit_force): Pop targets from all inferior.
17151 (gdb_init): Don't call initialize_targets.
17152 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
17153 Declare.
17154 (windows_add_thread, windows_delete_thread): Adjust.
17155 (get_windows_debug_event): Rename to ...
17156 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
17157 * tracefile-tfile.c (tfile_target_open): Pass down target.
17158 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
17159 Forward declare.
17160 (switch_to_thread): Add process_stratum_target parameter.
17161 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
17162 parameter. Use it.
17163 (mi_on_resume): Pass target down.
17164 * nat/fork-inferior.c (startup_inferior): Add
17165 process_stratum_target parameter. Pass it down.
17166 * nat/fork-inferior.h (startup_inferior): Add
17167 process_stratum_target parameter.
17168 * python/py-threadevent.c (py_get_event_thread): Pass target down.
17169
75c6c844
PA
171702020-01-10 Pedro Alves <palves@redhat.com>
17171
17172 * remote.c (remote_target::start_remote): Don't set inferior_ptid
17173 directly. Instead find the first thread in the thread list and
17174 use switch_to_thread.
17175
78f2c40a
PA
171762020-01-10 Pedro Alves <palves@redhat.com>
17177
17178 * remote.c (remote_target::remote_add_inferior): Don't bind a
17179 process to the current inferior if the current inferior is already
17180 bound to a process.
17181
e7af6c70
TBA
171822020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17183 Pedro Alves <palves@redhat.com>
17184
17185 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
17186 If no process is specified, return null_ptid instead of
17187 inferior_ptid.
17188 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
17189 TARGET_WAITKIND_SIGNALLED with no pid.
17190
31ba933e
PA
171912020-01-10 Pedro Alves <palves@redhat.com>
17192
17193 * remote.c (first_remote_resumed_thread): New.
17194 (remote_target::wait_as): Use it as default event_ptid instead of
17195 inferior_ptid.
17196
735fc2ca
PA
171972020-01-10 Pedro Alves <palves@redhat.com>
17198
17199 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
17200
c17e02e1
PA
172012020-01-10 Pedro Alves <palves@redhat.com>
17202
17203 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
17204 not -1.
17205
ab1ddbcf
PA
172062020-01-10 Pedro Alves <palves@redhat.com>
17207
17208 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
17209 ptid to get_last_target_status.
17210 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
17211 ptid to get_last_target_status.
17212 * infcmd.c (continue_command): Don't pass a target_waitstatus to
17213 get_last_target_status.
17214 (info_program_command): Don't pass a target_waitstatus to
17215 get_last_target_status.
17216 * infrun.c (init_wait_for_inferior): Use
17217 nullify_last_target_wait_ptid.
17218 (get_last_target_status): Handle nullptr arguments.
17219 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
17220 (print_stop_event): Don't pass a ptid to get_last_target_status.
17221 (normal_stop): Don't pass a ptid to get_last_target_status.
17222 * infrun.h (get_last_target_status, set_last_target_status): Move
17223 comments here and update.
17224 (nullify_last_target_wait_ptid): Declare.
17225 * linux-fork.c (fork_load_infrun_state): Remove local extern
17226 declaration of nullify_last_target_wait_ptid.
17227 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
17228 to get_last_target_status.
17229
f3f8ece4
PA
172302020-01-10 Pedro Alves <palves@redhat.com>
17231
17232 * gdbthread.h (scoped_restore_current_thread)
17233 <dont_restore, restore, m_dont_restore>: Declare.
17234 * thread.c (thread_alive): Add assertion. Return bool.
17235 (switch_to_thread_if_alive): New.
17236 (prune_threads): Switch inferior/thread.
17237 (print_thread_info_1): Switch thread before calling target methods.
17238 (scoped_restore_current_thread::restore): New, factored out from
17239 ...
17240 (scoped_restore_current_thread::~scoped_restore_current_thread):
17241 ... this.
17242 (scoped_restore_current_thread::scoped_restore_current_thread):
17243 Add assertion.
17244 (thread_apply_all_command, thread_select): Use
17245 switch_to_thread_if_alive.
17246 * infrun.c (proceed, restart_threads, handle_signal_stop)
17247 (switch_back_to_stepped_thread): Switch current thread before
17248 calling target methods.
17249
db2d40f7
PA
172502020-01-10 Pedro Alves <palves@redhat.com>
17251
17252 * inferior.c (switch_to_inferior_no_thread): New function,
17253 factored out from ...
17254 (inferior_command): ... here.
17255 * inferior.h (switch_to_inferior_no_thread): Declare.
17256 * mi/mi-main.c (run_one_inferior): Use
17257 switch_to_inferior_no_thread.
17258
bd420a2d
PA
172592020-01-10 Pedro Alves <palves@redhat.com>
17260
17261 * infcmd.c (kill_command): Remove dead code.
17262
ddf5db90
PA
172632020-01-10 Pedro Alves <palves@redhat.com>
17264
17265 * remote.c (remote_target::mourn_inferior): No longer check
17266 whether the target is running.
17267
5018ce90
PA
172682020-01-10 Pedro Alves <palves@redhat.com>
17269
17270 * corelow.c (core_target::has_execution): Change parameter type to
17271 inferior pointer.
17272 * inferior.c (number_of_live_inferiors): Use
17273 inferior::has_execution instead of target_has_execution_1.
17274 * inferior.h (inferior::has_execution): New.
17275 * linux-thread-db.c (thread_db_target::update_thread_list): Use
17276 inferior::has_execution instead of target_has_execution_1.
17277 * process-stratum-target.c
17278 (process_stratum_target::has_execution): Change parameter type to
17279 inferior pointer. Check the inferior's PID instead of
17280 inferior_ptid.
17281 * process-stratum-target.h
17282 (process_stratum_target::has_execution): Change parameter type to
17283 inferior pointer.
17284 * record-full.c (record_full_core_target::has_execution): Change
17285 parameter type to inferior pointer.
17286 * target.c (target_has_execution_1): Change parameter type to
17287 inferior pointer.
17288 (target_has_execution_current): Adjust.
17289 * target.h (target_ops::has_execution): Change parameter type to
17290 inferior pointer.
17291 (target_has_execution_1): Change parameter type to inferior
17292 pointer. Change return type to bool.
17293 * tracefile.h (tracefile_target::has_execution): Change parameter
17294 type to inferior pointer.
17295
74375d18
PA
172962020-01-10 Pedro Alves <palves@redhat.com>
17297
17298 * exceptions.c (print_flush): Remove current_top_target() check.
17299
acdf84a6
PA
173002020-01-10 Pedro Alves <palves@redhat.com>
17301
17302 * remote.c (show_remote_exec_file): Show the current inferior's
17303 exec-file instead of the command variable's value.
17304
ec506636
PA
173052020-01-10 Pedro Alves <palves@redhat.com>
17306
17307 * record-full.c (record_full_resume_ptid): New global.
17308 (record_full_target::resume): Set it.
17309 (record_full_wait_1): Use record_full_resume_ptid instead of
17310 inferior_ptid.
17311
873657b9
PA
173122020-01-10 Pedro Alves <palves@redhat.com>
17313
17314 * gdbthread.h (scoped_restore_current_thread)
17315 <dont_restore, restore, m_dont_restore>: Declare.
17316 * thread.c (thread_alive): Add assertion. Return bool.
17317 (switch_to_thread_if_alive): New.
17318 (prune_threads): Switch inferior/thread.
17319 (print_thread_info_1): Switch thread before calling target methods.
17320 (scoped_restore_current_thread::restore): New, factored out from
17321 ...
17322 (scoped_restore_current_thread::~scoped_restore_current_thread):
17323 ... this.
17324 (scoped_restore_current_thread::scoped_restore_current_thread):
17325 Add assertion.
17326 (thread_apply_all_command, thread_select): Use
17327 switch_to_thread_if_alive.
17328
7f0ae84c
GB
173292020-01-10 George Barrett <bob@bob131.so>
17330
17331 * stap-probe.c (stap_modify_semaphore): Don't check for null
17332 semaphores.
17333 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
17334 for null semaphores.
17335
f5a7c406
AB
173362020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17337
17338 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
17339 all source windows, and maintain horizontal scroll status while
17340 doing so.
17341
9ae6bf64
TT
173422020-01-09 Tom Tromey <tom@tromey.com>
17343
17344 PR tui/18932:
17345 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
17346 update_source_window, not print_source_lines.
17347
b2efe70c
AB
173482020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17349
17350 * tui/tui.c (tui_enable): Register tui hooks after calling
17351 tui_display_main.
17352
5f23a082
CB
173532020-01-09 Christian Biesinger <cbiesinger@google.com>
17354
17355 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
17356
3061113b
SM
173572020-01-08 Simon Marchi <simon.marchi@efficios.com>
17358
17359 * thread.c (print_thread_info_1): Fix indentation.
17360
57d75002
CB
173612020-01-09 Christian Biesinger <cbiesinger@google.com>
17362
17363 * symtab.c (general_symbol_info::compute_and_set_names): Move the
17364 unique_xmalloc_ptr outside the if to always free the demangled name.
17365
6a053cb1
TT
173662020-01-08 Tom Tromey <tromey@adacore.com>
17367
17368 * xcoffread.c (enter_line_range, read_xcoff_symtab)
17369 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
17370 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
17371 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
17372 Remove.
17373 (section_offsets): New typedef.
17374 * symtab.c (fixup_section, get_msymbol_address): Update.
17375 * symmisc.c (dump_msymbols): Update.
17376 * symfile.h (relative_addr_info_to_section_offsets)
17377 (symfile_map_offsets_to_segments): Update.
17378 * symfile.c (build_section_addr_info_from_objfile)
17379 (init_objfile_sect_indices): Update.
17380 (struct place_section_arg): Change type of "offsets".
17381 (place_section): Update.
17382 (relative_addr_info_to_section_offsets): Change type of
17383 "section_offsets". Remove "num_sections" parameter.
17384 (default_symfile_offsets, syms_from_objfile_1)
17385 (set_objfile_default_section_offset): Update.
17386 (reread_symbols): No need to preserve section offsets by hand.
17387 (symfile_map_offsets_to_segments): Change type of "offsets".
17388 * stap-probe.c (relocate_address): Update.
17389 * stabsread.h (process_one_symbol): Update.
17390 * solib-target.c (struct lm_info_target) <offsets>: Change type.
17391 (solib_target_relocate_section_addresses): Update.
17392 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
17393 Update.
17394 * solib-frv.c (frv_relocate_main_executable): Update.
17395 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
17396 * solib-aix.c (solib_aix_get_section_offsets): Change return
17397 type.
17398 (solib_aix_solib_create_inferior_hook): Update.
17399 * remote.c (remote_target::get_offsets): Update.
17400 * psymtab.c (find_pc_sect_psymtab): Update.
17401 * psympriv.h (struct partial_symbol) <address, text_low,
17402 text_high>: Update.
17403 * objfiles.h (obj_section_offset): Update.
17404 (struct objfile) <section_offsets>: Change type.
17405 <num_sections>: Remove.
17406 (objfile_relocate): Update.
17407 * objfiles.c (entry_point_address_query): Update
17408 (relocate_one_symbol): Change type of "section_offsets".
17409 (objfile_relocate1, objfile_relocate1): Change type of
17410 "new_offsets".
17411 (objfile_rebase1): Update.
17412 * mipsread.c (mipscoff_symfile_read): Update.
17413 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
17414 parameter.
17415 * mdebugread.c (parse_symbol): Change type of "section_offsets".
17416 (parse_external, psymtab_to_symtab_1): Update.
17417 * machoread.c (macho_symfile_offsets): Update.
17418 * ia64-tdep.c (ia64_find_unwind_table): Update.
17419 * hppa-tdep.c (read_unwind_info): Update.
17420 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
17421 * dwarf2read.c (create_addrmap_from_index)
17422 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
17423 (process_psymtab_comp_unit_reader, add_partial_symbol)
17424 (add_partial_subprogram, process_full_comp_unit)
17425 (read_file_scope, read_func_scope, read_lexical_block_scope)
17426 (read_call_site_scope, dwarf2_rnglists_process)
17427 (dwarf2_ranges_process, dwarf2_ranges_read)
17428 (dwarf_decode_lines_1, var_decode_location, new_symbol)
17429 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
17430 Update.
17431 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
17432 Update.
17433 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
17434 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
17435 (process_one_symbol): Change type of "section_offsets".
17436 * ctfread.c (get_objfile_text_range): Update.
17437 * coffread.c (coff_symtab_read, enter_linenos)
17438 (process_coff_symbol): Update.
17439 * coff-pe-read.c (add_pe_forwarded_sym): Update.
17440 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
17441
456e800a
TT
174422020-01-08 Tom Tromey <tromey@adacore.com>
17443
17444 * dwarf2read.c (parse_macro_definition): Use std::string.
17445 (parse_macro_definition): Likewise.
17446
6dfa2fc2
TT
174472020-01-08 Tom Tromey <tromey@adacore.com>
17448
17449 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
17450 (ATTR_ALLOC_CHUNK): Remove.
17451
421d1616
TT
174522020-01-08 Tom Tromey <tromey@adacore.com>
17453
17454 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
17455
43816ebc
TT
174562020-01-08 Tom Tromey <tromey@adacore.com>
17457
17458 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
17459 (dwarf2_compute_name, open_dwo_file): Likewise.
17460 (process_enumeration_scope): Use std::vector.
17461 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
17462 (partial_die_info::fixup, dwarf2_start_subfile)
17463 (guess_full_die_structure_name, dwarf2_name): Likewise.
17464 (determine_prefix): Update.
17465 (guess_full_die_structure_name): Make return type const.
17466 (partial_die_full_name): Return unique_xmalloc_ptr.
17467 (DW_FIELD_ALLOC_CHUNK): Remove.
17468
4212d509
TT
174692020-01-07 Tom Tromey <tromey@adacore.com>
17470
17471 PR build/24937:
17472 * stap-probe.c (class stap_static_probe_ops): Add constructor.
17473
06a6207a
JT
174742020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17475
17476 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
17477
153d79c4
AB
174782020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
17479
17480 * stack.c (print_frame_info): Move disassemble_next_line code
17481 inside source_print block.
17482
66182876
EZ
174832020-01-06 Eli Zaretskii <eliz@gnu.org>
17484
17485 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
17486 gdb/signals.h, as we are now using native signal symbols.
17487
cbfa8581
SV
174882020-01-06 Shahab Vahedi <shahab@synopsys.com>
17489
17490 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
17491 overflow by an early check of content vs threshold.
aac66a4c 17492 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
17493 Likewise.
17494
3f602821
EZ
174952020-01-06 Eli Zaretskii <eliz@gnu.org>
17496
17497 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
17498
a08c904d
JT
174992020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17500
17501 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
17502 export table if no section contains it's RVA.
17503
89a65580
EZ
175042020-01-06 Eli Zaretskii <eliz@gnu.org>
17505
17506 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
17507
8b7fcda2
HD
175082020-01-06 Hannes Domani <ssbssa@yahoo.de>
17509
17510 * source.c (print_source_lines_base): Set last_line_listed.
17511
a61b4f69
SV
175122020-01-06 Shahab Vahedi <shahab@synopsys.com>
17513
17514 * tui/tui-disasm.c: Remove trailing spaces.
17515
559e7e50
EZ
175162020-01-06 Eli Zaretskii <eliz@gnu.org>
17517 Pedro Alves <palves@redhat.com>
17518
17519 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
17520 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
17521 (windows_gdb_signal_to_target): New function, uses the above
17522 enumeration to convert GDB internal signal codes to equivalent
17523 Windows codes.
17524 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
17525 * windows-nat.c: Include "gdb_wait.h".
17526 (get_windows_debug_event): Extract the fatal exception from the
17527 exit status and convert to the equivalent Posix signal number.
17528 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
17529 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
17530 * gdbsupport/gdb_wait.c: New file, implements
17531 windows_status_to_termsig.
17532 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
17533 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
17534
f2302a34
AB
175352020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
17536
17537 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
17538 show_layout.
17539
6a5206eb
LM
175402020-01-05 Luis Machado <luis.machado@linaro.org>
17541
17542 * aarch64-linux-nat.c
17543 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
17544 and bfd_mach_aarch64.
17545
6ec1d75e
PW
175462020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17547
17548 * ui-file.c (stdio_file::can_emit_style_escape)
17549 (tee_file::can_emit_style_escape): Ensure style is used also on
17550 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
17551 to gdb_stdout.
17552 * main.c (set_gdb_data_directory): Use file style to output the
17553 warning that the given pathname is not a directory.
17554 * top.c (show_history_filename, gdb_safe_append_history)
17555 (show_gdb_datadir): Use file style.
17556
44f81a76
HD
175572020-01-03 Hannes Domani <ssbssa@yahoo.de>
17558
17559 * solib-target.c (struct lm_info_target):
17560 Change offsets to be a unique_xmalloc_ptr.
17561 (solib_target_relocate_section_addresses): Update.
17562
25057eb0
HD
175632020-01-03 Hannes Domani <ssbssa@yahoo.de>
17564
17565 * windows-nat.c (windows_clear_solib): Free so_list linked list.
17566
6e2118f5
BE
175672020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
17568
17569 * MAINTAINERS (Write After Approval): Add myself.
17570
8133c7dc
LM
175712020-01-02 Luis Machado <luis.machado@linaro.org>
17572
17573 * proc-service.c (get_ps_regcache): Remove reference to obsolete
17574 Cell BE architecture.
17575 * target.h (struct target_ops) <thread_architecture>: Likewise.
17576
48189bec
HD
175772020-01-01 Hannes Domani <ssbssa@yahoo.de>
17578
17579 * Makefile.in: Use INSTALL_PROGRAM_ENV.
17580
ead1063b
HD
175812020-01-01 Hannes Domani <ssbssa@yahoo.de>
17582
17583 * MAINTAINERS (Write After Approval): Add myself.
17584
e5d78223
JB
175852020-01-01 Joel Brobecker <brobecker@adacore.com>
17586
17587 * gdbarch.sh: Update copyright year range of generated files.
17588
b811d2c2
JB
175892020-01-01 Joel Brobecker <brobecker@adacore.com>
17590
17591 Update copyright year range in all GDB files.
17592
5f4def5c
JB
175932020-01-01 Joel Brobecker <brobecker@adacore.com>
17594
17595 * copyright.py: Convert to Python 3.
17596
51fd4002
JB
175972020-01-01 Joel Brobecker <brobecker@adacore.com>
17598
17599 * copyright.py: Adapt after move of gnulib directory from gdb
17600 directory to toplevel directory.
17601
5fb651f2
JB
176022020-01-01 Joel Brobecker <brobecker@adacore.com>
17603
17604 * copyright.py (main): Exit if run from the wrong directory.
17605
5dd8bf88
JB
176062020-01-01 Joel Brobecker <brobecker@adacore.com>
17607
17608 * top.c (print_gdb_version): Change copyright year to 2020.
17609
9f71dacb 176102020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 17611
9f71dacb 17612 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 17613
9f71dacb 17614For older changes see ChangeLog-2019.
c906108c
SS
17615\f
17616Local Variables:
17617mode: change-log
17618left-margin: 8
17619fill-column: 74
17620version-control: never
57da7796 17621coding: utf-8
c906108c 17622End:
This page took 4.739605 seconds and 4 git commands to generate.