gdb: rename displaced_step_fixup to displaced_step_finish
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
7def77a1
SM
12020-12-04 Simon Marchi <simon.marchi@efficios.com>
2
3 * infrun.c (displaced_step_fixup): Rename to...
4 (displaced_step_finish): ... this, update all callers.
5
1152d984
SM
62020-12-04 Simon Marchi <simon.marchi@efficios.com>
7
8 * infrun.h (get_displaced_step_closure_by_addr): Rename to...
9 (get_displaced_step_copy_insn_closure_by_addr): ... this.
10 Update all users.
11 (displaced_step_closure): Rename to...
12 (displaced_step_copy_insn_closure): ... this. Update all users.
13 (displaced_step_closure_up): Rename to...
14 (displaced_step_copy_insn_closure_up). ... this. Update all
15 users.
16 (buf_displaced_step_closure): Rename to...
17 (buf_displaced_step_copy_insn_closure): ... this. Update all
18 users.
19 * infrun.c (get_displaced_step_closure_by_addr): Rename to...
20 (get_displaced_step_copy_insn_closure_by_addr): ... this.
21 Update all users.
22 * aarch64-tdep.c (aarch64_displaced_step_closure): Rename to...
23 (aarch64_displaced_step_copy_insn_closure): ... this. Update
24 all users.
25 * amd64-tdep.c (amd64_displaced_step_closure): Rename to...
26 (amd64_displaced_step_copy_insn_closure): ... this. Update all
27 users.
28 * arm-tdep.h (arm_displaced_step_closure): Rename to...
29 (arm_displaced_step_copy_insn_closure): ... this. Update all
30 users.
31 * i386-tdep.h (i386_displaced_step_closure): Rename to...
32 (i386_displaced_step_copy_insn_closure): ... this. Update all
33 users.
34 * rs6000-tdep.c (ppc_displaced_step_closure): Rename to...
35 (ppc_displaced_step_copy_insn_closure): ... this. Update all
36 users.
37 * s390-tdep.c (s390_displaced_step_closure): Rename to...
38 (s390_displaced_step_copy_insn_closure): ... this. Update all
39 users.
40 * gdbarch.h: Re-generate.
41 * gdbarch.c: Re-generate.
42
28d5518b
SM
432020-12-04 Simon Marchi <simon.marchi@efficios.com>
44
45 * gdbthread.h (thread_step_over_chain_enqueue): Rename to...
46 (global_thread_step_over_chain_enqueue): ... this. Update all
47 users.
48 (thread_step_over_chain_remove): Rename to...
49 (global_thread_step_over_chain_remove): ... this. Update all
50 users.
51 (thread_step_over_chain_next): Rename to...
52 (global_thread_step_over_chain_next): ... this. Update all
53 users.
54 * infrun.h (step_over_queue_head): Rename to...
55 (global_thread_step_over_chain_head): ... this. Update all
56 users.
57 * infrun.c (step_over_queue_head): Rename to...
58 (global_thread_step_over_chain_head): ... this. Update all
59 users.
60 * thread.c (step_over_chain_remove): Rename to...
61 (thread_step_over_chain_remove): ... this. Update all users.
62 (thread_step_over_chain_next): Rename to...
63 (global_thread_step_over_chain_next): ... this. Update all
64 users.
65 (thread_step_over_chain_enqueue): Rename to...
66 (global_thread_step_over_chain_enqueue): ... this. Update all
67 users.
68 (thread_step_over_chain_remove): Rename to...
69 (global_thread_step_over_chain_remove): ... this. Update all
70 users.
71
f5f01699
SM
722020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
73
74 * infrun.c (get_displaced_stepping_state): Remove, change
75 callers to access the field directly.
76
c0aba012
SM
772020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
78
79 * infrun.c (handle_inferior_event): Restore displaced step
80 buffer bytes in child process when handling fork, even if fork
81 happened in another thread than the displaced-stepping one.
82
3b7a962d
SM
832020-12-04 Simon Marchi <simon.marchi@efficios.com>
84
85 * infrun.c (infrun_inferior_execd): New function.
86 (_initialize_infrun): Attach inferior_execd observer.
87
42a4fec5
SM
882020-12-04 Simon Marchi <simon.marchi@efficios.com>
89
90 * observable.h (inferior_execd): Declare new observable.
91 * observable.c (inferior_execd): Declare new observable.
92 * infrun.c (follow_exec): Notify inferior_execd observer.
93 * jit.c (jit_inferior_created_hook): Make static.
94 (_initialize_jit): Register inferior_execd observer.
95 * jit.h (jit_inferior_created_hook): Remove declaration.
96 * solib.c (_initialize_solib): Register inferior_execd observer.
97
aafdfb4e
TV
982020-12-04 Tom de Vries <tdevries@suse.de>
99
100 PR gdb/27003
101 * completer.c (completion_tracker::build_completion_result): Don't
102 access match_list[0][-1].
103
f99b5177
TT
1042020-12-04 Tom Tromey <tromey@adacore.com>
105
106 * linespec.c (struct linespec_token): Rename; remove typedef.
107 * guile/scm-block.c (struct block_smob): Remove typedef.
108 (struct block_syms_progress_smob): Likewise.
109 * guile/scm-symbol.c (struct symbol_smob): Remove typedef.
110 * guile/scm-symtab.c (symtab_smob): Remove typedef.
111 (struct sal_smob): Remove typedef.
112 * guile/scm-param.c (struct param_smob): Remove typedef.
113 * guile/scm-progspace.c (struct pspace_smob): Rename.
114 * guile/scm-objfile.c (struct objfile_smob): Rename.
115 * guile/scm-iterator.c (struct iterator_smob): Rename.
116 * guile/scm-frame.c (struct frame_smob): Rename.
117 * guile/scm-arch.c (struct arch_smob): Rename.
118 * guile/scm-type.c (struct field_smob): Remove typedef.
119 (struct type_smob): Rename.
120 * guile/scm-cmd.c (struct command_smob): Remove typedef.
121 * guile/scm-ports.c (struct ioscm_memory_port): Remove typedef.
122 * guile/scm-value.c (struct value_smob): Remove typedef.
123 * guile/scm-lazy-string.c (lazy_string_smob): Remove typedef.
124 * guile/guile-internal.h (struct scheme_variable)
125 (struct scheme_function, struct scheme_integer_constant)
126 (struct gdb_smob, struct chained_gdb_smob)
127 (struct eqable_gdb_smob, arch_smob, frame_smob, iterator_smob)
128 (objfile_smob, pspace_smob, type_smob): Remove typedef.
129 * guile/scm-pretty-print.c (pretty_printer_smob): Remove typedef.
130 (struct pretty_printer_worker_smob): Remove typedef.
131 * guile/scm-exception.c (struct exception_smob): Remove typedef.
132 * python/py-block.c (struct block_object): Remove typedef.
133 (block_syms_iterator_object): Update.
134 (set_block): Update.
135 (block_syms_iterator_object): Remove typedef.
136 * python/py-inferior.c (struct membuf_object): Remove typedef.
137 * python/py-symtab.c (struct symtab_object): Remove typedef.
138 (set_symtab): Update.
139 (sal_object): Remove typedef.
140 (set_sal): Update.
141 * python/py-frame.c (frame_object): Remove typedef.
142 * python/py-record-btrace.c (struct btpy_list_object): Remove
143 typedef.
144 * python/py-arch.c (struct arch_object): Remove typedef.
145 * python/py-linetable.c (struct linetable_entry_object)
146 (linetable_object, struct ltpy_iterator_object): Remove typedef.
147 * python/py-events.h (eventregistry_object): Remove typedef.
148 (struct events_object): Remove typedef.
149 * python/python-internal.h (gdbpy_breakpoint_object): Remove
150 typedef.
151 (thread_object): Remove typedef.
152 * python/py-progspace.c (pspace_object): Remove typedef.
153 * python/py-value.c (struct value_object): Remove typedef.
154 * python/py-record.h (recpy_record_object): Remove typedef.
155 (struct recpy_element_object): Remove typedef.
156 * python/py-lazy-string.c (lazy_string_object): Remove typedef.
157 * python/py-objfile.c (objfile_object): Remove typedef.
158 * python/py-cmd.c (struct cmdpy_object): Remove typedef.
159 * python/py-type.c (type_object): Remove typedef.
160 (typy_iterator_object): Update.
161 (set_type): Update.
162 (field_object): Remove typedef.
163 (typy_iterator_object): Remove typedef.
164 * python/py-registers.c (register_descriptor_iterator_object):
165 Remove typedef.
166 (struct register_descriptor_object)
167 (struct reggroup_iterator_object, struct reggroup_object): Remove
168 typedef.
169 * python/py-record.c (recpy_gap_object): Remove typedef.
170 * python/py-symbol.c (symbol_object): Remove typedef.
171 (set_symbol): Update.
172 * python/py-event.h (event_object): Remove typedef.
173 * python/py-param.c (parmpy_object): Remove typedef.
174 * python/py-instruction.c (struct py_insn_obj): Remove typedef.
175 * python/py-unwind.c (struct pending_frame_object): Remove typedef.
176 (unwind_info_object, struct cached_frame_info): Likewise.
177
91f87213
TT
1782020-12-04 Tom Tromey <tromey@adacore.com>
179
180 * value.c (value_internal_function_name): Make return type const.
181 * value.h (value_internal_function_name): Make return type const.
182
5382f971
LM
1832020-12-04 Luis Machado <luis.machado@linaro.org>
184
185 * aarch64-tdep.c (submask, bit, bits): Remove.
186 * arch/aarch64-insn.c (extract_signed_bitfield): Remove.
187 (aarch64_decode_adr, aarch64_decode_b aarch64_decode_bcond)
188 (aarch64_decode_cb, aarch64_decode_tb)
189 (aarch64_decode_ldr_literal): Use sbits to extract a signed
190 immediate.
191 * arch/aarch64-insn.h (submask, bits, bit, sbits): New macros.
192
b6a6aa07
TV
1932020-12-04 Tom de Vries <tdevries@suse.de>
194
195 PR tdep/27007
196 * i386-tdep.c (i386_16_byte_align_p): Skip static fields.
197
0bc2e38d
SM
1982020-12-03 Simon Marchi <simon.marchi@polymtl.ca>
199
200 PR gdb/26876
201 * dwarf2/frame.c (find_comp_unit, set_comp_unit): Reverse use of
202 dwarf2_frame_bfd_data and dwarf2_frame_objfile_data.
203
25428040
AB
2042020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
205
206 * arch/riscv.c: Include 'rv32e-xregs.c'.
207 (riscv_create_target_description): Update to handle rv32e.
208 * arch/riscv.h (struct riscv_gdbarch_features) <embedded>: New
209 member variable.
210 <operator==>: Update to account for new field.
211 <hash>: Likewise.
212 * features/Makefile (FEATURE_XMLFILES): Add riscv/rv32e-xregs.xml.
213 * features/riscv/rv32e-xregs.c: Generated.
214 * features/riscv/rv32e-xregs.xml: New file.
215 * riscv-tdep.c (riscv_debug_breakpoints): Move from later in the
216 file.
217 (riscv_debug_infcall): Likewise.
218 (riscv_debug_unwinder): Likewise.
219 (riscv_debug_gdbarch): Likewise.
220 (enum riscv_register_required_status): Delete.
221 (struct riscv_register_feature): Add constructor, delete default
222 constructor, copy, and assign constructors.
223 (struct riscv_register_feature::register_info) <required>: Delete.
224 <check>: Update comment and arguments.
225 (struct riscv_register_feature) <name>: Change to member function.
226 <prefer_first_name>: Delete.
227 <tdesc_feature>: New member function.
228 <registers>: Rename to...
229 <m_registers>: ...this.
230 <m_feature_name>: New member variable.
231 (riscv_register_feature::register_info::check): Update arguments.
232 (riscv_xreg_feature): Rewrite as class, create a single static
233 instance of the class.
234 (riscv_freg_feature): Likewise.
235 (riscv_virtual_feature): Likewise.
236 (riscv_csr_feature): Likewise.
237 (riscv_create_csr_aliases): Has become a member function inside
238 riscv_csr_feature class.
239 (riscv_abi_embedded): New function definition.
240 (riscv_register_name): Adjust to use new feature objects.
241 (struct riscv_call_info) <riscv_call_info>: Check for rv32e abi,
242 and adjust available argument registers.
243 (riscv_features_from_gdbarch_info): Check for EF_RISCV_RVE flag.
244 (riscv_check_tdesc_feature): Delete.
245 (riscv_tdesc_unknown_reg): Adjust to use new feature objects.
246 (riscv_gdbarch_init): Delete target description checking code, and
247 instead call to the new feature objects to perform the checks.
248 Reorder handling of no abi information case, allows small code
249 simplification.
250 (_initialize_riscv_tdep): Remove call, this is now done in the
251 riscv_csr_feature constructor.
252 * riscv-tdep.h (riscv_abi_embedded): Declare.
253
533b2ae0
AB
2542020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
255
256 * riscv-tdep.c (riscv_create_csr_aliases): Remove use of
257 DECLARE_CSR_ALIAS.
258
e4502042
AB
2592020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
260
261 * riscv-tdep.c (riscv_is_unknown_csr): New function,
262 implementation moved from riscv_register_reggroup_p.
263 (riscv_register_reggroup_p): Update group handling for unknown
264 CSRs.
265
2bf3b79d
SDJ
2662020-12-01 Sergio Durigan Junior <sergiodj@sergiodj.net>
267
268 * dwarf2/read.c (dwz_search_other_debugdirs): New function.
269 (dwarf2_get_dwz_file): Convert 'filename' to a
270 std::string. Use dwz_search_other_debugdirs to search for DWZ
271 files in the debug-file-directories provided by the user as well.
272
77bf7e99
TT
2732020-12-01 Tom Tromey <tom@tromey.com>
274
275 * parse.c (expr_builder::expr_builder): Initialize expout.
276 (expr_builder::release): Use expression::resize.
277 (expression::expression, expression::~expression)
278 (expression::resize): New methods.
279 (write_exp_elt): Use expression::resize.
280 (prefixify_expression): Update.
281 (increase_expout_size): Use expression::resize.
282 * expression.h (struct expression): Add constructor, destructor.
283 <resize>: New method.
284 (expression_up): Change type.
285
539d71e8
RA
2862020-12-01 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
287 * ppc-linux-nat.c: (PPC_DEBUG_FEATURE_DATA_BP_ARCH_31): New define.
288 (region_ok_for_hw_watchpoint): Check if 2nd DAWR is avaliable before
289 set region.
290
7ce05d21
TV
2912020-11-30 Tom de Vries <tdevries@suse.de>
292
293 PR symtab/26905
294 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add and handle
295 is_reference parameter.
296 (dwarf2_evaluate_property): Update dwarf2_locexpr_baton_eval call.
297
88b91969
TT
2982020-11-30 Tom Tromey <tom@tromey.com>
299
300 * rust-lang.c (rust_op_name): Remove.
301 (exp_descriptor_rust): Update.
302 * parser-defs.h (op_name_standard): Don't declare.
303 (struct exp_descriptor) <op_name>: Remove.
304 * parse.c (exp_descriptor_standard): Update.
305 * opencl-lang.c (exp_descriptor_opencl): Update.
306 * m2-lang.c (m2_language::exp_descriptor_modula2): Update.
307 * f-lang.c (op_name_f): Remove.
308 (f_language::exp_descriptor_tab): Update.
309 * expression.h (op_name): Update.
310 * expprint.c (op_name): Rewrite.
311 (op_name_standard): Remove.
312 (dump_raw_expression, dump_subexp): Update.
313 * c-lang.c (exp_descriptor_c): Update.
314 * ax-gdb.c (gen_expr): Update.
315 * ada-lang.c (ada_op_name): Remove.
316 (ada_exp_descriptor): Update.
317
1cd49c43
TT
3182020-11-30 Tom Tromey <tom@tromey.com>
319
320 * eval.c (init_array_element): Remove.
321 (evaluate_subexp_standard) <OP_ARRAY>: Remove "index_pc".
322
96fb9086
HD
3232020-11-29 Hannes Domani <ssbssa@yahoo.de>
324
325 PR tui/26973
326 * tui/tui-layout.c (tui_apply_current_layout): Don't delete the
327 static locator win info.
328
b4132322
AR
3292020-11-28 Alex Richardson <Alexander.Richardson@cl.cam.ac.uk>
330
331 * acincludde.m4 (GDB_AC_CHECK_BFD): Include string.h in the test
332 program.
333
3df8c6af
AB
3342020-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
335
336 * printcmd.c (skip_over_slash_fmt): Reorder code to ensure in_fmt
337 is always initialized.
338
0ae45769
RA
3392020-11-26 Rogerio Alves <rcardoso@linux.ibm.com>
340 * MAINTAINERS (Write After Approval): Add myself.
341
239ca5e4
PW
3422020-11-26 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
343
344 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
345 * features/aarch64-fpu.xml: Add named FPCR and FPSR register bit-fields.
346
cbfa382a
TT
3472020-11-25 Tom Tromey <tom@tromey.com>
348
349 * eval.c (evaluate_subexp_standard): Remove unnecessary
350 variables.
351
af30c400
TT
3522020-11-25 Tom Tromey <tom@tromey.com>
353
354 * d-lang.c: Include parser-defs.h.
355 * rust-lang.c: Include parser-defs.h.
356 * c-lang.h: Do not include parser-defs.h.
357
1c64f6cb
SM
3582020-11-24 Simon Marchi <simon.marchi@polymtl.ca>
359
360 * regcache.h (struct cached_reg): Remove typedef.
361
2c20a601
JB
3622020-11-24 Joel Brobecker <brobecker@adacore.com>
363
364 * README: Fix the URL of the MPFR library.
365
c609df64
JB
3662020-11-24 Joel Brobecker <brobecker@adacore.com>
367
368 * README: Document the --with-libgmp-prefix configure option.
369
fa123c32
JB
3702020-11-24 Joel Brobecker <brobecker@adacore.com>
371
372 * NEWS: Add entry documenting support for DWARF-based fixed
373 point types.
374
0fb8bb02
JB
3752020-11-24 Joel Brobecker <brobecker@adacore.com>
376
377 * NEWS: Document that building GDB now requires GMP.
378
4afa9fd9
JB
3792020-11-24 Joel Brobecker <brobecker@adacore.com>
380
381 * typeprint.c (print_type_scalar): Add handling of
382 TYPE_CODE_FIXED_POINT.
383
af619ce9
JB
3842020-11-24 Joel Brobecker <brobecker@adacore.com>
385
386 * valarith.c (fixed_point_binop): Replace the
387 INIT_VAL_WITH_FIXED_POINT_VAL macro by a lambda. Update all
388 users accordingly.
389
e6fcee3a
JB
3902020-11-24 Joel Brobecker <brobecker@adacore.com>
391
392 * gdbtypes.h (struct type) <fixed_point_scaling_factor>: New method,
393 replacing fixed_point_scaling_factor. All callers updated
394 throughout this project.
395 (fixed_point_scaling_factor): Delete declaration.
396 * gdbtypes.c (type::fixed_point_scaling_factor): Replaces
397 fixed_point_scaling_factor. Adjust implementation accordingly.
398
d19937a7
JB
3992020-11-24 Joel Brobecker <brobecker@adacore.com>
400
401 * gdbtypes.h (struct type) <fixed_point_type_base_type> New method,
402 replacing the fixed_point_type_base_type function. All callers
403 updated throughout this project.
404 (fixed_point_type_base_type): Remove declaration.
405 * gdbtypes.c (type::fixed_point_type_base_type): Replaces
406 fixed_point_type_base_type. Adjust implementation accordingly.
407
2a12c336
JB
4082020-11-24 Joel Brobecker <brobecker@adacore.com>
409
410 * gdbtypes.h (struct type) <fixed_point_info, set_fixed_point_info>:
411 New methods.
412 (INIT_FIXED_POINT_SPECIFIC): Adjust.
413 (TYPE_FIXED_POINT_INFO): Delete macro.
414 (allocate_fixed_point_type_info): Change return type to void.
415 * gdbtypes.c (copy_type_recursive): Replace the use of
416 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
417 (fixed_point_scaling_factor): Likewise.
418 (allocate_fixed_point_type_info): Change return type to void.
419 Adjust implementation accordingly.
420 * dwarf2/read.c (finish_fixed_point_type): Replace the use of
421 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
422
c9f0b43f
JB
4232020-11-24 Joel Brobecker <brobecker@adacore.com>
424
425 * gmp-utils.h (gdb_mpz::read): Change buf and len parameters
426 into one single gdb::array_view parameter.
427 (gdb_mpz::write): Likewise.
428 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
429 * gmp-utils.c (gdb_mpz::read): Change buf and len parameters
430 into one single gdb::array_view parameter.
431 Adjust implementation accordingly.
432 (gdb_mpz::write): Likewise.
433 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
434 * unittests/gmp-utils-selftests.c: Adapt following changes above.
435 * valarith.c, valops.c, valprint.c, value.c: Likewise.
436
987b6703
JB
4372020-11-24 Joel Brobecker <brobecker@adacore.com>
438
439 * gmp-utils.h (gmp_string_printf): Rename from gmp_string_asprintf.
440 Change return type to std::string. Update all callers.
441 * gmp-utils.c (gmp_string_printf): Likewise.
442
4fbb7cce
JB
4432020-11-24 Joel Brobecker <brobecker@adacore.com>
444
445 * unittests/gmp-utils-selftests.c (write_fp_test): Use mpq_set_si
446 instead of mpq_set_ui to initialize our GMP rational.
447
d6ab69dd
TV
4482020-11-23 Tom de Vries <tdevries@suse.de>
449
450 * debuginfod-support.c (debuginfod_source_query)
451 (debuginfod_debuginfo_query): Only set DESTNAME if successful.
452
dab72643
TT
4532020-11-21 Tom Tromey <tom@tromey.com>
454
455 * breakpoint.c (watchpoint_exp_is_const): Return bool.
456
c0ad05d5
SM
4572020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
458
459 * unittests/gmp-utils-selftests.c (gdb_mpz_read_all_from_small):
460 Pass 2.0 to pow.
461 (gdb_mpz_write_all_from_small): Likewise.
462
a43b29c9
SM
4632020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
464
465 * dwarf2/read.c (finish_fixed_point_type): Use std::abs instead
466 of abs.
467
ae41200b
NA
4682020-11-20 Nick Alcock <nick.alcock@oracle.com>
469
470 * ctfread.c (elfctf_build_psymtabs): Use ctf_dict_open, not
471 ctf_arc_open_by_name.
472
139633c3
NA
4732020-11-20 Nick Alcock <nick.alcock@oracle.com>
474
475 * ctfread.c: Change uses of ctf_file_t to ctf_dict_t.
476 (ctf_fp_info::~ctf_fp_info): Call ctf_dict_close, not ctf_file_close.
477
cbbcd7a7
PA
4782020-11-20 Pedro Alves <pedro@palves.net>
479
480 * language.c (language_arch_info::lookup_primitive_type): Use
481 gdb::function_view instead of gdb::function.
482 (template language_lookup_primitive_type): Rename to ...
483 (language_lookup_primitive_type_1): ... this, and make static.
484 (language_lookup_primitive_type(const struct language_defn *,
485 struct gdbarch *, const char *): Make non-template.
486 (language_lookup_primitive_type(const struct language_defn *,
487 struct gdbarch *, std::function<bool (struct type *)>): Make
488 non-template and use gdb::function_view.
489 * language.h (language_arch_info::lookup_primitive_type): Use
490 gdb::function_view instead of std::function.
491 (language_lookup_primitive_type): No longer template.
492 * opencl-lang.c (lookup_opencl_vector_type): 'filter' is now a
493 lambda instead of a std::function.
494
d5ef21c3
AA
4952020-11-19 Andreas Arnez <arnez@linux.ibm.com>
496
497 PR tdep/26916
498 * s390-tdep.c (s390_process_record): Fix recording of STOC, STOCG,
499 and STOCFH.
500
a5adb8f3
SM
5012020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
502
503 * f-lang.c (fortran_value_subarray): Use plongest/pulongest.
504
70125a45
SM
5052020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
506
507 * gdbarch.sh (read_core_file_mappings): Remove `other` parameter
508 in `loop_cb` parameter.
509 * gdbarch.c: Re-generate.
510 * gdbarch.h: Re-generate.
511 * arch-utils.c (default_read_core_file_mappings): Remove `other`
512 parameter.
513 * arch-utils.h (default_read_core_file_mappings): Likewise.
514 * corelow.c (core_target::build_file_mappings): Likewise.
515 * linux-tdep.c (linux_read_core_file_mappings): Likewise.
516 (linux_core_info_proc_mappings): Likewise.
517
a5c641b5
AB
5182020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
519
520 * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
521 * NEWS: Mention new options.
522 * f-array-walker.h: New file.
523 * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
524 (repack_array_slices): New static global.
525 (show_repack_array_slices): New function.
526 (fortran_array_slicing_debug): New static global.
527 (show_fortran_array_slicing_debug): New function.
528 (value_f90_subarray): Delete.
529 (skip_undetermined_arglist): Delete.
530 (class fortran_array_repacker_base_impl): New class.
531 (class fortran_lazy_array_repacker_impl): New class.
532 (class fortran_array_repacker_impl): New class.
533 (fortran_value_subarray): Complete rewrite.
534 (set_fortran_list): New static global.
535 (show_fortran_list): Likewise.
536 (_initialize_f_language): Register new commands.
537 (fortran_adjust_dynamic_array_base_address_hack): New function.
538 * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
539 Declare.
540 * f-valprint.c: Include 'f-array-walker.h'.
541 (class fortran_array_printer_impl): New class.
542 (f77_print_array_1): Delete.
543 (f77_print_array): Delete.
544 (fortran_print_array): New.
545 (f_value_print_inner): Update to call fortran_print_array.
546 * gdbtypes.c: Include 'f-lang.h'.
547 (resolve_dynamic_type_internal): Call
548 fortran_adjust_dynamic_array_base_address_hack.
549
a15a5258
AB
5502020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
551
552 * breakpoint.c (struct watch_options): New struct.
553 (watch_option_defs): New static global.
554 (make_watch_options_def_group): New function.
555 (watch_maybe_just_location): Convert option parsing.
556 (watch_command_completer): New function.
557 (_initialize_breakpoint): Build help text using options mechanism.
558
2e362716
AB
5592020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
560
561 * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
562 (watch_command_1): Update parameter types. Convert locals to
563 bool.
564 (watch_command_wrapper): Change parameter type.
565 (watch_maybe_just_location): Change locals to bool.
566 (rwatch_command_wrapper): Update parameter type.
567 (awatch_command_wrapper): Update parameter type.
568 * breakpoint.h (watch_command_wrapper): Change parameter type.
569 (rwatch_command_wrapper): Update parameter type.
570 (awatch_command_wrapper): Update parameter type.
571 * eval.c (fetch_subexp_value): Change parameter type.
572 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
573 'false' not '0'.
574 * value.h (fetch_subexp_value): Change parameter type in
575 declaration.
576
b3ff61f8
AB
5772020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
578
579 * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
580 skip_spaces.
581
5b7d45d3
KS
5822020-11-18 Keith Seitz <keiths@redhat.com>
583
584 * linux-tdep.c (dump_note_entry_p): Return true instead of
585 checking `filename'.
586
c44191f8
TV
5872020-11-18 Tom de Vries <tdevries@suse.de>
588
589 * debuginfod-support.c (debuginfod_source_query)
590 (debuginfod_debuginfo_query): Also do early exit if
591 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
592
5d8254e1
TV
5932020-11-18 Tom de Vries <tdevries@suse.de>
594
595 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
596 warning.
597
584903d3
SM
5982020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
599
600 * gdbtypes.h (get_array_bounds): Return bool, adjust some
601 callers. Move doc here.
602 * gdbtypes.c (get_array_bounds): Return bool
603
6f2643db
AB
6042020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
605
606 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
607 assert.
608 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
609 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
610 case to the default.
611
037d7135
AB
6122020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
613
614 * printcmd.c: Include 'safe-ctype.c'.
615 (skip_over_slash_fmt): New function.
616 (print_command_completer): Call skip_over_slash_fmt.
617 (display_and_x_command_completer): New function.
618 (_initialize_printcmd): Add command completion for 'x' and
619 'display'.
620
2b3cb400
PA
6212020-11-16 Pedro Alves <pedro@palves.net>
622
623 * frame.c (get_prev_frame): Move get_frame_id call from here ...
624 (get_prev_frame_always_1): ... to here.
625 * inline-frame.c (inline_frame_this_id): Mention
626 get_prev_frame_always_1 in comment.
627
b74dbc20
JB
6282020-11-15 Joel Brobecker <brobecker@adacore.com>
629
630 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
631 handling.
632 (value_less): Add fixed-point handling.
633
0a12719e
JB
6342020-11-15 Joel Brobecker <brobecker@adacore.com>
635
636 * eval.c (binop_promote): Add fixed-point type handling.
637 * valarith.c (fixed_point_binop): New function.
638 (scalar_binop): Add fixed-point type handling.
639 (value_neg): Add fixed-point type handling.
640 * valops.c (value_cast_to_fixed_point): New function.
641 (value_cast): Add fixed-point type handling.
642
0c9150e4
JB
6432020-11-15 Joel Brobecker <brobecker@adacore.com>
644
645 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
646 range types.
647 * c-typeprint.c (c_type_print_varspec_prefix)
648 (c_type_print_varspec_suffix, c_type_print_base_1): Add
649 TYPE_CODE_FIXED_POINT handling.
650 * p-typeprint.c (pascal_type_print_varspec_prefix)
651 (pascal_type_print_varspec_suffix): Likewise.
652 * typeprint.c (print_type_fixed_point): New function.
653 * typeprint.h (print_type_fixed_point): Add declaration.
654
b26daff9
JB
6552020-11-15 Joel Brobecker <brobecker@adacore.com>
656
657 * printcmd.c (print_scalar_formatted): Add fixed-point type
658 handling when options->format is set.
659
09584414
JB
6602020-11-15 Joel Brobecker <brobecker@adacore.com>
661
662 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
663 * dwarf2/read.c (get_dwarf2_rational_constant)
664 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
665 (has_zero_over_zero_small_attribute): New functions.
666 read_base_type, set_die_type): Add fixed-point type handling.
667 * gdb-gdb.py.in: Add fixed-point type handling.
668 * gdbtypes.c: #include "gmp-utils.h".
669 (create_range_type, set_type_code): Add fixed-point type handling.
670 (init_fixed_point_type): New function.
671 (is_integral_type, is_scalar_type): Add fixed-point type handling.
672 (print_fixed_point_type_info): New function.
673 (recursive_dump_type, copy_type_recursive): Add fixed-point type
674 handling.
675 (fixed_point_type_storage): New typedef.
676 (fixed_point_objfile_key): New static global.
677 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
678 (fixed_point_type_base_type, fixed_point_scaling_factor): New
679 functions.
680 * gdbtypes.h: #include "gmp-utils.h".
681 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
682 (union type_specific) <fixed_point_info>: New field.
683 (struct fixed_point_type_info): New struct.
684 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
685 (init_fixed_point_type, is_fixed_point_type)
686 (fixed_point_type_base_type, fixed_point_scaling_factor)
687 (allocate_fixed_point_type_info): Add declarations.
688 * valprint.c (generic_val_print_fixed_point): New function.
689 (generic_value_print): Add fixed-point type handling.
690 * value.c (value_as_address, unpack_long): Add fixed-point type
691 handling.
692
e55c6530
JB
6932020-11-15 Joel Brobecker <brobecker@adacore.com>
694
695 * utils.h (uinteger_pow): Add declaration.
696 * utils.c (uinteger_pow): Moved here (without changes)...
697 * valarith.c (uinteger_pow): ... from here.
698
b34c74ab
JB
6992020-11-15 Joel Brobecker <brobecker@adacore.com>
700
40d9d2fd 701 * gmp-utils.h, gmp-utils.c: New file.
b34c74ab
JB
702 * unittests/gmp-utils-selftests.c: New file.
703 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
704 unittests/gmp-utils-selftests.c.
705 (COMMON_SFILES) Add gmp-utils.c.
706 (HFILES_NO_SRCDIR): Add gmp-utils.h.
707
1b4ac058
JB
7082020-11-15 Joel Brobecker <brobecker@adacore.com>
709
710 * configure.ac: Generate an error if a usable GMP library
711 could not be found.
712 * configure: Regenerate.
713
2c947d9b
JB
7142020-11-15 Joel Brobecker <brobecker@adacore.com>
715
716 * configure.ac: Add support for --with-libgmp-prefix.
717 * Makefile.in (LIBGMP): New variable.
718 (CLIBS): Include $(LIBGMP).
719 * configure, config.in: Regenerate
720
9dd02fc0
AB
7212020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
722
723 PR cli/26879
724 * f-exp.y (COMPLETE): New token.
725 (exp): Two new rules for tab-completion.
726 (saw_name_at_eof): New static global.
727 (last_was_structop): Likewise.
728 (yylex): Set new variables, and return COMPLETE token at the end
729 of the input stream in some cases.
730
758cb810
TT
7312020-11-14 Tom Tromey <tom@tromey.com>
732
733 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
734
749065b7
TT
7352020-11-14 Tom Tromey <tom@tromey.com>
736
737 * opencl-lang.c (opencl_component_ref): Make "comps" const.
738
2c5b1849
SM
7392020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
740
741 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
742
e8b2f0d9
TT
7432020-11-13 Tom Tromey <tom@tromey.com>
744
745 * c-lang.c (convert_ucn, convert_octal, convert_hex)
746 (convert_escape, parse_one_string): Constify.
747
25f4c262
KS
7482020-11-13 Keith Seitz <keiths@redhat.com>
749
750 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
751 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
752 outside of ELF segments" warning for debugin
753
9d3ab915
KS
7542020-11-13 Keith Seitz <keiths@redhat.com>
755
756 PR gdb/23034
757 * elfread.c (elf_symfile_segments): Output a BFD file name
758 for the "Loadable section ... outside of ELF segments" warning.
759
9ecab40c
SM
7602020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
761
762 PR gdb/26835
763 * arm-tdep.c (class arm_instruction_reader): New.
764 (target_arm_instruction_reader): New.
765 (arm_analyze_prologue): Add instruction reader parameter and use
766 it. Use arm_expand_immediate.
767 (class target_arm_instruction_reader): Adjust.
768 (arm_skip_prologue): Adjust.
769 (arm_expand_immediate): New.
770 (arm_scan_prologue): Adjust.
771 (arm_analyze_prologue_test): New.
772 (class test_arm_instruction_reader): New.
773
5a7cf527
AB
7742020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
775
776 * f-lang.c (fortran_argument_convert): Add declaration. Add
777 header comment, taken from f-lang.h. Make static.
778 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
779 (fortran_argument_convert): Delete declaration.
780
7bea47f0
AB
7812020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
782
783 * ada-exp.y (find_primitive_type): Make parameter const.
784 * ada-lang.c (enum ada_primitive_types): Delete.
785 (ada_language::language_arch_info): Update.
786 * c-lang.c (enum c_primitive_types): Delete.
787 (c_language_arch_info): Update.
788 (enum cplus_primitive_types): Delete.
789 (cplus_language::language_arch_info): Update.
790 * d-lang.c (enum d_primitive_types): Delete.
791 (d_language::language_arch_info): Update.
792 * f-lang.c (enum f_primitive_types): Delete.
793 (f_language::language_arch_info): Update.
794 * go-lang.c (enum go_primitive_types): Delete.
795 (go_language::language_arch_info): Update.
796 * language.c (auto_or_unknown_language::language_arch_info):
797 Update.
798 (language_gdbarch_post_init): Use obstack_new, use array indexing.
799 (language_string_char_type): Add header comment, call function in
800 language_arch_info.
801 (language_bool_type): Likewise
802 (language_arch_info::bool_type): Define.
803 (language_lookup_primitive_type_1): Delete.
804 (language_lookup_primitive_type): Rewrite as a templated function
805 to call function in language_arch_info, then instantiate twice.
806 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
807 (language_arch_info::lookup_primitive_type_and_symbol): Define.
808 (language_arch_info::lookup_primitive_type): Define twice with
809 different signatures.
810 (language_arch_info::lookup_primitive_type_as_symbol): Define.
811 (language_lookup_primitive_type_as_symbol): Rewrite to call a
812 member function in language_arch_info.
813 * language.h (language_arch_info): Complete rewrite.
814 (language_lookup_primitive_type): Make templated.
815 * m2-lang.c (enum m2_primitive_types): Delete.
816 (m2_language::language_arch_info): Update.
817 * opencl-lang.c (OCL_P_TYPE): Delete.
818 (enum opencl_primitive_types): Delete.
819 (opencl_type_data): Delete.
820 (builtin_opencl_type): Delete.
821 (lookup_opencl_vector_type): Update.
822 (opencl_language::language_arch_info): Update, lots of content
823 moved from...
824 (build_opencl_types): ...here. This function is now deleted.
825 (_initialize_opencl_language): Delete.
826 * p-lang.c (enum pascal_primitive_types): Delete.
827 (pascal_language::language_arch_info): Update.
828 * rust-lang.c (enum rust_primitive_types): Delete.
829 (rust_language::language_arch_info): Update.
830
bf6e5d01
SM
8312020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
832
833 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
834 dwarf2_queue_guard.
835
1350c3b4
SM
8362020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
837
838 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
839 comment.
840
6f738b01
SM
8412020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
842
843 * dwarf2/read.c (dwarf_read_debug_printf,
844 dwarf_read_debug_printf_v): New macros, use throughout the file.
845
10c19fad
SV
8462020-11-12 Shahab Vahedi <shahab@synopsys.com>
847
10806efd 848 PR tdep/27015
10c19fad
SV
849 * arc-linux-tdep.c (collect_register): Populate "eret" by
850 "pc" value from the regcache when asked for "pc" value.
851
1f2624a3
TT
8522020-11-12 Tom Tromey <tom@tromey.com>
853
854 PR rust/26799:
855 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
856 exist.
857
ab33b152
AB
8582020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
859
860 * features/Makefile (XMLTOC): Add rx.xml.
861 (FEATURE_XMLFILES): Remove rx.xml.
862 (FEATURE_CFILES rule): Pass '-single-feature' flag.
863 * features/rx.c: Regenerate.
864 * features/rx.xml: Wrap in `target` tags, and reindent.
865 * target-descriptions.c (struct maint_print_c_tdesc_options): New
866 structure.
867 (maint_print_c_tdesc_opt_def): New typedef.
868 (maint_print_c_tdesc_opt_defs): New static global.
869 (make_maint_print_c_tdesc_options_def_group): New function.
870 (maint_print_c_tdesc_cmd): Make use of command line flags, only
871 print single feature C file for target descriptions containing a
872 single feature.
873 (maint_print_c_tdesc_cmd_completer): New function.
874 (_initialize_target_descriptions): Update call to register command
875 completer, and include command line flag in help text.
876
550820e1
AB
8772020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
878
879 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
880 numbers.
881 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
882 enum values.
883
baf20f76
TT
8842020-11-10 Tom Tromey <tom@tromey.com>
885
886 * value.h (internalvar_name): Update.
887 * value.c (internalvar_name): Make return type const.
888
caaece0e
TT
8892020-11-10 Tom Tromey <tom@tromey.com>
890
891 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
892 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
893 const.
894
8e20b4be
TT
8952020-11-10 Tom Tromey <tom@tromey.com>
896
897 * objc-lang.h (value_nsstring): Update.
898 * objc-lang.c (value_nsstring): Make "ptr" const.
899
86775fab
AB
9002020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
901
902 * expprint.c (print_subexp_funcall): Increment expression position
903 after reading argument count.
904 * f-lang.c (print_subexp_f): Skip over opcode before calling
905 common function.
906 (dump_subexp_body_f): Likewise.
907
3fed4c0b
RG
9082020-11-06 Romain Geissler <romain.geissler@amadeus.com>
909
910 PR python/26832
911 * configure: Regenerate.
912 * configure.ac: Check for python modules ctypes instead of
913 itertools.
914
ac3d4064
PA
9152020-11-06 Pedro Alves <pedro@palves.net>
916
917 * macroexp.c (struct macro_buffer): Split in two classes. Add
918 uses adjusted.
919 (struct shared_macro_buffer): New, factored out from struct
920 macro_buffer.
921 (struct growable_macro_buffer): New, factored out from struct
922 macro_buffer.
923 (set_token, get_comment, get_identifier, get_pp_number)
924 (get_character_constant, get_string_literal, get_punctuator)
925 (get_next_token_for_substitution): Constify parameters.
926 (substitute_args): Constify locals.
927
606decb2
TT
9282020-11-05 Tom Tromey <tom@tromey.com>
929
930 * dwarf2/read.c (read_cutu_die_from_dwo)
931 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
932 (build_type_psymtabs_1): Update.
933 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
934 parameter.
935 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
936 Don't read section. Add assert.
937
9c91c725
TT
9382020-11-04 Tom Tromey <tromey@adacore.com>
939
940 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
941
8d9fd3a1
TT
9422020-11-04 Tom Tromey <tromey@adacore.com>
943
944 * ada-typeprint.c (ada_print_type): Handle __T types.
945
d8f62e84
TT
9462020-11-04 Tom Tromey <tromey@adacore.com>
947
948 * dwarf2/read.c (add_partial_symbol, process_die):
949 Handle DW_TAG_array_type.
950 (is_type_tag_for_partial): Add "lang" parameter.
951 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
952
7ff5b937
TT
9532020-11-04 Tom Tromey <tromey@adacore.com>
954
955 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
956
10f6a3ad
TT
9572020-11-04 Tom Tromey <tromey@adacore.com>
958
959 * dwarf2/read.c (read_array_type): Only apply stride to innermost
960 array.
961
b72795a8
TT
9622020-11-04 Tom Tromey <tromey@adacore.com>
963
964 * gdbtypes.c (update_static_array_size): Handle bit stride.
965
24aa1b02
TT
9662020-11-04 Tom Tromey <tromey@adacore.com>
967
968 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
969
c9a28cbe
TT
9702020-11-04 Tom Tromey <tromey@adacore.com>
971
972 * ada-lang.c (ada_is_any_packed_array_type): New function.
973 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
974
57567375
TT
9752020-11-04 Tom Tromey <tromey@adacore.com>
976
977 * dwarf2/read.c (recognize_bound_expression)
978 (quirk_ada_thick_pointer): New functions.
979 (read_array_type): Call quirk_ada_thick_pointer.
980 (set_die_type): Add "skip_data_location" parameter.
981 (quirk_ada_thick_pointer): New function.
982 (process_structure_scope): Call quirk_ada_thick_pointer.
983 * ada-lang.c (ada_is_unconstrained_packed_array_type)
984 (decode_packed_array_bitsize): Handle thick pointers without
985 parallel types.
986 (ada_is_gnat_encoded_packed_array_type): Rename from
987 ada_is_packed_array_type.
988 (ada_is_constrained_packed_array_type): Update.
989 * ada-valprint.c (ada_val_print_gnat_array): Remove.
990 (ada_value_print_1): Use ada_get_decoded_value.
991
a7400e44
TT
9922020-11-04 Tom Tromey <tromey@adacore.com>
993
994 * ada-lang.c (recursively_update_array_bitsize): New function.
995 (decode_constrained_packed_array_type): Call it.
996
75fd6a26
TT
9972020-11-04 Tom Tromey <tromey@adacore.com>
998
999 * ada-lang.c (to_fixed_array_type): Error if
1000 decode_constrained_packed_array_type returns NULL.
1001
93f9561e
TT
10022020-11-04 Tom Tromey <tromey@adacore.com>
1003
1004 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
1005
257e02d8
TT
10062020-11-02 Tom Tromey <tromey@adacore.com>
1007
1008 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
1009 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
1010 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
1011 * amd64-ravenscar-thread.c: New file.
1012 * amd64-ravenscar-thread.h: New file.
1013 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
1014 * configure.tgt (amd64_tobjs): Add ravenscar objects.
1015
74d877e5
AB
10162020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1017
1018 * main.c (execute_cmdargs): New function.
1019 (captured_main_1): Make use of execute_cmdargs.
1020
64aaad63
AB
10212020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1022
1023 * NEWS: Mention changes to config file search path.
1024 * main.c
1025
5b3d3560
TT
10262020-11-02 Tom Tromey <tromey@adacore.com>
1027
1028 * python/python.c: Consolidate two HAVE_PYTHON blocks.
1029 (python_GdbModuleDef): Move earlier. Now static.
1030 (do_start_initialization): Consolidate some IS_PY3K blocks.
1031
dda83cd7
SM
10322020-11-02 Simon Marchi <simon.marchi@efficios.com>
1033
1034 * aarch64-linux-tdep.c: Fix indentation.
1035 * aarch64-ravenscar-thread.c: Fix indentation.
1036 * aarch64-tdep.c: Fix indentation.
1037 * aarch64-tdep.h: Fix indentation.
1038 * ada-lang.c: Fix indentation.
1039 * ada-lang.h: Fix indentation.
1040 * ada-tasks.c: Fix indentation.
1041 * ada-typeprint.c: Fix indentation.
1042 * ada-valprint.c: Fix indentation.
1043 * ada-varobj.c: Fix indentation.
1044 * addrmap.c: Fix indentation.
1045 * addrmap.h: Fix indentation.
1046 * agent.c: Fix indentation.
1047 * aix-thread.c: Fix indentation.
1048 * alpha-bsd-nat.c: Fix indentation.
1049 * alpha-linux-tdep.c: Fix indentation.
1050 * alpha-mdebug-tdep.c: Fix indentation.
1051 * alpha-nbsd-tdep.c: Fix indentation.
1052 * alpha-obsd-tdep.c: Fix indentation.
1053 * alpha-tdep.c: Fix indentation.
1054 * amd64-bsd-nat.c: Fix indentation.
1055 * amd64-darwin-tdep.c: Fix indentation.
1056 * amd64-linux-nat.c: Fix indentation.
1057 * amd64-linux-tdep.c: Fix indentation.
1058 * amd64-nat.c: Fix indentation.
1059 * amd64-obsd-tdep.c: Fix indentation.
1060 * amd64-tdep.c: Fix indentation.
1061 * amd64-windows-tdep.c: Fix indentation.
1062 * annotate.c: Fix indentation.
1063 * arc-tdep.c: Fix indentation.
1064 * arch-utils.c: Fix indentation.
1065 * arch/arm-get-next-pcs.c: Fix indentation.
1066 * arch/arm.c: Fix indentation.
1067 * arm-linux-nat.c: Fix indentation.
1068 * arm-linux-tdep.c: Fix indentation.
1069 * arm-nbsd-tdep.c: Fix indentation.
1070 * arm-pikeos-tdep.c: Fix indentation.
1071 * arm-tdep.c: Fix indentation.
1072 * arm-tdep.h: Fix indentation.
1073 * arm-wince-tdep.c: Fix indentation.
1074 * auto-load.c: Fix indentation.
1075 * auxv.c: Fix indentation.
1076 * avr-tdep.c: Fix indentation.
1077 * ax-gdb.c: Fix indentation.
1078 * ax-general.c: Fix indentation.
1079 * bfin-linux-tdep.c: Fix indentation.
1080 * block.c: Fix indentation.
1081 * block.h: Fix indentation.
1082 * blockframe.c: Fix indentation.
1083 * bpf-tdep.c: Fix indentation.
1084 * break-catch-sig.c: Fix indentation.
1085 * break-catch-syscall.c: Fix indentation.
1086 * break-catch-throw.c: Fix indentation.
1087 * breakpoint.c: Fix indentation.
1088 * breakpoint.h: Fix indentation.
1089 * bsd-uthread.c: Fix indentation.
1090 * btrace.c: Fix indentation.
1091 * build-id.c: Fix indentation.
1092 * buildsym-legacy.h: Fix indentation.
1093 * buildsym.c: Fix indentation.
1094 * c-typeprint.c: Fix indentation.
1095 * c-valprint.c: Fix indentation.
1096 * c-varobj.c: Fix indentation.
1097 * charset.c: Fix indentation.
1098 * cli/cli-cmds.c: Fix indentation.
1099 * cli/cli-decode.c: Fix indentation.
1100 * cli/cli-decode.h: Fix indentation.
1101 * cli/cli-script.c: Fix indentation.
1102 * cli/cli-setshow.c: Fix indentation.
1103 * coff-pe-read.c: Fix indentation.
1104 * coffread.c: Fix indentation.
1105 * compile/compile-cplus-types.c: Fix indentation.
1106 * compile/compile-object-load.c: Fix indentation.
1107 * compile/compile-object-run.c: Fix indentation.
1108 * completer.c: Fix indentation.
1109 * corefile.c: Fix indentation.
1110 * corelow.c: Fix indentation.
1111 * cp-abi.h: Fix indentation.
1112 * cp-namespace.c: Fix indentation.
1113 * cp-support.c: Fix indentation.
1114 * cp-valprint.c: Fix indentation.
1115 * cris-linux-tdep.c: Fix indentation.
1116 * cris-tdep.c: Fix indentation.
1117 * darwin-nat-info.c: Fix indentation.
1118 * darwin-nat.c: Fix indentation.
1119 * darwin-nat.h: Fix indentation.
1120 * dbxread.c: Fix indentation.
1121 * dcache.c: Fix indentation.
1122 * disasm.c: Fix indentation.
1123 * dtrace-probe.c: Fix indentation.
1124 * dwarf2/abbrev.c: Fix indentation.
1125 * dwarf2/attribute.c: Fix indentation.
1126 * dwarf2/expr.c: Fix indentation.
1127 * dwarf2/frame.c: Fix indentation.
1128 * dwarf2/index-cache.c: Fix indentation.
1129 * dwarf2/index-write.c: Fix indentation.
1130 * dwarf2/line-header.c: Fix indentation.
1131 * dwarf2/loc.c: Fix indentation.
1132 * dwarf2/macro.c: Fix indentation.
1133 * dwarf2/read.c: Fix indentation.
1134 * dwarf2/read.h: Fix indentation.
1135 * elfread.c: Fix indentation.
1136 * eval.c: Fix indentation.
1137 * event-top.c: Fix indentation.
1138 * exec.c: Fix indentation.
1139 * exec.h: Fix indentation.
1140 * expprint.c: Fix indentation.
1141 * f-lang.c: Fix indentation.
1142 * f-typeprint.c: Fix indentation.
1143 * f-valprint.c: Fix indentation.
1144 * fbsd-nat.c: Fix indentation.
1145 * fbsd-tdep.c: Fix indentation.
1146 * findvar.c: Fix indentation.
1147 * fork-child.c: Fix indentation.
1148 * frame-unwind.c: Fix indentation.
1149 * frame-unwind.h: Fix indentation.
1150 * frame.c: Fix indentation.
1151 * frv-linux-tdep.c: Fix indentation.
1152 * frv-tdep.c: Fix indentation.
1153 * frv-tdep.h: Fix indentation.
1154 * ft32-tdep.c: Fix indentation.
1155 * gcore.c: Fix indentation.
1156 * gdb_bfd.c: Fix indentation.
1157 * gdbarch.sh: Fix indentation.
1158 * gdbarch.c: Re-generate
1159 * gdbarch.h: Re-generate.
1160 * gdbcore.h: Fix indentation.
1161 * gdbthread.h: Fix indentation.
1162 * gdbtypes.c: Fix indentation.
1163 * gdbtypes.h: Fix indentation.
1164 * glibc-tdep.c: Fix indentation.
1165 * gnu-nat.c: Fix indentation.
1166 * gnu-nat.h: Fix indentation.
1167 * gnu-v2-abi.c: Fix indentation.
1168 * gnu-v3-abi.c: Fix indentation.
1169 * go32-nat.c: Fix indentation.
1170 * guile/guile-internal.h: Fix indentation.
1171 * guile/scm-cmd.c: Fix indentation.
1172 * guile/scm-frame.c: Fix indentation.
1173 * guile/scm-iterator.c: Fix indentation.
1174 * guile/scm-math.c: Fix indentation.
1175 * guile/scm-ports.c: Fix indentation.
1176 * guile/scm-pretty-print.c: Fix indentation.
1177 * guile/scm-value.c: Fix indentation.
1178 * h8300-tdep.c: Fix indentation.
1179 * hppa-linux-nat.c: Fix indentation.
1180 * hppa-linux-tdep.c: Fix indentation.
1181 * hppa-nbsd-nat.c: Fix indentation.
1182 * hppa-nbsd-tdep.c: Fix indentation.
1183 * hppa-obsd-nat.c: Fix indentation.
1184 * hppa-tdep.c: Fix indentation.
1185 * hppa-tdep.h: Fix indentation.
1186 * i386-bsd-nat.c: Fix indentation.
1187 * i386-darwin-nat.c: Fix indentation.
1188 * i386-darwin-tdep.c: Fix indentation.
1189 * i386-dicos-tdep.c: Fix indentation.
1190 * i386-gnu-nat.c: Fix indentation.
1191 * i386-linux-nat.c: Fix indentation.
1192 * i386-linux-tdep.c: Fix indentation.
1193 * i386-nto-tdep.c: Fix indentation.
1194 * i386-obsd-tdep.c: Fix indentation.
1195 * i386-sol2-nat.c: Fix indentation.
1196 * i386-tdep.c: Fix indentation.
1197 * i386-tdep.h: Fix indentation.
1198 * i386-windows-tdep.c: Fix indentation.
1199 * i387-tdep.c: Fix indentation.
1200 * i387-tdep.h: Fix indentation.
1201 * ia64-libunwind-tdep.c: Fix indentation.
1202 * ia64-libunwind-tdep.h: Fix indentation.
1203 * ia64-linux-nat.c: Fix indentation.
1204 * ia64-linux-tdep.c: Fix indentation.
1205 * ia64-tdep.c: Fix indentation.
1206 * ia64-tdep.h: Fix indentation.
1207 * ia64-vms-tdep.c: Fix indentation.
1208 * infcall.c: Fix indentation.
1209 * infcmd.c: Fix indentation.
1210 * inferior.c: Fix indentation.
1211 * infrun.c: Fix indentation.
1212 * iq2000-tdep.c: Fix indentation.
1213 * language.c: Fix indentation.
1214 * linespec.c: Fix indentation.
1215 * linux-fork.c: Fix indentation.
1216 * linux-nat.c: Fix indentation.
1217 * linux-tdep.c: Fix indentation.
1218 * linux-thread-db.c: Fix indentation.
1219 * lm32-tdep.c: Fix indentation.
1220 * m2-lang.c: Fix indentation.
1221 * m2-typeprint.c: Fix indentation.
1222 * m2-valprint.c: Fix indentation.
1223 * m32c-tdep.c: Fix indentation.
1224 * m32r-linux-tdep.c: Fix indentation.
1225 * m32r-tdep.c: Fix indentation.
1226 * m68hc11-tdep.c: Fix indentation.
1227 * m68k-bsd-nat.c: Fix indentation.
1228 * m68k-linux-nat.c: Fix indentation.
1229 * m68k-linux-tdep.c: Fix indentation.
1230 * m68k-tdep.c: Fix indentation.
1231 * machoread.c: Fix indentation.
1232 * macrocmd.c: Fix indentation.
1233 * macroexp.c: Fix indentation.
1234 * macroscope.c: Fix indentation.
1235 * macrotab.c: Fix indentation.
1236 * macrotab.h: Fix indentation.
1237 * main.c: Fix indentation.
1238 * mdebugread.c: Fix indentation.
1239 * mep-tdep.c: Fix indentation.
1240 * mi/mi-cmd-catch.c: Fix indentation.
1241 * mi/mi-cmd-disas.c: Fix indentation.
1242 * mi/mi-cmd-env.c: Fix indentation.
1243 * mi/mi-cmd-stack.c: Fix indentation.
1244 * mi/mi-cmd-var.c: Fix indentation.
1245 * mi/mi-cmds.c: Fix indentation.
1246 * mi/mi-main.c: Fix indentation.
1247 * mi/mi-parse.c: Fix indentation.
1248 * microblaze-tdep.c: Fix indentation.
1249 * minidebug.c: Fix indentation.
1250 * minsyms.c: Fix indentation.
1251 * mips-linux-nat.c: Fix indentation.
1252 * mips-linux-tdep.c: Fix indentation.
1253 * mips-nbsd-tdep.c: Fix indentation.
1254 * mips-tdep.c: Fix indentation.
1255 * mn10300-linux-tdep.c: Fix indentation.
1256 * mn10300-tdep.c: Fix indentation.
1257 * moxie-tdep.c: Fix indentation.
1258 * msp430-tdep.c: Fix indentation.
1259 * namespace.h: Fix indentation.
1260 * nat/fork-inferior.c: Fix indentation.
1261 * nat/gdb_ptrace.h: Fix indentation.
1262 * nat/linux-namespaces.c: Fix indentation.
1263 * nat/linux-osdata.c: Fix indentation.
1264 * nat/netbsd-nat.c: Fix indentation.
1265 * nat/x86-dregs.c: Fix indentation.
1266 * nbsd-nat.c: Fix indentation.
1267 * nbsd-tdep.c: Fix indentation.
1268 * nios2-linux-tdep.c: Fix indentation.
1269 * nios2-tdep.c: Fix indentation.
1270 * nto-procfs.c: Fix indentation.
1271 * nto-tdep.c: Fix indentation.
1272 * objfiles.c: Fix indentation.
1273 * objfiles.h: Fix indentation.
1274 * opencl-lang.c: Fix indentation.
1275 * or1k-tdep.c: Fix indentation.
1276 * osabi.c: Fix indentation.
1277 * osabi.h: Fix indentation.
1278 * osdata.c: Fix indentation.
1279 * p-lang.c: Fix indentation.
1280 * p-typeprint.c: Fix indentation.
1281 * p-valprint.c: Fix indentation.
1282 * parse.c: Fix indentation.
1283 * ppc-linux-nat.c: Fix indentation.
1284 * ppc-linux-tdep.c: Fix indentation.
1285 * ppc-nbsd-nat.c: Fix indentation.
1286 * ppc-nbsd-tdep.c: Fix indentation.
1287 * ppc-obsd-nat.c: Fix indentation.
1288 * ppc-ravenscar-thread.c: Fix indentation.
1289 * ppc-sysv-tdep.c: Fix indentation.
1290 * ppc64-tdep.c: Fix indentation.
1291 * printcmd.c: Fix indentation.
1292 * proc-api.c: Fix indentation.
1293 * producer.c: Fix indentation.
1294 * producer.h: Fix indentation.
1295 * prologue-value.c: Fix indentation.
1296 * prologue-value.h: Fix indentation.
1297 * psymtab.c: Fix indentation.
1298 * python/py-arch.c: Fix indentation.
1299 * python/py-bpevent.c: Fix indentation.
1300 * python/py-event.c: Fix indentation.
1301 * python/py-event.h: Fix indentation.
1302 * python/py-finishbreakpoint.c: Fix indentation.
1303 * python/py-frame.c: Fix indentation.
1304 * python/py-framefilter.c: Fix indentation.
1305 * python/py-inferior.c: Fix indentation.
1306 * python/py-infthread.c: Fix indentation.
1307 * python/py-objfile.c: Fix indentation.
1308 * python/py-prettyprint.c: Fix indentation.
1309 * python/py-registers.c: Fix indentation.
1310 * python/py-signalevent.c: Fix indentation.
1311 * python/py-stopevent.c: Fix indentation.
1312 * python/py-stopevent.h: Fix indentation.
1313 * python/py-threadevent.c: Fix indentation.
1314 * python/py-tui.c: Fix indentation.
1315 * python/py-unwind.c: Fix indentation.
1316 * python/py-value.c: Fix indentation.
1317 * python/py-xmethods.c: Fix indentation.
1318 * python/python-internal.h: Fix indentation.
1319 * python/python.c: Fix indentation.
1320 * ravenscar-thread.c: Fix indentation.
1321 * record-btrace.c: Fix indentation.
1322 * record-full.c: Fix indentation.
1323 * record.c: Fix indentation.
1324 * reggroups.c: Fix indentation.
1325 * regset.h: Fix indentation.
1326 * remote-fileio.c: Fix indentation.
1327 * remote.c: Fix indentation.
1328 * reverse.c: Fix indentation.
1329 * riscv-linux-tdep.c: Fix indentation.
1330 * riscv-ravenscar-thread.c: Fix indentation.
1331 * riscv-tdep.c: Fix indentation.
1332 * rl78-tdep.c: Fix indentation.
1333 * rs6000-aix-tdep.c: Fix indentation.
1334 * rs6000-lynx178-tdep.c: Fix indentation.
1335 * rs6000-nat.c: Fix indentation.
1336 * rs6000-tdep.c: Fix indentation.
1337 * rust-lang.c: Fix indentation.
1338 * rx-tdep.c: Fix indentation.
1339 * s12z-tdep.c: Fix indentation.
1340 * s390-linux-tdep.c: Fix indentation.
1341 * score-tdep.c: Fix indentation.
1342 * ser-base.c: Fix indentation.
1343 * ser-mingw.c: Fix indentation.
1344 * ser-uds.c: Fix indentation.
1345 * ser-unix.c: Fix indentation.
1346 * serial.c: Fix indentation.
1347 * sh-linux-tdep.c: Fix indentation.
1348 * sh-nbsd-tdep.c: Fix indentation.
1349 * sh-tdep.c: Fix indentation.
1350 * skip.c: Fix indentation.
1351 * sol-thread.c: Fix indentation.
1352 * solib-aix.c: Fix indentation.
1353 * solib-darwin.c: Fix indentation.
1354 * solib-frv.c: Fix indentation.
1355 * solib-svr4.c: Fix indentation.
1356 * solib.c: Fix indentation.
1357 * source.c: Fix indentation.
1358 * sparc-linux-tdep.c: Fix indentation.
1359 * sparc-nbsd-tdep.c: Fix indentation.
1360 * sparc-obsd-tdep.c: Fix indentation.
1361 * sparc-ravenscar-thread.c: Fix indentation.
1362 * sparc-tdep.c: Fix indentation.
1363 * sparc64-linux-tdep.c: Fix indentation.
1364 * sparc64-nbsd-tdep.c: Fix indentation.
1365 * sparc64-obsd-tdep.c: Fix indentation.
1366 * sparc64-tdep.c: Fix indentation.
1367 * stabsread.c: Fix indentation.
1368 * stack.c: Fix indentation.
1369 * stap-probe.c: Fix indentation.
1370 * stubs/ia64vms-stub.c: Fix indentation.
1371 * stubs/m32r-stub.c: Fix indentation.
1372 * stubs/m68k-stub.c: Fix indentation.
1373 * stubs/sh-stub.c: Fix indentation.
1374 * stubs/sparc-stub.c: Fix indentation.
1375 * symfile-mem.c: Fix indentation.
1376 * symfile.c: Fix indentation.
1377 * symfile.h: Fix indentation.
1378 * symmisc.c: Fix indentation.
1379 * symtab.c: Fix indentation.
1380 * symtab.h: Fix indentation.
1381 * target-float.c: Fix indentation.
1382 * target.c: Fix indentation.
1383 * target.h: Fix indentation.
1384 * tic6x-tdep.c: Fix indentation.
1385 * tilegx-linux-tdep.c: Fix indentation.
1386 * tilegx-tdep.c: Fix indentation.
1387 * top.c: Fix indentation.
1388 * tracefile-tfile.c: Fix indentation.
1389 * tracepoint.c: Fix indentation.
1390 * tui/tui-disasm.c: Fix indentation.
1391 * tui/tui-io.c: Fix indentation.
1392 * tui/tui-regs.c: Fix indentation.
1393 * tui/tui-stack.c: Fix indentation.
1394 * tui/tui-win.c: Fix indentation.
1395 * tui/tui-winsource.c: Fix indentation.
1396 * tui/tui.c: Fix indentation.
1397 * typeprint.c: Fix indentation.
1398 * ui-out.h: Fix indentation.
1399 * unittests/copy_bitwise-selftests.c: Fix indentation.
1400 * unittests/memory-map-selftests.c: Fix indentation.
1401 * utils.c: Fix indentation.
1402 * v850-tdep.c: Fix indentation.
1403 * valarith.c: Fix indentation.
1404 * valops.c: Fix indentation.
1405 * valprint.c: Fix indentation.
1406 * valprint.h: Fix indentation.
1407 * value.c: Fix indentation.
1408 * value.h: Fix indentation.
1409 * varobj.c: Fix indentation.
1410 * vax-tdep.c: Fix indentation.
1411 * windows-nat.c: Fix indentation.
1412 * windows-tdep.c: Fix indentation.
1413 * xcoffread.c: Fix indentation.
1414 * xml-syscall.c: Fix indentation.
1415 * xml-tdesc.c: Fix indentation.
1416 * xstormy16-tdep.c: Fix indentation.
1417 * xtensa-config.c: Fix indentation.
1418 * xtensa-linux-nat.c: Fix indentation.
1419 * xtensa-linux-tdep.c: Fix indentation.
1420 * xtensa-tdep.c: Fix indentation.
1421
e1f57067
AB
14222020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1423 Craig Blackmore <craig.blackmore@embecosm.com>
1424
1425 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
1426 as an unsigned value.
1427
ae7754b2
TT
14282020-11-01 Tom Tromey <tom@tromey.com>
1429
1430 * dbxread.c (dbx_end_psymtab): Update.
1431 * dwarf2/read.c (process_psymtab_comp_unit_reader)
1432 (build_type_psymtabs_reader): Update.
1433 * xcoffread.c (xcoff_end_psymtab): Update.
1434 * ctfread.c (scan_partial_symbols): Update.
1435 * psymtab.c (sort_pst_symbols): Remove.
1436 (partial_symtab::end): Rename from end_psymtab_common. Inline
1437 sort_pst_symbols.
1438 * psympriv.h (struct partial_symtab) <end>: New method.
1439 (end_psymtab_common): Don't declare.
1440
0684bb51
TT
14412020-11-01 Tom Tromey <tom@tromey.com>
1442
1443 * symmisc.c (count_psyms): New function.
1444 (print_objfile_statistics): Use it.
1445 * psymtab.c (append_psymbol_to_list): Remove.
1446 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
1447 * objfiles.h (struct objstats) <n_psyms>: Remove.
1448
089002bb
TT
14492020-11-01 Tom Tromey <tom@tromey.com>
1450
1451 * dbxread.c (dbx_end_psymtab): Update.
1452 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
1453 (build_type_psymtabs_reader): Update.
1454 * xcoffread.c (xcoff_end_psymtab): Update.
1455 * ctfread.c (scan_partial_symbols): Update.
1456 * psympriv.h (end_psymtab_common): Update.
1457 * psymtab.c (end_psymtab_common): Remove objfile parameter.
1458 (sort_pst_symbols): Likewise.
1459
525454d6
TT
14602020-11-01 Tom Tromey <tom@tromey.com>
1461
1462 * dbxread.c (dbx_symfile_read): Update.
1463 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
1464 * xcoffread.c (xcoff_initial_scan): Update.
1465 * psympriv.h (init_psymbol_list): Don't declare.
1466 * psymtab.c (init_psymbol_list): Remove.
1467
60bd1d53
JB
14682020-11-01 Joel Brobecker <brobecker@adacore.com>
1469
1470 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
1471 gnat_encoded_fixed_type_info. Update all callers.
1472
db99d0d0
JB
14732020-11-01 Joel Brobecker <brobecker@adacore.com>
1474
1475 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
1476 line too long.
1477
75f24e86
JB
14782020-11-01 Joel Brobecker <brobecker@adacore.com>
1479
1480 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
1481 cast_from_fixed. Update all callers.
1482 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
1483 Update all callers.
1484 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
1485 Update all callers.
1486 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
1487 ada_scaling_factor.
1488 * ada-typeprint.c: Replace call to ada_scaling_factor by call
1489 to print_gnat_encoded_fixed_point_type.
1490 * ada-valprint.c: Likewise.
1491
4f0469cd
AB
14922020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1493
1494 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
1495 (debug_prefixed_printf): Add check of debug_displaced flag.
1496 * linux-nat.c (linux_nat_debug_printf): Add check of
1497 debug_linux_nat flag.
1498
17417fb0
SM
14992020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1500
1501 * infrun.c (infrun_debug_printf_1): Remove.
1502 (displaced_debug_printf_1): Remove.
1503 (stop_all_threads): Use debug_prefixed_printf.
1504 * infrun.h (infrun_debug_printf_1): Remove.
1505 (infrun_debug_printf): Use debug_prefixed_printf.
1506 (displaced_debug_printf_1): Remove.
1507 (displaced_debug_printf): Use debug_prefixed_printf.
1508 * linux-nat.c (linux_nat_debug_printf_1): Remove.
1509 (linux_nat_debug_printf): Use debug_prefixed_printf.
1510
ad6dba1c
SM
15112020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1512
1513 * configure: Re-generate.
1514 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
1515 AC_LANG_PROGRAM.
1516
b6fb30ed
SM
15172020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1518
1519 * configure: Re-generate.
1520
5164c117
SM
15212020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1522
1523 * configure: Re-generate.
1524
864ca435
SM
15252020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1526
1527 * configure: Re-generate.
1528
b9442ec1
SM
15292020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1530
1531 * configure: Re-generate.
1532
294f2697
SM
15332020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1534
1535 * acinclude.m4: Modernize.
1536 * configure: Re-generate.
1537
5593a99a
SM
15382020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1539
1540 * configure.ac: Modernize.
1541 * configure: Re-generate.
1542
e41fda1d
SM
15432020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1544
1545 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
1546 * configure: Re-generate.
1547 * configure.ac: Remove AM_PROG_CC_STDC.
1548
91e1a0ed
SM
15492020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1550
1551 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
1552 AC_CANONICAL_SYSTEM.
1553 * configure: Re-generate.
1554
136821d9
SM
15552020-10-30 Simon Marchi <simon.marchi@efficios.com>
1556
1557 * infrun.h (displaced_debug_printf): New macro. Replace
1558 displaced debug prints throughout to use it.
1559 (displaced_debug_printf_1): New declaration.
1560 (displaced_step_dump_bytes): Return string, remove ui_file
1561 parameter, update all callers.
1562 * infrun.c (displaced_debug_printf_1): New function.
1563 (displaced_step_dump_bytes): Return string, remove ui_file
1564 parameter
1565
aa2045e7
SM
15662020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
1567
1568 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
1569
b1ec2735
TT
15702020-10-30 Tom Tromey <tromey@adacore.com>
1571
1572 * Makefile.in (stamp-init): Depend on config.status.
1573
b78b3a29
TBA
15742020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1575
1576 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
1577
d70bdd3c
PA
15782020-10-30 Pedro Alves <pedro@palves.net>
1579
1580 * thread.c (lookup_selected_frame): Move ...
1581 * frame.c (lookup_selected_frame): ... here.
1582
79952e69
PA
15832020-10-30 Pedro Alves <pedro@palves.net>
1584
1585 * blockframe.c (block_innermost_frame): Use get_selected_frame.
1586 * frame.c
1587 (scoped_restore_selected_frame::scoped_restore_selected_frame):
1588 Use save_selected_frame. Save language as well.
1589 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
1590 Use restore_selected_frame, and restore language as well.
1591 (selected_frame_id, selected_frame_level): New.
1592 (selected_frame): Update comments.
1593 (save_selected_frame, restore_selected_frame): New.
1594 (get_selected_frame): Use lookup_selected_frame.
1595 (get_selected_frame_if_set): Delete.
1596 (select_frame): Record selected_frame_level and selected_frame_id.
1597 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
1598 fields.
1599 (get_selected_frame): Make 'message' parameter optional.
1600 (get_selected_frame_if_set): Delete declaration.
1601 (select_frame): Update comments.
1602 (save_selected_frame, restore_selected_frame)
1603 (lookup_selected_frame): Declare.
1604 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
1605 * infrun.c (struct infcall_control_state) <selected_frame_level>:
1606 New field.
1607 (save_infcall_control_state): Use save_selected_frame.
1608 (restore_selected_frame): Delete.
1609 (restore_infcall_control_state): Use restore_selected_frame.
1610 * stack.c (select_frame_command_core, frame_command_core): Use
1611 get_selected_frame.
1612 * thread.c (restore_selected_frame): Rename to ...
1613 (lookup_selected_frame): ... this and make extern. Select the
1614 current frame if the frame level is -1.
1615 (scoped_restore_current_thread::restore): Also restore the
1616 language.
1617 (scoped_restore_current_thread::~scoped_restore_current_thread):
1618 Don't try/catch.
1619 (scoped_restore_current_thread::scoped_restore_current_thread):
1620 Save the language as well. Use save_selected_frame.
1621
58103c33
SM
16222020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1623
1624 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
1625 documentation.
1626 * gdbarch.h: Re-generate.
1627
40a53766
SM
16282020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1629
1630 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
1631 parameter.
1632 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
1633 Likewise.
1634 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1635 Likewise.
1636 * arch-utils.c (default_displaced_step_hw_singlestep):
1637 Likewise.
1638 * arch-utils.h (default_displaced_step_hw_singlestep):
1639 Likewise.
1640 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
1641 Likewise.
1642 * s390-tdep.c (s390_displaced_step_hw_singlestep):
1643 Likewise.
1644 * gdbarch.c: Re-generate.
1645 * gdbarch.h: Re-generate.
1646 * infrun.c (resume_1): Adjust.
1647
8407f91b
TT
16482020-10-29 Tom Tromey <tom@tromey.com>
1649
1650 * progspace.c (program_space::~program_space): Don't call
1651 exec_close.
1652
5008b3b2
TT
16532020-10-29 Tom Tromey <tom@tromey.com>
1654
1655 * exec.c (exec_target::close): Don't change current program
1656 space.
1657
d9eebde0
TT
16582020-10-29 Tom Tromey <tom@tromey.com>
1659
1660 * symfile.c (add_symbol_file_command): Update.
1661 * exec.c (program_space::add_target_sections): Rename.
1662 * symfile-mem.c (symbol_file_add_from_memory): Update.
1663 * progspace.h (struct program_space) <add_target_sections>:
1664 Declare new overload.
1665 * exec.h (add_target_sections_of_objfile): Don't declare.
1666
3769e227
TT
16672020-10-29 Tom Tromey <tom@tromey.com>
1668
1669 * solib.c (solib_map_sections): Update.
1670 * exec.c (program_space::add_target_sections): Now a method.
1671 (exec_file_attach): Update.
1672 * exec.h (add_target_sections): Don't declare.
1673 * progspace.h (struct program_space) <add_target_sections>:
1674 Declare.
1675
2a3f84af
TT
16762020-10-29 Tom Tromey <tom@tromey.com>
1677
1678 * progspace.h (struct program_space) <remove_target_sections>:
1679 Declare.
1680 * exec.c (program_space::remove_target_sections): Now a method.
1681 * exec.h (remove_target_sections): Don't declare.
1682
004eecfd
TT
16832020-10-29 Tom Tromey <tom@tromey.com>
1684
1685 * inferior.c (delete_inferior): Update.
1686 * progspace.c (program_space::empty): Rename from
1687 program_space_empty_p. Return bool.
1688 * progspace.h (struct program_space) <empty>: New method.
1689 (program_space_empty_p): Don't declare.
1690
e39fb971
TT
16912020-10-29 Tom Tromey <tom@tromey.com>
1692
1693 * progspace.c (program_space::~program_space): Don't call
1694 clear_program_space_solib_cache.
1695 (program_space::clear_solib_cache): Rename from
1696 clear_solib_cache.
1697 * solib.c (handle_solib_event): Update.
1698 * progspace.h (struct program_space) <clear_solib_cache>: New
1699 method.
1700 (clear_program_space_solib_cache): Don't declare.
1701
a42d7dd8
TT
17022020-10-29 Tom Tromey <tom@tromey.com>
1703
1704 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1705 * target.c (info_target_command): Update.
1706 * symfile.c (syms_from_objfile_1, finish_new_objfile)
1707 (symbol_file_clear, reread_symbols): Update.
1708 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
1709 * stabsread.c (scan_file_globals): Update.
1710 * solib.c (update_solib_list): Update.
1711 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
1712 (svr4_fetch_objfile_link_map, enable_break)
1713 (svr4_relocate_main_executable)
1714 (svr4_iterate_over_objfiles_in_search_order): Update.
1715 * solib-frv.c (lm_base, enable_break)
1716 (frv_relocate_main_executable): Update.
1717 (main_got, frv_fdpic_find_canonical_descriptor): Update.
1718 (frv_fetch_objfile_link_map): Update.
1719 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
1720 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
1721 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
1722 * remote.c (remote_target::get_offsets): Update.
1723 (remote_target::start_remote)
1724 (extended_remote_target::post_attach): Update.
1725 * objfiles.c (entry_point_address_query): Update.
1726 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
1727 * minsyms.c (get_symbol_leading_char): Update.
1728 * frame.c (inside_main_func): Update.
1729 * progspace.h (symfile_objfile): Remove macro.
1730
19f6550e
TT
17312020-10-29 Tom Tromey <tom@tromey.com>
1732
1733 * exec.c (exec_file_attach): Update.
1734 * progspace.c (program_space::exec_close): Update.
1735 * progspace.h (struct program_space) <ebfd>: Now a
1736 gdb_bfd_ref_ptr.
1737 <set_exec_bfd>: Change argument type.
1738 <exec_bfd>: Update.
1739
7e10abd1
TT
17402020-10-29 Tom Tromey <tom@tromey.com>
1741
1742 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1743 * symfile.c (reread_symbols): Update.
1744 * symfile-mem.c (add_symbol_file_from_memory_command)
1745 (add_vsyscall_page): Update.
1746 * source-cache.c (source_cache::get_plain_source_lines): Update.
1747 * solib-svr4.c (find_program_interpreter, elf_locate_base)
1748 (svr4_current_sos_direct, svr4_exec_displacement)
1749 (svr4_relocate_main_executable): Update.
1750 (svr4_iterate_over_objfiles_in_search_order): Update.
1751 * solib-frv.c (enable_break2, enable_break): Update.
1752 * solib-dsbt.c (lm_base, enable_break): Update.
1753 * solib-darwin.c (find_program_interpreter)
1754 (darwin_solib_create_inferior_hook): Update.
1755 * sol-thread.c (rw_common, ps_pdmodel): Update.
1756 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
1757 * remote.c (compare_sections_command)
1758 (remote_target::trace_set_readonly_regions): Update.
1759 * remote-sim.c (get_sim_inferior_data)
1760 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
1761 (gdbsim_target_open, gdbsim_target::files_info): Update.
1762 * exec.h (exec_bfd): Remove macro.
1763 * progspace.c (initialize_progspace): Update.
1764 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
1765 Update.
1766 * nto-procfs.c (nto_procfs_target::post_attach)
1767 (nto_procfs_target::create_inferior): Update.
1768 * maint.c (maintenance_info_sections): Update.
1769 * linux-thread-db.c (thread_db_target::get_thread_local_address):
1770 Update.
1771 * infcmd.c (post_create_inferior): Update.
1772 * gcore.c (default_gcore_arch, default_gcore_target): Update.
1773 (objfile_find_memory_regions): Update.
1774 * exec.c (validate_exec_file, exec_file_attach)
1775 (exec_read_partial_read_only, print_section_info): Update.
1776 * corelow.c (core_target_open): Update.
1777 * corefile.c (reopen_exec_file, validate_files): Update.
1778 * arm-tdep.c (gdb_print_insn_arm): Update.
1779 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
1780 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
1781 methods.
1782
b55221ab
TT
17832020-10-29 Tom Tromey <tom@tromey.com>
1784
1785 * progspace.h (current_target_sections): Remove macro.
1786 * solib-svr4.c (scan_dyntag): Update.
1787 * solib-dsbt.c (scan_dyntag): Update.
1788 * exec.c (exec_target::close): Update.
1789 (add_target_sections, add_target_sections_of_objfile)
1790 (remove_target_sections, exec_target::get_section_table)
1791 (exec_target::files_info, set_section_command)
1792 (exec_set_section_address, exec_target::has_memory)
1793 (exec_target::has_memory): Update.
1794
5a36e715
TT
17952020-10-29 Tom Tromey <tom@tromey.com>
1796
1797 * source-cache.c (source_cache::get_plain_source_lines): Use
1798 current_program_space.
1799 * corefile.c (reopen_exec_file): Use current_program_space.
1800 * exec.c (exec_file_attach): Use current_program_space.
1801 * exec.h (exec_bfd_mtime): Remove.
1802
784c8592
TT
18032020-10-29 Tom Tromey <tom@tromey.com>
1804
1805 * gcore.c (default_gcore_mach): Remove.
1806 (create_gcore_bfd): Update.
1807
8a4f1402
TT
18082020-10-29 Tom Tromey <tom@tromey.com>
1809
1810 * progspace.c (program_space::exec_close): New method, from
1811 exec_close in exec.c.
1812 * exec.c (exec_close): Move to progspace.c.
1813 (exec_target::close, exec_file_attach): Update.
1814 * progspace.h (struct program_space) <exec_close>: Declare
1815 method.
1816
c20cb686
TT
18172020-10-29 Tom Tromey <tom@tromey.com>
1818
1819 * progspace.h (struct program_space) <exec_filename>: Rename from
1820 pspace_exec_filename. Now a unique_xmalloc_ptr.
1821 * inferior.c (print_selected_inferior): Update.
1822 (print_inferior): Update.
1823 * mi/mi-main.c (print_one_inferior): Update.
1824 * exec.h (exec_filename): Remove macro.
1825 * corefile.c (get_exec_file): Update.
1826 * exec.c (exec_close): Update.
1827 (exec_file_attach): Update.
1828 * progspace.c (clone_program_space): Update.
1829 (print_program_space): Update.
1830
6be2a9ab
TT
18312020-10-29 Tom Tromey <tom@tromey.com>
1832
1833 * target-section.h (struct target_section): Add constructor.
1834 * exec.c (build_section_table, add_target_sections_of_objfile):
1835 Update.
1836 * corelow.c (core_target::build_file_mappings): Update.
1837
cfaa8f76
TBA
18382020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1839
1840 PR gdb/19318
1841 * inferior.c (detach_inferior_command): Restore the current thread.
1842 (kill_inferior_command): Ditto.
1843
1b00ef06
TV
18442020-10-28 Tom de Vries <tdevries@suse.de>
1845
1846 PR symtab/26772
1847 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
1848 map, check it in the "best match" loop.
1849
7f40ce1a
SM
18502020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1851
1852 * m32c-tdep.c: Remove unused includes.
1853
5eb9e3f5
SM
18542020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1855
1856 * xtensa-tdep.c: Remove includes.
1857
b1d4d8d1
TBA
18582020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1859
1860 * breakpoint.c (struct condition_command_opts): New struct.
1861 (condition_command_option_defs): New static global.
1862 (make_condition_command_options_def_group): New function.
1863 (condition_completer): Update to consider the '-force' flag.
1864 (condition_command): Use gdb::option for the '-force' flag.
1865
bd24c5d6
TV
18662020-10-27 Tom de Vries <tdevries@suse.de>
1867
1868 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
1869 symbols in section check.
1870
61eb46a4
TV
18712020-10-27 Tom de Vries <tdevries@suse.de>
1872
1873 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
1874
733d554a
TBA
18752020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1876
1877 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
1878 * breakpoint.c: Update the help text of the 'condition' and 'break'
1879 commands.
1880 (set_breakpoint_condition): Take a new bool parameter
1881 to control whether condition definition should be forced even when
1882 the condition expression is invalid in all of the current locations.
1883 (condition_command): Update the call to 'set_breakpoint_condition'.
1884 (find_condition_and_thread): Take the "-force-condition" flag into
1885 account.
1886 * linespec.c (linespec_keywords): Add "-force-condition" as an
1887 element.
1888 (FORCE_KEYWORD_INDEX): New #define.
1889 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
1890 as a keyword.
1891 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
1892 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
1893 * python/py-breakpoint.c (bppy_set_condition): Ditto.
1894 * NEWS: Mention the changes to the 'break' and 'condition' commands.
1895
b5fa468f
TBA
18962020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1897
1898 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
1899 * breakpoint.c (set_breakpoint_location_condition): New function.
1900 (set_breakpoint_condition): Disable a breakpoint location if parsing
1901 the condition string gives an error.
1902 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
1903 (build_target_condition_list): Ditto.
1904 (build_target_command_list): Ditto.
1905 (build_bpstat_chain): Ditto.
1906 (print_one_breakpoint_location): Ditto.
1907 (print_one_breakpoint): Ditto.
1908 (breakpoint_1): Ditto.
1909 (bp_location::bp_location): Ditto.
1910 (locations_are_equal): Ditto.
1911 (update_breakpoint_locations): Ditto.
1912 (enable_disable_bp_num_loc): Ditto.
1913 (init_breakpoint_sal): Use set_breakpoint_location_condition.
1914 (find_condition_and_thread_for_sals): New static function.
1915 (create_breakpoint): Call find_condition_and_thread_for_sals.
1916 (location_to_sals): Call find_condition_and_thread_for_sals instead
1917 of find_condition_and_thread.
1918
1c47ec3e
TV
19192020-10-26 Tom de Vries <tdevries@suse.de>
1920
1921 * dwarf2/read.c (process_full_comp_unit): Call
1922 dwarf2_find_base_address.
1923
6390859c
TT
19242020-10-26 Tom Tromey <tromey@adacore.com>
1925
1926 * gdbtypes.c (create_range_type): Revert previous patch. Add
1927 comment.
1928
d744f0f9
PA
19292020-10-26 Pedro Alves <pedro@palves.net>
1930
1931 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
1932 (my_waitpid): Use gdb::handle_eintr.
1933
006811bc
SM
19342020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
1935
1936 * acinclude.m4: Update ptrace.m4 path.
1937 * ptrace.m4: Moved to gdbsupport.
1938
c75e31a1
SM
19392020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1940
1941 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
1942 instead of target_gdbarch.
1943
32495661
SM
19442020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1945
1946 * jit.c (jit_reader_load_command): Pass current inferior.
1947 (jit_inferior_init): Change parameter type to inferior, use it.
1948 (jit_inferior_created): Remove.
1949 (jit_inferior_created_hook): Pass inferior parameter down.
1950 (_initialize_jit): Use jit_inferior_created_hook instead of
1951 jit_inferior_created.
1952 * jit.h (jit_inferior_created_hook): Add inferior parameter.
1953 * infrun.c (follow_exec): Pass inferior to
1954 jit_inferior_created_hook.
1955
3f66685e
SM
19562020-10-24 Simon Marchi <simon.marchi@efficios.com>
1957
1958 * linux-thread-db.c (check_pid_namespace_match): Add inferior
1959 parameter and use it.
1960 (thread_db_inferior_created): Pass inferior argument.
1961
a0ff652f
SM
19622020-10-24 Simon Marchi <simon.marchi@efficios.com>
1963
1964 * aix-thread.c (aix_thread_inferior_created): Add inferior
1965 parameter.
1966 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
1967 * dummy-frame.c (cleanup_dummy_frames): Likewise.
1968 * jit.c (jit_inferior_created): Likewise.
1969 * linux-thread-db.c (thread_db_inferior_created): Likewise.
1970 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
1971 * observable.h (inferior_created): Likewise.
1972 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
1973 * symfile-mem.c (add_vsyscall_page): Likewise.
1974 * infcmd.c (post_create_inferior): Pass inferior argument.
1975
3c67532c
JB
19762020-10-24 Joel Brobecker <brobecker@adacore.com>
1977
1978 GDB 10.1 released.
1979
8747316e
JB
19802020-10-23 Joel Brobecker <brobecker@adacore.com>
1981
1982 * ada-typeprint.c (ada_print_type): Remove superfluous second call
1983 to ada_check_typedef.
1984
1a0ea399
AB
19852020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1986
1987 * f-exp.y (f_parse): Rename to...
1988 (f_language::parser): ...this.
1989 * f-lang.c (f_get_encoding): Rename to...
1990 (f_language::get_encoding): ...this.
1991 (f_op_print_tab): Rename to...
1992 (f_language::op_print_tab): ...this.
1993 (exp_descriptor_f): Rename to...
1994 (f_language::exp_descriptor_tab): ...this.
1995 (class f_language): Moved to f-lang.h.
1996 (f_language::language_arch_info): New function, moved out of class
1997 declaration.
1998 (f_language::search_name_hash): Likewise.
1999 (f_language::lookup_symbol_nonlocal): Likewise.
2000 (f_language::get_symbol_name_matcher_inner): Likewise.
2001 * f-lang.h: Add 'valprint.h' include.
2002 (class f_language): Moved here from f-lang.c.
2003 * f-typeprint.c (f_type_print_args): Delete commented out
2004 declaration.
2005 (f_print_typedef): Rename to...
2006 (f_language::print_typedef): ...this.
2007 (f_print_type): Rename to...
2008 (f_language::print_type): ...this.
2009 (f_type_print_varspec_prefix): Delete declaration and rename to...
2010 (f_language::f_type_print_varspec_prefix): ...this.
2011 (f_type_print_varspec_suffix): Delete declaration and rename to...
2012 (f_language::f_type_print_varspec_suffix): ...this.
2013 (f_type_print_base): Delete declaration and rename to...
2014 (f_language::f_type_print_base): ...this.
2015 * f-valprint.c (f_value_print_inner): Rename to...
2016 (f_language::value_print_inner): ...this.
2017 * parse.c: Delete 'f-lang.h' include.
2018
88cefd9b
AB
20192020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2020
2021 * language.h (language_defn::print_type): Add variable names in
2022 declaration, and update header comment.
2023
5399db93
AB
20242020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2025
2026 * ada-lang.c (ada_language::demangle): Rename to...
2027 (ada_language::demangle_symbol): ...this.
2028 * c-lang.c (cplus_language::demangle): Rename to...
2029 (cplus_language::demangle_symbol): ...this.
2030 * d-lang.c (d_language::demangle): Rename to...
2031 (d_language::demangle_symbol): ...this.
2032 * f-lang.c (f_language::demangle): Rename to...
2033 (f_language::demangle_symbol): ...this.
2034 * go-lang.c (go_language::demangle): Rename to...
2035 (go_language::demangle_symbol): ...this.
2036 * language.c (language_demangle): Update call to demangle_symbol.
2037 (auto_or_unknown_language::demangle): Rename to...
2038 (auto_or_unknown_language::demangle_symbol): ...this.
2039 * language.h (language_defn::demangle): Rename to...
2040 (language_defn::demangle_symbol): ...this.
2041 * objc-lang.c (objc_language::demangle): Rename to...
2042 (objc_language::demangle_symbol): ...this.
2043 * rust-lang.c (rust_language::demangle): Rename to...
2044 (rust_language::demangle_symbol): ...this.
2045
4b2f86ef
AB
20462020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2047
2048 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
2049 (iterate_over_file_blocks): Replace use of macro with the macros
2050 definition.
2051
e74b39de
AB
20522020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2053
2054 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
2055 * valprint.c (maybe_print_array_index): Replace use of macro with
2056 the macros definition.
2057
00c696a6
AB
20582020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2059
2060 * ada-lang.c (ada_language::print_array_index): Call value_print
2061 directly.
2062 * language.c (language_defn::print_array_index): Likewise.
2063 * language.h (LA_VALUE_PRINT): Delete.
2064 * valprint.c (value_print): Call value_print on the
2065 current_language directly.
2066
d3b67c56
AB
20672020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2068
2069 * language.h (LA_PRINT_TYPEDEF): Delete.
2070 * typeprint.c (typedef_print): Call print_typedef directly on the
2071 current_language object.
2072
790e2a12
AB
20732020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2074
2075 * m2-exp.y (m2_parse): Rename to...
2076 (m2_language::parser): ...this. Update function signature.
2077 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
2078 (m2_op_print): Rename to...
2079 (m2_language::op_print_tab): ...this, and make const.
2080 (exp_descriptor_modula2): Rename to...
2081 (m2_language::exp_descriptor_modula2): ...this.
2082 (class m2_language): Move to m2-lang.h.
2083 (m2_language::language_arch_info): New function, moved out of
2084 class declaration.
2085 (m2_language::printchar): New function, body from m2_printchar.
2086 (m2_language::printstr): New function, moved out of class
2087 declaration.
2088 (m2_language::emitchar): Likewise.
2089 * m2-lang.h (m2_parse): Delete declaration.
2090 (m2_print_typedef): Delete declaration.
2091 (m2_value_print_inner): Delete declaration.
2092 (class m2_language): Class declaration moved from m2-lang.c,
2093 larger functions are left in m2-lang.c.
2094 * m2-typeprint.c (m2_print_typedef): Rename to...
2095 (m2_language::print_typedef): ...this, and update function
2096 signature.
2097 * m2-valprint.c (m2_value_print_inner): Rename to...
2098 (m2_language::value_print_inner): ...this, replace use of
2099 LA_PRINT_STRING with a direct call to printstr member function,
2100 and update recursive call.
2101
b01175fc
AB
21022020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2103
2104 * language.c (default_is_string_type_p): Delete, implementation
2105 moved into auto_or_unknown_language::is_string_type_p.
2106 (unk_op_print_tab): Moved into
2107 auto_or_unknown_language::opcode_print_table.
2108 (unknown_language_arch_info): Delete, implementation moved into
2109 auto_or_unknown_language::language_arch_info.
2110 (class auto_or_unknown_language): New class, member functions
2111 copied from unknown_language class, with some updates.
2112 (class unknown_language): Most member functions moved into
2113 auto_or_unknown_language class. Inherit from
2114 auto_or_unknown_language class.
2115 (class auto_language): Inherit from auto_or_unknown_language.
2116 Delete most member functions.
2117
1a97fe8c
HD
21182020-10-22 Hannes Domani <ssbssa@yahoo.de>
2119
2120 * stabsread.c (read_member_functions): Remove gdb_assert.
2121
6b9d0dfd
HD
21222020-10-22 Hannes Domani <ssbssa@yahoo.de>
2123
2124 * gdbtypes.c (init_complex_type): Check target type name.
2125
4b4bb603
SM
21262020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2127
2128 * target-debug.h (target_debug_print_struct_target_ops_p):
2129 Remove.
2130 (target_debug_print_async_callback_ftype_p): Remove.
2131 (target_debug_print_struct_trace_state_variable_p): Remove.
2132 (target_debug_print_struct_traceframe_info_p): Remove.
2133 (target_debug_print_VEC__btrace_block_s__pp): Remove.
2134 (target_debug_print_enum_btrace_format): Remove.
2135 (target_debug_print_enum_info_proc_what): Remove.
2136 (target_debug_print_thread_info_pp): Remove.
2137
24f5300a
SM
21382020-10-22 Simon Marchi <simon.marchi@efficios.com>
2139
2140 * target.h (struct target_ops) <make_corefile_notes>:
2141 Change return type to unique pointer.
2142 * target.c (dummy_make_corefile_notes): Likewise.
2143 * exec.c (struct exec_target) <make_corefile_notes>:
2144 Likewise.
2145 (exec_target::make_corefile_notes): Likewise.
2146 * procfs.c (class procfs_target) <make_corefile_notes>:
2147 Likewise.
2148 (procfs_do_thread_registers): Adjust to unique pointer.
2149 (struct procfs_corefile_thread_data): Add constructor.
2150 <note_data>: Change type to unique pointer.
2151 (procfs_corefile_thread_callback): Adjust to unique pointer.
2152 (procfs_target::make_corefile_notes): Change return type to
2153 unique pointer.
2154 * target-delegates.c: Re-generate.
2155 * gcore.c (write_gcore_file_1): Adjust.
2156 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
2157 New.
2158
5fb4027f
TV
21592020-10-22 Tom de Vries <tdevries@suse.de>
2160
2161 * block.c (find_block_in_blockvector): Make sure the returned block
2162 contains pc.
2163
4a636814
SM
21642020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2165
2166 PR gdb/26693
2167 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
2168 parameter.
2169 (load_cu): Pass existing CU.
2170 (process_imported_unit_die): Likewise.
2171 (follow_die_offset): Likewise.
2172
1bd57575
LM
21732020-10-22 Luis Machado <luis.machado@linaro.org>
2174
2175 * corelow.c (core_target::xfer_partial): Also check for an empty
2176 m_core_unavailable_mappings vector.
2177
6b4c676c
AB
21782020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2179
2180 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
2181 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
2182 * f-exp.y (arglist): Allow for a series of subranges.
2183 (subrange): Add cases for subranges with strides.
2184 * f-lang.c (value_f90_subarray): Catch use of array strides and
2185 throw an error.
2186 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
2187
f2d8e4c5
AB
21882020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2189
2190 * expprint.c (print_subexp_standard): Change enum range_type to
2191 range_flag and rename variables to match.
2192 (dump_subexp_body_standard): Likewise.
2193 * expression.h (enum range_type): Rename to...
2194 (enum range_flag): ...this.
2195 (range_types): Rename to...
2196 (range_flags): ...this.
2197 * f-lang.c (value_f90_subarray): Change enum range_type to
2198 range_flag and rename variables to match.
2199 * parse.c (operator_length_standard): Likewise.
2200 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
2201 range_type to range_flag.
2202 * rust-lang.c (rust_evaluate_funcall): Likewise.
2203 (rust_range): Likewise.
2204 (rust_compute_range): Likewise.
2205 (rust_subscript): Likewise.
2206
2f1b18db
AB
22072020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2208
2209 * expprint.c (print_subexp_standard): Update to reflect changes to
2210 enum range_type.
2211 (dump_subexp_body_standard): Likewise.
2212 * expression.h (enum range_type): Convert to a bit field enum, and
2213 make the enum unsigned.
2214 * f-exp.y (subrange): Update to reflect changes to enum
2215 range_type.
2216 * f-lang.c (value_f90_subarray): Likewise.
2217 * parse.c (operator_length_standard): Likewise.
2218 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
2219 * rust-lang.c (rust_range): Likewise.
2220 (rust_compute_range): Likewise.
2221 (rust_subscript): Likewise.
2222
a46d1843
SM
22232020-10-21 Simon Marchi <simon.marchi@efficios.com>
2224
2225 * infrun.c (displaced_step_in_progress_thread): Fix comment.
2226 (displaced_step_in_progress): Fix comment.
2227
c21f37a8
SM
22282020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
2229
2230 * gdbarch.sh (make_corefile_notes): Return unique pointer.
2231 * gdbarch.c: Re-generate.
2232 * gdbarch.h: Re-generate.
2233 * gcore.c (write_gcore_file_1): Adjust.
2234 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
2235 constructor.
2236 <note_data>: Change type to unique pointer.
2237 <abort_iteration>: Change type to bool.
2238 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
2239 (fbsd_collect_thread_registers): Return void, adjust.
2240 (struct fbsd_corefile_thread_data): Add construtor.
2241 <note_data>: Change type to unique pointer.
2242 (fbsd_corefile_thread): Adjust.
2243 (fbsd_make_corefile_notes): Return unique pointer, adjust.
2244 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
2245 to unique pointer, adjust.
2246 (struct linux_collect_regset_section_cb_data): Add constructor.
2247 <note_data>: Change type to unique pointer.
2248 <abort_iteration>: Change type to bool.
2249 (linux_collect_thread_registers): Return void, adjust.
2250 (struct linux_corefile_thread_data): Add constructor.
2251 <note_data>: Change type to unique pointer.
2252 (linux_corefile_thread): Adjust.
2253 (linux_make_corefile_notes): Return unique pointer, adjust.
2254
07fbbd01
SM
22552020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2256
2257 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
2258 * gdbarch.c: Re-generate.
2259 * gdbarch.h: Re-generate.
2260 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
2261 bool.
2262 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
2263 Likewise.
2264 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
2265 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
2266 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
2267 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
2268
39535193
SM
22692020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2270
2271 * gdbarch.sh: Make generated predicates return bool.
2272 * gdbarch.c: Re-generate.
2273 * gdbarch.h: Re-generate.
2274
ad523d01
TT
22752020-10-20 Tom Tromey <tom@tromey.com>
2276
2277 * varobj-iter.h (struct varobj_item): Remove typedef.
2278
c4464ade
SM
22792020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2280
2281 * infrun.c (currently_stepping): Change int to bool
2282 (maybe_software_singlestep): Likewise.
2283 (show_stop_on_solib_events): Likewise.
2284 (stepping_past_nonsteppable_watchpoint): Likewise.
2285 (displaced_step_in_progress_any_inferior): Likewise.
2286 (displaced_step_in_progress_thread): Likewise.
2287 (keep_going_stepped_thread): Likewise.
2288 (thread_still_needs_step_over): Likewise.
2289 (start_step_over): Likewise.
2290 (do_target_resume): Likewise.
2291 (resume_1): Likewise.
2292 (clear_proceed_status): Likewise.
2293 (thread_still_needs_step_over_bp): Likewise.
2294 (proceed): Likewise.
2295 (switch_back_to_stepped_thread): Likewise.
2296 (adjust_pc_after_break): Likewise.
2297 (stepped_in_from): Likewise.
2298 (handle_stop_requested): Likewise.
2299 (handle_syscall_event): Likewise.
2300 (handle_no_resumed): Likewise.
2301 (handle_inferior_event): Likewise.
2302 (finish_step_over): Likewise.
2303 (handle_signal_stop): Likewise.
2304 (process_event_stop_test): Likewise.
2305
2eb20436
SM
23062020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2307
2308 * infrun.c (get_displaced_stepping_state): Fix comment.
2309
e0c45ded
AS
23102020-10-20 Andreas Schwab <schwab@linux-m68k.org>
2311
2312 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
2313
22cc388e
TT
23142020-10-19 Tom Tromey <tromey@adacore.com>
2315
2316 PR tui/26719
2317 * tui/tui-winsource.h (struct tui_source_window_base)
2318 <refresh_window>: Rename from refresh_pad.
2319 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
2320 Rename from refresh_pad.
2321 (tui_source_window_base::show_source_content)
2322 (tui_source_window_base::do_scroll_horizontal): Update.
2323
3c6eb4d4
TBA
23242020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2325
2326 * thread.c (_initialize_thread): Fine-tune the help text of
2327 'info threads'.
2328
26703721
TBA
23292020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2330
2331 * frame.c: Remove the unused 'uinteger_option_def' type alias.
2332
61c26be8
MS
23332020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
2334
2335 * breakpoint.c (handle_jit_event): Add an argument, change how
2336 `jit_event_handler` is called.
2337
932539d7
TT
23382020-10-17 Tom Tromey <tom@tromey.com>
2339
2340 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
2341 (scan_xcoff_symtab): Update.
2342 * psymtab.h (class psymtab_storage) <global_psymbols,
2343 static_psymbols, current_global_psymbols,
2344 current_static_psymbols>: Remove.
2345 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
2346 (match_partial_symbol, lookup_partial_symbol): Update.
2347 (print_partial_symbols): Change parameters.
2348 (dump_psymtab, recursively_search_psymtabs)
2349 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
2350 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
2351 (concat): Remove.
2352 (end_psymtab_common): Simplify.
2353 (append_psymbol_to_list): Change parameters.
2354 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
2355 (init_psymbol_list): Simplify.
2356 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2357 * psympriv.h (struct partial_symtab) <empty>: New method.
2358 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
2359 Remove.
2360 <global_psymbols, static_psymbols>: New members.
2361 <add_psymbol>: New methods.
2362 (add_psymbol_to_list): Don't declare.
2363 (psymbol_placement): Move earlier.
2364 * mdebugread.c (parse_partial_symbols): Update.
2365 (handle_psymbol_enumerators): Change parameters.
2366 (mdebug_expand_psymtab): Update.
2367 * dwarf2/read.c (process_psymtab_comp_unit_reader)
2368 (add_partial_symbol): Update.
2369 * dwarf2/index-write.c (write_psymbols): Change parameters.
2370 (write_one_signatured_type): Update.
2371 (recursively_count_psymbols): Update.
2372 (recursively_write_psymbols): Update.
2373 (class debug_names) <recursively_write_psymbols>: Update.
2374 <write_psymbols>: Change parameters.
2375 <write_one_signatured_type>: Update.
2376 * dbxread.c (read_dbx_symtab): Update.
2377 (dbx_end_psymtab): Use partial_symtab::empty.
2378 * ctfread.c (struct ctf_context) <pst>: New member.
2379 (create_partial_symtab): Set it.
2380 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
2381 (scan_partial_symbols): Use the psymtab's context. Update.
2382
cfabbd35
TT
23832020-10-17 Tom Tromey <tom@tromey.com>
2384
2385 * valprint.c (generic_value_print): Remove comment.
2386 * m2-valprint.c (m2_value_print_inner): Remove comment.
2387 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
2388 type.
2389
520596f2
TV
23902020-10-17 Tom de Vries <tdevries@suse.de>
2391
2392 PR symtab/26317
2393 * source.c (select_source_symtab): Handling sal.symtab == NULL for
2394 symbol main.
2395
76547ab3
TV
23962020-10-14 Tom de Vries <tdevries@suse.de>
2397
2398 PR gdb/26733
2399 * solib.c (solib_contains_address_p): Handle
2400 'solib->sections == nullptr'.
2401
d3a07122
SM
24022020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2403
2404 PR gdb/26642
2405 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
2406 target can't do async.
2407 * target.c (target_wait): Assert that we don't pass
2408 TARGET_WNOHANG to a target that can't async.
2409
1b71cfcf
KR
24102020-10-13 Kamil Rytarowski <n54@gmx.com>
2411
2412 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
2413 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
2414 * alpha-bsd-nat.c: Adjust include.
2415 * alpha-bsd-tdep.h: Adjust comment.
2416 * alpha-nbsd-tdep.c: Rename to ...
2417 * alpha-netbsd-tdep.c: ... this, adjust include.
2418 * amd64-nbsd-nat.c: Rename to ...
2419 * amd64-netbsd-nat.c: ... this, adjust include.
2420 * amd64-nbsd-tdep.c: Rename to ...
2421 * amd64-netbsd-tdep.c: ... this, adjust include.
2422 * amd64-tdep.h: Adjust include.
2423 * arm-nbsd-nat.c: Rename to ...
2424 * arm-netbsd-nat.c: ... this, adjust include.
2425 * arm-nbsd-tdep.c: Rename to ...
2426 * arm-netbsd-tdep.c: ... this, adjust include.
2427 * arm-nbsd-tdep.h: Rename to ...
2428 * arm-netbsd-tdep.h: ... this, adjust include.
2429 * configure.nat: Adjust file lists.
2430 * configure.tgt: Likewise.
2431 * hppa-nbsd-nat.c: Rename to ...
2432 * hppa-netbsd-nat.c: ... this, adjust include.
2433 * hppa-nbsd-tdep.c: Rename to ...
2434 * hppa-netbsd-tdep.c: ... this, adjust include.
2435 * i386-nbsd-nat.c: Rename to ...
2436 * i386-netbsd-nat.c: ... this, adjust include.
2437 * i386-nbsd-tdep.c: Rename to ...
2438 * i386-netbsd-tdep.c: ... this, adjust include.
2439 * m68k-bsd-nat.c: Adjust include.
2440 * mips-nbsd-nat.c: Rename to ...
2441 * mips-netbsd-nat.c: ... this, adjust include.
2442 * mips-nbsd-tdep.c: Rename to ...
2443 * mips-netbsd-tdep.c: ... this, adjust include.
2444 * mips-nbsd-tdep.h: Rename to ...
2445 * mips-netbsd-tdep.h: ... this.
2446 * nbsd-nat.c: Rename to ...
2447 * netbsd-nat.c: ... this, adjust include.
2448 * nbsd-nat.h: Rename to ...
2449 * netbsd-nat.h: ... this, adjust include.
2450 * nbsd-tdep.c: Rename to ...
2451 * netbsd-tdep.c: ... this, adjust include.
2452 * nbsd-tdep.h: Rename to ...
2453 * netbsd-tdep.h: ... this.
2454 * ppc-nbsd-nat.c: Rename to ...
2455 * ppc-netbsd-nat.c: ... this, adjust include.
2456 * ppc-nbsd-tdep.c: Rename to ...
2457 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
2458 * ppc-nbsd-tdep.h: Rename to ...
2459 * ppc-netbsd-tdep.h: ... this.
2460 * sh-nbsd-nat.c: Rename to ...
2461 * sh-netbsd-nat.c: ... this, adjust include.
2462 * sh-nbsd-tdep.c: Rename to ...
2463 * sh-netbsd-tdep.c: ... this, adjust include.
2464 * sparc-nbsd-nat.c: Rename to ...
2465 * sparc-netbsd-nat.c: ... this.
2466 * sparc-nbsd-tdep.c: Rename to ...
2467 * sparc-netbsd-tdep.c: ... this, adjust include.
2468 * sparc64-nbsd-nat.c: Rename to ...
2469 * sparc64-netbsd-nat.c: ... this.
2470 * sparc64-nbsd-tdep.c: Rename to ...
2471 * sparc64-netbsd-tdep.c: ... this, adjust include.
2472 * sparc64-tdep.h: Adjust comment.
2473 * vax-bsd-nat.c: Adjust include.
2474 * vax-nbsd-tdep.c: Rename to ...
2475 * vax-netbsd-tdep.c: ... this, adjust include.
2476
d7a78e5c
TT
24772020-10-12 Tom Tromey <tom@tromey.com>
2478
2479 * target.h (struct target_ops) <get_section_table>: Update.
2480 (target_get_section_table): Update.
2481 * target.c (target_get_section_table, target_section_by_addr)
2482 (memory_xfer_partial_1): Update.
2483 * target-section.h (target_section_table): Now an alias.
2484 * target-delegates.c: Rebuild.
2485 * target-debug.h (target_debug_print_target_section_table_p):
2486 Rename from target_debug_print_struct_target_section_table_p.
2487 * symfile.c (build_section_addr_info_from_section_table): Update.
2488 * solib.c (solib_map_sections, solib_contains_address_p): Update.
2489 * solib-svr4.c (scan_dyntag): Update.
2490 * solib-dsbt.c (scan_dyntag): Update.
2491 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2492 Update.
2493 * record-full.c (record_full_core_target::xfer_partial): Update.
2494 * progspace.h (struct program_space) <target_sections>: Update.
2495 * exec.h (print_section_info): Update.
2496 * exec.c (exec_target::close, build_section_table)
2497 (add_target_sections, add_target_sections_of_objfile)
2498 (remove_target_sections, exec_on_vfork)
2499 (section_table_available_memory)
2500 (section_table_xfer_memory_partial)
2501 (exec_target::get_section_table, exec_target::xfer_partial)
2502 (print_section_info, set_section_command)
2503 (exec_set_section_address, exec_target::has_memory): Update.
2504 * corelow.c (core_target::build_file_mappings)
2505 (core_target::xfer_partial, core_target::info_proc_mappings)
2506 (core_target::info_proc_mappings): Update.
2507 * bfd-target.c (class target_bfd): Update
2508
eda214ce
TT
25092020-10-12 Tom Tromey <tom@tromey.com>
2510
2511 * progspace.c (program_space::~program_space): Don't call
2512 clear_section_table.
2513 * exec.h (clear_section_table): Don't declare.
2514 * exec.c (exec_target::close): Update.
2515 (clear_section_table): Remove.
2516
91840ee3
TT
25172020-10-12 Tom Tromey <tom@tromey.com>
2518
2519 * exec.c (add_target_sections_of_objfile): Simplify.
2520
2d128614
TT
25212020-10-12 Tom Tromey <tom@tromey.com>
2522
2523 * solib.c (solib_map_sections): Update.
2524 * record-full.c (record_full_core_open_1): Update.
2525 * exec.h (build_section_table): Return a target_section_table.
2526 * exec.c (exec_file_attach): Update.
2527 (build_section_table): Return a target_section_table.
2528 * corelow.c (core_target::core_target): Update.
2529 * bfd-target.c (target_bfd::target_bfd): Update.
2530
bb2a6777
TT
25312020-10-12 Tom Tromey <tom@tromey.com>
2532
2533 * target.c (target_section_by_addr, memory_xfer_partial_1):
2534 Update.
2535 * target-section.h (struct target_section_table): Use
2536 std::vector.
2537 * symfile.h (build_section_addr_info_from_section_table): Take a
2538 target_section_table.
2539 * symfile.c (build_section_addr_info_from_section_table): Take a
2540 target_section_table.
2541 * solist.h (struct so_list) <sections>: Change type.
2542 <sections_end>: Remove.
2543 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
2544 (solib_contains_address_p): Update.
2545 * solib-svr4.c (scan_dyntag): Update.
2546 * solib-dsbt.c (scan_dyntag): Update.
2547 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2548 Update.
2549 * record-full.c (record_full_core_start, record_full_core_end):
2550 Remove.
2551 (record_full_core_sections): New global.
2552 (record_full_core_open_1, record_full_core_target::xfer_partial):
2553 Update.
2554 * exec.h (build_section_table, section_table_xfer_memory_partial)
2555 (add_target_sections): Take a target_section_table.
2556 * exec.c (exec_file_attach, clear_section_table): Update.
2557 (resize_section_table): Remove.
2558 (build_section_table, add_target_sections): Take a
2559 target_section_table.
2560 (add_target_sections_of_objfile, remove_target_sections)
2561 (exec_on_vfork): Update.
2562 (section_table_available_memory): Take a target_section_table.
2563 (section_table_read_available_memory): Update.
2564 (section_table_xfer_memory_partial): Take a target_section_table.
2565 (print_section_info, set_section_command)
2566 (exec_set_section_address, exec_target::has_memory): Update.
2567 * corelow.c (class core_target) <m_core_section_table,
2568 m_core_file_mappings>: Remove braces.
2569 <~core_target>: Remove.
2570 (core_target::core_target): Update.
2571 (core_target::~core_target): Remove.
2572 (core_target::build_file_mappings)
2573 (core_target::xfer_memory_via_mappings)
2574 (core_target::xfer_partial, core_target::info_proc_mappings):
2575 Update.
2576 * bfd-target.c (target_bfd::xfer_partial): Update.
2577 (target_bfd::target_bfd): Update.
2578 (target_bfd::~target_bfd): Remove.
2579
7b466b10
TT
25802020-10-12 Tom Tromey <tom@tromey.com>
2581
2582 * target.h (struct target_section, struct target_section_table):
2583 Move to target-section.h.
2584 * target-section.h: New file.
2585
87a37e5e
PA
25862020-10-12 Pedro Alves <pedro@palves.net>
2587
2588 PR exp/26602
2589 * valops.c (struct struct_field_searcher): New.
2590 (update_search_result): Rename to ...
2591 (struct_field_searcher::update_result): ... this. Simplify
2592 prototype. Record all found fields.
2593 (do_search_struct_field): Rename to ...
2594 (struct_field_searcher::search): ... this. Simplify prototype.
2595 Maintain stack of visited baseclass path. Call update_result for
2596 fields too. Keep searching fields in baseclasses instead of
2597 stopping at the first found field.
2598 (search_struct_field): Use struct_field_searcher. When looking
2599 for fields, report ambiguous access attempts.
2600
9370fd51
AB
26012020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
2602
2603 * frame.c (inside_main_func): Check full symbols as well as
2604 minimal symbols.
2605
59c8a30b
JB
26062020-10-09 Joel Brobecker <brobecker@adacore.com>
2607
2608 * ada-lang.c (advance_wild_match): Rewrite the function's
2609 description. Change the type of target0, t0 and t1 to char.
2610
7c184d33
TT
26112020-10-09 Tom Tromey <tromey@adacore.com>
2612
2613 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
2614
5c4258f4
TT
26152020-10-09 Tom Tromey <tromey@adacore.com>
2616
2617 * ada-lang.h (ada_encode): Return std::string.
2618 * ada-lang.c (ada_encode_1): Return std::string.
2619 (ada_encode): Likewise.
2620 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
2621 Update.
2622 * ada-exp.y (block_lookup, write_var_or_type): Update.
2623
3d87245c
HD
26242020-10-09 Hannes Domani <ssbssa@yahoo.de>
2625
2626 PR exp/26714
2627 * printcmd.c (print_formatted): Handle void results as
2628 unformatted prints.
2629
bbb826f5
AB
26302020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2631
2632 * arch/aarch32.c (aarch32_create_target_description): Release the
2633 target_desc_up as late as possible.
2634 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2635 * arch/amd64.c (amd64_create_target_description): Likewise.
2636 * arch/arc.c (arc_create_target_description): Return a
2637 target_desc_up, don't release it.
2638 * arch/arc.h (arc_create_target_description): Update declaration.
2639 (arc_lookup_target_description): Move target_desc_up into the
2640 cache, and return a borrowed pointer.
2641 * arch/arm.c (arm_create_target_description): Release the
2642 target_desc_up as late as possible.
2643 * arch/i386.c (i386_create_target_description): Likewise.
2644 * arch/riscv.h (riscv_create_target_description): Update
2645 declaration to match definition.
2646 * arch/tic6x.c (tic6x_create_target_description): Release the
2647 target_desc_up as late as possible.
2648
361cb219
AB
26492020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2650
2651 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
2652 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
2653
f5c4b229
JV
26542020-10-09 Jan Vrany <jan.vrany@labware.com>
2655
2656 * source.c (directory_command): Notify observers that "directories"
2657 parameter has changed.
2658
b2701685
TT
26592020-10-08 Tom Tromey <tom@tromey.com>
2660
2661 * cli/cli-cmds.c (print_disassembly): Style function name and
2662 addresses. Add _() wrappers.
2663
ada508b6
SV
26642020-10-08 Shahab Vahedi <shahab@synopsys.com>
2665
2666 * NEWS: Mention ARC support in GDBserver.
2667
51a948fd
AB
26682020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
2669
2670 * arch/aarch32.c (aarch32_create_target_description): Release
2671 unique_ptr returned from allocate_target_description.
2672 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2673 * arch/amd64.c (amd64_create_target_description): Likewise.
2674 * arch/arc.c (arc_create_target_description): Likewise.
2675 * arch/arm.c (arm_create_target_description): Likewise.
2676 * arch/i386.c (i386_create_target_description): Likewise.
2677 * arch/riscv.c (riscv_create_target_description): Update return
2678 type. Handle allocate_target_description returning a unique_ptr.
2679 (riscv_lookup_target_description): Update to handle unique_ptr.
2680 * arch/tic6x.c (tic6x_create_target_description): Release
2681 unique_ptr returned from allocate_target_description.
2682 * features/microblaze-with-stack-protect.c: Regenerate.
2683 * features/microblaze.c: Regenerate.
2684 * features/mips-dsp-linux.c: Regenerate.
2685 * features/mips-linux.c: Regenerate.
2686 * features/mips64-dsp-linux.c: Regenerate.
2687 * features/mips64-linux.c: Regenerate.
2688 * features/nds32.c: Regenerate.
2689 * features/nios2.c: Regenerate.
2690 * features/or1k.c: Regenerate.
2691 * features/rs6000/powerpc-32.c: Regenerate.
2692 * features/rs6000/powerpc-32l.c: Regenerate.
2693 * features/rs6000/powerpc-403.c: Regenerate.
2694 * features/rs6000/powerpc-403gc.c: Regenerate.
2695 * features/rs6000/powerpc-405.c: Regenerate.
2696 * features/rs6000/powerpc-505.c: Regenerate.
2697 * features/rs6000/powerpc-601.c: Regenerate.
2698 * features/rs6000/powerpc-602.c: Regenerate.
2699 * features/rs6000/powerpc-603.c: Regenerate.
2700 * features/rs6000/powerpc-604.c: Regenerate.
2701 * features/rs6000/powerpc-64.c: Regenerate.
2702 * features/rs6000/powerpc-64l.c: Regenerate.
2703 * features/rs6000/powerpc-7400.c: Regenerate.
2704 * features/rs6000/powerpc-750.c: Regenerate.
2705 * features/rs6000/powerpc-860.c: Regenerate.
2706 * features/rs6000/powerpc-altivec32.c: Regenerate.
2707 * features/rs6000/powerpc-altivec32l.c: Regenerate.
2708 * features/rs6000/powerpc-altivec64.c: Regenerate.
2709 * features/rs6000/powerpc-altivec64l.c: Regenerate.
2710 * features/rs6000/powerpc-e500.c: Regenerate.
2711 * features/rs6000/powerpc-e500l.c: Regenerate.
2712 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
2713 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
2714 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
2715 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
2716 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
2717 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
2718 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
2719 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
2720 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
2721 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
2722 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
2723 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
2724 * features/rs6000/powerpc-vsx32.c: Regenerate.
2725 * features/rs6000/powerpc-vsx32l.c: Regenerate.
2726 * features/rs6000/powerpc-vsx64.c: Regenerate.
2727 * features/rs6000/powerpc-vsx64l.c: Regenerate.
2728 * features/rs6000/rs6000.c: Regenerate.
2729 * features/rx.c: Regenerate.
2730 * features/s390-gs-linux64.c: Regenerate.
2731 * features/s390-linux32.c: Regenerate.
2732 * features/s390-linux32v1.c: Regenerate.
2733 * features/s390-linux32v2.c: Regenerate.
2734 * features/s390-linux64.c: Regenerate.
2735 * features/s390-linux64v1.c: Regenerate.
2736 * features/s390-linux64v2.c: Regenerate.
2737 * features/s390-te-linux64.c: Regenerate.
2738 * features/s390-tevx-linux64.c: Regenerate.
2739 * features/s390-vx-linux64.c: Regenerate.
2740 * features/s390x-gs-linux64.c: Regenerate.
2741 * features/s390x-linux64.c: Regenerate.
2742 * features/s390x-linux64v1.c: Regenerate.
2743 * features/s390x-linux64v2.c: Regenerate.
2744 * features/s390x-te-linux64.c: Regenerate.
2745 * features/s390x-tevx-linux64.c: Regenerate.
2746 * features/s390x-vx-linux64.c: Regenerate.
2747 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
2748 from allocate_target_description.
2749 * target-descriptions.c (allocate_target_description): Update
2750 return type.
2751 (print_c_tdesc::visit_pre): Release unique_ptr returned from
2752 allocate_target_description.
2753
485c47e5
TT
27542020-10-07 Tom Tromey <tromey@adacore.com>
2755
2756 * unittests/search-memory-selftests.c: New file.
2757 * Makefile.in (SELFTESTS_SRCS): Add
2758 unittests/search-memory-selftests.c.
2759
3a135a91
TT
27602020-10-07 Tom Tromey <tromey@adacore.com>
2761
2762 PR gdb/16930:
2763 * findcmd.c (_initialize_mem_search): Mention that the range is
2764 inclusive.
2765
4a72de73
TT
27662020-10-07 Tom Tromey <tromey@adacore.com>
2767
2768 * target.h (simple_search_memory): Don't declare.
2769 * target.c (simple_search_memory): Move to gdbsupport.
2770 (default_search_memory): Update.
2771 * remote.c (remote_target::search_memory): Update.
2772
a038ffd8
SM
27732020-10-07 Simon Marchi <simon.marchi@efficios.com>
2774
2775 * Makefile.in (COMPILE): Add CXXFLAGS.
2776 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
2777 (check-headers): Add CXXFLAGS.
2778
cc463201
AK
27792020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
2780
2781 * arc-linux-tdep.h: New file.
2782 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
2783 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
2784 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
2785 arc_linux_gregset, arc_linux_v2_regset,
2786 arc_linux_iterate_over_regset_sections,
2787 arc_linux_core_read_description): Implement.
2788 (arc_linux_init_osabi): Set iterate_over_regset_sections.
2789 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
2790 (arc_gdbarch_features_create): Add.
2791 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
2792
e4bd363f
SV
27932020-10-07 Shahab Vahedi <shahab@synopsys.com>
2794
2795 * arch/arc.h: Rename "arc_gdbarch_features" to
2796 "arc_arch_features".
2797 * arc-tdep.h: Likewise.
2798 * arc-tdep.c: Likewise.
2799
b68bef99
TBA
28002020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2801
2802 * infcmd.c (attach_command): Remove the redundant call to
2803 `clear_proceed_status`.
2804
4641551a
KR
28052020-10-07 Kamil Rytarowski <n54@gmx.com>
2806
2807 * nat/netbsd-nat.c (write_memory, read_memory): Update.
2808
91e5e8db
KR
28092020-10-07 Kamil Rytarowski <n54@gmx.com>
2810
2811 * nat/netbsd-nat.c (write_memory, read_memory): Add.
2812 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
2813 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
2814
64c03bdb
SM
28152020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
2816
2817 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
2818 (_initialize_break_catch_sig): Don't allocate array.
2819
31a8f60f
AB
28202020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
2821
2822 * symtab.c (find_pc_line): Return unmapped addresses when the
2823 requested address is also unmapped.
2824
9e6dbd8b
SM
28252020-10-05 Simon Marchi <simon.marchi@efficios.com>
2826
2827 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
2828 tui/tui-out.h.
2829
a1d217e8
SM
28302020-10-05 Simon Marchi <simon.marchi@efficios.com>
2831
2832 * amd64-windows-tdep.c (amd64_windows_return_value): Use
2833 type::is_vector instead of TYPE_VECTOR.
2834
7d144117
SM
28352020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
2836
2837 * auto-load.c (auto_load_objfile_script_1): Don't use
2838 debugfile_holder as temporary variable when stripping drive
2839 letter.
2840
cd096ec8
HD
28412020-10-05 Hannes Domani <ssbssa@yahoo.de>
2842
2843 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
2844 Add TYPE_CODE_COMPLEX.
2845 (amd64_windows_return_value): Fix types returned via XMM0.
2846
b58e7f72
AH
28472020-10-05 Alan Hayward <alan.hayward@arm.com>
2848
2849 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
2850 AArch64/ARM maintainers.
2851
8d378f27
SM
28522020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
2853
2854 * NEWS: Mention set/show debug event-loop.
2855
d5519913
TT
28562020-10-02 Tom Tromey <tromey@adacore.com>
2857
2858 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
2859 REG_EXTENDED.
2860
18b67edc
SM
28612020-10-02 Simon Marchi <simon.marchi@efficios.com>
2862
2863 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
2864 * procfs.c (procfs_inferior_created): Remove.
2865 (_initialize_procfs): Don't register procfs_inferior_created.
2866
6b01403b
SM
28672020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2868
2869 * async-event.c (invoke_async_signal_handlers): Add debug
2870 print.
2871 (check_async_event_handlers): Likewise.
2872 * event-top.c (show_debug_event_loop): New function.
2873 (_initialize_event_top): Register "set debug event-loop"
2874 setting.
2875
ba988419
SM
28762020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2877
2878 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
2879 * debug.h: Remove.
2880 * infrun.c: Include gdbsupport/common-debug.h.
2881 * linux-nat.c: Likewise.
2882
db20ebdf
SM
28832020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2884
2885 * async-event.h (create_async_signal_handler): Add name
2886 parameter.
2887 (create_async_event_handler): Likewise.
2888 * async-event.c (struct async_signal_handler) <name>: New field.
2889 (struct async_event_handler) <name>: New field.
2890 (create_async_signal_handler): Assign name.
2891 (create_async_event_handler): Assign name.
2892 * event-top.c (async_init_signals): Pass name when creating
2893 handler.
2894 * infrun.c (_initialize_infrun): Likewise.
2895 * record-btrace.c (record_btrace_push_target): Likewise.
2896 * record-full.c (record_full_open): Likewise.
2897 * remote-notif.c (remote_notif_state_allocate): Likewise.
2898 * remote.c (remote_target::open_1): Likewise.
2899 * tui/tui-win.c (tui_initialize_win): Likewise.
2900
2554f6f5
SM
29012020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2902
2903 * async-event.c (initialize_async_signal_handlers): Pass name to
2904 add_file_handler
2905 * event-top.c (ui_register_input_event_handler): Likewise.
2906 * linux-nat.c (linux_nat_target::async): Likewise.
2907 * run-on-main-thread.c (_initialize_run_on_main_thread):
2908 Likewise
2909 * ser-base.c (reschedule): Likewise.
2910 (ser_base_async): Likewise.
2911 * tui/tui-io.c: Likewise.
2912 * top.h (struct ui) <num>: New field.
2913 * top.c (highest_ui_num): New variable.
2914 (ui::ui): Initialize num.
2915
a7aba266
SM
29162020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2917
2918 * observable.h <inferior_created>: Remove parameters. Update all
2919 listeners.
2920 * inferior.h (post_create_inferior): Remove target parameter.
2921 Update all callers.
2922
048fde1e 29232020-10-02 Nitika Achra <Nitika.Achra@amd.com>
2924
2925 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
2926 and DW_MACRO_undef_strx.
2927 (dwarf_decode_macros): Likewise
2928 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
2929 which is the value of DW_AT_str_offsets_base.
2930 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
2931 str_offsets_base.
2932
064280be
KR
29332020-10-01 Kamil Rytarowski <n54@gmx.com>
2934
2935 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
2936
6ff33035
KR
29372020-10-01 Kamil Rytarowski <n54@gmx.com>
2938
2939 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
2940 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
2941
1eb6eb79
KR
29422020-10-01 Kamil Rytarowski <n54@gmx.com>
2943
2944 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
2945
95eb9e54
TV
29462020-09-30 Tom de Vries <tdevries@suse.de>
2947
2948 PR symtab/26683
2949 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
2950
cae21f8e
TT
29512020-09-30 Tom Tromey <tromey@adacore.com>
2952
2953 * dwarf2/read.c (handle_variant): Use constant_value.
2954
529908cb
TT
29552020-09-29 Tom Tromey <tom@tromey.com>
2956
2957 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
2958 (read_file_scope, dwarf2_get_pc_bounds)
2959 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
2960 (read_structure_type, handle_struct_member_die)
2961 (read_enumeration_type, read_array_type, read_set_type)
2962 (read_tag_pointer_type, read_tag_reference_type)
2963 (read_subroutine_type, read_base_type, read_subrange_type)
2964 (read_full_die_1, partial_die_info::read)
2965 (partial_die_info::read, by, new_symbol)
2966 (dwarf2_const_value_data, dwarf2_const_value_attr)
2967 (dump_die_shallow, dwarf2_fetch_constant_bytes)
2968 (prepare_one_comp_unit): Update.
2969 * dwarf2/attribute.h (DW_UNSND): Remove.
2970
c45bc3f8
TT
29712020-09-29 Tom Tromey <tom@tromey.com>
2972
2973 * dwarf2/read.c (read_func_scope, prototyped_function_p)
2974 (read_subroutine_type, partial_die_info::read)
2975 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
2976 (dwarf2_add_member_fn): Update.
2977 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
2978 * dwarf2/attribute.c (attribute::as_boolean): New method.
2979
23dca5c3
TT
29802020-09-29 Tom Tromey <tom@tromey.com>
2981
2982 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
2983 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
2984 method.
2985 * dwarf2/attribute.c (attribute::as_virtuality): New method.
2986
52c14d11
TT
29872020-09-29 Tom Tromey <tom@tromey.com>
2988
2989 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
2990 the attribute's form.
2991
e8e5c158
TT
29922020-09-29 Tom Tromey <tom@tromey.com>
2993
2994 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
2995 (dwarf2_add_member_fn): Update.
2996 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
2997 * dwarf2/attribute.c (attribute::defaulted): New method, from
2998 is_valid_DW_AT_defaulted.
2999
d4df075e
TT
30002020-09-29 Tom Tromey <tom@tromey.com>
3001
3002 * dwarf2/read.c (dw2_get_file_names_reader)
3003 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
3004 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
3005 (dwarf2_symbol_mark_computed): Use as_unsigned.
3006 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
3007 method.
3008 <form_is_section_offset>: Update comment.
3009
bf23a268
TT
30102020-09-29 Tom Tromey <tom@tromey.com>
3011
3012 * dwarf2/read.c (dwarf2_access_attribute): Rename from
3013 dwarf2_default_access_attribute. Look up attribute.
3014 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
3015 Update.
3016
7a5f294d
TT
30172020-09-29 Tom Tromey <tom@tromey.com>
3018
3019 * dwarf2/read.c (skip_one_die): Update.
3020 (read_full_die_1): Change how reprocessing is done.
3021 (partial_die_info::read): Update.
3022 (read_attribute_value): Remove need_reprocess parameter.
3023 (read_attribute): Likewise.
3024 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
3025 New method.
3026
36d378cf
TT
30272020-09-29 Tom Tromey <tom@tromey.com>
3028
3029 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
3030 (dwarf2_const_value_attr, dump_die_shallow)
3031 (dwarf2_fetch_constant_bytes): Update.
3032 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
3033 comment.
3034 <set_address>: New method.
3035 (DW_ADDR): Remove.
3036 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
3037 (attribute::as_string, attribute::as_address): Add assert.
3038
fe56917a
TT
30392020-09-29 Tom Tromey <tom@tromey.com>
3040
3041 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
3042 (read_attribute_reprocess, read_attribute_value): Update.
3043 (read_attribute): Clear requires_reprocessing.
3044 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
3045 form_requires_reprocessing>: New methods.
3046 <string_init>: Clear requires_reprocessing.
3047 <set_unsigned_reprocess>: New method.
3048 <name>: Shrink by one bit.
3049 <requires_reprocessing>: New member.
3050 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
3051 method.
3052
414ad644
TT
30532020-09-29 Tom Tromey <tom@tromey.com>
3054
3055 * dwarf2/read.c (read_attribute_value): Update.
3056 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
3057 set_unsigned>: New methods.
3058 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
3059
1bc397c5
TT
30602020-09-29 Tom Tromey <tom@tromey.com>
3061
3062 * dwarf2/read.c (get_alignment, read_array_order)
3063 (read_attribute_value, dwarf2_const_value_attr)
3064 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
3065 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
3066 New methods.
3067 (DW_SND): Remove.
3068
630ed6b9
TT
30692020-09-29 Tom Tromey <tom@tromey.com>
3070
3071 * dwarf2/read.c (read_attribute_value, lookup_die_type)
3072 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
3073 Update.
3074 * dwarf2/attribute.h (struct attribute) <as_signature,
3075 set_signature>: New methods.
3076 (DW_SIGNATURE): Remove.
3077
9d2246fc
TT
30782020-09-29 Tom Tromey <tom@tromey.com>
3079
3080 * dwarf2/read.c (read_call_site_scope)
3081 (handle_data_member_location, dwarf2_add_member_fn)
3082 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3083 (partial_die_info::read, read_attribute_value)
3084 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
3085 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
3086 (dwarf2_symbol_mark_computed): Update.
3087 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
3088 methods.
3089 (DW_BLOCK): Remove.
3090 * dwarf2/attribute.c (attribute::form_is_block): Add
3091 DW_FORM_data16.
3092
c6481205
TT
30932020-09-29 Tom Tromey <tom@tromey.com>
3094
3095 * dwarf2/read.c (read_cutu_die_from_dwo)
3096 (read_attribute_reprocess, read_attribute_value, read_attribute)
3097 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
3098 (dwarf2_fetch_constant_bytes): Update.
3099 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
3100 <set_string_noncanonical, set_string_canonical>: New methods.
3101 <string_is_canonical>: Update comment.
3102 <canonical_string_p>: Add assert.
3103 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
3104 * dwarf2/attribute.c (attribute::form_is_string): New method.
3105 (attribute::string): Use it.
3106
3b64bf15
TT
31072020-09-29 Tom Tromey <tom@tromey.com>
3108
3109 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
3110 (dump_die_shallow): Use canonical_string_p.
3111 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
3112 method.
3113
2c830f54
TT
31142020-09-29 Tom Tromey <tom@tromey.com>
3115
3116 * dwarf2/read.c (partial_die_info::read)
3117 (dwarf2_const_value_attr, anonymous_struct_prefix, )
3118 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
3119 attribute::as_string.
3120
6c412691
TT
31212020-09-29 Tom Tromey <tom@tromey.com>
3122
3123 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
3124 DW_ADDR.
3125 (attribute::string): Don't use DW_STRING.
3126 (attribute::get_ref_die_offset): Don't use DW_UNSND.
3127 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
3128
95f982e5
TT
31292020-09-29 Tom Tromey <tom@tromey.com>
3130
3131 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
3132 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
3133 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
3134 * dwarf2/attribute.h (struct attribute): Rename methods.
3135 * dwarf2/attribute.c (attribute::as_address): Rename from
3136 value_as_address.
3137 (attribute::as_string): Rename from value_as_string.
3138
f800b00e
TT
31392020-09-29 Tom Tromey <tom@tromey.com>
3140
3141 * dwarf2/read.c (partial_die_info::read) <case
3142 DW_AT_linkage_name>: Use value_as_string.
3143 (dwarf2_string_attr): Use value_as_string.
3144 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
3145 method.
3146 * dwarf2/attribute.c (attribute::value_as_string): New method.
3147
de38d64a
PA
31482020-09-29 Pedro Alves <pedro@palves.net>
3149
3150 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
3151 defined before using '#pragma GCC diagnostic' instead of checking
3152 __clang__.
3153
9aed480c
TT
31542020-09-28 Tom Tromey <tom@tromey.com>
3155
3156 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
3157 (handle_signal_stop): Update.
3158 * procfs.c (procfs_target::insert_watchpoint): Update.
3159 * target.h (target_have_steppable_watchpoint): Now a function.
3160
8a3ecb79
TT
31612020-09-28 Tom Tromey <tom@tromey.com>
3162
3163 * infrun.c (set_schedlock_func): Update.
3164 * target.h (target_can_lock_scheduler): Now a function.
3165
55f6301a
TT
31662020-09-28 Tom Tromey <tom@tromey.com>
3167
3168 * inferior.h (class inferior) <has_execution>: Update.
3169 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
3170 * valops.c (find_function_in_inferior)
3171 (value_allocate_space_in_inferior): Update.
3172 * top.c (kill_or_detach): Update.
3173 * target.c (target_preopen, set_target_permissions): Update.
3174 (target_has_execution_current): Remove.
3175 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
3176 Update.
3177 * solib.c (update_solib_list, reload_shared_libraries): Update.
3178 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
3179 * solib-dsbt.c (enable_break): Update.
3180 * score-tdep.c (score7_fetch_inst): Update.
3181 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
3182 Update.
3183 * remote.c (remote_target::start_remote)
3184 (remote_target::remote_check_symbols, remote_target::open_1)
3185 (remote_target::remote_detach_1, remote_target::verify_memory)
3186 (remote_target::xfer_partial, remote_target::read_description)
3187 (remote_target::get_min_fast_tracepoint_insn_len): Update.
3188 * record-full.c (record_full_open_1): Update.
3189 * record-btrace.c (record_btrace_target_open): Update.
3190 * objc-lang.c (lookup_objc_class, lookup_child_selector)
3191 (value_nsstring): Update.
3192 * linux-thread-db.c (add_thread_db_info)
3193 (thread_db_find_new_threads_silently, check_thread_db_callback)
3194 (try_thread_db_load_1, record_thread): Update.
3195 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
3196 Update.
3197 * linux-fork.c (checkpoint_command): Update.
3198 * infrun.c (set_non_stop, set_observer_mode)
3199 (check_multi_target_resumption, for_each_just_stopped_thread)
3200 (maybe_remove_breakpoints, normal_stop)
3201 (class infcall_suspend_state): Update.
3202 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
3203 (info_program_command, attach_command): Update.
3204 * infcall.c (call_function_by_hand_dummy): Update.
3205 * inf-loop.c (inferior_event_handler): Update.
3206 * gcore.c (gcore_command, derive_heap_segment): Update.
3207 * exec.c (exec_file_command): Update.
3208 * eval.c (evaluate_subexp): Update.
3209 * compile/compile.c (compile_to_object): Update.
3210 * cli/cli-dump.c (restore_command): Update.
3211 * breakpoint.c (update_watchpoint)
3212 (update_inserted_breakpoint_locations)
3213 (insert_breakpoint_locations, get_bpstat_thread): Update.
3214 * target.h (target_has_execution): Remove macro.
3215 (target_has_execution_current): Don't declare.
3216 (target_has_execution): Rename from target_has_execution_1. Add
3217 argument default.
3218
05374cfd
TT
32192020-09-28 Tom Tromey <tom@tromey.com>
3220
3221 * mi/mi-main.c (exec_reverse_continue)
3222 (mi_cmd_list_target_features): Update.
3223 * infrun.c (set_exec_direction_func): Update.
3224 * target.c (default_execution_direction): Update.
3225 * reverse.c (exec_reverse_once): Update.
3226 * target.h (target_can_execute_reverse): Now a function.
3227
9dccd06e
TT
32282020-09-28 Tom Tromey <tom@tromey.com>
3229
3230 * tui/tui-regs.c (tui_get_register)
3231 (tui_data_window::show_registers): Update.
3232 * thread.c (scoped_restore_current_thread::restore)
3233 (scoped_restore_current_thread::scoped_restore_current_thread):
3234 Update.
3235 * regcache-dump.c (regcache_print): Update.
3236 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
3237 Update.
3238 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
3239 * mep-tdep.c (current_me_module, current_options): Update.
3240 * linux-thread-db.c (thread_db_load): Update.
3241 * infcmd.c (registers_info, info_vector_command)
3242 (info_float_command): Update.
3243 * ia64-tdep.c (ia64_frame_prev_register)
3244 (ia64_sigtramp_frame_prev_register): Update.
3245 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
3246 * gcore.c (derive_stack_segment): Update.
3247 * frame.c (get_current_frame, has_stack_frames): Update.
3248 * findvar.c (language_defn::read_var_value): Update.
3249 * arm-tdep.c (arm_pc_is_thumb): Update.
3250 * target.c (target_has_registers): Rename from
3251 target_has_registers_1.
3252 * target.h (target_has_registers): Remove macro.
3253 (target_has_registers): Rename from target_has_registers_1.
3254
841de120
TT
32552020-09-28 Tom Tromey <tom@tromey.com>
3256
3257 * windows-tdep.c (tlb_make_value): Update.
3258 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3259 * thread.c (scoped_restore_current_thread::restore)
3260 (scoped_restore_current_thread::scoped_restore_current_thread)
3261 (thread_command): Update.
3262 * stack.c (backtrace_command_1, frame_apply_level_command)
3263 (frame_apply_all_command, frame_apply_command): Update.
3264 * infrun.c (siginfo_make_value, restore_infcall_control_state):
3265 Update.
3266 * gcore.c (derive_stack_segment): Update.
3267 * frame.c (get_current_frame, has_stack_frames): Update.
3268 * auxv.c (info_auxv_command): Update.
3269 * ada-tasks.c (ada_build_task_list): Update.
3270 * target.c (target_has_stack): Rename from target_has_stack_1.
3271 * target.h (target_has_stack): Remove macro.
3272 (target_has_stack): Rename from target_has_stack_1.
3273
a739972c
TT
32742020-09-28 Tom Tromey <tom@tromey.com>
3275
3276 * target.c (target_has_memory): Rename from target_has_memory_1.
3277 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3278 * thread.c (scoped_restore_current_thread::restore)
3279 (scoped_restore_current_thread::scoped_restore_current_thread):
3280 Update.
3281 * frame.c (get_current_frame, has_stack_frames): Update.
3282 * target.h (target_has_memory): Remove macro.
3283 (target_has_memory): Rename from target_has_memory_1.
3284
5b8a4776
TT
32852020-09-28 Tom Tromey <tom@tromey.com>
3286
3287 * target.c (target_has_all_memory_1): Remove.
3288 * target.h (target_has_all_memory): Remove define.
3289 (target_has_all_memory_1): Don't declare.
3290
bd356ec6
SM
32912020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
3292
3293 * ser-base.c: Adjust comments formatting.
3294
2c72d5e5
TT
32952020-09-27 Tom Tromey <tom@tromey.com>
3296
3297 PR tui/25342:
3298 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
3299
35a98237
TT
33002020-09-27 Tom Tromey <tom@tromey.com>
3301
3302 PR tui/25342:
3303 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
3304
9e820dec
TT
33052020-09-27 Tom Tromey <tom@tromey.com>
3306
3307 * unittests/tui-selftests.c: Update.
3308 * tui/tui-winsource.h (struct tui_source_window_base)
3309 <extra_margin, show_line_number, refresh_pad>: New methods.
3310 <m_max_length, m_pad>: New members.
3311 (tui_copy_source_line): Update.
3312 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
3313 first_col, line_width, ndigits parameters. Add length.
3314 (tui_source_window_base::show_source_line): Write to pad. Line
3315 number now 0-based.
3316 (tui_source_window_base::refresh_pad): New method.
3317 (tui_source_window_base::show_source_content): Write to pad. Call
3318 refresh_pad.
3319 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
3320 not refill.
3321 (tui_source_window_base::update_exec_info): Call
3322 show_line_number.
3323 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
3324 method.
3325 <m_digits>: New member.
3326 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
3327 and m_max_length.
3328 (tui_source_window::show_line_number): New method.
3329 * tui/tui-io.h (tui_puts): Fix comment.
3330 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
3331 m_max_length.
3332
c15c15c8
TT
33332020-09-27 Tom Tromey <tom@tromey.com>
3334
3335 * tui/tui-winsource.c
3336 (tui_source_window_base::set_is_exec_point_at): Don't call
3337 show_source_line.
3338
149830c1
TT
33392020-09-27 Tom Tromey <tom@tromey.com>
3340
3341 * python/py-tui.c (class tui_py_window) <refresh_window>: New
3342 method.
3343 <erase>: Update.
3344 <cursor_x, cursor_y>: Remove.
3345 <m_inner_window>: New member.
3346 (tui_py_window::rerender): Create inner window.
3347 (tui_py_window::output): Write to inner window.
3348
8f9929bb
GR
33492020-09-26 Gareth Rees <grees@undo.io> (tiny change)
3350
3351 PR python/26586
3352 * cli/cli-script.c (execute_control_commands): don't set
3353 instream to nullptr here as this breaks the from_tty argument
3354 to gdb.execute in Python.
3355 (execute_user_command): set instream to nullptr here instead.
3356
956bdb59
SM
33572020-09-25 Simon Marchi <simon.marchi@efficios.com>
3358
3359 * infrun.h (infrun_debug_printf): Fix formatting.
3360 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
3361
3b93626b
SJ
33622020-09-25 Saagar Jha <saagar@saagarjha.com>
3363
3364 * compile/compile-object-load.h (struct munmap_list): Add
3365 explicitly-defined move constructor.
3366
b551a89f
TT
33672020-09-24 Tom Tromey <tromey@adacore.com>
3368
3369 PR tui/26638:
3370 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
3371 method.
3372 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
3373 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
3374 (tui_prev_win): Rewrite.
3375
99bb393f
HD
33762020-09-23 Hannes Domani <ssbssa@yahoo.de>
3377
3378 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
3379 in WOW64 processes as SIGINT.
3380 * nat/windows-nat.h: Make wow64_process a shared variable.
3381 * windows-nat.c: Remove static wow64_process variable.
3382
20a5fcbd
TT
33832020-09-23 Tom Tromey <tom@tromey.com>
3384
3385 PR symtab/25470:
3386 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
3387 offset and bit size.
3388 * printcmd.c (print_scalar_formatted): Handle zero-length
3389 integer.
3390 (print_scalar_formatted): Use bit_size_differs_p.
3391 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
3392 constant.
3393 (union type_specific): <int_stuff>: New member.
3394 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
3395 methods.
3396 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
3397 TYPE_SPECIFIC_FIELD.
3398 (recursive_dump_type, copy_type_recursive): Update.
3399 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
3400 DW_AT_data_bit_offset.
3401
bac51ab7
TT
34022020-09-23 Tom Tromey <tom@tromey.com>
3403
3404 * utils.h (class gdb_argv): Add move operators.
3405 <append>: New methods.
3406 * compile/compile.c (build_argc_argv): Remove.
3407 (compile_args_argc): Remove.
3408 (compile_args_argv): Change type.
3409 (set_compile_args): Simplify.
3410 (append_args): Remove.
3411 (filter_args): Remove argcp parameter.
3412 (get_args): Return gdb_argv. Simplify.
3413 (compile_to_object): Update.
3414
92677124
TT
34152020-09-23 Tom Tromey <tom@tromey.com>
3416
3417 * compile/compile-object-run.c (do_module_cleanup)
3418 <~do_module_cleanup> :Remove.
3419 (do_module_cleanup): Update.
3420 * compile/compile-object-load.h (struct munmap_list): Add move
3421 assignment operator.
3422 <source_file>: Now a std::string.
3423 <munmap_list>: Rename. No longer a pointer.
3424 * compile/compile-object-load.c (struct setup_sections_data): Add
3425 constructor.
3426 <setup_one_section>: Declare.
3427 <munmap_list>: Move earlier.
3428 <m_bfd>: New member.
3429 <m_last_size, m_last_section_first, m_last_prot,
3430 m_last_max_alignment>: Rename, add initializers where needed.
3431 (setup_sections_data::setup_one_section): Rename from
3432 setup_sections. Update.
3433 (compile_object_load): Update. Don't use bfd_map_over_sections.
3434
e616f60a
TT
34352020-09-23 Tom Tromey <tom@tromey.com>
3436
3437 * compile/compile-object-run.c (struct do_module_cleanup): Add
3438 parameters to constructor. Update destructor.
3439 <source_file, scope, scope_data, out_value_type, out_value_addr,
3440 munmap_list_head, objfile_name_string>: Remove.
3441 <module>: New member.
3442 (do_module_cleanup): Update.
3443 (compile_object_run): Update.
3444
e947a848
TT
34452020-09-23 Tom Tromey <tom@tromey.com>
3446
3447 * compile/compile.c (eval_compile_command): Update.
3448 * compile/compile-object-run.h (compile_object_run): Take a
3449 compile_module_up.
3450 * compile/compile-object-run.c (compile_object_run): Take a
3451 compile_module_up.
3452 * compile/compile-object-load.h (struct compile_module): Add
3453 constructor, destructor.
3454 (compile_module_up): New typedef.
3455 (compile_object_load): Return compile_object_up.
3456 * compile/compile-object-load.c (compile_object_load): Return
3457 compile_module_up.
3458
0dbf6ee6
TT
34592020-09-23 Tom Tromey <tom@tromey.com>
3460
3461 * compile/compile-object-run.c (struct do_module_cleanup): Add
3462 constructor, destructor.
3463 <objfile_name_string>: Don't use struct hack.
3464 (do_module_cleanup): Use delete.
3465 (compile_object_run): Use new.
3466
ebe824f5
TT
34672020-09-23 Tom Tromey <tom@tromey.com>
3468
3469 * compile/compile-cplus-types.c
3470 (compile_cplus_convert_struct_or_union): Use std::vector.
3471 (compile_cplus_convert_func): Likewise.
3472 * compile/compile-c-types.c (convert_func): Use std::vector.
3473
5dd918d9
TT
34742020-09-21 Tom Tromey <tromey@adacore.com>
3475
3476 * sparc-tdep.c (sparc32_skip_prologue): Use
3477 skip_prologue_using_sal.
3478
5486c517
TT
34792020-09-19 Tom Tromey <tom@tromey.com>
3480
3481 * symfile.c (add_section_size_callback): Remove.
3482 (load_one_section): Rename from load_section_callback. Change
3483 parameters.
3484 (generic_load): Use foreach.
3485
8a6bb1d1
TT
34862020-09-19 Tom Tromey <tom@tromey.com>
3487
3488 * exec.c (add_to_section_table): Remove.
3489 (build_section_table): Use foreach.
3490
08f93a1a
TT
34912020-09-19 Tom Tromey <tom@tromey.com>
3492
3493 * elfread.c (elf_locate_sections): Change parameters.
3494 (elf_symfile_read): Use foreach.
3495
03cd72b8
TT
34962020-09-19 Tom Tromey <tom@tromey.com>
3497
3498 * cli/cli-dump.c (struct callback_data): Remove.
3499 (restore_one_section): Rename from restore_section_callback.
3500 Change parameters.
3501 (restore_binary_file): Change parameters.
3502 (restore_command): Use foreach.
3503
f4f2b85f
TT
35042020-09-19 Tom Tromey <tom@tromey.com>
3505
3506 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
3507 (gcore_copy_callback): Likewise.
3508 (gcore_memory_sections): Use foreach.
3509
b35c1d1c
TT
35102020-09-19 Tom Tromey <tom@tromey.com>
3511
3512 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
3513 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
3514 parameters.
3515 (generic_elf_osabi_sniffer): Use foreach.
3516 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
3517 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
3518
5bb6e9dd
TT
35192020-09-19 Tom Tromey <tom@tromey.com>
3520
3521 * dwarf2/read.c (locate_dwz_sections): Change parameters.
3522 (dwarf2_get_dwz_file): Use foreach.
3523 (dwarf2_locate_dwo_sections): Change parameters.
3524 (open_and_init_dwo_file): Use foreach.
3525 (dwarf2_locate_common_dwp_sections): Change parameters.
3526 (open_and_init_dwp_file): Use foreach.
3527
ad7277da
TT
35282020-09-19 Tom Tromey <tom@tromey.com>
3529
3530 * symfile.h: (find_lowest_section): Don't declare.
3531 * symfile.c (find_lowest_section): Now static. Change
3532 parameters.
3533 (struct place_section_arg): Remove.
3534 (place_section): Change parameters.
3535 (addr_info_make_relative): Use foreach.
3536 (symfile_dummy_outputs): Remove.
3537 (default_symfile_relocate): Use foreach.
3538
cb814f2e
TT
35392020-09-19 Tom Tromey <tom@tromey.com>
3540
3541 * objfiles.c (add_to_objfile_sections): Rename from
3542 add_to_objfile_sections_full.
3543 (add_to_objfile_sections): Remove.
3544 (build_objfile_section_table): Use foreach.
3545
3cabfd26
TT
35462020-09-19 Tom Tromey <tom@tromey.com>
3547
3548 * stap-probe.c (get_stap_base_address_1): Remove.
3549 (get_stap_base_address): Use foreach.
3550
1ce51eb5
TT
35512020-09-19 Tom Tromey <tom@tromey.com>
3552
3553 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
3554 parameters.
3555 (gdb_bfd_close_or_warn): Use foreach.
3556
a190fabb
TT
35572020-09-19 Tom Tromey <tom@tromey.com>
3558
3559 * corelow.c (add_to_thread_list): Change parameters.
3560 (core_target_open): Use foreach.
3561
cafb0d81
TT
35622020-09-19 Tom Tromey <tom@tromey.com>
3563
3564 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
3565 existing function.
3566
c8d5abea
AB
35672020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3568
3569 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
3570 for arrays.
3571
6d816919
AB
35722020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3573
3574 * eval.c: Remove 'f-lang.h' include.
3575 (value_f90_subarray): Moved to f-lang.c.
3576 (eval_call): Renamed to...
3577 (evaluate_subexp_do_call): ...this, is no longer static, header
3578 comment moved into header file.
3579 (evaluate_funcall): Update call to eval_call.
3580 (skip_undetermined_arglist): Moved to f-lang.c.
3581 (fortran_value_subarray): Likewise.
3582 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3583 moved to evaluate_subexp_f.
3584 (calc_f77_array_dims): Moved to f-lang.c
3585 * expprint.c (print_subexp_funcall): New function.
3586 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3587 moved to print_subexp_f, OP_FUNCALL uses new function.
3588 (dump_subexp_body_funcall): New function.
3589 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
3590 moved to dump_subexp_f, OP_FUNCALL uses new function.
3591 * expression.h (evaluate_subexp_do_call): Declare.
3592 * f-lang.c (value_f90_subarray): Moved from eval.c.
3593 (skip_undetermined_arglist): Likewise.
3594 (calc_f77_array_dims): Likewise.
3595 (fortran_value_subarray): Likewise.
3596 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
3597 (operator_length_f): Likewise.
3598 (print_subexp_f): Likewise.
3599 (dump_subexp_body_f): Likewise.
3600 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
3601 declaration of this operation to here.
3602 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
3603 support moved to operator_length_f.
3604 * parser-defs.h (dump_subexp_body_funcall): Declare.
3605 (print_subexp_funcall): Declare.
3606 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
3607 fortran-operator.def.
3608
8c37706a
AB
36092020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3610
3611 * eval.c (fortran_value_subarray): New function, content is taken
3612 from...
3613 (evaluate_subexp_standard): ...here, in two places. Now arrays
3614 and strings both call the new function.
3615 (calc_f77_array_dims): Add header comment, handle strings.
3616
14f9473c
VC
36172020-09-18 Victor Collod <vcollod@nvidia.com>
3618
3619 PR gdb/26635
3620 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
3621 (i386_analyze_prologue): Call i386_skip_endbr.
3622
b60cea74
TT
36232020-09-18 Tom Tromey <tromey@adacore.com>
3624
3625 * windows-nat.c (struct windows_nat_target) <wait>: Update.
3626 (windows_nat_target::wait): Update.
3627 * target/wait.h (enum target_wait_flag): New. Use
3628 DEF_ENUM_FLAGS_TYPE.
3629 * target/target.h (target_wait): Change type of options.
3630 * target.h (target_options_to_string, default_target_wait):
3631 Update.
3632 (struct target_ops) <wait>: Change type of options.
3633 * target.c (target_wait, default_target_wait, do_option): Change
3634 type of "options".
3635 (target_options_to_string): Likewise.
3636 * target-delegates.c: Rebuild.
3637 * target-debug.h (target_debug_print_target_wait_flags): Rename
3638 from target_debug_print_options.
3639 * sol-thread.c (class sol_thread_target) <wait>: Update.
3640 (sol_thread_target::wait): Update.
3641 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
3642 (rs6000_nat_target::wait): Update.
3643 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
3644 Update.
3645 (remote_target::wait_ns, remote_target::wait_as): Change type of
3646 "options".
3647 (remote_target::wait): Update.
3648 * remote-sim.c (struct gdbsim_target) <wait>: Update.
3649 (gdbsim_target::wait): Update.
3650 * record-full.c (class record_full_base_target) <wait>: Update.
3651 (record_full_wait_1): Change type of "options".
3652 (record_full_base_target::wait): Update.
3653 * record-btrace.c (class record_btrace_target) <wait>: Update.
3654 (record_btrace_target::wait): Update.
3655 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
3656 Update.
3657 (ravenscar_thread_target::wait): Update.
3658 * procfs.c (class procfs_target) <wait>: Update.
3659 (procfs_target::wait): Update.
3660 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
3661 * obsd-nat.c (obsd_nat_target::wait): Update.
3662 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
3663 (nto_procfs_target::wait): Update.
3664 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
3665 * nbsd-nat.c (nbsd_wait): Change type of "options".
3666 (nbsd_nat_target::wait): Update.
3667 * linux-thread-db.c (class thread_db_target) <wait>: Update.
3668 (thread_db_target::wait): Update.
3669 * linux-nat.h (class linux_nat_target) <wait>: Update.
3670 * linux-nat.c (linux_nat_target::wait): Update.
3671 (linux_nat_wait_1): Update.
3672 * infrun.c (do_target_wait_1, do_target_wait): Change type of
3673 "options".
3674 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
3675 * inf-ptrace.c (inf_ptrace_target::wait): Update.
3676 * go32-nat.c (struct go32_nat_target) <wait>: Update.
3677 (go32_nat_target::wait): Update.
3678 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
3679 * gnu-nat.c (gnu_nat_target::wait): Update.
3680 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
3681 * fbsd-nat.c (fbsd_nat_target::wait): Update.
3682 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
3683 * darwin-nat.c (darwin_nat_target::wait): Update.
3684 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
3685 (bsd_uthread_target::wait): Update.
3686 * aix-thread.c (class aix_thread_target) <wait>: Update.
3687 (aix_thread_target::wait): Update.
3688
0295dde6
AB
36892020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
3690
3691 * compile/compile-object-run.c (create_copied_type_recursive): New
3692 function.
3693 (compile_object_run): Use new function.
3694
d3483b43
JT
36952020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
3696
3697 * NEWS: Mention x86_64 Cygwin core file support.
3698
e7d612ad
JT
36992020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3700
3701 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
3702 (core_process_module_section): Handle NOTE_INFO_MODULE64.
3703
aff9d387
JT
37042020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3705
62a5151b
JT
3706 * windows-tdep.h: Add prototypes.
3707 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
3708 (i386_windows_core_pid_to_str): Move and rename ...
3709 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
3710 (windows_core_pid_to_str): ... and here.
3711 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
3712
37132020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
3714 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
3715 (amd64_windows_init_abi_common): ... and register.
3716
7d155da3
JT
37172020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3718
3719 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
3720 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
3721
e8ef12b9
PA
37222020-09-18 Pedro Alves <pedro@palves.net>
3723
3724 PR gdb/26631
3725 * thread.c (thread_find_command): Switch inferior before calling
3726 target methods.
3727
c1e1314d
TT
37282020-09-17 Tom Tromey <tromey@adacore.com>
3729
3730 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
3731 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
3732 (tdesc_arch_data_up): New typedef.
3733 (tdesc_use_registers, tdesc_data_alloc): Update.
3734 (tdesc_data_cleanup): Don't declare.
3735 * target-descriptions.c (tdesc_data_alloc): Return a
3736 tdesc_arch_data_up.
3737 (tdesc_arch_data_deleter::operator()): Rename from
3738 tdesc_data_cleanup. Change argument type.
3739 (tdesc_use_registers): Change early_data to an rvalue reference.
3740 (tdesc_use_registers): Don't use delete.
3741 * sparc-tdep.c (sparc32_gdbarch_init): Update.
3742 * s390-tdep.c (s390_gdbarch_init): Update.
3743 * rx-tdep.c (rx_gdbarch_init): Update.
3744 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3745 * riscv-tdep.c (riscv_gdbarch_init): Update.
3746 * or1k-tdep.c (or1k_gdbarch_init): Update.
3747 * nios2-tdep.c (nios2_gdbarch_init): Update.
3748 * nds32-tdep.c (nds32_gdbarch_init): Update.
3749 * mips-tdep.c (mips_gdbarch_init): Update.
3750 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
3751 * m68k-tdep.c (m68k_gdbarch_init): Update.
3752 * i386-tdep.c (i386_gdbarch_init): Update.
3753 * arm-tdep.c (arm_gdbarch_init): Update.
3754 * arc-tdep.c (arc_tdesc_init): Update.
3755 (arc_gdbarch_init): Update.
3756 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
3757
0363df3d
HD
37582020-09-17 Hannes Domani <ssbssa@yahoo.de>
3759
3760 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
3761 for WOW64 processes.
3762
280a9412
TT
37632020-09-17 Tom Tromey <tom@tromey.com>
3764
3765 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
3766
6108fd18
TT
37672020-09-17 Tom Tromey <tom@tromey.com>
3768
3769 * value.c (preserve_values): Update.
3770 * python/py-type.c (save_objfile_types): Update.
3771 * guile/scm-type.c (save_objfile_types): Update.
3772 * gdbtypes.h (create_copied_types_hash): Return htab_up.
3773 * gdbtypes.c (create_copied_types_hash): Return htab_up.
3774 * compile/compile-object-run.c (compile_object_run): Update.
3775
fa9b1164
TT
37762020-09-17 Tom Tromey <tom@tromey.com>
3777
3778 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
3779 Remove.
3780 <m_table>: Now htab_up.
3781 * typeprint.c (typedef_hash_table::recursively_update)
3782 (typedef_hash_table::add_template_parameters)
3783 (typedef_hash_table::typedef_hash_table): Update.
3784 (typedef_hash_table::~typedef_hash_table): Remove.
3785 (typedef_hash_table::typedef_hash_table)
3786 (typedef_hash_table::find_global_typedef)
3787 (typedef_hash_table::find_typedef): Update.
3788
eb53f105
TT
37892020-09-17 Tom Tromey <tom@tromey.com>
3790
3791 * target-descriptions.c (tdesc_use_registers): Use htab_up.
3792
7a8a5d47
TT
37932020-09-17 Tom Tromey <tom@tromey.com>
3794
3795 * linespec.c (class decode_compound_collector)
3796 <~decode_compound_collector>: Remove.
3797 <m_unique_syms>: Now htab_up.
3798 (decode_compound_collector::operator ()): Update.
3799 (class symtab_collector) <~symtab_collector>: Remove.
3800 <m_symtab_table>: Now htab_up.
3801 (symtab_collector::operator ()): Update.
3802
99032cfc
TT
38032020-09-17 Tom Tromey <tom@tromey.com>
3804
3805 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
3806 (filename_seen_cache::clear): Update.
3807 (~filename_seen_cache): Remove.
3808 (filename_seen_cache::seen): Update.
3809 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
3810 htab_up.
3811 <~filename_seen_cache>: Remove.
3812 <traverse>: Update.
3813
32580f6d
TT
38142020-09-17 Tom Tromey <tom@tromey.com>
3815
3816 * completer.c (completion_tracker::discard_completions)
3817 (completion_tracker::~completion_tracker)
3818 (completion_tracker::maybe_add_completion)
3819 (completion_tracker::remove_completion)
3820 (completion_tracker::recompute_lowest_common_denominator)
3821 (completion_tracker::build_completion_result): Update.
3822 * completer.h (class completion_tracker) <have_completions>:
3823 Update.
3824 <m_entries_hash>: Now htab_up.
3825
c1fb9836
TT
38262020-09-17 Tom Tromey <tom@tromey.com>
3827
3828 * breakpoint.c (ambiguous_names_p): Use htab_up.
3829
88f07206
TT
38302020-09-17 Tom Tromey <tom@tromey.com>
3831
3832 * auto-load.c (struct auto_load_pspace_info)
3833 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
3834 <loaded_script_files, loaded_script_texts>: Change type to
3835 htab_up.
3836 (~auto_load_pspace_info) Remove.
3837 (init_loaded_scripts_info, maybe_add_script_file)
3838 (maybe_add_script_text, auto_load_info_scripts): Update.
3839
9519b2ee
TT
38402020-09-17 Tom Tromey <tromey@adacore.com>
3841
3842 * c-exp.y (name_obstack): Now static.
3843
d2cd4113
CC
38442020-09-17 Chungyi Chi <demonic@csie.io>
3845
3846 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
3847
b650a282
SM
38482020-09-16 Simon Marchi <simon.marchi@efficios.com>
3849
3850 * breakpoint.h (init_catchpoint): Change int parameter to bool.
3851 (add_solib_catchpoint): Likewise.
3852 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
3853 to bool.
3854 (add_solib_catchpoint): Change int parameter/variable to bool.
3855 (catch_load_or_unload): Likewise.
3856 (init_catchpoint): Likewise.
3857 (create_fork_vfork_event_catchpoint): Likewise.
3858 (catch_fork_command_1): Likewise.
3859 (catch_exec_command_1): Likewise.
3860
4d0bcfcf
SM
38612020-09-16 Simon Marchi <simon.marchi@efficios.com>
3862
3863 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
3864 Change instance_flags to m_instance_flags.
3865
fe830662
TT
38662020-09-16 Tom Tromey <tromey@adacore.com>
3867
3868 PR gdb/26598:
3869 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
3870
fe5ddfc3
JB
38712020-09-16 John Baldwin <jhb@FreeBSD.org>
3872
3873 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
3874 PL_FLAG_EXEC.
3875 (fbsd_nat_target::insert_exec_catchpoint)
3876 (fbsd_nat_target::remove_exec_catchpoint): Always define.
3877 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
3878 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
3879
e911c666
JB
38802020-09-16 John Baldwin <jhb@FreeBSD.org>
3881
3882 * configure.ac: Remove check for kinfo_getvmmap().
3883 * configure, config.in: Regenerate.
3884 * fbsd-nat.c (fbsd_read_mapping): Remove
3885 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
3886 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
3887 kinfo_get_vmmap() are always present.
3888
1f17d372
JB
38892020-09-16 John Baldwin <jhb@FreeBSD.org>
3890
3891 * fbsd-nat.c: Always include support for
3892 TARGET_OBJECT_SIGNAL_INFO.
3893
bcb1da7f
JB
38942020-09-16 John Baldwin <jhb@FreeBSD.org>
3895
3896 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
3897 sysctl and remove procfs fallback.
3898
5515f729
JB
38992020-09-16 John Baldwin <jhb@FreeBSD.org>
3900
3901 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
3902 * fbsd-nat.h: Likewise.
3903
da1df1db
TBA
39042020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3905
3906 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
3907 argument.
3908
0e25e767
AB
39092020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3910
3911 * ada-lang.c (ada_language_data): Delete.
3912 (ada_language): Remove references to ada_language_data.
3913 * c-lang.c (c_language_data): Delete.
3914 (c_language): Remove references to c_language_data.
3915 (cplus_language_data): Delete.
3916 (cplus_language): Remove references to cplus_language_data.
3917 (asm_language_data): Delete.
3918 (asm_language): Remove references to asm_language_data.
3919 (minimal_language_data): Delete.
3920 (minimal_language): Remove references to minimal_language_data.
3921 * d-lang.c (d_language_data): Delete.
3922 (d_language): Remove references to d_language_data.
3923 * f-lang.c (f_language_data): Delete.
3924 (f_language): Remove references to f_language_data.
3925 * go-lang.c (go_language_data): Delete.
3926 (go_language): Remove references to go_language_data.
3927 * language.c (unknown_language_data): Delete.
3928 (unknown_language): Remove references to unknown_language_data.
3929 (auto_language_data): Delete.
3930 (auto_language): Remove references to auto_language_data.
3931 * language.h (language_data): Delete struct.
3932 (language_defn): No longer inherit from language_data.
3933 * m2-lang.c (m2_language_data): Delete.
3934 (m2_language): Remove references to m2_language_data.
3935 * objc-lang.c (objc_language_data): Delete.
3936 (objc_language): Remove references to objc_language_data.
3937 * opencl-lang.c (opencl_language_data): Delete.
3938 (opencl_language): Remove references to opencl_language_data.
3939 * p-lang.c (pascal_language_data): Delete.
3940 (pascal_language): Remove references to pascal_language_data.
3941 * rust-lang.c (rust_language_data): Delete.
3942 (rust_language): Remove references to rust_language_data.
3943
b7c6e27d
AB
39442020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3945
3946 * ada-lang.c (ada_language_data): Remove la_op_print_tab
3947 initializer.
3948 (ada_language::opcode_print_table): New member function.
3949 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
3950 (c_language::opcode_print_table): New member function.
3951 (cplus_language_data): Remove la_op_print_tab initializer.
3952 (cplus_language::opcode_print_table): New member function.
3953 (asm_language_data): Remove la_op_print_tab initializer.
3954 (asm_language::opcode_print_table): New member function.
3955 (minimal_language_data): Remove la_op_print_tab initializer.
3956 (minimal_language::opcode_print_table): New member function.
3957 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
3958 (d_language::opcode_print_table): New member function.
3959 * expprint.c (print_subexp_standard): Update call to
3960 opcode_print_table.
3961 (op_string): Likewise.
3962 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
3963 (f_language::opcode_print_table): New member function.
3964 * go-lang.c (go_language_data): Remove la_op_print_tab
3965 initializer.
3966 (go_language::opcode_print_table): New member function.
3967 * language.c (unknown_language_data): Remove la_op_print_tab
3968 initializer.
3969 (unknown_language::opcode_print_table): New member function.
3970 (auto_language_data): Remove la_op_print_tab initializer.
3971 (auto_language::opcode_print_table): New member function.
3972 * language.h (language_data): Remove la_op_print_tab field.
3973 (language_defn::opcode_print_table): Declare new member function.
3974 * m2-lang.c (m2_language_data): Remove la_op_print_tab
3975 initializer.
3976 (m2_language::opcode_print_table): New member function.
3977 * objc-lang.c (objc_language_data): Remove la_op_print_tab
3978 initializer.
3979 (objc_language::opcode_print_table): New member function.
3980 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
3981 initializer.
3982 (opencl_language::opcode_print_table): New member function.
3983 * p-lang.c (pascal_language_data): Remove la_op_print_tab
3984 initializer.
3985 (pascal_language::opcode_print_table): New member function.
3986 * rust-lang.c (rust_language_data): Remove la_op_print_tab
3987 initializer.
3988 (rust_language::opcode_print_table): New member function.
3989
5aba6ebe
AB
39902020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3991
3992 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
3993 (ada_language::expression_ops): New member function.
3994 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
3995 (c_language::expression_ops): New member function.
3996 (cplus_language_data): Remove la_exp_desc initializer.
3997 (cplus_language::expression_ops): New member function.
3998 (asm_language_data): Remove la_exp_desc initializer.
3999 (asm_language::expression_ops): New member function.
4000 (minimal_language_data): Remove la_exp_desc initializer.
4001 (minimal_language::expression_ops): New member function.
4002 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
4003 (d_language::expression_ops): New member function.
4004 * eval.c (evaluate_subexp): Update call to expression_ops.
4005 * expprint.c (print_subexp): Likewise.
4006 (op_name): Likewise.
4007 (dump_subexp_body): Likewise.
4008 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
4009 (f_language::expression_ops): New member function.
4010 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
4011 (go_language::expression_ops): New member function.
4012 * language.c (language_defn::expression_ops): New function.
4013 (unknown_language_data): Remove la_exp_desc initializer.
4014 (auto_language_data): Likewise.
4015 * language.h (language_data): Remove la_exp_desc field.
4016 (language_defn::expression_ops): Declare new member function.
4017 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
4018 (m2_language::expression_ops): New member function.
4019 * objc-lang.c (objc_language_data): Remove la_exp_desc
4020 initializer.
4021 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
4022 initializer.
4023 (opencl_language::expression_ops): New member function.
4024 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
4025 * parse.c (operator_length): Update call to expression_ops.
4026 (exp_iterate): Likewise.
4027 * rust-lang.c (rust_language_data): Remove la_exp_desc
4028 initializer.
4029 (ruse_language::expression_ops): New member function.
4030
b63a3f3f
AB
40312020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4032
4033 * ada-lang.c (ada_language_data): Remove la_varobj_ops
4034 initializer.
4035 (ada_language::varobj_ops): New member function.
4036 * c-lang.c (c_language_data): Remove la_varobj_ops
4037 initializer.
4038 (cplus_language_data): Likewise.
4039 (cplus_language::varobj_ops): New member function.
4040 (asm_language_data): Remove la_varobj_ops initializer.
4041 (minimal_language_data): Likewise.
4042 * d-lang.c (d_language_data): Likewise.
4043 * f-lang.c (f_language_data): Likewise.
4044 * go-lang.c (go_language_data): Likewise.
4045 * language.c (language_defn::varobj_ops): New function.
4046 (unknown_language_data): Remove la_varobj_ops
4047 initializer.
4048 (auto_language_data): Likewise.
4049 * language.h (language_data): Remove la_varobj_ops field.
4050 (language_defn::varobj_ops): Declare new member function.
4051 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
4052 * objc-lang.c (objc_language_data): Likewise.
4053 * opencl-lang.c (opencl_language_data): Likewise.
4054 * p-lang.c (pascal_language_data): Likewise.
4055 * rust-lang.c (rust_language_data): Likewise.
4056 * varobj.c (varobj_create): Update call to varobj_ops.
4057 * varobj.h (default_varobj_ops): Delete define.
4058
1ac14a04
AB
40592020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4060
4061 * ada-lang.c (ada_language_data): Remove la_macro_expansion
4062 initializer.
4063 * c-lang.c (c_language_data): Likewise.
4064 (c_language::macro_expansion): New member function.
4065 (cplus_language_data): Likewise.
4066 (cplus_language::macro_expansion): New member function.
4067 (asm_language_data): Likewise.
4068 (asm_language::macro_expansion): New member function.
4069 (minimal_language_data): Likewise.
4070 (minimal_language::macro_expansion): New member function.
4071 * d-lang.c (d_language_data): Remove la_macro_expansion
4072 initializer.
4073 * f-lang.c (f_language_data): Likewise.
4074 * go-lang.c (go_language_data): Likewise.
4075 * language.c (unknown_language_data): Likewise.
4076 (auto_language_data): Likewise.
4077 * language.h (language_data): Remove la_macro_expansion field.
4078 (language_defn::macro_expansion): New member function.
4079 * m2-lang.c (m2_language_data): Remove la_macro_expansion
4080 initializer.
4081 * objc-lang.c (objc_language_data): Likewise.
4082 (objc_language::macro_expansion): New member function.
4083 * opencl-lang.c (opencl_language_data): Likewise.
4084 (opencl_language::macro_expansion): New member function.
4085 * p-lang.c (pascal_language_data): Remove la_macro_expansion
4086 initializer.
4087 * rust-lang.c (rust_language_data): Likewise.
4088 * symtab.c (default_collect_symbol_completion_matches_break_on):
4089 Update call to macro_expansion.
4090
3a3440fb
AB
40912020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4092
4093 * ada-lang.c (ada_language_data): Remove la_array_ordering
4094 initializer.
4095 * c-lang.c (c_language_data): Likewise.
4096 (cplus_language_data): Likewise.
4097 (asm_language_data): Likewise.
4098 (minimal_language_data): Likewise.
4099 * d-lang.c (d_language_data): Likewise.
4100 * dwarf2/read.c (read_array_order): Update for call to
4101 array_ordering.
4102 * f-lang.c (f_language_data): Remove la_array_ordering
4103 initializer.
4104 (f_language::array_ordering): New member function.
4105 * go-lang.c (go_language_data): Remove la_array_ordering
4106 initializer.
4107 * language.c (unknown_language_data): Likewise.
4108 (auto_language_data): Likewise.
4109 * language.h (language_data): Delete la_array_ordering field.
4110 (language_defn::array_ordering): New member function.
4111 * m2-lang.c (m2_language_data): Remove la_array_ordering
4112 initializer.
4113 * objc-lang.c (objc_language_data): Likewise.
4114 * opencl-lang.c (opencl_language_data): Likewise.
4115 * p-lang.c (pascal_language_data): Likewise.
4116 * rust-lang.c (rust_language_data): Likewise.
4117
0d201fa4
AB
41182020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4119
4120 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
4121 initializer.
4122 * c-lang.c (c_language_data): Likewise.
4123 (cplus_language_data): Likewise.
4124 (asm_language_data): Likewise.
4125 (minimal_language_data): Likewise.
4126 * d-lang.c (d_language_data): Likewise.
4127 * f-lang.c (f_language_data): Likewise.
4128 (f_language::case_sensitivity): New member function.
4129 * go-lang.c (go_language_data): Remove la_case_sensitivity
4130 initializer.
4131 * language.c (enum case_mode): Moved here from language.h.
4132 (case_mode): Make static.
4133 (show_case_command): Update for case_sensitivity being a method.
4134 (set_case_command): Likewise.
4135 (set_range_case): Likewise.
4136 (unknown_language_data): Remove la_case_sensitivity initializer.
4137 (auto_language_data): Likewise.
4138 * language.h (case_mode): Delete, move enum declaration to
4139 language.c.
4140 (language_data): Delete la_case_sensitivity field.
4141 (language_defn::case_sensitivity): New member function.
4142 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
4143 initializer.
4144 * objc-lang.c (objc_language_data): Likewise.
4145 * opencl-lang.c (opencl_language_data): Likewise.
4146 * p-lang.c (pascal_language_data): Likewise.
4147 * rust-lang.c (rust_language_data): Likewise.
4148
efdf6a73
AB
41492020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4150
4151 * ada-lang.c (ada_language_data): Remove la_range_check
4152 initializer.
4153 * c-lang.c (c_language_data): Likewise.
4154 (cplus_language_data): Likewise.
4155 (asm_language_data): Likewise.
4156 (minimal_language_data): Likewise.
4157 * d-lang.c (d_language_data): Likewise.
4158 * f-lang.c (f_language_data): Likewise.
4159 (f_language::range_checking_on_by_default): New member function.
4160 * go-lang.c (go_language_data): Remove la_range_check initializer.
4161 * language.c (enum range_mode): Moved here from language.h.
4162 (range_mode): Made static.
4163 (show_range_command): Update to use
4164 range_checking_on_by_default.
4165 (set_range_command): Likewise.
4166 (set_range_case): Likewise.
4167 (unknown_language_data): Remove la_range_check initializer.
4168 (auto_language_data): Likewise.
4169 * language.h (range_mode): Delete. Enum definition moved to
4170 language.c.
4171 (language_data): Remove la_range_check field.
4172 (language_defn::range_checking_on_by_default): New member
4173 function.
4174 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
4175 (m2_language::range_checking_on_by_default): New member function.
4176 * objc-lang.c (objc_language_data): Remove la_range_check
4177 initializer.
4178 * opencl-lang.c (opencl_language_data): Likewise.
4179 * p-lang.c (pascal_language_data): Likewise.
4180 (pascal_language::range_checking_on_by_default): New member
4181 function.
4182 * rust-lang.c (rust_language_data): Remove la_range_check
4183 initializer.
4184 (rust_language::range_checking_on_by_default): New member
4185 function.
4186
bf92aec5
AB
41872020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4188
4189 * dwarf2/read.c (dwarf2_physname): Remove special case for
4190 language_go.
4191 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
4192 member function.
4193
d3355e4d
AB
41942020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4195
4196 * ada-lang.c (ada_language_data): Remove
4197 la_store_sym_names_in_linkage_form_p initializer.
4198 (ada_language::store_sym_names_in_linkage_form_p): New member
4199 function.
4200 * c-lang.c (c_language_data): Remove
4201 la_store_sym_names_in_linkage_form_p initializer.
4202 (c_language::store_sym_names_in_linkage_form_p): New member
4203 function.
4204 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
4205 initializer.
4206 (asm_language_data): Likewise.
4207 (asm_language::store_sym_names_in_linkage_form_p): New member
4208 function.
4209 (minimal_language_data): Remove
4210 la_store_sym_names_in_linkage_form_p initializer.
4211 (minimal_language::store_sym_names_in_linkage_form_p): New member
4212 function.
4213 * d-lang.c (d_language_data): Remove
4214 la_store_sym_names_in_linkage_form_p initializer.
4215 * dwarf2/read.c (dwarf2_physname): Update call to
4216 store_sym_names_in_linkage_form_p.
4217 * f-lang.c (f_language_data): Remove
4218 la_store_sym_names_in_linkage_form_p initializer.
4219 * go-lang.c (go_language_data): Remove
4220 la_store_sym_names_in_linkage_form_p initializer.
4221 * language.c (unknown_language_data): Remove
4222 la_store_sym_names_in_linkage_form_p initializer.
4223 (unknown_language::store_sym_names_in_linkage_form_p): New member
4224 function.
4225 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
4226 initializer.
4227 (auto_language::store_sym_names_in_linkage_form_p): New member
4228 function.
4229 * language.h (language_data): Remove
4230 la_store_sym_names_in_linkage_form_p member variable.
4231 (language_defn::store_sym_names_in_linkage_form_p): New member
4232 function.
4233 * m2-lang.c (m2_language_data): Remove
4234 la_store_sym_names_in_linkage_form_p initializer.
4235 * objc-lang.c (objc_language_data): Likewise.
4236 * opencl-lang.c (opencl_language_data): Likewise.
4237 * p-lang.c (pascal_language_data): Likewise.
4238 * rust-lang.c (rust_language_data): Likewise.
4239
22c12a6c
AB
42402020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4241
4242 * ada-lang.c (ada_language_data): Remove string_lower_bound
4243 initializer.
4244 * c-lang.c (c_language_data): Likewise.
4245 (cplus_language_data): Likewise.
4246 (asm_language_data): Likewise.
4247 (minimal_language_data): Likewise.
4248 * d-lang.c (d_language_data): Likewise.
4249 * f-lang.c (f_language_data): Likewise.
4250 * go-lang.c (go_language_data): Likewise.
4251 * language.c (unknown_language_data): Likewise.
4252 (auto_language_data): Likewise.
4253 * language.h (language_data): Remove string_lower_bound field.
4254 (language_defn::string_lower_bound): New member function.
4255 * m2-lang.c (m2_language_data): Remove string_lower_bound
4256 initializer.
4257 (m2_language::string_lower_bound): New member function.
4258 * objc-lang.c (objc_language_data): Remove string_lower_bound
4259 initializer.
4260 * opencl-lang.c (opencl_language_data): Likewise.
4261 * p-lang.c (pascal_language_data): Likewise.
4262 * rust-lang.c (rust_language_data): Likewise.
4263 * valops.c (value_cstring): Update call to string_lower_bound.
4264 (value_string): Likewise.
4265 * value.c (allocate_repeated_value): Likewise.
4266
1c236ddd
AB
42672020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4268
4269 * valops.c (value_repeat): Fix incorrect argument name in comment.
4270
67bd3fd5
AB
42712020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4272
4273 * ada-lang.c (ada_language_data): Remove c_style_arrays
4274 initializer.
4275 (ada_language::c_style_arrays_p): New member fuction.
4276 * c-lang.c (c_language_data): Remove c_style_arrays
4277 initializer.
4278 (cplus_language_data): Likewise.
4279 (asm_language_data): Likewise.
4280 (minimal_language_data): Likewise.
4281 * d-lang.c (d_language_data): Likewise.
4282 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
4283 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
4284 (f_language::c_style_arrays_p): New member function.
4285 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
4286 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
4287 * language.c (unknown_language_data): Remove c_style_arrays
4288 initializer.
4289 (auto_language_data): Likewise.
4290 * language.h (language_data): Remove c_style_arrays field.
4291 (language_defn::c_style_arrays_p): New member function.
4292 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
4293 (m2_language::c_style_arrays_p): New member function.
4294 * objc-lang.c (objc_language_data): Remove c_style_arrays
4295 initializer.
4296 * opencl-lang.c (opencl_language_data): Likewise.
4297 * p-lang.c (pascal_language_data): Likewise.
4298 * rust-lang.c (rust_language_data): Likewise.
4299 * valarith.c (value_subscript): Update call to c_style_arrays_p,
4300 and update local variable to a bool.
4301 * valops.c (value_cast): Update call to c_style_arrays_p.
4302 (value_array): Likewise.
4303 * value.c (coerce_array): Likewise.
4304
85967615
AB
43052020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4306
4307 * ada-lang.c (ada_language_data): Remove la_language initializer.
4308 * c-lang.c (c_language_data): Likewise.
4309 (cplus_language_data): Likewise.
4310 (asm_language_data): Likewise.
4311 (minimal_language_data): Likewise.
4312 * d-lang.c (d_language_data): Likewise.
4313 * f-lang.c (f_language_data): Likewise.
4314 * go-lang.c (go_language_data): Likewise.
4315 * language.c (unknown_language_data): Likewise.
4316 (auto_language_data): Likewise.
4317 * language.h (language_data): Remove la_language field.
4318 (language_defn::language_defn): Initialise la_language field.
4319 (language_defn::la_language): New member variable.
4320 * m2-lang.c (m2_language_data): Remove la_language field.
4321 * objc-lang.c (objc_language_data): Likewise.
4322 * opencl-lang.c (opencl_language_data): Likewise.
4323 * p-lang.c (pascal_language_data): Likewise.
4324 * rust-lang.c (rust_language_data): Likewise.
4325
e171d6f1
AB
43262020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4327
4328 * ada-lang.c (ada_extensions): Delete, moved into
4329 ada_language::filename_extensions.
4330 (ada_language_data): Remove la_filename_extensions initializer.
4331 (ada_language::filename_extensions): New member function.
4332 * c-lang.c (c_extensions): Delete, moved into
4333 c_language::filename_extensions.
4334 (c_language_data): Remove la_filename_extensions initializer.
4335 (c_language::filename_extensions): New member function.
4336 (cplus_extensions): Delete, moved into
4337 cplus_language::filename_extensions.
4338 (cplus_language_data): Remove la_filename_extensions initializer.
4339 (cplus_language::filename_extensions): New member function.
4340 (asm_extensions): Delete, moved into
4341 asm_language::filename_extensions.
4342 (asm_language_data): Remove la_filename_extensions initializer.
4343 (asm_language::filename_extensions): New member function.
4344 (minimal_language_data): Remove la_filename_extensions
4345 initializer.
4346 * d-lang.c (d_extensions): Delete, moved into
4347 d_language::filename_extensions.
4348 (d_language_data): Remove la_filename_extensions initializer.
4349 (d_language::filename_extensions): New member function.
4350 * f-lang.c (f_extensions): Delete, moved into
4351 f_language::filename_extensions.
4352 (f_language_data): Remove la_filename_extensions initializer.
4353 (f_language::filename_extensions): New member function.
4354 * go-lang.c (go_language_data): Remove la_filename_extensions
4355 initializer.
4356 * language.c (add_set_language_command): Update now that
4357 filename_extensions returns a vector.
4358 (unknown_language_data): Remove la_filename_extensions
4359 initializer.
4360 (auto_language_data): Likewise.
4361 * language.h (language_data): Remove la_filename_extensions field.
4362 (language_defn::filename_extensions): New member function.
4363 * m2-lang.c (m2_language_data): Remove la_filename_extensions
4364 initializer.
4365 * objc-lang.c (objc_extensions): Delete, moved into
4366 objc_language::filename_extensions.
4367 (objc_language_data): Remove la_filename_extensions initializer.
4368 (objc_language::filename_extensions): New member function.
4369 * opencl-lang.c (opencl_language_data): Remove
4370 la_filename_extensions initializer.
4371 * p-lang.c (pascal_extensions): Delete, moved into
4372 pascal_language::filename_extensions.
4373 (pascal_language_data): Remove la_filename_extensions initializer.
4374 (pascal_language::filename_extensions): New member function.
4375 * rust-lang.c (rust_extensions): Delete, moved into
4376 rust_language::filename_extensions.
4377 (rust_language_data): Remove la_filename_extensions initializer.
4378 (rust_language::filename_extensions): New member function.
4379 * symfile.c (add_filename_language): Add new assert.
4380
6f7664a9
AB
43812020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4382
4383 * ada-lang.c (ada_language_data): Remove la_name and
4384 la_natural_name initializers.
4385 (ada_language::name): New member function.
4386 (ada_language::natural_name): New member function.
4387 * c-lang.c (c_language_data): Remove la_name and
4388 la_natural_name initializers.
4389 (c_language::name): New member function.
4390 (c_language::natural_name): New member function.
4391 (cplus_language_data): Remove la_name and
4392 la_natural_name initializers.
4393 (cplus_language::name): New member function.
4394 (cplus_language::natural_name): New member function.
4395 (asm_language_data): Remove la_name and
4396 la_natural_name initializers.
4397 (asm_language::name): New member function.
4398 (asm_language::natural_name): New member function.
4399 (minimal_language_data): Remove la_name and
4400 la_natural_name initializers.
4401 (minimal_language::name): New member function.
4402 (minimal_language::natural_name): New member function.
4403 * compile/compile.c (compile_to_object): Update call to
4404 lanugage_defn::name.
4405 * d-lang.c (d_language_data): Remove la_name and
4406 la_natural_name initializers.
4407 (d_language::name): New member function.
4408 (d_language::natural_name): New member function.
4409 * expprint.c (print_subexp_standard): Update call to
4410 language_defn::name.
4411 (dump_raw_expression): Likewise
4412 (dump_prefix_expression): Likewise.
4413 * f-lang.c (f_language_data): Remove la_name and
4414 la_natural_name initializers.
4415 (f_language::name): New member function.
4416 (f_language::natural_name): New member function.
4417 * go-lang.c (go_language_data): Remove la_name and
4418 la_natural_name initializers.
4419 (go_language::name): New member function.
4420 (go_language::natural_name): New member function.
4421 * language.c (show_language_command): Update call to
4422 language_defn::name.
4423 (set_language_command): Likewise.
4424 (language_enum): Likewise.
4425 (language_str): Likewise.
4426 (add_set_language_command): Likewise, use
4427 language_defn::natural_name in the doc string.
4428 (unknown_language_data): Remove la_name and
4429 la_natural_name initializers.
4430 (unknown_language::name): New member function.
4431 (unknown_language::natural_name): New member function.
4432 (auto_language_data): Remove la_name and
4433 la_natural_name initializers.
4434 (auto_language::name): New member function.
4435 (auto_language::natural_name): New member function.
4436 (language_lookup_primitive_type_as_symbol): Update call to
4437 language_defn::name.
4438 * language.h (language_data): Remove la_name and la_natural_name
4439 member variables.
4440 (language_defn::name): New member function.
4441 (language_defn::natural_name): New member function.
4442 * m2-lang.c (m2_language_data): Remove la_name and
4443 la_natural_name initializers.
4444 (m2_language::name): New member function.
4445 (m2_language::natural_name): New member function.
4446 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
4447 language_defn::natural_name.
4448 * objc-lang.c (objc_language_data): Remove la_name and
4449 la_natural_name initializers.
4450 (objc_language::name): New member function.
4451 (objc_language::natural_name): New member function.
4452 * opencl-lang.c (opencl_language_data): Remove la_name and
4453 la_natural_name initializers.
4454 (opencl_language::name): New member function.
4455 (opencl_language::natural_name): New member function.
4456 * p-lang.c (pascal_language_data): Remove la_name and
4457 la_natural_name initializers.
4458 (pascal_language::name): New member function.
4459 (pascal_language::natural_name): New member function.
4460 * rust-lang.c (rust_language_data): Remove la_name and
4461 la_natural_name initializers.
4462 (rust_language::name): New member function.
4463 (rust_language::natural_name): New member function.
4464 * symtab.c (lookup_language_this): Update call to
4465 language_defn::name.
4466
5bae7c4e
AB
44672020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4468
4469 * ada-lang.c (ada_language_data): Remove la_name_of_this
4470 initializer.
4471 * ax-gdb.c (gen_expr): Update call to name_of_this.
4472 * c-exp.y (classify_name): Likewise.
4473 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
4474 (cplus_language_data): Likewise.
4475 (cplus_language::name_of_this): New member function.
4476 (asm_language_data): Remove la_name_of_this initializer.
4477 (minimal_language_data): Likewise.
4478 * d-lang.c (d_language_data): Likewise.
4479 (d_language::name_of_this): New member function.
4480 * expprint.c (print_subexp_standard): Update call to name_of_this.
4481 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
4482 * go-lang.c (go_language_data): Likewise.
4483 * language.c (unknown_language_data): Likewise.
4484 (unknown_language::name_of_this): New member function.
4485 (auto_language_data): Remove la_name_of_this initializer.
4486 (auto_language::name_of_this): New member function.
4487 * language.h (language_data): Delete la_name_of_this member
4488 variable.
4489 (language_defn::name_of_this): New member function.
4490 * m2-lang.c (m2_language_data): Remove la_name_of_this
4491 initializer.
4492 * objc-lang.c (objc_language_data): Likewise.
4493 (objc_language::name_of_this): New member function.
4494 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
4495 initializer.
4496 * p-lang.c (pascal_language_data): Likewise.
4497 (pascal_language::name_of_this): New member function.
4498 * rust-lang.c (rust_language_data): Remove la_name_of_this
4499 initializer.
4500 * symtab.c (lookup_language_this): Update call to name_of_this.
4501 (lookup_symbol_aux): Likewise.
4502 * valops.c (value_of_this): Likewise.
4503
22e3f3ed
AB
45042020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4505
4506 * ada-lang.c (ada_language_data): Remove
4507 la_struct_too_deep_ellipsis initializer.
4508 (ada_language::struct_too_deep_ellipsis): New member function.
4509 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
4510 initializer.
4511 (cplus_language_data): Likewise.
4512 (asm_language_data): Likewise.
4513 (minimal_language_data): Likewise.
4514 * cp-valprint.c (cp_print_value): Update call to
4515 struct_too_deep_ellipsis.
4516 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
4517 initializer.
4518 * f-lang.c (f_language_data): Likewise.
4519 (f_language::struct_too_deep_ellipsis): New member function.
4520 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
4521 initializer.
4522 * language.c (unknown_language_data): Likewise.
4523 (auto_language_data): Likewise.
4524 * language.h (language_data): Delete la_struct_too_deep_ellipsis
4525 member variable.
4526 (language_defn::struct_too_deep_ellipsis): New member function.
4527 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
4528 initializer.Q
4529 * objc-lang.c (objc_language_data): Likewise.
4530 * opencl-lang.c (opencl_language_data): Likewise.
4531 * p-lang.c (pascal_language_data): Likewise.
4532 * rust-lang.c (rust_language_data): Likewise.
4533 * valprint.c (val_print_check_max_depth): Update call to
4534 struct_too_deep_ellipsis.
4535
ed29e1c7
FW
45362020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
4537
4538 * MAINTAINERS (Write After Approval): Add myself.
4539
12d8f940
TT
45402020-09-15 Tom Tromey <tom@tromey.com>
4541
4542 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
4543 Remove.
4544
6b5a7bc7
TT
45452020-09-15 Tom Tromey <tom@tromey.com>
4546
4547 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
4548 and TYPE_CODE_METHODPTR cases.
4549 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
4550 (c_value_print_inner): Update.
4551 * valprint.c (generic_value_print_memberptr): New function, from
4552 c_value_print_memberptr.
4553 (generic_value_print): Use it. Call cplus_print_method_ptr.
4554
47f0e2ff
TT
45552020-09-15 Tom Tromey <tromey@adacore.com>
4556
4557 * python/python-internal.h (PyInt_FromLong): Remove define.
4558 * python/py-value.c (convert_value_from_python): Use
4559 gdb_py_object_from_longest.
4560 * python/py-type.c (typy_get_code): Use
4561 gdb_py_object_from_longest.
4562 * python/py-symtab.c (salpy_get_line): Use
4563 gdb_py_object_from_longest.
4564 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
4565 gdb_py_object_from_longest.
4566 * python/py-record.c (recpy_gap_reason_code): Use
4567 gdb_py_object_from_longest.
4568 * python/py-record-btrace.c (recpy_bt_insn_size)
4569 (recpy_bt_func_level, btpy_list_count): Use
4570 gdb_py_object_from_longest.
4571 * python/py-infthread.c (gdbpy_create_ptid_object): Use
4572 gdb_py_object_from_longest. Fix error handling.
4573 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
4574 gdb_py_object_from_longest.
4575 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
4576 gdb_py_object_from_longest.
4577 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
4578 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
4579 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
4580
512116ce
TT
45812020-09-15 Tom Tromey <tromey@adacore.com>
4582
4583 * python/python.c (gdbpy_parameter_value): Use
4584 gdb_py_object_from_ulongest.
4585
4ab1029c
TT
45862020-09-15 Tom Tromey <tromey@adacore.com>
4587
4588 * python/py-infevents.c (create_register_changed_event_object):
4589 Use gdb_py_object_from_longest.
4590 * python/py-exitedevent.c (create_exited_event_object): Use
4591 gdb_py_object_from_longest.
4592
062534d4
TT
45932020-09-15 Tom Tromey <tromey@adacore.com>
4594
4595 * python/python.c (gdbpy_parameter_value): Use
4596 gdb_py_object_from_longest.
4597 * python/py-type.c (convert_field, typy_range): Use
4598 gdb_py_object_from_longest.
4599 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
4600 gdb_py_object_from_longest.
4601 * python/py-lazy-string.c (stpy_get_length): Use
4602 gdb_py_object_from_longest.
4603 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
4604 gdb_py_object_from_longest.
4605 * python/py-infevents.c (create_memory_changed_event_object): Use
4606 gdb_py_object_from_longest.
4607 * python/py-inferior.c (infpy_get_num): Use
4608 gdb_py_object_from_longest.
4609 (infpy_get_pid): Likewise.
4610
d1cab987
TT
46112020-09-15 Tom Tromey <tromey@adacore.com>
4612
4613 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
4614 defines.
4615 * python/py-value.c (valpy_long): Use
4616 gdb_py_object_from_ulongest.
4617 * python/py-symtab.c (salpy_get_pc): Use
4618 gdb_py_object_from_ulongest.
4619 (salpy_get_last): Likewise.
4620 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
4621 gdb_py_object_from_ulongest.
4622 * python/py-lazy-string.c (stpy_get_address): Use
4623 gdb_py_object_from_ulongest.
4624 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
4625 * python/py-arch.c (archpy_disassemble): Use
4626 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
4627 error handling.
4628
4bde49dc
TT
46292020-09-15 Tom Tromey <tromey@adacore.com>
4630
4631 * python/python-internal.h (gdb_py_long_from_longest): Remove
4632 defines.
4633 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
4634 * python/py-type.c (convert_field, typy_get_sizeof): Use
4635 gdb_py_object_from_longest.
4636 * python/py-record-btrace.c (btpy_list_index): Use
4637 gdb_py_object_from_longest.
4638
37431074
TT
46392020-09-15 Tom Tromey <tromey@adacore.com>
4640
4641 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
4642 * python/py-record.c (recpy_element_number): Use
4643 gdb_py_object_from_longest.
4644 (recpy_gap_number): Likewise.
4645
cbe25684
TT
46462020-09-15 Tom Tromey <tromey@adacore.com>
4647
4648 * top.c (ui::ui): Update.
4649 (highest_ui_num): Remove.
4650 * top.h (struct ui) <num>: Remove.
4651
db92ac45
TT
46522020-09-15 Tom Tromey <tromey@adacore.com>
4653
4654 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
4655 * ui-style.c (ansi_regex_text): Now array.
4656 * rust-exp.y (number_regex_text): Now array.
4657 * linespec.c (linespec_quote_characters): Now array.
4658 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
4659 Now arrays.
4660
d2b31b67
SM
46612020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4662
4663 * debuginfod-support.c (debuginfod_client_deleter): New.
4664 (debuginfod_client_up): New.
4665 (debuginfod_init): Return debuginfod_client_up.
4666 (debuginfod_source_query): Adjust.
4667 (debuginfod_debuginfo_query): Adjust.
4668
3246bd8e
SM
46692020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4670
4671 * debuginfod-support.c (debuginfod_source_query): Use
4672 make_unique_xstrdup.
4673
10242f36
SM
46742020-09-14 Simon Marchi <simon.marchi@efficios.com>
4675
4676 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
4677 with `type::instance_flags`.
4678
e1044e6a
MM
46792020-09-14 Michael Mullin <masmullin@gmail.com>
4680
4681 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
4682 Remove baton parameter.
4683
04902b09
PA
46842020-09-14 Pedro Alves <pedro@palves.net>
4685
4686 * Makefile.in (SELFTESTS_SRCS): Add
4687 unittests/enum-flags-selftests.c.
4688 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
4689 btrace_function_flags instead of enum btrace_function_flag.
4690 * compile/compile-c-types.c (convert_qualified): Use
4691 enum_flags::raw.
4692 * compile/compile-cplus-symbols.c (convert_one_symbol)
4693 (convert_symbol_bmsym):
4694 * compile/compile-cplus-types.c (compile_cplus_convert_method)
4695 (compile_cplus_convert_struct_or_union_methods)
4696 (compile_cplus_instance::convert_qualified_base):
4697 * go-exp.y (parse_string_or_char): Add cast to int.
4698 * unittests/enum-flags-selftests.c: New file.
4699 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
4700 type to btrace_thread_flags from btrace_thread_flag.
4701 (record_btrace_cancel_resume, record_btrace_step_thread): Change
4702 local's type to btrace_thread_flags from btrace_thread_flag. Add
4703 cast in DEBUG call.
4704
69896a2c
PA
47052020-09-14 Pedro Alves <pedro@palves.net>
4706
4707 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
4708 * gdbtypes.c (address_space_name_to_int): Rename to ...
4709 (address_space_name_to_type_instance_flags): ... this.
4710 (address_space_int_to_name): Rename to ...
4711 (address_space_type_instance_flags_to_name): ... this.
4712 * gdbtypes.h (address_space_name_to_int): Rename to ...
4713 (address_space_name_to_type_instance_flags): ... this.
4714 (address_space_int_to_name): Rename to ...
4715 (address_space_type_instance_flags_to_name): ... this.
4716 * type-stack.c (type_stack::insert): Adjust to rename.
4717 * type-stack.h (type_stack::insert): Likewise.
4718
314ad88d
PA
47192020-09-14 Pedro Alves <pedro@palves.net>
4720 Andrew Burgess <andrew.burgess@embecosm.com>
4721
4722 * avr-tdep.c (avr_address_class_type_flags): Return
4723 type_instance_flags.
4724 (avr_address_class_type_flags_to_name): Take a
4725 type_instance_flags.
4726 (avr_address_class_name_to_type_flags): Return bool and take a
4727 type_instance_flags.
4728 * d-lang.c (build_d_types): Use type::set_instance_flags.
4729 * ft32-tdep.c (ft32_address_class_type_flags): Return
4730 type_instance_flags.
4731 (ft32_address_class_type_flags_to_name): Take a
4732 type_instance_flags.
4733 (ft32_address_class_name_to_type_flags): Return bool and take a
4734 type_instance_flags.
4735 (ft32_gdbarch_init): Use type::set_instance_flags.
4736 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
4737 * gdbarch.h, gdbarch.c: Regenerate.
4738 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
4739 (address_class_name_to_type_flags): Use type_instance_flags and
4740 bool.
4741 * gdbtypes.c (address_space_name_to_int)
4742 (address_space_int_to_name, make_qualified_type): Use
4743 type_instance_flags.
4744 (make_qualified_type): Use type_instance_flags and
4745 type::set_instance_flags.
4746 (make_type_with_address_space, make_cv_type, make_vector_type)
4747 (check_typedef): Use type_instance_flags.
4748 (recursive_dump_type): Cast type_instance_flags to unsigned for
4749 printing.
4750 (copy_type_recursive): Use type::set_instance_flags.
4751 (gdbtypes_post_init): Use type::set_instance_flags.
4752 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
4753 <m_instance_flags>: ... this.
4754 <instance_flags, set_instance_flags>: New methods.
4755 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
4756 (SET_TYPE_INSTANCE_FLAGS): New.
4757 (address_space_name_to_int, address_space_int_to_name)
4758 (make_type_with_address_space): Pass flags using
4759 type_instance_flags instead of int.
4760 * stabsread.c (cleanup_undefined_types_noname): Use
4761 type::set_instance_flags.
4762 * s390-tdep.c (s390_address_class_type_flags): Return
4763 type_instance_flags.
4764 (s390_address_class_type_flags_to_name): Take a
4765 type_instance_flags.
4766 (s390_address_class_name_to_type_flags): Return bool and take a
4767 type_instance_flags.
4768 * type-stack.c (type_stack::follow_types): Use
4769 type_instance_flags.
4770 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
4771
27087b7f
TT
47722020-09-14 Tom Tromey <tromey@adacore.com>
4773
4774 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
4775 * x86-tdep.c (x86_is_thunk_register_name)
4776 (x86_in_indirect_branch_thunk): Update.
4777 * sparc64-tdep.c (sparc64_fpu_register_names)
4778 (sparc64_cp0_register_names, sparc64_register_names)
4779 (sparc64_pseudo_register_names): Now const.
4780 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
4781 cp0_registers_num>: Now const.
4782 * sparc-tdep.c (sparc_core_register_names)
4783 (sparc32_fpu_register_names, sparc32_cp0_register_names)
4784 (sparc32_pseudo_register_names): Now const.
4785 (validate_tdesc_registers): Update.
4786 * rust-lang.c (rust_extensions): Now const.
4787 * p-lang.c (p_extensions): Now const.
4788 * objc-lang.c (objc_extensions): Now const.
4789 * nto-tdep.c (nto_thread_state_str): Now const.
4790 * moxie-tdep.c (moxie_register_names): Now const.
4791 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
4792 Now const.
4793 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
4794 (mips_linux_reg_names): Now const.
4795 (mips_gdbarch_init): Update.
4796 * microblaze-tdep.c (microblaze_register_names): Now const.
4797 * m68k-tdep.c (m68k_register_names): Now const.
4798 * m32r-tdep.c (m32r_register_names): Now const.
4799 * ia64-tdep.c (ia64_register_names): Now const.
4800 * i386-tdep.h (struct gdbarch_tdep) <register_names,
4801 ymmh_register_names, ymm16h_regnum, mpx_register_names,
4802 k_register_names, zmmh_register_names, xmm_avx512_register_names,
4803 ymm_avx512_register_names, pkeys_register_names>: Now const.
4804 * i386-tdep.c (i386_register_names, i386_zmm_names)
4805 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
4806 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
4807 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
4808 * f-lang.c (f_extensions): Now const.
4809 * d-lang.c (d_extensions): Now const.
4810 * csky-tdep.c (csky_register_names): Now const.
4811 * charset.c (default_charset_names, charset_enum): Now const.
4812 (_initialize_charset): Update.
4813 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
4814 const.
4815 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
4816 (bsd_uthread_solib_loaded): Update.
4817 (bsd_uthread_state): Now const.
4818 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
4819 (amd64_ymm_avx512_names, amd64_ymmh_names)
4820 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
4821 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
4822 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
4823 (amd64_dword_names): Now const.
4824 * agent.c (can_use_agent_enum): Now const.
4825 * ada-tasks.c (task_states, long_task_states): Now const.
4826 * ada-lang.c (known_runtime_file_name_patterns)
4827 (known_auxiliary_function_name_patterns, attribute_names)
4828 (standard_exc, ada_extensions): Now const.
4829
89806626
SM
48302020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4831
4832 * bcache.h (struct bcache) <bcache>: Remove constructor.
4833 <m_hash_function, m_compare_function>: Remove.
4834 <~bcache>: Make virtual.
4835 <compare>: Remove static method, introduce virtual method.
4836 <default_hash>: Remove.
4837 <hash>: New virtual method.
4838 * bcache.c (bcache::expand_hash_table): Update.
4839 (bcache::insert): Update.
4840 (bcache::hash): New.
4841 (bcache::compare): Update comment and parameter names.
4842 * gdbtypes.c (types_deeply_equal): Update.
4843 * psymtab.h (struct psymbol_bcache): New struct.
4844 (class psymtab_storage) <psymtab_storage>: Make default.
4845 <psymbol_cache>: Change type to psymbol_bcache.
4846 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
4847 (psymbol_hash): Change to...
4848 (psymbol_bcache::hash): ... this.
4849 (psymbol_compare): Change to...
4850 (psymbol_bcache::compare): ... this.
4851
677c92fe
SM
48522020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4853
4854 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
4855 checking for initial lwp.
4856
3eba3a01
TT
48572020-09-14 Tom Tromey <tromey@adacore.com>
4858
4859 * m68k-tdep.c (m68k_extract_return_value): Use
4860 pointer_result_regnum.
4861 (m68k_store_return_value): Likewise.
4862 (m68k_reg_struct_return_p): Handle vectors and arrays.
4863 (m68k_return_value): Handle arrays.
4864 (m68k_svr4_return_value): Fix single-element aggregate handling.
4865 Handle long double. Adjust for embedded ABI.
4866 (m68k_svr4_init_abi): Set pointer_result_regnum.
4867 (m68k_embedded_init_abi): New function.
4868 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
4869 (m68k_osabi_sniffer): New function.
4870 (_initialize_m68k_tdep): Register osabi sniffer.
4871 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
4872 member.
4873
33f4dd48
SM
48742020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4875
4876 * xml-support.c (xml_fetch_content_from_file): Replace xfree
4877 with gdb::unique_xmalloc_ptr<char>.
4878
8400a90d
SM
48792020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4880
4881 * xml-support.h (xml_fetch_another): Change type to be a
4882 function_view.
4883 (xml_process_xincludes): Remove baton parameter.
4884 (xml_fetch_content_from_file): Change baton parameter to
4885 dirname.
4886 * xml-support.c (struct xinclude_parsing_data)
4887 <xinclude_parsing_data>: Remove baton parameter.
4888 <fetcher_baton>: Remove.
4889 (xinclude_start_include): Adjust.
4890 (xml_process_xincludes): Adjust.
4891 (xml_fetch_content_from_file): Replace baton parameter with
4892 dirname.
4893 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
4894 (xml_init_syscalls_info): Use a lambda.
4895 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
4896 (file_read_description_xml): Use a lambda.
4897 (fetch_available_features_from_target): Change baton parameter
4898 to target_ops.
4899 (target_read_description_xml): Use a lambda.
4900 (target_fetch_description_xml): Use a lambda.
4901 (string_read_description_xml): Update.
4902
04f5bab2
SM
49032020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4904
4905 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
4906 uses with type::endianity_is_not_default.
4907
db558e34
SM
49082020-09-14 Simon Marchi <simon.marchi@efficios.com>
4909
4910 * gdbtypes.h (struct type) <endianity_is_not_default,
4911 set_endianity_is_not_default>: New methods.
4912 (TYPE_ENDIANITY_NOT_DEFAULT): Use
4913 type::endianity_is_not_default, change all write call sites to
4914 use type::set_endianity_is_not_default.
4915
22c4c60c
SM
49162020-09-14 Simon Marchi <simon.marchi@efficios.com>
4917
4918 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
4919 uses with type::is_fixed_instance.
4920
9cdd0d12
SM
49212020-09-14 Simon Marchi <simon.marchi@efficios.com>
4922
4923 * gdbtypes.h (struct type) <is_fixed_instance,
4924 set_is_fixed_instance>: New methods.
4925 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
4926 write call sites to use type::set_is_fixed_instance.
4927
0becda7a
SM
49282020-09-14 Simon Marchi <simon.marchi@efficios.com>
4929
4930 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
4931 uses with type::is_gnu_ifunc.
4932
03cc7249
SM
49332020-09-14 Simon Marchi <simon.marchi@efficios.com>
4934
4935 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
4936 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
4937 use type::set_is_gnu_ifunc.
4938
3f46044c
SM
49392020-09-14 Simon Marchi <simon.marchi@efficios.com>
4940
4941 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
4942 uses with type::stub_is_supported.
4943
9baccff6
SM
49442020-09-14 Simon Marchi <simon.marchi@efficios.com>
4945
4946 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
4947 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
4948 use type::set_stub_is_supported.
4949
bd63c870
SM
49502020-09-14 Simon Marchi <simon.marchi@efficios.com>
4951
4952 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
4953 uses with type::is_vector.
4954
2062087b
SM
49552020-09-14 Simon Marchi <simon.marchi@efficios.com>
4956
4957 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
4958 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
4959 use type::set_is_vector.
4960
a409645d
SM
49612020-09-14 Simon Marchi <simon.marchi@efficios.com>
4962
4963 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
4964 uses with type::has_varargs.
4965
1d6286ed
SM
49662020-09-14 Simon Marchi <simon.marchi@efficios.com>
4967
4968 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
4969 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
4970 use type::set_has_varargs.
4971
7f9f399b
SM
49722020-09-14 Simon Marchi <simon.marchi@efficios.com>
4973
4974 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
4975 uses with type::is_prototyped.
4976
27e69b7a
SM
49772020-09-14 Simon Marchi <simon.marchi@efficios.com>
4978
4979 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
4980 New methods.
4981 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
4982 call sites to use type::set_is_prototyped.
4983
d2183968
SM
49842020-09-14 Simon Marchi <simon.marchi@efficios.com>
4985
4986 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
4987 uses with type::target_is_stub.
4988
8f53807e
SM
49892020-09-14 Simon Marchi <simon.marchi@efficios.com>
4990
4991 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
4992 New methods.
4993 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
4994 sites to use type::set_target_is_stub.
4995
e46d3488
SM
49962020-09-14 Simon Marchi <simon.marchi@efficios.com>
4997
4998 * gdbtypes.h (TYPE_STUB): Remove, replace all
4999 uses with type::is_stub.
5000
b4b73759
SM
50012020-09-14 Simon Marchi <simon.marchi@efficios.com>
5002
5003 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
5004 (TYPE_STUB): Use type::is_stub, change all write call sites to
5005 use type::set_is_stub.
5006
20ce4123
SM
50072020-09-14 Simon Marchi <simon.marchi@efficios.com>
5008
5009 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
5010 type::has_no_signedness.
5011
15152a54
SM
50122020-09-14 Simon Marchi <simon.marchi@efficios.com>
5013
5014 * gdbtypes.h (struct type) <has_no_signedness,
5015 set_has_no_signedness>: New methods.
5016 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
5017 call sites to use type::set_has_no_signedness.
5018
c6d940a9
SM
50192020-09-14 Simon Marchi <simon.marchi@efficios.com>
5020
5021 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
5022 type::is_unsigned.
5023
653223d3
SM
50242020-09-14 Simon Marchi <simon.marchi@efficios.com>
5025
5026 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
5027 methods.
5028 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
5029 sites to use type::set_is_unsigned.
5030
55ea94da 50312020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 5032 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 5033
e851246a
SM
5034 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
5035 pointer and stack frame offset when unwinding.
55ea94da 5036
6791b117
PA
50372020-09-13 Pedro Alves <pedro@palves.net>
5038
5039 * NEWS: Document "-break-insert --qualified".
5040 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
5041
77f2120b
PA
50422020-09-13 Pedro Alves <pedro@palves.net>
5043
5044 * linespec.c (classify_mtype, compare_msyms): Delete.
5045 (search_minsyms_for_name): Remove classification logic. Instead
5046 filter out trampoline symbols if we also found an external
5047 function of the same name.
5048
ed6a896c
JB
50492020-09-13 Joel Brobecker <brobecker@adacore.com>
5050
5051 * NEWS: Create a new section for the next release branch.
5052 Rename the section of the current branch, now that it has
5053 been cut.
5054
32aea73e
JB
50552020-09-13 Joel Brobecker <brobecker@adacore.com>
5056
5057 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
5058 * version.in: Bump version to 11.0.50.DATE-git.
5059
8087c3fa
JB
50602020-09-12 Joel Brobecker <brobecker@adacore.com>
5061
5062 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
5063
2a67f09d
FW
50642020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
5065 Felix Willgerodt <Felix.Willgerodt@intel.com>
5066
5067 * gdbarch.sh: Added bfloat16 type.
5068 * gdbarch.c: Regenerated.
5069 * gdbarch.h: Regenerated.
5070 * gdbtypes.c (floatformats_bfloat16): New struct.
5071 (gdbtypes_post_init): Add builtin_bfloat16.
5072 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
5073 (floatformats_bfloat16): New struct.
5074 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
5075 (i386_ymm_type): Add field "v16_bfloat16"
5076 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
5077 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
5078 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
5079 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
5080 * features/i386/64bit-avx512.xml: Add bfloat16 type.
5081 * features/i386/64bit-avx512.c: Regenerated.
5082 * features/i386/64bit-sse.xml: Add bfloat16 type.
5083 * features/i386/64bit-sse.c: Regenerated.
5084
1347d111
FW
50852020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
5086
5087 * i386-tdep.c (i386_zmm_type): Fix field names.
5088 (i386_ymm_type): Fix field names.
5089
7a4e8e7d
TBA
50902020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5091
5092 * breakpoint.c: Fix typo in the help message of the
5093 "set breakpoint condition-evaluation" command.
5094
cf4ac4be
KR
50952020-09-10 Kamil Rytarowski <n54@gmx.com>
5096
5097 * nbsd-nat.c: Include "nat/netbsd-nat.h".
5098 * (nbsd_nat_target::pid_to_exec_file)
5099 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
5100 (nbsd_nat_target::post_startup_inferior)
5101 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
5102 (nbsd_add_threads): Switch local code to common gdb/nat functions.
5103 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
5104 * (nbsd_thread_lister): Remove.
5105
f404573e
KR
51062020-09-10 Kamil Rytarowski <n54@gmx.com>
5107
5108 * fork-inferior.c (startup_inferior): Avoid double free.
5109
1ccb2c17
KR
51102020-09-10 Kamil Rytarowski <n54@gmx.com>
5111
5112 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
5113 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
5114
feedfcc7
KR
51152020-09-10 Kamil Rytarowski <n54@gmx.com>
5116
5117 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
5118 * netbsd-nat.c: Include <sys/ptrace.h>.
5119 * (netbsd_nat::enable_proc_events): Add.
5120
c489f8c6
KR
51212020-09-10 Kamil Rytarowski <n54@gmx.com>
5122
5123 * netbsd-nat.h: Include "gdbsupport/function-view.h".
5124 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5125 (netbsd_nat::for_each_thread): Add.
5126 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
5127 "gdbsupport/common-debug.h".
5128 * (netbsd_nat::netbsd_thread_lister)
5129 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5130 (netbsd_nat::for_each_thread): Add.
5131
330662f6
KR
51322020-09-10 Kamil Rytarowski <n54@gmx.com>
5133
5134 * netbsd-nat.h: Include <unistd.h>.
5135 * (netbsd_nat::pid_to_exec_file): Add.
5136 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
5137 * (netbsd_nat::pid_to_exec_file) Add.
5138
70b67307
KR
51392020-09-10 Kamil Rytarowski <n54@gmx.com>
5140
5141 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
5142
99cf6da6
KR
51432020-09-10 Kamil Rytarowski <n54@gmx.com>
5144
5145 * netbsd-nat.h: New file.
5146 * netbsd-nat.c: Likewise.
5147
1b788fb6
TT
51482020-09-09 Tom Tromey <tromey@adacore.com>
5149
5150 * ada-lang.c (remove_extra_symbols): Do not increment when
5151 removing an element
5152
03b0a45f
TT
51532020-09-08 Tom Tromey <tromey@adacore.com>
5154
5155 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
5156
3cae4447
TT
51572020-09-08 Tom Tromey <tromey@adacore.com>
5158
5159 PR win32/25302:
5160 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
5161 (gdb_bfd_init_data): New function.
5162 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
5163
7f08fd51
TBA
51642020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5165
5166 * infrun.c (fetch_inferior_event): Use
5167 `switch_to_target_no_thread` to switch the target.
5168
3e6ff933
TT
51692020-09-06 Tom Tromey <tom@tromey.com>
5170
5171 * symfile.h (dwarf2_free_objfile): Don't declare.
5172
e56798df
AKS
51732020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5174
5175 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
5176 to match 16 byte real/complex type generated by Flang compiler.
5177
8f5c6526
TV
51782020-09-03 Tom de Vries <tdevries@suse.de>
5179
5180 PR breakpoint/26546
5181 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
5182 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
5183
c5065df0
SM
51842020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
5185
5186 * maint.c (index_digits): New function.
5187 (struct maint_print_section_data): Remove.
5188 (print_bfd_section_info): Remove print_data parameter, add arg
5189 and index_digits.
5190 (print_objfile_section_info): Likewise.
5191 (print_bfd_section_info_maybe_relocated): Likewise (plus
5192 objfile).
5193 (maintenance_info_sections): Adjust calls.
5194
02c6f3f1
TT
51952020-09-02 Tom Tromey <tromey@adacore.com>
5196
5197 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
5198 for null pointers.
5199 (ada_varobj_adjust_for_child_access): Special-case null pointers.
5200
ef5e5b0b
SM
52012020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
5202
5203 * bcache.h (struct bcache) <insert>: Change type of `added` to
5204 pointer to bool.
5205 * bcache.c (bcache::insert): Likewise.
5206 * gdbtypes.c (check_types_worklist): Adjust.
5207 * psymtab.c (add_psymbol_to_bcache): Adjust.
5208
973695d6
KB
52092020-08-31 Kevin Buettner <kevinb@redhat.com>
5210
5211 * corelow.c (unordered_set): Include.
5212 (class core_target): Add field 'm_core_unavailable_mappings'.
5213 (core_target::build_file_mappings): Print only one warning
5214 per inaccessible file. Add unavailable/broken mappings
5215 to m_core_unavailable_mappings.
5216 (core_target::xfer_partial): Call...
5217 (core_target::xfer_memory_via_mappings): New method.
5218
264fc0e2
SM
52192020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5220
5221 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
5222 type to bool.
5223
2de01bdb
SM
52242020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5225
5226 * dwarf2/read.c (struct field_info): Fix indentation.
5227
f3bd50f1
SM
52282020-08-31 Simon Marchi <simon.marchi@efficios.com>
5229
5230 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
5231 ordering in comment.
5232 * frame.c (frame_id_eq): Fix indentation.
5233
22b9b4b0
SL
52342020-08-31 Scott Linder <scott@scottlinder.com>
5235 Simon Marchi <simon.marchi@efficios.com>
5236
5237 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
5238 inline frame ids in outer frame.
5239
84154d16
SM
52402020-08-31 Simon Marchi <simon.marchi@efficios.com>
5241
5242 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
5243 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
5244 (outer_frame_id): Use FID_STACK_OUTER instead of
5245 FID_STACK_INVALID.
5246 (frame_id_p): Don't check for outer_frame_id.
5247
8efaf6b3
SM
52482020-08-31 Simon Marchi <simon.marchi@efficios.com>
5249
5250 * frame-unwind.c (frame_unwind_got_optimized): Don't set
5251 regnum/frame in value. Call allocate_value_lazy.
5252 * frame.c (frame_unwind_register_value): Use
5253 val_print_not_saved.
5254
fe1fe7ea
SM
52552020-08-31 Simon Marchi <simon.marchi@efficios.com>
5256
5257 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
5258
f7c7700d
PA
52592020-08-29 Pedro Alves <pedro@palves.net>
5260
5261 * progspace.c (print_program_space): Use all_inferiors. Switch to
5262 the inferior before calling target_pid_to_str.
5263
e0814aae
TT
52642020-08-28 Tom Tromey <tom@tromey.com>
5265
5266 * xcoffread.c (xcoff_end_psymtab): Update comment.
5267 * dbxread.c (dbx_end_psymtab): Update comment.
5268
626d2320
TV
52692020-08-28 Tom de Vries <tdevries@suse.de>
5270
5271 PR breakpoint/26544
5272 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
5273 event_location.
5274 (create_breakpoint): Same.
5275 (base_breakpoint_decode_location): Same.
5276 (bkpt_create_sals_from_location): Same.
5277 (bkpt_decode_location): Same.
5278 (bkpt_probe_create_sals_from_location): Same.
5279 (bkpt_probe_decode_location): Same.
5280 (tracepoint_create_sals_from_location): Same.
5281 (tracepoint_decode_location): Same.
5282 (tracepoint_probe_decode_location): Same.
5283 (strace_marker_create_sals_from_location): Same.
5284 (strace_marker_decode_location): Same.
5285 (create_sals_from_location_default): Same.
5286 (decode_location_default): Same.
5287 * breakpoint.h (struct breakpoint_ops): Same.
5288 (create_breakpoint): Same.
5289 * linespec.h (decode_line_full): Same.
5290 * linespec.c (decode_line_full): Same. Throw error if
5291 result.size () == 0.
5292
df631783
PA
52932020-08-27 Pedro Alves <pedro@palves.net>
5294
5295 PR gdb/26524
5296 * breakpoint.c (until_break_fsm) <location_breakpoint,
5297 caller_breakpoint>: Delete fields.
5298 <breakpoints>: New field.
5299 <until_break_fsm>: Adjust to save a breakpoint vector instead of
5300 two individual breakpoints.
5301 (until_break_fsm::should_stop): Loop over breakpoints in the
5302 breakpoint vector.
5303 (until_break_fsm::clean_up): Adjust to clear the breakpoints
5304 vector.
5305 (until_break_command): Handle location expanding into multiple
5306 sals.
5307
b2b38aa4
PA
53082020-08-27 Pedro Alves <pedro@palves.net>
5309
5310 PR gdb/26523
5311 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
5312 bp_until breakpoints user-specified locations. Update intro
5313 comment.
5314
b886559f
SM
53152020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
5316
5317 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
5318 gdb_bfd_sections): New.
5319 * maint.c (print_bfd_section_info): Change param type to
5320 maint_print_section_data.
5321 (print_objfile_section_info): Likewise.
5322 (print_bfd_section_info_maybe_relocated): Likewise.
5323 (maintenance_info_sections): Use gdb_bfd_sections.
5324
4c6e63bf
SV
53252020-08-25 Shahab Vahedi <shahab@synopsys.com>
5326
5327 * MAINTAINERS: Add ARC target and maintainer.
5328
8d7f0635
AK
53292020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
5330
5331 * configure.tgt: ARC support for GNU/Linux.
5332 * Makefile.in (ALL_TARGET_OBJS): Likewise.
5333 * arc-linux-tdep.c: New file.
5334 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
5335 * arc-tdep.c (arc_write_pc): Use it.
5336
fdd8731b
SV
53372020-08-25 Shahab Vahedi <shahab@synopsys.com>
5338
5339 * arc-tdep.c (arc_check_for_hardware_loop): New.
5340 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
5341
22459524
SV
53422020-08-25 Shahab Vahedi <shahab@synopsys.com>
5343
5344 * arc-tdep.h: Include "gdbarch.h".
5345
995d3a19
SV
53462020-08-25 Shahab Vahedi <shahab@synopsys.com>
5347
5348 * arch/arc.h
5349 (arc_gdbarch_features): New class to stir the selection of target XML.
5350 (arc_create_target_description): Use FEATURES to choose XML target.
5351 (arc_lookup_target_description): Use arc_create_target_description
5352 to create _new_ target descriptions or return the already created
5353 ones if the FEATURES is the same.
5354 * arch/arc.c: Implementation of prototypes described above.
5355 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
5356 (arc_gdbarch_features_init): Initialize the FEATURES struct.
5357 * arc-tdep.c (*_feature_name): Make feature names consistent.
5358 (arc_register_feature): A new struct to hold information about
5359 registers of a particular target/feature.
5360 (arc_check_tdesc_feature): Check if XML provides registers in
5361 compliance with ARC_REGISTER_FEATURE structs.
5362 (arc_update_acc_reg_names): Add aliases for r58 and r59.
5363 (determine_*_reg_feature_set): Which feature name to look for.
5364 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
5365 (mach_type_to_arc_isa): Convert from a set of binutils machine types
5366 to expected ISA enums to be used in arc_gdbarch_features structs.
5367 * features/Makefile (FEATURE_XMLFILES): Add new files.
5368 * gdb/features/arc/v1-aux.c: New file.
5369 * gdb/features/arc/v1-aux.xml: Likewise.
5370 * gdb/features/arc/v1-core.c: Likewise.
5371 * gdb/features/arc/v1-core.xml: Likewise.
5372 * gdb/features/arc/v2-aux.c: Likewise.
5373 * gdb/features/arc/v2-aux.xml: Likewise.
5374 * gdb/features/arc/v2-core.c: Likewise.
5375 * gdb/features/arc/v2-core.xml: Likewise.
5376 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
5377
3945d2d7
GM
53782020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
5379 Andrew Burgess <andrew.burgess@embecosm.com>
5380
5381 PR m2/26372
fc5d6901 5382 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
5383 an assert. Remove single element array indexing pattern as the
5384 MULTI_SUBSCRIPT support will handle this case too.
5385
2677f2d3
SM
53862020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
5387
5388 * value.h (valprint_check_validity): Move declaration from
5389 here...
5390 * valprint.h (valprint_check_validity): ... to here.
5391
c426fddb
SM
53922020-08-24 Simon Marchi <simon.marchi@efficios.com>
5393
5394 * debug.h: New file.
5395 * debug.c (debug_prefixed_vprintf): New function.
5396 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
5397 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
5398
1eb8556f
SM
53992020-08-24 Simon Marchi <simon.marchi@efficios.com>
5400
5401 * infrun.h (infrun_debug_printf_1): New function declaration.
5402 (infrun_debug_printf): New macro.
5403 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
5404 throughout.
5405 (infrun_debug_printf): New function.
5406 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
5407 (handle_jit_event): Likewise.
5408
b8fff44e
MW
54092020-08-21 Mark Wielaard <mark@klomp.org>
5410
5411 * ada-lex.l: Extend register warnings diagnostics comment for g++.
5412
d19c3068
SM
54132020-08-22 Simon Marchi <simon.marchi@efficios.com>
5414
5415 * frame.c (enum class frame_id_status): New.
5416 (struct frame_info) <this_id::p>: Change type to frame_id_status.
5417 (fprintf_frame): Update.
5418 (compute_frame_id): Set frame id status to "computing" on entry.
5419 Set it back to "not_computed" on failure and to "computed" on
5420 success.
5421 (get_frame_id): Assert the frame id is not being computed.
5422 (create_sentinel_frame): Use frame_id_status::COMPUTED.
5423 (create_new_frame): Likewise.
5424 (frame_cleanup_after_sniffer): Update assert.
5425
b70e516e
SM
54262020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5427
5428 * regcache.c (pid_ptid_regcache_map): New type.
5429 (target_ptid_regcache_map): Remove.
5430 (target_pid_ptid_regcache_map): New type.
5431 (regcaches): Change type to target_pid_ptid_regcache_map.
5432 (get_thread_arch_aspace_regcache): Update.
5433 (regcache_thread_ptid_changed): Update, handle pid-like ptid
5434 case.
5435 (regcaches_size): Update.
5436 (regcache_count): Update.
5437 (registers_changed_ptid_target_pid_test): New.
5438 (_initialize_regcache): Register new test.
5439
cdd9148a
SM
54402020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5441
5442 * regcache.c (regcache_count): New.
5443 (struct regcache_test_data): New.
5444 (regcache_test_data_up): New.
5445 (populate_regcaches_for_test): New.
5446 (regcaches_test): Remove.
5447 (get_thread_arch_aspace_regcache_test): New.
5448 (registers_changed_ptid_all_test): New.
5449 (registers_changed_ptid_target_test): New.
5450 (registers_changed_ptid_target_ptid_test): New.
5451 (regcache_thread_ptid_changed): Remove regcache_count lambda.
5452 (_initialize_regcache): Register new tests.
5453
dd125343
SM
54542020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5455
5456 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
5457 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
5458 gdbarch and aspace parameter. Use current inferior's aspace.
5459 Validate regcache's arch value.
5460 (regcaches_test): Update.
5461
3ee93972
SM
54622020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5463
5464 * regcache.c (regcaches_test): Call registers_changed.
5465
33bf4c5c
TBA
54662020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5467
5468 * infrun.c (process_event_stop_test): Fix typo "breapoint".
5469
c2fd7fae
AKS
54702020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5471
5472 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
5473 to find the end of prologue for flang compiled binaries.
5474 * arm-tdep.c (arm_skip_prologue): Likewise.
5475 * i386-tdep.c (i386_skip_prologue): Likewise.
5476 * producer.c (producer_is_llvm): New function.
5477 (producer_parsing_tests): Added new tests for clang/flang.
5478 * producer.h (producer_is_llvm): New declaration.
5479
9327494e
SM
54802020-08-18 Simon Marchi <simon.marchi@efficios.com>
5481
5482 * linux-nat.c (linux_nat_debug_printf): New function.
5483 (linux_nat_debug_printf_1): New macro. Use throughout the file.
5484
d138725a
AM
54852020-08-18 Aaron Merey <amerey@redhat.com>
5486
5487 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
5488 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
5489 (CLIBS): Add DEBUGINFOD_LIBS.
5490
f9b11e6b
ST
54912020-08-17 Sergei Trofimovich <siarheit@google.com>
5492
5493 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
5494 'gdbarch_num_regs'.
5495
3ae7ab99
TT
54962020-08-17 Tom Tromey <tromey@adacore.com>
5497
5498 * ada-varobj.c (ada_varobj_decode_var): Handle case where
5499 ada_get_decoded_value returns NULL.
5500
b017825f
TT
55012020-08-17 Tom Tromey <tromey@adacore.com>
5502
5503 * python/py-inferior.c (infpy_search_memory): Use
5504 gdb_py_object_from_ulongest.
5505 * python/py-infevents.c (create_inferior_call_event_object)
5506 (create_memory_changed_event_object): Use
5507 gdb_py_object_from_ulongest.
5508 * python/py-linetable.c (ltpy_entry_get_pc): Use
5509 gdb_py_object_from_ulongest.
5510
7635cf79
SM
55112020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5512
5513 * loc.c (class symbol_needs_eval_context): Fix indentation.
5514
f54be24b
SM
55152020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5516
5517 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
5518 bool.
5519
53d5a2a5
TV
55202020-08-17 Tom de Vries <tdevries@suse.de>
5521
5522 PR gdb/26393
5523 * gdbtypes.c (dump_dynamic_prop): New function.
5524 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
5525
547ce8f0
TV
55262020-08-15 Tom de Vries <tdevries@suse.de>
5527
5528 PR backtrace/26390
5529 * stack.c (print_frame_args): Temporarily set the selected
5530 frame to FRAME while printing the frame's arguments.
5531
6ea815e7
PFC
55322020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5533
5534 PR breakpoints/26385
5535 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
5536 Always clear watchpoint with PTRACE_SET_DEBUGREG.
5537
6e562fa3
PFC
55382020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5539
5540 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
5541 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
5542 and >= to check return value instead of == -1 and != -1.
5543
d369b608
SM
55442020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
5545
5546 * utils.h (class gdb_argv) <as_array_view>: New method.
5547 * utils.c (gdb_argv_as_array_view_test): New.
5548 (_initialize_utils): Register selftest.
5549 * maint.c (maintenance_selftest): Use the new method.
5550
b31488a3
KR
55512020-08-13 Kamil Rytarowski <n54@gmx.com>
5552
5553 * target.h (supports_dumpcore, dumpcore): New
5554 function declarations.
5555 * target.c (supports_dumpcore, dumpcore): New
5556 functions.
5557 * target-delegates.c: Rebuild.
5558 * gcore.c (gcore_command): Use target_supports_dumpcore ()
5559 and target_dumpcore ().
5560
002a3166
AM
55612020-08-13 Aaron Merey <amerey@redhat.com>
5562
5563 * debuginfod-support.c: Replace global variables with user_data.
5564
ece5bc8a
SM
55652020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
5566
5567 * maint.c (maintenance_selftest): Split args and pass array_view
5568 to run_tests.
5569
6d8a0a5e
LM
55702020-08-12 Luis Machado <luis.machado@linaro.org>
5571
5572 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
5573 type's length.
5574 Use %s and pulongest to print the length.
5575
7cf663a9
PA
55762020-08-12 Pedro Alves <palves@redhat.com>
5577
5578 * NEWS: Move "Multi-target debugging support" item to the
5579 "Changes since GDB 9" section.
5580
27c7b875
PA
55812020-08-12 Pedro Alves <palves@redhat.com>
5582
5583 PR gdb/26336
5584 * progspace.c (program_space::remove_objfile): Invalidate the
5585 frame cache.
5586
1796a2a1
TV
55872020-08-11 Tom de Vries <tdevries@suse.de>
5588
5589 * MAINTAINERS: Mark ms1 as deleted.
5590
f8e3fe0d
LM
55912020-08-10 Luis Machado <luis.machado@linaro.org>
5592
5593 PR gdb/26310
5594
5595 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
5596 act accordingly.
5597 (aarch64_analyze_prologue_test): Add more unit tests to exercise
5598 movz/str/stur/stp skipping behavior.
5599
cc308722
LM
56002020-08-10 Luis Machado <luis.machado@linaro.org>
5601
5602 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
5603 struct user_sve_header instead of struct sve_context.
5604
041d9819
SM
56052020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
5606
5607 * read.h (dwarf2_fetch_die_loc_sect_off,
5608 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
5609 `void *` parameter with function_view.
5610 * read.c (dwarf2_fetch_die_loc_sect_off,
5611 dwarf2_fetch_die_loc_cu_off): Likewise.
5612 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
5613 (per_cu_dwarf_call): Adjust.
5614 (get_frame_address_in_block_wrapper): Remove.
5615 (indirect_synthetic_pointer): Adjust.
5616 (get_ax_pc): Remove.
5617 (dwarf2_compile_expr_to_ax): Adjust.
5618
38f8aa06
TV
56192020-08-08 Tom de Vries <tdevries@suse.de>
5620
5621 PR build/26344
5622 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
5623 constructor.
5624 * regcache.c (get_thread_arch_aspace_regcache): Same.
5625
a52b3ae2
TT
56262020-08-07 Tom Tromey <tromey@adacore.com>
5627
5628 * ravenscar-thread.c
5629 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
5630 New method.
5631 (ravenscar_thread_target::wait): Check
5632 runtime_initialized.
5633 (ravenscar_thread_target::prepare_to_store)
5634 (ravenscar_thread_target::stopped_by_sw_breakpoint)
5635 (ravenscar_thread_target::stopped_by_hw_breakpoint)
5636 (ravenscar_thread_target::stopped_by_watchpoint)
5637 (ravenscar_thread_target::stopped_data_address)
5638 (ravenscar_thread_target::core_of_thread): Use
5639 scoped_restore_current_thread and
5640 set_base_thread_from_ravenscar_task.
5641
0e29517d
TT
56422020-08-07 Tom Tromey <tromey@adacore.com>
5643
5644 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
5645
592f9bd7
TT
56462020-08-07 Tom Tromey <tromey@adacore.com>
5647
5648 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
5649 update_inferior_ptid before update_thread_list.
5650 (temporarily_change_regcache_ptid): New class.
5651 (ravenscar_thread_target::fetch_registers)
5652 (ravenscar_thread_target::store_registers)
5653 (ravenscar_thread_target::prepare_to_store): Use base thread when
5654 forwarding operation.
5655
39e2018a
TT
56562020-08-07 Tom Tromey <tromey@adacore.com>
5657
5658 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
5659 "is_pid" case.
5660
2080266b
TT
56612020-08-07 Tom Tromey <tromey@adacore.com>
5662
5663 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
5664 New methods.
5665 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
5666 first.
5667 (ravenscar_thread_target::add_thread): Rename from
5668 ravenscar_add_thread.
5669 (ravenscar_thread_target::update_thread_list): Use a lambda.
5670 (ravenscar_thread_target::xfer_partial): New method.
5671
78c02f21
TT
56722020-08-07 Tom Tromey <tromey@adacore.com>
5673
5674 * ada-lang.h (ada_task_list_iterator_ftype): Now a
5675 gdb::function_view.
5676 (iterate_over_live_ada_tasks): Change type of argument.
5677 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
5678 of argument.
5679
d5d833af
TT
56802020-08-07 Tom Tromey <tromey@adacore.com>
5681
5682 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
5683 Remove.
5684 (ravenscar_thread_target::extra_thread_info): Remove.
5685 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
5686 defer to target beneath for non-Ravenscar threads.
5687
a8ac85bb
TT
56882020-08-07 Tom Tromey <tromey@adacore.com>
5689
5690 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
5691 get_base_thread_from_ravenscar_task>: Now methods.
5692 <m_cpu_map>: New member.
5693 (ravenscar_thread_target::get_thread_base_cpu): Rename from
5694 ravenscar_get_thread_base_cpu. Check m_cpu_map.
5695 (ravenscar_thread_target::task_is_currently_active): Update.
5696 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
5697 Now a method.
5698 (ravenscar_thread_target::add_active_thread): Put initial thread
5699 into the m_cpu_map.
5700
550ab58d
TT
57012020-08-07 Tom Tromey <tromey@adacore.com>
5702
5703 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
5704 event_ptid.
5705
e9546579
TT
57062020-08-07 Tom Tromey <tromey@adacore.com>
5707
5708 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
5709 runtime_initialized.
5710
3d4470e5
TT
57112020-08-07 Tom Tromey <tromey@adacore.com>
5712
5713 * ravenscar-thread.c (ravenscar_thread_target): Don't call
5714 add_active_thread.
5715 (ravenscar_thread_target::add_active_thread): Now public.
5716 (ravenscar_inferior_created): Call add_active_thread after pushing
5717 the target.
5718
888bdb2b
SM
57192020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
5720
5721 * regcache.c (ptid_regcache_map): New type.
5722 (target_ptid_regcache_map): New type.
5723 (regcaches): Change type to target_ptid_regcache_map.
5724 (get_thread_arch_aspace_regcache): Update to regcaches' new
5725 type.
5726 (regcache_thread_ptid_changed): Likewise.
5727 (registers_changed_ptid): Likewise.
5728 (regcaches_size): Likewise.
5729 (regcaches_test): Update.
5730 (regcache_thread_ptid_changed): Update.
5731 * regcache.h (regcache_up): New type.
5732 * gdbsupport/ptid.h (hash_ptid): New struct.
5733
b161a60d
SM
57342020-08-07 Simon Marchi <simon.marchi@efficios.com>
5735
5736 * observable.h (thread_ptid_changed): Add parameter
5737 `process_stratum_target *`.
5738 * infrun.c (infrun_thread_ptid_changed): Add parameter
5739 `process_stratum_target *` and use it.
5740 (selftests): New namespace.
5741 (infrun_thread_ptid_changed): New function.
5742 (_initialize_infrun): Register selftest.
5743 * regcache.c (regcache_thread_ptid_changed): Add parameter
5744 `process_stratum_target *` and use it.
5745 (regcache_thread_ptid_changed): New function.
5746 (_initialize_regcache): Register selftest.
5747 * thread.c (thread_change_ptid): Pass target to
5748 thread_ptid_changed observable.
5749
d2854d8d
CT
57502020-08-06 Caroline Tice <cmtice@google.com>
5751
fe4c3d43
SM
5752 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
5753 (struct dwp_sections): Update field comments. Add loclists and
5754 rnglists fields.
5755 (struct virtual_v2_dwo_sections): Rename struct to
5756 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
5757 size & offset fields for loclists and rnglists.
5758 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
5759 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
5760 skipping dummy type units.
5761 (create_dwp_hash_table): Update the large comment above the function to
5762 discuss Version 5 DWP files as well, with references. Update all the
5763 version checks in the function to check for version 5 as well. Add new
5764 section at the end to create dwp hash table for version 5.
5765 (create_dwp_v2_section): Rename function to
5766 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
5767 Add V5 to error message text.
5768 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
5769 into calls to create_dwp_v2_or_v5_section.
5770 (create_dwo_unit_in_dwp_v5): New function.
5771 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
5772 check for version2; add else clause to handle version 5.
5773 (open_and_init_dwo_file): Add code to check dwarf version & only call
5774 create_debug_types_hash_table (with sections.types) if version is not 5;
5775 else call create_debug_type_hash_table, with sections.info.
5776 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
5777 version 5.
5778 (dwarf2_locate_v5_dwp_sections): New function.
5779 (open_and_init_dwp_file): Add else-if clause for version 5 to call
5780 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 5781
159ed7d9
SM
57822020-08-06 Simon Marchi <simon.marchi@efficios.com>
5783
5784 * regcache.h (class regcache): Remove friend
5785 registers_changed_ptid.
5786 <regcache_thread_ptid_changed>: Remove.
5787 <regcaches>: Remove.
5788 * regcache.c (regcache::regcaches): Rename to...
5789 (regcaches): ... this. Make static.
5790 (get_thread_arch_aspace_regcache): Update.
5791 (regcache::regcache_thread_ptid_changed): Rename to...
5792 (regcache_thread_ptid_changed): ... this. Update.
5793 (class regcache_access): Remove.
5794 (regcaches_test): Update.
5795 (_initialize_regcache): Update.
5796 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
5797 <forward_list>.
5798
174981ae
SM
57992020-08-06 Simon Marchi <simon.marchi@efficios.com>
5800
5801 * regcache.h (class regcache) <current_regcache>: Rename to...
5802 <regcaches>: ... this. Move doc here.
5803 * regcache.c (regcache::current_regcache) Rename to...
5804 (regcache::regcaches): ... this. Move doc to header.
5805 (get_thread_arch_aspace_regcache): Update.
5806 (regcache::regcache_thread_ptid_changed): Update.
5807 (registers_changed_ptid): Update.
5808 (class regcache_access) <current_regcache_size>: Rename to...
5809 <regcaches_size>: ... this.
5810 (current_regcache_test): Rename to...
5811 (regcaches_test): ... this.
5812 (_initialize_regcache): Update.
5813
ed908db6
VC
58142020-08-06 Victor Collod <vcollod@nvidia.com>
5815
5816 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
5817
b5582ab7
KB
58182020-08-05 Kevin Buettner <kevinb@redhat.com>
5819
5820 * corelow.c (core_target::build_file_mappings): Don't output
5821 null pathname in warning.
5822
ea946b86
SM
58232020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
5824
5825 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
5826 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
5827 gdb.dwarf2/dw2-single-line-discriminators.exp,
5828 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
5829
57d02173
TT
58302020-08-05 Tom Tromey <tromey@adacore.com>
5831
5832 PR rust/26197:
5833 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
5834 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
5835 Fix off-by-one and type size errors in ordinary case.
5836
5555c86d
TV
58372020-08-05 Tom de Vries <tdevries@suse.de>
5838
5839 * gdbtypes.c (type_not_allocated, type_not_associated): Use
5840 "prop->const_val () == 0" instead of "prop->const_val () != 0".
5841
97916bfe
SM
58422020-08-04 Simon Marchi <simon.marchi@efficios.com>
5843
5844 * frame.h (frame_id_p): Return bool.
5845 (frame_id_artificial_p): Return bool.
5846 (frame_id_eq): Return bool.
5847 (has_stack_frames): Return bool.
5848 (get_selected_frame): Fix typo in comment.
5849 (get_frame_pc_if_available): Return bool.
5850 (get_frame_address_in_block_if_available): Return bool.
5851 (get_frame_func_if_available): Return bool.
5852 (read_frame_register_unsigned): Return bool.
5853 (get_frame_register_bytes): Return bool.
5854 (safe_frame_unwind_memory): Return bool.
5855 (deprecated_frame_register_read): Return bool.
5856 (frame_unwinder_is): Return bool.
5857 * frame.c (struct frame_info) <prev_arch::p>: Change type to
5858 bool.
5859 <this_id::p>: Likewise.
5860 <prev_p>: Likewise.
5861 (frame_stash_add): Return bool.
5862 (get_frame_id): Use bool.
5863 (frame_id_build_special) Use bool.
5864 (frame_id_build_unavailable_stack): Use bool.
5865 (frame_id_build): Use bool.
5866 (frame_id_p): Return bool, use true/false instead of 1/0.
5867 (frame_id_artificial_p): Likewise.
5868 (frame_id_eq): Likewise.
5869 (frame_id_inner): Likewise.
5870 (get_frame_func_if_available): Likewise.
5871 (read_frame_register_unsigned): Likewise.
5872 (deprecated_frame_register_read): Likewise.
5873 (get_frame_register_bytes): Likewise.
5874 (has_stack_frames): Likewise.
5875 (inside_main_func): Likewise.
5876 (inside_entry_func): Likewise.
5877 (get_frame_pc_if_available): Likewise.
5878 (get_frame_address_in_block_if_available): Likewise.
5879 (frame_unwinder_is): Likewise.
5880 (safe_frame_unwind_memory): Likewise.
5881 (frame_unwind_arch): Likewise.
5882
fedfee88
SM
58832020-08-04 Simon Marchi <simon.marchi@efficios.com>
5884
5885 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
5886 type to cached_copy_status.
5887 (fprintf_frame): Adjust.
5888 (get_frame_func_if_available): Adjust.
5889 (frame_cleanup_after_sniffer): Adjust.
5890
6cfa9b59
MW
58912020-08-04 Mark Wielaard <mark@klomp.org>
5892
5893 * MAINTAINERS (Write After Approval): Update email address.
5894
66d6346b
SM
58952020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5896
5897 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
5898 dynamic_prop::const_val.
5899
8a6d5e35
SM
59002020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5901
5902 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
5903 dynamic_prop::kind.
5904
51d6067d
SM
59052020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5906
5907 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
5908
b26e2ae7
JM
59092020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
5910
5911 * configure.tgt: Set gdb_sim for bpf-*-* targets.
5912
39791af2
JM
59132020-08-04 Weimin Pan <weimin.pan@oracle.com>
5914 Jose E. Marchesi <jose.marchesi@oracle.com>
5915
5916 * configure.tgt: Add entry for bpf-*-*.
5917 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
5918 (ALLDEPFILES): Add bpf-tdep.c.
5919 * bpf-tdep.c: New file.
5920 * MAINTAINERS: Add bpf target and maintainer.
5921 * NEWS: Mention the support for the new target.
5922
521894aa
TV
59232020-08-04 Tom de Vries <tdevries@suse.de>
5924
5925 PR symtab/23270
5926 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
5927 Error.
5928
5d6356e9
JB
59292020-08-03 John Baldwin <jhb@FreeBSD.org>
5930
5931 * syscalls/freebsd.xml: Regenerate.
5932
0cf82b81
JB
59332020-08-03 John Baldwin <jhb@FreeBSD.org>
5934
5935 * syscalls/update-freebsd.sh: Fix usage and year range.
5936
8f34b746
TV
59372020-08-03 Tom de Vries <tdevries@suse.de>
5938
5939 PR symtab/26333
5940 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
5941 DW_LNE_lo_user/DW_LNE_hi_user range.
5942
5e500d33
SM
59432020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
5944
5945 PR ada/26318
5946 * ada-lang.c (ada_modulus): Return 0 if property is not of const
5947 kind.
5948
78319c15
TBA
59492020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5950
5951 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
5952
4c55e970
TBA
59532020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5954
5955 * breakpoint.c (set_breakpoint_condition): Update the condition
5956 expressions after checking that the input condition string parses
5957 successfully and does not contain junk at the end.
5958
1e620590
TBA
59592020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5960
5961 * breakpoint.c (set_breakpoint_condition): Update the
5962 condition string after parsing the new condition successfully.
5963
c8693053
RO
59642020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5965
5966 * proc-api.c (_STRUCTURED_PROC): Don't define.
5967 * proc-events.c: Likewise.
5968 * proc-flags.c: Likewise.
5969 * proc-why.c: Likewise.
5970 * procfs.c: Likewise.
5971
5972 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
5973 * configure, config.in: Regenerate.
5974
5a99adb8
TV
59752020-07-30 Tom de Vries <tdevries@suse.de>
5976
5977 PR build/26320
5978 * ui-style.h (struct ui_file_style::color): Wrap m_value and
5979 m_red/m_green/m_blue in a union.
5980
8ba83e91
TV
59812020-07-29 Tom de Vries <tdevries@suse.de>
5982
5983 PR tdep/26280
5984 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
5985
f75a0693
AB
59862020-07-28 Tom Tromey <tromey@adacore.com>
5987
5988 PR symtab/26270:
5989 * symtab.h (find_pc_partial_function_sym): Declare.
5990 * cli/cli-cmds.c (disassemble_command): Use
5991 find_pc_partial_function_sym. Check asm_demangle.
5992 * blockframe.c (cache_pc_function_sym): New global.
5993 (cache_pc_function_name): Remove.
5994 (clear_pc_function_cache): Update.
5995 (find_pc_partial_function_sym): New function, from
5996 find_pc_partial_function.
5997 (find_pc_partial_function): Rewrite using
5998 find_pc_partial_function_sym.
5999
16f3242c
TT
60002020-07-28 Tom Tromey <tromey@adacore.com>
6001
6002 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
6003 help. Add usage.
6004
4888741a
TT
60052020-07-28 Tom Tromey <tromey@adacore.com>
6006
6007 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
6008 <DW_OP_GNU_variable_value>: Cast to address type.
6009
4d46f402
KR
60102020-07-28 Kamil Rytarowski <n54@gmx.com>
6011
6012 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
6013 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
6014 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
6015 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
6016 (nbsd_get_siginfo_type): New.
6017 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
6018 (_initialize_nbsd_tdep): New.
6019
d70f978b
L
60202020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6021
6022 PR binutils/26301
6023 * configure: Regenerated.
6024
377170fa
L
60252020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6026
6027 PR binutils/26301
6028 * configure: Regenerated.
6029
43d5901d
AB
60302020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6031
6032 * python/py-frame.c: Remove 'user-regs.h' include.
6033 (frapy_read_register): Rewrite to make use of
6034 gdbpy_parse_register_id.
6035 * python/py-registers.c (gdbpy_parse_register_id): New function,
6036 moved here from python/py-unwind.c. Updated the return type, and
6037 also accepts register descriptor objects.
6038 * python/py-unwind.c: Remove 'user-regs.h' include.
6039 (pyuw_parse_register_id): Moved to python/py-registers.c.
6040 (unwind_infopy_add_saved_register): Update to use
6041 gdbpy_parse_register_id.
6042 (pending_framepy_read_register): Likewise.
6043 * python/python-internal.h (gdbpy_parse_register_id): Declare.
6044
14fa8fb3
AB
60452020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6046
6047 * python/py-registers.c: Add 'user-regs.h' include.
6048 (register_descriptor_iter_find): New function.
6049 (register_descriptor_iterator_object_methods): New static global
6050 methods array.
6051 (register_descriptor_iterator_object_type): Add pointer to methods
6052 array.
6053
ddce1758
JB
60542020-07-27 John Baldwin <jhb@FreeBSD.org>
6055
6056 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
6057 for all architectures on FreeBSD 11.3 and later.
6058
a4089f52
TT
60592020-07-27 Tom Tromey <tromey@adacore.com>
6060
6061 * gcore.h (load_corefile): Don't declare.
6062
95420d30
TV
60632020-07-27 Tom de Vries <tdevries@suse.de>
6064
6065 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
6066 * config.in: Regenerate.
6067 * configure: Regenerate.
6068
05a6b8c2
EZ
60692020-07-26 Eli Zaretskii <eliz@gnu.org>
6070
6071 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
6072 ws2tcpip.h. When checking whether socklen_t type is defined, use
6073 ws2tcpip.h if it is available and sys/socket.h isn't.
6074 * configure: Regenerate.
6075 * config.in: Regenerate.
6076
e79eb02f
AB
60772020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
6078
6079 PR fortran/23051
6080 PR fortran/26139
6081 * valops.c (value_ind): Pass address to
6082 readjust_indirect_value_type.
6083 * value.c (readjust_indirect_value_type): Make parameter
6084 non-const, and add extra address parameter. Resolve original type
6085 before using it.
6086 * value.h (readjust_indirect_value_type): Update function
6087 signature and comment.
6088
876518dd
TV
60892020-07-25 Tom de Vries <tdevries@suse.de>
6090
6091 PR symtab/26243
6092 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
6093 entries.
6094
f6720b1c
AM
60952020-07-24 Aaron Merey <amerey@redhat.com>
6096
6097 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
6098 * configure: Rebuild.
6099
513487e1
KB
61002020-07-23 Kevin Buettner <kevinb@redhat.com>
6101
6102 PR corefiles/26294
6103 * corelow.c (_initialize_corelow): Add period to help text
6104 for "maintenance print core-file-backed-mappings".
6105
e7bc9db8
PA
61062020-07-23 Pedro Alves <pedro@palves.net>
6107
6108 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
6109 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
6110 meanwhile.
6111 * frame.c (frame_cache_generation, get_frame_cache_generation):
6112 New.
6113 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
6114 (get_prev_frame_if_no_cycle): On exception, don't touch
6115 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
6116 * frame.h (get_frame_cache_generation): Declare.
6117
90fcc466
TV
61182020-07-23 Tom de Vries <tdevries@suse.de>
6119
6120 PR tui/26282
6121 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
6122 New default constructor.
6123
78344df7
AB
61242020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
6125
6126 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
6127 exclude non-statement entries.
6128
b089853a
KB
61292020-07-22 Kevin Buettner <kevinb@redhat.com>
6130
6131 * NEWS (New commands): Mention new command
6132 "maintenance print core-file-backed-mappings".
6133
09c2f5d4
KB
61342020-07-22 Kevin Buettner <kevinb@redhat.com>
6135
6136 * corelow.c (gdbcmd.h): Include.
6137 (core_target::info_proc_mappings): New method.
6138 (get_current_core_target): New function.
6139 (maintenance_print_core_file_backed_mappings): New function.
6140 (_initialize_corelow): Add core-file-backed-mappings to
6141 "maint print" commands.
6142
9c5ec5c2 61432020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 6144
9c5ec5c2
KB
6145 * linux-tdep.c (dump_note_entry_p): New function.
6146 (linux_dump_mapping_p_ftype): New typedef.
6147 (linux_find_memory_regions_full): Add new parameter,
6148 should_dump_mapping_p.
6149 (linux_find_memory_regions): Adjust call to
6150 linux_find_memory_regions_full.
6151 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
6152 call to linux_find_memory_regions_full.
6153
db082f59
KB
61542020-07-22 Kevin Buettner <kevinb@redhat.com>
6155
6156 * corelow.c (solist.h, unordered_map): Include.
6157 (class core_target): Add field m_core_file_mappings and
6158 method build_file_mappings.
6159 (core_target::core_target): Call build_file_mappings.
6160 (core_target::~core_target): Free memory associated with
6161 m_core_file_mappings.
6162 (core_target::build_file_mappings): New method.
6163 (core_target::xfer_partial): Use m_core_file_mappings
6164 for memory transfers.
6165 * linux-tdep.c (linux_read_core_file_mappings): New
6166 function.
6167 (linux_core_info_proc_mappings): Rewrite to use
6168 linux_read_core_file_mappings.
6169 (linux_init_abi): Register linux_read_core_file_mappings.
6170
7e183d27
KB
61712020-07-22 Kevin Buettner <kevinb@redhat.com>
6172
6173 * arch-utils.c (default_read_core_file_mappings): New function.
6174 * arch-utils.c (default_read_core_file_mappings): Declare.
6175 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
6176 * gdbarch.h, gdbarch.c: Regenerate.
6177
2735d421
KB
61782020-07-22 Kevin Buettner <kevinb@redhat.com>
6179
6180 PR corefiles/25631
6181 * corelow.c (core_target:xfer_partial): Revise
6182 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
6183 case after first checking the stratum beneath the core
6184 target.
6185 (has_all_memory): Return true.
6186 * target.c (raw_memory_xfer_partial): Revise comment
6187 regarding use of has_all_memory.
6188
e56cb451
KB
61892020-07-22 Kevin Buettner <kevinb@redhat.com>
6190
6191 * exec.h (section_table_xfer_memory): Revise declaration,
6192 replacing section name parameter with an optional callback
6193 predicate.
6194 * exec.c (section_table_xfer_memory): Likewise.
6195 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
6196 of section_table_xfer_memory.
6197
32fa152e
TT
61982020-07-22 Tom Tromey <tromey@adacore.com>
6199
6200 * mi/mi-cmd-stack.c (list_args_or_locals): Use
6201 lookup_symbol_search_name.
6202
a67a1c41
AB
62032020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6204
6205 * python/py-registers.c (gdbpy_register_object_data_init): Remove
6206 redundant local variable.
6207 (gdbpy_get_register_descriptor): Extract descriptor vector as a
6208 reference, not pointer, update code accordingly.
6209
a7b4ff4f
SM
62102020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6211 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6212
6213 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
6214 * jit.c (jit_breakpoint_re_set_internal): Use the
6215 `skip_jit_symbol_lookup` field.
6216
2340e834
SM
62172020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6218 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6219
6220 * jit.c (jit_read_descriptor): Define the descriptor address once,
6221 use twice.
6222 (jit_breakpoint_deleted): Move the declaration of the loop variable
6223 `iter` into the loop header.
6224 (jit_breakpoint_re_set_internal): Move the declaration of the local
6225 variable `objf_data` to the first point of definition.
6226 (jit_event_handler): Move the declaration of local variables
6227 `code_entry`, `entry_addr`, and `objf` to their first point of use.
6228 Rename `objf` to `jited`.
6229
c1072906
SM
62302020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6231
6232 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
6233 Remove.
6234 * jit.c (get_jiter_objfile_data): Update.
6235
c8474dc3
TBA
62362020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6237 Simon Marchi <simon.marchi@polymtl.ca>
6238
6239 * jit.c (struct jit_program_space_data): Remove.
6240 (jit_program_space_key): Remove.
6241 (jiter_objfile_data::~jiter_objfile_data): Remove program space
6242 stuff.
6243 (get_jit_program_space_data): Remove.
6244 (jit_breakpoint_deleted): Iterate on all of the program space's
6245 objfiles.
6246 (jit_inferior_init): Likewise.
6247 (jit_breakpoint_re_set_internal): Likewise. Also change return
6248 type to void.
6249 (jit_breakpoint_re_set): Pass current_program_space to
6250 jit_breakpoint_re_set_internal.
6251
77208eb7
SM
62522020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6253
6254 * jit.h (struct jiter_objfile_data) <cached_code_address,
6255 jit_breakpoint>: Move to here from ...
6256 * jit.c (jit_program_space_data): ... here.
6257 (jiter_objfile_data::~jiter_objfile_data): Update.
6258 (jit_breakpoint_deleted): Update.
6259 (jit_breakpoint_re_set_internal): Update.
6260
8c1c720f
SM
62612020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6262
6263 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
6264 checks.
6265 (jit_read_descriptor): Remove NULL check.
6266 (jit_event_handler): Add an assertion.
6267
0e74a041
SM
62682020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6269
6270 * jit.h (struct jit_objfile_data): Split into...
6271 (struct jiter_objfile_data): ... this ...
6272 (struct jited_objfile_data): ... and this.
6273 * objfiles.h (struct objfile) <jit_data>: Remove.
6274 <jiter_data, jited_data>: New fields.
6275 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
6276 (jiter_objfile_data::~jiter_objfile_data): ... this.
6277 (get_jit_objfile_data): Rename to ...
6278 (get_jiter_objfile_data): ... this.
6279 (add_objfile_entry): Update.
6280 (jit_read_descriptor): Use get_jiter_objfile_data.
6281 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
6282 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
6283 (jit_inferior_exit_hook): Use objfile's jited_data field.
6284
238b5c9f
SM
62852020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6286
6287 * jit.h: Forward-declare `struct minimal_symbol`.
6288 (struct jit_objfile_data): Migrate to here from jit.c; also add a
6289 constructor, destructor, and an objfile* field.
6290 * jit.c (jit_objfile_data): Remove.
6291 (struct jit_objfile_data): Migrate from here to jit.h.
6292 (jit_objfile_data::~jit_objfile_data): New destructor
6293 implementation with code moved from free_objfile_data.
6294 (free_objfile_data): Delete.
6295 (get_jit_objfile_data): Update to use the jit_data field of objfile.
6296 (jit_find_objf_with_entry_addr): Ditto.
6297 (jit_inferior_exit_hook): Ditto.
6298 (_initialize_jit): Remove the call to
6299 register_objfile_data_with_cleanup.
6300 * objfiles.h (struct objfile) <jit_data>: New field.
6301
fe053b9e
TBA
63022020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6303
6304 * jit.h: Forward-declare `struct objfile`.
6305 (jit_event_handler): Add a second parameter, the JITer objfile.
6306 * jit.c (jit_read_descriptor): Change the signature to take the
6307 JITer objfile as an argument instead of the jit_program_space_data.
6308 (jit_inferior_init): Update the call to jit_read_descriptor.
6309 (jit_event_handler): Use the new JITer objfile argument when calling
6310 jit_read_descriptor.
6311 * breakpoint.c (handle_jit_event): Update the call to
6312 jit_event_handler to pass the JITer objfile.
6313
4cec0c66
JB
63142020-07-21 John Baldwin <jhb@FreeBSD.org>
6315
6316 * gdbarch.c: Regenerate.
6317 * gdbarch.h: Regenerate.
6318 * gdbarch.sh (handle_segmentation_fault): Remove method.
6319 * infrun.c (handle_segmentation_fault): Remove.
6320 (print_signal_received_reason): Remove call to
6321 handle_segmentation_fault.
6322
0e42f66a
JB
63232020-07-21 John Baldwin <jhb@FreeBSD.org>
6324
6325 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6326 Rename to sparc64_linux_report_signal_info and add siggnal
6327 argument.
6328 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
6329 instead of sparc64_linux_handle_segmentation_fault.
6330
77bdfeb2
JB
63312020-07-21 John Baldwin <jhb@FreeBSD.org>
6332
6333 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
6334 i386_linux_report_signal_info instead of
6335 i386_linux_handle_segmentation_fault.
6336 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
6337 to i386_linux_report_signal_info and add siggnal argument.
6338 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
6339 of i386_linux_handle_segmentation_fault.
6340 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
6341 to i386_linux_report_signal_info and add siggnal argument.
6342
ad97bfc5
JB
63432020-07-21 John Baldwin <jhb@FreeBSD.org>
6344
6345 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
6346 hook if present.
6347
272bb05c
JB
63482020-07-21 John Baldwin <jhb@FreeBSD.org>
6349
6350 * gdbarch.c: Regenerate.
6351 * gdbarch.h: Regenerate.
6352 * gdbarch.sh (report_signal_info): New method.
6353 * infrun.c (print_signal_received_reason): Invoke gdbarch
6354 report_signal_info hook if present.
6355
baf8791e
AB
63562020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6357
6358 * python/py-registers.c : Add 'unordered_map' include.
6359 (gdbpy_new_reggroup): Renamed to...
6360 (gdbpy_get_reggroup): ...this. Update to only create register
6361 group descriptors when needed.
6362 (gdbpy_reggroup_iter_next): Update.
6363
f7306dac
AB
63642020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6365
6366 * python/py-registers.c (gdbpy_register_object_data): New static
6367 global.
6368 (gdbpy_register_object_data_init): New function.
6369 (gdbpy_new_register_descriptor): Renamed to...
6370 (gdbpy_get_register_descriptor): ...this, and update to reuse
6371 existing register descriptors where possible.
6372 (gdbpy_register_descriptor_iter_next): Update.
6373 (gdbpy_initialize_registers): Register new gdbarch data.
6374
05c309a8
SM
63752020-07-21 Simon Marchi <simon.marchi@efficios.com>
6376
6377 * linux-nat.c (stopped_pids): Make static.
6378
d1fd641e
SM
63792020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
6380
6381 PR ada/26235
6382 * gdbtypes.c (ada_discrete_type_low_bound,
6383 ada_discrete_type_high_bound): Handle undefined bounds.
6384
1de14d77
KR
63852020-07-21 Kamil Rytarowski <n54@gmx.com>
6386
6387 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
6388 declaration.
6389 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
6390 function.
6391
ed810cc7
JB
63922020-07-20 John Baldwin <jhb@FreeBSD.org>
6393
6394 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
6395 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
6396 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
6397 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
6398 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
6399 method.
6400
ae5369e7
LC
64012020-07-20 Ludovic Courtès <ludo@gnu.org>
6402
6403 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
6404 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
6405 which are deprecated in Guile 3.0.
6406 * configure.ac (try_guile_versions): Add "guile-3.0".
6407 * configure (try_guile_versions): Regenerate.
6408 * NEWS: Update entry.
6409
68cf161c
LC
64102020-07-20 Ludovic Courtès <ludo@gnu.org>
6411 Doug Evans <dje@google.com>
6412
6413 PR gdb/21104
6414 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
6415 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
6416 USING_GUILE_BEFORE_2_2.
6417 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
6418 Change type to 'scm_t_port_type *'.
6419 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
6420 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
6421 parameter and honor it. Update callers.
6422 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
6423 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
6424 functions.
6425 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
6426 USING_GUILE_BEFORE_2_2.
6427 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
6428 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
6429 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
6430 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
6431 and 'SCM_PORT_TYPE'.
6432 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
6433 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
6434 (gdbscm_memory_port_read, gdbscm_memory_port_write)
6435 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
6436 [!USING_GUILE_BEFORE_2_2]: New functions.
6437 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
6438 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
6439 'gdbscm_memory_port_read'.
6440 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
6441 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
6442 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
6443 function.
6444 (ioscm_init_memory_port): Remove.
6445 (ioscm_init_memory_port_stream): New function
6446 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
6447 function.
6448 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6449 Return scm_from_uint (0).
6450 (gdbscm_set_memory_port_read_buffer_size_x)
6451 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6452 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6453 Return scm_from_uint (0).
6454 (gdbscm_set_memory_port_write_buffer_size_x)
6455 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6456 * configure.ac (try_guile_versions): Add "guile-2.2".
6457 * configure: Regenerate.
6458 * NEWS: Add entry.
6459
aee91db3
TT
64602020-07-18 Tom Tromey <tom@tromey.com>
6461
6462 * linux-nat.c (linux_multi_process): Remove.
6463 (linux_nat_target::supports_multi_process): Return true.
6464
0e267416
AB
64652020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6466
6467 * arch/riscv.c (riscv_tdesc_cache): Change map type.
6468 (riscv_lookup_target_description): Return pointer out of
6469 unique_ptr.
6470 * target-descriptions.c (allocate_target_description): Add
6471 comment.
6472 (target_desc_deleter::operator()): Likewise.
6473 * target-descriptions.h (struct target_desc_deleter): Moved to
6474 gdbsupport/tdesc.h.
6475 (target_desc_up): Likewise.
6476
f80c8ec4
TT
64772020-07-17 Tom Tromey <tromey@adacore.com>
6478
6479 * linux-nat.c (linux_nat_target::supports_non_stop)
6480 (linux_nat_target::always_non_stop_p): Use "true".
6481 (linux_nat_target::supports_disable_randomization): Use "true" and
6482 "false".
6483
d0ce17d8
CT
64842020-07-16 Caroline Tice <cmtice@google.com>
6485
6486 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
6487 (RNGLIST_HEADER_SIZE64): New constant definition.
6488 (struct dwop_section_names): Add rnglists_dwo.
6489 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
6490 (struct loclist_header): Rename to 'loclists_rnglists_header'.
6491 (struct dwo_sections): Add rnglists field.
6492 (read_attribut_reprocess): Add tag parameter.
6493 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
6494 (cu_debug_rnglists_section): New function (decl & definition).
6495 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
6496 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
6497 die whose range is being checked; get rnglist section from
6498 cu_debug_rnglists_section, to get from either objfile or dwo file as
6499 appropriate. Add cases for DW_RLE_base_addressx,
6500 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
6501 the base address to DW_RLE_offset_pairs (not to all ranges), moving
6502 test inside if-condition and updating complaint message.
6503 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
6504 dwarf2_rnglists_process.
6505 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
6506 dwarf2_ranges_process.
6507 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
6508 need_ranges_base and update comment appropriately. Also pass die tag
6509 to dwarf2_ranges_read.
6510 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
6511 need_ranges_base and update comment appropriately. Also pass die tag
6512 to dwarf2_ranges_process.
6513 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
6514 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
6515 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
6516 need_ranges_base and update comment appropriately. Also pass die tag
6517 to read_attribute_reprocess and dwarf2_ranges_read.
6518 (read_loclist_header): Rename function to read_loclists_rnglists_header,
6519 and update function comment appropriately.
6520 (read_loclist_index): Call read_loclists_rnglists_header instead of
6521 read_loclist_header.
6522 (read_rnglist_index): New function.
6523 (read_attribute_reprocess): Add tag parameter. Add code for
6524 DW_FORM_rnglistx, passing tag to read_rnglist_index.
6525 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
6526
3dcc261c
AB
65272020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
6528
6529 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
6530 being resolved.
6531
ccb9eba6
AB
65322020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
6533
6534 * arch-utils.c (show_architecture): Update formatting of messages.
6535
cf88be68
SM
65362020-07-12 Simon Marchi <simon.marchi@efficios.com>
6537
6538 * gdbtypes.h (struct type) <bounds>: Handle array and string
6539 types.
6540 * ada-lang.c (assign_aggregate): Use type::bounds on
6541 array/string type.
6542 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
6543 * c-varobj.c (c_number_of_children): Likewise.
6544 (c_describe_child): Likewise.
6545 * eval.c (evaluate_subexp_for_sizeof): Likewise.
6546 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
6547 (f_type_print_base): Likewise.
6548 * f-valprint.c (f77_array_offset_tbl): Likewise.
6549 (f77_get_upperbound): Likewise.
6550 (f77_print_array_1): Likewise.
6551 * guile/scm-type.c (gdbscm_type_range): Likewise.
6552 * m2-typeprint.c (m2_array): Likewise.
6553 (m2_is_long_set_of_type): Likewise.
6554 * m2-valprint.c (get_long_set_bounds): Likewise.
6555 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
6556 * python/py-type.c (typy_range): Likewise.
6557 * rust-lang.c (rust_internal_print_type): Likewise.
6558 * type-stack.c (type_stack::follow_types): Likewise.
6559 * valarith.c (value_subscripted_rvalue): Likewise.
6560 * valops.c (value_cast): Likewise.
6561
509971ae
SM
65622020-07-12 Simon Marchi <simon.marchi@efficios.com>
6563
6564 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
6565 callers to use the equivalent accessor methods.
6566
107406b7
SM
65672020-07-12 Simon Marchi <simon.marchi@efficios.com>
6568
6569 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
6570 (struct type) <bit_stride>: New method.
6571 (TYPE_BIT_STRIDE): Remove.
6572 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
6573
bb789949
SM
65742020-07-12 Simon Marchi <simon.marchi@efficios.com>
6575
6576 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
6577 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
6578 callers to use the equivalent accessor methods instead.
6579
39498edb
SM
65802020-07-12 Simon Marchi <simon.marchi@efficios.com>
6581
6582 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
6583 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
6584 callers to use the equivalent accessor methods instead.
6585
3b606f38
SM
65862020-07-12 Simon Marchi <simon.marchi@efficios.com>
6587
6588 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
6589 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
6590 to use dynamic_prop::kind.
6591
064d9cb9
SM
65922020-07-12 Simon Marchi <simon.marchi@efficios.com>
6593
6594 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
6595 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
6596 to get the bound property's kind and check against
6597 PROP_UNDEFINED.
6598
5537ddd0
SM
65992020-07-12 Simon Marchi <simon.marchi@efficios.com>
6600
6601 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
6602 all callers to use type::range_bounds followed by
6603 dynamic_prop::{low,high}.
6604
8c2e4e06
SM
66052020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6606
6607 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
6608 const_val, set_const_val, baton, set_locexpr, set_loclist,
6609 set_addr_offset, variant_parts, set_variant_parts,
6610 original_type, set_original_type>: New methods.
6611 <kind>: Rename to...
6612 <m_kind>: ... this. Update all users to use the new methods
6613 instead.
6614 <data>: Rename to...
6615 <m_data>: ... this. Update all users to use the new methods
6616 instead.
6617
7c6f2712
SM
66182020-07-12 Simon Marchi <simon.marchi@efficios.com>
6619
6620 * gdbtypes.c (get_discrete_bounds): Return failure if
6621 the range type's bounds are not both defined and constant
6622 values.
6623 (get_array_bounds): Update comment. Remove undefined bound check.
6624
599088e3
SM
66252020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6626
6627 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
6628 the type::bounds method directly.
6629
c4dfcb36
SM
66302020-07-12 Simon Marchi <simon.marchi@efficios.com>
6631
6632 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
6633 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
6634 are used to set the range type's bounds to use set_bounds.
6635
0a278aa7
PW
66362020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6637
6638 * exec.c (_initialize_exec): Update exec-file-mismatch help.
6639
cce20f10
PA
66402020-07-10 Pedro Alves <pedro@palves.net>
6641
6642 * gdbthread.h (inferior_ref): Define.
6643 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
6644 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
6645 * thread.c
6646 (scoped_restore_current_thread::restore):
6647 Adjust to gdb::ref_ptr.
6648 (scoped_restore_current_thread::~scoped_restore_current_thread):
6649 Remove manual decref handling.
6650 (scoped_restore_current_thread::scoped_restore_current_thread):
6651 Adjust to use
6652 inferior_ref::new_reference/thread_info_ref::new_reference.
6653 Incref the thread before calling get_frame_id instead of after.
6654 Let TARGET_CLOSE_ERROR propagate.
6655
6d7aa592
PA
66562020-07-10 Pedro Alves <pedro@palves.net>
6657
6658 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
6659 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
6660 NOT_AVAILABLE_ERROR.
6661 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
6662 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
6663
b3e3a4c1
SM
66642020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6665 Pedro Alves <pedro@palves.net>
6666
6667 PR gdb/26199
6668 * infrun.c (threads_are_resumed_pending_p): Delete.
6669 (do_target_wait): Remove threads_are_executing and
6670 threads_are_resumed_pending_p checks from the inferior_matches
6671 lambda. Update comments.
6672
d6cc5d98
PA
66732020-07-10 Pedro Alves <pedro@palves.net>
6674
6675 PR gdb/26199
6676 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
6677 executing threads.
6678
7d3badc6
PA
66792020-07-10 Pedro Alves <pedro@palves.net>
6680
6681 PR gdb/26199
6682 * infrun.c (handle_no_resumed): Handle multiple targets.
6683
42bd97a6
PA
66842020-07-10 Pedro Alves <pedro@palves.net>
6685
6686 PR gdb/26199
6687 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
6688 target_is_async_p.
6689
43667cc6
PA
66902020-07-10 Pedro Alves <pedro@palves.net>
6691
6692 PR gdb/26199
6693 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
6694 threads, not all threads.
6695
96118d11
PA
66962020-07-10 Pedro Alves <pedro@palves.net>
6697
6698 PR gdb/26199
6699 * remote.c (remote_target::open_1): Pass remote target pointer as
6700 data to create_async_event_handler.
6701 (remote_async_inferior_event_handler): Mark async event handler
6702 before returning if the remote target still has either pending
6703 events or unacknowledged notifications.
6704
54904d81
JB
67052020-07-10 John Baldwin <jhb@FreeBSD.org>
6706
6707 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
6708 declaration.
6709 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
6710 function.
6711
f37e5866
JB
67122020-07-09 John Baldwin <jhb@FreeBSD.org>
6713
6714 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
6715 inferior_ptid.
6716
fc238d4a
JB
67172020-07-09 John Baldwin <jhb@FreeBSD.org>
6718
6719 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
6720 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
6721 AT_FREEBSD_PS_STRINGS.
6722
6e2469ff
HD
67232020-07-08 Hannes Domani <ssbssa@yahoo.de>
6724
6725 * auto-load.c (auto_load_objfile_script_1): Convert drive part
6726 of debugfile path on Windows.
6727
d1076c41
JB
67282020-07-08 John Baldwin <jhb@FreeBSD.org>
6729
6730 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
6731 argument to 'data'.
6732
15f3b077
TT
67332020-07-08 Tom Tromey <tromey@adacore.com>
6734
6735 * ada-lang.c (ada_exception_message_1): Use read_memory.
6736
9fc501fd
AB
67372020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6738
6739 PR python/22748
6740 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
6741 special handling for inline frames.
6742 * findvar.c (value_of_register_lazy): Skip inline frames when
6743 creating lazy register values.
6744 * frame.c (frame_id_computed_p): Delete definition.
6745 * frame.h (frame_id_computed_p): Delete declaration.
6746
64cb3757
AB
67472020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6748
6749 * NEWS: Mention additions to Python API.
6750 * python/py-arch.c (archpy_register_groups): New function.
6751 (arch_object_methods): Add 'register_groups' method.
6752 * python/py-registers.c (reggroup_iterator_object): New struct.
6753 (reggroup_object): New struct.
6754 (gdbpy_new_reggroup): New function.
6755 (gdbpy_reggroup_to_string): New function.
6756 (gdbpy_reggroup_name): New function.
6757 (gdbpy_reggroup_iter): New function.
6758 (gdbpy_reggroup_iter_next): New function.
6759 (gdbpy_new_reggroup_iterator): New function
6760 (gdbpy_initialize_registers): Register new types.
6761 (reggroup_iterator_object_type): Define new Python type.
6762 (gdbpy_reggroup_getset): New static global.
6763 (reggroup_object_type): Define new Python type.
6764 * python/python-internal.h
6765
0f767f94
AB
67662020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6767
6768 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
6769 * python/py-arch.c (archpy_registers): New function.
6770 (arch_object_methods): Add 'registers' method.
6771 * python/py-registers.c: New file.
6772 * python/python-internal.h
6773 (gdbpy_new_register_descriptor_iterator): Declare.
6774 (gdbpy_initialize_registers): Declare.
6775 * python/python.c (do_start_initialization): Call
6776 gdbpy_initialize_registers.
6777 * NEWS: Mention additions to the Python API.
6778
87dbc774
AB
67792020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6780
6781 * NEWS: Mention new Python API method.
6782 * python/py-unwind.c (pending_framepy_architecture): New function.
6783 (pending_frame_object_methods): Add architecture method.
6784
3bc98c0c
AB
67852020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6786
6787 * gdbarch.c: Regenerate.
6788 * gdbarch.h: Regenerate.
6789 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
6790 (gdbarch_data): Use internal_error for the case where
6791 deprecated_set_gdbarch_data was originally needed.
6792 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
6793 and use passed in obstack.
6794 (libunwind_frame_set_descr): Should no longer get back NULL from
6795 gdbarch_data.
6796 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
6797 type.
6798 * user-regs.c (user_regs_init): Update parameters, and use passed
6799 in obstack.
6800 (user_reg_add): Should no longer get back NULL from gdbarch_data.
6801 (_initialize_user_regs): Register as a pre-init gdbarch data type.
6802
d8cc8af6
TV
68032020-07-06 Tom de Vries <tdevries@suse.de>
6804
6805 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
6806 End-Of-Sequence in lte_is_less_than.
6807 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
6808 "gdb: Don't reorder line table entries too much when sorting".
6809
947f7597
TV
68102020-07-06 Tom de Vries <tdevries@suse.de>
6811
6812 PR tui/26205
6813 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
6814
1e7c1b22
TV
68152020-07-05 Tom de Vries <tdevries@suse.de>
6816
6817 PR build/26187
6818 * inferior.h (struct infcall_suspend_state_deleter): If available, use
6819 std::uncaught_exceptions instead of deprecated
6820 std::uncaught_exception.
6821
a36158ec
SM
68222020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6823
6824 * macroexp.h (macro_stringify): Return
6825 gdb::unique_xmalloc_ptr<char>.
6826 * macroexp.c (macro_stringify): Likewise.
6827 * macrotab.c (fixup_definition): Update.
6828
14d960c8
SM
68292020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6830
6831 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
6832 (lex_one_token): Update.
6833 * macroexp.c (struct macro_buffer) <release>: Return
6834 gdb::unique_xmalloc_ptr<char>.
6835 (macro_stringify): Update.
6836 (macro_expand): Update.
6837 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
6838 * macroexp.h (macro_expand_next): Likewise.
6839
211d5b1c
SM
68402020-07-02 Simon Marchi <simon.marchi@efficios.com>
6841
6842 * macroexp.h (macro_lookup_ftype): Remove.
6843 (macro_expand, macro_expand_once, macro_expand_next): Remove
6844 lookup function parameters, add scope parameter.
6845 * macroexp.c (scan, substitute_args, expand, maybe_expand,
6846 macro_expand, macro_expand_once, macro_expand_next): Likewise.
6847 * macroscope.h (standard_macro_lookup): Change parameter type
6848 to macro_scope.
6849 * macroscope.c (standard_macro_lookup): Likewise.
6850 * c-exp.y (lex_one_token): Update.
6851 * macrocmd.c (macro_expand_command): Likewise.
6852 (macro_expand_once_command): Likewise.
6853
b1a35af2
SM
68542020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6855
6856 * inf-loop.c (inferior_event_handler): Remove client_data param.
6857 * inf-loop.h (inferior_event_handler): Likewise.
6858 * infcmd.c (step_1): Adjust.
6859 * infrun.c (proceed): Adjust.
6860 (fetch_inferior_event): Remove client_data param.
6861 (infrun_async_inferior_event_handler): Adjust.
6862 * infrun.h (fetch_inferior_event): Remove `void *` param.
6863 * linux-nat.c (handle_target_event): Adjust.
6864 * record-btrace.c (record_btrace_handle_async_inferior_event):
6865 Adjust.
6866 * record-full.c (record_full_async_inferior_event_handler):
6867 Adjust.
6868 * remote.c (remote_async_inferior_event_handler): Adjust.
6869
1cdf9e33
TT
68702020-07-01 Tom Tromey <tom@tromey.com>
6871
6872 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
6873 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
6874
32c1e210
TT
68752020-07-01 Tom Tromey <tom@tromey.com>
6876
6877 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
6878 tui_gen_win_info.
6879 (tui_win_info::make_window): Merge with
6880 tui_gen_win_info::make_window.
6881 (tui_win_info::make_visible): Move from tui_gen_win_info.
6882 * tui/tui-win.c (tui_win_info::max_width): Move from
6883 tui_gen_win_info.
6884 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
6885 type.
6886 <window_factory>: Likewise.
6887 * tui/tui-layout.c (tui_win_info::resize): Move from
6888 tui_gen_win_info.
6889 (make_standard_window): Change return type.
6890 (get_locator_window, tui_get_window_by_name): Likewise.
6891 (tui_layout_window::apply): Remove a cast.
6892 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
6893 (struct tui_win_info): Merge with tui_gen_win_info.
6894 (struct tui_gen_win_info): Remove.
6895
a30cb6da
TT
68962020-07-01 Tom Tromey <tom@tromey.com>
6897
6898 * tui/tui-stack.h (struct tui_locator_window): Derive from
6899 tui_win_info.
6900 <do_scroll_horizontal, do_scroll_vertical>: New methods.
6901 <can_box>: New method.
6902
1eb2161f
TT
69032020-07-01 Tom Tromey <tom@tromey.com>
6904
6905 * tui/tui-stack.h (struct tui_locator_window): Remove body.
6906
7134f2eb
TT
69072020-07-01 Tom Tromey <tom@tromey.com>
6908
6909 * tui/tui-regs.c (tui_data_window::display_registers_from)
6910 (tui_data_window::display_registers_from)
6911 (tui_data_window::first_data_item_displayed)
6912 (tui_data_window::delete_data_content_windows): Update.
6913 (tui_data_window::refresh_window, tui_data_window::no_refresh):
6914 Remove.
6915 (tui_data_window::check_register_values): Update.
6916 (tui_data_item_window::rerender): Add parameters. Update.
6917 (tui_data_item_window::refresh_window): Remove.
6918 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
6919 virtual.
6920 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
6921 tui_gen_win_info.
6922 <refresh_window, max_height, min_height>: Remove.
6923 <rerender>: Add parameters.
6924 <x, y, visible>: New members.
6925 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
6926 <m_item_width>: New member.
6927
22b7b041
TT
69282020-07-01 Tom Tromey <tom@tromey.com>
6929
6930 * tui/tui-regs.c (tui_data_window::show_register_group)
6931 (tui_data_window::check_register_values): Update.
6932 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
6933 from item_no.
6934
c9753adb
TT
69352020-07-01 Tom Tromey <tom@tromey.com>
6936
6937 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
6938 useless "if".
6939
9ab26b4a
TT
69402020-07-01 Tom Tromey <tom@tromey.com>
6941
6942 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
6943 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
6944
e555083f
TT
69452020-07-01 Tom Tromey <tom@tromey.com>
6946
6947 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
6948 * tui/tui-winsource.h (enum tui_line_or_address_kind)
6949 (struct tui_line_or_address): Move from tui-data.h.
6950 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
6951 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
6952 (tui_cmd_window, tui_source_window_base, tui_source_window)
6953 (tui_disasm_window): Don't declare.
6954 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
6955 to tui-winsource.h.
6956 (SINGLE_KEY): Move to tui-stack.c.
6957
7a02bab7
TT
69582020-07-01 Tom Tromey <tom@tromey.com>
6959
6960 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
6961 std::string.
6962 * tui/tui-regs.c (class tab_expansion_file): New.
6963 (tab_expansion_file::write): New method.
6964 (tui_register_format): Change return type. Use
6965 tab_expansion_file.
6966 (tui_get_register, tui_data_window::display_registers_from)
6967 (tui_data_item_window::rerender): Update.
6968 * tui/tui-io.h (tui_expand_tabs): Don't declare.
6969 * tui/tui-io.c (tui_expand_tabs): Remove.
6970
ea68593b
TT
69712020-07-01 Tom Tromey <tom@tromey.com>
6972
6973 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
6974
a8caed5d
FS
69752020-07-01 Fangrui Song <maskray@google.com>
6976
6977 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
6978
9cdf9820
AKS
69792020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6980
6981 * dwarf2/read.c (set_die_type): Removed conditions to restrict
6982 forms for DW_AT_associated and DW_AT_allocated attributes,
6983 which is already checked in function attr_to_dynamic_prop.
6984
a1520ad8
TT
69852020-06-30 Tom Tromey <tromey@adacore.com>
6986
6987 * dwarf2/read.c (quirk_rust_enum): Correctly call
6988 alloc_rust_variant for default-less enum.
6989
5ac58899
TT
69902020-06-30 Tom Tromey <tromey@adacore.com>
6991
6992 PR build/26183:
6993 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
6994 gdb::to_string.
6995
19b187a9
SM
69962020-06-29 Simon Marchi <simon.marchi@efficios.com>
6997
6998 * gdbarch.sh (displaced_step_copy_insn): Update doc.
6999 * gdbarch.h: Re-generate.
7000
cd4c4c07
TT
70012020-06-28 Tom Tromey <tom@tromey.com>
7002
7003 * command.h (cmd_types): Remove.
7004 (cmd_type): Don't declare.
7005 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
7006 typedef.
7007 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
7008 * cli/cli-decode.c (cmd_type): Remove.
7009
05779d57
PA
70102020-06-27 Pedro Alves <palves@redhat.com>
7011
7012 * fork-child.c (prefork_hook): Adjust.
7013 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
7014 Delete.
7015 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
7016 * inferior.c (inferior::set_tty, inferior::tty): New methods.
7017 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
7018 Remove declarations.
7019 (struct inferior) <set_tty, tty>: New methods.
7020 (struct inferior) <terminal>: Rename to ...
7021 (struct inferior) <m_terminal>: ... this and make private.
7022 * main.c (captured_main_1): Adjust.
7023 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
7024 (mi_cmd_inferior_tty_show): Adjust.
7025 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
7026 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
7027
1776e3e5
NA
70282020-06-26 Nick Alcock <nick.alcock@oracle.com>
7029
7030 * configure.ac: Add --enable-libctf: handle --disable-static
7031 properly.
7032 * acinclude.m4: sinclude ../config/enable.m4.
7033 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
7034 (LIBCTF): Substitute in.
7035 (CTF_DEPS): New, likewise.
7036 (CLIBS): libctf needs symbols from libbfd: move earlier.
7037 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
7038 flags.
7039 * ctfread.c: Surround in ENABLE_LIBCTF.
7040 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
7041 * configure: Regenerate.
7042 * config.in: Likewise.
7043
58373b80
SM
70442020-06-25 Simon Marchi <simon.marchi@efficios.com>
7045
7046 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
7047
277474ee
SM
70482020-06-25 Simon Marchi <simon.marchi@efficios.com>
7049
7050 * inferior.h (struct inferior) <terminal>: Change type to
7051 gdb::unique_xmalloc_ptr<char>.
7052 * inferior.c (inferior::~inferior): Don't free inf->terminal.
7053 * infcmd.c (set_inferior_io_terminal): Don't free terminal
7054 field, adjust to unique pointer.
7055 (get_inferior_io_terminal): Adjust to unique pointer.
7056
6d74da72
AB
70572020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7058
7059 * riscv-tdep.c (riscv_print_registers_info): Loop over all
7060 registers, not just the known core set of registers.
7061
2e52d038
AB
70622020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7063
7064 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
7065 fflags, frm, and fcsr registers.
7066 (riscv_register_reggroup_p): Remove unknown CSRs from save and
7067 restore groups.
7068 (riscv_tdesc_unknown_reg): New function.
7069 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
7070 tdesc_use_registers.
7071 * riscv-tdep.h (struct gdbarch_tdep): Add
7072 unknown_csrs_first_regnum, unknown_csrs_count,
7073 duplicate_fflags_regnum, duplicate_frm_regnum, and
7074 duplicate_fcsr_regnum fields.
7075
be64fd07
AB
70762020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7077
7078 * target-descriptions.c (tdesc_use_registers): Add new parameter a
7079 callback, use the callback (when not null) to help number unknown
7080 registers.
7081 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
7082 (tdesc_use_registers): Add extra parameter to declaration.
7083
3b9fce96
AB
70842020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7085
7086 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
7087 in the file.
7088 (class riscv_pending_register_alias): Likewise.
7089 (riscv_register_feature::register_info): Change 'required_p' field
7090 to 'required', and change its type. Add 'check' member function.
7091 (riscv_register_feature::register_info::check): Define new member
7092 function.
7093 (riscv_xreg_feature): Change initialisation of 'required' field.
7094 (riscv_freg_feature): Likewise.
7095 (riscv_virtual_feature): Likewise.
7096 (riscv_csr_feature): Likewise.
7097 (riscv_check_tdesc_feature): Take extra parameter, the csr
7098 tdesc_feature, rewrite the function to use the new
7099 riscv_register_feature::register_info::check function.
7100 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
7101
865bad26
AB
71022020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7103
7104 * features/Makefile: Remove all references to the deleted files
7105 below.
7106 * features/riscv/32bit-csr.c: Deleted.
7107 * features/riscv/32bit-csr.xml: Deleted.
7108 * features/riscv/64bit-csr.c: Deleted.
7109 * features/riscv/64bit-csr.xml: Deleted.
7110 * features/riscv/rebuild-csr-xml.sh: Deleted.
7111
ed69cbc8
AB
71122020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7113
7114 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
7115 whitespace error for declaration of names member variable.
7116 (struct riscv_register_feature): Add new prefer_first_name member
7117 variable, and fix whitespace error in declaration of registers.
7118 (riscv_xreg_feature): Initialize prefer_first_name field.
7119 (riscv_freg_feature): Likewise.
7120 (riscv_virtual_feature): Likewise.
7121 (riscv_csr_feature): Likewise.
7122 (riscv_register_name): Expand on comments. Remove register name
7123 modifications for CSR and virtual registers.
7124
4445e8f5
AB
71252020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7126
7127 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
7128 errors.
7129
767a879e
AB
71302020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7131
7132 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
7133 riscv-opc.h.
7134 (class riscv_pending_register_alias): New class.
7135 (riscv_check_tdesc_feature): Take vector of pending aliases and
7136 populate it as appropriate.
7137 (riscv_setup_register_aliases): Delete.
7138 (riscv_gdbarch_init): Create vector of pending aliases and pass it
7139 to riscv_check_tdesc_feature in all cases. Use the vector to
7140 create the register aliases.
7141
bb6e55f3
RO
71422020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7143
7144 * sol2-tdep.c (sol2_static_transform_name): Remove.
7145 (sol2_init_abi): Don't register it.
7146 * gdbarch.sh (static_transform_name): Remove.
7147 * gdbarch.c, gdbarch.h: Regenerate.
7148
7149 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
7150 gdbarch_static_transform_name.
7151 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
7152 * stabsread.c (define_symbol) <'X'>: Remove.
7153 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
7154 handling.
7155 <'V'>: Likewise.
7156 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
7157 <'S'>: Remove call to gdbarch_static_transform_name.
7158
c6d36836
RO
71592020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7160
7161 * procfs.c (procfs_pre_trace): New function.
7162 (procfs_target::create_inferior): Pass it to fork_inferior.
7163
a7e6196b
RO
71642020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7165
7166 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
7167 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
7168 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
7169 sol2-tdep.o, sparc-sol2-tdep.o.
7170 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
7171 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
7172 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
7173 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
7174
d412e696
RO
71752020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7176
7177 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
7178 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
7179 Call sol2_init_abi.
7180 Remove calls to set_gdbarch_skip_solib_resolver,
7181 set_gdbarch_core_pid_to_str.
7182 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
7183 (i386_sol2_static_transform_name): Remove.
7184 (i386_sol2_init_abi): Call sol2_init_abi.
7185 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7186 set_gdbarch_static_transform_name,
7187 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7188 Use sol2_sigtramp_p.
7189 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
7190 (sol2_sigtramp_p): New function.
7191 (sol2_static_transform_name): New function.
7192 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
7193 (sol2_init_abi): New function.
7194 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
7195 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
7196 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
7197 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
7198 (sparc_sol2_static_transform_name): Remove.
7199 (sparc32_sol2_init_abi): Call sol2_init_abi.
7200 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7201 set_gdbarch_static_transform_name,
7202 set_gdbarch_skip_solib_resolver,
7203 set_gdbarch_core_pid_to_str.
7204 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
7205 (sparc_sol2_static_transform_name): Remove
7206 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
7207 call sol2_sigtramp_p.
7208 (sparc64_sol2_init_abi): Call sol2_init_abi.
7209 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7210 set_gdbarch_static_transform_name,
7211 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7212
a8654e7d
PW
72132020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7214
7215 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
7216 * exec.c (validate_exec_file): If from_tty, set both
7217 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
7218 * symfile.c (symbol_file_add_with_addrs): if always_confirm
7219 and from_tty, unconditionally ask a confirmation.
7220
caa7fd04
AB
72212020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7222
7223 * target-descriptions.c (tdesc_architecture_name): Protect against
7224 NULL pointer dereference.
7225 (maint_print_xml_tdesc_cmd): New function.
7226 (_initialize_target_descriptions): Register new 'maint print
7227 xml-tdesc' command and give it the filename completer.
7228 * NEWS: Mention new 'maint print xml-tdesc' command.
7229
fbf42f4e
AB
72302020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7231
7232 * target-descriptions.c (class tdesc_compatible_info): New class.
7233 (struct target_desc): Change type of compatible vector.
7234 (tdesc_compatible_p): Update for change in type of
7235 target_desc::compatible.
7236 (tdesc_compatible_info_list): New function.
7237 (tdesc_compatible_info_arch_name): New function.
7238 (tdesc_add_compatible): Update for change in type of
7239 target_desc::compatible.
7240 (print_c_tdesc::visit_pre): Likewise.
7241
20821f4e
AB
72422020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7243
7244 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
7245 whitespace to underscore.
7246 (maint_print_c_tdesc_cmd): Use fake filename for target
7247 descriptions that came from the target.
7248 (_initialize_target_descriptions): Add filename command completion
7249 for 'maint print c-tdesc'.
7250
1fb5ee62
SM
72512020-06-23 Simon Marchi <simon.marchi@efficios.com>
7252
7253 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
7254 lines.
7255
fc3ecb3e
SM
72562020-06-23 Simon Marchi <simon.marchi@efficios.com>
7257
7258 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
7259 lines.
7260 (dwarf2_find_location_expression): Likewise.
7261 (call_site_parameter_matches): Likewise.
7262 (dwarf2_compile_expr_to_ax): Likewise.
7263 (disassemble_dwarf_expression): Likewise.
7264 (loclist_describe_location): Likewise.
7265
236ef034
PA
72662020-06-23 Pedro Alves <palves@redhat.com>
7267
7268 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
7269 progspace-and-thread.h. Include scoped-mock-context.h instead.
7270 (register_to_value_test): Use scoped_mock_context.
7271 * regcache.c: Include "scoped-mock-context.h".
7272 (cooked_read_test): Don't error out if a target is already pushed.
7273 Use scoped_mock_context. Adjust.
7274 * scoped-mock-context.h: New file.
7275
39e7ecca
AB
72762020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7277
7278 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
7279 initializer.
7280 (ada_language::is_string_type_p): New member function.
7281 * c-lang.c (c_language_data): Delete la_is_string_type_p
7282 initializer.
7283 (cplus_language_data): Likewise.
7284 (asm_language_data): Likewise.
7285 (minimal_language_data): Likewise.
7286 * d-lang.c (d_language_data): Likewise.
7287 * f-lang.c (f_is_string_type_p): Delete function, implementation
7288 moved to f_language::is_string_type_p.
7289 (f_language_data): Delete la_is_string_type_p initializer.
7290 (f_language::is_string_type_p): New member function,
7291 implementation from f_is_string_type_p.
7292 * go-lang.c (go_is_string_type_p): Delete function, implementation
7293 moved to go_language::is_string_type_p.
7294 (go_language_data): Delete la_is_string_type_p initializer.
7295 (go_language::is_string_type_p): New member function,
7296 implementation from go_is_string_type_p.
7297 * language.c (language_defn::is_string_type_p): Define new member
7298 function.
7299 (default_is_string_type_p): Make static, add comment copied from
7300 header file.
7301 (unknown_language_data): Delete la_is_string_type_p initializer.
7302 (unknown_language::is_string_type_p): New member function.
7303 (auto_language_data): Delete la_is_string_type_p initializer.
7304 (auto_language::is_string_type_p): New member function.
7305 * language.h (language_data): Delete la_is_string_type_p field.
7306 (language_defn::is_string_type_p): Declare new function.
7307 (default_is_string_type_p): Delete desclaration, move comment to
7308 definition.
7309 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
7310 moved to m2_language::is_string_type_p.
7311 (m2_language_data): Delete la_is_string_type_p initializer.
7312 (m2_language::is_string_type_p): New member function,
7313 implementation from m2_is_string_type_p.
7314 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
7315 initializer.
7316 * opencl-lang.c (opencl_language_data): Likewise.
7317 * p-lang.c (pascal_is_string_type_p): Delete function,
7318 implementation moved to pascal_language::is_string_type_p.
7319 (pascal_language_data): Delete la_is_string_type_p initializer.
7320 (pascal_language::is_string_type_p): New member function,
7321 implementation from pascal_is_string_type_p.
7322 * rust-lang.c (rust_is_string_type_p): Delete function,
7323 implementation moved to rust_language::is_string_type_p.
7324 (rust_language_data): Delete la_is_string_type_p initializer.
7325 (rust_language::is_string_type_p): New member function,
7326 implementation from rust_is_string_type_p.
7327 * valprint.c (val_print_scalar_or_string_type_p): Update call to
7328 is_string_type_p.
7329
4ffc13fb
AB
73302020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7331
7332 * ada-lang.c (ada_language_data): Delete la_print_typedef
7333 initializer.
7334 (ada_language::print_typedef): New member function.
7335 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
7336 (cplus_language_data): Likewise.
7337 (asm_language_data): Likewise.
7338 (minimal_language_data): Likewise.
7339 * d-lang.c (d_language_data): Likewise.
7340 * f-lang.c (f_language_data): Likewise.
7341 (f_language::print_typedef): New member function.
7342 * go-lang.c (go_language_data): Delete la_print_typedef
7343 initializer.
7344 * language.c (language_defn::print_typedef): Define member
7345 function.
7346 (unknown_language_data): Delete la_print_typedef initializer.
7347 (unknown_language::print_typedef): New member function.
7348 (auto_language_data): Delete la_print_typedef initializer.
7349 (auto_language::print_typedef): New member function.
7350 * language.h (language_data): Delete la_print_typedef field.
7351 (language_defn::print_typedef): Declare new member function.
7352 (LA_PRINT_TYPEDEF): Update call to print_typedef.
7353 (default_print_typedef): Delete declaration.
7354 * m2-lang.c (m2_language_data): Delete la_print_typedef
7355 initializer.
7356 (m2_language::print_typedef): New member function.
7357 * objc-lang.c (objc_language_data): Delete la_print_typedef
7358 initializer.
7359 * opencl-lang.c (opencl_language_data): Likewise.
7360 * p-lang.c (pascal_language_data): Likewise.
7361 (pascal_language::print_typedef): New member function.
7362 * rust-lang.c (rust_print_typedef): Delete function,
7363 implementation moved to rust_language::print_typedef.
7364 (rust_language): Delete la_print_typedef initializer.
7365 (rust_language::print_typedef): New member function,
7366 implementation from rust_print_typedef.
7367 * typeprint.c (default_print_typedef): Delete.
7368
d711ee67
AB
73692020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7370
7371 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
7372 (ada_language::printstr): New member function.
7373 * c-lang.c (c_language_data): Delete la_printstr initializer.
7374 (cplus_language_data): Likewise.
7375 (asm_language_data): Likewise.
7376 (minimal_language_data): Likewise.
7377 * d-lang.c (d_language_data): Likewise.
7378 * f-lang.c (f_printstr): Rename to f_language::printstr.
7379 (f_language_data): Delete la_printstr initializer.
7380 (f_language::printstr): New member function, implementation from
7381 f_printstr.
7382 * go-lang.c (go_language_data): Delete la_printstr initializer.
7383 * language.c (language_defn::printstr): Define new member
7384 function.
7385 (unk_lang_printstr): Delete.
7386 (unknown_language_data): Delete la_printstr initializer.
7387 (unknown_language::printstr): New member function.
7388 (auto_language_data): Delete la_printstr initializer.
7389 (auto_language::printstr): New member function.
7390 * language.h (language_data): Delete la_printstr field.
7391 (language_defn::printstr): Declare new member function.
7392 (LA_PRINT_STRING): Update call to printstr.
7393 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
7394 (m2_language_data): Delete la_printstr initializer.
7395 (m2_language::printstr): New member function, implementation from
7396 m2_printstr.
7397 * objc-lang.c (objc_language_data): Delete la_printstr
7398 initializer.
7399 * opencl-lang.c (opencl_language_data): Likewise.
7400 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
7401 (pascal_language_data): Delete la_printstr initializer.
7402 (pascal_language::printstr): New member function, implementation
7403 from pascal_printstr.
7404 * p-lang.h (pascal_printstr): Delete declaration.
7405 * rust-lang.c (rust_printstr): Update header comment.
7406 (rust_language_data): Delete la_printstr initializer.
7407 (rust_language::printstr): New member function.
7408
52b50f2c
AB
74092020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7410
7411 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
7412 (ada_language::printchar): New member function.
7413 * c-lang.c (c_language_data): Delete la_printchar initializer.
7414 (cplus_language_data): Likewise.
7415 (asm_language_data): Likewise.
7416 (minimal_language_data): Likewise.
7417 * d-lang.c (d_language_data): Likewise.
7418 * f-lang.c (f_printchar): Rename to f_language::printchar.
7419 (f_language_data): Delete la_printchar initializer.
7420 (f_language::printchar): New member function, implementation from
7421 f_printchar.
7422 * go-lang.c (go_language_data): Delete la_printchar initializer.
7423 * language.c (unk_lang_printchar): Delete.
7424 (language_defn::printchar): Define new member function.
7425 (unknown_language_data): Delete la_printchar initializer.
7426 (unknown_language::printchar): New member function.
7427 (auto_language_data): Delete la_printchar initializer.
7428 (auto_language::printchar): New member function.
7429 * language.h (language_data): Delete la_printchar field.
7430 (language_defn::printchar): Declare new member function.
7431 (LA_PRINT_CHAR): Update call to printchar.
7432 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
7433 (m2_language::printchar): New member function.
7434 * objc-lang.c (objc_language_data): Delete la_printchar
7435 initializer.
7436 * opencl-lang.c (opencl_language_data): Likewise.
7437 * p-lang.c (pascal_language_data): Delete la_printchar
7438 initializer.
7439 (pascal_language::printchar): New member function.
7440 * rust-lang.c (rust_printchar): Rename to
7441 rust_language::printchar.
7442 (rust_language_data): Delete la_printchar initializer.
7443 (rust_language::printchar): New member function, implementation
7444 from rust_printchar.
7445
ec8cec5b
AB
74462020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7447
7448 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
7449 (ada_language_data): Delete la_emitchar initializer.
7450 (ada_language::emitchar): New member function, implementation from
7451 emit_char.
7452 * c-lang.c (c_language_data): Delete la_emitchar initializer.
7453 (cplus_language_data): Likewise.
7454 (asm_language_data): Likewise.
7455 (minimal_language_data): Likewise.
7456 * d-lang.c (d_language_data): Likewise.
7457 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
7458 (f_language_data): Delete la_emitchar initializer.
7459 (f_language::emitchar): New member function, implementation from
7460 f_emit_char.
7461 * go-lang.c (go_language_data): Delete la_emitchar initializer.
7462 * language.c (unk_lang_emit_char): Delete.
7463 (language_defn::emitchar): New member function definition.
7464 (unknown_language_data): Delete la_emitchar initializer.
7465 (unknown_language::emitchar): New member function.
7466 (auto_language_data): Delete la_emitchar initializer.
7467 (auto_language::emitchar): New member function.
7468 * language.h (language_data): Delete la_emitchar field.
7469 (language_defn::emitchar): New member field declaration.
7470 (LA_EMIT_CHAR): Update call to emitchar.
7471 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
7472 (m2_language_data): Delete la_emitchar initializer.
7473 (m2_language::emitchar): New member function, implementation from
7474 m2_emit_char.
7475 * objc-lang.c (objc_language_data): Delete la_emitchar
7476 initializer.
7477 * opencl-lang.c (opencl_language_data): Likewise.
7478 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
7479 (pascal_language_data): Delete la_emitchar initializer.
7480 (pascal_language::emitchar): New member function, implementation
7481 from pascal_emit_char.
7482 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
7483 (rust_language_data): Delete la_emitchar initializer.
7484 (rust_language::emitchar): New member function, implementation
7485 from rust_emitchar.
7486
1bf9c363
AB
74872020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7488
7489 * ada-lang.c (resolve): Rename to ada_language::post_parser.
7490 (ada_language_data): Delete la_post_parser initializer.
7491 (ada_language::post_parser): New member function.
7492 * c-lang.c (c_language_data): Delete la_post_parser initializer.
7493 (cplus_language_data): Likewise.
7494 (asm_language_data): Likewise.
7495 (minimal_language_data): Likewise.
7496 * d-lang.c (d_language_data): Likewise.
7497 * f-lang.c (f_language_data): Likewise.
7498 * go-lang.c (go_language_data): Likewise.
7499 * language.c (unknown_language_data): Likewise.
7500 (auto_language_data): Likewise.
7501 * language.h (language_data): Delete la_post_parser field.
7502 (language_defn::post_parser): New member function.
7503 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
7504 * objc-lang.c (objc_language_data): Likewise.
7505 * opencl-lang.c (opencl_language_data): Likewise.
7506 * p-lang.c (pascal_language_data): Likewise.
7507 * parse.c (parse_exp_in_context): Update call to post_parser.
7508 (null_post_parser): Delete definition.
7509 * parser-defs.h (null_post_parser): Delete declaration.
7510 * rust-lang.c (rust_language_data): Delete la_post_parser
7511 initializer.
7512
87afa652
AB
75132020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7514
7515 * ada-lang.c (parse): Rename to ada_language::parser.
7516 (ada_language_data): Delete la_parser initializer.
7517 (ada_language::parser): New member function, implementation from
7518 parse.
7519 * c-lang.c (c_language_data): Delete la_parser initializer.
7520 (cplus_language_data): Likewise.
7521 (asm_language_data): Likewise.
7522 (minimal_language_data): Likewise.
7523 * d-lang.c (d_language_data): Likewise.
7524 (d_language::parser): New member function.
7525 * f-lang.c (f_language_data): Delete la_parser initializer.
7526 (f_language::parser): New member function.
7527 * go-lang.c (go_language_data): Delete la_parser initializer.
7528 (go_language::parser): New member function.
7529 * language.c (unk_lang_parser): Delete.
7530 (language_defn::parser): Define new member function.
7531 (unknown_language_data): Delete la_parser initializer.
7532 (unknown_language::parser): New member function.
7533 (auto_language_data): Delete la_parser initializer.
7534 (auto_language::parser): New member function.
7535 * language.h (language_data): Delete la_parser field.
7536 (language_defn::parser): Declare new member function.
7537 * m2-lang.c (m2_language_data): Delete la_parser initializer.
7538 (m2_language::parser): New member function.
7539 * objc-lang.c (objc_language_data): Delete la_parser initializer.
7540 * opencl-lang.c (opencl_language_data): Likewise.
7541 * p-lang.c (pascal_language_data): Likewise.
7542 (pascal_language::parser): New member function.
7543 * parse.c (parse_exp_in_context): Update call to parser.
7544 * rust-lang.c (rust_language_data): Delete la_parser initializer.
7545 (rust_language::parser): New member function.
7546
37825800
AB
75472020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7548
7549 * top.c (print_gdb_configuration): Print --with-python-libdir
7550 configuration value.
7551
5b860c93
PW
75522020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7553
7554 * NEWS: Mention change to the alias command.
7555
cf00cd6f
PW
75562020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7557
7558 * cli/cli-cmds.c (lookup_cmd_for_default_args)
7559 (alias_command_completer)
7560 (make_alias_options_def_group): New functions.
7561 (alias_opts, alias_option_defs): New struct and array.
7562 (alias_usage_error): Update usage.
7563 (alias_command): Handles optional DEFAULT-ARGS... arguments.
7564 Use option framework.
7565 (_initialize_cli_cmds): Update alias command help.
7566 Update aliases command help.
7567 (show_user):
7568 Add NULL for new default_args lookup_cmd argument.
7569 (valid_command_p): Rename to validate_aliased_command.
7570 Add NULL for new default_args lookup_cmd argument. Verify that the
7571 aliased_command has no default args.
7572 * cli/cli-decode.c (help_cmd): Show aliases definitions.
7573 (lookup_cmd_1, lookup_cmd): New argument default_args.
7574 (add_alias_cmd):
7575 Add NULL for new default_args lookup_cmd argument.
7576 (print_help_for_command): Show default args under the layout
7577 alias some_alias = some_aliased_cmd some_alias_default_arg.
7578 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
7579 xfree default_args in destructor.
7580 * cli/cli-script.c (process_next_line, do_define_command):
7581 Add NULL for new default_args lookup_cmd argument.
7582 * command.h: Declare new default_args argument in lookup_cmd
7583 and lookup_cmd_1.
7584 * completer.c (complete_line_internal_1):
7585 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7586 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
7587 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
7588 Likewise.
7589 * infcmd.c (_initialize_infcmd): Likewise.
7590 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
7591 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
7592 * python/py-param.c (add_setshow_generic): Likewise.
7593 * remote.c (_initialize_remote): Likewise.
7594 * top.c (execute_command): Prepend default_args if command has some.
7595 (set_verbose):
7596 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7597 * tracepoint.c (validate_actionline, encode_actions_1):
7598 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7599
bd920864
TBA
76002020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7601
7602 * jit.c (jit_read_descriptor): Use bool as the return type.
7603 (jit_breakpoint_re_set_internal): Use bool as the return type.
7604 Invert the return value logic; return true if the jit breakpoint
7605 has been successfully initialized.
7606 (jit_inferior_init): Update the call to
7607 jit_breakpoint_re_set_internal.
7608
f8098322
PA
76092020-06-22 Pedro Alves <palves@redhat.com>
7610
7611 PR gdb/25939
7612 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
7613 Use the current inferior instead. Don't return
7614 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
7615 wait again.
7616 * sol-thread.c (sol_thread_target::wait): Don't reference
7617 inferior_ptid.
7618 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
7619 (sol_update_thread_list_callback): Use the current inferior's pid
7620 instead of inferior_ptid.
7621
196535a6
RO
76222020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7623
7624 * procfs.c: Cleanup many comments.
7625
7626 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
7627 (AFTER_WATCHFLAG): Replace by value.
7628
7629 (MAIN_PROC_NAME_FORMAT): Inline ...
7630 (create_procinfo): ... here.
7631
7632 (procfs_debug_inferior): Remove SYS_exec handling.
7633 (syscall_is_exec): Likewise.
7634 (procfs_set_exec_trap): Likewise.
7635
7636 (syscall_is_lwp_exit): Inline in callers.
7637 (syscall_is_exit): Likewise.
7638 (syscall_is_exec): Likewise.
7639 (syscall_is_lwp_create): Likewise.
7640
7641 (invalidate_cache): Remove #if 0 code.
7642
7643 (make_signal_thread_runnable): Remove.
7644 (procfs_target::resume): Remove #if 0 code.
7645
cf6f3e86
RO
76462020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7647
7648 PR gdb/25939
7649 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
7650 call ...
7651 (procfs_target::create_inferior): ... here.
7652
48e9cc84
PW
76532020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7654
7655 * exec.c (validate_exec_file): Ensure the build-id is up to
7656 date by calling reopen_exec_file (that checks file timestamp
7657 to decide to re-read the file).
7658
3922b302
PA
76592020-06-18 Pedro Alves <palves@redhat.com>
7660
7661 PR gdb/25412
7662 * gdbthread.h (delete_thread, delete_thread_silent)
7663 (find_thread_ptid): Update comments.
7664 * thread.c (current_thread_): New global.
7665 (is_current_thread): Move higher, and reimplement.
7666 (inferior_thread): Reimplement.
7667 (set_thread_exited): Use bool. Add assertions.
7668 (add_thread_silent): Simplify thread-reuse handling by always
7669 calling delete_thread.
7670 (delete_thread): Remove intro comment.
7671 (find_thread_ptid): Skip exited threads.
7672 (switch_to_thread_no_regs): Write to current_thread_.
7673 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
7674 INFERIOR_PTID. Clear current_thread_.
7675
6dbdab44
PA
76762020-06-18 Pedro Alves <palves@redhat.com>
7677
7678 * aix-thread.c (pd_update): Use switch_to_thread.
7679
2da4b788
PA
76802020-06-18 Pedro Alves <palves@redhat.com>
7681
7682 * ravenscar-thread.c (ravenscar_thread_target): Update.
7683 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
7684 (ravenscar_thread_target::add_active_thread): ... this. Don't
7685 set m_base_ptid here. Update to avoid referencing inferior_ptid.
7686 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
7687
50838d1b
PA
76882020-06-18 Pedro Alves <palves@redhat.com>
7689
7690 * nat/windows-nat.c (current_windows_thread): Remove.
7691 * nat/windows-nat.h (current_windows_thread): Remove.
7692 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
7693 Adjust.
7694 (display_selectors): Adjust to fetch the current
7695 windows_thread_info based on inferior_ptid.
7696 (fake_create_process): No longer write to current_windows_thread.
7697 (windows_nat_target::get_windows_debug_event):
7698 Don't set inferior_ptid or current_windows_thread.
7699 (windows_nat_target::wait): Adjust to not rely on
7700 current_windows_thread.
7701 (do_initial_windows_stuff): Now a method of windows_nat_target.
7702 Switch to the last_ptid thread.
7703 (windows_nat_target::attach): Adjust.
7704 (windows_nat_target::detach): Use switch_to_no_thread instead of
7705 writing to inferior_ptid directly.
7706 (windows_nat_target::create_inferior): Adjust.
7707
31ce04e9
PA
77082020-06-18 Pedro Alves <palves@redhat.com>
7709
7710 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
7711
1ee1a363
PA
77122020-06-18 Pedro Alves <palves@redhat.com>
7713
7714 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
7715 after creating it, instead of writing to inferior_ptid. Don't
7716 write to inferior_ptid.
7717
6d350754
PA
77182020-06-18 Pedro Alves <palves@redhat.com>
7719
7720 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
7721
5d971d48
PA
77222020-06-18 Pedro Alves <palves@redhat.com>
7723
7724 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
7725 it, instead of writing to inferior_ptid.
7726
86e57d1b
PA
77272020-06-18 Pedro Alves <palves@redhat.com>
7728
7729 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
7730 to inferior_ptid.
7731
f2e1c129
PA
77322020-06-18 Pedro Alves <palves@redhat.com>
7733
7734 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
7735 instead of writing to inferior_ptid directly.
7736
60db1b85
PA
77372020-06-18 Pedro Alves <palves@redhat.com>
7738
7739 * corelow.c (core_target::close): Use switch_to_no_thread instead
7740 of writing to inferior_ptid directly.
7741 (add_to_thread_list, core_target_open): Use switch_to_thread
7742 instead of writing to inferior_ptid directly.
7743
fe7d6a8d
PA
77442020-06-18 Pedro Alves <palves@redhat.com>
7745
7746 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
7747 inferior_ptid.
7748 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
7749 inferior_ptid.
7750 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
7751 inferior_ptid directly.
7752 (darwin_nat_target::init_thread_list): Switch to thread, instead
7753 of writing to inferior_ptid.
7754 (darwin_nat_target::attach): Don't write to inferior_ptid.
7755 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
7756
975f8708
PA
77572020-06-18 Pedro Alves <palves@redhat.com>
7758
7759 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
7760 thread.
7761 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
7762 Instead use switch_to_thread.
7763 (gnu_nat_target::detach): Use switch_to_no_thread
7764 instead of writing to inferior_ptid directly. Used passed-in
7765 inferior instead of looking up the inferior by pid.
7766
1a204730
PA
77672020-06-18 Pedro Alves <palves@redhat.com>
7768
7769 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
7770 inferior_ptid.
7771
ebe84f23
PA
77722020-06-18 Pedro Alves <palves@redhat.com>
7773
7774 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
7775 inferior_ptid.
7776 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
7777 thread.
7778 (nto_procfs_target::detach): Avoid referencing
7779 inferior_ptid. Use switch_to_no_thread instead of writing to
7780 inferior_ptid directly.
7781 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
7782 instead of writing to inferior_ptid directly.
7783 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
7784 to thread.
7785
191f02e5
PA
77862020-06-18 Pedro Alves <palves@redhat.com>
7787
7788 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
7789 after creating it, instead of writing to inferior_ptid.
7790 (gdbsim_target_open): Use switch_to_no_thread instead of writing
7791 to inferior_ptid directly.
7792 (gdbsim_target::wait): Don't write to inferior_ptid.
7793
0ac55310
PA
77942020-06-18 Pedro Alves <palves@redhat.com>
7795
7796 * remote.c (remote_target::remote_notice_new_inferior): Use
7797 switch_to_thread instead of writing to inferior_ptid directly.
7798 (remote_target::add_current_inferior_and_thread): Use
7799 switch_to_no_thread instead of writing to inferior_ptid directly.
7800 (extended_remote_target::attach): Use switch_to_inferior_no_thread
7801 and switch_to_thread instead of using set_current_inferior or
7802 writing to inferior_ptid directly.
7803
5233f39b
PA
78042020-06-18 Pedro Alves <palves@redhat.com>
7805
7806 * tracectf.c (ctf_target_open): Switch to added thread instead of
7807 writing to inferior_ptid directly.
7808 (ctf_target::close): Use switch_to_no_thread instead of writing to
7809 inferior_ptid directly.
7810
087e161b
PA
78112020-06-18 Pedro Alves <palves@redhat.com>
7812
7813 * tracefile-tfile.c (tfile_target_open): Don't write to
7814 inferior_ptid directly, instead switch to added thread.
7815 (tfile_target::close): Use switch_to_no_thread instead of writing
7816 to inferior_ptid directly.
7817
7fb43e53
PA
78182020-06-18 Pedro Alves <palves@redhat.com>
7819
7820 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
7821 (procfs_target::detach): Use switch_to_no_thread
7822 instead of writing to inferior_ptid directly.
7823 (do_attach): Change return type to void. Switch to the added
7824 thread.
7825 (procfs_target::create_inferior): Switch to the added thread.
7826 (procfs_do_thread_registers): Don't write to inferior_ptid.
7827
18493a00
PA
78282020-06-18 Pedro Alves <palves@redhat.com>
7829
7830 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
7831 of writing to inferior_ptid.
7832 (scoped_restore_exited_inferior): Delete.
7833 (handle_vfork_child_exec_or_exit): Simplify using
7834 scoped_restore_current_pspace_and_thread. Use switch_to_thread
7835 instead of writing to inferior_ptid.
7836 (THREAD_STOPPED_BY): Delete.
7837 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
7838 (thread_stopped_by_hw_breakpoint): Delete.
7839 (save_waitstatus): Use
7840 scoped_restore_current_thread+switch_to_thread, and call
7841 target_stopped_by_watchpoint instead of
7842 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
7843 instead of thread_stopped_by_sw_breakpoint, and
7844 target_stopped_by_hw_breakpoint instead of
7845 thread_stopped_by_hw_breakpoint.
7846 (handle_inferior_event)
7847 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
7848 inferior_ptid directly, nor
7849 set_current_inferior/set_current_program_space. Use
7850 switch_to_thread / switch_to_inferior_no_thread instead.
7851
a0776b13
PA
78522020-06-18 Pedro Alves <palves@redhat.com>
7853
7854 * target.c (generic_mourn_inferior): Use switch_to_no_thread
7855 instead of writing to inferior_ptid.
7856
6155c136
PA
78572020-06-18 Pedro Alves <palves@redhat.com>
7858
7859 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
7860 added thread.
7861 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
7862 to the added thread.
7863 (inf_ptrace_target::detach_success): Use switch_to_no_thread
7864 instead of writing to inferior_ptid.
7865
c5316fc6
PA
78662020-06-18 Pedro Alves <palves@redhat.com>
7867
7868 * gdbarch-selftests.c: Include "progspace-and-thread.h".
7869 (register_to_value_test): Mock a program_space too. Heap-allocate
7870 the address space. Don't write to inferior_ptid. Use
7871 switch_to_thread instead.
7872
8df01799
PA
78732020-06-18 Pedro Alves <palves@redhat.com>
7874
7875 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
7876 Delete.
7877 (find_signalled_thread()): New, factored out from
7878 linux_make_corefile_notes and adjusted to handle exited threads.
7879 (linux_make_corefile_notes): Adjust to use the new
7880 find_signalled_thread.
7881
41792d68
PA
78822020-06-18 Pedro Alves <palves@redhat.com>
7883
7884 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
7885 of saving/restoring inferior_ptid.
7886
612f258a
TT
78872020-06-17 Tom Tromey <tom@tromey.com>
7888
7889 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
7890 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
7891 declare.
7892 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
7893
efb763a5
SM
78942020-06-15 Simon Marchi <simon.marchi@efficios.com>
7895
7896 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
7897 of partial symtabs.
7898
2951f6c0
SM
78992020-06-17 Simon Marchi <simon.marchi@efficios.com>
7900
7901 * regformats/reg-arm.dat: Remove.
7902 * regformats/reg-bfin.dat: Remove.
7903 * regformats/reg-cris.dat: Remove.
7904 * regformats/reg-crisv32.dat: Remove.
7905 * regformats/reg-m32r.dat: Remove.
7906 * regformats/reg-tilegx.dat: Remove.
7907 * regformats/reg-tilegx32.dat: Remove.
7908
7d458ea5
SM
79092020-06-17 Simon Marchi <simon.marchi@efficios.com>
7910
7911 * features/Makefile (WHICH): Remove arm files.
7912 * regformats/arm/arm-with-iwmmxt.dat: Remove.
7913 * regformats/arm/arm-with-neon.dat: Remove.
7914 * regformats/arm/arm-with-vfpv2.dat: Remove.
7915 * regformats/arm/arm-with-vfpv3.dat: Remove.
7916
3af96c0d
SM
79172020-06-17 Simon Marchi <simon.marchi@efficios.com>
7918
7919 * features/Makefile (XMLTOC): Remove rx.xml.
7920
b25e22fd
PA
79212020-06-17 Pedro Alves <palves@redhat.com>
7922
7923 * gdbthread.h (thread_control_state) <trap_expected> Update
7924 comments.
7925
a78a19b1
AB
79262020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7927
7928 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
7929 ada_language::lookup_symbol_nonlocal.
7930 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
7931 (ada_language::lookup_symbol_nonlocal): New member function,
7932 implementation from ada_lookup_symbol_nonlocal.
7933 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
7934 initializer.
7935 (cplus_language_data): Delete la_lookup_symbol_nonlocal
7936 initializer.
7937 (cplus_language::lookup_symbol_nonlocal): New member function.
7938 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
7939 (minimal_language_data) Likewise.
7940 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
7941 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
7942 initializer.
7943 (d_language::lookup_symbol_nonlocal): New member function.
7944 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
7945 initializer.
7946 (f_language::lookup_symbol_nonlocal): New member function.
7947 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
7948 initializer.
7949 * language.c (unknown_language_data): Likewise.
7950 (auto_language_data): Likewise.
7951 * language.h (language_data): Delete la_lookup_symbol_nonlocal
7952 field.
7953 (language_defn::lookup_symbol_nonlocal): New member function.
7954 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
7955 initializer.
7956 * objc-lang.c (objc_language_data): Likewise.
7957 * opencl-lang.c (opencl_language_data): Likewise.
7958 * p-lang.c (pascal_language_data): Likewise.
7959 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
7960 rust_language::lookup_symbol_nonlocal.
7961 (rust_language_data): Delete la_lookup_symbol_nonlocal
7962 initializer.
7963 (rust_language::lookup_symbol_nonlocal): New member function,
7964 implementation from rust_lookup_symbol_nonlocal.
7965 * symtab.c (lookup_symbol_aux): Update call to
7966 lookup_symbol_nonlocal.
7967 (basic_lookup_symbol_nonlocal): Rename to...
7968 (language_defn::lookup_symbol_nonlocal): ...this, and update
7969 header comment. Remove language_defn parameter, and replace with
7970 uses of `this'.
7971 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
7972
ebe2334e
AB
79732020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7974
7975 * ada-lang.c (ada_language_data): Delete la_value_print_inner
7976 initializer.
7977 (ada_language::value_print_inner): New member function.
7978 * c-lang.c (c_language_data): Delete la_value_print_inner
7979 initializer.
7980 (cplus_language_data): Likewise.
7981 (asm_language_data): Likewise.
7982 (minimal_language_data): Likewise.
7983 * d-lang.c (d_language_data): Likewise.
7984 (d_language::value_print_inner): New member function.
7985 * f-lang.c (f_language_data): Delete la_value_print_inner
7986 initializer.
7987 (f_language::value_print_inner): New member function.
7988 * f-lang.h (f_value_print_innner): Rename to...
7989 (f_value_print_inner): ...this (note spelling of 'inner').
7990 * f-valprint.c (f_value_print_innner): Rename to...
7991 (f_value_print_inner): ...this (note spelling of 'inner').
7992 * go-lang.c (go_language_data): Delete la_value_print_inner
7993 initializer.
7994 (go_language::value_print_inner): New member function.
7995 * language.c (language_defn::value_print_inner): Define new member
7996 function.
7997 (unk_lang_value_print_inner): Delete.
7998 (unknown_language_data): Delete la_value_print_inner initializer.
7999 (unknown_language::value_print_inner): New member function.
8000 (auto_language_data): Delete la_value_print_inner initializer.
8001 (auto_language::value_print_inner): New member function.
8002 * language.h (language_data): Delete la_value_print_inner field.
8003 (language_defn::value_print_inner): Delcare new member function.
8004 * m2-lang.c (m2_language_data): Delete la_value_print_inner
8005 initializer.
8006 (m2_language::value_print_inner): New member function.
8007 * objc-lang.c (objc_language_data): Delete la_value_print_inner
8008 initializer.
8009 * opencl-lang.c (opencl_language_data): Likewise.
8010 * p-lang.c (pascal_language_data): Likewise.
8011 (pascal_language::value_print_inner): New member function.
8012 * rust-lang.c (rust_language_data): Delete la_value_print_inner
8013 initializer.
8014 (rust_language::value_print_inner): New member function.
8015 * valprint.c (do_val_print): Update call to value_print_inner.
8016
a1d1fa3e
AB
80172020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8018
8019 * ada-lang.c (ada_language_data): Delete la_value_print
8020 initializer.
8021 (ada_language::value_print): New member function.
8022 * c-lang.c (c_language_data): Delete la_value_print initializer.
8023 (cplus_language_data): Likewise.
8024 (asm_language_data): Likewise.
8025 (minimal_language_data): Likewise.
8026 * d-lang.c (d_language_data): Likewise.
8027 * f-lang.c (f_language_data): Likewise.
8028 * go-lang.c (go_language_data): Likewise.
8029 * language.c (unk_lang_value_print): Delete.
8030 (language_defn::value_print): Define new member function.
8031 (unknown_language_data): Delete la_value_print initializer.
8032 (unknown_language::value_print): New member function.
8033 (auto_language_data): Delete la_value_print initializer.
8034 (auto_language::value_print): New member function.
8035 * language.h (language_data): Delete la_value_print field.
8036 (language_defn::value_print): Declare new member function.
8037 (LA_VALUE_PRINT): Update call to value_print.
8038 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
8039 * objc-lang.c (objc_language_data): Likewise.
8040 * opencl-lang.c (opencl_language_data): Likewise.
8041 * p-lang.c (pascal_language_data): Likewise.
8042 (pascal_language::value_print): New member function.
8043 * rust-lang.c (rust_language_data): Delete la_value_print
8044 initializer.
8045
f16a9f57
AB
80462020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8047
8048 * ada-lang.c (ada_watch_location_expression): Rename to
8049 ada_language::watch_location_expression.
8050 (ada_language_data): Delete la_watch_location_expression
8051 initializer.
8052 (ada_language::watch_location_expression): New member function,
8053 implementation from ada_watch_location_expression.
8054 * breakpoint.c (watch_command_1): Update call to
8055 watch_location_expression.
8056 * c-lang.c (c_watch_location_expression): Rename to
8057 language_defn::watch_location_expression.
8058 (c_language_data): Delete la_watch_location_expression
8059 initializer.
8060 (cplus_language_data): Likewise.
8061 (asm_language_data): Likewise.
8062 (minimal_language_data): Likewise.
8063 * c-lang.h (c_watch_location_expression): Delete declaration.
8064 * d-lang.c (d_language_data): Delete la_watch_location_expression
8065 initializer.
8066 * f-lang.c (f_language_data): Likewise.
8067 * go-lang.c (go_language_data): Likewise.
8068 * language.c (language_defn::watch_location_expression): Member
8069 function implementation from c_watch_location_expression.
8070 (unknown_language_data): Delete la_watch_location_expression
8071 initializer.
8072 (auto_language_data): Likewise.
8073 * language.h (language_data): Delete la_watch_location_expression
8074 field.
8075 (language_defn::watch_location_expression): Declare new member
8076 function.
8077 * m2-lang.c (m2_language_data): Delete
8078 la_watch_location_expression initializer.
8079 * objc-lang.c (objc_language_data): Likewise.
8080 * opencl-lang.c (opencl_language_data): Likewise.
8081 * p-lang.c (pascal_language_data): Likewise.
8082 * rust-lang.c (rust_watch_location_expression): Rename to
8083 rust_language::watch_location_expression.
8084 (rust_language_data): Delete la_watch_location_expression
8085 initializer.
8086 (rust_language::watch_location_expression): New member function,
8087 implementation from rust_watch_location_expression.
8088
7e56227d
AB
80892020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8090
8091 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
8092 ada_language::collect_symbol_completion_matches.
8093 (ada_language_data): Delete la_collect_symbol_completion_matches
8094 initializer.
8095 (ada_language::collect_symbol_completion_matches): New member
8096 function, implementation from
8097 ada_collect_symbol_completion_matches.
8098 * c-lang.c (c_language_data): Delete
8099 la_collect_symbol_completion_matches initializer.
8100 (cplus_language_data): Likewise.
8101 (asm_language_data): Likewise.
8102 (minimal_language_data): Likewise.
8103 * d-lang.c (d_language_data): Likewise.
8104 * f-lang.c (f_collect_symbol_completion_matches): Rename to
8105 f_language::collect_symbol_completion_matches.
8106 (f_language_data): Delete la_collect_symbol_completion_matches
8107 initializer.
8108 (f_language::collect_symbol_completion_matches) New member
8109 function, implementation from f_collect_symbol_completion_matches.
8110 * go-lang.c (go_language_data): Delete
8111 la_collect_symbol_completion_matches initializer.
8112 * language.c (unknown_language_data): Likewise.
8113 (auto_language_data): Likewise.
8114 * language.h (language_data): Delete
8115 la_collect_symbol_completion_matches field.
8116 (language_defn::collect_symbol_completion_matches): New member
8117 function.
8118 * m2-lang.c (m2_language_data): Delete
8119 la_collect_symbol_completion_matches initializer.
8120 * objc-lang.c (objc_language_data): Likewise.
8121 * opencl-lang.c (opencl_language_data): Likewise.
8122 * p-lang.c (pascal_language_data): Likewise.
8123 * rust-lang.c (rust_language_data): Likewise.
8124 * symtab.c (default_collect_symbol_completion_matches): Delete.
8125 (collect_symbol_completion_matches): Update call to
8126 collect_symbol_completion_matches.
8127 (collect_symbol_completion_matches_type): Likewise.
8128 * symtab.h (default_collect_symbol_completion_matches): Delete
8129 declaration.
8130
53fc67f8
AB
81312020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8132
8133 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
8134 (ada_language_data): Delete la_word_break_characters initializer.
8135 (ada_language::word_break_characters): New member function.
8136 * c-lang.c (c_language_data): Delete la_word_break_characters
8137 initializer.
8138 (cplus_language_data): Likewise.
8139 (asm_language_data): Likewise.
8140 (minimal_language_data): Likewise.
8141 * completer.c: Update global comment.
8142 (advance_to_expression_complete_word_point): Update call to
8143 word_break_characters.
8144 (complete_files_symbols): Likewise.
8145 (complete_line_internal_1): Likewise.
8146 (default_completer_handle_brkchars): Likewise.
8147 (skip_quoted_chars): Likewise.
8148 * d-lang.c (d_language_data): Delete la_word_break_characters
8149 initializer.
8150 * f-lang.c (f_word_break_characters): Delete.
8151 (f_language_data): Delete la_word_break_characters initializer.
8152 (f_language::word_break_characters): New member function.
8153 * go-lang.c (go_language_data): Delete la_word_break_characters
8154 initializer.
8155 * language.c (unknown_language_data): Likewise.
8156 (auto_language_data): Likewise.
8157 * language.h (default_word_break_characters): Move declaration to
8158 earlier in the file.
8159 (language_data): Delete la_word_break_characters field.
8160 (language_defn::word_break_characters): New member function.
8161 * m2-lang.c (m2_language_data): Delete la_word_break_characters
8162 initializer.
8163 * objc-lang.c (objc_language_data): Likewise.
8164 * opencl-lang.c (opencl_language_data): Likewise.
8165 * p-lang.c (pascal_language_data): Likewise.
8166 * rust-lang.c (rust_language_data): Likewise.
8167
c9debfb9
AB
81682020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8169
8170 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
8171 (ada_language_data): Delete la_get_symbol_name_matcher
8172 initializer.
8173 (language_defn::get_symbol_name_matcher_inner): New member
8174 function.
8175 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
8176 initializer.
8177 (cplus_language_data): Likewise.
8178 (cplus_language::get_symbol_name_matcher_inner): New member
8179 function.
8180 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
8181 (minimal_language_data): Likewise.
8182 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
8183 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
8184 initializer.
8185 * dictionary.c (iter_match_first_hashed): Update call to
8186 get_symbol_name_matcher.
8187 (iter_match_next_hashed): Likewise.
8188 (iter_match_next_linear): Likewise.
8189 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
8190 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
8191 initializer.
8192 (f_language::get_symbol_name_matcher_inner): New member function.
8193 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
8194 initializer.
8195 * language.c (default_symbol_name_matcher): Update header comment,
8196 make static.
8197 (language_defn::get_symbol_name_matcher): New definition.
8198 (language_defn::get_symbol_name_matcher_inner): Likewise.
8199 (get_symbol_name_matcher): Delete.
8200 (unknown_language_data): Delete la_get_symbol_name_matcher
8201 initializer.
8202 (auto_language_data): Likewise.
8203 * language.h (language_data): Delete la_get_symbol_name_matcher
8204 field.
8205 (language_defn::get_symbol_name_matcher): New member function.
8206 (language_defn::get_symbol_name_matcher_inner): Likewise.
8207 (default_symbol_name_matcher): Delete declaration.
8208 * linespec.c (find_methods): Update call to
8209 get_symbol_name_matcher.
8210 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
8211 initializer.
8212 * minsyms.c (lookup_minimal_symbol): Update call to
8213 get_symbol_name_matcher.
8214 (iterate_over_minimal_symbols): Likewise.
8215 * objc-lang.c (objc_language_data): Delete
8216 la_get_symbol_name_matcher initializer.
8217 * opencl-lang.c (opencl_language_data): Likewise.
8218 * p-lang.c (pascal_language_data): Likewise.
8219 * psymtab.c (psymbol_name_matches): Update call to
8220 get_symbol_name_matcher.
8221 * rust-lang.c (rust_language_data): Delete
8222 la_get_symbol_name_matcher initializer.
8223 * symtab.c (symbol_matches_search_name): Update call to
8224 get_symbol_name_matcher.
8225 (compare_symbol_name): Likewise.
8226
9a49ad8c
AB
82272020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8228
8229 * ada-lang.c (ada_language_data): Delete la_compute_program
8230 initializer.
8231 * c-lang.c (c_language_data): Likewise.
8232 (c_language::compute_program): New member function.
8233 (cplus_language_data): Delete la_compute_program initializer.
8234 (cplus_language::compute_program): New member function.
8235 (asm_language_data): Delete la_compute_program initializer.
8236 (minimal_language_data): Likewise.
8237 * c-lang.h (c_compute_program): Update comment.
8238 (cplus_compute_program): Likewise.
8239 * compile/compile-c-support.c (c_compute_program): Likewise.
8240 (cplus_compute_program): Likewise.
8241 * compile/compile.c (compile_to_object): Update call to
8242 la_compute_program.
8243 * d-lang.c (d_language_data): Delete la_compute_program
8244 initializer.
8245 * f-lang.c (f_language_data): Likewise.
8246 * go-lang.c (go_language_data): Likewise.
8247 * language.c (unknown_language_data): Likewise.
8248 (auto_language_data): Likewise.
8249 * language.h (language_data): Delete la_compute_program field.
8250 (language_defn::compute_program): New member function.
8251 * m2-lang.c (m2_language_data): Delete la_compute_program
8252 initializer.
8253 * objc-lang.c (objc_language_data): Likewise.
8254 * opencl-lang.c (opencl_language_data): Likewise.
8255 * p-lang.c (pascal_language_data): Likewise.
8256 * rust-lang.c (rust_language_data): Likewise.
8257
eff93b4d
AB
82582020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8259
8260 * ada-lang.c (ada_language_data) Delete
8261 la_class_name_from_physname initializer.
8262 * c-lang.c (c_language_data): Likewise.
8263 (cplus_language_data): Likewise.
8264 (cplus_language::class_name_from_physname): New member function.
8265 (asm_language_data): Delete la_class_name_from_physname
8266 initializer.
8267 (minimal_language_data): Likewise.
8268 * d-lang.c (d_language_data): Likewise.
8269 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
8270 method on language_defn class.
8271 (guess_full_die_structure_name): Likewise.
8272 * f-lang.c (f_language_data): Delete la_class_name_from_physname
8273 initializer.
8274 * go-lang.c (go_language_data): Likewise.
8275 * language.c (language_class_name_from_physname): Delete.
8276 (unk_lang_class_name): Delete.
8277 (unknown_language_data): Delete la_class_name_from_physname
8278 initializer.
8279 (auto_language_data): Likewise.
8280 * language.h (language_data): Delete la_class_name_from_physname
8281 field.
8282 (language_defn::class_name_from_physname): New function.
8283 (language_class_name_from_physname): Delete declaration.
8284 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
8285 initializer.
8286 * objc-lang.c (objc_language_data): Likewise.
8287 * opencl-lang.c (opencl_language_data): Likewise.
8288 * p-lang.c (pascal_language_data): Likewise.
8289 * rust-lang.c (rust_language_data): Likewise.
8290
de543742
TT
82912020-06-16 Tom Tromey <tom@tromey.com>
8292
8293 * tui/tui-data.h (STATUS_NAME): New macro.
8294 * tui/tui-layout.c (tui_remove_some_windows)
8295 (initialize_known_windows, tui_register_window)
8296 (tui_layout_split::remove_windows, initialize_layouts)
8297 (tui_new_layout_command): Don't use hard-coded window names.
8298
a350efd4
TT
82992020-06-16 Tom Tromey <tom@tromey.com>
8300
8301 PR tui/25348:
8302 * tui/tui.c (tui_ensure_readline_initialized): Rename from
8303 tui_initialize_readline. Only run once. Call rl_initialize.
8304 * tui/tui.h (tui_ensure_readline_initialized): Rename from
8305 tui_initialize_readline.
8306 * tui/tui-io.c (tui_setup_io): Call
8307 tui_ensure_readline_initialized.
8308 * tui/tui-interp.c (tui_interp::init): Update.
8309
39ec0490
TT
83102020-06-16 Tom Tromey <tom@tromey.com>
8311
8312 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
8313 Also preserve the status window.
8314
d2d1ea20
TT
83152020-06-16 Tom Tromey <tom@tromey.com>
8316
8317 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
8318 where m_window==nullptr.
8319
66920317
TT
83202020-06-15 Tom Tromey <tromey@adacore.com>
8321
8322 * windows-nat.c (windows_nat::handle_output_debug_string):
8323 Update.
8324 (windows_nat::handle_ms_vc_exception): Update.
8325 * target.h (target_read_string): Change API.
8326 * target.c (target_read_string): Change API.
8327 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
8328 Update.
8329 * solib-frv.c (frv_current_sos): Update.
8330 * solib-dsbt.c (dsbt_current_sos): Update.
8331 * solib-darwin.c (darwin_current_sos): Update.
8332 * linux-thread-db.c (inferior_has_bug): Update.
8333 * expprint.c (print_subexp_standard): Update.
8334 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
8335 (ada_exception_message_1): Update.
8336
a5d871dd
TT
83372020-06-15 Tom Tromey <tromey@adacore.com>
8338
8339 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
8340
670e35fa
TT
83412020-06-15 Tom Tromey <tromey@adacore.com>
8342
8343 * valprint.c (read_string): Update comment.
8344 * target.c (MIN): Remove.
8345 (target_read_string): Rewrite.
8346
f5272a3b
TT
83472020-06-15 Tom Tromey <tromey@adacore.com>
8348
8349 * corefile.c (read_memory_string): Remove.
8350 * ada-valprint.c (ada_value_print_ptr): Update.
8351 * ada-lang.h (ada_tag_name): Change return type.
8352 * ada-lang.c (type_from_tag): Update.
8353 (ada_tag_name_from_tsd): Change return type. Use
8354 target_read_string.
8355 (ada_tag_name): Likewise.
8356 * gdbcore.h (read_memory_string): Don't declare.
8357
2c074f49
HD
83582020-06-14 Hannes Domani <ssbssa@yahoo.de>
8359
8360 * symtab.c (rbreak_command): Ignore Windows drive colon.
8361
6a17d503
SM
83622020-06-12 Simon Marchi <simon.marchi@efficios.com>
8363
8364 * NEWS: Mention removed GDBserver host support.
8365
453c733f
NC
83662020-06-12 Nelson Chu <nelson.chu@sifive.com>
8367
8368 * features/riscv/rebuild-csr-xml.sh: Updated.
8369
2b4e6a3f
TT
83702020-06-11 Tom Tromey <tom@tromey.com>
8371
8372 PR gdb/18318:
8373 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
8374
4412332f
JG
83752020-06-09 Jonny Grant <jg@jguk.org>
83762020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
8377
8378 * main.c (captured_main_1): Don't print new line after help.
8379 (print_gdb_help): add mailing list and IRC channel information
8380 to --help. Add new lines between items in the footer. Remove
8381 quotes around bug url.
8382
2f33032a
KS
83832020-06-11 Keith Seitz <keiths@redhat.com>
8384
8385 PR gdb/21356
8386 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
8387 Resolve typedefs for type length calculations.
8388
7ab96794
TV
83892020-06-10 Tom de Vries <tdevries@suse.de>
8390
8391 PR ada/24713
8392 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
8393 (write_psymbols): Enable .gdb_index for ada.
8394 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
8395 ada.
8396
e5f3ece2
TV
83972020-06-10 Tom de Vries <tdevries@suse.de>
8398
8399 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
8400 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
8401 namei" instead of "const char *name" argument.
8402 (dw2_map_matching_symbols): Use "offset_type namei" variant of
8403 dw2_symtab_iter_init.
8404
940da03e
SM
84052020-06-08 Simon Marchi <simon.marchi@efficios.com>
8406
8407 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
8408 to use type::field and field::type instead.
8409
b6cdac4b
SM
84102020-06-08 Simon Marchi <simon.marchi@efficios.com>
8411
8412 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
8413 to use field::type instead.
8414
5d14b6e5
SM
84152020-06-08 Simon Marchi <simon.marchi@efficios.com>
8416
8417 * gdbtypes.h (struct field) <type, set_type>: New methods.
8418 Rename `type` field to...
8419 <m_type>: ... this. Change references throughout to use type or
8420 set_type methods.
8421 (FIELD_TYPE): Use field::type. Change call sites that modify
8422 the field's type to use field::set_type instead.
8423
3d967001
SM
84242020-06-08 Simon Marchi <simon.marchi@efficios.com>
8425
8426 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
8427 to use type::index_type instead.
8428
262abc0d
SM
84292020-06-08 Simon Marchi <simon.marchi@efficios.com>
8430
8431 * gdbtypes.h (struct type) <index_type, set_index_type>: New
8432 methods.
8433 (TYPE_INDEX_TYPE): Use type::index_type.
8434 * gdbtypes.c (create_array_type_with_stride): Likewise.
8435
82836c92
TT
84362020-06-07 Tom Tromey <tom@tromey.com>
8437
8438 * valprint.c (generic_val_print_float): Remove "embedded_offset"
8439 parameter.
8440 (generic_value_print): Update.
8441
940dace9
AB
84422020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8443
8444 Revert commit 982a38f60b0.
8445 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
8446
982a38f6
AB
84472020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8448
8449 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
8450 avoid use after free.
8451
82f06518
TV
84522020-06-05 Tom de Vries <tdevries@suse.de>
8453
8454 * NEWS: Fix typos.
8455
f8c41851
SM
84562020-06-04 Simon Marchi <simon.marchi@efficios.com>
8457
8458 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
8459 the per_bfd object.
8460 (dwarf2_read_debug_names): Likewise.
8461 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
8462 object when re-using a per_bfd object with an index.
8463
f9b5d5ea
TV
84642020-06-03 Tom de Vries <tdevries@suse.de>
8465
8466 PR symtab/26046
8467 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
8468 children for C++.
8469 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
8470 DW_TAG_subprogram.
8471
f6eee2d0
AB
84722020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8473
8474 * ada-lang.c (ada_language_data): Delete skip_trampoline
8475 initializer.
8476 * c-lang.c (c_language_data): Likewise.
8477 (cplus_language_data): Likewise.
8478 (cplus_language::skip_trampoline): New member function.
8479 (asm_language_data): Delete skip_trampoline initializer.
8480 (minimal_language_data): Likewise.
8481 * d-lang.c (d_language_data): Likewise.
8482 * f-lang.c (f_language_data): Likewise.
8483 * go-lang.c (go_language_data): Likewise.
8484 * language.c (unk_lang_trampoline): Delete function.
8485 (skip_language_trampoline): Update.
8486 (unknown_language_data): Delete skip_trampoline initializer.
8487 (auto_language_data): Likewise.
8488 * language.h (language_data): Delete skip_trampoline field.
8489 (language_defn::skip_trampoline): New function.
8490 * m2-lang.c (m2_language_data): Delete skip_trampoline
8491 initializer.
8492 * objc-lang.c (objc_skip_trampoline): Delete function, move
8493 implementation to objc_language::skip_trampoline.
8494 (objc_language_data): Delete skip_trampoline initializer.
8495 (objc_language::skip_trampoline): New member function with
8496 implementation from objc_skip_trampoline.
8497 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
8498 initializer.
8499 * p-lang.c (pascal_language_data): Likewise.
8500 * rust-lang.c (rust_language_data): Likewise.
8501
0a50df5d
AB
85022020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8503
8504 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
8505 (ada_language::demangle): New member function.
8506 * c-lang.c (c_language_data): Delete la_demangle initializer.
8507 (cplus_language_data): Delete la_demangle initializer.
8508 (cplus_language::demangle): New member function.
8509 (asm_language_data): Delete la_demangle initializer.
8510 (minimal_language_data): Delete la_demangle initializer.
8511 * d-lang.c (d_language_data): Delete la_demangle initializer.
8512 (d_language::demangle): New member function.
8513 * f-lang.c (f_language_data): Delete la_demangle initializer.
8514 (f_language::demangle): New member function.
8515 * go-lang.c (go_language_data): Delete la_demangle initializer.
8516 (go_language::demangle): New member function.
8517 * language.c (language_demangle): Update.
8518 (unk_lang_demangle): Delete.
8519 (unknown_language_data): Delete la_demangle initializer.
8520 (unknown_language::demangle): New member function.
8521 (auto_language_data): Delete la_demangle initializer.
8522 (auto_language::demangle): New member function.
8523 * language.h (language_data): Delete la_demangle field.
8524 (language_defn::demangle): New function.
8525 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
8526 * objc-lang.c (objc_language_data): Delete la_demangle
8527 initializer.
8528 (objc_language::demangle): New member function.
8529 * opencl-lang.c (opencl_language_data): Delete la_demangle
8530 initializer.
8531 * p-lang.c (pascal_language_data): Likewise.
8532 * rust-lang.c (rust_language_data): Likewise.
8533 (rust_language::demangle): New member function.
8534
fbfb0a46
AB
85352020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8536
8537 * ada-lang.c (ada_language_data): Delete la_print_type
8538 initializer.
8539 (ada_language::print_type): New member function.
8540 * c-lang.c (c_language_data): Delete la_print_type initializer.
8541 (c_language::print_type): New member function.
8542 (cplus_language_data): Delete la_print_type initializer.
8543 (cplus_language::print_type): New member function.
8544 (asm_language_data): Delete la_print_type initializer.
8545 (asm_language::print_type): New member function.
8546 (minimal_language_data): Delete la_print_type initializer.
8547 (minimal_language::print_type): New member function.
8548 * d-lang.c (d_language_data): Delete la_print_type initializer.
8549 (d_language::print_type): New member function.
8550 * f-lang.c (f_language_data): Delete la_print_type initializer.
8551 (f_language::print_type): New member function.
8552 * go-lang.c (go_language_data): Delete la_print_type initializer.
8553 (go_language::print_type): New member function.
8554 * language.c (unk_lang_print_type): Delete.
8555 (unknown_language_data): Delete la_print_type initializer.
8556 (unknown_language::print_type): New member function.
8557 (auto_language_data): Delete la_print_type initializer.
8558 (auto_language::print_type): New member function.
8559 * language.h (language_data): Delete la_print_type field.
8560 (language_defn::print_type): New function.
8561 (LA_PRINT_TYPE): Update.
8562 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
8563 (m2_language::print_type): New member function.
8564 * objc-lang.c (objc_language_data): Delete la_print_type
8565 initializer.
8566 (objc_language::print_type): New member function.
8567 * opencl-lang.c (opencl_print_type): Delete, implementation moved
8568 to opencl_language::print_type.
8569 (opencl_language_data): Delete la_print_type initializer.
8570 (opencl_language::print_type): New member function, implementation
8571 from opencl_print_type.
8572 * p-lang.c (pascal_language_data): Delete la_print_type
8573 initializer.
8574 (pascal_language::print_type): New member function.
8575 * rust-lang.c (rust_print_type): Delete, implementation moved to
8576 rust_language::print_type.
8577 (rust_language_data): Delete la_print_type initializer.
8578 (rust_language::print_type): New member function, implementation
8579 from rust_print_type.
8580
6f827019
AB
85812020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8582
8583 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
8584 implementation moves to...
8585 (ada_language::sniff_from_mangled_name): ...here. Update return
8586 type.
8587 (ada_language_data): Delete la_sniff_from_mangled_name
8588 initializer.
8589 * c-lang.c (c_language_data): Likewise.
8590 (cplus_language_data): Likewise.
8591 (cplus_language::sniff_from_mangled_name): New member function,
8592 implementation taken from gdb_sniff_from_mangled_name.
8593 (asm_language_data): Delete la_sniff_from_mangled_name
8594 initializer.
8595 (minimal_language_data): Likewise.
8596 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
8597 implementation moves to cplus_language::sniff_from_mangled_name.
8598 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
8599 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
8600 moves to...
8601 (d_language::sniff_from_mangled_name): ...here.
8602 (d_language_data): Delete la_sniff_from_mangled_name initializer.
8603 * f-lang.c (f_language_data): Likewise.
8604 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
8605 moves to...
8606 (go_language::sniff_from_mangled_name): ...here.
8607 (go_language_data): Delete la_sniff_from_mangled_name initializer.
8608 * language.c (language_sniff_from_mangled_name): Delete.
8609 (unknown_language_data): Delete la_sniff_from_mangled_name
8610 initializer.
8611 (auto_language_data): Likewise.
8612 * language.h (language_data): Delete la_sniff_from_mangled_name
8613 field.
8614 (language_defn::sniff_from_mangled_name): New function.
8615 (language_sniff_from_mangled_name): Delete declaration.
8616 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
8617 field.
8618 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
8619 implementation moves to...
8620 (objc_language::sniff_from_mangled_name): ...here.
8621 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
8622 * opencl-lang.c (opencl_language_data): Likewise.
8623 * p-lang.c (pascal_language_data): Likewise.
8624 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
8625 implementation moves to...
8626 (rust_language::sniff_from_mangled_name): ...here.
8627 (rust_language_data): Delete la_sniff_from_mangled_name
8628 initializer.
8629 * symtab.c (symbol_find_demangled_name): Call
8630 sniff_from_mangled_name member function.
8631
fb8006fd
AB
86322020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8633
8634 * ada-lang.c (ada_language_data): Delete la_search_name_hash
8635 initializer.
8636 * c-lang.c (c_language_data): Likewise.
8637 (cplus_language_data): Likewise.
8638 (cplus_language::search_name_hash): New member function.
8639 (asm_language_data): Delete la_search_name_hash initializer.
8640 (minimal_language_data): Likewise.
8641 * d-lang.c (d_language_data): Likewise.
8642 * dictionary.c (default_search_name_hash): Rename to...
8643 (language_defn::search_name_hash): ...this.
8644 * f-lang.c (f_language_data): Likewise.
8645 (f_language::search_name_hash): New member function.
8646 * go-lang.c (go_language_data): Delete la_search_name_hash
8647 initializer.
8648 * language.c (unknown_language_data): Likewise.
8649 (auto_language_data): Likewise.
8650 * language.h (struct language_data): Delete la_search_name_hash
8651 field.
8652 (language_defn::search_name_hash): Declare new member function.
8653 (default_search_name_hash): Delete declaration.
8654 * m2-lang.c (m2_language_data): Delete la_search_name_hash
8655 initializer.
8656 * objc-lang.c (objc_language_data): Likewise.
8657 * opencl-lang.c (opencl_language_data): Likewise.
8658 * p-lang.c (pascal_language_data): Likewise.
8659 * rust-lang.c (rust_language_data): Likewise.
8660 * symtab.c (search_name_hash): Update call.
8661
8e25bafe
AB
86622020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8663
8664 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
8665 initializer.
8666 * c-lang.c (class compile_instance): Declare.
8667 (c_language_data): Delete la_get_compile_instance initializer.
8668 (c_language::get_compile_instance): New member function.
8669 (cplus_language_data): Delete la_get_compile_instance initializer.
8670 (cplus_language::get_compile_instance): New member function.
8671 (asm_language_data): Delete la_get_compile_instance initializer.
8672 (minimal_language_data): Likewise.
8673 * c-lang.h (c_get_compile_context): Update comment.
8674 (cplus_get_compile_context): Update comment.
8675 * compile/compile.c (compile_to_object): Update calls, don't rely
8676 on function pointer being NULL.
8677 * d-lang.c (d_language_data): Delete la_get_compile_instance
8678 initializer.
8679 * f-lang.c (f_language_data): Likewise.
8680 * go-lang.c (go_language_data): Likewise.
8681 * language.c (unknown_language_data): Likewise.
8682 (auto_language_data): Likewise.
8683 * language.h (language_data): Delete la_get_compile_instance field.
8684 (language_defn::get_compile_instance): New member function.
8685 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
8686 initializer.
8687 * objc-lang.c (objc_language_data): Likewise.
8688 * opencl-lang.c (opencl_language_data): Likewise.
8689 * p-lang.c (pascal_language_data): Likewise.
8690 * rust-lang.c (rust_language_data): Likewise.
8691
4009ee92
AB
86922020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8693
8694 * ada-lang.c (ada_add_all_symbols): Update comment.
8695 (ada_iterate_over_symbols): Delete, move implementation to...
8696 (ada_language::iterate_over_symbols): ...here, a new member
8697 function, rewrite to use range based for loop.
8698 (ada_language_data): Delete la_iterate_over_symbols initializer.
8699 * c-lang.c (c_language_data): Likewise.
8700 (cplus_language_data): Likewise.
8701 (asm_language_data): Likewise.
8702 (minimal_language_data): Likewise.
8703 * d-lang.c (d_language_data): Likewise.
8704 * f-lang.c (f_language_data): Likewise.
8705 * go-lang.c (go_language_data): Likewise.
8706 * language.c (unknown_language_data): Likewise.
8707 (auto_language_data): Likewise.
8708 * language.h (language_data): Delete la_iterate_over_symbols field.
8709 (language_defn::iterate_over_symbols): New member function.
8710 (LA_ITERATE_OVER_SYMBOLS): Update.
8711 * linespec.c (iterate_over_all_matching_symtabs): Update.
8712 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
8713 initializer.
8714 * objc-lang.c (objc_language_data): Likewise.
8715 * opencl-lang.c (opencl_language_data): Likewise.
8716 * p-lang.c (pascal_language_data): Likewise.
8717 * rust-lang.c (rust_language_data): Likewise.
8718
54f4ca46
AB
87192020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8720
8721 * ada-lang.c (ada_language_data): Delete
8722 la_lookup_transparent_type initializer.
8723 * c-lang.c (c_language_data): Likewise.
8724 (cplus_language_data): Likewise.
8725 (cplus_language::lookup_transparent_type): New member function.
8726 (asm_language_data): Delete la_lookup_transparent_type
8727 initializer.
8728 (minimal_language_data): Likewise.
8729 * d-lang.c (d_language_data): Likewise.
8730 * f-lang.c (f_language_data): Likewise.
8731 * go-lang.c (go_language_data): Likewise.
8732 * language.c (unknown_language_data): Likewise.
8733 (auto_language_data): Likewise.
8734 * language.h (struct language_data): Delete
8735 la_lookup_transparent_type field.
8736 (language_defn::lookup_transparent_type): New member function.
8737 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
8738 initializer.
8739 * objc-lang.c (objc_language_data): Likewise.
8740 * opencl-lang.c (opencl_language_data): Likewise.
8741 * p-lang.c (pascal_language_data): Likewise.
8742 * rust-lang.c (rust_language_data): Likewise.
8743 * symtab.c (symbol_matches_domain): Update call.
8744
1fb314aa
AB
87452020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8746
8747 * ada-lang.c (ada_language_arch_info): Delete function, move
8748 implementation to...
8749 (ada_language::language_arch_info): ...here, a new member
8750 function.
8751 (ada_language_data): Delete la_language_arch_info.
8752 * c-lang.c (c_language_data): Likewise.
8753 (c_language::language_arch_info): New member function.
8754 (cplus_language_arch_info): Delete function, move
8755 implementation to...
8756 (cplus_language::language_arch_info): ...here, a new member
8757 function.
8758 (cplus_language_data): Delete la_language_arch_info.
8759 (asm_language_data): Likewise.
8760 (asm_language::language_arch_info): New member function.
8761 (minimal_language_data): Delete la_language_arch_info.
8762 (minimal_language::language_arch_info): New member function.
8763 * d-lang.c (d_language_arch_info): Delete function, move
8764 implementation to...
8765 (d_language::language_arch_info): ...here, a new member
8766 function.
8767 (d_language_data): Delete la_language_arch_info.
8768 * f-lang.c (f_language_arch_info): Delete function, move
8769 implementation to...
8770 (f_language::language_arch_info): ...here, a new member
8771 function.
8772 (f_language_data): Delete la_language_arch_info.
8773 * go-lang.c (go_language_arch_info): Delete function, move
8774 implementation to...
8775 (go_language::language_arch_info): ...here, a new member
8776 function.
8777 (go_language_data): Delete la_language_arch_info.
8778 * language.c (unknown_language_data): Likewise.
8779 (unknown_language::language_arch_info): New member function.
8780 (auto_language_data): Delete la_language_arch_info.
8781 (auto_language::language_arch_info): New member function.
8782 (language_gdbarch_post_init): Update call to
8783 la_language_arch_info.
8784 * language.h (language_data): Delete la_language_arch_info
8785 function pointer.
8786 (language_defn::language_arch_info): New function.
8787 * m2-lang.c (m2_language_arch_info): Delete function, move
8788 implementation to...
8789 (m2_language::language_arch_info): ...here, a new member
8790 function.
8791 (m2_language_data): Delete la_language_arch_info.
8792 * objc-lang.c (objc_language_arch_info): Delete function, move
8793 implementation to...
8794 (objc_language::language_arch_info): ...here, a new member
8795 function.
8796 (objc_language_data): Delete la_language_arch_info.
8797 * opencl-lang.c (opencl_language_arch_info): Delete function, move
8798 implementation to...
8799 (opencl_language::language_arch_info): ...here, a new member
8800 function.
8801 (opencl_language_data): Delete la_language_arch_info.
8802 * p-lang.c (pascal_language_arch_info): Delete function, move
8803 implementation to...
8804 (pascal_language::language_arch_info): ...here, a new member
8805 function.
8806 (pascal_language_data): Delete la_language_arch_info.
8807 * rust-lang.c (rust_language_arch_info): Delete function, move
8808 implementation to...
8809 (rust_language::language_arch_info): ...here, a new member
8810 function.
8811 (rust_language_data): Delete la_language_arch_info.
8812
48448202
AB
88132020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8814
8815 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
8816 initializer.
8817 * c-lang.c (c_language_data): Likewise.
8818 (cplus_language_data): Likewise.
8819 (cplus_language::pass_by_reference_info): New method.
8820 (asm_language_data): Delete la_pass_by_reference initializer.
8821 (minimal_language_data): Likewise.
8822 * cp-abi.c (cp_pass_by_reference): Remove use of
8823 default_pass_by_reference.
8824 * d-lang.c (d_language_data): Likewise.
8825 * f-lang.c (f_language_data): Likewise.
8826 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
8827 default_pass_by_reference.
8828 * go-lang.c (go_language_data): Likewise.
8829 * language.c (language_pass_by_reference): Update.
8830 (default_pass_by_reference): Delete.
8831 (unknown_language_data): Delete la_pass_by_reference
8832 initializer.
8833 (auto_language_data): Likewise.
8834 * language.h (struct language_data): Delete la_pass_by_reference
8835 field.
8836 (language_defn::pass_by_reference_info): New member function.
8837 (default_pass_by_reference): Delete declaration.
8838 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
8839 initializer.
8840 * objc-lang.c (objc_language_data): Likewise.
8841 * opencl-lang.c (opencl_language_data): Likewise.
8842 * p-lang.c (pascal_language_data): Likewise.
8843 * rust-lang.c (rust_language_data): Likewise.
8844
15e5fd35
AB
88452020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8846
8847 * ada-lang.c (ada_read_var_value): Delete function, move
8848 implementation to...
8849 (ada_language::read_var_value): ...here.
8850 (ada_language_data): Delete la_read_var_value initializer.
8851 * c-lang.c (c_language_data): Likewise.
8852 (cplus_language_data): Likewise.
8853 (minimal_language_data): Likewise.
8854 * d-lang.c (d_language_data): Likewise.
8855 * f-lang.c (f_language_data): Likewise.
8856 * findvar.c (default_read_var_value): Rename to...
8857 (language_defn::read_var_value): ...this.
8858 * findvar.c (read_var_value): Update header comment, and change to
8859 call member function instead of function pointer.
8860 * go-lang.c (go_language_data): Likewise.
8861 * language.c (unknown_language_data): Delete la_read_var_value
8862 initializer.
8863 (auto_language_data): Likewise.
8864 * language.h (struct language_data): Delete la_read_var_value
8865 field.
8866 (language_defn::read_var_value): New member function.
8867 (default_read_var_value): Delete declaration.
8868 * m2-lang.c (m2_language_data): Delete la_read_var_value
8869 initializer.
8870 * objc-lang.c (objc_language_data): Likewise.
8871 * opencl-lang.c (opencl_language_data): Likewise.
8872 * p-lang.c (pascal_language_data): Likewise.
8873 * rust-lang.c (rust_language_data): Likewise.
8874 * value.h (default_read_var_value): Delete declaration.
8875
5bd40f2a
AB
88762020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8877
8878 * ada-lang.c (ada_print_array_index): Delete function, move
8879 implementation to...
8880 (ada_language::print_array_index): ...here.
8881 (ada_language_data): Delete la_print_array_index initializer.
8882 * c-lang.c (c_language_data): Likewise.
8883 (cplus_language_data): Likewise.
8884 (minimal_language_data): Likewise.
8885 * d-lang.c (d_language_data): Likewise.
8886 * f-lang.c (f_language_data): Likewise.
8887 * go-lang.c (go_language_data): Likewise.
8888 * language.c (default_print_array_index): Delete function, move
8889 implementation to...
8890 (language_defn::print_array_index): ...here.
8891 (unknown_language_data): Delete la_print_array_index initializer.
8892 (auto_language_data): Likewise.
8893 * language.h (struct language_data): Delete la_print_array_index
8894 field.
8895 (language_defn::print_array_index): New member function.
8896 (LA_PRINT_ARRAY_INDEX): Update.
8897 (default_print_array_index): Delete declaration.
8898 * m2-lang.c (m2_language_data): Delete la_print_array_index
8899 initializer.
8900 * objc-lang.c (objc_language_data): Likewise.
8901 * opencl-lang.c (opencl_language_data): Likewise.
8902 * p-lang.c (pascal_language_data): Likewise.
8903 * rust-lang.c (rust_language_data): Likewise.
8904
0874fd07
AB
89052020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8906
8907 * gdb/ada-lang.c (ada_language_defn): Convert to...
8908 (ada_language_data): ...this.
8909 (class ada_language): New class.
8910 (ada_language_defn): New static global.
8911 * gdb/c-lang.c (c_language_defn): Convert to...
8912 (c_language_data): ...this.
8913 (class c_language): New class.
8914 (c_language_defn): New static global.
8915 (cplus_language_defn): Convert to...
8916 (cplus_language_data): ...this.
8917 (class cplus_language): New class.
8918 (cplus_language_defn): New static global.
8919 (asm_language_defn): Convert to...
8920 (asm_language_data): ...this.
8921 (class asm_language): New class.
8922 (asm_language_defn): New static global.
8923 (minimal_language_defn): Convert to...
8924 (minimal_language_data): ...this.
8925 (class minimal_language): New class.
8926 (minimal_language_defn): New static global.
8927 * gdb/d-lang.c (d_language_defn): Convert to...
8928 (d_language_data): ...this.
8929 (class d_language): New class.
8930 (d_language_defn): New static global.
8931 * gdb/f-lang.c (f_language_defn): Convert to...
8932 (f_language_data): ...this.
8933 (class f_language): New class.
8934 (f_language_defn): New static global.
8935 * gdb/go-lang.c (go_language_defn): Convert to...
8936 (go_language_data): ...this.
8937 (class go_language): New class.
8938 (go_language_defn): New static global.
8939 * gdb/language.c (unknown_language_defn): Remove declaration.
8940 (current_language): Initialize to nullptr, real initialization is
8941 moved to _initialize_language.
8942 (languages): Delete global.
8943 (language_defn::languages): Define.
8944 (set_language_command): Use language_defn::languages.
8945 (set_language): Likewise.
8946 (range_error): Likewise.
8947 (language_enum): Likewise.
8948 (language_def): Likewise.
8949 (add_set_language_command): Use language_def::languages for the
8950 language list, and language_def to lookup language pointers.
8951 (skip_language_trampoline): Use language_defn::languages.
8952 (unknown_language_defn): Convert to...
8953 (unknown_language_data): ...this.
8954 (class unknown_language): New class.
8955 (unknown_language_defn): New static global.
8956 (auto_language_defn): Convert to...
8957 (auto_language_data): ...this.
8958 (class auto_language): New class.
8959 (auto_language_defn): New static global.
8960 (language_gdbarch_post_init): Use language_defn::languages.
8961 (_initialize_language): Initialize current_language.
8962 * gdb/language.h (struct language_defn): Rename to...
8963 (struct language_data): ...this.
8964 (struct language_defn): New.
8965 (auto_language_defn): Delete.
8966 (unknown_language_defn): Delete.
8967 (minimal_language_defn): Delete.
8968 (ada_language_defn): Delete.
8969 (asm_language_defn): Delete.
8970 (c_language_defn): Delete.
8971 (cplus_language_defn): Delete.
8972 (d_language_defn): Delete.
8973 (f_language_defn): Delete.
8974 (go_language_defn): Delete.
8975 (m2_language_defn): Delete.
8976 (objc_language_defn): Delete.
8977 (opencl_language_defn): Delete.
8978 (pascal_language_defn): Delete.
8979 (rust_language_defn): Delete.
8980 * gdb/m2-lang.c (m2_language_defn): Convert to...
8981 (m2_language_data): ...this.
8982 (class m2_language): New class.
8983 (m2_language_defn): New static global.
8984 * gdb/objc-lang.c (objc_language_defn): Convert to...
8985 (objc_language_data): ...this.
8986 (class objc_language): New class.
8987 (objc_language_defn): New static global.
8988 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
8989 (opencl_language_data): ...this.
8990 (class opencl_language): New class.
8991 (opencl_language_defn): New static global.
8992 * gdb/p-lang.c (pascal_language_defn): Convert to...
8993 (pascal_language_data): ...this.
8994 (class pascal_language): New class.
8995 (pascal_language_defn): New static global.
8996 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
8997 language pointer, update comment format.
8998 * gdb/rust-lang.c (rust_language_defn): Convert to...
8999 (rust_language_data): ...this.
9000 (class rust_language): New class.
9001 (rust_language_defn): New static global.
9002
1313c56e
AB
90032020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
9004
9005 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
9006 member variable.
9007 <m_stmt_at_address>: New member variable.
9008 (lnp_state_machine::record_line): Don't record some lines, update
9009 tracking of is_stmt at the same address.
9010 (lnp_state_machine::lnp_state_machine): Initialise new member
9011 variables.
9012
b7ed9f3d
ST
90132020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
9014
9015 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
9016 "-include gnu-nat-mig.h".
9017 * gnu-nat-mig.h: New file.
9018 * gnu-nat.c: Include "gnu-nat-mig.h".
9019 (exc_server, msg_reply_server, notify_server,
9020 process_reply_server): Remove declarations.
9021
14a8ad62
ST
90222020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9023
9024 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
9025 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
9026 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
9027 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
9028 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
9029 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
9030 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
9031 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
9032 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
9033 to gnu_nat_target class.
9034 * gnu-nat.c: Likewise.
9035 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
9036 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
9037 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
9038 object.
9039 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
9040 instead of `gnu_target'.
9041
0af5e106
ST
90422020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9043
9044 * i386-gnu-tdep.c: Include "gdbcore.h"
9045 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
9046 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
9047 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
9048 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
9049 i386_gnu_sigcontext_addr): New functions
9050 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
9051 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
9052 tdep.
9053
078f2fc9
ST
90542020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9055
9056 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
9057 before fork_inferior call. Avoid calling it if target_is_pushed returns
9058 true.
9059
53dff92c
ST
90602020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9061
9062 * gnu-nat.h (gnu_target): New variable declaration.
9063 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
9064 gnu_target.
9065 * gnu-nat.c (gnu_target): New variable.
9066 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
9067 add_thread_silent, and add_thread calls.
9068 (gnu_nat_target::create_inferior): Pass gnu_target to
9069 add_thread_silent, thread_change_ptid call.
9070 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
9071 call.
9072
5a8b8627
ST
90732020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9074
9075 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
9076 (gnu_nat_target::find_memory_regions): Remove unused
9077 `old_address' variable.
9078
366f550a
ST
90792020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9080
9081 * gnu-nat.c: Include "gdbarch.h".
9082
f14871bf
ST
90832020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9084
9085 * reply_mig_hack.awk (Error return): Cast function through
9086 void *, to bypass compiler function call check.
9087
c6887cfb
ST
90882020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9089
9090 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
9091 $(srcdir)/reply_mig_hack.awk.
9092
6930bffe
ST
90932020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9094
9095 * gnu-nat.h (gnu_debug_flag): Set type to bool.
9096
112c22ed
JG
90972020-05-30 Jonny Grant <jg@jguk.org>
9098
9099 * configure.ac (ACX_BUGURL): change bug URL to https.
9100
f68f85b5
PA
91012020-05-30 Pedro Alves <palves@redhat.com>
9102
9103 * cp-support.c (replace_typedefs_template): New.
9104 (replace_typedefs_qualified_name): Handle
9105 DEMANGLE_COMPONENT_TEMPLATE.
9106
976ca316
SM
91072020-05-29 Simon Marchi <simon.marchi@efficios.com>
9108
9109 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
9110 dwarf2/index-cache.h, dwarf2/index-write.c,
9111 dwarf2/index-write.h, dwarf2/line-header.c,
9112 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
9113 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
9114 variables and fields from `dwarf2_per_objfile` to just
9115 `per_objfile` throughout.
9116
989ade05
SM
91172020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
9118
9119 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9120 <push_dwarf_reg_entry_value>: Add comment.
9121
c47bae85
KB
91222020-05-28 Kevin Buettner <kevinb@redhat.com>
9123 Keith Seitz <keiths@redhat.com>
9124
9125 * python/python.c (do_start_initialization): Call PyEval_SaveThread
9126 instead of PyEval_ReleaseLock.
9127 (class gdbpy_gil): Move to earlier in file.
9128 (finalize_python): Set gdb_python_initialized.
9129 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
9130 when not initialized.
9131
44486dcf
SM
91322020-05-28 Simon Marchi <simon.marchi@efficios.com>
9133
9134 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9135 <push_dwarf_reg_entry_value>: Remove assert. Override
9136 per_objfile with caller_per_objfile.
9137
f030440d
TV
91382020-05-28 Tom de Vries <tdevries@suse.de>
9139
9140 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
9141 PR gold/15646 workaround to symbol kind "type".
9142
f0fbb768
TT
91432020-05-27 Tom Tromey <tromey@adacore.com>
9144
9145 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
9146
af0b2a3e
TT
91472020-05-27 Tom Tromey <tromey@adacore.com>
9148
9149 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
9150 Use htab_find_with_hash.
9151 <add_abbrev>: Remove "abbrev_number" parameter.
9152 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
9153 "abbrev_number" parameter. Use htab_find_slot_with_hash.
9154 (hash_abbrev): Add comment.
9155 (abbrev_table::lookup_abbrev): Move to header file.
9156 (abbrev_table::read): Update.
9157
7d00ffec
TT
91582020-05-27 Tom Tromey <tromey@adacore.com>
9159
9160 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
9161 method.
9162 <canonical_name>: New member.
9163 <raw_name>: Rename from "name".
9164 (partial_die_info): Initialize canonical_name.
9165 (scan_partial_symbols): Check raw_name.
9166 (partial_die_parent_scope, partial_die_full_name)
9167 (add_partial_symbol, add_partial_subprogram)
9168 (add_partial_enumeration, load_partial_dies): Use "name" method.
9169 (partial_die_info::name): New method.
9170 (partial_die_info::read, guess_partial_die_structure_name)
9171 (partial_die_info::fixup): Update.
9172
697bba18
TT
91732020-05-27 Tom Tromey <tromey@adacore.com>
9174
9175 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
9176 <get_ref_die_offset>: Inline.
9177 <get_ref_die_offset_complaint>: New method.
9178 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
9179 (attribute::get_ref_die_offset_complaint): Rename from
9180 get_ref_die_offset. Just issue complaint.
9181
c17ace43
HD
91822020-05-27 Hannes Domani <ssbssa@yahoo.de>
9183
9184 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
9185
96445f0b
HD
91862020-05-27 Hannes Domani <ssbssa@yahoo.de>
9187
9188 * exec.c (exec_file_attach): Use errno value of first openp failure.
9189
ac637ec3
HD
91902020-05-27 Hannes Domani <ssbssa@yahoo.de>
9191
9192 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
9193 Don't close thread handle.
9194
17ee85fc
TT
91952020-05-27 Tom Tromey <tom@tromey.com>
9196 Simon Marchi <simon.marchi@efficios.com>
9197
9198 * objfiles.h (struct objfile) <partial_symtabs>: Now a
9199 shared_ptr.
9200 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
9201 member.
9202 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
9203 dwarf2_per_bfd_objfile_data_key>: New globals.
9204 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
9205 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
9206 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
9207 shared.
9208 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
9209 short-circuit when sharing.
9210 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
9211 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
9212
39b16f87
SM
92132020-05-27 Simon Marchi <simon.marchi@efficios.com>
9214
9215 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
9216 to...
9217 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
9218 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
9219
fcf23d5b
SM
92202020-05-27 Simon Marchi <simon.marchi@efficios.com>
9221
9222 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
9223 build_name_components, find_name_components_bounds>:
9224 Add per_objfile parameter.
9225 (struct mapped_index) <symbol_name_at>: Likewise.
9226 (struct mapped_debug_names): Remove constructor.
9227 <dwarf2_per_objfile>: Remove field.
9228 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
9229 (mapped_index_base::find_name_components_bounds,
9230 mapped_index_base::build_name_components,
9231 dw2_expand_symtabs_matching_symbol): Likewise.
9232 (class mock_mapped_index) <symbol_name_at>: Likewise.
9233 (check_match): Likewise.
9234 (check_find_bounds_finds): Likewise.
9235 (test_mapped_index_find_name_component_bounds): Update.
9236 (CHECK_MATCH): Update.
9237 (dw2_expand_symtabs_matching): Update.
9238 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
9239 per_objfile parameter.
9240 <find_vec_in_debug_names>: Likewise.
9241 <m_per_objfile>: New field.
9242 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
9243 parameter.
9244 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
9245 (dw2_debug_names_iterator::next): Update.
9246 (dw2_debug_names_lookup_symbol): Update.
9247 (dw2_debug_names_expand_symtabs_for_function): Update.
9248 (dw2_debug_names_map_matching_symbols): Update.
9249 (dw2_debug_names_expand_symtabs_matching): Update.
9250 (dwarf2_read_debug_names): Update.
9251
7188ed02
SM
92522020-05-27 Simon Marchi <simon.marchi@efficios.com>
9253
9254 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
9255 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
9256 move to dwarf2_per_objfile.
9257 <read_in_chain>: Remove.
9258 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
9259 remove_all_cus, age_comp_units>: New methods.
9260 <m_dwarf2_cus>: New member.
9261 (struct dwarf2_per_cu_data) <cu>: Remove.
9262 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
9263 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
9264 moved to methods of dwarf2_per_objfile.
9265 (dwarf2_clear_marks): Remove.
9266 (dwarf2_queue_item::~dwarf2_queue_item): Update.
9267 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
9268 (dwarf2_per_bfd::free_cached_comp_units): Remove.
9269 (dwarf2_per_objfile::remove_all_cus): New.
9270 (class free_cached_comp_units) <~free_cached_comp_units>:
9271 Update.
9272 (load_cu): Update.
9273 (dw2_do_instantiate_symtab): Adjust.
9274 (fill_in_sig_entry_from_dwo_entry): Adjust.
9275 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9276 (cutu_reader::cutu_reader): Likewise.
9277 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
9278 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
9279 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
9280 and dwarf2_per_objfile::age_comp_units.
9281 (load_partial_comp_unit): Update.
9282 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
9283 (process_queue): Likewise.
9284 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
9285 backlink.
9286 (dwarf2_read_addr_index): Likewise.
9287 (follow_die_offset): Likewise.
9288 (dwarf2_fetch_die_loc_sect_off): Likewise.
9289 (dwarf2_fetch_constant_bytes): Likewise.
9290 (dwarf2_fetch_die_type_sect_off): Likewise.
9291 (follow_die_sig_1): Likewise.
9292 (load_full_type_unit): Likewise.
9293 (read_signatured_type): Likewise.
9294 (dwarf2_cu::dwarf2_cu): Don't set cu field.
9295 (dwarf2_cu::~dwarf2_cu): Remove.
9296 (dwarf2_per_objfile::get_cu): New.
9297 (dwarf2_per_objfile::set_cu): New.
9298 (age_cached_comp_units): Rename to...
9299 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
9300 to std::unordered_map.
9301 (free_one_cached_comp_unit): Rename to...
9302 (dwarf2_per_objfile::remove_cu): ... this. Adjust
9303 to std::unordered_map.
9304 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
9305 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
9306 a dwarf2_per_objfile in data.
9307 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
9308 (dwarf2_clear_marks): Remove.
9309
2e671100
SM
93102020-05-27 Simon Marchi <simon.marchi@efficios.com>
9311
9312 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
9313 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
9314 (init_tu_and_read_dwo_dies): Likewise.
9315 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
9316 (cutu_reader::cutu_reader): Likewise.
9317 (load_partial_comp_unit): Likewise.
9318 (process_psymtab_comp_unit): Update.
9319 (build_type_psymtabs_1): Update.
9320 (process_skeletonless_type_unit): Update.
9321 (load_full_comp_unit): Update.
9322 (find_partial_die): Update.
9323 (dwarf2_read_addr_index): Update.
9324 (read_signatured_type): Update.
9325
2e6a9f79
SM
93262020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9327
9328 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
9329 m_header_read_in>: New fields.
9330 <get_header>: New method.
9331 * dwarf2/read.c (per_cu_header_read_in): Remove.
9332 (dwarf2_per_cu_data::get_header): New.
9333 (dwarf2_per_cu_data::addr_size): Update.
9334 (dwarf2_per_cu_data::offset_size): Update.
9335 (dwarf2_per_cu_data::ref_addr_size): Update.
9336
1b555f17
SM
93372020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9338
9339 * dwarf2/read.c (load_cu): Return dwarf2_cu.
9340 (dw2_do_instantiate_symtab): Update.
9341 (queue_and_load_all_dwo_tus): Change parameter from
9342 dwarf2_per_cu_data to dwarf2_cu.
9343 (dwarf2_fetch_die_loc_sect_off): Update.
9344 (dwarf2_fetch_constant_bytes): Update.
9345 (dwarf2_fetch_die_type_sect_off): Update.
9346
8fc0b21d
SM
93472020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9348
9349 * dwarf2/read.c (process_full_comp_unit,
9350 process_full_type_unit): Remove per_cu, per_objfile paramters.
9351 Add dwarf2_cu parameter.
9352 (process_queue): Update.
9353
168c9250
SM
93542020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9355
9356 * dwarf2/read.c (create_cu_from_index_list): Replace
9357 dwarf2_per_objfile parameter with dwarf2_per_bfd.
9358 (create_cus_from_index_list): Likewise.
9359 (create_cus_from_index): Likewise.
9360 (create_signatured_type_table_from_index): Likewise.
9361 (create_cus_from_debug_names_list): Likewise.
9362 (create_cus_from_debug_names): Likewise.
9363 (dwarf2_read_gdb_index): Update.
9364 (dwarf2_read_debug_names): Update.
9365
e286671b
TT
93662020-05-27 Tom Tromey <tom@tromey.com>
9367 Simon Marchi <simon.marchi@efficios.com>
9368
9369 * dwarf2/read.h (struct dwarf2_per_objfile)
9370 <get_type_for_signatured_type, set_type_for_signatured_type>:
9371 New methods.
9372 <m_type_map>: New member.
9373 (struct signatured_type) <type>: Remove.
9374 * dwarf2/read.c
9375 (dwarf2_per_objfile::get_type_for_signatured_type,
9376 dwarf2_per_objfile::set_type_for_signatured_type): New.
9377 (get_signatured_type): Use new methods.
9378
8adb8487
TT
93792020-05-27 Tom Tromey <tom@tromey.com>
9380 Simon Marchi <simon.marchi@efficios.com>
9381
9382 * dwarf2/read.h (struct type_unit_group_unshareable): New.
9383 (struct dwarf2_per_objfile) <type_units>: New member.
9384 <get_type_unit_group_unshareable>: New method.
9385 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
9386 num_symtabs, symtabs>: Remove; move to
9387 type_unit_group_unshareable.
9388 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
9389 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
9390 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
9391
127bbf4b
SM
93922020-05-27 Simon Marchi <simon.marchi@efficios.com>
9393
9394 * dwarf2/read.h (struct dwarf2_per_cu_data):
9395 <dwarf2_per_objfile>: Remove.
9396 * dwarf2/read.c (create_cu_from_index_list): Don't assign
9397 dwarf2_per_objfile.
9398 (create_signatured_type_table_from_index): Likewise.
9399 (create_signatured_type_table_from_debug_names): Likewise.
9400 (create_debug_type_hash_table): Likewise.
9401 (fill_in_sig_entry_from_dwo_entry): Likewise.
9402 (create_type_unit_group): Likewise.
9403 (read_comp_units_from_section): Likewise.
9404 (create_cus_hash_table): Likewise.
9405
f6e649dd
SM
94062020-05-27 Simon Marchi <simon.marchi@efficios.com>
9407
9408 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
9409 dwarf2_per_cu_data::dwarf2_per_objfile.
9410 (compute_compunit_symtab_includes): Likewise.
9411 (dwarf2_cu::start_symtab): Likewise.
9412
aa66c379
SM
94132020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9414
9415 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
9416 parameter.
9417 * dwarf2/read.c (get_die_type_at_offset): Likewise.
9418 (read_namespace_alias): Update.
9419 (lookup_die_type): Update.
9420 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
9421 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
9422 Update.
9423 (disassemble_dwarf_expression): Update.
9424
120ce1b5
SM
94252020-05-27 Simon Marchi <simon.marchi@efficios.com>
9426
9427 * dwarf2/read.h (struct dwarf2_queue_item): Add
9428 dwarf2_per_objfile parameter, assign new parameter.
9429 <per_objfile>: New field.
9430 * dwarf2/read.c (free_one_cached_comp_unit): Add
9431 dwarf2_per_objfile parameter.
9432 (queue_comp_unit): Likewise.
9433 (dw2_do_instantiate_symtab): Update.
9434 (process_psymtab_comp_unit): Update.
9435 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
9436 (process_imported_unit_die): Update.
9437 (queue_and_load_dwo_tu): Update.
9438 (follow_die_offset): Update.
9439 (follow_die_sig_1): Update.
9440
9f47c707
SM
94412020-05-27 Simon Marchi <simon.marchi@efficios.com>
9442
9443 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
9444 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
9445 (read_call_site_scope): Assign per_objfile.
9446 (dwarf2_per_cu_data::objfile): Remove.
9447 * gdbtypes.h (struct call_site) <per_objfile>: New member.
9448 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
9449 dwarf2_per_objfile parameter.
9450 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
9451 dwarf2_per_objfile parameter.
9452 (dwarf_expr_reg_to_entry_parameter): Add output
9453 dwarf2_per_objfile parameter.
9454 (locexpr_get_frame_base): Update.
9455 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
9456 <push_dwarf_reg_entry_value>: Update.
9457 <call_site_to_target_addr>: Update.
9458 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
9459 parameter.
9460 (value_of_dwarf_reg_entry): Update.
9461 (rw_pieced_value): Update.
9462 (indirect_synthetic_pointer): Update.
9463 (dwarf2_evaluate_property): Update.
9464 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
9465 parameter.
9466 (locexpr_read_variable): Update.
9467 (locexpr_get_symbol_read_needs): Update.
9468 (loclist_read_variable): Update.
9469
14095eb3
SM
94702020-05-27 Simon Marchi <simon.marchi@efficios.com>
9471
9472 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9473 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9474 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9475 parameter.
9476 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9477 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9478 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9479 parameter.
9480 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
9481 sect_variable_value): Add dwarf2_per_objfile parameter.
9482 (class dwarf_evaluate_loc_desc) <dwarf_call,
9483 dwarf_variable_value>: Update.
9484 (fetch_const_value_from_synthetic_pointer): Add
9485 dwarf2_per_objfile parameter.
9486 (fetch_const_value_from_synthetic_pointer): Update.
9487 (coerced_pieced_ref): Update.
9488 (class symbol_needs_eval_context) <dwarf_call,
9489 dwarf_variable_value>: Update.
9490 (dwarf2_compile_expr_to_ax): Update.
9491
3c3cd3d4
SM
94922020-05-27 Simon Marchi <simon.marchi@efficios.com>
9493
9494 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
9495 parameter.
9496 (dwarf2_evaluate_loc_desc_full): Update.
9497
82ca3f51
SM
94982020-05-27 Simon Marchi <simon.marchi@efficios.com>
9499
9500 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
9501 parameter.
9502 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
9503 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
9504 dwarf2_per_objfile parameter.
9505 (decode_debug_loc_dwo_addresses): Likewise.
9506 (dwarf2_find_location_expression): Update.
9507 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
9508 (locexpr_describe_location_piece): Add dwarf2_per_objfile
9509 parameter.
9510 (disassemble_dwarf_expression): Add dwarf2_per_objfile
9511 parameter.
9512 (locexpr_describe_location_1): Likewise.
9513 (locexpr_describe_location): Update.
9514
4b167ea1
SM
95152020-05-27 Simon Marchi <simon.marchi@efficios.com>
9516
9517 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
9518 Remove.
9519 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
9520 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
9521 (dwarf2_compile_property_to_c): Update.
9522 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
9523 use text offset from objfile.
9524 (locexpr_tracepoint_var_ref): Update.
9525 (locexpr_generate_c_location): Update.
9526 (loclist_describe_location): Update.
9527 (loclist_tracepoint_var_ref): Update.
9528 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
9529 dwarf2_per_objfile parameter.
9530 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
9531 use text offset from objfile.
9532 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
9533
89b07335
SM
95342020-05-27 Simon Marchi <simon.marchi@efficios.com>
9535
9536 * dwarf2/expr.h (struct dwarf_expr_context)
9537 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
9538 <offset>: Remove.
9539 <per_objfile>: New member.
9540 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
9541 dwarf2_per_objfile parameter. Don't set offset, set
9542 per_objfile.
9543 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
9544 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
9545 a dwarf2_per_objfile object instead of an offset.
9546 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
9547 constructor.
9548 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
9549 to dwarf2_expr_executor constructor. Don't set offset.
9550 (dwarf2_fetch_cfa_info): Update.
9551 (struct dwarf2_frame_cache) <text_offset>: Remove.
9552 <per_objfile>: New field.
9553 (dwarf2_frame_cache): Update.
9554 (dwarf2_frame_prev_register): Update.
9555 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9556 <dwarf_evaluate_loc_desc>: Add constructor.
9557 (dwarf2_evaluate_loc_desc_full): Update.
9558 (dwarf2_locexpr_baton_eval): Update.
9559 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
9560 Add constructor.
9561 (dwarf2_loc_desc_get_symbol_read_needs): Update.
9562
293e7e51
SM
95632020-05-27 Simon Marchi <simon.marchi@efficios.com>
9564
9565 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
9566 addr_sized_int_type>: Move to dwarf2_cu.
9567 <int_type>: Move to dwarf2_per_objfile.
9568 (struct dwarf2_per_objfile) <int_type>: Move here.
9569 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
9570 addr_sized_int_type>: Move here.
9571 (read_func_scope): Update.
9572 (read_array_type): Update.
9573 (read_tag_string_type): Update.
9574 (attr_to_dynamic_prop): Update.
9575 (dwarf2_per_cu_data::int_type): Rename to...
9576 (dwarf2_per_objfile::int_type): ... this.
9577 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
9578 (dwarf2_cu::addr_sized_int_type): ... this.
9579 (read_subrange_type): Update.
9580 (dwarf2_per_cu_data::addr_type): Rename to...
9581 (dwarf2_cu::addr_type): ... this.
9582 (set_die_type): Update.
9583
64874a40
SM
95842020-05-27 Simon Marchi <simon.marchi@efficios.com>
9585
9586 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
9587 data through per_cu->cu.
9588
4ab09049
SM
95892020-05-27 Simon Marchi <simon.marchi@efficios.com>
9590
9591 * dwarf2/read.c (lookup_dwo_comp_unit): Change
9592 dwarf2_per_cu_data parameter fo dwarf2_cu.
9593 (lookup_dwo_type_unit): Likewise.
9594 (read_cutu_die_from_dwo): Likewise.
9595 (lookup_dwo_unit): Likewise.
9596 (open_and_init_dwo_file): Likewise.
9597 (lookup_dwo_cutu): Likewise.
9598 (lookup_dwo_comp_unit): Likewise.
9599 (lookup_dwo_type_unit): Likewise.
9600 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9601 (cutu_reader::cutu_reader): Update.
9602
47b14e86
SM
96032020-05-27 Simon Marchi <simon.marchi@efficios.com>
9604
9605 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
9606 parameter.
9607 (process_full_type_unit): Likewise.
9608 (process_queue): Update.
9609
43182c09
SM
96102020-05-27 Simon Marchi <simon.marchi@efficios.com>
9611
9612 * dwarf2/read.c (recursively_compute_inclusions): Add
9613 dwarf2_per_objfile parameter.
9614 (compute_compunit_symtab_includes): Likewise.
9615 (process_cu_includes): Update.
9616
7aa104c4
SM
96172020-05-27 Simon Marchi <simon.marchi@efficios.com>
9618
9619 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
9620 parameter.
9621 (create_type_unit_group): Update.
9622 (process_psymtab_comp_unit_reader): Update.
9623 (build_type_psymtabs_reader): Update.
9624
e3beb21d
SM
96252020-05-27 Simon Marchi <simon.marchi@efficios.com>
9626
9627 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
9628 object through m_this_cu->cu.
9629
d460f660
SM
96302020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9631
9632 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
9633 the info parameter.
9634 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
9635
ab432490
SM
96362020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9637
9638 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
9639 per_objfile parameter.
9640 (load_full_type_unit): Add per_objfile parameter.
9641 (read_signatured_type): Likewise.
9642 (load_full_comp_unit): Likewise.
9643 (load_cu): Likewise.
9644 (dw2_do_instantiate_symtab): Likewise.
9645 (dw2_get_file_names): Likewise.
9646 (dw2_map_symtabs_matching_filename): Update.
9647 (dw_expand_symtabs_matching_file_matcher): Update.
9648 (dw2_map_symbol_filenames): Update.
9649 (process_psymtab_comp_unit): Add per_objfile parameter.
9650 (build_type_psymtabs_1): Update.
9651 (process_skeletonless_type_unit): Update.
9652 (dwarf2_build_psymtabs_hard): Update.
9653 (load_partial_comp_unit): Add per_objfile parameter.
9654 (scan_partial_symbols): Update.
9655 (load_full_comp_unit): Add per_objfile parameter.
9656 (process_imported_unit_die): Update.
9657 (create_cus_hash_table): Update.
9658 (find_partial_die): Update.
9659 (dwarf2_read_addr_index): Update.
9660 (follow_die_offset): Update.
9661 (dwarf2_fetch_die_loc_sect_off): Update.
9662 (dwarf2_fetch_constant_bytes): Update.
9663 (dwarf2_fetch_die_type_sect_off): Update.
9664 (follow_die_sig_1): Update.
9665 (load_full_type_unit): Add per_objfile parameter.
9666 (read_signatured_type): Likewise.
9667
313bad1b
SM
96682020-05-27 Simon Marchi <simon.marchi@efficios.com>
9669
9670 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
9671 of objfile_name.
9672
c3699833
SM
96732020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9674
9675 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
9676 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9677 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
9678 field.
9679 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9680 (create_cus_from_index): Update.
9681 (dwarf2_read_gdb_index): Update.
9682 (create_cus_from_debug_names): Update.
9683 (dwarf2_read_debug_names): Update.
9684 (get_abbrev_section_for_cu): Update.
9685 (create_all_comp_units): Update.
9686 (read_attribute_value): Update.
9687 (get_debug_line_section): Update.
9688 * dwarf2/index-cache.c (index_cache::store): Update.
9689 * dwarf2/index-write.c (save_gdb_index_command): Update.
9690 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
9691
1859c670
SM
96922020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9693
9694 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
9695 member.
9696 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
9697 dwarf2_per_cu_data::per_bfd.
9698 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
9699 (create_type_unit_group): Likewise.
9700 (queue_comp_unit): Remove reference to
9701 per_cu->dwarf2_per_objfile.
9702 (maybe_queue_comp_unit): Likewise.
9703 (fill_in_sig_entry_from_dwo_entry): Assign new field.
9704 (create_cus_hash_table): Assign new field.
9705
5e22e966
SM
97062020-05-27 Simon Marchi <simon.marchi@efficios.com>
9707
9708 * dwarf2/read.c: Replace
9709 dwarf2_cu->per_cu->dwarf2_per_objfile references with
9710 dwarf2_cu->per_objfile throughout.
9711
97a1449a
SM
97122020-05-27 Simon Marchi <simon.marchi@efficios.com>
9713
9714 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
9715 parameter, don't use per_cu->dwarf2_per_objfile.
9716 (dw2_instantiate_symtab): Likewise.
9717 (dw2_find_last_source_symtab): Update.
9718 (dw2_map_expand_apply): Update.
9719 (dw2_lookup_symbol): Update.
9720 (dw2_expand_symtabs_for_function): Update.
9721 (dw2_expand_all_symtabs): Update.
9722 (dw2_expand_symtabs_with_fullname): Update.
9723 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
9724 don't use per_cu->dwarf2_per_objfile.
9725 (dw2_expand_marked_cus): Update.
9726 (dw2_find_pc_sect_compunit_symtab): Update.
9727 (dw2_debug_names_lookup_symbol): Update.
9728 (dw2_debug_names_expand_symtabs_for_function): Update.
9729 (dw2_debug_names_map_matching_symbols): Update.
9730 (dwarf2_psymtab::expand_psymtab): Update.
9731
9e021579
SM
97322020-05-27 Simon Marchi <simon.marchi@efficios.com>
9733
9734 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
9735 <per_objfile>: New member.
9736 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
9737 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
9738 call to dwarf2_cu.
9739 (cutu_reader::cutu_reader): Update.
9740 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
9741
ae090bdb
SM
97422020-05-27 Simon Marchi <simon.marchi@efficios.com>
9743
9744 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
9745 struct dwarf2_per_objfile.
9746 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
9747 dwarf2_per_bfd.
9748 * dwarf2/read.c (set_die_type): Update.
9749 (get_die_type_at_offset): Update.
9750
af758d11
SM
97512020-05-27 Tom Tromey <tom@tromey.com>
9752 Simon Marchi <simon.marchi@efficios.com>
9753
9754 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
9755 method.
9756 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
9757 get_symtab, set_symtab>: New methods.
9758 <m_symtabs>: New field.
9759 (struct dwarf2_psymtab): Derive from partial_symtab.
9760 <readin_p, get_compunit_symtab>: Declare methods.
9761 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
9762 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
9763 New methods.
9764 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
9765 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
9766 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
9767 (dw2_symtab_iter_next, dw2_print_stats)
9768 (dw2_expand_symtabs_with_fullname)
9769 (dw2_expand_symtabs_matching_one)
9770 (dw_expand_symtabs_matching_file_matcher)
9771 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
9772 (dw2_debug_names_iterator::next)
9773 (dw2_debug_names_map_matching_symbols)
9774 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
9775 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
9776 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
9777 New methods.
9778 (get_compunit_symtab, process_full_comp_unit)
9779 (process_full_type_unit): Update.
9780 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
9781
5989a64e
SM
97822020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9783
9784 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
9785 then introduce a new dwarf2_per_objfile type.
9786 <read_line_string>: Move to the new dwarf2_per_objfile type.
9787 <objfile>: Likewise.
9788 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
9789 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
9790 dwarf2_per_objfile->per_bfd.
9791 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
9792 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
9793 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
9794 (dwarf2_per_bfd::free_cached_comp_units): ... this.
9795 (dwarf2_has_info): Allocate dwarf2_per_bfd.
9796 (dwarf2_per_objfile::locate_sections): Rename to...
9797 (dwarf2_per_bfd::locate_sections): ... this.
9798 (dwarf2_per_objfile::get_cutu): Rename to...
9799 (dwarf2_per_bfd::get_cutu): ... this.
9800 (dwarf2_per_objfile::get_cu): Rename to...
9801 (dwarf2_per_bfd::get_cu): ... this.
9802 (dwarf2_per_objfile::get_tu): Rename to...
9803 (dwarf2_per_bfd::get_tu): ... this.
9804 (dwarf2_per_objfile::allocate_per_cu): Rename to...
9805 (dwarf2_per_bfd::allocate_per_cu): ... this.
9806 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
9807 (dwarf2_per_bfd::allocate_signatured_type): ... this.
9808 (get_gdb_index_contents_ftype): Change parameter from
9809 dwarf2_per_objfile to dwarf2_per_bfd.
9810 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
9811 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
9812
a50264ba
TT
98132020-05-27 Tom Tromey <tom@tromey.com>
9814 Simon Marchi <simon.marchi@efficios.com>
9815
9816 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
9817 (allocate_piece_closure): Set "per_objfile" member.
9818 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
9819 (locexpr_describe_location, loclist_describe_location): Use new
9820 member.
9821 * dwarf2/read.c (read_call_site_scope)
9822 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
9823 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
9824 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
9825 handle_data_member_location): Set per_objfile member.
9826 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
9827 member.
9828 (struct dwarf2_loclist_baton) <per_objfile>: New member.
9829
d3473f0c
TT
98302020-05-27 Tom Tromey <tom@tromey.com>
9831
9832 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
9833 allocate_signatured_type>: Declare new methods.
9834 <m_num_psymtabs>: New member.
9835 (struct dwarf2_per_cu_data) <index>: New member.
9836 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
9837 (dwarf2_per_objfile::allocate_signatured_type): New methods.
9838 (create_cu_from_index_list): Use allocate_per_cu.
9839 (create_signatured_type_table_from_index)
9840 (create_signatured_type_table_from_debug_names)
9841 (create_debug_type_hash_table, add_type_unit)
9842 (read_comp_units_from_section): Use allocate_signatured_type.
9843
5717c425
TT
98442020-05-27 Tom Tromey <tom@tromey.com>
9845
9846 * psymtab.c (partial_map_expand_apply)
9847 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9848 (psym_lookup_global_symbol_language)
9849 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9850 (psym_print_stats, psym_expand_symtabs_for_function)
9851 (psym_map_symbol_filenames, psym_map_matching_symbols)
9852 (psym_expand_symtabs_matching)
9853 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9854 (maintenance_check_psymtabs): Update.
9855 * psympriv.h (struct partial_symtab) <readin_p,
9856 get_compunit_symtab>: Add objfile parameter.
9857 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
9858 Likewise.
9859 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
9860 get_compunit_symtab>: Likewise.
9861 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
9862
45940949
TT
98632020-05-27 Tom Tromey <tom@tromey.com>
9864
9865 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
9866 member.
9867 * dwarf2/read.c (delete_file_name_entry): Fix comment.
9868 (create_cu_from_index_list)
9869 (create_signatured_type_table_from_index)
9870 (create_signatured_type_table_from_debug_names)
9871 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
9872 (dwarf2_create_include_psymtab)
9873 (create_debug_type_hash_table, add_type_unit)
9874 (create_type_unit_group, read_comp_units_from_section)
9875 (dwarf2_compute_name, create_cus_hash_table)
9876 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9877 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
9878 obstack.
9879 (dw2_get_real_path): Likewise. Change argument to
9880 dwarf2_per_objfile.
9881
f8c6d152
LM
98822020-05-27 Luis Machado <luis.machado@linaro.org>
9883
9884 PR tdep/26000
9885 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
9886 for ldrd (immediate).
9887
e98d2e6d
PW
98882020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9889
9890 * command.h: Add comment giving the name of class_tui.
9891 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
9892 create the fake command for the help for class_tui.
9893
53a47a3e
TT
98942020-05-26 Tom Tromey <tromey@adacore.com>
9895
9896 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
9897 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
9898 (val_atr): New function.
9899 (value_val_atr): Use it.
9900 * ada-valprint.c (print_optional_low_bound): Change low bound
9901 handling for enums.
9902 (val_print_packed_array_elements): Don't call discrete_position.
9903 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
9904 discrete_position for enum types.
9905 * language.c (default_print_array_index): Change type.
9906 * language.h (struct language_defn) <la_print_array_index>: Add
9907 index_type parameter, change type of index_value.
9908 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
9909 (default_print_array_index): Update.
9910 * valprint.c (maybe_print_array_index): Don't call
9911 value_from_longest. Update.
9912 (value_print_array_elements): Don't call discrete_position.
9913
0bc2354b
TT
99142020-05-26 Tom Tromey <tromey@adacore.com>
9915
9916 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
9917 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
9918
1218a4bf
CDA
99192020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
9920
9921 PR gdb/13519
9922 * avr-tdep.c (avr_integer_to_address): Return data or code
9923 address accordingly to the second 'type' argument of the
9924 function.
9925
92651b1d
MW
99262020-05-25 Michael Weghorn <m.weghorn@posteo.de>
9927
9928 * infcmd.c, inferior.h: (construct_inferior_arguments):
9929 Moved function from here to gdbsupport/common-inferior.{h,cc}
9930
0a4f5f8c
TT
99312020-05-23 Tom Tromey <tom@tromey.com>
9932
9933 Revert commit eca1f90c:
9934 * NEWS: Remove entry for completion styling.
9935 * completer.c (_rl_completion_prefix_display_length): Move
9936 declaration later.
9937 (gdb_fnprint): Revert.
9938 (gdb_display_match_list_1): Likewise.
9939 * cli/cli-style.c (completion_prefix_style)
9940 (completion_difference_style, completion_suffix_style): Remove.
9941 (_initialize_cli_style): Revert.
9942 * cli/cli-style.h (completion_prefix_style)
9943 (completion_difference_style, completion_suffix_style): Don't
9944 declare.
9945
e08bd6c5
PA
99462020-05-24 Pedro Alves <palves@redhat.com>
9947
9948 * symtab.c (completion_list_add_name): Return boolean indication
9949 of whether the symbol matched.
9950 (completion_list_add_symbol): Don't try to remove C++ aliases if
9951 the symbol didn't match in the first place.
9952 * symtab.h (completion_list_add_name): Return bool.
9953
ceacbf6e
SM
99542020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
9955
9956 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
9957 type::field.
9958
26f16254
JB
99592020-05-23 Joel Brobecker <brobecker@adacore.com>
9960
9961 GDB 9.2 released.
9962
eca1f90c
TT
99632020-05-23 Tom Tromey <tom@tromey.com>
9964
9965 * NEWS: Add entry for completion styling.
9966 * completer.c (_rl_completion_prefix_display_length): Move
9967 declaration earlier.
9968 (gdb_fnprint): Use completion_style.
9969 (gdb_display_match_list_1): Likewise.
9970 * cli/cli-style.c (completion_prefix_style)
9971 (completion_difference_style, completion_suffix_style): New
9972 globals.
9973 (_initialize_cli_style): Register new globals.
9974 * cli/cli-style.h (completion_prefix_style)
9975 (completion_difference_style, completion_suffix_style): Declare.
9976
51e2cfa2
PA
99772020-05-23 Pedro Alves <palves@redhat.com>
9978
9979 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
9980 (parse_escape): Use ISDIGIT instead of isdigit.
9981 (puts_debug): Use gdb_isprint instead of isprint.
9982 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
9983 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
9984 ISSPACE instead of isspace.
9985 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
9986 instead of isspace.
9987 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
9988 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
9989 instead of isxdigit and ISDIGIT instead of isdigit.
9990
80fc5e77
SM
99912020-05-22 Simon Marchi <simon.marchi@efficios.com>
9992
9993 * gdbtypes.h (struct type) <field>: New method.
9994 (TYPE_FIELDS): Remove, replace all uses with either type::fields
9995 or type::field.
9996
3cabb6b0
SM
99972020-05-22 Simon Marchi <simon.marchi@efficios.com>
9998
9999 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
10000 (TYPE_FIELDS): Use type::fields. Change all call sites that
10001 modify the propery to use type::set_fields instead.
10002
1f704f76
SM
100032020-05-22 Simon Marchi <simon.marchi@efficios.com>
10004
10005 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
10006 type::num_fields instead.
10007
5e33d5f4
SM
100082020-05-22 Simon Marchi <simon.marchi@efficios.com>
10009
10010 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
10011 methods.
10012 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
10013 that modify the number of fields to use type::set_num_fields
10014 instead.
10015
9392ebb3
TT
100162020-05-22 Tom Tromey <tromey@adacore.com>
10017
10018 * compile/compile-object-load.h (munmap_list_free): Don't
10019 declare.
10020
7c13f4e8
AB
100212020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
10022
10023 * annotate.c (annotate_source_line): Update return type, add call
10024 to update current symtab and line.
10025 * annotate.h (annotate_source_line): Update return type, and
10026 extend header comment.
10027 * source.c (info_line_command): Check annotation_level before
10028 calling annotate_source_line.
10029 * stack.c (print_frame_info): If calling annotate_source_line
10030 returns true, then don't print any other source line information.
10031
aa370940
SM
100322020-05-21 Simon Marchi <simon.marchi@efficios.com>
10033
10034 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
10035
84d53fa9
SM
100362020-05-21 Simon Marchi <simon.marchi@efficios.com>
10037
10038 * coffread.c (patch_type): Remove NULL check before xfree.
10039 * corefile.c (set_gnutarget): Likewise.
10040 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
10041 * exec.c (build_section_table): Likewise.
10042 * remote.c (remote_target::pass_signals): Likewise.
10043 * utils.c (n_spaces): Likewise.
10044 * cli/cli-script.c (document_command): Likewise.
10045 * i386-windows-tdep.c (core_process_module_section): Likewise.
10046 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
10047
9d428aae
SM
100482020-05-20 Simon Marchi <simon.marchi@efficios.com>
10049
10050 * symfile.c (reread_symbols): Clear objfile's section_offsets
10051 vector and section indices, re-compute them by calling
10052 sym_offsets.
10053
250106a7
TT
100542020-05-20 Tom Tromey <tromey@adacore.com>
10055
10056 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 10057 (desc_one_bound, desc_index_type): Compute field name.
250106a7 10058
9a0bacfb
TV
100592020-05-20 Tom de Vries <tdevries@suse.de>
10060
10061 PR symtab/25833
10062 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
10063
7b958a48
AM
100642020-05-20 Alan Modra <amodra@gmail.com>
10065
10066 PR 25993
10067 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
10068 bfd_set_filename.
10069 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
10070 passed to bfd_set_filename.
10071 * symfile-mem.c (add_vsyscall_page): Likewise for string
10072 passed to symbol_file_add_from_memory.
10073 (symbol_file_add_from_memory): Make name param a const char* and
10074 don't strdup.
10075
c7e97679
AM
100762020-05-20 Alan Modra <amodra@gmail.com>
10077
10078 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
10079 rather than accessing bfd->filename directly.
10080 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
10081 and use bfd_section_name.
10082 * dwarf2/frame.c (decode_frame_entry): Likewise.
10083 * exec.c (exec_set_section_address): Likewise.
10084 * solib-aix.c (solib_aix_bfd_open): Likewise.
10085 * stap-probe.c (get_stap_base_address): Likewise.
10086 * symfile.c (reread_symbols): Likewise.
10087
563c591b
TT
100882020-05-19 Tom Tromey <tromey@adacore.com>
10089
10090 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
10091
f408d82c
SM
100922020-05-19 Simon Marchi <simon.marchi@efficios.com>
10093
10094 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
10095
98c59b52
PA
100962020-05-19 Pedro Alves <palves@redhat.com>
10097
10098 * NEWS (set exec-file-mismatch): Adjust entry.
10099 * exec.c: Include "build-id.h".
10100 (validate_exec_file): Try to match build IDs instead of filenames.
10101 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
10102 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
10103 and pass down 'warn_if_slow'.
10104 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
10105 gdb_bfd_open_closure to pass it down.
10106 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
10107
4111f652
PA
101082020-05-19 Pedro Alves <palves@redhat.com>
10109
10110 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
10111 * target.c (target_fileio_open_1): Rename to target_fileio_open
10112 and make extern. Use bool.
10113 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
10114 (target_fileio_read_alloc_1): Adjust.
10115 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
10116 (target_fileio_open_warn_if_slow): Delete declaration.
10117
ad80db5b
PA
101182020-05-19 Pedro Alves <palves@redhat.com>
10119
10120 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
10121 Adjust all callers.
10122
1d6ce4d3
YS
101232020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
10124
10125 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
10126 whether disp is negative.
10127
9005fbbb
SM
101282020-05-19 Simon Marchi <simon.marchi@efficios.com>
10129
10130 * symfile.h (struct symfile_segment_data)
10131 <~symfile_segment_data>: Remove.
10132 <segment_info>: Change to std::vector.
10133 * symfile.c (default_symfile_segments): Update.
10134 * elfread.c (elf_symfile_segments): Update.
10135
68b888ff
SM
101362020-05-19 Simon Marchi <simon.marchi@efficios.com>
10137
10138 * symfile.h (struct symfile_segment_data) <struct segment>: New.
10139 <segments>: New.
10140 <segment_bases, segment_sizes>: Remove.
10141 * symfile.c (default_symfile_segments): Update.
10142 * elfread.c (elf_symfile_segments): Update.
10143 * remote.c (remote_target::get_offsets): Update.
10144 * solib-target.c (solib_target_relocate_section_addresses):
10145 Update.
10146
62982abd
SM
101472020-05-19 Simon Marchi <simon.marchi@efficios.com>
10148
10149 * symfile.h (struct symfile_segment_data): Initialize fields.
10150 <~symfile_segment_data>: Add.
10151 (symfile_segment_data_up): New.
10152 (struct sym_fns) <sym_segments>: Return a
10153 symfile_segment_data_up.
10154 (default_symfile_segments): Return a symfile_segment_data_up.
10155 (free_symfile_segment_data): Remove.
10156 (get_symfile_segment_data): Return a symfile_segment_data_up.
10157 * symfile.c (default_symfile_segments): Likewise.
10158 (get_symfile_segment_data): Likewise.
10159 (free_symfile_segment_data): Remove.
10160 (symfile_find_segment_sections): Update.
10161 * elfread.c (elf_symfile_segments): Return a
10162 symfile_segment_data_up.
10163 * remote.c (remote_target::get_offsets): Update.
10164 * solib-target.c (solib_target_relocate_section_addresses):
10165 Update.
10166 * symfile-debug.c (debug_sym_segments): Return a
10167 symfile_segment_data_up.
10168
7f204339
RO
101692020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10170
e52a0f1b
RO
10171 PR build/25981
10172 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
10173 Hardcode register numbers.
10174
7f204339
RO
10175 PR build/25981
10176 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
10177 procfs_find_LDT_entry): Remove.
10178 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
10179 procfs_find_LDT_entry): Remove.
10180 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
10181 Remove.
10182
7f32a4d5
PA
101832020-05-17 Pedro Alves <palves@redhat.com>
10184 Andrew Burgess <andrew.burgess@embecosm.com>
10185 Keno Fischer <keno@juliacomputing.com>
10186
10187 PR gdb/25741
10188 * breakpoint.c (build_target_condition_list): Update comments.
10189 (build_target_command_list): Update comments and skip matching
10190 locations.
10191 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
10192 a separate function. Simplify "set breakpoint auto-hw off"
10193 handling.
10194 (insert_breakpoints): Update comment.
10195 (tracepoint_locations_match): New parameter. For breakpoints,
10196 compare location types too, if the caller wants to.
10197 (handle_automatic_hardware_breakpoints): New functions.
10198 (bp_location_is_less_than): Also sort by location type and
10199 hardware breakpoint length.
10200 (update_global_location_list): Handle "set breakpoint auto-hw on"
10201 here.
10202 (update_breakpoint_locations): Ask breakpoint_locations_match to
10203 ignore location types.
10204
7d93a1e0
SM
102052020-05-16 Simon Marchi <simon.marchi@efficios.com>
10206
10207 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
10208 type::name instead.
10209
d0e39ea2
SM
102102020-05-16 Simon Marchi <simon.marchi@efficios.com>
10211
10212 * gdbtypes.h (struct type) <name, set_name>: New methods.
10213 (TYPE_CODE): Use type::name. Change all call sites used to set
10214 the name to use type::set_name instead.
10215
2dab0c7b
TT
102162020-05-16 Tom Tromey <tom@tromey.com>
10217
10218 * top.c (quit_force): Update.
10219 * infrun.c (handle_no_resumed): Update.
10220 * top.h (all_uis): New function.
10221 (ALL_UIS): Remove.
10222
59f7bd8d
SM
102232020-05-16 Simon Marchi <simon.marchi@efficios.com>
10224
10225 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
10226
9bf058f0
PA
102272020-05-16 Pedro Alves <palves@redhat.com>
10228
10229 * ia64-linux-nat.c
10230 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
10231 Declare method.
10232 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
10233
8f86ae1a
SM
102342020-05-15 Simon Marchi <simon.marchi@efficios.com>
10235
10236 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
10237 (sparc64_adi_info): Likewise.
10238
d6bc0792
TT
102392020-05-15 Tom Tromey <tom@tromey.com>
10240
10241 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
10242 block_objfile.
10243 (lookup_objfile_from_block): Remove.
10244 (lookup_symbol_in_block, lookup_symbol_in_static_block)
10245 (lookup_global_symbol): Use block_objfile.
10246 * symtab.h (lookup_objfile_from_block): Don't declare.
10247 * printcmd.c (clear_dangling_display_expressions): Use
10248 block_objfile.
10249 * parse.c (operator_check_standard): Use block_objfile.
10250
8c14c3a3
TT
102512020-05-15 Tom Tromey <tom@tromey.com>
10252
10253 * language.c (language_alloc_type_symbol): Set
10254 SYMBOL_SECTION.
10255 * symtab.c (initialize_objfile_symbol): Remove.
10256 (allocate_symbol): Remove.
10257 (allocate_template_symbol): Remove.
10258 * dwarf2/read.c (fixup_go_packaging): Use "new".
10259 (new_symbol): Use "new".
10260 (read_variable): Don't call initialize_objfile_symbol. Use
10261 "new".
10262 (read_func_scope): Use "new".
10263 * xcoffread.c (process_xcoff_symbol): Don't call
10264 initialize_objfile_symbol.
10265 (SYMBOL_DUP): Remove.
10266 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
10267 "new".
10268 * symtab.h (allocate_symbol, initialize_objfile_symbol)
10269 (allocate_template_symbol): Don't declare.
10270 (struct symbol): Add copy constructor. Change defaults.
10271 * jit.c (finalize_symtab): Use "new".
10272 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
10273 Use "new".
10274 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
10275 (common_block_end): Use "new".
10276 * mdebugread.c (parse_symbol): Use "new".
10277 (new_symbol): Likewise.
10278
5b4a1a8d
PW
102792020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10280
10281 * NEWS: Mention changes to help and apropos.
10282
57b4f16e
PW
102832020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10284
10285 * command.h (enum command_class): Improve comments, document
10286 that class_alias is for user-defined aliases, give the class
10287 name for each class, remove unused class_xdb.
10288 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
10289 * breakpoint.c (_initialize_breakpoint): Replace class_alias
10290 by a precise class.
10291 * infcmd.c (_initialize_infcmd): Likewise.
10292 * reverse.c (_initialize_reverse): Likewise.
10293 * stack.c (_initialize_stack): Likewise.
10294 * symfile.c (_initialize_symfile): Likewise.
10295 * tracepoint.c (_initialize_tracepoint): Likewise.
10296
7c05caf7
PW
102972020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10298
10299 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
10300 when their aliased command is traversed.
10301 (help_cmd): Add fput_command_names_styled call to
10302 output command name and aliases when command has an alias.
10303
3b3aaacb
PW
103042020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10305
10306 * cli/cli-decode.h (help_cmd_list): Remove declaration.
10307 * cli/cli-decode.c (help_cmd_list): Declare as static,
10308 remove prefix argument, use bool for recurse arg, rework to show the aliases of
10309 a command together with the command.
10310 (fput_command_name_styled, fput_command_names_styled): New functions.
10311 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
10312 fput_command_name_styled.
10313 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
10314 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
10315
7aa1b46f
PW
103162020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10317
10318 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
10319 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
10320 * command.h (cmd_show_list): Likewise.
10321 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
10322 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
10323
89bcba74
PW
103242020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10325
10326 * unittests/command-def-selftests.c (traverse_command_structure):
10327 Verify all commands of a list have the same prefix command and
10328 that only the top cmdlist commands have a null prefix.
10329
3f4d92eb
PW
103302020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10331
10332 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
10333 as prefix, not one of its aliases.
10334 (set_cmd_prefix): Remove.
10335 (do_add_cmd): Centralize the setting of the prefix of a command, when
10336 command is defined after its full chain of prefix commands.
10337 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
10338 (add_setshow_cmd_full): Likewise.
10339 (update_prefix_field_of_prefixed_commands): New function.
10340 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
10341 update_prefix_field_of_prefixed_commands.
10342 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
10343 addresses of remote_set_cmdlist and remote_show_cmdlist given
10344 as argument, not the address of an argument.
10345 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
10346 * gdb/remote.c (_initialize_remote): Likewise.
10347
0605465f
PW
103482020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10349
10350 * cli/cli-cmds.c (alias_command): Check for an existing alias
10351 using lookup_cmd_composition, as valid_command_p is too strict
10352 and forbids aliases that are the prefix of an existing alias
10353 or command.
10354 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
10355 command is properly recognised as a valid command.
10356
58e6ac70
PW
103572020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10358
10359 * unittests/help-doc-selftests.c: Rename to
10360 unittests/command-def-selftests.c
10361 * unittests/command-def-selftests.c (help_doc_tests): Update some
10362 comments.
10363 (command_structure_tests, traverse_command_structure): New namespace
10364 and function.
10365 (command_structure_invariants_tests): New function.
10366 (_initialize_command_def_selftests) Renamed from
10367 _initialize_help_doc_selftests, register command_structure_invariants
10368 selftest.
10369
a7b9ceb8
PW
103702020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10371
10372 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
10373 an alias of 'show'.
10374
b2188a06
JB
103752020-05-15 Joel Brobecker <brobecker@adacore.com>
10376
10377 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
10378 ada_is_fixed_point_type. Update all callers.
10379 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
10380 all callers.
10381 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
10382 Update all callers.
10383 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
10384 print_fixed_point_type. Update all callers.
10385 * ada-valprint.c (ada_value_print_num): Replace call to
10386 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
10387
a51951c2
KB
103882020-05-14 Kevin Buettner <kevinb@redhat.com>
10389
10390 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
10391 processors.
10392 (cpu_supports_bts): Add CV_AMD case.
10393
29d6859f
LM
103942020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
10395 Simon Marchi <simon.marchi@efficios.com>
10396
10397 * infrun.c (stop_all_threads): Collect multiple wait events at
10398 each pass.
10399
78134374
SM
104002020-05-14 Simon Marchi <simon.marchi@efficios.com>
10401
10402 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
10403 type::code instead.
10404
67607e24
SM
104052020-05-14 Simon Marchi <simon.marchi@efficios.com>
10406
10407 * gdbtypes.h (struct type) <code, set_code>: New methods.
10408 (TYPE_CODE): Use type::code. Change all call sites used to set
10409 the code to use type::set_code instead.
10410
a05575d3
TBA
104112020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10412 Tom de Vries <tdevries@suse.de>
10413 Pedro Alves <palves@redhat.com>
10414
10415 PR threads/25478
10416 * infrun.c (stop_all_threads): Do NOT ignore
10417 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
10418 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
10419 received.
10420 (handle_no_resumed): Remove code handling a live inferior with no
10421 threads.
10422 * remote.c (has_single_non_exited_thread): New.
10423 (remote_target::update_thread_list): Do not delete a thread if is
10424 the last thread of the process.
10425 * thread.c (thread_select): Call delete_exited_threads instead of
10426 prune_threads.
10427
6ad82919
TBA
104282020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10429
10430 * infrun.c (stop_all_threads): Enable/disable thread events of all
10431 targets. Move a debug message denoting the end of the function
10432 into the SCOPED_EXIT block.
10433
d890404b
TBA
104342020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10435
10436 * process-stratum-target.h: Include <set>.
10437 (all_non_exited_process_targets, switch_to_target_no_thread): New
10438 function declarations.
10439 * process-stratum-target.c (all_non_exited_process_targets)
10440 (switch_to_target_no_thread): New function implementations.
10441
293b3ebc
TBA
104422020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10443
10444 * infrun.c (handle_inferior_event): Extract out a piece of code
10445 into...
10446 (mark_non_executing_threads): ...this new function.
10447
7ca9b62a
TBA
104482020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10449
10450 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
10451 use.
10452
fc75c28b
TBA
104532020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10454
10455 * regcache.c (regcache_read_pc_protected): New function
10456 implementation that returns 0 if the PC cannot read via
10457 'regcache_read_pc'.
10458 * infrun.c (proceed): Call 'regcache_read_pc_protected'
10459 instead of 'regcache_read_pc'.
10460 (keep_going_pass_signal): Ditto.
10461
a89febbd
TT
104622020-05-13 Tom Tromey <tromey@adacore.com>
10463
10464 * ada-lang.c (align_value): Remove.
10465 (ada_template_to_fixed_record_type_1): Use align_up.
10466
f7e23710
TBA
104672020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10468
10469 * async-event.c: Update the copyright year.
10470 * async-event.h: Update the copyright year.
10471
02ff80c2
SM
104722020-05-12 Simon Marchi <simon.marchi@efficios.com>
10473
10474 * objfiles.h (is_addr_in_objfile,
10475 shared_objfile_contains_address_p): Return bool.
10476 * objfile.c (is_addr_in_objfile,
10477 shared_objfile_contains_address_p): Return bool.
10478
4fd6c7e8
TT
104792020-05-11 Tom Tromey <tromey@adacore.com>
10480
10481 * cli/cli-cmds.c (info_command): Restore.
10482 (_initialize_cli_cmds): Use add_prefix_command for "info".
10483 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
10484
5eb68a39
TT
104852020-05-11 Tom Tromey <tromey@adacore.com>
10486
10487 * ada-lang.c (ada_value_primitive_field): Now public.
10488 * ada-lang.h (ada_value_primitive_field): Declare.
10489 * ada-valprint.c (print_field_values): Use
10490 ada_value_primitive_field for wrapper fields.
10491
7666722f
TV
104922020-05-11 Tom de Vries <tdevries@suse.de>
10493
10494 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
10495 MODULE_DOMAIN.
10496
3ee6bb11
TV
104972020-05-11 Tom de Vries <tdevries@suse.de>
10498
10499 PR symtab/25941
10500 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
10501 with length 0, if not gdb-produced.
10502 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
10503
43434996
TV
105042020-05-09 Tom de Vries <tdevries@suse.de>
10505
10506 PR gdb/25955
10507 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
10508 calculation.
10509
2f78cffc
TT
105102020-05-09 Tom Tromey <tom@tromey.com>
10511
10512 * top.c (server_command): Now bool.
10513 * top.h (server_command): Now bool.
10514
4f7bc5ed
TT
105152020-05-08 Tom Tromey <tromey@adacore.com>
10516
10517 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
10518 already being processed.
10519
8be4b118
TT
105202020-05-08 Tom Tromey <tom@tromey.com>
10521
10522 * printcmd.c (struct display) <next>: Remove.
10523 <display>: New constructor.
10524 <exp_string>: Now a std::string.
10525 <enabled_p>: Now a bool.
10526 (display_number): Move definition earlier.
10527 (displays): Rename from display_chain. Now a std::vector.
10528 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
10529 (display_command): Update.
10530 (do_one_display, disable_display)
10531 (enable_disable_display_command, do_enable_disable_display):
10532 Update.
10533 (free_display): Remove.
10534 (clear_displays): Rewrite.
10535 (delete_display): Update.
10536 (map_display_numbers): Use function_view. Remove "data"
10537 parameter. Update.
10538 (do_delete_display): Remove.
10539 (undisplay_command): Update.
10540 (do_one_display, do_displays, disable_display)
10541 (info_display_command): Update.
10542 (do_enable_disable_display): Remove.
10543 (enable_disable_display_command)
10544 (clear_dangling_display_expressions): Update.
10545
94c93c35
TT
105462020-05-08 Tom Tromey <tom@tromey.com>
10547
10548 * symtab.c (set_symbol_cache_size)
10549 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
10550 (maintenance_print_symbol_cache_statistics): Update.
10551 * symmisc.c (print_symbol_bcache_statistics)
10552 (print_objfile_statistics, maintenance_print_objfiles)
10553 (maintenance_info_symtabs, maintenance_check_symtabs)
10554 (maintenance_expand_symtabs, maintenance_info_line_tables):
10555 Update.
10556 * symfile-debug.c (set_debug_symfile): Update.
10557 * source.c (forget_cached_source_info): Update.
10558 * python/python.c (gdbpy_progspaces): Update.
10559 * psymtab.c (maintenance_info_psymtabs): Update.
10560 * probe.c (parse_probes): Update.
10561 * linespec.c (iterate_over_all_matching_symtabs)
10562 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
10563 * guile/scm-progspace.c (gdbscm_progspaces): Update.
10564 * exec.c (exec_target::close): Update.
10565 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
10566 * breakpoint.c (print_one_breakpoint_location)
10567 (create_longjmp_master_breakpoint)
10568 (create_std_terminate_master_breakpoint): Update.
10569 * progspace.c (program_spaces): Now a std::vector.
10570 (maybe_new_address_space): Update.
10571 (add_program_space): Remove.
10572 (program_space::program_space): Update.
10573 (remove_program_space): Update.
10574 (number_of_program_spaces): Remove.
10575 (print_program_space, update_address_spaces): Update.
10576 * progspace.h (program_spaces): Change type.
10577 (ALL_PSPACES): Remove.
10578 (number_of_program_spaces): Don't declare.
10579 (struct program_space) <next>: Remove.
10580
a1fd1ac9
TT
105812020-05-08 Tom Tromey <tom@tromey.com>
10582
10583 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
10584 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
10585 (enable_break): Update.
10586 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
10587 (frv_fdpic_find_canonical_descriptor): Update.
10588 (frv_fetch_objfile_link_map): Update.
10589 * progspace.c (program_space::free_all_objfiles): Update.
10590 (program_space::solibs): New method.
10591 * progspace.h (struct program_space) <solibs>: New method.
10592 * solist.h (master_so_list): Don't declare.
10593 (ALL_SO_LIBS): Remove.
10594 * solib.h (so_list_head): Remove.
10595 (update_solib_list): Update comment.
10596 * solib.c (master_so_list): Remove.
10597 (solib_used, update_solib_list, solib_add)
10598 (info_sharedlibrary_command, clear_solib)
10599 (reload_shared_libraries_1, remove_user_added_objfile): Update.
10600
38eae084
TT
106012020-05-08 Tom Tromey <tom@tromey.com>
10602
10603 * extension.c (extension_languages): Now a std::array.
10604 (ALL_EXTENSION_LANGUAGES): Remove.
10605 (get_ext_lang_defn, get_ext_lang_of_file)
10606 (eval_ext_lang_from_control_command): Update.
10607 (finish_ext_lang_initialization)
10608 (auto_load_ext_lang_scripts_for_objfile)
10609 (ext_lang_type_printers::ext_lang_type_printers)
10610 (apply_ext_lang_type_printers)
10611 (ext_lang_type_printers::~ext_lang_type_printers)
10612 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
10613 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
10614 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
10615 (get_matching_xmethod_workers, ext_lang_colorize)
10616 (ext_lang_before_prompt): Update.
10617 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
10618
596dc4ad
TT
106192020-05-08 Tom Tromey <tom@tromey.com>
10620
10621 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
10622 overload.
10623 <swap_string, m_string>: Remove.
10624 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
10625 Update.
10626 * stabsread.c (define_symbol, read_type): Update.
10627 * linespec.c (find_linespec_symbols): Update.
10628 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
10629 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
10630 * dbxread.c (read_dbx_symtab): Update.
10631 * cp-support.h (cp_canonicalize_string_full)
10632 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
10633 Return unique_xmalloc_ptr.
10634 * cp-support.c (inspect_type): Update.
10635 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
10636 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
10637 Likewise.
10638 * c-typeprint.c (print_name_maybe_canonical): Update.
10639 * break-catch-throw.c (check_status_exception_catchpoint):
10640 Update.
10641
bf4cb9be
TV
106422020-05-08 Tom de Vries <tdevries@suse.de>
10643
10644 * infrun.c (follow_fork): Copy current_line and current_symtab to
10645 child thread.
10646
a1b68f28
SM
106472020-05-07 Simon Marchi <simon.marchi@efficios.com>
10648
10649 * async-event.c (struct async_signal_handler, struct
10650 async_event_handler): Reformat, remove typedef.
10651
98d48915
SM
106522020-05-07 Simon Marchi <simon.marchi@efficios.com>
10653
10654 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
10655 access thistype->main_type->dyn_prop_list directly.
10656
7aa91313
SM
106572020-05-07 Simon Marchi <simon.marchi@efficios.com>
10658
10659 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
10660 (remove_dyn_prop): Remove. Update all users to use
10661 type::remove_dyn_prop.
10662 * gdbtypes.c (remove_dyn_prop): Rename to...
10663 (type::remove_dyn_prop): ... this.
10664
5c54719c
SM
106652020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
10666
10667 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
10668 (add_dyn_prop): Remove. Update all users to use
10669 type::add_dyn_prop.
10670 * gdbtypes.c (add_dyn_prop): Rename to...
10671 (type::add_dyn_prop): ... this.
10672
24e99c6c
SM
106732020-05-07 Simon Marchi <simon.marchi@efficios.com>
10674
10675 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
10676 (get_dyn_prop): Remove. Update all users to use
10677 type::dyn_prop.
10678 * gdbtypes.c (get_dyn_prop): Rename to...
10679 (type::dyn_prop): ... this.
10680
0d4bf016
SM
106812020-05-06 Simon Marchi <simon.marchi@efficios.com>
10682
10683 * gdbtypes.h (struct main_type) <flag_static>: Remove.
10684
ac4a4f1c
SM
106852020-05-06 Simon Marchi <simon.marchi@efficios.com>
10686
10687 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
10688 instruction, skip it if it's there.
10689
a3bbacc1
SM
106902020-05-05 Simon Marchi <simon.marchi@efficios.com>
10691
10692 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
10693
c3236f84
SM
106942020-05-04 Simon Marchi <simon.marchi@efficios.com>
10695
10696 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
10697 * gdbtypes.c (recursive_dump_type): Remove use of
10698 TYPE_INCOMPLETE.
10699
3b6acaee
TT
107002020-05-03 Tom Tromey <tom@tromey.com>
10701
10702 * breakpoint.c (catch_command, tcatch_command): Remove.
10703 (_initialize_breakpoint): Use add_basic_prefix_cmd,
10704 add_show_prefix_cmd.
10705 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
10706 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
10707 Remove.
10708 (add_internal_problem_command): Use add_basic_prefix_cmd,
10709 add_show_prefix_cmd.
10710 * mips-tdep.c (set_mipsfpu_command): Remove.
10711 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
10712 * dwarf2/index-cache.c (set_index_cache_command): Remove.
10713 (_initialize_index_cache): Use add_basic_prefix_cmd.
10714 * memattr.c (dummy_cmd): Remove.
10715 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
10716 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
10717 (_initialize_tui_win): Use add_basic_prefix_cmd,
10718 add_show_prefix_cmd.
10719 * cli/cli-logging.c (set_logging_command): Remove.
10720 (_initialize_cli_logging): Use add_basic_prefix_cmd,
10721 add_show_prefix_cmd.
10722 (show_logging_command): Remove.
10723 * target.c (target_command): Remove.
10724 (add_target): Use add_basic_prefix_cmd.
10725
a51119cd
HD
107262020-05-02 Hannes Domani <ssbssa@yahoo.de>
10727
10728 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
10729
652fc23a 107302020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 10731
652fc23a
PW
10732 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
10733 info_command.
10734
117539e6
KR
107352020-04-30 Kamil Rytarowski <n54@gmx.com>
10736
10737 * nbsd-nat.c (nbsd_enable_proc_events)
10738 (nbsd_nat_target::post_startup_inferior): Add.
10739 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
10740 (nbsd_nat_target::update_thread_list): Rewrite.
10741 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
10742 "PTRACE_LWP_CREATE".
10743 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
10744
102e38eb 107452020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 10746
102e38eb
PW
10747 * stack.c (_initialize_stack): Remove duplicated creation
10748 of "frame" command and "f" alias.
10749
ee9d1e5f
HD
107502020-04-30 Hannes Domani <ssbssa@yahoo.de>
10751
10752 PR gdb/18706
10753 * gdbtypes.c (check_typedef): Calculate size of array of
10754 stubbed type.
10755
627c7fb8
HD
107562020-04-30 Hannes Domani <ssbssa@yahoo.de>
10757
10758 PR gdb/15559
10759 * i386-tdep.c (i386_push_dummy_call): Call
10760 i386_thiscall_push_dummy_call.
10761 (i386_thiscall_push_dummy_call): New function.
10762 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
10763 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
10764 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
10765
ffc2844e
SM
107662020-04-29 Simon Marchi <simon.marchi@efficios.com>
10767
10768 * gdbarch.sh (do_read): Add shellcheck disable directive for
10769 warning SC2162.
10770
1207375d
SM
107712020-04-29 Simon Marchi <simon.marchi@efficios.com>
10772
10773 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
10774 "referenced but not assigned" warning.
10775
9fdb2916
SM
107762020-04-29 Simon Marchi <simon.marchi@efficios.com>
10777
10778 * gdbarch.sh: Remove code that sets fallbackdefault.
10779
759cea5e
SM
107802020-04-29 Simon Marchi <simon.marchi@efficios.com>
10781
10782 * gdbarch.sh: Use shell operators && and || instead of
10783 -a and -o.
10784
cb02ab24
SM
107852020-04-29 Simon Marchi <simon.marchi@efficios.com>
10786
10787 * gdbarch.sh: Use $(...) instead of `...`.
10788
a6fc5ffc
SM
107892020-04-29 Simon Marchi <simon.marchi@efficios.com>
10790
10791 * gdbarch.sh: Use double quotes around variables.
10792
8d113d13
SM
107932020-04-29 Simon Marchi <simon.marchi@efficios.com>
10794
10795 * gdbarch.sh: Use %s with printf, instead of variables in the
10796 format string.
10797
ed6acedd
TT
107982020-04-29 Tom Tromey <tromey@adacore.com>
10799
10800 PR ada/25875:
10801 * dwarf2/read.c (update_enumeration_type_from_children): Compute
10802 type fields here.
10803 (read_enumeration_type): Call
10804 update_enumeration_type_from_children later. Update comments.
10805 (process_enumeration_scope): Don't create type fields.
10806
b68b1b58
KR
108072020-04-29 Kamil Rytarowski <n54@gmx.com>
10808
10809 * nbsd-tdep.c: Include "xml-syscall.h".
10810 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
10811
f94b2e03
KR
108122020-04-29 Kamil Rytarowski <n54@gmx.com>
10813
10814 * nbsd-nat.c: Include "sys/wait.h".
10815 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
10816 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
10817 (nbsd_nat_target::remove_exec_catchpoint)
10818 (nbsd_nat_target::set_syscall_catchpoint): Add.
10819 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
10820 (nbsd_nat_target::insert_exec_catchpoint)
10821 (nbsd_nat_target::remove_exec_catchpoint)
10822 (nbsd_nat_target::set_syscall_catchpoint): Add.
10823 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
10824 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
10825 `nbsd_get_syscall_number'.
10826
fc49bc72
TT
108272020-04-29 Tom Tromey <tom@tromey.com>
10828
10829 * stack.c (print_block_frame_labels): Remove.
10830
d642b692
HD
108312020-04-29 Hannes Domani <ssbssa@yahoo.de>
10832
10833 PR gdb/17320
10834 * ada-valprint.c (val_print_packed_array_elements): Move array
10835 end bracket to new line.
10836 (ada_val_print_string): Remove extra spaces before first array
10837 element.
10838 * c-valprint.c (c_value_print_array): Likewise.
10839 * m2-valprint.c (m2_print_array_contents): Likewise.
10840 (m2_value_print_inner): Likewise.
10841 * p-valprint.c (pascal_value_print_inner): Likewise.
10842 * valprint.c (generic_val_print_array): Likewise.
10843 (value_print_array_elements): Move first array element and array
10844 end bracket to new line.
10845
ea90f227
TV
108462020-04-29 Tom de Vries <tdevries@suse.de>
10847
10848 PR symtab/25889
10849 * linespec.c (find_method): Fix ix calculation.
10850
4498ef4f
KR
108512020-04-28 Kamil Rytarowski <n54@gmx.com>
10852
10853 * syscalls/update-netbsd.sh: New file.
10854 * syscalls/netbsd.xml: Regenerate.
10855 * data-directory/Makefile.in: Register `netbsd.xml' in
10856 `SYSCALLS_FILES'.
10857
a55e30b5
SM
108582020-04-28 Simon Marchi <simon.marchi@efficios.com>
10859
10860 * syscalls/update-freebsd.sh: Add double quotes.
10861
2b2fbab8
TT
108622020-04-28 Tom Tromey <tom@tromey.com>
10863
10864 * NEWS: Update.
10865 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
10866 (cmdpy_init): Allow class_tui.
10867
a65189c9
TV
108682020-04-28 Mark Williams <mark@myosotissp.com>
10869
10870 PR gdb/24480
10871 * dwarf2read.c: Add missing assingments to list_in_scope when
10872 start_symtab was already called.
10873
1b95cdb7
SM
108742020-04-28 Simon Marchi <simon.marchi@efficios.com>
10875
10876 PR gdb/25881
10877 * dwarf2/read.c (offset_map_type): Use
10878 gdb:hash_enum<sect_offset> as hash function.
10879
15cd93d0
TV
108802020-04-28 Tom de Vries <tdevries@suse.de>
10881
10882 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
10883 with DW_AT_signature.
10884
1eb39914
SM
108852020-04-27 Simon Marchi <simon.marchi@efficios.com>
10886
10887 * configure.ac: Remove check for fs_base/gs_base in
10888 user_regs_struct.
10889 * configure: Re-generate.
10890 * config.in: Re-generate.
10891 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
10892 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
10893 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
10894
991a3e2e
LM
108952020-04-27 Luis Machado <luis.machado@linaro.org>
10896
10897 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
10898 problematic inline frame unwinding situation.
10899 * frame.c (frame_id_computed_p): New function.
10900 * frame.h (frame_id_computed_p): New prototype.
10901
361ba0e8
TT
109022020-04-26 Tom Tromey <tom@tromey.com>
10903
10904 * command.h (enum command_class) <class_pseudo>: Remove.
10905
bc3609fd
PW
109062020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10907
10908 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
10909 and whitespace.
10910
b9771db7
KR
109112020-04-25 Kamil Rytarowski <n54@gmx.com>
10912
ec16513e
SM
10913 * inf-ptrace.c (inf_ptrace_target::wait): Remove
10914 `PT_GET_PROCESS_STATE' block.
b9771db7 10915
7151c1af
TT
109162020-04-24 Tom Tromey <tom@tromey.com>
10917
10918 * symtab.h (symbol_get_demangled_name): Don't declare.
10919 * symtab.c (symbol_get_demangled_name): Remove.
10920 (general_symbol_info::natural_name)
10921 (general_symbol_info::demangled_name): Update.
10922
906bb4c5
TT
109232020-04-24 Tom Tromey <tom@tromey.com>
10924
10925 PR rust/25025:
10926 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
10927
bcfe6157
TT
109282020-04-24 Tom Tromey <tom@tromey.com>
10929
10930 PR symtab/12707:
10931 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
10932 exists.
10933 (new_symbol): Likewise.
10934 * compile/compile-object-load.c (get_out_value_type): Use
10935 symbol_matches_search_name.
10936
f049a313
TT
109372020-04-24 Tom Tromey <tom@tromey.com>
10938
10939 * dwarf2/read.c (add_partial_symbol): Do not call
10940 compute_and_set_names.
10941
76e288d1
TT
109422020-04-24 Tom Tromey <tom@tromey.com>
10943
10944 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
10945 overload.
10946
2467f4f6
TT
109472020-04-24 Tom Tromey <tom@tromey.com>
10948
10949 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
10950 (add_psymbol_to_list): New overload. Make old overload call new
10951 one.
10952 * psympriv.h (add_psymbol_to_list): New overload.
10953
e61108c9
TT
109542020-04-24 Tom Tromey <tom@tromey.com>
10955
10956 * dwarf2/read.c (partial_die_info::read) <case
10957 DW_AT_linkage_name>: Use value_as_string.
10958 (dwarf2_string_attr): Use value_as_string.
10959 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
10960 method.
10961 * dwarf2/attribute.c (attribute::value_as_string): New method.
10962
8c87a452
TT
109632020-04-24 Tom Tromey <tom@tromey.com>
10964
10965 * symtab.c (general_symbol_info::natural_name)
10966 (general_symbol_info::demangled_name): Check for language_rust.
10967
787de330
TT
109682020-04-24 Tom Tromey <tom@tromey.com>
10969
10970 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
10971 (dwarf2_physname): ... from here.
10972 (partial_die_info::read): Add Rust "{" hack.
10973
ff985671
TT
109742020-04-24 Tom Tromey <tom@tromey.com>
10975
10976 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
10977 method.
10978 (symbol_set_demangled_name): Don't declare.
10979 * symtab.c (general_symbol_info::set_demangled_name): Rename from
10980 symbol_set_demangled_name.
10981 (general_symbol_info::set_language)
10982 (general_symbol_info::compute_and_set_names): Update.
10983 * minsyms.c (minimal_symbol_reader::install): Update.
10984 * dwarf2/read.c (new_symbol): Update.
10985
1acda803
TT
109862020-04-24 Tom Tromey <tromey@adacore.com>
10987
10988 PR python/23662:
10989 * python/py-type.c (convert_field): Handle
10990 FIELD_LOC_KIND_DWARF_BLOCK.
10991 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
10992 (typy_get_dynamic): Nw function.
10993 (type_object_getset): Add "dynamic".
10994 * NEWS: Add entry.
10995
d656f129
TT
109962020-04-24 Tom Tromey <tromey@adacore.com>
10997
10998 * ada-typeprint.c (print_choices, print_variant_part)
10999 (print_record_field_types_dynamic): New functions.
11000 (print_record_field_types): Use print_record_field_types_dynamic.
11001
7d79de9a
TT
110022020-04-24 Tom Tromey <tromey@adacore.com>
11003
11004 * dwarf2/read.c (handle_data_member_location): New overload.
11005 (dwarf2_add_field): Use it.
11006 (decode_locdesc): Add "computed" parameter. Update comment.
11007 * gdbtypes.c (is_dynamic_type_internal): Also look for
11008 FIELD_LOC_KIND_DWARF_BLOCK.
11009 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
11010 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
11011 virtual base classes.
11012 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
11013 FIELD_LOC_KIND_DWARF_BLOCK.
11014
f8e89861
TT
110152020-04-24 Tom Tromey <tromey@adacore.com>
11016
11017 * dwarf2/read.c (read_structure_type): Handle dynamic length.
11018 * gdbtypes.c (is_dynamic_type_internal): Check
11019 TYPE_HAS_DYNAMIC_LENGTH.
11020 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
11021 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
11022 New macros.
11023 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
11024 constant.
11025
9c6a1327
TT
110262020-04-24 Tom Tromey <tromey@adacore.com>
11027
11028 * dwarf2/read.c (struct variant_field): Rewrite.
11029 (struct variant_part_builder): New.
11030 (struct nextfield): Remove "variant" field. Add "offset".
11031 (struct field_info): Add "current_variant_part" and
11032 "variant_parts".
11033 (alloc_discriminant_info): Remove.
11034 (alloc_rust_variant): New function.
11035 (quirk_rust_enum): Update.
11036 (dwarf2_add_field): Set "offset" member. Don't handle
11037 DW_TAG_variant_part.
11038 (offset_map_type): New typedef.
11039 (convert_variant_range, create_one_variant)
11040 (create_one_variant_part, create_variant_parts)
11041 (add_variant_property): New functions.
11042 (dwarf2_attach_fields_to_type): Call add_variant_property.
11043 (read_structure_type): Don't handle DW_TAG_variant_part.
11044 (handle_variant_part, handle_variant): New functions.
11045 (handle_struct_member_die): Use them.
11046 (process_structure_scope): Don't handle variant parts.
11047 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
11048 (struct discriminant_info): Remove.
11049 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
11050 (struct main_type) <flag_discriminated_union>: Remove.
11051 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
11052 (rust_enum_variant): Return int. Remove "contents". Rewrite.
11053 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
11054 Update.
11055 * valops.c (value_union_variant): Remove.
11056 * value.h (value_union_variant): Don't declare.
11057
b249d2c2
TT
110582020-04-24 Tom Tromey <tromey@adacore.com>
11059
11060 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
11061 (ada_value_primitive_packed_val): Update.
11062 * ada-valprint.c (ada_value_print_1): Update.
11063 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
11064 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
11065 just an address. Use evaluate_for_locexpr_baton.
11066 (dwarf2_evaluate_property): Update.
11067 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
11068 array_view.
11069 * findvar.c (default_read_var_value): Update.
11070 * gdbtypes.c (compute_variant_fields_inner)
11071 (resolve_dynamic_type_internal): Update.
11072 (resolve_dynamic_type): Change type of valaddr parameter.
11073 * gdbtypes.h (resolve_dynamic_type): Update.
11074 * valarith.c (value_subscripted_rvalue): Update.
11075 * value.c (value_from_contents_and_address): Update.
11076
61122aa9
TT
110772020-04-24 Tom Tromey <tromey@adacore.com>
11078
11079 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
11080 "push_initial_value" parameter.
11081 (dwarf2_evaluate_property): Likewise.
11082 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
11083
ef83a141
TT
110842020-04-24 Tom Tromey <tromey@adacore.com>
11085
11086 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
11087 (variant::matches, compute_variant_fields_recurse)
11088 (compute_variant_fields_inner, compute_variant_fields): New
11089 functions.
11090 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
11091 Use resolved_type after type is made.
11092 (operator==): Add new cases.
11093 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
11094 (struct discriminant_range, struct variant, struct variant_part):
11095 New.
11096 (union dynamic_prop_data) <variant_parts, original_type>: New
11097 members.
11098 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
11099 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
11100 constants.
11101 * value.c (unpack_bits_as_long): Now public.
11102 * value.h (unpack_bits_as_long): Declare.
11103
675127ec
TT
111042020-04-24 Tom Tromey <tromey@adacore.com>
11105
11106 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
11107 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
11108
9852ceef
HD
111092020-04-24 Hannes Domani <ssbssa@yahoo.de>
11110
11111 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
11112
7632c6ce
KR
111132020-04-24 Kamil Rytarowski <n54@gmx.com>
11114
11115 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
11116 (remove_fork_catchpoint, post_startup_inferior)
11117 (post_attach): Move...
11118 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
11119 (remove_fork_catchpoint, post_startup_inferior)
11120 (post_attach): ...here.
11121 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
11122 (remove_fork_catchpoint, post_startup_inferior)
11123 (post_attach): Move...
11124 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
11125 (remove_fork_catchpoint, post_startup_inferior)
11126 (post_attach): ...here.
11127
7be2bb4f
TT
111282020-04-24 Tom Tromey <tromey@adacore.com>
11129
11130 * nat/windows-nat.h (struct windows_thread_info)
11131 <pc_adjusted>: New member.
11132 * windows-nat.c (windows_fetch_one_register): Check
11133 pc_adjusted.
11134 (windows_nat_target::get_windows_debug_event)
11135 (windows_nat_target::wait): Set pc_adjusted.
11136
f80cb3b4
TV
111372020-04-24 Tom de Vries <tdevries@suse.de>
11138
11139 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
11140 Run gdb-add-index inside temp dir.
11141
29514b87
TT
111422020-04-23 Tom Tromey <tromey@adacore.com>
11143
11144 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
11145 in loop.
11146
5939967b
LM
111472020-04-23 Luis Machado <luis.machado@linaro.org>
11148
11149 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
11150 get_frame_register instead of gdbarch_unwind_pc.
11151
70bc38f5
TV
111522020-04-23 Tom de Vries <tdevries@suse.de>
11153
11154 * symtab.c (lookup_global_symbol): Prefer def over decl.
11155
de82891c
TV
111562020-04-23 Tom de Vries <tdevries@suse.de>
11157
11158 PR symtab/25807
11159 * block.c (best_symbol, better_symbol): Promote to external.
11160 * block.h (best_symbol, better_symbol): Declare.
11161 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
11162 decl.
11163
ecc6c606
TT
111642020-04-23 Tom Tromey <tromey@adacore.com>
11165
11166 PR ada/25837:
11167 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
11168 "const char *", not a "const std::string &".
11169 <name_and_matcher::operator==>: Update.
11170 * unittests/lookup_name_info-selftests.c: Change type of
11171 "result".
11172
740480b8
TT
111732020-04-23 Tom Tromey <tom@tromey.com>
11174
11175 * inferior.h (iterate_over_inferiors): Don't declare.
11176 * inferior.c (iterate_over_inferiors): Remove.
11177 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
11178 Remove.
11179 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
11180 use iterate_over_inferiors.
11181 (darwin_resume_inferior_it)
11182 (struct resume_inferior_threads_param)
11183 (darwin_resume_inferior_threads_it): Remove.
11184 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
11185
ae3ab1f0
TV
111862020-04-23 Tom de Vries <tdevries@suse.de>
11187
11188 * blockframe.c (find_pc_partial_function): Use
11189 find_pc_sect_compunit_symtab rather than
11190 objfile->sf->qf->find_pc_sect_compunit_symtab.
11191
317d2668
TV
111922020-04-22 Tom de Vries <tdevries@suse.de>
11193
11194 PR symtab/25764
11195 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
11196 in psymtabs.
11197
eea9e357
TV
111982020-04-22 Tom de Vries <tdevries@suse.de>
11199
11200 PR symtab/25801
11201 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
11202 symtabs.
11203
3d5afab3
TV
112042020-04-22 Tom de Vries <tdevries@suse.de>
11205
11206 PR symtab/25700
11207 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
11208 CU if already created.
11209
d43b7a2d
TBA
112102020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11211
11212 * infrun.c (displaced_step_fixup): Switch to the event_thread
11213 before calling displaced_step_restore, not after.
11214
d89edf9b
MM
112152020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11216
11217 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
11218 its inferior is not recorded by us.
11219 (record_btrace_target_open): Replace call to
11220 all_non_exited_threads () with call to current_inferior
11221 ()->non_exited_threads ().
11222 (record_btrace_target::stop_recording): Likewise.
11223 (record_btrace_target::close): Likewise.
11224 (record_btrace_target::wait): Likewise.
11225 (record_btrace_target::record_stop_replaying): Likewise.
11226
5897fd49
MM
112272020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11228
11229 * btrace.c (btrace_enable): Throw an error on double enables and
11230 when enabling recording fails.
11231 (btrace_disable): Throw an error if the thread is not recorded.
11232
1a476b6d
MM
112332020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11234
11235 * record-btrace.c (record_btrace_target::fetch_registers): Forward
11236 request if we do not have a thread_info.
11237
4778a5f8
TV
112382020-04-21 Tom de Vries <tdevries@suse.de>
11239
11240 PR gdb/25471
11241 * thread.c
11242 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
11243 exception in get_frame_id.
11244
0fa7617d
TT
112452020-04-20 Tom Tromey <tromey@adacore.com>
11246
11247 * python/python.c (struct gdbpy_event): Mark move constructor as
11248 noexcept.
11249 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
11250 constructor as noexcept.
11251 * completer.h (struct completion_result): Mark move constructor as
11252 noexcept.
11253 * completer.c (completion_result::completion_result): Use
11254 initialization style. Don't call reset_match_list.
11255
ad23bda0
MS
112562020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
11257
11258 * MAINTAINERS (Write After Approval): Add myself.
11259
45e1f031
TT
112602020-04-18 Tom Tromey <tom@tromey.com>
11261
11262 * windows-tdep.c (init_w32_command_list)
11263 (w32_prefix_command_valid): Restore.
11264 (_initialize_windows_tdep): Call init_w32_command_list.
11265
08feed99
TT
112662020-04-18 Tom Tromey <tom@tromey.com>
11267
11268 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
11269 * value.c (value_fn_field): Update.
11270 * valops.c (find_function_in_inferior)
11271 (value_allocate_space_in_inferior): Update.
11272 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11273 Update.
11274 * tui/tui-source.c (tui_source_window::set_contents): Update.
11275 * symtab.c (lookup_global_or_static_symbol)
11276 (find_function_start_sal_1, skip_prologue_sal)
11277 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
11278 * symmisc.c (dump_msymbols, dump_symtab_1)
11279 (maintenance_print_one_line_table): Update.
11280 * symfile.c (init_entry_point_info, section_is_mapped)
11281 (list_overlays_command, simple_read_overlay_table)
11282 (simple_overlay_update_1): Update.
11283 * stap-probe.c (handle_stap_probe): Update.
11284 * stabsread.c (dbx_init_float_type, define_symbol)
11285 (read_one_struct_field, read_enum_type, read_range_type): Update.
11286 * source.c (info_line_command): Update.
11287 * python/python.c (gdbpy_source_objfile_script)
11288 (gdbpy_execute_objfile_script): Update.
11289 * python/py-type.c (save_objfile_types): Update.
11290 * python/py-objfile.c (py_free_objfile): Update.
11291 * python/py-inferior.c (python_new_objfile): Update.
11292 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
11293 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
11294 (maintenance_check_psymtabs): Update.
11295 * printcmd.c (info_address_command): Update.
11296 * objfiles.h (struct objfile) <arch>: New method, from
11297 get_objfile_arch.
11298 (get_objfile_arch): Don't declare.
11299 * objfiles.c (get_objfile_arch): Remove.
11300 (filter_overlapping_sections): Update.
11301 * minsyms.c (msymbol_is_function): Update.
11302 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
11303 (output_nondebug_symbol): Update.
11304 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
11305 (mdebug_expand_psymtab): Update.
11306 * machoread.c (macho_add_oso_symfile): Update.
11307 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
11308 Update.
11309 * linux-fork.c (checkpoint_command): Update.
11310 * linespec.c (convert_linespec_to_sals): Update.
11311 * jit.c (finalize_symtab): Update.
11312 * infrun.c (insert_exception_resume_from_probe): Update.
11313 * ia64-tdep.c (ia64_find_unwind_table): Update.
11314 * hppa-tdep.c (internalize_unwinds): Update.
11315 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
11316 Update.
11317 * gcore.c (call_target_sbrk): Update.
11318 * elfread.c (record_minimal_symbol, elf_symtab_read)
11319 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
11320 (elf_gnu_ifunc_resolve_by_got): Update.
11321 * dwarf2/read.c (create_addrmap_from_index)
11322 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11323 (read_debug_names_from_section)
11324 (process_psymtab_comp_unit_reader, add_partial_symbol)
11325 (add_partial_subprogram, process_full_comp_unit)
11326 (read_file_scope, read_func_scope, read_lexical_block_scope)
11327 (read_call_site_scope, dwarf2_ranges_read)
11328 (dwarf2_record_block_ranges, dwarf2_add_field)
11329 (mark_common_block_symbol_computed, read_tag_pointer_type)
11330 (read_tag_string_type, dwarf2_init_float_type)
11331 (dwarf2_init_complex_target_type, read_base_type)
11332 (partial_die_info::read, partial_die_info::read)
11333 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
11334 (dwarf2_fetch_die_loc_sect_off): Update.
11335 * dwarf2/loc.c (dwarf2_find_location_expression)
11336 (class dwarf_evaluate_loc_desc, rw_pieced_value)
11337 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
11338 (dwarf2_loc_desc_get_symbol_read_needs)
11339 (locexpr_describe_location_piece, locexpr_describe_location_1)
11340 (loclist_describe_location): Update.
11341 * dwarf2/index-write.c (write_debug_names): Update.
11342 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
11343 * dtrace-probe.c (dtrace_process_dof): Update.
11344 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
11345 (process_one_symbol): Update.
11346 * ctfread.c (ctf_init_float_type, read_base_type): Update.
11347 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
11348 (coff_read_enum_type): Update.
11349 * cli/cli-cmds.c (edit_command, list_command): Update.
11350 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
11351 * breakpoint.c (create_overlay_event_breakpoint)
11352 (create_longjmp_master_breakpoint)
11353 (create_std_terminate_master_breakpoint)
11354 (create_exception_master_breakpoint, get_sal_arch): Update.
11355 * block.c (block_gdbarch): Update.
11356 * annotate.c (annotate_source_line): Update.
11357
0743fc83
TT
113582020-04-17 Tom Tromey <tromey@adacore.com>
11359
11360 * auto-load.c (show_auto_load_cmd): Remove.
11361 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
11362 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
11363 (maintenance_print_arc_command): Remove.
11364 * tui/tui-win.c (tui_command): Remove.
11365 (tui_get_cmd_list): Use add_basic_prefix_cmd.
11366 * tui/tui-layout.c (tui_layout_command): Remove.
11367 (_initialize_tui_layout): Use add_basic_prefix_cmd.
11368 * python/python.c (user_set_python, user_show_python): Remove.
11369 (_initialize_python): Use add_basic_prefix_cmd,
11370 add_show_prefix_cmd.
11371 * guile/guile.c (set_guile_command, show_guile_command): Remove.
11372 (install_gdb_commands): Use add_basic_prefix_cmd,
11373 add_show_prefix_cmd.
11374 (info_guile_command): Remove.
11375 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
11376 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
11377 add_show_prefix_cmd.
11378 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
11379 Remove do_set and do_show parameters.
11380 * cli/cli-style.c (set_style, show_style): Remove.
11381 (_initialize_cli_style): Use add_basic_prefix_cmd,
11382 add_show_prefix_cmd.
11383 (cli_style_option::add_setshow_commands): Remove do_set and
11384 do_show parameters.
11385 (cli_style_option::add_setshow_commands): Use
11386 add_basic_prefix_cmd, add_show_prefix_cmd.
11387 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
11388 (set_style_name): Remove.
11389 * cli/cli-dump.c (dump_command, append_command): Remove.
11390 (srec_dump_command, ihex_dump_command, verilog_dump_command)
11391 (tekhex_dump_command, binary_dump_command)
11392 (binary_append_command): Remove.
11393 (_initialize_cli_dump): Use add_basic_prefix_cmd.
11394 * windows-tdep.c (w32_prefix_command_valid): Remove global.
11395 (init_w32_command_list): Remove; move into ...
11396 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
11397 * valprint.c (set_print, show_print, set_print_raw)
11398 (show_print_raw): Remove.
11399 (_initialize_valprint): Use add_basic_prefix_cmd,
11400 add_show_prefix_cmd.
11401 * typeprint.c (set_print_type, show_print_type): Remove.
11402 (_initialize_typeprint): Use add_basic_prefix_cmd,
11403 add_show_prefix_cmd.
11404 * record.c (set_record_command, show_record_command): Remove.
11405 (_initialize_record): Use add_basic_prefix_cmd,
11406 add_show_prefix_cmd.
11407 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
11408 add_show_prefix_cmd.
11409 (info_command, show_command, set_debug, show_debug): Remove.
11410 * top.h (set_history, show_history): Don't declare.
11411 * top.c (set_history, show_history): Remove.
11412 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
11413 (unset_tdesc_cmd): Remove.
11414 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
11415 add_show_prefix_cmd.
11416 * symtab.c (info_module_command): Remove.
11417 (_initialize_symtab): Use add_basic_prefix_cmd.
11418 * symfile.c (overlay_command): Remove.
11419 (_initialize_symfile): Use add_basic_prefix_cmd.
11420 * sparc64-tdep.c (info_adi_command): Remove.
11421 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
11422 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
11423 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
11424 add_show_prefix_cmd.
11425 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
11426 (_initialize_serial): Use add_basic_prefix_cmd,
11427 add_show_prefix_cmd.
11428 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
11429 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
11430 add_show_prefix_cmd.
11431 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
11432 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
11433 add_show_prefix_cmd.
11434 * riscv-tdep.c (show_riscv_command, set_riscv_command)
11435 (show_debug_riscv_command, set_debug_riscv_command): Remove.
11436 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
11437 add_show_prefix_cmd.
11438 * remote.c (remote_command, set_remote_cmd): Remove.
11439 (_initialize_remote): Use add_basic_prefix_cmd.
11440 * record-full.c (set_record_full_command)
11441 (show_record_full_command): Remove.
11442 (_initialize_record_full): Use add_basic_prefix_cmd,
11443 add_show_prefix_cmd.
11444 * record-btrace.c (cmd_set_record_btrace)
11445 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
11446 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
11447 (cmd_show_record_btrace_pt): Remove.
11448 (_initialize_record_btrace): Use add_basic_prefix_cmd,
11449 add_show_prefix_cmd.
11450 * ravenscar-thread.c (set_ravenscar_command)
11451 (show_ravenscar_command): Remove.
11452 (_initialize_ravenscar): Use add_basic_prefix_cmd,
11453 add_show_prefix_cmd.
11454 * mips-tdep.c (show_mips_command, set_mips_command)
11455 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
11456 add_show_prefix_cmd.
11457 * maint.c (maintenance_command, maintenance_info_command)
11458 (maintenance_check_command, maintenance_print_command)
11459 (maintenance_set_cmd, maintenance_show_cmd): Remove.
11460 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
11461 add_show_prefix_cmd.
11462 (show_per_command_cmd): Remove.
11463 * maint-test-settings.c (maintenance_set_test_settings_cmd):
11464 Remove.
11465 (maintenance_show_test_settings_cmd): Remove.
11466 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
11467 add_show_prefix_cmd.
11468 * maint-test-options.c (maintenance_test_options_command):
11469 Remove.
11470 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
11471 * macrocmd.c (macro_command): Remove
11472 (_initialize_macrocmd): Use add_basic_prefix_cmd.
11473 * language.c (set_check, show_check): Remove.
11474 (_initialize_language): Use add_basic_prefix_cmd,
11475 add_show_prefix_cmd.
11476 * infcmd.c (unset_command): Remove.
11477 (_initialize_infcmd): Use add_basic_prefix_cmd.
11478 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
11479 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
11480 add_show_prefix_cmd.
11481 * go32-nat.c (go32_info_dos_command): Remove.
11482 (_initialize_go32_nat): Use add_basic_prefix_cmd.
11483 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
11484 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
11485 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
11486 (_initialize_frame): Use add_basic_prefix_cmd,
11487 add_show_prefix_cmd.
11488 * dcache.c (set_dcache_command, show_dcache_command): Remove.
11489 (_initialize_dcache): Use add_basic_prefix_cmd,
11490 add_show_prefix_cmd.
11491 * cp-support.c (maint_cplus_command): Remove.
11492 (_initialize_cp_support): Use add_basic_prefix_cmd.
11493 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
11494 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
11495 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
11496 add_basic_prefix_cmd, add_show_prefix_cmd.
11497 * breakpoint.c (save_command): Remove.
11498 (_initialize_breakpoint): Use add_basic_prefix_cmd.
11499 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
11500 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
11501 add_show_prefix_cmd.
11502 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
11503 (set_ada_command, show_ada_command): Remove.
11504 (_initialize_ada_language): Use add_basic_prefix_cmd,
11505 add_show_prefix_cmd.
11506 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
11507
3557f442
KR
115082020-04-16 Kamil Rytarowski <n54@gmx.com>
11509
11510 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
11511 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
11512
16197208
SM
115132020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11514
11515 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
11516 warning messages.
11517
00ac85d3
SM
115182020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11519
11520 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
11521 import table is not at beginning of .idata section.
11522
381ce63f
PA
115232020-04-16 Pedro Alves <palves@redhat.com>
11524
11525 * inferior.c (delete_inferior): Use delete operator directly
11526 instead of delete_program_space.
11527 * progspace.c (add_program_space): New, factored out from
11528 program_space::program_space.
11529 (remove_program_space): New, factored out from
11530 delete_program_space.
11531 (program_space::program_space): Remove intro comment. Rewrite.
11532 (program_space::~program_space): Remove intro comment. Call
11533 remove_program_space.
11534 (delete_program_space): Delete.
11535 * progspace.h (program_space::program_space): Make explicit. Move
11536 intro comment here, adjusted.
11537 (program_space::~program_space): Move intro comment here,
11538 adjusted.
11539 (delete_program_space): Remove.
11540
a010605f
TT
115412020-04-16 Tom Tromey <tromey@adacore.com>
11542
11543 * windows-nat.c (windows_nat::handle_access_violation): New
11544 function.
11545 * nat/windows-nat.h (handle_access_violation): Declare.
11546 * nat/windows-nat.c (handle_exception): Move Cygwin code to
11547 windows-nat.c. Call handle_access_violation.
11548
efba5c23
TV
115492020-04-16 Tom de Vries <tdevries@suse.de>
11550
11551 PR symtab/25791
11552 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
11553 CUs without psymtab.
11554
97ed802d
KB
115552020-04-16 Kevin Buettner <kevinb@redhat.com>
11556
11557 * python/python.c (do_start_initialization): Don't call
11558 PyEval_InitThreads for Python 3.9 and beyond.
11559
c7d64809
KR
115602020-04-15 Kamil Rytarowski <n54@gmx.com>
11561
11562 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
11563 thread functions.
11564 (obsd_nat_target::wait): Likewise.
11565
ce127a96
TT
115662020-04-15 Tom Tromey <tromey@adacore.com>
11567
11568 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
11569 (DEBUG_EXCEPT): Use debug_printf.
11570
99f1bc6a
AB
115712020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
11572
11573 * completer.c (class completion_tracker::completion_hash_entry)
11574 <hash_name>: New member function.
11575 (completion_tracker::discard_completions): New callback to hash a
11576 completion_hash_entry, pass this to htab_create_alloc.
11577
a0e9b532
JT
115782016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
11579
11580 * windows-nat.c (windows_make_so): Warn rather than stopping with
11581 an error if realpath() fails.
11582
06ca5dd4
KR
115832020-04-14 Kamil Rytarowski <n54@gmx.com>
11584
11585 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
11586 (nbsd_nat_target::info_proc): Add do_status.
11587
194d088f
TV
115882020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
11589 Tom de Vries <tdevries@suse.de>
11590
11591 PR symtab/25718
11592 * psympriv.h (struct partial_symtab::read_symtab)
11593 (struct partial_symtab::expand_psymtab)
11594 (struct partial_symtab::read_dependencies): Update comments.
11595 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
11596 read_symtab for includer.
11597 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
11598 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
11599 (struct dwarf2_include_psymtab::m_readin): Remove.
11600 (struct dwarf2_include_psymtab::includer): New member function.
11601 (dwarf2_psymtab::expand_psymtab): Assert !readin.
11602
c1a66c06
TV
116032020-04-14 Tom de Vries <tdevries@suse.de>
11604
11605 PR symtab/25720
11606 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
11607 with NULL symbol_matcher and lookup_name.
11608 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
11609 and lookup_name.
11610 * dwarf2/read.c (dw2_expand_symtabs_matching)
11611 (dw2_debug_names_expand_symtabs_matching): Same.
11612 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
11613 Make lookup_name a pointer. Update comment.
11614 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
11615 lookup_name being a pointer.
11616 * symfile.c (expand_symtabs_matching): Same.
11617 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
11618 * linespec.c (iterate_over_all_matching_symtabs): Same.
11619
400b5eca
TT
116202020-04-13 Tom Tromey <tom@tromey.com>
11621
11622 * run-on-main-thread.c: Update include.
11623 * unittests/main-thread-selftests.c: Update include.
11624 * tui/tui-win.c: Update include.
11625 * tui/tui-io.c: Update include.
11626 * tui/tui-interp.c: Update include.
11627 * tui/tui-hooks.c: Update include.
11628 * top.h: Update include.
11629 * top.c: Update include.
11630 * ser-base.c: Update include.
11631 * remote.c: Update include.
11632 * remote-notif.c: Update include.
11633 * remote-fileio.c: Update include.
11634 * record-full.c: Update include.
11635 * record-btrace.c: Update include.
11636 * python/python.c: Update include.
11637 * posix-hdep.c: Update include.
11638 * mingw-hdep.c: Update include.
11639 * mi/mi-main.c: Update include.
11640 * mi/mi-interp.c: Update include.
11641 * main.c: Update include.
11642 * linux-nat.c: Update include.
11643 * interps.c: Update include.
11644 * infrun.c: Update include.
11645 * inf-loop.c: Update include.
11646 * event-top.c: Update include.
11647 * event-loop.c: Move to ../gdbsupport/.
11648 * event-loop.h: Move to ../gdbsupport/.
11649 * async-event.h: Update include.
11650 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
11651
93b54c8e
TT
116522020-04-13 Tom Tromey <tom@tromey.com>
11653
11654 * tui/tui-win.c: Include async-event.h.
11655 * remote.c: Include async-event.h.
11656 * remote-notif.c: Include async-event.h.
11657 * record-full.c: Include async-event.h.
11658 * record-btrace.c: Include async-event.h.
11659 * infrun.c: Include async-event.h.
11660 * event-top.c: Include async-event.h.
11661 * event-loop.h: Move some declarations to async-event.h.
11662 * event-loop.c: Don't include ser-event.h or top.h. Move some
11663 code to async-event.c.
11664 * async-event.h: New file.
11665 * async-event.c: New file.
11666 * Makefile.in (COMMON_SFILES): Add async-event.c.
11667 (HFILES_NO_SRCDIR): Add async-event.h.
11668
c1cd3163
TT
116692020-04-13 Tom Tromey <tom@tromey.com>
11670
11671 * utils.c (flush_streams): New function.
11672 * event-loop.c (gdb_wait_for_event): Call flush_streams.
11673
29f2bf4f
TT
116742020-04-13 Tom Tromey <tom@tromey.com>
11675
11676 * event-loop.c (handle_file_event): Use warning, not
11677 printf_unfiltered.
11678
98029d02
TT
116792020-04-13 Tom Tromey <tom@tromey.com>
11680
11681 * event-loop.c: Include <chrono>.
11682
06cc9596
TT
116832020-04-13 Tom Tromey <tom@tromey.com>
11684
11685 * gdb_select.h: Move to ../gdbsupport/.
11686 * event-loop.c: Update include path.
11687 * top.c: Update include path.
11688 * ser-base.c: Update include path.
11689 * ui-file.c: Update include path.
11690 * ser-tcp.c: Update include path.
11691 * guile/scm-ports.c: Update include path.
11692 * posix-hdep.c: Update include path.
11693 * ser-unix.c: Update include path.
11694 * gdb_usleep.c: Update include path.
11695 * mingw-hdep.c: Update include path.
11696 * inflow.c: Update include path.
11697 * infrun.c: Update include path.
11698 * event-top.c: Update include path.
11699
8ae8e197
TT
117002020-04-13 Tom Tromey <tom@tromey.com>
11701
11702 * configure: Rebuild.
11703 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
11704
58cf28e8
TT
117052020-04-13 Tom Tromey <tom@tromey.com>
11706
11707 * event-loop.h (start_event_loop): Don't declare.
11708 * event-loop.c (start_event_loop): Move...
11709 * main.c (start_event_loop): ...here. Now static.
11710
b7f999ae
SDJ
117112020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
11712
11713 * MAINTAINERS: Update my email address.
11714
1085dfd4
KR
117152020-04-12 Kamil Rytarowski <n54@gmx.com>
11716
11717 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
11718 IP_ALL.
11719
49d1d1f5
KR
117202020-04-12 Kamil Rytarowski <n54@gmx.com>
11721
11722 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 11723 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 11724
b4848d2a
KR
117252020-04-12 Kamil Rytarowski <n54@gmx.com>
11726
11727 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 11728 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 11729
51c133d5
KR
117302020-04-12 Kamil Rytarowski <n54@gmx.com>
11731
11732 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
11733
54b8cbd0
KR
117342020-04-11 Kamil Rytarowski <n54@gmx.com>
11735
11736 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
11737 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
11738 (nbsd_nat_target::info_proc): New functions.
11739 * nbsd-nat.c (kinfo_get_vmmap): New function.
11740 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
11741 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
11742 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
11743 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
11744 functions.
11745 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
11746 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
11747 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
11748 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
11749 (KINFO_VME_FLAG_GROWS_DOWN): New.
11750
cf83625d
AS
117512020-04-10 Artur Shepilko <nomadbyte@gmail.com>
11752
11753 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
11754 bit shift.
11755
0c4311ab
TT
117562020-04-10 Tom Tromey <tromey@adacore.com>
11757
11758 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
11759
3e65b3e9
TT
117602020-04-10 Tom Tromey <tromey@adacore.com>
11761
11762 * symtab.c (get_symbol_address, get_msymbol_address): Skip
11763 separate debug files.
11764
13302e95
HD
117652020-04-10 Hannes Domani <ssbssa@yahoo.de>
11766
11767 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11768 Move to...
11769 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11770 ... here.
11771 * windows-nat.c (windows_nat_target::get_windows_debug_event):
11772 Check for STATUS_WX86_BREAKPOINT.
11773 (windows_nat_target::wait): Same.
11774
bdfc1e8a
TV
117752020-04-10 Tom de Vries <tdevries@suse.de>
11776
11777 PR cli/25808
11778 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
11779
f4460aec
SM
117802020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11781
11782 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
11783 (Write After Approval): Remove Tom de Vries.
11784
a25198bb
BE
117852020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
11786
11787 revert partially:
11788 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11789
aac66a4c
SM
11790 * buildsym.c (record_line): Fix undefined behavior and preserve
11791 lines at eof.
a25198bb 11792
206c98a6
KR
117932020-04-09 Kamil Rytarowski <n54@gmx.com>
11794
11795 * auxv.h (svr4_auxv_parse): New.
11796 * auxv.c (default_auxv_parse): Split into default_auxv_parse
11797 and generic_auxv_parse.
11798 (svr4_auxv_parse): Add.
11799 * obsd-tdep.c: Include "auxv.h".
11800 (obsd_auxv_parse): Remove.
11801 (obsd_init_abi): Remove comment.
11802 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
11803 from `obsd_auxv_parse' to `svr4_auxv_parse'.
11804 * nbsd-tdep.c: Include "auxv.h".
11805 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
11806
71fbdbaf
TT
118072020-04-08 Tom Tromey <tromey@adacore.com>
11808
11809 * nat/windows-nat.h (last_wait_event): Don't declare.
11810 (wait_for_debug_event): Update comment.
11811 * nat/windows-nat.c (last_wait_event): Now static.
11812
2c1d95e8
TT
118132020-04-08 Tom Tromey <tromey@adacore.com>
11814
11815 * windows-nat.c (wait_for_debug_event): Move to
11816 nat/windows-nat.c.
11817 * nat/windows-nat.h (wait_for_debug_event): Declare.
11818 * nat/windows-nat.c (wait_for_debug_event): Move from
11819 windows-nat.c. No longer static.
11820
d2977bc4
TT
118212020-04-08 Tom Tromey <tromey@adacore.com>
11822
11823 * windows-nat.c (get_windows_debug_event): Use
11824 fetch_pending_stop.
11825 * nat/windows-nat.h (fetch_pending_stop): Declare.
11826 * nat/windows-nat.c (fetch_pending_stop): New function.
11827
e758e19c
TT
118282020-04-08 Tom Tromey <tromey@adacore.com>
11829
11830 * windows-nat.c (windows_continue): Use matching_pending_stop and
11831 continue_last_debug_event.
11832 * nat/windows-nat.h (matching_pending_stop)
11833 (continue_last_debug_event): Declare.
11834 * nat/windows-nat.c (DEBUG_EVENTS): New define.
11835 (matching_pending_stop, continue_last_debug_event): New
11836 functions.
11837
8d30e395
TT
118382020-04-08 Tom Tromey <tromey@adacore.com>
11839
11840 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
11841 (handle_exception_result): Move to nat/windows-nat.h.
11842 (DEBUG_EXCEPTION_SIMPLE): Remove.
11843 (windows_nat::handle_ms_vc_exception): New function.
11844 (handle_exception): Move to nat/windows-nat.c.
11845 (get_windows_debug_event): Update.
11846 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
11847 nat/windows-nat.c.
11848 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
11849 (handle_exception_result): Move from windows-nat.c.
11850 (handle_exception): Declare.
11851 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
11852 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
11853 windows-nat.c.
11854
29de418d
TT
118552020-04-08 Tom Tromey <tromey@adacore.com>
11856
11857 * windows-nat.c (exception_count, event_count): Remove.
11858 (handle_exception, get_windows_debug_event)
11859 (do_initial_windows_stuff): Update.
11860
a816ba18
TT
118612020-04-08 Tom Tromey <tromey@adacore.com>
11862
11863 * windows-nat.c (windows_nat::handle_load_dll)
11864 (windows_nat::handle_unload_dll): Rename. No longer static.
11865 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
11866 Declare.
11867
a00caa12
TT
118682020-04-08 Tom Tromey <tromey@adacore.com>
11869
11870 * complaints.h (stop_whining): Declare at top-level.
11871 (complaint): Don't declare stop_whining.
11872
d41b524f
TT
118732020-04-08 Tom Tromey <tromey@adacore.com>
11874
11875 * windows-nat.c (windows_nat::handle_output_debug_string):
11876 Rename. No longer static.
11877 * nat/windows-nat.h (handle_output_debug_string): Declare.
11878
3c76026d
TT
118792020-04-08 Tom Tromey <tromey@adacore.com>
11880
11881 * windows-nat.c (current_process_handle, current_process_id)
11882 (main_thread_id, last_sig, current_event, last_wait_event)
11883 (current_windows_thread, desired_stop_thread_id, pending_stops)
11884 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
11885 (display_selectors, fake_create_process)
11886 (get_windows_debug_event): Update.
11887 * nat/windows-nat.h (current_process_handle, current_process_id)
11888 (main_thread_id, last_sig, current_event, last_wait_event)
11889 (current_windows_thread, desired_stop_thread_id, pending_stops)
11890 (struct pending_stop, siginfo_er): Move from windows-nat.c.
11891 * nat/windows-nat.c (current_process_handle, current_process_id)
11892 (main_thread_id, last_sig, current_event, last_wait_event)
11893 (current_windows_thread, desired_stop_thread_id, pending_stops)
11894 (siginfo_er): New globals. Move from windows-nat.c.
11895
9d8679cc
TT
118962020-04-08 Tom Tromey <tromey@adacore.com>
11897
11898 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
11899 (handle_load_dll): Update.
11900 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
11901
28688adf
TT
119022020-04-08 Tom Tromey <tromey@adacore.com>
11903
11904 * windows-nat.c (enum thread_disposition_type): Move to
11905 nat/windows-nat.h.
11906 (windows_nat::thread_rec): Rename from thread_rec. No longer
11907 static.
11908 (windows_add_thread, windows_nat_target::fetch_registers)
11909 (windows_nat_target::store_registers, handle_exception)
11910 (windows_nat_target::resume, get_windows_debug_event)
11911 (windows_nat_target::get_tib_address)
11912 (windows_nat_target::thread_name)
11913 (windows_nat_target::thread_alive): Update.
11914 * nat/windows-nat.h (enum thread_disposition_type): Move from
11915 windows-nat.c.
11916 (thread_rec): Declare.
11917
4834dad0
TT
119182020-04-08 Tom Tromey <tromey@adacore.com>
11919
11920 * windows-nat.c: Add "using namespace".
11921 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
11922 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
11923
65bafd5b
TT
119242020-04-08 Tom Tromey <tromey@adacore.com>
11925
11926 * nat/windows-nat.h (struct windows_thread_info): Declare
11927 destructor.
11928 * nat/windows-nat.c (~windows_thread_info): New.
11929
0a4afda3
TT
119302020-04-08 Tom Tromey <tromey@adacore.com>
11931
11932 PR gdb/22992
11933 * windows-nat.c (current_event): Update comment.
11934 (last_wait_event, desired_stop_thread_id): New globals.
11935 (struct pending_stop): New.
11936 (pending_stops): New global.
11937 (windows_nat_target) <stopped_by_sw_breakpoint>
11938 <supports_stopped_by_sw_breakpoint>: New methods.
11939 (windows_fetch_one_register): Add assertions. Adjust PC.
11940 (windows_continue): Handle pending stops. Suspend other threads
11941 when stepping. Use last_wait_event
11942 (wait_for_debug_event): New function.
11943 (get_windows_debug_event): Use wait_for_debug_event. Handle
11944 pending stops. Queue spurious stops.
11945 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
11946 (windows_nat_target::kill): Use wait_for_debug_event.
11947 * nat/windows-nat.h (struct windows_thread_info)
11948 <stopped_at_software_breakpoint>: New field.
11949 * nat/windows-nat.c (windows_thread_info::resume): Clear
11950 stopped_at_software_breakpoint.
11951
8e61ebec
TT
119522020-04-08 Tom Tromey <tromey@adacore.com>
11953
11954 * windows-nat.c (enum thread_disposition_type): New.
11955 (thread_rec): Replace "get_context" parameter with "disposition";
11956 change type.
11957 (windows_add_thread, windows_nat_target::fetch_registers)
11958 (windows_nat_target::store_registers, handle_exception)
11959 (windows_nat_target::resume, get_windows_debug_event)
11960 (windows_nat_target::get_tib_address)
11961 (windows_nat_target::thread_name)
11962 (windows_nat_target::thread_alive): Update.
11963
98a03287
TT
119642020-04-08 Tom Tromey <tromey@adacore.com>
11965
11966 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
11967 (windows_continue): Use windows_continue::resume.
11968 * nat/windows-nat.h (struct windows_thread_info) <suspend,
11969 resume>: Declare new methods.
11970 * nat/windows-nat.c: New file.
11971 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
11972
7c7411bc
TT
119732020-04-08 Tom Tromey <tromey@adacore.com>
11974
11975 * windows-nat.c (windows_add_thread, windows_delete_thread)
11976 (windows_nat_target::fetch_registers)
11977 (windows_nat_target::store_registers, fake_create_process)
11978 (windows_nat_target::resume, windows_nat_target::resume)
11979 (get_windows_debug_event, windows_nat_target::wait)
11980 (windows_nat_target::pid_to_str)
11981 (windows_nat_target::get_tib_address)
11982 (windows_nat_target::get_ada_task_ptid)
11983 (windows_nat_target::thread_name)
11984 (windows_nat_target::thread_alive): Use lwp, not tid.
11985
2950fdf7
TT
119862020-04-08 Tom Tromey <tromey@adacore.com>
11987
11988 * windows-nat.c (handle_exception)
11989 (windows_nat_target::thread_name): Update.
11990 * nat/windows-nat.h (windows_thread_info): Remove destructor.
11991 <name>: Now unique_xmalloc_ptr.
11992
62fe396b
TT
119932020-04-08 Tom Tromey <tromey@adacore.com>
11994
11995 * windows-nat.c (thread_rec)
11996 (windows_nat_target::fetch_registers): Update.
11997 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
11998 Update comment.
11999 <debug_registers_changed, reload_context>: Now bool.
12000
e9534bd2
TT
120012020-04-08 Tom Tromey <tromey@adacore.com>
12002
12003 * windows-nat.c (windows_add_thread): Use new.
12004 (windows_init_thread_list, windows_delete_thread): Use delete.
12005 (get_windows_debug_event): Update.
12006 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
12007 destructor, and initializers.
12008
ae1f8880
TT
120092020-04-08 Tom Tromey <tromey@adacore.com>
12010
12011 * windows-nat.c (struct windows_thread_info): Remove.
12012 * nat/windows-nat.h: New file.
12013
55a1e039
TT
120142020-04-08 Tom Tromey <tromey@adacore.com>
12015
12016 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
12017 (thread_rec, windows_add_thread, windows_delete_thread)
12018 (windows_continue): Update.
12019
93366324
TT
120202020-04-08 Tom Tromey <tromey@adacore.com>
12021
12022 * windows-nat.c (struct windows_thread_info): Remove typedef.
12023 (thread_head): Remove.
12024 (thread_list): New global.
12025 (thread_rec, windows_add_thread, windows_init_thread_list)
12026 (windows_delete_thread, windows_continue): Update.
12027
0f2265e2
SM
120282020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12029
12030 * windows-tdep.h (windows_init_abi): Add comment.
12031 (cygwin_init_abi): New declaration.
12032 * windows-tdep.c: Split signal enumeration in two, one for
12033 Windows and one for Cygwin.
12034 (windows_gdb_signal_to_target): Only deal with signal of the
12035 Windows OS ABI.
12036 (cygwin_gdb_signal_to_target): New function.
12037 (windows_init_abi): Rename to windows_init_abi_common, don't set
12038 gdb_signal_to_target gdbarch method. Add new new function with
12039 this name.
12040 (cygwin_init_abi): New function.
12041 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
12042 comment. Don't call windows_init_abi.
12043 (amd64_windows_init_abi): Add comment, call windows_init_abi.
12044 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
12045 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
12046 i386_windows_init_abi_common, don't call windows_init_abi. Add
12047 a new function of this name.
12048 (i386_cygwin_init_abi): New function.
12049 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
12050 OS ABI Cygwin.
12051
3810f182
SM
120522020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12053
12054 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
12055 parameter.c.
12056 (dwarf2_read_gdb_index): Update.
12057
063f8e80
KR
120582020-04-07 Kamil Rytarowski <n54@gmx.com>
12059
12060 * nbsd-tdep.c: Include "objfiles.h".
12061 (nbsd_skip_solib_resolver): New.
12062 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
12063
85a9510c 120642020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12065
12066 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
12067 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
12068 with DW_LLE_base_addressx are being emitted in DWARFv5.
12069 Add the newly added kind DW_LOC_OFFSET_PAIR also.
12070 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
12071 unsigned integer.
12072
9fc3eaae 120732020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12074
12075 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
12076 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
12077 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
12078 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
12079 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
12080 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
12081 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
12082
12083
41144253 120842020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12085
12086 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
12087 (read_loclist_index): New function definition.
12088 (lookup_loclist_base): New function definition.
12089 (read_loclist_header): New function definition.
12090 (dwarf2_cu): Add loclist_base and loclist_header field.
12091 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
12092 (read_full_die_1): Read the value of DW_AT_loclists_base.
12093 (read_attribute_reprocess): Handle DW_FORM_loclistx.
12094 (read_attribute_value): Handle DW_FORM_loclistx.
12095 (skip_one_die): Handle DW_FORM_loclistx.
12096 (loclist_header): New structure declaration.
12097 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
12098
9f4e76a4
SM
120992020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12100
12101 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
12102 constructor. Remove `addr` parameter from other constructor and
12103 add `per_cu` parameter.
12104 * dwarf2/read.c (create_partial_symtab): Update.
12105
25c11aca
TV
121062020-04-07 Tom de Vries <tdevries@suse.de>
12107
12108 PR symtab/25796
12109 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
12110 (partial_die_info::fixup): Inherit has_const_value.
12111
5707e24b
TV
121122020-04-07 Tom de Vries <tdevries@suse.de>
12113
12114 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
12115 symbols without address.
12116
05f00e22
KR
121172020-04-06 Kamil Rytarowski <n54@gmx.com>
12118
12119 * nbsd-nat.h (struct thread_info): Add forward declaration.
12120 (nbsd_nat_target::thread_alive): Add.
12121 (nbsd_nat_target::thread_name): Likewise.
12122 (nbsd_nat_target::update_thread_list): Likewise.
12123 (update_thread_list::post_attach): Likewise.
12124 (post_attach::pid_to_str): Likewise.
12125 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
12126 (nbsd_thread_lister): Add.
12127 (nbsd_nat_target::thread_alive): Likewise.
12128 (nbsd_nat_target::thread_name): Likewise.
12129 (nbsd_add_threads): Likewise.
12130 (update_thread_list::post_attach): Likewise.
12131 (nbsd_nat_target::update_thread_list): Likewise.
12132 (post_attach::pid_to_str): Likewise.
12133
6ee448cc
TT
121342020-04-06 Tom Tromey <tromey@adacore.com>
12135
12136 * ada-valprint.c (print_variant_part): Extract the variant field.
12137 (print_field_values): Use the field as the outer value when
12138 recursing.
12139
dea34e8c
TT
121402020-04-06 Tom Tromey <tromey@adacore.com>
12141
12142 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
12143 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
12144 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
12145 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
12146 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
12147
93689ce9
TT
121482020-04-06 Tom Tromey <tromey@adacore.com>
12149
12150 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
12151 TYPE_CODE_ERROR.
12152
79743962
KR
121532020-04-06 Kamil Rytarowski <n54@gmx.com>
12154
12155 * nbsd-tdep.c: Include "gdbarch.h".
12156 Define enum with NetBSD signal numbers.
12157 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
12158 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
12159 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
12160 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
12161 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
12162 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
12163 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
12164 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12165 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
12166 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
12167 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
12168 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
12169
9e7c9a03
HD
121702020-04-03 Hannes Domani <ssbssa@yahoo.de>
12171
12172 PR gdb/25325
12173 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
12174
d9e49b61
TT
121752020-04-03 Tom Tromey <tromey@adacore.com>
12176
12177 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
12178 Read constant block.
12179
e0fc5c3f
SM
121802020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12181
12182 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
12183 (gdb_bfd_get_full_section_contents): New declaration.
12184 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
12185 * windows-tdep.c (is_linked_with_cygwin_dll): Use
12186 gdb_bfd_get_full_section_contents.
12187
e2ff18a0
SM
121882020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12189
12190 * exec.c (build_section_table): Replace internal_error with
12191 gdb_assert.
12192 (section_table_xfer_memory_partial): Likewise.
12193 * mdebugread.c (parse_partial_symbols): Likewise.
12194 * psymtab.c (lookup_partial_symbol): Likewise.
12195 * utils.c (wrap_here): Likewise.
12196
0830d301
TT
121972020-04-02 Tom Tromey <tromey@adacore.com>
12198
12199 * f-lang.c (build_fortran_types): Use arch_type to initialize
12200 builtin_complex_s32 in the TYPE_CODE_ERROR case.
12201
e7da7f8f
TT
122022020-04-02 Tom Tromey <tromey@adacore.com>
12203
12204 * dwarf2/read.c (partial_die_info::read): Do not create a vector
12205 of attributes.
12206
c90d28ac
AB
122072020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
12208 Bernd Edlinger <bernd.edlinger@hotmail.de>
12209 Tom Tromey <tromey@adacore.com>
12210
12211 * buildsym.c (buildsym_compunit::record_line): Remove
12212 deduplication code.
12213
1aa98955
TV
122142020-04-02 Tom de Vries <tdevries@suse.de>
12215
12216 PR ada/24671
12217 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
12218
d3214198
TV
122192020-04-02 Tom de Vries <tdevries@suse.de>
12220
12221 * dwarf2/read.c (dwarf2_gdb_index_functions,
12222 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
12223 NULL.
12224 * psymtab.c (psym_lookup_global_symbol_language): New function.
12225 (psym_functions): Init psym_lookup_global_symbol_language with
12226 psym_lookup_global_symbol_language.
12227 * symfile-debug.c (debug_sym_quick_functions): Init
12228 lookup_global_symbol_language with NULL.
12229 * symfile.c (set_initial_language): Remove fixme comment.
12230 * symfile.h (struct quick_symbol_functions): Add
12231 lookup_global_symbol_language.
12232 * symtab.c (find_quick_global_symbol_language): New function.
12233 (find_main_name): Use find_quick_global_symbol_language.
12234
2836752f
SM
122352020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
12236
12237 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
12238
64dc2d4b
BE
122392020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12240
12241 * buildsym.c (record_line): Fix undefined behavior and preserve
12242 lines at eof.
12243
bbe3dc41
BE
122442020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12245
12246 * buildsym.c (record_line): Fix the resizing condition.
12247
6b4a335b
TT
122482020-04-01 Tom Tromey <tom@tromey.com>
12249
12250 * value.h (value_literal_complex): Add comment.
12251 * valops.c (value_literal_complex): Refer to value.h.
12252
3638a098
TT
122532020-04-01 Tom Tromey <tom@tromey.com>
12254
12255 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
12256 (scalar_type): New rule, from typebase.
12257 (typebase): Use scalar_type. Recognize complex types.
12258 (field_name): Handle FLOAT_KEYWORD.
12259 (ident_tokens): Add _Complex and __complex__.
12260
c34e8714
TT
122612020-04-01 Tom Tromey <tom@tromey.com>
12262
12263 PR exp/25299:
12264 * valarith.c (promotion_type, complex_binop): New functions.
12265 (scalar_binop): Handle complex numbers. Use promotion_type.
12266 (value_pos, value_neg, value_complement): Handle complex numbers.
12267
fa649bb7
TT
122682020-04-01 Tom Tromey <tom@tromey.com>
12269
12270 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
12271 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
12272 (parse_number): Handle complex numbers.
12273
981c08ce
TT
122742020-04-01 Tom Tromey <tom@tromey.com>
12275
12276 * c-valprint.c (c_decorations): Change complex suffix to "i".
12277
4c99290d
TT
122782020-04-01 Tom Tromey <tom@tromey.com>
12279
12280 * valprint.c (generic_value_print_complex): Use accessors.
12281 * value.h (value_real_part, value_imaginary_part): Declare.
12282 * valops.c (value_real_part, value_imaginary_part): New
12283 functions.
12284 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
12285
5b930b45
TT
122862020-04-01 Tom Tromey <tom@tromey.com>
12287
12288 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
12289 (read_range_type): Update.
12290 * mdebugread.c (basic_type): Update.
12291 * go-lang.c (build_go_types): Use init_complex_type.
12292 * gdbtypes.h (struct main_type) <complex_type>: New member.
12293 (init_complex_type): Update.
12294 (arch_complex_type): Don't declare.
12295 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
12296 Make name if none given. Use alloc_type_copy. Look for cached
12297 complex type.
12298 (arch_complex_type): Remove.
12299 (gdbtypes_post_init): Use init_complex_type.
12300 * f-lang.c (build_fortran_types): Use init_complex_type.
12301 * dwarf2/read.c (read_base_type): Update.
12302 * d-lang.c (build_d_types): Use init_complex_type.
12303 * ctfread.c (read_base_type): Update.
12304
53cccef1
TBA
123052020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12306
12307 * infrun.c (stop_all_threads): Update assertion, plus when
12308 stopping threads, take into account that we might be trying
12309 to stop an all-stop target.
12310 (stop_waiting): Call 'stop_all_threads' if there exists a
12311 non-stop target.
12312
a0714d30
TBA
123132020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12314
12315 * target.h (exists_non_stop_target): New function declaration.
12316 * target.c (exists_non_stop_target): New function.
12317
60e22c1e
HD
123182020-04-01 Hannes Domani <ssbssa@yahoo.de>
12319
12320 PR gdb/24789
12321 * eval.c (is_integral_or_integral_reference): New function.
12322 (evaluate_subexp_standard): Allow integer references in
12323 pointer arithmetic.
12324
e139a727
TBA
123252020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12326
12327 * remote.c (remote_target::remote_parse_stop_reply): Remove the
12328 check for no ptid in the stop reply when the target is non-stop.
12329
e0802d59
TT
123302020-04-01 Tom Tromey <tromey@adacore.com>
12331
12332 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
12333 "name" parameter to rvalue reference. Initialize m_name_holder.
12334 <lookup_name_info>: New overloads.
12335 <name>: Return gdb::string_view.
12336 <c_str>: New method.
12337 <make_ignore_params>: Update.
12338 <search_name_hash>: Update.
12339 <language_lookup_name>: Return const char *.
12340 <m_name>: Change type.
12341 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
12342 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
12343 (lookup_name_info::match_any): Update.
12344 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
12345 Update.
12346 * minsyms.c (linkage_name_str): Update.
12347 * language.c (default_symbol_name_matcher): Update.
12348 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
12349 Update.
12350 * ada-lang.c (ada_fold_name): Change parameter to string_view.
12351 (ada_lookup_name_info::ada_lookup_name_info): Update.
12352 (literal_symbol_name_matcher): Update.
12353
8c072cb6
TT
123542020-04-01 Tom Tromey <tromey@adacore.com>
12355
12356 * psymtab.c (psymtab_search_name): Remove function.
12357 (psym_lookup_symbol): Create search name and lookup name here.
12358 (lookup_partial_symbol): Remove "name" parameter; add
12359 lookup_name.
12360 (psym_expand_symtabs_for_function): Update.
12361
6f29a534
TT
123622020-03-31 Joel Jones <joelkevinjones@gmail.com>
12363
12364 PR tui/25597:
12365 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
12366
af62665e
TT
123672020-03-31 Tom Tromey <tromey@adacore.com>
12368
12369 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
12370 memcpy.
12371
d1a89da5
NC
123722020-03-30 Nelson Chu <nelson.chu@sifive.com>
12373
12374 * features/riscv/32bit-csr.xml: Regenerated.
12375 * features/riscv/64bit-csr.xml: Regenerated.
12376
d8af9068
TT
123772020-03-30 Tom Tromey <tromey@adacore.com>
12378
12379 * ada-valprint.c (print_variant_part): Update.
12380 * ada-lang.h (ada_which_variant_applies): Update.
12381 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
12382 outer_valaddr parameters; replace with "outer" value parameter.
12383 (to_fixed_variant_branch_type): Update.
12384
227c0bf4
PFC
123852020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12386
12387 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
12388 <list>. Remove inclusion of observable.h.
12389 (PPC_DEBUG_CURRENT_VERSION): Move up define.
12390 (struct arch_lwp_info): New struct.
12391 (class ppc_linux_dreg_interface): New class.
12392 (struct ppc_linux_process_info): New struct.
12393 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
12394 <low_new_clone, low_forget_process, low_prepare_to_resume>
12395 <copy_thread_dreg_state, mark_thread_stale>
12396 <mark_debug_registers_changed, register_hw_breakpoint>
12397 <clear_hw_breakpoint, register_wp, clear_wp>
12398 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
12399 <num_memory_accesses, get_trigger_type>
12400 <create_watchpoint_request, hwdebug_point_cmp>
12401 <init_arch_lwp_info, get_arch_lwp_info>
12402 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
12403 methods.
12404 <struct ptid_hash>: New inner struct.
12405 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
12406 members.
12407 (saved_dabr_value, hwdebug_info, max_slots_number)
12408 (struct hw_break_tuple, struct thread_points, ppc_threads)
12409 (have_ptrace_hwdebug_interface)
12410 (hwdebug_find_thread_points_by_tid)
12411 (hwdebug_insert_point, hwdebug_remove_point): Remove.
12412 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
12413 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
12414 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
12415 use m_dreg_interface.
12416 (hwdebug_point_cmp): Change to...
12417 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
12418 reference arguments instead of pointers.
12419 (ppc_linux_nat_target::ranged_break_num_registers): Use
12420 m_dreg_interface.
12421 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
12422 m_dreg_interface. Call register_hw_breakpoint.
12423 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
12424 m_dreg_interface. Call clear_hw_breakpoint.
12425 (get_trigger_type): Change to...
12426 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
12427 comment.
12428 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
12429 use m_dreg_interface. Call register_hw_breakpoint.
12430 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
12431 use m_dreg_interface. Call clear_hw_breakpoint.
12432 (can_use_watchpoint_cond_accel): Change to...
12433 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
12434 method. Update comment, use m_dreg_interface and
12435 m_process_info.
12436 (calculate_dvc): Change to...
12437 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
12438 m_dreg_interface.
12439 (num_memory_accesses): Change to...
12440 (ppc_linux_nat_target::num_memory_accesses): ...this method.
12441 (check_condition): Change to...
12442 (ppc_linux_nat_target::check_condition): ...this method.
12443 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
12444 comment, use m_dreg_interface.
12445 (create_watchpoint_request): Change to...
12446 (ppc_linux_nat_target::create_watchpoint_request): ...this
12447 method. Use m_dreg_interface.
12448 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
12449 m_dreg_interface. Call register_hw_breakpoint or register_wp.
12450 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
12451 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
12452 (ppc_linux_nat_target::low_forget_process)
12453 (ppc_linux_nat_target::low_new_fork)
12454 (ppc_linux_nat_target::low_new_clone)
12455 (ppc_linux_nat_target::low_delete_thread)
12456 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
12457 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
12458 only call mark_thread_stale.
12459 (ppc_linux_thread_exit): Remove.
12460 (ppc_linux_nat_target::stopped_data_address): Change to...
12461 (ppc_linux_nat_target::low_stopped_data_address): This. Add
12462 comment, use m_dreg_interface and m_thread_hw_breakpoints.
12463 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
12464 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
12465 comment. Call low_stopped_data_address.
12466 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
12467 m_dreg_interface.
12468 (ppc_linux_nat_target::masked_watch_num_registers): Use
12469 m_dreg_interface.
12470 (ppc_linux_nat_target::copy_thread_dreg_state)
12471 (ppc_linux_nat_target::mark_thread_stale)
12472 (ppc_linux_nat_target::mark_debug_registers_changed)
12473 (ppc_linux_nat_target::register_hw_breakpoint)
12474 (ppc_linux_nat_target::clear_hw_breakpoint)
12475 (ppc_linux_nat_target::register_wp)
12476 (ppc_linux_nat_target::clear_wp)
12477 (ppc_linux_nat_target::init_arch_lwp_info)
12478 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
12479 (_initialize_ppc_linux_nat): Remove observer callback.
12480
4db10d8f
PFC
124812020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12482
12483 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
12484 (ppc_linux_nat_target::auxv_parse)
12485 (ppc_linux_nat_target::read_description)
12486 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
12487 Move up.
12488
1310c1b0
PFC
124892020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12490
12491 * linux-nat.h (low_new_clone): New method.
12492 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
12493
69b037c3
SM
124942020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12495
12496 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
12497 (dbx_expand_psymtab): ... this.
12498 (start_psymtab): Update.
12499 * mdebugread.c (psymtab_to_symtab_1): Rename to...
12500 (mdebug_expand_psymtab): ... this.
12501 (parse_partial_symbols): Update.
12502 (new_psymtab): Update.
12503 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
12504 (xcoff_expand_psymtab): ... this.
12505 (xcoff_start_psymtab): Update.
12506
48993951
SM
125072020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12508
12509 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
12510 <expand_dependencies>: ... this.
12511 * psymtab.c (partial_symtab::read_dependencies): Rename to...
12512 (partial_symtab::expand_dependencies): ... this.
12513 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
12514 Update.
12515 (dwarf2_psymtab::expand_psymtab): Update.
12516 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12517 * mdebugread.c (psymtab_to_symtab_1): Update.
12518 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12519
3ad83046
SM
125202020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12521
12522 * psympriv.h (discard_psymtab): Remove.
12523 * dbxread.c (dbx_end_psymtab): Update.
12524 * xcoffread.c (xcoff_end_psymtab): Update.
12525
4d1b9ab6
TT
125262020-03-28 Tom Tromey <tom@tromey.com>
12527
12528 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
12529 comment.
12530
f1749218
TT
125312020-03-28 Tom Tromey <tom@tromey.com>
12532
12533 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
12534
ebea7626
HD
125352020-03-27 Hannes Domani <ssbssa@yahoo.de>
12536
12537 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12538
a879b4d5
JB
125392020-03-26 John Baldwin <jhb@FreeBSD.org>
12540
12541 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
12542
0826b30a
TT
125432020-03-26 Tom Tromey <tom@tromey.com>
12544
12545 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
12546 (mark_common_block_symbol_computed, read_tag_string_type)
12547 (attr_to_dynamic_prop, read_subrange_type): Update.
12548 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
12549 to be methods on struct attribute.
12550 (skip_one_die, process_imported_unit_die, read_namespace_alias)
12551 (read_call_site_scope, partial_die_info::read)
12552 (partial_die_info::read, lookup_die_type, follow_die_ref):
12553 Update.
12554 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
12555 from dwarf2_get_ref_die_offset.
12556 (attribute::constant_value): New method, from
12557 dwarf2_get_attr_constant_value.
12558 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
12559 Declare method.
12560 <constant_value>: New method.
12561
2b2558bf
TT
125622020-03-26 Tom Tromey <tom@tromey.com>
12563
12564 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
12565 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
12566 (dwarf_type_encoding_name): Move to stringify.c.
12567 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
12568 * dwarf2/stringify.c: New file.
12569 * dwarf2/stringify.h: New file.
12570
eeb64781
TT
125712020-03-26 Tom Tromey <tom@tromey.com>
12572
12573 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
12574 Rewrite.
12575
a39fdb41
TT
125762020-03-26 Tom Tromey <tom@tromey.com>
12577
12578 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
12579 methods.
12580 * dwarf2/read.c (lookup_addr_base): Move to die.h.
12581 (lookup_ranges_base): Likewise.
12582 (read_cutu_die_from_dwo, read_full_die_1): Update.
12583
436c571c
TT
125842020-03-26 Tom Tromey <tom@tromey.com>
12585
12586 * dwarf2/read.c (read_import_statement, read_file_scope)
12587 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
12588 (read_lexical_block_scope, read_call_site_scope)
12589 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
12590 (handle_struct_member_die, process_structure_scope)
12591 (update_enumeration_type_from_children)
12592 (process_enumeration_scope, read_array_type, read_common_block)
12593 (read_namespace, read_module, read_subroutine_type): Update.
12594 (sibling_die): Remove.
12595
052c8bb8
TT
125962020-03-26 Tom Tromey <tom@tromey.com>
12597
12598 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
12599 (build_type_psymtabs_reader, read_structure_type)
12600 (read_enumeration_type, read_full_die_1): Update.
12601 (dwarf2_attr_no_follow): Move to die.h.
12602 * dwarf2/die.h (struct die_info) <attr>: New method.
12603
2b24b6e4
TT
126042020-03-26 Tom Tromey <tom@tromey.com>
12605
12606 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
12607 <base_address>: Now an optional.
12608 (dwarf2_find_base_address, dwarf2_rnglists_process)
12609 (dwarf2_ranges_process, fill_in_loclist_baton)
12610 (dwarf2_symbol_mark_computed): Update.
12611
c2d50fd0
TT
126122020-03-26 Tom Tromey <tom@tromey.com>
12613
12614 * dwarf2/read.c (struct die_info): Move to die.h.
12615 * dwarf2/die.h: New file.
12616
0df7ad3a
TT
126172020-03-26 Tom Tromey <tom@tromey.com>
12618
12619 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
12620 * dwarf2/read.c
12621 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12622 Move to line-header.c.
12623 (read_checked_initial_length_and_offset, read_formatted_entries):
12624 Likewise.
12625 (dwarf_decode_line_header): Split into two.
12626 * dwarf2/line-header.c
12627 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12628 Move from read.c.
12629 (read_checked_initial_length_and_offset, read_formatted_entries):
12630 Likewise.
12631 (dwarf_decode_line_header): New function, split from read.c.
12632
86c0bb4c
TT
126332020-03-26 Tom Tromey <tom@tromey.com>
12634
12635 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
12636 Declare method.
12637 * dwarf2/read.c (read_attribute_value): Update.
12638 (dwarf2_per_objfile::read_line_string): Rename from
12639 read_indirect_line_string.
12640 (read_formatted_entries): Update.
12641
2ef46c2f
TT
126422020-03-26 Tom Tromey <tom@tromey.com>
12643
12644 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
12645 variable.
12646
4f9c1eda
TT
126472020-03-26 Tom Tromey <tom@tromey.com>
12648
12649 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
12650 const.
12651 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
12652 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
12653 parameter const.
12654
5a0e026f
TT
126552020-03-26 Tom Tromey <tom@tromey.com>
12656
12657 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
12658 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
12659 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
12660 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
12661
8844c11b
TT
126622020-03-26 Tom Tromey <tom@tromey.com>
12663
12664 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
12665 file_names_size, file_full_name, file_file_name>: Use const.
12666 <file_name_at, file_names>: Add const overload.
12667 * dwarf2/line-header.c (line_header::file_file_name)
12668 (line_header::file_full_name): Update.
12669
c90ec28a
TT
126702020-03-26 Tom Tromey <tom@tromey.com>
12671
12672 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
12673 (macro_start_file, consume_improper_spaces)
12674 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
12675 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
12676 (dwarf_decode_macros): Move to macro.c.
12677 * dwarf2/macro.c: New file.
12678 * dwarf2/macro.h: New file.
12679 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
12680
4f44ae6c
TT
126812020-03-26 Tom Tromey <tom@tromey.com>
12682
12683 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
12684 method.
12685 * dwarf2/section.c: New method. From
12686 read_indirect_string_at_offset_from.
12687 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
12688 (read_indirect_string_at_offset_from): Move to section.c.
12689 (read_indirect_string_at_offset): Rewrite.
12690 (read_indirect_line_string_at_offset): Remove.
12691 (read_indirect_string, read_indirect_line_string)
12692 (dwarf_decode_macro_bytes): Update.
12693
a0194fa8
TT
126942020-03-26 Tom Tromey <tom@tromey.com>
12695
12696 * dwarf2/section.h (struct dwarf2_section_info)
12697 <overload_complaint>: Declare.
12698 (dwarf2_section_buffer_overflow_complaint): Don't declare.
12699 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
12700 Rename from dwarf2_section_buffer_overflow_complaint.
12701 * dwarf2/read.c (skip_one_die, partial_die_info::read)
12702 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
12703
3d27bbdb
TT
127042020-03-26 Tom Tromey <tom@tromey.com>
12705
12706 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
12707 Declare.
12708 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
12709 Move from read.c.
12710 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
12711 to section.c.
12712
9eac9650
TT
127132020-03-26 Tom Tromey <tom@tromey.com>
12714
12715 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
12716
bf80d710
TT
127172020-03-26 Tom Tromey <tom@tromey.com>
12718
12719 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
12720 "builder".
12721 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
12722 parameter.
12723 (dwarf_decode_macros): Update.
12724
0314b390
TT
127252020-03-26 Tom Tromey <tom@tromey.com>
12726
12727 * dwarf2/read.c (read_attribute_value): Update.
12728 (read_indirect_string_from_dwz): Move to dwz.c; change into
12729 method.
12730 (dwarf_decode_macro_bytes): Update.
12731 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
12732 * dwarf2/dwz.c: New file.
12733 * Makefile.in (COMMON_SFILES): Add dwz.c.
12734
9fda78b6
TT
127352020-03-26 Tom Tromey <tom@tromey.com>
12736
12737 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
12738 * dwarf2/read.c: Add include.
12739 * dwarf2/index-write.c: Add include.
12740 * dwarf2/index-cache.c: Add include.
12741 * dwarf2/dwz.h: New file.
12742
33aa3c10
TT
127432020-03-25 Tom Tromey <tom@tromey.com>
12744
12745 * compile/compile-object-load.c (get_out_value_type): Mention
12746 correct symbol name in error message.
12747
d503b685
HD
127482020-03-25 Hannes Domani <ssbssa@yahoo.de>
12749
12750 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12751
7b1eff95
TV
127522020-03-25 Tom de Vries <tdevries@suse.de>
12753
12754 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
12755 * symmisc.c (dump_symtab_1): Print user and includes fields.
12756 (maintenance_info_symtabs): Same.
12757
dd895392
AB
127582020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
12759
12760 PR gdb/25534
12761 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
12762 (riscv_regcache_cooked_write): New function.
12763 (riscv_push_dummy_call): Use new function.
12764 (riscv_return_value): Likewise.
12765
5ab2fbf1
SM
127662020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
12767
12768 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
12769 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
12770 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
12771 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
12772 * infrun.c (follow_fork): Likewise.
12773 (follow_fork_inferior): Likewise.
12774 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
12775 * linux-nat.h (class linux_nat_target): Likewise.
12776 * remote.c (class remote_target) <follow_fork>: Likewise.
12777 (remote_target::follow_fork): Likewise.
12778 * target-delegates.c: Re-generate.
12779 * target.c (default_follow_fork): Likewise.
12780 (target_follow_fork): Likewise.
12781 * target.h (struct target_ops) <follow_fork>: Likewise.
12782 (target_follow_fork): Likewise.
12783
a64fafb5
TV
127842020-03-24 Tom de Vries <tdevries@suse.de>
12785
12786 * psymtab.c (maintenance_info_psymtabs): Print user field.
12787
fe26d3a3
TT
127882020-03-20 Tom Tromey <tromey@adacore.com>
12789
12790 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
12791 const.
12792 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
12793 const.
12794
c884cc46
SM
127952020-03-20 Simon Marchi <simon.marchi@efficios.com>
12796
12797 * ptrace.m4: Don't check for ptrace declaration.
12798 * config.in: Re-generate.
12799 * configure: Re-generate.
12800 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
12801 not defined.
12802
1ff700c2
KR
128032020-03-20 Kamil Rytarowski <n54@gmx.com>
12804
12805 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
12806 `PTRACE_TYPE_RET'.
12807 * i386-bsd-nat.c (gdb_ptrace): Likewise.
12808 * sparc-nat.c (gdb_ptrace): Likewise.
12809 * x86-bsd-nat.c (gdb_ptrace): Likewise.
12810
f7d4f0b1
TT
128112020-03-20 Tom Tromey <tromey@adacore.com>
12812
12813 * c-exp.y (lex_one_token): Fix assert.
12814
f67210ff
TT
128152020-03-20 Tom Tromey <tromey@adacore.com>
12816
12817 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
12818 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
12819 strncpy call.
12820
1773be9e
TT
128212020-03-20 Tom Tromey <tromey@adacore.com>
12822
12823 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
12824
70304be9
TT
128252020-03-20 Tom Tromey <tromey@adacore.com>
12826
12827 * ada-valprint.c (print_variant_part): Remove parameters; switch
12828 to value-based API.
12829 (print_field_values): Likewise.
12830 (ada_val_print_struct_union): Likewise.
12831 (ada_value_print_1): Update.
12832
9faa006d
KR
128332020-03-20 Kamil Rytarowski <n54@gmx.com>
12834
12835 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
12836 nbsd_nat_target instead of inf_ptrace_target.
12837 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12838 nbsd_nat_target.
12839
4a90f062
KR
128402020-03-20 Kamil Rytarowski <n54@gmx.com>
12841
12842 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
12843 it to the ptrace call.
12844 * (store_registers): Likewise.
12845
128462020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
12847
12848 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
12849 it to the ptrace call.
12850 * (store_registers): Likewise.
12851
2d07da27
LM
128522020-03-19 Luis Machado <luis.machado@linaro.org>
12853
12854 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
12855 valid, fetch vg value from ptrace.
12856
f09db380
KR
128572020-03-19 Kamil Rytarowski <n54@gmx.com>
12858 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
12859 * inf-ptrace.c: Likewise.
12860 * (gdb_ptrace): Add.
12861 * (inf_ptrace_target::resume): Update.
12862 * (inf_ptrace_target::xfer_partial): Likewise.
12863 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
12864 * (inf_ptrace_peek_poke): Update.
12865
fcc7376e
KR
128662020-03-19 Kamil Rytarowski <n54@gmx.com>
12867
12868 * x86-bsd-nat.c (gdb_ptrace): New.
12869 * (x86bsd_dr_set): Add new argument `ptid'.
12870 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
12871 x86bsd_dr_set_addr): Update.
12872
cada5fc9
AB
128732020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12874
12875 * remote.c (remote_target::process_stop_reply): Handle events for
12876 all threads differently.
12877
19a2740f
AB
128782020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12879
12880 * completer.c (completion_tracker::remove_completion): Define new
12881 function.
12882 * completer.h (completion_tracker::remove_completion): Declare new
12883 function.
12884 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
12885 when adding a C++ function symbol.
12886
724fd9ba
AB
128872020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12888
12889 * completer.c (completion_tracker::completion_hash_entry): Define
12890 new class.
12891 (advance_to_filename_complete_word_point): Call
12892 recompute_lowest_common_denominator.
12893 (completion_tracker::completion_tracker): Call discard_completions
12894 to setup the hash table.
12895 (completion_tracker::discard_completions): Allow for being called
12896 from the constructor, pass new equal function, and element deleter
12897 when constructing the hash table. Initialise new class member
12898 variables.
12899 (completion_tracker::maybe_add_completion): Remove use of
12900 m_entries_vec, and store more information into m_entries_hash.
12901 (completion_tracker::recompute_lcd_visitor): New function, most
12902 content taken from...
12903 (completion_tracker::recompute_lowest_common_denominator):
12904 ...here, this now just visits each item in the hash calling the
12905 above visitor.
12906 (completion_tracker::build_completion_result): Remove use of
12907 m_entries_vec, call recompute_lowest_common_denominator.
12908 * completer.h (completion_tracker::have_completions): Remove use
12909 of m_entries_vec.
12910 (completion_tracker::completion_hash_entry): Declare new class.
12911 (completion_tracker::recompute_lowest_common_denominator): Change
12912 function signature.
12913 (completion_tracker::recompute_lcd_visitor): Declare new function.
12914 (completion_tracker::m_entries_vec): Delete.
12915 (completion_tracker::m_entries_hash): Initialize to NULL.
12916 (completion_tracker::m_lowest_common_denominator_valid): New
12917 member variable.
12918 (completion_tracker::m_lowest_common_denominator_max_length): New
12919 member variable.
12920
5a82b8a1
KR
129212020-03-17 Kamil Rytarowski <n54@gmx.com>
12922
12923 * regformats/regdef.h: Put reg in gdb namespace.
12924
fb516a69
KR
129252020-03-17 Kamil Rytarowski <n54@gmx.com>
12926
12927 * i386-bsd-nat.c (gdb_ptrace): New.
12928 * (i386bsd_fetch_inferior_registers,
12929 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12930 * (i386bsd_fetch_inferior_registers,
12931 i386bsd_store_inferior_registers) Use gdb_ptrace.
12932
1c0aa1fb
KR
129332020-03-17 Kamil Rytarowski <n54@gmx.com>
12934
12935 * amd64-bsd-nat.c (gdb_ptrace): New.
12936 * (amd64bsd_fetch_inferior_registers,
12937 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12938 * (amd64bsd_fetch_inferior_registers,
12939 amd64bsd_store_inferior_registers) Use gdb_ptrace.
12940
5ccd2fb7
KR
129412020-03-17 Kamil Rytarowski <n54@gmx.com>
12942
12943 * user-regs.c (user_reg::read): Rename to...
12944 (user_reg::xread): ...this.
12945 * (append_user_reg): Rename argument `read' to `xread'.
12946 * (user_reg_add_builtin): Likewise.
12947 * (user_reg_add): Likewise.
12948 * (value_of_user_reg): Likewise.
12949
2108a63a
KR
129502020-03-17 Kamil Rytarowski <n54@gmx.com>
12951
12952 * sparc-nat.c (gdb_ptrace): New.
12953 * sparc-nat.c (sparc_fetch_inferior_registers)
12954 (sparc_store_inferior_registers) Remove obsolete comment.
12955 * sparc-nat.c (sparc_fetch_inferior_registers)
12956 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
12957 * sparc-nat.c (sparc_fetch_inferior_registers)
12958 (sparc_store_inferior_registers) Use gdb_ptrace.
12959
a225c9a8
KR
129602020-03-17 Kamil Rytarowski <n54@gmx.com>
12961
12962 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
12963 it to the ptrace call.
12964 * sh-nbsd-nat.c (store_registers): Likewise.
12965
98097623
KR
129662020-03-17 Kamil Rytarowski <n54@gmx.com>
12967
12968 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
12969 nbsd_nat_target instead of inf_ptrace_target.
12970 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12971 nbsd_nat_target.
12972
9e38d619
KR
129732020-03-17 Kamil Rytarowski <n54@gmx.com>
12974
12975 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
12976
a2ecbe9f
KR
129772020-03-17 Kamil Rytarowski <n54@gmx.com>
12978
12979 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
12980 <sys/sysctl.h>.
12981 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
12982
58990295
TV
129832020-03-17 Tom de Vries <tdevries@suse.de>
12984
12985 PR gdb/23710
12986 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
12987 fields.
12988 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
12989 fields.
12990 (process_imported_unit_die): Skip import of c++ CUs.
12991
771dd3a8
TT
129922020-03-16 Tom Tromey <tom@tromey.com>
12993
12994 * p-valprint.c (pascal_object_print_value): Initialize
12995 base_value.
12996
817a7585
AK
129972020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
12998 Shahab Vahedi <shahab@synopsys.com>
12999
13000 * Makefile.in: Add arch/arc.o
13001 * configure.tgt: Likewise.
13002 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
13003 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 13004 (arc_read_description): New function to cache target descriptions.
817a7585
AK
13005 * arc-tdep.h (arc_read_description): Add proto type.
13006 * arch/arc.c: New file.
13007 * arch/arc.h: Likewise.
13008 * features/Makefile: Replace old target descriptions with new.
13009 * features/arc-arcompact.c: Remove.
13010 * features/arc-arcompact.xml: Likewise.
13011 * features/arc-v2.c: Likewise
13012 * features/arc-v2.xml: Likewise
13013 * features/arc/aux-arcompact.xml: New file.
13014 * features/arc/aux-v2.xml: Likewise.
13015 * features/arc/core-arcompact.xml: Likewise.
13016 * features/arc/core-v2.xml: Likewise.
13017 * features/arc/aux-arcompact.c: Generate.
13018 * features/arc/aux-v2.c: Likewise.
13019 * features/arc/core-arcompact.c: Likewise.
13020 * features/arc/core-v2.c: Likewise.
13021 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
13022
67430cd0
TT
130232020-03-16 Tom Tromey <tromey@adacore.com>
13024
13025 PR gdb/25663:
13026 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
13027 putting value into bcache.
13028
30efb6c7
SM
130292020-03-16 Simon Marchi <simon.marchi@efficios.com>
13030
13031 PR gdb/21500
13032 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
13033 to...
13034 (amd64_windows_init_abi_common): ... this. Don't set size of
13035 long type.
13036 (amd64_windows_init_abi): New function.
13037 (amd64_cygwin_init_abi): New function.
13038 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
13039 the Cygwin OS ABI.
13040 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
13041 comment.
13042
8db52437
SM
130432020-03-16 Simon Marchi <simon.marchi@efficios.com>
13044
13045 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
13046 * windows-tdep.c (CYGWIN_DLL_NAME): New.
13047 (pe_import_directory_entry): New struct type.
13048 (is_linked_with_cygwin_dll): New function.
13049 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
13050 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
13051 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
13052
5982a56a
SM
130532020-03-16 Simon Marchi <simon.marchi@efficios.com>
13054
13055 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
13056 i386_cygwin_core_osabi_sniffer.
13057
7a1998df
SM
130582020-03-16 Simon Marchi <simon.marchi@efficios.com>
13059
13060 * i386-cygwin-tdep.c: Rename to...
13061 * i386-windows-tdep.c: ... this.
13062 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
13063 i386-windows-tdep.c.
13064 * configure.tgt: Likewise.
13065
053205cc
SM
130662020-03-16 Simon Marchi <simon.marchi@efficios.com>
13067
13068 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
13069 * osabi.c (gdb_osabi_names): Add "Windows".
13070 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
13071 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
13072 (i386_cygwin_core_osabi_sniffer): New function, extracted from
13073 i386_cygwin_osabi_sniffer.
13074 (_initialize_i386_cygwin_tdep): Register OS ABI
13075 GDB_OSABI_WINDOWS for i386.
13076 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
13077 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
13078 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
13079 for x86-64.
13080 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
13081 when the target matches '*-*-mingw*'.
13082
fe4b2ee6
SM
130832020-03-16 Simon Marchi <simon.marchi@efficios.com>
13084
13085 * defs.h (enum gdb_osabi): Move to...
13086 * osabi.h (enum gdb_osabi): ... here.
13087 * gdbarch.sh: Include osabi.h in gdbarch.h.
13088 * gdbarch.h: Re-generate.
13089
cb9b645d
SM
130902020-03-16 Simon Marchi <simon.marchi@efficios.com>
13091
13092 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
13093 function.
13094 (_initialize_amd64_windows_tdep): Register osabi sniffer.
13095
3293bbaf
TT
130962020-03-14 Tom Tromey <tom@tromey.com>
13097
13098 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
13099 for C++.
13100 (c_type_print_modifier): Likewise. Add "language" parameter.
13101 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
13102 (c_type_print_base_1): Update.
13103 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
13104 constants.
13105 * type-stack.c (type_stack::insert): Handle tp_atomic and
13106 tp_restrict.
13107 (type_stack::follow_type_instance_flags): Likewise.
13108 (type_stack::follow_types): Likewise. Merge type-following code.
13109 * c-exp.y (RESTRICT, ATOMIC): New tokens.
13110 (space_identifier, cv_with_space_id)
13111 (const_or_volatile_or_space_identifier_noopt)
13112 (const_or_volatile_or_space_identifier): Remove.
13113 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
13114 rules.
13115 (ptr_operator, typebase): Update.
13116 (enum token_flag) <FLAG_C>: New constant.
13117 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
13118 "_Atomic".
13119 (lex_one_token): Handle FLAG_C.
13120
154151a6
KR
131212020-03-14 Kamil Rytarowski <n54@gmx.com>
13122
13123 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
13124 it to the ptrace call.
13125 * m68k-bsd-nat.c (store_registers): Likewise.
13126
bc107784
KR
131272020-03-14 Kamil Rytarowski <n54@gmx.com>
13128
13129 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
13130 gdb_byte *.
13131 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
13132 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
13133 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
13134
01a80117
KR
131352020-03-14 Kamil Rytarowski <n54@gmx.com>
13136
13137 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
13138 nbsd_nat_target instead of inf_ptrace_target.
13139 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13140 nbsd_nat_target.
13141
f90280ca
KR
131422020-03-14 Kamil Rytarowski <n54@gmx.com>
13143
13144 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
13145 register_t.
13146
6def66f1
KR
131472020-03-14 Kamil Rytarowski <n54@gmx.com>
13148
13149 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
13150 it to the ptrace call.
13151 * alpha-bsd-nat.c (store_registers): Likewise.
13152
66eaca97
KR
131532020-03-14 Kamil Rytarowski <n54@gmx.com>
13154
13155 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
13156 includes.
13157 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
13158 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
13159 fill_fpregset): Likewise.
13160
4fed520b
KR
131612020-03-14 Kamil Rytarowski <n54@gmx.com>
13162
13163 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
13164 nbsd_nat_target instead of inf_ptrace_target.
13165 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13166 nbsd_nat_target.
13167
2190cf06
KR
131682020-03-14 Kamil Rytarowski <n54@gmx.com>
13169
13170 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
13171 register_t.
13172
75c56d3d
KR
131732020-03-14 Kamil Rytarowski <n54@gmx.com>
13174
13175 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
13176 it to the ptrace call.
13177 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
13178 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
13179 * arm-nbsd-nat.c (store_register): Likewise.
13180 * arm-nbsd-nat.c (store_regs): Likewise.
13181 * arm-nbsd-nat.c (store_fp_register): Likewise.
13182 * arm-nbsd-nat.c (store_fp_regs): Likewise.
13183
6018d381
KR
131842020-03-14 Kamil Rytarowski <n54@gmx.com>
13185
13186 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
13187 nbsd_nat_target instead of inf_ptrace_target.
13188 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13189 nbsd_nat_target.
13190
013f99f0
KR
131912020-03-14 Kamil Rytarowski <n54@gmx.com>
13192
13193 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
13194 it to the ptrace call.
13195 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
13196
12753073
KR
131972020-03-14 Kamil Rytarowski <n54@gmx.com>
13198
6227b330
KR
13199 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
13200 it to the ptrace call.
13201 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
13202
132032020-03-14 Kamil Rytarowski <n54@gmx.com>
13204
13205 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
13206 gdb_byte *.
12753073
KR
13207 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
13208
d5be5fa4
KR
132092020-03-14 Kamil Rytarowski <n54@gmx.com>
13210
13211 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
13212 instead of inf_ptrace_target.
13213 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13214 nbsd_nat_target.
13215
8110f842
KR
132162020-03-14 Kamil Rytarowski <n54@gmx.com>
13217
13218 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13219 register_t.
13220
52feded7
KR
132212020-03-14 Kamil Rytarowski <n54@gmx.com>
13222
13223 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13224 register_t.
13225
25567eee
KR
132262020-03-14 Kamil Rytarowski <n54@gmx.com>
13227
13228 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
13229 register_t.
13230
426a9c18
TT
132312020-03-13 Tom Tromey <tom@tromey.com>
13232
13233 * value.h (val_print): Don't declare.
13234 * valprint.h (val_print_array_elements)
13235 (val_print_scalar_formatted, generic_val_print): Don't declare.
13236 * valprint.c (generic_val_print_array): Take a struct value.
13237 (generic_val_print_ptr, generic_val_print_memberptr)
13238 (generic_val_print_bool, generic_val_print_int)
13239 (generic_val_print_char, generic_val_print_complex)
13240 (generic_val_print): Remove.
13241 (generic_value_print): Update.
13242 (do_val_print): Remove unused parameters. Don't call
13243 la_val_print.
13244 (val_print): Remove.
13245 (common_val_print): Update. Don't call value_check_printable.
13246 (val_print_scalar_formatted, val_print_array_elements): Remove.
13247 * rust-lang.c (rust_val_print): Remove.
13248 (rust_language_defn): Update.
13249 * p-valprint.c (pascal_val_print): Remove.
13250 (pascal_value_print_inner): Update.
13251 (pascal_object_print_val_fields, pascal_object_print_val):
13252 Remove.
13253 (pascal_object_print_static_field): Update.
13254 * p-lang.h (pascal_val_print): Don't declare.
13255 * p-lang.c (pascal_language_defn): Update.
13256 * opencl-lang.c (opencl_language_defn): Update.
13257 * objc-lang.c (objc_language_defn): Update.
13258 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
13259 * m2-lang.h (m2_val_print): Don't declare.
13260 * m2-lang.c (m2_language_defn): Update.
13261 * language.h (struct language_defn) <la_val_print>: Remove.
13262 * language.c (unk_lang_value_print_inner): Rename. Change
13263 argument types.
13264 (unknown_language_defn, auto_language_defn): Update.
13265 * go-valprint.c (go_val_print): Remove.
13266 * go-lang.h (go_val_print): Don't declare.
13267 * go-lang.c (go_language_defn): Update.
13268 * f-valprint.c (f_val_print): Remove.
13269 * f-lang.h (f_value_print): Don't declare.
13270 * f-lang.c (f_language_defn): Update.
13271 * d-valprint.c (d_val_print): Remove.
13272 * d-lang.h (d_value_print): Don't declare.
13273 * d-lang.c (d_language_defn): Update.
13274 * cp-valprint.c (cp_print_value_fields)
13275 (cp_print_value_fields_rtti, cp_print_value): Remove.
13276 (cp_print_static_field): Update.
13277 * c-valprint.c (c_val_print_array, c_val_print_ptr)
13278 (c_val_print_struct, c_val_print_union, c_val_print_int)
13279 (c_val_print_memberptr, c_val_print): Remove.
13280 * c-lang.h (c_val_print_array, cp_print_value_fields)
13281 (cp_print_value_fields_rtti): Don't declare.
13282 * c-lang.c (c_language_defn, cplus_language_defn)
13283 (asm_language_defn, minimal_language_defn): Update.
13284 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
13285 (ada_val_print_enum): Take a struct value.
13286 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
13287 (ada_val_print): Remove.
13288 (ada_value_print_1): Update.
13289 (printable_val_type): Remove.
13290 * ada-lang.h (ada_val_print): Don't declare.
13291 * ada-lang.c (ada_language_defn): Update.
13292
42331a1e
TT
132932020-03-13 Tom Tromey <tom@tromey.com>
13294
13295 * valprint.c (do_val_print): Update.
13296 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
13297 a struct value.
13298 (value_to_value_object_no_release): Declare.
13299 * python/py-value.c (value_to_value_object_no_release): New
13300 function.
13301 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
13302 struct value.
13303 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
13304 function.
13305 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
13306 a struct value.
13307 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
13308 Declare.
13309 (gdbscm_apply_val_pretty_printer): Take a struct value.
13310 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
13311 value.
13312 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
13313 value.
13314 * extension-priv.h (struct extension_language_ops)
13315 <apply_val_pretty_printer>: Take a struct value.
13316 * cp-valprint.c (cp_print_value): Create a struct value.
13317 (cp_print_value): Update.
13318
3a916a97
TT
133192020-03-13 Tom Tromey <tom@tromey.com>
13320
13321 * ada-valprint.c (print_field_values): Call common_val_print.
13322
b59eac37
TT
133232020-03-13 Tom Tromey <tom@tromey.com>
13324
13325 * ada-valprint.c (val_print_packed_array_elements): Remove
13326 bitoffset and val parameters. Call common_val_print.
13327 (ada_val_print_string): Remove offset, address, and original_value
13328 parameters.
13329 (ada_val_print_array): Update.
13330 (ada_value_print_array): New function.
13331 (ada_value_print_1): Call it.
13332
03371129
TT
133332020-03-13 Tom Tromey <tom@tromey.com>
13334
13335 * ada-valprint.c (ada_value_print): Use common_val_print.
13336
2e088f8b
TT
133372020-03-13 Tom Tromey <tom@tromey.com>
13338
13339 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
13340
39ef85a8
TT
133412020-03-13 Tom Tromey <tom@tromey.com>
13342
13343 * ada-valprint.c (ada_value_print_num): New function.
13344 (ada_value_print_1): Use it.
13345
b9fa6e07
TT
133462020-03-13 Tom Tromey <tom@tromey.com>
13347
13348 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
13349
416595d6
TT
133502020-03-13 Tom Tromey <tom@tromey.com>
13351
13352 * ada-valprint.c (ada_value_print_ptr): New function.
13353 (ada_value_print_1): Use it.
13354
5b5e15ec
TT
133552020-03-13 Tom Tromey <tom@tromey.com>
13356
13357 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
13358 call common_val_print.
13359 (ada_val_print_1): Update.
13360 (ada_value_print_1): New function.
13361 (ada_value_print_inner): Rewrite.
13362
fbf54e75
TT
133632020-03-13 Tom Tromey <tom@tromey.com>
13364
13365 * cp-valprint.c (cp_print_value_fields): Update.
13366 (cp_print_value): New function.
13367
64b653ca
TT
133682020-03-13 Tom Tromey <tom@tromey.com>
13369
13370 * m2-valprint.c (m2_value_print_inner): Use
13371 cp_print_value_fields.
13372 * cp-valprint.c (cp_print_value_fields): New function.
13373 * c-valprint.c (c_value_print_struct): New function.
13374 (c_value_print_inner): Use c_value_print_struct.
13375 * c-lang.h (cp_print_value_fields): Declare.
13376
6999f067
TT
133772020-03-13 Tom Tromey <tom@tromey.com>
13378
13379 * c-valprint.c (c_value_print_array): New function.
13380 (c_value_print_inner): Use it.
13381
ce80b8bd
TT
133822020-03-13 Tom Tromey <tom@tromey.com>
13383
13384 * c-valprint.c (c_value_print_memberptr): New function.
13385 (c_value_print_inner): Use it.
13386
2faac269
TT
133872020-03-13 Tom Tromey <tom@tromey.com>
13388
13389 * c-valprint.c (c_value_print_int): New function.
13390 (c_value_print_inner): Use it.
13391
da3e2c29
TT
133922020-03-13 Tom Tromey <tom@tromey.com>
13393
13394 * c-valprint.c (c_value_print_ptr): New function.
13395 (c_value_print_inner): Use it.
13396
50836231
TT
133972020-03-13 Tom Tromey <tom@tromey.com>
13398
13399 * c-valprint.c (c_value_print_inner): Rewrite.
13400
4f412b6e
TT
134012020-03-13 Tom Tromey <tom@tromey.com>
13402
13403 * valprint.c (generic_value_print_complex): New function.
13404 (generic_value_print): Use it.
13405
f5354008
TT
134062020-03-13 Tom Tromey <tom@tromey.com>
13407
13408 * valprint.c (generic_val_print_float): Don't call
13409 val_print_scalar_formatted.
13410 (generic_val_print, generic_value_print): Update.
13411
3eec3b05
TT
134122020-03-13 Tom Tromey <tom@tromey.com>
13413
13414 * valprint.c (generic_value_print_char): New function
13415 (generic_value_print): Use it.
13416
fdddfccb
TT
134172020-03-13 Tom Tromey <tom@tromey.com>
13418
13419 * valprint.c (generic_value_print_int): New function.
13420 (generic_value_print): Use it.
13421
6dde7521
TT
134222020-03-13 Tom Tromey <tom@tromey.com>
13423
13424 * valprint.c (generic_value_print_bool): New function.
13425 (generic_value_print): Use it.
13426
4112d2e6
TT
134272020-03-13 Tom Tromey <tom@tromey.com>
13428
13429 * valprint.c (generic_val_print_func): Simplify.
13430 (generic_val_print, generic_value_print): Update.
13431
65786af6
TT
134322020-03-13 Tom Tromey <tom@tromey.com>
13433
13434 * valprint.c (generic_val_print_flags): Remove.
13435 (generic_val_print, generic_value_print): Update.
13436 (val_print_type_code_flags): Add original_value parameter.
13437
40f3ce18
TT
134382020-03-13 Tom Tromey <tom@tromey.com>
13439
13440 * valprint.c (generic_val_print): Update.
13441 (generic_value_print): Update.
13442 * valprint.c (generic_val_print_enum): Don't call
13443 val_print_scalar_formatted.
13444
2a5b130b
TT
134452020-03-13 Tom Tromey <tom@tromey.com>
13446
13447 * valprint.c (generic_value_print): Call generic_value_print_ptr.
13448 * valprint.c (generic_value_print_ptr): New function.
13449
abc66ce9
TT
134502020-03-13 Tom Tromey <tom@tromey.com>
13451
13452 * valprint.c (generic_value_print): Rewrite.
13453
07a32858
TT
134542020-03-13 Tom Tromey <tom@tromey.com>
13455
13456 * p-valprint.c (pascal_object_print_value_fields)
13457 (pascal_object_print_value): New functions.
13458
64d64d3a
TT
134592020-03-13 Tom Tromey <tom@tromey.com>
13460
13461 * p-valprint.c (pascal_value_print_inner): Rewrite.
13462
6a95a1f5
TT
134632020-03-13 Tom Tromey <tom@tromey.com>
13464
13465 * f-valprint.c (f_value_print_innner): Rewrite.
13466
59fcdac6
TT
134672020-03-13 Tom Tromey <tom@tromey.com>
13468
13469 * m2-valprint.c (m2_print_unbounded_array): New overload.
13470 (m2_print_unbounded_array): Update.
13471 (m2_print_array_contents): Take a struct value.
13472 (m2_value_print_inner): Rewrite.
13473
d133c3e1
TT
134742020-03-13 Tom Tromey <tom@tromey.com>
13475
13476 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
13477 (d_value_print_inner): New function.
13478 * d-lang.h (d_value_print_inner): Declare.
13479 * d-lang.c (d_language_defn): Use d_value_print_inner.
13480
23b0f06b
TT
134812020-03-13 Tom Tromey <tom@tromey.com>
13482
13483 * go-valprint.c (go_value_print_inner): New function.
13484 * go-lang.h (go_value_print_inner): Declare.
13485 * go-lang.c (go_language_defn): Use go_value_print_inner.
13486
5f56f7cb
TT
134872020-03-13 Tom Tromey <tom@tromey.com>
13488
13489 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
13490 API.
13491 (rust_val_print): Rewrite.
13492 (rust_value_print_inner): New function, from rust_val_print.
13493 (rust_language_defn): Use rust_value_print_inner.
13494
26792ee0
TT
134952020-03-13 Tom Tromey <tom@tromey.com>
13496
13497 * ada-valprint.c (ada_value_print_inner): New function.
13498 * ada-lang.h (ada_value_print_inner): Declare.
13499 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
13500
24051bbe
TT
135012020-03-13 Tom Tromey <tom@tromey.com>
13502
13503 * f-valprint.c (f_value_print_innner): New function.
13504 * f-lang.h (f_value_print_innner): Declare.
13505 * f-lang.c (f_language_defn): Use f_value_print_innner.
13506
c0941be6
TT
135072020-03-13 Tom Tromey <tom@tromey.com>
13508
13509 * p-valprint.c (pascal_value_print_inner): New function.
13510 * p-lang.h (pascal_value_print_inner): Declare.
13511 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
13512
62c4663d
TT
135132020-03-13 Tom Tromey <tom@tromey.com>
13514
13515 * m2-valprint.c (m2_value_print_inner): New function.
13516 * m2-lang.h (m2_value_print_inner): Declare.
13517 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
13518
62182190
TT
135192020-03-13 Tom Tromey <tom@tromey.com>
13520
13521 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
13522 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
13523 * c-valprint.c (c_value_print_inner): New function.
13524 * c-lang.h (c_value_print_inner): Declare.
13525 * c-lang.c (c_language_defn, cplus_language_defn)
13526 (asm_language_defn, minimal_language_defn): Use
13527 c_value_print_inner.
13528
1e592a8a
TT
135292020-03-13 Tom Tromey <tom@tromey.com>
13530
13531 * p-valprint.c (pascal_object_print_value_fields): Now static.
13532 * p-lang.h (pascal_object_print_value_fields): Don't declare.
13533
7fe471e9
TT
135342020-03-13 Tom Tromey <tom@tromey.com>
13535
13536 * c-valprint.c (c_val_print_array): Simplify.
13537
d121c6ce
TT
135382020-03-13 Tom Tromey <tom@tromey.com>
13539
13540 * valprint.c (value_print_array_elements): New function.
13541 * valprint.h (value_print_array_elements): Declare.
13542
4dba70ee
TT
135432020-03-13 Tom Tromey <tom@tromey.com>
13544
13545 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
13546 * mips-tdep.c (mips_print_register): Use
13547 value_print_scalar_formatted.
13548
4f9ae810
TT
135492020-03-13 Tom Tromey <tom@tromey.com>
13550
13551 * valprint.h (value_print_scalar_formatted): Declare.
13552 * valprint.c (value_print_scalar_formatted): New function.
13553
156bfec9
TT
135542020-03-13 Tom Tromey <tom@tromey.com>
13555
13556 * valprint.h (generic_value_print): Declare.
13557 * valprint.c (generic_value_print): New function.
13558
2b4e573d
TT
135592020-03-13 Tom Tromey <tom@tromey.com>
13560
13561 * valprint.c (do_val_print): Call la_value_print_inner, if
13562 available.
13563 * rust-lang.c (rust_language_defn): Update.
13564 * p-lang.c (pascal_language_defn): Update.
13565 * opencl-lang.c (opencl_language_defn): Update.
13566 * objc-lang.c (objc_language_defn): Update.
13567 * m2-lang.c (m2_language_defn): Update.
13568 * language.h (struct language_defn) <la_value_print_inner>: New
13569 member.
13570 * language.c (unknown_language_defn, auto_language_defn): Update.
13571 * go-lang.c (go_language_defn): Update.
13572 * f-lang.c (f_language_defn): Update.
13573 * d-lang.c (d_language_defn): Update.
13574 * c-lang.c (c_language_defn, cplus_language_defn)
13575 (asm_language_defn, minimal_language_defn): Update.
13576 * ada-lang.c (ada_language_defn): Update.
13577
a1f6a07c
TT
135782020-03-13 Tom Tromey <tom@tromey.com>
13579
13580 * c-valprint.c (c_value_print): Use common_val_print.
13581
410cf315
TT
135822020-03-13 Tom Tromey <tom@tromey.com>
13583
13584 * cp-valprint.c (cp_print_static_field): Use common_val_print.
13585
72a45c93
TT
135862020-03-13 Tom Tromey <tom@tromey.com>
13587
13588 * f-valprint.c (f77_print_array_1, f_val_print): Use
13589 common_val_print.
13590
040f66bd
TT
135912020-03-13 Tom Tromey <tom@tromey.com>
13592
13593 * riscv-tdep.c (riscv_print_one_register_info): Use
13594 common_val_print.
13595
a6e05a6c
TT
135962020-03-13 Tom Tromey <tom@tromey.com>
13597
13598 * mi/mi-main.c (output_register): Use common_val_print.
13599
3444c526
TT
136002020-03-13 Tom Tromey <tom@tromey.com>
13601
13602 * infcmd.c (default_print_one_register_info): Use
13603 common_val_print.
13604
c2a44efe
TT
136052020-03-13 Tom Tromey <tom@tromey.com>
13606
13607 * valprint.h (common_val_print_checked): Declare.
13608 * valprint.c (common_val_print_checked): New function.
13609 * stack.c (print_frame_arg): Use common_val_print_checked.
13610
b0c26e99
TT
136112020-03-13 Tom Tromey <tom@tromey.com>
13612
13613 * valprint.c (do_val_print): New function, from val_print.
13614 (val_print): Use do_val_print.
13615 (common_val_print): Use do_val_print.
13616
ce3acbe9
TT
136172020-03-13 Tom Tromey <tom@tromey.com>
13618
13619 * valprint.c (value_print): Use scoped_value_mark.
13620
96c7f873
TV
136212020-03-13 Tom de Vries <tdevries@suse.de>
13622
13623 PR symtab/25646
13624 * psymtab.c (partial_symtab::partial_symtab): Don't set
13625 globals_offset and statics_offset. Push element onto
13626 current_global_psymbols and current_static_psymbols stacks.
13627 (concat): New function.
13628 (end_psymtab_common): Set globals_offset and statics_offset. Pop
13629 element from current_global_psymbols and current_static_psymbols
13630 stacks. Concat popped elements to global_psymbols and
13631 static_symbols.
13632 (add_psymbol_to_list): Use current_global_psymbols and
13633 current_static_psymbols stacks.
13634 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
13635 current_static_psymbols fields.
13636
6ba0a321
CB
136372020-03-12 Christian Biesinger <cbiesinger@google.com>
13638
13639 * corelow.c (sniff_core_bfd): Remove.
13640 (class core_target) <m_core_vec>: Remove.
13641 (core_target::core_target): Update.
13642 (core_file_fns): Remove.
13643 (deprecated_add_core_fns): Remove.
13644 (default_core_sniffer): Remove.
13645 (sniff_core_bfd): Remove.
13646 (default_check_format): Remove.
13647 (gdb_check_format): Remove.
13648 (core_target_open): Update.
13649 (core_target::get_core_register_section): Update.
13650 (get_core_registers_cb): Update.
13651 (core_target::fetch_registers): Update.
13652 * gdbcore.h (struct core_fns): Remove.
13653 (deprecated_add_core_fns): Remove.
13654 (default_core_sniffer): Remove.
13655 (default_check_format): Remove.
13656
227031b2
TT
136572020-03-12 Tom Tromey <tom@tromey.com>
13658
13659 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
13660 CORE_ADDR.
13661 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
13662
53807e9f
TT
136632020-03-12 Tom Tromey <tom@tromey.com>
13664
13665 * remote.c (remote_target::download_tracepoint)
13666 (remote_target::enable_tracepoint)
13667 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
13668 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
13669 sprintf_vma.
13670
64f25102
TT
136712020-03-12 Tom Tromey <tom@tromey.com>
13672
13673 * symfile-mem.c: Update CORE_ADDR size assert.
13674
272cd5a3
SM
136752020-03-12 Simon Marchi <simon.marchi@efficios.com>
13676
13677 * selftest.m4: Move to gdbsupport/.
13678 * acinclude.m4: Update path to selftest.m4.
13679
74cd3f9d
SM
136802020-03-12 Simon Marchi <simon.marchi@efficios.com>
13681
13682 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
13683 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
13684 gdbarch-selfselftests.c and selftest-arch.c.
13685 (SUBDIR_UNITTESTS_OBS): Rename to...
13686 (SELFTESTS_OBS): ... this.
13687 (COMMON_SFILES): Remove disasm-selftests.c and
13688 gdbarch-selftests.c.
13689 * configure.ac: Don't add selftest-arch.{c,o} to
13690 CONFIG_{SRCS,OBS}.
13691 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
13692 preprocessor conditions.
13693
db6878ac
SM
136942020-03-12 Simon Marchi <simon.marchi@efficios.com>
13695
13696 * configure.ac: Don't source bfd/development.sh.
13697 * selftest.m4: Modify comment.
13698 * configure: Re-generate.
13699
4d696a5c
SM
137002020-03-12 Simon Marchi <simon.marchi@efficios.com>
13701
13702 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
13703 not "true" or "false".
13704 * configure: Re-generate.
13705
8dd8e1c7
CB
137062020-03-12 Christian Biesinger <cbiesinger@google.com>
13707
13708 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
13709 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
13710 renamed to arm_nbsd_supply_gregset.
13711 (fetch_register): Update to call arm_nbsd_supply_gregset.
13712 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
13713 (arm_netbsd_nat_target::fetch_registers): Update.
13714 (fetch_elfcore_registers): Removed.
13715 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
13716 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
13717 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
13718 not require NetBSD system headers.
13719 (arm_nbsd_regset): New struct.
13720 (arm_nbsd_iterate_over_regset_sections): New function.
13721 (arm_netbsd_init_abi_common): Updated to call
13722 set_gdbarch_iterate_over_regset_sections.
13723 * arm-nbsd-tdep.h: New file.
13724
dd69bf7a
KB
137252020-03-11 Kevin Buettner <kevinb@redhat.com>
13726
13727 * symtab.c (find_pc_sect_line): Add check which prevents infinite
13728 recursion.
13729
a0761e34
SM
137302020-03-11 Simon Marchi <simon.marchi@efficios.com>
13731
13732 * configure: Re-generate.
13733
e7a82140
TT
137342020-03-11 Tom Tromey <tromey@adacore.com>
13735
13736 * ada-typeprint.c (print_choices): Fix comment.
13737
dcc050c8
AB
137382020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
13739
13740 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
13741 previous item in the list, when the list has no items.
13742
1c33af77
TV
137432020-03-11 Tom de Vries <tdevries@suse.de>
13744
13745 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
13746 PROP_LOCLIST handling code.
13747
8c95582d
AB
137482020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
13749
13750 * buildsym-legacy.c (record_line): Pass extra parameter to
13751 record_line.
13752 * buildsym.c (buildsym_compunit::record_line): Take an extra
13753 parameter, reduce duplication in the line table, and record the
13754 is_stmt flag in the line table.
13755 * buildsym.h (buildsym_compunit::record_line): Add extra
13756 parameter.
13757 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
13758 non-statement lines.
13759 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
13760 this to the symtab builder.
13761 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
13762 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
13763 through to dwarf_record_line_1.
13764 * infrun.c (process_event_stop_test): When stepping, don't stop at
13765 a non-statement instruction, and only refresh the step info when
13766 we land in the middle of a line's range. Also add an extra
13767 comment.
13768 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
13769 field.
13770 * record-btrace.c (btrace_find_line_range): Only record lines
13771 marked as is-statement.
13772 * stack.c (frame_show_address): Show the frame address if we are
13773 in a non-statement sal.
13774 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
13775 (maintenance_print_one_line_table): Print a header for the is_stmt
13776 column, and include is_stmt information in the output.
13777 * symtab.c (find_pc_sect_line): Find lines marked as statements in
13778 preference to non-statements.
13779 (find_pcs_for_symtab_line): Prefer is-statement entries.
13780 (find_line_common): Likewise.
13781 * symtab.h (struct linetable_entry): Add is_stmt field.
13782 (struct symtab_and_line): Likewise.
13783 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
13784 arranging the line table.
13785
e4003a34
TV
137862020-03-07 Tom de Vries <tdevries@suse.de>
13787
13788 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
13789 DIE.
13790
e8932576
TT
137912020-03-07 Tom Tromey <tom@tromey.com>
13792
13793 * valops.c (value_literal_complex): Remove obsolete comment.
13794 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
13795 comment.
13796
29734269
SM
137972020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
13798
13799 * infrun.h: Forward-declare thread_info.
13800 (set_step_info): Add thread_info parameter, add doc.
13801 * infrun.c (set_step_info): Add thread_info parameter, move doc
13802 to header.
13803 * infrun.c (process_event_stop_test): Pass thread to
13804 set_step_info call.
13805 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
13806 set_step_info.
13807 (prepare_one_step): Add thread_info parameter, pass it to
13808 set_step_frame and prepare_one_step (recursive) call.
13809 (step_1): Pass thread to prepare_one_step call.
13810 (step_command_fsm::should_stop): Pass thread to
13811 prepare_one_step.
13812 (until_next_fsm): Pass thread to set_step_frame call.
13813 (finish_command): Pass thread to set_step_info call.
13814
b7d64b29
HD
138152020-03-06 Hannes Domani <ssbssa@yahoo.de>
13816
13817 * windows-tdep.c (windows_solib_create_inferior_hook):
13818 Check if inferior is running.
13819
09f2921c
TV
138202020-03-06 Tom de Vries <tdevries@suse.de>
13821
13822 * NEWS: Fix "the the".
13823 * ctfread.c: Same.
13824
fd760e79
TV
138252020-03-06 Tom de Vries <tdevries@suse.de>
13826
13827 * psymtab.c (psymtab_to_symtab): Don't print "done.".
13828
20ea4a60
AB
138292020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13830
13831 * .dir-locals.el: Add a comment referencing the other copies of
13832 this file.
13833
0afbabf0
JB
138342020-03-05 John Baldwin <jhb@FreeBSD.org>
13835
13836 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
13837 psargs.
13838
842806cb
TBA
138392020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13840
13841 * .gitattributes: New file.
13842
be1e3d3e
TT
138432020-03-04 Tom Tromey <tom@tromey.com>
13844
13845 * symmisc.c (print_symbol_bcache_statistics)
13846 (print_objfile_statistics): Update.
13847 * symfile.c (allocate_symtab): Use intern.
13848 * psymtab.c (partial_symtab::partial_symtab): Use intern.
13849 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
13850 macro_cache>: Remove.
13851 <string_cache>: New member.
13852 (struct objfile) <intern>: New methods.
13853 * elfread.c (elf_symtab_read): Use intern.
13854 * dwarf2/read.c (fixup_go_packaging): Intern package name.
13855 (dwarf2_compute_name, dwarf2_physname)
13856 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
13857 names.
13858 (guess_partial_die_structure_name): Update.
13859 (partial_die_info::fixup): Intern name.
13860 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
13861 name.
13862 (dwarf2_name): Intern name. Update.
13863 * buildsym.c (buildsym_compunit::get_macro_table): Use
13864 string_cache.
13865
4e7625fd
TT
138662020-03-04 Tom Tromey <tom@tromey.com>
13867
13868 * jit.c (bfd_open_from_target_memory): Make "target" const.
13869 * corefile.c (gnutarget): Now const.
13870 * gdbcore.h (gnutarget): Now const.
13871
46f9f931
HD
138722020-03-04 Hannes Domani <ssbssa@yahoo.de>
13873
13874 * NEWS: Mention support for WOW64 processes.
13875 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
13876 (amd64_windows_segment_register_p): Remove static.
13877 (_initialize_amd64_windows_nat): Update.
13878 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
13879 * i386-windows-nat.c (context_offset): Update.
13880 (i386_mappings): Rename and remove static.
13881 (i386_windows_segment_register_p): Remove static.
13882 (_initialize_i386_windows_nat): Update.
13883 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
13884 (STATUS_WX86_SINGLE_STEP): New macro.
13885 (EnumProcessModulesEx): New macro.
13886 (Wow64SuspendThread): New macro.
13887 (Wow64GetThreadContext): New macro.
13888 (Wow64SetThreadContext): New macro.
13889 (Wow64GetThreadSelectorEntry): New macro.
13890 (windows_set_context_register_offsets): Add static.
13891 (windows_set_segment_register_p): Likewise.
13892 (windows_add_thread): Adapt for WOW64 processes.
13893 (windows_fetch_one_register): Likewise.
13894 (windows_nat_target::fetch_registers): Likewise.
13895 (windows_store_one_register): Likewise.
13896 (display_selector): Likewise.
13897 (display_selectors): Likewise.
13898 (handle_exception): Likewise.
13899 (windows_continue): Likewise.
13900 (windows_nat_target::resume): Likewise.
13901 (windows_add_all_dlls): Likewise.
13902 (do_initial_windows_stuff): Likewise.
13903 (windows_nat_target::attach): Likewise.
13904 (windows_get_exec_module_filename): Likewise.
13905 (windows_nat_target::create_inferior): Likewise.
13906 (windows_xfer_siginfo): Likewise.
13907 (_initialize_loadable): Initialize Wow64SuspendThread,
13908 Wow64GetThreadContext, Wow64SetThreadContext,
13909 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
13910 * windows-nat.h (windows_set_context_register_offsets):
13911 Remove declaration.
13912 (windows_set_segment_register_p): Likewise.
13913 (i386_windows_segment_register_p): Add declaration.
13914 (amd64_windows_segment_register_p): Likewise.
13915
440cf44e
LM
139162020-03-04 Luis Machado <luis.machado@linaro.org>
13917
13918 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
13919 in "info registers" for AArch64/ARM.
13920
13921 The change caused "info registers" to not print GPR's.
13922
13923 gdb/ChangeLog:
13924
13925 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
13926
13927 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13928 when reg->group is empty and reggroup is not.
13929
1009d92f
TT
139302020-03-03 Tom Tromey <tromey@adacore.com>
13931
13932 * dwarf2/frame.c (struct dwarf2_frame_cache)
13933 <checked_tailcall_bottom, entry_cfa_sp_offset,
13934 entry_cfa_sp_offset_p>: Remove members.
13935 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
13936 (dwarf2_frame_prev_register): Don't call
13937 dwarf2_tailcall_sniffer_first.
13938 (dwarf2_append_unwinders): Don't append tailcall unwinder.
13939 * frame-unwind.c (add_unwinder): New fuction.
13940 (frame_unwind_init): Use it. Add tailcall unwinder.
13941
5e5d66b6
AB
139422020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
13943 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13944
13945 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
13946 value should be printed as true.
13947
584cf46d
HD
139482020-03-03 Hannes Domani <ssbssa@yahoo.de>
13949
13950 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
13951 (windows_init_abi): Set and use windows_so_ops.
13952
7b973adc
SDJ
139532020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
13954
13955 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
13956 when verifying if dealing with a convenience variable.
13957
bb7b70ab
LM
139582020-03-03 Luis Machado <luis.machado@linaro.org>
13959
13960 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
13961
9822cb57
SM
139622020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13963
13964 * infrun.c (gdbarch_supports_displaced_stepping): New.
13965 (use_displaced_stepping): Break up conditions in smaller pieces.
13966 Use gdbarch_supports_displaced_stepping.
13967 (displaced_step_prepare_throw): Use
13968 gdbarch_supports_displaced_stepping.
13969
63e163f2
AB
139702020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13971
13972 * NEWS: Mention new behaviour of the history filename.
13973 * top.c (write_history_p): Add comment.
13974 (show_write_history_p): Add header comment, give a different
13975 message when history writing is on, but the history filename is
13976 empty.
13977 (history_filename): Add comment.
13978 (history_filename_empty): New function.
13979 (show_history_filename): Add header comment, give a different
13980 message when the filename is empty.
13981 (init_history): Compare history_filename against nullptr, and only
13982 read history if the filename is not empty.
13983 (set_history_filename): Add header comment, and only make
13984 non-empty filenames absolute.
13985 (init_main): Make the filename argument to 'set history filename'
13986 optional.
13987
81b86b97
CB
139882020-03-02 Christian Biesinger <cbiesinger@google.com>
13989
13990 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
13991 (arm_supply_vfpregset): ...this, and update to use VFP registers.
13992 (fetch_fp_register): Update.
13993 (fetch_fp_regs): Update.
13994 (store_fp_register): Update.
13995 (store_fp_regs): Update.
13996 (arm_netbsd_nat_target::read_description): New function.
13997 (fetch_elfcore_registers): Update.
13998
24ed6739
AB
139992020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14000
14001 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
14002 general_thread if the stop reply is missing a thread-id.
14003 (remote_target::process_stop_reply): Use the first non-exited
14004 thread if the target didn't pass a thread-id.
14005 * infrun.c (do_target_wait): Move call to
14006 switch_to_inferior_no_thread to ....
14007 (do_target_wait_1): ... here.
14008
a84bb2a0
JT
140092020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
14010
14011 * debuginfod-support.c: Include defs.h first.
14012
658dadf0
TV
140132020-02-28 Tom de Vries <tdevries@suse.de>
14014
14015 * symfile.c (set_initial_language): Use default language for lookup.
14016
4ebe4877
SM
140172020-02-28 Simon Marchi <simon.marchi@efficios.com>
14018
14019 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
14020 reader variable, pass `this` to read_cutu_die_from_dwo.
14021
e5da1139
AM
140222020-02-27 Aaron Merey <amerey@redhat.com>
14023
14024 * source.c (open_source_file): Check for nullptr when computing
14025 srcpath.
14026
317f7127
TT
140272020-02-27 Tom Tromey <tromey@adacore.com>
14028
14029 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
14030 member.
14031 (dwarf2_add_field): Don't update nfields.
14032 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
14033
3104d9ee
AB
140342020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14035
14036 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
14037 abs.
14038
b83470bf
TT
140392020-02-26 Tom Tromey <tom@tromey.com>
14040
14041 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
14042 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
14043 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
14044 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
14045 per_cu_data.
14046
edfe0a0c
TT
140472020-02-26 Tom Tromey <tom@tromey.com>
14048
14049 * dwarf2/index-write.c (psym_index_map): Change type.
14050 (add_address_entry_worker, write_one_signatured_type)
14051 (recursively_count_psymbols, recursively_write_psymbols)
14052 (class debug_names, psyms_seen_size, write_gdbindex)
14053 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
14054
0d79cdc4
AM
140552020-02-26 Aaron Merey <amerey@redhat.com>
14056
14057 * Makefile.in: Handle optional debuginfod support.
14058 * NEWS: Update.
14059 * README: Add --with-debuginfod summary.
14060 * config.in: Regenerate.
14061 * configure: Regenerate.
14062 * configure.ac: Handle optional debuginfod support.
14063 * debuginfod-support.c: debuginfod helper functions.
14064 * debuginfod-support.h: Ditto.
14065 * doc/gdb.texinfo: Add --with-debuginfod to configure options
14066 summary.
14067 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
14068 when a dwz file cannot be found.
14069 * elfread.c (elf_symfile_read): Query debuginfod servers when a
14070 debuginfo file cannot be found.
14071 * source.c (open_source_file): Query debuginfod servers when a
14072 source file cannot be found.
14073 * top.c (print_gdb_configuration): Include
14074 --{with,without}-debuginfod in the output.
14075
b65ce565
JG
140762020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
14077
14078 * thread.c (thr_try_catch_cmd): Print thread name.
14079
d4c9a4f8
SM
140802020-02-26 Simon Marchi <simon.marchi@efficios.com>
14081
14082 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
14083 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14084 dwarf2_fetch_die_type_sect_off): Move to...
14085 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
14086 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14087 dwarf2_fetch_die_type_sect_off): ... here.
14088 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
14089 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14090 dwarf2_fetch_die_type_sect_off): Move doc to header file.
14091
0dce4280
TV
140922020-02-26 Tom de Vries <tdevries@suse.de>
14093
14094 PR gdb/25603
14095 * symfile.c (set_initial_language): Exit-early if
14096 language_mode == language_mode_manual.
14097
450a1bfc
SM
140982020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14099
14100 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
14101 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
14102 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
14103
9e80cfa1
AB
141042020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
14105
14106 * gdbtypes.c (create_array_type_with_stride): Handle negative
14107 array strides.
14108 * valarith.c (value_subscripted_rvalue): Likewise.
14109
09624f1f
LM
141102020-02-25 Luis Machado <luis.machado@linaro.org>
14111
14112 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
14113
8cb5117c
SM
141142020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14115
14116 * loc.h (dwarf2_get_die_type): Move to...
14117 * read.h (dwarf2_get_die_type): ... here.
14118 * read.c (dwarf2_get_die_type): Move doc to header.
14119
c325c44e
JB
141202020-02-25 Joel Brobecker <brobecker@adacore.com>
14121
14122 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
14123 'gnulib/Makefile.in' to the list.
14124
4ac93832
TT
141252020-02-24 Tom Tromey <tom@tromey.com>
14126
14127 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
14128 Remove.
14129 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
14130 XOBNEWVEC.
14131
197400e8
TT
141322020-02-24 Tom Tromey <tom@tromey.com>
14133
14134 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
14135 New method.
14136 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
14137 (dw2_do_instantiate_symtab, dw2_get_file_names)
14138 (build_type_psymtab_dependencies, load_full_type_unit): Update.
14139
76935768
TT
141402020-02-24 Tom Tromey <tom@tromey.com>
14141
14142 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
14143 make_scoped_restore.
14144 (dwarf2_psymtab::read_symtab): Don't clear
14145 reading_partial_symbols.
14146
a88ef40d
TV
141472020-02-24 Tom de Vries <tdevries@suse.de>
14148
14149 PR gdb/25592
14150 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
14151
c9af6521
TV
141522020-02-24 Tom de Vries <tdevries@suse.de>
14153
14154 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
14155 commands layout next/prev/regs.
14156
5707a07a
TT
141572020-02-22 Tom Tromey <tom@tromey.com>
14158
14159 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
14160 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
14161
3b0fb49e
TT
141622020-02-22 Tom Tromey <tom@tromey.com>
14163
14164 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
14165
283be8bf
TT
141662020-02-22 Tom Tromey <tom@tromey.com>
14167
14168 * tui/tui-win.c (_initialize_tui_win): Add usage text.
14169 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
14170 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
14171 * tui/tui.c (_initialize_tui): Add usage text.
14172
ca793b96
TT
141732020-02-22 Tom Tromey <tom@tromey.com>
14174
14175 * tui/tui-win.c (tui_set_focus_command)
14176 (tui_set_win_height_command): Use error_no_arg.
14177 (_initialize_tui_win): Update help text.
14178 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
14179
432b5c40
TT
141802020-02-22 Tom Tromey <tom@tromey.com>
14181
14182 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
14183 * tui/tui-disasm.h (struct tui_disasm_window)
14184 <display_start_addr>: Declare.
14185 * tui/tui-source.h (struct tui_source_window)
14186 <display_start_addr>: Declare.
14187 * tui/tui-winsource.h (struct tui_source_window_base)
14188 <show_source_line, display_start_addr>: New methods.
14189 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
14190 Rename and move to protected section.
14191 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
14192 (tui_source_window_base::do_erase_source_content): Update.
14193 (tui_source_window_base::show_source_line): Now a method.
14194 (tui_source_window_base::show_source_content)
14195 (tui_source_window_base::tui_source_window_base)
14196 (tui_source_window_base::rerender)
14197 (tui_source_window_base::refill)
14198 (tui_source_window_base::do_scroll_horizontal)
14199 (tui_source_window_base::set_is_exec_point_at)
14200 (tui_source_window_base::update_breakpoint_info)
14201 (tui_source_window_base::update_exec_info): Update.
14202 * tui/tui-source.c (tui_source_window::set_contents)
14203 (tui_source_window::showing_source_p)
14204 (tui_source_window::do_scroll_vertical)
14205 (tui_source_window::location_matches_p)
14206 (tui_source_window::line_is_displayed): Update.
14207 (tui_source_window::display_start_addr): New method.
14208 * tui/tui-disasm.c (tui_disasm_window::set_contents)
14209 (tui_disasm_window::do_scroll_vertical)
14210 (tui_disasm_window::location_matches_p): Update.
14211 (tui_disasm_window::display_start_addr): New method.
14212
01b1af32
TT
142132020-02-22 Tom Tromey <tom@tromey.com>
14214
14215 * NEWS: Add entry for gdb.register_window_type.
14216 * tui/tui-layout.h (window_factory): New typedef.
14217 (tui_register_window): Declare.
14218 * tui/tui-layout.c (saved_tui_windows): New global.
14219 (tui_apply_current_layout): Use it.
14220 (tui_register_window): New function.
14221 * python/python.c (do_start_initialization): Call
14222 gdbpy_initialize_tui.
14223 (python_GdbMethods): Add "register_window_type" function.
14224 * python/python-internal.h (gdbpy_register_tui_window)
14225 (gdbpy_initialize_tui): Declare.
14226 * python/py-tui.c: New file.
14227 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
14228
fc96d20b
TT
142292020-02-22 Tom Tromey <tom@tromey.com>
14230
14231 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
14232
935c78c0
TT
142332020-02-22 Tom Tromey <tom@tromey.com>
14234
14235 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
14236 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
14237 * tui/tui-data.c (tui_set_win_with_focus): Remove.
14238 (tui_set_win_focus_to): Move from tui-win.c.
14239
0240c8f1
TT
142402020-02-22 Tom Tromey <tom@tromey.com>
14241
14242 * tui/tui-layout.c (make_standard_window, get_locator_window): New
14243 functions.
14244 (known_window_types): New global.
14245 (tui_get_window_by_name): Reimplement.
14246 (initialize_known_windows): New function.
14247 (validate_window_name): Rewrite.
14248 (_initialize_tui_layout): Call initialize_known_windows.
14249
fdb01f0c
TT
142502020-02-22 Tom Tromey <tom@tromey.com>
14251
14252 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
14253 Remove constants.
14254 * tui/tui-winsource.h (struct tui_source_window_base)
14255 <tui_source_window_base>: Remove parameter.
14256 * tui/tui-winsource.c
14257 (tui_source_window_base::tui_source_window_base): Remove
14258 parameter.
14259 (tui_source_window_base::refill): Update.
14260 * tui/tui-stack.h (struct tui_locator_window)
14261 <tui_locator_window>: Update.
14262 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
14263 Default the constructor.
14264 * tui/tui-regs.h (struct tui_data_item_window)
14265 <tui_data_item_window>: Default the constructor.
14266 (struct tui_data_window) <tui_data_window>: Likewise.
14267 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
14268 Default the constructor.
14269 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
14270 Default the constructor.
14271 <type>: Remove.
14272 (struct tui_win_info) <tui_win_info>: Default the constructor.
14273 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
14274 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
14275 Default the constructor.
14276
865a5aec
TT
142772020-02-22 Tom Tromey <tom@tromey.com>
14278
14279 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
14280 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
14281 * tui/tui-win.c (tui_resize_all): Don't call
14282 tui_delete_invisible_windows.
14283 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
14284 done.
14285 (tui_set_layout): Update.
14286 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
14287 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
14288 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
14289
e098d18c
TT
142902020-02-22 Tom Tromey <tom@tromey.com>
14291
14292 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
14293 correctly.
14294
eb9c8874
TT
142952020-02-22 Tom Tromey <tom@tromey.com>
14296
14297 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
14298
7eed1a8e
TT
142992020-02-22 Tom Tromey <tom@tromey.com>
14300
14301 * tui/tui-winsource.h (struct tui_source_window_iterator)
14302 <inner_iterator>: New etytypedef.
14303 <tui_source_window_iterator>: Take "end" parameter.
14304 <tui_source_window_iterator>: Take iterator.
14305 <operator*, advance>: Update.
14306 <m_iter>: Change type.
14307 <m_end>: New field.
14308 (struct tui_source_windows) <begin, end>: Update.
14309 * tui/tui-layout.c (tui_windows): New global.
14310 (tui_apply_current_layout): Clear tui_windows.
14311 (tui_layout_window::apply): Update tui_windows.
14312 * tui/tui-data.h (tui_windows): Declare.
14313 (all_tui_windows): Now inline function.
14314 (class tui_window_iterator, struct all_tui_windows): Remove.
14315
7c043ba6
TT
143162020-02-22 Tom Tromey <tom@tromey.com>
14317
14318 PR tui/17850:
14319 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
14320 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
14321 "height" argument.
14322 (class tui_layout_window) <get_sizes>: Likewise.
14323 (class tui_layout_split) <tui_layout_split>: Add "vertical"
14324 argument.
14325 <get_sizes>: Add "height" argument.
14326 <m_vertical>: New field.
14327 * tui/tui-layout.c (tui_layout_split::clone): Update.
14328 (tui_layout_split::get_sizes): Add "height" argument.
14329 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
14330 (tui_new_layout_command): Parse "-horizontal".
14331 (_initialize_tui_layout): Update help string.
14332 (tui_layout_split::specification): Add "-horizontal" when needed.
14333 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
14334 argument.
14335 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
14336 New methods.
14337
6bc56648
TT
143382020-02-22 Tom Tromey <tom@tromey.com>
14339
14340 * tui/tui-layout.h (enum tui_adjust_result): New.
14341 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
14342 (class tui_layout_window) <adjust_size>: Return
14343 tui_adjust_result. Rewrite.
14344 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
14345 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
14346
c22fef7e
TT
143472020-02-22 Tom Tromey <tom@tromey.com>
14348
14349 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
14350 parameter and return types.
14351 (class tui_layout_base) <specification>: Add "depth".
14352 (class tui_layout_window) <specification>: Add "depth".
14353 (class tui_layout_split) <specification>: Add "depth".
14354 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
14355 and return types.
14356 (tui_new_layout_command): Parse sub-layouts.
14357 (_initialize_tui_layout): Update help string.
14358 (tui_layout_window::specification): Add "depth".
14359 (add_layout_command): Update.
14360
ee325b61
TT
143612020-02-22 Tom Tromey <tom@tromey.com>
14362
14363 * NEWS: Add "tui new-layout" item.
14364 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
14365 Add new-layout command to help text.
14366 (validate_window_name): New function.
14367 (tui_new_layout_command): New function.
14368 (_initialize_tui_layout): Register "new-layout".
14369 (tui_layout_window::specification): New method.
14370 (tui_layout_window::specification): New method.
14371 * tui/tui-layout.h (class tui_layout_base) <specification>: New
14372 method.
14373 (class tui_layout_window) <specification>: New method.
14374 (class tui_layout_split) <specification>: New method.
14375
416eb92d
TT
143762020-02-22 Tom Tromey <tom@tromey.com>
14377
14378 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
14379 * tui/tui-win.c (window_name_completer): Update comment.
14380 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
14381 Declare method.
14382 (class tui_layout_window) <replace_window>: Likewise.
14383 (class tui_layout_split) <replace_window>: Likewise.
14384 (tui_set_layout): Don't declare.
14385 (tui_set_initial_layout): Declare function.
14386 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
14387 (asm_regs_layout): New globals.
14388 (tui_current_layout, show_layout): Remove.
14389 (tui_set_layout, tui_add_win_to_layout): Rewrite.
14390 (find_layout, tui_apply_layout): New function.
14391 (layout_completer): Remove.
14392 (tui_next_layout): Reimplement.
14393 (tui_next_layout_command): New function.
14394 (tui_set_initial_layout, tui_prev_layout_command): New functions.
14395 (tui_regs_layout): Reimplement.
14396 (tui_regs_layout_command): New function.
14397 (extract_display_start_addr): Rewrite.
14398 (next_layout, prev_layout): Remove.
14399 (tui_layout_window::replace_window): New method.
14400 (tui_layout_split::replace_window): New method.
14401 (destroy_layout): New function.
14402 (layout_list): New global.
14403 (add_layout_command): New function.
14404 (initialize_layouts): Update.
14405 (tui_layout_command): New function.
14406 (_initialize_tui_layout): Install "layout" commands.
14407 * tui/tui-data.h (enum tui_layout_type): Remove.
14408 (tui_current_layout): Don't declare.
14409
0dbc2fc7
TT
144102020-02-22 Tom Tromey <tom@tromey.com>
14411
14412 * tui/tui-regs.c (tui_reg_layout): Remove.
14413 (tui_reg_command): Use tui_regs_layout.
14414 * tui/tui-layout.h (tui_reg_command): Declare.
14415 * tui/tui-layout.c (tui_reg_command): New function.
14416
5afe342e
TT
144172020-02-22 Tom Tromey <tom@tromey.com>
14418
14419 * tui/tui.c (tui_rl_delete_other_windows): Call
14420 tui_remove_some_windows.
14421 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
14422 Declare method.
14423 (class tui_layout_window) <remove_windows>: New method.
14424 (class tui_layout_split) <remove_windows>: Declare.
14425 (tui_remove_some_windows): Declare.
14426 * tui/tui-layout.c (tui_remove_some_windows): New function.
14427 (tui_layout_split::remove_windows): New method.
14428
427326a8
TT
144292020-02-22 Tom Tromey <tom@tromey.com>
14430
14431 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
14432 * tui/tui-layout.h (tui_next_layout): Declare.
14433 * tui/tui-layout.c (tui_next_layout): New function.
14434
3fe12b6d
TT
144352020-02-22 Tom Tromey <tom@tromey.com>
14436
14437 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
14438 correct coordinates.
14439
59b8b5d2
TT
144402020-02-22 Tom Tromey <tom@tromey.com>
14441
14442 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
14443 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
14444 DATA_WIN case.
14445
2a3d458b
TT
144462020-02-22 Tom Tromey <tom@tromey.com>
14447
14448 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
14449 TUI_DISASM_WIN, not tui_win_list.
14450
3f0cbb04
TT
144512020-02-22 Tom Tromey <tom@tromey.com>
14452
14453 * valprint.c (generic_val_print_enum_1)
14454 (val_print_type_code_flags): Style member names.
14455 * rust-lang.c (val_print_struct, rust_print_enum)
14456 (rust_print_struct_def, rust_internal_print_type): Style member
14457 names.
14458 * p-valprint.c (pascal_object_print_value_fields): Style member
14459 names. Only call fprintf_symbol_filtered for static members.
14460 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
14461 * f-valprint.c (f_val_print): Style member names.
14462 * f-typeprint.c (f_type_print_base): Style member names.
14463 * cp-valprint.c (cp_print_value_fields): Style member names. Only
14464 call fprintf_symbol_filtered for static members.
14465 (cp_print_class_member): Style member names.
14466 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
14467 member names.
14468 * ada-valprint.c (ada_print_scalar): Style enum names.
14469 (ada_val_print_enum): Likewise.
14470 * ada-typeprint.c (print_enum_type): Style enum names.
14471
d4d947ae
TT
144722020-02-21 Tom Tromey <tom@tromey.com>
14473
14474 * psympriv.h (struct partial_symtab): Update comment.
14475
e94e944b
TT
144762020-02-21 Tom Tromey <tromey@adacore.com>
14477
14478 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
14479 type is CORE_ADDR.
14480
1eb73179
TV
144812020-02-21 Tom de Vries <tdevries@suse.de>
14482
14483 PR gdb/25534
14484 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
14485 if dependencies[i]->user != NULL.
14486
4f180d53
AT
144872020-02-21 Ali Tamur <tamur@google.com>
14488
14489 * dwarf2/read.c (dwarf2_name): Add null check.
14490
22b6cd70
TT
144912020-02-20 Tom Tromey <tom@tromey.com>
14492
14493 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
14494 ">=", in binary search.
14495 (dwarf2_find_containing_comp_unit): New overload.
14496 (run_test): New self-test.
14497 (_initialize_dwarf2_read): Register new test.
14498
bd0cf5a6
NC
144992020-02-20 Nelson Chu <nelson.chu@sifive.com>
14500
14501 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
14502 * riscv-tdep.h: Likewise.
14503 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
14504 rv32-only CSR.
14505 * features/riscv/64bit-csr.xml: Regenerated.
14506
3f702acd
SDJ
145072020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
14508 Tom Tromey <tom@tromey.com>
14509
14510 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
14511 of 'fputc_unfiltered'.
14512 (putchar_unfiltered): Call 'fputc_unfiltered'.
14513 (fputc_unfiltered): Call 'fputs_unfiltered'.
14514
d13c7322
AB
145152020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
14516
14517 * config.in: Regenerate.
14518 * configure: Regenerate.
14519 * configure.ac: Add --with-python-libdir option.
14520 * main.c: Use WITH_PYTHON_LIBDIR.
14521
869d8950
TT
145222020-02-19 Tom Tromey <tom@tromey.com>
14523
14524 * symtab.c (general_symbol_info::compute_and_set_names): Use
14525 obstack_strndup. Simplify call to symbol_set_demangled_name.
14526
298e9637
SM
145272020-02-19 Simon Marchi <simon.marchi@efficios.com>
14528
14529 * dwarf2/read.c (allocate_signatured_type_table,
14530 allocate_dwo_unit_table, allocate_type_unit_groups_table,
14531 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
14532 Remove objfile parameter, update all callers.
14533
08410482
DE
145342020-02-19 Doug Evans <dje@google.com>
14535
14536 PR rust/25535
14537 * rust-lang.c (rust_print_enum): Apply embedded_offset to
14538 rust_enum_variant calculation.
14539
dfdeeca1
TT
145402020-02-19 Tom Tromey <tromey@adacore.com>
14541
14542 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
14543
2ef5453b
TT
145442020-02-19 Tom Tromey <tromey@adacore.com>
14545
14546 * ada-lang.c (cache_symbol): Use obstack_strdup.
14547
9f1528a1
AB
145482020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14549
14550 * configure: Regenerate.
14551
d3c22fa8
TT
145522020-02-19 Tom Tromey <tromey@adacore.com>
14553
14554 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
14555 NULL check.
14556
bf84f706
MR
145572020-02-19 Maciej W. Rozycki <macro@wdc.com>
14558
14559 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
14560
d1c9b20f
AB
145612020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14562
14563 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
14564 if GDBSERVER is not defined.
14565 (riscv_tdesc_cache): Likewise, also store const target_desc.
14566 (STATIC_IN_GDB): Define.
14567 (riscv_create_target_description): Update declaration with
14568 STATIC_IN_GDB.
14569 (riscv_lookup_target_description): New function, only define if
14570 GDBSERVER is not defined.
14571 * arch/riscv.h (riscv_create_target_description): Declare only
14572 when GDBSERVER is defined.
14573 (riscv_lookup_target_description): New declaration when GDBSERVER
14574 is not defined.
14575 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
14576 (riscv_linux_read_features): ...this, and return
14577 riscv_gdbarch_features instead of target_desc.
14578 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
14579 (riscv_linux_read_description): Rename to...
14580 (riscv_linux_read_features): ...this.
14581 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14582 Update to use riscv_gdbarch_features and
14583 riscv_lookup_target_description.
14584 * riscv-tdep.c (riscv_find_default_target_description): Use
14585 riscv_lookup_target_description instead of
14586 riscv_create_target_description.
14587
373d7ac0
SM
145882020-02-18 Simon Marchi <simon.marchi@efficios.com>
14589
14590 * valprint.c (generic_val_print_enum_1): When printing a flag
14591 enum with value 0 and there is no enumerator with value 0, print
14592 just "0" instead of "(unknown: 0x0)".
14593
b29a2df0
SM
145942020-02-18 Simon Marchi <simon.marchi@efficios.com>
14595
14596 * valprint.c (generic_val_print_enum_1): Print unknown part of
14597 flag enum in hex.
14598
6740f0cc
SM
145992020-02-18 Simon Marchi <simon.marchi@efficios.com>
14600
14601 * dwarf2/read.c (update_enumeration_type_from_children): Allow
14602 flag enums to contain duplicate enumerators.
14603 * valprint.c (generic_val_print_enum_1): Update comment.
14604
edd45eb0
SM
146052020-02-18 Simon Marchi <simon.marchi@efficios.com>
14606
14607 * dwarf2/read.c: Include "count-one-bits.h".
14608 (update_enumeration_type_from_children): If an enumerator has
14609 multiple bits set, don't treat the enumeration as a "flag enum".
14610 * valprint.c (generic_val_print_enum_1): Assert that enumerators
14611 of flag enums have 0 or 1 bit set.
14612
6d0cf446
BE
146132020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
14614
14615 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
14616 conversion.
14617 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14618 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14619 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14620 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14621 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14622
7001c1b7
SM
146232020-02-18 Simon Marchi <simon.marchi@efficios.com>
14624
14625 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
14626
fdb61c6c
SM
146272020-02-14 Simon Marchi <simon.marchi@efficios.com>
14628
14629 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
14630 displaced_step_closure_up.
14631 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14632 (struct displaced_step_closure_up):
14633 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14634 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14635 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
14636 Likewise.
14637 * gdbarch.sh (displaced_step_copy_insn): Likewise.
14638 * gdbarch.c, gdbarch.h: Re-generate.
14639 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
14640 displaced_step_closure_up.
14641 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14642 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14643 * infrun.h (displaced_step_closure_up): New type alias.
14644 (struct displaced_step_inferior_state) <step_closure>: Change
14645 type to displaced_step_closure_up.
14646 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
14647 displaced_step_closure_up.
14648 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14649
a4a38eb4
TT
146502020-02-14 Tom Tromey <tom@tromey.com>
14651
14652 * minidebug.c (gnu_debug_key): New global.
14653 (find_separate_debug_file_in_section): Use it.
14654
e8217e61
SM
146552020-02-14 Simon Marchi <simon.marchi@efficios.com>
14656
14657 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
14658 std::unique_ptr.
14659 * gdbarch.c: Re-generate.
14660 * gdbarch.h: Re-generate.
14661 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
14662 change.
14663 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
14664 type to std::unique_ptr.
14665 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14666 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14667 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14668 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14669 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
14670 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14671 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14672 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14673 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14674
d8d83535
SM
146752020-02-14 Simon Marchi <simon.marchi@efficios.com>
14676
14677 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
14678 std::unique_ptr.
14679 (displaced_step_clear): Rename to...
14680 (displaced_step_reset): ... this. Just call displaced->reset ().
14681 (displaced_step_clear_cleanup): Rename to...
14682 (displaced_step_reset_cleanup): ... this.
14683 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
14684 (displaced_step_fixup): Likewise.
14685 (resume_1): Likewise.
14686 (handle_inferior_event): Restore child's memory before calling
14687 displaced_step_fixup on the parent.
14688 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
14689 to std::unique_ptr.
14690 <step_closure>: Change type to std::unique_ptr.
14691
5f661e03
SM
146922020-02-14 Simon Marchi <simon.marchi@efficios.com>
14693
14694 * arm-tdep.c: Include count-one-bits.h.
14695 (cleanup_block_store_pc): Use count_one_bits.
14696 (cleanup_block_load_pc): Use count_one_bits.
14697 (arm_copy_block_xfer): Use count_one_bits.
14698 (thumb2_copy_block_xfer): Use count_one_bits.
14699 (thumb_copy_pop_pc_16bit): Use count_one_bits.
14700 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
14701 (thumb_get_next_pcs_raw): Use count_one_bits.
14702 (arm_get_next_pcs_raw): Use count_one_bits_l.
14703 * arch/arm.c (bitcount): Remove.
14704 * arch/arm.h (bitcount): Remove.
14705
8084e579
TT
147062020-02-14 Tom Tromey <tromey@adacore.com>
14707
14708 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
14709 Update.
14710 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
14711 * dwarf2/loc.c (call_site_find_chain_1): Return
14712 unique_xmalloc_ptr.
14713 (call_site_find_chain): Likewise.
14714
258bf0ee
RB
147152020-02-14 Richard Biener <rguenther@suse.de>
14716
14717 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
14718 on expression with division operators.
14719
f98a8458
AKS
147202020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14721
14722 * MAINTAINERS (Write After Approval): Adding myself.
14723
d1437c0e
TT
147242020-02-12 Tom Tromey <tom@tromey.com>
14725
14726 * event-loop.c (event_data, gdb_event, event_handler_func):
14727 Remove.
14728
3d4560f7
TT
147292020-02-12 Tom Tromey <tom@tromey.com>
14730
14731 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
14732 (dwarf2_frame_objfile_data): Add comment.
14733 (find_comp_unit, set_comp_unit): New functions.
14734 (dwarf2_frame_find_fde): Use find_comp_unit.
14735 (dwarf2_build_frame_info): Use set_comp_unit.
14736
21982304
TT
147372020-02-12 Tom Tromey <tom@tromey.com>
14738
14739 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
14740 (comp_unit): Don't initialize objfile.
14741 (execute_cfa_program): Add text_offset parameter.
14742 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
14743 (dwarf2_frame_cache): Update.
14744 (dwarf2_build_frame_info): Don't set "objfile" member.
14745
4debb237
TT
147462020-02-12 Tom Tromey <tom@tromey.com>
14747
14748 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
14749 (decode_frame_entry): Likewise.
14750 (dwarf2_build_frame_info): Update.
14751
0d404d44
TT
147522020-02-12 Tom Tromey <tom@tromey.com>
14753
14754 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
14755 (decode_frame_entry_1): Use the comp_unit obstack.
14756
a7a3ae5c
TT
147572020-02-12 Tom Tromey <tom@tromey.com>
14758
14759 * dwarf2/frame.c (struct comp_unit): Add initializers and
14760 constructor.
14761 (dwarf2_frame_objfile_data): Store a comp_unit.
14762 (dwarf2_frame_find_fde): Update.
14763 (dwarf2_build_frame_info): Use "new".
14764
a9d65418
TT
147652020-02-12 Tom Tromey <tom@tromey.com>
14766
14767 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
14768 (dwarf2_fde_table): Typedef for std::vector.
14769 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
14770 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
14771 (decode_frame_entry): Update.
14772 (dwarf2_build_frame_info): Use "new".
14773
7559c217
CB
147742020-02-12 Christian Biesinger <cbiesinger@google.com>
14775
14776 * arm-tdep.c (arm_gdbarch_init): Update.
14777 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
14778 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
14779 have_neon, is_m>: Change to bool.
14780
aeefc73c
CB
147812020-02-12 Christian Biesinger <cbiesinger@google.com>
14782
14783 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
14784
d27b8e5f
TT
147852020-02-12 Tom Tromey <tom@tromey.com>
14786
14787 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
14788
cd5900f3
HD
147892020-02-12 Hannes Domani <ssbssa@yahoo.de>
14790
14791 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
14792 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
14793
f056b22b
TT
147942020-02-11 Tom Tromey <tom@tromey.com>
14795
14796 * psymtab.h: Update comment.
14797
f92ff6b5
TT
147982020-02-11 Tom Tromey <tom@tromey.com>
14799
14800 * gdb_obstack.h (struct auto_obstack): Use
14801 DISABLE_COPY_AND_ASSIGN.
14802
3fd6912b
TT
148032020-02-11 Tom Tromey <tom@tromey.com>
14804
14805 * dwarf2/frame.h (struct objfile): Don't forward declare.
14806
69ed9b74
CB
148072020-02-11 Christian Biesinger <cbiesinger@google.com>
14808
14809 * cris-tdep.c (cris_supply_gregset): Change signature to match
14810 what struct regset expects.
14811 (cris_regset): New struct.
14812 (fetch_core_registers): Remove.
14813 (cris_iterate_over_regset_sections): New function.
14814 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
14815 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
14816
bda874f6
CB
148172020-02-11 Christian Biesinger <cbiesinger@google.com>
14818
14819 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
14820 registers.
14821
754e1564
CB
148222020-02-11 Christian Biesinger <cbiesinger@google.com>
14823
14824 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
14825
8ddd8e0e
SM
148262020-02-11 Simon Marchi <simon.marchi@efficios.com>
14827
14828 * configure: Re-generate.
14829
898e7f60
SM
148302020-02-11 Simon Marchi <simon.marchi@efficios.com>
14831
14832 * configure: Re-generate.
14833
58df732b
SM
148342020-02-11 Simon Marchi <simon.marchi@efficios.com>
14835
14836 * acinclude: Update warning.m4 path.
14837 * warning.m4: Move to gdbsupport.
14838
da5bd37e
TT
148392020-02-11 Tom Tromey <tromey@adacore.com>
14840
14841 * remote.c (remote_console_output): Update.
14842 * printcmd.c (printf_command): Update.
14843 * event-loop.c (gdb_wait_for_event): Update.
14844 * linux-nat.c (sigchld_handler): Update.
14845 * remote-sim.c (gdb_os_write_stdout): Update.
14846 (gdb_os_flush_stdout): Update.
14847 (gdb_os_flush_stderr): Update.
14848 (gdb_os_write_stderr): Update.
14849 * exceptions.c (print_exception): Update.
14850 * remote-fileio.c (remote_fileio_func_read): Update.
14851 (remote_fileio_func_write): Update.
14852 * tui/tui.c (tui_enable): Update.
14853 * tui/tui-interp.c (tui_interp::init): Update.
14854 * utils.c (init_page_info): Update.
14855 (putchar_unfiltered, fputc_unfiltered): Update.
14856 (gdb_flush): Update.
14857 (emit_style_escape): Update.
14858 (flush_wrap_buffer, fputs_maybe_filtered): Update.
14859 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
14860 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
14861 (stderr_file::write): Update.
14862 (stderr_file::puts): Update.
14863 * ui-file.h (ui_file_isatty, ui_file_write)
14864 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
14865 (ui_file_puts): Don't declare.
14866
85f0dd3c
TV
148672020-02-10 Tom de Vries <tdevries@suse.de>
14868
14869 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
14870 sentinel to char *.
14871
2e927613
TV
148722020-02-09 Tom de Vries <tdevries@suse.de>
14873
14874 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
14875 filename if it matches "<artificial>".
14876
6bafc845
HD
148772020-02-09 Hannes Domani <ssbssa@yahoo.de>
14878
14879 * windows-tdep.c (struct enum_value_name): New struct.
14880 (create_enum): New function.
14881 (windows_get_siginfo_type): Create and use enum types.
14882
7928d571
HD
148832020-02-09 Hannes Domani <ssbssa@yahoo.de>
14884
14885 * NEWS: Mention $_siginfo support for Windows.
14886 * windows-nat.c (handle_exception): Set siginfo_er.
14887 (windows_nat_target::mourn_inferior): Reset siginfo_er.
14888 (windows_xfer_siginfo): New function.
14889 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
14890 * windows-tdep.c (struct windows_gdbarch_data): New struct.
14891 (init_windows_gdbarch_data): New function.
14892 (get_windows_gdbarch_data): New function.
14893 (windows_get_siginfo_type): New function.
14894 (windows_init_abi): Register windows_get_siginfo_type.
14895 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
14896
6751ebae
TT
148972020-02-08 Tom Tromey <tom@tromey.com>
14898
14899 * dwarf2/read.c (class cutu_reader) <cutu_reader,
14900 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
14901 <keep>: Declare method.
14902 <m_keep>: Remove member.
14903 <~cutu_reader>: Remove.
14904 (cutu_reader::init_tu_and_read_dwo_dies): Update.
14905 (cutu_reader::cutu_reader): Update.
14906 (cutu_reader::keep): Rename from ~cutu_reader.
14907 (process_psymtab_comp_unit, build_type_psymtabs_1)
14908 (process_skeletonless_type_unit, load_partial_comp_unit)
14909 (load_full_comp_unit, dwarf2_read_addr_index)
14910 (read_signatured_type): Update.
14911
135f5437
TT
149122020-02-08 Tom Tromey <tom@tromey.com>
14913
14914 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
14915 "want_partial_unit" parameter.
14916 (process_psymtab_comp_unit): Change want_partial_unit to bool.
14917 Inline check for DW_TAG_partial_unit.
14918 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
14919
9f66ff1c
TT
149202020-02-08 Tom Tromey <tom@tromey.com>
14921
14922 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
14923 read.c.
14924 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
14925 read.c.
14926
c8a7a66f
TT
149272020-02-08 Tom Tromey <tom@tromey.com>
14928
14929 * dwarf2/read.c (read_address): Move to comp-unit.c.
14930 (dwarf2_rnglists_process, dwarf2_ranges_process)
14931 (read_attribute_value, dwarf_decode_lines_1)
14932 (var_decode_location, decode_locdesc): Update.
14933 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
14934 read.c. Remove "cu" parameter.
14935 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
14936 method.
14937
8266302d
TT
149382020-02-08 Tom Tromey <tom@tromey.com>
14939
14940 * dwarf2/read.c (read_attribute_value, read_indirect_string)
14941 (read_indirect_line_string): Update.
14942 * dwarf2/comp-unit.c (read_offset): Remove.
14943 (read_comp_unit_head): Update.
14944 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
14945 method.
14946 (read_offset): Don't declare.
14947
4057dfde
TT
149482020-02-08 Tom Tromey <tom@tromey.com>
14949
14950 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
14951 * dwarf2/read.c (struct comp_unit_head): Move to
14952 dwarf2/comp-unit.h.
14953 (enum class rcuh_kind): Move to comp-unit.h.
14954 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
14955 (read_comp_unit_head, error_check_comp_unit_head)
14956 (read_and_check_comp_unit_head): Move to comp-unit.c.
14957 (read_offset, dwarf_unit_type_name): Likewise.
14958 (create_debug_type_hash_table, read_cutu_die_from_dwo)
14959 (cutu_reader::cutu_reader, read_call_site_scope)
14960 (find_partial_die, follow_die_offset): Update.
14961 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
14962
24aa364d
TT
149632020-02-08 Tom Tromey <tom@tromey.com>
14964
14965 * dwarf2/read.c (read_offset_1): Move to leb.c.
14966 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
14967 (dwarf_decode_macro_bytes): Update.
14968 * dwarf2/leb.c (read_offset): Rename; move from read.c.
14969 * dwarf2/leb.h (read_offset): Declare.
14970
2c7d5afc
TT
149712020-02-08 Tom Tromey <tom@tromey.com>
14972
14973 * dwarf2/read.c (dwarf2_section_size): Remove.
14974 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
14975 Update.
14976 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
14977
4075cb26
TT
149782020-02-08 Tom Tromey <tom@tromey.com>
14979
14980 * dwarf2/read.c (read_initial_length): Move to leb.c.
14981 * dwarf2/leb.h (read_initial_length): Declare.
14982 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
14983 handle_nonstd parameter.
14984 * dwarf2/frame.c (read_initial_length): Remove.
14985 (decode_frame_entry_1): Update.
14986
09ba997f
TT
149872020-02-08 Tom Tromey <tom@tromey.com>
14988
14989 * dwarf2/loc.c (dwarf2_find_location_expression)
14990 (dwarf_evaluate_loc_desc::get_tls_address)
14991 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
14992 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
14993 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
14994 (dwarf2_compile_property_to_c)
14995 (dwarf2_loc_desc_get_symbol_read_needs)
14996 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
14997 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
14998 (loclist_describe_location, loclist_tracepoint_var_ref)
14999 (loclist_generate_c_location): Update.
15000 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
15001 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
15002 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
15003 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
15004 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
15005 (dwarf2_per_cu_data::addr_size)
15006 (dwarf2_per_cu_data::ref_addr_size)
15007 (dwarf2_per_cu_data::text_offset)
15008 (dwarf2_per_cu_data::addr_type): Now methods.
15009 (per_cu_header_read_in): Make per_cu "const".
15010 (dwarf2_version): Remove.
15011 (dwarf2_per_cu_data::int_type): Now a method.
15012 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
15013 (set_die_type, read_array_type, read_subrange_index_type)
15014 (read_tag_string_type, read_subrange_type): Update.
15015 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
15016 offset_size, ref_addr_size, text_offset, addr_type, version,
15017 objfile, int_type, addr_sized_int_type>: Declare methods.
15018
96c738c0
TT
150192020-02-08 Tom Tromey <tom@tromey.com>
15020
15021 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
15022 Move earlier.
15023
8fdd972c
TT
150242020-02-08 Tom Tromey <tom@tromey.com>
15025
15026 * dwarf2/read.h (dwarf_line_debug): Declare.
15027 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
15028 * dwarf2/read.c: Move line_header code to new files.
15029 (dwarf_line_debug): No longer static.
15030 * dwarf2/line-header.c: New file.
15031 * dwarf2/line-header.h: New file.
15032
03075812
TT
150332020-02-08 Tom Tromey <tom@tromey.com>
15034
15035 * dwarf2/read.c (struct line_header) <file_full_name,
15036 file_file_name>: Return unique_xmalloc_ptr.
15037 (line_header::file_file_name): Update.
15038 (line_header::file_full_name): Update.
15039 (dw2_get_file_names_reader): Update.
15040 (macro_start_file): Update.
15041
bb822404
TT
150422020-02-08 Tom Tromey <tom@tromey.com>
15043
15044 * dwarf2/read.c (struct line_header) <file_full_name,
15045 file_file_name>: Declare methods.
15046 (dw2_get_file_names_reader): Update.
15047 (file_file_name): Now a method.
15048 (file_full_name): Likewise.
15049 (macro_start_file): Update.
15050
009b64fc
TT
150512020-02-08 Tom Tromey <tom@tromey.com>
15052
15053 * dwarf2/read.c (dwarf_always_disassemble)
15054 (show_dwarf_always_disassemble): Move to loc.c.
15055 (_initialize_dwarf2_read): Move "always-disassemble" registration
15056 to loc.c.
15057 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
15058 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
15059 static.
15060 (show_dwarf_always_disassemble): Move from read.c.
15061 (_initialize_dwarf2loc): Move always-disassemble from read.c.
15062
5895093f
TT
150632020-02-08 Tom Tromey <tom@tromey.com>
15064
15065 * dwarf2/read.c (~dwarf2_per_objfile): Update.
15066 (create_quick_file_names_table): Return htab_up.
15067 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
15068 Update.
15069 * dwarf2/read.h (struct dwarf2_per_objfile)
15070 <quick_file_names_table>: Now htab_up.
15071
b3b32279
TT
150722020-02-08 Tom Tromey <tom@tromey.com>
15073
15074 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
15075
1d33d811
TT
150762020-02-08 Tom Tromey <tom@tromey.com>
15077
15078 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
15079 Rewrite.
15080 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
15081 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
15082 (abbrev_table::abbrev_table): No longer inline.
15083 (ABBREV_HASH_SIZE): Remove.
15084 (abbrev_table::m_abbrevs): Now an htab_up.
15085
86de1d91
TT
150862020-02-08 Tom Tromey <tom@tromey.com>
15087
15088 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
15089 (cutu_reader): Update.
15090 (build_type_psymtabs_1): Update.
15091 * dwarf2/abbrev.c (abbrev_table::read): Rename.
15092 (abbrev_table::alloc_abbrev): Update.
15093 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
15094 (abbrev_table::read): New static method, renamed from
15095 abbrev_table_read_table.
15096 (abbrev_table::alloc_abbrev)
15097 (abbrev_table::add_abbrev): Now private.
15098 (abbrev_table::abbrev_table): Now private.
15099 (abbrev_table::m_abbrev_obstack): Now private. Rename.
15100
0335378b
TT
151012020-02-08 Tom Tromey <tom@tromey.com>
15102
15103 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
15104 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
15105 htab_up.
15106
48b490f2
TT
151072020-02-08 Tom Tromey <tom@tromey.com>
15108
15109 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
15110 htab_up.
15111 (lookup_dwo_unit_in_dwp): Update.
15112 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
15113 on obstack.
15114
bc68fb19
TT
151152020-02-08 Tom Tromey <tom@tromey.com>
15116
15117 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
15118 obstack.
15119
d15acc42
TT
151202020-02-08 Tom Tromey <tom@tromey.com>
15121
15122 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
15123 line_header_hash.
15124 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
15125 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
15126 Change type to htab_up.
15127
eaa5fa8b
TT
151282020-02-08 Tom Tromey <tom@tromey.com>
15129
15130 * dwarf2/read.c (allocate_type_unit_groups_table): Return
15131 htab_up. Don't allocate on obstack.
15132 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
15133 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
15134 Change type to htab_up.
15135
b0b6a987
TT
151362020-02-08 Tom Tromey <tom@tromey.com>
15137
15138 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
15139 Change type to htab_up.
15140 * dwarf2/read.c (create_signatured_type_table_from_index)
15141 (create_signatured_type_table_from_debug_names)
15142 (create_all_type_units, add_type_unit)
15143 (lookup_dwo_signatured_type, lookup_signatured_type)
15144 (process_skeletonless_type_unit): Update.
15145 (create_debug_type_hash_table, create_debug_types_hash_table):
15146 Change type of types_htab.
15147 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
15148 htab_up. Don't allocate on obstack.
15149 (create_cus_hash_table): Change type of cus_htab parameter.
15150 (struct dwo_file) <cus, tus>: Now htab_up.
15151 (lookup_dwo_signatured_type, lookup_dwo_cutu)
15152 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
15153 (queue_and_load_all_dwo_tus): Update.
15154 * dwarf2/index-write.c (write_gdbindex): Update.
15155 (write_debug_names): Update.
15156
39856def
TT
151572020-02-08 Tom Tromey <tom@tromey.com>
15158
15159 * dwarf2/read.h (struct dwarf2_queue_item): Move from
15160 dwarf2/read.c. Remove "next" member. Add constructor ntad
15161 destructor.
15162 (struct dwarf2_per_objfile) <queue>: New member.
15163 * dwarf2/read.c (struct dwarf2_queue_item): Move to
15164 dwarf2/read.h.
15165 (dwarf2_queue, dwarf2_queue_tail): Remove.
15166 (class dwarf2_queue_guard): Add parameter to constructor. Use
15167 DISABLE_COPY_AND_ASSIGN.
15168 <m_per_objfile>: New member.
15169 <~dwarf2_queue_guard>: Rewrite.
15170 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
15171 Update.
15172 (~dwarf2_queue_item): New.
15173
3e225074
TT
151742020-02-08 Tom Tromey <tom@tromey.com>
15175
15176 * dwarf2/read.c (struct die_info) <has_children>: New member.
15177 (dw2_get_file_names_reader): Remove has_children.
15178 (dw2_get_file_names): Update.
15179 (read_cutu_die_from_dwo): Remove has_children.
15180 (cutu_reader::init_tu_and_read_dwo_dies)
15181 (cutu_reader::cutu_reader): Update.
15182 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
15183 Remove has_children.
15184 (build_type_psymtabs_1, process_skeletonless_type_unit)
15185 (load_partial_comp_unit, load_full_comp_unit): Update.
15186 (create_dwo_cu_reader): Remove has_children.
15187 (create_cus_hash_table, read_die_and_children): Update.
15188 (read_full_die_1,read_full_die): Remove has_children.
15189 (read_signatured_type): Update.
15190 (class cutu_reader) <has_children>: Remove.
15191
82ca8957
TT
151922020-02-08 Tom Tromey <tom@tromey.com>
15193
15194 * dwarf2/expr.c: Rename from dwarf2expr.c.
15195 * dwarf2/expr.h: Rename from dwarf2expr.h.
15196 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
15197 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
15198 * dwarf2/frame.c: Rename from dwarf2-frame.c.
15199 * dwarf2/frame.h: Rename from dwarf2-frame.h.
15200 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
15201 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
15202 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
15203 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
15204 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
15205 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
15206 * dwarf2/loc.c: Rename from dwarf2loc.c.
15207 * dwarf2/loc.h: Rename from dwarf2loc.h.
15208 * dwarf2/read.c: Rename from dwarf2read.c.
15209 * dwarf2/read.h: Rename from dwarf2read.h.
15210 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
15211 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
15212 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
15213 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
15214 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
15215 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
15216 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
15217 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
15218 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
15219 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
15220 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
15221 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
15222 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
15223 Update.
15224 * Makefile.in (COMMON_SFILES): Update.
15225 (HFILES_NO_SRCDIR): Update.
15226
9e35d499
TT
152272020-02-08 Tom Tromey <tom@tromey.com>
15228
15229 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
15230 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
15231
1eba2311
TT
152322020-02-08 Tom Tromey <tom@tromey.com>
15233
15234 * dwarf2read.h (struct die_info): Don't declare.
15235
e41c2da2
TT
152362020-02-08 Tom Tromey <tom@tromey.com>
15237
15238 * dwarf2read.h (die_info_ptr): Remove typedef.
15239
4fc6c0d5
TT
152402020-02-08 Tom Tromey <tom@tromey.com>
15241
15242 * dwarf2read.c (read_call_site_scope)
15243 (handle_data_member_location, dwarf2_add_member_fn)
15244 (mark_common_block_symbol_computed, read_common_block)
15245 (attr_to_dynamic_prop, partial_die_info::read)
15246 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
15247 (dwarf2_symbol_mark_computed, set_die_type): Update.
15248 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
15249 method.
15250 (attr_form_is_block): Don't declare.
15251 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
15252
cd6c91b4
TT
152532020-02-08 Tom Tromey <tom@tromey.com>
15254
15255 * dwarf2read.c (dwarf2_find_base_address, )
15256 (read_call_site_scope, rust_containing_type)
15257 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
15258 (handle_data_member_location, dwarf2_add_member_fn)
15259 (get_alignment, read_structure_type, process_structure_scope)
15260 (mark_common_block_symbol_computed, read_common_block)
15261 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
15262 (partial_die_info::read, read_attribute_value, new_symbol)
15263 (lookup_die_type, dwarf2_get_ref_die_offset)
15264 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
15265 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
15266 (dwarf2_symbol_mark_computed): Update.
15267 * dwarf2/attribute.h (struct attribute) <value_as_address,
15268 form_is_section_offset, form_is_constant, form_is_ref>: Declare
15269 methods.
15270 (value_as_address, attr_form_is_section_offset)
15271 (attr_form_is_constant, attr_form_is_ref): Don't declare.
15272 * dwarf2/attribute.c (attribute::value_as_address)
15273 (attribute::form_is_section_offset, attribute::form_is_constant)
15274 (attribute::form_is_ref): Now methods.
15275
162dce55
TT
152762020-02-08 Tom Tromey <tom@tromey.com>
15277
15278 * dwarf2read.c (struct attribute, DW_STRING)
15279 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
15280 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
15281 (attr_form_is_block, attr_form_is_section_offset)
15282 (attr_form_is_constant, attr_form_is_ref): Move.
15283 * dwarf2/attribute.h: New file.
15284 * dwarf2/attribute.c: New file, from dwarf2read.c.
15285 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
15286
3054dd54
TT
152872020-02-08 Tom Tromey <tom@tromey.com>
15288
15289 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
15290 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
15291 Move.
15292 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
15293 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
15294 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
15295 abbrev.c.
15296 * dwarf2/abbrev.h: New file.
15297 * dwarf2/abbrev.c: New file, from dwarf2read.c.
15298 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
15299
96b79293
TT
153002020-02-08 Tom Tromey <tom@tromey.com>
15301
15302 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
15303 (dwarf2_section_size, dwarf2_get_section_info)
15304 (create_signatured_type_table_from_debug_names)
15305 (create_addrmap_from_aranges, read_debug_names_from_section)
15306 (get_gdb_index_contents_from_section, read_comp_unit_head)
15307 (error_check_comp_unit_head, read_abbrev_offset)
15308 (create_debug_type_hash_table, init_cu_die_reader)
15309 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
15310 (read_comp_units_from_section, create_cus_hash_table)
15311 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
15312 (create_dwp_v2_section, dwarf2_rnglists_process)
15313 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
15314 (abbrev_table_read_table, read_indirect_string_at_offset_from)
15315 (read_indirect_string_from_dwz, read_addr_index_1)
15316 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
15317 (dwarf_decode_macro_bytes, dwarf_decode_macros)
15318 (fill_in_loclist_baton): Update.
15319 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
15320 get_containing_section, get_bfd_owner, get_bfd_section,
15321 get_file_name, get_id, get_flags, empty, read>: Declare methods.
15322 (dwarf2_read_section, get_section_name, get_section_file_name)
15323 (get_containing_section, get_section_bfd_owner)
15324 (get_section_bfd_section, get_section_name, get_section_file_name)
15325 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
15326 declare.
15327 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
15328 (dwarf2_section_info::get_bfd_owner)
15329 (dwarf2_section_info::get_bfd_section)
15330 (dwarf2_section_info::get_name)
15331 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
15332 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
15333 (dwarf2_section_info::read): Now methods.
15334 * dwarf-index-write.c (class debug_names): Update.
15335
2c86cff9
TT
153362020-02-08 Tom Tromey <tom@tromey.com>
15337
15338 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
15339 Move to dwarf2/section.h.
15340 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
15341 (get_section_bfd_section, get_section_name)
15342 (get_section_file_name, get_section_id, get_section_flags)
15343 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
15344 dwarf2/section.c.
15345 * dwarf2/section.h: New file.
15346 * dwarf2/section.c: New file, from dwarf2read.c.
15347 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
15348
f4382c45
TT
153492020-02-08 Tom Tromey <tom@tromey.com>
15350
15351 * dwarf2read.h (read_unsigned_leb128): Don't declare.
15352 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
15353 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
15354 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
15355 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
15356 * dwarf2/leb.h: New file, from dwarf2read.c.
15357 * dwarf2/leb.c: New file, from dwarf2read.c.
15358 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
15359 Remove.
15360 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
15361 (COMMON_SFILES): Add dwarf2/leb.c.
15362
01840b7a
JB
153632020-02-08 Joel Brobecker <brobecker@adacore.com>
15364
15365 GDB 9.1 released.
15366
dfcb27e4
IB
153672020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15368
15369 PR gdb/25190:
aac66a4c
SM
15370 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
15371 * gdb/remote.c (remote_console_output): Update.
15372 * gdb/ui-file.c (fputs_unfiltered): Rename to...
15373 (ui_file_puts): ...this.
15374 * gdb/ui-file.h (ui_file_puts): Add declaration.
15375 * gdb/utils.c (emit_style_escape): Update.
15376 (flush_wrap_buffer): Update.
15377 (fputs_maybe_filtered): Update.
15378 (fputs_unfiltered): Add function.
dfcb27e4 15379
faa17681
IB
153802020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15381
aac66a4c
SM
15382 * gdb/event-loop.c (gdb_wait_for_event): Update.
15383 * gdb/printcmd.c (printf_command): Update.
15384 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
15385 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
15386 (gdb_os_flush_stderr): Update.
15387 * gdb/remote.c (remote_console_output): Update.
15388 * gdb/ui-file.c (gdb_flush): Rename to...
15389 (ui_file_flush): ...this.
15390 (stderr_file::write): Update.
15391 (stderr_file::puts): Update.
15392 * gdb/ui-file.h (gdb_flush): Rename to...
15393 (ui_file_flush): ...this.
15394 * gdb/utils.c (gdb_flush): Add function.
15395 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 15396
5abbbe1d
TT
153972020-02-07 Tom Tromey <tromey@adacore.com>
15398
15399 PR breakpoints/24915:
15400 * source.c (find_and_open_source): Do not check basenames_may_differ.
15401
919adfe8
TT
154022020-02-07 Tom Tromey <tom@tromey.com>
15403
15404 * README: Update gdbserver documentation.
15405 * gdbserver: Move to top level.
15406 * configure.tgt (build_gdbserver): Remove.
15407 * configure.ac: Remove --enable-gdbserver.
15408 * configure: Rebuild.
15409 * Makefile.in (distclean): Don't mention gdbserver.
15410
1d5d29e7
SV
154112020-02-06 Shahab Vahedi <shahab@synopsys.com>
15412
15413 * source-cache.c (source_cache::ensure): Surround
15414 get_plain_source_lines with a try/catch.
15415 (source_cache::get_line_charpos): Get rid of try/catch
15416 and only check for the return value of "ensure".
15417 * tui/tui-source.c (tui_source_window::set_contents):
15418 Simplify "nlines" calculation.
15419
6eb1129c
SV
154202020-02-06 Shahab Vahedi <shahab@synopsys.com>
15421
15422 * MAINTAINERS (Write After Approval): Add myself.
15423
c6a42d11
CB
154242020-02-05 Christian Biesinger <cbiesinger@google.com>
15425
15426 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
15427 function call.
15428
c8ecdda6
CB
154292020-02-05 Christian Biesinger <cbiesinger@google.com>
15430
15431 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
15432
f6480e70
MR
154332020-02-05 Maciej W. Rozycki <macro@wdc.com>
15434
15435 * nat/riscv-linux-tdesc.h: New file.
15436 * nat/riscv-linux-tdesc.c: New file, taking code from...
15437 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
15438 ... here.
15439 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
15440 NATDEPFILES.
15441
dcc9fbc6
AB
154422020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
15443
15444 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
15445 we don't set the fake simulator ptid to the null_ptid.
15446
719546c4
SM
154472020-02-03 Simon Marchi <simon.marchi@efficios.com>
15448
15449 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
15450 * gdbthread.h (class thread_info) <resumed>: Likewise.
15451 * infrun.c (resume_1): Likewise.
15452 (proceed): Likewise.
15453 (infrun_thread_stop_requested): Likewise.
15454 (stop_all_threads): Likewise.
15455 (handle_inferior_event): Likewise.
15456 (restart_threads): Likewise.
15457 (finish_step_over): Likewise.
15458 (keep_going_stepped_thread): Likewise.
15459 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
15460 (linux_handle_extended_wait): Likewise.
15461 * record-btrace.c (get_thread_current_frame_id): Likewise.
15462 * record-full.c (record_full_wait_1): Likewise.
15463 * remote.c (remote_target::process_initial_stop_replies): Likewise.
15464 * target.c (target_resume): Likewise.
15465 * thread.c (set_running_thread): Likewise.
15466
e409c542
AKS
154672020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15468
15469 * f-valprint.c (f77_print_array_1): Changed datatype of index
15470 variable to LONGEST from int to enable it to contain bound
15471 values correctly.
15472
ee98c0da
MR
154732020-02-03 Maciej W. Rozycki <macro@wdc.com>
15474
15475 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
15476 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
15477 offsets according to FLEN determined.
15478 (riscv_linux_nat_target::read_description): Determine FLEN
15479 dynamically.
15480 (riscv_linux_nat_target::fetch_registers): Size regset buffer
15481 according to FLEN determined.
15482 (riscv_linux_nat_target::store_registers): Likewise.
15483
aa66aac4
SV
154842020-02-01 Shahab Vahedi <shahab@synopsys.com>
15485
15486 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
15487 when reg->group is empty and reggroup is not.
15488
fd9faca8
TT
154892020-01-31 Tom Tromey <tromey@adacore.com>
15490
15491 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
15492 Call beneath target's mourn_inferior after unpushing.
15493
42330a68
AB
154942020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15495
15496 PR tui/9765
15497 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
15498 have enough lines to fill the screen, still return the lowest
15499 address we found.
15500
7a27a45b
AB
155012020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15502
15503 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
15504 '-', '<', and '>' commands.
15505
c47f70e2
PA
155062020-01-29 Pedro Alves <palves@redhat.com>
15507 Sergio Durigan Junior <sergiodj@redhat.com>
15508
15509 * infcmd.c (construct_inferior_arguments): Assert that
15510 'argc' is greater than 0.
15511
5133a315
LM
155122020-01-29 Luis Machado <luis.machado@linaro.org>
15513
15514 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
15515 (BRK_INSN_MASK): Define to 0xd4200000.
15516 (aarch64_program_breakpoint_here_p): New function.
15517 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
15518 * arch-utils.c (default_program_breakpoint_here_p): Moved from
15519 breakpoint.c.
15520 * arch-utils.h (default_program_breakpoint_here_p): Moved from
15521 breakpoint.h
15522 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
15523 call gdbarch_program_breakpoint_here_p.
15524 (program_breakpoint_here): Moved to arch-utils.c, renamed to
15525 default_program_breakpoint_here_p, changed return type to bool and
15526 simplified.
15527 * breakpoint.h (program_breakpoint_here): Moved prototype to
15528 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
15529 return type to bool.
15530 * gdbarch.c: Regenerate.
15531 * gdbarch.h: Regenerate.
15532 * gdbarch.sh (program_breakpoint_here_p): New method.
15533 * infrun.c (handle_signal_stop): Call
15534 gdbarch_program_breakpoint_here_p.
15535
168f8c6b
TT
155362020-01-26 Tom Tromey <tom@tromey.com>
15537
15538 * ctfread.c (struct ctf_fp_info): Reindent.
15539 (_initialize_ctfread): Remove.
15540
128a391f
TT
155412020-01-26 Tom Tromey <tom@tromey.com>
15542
15543 * psymtab.c (partial_map_expand_apply)
15544 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
15545 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
15546 (psym_print_stats, psym_expand_symtabs_for_function)
15547 (psym_map_symbol_filenames, psym_map_matching_symbols)
15548 (psym_expand_symtabs_matching)
15549 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
15550 (maintenance_check_psymtabs): Use new methods.
15551 * psympriv.h (struct partial_symtab) <readin_p,
15552 get_compunit_symtab>: New methods.
15553 <readin, compunit_symtab>: Remove members.
15554 (struct standard_psymtab): New.
15555 (struct legacy_psymtab): Derive from standard_psymtab.
15556 * dwarf2read.h (struct dwarf2_psymtab): Derive from
15557 standard_psymtab.
15558 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
15559
0494dbec
TT
155602020-01-26 Tom Tromey <tom@tromey.com>
15561
15562 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
15563 read_dependencies. Add assert.
15564 * psymtab.c (partial_symtab::read_dependencies): New method.
15565 * psympriv.h (struct partial_symtab) <read_dependencies>: New
15566 method.
15567 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
15568 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
15569 read_dependencies.
15570 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
15571 Add assert.
15572
8566b89b
TT
155732020-01-26 Tom Tromey <tom@tromey.com>
15574
15575 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
15576 Call expand_psymtab.
15577 (xcoff_read_symtab): Call expand_psymtab.
15578 (xcoff_start_psymtab, xcoff_end_psymtab): Set
15579 legacy_expand_psymtab.
15580 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
15581 method.
15582 (struct legacy_psymtab) <expand_psymtab>: Implement.
15583 <legacy_expand_psymtab>: New member.
15584 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
15585 (parse_partial_symbols): Set legacy_expand_psymtab.
15586 (psymtab_to_symtab_1): Change argument order. Call
15587 expand_psymtab.
15588 (new_psymtab): Set legacy_expand_psymtab.
15589 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
15590 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
15591 expand_psymtab.
15592 (dwarf2_psymtab::expand_psymtab): Rename from
15593 psymtab_to_symtab_1. Call expand_psymtab.
15594 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
15595 (dbx_end_psymtab): Likewise.
15596 (dbx_psymtab_to_symtab_1): Change argument order. Call
15597 expand_psymtab.
15598 (dbx_read_symtab): Call expand_psymtab.
15599 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
15600 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
15601 (ctf_psymtab::read_symtab): Call expand_psymtab.
15602
077cbab2
TT
156032020-01-26 Tom Tromey <tom@tromey.com>
15604
15605 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
15606 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
15607 messages.
15608 * mdebugread.c (mdebug_read_symtab): Remove prints.
15609 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
15610 assert.
15611 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
15612
891813be
TT
156132020-01-26 Tom Tromey <tom@tromey.com>
15614
15615 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
15616 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
15617 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
15618 legacy_symtab.
15619 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
15620 * psymtab.c (psymtab_to_symtab): Call method.
15621 (dump_psymtab): Update.
15622 * psympriv.h (struct partial_symtab): Add virtual destructor.
15623 <read_symtab>: New method.
15624 (struct legacy_symtab): New.
15625 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
15626 (struct pst_map) <pst>: Now a legacy_psymtab.
15627 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
15628 (new_psymtab): Use legacy_psymtab.
15629 * dwarf2read.h (struct dwarf2_psymtab): New.
15630 (struct dwarf2_per_cu_data) <psymtab>: Use it.
15631 * dwarf2read.c (dwarf2_create_include_psymtab)
15632 (dwarf2_build_include_psymtabs, create_type_unit_group)
15633 (create_partial_symtab, process_psymtab_comp_unit_reader)
15634 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
15635 (set_partial_user): Use dwarf2_psymtab.
15636 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
15637 (psymtab_to_symtab_1, process_full_comp_unit)
15638 (process_full_type_unit, dwarf2_ranges_read)
15639 (dwarf2_get_pc_bounds, psymtab_include_file_name)
15640 (dwarf_decode_lines): Use dwarf2_psymtab.
15641 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
15642 (add_address_entry_worker, write_one_signatured_type)
15643 (recursively_count_psymbols, recursively_write_psymbols)
15644 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
15645 (write_debug_names): Likewise.
15646 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
15647 <pst>: Now a legacy_psymtab.
15648 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
15649 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
15650 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
15651 * ctfread.c (struct ctf_psymtab): New.
15652 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
15653 ctf_psymtab.
15654 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
15655 (create_partial_symtab): Return a ctf_psymtab.
15656 (scan_partial_symbols): Update.
15657
c3693a1d
TT
156582020-01-26 Tom Tromey <tom@tromey.com>
15659
15660 * xcoffread.c (xcoff_start_psymtab): Use new.
15661 * psymtab.c (partial_symtab::partial_symtab): New constructor,
15662 renamed from start_psymtab_common.
15663 * psympriv.h (struct partial_symtab): Add new constructor.
15664 (start_psymtab_common): Don't declare.
15665 * mdebugread.c (parse_partial_symbols): Use new.
15666 * dwarf2read.c (create_partial_symtab): Use new.
15667 * dbxread.c (start_psymtab): Use new.
15668 * ctfread.c (create_partial_symtab): Use new.
15669
32caafd0
TT
156702020-01-26 Tom Tromey <tom@tromey.com>
15671
15672 * xcoffread.c (xcoff_end_psymtab): Use new.
15673 * psymtab.c (start_psymtab_common): Use new.
15674 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
15675 Update.
15676 * psympriv.h (struct partial_symtab): Add parameters to
15677 constructor. Don't inline.
15678 (allocate_psymtab): Don't declare.
15679 * mdebugread.c (new_psymtab): Use new.
15680 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
15681 * dbxread.c (dbx_end_psymtab): Use new.
15682
abaa2f23
TT
156832020-01-26 Tom Tromey <tom@tromey.com>
15684
15685 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
15686 allocate_psymtab. Update documentation.
15687 * psymtab.c (psymtab_storage::install_psymtab): Rename from
15688 allocate_psymtab. Do not use new.
15689 (allocate_psymtab): Use new. Update.
15690
6d94535f
TT
156912020-01-26 Tom Tromey <tom@tromey.com>
15692
15693 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
15694 * psymtab.c (psym_print_stats): Update.
15695 * psympriv.h (struct partial_symtab) <readin,
15696 psymtabs_addrmap_supported, anonymous>: Now bool.
15697 * mdebugread.c (psymtab_to_symtab_1): Update.
15698 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
15699 (build_type_psymtabs_reader, psymtab_to_symtab_1)
15700 (process_full_comp_unit, process_full_type_unit): Update.
15701 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
15702 * ctfread.c (psymtab_to_symtab): Update.
15703
6f17252b
TT
157042020-01-26 Tom Tromey <tom@tromey.com>
15705
15706 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
15707 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
15708 * psymtab.c (psymtab_storage): Delete psymtabs.
15709 (psymtab_storage::allocate_psymtab): Use new.
15710 (psymtab_storage::discard_psymtab): Use delete.
15711 * psympriv.h (struct partial_symtab): Add constructor and
15712 initializers.
15713
f6f1cebc
TT
157142020-01-26 Tom Tromey <tom@tromey.com>
15715
15716 * machoread.c: Do not include psympriv.h.
15717
e47e48f6
PW
157182020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15719
15720 * NEWS: Mention the new option and the set/show commands.
15721
a2fedca9
PW
157222020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15723
15724 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
15725 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
15726 (validate_exec_file): New variables, enums, functions.
15727 (exec_file_locate_attach, print_section_info): Style the filenames.
15728 (_initialize_exec): Install show_exec_file_mismatch_command and
15729 set_exec_file_mismatch_command.
15730 * gdbcore.h (validate_exec_file): Declare.
15731 * infcmd.c (attach_command): Call validate_exec_file.
15732 * remote.c ( remote_target::remote_add_inferior): Likewise.
15733
7ffa82e1
AB
157342020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15735
15736 * frame.c (find_frame_sal): Move call to get_next_frame into more
15737 inner scope.
15738 * inline-frame.c (inilne_state) <inline_state>: Update argument
15739 types.
15740 (inilne_state) <skipped_symbol>: Rename to...
15741 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
15742 (skip_inline_frames): Build vector of skipped symbols and use this
15743 to reate the inline_state.
15744 (inline_skipped_symbol): Add a comment and some assertions, fetch
15745 skipped symbol from the list.
15746
3d92a3e3
AB
157472020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15748
15749 * buildsym.c (lte_is_less_than): Delete.
15750 (buildsym_compunit::end_symtab_with_blockvector): Create local
15751 lambda function to sort line table entries, and use
15752 std::stable_sort instead of std::sort.
15753 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
15754 markers when looking for a previous line.
15755
94a72be7
AB
157562020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15757
15758 * dwarf2read.c (lnp_state_machine::record_line): Include
15759 end_sequence parameter in debug print out. Record the line if we
15760 are at an end_sequence marker even if it's not the start of a
15761 statement.
15762 * symmisc.c (maintenance_print_one_line_table): Print end of
15763 sequence markers with 'END' not '0'.
15764
53af73bf
PA
157652020-01-24 Pedro Alves <palves@redhat.com>
15766
15767 PR gdb/25410
15768 * thread.c (scoped_restore_current_thread::restore): Use
15769 switch_to_inferior_no_thread.
15770 * exec.c: Include "progspace-and-thread.h".
15771 (add_target_sections, remove_target_sections):
15772 scoped_restore_current_pspace_and_thread instead of
15773 scoped_restore_current_thread.
15774 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
15775 and aspace to the inferior before calling clone_program_space.
15776 Remove stale comment.
15777
3050c6f4
CB
157782020-01-24 Christian Biesinger <cbiesinger@google.com>
15779
15780 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
15781 (arm_netbsd_nat_target::fetch_registers): ...this.
15782 (arm_nbsd_nat_target::store_registers): Rename to...
15783 (arm_netbsd_nat_target::store_registers): ...this.
15784
73685c7e
CB
157852020-01-24 Christian Biesinger <cbiesinger@google.com>
15786
15787 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
15788 register_t.
15789
89203d40
CB
157902020-01-24 Christian Biesinger <cbiesinger@google.com>
15791
15792 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
15793 Update comment.
15794 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
15795 Likewise.
15796 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
15797 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
15798 the correct replacement (iterate_over_regset_sections).
15799 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
15800 Update comment.
15801
1ba1ac88
AB
158022020-01-24 Graham Markall <graham.markall@embecosm.com>
15803
15804 PR gdb/23718
15805 * gdb/python/python.c (execute_gdb_command): Call
15806 async_enable_stdin in catch block.
15807
f3364a6d
AB
158082020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15809
15810 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
15811 SWITCH_THRU_ALL_UIS.
15812
733d0a67
AB
158132020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15814
15815 PR tui/9765
15816 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
15817 comment, add extra parameter, and update to store previous symbol
15818 when appropriate.
15819 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
15820 add extra parameter.
15821 * tui/tui-disasm.c (tui_disassemble): Update header comment,
15822 remove unneeded parameter, add try/catch around gdb_print_insn,
15823 rewrite to add items to asm_lines vector.
15824 (tui_find_backward_disassembly_start_address): New function.
15825 (tui_find_disassembly_address): Updated throughout.
15826 (tui_disasm_window::set_contents): Update for changes to
15827 tui_disassemble.
15828 (tui_disasm_window::do_scroll_vertical): No need to adjust the
15829 number of lines to scroll.
15830
b3b3bada
SM
158312020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
15832
15833 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
15834 (SECT_OFF_DATA): Likewise.
15835 (SECT_OFF_RODATA): Likewise.
15836 (SECT_OFF_TEXT): Likewise.
15837 (SECT_OFF_BSS): Likewise.
15838 (struct objfile) <text_section_offset, data_section_offset>: New
15839 methods.
15840 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
15841 objfile::text_section_offset.
15842 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
15843 * coffread.c (coff_symtab_read): Likewise.
15844 (enter_linenos): Likewise.
15845 (process_coff_symbol): Likewise.
15846 * ctfread.c (get_objfile_text_range): Likewise.
15847 * dtrace-probe.c (dtrace_probe::get_relocated_address):
15848 Use objfile::data_section_offset.
15849 * dwarf2-frame.c (execute_cfa_program): Use
15850 objfile::text_section_offset.
15851 (dwarf2_frame_find_fde): Likewise.
15852 * dwarf2read.c (create_addrmap_from_index): Likewise.
15853 (create_addrmap_from_aranges): Likewise.
15854 (dw2_find_pc_sect_compunit_symtab): Likewise.
15855 (process_psymtab_comp_unit_reader): Likewise.
15856 (add_partial_symbol): Likewise.
15857 (add_partial_subprogram): Likewise.
15858 (process_full_comp_unit): Likewise.
15859 (read_file_scope): Likewise.
15860 (read_func_scope): Likewise.
15861 (read_lexical_block_scope): Likewise.
15862 (read_call_site_scope): Likewise.
15863 (dwarf2_rnglists_process): Likewise.
15864 (dwarf2_ranges_process): Likewise.
15865 (dwarf2_ranges_read): Likewise.
15866 (dwarf_decode_lines_1): Likewise.
15867 (new_symbol): Likewise.
15868 (dwarf2_fetch_die_loc_sect_off): Likewise.
15869 (dwarf2_per_cu_text_offset): Likewise.
15870 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
15871 * hppa-tdep.c (read_unwind_info): Likewise.
15872 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
15873 * psympriv.h (struct partial_symtab): Likewise.
15874 * psymtab.c (find_pc_sect_psymtab): Likewise.
15875 * solib-svr4.c (enable_break): Likewise.
15876 * stap-probe.c (relocate_address): Use
15877 objfile::data_section_offset.
15878 * xcoffread.c (enter_line_range): Use
15879 objfile::text_section_offset.
15880 (read_xcoff_symtab): Likewise.
15881
ab53f382
SM
158822020-01-23 Simon Marchi <simon.marchi@efficios.com>
15883
15884 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
15885 declaration to narrower scopes.
15886
e7eee665
SM
158872020-01-23 Simon Marchi <simon.marchi@efficios.com>
15888
15889 * darwin-nat.h (struct darwin_exception_msg, enum
15890 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
15891 Move up.
15892 (class darwin_nat_target) <wait_1, check_new_threads,
15893 decode_exception_message, decode_message, stop_inferior,
15894 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
15895 * darwin-nat.c (darwin_check_new_threads): Rename to...
15896 (darwin_nat_target::check_new_threads): ... this.
15897 (darwin_suspend_inferior_it): Remove.
15898 (darwin_decode_exception_message): Rename to...
15899 (darwin_nat_target::decode_exception_message): ... this.
15900 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
15901 (darwin_decode_message): Rename to...
15902 (darwin_nat_target::decode_message): ... this.
15903 (cancel_breakpoint): Rename to...
15904 (darwin_nat_target::cancel_breakpoint): ... this.
15905 (darwin_wait): Rename to...
15906 (darwin_nat_target::wait_1): ... this. Use range-based for loop
15907 instead of iterate_over_inferiors.
15908 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
15909 (darwin_stop_inferior): Rename to...
15910 (darwin_nat_target::stop_inferior): ... this.
15911 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
15912 (darwin_init_thread_list): Rename to...
15913 (darwin_nat_target::init_thread_list): ... this.
15914 (darwin_ptrace_him): Rename to...
15915 (darwin_nat_target::ptrace_him): ... this.
15916 (darwin_nat_target::create_inferior): Pass lambda function to
15917 fork_inferior.
15918 (darwin_nat_target::detach): Call stop_inferior instead of
15919 darwin_stop_inferior.
15920 * fork-inferior.h (fork_inferior): Change init_trace_fun
15921 parameter to gdb::function_view.
15922 * fork-inferior.c (fork_inferior): Likewise.
15923
c162ed3e
HD
159242020-01-23 Hannes Domani <ssbssa@yahoo.de>
15925
15926 * i386-cygwin-tdep.c (core_process_module_section): Update.
15927 * windows-nat.c (struct lm_info_windows): Add text_offset.
15928 (windows_xfer_shared_libraries): Update.
15929 * windows-tdep.c (windows_xfer_shared_library):
15930 Add text_offset_cached argument.
15931 * windows-tdep.h (windows_xfer_shared_library): Update.
15932
a1237872
SM
159332020-01-21 Simon Marchi <simon.marchi@efficios.com>
15934
15935 * gdbarch.sh: Add declaration for _initialize_gdbarch.
15936
b3ee6dd9
SM
159372020-01-21 Simon Marchi <simon.marchi@efficios.com>
15938
15939 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
15940 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
15941 replace with range-based for.
15942 (gdbsim_interrupt_inferior): Remove.
15943 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
15944 with a range-based for. Inline code from
15945 gdbsim_interrupt_inferior.
15946
f9fac3c8
SM
159472020-01-21 Simon Marchi <simon.marchi@efficios.com>
15948
15949 * infrun.c (proceed): Fix indentation.
15950
f6474de9
TT
159512020-01-21 Tom Tromey <tromey@adacore.com>
15952
15953 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
15954 * python/python.c (python_extension_ops): Update.
15955 (gdbpy_colorize): New function.
15956 * python/lib/gdb/__init__.py (colorize): New function.
15957 * extension.h (ext_lang_colorize): Declare.
15958 * extension.c (ext_lang_colorize): New function.
15959 * extension-priv.h (struct extension_language_ops) <colorize>: New
15960 member.
15961 * cli/cli-style.c (_initialize_cli_style): Update help text.
15962
f0c702d4
LM
159632020-01-21 Luis Machado <luis.machado@linaro.org>
15964
15965 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
15966 <cond>: Change type to bool.
15967 (aarch64_displaced_step_b_cond): Update cond to use bool type.
15968 (aarch64_displaced_step_cb): Likewise.
15969 (aarch64_displaced_step_tb): Likewise.
15970
1ab139e5
LM
159712020-01-21 Luis Machado <luis.machado@linaro.org>
15972
15973 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
15974 output.
15975
0c271889
LM
159762020-01-21 Luis Machado <luis.machado@linaro.org>
15977
15978 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
15979 <pc_adjust>: Adjust the documentation.
15980 (aarch64_displaced_step_fixup): Check if PC really moved before
15981 adjusting it.
15982
4d89c1c7
TT
159832020-01-19 Tom Tromey <tom@tromey.com>
15984
15985 * disasm.c (~gdb_disassembler): New destructor.
15986 (gdb_buffered_insn_length): Call disassemble_free_target.
15987 * disasm.h (class gdb_disassembler): Declare destructor. Use
15988 DISABLE_COPY_AND_ASSIGN.
15989
c0ab21c2
TT
159902020-01-19 Tom Tromey <tom@tromey.com>
15991
15992 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
15993 (die_reader_func_ftype): Remove.
15994 (cutu_reader): New class.
15995 (dw2_get_file_names_reader): Remove "data" parameter.
15996 (dw2_get_file_names): Use cutu_reader.
15997 (create_debug_type_hash_table): Update.
15998 (read_cutu_die_from_dwo): Update comment.
15999 (lookup_dwo_unit): Add dwo_name parameter.
16000 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
16001 die_reader_func_ftype and data parameters.
16002 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
16003 Remove die_reader_func_ftype and data parameters.
16004 (~cutu_reader): New; from init_cutu_and_read_dies.
16005 (cutu_reader::cutu_reader): Rename from
16006 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
16007 and data parameters.
16008 (init_cutu_and_read_dies_simple): Remove.
16009 (struct process_psymtab_comp_unit_data): Remove.
16010 (process_psymtab_comp_unit_reader): Remove data parameter; add
16011 want_partial_unit and pretend_language parameters.
16012 (process_psymtab_comp_unit): Use cutu_reader.
16013 (build_type_psymtabs_reader): Remove data parameter.
16014 (build_type_psymtabs_1): Use cutu_reader.
16015 (process_skeletonless_type_unit): Likewise.
16016 (load_partial_comp_unit_reader): Remove.
16017 (load_partial_comp_unit): Use cutu_reader.
16018 (load_full_comp_unit_reader): Remove.
16019 (load_full_comp_unit): Use cutu_reader.
16020 (struct create_dwo_cu_data): Remove.
16021 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
16022 dwo_unit parameters.
16023 (create_cus_hash_table): Use cutu_reader.
16024 (struct dwarf2_read_addr_index_data): Remove.
16025 (dwarf2_read_addr_index_reader): Remove.
16026 (dwarf2_read_addr_index): Use cutu_reader.
16027 (read_signatured_type_reader): Remove.
16028 (read_signatured_type): Use cutu_reader.
16029
45bbae5c
TT
160302020-01-19 Tom Tromey <tom@tromey.com>
16031
16032 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
16033 * tui/tui-wingeneral.h (class tui_suppress_output): New.
16034 (tui_wrefresh): Declare.
16035 * tui/tui-wingeneral.c (suppress_output): New global.
16036 (tui_suppress_output, ~tui_suppress_output): New constructor and
16037 destructor.
16038 (tui_wrefresh): New function.
16039 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
16040 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
16041 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
16042 method.
16043 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
16044 tui_wrefresh.
16045 (tui_data_window::no_refresh): New method.
16046 (tui_data_item_window::refresh_window): Call tui_wrefresh.
16047 (tui_reg_command): Use tui_suppress_output
16048 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
16049 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
16050 method.
16051 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
16052
4f13c1c0
TT
160532020-01-19 Tom Tromey <tom@tromey.com>
16054
16055 * tui/tui-winsource.c (tui_update_source_windows_with_line):
16056 Handle case where symtab is null.
16057
fa47e446
SM
160582020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
16059
16060 * linux-fork.c (one_fork_p): Simplify.
16061
26f42329
SM
160622020-01-17 Simon Marchi <simon.marchi@efficios.com>
16063
16064 * top.c (struct qt_args): Remove.
16065 (kill_or_detach): Change return type to void, replace `void *`
16066 parameter with a proper one.
16067 (print_inferior_quit_action): Likewise.
16068 (quit_confirm): Use range-based for loop to iterate over inferiors.
16069 (quit_force): Likewise.
16070
a9ac81b1
SM
160712020-01-17 Simon Marchi <simon.marchi@efficios.com>
16072
16073 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
16074 `void *` parameter with proper parameters.
16075 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
16076 (print_one_inferior): Change return type to void, replace `void *`
16077 parameter with proper parameters.
16078 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
16079 inferiors.
16080 (get_other_inferior): Remove.
16081 (mi_cmd_remove_inferior): Use range-based loop to iterate over
16082 inferiors.
16083
788eca49
SM
160842020-01-17 Simon Marchi <simon.marchi@efficios.com>
16085
16086 * mi/mi-interp.c (report_initial_inferior): Remove.
16087 (mi_interp::init): Use range-based for to iterate over inferiors.
16088
d9bc85b6
SM
160892020-01-17 Simon Marchi <simon.marchi@efficios.com>
16090
16091 * python/py-inferior.c (build_inferior_list): Remove.
16092 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
16093
40c94099
CB
160942020-01-16 Christian Biesinger <cbiesinger@google.com>
16095
16096 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
16097 (btrace_stitch_trace): Likewise.
16098 * charset.c (intermediate_encoding): Likewise (vaild).
16099 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
16100 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
16101 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
16102
e0cdfe3c
HD
161032020-01-16 Hannes Domani <ssbssa@yahoo.de>
16104
16105 * windows-tdep.c (windows_get_tlb_type):
16106 Add rtl_user_process_parameters type.
16107
790f1718 161082020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 16109 Norbert Lange <nolange79@gmail.com>
790f1718
PA
16110
16111 PR build/24805
16112 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
16113 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
16114 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
16115 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
16116 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
16117 (ps_plog): Redeclare exported functions with default visibility.
16118
3112ed97
NA
161192020-01-16 Nitika Achra <Nitika.Achra@amd.com>
16120
16121 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
16122 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
16123
8dc3273e
SM
161242020-01-15 Simon Marchi <simon.marchi@efficios.com>
16125
16126 * infcmd.c (post_create_inferior): Use get_thread_regcache
16127 instead of get_current_regcache.
16128
ff47f4f0
TT
161292020-01-14 Tom Tromey <tom@tromey.com>
16130
16131 PR symtab/12535:
16132 * python/python.c (gdbpy_decode_line): Treat empty string the same
16133 as no argument.
16134
975f45b7
TT
161352020-01-14 Tom Tromey <tom@tromey.com>
16136
16137 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
16138
25e57356
TT
161392020-01-14 Tom Tromey <tom@tromey.com>
16140
16141 * nat/linux-btrace.c: Don't include <config.h>.
16142 * nat/linux-ptrace.c: Don't include <config.h>.
16143 * nat/x86-linux-dregs.c: Don't include <config.h>.
16144
05ea2a05
TT
161452020-01-14 Tom Tromey <tom@tromey.com>
16146
16147 * configure: Rebuild.
16148 * configure.ac: Move many checks to ../gdbsupport/common.m4.
16149
01027315
TT
161502020-01-14 Tom Tromey <tom@tromey.com>
16151
16152 * nat/x86-linux-dregs.c: Include configh.h.
16153 * nat/linux-ptrace.c: Include configh.h.
16154 * nat/linux-btrace.c: Include configh.h.
16155 * defs.h: Include config.h, bfd.h.
16156 * configure.ac: Don't source common.host.
16157 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
16158 * configure: Rebuild.
16159 * acinclude.m4: Update path.
16160 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
16161 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
16162 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
16163 (CLIBS): Add LIBSUPPORT.
16164 (CDEPS): Likewise.
16165 (COMMON_SFILES): Remove gdbsupport files.
16166 (HFILES_NO_SRCDIR): Likewise.
16167 (stamp-version): Update path to create-version.sh.
16168 (ALLDEPFILES): Remove gdbsupport files.
16169
b2ceabe8
TT
161702020-01-14 Tom Tromey <tom@tromey.com>
16171
16172 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
16173 USE_WIN32API when needed.
16174 * configure.ac (USE_WIN32API): Don't define.
16175 (WIN32LIBS): Use WIN32APILIBS.
16176 * configure: Rebuild.
16177
25c51f71
TT
161782020-01-14 Tom Tromey <tom@tromey.com>
16179
16180 * configure: Rebuild.
16181 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
16182
717c684d
BE
161832020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
16184
16185 * skip.c (skip_function_command): Make skip w/o arguments use the
16186 name of the inlined function if pc is inside any inlined function.
16187
7da6a5b9
LM
161882020-01-14 Luis Machado <luis.machado@linaro.org>
16189
16190 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
16191 * infrun.c (resume_1): Likewise.
16192 (handle_inferior_event): Remove stale comment.
16193 * linux-nat.c (linux_nat_target::resume): Update comments.
16194 (save_stop_reason): Likewise.
16195 (linux_nat_filter_event): Likewise.
16196 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
16197
44e4c775
AB
161982020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16199
16200 * elfread.c (record_minimal_symbol): Set section index to 0 for
16201 non-allocatable sections.
16202
18a8505e
AT
16203
162042020-01-13 Ali Tamur <tamur@google.com>
16205
16206 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
16207 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
16208 to gdb::optional. Update comments.
16209 (dwo_file): Update comments.
16210 (read_attribute): Update API to take an additional out parameter,
16211 need_reprocess. This is used to mark attributes that need other
16212 attributes (e.g. str_offsets_base) for correct computation which may not
16213 have been read yet.
16214 (read_attribute_reprocess): New function declaration.
16215 (read_addr_index): Likewise.
16216 (read_dwo_str_index): Likewise.
16217 (read_stub_str_index): Likewise.
16218 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
16219 (lookup_addr_base): New function definition.
16220 (lookup_ranges_base): Likewise.
16221 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
16222 lookup_ranges_base.
16223 (init_cutu_and_read_dies): Update comments.
16224 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
16225 unit. This is used to inherit parent's str_offsets_base and addr_base.
16226 Update comments.
16227 (init_cutu_and_read_dies_simple): Reflect API changes.
16228 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
16229 (create_cus_hash_table): Change API to take parent compile unit.
16230 Reflect API changes.
16231 (open_and_init_dwo_file): Reflect API changes.
16232 (dwarf2_get_pc_bounds): Update comments.
16233 (dwarf2_record_block_ranges): Likewise.
16234 (read_full_die_1): Change implementation to reprocess attributes that
16235 need str_offsets_base and addr_base.
16236 (partial_die_info::read): Likewise.
16237 (read_attribute_reprocess): New function definition.
16238 (read_attribute_value): Change API to take an additional out parameter,
16239 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
16240 when a non-dwo compile unit has index based attributes.
16241 (read_attribute): Reflect API changes.
16242 (read_addr_index_1): Reflect API changes. Update comments.
16243 (dwarf2_read_addr_index_data): Reflect API changes.
16244 (dwarf2_read_addr_index): Likewise.
16245 (read_str_index): Change API and implementation. This becomes a helper
16246 to be used by the new string index related methods. Update error
16247 message and comments.
16248 (read_dwo_str_index): New function definition.
16249 (read_stub_str_index): Likewise.
16250 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
16251 * symfile.h (dwarf2_debug_sections): Likewise.
16252 * xcoffread.c (dwarf2_debug_sections): Likewise.
16253
0cac9354
SM
162542020-01-13 Simon Marchi <simon.marchi@efficios.com>
16255
16256 * gdbcore.h (struct core_fns) <core_read_registers>: Change
16257 core_reg_sect type to gdb_byte *.
16258 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
16259 * cris-tdep.c (fetch_core_registers): Likewise.
16260 * corelow.c (core_target::get_core_register_section): Change
16261 type of `contents` to gdb::byte_vector.
16262
9a6d629c
AB
162632020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16264
16265 * tui/tui-wingeneral.c (box_win): Position the title in the center
16266 of the border.
16267
d8b2f9e3
SM
162682020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16269
16270 * corelow.c (core_target::get_core_register_section): Use
16271 std::vector instead of alloca.
16272
bb564c58
SM
162732020-01-13 Simon Marchi <simon.marchi@efficios.com>
16274
16275 * warning.m4: Add -Wmissing-declarations to build_warnings.
16276 * configure: Re-generate.
16277
6b366111
SM
162782020-01-13 Simon Marchi <simon.marchi@efficios.com>
16279
16280 * python/python.c (init__gdb_module): Add declaration.
16281
6c265988
SM
162822020-01-13 Simon Marchi <simon.marchi@efficios.com>
16283
16284 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
16285 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
16286 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
16287 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
16288 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
16289 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
16290 * ada-exp.y (_initialize_ada_exp): Add declaration.
16291 * ada-lang.c (_initialize_ada_language): Add declaration.
16292 * ada-tasks.c (_initialize_tasks): Add declaration.
16293 * agent.c (_initialize_agent): Add declaration.
16294 * aix-thread.c (_initialize_aix_thread): Add declaration.
16295 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
16296 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
16297 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
16298 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
16299 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
16300 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
16301 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
16302 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
16303 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
16304 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
16305 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
16306 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
16307 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
16308 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
16309 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
16310 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
16311 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
16312 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
16313 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
16314 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
16315 * annotate.c (_initialize_annotate): Add declaration.
16316 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
16317 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
16318 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
16319 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
16320 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
16321 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
16322 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
16323 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
16324 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
16325 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
16326 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
16327 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
16328 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
16329 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
16330 * auto-load.c (_initialize_auto_load): Add declaration.
16331 * auxv.c (_initialize_auxv): Add declaration.
16332 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
16333 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
16334 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
16335 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
16336 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
16337 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
16338 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
16339 * breakpoint.c (_initialize_breakpoint): Add declaration.
16340 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
16341 * btrace.c (_initialize_btrace): Add declaration.
16342 * charset.c (_initialize_charset): Add declaration.
16343 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
16344 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
16345 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
16346 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
16347 * cli/cli-script.c (_initialize_cli_script): Add declaration.
16348 * cli/cli-style.c (_initialize_cli_style): Add declaration.
16349 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
16350 * coffread.c (_initialize_coffread): Add declaration.
16351 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
16352 * compile/compile.c (_initialize_compile): Add declaration.
16353 * complaints.c (_initialize_complaints): Add declaration.
16354 * completer.c (_initialize_completer): Add declaration.
16355 * copying.c (_initialize_copying): Add declaration.
16356 * corefile.c (_initialize_core): Add declaration.
16357 * corelow.c (_initialize_corelow): Add declaration.
16358 * cp-abi.c (_initialize_cp_abi): Add declaration.
16359 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
16360 * cp-support.c (_initialize_cp_support): Add declaration.
16361 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
16362 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
16363 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
16364 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
16365 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
16366 * ctfread.c (_initialize_ctfread): Add declaration.
16367 * d-lang.c (_initialize_d_language): Add declaration.
16368 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
16369 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
16370 * dbxread.c (_initialize_dbxread): Add declaration.
16371 * dcache.c (_initialize_dcache): Add declaration.
16372 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
16373 * disasm.c (_initialize_disasm): Add declaration.
16374 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
16375 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
16376 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
16377 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
16378 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
16379 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
16380 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
16381 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
16382 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
16383 * elfread.c (_initialize_elfread): Add declaration.
16384 * exec.c (_initialize_exec): Add declaration.
16385 * extension.c (_initialize_extension): Add declaration.
16386 * f-lang.c (_initialize_f_language): Add declaration.
16387 * f-valprint.c (_initialize_f_valprint): Add declaration.
16388 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
16389 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
16390 * filesystem.c (_initialize_filesystem): Add declaration.
16391 * findcmd.c (_initialize_mem_search): Add declaration.
16392 * findvar.c (_initialize_findvar): Add declaration.
16393 * fork-child.c (_initialize_fork_child): Add declaration.
16394 * frame-base.c (_initialize_frame_base): Add declaration.
16395 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
16396 * frame.c (_initialize_frame): Add declaration.
16397 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
16398 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
16399 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
16400 * gcore.c (_initialize_gcore): Add declaration.
16401 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
16402 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
16403 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
16404 * gdbarch.c (_initialize_gdbarch): Add declaration.
16405 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
16406 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
16407 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
16408 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
16409 * go-lang.c (_initialize_go_language): Add declaration.
16410 * go32-nat.c (_initialize_go32_nat): Add declaration.
16411 * guile/guile.c (_initialize_guile): Add declaration.
16412 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
16413 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
16414 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
16415 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
16416 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
16417 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
16418 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
16419 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
16420 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
16421 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
16422 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
16423 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
16424 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
16425 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
16426 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
16427 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
16428 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
16429 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
16430 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
16431 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
16432 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
16433 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
16434 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
16435 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
16436 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
16437 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
16438 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
16439 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
16440 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
16441 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
16442 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
16443 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
16444 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
16445 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
16446 * infcall.c (_initialize_infcall): Add declaration.
16447 * infcmd.c (_initialize_infcmd): Add declaration.
16448 * inflow.c (_initialize_inflow): Add declaration.
16449 * infrun.c (_initialize_infrun): Add declaration.
16450 * interps.c (_initialize_interpreter): Add declaration.
16451 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
16452 * jit.c (_initialize_jit): Add declaration.
16453 * language.c (_initialize_language): Add declaration.
16454 * linux-fork.c (_initialize_linux_fork): Add declaration.
16455 * linux-nat.c (_initialize_linux_nat): Add declaration.
16456 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
16457 * linux-thread-db.c (_initialize_thread_db): Add declaration.
16458 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
16459 * m2-lang.c (_initialize_m2_language): Add declaration.
16460 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
16461 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
16462 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
16463 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
16464 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
16465 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
16466 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
16467 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
16468 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
16469 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
16470 * machoread.c (_initialize_machoread): Add declaration.
16471 * macrocmd.c (_initialize_macrocmd): Add declaration.
16472 * macroscope.c (_initialize_macroscope): Add declaration.
16473 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
16474 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
16475 * maint.c (_initialize_maint_cmds): Add declaration.
16476 * mdebugread.c (_initialize_mdebugread): Add declaration.
16477 * memattr.c (_initialize_mem): Add declaration.
16478 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
16479 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
16480 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
16481 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
16482 * mi/mi-main.c (_initialize_mi_main): Add declaration.
16483 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
16484 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
16485 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
16486 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
16487 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
16488 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
16489 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
16490 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
16491 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
16492 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
16493 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
16494 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
16495 * mipsread.c (_initialize_mipsread): Add declaration.
16496 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
16497 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
16498 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
16499 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
16500 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
16501 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
16502 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
16503 * nto-procfs.c (_initialize_procfs): Add declaration.
16504 * objc-lang.c (_initialize_objc_language): Add declaration.
16505 * observable.c (_initialize_observer): Add declaration.
16506 * opencl-lang.c (_initialize_opencl_language): Add declaration.
16507 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
16508 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
16509 * osabi.c (_initialize_gdb_osabi): Add declaration.
16510 * osdata.c (_initialize_osdata): Add declaration.
16511 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
16512 * parse.c (_initialize_parse): Add declaration.
16513 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
16514 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
16515 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
16516 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
16517 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
16518 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
16519 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
16520 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
16521 * printcmd.c (_initialize_printcmd): Add declaration.
16522 * probe.c (_initialize_probe): Add declaration.
16523 * proc-api.c (_initialize_proc_api): Add declaration.
16524 * proc-events.c (_initialize_proc_events): Add declaration.
16525 * proc-service.c (_initialize_proc_service): Add declaration.
16526 * procfs.c (_initialize_procfs): Add declaration.
16527 * producer.c (_initialize_producer): Add declaration.
16528 * psymtab.c (_initialize_psymtab): Add declaration.
16529 * python/python.c (_initialize_python): Add declaration.
16530 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
16531 * record-btrace.c (_initialize_record_btrace): Add declaration.
16532 * record-full.c (_initialize_record_full): Add declaration.
16533 * record.c (_initialize_record): Add declaration.
16534 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
16535 * regcache.c (_initialize_regcache): Add declaration.
16536 * reggroups.c (_initialize_reggroup): Add declaration.
16537 * remote-notif.c (_initialize_notif): Add declaration.
16538 * remote-sim.c (_initialize_remote_sim): Add declaration.
16539 * remote.c (_initialize_remote): Add declaration.
16540 * reverse.c (_initialize_reverse): Add declaration.
16541 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
16542 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
16543 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
16544 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
16545 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
16546 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
16547 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
16548 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
16549 Add declaration.
16550 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
16551 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
16552 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
16553 * rust-exp.y (_initialize_rust_exp): Add declaration.
16554 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
16555 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
16556 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
16557 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
16558 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
16559 * score-tdep.c (_initialize_score_tdep): Add declaration.
16560 * ser-go32.c (_initialize_ser_dos): Add declaration.
16561 * ser-mingw.c (_initialize_ser_windows): Add declaration.
16562 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
16563 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
16564 * ser-uds.c (_initialize_ser_socket): Add declaration.
16565 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
16566 * serial.c (_initialize_serial): Add declaration.
16567 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
16568 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
16569 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
16570 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
16571 * skip.c (_initialize_step_skip): Add declaration.
16572 * sol-thread.c (_initialize_sol_thread): Add declaration.
16573 * solib-aix.c (_initialize_solib_aix): Add declaration.
16574 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
16575 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
16576 * solib-frv.c (_initialize_frv_solib): Add declaration.
16577 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
16578 * solib-target.c (_initialize_solib_target): Add declaration.
16579 * solib.c (_initialize_solib): Add declaration.
16580 * source-cache.c (_initialize_source_cache): Add declaration.
16581 * source.c (_initialize_source): Add declaration.
16582 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
16583 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
16584 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
16585 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
16586 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
16587 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
16588 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
16589 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
16590 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
16591 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
16592 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
16593 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
16594 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
16595 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
16596 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
16597 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
16598 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
16599 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
16600 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
16601 * stabsread.c (_initialize_stabsread): Add declaration.
16602 * stack.c (_initialize_stack): Add declaration.
16603 * stap-probe.c (_initialize_stap_probe): Add declaration.
16604 * std-regs.c (_initialize_frame_reg): Add declaration.
16605 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
16606 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
16607 * symfile.c (_initialize_symfile): Add declaration.
16608 * symmisc.c (_initialize_symmisc): Add declaration.
16609 * symtab.c (_initialize_symtab): Add declaration.
16610 * target.c (_initialize_target): Add declaration.
16611 * target-connection.c (_initialize_target_connection): Add
16612 declaration.
16613 * target-dcache.c (_initialize_target_dcache): Add declaration.
16614 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
16615 * thread.c (_initialize_thread): Add declaration.
16616 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
16617 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
16618 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
16619 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
16620 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
16621 * tracectf.c (_initialize_ctf): Add declaration.
16622 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
16623 * tracefile.c (_initialize_tracefile): Add declaration.
16624 * tracepoint.c (_initialize_tracepoint): Add declaration.
16625 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
16626 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
16627 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
16628 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
16629 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
16630 * tui/tui-win.c (_initialize_tui_win): Add declaration.
16631 * tui/tui.c (_initialize_tui): Add declaration.
16632 * typeprint.c (_initialize_typeprint): Add declaration.
16633 * ui-style.c (_initialize_ui_style): Add declaration.
16634 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
16635 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
16636 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
16637 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
16638 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
16639 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
16640 * unittests/filtered_iterator-selftests.c
16641 (_initialize_filtered_iterator_selftests): Add declaration.
16642 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
16643 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
16644 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
16645 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
16646 * unittests/main-thread-selftests.c
16647 (_initialize_main_thread_selftests): Add declaration.
16648 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
16649 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
16650 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
16651 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
16652 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
16653 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
16654 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
16655 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
16656 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
16657 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
16658 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
16659 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
16660 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
16661 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
16662 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
16663 declaration.
16664 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
16665 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
16666 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
16667 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
16668 * user-regs.c (_initialize_user_regs): Add declaration.
16669 * utils.c (_initialize_utils): Add declaration.
16670 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
16671 * valops.c (_initialize_valops): Add declaration.
16672 * valprint.c (_initialize_valprint): Add declaration.
16673 * value.c (_initialize_values): Add declaration.
16674 * varobj.c (_initialize_varobj): Add declaration.
16675 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
16676 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
16677 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
16678 * windows-nat.c (_initialize_windows_nat): Add declaration.
16679 (_initialize_check_for_gdb_ini): Add declaration.
16680 (_initialize_loadable): Add declaration.
16681 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
16682 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
16683 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
16684 * xcoffread.c (_initialize_xcoffread): Add declaration.
16685 * xml-support.c (_initialize_xml_support): Add declaration.
16686 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
16687 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
16688 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
16689 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
16690
e2de1eec
SM
166912020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16692
16693 * regformats/regdat.sh: Generate declaration for init function.
16694
e0037b4c
SM
166952020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16696
16697 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
16698 up.
16699 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
16700 close_one_inferior>: New methods.
16701 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
16702 pass down target to find_inferior_pid.
16703 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
16704 Pass down target to find_inferior_ptid.
16705 (gdbsim_target::create_inferior): Pass down target to
16706 add_thread_silent.
16707 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
16708 target down to find_inferior_ptid and switch_to_thread.
16709 (gdbsim_target::close): Update to call close_one_inferior.
16710 (struct resume_data): Remove.
16711 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
16712 directly, rather than through a void pointer.
16713 (gdbsim_target::resume): Update to call resume_one_inferior.
16714
58920b5b
SM
167152020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
16716
16717 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
16718
4ec89149
PA
167192020-01-12 Pedro Alves <palves@redhat.com>
16720
16721 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
16722 directly for the current inferior instead of
16723 discard_all_inferiors.
16724 (discard_all_inferiors): Delete.
16725
7c392d1d
TT
167262020-01-11 Tom Tromey <tom@tromey.com>
16727
16728 * tui/tui-wingeneral.c (box_win): Check cli_styling.
16729 * tui/tui-winsource.c (tui_source_window_base::refill): Use
16730 deprecated_safe_get_selected_frame.
16731
d9ebdab7
TBA
167322020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16733
16734 * inferior.c (print_inferior): Switch inferior before printing it.
16735
f3c469b9
PA
167362020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
16737 Pedro Alves <palves@redhat.com>
16738
16739 * progspace-and-thread.c (switch_to_program_space_and_thread):
16740 Assert there's an inferior for PSPACE. Use
16741 switch_to_inferior_no_thread to switch the inferior too.
16742 * progspace.c (program_space::~program_space): Call
16743 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
16744 (program_space::free_all_objfiles): Don't call clear_symtab_users
16745 here.
16746 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
16747
65c574f6
PA
167482020-01-10 Pedro Alves <palves@redhat.com>
16749
16750 * NEWS: Mention multi-target debugging, "info connections", and
16751 "add-inferior -no-connection".
16752
2f4fcf00
PA
167532020-01-10 Pedro Alves <palves@redhat.com>
16754
16755 * infrun.c: Include "target-connection.h".
16756 (check_multi_target_resumption): New.
16757 (proceed): Call it.
16758 * target-connection.c (make_target_connection_string): Make
16759 extern.
16760 * target-connection.h (make_target_connection_string): Declare.
16761
121b3efd
PA
167622020-01-10 Pedro Alves <palves@redhat.com>
16763
16764 * Makefile.in (COMMON_SFILES): Add target-connection.c.
16765 * inferior.c (uiout_field_connection): New function.
16766 (print_inferior): Add new "connection-id" column.
16767 (add_inferior_command): Show connection number/string of added
16768 inferior.
16769 * process-stratum-target.h
16770 (process_stratum_target::connection_string): New virtual method.
16771 (process_stratum_target::connection_number): New field.
16772 * remote.c (remote_target::connection_string): New override.
16773 * target-connection.c: New file.
16774 * target-connection.h: New file.
16775 * target.c (decref_target): Remove process_stratum targets from
16776 the connection list.
16777 (target_stack::push): Add process_stratum targets to the
16778 connection list.
16779
4f837581
PA
167802020-01-10 Pedro Alves <palves@redhat.com>
16781
16782 Revert:
16783 2016-04-12 Pedro Alves <palves@redhat.com>
16784 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
16785 Remove references to name.
16786 * serial.h (struct serial) <name>: Delete.
16787
f4ec508e
PA
167882020-01-10 Pedro Alves <palves@redhat.com>
16789
16790 * gdbarch-selftests.c (register_to_value_test): Remove "target
16791 already pushed" check.
16792
5b6d1e4f
PA
167932020-01-10 Pedro Alves <palves@redhat.com>
16794 John Baldwin <jhb@FreeBSD.org>
16795
16796 * aarch64-linux-nat.c
16797 (aarch64_linux_nat_target::thread_architecture): Adjust.
16798 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
16799 (task_command_1): Likewise.
16800 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
16801 (aix_thread_target::wait, aix_thread_target::fetch_registers)
16802 (aix_thread_target::store_registers)
16803 (aix_thread_target::thread_alive): Adjust.
16804 * amd64-fbsd-tdep.c: Include "inferior.h".
16805 (amd64fbsd_get_thread_local_address): Pass down target.
16806 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
16807 thread's gdbarch instead of target_gdbarch.
16808 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
16809 get_last_target_status.
16810 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
16811 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
16812 inferiors.
16813 (update_inserted_breakpoint_locations): Skip if inferiors with no
16814 execution.
16815 (update_global_location_list): When handling moribund locations,
16816 find representative inferior for location's pspace, and use thread
16817 count of its process_stratum target.
16818 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
16819 * bsd-uthread.c (bsd_uthread_target::wait): Use
16820 as_process_stratum_target and adjust thread_change_ptid and
16821 add_thread calls.
16822 (bsd_uthread_target::update_thread_list): Use
16823 as_process_stratum_target and adjust find_thread_ptid,
16824 thread_change_ptid and add_thread calls.
16825 * btrace.c (maint_btrace_packet_history_cmd): Adjust
16826 find_thread_ptid call.
16827 * corelow.c (add_to_thread_list): Adjust add_thread call.
16828 (core_target_open): Adjust add_thread_silent and thread_count
16829 calls.
16830 (core_target::pid_to_str): Adjust find_inferior_ptid call.
16831 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
16832 * event-top.c (async_disconnect): Pop targets from all inferiors.
16833 * exec.c (add_target_sections): Push exec target on all inferiors
16834 sharing the program space.
16835 (remove_target_sections): Remove the exec target from all
16836 inferiors sharing the program space.
16837 (exec_on_vfork): New.
16838 * exec.h (exec_on_vfork): Declare.
16839 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
16840 Pass it down.
16841 (fbsd_nat_target::update_thread_list): Adjust.
16842 (fbsd_nat_target::resume): Adjust.
16843 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
16844 down.
16845 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
16846 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
16847 get_thread_arch_regcache call.
16848 * fork-child.c (gdb_startup_inferior): Pass target down to
16849 startup_inferior and set_executing.
16850 * gdbthread.h (struct process_stratum_target): Forward declare.
16851 (add_thread, add_thread_silent, add_thread_with_info)
16852 (in_thread_list): Add process_stratum_target parameter.
16853 (find_thread_ptid(inferior*, ptid_t)): New overload.
16854 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
16855 parameter.
16856 (all_threads()): Delete overload.
16857 (all_threads, all_non_exited_threads): Add process_stratum_target
16858 parameter.
16859 (all_threads_safe): Use brace initialization.
16860 (thread_count): Add process_stratum_target parameter.
16861 (set_resumed, set_running, set_stop_requested, set_executing)
16862 (threads_are_executing, finish_thread_state): Add
16863 process_stratum_target parameter.
16864 (switch_to_thread): Use is_current_thread.
16865 * i386-fbsd-tdep.c: Include "inferior.h".
16866 (i386fbsd_get_thread_local_address): Pass down target.
16867 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
16868 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
16869 have_inferiors check.
16870 * inf-ptrace.c (inf_ptrace_target::create_inferior)
16871 (inf_ptrace_target::attach): Adjust.
16872 * infcall.c (run_inferior_call): Adjust.
16873 * infcmd.c (run_command_1): Pass target to
16874 scoped_finish_thread_state.
16875 (proceed_thread_callback): Skip inferiors with no execution.
16876 (continue_command): Rename 'all_threads' local to avoid hiding
16877 'all_threads' function. Adjust get_last_target_status call.
16878 (prepare_one_step): Adjust set_running call.
16879 (signal_command): Use user_visible_resume_target. Compare thread
16880 pointers instead of inferior_ptid.
16881 (info_program_command): Adjust to pass down target.
16882 (attach_command): Mark target's 'thread_executing' flag.
16883 (stop_current_target_threads_ns): New, factored out from ...
16884 (interrupt_target_1): ... this. Switch inferior before making
16885 target calls.
16886 * inferior-iter.h
16887 (struct all_inferiors_iterator, struct all_inferiors_range)
16888 (struct all_inferiors_safe_range)
16889 (struct all_non_exited_inferiors_range): Filter on
16890 process_stratum_target too. Remove explicit.
16891 * inferior.c (inferior::inferior): Push dummy target on target
16892 stack.
16893 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
16894 Add process_stratum_target parameter, and pass it down.
16895 (have_live_inferiors): Adjust.
16896 (switch_to_inferior_and_push_target): New.
16897 (add_inferior_command, clone_inferior_command): Handle
16898 "-no-connection" parameter. Use
16899 switch_to_inferior_and_push_target.
16900 (_initialize_inferior): Mention "-no-connection" option in
16901 the help of "add-inferior" and "clone-inferior" commands.
16902 * inferior.h: Include "process-stratum-target.h".
16903 (interrupt_target_1): Use bool.
16904 (struct inferior) <push_target, unpush_target, target_is_pushed,
16905 find_target_beneath, top_target, process_target, target_at,
16906 m_stack>: New.
16907 (discard_all_inferiors): Delete.
16908 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
16909 (all_inferiors, all_non_exited_inferiors): Add
16910 process_stratum_target parameter.
16911 * infrun.c: Include "gdb_select.h" and <unordered_map>.
16912 (target_last_proc_target): New global.
16913 (follow_fork_inferior): Push target on new inferior. Pass target
16914 to add_thread_silent. Call exec_on_vfork. Handle target's
16915 reference count.
16916 (follow_fork): Adjust get_last_target_status call. Also consider
16917 target.
16918 (follow_exec): Push target on new inferior.
16919 (struct execution_control_state) <target>: New field.
16920 (user_visible_resume_target): New.
16921 (do_target_resume): Call target_async.
16922 (resume_1): Set target's threads_executing flag. Consider resume
16923 target.
16924 (commit_resume_all_targets): New.
16925 (proceed): Also consider resume target. Skip threads of inferiors
16926 with no execution. Commit resumtion in all targets.
16927 (start_remote): Pass current inferior to wait_for_inferior.
16928 (infrun_thread_stop_requested): Consider target as well. Pass
16929 thread_info pointer to clear_inline_frame_state instead of ptid.
16930 (infrun_thread_thread_exit): Consider target as well.
16931 (random_pending_event_thread): New inferior parameter. Use it.
16932 (do_target_wait): Rename to ...
16933 (do_target_wait_1): ... this. Add inferior parameter, and pass it
16934 down.
16935 (threads_are_resumed_pending_p, do_target_wait): New.
16936 (prepare_for_detach): Adjust calls.
16937 (wait_for_inferior): New inferior parameter. Handle it. Use
16938 do_target_wait_1 instead of do_target_wait.
16939 (fetch_inferior_event): Adjust. Switch to representative
16940 inferior. Pass target down.
16941 (set_last_target_status): Add process_stratum_target parameter.
16942 Save target in global.
16943 (get_last_target_status): Add process_stratum_target parameter and
16944 handle it.
16945 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
16946 (context_switch): Check inferior_ptid == null_ptid before calling
16947 inferior_thread().
16948 (get_inferior_stop_soon): Pass down target.
16949 (wait_one): Rename to ...
16950 (poll_one_curr_target): ... this.
16951 (struct wait_one_event): New.
16952 (wait_one): New.
16953 (stop_all_threads): Adjust.
16954 (handle_no_resumed, handle_inferior_event): Adjust to consider the
16955 event's target.
16956 (switch_back_to_stepped_thread): Also consider target.
16957 (print_stop_event): Update.
16958 (normal_stop): Update. Also consider the resume target.
16959 * infrun.h (wait_for_inferior): Remove declaration.
16960 (user_visible_resume_target): New declaration.
16961 (get_last_target_status, set_last_target_status): New
16962 process_stratum_target parameter.
16963 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16964 process_stratum_target parameter, and use it.
16965 (clear_inline_frame_state (thread_info*)): New.
16966 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16967 process_stratum_target parameter.
16968 (clear_inline_frame_state (thread_info*)): Declare.
16969 * linux-fork.c (delete_checkpoint_command): Pass target down to
16970 find_thread_ptid.
16971 (checkpoint_command): Adjust.
16972 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
16973 instead of just tweaking inferior_ptid.
16974 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
16975 (exit_lwp): Pass target down to find_thread_ptid.
16976 (attach_proc_task_lwp_callback): Pass target down to
16977 add_thread/set_running/set_executing.
16978 (linux_nat_target::attach): Pass target down to
16979 thread_change_ptid.
16980 (get_detach_signal): Pass target down to find_thread_ptid.
16981 Consider last target status's target.
16982 (linux_resume_one_lwp_throw, resume_lwp)
16983 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
16984 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
16985 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
16986 (linux_nat_target::async_wait_fd): New.
16987 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
16988 target down.
16989 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
16990 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
16991 * linux-thread-db.c (struct thread_db_info::process_target): New
16992 field.
16993 (add_thread_db_info): Save target.
16994 (get_thread_db_info): New process_stratum_target parameter. Also
16995 match target.
16996 (delete_thread_db_info): New process_stratum_target parameter.
16997 Also match target.
16998 (thread_from_lwp): Adjust to pass down target.
16999 (thread_db_notice_clone): Pass down target.
17000 (check_thread_db_callback): Pass down target.
17001 (try_thread_db_load_1): Always push the thread_db target.
17002 (try_thread_db_load, record_thread): Pass target down.
17003 (thread_db_target::detach): Pass target down. Always unpush the
17004 thread_db target.
17005 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
17006 target down. Always unpush the thread_db target.
17007 (find_new_threads_callback, thread_db_find_new_threads_2)
17008 (thread_db_target::update_thread_list): Pass target down.
17009 (thread_db_target::pid_to_str): Pass current inferior down.
17010 (thread_db_target::get_thread_local_address): Pass target down.
17011 (thread_db_target::resume, maintenance_check_libthread_db): Pass
17012 target down.
17013 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
17014 * procfs.c (procfs_target::procfs_init_inferior): Declare.
17015 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
17016 (procfs_init_inferior): Rename to ...
17017 (procfs_target::procfs_init_inferior): ... this and adjust.
17018 (procfs_target::create_inferior, procfs_notice_thread)
17019 (procfs_do_thread_registers): Adjust.
17020 * ppc-fbsd-tdep.c: Include "inferior.h".
17021 (ppcfbsd_get_thread_local_address): Pass down target.
17022 * proc-service.c (ps_xfer_memory): Switch current inferior and
17023 program space as well.
17024 (get_ps_regcache): Pass target down.
17025 * process-stratum-target.c
17026 (process_stratum_target::thread_address_space)
17027 (process_stratum_target::thread_architecture): Pass target down.
17028 * process-stratum-target.h
17029 (process_stratum_target::threads_executing): New field.
17030 (as_process_stratum_target): New.
17031 * ravenscar-thread.c
17032 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
17033 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
17034 down.
17035 * record-btrace.c (record_btrace_target::info_record): Adjust.
17036 (record_btrace_target::record_method)
17037 (record_btrace_target::record_is_replaying)
17038 (record_btrace_target::fetch_registers)
17039 (get_thread_current_frame_id, record_btrace_target::resume)
17040 (record_btrace_target::wait, record_btrace_target::stop): Pass
17041 target down.
17042 * record-full.c (record_full_wait_1): Switch to event thread.
17043 Pass target down.
17044 * regcache.c (regcache::regcache)
17045 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
17046 process_stratum_target parameter and handle it.
17047 (current_thread_target): New global.
17048 (get_thread_regcache): Add process_stratum_target parameter and
17049 handle it. Switch inferior before calling target method.
17050 (get_thread_regcache): Pass target down.
17051 (get_thread_regcache_for_ptid): Pass target down.
17052 (registers_changed_ptid): Add process_stratum_target parameter and
17053 handle it.
17054 (registers_changed_thread, registers_changed): Pass target down.
17055 (test_get_thread_arch_aspace_regcache): New.
17056 (current_regcache_test): Define a couple local test_target_ops
17057 instances and use them for testing.
17058 (readwrite_regcache): Pass process_stratum_target parameter.
17059 (cooked_read_test, cooked_write_test): Pass mock_target down.
17060 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
17061 (get_thread_arch_aspace_regcache): Add process_stratum_target
17062 parameter.
17063 (regcache::target): New method.
17064 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
17065 (regcache::registers_changed_ptid): Add process_stratum_target
17066 parameter.
17067 (regcache::m_target): New field.
17068 (registers_changed_ptid): Add process_stratum_target parameter.
17069 * remote.c (remote_state::supports_vCont_probed): New field.
17070 (remote_target::async_wait_fd): New method.
17071 (remote_unpush_and_throw): Add remote_target parameter.
17072 (get_current_remote_target): Adjust.
17073 (remote_target::remote_add_inferior): Push target.
17074 (remote_target::remote_add_thread)
17075 (remote_target::remote_notice_new_inferior)
17076 (get_remote_thread_info): Pass target down.
17077 (remote_target::update_thread_list): Skip threads of inferiors
17078 bound to other targets. (remote_target::close): Don't discard
17079 inferiors. (remote_target::add_current_inferior_and_thread)
17080 (remote_target::process_initial_stop_replies)
17081 (remote_target::start_remote)
17082 (remote_target::remote_serial_quit_handler): Pass down target.
17083 (remote_target::remote_unpush_target): New remote_target
17084 parameter. Unpush the target from all inferiors.
17085 (remote_target::remote_unpush_and_throw): New remote_target
17086 parameter. Pass it down.
17087 (remote_target::open_1): Check whether the current inferior has
17088 execution instead of checking whether any inferior is live. Pass
17089 target down.
17090 (remote_target::remote_detach_1): Pass down target. Use
17091 remote_unpush_target.
17092 (extended_remote_target::attach): Pass down target.
17093 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
17094 (remote_target::append_resumption): Pass down target.
17095 (remote_target::append_pending_thread_resumptions)
17096 (remote_target::remote_resume_with_hc, remote_target::resume)
17097 (remote_target::commit_resume): Pass down target.
17098 (remote_target::remote_stop_ns): Check supports_vCont_probed.
17099 (remote_target::interrupt_query)
17100 (remote_target::remove_new_fork_children)
17101 (remote_target::check_pending_events_prevent_wildcard_vcont)
17102 (remote_target::remote_parse_stop_reply)
17103 (remote_target::process_stop_reply): Pass down target.
17104 (first_remote_resumed_thread): New remote_target parameter. Pass
17105 it down.
17106 (remote_target::wait_as): Pass down target.
17107 (unpush_and_perror): New remote_target parameter. Pass it down.
17108 (remote_target::readchar, remote_target::remote_serial_write)
17109 (remote_target::getpkt_or_notif_sane_1)
17110 (remote_target::kill_new_fork_children, remote_target::kill): Pass
17111 down target.
17112 (remote_target::mourn_inferior): Pass down target. Use
17113 remote_unpush_target.
17114 (remote_target::core_of_thread)
17115 (remote_target::remote_btrace_maybe_reopen): Pass down target.
17116 (remote_target::pid_to_exec_file)
17117 (remote_target::thread_handle_to_thread_info): Pass down target.
17118 (remote_target::async_wait_fd): New.
17119 * riscv-fbsd-tdep.c: Include "inferior.h".
17120 (riscv_fbsd_get_thread_local_address): Pass down target.
17121 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
17122 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
17123 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
17124 Adjust.
17125 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
17126 * solib-svr4.c (enable_break): Pass down target.
17127 * spu-multiarch.c (parse_spufs_run): Pass down target.
17128 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
17129 * target-delegates.c: Regenerate.
17130 * target.c (g_target_stack): Delete.
17131 (current_top_target): Return the current inferior's top target.
17132 (target_has_execution_1): Refer to the passed-in inferior's top
17133 target.
17134 (target_supports_terminal_ours): Check whether the initial
17135 inferior was already created.
17136 (decref_target): New.
17137 (target_stack::push): Incref/decref the target.
17138 (push_target, push_target, unpush_target): Adjust.
17139 (target_stack::unpush): Defref target.
17140 (target_is_pushed): Return bool. Adjust to refer to the current
17141 inferior's target stack.
17142 (dispose_inferior): Delete, and inline parts ...
17143 (target_preopen): ... here. Only dispose of the current inferior.
17144 (target_detach): Hold strong target reference while detaching.
17145 Pass target down.
17146 (target_thread_name): Add assertion.
17147 (target_resume): Pass down target.
17148 (target_ops::beneath, find_target_at): Adjust to refer to the
17149 current inferior's target stack.
17150 (get_dummy_target): New.
17151 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
17152 has a thread running.
17153 (initialize_targets): Rename to ...
17154 (_initialize_target): ... this.
17155 * target.h: Include "gdbsupport/refcounted-object.h".
17156 (struct target_ops): Inherit refcounted_object.
17157 (target_ops::shortname, target_ops::longname): Make const.
17158 (target_ops::async_wait_fd): New method.
17159 (decref_target): Declare.
17160 (struct target_ops_ref_policy): New.
17161 (target_ops_ref): New typedef.
17162 (get_dummy_target): Declare function.
17163 (target_is_pushed): Return bool.
17164 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
17165 (all_matching_threads_iterator::all_matching_threads_iterator):
17166 Handle filter target.
17167 * thread-iter.h (struct all_matching_threads_iterator, struct
17168 all_matching_threads_range, class all_non_exited_threads_range):
17169 Filter by target too. Remove explicit.
17170 * thread.c (threads_executing): Delete.
17171 (inferior_thread): Pass down current inferior.
17172 (clear_thread_inferior_resources): Pass down thread pointer
17173 instead of ptid_t.
17174 (add_thread_silent, add_thread_with_info, add_thread): Add
17175 process_stratum_target parameter. Use it for thread and inferior
17176 searches.
17177 (is_current_thread): New.
17178 (thread_info::deletable): Use it.
17179 (find_thread_ptid, thread_count, in_thread_list)
17180 (thread_change_ptid, set_resumed, set_running): New
17181 process_stratum_target parameter. Pass it down.
17182 (set_executing): New process_stratum_target parameter. Pass it
17183 down. Adjust reference to 'threads_executing'.
17184 (threads_are_executing): New process_stratum_target parameter.
17185 Adjust reference to 'threads_executing'.
17186 (set_stop_requested, finish_thread_state): New
17187 process_stratum_target parameter. Pass it down.
17188 (switch_to_thread): Also match inferior.
17189 (switch_to_thread): New process_stratum_target parameter. Pass it
17190 down.
17191 (update_threads_executing): Reimplement.
17192 * top.c (quit_force): Pop targets from all inferior.
17193 (gdb_init): Don't call initialize_targets.
17194 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
17195 Declare.
17196 (windows_add_thread, windows_delete_thread): Adjust.
17197 (get_windows_debug_event): Rename to ...
17198 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
17199 * tracefile-tfile.c (tfile_target_open): Pass down target.
17200 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
17201 Forward declare.
17202 (switch_to_thread): Add process_stratum_target parameter.
17203 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
17204 parameter. Use it.
17205 (mi_on_resume): Pass target down.
17206 * nat/fork-inferior.c (startup_inferior): Add
17207 process_stratum_target parameter. Pass it down.
17208 * nat/fork-inferior.h (startup_inferior): Add
17209 process_stratum_target parameter.
17210 * python/py-threadevent.c (py_get_event_thread): Pass target down.
17211
75c6c844
PA
172122020-01-10 Pedro Alves <palves@redhat.com>
17213
17214 * remote.c (remote_target::start_remote): Don't set inferior_ptid
17215 directly. Instead find the first thread in the thread list and
17216 use switch_to_thread.
17217
78f2c40a
PA
172182020-01-10 Pedro Alves <palves@redhat.com>
17219
17220 * remote.c (remote_target::remote_add_inferior): Don't bind a
17221 process to the current inferior if the current inferior is already
17222 bound to a process.
17223
e7af6c70
TBA
172242020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17225 Pedro Alves <palves@redhat.com>
17226
17227 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
17228 If no process is specified, return null_ptid instead of
17229 inferior_ptid.
17230 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
17231 TARGET_WAITKIND_SIGNALLED with no pid.
17232
31ba933e
PA
172332020-01-10 Pedro Alves <palves@redhat.com>
17234
17235 * remote.c (first_remote_resumed_thread): New.
17236 (remote_target::wait_as): Use it as default event_ptid instead of
17237 inferior_ptid.
17238
735fc2ca
PA
172392020-01-10 Pedro Alves <palves@redhat.com>
17240
17241 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
17242
c17e02e1
PA
172432020-01-10 Pedro Alves <palves@redhat.com>
17244
17245 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
17246 not -1.
17247
ab1ddbcf
PA
172482020-01-10 Pedro Alves <palves@redhat.com>
17249
17250 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
17251 ptid to get_last_target_status.
17252 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
17253 ptid to get_last_target_status.
17254 * infcmd.c (continue_command): Don't pass a target_waitstatus to
17255 get_last_target_status.
17256 (info_program_command): Don't pass a target_waitstatus to
17257 get_last_target_status.
17258 * infrun.c (init_wait_for_inferior): Use
17259 nullify_last_target_wait_ptid.
17260 (get_last_target_status): Handle nullptr arguments.
17261 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
17262 (print_stop_event): Don't pass a ptid to get_last_target_status.
17263 (normal_stop): Don't pass a ptid to get_last_target_status.
17264 * infrun.h (get_last_target_status, set_last_target_status): Move
17265 comments here and update.
17266 (nullify_last_target_wait_ptid): Declare.
17267 * linux-fork.c (fork_load_infrun_state): Remove local extern
17268 declaration of nullify_last_target_wait_ptid.
17269 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
17270 to get_last_target_status.
17271
f3f8ece4
PA
172722020-01-10 Pedro Alves <palves@redhat.com>
17273
17274 * gdbthread.h (scoped_restore_current_thread)
17275 <dont_restore, restore, m_dont_restore>: Declare.
17276 * thread.c (thread_alive): Add assertion. Return bool.
17277 (switch_to_thread_if_alive): New.
17278 (prune_threads): Switch inferior/thread.
17279 (print_thread_info_1): Switch thread before calling target methods.
17280 (scoped_restore_current_thread::restore): New, factored out from
17281 ...
17282 (scoped_restore_current_thread::~scoped_restore_current_thread):
17283 ... this.
17284 (scoped_restore_current_thread::scoped_restore_current_thread):
17285 Add assertion.
17286 (thread_apply_all_command, thread_select): Use
17287 switch_to_thread_if_alive.
17288 * infrun.c (proceed, restart_threads, handle_signal_stop)
17289 (switch_back_to_stepped_thread): Switch current thread before
17290 calling target methods.
17291
db2d40f7
PA
172922020-01-10 Pedro Alves <palves@redhat.com>
17293
17294 * inferior.c (switch_to_inferior_no_thread): New function,
17295 factored out from ...
17296 (inferior_command): ... here.
17297 * inferior.h (switch_to_inferior_no_thread): Declare.
17298 * mi/mi-main.c (run_one_inferior): Use
17299 switch_to_inferior_no_thread.
17300
bd420a2d
PA
173012020-01-10 Pedro Alves <palves@redhat.com>
17302
17303 * infcmd.c (kill_command): Remove dead code.
17304
ddf5db90
PA
173052020-01-10 Pedro Alves <palves@redhat.com>
17306
17307 * remote.c (remote_target::mourn_inferior): No longer check
17308 whether the target is running.
17309
5018ce90
PA
173102020-01-10 Pedro Alves <palves@redhat.com>
17311
17312 * corelow.c (core_target::has_execution): Change parameter type to
17313 inferior pointer.
17314 * inferior.c (number_of_live_inferiors): Use
17315 inferior::has_execution instead of target_has_execution_1.
17316 * inferior.h (inferior::has_execution): New.
17317 * linux-thread-db.c (thread_db_target::update_thread_list): Use
17318 inferior::has_execution instead of target_has_execution_1.
17319 * process-stratum-target.c
17320 (process_stratum_target::has_execution): Change parameter type to
17321 inferior pointer. Check the inferior's PID instead of
17322 inferior_ptid.
17323 * process-stratum-target.h
17324 (process_stratum_target::has_execution): Change parameter type to
17325 inferior pointer.
17326 * record-full.c (record_full_core_target::has_execution): Change
17327 parameter type to inferior pointer.
17328 * target.c (target_has_execution_1): Change parameter type to
17329 inferior pointer.
17330 (target_has_execution_current): Adjust.
17331 * target.h (target_ops::has_execution): Change parameter type to
17332 inferior pointer.
17333 (target_has_execution_1): Change parameter type to inferior
17334 pointer. Change return type to bool.
17335 * tracefile.h (tracefile_target::has_execution): Change parameter
17336 type to inferior pointer.
17337
74375d18
PA
173382020-01-10 Pedro Alves <palves@redhat.com>
17339
17340 * exceptions.c (print_flush): Remove current_top_target() check.
17341
acdf84a6
PA
173422020-01-10 Pedro Alves <palves@redhat.com>
17343
17344 * remote.c (show_remote_exec_file): Show the current inferior's
17345 exec-file instead of the command variable's value.
17346
ec506636
PA
173472020-01-10 Pedro Alves <palves@redhat.com>
17348
17349 * record-full.c (record_full_resume_ptid): New global.
17350 (record_full_target::resume): Set it.
17351 (record_full_wait_1): Use record_full_resume_ptid instead of
17352 inferior_ptid.
17353
873657b9
PA
173542020-01-10 Pedro Alves <palves@redhat.com>
17355
17356 * gdbthread.h (scoped_restore_current_thread)
17357 <dont_restore, restore, m_dont_restore>: Declare.
17358 * thread.c (thread_alive): Add assertion. Return bool.
17359 (switch_to_thread_if_alive): New.
17360 (prune_threads): Switch inferior/thread.
17361 (print_thread_info_1): Switch thread before calling target methods.
17362 (scoped_restore_current_thread::restore): New, factored out from
17363 ...
17364 (scoped_restore_current_thread::~scoped_restore_current_thread):
17365 ... this.
17366 (scoped_restore_current_thread::scoped_restore_current_thread):
17367 Add assertion.
17368 (thread_apply_all_command, thread_select): Use
17369 switch_to_thread_if_alive.
17370
7f0ae84c
GB
173712020-01-10 George Barrett <bob@bob131.so>
17372
17373 * stap-probe.c (stap_modify_semaphore): Don't check for null
17374 semaphores.
17375 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
17376 for null semaphores.
17377
f5a7c406
AB
173782020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17379
17380 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
17381 all source windows, and maintain horizontal scroll status while
17382 doing so.
17383
9ae6bf64
TT
173842020-01-09 Tom Tromey <tom@tromey.com>
17385
17386 PR tui/18932:
17387 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
17388 update_source_window, not print_source_lines.
17389
b2efe70c
AB
173902020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17391
17392 * tui/tui.c (tui_enable): Register tui hooks after calling
17393 tui_display_main.
17394
5f23a082
CB
173952020-01-09 Christian Biesinger <cbiesinger@google.com>
17396
17397 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
17398
3061113b
SM
173992020-01-08 Simon Marchi <simon.marchi@efficios.com>
17400
17401 * thread.c (print_thread_info_1): Fix indentation.
17402
57d75002
CB
174032020-01-09 Christian Biesinger <cbiesinger@google.com>
17404
17405 * symtab.c (general_symbol_info::compute_and_set_names): Move the
17406 unique_xmalloc_ptr outside the if to always free the demangled name.
17407
6a053cb1
TT
174082020-01-08 Tom Tromey <tromey@adacore.com>
17409
17410 * xcoffread.c (enter_line_range, read_xcoff_symtab)
17411 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
17412 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
17413 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
17414 Remove.
17415 (section_offsets): New typedef.
17416 * symtab.c (fixup_section, get_msymbol_address): Update.
17417 * symmisc.c (dump_msymbols): Update.
17418 * symfile.h (relative_addr_info_to_section_offsets)
17419 (symfile_map_offsets_to_segments): Update.
17420 * symfile.c (build_section_addr_info_from_objfile)
17421 (init_objfile_sect_indices): Update.
17422 (struct place_section_arg): Change type of "offsets".
17423 (place_section): Update.
17424 (relative_addr_info_to_section_offsets): Change type of
17425 "section_offsets". Remove "num_sections" parameter.
17426 (default_symfile_offsets, syms_from_objfile_1)
17427 (set_objfile_default_section_offset): Update.
17428 (reread_symbols): No need to preserve section offsets by hand.
17429 (symfile_map_offsets_to_segments): Change type of "offsets".
17430 * stap-probe.c (relocate_address): Update.
17431 * stabsread.h (process_one_symbol): Update.
17432 * solib-target.c (struct lm_info_target) <offsets>: Change type.
17433 (solib_target_relocate_section_addresses): Update.
17434 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
17435 Update.
17436 * solib-frv.c (frv_relocate_main_executable): Update.
17437 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
17438 * solib-aix.c (solib_aix_get_section_offsets): Change return
17439 type.
17440 (solib_aix_solib_create_inferior_hook): Update.
17441 * remote.c (remote_target::get_offsets): Update.
17442 * psymtab.c (find_pc_sect_psymtab): Update.
17443 * psympriv.h (struct partial_symbol) <address, text_low,
17444 text_high>: Update.
17445 * objfiles.h (obj_section_offset): Update.
17446 (struct objfile) <section_offsets>: Change type.
17447 <num_sections>: Remove.
17448 (objfile_relocate): Update.
17449 * objfiles.c (entry_point_address_query): Update
17450 (relocate_one_symbol): Change type of "section_offsets".
17451 (objfile_relocate1, objfile_relocate1): Change type of
17452 "new_offsets".
17453 (objfile_rebase1): Update.
17454 * mipsread.c (mipscoff_symfile_read): Update.
17455 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
17456 parameter.
17457 * mdebugread.c (parse_symbol): Change type of "section_offsets".
17458 (parse_external, psymtab_to_symtab_1): Update.
17459 * machoread.c (macho_symfile_offsets): Update.
17460 * ia64-tdep.c (ia64_find_unwind_table): Update.
17461 * hppa-tdep.c (read_unwind_info): Update.
17462 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
17463 * dwarf2read.c (create_addrmap_from_index)
17464 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
17465 (process_psymtab_comp_unit_reader, add_partial_symbol)
17466 (add_partial_subprogram, process_full_comp_unit)
17467 (read_file_scope, read_func_scope, read_lexical_block_scope)
17468 (read_call_site_scope, dwarf2_rnglists_process)
17469 (dwarf2_ranges_process, dwarf2_ranges_read)
17470 (dwarf_decode_lines_1, var_decode_location, new_symbol)
17471 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
17472 Update.
17473 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
17474 Update.
17475 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
17476 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
17477 (process_one_symbol): Change type of "section_offsets".
17478 * ctfread.c (get_objfile_text_range): Update.
17479 * coffread.c (coff_symtab_read, enter_linenos)
17480 (process_coff_symbol): Update.
17481 * coff-pe-read.c (add_pe_forwarded_sym): Update.
17482 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
17483
456e800a
TT
174842020-01-08 Tom Tromey <tromey@adacore.com>
17485
17486 * dwarf2read.c (parse_macro_definition): Use std::string.
17487 (parse_macro_definition): Likewise.
17488
6dfa2fc2
TT
174892020-01-08 Tom Tromey <tromey@adacore.com>
17490
17491 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
17492 (ATTR_ALLOC_CHUNK): Remove.
17493
421d1616
TT
174942020-01-08 Tom Tromey <tromey@adacore.com>
17495
17496 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
17497
43816ebc
TT
174982020-01-08 Tom Tromey <tromey@adacore.com>
17499
17500 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
17501 (dwarf2_compute_name, open_dwo_file): Likewise.
17502 (process_enumeration_scope): Use std::vector.
17503 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
17504 (partial_die_info::fixup, dwarf2_start_subfile)
17505 (guess_full_die_structure_name, dwarf2_name): Likewise.
17506 (determine_prefix): Update.
17507 (guess_full_die_structure_name): Make return type const.
17508 (partial_die_full_name): Return unique_xmalloc_ptr.
17509 (DW_FIELD_ALLOC_CHUNK): Remove.
17510
4212d509
TT
175112020-01-07 Tom Tromey <tromey@adacore.com>
17512
17513 PR build/24937:
17514 * stap-probe.c (class stap_static_probe_ops): Add constructor.
17515
06a6207a
JT
175162020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17517
17518 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
17519
153d79c4
AB
175202020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
17521
17522 * stack.c (print_frame_info): Move disassemble_next_line code
17523 inside source_print block.
17524
66182876
EZ
175252020-01-06 Eli Zaretskii <eliz@gnu.org>
17526
17527 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
17528 gdb/signals.h, as we are now using native signal symbols.
17529
cbfa8581
SV
175302020-01-06 Shahab Vahedi <shahab@synopsys.com>
17531
17532 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
17533 overflow by an early check of content vs threshold.
aac66a4c 17534 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
17535 Likewise.
17536
3f602821
EZ
175372020-01-06 Eli Zaretskii <eliz@gnu.org>
17538
17539 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
17540
a08c904d
JT
175412020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17542
17543 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
17544 export table if no section contains it's RVA.
17545
89a65580
EZ
175462020-01-06 Eli Zaretskii <eliz@gnu.org>
17547
17548 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
17549
8b7fcda2
HD
175502020-01-06 Hannes Domani <ssbssa@yahoo.de>
17551
17552 * source.c (print_source_lines_base): Set last_line_listed.
17553
a61b4f69
SV
175542020-01-06 Shahab Vahedi <shahab@synopsys.com>
17555
17556 * tui/tui-disasm.c: Remove trailing spaces.
17557
559e7e50
EZ
175582020-01-06 Eli Zaretskii <eliz@gnu.org>
17559 Pedro Alves <palves@redhat.com>
17560
17561 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
17562 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
17563 (windows_gdb_signal_to_target): New function, uses the above
17564 enumeration to convert GDB internal signal codes to equivalent
17565 Windows codes.
17566 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
17567 * windows-nat.c: Include "gdb_wait.h".
17568 (get_windows_debug_event): Extract the fatal exception from the
17569 exit status and convert to the equivalent Posix signal number.
17570 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
17571 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
17572 * gdbsupport/gdb_wait.c: New file, implements
17573 windows_status_to_termsig.
17574 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
17575 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
17576
f2302a34
AB
175772020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
17578
17579 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
17580 show_layout.
17581
6a5206eb
LM
175822020-01-05 Luis Machado <luis.machado@linaro.org>
17583
17584 * aarch64-linux-nat.c
17585 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
17586 and bfd_mach_aarch64.
17587
6ec1d75e
PW
175882020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17589
17590 * ui-file.c (stdio_file::can_emit_style_escape)
17591 (tee_file::can_emit_style_escape): Ensure style is used also on
17592 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
17593 to gdb_stdout.
17594 * main.c (set_gdb_data_directory): Use file style to output the
17595 warning that the given pathname is not a directory.
17596 * top.c (show_history_filename, gdb_safe_append_history)
17597 (show_gdb_datadir): Use file style.
17598
44f81a76
HD
175992020-01-03 Hannes Domani <ssbssa@yahoo.de>
17600
17601 * solib-target.c (struct lm_info_target):
17602 Change offsets to be a unique_xmalloc_ptr.
17603 (solib_target_relocate_section_addresses): Update.
17604
25057eb0
HD
176052020-01-03 Hannes Domani <ssbssa@yahoo.de>
17606
17607 * windows-nat.c (windows_clear_solib): Free so_list linked list.
17608
6e2118f5
BE
176092020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
17610
17611 * MAINTAINERS (Write After Approval): Add myself.
17612
8133c7dc
LM
176132020-01-02 Luis Machado <luis.machado@linaro.org>
17614
17615 * proc-service.c (get_ps_regcache): Remove reference to obsolete
17616 Cell BE architecture.
17617 * target.h (struct target_ops) <thread_architecture>: Likewise.
17618
48189bec
HD
176192020-01-01 Hannes Domani <ssbssa@yahoo.de>
17620
17621 * Makefile.in: Use INSTALL_PROGRAM_ENV.
17622
ead1063b
HD
176232020-01-01 Hannes Domani <ssbssa@yahoo.de>
17624
17625 * MAINTAINERS (Write After Approval): Add myself.
17626
e5d78223
JB
176272020-01-01 Joel Brobecker <brobecker@adacore.com>
17628
17629 * gdbarch.sh: Update copyright year range of generated files.
17630
b811d2c2
JB
176312020-01-01 Joel Brobecker <brobecker@adacore.com>
17632
17633 Update copyright year range in all GDB files.
17634
5f4def5c
JB
176352020-01-01 Joel Brobecker <brobecker@adacore.com>
17636
17637 * copyright.py: Convert to Python 3.
17638
51fd4002
JB
176392020-01-01 Joel Brobecker <brobecker@adacore.com>
17640
17641 * copyright.py: Adapt after move of gnulib directory from gdb
17642 directory to toplevel directory.
17643
5fb651f2
JB
176442020-01-01 Joel Brobecker <brobecker@adacore.com>
17645
17646 * copyright.py (main): Exit if run from the wrong directory.
17647
5dd8bf88
JB
176482020-01-01 Joel Brobecker <brobecker@adacore.com>
17649
17650 * top.c (print_gdb_version): Change copyright year to 2020.
17651
9f71dacb 176522020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 17653
9f71dacb 17654 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 17655
9f71dacb 17656For older changes see ChangeLog-2019.
c906108c
SS
17657\f
17658Local Variables:
17659mode: change-log
17660left-margin: 8
17661fill-column: 74
17662version-control: never
57da7796 17663coding: utf-8
c906108c 17664End:
This page took 5.169835 seconds and 4 git commands to generate.