]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
gdb: rename displaced_step_closure to displaced_step_copy_insn_closure
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
1152d984
SM
12020-12-04 Simon Marchi <simon.marchi@efficios.com>
2
3 * infrun.h (get_displaced_step_closure_by_addr): Rename to...
4 (get_displaced_step_copy_insn_closure_by_addr): ... this.
5 Update all users.
6 (displaced_step_closure): Rename to...
7 (displaced_step_copy_insn_closure): ... this. Update all users.
8 (displaced_step_closure_up): Rename to...
9 (displaced_step_copy_insn_closure_up). ... this. Update all
10 users.
11 (buf_displaced_step_closure): Rename to...
12 (buf_displaced_step_copy_insn_closure): ... this. Update all
13 users.
14 * infrun.c (get_displaced_step_closure_by_addr): Rename to...
15 (get_displaced_step_copy_insn_closure_by_addr): ... this.
16 Update all users.
17 * aarch64-tdep.c (aarch64_displaced_step_closure): Rename to...
18 (aarch64_displaced_step_copy_insn_closure): ... this. Update
19 all users.
20 * amd64-tdep.c (amd64_displaced_step_closure): Rename to...
21 (amd64_displaced_step_copy_insn_closure): ... this. Update all
22 users.
23 * arm-tdep.h (arm_displaced_step_closure): Rename to...
24 (arm_displaced_step_copy_insn_closure): ... this. Update all
25 users.
26 * i386-tdep.h (i386_displaced_step_closure): Rename to...
27 (i386_displaced_step_copy_insn_closure): ... this. Update all
28 users.
29 * rs6000-tdep.c (ppc_displaced_step_closure): Rename to...
30 (ppc_displaced_step_copy_insn_closure): ... this. Update all
31 users.
32 * s390-tdep.c (s390_displaced_step_closure): Rename to...
33 (s390_displaced_step_copy_insn_closure): ... this. Update all
34 users.
35 * gdbarch.h: Re-generate.
36 * gdbarch.c: Re-generate.
37
28d5518b
SM
382020-12-04 Simon Marchi <simon.marchi@efficios.com>
39
40 * gdbthread.h (thread_step_over_chain_enqueue): Rename to...
41 (global_thread_step_over_chain_enqueue): ... this. Update all
42 users.
43 (thread_step_over_chain_remove): Rename to...
44 (global_thread_step_over_chain_remove): ... this. Update all
45 users.
46 (thread_step_over_chain_next): Rename to...
47 (global_thread_step_over_chain_next): ... this. Update all
48 users.
49 * infrun.h (step_over_queue_head): Rename to...
50 (global_thread_step_over_chain_head): ... this. Update all
51 users.
52 * infrun.c (step_over_queue_head): Rename to...
53 (global_thread_step_over_chain_head): ... this. Update all
54 users.
55 * thread.c (step_over_chain_remove): Rename to...
56 (thread_step_over_chain_remove): ... this. Update all users.
57 (thread_step_over_chain_next): Rename to...
58 (global_thread_step_over_chain_next): ... this. Update all
59 users.
60 (thread_step_over_chain_enqueue): Rename to...
61 (global_thread_step_over_chain_enqueue): ... this. Update all
62 users.
63 (thread_step_over_chain_remove): Rename to...
64 (global_thread_step_over_chain_remove): ... this. Update all
65 users.
66
f5f01699
SM
672020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
68
69 * infrun.c (get_displaced_stepping_state): Remove, change
70 callers to access the field directly.
71
c0aba012
SM
722020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
73
74 * infrun.c (handle_inferior_event): Restore displaced step
75 buffer bytes in child process when handling fork, even if fork
76 happened in another thread than the displaced-stepping one.
77
3b7a962d
SM
782020-12-04 Simon Marchi <simon.marchi@efficios.com>
79
80 * infrun.c (infrun_inferior_execd): New function.
81 (_initialize_infrun): Attach inferior_execd observer.
82
42a4fec5
SM
832020-12-04 Simon Marchi <simon.marchi@efficios.com>
84
85 * observable.h (inferior_execd): Declare new observable.
86 * observable.c (inferior_execd): Declare new observable.
87 * infrun.c (follow_exec): Notify inferior_execd observer.
88 * jit.c (jit_inferior_created_hook): Make static.
89 (_initialize_jit): Register inferior_execd observer.
90 * jit.h (jit_inferior_created_hook): Remove declaration.
91 * solib.c (_initialize_solib): Register inferior_execd observer.
92
aafdfb4e
TV
932020-12-04 Tom de Vries <tdevries@suse.de>
94
95 PR gdb/27003
96 * completer.c (completion_tracker::build_completion_result): Don't
97 access match_list[0][-1].
98
f99b5177
TT
992020-12-04 Tom Tromey <tromey@adacore.com>
100
101 * linespec.c (struct linespec_token): Rename; remove typedef.
102 * guile/scm-block.c (struct block_smob): Remove typedef.
103 (struct block_syms_progress_smob): Likewise.
104 * guile/scm-symbol.c (struct symbol_smob): Remove typedef.
105 * guile/scm-symtab.c (symtab_smob): Remove typedef.
106 (struct sal_smob): Remove typedef.
107 * guile/scm-param.c (struct param_smob): Remove typedef.
108 * guile/scm-progspace.c (struct pspace_smob): Rename.
109 * guile/scm-objfile.c (struct objfile_smob): Rename.
110 * guile/scm-iterator.c (struct iterator_smob): Rename.
111 * guile/scm-frame.c (struct frame_smob): Rename.
112 * guile/scm-arch.c (struct arch_smob): Rename.
113 * guile/scm-type.c (struct field_smob): Remove typedef.
114 (struct type_smob): Rename.
115 * guile/scm-cmd.c (struct command_smob): Remove typedef.
116 * guile/scm-ports.c (struct ioscm_memory_port): Remove typedef.
117 * guile/scm-value.c (struct value_smob): Remove typedef.
118 * guile/scm-lazy-string.c (lazy_string_smob): Remove typedef.
119 * guile/guile-internal.h (struct scheme_variable)
120 (struct scheme_function, struct scheme_integer_constant)
121 (struct gdb_smob, struct chained_gdb_smob)
122 (struct eqable_gdb_smob, arch_smob, frame_smob, iterator_smob)
123 (objfile_smob, pspace_smob, type_smob): Remove typedef.
124 * guile/scm-pretty-print.c (pretty_printer_smob): Remove typedef.
125 (struct pretty_printer_worker_smob): Remove typedef.
126 * guile/scm-exception.c (struct exception_smob): Remove typedef.
127 * python/py-block.c (struct block_object): Remove typedef.
128 (block_syms_iterator_object): Update.
129 (set_block): Update.
130 (block_syms_iterator_object): Remove typedef.
131 * python/py-inferior.c (struct membuf_object): Remove typedef.
132 * python/py-symtab.c (struct symtab_object): Remove typedef.
133 (set_symtab): Update.
134 (sal_object): Remove typedef.
135 (set_sal): Update.
136 * python/py-frame.c (frame_object): Remove typedef.
137 * python/py-record-btrace.c (struct btpy_list_object): Remove
138 typedef.
139 * python/py-arch.c (struct arch_object): Remove typedef.
140 * python/py-linetable.c (struct linetable_entry_object)
141 (linetable_object, struct ltpy_iterator_object): Remove typedef.
142 * python/py-events.h (eventregistry_object): Remove typedef.
143 (struct events_object): Remove typedef.
144 * python/python-internal.h (gdbpy_breakpoint_object): Remove
145 typedef.
146 (thread_object): Remove typedef.
147 * python/py-progspace.c (pspace_object): Remove typedef.
148 * python/py-value.c (struct value_object): Remove typedef.
149 * python/py-record.h (recpy_record_object): Remove typedef.
150 (struct recpy_element_object): Remove typedef.
151 * python/py-lazy-string.c (lazy_string_object): Remove typedef.
152 * python/py-objfile.c (objfile_object): Remove typedef.
153 * python/py-cmd.c (struct cmdpy_object): Remove typedef.
154 * python/py-type.c (type_object): Remove typedef.
155 (typy_iterator_object): Update.
156 (set_type): Update.
157 (field_object): Remove typedef.
158 (typy_iterator_object): Remove typedef.
159 * python/py-registers.c (register_descriptor_iterator_object):
160 Remove typedef.
161 (struct register_descriptor_object)
162 (struct reggroup_iterator_object, struct reggroup_object): Remove
163 typedef.
164 * python/py-record.c (recpy_gap_object): Remove typedef.
165 * python/py-symbol.c (symbol_object): Remove typedef.
166 (set_symbol): Update.
167 * python/py-event.h (event_object): Remove typedef.
168 * python/py-param.c (parmpy_object): Remove typedef.
169 * python/py-instruction.c (struct py_insn_obj): Remove typedef.
170 * python/py-unwind.c (struct pending_frame_object): Remove typedef.
171 (unwind_info_object, struct cached_frame_info): Likewise.
172
91f87213
TT
1732020-12-04 Tom Tromey <tromey@adacore.com>
174
175 * value.c (value_internal_function_name): Make return type const.
176 * value.h (value_internal_function_name): Make return type const.
177
5382f971
LM
1782020-12-04 Luis Machado <luis.machado@linaro.org>
179
180 * aarch64-tdep.c (submask, bit, bits): Remove.
181 * arch/aarch64-insn.c (extract_signed_bitfield): Remove.
182 (aarch64_decode_adr, aarch64_decode_b aarch64_decode_bcond)
183 (aarch64_decode_cb, aarch64_decode_tb)
184 (aarch64_decode_ldr_literal): Use sbits to extract a signed
185 immediate.
186 * arch/aarch64-insn.h (submask, bits, bit, sbits): New macros.
187
b6a6aa07
TV
1882020-12-04 Tom de Vries <tdevries@suse.de>
189
190 PR tdep/27007
191 * i386-tdep.c (i386_16_byte_align_p): Skip static fields.
192
0bc2e38d
SM
1932020-12-03 Simon Marchi <simon.marchi@polymtl.ca>
194
195 PR gdb/26876
196 * dwarf2/frame.c (find_comp_unit, set_comp_unit): Reverse use of
197 dwarf2_frame_bfd_data and dwarf2_frame_objfile_data.
198
25428040
AB
1992020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
200
201 * arch/riscv.c: Include 'rv32e-xregs.c'.
202 (riscv_create_target_description): Update to handle rv32e.
203 * arch/riscv.h (struct riscv_gdbarch_features) <embedded>: New
204 member variable.
205 <operator==>: Update to account for new field.
206 <hash>: Likewise.
207 * features/Makefile (FEATURE_XMLFILES): Add riscv/rv32e-xregs.xml.
208 * features/riscv/rv32e-xregs.c: Generated.
209 * features/riscv/rv32e-xregs.xml: New file.
210 * riscv-tdep.c (riscv_debug_breakpoints): Move from later in the
211 file.
212 (riscv_debug_infcall): Likewise.
213 (riscv_debug_unwinder): Likewise.
214 (riscv_debug_gdbarch): Likewise.
215 (enum riscv_register_required_status): Delete.
216 (struct riscv_register_feature): Add constructor, delete default
217 constructor, copy, and assign constructors.
218 (struct riscv_register_feature::register_info) <required>: Delete.
219 <check>: Update comment and arguments.
220 (struct riscv_register_feature) <name>: Change to member function.
221 <prefer_first_name>: Delete.
222 <tdesc_feature>: New member function.
223 <registers>: Rename to...
224 <m_registers>: ...this.
225 <m_feature_name>: New member variable.
226 (riscv_register_feature::register_info::check): Update arguments.
227 (riscv_xreg_feature): Rewrite as class, create a single static
228 instance of the class.
229 (riscv_freg_feature): Likewise.
230 (riscv_virtual_feature): Likewise.
231 (riscv_csr_feature): Likewise.
232 (riscv_create_csr_aliases): Has become a member function inside
233 riscv_csr_feature class.
234 (riscv_abi_embedded): New function definition.
235 (riscv_register_name): Adjust to use new feature objects.
236 (struct riscv_call_info) <riscv_call_info>: Check for rv32e abi,
237 and adjust available argument registers.
238 (riscv_features_from_gdbarch_info): Check for EF_RISCV_RVE flag.
239 (riscv_check_tdesc_feature): Delete.
240 (riscv_tdesc_unknown_reg): Adjust to use new feature objects.
241 (riscv_gdbarch_init): Delete target description checking code, and
242 instead call to the new feature objects to perform the checks.
243 Reorder handling of no abi information case, allows small code
244 simplification.
245 (_initialize_riscv_tdep): Remove call, this is now done in the
246 riscv_csr_feature constructor.
247 * riscv-tdep.h (riscv_abi_embedded): Declare.
248
533b2ae0
AB
2492020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
250
251 * riscv-tdep.c (riscv_create_csr_aliases): Remove use of
252 DECLARE_CSR_ALIAS.
253
e4502042
AB
2542020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
255
256 * riscv-tdep.c (riscv_is_unknown_csr): New function,
257 implementation moved from riscv_register_reggroup_p.
258 (riscv_register_reggroup_p): Update group handling for unknown
259 CSRs.
260
2bf3b79d
SDJ
2612020-12-01 Sergio Durigan Junior <sergiodj@sergiodj.net>
262
263 * dwarf2/read.c (dwz_search_other_debugdirs): New function.
264 (dwarf2_get_dwz_file): Convert 'filename' to a
265 std::string. Use dwz_search_other_debugdirs to search for DWZ
266 files in the debug-file-directories provided by the user as well.
267
77bf7e99
TT
2682020-12-01 Tom Tromey <tom@tromey.com>
269
270 * parse.c (expr_builder::expr_builder): Initialize expout.
271 (expr_builder::release): Use expression::resize.
272 (expression::expression, expression::~expression)
273 (expression::resize): New methods.
274 (write_exp_elt): Use expression::resize.
275 (prefixify_expression): Update.
276 (increase_expout_size): Use expression::resize.
277 * expression.h (struct expression): Add constructor, destructor.
278 <resize>: New method.
279 (expression_up): Change type.
280
539d71e8
RA
2812020-12-01 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
282 * ppc-linux-nat.c: (PPC_DEBUG_FEATURE_DATA_BP_ARCH_31): New define.
283 (region_ok_for_hw_watchpoint): Check if 2nd DAWR is avaliable before
284 set region.
285
7ce05d21
TV
2862020-11-30 Tom de Vries <tdevries@suse.de>
287
288 PR symtab/26905
289 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add and handle
290 is_reference parameter.
291 (dwarf2_evaluate_property): Update dwarf2_locexpr_baton_eval call.
292
88b91969
TT
2932020-11-30 Tom Tromey <tom@tromey.com>
294
295 * rust-lang.c (rust_op_name): Remove.
296 (exp_descriptor_rust): Update.
297 * parser-defs.h (op_name_standard): Don't declare.
298 (struct exp_descriptor) <op_name>: Remove.
299 * parse.c (exp_descriptor_standard): Update.
300 * opencl-lang.c (exp_descriptor_opencl): Update.
301 * m2-lang.c (m2_language::exp_descriptor_modula2): Update.
302 * f-lang.c (op_name_f): Remove.
303 (f_language::exp_descriptor_tab): Update.
304 * expression.h (op_name): Update.
305 * expprint.c (op_name): Rewrite.
306 (op_name_standard): Remove.
307 (dump_raw_expression, dump_subexp): Update.
308 * c-lang.c (exp_descriptor_c): Update.
309 * ax-gdb.c (gen_expr): Update.
310 * ada-lang.c (ada_op_name): Remove.
311 (ada_exp_descriptor): Update.
312
1cd49c43
TT
3132020-11-30 Tom Tromey <tom@tromey.com>
314
315 * eval.c (init_array_element): Remove.
316 (evaluate_subexp_standard) <OP_ARRAY>: Remove "index_pc".
317
96fb9086
HD
3182020-11-29 Hannes Domani <ssbssa@yahoo.de>
319
320 PR tui/26973
321 * tui/tui-layout.c (tui_apply_current_layout): Don't delete the
322 static locator win info.
323
b4132322
AR
3242020-11-28 Alex Richardson <Alexander.Richardson@cl.cam.ac.uk>
325
326 * acincludde.m4 (GDB_AC_CHECK_BFD): Include string.h in the test
327 program.
328
3df8c6af
AB
3292020-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
330
331 * printcmd.c (skip_over_slash_fmt): Reorder code to ensure in_fmt
332 is always initialized.
333
0ae45769
RA
3342020-11-26 Rogerio Alves <rcardoso@linux.ibm.com>
335 * MAINTAINERS (Write After Approval): Add myself.
336
239ca5e4
PW
3372020-11-26 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
338
339 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
340 * features/aarch64-fpu.xml: Add named FPCR and FPSR register bit-fields.
341
cbfa382a
TT
3422020-11-25 Tom Tromey <tom@tromey.com>
343
344 * eval.c (evaluate_subexp_standard): Remove unnecessary
345 variables.
346
af30c400
TT
3472020-11-25 Tom Tromey <tom@tromey.com>
348
349 * d-lang.c: Include parser-defs.h.
350 * rust-lang.c: Include parser-defs.h.
351 * c-lang.h: Do not include parser-defs.h.
352
1c64f6cb
SM
3532020-11-24 Simon Marchi <simon.marchi@polymtl.ca>
354
355 * regcache.h (struct cached_reg): Remove typedef.
356
2c20a601
JB
3572020-11-24 Joel Brobecker <brobecker@adacore.com>
358
359 * README: Fix the URL of the MPFR library.
360
c609df64
JB
3612020-11-24 Joel Brobecker <brobecker@adacore.com>
362
363 * README: Document the --with-libgmp-prefix configure option.
364
fa123c32
JB
3652020-11-24 Joel Brobecker <brobecker@adacore.com>
366
367 * NEWS: Add entry documenting support for DWARF-based fixed
368 point types.
369
0fb8bb02
JB
3702020-11-24 Joel Brobecker <brobecker@adacore.com>
371
372 * NEWS: Document that building GDB now requires GMP.
373
4afa9fd9
JB
3742020-11-24 Joel Brobecker <brobecker@adacore.com>
375
376 * typeprint.c (print_type_scalar): Add handling of
377 TYPE_CODE_FIXED_POINT.
378
af619ce9
JB
3792020-11-24 Joel Brobecker <brobecker@adacore.com>
380
381 * valarith.c (fixed_point_binop): Replace the
382 INIT_VAL_WITH_FIXED_POINT_VAL macro by a lambda. Update all
383 users accordingly.
384
e6fcee3a
JB
3852020-11-24 Joel Brobecker <brobecker@adacore.com>
386
387 * gdbtypes.h (struct type) <fixed_point_scaling_factor>: New method,
388 replacing fixed_point_scaling_factor. All callers updated
389 throughout this project.
390 (fixed_point_scaling_factor): Delete declaration.
391 * gdbtypes.c (type::fixed_point_scaling_factor): Replaces
392 fixed_point_scaling_factor. Adjust implementation accordingly.
393
d19937a7
JB
3942020-11-24 Joel Brobecker <brobecker@adacore.com>
395
396 * gdbtypes.h (struct type) <fixed_point_type_base_type> New method,
397 replacing the fixed_point_type_base_type function. All callers
398 updated throughout this project.
399 (fixed_point_type_base_type): Remove declaration.
400 * gdbtypes.c (type::fixed_point_type_base_type): Replaces
401 fixed_point_type_base_type. Adjust implementation accordingly.
402
2a12c336
JB
4032020-11-24 Joel Brobecker <brobecker@adacore.com>
404
405 * gdbtypes.h (struct type) <fixed_point_info, set_fixed_point_info>:
406 New methods.
407 (INIT_FIXED_POINT_SPECIFIC): Adjust.
408 (TYPE_FIXED_POINT_INFO): Delete macro.
409 (allocate_fixed_point_type_info): Change return type to void.
410 * gdbtypes.c (copy_type_recursive): Replace the use of
411 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
412 (fixed_point_scaling_factor): Likewise.
413 (allocate_fixed_point_type_info): Change return type to void.
414 Adjust implementation accordingly.
415 * dwarf2/read.c (finish_fixed_point_type): Replace the use of
416 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
417
c9f0b43f
JB
4182020-11-24 Joel Brobecker <brobecker@adacore.com>
419
420 * gmp-utils.h (gdb_mpz::read): Change buf and len parameters
421 into one single gdb::array_view parameter.
422 (gdb_mpz::write): Likewise.
423 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
424 * gmp-utils.c (gdb_mpz::read): Change buf and len parameters
425 into one single gdb::array_view parameter.
426 Adjust implementation accordingly.
427 (gdb_mpz::write): Likewise.
428 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
429 * unittests/gmp-utils-selftests.c: Adapt following changes above.
430 * valarith.c, valops.c, valprint.c, value.c: Likewise.
431
987b6703
JB
4322020-11-24 Joel Brobecker <brobecker@adacore.com>
433
434 * gmp-utils.h (gmp_string_printf): Rename from gmp_string_asprintf.
435 Change return type to std::string. Update all callers.
436 * gmp-utils.c (gmp_string_printf): Likewise.
437
4fbb7cce
JB
4382020-11-24 Joel Brobecker <brobecker@adacore.com>
439
440 * unittests/gmp-utils-selftests.c (write_fp_test): Use mpq_set_si
441 instead of mpq_set_ui to initialize our GMP rational.
442
d6ab69dd
TV
4432020-11-23 Tom de Vries <tdevries@suse.de>
444
445 * debuginfod-support.c (debuginfod_source_query)
446 (debuginfod_debuginfo_query): Only set DESTNAME if successful.
447
dab72643
TT
4482020-11-21 Tom Tromey <tom@tromey.com>
449
450 * breakpoint.c (watchpoint_exp_is_const): Return bool.
451
c0ad05d5
SM
4522020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
453
454 * unittests/gmp-utils-selftests.c (gdb_mpz_read_all_from_small):
455 Pass 2.0 to pow.
456 (gdb_mpz_write_all_from_small): Likewise.
457
a43b29c9
SM
4582020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
459
460 * dwarf2/read.c (finish_fixed_point_type): Use std::abs instead
461 of abs.
462
ae41200b
NA
4632020-11-20 Nick Alcock <nick.alcock@oracle.com>
464
465 * ctfread.c (elfctf_build_psymtabs): Use ctf_dict_open, not
466 ctf_arc_open_by_name.
467
139633c3
NA
4682020-11-20 Nick Alcock <nick.alcock@oracle.com>
469
470 * ctfread.c: Change uses of ctf_file_t to ctf_dict_t.
471 (ctf_fp_info::~ctf_fp_info): Call ctf_dict_close, not ctf_file_close.
472
cbbcd7a7
PA
4732020-11-20 Pedro Alves <pedro@palves.net>
474
475 * language.c (language_arch_info::lookup_primitive_type): Use
476 gdb::function_view instead of gdb::function.
477 (template language_lookup_primitive_type): Rename to ...
478 (language_lookup_primitive_type_1): ... this, and make static.
479 (language_lookup_primitive_type(const struct language_defn *,
480 struct gdbarch *, const char *): Make non-template.
481 (language_lookup_primitive_type(const struct language_defn *,
482 struct gdbarch *, std::function<bool (struct type *)>): Make
483 non-template and use gdb::function_view.
484 * language.h (language_arch_info::lookup_primitive_type): Use
485 gdb::function_view instead of std::function.
486 (language_lookup_primitive_type): No longer template.
487 * opencl-lang.c (lookup_opencl_vector_type): 'filter' is now a
488 lambda instead of a std::function.
489
d5ef21c3
AA
4902020-11-19 Andreas Arnez <arnez@linux.ibm.com>
491
492 PR tdep/26916
493 * s390-tdep.c (s390_process_record): Fix recording of STOC, STOCG,
494 and STOCFH.
495
a5adb8f3
SM
4962020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
497
498 * f-lang.c (fortran_value_subarray): Use plongest/pulongest.
499
70125a45
SM
5002020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
501
502 * gdbarch.sh (read_core_file_mappings): Remove `other` parameter
503 in `loop_cb` parameter.
504 * gdbarch.c: Re-generate.
505 * gdbarch.h: Re-generate.
506 * arch-utils.c (default_read_core_file_mappings): Remove `other`
507 parameter.
508 * arch-utils.h (default_read_core_file_mappings): Likewise.
509 * corelow.c (core_target::build_file_mappings): Likewise.
510 * linux-tdep.c (linux_read_core_file_mappings): Likewise.
511 (linux_core_info_proc_mappings): Likewise.
512
a5c641b5
AB
5132020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
514
515 * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
516 * NEWS: Mention new options.
517 * f-array-walker.h: New file.
518 * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
519 (repack_array_slices): New static global.
520 (show_repack_array_slices): New function.
521 (fortran_array_slicing_debug): New static global.
522 (show_fortran_array_slicing_debug): New function.
523 (value_f90_subarray): Delete.
524 (skip_undetermined_arglist): Delete.
525 (class fortran_array_repacker_base_impl): New class.
526 (class fortran_lazy_array_repacker_impl): New class.
527 (class fortran_array_repacker_impl): New class.
528 (fortran_value_subarray): Complete rewrite.
529 (set_fortran_list): New static global.
530 (show_fortran_list): Likewise.
531 (_initialize_f_language): Register new commands.
532 (fortran_adjust_dynamic_array_base_address_hack): New function.
533 * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
534 Declare.
535 * f-valprint.c: Include 'f-array-walker.h'.
536 (class fortran_array_printer_impl): New class.
537 (f77_print_array_1): Delete.
538 (f77_print_array): Delete.
539 (fortran_print_array): New.
540 (f_value_print_inner): Update to call fortran_print_array.
541 * gdbtypes.c: Include 'f-lang.h'.
542 (resolve_dynamic_type_internal): Call
543 fortran_adjust_dynamic_array_base_address_hack.
544
a15a5258
AB
5452020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
546
547 * breakpoint.c (struct watch_options): New struct.
548 (watch_option_defs): New static global.
549 (make_watch_options_def_group): New function.
550 (watch_maybe_just_location): Convert option parsing.
551 (watch_command_completer): New function.
552 (_initialize_breakpoint): Build help text using options mechanism.
553
2e362716
AB
5542020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
555
556 * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
557 (watch_command_1): Update parameter types. Convert locals to
558 bool.
559 (watch_command_wrapper): Change parameter type.
560 (watch_maybe_just_location): Change locals to bool.
561 (rwatch_command_wrapper): Update parameter type.
562 (awatch_command_wrapper): Update parameter type.
563 * breakpoint.h (watch_command_wrapper): Change parameter type.
564 (rwatch_command_wrapper): Update parameter type.
565 (awatch_command_wrapper): Update parameter type.
566 * eval.c (fetch_subexp_value): Change parameter type.
567 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
568 'false' not '0'.
569 * value.h (fetch_subexp_value): Change parameter type in
570 declaration.
571
b3ff61f8
AB
5722020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
573
574 * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
575 skip_spaces.
576
5b7d45d3
KS
5772020-11-18 Keith Seitz <keiths@redhat.com>
578
579 * linux-tdep.c (dump_note_entry_p): Return true instead of
580 checking `filename'.
581
c44191f8
TV
5822020-11-18 Tom de Vries <tdevries@suse.de>
583
584 * debuginfod-support.c (debuginfod_source_query)
585 (debuginfod_debuginfo_query): Also do early exit if
586 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
587
5d8254e1
TV
5882020-11-18 Tom de Vries <tdevries@suse.de>
589
590 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
591 warning.
592
584903d3
SM
5932020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
594
595 * gdbtypes.h (get_array_bounds): Return bool, adjust some
596 callers. Move doc here.
597 * gdbtypes.c (get_array_bounds): Return bool
598
6f2643db
AB
5992020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
600
601 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
602 assert.
603 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
604 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
605 case to the default.
606
037d7135
AB
6072020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
608
609 * printcmd.c: Include 'safe-ctype.c'.
610 (skip_over_slash_fmt): New function.
611 (print_command_completer): Call skip_over_slash_fmt.
612 (display_and_x_command_completer): New function.
613 (_initialize_printcmd): Add command completion for 'x' and
614 'display'.
615
2b3cb400
PA
6162020-11-16 Pedro Alves <pedro@palves.net>
617
618 * frame.c (get_prev_frame): Move get_frame_id call from here ...
619 (get_prev_frame_always_1): ... to here.
620 * inline-frame.c (inline_frame_this_id): Mention
621 get_prev_frame_always_1 in comment.
622
b74dbc20
JB
6232020-11-15 Joel Brobecker <brobecker@adacore.com>
624
625 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
626 handling.
627 (value_less): Add fixed-point handling.
628
0a12719e
JB
6292020-11-15 Joel Brobecker <brobecker@adacore.com>
630
631 * eval.c (binop_promote): Add fixed-point type handling.
632 * valarith.c (fixed_point_binop): New function.
633 (scalar_binop): Add fixed-point type handling.
634 (value_neg): Add fixed-point type handling.
635 * valops.c (value_cast_to_fixed_point): New function.
636 (value_cast): Add fixed-point type handling.
637
0c9150e4
JB
6382020-11-15 Joel Brobecker <brobecker@adacore.com>
639
640 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
641 range types.
642 * c-typeprint.c (c_type_print_varspec_prefix)
643 (c_type_print_varspec_suffix, c_type_print_base_1): Add
644 TYPE_CODE_FIXED_POINT handling.
645 * p-typeprint.c (pascal_type_print_varspec_prefix)
646 (pascal_type_print_varspec_suffix): Likewise.
647 * typeprint.c (print_type_fixed_point): New function.
648 * typeprint.h (print_type_fixed_point): Add declaration.
649
b26daff9
JB
6502020-11-15 Joel Brobecker <brobecker@adacore.com>
651
652 * printcmd.c (print_scalar_formatted): Add fixed-point type
653 handling when options->format is set.
654
09584414
JB
6552020-11-15 Joel Brobecker <brobecker@adacore.com>
656
657 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
658 * dwarf2/read.c (get_dwarf2_rational_constant)
659 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
660 (has_zero_over_zero_small_attribute): New functions.
661 read_base_type, set_die_type): Add fixed-point type handling.
662 * gdb-gdb.py.in: Add fixed-point type handling.
663 * gdbtypes.c: #include "gmp-utils.h".
664 (create_range_type, set_type_code): Add fixed-point type handling.
665 (init_fixed_point_type): New function.
666 (is_integral_type, is_scalar_type): Add fixed-point type handling.
667 (print_fixed_point_type_info): New function.
668 (recursive_dump_type, copy_type_recursive): Add fixed-point type
669 handling.
670 (fixed_point_type_storage): New typedef.
671 (fixed_point_objfile_key): New static global.
672 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
673 (fixed_point_type_base_type, fixed_point_scaling_factor): New
674 functions.
675 * gdbtypes.h: #include "gmp-utils.h".
676 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
677 (union type_specific) <fixed_point_info>: New field.
678 (struct fixed_point_type_info): New struct.
679 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
680 (init_fixed_point_type, is_fixed_point_type)
681 (fixed_point_type_base_type, fixed_point_scaling_factor)
682 (allocate_fixed_point_type_info): Add declarations.
683 * valprint.c (generic_val_print_fixed_point): New function.
684 (generic_value_print): Add fixed-point type handling.
685 * value.c (value_as_address, unpack_long): Add fixed-point type
686 handling.
687
e55c6530
JB
6882020-11-15 Joel Brobecker <brobecker@adacore.com>
689
690 * utils.h (uinteger_pow): Add declaration.
691 * utils.c (uinteger_pow): Moved here (without changes)...
692 * valarith.c (uinteger_pow): ... from here.
693
b34c74ab
JB
6942020-11-15 Joel Brobecker <brobecker@adacore.com>
695
40d9d2fd 696 * gmp-utils.h, gmp-utils.c: New file.
b34c74ab
JB
697 * unittests/gmp-utils-selftests.c: New file.
698 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
699 unittests/gmp-utils-selftests.c.
700 (COMMON_SFILES) Add gmp-utils.c.
701 (HFILES_NO_SRCDIR): Add gmp-utils.h.
702
1b4ac058
JB
7032020-11-15 Joel Brobecker <brobecker@adacore.com>
704
705 * configure.ac: Generate an error if a usable GMP library
706 could not be found.
707 * configure: Regenerate.
708
2c947d9b
JB
7092020-11-15 Joel Brobecker <brobecker@adacore.com>
710
711 * configure.ac: Add support for --with-libgmp-prefix.
712 * Makefile.in (LIBGMP): New variable.
713 (CLIBS): Include $(LIBGMP).
714 * configure, config.in: Regenerate
715
9dd02fc0
AB
7162020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
717
718 PR cli/26879
719 * f-exp.y (COMPLETE): New token.
720 (exp): Two new rules for tab-completion.
721 (saw_name_at_eof): New static global.
722 (last_was_structop): Likewise.
723 (yylex): Set new variables, and return COMPLETE token at the end
724 of the input stream in some cases.
725
758cb810
TT
7262020-11-14 Tom Tromey <tom@tromey.com>
727
728 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
729
749065b7
TT
7302020-11-14 Tom Tromey <tom@tromey.com>
731
732 * opencl-lang.c (opencl_component_ref): Make "comps" const.
733
2c5b1849
SM
7342020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
735
736 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
737
e8b2f0d9
TT
7382020-11-13 Tom Tromey <tom@tromey.com>
739
740 * c-lang.c (convert_ucn, convert_octal, convert_hex)
741 (convert_escape, parse_one_string): Constify.
742
25f4c262
KS
7432020-11-13 Keith Seitz <keiths@redhat.com>
744
745 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
746 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
747 outside of ELF segments" warning for debugin
748
9d3ab915
KS
7492020-11-13 Keith Seitz <keiths@redhat.com>
750
751 PR gdb/23034
752 * elfread.c (elf_symfile_segments): Output a BFD file name
753 for the "Loadable section ... outside of ELF segments" warning.
754
9ecab40c
SM
7552020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
756
757 PR gdb/26835
758 * arm-tdep.c (class arm_instruction_reader): New.
759 (target_arm_instruction_reader): New.
760 (arm_analyze_prologue): Add instruction reader parameter and use
761 it. Use arm_expand_immediate.
762 (class target_arm_instruction_reader): Adjust.
763 (arm_skip_prologue): Adjust.
764 (arm_expand_immediate): New.
765 (arm_scan_prologue): Adjust.
766 (arm_analyze_prologue_test): New.
767 (class test_arm_instruction_reader): New.
768
5a7cf527
AB
7692020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
770
771 * f-lang.c (fortran_argument_convert): Add declaration. Add
772 header comment, taken from f-lang.h. Make static.
773 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
774 (fortran_argument_convert): Delete declaration.
775
7bea47f0
AB
7762020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
777
778 * ada-exp.y (find_primitive_type): Make parameter const.
779 * ada-lang.c (enum ada_primitive_types): Delete.
780 (ada_language::language_arch_info): Update.
781 * c-lang.c (enum c_primitive_types): Delete.
782 (c_language_arch_info): Update.
783 (enum cplus_primitive_types): Delete.
784 (cplus_language::language_arch_info): Update.
785 * d-lang.c (enum d_primitive_types): Delete.
786 (d_language::language_arch_info): Update.
787 * f-lang.c (enum f_primitive_types): Delete.
788 (f_language::language_arch_info): Update.
789 * go-lang.c (enum go_primitive_types): Delete.
790 (go_language::language_arch_info): Update.
791 * language.c (auto_or_unknown_language::language_arch_info):
792 Update.
793 (language_gdbarch_post_init): Use obstack_new, use array indexing.
794 (language_string_char_type): Add header comment, call function in
795 language_arch_info.
796 (language_bool_type): Likewise
797 (language_arch_info::bool_type): Define.
798 (language_lookup_primitive_type_1): Delete.
799 (language_lookup_primitive_type): Rewrite as a templated function
800 to call function in language_arch_info, then instantiate twice.
801 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
802 (language_arch_info::lookup_primitive_type_and_symbol): Define.
803 (language_arch_info::lookup_primitive_type): Define twice with
804 different signatures.
805 (language_arch_info::lookup_primitive_type_as_symbol): Define.
806 (language_lookup_primitive_type_as_symbol): Rewrite to call a
807 member function in language_arch_info.
808 * language.h (language_arch_info): Complete rewrite.
809 (language_lookup_primitive_type): Make templated.
810 * m2-lang.c (enum m2_primitive_types): Delete.
811 (m2_language::language_arch_info): Update.
812 * opencl-lang.c (OCL_P_TYPE): Delete.
813 (enum opencl_primitive_types): Delete.
814 (opencl_type_data): Delete.
815 (builtin_opencl_type): Delete.
816 (lookup_opencl_vector_type): Update.
817 (opencl_language::language_arch_info): Update, lots of content
818 moved from...
819 (build_opencl_types): ...here. This function is now deleted.
820 (_initialize_opencl_language): Delete.
821 * p-lang.c (enum pascal_primitive_types): Delete.
822 (pascal_language::language_arch_info): Update.
823 * rust-lang.c (enum rust_primitive_types): Delete.
824 (rust_language::language_arch_info): Update.
825
bf6e5d01
SM
8262020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
827
828 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
829 dwarf2_queue_guard.
830
1350c3b4
SM
8312020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
832
833 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
834 comment.
835
6f738b01
SM
8362020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
837
838 * dwarf2/read.c (dwarf_read_debug_printf,
839 dwarf_read_debug_printf_v): New macros, use throughout the file.
840
10c19fad
SV
8412020-11-12 Shahab Vahedi <shahab@synopsys.com>
842
10806efd 843 PR tdep/27015
10c19fad
SV
844 * arc-linux-tdep.c (collect_register): Populate "eret" by
845 "pc" value from the regcache when asked for "pc" value.
846
1f2624a3
TT
8472020-11-12 Tom Tromey <tom@tromey.com>
848
849 PR rust/26799:
850 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
851 exist.
852
ab33b152
AB
8532020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
854
855 * features/Makefile (XMLTOC): Add rx.xml.
856 (FEATURE_XMLFILES): Remove rx.xml.
857 (FEATURE_CFILES rule): Pass '-single-feature' flag.
858 * features/rx.c: Regenerate.
859 * features/rx.xml: Wrap in `target` tags, and reindent.
860 * target-descriptions.c (struct maint_print_c_tdesc_options): New
861 structure.
862 (maint_print_c_tdesc_opt_def): New typedef.
863 (maint_print_c_tdesc_opt_defs): New static global.
864 (make_maint_print_c_tdesc_options_def_group): New function.
865 (maint_print_c_tdesc_cmd): Make use of command line flags, only
866 print single feature C file for target descriptions containing a
867 single feature.
868 (maint_print_c_tdesc_cmd_completer): New function.
869 (_initialize_target_descriptions): Update call to register command
870 completer, and include command line flag in help text.
871
550820e1
AB
8722020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
873
874 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
875 numbers.
876 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
877 enum values.
878
baf20f76
TT
8792020-11-10 Tom Tromey <tom@tromey.com>
880
881 * value.h (internalvar_name): Update.
882 * value.c (internalvar_name): Make return type const.
883
caaece0e
TT
8842020-11-10 Tom Tromey <tom@tromey.com>
885
886 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
887 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
888 const.
889
8e20b4be
TT
8902020-11-10 Tom Tromey <tom@tromey.com>
891
892 * objc-lang.h (value_nsstring): Update.
893 * objc-lang.c (value_nsstring): Make "ptr" const.
894
86775fab
AB
8952020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
896
897 * expprint.c (print_subexp_funcall): Increment expression position
898 after reading argument count.
899 * f-lang.c (print_subexp_f): Skip over opcode before calling
900 common function.
901 (dump_subexp_body_f): Likewise.
902
3fed4c0b
RG
9032020-11-06 Romain Geissler <romain.geissler@amadeus.com>
904
905 PR python/26832
906 * configure: Regenerate.
907 * configure.ac: Check for python modules ctypes instead of
908 itertools.
909
ac3d4064
PA
9102020-11-06 Pedro Alves <pedro@palves.net>
911
912 * macroexp.c (struct macro_buffer): Split in two classes. Add
913 uses adjusted.
914 (struct shared_macro_buffer): New, factored out from struct
915 macro_buffer.
916 (struct growable_macro_buffer): New, factored out from struct
917 macro_buffer.
918 (set_token, get_comment, get_identifier, get_pp_number)
919 (get_character_constant, get_string_literal, get_punctuator)
920 (get_next_token_for_substitution): Constify parameters.
921 (substitute_args): Constify locals.
922
606decb2
TT
9232020-11-05 Tom Tromey <tom@tromey.com>
924
925 * dwarf2/read.c (read_cutu_die_from_dwo)
926 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
927 (build_type_psymtabs_1): Update.
928 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
929 parameter.
930 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
931 Don't read section. Add assert.
932
9c91c725
TT
9332020-11-04 Tom Tromey <tromey@adacore.com>
934
935 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
936
8d9fd3a1
TT
9372020-11-04 Tom Tromey <tromey@adacore.com>
938
939 * ada-typeprint.c (ada_print_type): Handle __T types.
940
d8f62e84
TT
9412020-11-04 Tom Tromey <tromey@adacore.com>
942
943 * dwarf2/read.c (add_partial_symbol, process_die):
944 Handle DW_TAG_array_type.
945 (is_type_tag_for_partial): Add "lang" parameter.
946 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
947
7ff5b937
TT
9482020-11-04 Tom Tromey <tromey@adacore.com>
949
950 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
951
10f6a3ad
TT
9522020-11-04 Tom Tromey <tromey@adacore.com>
953
954 * dwarf2/read.c (read_array_type): Only apply stride to innermost
955 array.
956
b72795a8
TT
9572020-11-04 Tom Tromey <tromey@adacore.com>
958
959 * gdbtypes.c (update_static_array_size): Handle bit stride.
960
24aa1b02
TT
9612020-11-04 Tom Tromey <tromey@adacore.com>
962
963 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
964
c9a28cbe
TT
9652020-11-04 Tom Tromey <tromey@adacore.com>
966
967 * ada-lang.c (ada_is_any_packed_array_type): New function.
968 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
969
57567375
TT
9702020-11-04 Tom Tromey <tromey@adacore.com>
971
972 * dwarf2/read.c (recognize_bound_expression)
973 (quirk_ada_thick_pointer): New functions.
974 (read_array_type): Call quirk_ada_thick_pointer.
975 (set_die_type): Add "skip_data_location" parameter.
976 (quirk_ada_thick_pointer): New function.
977 (process_structure_scope): Call quirk_ada_thick_pointer.
978 * ada-lang.c (ada_is_unconstrained_packed_array_type)
979 (decode_packed_array_bitsize): Handle thick pointers without
980 parallel types.
981 (ada_is_gnat_encoded_packed_array_type): Rename from
982 ada_is_packed_array_type.
983 (ada_is_constrained_packed_array_type): Update.
984 * ada-valprint.c (ada_val_print_gnat_array): Remove.
985 (ada_value_print_1): Use ada_get_decoded_value.
986
a7400e44
TT
9872020-11-04 Tom Tromey <tromey@adacore.com>
988
989 * ada-lang.c (recursively_update_array_bitsize): New function.
990 (decode_constrained_packed_array_type): Call it.
991
75fd6a26
TT
9922020-11-04 Tom Tromey <tromey@adacore.com>
993
994 * ada-lang.c (to_fixed_array_type): Error if
995 decode_constrained_packed_array_type returns NULL.
996
93f9561e
TT
9972020-11-04 Tom Tromey <tromey@adacore.com>
998
999 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
1000
257e02d8
TT
10012020-11-02 Tom Tromey <tromey@adacore.com>
1002
1003 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
1004 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
1005 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
1006 * amd64-ravenscar-thread.c: New file.
1007 * amd64-ravenscar-thread.h: New file.
1008 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
1009 * configure.tgt (amd64_tobjs): Add ravenscar objects.
1010
74d877e5
AB
10112020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1012
1013 * main.c (execute_cmdargs): New function.
1014 (captured_main_1): Make use of execute_cmdargs.
1015
64aaad63
AB
10162020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1017
1018 * NEWS: Mention changes to config file search path.
1019 * main.c
1020
5b3d3560
TT
10212020-11-02 Tom Tromey <tromey@adacore.com>
1022
1023 * python/python.c: Consolidate two HAVE_PYTHON blocks.
1024 (python_GdbModuleDef): Move earlier. Now static.
1025 (do_start_initialization): Consolidate some IS_PY3K blocks.
1026
dda83cd7
SM
10272020-11-02 Simon Marchi <simon.marchi@efficios.com>
1028
1029 * aarch64-linux-tdep.c: Fix indentation.
1030 * aarch64-ravenscar-thread.c: Fix indentation.
1031 * aarch64-tdep.c: Fix indentation.
1032 * aarch64-tdep.h: Fix indentation.
1033 * ada-lang.c: Fix indentation.
1034 * ada-lang.h: Fix indentation.
1035 * ada-tasks.c: Fix indentation.
1036 * ada-typeprint.c: Fix indentation.
1037 * ada-valprint.c: Fix indentation.
1038 * ada-varobj.c: Fix indentation.
1039 * addrmap.c: Fix indentation.
1040 * addrmap.h: Fix indentation.
1041 * agent.c: Fix indentation.
1042 * aix-thread.c: Fix indentation.
1043 * alpha-bsd-nat.c: Fix indentation.
1044 * alpha-linux-tdep.c: Fix indentation.
1045 * alpha-mdebug-tdep.c: Fix indentation.
1046 * alpha-nbsd-tdep.c: Fix indentation.
1047 * alpha-obsd-tdep.c: Fix indentation.
1048 * alpha-tdep.c: Fix indentation.
1049 * amd64-bsd-nat.c: Fix indentation.
1050 * amd64-darwin-tdep.c: Fix indentation.
1051 * amd64-linux-nat.c: Fix indentation.
1052 * amd64-linux-tdep.c: Fix indentation.
1053 * amd64-nat.c: Fix indentation.
1054 * amd64-obsd-tdep.c: Fix indentation.
1055 * amd64-tdep.c: Fix indentation.
1056 * amd64-windows-tdep.c: Fix indentation.
1057 * annotate.c: Fix indentation.
1058 * arc-tdep.c: Fix indentation.
1059 * arch-utils.c: Fix indentation.
1060 * arch/arm-get-next-pcs.c: Fix indentation.
1061 * arch/arm.c: Fix indentation.
1062 * arm-linux-nat.c: Fix indentation.
1063 * arm-linux-tdep.c: Fix indentation.
1064 * arm-nbsd-tdep.c: Fix indentation.
1065 * arm-pikeos-tdep.c: Fix indentation.
1066 * arm-tdep.c: Fix indentation.
1067 * arm-tdep.h: Fix indentation.
1068 * arm-wince-tdep.c: Fix indentation.
1069 * auto-load.c: Fix indentation.
1070 * auxv.c: Fix indentation.
1071 * avr-tdep.c: Fix indentation.
1072 * ax-gdb.c: Fix indentation.
1073 * ax-general.c: Fix indentation.
1074 * bfin-linux-tdep.c: Fix indentation.
1075 * block.c: Fix indentation.
1076 * block.h: Fix indentation.
1077 * blockframe.c: Fix indentation.
1078 * bpf-tdep.c: Fix indentation.
1079 * break-catch-sig.c: Fix indentation.
1080 * break-catch-syscall.c: Fix indentation.
1081 * break-catch-throw.c: Fix indentation.
1082 * breakpoint.c: Fix indentation.
1083 * breakpoint.h: Fix indentation.
1084 * bsd-uthread.c: Fix indentation.
1085 * btrace.c: Fix indentation.
1086 * build-id.c: Fix indentation.
1087 * buildsym-legacy.h: Fix indentation.
1088 * buildsym.c: Fix indentation.
1089 * c-typeprint.c: Fix indentation.
1090 * c-valprint.c: Fix indentation.
1091 * c-varobj.c: Fix indentation.
1092 * charset.c: Fix indentation.
1093 * cli/cli-cmds.c: Fix indentation.
1094 * cli/cli-decode.c: Fix indentation.
1095 * cli/cli-decode.h: Fix indentation.
1096 * cli/cli-script.c: Fix indentation.
1097 * cli/cli-setshow.c: Fix indentation.
1098 * coff-pe-read.c: Fix indentation.
1099 * coffread.c: Fix indentation.
1100 * compile/compile-cplus-types.c: Fix indentation.
1101 * compile/compile-object-load.c: Fix indentation.
1102 * compile/compile-object-run.c: Fix indentation.
1103 * completer.c: Fix indentation.
1104 * corefile.c: Fix indentation.
1105 * corelow.c: Fix indentation.
1106 * cp-abi.h: Fix indentation.
1107 * cp-namespace.c: Fix indentation.
1108 * cp-support.c: Fix indentation.
1109 * cp-valprint.c: Fix indentation.
1110 * cris-linux-tdep.c: Fix indentation.
1111 * cris-tdep.c: Fix indentation.
1112 * darwin-nat-info.c: Fix indentation.
1113 * darwin-nat.c: Fix indentation.
1114 * darwin-nat.h: Fix indentation.
1115 * dbxread.c: Fix indentation.
1116 * dcache.c: Fix indentation.
1117 * disasm.c: Fix indentation.
1118 * dtrace-probe.c: Fix indentation.
1119 * dwarf2/abbrev.c: Fix indentation.
1120 * dwarf2/attribute.c: Fix indentation.
1121 * dwarf2/expr.c: Fix indentation.
1122 * dwarf2/frame.c: Fix indentation.
1123 * dwarf2/index-cache.c: Fix indentation.
1124 * dwarf2/index-write.c: Fix indentation.
1125 * dwarf2/line-header.c: Fix indentation.
1126 * dwarf2/loc.c: Fix indentation.
1127 * dwarf2/macro.c: Fix indentation.
1128 * dwarf2/read.c: Fix indentation.
1129 * dwarf2/read.h: Fix indentation.
1130 * elfread.c: Fix indentation.
1131 * eval.c: Fix indentation.
1132 * event-top.c: Fix indentation.
1133 * exec.c: Fix indentation.
1134 * exec.h: Fix indentation.
1135 * expprint.c: Fix indentation.
1136 * f-lang.c: Fix indentation.
1137 * f-typeprint.c: Fix indentation.
1138 * f-valprint.c: Fix indentation.
1139 * fbsd-nat.c: Fix indentation.
1140 * fbsd-tdep.c: Fix indentation.
1141 * findvar.c: Fix indentation.
1142 * fork-child.c: Fix indentation.
1143 * frame-unwind.c: Fix indentation.
1144 * frame-unwind.h: Fix indentation.
1145 * frame.c: Fix indentation.
1146 * frv-linux-tdep.c: Fix indentation.
1147 * frv-tdep.c: Fix indentation.
1148 * frv-tdep.h: Fix indentation.
1149 * ft32-tdep.c: Fix indentation.
1150 * gcore.c: Fix indentation.
1151 * gdb_bfd.c: Fix indentation.
1152 * gdbarch.sh: Fix indentation.
1153 * gdbarch.c: Re-generate
1154 * gdbarch.h: Re-generate.
1155 * gdbcore.h: Fix indentation.
1156 * gdbthread.h: Fix indentation.
1157 * gdbtypes.c: Fix indentation.
1158 * gdbtypes.h: Fix indentation.
1159 * glibc-tdep.c: Fix indentation.
1160 * gnu-nat.c: Fix indentation.
1161 * gnu-nat.h: Fix indentation.
1162 * gnu-v2-abi.c: Fix indentation.
1163 * gnu-v3-abi.c: Fix indentation.
1164 * go32-nat.c: Fix indentation.
1165 * guile/guile-internal.h: Fix indentation.
1166 * guile/scm-cmd.c: Fix indentation.
1167 * guile/scm-frame.c: Fix indentation.
1168 * guile/scm-iterator.c: Fix indentation.
1169 * guile/scm-math.c: Fix indentation.
1170 * guile/scm-ports.c: Fix indentation.
1171 * guile/scm-pretty-print.c: Fix indentation.
1172 * guile/scm-value.c: Fix indentation.
1173 * h8300-tdep.c: Fix indentation.
1174 * hppa-linux-nat.c: Fix indentation.
1175 * hppa-linux-tdep.c: Fix indentation.
1176 * hppa-nbsd-nat.c: Fix indentation.
1177 * hppa-nbsd-tdep.c: Fix indentation.
1178 * hppa-obsd-nat.c: Fix indentation.
1179 * hppa-tdep.c: Fix indentation.
1180 * hppa-tdep.h: Fix indentation.
1181 * i386-bsd-nat.c: Fix indentation.
1182 * i386-darwin-nat.c: Fix indentation.
1183 * i386-darwin-tdep.c: Fix indentation.
1184 * i386-dicos-tdep.c: Fix indentation.
1185 * i386-gnu-nat.c: Fix indentation.
1186 * i386-linux-nat.c: Fix indentation.
1187 * i386-linux-tdep.c: Fix indentation.
1188 * i386-nto-tdep.c: Fix indentation.
1189 * i386-obsd-tdep.c: Fix indentation.
1190 * i386-sol2-nat.c: Fix indentation.
1191 * i386-tdep.c: Fix indentation.
1192 * i386-tdep.h: Fix indentation.
1193 * i386-windows-tdep.c: Fix indentation.
1194 * i387-tdep.c: Fix indentation.
1195 * i387-tdep.h: Fix indentation.
1196 * ia64-libunwind-tdep.c: Fix indentation.
1197 * ia64-libunwind-tdep.h: Fix indentation.
1198 * ia64-linux-nat.c: Fix indentation.
1199 * ia64-linux-tdep.c: Fix indentation.
1200 * ia64-tdep.c: Fix indentation.
1201 * ia64-tdep.h: Fix indentation.
1202 * ia64-vms-tdep.c: Fix indentation.
1203 * infcall.c: Fix indentation.
1204 * infcmd.c: Fix indentation.
1205 * inferior.c: Fix indentation.
1206 * infrun.c: Fix indentation.
1207 * iq2000-tdep.c: Fix indentation.
1208 * language.c: Fix indentation.
1209 * linespec.c: Fix indentation.
1210 * linux-fork.c: Fix indentation.
1211 * linux-nat.c: Fix indentation.
1212 * linux-tdep.c: Fix indentation.
1213 * linux-thread-db.c: Fix indentation.
1214 * lm32-tdep.c: Fix indentation.
1215 * m2-lang.c: Fix indentation.
1216 * m2-typeprint.c: Fix indentation.
1217 * m2-valprint.c: Fix indentation.
1218 * m32c-tdep.c: Fix indentation.
1219 * m32r-linux-tdep.c: Fix indentation.
1220 * m32r-tdep.c: Fix indentation.
1221 * m68hc11-tdep.c: Fix indentation.
1222 * m68k-bsd-nat.c: Fix indentation.
1223 * m68k-linux-nat.c: Fix indentation.
1224 * m68k-linux-tdep.c: Fix indentation.
1225 * m68k-tdep.c: Fix indentation.
1226 * machoread.c: Fix indentation.
1227 * macrocmd.c: Fix indentation.
1228 * macroexp.c: Fix indentation.
1229 * macroscope.c: Fix indentation.
1230 * macrotab.c: Fix indentation.
1231 * macrotab.h: Fix indentation.
1232 * main.c: Fix indentation.
1233 * mdebugread.c: Fix indentation.
1234 * mep-tdep.c: Fix indentation.
1235 * mi/mi-cmd-catch.c: Fix indentation.
1236 * mi/mi-cmd-disas.c: Fix indentation.
1237 * mi/mi-cmd-env.c: Fix indentation.
1238 * mi/mi-cmd-stack.c: Fix indentation.
1239 * mi/mi-cmd-var.c: Fix indentation.
1240 * mi/mi-cmds.c: Fix indentation.
1241 * mi/mi-main.c: Fix indentation.
1242 * mi/mi-parse.c: Fix indentation.
1243 * microblaze-tdep.c: Fix indentation.
1244 * minidebug.c: Fix indentation.
1245 * minsyms.c: Fix indentation.
1246 * mips-linux-nat.c: Fix indentation.
1247 * mips-linux-tdep.c: Fix indentation.
1248 * mips-nbsd-tdep.c: Fix indentation.
1249 * mips-tdep.c: Fix indentation.
1250 * mn10300-linux-tdep.c: Fix indentation.
1251 * mn10300-tdep.c: Fix indentation.
1252 * moxie-tdep.c: Fix indentation.
1253 * msp430-tdep.c: Fix indentation.
1254 * namespace.h: Fix indentation.
1255 * nat/fork-inferior.c: Fix indentation.
1256 * nat/gdb_ptrace.h: Fix indentation.
1257 * nat/linux-namespaces.c: Fix indentation.
1258 * nat/linux-osdata.c: Fix indentation.
1259 * nat/netbsd-nat.c: Fix indentation.
1260 * nat/x86-dregs.c: Fix indentation.
1261 * nbsd-nat.c: Fix indentation.
1262 * nbsd-tdep.c: Fix indentation.
1263 * nios2-linux-tdep.c: Fix indentation.
1264 * nios2-tdep.c: Fix indentation.
1265 * nto-procfs.c: Fix indentation.
1266 * nto-tdep.c: Fix indentation.
1267 * objfiles.c: Fix indentation.
1268 * objfiles.h: Fix indentation.
1269 * opencl-lang.c: Fix indentation.
1270 * or1k-tdep.c: Fix indentation.
1271 * osabi.c: Fix indentation.
1272 * osabi.h: Fix indentation.
1273 * osdata.c: Fix indentation.
1274 * p-lang.c: Fix indentation.
1275 * p-typeprint.c: Fix indentation.
1276 * p-valprint.c: Fix indentation.
1277 * parse.c: Fix indentation.
1278 * ppc-linux-nat.c: Fix indentation.
1279 * ppc-linux-tdep.c: Fix indentation.
1280 * ppc-nbsd-nat.c: Fix indentation.
1281 * ppc-nbsd-tdep.c: Fix indentation.
1282 * ppc-obsd-nat.c: Fix indentation.
1283 * ppc-ravenscar-thread.c: Fix indentation.
1284 * ppc-sysv-tdep.c: Fix indentation.
1285 * ppc64-tdep.c: Fix indentation.
1286 * printcmd.c: Fix indentation.
1287 * proc-api.c: Fix indentation.
1288 * producer.c: Fix indentation.
1289 * producer.h: Fix indentation.
1290 * prologue-value.c: Fix indentation.
1291 * prologue-value.h: Fix indentation.
1292 * psymtab.c: Fix indentation.
1293 * python/py-arch.c: Fix indentation.
1294 * python/py-bpevent.c: Fix indentation.
1295 * python/py-event.c: Fix indentation.
1296 * python/py-event.h: Fix indentation.
1297 * python/py-finishbreakpoint.c: Fix indentation.
1298 * python/py-frame.c: Fix indentation.
1299 * python/py-framefilter.c: Fix indentation.
1300 * python/py-inferior.c: Fix indentation.
1301 * python/py-infthread.c: Fix indentation.
1302 * python/py-objfile.c: Fix indentation.
1303 * python/py-prettyprint.c: Fix indentation.
1304 * python/py-registers.c: Fix indentation.
1305 * python/py-signalevent.c: Fix indentation.
1306 * python/py-stopevent.c: Fix indentation.
1307 * python/py-stopevent.h: Fix indentation.
1308 * python/py-threadevent.c: Fix indentation.
1309 * python/py-tui.c: Fix indentation.
1310 * python/py-unwind.c: Fix indentation.
1311 * python/py-value.c: Fix indentation.
1312 * python/py-xmethods.c: Fix indentation.
1313 * python/python-internal.h: Fix indentation.
1314 * python/python.c: Fix indentation.
1315 * ravenscar-thread.c: Fix indentation.
1316 * record-btrace.c: Fix indentation.
1317 * record-full.c: Fix indentation.
1318 * record.c: Fix indentation.
1319 * reggroups.c: Fix indentation.
1320 * regset.h: Fix indentation.
1321 * remote-fileio.c: Fix indentation.
1322 * remote.c: Fix indentation.
1323 * reverse.c: Fix indentation.
1324 * riscv-linux-tdep.c: Fix indentation.
1325 * riscv-ravenscar-thread.c: Fix indentation.
1326 * riscv-tdep.c: Fix indentation.
1327 * rl78-tdep.c: Fix indentation.
1328 * rs6000-aix-tdep.c: Fix indentation.
1329 * rs6000-lynx178-tdep.c: Fix indentation.
1330 * rs6000-nat.c: Fix indentation.
1331 * rs6000-tdep.c: Fix indentation.
1332 * rust-lang.c: Fix indentation.
1333 * rx-tdep.c: Fix indentation.
1334 * s12z-tdep.c: Fix indentation.
1335 * s390-linux-tdep.c: Fix indentation.
1336 * score-tdep.c: Fix indentation.
1337 * ser-base.c: Fix indentation.
1338 * ser-mingw.c: Fix indentation.
1339 * ser-uds.c: Fix indentation.
1340 * ser-unix.c: Fix indentation.
1341 * serial.c: Fix indentation.
1342 * sh-linux-tdep.c: Fix indentation.
1343 * sh-nbsd-tdep.c: Fix indentation.
1344 * sh-tdep.c: Fix indentation.
1345 * skip.c: Fix indentation.
1346 * sol-thread.c: Fix indentation.
1347 * solib-aix.c: Fix indentation.
1348 * solib-darwin.c: Fix indentation.
1349 * solib-frv.c: Fix indentation.
1350 * solib-svr4.c: Fix indentation.
1351 * solib.c: Fix indentation.
1352 * source.c: Fix indentation.
1353 * sparc-linux-tdep.c: Fix indentation.
1354 * sparc-nbsd-tdep.c: Fix indentation.
1355 * sparc-obsd-tdep.c: Fix indentation.
1356 * sparc-ravenscar-thread.c: Fix indentation.
1357 * sparc-tdep.c: Fix indentation.
1358 * sparc64-linux-tdep.c: Fix indentation.
1359 * sparc64-nbsd-tdep.c: Fix indentation.
1360 * sparc64-obsd-tdep.c: Fix indentation.
1361 * sparc64-tdep.c: Fix indentation.
1362 * stabsread.c: Fix indentation.
1363 * stack.c: Fix indentation.
1364 * stap-probe.c: Fix indentation.
1365 * stubs/ia64vms-stub.c: Fix indentation.
1366 * stubs/m32r-stub.c: Fix indentation.
1367 * stubs/m68k-stub.c: Fix indentation.
1368 * stubs/sh-stub.c: Fix indentation.
1369 * stubs/sparc-stub.c: Fix indentation.
1370 * symfile-mem.c: Fix indentation.
1371 * symfile.c: Fix indentation.
1372 * symfile.h: Fix indentation.
1373 * symmisc.c: Fix indentation.
1374 * symtab.c: Fix indentation.
1375 * symtab.h: Fix indentation.
1376 * target-float.c: Fix indentation.
1377 * target.c: Fix indentation.
1378 * target.h: Fix indentation.
1379 * tic6x-tdep.c: Fix indentation.
1380 * tilegx-linux-tdep.c: Fix indentation.
1381 * tilegx-tdep.c: Fix indentation.
1382 * top.c: Fix indentation.
1383 * tracefile-tfile.c: Fix indentation.
1384 * tracepoint.c: Fix indentation.
1385 * tui/tui-disasm.c: Fix indentation.
1386 * tui/tui-io.c: Fix indentation.
1387 * tui/tui-regs.c: Fix indentation.
1388 * tui/tui-stack.c: Fix indentation.
1389 * tui/tui-win.c: Fix indentation.
1390 * tui/tui-winsource.c: Fix indentation.
1391 * tui/tui.c: Fix indentation.
1392 * typeprint.c: Fix indentation.
1393 * ui-out.h: Fix indentation.
1394 * unittests/copy_bitwise-selftests.c: Fix indentation.
1395 * unittests/memory-map-selftests.c: Fix indentation.
1396 * utils.c: Fix indentation.
1397 * v850-tdep.c: Fix indentation.
1398 * valarith.c: Fix indentation.
1399 * valops.c: Fix indentation.
1400 * valprint.c: Fix indentation.
1401 * valprint.h: Fix indentation.
1402 * value.c: Fix indentation.
1403 * value.h: Fix indentation.
1404 * varobj.c: Fix indentation.
1405 * vax-tdep.c: Fix indentation.
1406 * windows-nat.c: Fix indentation.
1407 * windows-tdep.c: Fix indentation.
1408 * xcoffread.c: Fix indentation.
1409 * xml-syscall.c: Fix indentation.
1410 * xml-tdesc.c: Fix indentation.
1411 * xstormy16-tdep.c: Fix indentation.
1412 * xtensa-config.c: Fix indentation.
1413 * xtensa-linux-nat.c: Fix indentation.
1414 * xtensa-linux-tdep.c: Fix indentation.
1415 * xtensa-tdep.c: Fix indentation.
1416
e1f57067
AB
14172020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1418 Craig Blackmore <craig.blackmore@embecosm.com>
1419
1420 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
1421 as an unsigned value.
1422
ae7754b2
TT
14232020-11-01 Tom Tromey <tom@tromey.com>
1424
1425 * dbxread.c (dbx_end_psymtab): Update.
1426 * dwarf2/read.c (process_psymtab_comp_unit_reader)
1427 (build_type_psymtabs_reader): Update.
1428 * xcoffread.c (xcoff_end_psymtab): Update.
1429 * ctfread.c (scan_partial_symbols): Update.
1430 * psymtab.c (sort_pst_symbols): Remove.
1431 (partial_symtab::end): Rename from end_psymtab_common. Inline
1432 sort_pst_symbols.
1433 * psympriv.h (struct partial_symtab) <end>: New method.
1434 (end_psymtab_common): Don't declare.
1435
0684bb51
TT
14362020-11-01 Tom Tromey <tom@tromey.com>
1437
1438 * symmisc.c (count_psyms): New function.
1439 (print_objfile_statistics): Use it.
1440 * psymtab.c (append_psymbol_to_list): Remove.
1441 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
1442 * objfiles.h (struct objstats) <n_psyms>: Remove.
1443
089002bb
TT
14442020-11-01 Tom Tromey <tom@tromey.com>
1445
1446 * dbxread.c (dbx_end_psymtab): Update.
1447 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
1448 (build_type_psymtabs_reader): Update.
1449 * xcoffread.c (xcoff_end_psymtab): Update.
1450 * ctfread.c (scan_partial_symbols): Update.
1451 * psympriv.h (end_psymtab_common): Update.
1452 * psymtab.c (end_psymtab_common): Remove objfile parameter.
1453 (sort_pst_symbols): Likewise.
1454
525454d6
TT
14552020-11-01 Tom Tromey <tom@tromey.com>
1456
1457 * dbxread.c (dbx_symfile_read): Update.
1458 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
1459 * xcoffread.c (xcoff_initial_scan): Update.
1460 * psympriv.h (init_psymbol_list): Don't declare.
1461 * psymtab.c (init_psymbol_list): Remove.
1462
60bd1d53
JB
14632020-11-01 Joel Brobecker <brobecker@adacore.com>
1464
1465 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
1466 gnat_encoded_fixed_type_info. Update all callers.
1467
db99d0d0
JB
14682020-11-01 Joel Brobecker <brobecker@adacore.com>
1469
1470 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
1471 line too long.
1472
75f24e86
JB
14732020-11-01 Joel Brobecker <brobecker@adacore.com>
1474
1475 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
1476 cast_from_fixed. Update all callers.
1477 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
1478 Update all callers.
1479 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
1480 Update all callers.
1481 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
1482 ada_scaling_factor.
1483 * ada-typeprint.c: Replace call to ada_scaling_factor by call
1484 to print_gnat_encoded_fixed_point_type.
1485 * ada-valprint.c: Likewise.
1486
4f0469cd
AB
14872020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1488
1489 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
1490 (debug_prefixed_printf): Add check of debug_displaced flag.
1491 * linux-nat.c (linux_nat_debug_printf): Add check of
1492 debug_linux_nat flag.
1493
17417fb0
SM
14942020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1495
1496 * infrun.c (infrun_debug_printf_1): Remove.
1497 (displaced_debug_printf_1): Remove.
1498 (stop_all_threads): Use debug_prefixed_printf.
1499 * infrun.h (infrun_debug_printf_1): Remove.
1500 (infrun_debug_printf): Use debug_prefixed_printf.
1501 (displaced_debug_printf_1): Remove.
1502 (displaced_debug_printf): Use debug_prefixed_printf.
1503 * linux-nat.c (linux_nat_debug_printf_1): Remove.
1504 (linux_nat_debug_printf): Use debug_prefixed_printf.
1505
ad6dba1c
SM
15062020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1507
1508 * configure: Re-generate.
1509 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
1510 AC_LANG_PROGRAM.
1511
b6fb30ed
SM
15122020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1513
1514 * configure: Re-generate.
1515
5164c117
SM
15162020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1517
1518 * configure: Re-generate.
1519
864ca435
SM
15202020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1521
1522 * configure: Re-generate.
1523
b9442ec1
SM
15242020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1525
1526 * configure: Re-generate.
1527
294f2697
SM
15282020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1529
1530 * acinclude.m4: Modernize.
1531 * configure: Re-generate.
1532
5593a99a
SM
15332020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1534
1535 * configure.ac: Modernize.
1536 * configure: Re-generate.
1537
e41fda1d
SM
15382020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1539
1540 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
1541 * configure: Re-generate.
1542 * configure.ac: Remove AM_PROG_CC_STDC.
1543
91e1a0ed
SM
15442020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1545
1546 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
1547 AC_CANONICAL_SYSTEM.
1548 * configure: Re-generate.
1549
136821d9
SM
15502020-10-30 Simon Marchi <simon.marchi@efficios.com>
1551
1552 * infrun.h (displaced_debug_printf): New macro. Replace
1553 displaced debug prints throughout to use it.
1554 (displaced_debug_printf_1): New declaration.
1555 (displaced_step_dump_bytes): Return string, remove ui_file
1556 parameter, update all callers.
1557 * infrun.c (displaced_debug_printf_1): New function.
1558 (displaced_step_dump_bytes): Return string, remove ui_file
1559 parameter
1560
aa2045e7
SM
15612020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
1562
1563 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
1564
b1ec2735
TT
15652020-10-30 Tom Tromey <tromey@adacore.com>
1566
1567 * Makefile.in (stamp-init): Depend on config.status.
1568
b78b3a29
TBA
15692020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1570
1571 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
1572
d70bdd3c
PA
15732020-10-30 Pedro Alves <pedro@palves.net>
1574
1575 * thread.c (lookup_selected_frame): Move ...
1576 * frame.c (lookup_selected_frame): ... here.
1577
79952e69
PA
15782020-10-30 Pedro Alves <pedro@palves.net>
1579
1580 * blockframe.c (block_innermost_frame): Use get_selected_frame.
1581 * frame.c
1582 (scoped_restore_selected_frame::scoped_restore_selected_frame):
1583 Use save_selected_frame. Save language as well.
1584 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
1585 Use restore_selected_frame, and restore language as well.
1586 (selected_frame_id, selected_frame_level): New.
1587 (selected_frame): Update comments.
1588 (save_selected_frame, restore_selected_frame): New.
1589 (get_selected_frame): Use lookup_selected_frame.
1590 (get_selected_frame_if_set): Delete.
1591 (select_frame): Record selected_frame_level and selected_frame_id.
1592 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
1593 fields.
1594 (get_selected_frame): Make 'message' parameter optional.
1595 (get_selected_frame_if_set): Delete declaration.
1596 (select_frame): Update comments.
1597 (save_selected_frame, restore_selected_frame)
1598 (lookup_selected_frame): Declare.
1599 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
1600 * infrun.c (struct infcall_control_state) <selected_frame_level>:
1601 New field.
1602 (save_infcall_control_state): Use save_selected_frame.
1603 (restore_selected_frame): Delete.
1604 (restore_infcall_control_state): Use restore_selected_frame.
1605 * stack.c (select_frame_command_core, frame_command_core): Use
1606 get_selected_frame.
1607 * thread.c (restore_selected_frame): Rename to ...
1608 (lookup_selected_frame): ... this and make extern. Select the
1609 current frame if the frame level is -1.
1610 (scoped_restore_current_thread::restore): Also restore the
1611 language.
1612 (scoped_restore_current_thread::~scoped_restore_current_thread):
1613 Don't try/catch.
1614 (scoped_restore_current_thread::scoped_restore_current_thread):
1615 Save the language as well. Use save_selected_frame.
1616
58103c33
SM
16172020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1618
1619 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
1620 documentation.
1621 * gdbarch.h: Re-generate.
1622
40a53766
SM
16232020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1624
1625 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
1626 parameter.
1627 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
1628 Likewise.
1629 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1630 Likewise.
1631 * arch-utils.c (default_displaced_step_hw_singlestep):
1632 Likewise.
1633 * arch-utils.h (default_displaced_step_hw_singlestep):
1634 Likewise.
1635 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
1636 Likewise.
1637 * s390-tdep.c (s390_displaced_step_hw_singlestep):
1638 Likewise.
1639 * gdbarch.c: Re-generate.
1640 * gdbarch.h: Re-generate.
1641 * infrun.c (resume_1): Adjust.
1642
8407f91b
TT
16432020-10-29 Tom Tromey <tom@tromey.com>
1644
1645 * progspace.c (program_space::~program_space): Don't call
1646 exec_close.
1647
5008b3b2
TT
16482020-10-29 Tom Tromey <tom@tromey.com>
1649
1650 * exec.c (exec_target::close): Don't change current program
1651 space.
1652
d9eebde0
TT
16532020-10-29 Tom Tromey <tom@tromey.com>
1654
1655 * symfile.c (add_symbol_file_command): Update.
1656 * exec.c (program_space::add_target_sections): Rename.
1657 * symfile-mem.c (symbol_file_add_from_memory): Update.
1658 * progspace.h (struct program_space) <add_target_sections>:
1659 Declare new overload.
1660 * exec.h (add_target_sections_of_objfile): Don't declare.
1661
3769e227
TT
16622020-10-29 Tom Tromey <tom@tromey.com>
1663
1664 * solib.c (solib_map_sections): Update.
1665 * exec.c (program_space::add_target_sections): Now a method.
1666 (exec_file_attach): Update.
1667 * exec.h (add_target_sections): Don't declare.
1668 * progspace.h (struct program_space) <add_target_sections>:
1669 Declare.
1670
2a3f84af
TT
16712020-10-29 Tom Tromey <tom@tromey.com>
1672
1673 * progspace.h (struct program_space) <remove_target_sections>:
1674 Declare.
1675 * exec.c (program_space::remove_target_sections): Now a method.
1676 * exec.h (remove_target_sections): Don't declare.
1677
004eecfd
TT
16782020-10-29 Tom Tromey <tom@tromey.com>
1679
1680 * inferior.c (delete_inferior): Update.
1681 * progspace.c (program_space::empty): Rename from
1682 program_space_empty_p. Return bool.
1683 * progspace.h (struct program_space) <empty>: New method.
1684 (program_space_empty_p): Don't declare.
1685
e39fb971
TT
16862020-10-29 Tom Tromey <tom@tromey.com>
1687
1688 * progspace.c (program_space::~program_space): Don't call
1689 clear_program_space_solib_cache.
1690 (program_space::clear_solib_cache): Rename from
1691 clear_solib_cache.
1692 * solib.c (handle_solib_event): Update.
1693 * progspace.h (struct program_space) <clear_solib_cache>: New
1694 method.
1695 (clear_program_space_solib_cache): Don't declare.
1696
a42d7dd8
TT
16972020-10-29 Tom Tromey <tom@tromey.com>
1698
1699 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1700 * target.c (info_target_command): Update.
1701 * symfile.c (syms_from_objfile_1, finish_new_objfile)
1702 (symbol_file_clear, reread_symbols): Update.
1703 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
1704 * stabsread.c (scan_file_globals): Update.
1705 * solib.c (update_solib_list): Update.
1706 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
1707 (svr4_fetch_objfile_link_map, enable_break)
1708 (svr4_relocate_main_executable)
1709 (svr4_iterate_over_objfiles_in_search_order): Update.
1710 * solib-frv.c (lm_base, enable_break)
1711 (frv_relocate_main_executable): Update.
1712 (main_got, frv_fdpic_find_canonical_descriptor): Update.
1713 (frv_fetch_objfile_link_map): Update.
1714 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
1715 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
1716 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
1717 * remote.c (remote_target::get_offsets): Update.
1718 (remote_target::start_remote)
1719 (extended_remote_target::post_attach): Update.
1720 * objfiles.c (entry_point_address_query): Update.
1721 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
1722 * minsyms.c (get_symbol_leading_char): Update.
1723 * frame.c (inside_main_func): Update.
1724 * progspace.h (symfile_objfile): Remove macro.
1725
19f6550e
TT
17262020-10-29 Tom Tromey <tom@tromey.com>
1727
1728 * exec.c (exec_file_attach): Update.
1729 * progspace.c (program_space::exec_close): Update.
1730 * progspace.h (struct program_space) <ebfd>: Now a
1731 gdb_bfd_ref_ptr.
1732 <set_exec_bfd>: Change argument type.
1733 <exec_bfd>: Update.
1734
7e10abd1
TT
17352020-10-29 Tom Tromey <tom@tromey.com>
1736
1737 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1738 * symfile.c (reread_symbols): Update.
1739 * symfile-mem.c (add_symbol_file_from_memory_command)
1740 (add_vsyscall_page): Update.
1741 * source-cache.c (source_cache::get_plain_source_lines): Update.
1742 * solib-svr4.c (find_program_interpreter, elf_locate_base)
1743 (svr4_current_sos_direct, svr4_exec_displacement)
1744 (svr4_relocate_main_executable): Update.
1745 (svr4_iterate_over_objfiles_in_search_order): Update.
1746 * solib-frv.c (enable_break2, enable_break): Update.
1747 * solib-dsbt.c (lm_base, enable_break): Update.
1748 * solib-darwin.c (find_program_interpreter)
1749 (darwin_solib_create_inferior_hook): Update.
1750 * sol-thread.c (rw_common, ps_pdmodel): Update.
1751 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
1752 * remote.c (compare_sections_command)
1753 (remote_target::trace_set_readonly_regions): Update.
1754 * remote-sim.c (get_sim_inferior_data)
1755 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
1756 (gdbsim_target_open, gdbsim_target::files_info): Update.
1757 * exec.h (exec_bfd): Remove macro.
1758 * progspace.c (initialize_progspace): Update.
1759 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
1760 Update.
1761 * nto-procfs.c (nto_procfs_target::post_attach)
1762 (nto_procfs_target::create_inferior): Update.
1763 * maint.c (maintenance_info_sections): Update.
1764 * linux-thread-db.c (thread_db_target::get_thread_local_address):
1765 Update.
1766 * infcmd.c (post_create_inferior): Update.
1767 * gcore.c (default_gcore_arch, default_gcore_target): Update.
1768 (objfile_find_memory_regions): Update.
1769 * exec.c (validate_exec_file, exec_file_attach)
1770 (exec_read_partial_read_only, print_section_info): Update.
1771 * corelow.c (core_target_open): Update.
1772 * corefile.c (reopen_exec_file, validate_files): Update.
1773 * arm-tdep.c (gdb_print_insn_arm): Update.
1774 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
1775 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
1776 methods.
1777
b55221ab
TT
17782020-10-29 Tom Tromey <tom@tromey.com>
1779
1780 * progspace.h (current_target_sections): Remove macro.
1781 * solib-svr4.c (scan_dyntag): Update.
1782 * solib-dsbt.c (scan_dyntag): Update.
1783 * exec.c (exec_target::close): Update.
1784 (add_target_sections, add_target_sections_of_objfile)
1785 (remove_target_sections, exec_target::get_section_table)
1786 (exec_target::files_info, set_section_command)
1787 (exec_set_section_address, exec_target::has_memory)
1788 (exec_target::has_memory): Update.
1789
5a36e715
TT
17902020-10-29 Tom Tromey <tom@tromey.com>
1791
1792 * source-cache.c (source_cache::get_plain_source_lines): Use
1793 current_program_space.
1794 * corefile.c (reopen_exec_file): Use current_program_space.
1795 * exec.c (exec_file_attach): Use current_program_space.
1796 * exec.h (exec_bfd_mtime): Remove.
1797
784c8592
TT
17982020-10-29 Tom Tromey <tom@tromey.com>
1799
1800 * gcore.c (default_gcore_mach): Remove.
1801 (create_gcore_bfd): Update.
1802
8a4f1402
TT
18032020-10-29 Tom Tromey <tom@tromey.com>
1804
1805 * progspace.c (program_space::exec_close): New method, from
1806 exec_close in exec.c.
1807 * exec.c (exec_close): Move to progspace.c.
1808 (exec_target::close, exec_file_attach): Update.
1809 * progspace.h (struct program_space) <exec_close>: Declare
1810 method.
1811
c20cb686
TT
18122020-10-29 Tom Tromey <tom@tromey.com>
1813
1814 * progspace.h (struct program_space) <exec_filename>: Rename from
1815 pspace_exec_filename. Now a unique_xmalloc_ptr.
1816 * inferior.c (print_selected_inferior): Update.
1817 (print_inferior): Update.
1818 * mi/mi-main.c (print_one_inferior): Update.
1819 * exec.h (exec_filename): Remove macro.
1820 * corefile.c (get_exec_file): Update.
1821 * exec.c (exec_close): Update.
1822 (exec_file_attach): Update.
1823 * progspace.c (clone_program_space): Update.
1824 (print_program_space): Update.
1825
6be2a9ab
TT
18262020-10-29 Tom Tromey <tom@tromey.com>
1827
1828 * target-section.h (struct target_section): Add constructor.
1829 * exec.c (build_section_table, add_target_sections_of_objfile):
1830 Update.
1831 * corelow.c (core_target::build_file_mappings): Update.
1832
cfaa8f76
TBA
18332020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1834
1835 PR gdb/19318
1836 * inferior.c (detach_inferior_command): Restore the current thread.
1837 (kill_inferior_command): Ditto.
1838
1b00ef06
TV
18392020-10-28 Tom de Vries <tdevries@suse.de>
1840
1841 PR symtab/26772
1842 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
1843 map, check it in the "best match" loop.
1844
7f40ce1a
SM
18452020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1846
1847 * m32c-tdep.c: Remove unused includes.
1848
5eb9e3f5
SM
18492020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1850
1851 * xtensa-tdep.c: Remove includes.
1852
b1d4d8d1
TBA
18532020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1854
1855 * breakpoint.c (struct condition_command_opts): New struct.
1856 (condition_command_option_defs): New static global.
1857 (make_condition_command_options_def_group): New function.
1858 (condition_completer): Update to consider the '-force' flag.
1859 (condition_command): Use gdb::option for the '-force' flag.
1860
bd24c5d6
TV
18612020-10-27 Tom de Vries <tdevries@suse.de>
1862
1863 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
1864 symbols in section check.
1865
61eb46a4
TV
18662020-10-27 Tom de Vries <tdevries@suse.de>
1867
1868 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
1869
733d554a
TBA
18702020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1871
1872 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
1873 * breakpoint.c: Update the help text of the 'condition' and 'break'
1874 commands.
1875 (set_breakpoint_condition): Take a new bool parameter
1876 to control whether condition definition should be forced even when
1877 the condition expression is invalid in all of the current locations.
1878 (condition_command): Update the call to 'set_breakpoint_condition'.
1879 (find_condition_and_thread): Take the "-force-condition" flag into
1880 account.
1881 * linespec.c (linespec_keywords): Add "-force-condition" as an
1882 element.
1883 (FORCE_KEYWORD_INDEX): New #define.
1884 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
1885 as a keyword.
1886 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
1887 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
1888 * python/py-breakpoint.c (bppy_set_condition): Ditto.
1889 * NEWS: Mention the changes to the 'break' and 'condition' commands.
1890
b5fa468f
TBA
18912020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1892
1893 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
1894 * breakpoint.c (set_breakpoint_location_condition): New function.
1895 (set_breakpoint_condition): Disable a breakpoint location if parsing
1896 the condition string gives an error.
1897 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
1898 (build_target_condition_list): Ditto.
1899 (build_target_command_list): Ditto.
1900 (build_bpstat_chain): Ditto.
1901 (print_one_breakpoint_location): Ditto.
1902 (print_one_breakpoint): Ditto.
1903 (breakpoint_1): Ditto.
1904 (bp_location::bp_location): Ditto.
1905 (locations_are_equal): Ditto.
1906 (update_breakpoint_locations): Ditto.
1907 (enable_disable_bp_num_loc): Ditto.
1908 (init_breakpoint_sal): Use set_breakpoint_location_condition.
1909 (find_condition_and_thread_for_sals): New static function.
1910 (create_breakpoint): Call find_condition_and_thread_for_sals.
1911 (location_to_sals): Call find_condition_and_thread_for_sals instead
1912 of find_condition_and_thread.
1913
1c47ec3e
TV
19142020-10-26 Tom de Vries <tdevries@suse.de>
1915
1916 * dwarf2/read.c (process_full_comp_unit): Call
1917 dwarf2_find_base_address.
1918
6390859c
TT
19192020-10-26 Tom Tromey <tromey@adacore.com>
1920
1921 * gdbtypes.c (create_range_type): Revert previous patch. Add
1922 comment.
1923
d744f0f9
PA
19242020-10-26 Pedro Alves <pedro@palves.net>
1925
1926 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
1927 (my_waitpid): Use gdb::handle_eintr.
1928
006811bc
SM
19292020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
1930
1931 * acinclude.m4: Update ptrace.m4 path.
1932 * ptrace.m4: Moved to gdbsupport.
1933
c75e31a1
SM
19342020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1935
1936 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
1937 instead of target_gdbarch.
1938
32495661
SM
19392020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1940
1941 * jit.c (jit_reader_load_command): Pass current inferior.
1942 (jit_inferior_init): Change parameter type to inferior, use it.
1943 (jit_inferior_created): Remove.
1944 (jit_inferior_created_hook): Pass inferior parameter down.
1945 (_initialize_jit): Use jit_inferior_created_hook instead of
1946 jit_inferior_created.
1947 * jit.h (jit_inferior_created_hook): Add inferior parameter.
1948 * infrun.c (follow_exec): Pass inferior to
1949 jit_inferior_created_hook.
1950
3f66685e
SM
19512020-10-24 Simon Marchi <simon.marchi@efficios.com>
1952
1953 * linux-thread-db.c (check_pid_namespace_match): Add inferior
1954 parameter and use it.
1955 (thread_db_inferior_created): Pass inferior argument.
1956
a0ff652f
SM
19572020-10-24 Simon Marchi <simon.marchi@efficios.com>
1958
1959 * aix-thread.c (aix_thread_inferior_created): Add inferior
1960 parameter.
1961 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
1962 * dummy-frame.c (cleanup_dummy_frames): Likewise.
1963 * jit.c (jit_inferior_created): Likewise.
1964 * linux-thread-db.c (thread_db_inferior_created): Likewise.
1965 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
1966 * observable.h (inferior_created): Likewise.
1967 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
1968 * symfile-mem.c (add_vsyscall_page): Likewise.
1969 * infcmd.c (post_create_inferior): Pass inferior argument.
1970
3c67532c
JB
19712020-10-24 Joel Brobecker <brobecker@adacore.com>
1972
1973 GDB 10.1 released.
1974
8747316e
JB
19752020-10-23 Joel Brobecker <brobecker@adacore.com>
1976
1977 * ada-typeprint.c (ada_print_type): Remove superfluous second call
1978 to ada_check_typedef.
1979
1a0ea399
AB
19802020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1981
1982 * f-exp.y (f_parse): Rename to...
1983 (f_language::parser): ...this.
1984 * f-lang.c (f_get_encoding): Rename to...
1985 (f_language::get_encoding): ...this.
1986 (f_op_print_tab): Rename to...
1987 (f_language::op_print_tab): ...this.
1988 (exp_descriptor_f): Rename to...
1989 (f_language::exp_descriptor_tab): ...this.
1990 (class f_language): Moved to f-lang.h.
1991 (f_language::language_arch_info): New function, moved out of class
1992 declaration.
1993 (f_language::search_name_hash): Likewise.
1994 (f_language::lookup_symbol_nonlocal): Likewise.
1995 (f_language::get_symbol_name_matcher_inner): Likewise.
1996 * f-lang.h: Add 'valprint.h' include.
1997 (class f_language): Moved here from f-lang.c.
1998 * f-typeprint.c (f_type_print_args): Delete commented out
1999 declaration.
2000 (f_print_typedef): Rename to...
2001 (f_language::print_typedef): ...this.
2002 (f_print_type): Rename to...
2003 (f_language::print_type): ...this.
2004 (f_type_print_varspec_prefix): Delete declaration and rename to...
2005 (f_language::f_type_print_varspec_prefix): ...this.
2006 (f_type_print_varspec_suffix): Delete declaration and rename to...
2007 (f_language::f_type_print_varspec_suffix): ...this.
2008 (f_type_print_base): Delete declaration and rename to...
2009 (f_language::f_type_print_base): ...this.
2010 * f-valprint.c (f_value_print_inner): Rename to...
2011 (f_language::value_print_inner): ...this.
2012 * parse.c: Delete 'f-lang.h' include.
2013
88cefd9b
AB
20142020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2015
2016 * language.h (language_defn::print_type): Add variable names in
2017 declaration, and update header comment.
2018
5399db93
AB
20192020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2020
2021 * ada-lang.c (ada_language::demangle): Rename to...
2022 (ada_language::demangle_symbol): ...this.
2023 * c-lang.c (cplus_language::demangle): Rename to...
2024 (cplus_language::demangle_symbol): ...this.
2025 * d-lang.c (d_language::demangle): Rename to...
2026 (d_language::demangle_symbol): ...this.
2027 * f-lang.c (f_language::demangle): Rename to...
2028 (f_language::demangle_symbol): ...this.
2029 * go-lang.c (go_language::demangle): Rename to...
2030 (go_language::demangle_symbol): ...this.
2031 * language.c (language_demangle): Update call to demangle_symbol.
2032 (auto_or_unknown_language::demangle): Rename to...
2033 (auto_or_unknown_language::demangle_symbol): ...this.
2034 * language.h (language_defn::demangle): Rename to...
2035 (language_defn::demangle_symbol): ...this.
2036 * objc-lang.c (objc_language::demangle): Rename to...
2037 (objc_language::demangle_symbol): ...this.
2038 * rust-lang.c (rust_language::demangle): Rename to...
2039 (rust_language::demangle_symbol): ...this.
2040
4b2f86ef
AB
20412020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2042
2043 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
2044 (iterate_over_file_blocks): Replace use of macro with the macros
2045 definition.
2046
e74b39de
AB
20472020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2048
2049 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
2050 * valprint.c (maybe_print_array_index): Replace use of macro with
2051 the macros definition.
2052
00c696a6
AB
20532020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2054
2055 * ada-lang.c (ada_language::print_array_index): Call value_print
2056 directly.
2057 * language.c (language_defn::print_array_index): Likewise.
2058 * language.h (LA_VALUE_PRINT): Delete.
2059 * valprint.c (value_print): Call value_print on the
2060 current_language directly.
2061
d3b67c56
AB
20622020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2063
2064 * language.h (LA_PRINT_TYPEDEF): Delete.
2065 * typeprint.c (typedef_print): Call print_typedef directly on the
2066 current_language object.
2067
790e2a12
AB
20682020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2069
2070 * m2-exp.y (m2_parse): Rename to...
2071 (m2_language::parser): ...this. Update function signature.
2072 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
2073 (m2_op_print): Rename to...
2074 (m2_language::op_print_tab): ...this, and make const.
2075 (exp_descriptor_modula2): Rename to...
2076 (m2_language::exp_descriptor_modula2): ...this.
2077 (class m2_language): Move to m2-lang.h.
2078 (m2_language::language_arch_info): New function, moved out of
2079 class declaration.
2080 (m2_language::printchar): New function, body from m2_printchar.
2081 (m2_language::printstr): New function, moved out of class
2082 declaration.
2083 (m2_language::emitchar): Likewise.
2084 * m2-lang.h (m2_parse): Delete declaration.
2085 (m2_print_typedef): Delete declaration.
2086 (m2_value_print_inner): Delete declaration.
2087 (class m2_language): Class declaration moved from m2-lang.c,
2088 larger functions are left in m2-lang.c.
2089 * m2-typeprint.c (m2_print_typedef): Rename to...
2090 (m2_language::print_typedef): ...this, and update function
2091 signature.
2092 * m2-valprint.c (m2_value_print_inner): Rename to...
2093 (m2_language::value_print_inner): ...this, replace use of
2094 LA_PRINT_STRING with a direct call to printstr member function,
2095 and update recursive call.
2096
b01175fc
AB
20972020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2098
2099 * language.c (default_is_string_type_p): Delete, implementation
2100 moved into auto_or_unknown_language::is_string_type_p.
2101 (unk_op_print_tab): Moved into
2102 auto_or_unknown_language::opcode_print_table.
2103 (unknown_language_arch_info): Delete, implementation moved into
2104 auto_or_unknown_language::language_arch_info.
2105 (class auto_or_unknown_language): New class, member functions
2106 copied from unknown_language class, with some updates.
2107 (class unknown_language): Most member functions moved into
2108 auto_or_unknown_language class. Inherit from
2109 auto_or_unknown_language class.
2110 (class auto_language): Inherit from auto_or_unknown_language.
2111 Delete most member functions.
2112
1a97fe8c
HD
21132020-10-22 Hannes Domani <ssbssa@yahoo.de>
2114
2115 * stabsread.c (read_member_functions): Remove gdb_assert.
2116
6b9d0dfd
HD
21172020-10-22 Hannes Domani <ssbssa@yahoo.de>
2118
2119 * gdbtypes.c (init_complex_type): Check target type name.
2120
4b4bb603
SM
21212020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2122
2123 * target-debug.h (target_debug_print_struct_target_ops_p):
2124 Remove.
2125 (target_debug_print_async_callback_ftype_p): Remove.
2126 (target_debug_print_struct_trace_state_variable_p): Remove.
2127 (target_debug_print_struct_traceframe_info_p): Remove.
2128 (target_debug_print_VEC__btrace_block_s__pp): Remove.
2129 (target_debug_print_enum_btrace_format): Remove.
2130 (target_debug_print_enum_info_proc_what): Remove.
2131 (target_debug_print_thread_info_pp): Remove.
2132
24f5300a
SM
21332020-10-22 Simon Marchi <simon.marchi@efficios.com>
2134
2135 * target.h (struct target_ops) <make_corefile_notes>:
2136 Change return type to unique pointer.
2137 * target.c (dummy_make_corefile_notes): Likewise.
2138 * exec.c (struct exec_target) <make_corefile_notes>:
2139 Likewise.
2140 (exec_target::make_corefile_notes): Likewise.
2141 * procfs.c (class procfs_target) <make_corefile_notes>:
2142 Likewise.
2143 (procfs_do_thread_registers): Adjust to unique pointer.
2144 (struct procfs_corefile_thread_data): Add constructor.
2145 <note_data>: Change type to unique pointer.
2146 (procfs_corefile_thread_callback): Adjust to unique pointer.
2147 (procfs_target::make_corefile_notes): Change return type to
2148 unique pointer.
2149 * target-delegates.c: Re-generate.
2150 * gcore.c (write_gcore_file_1): Adjust.
2151 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
2152 New.
2153
5fb4027f
TV
21542020-10-22 Tom de Vries <tdevries@suse.de>
2155
2156 * block.c (find_block_in_blockvector): Make sure the returned block
2157 contains pc.
2158
4a636814
SM
21592020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2160
2161 PR gdb/26693
2162 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
2163 parameter.
2164 (load_cu): Pass existing CU.
2165 (process_imported_unit_die): Likewise.
2166 (follow_die_offset): Likewise.
2167
1bd57575
LM
21682020-10-22 Luis Machado <luis.machado@linaro.org>
2169
2170 * corelow.c (core_target::xfer_partial): Also check for an empty
2171 m_core_unavailable_mappings vector.
2172
6b4c676c
AB
21732020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2174
2175 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
2176 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
2177 * f-exp.y (arglist): Allow for a series of subranges.
2178 (subrange): Add cases for subranges with strides.
2179 * f-lang.c (value_f90_subarray): Catch use of array strides and
2180 throw an error.
2181 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
2182
f2d8e4c5
AB
21832020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2184
2185 * expprint.c (print_subexp_standard): Change enum range_type to
2186 range_flag and rename variables to match.
2187 (dump_subexp_body_standard): Likewise.
2188 * expression.h (enum range_type): Rename to...
2189 (enum range_flag): ...this.
2190 (range_types): Rename to...
2191 (range_flags): ...this.
2192 * f-lang.c (value_f90_subarray): Change enum range_type to
2193 range_flag and rename variables to match.
2194 * parse.c (operator_length_standard): Likewise.
2195 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
2196 range_type to range_flag.
2197 * rust-lang.c (rust_evaluate_funcall): Likewise.
2198 (rust_range): Likewise.
2199 (rust_compute_range): Likewise.
2200 (rust_subscript): Likewise.
2201
2f1b18db
AB
22022020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2203
2204 * expprint.c (print_subexp_standard): Update to reflect changes to
2205 enum range_type.
2206 (dump_subexp_body_standard): Likewise.
2207 * expression.h (enum range_type): Convert to a bit field enum, and
2208 make the enum unsigned.
2209 * f-exp.y (subrange): Update to reflect changes to enum
2210 range_type.
2211 * f-lang.c (value_f90_subarray): Likewise.
2212 * parse.c (operator_length_standard): Likewise.
2213 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
2214 * rust-lang.c (rust_range): Likewise.
2215 (rust_compute_range): Likewise.
2216 (rust_subscript): Likewise.
2217
a46d1843
SM
22182020-10-21 Simon Marchi <simon.marchi@efficios.com>
2219
2220 * infrun.c (displaced_step_in_progress_thread): Fix comment.
2221 (displaced_step_in_progress): Fix comment.
2222
c21f37a8
SM
22232020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
2224
2225 * gdbarch.sh (make_corefile_notes): Return unique pointer.
2226 * gdbarch.c: Re-generate.
2227 * gdbarch.h: Re-generate.
2228 * gcore.c (write_gcore_file_1): Adjust.
2229 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
2230 constructor.
2231 <note_data>: Change type to unique pointer.
2232 <abort_iteration>: Change type to bool.
2233 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
2234 (fbsd_collect_thread_registers): Return void, adjust.
2235 (struct fbsd_corefile_thread_data): Add construtor.
2236 <note_data>: Change type to unique pointer.
2237 (fbsd_corefile_thread): Adjust.
2238 (fbsd_make_corefile_notes): Return unique pointer, adjust.
2239 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
2240 to unique pointer, adjust.
2241 (struct linux_collect_regset_section_cb_data): Add constructor.
2242 <note_data>: Change type to unique pointer.
2243 <abort_iteration>: Change type to bool.
2244 (linux_collect_thread_registers): Return void, adjust.
2245 (struct linux_corefile_thread_data): Add constructor.
2246 <note_data>: Change type to unique pointer.
2247 (linux_corefile_thread): Adjust.
2248 (linux_make_corefile_notes): Return unique pointer, adjust.
2249
07fbbd01
SM
22502020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2251
2252 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
2253 * gdbarch.c: Re-generate.
2254 * gdbarch.h: Re-generate.
2255 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
2256 bool.
2257 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
2258 Likewise.
2259 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
2260 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
2261 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
2262 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
2263
39535193
SM
22642020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2265
2266 * gdbarch.sh: Make generated predicates return bool.
2267 * gdbarch.c: Re-generate.
2268 * gdbarch.h: Re-generate.
2269
ad523d01
TT
22702020-10-20 Tom Tromey <tom@tromey.com>
2271
2272 * varobj-iter.h (struct varobj_item): Remove typedef.
2273
c4464ade
SM
22742020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2275
2276 * infrun.c (currently_stepping): Change int to bool
2277 (maybe_software_singlestep): Likewise.
2278 (show_stop_on_solib_events): Likewise.
2279 (stepping_past_nonsteppable_watchpoint): Likewise.
2280 (displaced_step_in_progress_any_inferior): Likewise.
2281 (displaced_step_in_progress_thread): Likewise.
2282 (keep_going_stepped_thread): Likewise.
2283 (thread_still_needs_step_over): Likewise.
2284 (start_step_over): Likewise.
2285 (do_target_resume): Likewise.
2286 (resume_1): Likewise.
2287 (clear_proceed_status): Likewise.
2288 (thread_still_needs_step_over_bp): Likewise.
2289 (proceed): Likewise.
2290 (switch_back_to_stepped_thread): Likewise.
2291 (adjust_pc_after_break): Likewise.
2292 (stepped_in_from): Likewise.
2293 (handle_stop_requested): Likewise.
2294 (handle_syscall_event): Likewise.
2295 (handle_no_resumed): Likewise.
2296 (handle_inferior_event): Likewise.
2297 (finish_step_over): Likewise.
2298 (handle_signal_stop): Likewise.
2299 (process_event_stop_test): Likewise.
2300
2eb20436
SM
23012020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2302
2303 * infrun.c (get_displaced_stepping_state): Fix comment.
2304
e0c45ded
AS
23052020-10-20 Andreas Schwab <schwab@linux-m68k.org>
2306
2307 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
2308
22cc388e
TT
23092020-10-19 Tom Tromey <tromey@adacore.com>
2310
2311 PR tui/26719
2312 * tui/tui-winsource.h (struct tui_source_window_base)
2313 <refresh_window>: Rename from refresh_pad.
2314 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
2315 Rename from refresh_pad.
2316 (tui_source_window_base::show_source_content)
2317 (tui_source_window_base::do_scroll_horizontal): Update.
2318
3c6eb4d4
TBA
23192020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2320
2321 * thread.c (_initialize_thread): Fine-tune the help text of
2322 'info threads'.
2323
26703721
TBA
23242020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2325
2326 * frame.c: Remove the unused 'uinteger_option_def' type alias.
2327
61c26be8
MS
23282020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
2329
2330 * breakpoint.c (handle_jit_event): Add an argument, change how
2331 `jit_event_handler` is called.
2332
932539d7
TT
23332020-10-17 Tom Tromey <tom@tromey.com>
2334
2335 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
2336 (scan_xcoff_symtab): Update.
2337 * psymtab.h (class psymtab_storage) <global_psymbols,
2338 static_psymbols, current_global_psymbols,
2339 current_static_psymbols>: Remove.
2340 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
2341 (match_partial_symbol, lookup_partial_symbol): Update.
2342 (print_partial_symbols): Change parameters.
2343 (dump_psymtab, recursively_search_psymtabs)
2344 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
2345 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
2346 (concat): Remove.
2347 (end_psymtab_common): Simplify.
2348 (append_psymbol_to_list): Change parameters.
2349 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
2350 (init_psymbol_list): Simplify.
2351 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2352 * psympriv.h (struct partial_symtab) <empty>: New method.
2353 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
2354 Remove.
2355 <global_psymbols, static_psymbols>: New members.
2356 <add_psymbol>: New methods.
2357 (add_psymbol_to_list): Don't declare.
2358 (psymbol_placement): Move earlier.
2359 * mdebugread.c (parse_partial_symbols): Update.
2360 (handle_psymbol_enumerators): Change parameters.
2361 (mdebug_expand_psymtab): Update.
2362 * dwarf2/read.c (process_psymtab_comp_unit_reader)
2363 (add_partial_symbol): Update.
2364 * dwarf2/index-write.c (write_psymbols): Change parameters.
2365 (write_one_signatured_type): Update.
2366 (recursively_count_psymbols): Update.
2367 (recursively_write_psymbols): Update.
2368 (class debug_names) <recursively_write_psymbols>: Update.
2369 <write_psymbols>: Change parameters.
2370 <write_one_signatured_type>: Update.
2371 * dbxread.c (read_dbx_symtab): Update.
2372 (dbx_end_psymtab): Use partial_symtab::empty.
2373 * ctfread.c (struct ctf_context) <pst>: New member.
2374 (create_partial_symtab): Set it.
2375 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
2376 (scan_partial_symbols): Use the psymtab's context. Update.
2377
cfabbd35
TT
23782020-10-17 Tom Tromey <tom@tromey.com>
2379
2380 * valprint.c (generic_value_print): Remove comment.
2381 * m2-valprint.c (m2_value_print_inner): Remove comment.
2382 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
2383 type.
2384
520596f2
TV
23852020-10-17 Tom de Vries <tdevries@suse.de>
2386
2387 PR symtab/26317
2388 * source.c (select_source_symtab): Handling sal.symtab == NULL for
2389 symbol main.
2390
76547ab3
TV
23912020-10-14 Tom de Vries <tdevries@suse.de>
2392
2393 PR gdb/26733
2394 * solib.c (solib_contains_address_p): Handle
2395 'solib->sections == nullptr'.
2396
d3a07122
SM
23972020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2398
2399 PR gdb/26642
2400 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
2401 target can't do async.
2402 * target.c (target_wait): Assert that we don't pass
2403 TARGET_WNOHANG to a target that can't async.
2404
1b71cfcf
KR
24052020-10-13 Kamil Rytarowski <n54@gmx.com>
2406
2407 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
2408 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
2409 * alpha-bsd-nat.c: Adjust include.
2410 * alpha-bsd-tdep.h: Adjust comment.
2411 * alpha-nbsd-tdep.c: Rename to ...
2412 * alpha-netbsd-tdep.c: ... this, adjust include.
2413 * amd64-nbsd-nat.c: Rename to ...
2414 * amd64-netbsd-nat.c: ... this, adjust include.
2415 * amd64-nbsd-tdep.c: Rename to ...
2416 * amd64-netbsd-tdep.c: ... this, adjust include.
2417 * amd64-tdep.h: Adjust include.
2418 * arm-nbsd-nat.c: Rename to ...
2419 * arm-netbsd-nat.c: ... this, adjust include.
2420 * arm-nbsd-tdep.c: Rename to ...
2421 * arm-netbsd-tdep.c: ... this, adjust include.
2422 * arm-nbsd-tdep.h: Rename to ...
2423 * arm-netbsd-tdep.h: ... this, adjust include.
2424 * configure.nat: Adjust file lists.
2425 * configure.tgt: Likewise.
2426 * hppa-nbsd-nat.c: Rename to ...
2427 * hppa-netbsd-nat.c: ... this, adjust include.
2428 * hppa-nbsd-tdep.c: Rename to ...
2429 * hppa-netbsd-tdep.c: ... this, adjust include.
2430 * i386-nbsd-nat.c: Rename to ...
2431 * i386-netbsd-nat.c: ... this, adjust include.
2432 * i386-nbsd-tdep.c: Rename to ...
2433 * i386-netbsd-tdep.c: ... this, adjust include.
2434 * m68k-bsd-nat.c: Adjust include.
2435 * mips-nbsd-nat.c: Rename to ...
2436 * mips-netbsd-nat.c: ... this, adjust include.
2437 * mips-nbsd-tdep.c: Rename to ...
2438 * mips-netbsd-tdep.c: ... this, adjust include.
2439 * mips-nbsd-tdep.h: Rename to ...
2440 * mips-netbsd-tdep.h: ... this.
2441 * nbsd-nat.c: Rename to ...
2442 * netbsd-nat.c: ... this, adjust include.
2443 * nbsd-nat.h: Rename to ...
2444 * netbsd-nat.h: ... this, adjust include.
2445 * nbsd-tdep.c: Rename to ...
2446 * netbsd-tdep.c: ... this, adjust include.
2447 * nbsd-tdep.h: Rename to ...
2448 * netbsd-tdep.h: ... this.
2449 * ppc-nbsd-nat.c: Rename to ...
2450 * ppc-netbsd-nat.c: ... this, adjust include.
2451 * ppc-nbsd-tdep.c: Rename to ...
2452 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
2453 * ppc-nbsd-tdep.h: Rename to ...
2454 * ppc-netbsd-tdep.h: ... this.
2455 * sh-nbsd-nat.c: Rename to ...
2456 * sh-netbsd-nat.c: ... this, adjust include.
2457 * sh-nbsd-tdep.c: Rename to ...
2458 * sh-netbsd-tdep.c: ... this, adjust include.
2459 * sparc-nbsd-nat.c: Rename to ...
2460 * sparc-netbsd-nat.c: ... this.
2461 * sparc-nbsd-tdep.c: Rename to ...
2462 * sparc-netbsd-tdep.c: ... this, adjust include.
2463 * sparc64-nbsd-nat.c: Rename to ...
2464 * sparc64-netbsd-nat.c: ... this.
2465 * sparc64-nbsd-tdep.c: Rename to ...
2466 * sparc64-netbsd-tdep.c: ... this, adjust include.
2467 * sparc64-tdep.h: Adjust comment.
2468 * vax-bsd-nat.c: Adjust include.
2469 * vax-nbsd-tdep.c: Rename to ...
2470 * vax-netbsd-tdep.c: ... this, adjust include.
2471
d7a78e5c
TT
24722020-10-12 Tom Tromey <tom@tromey.com>
2473
2474 * target.h (struct target_ops) <get_section_table>: Update.
2475 (target_get_section_table): Update.
2476 * target.c (target_get_section_table, target_section_by_addr)
2477 (memory_xfer_partial_1): Update.
2478 * target-section.h (target_section_table): Now an alias.
2479 * target-delegates.c: Rebuild.
2480 * target-debug.h (target_debug_print_target_section_table_p):
2481 Rename from target_debug_print_struct_target_section_table_p.
2482 * symfile.c (build_section_addr_info_from_section_table): Update.
2483 * solib.c (solib_map_sections, solib_contains_address_p): Update.
2484 * solib-svr4.c (scan_dyntag): Update.
2485 * solib-dsbt.c (scan_dyntag): Update.
2486 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2487 Update.
2488 * record-full.c (record_full_core_target::xfer_partial): Update.
2489 * progspace.h (struct program_space) <target_sections>: Update.
2490 * exec.h (print_section_info): Update.
2491 * exec.c (exec_target::close, build_section_table)
2492 (add_target_sections, add_target_sections_of_objfile)
2493 (remove_target_sections, exec_on_vfork)
2494 (section_table_available_memory)
2495 (section_table_xfer_memory_partial)
2496 (exec_target::get_section_table, exec_target::xfer_partial)
2497 (print_section_info, set_section_command)
2498 (exec_set_section_address, exec_target::has_memory): Update.
2499 * corelow.c (core_target::build_file_mappings)
2500 (core_target::xfer_partial, core_target::info_proc_mappings)
2501 (core_target::info_proc_mappings): Update.
2502 * bfd-target.c (class target_bfd): Update
2503
eda214ce
TT
25042020-10-12 Tom Tromey <tom@tromey.com>
2505
2506 * progspace.c (program_space::~program_space): Don't call
2507 clear_section_table.
2508 * exec.h (clear_section_table): Don't declare.
2509 * exec.c (exec_target::close): Update.
2510 (clear_section_table): Remove.
2511
91840ee3
TT
25122020-10-12 Tom Tromey <tom@tromey.com>
2513
2514 * exec.c (add_target_sections_of_objfile): Simplify.
2515
2d128614
TT
25162020-10-12 Tom Tromey <tom@tromey.com>
2517
2518 * solib.c (solib_map_sections): Update.
2519 * record-full.c (record_full_core_open_1): Update.
2520 * exec.h (build_section_table): Return a target_section_table.
2521 * exec.c (exec_file_attach): Update.
2522 (build_section_table): Return a target_section_table.
2523 * corelow.c (core_target::core_target): Update.
2524 * bfd-target.c (target_bfd::target_bfd): Update.
2525
bb2a6777
TT
25262020-10-12 Tom Tromey <tom@tromey.com>
2527
2528 * target.c (target_section_by_addr, memory_xfer_partial_1):
2529 Update.
2530 * target-section.h (struct target_section_table): Use
2531 std::vector.
2532 * symfile.h (build_section_addr_info_from_section_table): Take a
2533 target_section_table.
2534 * symfile.c (build_section_addr_info_from_section_table): Take a
2535 target_section_table.
2536 * solist.h (struct so_list) <sections>: Change type.
2537 <sections_end>: Remove.
2538 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
2539 (solib_contains_address_p): Update.
2540 * solib-svr4.c (scan_dyntag): Update.
2541 * solib-dsbt.c (scan_dyntag): Update.
2542 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2543 Update.
2544 * record-full.c (record_full_core_start, record_full_core_end):
2545 Remove.
2546 (record_full_core_sections): New global.
2547 (record_full_core_open_1, record_full_core_target::xfer_partial):
2548 Update.
2549 * exec.h (build_section_table, section_table_xfer_memory_partial)
2550 (add_target_sections): Take a target_section_table.
2551 * exec.c (exec_file_attach, clear_section_table): Update.
2552 (resize_section_table): Remove.
2553 (build_section_table, add_target_sections): Take a
2554 target_section_table.
2555 (add_target_sections_of_objfile, remove_target_sections)
2556 (exec_on_vfork): Update.
2557 (section_table_available_memory): Take a target_section_table.
2558 (section_table_read_available_memory): Update.
2559 (section_table_xfer_memory_partial): Take a target_section_table.
2560 (print_section_info, set_section_command)
2561 (exec_set_section_address, exec_target::has_memory): Update.
2562 * corelow.c (class core_target) <m_core_section_table,
2563 m_core_file_mappings>: Remove braces.
2564 <~core_target>: Remove.
2565 (core_target::core_target): Update.
2566 (core_target::~core_target): Remove.
2567 (core_target::build_file_mappings)
2568 (core_target::xfer_memory_via_mappings)
2569 (core_target::xfer_partial, core_target::info_proc_mappings):
2570 Update.
2571 * bfd-target.c (target_bfd::xfer_partial): Update.
2572 (target_bfd::target_bfd): Update.
2573 (target_bfd::~target_bfd): Remove.
2574
7b466b10
TT
25752020-10-12 Tom Tromey <tom@tromey.com>
2576
2577 * target.h (struct target_section, struct target_section_table):
2578 Move to target-section.h.
2579 * target-section.h: New file.
2580
87a37e5e
PA
25812020-10-12 Pedro Alves <pedro@palves.net>
2582
2583 PR exp/26602
2584 * valops.c (struct struct_field_searcher): New.
2585 (update_search_result): Rename to ...
2586 (struct_field_searcher::update_result): ... this. Simplify
2587 prototype. Record all found fields.
2588 (do_search_struct_field): Rename to ...
2589 (struct_field_searcher::search): ... this. Simplify prototype.
2590 Maintain stack of visited baseclass path. Call update_result for
2591 fields too. Keep searching fields in baseclasses instead of
2592 stopping at the first found field.
2593 (search_struct_field): Use struct_field_searcher. When looking
2594 for fields, report ambiguous access attempts.
2595
9370fd51
AB
25962020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
2597
2598 * frame.c (inside_main_func): Check full symbols as well as
2599 minimal symbols.
2600
59c8a30b
JB
26012020-10-09 Joel Brobecker <brobecker@adacore.com>
2602
2603 * ada-lang.c (advance_wild_match): Rewrite the function's
2604 description. Change the type of target0, t0 and t1 to char.
2605
7c184d33
TT
26062020-10-09 Tom Tromey <tromey@adacore.com>
2607
2608 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
2609
5c4258f4
TT
26102020-10-09 Tom Tromey <tromey@adacore.com>
2611
2612 * ada-lang.h (ada_encode): Return std::string.
2613 * ada-lang.c (ada_encode_1): Return std::string.
2614 (ada_encode): Likewise.
2615 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
2616 Update.
2617 * ada-exp.y (block_lookup, write_var_or_type): Update.
2618
3d87245c
HD
26192020-10-09 Hannes Domani <ssbssa@yahoo.de>
2620
2621 PR exp/26714
2622 * printcmd.c (print_formatted): Handle void results as
2623 unformatted prints.
2624
bbb826f5
AB
26252020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2626
2627 * arch/aarch32.c (aarch32_create_target_description): Release the
2628 target_desc_up as late as possible.
2629 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2630 * arch/amd64.c (amd64_create_target_description): Likewise.
2631 * arch/arc.c (arc_create_target_description): Return a
2632 target_desc_up, don't release it.
2633 * arch/arc.h (arc_create_target_description): Update declaration.
2634 (arc_lookup_target_description): Move target_desc_up into the
2635 cache, and return a borrowed pointer.
2636 * arch/arm.c (arm_create_target_description): Release the
2637 target_desc_up as late as possible.
2638 * arch/i386.c (i386_create_target_description): Likewise.
2639 * arch/riscv.h (riscv_create_target_description): Update
2640 declaration to match definition.
2641 * arch/tic6x.c (tic6x_create_target_description): Release the
2642 target_desc_up as late as possible.
2643
361cb219
AB
26442020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2645
2646 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
2647 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
2648
f5c4b229
JV
26492020-10-09 Jan Vrany <jan.vrany@labware.com>
2650
2651 * source.c (directory_command): Notify observers that "directories"
2652 parameter has changed.
2653
b2701685
TT
26542020-10-08 Tom Tromey <tom@tromey.com>
2655
2656 * cli/cli-cmds.c (print_disassembly): Style function name and
2657 addresses. Add _() wrappers.
2658
ada508b6
SV
26592020-10-08 Shahab Vahedi <shahab@synopsys.com>
2660
2661 * NEWS: Mention ARC support in GDBserver.
2662
51a948fd
AB
26632020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
2664
2665 * arch/aarch32.c (aarch32_create_target_description): Release
2666 unique_ptr returned from allocate_target_description.
2667 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2668 * arch/amd64.c (amd64_create_target_description): Likewise.
2669 * arch/arc.c (arc_create_target_description): Likewise.
2670 * arch/arm.c (arm_create_target_description): Likewise.
2671 * arch/i386.c (i386_create_target_description): Likewise.
2672 * arch/riscv.c (riscv_create_target_description): Update return
2673 type. Handle allocate_target_description returning a unique_ptr.
2674 (riscv_lookup_target_description): Update to handle unique_ptr.
2675 * arch/tic6x.c (tic6x_create_target_description): Release
2676 unique_ptr returned from allocate_target_description.
2677 * features/microblaze-with-stack-protect.c: Regenerate.
2678 * features/microblaze.c: Regenerate.
2679 * features/mips-dsp-linux.c: Regenerate.
2680 * features/mips-linux.c: Regenerate.
2681 * features/mips64-dsp-linux.c: Regenerate.
2682 * features/mips64-linux.c: Regenerate.
2683 * features/nds32.c: Regenerate.
2684 * features/nios2.c: Regenerate.
2685 * features/or1k.c: Regenerate.
2686 * features/rs6000/powerpc-32.c: Regenerate.
2687 * features/rs6000/powerpc-32l.c: Regenerate.
2688 * features/rs6000/powerpc-403.c: Regenerate.
2689 * features/rs6000/powerpc-403gc.c: Regenerate.
2690 * features/rs6000/powerpc-405.c: Regenerate.
2691 * features/rs6000/powerpc-505.c: Regenerate.
2692 * features/rs6000/powerpc-601.c: Regenerate.
2693 * features/rs6000/powerpc-602.c: Regenerate.
2694 * features/rs6000/powerpc-603.c: Regenerate.
2695 * features/rs6000/powerpc-604.c: Regenerate.
2696 * features/rs6000/powerpc-64.c: Regenerate.
2697 * features/rs6000/powerpc-64l.c: Regenerate.
2698 * features/rs6000/powerpc-7400.c: Regenerate.
2699 * features/rs6000/powerpc-750.c: Regenerate.
2700 * features/rs6000/powerpc-860.c: Regenerate.
2701 * features/rs6000/powerpc-altivec32.c: Regenerate.
2702 * features/rs6000/powerpc-altivec32l.c: Regenerate.
2703 * features/rs6000/powerpc-altivec64.c: Regenerate.
2704 * features/rs6000/powerpc-altivec64l.c: Regenerate.
2705 * features/rs6000/powerpc-e500.c: Regenerate.
2706 * features/rs6000/powerpc-e500l.c: Regenerate.
2707 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
2708 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
2709 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
2710 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
2711 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
2712 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
2713 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
2714 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
2715 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
2716 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
2717 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
2718 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
2719 * features/rs6000/powerpc-vsx32.c: Regenerate.
2720 * features/rs6000/powerpc-vsx32l.c: Regenerate.
2721 * features/rs6000/powerpc-vsx64.c: Regenerate.
2722 * features/rs6000/powerpc-vsx64l.c: Regenerate.
2723 * features/rs6000/rs6000.c: Regenerate.
2724 * features/rx.c: Regenerate.
2725 * features/s390-gs-linux64.c: Regenerate.
2726 * features/s390-linux32.c: Regenerate.
2727 * features/s390-linux32v1.c: Regenerate.
2728 * features/s390-linux32v2.c: Regenerate.
2729 * features/s390-linux64.c: Regenerate.
2730 * features/s390-linux64v1.c: Regenerate.
2731 * features/s390-linux64v2.c: Regenerate.
2732 * features/s390-te-linux64.c: Regenerate.
2733 * features/s390-tevx-linux64.c: Regenerate.
2734 * features/s390-vx-linux64.c: Regenerate.
2735 * features/s390x-gs-linux64.c: Regenerate.
2736 * features/s390x-linux64.c: Regenerate.
2737 * features/s390x-linux64v1.c: Regenerate.
2738 * features/s390x-linux64v2.c: Regenerate.
2739 * features/s390x-te-linux64.c: Regenerate.
2740 * features/s390x-tevx-linux64.c: Regenerate.
2741 * features/s390x-vx-linux64.c: Regenerate.
2742 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
2743 from allocate_target_description.
2744 * target-descriptions.c (allocate_target_description): Update
2745 return type.
2746 (print_c_tdesc::visit_pre): Release unique_ptr returned from
2747 allocate_target_description.
2748
485c47e5
TT
27492020-10-07 Tom Tromey <tromey@adacore.com>
2750
2751 * unittests/search-memory-selftests.c: New file.
2752 * Makefile.in (SELFTESTS_SRCS): Add
2753 unittests/search-memory-selftests.c.
2754
3a135a91
TT
27552020-10-07 Tom Tromey <tromey@adacore.com>
2756
2757 PR gdb/16930:
2758 * findcmd.c (_initialize_mem_search): Mention that the range is
2759 inclusive.
2760
4a72de73
TT
27612020-10-07 Tom Tromey <tromey@adacore.com>
2762
2763 * target.h (simple_search_memory): Don't declare.
2764 * target.c (simple_search_memory): Move to gdbsupport.
2765 (default_search_memory): Update.
2766 * remote.c (remote_target::search_memory): Update.
2767
a038ffd8
SM
27682020-10-07 Simon Marchi <simon.marchi@efficios.com>
2769
2770 * Makefile.in (COMPILE): Add CXXFLAGS.
2771 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
2772 (check-headers): Add CXXFLAGS.
2773
cc463201
AK
27742020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
2775
2776 * arc-linux-tdep.h: New file.
2777 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
2778 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
2779 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
2780 arc_linux_gregset, arc_linux_v2_regset,
2781 arc_linux_iterate_over_regset_sections,
2782 arc_linux_core_read_description): Implement.
2783 (arc_linux_init_osabi): Set iterate_over_regset_sections.
2784 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
2785 (arc_gdbarch_features_create): Add.
2786 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
2787
e4bd363f
SV
27882020-10-07 Shahab Vahedi <shahab@synopsys.com>
2789
2790 * arch/arc.h: Rename "arc_gdbarch_features" to
2791 "arc_arch_features".
2792 * arc-tdep.h: Likewise.
2793 * arc-tdep.c: Likewise.
2794
b68bef99
TBA
27952020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2796
2797 * infcmd.c (attach_command): Remove the redundant call to
2798 `clear_proceed_status`.
2799
4641551a
KR
28002020-10-07 Kamil Rytarowski <n54@gmx.com>
2801
2802 * nat/netbsd-nat.c (write_memory, read_memory): Update.
2803
91e5e8db
KR
28042020-10-07 Kamil Rytarowski <n54@gmx.com>
2805
2806 * nat/netbsd-nat.c (write_memory, read_memory): Add.
2807 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
2808 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
2809
64c03bdb
SM
28102020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
2811
2812 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
2813 (_initialize_break_catch_sig): Don't allocate array.
2814
31a8f60f
AB
28152020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
2816
2817 * symtab.c (find_pc_line): Return unmapped addresses when the
2818 requested address is also unmapped.
2819
9e6dbd8b
SM
28202020-10-05 Simon Marchi <simon.marchi@efficios.com>
2821
2822 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
2823 tui/tui-out.h.
2824
a1d217e8
SM
28252020-10-05 Simon Marchi <simon.marchi@efficios.com>
2826
2827 * amd64-windows-tdep.c (amd64_windows_return_value): Use
2828 type::is_vector instead of TYPE_VECTOR.
2829
7d144117
SM
28302020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
2831
2832 * auto-load.c (auto_load_objfile_script_1): Don't use
2833 debugfile_holder as temporary variable when stripping drive
2834 letter.
2835
cd096ec8
HD
28362020-10-05 Hannes Domani <ssbssa@yahoo.de>
2837
2838 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
2839 Add TYPE_CODE_COMPLEX.
2840 (amd64_windows_return_value): Fix types returned via XMM0.
2841
b58e7f72
AH
28422020-10-05 Alan Hayward <alan.hayward@arm.com>
2843
2844 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
2845 AArch64/ARM maintainers.
2846
8d378f27
SM
28472020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
2848
2849 * NEWS: Mention set/show debug event-loop.
2850
d5519913
TT
28512020-10-02 Tom Tromey <tromey@adacore.com>
2852
2853 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
2854 REG_EXTENDED.
2855
18b67edc
SM
28562020-10-02 Simon Marchi <simon.marchi@efficios.com>
2857
2858 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
2859 * procfs.c (procfs_inferior_created): Remove.
2860 (_initialize_procfs): Don't register procfs_inferior_created.
2861
6b01403b
SM
28622020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2863
2864 * async-event.c (invoke_async_signal_handlers): Add debug
2865 print.
2866 (check_async_event_handlers): Likewise.
2867 * event-top.c (show_debug_event_loop): New function.
2868 (_initialize_event_top): Register "set debug event-loop"
2869 setting.
2870
ba988419
SM
28712020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2872
2873 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
2874 * debug.h: Remove.
2875 * infrun.c: Include gdbsupport/common-debug.h.
2876 * linux-nat.c: Likewise.
2877
db20ebdf
SM
28782020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2879
2880 * async-event.h (create_async_signal_handler): Add name
2881 parameter.
2882 (create_async_event_handler): Likewise.
2883 * async-event.c (struct async_signal_handler) <name>: New field.
2884 (struct async_event_handler) <name>: New field.
2885 (create_async_signal_handler): Assign name.
2886 (create_async_event_handler): Assign name.
2887 * event-top.c (async_init_signals): Pass name when creating
2888 handler.
2889 * infrun.c (_initialize_infrun): Likewise.
2890 * record-btrace.c (record_btrace_push_target): Likewise.
2891 * record-full.c (record_full_open): Likewise.
2892 * remote-notif.c (remote_notif_state_allocate): Likewise.
2893 * remote.c (remote_target::open_1): Likewise.
2894 * tui/tui-win.c (tui_initialize_win): Likewise.
2895
2554f6f5
SM
28962020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2897
2898 * async-event.c (initialize_async_signal_handlers): Pass name to
2899 add_file_handler
2900 * event-top.c (ui_register_input_event_handler): Likewise.
2901 * linux-nat.c (linux_nat_target::async): Likewise.
2902 * run-on-main-thread.c (_initialize_run_on_main_thread):
2903 Likewise
2904 * ser-base.c (reschedule): Likewise.
2905 (ser_base_async): Likewise.
2906 * tui/tui-io.c: Likewise.
2907 * top.h (struct ui) <num>: New field.
2908 * top.c (highest_ui_num): New variable.
2909 (ui::ui): Initialize num.
2910
a7aba266
SM
29112020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2912
2913 * observable.h <inferior_created>: Remove parameters. Update all
2914 listeners.
2915 * inferior.h (post_create_inferior): Remove target parameter.
2916 Update all callers.
2917
048fde1e 29182020-10-02 Nitika Achra <Nitika.Achra@amd.com>
2919
2920 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
2921 and DW_MACRO_undef_strx.
2922 (dwarf_decode_macros): Likewise
2923 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
2924 which is the value of DW_AT_str_offsets_base.
2925 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
2926 str_offsets_base.
2927
064280be
KR
29282020-10-01 Kamil Rytarowski <n54@gmx.com>
2929
2930 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
2931
6ff33035
KR
29322020-10-01 Kamil Rytarowski <n54@gmx.com>
2933
2934 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
2935 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
2936
1eb6eb79
KR
29372020-10-01 Kamil Rytarowski <n54@gmx.com>
2938
2939 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
2940
95eb9e54
TV
29412020-09-30 Tom de Vries <tdevries@suse.de>
2942
2943 PR symtab/26683
2944 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
2945
cae21f8e
TT
29462020-09-30 Tom Tromey <tromey@adacore.com>
2947
2948 * dwarf2/read.c (handle_variant): Use constant_value.
2949
529908cb
TT
29502020-09-29 Tom Tromey <tom@tromey.com>
2951
2952 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
2953 (read_file_scope, dwarf2_get_pc_bounds)
2954 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
2955 (read_structure_type, handle_struct_member_die)
2956 (read_enumeration_type, read_array_type, read_set_type)
2957 (read_tag_pointer_type, read_tag_reference_type)
2958 (read_subroutine_type, read_base_type, read_subrange_type)
2959 (read_full_die_1, partial_die_info::read)
2960 (partial_die_info::read, by, new_symbol)
2961 (dwarf2_const_value_data, dwarf2_const_value_attr)
2962 (dump_die_shallow, dwarf2_fetch_constant_bytes)
2963 (prepare_one_comp_unit): Update.
2964 * dwarf2/attribute.h (DW_UNSND): Remove.
2965
c45bc3f8
TT
29662020-09-29 Tom Tromey <tom@tromey.com>
2967
2968 * dwarf2/read.c (read_func_scope, prototyped_function_p)
2969 (read_subroutine_type, partial_die_info::read)
2970 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
2971 (dwarf2_add_member_fn): Update.
2972 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
2973 * dwarf2/attribute.c (attribute::as_boolean): New method.
2974
23dca5c3
TT
29752020-09-29 Tom Tromey <tom@tromey.com>
2976
2977 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
2978 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
2979 method.
2980 * dwarf2/attribute.c (attribute::as_virtuality): New method.
2981
52c14d11
TT
29822020-09-29 Tom Tromey <tom@tromey.com>
2983
2984 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
2985 the attribute's form.
2986
e8e5c158
TT
29872020-09-29 Tom Tromey <tom@tromey.com>
2988
2989 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
2990 (dwarf2_add_member_fn): Update.
2991 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
2992 * dwarf2/attribute.c (attribute::defaulted): New method, from
2993 is_valid_DW_AT_defaulted.
2994
d4df075e
TT
29952020-09-29 Tom Tromey <tom@tromey.com>
2996
2997 * dwarf2/read.c (dw2_get_file_names_reader)
2998 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
2999 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
3000 (dwarf2_symbol_mark_computed): Use as_unsigned.
3001 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
3002 method.
3003 <form_is_section_offset>: Update comment.
3004
bf23a268
TT
30052020-09-29 Tom Tromey <tom@tromey.com>
3006
3007 * dwarf2/read.c (dwarf2_access_attribute): Rename from
3008 dwarf2_default_access_attribute. Look up attribute.
3009 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
3010 Update.
3011
7a5f294d
TT
30122020-09-29 Tom Tromey <tom@tromey.com>
3013
3014 * dwarf2/read.c (skip_one_die): Update.
3015 (read_full_die_1): Change how reprocessing is done.
3016 (partial_die_info::read): Update.
3017 (read_attribute_value): Remove need_reprocess parameter.
3018 (read_attribute): Likewise.
3019 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
3020 New method.
3021
36d378cf
TT
30222020-09-29 Tom Tromey <tom@tromey.com>
3023
3024 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
3025 (dwarf2_const_value_attr, dump_die_shallow)
3026 (dwarf2_fetch_constant_bytes): Update.
3027 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
3028 comment.
3029 <set_address>: New method.
3030 (DW_ADDR): Remove.
3031 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
3032 (attribute::as_string, attribute::as_address): Add assert.
3033
fe56917a
TT
30342020-09-29 Tom Tromey <tom@tromey.com>
3035
3036 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
3037 (read_attribute_reprocess, read_attribute_value): Update.
3038 (read_attribute): Clear requires_reprocessing.
3039 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
3040 form_requires_reprocessing>: New methods.
3041 <string_init>: Clear requires_reprocessing.
3042 <set_unsigned_reprocess>: New method.
3043 <name>: Shrink by one bit.
3044 <requires_reprocessing>: New member.
3045 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
3046 method.
3047
414ad644
TT
30482020-09-29 Tom Tromey <tom@tromey.com>
3049
3050 * dwarf2/read.c (read_attribute_value): Update.
3051 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
3052 set_unsigned>: New methods.
3053 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
3054
1bc397c5
TT
30552020-09-29 Tom Tromey <tom@tromey.com>
3056
3057 * dwarf2/read.c (get_alignment, read_array_order)
3058 (read_attribute_value, dwarf2_const_value_attr)
3059 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
3060 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
3061 New methods.
3062 (DW_SND): Remove.
3063
630ed6b9
TT
30642020-09-29 Tom Tromey <tom@tromey.com>
3065
3066 * dwarf2/read.c (read_attribute_value, lookup_die_type)
3067 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
3068 Update.
3069 * dwarf2/attribute.h (struct attribute) <as_signature,
3070 set_signature>: New methods.
3071 (DW_SIGNATURE): Remove.
3072
9d2246fc
TT
30732020-09-29 Tom Tromey <tom@tromey.com>
3074
3075 * dwarf2/read.c (read_call_site_scope)
3076 (handle_data_member_location, dwarf2_add_member_fn)
3077 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3078 (partial_die_info::read, read_attribute_value)
3079 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
3080 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
3081 (dwarf2_symbol_mark_computed): Update.
3082 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
3083 methods.
3084 (DW_BLOCK): Remove.
3085 * dwarf2/attribute.c (attribute::form_is_block): Add
3086 DW_FORM_data16.
3087
c6481205
TT
30882020-09-29 Tom Tromey <tom@tromey.com>
3089
3090 * dwarf2/read.c (read_cutu_die_from_dwo)
3091 (read_attribute_reprocess, read_attribute_value, read_attribute)
3092 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
3093 (dwarf2_fetch_constant_bytes): Update.
3094 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
3095 <set_string_noncanonical, set_string_canonical>: New methods.
3096 <string_is_canonical>: Update comment.
3097 <canonical_string_p>: Add assert.
3098 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
3099 * dwarf2/attribute.c (attribute::form_is_string): New method.
3100 (attribute::string): Use it.
3101
3b64bf15
TT
31022020-09-29 Tom Tromey <tom@tromey.com>
3103
3104 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
3105 (dump_die_shallow): Use canonical_string_p.
3106 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
3107 method.
3108
2c830f54
TT
31092020-09-29 Tom Tromey <tom@tromey.com>
3110
3111 * dwarf2/read.c (partial_die_info::read)
3112 (dwarf2_const_value_attr, anonymous_struct_prefix, )
3113 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
3114 attribute::as_string.
3115
6c412691
TT
31162020-09-29 Tom Tromey <tom@tromey.com>
3117
3118 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
3119 DW_ADDR.
3120 (attribute::string): Don't use DW_STRING.
3121 (attribute::get_ref_die_offset): Don't use DW_UNSND.
3122 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
3123
95f982e5
TT
31242020-09-29 Tom Tromey <tom@tromey.com>
3125
3126 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
3127 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
3128 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
3129 * dwarf2/attribute.h (struct attribute): Rename methods.
3130 * dwarf2/attribute.c (attribute::as_address): Rename from
3131 value_as_address.
3132 (attribute::as_string): Rename from value_as_string.
3133
f800b00e
TT
31342020-09-29 Tom Tromey <tom@tromey.com>
3135
3136 * dwarf2/read.c (partial_die_info::read) <case
3137 DW_AT_linkage_name>: Use value_as_string.
3138 (dwarf2_string_attr): Use value_as_string.
3139 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
3140 method.
3141 * dwarf2/attribute.c (attribute::value_as_string): New method.
3142
de38d64a
PA
31432020-09-29 Pedro Alves <pedro@palves.net>
3144
3145 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
3146 defined before using '#pragma GCC diagnostic' instead of checking
3147 __clang__.
3148
9aed480c
TT
31492020-09-28 Tom Tromey <tom@tromey.com>
3150
3151 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
3152 (handle_signal_stop): Update.
3153 * procfs.c (procfs_target::insert_watchpoint): Update.
3154 * target.h (target_have_steppable_watchpoint): Now a function.
3155
8a3ecb79
TT
31562020-09-28 Tom Tromey <tom@tromey.com>
3157
3158 * infrun.c (set_schedlock_func): Update.
3159 * target.h (target_can_lock_scheduler): Now a function.
3160
55f6301a
TT
31612020-09-28 Tom Tromey <tom@tromey.com>
3162
3163 * inferior.h (class inferior) <has_execution>: Update.
3164 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
3165 * valops.c (find_function_in_inferior)
3166 (value_allocate_space_in_inferior): Update.
3167 * top.c (kill_or_detach): Update.
3168 * target.c (target_preopen, set_target_permissions): Update.
3169 (target_has_execution_current): Remove.
3170 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
3171 Update.
3172 * solib.c (update_solib_list, reload_shared_libraries): Update.
3173 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
3174 * solib-dsbt.c (enable_break): Update.
3175 * score-tdep.c (score7_fetch_inst): Update.
3176 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
3177 Update.
3178 * remote.c (remote_target::start_remote)
3179 (remote_target::remote_check_symbols, remote_target::open_1)
3180 (remote_target::remote_detach_1, remote_target::verify_memory)
3181 (remote_target::xfer_partial, remote_target::read_description)
3182 (remote_target::get_min_fast_tracepoint_insn_len): Update.
3183 * record-full.c (record_full_open_1): Update.
3184 * record-btrace.c (record_btrace_target_open): Update.
3185 * objc-lang.c (lookup_objc_class, lookup_child_selector)
3186 (value_nsstring): Update.
3187 * linux-thread-db.c (add_thread_db_info)
3188 (thread_db_find_new_threads_silently, check_thread_db_callback)
3189 (try_thread_db_load_1, record_thread): Update.
3190 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
3191 Update.
3192 * linux-fork.c (checkpoint_command): Update.
3193 * infrun.c (set_non_stop, set_observer_mode)
3194 (check_multi_target_resumption, for_each_just_stopped_thread)
3195 (maybe_remove_breakpoints, normal_stop)
3196 (class infcall_suspend_state): Update.
3197 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
3198 (info_program_command, attach_command): Update.
3199 * infcall.c (call_function_by_hand_dummy): Update.
3200 * inf-loop.c (inferior_event_handler): Update.
3201 * gcore.c (gcore_command, derive_heap_segment): Update.
3202 * exec.c (exec_file_command): Update.
3203 * eval.c (evaluate_subexp): Update.
3204 * compile/compile.c (compile_to_object): Update.
3205 * cli/cli-dump.c (restore_command): Update.
3206 * breakpoint.c (update_watchpoint)
3207 (update_inserted_breakpoint_locations)
3208 (insert_breakpoint_locations, get_bpstat_thread): Update.
3209 * target.h (target_has_execution): Remove macro.
3210 (target_has_execution_current): Don't declare.
3211 (target_has_execution): Rename from target_has_execution_1. Add
3212 argument default.
3213
05374cfd
TT
32142020-09-28 Tom Tromey <tom@tromey.com>
3215
3216 * mi/mi-main.c (exec_reverse_continue)
3217 (mi_cmd_list_target_features): Update.
3218 * infrun.c (set_exec_direction_func): Update.
3219 * target.c (default_execution_direction): Update.
3220 * reverse.c (exec_reverse_once): Update.
3221 * target.h (target_can_execute_reverse): Now a function.
3222
9dccd06e
TT
32232020-09-28 Tom Tromey <tom@tromey.com>
3224
3225 * tui/tui-regs.c (tui_get_register)
3226 (tui_data_window::show_registers): Update.
3227 * thread.c (scoped_restore_current_thread::restore)
3228 (scoped_restore_current_thread::scoped_restore_current_thread):
3229 Update.
3230 * regcache-dump.c (regcache_print): Update.
3231 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
3232 Update.
3233 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
3234 * mep-tdep.c (current_me_module, current_options): Update.
3235 * linux-thread-db.c (thread_db_load): Update.
3236 * infcmd.c (registers_info, info_vector_command)
3237 (info_float_command): Update.
3238 * ia64-tdep.c (ia64_frame_prev_register)
3239 (ia64_sigtramp_frame_prev_register): Update.
3240 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
3241 * gcore.c (derive_stack_segment): Update.
3242 * frame.c (get_current_frame, has_stack_frames): Update.
3243 * findvar.c (language_defn::read_var_value): Update.
3244 * arm-tdep.c (arm_pc_is_thumb): Update.
3245 * target.c (target_has_registers): Rename from
3246 target_has_registers_1.
3247 * target.h (target_has_registers): Remove macro.
3248 (target_has_registers): Rename from target_has_registers_1.
3249
841de120
TT
32502020-09-28 Tom Tromey <tom@tromey.com>
3251
3252 * windows-tdep.c (tlb_make_value): Update.
3253 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3254 * thread.c (scoped_restore_current_thread::restore)
3255 (scoped_restore_current_thread::scoped_restore_current_thread)
3256 (thread_command): Update.
3257 * stack.c (backtrace_command_1, frame_apply_level_command)
3258 (frame_apply_all_command, frame_apply_command): Update.
3259 * infrun.c (siginfo_make_value, restore_infcall_control_state):
3260 Update.
3261 * gcore.c (derive_stack_segment): Update.
3262 * frame.c (get_current_frame, has_stack_frames): Update.
3263 * auxv.c (info_auxv_command): Update.
3264 * ada-tasks.c (ada_build_task_list): Update.
3265 * target.c (target_has_stack): Rename from target_has_stack_1.
3266 * target.h (target_has_stack): Remove macro.
3267 (target_has_stack): Rename from target_has_stack_1.
3268
a739972c
TT
32692020-09-28 Tom Tromey <tom@tromey.com>
3270
3271 * target.c (target_has_memory): Rename from target_has_memory_1.
3272 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3273 * thread.c (scoped_restore_current_thread::restore)
3274 (scoped_restore_current_thread::scoped_restore_current_thread):
3275 Update.
3276 * frame.c (get_current_frame, has_stack_frames): Update.
3277 * target.h (target_has_memory): Remove macro.
3278 (target_has_memory): Rename from target_has_memory_1.
3279
5b8a4776
TT
32802020-09-28 Tom Tromey <tom@tromey.com>
3281
3282 * target.c (target_has_all_memory_1): Remove.
3283 * target.h (target_has_all_memory): Remove define.
3284 (target_has_all_memory_1): Don't declare.
3285
bd356ec6
SM
32862020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
3287
3288 * ser-base.c: Adjust comments formatting.
3289
2c72d5e5
TT
32902020-09-27 Tom Tromey <tom@tromey.com>
3291
3292 PR tui/25342:
3293 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
3294
35a98237
TT
32952020-09-27 Tom Tromey <tom@tromey.com>
3296
3297 PR tui/25342:
3298 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
3299
9e820dec
TT
33002020-09-27 Tom Tromey <tom@tromey.com>
3301
3302 * unittests/tui-selftests.c: Update.
3303 * tui/tui-winsource.h (struct tui_source_window_base)
3304 <extra_margin, show_line_number, refresh_pad>: New methods.
3305 <m_max_length, m_pad>: New members.
3306 (tui_copy_source_line): Update.
3307 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
3308 first_col, line_width, ndigits parameters. Add length.
3309 (tui_source_window_base::show_source_line): Write to pad. Line
3310 number now 0-based.
3311 (tui_source_window_base::refresh_pad): New method.
3312 (tui_source_window_base::show_source_content): Write to pad. Call
3313 refresh_pad.
3314 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
3315 not refill.
3316 (tui_source_window_base::update_exec_info): Call
3317 show_line_number.
3318 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
3319 method.
3320 <m_digits>: New member.
3321 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
3322 and m_max_length.
3323 (tui_source_window::show_line_number): New method.
3324 * tui/tui-io.h (tui_puts): Fix comment.
3325 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
3326 m_max_length.
3327
c15c15c8
TT
33282020-09-27 Tom Tromey <tom@tromey.com>
3329
3330 * tui/tui-winsource.c
3331 (tui_source_window_base::set_is_exec_point_at): Don't call
3332 show_source_line.
3333
149830c1
TT
33342020-09-27 Tom Tromey <tom@tromey.com>
3335
3336 * python/py-tui.c (class tui_py_window) <refresh_window>: New
3337 method.
3338 <erase>: Update.
3339 <cursor_x, cursor_y>: Remove.
3340 <m_inner_window>: New member.
3341 (tui_py_window::rerender): Create inner window.
3342 (tui_py_window::output): Write to inner window.
3343
8f9929bb
GR
33442020-09-26 Gareth Rees <grees@undo.io> (tiny change)
3345
3346 PR python/26586
3347 * cli/cli-script.c (execute_control_commands): don't set
3348 instream to nullptr here as this breaks the from_tty argument
3349 to gdb.execute in Python.
3350 (execute_user_command): set instream to nullptr here instead.
3351
956bdb59
SM
33522020-09-25 Simon Marchi <simon.marchi@efficios.com>
3353
3354 * infrun.h (infrun_debug_printf): Fix formatting.
3355 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
3356
3b93626b
SJ
33572020-09-25 Saagar Jha <saagar@saagarjha.com>
3358
3359 * compile/compile-object-load.h (struct munmap_list): Add
3360 explicitly-defined move constructor.
3361
b551a89f
TT
33622020-09-24 Tom Tromey <tromey@adacore.com>
3363
3364 PR tui/26638:
3365 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
3366 method.
3367 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
3368 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
3369 (tui_prev_win): Rewrite.
3370
99bb393f
HD
33712020-09-23 Hannes Domani <ssbssa@yahoo.de>
3372
3373 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
3374 in WOW64 processes as SIGINT.
3375 * nat/windows-nat.h: Make wow64_process a shared variable.
3376 * windows-nat.c: Remove static wow64_process variable.
3377
20a5fcbd
TT
33782020-09-23 Tom Tromey <tom@tromey.com>
3379
3380 PR symtab/25470:
3381 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
3382 offset and bit size.
3383 * printcmd.c (print_scalar_formatted): Handle zero-length
3384 integer.
3385 (print_scalar_formatted): Use bit_size_differs_p.
3386 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
3387 constant.
3388 (union type_specific): <int_stuff>: New member.
3389 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
3390 methods.
3391 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
3392 TYPE_SPECIFIC_FIELD.
3393 (recursive_dump_type, copy_type_recursive): Update.
3394 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
3395 DW_AT_data_bit_offset.
3396
bac51ab7
TT
33972020-09-23 Tom Tromey <tom@tromey.com>
3398
3399 * utils.h (class gdb_argv): Add move operators.
3400 <append>: New methods.
3401 * compile/compile.c (build_argc_argv): Remove.
3402 (compile_args_argc): Remove.
3403 (compile_args_argv): Change type.
3404 (set_compile_args): Simplify.
3405 (append_args): Remove.
3406 (filter_args): Remove argcp parameter.
3407 (get_args): Return gdb_argv. Simplify.
3408 (compile_to_object): Update.
3409
92677124
TT
34102020-09-23 Tom Tromey <tom@tromey.com>
3411
3412 * compile/compile-object-run.c (do_module_cleanup)
3413 <~do_module_cleanup> :Remove.
3414 (do_module_cleanup): Update.
3415 * compile/compile-object-load.h (struct munmap_list): Add move
3416 assignment operator.
3417 <source_file>: Now a std::string.
3418 <munmap_list>: Rename. No longer a pointer.
3419 * compile/compile-object-load.c (struct setup_sections_data): Add
3420 constructor.
3421 <setup_one_section>: Declare.
3422 <munmap_list>: Move earlier.
3423 <m_bfd>: New member.
3424 <m_last_size, m_last_section_first, m_last_prot,
3425 m_last_max_alignment>: Rename, add initializers where needed.
3426 (setup_sections_data::setup_one_section): Rename from
3427 setup_sections. Update.
3428 (compile_object_load): Update. Don't use bfd_map_over_sections.
3429
e616f60a
TT
34302020-09-23 Tom Tromey <tom@tromey.com>
3431
3432 * compile/compile-object-run.c (struct do_module_cleanup): Add
3433 parameters to constructor. Update destructor.
3434 <source_file, scope, scope_data, out_value_type, out_value_addr,
3435 munmap_list_head, objfile_name_string>: Remove.
3436 <module>: New member.
3437 (do_module_cleanup): Update.
3438 (compile_object_run): Update.
3439
e947a848
TT
34402020-09-23 Tom Tromey <tom@tromey.com>
3441
3442 * compile/compile.c (eval_compile_command): Update.
3443 * compile/compile-object-run.h (compile_object_run): Take a
3444 compile_module_up.
3445 * compile/compile-object-run.c (compile_object_run): Take a
3446 compile_module_up.
3447 * compile/compile-object-load.h (struct compile_module): Add
3448 constructor, destructor.
3449 (compile_module_up): New typedef.
3450 (compile_object_load): Return compile_object_up.
3451 * compile/compile-object-load.c (compile_object_load): Return
3452 compile_module_up.
3453
0dbf6ee6
TT
34542020-09-23 Tom Tromey <tom@tromey.com>
3455
3456 * compile/compile-object-run.c (struct do_module_cleanup): Add
3457 constructor, destructor.
3458 <objfile_name_string>: Don't use struct hack.
3459 (do_module_cleanup): Use delete.
3460 (compile_object_run): Use new.
3461
ebe824f5
TT
34622020-09-23 Tom Tromey <tom@tromey.com>
3463
3464 * compile/compile-cplus-types.c
3465 (compile_cplus_convert_struct_or_union): Use std::vector.
3466 (compile_cplus_convert_func): Likewise.
3467 * compile/compile-c-types.c (convert_func): Use std::vector.
3468
5dd918d9
TT
34692020-09-21 Tom Tromey <tromey@adacore.com>
3470
3471 * sparc-tdep.c (sparc32_skip_prologue): Use
3472 skip_prologue_using_sal.
3473
5486c517
TT
34742020-09-19 Tom Tromey <tom@tromey.com>
3475
3476 * symfile.c (add_section_size_callback): Remove.
3477 (load_one_section): Rename from load_section_callback. Change
3478 parameters.
3479 (generic_load): Use foreach.
3480
8a6bb1d1
TT
34812020-09-19 Tom Tromey <tom@tromey.com>
3482
3483 * exec.c (add_to_section_table): Remove.
3484 (build_section_table): Use foreach.
3485
08f93a1a
TT
34862020-09-19 Tom Tromey <tom@tromey.com>
3487
3488 * elfread.c (elf_locate_sections): Change parameters.
3489 (elf_symfile_read): Use foreach.
3490
03cd72b8
TT
34912020-09-19 Tom Tromey <tom@tromey.com>
3492
3493 * cli/cli-dump.c (struct callback_data): Remove.
3494 (restore_one_section): Rename from restore_section_callback.
3495 Change parameters.
3496 (restore_binary_file): Change parameters.
3497 (restore_command): Use foreach.
3498
f4f2b85f
TT
34992020-09-19 Tom Tromey <tom@tromey.com>
3500
3501 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
3502 (gcore_copy_callback): Likewise.
3503 (gcore_memory_sections): Use foreach.
3504
b35c1d1c
TT
35052020-09-19 Tom Tromey <tom@tromey.com>
3506
3507 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
3508 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
3509 parameters.
3510 (generic_elf_osabi_sniffer): Use foreach.
3511 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
3512 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
3513
5bb6e9dd
TT
35142020-09-19 Tom Tromey <tom@tromey.com>
3515
3516 * dwarf2/read.c (locate_dwz_sections): Change parameters.
3517 (dwarf2_get_dwz_file): Use foreach.
3518 (dwarf2_locate_dwo_sections): Change parameters.
3519 (open_and_init_dwo_file): Use foreach.
3520 (dwarf2_locate_common_dwp_sections): Change parameters.
3521 (open_and_init_dwp_file): Use foreach.
3522
ad7277da
TT
35232020-09-19 Tom Tromey <tom@tromey.com>
3524
3525 * symfile.h: (find_lowest_section): Don't declare.
3526 * symfile.c (find_lowest_section): Now static. Change
3527 parameters.
3528 (struct place_section_arg): Remove.
3529 (place_section): Change parameters.
3530 (addr_info_make_relative): Use foreach.
3531 (symfile_dummy_outputs): Remove.
3532 (default_symfile_relocate): Use foreach.
3533
cb814f2e
TT
35342020-09-19 Tom Tromey <tom@tromey.com>
3535
3536 * objfiles.c (add_to_objfile_sections): Rename from
3537 add_to_objfile_sections_full.
3538 (add_to_objfile_sections): Remove.
3539 (build_objfile_section_table): Use foreach.
3540
3cabfd26
TT
35412020-09-19 Tom Tromey <tom@tromey.com>
3542
3543 * stap-probe.c (get_stap_base_address_1): Remove.
3544 (get_stap_base_address): Use foreach.
3545
1ce51eb5
TT
35462020-09-19 Tom Tromey <tom@tromey.com>
3547
3548 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
3549 parameters.
3550 (gdb_bfd_close_or_warn): Use foreach.
3551
a190fabb
TT
35522020-09-19 Tom Tromey <tom@tromey.com>
3553
3554 * corelow.c (add_to_thread_list): Change parameters.
3555 (core_target_open): Use foreach.
3556
cafb0d81
TT
35572020-09-19 Tom Tromey <tom@tromey.com>
3558
3559 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
3560 existing function.
3561
c8d5abea
AB
35622020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3563
3564 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
3565 for arrays.
3566
6d816919
AB
35672020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3568
3569 * eval.c: Remove 'f-lang.h' include.
3570 (value_f90_subarray): Moved to f-lang.c.
3571 (eval_call): Renamed to...
3572 (evaluate_subexp_do_call): ...this, is no longer static, header
3573 comment moved into header file.
3574 (evaluate_funcall): Update call to eval_call.
3575 (skip_undetermined_arglist): Moved to f-lang.c.
3576 (fortran_value_subarray): Likewise.
3577 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3578 moved to evaluate_subexp_f.
3579 (calc_f77_array_dims): Moved to f-lang.c
3580 * expprint.c (print_subexp_funcall): New function.
3581 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3582 moved to print_subexp_f, OP_FUNCALL uses new function.
3583 (dump_subexp_body_funcall): New function.
3584 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
3585 moved to dump_subexp_f, OP_FUNCALL uses new function.
3586 * expression.h (evaluate_subexp_do_call): Declare.
3587 * f-lang.c (value_f90_subarray): Moved from eval.c.
3588 (skip_undetermined_arglist): Likewise.
3589 (calc_f77_array_dims): Likewise.
3590 (fortran_value_subarray): Likewise.
3591 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
3592 (operator_length_f): Likewise.
3593 (print_subexp_f): Likewise.
3594 (dump_subexp_body_f): Likewise.
3595 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
3596 declaration of this operation to here.
3597 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
3598 support moved to operator_length_f.
3599 * parser-defs.h (dump_subexp_body_funcall): Declare.
3600 (print_subexp_funcall): Declare.
3601 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
3602 fortran-operator.def.
3603
8c37706a
AB
36042020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3605
3606 * eval.c (fortran_value_subarray): New function, content is taken
3607 from...
3608 (evaluate_subexp_standard): ...here, in two places. Now arrays
3609 and strings both call the new function.
3610 (calc_f77_array_dims): Add header comment, handle strings.
3611
14f9473c
VC
36122020-09-18 Victor Collod <vcollod@nvidia.com>
3613
3614 PR gdb/26635
3615 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
3616 (i386_analyze_prologue): Call i386_skip_endbr.
3617
b60cea74
TT
36182020-09-18 Tom Tromey <tromey@adacore.com>
3619
3620 * windows-nat.c (struct windows_nat_target) <wait>: Update.
3621 (windows_nat_target::wait): Update.
3622 * target/wait.h (enum target_wait_flag): New. Use
3623 DEF_ENUM_FLAGS_TYPE.
3624 * target/target.h (target_wait): Change type of options.
3625 * target.h (target_options_to_string, default_target_wait):
3626 Update.
3627 (struct target_ops) <wait>: Change type of options.
3628 * target.c (target_wait, default_target_wait, do_option): Change
3629 type of "options".
3630 (target_options_to_string): Likewise.
3631 * target-delegates.c: Rebuild.
3632 * target-debug.h (target_debug_print_target_wait_flags): Rename
3633 from target_debug_print_options.
3634 * sol-thread.c (class sol_thread_target) <wait>: Update.
3635 (sol_thread_target::wait): Update.
3636 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
3637 (rs6000_nat_target::wait): Update.
3638 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
3639 Update.
3640 (remote_target::wait_ns, remote_target::wait_as): Change type of
3641 "options".
3642 (remote_target::wait): Update.
3643 * remote-sim.c (struct gdbsim_target) <wait>: Update.
3644 (gdbsim_target::wait): Update.
3645 * record-full.c (class record_full_base_target) <wait>: Update.
3646 (record_full_wait_1): Change type of "options".
3647 (record_full_base_target::wait): Update.
3648 * record-btrace.c (class record_btrace_target) <wait>: Update.
3649 (record_btrace_target::wait): Update.
3650 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
3651 Update.
3652 (ravenscar_thread_target::wait): Update.
3653 * procfs.c (class procfs_target) <wait>: Update.
3654 (procfs_target::wait): Update.
3655 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
3656 * obsd-nat.c (obsd_nat_target::wait): Update.
3657 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
3658 (nto_procfs_target::wait): Update.
3659 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
3660 * nbsd-nat.c (nbsd_wait): Change type of "options".
3661 (nbsd_nat_target::wait): Update.
3662 * linux-thread-db.c (class thread_db_target) <wait>: Update.
3663 (thread_db_target::wait): Update.
3664 * linux-nat.h (class linux_nat_target) <wait>: Update.
3665 * linux-nat.c (linux_nat_target::wait): Update.
3666 (linux_nat_wait_1): Update.
3667 * infrun.c (do_target_wait_1, do_target_wait): Change type of
3668 "options".
3669 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
3670 * inf-ptrace.c (inf_ptrace_target::wait): Update.
3671 * go32-nat.c (struct go32_nat_target) <wait>: Update.
3672 (go32_nat_target::wait): Update.
3673 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
3674 * gnu-nat.c (gnu_nat_target::wait): Update.
3675 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
3676 * fbsd-nat.c (fbsd_nat_target::wait): Update.
3677 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
3678 * darwin-nat.c (darwin_nat_target::wait): Update.
3679 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
3680 (bsd_uthread_target::wait): Update.
3681 * aix-thread.c (class aix_thread_target) <wait>: Update.
3682 (aix_thread_target::wait): Update.
3683
0295dde6
AB
36842020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
3685
3686 * compile/compile-object-run.c (create_copied_type_recursive): New
3687 function.
3688 (compile_object_run): Use new function.
3689
d3483b43
JT
36902020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
3691
3692 * NEWS: Mention x86_64 Cygwin core file support.
3693
e7d612ad
JT
36942020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3695
3696 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
3697 (core_process_module_section): Handle NOTE_INFO_MODULE64.
3698
aff9d387
JT
36992020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3700
62a5151b
JT
3701 * windows-tdep.h: Add prototypes.
3702 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
3703 (i386_windows_core_pid_to_str): Move and rename ...
3704 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
3705 (windows_core_pid_to_str): ... and here.
3706 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
3707
37082020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
3709 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
3710 (amd64_windows_init_abi_common): ... and register.
3711
7d155da3
JT
37122020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3713
3714 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
3715 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
3716
e8ef12b9
PA
37172020-09-18 Pedro Alves <pedro@palves.net>
3718
3719 PR gdb/26631
3720 * thread.c (thread_find_command): Switch inferior before calling
3721 target methods.
3722
c1e1314d
TT
37232020-09-17 Tom Tromey <tromey@adacore.com>
3724
3725 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
3726 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
3727 (tdesc_arch_data_up): New typedef.
3728 (tdesc_use_registers, tdesc_data_alloc): Update.
3729 (tdesc_data_cleanup): Don't declare.
3730 * target-descriptions.c (tdesc_data_alloc): Return a
3731 tdesc_arch_data_up.
3732 (tdesc_arch_data_deleter::operator()): Rename from
3733 tdesc_data_cleanup. Change argument type.
3734 (tdesc_use_registers): Change early_data to an rvalue reference.
3735 (tdesc_use_registers): Don't use delete.
3736 * sparc-tdep.c (sparc32_gdbarch_init): Update.
3737 * s390-tdep.c (s390_gdbarch_init): Update.
3738 * rx-tdep.c (rx_gdbarch_init): Update.
3739 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3740 * riscv-tdep.c (riscv_gdbarch_init): Update.
3741 * or1k-tdep.c (or1k_gdbarch_init): Update.
3742 * nios2-tdep.c (nios2_gdbarch_init): Update.
3743 * nds32-tdep.c (nds32_gdbarch_init): Update.
3744 * mips-tdep.c (mips_gdbarch_init): Update.
3745 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
3746 * m68k-tdep.c (m68k_gdbarch_init): Update.
3747 * i386-tdep.c (i386_gdbarch_init): Update.
3748 * arm-tdep.c (arm_gdbarch_init): Update.
3749 * arc-tdep.c (arc_tdesc_init): Update.
3750 (arc_gdbarch_init): Update.
3751 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
3752
0363df3d
HD
37532020-09-17 Hannes Domani <ssbssa@yahoo.de>
3754
3755 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
3756 for WOW64 processes.
3757
280a9412
TT
37582020-09-17 Tom Tromey <tom@tromey.com>
3759
3760 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
3761
6108fd18
TT
37622020-09-17 Tom Tromey <tom@tromey.com>
3763
3764 * value.c (preserve_values): Update.
3765 * python/py-type.c (save_objfile_types): Update.
3766 * guile/scm-type.c (save_objfile_types): Update.
3767 * gdbtypes.h (create_copied_types_hash): Return htab_up.
3768 * gdbtypes.c (create_copied_types_hash): Return htab_up.
3769 * compile/compile-object-run.c (compile_object_run): Update.
3770
fa9b1164
TT
37712020-09-17 Tom Tromey <tom@tromey.com>
3772
3773 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
3774 Remove.
3775 <m_table>: Now htab_up.
3776 * typeprint.c (typedef_hash_table::recursively_update)
3777 (typedef_hash_table::add_template_parameters)
3778 (typedef_hash_table::typedef_hash_table): Update.
3779 (typedef_hash_table::~typedef_hash_table): Remove.
3780 (typedef_hash_table::typedef_hash_table)
3781 (typedef_hash_table::find_global_typedef)
3782 (typedef_hash_table::find_typedef): Update.
3783
eb53f105
TT
37842020-09-17 Tom Tromey <tom@tromey.com>
3785
3786 * target-descriptions.c (tdesc_use_registers): Use htab_up.
3787
7a8a5d47
TT
37882020-09-17 Tom Tromey <tom@tromey.com>
3789
3790 * linespec.c (class decode_compound_collector)
3791 <~decode_compound_collector>: Remove.
3792 <m_unique_syms>: Now htab_up.
3793 (decode_compound_collector::operator ()): Update.
3794 (class symtab_collector) <~symtab_collector>: Remove.
3795 <m_symtab_table>: Now htab_up.
3796 (symtab_collector::operator ()): Update.
3797
99032cfc
TT
37982020-09-17 Tom Tromey <tom@tromey.com>
3799
3800 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
3801 (filename_seen_cache::clear): Update.
3802 (~filename_seen_cache): Remove.
3803 (filename_seen_cache::seen): Update.
3804 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
3805 htab_up.
3806 <~filename_seen_cache>: Remove.
3807 <traverse>: Update.
3808
32580f6d
TT
38092020-09-17 Tom Tromey <tom@tromey.com>
3810
3811 * completer.c (completion_tracker::discard_completions)
3812 (completion_tracker::~completion_tracker)
3813 (completion_tracker::maybe_add_completion)
3814 (completion_tracker::remove_completion)
3815 (completion_tracker::recompute_lowest_common_denominator)
3816 (completion_tracker::build_completion_result): Update.
3817 * completer.h (class completion_tracker) <have_completions>:
3818 Update.
3819 <m_entries_hash>: Now htab_up.
3820
c1fb9836
TT
38212020-09-17 Tom Tromey <tom@tromey.com>
3822
3823 * breakpoint.c (ambiguous_names_p): Use htab_up.
3824
88f07206
TT
38252020-09-17 Tom Tromey <tom@tromey.com>
3826
3827 * auto-load.c (struct auto_load_pspace_info)
3828 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
3829 <loaded_script_files, loaded_script_texts>: Change type to
3830 htab_up.
3831 (~auto_load_pspace_info) Remove.
3832 (init_loaded_scripts_info, maybe_add_script_file)
3833 (maybe_add_script_text, auto_load_info_scripts): Update.
3834
9519b2ee
TT
38352020-09-17 Tom Tromey <tromey@adacore.com>
3836
3837 * c-exp.y (name_obstack): Now static.
3838
d2cd4113
CC
38392020-09-17 Chungyi Chi <demonic@csie.io>
3840
3841 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
3842
b650a282
SM
38432020-09-16 Simon Marchi <simon.marchi@efficios.com>
3844
3845 * breakpoint.h (init_catchpoint): Change int parameter to bool.
3846 (add_solib_catchpoint): Likewise.
3847 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
3848 to bool.
3849 (add_solib_catchpoint): Change int parameter/variable to bool.
3850 (catch_load_or_unload): Likewise.
3851 (init_catchpoint): Likewise.
3852 (create_fork_vfork_event_catchpoint): Likewise.
3853 (catch_fork_command_1): Likewise.
3854 (catch_exec_command_1): Likewise.
3855
4d0bcfcf
SM
38562020-09-16 Simon Marchi <simon.marchi@efficios.com>
3857
3858 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
3859 Change instance_flags to m_instance_flags.
3860
fe830662
TT
38612020-09-16 Tom Tromey <tromey@adacore.com>
3862
3863 PR gdb/26598:
3864 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
3865
fe5ddfc3
JB
38662020-09-16 John Baldwin <jhb@FreeBSD.org>
3867
3868 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
3869 PL_FLAG_EXEC.
3870 (fbsd_nat_target::insert_exec_catchpoint)
3871 (fbsd_nat_target::remove_exec_catchpoint): Always define.
3872 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
3873 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
3874
e911c666
JB
38752020-09-16 John Baldwin <jhb@FreeBSD.org>
3876
3877 * configure.ac: Remove check for kinfo_getvmmap().
3878 * configure, config.in: Regenerate.
3879 * fbsd-nat.c (fbsd_read_mapping): Remove
3880 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
3881 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
3882 kinfo_get_vmmap() are always present.
3883
1f17d372
JB
38842020-09-16 John Baldwin <jhb@FreeBSD.org>
3885
3886 * fbsd-nat.c: Always include support for
3887 TARGET_OBJECT_SIGNAL_INFO.
3888
bcb1da7f
JB
38892020-09-16 John Baldwin <jhb@FreeBSD.org>
3890
3891 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
3892 sysctl and remove procfs fallback.
3893
5515f729
JB
38942020-09-16 John Baldwin <jhb@FreeBSD.org>
3895
3896 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
3897 * fbsd-nat.h: Likewise.
3898
da1df1db
TBA
38992020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3900
3901 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
3902 argument.
3903
0e25e767
AB
39042020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3905
3906 * ada-lang.c (ada_language_data): Delete.
3907 (ada_language): Remove references to ada_language_data.
3908 * c-lang.c (c_language_data): Delete.
3909 (c_language): Remove references to c_language_data.
3910 (cplus_language_data): Delete.
3911 (cplus_language): Remove references to cplus_language_data.
3912 (asm_language_data): Delete.
3913 (asm_language): Remove references to asm_language_data.
3914 (minimal_language_data): Delete.
3915 (minimal_language): Remove references to minimal_language_data.
3916 * d-lang.c (d_language_data): Delete.
3917 (d_language): Remove references to d_language_data.
3918 * f-lang.c (f_language_data): Delete.
3919 (f_language): Remove references to f_language_data.
3920 * go-lang.c (go_language_data): Delete.
3921 (go_language): Remove references to go_language_data.
3922 * language.c (unknown_language_data): Delete.
3923 (unknown_language): Remove references to unknown_language_data.
3924 (auto_language_data): Delete.
3925 (auto_language): Remove references to auto_language_data.
3926 * language.h (language_data): Delete struct.
3927 (language_defn): No longer inherit from language_data.
3928 * m2-lang.c (m2_language_data): Delete.
3929 (m2_language): Remove references to m2_language_data.
3930 * objc-lang.c (objc_language_data): Delete.
3931 (objc_language): Remove references to objc_language_data.
3932 * opencl-lang.c (opencl_language_data): Delete.
3933 (opencl_language): Remove references to opencl_language_data.
3934 * p-lang.c (pascal_language_data): Delete.
3935 (pascal_language): Remove references to pascal_language_data.
3936 * rust-lang.c (rust_language_data): Delete.
3937 (rust_language): Remove references to rust_language_data.
3938
b7c6e27d
AB
39392020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3940
3941 * ada-lang.c (ada_language_data): Remove la_op_print_tab
3942 initializer.
3943 (ada_language::opcode_print_table): New member function.
3944 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
3945 (c_language::opcode_print_table): New member function.
3946 (cplus_language_data): Remove la_op_print_tab initializer.
3947 (cplus_language::opcode_print_table): New member function.
3948 (asm_language_data): Remove la_op_print_tab initializer.
3949 (asm_language::opcode_print_table): New member function.
3950 (minimal_language_data): Remove la_op_print_tab initializer.
3951 (minimal_language::opcode_print_table): New member function.
3952 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
3953 (d_language::opcode_print_table): New member function.
3954 * expprint.c (print_subexp_standard): Update call to
3955 opcode_print_table.
3956 (op_string): Likewise.
3957 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
3958 (f_language::opcode_print_table): New member function.
3959 * go-lang.c (go_language_data): Remove la_op_print_tab
3960 initializer.
3961 (go_language::opcode_print_table): New member function.
3962 * language.c (unknown_language_data): Remove la_op_print_tab
3963 initializer.
3964 (unknown_language::opcode_print_table): New member function.
3965 (auto_language_data): Remove la_op_print_tab initializer.
3966 (auto_language::opcode_print_table): New member function.
3967 * language.h (language_data): Remove la_op_print_tab field.
3968 (language_defn::opcode_print_table): Declare new member function.
3969 * m2-lang.c (m2_language_data): Remove la_op_print_tab
3970 initializer.
3971 (m2_language::opcode_print_table): New member function.
3972 * objc-lang.c (objc_language_data): Remove la_op_print_tab
3973 initializer.
3974 (objc_language::opcode_print_table): New member function.
3975 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
3976 initializer.
3977 (opencl_language::opcode_print_table): New member function.
3978 * p-lang.c (pascal_language_data): Remove la_op_print_tab
3979 initializer.
3980 (pascal_language::opcode_print_table): New member function.
3981 * rust-lang.c (rust_language_data): Remove la_op_print_tab
3982 initializer.
3983 (rust_language::opcode_print_table): New member function.
3984
5aba6ebe
AB
39852020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3986
3987 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
3988 (ada_language::expression_ops): New member function.
3989 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
3990 (c_language::expression_ops): New member function.
3991 (cplus_language_data): Remove la_exp_desc initializer.
3992 (cplus_language::expression_ops): New member function.
3993 (asm_language_data): Remove la_exp_desc initializer.
3994 (asm_language::expression_ops): New member function.
3995 (minimal_language_data): Remove la_exp_desc initializer.
3996 (minimal_language::expression_ops): New member function.
3997 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
3998 (d_language::expression_ops): New member function.
3999 * eval.c (evaluate_subexp): Update call to expression_ops.
4000 * expprint.c (print_subexp): Likewise.
4001 (op_name): Likewise.
4002 (dump_subexp_body): Likewise.
4003 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
4004 (f_language::expression_ops): New member function.
4005 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
4006 (go_language::expression_ops): New member function.
4007 * language.c (language_defn::expression_ops): New function.
4008 (unknown_language_data): Remove la_exp_desc initializer.
4009 (auto_language_data): Likewise.
4010 * language.h (language_data): Remove la_exp_desc field.
4011 (language_defn::expression_ops): Declare new member function.
4012 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
4013 (m2_language::expression_ops): New member function.
4014 * objc-lang.c (objc_language_data): Remove la_exp_desc
4015 initializer.
4016 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
4017 initializer.
4018 (opencl_language::expression_ops): New member function.
4019 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
4020 * parse.c (operator_length): Update call to expression_ops.
4021 (exp_iterate): Likewise.
4022 * rust-lang.c (rust_language_data): Remove la_exp_desc
4023 initializer.
4024 (ruse_language::expression_ops): New member function.
4025
b63a3f3f
AB
40262020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4027
4028 * ada-lang.c (ada_language_data): Remove la_varobj_ops
4029 initializer.
4030 (ada_language::varobj_ops): New member function.
4031 * c-lang.c (c_language_data): Remove la_varobj_ops
4032 initializer.
4033 (cplus_language_data): Likewise.
4034 (cplus_language::varobj_ops): New member function.
4035 (asm_language_data): Remove la_varobj_ops initializer.
4036 (minimal_language_data): Likewise.
4037 * d-lang.c (d_language_data): Likewise.
4038 * f-lang.c (f_language_data): Likewise.
4039 * go-lang.c (go_language_data): Likewise.
4040 * language.c (language_defn::varobj_ops): New function.
4041 (unknown_language_data): Remove la_varobj_ops
4042 initializer.
4043 (auto_language_data): Likewise.
4044 * language.h (language_data): Remove la_varobj_ops field.
4045 (language_defn::varobj_ops): Declare new member function.
4046 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
4047 * objc-lang.c (objc_language_data): Likewise.
4048 * opencl-lang.c (opencl_language_data): Likewise.
4049 * p-lang.c (pascal_language_data): Likewise.
4050 * rust-lang.c (rust_language_data): Likewise.
4051 * varobj.c (varobj_create): Update call to varobj_ops.
4052 * varobj.h (default_varobj_ops): Delete define.
4053
1ac14a04
AB
40542020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4055
4056 * ada-lang.c (ada_language_data): Remove la_macro_expansion
4057 initializer.
4058 * c-lang.c (c_language_data): Likewise.
4059 (c_language::macro_expansion): New member function.
4060 (cplus_language_data): Likewise.
4061 (cplus_language::macro_expansion): New member function.
4062 (asm_language_data): Likewise.
4063 (asm_language::macro_expansion): New member function.
4064 (minimal_language_data): Likewise.
4065 (minimal_language::macro_expansion): New member function.
4066 * d-lang.c (d_language_data): Remove la_macro_expansion
4067 initializer.
4068 * f-lang.c (f_language_data): Likewise.
4069 * go-lang.c (go_language_data): Likewise.
4070 * language.c (unknown_language_data): Likewise.
4071 (auto_language_data): Likewise.
4072 * language.h (language_data): Remove la_macro_expansion field.
4073 (language_defn::macro_expansion): New member function.
4074 * m2-lang.c (m2_language_data): Remove la_macro_expansion
4075 initializer.
4076 * objc-lang.c (objc_language_data): Likewise.
4077 (objc_language::macro_expansion): New member function.
4078 * opencl-lang.c (opencl_language_data): Likewise.
4079 (opencl_language::macro_expansion): New member function.
4080 * p-lang.c (pascal_language_data): Remove la_macro_expansion
4081 initializer.
4082 * rust-lang.c (rust_language_data): Likewise.
4083 * symtab.c (default_collect_symbol_completion_matches_break_on):
4084 Update call to macro_expansion.
4085
3a3440fb
AB
40862020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4087
4088 * ada-lang.c (ada_language_data): Remove la_array_ordering
4089 initializer.
4090 * c-lang.c (c_language_data): Likewise.
4091 (cplus_language_data): Likewise.
4092 (asm_language_data): Likewise.
4093 (minimal_language_data): Likewise.
4094 * d-lang.c (d_language_data): Likewise.
4095 * dwarf2/read.c (read_array_order): Update for call to
4096 array_ordering.
4097 * f-lang.c (f_language_data): Remove la_array_ordering
4098 initializer.
4099 (f_language::array_ordering): New member function.
4100 * go-lang.c (go_language_data): Remove la_array_ordering
4101 initializer.
4102 * language.c (unknown_language_data): Likewise.
4103 (auto_language_data): Likewise.
4104 * language.h (language_data): Delete la_array_ordering field.
4105 (language_defn::array_ordering): New member function.
4106 * m2-lang.c (m2_language_data): Remove la_array_ordering
4107 initializer.
4108 * objc-lang.c (objc_language_data): Likewise.
4109 * opencl-lang.c (opencl_language_data): Likewise.
4110 * p-lang.c (pascal_language_data): Likewise.
4111 * rust-lang.c (rust_language_data): Likewise.
4112
0d201fa4
AB
41132020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4114
4115 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
4116 initializer.
4117 * c-lang.c (c_language_data): Likewise.
4118 (cplus_language_data): Likewise.
4119 (asm_language_data): Likewise.
4120 (minimal_language_data): Likewise.
4121 * d-lang.c (d_language_data): Likewise.
4122 * f-lang.c (f_language_data): Likewise.
4123 (f_language::case_sensitivity): New member function.
4124 * go-lang.c (go_language_data): Remove la_case_sensitivity
4125 initializer.
4126 * language.c (enum case_mode): Moved here from language.h.
4127 (case_mode): Make static.
4128 (show_case_command): Update for case_sensitivity being a method.
4129 (set_case_command): Likewise.
4130 (set_range_case): Likewise.
4131 (unknown_language_data): Remove la_case_sensitivity initializer.
4132 (auto_language_data): Likewise.
4133 * language.h (case_mode): Delete, move enum declaration to
4134 language.c.
4135 (language_data): Delete la_case_sensitivity field.
4136 (language_defn::case_sensitivity): New member function.
4137 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
4138 initializer.
4139 * objc-lang.c (objc_language_data): Likewise.
4140 * opencl-lang.c (opencl_language_data): Likewise.
4141 * p-lang.c (pascal_language_data): Likewise.
4142 * rust-lang.c (rust_language_data): Likewise.
4143
efdf6a73
AB
41442020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4145
4146 * ada-lang.c (ada_language_data): Remove la_range_check
4147 initializer.
4148 * c-lang.c (c_language_data): Likewise.
4149 (cplus_language_data): Likewise.
4150 (asm_language_data): Likewise.
4151 (minimal_language_data): Likewise.
4152 * d-lang.c (d_language_data): Likewise.
4153 * f-lang.c (f_language_data): Likewise.
4154 (f_language::range_checking_on_by_default): New member function.
4155 * go-lang.c (go_language_data): Remove la_range_check initializer.
4156 * language.c (enum range_mode): Moved here from language.h.
4157 (range_mode): Made static.
4158 (show_range_command): Update to use
4159 range_checking_on_by_default.
4160 (set_range_command): Likewise.
4161 (set_range_case): Likewise.
4162 (unknown_language_data): Remove la_range_check initializer.
4163 (auto_language_data): Likewise.
4164 * language.h (range_mode): Delete. Enum definition moved to
4165 language.c.
4166 (language_data): Remove la_range_check field.
4167 (language_defn::range_checking_on_by_default): New member
4168 function.
4169 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
4170 (m2_language::range_checking_on_by_default): New member function.
4171 * objc-lang.c (objc_language_data): Remove la_range_check
4172 initializer.
4173 * opencl-lang.c (opencl_language_data): Likewise.
4174 * p-lang.c (pascal_language_data): Likewise.
4175 (pascal_language::range_checking_on_by_default): New member
4176 function.
4177 * rust-lang.c (rust_language_data): Remove la_range_check
4178 initializer.
4179 (rust_language::range_checking_on_by_default): New member
4180 function.
4181
bf92aec5
AB
41822020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4183
4184 * dwarf2/read.c (dwarf2_physname): Remove special case for
4185 language_go.
4186 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
4187 member function.
4188
d3355e4d
AB
41892020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4190
4191 * ada-lang.c (ada_language_data): Remove
4192 la_store_sym_names_in_linkage_form_p initializer.
4193 (ada_language::store_sym_names_in_linkage_form_p): New member
4194 function.
4195 * c-lang.c (c_language_data): Remove
4196 la_store_sym_names_in_linkage_form_p initializer.
4197 (c_language::store_sym_names_in_linkage_form_p): New member
4198 function.
4199 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
4200 initializer.
4201 (asm_language_data): Likewise.
4202 (asm_language::store_sym_names_in_linkage_form_p): New member
4203 function.
4204 (minimal_language_data): Remove
4205 la_store_sym_names_in_linkage_form_p initializer.
4206 (minimal_language::store_sym_names_in_linkage_form_p): New member
4207 function.
4208 * d-lang.c (d_language_data): Remove
4209 la_store_sym_names_in_linkage_form_p initializer.
4210 * dwarf2/read.c (dwarf2_physname): Update call to
4211 store_sym_names_in_linkage_form_p.
4212 * f-lang.c (f_language_data): Remove
4213 la_store_sym_names_in_linkage_form_p initializer.
4214 * go-lang.c (go_language_data): Remove
4215 la_store_sym_names_in_linkage_form_p initializer.
4216 * language.c (unknown_language_data): Remove
4217 la_store_sym_names_in_linkage_form_p initializer.
4218 (unknown_language::store_sym_names_in_linkage_form_p): New member
4219 function.
4220 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
4221 initializer.
4222 (auto_language::store_sym_names_in_linkage_form_p): New member
4223 function.
4224 * language.h (language_data): Remove
4225 la_store_sym_names_in_linkage_form_p member variable.
4226 (language_defn::store_sym_names_in_linkage_form_p): New member
4227 function.
4228 * m2-lang.c (m2_language_data): Remove
4229 la_store_sym_names_in_linkage_form_p initializer.
4230 * objc-lang.c (objc_language_data): Likewise.
4231 * opencl-lang.c (opencl_language_data): Likewise.
4232 * p-lang.c (pascal_language_data): Likewise.
4233 * rust-lang.c (rust_language_data): Likewise.
4234
22c12a6c
AB
42352020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4236
4237 * ada-lang.c (ada_language_data): Remove string_lower_bound
4238 initializer.
4239 * c-lang.c (c_language_data): Likewise.
4240 (cplus_language_data): Likewise.
4241 (asm_language_data): Likewise.
4242 (minimal_language_data): Likewise.
4243 * d-lang.c (d_language_data): Likewise.
4244 * f-lang.c (f_language_data): Likewise.
4245 * go-lang.c (go_language_data): Likewise.
4246 * language.c (unknown_language_data): Likewise.
4247 (auto_language_data): Likewise.
4248 * language.h (language_data): Remove string_lower_bound field.
4249 (language_defn::string_lower_bound): New member function.
4250 * m2-lang.c (m2_language_data): Remove string_lower_bound
4251 initializer.
4252 (m2_language::string_lower_bound): New member function.
4253 * objc-lang.c (objc_language_data): Remove string_lower_bound
4254 initializer.
4255 * opencl-lang.c (opencl_language_data): Likewise.
4256 * p-lang.c (pascal_language_data): Likewise.
4257 * rust-lang.c (rust_language_data): Likewise.
4258 * valops.c (value_cstring): Update call to string_lower_bound.
4259 (value_string): Likewise.
4260 * value.c (allocate_repeated_value): Likewise.
4261
1c236ddd
AB
42622020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4263
4264 * valops.c (value_repeat): Fix incorrect argument name in comment.
4265
67bd3fd5
AB
42662020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4267
4268 * ada-lang.c (ada_language_data): Remove c_style_arrays
4269 initializer.
4270 (ada_language::c_style_arrays_p): New member fuction.
4271 * c-lang.c (c_language_data): Remove c_style_arrays
4272 initializer.
4273 (cplus_language_data): Likewise.
4274 (asm_language_data): Likewise.
4275 (minimal_language_data): Likewise.
4276 * d-lang.c (d_language_data): Likewise.
4277 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
4278 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
4279 (f_language::c_style_arrays_p): New member function.
4280 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
4281 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
4282 * language.c (unknown_language_data): Remove c_style_arrays
4283 initializer.
4284 (auto_language_data): Likewise.
4285 * language.h (language_data): Remove c_style_arrays field.
4286 (language_defn::c_style_arrays_p): New member function.
4287 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
4288 (m2_language::c_style_arrays_p): New member function.
4289 * objc-lang.c (objc_language_data): Remove c_style_arrays
4290 initializer.
4291 * opencl-lang.c (opencl_language_data): Likewise.
4292 * p-lang.c (pascal_language_data): Likewise.
4293 * rust-lang.c (rust_language_data): Likewise.
4294 * valarith.c (value_subscript): Update call to c_style_arrays_p,
4295 and update local variable to a bool.
4296 * valops.c (value_cast): Update call to c_style_arrays_p.
4297 (value_array): Likewise.
4298 * value.c (coerce_array): Likewise.
4299
85967615
AB
43002020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4301
4302 * ada-lang.c (ada_language_data): Remove la_language initializer.
4303 * c-lang.c (c_language_data): Likewise.
4304 (cplus_language_data): Likewise.
4305 (asm_language_data): Likewise.
4306 (minimal_language_data): Likewise.
4307 * d-lang.c (d_language_data): Likewise.
4308 * f-lang.c (f_language_data): Likewise.
4309 * go-lang.c (go_language_data): Likewise.
4310 * language.c (unknown_language_data): Likewise.
4311 (auto_language_data): Likewise.
4312 * language.h (language_data): Remove la_language field.
4313 (language_defn::language_defn): Initialise la_language field.
4314 (language_defn::la_language): New member variable.
4315 * m2-lang.c (m2_language_data): Remove la_language field.
4316 * objc-lang.c (objc_language_data): Likewise.
4317 * opencl-lang.c (opencl_language_data): Likewise.
4318 * p-lang.c (pascal_language_data): Likewise.
4319 * rust-lang.c (rust_language_data): Likewise.
4320
e171d6f1
AB
43212020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4322
4323 * ada-lang.c (ada_extensions): Delete, moved into
4324 ada_language::filename_extensions.
4325 (ada_language_data): Remove la_filename_extensions initializer.
4326 (ada_language::filename_extensions): New member function.
4327 * c-lang.c (c_extensions): Delete, moved into
4328 c_language::filename_extensions.
4329 (c_language_data): Remove la_filename_extensions initializer.
4330 (c_language::filename_extensions): New member function.
4331 (cplus_extensions): Delete, moved into
4332 cplus_language::filename_extensions.
4333 (cplus_language_data): Remove la_filename_extensions initializer.
4334 (cplus_language::filename_extensions): New member function.
4335 (asm_extensions): Delete, moved into
4336 asm_language::filename_extensions.
4337 (asm_language_data): Remove la_filename_extensions initializer.
4338 (asm_language::filename_extensions): New member function.
4339 (minimal_language_data): Remove la_filename_extensions
4340 initializer.
4341 * d-lang.c (d_extensions): Delete, moved into
4342 d_language::filename_extensions.
4343 (d_language_data): Remove la_filename_extensions initializer.
4344 (d_language::filename_extensions): New member function.
4345 * f-lang.c (f_extensions): Delete, moved into
4346 f_language::filename_extensions.
4347 (f_language_data): Remove la_filename_extensions initializer.
4348 (f_language::filename_extensions): New member function.
4349 * go-lang.c (go_language_data): Remove la_filename_extensions
4350 initializer.
4351 * language.c (add_set_language_command): Update now that
4352 filename_extensions returns a vector.
4353 (unknown_language_data): Remove la_filename_extensions
4354 initializer.
4355 (auto_language_data): Likewise.
4356 * language.h (language_data): Remove la_filename_extensions field.
4357 (language_defn::filename_extensions): New member function.
4358 * m2-lang.c (m2_language_data): Remove la_filename_extensions
4359 initializer.
4360 * objc-lang.c (objc_extensions): Delete, moved into
4361 objc_language::filename_extensions.
4362 (objc_language_data): Remove la_filename_extensions initializer.
4363 (objc_language::filename_extensions): New member function.
4364 * opencl-lang.c (opencl_language_data): Remove
4365 la_filename_extensions initializer.
4366 * p-lang.c (pascal_extensions): Delete, moved into
4367 pascal_language::filename_extensions.
4368 (pascal_language_data): Remove la_filename_extensions initializer.
4369 (pascal_language::filename_extensions): New member function.
4370 * rust-lang.c (rust_extensions): Delete, moved into
4371 rust_language::filename_extensions.
4372 (rust_language_data): Remove la_filename_extensions initializer.
4373 (rust_language::filename_extensions): New member function.
4374 * symfile.c (add_filename_language): Add new assert.
4375
6f7664a9
AB
43762020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4377
4378 * ada-lang.c (ada_language_data): Remove la_name and
4379 la_natural_name initializers.
4380 (ada_language::name): New member function.
4381 (ada_language::natural_name): New member function.
4382 * c-lang.c (c_language_data): Remove la_name and
4383 la_natural_name initializers.
4384 (c_language::name): New member function.
4385 (c_language::natural_name): New member function.
4386 (cplus_language_data): Remove la_name and
4387 la_natural_name initializers.
4388 (cplus_language::name): New member function.
4389 (cplus_language::natural_name): New member function.
4390 (asm_language_data): Remove la_name and
4391 la_natural_name initializers.
4392 (asm_language::name): New member function.
4393 (asm_language::natural_name): New member function.
4394 (minimal_language_data): Remove la_name and
4395 la_natural_name initializers.
4396 (minimal_language::name): New member function.
4397 (minimal_language::natural_name): New member function.
4398 * compile/compile.c (compile_to_object): Update call to
4399 lanugage_defn::name.
4400 * d-lang.c (d_language_data): Remove la_name and
4401 la_natural_name initializers.
4402 (d_language::name): New member function.
4403 (d_language::natural_name): New member function.
4404 * expprint.c (print_subexp_standard): Update call to
4405 language_defn::name.
4406 (dump_raw_expression): Likewise
4407 (dump_prefix_expression): Likewise.
4408 * f-lang.c (f_language_data): Remove la_name and
4409 la_natural_name initializers.
4410 (f_language::name): New member function.
4411 (f_language::natural_name): New member function.
4412 * go-lang.c (go_language_data): Remove la_name and
4413 la_natural_name initializers.
4414 (go_language::name): New member function.
4415 (go_language::natural_name): New member function.
4416 * language.c (show_language_command): Update call to
4417 language_defn::name.
4418 (set_language_command): Likewise.
4419 (language_enum): Likewise.
4420 (language_str): Likewise.
4421 (add_set_language_command): Likewise, use
4422 language_defn::natural_name in the doc string.
4423 (unknown_language_data): Remove la_name and
4424 la_natural_name initializers.
4425 (unknown_language::name): New member function.
4426 (unknown_language::natural_name): New member function.
4427 (auto_language_data): Remove la_name and
4428 la_natural_name initializers.
4429 (auto_language::name): New member function.
4430 (auto_language::natural_name): New member function.
4431 (language_lookup_primitive_type_as_symbol): Update call to
4432 language_defn::name.
4433 * language.h (language_data): Remove la_name and la_natural_name
4434 member variables.
4435 (language_defn::name): New member function.
4436 (language_defn::natural_name): New member function.
4437 * m2-lang.c (m2_language_data): Remove la_name and
4438 la_natural_name initializers.
4439 (m2_language::name): New member function.
4440 (m2_language::natural_name): New member function.
4441 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
4442 language_defn::natural_name.
4443 * objc-lang.c (objc_language_data): Remove la_name and
4444 la_natural_name initializers.
4445 (objc_language::name): New member function.
4446 (objc_language::natural_name): New member function.
4447 * opencl-lang.c (opencl_language_data): Remove la_name and
4448 la_natural_name initializers.
4449 (opencl_language::name): New member function.
4450 (opencl_language::natural_name): New member function.
4451 * p-lang.c (pascal_language_data): Remove la_name and
4452 la_natural_name initializers.
4453 (pascal_language::name): New member function.
4454 (pascal_language::natural_name): New member function.
4455 * rust-lang.c (rust_language_data): Remove la_name and
4456 la_natural_name initializers.
4457 (rust_language::name): New member function.
4458 (rust_language::natural_name): New member function.
4459 * symtab.c (lookup_language_this): Update call to
4460 language_defn::name.
4461
5bae7c4e
AB
44622020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4463
4464 * ada-lang.c (ada_language_data): Remove la_name_of_this
4465 initializer.
4466 * ax-gdb.c (gen_expr): Update call to name_of_this.
4467 * c-exp.y (classify_name): Likewise.
4468 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
4469 (cplus_language_data): Likewise.
4470 (cplus_language::name_of_this): New member function.
4471 (asm_language_data): Remove la_name_of_this initializer.
4472 (minimal_language_data): Likewise.
4473 * d-lang.c (d_language_data): Likewise.
4474 (d_language::name_of_this): New member function.
4475 * expprint.c (print_subexp_standard): Update call to name_of_this.
4476 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
4477 * go-lang.c (go_language_data): Likewise.
4478 * language.c (unknown_language_data): Likewise.
4479 (unknown_language::name_of_this): New member function.
4480 (auto_language_data): Remove la_name_of_this initializer.
4481 (auto_language::name_of_this): New member function.
4482 * language.h (language_data): Delete la_name_of_this member
4483 variable.
4484 (language_defn::name_of_this): New member function.
4485 * m2-lang.c (m2_language_data): Remove la_name_of_this
4486 initializer.
4487 * objc-lang.c (objc_language_data): Likewise.
4488 (objc_language::name_of_this): New member function.
4489 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
4490 initializer.
4491 * p-lang.c (pascal_language_data): Likewise.
4492 (pascal_language::name_of_this): New member function.
4493 * rust-lang.c (rust_language_data): Remove la_name_of_this
4494 initializer.
4495 * symtab.c (lookup_language_this): Update call to name_of_this.
4496 (lookup_symbol_aux): Likewise.
4497 * valops.c (value_of_this): Likewise.
4498
22e3f3ed
AB
44992020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4500
4501 * ada-lang.c (ada_language_data): Remove
4502 la_struct_too_deep_ellipsis initializer.
4503 (ada_language::struct_too_deep_ellipsis): New member function.
4504 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
4505 initializer.
4506 (cplus_language_data): Likewise.
4507 (asm_language_data): Likewise.
4508 (minimal_language_data): Likewise.
4509 * cp-valprint.c (cp_print_value): Update call to
4510 struct_too_deep_ellipsis.
4511 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
4512 initializer.
4513 * f-lang.c (f_language_data): Likewise.
4514 (f_language::struct_too_deep_ellipsis): New member function.
4515 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
4516 initializer.
4517 * language.c (unknown_language_data): Likewise.
4518 (auto_language_data): Likewise.
4519 * language.h (language_data): Delete la_struct_too_deep_ellipsis
4520 member variable.
4521 (language_defn::struct_too_deep_ellipsis): New member function.
4522 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
4523 initializer.Q
4524 * objc-lang.c (objc_language_data): Likewise.
4525 * opencl-lang.c (opencl_language_data): Likewise.
4526 * p-lang.c (pascal_language_data): Likewise.
4527 * rust-lang.c (rust_language_data): Likewise.
4528 * valprint.c (val_print_check_max_depth): Update call to
4529 struct_too_deep_ellipsis.
4530
ed29e1c7
FW
45312020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
4532
4533 * MAINTAINERS (Write After Approval): Add myself.
4534
12d8f940
TT
45352020-09-15 Tom Tromey <tom@tromey.com>
4536
4537 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
4538 Remove.
4539
6b5a7bc7
TT
45402020-09-15 Tom Tromey <tom@tromey.com>
4541
4542 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
4543 and TYPE_CODE_METHODPTR cases.
4544 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
4545 (c_value_print_inner): Update.
4546 * valprint.c (generic_value_print_memberptr): New function, from
4547 c_value_print_memberptr.
4548 (generic_value_print): Use it. Call cplus_print_method_ptr.
4549
47f0e2ff
TT
45502020-09-15 Tom Tromey <tromey@adacore.com>
4551
4552 * python/python-internal.h (PyInt_FromLong): Remove define.
4553 * python/py-value.c (convert_value_from_python): Use
4554 gdb_py_object_from_longest.
4555 * python/py-type.c (typy_get_code): Use
4556 gdb_py_object_from_longest.
4557 * python/py-symtab.c (salpy_get_line): Use
4558 gdb_py_object_from_longest.
4559 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
4560 gdb_py_object_from_longest.
4561 * python/py-record.c (recpy_gap_reason_code): Use
4562 gdb_py_object_from_longest.
4563 * python/py-record-btrace.c (recpy_bt_insn_size)
4564 (recpy_bt_func_level, btpy_list_count): Use
4565 gdb_py_object_from_longest.
4566 * python/py-infthread.c (gdbpy_create_ptid_object): Use
4567 gdb_py_object_from_longest. Fix error handling.
4568 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
4569 gdb_py_object_from_longest.
4570 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
4571 gdb_py_object_from_longest.
4572 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
4573 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
4574 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
4575
512116ce
TT
45762020-09-15 Tom Tromey <tromey@adacore.com>
4577
4578 * python/python.c (gdbpy_parameter_value): Use
4579 gdb_py_object_from_ulongest.
4580
4ab1029c
TT
45812020-09-15 Tom Tromey <tromey@adacore.com>
4582
4583 * python/py-infevents.c (create_register_changed_event_object):
4584 Use gdb_py_object_from_longest.
4585 * python/py-exitedevent.c (create_exited_event_object): Use
4586 gdb_py_object_from_longest.
4587
062534d4
TT
45882020-09-15 Tom Tromey <tromey@adacore.com>
4589
4590 * python/python.c (gdbpy_parameter_value): Use
4591 gdb_py_object_from_longest.
4592 * python/py-type.c (convert_field, typy_range): Use
4593 gdb_py_object_from_longest.
4594 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
4595 gdb_py_object_from_longest.
4596 * python/py-lazy-string.c (stpy_get_length): Use
4597 gdb_py_object_from_longest.
4598 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
4599 gdb_py_object_from_longest.
4600 * python/py-infevents.c (create_memory_changed_event_object): Use
4601 gdb_py_object_from_longest.
4602 * python/py-inferior.c (infpy_get_num): Use
4603 gdb_py_object_from_longest.
4604 (infpy_get_pid): Likewise.
4605
d1cab987
TT
46062020-09-15 Tom Tromey <tromey@adacore.com>
4607
4608 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
4609 defines.
4610 * python/py-value.c (valpy_long): Use
4611 gdb_py_object_from_ulongest.
4612 * python/py-symtab.c (salpy_get_pc): Use
4613 gdb_py_object_from_ulongest.
4614 (salpy_get_last): Likewise.
4615 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
4616 gdb_py_object_from_ulongest.
4617 * python/py-lazy-string.c (stpy_get_address): Use
4618 gdb_py_object_from_ulongest.
4619 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
4620 * python/py-arch.c (archpy_disassemble): Use
4621 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
4622 error handling.
4623
4bde49dc
TT
46242020-09-15 Tom Tromey <tromey@adacore.com>
4625
4626 * python/python-internal.h (gdb_py_long_from_longest): Remove
4627 defines.
4628 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
4629 * python/py-type.c (convert_field, typy_get_sizeof): Use
4630 gdb_py_object_from_longest.
4631 * python/py-record-btrace.c (btpy_list_index): Use
4632 gdb_py_object_from_longest.
4633
37431074
TT
46342020-09-15 Tom Tromey <tromey@adacore.com>
4635
4636 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
4637 * python/py-record.c (recpy_element_number): Use
4638 gdb_py_object_from_longest.
4639 (recpy_gap_number): Likewise.
4640
cbe25684
TT
46412020-09-15 Tom Tromey <tromey@adacore.com>
4642
4643 * top.c (ui::ui): Update.
4644 (highest_ui_num): Remove.
4645 * top.h (struct ui) <num>: Remove.
4646
db92ac45
TT
46472020-09-15 Tom Tromey <tromey@adacore.com>
4648
4649 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
4650 * ui-style.c (ansi_regex_text): Now array.
4651 * rust-exp.y (number_regex_text): Now array.
4652 * linespec.c (linespec_quote_characters): Now array.
4653 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
4654 Now arrays.
4655
d2b31b67
SM
46562020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4657
4658 * debuginfod-support.c (debuginfod_client_deleter): New.
4659 (debuginfod_client_up): New.
4660 (debuginfod_init): Return debuginfod_client_up.
4661 (debuginfod_source_query): Adjust.
4662 (debuginfod_debuginfo_query): Adjust.
4663
3246bd8e
SM
46642020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4665
4666 * debuginfod-support.c (debuginfod_source_query): Use
4667 make_unique_xstrdup.
4668
10242f36
SM
46692020-09-14 Simon Marchi <simon.marchi@efficios.com>
4670
4671 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
4672 with `type::instance_flags`.
4673
e1044e6a
MM
46742020-09-14 Michael Mullin <masmullin@gmail.com>
4675
4676 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
4677 Remove baton parameter.
4678
04902b09
PA
46792020-09-14 Pedro Alves <pedro@palves.net>
4680
4681 * Makefile.in (SELFTESTS_SRCS): Add
4682 unittests/enum-flags-selftests.c.
4683 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
4684 btrace_function_flags instead of enum btrace_function_flag.
4685 * compile/compile-c-types.c (convert_qualified): Use
4686 enum_flags::raw.
4687 * compile/compile-cplus-symbols.c (convert_one_symbol)
4688 (convert_symbol_bmsym):
4689 * compile/compile-cplus-types.c (compile_cplus_convert_method)
4690 (compile_cplus_convert_struct_or_union_methods)
4691 (compile_cplus_instance::convert_qualified_base):
4692 * go-exp.y (parse_string_or_char): Add cast to int.
4693 * unittests/enum-flags-selftests.c: New file.
4694 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
4695 type to btrace_thread_flags from btrace_thread_flag.
4696 (record_btrace_cancel_resume, record_btrace_step_thread): Change
4697 local's type to btrace_thread_flags from btrace_thread_flag. Add
4698 cast in DEBUG call.
4699
69896a2c
PA
47002020-09-14 Pedro Alves <pedro@palves.net>
4701
4702 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
4703 * gdbtypes.c (address_space_name_to_int): Rename to ...
4704 (address_space_name_to_type_instance_flags): ... this.
4705 (address_space_int_to_name): Rename to ...
4706 (address_space_type_instance_flags_to_name): ... this.
4707 * gdbtypes.h (address_space_name_to_int): Rename to ...
4708 (address_space_name_to_type_instance_flags): ... this.
4709 (address_space_int_to_name): Rename to ...
4710 (address_space_type_instance_flags_to_name): ... this.
4711 * type-stack.c (type_stack::insert): Adjust to rename.
4712 * type-stack.h (type_stack::insert): Likewise.
4713
314ad88d
PA
47142020-09-14 Pedro Alves <pedro@palves.net>
4715 Andrew Burgess <andrew.burgess@embecosm.com>
4716
4717 * avr-tdep.c (avr_address_class_type_flags): Return
4718 type_instance_flags.
4719 (avr_address_class_type_flags_to_name): Take a
4720 type_instance_flags.
4721 (avr_address_class_name_to_type_flags): Return bool and take a
4722 type_instance_flags.
4723 * d-lang.c (build_d_types): Use type::set_instance_flags.
4724 * ft32-tdep.c (ft32_address_class_type_flags): Return
4725 type_instance_flags.
4726 (ft32_address_class_type_flags_to_name): Take a
4727 type_instance_flags.
4728 (ft32_address_class_name_to_type_flags): Return bool and take a
4729 type_instance_flags.
4730 (ft32_gdbarch_init): Use type::set_instance_flags.
4731 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
4732 * gdbarch.h, gdbarch.c: Regenerate.
4733 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
4734 (address_class_name_to_type_flags): Use type_instance_flags and
4735 bool.
4736 * gdbtypes.c (address_space_name_to_int)
4737 (address_space_int_to_name, make_qualified_type): Use
4738 type_instance_flags.
4739 (make_qualified_type): Use type_instance_flags and
4740 type::set_instance_flags.
4741 (make_type_with_address_space, make_cv_type, make_vector_type)
4742 (check_typedef): Use type_instance_flags.
4743 (recursive_dump_type): Cast type_instance_flags to unsigned for
4744 printing.
4745 (copy_type_recursive): Use type::set_instance_flags.
4746 (gdbtypes_post_init): Use type::set_instance_flags.
4747 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
4748 <m_instance_flags>: ... this.
4749 <instance_flags, set_instance_flags>: New methods.
4750 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
4751 (SET_TYPE_INSTANCE_FLAGS): New.
4752 (address_space_name_to_int, address_space_int_to_name)
4753 (make_type_with_address_space): Pass flags using
4754 type_instance_flags instead of int.
4755 * stabsread.c (cleanup_undefined_types_noname): Use
4756 type::set_instance_flags.
4757 * s390-tdep.c (s390_address_class_type_flags): Return
4758 type_instance_flags.
4759 (s390_address_class_type_flags_to_name): Take a
4760 type_instance_flags.
4761 (s390_address_class_name_to_type_flags): Return bool and take a
4762 type_instance_flags.
4763 * type-stack.c (type_stack::follow_types): Use
4764 type_instance_flags.
4765 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
4766
27087b7f
TT
47672020-09-14 Tom Tromey <tromey@adacore.com>
4768
4769 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
4770 * x86-tdep.c (x86_is_thunk_register_name)
4771 (x86_in_indirect_branch_thunk): Update.
4772 * sparc64-tdep.c (sparc64_fpu_register_names)
4773 (sparc64_cp0_register_names, sparc64_register_names)
4774 (sparc64_pseudo_register_names): Now const.
4775 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
4776 cp0_registers_num>: Now const.
4777 * sparc-tdep.c (sparc_core_register_names)
4778 (sparc32_fpu_register_names, sparc32_cp0_register_names)
4779 (sparc32_pseudo_register_names): Now const.
4780 (validate_tdesc_registers): Update.
4781 * rust-lang.c (rust_extensions): Now const.
4782 * p-lang.c (p_extensions): Now const.
4783 * objc-lang.c (objc_extensions): Now const.
4784 * nto-tdep.c (nto_thread_state_str): Now const.
4785 * moxie-tdep.c (moxie_register_names): Now const.
4786 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
4787 Now const.
4788 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
4789 (mips_linux_reg_names): Now const.
4790 (mips_gdbarch_init): Update.
4791 * microblaze-tdep.c (microblaze_register_names): Now const.
4792 * m68k-tdep.c (m68k_register_names): Now const.
4793 * m32r-tdep.c (m32r_register_names): Now const.
4794 * ia64-tdep.c (ia64_register_names): Now const.
4795 * i386-tdep.h (struct gdbarch_tdep) <register_names,
4796 ymmh_register_names, ymm16h_regnum, mpx_register_names,
4797 k_register_names, zmmh_register_names, xmm_avx512_register_names,
4798 ymm_avx512_register_names, pkeys_register_names>: Now const.
4799 * i386-tdep.c (i386_register_names, i386_zmm_names)
4800 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
4801 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
4802 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
4803 * f-lang.c (f_extensions): Now const.
4804 * d-lang.c (d_extensions): Now const.
4805 * csky-tdep.c (csky_register_names): Now const.
4806 * charset.c (default_charset_names, charset_enum): Now const.
4807 (_initialize_charset): Update.
4808 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
4809 const.
4810 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
4811 (bsd_uthread_solib_loaded): Update.
4812 (bsd_uthread_state): Now const.
4813 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
4814 (amd64_ymm_avx512_names, amd64_ymmh_names)
4815 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
4816 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
4817 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
4818 (amd64_dword_names): Now const.
4819 * agent.c (can_use_agent_enum): Now const.
4820 * ada-tasks.c (task_states, long_task_states): Now const.
4821 * ada-lang.c (known_runtime_file_name_patterns)
4822 (known_auxiliary_function_name_patterns, attribute_names)
4823 (standard_exc, ada_extensions): Now const.
4824
89806626
SM
48252020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4826
4827 * bcache.h (struct bcache) <bcache>: Remove constructor.
4828 <m_hash_function, m_compare_function>: Remove.
4829 <~bcache>: Make virtual.
4830 <compare>: Remove static method, introduce virtual method.
4831 <default_hash>: Remove.
4832 <hash>: New virtual method.
4833 * bcache.c (bcache::expand_hash_table): Update.
4834 (bcache::insert): Update.
4835 (bcache::hash): New.
4836 (bcache::compare): Update comment and parameter names.
4837 * gdbtypes.c (types_deeply_equal): Update.
4838 * psymtab.h (struct psymbol_bcache): New struct.
4839 (class psymtab_storage) <psymtab_storage>: Make default.
4840 <psymbol_cache>: Change type to psymbol_bcache.
4841 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
4842 (psymbol_hash): Change to...
4843 (psymbol_bcache::hash): ... this.
4844 (psymbol_compare): Change to...
4845 (psymbol_bcache::compare): ... this.
4846
677c92fe
SM
48472020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4848
4849 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
4850 checking for initial lwp.
4851
3eba3a01
TT
48522020-09-14 Tom Tromey <tromey@adacore.com>
4853
4854 * m68k-tdep.c (m68k_extract_return_value): Use
4855 pointer_result_regnum.
4856 (m68k_store_return_value): Likewise.
4857 (m68k_reg_struct_return_p): Handle vectors and arrays.
4858 (m68k_return_value): Handle arrays.
4859 (m68k_svr4_return_value): Fix single-element aggregate handling.
4860 Handle long double. Adjust for embedded ABI.
4861 (m68k_svr4_init_abi): Set pointer_result_regnum.
4862 (m68k_embedded_init_abi): New function.
4863 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
4864 (m68k_osabi_sniffer): New function.
4865 (_initialize_m68k_tdep): Register osabi sniffer.
4866 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
4867 member.
4868
33f4dd48
SM
48692020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4870
4871 * xml-support.c (xml_fetch_content_from_file): Replace xfree
4872 with gdb::unique_xmalloc_ptr<char>.
4873
8400a90d
SM
48742020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4875
4876 * xml-support.h (xml_fetch_another): Change type to be a
4877 function_view.
4878 (xml_process_xincludes): Remove baton parameter.
4879 (xml_fetch_content_from_file): Change baton parameter to
4880 dirname.
4881 * xml-support.c (struct xinclude_parsing_data)
4882 <xinclude_parsing_data>: Remove baton parameter.
4883 <fetcher_baton>: Remove.
4884 (xinclude_start_include): Adjust.
4885 (xml_process_xincludes): Adjust.
4886 (xml_fetch_content_from_file): Replace baton parameter with
4887 dirname.
4888 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
4889 (xml_init_syscalls_info): Use a lambda.
4890 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
4891 (file_read_description_xml): Use a lambda.
4892 (fetch_available_features_from_target): Change baton parameter
4893 to target_ops.
4894 (target_read_description_xml): Use a lambda.
4895 (target_fetch_description_xml): Use a lambda.
4896 (string_read_description_xml): Update.
4897
04f5bab2
SM
48982020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4899
4900 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
4901 uses with type::endianity_is_not_default.
4902
db558e34
SM
49032020-09-14 Simon Marchi <simon.marchi@efficios.com>
4904
4905 * gdbtypes.h (struct type) <endianity_is_not_default,
4906 set_endianity_is_not_default>: New methods.
4907 (TYPE_ENDIANITY_NOT_DEFAULT): Use
4908 type::endianity_is_not_default, change all write call sites to
4909 use type::set_endianity_is_not_default.
4910
22c4c60c
SM
49112020-09-14 Simon Marchi <simon.marchi@efficios.com>
4912
4913 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
4914 uses with type::is_fixed_instance.
4915
9cdd0d12
SM
49162020-09-14 Simon Marchi <simon.marchi@efficios.com>
4917
4918 * gdbtypes.h (struct type) <is_fixed_instance,
4919 set_is_fixed_instance>: New methods.
4920 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
4921 write call sites to use type::set_is_fixed_instance.
4922
0becda7a
SM
49232020-09-14 Simon Marchi <simon.marchi@efficios.com>
4924
4925 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
4926 uses with type::is_gnu_ifunc.
4927
03cc7249
SM
49282020-09-14 Simon Marchi <simon.marchi@efficios.com>
4929
4930 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
4931 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
4932 use type::set_is_gnu_ifunc.
4933
3f46044c
SM
49342020-09-14 Simon Marchi <simon.marchi@efficios.com>
4935
4936 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
4937 uses with type::stub_is_supported.
4938
9baccff6
SM
49392020-09-14 Simon Marchi <simon.marchi@efficios.com>
4940
4941 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
4942 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
4943 use type::set_stub_is_supported.
4944
bd63c870
SM
49452020-09-14 Simon Marchi <simon.marchi@efficios.com>
4946
4947 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
4948 uses with type::is_vector.
4949
2062087b
SM
49502020-09-14 Simon Marchi <simon.marchi@efficios.com>
4951
4952 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
4953 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
4954 use type::set_is_vector.
4955
a409645d
SM
49562020-09-14 Simon Marchi <simon.marchi@efficios.com>
4957
4958 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
4959 uses with type::has_varargs.
4960
1d6286ed
SM
49612020-09-14 Simon Marchi <simon.marchi@efficios.com>
4962
4963 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
4964 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
4965 use type::set_has_varargs.
4966
7f9f399b
SM
49672020-09-14 Simon Marchi <simon.marchi@efficios.com>
4968
4969 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
4970 uses with type::is_prototyped.
4971
27e69b7a
SM
49722020-09-14 Simon Marchi <simon.marchi@efficios.com>
4973
4974 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
4975 New methods.
4976 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
4977 call sites to use type::set_is_prototyped.
4978
d2183968
SM
49792020-09-14 Simon Marchi <simon.marchi@efficios.com>
4980
4981 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
4982 uses with type::target_is_stub.
4983
8f53807e
SM
49842020-09-14 Simon Marchi <simon.marchi@efficios.com>
4985
4986 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
4987 New methods.
4988 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
4989 sites to use type::set_target_is_stub.
4990
e46d3488
SM
49912020-09-14 Simon Marchi <simon.marchi@efficios.com>
4992
4993 * gdbtypes.h (TYPE_STUB): Remove, replace all
4994 uses with type::is_stub.
4995
b4b73759
SM
49962020-09-14 Simon Marchi <simon.marchi@efficios.com>
4997
4998 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
4999 (TYPE_STUB): Use type::is_stub, change all write call sites to
5000 use type::set_is_stub.
5001
20ce4123
SM
50022020-09-14 Simon Marchi <simon.marchi@efficios.com>
5003
5004 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
5005 type::has_no_signedness.
5006
15152a54
SM
50072020-09-14 Simon Marchi <simon.marchi@efficios.com>
5008
5009 * gdbtypes.h (struct type) <has_no_signedness,
5010 set_has_no_signedness>: New methods.
5011 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
5012 call sites to use type::set_has_no_signedness.
5013
c6d940a9
SM
50142020-09-14 Simon Marchi <simon.marchi@efficios.com>
5015
5016 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
5017 type::is_unsigned.
5018
653223d3
SM
50192020-09-14 Simon Marchi <simon.marchi@efficios.com>
5020
5021 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
5022 methods.
5023 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
5024 sites to use type::set_is_unsigned.
5025
55ea94da 50262020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 5027 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 5028
e851246a
SM
5029 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
5030 pointer and stack frame offset when unwinding.
55ea94da 5031
6791b117
PA
50322020-09-13 Pedro Alves <pedro@palves.net>
5033
5034 * NEWS: Document "-break-insert --qualified".
5035 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
5036
77f2120b
PA
50372020-09-13 Pedro Alves <pedro@palves.net>
5038
5039 * linespec.c (classify_mtype, compare_msyms): Delete.
5040 (search_minsyms_for_name): Remove classification logic. Instead
5041 filter out trampoline symbols if we also found an external
5042 function of the same name.
5043
ed6a896c
JB
50442020-09-13 Joel Brobecker <brobecker@adacore.com>
5045
5046 * NEWS: Create a new section for the next release branch.
5047 Rename the section of the current branch, now that it has
5048 been cut.
5049
32aea73e
JB
50502020-09-13 Joel Brobecker <brobecker@adacore.com>
5051
5052 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
5053 * version.in: Bump version to 11.0.50.DATE-git.
5054
8087c3fa
JB
50552020-09-12 Joel Brobecker <brobecker@adacore.com>
5056
5057 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
5058
2a67f09d
FW
50592020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
5060 Felix Willgerodt <Felix.Willgerodt@intel.com>
5061
5062 * gdbarch.sh: Added bfloat16 type.
5063 * gdbarch.c: Regenerated.
5064 * gdbarch.h: Regenerated.
5065 * gdbtypes.c (floatformats_bfloat16): New struct.
5066 (gdbtypes_post_init): Add builtin_bfloat16.
5067 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
5068 (floatformats_bfloat16): New struct.
5069 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
5070 (i386_ymm_type): Add field "v16_bfloat16"
5071 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
5072 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
5073 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
5074 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
5075 * features/i386/64bit-avx512.xml: Add bfloat16 type.
5076 * features/i386/64bit-avx512.c: Regenerated.
5077 * features/i386/64bit-sse.xml: Add bfloat16 type.
5078 * features/i386/64bit-sse.c: Regenerated.
5079
1347d111
FW
50802020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
5081
5082 * i386-tdep.c (i386_zmm_type): Fix field names.
5083 (i386_ymm_type): Fix field names.
5084
7a4e8e7d
TBA
50852020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5086
5087 * breakpoint.c: Fix typo in the help message of the
5088 "set breakpoint condition-evaluation" command.
5089
cf4ac4be
KR
50902020-09-10 Kamil Rytarowski <n54@gmx.com>
5091
5092 * nbsd-nat.c: Include "nat/netbsd-nat.h".
5093 * (nbsd_nat_target::pid_to_exec_file)
5094 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
5095 (nbsd_nat_target::post_startup_inferior)
5096 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
5097 (nbsd_add_threads): Switch local code to common gdb/nat functions.
5098 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
5099 * (nbsd_thread_lister): Remove.
5100
f404573e
KR
51012020-09-10 Kamil Rytarowski <n54@gmx.com>
5102
5103 * fork-inferior.c (startup_inferior): Avoid double free.
5104
1ccb2c17
KR
51052020-09-10 Kamil Rytarowski <n54@gmx.com>
5106
5107 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
5108 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
5109
feedfcc7
KR
51102020-09-10 Kamil Rytarowski <n54@gmx.com>
5111
5112 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
5113 * netbsd-nat.c: Include <sys/ptrace.h>.
5114 * (netbsd_nat::enable_proc_events): Add.
5115
c489f8c6
KR
51162020-09-10 Kamil Rytarowski <n54@gmx.com>
5117
5118 * netbsd-nat.h: Include "gdbsupport/function-view.h".
5119 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5120 (netbsd_nat::for_each_thread): Add.
5121 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
5122 "gdbsupport/common-debug.h".
5123 * (netbsd_nat::netbsd_thread_lister)
5124 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5125 (netbsd_nat::for_each_thread): Add.
5126
330662f6
KR
51272020-09-10 Kamil Rytarowski <n54@gmx.com>
5128
5129 * netbsd-nat.h: Include <unistd.h>.
5130 * (netbsd_nat::pid_to_exec_file): Add.
5131 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
5132 * (netbsd_nat::pid_to_exec_file) Add.
5133
70b67307
KR
51342020-09-10 Kamil Rytarowski <n54@gmx.com>
5135
5136 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
5137
99cf6da6
KR
51382020-09-10 Kamil Rytarowski <n54@gmx.com>
5139
5140 * netbsd-nat.h: New file.
5141 * netbsd-nat.c: Likewise.
5142
1b788fb6
TT
51432020-09-09 Tom Tromey <tromey@adacore.com>
5144
5145 * ada-lang.c (remove_extra_symbols): Do not increment when
5146 removing an element
5147
03b0a45f
TT
51482020-09-08 Tom Tromey <tromey@adacore.com>
5149
5150 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
5151
3cae4447
TT
51522020-09-08 Tom Tromey <tromey@adacore.com>
5153
5154 PR win32/25302:
5155 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
5156 (gdb_bfd_init_data): New function.
5157 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
5158
7f08fd51
TBA
51592020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5160
5161 * infrun.c (fetch_inferior_event): Use
5162 `switch_to_target_no_thread` to switch the target.
5163
3e6ff933
TT
51642020-09-06 Tom Tromey <tom@tromey.com>
5165
5166 * symfile.h (dwarf2_free_objfile): Don't declare.
5167
e56798df
AKS
51682020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5169
5170 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
5171 to match 16 byte real/complex type generated by Flang compiler.
5172
8f5c6526
TV
51732020-09-03 Tom de Vries <tdevries@suse.de>
5174
5175 PR breakpoint/26546
5176 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
5177 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
5178
c5065df0
SM
51792020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
5180
5181 * maint.c (index_digits): New function.
5182 (struct maint_print_section_data): Remove.
5183 (print_bfd_section_info): Remove print_data parameter, add arg
5184 and index_digits.
5185 (print_objfile_section_info): Likewise.
5186 (print_bfd_section_info_maybe_relocated): Likewise (plus
5187 objfile).
5188 (maintenance_info_sections): Adjust calls.
5189
02c6f3f1
TT
51902020-09-02 Tom Tromey <tromey@adacore.com>
5191
5192 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
5193 for null pointers.
5194 (ada_varobj_adjust_for_child_access): Special-case null pointers.
5195
ef5e5b0b
SM
51962020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
5197
5198 * bcache.h (struct bcache) <insert>: Change type of `added` to
5199 pointer to bool.
5200 * bcache.c (bcache::insert): Likewise.
5201 * gdbtypes.c (check_types_worklist): Adjust.
5202 * psymtab.c (add_psymbol_to_bcache): Adjust.
5203
973695d6
KB
52042020-08-31 Kevin Buettner <kevinb@redhat.com>
5205
5206 * corelow.c (unordered_set): Include.
5207 (class core_target): Add field 'm_core_unavailable_mappings'.
5208 (core_target::build_file_mappings): Print only one warning
5209 per inaccessible file. Add unavailable/broken mappings
5210 to m_core_unavailable_mappings.
5211 (core_target::xfer_partial): Call...
5212 (core_target::xfer_memory_via_mappings): New method.
5213
264fc0e2
SM
52142020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5215
5216 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
5217 type to bool.
5218
2de01bdb
SM
52192020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5220
5221 * dwarf2/read.c (struct field_info): Fix indentation.
5222
f3bd50f1
SM
52232020-08-31 Simon Marchi <simon.marchi@efficios.com>
5224
5225 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
5226 ordering in comment.
5227 * frame.c (frame_id_eq): Fix indentation.
5228
22b9b4b0
SL
52292020-08-31 Scott Linder <scott@scottlinder.com>
5230 Simon Marchi <simon.marchi@efficios.com>
5231
5232 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
5233 inline frame ids in outer frame.
5234
84154d16
SM
52352020-08-31 Simon Marchi <simon.marchi@efficios.com>
5236
5237 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
5238 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
5239 (outer_frame_id): Use FID_STACK_OUTER instead of
5240 FID_STACK_INVALID.
5241 (frame_id_p): Don't check for outer_frame_id.
5242
8efaf6b3
SM
52432020-08-31 Simon Marchi <simon.marchi@efficios.com>
5244
5245 * frame-unwind.c (frame_unwind_got_optimized): Don't set
5246 regnum/frame in value. Call allocate_value_lazy.
5247 * frame.c (frame_unwind_register_value): Use
5248 val_print_not_saved.
5249
fe1fe7ea
SM
52502020-08-31 Simon Marchi <simon.marchi@efficios.com>
5251
5252 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
5253
f7c7700d
PA
52542020-08-29 Pedro Alves <pedro@palves.net>
5255
5256 * progspace.c (print_program_space): Use all_inferiors. Switch to
5257 the inferior before calling target_pid_to_str.
5258
e0814aae
TT
52592020-08-28 Tom Tromey <tom@tromey.com>
5260
5261 * xcoffread.c (xcoff_end_psymtab): Update comment.
5262 * dbxread.c (dbx_end_psymtab): Update comment.
5263
626d2320
TV
52642020-08-28 Tom de Vries <tdevries@suse.de>
5265
5266 PR breakpoint/26544
5267 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
5268 event_location.
5269 (create_breakpoint): Same.
5270 (base_breakpoint_decode_location): Same.
5271 (bkpt_create_sals_from_location): Same.
5272 (bkpt_decode_location): Same.
5273 (bkpt_probe_create_sals_from_location): Same.
5274 (bkpt_probe_decode_location): Same.
5275 (tracepoint_create_sals_from_location): Same.
5276 (tracepoint_decode_location): Same.
5277 (tracepoint_probe_decode_location): Same.
5278 (strace_marker_create_sals_from_location): Same.
5279 (strace_marker_decode_location): Same.
5280 (create_sals_from_location_default): Same.
5281 (decode_location_default): Same.
5282 * breakpoint.h (struct breakpoint_ops): Same.
5283 (create_breakpoint): Same.
5284 * linespec.h (decode_line_full): Same.
5285 * linespec.c (decode_line_full): Same. Throw error if
5286 result.size () == 0.
5287
df631783
PA
52882020-08-27 Pedro Alves <pedro@palves.net>
5289
5290 PR gdb/26524
5291 * breakpoint.c (until_break_fsm) <location_breakpoint,
5292 caller_breakpoint>: Delete fields.
5293 <breakpoints>: New field.
5294 <until_break_fsm>: Adjust to save a breakpoint vector instead of
5295 two individual breakpoints.
5296 (until_break_fsm::should_stop): Loop over breakpoints in the
5297 breakpoint vector.
5298 (until_break_fsm::clean_up): Adjust to clear the breakpoints
5299 vector.
5300 (until_break_command): Handle location expanding into multiple
5301 sals.
5302
b2b38aa4
PA
53032020-08-27 Pedro Alves <pedro@palves.net>
5304
5305 PR gdb/26523
5306 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
5307 bp_until breakpoints user-specified locations. Update intro
5308 comment.
5309
b886559f
SM
53102020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
5311
5312 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
5313 gdb_bfd_sections): New.
5314 * maint.c (print_bfd_section_info): Change param type to
5315 maint_print_section_data.
5316 (print_objfile_section_info): Likewise.
5317 (print_bfd_section_info_maybe_relocated): Likewise.
5318 (maintenance_info_sections): Use gdb_bfd_sections.
5319
4c6e63bf
SV
53202020-08-25 Shahab Vahedi <shahab@synopsys.com>
5321
5322 * MAINTAINERS: Add ARC target and maintainer.
5323
8d7f0635
AK
53242020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
5325
5326 * configure.tgt: ARC support for GNU/Linux.
5327 * Makefile.in (ALL_TARGET_OBJS): Likewise.
5328 * arc-linux-tdep.c: New file.
5329 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
5330 * arc-tdep.c (arc_write_pc): Use it.
5331
fdd8731b
SV
53322020-08-25 Shahab Vahedi <shahab@synopsys.com>
5333
5334 * arc-tdep.c (arc_check_for_hardware_loop): New.
5335 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
5336
22459524
SV
53372020-08-25 Shahab Vahedi <shahab@synopsys.com>
5338
5339 * arc-tdep.h: Include "gdbarch.h".
5340
995d3a19
SV
53412020-08-25 Shahab Vahedi <shahab@synopsys.com>
5342
5343 * arch/arc.h
5344 (arc_gdbarch_features): New class to stir the selection of target XML.
5345 (arc_create_target_description): Use FEATURES to choose XML target.
5346 (arc_lookup_target_description): Use arc_create_target_description
5347 to create _new_ target descriptions or return the already created
5348 ones if the FEATURES is the same.
5349 * arch/arc.c: Implementation of prototypes described above.
5350 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
5351 (arc_gdbarch_features_init): Initialize the FEATURES struct.
5352 * arc-tdep.c (*_feature_name): Make feature names consistent.
5353 (arc_register_feature): A new struct to hold information about
5354 registers of a particular target/feature.
5355 (arc_check_tdesc_feature): Check if XML provides registers in
5356 compliance with ARC_REGISTER_FEATURE structs.
5357 (arc_update_acc_reg_names): Add aliases for r58 and r59.
5358 (determine_*_reg_feature_set): Which feature name to look for.
5359 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
5360 (mach_type_to_arc_isa): Convert from a set of binutils machine types
5361 to expected ISA enums to be used in arc_gdbarch_features structs.
5362 * features/Makefile (FEATURE_XMLFILES): Add new files.
5363 * gdb/features/arc/v1-aux.c: New file.
5364 * gdb/features/arc/v1-aux.xml: Likewise.
5365 * gdb/features/arc/v1-core.c: Likewise.
5366 * gdb/features/arc/v1-core.xml: Likewise.
5367 * gdb/features/arc/v2-aux.c: Likewise.
5368 * gdb/features/arc/v2-aux.xml: Likewise.
5369 * gdb/features/arc/v2-core.c: Likewise.
5370 * gdb/features/arc/v2-core.xml: Likewise.
5371 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
5372
3945d2d7
GM
53732020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
5374 Andrew Burgess <andrew.burgess@embecosm.com>
5375
5376 PR m2/26372
fc5d6901 5377 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
5378 an assert. Remove single element array indexing pattern as the
5379 MULTI_SUBSCRIPT support will handle this case too.
5380
2677f2d3
SM
53812020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
5382
5383 * value.h (valprint_check_validity): Move declaration from
5384 here...
5385 * valprint.h (valprint_check_validity): ... to here.
5386
c426fddb
SM
53872020-08-24 Simon Marchi <simon.marchi@efficios.com>
5388
5389 * debug.h: New file.
5390 * debug.c (debug_prefixed_vprintf): New function.
5391 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
5392 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
5393
1eb8556f
SM
53942020-08-24 Simon Marchi <simon.marchi@efficios.com>
5395
5396 * infrun.h (infrun_debug_printf_1): New function declaration.
5397 (infrun_debug_printf): New macro.
5398 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
5399 throughout.
5400 (infrun_debug_printf): New function.
5401 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
5402 (handle_jit_event): Likewise.
5403
b8fff44e
MW
54042020-08-21 Mark Wielaard <mark@klomp.org>
5405
5406 * ada-lex.l: Extend register warnings diagnostics comment for g++.
5407
d19c3068
SM
54082020-08-22 Simon Marchi <simon.marchi@efficios.com>
5409
5410 * frame.c (enum class frame_id_status): New.
5411 (struct frame_info) <this_id::p>: Change type to frame_id_status.
5412 (fprintf_frame): Update.
5413 (compute_frame_id): Set frame id status to "computing" on entry.
5414 Set it back to "not_computed" on failure and to "computed" on
5415 success.
5416 (get_frame_id): Assert the frame id is not being computed.
5417 (create_sentinel_frame): Use frame_id_status::COMPUTED.
5418 (create_new_frame): Likewise.
5419 (frame_cleanup_after_sniffer): Update assert.
5420
b70e516e
SM
54212020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5422
5423 * regcache.c (pid_ptid_regcache_map): New type.
5424 (target_ptid_regcache_map): Remove.
5425 (target_pid_ptid_regcache_map): New type.
5426 (regcaches): Change type to target_pid_ptid_regcache_map.
5427 (get_thread_arch_aspace_regcache): Update.
5428 (regcache_thread_ptid_changed): Update, handle pid-like ptid
5429 case.
5430 (regcaches_size): Update.
5431 (regcache_count): Update.
5432 (registers_changed_ptid_target_pid_test): New.
5433 (_initialize_regcache): Register new test.
5434
cdd9148a
SM
54352020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5436
5437 * regcache.c (regcache_count): New.
5438 (struct regcache_test_data): New.
5439 (regcache_test_data_up): New.
5440 (populate_regcaches_for_test): New.
5441 (regcaches_test): Remove.
5442 (get_thread_arch_aspace_regcache_test): New.
5443 (registers_changed_ptid_all_test): New.
5444 (registers_changed_ptid_target_test): New.
5445 (registers_changed_ptid_target_ptid_test): New.
5446 (regcache_thread_ptid_changed): Remove regcache_count lambda.
5447 (_initialize_regcache): Register new tests.
5448
dd125343
SM
54492020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5450
5451 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
5452 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
5453 gdbarch and aspace parameter. Use current inferior's aspace.
5454 Validate regcache's arch value.
5455 (regcaches_test): Update.
5456
3ee93972
SM
54572020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5458
5459 * regcache.c (regcaches_test): Call registers_changed.
5460
33bf4c5c
TBA
54612020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5462
5463 * infrun.c (process_event_stop_test): Fix typo "breapoint".
5464
c2fd7fae
AKS
54652020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5466
5467 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
5468 to find the end of prologue for flang compiled binaries.
5469 * arm-tdep.c (arm_skip_prologue): Likewise.
5470 * i386-tdep.c (i386_skip_prologue): Likewise.
5471 * producer.c (producer_is_llvm): New function.
5472 (producer_parsing_tests): Added new tests for clang/flang.
5473 * producer.h (producer_is_llvm): New declaration.
5474
9327494e
SM
54752020-08-18 Simon Marchi <simon.marchi@efficios.com>
5476
5477 * linux-nat.c (linux_nat_debug_printf): New function.
5478 (linux_nat_debug_printf_1): New macro. Use throughout the file.
5479
d138725a
AM
54802020-08-18 Aaron Merey <amerey@redhat.com>
5481
5482 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
5483 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
5484 (CLIBS): Add DEBUGINFOD_LIBS.
5485
f9b11e6b
ST
54862020-08-17 Sergei Trofimovich <siarheit@google.com>
5487
5488 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
5489 'gdbarch_num_regs'.
5490
3ae7ab99
TT
54912020-08-17 Tom Tromey <tromey@adacore.com>
5492
5493 * ada-varobj.c (ada_varobj_decode_var): Handle case where
5494 ada_get_decoded_value returns NULL.
5495
b017825f
TT
54962020-08-17 Tom Tromey <tromey@adacore.com>
5497
5498 * python/py-inferior.c (infpy_search_memory): Use
5499 gdb_py_object_from_ulongest.
5500 * python/py-infevents.c (create_inferior_call_event_object)
5501 (create_memory_changed_event_object): Use
5502 gdb_py_object_from_ulongest.
5503 * python/py-linetable.c (ltpy_entry_get_pc): Use
5504 gdb_py_object_from_ulongest.
5505
7635cf79
SM
55062020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5507
5508 * loc.c (class symbol_needs_eval_context): Fix indentation.
5509
f54be24b
SM
55102020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5511
5512 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
5513 bool.
5514
53d5a2a5
TV
55152020-08-17 Tom de Vries <tdevries@suse.de>
5516
5517 PR gdb/26393
5518 * gdbtypes.c (dump_dynamic_prop): New function.
5519 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
5520
547ce8f0
TV
55212020-08-15 Tom de Vries <tdevries@suse.de>
5522
5523 PR backtrace/26390
5524 * stack.c (print_frame_args): Temporarily set the selected
5525 frame to FRAME while printing the frame's arguments.
5526
6ea815e7
PFC
55272020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5528
5529 PR breakpoints/26385
5530 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
5531 Always clear watchpoint with PTRACE_SET_DEBUGREG.
5532
6e562fa3
PFC
55332020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5534
5535 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
5536 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
5537 and >= to check return value instead of == -1 and != -1.
5538
d369b608
SM
55392020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
5540
5541 * utils.h (class gdb_argv) <as_array_view>: New method.
5542 * utils.c (gdb_argv_as_array_view_test): New.
5543 (_initialize_utils): Register selftest.
5544 * maint.c (maintenance_selftest): Use the new method.
5545
b31488a3
KR
55462020-08-13 Kamil Rytarowski <n54@gmx.com>
5547
5548 * target.h (supports_dumpcore, dumpcore): New
5549 function declarations.
5550 * target.c (supports_dumpcore, dumpcore): New
5551 functions.
5552 * target-delegates.c: Rebuild.
5553 * gcore.c (gcore_command): Use target_supports_dumpcore ()
5554 and target_dumpcore ().
5555
002a3166
AM
55562020-08-13 Aaron Merey <amerey@redhat.com>
5557
5558 * debuginfod-support.c: Replace global variables with user_data.
5559
ece5bc8a
SM
55602020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
5561
5562 * maint.c (maintenance_selftest): Split args and pass array_view
5563 to run_tests.
5564
6d8a0a5e
LM
55652020-08-12 Luis Machado <luis.machado@linaro.org>
5566
5567 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
5568 type's length.
5569 Use %s and pulongest to print the length.
5570
7cf663a9
PA
55712020-08-12 Pedro Alves <palves@redhat.com>
5572
5573 * NEWS: Move "Multi-target debugging support" item to the
5574 "Changes since GDB 9" section.
5575
27c7b875
PA
55762020-08-12 Pedro Alves <palves@redhat.com>
5577
5578 PR gdb/26336
5579 * progspace.c (program_space::remove_objfile): Invalidate the
5580 frame cache.
5581
1796a2a1
TV
55822020-08-11 Tom de Vries <tdevries@suse.de>
5583
5584 * MAINTAINERS: Mark ms1 as deleted.
5585
f8e3fe0d
LM
55862020-08-10 Luis Machado <luis.machado@linaro.org>
5587
5588 PR gdb/26310
5589
5590 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
5591 act accordingly.
5592 (aarch64_analyze_prologue_test): Add more unit tests to exercise
5593 movz/str/stur/stp skipping behavior.
5594
cc308722
LM
55952020-08-10 Luis Machado <luis.machado@linaro.org>
5596
5597 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
5598 struct user_sve_header instead of struct sve_context.
5599
041d9819
SM
56002020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
5601
5602 * read.h (dwarf2_fetch_die_loc_sect_off,
5603 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
5604 `void *` parameter with function_view.
5605 * read.c (dwarf2_fetch_die_loc_sect_off,
5606 dwarf2_fetch_die_loc_cu_off): Likewise.
5607 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
5608 (per_cu_dwarf_call): Adjust.
5609 (get_frame_address_in_block_wrapper): Remove.
5610 (indirect_synthetic_pointer): Adjust.
5611 (get_ax_pc): Remove.
5612 (dwarf2_compile_expr_to_ax): Adjust.
5613
38f8aa06
TV
56142020-08-08 Tom de Vries <tdevries@suse.de>
5615
5616 PR build/26344
5617 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
5618 constructor.
5619 * regcache.c (get_thread_arch_aspace_regcache): Same.
5620
a52b3ae2
TT
56212020-08-07 Tom Tromey <tromey@adacore.com>
5622
5623 * ravenscar-thread.c
5624 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
5625 New method.
5626 (ravenscar_thread_target::wait): Check
5627 runtime_initialized.
5628 (ravenscar_thread_target::prepare_to_store)
5629 (ravenscar_thread_target::stopped_by_sw_breakpoint)
5630 (ravenscar_thread_target::stopped_by_hw_breakpoint)
5631 (ravenscar_thread_target::stopped_by_watchpoint)
5632 (ravenscar_thread_target::stopped_data_address)
5633 (ravenscar_thread_target::core_of_thread): Use
5634 scoped_restore_current_thread and
5635 set_base_thread_from_ravenscar_task.
5636
0e29517d
TT
56372020-08-07 Tom Tromey <tromey@adacore.com>
5638
5639 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
5640
592f9bd7
TT
56412020-08-07 Tom Tromey <tromey@adacore.com>
5642
5643 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
5644 update_inferior_ptid before update_thread_list.
5645 (temporarily_change_regcache_ptid): New class.
5646 (ravenscar_thread_target::fetch_registers)
5647 (ravenscar_thread_target::store_registers)
5648 (ravenscar_thread_target::prepare_to_store): Use base thread when
5649 forwarding operation.
5650
39e2018a
TT
56512020-08-07 Tom Tromey <tromey@adacore.com>
5652
5653 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
5654 "is_pid" case.
5655
2080266b
TT
56562020-08-07 Tom Tromey <tromey@adacore.com>
5657
5658 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
5659 New methods.
5660 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
5661 first.
5662 (ravenscar_thread_target::add_thread): Rename from
5663 ravenscar_add_thread.
5664 (ravenscar_thread_target::update_thread_list): Use a lambda.
5665 (ravenscar_thread_target::xfer_partial): New method.
5666
78c02f21
TT
56672020-08-07 Tom Tromey <tromey@adacore.com>
5668
5669 * ada-lang.h (ada_task_list_iterator_ftype): Now a
5670 gdb::function_view.
5671 (iterate_over_live_ada_tasks): Change type of argument.
5672 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
5673 of argument.
5674
d5d833af
TT
56752020-08-07 Tom Tromey <tromey@adacore.com>
5676
5677 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
5678 Remove.
5679 (ravenscar_thread_target::extra_thread_info): Remove.
5680 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
5681 defer to target beneath for non-Ravenscar threads.
5682
a8ac85bb
TT
56832020-08-07 Tom Tromey <tromey@adacore.com>
5684
5685 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
5686 get_base_thread_from_ravenscar_task>: Now methods.
5687 <m_cpu_map>: New member.
5688 (ravenscar_thread_target::get_thread_base_cpu): Rename from
5689 ravenscar_get_thread_base_cpu. Check m_cpu_map.
5690 (ravenscar_thread_target::task_is_currently_active): Update.
5691 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
5692 Now a method.
5693 (ravenscar_thread_target::add_active_thread): Put initial thread
5694 into the m_cpu_map.
5695
550ab58d
TT
56962020-08-07 Tom Tromey <tromey@adacore.com>
5697
5698 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
5699 event_ptid.
5700
e9546579
TT
57012020-08-07 Tom Tromey <tromey@adacore.com>
5702
5703 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
5704 runtime_initialized.
5705
3d4470e5
TT
57062020-08-07 Tom Tromey <tromey@adacore.com>
5707
5708 * ravenscar-thread.c (ravenscar_thread_target): Don't call
5709 add_active_thread.
5710 (ravenscar_thread_target::add_active_thread): Now public.
5711 (ravenscar_inferior_created): Call add_active_thread after pushing
5712 the target.
5713
888bdb2b
SM
57142020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
5715
5716 * regcache.c (ptid_regcache_map): New type.
5717 (target_ptid_regcache_map): New type.
5718 (regcaches): Change type to target_ptid_regcache_map.
5719 (get_thread_arch_aspace_regcache): Update to regcaches' new
5720 type.
5721 (regcache_thread_ptid_changed): Likewise.
5722 (registers_changed_ptid): Likewise.
5723 (regcaches_size): Likewise.
5724 (regcaches_test): Update.
5725 (regcache_thread_ptid_changed): Update.
5726 * regcache.h (regcache_up): New type.
5727 * gdbsupport/ptid.h (hash_ptid): New struct.
5728
b161a60d
SM
57292020-08-07 Simon Marchi <simon.marchi@efficios.com>
5730
5731 * observable.h (thread_ptid_changed): Add parameter
5732 `process_stratum_target *`.
5733 * infrun.c (infrun_thread_ptid_changed): Add parameter
5734 `process_stratum_target *` and use it.
5735 (selftests): New namespace.
5736 (infrun_thread_ptid_changed): New function.
5737 (_initialize_infrun): Register selftest.
5738 * regcache.c (regcache_thread_ptid_changed): Add parameter
5739 `process_stratum_target *` and use it.
5740 (regcache_thread_ptid_changed): New function.
5741 (_initialize_regcache): Register selftest.
5742 * thread.c (thread_change_ptid): Pass target to
5743 thread_ptid_changed observable.
5744
d2854d8d
CT
57452020-08-06 Caroline Tice <cmtice@google.com>
5746
fe4c3d43
SM
5747 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
5748 (struct dwp_sections): Update field comments. Add loclists and
5749 rnglists fields.
5750 (struct virtual_v2_dwo_sections): Rename struct to
5751 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
5752 size & offset fields for loclists and rnglists.
5753 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
5754 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
5755 skipping dummy type units.
5756 (create_dwp_hash_table): Update the large comment above the function to
5757 discuss Version 5 DWP files as well, with references. Update all the
5758 version checks in the function to check for version 5 as well. Add new
5759 section at the end to create dwp hash table for version 5.
5760 (create_dwp_v2_section): Rename function to
5761 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
5762 Add V5 to error message text.
5763 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
5764 into calls to create_dwp_v2_or_v5_section.
5765 (create_dwo_unit_in_dwp_v5): New function.
5766 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
5767 check for version2; add else clause to handle version 5.
5768 (open_and_init_dwo_file): Add code to check dwarf version & only call
5769 create_debug_types_hash_table (with sections.types) if version is not 5;
5770 else call create_debug_type_hash_table, with sections.info.
5771 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
5772 version 5.
5773 (dwarf2_locate_v5_dwp_sections): New function.
5774 (open_and_init_dwp_file): Add else-if clause for version 5 to call
5775 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 5776
159ed7d9
SM
57772020-08-06 Simon Marchi <simon.marchi@efficios.com>
5778
5779 * regcache.h (class regcache): Remove friend
5780 registers_changed_ptid.
5781 <regcache_thread_ptid_changed>: Remove.
5782 <regcaches>: Remove.
5783 * regcache.c (regcache::regcaches): Rename to...
5784 (regcaches): ... this. Make static.
5785 (get_thread_arch_aspace_regcache): Update.
5786 (regcache::regcache_thread_ptid_changed): Rename to...
5787 (regcache_thread_ptid_changed): ... this. Update.
5788 (class regcache_access): Remove.
5789 (regcaches_test): Update.
5790 (_initialize_regcache): Update.
5791 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
5792 <forward_list>.
5793
174981ae
SM
57942020-08-06 Simon Marchi <simon.marchi@efficios.com>
5795
5796 * regcache.h (class regcache) <current_regcache>: Rename to...
5797 <regcaches>: ... this. Move doc here.
5798 * regcache.c (regcache::current_regcache) Rename to...
5799 (regcache::regcaches): ... this. Move doc to header.
5800 (get_thread_arch_aspace_regcache): Update.
5801 (regcache::regcache_thread_ptid_changed): Update.
5802 (registers_changed_ptid): Update.
5803 (class regcache_access) <current_regcache_size>: Rename to...
5804 <regcaches_size>: ... this.
5805 (current_regcache_test): Rename to...
5806 (regcaches_test): ... this.
5807 (_initialize_regcache): Update.
5808
ed908db6
VC
58092020-08-06 Victor Collod <vcollod@nvidia.com>
5810
5811 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
5812
b5582ab7
KB
58132020-08-05 Kevin Buettner <kevinb@redhat.com>
5814
5815 * corelow.c (core_target::build_file_mappings): Don't output
5816 null pathname in warning.
5817
ea946b86
SM
58182020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
5819
5820 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
5821 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
5822 gdb.dwarf2/dw2-single-line-discriminators.exp,
5823 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
5824
57d02173
TT
58252020-08-05 Tom Tromey <tromey@adacore.com>
5826
5827 PR rust/26197:
5828 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
5829 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
5830 Fix off-by-one and type size errors in ordinary case.
5831
5555c86d
TV
58322020-08-05 Tom de Vries <tdevries@suse.de>
5833
5834 * gdbtypes.c (type_not_allocated, type_not_associated): Use
5835 "prop->const_val () == 0" instead of "prop->const_val () != 0".
5836
97916bfe
SM
58372020-08-04 Simon Marchi <simon.marchi@efficios.com>
5838
5839 * frame.h (frame_id_p): Return bool.
5840 (frame_id_artificial_p): Return bool.
5841 (frame_id_eq): Return bool.
5842 (has_stack_frames): Return bool.
5843 (get_selected_frame): Fix typo in comment.
5844 (get_frame_pc_if_available): Return bool.
5845 (get_frame_address_in_block_if_available): Return bool.
5846 (get_frame_func_if_available): Return bool.
5847 (read_frame_register_unsigned): Return bool.
5848 (get_frame_register_bytes): Return bool.
5849 (safe_frame_unwind_memory): Return bool.
5850 (deprecated_frame_register_read): Return bool.
5851 (frame_unwinder_is): Return bool.
5852 * frame.c (struct frame_info) <prev_arch::p>: Change type to
5853 bool.
5854 <this_id::p>: Likewise.
5855 <prev_p>: Likewise.
5856 (frame_stash_add): Return bool.
5857 (get_frame_id): Use bool.
5858 (frame_id_build_special) Use bool.
5859 (frame_id_build_unavailable_stack): Use bool.
5860 (frame_id_build): Use bool.
5861 (frame_id_p): Return bool, use true/false instead of 1/0.
5862 (frame_id_artificial_p): Likewise.
5863 (frame_id_eq): Likewise.
5864 (frame_id_inner): Likewise.
5865 (get_frame_func_if_available): Likewise.
5866 (read_frame_register_unsigned): Likewise.
5867 (deprecated_frame_register_read): Likewise.
5868 (get_frame_register_bytes): Likewise.
5869 (has_stack_frames): Likewise.
5870 (inside_main_func): Likewise.
5871 (inside_entry_func): Likewise.
5872 (get_frame_pc_if_available): Likewise.
5873 (get_frame_address_in_block_if_available): Likewise.
5874 (frame_unwinder_is): Likewise.
5875 (safe_frame_unwind_memory): Likewise.
5876 (frame_unwind_arch): Likewise.
5877
fedfee88
SM
58782020-08-04 Simon Marchi <simon.marchi@efficios.com>
5879
5880 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
5881 type to cached_copy_status.
5882 (fprintf_frame): Adjust.
5883 (get_frame_func_if_available): Adjust.
5884 (frame_cleanup_after_sniffer): Adjust.
5885
6cfa9b59
MW
58862020-08-04 Mark Wielaard <mark@klomp.org>
5887
5888 * MAINTAINERS (Write After Approval): Update email address.
5889
66d6346b
SM
58902020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5891
5892 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
5893 dynamic_prop::const_val.
5894
8a6d5e35
SM
58952020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5896
5897 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
5898 dynamic_prop::kind.
5899
51d6067d
SM
59002020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5901
5902 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
5903
b26e2ae7
JM
59042020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
5905
5906 * configure.tgt: Set gdb_sim for bpf-*-* targets.
5907
39791af2
JM
59082020-08-04 Weimin Pan <weimin.pan@oracle.com>
5909 Jose E. Marchesi <jose.marchesi@oracle.com>
5910
5911 * configure.tgt: Add entry for bpf-*-*.
5912 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
5913 (ALLDEPFILES): Add bpf-tdep.c.
5914 * bpf-tdep.c: New file.
5915 * MAINTAINERS: Add bpf target and maintainer.
5916 * NEWS: Mention the support for the new target.
5917
521894aa
TV
59182020-08-04 Tom de Vries <tdevries@suse.de>
5919
5920 PR symtab/23270
5921 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
5922 Error.
5923
5d6356e9
JB
59242020-08-03 John Baldwin <jhb@FreeBSD.org>
5925
5926 * syscalls/freebsd.xml: Regenerate.
5927
0cf82b81
JB
59282020-08-03 John Baldwin <jhb@FreeBSD.org>
5929
5930 * syscalls/update-freebsd.sh: Fix usage and year range.
5931
8f34b746
TV
59322020-08-03 Tom de Vries <tdevries@suse.de>
5933
5934 PR symtab/26333
5935 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
5936 DW_LNE_lo_user/DW_LNE_hi_user range.
5937
5e500d33
SM
59382020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
5939
5940 PR ada/26318
5941 * ada-lang.c (ada_modulus): Return 0 if property is not of const
5942 kind.
5943
78319c15
TBA
59442020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5945
5946 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
5947
4c55e970
TBA
59482020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5949
5950 * breakpoint.c (set_breakpoint_condition): Update the condition
5951 expressions after checking that the input condition string parses
5952 successfully and does not contain junk at the end.
5953
1e620590
TBA
59542020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5955
5956 * breakpoint.c (set_breakpoint_condition): Update the
5957 condition string after parsing the new condition successfully.
5958
c8693053
RO
59592020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5960
5961 * proc-api.c (_STRUCTURED_PROC): Don't define.
5962 * proc-events.c: Likewise.
5963 * proc-flags.c: Likewise.
5964 * proc-why.c: Likewise.
5965 * procfs.c: Likewise.
5966
5967 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
5968 * configure, config.in: Regenerate.
5969
5a99adb8
TV
59702020-07-30 Tom de Vries <tdevries@suse.de>
5971
5972 PR build/26320
5973 * ui-style.h (struct ui_file_style::color): Wrap m_value and
5974 m_red/m_green/m_blue in a union.
5975
8ba83e91
TV
59762020-07-29 Tom de Vries <tdevries@suse.de>
5977
5978 PR tdep/26280
5979 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
5980
f75a0693
AB
59812020-07-28 Tom Tromey <tromey@adacore.com>
5982
5983 PR symtab/26270:
5984 * symtab.h (find_pc_partial_function_sym): Declare.
5985 * cli/cli-cmds.c (disassemble_command): Use
5986 find_pc_partial_function_sym. Check asm_demangle.
5987 * blockframe.c (cache_pc_function_sym): New global.
5988 (cache_pc_function_name): Remove.
5989 (clear_pc_function_cache): Update.
5990 (find_pc_partial_function_sym): New function, from
5991 find_pc_partial_function.
5992 (find_pc_partial_function): Rewrite using
5993 find_pc_partial_function_sym.
5994
16f3242c
TT
59952020-07-28 Tom Tromey <tromey@adacore.com>
5996
5997 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
5998 help. Add usage.
5999
4888741a
TT
60002020-07-28 Tom Tromey <tromey@adacore.com>
6001
6002 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
6003 <DW_OP_GNU_variable_value>: Cast to address type.
6004
4d46f402
KR
60052020-07-28 Kamil Rytarowski <n54@gmx.com>
6006
6007 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
6008 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
6009 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
6010 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
6011 (nbsd_get_siginfo_type): New.
6012 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
6013 (_initialize_nbsd_tdep): New.
6014
d70f978b
L
60152020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6016
6017 PR binutils/26301
6018 * configure: Regenerated.
6019
377170fa
L
60202020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6021
6022 PR binutils/26301
6023 * configure: Regenerated.
6024
43d5901d
AB
60252020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6026
6027 * python/py-frame.c: Remove 'user-regs.h' include.
6028 (frapy_read_register): Rewrite to make use of
6029 gdbpy_parse_register_id.
6030 * python/py-registers.c (gdbpy_parse_register_id): New function,
6031 moved here from python/py-unwind.c. Updated the return type, and
6032 also accepts register descriptor objects.
6033 * python/py-unwind.c: Remove 'user-regs.h' include.
6034 (pyuw_parse_register_id): Moved to python/py-registers.c.
6035 (unwind_infopy_add_saved_register): Update to use
6036 gdbpy_parse_register_id.
6037 (pending_framepy_read_register): Likewise.
6038 * python/python-internal.h (gdbpy_parse_register_id): Declare.
6039
14fa8fb3
AB
60402020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6041
6042 * python/py-registers.c: Add 'user-regs.h' include.
6043 (register_descriptor_iter_find): New function.
6044 (register_descriptor_iterator_object_methods): New static global
6045 methods array.
6046 (register_descriptor_iterator_object_type): Add pointer to methods
6047 array.
6048
ddce1758
JB
60492020-07-27 John Baldwin <jhb@FreeBSD.org>
6050
6051 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
6052 for all architectures on FreeBSD 11.3 and later.
6053
a4089f52
TT
60542020-07-27 Tom Tromey <tromey@adacore.com>
6055
6056 * gcore.h (load_corefile): Don't declare.
6057
95420d30
TV
60582020-07-27 Tom de Vries <tdevries@suse.de>
6059
6060 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
6061 * config.in: Regenerate.
6062 * configure: Regenerate.
6063
05a6b8c2
EZ
60642020-07-26 Eli Zaretskii <eliz@gnu.org>
6065
6066 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
6067 ws2tcpip.h. When checking whether socklen_t type is defined, use
6068 ws2tcpip.h if it is available and sys/socket.h isn't.
6069 * configure: Regenerate.
6070 * config.in: Regenerate.
6071
e79eb02f
AB
60722020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
6073
6074 PR fortran/23051
6075 PR fortran/26139
6076 * valops.c (value_ind): Pass address to
6077 readjust_indirect_value_type.
6078 * value.c (readjust_indirect_value_type): Make parameter
6079 non-const, and add extra address parameter. Resolve original type
6080 before using it.
6081 * value.h (readjust_indirect_value_type): Update function
6082 signature and comment.
6083
876518dd
TV
60842020-07-25 Tom de Vries <tdevries@suse.de>
6085
6086 PR symtab/26243
6087 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
6088 entries.
6089
f6720b1c
AM
60902020-07-24 Aaron Merey <amerey@redhat.com>
6091
6092 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
6093 * configure: Rebuild.
6094
513487e1
KB
60952020-07-23 Kevin Buettner <kevinb@redhat.com>
6096
6097 PR corefiles/26294
6098 * corelow.c (_initialize_corelow): Add period to help text
6099 for "maintenance print core-file-backed-mappings".
6100
e7bc9db8
PA
61012020-07-23 Pedro Alves <pedro@palves.net>
6102
6103 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
6104 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
6105 meanwhile.
6106 * frame.c (frame_cache_generation, get_frame_cache_generation):
6107 New.
6108 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
6109 (get_prev_frame_if_no_cycle): On exception, don't touch
6110 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
6111 * frame.h (get_frame_cache_generation): Declare.
6112
90fcc466
TV
61132020-07-23 Tom de Vries <tdevries@suse.de>
6114
6115 PR tui/26282
6116 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
6117 New default constructor.
6118
78344df7
AB
61192020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
6120
6121 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
6122 exclude non-statement entries.
6123
b089853a
KB
61242020-07-22 Kevin Buettner <kevinb@redhat.com>
6125
6126 * NEWS (New commands): Mention new command
6127 "maintenance print core-file-backed-mappings".
6128
09c2f5d4
KB
61292020-07-22 Kevin Buettner <kevinb@redhat.com>
6130
6131 * corelow.c (gdbcmd.h): Include.
6132 (core_target::info_proc_mappings): New method.
6133 (get_current_core_target): New function.
6134 (maintenance_print_core_file_backed_mappings): New function.
6135 (_initialize_corelow): Add core-file-backed-mappings to
6136 "maint print" commands.
6137
9c5ec5c2 61382020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 6139
9c5ec5c2
KB
6140 * linux-tdep.c (dump_note_entry_p): New function.
6141 (linux_dump_mapping_p_ftype): New typedef.
6142 (linux_find_memory_regions_full): Add new parameter,
6143 should_dump_mapping_p.
6144 (linux_find_memory_regions): Adjust call to
6145 linux_find_memory_regions_full.
6146 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
6147 call to linux_find_memory_regions_full.
6148
db082f59
KB
61492020-07-22 Kevin Buettner <kevinb@redhat.com>
6150
6151 * corelow.c (solist.h, unordered_map): Include.
6152 (class core_target): Add field m_core_file_mappings and
6153 method build_file_mappings.
6154 (core_target::core_target): Call build_file_mappings.
6155 (core_target::~core_target): Free memory associated with
6156 m_core_file_mappings.
6157 (core_target::build_file_mappings): New method.
6158 (core_target::xfer_partial): Use m_core_file_mappings
6159 for memory transfers.
6160 * linux-tdep.c (linux_read_core_file_mappings): New
6161 function.
6162 (linux_core_info_proc_mappings): Rewrite to use
6163 linux_read_core_file_mappings.
6164 (linux_init_abi): Register linux_read_core_file_mappings.
6165
7e183d27
KB
61662020-07-22 Kevin Buettner <kevinb@redhat.com>
6167
6168 * arch-utils.c (default_read_core_file_mappings): New function.
6169 * arch-utils.c (default_read_core_file_mappings): Declare.
6170 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
6171 * gdbarch.h, gdbarch.c: Regenerate.
6172
2735d421
KB
61732020-07-22 Kevin Buettner <kevinb@redhat.com>
6174
6175 PR corefiles/25631
6176 * corelow.c (core_target:xfer_partial): Revise
6177 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
6178 case after first checking the stratum beneath the core
6179 target.
6180 (has_all_memory): Return true.
6181 * target.c (raw_memory_xfer_partial): Revise comment
6182 regarding use of has_all_memory.
6183
e56cb451
KB
61842020-07-22 Kevin Buettner <kevinb@redhat.com>
6185
6186 * exec.h (section_table_xfer_memory): Revise declaration,
6187 replacing section name parameter with an optional callback
6188 predicate.
6189 * exec.c (section_table_xfer_memory): Likewise.
6190 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
6191 of section_table_xfer_memory.
6192
32fa152e
TT
61932020-07-22 Tom Tromey <tromey@adacore.com>
6194
6195 * mi/mi-cmd-stack.c (list_args_or_locals): Use
6196 lookup_symbol_search_name.
6197
a67a1c41
AB
61982020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6199
6200 * python/py-registers.c (gdbpy_register_object_data_init): Remove
6201 redundant local variable.
6202 (gdbpy_get_register_descriptor): Extract descriptor vector as a
6203 reference, not pointer, update code accordingly.
6204
a7b4ff4f
SM
62052020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6206 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6207
6208 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
6209 * jit.c (jit_breakpoint_re_set_internal): Use the
6210 `skip_jit_symbol_lookup` field.
6211
2340e834
SM
62122020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6213 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6214
6215 * jit.c (jit_read_descriptor): Define the descriptor address once,
6216 use twice.
6217 (jit_breakpoint_deleted): Move the declaration of the loop variable
6218 `iter` into the loop header.
6219 (jit_breakpoint_re_set_internal): Move the declaration of the local
6220 variable `objf_data` to the first point of definition.
6221 (jit_event_handler): Move the declaration of local variables
6222 `code_entry`, `entry_addr`, and `objf` to their first point of use.
6223 Rename `objf` to `jited`.
6224
c1072906
SM
62252020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6226
6227 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
6228 Remove.
6229 * jit.c (get_jiter_objfile_data): Update.
6230
c8474dc3
TBA
62312020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6232 Simon Marchi <simon.marchi@polymtl.ca>
6233
6234 * jit.c (struct jit_program_space_data): Remove.
6235 (jit_program_space_key): Remove.
6236 (jiter_objfile_data::~jiter_objfile_data): Remove program space
6237 stuff.
6238 (get_jit_program_space_data): Remove.
6239 (jit_breakpoint_deleted): Iterate on all of the program space's
6240 objfiles.
6241 (jit_inferior_init): Likewise.
6242 (jit_breakpoint_re_set_internal): Likewise. Also change return
6243 type to void.
6244 (jit_breakpoint_re_set): Pass current_program_space to
6245 jit_breakpoint_re_set_internal.
6246
77208eb7
SM
62472020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6248
6249 * jit.h (struct jiter_objfile_data) <cached_code_address,
6250 jit_breakpoint>: Move to here from ...
6251 * jit.c (jit_program_space_data): ... here.
6252 (jiter_objfile_data::~jiter_objfile_data): Update.
6253 (jit_breakpoint_deleted): Update.
6254 (jit_breakpoint_re_set_internal): Update.
6255
8c1c720f
SM
62562020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6257
6258 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
6259 checks.
6260 (jit_read_descriptor): Remove NULL check.
6261 (jit_event_handler): Add an assertion.
6262
0e74a041
SM
62632020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6264
6265 * jit.h (struct jit_objfile_data): Split into...
6266 (struct jiter_objfile_data): ... this ...
6267 (struct jited_objfile_data): ... and this.
6268 * objfiles.h (struct objfile) <jit_data>: Remove.
6269 <jiter_data, jited_data>: New fields.
6270 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
6271 (jiter_objfile_data::~jiter_objfile_data): ... this.
6272 (get_jit_objfile_data): Rename to ...
6273 (get_jiter_objfile_data): ... this.
6274 (add_objfile_entry): Update.
6275 (jit_read_descriptor): Use get_jiter_objfile_data.
6276 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
6277 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
6278 (jit_inferior_exit_hook): Use objfile's jited_data field.
6279
238b5c9f
SM
62802020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6281
6282 * jit.h: Forward-declare `struct minimal_symbol`.
6283 (struct jit_objfile_data): Migrate to here from jit.c; also add a
6284 constructor, destructor, and an objfile* field.
6285 * jit.c (jit_objfile_data): Remove.
6286 (struct jit_objfile_data): Migrate from here to jit.h.
6287 (jit_objfile_data::~jit_objfile_data): New destructor
6288 implementation with code moved from free_objfile_data.
6289 (free_objfile_data): Delete.
6290 (get_jit_objfile_data): Update to use the jit_data field of objfile.
6291 (jit_find_objf_with_entry_addr): Ditto.
6292 (jit_inferior_exit_hook): Ditto.
6293 (_initialize_jit): Remove the call to
6294 register_objfile_data_with_cleanup.
6295 * objfiles.h (struct objfile) <jit_data>: New field.
6296
fe053b9e
TBA
62972020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6298
6299 * jit.h: Forward-declare `struct objfile`.
6300 (jit_event_handler): Add a second parameter, the JITer objfile.
6301 * jit.c (jit_read_descriptor): Change the signature to take the
6302 JITer objfile as an argument instead of the jit_program_space_data.
6303 (jit_inferior_init): Update the call to jit_read_descriptor.
6304 (jit_event_handler): Use the new JITer objfile argument when calling
6305 jit_read_descriptor.
6306 * breakpoint.c (handle_jit_event): Update the call to
6307 jit_event_handler to pass the JITer objfile.
6308
4cec0c66
JB
63092020-07-21 John Baldwin <jhb@FreeBSD.org>
6310
6311 * gdbarch.c: Regenerate.
6312 * gdbarch.h: Regenerate.
6313 * gdbarch.sh (handle_segmentation_fault): Remove method.
6314 * infrun.c (handle_segmentation_fault): Remove.
6315 (print_signal_received_reason): Remove call to
6316 handle_segmentation_fault.
6317
0e42f66a
JB
63182020-07-21 John Baldwin <jhb@FreeBSD.org>
6319
6320 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6321 Rename to sparc64_linux_report_signal_info and add siggnal
6322 argument.
6323 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
6324 instead of sparc64_linux_handle_segmentation_fault.
6325
77bdfeb2
JB
63262020-07-21 John Baldwin <jhb@FreeBSD.org>
6327
6328 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
6329 i386_linux_report_signal_info instead of
6330 i386_linux_handle_segmentation_fault.
6331 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
6332 to i386_linux_report_signal_info and add siggnal argument.
6333 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
6334 of i386_linux_handle_segmentation_fault.
6335 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
6336 to i386_linux_report_signal_info and add siggnal argument.
6337
ad97bfc5
JB
63382020-07-21 John Baldwin <jhb@FreeBSD.org>
6339
6340 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
6341 hook if present.
6342
272bb05c
JB
63432020-07-21 John Baldwin <jhb@FreeBSD.org>
6344
6345 * gdbarch.c: Regenerate.
6346 * gdbarch.h: Regenerate.
6347 * gdbarch.sh (report_signal_info): New method.
6348 * infrun.c (print_signal_received_reason): Invoke gdbarch
6349 report_signal_info hook if present.
6350
baf8791e
AB
63512020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6352
6353 * python/py-registers.c : Add 'unordered_map' include.
6354 (gdbpy_new_reggroup): Renamed to...
6355 (gdbpy_get_reggroup): ...this. Update to only create register
6356 group descriptors when needed.
6357 (gdbpy_reggroup_iter_next): Update.
6358
f7306dac
AB
63592020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6360
6361 * python/py-registers.c (gdbpy_register_object_data): New static
6362 global.
6363 (gdbpy_register_object_data_init): New function.
6364 (gdbpy_new_register_descriptor): Renamed to...
6365 (gdbpy_get_register_descriptor): ...this, and update to reuse
6366 existing register descriptors where possible.
6367 (gdbpy_register_descriptor_iter_next): Update.
6368 (gdbpy_initialize_registers): Register new gdbarch data.
6369
05c309a8
SM
63702020-07-21 Simon Marchi <simon.marchi@efficios.com>
6371
6372 * linux-nat.c (stopped_pids): Make static.
6373
d1fd641e
SM
63742020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
6375
6376 PR ada/26235
6377 * gdbtypes.c (ada_discrete_type_low_bound,
6378 ada_discrete_type_high_bound): Handle undefined bounds.
6379
1de14d77
KR
63802020-07-21 Kamil Rytarowski <n54@gmx.com>
6381
6382 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
6383 declaration.
6384 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
6385 function.
6386
ed810cc7
JB
63872020-07-20 John Baldwin <jhb@FreeBSD.org>
6388
6389 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
6390 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
6391 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
6392 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
6393 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
6394 method.
6395
ae5369e7
LC
63962020-07-20 Ludovic Courtès <ludo@gnu.org>
6397
6398 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
6399 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
6400 which are deprecated in Guile 3.0.
6401 * configure.ac (try_guile_versions): Add "guile-3.0".
6402 * configure (try_guile_versions): Regenerate.
6403 * NEWS: Update entry.
6404
68cf161c
LC
64052020-07-20 Ludovic Courtès <ludo@gnu.org>
6406 Doug Evans <dje@google.com>
6407
6408 PR gdb/21104
6409 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
6410 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
6411 USING_GUILE_BEFORE_2_2.
6412 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
6413 Change type to 'scm_t_port_type *'.
6414 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
6415 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
6416 parameter and honor it. Update callers.
6417 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
6418 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
6419 functions.
6420 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
6421 USING_GUILE_BEFORE_2_2.
6422 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
6423 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
6424 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
6425 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
6426 and 'SCM_PORT_TYPE'.
6427 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
6428 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
6429 (gdbscm_memory_port_read, gdbscm_memory_port_write)
6430 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
6431 [!USING_GUILE_BEFORE_2_2]: New functions.
6432 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
6433 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
6434 'gdbscm_memory_port_read'.
6435 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
6436 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
6437 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
6438 function.
6439 (ioscm_init_memory_port): Remove.
6440 (ioscm_init_memory_port_stream): New function
6441 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
6442 function.
6443 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6444 Return scm_from_uint (0).
6445 (gdbscm_set_memory_port_read_buffer_size_x)
6446 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6447 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6448 Return scm_from_uint (0).
6449 (gdbscm_set_memory_port_write_buffer_size_x)
6450 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6451 * configure.ac (try_guile_versions): Add "guile-2.2".
6452 * configure: Regenerate.
6453 * NEWS: Add entry.
6454
aee91db3
TT
64552020-07-18 Tom Tromey <tom@tromey.com>
6456
6457 * linux-nat.c (linux_multi_process): Remove.
6458 (linux_nat_target::supports_multi_process): Return true.
6459
0e267416
AB
64602020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6461
6462 * arch/riscv.c (riscv_tdesc_cache): Change map type.
6463 (riscv_lookup_target_description): Return pointer out of
6464 unique_ptr.
6465 * target-descriptions.c (allocate_target_description): Add
6466 comment.
6467 (target_desc_deleter::operator()): Likewise.
6468 * target-descriptions.h (struct target_desc_deleter): Moved to
6469 gdbsupport/tdesc.h.
6470 (target_desc_up): Likewise.
6471
f80c8ec4
TT
64722020-07-17 Tom Tromey <tromey@adacore.com>
6473
6474 * linux-nat.c (linux_nat_target::supports_non_stop)
6475 (linux_nat_target::always_non_stop_p): Use "true".
6476 (linux_nat_target::supports_disable_randomization): Use "true" and
6477 "false".
6478
d0ce17d8
CT
64792020-07-16 Caroline Tice <cmtice@google.com>
6480
6481 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
6482 (RNGLIST_HEADER_SIZE64): New constant definition.
6483 (struct dwop_section_names): Add rnglists_dwo.
6484 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
6485 (struct loclist_header): Rename to 'loclists_rnglists_header'.
6486 (struct dwo_sections): Add rnglists field.
6487 (read_attribut_reprocess): Add tag parameter.
6488 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
6489 (cu_debug_rnglists_section): New function (decl & definition).
6490 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
6491 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
6492 die whose range is being checked; get rnglist section from
6493 cu_debug_rnglists_section, to get from either objfile or dwo file as
6494 appropriate. Add cases for DW_RLE_base_addressx,
6495 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
6496 the base address to DW_RLE_offset_pairs (not to all ranges), moving
6497 test inside if-condition and updating complaint message.
6498 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
6499 dwarf2_rnglists_process.
6500 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
6501 dwarf2_ranges_process.
6502 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
6503 need_ranges_base and update comment appropriately. Also pass die tag
6504 to dwarf2_ranges_read.
6505 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
6506 need_ranges_base and update comment appropriately. Also pass die tag
6507 to dwarf2_ranges_process.
6508 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
6509 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
6510 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
6511 need_ranges_base and update comment appropriately. Also pass die tag
6512 to read_attribute_reprocess and dwarf2_ranges_read.
6513 (read_loclist_header): Rename function to read_loclists_rnglists_header,
6514 and update function comment appropriately.
6515 (read_loclist_index): Call read_loclists_rnglists_header instead of
6516 read_loclist_header.
6517 (read_rnglist_index): New function.
6518 (read_attribute_reprocess): Add tag parameter. Add code for
6519 DW_FORM_rnglistx, passing tag to read_rnglist_index.
6520 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
6521
3dcc261c
AB
65222020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
6523
6524 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
6525 being resolved.
6526
ccb9eba6
AB
65272020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
6528
6529 * arch-utils.c (show_architecture): Update formatting of messages.
6530
cf88be68
SM
65312020-07-12 Simon Marchi <simon.marchi@efficios.com>
6532
6533 * gdbtypes.h (struct type) <bounds>: Handle array and string
6534 types.
6535 * ada-lang.c (assign_aggregate): Use type::bounds on
6536 array/string type.
6537 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
6538 * c-varobj.c (c_number_of_children): Likewise.
6539 (c_describe_child): Likewise.
6540 * eval.c (evaluate_subexp_for_sizeof): Likewise.
6541 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
6542 (f_type_print_base): Likewise.
6543 * f-valprint.c (f77_array_offset_tbl): Likewise.
6544 (f77_get_upperbound): Likewise.
6545 (f77_print_array_1): Likewise.
6546 * guile/scm-type.c (gdbscm_type_range): Likewise.
6547 * m2-typeprint.c (m2_array): Likewise.
6548 (m2_is_long_set_of_type): Likewise.
6549 * m2-valprint.c (get_long_set_bounds): Likewise.
6550 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
6551 * python/py-type.c (typy_range): Likewise.
6552 * rust-lang.c (rust_internal_print_type): Likewise.
6553 * type-stack.c (type_stack::follow_types): Likewise.
6554 * valarith.c (value_subscripted_rvalue): Likewise.
6555 * valops.c (value_cast): Likewise.
6556
509971ae
SM
65572020-07-12 Simon Marchi <simon.marchi@efficios.com>
6558
6559 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
6560 callers to use the equivalent accessor methods.
6561
107406b7
SM
65622020-07-12 Simon Marchi <simon.marchi@efficios.com>
6563
6564 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
6565 (struct type) <bit_stride>: New method.
6566 (TYPE_BIT_STRIDE): Remove.
6567 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
6568
bb789949
SM
65692020-07-12 Simon Marchi <simon.marchi@efficios.com>
6570
6571 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
6572 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
6573 callers to use the equivalent accessor methods instead.
6574
39498edb
SM
65752020-07-12 Simon Marchi <simon.marchi@efficios.com>
6576
6577 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
6578 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
6579 callers to use the equivalent accessor methods instead.
6580
3b606f38
SM
65812020-07-12 Simon Marchi <simon.marchi@efficios.com>
6582
6583 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
6584 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
6585 to use dynamic_prop::kind.
6586
064d9cb9
SM
65872020-07-12 Simon Marchi <simon.marchi@efficios.com>
6588
6589 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
6590 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
6591 to get the bound property's kind and check against
6592 PROP_UNDEFINED.
6593
5537ddd0
SM
65942020-07-12 Simon Marchi <simon.marchi@efficios.com>
6595
6596 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
6597 all callers to use type::range_bounds followed by
6598 dynamic_prop::{low,high}.
6599
8c2e4e06
SM
66002020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6601
6602 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
6603 const_val, set_const_val, baton, set_locexpr, set_loclist,
6604 set_addr_offset, variant_parts, set_variant_parts,
6605 original_type, set_original_type>: New methods.
6606 <kind>: Rename to...
6607 <m_kind>: ... this. Update all users to use the new methods
6608 instead.
6609 <data>: Rename to...
6610 <m_data>: ... this. Update all users to use the new methods
6611 instead.
6612
7c6f2712
SM
66132020-07-12 Simon Marchi <simon.marchi@efficios.com>
6614
6615 * gdbtypes.c (get_discrete_bounds): Return failure if
6616 the range type's bounds are not both defined and constant
6617 values.
6618 (get_array_bounds): Update comment. Remove undefined bound check.
6619
599088e3
SM
66202020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6621
6622 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
6623 the type::bounds method directly.
6624
c4dfcb36
SM
66252020-07-12 Simon Marchi <simon.marchi@efficios.com>
6626
6627 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
6628 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
6629 are used to set the range type's bounds to use set_bounds.
6630
0a278aa7
PW
66312020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6632
6633 * exec.c (_initialize_exec): Update exec-file-mismatch help.
6634
cce20f10
PA
66352020-07-10 Pedro Alves <pedro@palves.net>
6636
6637 * gdbthread.h (inferior_ref): Define.
6638 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
6639 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
6640 * thread.c
6641 (scoped_restore_current_thread::restore):
6642 Adjust to gdb::ref_ptr.
6643 (scoped_restore_current_thread::~scoped_restore_current_thread):
6644 Remove manual decref handling.
6645 (scoped_restore_current_thread::scoped_restore_current_thread):
6646 Adjust to use
6647 inferior_ref::new_reference/thread_info_ref::new_reference.
6648 Incref the thread before calling get_frame_id instead of after.
6649 Let TARGET_CLOSE_ERROR propagate.
6650
6d7aa592
PA
66512020-07-10 Pedro Alves <pedro@palves.net>
6652
6653 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
6654 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
6655 NOT_AVAILABLE_ERROR.
6656 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
6657 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
6658
b3e3a4c1
SM
66592020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6660 Pedro Alves <pedro@palves.net>
6661
6662 PR gdb/26199
6663 * infrun.c (threads_are_resumed_pending_p): Delete.
6664 (do_target_wait): Remove threads_are_executing and
6665 threads_are_resumed_pending_p checks from the inferior_matches
6666 lambda. Update comments.
6667
d6cc5d98
PA
66682020-07-10 Pedro Alves <pedro@palves.net>
6669
6670 PR gdb/26199
6671 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
6672 executing threads.
6673
7d3badc6
PA
66742020-07-10 Pedro Alves <pedro@palves.net>
6675
6676 PR gdb/26199
6677 * infrun.c (handle_no_resumed): Handle multiple targets.
6678
42bd97a6
PA
66792020-07-10 Pedro Alves <pedro@palves.net>
6680
6681 PR gdb/26199
6682 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
6683 target_is_async_p.
6684
43667cc6
PA
66852020-07-10 Pedro Alves <pedro@palves.net>
6686
6687 PR gdb/26199
6688 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
6689 threads, not all threads.
6690
96118d11
PA
66912020-07-10 Pedro Alves <pedro@palves.net>
6692
6693 PR gdb/26199
6694 * remote.c (remote_target::open_1): Pass remote target pointer as
6695 data to create_async_event_handler.
6696 (remote_async_inferior_event_handler): Mark async event handler
6697 before returning if the remote target still has either pending
6698 events or unacknowledged notifications.
6699
54904d81
JB
67002020-07-10 John Baldwin <jhb@FreeBSD.org>
6701
6702 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
6703 declaration.
6704 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
6705 function.
6706
f37e5866
JB
67072020-07-09 John Baldwin <jhb@FreeBSD.org>
6708
6709 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
6710 inferior_ptid.
6711
fc238d4a
JB
67122020-07-09 John Baldwin <jhb@FreeBSD.org>
6713
6714 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
6715 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
6716 AT_FREEBSD_PS_STRINGS.
6717
6e2469ff
HD
67182020-07-08 Hannes Domani <ssbssa@yahoo.de>
6719
6720 * auto-load.c (auto_load_objfile_script_1): Convert drive part
6721 of debugfile path on Windows.
6722
d1076c41
JB
67232020-07-08 John Baldwin <jhb@FreeBSD.org>
6724
6725 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
6726 argument to 'data'.
6727
15f3b077
TT
67282020-07-08 Tom Tromey <tromey@adacore.com>
6729
6730 * ada-lang.c (ada_exception_message_1): Use read_memory.
6731
9fc501fd
AB
67322020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6733
6734 PR python/22748
6735 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
6736 special handling for inline frames.
6737 * findvar.c (value_of_register_lazy): Skip inline frames when
6738 creating lazy register values.
6739 * frame.c (frame_id_computed_p): Delete definition.
6740 * frame.h (frame_id_computed_p): Delete declaration.
6741
64cb3757
AB
67422020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6743
6744 * NEWS: Mention additions to Python API.
6745 * python/py-arch.c (archpy_register_groups): New function.
6746 (arch_object_methods): Add 'register_groups' method.
6747 * python/py-registers.c (reggroup_iterator_object): New struct.
6748 (reggroup_object): New struct.
6749 (gdbpy_new_reggroup): New function.
6750 (gdbpy_reggroup_to_string): New function.
6751 (gdbpy_reggroup_name): New function.
6752 (gdbpy_reggroup_iter): New function.
6753 (gdbpy_reggroup_iter_next): New function.
6754 (gdbpy_new_reggroup_iterator): New function
6755 (gdbpy_initialize_registers): Register new types.
6756 (reggroup_iterator_object_type): Define new Python type.
6757 (gdbpy_reggroup_getset): New static global.
6758 (reggroup_object_type): Define new Python type.
6759 * python/python-internal.h
6760
0f767f94
AB
67612020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6762
6763 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
6764 * python/py-arch.c (archpy_registers): New function.
6765 (arch_object_methods): Add 'registers' method.
6766 * python/py-registers.c: New file.
6767 * python/python-internal.h
6768 (gdbpy_new_register_descriptor_iterator): Declare.
6769 (gdbpy_initialize_registers): Declare.
6770 * python/python.c (do_start_initialization): Call
6771 gdbpy_initialize_registers.
6772 * NEWS: Mention additions to the Python API.
6773
87dbc774
AB
67742020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6775
6776 * NEWS: Mention new Python API method.
6777 * python/py-unwind.c (pending_framepy_architecture): New function.
6778 (pending_frame_object_methods): Add architecture method.
6779
3bc98c0c
AB
67802020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6781
6782 * gdbarch.c: Regenerate.
6783 * gdbarch.h: Regenerate.
6784 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
6785 (gdbarch_data): Use internal_error for the case where
6786 deprecated_set_gdbarch_data was originally needed.
6787 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
6788 and use passed in obstack.
6789 (libunwind_frame_set_descr): Should no longer get back NULL from
6790 gdbarch_data.
6791 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
6792 type.
6793 * user-regs.c (user_regs_init): Update parameters, and use passed
6794 in obstack.
6795 (user_reg_add): Should no longer get back NULL from gdbarch_data.
6796 (_initialize_user_regs): Register as a pre-init gdbarch data type.
6797
d8cc8af6
TV
67982020-07-06 Tom de Vries <tdevries@suse.de>
6799
6800 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
6801 End-Of-Sequence in lte_is_less_than.
6802 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
6803 "gdb: Don't reorder line table entries too much when sorting".
6804
947f7597
TV
68052020-07-06 Tom de Vries <tdevries@suse.de>
6806
6807 PR tui/26205
6808 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
6809
1e7c1b22
TV
68102020-07-05 Tom de Vries <tdevries@suse.de>
6811
6812 PR build/26187
6813 * inferior.h (struct infcall_suspend_state_deleter): If available, use
6814 std::uncaught_exceptions instead of deprecated
6815 std::uncaught_exception.
6816
a36158ec
SM
68172020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6818
6819 * macroexp.h (macro_stringify): Return
6820 gdb::unique_xmalloc_ptr<char>.
6821 * macroexp.c (macro_stringify): Likewise.
6822 * macrotab.c (fixup_definition): Update.
6823
14d960c8
SM
68242020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6825
6826 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
6827 (lex_one_token): Update.
6828 * macroexp.c (struct macro_buffer) <release>: Return
6829 gdb::unique_xmalloc_ptr<char>.
6830 (macro_stringify): Update.
6831 (macro_expand): Update.
6832 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
6833 * macroexp.h (macro_expand_next): Likewise.
6834
211d5b1c
SM
68352020-07-02 Simon Marchi <simon.marchi@efficios.com>
6836
6837 * macroexp.h (macro_lookup_ftype): Remove.
6838 (macro_expand, macro_expand_once, macro_expand_next): Remove
6839 lookup function parameters, add scope parameter.
6840 * macroexp.c (scan, substitute_args, expand, maybe_expand,
6841 macro_expand, macro_expand_once, macro_expand_next): Likewise.
6842 * macroscope.h (standard_macro_lookup): Change parameter type
6843 to macro_scope.
6844 * macroscope.c (standard_macro_lookup): Likewise.
6845 * c-exp.y (lex_one_token): Update.
6846 * macrocmd.c (macro_expand_command): Likewise.
6847 (macro_expand_once_command): Likewise.
6848
b1a35af2
SM
68492020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6850
6851 * inf-loop.c (inferior_event_handler): Remove client_data param.
6852 * inf-loop.h (inferior_event_handler): Likewise.
6853 * infcmd.c (step_1): Adjust.
6854 * infrun.c (proceed): Adjust.
6855 (fetch_inferior_event): Remove client_data param.
6856 (infrun_async_inferior_event_handler): Adjust.
6857 * infrun.h (fetch_inferior_event): Remove `void *` param.
6858 * linux-nat.c (handle_target_event): Adjust.
6859 * record-btrace.c (record_btrace_handle_async_inferior_event):
6860 Adjust.
6861 * record-full.c (record_full_async_inferior_event_handler):
6862 Adjust.
6863 * remote.c (remote_async_inferior_event_handler): Adjust.
6864
1cdf9e33
TT
68652020-07-01 Tom Tromey <tom@tromey.com>
6866
6867 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
6868 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
6869
32c1e210
TT
68702020-07-01 Tom Tromey <tom@tromey.com>
6871
6872 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
6873 tui_gen_win_info.
6874 (tui_win_info::make_window): Merge with
6875 tui_gen_win_info::make_window.
6876 (tui_win_info::make_visible): Move from tui_gen_win_info.
6877 * tui/tui-win.c (tui_win_info::max_width): Move from
6878 tui_gen_win_info.
6879 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
6880 type.
6881 <window_factory>: Likewise.
6882 * tui/tui-layout.c (tui_win_info::resize): Move from
6883 tui_gen_win_info.
6884 (make_standard_window): Change return type.
6885 (get_locator_window, tui_get_window_by_name): Likewise.
6886 (tui_layout_window::apply): Remove a cast.
6887 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
6888 (struct tui_win_info): Merge with tui_gen_win_info.
6889 (struct tui_gen_win_info): Remove.
6890
a30cb6da
TT
68912020-07-01 Tom Tromey <tom@tromey.com>
6892
6893 * tui/tui-stack.h (struct tui_locator_window): Derive from
6894 tui_win_info.
6895 <do_scroll_horizontal, do_scroll_vertical>: New methods.
6896 <can_box>: New method.
6897
1eb2161f
TT
68982020-07-01 Tom Tromey <tom@tromey.com>
6899
6900 * tui/tui-stack.h (struct tui_locator_window): Remove body.
6901
7134f2eb
TT
69022020-07-01 Tom Tromey <tom@tromey.com>
6903
6904 * tui/tui-regs.c (tui_data_window::display_registers_from)
6905 (tui_data_window::display_registers_from)
6906 (tui_data_window::first_data_item_displayed)
6907 (tui_data_window::delete_data_content_windows): Update.
6908 (tui_data_window::refresh_window, tui_data_window::no_refresh):
6909 Remove.
6910 (tui_data_window::check_register_values): Update.
6911 (tui_data_item_window::rerender): Add parameters. Update.
6912 (tui_data_item_window::refresh_window): Remove.
6913 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
6914 virtual.
6915 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
6916 tui_gen_win_info.
6917 <refresh_window, max_height, min_height>: Remove.
6918 <rerender>: Add parameters.
6919 <x, y, visible>: New members.
6920 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
6921 <m_item_width>: New member.
6922
22b7b041
TT
69232020-07-01 Tom Tromey <tom@tromey.com>
6924
6925 * tui/tui-regs.c (tui_data_window::show_register_group)
6926 (tui_data_window::check_register_values): Update.
6927 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
6928 from item_no.
6929
c9753adb
TT
69302020-07-01 Tom Tromey <tom@tromey.com>
6931
6932 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
6933 useless "if".
6934
9ab26b4a
TT
69352020-07-01 Tom Tromey <tom@tromey.com>
6936
6937 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
6938 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
6939
e555083f
TT
69402020-07-01 Tom Tromey <tom@tromey.com>
6941
6942 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
6943 * tui/tui-winsource.h (enum tui_line_or_address_kind)
6944 (struct tui_line_or_address): Move from tui-data.h.
6945 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
6946 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
6947 (tui_cmd_window, tui_source_window_base, tui_source_window)
6948 (tui_disasm_window): Don't declare.
6949 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
6950 to tui-winsource.h.
6951 (SINGLE_KEY): Move to tui-stack.c.
6952
7a02bab7
TT
69532020-07-01 Tom Tromey <tom@tromey.com>
6954
6955 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
6956 std::string.
6957 * tui/tui-regs.c (class tab_expansion_file): New.
6958 (tab_expansion_file::write): New method.
6959 (tui_register_format): Change return type. Use
6960 tab_expansion_file.
6961 (tui_get_register, tui_data_window::display_registers_from)
6962 (tui_data_item_window::rerender): Update.
6963 * tui/tui-io.h (tui_expand_tabs): Don't declare.
6964 * tui/tui-io.c (tui_expand_tabs): Remove.
6965
ea68593b
TT
69662020-07-01 Tom Tromey <tom@tromey.com>
6967
6968 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
6969
a8caed5d
FS
69702020-07-01 Fangrui Song <maskray@google.com>
6971
6972 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
6973
9cdf9820
AKS
69742020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6975
6976 * dwarf2/read.c (set_die_type): Removed conditions to restrict
6977 forms for DW_AT_associated and DW_AT_allocated attributes,
6978 which is already checked in function attr_to_dynamic_prop.
6979
a1520ad8
TT
69802020-06-30 Tom Tromey <tromey@adacore.com>
6981
6982 * dwarf2/read.c (quirk_rust_enum): Correctly call
6983 alloc_rust_variant for default-less enum.
6984
5ac58899
TT
69852020-06-30 Tom Tromey <tromey@adacore.com>
6986
6987 PR build/26183:
6988 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
6989 gdb::to_string.
6990
19b187a9
SM
69912020-06-29 Simon Marchi <simon.marchi@efficios.com>
6992
6993 * gdbarch.sh (displaced_step_copy_insn): Update doc.
6994 * gdbarch.h: Re-generate.
6995
cd4c4c07
TT
69962020-06-28 Tom Tromey <tom@tromey.com>
6997
6998 * command.h (cmd_types): Remove.
6999 (cmd_type): Don't declare.
7000 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
7001 typedef.
7002 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
7003 * cli/cli-decode.c (cmd_type): Remove.
7004
05779d57
PA
70052020-06-27 Pedro Alves <palves@redhat.com>
7006
7007 * fork-child.c (prefork_hook): Adjust.
7008 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
7009 Delete.
7010 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
7011 * inferior.c (inferior::set_tty, inferior::tty): New methods.
7012 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
7013 Remove declarations.
7014 (struct inferior) <set_tty, tty>: New methods.
7015 (struct inferior) <terminal>: Rename to ...
7016 (struct inferior) <m_terminal>: ... this and make private.
7017 * main.c (captured_main_1): Adjust.
7018 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
7019 (mi_cmd_inferior_tty_show): Adjust.
7020 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
7021 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
7022
1776e3e5
NA
70232020-06-26 Nick Alcock <nick.alcock@oracle.com>
7024
7025 * configure.ac: Add --enable-libctf: handle --disable-static
7026 properly.
7027 * acinclude.m4: sinclude ../config/enable.m4.
7028 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
7029 (LIBCTF): Substitute in.
7030 (CTF_DEPS): New, likewise.
7031 (CLIBS): libctf needs symbols from libbfd: move earlier.
7032 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
7033 flags.
7034 * ctfread.c: Surround in ENABLE_LIBCTF.
7035 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
7036 * configure: Regenerate.
7037 * config.in: Likewise.
7038
58373b80
SM
70392020-06-25 Simon Marchi <simon.marchi@efficios.com>
7040
7041 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
7042
277474ee
SM
70432020-06-25 Simon Marchi <simon.marchi@efficios.com>
7044
7045 * inferior.h (struct inferior) <terminal>: Change type to
7046 gdb::unique_xmalloc_ptr<char>.
7047 * inferior.c (inferior::~inferior): Don't free inf->terminal.
7048 * infcmd.c (set_inferior_io_terminal): Don't free terminal
7049 field, adjust to unique pointer.
7050 (get_inferior_io_terminal): Adjust to unique pointer.
7051
6d74da72
AB
70522020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7053
7054 * riscv-tdep.c (riscv_print_registers_info): Loop over all
7055 registers, not just the known core set of registers.
7056
2e52d038
AB
70572020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7058
7059 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
7060 fflags, frm, and fcsr registers.
7061 (riscv_register_reggroup_p): Remove unknown CSRs from save and
7062 restore groups.
7063 (riscv_tdesc_unknown_reg): New function.
7064 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
7065 tdesc_use_registers.
7066 * riscv-tdep.h (struct gdbarch_tdep): Add
7067 unknown_csrs_first_regnum, unknown_csrs_count,
7068 duplicate_fflags_regnum, duplicate_frm_regnum, and
7069 duplicate_fcsr_regnum fields.
7070
be64fd07
AB
70712020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7072
7073 * target-descriptions.c (tdesc_use_registers): Add new parameter a
7074 callback, use the callback (when not null) to help number unknown
7075 registers.
7076 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
7077 (tdesc_use_registers): Add extra parameter to declaration.
7078
3b9fce96
AB
70792020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7080
7081 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
7082 in the file.
7083 (class riscv_pending_register_alias): Likewise.
7084 (riscv_register_feature::register_info): Change 'required_p' field
7085 to 'required', and change its type. Add 'check' member function.
7086 (riscv_register_feature::register_info::check): Define new member
7087 function.
7088 (riscv_xreg_feature): Change initialisation of 'required' field.
7089 (riscv_freg_feature): Likewise.
7090 (riscv_virtual_feature): Likewise.
7091 (riscv_csr_feature): Likewise.
7092 (riscv_check_tdesc_feature): Take extra parameter, the csr
7093 tdesc_feature, rewrite the function to use the new
7094 riscv_register_feature::register_info::check function.
7095 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
7096
865bad26
AB
70972020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7098
7099 * features/Makefile: Remove all references to the deleted files
7100 below.
7101 * features/riscv/32bit-csr.c: Deleted.
7102 * features/riscv/32bit-csr.xml: Deleted.
7103 * features/riscv/64bit-csr.c: Deleted.
7104 * features/riscv/64bit-csr.xml: Deleted.
7105 * features/riscv/rebuild-csr-xml.sh: Deleted.
7106
ed69cbc8
AB
71072020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7108
7109 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
7110 whitespace error for declaration of names member variable.
7111 (struct riscv_register_feature): Add new prefer_first_name member
7112 variable, and fix whitespace error in declaration of registers.
7113 (riscv_xreg_feature): Initialize prefer_first_name field.
7114 (riscv_freg_feature): Likewise.
7115 (riscv_virtual_feature): Likewise.
7116 (riscv_csr_feature): Likewise.
7117 (riscv_register_name): Expand on comments. Remove register name
7118 modifications for CSR and virtual registers.
7119
4445e8f5
AB
71202020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7121
7122 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
7123 errors.
7124
767a879e
AB
71252020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7126
7127 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
7128 riscv-opc.h.
7129 (class riscv_pending_register_alias): New class.
7130 (riscv_check_tdesc_feature): Take vector of pending aliases and
7131 populate it as appropriate.
7132 (riscv_setup_register_aliases): Delete.
7133 (riscv_gdbarch_init): Create vector of pending aliases and pass it
7134 to riscv_check_tdesc_feature in all cases. Use the vector to
7135 create the register aliases.
7136
bb6e55f3
RO
71372020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7138
7139 * sol2-tdep.c (sol2_static_transform_name): Remove.
7140 (sol2_init_abi): Don't register it.
7141 * gdbarch.sh (static_transform_name): Remove.
7142 * gdbarch.c, gdbarch.h: Regenerate.
7143
7144 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
7145 gdbarch_static_transform_name.
7146 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
7147 * stabsread.c (define_symbol) <'X'>: Remove.
7148 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
7149 handling.
7150 <'V'>: Likewise.
7151 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
7152 <'S'>: Remove call to gdbarch_static_transform_name.
7153
c6d36836
RO
71542020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7155
7156 * procfs.c (procfs_pre_trace): New function.
7157 (procfs_target::create_inferior): Pass it to fork_inferior.
7158
a7e6196b
RO
71592020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7160
7161 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
7162 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
7163 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
7164 sol2-tdep.o, sparc-sol2-tdep.o.
7165 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
7166 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
7167 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
7168 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
7169
d412e696
RO
71702020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7171
7172 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
7173 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
7174 Call sol2_init_abi.
7175 Remove calls to set_gdbarch_skip_solib_resolver,
7176 set_gdbarch_core_pid_to_str.
7177 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
7178 (i386_sol2_static_transform_name): Remove.
7179 (i386_sol2_init_abi): Call sol2_init_abi.
7180 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7181 set_gdbarch_static_transform_name,
7182 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7183 Use sol2_sigtramp_p.
7184 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
7185 (sol2_sigtramp_p): New function.
7186 (sol2_static_transform_name): New function.
7187 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
7188 (sol2_init_abi): New function.
7189 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
7190 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
7191 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
7192 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
7193 (sparc_sol2_static_transform_name): Remove.
7194 (sparc32_sol2_init_abi): Call sol2_init_abi.
7195 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7196 set_gdbarch_static_transform_name,
7197 set_gdbarch_skip_solib_resolver,
7198 set_gdbarch_core_pid_to_str.
7199 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
7200 (sparc_sol2_static_transform_name): Remove
7201 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
7202 call sol2_sigtramp_p.
7203 (sparc64_sol2_init_abi): Call sol2_init_abi.
7204 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7205 set_gdbarch_static_transform_name,
7206 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7207
a8654e7d
PW
72082020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7209
7210 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
7211 * exec.c (validate_exec_file): If from_tty, set both
7212 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
7213 * symfile.c (symbol_file_add_with_addrs): if always_confirm
7214 and from_tty, unconditionally ask a confirmation.
7215
caa7fd04
AB
72162020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7217
7218 * target-descriptions.c (tdesc_architecture_name): Protect against
7219 NULL pointer dereference.
7220 (maint_print_xml_tdesc_cmd): New function.
7221 (_initialize_target_descriptions): Register new 'maint print
7222 xml-tdesc' command and give it the filename completer.
7223 * NEWS: Mention new 'maint print xml-tdesc' command.
7224
fbf42f4e
AB
72252020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7226
7227 * target-descriptions.c (class tdesc_compatible_info): New class.
7228 (struct target_desc): Change type of compatible vector.
7229 (tdesc_compatible_p): Update for change in type of
7230 target_desc::compatible.
7231 (tdesc_compatible_info_list): New function.
7232 (tdesc_compatible_info_arch_name): New function.
7233 (tdesc_add_compatible): Update for change in type of
7234 target_desc::compatible.
7235 (print_c_tdesc::visit_pre): Likewise.
7236
20821f4e
AB
72372020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7238
7239 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
7240 whitespace to underscore.
7241 (maint_print_c_tdesc_cmd): Use fake filename for target
7242 descriptions that came from the target.
7243 (_initialize_target_descriptions): Add filename command completion
7244 for 'maint print c-tdesc'.
7245
1fb5ee62
SM
72462020-06-23 Simon Marchi <simon.marchi@efficios.com>
7247
7248 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
7249 lines.
7250
fc3ecb3e
SM
72512020-06-23 Simon Marchi <simon.marchi@efficios.com>
7252
7253 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
7254 lines.
7255 (dwarf2_find_location_expression): Likewise.
7256 (call_site_parameter_matches): Likewise.
7257 (dwarf2_compile_expr_to_ax): Likewise.
7258 (disassemble_dwarf_expression): Likewise.
7259 (loclist_describe_location): Likewise.
7260
236ef034
PA
72612020-06-23 Pedro Alves <palves@redhat.com>
7262
7263 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
7264 progspace-and-thread.h. Include scoped-mock-context.h instead.
7265 (register_to_value_test): Use scoped_mock_context.
7266 * regcache.c: Include "scoped-mock-context.h".
7267 (cooked_read_test): Don't error out if a target is already pushed.
7268 Use scoped_mock_context. Adjust.
7269 * scoped-mock-context.h: New file.
7270
39e7ecca
AB
72712020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7272
7273 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
7274 initializer.
7275 (ada_language::is_string_type_p): New member function.
7276 * c-lang.c (c_language_data): Delete la_is_string_type_p
7277 initializer.
7278 (cplus_language_data): Likewise.
7279 (asm_language_data): Likewise.
7280 (minimal_language_data): Likewise.
7281 * d-lang.c (d_language_data): Likewise.
7282 * f-lang.c (f_is_string_type_p): Delete function, implementation
7283 moved to f_language::is_string_type_p.
7284 (f_language_data): Delete la_is_string_type_p initializer.
7285 (f_language::is_string_type_p): New member function,
7286 implementation from f_is_string_type_p.
7287 * go-lang.c (go_is_string_type_p): Delete function, implementation
7288 moved to go_language::is_string_type_p.
7289 (go_language_data): Delete la_is_string_type_p initializer.
7290 (go_language::is_string_type_p): New member function,
7291 implementation from go_is_string_type_p.
7292 * language.c (language_defn::is_string_type_p): Define new member
7293 function.
7294 (default_is_string_type_p): Make static, add comment copied from
7295 header file.
7296 (unknown_language_data): Delete la_is_string_type_p initializer.
7297 (unknown_language::is_string_type_p): New member function.
7298 (auto_language_data): Delete la_is_string_type_p initializer.
7299 (auto_language::is_string_type_p): New member function.
7300 * language.h (language_data): Delete la_is_string_type_p field.
7301 (language_defn::is_string_type_p): Declare new function.
7302 (default_is_string_type_p): Delete desclaration, move comment to
7303 definition.
7304 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
7305 moved to m2_language::is_string_type_p.
7306 (m2_language_data): Delete la_is_string_type_p initializer.
7307 (m2_language::is_string_type_p): New member function,
7308 implementation from m2_is_string_type_p.
7309 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
7310 initializer.
7311 * opencl-lang.c (opencl_language_data): Likewise.
7312 * p-lang.c (pascal_is_string_type_p): Delete function,
7313 implementation moved to pascal_language::is_string_type_p.
7314 (pascal_language_data): Delete la_is_string_type_p initializer.
7315 (pascal_language::is_string_type_p): New member function,
7316 implementation from pascal_is_string_type_p.
7317 * rust-lang.c (rust_is_string_type_p): Delete function,
7318 implementation moved to rust_language::is_string_type_p.
7319 (rust_language_data): Delete la_is_string_type_p initializer.
7320 (rust_language::is_string_type_p): New member function,
7321 implementation from rust_is_string_type_p.
7322 * valprint.c (val_print_scalar_or_string_type_p): Update call to
7323 is_string_type_p.
7324
4ffc13fb
AB
73252020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7326
7327 * ada-lang.c (ada_language_data): Delete la_print_typedef
7328 initializer.
7329 (ada_language::print_typedef): New member function.
7330 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
7331 (cplus_language_data): Likewise.
7332 (asm_language_data): Likewise.
7333 (minimal_language_data): Likewise.
7334 * d-lang.c (d_language_data): Likewise.
7335 * f-lang.c (f_language_data): Likewise.
7336 (f_language::print_typedef): New member function.
7337 * go-lang.c (go_language_data): Delete la_print_typedef
7338 initializer.
7339 * language.c (language_defn::print_typedef): Define member
7340 function.
7341 (unknown_language_data): Delete la_print_typedef initializer.
7342 (unknown_language::print_typedef): New member function.
7343 (auto_language_data): Delete la_print_typedef initializer.
7344 (auto_language::print_typedef): New member function.
7345 * language.h (language_data): Delete la_print_typedef field.
7346 (language_defn::print_typedef): Declare new member function.
7347 (LA_PRINT_TYPEDEF): Update call to print_typedef.
7348 (default_print_typedef): Delete declaration.
7349 * m2-lang.c (m2_language_data): Delete la_print_typedef
7350 initializer.
7351 (m2_language::print_typedef): New member function.
7352 * objc-lang.c (objc_language_data): Delete la_print_typedef
7353 initializer.
7354 * opencl-lang.c (opencl_language_data): Likewise.
7355 * p-lang.c (pascal_language_data): Likewise.
7356 (pascal_language::print_typedef): New member function.
7357 * rust-lang.c (rust_print_typedef): Delete function,
7358 implementation moved to rust_language::print_typedef.
7359 (rust_language): Delete la_print_typedef initializer.
7360 (rust_language::print_typedef): New member function,
7361 implementation from rust_print_typedef.
7362 * typeprint.c (default_print_typedef): Delete.
7363
d711ee67
AB
73642020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7365
7366 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
7367 (ada_language::printstr): New member function.
7368 * c-lang.c (c_language_data): Delete la_printstr initializer.
7369 (cplus_language_data): Likewise.
7370 (asm_language_data): Likewise.
7371 (minimal_language_data): Likewise.
7372 * d-lang.c (d_language_data): Likewise.
7373 * f-lang.c (f_printstr): Rename to f_language::printstr.
7374 (f_language_data): Delete la_printstr initializer.
7375 (f_language::printstr): New member function, implementation from
7376 f_printstr.
7377 * go-lang.c (go_language_data): Delete la_printstr initializer.
7378 * language.c (language_defn::printstr): Define new member
7379 function.
7380 (unk_lang_printstr): Delete.
7381 (unknown_language_data): Delete la_printstr initializer.
7382 (unknown_language::printstr): New member function.
7383 (auto_language_data): Delete la_printstr initializer.
7384 (auto_language::printstr): New member function.
7385 * language.h (language_data): Delete la_printstr field.
7386 (language_defn::printstr): Declare new member function.
7387 (LA_PRINT_STRING): Update call to printstr.
7388 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
7389 (m2_language_data): Delete la_printstr initializer.
7390 (m2_language::printstr): New member function, implementation from
7391 m2_printstr.
7392 * objc-lang.c (objc_language_data): Delete la_printstr
7393 initializer.
7394 * opencl-lang.c (opencl_language_data): Likewise.
7395 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
7396 (pascal_language_data): Delete la_printstr initializer.
7397 (pascal_language::printstr): New member function, implementation
7398 from pascal_printstr.
7399 * p-lang.h (pascal_printstr): Delete declaration.
7400 * rust-lang.c (rust_printstr): Update header comment.
7401 (rust_language_data): Delete la_printstr initializer.
7402 (rust_language::printstr): New member function.
7403
52b50f2c
AB
74042020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7405
7406 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
7407 (ada_language::printchar): New member function.
7408 * c-lang.c (c_language_data): Delete la_printchar initializer.
7409 (cplus_language_data): Likewise.
7410 (asm_language_data): Likewise.
7411 (minimal_language_data): Likewise.
7412 * d-lang.c (d_language_data): Likewise.
7413 * f-lang.c (f_printchar): Rename to f_language::printchar.
7414 (f_language_data): Delete la_printchar initializer.
7415 (f_language::printchar): New member function, implementation from
7416 f_printchar.
7417 * go-lang.c (go_language_data): Delete la_printchar initializer.
7418 * language.c (unk_lang_printchar): Delete.
7419 (language_defn::printchar): Define new member function.
7420 (unknown_language_data): Delete la_printchar initializer.
7421 (unknown_language::printchar): New member function.
7422 (auto_language_data): Delete la_printchar initializer.
7423 (auto_language::printchar): New member function.
7424 * language.h (language_data): Delete la_printchar field.
7425 (language_defn::printchar): Declare new member function.
7426 (LA_PRINT_CHAR): Update call to printchar.
7427 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
7428 (m2_language::printchar): New member function.
7429 * objc-lang.c (objc_language_data): Delete la_printchar
7430 initializer.
7431 * opencl-lang.c (opencl_language_data): Likewise.
7432 * p-lang.c (pascal_language_data): Delete la_printchar
7433 initializer.
7434 (pascal_language::printchar): New member function.
7435 * rust-lang.c (rust_printchar): Rename to
7436 rust_language::printchar.
7437 (rust_language_data): Delete la_printchar initializer.
7438 (rust_language::printchar): New member function, implementation
7439 from rust_printchar.
7440
ec8cec5b
AB
74412020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7442
7443 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
7444 (ada_language_data): Delete la_emitchar initializer.
7445 (ada_language::emitchar): New member function, implementation from
7446 emit_char.
7447 * c-lang.c (c_language_data): Delete la_emitchar initializer.
7448 (cplus_language_data): Likewise.
7449 (asm_language_data): Likewise.
7450 (minimal_language_data): Likewise.
7451 * d-lang.c (d_language_data): Likewise.
7452 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
7453 (f_language_data): Delete la_emitchar initializer.
7454 (f_language::emitchar): New member function, implementation from
7455 f_emit_char.
7456 * go-lang.c (go_language_data): Delete la_emitchar initializer.
7457 * language.c (unk_lang_emit_char): Delete.
7458 (language_defn::emitchar): New member function definition.
7459 (unknown_language_data): Delete la_emitchar initializer.
7460 (unknown_language::emitchar): New member function.
7461 (auto_language_data): Delete la_emitchar initializer.
7462 (auto_language::emitchar): New member function.
7463 * language.h (language_data): Delete la_emitchar field.
7464 (language_defn::emitchar): New member field declaration.
7465 (LA_EMIT_CHAR): Update call to emitchar.
7466 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
7467 (m2_language_data): Delete la_emitchar initializer.
7468 (m2_language::emitchar): New member function, implementation from
7469 m2_emit_char.
7470 * objc-lang.c (objc_language_data): Delete la_emitchar
7471 initializer.
7472 * opencl-lang.c (opencl_language_data): Likewise.
7473 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
7474 (pascal_language_data): Delete la_emitchar initializer.
7475 (pascal_language::emitchar): New member function, implementation
7476 from pascal_emit_char.
7477 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
7478 (rust_language_data): Delete la_emitchar initializer.
7479 (rust_language::emitchar): New member function, implementation
7480 from rust_emitchar.
7481
1bf9c363
AB
74822020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7483
7484 * ada-lang.c (resolve): Rename to ada_language::post_parser.
7485 (ada_language_data): Delete la_post_parser initializer.
7486 (ada_language::post_parser): New member function.
7487 * c-lang.c (c_language_data): Delete la_post_parser initializer.
7488 (cplus_language_data): Likewise.
7489 (asm_language_data): Likewise.
7490 (minimal_language_data): Likewise.
7491 * d-lang.c (d_language_data): Likewise.
7492 * f-lang.c (f_language_data): Likewise.
7493 * go-lang.c (go_language_data): Likewise.
7494 * language.c (unknown_language_data): Likewise.
7495 (auto_language_data): Likewise.
7496 * language.h (language_data): Delete la_post_parser field.
7497 (language_defn::post_parser): New member function.
7498 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
7499 * objc-lang.c (objc_language_data): Likewise.
7500 * opencl-lang.c (opencl_language_data): Likewise.
7501 * p-lang.c (pascal_language_data): Likewise.
7502 * parse.c (parse_exp_in_context): Update call to post_parser.
7503 (null_post_parser): Delete definition.
7504 * parser-defs.h (null_post_parser): Delete declaration.
7505 * rust-lang.c (rust_language_data): Delete la_post_parser
7506 initializer.
7507
87afa652
AB
75082020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7509
7510 * ada-lang.c (parse): Rename to ada_language::parser.
7511 (ada_language_data): Delete la_parser initializer.
7512 (ada_language::parser): New member function, implementation from
7513 parse.
7514 * c-lang.c (c_language_data): Delete la_parser initializer.
7515 (cplus_language_data): Likewise.
7516 (asm_language_data): Likewise.
7517 (minimal_language_data): Likewise.
7518 * d-lang.c (d_language_data): Likewise.
7519 (d_language::parser): New member function.
7520 * f-lang.c (f_language_data): Delete la_parser initializer.
7521 (f_language::parser): New member function.
7522 * go-lang.c (go_language_data): Delete la_parser initializer.
7523 (go_language::parser): New member function.
7524 * language.c (unk_lang_parser): Delete.
7525 (language_defn::parser): Define new member function.
7526 (unknown_language_data): Delete la_parser initializer.
7527 (unknown_language::parser): New member function.
7528 (auto_language_data): Delete la_parser initializer.
7529 (auto_language::parser): New member function.
7530 * language.h (language_data): Delete la_parser field.
7531 (language_defn::parser): Declare new member function.
7532 * m2-lang.c (m2_language_data): Delete la_parser initializer.
7533 (m2_language::parser): New member function.
7534 * objc-lang.c (objc_language_data): Delete la_parser initializer.
7535 * opencl-lang.c (opencl_language_data): Likewise.
7536 * p-lang.c (pascal_language_data): Likewise.
7537 (pascal_language::parser): New member function.
7538 * parse.c (parse_exp_in_context): Update call to parser.
7539 * rust-lang.c (rust_language_data): Delete la_parser initializer.
7540 (rust_language::parser): New member function.
7541
37825800
AB
75422020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7543
7544 * top.c (print_gdb_configuration): Print --with-python-libdir
7545 configuration value.
7546
5b860c93
PW
75472020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7548
7549 * NEWS: Mention change to the alias command.
7550
cf00cd6f
PW
75512020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7552
7553 * cli/cli-cmds.c (lookup_cmd_for_default_args)
7554 (alias_command_completer)
7555 (make_alias_options_def_group): New functions.
7556 (alias_opts, alias_option_defs): New struct and array.
7557 (alias_usage_error): Update usage.
7558 (alias_command): Handles optional DEFAULT-ARGS... arguments.
7559 Use option framework.
7560 (_initialize_cli_cmds): Update alias command help.
7561 Update aliases command help.
7562 (show_user):
7563 Add NULL for new default_args lookup_cmd argument.
7564 (valid_command_p): Rename to validate_aliased_command.
7565 Add NULL for new default_args lookup_cmd argument. Verify that the
7566 aliased_command has no default args.
7567 * cli/cli-decode.c (help_cmd): Show aliases definitions.
7568 (lookup_cmd_1, lookup_cmd): New argument default_args.
7569 (add_alias_cmd):
7570 Add NULL for new default_args lookup_cmd argument.
7571 (print_help_for_command): Show default args under the layout
7572 alias some_alias = some_aliased_cmd some_alias_default_arg.
7573 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
7574 xfree default_args in destructor.
7575 * cli/cli-script.c (process_next_line, do_define_command):
7576 Add NULL for new default_args lookup_cmd argument.
7577 * command.h: Declare new default_args argument in lookup_cmd
7578 and lookup_cmd_1.
7579 * completer.c (complete_line_internal_1):
7580 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7581 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
7582 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
7583 Likewise.
7584 * infcmd.c (_initialize_infcmd): Likewise.
7585 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
7586 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
7587 * python/py-param.c (add_setshow_generic): Likewise.
7588 * remote.c (_initialize_remote): Likewise.
7589 * top.c (execute_command): Prepend default_args if command has some.
7590 (set_verbose):
7591 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7592 * tracepoint.c (validate_actionline, encode_actions_1):
7593 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7594
bd920864
TBA
75952020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7596
7597 * jit.c (jit_read_descriptor): Use bool as the return type.
7598 (jit_breakpoint_re_set_internal): Use bool as the return type.
7599 Invert the return value logic; return true if the jit breakpoint
7600 has been successfully initialized.
7601 (jit_inferior_init): Update the call to
7602 jit_breakpoint_re_set_internal.
7603
f8098322
PA
76042020-06-22 Pedro Alves <palves@redhat.com>
7605
7606 PR gdb/25939
7607 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
7608 Use the current inferior instead. Don't return
7609 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
7610 wait again.
7611 * sol-thread.c (sol_thread_target::wait): Don't reference
7612 inferior_ptid.
7613 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
7614 (sol_update_thread_list_callback): Use the current inferior's pid
7615 instead of inferior_ptid.
7616
196535a6
RO
76172020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7618
7619 * procfs.c: Cleanup many comments.
7620
7621 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
7622 (AFTER_WATCHFLAG): Replace by value.
7623
7624 (MAIN_PROC_NAME_FORMAT): Inline ...
7625 (create_procinfo): ... here.
7626
7627 (procfs_debug_inferior): Remove SYS_exec handling.
7628 (syscall_is_exec): Likewise.
7629 (procfs_set_exec_trap): Likewise.
7630
7631 (syscall_is_lwp_exit): Inline in callers.
7632 (syscall_is_exit): Likewise.
7633 (syscall_is_exec): Likewise.
7634 (syscall_is_lwp_create): Likewise.
7635
7636 (invalidate_cache): Remove #if 0 code.
7637
7638 (make_signal_thread_runnable): Remove.
7639 (procfs_target::resume): Remove #if 0 code.
7640
cf6f3e86
RO
76412020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7642
7643 PR gdb/25939
7644 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
7645 call ...
7646 (procfs_target::create_inferior): ... here.
7647
48e9cc84
PW
76482020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7649
7650 * exec.c (validate_exec_file): Ensure the build-id is up to
7651 date by calling reopen_exec_file (that checks file timestamp
7652 to decide to re-read the file).
7653
3922b302
PA
76542020-06-18 Pedro Alves <palves@redhat.com>
7655
7656 PR gdb/25412
7657 * gdbthread.h (delete_thread, delete_thread_silent)
7658 (find_thread_ptid): Update comments.
7659 * thread.c (current_thread_): New global.
7660 (is_current_thread): Move higher, and reimplement.
7661 (inferior_thread): Reimplement.
7662 (set_thread_exited): Use bool. Add assertions.
7663 (add_thread_silent): Simplify thread-reuse handling by always
7664 calling delete_thread.
7665 (delete_thread): Remove intro comment.
7666 (find_thread_ptid): Skip exited threads.
7667 (switch_to_thread_no_regs): Write to current_thread_.
7668 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
7669 INFERIOR_PTID. Clear current_thread_.
7670
6dbdab44
PA
76712020-06-18 Pedro Alves <palves@redhat.com>
7672
7673 * aix-thread.c (pd_update): Use switch_to_thread.
7674
2da4b788
PA
76752020-06-18 Pedro Alves <palves@redhat.com>
7676
7677 * ravenscar-thread.c (ravenscar_thread_target): Update.
7678 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
7679 (ravenscar_thread_target::add_active_thread): ... this. Don't
7680 set m_base_ptid here. Update to avoid referencing inferior_ptid.
7681 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
7682
50838d1b
PA
76832020-06-18 Pedro Alves <palves@redhat.com>
7684
7685 * nat/windows-nat.c (current_windows_thread): Remove.
7686 * nat/windows-nat.h (current_windows_thread): Remove.
7687 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
7688 Adjust.
7689 (display_selectors): Adjust to fetch the current
7690 windows_thread_info based on inferior_ptid.
7691 (fake_create_process): No longer write to current_windows_thread.
7692 (windows_nat_target::get_windows_debug_event):
7693 Don't set inferior_ptid or current_windows_thread.
7694 (windows_nat_target::wait): Adjust to not rely on
7695 current_windows_thread.
7696 (do_initial_windows_stuff): Now a method of windows_nat_target.
7697 Switch to the last_ptid thread.
7698 (windows_nat_target::attach): Adjust.
7699 (windows_nat_target::detach): Use switch_to_no_thread instead of
7700 writing to inferior_ptid directly.
7701 (windows_nat_target::create_inferior): Adjust.
7702
31ce04e9
PA
77032020-06-18 Pedro Alves <palves@redhat.com>
7704
7705 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
7706
1ee1a363
PA
77072020-06-18 Pedro Alves <palves@redhat.com>
7708
7709 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
7710 after creating it, instead of writing to inferior_ptid. Don't
7711 write to inferior_ptid.
7712
6d350754
PA
77132020-06-18 Pedro Alves <palves@redhat.com>
7714
7715 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
7716
5d971d48
PA
77172020-06-18 Pedro Alves <palves@redhat.com>
7718
7719 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
7720 it, instead of writing to inferior_ptid.
7721
86e57d1b
PA
77222020-06-18 Pedro Alves <palves@redhat.com>
7723
7724 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
7725 to inferior_ptid.
7726
f2e1c129
PA
77272020-06-18 Pedro Alves <palves@redhat.com>
7728
7729 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
7730 instead of writing to inferior_ptid directly.
7731
60db1b85
PA
77322020-06-18 Pedro Alves <palves@redhat.com>
7733
7734 * corelow.c (core_target::close): Use switch_to_no_thread instead
7735 of writing to inferior_ptid directly.
7736 (add_to_thread_list, core_target_open): Use switch_to_thread
7737 instead of writing to inferior_ptid directly.
7738
fe7d6a8d
PA
77392020-06-18 Pedro Alves <palves@redhat.com>
7740
7741 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
7742 inferior_ptid.
7743 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
7744 inferior_ptid.
7745 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
7746 inferior_ptid directly.
7747 (darwin_nat_target::init_thread_list): Switch to thread, instead
7748 of writing to inferior_ptid.
7749 (darwin_nat_target::attach): Don't write to inferior_ptid.
7750 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
7751
975f8708
PA
77522020-06-18 Pedro Alves <palves@redhat.com>
7753
7754 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
7755 thread.
7756 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
7757 Instead use switch_to_thread.
7758 (gnu_nat_target::detach): Use switch_to_no_thread
7759 instead of writing to inferior_ptid directly. Used passed-in
7760 inferior instead of looking up the inferior by pid.
7761
1a204730
PA
77622020-06-18 Pedro Alves <palves@redhat.com>
7763
7764 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
7765 inferior_ptid.
7766
ebe84f23
PA
77672020-06-18 Pedro Alves <palves@redhat.com>
7768
7769 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
7770 inferior_ptid.
7771 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
7772 thread.
7773 (nto_procfs_target::detach): Avoid referencing
7774 inferior_ptid. Use switch_to_no_thread instead of writing to
7775 inferior_ptid directly.
7776 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
7777 instead of writing to inferior_ptid directly.
7778 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
7779 to thread.
7780
191f02e5
PA
77812020-06-18 Pedro Alves <palves@redhat.com>
7782
7783 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
7784 after creating it, instead of writing to inferior_ptid.
7785 (gdbsim_target_open): Use switch_to_no_thread instead of writing
7786 to inferior_ptid directly.
7787 (gdbsim_target::wait): Don't write to inferior_ptid.
7788
0ac55310
PA
77892020-06-18 Pedro Alves <palves@redhat.com>
7790
7791 * remote.c (remote_target::remote_notice_new_inferior): Use
7792 switch_to_thread instead of writing to inferior_ptid directly.
7793 (remote_target::add_current_inferior_and_thread): Use
7794 switch_to_no_thread instead of writing to inferior_ptid directly.
7795 (extended_remote_target::attach): Use switch_to_inferior_no_thread
7796 and switch_to_thread instead of using set_current_inferior or
7797 writing to inferior_ptid directly.
7798
5233f39b
PA
77992020-06-18 Pedro Alves <palves@redhat.com>
7800
7801 * tracectf.c (ctf_target_open): Switch to added thread instead of
7802 writing to inferior_ptid directly.
7803 (ctf_target::close): Use switch_to_no_thread instead of writing to
7804 inferior_ptid directly.
7805
087e161b
PA
78062020-06-18 Pedro Alves <palves@redhat.com>
7807
7808 * tracefile-tfile.c (tfile_target_open): Don't write to
7809 inferior_ptid directly, instead switch to added thread.
7810 (tfile_target::close): Use switch_to_no_thread instead of writing
7811 to inferior_ptid directly.
7812
7fb43e53
PA
78132020-06-18 Pedro Alves <palves@redhat.com>
7814
7815 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
7816 (procfs_target::detach): Use switch_to_no_thread
7817 instead of writing to inferior_ptid directly.
7818 (do_attach): Change return type to void. Switch to the added
7819 thread.
7820 (procfs_target::create_inferior): Switch to the added thread.
7821 (procfs_do_thread_registers): Don't write to inferior_ptid.
7822
18493a00
PA
78232020-06-18 Pedro Alves <palves@redhat.com>
7824
7825 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
7826 of writing to inferior_ptid.
7827 (scoped_restore_exited_inferior): Delete.
7828 (handle_vfork_child_exec_or_exit): Simplify using
7829 scoped_restore_current_pspace_and_thread. Use switch_to_thread
7830 instead of writing to inferior_ptid.
7831 (THREAD_STOPPED_BY): Delete.
7832 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
7833 (thread_stopped_by_hw_breakpoint): Delete.
7834 (save_waitstatus): Use
7835 scoped_restore_current_thread+switch_to_thread, and call
7836 target_stopped_by_watchpoint instead of
7837 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
7838 instead of thread_stopped_by_sw_breakpoint, and
7839 target_stopped_by_hw_breakpoint instead of
7840 thread_stopped_by_hw_breakpoint.
7841 (handle_inferior_event)
7842 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
7843 inferior_ptid directly, nor
7844 set_current_inferior/set_current_program_space. Use
7845 switch_to_thread / switch_to_inferior_no_thread instead.
7846
a0776b13
PA
78472020-06-18 Pedro Alves <palves@redhat.com>
7848
7849 * target.c (generic_mourn_inferior): Use switch_to_no_thread
7850 instead of writing to inferior_ptid.
7851
6155c136
PA
78522020-06-18 Pedro Alves <palves@redhat.com>
7853
7854 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
7855 added thread.
7856 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
7857 to the added thread.
7858 (inf_ptrace_target::detach_success): Use switch_to_no_thread
7859 instead of writing to inferior_ptid.
7860
c5316fc6
PA
78612020-06-18 Pedro Alves <palves@redhat.com>
7862
7863 * gdbarch-selftests.c: Include "progspace-and-thread.h".
7864 (register_to_value_test): Mock a program_space too. Heap-allocate
7865 the address space. Don't write to inferior_ptid. Use
7866 switch_to_thread instead.
7867
8df01799
PA
78682020-06-18 Pedro Alves <palves@redhat.com>
7869
7870 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
7871 Delete.
7872 (find_signalled_thread()): New, factored out from
7873 linux_make_corefile_notes and adjusted to handle exited threads.
7874 (linux_make_corefile_notes): Adjust to use the new
7875 find_signalled_thread.
7876
41792d68
PA
78772020-06-18 Pedro Alves <palves@redhat.com>
7878
7879 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
7880 of saving/restoring inferior_ptid.
7881
612f258a
TT
78822020-06-17 Tom Tromey <tom@tromey.com>
7883
7884 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
7885 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
7886 declare.
7887 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
7888
efb763a5
SM
78892020-06-15 Simon Marchi <simon.marchi@efficios.com>
7890
7891 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
7892 of partial symtabs.
7893
2951f6c0
SM
78942020-06-17 Simon Marchi <simon.marchi@efficios.com>
7895
7896 * regformats/reg-arm.dat: Remove.
7897 * regformats/reg-bfin.dat: Remove.
7898 * regformats/reg-cris.dat: Remove.
7899 * regformats/reg-crisv32.dat: Remove.
7900 * regformats/reg-m32r.dat: Remove.
7901 * regformats/reg-tilegx.dat: Remove.
7902 * regformats/reg-tilegx32.dat: Remove.
7903
7d458ea5
SM
79042020-06-17 Simon Marchi <simon.marchi@efficios.com>
7905
7906 * features/Makefile (WHICH): Remove arm files.
7907 * regformats/arm/arm-with-iwmmxt.dat: Remove.
7908 * regformats/arm/arm-with-neon.dat: Remove.
7909 * regformats/arm/arm-with-vfpv2.dat: Remove.
7910 * regformats/arm/arm-with-vfpv3.dat: Remove.
7911
3af96c0d
SM
79122020-06-17 Simon Marchi <simon.marchi@efficios.com>
7913
7914 * features/Makefile (XMLTOC): Remove rx.xml.
7915
b25e22fd
PA
79162020-06-17 Pedro Alves <palves@redhat.com>
7917
7918 * gdbthread.h (thread_control_state) <trap_expected> Update
7919 comments.
7920
a78a19b1
AB
79212020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7922
7923 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
7924 ada_language::lookup_symbol_nonlocal.
7925 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
7926 (ada_language::lookup_symbol_nonlocal): New member function,
7927 implementation from ada_lookup_symbol_nonlocal.
7928 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
7929 initializer.
7930 (cplus_language_data): Delete la_lookup_symbol_nonlocal
7931 initializer.
7932 (cplus_language::lookup_symbol_nonlocal): New member function.
7933 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
7934 (minimal_language_data) Likewise.
7935 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
7936 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
7937 initializer.
7938 (d_language::lookup_symbol_nonlocal): New member function.
7939 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
7940 initializer.
7941 (f_language::lookup_symbol_nonlocal): New member function.
7942 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
7943 initializer.
7944 * language.c (unknown_language_data): Likewise.
7945 (auto_language_data): Likewise.
7946 * language.h (language_data): Delete la_lookup_symbol_nonlocal
7947 field.
7948 (language_defn::lookup_symbol_nonlocal): New member function.
7949 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
7950 initializer.
7951 * objc-lang.c (objc_language_data): Likewise.
7952 * opencl-lang.c (opencl_language_data): Likewise.
7953 * p-lang.c (pascal_language_data): Likewise.
7954 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
7955 rust_language::lookup_symbol_nonlocal.
7956 (rust_language_data): Delete la_lookup_symbol_nonlocal
7957 initializer.
7958 (rust_language::lookup_symbol_nonlocal): New member function,
7959 implementation from rust_lookup_symbol_nonlocal.
7960 * symtab.c (lookup_symbol_aux): Update call to
7961 lookup_symbol_nonlocal.
7962 (basic_lookup_symbol_nonlocal): Rename to...
7963 (language_defn::lookup_symbol_nonlocal): ...this, and update
7964 header comment. Remove language_defn parameter, and replace with
7965 uses of `this'.
7966 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
7967
ebe2334e
AB
79682020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7969
7970 * ada-lang.c (ada_language_data): Delete la_value_print_inner
7971 initializer.
7972 (ada_language::value_print_inner): New member function.
7973 * c-lang.c (c_language_data): Delete la_value_print_inner
7974 initializer.
7975 (cplus_language_data): Likewise.
7976 (asm_language_data): Likewise.
7977 (minimal_language_data): Likewise.
7978 * d-lang.c (d_language_data): Likewise.
7979 (d_language::value_print_inner): New member function.
7980 * f-lang.c (f_language_data): Delete la_value_print_inner
7981 initializer.
7982 (f_language::value_print_inner): New member function.
7983 * f-lang.h (f_value_print_innner): Rename to...
7984 (f_value_print_inner): ...this (note spelling of 'inner').
7985 * f-valprint.c (f_value_print_innner): Rename to...
7986 (f_value_print_inner): ...this (note spelling of 'inner').
7987 * go-lang.c (go_language_data): Delete la_value_print_inner
7988 initializer.
7989 (go_language::value_print_inner): New member function.
7990 * language.c (language_defn::value_print_inner): Define new member
7991 function.
7992 (unk_lang_value_print_inner): Delete.
7993 (unknown_language_data): Delete la_value_print_inner initializer.
7994 (unknown_language::value_print_inner): New member function.
7995 (auto_language_data): Delete la_value_print_inner initializer.
7996 (auto_language::value_print_inner): New member function.
7997 * language.h (language_data): Delete la_value_print_inner field.
7998 (language_defn::value_print_inner): Delcare new member function.
7999 * m2-lang.c (m2_language_data): Delete la_value_print_inner
8000 initializer.
8001 (m2_language::value_print_inner): New member function.
8002 * objc-lang.c (objc_language_data): Delete la_value_print_inner
8003 initializer.
8004 * opencl-lang.c (opencl_language_data): Likewise.
8005 * p-lang.c (pascal_language_data): Likewise.
8006 (pascal_language::value_print_inner): New member function.
8007 * rust-lang.c (rust_language_data): Delete la_value_print_inner
8008 initializer.
8009 (rust_language::value_print_inner): New member function.
8010 * valprint.c (do_val_print): Update call to value_print_inner.
8011
a1d1fa3e
AB
80122020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8013
8014 * ada-lang.c (ada_language_data): Delete la_value_print
8015 initializer.
8016 (ada_language::value_print): New member function.
8017 * c-lang.c (c_language_data): Delete la_value_print initializer.
8018 (cplus_language_data): Likewise.
8019 (asm_language_data): Likewise.
8020 (minimal_language_data): Likewise.
8021 * d-lang.c (d_language_data): Likewise.
8022 * f-lang.c (f_language_data): Likewise.
8023 * go-lang.c (go_language_data): Likewise.
8024 * language.c (unk_lang_value_print): Delete.
8025 (language_defn::value_print): Define new member function.
8026 (unknown_language_data): Delete la_value_print initializer.
8027 (unknown_language::value_print): New member function.
8028 (auto_language_data): Delete la_value_print initializer.
8029 (auto_language::value_print): New member function.
8030 * language.h (language_data): Delete la_value_print field.
8031 (language_defn::value_print): Declare new member function.
8032 (LA_VALUE_PRINT): Update call to value_print.
8033 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
8034 * objc-lang.c (objc_language_data): Likewise.
8035 * opencl-lang.c (opencl_language_data): Likewise.
8036 * p-lang.c (pascal_language_data): Likewise.
8037 (pascal_language::value_print): New member function.
8038 * rust-lang.c (rust_language_data): Delete la_value_print
8039 initializer.
8040
f16a9f57
AB
80412020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8042
8043 * ada-lang.c (ada_watch_location_expression): Rename to
8044 ada_language::watch_location_expression.
8045 (ada_language_data): Delete la_watch_location_expression
8046 initializer.
8047 (ada_language::watch_location_expression): New member function,
8048 implementation from ada_watch_location_expression.
8049 * breakpoint.c (watch_command_1): Update call to
8050 watch_location_expression.
8051 * c-lang.c (c_watch_location_expression): Rename to
8052 language_defn::watch_location_expression.
8053 (c_language_data): Delete la_watch_location_expression
8054 initializer.
8055 (cplus_language_data): Likewise.
8056 (asm_language_data): Likewise.
8057 (minimal_language_data): Likewise.
8058 * c-lang.h (c_watch_location_expression): Delete declaration.
8059 * d-lang.c (d_language_data): Delete la_watch_location_expression
8060 initializer.
8061 * f-lang.c (f_language_data): Likewise.
8062 * go-lang.c (go_language_data): Likewise.
8063 * language.c (language_defn::watch_location_expression): Member
8064 function implementation from c_watch_location_expression.
8065 (unknown_language_data): Delete la_watch_location_expression
8066 initializer.
8067 (auto_language_data): Likewise.
8068 * language.h (language_data): Delete la_watch_location_expression
8069 field.
8070 (language_defn::watch_location_expression): Declare new member
8071 function.
8072 * m2-lang.c (m2_language_data): Delete
8073 la_watch_location_expression initializer.
8074 * objc-lang.c (objc_language_data): Likewise.
8075 * opencl-lang.c (opencl_language_data): Likewise.
8076 * p-lang.c (pascal_language_data): Likewise.
8077 * rust-lang.c (rust_watch_location_expression): Rename to
8078 rust_language::watch_location_expression.
8079 (rust_language_data): Delete la_watch_location_expression
8080 initializer.
8081 (rust_language::watch_location_expression): New member function,
8082 implementation from rust_watch_location_expression.
8083
7e56227d
AB
80842020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8085
8086 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
8087 ada_language::collect_symbol_completion_matches.
8088 (ada_language_data): Delete la_collect_symbol_completion_matches
8089 initializer.
8090 (ada_language::collect_symbol_completion_matches): New member
8091 function, implementation from
8092 ada_collect_symbol_completion_matches.
8093 * c-lang.c (c_language_data): Delete
8094 la_collect_symbol_completion_matches initializer.
8095 (cplus_language_data): Likewise.
8096 (asm_language_data): Likewise.
8097 (minimal_language_data): Likewise.
8098 * d-lang.c (d_language_data): Likewise.
8099 * f-lang.c (f_collect_symbol_completion_matches): Rename to
8100 f_language::collect_symbol_completion_matches.
8101 (f_language_data): Delete la_collect_symbol_completion_matches
8102 initializer.
8103 (f_language::collect_symbol_completion_matches) New member
8104 function, implementation from f_collect_symbol_completion_matches.
8105 * go-lang.c (go_language_data): Delete
8106 la_collect_symbol_completion_matches initializer.
8107 * language.c (unknown_language_data): Likewise.
8108 (auto_language_data): Likewise.
8109 * language.h (language_data): Delete
8110 la_collect_symbol_completion_matches field.
8111 (language_defn::collect_symbol_completion_matches): New member
8112 function.
8113 * m2-lang.c (m2_language_data): Delete
8114 la_collect_symbol_completion_matches initializer.
8115 * objc-lang.c (objc_language_data): Likewise.
8116 * opencl-lang.c (opencl_language_data): Likewise.
8117 * p-lang.c (pascal_language_data): Likewise.
8118 * rust-lang.c (rust_language_data): Likewise.
8119 * symtab.c (default_collect_symbol_completion_matches): Delete.
8120 (collect_symbol_completion_matches): Update call to
8121 collect_symbol_completion_matches.
8122 (collect_symbol_completion_matches_type): Likewise.
8123 * symtab.h (default_collect_symbol_completion_matches): Delete
8124 declaration.
8125
53fc67f8
AB
81262020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8127
8128 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
8129 (ada_language_data): Delete la_word_break_characters initializer.
8130 (ada_language::word_break_characters): New member function.
8131 * c-lang.c (c_language_data): Delete la_word_break_characters
8132 initializer.
8133 (cplus_language_data): Likewise.
8134 (asm_language_data): Likewise.
8135 (minimal_language_data): Likewise.
8136 * completer.c: Update global comment.
8137 (advance_to_expression_complete_word_point): Update call to
8138 word_break_characters.
8139 (complete_files_symbols): Likewise.
8140 (complete_line_internal_1): Likewise.
8141 (default_completer_handle_brkchars): Likewise.
8142 (skip_quoted_chars): Likewise.
8143 * d-lang.c (d_language_data): Delete la_word_break_characters
8144 initializer.
8145 * f-lang.c (f_word_break_characters): Delete.
8146 (f_language_data): Delete la_word_break_characters initializer.
8147 (f_language::word_break_characters): New member function.
8148 * go-lang.c (go_language_data): Delete la_word_break_characters
8149 initializer.
8150 * language.c (unknown_language_data): Likewise.
8151 (auto_language_data): Likewise.
8152 * language.h (default_word_break_characters): Move declaration to
8153 earlier in the file.
8154 (language_data): Delete la_word_break_characters field.
8155 (language_defn::word_break_characters): New member function.
8156 * m2-lang.c (m2_language_data): Delete la_word_break_characters
8157 initializer.
8158 * objc-lang.c (objc_language_data): Likewise.
8159 * opencl-lang.c (opencl_language_data): Likewise.
8160 * p-lang.c (pascal_language_data): Likewise.
8161 * rust-lang.c (rust_language_data): Likewise.
8162
c9debfb9
AB
81632020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8164
8165 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
8166 (ada_language_data): Delete la_get_symbol_name_matcher
8167 initializer.
8168 (language_defn::get_symbol_name_matcher_inner): New member
8169 function.
8170 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
8171 initializer.
8172 (cplus_language_data): Likewise.
8173 (cplus_language::get_symbol_name_matcher_inner): New member
8174 function.
8175 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
8176 (minimal_language_data): Likewise.
8177 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
8178 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
8179 initializer.
8180 * dictionary.c (iter_match_first_hashed): Update call to
8181 get_symbol_name_matcher.
8182 (iter_match_next_hashed): Likewise.
8183 (iter_match_next_linear): Likewise.
8184 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
8185 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
8186 initializer.
8187 (f_language::get_symbol_name_matcher_inner): New member function.
8188 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
8189 initializer.
8190 * language.c (default_symbol_name_matcher): Update header comment,
8191 make static.
8192 (language_defn::get_symbol_name_matcher): New definition.
8193 (language_defn::get_symbol_name_matcher_inner): Likewise.
8194 (get_symbol_name_matcher): Delete.
8195 (unknown_language_data): Delete la_get_symbol_name_matcher
8196 initializer.
8197 (auto_language_data): Likewise.
8198 * language.h (language_data): Delete la_get_symbol_name_matcher
8199 field.
8200 (language_defn::get_symbol_name_matcher): New member function.
8201 (language_defn::get_symbol_name_matcher_inner): Likewise.
8202 (default_symbol_name_matcher): Delete declaration.
8203 * linespec.c (find_methods): Update call to
8204 get_symbol_name_matcher.
8205 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
8206 initializer.
8207 * minsyms.c (lookup_minimal_symbol): Update call to
8208 get_symbol_name_matcher.
8209 (iterate_over_minimal_symbols): Likewise.
8210 * objc-lang.c (objc_language_data): Delete
8211 la_get_symbol_name_matcher initializer.
8212 * opencl-lang.c (opencl_language_data): Likewise.
8213 * p-lang.c (pascal_language_data): Likewise.
8214 * psymtab.c (psymbol_name_matches): Update call to
8215 get_symbol_name_matcher.
8216 * rust-lang.c (rust_language_data): Delete
8217 la_get_symbol_name_matcher initializer.
8218 * symtab.c (symbol_matches_search_name): Update call to
8219 get_symbol_name_matcher.
8220 (compare_symbol_name): Likewise.
8221
9a49ad8c
AB
82222020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8223
8224 * ada-lang.c (ada_language_data): Delete la_compute_program
8225 initializer.
8226 * c-lang.c (c_language_data): Likewise.
8227 (c_language::compute_program): New member function.
8228 (cplus_language_data): Delete la_compute_program initializer.
8229 (cplus_language::compute_program): New member function.
8230 (asm_language_data): Delete la_compute_program initializer.
8231 (minimal_language_data): Likewise.
8232 * c-lang.h (c_compute_program): Update comment.
8233 (cplus_compute_program): Likewise.
8234 * compile/compile-c-support.c (c_compute_program): Likewise.
8235 (cplus_compute_program): Likewise.
8236 * compile/compile.c (compile_to_object): Update call to
8237 la_compute_program.
8238 * d-lang.c (d_language_data): Delete la_compute_program
8239 initializer.
8240 * f-lang.c (f_language_data): Likewise.
8241 * go-lang.c (go_language_data): Likewise.
8242 * language.c (unknown_language_data): Likewise.
8243 (auto_language_data): Likewise.
8244 * language.h (language_data): Delete la_compute_program field.
8245 (language_defn::compute_program): New member function.
8246 * m2-lang.c (m2_language_data): Delete la_compute_program
8247 initializer.
8248 * objc-lang.c (objc_language_data): Likewise.
8249 * opencl-lang.c (opencl_language_data): Likewise.
8250 * p-lang.c (pascal_language_data): Likewise.
8251 * rust-lang.c (rust_language_data): Likewise.
8252
eff93b4d
AB
82532020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8254
8255 * ada-lang.c (ada_language_data) Delete
8256 la_class_name_from_physname initializer.
8257 * c-lang.c (c_language_data): Likewise.
8258 (cplus_language_data): Likewise.
8259 (cplus_language::class_name_from_physname): New member function.
8260 (asm_language_data): Delete la_class_name_from_physname
8261 initializer.
8262 (minimal_language_data): Likewise.
8263 * d-lang.c (d_language_data): Likewise.
8264 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
8265 method on language_defn class.
8266 (guess_full_die_structure_name): Likewise.
8267 * f-lang.c (f_language_data): Delete la_class_name_from_physname
8268 initializer.
8269 * go-lang.c (go_language_data): Likewise.
8270 * language.c (language_class_name_from_physname): Delete.
8271 (unk_lang_class_name): Delete.
8272 (unknown_language_data): Delete la_class_name_from_physname
8273 initializer.
8274 (auto_language_data): Likewise.
8275 * language.h (language_data): Delete la_class_name_from_physname
8276 field.
8277 (language_defn::class_name_from_physname): New function.
8278 (language_class_name_from_physname): Delete declaration.
8279 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
8280 initializer.
8281 * objc-lang.c (objc_language_data): Likewise.
8282 * opencl-lang.c (opencl_language_data): Likewise.
8283 * p-lang.c (pascal_language_data): Likewise.
8284 * rust-lang.c (rust_language_data): Likewise.
8285
de543742
TT
82862020-06-16 Tom Tromey <tom@tromey.com>
8287
8288 * tui/tui-data.h (STATUS_NAME): New macro.
8289 * tui/tui-layout.c (tui_remove_some_windows)
8290 (initialize_known_windows, tui_register_window)
8291 (tui_layout_split::remove_windows, initialize_layouts)
8292 (tui_new_layout_command): Don't use hard-coded window names.
8293
a350efd4
TT
82942020-06-16 Tom Tromey <tom@tromey.com>
8295
8296 PR tui/25348:
8297 * tui/tui.c (tui_ensure_readline_initialized): Rename from
8298 tui_initialize_readline. Only run once. Call rl_initialize.
8299 * tui/tui.h (tui_ensure_readline_initialized): Rename from
8300 tui_initialize_readline.
8301 * tui/tui-io.c (tui_setup_io): Call
8302 tui_ensure_readline_initialized.
8303 * tui/tui-interp.c (tui_interp::init): Update.
8304
39ec0490
TT
83052020-06-16 Tom Tromey <tom@tromey.com>
8306
8307 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
8308 Also preserve the status window.
8309
d2d1ea20
TT
83102020-06-16 Tom Tromey <tom@tromey.com>
8311
8312 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
8313 where m_window==nullptr.
8314
66920317
TT
83152020-06-15 Tom Tromey <tromey@adacore.com>
8316
8317 * windows-nat.c (windows_nat::handle_output_debug_string):
8318 Update.
8319 (windows_nat::handle_ms_vc_exception): Update.
8320 * target.h (target_read_string): Change API.
8321 * target.c (target_read_string): Change API.
8322 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
8323 Update.
8324 * solib-frv.c (frv_current_sos): Update.
8325 * solib-dsbt.c (dsbt_current_sos): Update.
8326 * solib-darwin.c (darwin_current_sos): Update.
8327 * linux-thread-db.c (inferior_has_bug): Update.
8328 * expprint.c (print_subexp_standard): Update.
8329 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
8330 (ada_exception_message_1): Update.
8331
a5d871dd
TT
83322020-06-15 Tom Tromey <tromey@adacore.com>
8333
8334 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
8335
670e35fa
TT
83362020-06-15 Tom Tromey <tromey@adacore.com>
8337
8338 * valprint.c (read_string): Update comment.
8339 * target.c (MIN): Remove.
8340 (target_read_string): Rewrite.
8341
f5272a3b
TT
83422020-06-15 Tom Tromey <tromey@adacore.com>
8343
8344 * corefile.c (read_memory_string): Remove.
8345 * ada-valprint.c (ada_value_print_ptr): Update.
8346 * ada-lang.h (ada_tag_name): Change return type.
8347 * ada-lang.c (type_from_tag): Update.
8348 (ada_tag_name_from_tsd): Change return type. Use
8349 target_read_string.
8350 (ada_tag_name): Likewise.
8351 * gdbcore.h (read_memory_string): Don't declare.
8352
2c074f49
HD
83532020-06-14 Hannes Domani <ssbssa@yahoo.de>
8354
8355 * symtab.c (rbreak_command): Ignore Windows drive colon.
8356
6a17d503
SM
83572020-06-12 Simon Marchi <simon.marchi@efficios.com>
8358
8359 * NEWS: Mention removed GDBserver host support.
8360
453c733f
NC
83612020-06-12 Nelson Chu <nelson.chu@sifive.com>
8362
8363 * features/riscv/rebuild-csr-xml.sh: Updated.
8364
2b4e6a3f
TT
83652020-06-11 Tom Tromey <tom@tromey.com>
8366
8367 PR gdb/18318:
8368 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
8369
4412332f
JG
83702020-06-09 Jonny Grant <jg@jguk.org>
83712020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
8372
8373 * main.c (captured_main_1): Don't print new line after help.
8374 (print_gdb_help): add mailing list and IRC channel information
8375 to --help. Add new lines between items in the footer. Remove
8376 quotes around bug url.
8377
2f33032a
KS
83782020-06-11 Keith Seitz <keiths@redhat.com>
8379
8380 PR gdb/21356
8381 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
8382 Resolve typedefs for type length calculations.
8383
7ab96794
TV
83842020-06-10 Tom de Vries <tdevries@suse.de>
8385
8386 PR ada/24713
8387 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
8388 (write_psymbols): Enable .gdb_index for ada.
8389 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
8390 ada.
8391
e5f3ece2
TV
83922020-06-10 Tom de Vries <tdevries@suse.de>
8393
8394 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
8395 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
8396 namei" instead of "const char *name" argument.
8397 (dw2_map_matching_symbols): Use "offset_type namei" variant of
8398 dw2_symtab_iter_init.
8399
940da03e
SM
84002020-06-08 Simon Marchi <simon.marchi@efficios.com>
8401
8402 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
8403 to use type::field and field::type instead.
8404
b6cdac4b
SM
84052020-06-08 Simon Marchi <simon.marchi@efficios.com>
8406
8407 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
8408 to use field::type instead.
8409
5d14b6e5
SM
84102020-06-08 Simon Marchi <simon.marchi@efficios.com>
8411
8412 * gdbtypes.h (struct field) <type, set_type>: New methods.
8413 Rename `type` field to...
8414 <m_type>: ... this. Change references throughout to use type or
8415 set_type methods.
8416 (FIELD_TYPE): Use field::type. Change call sites that modify
8417 the field's type to use field::set_type instead.
8418
3d967001
SM
84192020-06-08 Simon Marchi <simon.marchi@efficios.com>
8420
8421 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
8422 to use type::index_type instead.
8423
262abc0d
SM
84242020-06-08 Simon Marchi <simon.marchi@efficios.com>
8425
8426 * gdbtypes.h (struct type) <index_type, set_index_type>: New
8427 methods.
8428 (TYPE_INDEX_TYPE): Use type::index_type.
8429 * gdbtypes.c (create_array_type_with_stride): Likewise.
8430
82836c92
TT
84312020-06-07 Tom Tromey <tom@tromey.com>
8432
8433 * valprint.c (generic_val_print_float): Remove "embedded_offset"
8434 parameter.
8435 (generic_value_print): Update.
8436
940dace9
AB
84372020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8438
8439 Revert commit 982a38f60b0.
8440 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
8441
982a38f6
AB
84422020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8443
8444 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
8445 avoid use after free.
8446
82f06518
TV
84472020-06-05 Tom de Vries <tdevries@suse.de>
8448
8449 * NEWS: Fix typos.
8450
f8c41851
SM
84512020-06-04 Simon Marchi <simon.marchi@efficios.com>
8452
8453 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
8454 the per_bfd object.
8455 (dwarf2_read_debug_names): Likewise.
8456 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
8457 object when re-using a per_bfd object with an index.
8458
f9b5d5ea
TV
84592020-06-03 Tom de Vries <tdevries@suse.de>
8460
8461 PR symtab/26046
8462 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
8463 children for C++.
8464 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
8465 DW_TAG_subprogram.
8466
f6eee2d0
AB
84672020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8468
8469 * ada-lang.c (ada_language_data): Delete skip_trampoline
8470 initializer.
8471 * c-lang.c (c_language_data): Likewise.
8472 (cplus_language_data): Likewise.
8473 (cplus_language::skip_trampoline): New member function.
8474 (asm_language_data): Delete skip_trampoline initializer.
8475 (minimal_language_data): Likewise.
8476 * d-lang.c (d_language_data): Likewise.
8477 * f-lang.c (f_language_data): Likewise.
8478 * go-lang.c (go_language_data): Likewise.
8479 * language.c (unk_lang_trampoline): Delete function.
8480 (skip_language_trampoline): Update.
8481 (unknown_language_data): Delete skip_trampoline initializer.
8482 (auto_language_data): Likewise.
8483 * language.h (language_data): Delete skip_trampoline field.
8484 (language_defn::skip_trampoline): New function.
8485 * m2-lang.c (m2_language_data): Delete skip_trampoline
8486 initializer.
8487 * objc-lang.c (objc_skip_trampoline): Delete function, move
8488 implementation to objc_language::skip_trampoline.
8489 (objc_language_data): Delete skip_trampoline initializer.
8490 (objc_language::skip_trampoline): New member function with
8491 implementation from objc_skip_trampoline.
8492 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
8493 initializer.
8494 * p-lang.c (pascal_language_data): Likewise.
8495 * rust-lang.c (rust_language_data): Likewise.
8496
0a50df5d
AB
84972020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8498
8499 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
8500 (ada_language::demangle): New member function.
8501 * c-lang.c (c_language_data): Delete la_demangle initializer.
8502 (cplus_language_data): Delete la_demangle initializer.
8503 (cplus_language::demangle): New member function.
8504 (asm_language_data): Delete la_demangle initializer.
8505 (minimal_language_data): Delete la_demangle initializer.
8506 * d-lang.c (d_language_data): Delete la_demangle initializer.
8507 (d_language::demangle): New member function.
8508 * f-lang.c (f_language_data): Delete la_demangle initializer.
8509 (f_language::demangle): New member function.
8510 * go-lang.c (go_language_data): Delete la_demangle initializer.
8511 (go_language::demangle): New member function.
8512 * language.c (language_demangle): Update.
8513 (unk_lang_demangle): Delete.
8514 (unknown_language_data): Delete la_demangle initializer.
8515 (unknown_language::demangle): New member function.
8516 (auto_language_data): Delete la_demangle initializer.
8517 (auto_language::demangle): New member function.
8518 * language.h (language_data): Delete la_demangle field.
8519 (language_defn::demangle): New function.
8520 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
8521 * objc-lang.c (objc_language_data): Delete la_demangle
8522 initializer.
8523 (objc_language::demangle): New member function.
8524 * opencl-lang.c (opencl_language_data): Delete la_demangle
8525 initializer.
8526 * p-lang.c (pascal_language_data): Likewise.
8527 * rust-lang.c (rust_language_data): Likewise.
8528 (rust_language::demangle): New member function.
8529
fbfb0a46
AB
85302020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8531
8532 * ada-lang.c (ada_language_data): Delete la_print_type
8533 initializer.
8534 (ada_language::print_type): New member function.
8535 * c-lang.c (c_language_data): Delete la_print_type initializer.
8536 (c_language::print_type): New member function.
8537 (cplus_language_data): Delete la_print_type initializer.
8538 (cplus_language::print_type): New member function.
8539 (asm_language_data): Delete la_print_type initializer.
8540 (asm_language::print_type): New member function.
8541 (minimal_language_data): Delete la_print_type initializer.
8542 (minimal_language::print_type): New member function.
8543 * d-lang.c (d_language_data): Delete la_print_type initializer.
8544 (d_language::print_type): New member function.
8545 * f-lang.c (f_language_data): Delete la_print_type initializer.
8546 (f_language::print_type): New member function.
8547 * go-lang.c (go_language_data): Delete la_print_type initializer.
8548 (go_language::print_type): New member function.
8549 * language.c (unk_lang_print_type): Delete.
8550 (unknown_language_data): Delete la_print_type initializer.
8551 (unknown_language::print_type): New member function.
8552 (auto_language_data): Delete la_print_type initializer.
8553 (auto_language::print_type): New member function.
8554 * language.h (language_data): Delete la_print_type field.
8555 (language_defn::print_type): New function.
8556 (LA_PRINT_TYPE): Update.
8557 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
8558 (m2_language::print_type): New member function.
8559 * objc-lang.c (objc_language_data): Delete la_print_type
8560 initializer.
8561 (objc_language::print_type): New member function.
8562 * opencl-lang.c (opencl_print_type): Delete, implementation moved
8563 to opencl_language::print_type.
8564 (opencl_language_data): Delete la_print_type initializer.
8565 (opencl_language::print_type): New member function, implementation
8566 from opencl_print_type.
8567 * p-lang.c (pascal_language_data): Delete la_print_type
8568 initializer.
8569 (pascal_language::print_type): New member function.
8570 * rust-lang.c (rust_print_type): Delete, implementation moved to
8571 rust_language::print_type.
8572 (rust_language_data): Delete la_print_type initializer.
8573 (rust_language::print_type): New member function, implementation
8574 from rust_print_type.
8575
6f827019
AB
85762020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8577
8578 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
8579 implementation moves to...
8580 (ada_language::sniff_from_mangled_name): ...here. Update return
8581 type.
8582 (ada_language_data): Delete la_sniff_from_mangled_name
8583 initializer.
8584 * c-lang.c (c_language_data): Likewise.
8585 (cplus_language_data): Likewise.
8586 (cplus_language::sniff_from_mangled_name): New member function,
8587 implementation taken from gdb_sniff_from_mangled_name.
8588 (asm_language_data): Delete la_sniff_from_mangled_name
8589 initializer.
8590 (minimal_language_data): Likewise.
8591 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
8592 implementation moves to cplus_language::sniff_from_mangled_name.
8593 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
8594 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
8595 moves to...
8596 (d_language::sniff_from_mangled_name): ...here.
8597 (d_language_data): Delete la_sniff_from_mangled_name initializer.
8598 * f-lang.c (f_language_data): Likewise.
8599 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
8600 moves to...
8601 (go_language::sniff_from_mangled_name): ...here.
8602 (go_language_data): Delete la_sniff_from_mangled_name initializer.
8603 * language.c (language_sniff_from_mangled_name): Delete.
8604 (unknown_language_data): Delete la_sniff_from_mangled_name
8605 initializer.
8606 (auto_language_data): Likewise.
8607 * language.h (language_data): Delete la_sniff_from_mangled_name
8608 field.
8609 (language_defn::sniff_from_mangled_name): New function.
8610 (language_sniff_from_mangled_name): Delete declaration.
8611 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
8612 field.
8613 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
8614 implementation moves to...
8615 (objc_language::sniff_from_mangled_name): ...here.
8616 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
8617 * opencl-lang.c (opencl_language_data): Likewise.
8618 * p-lang.c (pascal_language_data): Likewise.
8619 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
8620 implementation moves to...
8621 (rust_language::sniff_from_mangled_name): ...here.
8622 (rust_language_data): Delete la_sniff_from_mangled_name
8623 initializer.
8624 * symtab.c (symbol_find_demangled_name): Call
8625 sniff_from_mangled_name member function.
8626
fb8006fd
AB
86272020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8628
8629 * ada-lang.c (ada_language_data): Delete la_search_name_hash
8630 initializer.
8631 * c-lang.c (c_language_data): Likewise.
8632 (cplus_language_data): Likewise.
8633 (cplus_language::search_name_hash): New member function.
8634 (asm_language_data): Delete la_search_name_hash initializer.
8635 (minimal_language_data): Likewise.
8636 * d-lang.c (d_language_data): Likewise.
8637 * dictionary.c (default_search_name_hash): Rename to...
8638 (language_defn::search_name_hash): ...this.
8639 * f-lang.c (f_language_data): Likewise.
8640 (f_language::search_name_hash): New member function.
8641 * go-lang.c (go_language_data): Delete la_search_name_hash
8642 initializer.
8643 * language.c (unknown_language_data): Likewise.
8644 (auto_language_data): Likewise.
8645 * language.h (struct language_data): Delete la_search_name_hash
8646 field.
8647 (language_defn::search_name_hash): Declare new member function.
8648 (default_search_name_hash): Delete declaration.
8649 * m2-lang.c (m2_language_data): Delete la_search_name_hash
8650 initializer.
8651 * objc-lang.c (objc_language_data): Likewise.
8652 * opencl-lang.c (opencl_language_data): Likewise.
8653 * p-lang.c (pascal_language_data): Likewise.
8654 * rust-lang.c (rust_language_data): Likewise.
8655 * symtab.c (search_name_hash): Update call.
8656
8e25bafe
AB
86572020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8658
8659 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
8660 initializer.
8661 * c-lang.c (class compile_instance): Declare.
8662 (c_language_data): Delete la_get_compile_instance initializer.
8663 (c_language::get_compile_instance): New member function.
8664 (cplus_language_data): Delete la_get_compile_instance initializer.
8665 (cplus_language::get_compile_instance): New member function.
8666 (asm_language_data): Delete la_get_compile_instance initializer.
8667 (minimal_language_data): Likewise.
8668 * c-lang.h (c_get_compile_context): Update comment.
8669 (cplus_get_compile_context): Update comment.
8670 * compile/compile.c (compile_to_object): Update calls, don't rely
8671 on function pointer being NULL.
8672 * d-lang.c (d_language_data): Delete la_get_compile_instance
8673 initializer.
8674 * f-lang.c (f_language_data): Likewise.
8675 * go-lang.c (go_language_data): Likewise.
8676 * language.c (unknown_language_data): Likewise.
8677 (auto_language_data): Likewise.
8678 * language.h (language_data): Delete la_get_compile_instance field.
8679 (language_defn::get_compile_instance): New member function.
8680 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
8681 initializer.
8682 * objc-lang.c (objc_language_data): Likewise.
8683 * opencl-lang.c (opencl_language_data): Likewise.
8684 * p-lang.c (pascal_language_data): Likewise.
8685 * rust-lang.c (rust_language_data): Likewise.
8686
4009ee92
AB
86872020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8688
8689 * ada-lang.c (ada_add_all_symbols): Update comment.
8690 (ada_iterate_over_symbols): Delete, move implementation to...
8691 (ada_language::iterate_over_symbols): ...here, a new member
8692 function, rewrite to use range based for loop.
8693 (ada_language_data): Delete la_iterate_over_symbols initializer.
8694 * c-lang.c (c_language_data): Likewise.
8695 (cplus_language_data): Likewise.
8696 (asm_language_data): Likewise.
8697 (minimal_language_data): Likewise.
8698 * d-lang.c (d_language_data): Likewise.
8699 * f-lang.c (f_language_data): Likewise.
8700 * go-lang.c (go_language_data): Likewise.
8701 * language.c (unknown_language_data): Likewise.
8702 (auto_language_data): Likewise.
8703 * language.h (language_data): Delete la_iterate_over_symbols field.
8704 (language_defn::iterate_over_symbols): New member function.
8705 (LA_ITERATE_OVER_SYMBOLS): Update.
8706 * linespec.c (iterate_over_all_matching_symtabs): Update.
8707 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
8708 initializer.
8709 * objc-lang.c (objc_language_data): Likewise.
8710 * opencl-lang.c (opencl_language_data): Likewise.
8711 * p-lang.c (pascal_language_data): Likewise.
8712 * rust-lang.c (rust_language_data): Likewise.
8713
54f4ca46
AB
87142020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8715
8716 * ada-lang.c (ada_language_data): Delete
8717 la_lookup_transparent_type initializer.
8718 * c-lang.c (c_language_data): Likewise.
8719 (cplus_language_data): Likewise.
8720 (cplus_language::lookup_transparent_type): New member function.
8721 (asm_language_data): Delete la_lookup_transparent_type
8722 initializer.
8723 (minimal_language_data): Likewise.
8724 * d-lang.c (d_language_data): Likewise.
8725 * f-lang.c (f_language_data): Likewise.
8726 * go-lang.c (go_language_data): Likewise.
8727 * language.c (unknown_language_data): Likewise.
8728 (auto_language_data): Likewise.
8729 * language.h (struct language_data): Delete
8730 la_lookup_transparent_type field.
8731 (language_defn::lookup_transparent_type): New member function.
8732 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
8733 initializer.
8734 * objc-lang.c (objc_language_data): Likewise.
8735 * opencl-lang.c (opencl_language_data): Likewise.
8736 * p-lang.c (pascal_language_data): Likewise.
8737 * rust-lang.c (rust_language_data): Likewise.
8738 * symtab.c (symbol_matches_domain): Update call.
8739
1fb314aa
AB
87402020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8741
8742 * ada-lang.c (ada_language_arch_info): Delete function, move
8743 implementation to...
8744 (ada_language::language_arch_info): ...here, a new member
8745 function.
8746 (ada_language_data): Delete la_language_arch_info.
8747 * c-lang.c (c_language_data): Likewise.
8748 (c_language::language_arch_info): New member function.
8749 (cplus_language_arch_info): Delete function, move
8750 implementation to...
8751 (cplus_language::language_arch_info): ...here, a new member
8752 function.
8753 (cplus_language_data): Delete la_language_arch_info.
8754 (asm_language_data): Likewise.
8755 (asm_language::language_arch_info): New member function.
8756 (minimal_language_data): Delete la_language_arch_info.
8757 (minimal_language::language_arch_info): New member function.
8758 * d-lang.c (d_language_arch_info): Delete function, move
8759 implementation to...
8760 (d_language::language_arch_info): ...here, a new member
8761 function.
8762 (d_language_data): Delete la_language_arch_info.
8763 * f-lang.c (f_language_arch_info): Delete function, move
8764 implementation to...
8765 (f_language::language_arch_info): ...here, a new member
8766 function.
8767 (f_language_data): Delete la_language_arch_info.
8768 * go-lang.c (go_language_arch_info): Delete function, move
8769 implementation to...
8770 (go_language::language_arch_info): ...here, a new member
8771 function.
8772 (go_language_data): Delete la_language_arch_info.
8773 * language.c (unknown_language_data): Likewise.
8774 (unknown_language::language_arch_info): New member function.
8775 (auto_language_data): Delete la_language_arch_info.
8776 (auto_language::language_arch_info): New member function.
8777 (language_gdbarch_post_init): Update call to
8778 la_language_arch_info.
8779 * language.h (language_data): Delete la_language_arch_info
8780 function pointer.
8781 (language_defn::language_arch_info): New function.
8782 * m2-lang.c (m2_language_arch_info): Delete function, move
8783 implementation to...
8784 (m2_language::language_arch_info): ...here, a new member
8785 function.
8786 (m2_language_data): Delete la_language_arch_info.
8787 * objc-lang.c (objc_language_arch_info): Delete function, move
8788 implementation to...
8789 (objc_language::language_arch_info): ...here, a new member
8790 function.
8791 (objc_language_data): Delete la_language_arch_info.
8792 * opencl-lang.c (opencl_language_arch_info): Delete function, move
8793 implementation to...
8794 (opencl_language::language_arch_info): ...here, a new member
8795 function.
8796 (opencl_language_data): Delete la_language_arch_info.
8797 * p-lang.c (pascal_language_arch_info): Delete function, move
8798 implementation to...
8799 (pascal_language::language_arch_info): ...here, a new member
8800 function.
8801 (pascal_language_data): Delete la_language_arch_info.
8802 * rust-lang.c (rust_language_arch_info): Delete function, move
8803 implementation to...
8804 (rust_language::language_arch_info): ...here, a new member
8805 function.
8806 (rust_language_data): Delete la_language_arch_info.
8807
48448202
AB
88082020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8809
8810 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
8811 initializer.
8812 * c-lang.c (c_language_data): Likewise.
8813 (cplus_language_data): Likewise.
8814 (cplus_language::pass_by_reference_info): New method.
8815 (asm_language_data): Delete la_pass_by_reference initializer.
8816 (minimal_language_data): Likewise.
8817 * cp-abi.c (cp_pass_by_reference): Remove use of
8818 default_pass_by_reference.
8819 * d-lang.c (d_language_data): Likewise.
8820 * f-lang.c (f_language_data): Likewise.
8821 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
8822 default_pass_by_reference.
8823 * go-lang.c (go_language_data): Likewise.
8824 * language.c (language_pass_by_reference): Update.
8825 (default_pass_by_reference): Delete.
8826 (unknown_language_data): Delete la_pass_by_reference
8827 initializer.
8828 (auto_language_data): Likewise.
8829 * language.h (struct language_data): Delete la_pass_by_reference
8830 field.
8831 (language_defn::pass_by_reference_info): New member function.
8832 (default_pass_by_reference): Delete declaration.
8833 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
8834 initializer.
8835 * objc-lang.c (objc_language_data): Likewise.
8836 * opencl-lang.c (opencl_language_data): Likewise.
8837 * p-lang.c (pascal_language_data): Likewise.
8838 * rust-lang.c (rust_language_data): Likewise.
8839
15e5fd35
AB
88402020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8841
8842 * ada-lang.c (ada_read_var_value): Delete function, move
8843 implementation to...
8844 (ada_language::read_var_value): ...here.
8845 (ada_language_data): Delete la_read_var_value initializer.
8846 * c-lang.c (c_language_data): Likewise.
8847 (cplus_language_data): Likewise.
8848 (minimal_language_data): Likewise.
8849 * d-lang.c (d_language_data): Likewise.
8850 * f-lang.c (f_language_data): Likewise.
8851 * findvar.c (default_read_var_value): Rename to...
8852 (language_defn::read_var_value): ...this.
8853 * findvar.c (read_var_value): Update header comment, and change to
8854 call member function instead of function pointer.
8855 * go-lang.c (go_language_data): Likewise.
8856 * language.c (unknown_language_data): Delete la_read_var_value
8857 initializer.
8858 (auto_language_data): Likewise.
8859 * language.h (struct language_data): Delete la_read_var_value
8860 field.
8861 (language_defn::read_var_value): New member function.
8862 (default_read_var_value): Delete declaration.
8863 * m2-lang.c (m2_language_data): Delete la_read_var_value
8864 initializer.
8865 * objc-lang.c (objc_language_data): Likewise.
8866 * opencl-lang.c (opencl_language_data): Likewise.
8867 * p-lang.c (pascal_language_data): Likewise.
8868 * rust-lang.c (rust_language_data): Likewise.
8869 * value.h (default_read_var_value): Delete declaration.
8870
5bd40f2a
AB
88712020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8872
8873 * ada-lang.c (ada_print_array_index): Delete function, move
8874 implementation to...
8875 (ada_language::print_array_index): ...here.
8876 (ada_language_data): Delete la_print_array_index initializer.
8877 * c-lang.c (c_language_data): Likewise.
8878 (cplus_language_data): Likewise.
8879 (minimal_language_data): Likewise.
8880 * d-lang.c (d_language_data): Likewise.
8881 * f-lang.c (f_language_data): Likewise.
8882 * go-lang.c (go_language_data): Likewise.
8883 * language.c (default_print_array_index): Delete function, move
8884 implementation to...
8885 (language_defn::print_array_index): ...here.
8886 (unknown_language_data): Delete la_print_array_index initializer.
8887 (auto_language_data): Likewise.
8888 * language.h (struct language_data): Delete la_print_array_index
8889 field.
8890 (language_defn::print_array_index): New member function.
8891 (LA_PRINT_ARRAY_INDEX): Update.
8892 (default_print_array_index): Delete declaration.
8893 * m2-lang.c (m2_language_data): Delete la_print_array_index
8894 initializer.
8895 * objc-lang.c (objc_language_data): Likewise.
8896 * opencl-lang.c (opencl_language_data): Likewise.
8897 * p-lang.c (pascal_language_data): Likewise.
8898 * rust-lang.c (rust_language_data): Likewise.
8899
0874fd07
AB
89002020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8901
8902 * gdb/ada-lang.c (ada_language_defn): Convert to...
8903 (ada_language_data): ...this.
8904 (class ada_language): New class.
8905 (ada_language_defn): New static global.
8906 * gdb/c-lang.c (c_language_defn): Convert to...
8907 (c_language_data): ...this.
8908 (class c_language): New class.
8909 (c_language_defn): New static global.
8910 (cplus_language_defn): Convert to...
8911 (cplus_language_data): ...this.
8912 (class cplus_language): New class.
8913 (cplus_language_defn): New static global.
8914 (asm_language_defn): Convert to...
8915 (asm_language_data): ...this.
8916 (class asm_language): New class.
8917 (asm_language_defn): New static global.
8918 (minimal_language_defn): Convert to...
8919 (minimal_language_data): ...this.
8920 (class minimal_language): New class.
8921 (minimal_language_defn): New static global.
8922 * gdb/d-lang.c (d_language_defn): Convert to...
8923 (d_language_data): ...this.
8924 (class d_language): New class.
8925 (d_language_defn): New static global.
8926 * gdb/f-lang.c (f_language_defn): Convert to...
8927 (f_language_data): ...this.
8928 (class f_language): New class.
8929 (f_language_defn): New static global.
8930 * gdb/go-lang.c (go_language_defn): Convert to...
8931 (go_language_data): ...this.
8932 (class go_language): New class.
8933 (go_language_defn): New static global.
8934 * gdb/language.c (unknown_language_defn): Remove declaration.
8935 (current_language): Initialize to nullptr, real initialization is
8936 moved to _initialize_language.
8937 (languages): Delete global.
8938 (language_defn::languages): Define.
8939 (set_language_command): Use language_defn::languages.
8940 (set_language): Likewise.
8941 (range_error): Likewise.
8942 (language_enum): Likewise.
8943 (language_def): Likewise.
8944 (add_set_language_command): Use language_def::languages for the
8945 language list, and language_def to lookup language pointers.
8946 (skip_language_trampoline): Use language_defn::languages.
8947 (unknown_language_defn): Convert to...
8948 (unknown_language_data): ...this.
8949 (class unknown_language): New class.
8950 (unknown_language_defn): New static global.
8951 (auto_language_defn): Convert to...
8952 (auto_language_data): ...this.
8953 (class auto_language): New class.
8954 (auto_language_defn): New static global.
8955 (language_gdbarch_post_init): Use language_defn::languages.
8956 (_initialize_language): Initialize current_language.
8957 * gdb/language.h (struct language_defn): Rename to...
8958 (struct language_data): ...this.
8959 (struct language_defn): New.
8960 (auto_language_defn): Delete.
8961 (unknown_language_defn): Delete.
8962 (minimal_language_defn): Delete.
8963 (ada_language_defn): Delete.
8964 (asm_language_defn): Delete.
8965 (c_language_defn): Delete.
8966 (cplus_language_defn): Delete.
8967 (d_language_defn): Delete.
8968 (f_language_defn): Delete.
8969 (go_language_defn): Delete.
8970 (m2_language_defn): Delete.
8971 (objc_language_defn): Delete.
8972 (opencl_language_defn): Delete.
8973 (pascal_language_defn): Delete.
8974 (rust_language_defn): Delete.
8975 * gdb/m2-lang.c (m2_language_defn): Convert to...
8976 (m2_language_data): ...this.
8977 (class m2_language): New class.
8978 (m2_language_defn): New static global.
8979 * gdb/objc-lang.c (objc_language_defn): Convert to...
8980 (objc_language_data): ...this.
8981 (class objc_language): New class.
8982 (objc_language_defn): New static global.
8983 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
8984 (opencl_language_data): ...this.
8985 (class opencl_language): New class.
8986 (opencl_language_defn): New static global.
8987 * gdb/p-lang.c (pascal_language_defn): Convert to...
8988 (pascal_language_data): ...this.
8989 (class pascal_language): New class.
8990 (pascal_language_defn): New static global.
8991 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
8992 language pointer, update comment format.
8993 * gdb/rust-lang.c (rust_language_defn): Convert to...
8994 (rust_language_data): ...this.
8995 (class rust_language): New class.
8996 (rust_language_defn): New static global.
8997
1313c56e
AB
89982020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
8999
9000 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
9001 member variable.
9002 <m_stmt_at_address>: New member variable.
9003 (lnp_state_machine::record_line): Don't record some lines, update
9004 tracking of is_stmt at the same address.
9005 (lnp_state_machine::lnp_state_machine): Initialise new member
9006 variables.
9007
b7ed9f3d
ST
90082020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
9009
9010 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
9011 "-include gnu-nat-mig.h".
9012 * gnu-nat-mig.h: New file.
9013 * gnu-nat.c: Include "gnu-nat-mig.h".
9014 (exc_server, msg_reply_server, notify_server,
9015 process_reply_server): Remove declarations.
9016
14a8ad62
ST
90172020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9018
9019 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
9020 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
9021 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
9022 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
9023 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
9024 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
9025 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
9026 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
9027 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
9028 to gnu_nat_target class.
9029 * gnu-nat.c: Likewise.
9030 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
9031 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
9032 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
9033 object.
9034 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
9035 instead of `gnu_target'.
9036
0af5e106
ST
90372020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9038
9039 * i386-gnu-tdep.c: Include "gdbcore.h"
9040 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
9041 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
9042 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
9043 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
9044 i386_gnu_sigcontext_addr): New functions
9045 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
9046 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
9047 tdep.
9048
078f2fc9
ST
90492020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9050
9051 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
9052 before fork_inferior call. Avoid calling it if target_is_pushed returns
9053 true.
9054
53dff92c
ST
90552020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9056
9057 * gnu-nat.h (gnu_target): New variable declaration.
9058 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
9059 gnu_target.
9060 * gnu-nat.c (gnu_target): New variable.
9061 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
9062 add_thread_silent, and add_thread calls.
9063 (gnu_nat_target::create_inferior): Pass gnu_target to
9064 add_thread_silent, thread_change_ptid call.
9065 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
9066 call.
9067
5a8b8627
ST
90682020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9069
9070 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
9071 (gnu_nat_target::find_memory_regions): Remove unused
9072 `old_address' variable.
9073
366f550a
ST
90742020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9075
9076 * gnu-nat.c: Include "gdbarch.h".
9077
f14871bf
ST
90782020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9079
9080 * reply_mig_hack.awk (Error return): Cast function through
9081 void *, to bypass compiler function call check.
9082
c6887cfb
ST
90832020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9084
9085 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
9086 $(srcdir)/reply_mig_hack.awk.
9087
6930bffe
ST
90882020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9089
9090 * gnu-nat.h (gnu_debug_flag): Set type to bool.
9091
112c22ed
JG
90922020-05-30 Jonny Grant <jg@jguk.org>
9093
9094 * configure.ac (ACX_BUGURL): change bug URL to https.
9095
f68f85b5
PA
90962020-05-30 Pedro Alves <palves@redhat.com>
9097
9098 * cp-support.c (replace_typedefs_template): New.
9099 (replace_typedefs_qualified_name): Handle
9100 DEMANGLE_COMPONENT_TEMPLATE.
9101
976ca316
SM
91022020-05-29 Simon Marchi <simon.marchi@efficios.com>
9103
9104 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
9105 dwarf2/index-cache.h, dwarf2/index-write.c,
9106 dwarf2/index-write.h, dwarf2/line-header.c,
9107 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
9108 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
9109 variables and fields from `dwarf2_per_objfile` to just
9110 `per_objfile` throughout.
9111
989ade05
SM
91122020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
9113
9114 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9115 <push_dwarf_reg_entry_value>: Add comment.
9116
c47bae85
KB
91172020-05-28 Kevin Buettner <kevinb@redhat.com>
9118 Keith Seitz <keiths@redhat.com>
9119
9120 * python/python.c (do_start_initialization): Call PyEval_SaveThread
9121 instead of PyEval_ReleaseLock.
9122 (class gdbpy_gil): Move to earlier in file.
9123 (finalize_python): Set gdb_python_initialized.
9124 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
9125 when not initialized.
9126
44486dcf
SM
91272020-05-28 Simon Marchi <simon.marchi@efficios.com>
9128
9129 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9130 <push_dwarf_reg_entry_value>: Remove assert. Override
9131 per_objfile with caller_per_objfile.
9132
f030440d
TV
91332020-05-28 Tom de Vries <tdevries@suse.de>
9134
9135 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
9136 PR gold/15646 workaround to symbol kind "type".
9137
f0fbb768
TT
91382020-05-27 Tom Tromey <tromey@adacore.com>
9139
9140 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
9141
af0b2a3e
TT
91422020-05-27 Tom Tromey <tromey@adacore.com>
9143
9144 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
9145 Use htab_find_with_hash.
9146 <add_abbrev>: Remove "abbrev_number" parameter.
9147 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
9148 "abbrev_number" parameter. Use htab_find_slot_with_hash.
9149 (hash_abbrev): Add comment.
9150 (abbrev_table::lookup_abbrev): Move to header file.
9151 (abbrev_table::read): Update.
9152
7d00ffec
TT
91532020-05-27 Tom Tromey <tromey@adacore.com>
9154
9155 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
9156 method.
9157 <canonical_name>: New member.
9158 <raw_name>: Rename from "name".
9159 (partial_die_info): Initialize canonical_name.
9160 (scan_partial_symbols): Check raw_name.
9161 (partial_die_parent_scope, partial_die_full_name)
9162 (add_partial_symbol, add_partial_subprogram)
9163 (add_partial_enumeration, load_partial_dies): Use "name" method.
9164 (partial_die_info::name): New method.
9165 (partial_die_info::read, guess_partial_die_structure_name)
9166 (partial_die_info::fixup): Update.
9167
697bba18
TT
91682020-05-27 Tom Tromey <tromey@adacore.com>
9169
9170 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
9171 <get_ref_die_offset>: Inline.
9172 <get_ref_die_offset_complaint>: New method.
9173 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
9174 (attribute::get_ref_die_offset_complaint): Rename from
9175 get_ref_die_offset. Just issue complaint.
9176
c17ace43
HD
91772020-05-27 Hannes Domani <ssbssa@yahoo.de>
9178
9179 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
9180
96445f0b
HD
91812020-05-27 Hannes Domani <ssbssa@yahoo.de>
9182
9183 * exec.c (exec_file_attach): Use errno value of first openp failure.
9184
ac637ec3
HD
91852020-05-27 Hannes Domani <ssbssa@yahoo.de>
9186
9187 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
9188 Don't close thread handle.
9189
17ee85fc
TT
91902020-05-27 Tom Tromey <tom@tromey.com>
9191 Simon Marchi <simon.marchi@efficios.com>
9192
9193 * objfiles.h (struct objfile) <partial_symtabs>: Now a
9194 shared_ptr.
9195 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
9196 member.
9197 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
9198 dwarf2_per_bfd_objfile_data_key>: New globals.
9199 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
9200 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
9201 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
9202 shared.
9203 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
9204 short-circuit when sharing.
9205 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
9206 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
9207
39b16f87
SM
92082020-05-27 Simon Marchi <simon.marchi@efficios.com>
9209
9210 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
9211 to...
9212 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
9213 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
9214
fcf23d5b
SM
92152020-05-27 Simon Marchi <simon.marchi@efficios.com>
9216
9217 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
9218 build_name_components, find_name_components_bounds>:
9219 Add per_objfile parameter.
9220 (struct mapped_index) <symbol_name_at>: Likewise.
9221 (struct mapped_debug_names): Remove constructor.
9222 <dwarf2_per_objfile>: Remove field.
9223 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
9224 (mapped_index_base::find_name_components_bounds,
9225 mapped_index_base::build_name_components,
9226 dw2_expand_symtabs_matching_symbol): Likewise.
9227 (class mock_mapped_index) <symbol_name_at>: Likewise.
9228 (check_match): Likewise.
9229 (check_find_bounds_finds): Likewise.
9230 (test_mapped_index_find_name_component_bounds): Update.
9231 (CHECK_MATCH): Update.
9232 (dw2_expand_symtabs_matching): Update.
9233 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
9234 per_objfile parameter.
9235 <find_vec_in_debug_names>: Likewise.
9236 <m_per_objfile>: New field.
9237 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
9238 parameter.
9239 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
9240 (dw2_debug_names_iterator::next): Update.
9241 (dw2_debug_names_lookup_symbol): Update.
9242 (dw2_debug_names_expand_symtabs_for_function): Update.
9243 (dw2_debug_names_map_matching_symbols): Update.
9244 (dw2_debug_names_expand_symtabs_matching): Update.
9245 (dwarf2_read_debug_names): Update.
9246
7188ed02
SM
92472020-05-27 Simon Marchi <simon.marchi@efficios.com>
9248
9249 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
9250 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
9251 move to dwarf2_per_objfile.
9252 <read_in_chain>: Remove.
9253 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
9254 remove_all_cus, age_comp_units>: New methods.
9255 <m_dwarf2_cus>: New member.
9256 (struct dwarf2_per_cu_data) <cu>: Remove.
9257 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
9258 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
9259 moved to methods of dwarf2_per_objfile.
9260 (dwarf2_clear_marks): Remove.
9261 (dwarf2_queue_item::~dwarf2_queue_item): Update.
9262 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
9263 (dwarf2_per_bfd::free_cached_comp_units): Remove.
9264 (dwarf2_per_objfile::remove_all_cus): New.
9265 (class free_cached_comp_units) <~free_cached_comp_units>:
9266 Update.
9267 (load_cu): Update.
9268 (dw2_do_instantiate_symtab): Adjust.
9269 (fill_in_sig_entry_from_dwo_entry): Adjust.
9270 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9271 (cutu_reader::cutu_reader): Likewise.
9272 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
9273 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
9274 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
9275 and dwarf2_per_objfile::age_comp_units.
9276 (load_partial_comp_unit): Update.
9277 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
9278 (process_queue): Likewise.
9279 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
9280 backlink.
9281 (dwarf2_read_addr_index): Likewise.
9282 (follow_die_offset): Likewise.
9283 (dwarf2_fetch_die_loc_sect_off): Likewise.
9284 (dwarf2_fetch_constant_bytes): Likewise.
9285 (dwarf2_fetch_die_type_sect_off): Likewise.
9286 (follow_die_sig_1): Likewise.
9287 (load_full_type_unit): Likewise.
9288 (read_signatured_type): Likewise.
9289 (dwarf2_cu::dwarf2_cu): Don't set cu field.
9290 (dwarf2_cu::~dwarf2_cu): Remove.
9291 (dwarf2_per_objfile::get_cu): New.
9292 (dwarf2_per_objfile::set_cu): New.
9293 (age_cached_comp_units): Rename to...
9294 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
9295 to std::unordered_map.
9296 (free_one_cached_comp_unit): Rename to...
9297 (dwarf2_per_objfile::remove_cu): ... this. Adjust
9298 to std::unordered_map.
9299 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
9300 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
9301 a dwarf2_per_objfile in data.
9302 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
9303 (dwarf2_clear_marks): Remove.
9304
2e671100
SM
93052020-05-27 Simon Marchi <simon.marchi@efficios.com>
9306
9307 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
9308 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
9309 (init_tu_and_read_dwo_dies): Likewise.
9310 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
9311 (cutu_reader::cutu_reader): Likewise.
9312 (load_partial_comp_unit): Likewise.
9313 (process_psymtab_comp_unit): Update.
9314 (build_type_psymtabs_1): Update.
9315 (process_skeletonless_type_unit): Update.
9316 (load_full_comp_unit): Update.
9317 (find_partial_die): Update.
9318 (dwarf2_read_addr_index): Update.
9319 (read_signatured_type): Update.
9320
2e6a9f79
SM
93212020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9322
9323 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
9324 m_header_read_in>: New fields.
9325 <get_header>: New method.
9326 * dwarf2/read.c (per_cu_header_read_in): Remove.
9327 (dwarf2_per_cu_data::get_header): New.
9328 (dwarf2_per_cu_data::addr_size): Update.
9329 (dwarf2_per_cu_data::offset_size): Update.
9330 (dwarf2_per_cu_data::ref_addr_size): Update.
9331
1b555f17
SM
93322020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9333
9334 * dwarf2/read.c (load_cu): Return dwarf2_cu.
9335 (dw2_do_instantiate_symtab): Update.
9336 (queue_and_load_all_dwo_tus): Change parameter from
9337 dwarf2_per_cu_data to dwarf2_cu.
9338 (dwarf2_fetch_die_loc_sect_off): Update.
9339 (dwarf2_fetch_constant_bytes): Update.
9340 (dwarf2_fetch_die_type_sect_off): Update.
9341
8fc0b21d
SM
93422020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9343
9344 * dwarf2/read.c (process_full_comp_unit,
9345 process_full_type_unit): Remove per_cu, per_objfile paramters.
9346 Add dwarf2_cu parameter.
9347 (process_queue): Update.
9348
168c9250
SM
93492020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9350
9351 * dwarf2/read.c (create_cu_from_index_list): Replace
9352 dwarf2_per_objfile parameter with dwarf2_per_bfd.
9353 (create_cus_from_index_list): Likewise.
9354 (create_cus_from_index): Likewise.
9355 (create_signatured_type_table_from_index): Likewise.
9356 (create_cus_from_debug_names_list): Likewise.
9357 (create_cus_from_debug_names): Likewise.
9358 (dwarf2_read_gdb_index): Update.
9359 (dwarf2_read_debug_names): Update.
9360
e286671b
TT
93612020-05-27 Tom Tromey <tom@tromey.com>
9362 Simon Marchi <simon.marchi@efficios.com>
9363
9364 * dwarf2/read.h (struct dwarf2_per_objfile)
9365 <get_type_for_signatured_type, set_type_for_signatured_type>:
9366 New methods.
9367 <m_type_map>: New member.
9368 (struct signatured_type) <type>: Remove.
9369 * dwarf2/read.c
9370 (dwarf2_per_objfile::get_type_for_signatured_type,
9371 dwarf2_per_objfile::set_type_for_signatured_type): New.
9372 (get_signatured_type): Use new methods.
9373
8adb8487
TT
93742020-05-27 Tom Tromey <tom@tromey.com>
9375 Simon Marchi <simon.marchi@efficios.com>
9376
9377 * dwarf2/read.h (struct type_unit_group_unshareable): New.
9378 (struct dwarf2_per_objfile) <type_units>: New member.
9379 <get_type_unit_group_unshareable>: New method.
9380 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
9381 num_symtabs, symtabs>: Remove; move to
9382 type_unit_group_unshareable.
9383 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
9384 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
9385 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
9386
127bbf4b
SM
93872020-05-27 Simon Marchi <simon.marchi@efficios.com>
9388
9389 * dwarf2/read.h (struct dwarf2_per_cu_data):
9390 <dwarf2_per_objfile>: Remove.
9391 * dwarf2/read.c (create_cu_from_index_list): Don't assign
9392 dwarf2_per_objfile.
9393 (create_signatured_type_table_from_index): Likewise.
9394 (create_signatured_type_table_from_debug_names): Likewise.
9395 (create_debug_type_hash_table): Likewise.
9396 (fill_in_sig_entry_from_dwo_entry): Likewise.
9397 (create_type_unit_group): Likewise.
9398 (read_comp_units_from_section): Likewise.
9399 (create_cus_hash_table): Likewise.
9400
f6e649dd
SM
94012020-05-27 Simon Marchi <simon.marchi@efficios.com>
9402
9403 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
9404 dwarf2_per_cu_data::dwarf2_per_objfile.
9405 (compute_compunit_symtab_includes): Likewise.
9406 (dwarf2_cu::start_symtab): Likewise.
9407
aa66c379
SM
94082020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9409
9410 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
9411 parameter.
9412 * dwarf2/read.c (get_die_type_at_offset): Likewise.
9413 (read_namespace_alias): Update.
9414 (lookup_die_type): Update.
9415 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
9416 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
9417 Update.
9418 (disassemble_dwarf_expression): Update.
9419
120ce1b5
SM
94202020-05-27 Simon Marchi <simon.marchi@efficios.com>
9421
9422 * dwarf2/read.h (struct dwarf2_queue_item): Add
9423 dwarf2_per_objfile parameter, assign new parameter.
9424 <per_objfile>: New field.
9425 * dwarf2/read.c (free_one_cached_comp_unit): Add
9426 dwarf2_per_objfile parameter.
9427 (queue_comp_unit): Likewise.
9428 (dw2_do_instantiate_symtab): Update.
9429 (process_psymtab_comp_unit): Update.
9430 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
9431 (process_imported_unit_die): Update.
9432 (queue_and_load_dwo_tu): Update.
9433 (follow_die_offset): Update.
9434 (follow_die_sig_1): Update.
9435
9f47c707
SM
94362020-05-27 Simon Marchi <simon.marchi@efficios.com>
9437
9438 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
9439 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
9440 (read_call_site_scope): Assign per_objfile.
9441 (dwarf2_per_cu_data::objfile): Remove.
9442 * gdbtypes.h (struct call_site) <per_objfile>: New member.
9443 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
9444 dwarf2_per_objfile parameter.
9445 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
9446 dwarf2_per_objfile parameter.
9447 (dwarf_expr_reg_to_entry_parameter): Add output
9448 dwarf2_per_objfile parameter.
9449 (locexpr_get_frame_base): Update.
9450 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
9451 <push_dwarf_reg_entry_value>: Update.
9452 <call_site_to_target_addr>: Update.
9453 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
9454 parameter.
9455 (value_of_dwarf_reg_entry): Update.
9456 (rw_pieced_value): Update.
9457 (indirect_synthetic_pointer): Update.
9458 (dwarf2_evaluate_property): Update.
9459 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
9460 parameter.
9461 (locexpr_read_variable): Update.
9462 (locexpr_get_symbol_read_needs): Update.
9463 (loclist_read_variable): Update.
9464
14095eb3
SM
94652020-05-27 Simon Marchi <simon.marchi@efficios.com>
9466
9467 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9468 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9469 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9470 parameter.
9471 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9472 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9473 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9474 parameter.
9475 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
9476 sect_variable_value): Add dwarf2_per_objfile parameter.
9477 (class dwarf_evaluate_loc_desc) <dwarf_call,
9478 dwarf_variable_value>: Update.
9479 (fetch_const_value_from_synthetic_pointer): Add
9480 dwarf2_per_objfile parameter.
9481 (fetch_const_value_from_synthetic_pointer): Update.
9482 (coerced_pieced_ref): Update.
9483 (class symbol_needs_eval_context) <dwarf_call,
9484 dwarf_variable_value>: Update.
9485 (dwarf2_compile_expr_to_ax): Update.
9486
3c3cd3d4
SM
94872020-05-27 Simon Marchi <simon.marchi@efficios.com>
9488
9489 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
9490 parameter.
9491 (dwarf2_evaluate_loc_desc_full): Update.
9492
82ca3f51
SM
94932020-05-27 Simon Marchi <simon.marchi@efficios.com>
9494
9495 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
9496 parameter.
9497 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
9498 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
9499 dwarf2_per_objfile parameter.
9500 (decode_debug_loc_dwo_addresses): Likewise.
9501 (dwarf2_find_location_expression): Update.
9502 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
9503 (locexpr_describe_location_piece): Add dwarf2_per_objfile
9504 parameter.
9505 (disassemble_dwarf_expression): Add dwarf2_per_objfile
9506 parameter.
9507 (locexpr_describe_location_1): Likewise.
9508 (locexpr_describe_location): Update.
9509
4b167ea1
SM
95102020-05-27 Simon Marchi <simon.marchi@efficios.com>
9511
9512 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
9513 Remove.
9514 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
9515 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
9516 (dwarf2_compile_property_to_c): Update.
9517 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
9518 use text offset from objfile.
9519 (locexpr_tracepoint_var_ref): Update.
9520 (locexpr_generate_c_location): Update.
9521 (loclist_describe_location): Update.
9522 (loclist_tracepoint_var_ref): Update.
9523 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
9524 dwarf2_per_objfile parameter.
9525 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
9526 use text offset from objfile.
9527 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
9528
89b07335
SM
95292020-05-27 Simon Marchi <simon.marchi@efficios.com>
9530
9531 * dwarf2/expr.h (struct dwarf_expr_context)
9532 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
9533 <offset>: Remove.
9534 <per_objfile>: New member.
9535 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
9536 dwarf2_per_objfile parameter. Don't set offset, set
9537 per_objfile.
9538 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
9539 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
9540 a dwarf2_per_objfile object instead of an offset.
9541 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
9542 constructor.
9543 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
9544 to dwarf2_expr_executor constructor. Don't set offset.
9545 (dwarf2_fetch_cfa_info): Update.
9546 (struct dwarf2_frame_cache) <text_offset>: Remove.
9547 <per_objfile>: New field.
9548 (dwarf2_frame_cache): Update.
9549 (dwarf2_frame_prev_register): Update.
9550 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9551 <dwarf_evaluate_loc_desc>: Add constructor.
9552 (dwarf2_evaluate_loc_desc_full): Update.
9553 (dwarf2_locexpr_baton_eval): Update.
9554 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
9555 Add constructor.
9556 (dwarf2_loc_desc_get_symbol_read_needs): Update.
9557
293e7e51
SM
95582020-05-27 Simon Marchi <simon.marchi@efficios.com>
9559
9560 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
9561 addr_sized_int_type>: Move to dwarf2_cu.
9562 <int_type>: Move to dwarf2_per_objfile.
9563 (struct dwarf2_per_objfile) <int_type>: Move here.
9564 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
9565 addr_sized_int_type>: Move here.
9566 (read_func_scope): Update.
9567 (read_array_type): Update.
9568 (read_tag_string_type): Update.
9569 (attr_to_dynamic_prop): Update.
9570 (dwarf2_per_cu_data::int_type): Rename to...
9571 (dwarf2_per_objfile::int_type): ... this.
9572 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
9573 (dwarf2_cu::addr_sized_int_type): ... this.
9574 (read_subrange_type): Update.
9575 (dwarf2_per_cu_data::addr_type): Rename to...
9576 (dwarf2_cu::addr_type): ... this.
9577 (set_die_type): Update.
9578
64874a40
SM
95792020-05-27 Simon Marchi <simon.marchi@efficios.com>
9580
9581 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
9582 data through per_cu->cu.
9583
4ab09049
SM
95842020-05-27 Simon Marchi <simon.marchi@efficios.com>
9585
9586 * dwarf2/read.c (lookup_dwo_comp_unit): Change
9587 dwarf2_per_cu_data parameter fo dwarf2_cu.
9588 (lookup_dwo_type_unit): Likewise.
9589 (read_cutu_die_from_dwo): Likewise.
9590 (lookup_dwo_unit): Likewise.
9591 (open_and_init_dwo_file): Likewise.
9592 (lookup_dwo_cutu): Likewise.
9593 (lookup_dwo_comp_unit): Likewise.
9594 (lookup_dwo_type_unit): Likewise.
9595 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9596 (cutu_reader::cutu_reader): Update.
9597
47b14e86
SM
95982020-05-27 Simon Marchi <simon.marchi@efficios.com>
9599
9600 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
9601 parameter.
9602 (process_full_type_unit): Likewise.
9603 (process_queue): Update.
9604
43182c09
SM
96052020-05-27 Simon Marchi <simon.marchi@efficios.com>
9606
9607 * dwarf2/read.c (recursively_compute_inclusions): Add
9608 dwarf2_per_objfile parameter.
9609 (compute_compunit_symtab_includes): Likewise.
9610 (process_cu_includes): Update.
9611
7aa104c4
SM
96122020-05-27 Simon Marchi <simon.marchi@efficios.com>
9613
9614 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
9615 parameter.
9616 (create_type_unit_group): Update.
9617 (process_psymtab_comp_unit_reader): Update.
9618 (build_type_psymtabs_reader): Update.
9619
e3beb21d
SM
96202020-05-27 Simon Marchi <simon.marchi@efficios.com>
9621
9622 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
9623 object through m_this_cu->cu.
9624
d460f660
SM
96252020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9626
9627 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
9628 the info parameter.
9629 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
9630
ab432490
SM
96312020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9632
9633 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
9634 per_objfile parameter.
9635 (load_full_type_unit): Add per_objfile parameter.
9636 (read_signatured_type): Likewise.
9637 (load_full_comp_unit): Likewise.
9638 (load_cu): Likewise.
9639 (dw2_do_instantiate_symtab): Likewise.
9640 (dw2_get_file_names): Likewise.
9641 (dw2_map_symtabs_matching_filename): Update.
9642 (dw_expand_symtabs_matching_file_matcher): Update.
9643 (dw2_map_symbol_filenames): Update.
9644 (process_psymtab_comp_unit): Add per_objfile parameter.
9645 (build_type_psymtabs_1): Update.
9646 (process_skeletonless_type_unit): Update.
9647 (dwarf2_build_psymtabs_hard): Update.
9648 (load_partial_comp_unit): Add per_objfile parameter.
9649 (scan_partial_symbols): Update.
9650 (load_full_comp_unit): Add per_objfile parameter.
9651 (process_imported_unit_die): Update.
9652 (create_cus_hash_table): Update.
9653 (find_partial_die): Update.
9654 (dwarf2_read_addr_index): Update.
9655 (follow_die_offset): Update.
9656 (dwarf2_fetch_die_loc_sect_off): Update.
9657 (dwarf2_fetch_constant_bytes): Update.
9658 (dwarf2_fetch_die_type_sect_off): Update.
9659 (follow_die_sig_1): Update.
9660 (load_full_type_unit): Add per_objfile parameter.
9661 (read_signatured_type): Likewise.
9662
313bad1b
SM
96632020-05-27 Simon Marchi <simon.marchi@efficios.com>
9664
9665 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
9666 of objfile_name.
9667
c3699833
SM
96682020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9669
9670 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
9671 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9672 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
9673 field.
9674 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9675 (create_cus_from_index): Update.
9676 (dwarf2_read_gdb_index): Update.
9677 (create_cus_from_debug_names): Update.
9678 (dwarf2_read_debug_names): Update.
9679 (get_abbrev_section_for_cu): Update.
9680 (create_all_comp_units): Update.
9681 (read_attribute_value): Update.
9682 (get_debug_line_section): Update.
9683 * dwarf2/index-cache.c (index_cache::store): Update.
9684 * dwarf2/index-write.c (save_gdb_index_command): Update.
9685 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
9686
1859c670
SM
96872020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9688
9689 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
9690 member.
9691 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
9692 dwarf2_per_cu_data::per_bfd.
9693 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
9694 (create_type_unit_group): Likewise.
9695 (queue_comp_unit): Remove reference to
9696 per_cu->dwarf2_per_objfile.
9697 (maybe_queue_comp_unit): Likewise.
9698 (fill_in_sig_entry_from_dwo_entry): Assign new field.
9699 (create_cus_hash_table): Assign new field.
9700
5e22e966
SM
97012020-05-27 Simon Marchi <simon.marchi@efficios.com>
9702
9703 * dwarf2/read.c: Replace
9704 dwarf2_cu->per_cu->dwarf2_per_objfile references with
9705 dwarf2_cu->per_objfile throughout.
9706
97a1449a
SM
97072020-05-27 Simon Marchi <simon.marchi@efficios.com>
9708
9709 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
9710 parameter, don't use per_cu->dwarf2_per_objfile.
9711 (dw2_instantiate_symtab): Likewise.
9712 (dw2_find_last_source_symtab): Update.
9713 (dw2_map_expand_apply): Update.
9714 (dw2_lookup_symbol): Update.
9715 (dw2_expand_symtabs_for_function): Update.
9716 (dw2_expand_all_symtabs): Update.
9717 (dw2_expand_symtabs_with_fullname): Update.
9718 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
9719 don't use per_cu->dwarf2_per_objfile.
9720 (dw2_expand_marked_cus): Update.
9721 (dw2_find_pc_sect_compunit_symtab): Update.
9722 (dw2_debug_names_lookup_symbol): Update.
9723 (dw2_debug_names_expand_symtabs_for_function): Update.
9724 (dw2_debug_names_map_matching_symbols): Update.
9725 (dwarf2_psymtab::expand_psymtab): Update.
9726
9e021579
SM
97272020-05-27 Simon Marchi <simon.marchi@efficios.com>
9728
9729 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
9730 <per_objfile>: New member.
9731 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
9732 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
9733 call to dwarf2_cu.
9734 (cutu_reader::cutu_reader): Update.
9735 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
9736
ae090bdb
SM
97372020-05-27 Simon Marchi <simon.marchi@efficios.com>
9738
9739 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
9740 struct dwarf2_per_objfile.
9741 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
9742 dwarf2_per_bfd.
9743 * dwarf2/read.c (set_die_type): Update.
9744 (get_die_type_at_offset): Update.
9745
af758d11
SM
97462020-05-27 Tom Tromey <tom@tromey.com>
9747 Simon Marchi <simon.marchi@efficios.com>
9748
9749 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
9750 method.
9751 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
9752 get_symtab, set_symtab>: New methods.
9753 <m_symtabs>: New field.
9754 (struct dwarf2_psymtab): Derive from partial_symtab.
9755 <readin_p, get_compunit_symtab>: Declare methods.
9756 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
9757 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
9758 New methods.
9759 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
9760 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
9761 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
9762 (dw2_symtab_iter_next, dw2_print_stats)
9763 (dw2_expand_symtabs_with_fullname)
9764 (dw2_expand_symtabs_matching_one)
9765 (dw_expand_symtabs_matching_file_matcher)
9766 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
9767 (dw2_debug_names_iterator::next)
9768 (dw2_debug_names_map_matching_symbols)
9769 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
9770 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
9771 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
9772 New methods.
9773 (get_compunit_symtab, process_full_comp_unit)
9774 (process_full_type_unit): Update.
9775 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
9776
5989a64e
SM
97772020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9778
9779 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
9780 then introduce a new dwarf2_per_objfile type.
9781 <read_line_string>: Move to the new dwarf2_per_objfile type.
9782 <objfile>: Likewise.
9783 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
9784 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
9785 dwarf2_per_objfile->per_bfd.
9786 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
9787 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
9788 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
9789 (dwarf2_per_bfd::free_cached_comp_units): ... this.
9790 (dwarf2_has_info): Allocate dwarf2_per_bfd.
9791 (dwarf2_per_objfile::locate_sections): Rename to...
9792 (dwarf2_per_bfd::locate_sections): ... this.
9793 (dwarf2_per_objfile::get_cutu): Rename to...
9794 (dwarf2_per_bfd::get_cutu): ... this.
9795 (dwarf2_per_objfile::get_cu): Rename to...
9796 (dwarf2_per_bfd::get_cu): ... this.
9797 (dwarf2_per_objfile::get_tu): Rename to...
9798 (dwarf2_per_bfd::get_tu): ... this.
9799 (dwarf2_per_objfile::allocate_per_cu): Rename to...
9800 (dwarf2_per_bfd::allocate_per_cu): ... this.
9801 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
9802 (dwarf2_per_bfd::allocate_signatured_type): ... this.
9803 (get_gdb_index_contents_ftype): Change parameter from
9804 dwarf2_per_objfile to dwarf2_per_bfd.
9805 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
9806 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
9807
a50264ba
TT
98082020-05-27 Tom Tromey <tom@tromey.com>
9809 Simon Marchi <simon.marchi@efficios.com>
9810
9811 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
9812 (allocate_piece_closure): Set "per_objfile" member.
9813 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
9814 (locexpr_describe_location, loclist_describe_location): Use new
9815 member.
9816 * dwarf2/read.c (read_call_site_scope)
9817 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
9818 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
9819 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
9820 handle_data_member_location): Set per_objfile member.
9821 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
9822 member.
9823 (struct dwarf2_loclist_baton) <per_objfile>: New member.
9824
d3473f0c
TT
98252020-05-27 Tom Tromey <tom@tromey.com>
9826
9827 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
9828 allocate_signatured_type>: Declare new methods.
9829 <m_num_psymtabs>: New member.
9830 (struct dwarf2_per_cu_data) <index>: New member.
9831 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
9832 (dwarf2_per_objfile::allocate_signatured_type): New methods.
9833 (create_cu_from_index_list): Use allocate_per_cu.
9834 (create_signatured_type_table_from_index)
9835 (create_signatured_type_table_from_debug_names)
9836 (create_debug_type_hash_table, add_type_unit)
9837 (read_comp_units_from_section): Use allocate_signatured_type.
9838
5717c425
TT
98392020-05-27 Tom Tromey <tom@tromey.com>
9840
9841 * psymtab.c (partial_map_expand_apply)
9842 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9843 (psym_lookup_global_symbol_language)
9844 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9845 (psym_print_stats, psym_expand_symtabs_for_function)
9846 (psym_map_symbol_filenames, psym_map_matching_symbols)
9847 (psym_expand_symtabs_matching)
9848 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9849 (maintenance_check_psymtabs): Update.
9850 * psympriv.h (struct partial_symtab) <readin_p,
9851 get_compunit_symtab>: Add objfile parameter.
9852 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
9853 Likewise.
9854 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
9855 get_compunit_symtab>: Likewise.
9856 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
9857
45940949
TT
98582020-05-27 Tom Tromey <tom@tromey.com>
9859
9860 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
9861 member.
9862 * dwarf2/read.c (delete_file_name_entry): Fix comment.
9863 (create_cu_from_index_list)
9864 (create_signatured_type_table_from_index)
9865 (create_signatured_type_table_from_debug_names)
9866 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
9867 (dwarf2_create_include_psymtab)
9868 (create_debug_type_hash_table, add_type_unit)
9869 (create_type_unit_group, read_comp_units_from_section)
9870 (dwarf2_compute_name, create_cus_hash_table)
9871 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9872 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
9873 obstack.
9874 (dw2_get_real_path): Likewise. Change argument to
9875 dwarf2_per_objfile.
9876
f8c6d152
LM
98772020-05-27 Luis Machado <luis.machado@linaro.org>
9878
9879 PR tdep/26000
9880 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
9881 for ldrd (immediate).
9882
e98d2e6d
PW
98832020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9884
9885 * command.h: Add comment giving the name of class_tui.
9886 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
9887 create the fake command for the help for class_tui.
9888
53a47a3e
TT
98892020-05-26 Tom Tromey <tromey@adacore.com>
9890
9891 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
9892 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
9893 (val_atr): New function.
9894 (value_val_atr): Use it.
9895 * ada-valprint.c (print_optional_low_bound): Change low bound
9896 handling for enums.
9897 (val_print_packed_array_elements): Don't call discrete_position.
9898 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
9899 discrete_position for enum types.
9900 * language.c (default_print_array_index): Change type.
9901 * language.h (struct language_defn) <la_print_array_index>: Add
9902 index_type parameter, change type of index_value.
9903 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
9904 (default_print_array_index): Update.
9905 * valprint.c (maybe_print_array_index): Don't call
9906 value_from_longest. Update.
9907 (value_print_array_elements): Don't call discrete_position.
9908
0bc2354b
TT
99092020-05-26 Tom Tromey <tromey@adacore.com>
9910
9911 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
9912 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
9913
1218a4bf
CDA
99142020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
9915
9916 PR gdb/13519
9917 * avr-tdep.c (avr_integer_to_address): Return data or code
9918 address accordingly to the second 'type' argument of the
9919 function.
9920
92651b1d
MW
99212020-05-25 Michael Weghorn <m.weghorn@posteo.de>
9922
9923 * infcmd.c, inferior.h: (construct_inferior_arguments):
9924 Moved function from here to gdbsupport/common-inferior.{h,cc}
9925
0a4f5f8c
TT
99262020-05-23 Tom Tromey <tom@tromey.com>
9927
9928 Revert commit eca1f90c:
9929 * NEWS: Remove entry for completion styling.
9930 * completer.c (_rl_completion_prefix_display_length): Move
9931 declaration later.
9932 (gdb_fnprint): Revert.
9933 (gdb_display_match_list_1): Likewise.
9934 * cli/cli-style.c (completion_prefix_style)
9935 (completion_difference_style, completion_suffix_style): Remove.
9936 (_initialize_cli_style): Revert.
9937 * cli/cli-style.h (completion_prefix_style)
9938 (completion_difference_style, completion_suffix_style): Don't
9939 declare.
9940
e08bd6c5
PA
99412020-05-24 Pedro Alves <palves@redhat.com>
9942
9943 * symtab.c (completion_list_add_name): Return boolean indication
9944 of whether the symbol matched.
9945 (completion_list_add_symbol): Don't try to remove C++ aliases if
9946 the symbol didn't match in the first place.
9947 * symtab.h (completion_list_add_name): Return bool.
9948
ceacbf6e
SM
99492020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
9950
9951 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
9952 type::field.
9953
26f16254
JB
99542020-05-23 Joel Brobecker <brobecker@adacore.com>
9955
9956 GDB 9.2 released.
9957
eca1f90c
TT
99582020-05-23 Tom Tromey <tom@tromey.com>
9959
9960 * NEWS: Add entry for completion styling.
9961 * completer.c (_rl_completion_prefix_display_length): Move
9962 declaration earlier.
9963 (gdb_fnprint): Use completion_style.
9964 (gdb_display_match_list_1): Likewise.
9965 * cli/cli-style.c (completion_prefix_style)
9966 (completion_difference_style, completion_suffix_style): New
9967 globals.
9968 (_initialize_cli_style): Register new globals.
9969 * cli/cli-style.h (completion_prefix_style)
9970 (completion_difference_style, completion_suffix_style): Declare.
9971
51e2cfa2
PA
99722020-05-23 Pedro Alves <palves@redhat.com>
9973
9974 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
9975 (parse_escape): Use ISDIGIT instead of isdigit.
9976 (puts_debug): Use gdb_isprint instead of isprint.
9977 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
9978 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
9979 ISSPACE instead of isspace.
9980 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
9981 instead of isspace.
9982 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
9983 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
9984 instead of isxdigit and ISDIGIT instead of isdigit.
9985
80fc5e77
SM
99862020-05-22 Simon Marchi <simon.marchi@efficios.com>
9987
9988 * gdbtypes.h (struct type) <field>: New method.
9989 (TYPE_FIELDS): Remove, replace all uses with either type::fields
9990 or type::field.
9991
3cabb6b0
SM
99922020-05-22 Simon Marchi <simon.marchi@efficios.com>
9993
9994 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
9995 (TYPE_FIELDS): Use type::fields. Change all call sites that
9996 modify the propery to use type::set_fields instead.
9997
1f704f76
SM
99982020-05-22 Simon Marchi <simon.marchi@efficios.com>
9999
10000 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
10001 type::num_fields instead.
10002
5e33d5f4
SM
100032020-05-22 Simon Marchi <simon.marchi@efficios.com>
10004
10005 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
10006 methods.
10007 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
10008 that modify the number of fields to use type::set_num_fields
10009 instead.
10010
9392ebb3
TT
100112020-05-22 Tom Tromey <tromey@adacore.com>
10012
10013 * compile/compile-object-load.h (munmap_list_free): Don't
10014 declare.
10015
7c13f4e8
AB
100162020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
10017
10018 * annotate.c (annotate_source_line): Update return type, add call
10019 to update current symtab and line.
10020 * annotate.h (annotate_source_line): Update return type, and
10021 extend header comment.
10022 * source.c (info_line_command): Check annotation_level before
10023 calling annotate_source_line.
10024 * stack.c (print_frame_info): If calling annotate_source_line
10025 returns true, then don't print any other source line information.
10026
aa370940
SM
100272020-05-21 Simon Marchi <simon.marchi@efficios.com>
10028
10029 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
10030
84d53fa9
SM
100312020-05-21 Simon Marchi <simon.marchi@efficios.com>
10032
10033 * coffread.c (patch_type): Remove NULL check before xfree.
10034 * corefile.c (set_gnutarget): Likewise.
10035 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
10036 * exec.c (build_section_table): Likewise.
10037 * remote.c (remote_target::pass_signals): Likewise.
10038 * utils.c (n_spaces): Likewise.
10039 * cli/cli-script.c (document_command): Likewise.
10040 * i386-windows-tdep.c (core_process_module_section): Likewise.
10041 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
10042
9d428aae
SM
100432020-05-20 Simon Marchi <simon.marchi@efficios.com>
10044
10045 * symfile.c (reread_symbols): Clear objfile's section_offsets
10046 vector and section indices, re-compute them by calling
10047 sym_offsets.
10048
250106a7
TT
100492020-05-20 Tom Tromey <tromey@adacore.com>
10050
10051 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 10052 (desc_one_bound, desc_index_type): Compute field name.
250106a7 10053
9a0bacfb
TV
100542020-05-20 Tom de Vries <tdevries@suse.de>
10055
10056 PR symtab/25833
10057 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
10058
7b958a48
AM
100592020-05-20 Alan Modra <amodra@gmail.com>
10060
10061 PR 25993
10062 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
10063 bfd_set_filename.
10064 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
10065 passed to bfd_set_filename.
10066 * symfile-mem.c (add_vsyscall_page): Likewise for string
10067 passed to symbol_file_add_from_memory.
10068 (symbol_file_add_from_memory): Make name param a const char* and
10069 don't strdup.
10070
c7e97679
AM
100712020-05-20 Alan Modra <amodra@gmail.com>
10072
10073 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
10074 rather than accessing bfd->filename directly.
10075 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
10076 and use bfd_section_name.
10077 * dwarf2/frame.c (decode_frame_entry): Likewise.
10078 * exec.c (exec_set_section_address): Likewise.
10079 * solib-aix.c (solib_aix_bfd_open): Likewise.
10080 * stap-probe.c (get_stap_base_address): Likewise.
10081 * symfile.c (reread_symbols): Likewise.
10082
563c591b
TT
100832020-05-19 Tom Tromey <tromey@adacore.com>
10084
10085 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
10086
f408d82c
SM
100872020-05-19 Simon Marchi <simon.marchi@efficios.com>
10088
10089 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
10090
98c59b52
PA
100912020-05-19 Pedro Alves <palves@redhat.com>
10092
10093 * NEWS (set exec-file-mismatch): Adjust entry.
10094 * exec.c: Include "build-id.h".
10095 (validate_exec_file): Try to match build IDs instead of filenames.
10096 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
10097 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
10098 and pass down 'warn_if_slow'.
10099 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
10100 gdb_bfd_open_closure to pass it down.
10101 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
10102
4111f652
PA
101032020-05-19 Pedro Alves <palves@redhat.com>
10104
10105 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
10106 * target.c (target_fileio_open_1): Rename to target_fileio_open
10107 and make extern. Use bool.
10108 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
10109 (target_fileio_read_alloc_1): Adjust.
10110 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
10111 (target_fileio_open_warn_if_slow): Delete declaration.
10112
ad80db5b
PA
101132020-05-19 Pedro Alves <palves@redhat.com>
10114
10115 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
10116 Adjust all callers.
10117
1d6ce4d3
YS
101182020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
10119
10120 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
10121 whether disp is negative.
10122
9005fbbb
SM
101232020-05-19 Simon Marchi <simon.marchi@efficios.com>
10124
10125 * symfile.h (struct symfile_segment_data)
10126 <~symfile_segment_data>: Remove.
10127 <segment_info>: Change to std::vector.
10128 * symfile.c (default_symfile_segments): Update.
10129 * elfread.c (elf_symfile_segments): Update.
10130
68b888ff
SM
101312020-05-19 Simon Marchi <simon.marchi@efficios.com>
10132
10133 * symfile.h (struct symfile_segment_data) <struct segment>: New.
10134 <segments>: New.
10135 <segment_bases, segment_sizes>: Remove.
10136 * symfile.c (default_symfile_segments): Update.
10137 * elfread.c (elf_symfile_segments): Update.
10138 * remote.c (remote_target::get_offsets): Update.
10139 * solib-target.c (solib_target_relocate_section_addresses):
10140 Update.
10141
62982abd
SM
101422020-05-19 Simon Marchi <simon.marchi@efficios.com>
10143
10144 * symfile.h (struct symfile_segment_data): Initialize fields.
10145 <~symfile_segment_data>: Add.
10146 (symfile_segment_data_up): New.
10147 (struct sym_fns) <sym_segments>: Return a
10148 symfile_segment_data_up.
10149 (default_symfile_segments): Return a symfile_segment_data_up.
10150 (free_symfile_segment_data): Remove.
10151 (get_symfile_segment_data): Return a symfile_segment_data_up.
10152 * symfile.c (default_symfile_segments): Likewise.
10153 (get_symfile_segment_data): Likewise.
10154 (free_symfile_segment_data): Remove.
10155 (symfile_find_segment_sections): Update.
10156 * elfread.c (elf_symfile_segments): Return a
10157 symfile_segment_data_up.
10158 * remote.c (remote_target::get_offsets): Update.
10159 * solib-target.c (solib_target_relocate_section_addresses):
10160 Update.
10161 * symfile-debug.c (debug_sym_segments): Return a
10162 symfile_segment_data_up.
10163
7f204339
RO
101642020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10165
e52a0f1b
RO
10166 PR build/25981
10167 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
10168 Hardcode register numbers.
10169
7f204339
RO
10170 PR build/25981
10171 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
10172 procfs_find_LDT_entry): Remove.
10173 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
10174 procfs_find_LDT_entry): Remove.
10175 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
10176 Remove.
10177
7f32a4d5
PA
101782020-05-17 Pedro Alves <palves@redhat.com>
10179 Andrew Burgess <andrew.burgess@embecosm.com>
10180 Keno Fischer <keno@juliacomputing.com>
10181
10182 PR gdb/25741
10183 * breakpoint.c (build_target_condition_list): Update comments.
10184 (build_target_command_list): Update comments and skip matching
10185 locations.
10186 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
10187 a separate function. Simplify "set breakpoint auto-hw off"
10188 handling.
10189 (insert_breakpoints): Update comment.
10190 (tracepoint_locations_match): New parameter. For breakpoints,
10191 compare location types too, if the caller wants to.
10192 (handle_automatic_hardware_breakpoints): New functions.
10193 (bp_location_is_less_than): Also sort by location type and
10194 hardware breakpoint length.
10195 (update_global_location_list): Handle "set breakpoint auto-hw on"
10196 here.
10197 (update_breakpoint_locations): Ask breakpoint_locations_match to
10198 ignore location types.
10199
7d93a1e0
SM
102002020-05-16 Simon Marchi <simon.marchi@efficios.com>
10201
10202 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
10203 type::name instead.
10204
d0e39ea2
SM
102052020-05-16 Simon Marchi <simon.marchi@efficios.com>
10206
10207 * gdbtypes.h (struct type) <name, set_name>: New methods.
10208 (TYPE_CODE): Use type::name. Change all call sites used to set
10209 the name to use type::set_name instead.
10210
2dab0c7b
TT
102112020-05-16 Tom Tromey <tom@tromey.com>
10212
10213 * top.c (quit_force): Update.
10214 * infrun.c (handle_no_resumed): Update.
10215 * top.h (all_uis): New function.
10216 (ALL_UIS): Remove.
10217
59f7bd8d
SM
102182020-05-16 Simon Marchi <simon.marchi@efficios.com>
10219
10220 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
10221
9bf058f0
PA
102222020-05-16 Pedro Alves <palves@redhat.com>
10223
10224 * ia64-linux-nat.c
10225 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
10226 Declare method.
10227 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
10228
8f86ae1a
SM
102292020-05-15 Simon Marchi <simon.marchi@efficios.com>
10230
10231 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
10232 (sparc64_adi_info): Likewise.
10233
d6bc0792
TT
102342020-05-15 Tom Tromey <tom@tromey.com>
10235
10236 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
10237 block_objfile.
10238 (lookup_objfile_from_block): Remove.
10239 (lookup_symbol_in_block, lookup_symbol_in_static_block)
10240 (lookup_global_symbol): Use block_objfile.
10241 * symtab.h (lookup_objfile_from_block): Don't declare.
10242 * printcmd.c (clear_dangling_display_expressions): Use
10243 block_objfile.
10244 * parse.c (operator_check_standard): Use block_objfile.
10245
8c14c3a3
TT
102462020-05-15 Tom Tromey <tom@tromey.com>
10247
10248 * language.c (language_alloc_type_symbol): Set
10249 SYMBOL_SECTION.
10250 * symtab.c (initialize_objfile_symbol): Remove.
10251 (allocate_symbol): Remove.
10252 (allocate_template_symbol): Remove.
10253 * dwarf2/read.c (fixup_go_packaging): Use "new".
10254 (new_symbol): Use "new".
10255 (read_variable): Don't call initialize_objfile_symbol. Use
10256 "new".
10257 (read_func_scope): Use "new".
10258 * xcoffread.c (process_xcoff_symbol): Don't call
10259 initialize_objfile_symbol.
10260 (SYMBOL_DUP): Remove.
10261 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
10262 "new".
10263 * symtab.h (allocate_symbol, initialize_objfile_symbol)
10264 (allocate_template_symbol): Don't declare.
10265 (struct symbol): Add copy constructor. Change defaults.
10266 * jit.c (finalize_symtab): Use "new".
10267 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
10268 Use "new".
10269 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
10270 (common_block_end): Use "new".
10271 * mdebugread.c (parse_symbol): Use "new".
10272 (new_symbol): Likewise.
10273
5b4a1a8d
PW
102742020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10275
10276 * NEWS: Mention changes to help and apropos.
10277
57b4f16e
PW
102782020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10279
10280 * command.h (enum command_class): Improve comments, document
10281 that class_alias is for user-defined aliases, give the class
10282 name for each class, remove unused class_xdb.
10283 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
10284 * breakpoint.c (_initialize_breakpoint): Replace class_alias
10285 by a precise class.
10286 * infcmd.c (_initialize_infcmd): Likewise.
10287 * reverse.c (_initialize_reverse): Likewise.
10288 * stack.c (_initialize_stack): Likewise.
10289 * symfile.c (_initialize_symfile): Likewise.
10290 * tracepoint.c (_initialize_tracepoint): Likewise.
10291
7c05caf7
PW
102922020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10293
10294 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
10295 when their aliased command is traversed.
10296 (help_cmd): Add fput_command_names_styled call to
10297 output command name and aliases when command has an alias.
10298
3b3aaacb
PW
102992020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10300
10301 * cli/cli-decode.h (help_cmd_list): Remove declaration.
10302 * cli/cli-decode.c (help_cmd_list): Declare as static,
10303 remove prefix argument, use bool for recurse arg, rework to show the aliases of
10304 a command together with the command.
10305 (fput_command_name_styled, fput_command_names_styled): New functions.
10306 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
10307 fput_command_name_styled.
10308 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
10309 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
10310
7aa1b46f
PW
103112020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10312
10313 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
10314 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
10315 * command.h (cmd_show_list): Likewise.
10316 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
10317 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
10318
89bcba74
PW
103192020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10320
10321 * unittests/command-def-selftests.c (traverse_command_structure):
10322 Verify all commands of a list have the same prefix command and
10323 that only the top cmdlist commands have a null prefix.
10324
3f4d92eb
PW
103252020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10326
10327 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
10328 as prefix, not one of its aliases.
10329 (set_cmd_prefix): Remove.
10330 (do_add_cmd): Centralize the setting of the prefix of a command, when
10331 command is defined after its full chain of prefix commands.
10332 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
10333 (add_setshow_cmd_full): Likewise.
10334 (update_prefix_field_of_prefixed_commands): New function.
10335 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
10336 update_prefix_field_of_prefixed_commands.
10337 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
10338 addresses of remote_set_cmdlist and remote_show_cmdlist given
10339 as argument, not the address of an argument.
10340 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
10341 * gdb/remote.c (_initialize_remote): Likewise.
10342
0605465f
PW
103432020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10344
10345 * cli/cli-cmds.c (alias_command): Check for an existing alias
10346 using lookup_cmd_composition, as valid_command_p is too strict
10347 and forbids aliases that are the prefix of an existing alias
10348 or command.
10349 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
10350 command is properly recognised as a valid command.
10351
58e6ac70
PW
103522020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10353
10354 * unittests/help-doc-selftests.c: Rename to
10355 unittests/command-def-selftests.c
10356 * unittests/command-def-selftests.c (help_doc_tests): Update some
10357 comments.
10358 (command_structure_tests, traverse_command_structure): New namespace
10359 and function.
10360 (command_structure_invariants_tests): New function.
10361 (_initialize_command_def_selftests) Renamed from
10362 _initialize_help_doc_selftests, register command_structure_invariants
10363 selftest.
10364
a7b9ceb8
PW
103652020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10366
10367 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
10368 an alias of 'show'.
10369
b2188a06
JB
103702020-05-15 Joel Brobecker <brobecker@adacore.com>
10371
10372 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
10373 ada_is_fixed_point_type. Update all callers.
10374 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
10375 all callers.
10376 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
10377 Update all callers.
10378 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
10379 print_fixed_point_type. Update all callers.
10380 * ada-valprint.c (ada_value_print_num): Replace call to
10381 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
10382
a51951c2
KB
103832020-05-14 Kevin Buettner <kevinb@redhat.com>
10384
10385 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
10386 processors.
10387 (cpu_supports_bts): Add CV_AMD case.
10388
29d6859f
LM
103892020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
10390 Simon Marchi <simon.marchi@efficios.com>
10391
10392 * infrun.c (stop_all_threads): Collect multiple wait events at
10393 each pass.
10394
78134374
SM
103952020-05-14 Simon Marchi <simon.marchi@efficios.com>
10396
10397 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
10398 type::code instead.
10399
67607e24
SM
104002020-05-14 Simon Marchi <simon.marchi@efficios.com>
10401
10402 * gdbtypes.h (struct type) <code, set_code>: New methods.
10403 (TYPE_CODE): Use type::code. Change all call sites used to set
10404 the code to use type::set_code instead.
10405
a05575d3
TBA
104062020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10407 Tom de Vries <tdevries@suse.de>
10408 Pedro Alves <palves@redhat.com>
10409
10410 PR threads/25478
10411 * infrun.c (stop_all_threads): Do NOT ignore
10412 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
10413 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
10414 received.
10415 (handle_no_resumed): Remove code handling a live inferior with no
10416 threads.
10417 * remote.c (has_single_non_exited_thread): New.
10418 (remote_target::update_thread_list): Do not delete a thread if is
10419 the last thread of the process.
10420 * thread.c (thread_select): Call delete_exited_threads instead of
10421 prune_threads.
10422
6ad82919
TBA
104232020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10424
10425 * infrun.c (stop_all_threads): Enable/disable thread events of all
10426 targets. Move a debug message denoting the end of the function
10427 into the SCOPED_EXIT block.
10428
d890404b
TBA
104292020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10430
10431 * process-stratum-target.h: Include <set>.
10432 (all_non_exited_process_targets, switch_to_target_no_thread): New
10433 function declarations.
10434 * process-stratum-target.c (all_non_exited_process_targets)
10435 (switch_to_target_no_thread): New function implementations.
10436
293b3ebc
TBA
104372020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10438
10439 * infrun.c (handle_inferior_event): Extract out a piece of code
10440 into...
10441 (mark_non_executing_threads): ...this new function.
10442
7ca9b62a
TBA
104432020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10444
10445 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
10446 use.
10447
fc75c28b
TBA
104482020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10449
10450 * regcache.c (regcache_read_pc_protected): New function
10451 implementation that returns 0 if the PC cannot read via
10452 'regcache_read_pc'.
10453 * infrun.c (proceed): Call 'regcache_read_pc_protected'
10454 instead of 'regcache_read_pc'.
10455 (keep_going_pass_signal): Ditto.
10456
a89febbd
TT
104572020-05-13 Tom Tromey <tromey@adacore.com>
10458
10459 * ada-lang.c (align_value): Remove.
10460 (ada_template_to_fixed_record_type_1): Use align_up.
10461
f7e23710
TBA
104622020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10463
10464 * async-event.c: Update the copyright year.
10465 * async-event.h: Update the copyright year.
10466
02ff80c2
SM
104672020-05-12 Simon Marchi <simon.marchi@efficios.com>
10468
10469 * objfiles.h (is_addr_in_objfile,
10470 shared_objfile_contains_address_p): Return bool.
10471 * objfile.c (is_addr_in_objfile,
10472 shared_objfile_contains_address_p): Return bool.
10473
4fd6c7e8
TT
104742020-05-11 Tom Tromey <tromey@adacore.com>
10475
10476 * cli/cli-cmds.c (info_command): Restore.
10477 (_initialize_cli_cmds): Use add_prefix_command for "info".
10478 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
10479
5eb68a39
TT
104802020-05-11 Tom Tromey <tromey@adacore.com>
10481
10482 * ada-lang.c (ada_value_primitive_field): Now public.
10483 * ada-lang.h (ada_value_primitive_field): Declare.
10484 * ada-valprint.c (print_field_values): Use
10485 ada_value_primitive_field for wrapper fields.
10486
7666722f
TV
104872020-05-11 Tom de Vries <tdevries@suse.de>
10488
10489 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
10490 MODULE_DOMAIN.
10491
3ee6bb11
TV
104922020-05-11 Tom de Vries <tdevries@suse.de>
10493
10494 PR symtab/25941
10495 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
10496 with length 0, if not gdb-produced.
10497 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
10498
43434996
TV
104992020-05-09 Tom de Vries <tdevries@suse.de>
10500
10501 PR gdb/25955
10502 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
10503 calculation.
10504
2f78cffc
TT
105052020-05-09 Tom Tromey <tom@tromey.com>
10506
10507 * top.c (server_command): Now bool.
10508 * top.h (server_command): Now bool.
10509
4f7bc5ed
TT
105102020-05-08 Tom Tromey <tromey@adacore.com>
10511
10512 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
10513 already being processed.
10514
8be4b118
TT
105152020-05-08 Tom Tromey <tom@tromey.com>
10516
10517 * printcmd.c (struct display) <next>: Remove.
10518 <display>: New constructor.
10519 <exp_string>: Now a std::string.
10520 <enabled_p>: Now a bool.
10521 (display_number): Move definition earlier.
10522 (displays): Rename from display_chain. Now a std::vector.
10523 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
10524 (display_command): Update.
10525 (do_one_display, disable_display)
10526 (enable_disable_display_command, do_enable_disable_display):
10527 Update.
10528 (free_display): Remove.
10529 (clear_displays): Rewrite.
10530 (delete_display): Update.
10531 (map_display_numbers): Use function_view. Remove "data"
10532 parameter. Update.
10533 (do_delete_display): Remove.
10534 (undisplay_command): Update.
10535 (do_one_display, do_displays, disable_display)
10536 (info_display_command): Update.
10537 (do_enable_disable_display): Remove.
10538 (enable_disable_display_command)
10539 (clear_dangling_display_expressions): Update.
10540
94c93c35
TT
105412020-05-08 Tom Tromey <tom@tromey.com>
10542
10543 * symtab.c (set_symbol_cache_size)
10544 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
10545 (maintenance_print_symbol_cache_statistics): Update.
10546 * symmisc.c (print_symbol_bcache_statistics)
10547 (print_objfile_statistics, maintenance_print_objfiles)
10548 (maintenance_info_symtabs, maintenance_check_symtabs)
10549 (maintenance_expand_symtabs, maintenance_info_line_tables):
10550 Update.
10551 * symfile-debug.c (set_debug_symfile): Update.
10552 * source.c (forget_cached_source_info): Update.
10553 * python/python.c (gdbpy_progspaces): Update.
10554 * psymtab.c (maintenance_info_psymtabs): Update.
10555 * probe.c (parse_probes): Update.
10556 * linespec.c (iterate_over_all_matching_symtabs)
10557 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
10558 * guile/scm-progspace.c (gdbscm_progspaces): Update.
10559 * exec.c (exec_target::close): Update.
10560 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
10561 * breakpoint.c (print_one_breakpoint_location)
10562 (create_longjmp_master_breakpoint)
10563 (create_std_terminate_master_breakpoint): Update.
10564 * progspace.c (program_spaces): Now a std::vector.
10565 (maybe_new_address_space): Update.
10566 (add_program_space): Remove.
10567 (program_space::program_space): Update.
10568 (remove_program_space): Update.
10569 (number_of_program_spaces): Remove.
10570 (print_program_space, update_address_spaces): Update.
10571 * progspace.h (program_spaces): Change type.
10572 (ALL_PSPACES): Remove.
10573 (number_of_program_spaces): Don't declare.
10574 (struct program_space) <next>: Remove.
10575
a1fd1ac9
TT
105762020-05-08 Tom Tromey <tom@tromey.com>
10577
10578 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
10579 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
10580 (enable_break): Update.
10581 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
10582 (frv_fdpic_find_canonical_descriptor): Update.
10583 (frv_fetch_objfile_link_map): Update.
10584 * progspace.c (program_space::free_all_objfiles): Update.
10585 (program_space::solibs): New method.
10586 * progspace.h (struct program_space) <solibs>: New method.
10587 * solist.h (master_so_list): Don't declare.
10588 (ALL_SO_LIBS): Remove.
10589 * solib.h (so_list_head): Remove.
10590 (update_solib_list): Update comment.
10591 * solib.c (master_so_list): Remove.
10592 (solib_used, update_solib_list, solib_add)
10593 (info_sharedlibrary_command, clear_solib)
10594 (reload_shared_libraries_1, remove_user_added_objfile): Update.
10595
38eae084
TT
105962020-05-08 Tom Tromey <tom@tromey.com>
10597
10598 * extension.c (extension_languages): Now a std::array.
10599 (ALL_EXTENSION_LANGUAGES): Remove.
10600 (get_ext_lang_defn, get_ext_lang_of_file)
10601 (eval_ext_lang_from_control_command): Update.
10602 (finish_ext_lang_initialization)
10603 (auto_load_ext_lang_scripts_for_objfile)
10604 (ext_lang_type_printers::ext_lang_type_printers)
10605 (apply_ext_lang_type_printers)
10606 (ext_lang_type_printers::~ext_lang_type_printers)
10607 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
10608 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
10609 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
10610 (get_matching_xmethod_workers, ext_lang_colorize)
10611 (ext_lang_before_prompt): Update.
10612 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
10613
596dc4ad
TT
106142020-05-08 Tom Tromey <tom@tromey.com>
10615
10616 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
10617 overload.
10618 <swap_string, m_string>: Remove.
10619 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
10620 Update.
10621 * stabsread.c (define_symbol, read_type): Update.
10622 * linespec.c (find_linespec_symbols): Update.
10623 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
10624 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
10625 * dbxread.c (read_dbx_symtab): Update.
10626 * cp-support.h (cp_canonicalize_string_full)
10627 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
10628 Return unique_xmalloc_ptr.
10629 * cp-support.c (inspect_type): Update.
10630 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
10631 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
10632 Likewise.
10633 * c-typeprint.c (print_name_maybe_canonical): Update.
10634 * break-catch-throw.c (check_status_exception_catchpoint):
10635 Update.
10636
bf4cb9be
TV
106372020-05-08 Tom de Vries <tdevries@suse.de>
10638
10639 * infrun.c (follow_fork): Copy current_line and current_symtab to
10640 child thread.
10641
a1b68f28
SM
106422020-05-07 Simon Marchi <simon.marchi@efficios.com>
10643
10644 * async-event.c (struct async_signal_handler, struct
10645 async_event_handler): Reformat, remove typedef.
10646
98d48915
SM
106472020-05-07 Simon Marchi <simon.marchi@efficios.com>
10648
10649 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
10650 access thistype->main_type->dyn_prop_list directly.
10651
7aa91313
SM
106522020-05-07 Simon Marchi <simon.marchi@efficios.com>
10653
10654 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
10655 (remove_dyn_prop): Remove. Update all users to use
10656 type::remove_dyn_prop.
10657 * gdbtypes.c (remove_dyn_prop): Rename to...
10658 (type::remove_dyn_prop): ... this.
10659
5c54719c
SM
106602020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
10661
10662 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
10663 (add_dyn_prop): Remove. Update all users to use
10664 type::add_dyn_prop.
10665 * gdbtypes.c (add_dyn_prop): Rename to...
10666 (type::add_dyn_prop): ... this.
10667
24e99c6c
SM
106682020-05-07 Simon Marchi <simon.marchi@efficios.com>
10669
10670 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
10671 (get_dyn_prop): Remove. Update all users to use
10672 type::dyn_prop.
10673 * gdbtypes.c (get_dyn_prop): Rename to...
10674 (type::dyn_prop): ... this.
10675
0d4bf016
SM
106762020-05-06 Simon Marchi <simon.marchi@efficios.com>
10677
10678 * gdbtypes.h (struct main_type) <flag_static>: Remove.
10679
ac4a4f1c
SM
106802020-05-06 Simon Marchi <simon.marchi@efficios.com>
10681
10682 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
10683 instruction, skip it if it's there.
10684
a3bbacc1
SM
106852020-05-05 Simon Marchi <simon.marchi@efficios.com>
10686
10687 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
10688
c3236f84
SM
106892020-05-04 Simon Marchi <simon.marchi@efficios.com>
10690
10691 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
10692 * gdbtypes.c (recursive_dump_type): Remove use of
10693 TYPE_INCOMPLETE.
10694
3b6acaee
TT
106952020-05-03 Tom Tromey <tom@tromey.com>
10696
10697 * breakpoint.c (catch_command, tcatch_command): Remove.
10698 (_initialize_breakpoint): Use add_basic_prefix_cmd,
10699 add_show_prefix_cmd.
10700 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
10701 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
10702 Remove.
10703 (add_internal_problem_command): Use add_basic_prefix_cmd,
10704 add_show_prefix_cmd.
10705 * mips-tdep.c (set_mipsfpu_command): Remove.
10706 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
10707 * dwarf2/index-cache.c (set_index_cache_command): Remove.
10708 (_initialize_index_cache): Use add_basic_prefix_cmd.
10709 * memattr.c (dummy_cmd): Remove.
10710 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
10711 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
10712 (_initialize_tui_win): Use add_basic_prefix_cmd,
10713 add_show_prefix_cmd.
10714 * cli/cli-logging.c (set_logging_command): Remove.
10715 (_initialize_cli_logging): Use add_basic_prefix_cmd,
10716 add_show_prefix_cmd.
10717 (show_logging_command): Remove.
10718 * target.c (target_command): Remove.
10719 (add_target): Use add_basic_prefix_cmd.
10720
a51119cd
HD
107212020-05-02 Hannes Domani <ssbssa@yahoo.de>
10722
10723 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
10724
652fc23a 107252020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 10726
652fc23a
PW
10727 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
10728 info_command.
10729
117539e6
KR
107302020-04-30 Kamil Rytarowski <n54@gmx.com>
10731
10732 * nbsd-nat.c (nbsd_enable_proc_events)
10733 (nbsd_nat_target::post_startup_inferior): Add.
10734 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
10735 (nbsd_nat_target::update_thread_list): Rewrite.
10736 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
10737 "PTRACE_LWP_CREATE".
10738 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
10739
102e38eb 107402020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 10741
102e38eb
PW
10742 * stack.c (_initialize_stack): Remove duplicated creation
10743 of "frame" command and "f" alias.
10744
ee9d1e5f
HD
107452020-04-30 Hannes Domani <ssbssa@yahoo.de>
10746
10747 PR gdb/18706
10748 * gdbtypes.c (check_typedef): Calculate size of array of
10749 stubbed type.
10750
627c7fb8
HD
107512020-04-30 Hannes Domani <ssbssa@yahoo.de>
10752
10753 PR gdb/15559
10754 * i386-tdep.c (i386_push_dummy_call): Call
10755 i386_thiscall_push_dummy_call.
10756 (i386_thiscall_push_dummy_call): New function.
10757 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
10758 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
10759 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
10760
ffc2844e
SM
107612020-04-29 Simon Marchi <simon.marchi@efficios.com>
10762
10763 * gdbarch.sh (do_read): Add shellcheck disable directive for
10764 warning SC2162.
10765
1207375d
SM
107662020-04-29 Simon Marchi <simon.marchi@efficios.com>
10767
10768 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
10769 "referenced but not assigned" warning.
10770
9fdb2916
SM
107712020-04-29 Simon Marchi <simon.marchi@efficios.com>
10772
10773 * gdbarch.sh: Remove code that sets fallbackdefault.
10774
759cea5e
SM
107752020-04-29 Simon Marchi <simon.marchi@efficios.com>
10776
10777 * gdbarch.sh: Use shell operators && and || instead of
10778 -a and -o.
10779
cb02ab24
SM
107802020-04-29 Simon Marchi <simon.marchi@efficios.com>
10781
10782 * gdbarch.sh: Use $(...) instead of `...`.
10783
a6fc5ffc
SM
107842020-04-29 Simon Marchi <simon.marchi@efficios.com>
10785
10786 * gdbarch.sh: Use double quotes around variables.
10787
8d113d13
SM
107882020-04-29 Simon Marchi <simon.marchi@efficios.com>
10789
10790 * gdbarch.sh: Use %s with printf, instead of variables in the
10791 format string.
10792
ed6acedd
TT
107932020-04-29 Tom Tromey <tromey@adacore.com>
10794
10795 PR ada/25875:
10796 * dwarf2/read.c (update_enumeration_type_from_children): Compute
10797 type fields here.
10798 (read_enumeration_type): Call
10799 update_enumeration_type_from_children later. Update comments.
10800 (process_enumeration_scope): Don't create type fields.
10801
b68b1b58
KR
108022020-04-29 Kamil Rytarowski <n54@gmx.com>
10803
10804 * nbsd-tdep.c: Include "xml-syscall.h".
10805 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
10806
f94b2e03
KR
108072020-04-29 Kamil Rytarowski <n54@gmx.com>
10808
10809 * nbsd-nat.c: Include "sys/wait.h".
10810 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
10811 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
10812 (nbsd_nat_target::remove_exec_catchpoint)
10813 (nbsd_nat_target::set_syscall_catchpoint): Add.
10814 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
10815 (nbsd_nat_target::insert_exec_catchpoint)
10816 (nbsd_nat_target::remove_exec_catchpoint)
10817 (nbsd_nat_target::set_syscall_catchpoint): Add.
10818 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
10819 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
10820 `nbsd_get_syscall_number'.
10821
fc49bc72
TT
108222020-04-29 Tom Tromey <tom@tromey.com>
10823
10824 * stack.c (print_block_frame_labels): Remove.
10825
d642b692
HD
108262020-04-29 Hannes Domani <ssbssa@yahoo.de>
10827
10828 PR gdb/17320
10829 * ada-valprint.c (val_print_packed_array_elements): Move array
10830 end bracket to new line.
10831 (ada_val_print_string): Remove extra spaces before first array
10832 element.
10833 * c-valprint.c (c_value_print_array): Likewise.
10834 * m2-valprint.c (m2_print_array_contents): Likewise.
10835 (m2_value_print_inner): Likewise.
10836 * p-valprint.c (pascal_value_print_inner): Likewise.
10837 * valprint.c (generic_val_print_array): Likewise.
10838 (value_print_array_elements): Move first array element and array
10839 end bracket to new line.
10840
ea90f227
TV
108412020-04-29 Tom de Vries <tdevries@suse.de>
10842
10843 PR symtab/25889
10844 * linespec.c (find_method): Fix ix calculation.
10845
4498ef4f
KR
108462020-04-28 Kamil Rytarowski <n54@gmx.com>
10847
10848 * syscalls/update-netbsd.sh: New file.
10849 * syscalls/netbsd.xml: Regenerate.
10850 * data-directory/Makefile.in: Register `netbsd.xml' in
10851 `SYSCALLS_FILES'.
10852
a55e30b5
SM
108532020-04-28 Simon Marchi <simon.marchi@efficios.com>
10854
10855 * syscalls/update-freebsd.sh: Add double quotes.
10856
2b2fbab8
TT
108572020-04-28 Tom Tromey <tom@tromey.com>
10858
10859 * NEWS: Update.
10860 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
10861 (cmdpy_init): Allow class_tui.
10862
a65189c9
TV
108632020-04-28 Mark Williams <mark@myosotissp.com>
10864
10865 PR gdb/24480
10866 * dwarf2read.c: Add missing assingments to list_in_scope when
10867 start_symtab was already called.
10868
1b95cdb7
SM
108692020-04-28 Simon Marchi <simon.marchi@efficios.com>
10870
10871 PR gdb/25881
10872 * dwarf2/read.c (offset_map_type): Use
10873 gdb:hash_enum<sect_offset> as hash function.
10874
15cd93d0
TV
108752020-04-28 Tom de Vries <tdevries@suse.de>
10876
10877 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
10878 with DW_AT_signature.
10879
1eb39914
SM
108802020-04-27 Simon Marchi <simon.marchi@efficios.com>
10881
10882 * configure.ac: Remove check for fs_base/gs_base in
10883 user_regs_struct.
10884 * configure: Re-generate.
10885 * config.in: Re-generate.
10886 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
10887 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
10888 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
10889
991a3e2e
LM
108902020-04-27 Luis Machado <luis.machado@linaro.org>
10891
10892 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
10893 problematic inline frame unwinding situation.
10894 * frame.c (frame_id_computed_p): New function.
10895 * frame.h (frame_id_computed_p): New prototype.
10896
361ba0e8
TT
108972020-04-26 Tom Tromey <tom@tromey.com>
10898
10899 * command.h (enum command_class) <class_pseudo>: Remove.
10900
bc3609fd
PW
109012020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10902
10903 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
10904 and whitespace.
10905
b9771db7
KR
109062020-04-25 Kamil Rytarowski <n54@gmx.com>
10907
ec16513e
SM
10908 * inf-ptrace.c (inf_ptrace_target::wait): Remove
10909 `PT_GET_PROCESS_STATE' block.
b9771db7 10910
7151c1af
TT
109112020-04-24 Tom Tromey <tom@tromey.com>
10912
10913 * symtab.h (symbol_get_demangled_name): Don't declare.
10914 * symtab.c (symbol_get_demangled_name): Remove.
10915 (general_symbol_info::natural_name)
10916 (general_symbol_info::demangled_name): Update.
10917
906bb4c5
TT
109182020-04-24 Tom Tromey <tom@tromey.com>
10919
10920 PR rust/25025:
10921 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
10922
bcfe6157
TT
109232020-04-24 Tom Tromey <tom@tromey.com>
10924
10925 PR symtab/12707:
10926 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
10927 exists.
10928 (new_symbol): Likewise.
10929 * compile/compile-object-load.c (get_out_value_type): Use
10930 symbol_matches_search_name.
10931
f049a313
TT
109322020-04-24 Tom Tromey <tom@tromey.com>
10933
10934 * dwarf2/read.c (add_partial_symbol): Do not call
10935 compute_and_set_names.
10936
76e288d1
TT
109372020-04-24 Tom Tromey <tom@tromey.com>
10938
10939 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
10940 overload.
10941
2467f4f6
TT
109422020-04-24 Tom Tromey <tom@tromey.com>
10943
10944 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
10945 (add_psymbol_to_list): New overload. Make old overload call new
10946 one.
10947 * psympriv.h (add_psymbol_to_list): New overload.
10948
e61108c9
TT
109492020-04-24 Tom Tromey <tom@tromey.com>
10950
10951 * dwarf2/read.c (partial_die_info::read) <case
10952 DW_AT_linkage_name>: Use value_as_string.
10953 (dwarf2_string_attr): Use value_as_string.
10954 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
10955 method.
10956 * dwarf2/attribute.c (attribute::value_as_string): New method.
10957
8c87a452
TT
109582020-04-24 Tom Tromey <tom@tromey.com>
10959
10960 * symtab.c (general_symbol_info::natural_name)
10961 (general_symbol_info::demangled_name): Check for language_rust.
10962
787de330
TT
109632020-04-24 Tom Tromey <tom@tromey.com>
10964
10965 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
10966 (dwarf2_physname): ... from here.
10967 (partial_die_info::read): Add Rust "{" hack.
10968
ff985671
TT
109692020-04-24 Tom Tromey <tom@tromey.com>
10970
10971 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
10972 method.
10973 (symbol_set_demangled_name): Don't declare.
10974 * symtab.c (general_symbol_info::set_demangled_name): Rename from
10975 symbol_set_demangled_name.
10976 (general_symbol_info::set_language)
10977 (general_symbol_info::compute_and_set_names): Update.
10978 * minsyms.c (minimal_symbol_reader::install): Update.
10979 * dwarf2/read.c (new_symbol): Update.
10980
1acda803
TT
109812020-04-24 Tom Tromey <tromey@adacore.com>
10982
10983 PR python/23662:
10984 * python/py-type.c (convert_field): Handle
10985 FIELD_LOC_KIND_DWARF_BLOCK.
10986 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
10987 (typy_get_dynamic): Nw function.
10988 (type_object_getset): Add "dynamic".
10989 * NEWS: Add entry.
10990
d656f129
TT
109912020-04-24 Tom Tromey <tromey@adacore.com>
10992
10993 * ada-typeprint.c (print_choices, print_variant_part)
10994 (print_record_field_types_dynamic): New functions.
10995 (print_record_field_types): Use print_record_field_types_dynamic.
10996
7d79de9a
TT
109972020-04-24 Tom Tromey <tromey@adacore.com>
10998
10999 * dwarf2/read.c (handle_data_member_location): New overload.
11000 (dwarf2_add_field): Use it.
11001 (decode_locdesc): Add "computed" parameter. Update comment.
11002 * gdbtypes.c (is_dynamic_type_internal): Also look for
11003 FIELD_LOC_KIND_DWARF_BLOCK.
11004 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
11005 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
11006 virtual base classes.
11007 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
11008 FIELD_LOC_KIND_DWARF_BLOCK.
11009
f8e89861
TT
110102020-04-24 Tom Tromey <tromey@adacore.com>
11011
11012 * dwarf2/read.c (read_structure_type): Handle dynamic length.
11013 * gdbtypes.c (is_dynamic_type_internal): Check
11014 TYPE_HAS_DYNAMIC_LENGTH.
11015 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
11016 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
11017 New macros.
11018 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
11019 constant.
11020
9c6a1327
TT
110212020-04-24 Tom Tromey <tromey@adacore.com>
11022
11023 * dwarf2/read.c (struct variant_field): Rewrite.
11024 (struct variant_part_builder): New.
11025 (struct nextfield): Remove "variant" field. Add "offset".
11026 (struct field_info): Add "current_variant_part" and
11027 "variant_parts".
11028 (alloc_discriminant_info): Remove.
11029 (alloc_rust_variant): New function.
11030 (quirk_rust_enum): Update.
11031 (dwarf2_add_field): Set "offset" member. Don't handle
11032 DW_TAG_variant_part.
11033 (offset_map_type): New typedef.
11034 (convert_variant_range, create_one_variant)
11035 (create_one_variant_part, create_variant_parts)
11036 (add_variant_property): New functions.
11037 (dwarf2_attach_fields_to_type): Call add_variant_property.
11038 (read_structure_type): Don't handle DW_TAG_variant_part.
11039 (handle_variant_part, handle_variant): New functions.
11040 (handle_struct_member_die): Use them.
11041 (process_structure_scope): Don't handle variant parts.
11042 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
11043 (struct discriminant_info): Remove.
11044 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
11045 (struct main_type) <flag_discriminated_union>: Remove.
11046 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
11047 (rust_enum_variant): Return int. Remove "contents". Rewrite.
11048 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
11049 Update.
11050 * valops.c (value_union_variant): Remove.
11051 * value.h (value_union_variant): Don't declare.
11052
b249d2c2
TT
110532020-04-24 Tom Tromey <tromey@adacore.com>
11054
11055 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
11056 (ada_value_primitive_packed_val): Update.
11057 * ada-valprint.c (ada_value_print_1): Update.
11058 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
11059 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
11060 just an address. Use evaluate_for_locexpr_baton.
11061 (dwarf2_evaluate_property): Update.
11062 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
11063 array_view.
11064 * findvar.c (default_read_var_value): Update.
11065 * gdbtypes.c (compute_variant_fields_inner)
11066 (resolve_dynamic_type_internal): Update.
11067 (resolve_dynamic_type): Change type of valaddr parameter.
11068 * gdbtypes.h (resolve_dynamic_type): Update.
11069 * valarith.c (value_subscripted_rvalue): Update.
11070 * value.c (value_from_contents_and_address): Update.
11071
61122aa9
TT
110722020-04-24 Tom Tromey <tromey@adacore.com>
11073
11074 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
11075 "push_initial_value" parameter.
11076 (dwarf2_evaluate_property): Likewise.
11077 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
11078
ef83a141
TT
110792020-04-24 Tom Tromey <tromey@adacore.com>
11080
11081 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
11082 (variant::matches, compute_variant_fields_recurse)
11083 (compute_variant_fields_inner, compute_variant_fields): New
11084 functions.
11085 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
11086 Use resolved_type after type is made.
11087 (operator==): Add new cases.
11088 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
11089 (struct discriminant_range, struct variant, struct variant_part):
11090 New.
11091 (union dynamic_prop_data) <variant_parts, original_type>: New
11092 members.
11093 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
11094 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
11095 constants.
11096 * value.c (unpack_bits_as_long): Now public.
11097 * value.h (unpack_bits_as_long): Declare.
11098
675127ec
TT
110992020-04-24 Tom Tromey <tromey@adacore.com>
11100
11101 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
11102 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
11103
9852ceef
HD
111042020-04-24 Hannes Domani <ssbssa@yahoo.de>
11105
11106 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
11107
7632c6ce
KR
111082020-04-24 Kamil Rytarowski <n54@gmx.com>
11109
11110 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
11111 (remove_fork_catchpoint, post_startup_inferior)
11112 (post_attach): Move...
11113 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
11114 (remove_fork_catchpoint, post_startup_inferior)
11115 (post_attach): ...here.
11116 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
11117 (remove_fork_catchpoint, post_startup_inferior)
11118 (post_attach): Move...
11119 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
11120 (remove_fork_catchpoint, post_startup_inferior)
11121 (post_attach): ...here.
11122
7be2bb4f
TT
111232020-04-24 Tom Tromey <tromey@adacore.com>
11124
11125 * nat/windows-nat.h (struct windows_thread_info)
11126 <pc_adjusted>: New member.
11127 * windows-nat.c (windows_fetch_one_register): Check
11128 pc_adjusted.
11129 (windows_nat_target::get_windows_debug_event)
11130 (windows_nat_target::wait): Set pc_adjusted.
11131
f80cb3b4
TV
111322020-04-24 Tom de Vries <tdevries@suse.de>
11133
11134 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
11135 Run gdb-add-index inside temp dir.
11136
29514b87
TT
111372020-04-23 Tom Tromey <tromey@adacore.com>
11138
11139 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
11140 in loop.
11141
5939967b
LM
111422020-04-23 Luis Machado <luis.machado@linaro.org>
11143
11144 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
11145 get_frame_register instead of gdbarch_unwind_pc.
11146
70bc38f5
TV
111472020-04-23 Tom de Vries <tdevries@suse.de>
11148
11149 * symtab.c (lookup_global_symbol): Prefer def over decl.
11150
de82891c
TV
111512020-04-23 Tom de Vries <tdevries@suse.de>
11152
11153 PR symtab/25807
11154 * block.c (best_symbol, better_symbol): Promote to external.
11155 * block.h (best_symbol, better_symbol): Declare.
11156 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
11157 decl.
11158
ecc6c606
TT
111592020-04-23 Tom Tromey <tromey@adacore.com>
11160
11161 PR ada/25837:
11162 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
11163 "const char *", not a "const std::string &".
11164 <name_and_matcher::operator==>: Update.
11165 * unittests/lookup_name_info-selftests.c: Change type of
11166 "result".
11167
740480b8
TT
111682020-04-23 Tom Tromey <tom@tromey.com>
11169
11170 * inferior.h (iterate_over_inferiors): Don't declare.
11171 * inferior.c (iterate_over_inferiors): Remove.
11172 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
11173 Remove.
11174 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
11175 use iterate_over_inferiors.
11176 (darwin_resume_inferior_it)
11177 (struct resume_inferior_threads_param)
11178 (darwin_resume_inferior_threads_it): Remove.
11179 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
11180
ae3ab1f0
TV
111812020-04-23 Tom de Vries <tdevries@suse.de>
11182
11183 * blockframe.c (find_pc_partial_function): Use
11184 find_pc_sect_compunit_symtab rather than
11185 objfile->sf->qf->find_pc_sect_compunit_symtab.
11186
317d2668
TV
111872020-04-22 Tom de Vries <tdevries@suse.de>
11188
11189 PR symtab/25764
11190 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
11191 in psymtabs.
11192
eea9e357
TV
111932020-04-22 Tom de Vries <tdevries@suse.de>
11194
11195 PR symtab/25801
11196 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
11197 symtabs.
11198
3d5afab3
TV
111992020-04-22 Tom de Vries <tdevries@suse.de>
11200
11201 PR symtab/25700
11202 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
11203 CU if already created.
11204
d43b7a2d
TBA
112052020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11206
11207 * infrun.c (displaced_step_fixup): Switch to the event_thread
11208 before calling displaced_step_restore, not after.
11209
d89edf9b
MM
112102020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11211
11212 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
11213 its inferior is not recorded by us.
11214 (record_btrace_target_open): Replace call to
11215 all_non_exited_threads () with call to current_inferior
11216 ()->non_exited_threads ().
11217 (record_btrace_target::stop_recording): Likewise.
11218 (record_btrace_target::close): Likewise.
11219 (record_btrace_target::wait): Likewise.
11220 (record_btrace_target::record_stop_replaying): Likewise.
11221
5897fd49
MM
112222020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11223
11224 * btrace.c (btrace_enable): Throw an error on double enables and
11225 when enabling recording fails.
11226 (btrace_disable): Throw an error if the thread is not recorded.
11227
1a476b6d
MM
112282020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11229
11230 * record-btrace.c (record_btrace_target::fetch_registers): Forward
11231 request if we do not have a thread_info.
11232
4778a5f8
TV
112332020-04-21 Tom de Vries <tdevries@suse.de>
11234
11235 PR gdb/25471
11236 * thread.c
11237 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
11238 exception in get_frame_id.
11239
0fa7617d
TT
112402020-04-20 Tom Tromey <tromey@adacore.com>
11241
11242 * python/python.c (struct gdbpy_event): Mark move constructor as
11243 noexcept.
11244 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
11245 constructor as noexcept.
11246 * completer.h (struct completion_result): Mark move constructor as
11247 noexcept.
11248 * completer.c (completion_result::completion_result): Use
11249 initialization style. Don't call reset_match_list.
11250
ad23bda0
MS
112512020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
11252
11253 * MAINTAINERS (Write After Approval): Add myself.
11254
45e1f031
TT
112552020-04-18 Tom Tromey <tom@tromey.com>
11256
11257 * windows-tdep.c (init_w32_command_list)
11258 (w32_prefix_command_valid): Restore.
11259 (_initialize_windows_tdep): Call init_w32_command_list.
11260
08feed99
TT
112612020-04-18 Tom Tromey <tom@tromey.com>
11262
11263 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
11264 * value.c (value_fn_field): Update.
11265 * valops.c (find_function_in_inferior)
11266 (value_allocate_space_in_inferior): Update.
11267 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11268 Update.
11269 * tui/tui-source.c (tui_source_window::set_contents): Update.
11270 * symtab.c (lookup_global_or_static_symbol)
11271 (find_function_start_sal_1, skip_prologue_sal)
11272 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
11273 * symmisc.c (dump_msymbols, dump_symtab_1)
11274 (maintenance_print_one_line_table): Update.
11275 * symfile.c (init_entry_point_info, section_is_mapped)
11276 (list_overlays_command, simple_read_overlay_table)
11277 (simple_overlay_update_1): Update.
11278 * stap-probe.c (handle_stap_probe): Update.
11279 * stabsread.c (dbx_init_float_type, define_symbol)
11280 (read_one_struct_field, read_enum_type, read_range_type): Update.
11281 * source.c (info_line_command): Update.
11282 * python/python.c (gdbpy_source_objfile_script)
11283 (gdbpy_execute_objfile_script): Update.
11284 * python/py-type.c (save_objfile_types): Update.
11285 * python/py-objfile.c (py_free_objfile): Update.
11286 * python/py-inferior.c (python_new_objfile): Update.
11287 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
11288 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
11289 (maintenance_check_psymtabs): Update.
11290 * printcmd.c (info_address_command): Update.
11291 * objfiles.h (struct objfile) <arch>: New method, from
11292 get_objfile_arch.
11293 (get_objfile_arch): Don't declare.
11294 * objfiles.c (get_objfile_arch): Remove.
11295 (filter_overlapping_sections): Update.
11296 * minsyms.c (msymbol_is_function): Update.
11297 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
11298 (output_nondebug_symbol): Update.
11299 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
11300 (mdebug_expand_psymtab): Update.
11301 * machoread.c (macho_add_oso_symfile): Update.
11302 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
11303 Update.
11304 * linux-fork.c (checkpoint_command): Update.
11305 * linespec.c (convert_linespec_to_sals): Update.
11306 * jit.c (finalize_symtab): Update.
11307 * infrun.c (insert_exception_resume_from_probe): Update.
11308 * ia64-tdep.c (ia64_find_unwind_table): Update.
11309 * hppa-tdep.c (internalize_unwinds): Update.
11310 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
11311 Update.
11312 * gcore.c (call_target_sbrk): Update.
11313 * elfread.c (record_minimal_symbol, elf_symtab_read)
11314 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
11315 (elf_gnu_ifunc_resolve_by_got): Update.
11316 * dwarf2/read.c (create_addrmap_from_index)
11317 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11318 (read_debug_names_from_section)
11319 (process_psymtab_comp_unit_reader, add_partial_symbol)
11320 (add_partial_subprogram, process_full_comp_unit)
11321 (read_file_scope, read_func_scope, read_lexical_block_scope)
11322 (read_call_site_scope, dwarf2_ranges_read)
11323 (dwarf2_record_block_ranges, dwarf2_add_field)
11324 (mark_common_block_symbol_computed, read_tag_pointer_type)
11325 (read_tag_string_type, dwarf2_init_float_type)
11326 (dwarf2_init_complex_target_type, read_base_type)
11327 (partial_die_info::read, partial_die_info::read)
11328 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
11329 (dwarf2_fetch_die_loc_sect_off): Update.
11330 * dwarf2/loc.c (dwarf2_find_location_expression)
11331 (class dwarf_evaluate_loc_desc, rw_pieced_value)
11332 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
11333 (dwarf2_loc_desc_get_symbol_read_needs)
11334 (locexpr_describe_location_piece, locexpr_describe_location_1)
11335 (loclist_describe_location): Update.
11336 * dwarf2/index-write.c (write_debug_names): Update.
11337 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
11338 * dtrace-probe.c (dtrace_process_dof): Update.
11339 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
11340 (process_one_symbol): Update.
11341 * ctfread.c (ctf_init_float_type, read_base_type): Update.
11342 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
11343 (coff_read_enum_type): Update.
11344 * cli/cli-cmds.c (edit_command, list_command): Update.
11345 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
11346 * breakpoint.c (create_overlay_event_breakpoint)
11347 (create_longjmp_master_breakpoint)
11348 (create_std_terminate_master_breakpoint)
11349 (create_exception_master_breakpoint, get_sal_arch): Update.
11350 * block.c (block_gdbarch): Update.
11351 * annotate.c (annotate_source_line): Update.
11352
0743fc83
TT
113532020-04-17 Tom Tromey <tromey@adacore.com>
11354
11355 * auto-load.c (show_auto_load_cmd): Remove.
11356 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
11357 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
11358 (maintenance_print_arc_command): Remove.
11359 * tui/tui-win.c (tui_command): Remove.
11360 (tui_get_cmd_list): Use add_basic_prefix_cmd.
11361 * tui/tui-layout.c (tui_layout_command): Remove.
11362 (_initialize_tui_layout): Use add_basic_prefix_cmd.
11363 * python/python.c (user_set_python, user_show_python): Remove.
11364 (_initialize_python): Use add_basic_prefix_cmd,
11365 add_show_prefix_cmd.
11366 * guile/guile.c (set_guile_command, show_guile_command): Remove.
11367 (install_gdb_commands): Use add_basic_prefix_cmd,
11368 add_show_prefix_cmd.
11369 (info_guile_command): Remove.
11370 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
11371 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
11372 add_show_prefix_cmd.
11373 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
11374 Remove do_set and do_show parameters.
11375 * cli/cli-style.c (set_style, show_style): Remove.
11376 (_initialize_cli_style): Use add_basic_prefix_cmd,
11377 add_show_prefix_cmd.
11378 (cli_style_option::add_setshow_commands): Remove do_set and
11379 do_show parameters.
11380 (cli_style_option::add_setshow_commands): Use
11381 add_basic_prefix_cmd, add_show_prefix_cmd.
11382 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
11383 (set_style_name): Remove.
11384 * cli/cli-dump.c (dump_command, append_command): Remove.
11385 (srec_dump_command, ihex_dump_command, verilog_dump_command)
11386 (tekhex_dump_command, binary_dump_command)
11387 (binary_append_command): Remove.
11388 (_initialize_cli_dump): Use add_basic_prefix_cmd.
11389 * windows-tdep.c (w32_prefix_command_valid): Remove global.
11390 (init_w32_command_list): Remove; move into ...
11391 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
11392 * valprint.c (set_print, show_print, set_print_raw)
11393 (show_print_raw): Remove.
11394 (_initialize_valprint): Use add_basic_prefix_cmd,
11395 add_show_prefix_cmd.
11396 * typeprint.c (set_print_type, show_print_type): Remove.
11397 (_initialize_typeprint): Use add_basic_prefix_cmd,
11398 add_show_prefix_cmd.
11399 * record.c (set_record_command, show_record_command): Remove.
11400 (_initialize_record): Use add_basic_prefix_cmd,
11401 add_show_prefix_cmd.
11402 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
11403 add_show_prefix_cmd.
11404 (info_command, show_command, set_debug, show_debug): Remove.
11405 * top.h (set_history, show_history): Don't declare.
11406 * top.c (set_history, show_history): Remove.
11407 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
11408 (unset_tdesc_cmd): Remove.
11409 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
11410 add_show_prefix_cmd.
11411 * symtab.c (info_module_command): Remove.
11412 (_initialize_symtab): Use add_basic_prefix_cmd.
11413 * symfile.c (overlay_command): Remove.
11414 (_initialize_symfile): Use add_basic_prefix_cmd.
11415 * sparc64-tdep.c (info_adi_command): Remove.
11416 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
11417 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
11418 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
11419 add_show_prefix_cmd.
11420 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
11421 (_initialize_serial): Use add_basic_prefix_cmd,
11422 add_show_prefix_cmd.
11423 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
11424 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
11425 add_show_prefix_cmd.
11426 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
11427 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
11428 add_show_prefix_cmd.
11429 * riscv-tdep.c (show_riscv_command, set_riscv_command)
11430 (show_debug_riscv_command, set_debug_riscv_command): Remove.
11431 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
11432 add_show_prefix_cmd.
11433 * remote.c (remote_command, set_remote_cmd): Remove.
11434 (_initialize_remote): Use add_basic_prefix_cmd.
11435 * record-full.c (set_record_full_command)
11436 (show_record_full_command): Remove.
11437 (_initialize_record_full): Use add_basic_prefix_cmd,
11438 add_show_prefix_cmd.
11439 * record-btrace.c (cmd_set_record_btrace)
11440 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
11441 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
11442 (cmd_show_record_btrace_pt): Remove.
11443 (_initialize_record_btrace): Use add_basic_prefix_cmd,
11444 add_show_prefix_cmd.
11445 * ravenscar-thread.c (set_ravenscar_command)
11446 (show_ravenscar_command): Remove.
11447 (_initialize_ravenscar): Use add_basic_prefix_cmd,
11448 add_show_prefix_cmd.
11449 * mips-tdep.c (show_mips_command, set_mips_command)
11450 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
11451 add_show_prefix_cmd.
11452 * maint.c (maintenance_command, maintenance_info_command)
11453 (maintenance_check_command, maintenance_print_command)
11454 (maintenance_set_cmd, maintenance_show_cmd): Remove.
11455 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
11456 add_show_prefix_cmd.
11457 (show_per_command_cmd): Remove.
11458 * maint-test-settings.c (maintenance_set_test_settings_cmd):
11459 Remove.
11460 (maintenance_show_test_settings_cmd): Remove.
11461 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
11462 add_show_prefix_cmd.
11463 * maint-test-options.c (maintenance_test_options_command):
11464 Remove.
11465 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
11466 * macrocmd.c (macro_command): Remove
11467 (_initialize_macrocmd): Use add_basic_prefix_cmd.
11468 * language.c (set_check, show_check): Remove.
11469 (_initialize_language): Use add_basic_prefix_cmd,
11470 add_show_prefix_cmd.
11471 * infcmd.c (unset_command): Remove.
11472 (_initialize_infcmd): Use add_basic_prefix_cmd.
11473 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
11474 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
11475 add_show_prefix_cmd.
11476 * go32-nat.c (go32_info_dos_command): Remove.
11477 (_initialize_go32_nat): Use add_basic_prefix_cmd.
11478 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
11479 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
11480 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
11481 (_initialize_frame): Use add_basic_prefix_cmd,
11482 add_show_prefix_cmd.
11483 * dcache.c (set_dcache_command, show_dcache_command): Remove.
11484 (_initialize_dcache): Use add_basic_prefix_cmd,
11485 add_show_prefix_cmd.
11486 * cp-support.c (maint_cplus_command): Remove.
11487 (_initialize_cp_support): Use add_basic_prefix_cmd.
11488 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
11489 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
11490 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
11491 add_basic_prefix_cmd, add_show_prefix_cmd.
11492 * breakpoint.c (save_command): Remove.
11493 (_initialize_breakpoint): Use add_basic_prefix_cmd.
11494 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
11495 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
11496 add_show_prefix_cmd.
11497 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
11498 (set_ada_command, show_ada_command): Remove.
11499 (_initialize_ada_language): Use add_basic_prefix_cmd,
11500 add_show_prefix_cmd.
11501 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
11502
3557f442
KR
115032020-04-16 Kamil Rytarowski <n54@gmx.com>
11504
11505 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
11506 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
11507
16197208
SM
115082020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11509
11510 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
11511 warning messages.
11512
00ac85d3
SM
115132020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11514
11515 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
11516 import table is not at beginning of .idata section.
11517
381ce63f
PA
115182020-04-16 Pedro Alves <palves@redhat.com>
11519
11520 * inferior.c (delete_inferior): Use delete operator directly
11521 instead of delete_program_space.
11522 * progspace.c (add_program_space): New, factored out from
11523 program_space::program_space.
11524 (remove_program_space): New, factored out from
11525 delete_program_space.
11526 (program_space::program_space): Remove intro comment. Rewrite.
11527 (program_space::~program_space): Remove intro comment. Call
11528 remove_program_space.
11529 (delete_program_space): Delete.
11530 * progspace.h (program_space::program_space): Make explicit. Move
11531 intro comment here, adjusted.
11532 (program_space::~program_space): Move intro comment here,
11533 adjusted.
11534 (delete_program_space): Remove.
11535
a010605f
TT
115362020-04-16 Tom Tromey <tromey@adacore.com>
11537
11538 * windows-nat.c (windows_nat::handle_access_violation): New
11539 function.
11540 * nat/windows-nat.h (handle_access_violation): Declare.
11541 * nat/windows-nat.c (handle_exception): Move Cygwin code to
11542 windows-nat.c. Call handle_access_violation.
11543
efba5c23
TV
115442020-04-16 Tom de Vries <tdevries@suse.de>
11545
11546 PR symtab/25791
11547 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
11548 CUs without psymtab.
11549
97ed802d
KB
115502020-04-16 Kevin Buettner <kevinb@redhat.com>
11551
11552 * python/python.c (do_start_initialization): Don't call
11553 PyEval_InitThreads for Python 3.9 and beyond.
11554
c7d64809
KR
115552020-04-15 Kamil Rytarowski <n54@gmx.com>
11556
11557 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
11558 thread functions.
11559 (obsd_nat_target::wait): Likewise.
11560
ce127a96
TT
115612020-04-15 Tom Tromey <tromey@adacore.com>
11562
11563 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
11564 (DEBUG_EXCEPT): Use debug_printf.
11565
99f1bc6a
AB
115662020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
11567
11568 * completer.c (class completion_tracker::completion_hash_entry)
11569 <hash_name>: New member function.
11570 (completion_tracker::discard_completions): New callback to hash a
11571 completion_hash_entry, pass this to htab_create_alloc.
11572
a0e9b532
JT
115732016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
11574
11575 * windows-nat.c (windows_make_so): Warn rather than stopping with
11576 an error if realpath() fails.
11577
06ca5dd4
KR
115782020-04-14 Kamil Rytarowski <n54@gmx.com>
11579
11580 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
11581 (nbsd_nat_target::info_proc): Add do_status.
11582
194d088f
TV
115832020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
11584 Tom de Vries <tdevries@suse.de>
11585
11586 PR symtab/25718
11587 * psympriv.h (struct partial_symtab::read_symtab)
11588 (struct partial_symtab::expand_psymtab)
11589 (struct partial_symtab::read_dependencies): Update comments.
11590 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
11591 read_symtab for includer.
11592 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
11593 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
11594 (struct dwarf2_include_psymtab::m_readin): Remove.
11595 (struct dwarf2_include_psymtab::includer): New member function.
11596 (dwarf2_psymtab::expand_psymtab): Assert !readin.
11597
c1a66c06
TV
115982020-04-14 Tom de Vries <tdevries@suse.de>
11599
11600 PR symtab/25720
11601 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
11602 with NULL symbol_matcher and lookup_name.
11603 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
11604 and lookup_name.
11605 * dwarf2/read.c (dw2_expand_symtabs_matching)
11606 (dw2_debug_names_expand_symtabs_matching): Same.
11607 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
11608 Make lookup_name a pointer. Update comment.
11609 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
11610 lookup_name being a pointer.
11611 * symfile.c (expand_symtabs_matching): Same.
11612 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
11613 * linespec.c (iterate_over_all_matching_symtabs): Same.
11614
400b5eca
TT
116152020-04-13 Tom Tromey <tom@tromey.com>
11616
11617 * run-on-main-thread.c: Update include.
11618 * unittests/main-thread-selftests.c: Update include.
11619 * tui/tui-win.c: Update include.
11620 * tui/tui-io.c: Update include.
11621 * tui/tui-interp.c: Update include.
11622 * tui/tui-hooks.c: Update include.
11623 * top.h: Update include.
11624 * top.c: Update include.
11625 * ser-base.c: Update include.
11626 * remote.c: Update include.
11627 * remote-notif.c: Update include.
11628 * remote-fileio.c: Update include.
11629 * record-full.c: Update include.
11630 * record-btrace.c: Update include.
11631 * python/python.c: Update include.
11632 * posix-hdep.c: Update include.
11633 * mingw-hdep.c: Update include.
11634 * mi/mi-main.c: Update include.
11635 * mi/mi-interp.c: Update include.
11636 * main.c: Update include.
11637 * linux-nat.c: Update include.
11638 * interps.c: Update include.
11639 * infrun.c: Update include.
11640 * inf-loop.c: Update include.
11641 * event-top.c: Update include.
11642 * event-loop.c: Move to ../gdbsupport/.
11643 * event-loop.h: Move to ../gdbsupport/.
11644 * async-event.h: Update include.
11645 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
11646
93b54c8e
TT
116472020-04-13 Tom Tromey <tom@tromey.com>
11648
11649 * tui/tui-win.c: Include async-event.h.
11650 * remote.c: Include async-event.h.
11651 * remote-notif.c: Include async-event.h.
11652 * record-full.c: Include async-event.h.
11653 * record-btrace.c: Include async-event.h.
11654 * infrun.c: Include async-event.h.
11655 * event-top.c: Include async-event.h.
11656 * event-loop.h: Move some declarations to async-event.h.
11657 * event-loop.c: Don't include ser-event.h or top.h. Move some
11658 code to async-event.c.
11659 * async-event.h: New file.
11660 * async-event.c: New file.
11661 * Makefile.in (COMMON_SFILES): Add async-event.c.
11662 (HFILES_NO_SRCDIR): Add async-event.h.
11663
c1cd3163
TT
116642020-04-13 Tom Tromey <tom@tromey.com>
11665
11666 * utils.c (flush_streams): New function.
11667 * event-loop.c (gdb_wait_for_event): Call flush_streams.
11668
29f2bf4f
TT
116692020-04-13 Tom Tromey <tom@tromey.com>
11670
11671 * event-loop.c (handle_file_event): Use warning, not
11672 printf_unfiltered.
11673
98029d02
TT
116742020-04-13 Tom Tromey <tom@tromey.com>
11675
11676 * event-loop.c: Include <chrono>.
11677
06cc9596
TT
116782020-04-13 Tom Tromey <tom@tromey.com>
11679
11680 * gdb_select.h: Move to ../gdbsupport/.
11681 * event-loop.c: Update include path.
11682 * top.c: Update include path.
11683 * ser-base.c: Update include path.
11684 * ui-file.c: Update include path.
11685 * ser-tcp.c: Update include path.
11686 * guile/scm-ports.c: Update include path.
11687 * posix-hdep.c: Update include path.
11688 * ser-unix.c: Update include path.
11689 * gdb_usleep.c: Update include path.
11690 * mingw-hdep.c: Update include path.
11691 * inflow.c: Update include path.
11692 * infrun.c: Update include path.
11693 * event-top.c: Update include path.
11694
8ae8e197
TT
116952020-04-13 Tom Tromey <tom@tromey.com>
11696
11697 * configure: Rebuild.
11698 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
11699
58cf28e8
TT
117002020-04-13 Tom Tromey <tom@tromey.com>
11701
11702 * event-loop.h (start_event_loop): Don't declare.
11703 * event-loop.c (start_event_loop): Move...
11704 * main.c (start_event_loop): ...here. Now static.
11705
b7f999ae
SDJ
117062020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
11707
11708 * MAINTAINERS: Update my email address.
11709
1085dfd4
KR
117102020-04-12 Kamil Rytarowski <n54@gmx.com>
11711
11712 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
11713 IP_ALL.
11714
49d1d1f5
KR
117152020-04-12 Kamil Rytarowski <n54@gmx.com>
11716
11717 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 11718 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 11719
b4848d2a
KR
117202020-04-12 Kamil Rytarowski <n54@gmx.com>
11721
11722 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 11723 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 11724
51c133d5
KR
117252020-04-12 Kamil Rytarowski <n54@gmx.com>
11726
11727 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
11728
54b8cbd0
KR
117292020-04-11 Kamil Rytarowski <n54@gmx.com>
11730
11731 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
11732 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
11733 (nbsd_nat_target::info_proc): New functions.
11734 * nbsd-nat.c (kinfo_get_vmmap): New function.
11735 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
11736 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
11737 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
11738 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
11739 functions.
11740 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
11741 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
11742 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
11743 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
11744 (KINFO_VME_FLAG_GROWS_DOWN): New.
11745
cf83625d
AS
117462020-04-10 Artur Shepilko <nomadbyte@gmail.com>
11747
11748 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
11749 bit shift.
11750
0c4311ab
TT
117512020-04-10 Tom Tromey <tromey@adacore.com>
11752
11753 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
11754
3e65b3e9
TT
117552020-04-10 Tom Tromey <tromey@adacore.com>
11756
11757 * symtab.c (get_symbol_address, get_msymbol_address): Skip
11758 separate debug files.
11759
13302e95
HD
117602020-04-10 Hannes Domani <ssbssa@yahoo.de>
11761
11762 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11763 Move to...
11764 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11765 ... here.
11766 * windows-nat.c (windows_nat_target::get_windows_debug_event):
11767 Check for STATUS_WX86_BREAKPOINT.
11768 (windows_nat_target::wait): Same.
11769
bdfc1e8a
TV
117702020-04-10 Tom de Vries <tdevries@suse.de>
11771
11772 PR cli/25808
11773 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
11774
f4460aec
SM
117752020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11776
11777 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
11778 (Write After Approval): Remove Tom de Vries.
11779
a25198bb
BE
117802020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
11781
11782 revert partially:
11783 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11784
aac66a4c
SM
11785 * buildsym.c (record_line): Fix undefined behavior and preserve
11786 lines at eof.
a25198bb 11787
206c98a6
KR
117882020-04-09 Kamil Rytarowski <n54@gmx.com>
11789
11790 * auxv.h (svr4_auxv_parse): New.
11791 * auxv.c (default_auxv_parse): Split into default_auxv_parse
11792 and generic_auxv_parse.
11793 (svr4_auxv_parse): Add.
11794 * obsd-tdep.c: Include "auxv.h".
11795 (obsd_auxv_parse): Remove.
11796 (obsd_init_abi): Remove comment.
11797 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
11798 from `obsd_auxv_parse' to `svr4_auxv_parse'.
11799 * nbsd-tdep.c: Include "auxv.h".
11800 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
11801
71fbdbaf
TT
118022020-04-08 Tom Tromey <tromey@adacore.com>
11803
11804 * nat/windows-nat.h (last_wait_event): Don't declare.
11805 (wait_for_debug_event): Update comment.
11806 * nat/windows-nat.c (last_wait_event): Now static.
11807
2c1d95e8
TT
118082020-04-08 Tom Tromey <tromey@adacore.com>
11809
11810 * windows-nat.c (wait_for_debug_event): Move to
11811 nat/windows-nat.c.
11812 * nat/windows-nat.h (wait_for_debug_event): Declare.
11813 * nat/windows-nat.c (wait_for_debug_event): Move from
11814 windows-nat.c. No longer static.
11815
d2977bc4
TT
118162020-04-08 Tom Tromey <tromey@adacore.com>
11817
11818 * windows-nat.c (get_windows_debug_event): Use
11819 fetch_pending_stop.
11820 * nat/windows-nat.h (fetch_pending_stop): Declare.
11821 * nat/windows-nat.c (fetch_pending_stop): New function.
11822
e758e19c
TT
118232020-04-08 Tom Tromey <tromey@adacore.com>
11824
11825 * windows-nat.c (windows_continue): Use matching_pending_stop and
11826 continue_last_debug_event.
11827 * nat/windows-nat.h (matching_pending_stop)
11828 (continue_last_debug_event): Declare.
11829 * nat/windows-nat.c (DEBUG_EVENTS): New define.
11830 (matching_pending_stop, continue_last_debug_event): New
11831 functions.
11832
8d30e395
TT
118332020-04-08 Tom Tromey <tromey@adacore.com>
11834
11835 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
11836 (handle_exception_result): Move to nat/windows-nat.h.
11837 (DEBUG_EXCEPTION_SIMPLE): Remove.
11838 (windows_nat::handle_ms_vc_exception): New function.
11839 (handle_exception): Move to nat/windows-nat.c.
11840 (get_windows_debug_event): Update.
11841 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
11842 nat/windows-nat.c.
11843 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
11844 (handle_exception_result): Move from windows-nat.c.
11845 (handle_exception): Declare.
11846 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
11847 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
11848 windows-nat.c.
11849
29de418d
TT
118502020-04-08 Tom Tromey <tromey@adacore.com>
11851
11852 * windows-nat.c (exception_count, event_count): Remove.
11853 (handle_exception, get_windows_debug_event)
11854 (do_initial_windows_stuff): Update.
11855
a816ba18
TT
118562020-04-08 Tom Tromey <tromey@adacore.com>
11857
11858 * windows-nat.c (windows_nat::handle_load_dll)
11859 (windows_nat::handle_unload_dll): Rename. No longer static.
11860 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
11861 Declare.
11862
a00caa12
TT
118632020-04-08 Tom Tromey <tromey@adacore.com>
11864
11865 * complaints.h (stop_whining): Declare at top-level.
11866 (complaint): Don't declare stop_whining.
11867
d41b524f
TT
118682020-04-08 Tom Tromey <tromey@adacore.com>
11869
11870 * windows-nat.c (windows_nat::handle_output_debug_string):
11871 Rename. No longer static.
11872 * nat/windows-nat.h (handle_output_debug_string): Declare.
11873
3c76026d
TT
118742020-04-08 Tom Tromey <tromey@adacore.com>
11875
11876 * windows-nat.c (current_process_handle, current_process_id)
11877 (main_thread_id, last_sig, current_event, last_wait_event)
11878 (current_windows_thread, desired_stop_thread_id, pending_stops)
11879 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
11880 (display_selectors, fake_create_process)
11881 (get_windows_debug_event): Update.
11882 * nat/windows-nat.h (current_process_handle, current_process_id)
11883 (main_thread_id, last_sig, current_event, last_wait_event)
11884 (current_windows_thread, desired_stop_thread_id, pending_stops)
11885 (struct pending_stop, siginfo_er): Move from windows-nat.c.
11886 * nat/windows-nat.c (current_process_handle, current_process_id)
11887 (main_thread_id, last_sig, current_event, last_wait_event)
11888 (current_windows_thread, desired_stop_thread_id, pending_stops)
11889 (siginfo_er): New globals. Move from windows-nat.c.
11890
9d8679cc
TT
118912020-04-08 Tom Tromey <tromey@adacore.com>
11892
11893 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
11894 (handle_load_dll): Update.
11895 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
11896
28688adf
TT
118972020-04-08 Tom Tromey <tromey@adacore.com>
11898
11899 * windows-nat.c (enum thread_disposition_type): Move to
11900 nat/windows-nat.h.
11901 (windows_nat::thread_rec): Rename from thread_rec. No longer
11902 static.
11903 (windows_add_thread, windows_nat_target::fetch_registers)
11904 (windows_nat_target::store_registers, handle_exception)
11905 (windows_nat_target::resume, get_windows_debug_event)
11906 (windows_nat_target::get_tib_address)
11907 (windows_nat_target::thread_name)
11908 (windows_nat_target::thread_alive): Update.
11909 * nat/windows-nat.h (enum thread_disposition_type): Move from
11910 windows-nat.c.
11911 (thread_rec): Declare.
11912
4834dad0
TT
119132020-04-08 Tom Tromey <tromey@adacore.com>
11914
11915 * windows-nat.c: Add "using namespace".
11916 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
11917 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
11918
65bafd5b
TT
119192020-04-08 Tom Tromey <tromey@adacore.com>
11920
11921 * nat/windows-nat.h (struct windows_thread_info): Declare
11922 destructor.
11923 * nat/windows-nat.c (~windows_thread_info): New.
11924
0a4afda3
TT
119252020-04-08 Tom Tromey <tromey@adacore.com>
11926
11927 PR gdb/22992
11928 * windows-nat.c (current_event): Update comment.
11929 (last_wait_event, desired_stop_thread_id): New globals.
11930 (struct pending_stop): New.
11931 (pending_stops): New global.
11932 (windows_nat_target) <stopped_by_sw_breakpoint>
11933 <supports_stopped_by_sw_breakpoint>: New methods.
11934 (windows_fetch_one_register): Add assertions. Adjust PC.
11935 (windows_continue): Handle pending stops. Suspend other threads
11936 when stepping. Use last_wait_event
11937 (wait_for_debug_event): New function.
11938 (get_windows_debug_event): Use wait_for_debug_event. Handle
11939 pending stops. Queue spurious stops.
11940 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
11941 (windows_nat_target::kill): Use wait_for_debug_event.
11942 * nat/windows-nat.h (struct windows_thread_info)
11943 <stopped_at_software_breakpoint>: New field.
11944 * nat/windows-nat.c (windows_thread_info::resume): Clear
11945 stopped_at_software_breakpoint.
11946
8e61ebec
TT
119472020-04-08 Tom Tromey <tromey@adacore.com>
11948
11949 * windows-nat.c (enum thread_disposition_type): New.
11950 (thread_rec): Replace "get_context" parameter with "disposition";
11951 change type.
11952 (windows_add_thread, windows_nat_target::fetch_registers)
11953 (windows_nat_target::store_registers, handle_exception)
11954 (windows_nat_target::resume, get_windows_debug_event)
11955 (windows_nat_target::get_tib_address)
11956 (windows_nat_target::thread_name)
11957 (windows_nat_target::thread_alive): Update.
11958
98a03287
TT
119592020-04-08 Tom Tromey <tromey@adacore.com>
11960
11961 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
11962 (windows_continue): Use windows_continue::resume.
11963 * nat/windows-nat.h (struct windows_thread_info) <suspend,
11964 resume>: Declare new methods.
11965 * nat/windows-nat.c: New file.
11966 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
11967
7c7411bc
TT
119682020-04-08 Tom Tromey <tromey@adacore.com>
11969
11970 * windows-nat.c (windows_add_thread, windows_delete_thread)
11971 (windows_nat_target::fetch_registers)
11972 (windows_nat_target::store_registers, fake_create_process)
11973 (windows_nat_target::resume, windows_nat_target::resume)
11974 (get_windows_debug_event, windows_nat_target::wait)
11975 (windows_nat_target::pid_to_str)
11976 (windows_nat_target::get_tib_address)
11977 (windows_nat_target::get_ada_task_ptid)
11978 (windows_nat_target::thread_name)
11979 (windows_nat_target::thread_alive): Use lwp, not tid.
11980
2950fdf7
TT
119812020-04-08 Tom Tromey <tromey@adacore.com>
11982
11983 * windows-nat.c (handle_exception)
11984 (windows_nat_target::thread_name): Update.
11985 * nat/windows-nat.h (windows_thread_info): Remove destructor.
11986 <name>: Now unique_xmalloc_ptr.
11987
62fe396b
TT
119882020-04-08 Tom Tromey <tromey@adacore.com>
11989
11990 * windows-nat.c (thread_rec)
11991 (windows_nat_target::fetch_registers): Update.
11992 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
11993 Update comment.
11994 <debug_registers_changed, reload_context>: Now bool.
11995
e9534bd2
TT
119962020-04-08 Tom Tromey <tromey@adacore.com>
11997
11998 * windows-nat.c (windows_add_thread): Use new.
11999 (windows_init_thread_list, windows_delete_thread): Use delete.
12000 (get_windows_debug_event): Update.
12001 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
12002 destructor, and initializers.
12003
ae1f8880
TT
120042020-04-08 Tom Tromey <tromey@adacore.com>
12005
12006 * windows-nat.c (struct windows_thread_info): Remove.
12007 * nat/windows-nat.h: New file.
12008
55a1e039
TT
120092020-04-08 Tom Tromey <tromey@adacore.com>
12010
12011 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
12012 (thread_rec, windows_add_thread, windows_delete_thread)
12013 (windows_continue): Update.
12014
93366324
TT
120152020-04-08 Tom Tromey <tromey@adacore.com>
12016
12017 * windows-nat.c (struct windows_thread_info): Remove typedef.
12018 (thread_head): Remove.
12019 (thread_list): New global.
12020 (thread_rec, windows_add_thread, windows_init_thread_list)
12021 (windows_delete_thread, windows_continue): Update.
12022
0f2265e2
SM
120232020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12024
12025 * windows-tdep.h (windows_init_abi): Add comment.
12026 (cygwin_init_abi): New declaration.
12027 * windows-tdep.c: Split signal enumeration in two, one for
12028 Windows and one for Cygwin.
12029 (windows_gdb_signal_to_target): Only deal with signal of the
12030 Windows OS ABI.
12031 (cygwin_gdb_signal_to_target): New function.
12032 (windows_init_abi): Rename to windows_init_abi_common, don't set
12033 gdb_signal_to_target gdbarch method. Add new new function with
12034 this name.
12035 (cygwin_init_abi): New function.
12036 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
12037 comment. Don't call windows_init_abi.
12038 (amd64_windows_init_abi): Add comment, call windows_init_abi.
12039 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
12040 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
12041 i386_windows_init_abi_common, don't call windows_init_abi. Add
12042 a new function of this name.
12043 (i386_cygwin_init_abi): New function.
12044 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
12045 OS ABI Cygwin.
12046
3810f182
SM
120472020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12048
12049 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
12050 parameter.c.
12051 (dwarf2_read_gdb_index): Update.
12052
063f8e80
KR
120532020-04-07 Kamil Rytarowski <n54@gmx.com>
12054
12055 * nbsd-tdep.c: Include "objfiles.h".
12056 (nbsd_skip_solib_resolver): New.
12057 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
12058
85a9510c 120592020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12060
12061 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
12062 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
12063 with DW_LLE_base_addressx are being emitted in DWARFv5.
12064 Add the newly added kind DW_LOC_OFFSET_PAIR also.
12065 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
12066 unsigned integer.
12067
9fc3eaae 120682020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12069
12070 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
12071 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
12072 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
12073 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
12074 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
12075 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
12076 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
12077
12078
41144253 120792020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12080
12081 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
12082 (read_loclist_index): New function definition.
12083 (lookup_loclist_base): New function definition.
12084 (read_loclist_header): New function definition.
12085 (dwarf2_cu): Add loclist_base and loclist_header field.
12086 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
12087 (read_full_die_1): Read the value of DW_AT_loclists_base.
12088 (read_attribute_reprocess): Handle DW_FORM_loclistx.
12089 (read_attribute_value): Handle DW_FORM_loclistx.
12090 (skip_one_die): Handle DW_FORM_loclistx.
12091 (loclist_header): New structure declaration.
12092 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
12093
9f4e76a4
SM
120942020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12095
12096 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
12097 constructor. Remove `addr` parameter from other constructor and
12098 add `per_cu` parameter.
12099 * dwarf2/read.c (create_partial_symtab): Update.
12100
25c11aca
TV
121012020-04-07 Tom de Vries <tdevries@suse.de>
12102
12103 PR symtab/25796
12104 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
12105 (partial_die_info::fixup): Inherit has_const_value.
12106
5707e24b
TV
121072020-04-07 Tom de Vries <tdevries@suse.de>
12108
12109 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
12110 symbols without address.
12111
05f00e22
KR
121122020-04-06 Kamil Rytarowski <n54@gmx.com>
12113
12114 * nbsd-nat.h (struct thread_info): Add forward declaration.
12115 (nbsd_nat_target::thread_alive): Add.
12116 (nbsd_nat_target::thread_name): Likewise.
12117 (nbsd_nat_target::update_thread_list): Likewise.
12118 (update_thread_list::post_attach): Likewise.
12119 (post_attach::pid_to_str): Likewise.
12120 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
12121 (nbsd_thread_lister): Add.
12122 (nbsd_nat_target::thread_alive): Likewise.
12123 (nbsd_nat_target::thread_name): Likewise.
12124 (nbsd_add_threads): Likewise.
12125 (update_thread_list::post_attach): Likewise.
12126 (nbsd_nat_target::update_thread_list): Likewise.
12127 (post_attach::pid_to_str): Likewise.
12128
6ee448cc
TT
121292020-04-06 Tom Tromey <tromey@adacore.com>
12130
12131 * ada-valprint.c (print_variant_part): Extract the variant field.
12132 (print_field_values): Use the field as the outer value when
12133 recursing.
12134
dea34e8c
TT
121352020-04-06 Tom Tromey <tromey@adacore.com>
12136
12137 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
12138 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
12139 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
12140 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
12141 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
12142
93689ce9
TT
121432020-04-06 Tom Tromey <tromey@adacore.com>
12144
12145 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
12146 TYPE_CODE_ERROR.
12147
79743962
KR
121482020-04-06 Kamil Rytarowski <n54@gmx.com>
12149
12150 * nbsd-tdep.c: Include "gdbarch.h".
12151 Define enum with NetBSD signal numbers.
12152 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
12153 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
12154 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
12155 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
12156 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
12157 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
12158 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
12159 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12160 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
12161 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
12162 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
12163 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
12164
9e7c9a03
HD
121652020-04-03 Hannes Domani <ssbssa@yahoo.de>
12166
12167 PR gdb/25325
12168 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
12169
d9e49b61
TT
121702020-04-03 Tom Tromey <tromey@adacore.com>
12171
12172 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
12173 Read constant block.
12174
e0fc5c3f
SM
121752020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12176
12177 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
12178 (gdb_bfd_get_full_section_contents): New declaration.
12179 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
12180 * windows-tdep.c (is_linked_with_cygwin_dll): Use
12181 gdb_bfd_get_full_section_contents.
12182
e2ff18a0
SM
121832020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12184
12185 * exec.c (build_section_table): Replace internal_error with
12186 gdb_assert.
12187 (section_table_xfer_memory_partial): Likewise.
12188 * mdebugread.c (parse_partial_symbols): Likewise.
12189 * psymtab.c (lookup_partial_symbol): Likewise.
12190 * utils.c (wrap_here): Likewise.
12191
0830d301
TT
121922020-04-02 Tom Tromey <tromey@adacore.com>
12193
12194 * f-lang.c (build_fortran_types): Use arch_type to initialize
12195 builtin_complex_s32 in the TYPE_CODE_ERROR case.
12196
e7da7f8f
TT
121972020-04-02 Tom Tromey <tromey@adacore.com>
12198
12199 * dwarf2/read.c (partial_die_info::read): Do not create a vector
12200 of attributes.
12201
c90d28ac
AB
122022020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
12203 Bernd Edlinger <bernd.edlinger@hotmail.de>
12204 Tom Tromey <tromey@adacore.com>
12205
12206 * buildsym.c (buildsym_compunit::record_line): Remove
12207 deduplication code.
12208
1aa98955
TV
122092020-04-02 Tom de Vries <tdevries@suse.de>
12210
12211 PR ada/24671
12212 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
12213
d3214198
TV
122142020-04-02 Tom de Vries <tdevries@suse.de>
12215
12216 * dwarf2/read.c (dwarf2_gdb_index_functions,
12217 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
12218 NULL.
12219 * psymtab.c (psym_lookup_global_symbol_language): New function.
12220 (psym_functions): Init psym_lookup_global_symbol_language with
12221 psym_lookup_global_symbol_language.
12222 * symfile-debug.c (debug_sym_quick_functions): Init
12223 lookup_global_symbol_language with NULL.
12224 * symfile.c (set_initial_language): Remove fixme comment.
12225 * symfile.h (struct quick_symbol_functions): Add
12226 lookup_global_symbol_language.
12227 * symtab.c (find_quick_global_symbol_language): New function.
12228 (find_main_name): Use find_quick_global_symbol_language.
12229
2836752f
SM
122302020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
12231
12232 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
12233
64dc2d4b
BE
122342020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12235
12236 * buildsym.c (record_line): Fix undefined behavior and preserve
12237 lines at eof.
12238
bbe3dc41
BE
122392020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12240
12241 * buildsym.c (record_line): Fix the resizing condition.
12242
6b4a335b
TT
122432020-04-01 Tom Tromey <tom@tromey.com>
12244
12245 * value.h (value_literal_complex): Add comment.
12246 * valops.c (value_literal_complex): Refer to value.h.
12247
3638a098
TT
122482020-04-01 Tom Tromey <tom@tromey.com>
12249
12250 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
12251 (scalar_type): New rule, from typebase.
12252 (typebase): Use scalar_type. Recognize complex types.
12253 (field_name): Handle FLOAT_KEYWORD.
12254 (ident_tokens): Add _Complex and __complex__.
12255
c34e8714
TT
122562020-04-01 Tom Tromey <tom@tromey.com>
12257
12258 PR exp/25299:
12259 * valarith.c (promotion_type, complex_binop): New functions.
12260 (scalar_binop): Handle complex numbers. Use promotion_type.
12261 (value_pos, value_neg, value_complement): Handle complex numbers.
12262
fa649bb7
TT
122632020-04-01 Tom Tromey <tom@tromey.com>
12264
12265 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
12266 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
12267 (parse_number): Handle complex numbers.
12268
981c08ce
TT
122692020-04-01 Tom Tromey <tom@tromey.com>
12270
12271 * c-valprint.c (c_decorations): Change complex suffix to "i".
12272
4c99290d
TT
122732020-04-01 Tom Tromey <tom@tromey.com>
12274
12275 * valprint.c (generic_value_print_complex): Use accessors.
12276 * value.h (value_real_part, value_imaginary_part): Declare.
12277 * valops.c (value_real_part, value_imaginary_part): New
12278 functions.
12279 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
12280
5b930b45
TT
122812020-04-01 Tom Tromey <tom@tromey.com>
12282
12283 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
12284 (read_range_type): Update.
12285 * mdebugread.c (basic_type): Update.
12286 * go-lang.c (build_go_types): Use init_complex_type.
12287 * gdbtypes.h (struct main_type) <complex_type>: New member.
12288 (init_complex_type): Update.
12289 (arch_complex_type): Don't declare.
12290 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
12291 Make name if none given. Use alloc_type_copy. Look for cached
12292 complex type.
12293 (arch_complex_type): Remove.
12294 (gdbtypes_post_init): Use init_complex_type.
12295 * f-lang.c (build_fortran_types): Use init_complex_type.
12296 * dwarf2/read.c (read_base_type): Update.
12297 * d-lang.c (build_d_types): Use init_complex_type.
12298 * ctfread.c (read_base_type): Update.
12299
53cccef1
TBA
123002020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12301
12302 * infrun.c (stop_all_threads): Update assertion, plus when
12303 stopping threads, take into account that we might be trying
12304 to stop an all-stop target.
12305 (stop_waiting): Call 'stop_all_threads' if there exists a
12306 non-stop target.
12307
a0714d30
TBA
123082020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12309
12310 * target.h (exists_non_stop_target): New function declaration.
12311 * target.c (exists_non_stop_target): New function.
12312
60e22c1e
HD
123132020-04-01 Hannes Domani <ssbssa@yahoo.de>
12314
12315 PR gdb/24789
12316 * eval.c (is_integral_or_integral_reference): New function.
12317 (evaluate_subexp_standard): Allow integer references in
12318 pointer arithmetic.
12319
e139a727
TBA
123202020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12321
12322 * remote.c (remote_target::remote_parse_stop_reply): Remove the
12323 check for no ptid in the stop reply when the target is non-stop.
12324
e0802d59
TT
123252020-04-01 Tom Tromey <tromey@adacore.com>
12326
12327 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
12328 "name" parameter to rvalue reference. Initialize m_name_holder.
12329 <lookup_name_info>: New overloads.
12330 <name>: Return gdb::string_view.
12331 <c_str>: New method.
12332 <make_ignore_params>: Update.
12333 <search_name_hash>: Update.
12334 <language_lookup_name>: Return const char *.
12335 <m_name>: Change type.
12336 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
12337 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
12338 (lookup_name_info::match_any): Update.
12339 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
12340 Update.
12341 * minsyms.c (linkage_name_str): Update.
12342 * language.c (default_symbol_name_matcher): Update.
12343 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
12344 Update.
12345 * ada-lang.c (ada_fold_name): Change parameter to string_view.
12346 (ada_lookup_name_info::ada_lookup_name_info): Update.
12347 (literal_symbol_name_matcher): Update.
12348
8c072cb6
TT
123492020-04-01 Tom Tromey <tromey@adacore.com>
12350
12351 * psymtab.c (psymtab_search_name): Remove function.
12352 (psym_lookup_symbol): Create search name and lookup name here.
12353 (lookup_partial_symbol): Remove "name" parameter; add
12354 lookup_name.
12355 (psym_expand_symtabs_for_function): Update.
12356
6f29a534
TT
123572020-03-31 Joel Jones <joelkevinjones@gmail.com>
12358
12359 PR tui/25597:
12360 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
12361
af62665e
TT
123622020-03-31 Tom Tromey <tromey@adacore.com>
12363
12364 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
12365 memcpy.
12366
d1a89da5
NC
123672020-03-30 Nelson Chu <nelson.chu@sifive.com>
12368
12369 * features/riscv/32bit-csr.xml: Regenerated.
12370 * features/riscv/64bit-csr.xml: Regenerated.
12371
d8af9068
TT
123722020-03-30 Tom Tromey <tromey@adacore.com>
12373
12374 * ada-valprint.c (print_variant_part): Update.
12375 * ada-lang.h (ada_which_variant_applies): Update.
12376 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
12377 outer_valaddr parameters; replace with "outer" value parameter.
12378 (to_fixed_variant_branch_type): Update.
12379
227c0bf4
PFC
123802020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12381
12382 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
12383 <list>. Remove inclusion of observable.h.
12384 (PPC_DEBUG_CURRENT_VERSION): Move up define.
12385 (struct arch_lwp_info): New struct.
12386 (class ppc_linux_dreg_interface): New class.
12387 (struct ppc_linux_process_info): New struct.
12388 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
12389 <low_new_clone, low_forget_process, low_prepare_to_resume>
12390 <copy_thread_dreg_state, mark_thread_stale>
12391 <mark_debug_registers_changed, register_hw_breakpoint>
12392 <clear_hw_breakpoint, register_wp, clear_wp>
12393 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
12394 <num_memory_accesses, get_trigger_type>
12395 <create_watchpoint_request, hwdebug_point_cmp>
12396 <init_arch_lwp_info, get_arch_lwp_info>
12397 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
12398 methods.
12399 <struct ptid_hash>: New inner struct.
12400 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
12401 members.
12402 (saved_dabr_value, hwdebug_info, max_slots_number)
12403 (struct hw_break_tuple, struct thread_points, ppc_threads)
12404 (have_ptrace_hwdebug_interface)
12405 (hwdebug_find_thread_points_by_tid)
12406 (hwdebug_insert_point, hwdebug_remove_point): Remove.
12407 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
12408 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
12409 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
12410 use m_dreg_interface.
12411 (hwdebug_point_cmp): Change to...
12412 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
12413 reference arguments instead of pointers.
12414 (ppc_linux_nat_target::ranged_break_num_registers): Use
12415 m_dreg_interface.
12416 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
12417 m_dreg_interface. Call register_hw_breakpoint.
12418 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
12419 m_dreg_interface. Call clear_hw_breakpoint.
12420 (get_trigger_type): Change to...
12421 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
12422 comment.
12423 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
12424 use m_dreg_interface. Call register_hw_breakpoint.
12425 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
12426 use m_dreg_interface. Call clear_hw_breakpoint.
12427 (can_use_watchpoint_cond_accel): Change to...
12428 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
12429 method. Update comment, use m_dreg_interface and
12430 m_process_info.
12431 (calculate_dvc): Change to...
12432 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
12433 m_dreg_interface.
12434 (num_memory_accesses): Change to...
12435 (ppc_linux_nat_target::num_memory_accesses): ...this method.
12436 (check_condition): Change to...
12437 (ppc_linux_nat_target::check_condition): ...this method.
12438 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
12439 comment, use m_dreg_interface.
12440 (create_watchpoint_request): Change to...
12441 (ppc_linux_nat_target::create_watchpoint_request): ...this
12442 method. Use m_dreg_interface.
12443 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
12444 m_dreg_interface. Call register_hw_breakpoint or register_wp.
12445 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
12446 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
12447 (ppc_linux_nat_target::low_forget_process)
12448 (ppc_linux_nat_target::low_new_fork)
12449 (ppc_linux_nat_target::low_new_clone)
12450 (ppc_linux_nat_target::low_delete_thread)
12451 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
12452 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
12453 only call mark_thread_stale.
12454 (ppc_linux_thread_exit): Remove.
12455 (ppc_linux_nat_target::stopped_data_address): Change to...
12456 (ppc_linux_nat_target::low_stopped_data_address): This. Add
12457 comment, use m_dreg_interface and m_thread_hw_breakpoints.
12458 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
12459 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
12460 comment. Call low_stopped_data_address.
12461 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
12462 m_dreg_interface.
12463 (ppc_linux_nat_target::masked_watch_num_registers): Use
12464 m_dreg_interface.
12465 (ppc_linux_nat_target::copy_thread_dreg_state)
12466 (ppc_linux_nat_target::mark_thread_stale)
12467 (ppc_linux_nat_target::mark_debug_registers_changed)
12468 (ppc_linux_nat_target::register_hw_breakpoint)
12469 (ppc_linux_nat_target::clear_hw_breakpoint)
12470 (ppc_linux_nat_target::register_wp)
12471 (ppc_linux_nat_target::clear_wp)
12472 (ppc_linux_nat_target::init_arch_lwp_info)
12473 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
12474 (_initialize_ppc_linux_nat): Remove observer callback.
12475
4db10d8f
PFC
124762020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12477
12478 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
12479 (ppc_linux_nat_target::auxv_parse)
12480 (ppc_linux_nat_target::read_description)
12481 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
12482 Move up.
12483
1310c1b0
PFC
124842020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12485
12486 * linux-nat.h (low_new_clone): New method.
12487 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
12488
69b037c3
SM
124892020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12490
12491 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
12492 (dbx_expand_psymtab): ... this.
12493 (start_psymtab): Update.
12494 * mdebugread.c (psymtab_to_symtab_1): Rename to...
12495 (mdebug_expand_psymtab): ... this.
12496 (parse_partial_symbols): Update.
12497 (new_psymtab): Update.
12498 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
12499 (xcoff_expand_psymtab): ... this.
12500 (xcoff_start_psymtab): Update.
12501
48993951
SM
125022020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12503
12504 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
12505 <expand_dependencies>: ... this.
12506 * psymtab.c (partial_symtab::read_dependencies): Rename to...
12507 (partial_symtab::expand_dependencies): ... this.
12508 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
12509 Update.
12510 (dwarf2_psymtab::expand_psymtab): Update.
12511 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12512 * mdebugread.c (psymtab_to_symtab_1): Update.
12513 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12514
3ad83046
SM
125152020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12516
12517 * psympriv.h (discard_psymtab): Remove.
12518 * dbxread.c (dbx_end_psymtab): Update.
12519 * xcoffread.c (xcoff_end_psymtab): Update.
12520
4d1b9ab6
TT
125212020-03-28 Tom Tromey <tom@tromey.com>
12522
12523 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
12524 comment.
12525
f1749218
TT
125262020-03-28 Tom Tromey <tom@tromey.com>
12527
12528 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
12529
ebea7626
HD
125302020-03-27 Hannes Domani <ssbssa@yahoo.de>
12531
12532 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12533
a879b4d5
JB
125342020-03-26 John Baldwin <jhb@FreeBSD.org>
12535
12536 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
12537
0826b30a
TT
125382020-03-26 Tom Tromey <tom@tromey.com>
12539
12540 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
12541 (mark_common_block_symbol_computed, read_tag_string_type)
12542 (attr_to_dynamic_prop, read_subrange_type): Update.
12543 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
12544 to be methods on struct attribute.
12545 (skip_one_die, process_imported_unit_die, read_namespace_alias)
12546 (read_call_site_scope, partial_die_info::read)
12547 (partial_die_info::read, lookup_die_type, follow_die_ref):
12548 Update.
12549 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
12550 from dwarf2_get_ref_die_offset.
12551 (attribute::constant_value): New method, from
12552 dwarf2_get_attr_constant_value.
12553 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
12554 Declare method.
12555 <constant_value>: New method.
12556
2b2558bf
TT
125572020-03-26 Tom Tromey <tom@tromey.com>
12558
12559 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
12560 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
12561 (dwarf_type_encoding_name): Move to stringify.c.
12562 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
12563 * dwarf2/stringify.c: New file.
12564 * dwarf2/stringify.h: New file.
12565
eeb64781
TT
125662020-03-26 Tom Tromey <tom@tromey.com>
12567
12568 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
12569 Rewrite.
12570
a39fdb41
TT
125712020-03-26 Tom Tromey <tom@tromey.com>
12572
12573 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
12574 methods.
12575 * dwarf2/read.c (lookup_addr_base): Move to die.h.
12576 (lookup_ranges_base): Likewise.
12577 (read_cutu_die_from_dwo, read_full_die_1): Update.
12578
436c571c
TT
125792020-03-26 Tom Tromey <tom@tromey.com>
12580
12581 * dwarf2/read.c (read_import_statement, read_file_scope)
12582 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
12583 (read_lexical_block_scope, read_call_site_scope)
12584 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
12585 (handle_struct_member_die, process_structure_scope)
12586 (update_enumeration_type_from_children)
12587 (process_enumeration_scope, read_array_type, read_common_block)
12588 (read_namespace, read_module, read_subroutine_type): Update.
12589 (sibling_die): Remove.
12590
052c8bb8
TT
125912020-03-26 Tom Tromey <tom@tromey.com>
12592
12593 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
12594 (build_type_psymtabs_reader, read_structure_type)
12595 (read_enumeration_type, read_full_die_1): Update.
12596 (dwarf2_attr_no_follow): Move to die.h.
12597 * dwarf2/die.h (struct die_info) <attr>: New method.
12598
2b24b6e4
TT
125992020-03-26 Tom Tromey <tom@tromey.com>
12600
12601 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
12602 <base_address>: Now an optional.
12603 (dwarf2_find_base_address, dwarf2_rnglists_process)
12604 (dwarf2_ranges_process, fill_in_loclist_baton)
12605 (dwarf2_symbol_mark_computed): Update.
12606
c2d50fd0
TT
126072020-03-26 Tom Tromey <tom@tromey.com>
12608
12609 * dwarf2/read.c (struct die_info): Move to die.h.
12610 * dwarf2/die.h: New file.
12611
0df7ad3a
TT
126122020-03-26 Tom Tromey <tom@tromey.com>
12613
12614 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
12615 * dwarf2/read.c
12616 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12617 Move to line-header.c.
12618 (read_checked_initial_length_and_offset, read_formatted_entries):
12619 Likewise.
12620 (dwarf_decode_line_header): Split into two.
12621 * dwarf2/line-header.c
12622 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12623 Move from read.c.
12624 (read_checked_initial_length_and_offset, read_formatted_entries):
12625 Likewise.
12626 (dwarf_decode_line_header): New function, split from read.c.
12627
86c0bb4c
TT
126282020-03-26 Tom Tromey <tom@tromey.com>
12629
12630 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
12631 Declare method.
12632 * dwarf2/read.c (read_attribute_value): Update.
12633 (dwarf2_per_objfile::read_line_string): Rename from
12634 read_indirect_line_string.
12635 (read_formatted_entries): Update.
12636
2ef46c2f
TT
126372020-03-26 Tom Tromey <tom@tromey.com>
12638
12639 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
12640 variable.
12641
4f9c1eda
TT
126422020-03-26 Tom Tromey <tom@tromey.com>
12643
12644 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
12645 const.
12646 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
12647 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
12648 parameter const.
12649
5a0e026f
TT
126502020-03-26 Tom Tromey <tom@tromey.com>
12651
12652 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
12653 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
12654 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
12655 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
12656
8844c11b
TT
126572020-03-26 Tom Tromey <tom@tromey.com>
12658
12659 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
12660 file_names_size, file_full_name, file_file_name>: Use const.
12661 <file_name_at, file_names>: Add const overload.
12662 * dwarf2/line-header.c (line_header::file_file_name)
12663 (line_header::file_full_name): Update.
12664
c90ec28a
TT
126652020-03-26 Tom Tromey <tom@tromey.com>
12666
12667 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
12668 (macro_start_file, consume_improper_spaces)
12669 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
12670 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
12671 (dwarf_decode_macros): Move to macro.c.
12672 * dwarf2/macro.c: New file.
12673 * dwarf2/macro.h: New file.
12674 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
12675
4f44ae6c
TT
126762020-03-26 Tom Tromey <tom@tromey.com>
12677
12678 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
12679 method.
12680 * dwarf2/section.c: New method. From
12681 read_indirect_string_at_offset_from.
12682 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
12683 (read_indirect_string_at_offset_from): Move to section.c.
12684 (read_indirect_string_at_offset): Rewrite.
12685 (read_indirect_line_string_at_offset): Remove.
12686 (read_indirect_string, read_indirect_line_string)
12687 (dwarf_decode_macro_bytes): Update.
12688
a0194fa8
TT
126892020-03-26 Tom Tromey <tom@tromey.com>
12690
12691 * dwarf2/section.h (struct dwarf2_section_info)
12692 <overload_complaint>: Declare.
12693 (dwarf2_section_buffer_overflow_complaint): Don't declare.
12694 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
12695 Rename from dwarf2_section_buffer_overflow_complaint.
12696 * dwarf2/read.c (skip_one_die, partial_die_info::read)
12697 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
12698
3d27bbdb
TT
126992020-03-26 Tom Tromey <tom@tromey.com>
12700
12701 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
12702 Declare.
12703 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
12704 Move from read.c.
12705 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
12706 to section.c.
12707
9eac9650
TT
127082020-03-26 Tom Tromey <tom@tromey.com>
12709
12710 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
12711
bf80d710
TT
127122020-03-26 Tom Tromey <tom@tromey.com>
12713
12714 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
12715 "builder".
12716 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
12717 parameter.
12718 (dwarf_decode_macros): Update.
12719
0314b390
TT
127202020-03-26 Tom Tromey <tom@tromey.com>
12721
12722 * dwarf2/read.c (read_attribute_value): Update.
12723 (read_indirect_string_from_dwz): Move to dwz.c; change into
12724 method.
12725 (dwarf_decode_macro_bytes): Update.
12726 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
12727 * dwarf2/dwz.c: New file.
12728 * Makefile.in (COMMON_SFILES): Add dwz.c.
12729
9fda78b6
TT
127302020-03-26 Tom Tromey <tom@tromey.com>
12731
12732 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
12733 * dwarf2/read.c: Add include.
12734 * dwarf2/index-write.c: Add include.
12735 * dwarf2/index-cache.c: Add include.
12736 * dwarf2/dwz.h: New file.
12737
33aa3c10
TT
127382020-03-25 Tom Tromey <tom@tromey.com>
12739
12740 * compile/compile-object-load.c (get_out_value_type): Mention
12741 correct symbol name in error message.
12742
d503b685
HD
127432020-03-25 Hannes Domani <ssbssa@yahoo.de>
12744
12745 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12746
7b1eff95
TV
127472020-03-25 Tom de Vries <tdevries@suse.de>
12748
12749 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
12750 * symmisc.c (dump_symtab_1): Print user and includes fields.
12751 (maintenance_info_symtabs): Same.
12752
dd895392
AB
127532020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
12754
12755 PR gdb/25534
12756 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
12757 (riscv_regcache_cooked_write): New function.
12758 (riscv_push_dummy_call): Use new function.
12759 (riscv_return_value): Likewise.
12760
5ab2fbf1
SM
127612020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
12762
12763 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
12764 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
12765 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
12766 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
12767 * infrun.c (follow_fork): Likewise.
12768 (follow_fork_inferior): Likewise.
12769 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
12770 * linux-nat.h (class linux_nat_target): Likewise.
12771 * remote.c (class remote_target) <follow_fork>: Likewise.
12772 (remote_target::follow_fork): Likewise.
12773 * target-delegates.c: Re-generate.
12774 * target.c (default_follow_fork): Likewise.
12775 (target_follow_fork): Likewise.
12776 * target.h (struct target_ops) <follow_fork>: Likewise.
12777 (target_follow_fork): Likewise.
12778
a64fafb5
TV
127792020-03-24 Tom de Vries <tdevries@suse.de>
12780
12781 * psymtab.c (maintenance_info_psymtabs): Print user field.
12782
fe26d3a3
TT
127832020-03-20 Tom Tromey <tromey@adacore.com>
12784
12785 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
12786 const.
12787 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
12788 const.
12789
c884cc46
SM
127902020-03-20 Simon Marchi <simon.marchi@efficios.com>
12791
12792 * ptrace.m4: Don't check for ptrace declaration.
12793 * config.in: Re-generate.
12794 * configure: Re-generate.
12795 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
12796 not defined.
12797
1ff700c2
KR
127982020-03-20 Kamil Rytarowski <n54@gmx.com>
12799
12800 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
12801 `PTRACE_TYPE_RET'.
12802 * i386-bsd-nat.c (gdb_ptrace): Likewise.
12803 * sparc-nat.c (gdb_ptrace): Likewise.
12804 * x86-bsd-nat.c (gdb_ptrace): Likewise.
12805
f7d4f0b1
TT
128062020-03-20 Tom Tromey <tromey@adacore.com>
12807
12808 * c-exp.y (lex_one_token): Fix assert.
12809
f67210ff
TT
128102020-03-20 Tom Tromey <tromey@adacore.com>
12811
12812 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
12813 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
12814 strncpy call.
12815
1773be9e
TT
128162020-03-20 Tom Tromey <tromey@adacore.com>
12817
12818 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
12819
70304be9
TT
128202020-03-20 Tom Tromey <tromey@adacore.com>
12821
12822 * ada-valprint.c (print_variant_part): Remove parameters; switch
12823 to value-based API.
12824 (print_field_values): Likewise.
12825 (ada_val_print_struct_union): Likewise.
12826 (ada_value_print_1): Update.
12827
9faa006d
KR
128282020-03-20 Kamil Rytarowski <n54@gmx.com>
12829
12830 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
12831 nbsd_nat_target instead of inf_ptrace_target.
12832 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12833 nbsd_nat_target.
12834
4a90f062
KR
128352020-03-20 Kamil Rytarowski <n54@gmx.com>
12836
12837 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
12838 it to the ptrace call.
12839 * (store_registers): Likewise.
12840
128412020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
12842
12843 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
12844 it to the ptrace call.
12845 * (store_registers): Likewise.
12846
2d07da27
LM
128472020-03-19 Luis Machado <luis.machado@linaro.org>
12848
12849 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
12850 valid, fetch vg value from ptrace.
12851
f09db380
KR
128522020-03-19 Kamil Rytarowski <n54@gmx.com>
12853 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
12854 * inf-ptrace.c: Likewise.
12855 * (gdb_ptrace): Add.
12856 * (inf_ptrace_target::resume): Update.
12857 * (inf_ptrace_target::xfer_partial): Likewise.
12858 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
12859 * (inf_ptrace_peek_poke): Update.
12860
fcc7376e
KR
128612020-03-19 Kamil Rytarowski <n54@gmx.com>
12862
12863 * x86-bsd-nat.c (gdb_ptrace): New.
12864 * (x86bsd_dr_set): Add new argument `ptid'.
12865 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
12866 x86bsd_dr_set_addr): Update.
12867
cada5fc9
AB
128682020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12869
12870 * remote.c (remote_target::process_stop_reply): Handle events for
12871 all threads differently.
12872
19a2740f
AB
128732020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12874
12875 * completer.c (completion_tracker::remove_completion): Define new
12876 function.
12877 * completer.h (completion_tracker::remove_completion): Declare new
12878 function.
12879 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
12880 when adding a C++ function symbol.
12881
724fd9ba
AB
128822020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12883
12884 * completer.c (completion_tracker::completion_hash_entry): Define
12885 new class.
12886 (advance_to_filename_complete_word_point): Call
12887 recompute_lowest_common_denominator.
12888 (completion_tracker::completion_tracker): Call discard_completions
12889 to setup the hash table.
12890 (completion_tracker::discard_completions): Allow for being called
12891 from the constructor, pass new equal function, and element deleter
12892 when constructing the hash table. Initialise new class member
12893 variables.
12894 (completion_tracker::maybe_add_completion): Remove use of
12895 m_entries_vec, and store more information into m_entries_hash.
12896 (completion_tracker::recompute_lcd_visitor): New function, most
12897 content taken from...
12898 (completion_tracker::recompute_lowest_common_denominator):
12899 ...here, this now just visits each item in the hash calling the
12900 above visitor.
12901 (completion_tracker::build_completion_result): Remove use of
12902 m_entries_vec, call recompute_lowest_common_denominator.
12903 * completer.h (completion_tracker::have_completions): Remove use
12904 of m_entries_vec.
12905 (completion_tracker::completion_hash_entry): Declare new class.
12906 (completion_tracker::recompute_lowest_common_denominator): Change
12907 function signature.
12908 (completion_tracker::recompute_lcd_visitor): Declare new function.
12909 (completion_tracker::m_entries_vec): Delete.
12910 (completion_tracker::m_entries_hash): Initialize to NULL.
12911 (completion_tracker::m_lowest_common_denominator_valid): New
12912 member variable.
12913 (completion_tracker::m_lowest_common_denominator_max_length): New
12914 member variable.
12915
5a82b8a1
KR
129162020-03-17 Kamil Rytarowski <n54@gmx.com>
12917
12918 * regformats/regdef.h: Put reg in gdb namespace.
12919
fb516a69
KR
129202020-03-17 Kamil Rytarowski <n54@gmx.com>
12921
12922 * i386-bsd-nat.c (gdb_ptrace): New.
12923 * (i386bsd_fetch_inferior_registers,
12924 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12925 * (i386bsd_fetch_inferior_registers,
12926 i386bsd_store_inferior_registers) Use gdb_ptrace.
12927
1c0aa1fb
KR
129282020-03-17 Kamil Rytarowski <n54@gmx.com>
12929
12930 * amd64-bsd-nat.c (gdb_ptrace): New.
12931 * (amd64bsd_fetch_inferior_registers,
12932 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12933 * (amd64bsd_fetch_inferior_registers,
12934 amd64bsd_store_inferior_registers) Use gdb_ptrace.
12935
5ccd2fb7
KR
129362020-03-17 Kamil Rytarowski <n54@gmx.com>
12937
12938 * user-regs.c (user_reg::read): Rename to...
12939 (user_reg::xread): ...this.
12940 * (append_user_reg): Rename argument `read' to `xread'.
12941 * (user_reg_add_builtin): Likewise.
12942 * (user_reg_add): Likewise.
12943 * (value_of_user_reg): Likewise.
12944
2108a63a
KR
129452020-03-17 Kamil Rytarowski <n54@gmx.com>
12946
12947 * sparc-nat.c (gdb_ptrace): New.
12948 * sparc-nat.c (sparc_fetch_inferior_registers)
12949 (sparc_store_inferior_registers) Remove obsolete comment.
12950 * sparc-nat.c (sparc_fetch_inferior_registers)
12951 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
12952 * sparc-nat.c (sparc_fetch_inferior_registers)
12953 (sparc_store_inferior_registers) Use gdb_ptrace.
12954
a225c9a8
KR
129552020-03-17 Kamil Rytarowski <n54@gmx.com>
12956
12957 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
12958 it to the ptrace call.
12959 * sh-nbsd-nat.c (store_registers): Likewise.
12960
98097623
KR
129612020-03-17 Kamil Rytarowski <n54@gmx.com>
12962
12963 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
12964 nbsd_nat_target instead of inf_ptrace_target.
12965 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12966 nbsd_nat_target.
12967
9e38d619
KR
129682020-03-17 Kamil Rytarowski <n54@gmx.com>
12969
12970 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
12971
a2ecbe9f
KR
129722020-03-17 Kamil Rytarowski <n54@gmx.com>
12973
12974 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
12975 <sys/sysctl.h>.
12976 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
12977
58990295
TV
129782020-03-17 Tom de Vries <tdevries@suse.de>
12979
12980 PR gdb/23710
12981 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
12982 fields.
12983 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
12984 fields.
12985 (process_imported_unit_die): Skip import of c++ CUs.
12986
771dd3a8
TT
129872020-03-16 Tom Tromey <tom@tromey.com>
12988
12989 * p-valprint.c (pascal_object_print_value): Initialize
12990 base_value.
12991
817a7585
AK
129922020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
12993 Shahab Vahedi <shahab@synopsys.com>
12994
12995 * Makefile.in: Add arch/arc.o
12996 * configure.tgt: Likewise.
12997 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
12998 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 12999 (arc_read_description): New function to cache target descriptions.
817a7585
AK
13000 * arc-tdep.h (arc_read_description): Add proto type.
13001 * arch/arc.c: New file.
13002 * arch/arc.h: Likewise.
13003 * features/Makefile: Replace old target descriptions with new.
13004 * features/arc-arcompact.c: Remove.
13005 * features/arc-arcompact.xml: Likewise.
13006 * features/arc-v2.c: Likewise
13007 * features/arc-v2.xml: Likewise
13008 * features/arc/aux-arcompact.xml: New file.
13009 * features/arc/aux-v2.xml: Likewise.
13010 * features/arc/core-arcompact.xml: Likewise.
13011 * features/arc/core-v2.xml: Likewise.
13012 * features/arc/aux-arcompact.c: Generate.
13013 * features/arc/aux-v2.c: Likewise.
13014 * features/arc/core-arcompact.c: Likewise.
13015 * features/arc/core-v2.c: Likewise.
13016 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
13017
67430cd0
TT
130182020-03-16 Tom Tromey <tromey@adacore.com>
13019
13020 PR gdb/25663:
13021 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
13022 putting value into bcache.
13023
30efb6c7
SM
130242020-03-16 Simon Marchi <simon.marchi@efficios.com>
13025
13026 PR gdb/21500
13027 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
13028 to...
13029 (amd64_windows_init_abi_common): ... this. Don't set size of
13030 long type.
13031 (amd64_windows_init_abi): New function.
13032 (amd64_cygwin_init_abi): New function.
13033 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
13034 the Cygwin OS ABI.
13035 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
13036 comment.
13037
8db52437
SM
130382020-03-16 Simon Marchi <simon.marchi@efficios.com>
13039
13040 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
13041 * windows-tdep.c (CYGWIN_DLL_NAME): New.
13042 (pe_import_directory_entry): New struct type.
13043 (is_linked_with_cygwin_dll): New function.
13044 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
13045 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
13046 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
13047
5982a56a
SM
130482020-03-16 Simon Marchi <simon.marchi@efficios.com>
13049
13050 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
13051 i386_cygwin_core_osabi_sniffer.
13052
7a1998df
SM
130532020-03-16 Simon Marchi <simon.marchi@efficios.com>
13054
13055 * i386-cygwin-tdep.c: Rename to...
13056 * i386-windows-tdep.c: ... this.
13057 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
13058 i386-windows-tdep.c.
13059 * configure.tgt: Likewise.
13060
053205cc
SM
130612020-03-16 Simon Marchi <simon.marchi@efficios.com>
13062
13063 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
13064 * osabi.c (gdb_osabi_names): Add "Windows".
13065 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
13066 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
13067 (i386_cygwin_core_osabi_sniffer): New function, extracted from
13068 i386_cygwin_osabi_sniffer.
13069 (_initialize_i386_cygwin_tdep): Register OS ABI
13070 GDB_OSABI_WINDOWS for i386.
13071 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
13072 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
13073 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
13074 for x86-64.
13075 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
13076 when the target matches '*-*-mingw*'.
13077
fe4b2ee6
SM
130782020-03-16 Simon Marchi <simon.marchi@efficios.com>
13079
13080 * defs.h (enum gdb_osabi): Move to...
13081 * osabi.h (enum gdb_osabi): ... here.
13082 * gdbarch.sh: Include osabi.h in gdbarch.h.
13083 * gdbarch.h: Re-generate.
13084
cb9b645d
SM
130852020-03-16 Simon Marchi <simon.marchi@efficios.com>
13086
13087 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
13088 function.
13089 (_initialize_amd64_windows_tdep): Register osabi sniffer.
13090
3293bbaf
TT
130912020-03-14 Tom Tromey <tom@tromey.com>
13092
13093 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
13094 for C++.
13095 (c_type_print_modifier): Likewise. Add "language" parameter.
13096 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
13097 (c_type_print_base_1): Update.
13098 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
13099 constants.
13100 * type-stack.c (type_stack::insert): Handle tp_atomic and
13101 tp_restrict.
13102 (type_stack::follow_type_instance_flags): Likewise.
13103 (type_stack::follow_types): Likewise. Merge type-following code.
13104 * c-exp.y (RESTRICT, ATOMIC): New tokens.
13105 (space_identifier, cv_with_space_id)
13106 (const_or_volatile_or_space_identifier_noopt)
13107 (const_or_volatile_or_space_identifier): Remove.
13108 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
13109 rules.
13110 (ptr_operator, typebase): Update.
13111 (enum token_flag) <FLAG_C>: New constant.
13112 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
13113 "_Atomic".
13114 (lex_one_token): Handle FLAG_C.
13115
154151a6
KR
131162020-03-14 Kamil Rytarowski <n54@gmx.com>
13117
13118 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
13119 it to the ptrace call.
13120 * m68k-bsd-nat.c (store_registers): Likewise.
13121
bc107784
KR
131222020-03-14 Kamil Rytarowski <n54@gmx.com>
13123
13124 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
13125 gdb_byte *.
13126 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
13127 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
13128 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
13129
01a80117
KR
131302020-03-14 Kamil Rytarowski <n54@gmx.com>
13131
13132 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
13133 nbsd_nat_target instead of inf_ptrace_target.
13134 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13135 nbsd_nat_target.
13136
f90280ca
KR
131372020-03-14 Kamil Rytarowski <n54@gmx.com>
13138
13139 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
13140 register_t.
13141
6def66f1
KR
131422020-03-14 Kamil Rytarowski <n54@gmx.com>
13143
13144 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
13145 it to the ptrace call.
13146 * alpha-bsd-nat.c (store_registers): Likewise.
13147
66eaca97
KR
131482020-03-14 Kamil Rytarowski <n54@gmx.com>
13149
13150 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
13151 includes.
13152 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
13153 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
13154 fill_fpregset): Likewise.
13155
4fed520b
KR
131562020-03-14 Kamil Rytarowski <n54@gmx.com>
13157
13158 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
13159 nbsd_nat_target instead of inf_ptrace_target.
13160 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13161 nbsd_nat_target.
13162
2190cf06
KR
131632020-03-14 Kamil Rytarowski <n54@gmx.com>
13164
13165 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
13166 register_t.
13167
75c56d3d
KR
131682020-03-14 Kamil Rytarowski <n54@gmx.com>
13169
13170 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
13171 it to the ptrace call.
13172 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
13173 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
13174 * arm-nbsd-nat.c (store_register): Likewise.
13175 * arm-nbsd-nat.c (store_regs): Likewise.
13176 * arm-nbsd-nat.c (store_fp_register): Likewise.
13177 * arm-nbsd-nat.c (store_fp_regs): Likewise.
13178
6018d381
KR
131792020-03-14 Kamil Rytarowski <n54@gmx.com>
13180
13181 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
13182 nbsd_nat_target instead of inf_ptrace_target.
13183 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13184 nbsd_nat_target.
13185
013f99f0
KR
131862020-03-14 Kamil Rytarowski <n54@gmx.com>
13187
13188 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
13189 it to the ptrace call.
13190 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
13191
12753073
KR
131922020-03-14 Kamil Rytarowski <n54@gmx.com>
13193
6227b330
KR
13194 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
13195 it to the ptrace call.
13196 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
13197
131982020-03-14 Kamil Rytarowski <n54@gmx.com>
13199
13200 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
13201 gdb_byte *.
12753073
KR
13202 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
13203
d5be5fa4
KR
132042020-03-14 Kamil Rytarowski <n54@gmx.com>
13205
13206 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
13207 instead of inf_ptrace_target.
13208 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13209 nbsd_nat_target.
13210
8110f842
KR
132112020-03-14 Kamil Rytarowski <n54@gmx.com>
13212
13213 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13214 register_t.
13215
52feded7
KR
132162020-03-14 Kamil Rytarowski <n54@gmx.com>
13217
13218 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13219 register_t.
13220
25567eee
KR
132212020-03-14 Kamil Rytarowski <n54@gmx.com>
13222
13223 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
13224 register_t.
13225
426a9c18
TT
132262020-03-13 Tom Tromey <tom@tromey.com>
13227
13228 * value.h (val_print): Don't declare.
13229 * valprint.h (val_print_array_elements)
13230 (val_print_scalar_formatted, generic_val_print): Don't declare.
13231 * valprint.c (generic_val_print_array): Take a struct value.
13232 (generic_val_print_ptr, generic_val_print_memberptr)
13233 (generic_val_print_bool, generic_val_print_int)
13234 (generic_val_print_char, generic_val_print_complex)
13235 (generic_val_print): Remove.
13236 (generic_value_print): Update.
13237 (do_val_print): Remove unused parameters. Don't call
13238 la_val_print.
13239 (val_print): Remove.
13240 (common_val_print): Update. Don't call value_check_printable.
13241 (val_print_scalar_formatted, val_print_array_elements): Remove.
13242 * rust-lang.c (rust_val_print): Remove.
13243 (rust_language_defn): Update.
13244 * p-valprint.c (pascal_val_print): Remove.
13245 (pascal_value_print_inner): Update.
13246 (pascal_object_print_val_fields, pascal_object_print_val):
13247 Remove.
13248 (pascal_object_print_static_field): Update.
13249 * p-lang.h (pascal_val_print): Don't declare.
13250 * p-lang.c (pascal_language_defn): Update.
13251 * opencl-lang.c (opencl_language_defn): Update.
13252 * objc-lang.c (objc_language_defn): Update.
13253 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
13254 * m2-lang.h (m2_val_print): Don't declare.
13255 * m2-lang.c (m2_language_defn): Update.
13256 * language.h (struct language_defn) <la_val_print>: Remove.
13257 * language.c (unk_lang_value_print_inner): Rename. Change
13258 argument types.
13259 (unknown_language_defn, auto_language_defn): Update.
13260 * go-valprint.c (go_val_print): Remove.
13261 * go-lang.h (go_val_print): Don't declare.
13262 * go-lang.c (go_language_defn): Update.
13263 * f-valprint.c (f_val_print): Remove.
13264 * f-lang.h (f_value_print): Don't declare.
13265 * f-lang.c (f_language_defn): Update.
13266 * d-valprint.c (d_val_print): Remove.
13267 * d-lang.h (d_value_print): Don't declare.
13268 * d-lang.c (d_language_defn): Update.
13269 * cp-valprint.c (cp_print_value_fields)
13270 (cp_print_value_fields_rtti, cp_print_value): Remove.
13271 (cp_print_static_field): Update.
13272 * c-valprint.c (c_val_print_array, c_val_print_ptr)
13273 (c_val_print_struct, c_val_print_union, c_val_print_int)
13274 (c_val_print_memberptr, c_val_print): Remove.
13275 * c-lang.h (c_val_print_array, cp_print_value_fields)
13276 (cp_print_value_fields_rtti): Don't declare.
13277 * c-lang.c (c_language_defn, cplus_language_defn)
13278 (asm_language_defn, minimal_language_defn): Update.
13279 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
13280 (ada_val_print_enum): Take a struct value.
13281 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
13282 (ada_val_print): Remove.
13283 (ada_value_print_1): Update.
13284 (printable_val_type): Remove.
13285 * ada-lang.h (ada_val_print): Don't declare.
13286 * ada-lang.c (ada_language_defn): Update.
13287
42331a1e
TT
132882020-03-13 Tom Tromey <tom@tromey.com>
13289
13290 * valprint.c (do_val_print): Update.
13291 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
13292 a struct value.
13293 (value_to_value_object_no_release): Declare.
13294 * python/py-value.c (value_to_value_object_no_release): New
13295 function.
13296 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
13297 struct value.
13298 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
13299 function.
13300 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
13301 a struct value.
13302 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
13303 Declare.
13304 (gdbscm_apply_val_pretty_printer): Take a struct value.
13305 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
13306 value.
13307 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
13308 value.
13309 * extension-priv.h (struct extension_language_ops)
13310 <apply_val_pretty_printer>: Take a struct value.
13311 * cp-valprint.c (cp_print_value): Create a struct value.
13312 (cp_print_value): Update.
13313
3a916a97
TT
133142020-03-13 Tom Tromey <tom@tromey.com>
13315
13316 * ada-valprint.c (print_field_values): Call common_val_print.
13317
b59eac37
TT
133182020-03-13 Tom Tromey <tom@tromey.com>
13319
13320 * ada-valprint.c (val_print_packed_array_elements): Remove
13321 bitoffset and val parameters. Call common_val_print.
13322 (ada_val_print_string): Remove offset, address, and original_value
13323 parameters.
13324 (ada_val_print_array): Update.
13325 (ada_value_print_array): New function.
13326 (ada_value_print_1): Call it.
13327
03371129
TT
133282020-03-13 Tom Tromey <tom@tromey.com>
13329
13330 * ada-valprint.c (ada_value_print): Use common_val_print.
13331
2e088f8b
TT
133322020-03-13 Tom Tromey <tom@tromey.com>
13333
13334 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
13335
39ef85a8
TT
133362020-03-13 Tom Tromey <tom@tromey.com>
13337
13338 * ada-valprint.c (ada_value_print_num): New function.
13339 (ada_value_print_1): Use it.
13340
b9fa6e07
TT
133412020-03-13 Tom Tromey <tom@tromey.com>
13342
13343 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
13344
416595d6
TT
133452020-03-13 Tom Tromey <tom@tromey.com>
13346
13347 * ada-valprint.c (ada_value_print_ptr): New function.
13348 (ada_value_print_1): Use it.
13349
5b5e15ec
TT
133502020-03-13 Tom Tromey <tom@tromey.com>
13351
13352 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
13353 call common_val_print.
13354 (ada_val_print_1): Update.
13355 (ada_value_print_1): New function.
13356 (ada_value_print_inner): Rewrite.
13357
fbf54e75
TT
133582020-03-13 Tom Tromey <tom@tromey.com>
13359
13360 * cp-valprint.c (cp_print_value_fields): Update.
13361 (cp_print_value): New function.
13362
64b653ca
TT
133632020-03-13 Tom Tromey <tom@tromey.com>
13364
13365 * m2-valprint.c (m2_value_print_inner): Use
13366 cp_print_value_fields.
13367 * cp-valprint.c (cp_print_value_fields): New function.
13368 * c-valprint.c (c_value_print_struct): New function.
13369 (c_value_print_inner): Use c_value_print_struct.
13370 * c-lang.h (cp_print_value_fields): Declare.
13371
6999f067
TT
133722020-03-13 Tom Tromey <tom@tromey.com>
13373
13374 * c-valprint.c (c_value_print_array): New function.
13375 (c_value_print_inner): Use it.
13376
ce80b8bd
TT
133772020-03-13 Tom Tromey <tom@tromey.com>
13378
13379 * c-valprint.c (c_value_print_memberptr): New function.
13380 (c_value_print_inner): Use it.
13381
2faac269
TT
133822020-03-13 Tom Tromey <tom@tromey.com>
13383
13384 * c-valprint.c (c_value_print_int): New function.
13385 (c_value_print_inner): Use it.
13386
da3e2c29
TT
133872020-03-13 Tom Tromey <tom@tromey.com>
13388
13389 * c-valprint.c (c_value_print_ptr): New function.
13390 (c_value_print_inner): Use it.
13391
50836231
TT
133922020-03-13 Tom Tromey <tom@tromey.com>
13393
13394 * c-valprint.c (c_value_print_inner): Rewrite.
13395
4f412b6e
TT
133962020-03-13 Tom Tromey <tom@tromey.com>
13397
13398 * valprint.c (generic_value_print_complex): New function.
13399 (generic_value_print): Use it.
13400
f5354008
TT
134012020-03-13 Tom Tromey <tom@tromey.com>
13402
13403 * valprint.c (generic_val_print_float): Don't call
13404 val_print_scalar_formatted.
13405 (generic_val_print, generic_value_print): Update.
13406
3eec3b05
TT
134072020-03-13 Tom Tromey <tom@tromey.com>
13408
13409 * valprint.c (generic_value_print_char): New function
13410 (generic_value_print): Use it.
13411
fdddfccb
TT
134122020-03-13 Tom Tromey <tom@tromey.com>
13413
13414 * valprint.c (generic_value_print_int): New function.
13415 (generic_value_print): Use it.
13416
6dde7521
TT
134172020-03-13 Tom Tromey <tom@tromey.com>
13418
13419 * valprint.c (generic_value_print_bool): New function.
13420 (generic_value_print): Use it.
13421
4112d2e6
TT
134222020-03-13 Tom Tromey <tom@tromey.com>
13423
13424 * valprint.c (generic_val_print_func): Simplify.
13425 (generic_val_print, generic_value_print): Update.
13426
65786af6
TT
134272020-03-13 Tom Tromey <tom@tromey.com>
13428
13429 * valprint.c (generic_val_print_flags): Remove.
13430 (generic_val_print, generic_value_print): Update.
13431 (val_print_type_code_flags): Add original_value parameter.
13432
40f3ce18
TT
134332020-03-13 Tom Tromey <tom@tromey.com>
13434
13435 * valprint.c (generic_val_print): Update.
13436 (generic_value_print): Update.
13437 * valprint.c (generic_val_print_enum): Don't call
13438 val_print_scalar_formatted.
13439
2a5b130b
TT
134402020-03-13 Tom Tromey <tom@tromey.com>
13441
13442 * valprint.c (generic_value_print): Call generic_value_print_ptr.
13443 * valprint.c (generic_value_print_ptr): New function.
13444
abc66ce9
TT
134452020-03-13 Tom Tromey <tom@tromey.com>
13446
13447 * valprint.c (generic_value_print): Rewrite.
13448
07a32858
TT
134492020-03-13 Tom Tromey <tom@tromey.com>
13450
13451 * p-valprint.c (pascal_object_print_value_fields)
13452 (pascal_object_print_value): New functions.
13453
64d64d3a
TT
134542020-03-13 Tom Tromey <tom@tromey.com>
13455
13456 * p-valprint.c (pascal_value_print_inner): Rewrite.
13457
6a95a1f5
TT
134582020-03-13 Tom Tromey <tom@tromey.com>
13459
13460 * f-valprint.c (f_value_print_innner): Rewrite.
13461
59fcdac6
TT
134622020-03-13 Tom Tromey <tom@tromey.com>
13463
13464 * m2-valprint.c (m2_print_unbounded_array): New overload.
13465 (m2_print_unbounded_array): Update.
13466 (m2_print_array_contents): Take a struct value.
13467 (m2_value_print_inner): Rewrite.
13468
d133c3e1
TT
134692020-03-13 Tom Tromey <tom@tromey.com>
13470
13471 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
13472 (d_value_print_inner): New function.
13473 * d-lang.h (d_value_print_inner): Declare.
13474 * d-lang.c (d_language_defn): Use d_value_print_inner.
13475
23b0f06b
TT
134762020-03-13 Tom Tromey <tom@tromey.com>
13477
13478 * go-valprint.c (go_value_print_inner): New function.
13479 * go-lang.h (go_value_print_inner): Declare.
13480 * go-lang.c (go_language_defn): Use go_value_print_inner.
13481
5f56f7cb
TT
134822020-03-13 Tom Tromey <tom@tromey.com>
13483
13484 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
13485 API.
13486 (rust_val_print): Rewrite.
13487 (rust_value_print_inner): New function, from rust_val_print.
13488 (rust_language_defn): Use rust_value_print_inner.
13489
26792ee0
TT
134902020-03-13 Tom Tromey <tom@tromey.com>
13491
13492 * ada-valprint.c (ada_value_print_inner): New function.
13493 * ada-lang.h (ada_value_print_inner): Declare.
13494 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
13495
24051bbe
TT
134962020-03-13 Tom Tromey <tom@tromey.com>
13497
13498 * f-valprint.c (f_value_print_innner): New function.
13499 * f-lang.h (f_value_print_innner): Declare.
13500 * f-lang.c (f_language_defn): Use f_value_print_innner.
13501
c0941be6
TT
135022020-03-13 Tom Tromey <tom@tromey.com>
13503
13504 * p-valprint.c (pascal_value_print_inner): New function.
13505 * p-lang.h (pascal_value_print_inner): Declare.
13506 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
13507
62c4663d
TT
135082020-03-13 Tom Tromey <tom@tromey.com>
13509
13510 * m2-valprint.c (m2_value_print_inner): New function.
13511 * m2-lang.h (m2_value_print_inner): Declare.
13512 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
13513
62182190
TT
135142020-03-13 Tom Tromey <tom@tromey.com>
13515
13516 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
13517 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
13518 * c-valprint.c (c_value_print_inner): New function.
13519 * c-lang.h (c_value_print_inner): Declare.
13520 * c-lang.c (c_language_defn, cplus_language_defn)
13521 (asm_language_defn, minimal_language_defn): Use
13522 c_value_print_inner.
13523
1e592a8a
TT
135242020-03-13 Tom Tromey <tom@tromey.com>
13525
13526 * p-valprint.c (pascal_object_print_value_fields): Now static.
13527 * p-lang.h (pascal_object_print_value_fields): Don't declare.
13528
7fe471e9
TT
135292020-03-13 Tom Tromey <tom@tromey.com>
13530
13531 * c-valprint.c (c_val_print_array): Simplify.
13532
d121c6ce
TT
135332020-03-13 Tom Tromey <tom@tromey.com>
13534
13535 * valprint.c (value_print_array_elements): New function.
13536 * valprint.h (value_print_array_elements): Declare.
13537
4dba70ee
TT
135382020-03-13 Tom Tromey <tom@tromey.com>
13539
13540 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
13541 * mips-tdep.c (mips_print_register): Use
13542 value_print_scalar_formatted.
13543
4f9ae810
TT
135442020-03-13 Tom Tromey <tom@tromey.com>
13545
13546 * valprint.h (value_print_scalar_formatted): Declare.
13547 * valprint.c (value_print_scalar_formatted): New function.
13548
156bfec9
TT
135492020-03-13 Tom Tromey <tom@tromey.com>
13550
13551 * valprint.h (generic_value_print): Declare.
13552 * valprint.c (generic_value_print): New function.
13553
2b4e573d
TT
135542020-03-13 Tom Tromey <tom@tromey.com>
13555
13556 * valprint.c (do_val_print): Call la_value_print_inner, if
13557 available.
13558 * rust-lang.c (rust_language_defn): Update.
13559 * p-lang.c (pascal_language_defn): Update.
13560 * opencl-lang.c (opencl_language_defn): Update.
13561 * objc-lang.c (objc_language_defn): Update.
13562 * m2-lang.c (m2_language_defn): Update.
13563 * language.h (struct language_defn) <la_value_print_inner>: New
13564 member.
13565 * language.c (unknown_language_defn, auto_language_defn): Update.
13566 * go-lang.c (go_language_defn): Update.
13567 * f-lang.c (f_language_defn): Update.
13568 * d-lang.c (d_language_defn): Update.
13569 * c-lang.c (c_language_defn, cplus_language_defn)
13570 (asm_language_defn, minimal_language_defn): Update.
13571 * ada-lang.c (ada_language_defn): Update.
13572
a1f6a07c
TT
135732020-03-13 Tom Tromey <tom@tromey.com>
13574
13575 * c-valprint.c (c_value_print): Use common_val_print.
13576
410cf315
TT
135772020-03-13 Tom Tromey <tom@tromey.com>
13578
13579 * cp-valprint.c (cp_print_static_field): Use common_val_print.
13580
72a45c93
TT
135812020-03-13 Tom Tromey <tom@tromey.com>
13582
13583 * f-valprint.c (f77_print_array_1, f_val_print): Use
13584 common_val_print.
13585
040f66bd
TT
135862020-03-13 Tom Tromey <tom@tromey.com>
13587
13588 * riscv-tdep.c (riscv_print_one_register_info): Use
13589 common_val_print.
13590
a6e05a6c
TT
135912020-03-13 Tom Tromey <tom@tromey.com>
13592
13593 * mi/mi-main.c (output_register): Use common_val_print.
13594
3444c526
TT
135952020-03-13 Tom Tromey <tom@tromey.com>
13596
13597 * infcmd.c (default_print_one_register_info): Use
13598 common_val_print.
13599
c2a44efe
TT
136002020-03-13 Tom Tromey <tom@tromey.com>
13601
13602 * valprint.h (common_val_print_checked): Declare.
13603 * valprint.c (common_val_print_checked): New function.
13604 * stack.c (print_frame_arg): Use common_val_print_checked.
13605
b0c26e99
TT
136062020-03-13 Tom Tromey <tom@tromey.com>
13607
13608 * valprint.c (do_val_print): New function, from val_print.
13609 (val_print): Use do_val_print.
13610 (common_val_print): Use do_val_print.
13611
ce3acbe9
TT
136122020-03-13 Tom Tromey <tom@tromey.com>
13613
13614 * valprint.c (value_print): Use scoped_value_mark.
13615
96c7f873
TV
136162020-03-13 Tom de Vries <tdevries@suse.de>
13617
13618 PR symtab/25646
13619 * psymtab.c (partial_symtab::partial_symtab): Don't set
13620 globals_offset and statics_offset. Push element onto
13621 current_global_psymbols and current_static_psymbols stacks.
13622 (concat): New function.
13623 (end_psymtab_common): Set globals_offset and statics_offset. Pop
13624 element from current_global_psymbols and current_static_psymbols
13625 stacks. Concat popped elements to global_psymbols and
13626 static_symbols.
13627 (add_psymbol_to_list): Use current_global_psymbols and
13628 current_static_psymbols stacks.
13629 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
13630 current_static_psymbols fields.
13631
6ba0a321
CB
136322020-03-12 Christian Biesinger <cbiesinger@google.com>
13633
13634 * corelow.c (sniff_core_bfd): Remove.
13635 (class core_target) <m_core_vec>: Remove.
13636 (core_target::core_target): Update.
13637 (core_file_fns): Remove.
13638 (deprecated_add_core_fns): Remove.
13639 (default_core_sniffer): Remove.
13640 (sniff_core_bfd): Remove.
13641 (default_check_format): Remove.
13642 (gdb_check_format): Remove.
13643 (core_target_open): Update.
13644 (core_target::get_core_register_section): Update.
13645 (get_core_registers_cb): Update.
13646 (core_target::fetch_registers): Update.
13647 * gdbcore.h (struct core_fns): Remove.
13648 (deprecated_add_core_fns): Remove.
13649 (default_core_sniffer): Remove.
13650 (default_check_format): Remove.
13651
227031b2
TT
136522020-03-12 Tom Tromey <tom@tromey.com>
13653
13654 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
13655 CORE_ADDR.
13656 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
13657
53807e9f
TT
136582020-03-12 Tom Tromey <tom@tromey.com>
13659
13660 * remote.c (remote_target::download_tracepoint)
13661 (remote_target::enable_tracepoint)
13662 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
13663 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
13664 sprintf_vma.
13665
64f25102
TT
136662020-03-12 Tom Tromey <tom@tromey.com>
13667
13668 * symfile-mem.c: Update CORE_ADDR size assert.
13669
272cd5a3
SM
136702020-03-12 Simon Marchi <simon.marchi@efficios.com>
13671
13672 * selftest.m4: Move to gdbsupport/.
13673 * acinclude.m4: Update path to selftest.m4.
13674
74cd3f9d
SM
136752020-03-12 Simon Marchi <simon.marchi@efficios.com>
13676
13677 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
13678 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
13679 gdbarch-selfselftests.c and selftest-arch.c.
13680 (SUBDIR_UNITTESTS_OBS): Rename to...
13681 (SELFTESTS_OBS): ... this.
13682 (COMMON_SFILES): Remove disasm-selftests.c and
13683 gdbarch-selftests.c.
13684 * configure.ac: Don't add selftest-arch.{c,o} to
13685 CONFIG_{SRCS,OBS}.
13686 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
13687 preprocessor conditions.
13688
db6878ac
SM
136892020-03-12 Simon Marchi <simon.marchi@efficios.com>
13690
13691 * configure.ac: Don't source bfd/development.sh.
13692 * selftest.m4: Modify comment.
13693 * configure: Re-generate.
13694
4d696a5c
SM
136952020-03-12 Simon Marchi <simon.marchi@efficios.com>
13696
13697 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
13698 not "true" or "false".
13699 * configure: Re-generate.
13700
8dd8e1c7
CB
137012020-03-12 Christian Biesinger <cbiesinger@google.com>
13702
13703 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
13704 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
13705 renamed to arm_nbsd_supply_gregset.
13706 (fetch_register): Update to call arm_nbsd_supply_gregset.
13707 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
13708 (arm_netbsd_nat_target::fetch_registers): Update.
13709 (fetch_elfcore_registers): Removed.
13710 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
13711 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
13712 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
13713 not require NetBSD system headers.
13714 (arm_nbsd_regset): New struct.
13715 (arm_nbsd_iterate_over_regset_sections): New function.
13716 (arm_netbsd_init_abi_common): Updated to call
13717 set_gdbarch_iterate_over_regset_sections.
13718 * arm-nbsd-tdep.h: New file.
13719
dd69bf7a
KB
137202020-03-11 Kevin Buettner <kevinb@redhat.com>
13721
13722 * symtab.c (find_pc_sect_line): Add check which prevents infinite
13723 recursion.
13724
a0761e34
SM
137252020-03-11 Simon Marchi <simon.marchi@efficios.com>
13726
13727 * configure: Re-generate.
13728
e7a82140
TT
137292020-03-11 Tom Tromey <tromey@adacore.com>
13730
13731 * ada-typeprint.c (print_choices): Fix comment.
13732
dcc050c8
AB
137332020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
13734
13735 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
13736 previous item in the list, when the list has no items.
13737
1c33af77
TV
137382020-03-11 Tom de Vries <tdevries@suse.de>
13739
13740 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
13741 PROP_LOCLIST handling code.
13742
8c95582d
AB
137432020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
13744
13745 * buildsym-legacy.c (record_line): Pass extra parameter to
13746 record_line.
13747 * buildsym.c (buildsym_compunit::record_line): Take an extra
13748 parameter, reduce duplication in the line table, and record the
13749 is_stmt flag in the line table.
13750 * buildsym.h (buildsym_compunit::record_line): Add extra
13751 parameter.
13752 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
13753 non-statement lines.
13754 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
13755 this to the symtab builder.
13756 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
13757 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
13758 through to dwarf_record_line_1.
13759 * infrun.c (process_event_stop_test): When stepping, don't stop at
13760 a non-statement instruction, and only refresh the step info when
13761 we land in the middle of a line's range. Also add an extra
13762 comment.
13763 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
13764 field.
13765 * record-btrace.c (btrace_find_line_range): Only record lines
13766 marked as is-statement.
13767 * stack.c (frame_show_address): Show the frame address if we are
13768 in a non-statement sal.
13769 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
13770 (maintenance_print_one_line_table): Print a header for the is_stmt
13771 column, and include is_stmt information in the output.
13772 * symtab.c (find_pc_sect_line): Find lines marked as statements in
13773 preference to non-statements.
13774 (find_pcs_for_symtab_line): Prefer is-statement entries.
13775 (find_line_common): Likewise.
13776 * symtab.h (struct linetable_entry): Add is_stmt field.
13777 (struct symtab_and_line): Likewise.
13778 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
13779 arranging the line table.
13780
e4003a34
TV
137812020-03-07 Tom de Vries <tdevries@suse.de>
13782
13783 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
13784 DIE.
13785
e8932576
TT
137862020-03-07 Tom Tromey <tom@tromey.com>
13787
13788 * valops.c (value_literal_complex): Remove obsolete comment.
13789 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
13790 comment.
13791
29734269
SM
137922020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
13793
13794 * infrun.h: Forward-declare thread_info.
13795 (set_step_info): Add thread_info parameter, add doc.
13796 * infrun.c (set_step_info): Add thread_info parameter, move doc
13797 to header.
13798 * infrun.c (process_event_stop_test): Pass thread to
13799 set_step_info call.
13800 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
13801 set_step_info.
13802 (prepare_one_step): Add thread_info parameter, pass it to
13803 set_step_frame and prepare_one_step (recursive) call.
13804 (step_1): Pass thread to prepare_one_step call.
13805 (step_command_fsm::should_stop): Pass thread to
13806 prepare_one_step.
13807 (until_next_fsm): Pass thread to set_step_frame call.
13808 (finish_command): Pass thread to set_step_info call.
13809
b7d64b29
HD
138102020-03-06 Hannes Domani <ssbssa@yahoo.de>
13811
13812 * windows-tdep.c (windows_solib_create_inferior_hook):
13813 Check if inferior is running.
13814
09f2921c
TV
138152020-03-06 Tom de Vries <tdevries@suse.de>
13816
13817 * NEWS: Fix "the the".
13818 * ctfread.c: Same.
13819
fd760e79
TV
138202020-03-06 Tom de Vries <tdevries@suse.de>
13821
13822 * psymtab.c (psymtab_to_symtab): Don't print "done.".
13823
20ea4a60
AB
138242020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13825
13826 * .dir-locals.el: Add a comment referencing the other copies of
13827 this file.
13828
0afbabf0
JB
138292020-03-05 John Baldwin <jhb@FreeBSD.org>
13830
13831 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
13832 psargs.
13833
842806cb
TBA
138342020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13835
13836 * .gitattributes: New file.
13837
be1e3d3e
TT
138382020-03-04 Tom Tromey <tom@tromey.com>
13839
13840 * symmisc.c (print_symbol_bcache_statistics)
13841 (print_objfile_statistics): Update.
13842 * symfile.c (allocate_symtab): Use intern.
13843 * psymtab.c (partial_symtab::partial_symtab): Use intern.
13844 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
13845 macro_cache>: Remove.
13846 <string_cache>: New member.
13847 (struct objfile) <intern>: New methods.
13848 * elfread.c (elf_symtab_read): Use intern.
13849 * dwarf2/read.c (fixup_go_packaging): Intern package name.
13850 (dwarf2_compute_name, dwarf2_physname)
13851 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
13852 names.
13853 (guess_partial_die_structure_name): Update.
13854 (partial_die_info::fixup): Intern name.
13855 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
13856 name.
13857 (dwarf2_name): Intern name. Update.
13858 * buildsym.c (buildsym_compunit::get_macro_table): Use
13859 string_cache.
13860
4e7625fd
TT
138612020-03-04 Tom Tromey <tom@tromey.com>
13862
13863 * jit.c (bfd_open_from_target_memory): Make "target" const.
13864 * corefile.c (gnutarget): Now const.
13865 * gdbcore.h (gnutarget): Now const.
13866
46f9f931
HD
138672020-03-04 Hannes Domani <ssbssa@yahoo.de>
13868
13869 * NEWS: Mention support for WOW64 processes.
13870 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
13871 (amd64_windows_segment_register_p): Remove static.
13872 (_initialize_amd64_windows_nat): Update.
13873 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
13874 * i386-windows-nat.c (context_offset): Update.
13875 (i386_mappings): Rename and remove static.
13876 (i386_windows_segment_register_p): Remove static.
13877 (_initialize_i386_windows_nat): Update.
13878 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
13879 (STATUS_WX86_SINGLE_STEP): New macro.
13880 (EnumProcessModulesEx): New macro.
13881 (Wow64SuspendThread): New macro.
13882 (Wow64GetThreadContext): New macro.
13883 (Wow64SetThreadContext): New macro.
13884 (Wow64GetThreadSelectorEntry): New macro.
13885 (windows_set_context_register_offsets): Add static.
13886 (windows_set_segment_register_p): Likewise.
13887 (windows_add_thread): Adapt for WOW64 processes.
13888 (windows_fetch_one_register): Likewise.
13889 (windows_nat_target::fetch_registers): Likewise.
13890 (windows_store_one_register): Likewise.
13891 (display_selector): Likewise.
13892 (display_selectors): Likewise.
13893 (handle_exception): Likewise.
13894 (windows_continue): Likewise.
13895 (windows_nat_target::resume): Likewise.
13896 (windows_add_all_dlls): Likewise.
13897 (do_initial_windows_stuff): Likewise.
13898 (windows_nat_target::attach): Likewise.
13899 (windows_get_exec_module_filename): Likewise.
13900 (windows_nat_target::create_inferior): Likewise.
13901 (windows_xfer_siginfo): Likewise.
13902 (_initialize_loadable): Initialize Wow64SuspendThread,
13903 Wow64GetThreadContext, Wow64SetThreadContext,
13904 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
13905 * windows-nat.h (windows_set_context_register_offsets):
13906 Remove declaration.
13907 (windows_set_segment_register_p): Likewise.
13908 (i386_windows_segment_register_p): Add declaration.
13909 (amd64_windows_segment_register_p): Likewise.
13910
440cf44e
LM
139112020-03-04 Luis Machado <luis.machado@linaro.org>
13912
13913 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
13914 in "info registers" for AArch64/ARM.
13915
13916 The change caused "info registers" to not print GPR's.
13917
13918 gdb/ChangeLog:
13919
13920 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
13921
13922 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13923 when reg->group is empty and reggroup is not.
13924
1009d92f
TT
139252020-03-03 Tom Tromey <tromey@adacore.com>
13926
13927 * dwarf2/frame.c (struct dwarf2_frame_cache)
13928 <checked_tailcall_bottom, entry_cfa_sp_offset,
13929 entry_cfa_sp_offset_p>: Remove members.
13930 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
13931 (dwarf2_frame_prev_register): Don't call
13932 dwarf2_tailcall_sniffer_first.
13933 (dwarf2_append_unwinders): Don't append tailcall unwinder.
13934 * frame-unwind.c (add_unwinder): New fuction.
13935 (frame_unwind_init): Use it. Add tailcall unwinder.
13936
5e5d66b6
AB
139372020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
13938 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13939
13940 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
13941 value should be printed as true.
13942
584cf46d
HD
139432020-03-03 Hannes Domani <ssbssa@yahoo.de>
13944
13945 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
13946 (windows_init_abi): Set and use windows_so_ops.
13947
7b973adc
SDJ
139482020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
13949
13950 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
13951 when verifying if dealing with a convenience variable.
13952
bb7b70ab
LM
139532020-03-03 Luis Machado <luis.machado@linaro.org>
13954
13955 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
13956
9822cb57
SM
139572020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13958
13959 * infrun.c (gdbarch_supports_displaced_stepping): New.
13960 (use_displaced_stepping): Break up conditions in smaller pieces.
13961 Use gdbarch_supports_displaced_stepping.
13962 (displaced_step_prepare_throw): Use
13963 gdbarch_supports_displaced_stepping.
13964
63e163f2
AB
139652020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13966
13967 * NEWS: Mention new behaviour of the history filename.
13968 * top.c (write_history_p): Add comment.
13969 (show_write_history_p): Add header comment, give a different
13970 message when history writing is on, but the history filename is
13971 empty.
13972 (history_filename): Add comment.
13973 (history_filename_empty): New function.
13974 (show_history_filename): Add header comment, give a different
13975 message when the filename is empty.
13976 (init_history): Compare history_filename against nullptr, and only
13977 read history if the filename is not empty.
13978 (set_history_filename): Add header comment, and only make
13979 non-empty filenames absolute.
13980 (init_main): Make the filename argument to 'set history filename'
13981 optional.
13982
81b86b97
CB
139832020-03-02 Christian Biesinger <cbiesinger@google.com>
13984
13985 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
13986 (arm_supply_vfpregset): ...this, and update to use VFP registers.
13987 (fetch_fp_register): Update.
13988 (fetch_fp_regs): Update.
13989 (store_fp_register): Update.
13990 (store_fp_regs): Update.
13991 (arm_netbsd_nat_target::read_description): New function.
13992 (fetch_elfcore_registers): Update.
13993
24ed6739
AB
139942020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13995
13996 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
13997 general_thread if the stop reply is missing a thread-id.
13998 (remote_target::process_stop_reply): Use the first non-exited
13999 thread if the target didn't pass a thread-id.
14000 * infrun.c (do_target_wait): Move call to
14001 switch_to_inferior_no_thread to ....
14002 (do_target_wait_1): ... here.
14003
a84bb2a0
JT
140042020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
14005
14006 * debuginfod-support.c: Include defs.h first.
14007
658dadf0
TV
140082020-02-28 Tom de Vries <tdevries@suse.de>
14009
14010 * symfile.c (set_initial_language): Use default language for lookup.
14011
4ebe4877
SM
140122020-02-28 Simon Marchi <simon.marchi@efficios.com>
14013
14014 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
14015 reader variable, pass `this` to read_cutu_die_from_dwo.
14016
e5da1139
AM
140172020-02-27 Aaron Merey <amerey@redhat.com>
14018
14019 * source.c (open_source_file): Check for nullptr when computing
14020 srcpath.
14021
317f7127
TT
140222020-02-27 Tom Tromey <tromey@adacore.com>
14023
14024 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
14025 member.
14026 (dwarf2_add_field): Don't update nfields.
14027 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
14028
3104d9ee
AB
140292020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14030
14031 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
14032 abs.
14033
b83470bf
TT
140342020-02-26 Tom Tromey <tom@tromey.com>
14035
14036 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
14037 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
14038 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
14039 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
14040 per_cu_data.
14041
edfe0a0c
TT
140422020-02-26 Tom Tromey <tom@tromey.com>
14043
14044 * dwarf2/index-write.c (psym_index_map): Change type.
14045 (add_address_entry_worker, write_one_signatured_type)
14046 (recursively_count_psymbols, recursively_write_psymbols)
14047 (class debug_names, psyms_seen_size, write_gdbindex)
14048 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
14049
0d79cdc4
AM
140502020-02-26 Aaron Merey <amerey@redhat.com>
14051
14052 * Makefile.in: Handle optional debuginfod support.
14053 * NEWS: Update.
14054 * README: Add --with-debuginfod summary.
14055 * config.in: Regenerate.
14056 * configure: Regenerate.
14057 * configure.ac: Handle optional debuginfod support.
14058 * debuginfod-support.c: debuginfod helper functions.
14059 * debuginfod-support.h: Ditto.
14060 * doc/gdb.texinfo: Add --with-debuginfod to configure options
14061 summary.
14062 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
14063 when a dwz file cannot be found.
14064 * elfread.c (elf_symfile_read): Query debuginfod servers when a
14065 debuginfo file cannot be found.
14066 * source.c (open_source_file): Query debuginfod servers when a
14067 source file cannot be found.
14068 * top.c (print_gdb_configuration): Include
14069 --{with,without}-debuginfod in the output.
14070
b65ce565
JG
140712020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
14072
14073 * thread.c (thr_try_catch_cmd): Print thread name.
14074
d4c9a4f8
SM
140752020-02-26 Simon Marchi <simon.marchi@efficios.com>
14076
14077 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
14078 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14079 dwarf2_fetch_die_type_sect_off): Move to...
14080 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
14081 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14082 dwarf2_fetch_die_type_sect_off): ... here.
14083 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
14084 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14085 dwarf2_fetch_die_type_sect_off): Move doc to header file.
14086
0dce4280
TV
140872020-02-26 Tom de Vries <tdevries@suse.de>
14088
14089 PR gdb/25603
14090 * symfile.c (set_initial_language): Exit-early if
14091 language_mode == language_mode_manual.
14092
450a1bfc
SM
140932020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14094
14095 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
14096 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
14097 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
14098
9e80cfa1
AB
140992020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
14100
14101 * gdbtypes.c (create_array_type_with_stride): Handle negative
14102 array strides.
14103 * valarith.c (value_subscripted_rvalue): Likewise.
14104
09624f1f
LM
141052020-02-25 Luis Machado <luis.machado@linaro.org>
14106
14107 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
14108
8cb5117c
SM
141092020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14110
14111 * loc.h (dwarf2_get_die_type): Move to...
14112 * read.h (dwarf2_get_die_type): ... here.
14113 * read.c (dwarf2_get_die_type): Move doc to header.
14114
c325c44e
JB
141152020-02-25 Joel Brobecker <brobecker@adacore.com>
14116
14117 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
14118 'gnulib/Makefile.in' to the list.
14119
4ac93832
TT
141202020-02-24 Tom Tromey <tom@tromey.com>
14121
14122 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
14123 Remove.
14124 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
14125 XOBNEWVEC.
14126
197400e8
TT
141272020-02-24 Tom Tromey <tom@tromey.com>
14128
14129 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
14130 New method.
14131 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
14132 (dw2_do_instantiate_symtab, dw2_get_file_names)
14133 (build_type_psymtab_dependencies, load_full_type_unit): Update.
14134
76935768
TT
141352020-02-24 Tom Tromey <tom@tromey.com>
14136
14137 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
14138 make_scoped_restore.
14139 (dwarf2_psymtab::read_symtab): Don't clear
14140 reading_partial_symbols.
14141
a88ef40d
TV
141422020-02-24 Tom de Vries <tdevries@suse.de>
14143
14144 PR gdb/25592
14145 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
14146
c9af6521
TV
141472020-02-24 Tom de Vries <tdevries@suse.de>
14148
14149 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
14150 commands layout next/prev/regs.
14151
5707a07a
TT
141522020-02-22 Tom Tromey <tom@tromey.com>
14153
14154 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
14155 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
14156
3b0fb49e
TT
141572020-02-22 Tom Tromey <tom@tromey.com>
14158
14159 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
14160
283be8bf
TT
141612020-02-22 Tom Tromey <tom@tromey.com>
14162
14163 * tui/tui-win.c (_initialize_tui_win): Add usage text.
14164 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
14165 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
14166 * tui/tui.c (_initialize_tui): Add usage text.
14167
ca793b96
TT
141682020-02-22 Tom Tromey <tom@tromey.com>
14169
14170 * tui/tui-win.c (tui_set_focus_command)
14171 (tui_set_win_height_command): Use error_no_arg.
14172 (_initialize_tui_win): Update help text.
14173 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
14174
432b5c40
TT
141752020-02-22 Tom Tromey <tom@tromey.com>
14176
14177 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
14178 * tui/tui-disasm.h (struct tui_disasm_window)
14179 <display_start_addr>: Declare.
14180 * tui/tui-source.h (struct tui_source_window)
14181 <display_start_addr>: Declare.
14182 * tui/tui-winsource.h (struct tui_source_window_base)
14183 <show_source_line, display_start_addr>: New methods.
14184 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
14185 Rename and move to protected section.
14186 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
14187 (tui_source_window_base::do_erase_source_content): Update.
14188 (tui_source_window_base::show_source_line): Now a method.
14189 (tui_source_window_base::show_source_content)
14190 (tui_source_window_base::tui_source_window_base)
14191 (tui_source_window_base::rerender)
14192 (tui_source_window_base::refill)
14193 (tui_source_window_base::do_scroll_horizontal)
14194 (tui_source_window_base::set_is_exec_point_at)
14195 (tui_source_window_base::update_breakpoint_info)
14196 (tui_source_window_base::update_exec_info): Update.
14197 * tui/tui-source.c (tui_source_window::set_contents)
14198 (tui_source_window::showing_source_p)
14199 (tui_source_window::do_scroll_vertical)
14200 (tui_source_window::location_matches_p)
14201 (tui_source_window::line_is_displayed): Update.
14202 (tui_source_window::display_start_addr): New method.
14203 * tui/tui-disasm.c (tui_disasm_window::set_contents)
14204 (tui_disasm_window::do_scroll_vertical)
14205 (tui_disasm_window::location_matches_p): Update.
14206 (tui_disasm_window::display_start_addr): New method.
14207
01b1af32
TT
142082020-02-22 Tom Tromey <tom@tromey.com>
14209
14210 * NEWS: Add entry for gdb.register_window_type.
14211 * tui/tui-layout.h (window_factory): New typedef.
14212 (tui_register_window): Declare.
14213 * tui/tui-layout.c (saved_tui_windows): New global.
14214 (tui_apply_current_layout): Use it.
14215 (tui_register_window): New function.
14216 * python/python.c (do_start_initialization): Call
14217 gdbpy_initialize_tui.
14218 (python_GdbMethods): Add "register_window_type" function.
14219 * python/python-internal.h (gdbpy_register_tui_window)
14220 (gdbpy_initialize_tui): Declare.
14221 * python/py-tui.c: New file.
14222 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
14223
fc96d20b
TT
142242020-02-22 Tom Tromey <tom@tromey.com>
14225
14226 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
14227
935c78c0
TT
142282020-02-22 Tom Tromey <tom@tromey.com>
14229
14230 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
14231 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
14232 * tui/tui-data.c (tui_set_win_with_focus): Remove.
14233 (tui_set_win_focus_to): Move from tui-win.c.
14234
0240c8f1
TT
142352020-02-22 Tom Tromey <tom@tromey.com>
14236
14237 * tui/tui-layout.c (make_standard_window, get_locator_window): New
14238 functions.
14239 (known_window_types): New global.
14240 (tui_get_window_by_name): Reimplement.
14241 (initialize_known_windows): New function.
14242 (validate_window_name): Rewrite.
14243 (_initialize_tui_layout): Call initialize_known_windows.
14244
fdb01f0c
TT
142452020-02-22 Tom Tromey <tom@tromey.com>
14246
14247 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
14248 Remove constants.
14249 * tui/tui-winsource.h (struct tui_source_window_base)
14250 <tui_source_window_base>: Remove parameter.
14251 * tui/tui-winsource.c
14252 (tui_source_window_base::tui_source_window_base): Remove
14253 parameter.
14254 (tui_source_window_base::refill): Update.
14255 * tui/tui-stack.h (struct tui_locator_window)
14256 <tui_locator_window>: Update.
14257 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
14258 Default the constructor.
14259 * tui/tui-regs.h (struct tui_data_item_window)
14260 <tui_data_item_window>: Default the constructor.
14261 (struct tui_data_window) <tui_data_window>: Likewise.
14262 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
14263 Default the constructor.
14264 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
14265 Default the constructor.
14266 <type>: Remove.
14267 (struct tui_win_info) <tui_win_info>: Default the constructor.
14268 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
14269 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
14270 Default the constructor.
14271
865a5aec
TT
142722020-02-22 Tom Tromey <tom@tromey.com>
14273
14274 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
14275 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
14276 * tui/tui-win.c (tui_resize_all): Don't call
14277 tui_delete_invisible_windows.
14278 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
14279 done.
14280 (tui_set_layout): Update.
14281 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
14282 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
14283 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
14284
e098d18c
TT
142852020-02-22 Tom Tromey <tom@tromey.com>
14286
14287 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
14288 correctly.
14289
eb9c8874
TT
142902020-02-22 Tom Tromey <tom@tromey.com>
14291
14292 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
14293
7eed1a8e
TT
142942020-02-22 Tom Tromey <tom@tromey.com>
14295
14296 * tui/tui-winsource.h (struct tui_source_window_iterator)
14297 <inner_iterator>: New etytypedef.
14298 <tui_source_window_iterator>: Take "end" parameter.
14299 <tui_source_window_iterator>: Take iterator.
14300 <operator*, advance>: Update.
14301 <m_iter>: Change type.
14302 <m_end>: New field.
14303 (struct tui_source_windows) <begin, end>: Update.
14304 * tui/tui-layout.c (tui_windows): New global.
14305 (tui_apply_current_layout): Clear tui_windows.
14306 (tui_layout_window::apply): Update tui_windows.
14307 * tui/tui-data.h (tui_windows): Declare.
14308 (all_tui_windows): Now inline function.
14309 (class tui_window_iterator, struct all_tui_windows): Remove.
14310
7c043ba6
TT
143112020-02-22 Tom Tromey <tom@tromey.com>
14312
14313 PR tui/17850:
14314 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
14315 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
14316 "height" argument.
14317 (class tui_layout_window) <get_sizes>: Likewise.
14318 (class tui_layout_split) <tui_layout_split>: Add "vertical"
14319 argument.
14320 <get_sizes>: Add "height" argument.
14321 <m_vertical>: New field.
14322 * tui/tui-layout.c (tui_layout_split::clone): Update.
14323 (tui_layout_split::get_sizes): Add "height" argument.
14324 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
14325 (tui_new_layout_command): Parse "-horizontal".
14326 (_initialize_tui_layout): Update help string.
14327 (tui_layout_split::specification): Add "-horizontal" when needed.
14328 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
14329 argument.
14330 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
14331 New methods.
14332
6bc56648
TT
143332020-02-22 Tom Tromey <tom@tromey.com>
14334
14335 * tui/tui-layout.h (enum tui_adjust_result): New.
14336 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
14337 (class tui_layout_window) <adjust_size>: Return
14338 tui_adjust_result. Rewrite.
14339 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
14340 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
14341
c22fef7e
TT
143422020-02-22 Tom Tromey <tom@tromey.com>
14343
14344 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
14345 parameter and return types.
14346 (class tui_layout_base) <specification>: Add "depth".
14347 (class tui_layout_window) <specification>: Add "depth".
14348 (class tui_layout_split) <specification>: Add "depth".
14349 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
14350 and return types.
14351 (tui_new_layout_command): Parse sub-layouts.
14352 (_initialize_tui_layout): Update help string.
14353 (tui_layout_window::specification): Add "depth".
14354 (add_layout_command): Update.
14355
ee325b61
TT
143562020-02-22 Tom Tromey <tom@tromey.com>
14357
14358 * NEWS: Add "tui new-layout" item.
14359 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
14360 Add new-layout command to help text.
14361 (validate_window_name): New function.
14362 (tui_new_layout_command): New function.
14363 (_initialize_tui_layout): Register "new-layout".
14364 (tui_layout_window::specification): New method.
14365 (tui_layout_window::specification): New method.
14366 * tui/tui-layout.h (class tui_layout_base) <specification>: New
14367 method.
14368 (class tui_layout_window) <specification>: New method.
14369 (class tui_layout_split) <specification>: New method.
14370
416eb92d
TT
143712020-02-22 Tom Tromey <tom@tromey.com>
14372
14373 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
14374 * tui/tui-win.c (window_name_completer): Update comment.
14375 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
14376 Declare method.
14377 (class tui_layout_window) <replace_window>: Likewise.
14378 (class tui_layout_split) <replace_window>: Likewise.
14379 (tui_set_layout): Don't declare.
14380 (tui_set_initial_layout): Declare function.
14381 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
14382 (asm_regs_layout): New globals.
14383 (tui_current_layout, show_layout): Remove.
14384 (tui_set_layout, tui_add_win_to_layout): Rewrite.
14385 (find_layout, tui_apply_layout): New function.
14386 (layout_completer): Remove.
14387 (tui_next_layout): Reimplement.
14388 (tui_next_layout_command): New function.
14389 (tui_set_initial_layout, tui_prev_layout_command): New functions.
14390 (tui_regs_layout): Reimplement.
14391 (tui_regs_layout_command): New function.
14392 (extract_display_start_addr): Rewrite.
14393 (next_layout, prev_layout): Remove.
14394 (tui_layout_window::replace_window): New method.
14395 (tui_layout_split::replace_window): New method.
14396 (destroy_layout): New function.
14397 (layout_list): New global.
14398 (add_layout_command): New function.
14399 (initialize_layouts): Update.
14400 (tui_layout_command): New function.
14401 (_initialize_tui_layout): Install "layout" commands.
14402 * tui/tui-data.h (enum tui_layout_type): Remove.
14403 (tui_current_layout): Don't declare.
14404
0dbc2fc7
TT
144052020-02-22 Tom Tromey <tom@tromey.com>
14406
14407 * tui/tui-regs.c (tui_reg_layout): Remove.
14408 (tui_reg_command): Use tui_regs_layout.
14409 * tui/tui-layout.h (tui_reg_command): Declare.
14410 * tui/tui-layout.c (tui_reg_command): New function.
14411
5afe342e
TT
144122020-02-22 Tom Tromey <tom@tromey.com>
14413
14414 * tui/tui.c (tui_rl_delete_other_windows): Call
14415 tui_remove_some_windows.
14416 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
14417 Declare method.
14418 (class tui_layout_window) <remove_windows>: New method.
14419 (class tui_layout_split) <remove_windows>: Declare.
14420 (tui_remove_some_windows): Declare.
14421 * tui/tui-layout.c (tui_remove_some_windows): New function.
14422 (tui_layout_split::remove_windows): New method.
14423
427326a8
TT
144242020-02-22 Tom Tromey <tom@tromey.com>
14425
14426 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
14427 * tui/tui-layout.h (tui_next_layout): Declare.
14428 * tui/tui-layout.c (tui_next_layout): New function.
14429
3fe12b6d
TT
144302020-02-22 Tom Tromey <tom@tromey.com>
14431
14432 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
14433 correct coordinates.
14434
59b8b5d2
TT
144352020-02-22 Tom Tromey <tom@tromey.com>
14436
14437 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
14438 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
14439 DATA_WIN case.
14440
2a3d458b
TT
144412020-02-22 Tom Tromey <tom@tromey.com>
14442
14443 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
14444 TUI_DISASM_WIN, not tui_win_list.
14445
3f0cbb04
TT
144462020-02-22 Tom Tromey <tom@tromey.com>
14447
14448 * valprint.c (generic_val_print_enum_1)
14449 (val_print_type_code_flags): Style member names.
14450 * rust-lang.c (val_print_struct, rust_print_enum)
14451 (rust_print_struct_def, rust_internal_print_type): Style member
14452 names.
14453 * p-valprint.c (pascal_object_print_value_fields): Style member
14454 names. Only call fprintf_symbol_filtered for static members.
14455 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
14456 * f-valprint.c (f_val_print): Style member names.
14457 * f-typeprint.c (f_type_print_base): Style member names.
14458 * cp-valprint.c (cp_print_value_fields): Style member names. Only
14459 call fprintf_symbol_filtered for static members.
14460 (cp_print_class_member): Style member names.
14461 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
14462 member names.
14463 * ada-valprint.c (ada_print_scalar): Style enum names.
14464 (ada_val_print_enum): Likewise.
14465 * ada-typeprint.c (print_enum_type): Style enum names.
14466
d4d947ae
TT
144672020-02-21 Tom Tromey <tom@tromey.com>
14468
14469 * psympriv.h (struct partial_symtab): Update comment.
14470
e94e944b
TT
144712020-02-21 Tom Tromey <tromey@adacore.com>
14472
14473 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
14474 type is CORE_ADDR.
14475
1eb73179
TV
144762020-02-21 Tom de Vries <tdevries@suse.de>
14477
14478 PR gdb/25534
14479 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
14480 if dependencies[i]->user != NULL.
14481
4f180d53
AT
144822020-02-21 Ali Tamur <tamur@google.com>
14483
14484 * dwarf2/read.c (dwarf2_name): Add null check.
14485
22b6cd70
TT
144862020-02-20 Tom Tromey <tom@tromey.com>
14487
14488 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
14489 ">=", in binary search.
14490 (dwarf2_find_containing_comp_unit): New overload.
14491 (run_test): New self-test.
14492 (_initialize_dwarf2_read): Register new test.
14493
bd0cf5a6
NC
144942020-02-20 Nelson Chu <nelson.chu@sifive.com>
14495
14496 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
14497 * riscv-tdep.h: Likewise.
14498 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
14499 rv32-only CSR.
14500 * features/riscv/64bit-csr.xml: Regenerated.
14501
3f702acd
SDJ
145022020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
14503 Tom Tromey <tom@tromey.com>
14504
14505 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
14506 of 'fputc_unfiltered'.
14507 (putchar_unfiltered): Call 'fputc_unfiltered'.
14508 (fputc_unfiltered): Call 'fputs_unfiltered'.
14509
d13c7322
AB
145102020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
14511
14512 * config.in: Regenerate.
14513 * configure: Regenerate.
14514 * configure.ac: Add --with-python-libdir option.
14515 * main.c: Use WITH_PYTHON_LIBDIR.
14516
869d8950
TT
145172020-02-19 Tom Tromey <tom@tromey.com>
14518
14519 * symtab.c (general_symbol_info::compute_and_set_names): Use
14520 obstack_strndup. Simplify call to symbol_set_demangled_name.
14521
298e9637
SM
145222020-02-19 Simon Marchi <simon.marchi@efficios.com>
14523
14524 * dwarf2/read.c (allocate_signatured_type_table,
14525 allocate_dwo_unit_table, allocate_type_unit_groups_table,
14526 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
14527 Remove objfile parameter, update all callers.
14528
08410482
DE
145292020-02-19 Doug Evans <dje@google.com>
14530
14531 PR rust/25535
14532 * rust-lang.c (rust_print_enum): Apply embedded_offset to
14533 rust_enum_variant calculation.
14534
dfdeeca1
TT
145352020-02-19 Tom Tromey <tromey@adacore.com>
14536
14537 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
14538
2ef5453b
TT
145392020-02-19 Tom Tromey <tromey@adacore.com>
14540
14541 * ada-lang.c (cache_symbol): Use obstack_strdup.
14542
9f1528a1
AB
145432020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14544
14545 * configure: Regenerate.
14546
d3c22fa8
TT
145472020-02-19 Tom Tromey <tromey@adacore.com>
14548
14549 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
14550 NULL check.
14551
bf84f706
MR
145522020-02-19 Maciej W. Rozycki <macro@wdc.com>
14553
14554 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
14555
d1c9b20f
AB
145562020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14557
14558 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
14559 if GDBSERVER is not defined.
14560 (riscv_tdesc_cache): Likewise, also store const target_desc.
14561 (STATIC_IN_GDB): Define.
14562 (riscv_create_target_description): Update declaration with
14563 STATIC_IN_GDB.
14564 (riscv_lookup_target_description): New function, only define if
14565 GDBSERVER is not defined.
14566 * arch/riscv.h (riscv_create_target_description): Declare only
14567 when GDBSERVER is defined.
14568 (riscv_lookup_target_description): New declaration when GDBSERVER
14569 is not defined.
14570 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
14571 (riscv_linux_read_features): ...this, and return
14572 riscv_gdbarch_features instead of target_desc.
14573 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
14574 (riscv_linux_read_description): Rename to...
14575 (riscv_linux_read_features): ...this.
14576 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14577 Update to use riscv_gdbarch_features and
14578 riscv_lookup_target_description.
14579 * riscv-tdep.c (riscv_find_default_target_description): Use
14580 riscv_lookup_target_description instead of
14581 riscv_create_target_description.
14582
373d7ac0
SM
145832020-02-18 Simon Marchi <simon.marchi@efficios.com>
14584
14585 * valprint.c (generic_val_print_enum_1): When printing a flag
14586 enum with value 0 and there is no enumerator with value 0, print
14587 just "0" instead of "(unknown: 0x0)".
14588
b29a2df0
SM
145892020-02-18 Simon Marchi <simon.marchi@efficios.com>
14590
14591 * valprint.c (generic_val_print_enum_1): Print unknown part of
14592 flag enum in hex.
14593
6740f0cc
SM
145942020-02-18 Simon Marchi <simon.marchi@efficios.com>
14595
14596 * dwarf2/read.c (update_enumeration_type_from_children): Allow
14597 flag enums to contain duplicate enumerators.
14598 * valprint.c (generic_val_print_enum_1): Update comment.
14599
edd45eb0
SM
146002020-02-18 Simon Marchi <simon.marchi@efficios.com>
14601
14602 * dwarf2/read.c: Include "count-one-bits.h".
14603 (update_enumeration_type_from_children): If an enumerator has
14604 multiple bits set, don't treat the enumeration as a "flag enum".
14605 * valprint.c (generic_val_print_enum_1): Assert that enumerators
14606 of flag enums have 0 or 1 bit set.
14607
6d0cf446
BE
146082020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
14609
14610 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
14611 conversion.
14612 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14613 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14614 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14615 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14616 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14617
7001c1b7
SM
146182020-02-18 Simon Marchi <simon.marchi@efficios.com>
14619
14620 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
14621
fdb61c6c
SM
146222020-02-14 Simon Marchi <simon.marchi@efficios.com>
14623
14624 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
14625 displaced_step_closure_up.
14626 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14627 (struct displaced_step_closure_up):
14628 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14629 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14630 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
14631 Likewise.
14632 * gdbarch.sh (displaced_step_copy_insn): Likewise.
14633 * gdbarch.c, gdbarch.h: Re-generate.
14634 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
14635 displaced_step_closure_up.
14636 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14637 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14638 * infrun.h (displaced_step_closure_up): New type alias.
14639 (struct displaced_step_inferior_state) <step_closure>: Change
14640 type to displaced_step_closure_up.
14641 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
14642 displaced_step_closure_up.
14643 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14644
a4a38eb4
TT
146452020-02-14 Tom Tromey <tom@tromey.com>
14646
14647 * minidebug.c (gnu_debug_key): New global.
14648 (find_separate_debug_file_in_section): Use it.
14649
e8217e61
SM
146502020-02-14 Simon Marchi <simon.marchi@efficios.com>
14651
14652 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
14653 std::unique_ptr.
14654 * gdbarch.c: Re-generate.
14655 * gdbarch.h: Re-generate.
14656 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
14657 change.
14658 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
14659 type to std::unique_ptr.
14660 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14661 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14662 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14663 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14664 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
14665 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14666 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14667 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14668 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14669
d8d83535
SM
146702020-02-14 Simon Marchi <simon.marchi@efficios.com>
14671
14672 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
14673 std::unique_ptr.
14674 (displaced_step_clear): Rename to...
14675 (displaced_step_reset): ... this. Just call displaced->reset ().
14676 (displaced_step_clear_cleanup): Rename to...
14677 (displaced_step_reset_cleanup): ... this.
14678 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
14679 (displaced_step_fixup): Likewise.
14680 (resume_1): Likewise.
14681 (handle_inferior_event): Restore child's memory before calling
14682 displaced_step_fixup on the parent.
14683 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
14684 to std::unique_ptr.
14685 <step_closure>: Change type to std::unique_ptr.
14686
5f661e03
SM
146872020-02-14 Simon Marchi <simon.marchi@efficios.com>
14688
14689 * arm-tdep.c: Include count-one-bits.h.
14690 (cleanup_block_store_pc): Use count_one_bits.
14691 (cleanup_block_load_pc): Use count_one_bits.
14692 (arm_copy_block_xfer): Use count_one_bits.
14693 (thumb2_copy_block_xfer): Use count_one_bits.
14694 (thumb_copy_pop_pc_16bit): Use count_one_bits.
14695 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
14696 (thumb_get_next_pcs_raw): Use count_one_bits.
14697 (arm_get_next_pcs_raw): Use count_one_bits_l.
14698 * arch/arm.c (bitcount): Remove.
14699 * arch/arm.h (bitcount): Remove.
14700
8084e579
TT
147012020-02-14 Tom Tromey <tromey@adacore.com>
14702
14703 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
14704 Update.
14705 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
14706 * dwarf2/loc.c (call_site_find_chain_1): Return
14707 unique_xmalloc_ptr.
14708 (call_site_find_chain): Likewise.
14709
258bf0ee
RB
147102020-02-14 Richard Biener <rguenther@suse.de>
14711
14712 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
14713 on expression with division operators.
14714
f98a8458
AKS
147152020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14716
14717 * MAINTAINERS (Write After Approval): Adding myself.
14718
d1437c0e
TT
147192020-02-12 Tom Tromey <tom@tromey.com>
14720
14721 * event-loop.c (event_data, gdb_event, event_handler_func):
14722 Remove.
14723
3d4560f7
TT
147242020-02-12 Tom Tromey <tom@tromey.com>
14725
14726 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
14727 (dwarf2_frame_objfile_data): Add comment.
14728 (find_comp_unit, set_comp_unit): New functions.
14729 (dwarf2_frame_find_fde): Use find_comp_unit.
14730 (dwarf2_build_frame_info): Use set_comp_unit.
14731
21982304
TT
147322020-02-12 Tom Tromey <tom@tromey.com>
14733
14734 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
14735 (comp_unit): Don't initialize objfile.
14736 (execute_cfa_program): Add text_offset parameter.
14737 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
14738 (dwarf2_frame_cache): Update.
14739 (dwarf2_build_frame_info): Don't set "objfile" member.
14740
4debb237
TT
147412020-02-12 Tom Tromey <tom@tromey.com>
14742
14743 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
14744 (decode_frame_entry): Likewise.
14745 (dwarf2_build_frame_info): Update.
14746
0d404d44
TT
147472020-02-12 Tom Tromey <tom@tromey.com>
14748
14749 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
14750 (decode_frame_entry_1): Use the comp_unit obstack.
14751
a7a3ae5c
TT
147522020-02-12 Tom Tromey <tom@tromey.com>
14753
14754 * dwarf2/frame.c (struct comp_unit): Add initializers and
14755 constructor.
14756 (dwarf2_frame_objfile_data): Store a comp_unit.
14757 (dwarf2_frame_find_fde): Update.
14758 (dwarf2_build_frame_info): Use "new".
14759
a9d65418
TT
147602020-02-12 Tom Tromey <tom@tromey.com>
14761
14762 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
14763 (dwarf2_fde_table): Typedef for std::vector.
14764 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
14765 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
14766 (decode_frame_entry): Update.
14767 (dwarf2_build_frame_info): Use "new".
14768
7559c217
CB
147692020-02-12 Christian Biesinger <cbiesinger@google.com>
14770
14771 * arm-tdep.c (arm_gdbarch_init): Update.
14772 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
14773 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
14774 have_neon, is_m>: Change to bool.
14775
aeefc73c
CB
147762020-02-12 Christian Biesinger <cbiesinger@google.com>
14777
14778 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
14779
d27b8e5f
TT
147802020-02-12 Tom Tromey <tom@tromey.com>
14781
14782 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
14783
cd5900f3
HD
147842020-02-12 Hannes Domani <ssbssa@yahoo.de>
14785
14786 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
14787 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
14788
f056b22b
TT
147892020-02-11 Tom Tromey <tom@tromey.com>
14790
14791 * psymtab.h: Update comment.
14792
f92ff6b5
TT
147932020-02-11 Tom Tromey <tom@tromey.com>
14794
14795 * gdb_obstack.h (struct auto_obstack): Use
14796 DISABLE_COPY_AND_ASSIGN.
14797
3fd6912b
TT
147982020-02-11 Tom Tromey <tom@tromey.com>
14799
14800 * dwarf2/frame.h (struct objfile): Don't forward declare.
14801
69ed9b74
CB
148022020-02-11 Christian Biesinger <cbiesinger@google.com>
14803
14804 * cris-tdep.c (cris_supply_gregset): Change signature to match
14805 what struct regset expects.
14806 (cris_regset): New struct.
14807 (fetch_core_registers): Remove.
14808 (cris_iterate_over_regset_sections): New function.
14809 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
14810 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
14811
bda874f6
CB
148122020-02-11 Christian Biesinger <cbiesinger@google.com>
14813
14814 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
14815 registers.
14816
754e1564
CB
148172020-02-11 Christian Biesinger <cbiesinger@google.com>
14818
14819 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
14820
8ddd8e0e
SM
148212020-02-11 Simon Marchi <simon.marchi@efficios.com>
14822
14823 * configure: Re-generate.
14824
898e7f60
SM
148252020-02-11 Simon Marchi <simon.marchi@efficios.com>
14826
14827 * configure: Re-generate.
14828
58df732b
SM
148292020-02-11 Simon Marchi <simon.marchi@efficios.com>
14830
14831 * acinclude: Update warning.m4 path.
14832 * warning.m4: Move to gdbsupport.
14833
da5bd37e
TT
148342020-02-11 Tom Tromey <tromey@adacore.com>
14835
14836 * remote.c (remote_console_output): Update.
14837 * printcmd.c (printf_command): Update.
14838 * event-loop.c (gdb_wait_for_event): Update.
14839 * linux-nat.c (sigchld_handler): Update.
14840 * remote-sim.c (gdb_os_write_stdout): Update.
14841 (gdb_os_flush_stdout): Update.
14842 (gdb_os_flush_stderr): Update.
14843 (gdb_os_write_stderr): Update.
14844 * exceptions.c (print_exception): Update.
14845 * remote-fileio.c (remote_fileio_func_read): Update.
14846 (remote_fileio_func_write): Update.
14847 * tui/tui.c (tui_enable): Update.
14848 * tui/tui-interp.c (tui_interp::init): Update.
14849 * utils.c (init_page_info): Update.
14850 (putchar_unfiltered, fputc_unfiltered): Update.
14851 (gdb_flush): Update.
14852 (emit_style_escape): Update.
14853 (flush_wrap_buffer, fputs_maybe_filtered): Update.
14854 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
14855 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
14856 (stderr_file::write): Update.
14857 (stderr_file::puts): Update.
14858 * ui-file.h (ui_file_isatty, ui_file_write)
14859 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
14860 (ui_file_puts): Don't declare.
14861
85f0dd3c
TV
148622020-02-10 Tom de Vries <tdevries@suse.de>
14863
14864 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
14865 sentinel to char *.
14866
2e927613
TV
148672020-02-09 Tom de Vries <tdevries@suse.de>
14868
14869 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
14870 filename if it matches "<artificial>".
14871
6bafc845
HD
148722020-02-09 Hannes Domani <ssbssa@yahoo.de>
14873
14874 * windows-tdep.c (struct enum_value_name): New struct.
14875 (create_enum): New function.
14876 (windows_get_siginfo_type): Create and use enum types.
14877
7928d571
HD
148782020-02-09 Hannes Domani <ssbssa@yahoo.de>
14879
14880 * NEWS: Mention $_siginfo support for Windows.
14881 * windows-nat.c (handle_exception): Set siginfo_er.
14882 (windows_nat_target::mourn_inferior): Reset siginfo_er.
14883 (windows_xfer_siginfo): New function.
14884 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
14885 * windows-tdep.c (struct windows_gdbarch_data): New struct.
14886 (init_windows_gdbarch_data): New function.
14887 (get_windows_gdbarch_data): New function.
14888 (windows_get_siginfo_type): New function.
14889 (windows_init_abi): Register windows_get_siginfo_type.
14890 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
14891
6751ebae
TT
148922020-02-08 Tom Tromey <tom@tromey.com>
14893
14894 * dwarf2/read.c (class cutu_reader) <cutu_reader,
14895 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
14896 <keep>: Declare method.
14897 <m_keep>: Remove member.
14898 <~cutu_reader>: Remove.
14899 (cutu_reader::init_tu_and_read_dwo_dies): Update.
14900 (cutu_reader::cutu_reader): Update.
14901 (cutu_reader::keep): Rename from ~cutu_reader.
14902 (process_psymtab_comp_unit, build_type_psymtabs_1)
14903 (process_skeletonless_type_unit, load_partial_comp_unit)
14904 (load_full_comp_unit, dwarf2_read_addr_index)
14905 (read_signatured_type): Update.
14906
135f5437
TT
149072020-02-08 Tom Tromey <tom@tromey.com>
14908
14909 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
14910 "want_partial_unit" parameter.
14911 (process_psymtab_comp_unit): Change want_partial_unit to bool.
14912 Inline check for DW_TAG_partial_unit.
14913 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
14914
9f66ff1c
TT
149152020-02-08 Tom Tromey <tom@tromey.com>
14916
14917 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
14918 read.c.
14919 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
14920 read.c.
14921
c8a7a66f
TT
149222020-02-08 Tom Tromey <tom@tromey.com>
14923
14924 * dwarf2/read.c (read_address): Move to comp-unit.c.
14925 (dwarf2_rnglists_process, dwarf2_ranges_process)
14926 (read_attribute_value, dwarf_decode_lines_1)
14927 (var_decode_location, decode_locdesc): Update.
14928 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
14929 read.c. Remove "cu" parameter.
14930 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
14931 method.
14932
8266302d
TT
149332020-02-08 Tom Tromey <tom@tromey.com>
14934
14935 * dwarf2/read.c (read_attribute_value, read_indirect_string)
14936 (read_indirect_line_string): Update.
14937 * dwarf2/comp-unit.c (read_offset): Remove.
14938 (read_comp_unit_head): Update.
14939 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
14940 method.
14941 (read_offset): Don't declare.
14942
4057dfde
TT
149432020-02-08 Tom Tromey <tom@tromey.com>
14944
14945 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
14946 * dwarf2/read.c (struct comp_unit_head): Move to
14947 dwarf2/comp-unit.h.
14948 (enum class rcuh_kind): Move to comp-unit.h.
14949 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
14950 (read_comp_unit_head, error_check_comp_unit_head)
14951 (read_and_check_comp_unit_head): Move to comp-unit.c.
14952 (read_offset, dwarf_unit_type_name): Likewise.
14953 (create_debug_type_hash_table, read_cutu_die_from_dwo)
14954 (cutu_reader::cutu_reader, read_call_site_scope)
14955 (find_partial_die, follow_die_offset): Update.
14956 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
14957
24aa364d
TT
149582020-02-08 Tom Tromey <tom@tromey.com>
14959
14960 * dwarf2/read.c (read_offset_1): Move to leb.c.
14961 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
14962 (dwarf_decode_macro_bytes): Update.
14963 * dwarf2/leb.c (read_offset): Rename; move from read.c.
14964 * dwarf2/leb.h (read_offset): Declare.
14965
2c7d5afc
TT
149662020-02-08 Tom Tromey <tom@tromey.com>
14967
14968 * dwarf2/read.c (dwarf2_section_size): Remove.
14969 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
14970 Update.
14971 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
14972
4075cb26
TT
149732020-02-08 Tom Tromey <tom@tromey.com>
14974
14975 * dwarf2/read.c (read_initial_length): Move to leb.c.
14976 * dwarf2/leb.h (read_initial_length): Declare.
14977 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
14978 handle_nonstd parameter.
14979 * dwarf2/frame.c (read_initial_length): Remove.
14980 (decode_frame_entry_1): Update.
14981
09ba997f
TT
149822020-02-08 Tom Tromey <tom@tromey.com>
14983
14984 * dwarf2/loc.c (dwarf2_find_location_expression)
14985 (dwarf_evaluate_loc_desc::get_tls_address)
14986 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
14987 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
14988 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
14989 (dwarf2_compile_property_to_c)
14990 (dwarf2_loc_desc_get_symbol_read_needs)
14991 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
14992 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
14993 (loclist_describe_location, loclist_tracepoint_var_ref)
14994 (loclist_generate_c_location): Update.
14995 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
14996 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
14997 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
14998 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
14999 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
15000 (dwarf2_per_cu_data::addr_size)
15001 (dwarf2_per_cu_data::ref_addr_size)
15002 (dwarf2_per_cu_data::text_offset)
15003 (dwarf2_per_cu_data::addr_type): Now methods.
15004 (per_cu_header_read_in): Make per_cu "const".
15005 (dwarf2_version): Remove.
15006 (dwarf2_per_cu_data::int_type): Now a method.
15007 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
15008 (set_die_type, read_array_type, read_subrange_index_type)
15009 (read_tag_string_type, read_subrange_type): Update.
15010 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
15011 offset_size, ref_addr_size, text_offset, addr_type, version,
15012 objfile, int_type, addr_sized_int_type>: Declare methods.
15013
96c738c0
TT
150142020-02-08 Tom Tromey <tom@tromey.com>
15015
15016 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
15017 Move earlier.
15018
8fdd972c
TT
150192020-02-08 Tom Tromey <tom@tromey.com>
15020
15021 * dwarf2/read.h (dwarf_line_debug): Declare.
15022 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
15023 * dwarf2/read.c: Move line_header code to new files.
15024 (dwarf_line_debug): No longer static.
15025 * dwarf2/line-header.c: New file.
15026 * dwarf2/line-header.h: New file.
15027
03075812
TT
150282020-02-08 Tom Tromey <tom@tromey.com>
15029
15030 * dwarf2/read.c (struct line_header) <file_full_name,
15031 file_file_name>: Return unique_xmalloc_ptr.
15032 (line_header::file_file_name): Update.
15033 (line_header::file_full_name): Update.
15034 (dw2_get_file_names_reader): Update.
15035 (macro_start_file): Update.
15036
bb822404
TT
150372020-02-08 Tom Tromey <tom@tromey.com>
15038
15039 * dwarf2/read.c (struct line_header) <file_full_name,
15040 file_file_name>: Declare methods.
15041 (dw2_get_file_names_reader): Update.
15042 (file_file_name): Now a method.
15043 (file_full_name): Likewise.
15044 (macro_start_file): Update.
15045
009b64fc
TT
150462020-02-08 Tom Tromey <tom@tromey.com>
15047
15048 * dwarf2/read.c (dwarf_always_disassemble)
15049 (show_dwarf_always_disassemble): Move to loc.c.
15050 (_initialize_dwarf2_read): Move "always-disassemble" registration
15051 to loc.c.
15052 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
15053 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
15054 static.
15055 (show_dwarf_always_disassemble): Move from read.c.
15056 (_initialize_dwarf2loc): Move always-disassemble from read.c.
15057
5895093f
TT
150582020-02-08 Tom Tromey <tom@tromey.com>
15059
15060 * dwarf2/read.c (~dwarf2_per_objfile): Update.
15061 (create_quick_file_names_table): Return htab_up.
15062 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
15063 Update.
15064 * dwarf2/read.h (struct dwarf2_per_objfile)
15065 <quick_file_names_table>: Now htab_up.
15066
b3b32279
TT
150672020-02-08 Tom Tromey <tom@tromey.com>
15068
15069 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
15070
1d33d811
TT
150712020-02-08 Tom Tromey <tom@tromey.com>
15072
15073 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
15074 Rewrite.
15075 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
15076 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
15077 (abbrev_table::abbrev_table): No longer inline.
15078 (ABBREV_HASH_SIZE): Remove.
15079 (abbrev_table::m_abbrevs): Now an htab_up.
15080
86de1d91
TT
150812020-02-08 Tom Tromey <tom@tromey.com>
15082
15083 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
15084 (cutu_reader): Update.
15085 (build_type_psymtabs_1): Update.
15086 * dwarf2/abbrev.c (abbrev_table::read): Rename.
15087 (abbrev_table::alloc_abbrev): Update.
15088 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
15089 (abbrev_table::read): New static method, renamed from
15090 abbrev_table_read_table.
15091 (abbrev_table::alloc_abbrev)
15092 (abbrev_table::add_abbrev): Now private.
15093 (abbrev_table::abbrev_table): Now private.
15094 (abbrev_table::m_abbrev_obstack): Now private. Rename.
15095
0335378b
TT
150962020-02-08 Tom Tromey <tom@tromey.com>
15097
15098 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
15099 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
15100 htab_up.
15101
48b490f2
TT
151022020-02-08 Tom Tromey <tom@tromey.com>
15103
15104 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
15105 htab_up.
15106 (lookup_dwo_unit_in_dwp): Update.
15107 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
15108 on obstack.
15109
bc68fb19
TT
151102020-02-08 Tom Tromey <tom@tromey.com>
15111
15112 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
15113 obstack.
15114
d15acc42
TT
151152020-02-08 Tom Tromey <tom@tromey.com>
15116
15117 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
15118 line_header_hash.
15119 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
15120 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
15121 Change type to htab_up.
15122
eaa5fa8b
TT
151232020-02-08 Tom Tromey <tom@tromey.com>
15124
15125 * dwarf2/read.c (allocate_type_unit_groups_table): Return
15126 htab_up. Don't allocate on obstack.
15127 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
15128 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
15129 Change type to htab_up.
15130
b0b6a987
TT
151312020-02-08 Tom Tromey <tom@tromey.com>
15132
15133 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
15134 Change type to htab_up.
15135 * dwarf2/read.c (create_signatured_type_table_from_index)
15136 (create_signatured_type_table_from_debug_names)
15137 (create_all_type_units, add_type_unit)
15138 (lookup_dwo_signatured_type, lookup_signatured_type)
15139 (process_skeletonless_type_unit): Update.
15140 (create_debug_type_hash_table, create_debug_types_hash_table):
15141 Change type of types_htab.
15142 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
15143 htab_up. Don't allocate on obstack.
15144 (create_cus_hash_table): Change type of cus_htab parameter.
15145 (struct dwo_file) <cus, tus>: Now htab_up.
15146 (lookup_dwo_signatured_type, lookup_dwo_cutu)
15147 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
15148 (queue_and_load_all_dwo_tus): Update.
15149 * dwarf2/index-write.c (write_gdbindex): Update.
15150 (write_debug_names): Update.
15151
39856def
TT
151522020-02-08 Tom Tromey <tom@tromey.com>
15153
15154 * dwarf2/read.h (struct dwarf2_queue_item): Move from
15155 dwarf2/read.c. Remove "next" member. Add constructor ntad
15156 destructor.
15157 (struct dwarf2_per_objfile) <queue>: New member.
15158 * dwarf2/read.c (struct dwarf2_queue_item): Move to
15159 dwarf2/read.h.
15160 (dwarf2_queue, dwarf2_queue_tail): Remove.
15161 (class dwarf2_queue_guard): Add parameter to constructor. Use
15162 DISABLE_COPY_AND_ASSIGN.
15163 <m_per_objfile>: New member.
15164 <~dwarf2_queue_guard>: Rewrite.
15165 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
15166 Update.
15167 (~dwarf2_queue_item): New.
15168
3e225074
TT
151692020-02-08 Tom Tromey <tom@tromey.com>
15170
15171 * dwarf2/read.c (struct die_info) <has_children>: New member.
15172 (dw2_get_file_names_reader): Remove has_children.
15173 (dw2_get_file_names): Update.
15174 (read_cutu_die_from_dwo): Remove has_children.
15175 (cutu_reader::init_tu_and_read_dwo_dies)
15176 (cutu_reader::cutu_reader): Update.
15177 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
15178 Remove has_children.
15179 (build_type_psymtabs_1, process_skeletonless_type_unit)
15180 (load_partial_comp_unit, load_full_comp_unit): Update.
15181 (create_dwo_cu_reader): Remove has_children.
15182 (create_cus_hash_table, read_die_and_children): Update.
15183 (read_full_die_1,read_full_die): Remove has_children.
15184 (read_signatured_type): Update.
15185 (class cutu_reader) <has_children>: Remove.
15186
82ca8957
TT
151872020-02-08 Tom Tromey <tom@tromey.com>
15188
15189 * dwarf2/expr.c: Rename from dwarf2expr.c.
15190 * dwarf2/expr.h: Rename from dwarf2expr.h.
15191 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
15192 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
15193 * dwarf2/frame.c: Rename from dwarf2-frame.c.
15194 * dwarf2/frame.h: Rename from dwarf2-frame.h.
15195 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
15196 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
15197 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
15198 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
15199 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
15200 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
15201 * dwarf2/loc.c: Rename from dwarf2loc.c.
15202 * dwarf2/loc.h: Rename from dwarf2loc.h.
15203 * dwarf2/read.c: Rename from dwarf2read.c.
15204 * dwarf2/read.h: Rename from dwarf2read.h.
15205 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
15206 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
15207 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
15208 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
15209 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
15210 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
15211 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
15212 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
15213 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
15214 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
15215 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
15216 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
15217 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
15218 Update.
15219 * Makefile.in (COMMON_SFILES): Update.
15220 (HFILES_NO_SRCDIR): Update.
15221
9e35d499
TT
152222020-02-08 Tom Tromey <tom@tromey.com>
15223
15224 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
15225 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
15226
1eba2311
TT
152272020-02-08 Tom Tromey <tom@tromey.com>
15228
15229 * dwarf2read.h (struct die_info): Don't declare.
15230
e41c2da2
TT
152312020-02-08 Tom Tromey <tom@tromey.com>
15232
15233 * dwarf2read.h (die_info_ptr): Remove typedef.
15234
4fc6c0d5
TT
152352020-02-08 Tom Tromey <tom@tromey.com>
15236
15237 * dwarf2read.c (read_call_site_scope)
15238 (handle_data_member_location, dwarf2_add_member_fn)
15239 (mark_common_block_symbol_computed, read_common_block)
15240 (attr_to_dynamic_prop, partial_die_info::read)
15241 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
15242 (dwarf2_symbol_mark_computed, set_die_type): Update.
15243 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
15244 method.
15245 (attr_form_is_block): Don't declare.
15246 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
15247
cd6c91b4
TT
152482020-02-08 Tom Tromey <tom@tromey.com>
15249
15250 * dwarf2read.c (dwarf2_find_base_address, )
15251 (read_call_site_scope, rust_containing_type)
15252 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
15253 (handle_data_member_location, dwarf2_add_member_fn)
15254 (get_alignment, read_structure_type, process_structure_scope)
15255 (mark_common_block_symbol_computed, read_common_block)
15256 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
15257 (partial_die_info::read, read_attribute_value, new_symbol)
15258 (lookup_die_type, dwarf2_get_ref_die_offset)
15259 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
15260 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
15261 (dwarf2_symbol_mark_computed): Update.
15262 * dwarf2/attribute.h (struct attribute) <value_as_address,
15263 form_is_section_offset, form_is_constant, form_is_ref>: Declare
15264 methods.
15265 (value_as_address, attr_form_is_section_offset)
15266 (attr_form_is_constant, attr_form_is_ref): Don't declare.
15267 * dwarf2/attribute.c (attribute::value_as_address)
15268 (attribute::form_is_section_offset, attribute::form_is_constant)
15269 (attribute::form_is_ref): Now methods.
15270
162dce55
TT
152712020-02-08 Tom Tromey <tom@tromey.com>
15272
15273 * dwarf2read.c (struct attribute, DW_STRING)
15274 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
15275 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
15276 (attr_form_is_block, attr_form_is_section_offset)
15277 (attr_form_is_constant, attr_form_is_ref): Move.
15278 * dwarf2/attribute.h: New file.
15279 * dwarf2/attribute.c: New file, from dwarf2read.c.
15280 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
15281
3054dd54
TT
152822020-02-08 Tom Tromey <tom@tromey.com>
15283
15284 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
15285 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
15286 Move.
15287 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
15288 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
15289 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
15290 abbrev.c.
15291 * dwarf2/abbrev.h: New file.
15292 * dwarf2/abbrev.c: New file, from dwarf2read.c.
15293 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
15294
96b79293
TT
152952020-02-08 Tom Tromey <tom@tromey.com>
15296
15297 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
15298 (dwarf2_section_size, dwarf2_get_section_info)
15299 (create_signatured_type_table_from_debug_names)
15300 (create_addrmap_from_aranges, read_debug_names_from_section)
15301 (get_gdb_index_contents_from_section, read_comp_unit_head)
15302 (error_check_comp_unit_head, read_abbrev_offset)
15303 (create_debug_type_hash_table, init_cu_die_reader)
15304 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
15305 (read_comp_units_from_section, create_cus_hash_table)
15306 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
15307 (create_dwp_v2_section, dwarf2_rnglists_process)
15308 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
15309 (abbrev_table_read_table, read_indirect_string_at_offset_from)
15310 (read_indirect_string_from_dwz, read_addr_index_1)
15311 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
15312 (dwarf_decode_macro_bytes, dwarf_decode_macros)
15313 (fill_in_loclist_baton): Update.
15314 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
15315 get_containing_section, get_bfd_owner, get_bfd_section,
15316 get_file_name, get_id, get_flags, empty, read>: Declare methods.
15317 (dwarf2_read_section, get_section_name, get_section_file_name)
15318 (get_containing_section, get_section_bfd_owner)
15319 (get_section_bfd_section, get_section_name, get_section_file_name)
15320 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
15321 declare.
15322 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
15323 (dwarf2_section_info::get_bfd_owner)
15324 (dwarf2_section_info::get_bfd_section)
15325 (dwarf2_section_info::get_name)
15326 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
15327 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
15328 (dwarf2_section_info::read): Now methods.
15329 * dwarf-index-write.c (class debug_names): Update.
15330
2c86cff9
TT
153312020-02-08 Tom Tromey <tom@tromey.com>
15332
15333 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
15334 Move to dwarf2/section.h.
15335 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
15336 (get_section_bfd_section, get_section_name)
15337 (get_section_file_name, get_section_id, get_section_flags)
15338 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
15339 dwarf2/section.c.
15340 * dwarf2/section.h: New file.
15341 * dwarf2/section.c: New file, from dwarf2read.c.
15342 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
15343
f4382c45
TT
153442020-02-08 Tom Tromey <tom@tromey.com>
15345
15346 * dwarf2read.h (read_unsigned_leb128): Don't declare.
15347 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
15348 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
15349 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
15350 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
15351 * dwarf2/leb.h: New file, from dwarf2read.c.
15352 * dwarf2/leb.c: New file, from dwarf2read.c.
15353 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
15354 Remove.
15355 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
15356 (COMMON_SFILES): Add dwarf2/leb.c.
15357
01840b7a
JB
153582020-02-08 Joel Brobecker <brobecker@adacore.com>
15359
15360 GDB 9.1 released.
15361
dfcb27e4
IB
153622020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15363
15364 PR gdb/25190:
aac66a4c
SM
15365 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
15366 * gdb/remote.c (remote_console_output): Update.
15367 * gdb/ui-file.c (fputs_unfiltered): Rename to...
15368 (ui_file_puts): ...this.
15369 * gdb/ui-file.h (ui_file_puts): Add declaration.
15370 * gdb/utils.c (emit_style_escape): Update.
15371 (flush_wrap_buffer): Update.
15372 (fputs_maybe_filtered): Update.
15373 (fputs_unfiltered): Add function.
dfcb27e4 15374
faa17681
IB
153752020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15376
aac66a4c
SM
15377 * gdb/event-loop.c (gdb_wait_for_event): Update.
15378 * gdb/printcmd.c (printf_command): Update.
15379 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
15380 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
15381 (gdb_os_flush_stderr): Update.
15382 * gdb/remote.c (remote_console_output): Update.
15383 * gdb/ui-file.c (gdb_flush): Rename to...
15384 (ui_file_flush): ...this.
15385 (stderr_file::write): Update.
15386 (stderr_file::puts): Update.
15387 * gdb/ui-file.h (gdb_flush): Rename to...
15388 (ui_file_flush): ...this.
15389 * gdb/utils.c (gdb_flush): Add function.
15390 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 15391
5abbbe1d
TT
153922020-02-07 Tom Tromey <tromey@adacore.com>
15393
15394 PR breakpoints/24915:
15395 * source.c (find_and_open_source): Do not check basenames_may_differ.
15396
919adfe8
TT
153972020-02-07 Tom Tromey <tom@tromey.com>
15398
15399 * README: Update gdbserver documentation.
15400 * gdbserver: Move to top level.
15401 * configure.tgt (build_gdbserver): Remove.
15402 * configure.ac: Remove --enable-gdbserver.
15403 * configure: Rebuild.
15404 * Makefile.in (distclean): Don't mention gdbserver.
15405
1d5d29e7
SV
154062020-02-06 Shahab Vahedi <shahab@synopsys.com>
15407
15408 * source-cache.c (source_cache::ensure): Surround
15409 get_plain_source_lines with a try/catch.
15410 (source_cache::get_line_charpos): Get rid of try/catch
15411 and only check for the return value of "ensure".
15412 * tui/tui-source.c (tui_source_window::set_contents):
15413 Simplify "nlines" calculation.
15414
6eb1129c
SV
154152020-02-06 Shahab Vahedi <shahab@synopsys.com>
15416
15417 * MAINTAINERS (Write After Approval): Add myself.
15418
c6a42d11
CB
154192020-02-05 Christian Biesinger <cbiesinger@google.com>
15420
15421 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
15422 function call.
15423
c8ecdda6
CB
154242020-02-05 Christian Biesinger <cbiesinger@google.com>
15425
15426 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
15427
f6480e70
MR
154282020-02-05 Maciej W. Rozycki <macro@wdc.com>
15429
15430 * nat/riscv-linux-tdesc.h: New file.
15431 * nat/riscv-linux-tdesc.c: New file, taking code from...
15432 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
15433 ... here.
15434 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
15435 NATDEPFILES.
15436
dcc9fbc6
AB
154372020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
15438
15439 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
15440 we don't set the fake simulator ptid to the null_ptid.
15441
719546c4
SM
154422020-02-03 Simon Marchi <simon.marchi@efficios.com>
15443
15444 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
15445 * gdbthread.h (class thread_info) <resumed>: Likewise.
15446 * infrun.c (resume_1): Likewise.
15447 (proceed): Likewise.
15448 (infrun_thread_stop_requested): Likewise.
15449 (stop_all_threads): Likewise.
15450 (handle_inferior_event): Likewise.
15451 (restart_threads): Likewise.
15452 (finish_step_over): Likewise.
15453 (keep_going_stepped_thread): Likewise.
15454 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
15455 (linux_handle_extended_wait): Likewise.
15456 * record-btrace.c (get_thread_current_frame_id): Likewise.
15457 * record-full.c (record_full_wait_1): Likewise.
15458 * remote.c (remote_target::process_initial_stop_replies): Likewise.
15459 * target.c (target_resume): Likewise.
15460 * thread.c (set_running_thread): Likewise.
15461
e409c542
AKS
154622020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15463
15464 * f-valprint.c (f77_print_array_1): Changed datatype of index
15465 variable to LONGEST from int to enable it to contain bound
15466 values correctly.
15467
ee98c0da
MR
154682020-02-03 Maciej W. Rozycki <macro@wdc.com>
15469
15470 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
15471 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
15472 offsets according to FLEN determined.
15473 (riscv_linux_nat_target::read_description): Determine FLEN
15474 dynamically.
15475 (riscv_linux_nat_target::fetch_registers): Size regset buffer
15476 according to FLEN determined.
15477 (riscv_linux_nat_target::store_registers): Likewise.
15478
aa66aac4
SV
154792020-02-01 Shahab Vahedi <shahab@synopsys.com>
15480
15481 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
15482 when reg->group is empty and reggroup is not.
15483
fd9faca8
TT
154842020-01-31 Tom Tromey <tromey@adacore.com>
15485
15486 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
15487 Call beneath target's mourn_inferior after unpushing.
15488
42330a68
AB
154892020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15490
15491 PR tui/9765
15492 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
15493 have enough lines to fill the screen, still return the lowest
15494 address we found.
15495
7a27a45b
AB
154962020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15497
15498 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
15499 '-', '<', and '>' commands.
15500
c47f70e2
PA
155012020-01-29 Pedro Alves <palves@redhat.com>
15502 Sergio Durigan Junior <sergiodj@redhat.com>
15503
15504 * infcmd.c (construct_inferior_arguments): Assert that
15505 'argc' is greater than 0.
15506
5133a315
LM
155072020-01-29 Luis Machado <luis.machado@linaro.org>
15508
15509 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
15510 (BRK_INSN_MASK): Define to 0xd4200000.
15511 (aarch64_program_breakpoint_here_p): New function.
15512 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
15513 * arch-utils.c (default_program_breakpoint_here_p): Moved from
15514 breakpoint.c.
15515 * arch-utils.h (default_program_breakpoint_here_p): Moved from
15516 breakpoint.h
15517 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
15518 call gdbarch_program_breakpoint_here_p.
15519 (program_breakpoint_here): Moved to arch-utils.c, renamed to
15520 default_program_breakpoint_here_p, changed return type to bool and
15521 simplified.
15522 * breakpoint.h (program_breakpoint_here): Moved prototype to
15523 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
15524 return type to bool.
15525 * gdbarch.c: Regenerate.
15526 * gdbarch.h: Regenerate.
15527 * gdbarch.sh (program_breakpoint_here_p): New method.
15528 * infrun.c (handle_signal_stop): Call
15529 gdbarch_program_breakpoint_here_p.
15530
168f8c6b
TT
155312020-01-26 Tom Tromey <tom@tromey.com>
15532
15533 * ctfread.c (struct ctf_fp_info): Reindent.
15534 (_initialize_ctfread): Remove.
15535
128a391f
TT
155362020-01-26 Tom Tromey <tom@tromey.com>
15537
15538 * psymtab.c (partial_map_expand_apply)
15539 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
15540 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
15541 (psym_print_stats, psym_expand_symtabs_for_function)
15542 (psym_map_symbol_filenames, psym_map_matching_symbols)
15543 (psym_expand_symtabs_matching)
15544 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
15545 (maintenance_check_psymtabs): Use new methods.
15546 * psympriv.h (struct partial_symtab) <readin_p,
15547 get_compunit_symtab>: New methods.
15548 <readin, compunit_symtab>: Remove members.
15549 (struct standard_psymtab): New.
15550 (struct legacy_psymtab): Derive from standard_psymtab.
15551 * dwarf2read.h (struct dwarf2_psymtab): Derive from
15552 standard_psymtab.
15553 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
15554
0494dbec
TT
155552020-01-26 Tom Tromey <tom@tromey.com>
15556
15557 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
15558 read_dependencies. Add assert.
15559 * psymtab.c (partial_symtab::read_dependencies): New method.
15560 * psympriv.h (struct partial_symtab) <read_dependencies>: New
15561 method.
15562 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
15563 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
15564 read_dependencies.
15565 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
15566 Add assert.
15567
8566b89b
TT
155682020-01-26 Tom Tromey <tom@tromey.com>
15569
15570 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
15571 Call expand_psymtab.
15572 (xcoff_read_symtab): Call expand_psymtab.
15573 (xcoff_start_psymtab, xcoff_end_psymtab): Set
15574 legacy_expand_psymtab.
15575 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
15576 method.
15577 (struct legacy_psymtab) <expand_psymtab>: Implement.
15578 <legacy_expand_psymtab>: New member.
15579 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
15580 (parse_partial_symbols): Set legacy_expand_psymtab.
15581 (psymtab_to_symtab_1): Change argument order. Call
15582 expand_psymtab.
15583 (new_psymtab): Set legacy_expand_psymtab.
15584 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
15585 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
15586 expand_psymtab.
15587 (dwarf2_psymtab::expand_psymtab): Rename from
15588 psymtab_to_symtab_1. Call expand_psymtab.
15589 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
15590 (dbx_end_psymtab): Likewise.
15591 (dbx_psymtab_to_symtab_1): Change argument order. Call
15592 expand_psymtab.
15593 (dbx_read_symtab): Call expand_psymtab.
15594 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
15595 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
15596 (ctf_psymtab::read_symtab): Call expand_psymtab.
15597
077cbab2
TT
155982020-01-26 Tom Tromey <tom@tromey.com>
15599
15600 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
15601 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
15602 messages.
15603 * mdebugread.c (mdebug_read_symtab): Remove prints.
15604 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
15605 assert.
15606 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
15607
891813be
TT
156082020-01-26 Tom Tromey <tom@tromey.com>
15609
15610 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
15611 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
15612 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
15613 legacy_symtab.
15614 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
15615 * psymtab.c (psymtab_to_symtab): Call method.
15616 (dump_psymtab): Update.
15617 * psympriv.h (struct partial_symtab): Add virtual destructor.
15618 <read_symtab>: New method.
15619 (struct legacy_symtab): New.
15620 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
15621 (struct pst_map) <pst>: Now a legacy_psymtab.
15622 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
15623 (new_psymtab): Use legacy_psymtab.
15624 * dwarf2read.h (struct dwarf2_psymtab): New.
15625 (struct dwarf2_per_cu_data) <psymtab>: Use it.
15626 * dwarf2read.c (dwarf2_create_include_psymtab)
15627 (dwarf2_build_include_psymtabs, create_type_unit_group)
15628 (create_partial_symtab, process_psymtab_comp_unit_reader)
15629 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
15630 (set_partial_user): Use dwarf2_psymtab.
15631 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
15632 (psymtab_to_symtab_1, process_full_comp_unit)
15633 (process_full_type_unit, dwarf2_ranges_read)
15634 (dwarf2_get_pc_bounds, psymtab_include_file_name)
15635 (dwarf_decode_lines): Use dwarf2_psymtab.
15636 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
15637 (add_address_entry_worker, write_one_signatured_type)
15638 (recursively_count_psymbols, recursively_write_psymbols)
15639 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
15640 (write_debug_names): Likewise.
15641 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
15642 <pst>: Now a legacy_psymtab.
15643 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
15644 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
15645 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
15646 * ctfread.c (struct ctf_psymtab): New.
15647 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
15648 ctf_psymtab.
15649 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
15650 (create_partial_symtab): Return a ctf_psymtab.
15651 (scan_partial_symbols): Update.
15652
c3693a1d
TT
156532020-01-26 Tom Tromey <tom@tromey.com>
15654
15655 * xcoffread.c (xcoff_start_psymtab): Use new.
15656 * psymtab.c (partial_symtab::partial_symtab): New constructor,
15657 renamed from start_psymtab_common.
15658 * psympriv.h (struct partial_symtab): Add new constructor.
15659 (start_psymtab_common): Don't declare.
15660 * mdebugread.c (parse_partial_symbols): Use new.
15661 * dwarf2read.c (create_partial_symtab): Use new.
15662 * dbxread.c (start_psymtab): Use new.
15663 * ctfread.c (create_partial_symtab): Use new.
15664
32caafd0
TT
156652020-01-26 Tom Tromey <tom@tromey.com>
15666
15667 * xcoffread.c (xcoff_end_psymtab): Use new.
15668 * psymtab.c (start_psymtab_common): Use new.
15669 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
15670 Update.
15671 * psympriv.h (struct partial_symtab): Add parameters to
15672 constructor. Don't inline.
15673 (allocate_psymtab): Don't declare.
15674 * mdebugread.c (new_psymtab): Use new.
15675 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
15676 * dbxread.c (dbx_end_psymtab): Use new.
15677
abaa2f23
TT
156782020-01-26 Tom Tromey <tom@tromey.com>
15679
15680 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
15681 allocate_psymtab. Update documentation.
15682 * psymtab.c (psymtab_storage::install_psymtab): Rename from
15683 allocate_psymtab. Do not use new.
15684 (allocate_psymtab): Use new. Update.
15685
6d94535f
TT
156862020-01-26 Tom Tromey <tom@tromey.com>
15687
15688 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
15689 * psymtab.c (psym_print_stats): Update.
15690 * psympriv.h (struct partial_symtab) <readin,
15691 psymtabs_addrmap_supported, anonymous>: Now bool.
15692 * mdebugread.c (psymtab_to_symtab_1): Update.
15693 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
15694 (build_type_psymtabs_reader, psymtab_to_symtab_1)
15695 (process_full_comp_unit, process_full_type_unit): Update.
15696 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
15697 * ctfread.c (psymtab_to_symtab): Update.
15698
6f17252b
TT
156992020-01-26 Tom Tromey <tom@tromey.com>
15700
15701 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
15702 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
15703 * psymtab.c (psymtab_storage): Delete psymtabs.
15704 (psymtab_storage::allocate_psymtab): Use new.
15705 (psymtab_storage::discard_psymtab): Use delete.
15706 * psympriv.h (struct partial_symtab): Add constructor and
15707 initializers.
15708
f6f1cebc
TT
157092020-01-26 Tom Tromey <tom@tromey.com>
15710
15711 * machoread.c: Do not include psympriv.h.
15712
e47e48f6
PW
157132020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15714
15715 * NEWS: Mention the new option and the set/show commands.
15716
a2fedca9
PW
157172020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15718
15719 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
15720 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
15721 (validate_exec_file): New variables, enums, functions.
15722 (exec_file_locate_attach, print_section_info): Style the filenames.
15723 (_initialize_exec): Install show_exec_file_mismatch_command and
15724 set_exec_file_mismatch_command.
15725 * gdbcore.h (validate_exec_file): Declare.
15726 * infcmd.c (attach_command): Call validate_exec_file.
15727 * remote.c ( remote_target::remote_add_inferior): Likewise.
15728
7ffa82e1
AB
157292020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15730
15731 * frame.c (find_frame_sal): Move call to get_next_frame into more
15732 inner scope.
15733 * inline-frame.c (inilne_state) <inline_state>: Update argument
15734 types.
15735 (inilne_state) <skipped_symbol>: Rename to...
15736 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
15737 (skip_inline_frames): Build vector of skipped symbols and use this
15738 to reate the inline_state.
15739 (inline_skipped_symbol): Add a comment and some assertions, fetch
15740 skipped symbol from the list.
15741
3d92a3e3
AB
157422020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15743
15744 * buildsym.c (lte_is_less_than): Delete.
15745 (buildsym_compunit::end_symtab_with_blockvector): Create local
15746 lambda function to sort line table entries, and use
15747 std::stable_sort instead of std::sort.
15748 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
15749 markers when looking for a previous line.
15750
94a72be7
AB
157512020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15752
15753 * dwarf2read.c (lnp_state_machine::record_line): Include
15754 end_sequence parameter in debug print out. Record the line if we
15755 are at an end_sequence marker even if it's not the start of a
15756 statement.
15757 * symmisc.c (maintenance_print_one_line_table): Print end of
15758 sequence markers with 'END' not '0'.
15759
53af73bf
PA
157602020-01-24 Pedro Alves <palves@redhat.com>
15761
15762 PR gdb/25410
15763 * thread.c (scoped_restore_current_thread::restore): Use
15764 switch_to_inferior_no_thread.
15765 * exec.c: Include "progspace-and-thread.h".
15766 (add_target_sections, remove_target_sections):
15767 scoped_restore_current_pspace_and_thread instead of
15768 scoped_restore_current_thread.
15769 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
15770 and aspace to the inferior before calling clone_program_space.
15771 Remove stale comment.
15772
3050c6f4
CB
157732020-01-24 Christian Biesinger <cbiesinger@google.com>
15774
15775 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
15776 (arm_netbsd_nat_target::fetch_registers): ...this.
15777 (arm_nbsd_nat_target::store_registers): Rename to...
15778 (arm_netbsd_nat_target::store_registers): ...this.
15779
73685c7e
CB
157802020-01-24 Christian Biesinger <cbiesinger@google.com>
15781
15782 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
15783 register_t.
15784
89203d40
CB
157852020-01-24 Christian Biesinger <cbiesinger@google.com>
15786
15787 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
15788 Update comment.
15789 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
15790 Likewise.
15791 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
15792 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
15793 the correct replacement (iterate_over_regset_sections).
15794 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
15795 Update comment.
15796
1ba1ac88
AB
157972020-01-24 Graham Markall <graham.markall@embecosm.com>
15798
15799 PR gdb/23718
15800 * gdb/python/python.c (execute_gdb_command): Call
15801 async_enable_stdin in catch block.
15802
f3364a6d
AB
158032020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15804
15805 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
15806 SWITCH_THRU_ALL_UIS.
15807
733d0a67
AB
158082020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15809
15810 PR tui/9765
15811 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
15812 comment, add extra parameter, and update to store previous symbol
15813 when appropriate.
15814 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
15815 add extra parameter.
15816 * tui/tui-disasm.c (tui_disassemble): Update header comment,
15817 remove unneeded parameter, add try/catch around gdb_print_insn,
15818 rewrite to add items to asm_lines vector.
15819 (tui_find_backward_disassembly_start_address): New function.
15820 (tui_find_disassembly_address): Updated throughout.
15821 (tui_disasm_window::set_contents): Update for changes to
15822 tui_disassemble.
15823 (tui_disasm_window::do_scroll_vertical): No need to adjust the
15824 number of lines to scroll.
15825
b3b3bada
SM
158262020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
15827
15828 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
15829 (SECT_OFF_DATA): Likewise.
15830 (SECT_OFF_RODATA): Likewise.
15831 (SECT_OFF_TEXT): Likewise.
15832 (SECT_OFF_BSS): Likewise.
15833 (struct objfile) <text_section_offset, data_section_offset>: New
15834 methods.
15835 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
15836 objfile::text_section_offset.
15837 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
15838 * coffread.c (coff_symtab_read): Likewise.
15839 (enter_linenos): Likewise.
15840 (process_coff_symbol): Likewise.
15841 * ctfread.c (get_objfile_text_range): Likewise.
15842 * dtrace-probe.c (dtrace_probe::get_relocated_address):
15843 Use objfile::data_section_offset.
15844 * dwarf2-frame.c (execute_cfa_program): Use
15845 objfile::text_section_offset.
15846 (dwarf2_frame_find_fde): Likewise.
15847 * dwarf2read.c (create_addrmap_from_index): Likewise.
15848 (create_addrmap_from_aranges): Likewise.
15849 (dw2_find_pc_sect_compunit_symtab): Likewise.
15850 (process_psymtab_comp_unit_reader): Likewise.
15851 (add_partial_symbol): Likewise.
15852 (add_partial_subprogram): Likewise.
15853 (process_full_comp_unit): Likewise.
15854 (read_file_scope): Likewise.
15855 (read_func_scope): Likewise.
15856 (read_lexical_block_scope): Likewise.
15857 (read_call_site_scope): Likewise.
15858 (dwarf2_rnglists_process): Likewise.
15859 (dwarf2_ranges_process): Likewise.
15860 (dwarf2_ranges_read): Likewise.
15861 (dwarf_decode_lines_1): Likewise.
15862 (new_symbol): Likewise.
15863 (dwarf2_fetch_die_loc_sect_off): Likewise.
15864 (dwarf2_per_cu_text_offset): Likewise.
15865 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
15866 * hppa-tdep.c (read_unwind_info): Likewise.
15867 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
15868 * psympriv.h (struct partial_symtab): Likewise.
15869 * psymtab.c (find_pc_sect_psymtab): Likewise.
15870 * solib-svr4.c (enable_break): Likewise.
15871 * stap-probe.c (relocate_address): Use
15872 objfile::data_section_offset.
15873 * xcoffread.c (enter_line_range): Use
15874 objfile::text_section_offset.
15875 (read_xcoff_symtab): Likewise.
15876
ab53f382
SM
158772020-01-23 Simon Marchi <simon.marchi@efficios.com>
15878
15879 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
15880 declaration to narrower scopes.
15881
e7eee665
SM
158822020-01-23 Simon Marchi <simon.marchi@efficios.com>
15883
15884 * darwin-nat.h (struct darwin_exception_msg, enum
15885 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
15886 Move up.
15887 (class darwin_nat_target) <wait_1, check_new_threads,
15888 decode_exception_message, decode_message, stop_inferior,
15889 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
15890 * darwin-nat.c (darwin_check_new_threads): Rename to...
15891 (darwin_nat_target::check_new_threads): ... this.
15892 (darwin_suspend_inferior_it): Remove.
15893 (darwin_decode_exception_message): Rename to...
15894 (darwin_nat_target::decode_exception_message): ... this.
15895 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
15896 (darwin_decode_message): Rename to...
15897 (darwin_nat_target::decode_message): ... this.
15898 (cancel_breakpoint): Rename to...
15899 (darwin_nat_target::cancel_breakpoint): ... this.
15900 (darwin_wait): Rename to...
15901 (darwin_nat_target::wait_1): ... this. Use range-based for loop
15902 instead of iterate_over_inferiors.
15903 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
15904 (darwin_stop_inferior): Rename to...
15905 (darwin_nat_target::stop_inferior): ... this.
15906 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
15907 (darwin_init_thread_list): Rename to...
15908 (darwin_nat_target::init_thread_list): ... this.
15909 (darwin_ptrace_him): Rename to...
15910 (darwin_nat_target::ptrace_him): ... this.
15911 (darwin_nat_target::create_inferior): Pass lambda function to
15912 fork_inferior.
15913 (darwin_nat_target::detach): Call stop_inferior instead of
15914 darwin_stop_inferior.
15915 * fork-inferior.h (fork_inferior): Change init_trace_fun
15916 parameter to gdb::function_view.
15917 * fork-inferior.c (fork_inferior): Likewise.
15918
c162ed3e
HD
159192020-01-23 Hannes Domani <ssbssa@yahoo.de>
15920
15921 * i386-cygwin-tdep.c (core_process_module_section): Update.
15922 * windows-nat.c (struct lm_info_windows): Add text_offset.
15923 (windows_xfer_shared_libraries): Update.
15924 * windows-tdep.c (windows_xfer_shared_library):
15925 Add text_offset_cached argument.
15926 * windows-tdep.h (windows_xfer_shared_library): Update.
15927
a1237872
SM
159282020-01-21 Simon Marchi <simon.marchi@efficios.com>
15929
15930 * gdbarch.sh: Add declaration for _initialize_gdbarch.
15931
b3ee6dd9
SM
159322020-01-21 Simon Marchi <simon.marchi@efficios.com>
15933
15934 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
15935 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
15936 replace with range-based for.
15937 (gdbsim_interrupt_inferior): Remove.
15938 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
15939 with a range-based for. Inline code from
15940 gdbsim_interrupt_inferior.
15941
f9fac3c8
SM
159422020-01-21 Simon Marchi <simon.marchi@efficios.com>
15943
15944 * infrun.c (proceed): Fix indentation.
15945
f6474de9
TT
159462020-01-21 Tom Tromey <tromey@adacore.com>
15947
15948 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
15949 * python/python.c (python_extension_ops): Update.
15950 (gdbpy_colorize): New function.
15951 * python/lib/gdb/__init__.py (colorize): New function.
15952 * extension.h (ext_lang_colorize): Declare.
15953 * extension.c (ext_lang_colorize): New function.
15954 * extension-priv.h (struct extension_language_ops) <colorize>: New
15955 member.
15956 * cli/cli-style.c (_initialize_cli_style): Update help text.
15957
f0c702d4
LM
159582020-01-21 Luis Machado <luis.machado@linaro.org>
15959
15960 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
15961 <cond>: Change type to bool.
15962 (aarch64_displaced_step_b_cond): Update cond to use bool type.
15963 (aarch64_displaced_step_cb): Likewise.
15964 (aarch64_displaced_step_tb): Likewise.
15965
1ab139e5
LM
159662020-01-21 Luis Machado <luis.machado@linaro.org>
15967
15968 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
15969 output.
15970
0c271889
LM
159712020-01-21 Luis Machado <luis.machado@linaro.org>
15972
15973 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
15974 <pc_adjust>: Adjust the documentation.
15975 (aarch64_displaced_step_fixup): Check if PC really moved before
15976 adjusting it.
15977
4d89c1c7
TT
159782020-01-19 Tom Tromey <tom@tromey.com>
15979
15980 * disasm.c (~gdb_disassembler): New destructor.
15981 (gdb_buffered_insn_length): Call disassemble_free_target.
15982 * disasm.h (class gdb_disassembler): Declare destructor. Use
15983 DISABLE_COPY_AND_ASSIGN.
15984
c0ab21c2
TT
159852020-01-19 Tom Tromey <tom@tromey.com>
15986
15987 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
15988 (die_reader_func_ftype): Remove.
15989 (cutu_reader): New class.
15990 (dw2_get_file_names_reader): Remove "data" parameter.
15991 (dw2_get_file_names): Use cutu_reader.
15992 (create_debug_type_hash_table): Update.
15993 (read_cutu_die_from_dwo): Update comment.
15994 (lookup_dwo_unit): Add dwo_name parameter.
15995 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
15996 die_reader_func_ftype and data parameters.
15997 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
15998 Remove die_reader_func_ftype and data parameters.
15999 (~cutu_reader): New; from init_cutu_and_read_dies.
16000 (cutu_reader::cutu_reader): Rename from
16001 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
16002 and data parameters.
16003 (init_cutu_and_read_dies_simple): Remove.
16004 (struct process_psymtab_comp_unit_data): Remove.
16005 (process_psymtab_comp_unit_reader): Remove data parameter; add
16006 want_partial_unit and pretend_language parameters.
16007 (process_psymtab_comp_unit): Use cutu_reader.
16008 (build_type_psymtabs_reader): Remove data parameter.
16009 (build_type_psymtabs_1): Use cutu_reader.
16010 (process_skeletonless_type_unit): Likewise.
16011 (load_partial_comp_unit_reader): Remove.
16012 (load_partial_comp_unit): Use cutu_reader.
16013 (load_full_comp_unit_reader): Remove.
16014 (load_full_comp_unit): Use cutu_reader.
16015 (struct create_dwo_cu_data): Remove.
16016 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
16017 dwo_unit parameters.
16018 (create_cus_hash_table): Use cutu_reader.
16019 (struct dwarf2_read_addr_index_data): Remove.
16020 (dwarf2_read_addr_index_reader): Remove.
16021 (dwarf2_read_addr_index): Use cutu_reader.
16022 (read_signatured_type_reader): Remove.
16023 (read_signatured_type): Use cutu_reader.
16024
45bbae5c
TT
160252020-01-19 Tom Tromey <tom@tromey.com>
16026
16027 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
16028 * tui/tui-wingeneral.h (class tui_suppress_output): New.
16029 (tui_wrefresh): Declare.
16030 * tui/tui-wingeneral.c (suppress_output): New global.
16031 (tui_suppress_output, ~tui_suppress_output): New constructor and
16032 destructor.
16033 (tui_wrefresh): New function.
16034 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
16035 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
16036 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
16037 method.
16038 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
16039 tui_wrefresh.
16040 (tui_data_window::no_refresh): New method.
16041 (tui_data_item_window::refresh_window): Call tui_wrefresh.
16042 (tui_reg_command): Use tui_suppress_output
16043 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
16044 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
16045 method.
16046 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
16047
4f13c1c0
TT
160482020-01-19 Tom Tromey <tom@tromey.com>
16049
16050 * tui/tui-winsource.c (tui_update_source_windows_with_line):
16051 Handle case where symtab is null.
16052
fa47e446
SM
160532020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
16054
16055 * linux-fork.c (one_fork_p): Simplify.
16056
26f42329
SM
160572020-01-17 Simon Marchi <simon.marchi@efficios.com>
16058
16059 * top.c (struct qt_args): Remove.
16060 (kill_or_detach): Change return type to void, replace `void *`
16061 parameter with a proper one.
16062 (print_inferior_quit_action): Likewise.
16063 (quit_confirm): Use range-based for loop to iterate over inferiors.
16064 (quit_force): Likewise.
16065
a9ac81b1
SM
160662020-01-17 Simon Marchi <simon.marchi@efficios.com>
16067
16068 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
16069 `void *` parameter with proper parameters.
16070 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
16071 (print_one_inferior): Change return type to void, replace `void *`
16072 parameter with proper parameters.
16073 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
16074 inferiors.
16075 (get_other_inferior): Remove.
16076 (mi_cmd_remove_inferior): Use range-based loop to iterate over
16077 inferiors.
16078
788eca49
SM
160792020-01-17 Simon Marchi <simon.marchi@efficios.com>
16080
16081 * mi/mi-interp.c (report_initial_inferior): Remove.
16082 (mi_interp::init): Use range-based for to iterate over inferiors.
16083
d9bc85b6
SM
160842020-01-17 Simon Marchi <simon.marchi@efficios.com>
16085
16086 * python/py-inferior.c (build_inferior_list): Remove.
16087 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
16088
40c94099
CB
160892020-01-16 Christian Biesinger <cbiesinger@google.com>
16090
16091 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
16092 (btrace_stitch_trace): Likewise.
16093 * charset.c (intermediate_encoding): Likewise (vaild).
16094 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
16095 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
16096 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
16097
e0cdfe3c
HD
160982020-01-16 Hannes Domani <ssbssa@yahoo.de>
16099
16100 * windows-tdep.c (windows_get_tlb_type):
16101 Add rtl_user_process_parameters type.
16102
790f1718 161032020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 16104 Norbert Lange <nolange79@gmail.com>
790f1718
PA
16105
16106 PR build/24805
16107 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
16108 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
16109 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
16110 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
16111 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
16112 (ps_plog): Redeclare exported functions with default visibility.
16113
3112ed97
NA
161142020-01-16 Nitika Achra <Nitika.Achra@amd.com>
16115
16116 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
16117 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
16118
8dc3273e
SM
161192020-01-15 Simon Marchi <simon.marchi@efficios.com>
16120
16121 * infcmd.c (post_create_inferior): Use get_thread_regcache
16122 instead of get_current_regcache.
16123
ff47f4f0
TT
161242020-01-14 Tom Tromey <tom@tromey.com>
16125
16126 PR symtab/12535:
16127 * python/python.c (gdbpy_decode_line): Treat empty string the same
16128 as no argument.
16129
975f45b7
TT
161302020-01-14 Tom Tromey <tom@tromey.com>
16131
16132 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
16133
25e57356
TT
161342020-01-14 Tom Tromey <tom@tromey.com>
16135
16136 * nat/linux-btrace.c: Don't include <config.h>.
16137 * nat/linux-ptrace.c: Don't include <config.h>.
16138 * nat/x86-linux-dregs.c: Don't include <config.h>.
16139
05ea2a05
TT
161402020-01-14 Tom Tromey <tom@tromey.com>
16141
16142 * configure: Rebuild.
16143 * configure.ac: Move many checks to ../gdbsupport/common.m4.
16144
01027315
TT
161452020-01-14 Tom Tromey <tom@tromey.com>
16146
16147 * nat/x86-linux-dregs.c: Include configh.h.
16148 * nat/linux-ptrace.c: Include configh.h.
16149 * nat/linux-btrace.c: Include configh.h.
16150 * defs.h: Include config.h, bfd.h.
16151 * configure.ac: Don't source common.host.
16152 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
16153 * configure: Rebuild.
16154 * acinclude.m4: Update path.
16155 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
16156 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
16157 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
16158 (CLIBS): Add LIBSUPPORT.
16159 (CDEPS): Likewise.
16160 (COMMON_SFILES): Remove gdbsupport files.
16161 (HFILES_NO_SRCDIR): Likewise.
16162 (stamp-version): Update path to create-version.sh.
16163 (ALLDEPFILES): Remove gdbsupport files.
16164
b2ceabe8
TT
161652020-01-14 Tom Tromey <tom@tromey.com>
16166
16167 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
16168 USE_WIN32API when needed.
16169 * configure.ac (USE_WIN32API): Don't define.
16170 (WIN32LIBS): Use WIN32APILIBS.
16171 * configure: Rebuild.
16172
25c51f71
TT
161732020-01-14 Tom Tromey <tom@tromey.com>
16174
16175 * configure: Rebuild.
16176 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
16177
717c684d
BE
161782020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
16179
16180 * skip.c (skip_function_command): Make skip w/o arguments use the
16181 name of the inlined function if pc is inside any inlined function.
16182
7da6a5b9
LM
161832020-01-14 Luis Machado <luis.machado@linaro.org>
16184
16185 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
16186 * infrun.c (resume_1): Likewise.
16187 (handle_inferior_event): Remove stale comment.
16188 * linux-nat.c (linux_nat_target::resume): Update comments.
16189 (save_stop_reason): Likewise.
16190 (linux_nat_filter_event): Likewise.
16191 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
16192
44e4c775
AB
161932020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16194
16195 * elfread.c (record_minimal_symbol): Set section index to 0 for
16196 non-allocatable sections.
16197
18a8505e
AT
16198
161992020-01-13 Ali Tamur <tamur@google.com>
16200
16201 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
16202 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
16203 to gdb::optional. Update comments.
16204 (dwo_file): Update comments.
16205 (read_attribute): Update API to take an additional out parameter,
16206 need_reprocess. This is used to mark attributes that need other
16207 attributes (e.g. str_offsets_base) for correct computation which may not
16208 have been read yet.
16209 (read_attribute_reprocess): New function declaration.
16210 (read_addr_index): Likewise.
16211 (read_dwo_str_index): Likewise.
16212 (read_stub_str_index): Likewise.
16213 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
16214 (lookup_addr_base): New function definition.
16215 (lookup_ranges_base): Likewise.
16216 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
16217 lookup_ranges_base.
16218 (init_cutu_and_read_dies): Update comments.
16219 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
16220 unit. This is used to inherit parent's str_offsets_base and addr_base.
16221 Update comments.
16222 (init_cutu_and_read_dies_simple): Reflect API changes.
16223 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
16224 (create_cus_hash_table): Change API to take parent compile unit.
16225 Reflect API changes.
16226 (open_and_init_dwo_file): Reflect API changes.
16227 (dwarf2_get_pc_bounds): Update comments.
16228 (dwarf2_record_block_ranges): Likewise.
16229 (read_full_die_1): Change implementation to reprocess attributes that
16230 need str_offsets_base and addr_base.
16231 (partial_die_info::read): Likewise.
16232 (read_attribute_reprocess): New function definition.
16233 (read_attribute_value): Change API to take an additional out parameter,
16234 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
16235 when a non-dwo compile unit has index based attributes.
16236 (read_attribute): Reflect API changes.
16237 (read_addr_index_1): Reflect API changes. Update comments.
16238 (dwarf2_read_addr_index_data): Reflect API changes.
16239 (dwarf2_read_addr_index): Likewise.
16240 (read_str_index): Change API and implementation. This becomes a helper
16241 to be used by the new string index related methods. Update error
16242 message and comments.
16243 (read_dwo_str_index): New function definition.
16244 (read_stub_str_index): Likewise.
16245 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
16246 * symfile.h (dwarf2_debug_sections): Likewise.
16247 * xcoffread.c (dwarf2_debug_sections): Likewise.
16248
0cac9354
SM
162492020-01-13 Simon Marchi <simon.marchi@efficios.com>
16250
16251 * gdbcore.h (struct core_fns) <core_read_registers>: Change
16252 core_reg_sect type to gdb_byte *.
16253 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
16254 * cris-tdep.c (fetch_core_registers): Likewise.
16255 * corelow.c (core_target::get_core_register_section): Change
16256 type of `contents` to gdb::byte_vector.
16257
9a6d629c
AB
162582020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16259
16260 * tui/tui-wingeneral.c (box_win): Position the title in the center
16261 of the border.
16262
d8b2f9e3
SM
162632020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16264
16265 * corelow.c (core_target::get_core_register_section): Use
16266 std::vector instead of alloca.
16267
bb564c58
SM
162682020-01-13 Simon Marchi <simon.marchi@efficios.com>
16269
16270 * warning.m4: Add -Wmissing-declarations to build_warnings.
16271 * configure: Re-generate.
16272
6b366111
SM
162732020-01-13 Simon Marchi <simon.marchi@efficios.com>
16274
16275 * python/python.c (init__gdb_module): Add declaration.
16276
6c265988
SM
162772020-01-13 Simon Marchi <simon.marchi@efficios.com>
16278
16279 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
16280 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
16281 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
16282 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
16283 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
16284 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
16285 * ada-exp.y (_initialize_ada_exp): Add declaration.
16286 * ada-lang.c (_initialize_ada_language): Add declaration.
16287 * ada-tasks.c (_initialize_tasks): Add declaration.
16288 * agent.c (_initialize_agent): Add declaration.
16289 * aix-thread.c (_initialize_aix_thread): Add declaration.
16290 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
16291 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
16292 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
16293 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
16294 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
16295 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
16296 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
16297 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
16298 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
16299 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
16300 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
16301 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
16302 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
16303 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
16304 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
16305 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
16306 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
16307 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
16308 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
16309 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
16310 * annotate.c (_initialize_annotate): Add declaration.
16311 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
16312 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
16313 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
16314 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
16315 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
16316 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
16317 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
16318 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
16319 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
16320 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
16321 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
16322 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
16323 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
16324 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
16325 * auto-load.c (_initialize_auto_load): Add declaration.
16326 * auxv.c (_initialize_auxv): Add declaration.
16327 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
16328 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
16329 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
16330 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
16331 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
16332 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
16333 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
16334 * breakpoint.c (_initialize_breakpoint): Add declaration.
16335 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
16336 * btrace.c (_initialize_btrace): Add declaration.
16337 * charset.c (_initialize_charset): Add declaration.
16338 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
16339 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
16340 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
16341 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
16342 * cli/cli-script.c (_initialize_cli_script): Add declaration.
16343 * cli/cli-style.c (_initialize_cli_style): Add declaration.
16344 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
16345 * coffread.c (_initialize_coffread): Add declaration.
16346 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
16347 * compile/compile.c (_initialize_compile): Add declaration.
16348 * complaints.c (_initialize_complaints): Add declaration.
16349 * completer.c (_initialize_completer): Add declaration.
16350 * copying.c (_initialize_copying): Add declaration.
16351 * corefile.c (_initialize_core): Add declaration.
16352 * corelow.c (_initialize_corelow): Add declaration.
16353 * cp-abi.c (_initialize_cp_abi): Add declaration.
16354 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
16355 * cp-support.c (_initialize_cp_support): Add declaration.
16356 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
16357 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
16358 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
16359 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
16360 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
16361 * ctfread.c (_initialize_ctfread): Add declaration.
16362 * d-lang.c (_initialize_d_language): Add declaration.
16363 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
16364 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
16365 * dbxread.c (_initialize_dbxread): Add declaration.
16366 * dcache.c (_initialize_dcache): Add declaration.
16367 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
16368 * disasm.c (_initialize_disasm): Add declaration.
16369 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
16370 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
16371 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
16372 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
16373 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
16374 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
16375 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
16376 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
16377 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
16378 * elfread.c (_initialize_elfread): Add declaration.
16379 * exec.c (_initialize_exec): Add declaration.
16380 * extension.c (_initialize_extension): Add declaration.
16381 * f-lang.c (_initialize_f_language): Add declaration.
16382 * f-valprint.c (_initialize_f_valprint): Add declaration.
16383 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
16384 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
16385 * filesystem.c (_initialize_filesystem): Add declaration.
16386 * findcmd.c (_initialize_mem_search): Add declaration.
16387 * findvar.c (_initialize_findvar): Add declaration.
16388 * fork-child.c (_initialize_fork_child): Add declaration.
16389 * frame-base.c (_initialize_frame_base): Add declaration.
16390 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
16391 * frame.c (_initialize_frame): Add declaration.
16392 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
16393 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
16394 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
16395 * gcore.c (_initialize_gcore): Add declaration.
16396 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
16397 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
16398 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
16399 * gdbarch.c (_initialize_gdbarch): Add declaration.
16400 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
16401 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
16402 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
16403 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
16404 * go-lang.c (_initialize_go_language): Add declaration.
16405 * go32-nat.c (_initialize_go32_nat): Add declaration.
16406 * guile/guile.c (_initialize_guile): Add declaration.
16407 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
16408 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
16409 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
16410 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
16411 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
16412 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
16413 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
16414 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
16415 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
16416 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
16417 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
16418 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
16419 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
16420 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
16421 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
16422 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
16423 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
16424 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
16425 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
16426 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
16427 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
16428 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
16429 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
16430 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
16431 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
16432 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
16433 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
16434 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
16435 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
16436 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
16437 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
16438 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
16439 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
16440 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
16441 * infcall.c (_initialize_infcall): Add declaration.
16442 * infcmd.c (_initialize_infcmd): Add declaration.
16443 * inflow.c (_initialize_inflow): Add declaration.
16444 * infrun.c (_initialize_infrun): Add declaration.
16445 * interps.c (_initialize_interpreter): Add declaration.
16446 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
16447 * jit.c (_initialize_jit): Add declaration.
16448 * language.c (_initialize_language): Add declaration.
16449 * linux-fork.c (_initialize_linux_fork): Add declaration.
16450 * linux-nat.c (_initialize_linux_nat): Add declaration.
16451 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
16452 * linux-thread-db.c (_initialize_thread_db): Add declaration.
16453 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
16454 * m2-lang.c (_initialize_m2_language): Add declaration.
16455 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
16456 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
16457 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
16458 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
16459 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
16460 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
16461 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
16462 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
16463 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
16464 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
16465 * machoread.c (_initialize_machoread): Add declaration.
16466 * macrocmd.c (_initialize_macrocmd): Add declaration.
16467 * macroscope.c (_initialize_macroscope): Add declaration.
16468 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
16469 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
16470 * maint.c (_initialize_maint_cmds): Add declaration.
16471 * mdebugread.c (_initialize_mdebugread): Add declaration.
16472 * memattr.c (_initialize_mem): Add declaration.
16473 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
16474 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
16475 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
16476 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
16477 * mi/mi-main.c (_initialize_mi_main): Add declaration.
16478 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
16479 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
16480 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
16481 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
16482 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
16483 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
16484 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
16485 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
16486 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
16487 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
16488 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
16489 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
16490 * mipsread.c (_initialize_mipsread): Add declaration.
16491 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
16492 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
16493 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
16494 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
16495 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
16496 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
16497 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
16498 * nto-procfs.c (_initialize_procfs): Add declaration.
16499 * objc-lang.c (_initialize_objc_language): Add declaration.
16500 * observable.c (_initialize_observer): Add declaration.
16501 * opencl-lang.c (_initialize_opencl_language): Add declaration.
16502 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
16503 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
16504 * osabi.c (_initialize_gdb_osabi): Add declaration.
16505 * osdata.c (_initialize_osdata): Add declaration.
16506 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
16507 * parse.c (_initialize_parse): Add declaration.
16508 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
16509 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
16510 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
16511 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
16512 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
16513 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
16514 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
16515 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
16516 * printcmd.c (_initialize_printcmd): Add declaration.
16517 * probe.c (_initialize_probe): Add declaration.
16518 * proc-api.c (_initialize_proc_api): Add declaration.
16519 * proc-events.c (_initialize_proc_events): Add declaration.
16520 * proc-service.c (_initialize_proc_service): Add declaration.
16521 * procfs.c (_initialize_procfs): Add declaration.
16522 * producer.c (_initialize_producer): Add declaration.
16523 * psymtab.c (_initialize_psymtab): Add declaration.
16524 * python/python.c (_initialize_python): Add declaration.
16525 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
16526 * record-btrace.c (_initialize_record_btrace): Add declaration.
16527 * record-full.c (_initialize_record_full): Add declaration.
16528 * record.c (_initialize_record): Add declaration.
16529 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
16530 * regcache.c (_initialize_regcache): Add declaration.
16531 * reggroups.c (_initialize_reggroup): Add declaration.
16532 * remote-notif.c (_initialize_notif): Add declaration.
16533 * remote-sim.c (_initialize_remote_sim): Add declaration.
16534 * remote.c (_initialize_remote): Add declaration.
16535 * reverse.c (_initialize_reverse): Add declaration.
16536 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
16537 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
16538 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
16539 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
16540 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
16541 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
16542 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
16543 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
16544 Add declaration.
16545 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
16546 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
16547 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
16548 * rust-exp.y (_initialize_rust_exp): Add declaration.
16549 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
16550 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
16551 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
16552 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
16553 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
16554 * score-tdep.c (_initialize_score_tdep): Add declaration.
16555 * ser-go32.c (_initialize_ser_dos): Add declaration.
16556 * ser-mingw.c (_initialize_ser_windows): Add declaration.
16557 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
16558 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
16559 * ser-uds.c (_initialize_ser_socket): Add declaration.
16560 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
16561 * serial.c (_initialize_serial): Add declaration.
16562 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
16563 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
16564 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
16565 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
16566 * skip.c (_initialize_step_skip): Add declaration.
16567 * sol-thread.c (_initialize_sol_thread): Add declaration.
16568 * solib-aix.c (_initialize_solib_aix): Add declaration.
16569 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
16570 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
16571 * solib-frv.c (_initialize_frv_solib): Add declaration.
16572 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
16573 * solib-target.c (_initialize_solib_target): Add declaration.
16574 * solib.c (_initialize_solib): Add declaration.
16575 * source-cache.c (_initialize_source_cache): Add declaration.
16576 * source.c (_initialize_source): Add declaration.
16577 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
16578 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
16579 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
16580 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
16581 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
16582 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
16583 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
16584 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
16585 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
16586 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
16587 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
16588 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
16589 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
16590 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
16591 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
16592 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
16593 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
16594 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
16595 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
16596 * stabsread.c (_initialize_stabsread): Add declaration.
16597 * stack.c (_initialize_stack): Add declaration.
16598 * stap-probe.c (_initialize_stap_probe): Add declaration.
16599 * std-regs.c (_initialize_frame_reg): Add declaration.
16600 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
16601 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
16602 * symfile.c (_initialize_symfile): Add declaration.
16603 * symmisc.c (_initialize_symmisc): Add declaration.
16604 * symtab.c (_initialize_symtab): Add declaration.
16605 * target.c (_initialize_target): Add declaration.
16606 * target-connection.c (_initialize_target_connection): Add
16607 declaration.
16608 * target-dcache.c (_initialize_target_dcache): Add declaration.
16609 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
16610 * thread.c (_initialize_thread): Add declaration.
16611 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
16612 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
16613 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
16614 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
16615 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
16616 * tracectf.c (_initialize_ctf): Add declaration.
16617 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
16618 * tracefile.c (_initialize_tracefile): Add declaration.
16619 * tracepoint.c (_initialize_tracepoint): Add declaration.
16620 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
16621 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
16622 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
16623 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
16624 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
16625 * tui/tui-win.c (_initialize_tui_win): Add declaration.
16626 * tui/tui.c (_initialize_tui): Add declaration.
16627 * typeprint.c (_initialize_typeprint): Add declaration.
16628 * ui-style.c (_initialize_ui_style): Add declaration.
16629 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
16630 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
16631 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
16632 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
16633 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
16634 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
16635 * unittests/filtered_iterator-selftests.c
16636 (_initialize_filtered_iterator_selftests): Add declaration.
16637 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
16638 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
16639 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
16640 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
16641 * unittests/main-thread-selftests.c
16642 (_initialize_main_thread_selftests): Add declaration.
16643 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
16644 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
16645 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
16646 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
16647 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
16648 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
16649 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
16650 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
16651 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
16652 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
16653 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
16654 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
16655 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
16656 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
16657 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
16658 declaration.
16659 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
16660 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
16661 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
16662 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
16663 * user-regs.c (_initialize_user_regs): Add declaration.
16664 * utils.c (_initialize_utils): Add declaration.
16665 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
16666 * valops.c (_initialize_valops): Add declaration.
16667 * valprint.c (_initialize_valprint): Add declaration.
16668 * value.c (_initialize_values): Add declaration.
16669 * varobj.c (_initialize_varobj): Add declaration.
16670 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
16671 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
16672 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
16673 * windows-nat.c (_initialize_windows_nat): Add declaration.
16674 (_initialize_check_for_gdb_ini): Add declaration.
16675 (_initialize_loadable): Add declaration.
16676 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
16677 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
16678 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
16679 * xcoffread.c (_initialize_xcoffread): Add declaration.
16680 * xml-support.c (_initialize_xml_support): Add declaration.
16681 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
16682 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
16683 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
16684 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
16685
e2de1eec
SM
166862020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16687
16688 * regformats/regdat.sh: Generate declaration for init function.
16689
e0037b4c
SM
166902020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16691
16692 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
16693 up.
16694 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
16695 close_one_inferior>: New methods.
16696 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
16697 pass down target to find_inferior_pid.
16698 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
16699 Pass down target to find_inferior_ptid.
16700 (gdbsim_target::create_inferior): Pass down target to
16701 add_thread_silent.
16702 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
16703 target down to find_inferior_ptid and switch_to_thread.
16704 (gdbsim_target::close): Update to call close_one_inferior.
16705 (struct resume_data): Remove.
16706 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
16707 directly, rather than through a void pointer.
16708 (gdbsim_target::resume): Update to call resume_one_inferior.
16709
58920b5b
SM
167102020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
16711
16712 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
16713
4ec89149
PA
167142020-01-12 Pedro Alves <palves@redhat.com>
16715
16716 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
16717 directly for the current inferior instead of
16718 discard_all_inferiors.
16719 (discard_all_inferiors): Delete.
16720
7c392d1d
TT
167212020-01-11 Tom Tromey <tom@tromey.com>
16722
16723 * tui/tui-wingeneral.c (box_win): Check cli_styling.
16724 * tui/tui-winsource.c (tui_source_window_base::refill): Use
16725 deprecated_safe_get_selected_frame.
16726
d9ebdab7
TBA
167272020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16728
16729 * inferior.c (print_inferior): Switch inferior before printing it.
16730
f3c469b9
PA
167312020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
16732 Pedro Alves <palves@redhat.com>
16733
16734 * progspace-and-thread.c (switch_to_program_space_and_thread):
16735 Assert there's an inferior for PSPACE. Use
16736 switch_to_inferior_no_thread to switch the inferior too.
16737 * progspace.c (program_space::~program_space): Call
16738 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
16739 (program_space::free_all_objfiles): Don't call clear_symtab_users
16740 here.
16741 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
16742
65c574f6
PA
167432020-01-10 Pedro Alves <palves@redhat.com>
16744
16745 * NEWS: Mention multi-target debugging, "info connections", and
16746 "add-inferior -no-connection".
16747
2f4fcf00
PA
167482020-01-10 Pedro Alves <palves@redhat.com>
16749
16750 * infrun.c: Include "target-connection.h".
16751 (check_multi_target_resumption): New.
16752 (proceed): Call it.
16753 * target-connection.c (make_target_connection_string): Make
16754 extern.
16755 * target-connection.h (make_target_connection_string): Declare.
16756
121b3efd
PA
167572020-01-10 Pedro Alves <palves@redhat.com>
16758
16759 * Makefile.in (COMMON_SFILES): Add target-connection.c.
16760 * inferior.c (uiout_field_connection): New function.
16761 (print_inferior): Add new "connection-id" column.
16762 (add_inferior_command): Show connection number/string of added
16763 inferior.
16764 * process-stratum-target.h
16765 (process_stratum_target::connection_string): New virtual method.
16766 (process_stratum_target::connection_number): New field.
16767 * remote.c (remote_target::connection_string): New override.
16768 * target-connection.c: New file.
16769 * target-connection.h: New file.
16770 * target.c (decref_target): Remove process_stratum targets from
16771 the connection list.
16772 (target_stack::push): Add process_stratum targets to the
16773 connection list.
16774
4f837581
PA
167752020-01-10 Pedro Alves <palves@redhat.com>
16776
16777 Revert:
16778 2016-04-12 Pedro Alves <palves@redhat.com>
16779 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
16780 Remove references to name.
16781 * serial.h (struct serial) <name>: Delete.
16782
f4ec508e
PA
167832020-01-10 Pedro Alves <palves@redhat.com>
16784
16785 * gdbarch-selftests.c (register_to_value_test): Remove "target
16786 already pushed" check.
16787
5b6d1e4f
PA
167882020-01-10 Pedro Alves <palves@redhat.com>
16789 John Baldwin <jhb@FreeBSD.org>
16790
16791 * aarch64-linux-nat.c
16792 (aarch64_linux_nat_target::thread_architecture): Adjust.
16793 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
16794 (task_command_1): Likewise.
16795 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
16796 (aix_thread_target::wait, aix_thread_target::fetch_registers)
16797 (aix_thread_target::store_registers)
16798 (aix_thread_target::thread_alive): Adjust.
16799 * amd64-fbsd-tdep.c: Include "inferior.h".
16800 (amd64fbsd_get_thread_local_address): Pass down target.
16801 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
16802 thread's gdbarch instead of target_gdbarch.
16803 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
16804 get_last_target_status.
16805 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
16806 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
16807 inferiors.
16808 (update_inserted_breakpoint_locations): Skip if inferiors with no
16809 execution.
16810 (update_global_location_list): When handling moribund locations,
16811 find representative inferior for location's pspace, and use thread
16812 count of its process_stratum target.
16813 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
16814 * bsd-uthread.c (bsd_uthread_target::wait): Use
16815 as_process_stratum_target and adjust thread_change_ptid and
16816 add_thread calls.
16817 (bsd_uthread_target::update_thread_list): Use
16818 as_process_stratum_target and adjust find_thread_ptid,
16819 thread_change_ptid and add_thread calls.
16820 * btrace.c (maint_btrace_packet_history_cmd): Adjust
16821 find_thread_ptid call.
16822 * corelow.c (add_to_thread_list): Adjust add_thread call.
16823 (core_target_open): Adjust add_thread_silent and thread_count
16824 calls.
16825 (core_target::pid_to_str): Adjust find_inferior_ptid call.
16826 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
16827 * event-top.c (async_disconnect): Pop targets from all inferiors.
16828 * exec.c (add_target_sections): Push exec target on all inferiors
16829 sharing the program space.
16830 (remove_target_sections): Remove the exec target from all
16831 inferiors sharing the program space.
16832 (exec_on_vfork): New.
16833 * exec.h (exec_on_vfork): Declare.
16834 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
16835 Pass it down.
16836 (fbsd_nat_target::update_thread_list): Adjust.
16837 (fbsd_nat_target::resume): Adjust.
16838 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
16839 down.
16840 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
16841 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
16842 get_thread_arch_regcache call.
16843 * fork-child.c (gdb_startup_inferior): Pass target down to
16844 startup_inferior and set_executing.
16845 * gdbthread.h (struct process_stratum_target): Forward declare.
16846 (add_thread, add_thread_silent, add_thread_with_info)
16847 (in_thread_list): Add process_stratum_target parameter.
16848 (find_thread_ptid(inferior*, ptid_t)): New overload.
16849 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
16850 parameter.
16851 (all_threads()): Delete overload.
16852 (all_threads, all_non_exited_threads): Add process_stratum_target
16853 parameter.
16854 (all_threads_safe): Use brace initialization.
16855 (thread_count): Add process_stratum_target parameter.
16856 (set_resumed, set_running, set_stop_requested, set_executing)
16857 (threads_are_executing, finish_thread_state): Add
16858 process_stratum_target parameter.
16859 (switch_to_thread): Use is_current_thread.
16860 * i386-fbsd-tdep.c: Include "inferior.h".
16861 (i386fbsd_get_thread_local_address): Pass down target.
16862 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
16863 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
16864 have_inferiors check.
16865 * inf-ptrace.c (inf_ptrace_target::create_inferior)
16866 (inf_ptrace_target::attach): Adjust.
16867 * infcall.c (run_inferior_call): Adjust.
16868 * infcmd.c (run_command_1): Pass target to
16869 scoped_finish_thread_state.
16870 (proceed_thread_callback): Skip inferiors with no execution.
16871 (continue_command): Rename 'all_threads' local to avoid hiding
16872 'all_threads' function. Adjust get_last_target_status call.
16873 (prepare_one_step): Adjust set_running call.
16874 (signal_command): Use user_visible_resume_target. Compare thread
16875 pointers instead of inferior_ptid.
16876 (info_program_command): Adjust to pass down target.
16877 (attach_command): Mark target's 'thread_executing' flag.
16878 (stop_current_target_threads_ns): New, factored out from ...
16879 (interrupt_target_1): ... this. Switch inferior before making
16880 target calls.
16881 * inferior-iter.h
16882 (struct all_inferiors_iterator, struct all_inferiors_range)
16883 (struct all_inferiors_safe_range)
16884 (struct all_non_exited_inferiors_range): Filter on
16885 process_stratum_target too. Remove explicit.
16886 * inferior.c (inferior::inferior): Push dummy target on target
16887 stack.
16888 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
16889 Add process_stratum_target parameter, and pass it down.
16890 (have_live_inferiors): Adjust.
16891 (switch_to_inferior_and_push_target): New.
16892 (add_inferior_command, clone_inferior_command): Handle
16893 "-no-connection" parameter. Use
16894 switch_to_inferior_and_push_target.
16895 (_initialize_inferior): Mention "-no-connection" option in
16896 the help of "add-inferior" and "clone-inferior" commands.
16897 * inferior.h: Include "process-stratum-target.h".
16898 (interrupt_target_1): Use bool.
16899 (struct inferior) <push_target, unpush_target, target_is_pushed,
16900 find_target_beneath, top_target, process_target, target_at,
16901 m_stack>: New.
16902 (discard_all_inferiors): Delete.
16903 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
16904 (all_inferiors, all_non_exited_inferiors): Add
16905 process_stratum_target parameter.
16906 * infrun.c: Include "gdb_select.h" and <unordered_map>.
16907 (target_last_proc_target): New global.
16908 (follow_fork_inferior): Push target on new inferior. Pass target
16909 to add_thread_silent. Call exec_on_vfork. Handle target's
16910 reference count.
16911 (follow_fork): Adjust get_last_target_status call. Also consider
16912 target.
16913 (follow_exec): Push target on new inferior.
16914 (struct execution_control_state) <target>: New field.
16915 (user_visible_resume_target): New.
16916 (do_target_resume): Call target_async.
16917 (resume_1): Set target's threads_executing flag. Consider resume
16918 target.
16919 (commit_resume_all_targets): New.
16920 (proceed): Also consider resume target. Skip threads of inferiors
16921 with no execution. Commit resumtion in all targets.
16922 (start_remote): Pass current inferior to wait_for_inferior.
16923 (infrun_thread_stop_requested): Consider target as well. Pass
16924 thread_info pointer to clear_inline_frame_state instead of ptid.
16925 (infrun_thread_thread_exit): Consider target as well.
16926 (random_pending_event_thread): New inferior parameter. Use it.
16927 (do_target_wait): Rename to ...
16928 (do_target_wait_1): ... this. Add inferior parameter, and pass it
16929 down.
16930 (threads_are_resumed_pending_p, do_target_wait): New.
16931 (prepare_for_detach): Adjust calls.
16932 (wait_for_inferior): New inferior parameter. Handle it. Use
16933 do_target_wait_1 instead of do_target_wait.
16934 (fetch_inferior_event): Adjust. Switch to representative
16935 inferior. Pass target down.
16936 (set_last_target_status): Add process_stratum_target parameter.
16937 Save target in global.
16938 (get_last_target_status): Add process_stratum_target parameter and
16939 handle it.
16940 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
16941 (context_switch): Check inferior_ptid == null_ptid before calling
16942 inferior_thread().
16943 (get_inferior_stop_soon): Pass down target.
16944 (wait_one): Rename to ...
16945 (poll_one_curr_target): ... this.
16946 (struct wait_one_event): New.
16947 (wait_one): New.
16948 (stop_all_threads): Adjust.
16949 (handle_no_resumed, handle_inferior_event): Adjust to consider the
16950 event's target.
16951 (switch_back_to_stepped_thread): Also consider target.
16952 (print_stop_event): Update.
16953 (normal_stop): Update. Also consider the resume target.
16954 * infrun.h (wait_for_inferior): Remove declaration.
16955 (user_visible_resume_target): New declaration.
16956 (get_last_target_status, set_last_target_status): New
16957 process_stratum_target parameter.
16958 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16959 process_stratum_target parameter, and use it.
16960 (clear_inline_frame_state (thread_info*)): New.
16961 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16962 process_stratum_target parameter.
16963 (clear_inline_frame_state (thread_info*)): Declare.
16964 * linux-fork.c (delete_checkpoint_command): Pass target down to
16965 find_thread_ptid.
16966 (checkpoint_command): Adjust.
16967 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
16968 instead of just tweaking inferior_ptid.
16969 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
16970 (exit_lwp): Pass target down to find_thread_ptid.
16971 (attach_proc_task_lwp_callback): Pass target down to
16972 add_thread/set_running/set_executing.
16973 (linux_nat_target::attach): Pass target down to
16974 thread_change_ptid.
16975 (get_detach_signal): Pass target down to find_thread_ptid.
16976 Consider last target status's target.
16977 (linux_resume_one_lwp_throw, resume_lwp)
16978 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
16979 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
16980 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
16981 (linux_nat_target::async_wait_fd): New.
16982 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
16983 target down.
16984 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
16985 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
16986 * linux-thread-db.c (struct thread_db_info::process_target): New
16987 field.
16988 (add_thread_db_info): Save target.
16989 (get_thread_db_info): New process_stratum_target parameter. Also
16990 match target.
16991 (delete_thread_db_info): New process_stratum_target parameter.
16992 Also match target.
16993 (thread_from_lwp): Adjust to pass down target.
16994 (thread_db_notice_clone): Pass down target.
16995 (check_thread_db_callback): Pass down target.
16996 (try_thread_db_load_1): Always push the thread_db target.
16997 (try_thread_db_load, record_thread): Pass target down.
16998 (thread_db_target::detach): Pass target down. Always unpush the
16999 thread_db target.
17000 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
17001 target down. Always unpush the thread_db target.
17002 (find_new_threads_callback, thread_db_find_new_threads_2)
17003 (thread_db_target::update_thread_list): Pass target down.
17004 (thread_db_target::pid_to_str): Pass current inferior down.
17005 (thread_db_target::get_thread_local_address): Pass target down.
17006 (thread_db_target::resume, maintenance_check_libthread_db): Pass
17007 target down.
17008 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
17009 * procfs.c (procfs_target::procfs_init_inferior): Declare.
17010 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
17011 (procfs_init_inferior): Rename to ...
17012 (procfs_target::procfs_init_inferior): ... this and adjust.
17013 (procfs_target::create_inferior, procfs_notice_thread)
17014 (procfs_do_thread_registers): Adjust.
17015 * ppc-fbsd-tdep.c: Include "inferior.h".
17016 (ppcfbsd_get_thread_local_address): Pass down target.
17017 * proc-service.c (ps_xfer_memory): Switch current inferior and
17018 program space as well.
17019 (get_ps_regcache): Pass target down.
17020 * process-stratum-target.c
17021 (process_stratum_target::thread_address_space)
17022 (process_stratum_target::thread_architecture): Pass target down.
17023 * process-stratum-target.h
17024 (process_stratum_target::threads_executing): New field.
17025 (as_process_stratum_target): New.
17026 * ravenscar-thread.c
17027 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
17028 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
17029 down.
17030 * record-btrace.c (record_btrace_target::info_record): Adjust.
17031 (record_btrace_target::record_method)
17032 (record_btrace_target::record_is_replaying)
17033 (record_btrace_target::fetch_registers)
17034 (get_thread_current_frame_id, record_btrace_target::resume)
17035 (record_btrace_target::wait, record_btrace_target::stop): Pass
17036 target down.
17037 * record-full.c (record_full_wait_1): Switch to event thread.
17038 Pass target down.
17039 * regcache.c (regcache::regcache)
17040 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
17041 process_stratum_target parameter and handle it.
17042 (current_thread_target): New global.
17043 (get_thread_regcache): Add process_stratum_target parameter and
17044 handle it. Switch inferior before calling target method.
17045 (get_thread_regcache): Pass target down.
17046 (get_thread_regcache_for_ptid): Pass target down.
17047 (registers_changed_ptid): Add process_stratum_target parameter and
17048 handle it.
17049 (registers_changed_thread, registers_changed): Pass target down.
17050 (test_get_thread_arch_aspace_regcache): New.
17051 (current_regcache_test): Define a couple local test_target_ops
17052 instances and use them for testing.
17053 (readwrite_regcache): Pass process_stratum_target parameter.
17054 (cooked_read_test, cooked_write_test): Pass mock_target down.
17055 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
17056 (get_thread_arch_aspace_regcache): Add process_stratum_target
17057 parameter.
17058 (regcache::target): New method.
17059 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
17060 (regcache::registers_changed_ptid): Add process_stratum_target
17061 parameter.
17062 (regcache::m_target): New field.
17063 (registers_changed_ptid): Add process_stratum_target parameter.
17064 * remote.c (remote_state::supports_vCont_probed): New field.
17065 (remote_target::async_wait_fd): New method.
17066 (remote_unpush_and_throw): Add remote_target parameter.
17067 (get_current_remote_target): Adjust.
17068 (remote_target::remote_add_inferior): Push target.
17069 (remote_target::remote_add_thread)
17070 (remote_target::remote_notice_new_inferior)
17071 (get_remote_thread_info): Pass target down.
17072 (remote_target::update_thread_list): Skip threads of inferiors
17073 bound to other targets. (remote_target::close): Don't discard
17074 inferiors. (remote_target::add_current_inferior_and_thread)
17075 (remote_target::process_initial_stop_replies)
17076 (remote_target::start_remote)
17077 (remote_target::remote_serial_quit_handler): Pass down target.
17078 (remote_target::remote_unpush_target): New remote_target
17079 parameter. Unpush the target from all inferiors.
17080 (remote_target::remote_unpush_and_throw): New remote_target
17081 parameter. Pass it down.
17082 (remote_target::open_1): Check whether the current inferior has
17083 execution instead of checking whether any inferior is live. Pass
17084 target down.
17085 (remote_target::remote_detach_1): Pass down target. Use
17086 remote_unpush_target.
17087 (extended_remote_target::attach): Pass down target.
17088 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
17089 (remote_target::append_resumption): Pass down target.
17090 (remote_target::append_pending_thread_resumptions)
17091 (remote_target::remote_resume_with_hc, remote_target::resume)
17092 (remote_target::commit_resume): Pass down target.
17093 (remote_target::remote_stop_ns): Check supports_vCont_probed.
17094 (remote_target::interrupt_query)
17095 (remote_target::remove_new_fork_children)
17096 (remote_target::check_pending_events_prevent_wildcard_vcont)
17097 (remote_target::remote_parse_stop_reply)
17098 (remote_target::process_stop_reply): Pass down target.
17099 (first_remote_resumed_thread): New remote_target parameter. Pass
17100 it down.
17101 (remote_target::wait_as): Pass down target.
17102 (unpush_and_perror): New remote_target parameter. Pass it down.
17103 (remote_target::readchar, remote_target::remote_serial_write)
17104 (remote_target::getpkt_or_notif_sane_1)
17105 (remote_target::kill_new_fork_children, remote_target::kill): Pass
17106 down target.
17107 (remote_target::mourn_inferior): Pass down target. Use
17108 remote_unpush_target.
17109 (remote_target::core_of_thread)
17110 (remote_target::remote_btrace_maybe_reopen): Pass down target.
17111 (remote_target::pid_to_exec_file)
17112 (remote_target::thread_handle_to_thread_info): Pass down target.
17113 (remote_target::async_wait_fd): New.
17114 * riscv-fbsd-tdep.c: Include "inferior.h".
17115 (riscv_fbsd_get_thread_local_address): Pass down target.
17116 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
17117 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
17118 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
17119 Adjust.
17120 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
17121 * solib-svr4.c (enable_break): Pass down target.
17122 * spu-multiarch.c (parse_spufs_run): Pass down target.
17123 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
17124 * target-delegates.c: Regenerate.
17125 * target.c (g_target_stack): Delete.
17126 (current_top_target): Return the current inferior's top target.
17127 (target_has_execution_1): Refer to the passed-in inferior's top
17128 target.
17129 (target_supports_terminal_ours): Check whether the initial
17130 inferior was already created.
17131 (decref_target): New.
17132 (target_stack::push): Incref/decref the target.
17133 (push_target, push_target, unpush_target): Adjust.
17134 (target_stack::unpush): Defref target.
17135 (target_is_pushed): Return bool. Adjust to refer to the current
17136 inferior's target stack.
17137 (dispose_inferior): Delete, and inline parts ...
17138 (target_preopen): ... here. Only dispose of the current inferior.
17139 (target_detach): Hold strong target reference while detaching.
17140 Pass target down.
17141 (target_thread_name): Add assertion.
17142 (target_resume): Pass down target.
17143 (target_ops::beneath, find_target_at): Adjust to refer to the
17144 current inferior's target stack.
17145 (get_dummy_target): New.
17146 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
17147 has a thread running.
17148 (initialize_targets): Rename to ...
17149 (_initialize_target): ... this.
17150 * target.h: Include "gdbsupport/refcounted-object.h".
17151 (struct target_ops): Inherit refcounted_object.
17152 (target_ops::shortname, target_ops::longname): Make const.
17153 (target_ops::async_wait_fd): New method.
17154 (decref_target): Declare.
17155 (struct target_ops_ref_policy): New.
17156 (target_ops_ref): New typedef.
17157 (get_dummy_target): Declare function.
17158 (target_is_pushed): Return bool.
17159 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
17160 (all_matching_threads_iterator::all_matching_threads_iterator):
17161 Handle filter target.
17162 * thread-iter.h (struct all_matching_threads_iterator, struct
17163 all_matching_threads_range, class all_non_exited_threads_range):
17164 Filter by target too. Remove explicit.
17165 * thread.c (threads_executing): Delete.
17166 (inferior_thread): Pass down current inferior.
17167 (clear_thread_inferior_resources): Pass down thread pointer
17168 instead of ptid_t.
17169 (add_thread_silent, add_thread_with_info, add_thread): Add
17170 process_stratum_target parameter. Use it for thread and inferior
17171 searches.
17172 (is_current_thread): New.
17173 (thread_info::deletable): Use it.
17174 (find_thread_ptid, thread_count, in_thread_list)
17175 (thread_change_ptid, set_resumed, set_running): New
17176 process_stratum_target parameter. Pass it down.
17177 (set_executing): New process_stratum_target parameter. Pass it
17178 down. Adjust reference to 'threads_executing'.
17179 (threads_are_executing): New process_stratum_target parameter.
17180 Adjust reference to 'threads_executing'.
17181 (set_stop_requested, finish_thread_state): New
17182 process_stratum_target parameter. Pass it down.
17183 (switch_to_thread): Also match inferior.
17184 (switch_to_thread): New process_stratum_target parameter. Pass it
17185 down.
17186 (update_threads_executing): Reimplement.
17187 * top.c (quit_force): Pop targets from all inferior.
17188 (gdb_init): Don't call initialize_targets.
17189 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
17190 Declare.
17191 (windows_add_thread, windows_delete_thread): Adjust.
17192 (get_windows_debug_event): Rename to ...
17193 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
17194 * tracefile-tfile.c (tfile_target_open): Pass down target.
17195 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
17196 Forward declare.
17197 (switch_to_thread): Add process_stratum_target parameter.
17198 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
17199 parameter. Use it.
17200 (mi_on_resume): Pass target down.
17201 * nat/fork-inferior.c (startup_inferior): Add
17202 process_stratum_target parameter. Pass it down.
17203 * nat/fork-inferior.h (startup_inferior): Add
17204 process_stratum_target parameter.
17205 * python/py-threadevent.c (py_get_event_thread): Pass target down.
17206
75c6c844
PA
172072020-01-10 Pedro Alves <palves@redhat.com>
17208
17209 * remote.c (remote_target::start_remote): Don't set inferior_ptid
17210 directly. Instead find the first thread in the thread list and
17211 use switch_to_thread.
17212
78f2c40a
PA
172132020-01-10 Pedro Alves <palves@redhat.com>
17214
17215 * remote.c (remote_target::remote_add_inferior): Don't bind a
17216 process to the current inferior if the current inferior is already
17217 bound to a process.
17218
e7af6c70
TBA
172192020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17220 Pedro Alves <palves@redhat.com>
17221
17222 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
17223 If no process is specified, return null_ptid instead of
17224 inferior_ptid.
17225 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
17226 TARGET_WAITKIND_SIGNALLED with no pid.
17227
31ba933e
PA
172282020-01-10 Pedro Alves <palves@redhat.com>
17229
17230 * remote.c (first_remote_resumed_thread): New.
17231 (remote_target::wait_as): Use it as default event_ptid instead of
17232 inferior_ptid.
17233
735fc2ca
PA
172342020-01-10 Pedro Alves <palves@redhat.com>
17235
17236 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
17237
c17e02e1
PA
172382020-01-10 Pedro Alves <palves@redhat.com>
17239
17240 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
17241 not -1.
17242
ab1ddbcf
PA
172432020-01-10 Pedro Alves <palves@redhat.com>
17244
17245 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
17246 ptid to get_last_target_status.
17247 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
17248 ptid to get_last_target_status.
17249 * infcmd.c (continue_command): Don't pass a target_waitstatus to
17250 get_last_target_status.
17251 (info_program_command): Don't pass a target_waitstatus to
17252 get_last_target_status.
17253 * infrun.c (init_wait_for_inferior): Use
17254 nullify_last_target_wait_ptid.
17255 (get_last_target_status): Handle nullptr arguments.
17256 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
17257 (print_stop_event): Don't pass a ptid to get_last_target_status.
17258 (normal_stop): Don't pass a ptid to get_last_target_status.
17259 * infrun.h (get_last_target_status, set_last_target_status): Move
17260 comments here and update.
17261 (nullify_last_target_wait_ptid): Declare.
17262 * linux-fork.c (fork_load_infrun_state): Remove local extern
17263 declaration of nullify_last_target_wait_ptid.
17264 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
17265 to get_last_target_status.
17266
f3f8ece4
PA
172672020-01-10 Pedro Alves <palves@redhat.com>
17268
17269 * gdbthread.h (scoped_restore_current_thread)
17270 <dont_restore, restore, m_dont_restore>: Declare.
17271 * thread.c (thread_alive): Add assertion. Return bool.
17272 (switch_to_thread_if_alive): New.
17273 (prune_threads): Switch inferior/thread.
17274 (print_thread_info_1): Switch thread before calling target methods.
17275 (scoped_restore_current_thread::restore): New, factored out from
17276 ...
17277 (scoped_restore_current_thread::~scoped_restore_current_thread):
17278 ... this.
17279 (scoped_restore_current_thread::scoped_restore_current_thread):
17280 Add assertion.
17281 (thread_apply_all_command, thread_select): Use
17282 switch_to_thread_if_alive.
17283 * infrun.c (proceed, restart_threads, handle_signal_stop)
17284 (switch_back_to_stepped_thread): Switch current thread before
17285 calling target methods.
17286
db2d40f7
PA
172872020-01-10 Pedro Alves <palves@redhat.com>
17288
17289 * inferior.c (switch_to_inferior_no_thread): New function,
17290 factored out from ...
17291 (inferior_command): ... here.
17292 * inferior.h (switch_to_inferior_no_thread): Declare.
17293 * mi/mi-main.c (run_one_inferior): Use
17294 switch_to_inferior_no_thread.
17295
bd420a2d
PA
172962020-01-10 Pedro Alves <palves@redhat.com>
17297
17298 * infcmd.c (kill_command): Remove dead code.
17299
ddf5db90
PA
173002020-01-10 Pedro Alves <palves@redhat.com>
17301
17302 * remote.c (remote_target::mourn_inferior): No longer check
17303 whether the target is running.
17304
5018ce90
PA
173052020-01-10 Pedro Alves <palves@redhat.com>
17306
17307 * corelow.c (core_target::has_execution): Change parameter type to
17308 inferior pointer.
17309 * inferior.c (number_of_live_inferiors): Use
17310 inferior::has_execution instead of target_has_execution_1.
17311 * inferior.h (inferior::has_execution): New.
17312 * linux-thread-db.c (thread_db_target::update_thread_list): Use
17313 inferior::has_execution instead of target_has_execution_1.
17314 * process-stratum-target.c
17315 (process_stratum_target::has_execution): Change parameter type to
17316 inferior pointer. Check the inferior's PID instead of
17317 inferior_ptid.
17318 * process-stratum-target.h
17319 (process_stratum_target::has_execution): Change parameter type to
17320 inferior pointer.
17321 * record-full.c (record_full_core_target::has_execution): Change
17322 parameter type to inferior pointer.
17323 * target.c (target_has_execution_1): Change parameter type to
17324 inferior pointer.
17325 (target_has_execution_current): Adjust.
17326 * target.h (target_ops::has_execution): Change parameter type to
17327 inferior pointer.
17328 (target_has_execution_1): Change parameter type to inferior
17329 pointer. Change return type to bool.
17330 * tracefile.h (tracefile_target::has_execution): Change parameter
17331 type to inferior pointer.
17332
74375d18
PA
173332020-01-10 Pedro Alves <palves@redhat.com>
17334
17335 * exceptions.c (print_flush): Remove current_top_target() check.
17336
acdf84a6
PA
173372020-01-10 Pedro Alves <palves@redhat.com>
17338
17339 * remote.c (show_remote_exec_file): Show the current inferior's
17340 exec-file instead of the command variable's value.
17341
ec506636
PA
173422020-01-10 Pedro Alves <palves@redhat.com>
17343
17344 * record-full.c (record_full_resume_ptid): New global.
17345 (record_full_target::resume): Set it.
17346 (record_full_wait_1): Use record_full_resume_ptid instead of
17347 inferior_ptid.
17348
873657b9
PA
173492020-01-10 Pedro Alves <palves@redhat.com>
17350
17351 * gdbthread.h (scoped_restore_current_thread)
17352 <dont_restore, restore, m_dont_restore>: Declare.
17353 * thread.c (thread_alive): Add assertion. Return bool.
17354 (switch_to_thread_if_alive): New.
17355 (prune_threads): Switch inferior/thread.
17356 (print_thread_info_1): Switch thread before calling target methods.
17357 (scoped_restore_current_thread::restore): New, factored out from
17358 ...
17359 (scoped_restore_current_thread::~scoped_restore_current_thread):
17360 ... this.
17361 (scoped_restore_current_thread::scoped_restore_current_thread):
17362 Add assertion.
17363 (thread_apply_all_command, thread_select): Use
17364 switch_to_thread_if_alive.
17365
7f0ae84c
GB
173662020-01-10 George Barrett <bob@bob131.so>
17367
17368 * stap-probe.c (stap_modify_semaphore): Don't check for null
17369 semaphores.
17370 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
17371 for null semaphores.
17372
f5a7c406
AB
173732020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17374
17375 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
17376 all source windows, and maintain horizontal scroll status while
17377 doing so.
17378
9ae6bf64
TT
173792020-01-09 Tom Tromey <tom@tromey.com>
17380
17381 PR tui/18932:
17382 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
17383 update_source_window, not print_source_lines.
17384
b2efe70c
AB
173852020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17386
17387 * tui/tui.c (tui_enable): Register tui hooks after calling
17388 tui_display_main.
17389
5f23a082
CB
173902020-01-09 Christian Biesinger <cbiesinger@google.com>
17391
17392 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
17393
3061113b
SM
173942020-01-08 Simon Marchi <simon.marchi@efficios.com>
17395
17396 * thread.c (print_thread_info_1): Fix indentation.
17397
57d75002
CB
173982020-01-09 Christian Biesinger <cbiesinger@google.com>
17399
17400 * symtab.c (general_symbol_info::compute_and_set_names): Move the
17401 unique_xmalloc_ptr outside the if to always free the demangled name.
17402
6a053cb1
TT
174032020-01-08 Tom Tromey <tromey@adacore.com>
17404
17405 * xcoffread.c (enter_line_range, read_xcoff_symtab)
17406 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
17407 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
17408 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
17409 Remove.
17410 (section_offsets): New typedef.
17411 * symtab.c (fixup_section, get_msymbol_address): Update.
17412 * symmisc.c (dump_msymbols): Update.
17413 * symfile.h (relative_addr_info_to_section_offsets)
17414 (symfile_map_offsets_to_segments): Update.
17415 * symfile.c (build_section_addr_info_from_objfile)
17416 (init_objfile_sect_indices): Update.
17417 (struct place_section_arg): Change type of "offsets".
17418 (place_section): Update.
17419 (relative_addr_info_to_section_offsets): Change type of
17420 "section_offsets". Remove "num_sections" parameter.
17421 (default_symfile_offsets, syms_from_objfile_1)
17422 (set_objfile_default_section_offset): Update.
17423 (reread_symbols): No need to preserve section offsets by hand.
17424 (symfile_map_offsets_to_segments): Change type of "offsets".
17425 * stap-probe.c (relocate_address): Update.
17426 * stabsread.h (process_one_symbol): Update.
17427 * solib-target.c (struct lm_info_target) <offsets>: Change type.
17428 (solib_target_relocate_section_addresses): Update.
17429 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
17430 Update.
17431 * solib-frv.c (frv_relocate_main_executable): Update.
17432 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
17433 * solib-aix.c (solib_aix_get_section_offsets): Change return
17434 type.
17435 (solib_aix_solib_create_inferior_hook): Update.
17436 * remote.c (remote_target::get_offsets): Update.
17437 * psymtab.c (find_pc_sect_psymtab): Update.
17438 * psympriv.h (struct partial_symbol) <address, text_low,
17439 text_high>: Update.
17440 * objfiles.h (obj_section_offset): Update.
17441 (struct objfile) <section_offsets>: Change type.
17442 <num_sections>: Remove.
17443 (objfile_relocate): Update.
17444 * objfiles.c (entry_point_address_query): Update
17445 (relocate_one_symbol): Change type of "section_offsets".
17446 (objfile_relocate1, objfile_relocate1): Change type of
17447 "new_offsets".
17448 (objfile_rebase1): Update.
17449 * mipsread.c (mipscoff_symfile_read): Update.
17450 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
17451 parameter.
17452 * mdebugread.c (parse_symbol): Change type of "section_offsets".
17453 (parse_external, psymtab_to_symtab_1): Update.
17454 * machoread.c (macho_symfile_offsets): Update.
17455 * ia64-tdep.c (ia64_find_unwind_table): Update.
17456 * hppa-tdep.c (read_unwind_info): Update.
17457 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
17458 * dwarf2read.c (create_addrmap_from_index)
17459 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
17460 (process_psymtab_comp_unit_reader, add_partial_symbol)
17461 (add_partial_subprogram, process_full_comp_unit)
17462 (read_file_scope, read_func_scope, read_lexical_block_scope)
17463 (read_call_site_scope, dwarf2_rnglists_process)
17464 (dwarf2_ranges_process, dwarf2_ranges_read)
17465 (dwarf_decode_lines_1, var_decode_location, new_symbol)
17466 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
17467 Update.
17468 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
17469 Update.
17470 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
17471 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
17472 (process_one_symbol): Change type of "section_offsets".
17473 * ctfread.c (get_objfile_text_range): Update.
17474 * coffread.c (coff_symtab_read, enter_linenos)
17475 (process_coff_symbol): Update.
17476 * coff-pe-read.c (add_pe_forwarded_sym): Update.
17477 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
17478
456e800a
TT
174792020-01-08 Tom Tromey <tromey@adacore.com>
17480
17481 * dwarf2read.c (parse_macro_definition): Use std::string.
17482 (parse_macro_definition): Likewise.
17483
6dfa2fc2
TT
174842020-01-08 Tom Tromey <tromey@adacore.com>
17485
17486 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
17487 (ATTR_ALLOC_CHUNK): Remove.
17488
421d1616
TT
174892020-01-08 Tom Tromey <tromey@adacore.com>
17490
17491 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
17492
43816ebc
TT
174932020-01-08 Tom Tromey <tromey@adacore.com>
17494
17495 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
17496 (dwarf2_compute_name, open_dwo_file): Likewise.
17497 (process_enumeration_scope): Use std::vector.
17498 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
17499 (partial_die_info::fixup, dwarf2_start_subfile)
17500 (guess_full_die_structure_name, dwarf2_name): Likewise.
17501 (determine_prefix): Update.
17502 (guess_full_die_structure_name): Make return type const.
17503 (partial_die_full_name): Return unique_xmalloc_ptr.
17504 (DW_FIELD_ALLOC_CHUNK): Remove.
17505
4212d509
TT
175062020-01-07 Tom Tromey <tromey@adacore.com>
17507
17508 PR build/24937:
17509 * stap-probe.c (class stap_static_probe_ops): Add constructor.
17510
06a6207a
JT
175112020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17512
17513 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
17514
153d79c4
AB
175152020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
17516
17517 * stack.c (print_frame_info): Move disassemble_next_line code
17518 inside source_print block.
17519
66182876
EZ
175202020-01-06 Eli Zaretskii <eliz@gnu.org>
17521
17522 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
17523 gdb/signals.h, as we are now using native signal symbols.
17524
cbfa8581
SV
175252020-01-06 Shahab Vahedi <shahab@synopsys.com>
17526
17527 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
17528 overflow by an early check of content vs threshold.
aac66a4c 17529 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
17530 Likewise.
17531
3f602821
EZ
175322020-01-06 Eli Zaretskii <eliz@gnu.org>
17533
17534 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
17535
a08c904d
JT
175362020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17537
17538 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
17539 export table if no section contains it's RVA.
17540
89a65580
EZ
175412020-01-06 Eli Zaretskii <eliz@gnu.org>
17542
17543 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
17544
8b7fcda2
HD
175452020-01-06 Hannes Domani <ssbssa@yahoo.de>
17546
17547 * source.c (print_source_lines_base): Set last_line_listed.
17548
a61b4f69
SV
175492020-01-06 Shahab Vahedi <shahab@synopsys.com>
17550
17551 * tui/tui-disasm.c: Remove trailing spaces.
17552
559e7e50
EZ
175532020-01-06 Eli Zaretskii <eliz@gnu.org>
17554 Pedro Alves <palves@redhat.com>
17555
17556 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
17557 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
17558 (windows_gdb_signal_to_target): New function, uses the above
17559 enumeration to convert GDB internal signal codes to equivalent
17560 Windows codes.
17561 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
17562 * windows-nat.c: Include "gdb_wait.h".
17563 (get_windows_debug_event): Extract the fatal exception from the
17564 exit status and convert to the equivalent Posix signal number.
17565 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
17566 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
17567 * gdbsupport/gdb_wait.c: New file, implements
17568 windows_status_to_termsig.
17569 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
17570 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
17571
f2302a34
AB
175722020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
17573
17574 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
17575 show_layout.
17576
6a5206eb
LM
175772020-01-05 Luis Machado <luis.machado@linaro.org>
17578
17579 * aarch64-linux-nat.c
17580 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
17581 and bfd_mach_aarch64.
17582
6ec1d75e
PW
175832020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17584
17585 * ui-file.c (stdio_file::can_emit_style_escape)
17586 (tee_file::can_emit_style_escape): Ensure style is used also on
17587 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
17588 to gdb_stdout.
17589 * main.c (set_gdb_data_directory): Use file style to output the
17590 warning that the given pathname is not a directory.
17591 * top.c (show_history_filename, gdb_safe_append_history)
17592 (show_gdb_datadir): Use file style.
17593
44f81a76
HD
175942020-01-03 Hannes Domani <ssbssa@yahoo.de>
17595
17596 * solib-target.c (struct lm_info_target):
17597 Change offsets to be a unique_xmalloc_ptr.
17598 (solib_target_relocate_section_addresses): Update.
17599
25057eb0
HD
176002020-01-03 Hannes Domani <ssbssa@yahoo.de>
17601
17602 * windows-nat.c (windows_clear_solib): Free so_list linked list.
17603
6e2118f5
BE
176042020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
17605
17606 * MAINTAINERS (Write After Approval): Add myself.
17607
8133c7dc
LM
176082020-01-02 Luis Machado <luis.machado@linaro.org>
17609
17610 * proc-service.c (get_ps_regcache): Remove reference to obsolete
17611 Cell BE architecture.
17612 * target.h (struct target_ops) <thread_architecture>: Likewise.
17613
48189bec
HD
176142020-01-01 Hannes Domani <ssbssa@yahoo.de>
17615
17616 * Makefile.in: Use INSTALL_PROGRAM_ENV.
17617
ead1063b
HD
176182020-01-01 Hannes Domani <ssbssa@yahoo.de>
17619
17620 * MAINTAINERS (Write After Approval): Add myself.
17621
e5d78223
JB
176222020-01-01 Joel Brobecker <brobecker@adacore.com>
17623
17624 * gdbarch.sh: Update copyright year range of generated files.
17625
b811d2c2
JB
176262020-01-01 Joel Brobecker <brobecker@adacore.com>
17627
17628 Update copyright year range in all GDB files.
17629
5f4def5c
JB
176302020-01-01 Joel Brobecker <brobecker@adacore.com>
17631
17632 * copyright.py: Convert to Python 3.
17633
51fd4002
JB
176342020-01-01 Joel Brobecker <brobecker@adacore.com>
17635
17636 * copyright.py: Adapt after move of gnulib directory from gdb
17637 directory to toplevel directory.
17638
5fb651f2
JB
176392020-01-01 Joel Brobecker <brobecker@adacore.com>
17640
17641 * copyright.py (main): Exit if run from the wrong directory.
17642
5dd8bf88
JB
176432020-01-01 Joel Brobecker <brobecker@adacore.com>
17644
17645 * top.c (print_gdb_version): Change copyright year to 2020.
17646
9f71dacb 176472020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 17648
9f71dacb 17649 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 17650
9f71dacb 17651For older changes see ChangeLog-2019.
c906108c
SS
17652\f
17653Local Variables:
17654mode: change-log
17655left-margin: 8
17656fill-column: 74
17657version-control: never
57da7796 17658coding: utf-8
c906108c 17659End: