]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
gdb: introduce status enum for displaced step prepare/finish
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
bab37966
SM
12020-12-04 Simon Marchi <simon.marchi@efficios.com>
2
3 * infrun.c (displaced_step_prepare_throw): Change return type to
4 displaced_step_prepare_status.
5 (displaced_step_prepare): Likewise.
6 (displaced_step_finish): Change return type to
7 displaced_step_finish_status.
8 (resume_1): Adjust.
9 (stop_all_threads): Adjust.
10 * displaced-stepping.h: New file.
11
7def77a1
SM
122020-12-04 Simon Marchi <simon.marchi@efficios.com>
13
14 * infrun.c (displaced_step_fixup): Rename to...
15 (displaced_step_finish): ... this, update all callers.
16
1152d984
SM
172020-12-04 Simon Marchi <simon.marchi@efficios.com>
18
19 * infrun.h (get_displaced_step_closure_by_addr): Rename to...
20 (get_displaced_step_copy_insn_closure_by_addr): ... this.
21 Update all users.
22 (displaced_step_closure): Rename to...
23 (displaced_step_copy_insn_closure): ... this. Update all users.
24 (displaced_step_closure_up): Rename to...
25 (displaced_step_copy_insn_closure_up). ... this. Update all
26 users.
27 (buf_displaced_step_closure): Rename to...
28 (buf_displaced_step_copy_insn_closure): ... this. Update all
29 users.
30 * infrun.c (get_displaced_step_closure_by_addr): Rename to...
31 (get_displaced_step_copy_insn_closure_by_addr): ... this.
32 Update all users.
33 * aarch64-tdep.c (aarch64_displaced_step_closure): Rename to...
34 (aarch64_displaced_step_copy_insn_closure): ... this. Update
35 all users.
36 * amd64-tdep.c (amd64_displaced_step_closure): Rename to...
37 (amd64_displaced_step_copy_insn_closure): ... this. Update all
38 users.
39 * arm-tdep.h (arm_displaced_step_closure): Rename to...
40 (arm_displaced_step_copy_insn_closure): ... this. Update all
41 users.
42 * i386-tdep.h (i386_displaced_step_closure): Rename to...
43 (i386_displaced_step_copy_insn_closure): ... this. Update all
44 users.
45 * rs6000-tdep.c (ppc_displaced_step_closure): Rename to...
46 (ppc_displaced_step_copy_insn_closure): ... this. Update all
47 users.
48 * s390-tdep.c (s390_displaced_step_closure): Rename to...
49 (s390_displaced_step_copy_insn_closure): ... this. Update all
50 users.
51 * gdbarch.h: Re-generate.
52 * gdbarch.c: Re-generate.
53
28d5518b
SM
542020-12-04 Simon Marchi <simon.marchi@efficios.com>
55
56 * gdbthread.h (thread_step_over_chain_enqueue): Rename to...
57 (global_thread_step_over_chain_enqueue): ... this. Update all
58 users.
59 (thread_step_over_chain_remove): Rename to...
60 (global_thread_step_over_chain_remove): ... this. Update all
61 users.
62 (thread_step_over_chain_next): Rename to...
63 (global_thread_step_over_chain_next): ... this. Update all
64 users.
65 * infrun.h (step_over_queue_head): Rename to...
66 (global_thread_step_over_chain_head): ... this. Update all
67 users.
68 * infrun.c (step_over_queue_head): Rename to...
69 (global_thread_step_over_chain_head): ... this. Update all
70 users.
71 * thread.c (step_over_chain_remove): Rename to...
72 (thread_step_over_chain_remove): ... this. Update all users.
73 (thread_step_over_chain_next): Rename to...
74 (global_thread_step_over_chain_next): ... this. Update all
75 users.
76 (thread_step_over_chain_enqueue): Rename to...
77 (global_thread_step_over_chain_enqueue): ... this. Update all
78 users.
79 (thread_step_over_chain_remove): Rename to...
80 (global_thread_step_over_chain_remove): ... this. Update all
81 users.
82
f5f01699
SM
832020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
84
85 * infrun.c (get_displaced_stepping_state): Remove, change
86 callers to access the field directly.
87
c0aba012
SM
882020-12-04 Simon Marchi <simon.marchi@polymtl.ca>
89
90 * infrun.c (handle_inferior_event): Restore displaced step
91 buffer bytes in child process when handling fork, even if fork
92 happened in another thread than the displaced-stepping one.
93
3b7a962d
SM
942020-12-04 Simon Marchi <simon.marchi@efficios.com>
95
96 * infrun.c (infrun_inferior_execd): New function.
97 (_initialize_infrun): Attach inferior_execd observer.
98
42a4fec5
SM
992020-12-04 Simon Marchi <simon.marchi@efficios.com>
100
101 * observable.h (inferior_execd): Declare new observable.
102 * observable.c (inferior_execd): Declare new observable.
103 * infrun.c (follow_exec): Notify inferior_execd observer.
104 * jit.c (jit_inferior_created_hook): Make static.
105 (_initialize_jit): Register inferior_execd observer.
106 * jit.h (jit_inferior_created_hook): Remove declaration.
107 * solib.c (_initialize_solib): Register inferior_execd observer.
108
aafdfb4e
TV
1092020-12-04 Tom de Vries <tdevries@suse.de>
110
111 PR gdb/27003
112 * completer.c (completion_tracker::build_completion_result): Don't
113 access match_list[0][-1].
114
f99b5177
TT
1152020-12-04 Tom Tromey <tromey@adacore.com>
116
117 * linespec.c (struct linespec_token): Rename; remove typedef.
118 * guile/scm-block.c (struct block_smob): Remove typedef.
119 (struct block_syms_progress_smob): Likewise.
120 * guile/scm-symbol.c (struct symbol_smob): Remove typedef.
121 * guile/scm-symtab.c (symtab_smob): Remove typedef.
122 (struct sal_smob): Remove typedef.
123 * guile/scm-param.c (struct param_smob): Remove typedef.
124 * guile/scm-progspace.c (struct pspace_smob): Rename.
125 * guile/scm-objfile.c (struct objfile_smob): Rename.
126 * guile/scm-iterator.c (struct iterator_smob): Rename.
127 * guile/scm-frame.c (struct frame_smob): Rename.
128 * guile/scm-arch.c (struct arch_smob): Rename.
129 * guile/scm-type.c (struct field_smob): Remove typedef.
130 (struct type_smob): Rename.
131 * guile/scm-cmd.c (struct command_smob): Remove typedef.
132 * guile/scm-ports.c (struct ioscm_memory_port): Remove typedef.
133 * guile/scm-value.c (struct value_smob): Remove typedef.
134 * guile/scm-lazy-string.c (lazy_string_smob): Remove typedef.
135 * guile/guile-internal.h (struct scheme_variable)
136 (struct scheme_function, struct scheme_integer_constant)
137 (struct gdb_smob, struct chained_gdb_smob)
138 (struct eqable_gdb_smob, arch_smob, frame_smob, iterator_smob)
139 (objfile_smob, pspace_smob, type_smob): Remove typedef.
140 * guile/scm-pretty-print.c (pretty_printer_smob): Remove typedef.
141 (struct pretty_printer_worker_smob): Remove typedef.
142 * guile/scm-exception.c (struct exception_smob): Remove typedef.
143 * python/py-block.c (struct block_object): Remove typedef.
144 (block_syms_iterator_object): Update.
145 (set_block): Update.
146 (block_syms_iterator_object): Remove typedef.
147 * python/py-inferior.c (struct membuf_object): Remove typedef.
148 * python/py-symtab.c (struct symtab_object): Remove typedef.
149 (set_symtab): Update.
150 (sal_object): Remove typedef.
151 (set_sal): Update.
152 * python/py-frame.c (frame_object): Remove typedef.
153 * python/py-record-btrace.c (struct btpy_list_object): Remove
154 typedef.
155 * python/py-arch.c (struct arch_object): Remove typedef.
156 * python/py-linetable.c (struct linetable_entry_object)
157 (linetable_object, struct ltpy_iterator_object): Remove typedef.
158 * python/py-events.h (eventregistry_object): Remove typedef.
159 (struct events_object): Remove typedef.
160 * python/python-internal.h (gdbpy_breakpoint_object): Remove
161 typedef.
162 (thread_object): Remove typedef.
163 * python/py-progspace.c (pspace_object): Remove typedef.
164 * python/py-value.c (struct value_object): Remove typedef.
165 * python/py-record.h (recpy_record_object): Remove typedef.
166 (struct recpy_element_object): Remove typedef.
167 * python/py-lazy-string.c (lazy_string_object): Remove typedef.
168 * python/py-objfile.c (objfile_object): Remove typedef.
169 * python/py-cmd.c (struct cmdpy_object): Remove typedef.
170 * python/py-type.c (type_object): Remove typedef.
171 (typy_iterator_object): Update.
172 (set_type): Update.
173 (field_object): Remove typedef.
174 (typy_iterator_object): Remove typedef.
175 * python/py-registers.c (register_descriptor_iterator_object):
176 Remove typedef.
177 (struct register_descriptor_object)
178 (struct reggroup_iterator_object, struct reggroup_object): Remove
179 typedef.
180 * python/py-record.c (recpy_gap_object): Remove typedef.
181 * python/py-symbol.c (symbol_object): Remove typedef.
182 (set_symbol): Update.
183 * python/py-event.h (event_object): Remove typedef.
184 * python/py-param.c (parmpy_object): Remove typedef.
185 * python/py-instruction.c (struct py_insn_obj): Remove typedef.
186 * python/py-unwind.c (struct pending_frame_object): Remove typedef.
187 (unwind_info_object, struct cached_frame_info): Likewise.
188
91f87213
TT
1892020-12-04 Tom Tromey <tromey@adacore.com>
190
191 * value.c (value_internal_function_name): Make return type const.
192 * value.h (value_internal_function_name): Make return type const.
193
5382f971
LM
1942020-12-04 Luis Machado <luis.machado@linaro.org>
195
196 * aarch64-tdep.c (submask, bit, bits): Remove.
197 * arch/aarch64-insn.c (extract_signed_bitfield): Remove.
198 (aarch64_decode_adr, aarch64_decode_b aarch64_decode_bcond)
199 (aarch64_decode_cb, aarch64_decode_tb)
200 (aarch64_decode_ldr_literal): Use sbits to extract a signed
201 immediate.
202 * arch/aarch64-insn.h (submask, bits, bit, sbits): New macros.
203
b6a6aa07
TV
2042020-12-04 Tom de Vries <tdevries@suse.de>
205
206 PR tdep/27007
207 * i386-tdep.c (i386_16_byte_align_p): Skip static fields.
208
0bc2e38d
SM
2092020-12-03 Simon Marchi <simon.marchi@polymtl.ca>
210
211 PR gdb/26876
212 * dwarf2/frame.c (find_comp_unit, set_comp_unit): Reverse use of
213 dwarf2_frame_bfd_data and dwarf2_frame_objfile_data.
214
25428040
AB
2152020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
216
217 * arch/riscv.c: Include 'rv32e-xregs.c'.
218 (riscv_create_target_description): Update to handle rv32e.
219 * arch/riscv.h (struct riscv_gdbarch_features) <embedded>: New
220 member variable.
221 <operator==>: Update to account for new field.
222 <hash>: Likewise.
223 * features/Makefile (FEATURE_XMLFILES): Add riscv/rv32e-xregs.xml.
224 * features/riscv/rv32e-xregs.c: Generated.
225 * features/riscv/rv32e-xregs.xml: New file.
226 * riscv-tdep.c (riscv_debug_breakpoints): Move from later in the
227 file.
228 (riscv_debug_infcall): Likewise.
229 (riscv_debug_unwinder): Likewise.
230 (riscv_debug_gdbarch): Likewise.
231 (enum riscv_register_required_status): Delete.
232 (struct riscv_register_feature): Add constructor, delete default
233 constructor, copy, and assign constructors.
234 (struct riscv_register_feature::register_info) <required>: Delete.
235 <check>: Update comment and arguments.
236 (struct riscv_register_feature) <name>: Change to member function.
237 <prefer_first_name>: Delete.
238 <tdesc_feature>: New member function.
239 <registers>: Rename to...
240 <m_registers>: ...this.
241 <m_feature_name>: New member variable.
242 (riscv_register_feature::register_info::check): Update arguments.
243 (riscv_xreg_feature): Rewrite as class, create a single static
244 instance of the class.
245 (riscv_freg_feature): Likewise.
246 (riscv_virtual_feature): Likewise.
247 (riscv_csr_feature): Likewise.
248 (riscv_create_csr_aliases): Has become a member function inside
249 riscv_csr_feature class.
250 (riscv_abi_embedded): New function definition.
251 (riscv_register_name): Adjust to use new feature objects.
252 (struct riscv_call_info) <riscv_call_info>: Check for rv32e abi,
253 and adjust available argument registers.
254 (riscv_features_from_gdbarch_info): Check for EF_RISCV_RVE flag.
255 (riscv_check_tdesc_feature): Delete.
256 (riscv_tdesc_unknown_reg): Adjust to use new feature objects.
257 (riscv_gdbarch_init): Delete target description checking code, and
258 instead call to the new feature objects to perform the checks.
259 Reorder handling of no abi information case, allows small code
260 simplification.
261 (_initialize_riscv_tdep): Remove call, this is now done in the
262 riscv_csr_feature constructor.
263 * riscv-tdep.h (riscv_abi_embedded): Declare.
264
533b2ae0
AB
2652020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
266
267 * riscv-tdep.c (riscv_create_csr_aliases): Remove use of
268 DECLARE_CSR_ALIAS.
269
e4502042
AB
2702020-12-02 Andrew Burgess <andrew.burgess@embecosm.com>
271
272 * riscv-tdep.c (riscv_is_unknown_csr): New function,
273 implementation moved from riscv_register_reggroup_p.
274 (riscv_register_reggroup_p): Update group handling for unknown
275 CSRs.
276
2bf3b79d
SDJ
2772020-12-01 Sergio Durigan Junior <sergiodj@sergiodj.net>
278
279 * dwarf2/read.c (dwz_search_other_debugdirs): New function.
280 (dwarf2_get_dwz_file): Convert 'filename' to a
281 std::string. Use dwz_search_other_debugdirs to search for DWZ
282 files in the debug-file-directories provided by the user as well.
283
77bf7e99
TT
2842020-12-01 Tom Tromey <tom@tromey.com>
285
286 * parse.c (expr_builder::expr_builder): Initialize expout.
287 (expr_builder::release): Use expression::resize.
288 (expression::expression, expression::~expression)
289 (expression::resize): New methods.
290 (write_exp_elt): Use expression::resize.
291 (prefixify_expression): Update.
292 (increase_expout_size): Use expression::resize.
293 * expression.h (struct expression): Add constructor, destructor.
294 <resize>: New method.
295 (expression_up): Change type.
296
539d71e8
RA
2972020-12-01 Rogerio A. Cardoso <rcardoso@linux.ibm.com>
298 * ppc-linux-nat.c: (PPC_DEBUG_FEATURE_DATA_BP_ARCH_31): New define.
299 (region_ok_for_hw_watchpoint): Check if 2nd DAWR is avaliable before
300 set region.
301
7ce05d21
TV
3022020-11-30 Tom de Vries <tdevries@suse.de>
303
304 PR symtab/26905
305 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add and handle
306 is_reference parameter.
307 (dwarf2_evaluate_property): Update dwarf2_locexpr_baton_eval call.
308
88b91969
TT
3092020-11-30 Tom Tromey <tom@tromey.com>
310
311 * rust-lang.c (rust_op_name): Remove.
312 (exp_descriptor_rust): Update.
313 * parser-defs.h (op_name_standard): Don't declare.
314 (struct exp_descriptor) <op_name>: Remove.
315 * parse.c (exp_descriptor_standard): Update.
316 * opencl-lang.c (exp_descriptor_opencl): Update.
317 * m2-lang.c (m2_language::exp_descriptor_modula2): Update.
318 * f-lang.c (op_name_f): Remove.
319 (f_language::exp_descriptor_tab): Update.
320 * expression.h (op_name): Update.
321 * expprint.c (op_name): Rewrite.
322 (op_name_standard): Remove.
323 (dump_raw_expression, dump_subexp): Update.
324 * c-lang.c (exp_descriptor_c): Update.
325 * ax-gdb.c (gen_expr): Update.
326 * ada-lang.c (ada_op_name): Remove.
327 (ada_exp_descriptor): Update.
328
1cd49c43
TT
3292020-11-30 Tom Tromey <tom@tromey.com>
330
331 * eval.c (init_array_element): Remove.
332 (evaluate_subexp_standard) <OP_ARRAY>: Remove "index_pc".
333
96fb9086
HD
3342020-11-29 Hannes Domani <ssbssa@yahoo.de>
335
336 PR tui/26973
337 * tui/tui-layout.c (tui_apply_current_layout): Don't delete the
338 static locator win info.
339
b4132322
AR
3402020-11-28 Alex Richardson <Alexander.Richardson@cl.cam.ac.uk>
341
342 * acincludde.m4 (GDB_AC_CHECK_BFD): Include string.h in the test
343 program.
344
3df8c6af
AB
3452020-11-27 Andrew Burgess <andrew.burgess@embecosm.com>
346
347 * printcmd.c (skip_over_slash_fmt): Reorder code to ensure in_fmt
348 is always initialized.
349
0ae45769
RA
3502020-11-26 Rogerio Alves <rcardoso@linux.ibm.com>
351 * MAINTAINERS (Write After Approval): Add myself.
352
239ca5e4
PW
3532020-11-26 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
354
355 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
356 * features/aarch64-fpu.xml: Add named FPCR and FPSR register bit-fields.
357
cbfa382a
TT
3582020-11-25 Tom Tromey <tom@tromey.com>
359
360 * eval.c (evaluate_subexp_standard): Remove unnecessary
361 variables.
362
af30c400
TT
3632020-11-25 Tom Tromey <tom@tromey.com>
364
365 * d-lang.c: Include parser-defs.h.
366 * rust-lang.c: Include parser-defs.h.
367 * c-lang.h: Do not include parser-defs.h.
368
1c64f6cb
SM
3692020-11-24 Simon Marchi <simon.marchi@polymtl.ca>
370
371 * regcache.h (struct cached_reg): Remove typedef.
372
2c20a601
JB
3732020-11-24 Joel Brobecker <brobecker@adacore.com>
374
375 * README: Fix the URL of the MPFR library.
376
c609df64
JB
3772020-11-24 Joel Brobecker <brobecker@adacore.com>
378
379 * README: Document the --with-libgmp-prefix configure option.
380
fa123c32
JB
3812020-11-24 Joel Brobecker <brobecker@adacore.com>
382
383 * NEWS: Add entry documenting support for DWARF-based fixed
384 point types.
385
0fb8bb02
JB
3862020-11-24 Joel Brobecker <brobecker@adacore.com>
387
388 * NEWS: Document that building GDB now requires GMP.
389
4afa9fd9
JB
3902020-11-24 Joel Brobecker <brobecker@adacore.com>
391
392 * typeprint.c (print_type_scalar): Add handling of
393 TYPE_CODE_FIXED_POINT.
394
af619ce9
JB
3952020-11-24 Joel Brobecker <brobecker@adacore.com>
396
397 * valarith.c (fixed_point_binop): Replace the
398 INIT_VAL_WITH_FIXED_POINT_VAL macro by a lambda. Update all
399 users accordingly.
400
e6fcee3a
JB
4012020-11-24 Joel Brobecker <brobecker@adacore.com>
402
403 * gdbtypes.h (struct type) <fixed_point_scaling_factor>: New method,
404 replacing fixed_point_scaling_factor. All callers updated
405 throughout this project.
406 (fixed_point_scaling_factor): Delete declaration.
407 * gdbtypes.c (type::fixed_point_scaling_factor): Replaces
408 fixed_point_scaling_factor. Adjust implementation accordingly.
409
d19937a7
JB
4102020-11-24 Joel Brobecker <brobecker@adacore.com>
411
412 * gdbtypes.h (struct type) <fixed_point_type_base_type> New method,
413 replacing the fixed_point_type_base_type function. All callers
414 updated throughout this project.
415 (fixed_point_type_base_type): Remove declaration.
416 * gdbtypes.c (type::fixed_point_type_base_type): Replaces
417 fixed_point_type_base_type. Adjust implementation accordingly.
418
2a12c336
JB
4192020-11-24 Joel Brobecker <brobecker@adacore.com>
420
421 * gdbtypes.h (struct type) <fixed_point_info, set_fixed_point_info>:
422 New methods.
423 (INIT_FIXED_POINT_SPECIFIC): Adjust.
424 (TYPE_FIXED_POINT_INFO): Delete macro.
425 (allocate_fixed_point_type_info): Change return type to void.
426 * gdbtypes.c (copy_type_recursive): Replace the use of
427 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
428 (fixed_point_scaling_factor): Likewise.
429 (allocate_fixed_point_type_info): Change return type to void.
430 Adjust implementation accordingly.
431 * dwarf2/read.c (finish_fixed_point_type): Replace the use of
432 TYPE_FIXED_POINT_INFO by a call to the fixed_point_info method.
433
c9f0b43f
JB
4342020-11-24 Joel Brobecker <brobecker@adacore.com>
435
436 * gmp-utils.h (gdb_mpz::read): Change buf and len parameters
437 into one single gdb::array_view parameter.
438 (gdb_mpz::write): Likewise.
439 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
440 * gmp-utils.c (gdb_mpz::read): Change buf and len parameters
441 into one single gdb::array_view parameter.
442 Adjust implementation accordingly.
443 (gdb_mpz::write): Likewise.
444 (gdb_mpq::read_fixed_point, gdb_mpq::write_fixed_point): Likewise.
445 * unittests/gmp-utils-selftests.c: Adapt following changes above.
446 * valarith.c, valops.c, valprint.c, value.c: Likewise.
447
987b6703
JB
4482020-11-24 Joel Brobecker <brobecker@adacore.com>
449
450 * gmp-utils.h (gmp_string_printf): Rename from gmp_string_asprintf.
451 Change return type to std::string. Update all callers.
452 * gmp-utils.c (gmp_string_printf): Likewise.
453
4fbb7cce
JB
4542020-11-24 Joel Brobecker <brobecker@adacore.com>
455
456 * unittests/gmp-utils-selftests.c (write_fp_test): Use mpq_set_si
457 instead of mpq_set_ui to initialize our GMP rational.
458
d6ab69dd
TV
4592020-11-23 Tom de Vries <tdevries@suse.de>
460
461 * debuginfod-support.c (debuginfod_source_query)
462 (debuginfod_debuginfo_query): Only set DESTNAME if successful.
463
dab72643
TT
4642020-11-21 Tom Tromey <tom@tromey.com>
465
466 * breakpoint.c (watchpoint_exp_is_const): Return bool.
467
c0ad05d5
SM
4682020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
469
470 * unittests/gmp-utils-selftests.c (gdb_mpz_read_all_from_small):
471 Pass 2.0 to pow.
472 (gdb_mpz_write_all_from_small): Likewise.
473
a43b29c9
SM
4742020-11-20 Simon Marchi <simon.marchi@polymtl.ca>
475
476 * dwarf2/read.c (finish_fixed_point_type): Use std::abs instead
477 of abs.
478
ae41200b
NA
4792020-11-20 Nick Alcock <nick.alcock@oracle.com>
480
481 * ctfread.c (elfctf_build_psymtabs): Use ctf_dict_open, not
482 ctf_arc_open_by_name.
483
139633c3
NA
4842020-11-20 Nick Alcock <nick.alcock@oracle.com>
485
486 * ctfread.c: Change uses of ctf_file_t to ctf_dict_t.
487 (ctf_fp_info::~ctf_fp_info): Call ctf_dict_close, not ctf_file_close.
488
cbbcd7a7
PA
4892020-11-20 Pedro Alves <pedro@palves.net>
490
491 * language.c (language_arch_info::lookup_primitive_type): Use
492 gdb::function_view instead of gdb::function.
493 (template language_lookup_primitive_type): Rename to ...
494 (language_lookup_primitive_type_1): ... this, and make static.
495 (language_lookup_primitive_type(const struct language_defn *,
496 struct gdbarch *, const char *): Make non-template.
497 (language_lookup_primitive_type(const struct language_defn *,
498 struct gdbarch *, std::function<bool (struct type *)>): Make
499 non-template and use gdb::function_view.
500 * language.h (language_arch_info::lookup_primitive_type): Use
501 gdb::function_view instead of std::function.
502 (language_lookup_primitive_type): No longer template.
503 * opencl-lang.c (lookup_opencl_vector_type): 'filter' is now a
504 lambda instead of a std::function.
505
d5ef21c3
AA
5062020-11-19 Andreas Arnez <arnez@linux.ibm.com>
507
508 PR tdep/26916
509 * s390-tdep.c (s390_process_record): Fix recording of STOC, STOCG,
510 and STOCFH.
511
a5adb8f3
SM
5122020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
513
514 * f-lang.c (fortran_value_subarray): Use plongest/pulongest.
515
70125a45
SM
5162020-11-19 Simon Marchi <simon.marchi@polymtl.ca>
517
518 * gdbarch.sh (read_core_file_mappings): Remove `other` parameter
519 in `loop_cb` parameter.
520 * gdbarch.c: Re-generate.
521 * gdbarch.h: Re-generate.
522 * arch-utils.c (default_read_core_file_mappings): Remove `other`
523 parameter.
524 * arch-utils.h (default_read_core_file_mappings): Likewise.
525 * corelow.c (core_target::build_file_mappings): Likewise.
526 * linux-tdep.c (linux_read_core_file_mappings): Likewise.
527 (linux_core_info_proc_mappings): Likewise.
528
a5c641b5
AB
5292020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
530
531 * Makefile.in (HFILES_NO_SRCDIR): Add f-array-walker.h.
532 * NEWS: Mention new options.
533 * f-array-walker.h: New file.
534 * f-lang.c: Include 'gdbcmd.h' and 'f-array-walker.h'.
535 (repack_array_slices): New static global.
536 (show_repack_array_slices): New function.
537 (fortran_array_slicing_debug): New static global.
538 (show_fortran_array_slicing_debug): New function.
539 (value_f90_subarray): Delete.
540 (skip_undetermined_arglist): Delete.
541 (class fortran_array_repacker_base_impl): New class.
542 (class fortran_lazy_array_repacker_impl): New class.
543 (class fortran_array_repacker_impl): New class.
544 (fortran_value_subarray): Complete rewrite.
545 (set_fortran_list): New static global.
546 (show_fortran_list): Likewise.
547 (_initialize_f_language): Register new commands.
548 (fortran_adjust_dynamic_array_base_address_hack): New function.
549 * f-lang.h (fortran_adjust_dynamic_array_base_address_hack):
550 Declare.
551 * f-valprint.c: Include 'f-array-walker.h'.
552 (class fortran_array_printer_impl): New class.
553 (f77_print_array_1): Delete.
554 (f77_print_array): Delete.
555 (fortran_print_array): New.
556 (f_value_print_inner): Update to call fortran_print_array.
557 * gdbtypes.c: Include 'f-lang.h'.
558 (resolve_dynamic_type_internal): Call
559 fortran_adjust_dynamic_array_base_address_hack.
560
a15a5258
AB
5612020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
562
563 * breakpoint.c (struct watch_options): New struct.
564 (watch_option_defs): New static global.
565 (make_watch_options_def_group): New function.
566 (watch_maybe_just_location): Convert option parsing.
567 (watch_command_completer): New function.
568 (_initialize_breakpoint): Build help text using options mechanism.
569
2e362716
AB
5702020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
571
572 * breakpoint.c (update_watchpoint): Pass 'false' not '0'.
573 (watch_command_1): Update parameter types. Convert locals to
574 bool.
575 (watch_command_wrapper): Change parameter type.
576 (watch_maybe_just_location): Change locals to bool.
577 (rwatch_command_wrapper): Update parameter type.
578 (awatch_command_wrapper): Update parameter type.
579 * breakpoint.h (watch_command_wrapper): Change parameter type.
580 (rwatch_command_wrapper): Update parameter type.
581 (awatch_command_wrapper): Update parameter type.
582 * eval.c (fetch_subexp_value): Change parameter type.
583 * ppc-linux-nat.c (ppc_linux_nat_target::check_condition): Pass
584 'false' not '0'.
585 * value.h (fetch_subexp_value): Change parameter type in
586 declaration.
587
b3ff61f8
AB
5882020-11-19 Andrew Burgess <andrew.burgess@embecosm.com>
589
590 * printcmd.c (skip_over_slash_fmt): Make use of skip_to_space and
591 skip_spaces.
592
5b7d45d3
KS
5932020-11-18 Keith Seitz <keiths@redhat.com>
594
595 * linux-tdep.c (dump_note_entry_p): Return true instead of
596 checking `filename'.
597
c44191f8
TV
5982020-11-18 Tom de Vries <tdevries@suse.de>
599
600 * debuginfod-support.c (debuginfod_source_query)
601 (debuginfod_debuginfo_query): Also do early exit if
602 "(getenv (DEBUGINFOD_URLS_ENV_VAR))[0] == '\0'".
603
5d8254e1
TV
6042020-11-18 Tom de Vries <tdevries@suse.de>
605
606 * gdbtypes.c (update_static_array_size): Fix -Werror=bool-compare
607 warning.
608
584903d3
SM
6092020-11-17 Simon Marchi <simon.marchi@polymtl.ca>
610
611 * gdbtypes.h (get_array_bounds): Return bool, adjust some
612 callers. Move doc here.
613 * gdbtypes.c (get_array_bounds): Return bool
614
6f2643db
AB
6152020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
616
617 * arc-linux-tdep.c (arc_linux_sw_breakpoint_from_kind): Add an
618 assert.
619 * arc-tdep.c (arc_breakpoint_kind_from_pc): Likewise.
620 * disasm-selftests.c (print_one_insn_test): Fall throough from ARC
621 case to the default.
622
037d7135
AB
6232020-11-17 Andrew Burgess <andrew.burgess@embecosm.com>
624
625 * printcmd.c: Include 'safe-ctype.c'.
626 (skip_over_slash_fmt): New function.
627 (print_command_completer): Call skip_over_slash_fmt.
628 (display_and_x_command_completer): New function.
629 (_initialize_printcmd): Add command completion for 'x' and
630 'display'.
631
2b3cb400
PA
6322020-11-16 Pedro Alves <pedro@palves.net>
633
634 * frame.c (get_prev_frame): Move get_frame_id call from here ...
635 (get_prev_frame_always_1): ... to here.
636 * inline-frame.c (inline_frame_this_id): Mention
637 get_prev_frame_always_1 in comment.
638
b74dbc20
JB
6392020-11-15 Joel Brobecker <brobecker@adacore.com>
640
641 * valarith.c (fixed_point_binop): Add BINOP_EQUAL and BINOP_LESS
642 handling.
643 (value_less): Add fixed-point handling.
644
0a12719e
JB
6452020-11-15 Joel Brobecker <brobecker@adacore.com>
646
647 * eval.c (binop_promote): Add fixed-point type handling.
648 * valarith.c (fixed_point_binop): New function.
649 (scalar_binop): Add fixed-point type handling.
650 (value_neg): Add fixed-point type handling.
651 * valops.c (value_cast_to_fixed_point): New function.
652 (value_cast): Add fixed-point type handling.
653
0c9150e4
JB
6542020-11-15 Joel Brobecker <brobecker@adacore.com>
655
656 * ada-typeprint.c (ada_print_type): Add handing of fixed-point
657 range types.
658 * c-typeprint.c (c_type_print_varspec_prefix)
659 (c_type_print_varspec_suffix, c_type_print_base_1): Add
660 TYPE_CODE_FIXED_POINT handling.
661 * p-typeprint.c (pascal_type_print_varspec_prefix)
662 (pascal_type_print_varspec_suffix): Likewise.
663 * typeprint.c (print_type_fixed_point): New function.
664 * typeprint.h (print_type_fixed_point): Add declaration.
665
b26daff9
JB
6662020-11-15 Joel Brobecker <brobecker@adacore.com>
667
668 * printcmd.c (print_scalar_formatted): Add fixed-point type
669 handling when options->format is set.
670
09584414
JB
6712020-11-15 Joel Brobecker <brobecker@adacore.com>
672
673 * ada-valprint.c (ada_value_print_1): Add fixed-point type handling.
674 * dwarf2/read.c (get_dwarf2_rational_constant)
675 (get_dwarf2_unsigned_rational_constant, finish_fixed_point_type)
676 (has_zero_over_zero_small_attribute): New functions.
677 read_base_type, set_die_type): Add fixed-point type handling.
678 * gdb-gdb.py.in: Add fixed-point type handling.
679 * gdbtypes.c: #include "gmp-utils.h".
680 (create_range_type, set_type_code): Add fixed-point type handling.
681 (init_fixed_point_type): New function.
682 (is_integral_type, is_scalar_type): Add fixed-point type handling.
683 (print_fixed_point_type_info): New function.
684 (recursive_dump_type, copy_type_recursive): Add fixed-point type
685 handling.
686 (fixed_point_type_storage): New typedef.
687 (fixed_point_objfile_key): New static global.
688 (allocate_fixed_point_type_info, is_fixed_point_type): New functions.
689 (fixed_point_type_base_type, fixed_point_scaling_factor): New
690 functions.
691 * gdbtypes.h: #include "gmp-utils.h".
692 (enum type_code) <TYPE_SPECIFIC_FIXED_POINT>: New enum.
693 (union type_specific) <fixed_point_info>: New field.
694 (struct fixed_point_type_info): New struct.
695 (INIT_FIXED_POINT_SPECIFIC, TYPE_FIXED_POINT_INFO): New macros.
696 (init_fixed_point_type, is_fixed_point_type)
697 (fixed_point_type_base_type, fixed_point_scaling_factor)
698 (allocate_fixed_point_type_info): Add declarations.
699 * valprint.c (generic_val_print_fixed_point): New function.
700 (generic_value_print): Add fixed-point type handling.
701 * value.c (value_as_address, unpack_long): Add fixed-point type
702 handling.
703
e55c6530
JB
7042020-11-15 Joel Brobecker <brobecker@adacore.com>
705
706 * utils.h (uinteger_pow): Add declaration.
707 * utils.c (uinteger_pow): Moved here (without changes)...
708 * valarith.c (uinteger_pow): ... from here.
709
b34c74ab
JB
7102020-11-15 Joel Brobecker <brobecker@adacore.com>
711
40d9d2fd 712 * gmp-utils.h, gmp-utils.c: New file.
b34c74ab
JB
713 * unittests/gmp-utils-selftests.c: New file.
714 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
715 unittests/gmp-utils-selftests.c.
716 (COMMON_SFILES) Add gmp-utils.c.
717 (HFILES_NO_SRCDIR): Add gmp-utils.h.
718
1b4ac058
JB
7192020-11-15 Joel Brobecker <brobecker@adacore.com>
720
721 * configure.ac: Generate an error if a usable GMP library
722 could not be found.
723 * configure: Regenerate.
724
2c947d9b
JB
7252020-11-15 Joel Brobecker <brobecker@adacore.com>
726
727 * configure.ac: Add support for --with-libgmp-prefix.
728 * Makefile.in (LIBGMP): New variable.
729 (CLIBS): Include $(LIBGMP).
730 * configure, config.in: Regenerate
731
9dd02fc0
AB
7322020-11-14 Andrew Burgess <andrew.burgess@embecosm.com>
733
734 PR cli/26879
735 * f-exp.y (COMPLETE): New token.
736 (exp): Two new rules for tab-completion.
737 (saw_name_at_eof): New static global.
738 (last_was_structop): Likewise.
739 (yylex): Set new variables, and return COMPLETE token at the end
740 of the input stream in some cases.
741
758cb810
TT
7422020-11-14 Tom Tromey <tom@tromey.com>
743
744 * infrun.c (fetch_inferior_event): Use "bool" for should_stop.
745
749065b7
TT
7462020-11-14 Tom Tromey <tom@tromey.com>
747
748 * opencl-lang.c (opencl_component_ref): Make "comps" const.
749
2c5b1849
SM
7502020-11-14 Simon Marchi <simon.marchi@polymtl.ca>
751
752 * arm-tdep.c (class arm_instruction_reader) <read>: Fix comment.
753
e8b2f0d9
TT
7542020-11-13 Tom Tromey <tom@tromey.com>
755
756 * c-lang.c (convert_ucn, convert_octal, convert_hex)
757 (convert_escape, parse_one_string): Constify.
758
25f4c262
KS
7592020-11-13 Keith Seitz <keiths@redhat.com>
760
761 https://bugzilla.redhat.com/show_bug.cgi?id=1553086
762 * elfread.c (elf_symfile_segments): Omit "Loadable section ...
763 outside of ELF segments" warning for debugin
764
9d3ab915
KS
7652020-11-13 Keith Seitz <keiths@redhat.com>
766
767 PR gdb/23034
768 * elfread.c (elf_symfile_segments): Output a BFD file name
769 for the "Loadable section ... outside of ELF segments" warning.
770
9ecab40c
SM
7712020-11-13 Simon Marchi <simon.marchi@polymtl.ca>
772
773 PR gdb/26835
774 * arm-tdep.c (class arm_instruction_reader): New.
775 (target_arm_instruction_reader): New.
776 (arm_analyze_prologue): Add instruction reader parameter and use
777 it. Use arm_expand_immediate.
778 (class target_arm_instruction_reader): Adjust.
779 (arm_skip_prologue): Adjust.
780 (arm_expand_immediate): New.
781 (arm_scan_prologue): Adjust.
782 (arm_analyze_prologue_test): New.
783 (class test_arm_instruction_reader): New.
784
5a7cf527
AB
7852020-11-13 Andrew Burgess <andrew.burgess@embecosm.com>
786
787 * f-lang.c (fortran_argument_convert): Add declaration. Add
788 header comment, taken from f-lang.h. Make static.
789 * f-lang.h (f77_get_dynamic_array_length): Delete declaration.
790 (fortran_argument_convert): Delete declaration.
791
7bea47f0
AB
7922020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
793
794 * ada-exp.y (find_primitive_type): Make parameter const.
795 * ada-lang.c (enum ada_primitive_types): Delete.
796 (ada_language::language_arch_info): Update.
797 * c-lang.c (enum c_primitive_types): Delete.
798 (c_language_arch_info): Update.
799 (enum cplus_primitive_types): Delete.
800 (cplus_language::language_arch_info): Update.
801 * d-lang.c (enum d_primitive_types): Delete.
802 (d_language::language_arch_info): Update.
803 * f-lang.c (enum f_primitive_types): Delete.
804 (f_language::language_arch_info): Update.
805 * go-lang.c (enum go_primitive_types): Delete.
806 (go_language::language_arch_info): Update.
807 * language.c (auto_or_unknown_language::language_arch_info):
808 Update.
809 (language_gdbarch_post_init): Use obstack_new, use array indexing.
810 (language_string_char_type): Add header comment, call function in
811 language_arch_info.
812 (language_bool_type): Likewise
813 (language_arch_info::bool_type): Define.
814 (language_lookup_primitive_type_1): Delete.
815 (language_lookup_primitive_type): Rewrite as a templated function
816 to call function in language_arch_info, then instantiate twice.
817 (language_arch_info::type_and_symbol::alloc_type_symbol): Define.
818 (language_arch_info::lookup_primitive_type_and_symbol): Define.
819 (language_arch_info::lookup_primitive_type): Define twice with
820 different signatures.
821 (language_arch_info::lookup_primitive_type_as_symbol): Define.
822 (language_lookup_primitive_type_as_symbol): Rewrite to call a
823 member function in language_arch_info.
824 * language.h (language_arch_info): Complete rewrite.
825 (language_lookup_primitive_type): Make templated.
826 * m2-lang.c (enum m2_primitive_types): Delete.
827 (m2_language::language_arch_info): Update.
828 * opencl-lang.c (OCL_P_TYPE): Delete.
829 (enum opencl_primitive_types): Delete.
830 (opencl_type_data): Delete.
831 (builtin_opencl_type): Delete.
832 (lookup_opencl_vector_type): Update.
833 (opencl_language::language_arch_info): Update, lots of content
834 moved from...
835 (build_opencl_types): ...here. This function is now deleted.
836 (_initialize_opencl_language): Delete.
837 * p-lang.c (enum pascal_primitive_types): Delete.
838 (pascal_language::language_arch_info): Update.
839 * rust-lang.c (enum rust_primitive_types): Delete.
840 (rust_language::language_arch_info): Update.
841
bf6e5d01
SM
8422020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
843
844 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix call to
845 dwarf2_queue_guard.
846
1350c3b4
SM
8472020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
848
849 * dwarf2/read.c (dw2_do_instantiate_symtab): Fix typo in
850 comment.
851
6f738b01
SM
8522020-11-12 Simon Marchi <simon.marchi@polymtl.ca>
853
854 * dwarf2/read.c (dwarf_read_debug_printf,
855 dwarf_read_debug_printf_v): New macros, use throughout the file.
856
10c19fad
SV
8572020-11-12 Shahab Vahedi <shahab@synopsys.com>
858
10806efd 859 PR tdep/27015
10c19fad
SV
860 * arc-linux-tdep.c (collect_register): Populate "eret" by
861 "pc" value from the regcache when asked for "pc" value.
862
1f2624a3
TT
8632020-11-12 Tom Tromey <tom@tromey.com>
864
865 PR rust/26799:
866 * symtab.c (find_symbol_at_address): Search symtabs if no psymtabs
867 exist.
868
ab33b152
AB
8692020-11-12 Andrew Burgess <andrew.burgess@embecosm.com>
870
871 * features/Makefile (XMLTOC): Add rx.xml.
872 (FEATURE_XMLFILES): Remove rx.xml.
873 (FEATURE_CFILES rule): Pass '-single-feature' flag.
874 * features/rx.c: Regenerate.
875 * features/rx.xml: Wrap in `target` tags, and reindent.
876 * target-descriptions.c (struct maint_print_c_tdesc_options): New
877 structure.
878 (maint_print_c_tdesc_opt_def): New typedef.
879 (maint_print_c_tdesc_opt_defs): New static global.
880 (make_maint_print_c_tdesc_options_def_group): New function.
881 (maint_print_c_tdesc_cmd): Make use of command line flags, only
882 print single feature C file for target descriptions containing a
883 single feature.
884 (maint_print_c_tdesc_cmd_completer): New function.
885 (_initialize_target_descriptions): Update call to register command
886 completer, and include command line flag in help text.
887
550820e1
AB
8882020-11-11 Andrew Burgess <andrew.burgess@embecosm.com>
889
890 * riscv-tdep.c (riscv_dwarf_reg_to_regnum): Decode DWARF CSR
891 numbers.
892 * riscv-tdep.h (RISCV_DWARF_FIRST_CSR, RISCV_DWARF_LAST_CSR): New
893 enum values.
894
baf20f76
TT
8952020-11-10 Tom Tromey <tom@tromey.com>
896
897 * value.h (internalvar_name): Update.
898 * value.c (internalvar_name): Make return type const.
899
caaece0e
TT
9002020-11-10 Tom Tromey <tom@tromey.com>
901
902 * ax-gdb.c (gen_struct_elt_for_reference, gen_namespace_elt)
903 (gen_maybe_namespace_elt, gen_aggregate_elt_ref, gen_expr): Use
904 const.
905
8e20b4be
TT
9062020-11-10 Tom Tromey <tom@tromey.com>
907
908 * objc-lang.h (value_nsstring): Update.
909 * objc-lang.c (value_nsstring): Make "ptr" const.
910
86775fab
AB
9112020-11-06 Andrew Burgess <andrew.burgess@embecosm.com>
912
913 * expprint.c (print_subexp_funcall): Increment expression position
914 after reading argument count.
915 * f-lang.c (print_subexp_f): Skip over opcode before calling
916 common function.
917 (dump_subexp_body_f): Likewise.
918
3fed4c0b
RG
9192020-11-06 Romain Geissler <romain.geissler@amadeus.com>
920
921 PR python/26832
922 * configure: Regenerate.
923 * configure.ac: Check for python modules ctypes instead of
924 itertools.
925
ac3d4064
PA
9262020-11-06 Pedro Alves <pedro@palves.net>
927
928 * macroexp.c (struct macro_buffer): Split in two classes. Add
929 uses adjusted.
930 (struct shared_macro_buffer): New, factored out from struct
931 macro_buffer.
932 (struct growable_macro_buffer): New, factored out from struct
933 macro_buffer.
934 (set_token, get_comment, get_identifier, get_pp_number)
935 (get_character_constant, get_string_literal, get_punctuator)
936 (get_next_token_for_substitution): Constify parameters.
937 (substitute_args): Constify locals.
938
606decb2
TT
9392020-11-05 Tom Tromey <tom@tromey.com>
940
941 * dwarf2/read.c (read_cutu_die_from_dwo)
942 (cutu_reader::cutu_reader, cutu_reader::cutu_reader)
943 (build_type_psymtabs_1): Update.
944 * dwarf2/abbrev.h (struct abbrev_table): Remove objfile
945 parameter.
946 * dwarf2/abbrev.c (abbrev_table::read): Remove objfile parameter.
947 Don't read section. Add assert.
948
9c91c725
TT
9492020-11-04 Tom Tromey <tromey@adacore.com>
950
951 * ada-typeprint.c (ada_print_type): Handle __XVL fields.
952
8d9fd3a1
TT
9532020-11-04 Tom Tromey <tromey@adacore.com>
954
955 * ada-typeprint.c (ada_print_type): Handle __T types.
956
d8f62e84
TT
9572020-11-04 Tom Tromey <tromey@adacore.com>
958
959 * dwarf2/read.c (add_partial_symbol, process_die):
960 Handle DW_TAG_array_type.
961 (is_type_tag_for_partial): Add "lang" parameter.
962 (load_partial_dies, new_symbol): Handle DW_TAG_array_type.
963
7ff5b937
TT
9642020-11-04 Tom Tromey <tromey@adacore.com>
965
966 * ada-lang.c (ada_value_slice_from_ptr): Use bit size.
967
10f6a3ad
TT
9682020-11-04 Tom Tromey <tromey@adacore.com>
969
970 * dwarf2/read.c (read_array_type): Only apply stride to innermost
971 array.
972
b72795a8
TT
9732020-11-04 Tom Tromey <tromey@adacore.com>
974
975 * gdbtypes.c (update_static_array_size): Handle bit stride.
976
24aa1b02
TT
9772020-11-04 Tom Tromey <tromey@adacore.com>
978
979 * ada-lang.c (ada_value_struct_elt): Resolve dynamic type.
980
c9a28cbe
TT
9812020-11-04 Tom Tromey <tromey@adacore.com>
982
983 * ada-lang.c (ada_is_any_packed_array_type): New function.
984 (ada_evaluate_subexp) <case TERNOP_SLICE>: Use it.
985
57567375
TT
9862020-11-04 Tom Tromey <tromey@adacore.com>
987
988 * dwarf2/read.c (recognize_bound_expression)
989 (quirk_ada_thick_pointer): New functions.
990 (read_array_type): Call quirk_ada_thick_pointer.
991 (set_die_type): Add "skip_data_location" parameter.
992 (quirk_ada_thick_pointer): New function.
993 (process_structure_scope): Call quirk_ada_thick_pointer.
994 * ada-lang.c (ada_is_unconstrained_packed_array_type)
995 (decode_packed_array_bitsize): Handle thick pointers without
996 parallel types.
997 (ada_is_gnat_encoded_packed_array_type): Rename from
998 ada_is_packed_array_type.
999 (ada_is_constrained_packed_array_type): Update.
1000 * ada-valprint.c (ada_val_print_gnat_array): Remove.
1001 (ada_value_print_1): Use ada_get_decoded_value.
1002
a7400e44
TT
10032020-11-04 Tom Tromey <tromey@adacore.com>
1004
1005 * ada-lang.c (recursively_update_array_bitsize): New function.
1006 (decode_constrained_packed_array_type): Call it.
1007
75fd6a26
TT
10082020-11-04 Tom Tromey <tromey@adacore.com>
1009
1010 * ada-lang.c (to_fixed_array_type): Error if
1011 decode_constrained_packed_array_type returns NULL.
1012
93f9561e
TT
10132020-11-04 Tom Tromey <tromey@adacore.com>
1014
1015 * dwarf2/leb.h (read_3_bytes): Use bfd_get_24.
1016
257e02d8
TT
10172020-11-02 Tom Tromey <tromey@adacore.com>
1018
1019 * Makefile.in (ALL_64_TARGET_OBS): Add amd64-ravenscar-thread.o.
1020 (ALLDEPFILES): Add amd64-ravenscar-thread.c.
1021 (HFILES_NO_SRCDIR): Add amd64-ravenscar-thread.h.
1022 * amd64-ravenscar-thread.c: New file.
1023 * amd64-ravenscar-thread.h: New file.
1024 * amd64-tdep.c (amd64_init_abi): Register ravenscar ops.
1025 * configure.tgt (amd64_tobjs): Add ravenscar objects.
1026
74d877e5
AB
10272020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1028
1029 * main.c (execute_cmdargs): New function.
1030 (captured_main_1): Make use of execute_cmdargs.
1031
64aaad63
AB
10322020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1033
1034 * NEWS: Mention changes to config file search path.
1035 * main.c
1036
5b3d3560
TT
10372020-11-02 Tom Tromey <tromey@adacore.com>
1038
1039 * python/python.c: Consolidate two HAVE_PYTHON blocks.
1040 (python_GdbModuleDef): Move earlier. Now static.
1041 (do_start_initialization): Consolidate some IS_PY3K blocks.
1042
dda83cd7
SM
10432020-11-02 Simon Marchi <simon.marchi@efficios.com>
1044
1045 * aarch64-linux-tdep.c: Fix indentation.
1046 * aarch64-ravenscar-thread.c: Fix indentation.
1047 * aarch64-tdep.c: Fix indentation.
1048 * aarch64-tdep.h: Fix indentation.
1049 * ada-lang.c: Fix indentation.
1050 * ada-lang.h: Fix indentation.
1051 * ada-tasks.c: Fix indentation.
1052 * ada-typeprint.c: Fix indentation.
1053 * ada-valprint.c: Fix indentation.
1054 * ada-varobj.c: Fix indentation.
1055 * addrmap.c: Fix indentation.
1056 * addrmap.h: Fix indentation.
1057 * agent.c: Fix indentation.
1058 * aix-thread.c: Fix indentation.
1059 * alpha-bsd-nat.c: Fix indentation.
1060 * alpha-linux-tdep.c: Fix indentation.
1061 * alpha-mdebug-tdep.c: Fix indentation.
1062 * alpha-nbsd-tdep.c: Fix indentation.
1063 * alpha-obsd-tdep.c: Fix indentation.
1064 * alpha-tdep.c: Fix indentation.
1065 * amd64-bsd-nat.c: Fix indentation.
1066 * amd64-darwin-tdep.c: Fix indentation.
1067 * amd64-linux-nat.c: Fix indentation.
1068 * amd64-linux-tdep.c: Fix indentation.
1069 * amd64-nat.c: Fix indentation.
1070 * amd64-obsd-tdep.c: Fix indentation.
1071 * amd64-tdep.c: Fix indentation.
1072 * amd64-windows-tdep.c: Fix indentation.
1073 * annotate.c: Fix indentation.
1074 * arc-tdep.c: Fix indentation.
1075 * arch-utils.c: Fix indentation.
1076 * arch/arm-get-next-pcs.c: Fix indentation.
1077 * arch/arm.c: Fix indentation.
1078 * arm-linux-nat.c: Fix indentation.
1079 * arm-linux-tdep.c: Fix indentation.
1080 * arm-nbsd-tdep.c: Fix indentation.
1081 * arm-pikeos-tdep.c: Fix indentation.
1082 * arm-tdep.c: Fix indentation.
1083 * arm-tdep.h: Fix indentation.
1084 * arm-wince-tdep.c: Fix indentation.
1085 * auto-load.c: Fix indentation.
1086 * auxv.c: Fix indentation.
1087 * avr-tdep.c: Fix indentation.
1088 * ax-gdb.c: Fix indentation.
1089 * ax-general.c: Fix indentation.
1090 * bfin-linux-tdep.c: Fix indentation.
1091 * block.c: Fix indentation.
1092 * block.h: Fix indentation.
1093 * blockframe.c: Fix indentation.
1094 * bpf-tdep.c: Fix indentation.
1095 * break-catch-sig.c: Fix indentation.
1096 * break-catch-syscall.c: Fix indentation.
1097 * break-catch-throw.c: Fix indentation.
1098 * breakpoint.c: Fix indentation.
1099 * breakpoint.h: Fix indentation.
1100 * bsd-uthread.c: Fix indentation.
1101 * btrace.c: Fix indentation.
1102 * build-id.c: Fix indentation.
1103 * buildsym-legacy.h: Fix indentation.
1104 * buildsym.c: Fix indentation.
1105 * c-typeprint.c: Fix indentation.
1106 * c-valprint.c: Fix indentation.
1107 * c-varobj.c: Fix indentation.
1108 * charset.c: Fix indentation.
1109 * cli/cli-cmds.c: Fix indentation.
1110 * cli/cli-decode.c: Fix indentation.
1111 * cli/cli-decode.h: Fix indentation.
1112 * cli/cli-script.c: Fix indentation.
1113 * cli/cli-setshow.c: Fix indentation.
1114 * coff-pe-read.c: Fix indentation.
1115 * coffread.c: Fix indentation.
1116 * compile/compile-cplus-types.c: Fix indentation.
1117 * compile/compile-object-load.c: Fix indentation.
1118 * compile/compile-object-run.c: Fix indentation.
1119 * completer.c: Fix indentation.
1120 * corefile.c: Fix indentation.
1121 * corelow.c: Fix indentation.
1122 * cp-abi.h: Fix indentation.
1123 * cp-namespace.c: Fix indentation.
1124 * cp-support.c: Fix indentation.
1125 * cp-valprint.c: Fix indentation.
1126 * cris-linux-tdep.c: Fix indentation.
1127 * cris-tdep.c: Fix indentation.
1128 * darwin-nat-info.c: Fix indentation.
1129 * darwin-nat.c: Fix indentation.
1130 * darwin-nat.h: Fix indentation.
1131 * dbxread.c: Fix indentation.
1132 * dcache.c: Fix indentation.
1133 * disasm.c: Fix indentation.
1134 * dtrace-probe.c: Fix indentation.
1135 * dwarf2/abbrev.c: Fix indentation.
1136 * dwarf2/attribute.c: Fix indentation.
1137 * dwarf2/expr.c: Fix indentation.
1138 * dwarf2/frame.c: Fix indentation.
1139 * dwarf2/index-cache.c: Fix indentation.
1140 * dwarf2/index-write.c: Fix indentation.
1141 * dwarf2/line-header.c: Fix indentation.
1142 * dwarf2/loc.c: Fix indentation.
1143 * dwarf2/macro.c: Fix indentation.
1144 * dwarf2/read.c: Fix indentation.
1145 * dwarf2/read.h: Fix indentation.
1146 * elfread.c: Fix indentation.
1147 * eval.c: Fix indentation.
1148 * event-top.c: Fix indentation.
1149 * exec.c: Fix indentation.
1150 * exec.h: Fix indentation.
1151 * expprint.c: Fix indentation.
1152 * f-lang.c: Fix indentation.
1153 * f-typeprint.c: Fix indentation.
1154 * f-valprint.c: Fix indentation.
1155 * fbsd-nat.c: Fix indentation.
1156 * fbsd-tdep.c: Fix indentation.
1157 * findvar.c: Fix indentation.
1158 * fork-child.c: Fix indentation.
1159 * frame-unwind.c: Fix indentation.
1160 * frame-unwind.h: Fix indentation.
1161 * frame.c: Fix indentation.
1162 * frv-linux-tdep.c: Fix indentation.
1163 * frv-tdep.c: Fix indentation.
1164 * frv-tdep.h: Fix indentation.
1165 * ft32-tdep.c: Fix indentation.
1166 * gcore.c: Fix indentation.
1167 * gdb_bfd.c: Fix indentation.
1168 * gdbarch.sh: Fix indentation.
1169 * gdbarch.c: Re-generate
1170 * gdbarch.h: Re-generate.
1171 * gdbcore.h: Fix indentation.
1172 * gdbthread.h: Fix indentation.
1173 * gdbtypes.c: Fix indentation.
1174 * gdbtypes.h: Fix indentation.
1175 * glibc-tdep.c: Fix indentation.
1176 * gnu-nat.c: Fix indentation.
1177 * gnu-nat.h: Fix indentation.
1178 * gnu-v2-abi.c: Fix indentation.
1179 * gnu-v3-abi.c: Fix indentation.
1180 * go32-nat.c: Fix indentation.
1181 * guile/guile-internal.h: Fix indentation.
1182 * guile/scm-cmd.c: Fix indentation.
1183 * guile/scm-frame.c: Fix indentation.
1184 * guile/scm-iterator.c: Fix indentation.
1185 * guile/scm-math.c: Fix indentation.
1186 * guile/scm-ports.c: Fix indentation.
1187 * guile/scm-pretty-print.c: Fix indentation.
1188 * guile/scm-value.c: Fix indentation.
1189 * h8300-tdep.c: Fix indentation.
1190 * hppa-linux-nat.c: Fix indentation.
1191 * hppa-linux-tdep.c: Fix indentation.
1192 * hppa-nbsd-nat.c: Fix indentation.
1193 * hppa-nbsd-tdep.c: Fix indentation.
1194 * hppa-obsd-nat.c: Fix indentation.
1195 * hppa-tdep.c: Fix indentation.
1196 * hppa-tdep.h: Fix indentation.
1197 * i386-bsd-nat.c: Fix indentation.
1198 * i386-darwin-nat.c: Fix indentation.
1199 * i386-darwin-tdep.c: Fix indentation.
1200 * i386-dicos-tdep.c: Fix indentation.
1201 * i386-gnu-nat.c: Fix indentation.
1202 * i386-linux-nat.c: Fix indentation.
1203 * i386-linux-tdep.c: Fix indentation.
1204 * i386-nto-tdep.c: Fix indentation.
1205 * i386-obsd-tdep.c: Fix indentation.
1206 * i386-sol2-nat.c: Fix indentation.
1207 * i386-tdep.c: Fix indentation.
1208 * i386-tdep.h: Fix indentation.
1209 * i386-windows-tdep.c: Fix indentation.
1210 * i387-tdep.c: Fix indentation.
1211 * i387-tdep.h: Fix indentation.
1212 * ia64-libunwind-tdep.c: Fix indentation.
1213 * ia64-libunwind-tdep.h: Fix indentation.
1214 * ia64-linux-nat.c: Fix indentation.
1215 * ia64-linux-tdep.c: Fix indentation.
1216 * ia64-tdep.c: Fix indentation.
1217 * ia64-tdep.h: Fix indentation.
1218 * ia64-vms-tdep.c: Fix indentation.
1219 * infcall.c: Fix indentation.
1220 * infcmd.c: Fix indentation.
1221 * inferior.c: Fix indentation.
1222 * infrun.c: Fix indentation.
1223 * iq2000-tdep.c: Fix indentation.
1224 * language.c: Fix indentation.
1225 * linespec.c: Fix indentation.
1226 * linux-fork.c: Fix indentation.
1227 * linux-nat.c: Fix indentation.
1228 * linux-tdep.c: Fix indentation.
1229 * linux-thread-db.c: Fix indentation.
1230 * lm32-tdep.c: Fix indentation.
1231 * m2-lang.c: Fix indentation.
1232 * m2-typeprint.c: Fix indentation.
1233 * m2-valprint.c: Fix indentation.
1234 * m32c-tdep.c: Fix indentation.
1235 * m32r-linux-tdep.c: Fix indentation.
1236 * m32r-tdep.c: Fix indentation.
1237 * m68hc11-tdep.c: Fix indentation.
1238 * m68k-bsd-nat.c: Fix indentation.
1239 * m68k-linux-nat.c: Fix indentation.
1240 * m68k-linux-tdep.c: Fix indentation.
1241 * m68k-tdep.c: Fix indentation.
1242 * machoread.c: Fix indentation.
1243 * macrocmd.c: Fix indentation.
1244 * macroexp.c: Fix indentation.
1245 * macroscope.c: Fix indentation.
1246 * macrotab.c: Fix indentation.
1247 * macrotab.h: Fix indentation.
1248 * main.c: Fix indentation.
1249 * mdebugread.c: Fix indentation.
1250 * mep-tdep.c: Fix indentation.
1251 * mi/mi-cmd-catch.c: Fix indentation.
1252 * mi/mi-cmd-disas.c: Fix indentation.
1253 * mi/mi-cmd-env.c: Fix indentation.
1254 * mi/mi-cmd-stack.c: Fix indentation.
1255 * mi/mi-cmd-var.c: Fix indentation.
1256 * mi/mi-cmds.c: Fix indentation.
1257 * mi/mi-main.c: Fix indentation.
1258 * mi/mi-parse.c: Fix indentation.
1259 * microblaze-tdep.c: Fix indentation.
1260 * minidebug.c: Fix indentation.
1261 * minsyms.c: Fix indentation.
1262 * mips-linux-nat.c: Fix indentation.
1263 * mips-linux-tdep.c: Fix indentation.
1264 * mips-nbsd-tdep.c: Fix indentation.
1265 * mips-tdep.c: Fix indentation.
1266 * mn10300-linux-tdep.c: Fix indentation.
1267 * mn10300-tdep.c: Fix indentation.
1268 * moxie-tdep.c: Fix indentation.
1269 * msp430-tdep.c: Fix indentation.
1270 * namespace.h: Fix indentation.
1271 * nat/fork-inferior.c: Fix indentation.
1272 * nat/gdb_ptrace.h: Fix indentation.
1273 * nat/linux-namespaces.c: Fix indentation.
1274 * nat/linux-osdata.c: Fix indentation.
1275 * nat/netbsd-nat.c: Fix indentation.
1276 * nat/x86-dregs.c: Fix indentation.
1277 * nbsd-nat.c: Fix indentation.
1278 * nbsd-tdep.c: Fix indentation.
1279 * nios2-linux-tdep.c: Fix indentation.
1280 * nios2-tdep.c: Fix indentation.
1281 * nto-procfs.c: Fix indentation.
1282 * nto-tdep.c: Fix indentation.
1283 * objfiles.c: Fix indentation.
1284 * objfiles.h: Fix indentation.
1285 * opencl-lang.c: Fix indentation.
1286 * or1k-tdep.c: Fix indentation.
1287 * osabi.c: Fix indentation.
1288 * osabi.h: Fix indentation.
1289 * osdata.c: Fix indentation.
1290 * p-lang.c: Fix indentation.
1291 * p-typeprint.c: Fix indentation.
1292 * p-valprint.c: Fix indentation.
1293 * parse.c: Fix indentation.
1294 * ppc-linux-nat.c: Fix indentation.
1295 * ppc-linux-tdep.c: Fix indentation.
1296 * ppc-nbsd-nat.c: Fix indentation.
1297 * ppc-nbsd-tdep.c: Fix indentation.
1298 * ppc-obsd-nat.c: Fix indentation.
1299 * ppc-ravenscar-thread.c: Fix indentation.
1300 * ppc-sysv-tdep.c: Fix indentation.
1301 * ppc64-tdep.c: Fix indentation.
1302 * printcmd.c: Fix indentation.
1303 * proc-api.c: Fix indentation.
1304 * producer.c: Fix indentation.
1305 * producer.h: Fix indentation.
1306 * prologue-value.c: Fix indentation.
1307 * prologue-value.h: Fix indentation.
1308 * psymtab.c: Fix indentation.
1309 * python/py-arch.c: Fix indentation.
1310 * python/py-bpevent.c: Fix indentation.
1311 * python/py-event.c: Fix indentation.
1312 * python/py-event.h: Fix indentation.
1313 * python/py-finishbreakpoint.c: Fix indentation.
1314 * python/py-frame.c: Fix indentation.
1315 * python/py-framefilter.c: Fix indentation.
1316 * python/py-inferior.c: Fix indentation.
1317 * python/py-infthread.c: Fix indentation.
1318 * python/py-objfile.c: Fix indentation.
1319 * python/py-prettyprint.c: Fix indentation.
1320 * python/py-registers.c: Fix indentation.
1321 * python/py-signalevent.c: Fix indentation.
1322 * python/py-stopevent.c: Fix indentation.
1323 * python/py-stopevent.h: Fix indentation.
1324 * python/py-threadevent.c: Fix indentation.
1325 * python/py-tui.c: Fix indentation.
1326 * python/py-unwind.c: Fix indentation.
1327 * python/py-value.c: Fix indentation.
1328 * python/py-xmethods.c: Fix indentation.
1329 * python/python-internal.h: Fix indentation.
1330 * python/python.c: Fix indentation.
1331 * ravenscar-thread.c: Fix indentation.
1332 * record-btrace.c: Fix indentation.
1333 * record-full.c: Fix indentation.
1334 * record.c: Fix indentation.
1335 * reggroups.c: Fix indentation.
1336 * regset.h: Fix indentation.
1337 * remote-fileio.c: Fix indentation.
1338 * remote.c: Fix indentation.
1339 * reverse.c: Fix indentation.
1340 * riscv-linux-tdep.c: Fix indentation.
1341 * riscv-ravenscar-thread.c: Fix indentation.
1342 * riscv-tdep.c: Fix indentation.
1343 * rl78-tdep.c: Fix indentation.
1344 * rs6000-aix-tdep.c: Fix indentation.
1345 * rs6000-lynx178-tdep.c: Fix indentation.
1346 * rs6000-nat.c: Fix indentation.
1347 * rs6000-tdep.c: Fix indentation.
1348 * rust-lang.c: Fix indentation.
1349 * rx-tdep.c: Fix indentation.
1350 * s12z-tdep.c: Fix indentation.
1351 * s390-linux-tdep.c: Fix indentation.
1352 * score-tdep.c: Fix indentation.
1353 * ser-base.c: Fix indentation.
1354 * ser-mingw.c: Fix indentation.
1355 * ser-uds.c: Fix indentation.
1356 * ser-unix.c: Fix indentation.
1357 * serial.c: Fix indentation.
1358 * sh-linux-tdep.c: Fix indentation.
1359 * sh-nbsd-tdep.c: Fix indentation.
1360 * sh-tdep.c: Fix indentation.
1361 * skip.c: Fix indentation.
1362 * sol-thread.c: Fix indentation.
1363 * solib-aix.c: Fix indentation.
1364 * solib-darwin.c: Fix indentation.
1365 * solib-frv.c: Fix indentation.
1366 * solib-svr4.c: Fix indentation.
1367 * solib.c: Fix indentation.
1368 * source.c: Fix indentation.
1369 * sparc-linux-tdep.c: Fix indentation.
1370 * sparc-nbsd-tdep.c: Fix indentation.
1371 * sparc-obsd-tdep.c: Fix indentation.
1372 * sparc-ravenscar-thread.c: Fix indentation.
1373 * sparc-tdep.c: Fix indentation.
1374 * sparc64-linux-tdep.c: Fix indentation.
1375 * sparc64-nbsd-tdep.c: Fix indentation.
1376 * sparc64-obsd-tdep.c: Fix indentation.
1377 * sparc64-tdep.c: Fix indentation.
1378 * stabsread.c: Fix indentation.
1379 * stack.c: Fix indentation.
1380 * stap-probe.c: Fix indentation.
1381 * stubs/ia64vms-stub.c: Fix indentation.
1382 * stubs/m32r-stub.c: Fix indentation.
1383 * stubs/m68k-stub.c: Fix indentation.
1384 * stubs/sh-stub.c: Fix indentation.
1385 * stubs/sparc-stub.c: Fix indentation.
1386 * symfile-mem.c: Fix indentation.
1387 * symfile.c: Fix indentation.
1388 * symfile.h: Fix indentation.
1389 * symmisc.c: Fix indentation.
1390 * symtab.c: Fix indentation.
1391 * symtab.h: Fix indentation.
1392 * target-float.c: Fix indentation.
1393 * target.c: Fix indentation.
1394 * target.h: Fix indentation.
1395 * tic6x-tdep.c: Fix indentation.
1396 * tilegx-linux-tdep.c: Fix indentation.
1397 * tilegx-tdep.c: Fix indentation.
1398 * top.c: Fix indentation.
1399 * tracefile-tfile.c: Fix indentation.
1400 * tracepoint.c: Fix indentation.
1401 * tui/tui-disasm.c: Fix indentation.
1402 * tui/tui-io.c: Fix indentation.
1403 * tui/tui-regs.c: Fix indentation.
1404 * tui/tui-stack.c: Fix indentation.
1405 * tui/tui-win.c: Fix indentation.
1406 * tui/tui-winsource.c: Fix indentation.
1407 * tui/tui.c: Fix indentation.
1408 * typeprint.c: Fix indentation.
1409 * ui-out.h: Fix indentation.
1410 * unittests/copy_bitwise-selftests.c: Fix indentation.
1411 * unittests/memory-map-selftests.c: Fix indentation.
1412 * utils.c: Fix indentation.
1413 * v850-tdep.c: Fix indentation.
1414 * valarith.c: Fix indentation.
1415 * valops.c: Fix indentation.
1416 * valprint.c: Fix indentation.
1417 * valprint.h: Fix indentation.
1418 * value.c: Fix indentation.
1419 * value.h: Fix indentation.
1420 * varobj.c: Fix indentation.
1421 * vax-tdep.c: Fix indentation.
1422 * windows-nat.c: Fix indentation.
1423 * windows-tdep.c: Fix indentation.
1424 * xcoffread.c: Fix indentation.
1425 * xml-syscall.c: Fix indentation.
1426 * xml-tdesc.c: Fix indentation.
1427 * xstormy16-tdep.c: Fix indentation.
1428 * xtensa-config.c: Fix indentation.
1429 * xtensa-linux-nat.c: Fix indentation.
1430 * xtensa-linux-tdep.c: Fix indentation.
1431 * xtensa-tdep.c: Fix indentation.
1432
e1f57067
AB
14332020-11-02 Andrew Burgess <andrew.burgess@embecosm.com>
1434 Craig Blackmore <craig.blackmore@embecosm.com>
1435
1436 * riscv-tdep.c (riscv_frame_cache): Read the frame base register
1437 as an unsigned value.
1438
ae7754b2
TT
14392020-11-01 Tom Tromey <tom@tromey.com>
1440
1441 * dbxread.c (dbx_end_psymtab): Update.
1442 * dwarf2/read.c (process_psymtab_comp_unit_reader)
1443 (build_type_psymtabs_reader): Update.
1444 * xcoffread.c (xcoff_end_psymtab): Update.
1445 * ctfread.c (scan_partial_symbols): Update.
1446 * psymtab.c (sort_pst_symbols): Remove.
1447 (partial_symtab::end): Rename from end_psymtab_common. Inline
1448 sort_pst_symbols.
1449 * psympriv.h (struct partial_symtab) <end>: New method.
1450 (end_psymtab_common): Don't declare.
1451
0684bb51
TT
14522020-11-01 Tom Tromey <tom@tromey.com>
1453
1454 * symmisc.c (count_psyms): New function.
1455 (print_objfile_statistics): Use it.
1456 * psymtab.c (append_psymbol_to_list): Remove.
1457 (partial_symtab::add_psymbol): Inline append_psymbol_to_list.
1458 * objfiles.h (struct objstats) <n_psyms>: Remove.
1459
089002bb
TT
14602020-11-01 Tom Tromey <tom@tromey.com>
1461
1462 * dbxread.c (dbx_end_psymtab): Update.
1463 * dwarf2/read.c (process_psymtab_comp_unit_reader): Update.
1464 (build_type_psymtabs_reader): Update.
1465 * xcoffread.c (xcoff_end_psymtab): Update.
1466 * ctfread.c (scan_partial_symbols): Update.
1467 * psympriv.h (end_psymtab_common): Update.
1468 * psymtab.c (end_psymtab_common): Remove objfile parameter.
1469 (sort_pst_symbols): Likewise.
1470
525454d6
TT
14712020-11-01 Tom Tromey <tom@tromey.com>
1472
1473 * dbxread.c (dbx_symfile_read): Update.
1474 * dwarf2/read.c (dwarf2_build_psymtabs): Update.
1475 * xcoffread.c (xcoff_initial_scan): Update.
1476 * psympriv.h (init_psymbol_list): Don't declare.
1477 * psymtab.c (init_psymbol_list): Remove.
1478
60bd1d53
JB
14792020-11-01 Joel Brobecker <brobecker@adacore.com>
1480
1481 * ada-lang.c (gnat_encoded_fixed_point_type_info): Renames
1482 gnat_encoded_fixed_type_info. Update all callers.
1483
db99d0d0
JB
14842020-11-01 Joel Brobecker <brobecker@adacore.com>
1485
1486 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Split
1487 line too long.
1488
75f24e86
JB
14892020-11-01 Joel Brobecker <brobecker@adacore.com>
1490
1491 * ada-lang.c (cast_from_gnat_encoded_fixed_point_type): Renames
1492 cast_from_fixed. Update all callers.
1493 (cast_to_gnat_encoded_fixed_point_type): Renames cast_to_fixed.
1494 Update all callers.
1495 (gnat_encoded_fixed_point_scaling_factor): Renames ada_scaling_factor.
1496 Update all callers.
1497 * ada-lang.h (gnat_encoded_fixed_point_scaling_factor): Renames
1498 ada_scaling_factor.
1499 * ada-typeprint.c: Replace call to ada_scaling_factor by call
1500 to print_gnat_encoded_fixed_point_type.
1501 * ada-valprint.c: Likewise.
1502
4f0469cd
AB
15032020-10-31 Andrew Burgess <andrew.burgess@embecosm.com>
1504
1505 * infrun.h (infrun_debug_printf): Add check of debug_infrun flag.
1506 (debug_prefixed_printf): Add check of debug_displaced flag.
1507 * linux-nat.c (linux_nat_debug_printf): Add check of
1508 debug_linux_nat flag.
1509
17417fb0
SM
15102020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1511
1512 * infrun.c (infrun_debug_printf_1): Remove.
1513 (displaced_debug_printf_1): Remove.
1514 (stop_all_threads): Use debug_prefixed_printf.
1515 * infrun.h (infrun_debug_printf_1): Remove.
1516 (infrun_debug_printf): Use debug_prefixed_printf.
1517 (displaced_debug_printf_1): Remove.
1518 (displaced_debug_printf): Use debug_prefixed_printf.
1519 * linux-nat.c (linux_nat_debug_printf_1): Remove.
1520 (linux_nat_debug_printf): Use debug_prefixed_printf.
1521
ad6dba1c
SM
15222020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1523
1524 * configure: Re-generate.
1525 * sanitize.m4: Replace AC_TRY_LINK with AC_LINK_IFELSE +
1526 AC_LANG_PROGRAM.
1527
b6fb30ed
SM
15282020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1529
1530 * configure: Re-generate.
1531
5164c117
SM
15322020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1533
1534 * configure: Re-generate.
1535
864ca435
SM
15362020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1537
1538 * configure: Re-generate.
1539
b9442ec1
SM
15402020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1541
1542 * configure: Re-generate.
1543
294f2697
SM
15442020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1545
1546 * acinclude.m4: Modernize.
1547 * configure: Re-generate.
1548
5593a99a
SM
15492020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1550
1551 * configure.ac: Modernize.
1552 * configure: Re-generate.
1553
e41fda1d
SM
15542020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1555
1556 * acinclude.m4 (AM_PROG_CC_STDC): Remove.
1557 * configure: Re-generate.
1558 * configure.ac: Remove AM_PROG_CC_STDC.
1559
91e1a0ed
SM
15602020-10-31 Simon Marchi <simon.marchi@polymtl.ca>
1561
1562 * configure.ac: Use AC_CANONICAL_{BUILD,HOST,TARGET} instead of
1563 AC_CANONICAL_SYSTEM.
1564 * configure: Re-generate.
1565
136821d9
SM
15662020-10-30 Simon Marchi <simon.marchi@efficios.com>
1567
1568 * infrun.h (displaced_debug_printf): New macro. Replace
1569 displaced debug prints throughout to use it.
1570 (displaced_debug_printf_1): New declaration.
1571 (displaced_step_dump_bytes): Return string, remove ui_file
1572 parameter, update all callers.
1573 * infrun.c (displaced_debug_printf_1): New function.
1574 (displaced_step_dump_bytes): Return string, remove ui_file
1575 parameter
1576
aa2045e7
SM
15772020-10-30 Simon Marchi <simon.marchi@polymtl.ca>
1578
1579 * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Return -1 for
1580
b1ec2735
TT
15812020-10-30 Tom Tromey <tromey@adacore.com>
1582
1583 * Makefile.in (stamp-init): Depend on config.status.
1584
b78b3a29
TBA
15852020-10-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1586
1587 * infrun.c (fetch_inferior_event): Temporarily disable pagination.
1588
d70bdd3c
PA
15892020-10-30 Pedro Alves <pedro@palves.net>
1590
1591 * thread.c (lookup_selected_frame): Move ...
1592 * frame.c (lookup_selected_frame): ... here.
1593
79952e69
PA
15942020-10-30 Pedro Alves <pedro@palves.net>
1595
1596 * blockframe.c (block_innermost_frame): Use get_selected_frame.
1597 * frame.c
1598 (scoped_restore_selected_frame::scoped_restore_selected_frame):
1599 Use save_selected_frame. Save language as well.
1600 (scoped_restore_selected_frame::~scoped_restore_selected_frame):
1601 Use restore_selected_frame, and restore language as well.
1602 (selected_frame_id, selected_frame_level): New.
1603 (selected_frame): Update comments.
1604 (save_selected_frame, restore_selected_frame): New.
1605 (get_selected_frame): Use lookup_selected_frame.
1606 (get_selected_frame_if_set): Delete.
1607 (select_frame): Record selected_frame_level and selected_frame_id.
1608 * frame.h (scoped_restore_selected_frame) <m_level, m_lang>: New
1609 fields.
1610 (get_selected_frame): Make 'message' parameter optional.
1611 (get_selected_frame_if_set): Delete declaration.
1612 (select_frame): Update comments.
1613 (save_selected_frame, restore_selected_frame)
1614 (lookup_selected_frame): Declare.
1615 * gdbthread.h (scoped_restore_current_thread) <m_lang>: New field.
1616 * infrun.c (struct infcall_control_state) <selected_frame_level>:
1617 New field.
1618 (save_infcall_control_state): Use save_selected_frame.
1619 (restore_selected_frame): Delete.
1620 (restore_infcall_control_state): Use restore_selected_frame.
1621 * stack.c (select_frame_command_core, frame_command_core): Use
1622 get_selected_frame.
1623 * thread.c (restore_selected_frame): Rename to ...
1624 (lookup_selected_frame): ... this and make extern. Select the
1625 current frame if the frame level is -1.
1626 (scoped_restore_current_thread::restore): Also restore the
1627 language.
1628 (scoped_restore_current_thread::~scoped_restore_current_thread):
1629 Don't try/catch.
1630 (scoped_restore_current_thread::scoped_restore_current_thread):
1631 Save the language as well. Use save_selected_frame.
1632
58103c33
SM
16332020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1634
1635 * gdbarch.sh (displaced_step_hw_singlestep): Adjust
1636 documentation.
1637 * gdbarch.h: Re-generate.
1638
40a53766
SM
16392020-10-29 Simon Marchi <simon.marchi@polymtl.ca>
1640
1641 * gdbarch.sh (displaced_step_hw_singlestep): Remove closure
1642 parameter.
1643 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep):
1644 Likewise.
1645 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
1646 Likewise.
1647 * arch-utils.c (default_displaced_step_hw_singlestep):
1648 Likewise.
1649 * arch-utils.h (default_displaced_step_hw_singlestep):
1650 Likewise.
1651 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep):
1652 Likewise.
1653 * s390-tdep.c (s390_displaced_step_hw_singlestep):
1654 Likewise.
1655 * gdbarch.c: Re-generate.
1656 * gdbarch.h: Re-generate.
1657 * infrun.c (resume_1): Adjust.
1658
8407f91b
TT
16592020-10-29 Tom Tromey <tom@tromey.com>
1660
1661 * progspace.c (program_space::~program_space): Don't call
1662 exec_close.
1663
5008b3b2
TT
16642020-10-29 Tom Tromey <tom@tromey.com>
1665
1666 * exec.c (exec_target::close): Don't change current program
1667 space.
1668
d9eebde0
TT
16692020-10-29 Tom Tromey <tom@tromey.com>
1670
1671 * symfile.c (add_symbol_file_command): Update.
1672 * exec.c (program_space::add_target_sections): Rename.
1673 * symfile-mem.c (symbol_file_add_from_memory): Update.
1674 * progspace.h (struct program_space) <add_target_sections>:
1675 Declare new overload.
1676 * exec.h (add_target_sections_of_objfile): Don't declare.
1677
3769e227
TT
16782020-10-29 Tom Tromey <tom@tromey.com>
1679
1680 * solib.c (solib_map_sections): Update.
1681 * exec.c (program_space::add_target_sections): Now a method.
1682 (exec_file_attach): Update.
1683 * exec.h (add_target_sections): Don't declare.
1684 * progspace.h (struct program_space) <add_target_sections>:
1685 Declare.
1686
2a3f84af
TT
16872020-10-29 Tom Tromey <tom@tromey.com>
1688
1689 * progspace.h (struct program_space) <remove_target_sections>:
1690 Declare.
1691 * exec.c (program_space::remove_target_sections): Now a method.
1692 * exec.h (remove_target_sections): Don't declare.
1693
004eecfd
TT
16942020-10-29 Tom Tromey <tom@tromey.com>
1695
1696 * inferior.c (delete_inferior): Update.
1697 * progspace.c (program_space::empty): Rename from
1698 program_space_empty_p. Return bool.
1699 * progspace.h (struct program_space) <empty>: New method.
1700 (program_space_empty_p): Don't declare.
1701
e39fb971
TT
17022020-10-29 Tom Tromey <tom@tromey.com>
1703
1704 * progspace.c (program_space::~program_space): Don't call
1705 clear_program_space_solib_cache.
1706 (program_space::clear_solib_cache): Rename from
1707 clear_solib_cache.
1708 * solib.c (handle_solib_event): Update.
1709 * progspace.h (struct program_space) <clear_solib_cache>: New
1710 method.
1711 (clear_program_space_solib_cache): Don't declare.
1712
a42d7dd8
TT
17132020-10-29 Tom Tromey <tom@tromey.com>
1714
1715 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1716 * target.c (info_target_command): Update.
1717 * symfile.c (syms_from_objfile_1, finish_new_objfile)
1718 (symbol_file_clear, reread_symbols): Update.
1719 * symfile-mem.c (add_symbol_file_from_memory_command): Update.
1720 * stabsread.c (scan_file_globals): Update.
1721 * solib.c (update_solib_list): Update.
1722 * solib-svr4.c (elf_locate_base, open_symbol_file_object)
1723 (svr4_fetch_objfile_link_map, enable_break)
1724 (svr4_relocate_main_executable)
1725 (svr4_iterate_over_objfiles_in_search_order): Update.
1726 * solib-frv.c (lm_base, enable_break)
1727 (frv_relocate_main_executable): Update.
1728 (main_got, frv_fdpic_find_canonical_descriptor): Update.
1729 (frv_fetch_objfile_link_map): Update.
1730 * solib-dsbt.c (lm_base, dsbt_relocate_main_executable): Update.
1731 * solib-darwin.c (darwin_solib_create_inferior_hook): Update.
1732 * solib-aix.c (solib_aix_solib_create_inferior_hook): Update.
1733 * remote.c (remote_target::get_offsets): Update.
1734 (remote_target::start_remote)
1735 (extended_remote_target::post_attach): Update.
1736 * objfiles.c (entry_point_address_query): Update.
1737 * nto-procfs.c (nto_procfs_target::create_inferior): Update.
1738 * minsyms.c (get_symbol_leading_char): Update.
1739 * frame.c (inside_main_func): Update.
1740 * progspace.h (symfile_objfile): Remove macro.
1741
19f6550e
TT
17422020-10-29 Tom Tromey <tom@tromey.com>
1743
1744 * exec.c (exec_file_attach): Update.
1745 * progspace.c (program_space::exec_close): Update.
1746 * progspace.h (struct program_space) <ebfd>: Now a
1747 gdb_bfd_ref_ptr.
1748 <set_exec_bfd>: Change argument type.
1749 <exec_bfd>: Update.
1750
7e10abd1
TT
17512020-10-29 Tom Tromey <tom@tromey.com>
1752
1753 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
1754 * symfile.c (reread_symbols): Update.
1755 * symfile-mem.c (add_symbol_file_from_memory_command)
1756 (add_vsyscall_page): Update.
1757 * source-cache.c (source_cache::get_plain_source_lines): Update.
1758 * solib-svr4.c (find_program_interpreter, elf_locate_base)
1759 (svr4_current_sos_direct, svr4_exec_displacement)
1760 (svr4_relocate_main_executable): Update.
1761 (svr4_iterate_over_objfiles_in_search_order): Update.
1762 * solib-frv.c (enable_break2, enable_break): Update.
1763 * solib-dsbt.c (lm_base, enable_break): Update.
1764 * solib-darwin.c (find_program_interpreter)
1765 (darwin_solib_create_inferior_hook): Update.
1766 * sol-thread.c (rw_common, ps_pdmodel): Update.
1767 * rs6000-nat.c (rs6000_nat_target::create_inferior): Update.
1768 * remote.c (compare_sections_command)
1769 (remote_target::trace_set_readonly_regions): Update.
1770 * remote-sim.c (get_sim_inferior_data)
1771 (gdbsim_target::create_inferior, gdbsim_target::create_inferior): Update.
1772 (gdbsim_target_open, gdbsim_target::files_info): Update.
1773 * exec.h (exec_bfd): Remove macro.
1774 * progspace.c (initialize_progspace): Update.
1775 * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr):
1776 Update.
1777 * nto-procfs.c (nto_procfs_target::post_attach)
1778 (nto_procfs_target::create_inferior): Update.
1779 * maint.c (maintenance_info_sections): Update.
1780 * linux-thread-db.c (thread_db_target::get_thread_local_address):
1781 Update.
1782 * infcmd.c (post_create_inferior): Update.
1783 * gcore.c (default_gcore_arch, default_gcore_target): Update.
1784 (objfile_find_memory_regions): Update.
1785 * exec.c (validate_exec_file, exec_file_attach)
1786 (exec_read_partial_read_only, print_section_info): Update.
1787 * corelow.c (core_target_open): Update.
1788 * corefile.c (reopen_exec_file, validate_files): Update.
1789 * arm-tdep.c (gdb_print_insn_arm): Update.
1790 * arch-utils.c (gdbarch_update_p, default_print_insn): Update.
1791 * progspace.h (struct program_space) <exec_bfd, set_exec_bfd>: New
1792 methods.
1793
b55221ab
TT
17942020-10-29 Tom Tromey <tom@tromey.com>
1795
1796 * progspace.h (current_target_sections): Remove macro.
1797 * solib-svr4.c (scan_dyntag): Update.
1798 * solib-dsbt.c (scan_dyntag): Update.
1799 * exec.c (exec_target::close): Update.
1800 (add_target_sections, add_target_sections_of_objfile)
1801 (remove_target_sections, exec_target::get_section_table)
1802 (exec_target::files_info, set_section_command)
1803 (exec_set_section_address, exec_target::has_memory)
1804 (exec_target::has_memory): Update.
1805
5a36e715
TT
18062020-10-29 Tom Tromey <tom@tromey.com>
1807
1808 * source-cache.c (source_cache::get_plain_source_lines): Use
1809 current_program_space.
1810 * corefile.c (reopen_exec_file): Use current_program_space.
1811 * exec.c (exec_file_attach): Use current_program_space.
1812 * exec.h (exec_bfd_mtime): Remove.
1813
784c8592
TT
18142020-10-29 Tom Tromey <tom@tromey.com>
1815
1816 * gcore.c (default_gcore_mach): Remove.
1817 (create_gcore_bfd): Update.
1818
8a4f1402
TT
18192020-10-29 Tom Tromey <tom@tromey.com>
1820
1821 * progspace.c (program_space::exec_close): New method, from
1822 exec_close in exec.c.
1823 * exec.c (exec_close): Move to progspace.c.
1824 (exec_target::close, exec_file_attach): Update.
1825 * progspace.h (struct program_space) <exec_close>: Declare
1826 method.
1827
c20cb686
TT
18282020-10-29 Tom Tromey <tom@tromey.com>
1829
1830 * progspace.h (struct program_space) <exec_filename>: Rename from
1831 pspace_exec_filename. Now a unique_xmalloc_ptr.
1832 * inferior.c (print_selected_inferior): Update.
1833 (print_inferior): Update.
1834 * mi/mi-main.c (print_one_inferior): Update.
1835 * exec.h (exec_filename): Remove macro.
1836 * corefile.c (get_exec_file): Update.
1837 * exec.c (exec_close): Update.
1838 (exec_file_attach): Update.
1839 * progspace.c (clone_program_space): Update.
1840 (print_program_space): Update.
1841
6be2a9ab
TT
18422020-10-29 Tom Tromey <tom@tromey.com>
1843
1844 * target-section.h (struct target_section): Add constructor.
1845 * exec.c (build_section_table, add_target_sections_of_objfile):
1846 Update.
1847 * corelow.c (core_target::build_file_mappings): Update.
1848
cfaa8f76
TBA
18492020-10-29 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1850
1851 PR gdb/19318
1852 * inferior.c (detach_inferior_command): Restore the current thread.
1853 (kill_inferior_command): Ditto.
1854
1b00ef06
TV
18552020-10-28 Tom de Vries <tdevries@suse.de>
1856
1857 PR symtab/26772
1858 * symtab.c (find_pc_sect_compunit_symtab): In case there's an address
1859 map, check it in the "best match" loop.
1860
7f40ce1a
SM
18612020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1862
1863 * m32c-tdep.c: Remove unused includes.
1864
5eb9e3f5
SM
18652020-10-27 Simon Marchi <simon.marchi@polymtl.ca>
1866
1867 * xtensa-tdep.c: Remove includes.
1868
b1d4d8d1
TBA
18692020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1870
1871 * breakpoint.c (struct condition_command_opts): New struct.
1872 (condition_command_option_defs): New static global.
1873 (make_condition_command_options_def_group): New function.
1874 (condition_completer): Update to consider the '-force' flag.
1875 (condition_command): Use gdb::option for the '-force' flag.
1876
bd24c5d6
TV
18772020-10-27 Tom de Vries <tdevries@suse.de>
1878
1879 * symtab.c (find_pc_sect_compunit_symtab): Include STATIC_BLOCK
1880 symbols in section check.
1881
61eb46a4
TV
18822020-10-27 Tom de Vries <tdevries@suse.de>
1883
1884 * symtab.c (find_pc_sect_compunit_symtab): Use early continue.
1885
733d554a
TBA
18862020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1887
1888 * breakpoint.h (set_breakpoint_condition): Add a new bool parameter.
1889 * breakpoint.c: Update the help text of the 'condition' and 'break'
1890 commands.
1891 (set_breakpoint_condition): Take a new bool parameter
1892 to control whether condition definition should be forced even when
1893 the condition expression is invalid in all of the current locations.
1894 (condition_command): Update the call to 'set_breakpoint_condition'.
1895 (find_condition_and_thread): Take the "-force-condition" flag into
1896 account.
1897 * linespec.c (linespec_keywords): Add "-force-condition" as an
1898 element.
1899 (FORCE_KEYWORD_INDEX): New #define.
1900 (linespec_lexer_lex_keyword): Update to consider "-force-condition"
1901 as a keyword.
1902 * ada-lang.c (create_ada_exception_catchpoint): Ditto.
1903 * guile/scm-breakpoint.c (gdbscm_set_breakpoint_condition_x): Ditto.
1904 * python/py-breakpoint.c (bppy_set_condition): Ditto.
1905 * NEWS: Mention the changes to the 'break' and 'condition' commands.
1906
b5fa468f
TBA
19072020-10-27 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
1908
1909 * breakpoint.h (class bp_location) <disabled_by_cond>: New field.
1910 * breakpoint.c (set_breakpoint_location_condition): New function.
1911 (set_breakpoint_condition): Disable a breakpoint location if parsing
1912 the condition string gives an error.
1913 (should_be_inserted): Update to consider the 'disabled_by_cond' field.
1914 (build_target_condition_list): Ditto.
1915 (build_target_command_list): Ditto.
1916 (build_bpstat_chain): Ditto.
1917 (print_one_breakpoint_location): Ditto.
1918 (print_one_breakpoint): Ditto.
1919 (breakpoint_1): Ditto.
1920 (bp_location::bp_location): Ditto.
1921 (locations_are_equal): Ditto.
1922 (update_breakpoint_locations): Ditto.
1923 (enable_disable_bp_num_loc): Ditto.
1924 (init_breakpoint_sal): Use set_breakpoint_location_condition.
1925 (find_condition_and_thread_for_sals): New static function.
1926 (create_breakpoint): Call find_condition_and_thread_for_sals.
1927 (location_to_sals): Call find_condition_and_thread_for_sals instead
1928 of find_condition_and_thread.
1929
1c47ec3e
TV
19302020-10-26 Tom de Vries <tdevries@suse.de>
1931
1932 * dwarf2/read.c (process_full_comp_unit): Call
1933 dwarf2_find_base_address.
1934
6390859c
TT
19352020-10-26 Tom Tromey <tromey@adacore.com>
1936
1937 * gdbtypes.c (create_range_type): Revert previous patch. Add
1938 comment.
1939
d744f0f9
PA
19402020-10-26 Pedro Alves <pedro@palves.net>
1941
1942 * nat/linux-waitpid.c: Include "gdbsupport/eintr.h".
1943 (my_waitpid): Use gdb::handle_eintr.
1944
006811bc
SM
19452020-10-25 Simon Marchi <simon.marchi@polymtl.ca>
1946
1947 * acinclude.m4: Update ptrace.m4 path.
1948 * ptrace.m4: Moved to gdbsupport.
1949
c75e31a1
SM
19502020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1951
1952 * symfile-mem.c (add_vsyscall_page): Use inferior parameter
1953 instead of target_gdbarch.
1954
32495661
SM
19552020-10-24 Simon Marchi <simon.marchi@polymtl.ca>
1956
1957 * jit.c (jit_reader_load_command): Pass current inferior.
1958 (jit_inferior_init): Change parameter type to inferior, use it.
1959 (jit_inferior_created): Remove.
1960 (jit_inferior_created_hook): Pass inferior parameter down.
1961 (_initialize_jit): Use jit_inferior_created_hook instead of
1962 jit_inferior_created.
1963 * jit.h (jit_inferior_created_hook): Add inferior parameter.
1964 * infrun.c (follow_exec): Pass inferior to
1965 jit_inferior_created_hook.
1966
3f66685e
SM
19672020-10-24 Simon Marchi <simon.marchi@efficios.com>
1968
1969 * linux-thread-db.c (check_pid_namespace_match): Add inferior
1970 parameter and use it.
1971 (thread_db_inferior_created): Pass inferior argument.
1972
a0ff652f
SM
19732020-10-24 Simon Marchi <simon.marchi@efficios.com>
1974
1975 * aix-thread.c (aix_thread_inferior_created): Add inferior
1976 parameter.
1977 * bsd-uthread.c (bsd_uthread_inferior_created): Likewise.
1978 * dummy-frame.c (cleanup_dummy_frames): Likewise.
1979 * jit.c (jit_inferior_created): Likewise.
1980 * linux-thread-db.c (thread_db_inferior_created): Likewise.
1981 * m68k-linux-tdep.c (m68k_linux_inferior_created): Likewise.
1982 * observable.h (inferior_created): Likewise.
1983 * ravenscar-thread.c (ravenscar_inferior_created): Likewise.
1984 * symfile-mem.c (add_vsyscall_page): Likewise.
1985 * infcmd.c (post_create_inferior): Pass inferior argument.
1986
3c67532c
JB
19872020-10-24 Joel Brobecker <brobecker@adacore.com>
1988
1989 GDB 10.1 released.
1990
8747316e
JB
19912020-10-23 Joel Brobecker <brobecker@adacore.com>
1992
1993 * ada-typeprint.c (ada_print_type): Remove superfluous second call
1994 to ada_check_typedef.
1995
1a0ea399
AB
19962020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
1997
1998 * f-exp.y (f_parse): Rename to...
1999 (f_language::parser): ...this.
2000 * f-lang.c (f_get_encoding): Rename to...
2001 (f_language::get_encoding): ...this.
2002 (f_op_print_tab): Rename to...
2003 (f_language::op_print_tab): ...this.
2004 (exp_descriptor_f): Rename to...
2005 (f_language::exp_descriptor_tab): ...this.
2006 (class f_language): Moved to f-lang.h.
2007 (f_language::language_arch_info): New function, moved out of class
2008 declaration.
2009 (f_language::search_name_hash): Likewise.
2010 (f_language::lookup_symbol_nonlocal): Likewise.
2011 (f_language::get_symbol_name_matcher_inner): Likewise.
2012 * f-lang.h: Add 'valprint.h' include.
2013 (class f_language): Moved here from f-lang.c.
2014 * f-typeprint.c (f_type_print_args): Delete commented out
2015 declaration.
2016 (f_print_typedef): Rename to...
2017 (f_language::print_typedef): ...this.
2018 (f_print_type): Rename to...
2019 (f_language::print_type): ...this.
2020 (f_type_print_varspec_prefix): Delete declaration and rename to...
2021 (f_language::f_type_print_varspec_prefix): ...this.
2022 (f_type_print_varspec_suffix): Delete declaration and rename to...
2023 (f_language::f_type_print_varspec_suffix): ...this.
2024 (f_type_print_base): Delete declaration and rename to...
2025 (f_language::f_type_print_base): ...this.
2026 * f-valprint.c (f_value_print_inner): Rename to...
2027 (f_language::value_print_inner): ...this.
2028 * parse.c: Delete 'f-lang.h' include.
2029
88cefd9b
AB
20302020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2031
2032 * language.h (language_defn::print_type): Add variable names in
2033 declaration, and update header comment.
2034
5399db93
AB
20352020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2036
2037 * ada-lang.c (ada_language::demangle): Rename to...
2038 (ada_language::demangle_symbol): ...this.
2039 * c-lang.c (cplus_language::demangle): Rename to...
2040 (cplus_language::demangle_symbol): ...this.
2041 * d-lang.c (d_language::demangle): Rename to...
2042 (d_language::demangle_symbol): ...this.
2043 * f-lang.c (f_language::demangle): Rename to...
2044 (f_language::demangle_symbol): ...this.
2045 * go-lang.c (go_language::demangle): Rename to...
2046 (go_language::demangle_symbol): ...this.
2047 * language.c (language_demangle): Update call to demangle_symbol.
2048 (auto_or_unknown_language::demangle): Rename to...
2049 (auto_or_unknown_language::demangle_symbol): ...this.
2050 * language.h (language_defn::demangle): Rename to...
2051 (language_defn::demangle_symbol): ...this.
2052 * objc-lang.c (objc_language::demangle): Rename to...
2053 (objc_language::demangle_symbol): ...this.
2054 * rust-lang.c (rust_language::demangle): Rename to...
2055 (rust_language::demangle_symbol): ...this.
2056
4b2f86ef
AB
20572020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2058
2059 * language.h (LA_ITERATE_OVER_SYMBOLS): Delete.
2060 (iterate_over_file_blocks): Replace use of macro with the macros
2061 definition.
2062
e74b39de
AB
20632020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2064
2065 * language.h (LA_PRINT_ARRAY_INDEX): Delete.
2066 * valprint.c (maybe_print_array_index): Replace use of macro with
2067 the macros definition.
2068
00c696a6
AB
20692020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2070
2071 * ada-lang.c (ada_language::print_array_index): Call value_print
2072 directly.
2073 * language.c (language_defn::print_array_index): Likewise.
2074 * language.h (LA_VALUE_PRINT): Delete.
2075 * valprint.c (value_print): Call value_print on the
2076 current_language directly.
2077
d3b67c56
AB
20782020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2079
2080 * language.h (LA_PRINT_TYPEDEF): Delete.
2081 * typeprint.c (typedef_print): Call print_typedef directly on the
2082 current_language object.
2083
790e2a12
AB
20842020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2085
2086 * m2-exp.y (m2_parse): Rename to...
2087 (m2_language::parser): ...this. Update function signature.
2088 * m2-lang.c (m2_printchar): Renamed to m2_language::printchar.
2089 (m2_op_print): Rename to...
2090 (m2_language::op_print_tab): ...this, and make const.
2091 (exp_descriptor_modula2): Rename to...
2092 (m2_language::exp_descriptor_modula2): ...this.
2093 (class m2_language): Move to m2-lang.h.
2094 (m2_language::language_arch_info): New function, moved out of
2095 class declaration.
2096 (m2_language::printchar): New function, body from m2_printchar.
2097 (m2_language::printstr): New function, moved out of class
2098 declaration.
2099 (m2_language::emitchar): Likewise.
2100 * m2-lang.h (m2_parse): Delete declaration.
2101 (m2_print_typedef): Delete declaration.
2102 (m2_value_print_inner): Delete declaration.
2103 (class m2_language): Class declaration moved from m2-lang.c,
2104 larger functions are left in m2-lang.c.
2105 * m2-typeprint.c (m2_print_typedef): Rename to...
2106 (m2_language::print_typedef): ...this, and update function
2107 signature.
2108 * m2-valprint.c (m2_value_print_inner): Rename to...
2109 (m2_language::value_print_inner): ...this, replace use of
2110 LA_PRINT_STRING with a direct call to printstr member function,
2111 and update recursive call.
2112
b01175fc
AB
21132020-10-23 Andrew Burgess <andrew.burgess@embecosm.com>
2114
2115 * language.c (default_is_string_type_p): Delete, implementation
2116 moved into auto_or_unknown_language::is_string_type_p.
2117 (unk_op_print_tab): Moved into
2118 auto_or_unknown_language::opcode_print_table.
2119 (unknown_language_arch_info): Delete, implementation moved into
2120 auto_or_unknown_language::language_arch_info.
2121 (class auto_or_unknown_language): New class, member functions
2122 copied from unknown_language class, with some updates.
2123 (class unknown_language): Most member functions moved into
2124 auto_or_unknown_language class. Inherit from
2125 auto_or_unknown_language class.
2126 (class auto_language): Inherit from auto_or_unknown_language.
2127 Delete most member functions.
2128
1a97fe8c
HD
21292020-10-22 Hannes Domani <ssbssa@yahoo.de>
2130
2131 * stabsread.c (read_member_functions): Remove gdb_assert.
2132
6b9d0dfd
HD
21332020-10-22 Hannes Domani <ssbssa@yahoo.de>
2134
2135 * gdbtypes.c (init_complex_type): Check target type name.
2136
4b4bb603
SM
21372020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2138
2139 * target-debug.h (target_debug_print_struct_target_ops_p):
2140 Remove.
2141 (target_debug_print_async_callback_ftype_p): Remove.
2142 (target_debug_print_struct_trace_state_variable_p): Remove.
2143 (target_debug_print_struct_traceframe_info_p): Remove.
2144 (target_debug_print_VEC__btrace_block_s__pp): Remove.
2145 (target_debug_print_enum_btrace_format): Remove.
2146 (target_debug_print_enum_info_proc_what): Remove.
2147 (target_debug_print_thread_info_pp): Remove.
2148
24f5300a
SM
21492020-10-22 Simon Marchi <simon.marchi@efficios.com>
2150
2151 * target.h (struct target_ops) <make_corefile_notes>:
2152 Change return type to unique pointer.
2153 * target.c (dummy_make_corefile_notes): Likewise.
2154 * exec.c (struct exec_target) <make_corefile_notes>:
2155 Likewise.
2156 (exec_target::make_corefile_notes): Likewise.
2157 * procfs.c (class procfs_target) <make_corefile_notes>:
2158 Likewise.
2159 (procfs_do_thread_registers): Adjust to unique pointer.
2160 (struct procfs_corefile_thread_data): Add constructor.
2161 <note_data>: Change type to unique pointer.
2162 (procfs_corefile_thread_callback): Adjust to unique pointer.
2163 (procfs_target::make_corefile_notes): Change return type to
2164 unique pointer.
2165 * target-delegates.c: Re-generate.
2166 * gcore.c (write_gcore_file_1): Adjust.
2167 * target-debug.h (target_debug_print_gdb_unique_xmalloc_ptr_char):
2168 New.
2169
5fb4027f
TV
21702020-10-22 Tom de Vries <tdevries@suse.de>
2171
2172 * block.c (find_block_in_blockvector): Make sure the returned block
2173 contains pc.
2174
4a636814
SM
21752020-10-22 Simon Marchi <simon.marchi@polymtl.ca>
2176
2177 PR gdb/26693
2178 * dwarf2/read.c (load_full_comp_unit): Add existing_cu
2179 parameter.
2180 (load_cu): Pass existing CU.
2181 (process_imported_unit_die): Likewise.
2182 (follow_die_offset): Likewise.
2183
1bd57575
LM
21842020-10-22 Luis Machado <luis.machado@linaro.org>
2185
2186 * corelow.c (core_target::xfer_partial): Also check for an empty
2187 m_core_unavailable_mappings vector.
2188
6b4c676c
AB
21892020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2190
2191 * expprint.c (dump_subexp_body_standard): Print RANGE_HAS_STRIDE.
2192 * expression.h (enum range_type): Add RANGE_HAS_STRIDE.
2193 * f-exp.y (arglist): Allow for a series of subranges.
2194 (subrange): Add cases for subranges with strides.
2195 * f-lang.c (value_f90_subarray): Catch use of array strides and
2196 throw an error.
2197 * parse.c (operator_length_standard): Handle RANGE_HAS_STRIDE.
2198
f2d8e4c5
AB
21992020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2200
2201 * expprint.c (print_subexp_standard): Change enum range_type to
2202 range_flag and rename variables to match.
2203 (dump_subexp_body_standard): Likewise.
2204 * expression.h (enum range_type): Rename to...
2205 (enum range_flag): ...this.
2206 (range_types): Rename to...
2207 (range_flags): ...this.
2208 * f-lang.c (value_f90_subarray): Change enum range_type to
2209 range_flag and rename variables to match.
2210 * parse.c (operator_length_standard): Likewise.
2211 * rust-exp.y (rust_parser::convert_ast_to_expression): Change enum
2212 range_type to range_flag.
2213 * rust-lang.c (rust_evaluate_funcall): Likewise.
2214 (rust_range): Likewise.
2215 (rust_compute_range): Likewise.
2216 (rust_subscript): Likewise.
2217
2f1b18db
AB
22182020-10-22 Andrew Burgess <andrew.burgess@embecosm.com>
2219
2220 * expprint.c (print_subexp_standard): Update to reflect changes to
2221 enum range_type.
2222 (dump_subexp_body_standard): Likewise.
2223 * expression.h (enum range_type): Convert to a bit field enum, and
2224 make the enum unsigned.
2225 * f-exp.y (subrange): Update to reflect changes to enum
2226 range_type.
2227 * f-lang.c (value_f90_subarray): Likewise.
2228 * parse.c (operator_length_standard): Likewise.
2229 * rust-exp.y (rust_parser::convert_ast_to_expression): Likewise.
2230 * rust-lang.c (rust_range): Likewise.
2231 (rust_compute_range): Likewise.
2232 (rust_subscript): Likewise.
2233
a46d1843
SM
22342020-10-21 Simon Marchi <simon.marchi@efficios.com>
2235
2236 * infrun.c (displaced_step_in_progress_thread): Fix comment.
2237 (displaced_step_in_progress): Fix comment.
2238
c21f37a8
SM
22392020-10-21 Simon Marchi <simon.marchi@polymtl.ca>
2240
2241 * gdbarch.sh (make_corefile_notes): Return unique pointer.
2242 * gdbarch.c: Re-generate.
2243 * gdbarch.h: Re-generate.
2244 * gcore.c (write_gcore_file_1): Adjust.
2245 * fbsd-tdep.c (struct fbsd_collect_regset_section_cb_data): Add
2246 constructor.
2247 <note_data>: Change type to unique pointer.
2248 <abort_iteration>: Change type to bool.
2249 (fbsd_collect_regset_section_cb): Adjust to unique pointer.
2250 (fbsd_collect_thread_registers): Return void, adjust.
2251 (struct fbsd_corefile_thread_data): Add construtor.
2252 <note_data>: Change type to unique pointer.
2253 (fbsd_corefile_thread): Adjust.
2254 (fbsd_make_corefile_notes): Return unique pointer, adjust.
2255 * linux-tdep.c (linux_make_mappings_corefile_notes): Change type
2256 to unique pointer, adjust.
2257 (struct linux_collect_regset_section_cb_data): Add constructor.
2258 <note_data>: Change type to unique pointer.
2259 <abort_iteration>: Change type to bool.
2260 (linux_collect_thread_registers): Return void, adjust.
2261 (struct linux_corefile_thread_data): Add constructor.
2262 <note_data>: Change type to unique pointer.
2263 (linux_corefile_thread): Adjust.
2264 (linux_make_corefile_notes): Return unique pointer, adjust.
2265
07fbbd01
SM
22662020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2267
2268 * gdbarch.sh (displaced_step_hw_singlestep): Return bool.
2269 * gdbarch.c: Re-generate.
2270 * gdbarch.h: Re-generate.
2271 * aarch64-tdep.c (aarch64_displaced_step_hw_singlestep): Return
2272 bool.
2273 * aarch64-tdep.h (aarch64_displaced_step_hw_singlestep):
2274 Likewise.
2275 * arch-utils.h (default_displaced_step_hw_singlestep): Likewise.
2276 * arch-utils.c (default_displaced_step_hw_singlestep): Likewise.
2277 * rs6000-tdep.c (ppc_displaced_step_hw_singlestep): Likewise.
2278 * s390-tdep.c (s390_displaced_step_hw_singlestep): Likewise.
2279
39535193
SM
22802020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2281
2282 * gdbarch.sh: Make generated predicates return bool.
2283 * gdbarch.c: Re-generate.
2284 * gdbarch.h: Re-generate.
2285
ad523d01
TT
22862020-10-20 Tom Tromey <tom@tromey.com>
2287
2288 * varobj-iter.h (struct varobj_item): Remove typedef.
2289
c4464ade
SM
22902020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2291
2292 * infrun.c (currently_stepping): Change int to bool
2293 (maybe_software_singlestep): Likewise.
2294 (show_stop_on_solib_events): Likewise.
2295 (stepping_past_nonsteppable_watchpoint): Likewise.
2296 (displaced_step_in_progress_any_inferior): Likewise.
2297 (displaced_step_in_progress_thread): Likewise.
2298 (keep_going_stepped_thread): Likewise.
2299 (thread_still_needs_step_over): Likewise.
2300 (start_step_over): Likewise.
2301 (do_target_resume): Likewise.
2302 (resume_1): Likewise.
2303 (clear_proceed_status): Likewise.
2304 (thread_still_needs_step_over_bp): Likewise.
2305 (proceed): Likewise.
2306 (switch_back_to_stepped_thread): Likewise.
2307 (adjust_pc_after_break): Likewise.
2308 (stepped_in_from): Likewise.
2309 (handle_stop_requested): Likewise.
2310 (handle_syscall_event): Likewise.
2311 (handle_no_resumed): Likewise.
2312 (handle_inferior_event): Likewise.
2313 (finish_step_over): Likewise.
2314 (handle_signal_stop): Likewise.
2315 (process_event_stop_test): Likewise.
2316
2eb20436
SM
23172020-10-20 Simon Marchi <simon.marchi@polymtl.ca>
2318
2319 * infrun.c (get_displaced_stepping_state): Fix comment.
2320
e0c45ded
AS
23212020-10-20 Andreas Schwab <schwab@linux-m68k.org>
2322
2323 * cli/cli-cmds.c (_initialize_cli_cmds): Fix alias command help.
2324
22cc388e
TT
23252020-10-19 Tom Tromey <tromey@adacore.com>
2326
2327 PR tui/26719
2328 * tui/tui-winsource.h (struct tui_source_window_base)
2329 <refresh_window>: Rename from refresh_pad.
2330 * tui/tui-winsource.c (tui_source_window_base::refresh_window):
2331 Rename from refresh_pad.
2332 (tui_source_window_base::show_source_content)
2333 (tui_source_window_base::do_scroll_horizontal): Update.
2334
3c6eb4d4
TBA
23352020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2336
2337 * thread.c (_initialize_thread): Fine-tune the help text of
2338 'info threads'.
2339
26703721
TBA
23402020-10-19 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2341
2342 * frame.c: Remove the unused 'uinteger_option_def' type alias.
2343
61c26be8
MS
23442020-10-14 Mihails Strasuns <mihails.strasuns@intel.com>
2345
2346 * breakpoint.c (handle_jit_event): Add an argument, change how
2347 `jit_event_handler` is called.
2348
932539d7
TT
23492020-10-17 Tom Tromey <tom@tromey.com>
2350
2351 * xcoffread.c (xcoff_end_psymtab): Use partial_symtab::empty.
2352 (scan_xcoff_symtab): Update.
2353 * psymtab.h (class psymtab_storage) <global_psymbols,
2354 static_psymbols, current_global_psymbols,
2355 current_static_psymbols>: Remove.
2356 * psymtab.c (require_partial_symbols, find_pc_sect_psymbol)
2357 (match_partial_symbol, lookup_partial_symbol): Update.
2358 (print_partial_symbols): Change parameters.
2359 (dump_psymtab, recursively_search_psymtabs)
2360 (psym_fill_psymbol_map, psym_find_compunit_symtab_by_address)
2361 (sort_pst_symbols, partial_symtab::partial_symtab): Update.
2362 (concat): Remove.
2363 (end_psymtab_common): Simplify.
2364 (append_psymbol_to_list): Change parameters.
2365 (partial_symtabs::add_psymbol): Rename from add_psymbol_to_list.
2366 (init_psymbol_list): Simplify.
2367 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
2368 * psympriv.h (struct partial_symtab) <empty>: New method.
2369 <globals_offset, n_global_syms, statics_offset, n_static_syms>:
2370 Remove.
2371 <global_psymbols, static_psymbols>: New members.
2372 <add_psymbol>: New methods.
2373 (add_psymbol_to_list): Don't declare.
2374 (psymbol_placement): Move earlier.
2375 * mdebugread.c (parse_partial_symbols): Update.
2376 (handle_psymbol_enumerators): Change parameters.
2377 (mdebug_expand_psymtab): Update.
2378 * dwarf2/read.c (process_psymtab_comp_unit_reader)
2379 (add_partial_symbol): Update.
2380 * dwarf2/index-write.c (write_psymbols): Change parameters.
2381 (write_one_signatured_type): Update.
2382 (recursively_count_psymbols): Update.
2383 (recursively_write_psymbols): Update.
2384 (class debug_names) <recursively_write_psymbols>: Update.
2385 <write_psymbols>: Change parameters.
2386 <write_one_signatured_type>: Update.
2387 * dbxread.c (read_dbx_symtab): Update.
2388 (dbx_end_psymtab): Use partial_symtab::empty.
2389 * ctfread.c (struct ctf_context) <pst>: New member.
2390 (create_partial_symtab): Set it.
2391 (ctf_psymtab_type_cb, ctf_psymtab_var_cb): Update.
2392 (scan_partial_symbols): Use the psymtab's context. Update.
2393
cfabbd35
TT
23942020-10-17 Tom Tromey <tom@tromey.com>
2395
2396 * valprint.c (generic_value_print): Remove comment.
2397 * m2-valprint.c (m2_value_print_inner): Remove comment.
2398 * gdbtypes.c (create_range_type): Set TYPE_UNSIGNED from base
2399 type.
2400
520596f2
TV
24012020-10-17 Tom de Vries <tdevries@suse.de>
2402
2403 PR symtab/26317
2404 * source.c (select_source_symtab): Handling sal.symtab == NULL for
2405 symbol main.
2406
76547ab3
TV
24072020-10-14 Tom de Vries <tdevries@suse.de>
2408
2409 PR gdb/26733
2410 * solib.c (solib_contains_address_p): Handle
2411 'solib->sections == nullptr'.
2412
d3a07122
SM
24132020-10-13 Simon Marchi <simon.marchi@polymtl.ca>
2414
2415 PR gdb/26642
2416 * infrun.c (do_target_wait_1): Clear TARGET_WNOHANG if the
2417 target can't do async.
2418 * target.c (target_wait): Assert that we don't pass
2419 TARGET_WNOHANG to a target that can't async.
2420
1b71cfcf
KR
24212020-10-13 Kamil Rytarowski <n54@gmx.com>
2422
2423 * Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS)
2424 HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
2425 * alpha-bsd-nat.c: Adjust include.
2426 * alpha-bsd-tdep.h: Adjust comment.
2427 * alpha-nbsd-tdep.c: Rename to ...
2428 * alpha-netbsd-tdep.c: ... this, adjust include.
2429 * amd64-nbsd-nat.c: Rename to ...
2430 * amd64-netbsd-nat.c: ... this, adjust include.
2431 * amd64-nbsd-tdep.c: Rename to ...
2432 * amd64-netbsd-tdep.c: ... this, adjust include.
2433 * amd64-tdep.h: Adjust include.
2434 * arm-nbsd-nat.c: Rename to ...
2435 * arm-netbsd-nat.c: ... this, adjust include.
2436 * arm-nbsd-tdep.c: Rename to ...
2437 * arm-netbsd-tdep.c: ... this, adjust include.
2438 * arm-nbsd-tdep.h: Rename to ...
2439 * arm-netbsd-tdep.h: ... this, adjust include.
2440 * configure.nat: Adjust file lists.
2441 * configure.tgt: Likewise.
2442 * hppa-nbsd-nat.c: Rename to ...
2443 * hppa-netbsd-nat.c: ... this, adjust include.
2444 * hppa-nbsd-tdep.c: Rename to ...
2445 * hppa-netbsd-tdep.c: ... this, adjust include.
2446 * i386-nbsd-nat.c: Rename to ...
2447 * i386-netbsd-nat.c: ... this, adjust include.
2448 * i386-nbsd-tdep.c: Rename to ...
2449 * i386-netbsd-tdep.c: ... this, adjust include.
2450 * m68k-bsd-nat.c: Adjust include.
2451 * mips-nbsd-nat.c: Rename to ...
2452 * mips-netbsd-nat.c: ... this, adjust include.
2453 * mips-nbsd-tdep.c: Rename to ...
2454 * mips-netbsd-tdep.c: ... this, adjust include.
2455 * mips-nbsd-tdep.h: Rename to ...
2456 * mips-netbsd-tdep.h: ... this.
2457 * nbsd-nat.c: Rename to ...
2458 * netbsd-nat.c: ... this, adjust include.
2459 * nbsd-nat.h: Rename to ...
2460 * netbsd-nat.h: ... this, adjust include.
2461 * nbsd-tdep.c: Rename to ...
2462 * netbsd-tdep.c: ... this, adjust include.
2463 * nbsd-tdep.h: Rename to ...
2464 * netbsd-tdep.h: ... this.
2465 * ppc-nbsd-nat.c: Rename to ...
2466 * ppc-netbsd-nat.c: ... this, adjust include.
2467 * ppc-nbsd-tdep.c: Rename to ...
2468 * ppc-netbsd-tdep.c: ... this, adjust include and comment.
2469 * ppc-nbsd-tdep.h: Rename to ...
2470 * ppc-netbsd-tdep.h: ... this.
2471 * sh-nbsd-nat.c: Rename to ...
2472 * sh-netbsd-nat.c: ... this, adjust include.
2473 * sh-nbsd-tdep.c: Rename to ...
2474 * sh-netbsd-tdep.c: ... this, adjust include.
2475 * sparc-nbsd-nat.c: Rename to ...
2476 * sparc-netbsd-nat.c: ... this.
2477 * sparc-nbsd-tdep.c: Rename to ...
2478 * sparc-netbsd-tdep.c: ... this, adjust include.
2479 * sparc64-nbsd-nat.c: Rename to ...
2480 * sparc64-netbsd-nat.c: ... this.
2481 * sparc64-nbsd-tdep.c: Rename to ...
2482 * sparc64-netbsd-tdep.c: ... this, adjust include.
2483 * sparc64-tdep.h: Adjust comment.
2484 * vax-bsd-nat.c: Adjust include.
2485 * vax-nbsd-tdep.c: Rename to ...
2486 * vax-netbsd-tdep.c: ... this, adjust include.
2487
d7a78e5c
TT
24882020-10-12 Tom Tromey <tom@tromey.com>
2489
2490 * target.h (struct target_ops) <get_section_table>: Update.
2491 (target_get_section_table): Update.
2492 * target.c (target_get_section_table, target_section_by_addr)
2493 (memory_xfer_partial_1): Update.
2494 * target-section.h (target_section_table): Now an alias.
2495 * target-delegates.c: Rebuild.
2496 * target-debug.h (target_debug_print_target_section_table_p):
2497 Rename from target_debug_print_struct_target_section_table_p.
2498 * symfile.c (build_section_addr_info_from_section_table): Update.
2499 * solib.c (solib_map_sections, solib_contains_address_p): Update.
2500 * solib-svr4.c (scan_dyntag): Update.
2501 * solib-dsbt.c (scan_dyntag): Update.
2502 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2503 Update.
2504 * record-full.c (record_full_core_target::xfer_partial): Update.
2505 * progspace.h (struct program_space) <target_sections>: Update.
2506 * exec.h (print_section_info): Update.
2507 * exec.c (exec_target::close, build_section_table)
2508 (add_target_sections, add_target_sections_of_objfile)
2509 (remove_target_sections, exec_on_vfork)
2510 (section_table_available_memory)
2511 (section_table_xfer_memory_partial)
2512 (exec_target::get_section_table, exec_target::xfer_partial)
2513 (print_section_info, set_section_command)
2514 (exec_set_section_address, exec_target::has_memory): Update.
2515 * corelow.c (core_target::build_file_mappings)
2516 (core_target::xfer_partial, core_target::info_proc_mappings)
2517 (core_target::info_proc_mappings): Update.
2518 * bfd-target.c (class target_bfd): Update
2519
eda214ce
TT
25202020-10-12 Tom Tromey <tom@tromey.com>
2521
2522 * progspace.c (program_space::~program_space): Don't call
2523 clear_section_table.
2524 * exec.h (clear_section_table): Don't declare.
2525 * exec.c (exec_target::close): Update.
2526 (clear_section_table): Remove.
2527
91840ee3
TT
25282020-10-12 Tom Tromey <tom@tromey.com>
2529
2530 * exec.c (add_target_sections_of_objfile): Simplify.
2531
2d128614
TT
25322020-10-12 Tom Tromey <tom@tromey.com>
2533
2534 * solib.c (solib_map_sections): Update.
2535 * record-full.c (record_full_core_open_1): Update.
2536 * exec.h (build_section_table): Return a target_section_table.
2537 * exec.c (exec_file_attach): Update.
2538 (build_section_table): Return a target_section_table.
2539 * corelow.c (core_target::core_target): Update.
2540 * bfd-target.c (target_bfd::target_bfd): Update.
2541
bb2a6777
TT
25422020-10-12 Tom Tromey <tom@tromey.com>
2543
2544 * target.c (target_section_by_addr, memory_xfer_partial_1):
2545 Update.
2546 * target-section.h (struct target_section_table): Use
2547 std::vector.
2548 * symfile.h (build_section_addr_info_from_section_table): Take a
2549 target_section_table.
2550 * symfile.c (build_section_addr_info_from_section_table): Take a
2551 target_section_table.
2552 * solist.h (struct so_list) <sections>: Change type.
2553 <sections_end>: Remove.
2554 * solib.c (solib_map_sections, clear_so, solib_read_symbols)
2555 (solib_contains_address_p): Update.
2556 * solib-svr4.c (scan_dyntag): Update.
2557 * solib-dsbt.c (scan_dyntag): Update.
2558 * remote.c (remote_target::remote_xfer_live_readonly_partial):
2559 Update.
2560 * record-full.c (record_full_core_start, record_full_core_end):
2561 Remove.
2562 (record_full_core_sections): New global.
2563 (record_full_core_open_1, record_full_core_target::xfer_partial):
2564 Update.
2565 * exec.h (build_section_table, section_table_xfer_memory_partial)
2566 (add_target_sections): Take a target_section_table.
2567 * exec.c (exec_file_attach, clear_section_table): Update.
2568 (resize_section_table): Remove.
2569 (build_section_table, add_target_sections): Take a
2570 target_section_table.
2571 (add_target_sections_of_objfile, remove_target_sections)
2572 (exec_on_vfork): Update.
2573 (section_table_available_memory): Take a target_section_table.
2574 (section_table_read_available_memory): Update.
2575 (section_table_xfer_memory_partial): Take a target_section_table.
2576 (print_section_info, set_section_command)
2577 (exec_set_section_address, exec_target::has_memory): Update.
2578 * corelow.c (class core_target) <m_core_section_table,
2579 m_core_file_mappings>: Remove braces.
2580 <~core_target>: Remove.
2581 (core_target::core_target): Update.
2582 (core_target::~core_target): Remove.
2583 (core_target::build_file_mappings)
2584 (core_target::xfer_memory_via_mappings)
2585 (core_target::xfer_partial, core_target::info_proc_mappings):
2586 Update.
2587 * bfd-target.c (target_bfd::xfer_partial): Update.
2588 (target_bfd::target_bfd): Update.
2589 (target_bfd::~target_bfd): Remove.
2590
7b466b10
TT
25912020-10-12 Tom Tromey <tom@tromey.com>
2592
2593 * target.h (struct target_section, struct target_section_table):
2594 Move to target-section.h.
2595 * target-section.h: New file.
2596
87a37e5e
PA
25972020-10-12 Pedro Alves <pedro@palves.net>
2598
2599 PR exp/26602
2600 * valops.c (struct struct_field_searcher): New.
2601 (update_search_result): Rename to ...
2602 (struct_field_searcher::update_result): ... this. Simplify
2603 prototype. Record all found fields.
2604 (do_search_struct_field): Rename to ...
2605 (struct_field_searcher::search): ... this. Simplify prototype.
2606 Maintain stack of visited baseclass path. Call update_result for
2607 fields too. Keep searching fields in baseclasses instead of
2608 stopping at the first found field.
2609 (search_struct_field): Use struct_field_searcher. When looking
2610 for fields, report ambiguous access attempts.
2611
9370fd51
AB
26122020-10-11 Andrew Burgess <andrew.burgess@embecosm.com>
2613
2614 * frame.c (inside_main_func): Check full symbols as well as
2615 minimal symbols.
2616
59c8a30b
JB
26172020-10-09 Joel Brobecker <brobecker@adacore.com>
2618
2619 * ada-lang.c (advance_wild_match): Rewrite the function's
2620 description. Change the type of target0, t0 and t1 to char.
2621
7c184d33
TT
26222020-10-09 Tom Tromey <tromey@adacore.com>
2623
2624 * dwarf2/read.c (dwarf2_add_field): Handle signed offsets.
2625
5c4258f4
TT
26262020-10-09 Tom Tromey <tromey@adacore.com>
2627
2628 * ada-lang.h (ada_encode): Return std::string.
2629 * ada-lang.c (ada_encode_1): Return std::string.
2630 (ada_encode): Likewise.
2631 (type_from_tag, ada_lookup_name_info::ada_lookup_name_info):
2632 Update.
2633 * ada-exp.y (block_lookup, write_var_or_type): Update.
2634
3d87245c
HD
26352020-10-09 Hannes Domani <ssbssa@yahoo.de>
2636
2637 PR exp/26714
2638 * printcmd.c (print_formatted): Handle void results as
2639 unformatted prints.
2640
bbb826f5
AB
26412020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2642
2643 * arch/aarch32.c (aarch32_create_target_description): Release the
2644 target_desc_up as late as possible.
2645 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2646 * arch/amd64.c (amd64_create_target_description): Likewise.
2647 * arch/arc.c (arc_create_target_description): Return a
2648 target_desc_up, don't release it.
2649 * arch/arc.h (arc_create_target_description): Update declaration.
2650 (arc_lookup_target_description): Move target_desc_up into the
2651 cache, and return a borrowed pointer.
2652 * arch/arm.c (arm_create_target_description): Release the
2653 target_desc_up as late as possible.
2654 * arch/i386.c (i386_create_target_description): Likewise.
2655 * arch/riscv.h (riscv_create_target_description): Update
2656 declaration to match definition.
2657 * arch/tic6x.c (tic6x_create_target_description): Release the
2658 target_desc_up as late as possible.
2659
361cb219
AB
26602020-10-09 Andrew Burgess <andrew.burgess@embecosm.com>
2661
2662 * Makefile.in: Include Makefile.gnulib.inc. Don't define LIBGNU
2663 or INCGNU. Make use of LIBGNU_EXTRA_LIBS when linking.
2664
f5c4b229
JV
26652020-10-09 Jan Vrany <jan.vrany@labware.com>
2666
2667 * source.c (directory_command): Notify observers that "directories"
2668 parameter has changed.
2669
b2701685
TT
26702020-10-08 Tom Tromey <tom@tromey.com>
2671
2672 * cli/cli-cmds.c (print_disassembly): Style function name and
2673 addresses. Add _() wrappers.
2674
ada508b6
SV
26752020-10-08 Shahab Vahedi <shahab@synopsys.com>
2676
2677 * NEWS: Mention ARC support in GDBserver.
2678
51a948fd
AB
26792020-10-08 Andrew Burgess <andrew.burgess@embecosm.com>
2680
2681 * arch/aarch32.c (aarch32_create_target_description): Release
2682 unique_ptr returned from allocate_target_description.
2683 * arch/aarch64.c (aarch64_create_target_description): Likewise.
2684 * arch/amd64.c (amd64_create_target_description): Likewise.
2685 * arch/arc.c (arc_create_target_description): Likewise.
2686 * arch/arm.c (arm_create_target_description): Likewise.
2687 * arch/i386.c (i386_create_target_description): Likewise.
2688 * arch/riscv.c (riscv_create_target_description): Update return
2689 type. Handle allocate_target_description returning a unique_ptr.
2690 (riscv_lookup_target_description): Update to handle unique_ptr.
2691 * arch/tic6x.c (tic6x_create_target_description): Release
2692 unique_ptr returned from allocate_target_description.
2693 * features/microblaze-with-stack-protect.c: Regenerate.
2694 * features/microblaze.c: Regenerate.
2695 * features/mips-dsp-linux.c: Regenerate.
2696 * features/mips-linux.c: Regenerate.
2697 * features/mips64-dsp-linux.c: Regenerate.
2698 * features/mips64-linux.c: Regenerate.
2699 * features/nds32.c: Regenerate.
2700 * features/nios2.c: Regenerate.
2701 * features/or1k.c: Regenerate.
2702 * features/rs6000/powerpc-32.c: Regenerate.
2703 * features/rs6000/powerpc-32l.c: Regenerate.
2704 * features/rs6000/powerpc-403.c: Regenerate.
2705 * features/rs6000/powerpc-403gc.c: Regenerate.
2706 * features/rs6000/powerpc-405.c: Regenerate.
2707 * features/rs6000/powerpc-505.c: Regenerate.
2708 * features/rs6000/powerpc-601.c: Regenerate.
2709 * features/rs6000/powerpc-602.c: Regenerate.
2710 * features/rs6000/powerpc-603.c: Regenerate.
2711 * features/rs6000/powerpc-604.c: Regenerate.
2712 * features/rs6000/powerpc-64.c: Regenerate.
2713 * features/rs6000/powerpc-64l.c: Regenerate.
2714 * features/rs6000/powerpc-7400.c: Regenerate.
2715 * features/rs6000/powerpc-750.c: Regenerate.
2716 * features/rs6000/powerpc-860.c: Regenerate.
2717 * features/rs6000/powerpc-altivec32.c: Regenerate.
2718 * features/rs6000/powerpc-altivec32l.c: Regenerate.
2719 * features/rs6000/powerpc-altivec64.c: Regenerate.
2720 * features/rs6000/powerpc-altivec64l.c: Regenerate.
2721 * features/rs6000/powerpc-e500.c: Regenerate.
2722 * features/rs6000/powerpc-e500l.c: Regenerate.
2723 * features/rs6000/powerpc-isa205-32l.c: Regenerate.
2724 * features/rs6000/powerpc-isa205-64l.c: Regenerate.
2725 * features/rs6000/powerpc-isa205-altivec32l.c: Regenerate.
2726 * features/rs6000/powerpc-isa205-altivec64l.c: Regenerate.
2727 * features/rs6000/powerpc-isa205-ppr-dscr-vsx32l.c: Regenerate.
2728 * features/rs6000/powerpc-isa205-ppr-dscr-vsx64l.c: Regenerate.
2729 * features/rs6000/powerpc-isa205-vsx32l.c: Regenerate.
2730 * features/rs6000/powerpc-isa205-vsx64l.c: Regenerate.
2731 * features/rs6000/powerpc-isa207-htm-vsx32l.c: Regenerate.
2732 * features/rs6000/powerpc-isa207-htm-vsx64l.c: Regenerate.
2733 * features/rs6000/powerpc-isa207-vsx32l.c: Regenerate.
2734 * features/rs6000/powerpc-isa207-vsx64l.c: Regenerate.
2735 * features/rs6000/powerpc-vsx32.c: Regenerate.
2736 * features/rs6000/powerpc-vsx32l.c: Regenerate.
2737 * features/rs6000/powerpc-vsx64.c: Regenerate.
2738 * features/rs6000/powerpc-vsx64l.c: Regenerate.
2739 * features/rs6000/rs6000.c: Regenerate.
2740 * features/rx.c: Regenerate.
2741 * features/s390-gs-linux64.c: Regenerate.
2742 * features/s390-linux32.c: Regenerate.
2743 * features/s390-linux32v1.c: Regenerate.
2744 * features/s390-linux32v2.c: Regenerate.
2745 * features/s390-linux64.c: Regenerate.
2746 * features/s390-linux64v1.c: Regenerate.
2747 * features/s390-linux64v2.c: Regenerate.
2748 * features/s390-te-linux64.c: Regenerate.
2749 * features/s390-tevx-linux64.c: Regenerate.
2750 * features/s390-vx-linux64.c: Regenerate.
2751 * features/s390x-gs-linux64.c: Regenerate.
2752 * features/s390x-linux64.c: Regenerate.
2753 * features/s390x-linux64v1.c: Regenerate.
2754 * features/s390x-linux64v2.c: Regenerate.
2755 * features/s390x-te-linux64.c: Regenerate.
2756 * features/s390x-tevx-linux64.c: Regenerate.
2757 * features/s390x-vx-linux64.c: Regenerate.
2758 * mips-tdep.c (_initialize_mips_tdep): Release unique_ptr returned
2759 from allocate_target_description.
2760 * target-descriptions.c (allocate_target_description): Update
2761 return type.
2762 (print_c_tdesc::visit_pre): Release unique_ptr returned from
2763 allocate_target_description.
2764
485c47e5
TT
27652020-10-07 Tom Tromey <tromey@adacore.com>
2766
2767 * unittests/search-memory-selftests.c: New file.
2768 * Makefile.in (SELFTESTS_SRCS): Add
2769 unittests/search-memory-selftests.c.
2770
3a135a91
TT
27712020-10-07 Tom Tromey <tromey@adacore.com>
2772
2773 PR gdb/16930:
2774 * findcmd.c (_initialize_mem_search): Mention that the range is
2775 inclusive.
2776
4a72de73
TT
27772020-10-07 Tom Tromey <tromey@adacore.com>
2778
2779 * target.h (simple_search_memory): Don't declare.
2780 * target.c (simple_search_memory): Move to gdbsupport.
2781 (default_search_memory): Update.
2782 * remote.c (remote_target::search_memory): Update.
2783
a038ffd8
SM
27842020-10-07 Simon Marchi <simon.marchi@efficios.com>
2785
2786 * Makefile.in (COMPILE): Add CXXFLAGS.
2787 (INTERNAL_CFLAGS_BASE): Remove CXXFLAGS.
2788 (check-headers): Add CXXFLAGS.
2789
cc463201
AK
27902020-10-07 Anton Kolesov <anton.kolesov@synopsys.com>
2791
2792 * arc-linux-tdep.h: New file.
2793 * arc-linux-tdep.c (arc_linux_core_reg_offsets,
2794 arc_linux_supply_gregset, arc_linux_supply_v2_regset,
2795 arc_linux_collect_gregset, arc_linux_collect_v2_regset,
2796 arc_linux_gregset, arc_linux_v2_regset,
2797 arc_linux_iterate_over_regset_sections,
2798 arc_linux_core_read_description): Implement.
2799 (arc_linux_init_osabi): Set iterate_over_regset_sections.
2800 * arc-tdep.h (ARC_OFFSET_NO_REGISTER): Declare.
2801 (arc_gdbarch_features_create): Add.
2802 * arc-tdep.c (arc_gdbarch_features_create): Not static anymore.
2803
e4bd363f
SV
28042020-10-07 Shahab Vahedi <shahab@synopsys.com>
2805
2806 * arch/arc.h: Rename "arc_gdbarch_features" to
2807 "arc_arch_features".
2808 * arc-tdep.h: Likewise.
2809 * arc-tdep.c: Likewise.
2810
b68bef99
TBA
28112020-10-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
2812
2813 * infcmd.c (attach_command): Remove the redundant call to
2814 `clear_proceed_status`.
2815
4641551a
KR
28162020-10-07 Kamil Rytarowski <n54@gmx.com>
2817
2818 * nat/netbsd-nat.c (write_memory, read_memory): Update.
2819
91e5e8db
KR
28202020-10-07 Kamil Rytarowski <n54@gmx.com>
2821
2822 * nat/netbsd-nat.c (write_memory, read_memory): Add.
2823 * nat/netbsd-nat.h (write_memory, read_memory): Likewise.
2824 * nbsd-nat.c (nbsd_nat_target::xfer_partial): Update.
2825
64c03bdb
SM
28262020-10-07 Simon Marchi <simon.marchi@polymtl.ca>
2827
2828 * break-catch-sig.c (signal_catch_counts): Make a static arrray.
2829 (_initialize_break_catch_sig): Don't allocate array.
2830
31a8f60f
AB
28312020-10-06 Andrew Burgess <andrew.burgess@embecosm.com>
2832
2833 * symtab.c (find_pc_line): Return unmapped addresses when the
2834 requested address is also unmapped.
2835
9e6dbd8b
SM
28362020-10-05 Simon Marchi <simon.marchi@efficios.com>
2837
2838 * Makefile.in (HFILES_NO_SRCDIR): Remove tui/tui-windata.h, add
2839 tui/tui-out.h.
2840
a1d217e8
SM
28412020-10-05 Simon Marchi <simon.marchi@efficios.com>
2842
2843 * amd64-windows-tdep.c (amd64_windows_return_value): Use
2844 type::is_vector instead of TYPE_VECTOR.
2845
7d144117
SM
28462020-10-05 Simon Marchi <simon.marchi@polymtl.ca>
2847
2848 * auto-load.c (auto_load_objfile_script_1): Don't use
2849 debugfile_holder as temporary variable when stripping drive
2850 letter.
2851
cd096ec8
HD
28522020-10-05 Hannes Domani <ssbssa@yahoo.de>
2853
2854 * amd64-windows-tdep.c (amd64_windows_passed_by_integer_register):
2855 Add TYPE_CODE_COMPLEX.
2856 (amd64_windows_return_value): Fix types returned via XMM0.
2857
b58e7f72
AH
28582020-10-05 Alan Hayward <alan.hayward@arm.com>
2859
2860 * MAINTAINERS (Responsible Maintainers): Add Luis Machado to
2861 AArch64/ARM maintainers.
2862
8d378f27
SM
28632020-10-04 Simon Marchi <simon.marchi@polymtl.ca>
2864
2865 * NEWS: Mention set/show debug event-loop.
2866
d5519913
TT
28672020-10-02 Tom Tromey <tromey@adacore.com>
2868
2869 * skip.c (skiplist_entry::skiplist_entry): Unconditionally use
2870 REG_EXTENDED.
2871
18b67edc
SM
28722020-10-02 Simon Marchi <simon.marchi@efficios.com>
2873
2874 * aix-thread.c (aix_thread_inferior_created): Remove parameters.
2875 * procfs.c (procfs_inferior_created): Remove.
2876 (_initialize_procfs): Don't register procfs_inferior_created.
2877
6b01403b
SM
28782020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2879
2880 * async-event.c (invoke_async_signal_handlers): Add debug
2881 print.
2882 (check_async_event_handlers): Likewise.
2883 * event-top.c (show_debug_event_loop): New function.
2884 (_initialize_event_top): Register "set debug event-loop"
2885 setting.
2886
ba988419
SM
28872020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2888
2889 * debug.c (debug_prefixed_vprintf): Move to gdbsupport.
2890 * debug.h: Remove.
2891 * infrun.c: Include gdbsupport/common-debug.h.
2892 * linux-nat.c: Likewise.
2893
db20ebdf
SM
28942020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2895
2896 * async-event.h (create_async_signal_handler): Add name
2897 parameter.
2898 (create_async_event_handler): Likewise.
2899 * async-event.c (struct async_signal_handler) <name>: New field.
2900 (struct async_event_handler) <name>: New field.
2901 (create_async_signal_handler): Assign name.
2902 (create_async_event_handler): Assign name.
2903 * event-top.c (async_init_signals): Pass name when creating
2904 handler.
2905 * infrun.c (_initialize_infrun): Likewise.
2906 * record-btrace.c (record_btrace_push_target): Likewise.
2907 * record-full.c (record_full_open): Likewise.
2908 * remote-notif.c (remote_notif_state_allocate): Likewise.
2909 * remote.c (remote_target::open_1): Likewise.
2910 * tui/tui-win.c (tui_initialize_win): Likewise.
2911
2554f6f5
SM
29122020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2913
2914 * async-event.c (initialize_async_signal_handlers): Pass name to
2915 add_file_handler
2916 * event-top.c (ui_register_input_event_handler): Likewise.
2917 * linux-nat.c (linux_nat_target::async): Likewise.
2918 * run-on-main-thread.c (_initialize_run_on_main_thread):
2919 Likewise
2920 * ser-base.c (reschedule): Likewise.
2921 (ser_base_async): Likewise.
2922 * tui/tui-io.c: Likewise.
2923 * top.h (struct ui) <num>: New field.
2924 * top.c (highest_ui_num): New variable.
2925 (ui::ui): Initialize num.
2926
a7aba266
SM
29272020-10-02 Simon Marchi <simon.marchi@polymtl.ca>
2928
2929 * observable.h <inferior_created>: Remove parameters. Update all
2930 listeners.
2931 * inferior.h (post_create_inferior): Remove target parameter.
2932 Update all callers.
2933
048fde1e 29342020-10-02 Nitika Achra <Nitika.Achra@amd.com>
2935
2936 * dwarf2/macro.c (dwarf_decode_macro_bytes): Handle DW_MACRO_define_strx
2937 and DW_MACRO_undef_strx.
2938 (dwarf_decode_macros): Likewise
2939 * dwarf2/read.c (dwarf_decode_macros): Pass str_offsets_base in the parameters
2940 which is the value of DW_AT_str_offsets_base.
2941 * dwarf2/macro.h (dwarf_decode_macros): Modify the definition to include
2942 str_offsets_base.
2943
064280be
KR
29442020-10-01 Kamil Rytarowski <n54@gmx.com>
2945
2946 * i386-tdep.h (i386nbsd_sc_reg_offset): Remove.
2947
6ff33035
KR
29482020-10-01 Kamil Rytarowski <n54@gmx.com>
2949
2950 * i386-bsd-nat.c (_initialize_i386bsd_nat): Update.
2951 * i386-nbsd-tdep.c (i386nbsd_sc_reg_offset): Now static.
2952
1eb6eb79
KR
29532020-10-01 Kamil Rytarowski <n54@gmx.com>
2954
2955 * i386-bsd-nat.c: Include "x86-bsd-nat.h".
2956
95eb9e54
TV
29572020-09-30 Tom de Vries <tdevries@suse.de>
2958
2959 PR symtab/26683
2960 * dwarf2/read.c (dwarf2_name): Update attr_name after attr is updated.
2961
cae21f8e
TT
29622020-09-30 Tom Tromey <tromey@adacore.com>
2963
2964 * dwarf2/read.c (handle_variant): Use constant_value.
2965
529908cb
TT
29662020-09-29 Tom Tromey <tom@tromey.com>
2967
2968 * dwarf2/read.c (lookup_dwo_id, get_type_unit_group)
2969 (read_file_scope, dwarf2_get_pc_bounds)
2970 (dwarf2_record_block_ranges, dwarf2_add_field, get_alignment)
2971 (read_structure_type, handle_struct_member_die)
2972 (read_enumeration_type, read_array_type, read_set_type)
2973 (read_tag_pointer_type, read_tag_reference_type)
2974 (read_subroutine_type, read_base_type, read_subrange_type)
2975 (read_full_die_1, partial_die_info::read)
2976 (partial_die_info::read, by, new_symbol)
2977 (dwarf2_const_value_data, dwarf2_const_value_attr)
2978 (dump_die_shallow, dwarf2_fetch_constant_bytes)
2979 (prepare_one_comp_unit): Update.
2980 * dwarf2/attribute.h (DW_UNSND): Remove.
2981
c45bc3f8
TT
29822020-09-29 Tom Tromey <tom@tromey.com>
2983
2984 * dwarf2/read.c (read_func_scope, prototyped_function_p)
2985 (read_subroutine_type, partial_die_info::read)
2986 (dwarf2_flag_true_p, new_symbol, dump_die_shallow)
2987 (dwarf2_add_member_fn): Update.
2988 * dwarf2/attribute.h (struct attribute) <as_boolean>: Declare.
2989 * dwarf2/attribute.c (attribute::as_boolean): New method.
2990
23dca5c3
TT
29912020-09-29 Tom Tromey <tom@tromey.com>
2992
2993 * dwarf2/read.c (dwarf2_add_field, dwarf2_add_member_fn): Update.
2994 * dwarf2/attribute.h (struct attribute) <as_virtuality>: New
2995 method.
2996 * dwarf2/attribute.c (attribute::as_virtuality): New method.
2997
52c14d11
TT
29982020-09-29 Tom Tromey <tom@tromey.com>
2999
3000 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: Check
3001 the attribute's form.
3002
e8e5c158
TT
30032020-09-29 Tom Tromey <tom@tromey.com>
3004
3005 * dwarf2/read.c (is_valid_DW_AT_defaulted): Move to attribute.c.
3006 (dwarf2_add_member_fn): Update.
3007 * dwarf2/attribute.h (struct attribute) <defaulted>: Declare.
3008 * dwarf2/attribute.c (attribute::defaulted): New method, from
3009 is_valid_DW_AT_defaulted.
3010
d4df075e
TT
30112020-09-29 Tom Tromey <tom@tromey.com>
3012
3013 * dwarf2/read.c (dw2_get_file_names_reader)
3014 (dwarf2_build_include_psymtabs, handle_DW_AT_stmt_list)
3015 (dwarf2_cu::setup_type_unit_groups, fill_in_loclist_baton)
3016 (dwarf2_symbol_mark_computed): Use as_unsigned.
3017 * dwarf2/attribute.h (struct attribute) <as_unsigned>: New
3018 method.
3019 <form_is_section_offset>: Update comment.
3020
bf23a268
TT
30212020-09-29 Tom Tromey <tom@tromey.com>
3022
3023 * dwarf2/read.c (dwarf2_access_attribute): Rename from
3024 dwarf2_default_access_attribute. Look up attribute.
3025 (dwarf2_add_field, dwarf2_add_type_defn, dwarf2_add_member_fn):
3026 Update.
3027
7a5f294d
TT
30282020-09-29 Tom Tromey <tom@tromey.com>
3029
3030 * dwarf2/read.c (skip_one_die): Update.
3031 (read_full_die_1): Change how reprocessing is done.
3032 (partial_die_info::read): Update.
3033 (read_attribute_value): Remove need_reprocess parameter.
3034 (read_attribute): Likewise.
3035 * dwarf2/attribute.h (struct attribute) <requires_reprocessing_p>:
3036 New method.
3037
36d378cf
TT
30382020-09-29 Tom Tromey <tom@tromey.com>
3039
3040 * dwarf2/read.c (read_attribute_reprocess, read_attribute_value)
3041 (dwarf2_const_value_attr, dump_die_shallow)
3042 (dwarf2_fetch_constant_bytes): Update.
3043 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Update
3044 comment.
3045 <set_address>: New method.
3046 (DW_ADDR): Remove.
3047 * dwarf2/attribute.c (attribute::form_is_ref): Update comment.
3048 (attribute::as_string, attribute::as_address): Add assert.
3049
fe56917a
TT
30502020-09-29 Tom Tromey <tom@tromey.com>
3051
3052 * dwarf2/read.c (read_cutu_die_from_dwo): Use OBSTACK_ZALLOC.
3053 (read_attribute_reprocess, read_attribute_value): Update.
3054 (read_attribute): Clear requires_reprocessing.
3055 * dwarf2/attribute.h (struct attribute) <as_unsigned_reprocess,
3056 form_requires_reprocessing>: New methods.
3057 <string_init>: Clear requires_reprocessing.
3058 <set_unsigned_reprocess>: New method.
3059 <name>: Shrink by one bit.
3060 <requires_reprocessing>: New member.
3061 * dwarf2/attribute.c (attribute::form_requires_reprocessing): New
3062 method.
3063
414ad644
TT
30642020-09-29 Tom Tromey <tom@tromey.com>
3065
3066 * dwarf2/read.c (read_attribute_value): Update.
3067 * dwarf2/attribute.h (struct attribute) <form_is_unsigned,
3068 set_unsigned>: New methods.
3069 * dwarf2/attribute.c (attribute::form_is_unsigned): New method.
3070
1bc397c5
TT
30712020-09-29 Tom Tromey <tom@tromey.com>
3072
3073 * dwarf2/read.c (get_alignment, read_array_order)
3074 (read_attribute_value, dwarf2_const_value_attr)
3075 (dump_die_shallow, dwarf2_fetch_constant_bytes): Update.
3076 * dwarf2/attribute.h (struct attribute) <as_signed, set_signed>:
3077 New methods.
3078 (DW_SND): Remove.
3079
630ed6b9
TT
30802020-09-29 Tom Tromey <tom@tromey.com>
3081
3082 * dwarf2/read.c (read_attribute_value, lookup_die_type)
3083 (dump_die_shallow, follow_die_sig, get_DW_AT_signature_type):
3084 Update.
3085 * dwarf2/attribute.h (struct attribute) <as_signature,
3086 set_signature>: New methods.
3087 (DW_SIGNATURE): Remove.
3088
9d2246fc
TT
30892020-09-29 Tom Tromey <tom@tromey.com>
3090
3091 * dwarf2/read.c (read_call_site_scope)
3092 (handle_data_member_location, dwarf2_add_member_fn)
3093 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
3094 (partial_die_info::read, read_attribute_value)
3095 (var_decode_location, dwarf2_const_value_attr, dump_die_shallow)
3096 (dwarf2_fetch_die_loc_sect_off, dwarf2_fetch_constant_bytes)
3097 (dwarf2_symbol_mark_computed): Update.
3098 * dwarf2/attribute.h (struct attribute) <as_block, set_block>: New
3099 methods.
3100 (DW_BLOCK): Remove.
3101 * dwarf2/attribute.c (attribute::form_is_block): Add
3102 DW_FORM_data16.
3103
c6481205
TT
31042020-09-29 Tom Tromey <tom@tromey.com>
3105
3106 * dwarf2/read.c (read_cutu_die_from_dwo)
3107 (read_attribute_reprocess, read_attribute_value, read_attribute)
3108 (dwarf2_const_value_attr, dwarf2_name, dump_die_shallow)
3109 (dwarf2_fetch_constant_bytes): Update.
3110 * dwarf2/attribute.h (struct attribute) <form_is_string>: Declare.
3111 <set_string_noncanonical, set_string_canonical>: New methods.
3112 <string_is_canonical>: Update comment.
3113 <canonical_string_p>: Add assert.
3114 (DW_STRING, DW_STRING_IS_CANONICAL): Remove.
3115 * dwarf2/attribute.c (attribute::form_is_string): New method.
3116 (attribute::string): Use it.
3117
3b64bf15
TT
31182020-09-29 Tom Tromey <tom@tromey.com>
3119
3120 * dwarf2/read.c (anonymous_struct_prefix, dwarf2_name)
3121 (dump_die_shallow): Use canonical_string_p.
3122 * dwarf2/attribute.h (struct attribute) <canonical_string_p>: New
3123 method.
3124
2c830f54
TT
31252020-09-29 Tom Tromey <tom@tromey.com>
3126
3127 * dwarf2/read.c (partial_die_info::read)
3128 (dwarf2_const_value_attr, anonymous_struct_prefix, )
3129 (dwarf2_name, dwarf2_fetch_constant_bytes): Use
3130 attribute::as_string.
3131
6c412691
TT
31322020-09-29 Tom Tromey <tom@tromey.com>
3133
3134 * dwarf2/attribute.c (attribute::address): Don't use DW_UNSND or
3135 DW_ADDR.
3136 (attribute::string): Don't use DW_STRING.
3137 (attribute::get_ref_die_offset): Don't use DW_UNSND.
3138 (attribute::constant_value): Don't use DW_UNSND or DW_SND.
3139
95f982e5
TT
31402020-09-29 Tom Tromey <tom@tromey.com>
3141
3142 * dwarf2/read.c (dwarf2_find_base_address, read_call_site_scope)
3143 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
3144 (partial_die_info::read, dwarf2_string_attr, new_symbol): Update.
3145 * dwarf2/attribute.h (struct attribute): Rename methods.
3146 * dwarf2/attribute.c (attribute::as_address): Rename from
3147 value_as_address.
3148 (attribute::as_string): Rename from value_as_string.
3149
f800b00e
TT
31502020-09-29 Tom Tromey <tom@tromey.com>
3151
3152 * dwarf2/read.c (partial_die_info::read) <case
3153 DW_AT_linkage_name>: Use value_as_string.
3154 (dwarf2_string_attr): Use value_as_string.
3155 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
3156 method.
3157 * dwarf2/attribute.c (attribute::value_as_string): New method.
3158
de38d64a
PA
31592020-09-29 Pedro Alves <pedro@palves.net>
3160
3161 * unittests/enum-flags-selftests.c: Check whether __GNUC__ is
3162 defined before using '#pragma GCC diagnostic' instead of checking
3163 __clang__.
3164
9aed480c
TT
31652020-09-28 Tom Tromey <tom@tromey.com>
3166
3167 * infrun.c (displaced_step_fixup, thread_still_needs_step_over)
3168 (handle_signal_stop): Update.
3169 * procfs.c (procfs_target::insert_watchpoint): Update.
3170 * target.h (target_have_steppable_watchpoint): Now a function.
3171
8a3ecb79
TT
31722020-09-28 Tom Tromey <tom@tromey.com>
3173
3174 * infrun.c (set_schedlock_func): Update.
3175 * target.h (target_can_lock_scheduler): Now a function.
3176
55f6301a
TT
31772020-09-28 Tom Tromey <tom@tromey.com>
3178
3179 * inferior.h (class inferior) <has_execution>: Update.
3180 * windows-tdep.c (windows_solib_create_inferior_hook): Update.
3181 * valops.c (find_function_in_inferior)
3182 (value_allocate_space_in_inferior): Update.
3183 * top.c (kill_or_detach): Update.
3184 * target.c (target_preopen, set_target_permissions): Update.
3185 (target_has_execution_current): Remove.
3186 * sparc64-tdep.c (adi_examine_command, adi_assign_command):
3187 Update.
3188 * solib.c (update_solib_list, reload_shared_libraries): Update.
3189 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
3190 * solib-dsbt.c (enable_break): Update.
3191 * score-tdep.c (score7_fetch_inst): Update.
3192 * rs6000-nat.c (rs6000_nat_target::xfer_shared_libraries):
3193 Update.
3194 * remote.c (remote_target::start_remote)
3195 (remote_target::remote_check_symbols, remote_target::open_1)
3196 (remote_target::remote_detach_1, remote_target::verify_memory)
3197 (remote_target::xfer_partial, remote_target::read_description)
3198 (remote_target::get_min_fast_tracepoint_insn_len): Update.
3199 * record-full.c (record_full_open_1): Update.
3200 * record-btrace.c (record_btrace_target_open): Update.
3201 * objc-lang.c (lookup_objc_class, lookup_child_selector)
3202 (value_nsstring): Update.
3203 * linux-thread-db.c (add_thread_db_info)
3204 (thread_db_find_new_threads_silently, check_thread_db_callback)
3205 (try_thread_db_load_1, record_thread): Update.
3206 * linux-tdep.c (linux_info_proc, linux_vsyscall_range_raw):
3207 Update.
3208 * linux-fork.c (checkpoint_command): Update.
3209 * infrun.c (set_non_stop, set_observer_mode)
3210 (check_multi_target_resumption, for_each_just_stopped_thread)
3211 (maybe_remove_breakpoints, normal_stop)
3212 (class infcall_suspend_state): Update.
3213 * infcmd.c (ERROR_NO_INFERIOR, kill_if_already_running)
3214 (info_program_command, attach_command): Update.
3215 * infcall.c (call_function_by_hand_dummy): Update.
3216 * inf-loop.c (inferior_event_handler): Update.
3217 * gcore.c (gcore_command, derive_heap_segment): Update.
3218 * exec.c (exec_file_command): Update.
3219 * eval.c (evaluate_subexp): Update.
3220 * compile/compile.c (compile_to_object): Update.
3221 * cli/cli-dump.c (restore_command): Update.
3222 * breakpoint.c (update_watchpoint)
3223 (update_inserted_breakpoint_locations)
3224 (insert_breakpoint_locations, get_bpstat_thread): Update.
3225 * target.h (target_has_execution): Remove macro.
3226 (target_has_execution_current): Don't declare.
3227 (target_has_execution): Rename from target_has_execution_1. Add
3228 argument default.
3229
05374cfd
TT
32302020-09-28 Tom Tromey <tom@tromey.com>
3231
3232 * mi/mi-main.c (exec_reverse_continue)
3233 (mi_cmd_list_target_features): Update.
3234 * infrun.c (set_exec_direction_func): Update.
3235 * target.c (default_execution_direction): Update.
3236 * reverse.c (exec_reverse_once): Update.
3237 * target.h (target_can_execute_reverse): Now a function.
3238
9dccd06e
TT
32392020-09-28 Tom Tromey <tom@tromey.com>
3240
3241 * tui/tui-regs.c (tui_get_register)
3242 (tui_data_window::show_registers): Update.
3243 * thread.c (scoped_restore_current_thread::restore)
3244 (scoped_restore_current_thread::scoped_restore_current_thread):
3245 Update.
3246 * regcache-dump.c (regcache_print): Update.
3247 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
3248 Update.
3249 * mi/mi-main.c (mi_cmd_data_write_register_values): Update.
3250 * mep-tdep.c (current_me_module, current_options): Update.
3251 * linux-thread-db.c (thread_db_load): Update.
3252 * infcmd.c (registers_info, info_vector_command)
3253 (info_float_command): Update.
3254 * ia64-tdep.c (ia64_frame_prev_register)
3255 (ia64_sigtramp_frame_prev_register): Update.
3256 * ia64-libunwind-tdep.c (libunwind_frame_prev_register): Update.
3257 * gcore.c (derive_stack_segment): Update.
3258 * frame.c (get_current_frame, has_stack_frames): Update.
3259 * findvar.c (language_defn::read_var_value): Update.
3260 * arm-tdep.c (arm_pc_is_thumb): Update.
3261 * target.c (target_has_registers): Rename from
3262 target_has_registers_1.
3263 * target.h (target_has_registers): Remove macro.
3264 (target_has_registers): Rename from target_has_registers_1.
3265
841de120
TT
32662020-09-28 Tom Tromey <tom@tromey.com>
3267
3268 * windows-tdep.c (tlb_make_value): Update.
3269 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3270 * thread.c (scoped_restore_current_thread::restore)
3271 (scoped_restore_current_thread::scoped_restore_current_thread)
3272 (thread_command): Update.
3273 * stack.c (backtrace_command_1, frame_apply_level_command)
3274 (frame_apply_all_command, frame_apply_command): Update.
3275 * infrun.c (siginfo_make_value, restore_infcall_control_state):
3276 Update.
3277 * gcore.c (derive_stack_segment): Update.
3278 * frame.c (get_current_frame, has_stack_frames): Update.
3279 * auxv.c (info_auxv_command): Update.
3280 * ada-tasks.c (ada_build_task_list): Update.
3281 * target.c (target_has_stack): Rename from target_has_stack_1.
3282 * target.h (target_has_stack): Remove macro.
3283 (target_has_stack): Rename from target_has_stack_1.
3284
a739972c
TT
32852020-09-28 Tom Tromey <tom@tromey.com>
3286
3287 * target.c (target_has_memory): Rename from target_has_memory_1.
3288 * tui/tui-regs.c (tui_data_window::show_registers): Update.
3289 * thread.c (scoped_restore_current_thread::restore)
3290 (scoped_restore_current_thread::scoped_restore_current_thread):
3291 Update.
3292 * frame.c (get_current_frame, has_stack_frames): Update.
3293 * target.h (target_has_memory): Remove macro.
3294 (target_has_memory): Rename from target_has_memory_1.
3295
5b8a4776
TT
32962020-09-28 Tom Tromey <tom@tromey.com>
3297
3298 * target.c (target_has_all_memory_1): Remove.
3299 * target.h (target_has_all_memory): Remove define.
3300 (target_has_all_memory_1): Don't declare.
3301
bd356ec6
SM
33022020-09-28 Simon Marchi <simon.marchi@polymtl.ca>
3303
3304 * ser-base.c: Adjust comments formatting.
3305
2c72d5e5
TT
33062020-09-27 Tom Tromey <tom@tromey.com>
3307
3308 PR tui/25342:
3309 * tui/tui-io.c (tui_puts): Rewrite. Move earlier.
3310
35a98237
TT
33112020-09-27 Tom Tromey <tom@tromey.com>
3312
3313 PR tui/25342:
3314 * tui/tui-winsource.c (tui_copy_source_line): Use ISNCTRL.
3315
9e820dec
TT
33162020-09-27 Tom Tromey <tom@tromey.com>
3317
3318 * unittests/tui-selftests.c: Update.
3319 * tui/tui-winsource.h (struct tui_source_window_base)
3320 <extra_margin, show_line_number, refresh_pad>: New methods.
3321 <m_max_length, m_pad>: New members.
3322 (tui_copy_source_line): Update.
3323 * tui/tui-winsource.c (tui_copy_source_line): Remove line_no,
3324 first_col, line_width, ndigits parameters. Add length.
3325 (tui_source_window_base::show_source_line): Write to pad. Line
3326 number now 0-based.
3327 (tui_source_window_base::refresh_pad): New method.
3328 (tui_source_window_base::show_source_content): Write to pad. Call
3329 refresh_pad.
3330 (tui_source_window_base::do_scroll_horizontal): Call refresh_pad,
3331 not refill.
3332 (tui_source_window_base::update_exec_info): Call
3333 show_line_number.
3334 * tui/tui-source.h (struct tui_source_window) <extra_margin>: New
3335 method.
3336 <m_digits>: New member.
3337 * tui/tui-source.c (tui_source_window::set_contents): Set m_digits
3338 and m_max_length.
3339 (tui_source_window::show_line_number): New method.
3340 * tui/tui-io.h (tui_puts): Fix comment.
3341 * tui/tui-disasm.c (tui_disasm_window::set_contents): Set
3342 m_max_length.
3343
c15c15c8
TT
33442020-09-27 Tom Tromey <tom@tromey.com>
3345
3346 * tui/tui-winsource.c
3347 (tui_source_window_base::set_is_exec_point_at): Don't call
3348 show_source_line.
3349
149830c1
TT
33502020-09-27 Tom Tromey <tom@tromey.com>
3351
3352 * python/py-tui.c (class tui_py_window) <refresh_window>: New
3353 method.
3354 <erase>: Update.
3355 <cursor_x, cursor_y>: Remove.
3356 <m_inner_window>: New member.
3357 (tui_py_window::rerender): Create inner window.
3358 (tui_py_window::output): Write to inner window.
3359
8f9929bb
GR
33602020-09-26 Gareth Rees <grees@undo.io> (tiny change)
3361
3362 PR python/26586
3363 * cli/cli-script.c (execute_control_commands): don't set
3364 instream to nullptr here as this breaks the from_tty argument
3365 to gdb.execute in Python.
3366 (execute_user_command): set instream to nullptr here instead.
3367
956bdb59
SM
33682020-09-25 Simon Marchi <simon.marchi@efficios.com>
3369
3370 * infrun.h (infrun_debug_printf): Fix formatting.
3371 * linux-nat.c (linux_nat_debug_printf): Fix formatting.
3372
3b93626b
SJ
33732020-09-25 Saagar Jha <saagar@saagarjha.com>
3374
3375 * compile/compile-object-load.h (struct munmap_list): Add
3376 explicitly-defined move constructor.
3377
b551a89f
TT
33782020-09-24 Tom Tromey <tromey@adacore.com>
3379
3380 PR tui/26638:
3381 * tui/tui-stack.h (struct tui_locator_window) <can_focus>: New
3382 method.
3383 * tui/tui-data.h (struct tui_win_info) <can_focus>: New method.
3384 * tui/tui-data.c (tui_next_win): Exclude non-focusable windows.
3385 (tui_prev_win): Rewrite.
3386
99bb393f
HD
33872020-09-23 Hannes Domani <ssbssa@yahoo.de>
3388
3389 * nat/windows-nat.c (handle_exception): Handle 64bit breakpoints
3390 in WOW64 processes as SIGINT.
3391 * nat/windows-nat.h: Make wow64_process a shared variable.
3392 * windows-nat.c: Remove static wow64_process variable.
3393
20a5fcbd
TT
33942020-09-23 Tom Tromey <tom@tromey.com>
3395
3396 PR symtab/25470:
3397 * value.c (unpack_long, pack_long, pack_unsigned_long): Handle bit
3398 offset and bit size.
3399 * printcmd.c (print_scalar_formatted): Handle zero-length
3400 integer.
3401 (print_scalar_formatted): Use bit_size_differs_p.
3402 * gdbtypes.h (enum type_specific_kind) <TYPE_SPECIFIC_INT>: New
3403 constant.
3404 (union type_specific): <int_stuff>: New member.
3405 (struct type) <bit_size_differs_p, bit_size, bit_offset>: New
3406 methods.
3407 * gdbtypes.c (init_integer_type, init_boolean_type): Initialize
3408 TYPE_SPECIFIC_FIELD.
3409 (recursive_dump_type, copy_type_recursive): Update.
3410 * dwarf2/read.c (read_base_type): Handle DW_AT_bit_size and
3411 DW_AT_data_bit_offset.
3412
bac51ab7
TT
34132020-09-23 Tom Tromey <tom@tromey.com>
3414
3415 * utils.h (class gdb_argv): Add move operators.
3416 <append>: New methods.
3417 * compile/compile.c (build_argc_argv): Remove.
3418 (compile_args_argc): Remove.
3419 (compile_args_argv): Change type.
3420 (set_compile_args): Simplify.
3421 (append_args): Remove.
3422 (filter_args): Remove argcp parameter.
3423 (get_args): Return gdb_argv. Simplify.
3424 (compile_to_object): Update.
3425
92677124
TT
34262020-09-23 Tom Tromey <tom@tromey.com>
3427
3428 * compile/compile-object-run.c (do_module_cleanup)
3429 <~do_module_cleanup> :Remove.
3430 (do_module_cleanup): Update.
3431 * compile/compile-object-load.h (struct munmap_list): Add move
3432 assignment operator.
3433 <source_file>: Now a std::string.
3434 <munmap_list>: Rename. No longer a pointer.
3435 * compile/compile-object-load.c (struct setup_sections_data): Add
3436 constructor.
3437 <setup_one_section>: Declare.
3438 <munmap_list>: Move earlier.
3439 <m_bfd>: New member.
3440 <m_last_size, m_last_section_first, m_last_prot,
3441 m_last_max_alignment>: Rename, add initializers where needed.
3442 (setup_sections_data::setup_one_section): Rename from
3443 setup_sections. Update.
3444 (compile_object_load): Update. Don't use bfd_map_over_sections.
3445
e616f60a
TT
34462020-09-23 Tom Tromey <tom@tromey.com>
3447
3448 * compile/compile-object-run.c (struct do_module_cleanup): Add
3449 parameters to constructor. Update destructor.
3450 <source_file, scope, scope_data, out_value_type, out_value_addr,
3451 munmap_list_head, objfile_name_string>: Remove.
3452 <module>: New member.
3453 (do_module_cleanup): Update.
3454 (compile_object_run): Update.
3455
e947a848
TT
34562020-09-23 Tom Tromey <tom@tromey.com>
3457
3458 * compile/compile.c (eval_compile_command): Update.
3459 * compile/compile-object-run.h (compile_object_run): Take a
3460 compile_module_up.
3461 * compile/compile-object-run.c (compile_object_run): Take a
3462 compile_module_up.
3463 * compile/compile-object-load.h (struct compile_module): Add
3464 constructor, destructor.
3465 (compile_module_up): New typedef.
3466 (compile_object_load): Return compile_object_up.
3467 * compile/compile-object-load.c (compile_object_load): Return
3468 compile_module_up.
3469
0dbf6ee6
TT
34702020-09-23 Tom Tromey <tom@tromey.com>
3471
3472 * compile/compile-object-run.c (struct do_module_cleanup): Add
3473 constructor, destructor.
3474 <objfile_name_string>: Don't use struct hack.
3475 (do_module_cleanup): Use delete.
3476 (compile_object_run): Use new.
3477
ebe824f5
TT
34782020-09-23 Tom Tromey <tom@tromey.com>
3479
3480 * compile/compile-cplus-types.c
3481 (compile_cplus_convert_struct_or_union): Use std::vector.
3482 (compile_cplus_convert_func): Likewise.
3483 * compile/compile-c-types.c (convert_func): Use std::vector.
3484
5dd918d9
TT
34852020-09-21 Tom Tromey <tromey@adacore.com>
3486
3487 * sparc-tdep.c (sparc32_skip_prologue): Use
3488 skip_prologue_using_sal.
3489
5486c517
TT
34902020-09-19 Tom Tromey <tom@tromey.com>
3491
3492 * symfile.c (add_section_size_callback): Remove.
3493 (load_one_section): Rename from load_section_callback. Change
3494 parameters.
3495 (generic_load): Use foreach.
3496
8a6bb1d1
TT
34972020-09-19 Tom Tromey <tom@tromey.com>
3498
3499 * exec.c (add_to_section_table): Remove.
3500 (build_section_table): Use foreach.
3501
08f93a1a
TT
35022020-09-19 Tom Tromey <tom@tromey.com>
3503
3504 * elfread.c (elf_locate_sections): Change parameters.
3505 (elf_symfile_read): Use foreach.
3506
03cd72b8
TT
35072020-09-19 Tom Tromey <tom@tromey.com>
3508
3509 * cli/cli-dump.c (struct callback_data): Remove.
3510 (restore_one_section): Rename from restore_section_callback.
3511 Change parameters.
3512 (restore_binary_file): Change parameters.
3513 (restore_command): Use foreach.
3514
f4f2b85f
TT
35152020-09-19 Tom Tromey <tom@tromey.com>
3516
3517 * gcore.c (make_output_phdrs): Remove 'ignored' parameter.
3518 (gcore_copy_callback): Likewise.
3519 (gcore_memory_sections): Use foreach.
3520
b35c1d1c
TT
35212020-09-19 Tom Tromey <tom@tromey.com>
3522
3523 * osabi.h (generic_elf_osabi_sniff_abi_tag_sections): Update.
3524 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Change
3525 parameters.
3526 (generic_elf_osabi_sniffer): Use foreach.
3527 * mips-sde-tdep.c (mips_sde_elf_osabi_sniffer): Use foreach.
3528 * arm-tdep.c (arm_elf_osabi_sniffer): Use foreach.
3529
5bb6e9dd
TT
35302020-09-19 Tom Tromey <tom@tromey.com>
3531
3532 * dwarf2/read.c (locate_dwz_sections): Change parameters.
3533 (dwarf2_get_dwz_file): Use foreach.
3534 (dwarf2_locate_dwo_sections): Change parameters.
3535 (open_and_init_dwo_file): Use foreach.
3536 (dwarf2_locate_common_dwp_sections): Change parameters.
3537 (open_and_init_dwp_file): Use foreach.
3538
ad7277da
TT
35392020-09-19 Tom Tromey <tom@tromey.com>
3540
3541 * symfile.h: (find_lowest_section): Don't declare.
3542 * symfile.c (find_lowest_section): Now static. Change
3543 parameters.
3544 (struct place_section_arg): Remove.
3545 (place_section): Change parameters.
3546 (addr_info_make_relative): Use foreach.
3547 (symfile_dummy_outputs): Remove.
3548 (default_symfile_relocate): Use foreach.
3549
cb814f2e
TT
35502020-09-19 Tom Tromey <tom@tromey.com>
3551
3552 * objfiles.c (add_to_objfile_sections): Rename from
3553 add_to_objfile_sections_full.
3554 (add_to_objfile_sections): Remove.
3555 (build_objfile_section_table): Use foreach.
3556
3cabfd26
TT
35572020-09-19 Tom Tromey <tom@tromey.com>
3558
3559 * stap-probe.c (get_stap_base_address_1): Remove.
3560 (get_stap_base_address): Use foreach.
3561
1ce51eb5
TT
35622020-09-19 Tom Tromey <tom@tromey.com>
3563
3564 * gdb_bfd.c (free_one_bfd_section): Remove 'abfd' and 'ignore'
3565 parameters.
3566 (gdb_bfd_close_or_warn): Use foreach.
3567
a190fabb
TT
35682020-09-19 Tom Tromey <tom@tromey.com>
3569
3570 * corelow.c (add_to_thread_list): Change parameters.
3571 (core_target_open): Use foreach.
3572
cafb0d81
TT
35732020-09-19 Tom Tromey <tom@tromey.com>
3574
3575 * gdb_bfd.h (gdb_bfd_sections): New overload. Fix formatting of
3576 existing function.
3577
c8d5abea
AB
35782020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3579
3580 * f-valprint.c (f77_print_array_1): Adjust printing of whitespace
3581 for arrays.
3582
6d816919
AB
35832020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3584
3585 * eval.c: Remove 'f-lang.h' include.
3586 (value_f90_subarray): Moved to f-lang.c.
3587 (eval_call): Renamed to...
3588 (evaluate_subexp_do_call): ...this, is no longer static, header
3589 comment moved into header file.
3590 (evaluate_funcall): Update call to eval_call.
3591 (skip_undetermined_arglist): Moved to f-lang.c.
3592 (fortran_value_subarray): Likewise.
3593 (evaluate_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3594 moved to evaluate_subexp_f.
3595 (calc_f77_array_dims): Moved to f-lang.c
3596 * expprint.c (print_subexp_funcall): New function.
3597 (print_subexp_standard): OP_F77_UNDETERMINED_ARGLIST handling
3598 moved to print_subexp_f, OP_FUNCALL uses new function.
3599 (dump_subexp_body_funcall): New function.
3600 (dump_subexp_body_standard): OP_F77_UNDETERMINED_ARGLIST handling
3601 moved to dump_subexp_f, OP_FUNCALL uses new function.
3602 * expression.h (evaluate_subexp_do_call): Declare.
3603 * f-lang.c (value_f90_subarray): Moved from eval.c.
3604 (skip_undetermined_arglist): Likewise.
3605 (calc_f77_array_dims): Likewise.
3606 (fortran_value_subarray): Likewise.
3607 (evaluate_subexp_f): Add OP_F77_UNDETERMINED_ARGLIST support.
3608 (operator_length_f): Likewise.
3609 (print_subexp_f): Likewise.
3610 (dump_subexp_body_f): Likewise.
3611 * fortran-operator.def (OP_F77_UNDETERMINED_ARGLIST): Move
3612 declaration of this operation to here.
3613 * parse.c (operator_length_standard): OP_F77_UNDETERMINED_ARGLIST
3614 support moved to operator_length_f.
3615 * parser-defs.h (dump_subexp_body_funcall): Declare.
3616 (print_subexp_funcall): Declare.
3617 * std-operator.def (OP_F77_UNDETERMINED_ARGLIST): Moved to
3618 fortran-operator.def.
3619
8c37706a
AB
36202020-09-19 Andrew Burgess <andrew.burgess@embecosm.com>
3621
3622 * eval.c (fortran_value_subarray): New function, content is taken
3623 from...
3624 (evaluate_subexp_standard): ...here, in two places. Now arrays
3625 and strings both call the new function.
3626 (calc_f77_array_dims): Add header comment, handle strings.
3627
14f9473c
VC
36282020-09-18 Victor Collod <vcollod@nvidia.com>
3629
3630 PR gdb/26635
3631 * i386-tdep.c (i386_skip_endbr): Add a helper function to skip endbr.
3632 (i386_analyze_prologue): Call i386_skip_endbr.
3633
b60cea74
TT
36342020-09-18 Tom Tromey <tromey@adacore.com>
3635
3636 * windows-nat.c (struct windows_nat_target) <wait>: Update.
3637 (windows_nat_target::wait): Update.
3638 * target/wait.h (enum target_wait_flag): New. Use
3639 DEF_ENUM_FLAGS_TYPE.
3640 * target/target.h (target_wait): Change type of options.
3641 * target.h (target_options_to_string, default_target_wait):
3642 Update.
3643 (struct target_ops) <wait>: Change type of options.
3644 * target.c (target_wait, default_target_wait, do_option): Change
3645 type of "options".
3646 (target_options_to_string): Likewise.
3647 * target-delegates.c: Rebuild.
3648 * target-debug.h (target_debug_print_target_wait_flags): Rename
3649 from target_debug_print_options.
3650 * sol-thread.c (class sol_thread_target) <wait>: Update.
3651 (sol_thread_target::wait): Update.
3652 * rs6000-nat.c (class rs6000_nat_target) <wait>: Update.
3653 (rs6000_nat_target::wait): Update.
3654 * remote.c (class remote_target) <wait, wait_ns, wait_as>:
3655 Update.
3656 (remote_target::wait_ns, remote_target::wait_as): Change type of
3657 "options".
3658 (remote_target::wait): Update.
3659 * remote-sim.c (struct gdbsim_target) <wait>: Update.
3660 (gdbsim_target::wait): Update.
3661 * record-full.c (class record_full_base_target) <wait>: Update.
3662 (record_full_wait_1): Change type of "options".
3663 (record_full_base_target::wait): Update.
3664 * record-btrace.c (class record_btrace_target) <wait>: Update.
3665 (record_btrace_target::wait): Update.
3666 * ravenscar-thread.c (struct ravenscar_thread_target) <wait>:
3667 Update.
3668 (ravenscar_thread_target::wait): Update.
3669 * procfs.c (class procfs_target) <wait>: Update.
3670 (procfs_target::wait): Update.
3671 * obsd-nat.h (class obsd_nat_target) <wait>: Update.
3672 * obsd-nat.c (obsd_nat_target::wait): Update.
3673 * nto-procfs.c (struct nto_procfs_target) <wait>: Update.
3674 (nto_procfs_target::wait): Update.
3675 * nbsd-nat.h (struct nbsd_nat_target) <wait>: Update.
3676 * nbsd-nat.c (nbsd_wait): Change type of "options".
3677 (nbsd_nat_target::wait): Update.
3678 * linux-thread-db.c (class thread_db_target) <wait>: Update.
3679 (thread_db_target::wait): Update.
3680 * linux-nat.h (class linux_nat_target) <wait>: Update.
3681 * linux-nat.c (linux_nat_target::wait): Update.
3682 (linux_nat_wait_1): Update.
3683 * infrun.c (do_target_wait_1, do_target_wait): Change type of
3684 "options".
3685 * inf-ptrace.h (struct inf_ptrace_target) <wait>: Update.
3686 * inf-ptrace.c (inf_ptrace_target::wait): Update.
3687 * go32-nat.c (struct go32_nat_target) <wait>: Update.
3688 (go32_nat_target::wait): Update.
3689 * gnu-nat.h (struct gnu_nat_target) <wait>: Update.
3690 * gnu-nat.c (gnu_nat_target::wait): Update.
3691 * fbsd-nat.h (class fbsd_nat_target) <wait>: Update.
3692 * fbsd-nat.c (fbsd_nat_target::wait): Update.
3693 * darwin-nat.h (class darwin_nat_target) <wait>: Update.
3694 * darwin-nat.c (darwin_nat_target::wait): Update.
3695 * bsd-uthread.c (struct bsd_uthread_target) <wait>: Update.
3696 (bsd_uthread_target::wait): Update.
3697 * aix-thread.c (class aix_thread_target) <wait>: Update.
3698 (aix_thread_target::wait): Update.
3699
0295dde6
AB
37002020-09-18 Andrew Burgess <andrew.burgess@embecosm.com>
3701
3702 * compile/compile-object-run.c (create_copied_type_recursive): New
3703 function.
3704 (compile_object_run): Use new function.
3705
d3483b43
JT
37062020-08-21 Jon Turney <jon.turney@dronecode.org.uk>
3707
3708 * NEWS: Mention x86_64 Cygwin core file support.
3709
e7d612ad
JT
37102020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3711
3712 * windows-tdep.c (NOTE_INFO_MODULE, NOTE_INFO_MODULE64): Define.
3713 (core_process_module_section): Handle NOTE_INFO_MODULE64.
3714
aff9d387
JT
37152020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3716
62a5151b
JT
3717 * windows-tdep.h: Add prototypes.
3718 * i386-windows-tdep.c(windows_core_xfer_shared_libraries): Move.
3719 (i386_windows_core_pid_to_str): Move and rename ...
3720 * windows-tdep.c (windows_core_xfer_shared_libraries): ... to here
3721 (windows_core_pid_to_str): ... and here.
3722 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Register here.
3723
37242020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
aff9d387
JT
3725 * amd64-windows-tdep.c(amd64_windows_gregset_reg_offset): Add.
3726 (amd64_windows_init_abi_common): ... and register.
3727
7d155da3
JT
37282020-07-01 Jon Turney <jon.turney@dronecode.org.uk>
3729
3730 * amd64-windows-tdep.c (amd64_cygwin_core_osabi_sniffer): New.
3731 (_initialize_amd64_windows_tdep): Register amd64_cygwin_core_osabi_sniffer.
3732
e8ef12b9
PA
37332020-09-18 Pedro Alves <pedro@palves.net>
3734
3735 PR gdb/26631
3736 * thread.c (thread_find_command): Switch inferior before calling
3737 target methods.
3738
c1e1314d
TT
37392020-09-17 Tom Tromey <tromey@adacore.com>
3740
3741 * tic6x-tdep.c (tic6x_gdbarch_init): Update.
3742 * target-descriptions.h (struct tdesc_arch_data_deleter): New.
3743 (tdesc_arch_data_up): New typedef.
3744 (tdesc_use_registers, tdesc_data_alloc): Update.
3745 (tdesc_data_cleanup): Don't declare.
3746 * target-descriptions.c (tdesc_data_alloc): Return a
3747 tdesc_arch_data_up.
3748 (tdesc_arch_data_deleter::operator()): Rename from
3749 tdesc_data_cleanup. Change argument type.
3750 (tdesc_use_registers): Change early_data to an rvalue reference.
3751 (tdesc_use_registers): Don't use delete.
3752 * sparc-tdep.c (sparc32_gdbarch_init): Update.
3753 * s390-tdep.c (s390_gdbarch_init): Update.
3754 * rx-tdep.c (rx_gdbarch_init): Update.
3755 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3756 * riscv-tdep.c (riscv_gdbarch_init): Update.
3757 * or1k-tdep.c (or1k_gdbarch_init): Update.
3758 * nios2-tdep.c (nios2_gdbarch_init): Update.
3759 * nds32-tdep.c (nds32_gdbarch_init): Update.
3760 * mips-tdep.c (mips_gdbarch_init): Update.
3761 * microblaze-tdep.c (microblaze_gdbarch_init): Update.
3762 * m68k-tdep.c (m68k_gdbarch_init): Update.
3763 * i386-tdep.c (i386_gdbarch_init): Update.
3764 * arm-tdep.c (arm_gdbarch_init): Update.
3765 * arc-tdep.c (arc_tdesc_init): Update.
3766 (arc_gdbarch_init): Update.
3767 * aarch64-tdep.c (aarch64_gdbarch_init): Update.
3768
0363df3d
HD
37692020-09-17 Hannes Domani <ssbssa@yahoo.de>
3770
3771 * windows-nat.c (ctrl_c_handler): Use 32bit DbgUiRemoteBreakin
3772 for WOW64 processes.
3773
280a9412
TT
37742020-09-17 Tom Tromey <tom@tromey.com>
3775
3776 * dwarf2/read.c (compute_compunit_symtab_includes): Use htab_up.
3777
6108fd18
TT
37782020-09-17 Tom Tromey <tom@tromey.com>
3779
3780 * value.c (preserve_values): Update.
3781 * python/py-type.c (save_objfile_types): Update.
3782 * guile/scm-type.c (save_objfile_types): Update.
3783 * gdbtypes.h (create_copied_types_hash): Return htab_up.
3784 * gdbtypes.c (create_copied_types_hash): Return htab_up.
3785 * compile/compile-object-run.c (compile_object_run): Update.
3786
fa9b1164
TT
37872020-09-17 Tom Tromey <tom@tromey.com>
3788
3789 * typeprint.h (class typedef_hash_table) <~typedef_hash_table>:
3790 Remove.
3791 <m_table>: Now htab_up.
3792 * typeprint.c (typedef_hash_table::recursively_update)
3793 (typedef_hash_table::add_template_parameters)
3794 (typedef_hash_table::typedef_hash_table): Update.
3795 (typedef_hash_table::~typedef_hash_table): Remove.
3796 (typedef_hash_table::typedef_hash_table)
3797 (typedef_hash_table::find_global_typedef)
3798 (typedef_hash_table::find_typedef): Update.
3799
eb53f105
TT
38002020-09-17 Tom Tromey <tom@tromey.com>
3801
3802 * target-descriptions.c (tdesc_use_registers): Use htab_up.
3803
7a8a5d47
TT
38042020-09-17 Tom Tromey <tom@tromey.com>
3805
3806 * linespec.c (class decode_compound_collector)
3807 <~decode_compound_collector>: Remove.
3808 <m_unique_syms>: Now htab_up.
3809 (decode_compound_collector::operator ()): Update.
3810 (class symtab_collector) <~symtab_collector>: Remove.
3811 <m_symtab_table>: Now htab_up.
3812 (symtab_collector::operator ()): Update.
3813
99032cfc
TT
38142020-09-17 Tom Tromey <tom@tromey.com>
3815
3816 * filename-seen-cache.c (filename_seen_cache::filename_seen_cache)
3817 (filename_seen_cache::clear): Update.
3818 (~filename_seen_cache): Remove.
3819 (filename_seen_cache::seen): Update.
3820 * filename-seen-cache.h (class filename_seen_cache) <m_tab>: Now
3821 htab_up.
3822 <~filename_seen_cache>: Remove.
3823 <traverse>: Update.
3824
32580f6d
TT
38252020-09-17 Tom Tromey <tom@tromey.com>
3826
3827 * completer.c (completion_tracker::discard_completions)
3828 (completion_tracker::~completion_tracker)
3829 (completion_tracker::maybe_add_completion)
3830 (completion_tracker::remove_completion)
3831 (completion_tracker::recompute_lowest_common_denominator)
3832 (completion_tracker::build_completion_result): Update.
3833 * completer.h (class completion_tracker) <have_completions>:
3834 Update.
3835 <m_entries_hash>: Now htab_up.
3836
c1fb9836
TT
38372020-09-17 Tom Tromey <tom@tromey.com>
3838
3839 * breakpoint.c (ambiguous_names_p): Use htab_up.
3840
88f07206
TT
38412020-09-17 Tom Tromey <tom@tromey.com>
3842
3843 * auto-load.c (struct auto_load_pspace_info)
3844 <~auto_load_pspace_info, auto_load_pspace_info>: Remove.
3845 <loaded_script_files, loaded_script_texts>: Change type to
3846 htab_up.
3847 (~auto_load_pspace_info) Remove.
3848 (init_loaded_scripts_info, maybe_add_script_file)
3849 (maybe_add_script_text, auto_load_info_scripts): Update.
3850
9519b2ee
TT
38512020-09-17 Tom Tromey <tromey@adacore.com>
3852
3853 * c-exp.y (name_obstack): Now static.
3854
d2cd4113
CC
38552020-09-17 Chungyi Chi <demonic@csie.io>
3856
3857 * riscv-tdep.c (riscv-insn::decode): Fix recorded insn type.
3858
b650a282
SM
38592020-09-16 Simon Marchi <simon.marchi@efficios.com>
3860
3861 * breakpoint.h (init_catchpoint): Change int parameter to bool.
3862 (add_solib_catchpoint): Likewise.
3863 * breakpoint.c (struct solib_catchpoint) <is_load>: Change type
3864 to bool.
3865 (add_solib_catchpoint): Change int parameter/variable to bool.
3866 (catch_load_or_unload): Likewise.
3867 (init_catchpoint): Likewise.
3868 (create_fork_vfork_event_catchpoint): Likewise.
3869 (catch_fork_command_1): Likewise.
3870 (catch_exec_command_1): Likewise.
3871
4d0bcfcf
SM
38722020-09-16 Simon Marchi <simon.marchi@efficios.com>
3873
3874 * gdb-gdb.py.in (class StructTypePrettyPrinter) <to_string>:
3875 Change instance_flags to m_instance_flags.
3876
fe830662
TT
38772020-09-16 Tom Tromey <tromey@adacore.com>
3878
3879 PR gdb/26598:
3880 * infrun.c (fill_in_stop_func): Use find_pc_partial_function_sym.
3881
fe5ddfc3
JB
38822020-09-16 John Baldwin <jhb@FreeBSD.org>
3883
3884 * fbsd-nat.c (fbsd_nat_target::wait): Always check for
3885 PL_FLAG_EXEC.
3886 (fbsd_nat_target::insert_exec_catchpoint)
3887 (fbsd_nat_target::remove_exec_catchpoint): Always define.
3888 * fbsd-nat.h (fbsd_nat_target::insert_exec_catchpoint)
3889 (fbsd_nat_target::remove_exec_catchpoint): Always declare.
3890
e911c666
JB
38912020-09-16 John Baldwin <jhb@FreeBSD.org>
3892
3893 * configure.ac: Remove check for kinfo_getvmmap().
3894 * configure, config.in: Regenerate.
3895 * fbsd-nat.c (fbsd_read_mapping): Remove
3896 (fbsd_nat_target::find_memory_regions): Remove the procfs version.
3897 (fbsd_nat_target::info_proc): Assume kinfo_getfile() and
3898 kinfo_get_vmmap() are always present.
3899
1f17d372
JB
39002020-09-16 John Baldwin <jhb@FreeBSD.org>
3901
3902 * fbsd-nat.c: Always include support for
3903 TARGET_OBJECT_SIGNAL_INFO.
3904
bcb1da7f
JB
39052020-09-16 John Baldwin <jhb@FreeBSD.org>
3906
3907 * fbsd-nat.c (fbsd_nat_target::pid_to_exec_file): Always use
3908 sysctl and remove procfs fallback.
3909
5515f729
JB
39102020-09-16 John Baldwin <jhb@FreeBSD.org>
3911
3912 * fbsd-nat.c: Assume PT_LWPINFO is always defined.
3913 * fbsd-nat.h: Likewise.
3914
da1df1db
TBA
39152020-09-16 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
3916
3917 * breakpoint.c (commands_command_1): Make a copy of the 'arg'
3918 argument.
3919
0e25e767
AB
39202020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3921
3922 * ada-lang.c (ada_language_data): Delete.
3923 (ada_language): Remove references to ada_language_data.
3924 * c-lang.c (c_language_data): Delete.
3925 (c_language): Remove references to c_language_data.
3926 (cplus_language_data): Delete.
3927 (cplus_language): Remove references to cplus_language_data.
3928 (asm_language_data): Delete.
3929 (asm_language): Remove references to asm_language_data.
3930 (minimal_language_data): Delete.
3931 (minimal_language): Remove references to minimal_language_data.
3932 * d-lang.c (d_language_data): Delete.
3933 (d_language): Remove references to d_language_data.
3934 * f-lang.c (f_language_data): Delete.
3935 (f_language): Remove references to f_language_data.
3936 * go-lang.c (go_language_data): Delete.
3937 (go_language): Remove references to go_language_data.
3938 * language.c (unknown_language_data): Delete.
3939 (unknown_language): Remove references to unknown_language_data.
3940 (auto_language_data): Delete.
3941 (auto_language): Remove references to auto_language_data.
3942 * language.h (language_data): Delete struct.
3943 (language_defn): No longer inherit from language_data.
3944 * m2-lang.c (m2_language_data): Delete.
3945 (m2_language): Remove references to m2_language_data.
3946 * objc-lang.c (objc_language_data): Delete.
3947 (objc_language): Remove references to objc_language_data.
3948 * opencl-lang.c (opencl_language_data): Delete.
3949 (opencl_language): Remove references to opencl_language_data.
3950 * p-lang.c (pascal_language_data): Delete.
3951 (pascal_language): Remove references to pascal_language_data.
3952 * rust-lang.c (rust_language_data): Delete.
3953 (rust_language): Remove references to rust_language_data.
3954
b7c6e27d
AB
39552020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
3956
3957 * ada-lang.c (ada_language_data): Remove la_op_print_tab
3958 initializer.
3959 (ada_language::opcode_print_table): New member function.
3960 * c-lang.c (c_language_data): Remove la_op_print_tab initializer.
3961 (c_language::opcode_print_table): New member function.
3962 (cplus_language_data): Remove la_op_print_tab initializer.
3963 (cplus_language::opcode_print_table): New member function.
3964 (asm_language_data): Remove la_op_print_tab initializer.
3965 (asm_language::opcode_print_table): New member function.
3966 (minimal_language_data): Remove la_op_print_tab initializer.
3967 (minimal_language::opcode_print_table): New member function.
3968 * d-lang.c (d_language_data): Remove la_op_print_tab initializer.
3969 (d_language::opcode_print_table): New member function.
3970 * expprint.c (print_subexp_standard): Update call to
3971 opcode_print_table.
3972 (op_string): Likewise.
3973 * f-lang.c (f_language_data): Remove la_op_print_tab initializer.
3974 (f_language::opcode_print_table): New member function.
3975 * go-lang.c (go_language_data): Remove la_op_print_tab
3976 initializer.
3977 (go_language::opcode_print_table): New member function.
3978 * language.c (unknown_language_data): Remove la_op_print_tab
3979 initializer.
3980 (unknown_language::opcode_print_table): New member function.
3981 (auto_language_data): Remove la_op_print_tab initializer.
3982 (auto_language::opcode_print_table): New member function.
3983 * language.h (language_data): Remove la_op_print_tab field.
3984 (language_defn::opcode_print_table): Declare new member function.
3985 * m2-lang.c (m2_language_data): Remove la_op_print_tab
3986 initializer.
3987 (m2_language::opcode_print_table): New member function.
3988 * objc-lang.c (objc_language_data): Remove la_op_print_tab
3989 initializer.
3990 (objc_language::opcode_print_table): New member function.
3991 * opencl-lang.c (opencl_language_data): Remove la_op_print_tab
3992 initializer.
3993 (opencl_language::opcode_print_table): New member function.
3994 * p-lang.c (pascal_language_data): Remove la_op_print_tab
3995 initializer.
3996 (pascal_language::opcode_print_table): New member function.
3997 * rust-lang.c (rust_language_data): Remove la_op_print_tab
3998 initializer.
3999 (rust_language::opcode_print_table): New member function.
4000
5aba6ebe
AB
40012020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4002
4003 * ada-lang.c (ada_language_data): Remove la_exp_desc initializer.
4004 (ada_language::expression_ops): New member function.
4005 * c-lang.c (c_language_data): Remove la_exp_desc initializer.
4006 (c_language::expression_ops): New member function.
4007 (cplus_language_data): Remove la_exp_desc initializer.
4008 (cplus_language::expression_ops): New member function.
4009 (asm_language_data): Remove la_exp_desc initializer.
4010 (asm_language::expression_ops): New member function.
4011 (minimal_language_data): Remove la_exp_desc initializer.
4012 (minimal_language::expression_ops): New member function.
4013 * d-lang.c (d_language_data): Remove la_exp_desc initializer.
4014 (d_language::expression_ops): New member function.
4015 * eval.c (evaluate_subexp): Update call to expression_ops.
4016 * expprint.c (print_subexp): Likewise.
4017 (op_name): Likewise.
4018 (dump_subexp_body): Likewise.
4019 * f-lang.c (f_language_data): Remove la_exp_desc initializer.
4020 (f_language::expression_ops): New member function.
4021 * go-lang.c (go_language_data): Remove la_exp_desc initializer.
4022 (go_language::expression_ops): New member function.
4023 * language.c (language_defn::expression_ops): New function.
4024 (unknown_language_data): Remove la_exp_desc initializer.
4025 (auto_language_data): Likewise.
4026 * language.h (language_data): Remove la_exp_desc field.
4027 (language_defn::expression_ops): Declare new member function.
4028 * m2-lang.c (m2_language_data): Remove la_exp_desc initializer.
4029 (m2_language::expression_ops): New member function.
4030 * objc-lang.c (objc_language_data): Remove la_exp_desc
4031 initializer.
4032 * opencl-lang.c (opencl_language_data): Remove la_exp_desc
4033 initializer.
4034 (opencl_language::expression_ops): New member function.
4035 * p-lang.c (pascal_language_data): Remove la_exp_desc initializer.
4036 * parse.c (operator_length): Update call to expression_ops.
4037 (exp_iterate): Likewise.
4038 * rust-lang.c (rust_language_data): Remove la_exp_desc
4039 initializer.
4040 (ruse_language::expression_ops): New member function.
4041
b63a3f3f
AB
40422020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4043
4044 * ada-lang.c (ada_language_data): Remove la_varobj_ops
4045 initializer.
4046 (ada_language::varobj_ops): New member function.
4047 * c-lang.c (c_language_data): Remove la_varobj_ops
4048 initializer.
4049 (cplus_language_data): Likewise.
4050 (cplus_language::varobj_ops): New member function.
4051 (asm_language_data): Remove la_varobj_ops initializer.
4052 (minimal_language_data): Likewise.
4053 * d-lang.c (d_language_data): Likewise.
4054 * f-lang.c (f_language_data): Likewise.
4055 * go-lang.c (go_language_data): Likewise.
4056 * language.c (language_defn::varobj_ops): New function.
4057 (unknown_language_data): Remove la_varobj_ops
4058 initializer.
4059 (auto_language_data): Likewise.
4060 * language.h (language_data): Remove la_varobj_ops field.
4061 (language_defn::varobj_ops): Declare new member function.
4062 * m2-lang.c (m2_language_data): Remove la_varobj_ops initializer.
4063 * objc-lang.c (objc_language_data): Likewise.
4064 * opencl-lang.c (opencl_language_data): Likewise.
4065 * p-lang.c (pascal_language_data): Likewise.
4066 * rust-lang.c (rust_language_data): Likewise.
4067 * varobj.c (varobj_create): Update call to varobj_ops.
4068 * varobj.h (default_varobj_ops): Delete define.
4069
1ac14a04
AB
40702020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4071
4072 * ada-lang.c (ada_language_data): Remove la_macro_expansion
4073 initializer.
4074 * c-lang.c (c_language_data): Likewise.
4075 (c_language::macro_expansion): New member function.
4076 (cplus_language_data): Likewise.
4077 (cplus_language::macro_expansion): New member function.
4078 (asm_language_data): Likewise.
4079 (asm_language::macro_expansion): New member function.
4080 (minimal_language_data): Likewise.
4081 (minimal_language::macro_expansion): New member function.
4082 * d-lang.c (d_language_data): Remove la_macro_expansion
4083 initializer.
4084 * f-lang.c (f_language_data): Likewise.
4085 * go-lang.c (go_language_data): Likewise.
4086 * language.c (unknown_language_data): Likewise.
4087 (auto_language_data): Likewise.
4088 * language.h (language_data): Remove la_macro_expansion field.
4089 (language_defn::macro_expansion): New member function.
4090 * m2-lang.c (m2_language_data): Remove la_macro_expansion
4091 initializer.
4092 * objc-lang.c (objc_language_data): Likewise.
4093 (objc_language::macro_expansion): New member function.
4094 * opencl-lang.c (opencl_language_data): Likewise.
4095 (opencl_language::macro_expansion): New member function.
4096 * p-lang.c (pascal_language_data): Remove la_macro_expansion
4097 initializer.
4098 * rust-lang.c (rust_language_data): Likewise.
4099 * symtab.c (default_collect_symbol_completion_matches_break_on):
4100 Update call to macro_expansion.
4101
3a3440fb
AB
41022020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4103
4104 * ada-lang.c (ada_language_data): Remove la_array_ordering
4105 initializer.
4106 * c-lang.c (c_language_data): Likewise.
4107 (cplus_language_data): Likewise.
4108 (asm_language_data): Likewise.
4109 (minimal_language_data): Likewise.
4110 * d-lang.c (d_language_data): Likewise.
4111 * dwarf2/read.c (read_array_order): Update for call to
4112 array_ordering.
4113 * f-lang.c (f_language_data): Remove la_array_ordering
4114 initializer.
4115 (f_language::array_ordering): New member function.
4116 * go-lang.c (go_language_data): Remove la_array_ordering
4117 initializer.
4118 * language.c (unknown_language_data): Likewise.
4119 (auto_language_data): Likewise.
4120 * language.h (language_data): Delete la_array_ordering field.
4121 (language_defn::array_ordering): New member function.
4122 * m2-lang.c (m2_language_data): Remove la_array_ordering
4123 initializer.
4124 * objc-lang.c (objc_language_data): Likewise.
4125 * opencl-lang.c (opencl_language_data): Likewise.
4126 * p-lang.c (pascal_language_data): Likewise.
4127 * rust-lang.c (rust_language_data): Likewise.
4128
0d201fa4
AB
41292020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4130
4131 * ada-lang.c (ada_language_data): Remove la_case_sensitivity
4132 initializer.
4133 * c-lang.c (c_language_data): Likewise.
4134 (cplus_language_data): Likewise.
4135 (asm_language_data): Likewise.
4136 (minimal_language_data): Likewise.
4137 * d-lang.c (d_language_data): Likewise.
4138 * f-lang.c (f_language_data): Likewise.
4139 (f_language::case_sensitivity): New member function.
4140 * go-lang.c (go_language_data): Remove la_case_sensitivity
4141 initializer.
4142 * language.c (enum case_mode): Moved here from language.h.
4143 (case_mode): Make static.
4144 (show_case_command): Update for case_sensitivity being a method.
4145 (set_case_command): Likewise.
4146 (set_range_case): Likewise.
4147 (unknown_language_data): Remove la_case_sensitivity initializer.
4148 (auto_language_data): Likewise.
4149 * language.h (case_mode): Delete, move enum declaration to
4150 language.c.
4151 (language_data): Delete la_case_sensitivity field.
4152 (language_defn::case_sensitivity): New member function.
4153 * m2-lang.c (m2_language_data): Remove la_case_sensitivity
4154 initializer.
4155 * objc-lang.c (objc_language_data): Likewise.
4156 * opencl-lang.c (opencl_language_data): Likewise.
4157 * p-lang.c (pascal_language_data): Likewise.
4158 * rust-lang.c (rust_language_data): Likewise.
4159
efdf6a73
AB
41602020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4161
4162 * ada-lang.c (ada_language_data): Remove la_range_check
4163 initializer.
4164 * c-lang.c (c_language_data): Likewise.
4165 (cplus_language_data): Likewise.
4166 (asm_language_data): Likewise.
4167 (minimal_language_data): Likewise.
4168 * d-lang.c (d_language_data): Likewise.
4169 * f-lang.c (f_language_data): Likewise.
4170 (f_language::range_checking_on_by_default): New member function.
4171 * go-lang.c (go_language_data): Remove la_range_check initializer.
4172 * language.c (enum range_mode): Moved here from language.h.
4173 (range_mode): Made static.
4174 (show_range_command): Update to use
4175 range_checking_on_by_default.
4176 (set_range_command): Likewise.
4177 (set_range_case): Likewise.
4178 (unknown_language_data): Remove la_range_check initializer.
4179 (auto_language_data): Likewise.
4180 * language.h (range_mode): Delete. Enum definition moved to
4181 language.c.
4182 (language_data): Remove la_range_check field.
4183 (language_defn::range_checking_on_by_default): New member
4184 function.
4185 * m2-lang.c (m2_language_data): Remove la_range_check initializer.
4186 (m2_language::range_checking_on_by_default): New member function.
4187 * objc-lang.c (objc_language_data): Remove la_range_check
4188 initializer.
4189 * opencl-lang.c (opencl_language_data): Likewise.
4190 * p-lang.c (pascal_language_data): Likewise.
4191 (pascal_language::range_checking_on_by_default): New member
4192 function.
4193 * rust-lang.c (rust_language_data): Remove la_range_check
4194 initializer.
4195 (rust_language::range_checking_on_by_default): New member
4196 function.
4197
bf92aec5
AB
41982020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4199
4200 * dwarf2/read.c (dwarf2_physname): Remove special case for
4201 language_go.
4202 * go-lang.c (go_language::store_sym_names_in_linkage_form_p): New
4203 member function.
4204
d3355e4d
AB
42052020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4206
4207 * ada-lang.c (ada_language_data): Remove
4208 la_store_sym_names_in_linkage_form_p initializer.
4209 (ada_language::store_sym_names_in_linkage_form_p): New member
4210 function.
4211 * c-lang.c (c_language_data): Remove
4212 la_store_sym_names_in_linkage_form_p initializer.
4213 (c_language::store_sym_names_in_linkage_form_p): New member
4214 function.
4215 (cplus_language_data): Remove la_store_sym_names_in_linkage_form_p
4216 initializer.
4217 (asm_language_data): Likewise.
4218 (asm_language::store_sym_names_in_linkage_form_p): New member
4219 function.
4220 (minimal_language_data): Remove
4221 la_store_sym_names_in_linkage_form_p initializer.
4222 (minimal_language::store_sym_names_in_linkage_form_p): New member
4223 function.
4224 * d-lang.c (d_language_data): Remove
4225 la_store_sym_names_in_linkage_form_p initializer.
4226 * dwarf2/read.c (dwarf2_physname): Update call to
4227 store_sym_names_in_linkage_form_p.
4228 * f-lang.c (f_language_data): Remove
4229 la_store_sym_names_in_linkage_form_p initializer.
4230 * go-lang.c (go_language_data): Remove
4231 la_store_sym_names_in_linkage_form_p initializer.
4232 * language.c (unknown_language_data): Remove
4233 la_store_sym_names_in_linkage_form_p initializer.
4234 (unknown_language::store_sym_names_in_linkage_form_p): New member
4235 function.
4236 (auto_language_data): Remove la_store_sym_names_in_linkage_form_p
4237 initializer.
4238 (auto_language::store_sym_names_in_linkage_form_p): New member
4239 function.
4240 * language.h (language_data): Remove
4241 la_store_sym_names_in_linkage_form_p member variable.
4242 (language_defn::store_sym_names_in_linkage_form_p): New member
4243 function.
4244 * m2-lang.c (m2_language_data): Remove
4245 la_store_sym_names_in_linkage_form_p initializer.
4246 * objc-lang.c (objc_language_data): Likewise.
4247 * opencl-lang.c (opencl_language_data): Likewise.
4248 * p-lang.c (pascal_language_data): Likewise.
4249 * rust-lang.c (rust_language_data): Likewise.
4250
22c12a6c
AB
42512020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4252
4253 * ada-lang.c (ada_language_data): Remove string_lower_bound
4254 initializer.
4255 * c-lang.c (c_language_data): Likewise.
4256 (cplus_language_data): Likewise.
4257 (asm_language_data): Likewise.
4258 (minimal_language_data): Likewise.
4259 * d-lang.c (d_language_data): Likewise.
4260 * f-lang.c (f_language_data): Likewise.
4261 * go-lang.c (go_language_data): Likewise.
4262 * language.c (unknown_language_data): Likewise.
4263 (auto_language_data): Likewise.
4264 * language.h (language_data): Remove string_lower_bound field.
4265 (language_defn::string_lower_bound): New member function.
4266 * m2-lang.c (m2_language_data): Remove string_lower_bound
4267 initializer.
4268 (m2_language::string_lower_bound): New member function.
4269 * objc-lang.c (objc_language_data): Remove string_lower_bound
4270 initializer.
4271 * opencl-lang.c (opencl_language_data): Likewise.
4272 * p-lang.c (pascal_language_data): Likewise.
4273 * rust-lang.c (rust_language_data): Likewise.
4274 * valops.c (value_cstring): Update call to string_lower_bound.
4275 (value_string): Likewise.
4276 * value.c (allocate_repeated_value): Likewise.
4277
1c236ddd
AB
42782020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4279
4280 * valops.c (value_repeat): Fix incorrect argument name in comment.
4281
67bd3fd5
AB
42822020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4283
4284 * ada-lang.c (ada_language_data): Remove c_style_arrays
4285 initializer.
4286 (ada_language::c_style_arrays_p): New member fuction.
4287 * c-lang.c (c_language_data): Remove c_style_arrays
4288 initializer.
4289 (cplus_language_data): Likewise.
4290 (asm_language_data): Likewise.
4291 (minimal_language_data): Likewise.
4292 * d-lang.c (d_language_data): Likewise.
4293 * eval.c (ptrmath_type_p): Update call to c_style_arrays_p.
4294 * f-lang.c (f_language_data): Remove c_style_arrays initializer.
4295 (f_language::c_style_arrays_p): New member function.
4296 * go-lang.c (go_language_data): Remove c_style_arrays initializer.
4297 * infcall.c (value_arg_coerce): Update call to c_style_arrays_p.
4298 * language.c (unknown_language_data): Remove c_style_arrays
4299 initializer.
4300 (auto_language_data): Likewise.
4301 * language.h (language_data): Remove c_style_arrays field.
4302 (language_defn::c_style_arrays_p): New member function.
4303 * m2-lang.c (m2_language_data): Remove c_style_arrays initializer.
4304 (m2_language::c_style_arrays_p): New member function.
4305 * objc-lang.c (objc_language_data): Remove c_style_arrays
4306 initializer.
4307 * opencl-lang.c (opencl_language_data): Likewise.
4308 * p-lang.c (pascal_language_data): Likewise.
4309 * rust-lang.c (rust_language_data): Likewise.
4310 * valarith.c (value_subscript): Update call to c_style_arrays_p,
4311 and update local variable to a bool.
4312 * valops.c (value_cast): Update call to c_style_arrays_p.
4313 (value_array): Likewise.
4314 * value.c (coerce_array): Likewise.
4315
85967615
AB
43162020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4317
4318 * ada-lang.c (ada_language_data): Remove la_language initializer.
4319 * c-lang.c (c_language_data): Likewise.
4320 (cplus_language_data): Likewise.
4321 (asm_language_data): Likewise.
4322 (minimal_language_data): Likewise.
4323 * d-lang.c (d_language_data): Likewise.
4324 * f-lang.c (f_language_data): Likewise.
4325 * go-lang.c (go_language_data): Likewise.
4326 * language.c (unknown_language_data): Likewise.
4327 (auto_language_data): Likewise.
4328 * language.h (language_data): Remove la_language field.
4329 (language_defn::language_defn): Initialise la_language field.
4330 (language_defn::la_language): New member variable.
4331 * m2-lang.c (m2_language_data): Remove la_language field.
4332 * objc-lang.c (objc_language_data): Likewise.
4333 * opencl-lang.c (opencl_language_data): Likewise.
4334 * p-lang.c (pascal_language_data): Likewise.
4335 * rust-lang.c (rust_language_data): Likewise.
4336
e171d6f1
AB
43372020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4338
4339 * ada-lang.c (ada_extensions): Delete, moved into
4340 ada_language::filename_extensions.
4341 (ada_language_data): Remove la_filename_extensions initializer.
4342 (ada_language::filename_extensions): New member function.
4343 * c-lang.c (c_extensions): Delete, moved into
4344 c_language::filename_extensions.
4345 (c_language_data): Remove la_filename_extensions initializer.
4346 (c_language::filename_extensions): New member function.
4347 (cplus_extensions): Delete, moved into
4348 cplus_language::filename_extensions.
4349 (cplus_language_data): Remove la_filename_extensions initializer.
4350 (cplus_language::filename_extensions): New member function.
4351 (asm_extensions): Delete, moved into
4352 asm_language::filename_extensions.
4353 (asm_language_data): Remove la_filename_extensions initializer.
4354 (asm_language::filename_extensions): New member function.
4355 (minimal_language_data): Remove la_filename_extensions
4356 initializer.
4357 * d-lang.c (d_extensions): Delete, moved into
4358 d_language::filename_extensions.
4359 (d_language_data): Remove la_filename_extensions initializer.
4360 (d_language::filename_extensions): New member function.
4361 * f-lang.c (f_extensions): Delete, moved into
4362 f_language::filename_extensions.
4363 (f_language_data): Remove la_filename_extensions initializer.
4364 (f_language::filename_extensions): New member function.
4365 * go-lang.c (go_language_data): Remove la_filename_extensions
4366 initializer.
4367 * language.c (add_set_language_command): Update now that
4368 filename_extensions returns a vector.
4369 (unknown_language_data): Remove la_filename_extensions
4370 initializer.
4371 (auto_language_data): Likewise.
4372 * language.h (language_data): Remove la_filename_extensions field.
4373 (language_defn::filename_extensions): New member function.
4374 * m2-lang.c (m2_language_data): Remove la_filename_extensions
4375 initializer.
4376 * objc-lang.c (objc_extensions): Delete, moved into
4377 objc_language::filename_extensions.
4378 (objc_language_data): Remove la_filename_extensions initializer.
4379 (objc_language::filename_extensions): New member function.
4380 * opencl-lang.c (opencl_language_data): Remove
4381 la_filename_extensions initializer.
4382 * p-lang.c (pascal_extensions): Delete, moved into
4383 pascal_language::filename_extensions.
4384 (pascal_language_data): Remove la_filename_extensions initializer.
4385 (pascal_language::filename_extensions): New member function.
4386 * rust-lang.c (rust_extensions): Delete, moved into
4387 rust_language::filename_extensions.
4388 (rust_language_data): Remove la_filename_extensions initializer.
4389 (rust_language::filename_extensions): New member function.
4390 * symfile.c (add_filename_language): Add new assert.
4391
6f7664a9
AB
43922020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4393
4394 * ada-lang.c (ada_language_data): Remove la_name and
4395 la_natural_name initializers.
4396 (ada_language::name): New member function.
4397 (ada_language::natural_name): New member function.
4398 * c-lang.c (c_language_data): Remove la_name and
4399 la_natural_name initializers.
4400 (c_language::name): New member function.
4401 (c_language::natural_name): New member function.
4402 (cplus_language_data): Remove la_name and
4403 la_natural_name initializers.
4404 (cplus_language::name): New member function.
4405 (cplus_language::natural_name): New member function.
4406 (asm_language_data): Remove la_name and
4407 la_natural_name initializers.
4408 (asm_language::name): New member function.
4409 (asm_language::natural_name): New member function.
4410 (minimal_language_data): Remove la_name and
4411 la_natural_name initializers.
4412 (minimal_language::name): New member function.
4413 (minimal_language::natural_name): New member function.
4414 * compile/compile.c (compile_to_object): Update call to
4415 lanugage_defn::name.
4416 * d-lang.c (d_language_data): Remove la_name and
4417 la_natural_name initializers.
4418 (d_language::name): New member function.
4419 (d_language::natural_name): New member function.
4420 * expprint.c (print_subexp_standard): Update call to
4421 language_defn::name.
4422 (dump_raw_expression): Likewise
4423 (dump_prefix_expression): Likewise.
4424 * f-lang.c (f_language_data): Remove la_name and
4425 la_natural_name initializers.
4426 (f_language::name): New member function.
4427 (f_language::natural_name): New member function.
4428 * go-lang.c (go_language_data): Remove la_name and
4429 la_natural_name initializers.
4430 (go_language::name): New member function.
4431 (go_language::natural_name): New member function.
4432 * language.c (show_language_command): Update call to
4433 language_defn::name.
4434 (set_language_command): Likewise.
4435 (language_enum): Likewise.
4436 (language_str): Likewise.
4437 (add_set_language_command): Likewise, use
4438 language_defn::natural_name in the doc string.
4439 (unknown_language_data): Remove la_name and
4440 la_natural_name initializers.
4441 (unknown_language::name): New member function.
4442 (unknown_language::natural_name): New member function.
4443 (auto_language_data): Remove la_name and
4444 la_natural_name initializers.
4445 (auto_language::name): New member function.
4446 (auto_language::natural_name): New member function.
4447 (language_lookup_primitive_type_as_symbol): Update call to
4448 language_defn::name.
4449 * language.h (language_data): Remove la_name and la_natural_name
4450 member variables.
4451 (language_defn::name): New member function.
4452 (language_defn::natural_name): New member function.
4453 * m2-lang.c (m2_language_data): Remove la_name and
4454 la_natural_name initializers.
4455 (m2_language::name): New member function.
4456 (m2_language::natural_name): New member function.
4457 * mi/mi-cmd-var.c (mi_cmd_var_info_expression): Update call to
4458 language_defn::natural_name.
4459 * objc-lang.c (objc_language_data): Remove la_name and
4460 la_natural_name initializers.
4461 (objc_language::name): New member function.
4462 (objc_language::natural_name): New member function.
4463 * opencl-lang.c (opencl_language_data): Remove la_name and
4464 la_natural_name initializers.
4465 (opencl_language::name): New member function.
4466 (opencl_language::natural_name): New member function.
4467 * p-lang.c (pascal_language_data): Remove la_name and
4468 la_natural_name initializers.
4469 (pascal_language::name): New member function.
4470 (pascal_language::natural_name): New member function.
4471 * rust-lang.c (rust_language_data): Remove la_name and
4472 la_natural_name initializers.
4473 (rust_language::name): New member function.
4474 (rust_language::natural_name): New member function.
4475 * symtab.c (lookup_language_this): Update call to
4476 language_defn::name.
4477
5bae7c4e
AB
44782020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4479
4480 * ada-lang.c (ada_language_data): Remove la_name_of_this
4481 initializer.
4482 * ax-gdb.c (gen_expr): Update call to name_of_this.
4483 * c-exp.y (classify_name): Likewise.
4484 * c-lang.c (c_language_data): Remove la_name_of_this initializer.
4485 (cplus_language_data): Likewise.
4486 (cplus_language::name_of_this): New member function.
4487 (asm_language_data): Remove la_name_of_this initializer.
4488 (minimal_language_data): Likewise.
4489 * d-lang.c (d_language_data): Likewise.
4490 (d_language::name_of_this): New member function.
4491 * expprint.c (print_subexp_standard): Update call to name_of_this.
4492 * f-lang.c (f_language_data): Remove la_name_of_this initializer.
4493 * go-lang.c (go_language_data): Likewise.
4494 * language.c (unknown_language_data): Likewise.
4495 (unknown_language::name_of_this): New member function.
4496 (auto_language_data): Remove la_name_of_this initializer.
4497 (auto_language::name_of_this): New member function.
4498 * language.h (language_data): Delete la_name_of_this member
4499 variable.
4500 (language_defn::name_of_this): New member function.
4501 * m2-lang.c (m2_language_data): Remove la_name_of_this
4502 initializer.
4503 * objc-lang.c (objc_language_data): Likewise.
4504 (objc_language::name_of_this): New member function.
4505 * opencl-lang.c (opencl_language_data): Remove la_name_of_this
4506 initializer.
4507 * p-lang.c (pascal_language_data): Likewise.
4508 (pascal_language::name_of_this): New member function.
4509 * rust-lang.c (rust_language_data): Remove la_name_of_this
4510 initializer.
4511 * symtab.c (lookup_language_this): Update call to name_of_this.
4512 (lookup_symbol_aux): Likewise.
4513 * valops.c (value_of_this): Likewise.
4514
22e3f3ed
AB
45152020-09-16 Andrew Burgess <andrew.burgess@embecosm.com>
4516
4517 * ada-lang.c (ada_language_data): Remove
4518 la_struct_too_deep_ellipsis initializer.
4519 (ada_language::struct_too_deep_ellipsis): New member function.
4520 * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis
4521 initializer.
4522 (cplus_language_data): Likewise.
4523 (asm_language_data): Likewise.
4524 (minimal_language_data): Likewise.
4525 * cp-valprint.c (cp_print_value): Update call to
4526 struct_too_deep_ellipsis.
4527 * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis
4528 initializer.
4529 * f-lang.c (f_language_data): Likewise.
4530 (f_language::struct_too_deep_ellipsis): New member function.
4531 * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis
4532 initializer.
4533 * language.c (unknown_language_data): Likewise.
4534 (auto_language_data): Likewise.
4535 * language.h (language_data): Delete la_struct_too_deep_ellipsis
4536 member variable.
4537 (language_defn::struct_too_deep_ellipsis): New member function.
4538 * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis
4539 initializer.Q
4540 * objc-lang.c (objc_language_data): Likewise.
4541 * opencl-lang.c (opencl_language_data): Likewise.
4542 * p-lang.c (pascal_language_data): Likewise.
4543 * rust-lang.c (rust_language_data): Likewise.
4544 * valprint.c (val_print_check_max_depth): Update call to
4545 struct_too_deep_ellipsis.
4546
ed29e1c7
FW
45472020-09-16 Felix Willgerodt <felix.willgerodt@intel.com>
4548
4549 * MAINTAINERS (Write After Approval): Add myself.
4550
12d8f940
TT
45512020-09-15 Tom Tromey <tom@tromey.com>
4552
4553 * f-valprint.c (f_value_print_inner) <case TYPE_CODE_INT>:
4554 Remove.
4555
6b5a7bc7
TT
45562020-09-15 Tom Tromey <tom@tromey.com>
4557
4558 * rust-lang.c (rust_value_print_inner): Remove TYPE_CODE_MEMBERPTR
4559 and TYPE_CODE_METHODPTR cases.
4560 * c-valprint.c (c_value_print_memberptr): Move to valprint.c.
4561 (c_value_print_inner): Update.
4562 * valprint.c (generic_value_print_memberptr): New function, from
4563 c_value_print_memberptr.
4564 (generic_value_print): Use it. Call cplus_print_method_ptr.
4565
47f0e2ff
TT
45662020-09-15 Tom Tromey <tromey@adacore.com>
4567
4568 * python/python-internal.h (PyInt_FromLong): Remove define.
4569 * python/py-value.c (convert_value_from_python): Use
4570 gdb_py_object_from_longest.
4571 * python/py-type.c (typy_get_code): Use
4572 gdb_py_object_from_longest.
4573 * python/py-symtab.c (salpy_get_line): Use
4574 gdb_py_object_from_longest.
4575 * python/py-symbol.c (sympy_get_addr_class, sympy_line): Use
4576 gdb_py_object_from_longest.
4577 * python/py-record.c (recpy_gap_reason_code): Use
4578 gdb_py_object_from_longest.
4579 * python/py-record-btrace.c (recpy_bt_insn_size)
4580 (recpy_bt_func_level, btpy_list_count): Use
4581 gdb_py_object_from_longest.
4582 * python/py-infthread.c (gdbpy_create_ptid_object): Use
4583 gdb_py_object_from_longest. Fix error handling.
4584 * python/py-framefilter.c (bootstrap_python_frame_filters): Use
4585 gdb_py_object_from_longest.
4586 * python/py-frame.c (frapy_type, frapy_unwind_stop_reason): Use
4587 gdb_py_object_from_longest.
4588 * python/py-breakpoint.c (bppy_get_type, bppy_get_number)
4589 (bppy_get_thread, bppy_get_task, bppy_get_hit_count)
4590 (bppy_get_ignore_count): Use gdb_py_object_from_longest.
4591
512116ce
TT
45922020-09-15 Tom Tromey <tromey@adacore.com>
4593
4594 * python/python.c (gdbpy_parameter_value): Use
4595 gdb_py_object_from_ulongest.
4596
4ab1029c
TT
45972020-09-15 Tom Tromey <tromey@adacore.com>
4598
4599 * python/py-infevents.c (create_register_changed_event_object):
4600 Use gdb_py_object_from_longest.
4601 * python/py-exitedevent.c (create_exited_event_object): Use
4602 gdb_py_object_from_longest.
4603
062534d4
TT
46042020-09-15 Tom Tromey <tromey@adacore.com>
4605
4606 * python/python.c (gdbpy_parameter_value): Use
4607 gdb_py_object_from_longest.
4608 * python/py-type.c (convert_field, typy_range): Use
4609 gdb_py_object_from_longest.
4610 * python/py-tui.c (gdbpy_tui_width, gdbpy_tui_height): Use
4611 gdb_py_object_from_longest.
4612 * python/py-lazy-string.c (stpy_get_length): Use
4613 gdb_py_object_from_longest.
4614 * python/py-infthread.c (thpy_get_num, thpy_get_global_num): Use
4615 gdb_py_object_from_longest.
4616 * python/py-infevents.c (create_memory_changed_event_object): Use
4617 gdb_py_object_from_longest.
4618 * python/py-inferior.c (infpy_get_num): Use
4619 gdb_py_object_from_longest.
4620 (infpy_get_pid): Likewise.
4621
d1cab987
TT
46222020-09-15 Tom Tromey <tromey@adacore.com>
4623
4624 * python/python-internal.h (gdb_py_long_from_ulongest): Remove
4625 defines.
4626 * python/py-value.c (valpy_long): Use
4627 gdb_py_object_from_ulongest.
4628 * python/py-symtab.c (salpy_get_pc): Use
4629 gdb_py_object_from_ulongest.
4630 (salpy_get_last): Likewise.
4631 * python/py-record-btrace.c (recpy_bt_insn_pc): Use
4632 gdb_py_object_from_ulongest.
4633 * python/py-lazy-string.c (stpy_get_address): Use
4634 gdb_py_object_from_ulongest.
4635 * python/py-frame.c (frapy_pc): Use gdb_py_object_from_ulongest.
4636 * python/py-arch.c (archpy_disassemble): Use
4637 gdb_py_object_from_ulongest and gdb_py_object_from_longest. Fix
4638 error handling.
4639
4bde49dc
TT
46402020-09-15 Tom Tromey <tromey@adacore.com>
4641
4642 * python/python-internal.h (gdb_py_long_from_longest): Remove
4643 defines.
4644 * python/py-value.c (valpy_long): Use gdb_py_object_from_longest.
4645 * python/py-type.c (convert_field, typy_get_sizeof): Use
4646 gdb_py_object_from_longest.
4647 * python/py-record-btrace.c (btpy_list_index): Use
4648 gdb_py_object_from_longest.
4649
37431074
TT
46502020-09-15 Tom Tromey <tromey@adacore.com>
4651
4652 * python/python-internal.h (PyInt_FromSsize_t): Remove define.
4653 * python/py-record.c (recpy_element_number): Use
4654 gdb_py_object_from_longest.
4655 (recpy_gap_number): Likewise.
4656
cbe25684
TT
46572020-09-15 Tom Tromey <tromey@adacore.com>
4658
4659 * top.c (ui::ui): Update.
4660 (highest_ui_num): Remove.
4661 * top.h (struct ui) <num>: Remove.
4662
db92ac45
TT
46632020-09-15 Tom Tromey <tromey@adacore.com>
4664
4665 * unittests/memory-map-selftests.c (valid_mem_map): Now array.
4666 * ui-style.c (ansi_regex_text): Now array.
4667 * rust-exp.y (number_regex_text): Now array.
4668 * linespec.c (linespec_quote_characters): Now array.
4669 * jit.c (jit_break_name, jit_descriptor_name, reader_init_fn_sym):
4670 Now arrays.
4671
d2b31b67
SM
46722020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4673
4674 * debuginfod-support.c (debuginfod_client_deleter): New.
4675 (debuginfod_client_up): New.
4676 (debuginfod_init): Return debuginfod_client_up.
4677 (debuginfod_source_query): Adjust.
4678 (debuginfod_debuginfo_query): Adjust.
4679
3246bd8e
SM
46802020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4681
4682 * debuginfod-support.c (debuginfod_source_query): Use
4683 make_unique_xstrdup.
4684
10242f36
SM
46852020-09-14 Simon Marchi <simon.marchi@efficios.com>
4686
4687 * gdbtypes.h (TYPE_INSTANCE_FLAGS): Remove, replace all uses
4688 with `type::instance_flags`.
4689
e1044e6a
MM
46902020-09-14 Michael Mullin <masmullin@gmail.com>
4691
4692 * xml-tdesc.c [!defined(HAVE_LIBEXPAT)] (tdesc_parse_xml):
4693 Remove baton parameter.
4694
04902b09
PA
46952020-09-14 Pedro Alves <pedro@palves.net>
4696
4697 * Makefile.in (SELFTESTS_SRCS): Add
4698 unittests/enum-flags-selftests.c.
4699 * btrace.c (ftrace_update_caller, ftrace_fixup_calle): Use
4700 btrace_function_flags instead of enum btrace_function_flag.
4701 * compile/compile-c-types.c (convert_qualified): Use
4702 enum_flags::raw.
4703 * compile/compile-cplus-symbols.c (convert_one_symbol)
4704 (convert_symbol_bmsym):
4705 * compile/compile-cplus-types.c (compile_cplus_convert_method)
4706 (compile_cplus_convert_struct_or_union_methods)
4707 (compile_cplus_instance::convert_qualified_base):
4708 * go-exp.y (parse_string_or_char): Add cast to int.
4709 * unittests/enum-flags-selftests.c: New file.
4710 * record-btrace.c (btrace_thread_flag_to_str): Change parameter's
4711 type to btrace_thread_flags from btrace_thread_flag.
4712 (record_btrace_cancel_resume, record_btrace_step_thread): Change
4713 local's type to btrace_thread_flags from btrace_thread_flag. Add
4714 cast in DEBUG call.
4715
69896a2c
PA
47162020-09-14 Pedro Alves <pedro@palves.net>
4717
4718 * c-typeprint.c (c_type_print_modifier): Adjust to rename.
4719 * gdbtypes.c (address_space_name_to_int): Rename to ...
4720 (address_space_name_to_type_instance_flags): ... this.
4721 (address_space_int_to_name): Rename to ...
4722 (address_space_type_instance_flags_to_name): ... this.
4723 * gdbtypes.h (address_space_name_to_int): Rename to ...
4724 (address_space_name_to_type_instance_flags): ... this.
4725 (address_space_int_to_name): Rename to ...
4726 (address_space_type_instance_flags_to_name): ... this.
4727 * type-stack.c (type_stack::insert): Adjust to rename.
4728 * type-stack.h (type_stack::insert): Likewise.
4729
314ad88d
PA
47302020-09-14 Pedro Alves <pedro@palves.net>
4731 Andrew Burgess <andrew.burgess@embecosm.com>
4732
4733 * avr-tdep.c (avr_address_class_type_flags): Return
4734 type_instance_flags.
4735 (avr_address_class_type_flags_to_name): Take a
4736 type_instance_flags.
4737 (avr_address_class_name_to_type_flags): Return bool and take a
4738 type_instance_flags.
4739 * d-lang.c (build_d_types): Use type::set_instance_flags.
4740 * ft32-tdep.c (ft32_address_class_type_flags): Return
4741 type_instance_flags.
4742 (ft32_address_class_type_flags_to_name): Take a
4743 type_instance_flags.
4744 (ft32_address_class_name_to_type_flags): Return bool and take a
4745 type_instance_flags.
4746 (ft32_gdbarch_init): Use type::set_instance_flags.
4747 * eval.c (fake_method::fake_method): Use type::set_instance_flags.
4748 * gdbarch.h, gdbarch.c: Regenerate.
4749 * gdbarch.sh (address_class_type_flags): Use type_instance_flags.
4750 (address_class_name_to_type_flags): Use type_instance_flags and
4751 bool.
4752 * gdbtypes.c (address_space_name_to_int)
4753 (address_space_int_to_name, make_qualified_type): Use
4754 type_instance_flags.
4755 (make_qualified_type): Use type_instance_flags and
4756 type::set_instance_flags.
4757 (make_type_with_address_space, make_cv_type, make_vector_type)
4758 (check_typedef): Use type_instance_flags.
4759 (recursive_dump_type): Cast type_instance_flags to unsigned for
4760 printing.
4761 (copy_type_recursive): Use type::set_instance_flags.
4762 (gdbtypes_post_init): Use type::set_instance_flags.
4763 * gdbtypes.h (struct type) <instance_flags>: Rename to ...
4764 <m_instance_flags>: ... this.
4765 <instance_flags, set_instance_flags>: New methods.
4766 (TYPE_INSTANCE_FLAGS): Use the instance_flags method.
4767 (SET_TYPE_INSTANCE_FLAGS): New.
4768 (address_space_name_to_int, address_space_int_to_name)
4769 (make_type_with_address_space): Pass flags using
4770 type_instance_flags instead of int.
4771 * stabsread.c (cleanup_undefined_types_noname): Use
4772 type::set_instance_flags.
4773 * s390-tdep.c (s390_address_class_type_flags): Return
4774 type_instance_flags.
4775 (s390_address_class_type_flags_to_name): Take a
4776 type_instance_flags.
4777 (s390_address_class_name_to_type_flags): Return bool and take a
4778 type_instance_flags.
4779 * type-stack.c (type_stack::follow_types): Use
4780 type_instance_flags.
4781 * dwarf2/read.c (read_tag_pointer_type): Use type_instance_flags.
4782
27087b7f
TT
47832020-09-14 Tom Tromey <tromey@adacore.com>
4784
4785 * x86-tdep.h (x86_in_indirect_branch_thunk): Update.
4786 * x86-tdep.c (x86_is_thunk_register_name)
4787 (x86_in_indirect_branch_thunk): Update.
4788 * sparc64-tdep.c (sparc64_fpu_register_names)
4789 (sparc64_cp0_register_names, sparc64_register_names)
4790 (sparc64_pseudo_register_names): Now const.
4791 * sparc-tdep.h (struct gdbarch_tdep) <fpu_register_names,
4792 cp0_registers_num>: Now const.
4793 * sparc-tdep.c (sparc_core_register_names)
4794 (sparc32_fpu_register_names, sparc32_cp0_register_names)
4795 (sparc32_pseudo_register_names): Now const.
4796 (validate_tdesc_registers): Update.
4797 * rust-lang.c (rust_extensions): Now const.
4798 * p-lang.c (p_extensions): Now const.
4799 * objc-lang.c (objc_extensions): Now const.
4800 * nto-tdep.c (nto_thread_state_str): Now const.
4801 * moxie-tdep.c (moxie_register_names): Now const.
4802 * mips-tdep.h (struct gdbarch_tdep) <mips_processor_reg_names>:
4803 Now const.
4804 * mips-tdep.c (mips_generic_reg_names, mips_tx39_reg_names)
4805 (mips_linux_reg_names): Now const.
4806 (mips_gdbarch_init): Update.
4807 * microblaze-tdep.c (microblaze_register_names): Now const.
4808 * m68k-tdep.c (m68k_register_names): Now const.
4809 * m32r-tdep.c (m32r_register_names): Now const.
4810 * ia64-tdep.c (ia64_register_names): Now const.
4811 * i386-tdep.h (struct gdbarch_tdep) <register_names,
4812 ymmh_register_names, ymm16h_regnum, mpx_register_names,
4813 k_register_names, zmmh_register_names, xmm_avx512_register_names,
4814 ymm_avx512_register_names, pkeys_register_names>: Now const.
4815 * i386-tdep.c (i386_register_names, i386_zmm_names)
4816 (i386_zmmh_names, i386_k_names, i386_ymm_names, i386_ymmh_names)
4817 (i386_mpx_names, i386_pkeys_names, i386_bnd_names)
4818 (i386_mmx_names, i386_byte_names, i386_word_names): Now const.
4819 * f-lang.c (f_extensions): Now const.
4820 * d-lang.c (d_extensions): Now const.
4821 * csky-tdep.c (csky_register_names): Now const.
4822 * charset.c (default_charset_names, charset_enum): Now const.
4823 (_initialize_charset): Update.
4824 * c-lang.c (c_extensions, cplus_extensions, asm_extensions): Now
4825 const.
4826 * bsd-uthread.c (bsd_uthread_solib_names): Now const.
4827 (bsd_uthread_solib_loaded): Update.
4828 (bsd_uthread_state): Now const.
4829 * amd64-tdep.c (amd64_register_names, amd64_ymm_names)
4830 (amd64_ymm_avx512_names, amd64_ymmh_names)
4831 (amd64_ymmh_avx512_names, amd64_mpx_names, amd64_k_names)
4832 (amd64_zmmh_names, amd64_zmm_names, amd64_xmm_avx512_names)
4833 (amd64_pkeys_names, amd64_byte_names, amd64_word_names)
4834 (amd64_dword_names): Now const.
4835 * agent.c (can_use_agent_enum): Now const.
4836 * ada-tasks.c (task_states, long_task_states): Now const.
4837 * ada-lang.c (known_runtime_file_name_patterns)
4838 (known_auxiliary_function_name_patterns, attribute_names)
4839 (standard_exc, ada_extensions): Now const.
4840
89806626
SM
48412020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4842
4843 * bcache.h (struct bcache) <bcache>: Remove constructor.
4844 <m_hash_function, m_compare_function>: Remove.
4845 <~bcache>: Make virtual.
4846 <compare>: Remove static method, introduce virtual method.
4847 <default_hash>: Remove.
4848 <hash>: New virtual method.
4849 * bcache.c (bcache::expand_hash_table): Update.
4850 (bcache::insert): Update.
4851 (bcache::hash): New.
4852 (bcache::compare): Update comment and parameter names.
4853 * gdbtypes.c (types_deeply_equal): Update.
4854 * psymtab.h (struct psymbol_bcache): New struct.
4855 (class psymtab_storage) <psymtab_storage>: Make default.
4856 <psymbol_cache>: Change type to psymbol_bcache.
4857 * psymtab.c (psymtab_storage::psymtab_storage): Remove.
4858 (psymbol_hash): Change to...
4859 (psymbol_bcache::hash): ... this.
4860 (psymbol_compare): Change to...
4861 (psymbol_bcache::compare): ... this.
4862
677c92fe
SM
48632020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4864
4865 * linux-nat.c (linux_nat_wait_1): Don't use inferior_ptid when
4866 checking for initial lwp.
4867
3eba3a01
TT
48682020-09-14 Tom Tromey <tromey@adacore.com>
4869
4870 * m68k-tdep.c (m68k_extract_return_value): Use
4871 pointer_result_regnum.
4872 (m68k_store_return_value): Likewise.
4873 (m68k_reg_struct_return_p): Handle vectors and arrays.
4874 (m68k_return_value): Handle arrays.
4875 (m68k_svr4_return_value): Fix single-element aggregate handling.
4876 Handle long double. Adjust for embedded ABI.
4877 (m68k_svr4_init_abi): Set pointer_result_regnum.
4878 (m68k_embedded_init_abi): New function.
4879 (m68k_gdbarch_init): Handle Tag_GNU_M68K_ABI_FP.
4880 (m68k_osabi_sniffer): New function.
4881 (_initialize_m68k_tdep): Register osabi sniffer.
4882 * m68k-tdep.h (struct gdbarch_tdep) <pointer_result_regnum>: New
4883 member.
4884
33f4dd48
SM
48852020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4886
4887 * xml-support.c (xml_fetch_content_from_file): Replace xfree
4888 with gdb::unique_xmalloc_ptr<char>.
4889
8400a90d
SM
48902020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4891
4892 * xml-support.h (xml_fetch_another): Change type to be a
4893 function_view.
4894 (xml_process_xincludes): Remove baton parameter.
4895 (xml_fetch_content_from_file): Change baton parameter to
4896 dirname.
4897 * xml-support.c (struct xinclude_parsing_data)
4898 <xinclude_parsing_data>: Remove baton parameter.
4899 <fetcher_baton>: Remove.
4900 (xinclude_start_include): Adjust.
4901 (xml_process_xincludes): Adjust.
4902 (xml_fetch_content_from_file): Replace baton parameter with
4903 dirname.
4904 * xml-syscall.c (syscall_parse_xml): Remove baton parameter.
4905 (xml_init_syscalls_info): Use a lambda.
4906 * xml-tdesc.c (tdesc_parse_xml): Remove baton parameter.
4907 (file_read_description_xml): Use a lambda.
4908 (fetch_available_features_from_target): Change baton parameter
4909 to target_ops.
4910 (target_read_description_xml): Use a lambda.
4911 (target_fetch_description_xml): Use a lambda.
4912 (string_read_description_xml): Update.
4913
04f5bab2
SM
49142020-09-14 Simon Marchi <simon.marchi@polymtl.ca>
4915
4916 * gdbtypes.h (TYPE_ENDIANITY_NOT_DEFAULT): Remove, replace all
4917 uses with type::endianity_is_not_default.
4918
db558e34
SM
49192020-09-14 Simon Marchi <simon.marchi@efficios.com>
4920
4921 * gdbtypes.h (struct type) <endianity_is_not_default,
4922 set_endianity_is_not_default>: New methods.
4923 (TYPE_ENDIANITY_NOT_DEFAULT): Use
4924 type::endianity_is_not_default, change all write call sites to
4925 use type::set_endianity_is_not_default.
4926
22c4c60c
SM
49272020-09-14 Simon Marchi <simon.marchi@efficios.com>
4928
4929 * gdbtypes.h (TYPE_FIXED_INSTANCE): Remove, replace all
4930 uses with type::is_fixed_instance.
4931
9cdd0d12
SM
49322020-09-14 Simon Marchi <simon.marchi@efficios.com>
4933
4934 * gdbtypes.h (struct type) <is_fixed_instance,
4935 set_is_fixed_instance>: New methods.
4936 (TYPE_FIXED_INSTANCE): Use type::is_fixed_instance, change all
4937 write call sites to use type::set_is_fixed_instance.
4938
0becda7a
SM
49392020-09-14 Simon Marchi <simon.marchi@efficios.com>
4940
4941 * gdbtypes.h (TYPE_GNU_IFUNC): Remove, replace all
4942 uses with type::is_gnu_ifunc.
4943
03cc7249
SM
49442020-09-14 Simon Marchi <simon.marchi@efficios.com>
4945
4946 * gdbtypes.h (struct type) <is_gnu_ifunc, set_is_gnu_ifunc>: New methods.
4947 (TYPE_GNU_IFUNC): Use type::is_gnu_ifunc, change all write call sites to
4948 use type::set_is_gnu_ifunc.
4949
3f46044c
SM
49502020-09-14 Simon Marchi <simon.marchi@efficios.com>
4951
4952 * gdbtypes.h (TYPE_STUB_SUPPORTED): Remove, replace all
4953 uses with type::stub_is_supported.
4954
9baccff6
SM
49552020-09-14 Simon Marchi <simon.marchi@efficios.com>
4956
4957 * gdbtypes.h (struct type) <stub_is_supported, set_stub_is_supported>: New methods.
4958 (TYPE_STUB_SUPPORTED): Use type::stub_is_supported, change all write call sites to
4959 use type::set_stub_is_supported.
4960
bd63c870
SM
49612020-09-14 Simon Marchi <simon.marchi@efficios.com>
4962
4963 * gdbtypes.h (TYPE_VECTOR): Remove, replace all
4964 uses with type::is_vector.
4965
2062087b
SM
49662020-09-14 Simon Marchi <simon.marchi@efficios.com>
4967
4968 * gdbtypes.h (struct type) <is_vector, set_is_vector>: New methods.
4969 (TYPE_VECTOR): Use type::is_vector, change all write call sites to
4970 use type::set_is_vector.
4971
a409645d
SM
49722020-09-14 Simon Marchi <simon.marchi@efficios.com>
4973
4974 * gdbtypes.h (TYPE_VARARGS): Remove, replace all
4975 uses with type::has_varargs.
4976
1d6286ed
SM
49772020-09-14 Simon Marchi <simon.marchi@efficios.com>
4978
4979 * gdbtypes.h (struct type) <has_varargs, set_has_varargs>: New methods.
4980 (TYPE_VARARGS): Use type::has_varargs, change all write call sites to
4981 use type::set_has_varargs.
4982
7f9f399b
SM
49832020-09-14 Simon Marchi <simon.marchi@efficios.com>
4984
4985 * gdbtypes.h (TYPE_PROTOTYPED): Remove, replace all
4986 uses with type::is_prototyped.
4987
27e69b7a
SM
49882020-09-14 Simon Marchi <simon.marchi@efficios.com>
4989
4990 * gdbtypes.h (struct type) <is_prototyped, set_is_prototyped>:
4991 New methods.
4992 (TYPE_PROTOTYPED): Use type::is_prototyped, change all write
4993 call sites to use type::set_is_prototyped.
4994
d2183968
SM
49952020-09-14 Simon Marchi <simon.marchi@efficios.com>
4996
4997 * gdbtypes.h (TYPE_TARGET_STUB): Remove, replace all
4998 uses with type::target_is_stub.
4999
8f53807e
SM
50002020-09-14 Simon Marchi <simon.marchi@efficios.com>
5001
5002 * gdbtypes.h (struct type) <target_is_stub, set_target_is_stub>:
5003 New methods.
5004 (TYPE_TARGET_STUB): Use type::is_stub, change all write call
5005 sites to use type::set_target_is_stub.
5006
e46d3488
SM
50072020-09-14 Simon Marchi <simon.marchi@efficios.com>
5008
5009 * gdbtypes.h (TYPE_STUB): Remove, replace all
5010 uses with type::is_stub.
5011
b4b73759
SM
50122020-09-14 Simon Marchi <simon.marchi@efficios.com>
5013
5014 * gdbtypes.h (struct type) <is_stub, set_is_stub>: New methods.
5015 (TYPE_STUB): Use type::is_stub, change all write call sites to
5016 use type::set_is_stub.
5017
20ce4123
SM
50182020-09-14 Simon Marchi <simon.marchi@efficios.com>
5019
5020 * gdbtypes.h (TYPE_NOSIGN): Remove, replace all uses with
5021 type::has_no_signedness.
5022
15152a54
SM
50232020-09-14 Simon Marchi <simon.marchi@efficios.com>
5024
5025 * gdbtypes.h (struct type) <has_no_signedness,
5026 set_has_no_signedness>: New methods.
5027 (TYPE_NOSIGN): Use type::has_no_signedness, change all write
5028 call sites to use type::set_has_no_signedness.
5029
c6d940a9
SM
50302020-09-14 Simon Marchi <simon.marchi@efficios.com>
5031
5032 * gdbtypes.h (TYPE_UNSIGNED): Remove, replace all uses with
5033 type::is_unsigned.
5034
653223d3
SM
50352020-09-14 Simon Marchi <simon.marchi@efficios.com>
5036
5037 * gdbtypes.h (struct type) <is_unsigned, set_is_unsigned>: New
5038 methods.
5039 (TYPE_UNSIGNED): Use type::is_unsigned. Change all write call
5040 sites to use type::set_is_unsigned.
5041
55ea94da 50422020-09-14 Fredrik Hederstierna <fredrik.hederstierna@verisure.com>
e851246a 5043 Adam Renquinha <arenquinha@cimeq.qc.ca>
55ea94da 5044
e851246a
SM
5045 * arm-tdep.c (arm_m_exception_cache): Try use correct stack
5046 pointer and stack frame offset when unwinding.
55ea94da 5047
6791b117
PA
50482020-09-13 Pedro Alves <pedro@palves.net>
5049
5050 * NEWS: Document "-break-insert --qualified".
5051 * mi/mi-cmd-break.c (mi_cmd_break_insert_1): Handle "--qualified".
5052
77f2120b
PA
50532020-09-13 Pedro Alves <pedro@palves.net>
5054
5055 * linespec.c (classify_mtype, compare_msyms): Delete.
5056 (search_minsyms_for_name): Remove classification logic. Instead
5057 filter out trampoline symbols if we also found an external
5058 function of the same name.
5059
ed6a896c
JB
50602020-09-13 Joel Brobecker <brobecker@adacore.com>
5061
5062 * NEWS: Create a new section for the next release branch.
5063 Rename the section of the current branch, now that it has
5064 been cut.
5065
32aea73e
JB
50662020-09-13 Joel Brobecker <brobecker@adacore.com>
5067
5068 GDB 10 branch created (8087c3fa8b5d695e3e29e69d70d0b35ec902ac59):
5069 * version.in: Bump version to 11.0.50.DATE-git.
5070
8087c3fa
JB
50712020-09-12 Joel Brobecker <brobecker@adacore.com>
5072
5073 * infrun.c (namespace selftests): Only define #if GDB_SELF_TEST.
5074
2a67f09d
FW
50752020-09-11 Moritz Riesterer <moritz.riesterer@intel.com>
5076 Felix Willgerodt <Felix.Willgerodt@intel.com>
5077
5078 * gdbarch.sh: Added bfloat16 type.
5079 * gdbarch.c: Regenerated.
5080 * gdbarch.h: Regenerated.
5081 * gdbtypes.c (floatformats_bfloat16): New struct.
5082 (gdbtypes_post_init): Add builtin_bfloat16.
5083 * gdbtypes.h (struct builtin_type) <builtin_bfloat16>: New member.
5084 (floatformats_bfloat16): New struct.
5085 * i386-tdep.c (i386_zmm_type): Add field "v32_bfloat16"
5086 (i386_ymm_type): Add field "v16_bfloat16"
5087 (i386_gdbarch_init): Add set_gdbarch_bfloat16_format.
5088 * target-descriptions.c (make_gdb_type): Add case TDESC_TYPE_BFLOAT16.
5089 * gdbsupport/tdesc.cc (tdesc_predefined_types): New member bfloat16.
5090 * gdbsupport/tdesc.h (tdesc_type_kind): New member TDESC_TYPE_BFLOAT16.
5091 * features/i386/64bit-avx512.xml: Add bfloat16 type.
5092 * features/i386/64bit-avx512.c: Regenerated.
5093 * features/i386/64bit-sse.xml: Add bfloat16 type.
5094 * features/i386/64bit-sse.c: Regenerated.
5095
1347d111
FW
50962020-09-11 Felix Willgerodt <felix.willgerodt@intel.com>
5097
5098 * i386-tdep.c (i386_zmm_type): Fix field names.
5099 (i386_ymm_type): Fix field names.
5100
7a4e8e7d
TBA
51012020-09-11 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5102
5103 * breakpoint.c: Fix typo in the help message of the
5104 "set breakpoint condition-evaluation" command.
5105
cf4ac4be
KR
51062020-09-10 Kamil Rytarowski <n54@gmx.com>
5107
5108 * nbsd-nat.c: Include "nat/netbsd-nat.h".
5109 * (nbsd_nat_target::pid_to_exec_file)
5110 (nbsd_nat_target::thread_alive, nbsd_nat_target::thread_name)
5111 (nbsd_nat_target::post_startup_inferior)
5112 (nbsd_nat_target::post_attach, nbsd_nat_target::xfer_partial)
5113 (nbsd_add_threads): Switch local code to common gdb/nat functions.
5114 * (nbsd_pid_to_cmdline): Call sysctl from the global namespace.
5115 * (nbsd_thread_lister): Remove.
5116
f404573e
KR
51172020-09-10 Kamil Rytarowski <n54@gmx.com>
5118
5119 * fork-inferior.c (startup_inferior): Avoid double free.
5120
1ccb2c17
KR
51212020-09-10 Kamil Rytarowski <n54@gmx.com>
5122
5123 * netbsd-nat.h (netbsd_nat::qxfer_siginfo): Add.
5124 * netbsd-nat.c (netbsd_nat::qxfer_siginfo): Likewise.
5125
feedfcc7
KR
51262020-09-10 Kamil Rytarowski <n54@gmx.com>
5127
5128 * netbsd-nat.h (netbsd_nat::enable_proc_events): Add.
5129 * netbsd-nat.c: Include <sys/ptrace.h>.
5130 * (netbsd_nat::enable_proc_events): Add.
5131
c489f8c6
KR
51322020-09-10 Kamil Rytarowski <n54@gmx.com>
5133
5134 * netbsd-nat.h: Include "gdbsupport/function-view.h".
5135 * (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5136 (netbsd_nat::for_each_thread): Add.
5137 * netbsd-nat.c: Include "gdbsupport/common-defs.h" and
5138 "gdbsupport/common-debug.h".
5139 * (netbsd_nat::netbsd_thread_lister)
5140 (netbsd_nat::thread_alive, netbsd_nat::thread_name)
5141 (netbsd_nat::for_each_thread): Add.
5142
330662f6
KR
51432020-09-10 Kamil Rytarowski <n54@gmx.com>
5144
5145 * netbsd-nat.h: Include <unistd.h>.
5146 * (netbsd_nat::pid_to_exec_file): Add.
5147 * netbsd-nat.c: Include <sys/types.h> and <sys/sysctl.h>.
5148 * (netbsd_nat::pid_to_exec_file) Add.
5149
70b67307
KR
51502020-09-10 Kamil Rytarowski <n54@gmx.com>
5151
5152 * configure.nat (NATDEPFILES): Add nat/netbsd-nat.o when needed.
5153
99cf6da6
KR
51542020-09-10 Kamil Rytarowski <n54@gmx.com>
5155
5156 * netbsd-nat.h: New file.
5157 * netbsd-nat.c: Likewise.
5158
1b788fb6
TT
51592020-09-09 Tom Tromey <tromey@adacore.com>
5160
5161 * ada-lang.c (remove_extra_symbols): Do not increment when
5162 removing an element
5163
03b0a45f
TT
51642020-09-08 Tom Tromey <tromey@adacore.com>
5165
5166 * gdb_bfd.c (gdb_bfd_open): Call bfd_fopen when fstat fails.
5167
3cae4447
TT
51682020-09-08 Tom Tromey <tromey@adacore.com>
5169
5170 PR win32/25302:
5171 * gdb_bfd.c (gdb_bfd_data): Add "st" parameter.
5172 (gdb_bfd_init_data): New function.
5173 (gdb_bfd_open, gdb_bfd_ref): Use gdb_bfd_init_data.
5174
7f08fd51
TBA
51752020-09-07 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5176
5177 * infrun.c (fetch_inferior_event): Use
5178 `switch_to_target_no_thread` to switch the target.
5179
3e6ff933
TT
51802020-09-06 Tom Tromey <tom@tromey.com>
5181
5182 * symfile.h (dwarf2_free_objfile): Don't declare.
5183
e56798df
AKS
51842020-09-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5185
5186 * gdb/i386-tdep.c (i386_floatformat_for_type): Added conditions
5187 to match 16 byte real/complex type generated by Flang compiler.
5188
8f5c6526
TV
51892020-09-03 Tom de Vries <tdevries@suse.de>
5190
5191 PR breakpoint/26546
5192 * dwarf2/read.c (new_symbol): Tag label symbol without DW_AT_low_pc as
5193 LOC_OPTIMIZED_OUT instead of LOC_LABEL.
5194
c5065df0
SM
51952020-09-02 Simon Marchi <simon.marchi@polymtl.ca>
5196
5197 * maint.c (index_digits): New function.
5198 (struct maint_print_section_data): Remove.
5199 (print_bfd_section_info): Remove print_data parameter, add arg
5200 and index_digits.
5201 (print_objfile_section_info): Likewise.
5202 (print_bfd_section_info_maybe_relocated): Likewise (plus
5203 objfile).
5204 (maintenance_info_sections): Adjust calls.
5205
02c6f3f1
TT
52062020-09-02 Tom Tromey <tromey@adacore.com>
5207
5208 * ada-varobj.c (ada_varobj_get_ptr_number_of_children): Return 0
5209 for null pointers.
5210 (ada_varobj_adjust_for_child_access): Special-case null pointers.
5211
ef5e5b0b
SM
52122020-09-01 Simon Marchi <simon.marchi@polymtl.ca>
5213
5214 * bcache.h (struct bcache) <insert>: Change type of `added` to
5215 pointer to bool.
5216 * bcache.c (bcache::insert): Likewise.
5217 * gdbtypes.c (check_types_worklist): Adjust.
5218 * psymtab.c (add_psymbol_to_bcache): Adjust.
5219
973695d6
KB
52202020-08-31 Kevin Buettner <kevinb@redhat.com>
5221
5222 * corelow.c (unordered_set): Include.
5223 (class core_target): Add field 'm_core_unavailable_mappings'.
5224 (core_target::build_file_mappings): Print only one warning
5225 per inaccessible file. Add unavailable/broken mappings
5226 to m_core_unavailable_mappings.
5227 (core_target::xfer_partial): Call...
5228 (core_target::xfer_memory_via_mappings): New method.
5229
264fc0e2
SM
52302020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5231
5232 * dwarf2/read.c (struct field_info) <non_public_fields>: Change
5233 type to bool.
5234
2de01bdb
SM
52352020-08-31 Simon Marchi <simon.marchi@polymtl.ca>
5236
5237 * dwarf2/read.c (struct field_info): Fix indentation.
5238
f3bd50f1
SM
52392020-08-31 Simon Marchi <simon.marchi@efficios.com>
5240
5241 * frame-unwind.h (frame_prev_register_ftype): Fix adjective
5242 ordering in comment.
5243 * frame.c (frame_id_eq): Fix indentation.
5244
22b9b4b0
SL
52452020-08-31 Scott Linder <scott@scottlinder.com>
5246 Simon Marchi <simon.marchi@efficios.com>
5247
5248 * inline-frame.c (inline_frame_this_id): Remove assert that prevents
5249 inline frame ids in outer frame.
5250
84154d16
SM
52512020-08-31 Simon Marchi <simon.marchi@efficios.com>
5252
5253 * frame.h (enum frame_id_stack_status) <FID_STACK_OUTER>: New.
5254 * frame.c (fprint_frame_id): Handle FID_STACK_OUTER.
5255 (outer_frame_id): Use FID_STACK_OUTER instead of
5256 FID_STACK_INVALID.
5257 (frame_id_p): Don't check for outer_frame_id.
5258
8efaf6b3
SM
52592020-08-31 Simon Marchi <simon.marchi@efficios.com>
5260
5261 * frame-unwind.c (frame_unwind_got_optimized): Don't set
5262 regnum/frame in value. Call allocate_value_lazy.
5263 * frame.c (frame_unwind_register_value): Use
5264 val_print_not_saved.
5265
fe1fe7ea
SM
52662020-08-31 Simon Marchi <simon.marchi@efficios.com>
5267
5268 * gdbtypes.h (NULL_TYPE): Remove, change all uses to nullptr.
5269
f7c7700d
PA
52702020-08-29 Pedro Alves <pedro@palves.net>
5271
5272 * progspace.c (print_program_space): Use all_inferiors. Switch to
5273 the inferior before calling target_pid_to_str.
5274
e0814aae
TT
52752020-08-28 Tom Tromey <tom@tromey.com>
5276
5277 * xcoffread.c (xcoff_end_psymtab): Update comment.
5278 * dbxread.c (dbx_end_psymtab): Update comment.
5279
626d2320
TV
52802020-08-28 Tom de Vries <tdevries@suse.de>
5281
5282 PR breakpoint/26544
5283 * breakpoint.c (parse_breakpoint_sals): Remove const from struct
5284 event_location.
5285 (create_breakpoint): Same.
5286 (base_breakpoint_decode_location): Same.
5287 (bkpt_create_sals_from_location): Same.
5288 (bkpt_decode_location): Same.
5289 (bkpt_probe_create_sals_from_location): Same.
5290 (bkpt_probe_decode_location): Same.
5291 (tracepoint_create_sals_from_location): Same.
5292 (tracepoint_decode_location): Same.
5293 (tracepoint_probe_decode_location): Same.
5294 (strace_marker_create_sals_from_location): Same.
5295 (strace_marker_decode_location): Same.
5296 (create_sals_from_location_default): Same.
5297 (decode_location_default): Same.
5298 * breakpoint.h (struct breakpoint_ops): Same.
5299 (create_breakpoint): Same.
5300 * linespec.h (decode_line_full): Same.
5301 * linespec.c (decode_line_full): Same. Throw error if
5302 result.size () == 0.
5303
df631783
PA
53042020-08-27 Pedro Alves <pedro@palves.net>
5305
5306 PR gdb/26524
5307 * breakpoint.c (until_break_fsm) <location_breakpoint,
5308 caller_breakpoint>: Delete fields.
5309 <breakpoints>: New field.
5310 <until_break_fsm>: Adjust to save a breakpoint vector instead of
5311 two individual breakpoints.
5312 (until_break_fsm::should_stop): Loop over breakpoints in the
5313 breakpoint vector.
5314 (until_break_fsm::clean_up): Adjust to clear the breakpoints
5315 vector.
5316 (until_break_command): Handle location expanding into multiple
5317 sals.
5318
b2b38aa4
PA
53192020-08-27 Pedro Alves <pedro@palves.net>
5320
5321 PR gdb/26523
5322 * inline-frame.c (stopped_by_user_bp_inline_frame): Also consider
5323 bp_until breakpoints user-specified locations. Update intro
5324 comment.
5325
b886559f
SM
53262020-08-27 Simon Marchi <simon.marchi@polymtl.ca>
5327
5328 * gdb_bfd.h (gdb_bfd_section_iterator, gdb_bfd_section_range,
5329 gdb_bfd_sections): New.
5330 * maint.c (print_bfd_section_info): Change param type to
5331 maint_print_section_data.
5332 (print_objfile_section_info): Likewise.
5333 (print_bfd_section_info_maybe_relocated): Likewise.
5334 (maintenance_info_sections): Use gdb_bfd_sections.
5335
4c6e63bf
SV
53362020-08-25 Shahab Vahedi <shahab@synopsys.com>
5337
5338 * MAINTAINERS: Add ARC target and maintainer.
5339
8d7f0635
AK
53402020-08-25 Anton Kolesov <anton.kolesov@synopsys.com>
5341
5342 * configure.tgt: ARC support for GNU/Linux.
5343 * Makefile.in (ALL_TARGET_OBJS): Likewise.
5344 * arc-linux-tdep.c: New file.
5345 * arc-tdep.h (ARC_STATUS32_L_MASK, ARC_STATUS32_DE_MASK): Declare.
5346 * arc-tdep.c (arc_write_pc): Use it.
5347
fdd8731b
SV
53482020-08-25 Shahab Vahedi <shahab@synopsys.com>
5349
5350 * arc-tdep.c (arc_check_for_hardware_loop): New.
5351 * arc-tdep.h (gdbarch_tdep): New field has_hw_loops.
5352
22459524
SV
53532020-08-25 Shahab Vahedi <shahab@synopsys.com>
5354
5355 * arc-tdep.h: Include "gdbarch.h".
5356
995d3a19
SV
53572020-08-25 Shahab Vahedi <shahab@synopsys.com>
5358
5359 * arch/arc.h
5360 (arc_gdbarch_features): New class to stir the selection of target XML.
5361 (arc_create_target_description): Use FEATURES to choose XML target.
5362 (arc_lookup_target_description): Use arc_create_target_description
5363 to create _new_ target descriptions or return the already created
5364 ones if the FEATURES is the same.
5365 * arch/arc.c: Implementation of prototypes described above.
5366 * gdb/arc-tdep.h (arc_regnum enum): Add more registers.
5367 (arc_gdbarch_features_init): Initialize the FEATURES struct.
5368 * arc-tdep.c (*_feature_name): Make feature names consistent.
5369 (arc_register_feature): A new struct to hold information about
5370 registers of a particular target/feature.
5371 (arc_check_tdesc_feature): Check if XML provides registers in
5372 compliance with ARC_REGISTER_FEATURE structs.
5373 (arc_update_acc_reg_names): Add aliases for r58 and r59.
5374 (determine_*_reg_feature_set): Which feature name to look for.
5375 (arc_gdbarch_features_init): Given MACH and ABFD, initialize FEATURES.
5376 (mach_type_to_arc_isa): Convert from a set of binutils machine types
5377 to expected ISA enums to be used in arc_gdbarch_features structs.
5378 * features/Makefile (FEATURE_XMLFILES): Add new files.
5379 * gdb/features/arc/v1-aux.c: New file.
5380 * gdb/features/arc/v1-aux.xml: Likewise.
5381 * gdb/features/arc/v1-core.c: Likewise.
5382 * gdb/features/arc/v1-core.xml: Likewise.
5383 * gdb/features/arc/v2-aux.c: Likewise.
5384 * gdb/features/arc/v2-aux.xml: Likewise.
5385 * gdb/features/arc/v2-core.c: Likewise.
5386 * gdb/features/arc/v2-core.xml: Likewise.
5387 * NEWS (Changes since GDB 9): Announce obsolence of old feature names.
5388
3945d2d7
GM
53892020-08-25 Gaius Mulley <gaiusmod2@gmail.com>
5390 Andrew Burgess <andrew.burgess@embecosm.com>
5391
5392 PR m2/26372
fc5d6901 5393 * m2-exp.y (exp): Improve comment for non_empty_arglist case, add
3945d2d7
GM
5394 an assert. Remove single element array indexing pattern as the
5395 MULTI_SUBSCRIPT support will handle this case too.
5396
2677f2d3
SM
53972020-08-24 Simon Marchi <simon.marchi@polymtl.ca>
5398
5399 * value.h (valprint_check_validity): Move declaration from
5400 here...
5401 * valprint.h (valprint_check_validity): ... to here.
5402
c426fddb
SM
54032020-08-24 Simon Marchi <simon.marchi@efficios.com>
5404
5405 * debug.h: New file.
5406 * debug.c (debug_prefixed_vprintf): New function.
5407 * infrun.c (infrun_debug_printf_1): Use debug_prefixed_vprintf.
5408 * linux-nat.c (linux_nat_debug_printf_1): Likewise.
5409
1eb8556f
SM
54102020-08-24 Simon Marchi <simon.marchi@efficios.com>
5411
5412 * infrun.h (infrun_debug_printf_1): New function declaration.
5413 (infrun_debug_printf): New macro.
5414 * infrun.c (infrun_debug_printf_1): Use infrun_debug_printf
5415 throughout.
5416 (infrun_debug_printf): New function.
5417 * breakpoint.c (should_be_inserted): Use infrun_debug_printf.
5418 (handle_jit_event): Likewise.
5419
b8fff44e
MW
54202020-08-21 Mark Wielaard <mark@klomp.org>
5421
5422 * ada-lex.l: Extend register warnings diagnostics comment for g++.
5423
d19c3068
SM
54242020-08-22 Simon Marchi <simon.marchi@efficios.com>
5425
5426 * frame.c (enum class frame_id_status): New.
5427 (struct frame_info) <this_id::p>: Change type to frame_id_status.
5428 (fprintf_frame): Update.
5429 (compute_frame_id): Set frame id status to "computing" on entry.
5430 Set it back to "not_computed" on failure and to "computed" on
5431 success.
5432 (get_frame_id): Assert the frame id is not being computed.
5433 (create_sentinel_frame): Use frame_id_status::COMPUTED.
5434 (create_new_frame): Likewise.
5435 (frame_cleanup_after_sniffer): Update assert.
5436
b70e516e
SM
54372020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5438
5439 * regcache.c (pid_ptid_regcache_map): New type.
5440 (target_ptid_regcache_map): Remove.
5441 (target_pid_ptid_regcache_map): New type.
5442 (regcaches): Change type to target_pid_ptid_regcache_map.
5443 (get_thread_arch_aspace_regcache): Update.
5444 (regcache_thread_ptid_changed): Update, handle pid-like ptid
5445 case.
5446 (regcaches_size): Update.
5447 (regcache_count): Update.
5448 (registers_changed_ptid_target_pid_test): New.
5449 (_initialize_regcache): Register new test.
5450
cdd9148a
SM
54512020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5452
5453 * regcache.c (regcache_count): New.
5454 (struct regcache_test_data): New.
5455 (regcache_test_data_up): New.
5456 (populate_regcaches_for_test): New.
5457 (regcaches_test): Remove.
5458 (get_thread_arch_aspace_regcache_test): New.
5459 (registers_changed_ptid_all_test): New.
5460 (registers_changed_ptid_target_test): New.
5461 (registers_changed_ptid_target_ptid_test): New.
5462 (regcache_thread_ptid_changed): Remove regcache_count lambda.
5463 (_initialize_regcache): Register new tests.
5464
dd125343
SM
54652020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5466
5467 * regcache.c (test_get_thread_arch_aspace_regcache): Rename to...
5468 (get_thread_arch_aspace_regcache_and_check): ... this. Remove
5469 gdbarch and aspace parameter. Use current inferior's aspace.
5470 Validate regcache's arch value.
5471 (regcaches_test): Update.
5472
3ee93972
SM
54732020-08-20 Simon Marchi <simon.marchi@polymtl.ca>
5474
5475 * regcache.c (regcaches_test): Call registers_changed.
5476
33bf4c5c
TBA
54772020-08-20 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5478
5479 * infrun.c (process_event_stop_test): Fix typo "breapoint".
5480
c2fd7fae
AKS
54812020-08-19 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
5482
5483 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
5484 to find the end of prologue for flang compiled binaries.
5485 * arm-tdep.c (arm_skip_prologue): Likewise.
5486 * i386-tdep.c (i386_skip_prologue): Likewise.
5487 * producer.c (producer_is_llvm): New function.
5488 (producer_parsing_tests): Added new tests for clang/flang.
5489 * producer.h (producer_is_llvm): New declaration.
5490
9327494e
SM
54912020-08-18 Simon Marchi <simon.marchi@efficios.com>
5492
5493 * linux-nat.c (linux_nat_debug_printf): New function.
5494 (linux_nat_debug_printf_1): New macro. Use throughout the file.
5495
d138725a
AM
54962020-08-18 Aaron Merey <amerey@redhat.com>
5497
5498 * Makefile.in (DEBUGINFOD_CFLAGS, DEBUGINFOD_LIBS): New variables.
5499 (INTERNAL_CFLAGS_BASE): Add DEBUGINFOD_CFLAGS.
5500 (CLIBS): Add DEBUGINFOD_LIBS.
5501
f9b11e6b
ST
55022020-08-17 Sergei Trofimovich <siarheit@google.com>
5503
5504 * ia64-linux-nat.c: Include "gdbarch.h" to declare used
5505 'gdbarch_num_regs'.
5506
3ae7ab99
TT
55072020-08-17 Tom Tromey <tromey@adacore.com>
5508
5509 * ada-varobj.c (ada_varobj_decode_var): Handle case where
5510 ada_get_decoded_value returns NULL.
5511
b017825f
TT
55122020-08-17 Tom Tromey <tromey@adacore.com>
5513
5514 * python/py-inferior.c (infpy_search_memory): Use
5515 gdb_py_object_from_ulongest.
5516 * python/py-infevents.c (create_inferior_call_event_object)
5517 (create_memory_changed_event_object): Use
5518 gdb_py_object_from_ulongest.
5519 * python/py-linetable.c (ltpy_entry_get_pc): Use
5520 gdb_py_object_from_ulongest.
5521
7635cf79
SM
55222020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5523
5524 * loc.c (class symbol_needs_eval_context): Fix indentation.
5525
f54be24b
SM
55262020-08-17 Simon Marchi <simon.marchi@polymtl.ca>
5527
5528 * dwarf2/loc.c (dwarf2_loc_desc_get_symbol_read_needs): Use
5529 bool.
5530
53d5a2a5
TV
55312020-08-17 Tom de Vries <tdevries@suse.de>
5532
5533 PR gdb/26393
5534 * gdbtypes.c (dump_dynamic_prop): New function.
5535 (recursive_dump_type): Use dump_dynamic_prop for TYPE_CODE_RANGE.
5536
547ce8f0
TV
55372020-08-15 Tom de Vries <tdevries@suse.de>
5538
5539 PR backtrace/26390
5540 * stack.c (print_frame_args): Temporarily set the selected
5541 frame to FRAME while printing the frame's arguments.
5542
6ea815e7
PFC
55432020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5544
5545 PR breakpoints/26385
5546 * ppc-linux-nat.c (ppc_linux_nat_target::low_prepare_to_resume):
5547 Always clear watchpoint with PTRACE_SET_DEBUGREG.
5548
6e562fa3
PFC
55492020-08-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
5550
5551 * ppc-linux-nat.c (ppc_linux_dreg_interface::detect)
5552 (ppc_linux_nat_target::low_prepare_to_resume): Use ptrace () < 0
5553 and >= to check return value instead of == -1 and != -1.
5554
d369b608
SM
55552020-08-14 Simon Marchi <simon.marchi@polymtl.ca>
5556
5557 * utils.h (class gdb_argv) <as_array_view>: New method.
5558 * utils.c (gdb_argv_as_array_view_test): New.
5559 (_initialize_utils): Register selftest.
5560 * maint.c (maintenance_selftest): Use the new method.
5561
b31488a3
KR
55622020-08-13 Kamil Rytarowski <n54@gmx.com>
5563
5564 * target.h (supports_dumpcore, dumpcore): New
5565 function declarations.
5566 * target.c (supports_dumpcore, dumpcore): New
5567 functions.
5568 * target-delegates.c: Rebuild.
5569 * gcore.c (gcore_command): Use target_supports_dumpcore ()
5570 and target_dumpcore ().
5571
002a3166
AM
55722020-08-13 Aaron Merey <amerey@redhat.com>
5573
5574 * debuginfod-support.c: Replace global variables with user_data.
5575
ece5bc8a
SM
55762020-08-13 Simon Marchi <simon.marchi@polymtl.ca>
5577
5578 * maint.c (maintenance_selftest): Split args and pass array_view
5579 to run_tests.
5580
6d8a0a5e
LM
55812020-08-12 Luis Machado <luis.machado@linaro.org>
5582
5583 * value.c (check_type_length_before_alloc): Use ULONGEST to store a
5584 type's length.
5585 Use %s and pulongest to print the length.
5586
7cf663a9
PA
55872020-08-12 Pedro Alves <palves@redhat.com>
5588
5589 * NEWS: Move "Multi-target debugging support" item to the
5590 "Changes since GDB 9" section.
5591
27c7b875
PA
55922020-08-12 Pedro Alves <palves@redhat.com>
5593
5594 PR gdb/26336
5595 * progspace.c (program_space::remove_objfile): Invalidate the
5596 frame cache.
5597
1796a2a1
TV
55982020-08-11 Tom de Vries <tdevries@suse.de>
5599
5600 * MAINTAINERS: Mark ms1 as deleted.
5601
f8e3fe0d
LM
56022020-08-10 Luis Machado <luis.machado@linaro.org>
5603
5604 PR gdb/26310
5605
5606 * aarch64-tdep.c (aarch64_analyze_prologue): Track use of SP/FP and
5607 act accordingly.
5608 (aarch64_analyze_prologue_test): Add more unit tests to exercise
5609 movz/str/stur/stp skipping behavior.
5610
cc308722
LM
56112020-08-10 Luis Machado <luis.machado@linaro.org>
5612
5613 * nat/aarch64-sve-linux-sigcontext.h (SVE_PT_REGS_OFFSET): Use
5614 struct user_sve_header instead of struct sve_context.
5615
041d9819
SM
56162020-08-09 Simon Marchi <simon.marchi@polymtl.ca>
5617
5618 * read.h (dwarf2_fetch_die_loc_sect_off,
5619 dwarf2_fetch_die_loc_cu_off): Replace function pointer +
5620 `void *` parameter with function_view.
5621 * read.c (dwarf2_fetch_die_loc_sect_off,
5622 dwarf2_fetch_die_loc_cu_off): Likewise.
5623 * loc.c (get_frame_pc_for_per_cu_dwarf_call): Remove.
5624 (per_cu_dwarf_call): Adjust.
5625 (get_frame_address_in_block_wrapper): Remove.
5626 (indirect_synthetic_pointer): Adjust.
5627 (get_ax_pc): Remove.
5628 (dwarf2_compile_expr_to_ax): Adjust.
5629
38f8aa06
TV
56302020-08-08 Tom de Vries <tdevries@suse.de>
5631
5632 PR build/26344
5633 * arch/riscv.c (riscv_lookup_target_description): Use an explicit
5634 constructor.
5635 * regcache.c (get_thread_arch_aspace_regcache): Same.
5636
a52b3ae2
TT
56372020-08-07 Tom Tromey <tromey@adacore.com>
5638
5639 * ravenscar-thread.c
5640 (ravenscar_thread_target::set_base_thread_from_ravenscar_task):
5641 New method.
5642 (ravenscar_thread_target::wait): Check
5643 runtime_initialized.
5644 (ravenscar_thread_target::prepare_to_store)
5645 (ravenscar_thread_target::stopped_by_sw_breakpoint)
5646 (ravenscar_thread_target::stopped_by_hw_breakpoint)
5647 (ravenscar_thread_target::stopped_by_watchpoint)
5648 (ravenscar_thread_target::stopped_data_address)
5649 (ravenscar_thread_target::core_of_thread): Use
5650 scoped_restore_current_thread and
5651 set_base_thread_from_ravenscar_task.
5652
0e29517d
TT
56532020-08-07 Tom Tromey <tromey@adacore.com>
5654
5655 * ravenscar-thread.c (update_thread_list): Set inferior_ptid.
5656
592f9bd7
TT
56572020-08-07 Tom Tromey <tromey@adacore.com>
5658
5659 * ravenscar-thread.c (ravenscar_thread_target::wait): Call
5660 update_inferior_ptid before update_thread_list.
5661 (temporarily_change_regcache_ptid): New class.
5662 (ravenscar_thread_target::fetch_registers)
5663 (ravenscar_thread_target::store_registers)
5664 (ravenscar_thread_target::prepare_to_store): Use base thread when
5665 forwarding operation.
5666
39e2018a
TT
56672020-08-07 Tom Tromey <tromey@adacore.com>
5668
5669 * ravenscar-thread.c (ravenscar_thread_target::resume): Handle
5670 "is_pid" case.
5671
2080266b
TT
56722020-08-07 Tom Tromey <tromey@adacore.com>
5673
5674 * ravenscar-thread.c (xfer_partial, enable_btrace, add_thread):
5675 New methods.
5676 (ravenscar_thread_target::get_thread_base_cpu): Check m_cpu_map
5677 first.
5678 (ravenscar_thread_target::add_thread): Rename from
5679 ravenscar_add_thread.
5680 (ravenscar_thread_target::update_thread_list): Use a lambda.
5681 (ravenscar_thread_target::xfer_partial): New method.
5682
78c02f21
TT
56832020-08-07 Tom Tromey <tromey@adacore.com>
5684
5685 * ada-lang.h (ada_task_list_iterator_ftype): Now a
5686 gdb::function_view.
5687 (iterate_over_live_ada_tasks): Change type of argument.
5688 * ada-tasks.c (iterate_over_live_ada_tasks): Change type
5689 of argument.
5690
d5d833af
TT
56912020-08-07 Tom Tromey <tromey@adacore.com>
5692
5693 * ravenscar-thread.c (ravenscar_thread_target) <extra_thread_info>:
5694 Remove.
5695 (ravenscar_thread_target::extra_thread_info): Remove.
5696 (ravenscar_thread_target::pid_to_str): Mention Ravenscar in result;
5697 defer to target beneath for non-Ravenscar threads.
5698
a8ac85bb
TT
56992020-08-07 Tom Tromey <tromey@adacore.com>
5700
5701 * ravenscar-thread.c (ravenscar_thread_target) <get_base_cpu,
5702 get_base_thread_from_ravenscar_task>: Now methods.
5703 <m_cpu_map>: New member.
5704 (ravenscar_thread_target::get_thread_base_cpu): Rename from
5705 ravenscar_get_thread_base_cpu. Check m_cpu_map.
5706 (ravenscar_thread_target::task_is_currently_active): Update.
5707 (ravenscar_thread_target::get_base_thread_from_ravenscar_task):
5708 Now a method.
5709 (ravenscar_thread_target::add_active_thread): Put initial thread
5710 into the m_cpu_map.
5711
550ab58d
TT
57122020-08-07 Tom Tromey <tromey@adacore.com>
5713
5714 * ravenscar-thread.c (ravenscar_thread_target::wait): Return
5715 event_ptid.
5716
e9546579
TT
57172020-08-07 Tom Tromey <tromey@adacore.com>
5718
5719 * ravenscar-thread.c (ravenscar_thread_target::wait): Check
5720 runtime_initialized.
5721
3d4470e5
TT
57222020-08-07 Tom Tromey <tromey@adacore.com>
5723
5724 * ravenscar-thread.c (ravenscar_thread_target): Don't call
5725 add_active_thread.
5726 (ravenscar_thread_target::add_active_thread): Now public.
5727 (ravenscar_inferior_created): Call add_active_thread after pushing
5728 the target.
5729
888bdb2b
SM
57302020-08-07 Simon Marchi <simon.marchi@polymtl.ca>
5731
5732 * regcache.c (ptid_regcache_map): New type.
5733 (target_ptid_regcache_map): New type.
5734 (regcaches): Change type to target_ptid_regcache_map.
5735 (get_thread_arch_aspace_regcache): Update to regcaches' new
5736 type.
5737 (regcache_thread_ptid_changed): Likewise.
5738 (registers_changed_ptid): Likewise.
5739 (regcaches_size): Likewise.
5740 (regcaches_test): Update.
5741 (regcache_thread_ptid_changed): Update.
5742 * regcache.h (regcache_up): New type.
5743 * gdbsupport/ptid.h (hash_ptid): New struct.
5744
b161a60d
SM
57452020-08-07 Simon Marchi <simon.marchi@efficios.com>
5746
5747 * observable.h (thread_ptid_changed): Add parameter
5748 `process_stratum_target *`.
5749 * infrun.c (infrun_thread_ptid_changed): Add parameter
5750 `process_stratum_target *` and use it.
5751 (selftests): New namespace.
5752 (infrun_thread_ptid_changed): New function.
5753 (_initialize_infrun): Register selftest.
5754 * regcache.c (regcache_thread_ptid_changed): Add parameter
5755 `process_stratum_target *` and use it.
5756 (regcache_thread_ptid_changed): New function.
5757 (_initialize_regcache): Register selftest.
5758 * thread.c (thread_change_ptid): Pass target to
5759 thread_ptid_changed observable.
5760
d2854d8d
CT
57612020-08-06 Caroline Tice <cmtice@google.com>
5762
fe4c3d43
SM
5763 * dwarf2/read.c (struct dwo_file): Update comment on 'sections' field.
5764 (struct dwp_sections): Update field comments. Add loclists and
5765 rnglists fields.
5766 (struct virtual_v2_dwo_sections): Rename struct to
5767 'virtual_v2_or_v5_dwo_sections'; update comments at top of struct; add
5768 size & offset fields for loclists and rnglists.
5769 (struct dwp_hash_table): Add a 'v5' struct field to the union section.
5770 (create_debug_type_hash_table): Add 'DW_UT_split_type' to the check for
5771 skipping dummy type units.
5772 (create_dwp_hash_table): Update the large comment above the function to
5773 discuss Version 5 DWP files as well, with references. Update all the
5774 version checks in the function to check for version 5 as well. Add new
5775 section at the end to create dwp hash table for version 5.
5776 (create_dwp_v2_section): Rename function to
5777 'create_dwp_v2_or_v5_section'. Update function comment appropriately.
5778 Add V5 to error message text.
5779 (create_dwo_unit_in_dwp_v2): Change calls to create_dwp_v2_section
5780 into calls to create_dwp_v2_or_v5_section.
5781 (create_dwo_unit_in_dwp_v5): New function.
5782 (lookup_dwo_unit_in_dwp): Update conditional statement to explicitly
5783 check for version2; add else clause to handle version 5.
5784 (open_and_init_dwo_file): Add code to check dwarf version & only call
5785 create_debug_types_hash_table (with sections.types) if version is not 5;
5786 else call create_debug_type_hash_table, with sections.info.
5787 (dwarf2_locate_v2_dwp_sections): Update function comment to mention
5788 version 5.
5789 (dwarf2_locate_v5_dwp_sections): New function.
5790 (open_and_init_dwp_file): Add else-if clause for version 5 to call
5791 bfd_map_over_sections with dwarf2_locate_v5_dwp_sections.
d2854d8d 5792
159ed7d9
SM
57932020-08-06 Simon Marchi <simon.marchi@efficios.com>
5794
5795 * regcache.h (class regcache): Remove friend
5796 registers_changed_ptid.
5797 <regcache_thread_ptid_changed>: Remove.
5798 <regcaches>: Remove.
5799 * regcache.c (regcache::regcaches): Rename to...
5800 (regcaches): ... this. Make static.
5801 (get_thread_arch_aspace_regcache): Update.
5802 (regcache::regcache_thread_ptid_changed): Rename to...
5803 (regcache_thread_ptid_changed): ... this. Update.
5804 (class regcache_access): Remove.
5805 (regcaches_test): Update.
5806 (_initialize_regcache): Update.
5807 * sparc64-tdep.c, dwarf2/index-write.c, record-btrace.c: Include
5808 <forward_list>.
5809
174981ae
SM
58102020-08-06 Simon Marchi <simon.marchi@efficios.com>
5811
5812 * regcache.h (class regcache) <current_regcache>: Rename to...
5813 <regcaches>: ... this. Move doc here.
5814 * regcache.c (regcache::current_regcache) Rename to...
5815 (regcache::regcaches): ... this. Move doc to header.
5816 (get_thread_arch_aspace_regcache): Update.
5817 (regcache::regcache_thread_ptid_changed): Update.
5818 (registers_changed_ptid): Update.
5819 (class regcache_access) <current_regcache_size>: Rename to...
5820 <regcaches_size>: ... this.
5821 (current_regcache_test): Rename to...
5822 (regcaches_test): ... this.
5823 (_initialize_regcache): Update.
5824
ed908db6
VC
58252020-08-06 Victor Collod <vcollod@nvidia.com>
5826
5827 * amd64-tdep.c (amd64_analyze_prologue): Fix incorrect comment.
5828
b5582ab7
KB
58292020-08-05 Kevin Buettner <kevinb@redhat.com>
5830
5831 * corelow.c (core_target::build_file_mappings): Don't output
5832 null pathname in warning.
5833
ea946b86
SM
58342020-08-05 Simon Marchi <simon.marchi@polymtl.ca>
5835
5836 * gdb.dwarf2/clztest.exp, gdb.dwarf2/dw2-common-block.exp,
5837 gdb.dwarf2/dw2-dup-frame.exp, gdb.dwarf2/dw2-reg-undefined.exp,
5838 gdb.dwarf2/dw2-single-line-discriminators.exp,
5839 dw2-undefined-ret-addr.exp: Pass nopie to compilation options.
5840
57d02173
TT
58412020-08-05 Tom Tromey <tromey@adacore.com>
5842
5843 PR rust/26197:
5844 * dwarf2/read.c (alloc_rust_variant): Handle univariant case.
5845 (quirk_rust_enum): Call alloc_rust_variant for univariant case.
5846 Fix off-by-one and type size errors in ordinary case.
5847
5555c86d
TV
58482020-08-05 Tom de Vries <tdevries@suse.de>
5849
5850 * gdbtypes.c (type_not_allocated, type_not_associated): Use
5851 "prop->const_val () == 0" instead of "prop->const_val () != 0".
5852
97916bfe
SM
58532020-08-04 Simon Marchi <simon.marchi@efficios.com>
5854
5855 * frame.h (frame_id_p): Return bool.
5856 (frame_id_artificial_p): Return bool.
5857 (frame_id_eq): Return bool.
5858 (has_stack_frames): Return bool.
5859 (get_selected_frame): Fix typo in comment.
5860 (get_frame_pc_if_available): Return bool.
5861 (get_frame_address_in_block_if_available): Return bool.
5862 (get_frame_func_if_available): Return bool.
5863 (read_frame_register_unsigned): Return bool.
5864 (get_frame_register_bytes): Return bool.
5865 (safe_frame_unwind_memory): Return bool.
5866 (deprecated_frame_register_read): Return bool.
5867 (frame_unwinder_is): Return bool.
5868 * frame.c (struct frame_info) <prev_arch::p>: Change type to
5869 bool.
5870 <this_id::p>: Likewise.
5871 <prev_p>: Likewise.
5872 (frame_stash_add): Return bool.
5873 (get_frame_id): Use bool.
5874 (frame_id_build_special) Use bool.
5875 (frame_id_build_unavailable_stack): Use bool.
5876 (frame_id_build): Use bool.
5877 (frame_id_p): Return bool, use true/false instead of 1/0.
5878 (frame_id_artificial_p): Likewise.
5879 (frame_id_eq): Likewise.
5880 (frame_id_inner): Likewise.
5881 (get_frame_func_if_available): Likewise.
5882 (read_frame_register_unsigned): Likewise.
5883 (deprecated_frame_register_read): Likewise.
5884 (get_frame_register_bytes): Likewise.
5885 (has_stack_frames): Likewise.
5886 (inside_main_func): Likewise.
5887 (inside_entry_func): Likewise.
5888 (get_frame_pc_if_available): Likewise.
5889 (get_frame_address_in_block_if_available): Likewise.
5890 (frame_unwinder_is): Likewise.
5891 (safe_frame_unwind_memory): Likewise.
5892 (frame_unwind_arch): Likewise.
5893
fedfee88
SM
58942020-08-04 Simon Marchi <simon.marchi@efficios.com>
5895
5896 * frame.c (frame_info) <prev_func> <p>: Rename to status, change
5897 type to cached_copy_status.
5898 (fprintf_frame): Adjust.
5899 (get_frame_func_if_available): Adjust.
5900 (frame_cleanup_after_sniffer): Adjust.
5901
6cfa9b59
MW
59022020-08-04 Mark Wielaard <mark@klomp.org>
5903
5904 * MAINTAINERS (Write After Approval): Update email address.
5905
66d6346b
SM
59062020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5907
5908 * gdbtypes.h (TYPE_DYN_PROP_ADDR): Remove, replace uses with
5909 dynamic_prop::const_val.
5910
8a6d5e35
SM
59112020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5912
5913 * gdbtypes.h (TYPE_DYN_PROP_KIND): Remove, replace uses with
5914 dynamic_prop::kind.
5915
51d6067d
SM
59162020-08-04 Simon Marchi <simon.marchi@polymtl.ca>
5917
5918 * gdbtypes.h (TYPE_DYN_PROP_BATON): Remove.
5919
b26e2ae7
JM
59202020-08-04 Jose E. Marchesi <jose.marchesi@oracle.com>
5921
5922 * configure.tgt: Set gdb_sim for bpf-*-* targets.
5923
39791af2
JM
59242020-08-04 Weimin Pan <weimin.pan@oracle.com>
5925 Jose E. Marchesi <jose.marchesi@oracle.com>
5926
5927 * configure.tgt: Add entry for bpf-*-*.
5928 * Makefile.in (ALL_TARGET_OBS): Add bpf-tdep.o
5929 (ALLDEPFILES): Add bpf-tdep.c.
5930 * bpf-tdep.c: New file.
5931 * MAINTAINERS: Add bpf target and maintainer.
5932 * NEWS: Mention the support for the new target.
5933
521894aa
TV
59342020-08-04 Tom de Vries <tdevries@suse.de>
5935
5936 PR symtab/23270
5937 * dwarf2/read.c (find_partial_die): Change internal error into Dwarf
5938 Error.
5939
5d6356e9
JB
59402020-08-03 John Baldwin <jhb@FreeBSD.org>
5941
5942 * syscalls/freebsd.xml: Regenerate.
5943
0cf82b81
JB
59442020-08-03 John Baldwin <jhb@FreeBSD.org>
5945
5946 * syscalls/update-freebsd.sh: Fix usage and year range.
5947
8f34b746
TV
59482020-08-03 Tom de Vries <tdevries@suse.de>
5949
5950 PR symtab/26333
5951 * dwarf2/read.c (dwarf_decode_lines_1): Ignore
5952 DW_LNE_lo_user/DW_LNE_hi_user range.
5953
5e500d33
SM
59542020-07-30 Simon Marchi <simon.marchi@polymtl.ca>
5955
5956 PR ada/26318
5957 * ada-lang.c (ada_modulus): Return 0 if property is not of const
5958 kind.
5959
78319c15
TBA
59602020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5961
5962 * breakpoint.c (set_breakpoint_condition): Do minor refactoring.
5963
4c55e970
TBA
59642020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5965
5966 * breakpoint.c (set_breakpoint_condition): Update the condition
5967 expressions after checking that the input condition string parses
5968 successfully and does not contain junk at the end.
5969
1e620590
TBA
59702020-07-30 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
5971
5972 * breakpoint.c (set_breakpoint_condition): Update the
5973 condition string after parsing the new condition successfully.
5974
c8693053
RO
59752020-07-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5976
5977 * proc-api.c (_STRUCTURED_PROC): Don't define.
5978 * proc-events.c: Likewise.
5979 * proc-flags.c: Likewise.
5980 * proc-why.c: Likewise.
5981 * procfs.c: Likewise.
5982
5983 * Makefile.in (INTERNAL_CPPFLAGS): Add LARGEFILE_CPPFLAGS.
5984 * configure, config.in: Regenerate.
5985
5a99adb8
TV
59862020-07-30 Tom de Vries <tdevries@suse.de>
5987
5988 PR build/26320
5989 * ui-style.h (struct ui_file_style::color): Wrap m_value and
5990 m_red/m_green/m_blue in a union.
5991
8ba83e91
TV
59922020-07-29 Tom de Vries <tdevries@suse.de>
5993
5994 PR tdep/26280
5995 * s390-tdep.c (s390_displaced_step_fixup): Fix Wmaybe-uninitialized.
5996
f75a0693
AB
59972020-07-28 Tom Tromey <tromey@adacore.com>
5998
5999 PR symtab/26270:
6000 * symtab.h (find_pc_partial_function_sym): Declare.
6001 * cli/cli-cmds.c (disassemble_command): Use
6002 find_pc_partial_function_sym. Check asm_demangle.
6003 * blockframe.c (cache_pc_function_sym): New global.
6004 (cache_pc_function_name): Remove.
6005 (clear_pc_function_cache): Update.
6006 (find_pc_partial_function_sym): New function, from
6007 find_pc_partial_function.
6008 (find_pc_partial_function): Rewrite using
6009 find_pc_partial_function_sym.
6010
16f3242c
TT
60112020-07-28 Tom Tromey <tromey@adacore.com>
6012
6013 * cli/cli-cmds.c (_initialize_cli_cmds): Rearrange "disassemble"
6014 help. Add usage.
6015
4888741a
TT
60162020-07-28 Tom Tromey <tromey@adacore.com>
6017
6018 * dwarf2/expr.c (dwarf_expr_context::execute_stack_op)
6019 <DW_OP_GNU_variable_value>: Cast to address type.
6020
4d46f402
KR
60212020-07-28 Kamil Rytarowski <n54@gmx.com>
6022
6023 * nbsd-nat.h (nbsd_nat_target::xfer_partial): New declaration.
6024 * nbsd-nat.c (nbsd_nat_target::xfer_partial): New function.
6025 * nbsd-tdep.c (nbsd_gdbarch_data_handle, struct nbsd_gdbarch_data)
6026 (init_nbsd_gdbarch_data, get_nbsd_gdbarch_data)
6027 (nbsd_get_siginfo_type): New.
6028 (nbsd_init_abi): Install gdbarch "get_siginfo_type" method.
6029 (_initialize_nbsd_tdep): New.
6030
d70f978b
L
60312020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6032
6033 PR binutils/26301
6034 * configure: Regenerated.
6035
377170fa
L
60362020-07-28 H.J. Lu <hongjiu.lu@intel.com>
6037
6038 PR binutils/26301
6039 * configure: Regenerated.
6040
43d5901d
AB
60412020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6042
6043 * python/py-frame.c: Remove 'user-regs.h' include.
6044 (frapy_read_register): Rewrite to make use of
6045 gdbpy_parse_register_id.
6046 * python/py-registers.c (gdbpy_parse_register_id): New function,
6047 moved here from python/py-unwind.c. Updated the return type, and
6048 also accepts register descriptor objects.
6049 * python/py-unwind.c: Remove 'user-regs.h' include.
6050 (pyuw_parse_register_id): Moved to python/py-registers.c.
6051 (unwind_infopy_add_saved_register): Update to use
6052 gdbpy_parse_register_id.
6053 (pending_framepy_read_register): Likewise.
6054 * python/python-internal.h (gdbpy_parse_register_id): Declare.
6055
14fa8fb3
AB
60562020-07-28 Andrew Burgess <andrew.burgess@embecosm.com>
6057
6058 * python/py-registers.c: Add 'user-regs.h' include.
6059 (register_descriptor_iter_find): New function.
6060 (register_descriptor_iterator_object_methods): New static global
6061 methods array.
6062 (register_descriptor_iterator_object_type): Add pointer to methods
6063 array.
6064
ddce1758
JB
60652020-07-27 John Baldwin <jhb@FreeBSD.org>
6066
6067 * fbsd-nat.h: Include <osreldate.h>. Define USE_SIGTRAP_SIGINFO
6068 for all architectures on FreeBSD 11.3 and later.
6069
a4089f52
TT
60702020-07-27 Tom Tromey <tromey@adacore.com>
6071
6072 * gcore.h (load_corefile): Don't declare.
6073
95420d30
TV
60742020-07-27 Tom de Vries <tdevries@suse.de>
6075
6076 * configure.ac: Fix sys/sockets.h -> sys/socket.h typo.
6077 * config.in: Regenerate.
6078 * configure: Regenerate.
6079
05a6b8c2
EZ
60802020-07-26 Eli Zaretskii <eliz@gnu.org>
6081
6082 * configure.ac (AC_CHECK_HEADERS): Check for sys/socket.h and
6083 ws2tcpip.h. When checking whether socklen_t type is defined, use
6084 ws2tcpip.h if it is available and sys/socket.h isn't.
6085 * configure: Regenerate.
6086 * config.in: Regenerate.
6087
e79eb02f
AB
60882020-07-25 Andrew Burgess <andrew.burgess@embecosm.com>
6089
6090 PR fortran/23051
6091 PR fortran/26139
6092 * valops.c (value_ind): Pass address to
6093 readjust_indirect_value_type.
6094 * value.c (readjust_indirect_value_type): Make parameter
6095 non-const, and add extra address parameter. Resolve original type
6096 before using it.
6097 * value.h (readjust_indirect_value_type): Update function
6098 signature and comment.
6099
876518dd
TV
61002020-07-25 Tom de Vries <tdevries@suse.de>
6101
6102 PR symtab/26243
6103 * dwarf2/read.c (lnp_state_machine::record_line): Ignore zero line
6104 entries.
6105
f6720b1c
AM
61062020-07-24 Aaron Merey <amerey@redhat.com>
6107
6108 * Makefile.in: Replace LIBDEBUGINFOD with DEBUGINFOD_LIBS.
6109 * configure: Rebuild.
6110
513487e1
KB
61112020-07-23 Kevin Buettner <kevinb@redhat.com>
6112
6113 PR corefiles/26294
6114 * corelow.c (_initialize_corelow): Add period to help text
6115 for "maintenance print core-file-backed-mappings".
6116
e7bc9db8
PA
61172020-07-23 Pedro Alves <pedro@palves.net>
6118
6119 * frame-unwind.c (frame_unwind_try_unwinder): On exception, don't
6120 touch THIS_CACHE/THIS_FRAME if the frame cache was cleared
6121 meanwhile.
6122 * frame.c (frame_cache_generation, get_frame_cache_generation):
6123 New.
6124 (reinit_frame_cache): Increment FRAME_CACHE_GENERATION.
6125 (get_prev_frame_if_no_cycle): On exception, don't touch
6126 PREV_FRAME/THIS_FRAME if the frame cache was cleared meanwhile.
6127 * frame.h (get_frame_cache_generation): Declare.
6128
90fcc466
TV
61292020-07-23 Tom de Vries <tdevries@suse.de>
6130
6131 PR tui/26282
6132 * tui/tui-winsource.h (struct tui_source_windows::tui_source_windows):
6133 New default constructor.
6134
78344df7
AB
61352020-07-23 Andrew Burgess <andrew.burgess@embecosm.com>
6136
6137 * disasm.c (do_mixed_source_and_assembly_deprecated): Don't
6138 exclude non-statement entries.
6139
b089853a
KB
61402020-07-22 Kevin Buettner <kevinb@redhat.com>
6141
6142 * NEWS (New commands): Mention new command
6143 "maintenance print core-file-backed-mappings".
6144
09c2f5d4
KB
61452020-07-22 Kevin Buettner <kevinb@redhat.com>
6146
6147 * corelow.c (gdbcmd.h): Include.
6148 (core_target::info_proc_mappings): New method.
6149 (get_current_core_target): New function.
6150 (maintenance_print_core_file_backed_mappings): New function.
6151 (_initialize_corelow): Add core-file-backed-mappings to
6152 "maint print" commands.
6153
9c5ec5c2 61542020-07-22 Kevin Buettner <kevinb@redhat.com>
fe4c3d43 6155
9c5ec5c2
KB
6156 * linux-tdep.c (dump_note_entry_p): New function.
6157 (linux_dump_mapping_p_ftype): New typedef.
6158 (linux_find_memory_regions_full): Add new parameter,
6159 should_dump_mapping_p.
6160 (linux_find_memory_regions): Adjust call to
6161 linux_find_memory_regions_full.
6162 (linux_make_mappings_core_file_notes): Use dump_note_entry_p in
6163 call to linux_find_memory_regions_full.
6164
db082f59
KB
61652020-07-22 Kevin Buettner <kevinb@redhat.com>
6166
6167 * corelow.c (solist.h, unordered_map): Include.
6168 (class core_target): Add field m_core_file_mappings and
6169 method build_file_mappings.
6170 (core_target::core_target): Call build_file_mappings.
6171 (core_target::~core_target): Free memory associated with
6172 m_core_file_mappings.
6173 (core_target::build_file_mappings): New method.
6174 (core_target::xfer_partial): Use m_core_file_mappings
6175 for memory transfers.
6176 * linux-tdep.c (linux_read_core_file_mappings): New
6177 function.
6178 (linux_core_info_proc_mappings): Rewrite to use
6179 linux_read_core_file_mappings.
6180 (linux_init_abi): Register linux_read_core_file_mappings.
6181
7e183d27
KB
61822020-07-22 Kevin Buettner <kevinb@redhat.com>
6183
6184 * arch-utils.c (default_read_core_file_mappings): New function.
6185 * arch-utils.c (default_read_core_file_mappings): Declare.
6186 * gdbarch.sh (read_core_file_mappings): New gdbarch method.
6187 * gdbarch.h, gdbarch.c: Regenerate.
6188
2735d421
KB
61892020-07-22 Kevin Buettner <kevinb@redhat.com>
6190
6191 PR corefiles/25631
6192 * corelow.c (core_target:xfer_partial): Revise
6193 TARGET_OBJECT_MEMORY case to consider non-SEC_HAS_CONTENTS
6194 case after first checking the stratum beneath the core
6195 target.
6196 (has_all_memory): Return true.
6197 * target.c (raw_memory_xfer_partial): Revise comment
6198 regarding use of has_all_memory.
6199
e56cb451
KB
62002020-07-22 Kevin Buettner <kevinb@redhat.com>
6201
6202 * exec.h (section_table_xfer_memory): Revise declaration,
6203 replacing section name parameter with an optional callback
6204 predicate.
6205 * exec.c (section_table_xfer_memory): Likewise.
6206 * bfd-target.c, exec.c, target.c, corelow.c: Adjust all callers
6207 of section_table_xfer_memory.
6208
32fa152e
TT
62092020-07-22 Tom Tromey <tromey@adacore.com>
6210
6211 * mi/mi-cmd-stack.c (list_args_or_locals): Use
6212 lookup_symbol_search_name.
6213
a67a1c41
AB
62142020-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
6215
6216 * python/py-registers.c (gdbpy_register_object_data_init): Remove
6217 redundant local variable.
6218 (gdbpy_get_register_descriptor): Extract descriptor vector as a
6219 reference, not pointer, update code accordingly.
6220
a7b4ff4f
SM
62212020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6222 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6223
6224 * objfiles.h (struct objfile) <skip_jit_symbol_lookup>: New field.
6225 * jit.c (jit_breakpoint_re_set_internal): Use the
6226 `skip_jit_symbol_lookup` field.
6227
2340e834
SM
62282020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6229 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6230
6231 * jit.c (jit_read_descriptor): Define the descriptor address once,
6232 use twice.
6233 (jit_breakpoint_deleted): Move the declaration of the loop variable
6234 `iter` into the loop header.
6235 (jit_breakpoint_re_set_internal): Move the declaration of the local
6236 variable `objf_data` to the first point of definition.
6237 (jit_event_handler): Move the declaration of local variables
6238 `code_entry`, `entry_addr`, and `objf` to their first point of use.
6239 Rename `objf` to `jited`.
6240
c1072906
SM
62412020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6242
6243 * jit.h (struct jiter_objfile_data) <jiter_objfile_data, objfile>:
6244 Remove.
6245 * jit.c (get_jiter_objfile_data): Update.
6246
c8474dc3
TBA
62472020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6248 Simon Marchi <simon.marchi@polymtl.ca>
6249
6250 * jit.c (struct jit_program_space_data): Remove.
6251 (jit_program_space_key): Remove.
6252 (jiter_objfile_data::~jiter_objfile_data): Remove program space
6253 stuff.
6254 (get_jit_program_space_data): Remove.
6255 (jit_breakpoint_deleted): Iterate on all of the program space's
6256 objfiles.
6257 (jit_inferior_init): Likewise.
6258 (jit_breakpoint_re_set_internal): Likewise. Also change return
6259 type to void.
6260 (jit_breakpoint_re_set): Pass current_program_space to
6261 jit_breakpoint_re_set_internal.
6262
77208eb7
SM
62632020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6264
6265 * jit.h (struct jiter_objfile_data) <cached_code_address,
6266 jit_breakpoint>: Move to here from ...
6267 * jit.c (jit_program_space_data): ... here.
6268 (jiter_objfile_data::~jiter_objfile_data): Update.
6269 (jit_breakpoint_deleted): Update.
6270 (jit_breakpoint_re_set_internal): Update.
6271
8c1c720f
SM
62722020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6273
6274 * jit.c (jiter_objfile_data::~jiter_objfile_data): Remove some
6275 checks.
6276 (jit_read_descriptor): Remove NULL check.
6277 (jit_event_handler): Add an assertion.
6278
0e74a041
SM
62792020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6280
6281 * jit.h (struct jit_objfile_data): Split into...
6282 (struct jiter_objfile_data): ... this ...
6283 (struct jited_objfile_data): ... and this.
6284 * objfiles.h (struct objfile) <jit_data>: Remove.
6285 <jiter_data, jited_data>: New fields.
6286 * jit.c (jit_objfile_data::~jit_objfile_data): Rename to ...
6287 (jiter_objfile_data::~jiter_objfile_data): ... this.
6288 (get_jit_objfile_data): Rename to ...
6289 (get_jiter_objfile_data): ... this.
6290 (add_objfile_entry): Update.
6291 (jit_read_descriptor): Use get_jiter_objfile_data.
6292 (jit_find_objf_with_entry_addr): Use objfile's jited_data field.
6293 (jit_breakpoint_re_set_internal): Use get_jiter_objfile_data.
6294 (jit_inferior_exit_hook): Use objfile's jited_data field.
6295
238b5c9f
SM
62962020-07-22 Simon Marchi <simon.marchi@polymtl.ca>
6297
6298 * jit.h: Forward-declare `struct minimal_symbol`.
6299 (struct jit_objfile_data): Migrate to here from jit.c; also add a
6300 constructor, destructor, and an objfile* field.
6301 * jit.c (jit_objfile_data): Remove.
6302 (struct jit_objfile_data): Migrate from here to jit.h.
6303 (jit_objfile_data::~jit_objfile_data): New destructor
6304 implementation with code moved from free_objfile_data.
6305 (free_objfile_data): Delete.
6306 (get_jit_objfile_data): Update to use the jit_data field of objfile.
6307 (jit_find_objf_with_entry_addr): Ditto.
6308 (jit_inferior_exit_hook): Ditto.
6309 (_initialize_jit): Remove the call to
6310 register_objfile_data_with_cleanup.
6311 * objfiles.h (struct objfile) <jit_data>: New field.
6312
fe053b9e
TBA
63132020-07-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
6314
6315 * jit.h: Forward-declare `struct objfile`.
6316 (jit_event_handler): Add a second parameter, the JITer objfile.
6317 * jit.c (jit_read_descriptor): Change the signature to take the
6318 JITer objfile as an argument instead of the jit_program_space_data.
6319 (jit_inferior_init): Update the call to jit_read_descriptor.
6320 (jit_event_handler): Use the new JITer objfile argument when calling
6321 jit_read_descriptor.
6322 * breakpoint.c (handle_jit_event): Update the call to
6323 jit_event_handler to pass the JITer objfile.
6324
4cec0c66
JB
63252020-07-21 John Baldwin <jhb@FreeBSD.org>
6326
6327 * gdbarch.c: Regenerate.
6328 * gdbarch.h: Regenerate.
6329 * gdbarch.sh (handle_segmentation_fault): Remove method.
6330 * infrun.c (handle_segmentation_fault): Remove.
6331 (print_signal_received_reason): Remove call to
6332 handle_segmentation_fault.
6333
0e42f66a
JB
63342020-07-21 John Baldwin <jhb@FreeBSD.org>
6335
6336 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
6337 Rename to sparc64_linux_report_signal_info and add siggnal
6338 argument.
6339 (sparc64_linux_init_abi): Use sparc64_linux_report_signal_info
6340 instead of sparc64_linux_handle_segmentation_fault.
6341
77bdfeb2
JB
63422020-07-21 John Baldwin <jhb@FreeBSD.org>
6343
6344 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Use
6345 i386_linux_report_signal_info instead of
6346 i386_linux_handle_segmentation_fault.
6347 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Rename
6348 to i386_linux_report_signal_info and add siggnal argument.
6349 (i386_linux_init_abi): Use i386_linux_report_signal_info instead
6350 of i386_linux_handle_segmentation_fault.
6351 * i386-linux-tdep.h (i386_linux_handle_segmentation_fault): Rename
6352 to i386_linux_report_signal_info and add siggnal argument.
6353
ad97bfc5
JB
63542020-07-21 John Baldwin <jhb@FreeBSD.org>
6355
6356 * corelow.c (core_target_open): Invoke gdbarch report_signal_info
6357 hook if present.
6358
272bb05c
JB
63592020-07-21 John Baldwin <jhb@FreeBSD.org>
6360
6361 * gdbarch.c: Regenerate.
6362 * gdbarch.h: Regenerate.
6363 * gdbarch.sh (report_signal_info): New method.
6364 * infrun.c (print_signal_received_reason): Invoke gdbarch
6365 report_signal_info hook if present.
6366
baf8791e
AB
63672020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6368
6369 * python/py-registers.c : Add 'unordered_map' include.
6370 (gdbpy_new_reggroup): Renamed to...
6371 (gdbpy_get_reggroup): ...this. Update to only create register
6372 group descriptors when needed.
6373 (gdbpy_reggroup_iter_next): Update.
6374
f7306dac
AB
63752020-07-21 Andrew Burgess <andrew.burgess@embecosm.com>
6376
6377 * python/py-registers.c (gdbpy_register_object_data): New static
6378 global.
6379 (gdbpy_register_object_data_init): New function.
6380 (gdbpy_new_register_descriptor): Renamed to...
6381 (gdbpy_get_register_descriptor): ...this, and update to reuse
6382 existing register descriptors where possible.
6383 (gdbpy_register_descriptor_iter_next): Update.
6384 (gdbpy_initialize_registers): Register new gdbarch data.
6385
05c309a8
SM
63862020-07-21 Simon Marchi <simon.marchi@efficios.com>
6387
6388 * linux-nat.c (stopped_pids): Make static.
6389
d1fd641e
SM
63902020-07-21 Simon Marchi <simon.marchi@polymtl.ca>
6391
6392 PR ada/26235
6393 * gdbtypes.c (ada_discrete_type_low_bound,
6394 ada_discrete_type_high_bound): Handle undefined bounds.
6395
1de14d77
KR
63962020-07-21 Kamil Rytarowski <n54@gmx.com>
6397
6398 * nbsd-nat.h (nbsd_nat_target::supports_multi_process): New
6399 declaration.
6400 * nbsd-nat.c (nbsd_nat_target::supports_multi_process): New
6401 function.
6402
ed810cc7
JB
64032020-07-20 John Baldwin <jhb@FreeBSD.org>
6404
6405 * fbsd-tdep.c (fbsd_skip_solib_resolver): New function.
6406 (fbsd_init_abi): Install gdbarch "skip_solib_resolver" method.
6407 * fbsd-tdep.h (fbsd_skip_solib_resolver): New prototype.
6408 * mips-fbsd-tdep.c (mips_fbsd_skip_solib_resolver): New function.
6409 (mips_fbsd_init_abi): Install gdbarch "skip_solib_resolver"
6410 method.
6411
ae5369e7
LC
64122020-07-20 Ludovic Courtès <ludo@gnu.org>
6413
6414 * guile/scm-math.c (vlscm_integer_fits_p): Use 'uintmax_t'
6415 and 'intmax_t' instead of 'scm_t_uintmax' and 'scm_t_intmax',
6416 which are deprecated in Guile 3.0.
6417 * configure.ac (try_guile_versions): Add "guile-3.0".
6418 * configure (try_guile_versions): Regenerate.
6419 * NEWS: Update entry.
6420
68cf161c
LC
64212020-07-20 Ludovic Courtès <ludo@gnu.org>
6422 Doug Evans <dje@google.com>
6423
6424 PR gdb/21104
6425 * guile/scm-ports.c (USING_GUILE_BEFORE_2_2): New macro.
6426 (ioscm_memory_port)[read_buf_size, write_buf_size]: Wrap in #if
6427 USING_GUILE_BEFORE_2_2.
6428 (stdio_port_desc, memory_port_desc) [!USING_GUILE_BEFORE_2_2]:
6429 Change type to 'scm_t_port_type *'.
6430 (natural_buffer_size) [!USING_GUILE_BEFORE_2_2]: New variable.
6431 (ioscm_open_port) [USING_GUILE_BEFORE_2_2]: Add 'stream'
6432 parameter and honor it. Update callers.
6433 (ioscm_open_port) [!USING_GUILE_BEFORE_2_2]: New function.
6434 (ioscm_read_from_port, ioscm_write) [!USING_GUILE_BEFORE_2_2]: New
6435 functions.
6436 (ioscm_fill_input, ioscm_input_waiting, ioscm_flush): Wrap in #if
6437 USING_GUILE_BEFORE_2_2.
6438 (ioscm_init_gdb_stdio_port) [!USING_GUILE_BEFORE_2_2]: Use
6439 'ioscm_read_from_port'. Call 'scm_set_port_read_wait_fd'.
6440 (ioscm_init_stdio_buffers) [!USING_GUILE_BEFORE_2_2]: New function.
6441 (gdbscm_stdio_port_p) [!USING_GUILE_BEFORE_2_2]: Use 'SCM_PORTP'
6442 and 'SCM_PORT_TYPE'.
6443 (gdbscm_memory_port_end_input, gdbscm_memory_port_seek)
6444 (ioscm_reinit_memory_port): Wrap in #if USING_GUILE_BEFORE_2_2.
6445 (gdbscm_memory_port_read, gdbscm_memory_port_write)
6446 (gdbscm_memory_port_seek, gdbscm_memory_port_close)
6447 [!USING_GUILE_BEFORE_2_2]: New functions.
6448 (gdbscm_memory_port_print): Remove use of 'SCM_PTOB_NAME'.
6449 (ioscm_init_memory_port_type) [!USING_GUILE_BEFORE_2_2]: Use
6450 'gdbscm_memory_port_read'.
6451 Wrap 'scm_set_port_end_input', 'scm_set_port_flush', and
6452 'scm_set_port_free' calls in #if USING_GUILE_BEFORE_2_2.
6453 (gdbscm_get_natural_buffer_sizes) [!USING_GUILE_BEFORE_2_2]: New
6454 function.
6455 (ioscm_init_memory_port): Remove.
6456 (ioscm_init_memory_port_stream): New function
6457 (ioscm_init_memory_port_buffers) [USING_GUILE_BEFORE_2_2]: New
6458 function.
6459 (gdbscm_memory_port_read_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6460 Return scm_from_uint (0).
6461 (gdbscm_set_memory_port_read_buffer_size_x)
6462 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6463 (gdbscm_memory_port_write_buffer_size) [!USING_GUILE_BEFORE_2_2]:
6464 Return scm_from_uint (0).
6465 (gdbscm_set_memory_port_write_buffer_size_x)
6466 [!USING_GUILE_BEFORE_2_2]: Call 'scm_setvbuf'.
6467 * configure.ac (try_guile_versions): Add "guile-2.2".
6468 * configure: Regenerate.
6469 * NEWS: Add entry.
6470
aee91db3
TT
64712020-07-18 Tom Tromey <tom@tromey.com>
6472
6473 * linux-nat.c (linux_multi_process): Remove.
6474 (linux_nat_target::supports_multi_process): Return true.
6475
0e267416
AB
64762020-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
6477
6478 * arch/riscv.c (riscv_tdesc_cache): Change map type.
6479 (riscv_lookup_target_description): Return pointer out of
6480 unique_ptr.
6481 * target-descriptions.c (allocate_target_description): Add
6482 comment.
6483 (target_desc_deleter::operator()): Likewise.
6484 * target-descriptions.h (struct target_desc_deleter): Moved to
6485 gdbsupport/tdesc.h.
6486 (target_desc_up): Likewise.
6487
f80c8ec4
TT
64882020-07-17 Tom Tromey <tromey@adacore.com>
6489
6490 * linux-nat.c (linux_nat_target::supports_non_stop)
6491 (linux_nat_target::always_non_stop_p): Use "true".
6492 (linux_nat_target::supports_disable_randomization): Use "true" and
6493 "false".
6494
d0ce17d8
CT
64952020-07-16 Caroline Tice <cmtice@google.com>
6496
6497 * dwarf2/read.c (RNGLIST_HEADER_SIZE32) New constant definition.
6498 (RNGLIST_HEADER_SIZE64): New constant definition.
6499 (struct dwop_section_names): Add rnglists_dwo.
6500 (dwop_section_names): Add .debug_rnglists.dwo, .zdebug_rnglists.dwo.
6501 (struct loclist_header): Rename to 'loclists_rnglists_header'.
6502 (struct dwo_sections): Add rnglists field.
6503 (read_attribut_reprocess): Add tag parameter.
6504 (dwarf2_ranges_read): Add tag parameter & remove forward function decl.
6505 (cu_debug_rnglists_section): New function (decl & definition).
6506 (dwarf2_locate_dwo_sections): Add code to read rnglists_dwo section.
6507 (dwarf2_rnglists_process): Add a dwarf_tag parameter, for the kind of
6508 die whose range is being checked; get rnglist section from
6509 cu_debug_rnglists_section, to get from either objfile or dwo file as
6510 appropriate. Add cases for DW_RLE_base_addressx,
6511 DW_RLE_startx_length, DW_RLE_startx_endx. Also, update to only add
6512 the base address to DW_RLE_offset_pairs (not to all ranges), moving
6513 test inside if-condition and updating complaint message.
6514 (dwarf2_ranges_process): Add dwarf tag parameter and pass it to
6515 dwarf2_rnglists_process.
6516 (dwarf2_ranges_read): Add dwarf tag parameter and pass it to
6517 dwarf2_ranges_process.
6518 (dwarf2_get_pc_bounds): Check for DW_FORM_rnglistx when setting
6519 need_ranges_base and update comment appropriately. Also pass die tag
6520 to dwarf2_ranges_read.
6521 (dwarf2_record_block_ranges): Check for DW_FORM_rnglistx when setting
6522 need_ranges_base and update comment appropriately. Also pass die tag
6523 to dwarf2_ranges_process.
6524 (read_full_die_1): Add code to read DW_AT_rnglists_base and assign to
6525 cu->ranges_base. Also pass die tag to read_attribute_reprocess.
6526 (partial_die_info::read): Check for DW_FORM_rnglistx when setting
6527 need_ranges_base and update comment appropriately. Also pass die tag
6528 to read_attribute_reprocess and dwarf2_ranges_read.
6529 (read_loclist_header): Rename function to read_loclists_rnglists_header,
6530 and update function comment appropriately.
6531 (read_loclist_index): Call read_loclists_rnglists_header instead of
6532 read_loclist_header.
6533 (read_rnglist_index): New function.
6534 (read_attribute_reprocess): Add tag parameter. Add code for
6535 DW_FORM_rnglistx, passing tag to read_rnglist_index.
6536 (read_attribute_value): Mark DW_FORM_rnglistx with need_reprocess.
6537
3dcc261c
AB
65382020-07-15 Andrew Burgess <andrew.burgess@embecosm.com>
6539
6540 * f-typeprint.c (f_type_print_base): Allow for dynamic types not
6541 being resolved.
6542
ccb9eba6
AB
65432020-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
6544
6545 * arch-utils.c (show_architecture): Update formatting of messages.
6546
cf88be68
SM
65472020-07-12 Simon Marchi <simon.marchi@efficios.com>
6548
6549 * gdbtypes.h (struct type) <bounds>: Handle array and string
6550 types.
6551 * ada-lang.c (assign_aggregate): Use type::bounds on
6552 array/string type.
6553 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
6554 * c-varobj.c (c_number_of_children): Likewise.
6555 (c_describe_child): Likewise.
6556 * eval.c (evaluate_subexp_for_sizeof): Likewise.
6557 * f-typeprint.c (f_type_print_varspec_suffix): Likewise.
6558 (f_type_print_base): Likewise.
6559 * f-valprint.c (f77_array_offset_tbl): Likewise.
6560 (f77_get_upperbound): Likewise.
6561 (f77_print_array_1): Likewise.
6562 * guile/scm-type.c (gdbscm_type_range): Likewise.
6563 * m2-typeprint.c (m2_array): Likewise.
6564 (m2_is_long_set_of_type): Likewise.
6565 * m2-valprint.c (get_long_set_bounds): Likewise.
6566 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
6567 * python/py-type.c (typy_range): Likewise.
6568 * rust-lang.c (rust_internal_print_type): Likewise.
6569 * type-stack.c (type_stack::follow_types): Likewise.
6570 * valarith.c (value_subscripted_rvalue): Likewise.
6571 * valops.c (value_cast): Likewise.
6572
509971ae
SM
65732020-07-12 Simon Marchi <simon.marchi@efficios.com>
6574
6575 * gdbtypes.c (TYPE_ARRAY_BIT_STRIDE): Remove. Update all
6576 callers to use the equivalent accessor methods.
6577
107406b7
SM
65782020-07-12 Simon Marchi <simon.marchi@efficios.com>
6579
6580 * gdbtypes.h (struct range_bounds) <bit_stride>: New method.
6581 (struct type) <bit_stride>: New method.
6582 (TYPE_BIT_STRIDE): Remove.
6583 * gdbtypes.c (update_static_array_size): Use type::bit_stride.
6584
bb789949
SM
65852020-07-12 Simon Marchi <simon.marchi@efficios.com>
6586
6587 * gdbtypes.h (TYPE_ARRAY_LOWER_BOUND_VALUE,
6588 TYPE_ARRAY_UPPER_BOUND_VALUE): Remove. Update all
6589 callers to use the equivalent accessor methods instead.
6590
39498edb
SM
65912020-07-12 Simon Marchi <simon.marchi@efficios.com>
6592
6593 * gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED,
6594 TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Remove. Update all
6595 callers to use the equivalent accessor methods instead.
6596
3b606f38
SM
65972020-07-12 Simon Marchi <simon.marchi@efficios.com>
6598
6599 * gdbtypes.h (TYPE_LOW_BOUND_KIND,
6600 TYPE_HIGH_BOUND_KIND): Remove. Update all callers
6601 to use dynamic_prop::kind.
6602
064d9cb9
SM
66032020-07-12 Simon Marchi <simon.marchi@efficios.com>
6604
6605 * gdbtypes.h (TYPE_LOW_BOUND_UNDEFINED,
6606 TYPE_HIGH_BOUND_UNDEFINED): Remove. Update all callers
6607 to get the bound property's kind and check against
6608 PROP_UNDEFINED.
6609
5537ddd0
SM
66102020-07-12 Simon Marchi <simon.marchi@efficios.com>
6611
6612 * gdbtypes.h (TYPE_LOW_BOUND, TYPE_HIGH_BOUND): Remove. Update
6613 all callers to use type::range_bounds followed by
6614 dynamic_prop::{low,high}.
6615
8c2e4e06
SM
66162020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6617
6618 * gdbtypes.h (struct dynamic_prop) <kind, set_undefined,
6619 const_val, set_const_val, baton, set_locexpr, set_loclist,
6620 set_addr_offset, variant_parts, set_variant_parts,
6621 original_type, set_original_type>: New methods.
6622 <kind>: Rename to...
6623 <m_kind>: ... this. Update all users to use the new methods
6624 instead.
6625 <data>: Rename to...
6626 <m_data>: ... this. Update all users to use the new methods
6627 instead.
6628
7c6f2712
SM
66292020-07-12 Simon Marchi <simon.marchi@efficios.com>
6630
6631 * gdbtypes.c (get_discrete_bounds): Return failure if
6632 the range type's bounds are not both defined and constant
6633 values.
6634 (get_array_bounds): Update comment. Remove undefined bound check.
6635
599088e3
SM
66362020-07-12 Simon Marchi <simon.marchi@polymtl.ca>
6637
6638 * gdbtypes.h (TYPE_RANGE_DATA): Remove. Update callers to use
6639 the type::bounds method directly.
6640
c4dfcb36
SM
66412020-07-12 Simon Marchi <simon.marchi@efficios.com>
6642
6643 * gdbtypes.h (struct type) <bounds, set_bounds>: New methods.
6644 (TYPE_RANGE_DATA): Use type::bounds. Change all uses that
6645 are used to set the range type's bounds to use set_bounds.
6646
0a278aa7
PW
66472020-07-11 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6648
6649 * exec.c (_initialize_exec): Update exec-file-mismatch help.
6650
cce20f10
PA
66512020-07-10 Pedro Alves <pedro@palves.net>
6652
6653 * gdbthread.h (inferior_ref): Define.
6654 (scoped_restore_current_thread) <m_thread>: Now a thread_info_ref.
6655 (scoped_restore_current_thread) <m_inf>: Now an inferior_ref.
6656 * thread.c
6657 (scoped_restore_current_thread::restore):
6658 Adjust to gdb::ref_ptr.
6659 (scoped_restore_current_thread::~scoped_restore_current_thread):
6660 Remove manual decref handling.
6661 (scoped_restore_current_thread::scoped_restore_current_thread):
6662 Adjust to use
6663 inferior_ref::new_reference/thread_info_ref::new_reference.
6664 Incref the thread before calling get_frame_id instead of after.
6665 Let TARGET_CLOSE_ERROR propagate.
6666
6d7aa592
PA
66672020-07-10 Pedro Alves <pedro@palves.net>
6668
6669 * frame-tailcall.c (dwarf2_tailcall_sniffer_first): Only swallow
6670 NO_ENTRY_VALUE_ERROR / MEMORY_ERROR / OPTIMIZED_OUT_ERROR /
6671 NOT_AVAILABLE_ERROR.
6672 * value.c (value_optimized_out): Only swallow MEMORY_ERROR /
6673 OPTIMIZED_OUT_ERROR / NOT_AVAILABLE_ERROR.
6674
b3e3a4c1
SM
66752020-07-10 Simon Marchi <simon.marchi@polymtl.ca>
6676 Pedro Alves <pedro@palves.net>
6677
6678 PR gdb/26199
6679 * infrun.c (threads_are_resumed_pending_p): Delete.
6680 (do_target_wait): Remove threads_are_executing and
6681 threads_are_resumed_pending_p checks from the inferior_matches
6682 lambda. Update comments.
6683
d6cc5d98
PA
66842020-07-10 Pedro Alves <pedro@palves.net>
6685
6686 PR gdb/26199
6687 * infrun.c (handle_no_resumed): Transfer terminal to inferior with
6688 executing threads.
6689
7d3badc6
PA
66902020-07-10 Pedro Alves <pedro@palves.net>
6691
6692 PR gdb/26199
6693 * infrun.c (handle_no_resumed): Handle multiple targets.
6694
42bd97a6
PA
66952020-07-10 Pedro Alves <pedro@palves.net>
6696
6697 PR gdb/26199
6698 * infrun.c (prepare_to_wait): Check target_can_async_p instead of
6699 target_is_async_p.
6700
43667cc6
PA
67012020-07-10 Pedro Alves <pedro@palves.net>
6702
6703 PR gdb/26199
6704 * target.c (target_pass_ctrlc): Look at the inferior's non-exited
6705 threads, not all threads.
6706
96118d11
PA
67072020-07-10 Pedro Alves <pedro@palves.net>
6708
6709 PR gdb/26199
6710 * remote.c (remote_target::open_1): Pass remote target pointer as
6711 data to create_async_event_handler.
6712 (remote_async_inferior_event_handler): Mark async event handler
6713 before returning if the remote target still has either pending
6714 events or unacknowledged notifications.
6715
54904d81
JB
67162020-07-10 John Baldwin <jhb@FreeBSD.org>
6717
6718 * fbsd-nat.h (fbsd_nat_target::supports_multi_process): New
6719 declaration.
6720 * fbsd-nat.c (fbsd_nat_target::supports_multi_process): New
6721 function.
6722
f37e5866
JB
67232020-07-09 John Baldwin <jhb@FreeBSD.org>
6724
6725 * inf-ptrace.c (inf_ptrace_target::wait): Don't compare against
6726 inferior_ptid.
6727
fc238d4a
JB
67282020-07-09 John Baldwin <jhb@FreeBSD.org>
6729
6730 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_ARGC,
6731 AT_FREEBSD_ARGV, AT_FREEBSD_ENVC, AT_FREEBSD_ENVV,
6732 AT_FREEBSD_PS_STRINGS.
6733
6e2469ff
HD
67342020-07-08 Hannes Domani <ssbssa@yahoo.de>
6735
6736 * auto-load.c (auto_load_objfile_script_1): Convert drive part
6737 of debugfile path on Windows.
6738
d1076c41
JB
67392020-07-08 John Baldwin <jhb@FreeBSD.org>
6740
6741 * fbsd-nat.c (fbsd_nat_target::find_memory_regions): Rename 'obfd'
6742 argument to 'data'.
6743
15f3b077
TT
67442020-07-08 Tom Tromey <tromey@adacore.com>
6745
6746 * ada-lang.c (ada_exception_message_1): Use read_memory.
6747
9fc501fd
AB
67482020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6749
6750 PR python/22748
6751 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Remove
6752 special handling for inline frames.
6753 * findvar.c (value_of_register_lazy): Skip inline frames when
6754 creating lazy register values.
6755 * frame.c (frame_id_computed_p): Delete definition.
6756 * frame.h (frame_id_computed_p): Delete declaration.
6757
64cb3757
AB
67582020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6759
6760 * NEWS: Mention additions to Python API.
6761 * python/py-arch.c (archpy_register_groups): New function.
6762 (arch_object_methods): Add 'register_groups' method.
6763 * python/py-registers.c (reggroup_iterator_object): New struct.
6764 (reggroup_object): New struct.
6765 (gdbpy_new_reggroup): New function.
6766 (gdbpy_reggroup_to_string): New function.
6767 (gdbpy_reggroup_name): New function.
6768 (gdbpy_reggroup_iter): New function.
6769 (gdbpy_reggroup_iter_next): New function.
6770 (gdbpy_new_reggroup_iterator): New function
6771 (gdbpy_initialize_registers): Register new types.
6772 (reggroup_iterator_object_type): Define new Python type.
6773 (gdbpy_reggroup_getset): New static global.
6774 (reggroup_object_type): Define new Python type.
6775 * python/python-internal.h
6776
0f767f94
AB
67772020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6778
6779 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-registers.c
6780 * python/py-arch.c (archpy_registers): New function.
6781 (arch_object_methods): Add 'registers' method.
6782 * python/py-registers.c: New file.
6783 * python/python-internal.h
6784 (gdbpy_new_register_descriptor_iterator): Declare.
6785 (gdbpy_initialize_registers): Declare.
6786 * python/python.c (do_start_initialization): Call
6787 gdbpy_initialize_registers.
6788 * NEWS: Mention additions to the Python API.
6789
87dbc774
AB
67902020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6791
6792 * NEWS: Mention new Python API method.
6793 * python/py-unwind.c (pending_framepy_architecture): New function.
6794 (pending_frame_object_methods): Add architecture method.
6795
3bc98c0c
AB
67962020-07-06 Andrew Burgess <andrew.burgess@embecosm.com>
6797
6798 * gdbarch.c: Regenerate.
6799 * gdbarch.h: Regenerate.
6800 * gdbarch.sh (deprecated_set_gdbarch_data): Delete.
6801 (gdbarch_data): Use internal_error for the case where
6802 deprecated_set_gdbarch_data was originally needed.
6803 * ia64-libunwind-tdep.c (libunwind_descr_init): Update parameters,
6804 and use passed in obstack.
6805 (libunwind_frame_set_descr): Should no longer get back NULL from
6806 gdbarch_data.
6807 (_initialize_libunwind_frame): Register as a pre-init gdbarch data
6808 type.
6809 * user-regs.c (user_regs_init): Update parameters, and use passed
6810 in obstack.
6811 (user_reg_add): Should no longer get back NULL from gdbarch_data.
6812 (_initialize_user_regs): Register as a pre-init gdbarch data type.
6813
d8cc8af6
TV
68142020-07-06 Tom de Vries <tdevries@suse.de>
6815
6816 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Handle
6817 End-Of-Sequence in lte_is_less_than.
6818 * symtab.c (find_pc_sect_line): Revert change from commit 3d92a3e313
6819 "gdb: Don't reorder line table entries too much when sorting".
6820
947f7597
TV
68212020-07-06 Tom de Vries <tdevries@suse.de>
6822
6823 PR tui/26205
6824 * tui/tui-win.c (tui_partial_win_by_name): Don't test for NULL name.
6825
1e7c1b22
TV
68262020-07-05 Tom de Vries <tdevries@suse.de>
6827
6828 PR build/26187
6829 * inferior.h (struct infcall_suspend_state_deleter): If available, use
6830 std::uncaught_exceptions instead of deprecated
6831 std::uncaught_exception.
6832
a36158ec
SM
68332020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6834
6835 * macroexp.h (macro_stringify): Return
6836 gdb::unique_xmalloc_ptr<char>.
6837 * macroexp.c (macro_stringify): Likewise.
6838 * macrotab.c (fixup_definition): Update.
6839
14d960c8
SM
68402020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6841
6842 * c-exp.y (scan_macro_expansion): Don't free `expansion`.
6843 (lex_one_token): Update.
6844 * macroexp.c (struct macro_buffer) <release>: Return
6845 gdb::unique_xmalloc_ptr<char>.
6846 (macro_stringify): Update.
6847 (macro_expand): Update.
6848 (macro_expand_next): Return gdb::unique_xmalloc_ptr<char>.
6849 * macroexp.h (macro_expand_next): Likewise.
6850
211d5b1c
SM
68512020-07-02 Simon Marchi <simon.marchi@efficios.com>
6852
6853 * macroexp.h (macro_lookup_ftype): Remove.
6854 (macro_expand, macro_expand_once, macro_expand_next): Remove
6855 lookup function parameters, add scope parameter.
6856 * macroexp.c (scan, substitute_args, expand, maybe_expand,
6857 macro_expand, macro_expand_once, macro_expand_next): Likewise.
6858 * macroscope.h (standard_macro_lookup): Change parameter type
6859 to macro_scope.
6860 * macroscope.c (standard_macro_lookup): Likewise.
6861 * c-exp.y (lex_one_token): Update.
6862 * macrocmd.c (macro_expand_command): Likewise.
6863 (macro_expand_once_command): Likewise.
6864
b1a35af2
SM
68652020-07-02 Simon Marchi <simon.marchi@polymtl.ca>
6866
6867 * inf-loop.c (inferior_event_handler): Remove client_data param.
6868 * inf-loop.h (inferior_event_handler): Likewise.
6869 * infcmd.c (step_1): Adjust.
6870 * infrun.c (proceed): Adjust.
6871 (fetch_inferior_event): Remove client_data param.
6872 (infrun_async_inferior_event_handler): Adjust.
6873 * infrun.h (fetch_inferior_event): Remove `void *` param.
6874 * linux-nat.c (handle_target_event): Adjust.
6875 * record-btrace.c (record_btrace_handle_async_inferior_event):
6876 Adjust.
6877 * record-full.c (record_full_async_inferior_event_handler):
6878 Adjust.
6879 * remote.c (remote_async_inferior_event_handler): Adjust.
6880
1cdf9e33
TT
68812020-07-01 Tom Tromey <tom@tromey.com>
6882
6883 * tui/tui-data.h (struct tui_win_info) <name>: Now pure virtual.
6884 * tui/tui-stack.h (struct tui_locator_window) <name>: New method.
6885
32c1e210
TT
68862020-07-01 Tom Tromey <tom@tromey.com>
6887
6888 * tui/tui-wingeneral.c (tui_win_info::refresh_window): Move from
6889 tui_gen_win_info.
6890 (tui_win_info::make_window): Merge with
6891 tui_gen_win_info::make_window.
6892 (tui_win_info::make_visible): Move from tui_gen_win_info.
6893 * tui/tui-win.c (tui_win_info::max_width): Move from
6894 tui_gen_win_info.
6895 * tui/tui-layout.h (class tui_layout_window) <m_window>: Change
6896 type.
6897 <window_factory>: Likewise.
6898 * tui/tui-layout.c (tui_win_info::resize): Move from
6899 tui_gen_win_info.
6900 (make_standard_window): Change return type.
6901 (get_locator_window, tui_get_window_by_name): Likewise.
6902 (tui_layout_window::apply): Remove a cast.
6903 * tui/tui-data.h (MIN_WIN_HEIGHT): Move earlier.
6904 (struct tui_win_info): Merge with tui_gen_win_info.
6905 (struct tui_gen_win_info): Remove.
6906
a30cb6da
TT
69072020-07-01 Tom Tromey <tom@tromey.com>
6908
6909 * tui/tui-stack.h (struct tui_locator_window): Derive from
6910 tui_win_info.
6911 <do_scroll_horizontal, do_scroll_vertical>: New methods.
6912 <can_box>: New method.
6913
1eb2161f
TT
69142020-07-01 Tom Tromey <tom@tromey.com>
6915
6916 * tui/tui-stack.h (struct tui_locator_window): Remove body.
6917
7134f2eb
TT
69182020-07-01 Tom Tromey <tom@tromey.com>
6919
6920 * tui/tui-regs.c (tui_data_window::display_registers_from)
6921 (tui_data_window::display_registers_from)
6922 (tui_data_window::first_data_item_displayed)
6923 (tui_data_window::delete_data_content_windows): Update.
6924 (tui_data_window::refresh_window, tui_data_window::no_refresh):
6925 Remove.
6926 (tui_data_window::check_register_values): Update.
6927 (tui_data_item_window::rerender): Add parameters. Update.
6928 (tui_data_item_window::refresh_window): Remove.
6929 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: No longer
6930 virtual.
6931 * tui/tui-regs.h (struct tui_data_item_window): Don't derive from
6932 tui_gen_win_info.
6933 <refresh_window, max_height, min_height>: Remove.
6934 <rerender>: Add parameters.
6935 <x, y, visible>: New members.
6936 (struct tui_data_window) <refresh_window, no_refresh>: Remove.
6937 <m_item_width>: New member.
6938
22b7b041
TT
69392020-07-01 Tom Tromey <tom@tromey.com>
6940
6941 * tui/tui-regs.c (tui_data_window::show_register_group)
6942 (tui_data_window::check_register_values): Update.
6943 * tui/tui-regs.h (struct tui_data_item_window) <regno>: Rename
6944 from item_no.
6945
c9753adb
TT
69462020-07-01 Tom Tromey <tom@tromey.com>
6947
6948 * tui/tui-regs.c (tui_data_window::show_register_group): Remove
6949 useless "if".
6950
9ab26b4a
TT
69512020-07-01 Tom Tromey <tom@tromey.com>
6952
6953 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
6954 * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
6955
e555083f
TT
69562020-07-01 Tom Tromey <tom@tromey.com>
6957
6958 * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h
6959 * tui/tui-winsource.h (enum tui_line_or_address_kind)
6960 (struct tui_line_or_address): Move from tui-data.h.
6961 * tui/tui-win.c (DEFAULT_TAB_LEN): Move from tui-data.h.
6962 * tui/tui-data.h (DEFAULT_TAB_LEN): Move to tui-win.c.
6963 (tui_cmd_window, tui_source_window_base, tui_source_window)
6964 (tui_disasm_window): Don't declare.
6965 (enum tui_line_or_address_kind, struct tui_line_or_address): Move
6966 to tui-winsource.h.
6967 (SINGLE_KEY): Move to tui-stack.c.
6968
7a02bab7
TT
69692020-07-01 Tom Tromey <tom@tromey.com>
6970
6971 * tui/tui-regs.h (struct tui_data_item_window) <content>: Now a
6972 std::string.
6973 * tui/tui-regs.c (class tab_expansion_file): New.
6974 (tab_expansion_file::write): New method.
6975 (tui_register_format): Change return type. Use
6976 tab_expansion_file.
6977 (tui_get_register, tui_data_window::display_registers_from)
6978 (tui_data_item_window::rerender): Update.
6979 * tui/tui-io.h (tui_expand_tabs): Don't declare.
6980 * tui/tui-io.c (tui_expand_tabs): Remove.
6981
ea68593b
TT
69822020-07-01 Tom Tromey <tom@tromey.com>
6983
6984 * tui/tui-regs.c (tui_reggroup_completer): Use complete_on_enum.
6985
a8caed5d
FS
69862020-07-01 Fangrui Song <maskray@google.com>
6987
6988 * dwarf2/read.c (lnp_state_machine::check_line_address): Test -1.
6989
9cdf9820
AKS
69902020-07-01 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
6991
6992 * dwarf2/read.c (set_die_type): Removed conditions to restrict
6993 forms for DW_AT_associated and DW_AT_allocated attributes,
6994 which is already checked in function attr_to_dynamic_prop.
6995
a1520ad8
TT
69962020-06-30 Tom Tromey <tromey@adacore.com>
6997
6998 * dwarf2/read.c (quirk_rust_enum): Correctly call
6999 alloc_rust_variant for default-less enum.
7000
5ac58899
TT
70012020-06-30 Tom Tromey <tromey@adacore.com>
7002
7003 PR build/26183:
7004 * ada-lang.c (ada_lookup_name_info::ada_lookup_name_info): Use
7005 gdb::to_string.
7006
19b187a9
SM
70072020-06-29 Simon Marchi <simon.marchi@efficios.com>
7008
7009 * gdbarch.sh (displaced_step_copy_insn): Update doc.
7010 * gdbarch.h: Re-generate.
7011
cd4c4c07
TT
70122020-06-28 Tom Tromey <tom@tromey.com>
7013
7014 * command.h (cmd_types): Remove.
7015 (cmd_type): Don't declare.
7016 * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a
7017 typedef.
7018 * cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
7019 * cli/cli-decode.c (cmd_type): Remove.
7020
05779d57
PA
70212020-06-27 Pedro Alves <palves@redhat.com>
7022
7023 * fork-child.c (prefork_hook): Adjust.
7024 * infcmd.c (set_inferior_io_terminal, get_inferior_io_terminal):
7025 Delete.
7026 (set_inferior_tty_command, show_inferior_tty_command): Adjust.
7027 * inferior.c (inferior::set_tty, inferior::tty): New methods.
7028 * inferior.h (set_inferior_io_terminal, get_inferior_io_terminal):
7029 Remove declarations.
7030 (struct inferior) <set_tty, tty>: New methods.
7031 (struct inferior) <terminal>: Rename to ...
7032 (struct inferior) <m_terminal>: ... this and make private.
7033 * main.c (captured_main_1): Adjust.
7034 * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): Adjust.
7035 (mi_cmd_inferior_tty_show): Adjust.
7036 * nto-procfs.c (nto_procfs_target::create_inferior): Adjust.
7037 * windows-nat.c (windows_nat_target::create_inferior): Adjust.
7038
1776e3e5
NA
70392020-06-26 Nick Alcock <nick.alcock@oracle.com>
7040
7041 * configure.ac: Add --enable-libctf: handle --disable-static
7042 properly.
7043 * acinclude.m4: sinclude ../config/enable.m4.
7044 * Makefile.in (aclocal_m4_deps): Adjust accordingly.
7045 (LIBCTF): Substitute in.
7046 (CTF_DEPS): New, likewise.
7047 (CLIBS): libctf needs symbols from libbfd: move earlier.
7048 (CDEPS): Use CTF_DEPS, not LIBCTF, now LIBCTF can include rpath
7049 flags.
7050 * ctfread.c: Surround in ENABLE_LIBCTF.
7051 (elfctf_build_psymtabs) [!ENABLE_LIBCTF]: New stub.
7052 * configure: Regenerate.
7053 * config.in: Likewise.
7054
58373b80
SM
70552020-06-25 Simon Marchi <simon.marchi@efficios.com>
7056
7057 * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
7058
277474ee
SM
70592020-06-25 Simon Marchi <simon.marchi@efficios.com>
7060
7061 * inferior.h (struct inferior) <terminal>: Change type to
7062 gdb::unique_xmalloc_ptr<char>.
7063 * inferior.c (inferior::~inferior): Don't free inf->terminal.
7064 * infcmd.c (set_inferior_io_terminal): Don't free terminal
7065 field, adjust to unique pointer.
7066 (get_inferior_io_terminal): Adjust to unique pointer.
7067
6d74da72
AB
70682020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7069
7070 * riscv-tdep.c (riscv_print_registers_info): Loop over all
7071 registers, not just the known core set of registers.
7072
2e52d038
AB
70732020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7074
7075 * riscv-tdep.c (riscv_register_name): Return NULL for duplicate
7076 fflags, frm, and fcsr registers.
7077 (riscv_register_reggroup_p): Remove unknown CSRs from save and
7078 restore groups.
7079 (riscv_tdesc_unknown_reg): New function.
7080 (riscv_gdbarch_init): Pass riscv_tdesc_unknown_reg to
7081 tdesc_use_registers.
7082 * riscv-tdep.h (struct gdbarch_tdep): Add
7083 unknown_csrs_first_regnum, unknown_csrs_count,
7084 duplicate_fflags_regnum, duplicate_frm_regnum, and
7085 duplicate_fcsr_regnum fields.
7086
be64fd07
AB
70872020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7088
7089 * target-descriptions.c (tdesc_use_registers): Add new parameter a
7090 callback, use the callback (when not null) to help number unknown
7091 registers.
7092 * target-descriptions.h (tdesc_unknown_register_ftype): New typedef.
7093 (tdesc_use_registers): Add extra parameter to declaration.
7094
3b9fce96
AB
70952020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7096
7097 * riscv-tdep.c (value_of_riscv_user_reg): Moved to here from later
7098 in the file.
7099 (class riscv_pending_register_alias): Likewise.
7100 (riscv_register_feature::register_info): Change 'required_p' field
7101 to 'required', and change its type. Add 'check' member function.
7102 (riscv_register_feature::register_info::check): Define new member
7103 function.
7104 (riscv_xreg_feature): Change initialisation of 'required' field.
7105 (riscv_freg_feature): Likewise.
7106 (riscv_virtual_feature): Likewise.
7107 (riscv_csr_feature): Likewise.
7108 (riscv_check_tdesc_feature): Take extra parameter, the csr
7109 tdesc_feature, rewrite the function to use the new
7110 riscv_register_feature::register_info::check function.
7111 (riscv_gdbarch_init): Pass the csr tdesc_feature where needed.
7112
865bad26
AB
71132020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7114
7115 * features/Makefile: Remove all references to the deleted files
7116 below.
7117 * features/riscv/32bit-csr.c: Deleted.
7118 * features/riscv/32bit-csr.xml: Deleted.
7119 * features/riscv/64bit-csr.c: Deleted.
7120 * features/riscv/64bit-csr.xml: Deleted.
7121 * features/riscv/rebuild-csr-xml.sh: Deleted.
7122
ed69cbc8
AB
71232020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7124
7125 * riscv-tdep.c (struct riscv_register_feature::register_info): Fix
7126 whitespace error for declaration of names member variable.
7127 (struct riscv_register_feature): Add new prefer_first_name member
7128 variable, and fix whitespace error in declaration of registers.
7129 (riscv_xreg_feature): Initialize prefer_first_name field.
7130 (riscv_freg_feature): Likewise.
7131 (riscv_virtual_feature): Likewise.
7132 (riscv_csr_feature): Likewise.
7133 (riscv_register_name): Expand on comments. Remove register name
7134 modifications for CSR and virtual registers.
7135
4445e8f5
AB
71362020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7137
7138 * riscv-tdep.c (struct riscv_register_feature): Fix whitespace
7139 errors.
7140
767a879e
AB
71412020-06-25 Andrew Burgess <andrew.burgess@embecosm.com>
7142
7143 * riscv-tdep.c (riscv_create_csr_aliases): Handle csr aliases from
7144 riscv-opc.h.
7145 (class riscv_pending_register_alias): New class.
7146 (riscv_check_tdesc_feature): Take vector of pending aliases and
7147 populate it as appropriate.
7148 (riscv_setup_register_aliases): Delete.
7149 (riscv_gdbarch_init): Create vector of pending aliases and pass it
7150 to riscv_check_tdesc_feature in all cases. Use the vector to
7151 create the register aliases.
7152
bb6e55f3
RO
71532020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7154
7155 * sol2-tdep.c (sol2_static_transform_name): Remove.
7156 (sol2_init_abi): Don't register it.
7157 * gdbarch.sh (static_transform_name): Remove.
7158 * gdbarch.c, gdbarch.h: Regenerate.
7159
7160 * dbxread.c (read_dbx_symtab) <'S'>: Remove call to
7161 gdbarch_static_transform_name.
7162 * mdebugread.c (parse_partial_symbols) <'S'>: Likewise.
7163 * stabsread.c (define_symbol) <'X'>: Remove.
7164 (define_symbol) <'S'>: Remove gdbarch_static_transform_name
7165 handling.
7166 <'V'>: Likewise.
7167 * xcoffread.c (scan_xcoff_symtab): Remove gdbarch.
7168 <'S'>: Remove call to gdbarch_static_transform_name.
7169
c6d36836
RO
71702020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7171
7172 * procfs.c (procfs_pre_trace): New function.
7173 (procfs_target::create_inferior): Pass it to fork_inferior.
7174
a7e6196b
RO
71752020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7176
7177 * configure.tgt <sparc-*-linux*> (gdb_target_obs): Remove
7178 sparc-sol2-tdep.o, sol2-tdep.o, sparc64-sol2-tdep.o.
7179 <sparc64-*-linux*> (gdb_target_obs): Remove sparc64-sol2-tdep.o,
7180 sol2-tdep.o, sparc-sol2-tdep.o.
7181 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Make static.
7182 * sparc-tdep.h (sparc32_sol2_init_abi): Remove.
7183 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Make static.
7184 * sparc64-tdep.h (sparc64_sol2_init_abi): Remove.
7185
d412e696
RO
71862020-06-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7187
7188 * amd64-sol2-tdep.c (amd64_sol2_sigtramp_p): Remove.
7189 (amd64_sol2_init_abi): Use sol2_sigtramp_p.
7190 Call sol2_init_abi.
7191 Remove calls to set_gdbarch_skip_solib_resolver,
7192 set_gdbarch_core_pid_to_str.
7193 * i386-sol2-tdep.c (i386_sol2_sigtramp_p): Remove.
7194 (i386_sol2_static_transform_name): Remove.
7195 (i386_sol2_init_abi): Call sol2_init_abi.
7196 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7197 set_gdbarch_static_transform_name,
7198 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7199 Use sol2_sigtramp_p.
7200 * sol2-tdep.c (sol2_pc_in_sigtramp): New function.
7201 (sol2_sigtramp_p): New function.
7202 (sol2_static_transform_name): New function.
7203 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Make static.
7204 (sol2_init_abi): New function.
7205 * sol2-tdep.h (sol2_sigtramp_p, sol2_init_abi): Declare.
7206 (sol2_skip_solib_resolver, sol2_core_pid_to_str): Remove.
7207 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Remove.
7208 (sparc32_sol2_sigtramp_frame_sniffer): Just call sol2_sigtramp_p.
7209 (sparc_sol2_static_transform_name): Remove.
7210 (sparc32_sol2_init_abi): Call sol2_init_abi.
7211 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7212 set_gdbarch_static_transform_name,
7213 set_gdbarch_skip_solib_resolver,
7214 set_gdbarch_core_pid_to_str.
7215 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp)
7216 (sparc_sol2_static_transform_name): Remove
7217 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_sniffer): Just
7218 call sol2_sigtramp_p.
7219 (sparc64_sol2_init_abi): Call sol2_init_abi.
7220 Remove calls to set_gdbarch_sofun_address_maybe_missing,
7221 set_gdbarch_static_transform_name,
7222 set_gdbarch_skip_solib_resolver, set_gdbarch_core_pid_to_str.
7223
a8654e7d
PW
72242020-06-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7225
7226 * symfile-add-flags.h: New flag SYMFILE_ALWAYS_CONFIRM.
7227 * exec.c (validate_exec_file): If from_tty, set both
7228 SYMFILE_VERBOSE (== from_tty) and SYMFILE_ALWAYS_CONFIRM.
7229 * symfile.c (symbol_file_add_with_addrs): if always_confirm
7230 and from_tty, unconditionally ask a confirmation.
7231
caa7fd04
AB
72322020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7233
7234 * target-descriptions.c (tdesc_architecture_name): Protect against
7235 NULL pointer dereference.
7236 (maint_print_xml_tdesc_cmd): New function.
7237 (_initialize_target_descriptions): Register new 'maint print
7238 xml-tdesc' command and give it the filename completer.
7239 * NEWS: Mention new 'maint print xml-tdesc' command.
7240
fbf42f4e
AB
72412020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7242
7243 * target-descriptions.c (class tdesc_compatible_info): New class.
7244 (struct target_desc): Change type of compatible vector.
7245 (tdesc_compatible_p): Update for change in type of
7246 target_desc::compatible.
7247 (tdesc_compatible_info_list): New function.
7248 (tdesc_compatible_info_arch_name): New function.
7249 (tdesc_add_compatible): Update for change in type of
7250 target_desc::compatible.
7251 (print_c_tdesc::visit_pre): Likewise.
7252
20821f4e
AB
72532020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7254
7255 * target-descriptions.c (print_c_tdesc::print_c_tdesc): Change
7256 whitespace to underscore.
7257 (maint_print_c_tdesc_cmd): Use fake filename for target
7258 descriptions that came from the target.
7259 (_initialize_target_descriptions): Add filename command completion
7260 for 'maint print c-tdesc'.
7261
1fb5ee62
SM
72622020-06-23 Simon Marchi <simon.marchi@efficios.com>
7263
7264 * dwarf2/loc.c (decode_debug_loclists_addresses): Add empty
7265 lines.
7266
fc3ecb3e
SM
72672020-06-23 Simon Marchi <simon.marchi@efficios.com>
7268
7269 * dwarf2/loc.c (decode_debug_loc_dwo_addresses): Add empty
7270 lines.
7271 (dwarf2_find_location_expression): Likewise.
7272 (call_site_parameter_matches): Likewise.
7273 (dwarf2_compile_expr_to_ax): Likewise.
7274 (disassemble_dwarf_expression): Likewise.
7275 (loclist_describe_location): Likewise.
7276
236ef034
PA
72772020-06-23 Pedro Alves <palves@redhat.com>
7278
7279 * gdbarch-selftests.c: Don't include inferior.h, gdbthread.h or
7280 progspace-and-thread.h. Include scoped-mock-context.h instead.
7281 (register_to_value_test): Use scoped_mock_context.
7282 * regcache.c: Include "scoped-mock-context.h".
7283 (cooked_read_test): Don't error out if a target is already pushed.
7284 Use scoped_mock_context. Adjust.
7285 * scoped-mock-context.h: New file.
7286
39e7ecca
AB
72872020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7288
7289 * ada-lang.c (ada_language_data): Delete la_is_string_type_p
7290 initializer.
7291 (ada_language::is_string_type_p): New member function.
7292 * c-lang.c (c_language_data): Delete la_is_string_type_p
7293 initializer.
7294 (cplus_language_data): Likewise.
7295 (asm_language_data): Likewise.
7296 (minimal_language_data): Likewise.
7297 * d-lang.c (d_language_data): Likewise.
7298 * f-lang.c (f_is_string_type_p): Delete function, implementation
7299 moved to f_language::is_string_type_p.
7300 (f_language_data): Delete la_is_string_type_p initializer.
7301 (f_language::is_string_type_p): New member function,
7302 implementation from f_is_string_type_p.
7303 * go-lang.c (go_is_string_type_p): Delete function, implementation
7304 moved to go_language::is_string_type_p.
7305 (go_language_data): Delete la_is_string_type_p initializer.
7306 (go_language::is_string_type_p): New member function,
7307 implementation from go_is_string_type_p.
7308 * language.c (language_defn::is_string_type_p): Define new member
7309 function.
7310 (default_is_string_type_p): Make static, add comment copied from
7311 header file.
7312 (unknown_language_data): Delete la_is_string_type_p initializer.
7313 (unknown_language::is_string_type_p): New member function.
7314 (auto_language_data): Delete la_is_string_type_p initializer.
7315 (auto_language::is_string_type_p): New member function.
7316 * language.h (language_data): Delete la_is_string_type_p field.
7317 (language_defn::is_string_type_p): Declare new function.
7318 (default_is_string_type_p): Delete desclaration, move comment to
7319 definition.
7320 * m2-lang.c (m2_is_string_type_p): Delete function, implementation
7321 moved to m2_language::is_string_type_p.
7322 (m2_language_data): Delete la_is_string_type_p initializer.
7323 (m2_language::is_string_type_p): New member function,
7324 implementation from m2_is_string_type_p.
7325 * objc-lang.c (objc_language_data): Delete la_is_string_type_p
7326 initializer.
7327 * opencl-lang.c (opencl_language_data): Likewise.
7328 * p-lang.c (pascal_is_string_type_p): Delete function,
7329 implementation moved to pascal_language::is_string_type_p.
7330 (pascal_language_data): Delete la_is_string_type_p initializer.
7331 (pascal_language::is_string_type_p): New member function,
7332 implementation from pascal_is_string_type_p.
7333 * rust-lang.c (rust_is_string_type_p): Delete function,
7334 implementation moved to rust_language::is_string_type_p.
7335 (rust_language_data): Delete la_is_string_type_p initializer.
7336 (rust_language::is_string_type_p): New member function,
7337 implementation from rust_is_string_type_p.
7338 * valprint.c (val_print_scalar_or_string_type_p): Update call to
7339 is_string_type_p.
7340
4ffc13fb
AB
73412020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7342
7343 * ada-lang.c (ada_language_data): Delete la_print_typedef
7344 initializer.
7345 (ada_language::print_typedef): New member function.
7346 * c-lang.c (c_language_data): Delete la_print_typedef initializer.
7347 (cplus_language_data): Likewise.
7348 (asm_language_data): Likewise.
7349 (minimal_language_data): Likewise.
7350 * d-lang.c (d_language_data): Likewise.
7351 * f-lang.c (f_language_data): Likewise.
7352 (f_language::print_typedef): New member function.
7353 * go-lang.c (go_language_data): Delete la_print_typedef
7354 initializer.
7355 * language.c (language_defn::print_typedef): Define member
7356 function.
7357 (unknown_language_data): Delete la_print_typedef initializer.
7358 (unknown_language::print_typedef): New member function.
7359 (auto_language_data): Delete la_print_typedef initializer.
7360 (auto_language::print_typedef): New member function.
7361 * language.h (language_data): Delete la_print_typedef field.
7362 (language_defn::print_typedef): Declare new member function.
7363 (LA_PRINT_TYPEDEF): Update call to print_typedef.
7364 (default_print_typedef): Delete declaration.
7365 * m2-lang.c (m2_language_data): Delete la_print_typedef
7366 initializer.
7367 (m2_language::print_typedef): New member function.
7368 * objc-lang.c (objc_language_data): Delete la_print_typedef
7369 initializer.
7370 * opencl-lang.c (opencl_language_data): Likewise.
7371 * p-lang.c (pascal_language_data): Likewise.
7372 (pascal_language::print_typedef): New member function.
7373 * rust-lang.c (rust_print_typedef): Delete function,
7374 implementation moved to rust_language::print_typedef.
7375 (rust_language): Delete la_print_typedef initializer.
7376 (rust_language::print_typedef): New member function,
7377 implementation from rust_print_typedef.
7378 * typeprint.c (default_print_typedef): Delete.
7379
d711ee67
AB
73802020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7381
7382 * ada-lang.c (ada_language_data): Delete la_printstr initializer.
7383 (ada_language::printstr): New member function.
7384 * c-lang.c (c_language_data): Delete la_printstr initializer.
7385 (cplus_language_data): Likewise.
7386 (asm_language_data): Likewise.
7387 (minimal_language_data): Likewise.
7388 * d-lang.c (d_language_data): Likewise.
7389 * f-lang.c (f_printstr): Rename to f_language::printstr.
7390 (f_language_data): Delete la_printstr initializer.
7391 (f_language::printstr): New member function, implementation from
7392 f_printstr.
7393 * go-lang.c (go_language_data): Delete la_printstr initializer.
7394 * language.c (language_defn::printstr): Define new member
7395 function.
7396 (unk_lang_printstr): Delete.
7397 (unknown_language_data): Delete la_printstr initializer.
7398 (unknown_language::printstr): New member function.
7399 (auto_language_data): Delete la_printstr initializer.
7400 (auto_language::printstr): New member function.
7401 * language.h (language_data): Delete la_printstr field.
7402 (language_defn::printstr): Declare new member function.
7403 (LA_PRINT_STRING): Update call to printstr.
7404 * m2-lang.c (m2_printstr): Rename to m2_language::printstr.
7405 (m2_language_data): Delete la_printstr initializer.
7406 (m2_language::printstr): New member function, implementation from
7407 m2_printstr.
7408 * objc-lang.c (objc_language_data): Delete la_printstr
7409 initializer.
7410 * opencl-lang.c (opencl_language_data): Likewise.
7411 * p-lang.c (pascal_printstr): Rename to pascal_language::printstr.
7412 (pascal_language_data): Delete la_printstr initializer.
7413 (pascal_language::printstr): New member function, implementation
7414 from pascal_printstr.
7415 * p-lang.h (pascal_printstr): Delete declaration.
7416 * rust-lang.c (rust_printstr): Update header comment.
7417 (rust_language_data): Delete la_printstr initializer.
7418 (rust_language::printstr): New member function.
7419
52b50f2c
AB
74202020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7421
7422 * ada-lang.c (ada_language_data): Delete la_printchar initializer.
7423 (ada_language::printchar): New member function.
7424 * c-lang.c (c_language_data): Delete la_printchar initializer.
7425 (cplus_language_data): Likewise.
7426 (asm_language_data): Likewise.
7427 (minimal_language_data): Likewise.
7428 * d-lang.c (d_language_data): Likewise.
7429 * f-lang.c (f_printchar): Rename to f_language::printchar.
7430 (f_language_data): Delete la_printchar initializer.
7431 (f_language::printchar): New member function, implementation from
7432 f_printchar.
7433 * go-lang.c (go_language_data): Delete la_printchar initializer.
7434 * language.c (unk_lang_printchar): Delete.
7435 (language_defn::printchar): Define new member function.
7436 (unknown_language_data): Delete la_printchar initializer.
7437 (unknown_language::printchar): New member function.
7438 (auto_language_data): Delete la_printchar initializer.
7439 (auto_language::printchar): New member function.
7440 * language.h (language_data): Delete la_printchar field.
7441 (language_defn::printchar): Declare new member function.
7442 (LA_PRINT_CHAR): Update call to printchar.
7443 * m2-lang.c (m2_language_data): Delete la_printchar initializer.
7444 (m2_language::printchar): New member function.
7445 * objc-lang.c (objc_language_data): Delete la_printchar
7446 initializer.
7447 * opencl-lang.c (opencl_language_data): Likewise.
7448 * p-lang.c (pascal_language_data): Delete la_printchar
7449 initializer.
7450 (pascal_language::printchar): New member function.
7451 * rust-lang.c (rust_printchar): Rename to
7452 rust_language::printchar.
7453 (rust_language_data): Delete la_printchar initializer.
7454 (rust_language::printchar): New member function, implementation
7455 from rust_printchar.
7456
ec8cec5b
AB
74572020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7458
7459 * ada-lang.c (emit_char): Renamed to ada_language::emitchar.
7460 (ada_language_data): Delete la_emitchar initializer.
7461 (ada_language::emitchar): New member function, implementation from
7462 emit_char.
7463 * c-lang.c (c_language_data): Delete la_emitchar initializer.
7464 (cplus_language_data): Likewise.
7465 (asm_language_data): Likewise.
7466 (minimal_language_data): Likewise.
7467 * d-lang.c (d_language_data): Likewise.
7468 * f-lang.c (f_emit_char): Rename to f_language::emitchar.
7469 (f_language_data): Delete la_emitchar initializer.
7470 (f_language::emitchar): New member function, implementation from
7471 f_emit_char.
7472 * go-lang.c (go_language_data): Delete la_emitchar initializer.
7473 * language.c (unk_lang_emit_char): Delete.
7474 (language_defn::emitchar): New member function definition.
7475 (unknown_language_data): Delete la_emitchar initializer.
7476 (unknown_language::emitchar): New member function.
7477 (auto_language_data): Delete la_emitchar initializer.
7478 (auto_language::emitchar): New member function.
7479 * language.h (language_data): Delete la_emitchar field.
7480 (language_defn::emitchar): New member field declaration.
7481 (LA_EMIT_CHAR): Update call to emitchar.
7482 * m2-lang.c (m2_emit_char): Rename to m2_language::emitchar.
7483 (m2_language_data): Delete la_emitchar initializer.
7484 (m2_language::emitchar): New member function, implementation from
7485 m2_emit_char.
7486 * objc-lang.c (objc_language_data): Delete la_emitchar
7487 initializer.
7488 * opencl-lang.c (opencl_language_data): Likewise.
7489 * p-lang.c (pascal_emit_char): Rename to pascal_language::emitchar.
7490 (pascal_language_data): Delete la_emitchar initializer.
7491 (pascal_language::emitchar): New member function, implementation
7492 from pascal_emit_char.
7493 * rust-lang.c (rust_emitchar): Rename to rust_language::emitchar.
7494 (rust_language_data): Delete la_emitchar initializer.
7495 (rust_language::emitchar): New member function, implementation
7496 from rust_emitchar.
7497
1bf9c363
AB
74982020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7499
7500 * ada-lang.c (resolve): Rename to ada_language::post_parser.
7501 (ada_language_data): Delete la_post_parser initializer.
7502 (ada_language::post_parser): New member function.
7503 * c-lang.c (c_language_data): Delete la_post_parser initializer.
7504 (cplus_language_data): Likewise.
7505 (asm_language_data): Likewise.
7506 (minimal_language_data): Likewise.
7507 * d-lang.c (d_language_data): Likewise.
7508 * f-lang.c (f_language_data): Likewise.
7509 * go-lang.c (go_language_data): Likewise.
7510 * language.c (unknown_language_data): Likewise.
7511 (auto_language_data): Likewise.
7512 * language.h (language_data): Delete la_post_parser field.
7513 (language_defn::post_parser): New member function.
7514 * m2-lang.c (m2_language_data): Delete la_post_parser initializer.
7515 * objc-lang.c (objc_language_data): Likewise.
7516 * opencl-lang.c (opencl_language_data): Likewise.
7517 * p-lang.c (pascal_language_data): Likewise.
7518 * parse.c (parse_exp_in_context): Update call to post_parser.
7519 (null_post_parser): Delete definition.
7520 * parser-defs.h (null_post_parser): Delete declaration.
7521 * rust-lang.c (rust_language_data): Delete la_post_parser
7522 initializer.
7523
87afa652
AB
75242020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7525
7526 * ada-lang.c (parse): Rename to ada_language::parser.
7527 (ada_language_data): Delete la_parser initializer.
7528 (ada_language::parser): New member function, implementation from
7529 parse.
7530 * c-lang.c (c_language_data): Delete la_parser initializer.
7531 (cplus_language_data): Likewise.
7532 (asm_language_data): Likewise.
7533 (minimal_language_data): Likewise.
7534 * d-lang.c (d_language_data): Likewise.
7535 (d_language::parser): New member function.
7536 * f-lang.c (f_language_data): Delete la_parser initializer.
7537 (f_language::parser): New member function.
7538 * go-lang.c (go_language_data): Delete la_parser initializer.
7539 (go_language::parser): New member function.
7540 * language.c (unk_lang_parser): Delete.
7541 (language_defn::parser): Define new member function.
7542 (unknown_language_data): Delete la_parser initializer.
7543 (unknown_language::parser): New member function.
7544 (auto_language_data): Delete la_parser initializer.
7545 (auto_language::parser): New member function.
7546 * language.h (language_data): Delete la_parser field.
7547 (language_defn::parser): Declare new member function.
7548 * m2-lang.c (m2_language_data): Delete la_parser initializer.
7549 (m2_language::parser): New member function.
7550 * objc-lang.c (objc_language_data): Delete la_parser initializer.
7551 * opencl-lang.c (opencl_language_data): Likewise.
7552 * p-lang.c (pascal_language_data): Likewise.
7553 (pascal_language::parser): New member function.
7554 * parse.c (parse_exp_in_context): Update call to parser.
7555 * rust-lang.c (rust_language_data): Delete la_parser initializer.
7556 (rust_language::parser): New member function.
7557
37825800
AB
75582020-06-23 Andrew Burgess <andrew.burgess@embecosm.com>
7559
7560 * top.c (print_gdb_configuration): Print --with-python-libdir
7561 configuration value.
7562
5b860c93
PW
75632020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7564
7565 * NEWS: Mention change to the alias command.
7566
cf00cd6f
PW
75672020-06-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7568
7569 * cli/cli-cmds.c (lookup_cmd_for_default_args)
7570 (alias_command_completer)
7571 (make_alias_options_def_group): New functions.
7572 (alias_opts, alias_option_defs): New struct and array.
7573 (alias_usage_error): Update usage.
7574 (alias_command): Handles optional DEFAULT-ARGS... arguments.
7575 Use option framework.
7576 (_initialize_cli_cmds): Update alias command help.
7577 Update aliases command help.
7578 (show_user):
7579 Add NULL for new default_args lookup_cmd argument.
7580 (valid_command_p): Rename to validate_aliased_command.
7581 Add NULL for new default_args lookup_cmd argument. Verify that the
7582 aliased_command has no default args.
7583 * cli/cli-decode.c (help_cmd): Show aliases definitions.
7584 (lookup_cmd_1, lookup_cmd): New argument default_args.
7585 (add_alias_cmd):
7586 Add NULL for new default_args lookup_cmd argument.
7587 (print_help_for_command): Show default args under the layout
7588 alias some_alias = some_aliased_cmd some_alias_default_arg.
7589 * cli/cli-decode.h (struct cmd_list_element): New member default_args.
7590 xfree default_args in destructor.
7591 * cli/cli-script.c (process_next_line, do_define_command):
7592 Add NULL for new default_args lookup_cmd argument.
7593 * command.h: Declare new default_args argument in lookup_cmd
7594 and lookup_cmd_1.
7595 * completer.c (complete_line_internal_1):
7596 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7597 * guile/scm-cmd.c (gdbscm_parse_command_name): Likewise.
7598 * guile/scm-param.c (add_setshow_generic, pascm_parameter_defined_p):
7599 Likewise.
7600 * infcmd.c (_initialize_infcmd): Likewise.
7601 * python/py-auto-load.c (gdbpy_initialize_auto_load): Likewise.
7602 * python/py-cmd.c (gdbpy_parse_command_name): Likewise.
7603 * python/py-param.c (add_setshow_generic): Likewise.
7604 * remote.c (_initialize_remote): Likewise.
7605 * top.c (execute_command): Prepend default_args if command has some.
7606 (set_verbose):
7607 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7608 * tracepoint.c (validate_actionline, encode_actions_1):
7609 Add NULL for new default_args lookup_cmd or lookup_cmd_1 argument.
7610
bd920864
TBA
76112020-06-22 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
7612
7613 * jit.c (jit_read_descriptor): Use bool as the return type.
7614 (jit_breakpoint_re_set_internal): Use bool as the return type.
7615 Invert the return value logic; return true if the jit breakpoint
7616 has been successfully initialized.
7617 (jit_inferior_init): Update the call to
7618 jit_breakpoint_re_set_internal.
7619
f8098322
PA
76202020-06-22 Pedro Alves <palves@redhat.com>
7621
7622 PR gdb/25939
7623 * procfs.c (procfs_target::wait): Don't reference inferior_ptid.
7624 Use the current inferior instead. Don't return
7625 TARGET_WAITKIND_SPURIOUS/inferior_ptid -- instead continue and
7626 wait again.
7627 * sol-thread.c (sol_thread_target::wait): Don't reference
7628 inferior_ptid.
7629 (ps_lgetregs, ps_lsetregs, ps_lgetfpregs, ps_lsetfpregs)
7630 (sol_update_thread_list_callback): Use the current inferior's pid
7631 instead of inferior_ptid.
7632
196535a6
RO
76332020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7634
7635 * procfs.c: Cleanup many comments.
7636
7637 (READ_WATCHFLAG, WRITE_WATCHFLAG, EXEC_WATCHFLAG)
7638 (AFTER_WATCHFLAG): Replace by value.
7639
7640 (MAIN_PROC_NAME_FORMAT): Inline ...
7641 (create_procinfo): ... here.
7642
7643 (procfs_debug_inferior): Remove SYS_exec handling.
7644 (syscall_is_exec): Likewise.
7645 (procfs_set_exec_trap): Likewise.
7646
7647 (syscall_is_lwp_exit): Inline in callers.
7648 (syscall_is_exit): Likewise.
7649 (syscall_is_exec): Likewise.
7650 (syscall_is_lwp_create): Likewise.
7651
7652 (invalidate_cache): Remove #if 0 code.
7653
7654 (make_signal_thread_runnable): Remove.
7655 (procfs_target::resume): Remove #if 0 code.
7656
cf6f3e86
RO
76572020-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7658
7659 PR gdb/25939
7660 * procfs.c (procfs_target::procfs_init_inferior): Move push_target
7661 call ...
7662 (procfs_target::create_inferior): ... here.
7663
48e9cc84
PW
76642020-06-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7665
7666 * exec.c (validate_exec_file): Ensure the build-id is up to
7667 date by calling reopen_exec_file (that checks file timestamp
7668 to decide to re-read the file).
7669
3922b302
PA
76702020-06-18 Pedro Alves <palves@redhat.com>
7671
7672 PR gdb/25412
7673 * gdbthread.h (delete_thread, delete_thread_silent)
7674 (find_thread_ptid): Update comments.
7675 * thread.c (current_thread_): New global.
7676 (is_current_thread): Move higher, and reimplement.
7677 (inferior_thread): Reimplement.
7678 (set_thread_exited): Use bool. Add assertions.
7679 (add_thread_silent): Simplify thread-reuse handling by always
7680 calling delete_thread.
7681 (delete_thread): Remove intro comment.
7682 (find_thread_ptid): Skip exited threads.
7683 (switch_to_thread_no_regs): Write to current_thread_.
7684 (switch_to_no_thread): Check CURRENT_THREAD_ instead of
7685 INFERIOR_PTID. Clear current_thread_.
7686
6dbdab44
PA
76872020-06-18 Pedro Alves <palves@redhat.com>
7688
7689 * aix-thread.c (pd_update): Use switch_to_thread.
7690
2da4b788
PA
76912020-06-18 Pedro Alves <palves@redhat.com>
7692
7693 * ravenscar-thread.c (ravenscar_thread_target): Update.
7694 (ravenscar_thread_target::update_inferior_ptid): Rename to ...
7695 (ravenscar_thread_target::add_active_thread): ... this. Don't
7696 set m_base_ptid here. Update to avoid referencing inferior_ptid.
7697 (ravenscar_thread_target::wait): Don't write to inferior_ptid.
7698
50838d1b
PA
76992020-06-18 Pedro Alves <palves@redhat.com>
7700
7701 * nat/windows-nat.c (current_windows_thread): Remove.
7702 * nat/windows-nat.h (current_windows_thread): Remove.
7703 * windows-nat.c (windows_nat_target::stopped_by_sw_breakpoint):
7704 Adjust.
7705 (display_selectors): Adjust to fetch the current
7706 windows_thread_info based on inferior_ptid.
7707 (fake_create_process): No longer write to current_windows_thread.
7708 (windows_nat_target::get_windows_debug_event):
7709 Don't set inferior_ptid or current_windows_thread.
7710 (windows_nat_target::wait): Adjust to not rely on
7711 current_windows_thread.
7712 (do_initial_windows_stuff): Now a method of windows_nat_target.
7713 Switch to the last_ptid thread.
7714 (windows_nat_target::attach): Adjust.
7715 (windows_nat_target::detach): Use switch_to_no_thread instead of
7716 writing to inferior_ptid directly.
7717 (windows_nat_target::create_inferior): Adjust.
7718
31ce04e9
PA
77192020-06-18 Pedro Alves <palves@redhat.com>
7720
7721 * windows-nat.c (do_initial_windows_stuff): No longer set inferior_ptid.
7722
1ee1a363
PA
77232020-06-18 Pedro Alves <palves@redhat.com>
7724
7725 * go32-nat.c (go32_nat_target::create_inferior): Switch to thread
7726 after creating it, instead of writing to inferior_ptid. Don't
7727 write to inferior_ptid.
7728
6d350754
PA
77292020-06-18 Pedro Alves <palves@redhat.com>
7730
7731 * fork-child.c (postfork_hook): Don't write to inferior_ptid.
7732
5d971d48
PA
77332020-06-18 Pedro Alves <palves@redhat.com>
7734
7735 * bsd-kvm.c (bsd_kvm_target_open): Switch to thread after adding
7736 it, instead of writing to inferior_ptid.
7737
86e57d1b
PA
77382020-06-18 Pedro Alves <palves@redhat.com>
7739
7740 * btrace.c (btrace_fetch): Use switch_to_thread instead of writing
7741 to inferior_ptid.
7742
f2e1c129
PA
77432020-06-18 Pedro Alves <palves@redhat.com>
7744
7745 * bsd-kvm.c (bsd_kvm_target::close): Use switch_to_no_thread
7746 instead of writing to inferior_ptid directly.
7747
60db1b85
PA
77482020-06-18 Pedro Alves <palves@redhat.com>
7749
7750 * corelow.c (core_target::close): Use switch_to_no_thread instead
7751 of writing to inferior_ptid directly.
7752 (add_to_thread_list, core_target_open): Use switch_to_thread
7753 instead of writing to inferior_ptid directly.
7754
fe7d6a8d
PA
77552020-06-18 Pedro Alves <palves@redhat.com>
7756
7757 * darwin-nat.c (darwin_nat_target::decode_message): Don't write to
7758 inferior_ptid.
7759 (darwin_nat_target::stop_inferior, darwin_nat_target::kill): Avoid
7760 inferior_ptid.
7761 (darwin_attach_pid): Use switch_to_no_thread instead of writing to
7762 inferior_ptid directly.
7763 (darwin_nat_target::init_thread_list): Switch to thread, instead
7764 of writing to inferior_ptid.
7765 (darwin_nat_target::attach): Don't write to inferior_ptid.
7766 (darwin_nat_target::get_ada_task_ptid): Avoid inferior_ptid.
7767
975f8708
PA
77682020-06-18 Pedro Alves <palves@redhat.com>
7769
7770 * gnu-nat.c (gnu_nat_target::create_inferior): Switch to the added
7771 thread.
7772 (gnu_nat_target::attach): Don't write to inferior_ptid directly.
7773 Instead use switch_to_thread.
7774 (gnu_nat_target::detach): Use switch_to_no_thread
7775 instead of writing to inferior_ptid directly. Used passed-in
7776 inferior instead of looking up the inferior by pid.
7777
1a204730
PA
77782020-06-18 Pedro Alves <palves@redhat.com>
7779
7780 * go32-nat.c (go32_nat_target::create_inferior): Don't write to
7781 inferior_ptid.
7782
ebe84f23
PA
77832020-06-18 Pedro Alves <palves@redhat.com>
7784
7785 * nto-procfs.c (nto_procfs_target::update_thread_list): Avoid
7786 inferior_ptid.
7787 (nto_procfs_target::attach): Avoid inferior_ptid. Switch to
7788 thread.
7789 (nto_procfs_target::detach): Avoid referencing
7790 inferior_ptid. Use switch_to_no_thread instead of writing to
7791 inferior_ptid directly.
7792 (nto_procfs_target::mourn_inferior): Use switch_to_no_thread
7793 instead of writing to inferior_ptid directly.
7794 (nto_procfs_target::create_inferior): Avoid inferior_ptid. Switch
7795 to thread.
7796
191f02e5
PA
77972020-06-18 Pedro Alves <palves@redhat.com>
7798
7799 * remote-sim.c (gdbsim_target::create_inferior): Switch to thread
7800 after creating it, instead of writing to inferior_ptid.
7801 (gdbsim_target_open): Use switch_to_no_thread instead of writing
7802 to inferior_ptid directly.
7803 (gdbsim_target::wait): Don't write to inferior_ptid.
7804
0ac55310
PA
78052020-06-18 Pedro Alves <palves@redhat.com>
7806
7807 * remote.c (remote_target::remote_notice_new_inferior): Use
7808 switch_to_thread instead of writing to inferior_ptid directly.
7809 (remote_target::add_current_inferior_and_thread): Use
7810 switch_to_no_thread instead of writing to inferior_ptid directly.
7811 (extended_remote_target::attach): Use switch_to_inferior_no_thread
7812 and switch_to_thread instead of using set_current_inferior or
7813 writing to inferior_ptid directly.
7814
5233f39b
PA
78152020-06-18 Pedro Alves <palves@redhat.com>
7816
7817 * tracectf.c (ctf_target_open): Switch to added thread instead of
7818 writing to inferior_ptid directly.
7819 (ctf_target::close): Use switch_to_no_thread instead of writing to
7820 inferior_ptid directly.
7821
087e161b
PA
78222020-06-18 Pedro Alves <palves@redhat.com>
7823
7824 * tracefile-tfile.c (tfile_target_open): Don't write to
7825 inferior_ptid directly, instead switch to added thread.
7826 (tfile_target::close): Use switch_to_no_thread instead of writing
7827 to inferior_ptid directly.
7828
7fb43e53
PA
78292020-06-18 Pedro Alves <palves@redhat.com>
7830
7831 * procfs.c (procfs_target::attach): Don't write to inferior_ptid.
7832 (procfs_target::detach): Use switch_to_no_thread
7833 instead of writing to inferior_ptid directly.
7834 (do_attach): Change return type to void. Switch to the added
7835 thread.
7836 (procfs_target::create_inferior): Switch to the added thread.
7837 (procfs_do_thread_registers): Don't write to inferior_ptid.
7838
18493a00
PA
78392020-06-18 Pedro Alves <palves@redhat.com>
7840
7841 * infrun.c (generic_mourn_inferior): Use switch_to_thread instead
7842 of writing to inferior_ptid.
7843 (scoped_restore_exited_inferior): Delete.
7844 (handle_vfork_child_exec_or_exit): Simplify using
7845 scoped_restore_current_pspace_and_thread. Use switch_to_thread
7846 instead of writing to inferior_ptid.
7847 (THREAD_STOPPED_BY): Delete.
7848 (thread_stopped_by_watchpoint, thread_stopped_by_sw_breakpoint)
7849 (thread_stopped_by_hw_breakpoint): Delete.
7850 (save_waitstatus): Use
7851 scoped_restore_current_thread+switch_to_thread, and call
7852 target_stopped_by_watchpoint instead of
7853 thread_stopped_by_watchpoint, target_stopped_by_sw_breakpoint
7854 instead of thread_stopped_by_sw_breakpoint, and
7855 target_stopped_by_hw_breakpoint instead of
7856 thread_stopped_by_hw_breakpoint.
7857 (handle_inferior_event)
7858 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Don't write to
7859 inferior_ptid directly, nor
7860 set_current_inferior/set_current_program_space. Use
7861 switch_to_thread / switch_to_inferior_no_thread instead.
7862
a0776b13
PA
78632020-06-18 Pedro Alves <palves@redhat.com>
7864
7865 * target.c (generic_mourn_inferior): Use switch_to_no_thread
7866 instead of writing to inferior_ptid.
7867
6155c136
PA
78682020-06-18 Pedro Alves <palves@redhat.com>
7869
7870 * inf-ptrace.c (inf_ptrace_target::create_inferior): Switch to the
7871 added thread.
7872 (inf_ptrace_target::attach): Don't write to inferior_ptid. Switch
7873 to the added thread.
7874 (inf_ptrace_target::detach_success): Use switch_to_no_thread
7875 instead of writing to inferior_ptid.
7876
c5316fc6
PA
78772020-06-18 Pedro Alves <palves@redhat.com>
7878
7879 * gdbarch-selftests.c: Include "progspace-and-thread.h".
7880 (register_to_value_test): Mock a program_space too. Heap-allocate
7881 the address space. Don't write to inferior_ptid. Use
7882 switch_to_thread instead.
7883
8df01799
PA
78842020-06-18 Pedro Alves <palves@redhat.com>
7885
7886 * linux-tdep.c (find_signalled_thread(thread_info *,void *)):
7887 Delete.
7888 (find_signalled_thread()): New, factored out from
7889 linux_make_corefile_notes and adjusted to handle exited threads.
7890 (linux_make_corefile_notes): Adjust to use the new
7891 find_signalled_thread.
7892
41792d68
PA
78932020-06-18 Pedro Alves <palves@redhat.com>
7894
7895 * linux-tdep.c (btrace_fetch): Save/restore current thread instead
7896 of saving/restoring inferior_ptid.
7897
612f258a
TT
78982020-06-17 Tom Tromey <tom@tromey.com>
7899
7900 * tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
7901 (tui_scroll_left, tui_scroll_right, struct tui_win_info): Don't
7902 declare.
7903 * tui/tui-data.h (MIN_CMD_WIN_HEIGHT): Remove.
7904
efb763a5
SM
79052020-06-15 Simon Marchi <simon.marchi@efficios.com>
7906
7907 * dwarf2/read.c (dwarf2_initialize_objfile): Check for presence
7908 of partial symtabs.
7909
2951f6c0
SM
79102020-06-17 Simon Marchi <simon.marchi@efficios.com>
7911
7912 * regformats/reg-arm.dat: Remove.
7913 * regformats/reg-bfin.dat: Remove.
7914 * regformats/reg-cris.dat: Remove.
7915 * regformats/reg-crisv32.dat: Remove.
7916 * regformats/reg-m32r.dat: Remove.
7917 * regformats/reg-tilegx.dat: Remove.
7918 * regformats/reg-tilegx32.dat: Remove.
7919
7d458ea5
SM
79202020-06-17 Simon Marchi <simon.marchi@efficios.com>
7921
7922 * features/Makefile (WHICH): Remove arm files.
7923 * regformats/arm/arm-with-iwmmxt.dat: Remove.
7924 * regformats/arm/arm-with-neon.dat: Remove.
7925 * regformats/arm/arm-with-vfpv2.dat: Remove.
7926 * regformats/arm/arm-with-vfpv3.dat: Remove.
7927
3af96c0d
SM
79282020-06-17 Simon Marchi <simon.marchi@efficios.com>
7929
7930 * features/Makefile (XMLTOC): Remove rx.xml.
7931
b25e22fd
PA
79322020-06-17 Pedro Alves <palves@redhat.com>
7933
7934 * gdbthread.h (thread_control_state) <trap_expected> Update
7935 comments.
7936
a78a19b1
AB
79372020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7938
7939 * ada-lang.c (ada_lookup_symbol_nonlocal): Rename to
7940 ada_language::lookup_symbol_nonlocal.
7941 (ada_language_data): Delete la_lookup_symbol_nonlocal initializer.
7942 (ada_language::lookup_symbol_nonlocal): New member function,
7943 implementation from ada_lookup_symbol_nonlocal.
7944 * c-lang.c (c_language_data): Delete la_lookup_symbol_nonlocal
7945 initializer.
7946 (cplus_language_data): Delete la_lookup_symbol_nonlocal
7947 initializer.
7948 (cplus_language::lookup_symbol_nonlocal): New member function.
7949 (asm_language_data): Delete la_lookup_symbol_nonlocal initializer.
7950 (minimal_language_data) Likewise.
7951 * cp-namespace.c (cp_lookup_nested_symbol): Update comment.
7952 * d-lang.c (d_language_data): Delete la_lookup_symbol_nonlocal
7953 initializer.
7954 (d_language::lookup_symbol_nonlocal): New member function.
7955 * f-lang.c (f_language_data): Delete la_lookup_symbol_nonlocal
7956 initializer.
7957 (f_language::lookup_symbol_nonlocal): New member function.
7958 * go-lang.c (go_language_data): Delete la_lookup_symbol_nonlocal
7959 initializer.
7960 * language.c (unknown_language_data): Likewise.
7961 (auto_language_data): Likewise.
7962 * language.h (language_data): Delete la_lookup_symbol_nonlocal
7963 field.
7964 (language_defn::lookup_symbol_nonlocal): New member function.
7965 * m2-lang.c (m2_language_data): Delete la_lookup_symbol_nonlocal
7966 initializer.
7967 * objc-lang.c (objc_language_data): Likewise.
7968 * opencl-lang.c (opencl_language_data): Likewise.
7969 * p-lang.c (pascal_language_data): Likewise.
7970 * rust-lang.c (rust_lookup_symbol_nonlocal): Rename to
7971 rust_language::lookup_symbol_nonlocal.
7972 (rust_language_data): Delete la_lookup_symbol_nonlocal
7973 initializer.
7974 (rust_language::lookup_symbol_nonlocal): New member function,
7975 implementation from rust_lookup_symbol_nonlocal.
7976 * symtab.c (lookup_symbol_aux): Update call to
7977 lookup_symbol_nonlocal.
7978 (basic_lookup_symbol_nonlocal): Rename to...
7979 (language_defn::lookup_symbol_nonlocal): ...this, and update
7980 header comment. Remove language_defn parameter, and replace with
7981 uses of `this'.
7982 * symtab.h (basic_lookup_symbol_nonlocal): Delete declaration.
7983
ebe2334e
AB
79842020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
7985
7986 * ada-lang.c (ada_language_data): Delete la_value_print_inner
7987 initializer.
7988 (ada_language::value_print_inner): New member function.
7989 * c-lang.c (c_language_data): Delete la_value_print_inner
7990 initializer.
7991 (cplus_language_data): Likewise.
7992 (asm_language_data): Likewise.
7993 (minimal_language_data): Likewise.
7994 * d-lang.c (d_language_data): Likewise.
7995 (d_language::value_print_inner): New member function.
7996 * f-lang.c (f_language_data): Delete la_value_print_inner
7997 initializer.
7998 (f_language::value_print_inner): New member function.
7999 * f-lang.h (f_value_print_innner): Rename to...
8000 (f_value_print_inner): ...this (note spelling of 'inner').
8001 * f-valprint.c (f_value_print_innner): Rename to...
8002 (f_value_print_inner): ...this (note spelling of 'inner').
8003 * go-lang.c (go_language_data): Delete la_value_print_inner
8004 initializer.
8005 (go_language::value_print_inner): New member function.
8006 * language.c (language_defn::value_print_inner): Define new member
8007 function.
8008 (unk_lang_value_print_inner): Delete.
8009 (unknown_language_data): Delete la_value_print_inner initializer.
8010 (unknown_language::value_print_inner): New member function.
8011 (auto_language_data): Delete la_value_print_inner initializer.
8012 (auto_language::value_print_inner): New member function.
8013 * language.h (language_data): Delete la_value_print_inner field.
8014 (language_defn::value_print_inner): Delcare new member function.
8015 * m2-lang.c (m2_language_data): Delete la_value_print_inner
8016 initializer.
8017 (m2_language::value_print_inner): New member function.
8018 * objc-lang.c (objc_language_data): Delete la_value_print_inner
8019 initializer.
8020 * opencl-lang.c (opencl_language_data): Likewise.
8021 * p-lang.c (pascal_language_data): Likewise.
8022 (pascal_language::value_print_inner): New member function.
8023 * rust-lang.c (rust_language_data): Delete la_value_print_inner
8024 initializer.
8025 (rust_language::value_print_inner): New member function.
8026 * valprint.c (do_val_print): Update call to value_print_inner.
8027
a1d1fa3e
AB
80282020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8029
8030 * ada-lang.c (ada_language_data): Delete la_value_print
8031 initializer.
8032 (ada_language::value_print): New member function.
8033 * c-lang.c (c_language_data): Delete la_value_print initializer.
8034 (cplus_language_data): Likewise.
8035 (asm_language_data): Likewise.
8036 (minimal_language_data): Likewise.
8037 * d-lang.c (d_language_data): Likewise.
8038 * f-lang.c (f_language_data): Likewise.
8039 * go-lang.c (go_language_data): Likewise.
8040 * language.c (unk_lang_value_print): Delete.
8041 (language_defn::value_print): Define new member function.
8042 (unknown_language_data): Delete la_value_print initializer.
8043 (unknown_language::value_print): New member function.
8044 (auto_language_data): Delete la_value_print initializer.
8045 (auto_language::value_print): New member function.
8046 * language.h (language_data): Delete la_value_print field.
8047 (language_defn::value_print): Declare new member function.
8048 (LA_VALUE_PRINT): Update call to value_print.
8049 * m2-lang.c (m2_language_data): Delete la_value_print initializer.
8050 * objc-lang.c (objc_language_data): Likewise.
8051 * opencl-lang.c (opencl_language_data): Likewise.
8052 * p-lang.c (pascal_language_data): Likewise.
8053 (pascal_language::value_print): New member function.
8054 * rust-lang.c (rust_language_data): Delete la_value_print
8055 initializer.
8056
f16a9f57
AB
80572020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8058
8059 * ada-lang.c (ada_watch_location_expression): Rename to
8060 ada_language::watch_location_expression.
8061 (ada_language_data): Delete la_watch_location_expression
8062 initializer.
8063 (ada_language::watch_location_expression): New member function,
8064 implementation from ada_watch_location_expression.
8065 * breakpoint.c (watch_command_1): Update call to
8066 watch_location_expression.
8067 * c-lang.c (c_watch_location_expression): Rename to
8068 language_defn::watch_location_expression.
8069 (c_language_data): Delete la_watch_location_expression
8070 initializer.
8071 (cplus_language_data): Likewise.
8072 (asm_language_data): Likewise.
8073 (minimal_language_data): Likewise.
8074 * c-lang.h (c_watch_location_expression): Delete declaration.
8075 * d-lang.c (d_language_data): Delete la_watch_location_expression
8076 initializer.
8077 * f-lang.c (f_language_data): Likewise.
8078 * go-lang.c (go_language_data): Likewise.
8079 * language.c (language_defn::watch_location_expression): Member
8080 function implementation from c_watch_location_expression.
8081 (unknown_language_data): Delete la_watch_location_expression
8082 initializer.
8083 (auto_language_data): Likewise.
8084 * language.h (language_data): Delete la_watch_location_expression
8085 field.
8086 (language_defn::watch_location_expression): Declare new member
8087 function.
8088 * m2-lang.c (m2_language_data): Delete
8089 la_watch_location_expression initializer.
8090 * objc-lang.c (objc_language_data): Likewise.
8091 * opencl-lang.c (opencl_language_data): Likewise.
8092 * p-lang.c (pascal_language_data): Likewise.
8093 * rust-lang.c (rust_watch_location_expression): Rename to
8094 rust_language::watch_location_expression.
8095 (rust_language_data): Delete la_watch_location_expression
8096 initializer.
8097 (rust_language::watch_location_expression): New member function,
8098 implementation from rust_watch_location_expression.
8099
7e56227d
AB
81002020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8101
8102 * ada-lang.c (ada_collect_symbol_completion_matches): Rename to
8103 ada_language::collect_symbol_completion_matches.
8104 (ada_language_data): Delete la_collect_symbol_completion_matches
8105 initializer.
8106 (ada_language::collect_symbol_completion_matches): New member
8107 function, implementation from
8108 ada_collect_symbol_completion_matches.
8109 * c-lang.c (c_language_data): Delete
8110 la_collect_symbol_completion_matches initializer.
8111 (cplus_language_data): Likewise.
8112 (asm_language_data): Likewise.
8113 (minimal_language_data): Likewise.
8114 * d-lang.c (d_language_data): Likewise.
8115 * f-lang.c (f_collect_symbol_completion_matches): Rename to
8116 f_language::collect_symbol_completion_matches.
8117 (f_language_data): Delete la_collect_symbol_completion_matches
8118 initializer.
8119 (f_language::collect_symbol_completion_matches) New member
8120 function, implementation from f_collect_symbol_completion_matches.
8121 * go-lang.c (go_language_data): Delete
8122 la_collect_symbol_completion_matches initializer.
8123 * language.c (unknown_language_data): Likewise.
8124 (auto_language_data): Likewise.
8125 * language.h (language_data): Delete
8126 la_collect_symbol_completion_matches field.
8127 (language_defn::collect_symbol_completion_matches): New member
8128 function.
8129 * m2-lang.c (m2_language_data): Delete
8130 la_collect_symbol_completion_matches initializer.
8131 * objc-lang.c (objc_language_data): Likewise.
8132 * opencl-lang.c (opencl_language_data): Likewise.
8133 * p-lang.c (pascal_language_data): Likewise.
8134 * rust-lang.c (rust_language_data): Likewise.
8135 * symtab.c (default_collect_symbol_completion_matches): Delete.
8136 (collect_symbol_completion_matches): Update call to
8137 collect_symbol_completion_matches.
8138 (collect_symbol_completion_matches_type): Likewise.
8139 * symtab.h (default_collect_symbol_completion_matches): Delete
8140 declaration.
8141
53fc67f8
AB
81422020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8143
8144 * ada-lang.c (ada_get_gdb_completer_word_break_characters): Delete.
8145 (ada_language_data): Delete la_word_break_characters initializer.
8146 (ada_language::word_break_characters): New member function.
8147 * c-lang.c (c_language_data): Delete la_word_break_characters
8148 initializer.
8149 (cplus_language_data): Likewise.
8150 (asm_language_data): Likewise.
8151 (minimal_language_data): Likewise.
8152 * completer.c: Update global comment.
8153 (advance_to_expression_complete_word_point): Update call to
8154 word_break_characters.
8155 (complete_files_symbols): Likewise.
8156 (complete_line_internal_1): Likewise.
8157 (default_completer_handle_brkchars): Likewise.
8158 (skip_quoted_chars): Likewise.
8159 * d-lang.c (d_language_data): Delete la_word_break_characters
8160 initializer.
8161 * f-lang.c (f_word_break_characters): Delete.
8162 (f_language_data): Delete la_word_break_characters initializer.
8163 (f_language::word_break_characters): New member function.
8164 * go-lang.c (go_language_data): Delete la_word_break_characters
8165 initializer.
8166 * language.c (unknown_language_data): Likewise.
8167 (auto_language_data): Likewise.
8168 * language.h (default_word_break_characters): Move declaration to
8169 earlier in the file.
8170 (language_data): Delete la_word_break_characters field.
8171 (language_defn::word_break_characters): New member function.
8172 * m2-lang.c (m2_language_data): Delete la_word_break_characters
8173 initializer.
8174 * objc-lang.c (objc_language_data): Likewise.
8175 * opencl-lang.c (opencl_language_data): Likewise.
8176 * p-lang.c (pascal_language_data): Likewise.
8177 * rust-lang.c (rust_language_data): Likewise.
8178
c9debfb9
AB
81792020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8180
8181 * ada-lang.c (ada_get_symbol_name_matcher): Update header comment.
8182 (ada_language_data): Delete la_get_symbol_name_matcher
8183 initializer.
8184 (language_defn::get_symbol_name_matcher_inner): New member
8185 function.
8186 * c-lang.c (c_language_data): Delete la_get_symbol_name_matcher
8187 initializer.
8188 (cplus_language_data): Likewise.
8189 (cplus_language::get_symbol_name_matcher_inner): New member
8190 function.
8191 (asm_language_data): Delete la_get_symbol_name_matcher initializer.
8192 (minimal_language_data): Likewise.
8193 * cp-support.h (cp_get_symbol_name_matcher): Update header comment.
8194 * d-lang.c (d_language_data): Delete la_get_symbol_name_matcher
8195 initializer.
8196 * dictionary.c (iter_match_first_hashed): Update call to
8197 get_symbol_name_matcher.
8198 (iter_match_next_hashed): Likewise.
8199 (iter_match_next_linear): Likewise.
8200 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Likewise.
8201 * f-lang.c (f_language_data): Delete la_get_symbol_name_matcher
8202 initializer.
8203 (f_language::get_symbol_name_matcher_inner): New member function.
8204 * go-lang.c (go_language_data): Delete la_get_symbol_name_matcher
8205 initializer.
8206 * language.c (default_symbol_name_matcher): Update header comment,
8207 make static.
8208 (language_defn::get_symbol_name_matcher): New definition.
8209 (language_defn::get_symbol_name_matcher_inner): Likewise.
8210 (get_symbol_name_matcher): Delete.
8211 (unknown_language_data): Delete la_get_symbol_name_matcher
8212 initializer.
8213 (auto_language_data): Likewise.
8214 * language.h (language_data): Delete la_get_symbol_name_matcher
8215 field.
8216 (language_defn::get_symbol_name_matcher): New member function.
8217 (language_defn::get_symbol_name_matcher_inner): Likewise.
8218 (default_symbol_name_matcher): Delete declaration.
8219 * linespec.c (find_methods): Update call to
8220 get_symbol_name_matcher.
8221 * m2-lang.c (m2_language_data): Delete la_get_symbol_name_matcher
8222 initializer.
8223 * minsyms.c (lookup_minimal_symbol): Update call to
8224 get_symbol_name_matcher.
8225 (iterate_over_minimal_symbols): Likewise.
8226 * objc-lang.c (objc_language_data): Delete
8227 la_get_symbol_name_matcher initializer.
8228 * opencl-lang.c (opencl_language_data): Likewise.
8229 * p-lang.c (pascal_language_data): Likewise.
8230 * psymtab.c (psymbol_name_matches): Update call to
8231 get_symbol_name_matcher.
8232 * rust-lang.c (rust_language_data): Delete
8233 la_get_symbol_name_matcher initializer.
8234 * symtab.c (symbol_matches_search_name): Update call to
8235 get_symbol_name_matcher.
8236 (compare_symbol_name): Likewise.
8237
9a49ad8c
AB
82382020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8239
8240 * ada-lang.c (ada_language_data): Delete la_compute_program
8241 initializer.
8242 * c-lang.c (c_language_data): Likewise.
8243 (c_language::compute_program): New member function.
8244 (cplus_language_data): Delete la_compute_program initializer.
8245 (cplus_language::compute_program): New member function.
8246 (asm_language_data): Delete la_compute_program initializer.
8247 (minimal_language_data): Likewise.
8248 * c-lang.h (c_compute_program): Update comment.
8249 (cplus_compute_program): Likewise.
8250 * compile/compile-c-support.c (c_compute_program): Likewise.
8251 (cplus_compute_program): Likewise.
8252 * compile/compile.c (compile_to_object): Update call to
8253 la_compute_program.
8254 * d-lang.c (d_language_data): Delete la_compute_program
8255 initializer.
8256 * f-lang.c (f_language_data): Likewise.
8257 * go-lang.c (go_language_data): Likewise.
8258 * language.c (unknown_language_data): Likewise.
8259 (auto_language_data): Likewise.
8260 * language.h (language_data): Delete la_compute_program field.
8261 (language_defn::compute_program): New member function.
8262 * m2-lang.c (m2_language_data): Delete la_compute_program
8263 initializer.
8264 * objc-lang.c (objc_language_data): Likewise.
8265 * opencl-lang.c (opencl_language_data): Likewise.
8266 * p-lang.c (pascal_language_data): Likewise.
8267 * rust-lang.c (rust_language_data): Likewise.
8268
eff93b4d
AB
82692020-06-17 Andrew Burgess <andrew.burgess@embecosm.com>
8270
8271 * ada-lang.c (ada_language_data) Delete
8272 la_class_name_from_physname initializer.
8273 * c-lang.c (c_language_data): Likewise.
8274 (cplus_language_data): Likewise.
8275 (cplus_language::class_name_from_physname): New member function.
8276 (asm_language_data): Delete la_class_name_from_physname
8277 initializer.
8278 (minimal_language_data): Likewise.
8279 * d-lang.c (d_language_data): Likewise.
8280 * dwarf2/read.c (guess_partial_die_structure_name): Update to call
8281 method on language_defn class.
8282 (guess_full_die_structure_name): Likewise.
8283 * f-lang.c (f_language_data): Delete la_class_name_from_physname
8284 initializer.
8285 * go-lang.c (go_language_data): Likewise.
8286 * language.c (language_class_name_from_physname): Delete.
8287 (unk_lang_class_name): Delete.
8288 (unknown_language_data): Delete la_class_name_from_physname
8289 initializer.
8290 (auto_language_data): Likewise.
8291 * language.h (language_data): Delete la_class_name_from_physname
8292 field.
8293 (language_defn::class_name_from_physname): New function.
8294 (language_class_name_from_physname): Delete declaration.
8295 * m2-lang.c (m2_language_data): Delete la_class_name_from_physname
8296 initializer.
8297 * objc-lang.c (objc_language_data): Likewise.
8298 * opencl-lang.c (opencl_language_data): Likewise.
8299 * p-lang.c (pascal_language_data): Likewise.
8300 * rust-lang.c (rust_language_data): Likewise.
8301
de543742
TT
83022020-06-16 Tom Tromey <tom@tromey.com>
8303
8304 * tui/tui-data.h (STATUS_NAME): New macro.
8305 * tui/tui-layout.c (tui_remove_some_windows)
8306 (initialize_known_windows, tui_register_window)
8307 (tui_layout_split::remove_windows, initialize_layouts)
8308 (tui_new_layout_command): Don't use hard-coded window names.
8309
a350efd4
TT
83102020-06-16 Tom Tromey <tom@tromey.com>
8311
8312 PR tui/25348:
8313 * tui/tui.c (tui_ensure_readline_initialized): Rename from
8314 tui_initialize_readline. Only run once. Call rl_initialize.
8315 * tui/tui.h (tui_ensure_readline_initialized): Rename from
8316 tui_initialize_readline.
8317 * tui/tui-io.c (tui_setup_io): Call
8318 tui_ensure_readline_initialized.
8319 * tui/tui-interp.c (tui_interp::init): Update.
8320
39ec0490
TT
83212020-06-16 Tom Tromey <tom@tromey.com>
8322
8323 * tui/tui-layout.c (tui_layout_split::remove_windows): Fix logic.
8324 Also preserve the status window.
8325
d2d1ea20
TT
83262020-06-16 Tom Tromey <tom@tromey.com>
8327
8328 * python/py-tui.c (tui_py_window::~tui_py_window): Handle case
8329 where m_window==nullptr.
8330
66920317
TT
83312020-06-15 Tom Tromey <tromey@adacore.com>
8332
8333 * windows-nat.c (windows_nat::handle_output_debug_string):
8334 Update.
8335 (windows_nat::handle_ms_vc_exception): Update.
8336 * target.h (target_read_string): Change API.
8337 * target.c (target_read_string): Change API.
8338 * solib-svr4.c (open_symbol_file_object, svr4_read_so_list):
8339 Update.
8340 * solib-frv.c (frv_current_sos): Update.
8341 * solib-dsbt.c (dsbt_current_sos): Update.
8342 * solib-darwin.c (darwin_current_sos): Update.
8343 * linux-thread-db.c (inferior_has_bug): Update.
8344 * expprint.c (print_subexp_standard): Update.
8345 * ada-lang.c (ada_main_name, ada_tag_name_from_tsd)
8346 (ada_exception_message_1): Update.
8347
a5d871dd
TT
83482020-06-15 Tom Tromey <tromey@adacore.com>
8349
8350 * linux-tdep.c (dump_mapping_p): Use target_read_memory.
8351
670e35fa
TT
83522020-06-15 Tom Tromey <tromey@adacore.com>
8353
8354 * valprint.c (read_string): Update comment.
8355 * target.c (MIN): Remove.
8356 (target_read_string): Rewrite.
8357
f5272a3b
TT
83582020-06-15 Tom Tromey <tromey@adacore.com>
8359
8360 * corefile.c (read_memory_string): Remove.
8361 * ada-valprint.c (ada_value_print_ptr): Update.
8362 * ada-lang.h (ada_tag_name): Change return type.
8363 * ada-lang.c (type_from_tag): Update.
8364 (ada_tag_name_from_tsd): Change return type. Use
8365 target_read_string.
8366 (ada_tag_name): Likewise.
8367 * gdbcore.h (read_memory_string): Don't declare.
8368
2c074f49
HD
83692020-06-14 Hannes Domani <ssbssa@yahoo.de>
8370
8371 * symtab.c (rbreak_command): Ignore Windows drive colon.
8372
6a17d503
SM
83732020-06-12 Simon Marchi <simon.marchi@efficios.com>
8374
8375 * NEWS: Mention removed GDBserver host support.
8376
453c733f
NC
83772020-06-12 Nelson Chu <nelson.chu@sifive.com>
8378
8379 * features/riscv/rebuild-csr-xml.sh: Updated.
8380
2b4e6a3f
TT
83812020-06-11 Tom Tromey <tom@tromey.com>
8382
8383 PR gdb/18318:
8384 * c-exp.y (lex_one_token): Handle 'p' like 'e'.
8385
4412332f
JG
83862020-06-09 Jonny Grant <jg@jguk.org>
83872020-06-09 Simon Marchi <simon.marchi@polymtl.ca>
8388
8389 * main.c (captured_main_1): Don't print new line after help.
8390 (print_gdb_help): add mailing list and IRC channel information
8391 to --help. Add new lines between items in the footer. Remove
8392 quotes around bug url.
8393
2f33032a
KS
83942020-06-11 Keith Seitz <keiths@redhat.com>
8395
8396 PR gdb/21356
8397 * gdbtypes.c (resolve_dynamic_union, resolve_dynamic_struct):
8398 Resolve typedefs for type length calculations.
8399
7ab96794
TV
84002020-06-10 Tom de Vries <tdevries@suse.de>
8401
8402 PR ada/24713
8403 * dwarf2/index-write.c (struct mapped_symtab): Add m_string_obstack.
8404 (write_psymbols): Enable .gdb_index for ada.
8405 * dwarf2/read.c: Remove comment stating .gdb_index is unsupported for
8406 ada.
8407
e5f3ece2
TV
84082020-06-10 Tom de Vries <tdevries@suse.de>
8409
8410 * dwarf2/read.c (dw2_symtab_iter_init_common): Factor out of ...
8411 (dw2_symtab_iter_init): ... here. Add variant with "offset_type
8412 namei" instead of "const char *name" argument.
8413 (dw2_map_matching_symbols): Use "offset_type namei" variant of
8414 dw2_symtab_iter_init.
8415
940da03e
SM
84162020-06-08 Simon Marchi <simon.marchi@efficios.com>
8417
8418 * gdbtypes.h (TYPE_FIELD_TYPE): Remove. Change all call sites
8419 to use type::field and field::type instead.
8420
b6cdac4b
SM
84212020-06-08 Simon Marchi <simon.marchi@efficios.com>
8422
8423 * gdbtypes.h (FIELD_TYPE): Remove. Change all call sites
8424 to use field::type instead.
8425
5d14b6e5
SM
84262020-06-08 Simon Marchi <simon.marchi@efficios.com>
8427
8428 * gdbtypes.h (struct field) <type, set_type>: New methods.
8429 Rename `type` field to...
8430 <m_type>: ... this. Change references throughout to use type or
8431 set_type methods.
8432 (FIELD_TYPE): Use field::type. Change call sites that modify
8433 the field's type to use field::set_type instead.
8434
3d967001
SM
84352020-06-08 Simon Marchi <simon.marchi@efficios.com>
8436
8437 * gdbtypes.h (TYPE_INDEX_TYPE): Remove. Change all call sites
8438 to use type::index_type instead.
8439
262abc0d
SM
84402020-06-08 Simon Marchi <simon.marchi@efficios.com>
8441
8442 * gdbtypes.h (struct type) <index_type, set_index_type>: New
8443 methods.
8444 (TYPE_INDEX_TYPE): Use type::index_type.
8445 * gdbtypes.c (create_array_type_with_stride): Likewise.
8446
82836c92
TT
84472020-06-07 Tom Tromey <tom@tromey.com>
8448
8449 * valprint.c (generic_val_print_float): Remove "embedded_offset"
8450 parameter.
8451 (generic_value_print): Update.
8452
940dace9
AB
84532020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8454
8455 Revert commit 982a38f60b0.
8456 * python/py-tui.c (gdbpy_tui_set_title): Restore use of get.
8457
982a38f6
AB
84582020-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
8459
8460 * python/py-tui.c (gdbpy_tui_set_title): Use release, not get, to
8461 avoid use after free.
8462
82f06518
TV
84632020-06-05 Tom de Vries <tdevries@suse.de>
8464
8465 * NEWS: Fix typos.
8466
f8c41851
SM
84672020-06-04 Simon Marchi <simon.marchi@efficios.com>
8468
8469 * dwarf2/read.c (dwarf2_read_gdb_index): Save partial_symtabs in
8470 the per_bfd object.
8471 (dwarf2_read_debug_names): Likewise.
8472 (dwarf2_initialize_objfile): Use partial_symtabs from per_bfd
8473 object when re-using a per_bfd object with an index.
8474
f9b5d5ea
TV
84752020-06-03 Tom de Vries <tdevries@suse.de>
8476
8477 PR symtab/26046
8478 * dwarf2/read.c (scan_partial_symbols): Recurse into DW_TAG_subprogram
8479 children for C++.
8480 (load_partial_dies): Don't skip DW_TAG_inlined_subroutine child of
8481 DW_TAG_subprogram.
8482
f6eee2d0
AB
84832020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8484
8485 * ada-lang.c (ada_language_data): Delete skip_trampoline
8486 initializer.
8487 * c-lang.c (c_language_data): Likewise.
8488 (cplus_language_data): Likewise.
8489 (cplus_language::skip_trampoline): New member function.
8490 (asm_language_data): Delete skip_trampoline initializer.
8491 (minimal_language_data): Likewise.
8492 * d-lang.c (d_language_data): Likewise.
8493 * f-lang.c (f_language_data): Likewise.
8494 * go-lang.c (go_language_data): Likewise.
8495 * language.c (unk_lang_trampoline): Delete function.
8496 (skip_language_trampoline): Update.
8497 (unknown_language_data): Delete skip_trampoline initializer.
8498 (auto_language_data): Likewise.
8499 * language.h (language_data): Delete skip_trampoline field.
8500 (language_defn::skip_trampoline): New function.
8501 * m2-lang.c (m2_language_data): Delete skip_trampoline
8502 initializer.
8503 * objc-lang.c (objc_skip_trampoline): Delete function, move
8504 implementation to objc_language::skip_trampoline.
8505 (objc_language_data): Delete skip_trampoline initializer.
8506 (objc_language::skip_trampoline): New member function with
8507 implementation from objc_skip_trampoline.
8508 * opencl-lang.c (opencl_language_data): Delete skip_trampoline
8509 initializer.
8510 * p-lang.c (pascal_language_data): Likewise.
8511 * rust-lang.c (rust_language_data): Likewise.
8512
0a50df5d
AB
85132020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8514
8515 * ada-lang.c (ada_language_data): Delete la_demangle initializer.
8516 (ada_language::demangle): New member function.
8517 * c-lang.c (c_language_data): Delete la_demangle initializer.
8518 (cplus_language_data): Delete la_demangle initializer.
8519 (cplus_language::demangle): New member function.
8520 (asm_language_data): Delete la_demangle initializer.
8521 (minimal_language_data): Delete la_demangle initializer.
8522 * d-lang.c (d_language_data): Delete la_demangle initializer.
8523 (d_language::demangle): New member function.
8524 * f-lang.c (f_language_data): Delete la_demangle initializer.
8525 (f_language::demangle): New member function.
8526 * go-lang.c (go_language_data): Delete la_demangle initializer.
8527 (go_language::demangle): New member function.
8528 * language.c (language_demangle): Update.
8529 (unk_lang_demangle): Delete.
8530 (unknown_language_data): Delete la_demangle initializer.
8531 (unknown_language::demangle): New member function.
8532 (auto_language_data): Delete la_demangle initializer.
8533 (auto_language::demangle): New member function.
8534 * language.h (language_data): Delete la_demangle field.
8535 (language_defn::demangle): New function.
8536 * m2-lang.c (m2_language_data): Delete la_demangle initializer.
8537 * objc-lang.c (objc_language_data): Delete la_demangle
8538 initializer.
8539 (objc_language::demangle): New member function.
8540 * opencl-lang.c (opencl_language_data): Delete la_demangle
8541 initializer.
8542 * p-lang.c (pascal_language_data): Likewise.
8543 * rust-lang.c (rust_language_data): Likewise.
8544 (rust_language::demangle): New member function.
8545
fbfb0a46
AB
85462020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8547
8548 * ada-lang.c (ada_language_data): Delete la_print_type
8549 initializer.
8550 (ada_language::print_type): New member function.
8551 * c-lang.c (c_language_data): Delete la_print_type initializer.
8552 (c_language::print_type): New member function.
8553 (cplus_language_data): Delete la_print_type initializer.
8554 (cplus_language::print_type): New member function.
8555 (asm_language_data): Delete la_print_type initializer.
8556 (asm_language::print_type): New member function.
8557 (minimal_language_data): Delete la_print_type initializer.
8558 (minimal_language::print_type): New member function.
8559 * d-lang.c (d_language_data): Delete la_print_type initializer.
8560 (d_language::print_type): New member function.
8561 * f-lang.c (f_language_data): Delete la_print_type initializer.
8562 (f_language::print_type): New member function.
8563 * go-lang.c (go_language_data): Delete la_print_type initializer.
8564 (go_language::print_type): New member function.
8565 * language.c (unk_lang_print_type): Delete.
8566 (unknown_language_data): Delete la_print_type initializer.
8567 (unknown_language::print_type): New member function.
8568 (auto_language_data): Delete la_print_type initializer.
8569 (auto_language::print_type): New member function.
8570 * language.h (language_data): Delete la_print_type field.
8571 (language_defn::print_type): New function.
8572 (LA_PRINT_TYPE): Update.
8573 * m2-lang.c (m2_language_data): Delete la_print_type initializer.
8574 (m2_language::print_type): New member function.
8575 * objc-lang.c (objc_language_data): Delete la_print_type
8576 initializer.
8577 (objc_language::print_type): New member function.
8578 * opencl-lang.c (opencl_print_type): Delete, implementation moved
8579 to opencl_language::print_type.
8580 (opencl_language_data): Delete la_print_type initializer.
8581 (opencl_language::print_type): New member function, implementation
8582 from opencl_print_type.
8583 * p-lang.c (pascal_language_data): Delete la_print_type
8584 initializer.
8585 (pascal_language::print_type): New member function.
8586 * rust-lang.c (rust_print_type): Delete, implementation moved to
8587 rust_language::print_type.
8588 (rust_language_data): Delete la_print_type initializer.
8589 (rust_language::print_type): New member function, implementation
8590 from rust_print_type.
8591
6f827019
AB
85922020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8593
8594 * ada-lang.c (ada_sniff_from_mangled_name): Delete function,
8595 implementation moves to...
8596 (ada_language::sniff_from_mangled_name): ...here. Update return
8597 type.
8598 (ada_language_data): Delete la_sniff_from_mangled_name
8599 initializer.
8600 * c-lang.c (c_language_data): Likewise.
8601 (cplus_language_data): Likewise.
8602 (cplus_language::sniff_from_mangled_name): New member function,
8603 implementation taken from gdb_sniff_from_mangled_name.
8604 (asm_language_data): Delete la_sniff_from_mangled_name
8605 initializer.
8606 (minimal_language_data): Likewise.
8607 * cp-support.c (gdb_sniff_from_mangled_name): Delete,
8608 implementation moves to cplus_language::sniff_from_mangled_name.
8609 * cp-support.h (gdb_sniff_from_mangled_name): Delete declaration.
8610 * d-lang.c (d_sniff_from_mangled_name): Delete, implementation
8611 moves to...
8612 (d_language::sniff_from_mangled_name): ...here.
8613 (d_language_data): Delete la_sniff_from_mangled_name initializer.
8614 * f-lang.c (f_language_data): Likewise.
8615 * go-lang.c (go_sniff_from_mangled_name): Delete, implementation
8616 moves to...
8617 (go_language::sniff_from_mangled_name): ...here.
8618 (go_language_data): Delete la_sniff_from_mangled_name initializer.
8619 * language.c (language_sniff_from_mangled_name): Delete.
8620 (unknown_language_data): Delete la_sniff_from_mangled_name
8621 initializer.
8622 (auto_language_data): Likewise.
8623 * language.h (language_data): Delete la_sniff_from_mangled_name
8624 field.
8625 (language_defn::sniff_from_mangled_name): New function.
8626 (language_sniff_from_mangled_name): Delete declaration.
8627 * m2-lang.c (m2_language_data): Delete la_sniff_from_mangled_name
8628 field.
8629 * objc-lang.c (objc_sniff_from_mangled_name): Delete,
8630 implementation moves to...
8631 (objc_language::sniff_from_mangled_name): ...here.
8632 (objc_language_data): Delete la_sniff_from_mangled_name initializer.
8633 * opencl-lang.c (opencl_language_data): Likewise.
8634 * p-lang.c (pascal_language_data): Likewise.
8635 * rust-lang.c (rust_sniff_from_mangled_name): Delete,
8636 implementation moves to...
8637 (rust_language::sniff_from_mangled_name): ...here.
8638 (rust_language_data): Delete la_sniff_from_mangled_name
8639 initializer.
8640 * symtab.c (symbol_find_demangled_name): Call
8641 sniff_from_mangled_name member function.
8642
fb8006fd
AB
86432020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8644
8645 * ada-lang.c (ada_language_data): Delete la_search_name_hash
8646 initializer.
8647 * c-lang.c (c_language_data): Likewise.
8648 (cplus_language_data): Likewise.
8649 (cplus_language::search_name_hash): New member function.
8650 (asm_language_data): Delete la_search_name_hash initializer.
8651 (minimal_language_data): Likewise.
8652 * d-lang.c (d_language_data): Likewise.
8653 * dictionary.c (default_search_name_hash): Rename to...
8654 (language_defn::search_name_hash): ...this.
8655 * f-lang.c (f_language_data): Likewise.
8656 (f_language::search_name_hash): New member function.
8657 * go-lang.c (go_language_data): Delete la_search_name_hash
8658 initializer.
8659 * language.c (unknown_language_data): Likewise.
8660 (auto_language_data): Likewise.
8661 * language.h (struct language_data): Delete la_search_name_hash
8662 field.
8663 (language_defn::search_name_hash): Declare new member function.
8664 (default_search_name_hash): Delete declaration.
8665 * m2-lang.c (m2_language_data): Delete la_search_name_hash
8666 initializer.
8667 * objc-lang.c (objc_language_data): Likewise.
8668 * opencl-lang.c (opencl_language_data): Likewise.
8669 * p-lang.c (pascal_language_data): Likewise.
8670 * rust-lang.c (rust_language_data): Likewise.
8671 * symtab.c (search_name_hash): Update call.
8672
8e25bafe
AB
86732020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8674
8675 * ada-lang.c (ada_language_data): Delete la_get_compile_instance
8676 initializer.
8677 * c-lang.c (class compile_instance): Declare.
8678 (c_language_data): Delete la_get_compile_instance initializer.
8679 (c_language::get_compile_instance): New member function.
8680 (cplus_language_data): Delete la_get_compile_instance initializer.
8681 (cplus_language::get_compile_instance): New member function.
8682 (asm_language_data): Delete la_get_compile_instance initializer.
8683 (minimal_language_data): Likewise.
8684 * c-lang.h (c_get_compile_context): Update comment.
8685 (cplus_get_compile_context): Update comment.
8686 * compile/compile.c (compile_to_object): Update calls, don't rely
8687 on function pointer being NULL.
8688 * d-lang.c (d_language_data): Delete la_get_compile_instance
8689 initializer.
8690 * f-lang.c (f_language_data): Likewise.
8691 * go-lang.c (go_language_data): Likewise.
8692 * language.c (unknown_language_data): Likewise.
8693 (auto_language_data): Likewise.
8694 * language.h (language_data): Delete la_get_compile_instance field.
8695 (language_defn::get_compile_instance): New member function.
8696 * m2-lang.c (m2_language_data): Delete la_get_compile_instance
8697 initializer.
8698 * objc-lang.c (objc_language_data): Likewise.
8699 * opencl-lang.c (opencl_language_data): Likewise.
8700 * p-lang.c (pascal_language_data): Likewise.
8701 * rust-lang.c (rust_language_data): Likewise.
8702
4009ee92
AB
87032020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8704
8705 * ada-lang.c (ada_add_all_symbols): Update comment.
8706 (ada_iterate_over_symbols): Delete, move implementation to...
8707 (ada_language::iterate_over_symbols): ...here, a new member
8708 function, rewrite to use range based for loop.
8709 (ada_language_data): Delete la_iterate_over_symbols initializer.
8710 * c-lang.c (c_language_data): Likewise.
8711 (cplus_language_data): Likewise.
8712 (asm_language_data): Likewise.
8713 (minimal_language_data): Likewise.
8714 * d-lang.c (d_language_data): Likewise.
8715 * f-lang.c (f_language_data): Likewise.
8716 * go-lang.c (go_language_data): Likewise.
8717 * language.c (unknown_language_data): Likewise.
8718 (auto_language_data): Likewise.
8719 * language.h (language_data): Delete la_iterate_over_symbols field.
8720 (language_defn::iterate_over_symbols): New member function.
8721 (LA_ITERATE_OVER_SYMBOLS): Update.
8722 * linespec.c (iterate_over_all_matching_symtabs): Update.
8723 * m2-lang.c (m2_language_data): Delete la_iterate_over_symbols
8724 initializer.
8725 * objc-lang.c (objc_language_data): Likewise.
8726 * opencl-lang.c (opencl_language_data): Likewise.
8727 * p-lang.c (pascal_language_data): Likewise.
8728 * rust-lang.c (rust_language_data): Likewise.
8729
54f4ca46
AB
87302020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8731
8732 * ada-lang.c (ada_language_data): Delete
8733 la_lookup_transparent_type initializer.
8734 * c-lang.c (c_language_data): Likewise.
8735 (cplus_language_data): Likewise.
8736 (cplus_language::lookup_transparent_type): New member function.
8737 (asm_language_data): Delete la_lookup_transparent_type
8738 initializer.
8739 (minimal_language_data): Likewise.
8740 * d-lang.c (d_language_data): Likewise.
8741 * f-lang.c (f_language_data): Likewise.
8742 * go-lang.c (go_language_data): Likewise.
8743 * language.c (unknown_language_data): Likewise.
8744 (auto_language_data): Likewise.
8745 * language.h (struct language_data): Delete
8746 la_lookup_transparent_type field.
8747 (language_defn::lookup_transparent_type): New member function.
8748 * m2-lang.c (m2_language_data): Delete la_lookup_transparent_type
8749 initializer.
8750 * objc-lang.c (objc_language_data): Likewise.
8751 * opencl-lang.c (opencl_language_data): Likewise.
8752 * p-lang.c (pascal_language_data): Likewise.
8753 * rust-lang.c (rust_language_data): Likewise.
8754 * symtab.c (symbol_matches_domain): Update call.
8755
1fb314aa
AB
87562020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8757
8758 * ada-lang.c (ada_language_arch_info): Delete function, move
8759 implementation to...
8760 (ada_language::language_arch_info): ...here, a new member
8761 function.
8762 (ada_language_data): Delete la_language_arch_info.
8763 * c-lang.c (c_language_data): Likewise.
8764 (c_language::language_arch_info): New member function.
8765 (cplus_language_arch_info): Delete function, move
8766 implementation to...
8767 (cplus_language::language_arch_info): ...here, a new member
8768 function.
8769 (cplus_language_data): Delete la_language_arch_info.
8770 (asm_language_data): Likewise.
8771 (asm_language::language_arch_info): New member function.
8772 (minimal_language_data): Delete la_language_arch_info.
8773 (minimal_language::language_arch_info): New member function.
8774 * d-lang.c (d_language_arch_info): Delete function, move
8775 implementation to...
8776 (d_language::language_arch_info): ...here, a new member
8777 function.
8778 (d_language_data): Delete la_language_arch_info.
8779 * f-lang.c (f_language_arch_info): Delete function, move
8780 implementation to...
8781 (f_language::language_arch_info): ...here, a new member
8782 function.
8783 (f_language_data): Delete la_language_arch_info.
8784 * go-lang.c (go_language_arch_info): Delete function, move
8785 implementation to...
8786 (go_language::language_arch_info): ...here, a new member
8787 function.
8788 (go_language_data): Delete la_language_arch_info.
8789 * language.c (unknown_language_data): Likewise.
8790 (unknown_language::language_arch_info): New member function.
8791 (auto_language_data): Delete la_language_arch_info.
8792 (auto_language::language_arch_info): New member function.
8793 (language_gdbarch_post_init): Update call to
8794 la_language_arch_info.
8795 * language.h (language_data): Delete la_language_arch_info
8796 function pointer.
8797 (language_defn::language_arch_info): New function.
8798 * m2-lang.c (m2_language_arch_info): Delete function, move
8799 implementation to...
8800 (m2_language::language_arch_info): ...here, a new member
8801 function.
8802 (m2_language_data): Delete la_language_arch_info.
8803 * objc-lang.c (objc_language_arch_info): Delete function, move
8804 implementation to...
8805 (objc_language::language_arch_info): ...here, a new member
8806 function.
8807 (objc_language_data): Delete la_language_arch_info.
8808 * opencl-lang.c (opencl_language_arch_info): Delete function, move
8809 implementation to...
8810 (opencl_language::language_arch_info): ...here, a new member
8811 function.
8812 (opencl_language_data): Delete la_language_arch_info.
8813 * p-lang.c (pascal_language_arch_info): Delete function, move
8814 implementation to...
8815 (pascal_language::language_arch_info): ...here, a new member
8816 function.
8817 (pascal_language_data): Delete la_language_arch_info.
8818 * rust-lang.c (rust_language_arch_info): Delete function, move
8819 implementation to...
8820 (rust_language::language_arch_info): ...here, a new member
8821 function.
8822 (rust_language_data): Delete la_language_arch_info.
8823
48448202
AB
88242020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8825
8826 * ada-lang.c (ada_language_data): Delete la_pass_by_reference
8827 initializer.
8828 * c-lang.c (c_language_data): Likewise.
8829 (cplus_language_data): Likewise.
8830 (cplus_language::pass_by_reference_info): New method.
8831 (asm_language_data): Delete la_pass_by_reference initializer.
8832 (minimal_language_data): Likewise.
8833 * cp-abi.c (cp_pass_by_reference): Remove use of
8834 default_pass_by_reference.
8835 * d-lang.c (d_language_data): Likewise.
8836 * f-lang.c (f_language_data): Likewise.
8837 * gnu-v3-abi.c (gnuv3_pass_by_reference): Remove use of
8838 default_pass_by_reference.
8839 * go-lang.c (go_language_data): Likewise.
8840 * language.c (language_pass_by_reference): Update.
8841 (default_pass_by_reference): Delete.
8842 (unknown_language_data): Delete la_pass_by_reference
8843 initializer.
8844 (auto_language_data): Likewise.
8845 * language.h (struct language_data): Delete la_pass_by_reference
8846 field.
8847 (language_defn::pass_by_reference_info): New member function.
8848 (default_pass_by_reference): Delete declaration.
8849 * m2-lang.c (m2_language_data): Delete la_pass_by_reference
8850 initializer.
8851 * objc-lang.c (objc_language_data): Likewise.
8852 * opencl-lang.c (opencl_language_data): Likewise.
8853 * p-lang.c (pascal_language_data): Likewise.
8854 * rust-lang.c (rust_language_data): Likewise.
8855
15e5fd35
AB
88562020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8857
8858 * ada-lang.c (ada_read_var_value): Delete function, move
8859 implementation to...
8860 (ada_language::read_var_value): ...here.
8861 (ada_language_data): Delete la_read_var_value initializer.
8862 * c-lang.c (c_language_data): Likewise.
8863 (cplus_language_data): Likewise.
8864 (minimal_language_data): Likewise.
8865 * d-lang.c (d_language_data): Likewise.
8866 * f-lang.c (f_language_data): Likewise.
8867 * findvar.c (default_read_var_value): Rename to...
8868 (language_defn::read_var_value): ...this.
8869 * findvar.c (read_var_value): Update header comment, and change to
8870 call member function instead of function pointer.
8871 * go-lang.c (go_language_data): Likewise.
8872 * language.c (unknown_language_data): Delete la_read_var_value
8873 initializer.
8874 (auto_language_data): Likewise.
8875 * language.h (struct language_data): Delete la_read_var_value
8876 field.
8877 (language_defn::read_var_value): New member function.
8878 (default_read_var_value): Delete declaration.
8879 * m2-lang.c (m2_language_data): Delete la_read_var_value
8880 initializer.
8881 * objc-lang.c (objc_language_data): Likewise.
8882 * opencl-lang.c (opencl_language_data): Likewise.
8883 * p-lang.c (pascal_language_data): Likewise.
8884 * rust-lang.c (rust_language_data): Likewise.
8885 * value.h (default_read_var_value): Delete declaration.
8886
5bd40f2a
AB
88872020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8888
8889 * ada-lang.c (ada_print_array_index): Delete function, move
8890 implementation to...
8891 (ada_language::print_array_index): ...here.
8892 (ada_language_data): Delete la_print_array_index initializer.
8893 * c-lang.c (c_language_data): Likewise.
8894 (cplus_language_data): Likewise.
8895 (minimal_language_data): Likewise.
8896 * d-lang.c (d_language_data): Likewise.
8897 * f-lang.c (f_language_data): Likewise.
8898 * go-lang.c (go_language_data): Likewise.
8899 * language.c (default_print_array_index): Delete function, move
8900 implementation to...
8901 (language_defn::print_array_index): ...here.
8902 (unknown_language_data): Delete la_print_array_index initializer.
8903 (auto_language_data): Likewise.
8904 * language.h (struct language_data): Delete la_print_array_index
8905 field.
8906 (language_defn::print_array_index): New member function.
8907 (LA_PRINT_ARRAY_INDEX): Update.
8908 (default_print_array_index): Delete declaration.
8909 * m2-lang.c (m2_language_data): Delete la_print_array_index
8910 initializer.
8911 * objc-lang.c (objc_language_data): Likewise.
8912 * opencl-lang.c (opencl_language_data): Likewise.
8913 * p-lang.c (pascal_language_data): Likewise.
8914 * rust-lang.c (rust_language_data): Likewise.
8915
0874fd07
AB
89162020-06-02 Andrew Burgess <andrew.burgess@embecosm.com>
8917
8918 * gdb/ada-lang.c (ada_language_defn): Convert to...
8919 (ada_language_data): ...this.
8920 (class ada_language): New class.
8921 (ada_language_defn): New static global.
8922 * gdb/c-lang.c (c_language_defn): Convert to...
8923 (c_language_data): ...this.
8924 (class c_language): New class.
8925 (c_language_defn): New static global.
8926 (cplus_language_defn): Convert to...
8927 (cplus_language_data): ...this.
8928 (class cplus_language): New class.
8929 (cplus_language_defn): New static global.
8930 (asm_language_defn): Convert to...
8931 (asm_language_data): ...this.
8932 (class asm_language): New class.
8933 (asm_language_defn): New static global.
8934 (minimal_language_defn): Convert to...
8935 (minimal_language_data): ...this.
8936 (class minimal_language): New class.
8937 (minimal_language_defn): New static global.
8938 * gdb/d-lang.c (d_language_defn): Convert to...
8939 (d_language_data): ...this.
8940 (class d_language): New class.
8941 (d_language_defn): New static global.
8942 * gdb/f-lang.c (f_language_defn): Convert to...
8943 (f_language_data): ...this.
8944 (class f_language): New class.
8945 (f_language_defn): New static global.
8946 * gdb/go-lang.c (go_language_defn): Convert to...
8947 (go_language_data): ...this.
8948 (class go_language): New class.
8949 (go_language_defn): New static global.
8950 * gdb/language.c (unknown_language_defn): Remove declaration.
8951 (current_language): Initialize to nullptr, real initialization is
8952 moved to _initialize_language.
8953 (languages): Delete global.
8954 (language_defn::languages): Define.
8955 (set_language_command): Use language_defn::languages.
8956 (set_language): Likewise.
8957 (range_error): Likewise.
8958 (language_enum): Likewise.
8959 (language_def): Likewise.
8960 (add_set_language_command): Use language_def::languages for the
8961 language list, and language_def to lookup language pointers.
8962 (skip_language_trampoline): Use language_defn::languages.
8963 (unknown_language_defn): Convert to...
8964 (unknown_language_data): ...this.
8965 (class unknown_language): New class.
8966 (unknown_language_defn): New static global.
8967 (auto_language_defn): Convert to...
8968 (auto_language_data): ...this.
8969 (class auto_language): New class.
8970 (auto_language_defn): New static global.
8971 (language_gdbarch_post_init): Use language_defn::languages.
8972 (_initialize_language): Initialize current_language.
8973 * gdb/language.h (struct language_defn): Rename to...
8974 (struct language_data): ...this.
8975 (struct language_defn): New.
8976 (auto_language_defn): Delete.
8977 (unknown_language_defn): Delete.
8978 (minimal_language_defn): Delete.
8979 (ada_language_defn): Delete.
8980 (asm_language_defn): Delete.
8981 (c_language_defn): Delete.
8982 (cplus_language_defn): Delete.
8983 (d_language_defn): Delete.
8984 (f_language_defn): Delete.
8985 (go_language_defn): Delete.
8986 (m2_language_defn): Delete.
8987 (objc_language_defn): Delete.
8988 (opencl_language_defn): Delete.
8989 (pascal_language_defn): Delete.
8990 (rust_language_defn): Delete.
8991 * gdb/m2-lang.c (m2_language_defn): Convert to...
8992 (m2_language_data): ...this.
8993 (class m2_language): New class.
8994 (m2_language_defn): New static global.
8995 * gdb/objc-lang.c (objc_language_defn): Convert to...
8996 (objc_language_data): ...this.
8997 (class objc_language): New class.
8998 (objc_language_defn): New static global.
8999 * gdb/opencl-lang.c (opencl_language_defn): Convert to...
9000 (opencl_language_data): ...this.
9001 (class opencl_language): New class.
9002 (opencl_language_defn): New static global.
9003 * gdb/p-lang.c (pascal_language_defn): Convert to...
9004 (pascal_language_data): ...this.
9005 (class pascal_language): New class.
9006 (pascal_language_defn): New static global.
9007 * gdb/rust-exp.y (rust_lex_tests): Use language_def to find
9008 language pointer, update comment format.
9009 * gdb/rust-lang.c (rust_language_defn): Convert to...
9010 (rust_language_data): ...this.
9011 (class rust_language): New class.
9012 (rust_language_defn): New static global.
9013
1313c56e
AB
90142020-06-01 Andrew Burgess <andrew.burgess@embecosm.com>
9015
9016 * dwarf2/read.c (class lnp_state_machine) <m_last_address>: New
9017 member variable.
9018 <m_stmt_at_address>: New member variable.
9019 (lnp_state_machine::record_line): Don't record some lines, update
9020 tracking of is_stmt at the same address.
9021 (lnp_state_machine::lnp_state_machine): Initialise new member
9022 variables.
9023
b7ed9f3d
ST
90242020-06-01 Samuel Thibault <samuel.thibault@ens-lyon.org>
9025
9026 * config/i386/i386gnu.mn [%_S.o %_U.o] (COMPILE.post): Add
9027 "-include gnu-nat-mig.h".
9028 * gnu-nat-mig.h: New file.
9029 * gnu-nat.c: Include "gnu-nat-mig.h".
9030 (exc_server, msg_reply_server, notify_server,
9031 process_reply_server): Remove declarations.
9032
14a8ad62
ST
90332020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9034
9035 * gnu-nat.h (inf_validate_procs, inf_suspend, inf_set_traced,
9036 steal_exc_port, proc_get_state, inf_clear_wait, inf_cleanup,
9037 inf_startup, inf_update_suspends, inf_set_pid, inf_steal_exc_ports,
9038 inf_validate_procinfo, inf_validate_task_sc, inf_restore_exc_ports,
9039 inf_set_threads_resume_sc, inf_set_threads_resume_sc_for_signal_thread,
9040 inf_resume, inf_set_step_thread, inf_detach, inf_attach, inf_signal,
9041 inf_continue, make_proc, proc_abort, _proc_free, proc_update_sc,
9042 proc_get_exception_port, proc_set_exception_port, _proc_get_exc_port,
9043 proc_steal_exc_port, proc_restore_exc_port, proc_trace): Move functions
9044 to gnu_nat_target class.
9045 * gnu-nat.c: Likewise.
9046 (inf_update_procs, S_proc_wait_reply, set_task_pause_cmd,
9047 set_task_exc_port_cmd, set_signals_cmd, set_thread_pause_cmd,
9048 set_thread_exc_port_cmd): Call inf_validate_procs through gnu_target
9049 object.
9050 (gnu_nat_target::create_inferior, gnu_nat_target::detach): Pass `this'
9051 instead of `gnu_target'.
9052
0af5e106
ST
90532020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9054
9055 * i386-gnu-tdep.c: Include "gdbcore.h"
9056 (gnu_sigtramp_code, i386_gnu_sc_reg_offset): New arrays.
9057 (GNU_SIGTRAMP_LEN, GNU_SIGTRAMP_TAIL,
9058 I386_GNU_SIGCONTEXT_THREAD_STATE_OFFSET): New macros
9059 (i386_gnu_sigtramp_start, i386_gnu_sigtramp_p,
9060 i386_gnu_sigcontext_addr): New functions
9061 (i386gnu_init_abi): Register i386_gnu_sigtramp_p,
9062 i386_gnu_sigcontext_addr, and i386_gnu_sc_reg_offset in the gdbarch
9063 tdep.
9064
078f2fc9
ST
90652020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9066
9067 * gnu-nat.c (gnu_nat_target::create_inferior): Move push_target call
9068 before fork_inferior call. Avoid calling it if target_is_pushed returns
9069 true.
9070
53dff92c
ST
90712020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9072
9073 * gnu-nat.h (gnu_target): New variable declaration.
9074 * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize
9075 gnu_target.
9076 * gnu-nat.c (gnu_target): New variable.
9077 (inf_validate_procs): Pass gnu_target to thread_change_ptid,
9078 add_thread_silent, and add_thread calls.
9079 (gnu_nat_target::create_inferior): Pass gnu_target to
9080 add_thread_silent, thread_change_ptid call.
9081 (gnu_nat_target::detach): Pass gnu_target to detach_inferior
9082 call.
9083
5a8b8627
ST
90842020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9085
9086 * gnu-nat.c (gnu_xfer_auxv): Remove unused `res' variable.
9087 (gnu_nat_target::find_memory_regions): Remove unused
9088 `old_address' variable.
9089
366f550a
ST
90902020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9091
9092 * gnu-nat.c: Include "gdbarch.h".
9093
f14871bf
ST
90942020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9095
9096 * reply_mig_hack.awk (Error return): Cast function through
9097 void *, to bypass compiler function call check.
9098
c6887cfb
ST
90992020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9100
9101 * config/i386/i386gnu.mn (%_reply_S.c): Add dependency on
9102 $(srcdir)/reply_mig_hack.awk.
9103
6930bffe
ST
91042020-05-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
9105
9106 * gnu-nat.h (gnu_debug_flag): Set type to bool.
9107
112c22ed
JG
91082020-05-30 Jonny Grant <jg@jguk.org>
9109
9110 * configure.ac (ACX_BUGURL): change bug URL to https.
9111
f68f85b5
PA
91122020-05-30 Pedro Alves <palves@redhat.com>
9113
9114 * cp-support.c (replace_typedefs_template): New.
9115 (replace_typedefs_qualified_name): Handle
9116 DEMANGLE_COMPONENT_TEMPLATE.
9117
976ca316
SM
91182020-05-29 Simon Marchi <simon.marchi@efficios.com>
9119
9120 * dwarf2/comp-unit.c, dwarf2/comp-unit.h, dwarf2/index-cache.c,
9121 dwarf2/index-cache.h, dwarf2/index-write.c,
9122 dwarf2/index-write.h, dwarf2/line-header.c,
9123 dwarf2/line-header.h, dwarf2/macro.c, dwarf2/macro.h,
9124 dwarf2/read.c, dwarf2/read.h: Rename struct dwarf2_per_objfile
9125 variables and fields from `dwarf2_per_objfile` to just
9126 `per_objfile` throughout.
9127
989ade05
SM
91282020-05-28 Simon Marchi <simon.marchi@polymtl.ca>
9129
9130 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9131 <push_dwarf_reg_entry_value>: Add comment.
9132
c47bae85
KB
91332020-05-28 Kevin Buettner <kevinb@redhat.com>
9134 Keith Seitz <keiths@redhat.com>
9135
9136 * python/python.c (do_start_initialization): Call PyEval_SaveThread
9137 instead of PyEval_ReleaseLock.
9138 (class gdbpy_gil): Move to earlier in file.
9139 (finalize_python): Set gdb_python_initialized.
9140 (gdbpy_check_quit_flag): Acquire GIL via gdbpy_gil. Return early
9141 when not initialized.
9142
44486dcf
SM
91432020-05-28 Simon Marchi <simon.marchi@efficios.com>
9144
9145 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9146 <push_dwarf_reg_entry_value>: Remove assert. Override
9147 per_objfile with caller_per_objfile.
9148
f030440d
TV
91492020-05-28 Tom de Vries <tdevries@suse.de>
9150
9151 * dwarf2/read.c (dw2_symtab_iter_next, dw2_expand_marked_cus): Limit
9152 PR gold/15646 workaround to symbol kind "type".
9153
f0fbb768
TT
91542020-05-27 Tom Tromey <tromey@adacore.com>
9155
9156 * dwarf2/read.c (load_partial_dies): Use add_partial_symbol.
9157
af0b2a3e
TT
91582020-05-27 Tom Tromey <tromey@adacore.com>
9159
9160 * dwarf2/abbrev.h (struct abbrev_table) <lookup_abbrev>: Inline.
9161 Use htab_find_with_hash.
9162 <add_abbrev>: Remove "abbrev_number" parameter.
9163 * dwarf2/abbrev.c (abbrev_table::add_abbrev): Remove
9164 "abbrev_number" parameter. Use htab_find_slot_with_hash.
9165 (hash_abbrev): Add comment.
9166 (abbrev_table::lookup_abbrev): Move to header file.
9167 (abbrev_table::read): Update.
9168
7d00ffec
TT
91692020-05-27 Tom Tromey <tromey@adacore.com>
9170
9171 * dwarf2/read.c (struct partial_die_info) <name>: Declare new
9172 method.
9173 <canonical_name>: New member.
9174 <raw_name>: Rename from "name".
9175 (partial_die_info): Initialize canonical_name.
9176 (scan_partial_symbols): Check raw_name.
9177 (partial_die_parent_scope, partial_die_full_name)
9178 (add_partial_symbol, add_partial_subprogram)
9179 (add_partial_enumeration, load_partial_dies): Use "name" method.
9180 (partial_die_info::name): New method.
9181 (partial_die_info::read, guess_partial_die_structure_name)
9182 (partial_die_info::fixup): Update.
9183
697bba18
TT
91842020-05-27 Tom Tromey <tromey@adacore.com>
9185
9186 * dwarf2/attribute.h (struct attribute) <form_is_ref>: Inline.
9187 <get_ref_die_offset>: Inline.
9188 <get_ref_die_offset_complaint>: New method.
9189 * dwarf2/attribute.c (attribute::form_is_ref): Move to header.
9190 (attribute::get_ref_die_offset_complaint): Rename from
9191 get_ref_die_offset. Just issue complaint.
9192
c17ace43
HD
91932020-05-27 Hannes Domani <ssbssa@yahoo.de>
9194
9195 * cli/cli-cmds.c (shell_escape): Move exit_status_set_internal_vars.
9196
96445f0b
HD
91972020-05-27 Hannes Domani <ssbssa@yahoo.de>
9198
9199 * exec.c (exec_file_attach): Use errno value of first openp failure.
9200
ac637ec3
HD
92012020-05-27 Hannes Domani <ssbssa@yahoo.de>
9202
9203 * nat/windows-nat.c (windows_thread_info::~windows_thread_info):
9204 Don't close thread handle.
9205
17ee85fc
TT
92062020-05-27 Tom Tromey <tom@tromey.com>
9207 Simon Marchi <simon.marchi@efficios.com>
9208
9209 * objfiles.h (struct objfile) <partial_symtabs>: Now a
9210 shared_ptr.
9211 * dwarf2/read.h (struct dwarf2_per_objfile) <partial_symtabs>: New
9212 member.
9213 * dwarf2/read.c (dwarf2_per_bfd_bfd_data_key,
9214 dwarf2_per_bfd_objfile_data_key>: New globals.
9215 (dwarf2_has_info): Use shared dwarf2_per_bfd if possible.
9216 (dwarf2_get_section_info): Use get_dwarf2_per_objfile.
9217 (dwarf2_initialize_objfile): Consider cases where per_bfd can be
9218 shared.
9219 (dwarf2_build_psymtabs): Set objfile::partial_symtabs and
9220 short-circuit when sharing.
9221 (dwarf2_build_psymtabs): Set dwarf2_per_objfile::partial_symtabs.
9222 (dwarf2_psymtab::expand_psymtab): Use free_cached_comp_units.
9223
39b16f87
SM
92242020-05-27 Simon Marchi <simon.marchi@efficios.com>
9225
9226 * dwarf2/read.h (struct dwarf2_per_bfd) <line_header_hash>: Move
9227 to...
9228 (struct dwarf2_per_objfile) <line_header_hash>: ... here.
9229 * dwarf2/read.c (handle_DW_AT_stmt_list): Update.
9230
fcf23d5b
SM
92312020-05-27 Simon Marchi <simon.marchi@efficios.com>
9232
9233 * dwarf2/read.c (struct mapped_index_base) <symbol_name_at,
9234 build_name_components, find_name_components_bounds>:
9235 Add per_objfile parameter.
9236 (struct mapped_index) <symbol_name_at>: Likewise.
9237 (struct mapped_debug_names): Remove constructor.
9238 <dwarf2_per_objfile>: Remove field.
9239 <namei_to_name, symbol_name_at>: Add per_objfile parameter.
9240 (mapped_index_base::find_name_components_bounds,
9241 mapped_index_base::build_name_components,
9242 dw2_expand_symtabs_matching_symbol): Likewise.
9243 (class mock_mapped_index) <symbol_name_at>: Likewise.
9244 (check_match): Likewise.
9245 (check_find_bounds_finds): Likewise.
9246 (test_mapped_index_find_name_component_bounds): Update.
9247 (CHECK_MATCH): Update.
9248 (dw2_expand_symtabs_matching): Update.
9249 (class dw2_debug_names_iterator) <dw2_debug_names_iterator>: Add
9250 per_objfile parameter.
9251 <find_vec_in_debug_names>: Likewise.
9252 <m_per_objfile>: New field.
9253 (mapped_debug_names::namei_to_name): Add dwarf2_per_objfile
9254 parameter.
9255 (dw2_debug_names_iterator::find_vec_in_debug_names): Likewise.
9256 (dw2_debug_names_iterator::next): Update.
9257 (dw2_debug_names_lookup_symbol): Update.
9258 (dw2_debug_names_expand_symtabs_for_function): Update.
9259 (dw2_debug_names_map_matching_symbols): Update.
9260 (dw2_debug_names_expand_symtabs_matching): Update.
9261 (dwarf2_read_debug_names): Update.
9262
7188ed02
SM
92632020-05-27 Simon Marchi <simon.marchi@efficios.com>
9264
9265 * dwarf2/read.h (struct dwarf2_cu): Forward-declare.
9266 (struct dwarf2_per_bfd) <free_cached_comp_units>: Remove,
9267 move to dwarf2_per_objfile.
9268 <read_in_chain>: Remove.
9269 (struct dwarf2_per_objfile) <get_cu, set_cu, remove_cu,
9270 remove_all_cus, age_comp_units>: New methods.
9271 <m_dwarf2_cus>: New member.
9272 (struct dwarf2_per_cu_data) <cu>: Remove.
9273 * dwarf2/read.c (struct dwarf2_cu) <read_in_chain>: Remove.
9274 (age_cached_comp_units, free_one_cached_comp_unit): Remove,
9275 moved to methods of dwarf2_per_objfile.
9276 (dwarf2_clear_marks): Remove.
9277 (dwarf2_queue_item::~dwarf2_queue_item): Update.
9278 (dwarf2_per_bfd::~dwarf2_per_bfd): Don't free dwarf2_cus.
9279 (dwarf2_per_bfd::free_cached_comp_units): Remove.
9280 (dwarf2_per_objfile::remove_all_cus): New.
9281 (class free_cached_comp_units) <~free_cached_comp_units>:
9282 Update.
9283 (load_cu): Update.
9284 (dw2_do_instantiate_symtab): Adjust.
9285 (fill_in_sig_entry_from_dwo_entry): Adjust.
9286 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9287 (cutu_reader::cutu_reader): Likewise.
9288 (cutu_reader::keep): Use dwarf2_per_objfile::set_cu.
9289 (cutu_reader::cutu_reader): Use dwarf2_per_objfile::get_cu.
9290 (process_psymtab_comp_unit): Use dwarf2_per_objfile::remove_cu
9291 and dwarf2_per_objfile::age_comp_units.
9292 (load_partial_comp_unit): Update.
9293 (maybe_queue_comp_unit): Use dwarf2_per_objfile::get_cu.
9294 (process_queue): Likewise.
9295 (find_partial_die): Use dwarf2_per_objfile::get_cu instead of cu
9296 backlink.
9297 (dwarf2_read_addr_index): Likewise.
9298 (follow_die_offset): Likewise.
9299 (dwarf2_fetch_die_loc_sect_off): Likewise.
9300 (dwarf2_fetch_constant_bytes): Likewise.
9301 (dwarf2_fetch_die_type_sect_off): Likewise.
9302 (follow_die_sig_1): Likewise.
9303 (load_full_type_unit): Likewise.
9304 (read_signatured_type): Likewise.
9305 (dwarf2_cu::dwarf2_cu): Don't set cu field.
9306 (dwarf2_cu::~dwarf2_cu): Remove.
9307 (dwarf2_per_objfile::get_cu): New.
9308 (dwarf2_per_objfile::set_cu): New.
9309 (age_cached_comp_units): Rename to...
9310 (dwarf2_per_objfile::age_comp_units): ... this. Adjust
9311 to std::unordered_map.
9312 (free_one_cached_comp_unit): Rename to...
9313 (dwarf2_per_objfile::remove_cu): ... this. Adjust
9314 to std::unordered_map.
9315 (dwarf2_per_objfile::~dwarf2_per_objfile): New.
9316 (dwarf2_mark_helper): Use dwarf2_per_objfile::get_cu, expect
9317 a dwarf2_per_objfile in data.
9318 (dwarf2_mark): Pass dwarf2_per_objfile in data to htab_traverse.
9319 (dwarf2_clear_marks): Remove.
9320
2e671100
SM
93212020-05-27 Simon Marchi <simon.marchi@efficios.com>
9322
9323 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Replace
9324 `int use_existing_cu` parameter with `dwarf2_cu *existing_cu`.
9325 (init_tu_and_read_dwo_dies): Likewise.
9326 (cutu_reader::init_tu_and_read_dwo_dies): Likewise.
9327 (cutu_reader::cutu_reader): Likewise.
9328 (load_partial_comp_unit): Likewise.
9329 (process_psymtab_comp_unit): Update.
9330 (build_type_psymtabs_1): Update.
9331 (process_skeletonless_type_unit): Update.
9332 (load_full_comp_unit): Update.
9333 (find_partial_die): Update.
9334 (dwarf2_read_addr_index): Update.
9335 (read_signatured_type): Update.
9336
2e6a9f79
SM
93372020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9338
9339 * dwarf2/read.h (struct dwarf2_per_cu_data) <m_header,
9340 m_header_read_in>: New fields.
9341 <get_header>: New method.
9342 * dwarf2/read.c (per_cu_header_read_in): Remove.
9343 (dwarf2_per_cu_data::get_header): New.
9344 (dwarf2_per_cu_data::addr_size): Update.
9345 (dwarf2_per_cu_data::offset_size): Update.
9346 (dwarf2_per_cu_data::ref_addr_size): Update.
9347
1b555f17
SM
93482020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9349
9350 * dwarf2/read.c (load_cu): Return dwarf2_cu.
9351 (dw2_do_instantiate_symtab): Update.
9352 (queue_and_load_all_dwo_tus): Change parameter from
9353 dwarf2_per_cu_data to dwarf2_cu.
9354 (dwarf2_fetch_die_loc_sect_off): Update.
9355 (dwarf2_fetch_constant_bytes): Update.
9356 (dwarf2_fetch_die_type_sect_off): Update.
9357
8fc0b21d
SM
93582020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9359
9360 * dwarf2/read.c (process_full_comp_unit,
9361 process_full_type_unit): Remove per_cu, per_objfile paramters.
9362 Add dwarf2_cu parameter.
9363 (process_queue): Update.
9364
168c9250
SM
93652020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9366
9367 * dwarf2/read.c (create_cu_from_index_list): Replace
9368 dwarf2_per_objfile parameter with dwarf2_per_bfd.
9369 (create_cus_from_index_list): Likewise.
9370 (create_cus_from_index): Likewise.
9371 (create_signatured_type_table_from_index): Likewise.
9372 (create_cus_from_debug_names_list): Likewise.
9373 (create_cus_from_debug_names): Likewise.
9374 (dwarf2_read_gdb_index): Update.
9375 (dwarf2_read_debug_names): Update.
9376
e286671b
TT
93772020-05-27 Tom Tromey <tom@tromey.com>
9378 Simon Marchi <simon.marchi@efficios.com>
9379
9380 * dwarf2/read.h (struct dwarf2_per_objfile)
9381 <get_type_for_signatured_type, set_type_for_signatured_type>:
9382 New methods.
9383 <m_type_map>: New member.
9384 (struct signatured_type) <type>: Remove.
9385 * dwarf2/read.c
9386 (dwarf2_per_objfile::get_type_for_signatured_type,
9387 dwarf2_per_objfile::set_type_for_signatured_type): New.
9388 (get_signatured_type): Use new methods.
9389
8adb8487
TT
93902020-05-27 Tom Tromey <tom@tromey.com>
9391 Simon Marchi <simon.marchi@efficios.com>
9392
9393 * dwarf2/read.h (struct type_unit_group_unshareable): New.
9394 (struct dwarf2_per_objfile) <type_units>: New member.
9395 <get_type_unit_group_unshareable>: New method.
9396 * dwarf2/read.c (struct type_unit_group) <compunit_symtab,
9397 num_symtabs, symtabs>: Remove; move to
9398 type_unit_group_unshareable.
9399 (dwarf2_per_objfile::get_type_unit_group_unshareable): New.
9400 (process_full_type_unit, dwarf2_cu::setup_type_unit_groups)
9401 (dwarf2_cu::setup_type_unit_groups): Use type_unit_group_unshareable.
9402
127bbf4b
SM
94032020-05-27 Simon Marchi <simon.marchi@efficios.com>
9404
9405 * dwarf2/read.h (struct dwarf2_per_cu_data):
9406 <dwarf2_per_objfile>: Remove.
9407 * dwarf2/read.c (create_cu_from_index_list): Don't assign
9408 dwarf2_per_objfile.
9409 (create_signatured_type_table_from_index): Likewise.
9410 (create_signatured_type_table_from_debug_names): Likewise.
9411 (create_debug_type_hash_table): Likewise.
9412 (fill_in_sig_entry_from_dwo_entry): Likewise.
9413 (create_type_unit_group): Likewise.
9414 (read_comp_units_from_section): Likewise.
9415 (create_cus_hash_table): Likewise.
9416
f6e649dd
SM
94172020-05-27 Simon Marchi <simon.marchi@efficios.com>
9418
9419 * dwarf2/read.c (process_psymtab_comp_unit): Remove reference to
9420 dwarf2_per_cu_data::dwarf2_per_objfile.
9421 (compute_compunit_symtab_includes): Likewise.
9422 (dwarf2_cu::start_symtab): Likewise.
9423
aa66c379
SM
94242020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9425
9426 * dwarf2/read.h (dwarf2_get_die_type): Add dwarf2_per_objfile
9427 parameter.
9428 * dwarf2/read.c (get_die_type_at_offset): Likewise.
9429 (read_namespace_alias): Update.
9430 (lookup_die_type): Update.
9431 (dwarf2_get_die_type): Add dwarf2_per_objfile parameter.
9432 * dwarf2/loc.c (class dwarf_evaluate_loc_desc) <get_base_type>:
9433 Update.
9434 (disassemble_dwarf_expression): Update.
9435
120ce1b5
SM
94362020-05-27 Simon Marchi <simon.marchi@efficios.com>
9437
9438 * dwarf2/read.h (struct dwarf2_queue_item): Add
9439 dwarf2_per_objfile parameter, assign new parameter.
9440 <per_objfile>: New field.
9441 * dwarf2/read.c (free_one_cached_comp_unit): Add
9442 dwarf2_per_objfile parameter.
9443 (queue_comp_unit): Likewise.
9444 (dw2_do_instantiate_symtab): Update.
9445 (process_psymtab_comp_unit): Update.
9446 (maybe_queue_comp_unit): Add dwarf2_per_objfile parameter.
9447 (process_imported_unit_die): Update.
9448 (queue_and_load_dwo_tu): Update.
9449 (follow_die_offset): Update.
9450 (follow_die_sig_1): Update.
9451
9f47c707
SM
94522020-05-27 Simon Marchi <simon.marchi@efficios.com>
9453
9454 * dwarf2/read.h (struct dwarf2_per_cu_data) <objfile>: Remove.
9455 * dwarf2/read.c (dwarf2_compute_name): Pass per_objfile down.
9456 (read_call_site_scope): Assign per_objfile.
9457 (dwarf2_per_cu_data::objfile): Remove.
9458 * gdbtypes.h (struct call_site) <per_objfile>: New member.
9459 * dwarf2/loc.h (dwarf2_evaluate_loc_desc): Add
9460 dwarf2_per_objfile parameter.
9461 * dwarf2/loc.c (dwarf2_evaluate_loc_desc_full): Add
9462 dwarf2_per_objfile parameter.
9463 (dwarf_expr_reg_to_entry_parameter): Add output
9464 dwarf2_per_objfile parameter.
9465 (locexpr_get_frame_base): Update.
9466 (class dwarf_evaluate_loc_desc) <get_tls_address>: Update.
9467 <push_dwarf_reg_entry_value>: Update.
9468 <call_site_to_target_addr>: Update.
9469 (dwarf_entry_parameter_to_value): Add dwarf2_per_objfile
9470 parameter.
9471 (value_of_dwarf_reg_entry): Update.
9472 (rw_pieced_value): Update.
9473 (indirect_synthetic_pointer): Update.
9474 (dwarf2_evaluate_property): Update.
9475 (dwarf2_loc_desc_get_symbol_read_needs): Add dwarf2_per_objfile
9476 parameter.
9477 (locexpr_read_variable): Update.
9478 (locexpr_get_symbol_read_needs): Update.
9479 (loclist_read_variable): Update.
9480
14095eb3
SM
94812020-05-27 Simon Marchi <simon.marchi@efficios.com>
9482
9483 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
9484 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9485 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9486 parameter.
9487 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
9488 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
9489 dwarf2_fetch_die_type_sect_off): Add dwarf2_per_objfile
9490 parameter.
9491 * dwarf2/loc.c (indirect_synthetic_pointer, per_cu_dwarf_call,
9492 sect_variable_value): Add dwarf2_per_objfile parameter.
9493 (class dwarf_evaluate_loc_desc) <dwarf_call,
9494 dwarf_variable_value>: Update.
9495 (fetch_const_value_from_synthetic_pointer): Add
9496 dwarf2_per_objfile parameter.
9497 (fetch_const_value_from_synthetic_pointer): Update.
9498 (coerced_pieced_ref): Update.
9499 (class symbol_needs_eval_context) <dwarf_call,
9500 dwarf_variable_value>: Update.
9501 (dwarf2_compile_expr_to_ax): Update.
9502
3c3cd3d4
SM
95032020-05-27 Simon Marchi <simon.marchi@efficios.com>
9504
9505 * dwarf2/loc.c (allocate_piece_closure): Add dwarf2_per_objfile
9506 parameter.
9507 (dwarf2_evaluate_loc_desc_full): Update.
9508
82ca3f51
SM
95092020-05-27 Simon Marchi <simon.marchi@efficios.com>
9510
9511 * dwarf2/read.h (dwarf2_read_addr_index): Add dwarf2_per_objfile
9512 parameter.
9513 * dwarf2/read.c (dwarf2_read_addr_index): Likewise.
9514 * dwarf2/loc.c (decode_debug_loclists_addresses): Add
9515 dwarf2_per_objfile parameter.
9516 (decode_debug_loc_dwo_addresses): Likewise.
9517 (dwarf2_find_location_expression): Update.
9518 (class dwarf_evaluate_loc_desc) <get_addr_index>: Update.
9519 (locexpr_describe_location_piece): Add dwarf2_per_objfile
9520 parameter.
9521 (disassemble_dwarf_expression): Add dwarf2_per_objfile
9522 parameter.
9523 (locexpr_describe_location_1): Likewise.
9524 (locexpr_describe_location): Update.
9525
4b167ea1
SM
95262020-05-27 Simon Marchi <simon.marchi@efficios.com>
9527
9528 * dwarf2/read.h (struct dwarf2_per_cu_data) <text_offset>:
9529 Remove.
9530 * dwarf2/read.c (dwarf2_per_cu_data::text_offset): Remove.
9531 * dwarf2/loc.c (dwarf2_find_location_expression): Update.
9532 (dwarf2_compile_property_to_c): Update.
9533 (dwarf2_compile_expr_to_ax): Add dwarf2_per_objfile parameter,
9534 use text offset from objfile.
9535 (locexpr_tracepoint_var_ref): Update.
9536 (locexpr_generate_c_location): Update.
9537 (loclist_describe_location): Update.
9538 (loclist_tracepoint_var_ref): Update.
9539 * dwarf2/compile.h (compile_dwarf_bounds_to_c): Add
9540 dwarf2_per_objfile parameter.
9541 * dwarf2/loc2c.c (do_compile_dwarf_expr_to_c): Likewise,
9542 use text offset from objfile.
9543 (compile_dwarf_expr_to_c): Add dwarf2_per_objfile parameter.
9544
89b07335
SM
95452020-05-27 Simon Marchi <simon.marchi@efficios.com>
9546
9547 * dwarf2/expr.h (struct dwarf_expr_context)
9548 <dwarf_expr_context>: Add dwarf2_per_objfile parameter.
9549 <offset>: Remove.
9550 <per_objfile>: New member.
9551 * dwarf2/expr.c (dwarf_expr_context::dwarf_expr_context): Add
9552 dwarf2_per_objfile parameter. Don't set offset, set
9553 per_objfile.
9554 (dwarf_expr_context::execute_stack_op): Use offset from objfile.
9555 * dwarf2/frame.c (dwarf2_frame_find_fde): Return (by parameter)
9556 a dwarf2_per_objfile object instead of an offset.
9557 (class dwarf_expr_executor) <dwarf_expr_executor>: Add
9558 constructor.
9559 (execute_stack_op): Add dwarf2_per_objfile parameter, pass it
9560 to dwarf2_expr_executor constructor. Don't set offset.
9561 (dwarf2_fetch_cfa_info): Update.
9562 (struct dwarf2_frame_cache) <text_offset>: Remove.
9563 <per_objfile>: New field.
9564 (dwarf2_frame_cache): Update.
9565 (dwarf2_frame_prev_register): Update.
9566 * dwarf2/loc.c (class dwarf_evaluate_loc_desc)
9567 <dwarf_evaluate_loc_desc>: Add constructor.
9568 (dwarf2_evaluate_loc_desc_full): Update.
9569 (dwarf2_locexpr_baton_eval): Update.
9570 (class symbol_needs_eval_context) <symbol_needs_eval_context>:
9571 Add constructor.
9572 (dwarf2_loc_desc_get_symbol_read_needs): Update.
9573
293e7e51
SM
95742020-05-27 Simon Marchi <simon.marchi@efficios.com>
9575
9576 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_type,
9577 addr_sized_int_type>: Move to dwarf2_cu.
9578 <int_type>: Move to dwarf2_per_objfile.
9579 (struct dwarf2_per_objfile) <int_type>: Move here.
9580 * dwarf2/read.c (struct dwarf2_cu) <addr_type,
9581 addr_sized_int_type>: Move here.
9582 (read_func_scope): Update.
9583 (read_array_type): Update.
9584 (read_tag_string_type): Update.
9585 (attr_to_dynamic_prop): Update.
9586 (dwarf2_per_cu_data::int_type): Rename to...
9587 (dwarf2_per_objfile::int_type): ... this.
9588 (dwarf2_per_cu_data::addr_sized_int_type): Rename to...
9589 (dwarf2_cu::addr_sized_int_type): ... this.
9590 (read_subrange_type): Update.
9591 (dwarf2_per_cu_data::addr_type): Rename to...
9592 (dwarf2_cu::addr_type): ... this.
9593 (set_die_type): Update.
9594
64874a40
SM
95952020-05-27 Simon Marchi <simon.marchi@efficios.com>
9596
9597 * dwarf2/read.c (queue_and_load_all_dwo_tus): Access per_objfile
9598 data through per_cu->cu.
9599
4ab09049
SM
96002020-05-27 Simon Marchi <simon.marchi@efficios.com>
9601
9602 * dwarf2/read.c (lookup_dwo_comp_unit): Change
9603 dwarf2_per_cu_data parameter fo dwarf2_cu.
9604 (lookup_dwo_type_unit): Likewise.
9605 (read_cutu_die_from_dwo): Likewise.
9606 (lookup_dwo_unit): Likewise.
9607 (open_and_init_dwo_file): Likewise.
9608 (lookup_dwo_cutu): Likewise.
9609 (lookup_dwo_comp_unit): Likewise.
9610 (lookup_dwo_type_unit): Likewise.
9611 (cutu_reader::init_tu_and_read_dwo_dies): Update.
9612 (cutu_reader::cutu_reader): Update.
9613
47b14e86
SM
96142020-05-27 Simon Marchi <simon.marchi@efficios.com>
9615
9616 * dwarf2/read.c (process_full_comp_unit): Add dwarf2_per_objfile
9617 parameter.
9618 (process_full_type_unit): Likewise.
9619 (process_queue): Update.
9620
43182c09
SM
96212020-05-27 Simon Marchi <simon.marchi@efficios.com>
9622
9623 * dwarf2/read.c (recursively_compute_inclusions): Add
9624 dwarf2_per_objfile parameter.
9625 (compute_compunit_symtab_includes): Likewise.
9626 (process_cu_includes): Update.
9627
7aa104c4
SM
96282020-05-27 Simon Marchi <simon.marchi@efficios.com>
9629
9630 * dwarf2/read.c (create_partial_symtab): Add dwarf2_per_objfile
9631 parameter.
9632 (create_type_unit_group): Update.
9633 (process_psymtab_comp_unit_reader): Update.
9634 (build_type_psymtabs_reader): Update.
9635
e3beb21d
SM
96362020-05-27 Simon Marchi <simon.marchi@efficios.com>
9637
9638 * dwarf2/read.c (cutu_reader::keep): Access dwarf2_per_objfile
9639 object through m_this_cu->cu.
9640
d460f660
SM
96412020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9642
9643 * dwarf2/read.c (queue_and_load_dwo_tu): Expect a dwarf2_cu as
9644 the info parameter.
9645 (queue_and_load_all_dwo_tus): Pass per_cu->cu.
9646
ab432490
SM
96472020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9648
9649 * dwarf2/read.c (class cutu_reader) <cutu_reader>: Add
9650 per_objfile parameter.
9651 (load_full_type_unit): Add per_objfile parameter.
9652 (read_signatured_type): Likewise.
9653 (load_full_comp_unit): Likewise.
9654 (load_cu): Likewise.
9655 (dw2_do_instantiate_symtab): Likewise.
9656 (dw2_get_file_names): Likewise.
9657 (dw2_map_symtabs_matching_filename): Update.
9658 (dw_expand_symtabs_matching_file_matcher): Update.
9659 (dw2_map_symbol_filenames): Update.
9660 (process_psymtab_comp_unit): Add per_objfile parameter.
9661 (build_type_psymtabs_1): Update.
9662 (process_skeletonless_type_unit): Update.
9663 (dwarf2_build_psymtabs_hard): Update.
9664 (load_partial_comp_unit): Add per_objfile parameter.
9665 (scan_partial_symbols): Update.
9666 (load_full_comp_unit): Add per_objfile parameter.
9667 (process_imported_unit_die): Update.
9668 (create_cus_hash_table): Update.
9669 (find_partial_die): Update.
9670 (dwarf2_read_addr_index): Update.
9671 (follow_die_offset): Update.
9672 (dwarf2_fetch_die_loc_sect_off): Update.
9673 (dwarf2_fetch_constant_bytes): Update.
9674 (dwarf2_fetch_die_type_sect_off): Update.
9675 (follow_die_sig_1): Update.
9676 (load_full_type_unit): Add per_objfile parameter.
9677 (read_signatured_type): Likewise.
9678
313bad1b
SM
96792020-05-27 Simon Marchi <simon.marchi@efficios.com>
9680
9681 * dwarf2/read.c (lookup_dwo_unit): Use bfd_get_filename instead
9682 of objfile_name.
9683
c3699833
SM
96842020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9685
9686 * dwarf2/read.h (struct dwarf2_per_bfd) <obfd>: New member.
9687 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9688 * dwarf2/read.c (dwarf2_per_bfd::dwarf2_per_bfd): Assign obfd
9689 field.
9690 (dwarf2_get_dwz_file): Replace parameter with dwarf2_per_bfd.
9691 (create_cus_from_index): Update.
9692 (dwarf2_read_gdb_index): Update.
9693 (create_cus_from_debug_names): Update.
9694 (dwarf2_read_debug_names): Update.
9695 (get_abbrev_section_for_cu): Update.
9696 (create_all_comp_units): Update.
9697 (read_attribute_value): Update.
9698 (get_debug_line_section): Update.
9699 * dwarf2/index-cache.c (index_cache::store): Update.
9700 * dwarf2/index-write.c (save_gdb_index_command): Update.
9701 * dwarf2/macro.c (dwarf_decode_macro_bytes): Update.
9702
1859c670
SM
97032020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9704
9705 * dwarf2/read.h (struct dwarf2_per_cu_data) <per_bfd>: New
9706 member.
9707 * dwarf2/read.c (dwarf2_per_bfd::allocate_per_cu): Initialize
9708 dwarf2_per_cu_data::per_bfd.
9709 (dwarf2_per_bfd::allocate_signatured_type): Likewise.
9710 (create_type_unit_group): Likewise.
9711 (queue_comp_unit): Remove reference to
9712 per_cu->dwarf2_per_objfile.
9713 (maybe_queue_comp_unit): Likewise.
9714 (fill_in_sig_entry_from_dwo_entry): Assign new field.
9715 (create_cus_hash_table): Assign new field.
9716
5e22e966
SM
97172020-05-27 Simon Marchi <simon.marchi@efficios.com>
9718
9719 * dwarf2/read.c: Replace
9720 dwarf2_cu->per_cu->dwarf2_per_objfile references with
9721 dwarf2_cu->per_objfile throughout.
9722
97a1449a
SM
97232020-05-27 Simon Marchi <simon.marchi@efficios.com>
9724
9725 * dwarf2/read.c (dw2_do_instantiate_symtab): Add per_objfile
9726 parameter, don't use per_cu->dwarf2_per_objfile.
9727 (dw2_instantiate_symtab): Likewise.
9728 (dw2_find_last_source_symtab): Update.
9729 (dw2_map_expand_apply): Update.
9730 (dw2_lookup_symbol): Update.
9731 (dw2_expand_symtabs_for_function): Update.
9732 (dw2_expand_all_symtabs): Update.
9733 (dw2_expand_symtabs_with_fullname): Update.
9734 (dw2_expand_symtabs_matching_one): Add per_objfile parameter,
9735 don't use per_cu->dwarf2_per_objfile.
9736 (dw2_expand_marked_cus): Update.
9737 (dw2_find_pc_sect_compunit_symtab): Update.
9738 (dw2_debug_names_lookup_symbol): Update.
9739 (dw2_debug_names_expand_symtabs_for_function): Update.
9740 (dw2_debug_names_map_matching_symbols): Update.
9741 (dwarf2_psymtab::expand_psymtab): Update.
9742
9e021579
SM
97432020-05-27 Simon Marchi <simon.marchi@efficios.com>
9744
9745 * dwarf2/read.c (struct dwarf2_cu) <dwarf2_cu>: Add parameter.
9746 <per_objfile>: New member.
9747 (class cutu_reader) <init_tu_and_read_dwo_dies>: Add parameter.
9748 (cutu_reader::init_tu_and_read_dwo_dies): Add parameter, update
9749 call to dwarf2_cu.
9750 (cutu_reader::cutu_reader): Update.
9751 (dwarf2_cu::dwarf2_cu): Add parameter, initialize per_objfile.
9752
ae090bdb
SM
97532020-05-27 Simon Marchi <simon.marchi@efficios.com>
9754
9755 * dwarf2/read.h (struct dwarf2_per_bfd) <die_type_hash>: Move to
9756 struct dwarf2_per_objfile.
9757 (struct dwarf2_per_objfile) <die_type_hash>: Move from struct
9758 dwarf2_per_bfd.
9759 * dwarf2/read.c (set_die_type): Update.
9760 (get_die_type_at_offset): Update.
9761
af758d11
SM
97622020-05-27 Tom Tromey <tom@tromey.com>
9763 Simon Marchi <simon.marchi@efficios.com>
9764
9765 * dwarf2/read.h (struct dwarf2_per_bfd) <num_psymtabs>: New
9766 method.
9767 (struct dwarf2_per_objfile) <resize_symtabs, symtab_set_p,
9768 get_symtab, set_symtab>: New methods.
9769 <m_symtabs>: New field.
9770 (struct dwarf2_psymtab): Derive from partial_symtab.
9771 <readin_p, get_compunit_symtab>: Declare methods.
9772 * dwarf2/read.c (dwarf2_per_objfile::symtab_set_p,
9773 dwarf2_per_objfile::get_symtab, dwarf2_per_objfile::set_symtab):
9774 New methods.
9775 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Remove.
9776 (dw2_do_instantiate_symtab, dw2_instantiate_symtab)
9777 (dw2_map_expand_apply, dw2_map_symtabs_matching_filename)
9778 (dw2_symtab_iter_next, dw2_print_stats)
9779 (dw2_expand_symtabs_with_fullname)
9780 (dw2_expand_symtabs_matching_one)
9781 (dw_expand_symtabs_matching_file_matcher)
9782 (dw2_find_pc_sect_compunit_symtab, dw2_map_symbol_filenames)
9783 (dw2_debug_names_iterator::next)
9784 (dw2_debug_names_map_matching_symbols)
9785 (fill_in_sig_entry_from_dwo_entry, dwarf2_psymtab::read_symtab)
9786 (process_queue, dwarf2_psymtab::expand_psymtab): Update.
9787 (dwarf2_psymtab::readin_p, dwarf2_psymtab::get_compunit_symtab):
9788 New methods.
9789 (get_compunit_symtab, process_full_comp_unit)
9790 (process_full_type_unit): Update.
9791 (dwarf2_build_psymtabs, dwarf2_initialize_objfile, add_type_unit): Call
9792
5989a64e
SM
97932020-05-27 Simon Marchi <simon.marchi@polymtl.ca>
9794
9795 * dwarf2/read.h (dwarf2_per_objfile): Rename to dwarf2_per_bfd,
9796 then introduce a new dwarf2_per_objfile type.
9797 <read_line_string>: Move to the new dwarf2_per_objfile type.
9798 <objfile>: Likewise.
9799 (dwarf2_per_bfd): Rename dwarf2_per_objfile to this.
9800 * dwarf2/read.c: Replace references to dwarf2_per_objfile with
9801 dwarf2_per_objfile->per_bfd.
9802 (dwarf2_per_objfile::dwarf2_per_objfile): Rename to...
9803 (dwarf2_per_bfd::dwarf2_per_bfd): ... this.
9804 (dwarf2_per_objfile::free_cached_comp_units): Rename to...
9805 (dwarf2_per_bfd::free_cached_comp_units): ... this.
9806 (dwarf2_has_info): Allocate dwarf2_per_bfd.
9807 (dwarf2_per_objfile::locate_sections): Rename to...
9808 (dwarf2_per_bfd::locate_sections): ... this.
9809 (dwarf2_per_objfile::get_cutu): Rename to...
9810 (dwarf2_per_bfd::get_cutu): ... this.
9811 (dwarf2_per_objfile::get_cu): Rename to...
9812 (dwarf2_per_bfd::get_cu): ... this.
9813 (dwarf2_per_objfile::get_tu): Rename to...
9814 (dwarf2_per_bfd::get_tu): ... this.
9815 (dwarf2_per_objfile::allocate_per_cu): Rename to...
9816 (dwarf2_per_bfd::allocate_per_cu): ... this.
9817 (dwarf2_per_objfile::allocate_signatured_type): Rename to...
9818 (dwarf2_per_bfd::allocate_signatured_type): ... this.
9819 (get_gdb_index_contents_ftype): Change parameter from
9820 dwarf2_per_objfile to dwarf2_per_bfd.
9821 * dwarf2/macro.c, dwarf2/index-write.c: Replace references to
9822 dwarf2_per_objfile with dwarf2_per_objfile->per_bfd.
9823
a50264ba
TT
98242020-05-27 Tom Tromey <tom@tromey.com>
9825 Simon Marchi <simon.marchi@efficios.com>
9826
9827 * dwarf2/loc.c (struct piece_closure) <per_objfile>: New member.
9828 (allocate_piece_closure): Set "per_objfile" member.
9829 (dwarf2_find_location_expression, dwarf2_locexpr_baton_eval)
9830 (locexpr_describe_location, loclist_describe_location): Use new
9831 member.
9832 * dwarf2/read.c (read_call_site_scope)
9833 (mark_common_block_symbol_computed, attr_to_dynamic_prop)
9834 (dwarf2_const_value_attr, dwarf2_fetch_die_loc_sect_off)
9835 (fill_in_loclist_baton, dwarf2_symbol_mark_computed,
9836 handle_data_member_location): Set per_objfile member.
9837 * dwarf2/loc.h (struct dwarf2_locexpr_baton) <per_objfile>: New
9838 member.
9839 (struct dwarf2_loclist_baton) <per_objfile>: New member.
9840
d3473f0c
TT
98412020-05-27 Tom Tromey <tom@tromey.com>
9842
9843 * dwarf2/read.h (struct dwarf2_per_objfile) <allocate_per_cu,
9844 allocate_signatured_type>: Declare new methods.
9845 <m_num_psymtabs>: New member.
9846 (struct dwarf2_per_cu_data) <index>: New member.
9847 * dwarf2/read.c (dwarf2_per_objfile::allocate_per_cu)
9848 (dwarf2_per_objfile::allocate_signatured_type): New methods.
9849 (create_cu_from_index_list): Use allocate_per_cu.
9850 (create_signatured_type_table_from_index)
9851 (create_signatured_type_table_from_debug_names)
9852 (create_debug_type_hash_table, add_type_unit)
9853 (read_comp_units_from_section): Use allocate_signatured_type.
9854
5717c425
TT
98552020-05-27 Tom Tromey <tom@tromey.com>
9856
9857 * psymtab.c (partial_map_expand_apply)
9858 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
9859 (psym_lookup_global_symbol_language)
9860 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
9861 (psym_print_stats, psym_expand_symtabs_for_function)
9862 (psym_map_symbol_filenames, psym_map_matching_symbols)
9863 (psym_expand_symtabs_matching)
9864 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
9865 (maintenance_check_psymtabs): Update.
9866 * psympriv.h (struct partial_symtab) <readin_p,
9867 get_compunit_symtab>: Add objfile parameter.
9868 (struct standard_psymtab) <readin_p, get_compunit_symtab>:
9869 Likewise.
9870 * dwarf2/read.c (struct dwarf2_include_psymtab) <readin_p,
9871 get_compunit_symtab>: Likewise.
9872 (dwarf2_psymtab::expand_psymtab): Pass objfile argument.
9873
45940949
TT
98742020-05-27 Tom Tromey <tom@tromey.com>
9875
9876 * dwarf2/read.h (struct dwarf2_per_objfile) <obstack>: New
9877 member.
9878 * dwarf2/read.c (delete_file_name_entry): Fix comment.
9879 (create_cu_from_index_list)
9880 (create_signatured_type_table_from_index)
9881 (create_signatured_type_table_from_debug_names)
9882 (dw2_get_file_names_reader, dwarf2_initialize_objfile)
9883 (dwarf2_create_include_psymtab)
9884 (create_debug_type_hash_table, add_type_unit)
9885 (create_type_unit_group, read_comp_units_from_section)
9886 (dwarf2_compute_name, create_cus_hash_table)
9887 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
9888 (create_dwo_unit_in_dwp_v2, open_and_init_dwp_file): Use new
9889 obstack.
9890 (dw2_get_real_path): Likewise. Change argument to
9891 dwarf2_per_objfile.
9892
f8c6d152
LM
98932020-05-27 Luis Machado <luis.machado@linaro.org>
9894
9895 PR tdep/26000
9896 * arm-tdep.c (thumb_analyze_prologue): Fix instruction matching
9897 for ldrd (immediate).
9898
e98d2e6d
PW
98992020-05-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9900
9901 * command.h: Add comment giving the name of class_tui.
9902 * cli/cli-cmds.c (_initialize_cli_cmds): If TUI defined,
9903 create the fake command for the help for class_tui.
9904
53a47a3e
TT
99052020-05-26 Tom Tromey <tromey@adacore.com>
9906
9907 * ada-lang.c (ada_print_array_index): Change type. Call val_atr.
9908 (ada_value_ptr_subscript): Don't call pos_atr on the lower bound.
9909 (val_atr): New function.
9910 (value_val_atr): Use it.
9911 * ada-valprint.c (print_optional_low_bound): Change low bound
9912 handling for enums.
9913 (val_print_packed_array_elements): Don't call discrete_position.
9914 * gdbtypes.c (get_discrete_bounds) <TYPE_CODE_RANGE>: Call
9915 discrete_position for enum types.
9916 * language.c (default_print_array_index): Change type.
9917 * language.h (struct language_defn) <la_print_array_index>: Add
9918 index_type parameter, change type of index_value.
9919 (LA_PRINT_ARRAY_INDEX): Add index_type parameter.
9920 (default_print_array_index): Update.
9921 * valprint.c (maybe_print_array_index): Don't call
9922 value_from_longest. Update.
9923 (value_print_array_elements): Don't call discrete_position.
9924
0bc2354b
TT
99252020-05-26 Tom Tromey <tromey@adacore.com>
9926
9927 * ada-lang.c (value_val_atr): Handle TYPE_CODE_RANGE.
9928 * gdbtypes.c (discrete_position): Handle TYPE_CODE_RANGE.
9929
1218a4bf
CDA
99302020-05-25 Cristiano De Alti <cristiano_dealti@hotmail.com>
9931
9932 PR gdb/13519
9933 * avr-tdep.c (avr_integer_to_address): Return data or code
9934 address accordingly to the second 'type' argument of the
9935 function.
9936
92651b1d
MW
99372020-05-25 Michael Weghorn <m.weghorn@posteo.de>
9938
9939 * infcmd.c, inferior.h: (construct_inferior_arguments):
9940 Moved function from here to gdbsupport/common-inferior.{h,cc}
9941
0a4f5f8c
TT
99422020-05-23 Tom Tromey <tom@tromey.com>
9943
9944 Revert commit eca1f90c:
9945 * NEWS: Remove entry for completion styling.
9946 * completer.c (_rl_completion_prefix_display_length): Move
9947 declaration later.
9948 (gdb_fnprint): Revert.
9949 (gdb_display_match_list_1): Likewise.
9950 * cli/cli-style.c (completion_prefix_style)
9951 (completion_difference_style, completion_suffix_style): Remove.
9952 (_initialize_cli_style): Revert.
9953 * cli/cli-style.h (completion_prefix_style)
9954 (completion_difference_style, completion_suffix_style): Don't
9955 declare.
9956
e08bd6c5
PA
99572020-05-24 Pedro Alves <palves@redhat.com>
9958
9959 * symtab.c (completion_list_add_name): Return boolean indication
9960 of whether the symbol matched.
9961 (completion_list_add_symbol): Don't try to remove C++ aliases if
9962 the symbol didn't match in the first place.
9963 * symtab.h (completion_list_add_name): Return bool.
9964
ceacbf6e
SM
99652020-05-23 Simon Marchi <simon.marchi@polymtl.ca>
9966
9967 * gdbtypes.h (TYPE_FIELD): Remove. Replace all uses with
9968 type::field.
9969
26f16254
JB
99702020-05-23 Joel Brobecker <brobecker@adacore.com>
9971
9972 GDB 9.2 released.
9973
eca1f90c
TT
99742020-05-23 Tom Tromey <tom@tromey.com>
9975
9976 * NEWS: Add entry for completion styling.
9977 * completer.c (_rl_completion_prefix_display_length): Move
9978 declaration earlier.
9979 (gdb_fnprint): Use completion_style.
9980 (gdb_display_match_list_1): Likewise.
9981 * cli/cli-style.c (completion_prefix_style)
9982 (completion_difference_style, completion_suffix_style): New
9983 globals.
9984 (_initialize_cli_style): Register new globals.
9985 * cli/cli-style.h (completion_prefix_style)
9986 (completion_difference_style, completion_suffix_style): Declare.
9987
51e2cfa2
PA
99882020-05-23 Pedro Alves <palves@redhat.com>
9989
9990 * utils.c: Include "gdbsupport/gdb-safe-ctype.h".
9991 (parse_escape): Use ISDIGIT instead of isdigit.
9992 (puts_debug): Use gdb_isprint instead of isprint.
9993 (fprintf_symbol_filtered): Use ISALNUM instead of isalnum.
9994 (cp_skip_operator_token, skip_ws, strncmp_iw_with_mode): Use
9995 ISSPACE instead of isspace.
9996 (strncmp_iw_with_mode): Use TOLOWER instead of tolower and ISSPACE
9997 instead of isspace.
9998 (strcmp_iw_ordered): Use ISSPACE instead of isspace.
9999 (string_to_core_addr): Use TOLOWER instead of tolower, ISXDIGIT
10000 instead of isxdigit and ISDIGIT instead of isdigit.
10001
80fc5e77
SM
100022020-05-22 Simon Marchi <simon.marchi@efficios.com>
10003
10004 * gdbtypes.h (struct type) <field>: New method.
10005 (TYPE_FIELDS): Remove, replace all uses with either type::fields
10006 or type::field.
10007
3cabb6b0
SM
100082020-05-22 Simon Marchi <simon.marchi@efficios.com>
10009
10010 * gdbtypes.h (struct type) <fields, set_fields>: New methods.
10011 (TYPE_FIELDS): Use type::fields. Change all call sites that
10012 modify the propery to use type::set_fields instead.
10013
1f704f76
SM
100142020-05-22 Simon Marchi <simon.marchi@efficios.com>
10015
10016 * gdbtypes.h (TYPE_NFIELDS): Remove. Change all cal sites to use
10017 type::num_fields instead.
10018
5e33d5f4
SM
100192020-05-22 Simon Marchi <simon.marchi@efficios.com>
10020
10021 * gdbtypes.h (struct type) <num_fields, set_num_fields>: New
10022 methods.
10023 (TYPE_NFIELDS): Use type::num_fields. Change all call sites
10024 that modify the number of fields to use type::set_num_fields
10025 instead.
10026
9392ebb3
TT
100272020-05-22 Tom Tromey <tromey@adacore.com>
10028
10029 * compile/compile-object-load.h (munmap_list_free): Don't
10030 declare.
10031
7c13f4e8
AB
100322020-05-22 Andrew Burgess <andrew.burgess@embecosm.com>
10033
10034 * annotate.c (annotate_source_line): Update return type, add call
10035 to update current symtab and line.
10036 * annotate.h (annotate_source_line): Update return type, and
10037 extend header comment.
10038 * source.c (info_line_command): Check annotation_level before
10039 calling annotate_source_line.
10040 * stack.c (print_frame_info): If calling annotate_source_line
10041 returns true, then don't print any other source line information.
10042
aa370940
SM
100432020-05-21 Simon Marchi <simon.marchi@efficios.com>
10044
10045 * lm32-tdep.c (lm32_register_reggroup_p): Fix condition.
10046
84d53fa9
SM
100472020-05-21 Simon Marchi <simon.marchi@efficios.com>
10048
10049 * coffread.c (patch_type): Remove NULL check before xfree.
10050 * corefile.c (set_gnutarget): Likewise.
10051 * cp-abi.c (set_cp_abi_as_auto_default): Likewise.
10052 * exec.c (build_section_table): Likewise.
10053 * remote.c (remote_target::pass_signals): Likewise.
10054 * utils.c (n_spaces): Likewise.
10055 * cli/cli-script.c (document_command): Likewise.
10056 * i386-windows-tdep.c (core_process_module_section): Likewise.
10057 * linux-fork.c (struct fork_info) <~fork_info>: Likewise.
10058
9d428aae
SM
100592020-05-20 Simon Marchi <simon.marchi@efficios.com>
10060
10061 * symfile.c (reread_symbols): Clear objfile's section_offsets
10062 vector and section indices, re-compute them by calling
10063 sym_offsets.
10064
250106a7
TT
100652020-05-20 Tom Tromey <tromey@adacore.com>
10066
10067 * ada-lang.c (bound_name, MAX_ADA_DIMENS): Remove.
ec16513e 10068 (desc_one_bound, desc_index_type): Compute field name.
250106a7 10069
9a0bacfb
TV
100702020-05-20 Tom de Vries <tdevries@suse.de>
10071
10072 PR symtab/25833
10073 * dwarf2/read.c (dw2_map_matching_symbols): Handle .gdb_index.
10074
7b958a48
AM
100752020-05-20 Alan Modra <amodra@gmail.com>
10076
10077 PR 25993
10078 * solib-darwin.c (darwin_bfd_open): Don't strdup pathname for
10079 bfd_set_filename.
10080 * solib-aix.c (solib_aix_bfd_open): Use std::string for name
10081 passed to bfd_set_filename.
10082 * symfile-mem.c (add_vsyscall_page): Likewise for string
10083 passed to symbol_file_add_from_memory.
10084 (symbol_file_add_from_memory): Make name param a const char* and
10085 don't strdup.
10086
c7e97679
AM
100872020-05-20 Alan Modra <amodra@gmail.com>
10088
10089 * coff-pe-read.c (read_pe_exported_syms): Use bfd_get_filename
10090 rather than accessing bfd->filename directly.
10091 * dtrace-probe.c (dtrace_static_probe_ops::get_probes): Likewise,
10092 and use bfd_section_name.
10093 * dwarf2/frame.c (decode_frame_entry): Likewise.
10094 * exec.c (exec_set_section_address): Likewise.
10095 * solib-aix.c (solib_aix_bfd_open): Likewise.
10096 * stap-probe.c (get_stap_base_address): Likewise.
10097 * symfile.c (reread_symbols): Likewise.
10098
563c591b
TT
100992020-05-19 Tom Tromey <tromey@adacore.com>
10100
10101 * sparc64-tdep.c (adi_tag_fd): Update call to target_fileio_open.
10102
f408d82c
SM
101032020-05-19 Simon Marchi <simon.marchi@efficios.com>
10104
10105 * dwarf2/read.c (quirk_rust_enum): Allocate enough fields.
10106
98c59b52
PA
101072020-05-19 Pedro Alves <palves@redhat.com>
10108
10109 * NEWS (set exec-file-mismatch): Adjust entry.
10110 * exec.c: Include "build-id.h".
10111 (validate_exec_file): Try to match build IDs instead of filenames.
10112 * gdb_bfd.c (struct gdb_bfd_open_closure): New.
10113 (gdb_bfd_iovec_fileio_open): Adjust to use gdb_bfd_open_closure
10114 and pass down 'warn_if_slow'.
10115 (gdb_bfd_open): Add 'warn_if_slow' parameter. Use
10116 gdb_bfd_open_closure to pass it down.
10117 * gdb_bfd.h (gdb_bfd_open): Add 'warn_if_slow' parameter.
10118
4111f652
PA
101192020-05-19 Pedro Alves <palves@redhat.com>
10120
10121 * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust.
10122 * target.c (target_fileio_open_1): Rename to target_fileio_open
10123 and make extern. Use bool.
10124 (target_fileio_open, target_fileio_open_warn_if_slow): Delete.
10125 (target_fileio_read_alloc_1): Adjust.
10126 * target.h (target_fileio_open): Add 'warn_if_slow' parameter.
10127 (target_fileio_open_warn_if_slow): Delete declaration.
10128
ad80db5b
PA
101292020-05-19 Pedro Alves <palves@redhat.com>
10130
10131 * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
10132 Adjust all callers.
10133
1d6ce4d3
YS
101342020-05-19 Yoshinori Sato <ysato@users.sourceforge.jp>
10135
10136 * h8300-tdep.c (h8300_is_argument_spill): Change how we check
10137 whether disp is negative.
10138
9005fbbb
SM
101392020-05-19 Simon Marchi <simon.marchi@efficios.com>
10140
10141 * symfile.h (struct symfile_segment_data)
10142 <~symfile_segment_data>: Remove.
10143 <segment_info>: Change to std::vector.
10144 * symfile.c (default_symfile_segments): Update.
10145 * elfread.c (elf_symfile_segments): Update.
10146
68b888ff
SM
101472020-05-19 Simon Marchi <simon.marchi@efficios.com>
10148
10149 * symfile.h (struct symfile_segment_data) <struct segment>: New.
10150 <segments>: New.
10151 <segment_bases, segment_sizes>: Remove.
10152 * symfile.c (default_symfile_segments): Update.
10153 * elfread.c (elf_symfile_segments): Update.
10154 * remote.c (remote_target::get_offsets): Update.
10155 * solib-target.c (solib_target_relocate_section_addresses):
10156 Update.
10157
62982abd
SM
101582020-05-19 Simon Marchi <simon.marchi@efficios.com>
10159
10160 * symfile.h (struct symfile_segment_data): Initialize fields.
10161 <~symfile_segment_data>: Add.
10162 (symfile_segment_data_up): New.
10163 (struct sym_fns) <sym_segments>: Return a
10164 symfile_segment_data_up.
10165 (default_symfile_segments): Return a symfile_segment_data_up.
10166 (free_symfile_segment_data): Remove.
10167 (get_symfile_segment_data): Return a symfile_segment_data_up.
10168 * symfile.c (default_symfile_segments): Likewise.
10169 (get_symfile_segment_data): Likewise.
10170 (free_symfile_segment_data): Remove.
10171 (symfile_find_segment_sections): Update.
10172 * elfread.c (elf_symfile_segments): Return a
10173 symfile_segment_data_up.
10174 * remote.c (remote_target::get_offsets): Update.
10175 * solib-target.c (solib_target_relocate_section_addresses):
10176 Update.
10177 * symfile-debug.c (debug_sym_segments): Return a
10178 symfile_segment_data_up.
10179
7f204339
RO
101802020-05-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10181
e52a0f1b
RO
10182 PR build/25981
10183 * i386-sol2-nat.c [PR_MODEL_NATIVE != PR_MODEL_LP64] (regmap):
10184 Hardcode register numbers.
10185
7f204339
RO
10186 PR build/25981
10187 * procfs.c [(__i386__ || __x86_64__) && sun] (proc_get_LDT_entry,
10188 procfs_find_LDT_entry): Remove.
10189 * procfs.h [(__i386__ || __x86_64__) && sun] (struct ssd,
10190 procfs_find_LDT_entry): Remove.
10191 * sol-thread.c [(__i386__ || __x86_64__) && sun] (ps_lgetLDT):
10192 Remove.
10193
7f32a4d5
PA
101942020-05-17 Pedro Alves <palves@redhat.com>
10195 Andrew Burgess <andrew.burgess@embecosm.com>
10196 Keno Fischer <keno@juliacomputing.com>
10197
10198 PR gdb/25741
10199 * breakpoint.c (build_target_condition_list): Update comments.
10200 (build_target_command_list): Update comments and skip matching
10201 locations.
10202 (insert_bp_location): Move "set breakpoint auto-hw on" handling to
10203 a separate function. Simplify "set breakpoint auto-hw off"
10204 handling.
10205 (insert_breakpoints): Update comment.
10206 (tracepoint_locations_match): New parameter. For breakpoints,
10207 compare location types too, if the caller wants to.
10208 (handle_automatic_hardware_breakpoints): New functions.
10209 (bp_location_is_less_than): Also sort by location type and
10210 hardware breakpoint length.
10211 (update_global_location_list): Handle "set breakpoint auto-hw on"
10212 here.
10213 (update_breakpoint_locations): Ask breakpoint_locations_match to
10214 ignore location types.
10215
7d93a1e0
SM
102162020-05-16 Simon Marchi <simon.marchi@efficios.com>
10217
10218 * gdbtypes.h (TYPE_NAME): Remove. Change all cal sites to use
10219 type::name instead.
10220
d0e39ea2
SM
102212020-05-16 Simon Marchi <simon.marchi@efficios.com>
10222
10223 * gdbtypes.h (struct type) <name, set_name>: New methods.
10224 (TYPE_CODE): Use type::name. Change all call sites used to set
10225 the name to use type::set_name instead.
10226
2dab0c7b
TT
102272020-05-16 Tom Tromey <tom@tromey.com>
10228
10229 * top.c (quit_force): Update.
10230 * infrun.c (handle_no_resumed): Update.
10231 * top.h (all_uis): New function.
10232 (ALL_UIS): Remove.
10233
59f7bd8d
SM
102342020-05-16 Simon Marchi <simon.marchi@efficios.com>
10235
10236 * mips-linux-tdep.c (mips_linux_in_dynsym_stub): Fix condition.
10237
9bf058f0
PA
102382020-05-16 Pedro Alves <palves@redhat.com>
10239
10240 * ia64-linux-nat.c
10241 (ia64_linux_nat_target) <enable_watchpoints_in_psr(ptid_t)>:
10242 Declare method.
10243 (enable_watchpoints_in_psr): Now a method of ia64_linux_nat_target.
10244
8f86ae1a
SM
102452020-05-15 Simon Marchi <simon.marchi@efficios.com>
10246
10247 * sparc64-tdep.c (adi_stat_t): Remove typedef (leaving struct).
10248 (sparc64_adi_info): Likewise.
10249
d6bc0792
TT
102502020-05-15 Tom Tromey <tom@tromey.com>
10251
10252 * symtab.c (lookup_language_this, lookup_symbol_aux): Use
10253 block_objfile.
10254 (lookup_objfile_from_block): Remove.
10255 (lookup_symbol_in_block, lookup_symbol_in_static_block)
10256 (lookup_global_symbol): Use block_objfile.
10257 * symtab.h (lookup_objfile_from_block): Don't declare.
10258 * printcmd.c (clear_dangling_display_expressions): Use
10259 block_objfile.
10260 * parse.c (operator_check_standard): Use block_objfile.
10261
8c14c3a3
TT
102622020-05-15 Tom Tromey <tom@tromey.com>
10263
10264 * language.c (language_alloc_type_symbol): Set
10265 SYMBOL_SECTION.
10266 * symtab.c (initialize_objfile_symbol): Remove.
10267 (allocate_symbol): Remove.
10268 (allocate_template_symbol): Remove.
10269 * dwarf2/read.c (fixup_go_packaging): Use "new".
10270 (new_symbol): Use "new".
10271 (read_variable): Don't call initialize_objfile_symbol. Use
10272 "new".
10273 (read_func_scope): Use "new".
10274 * xcoffread.c (process_xcoff_symbol): Don't call
10275 initialize_objfile_symbol.
10276 (SYMBOL_DUP): Remove.
10277 * coffread.c (process_coff_symbol, coff_read_enum_type): Use
10278 "new".
10279 * symtab.h (allocate_symbol, initialize_objfile_symbol)
10280 (allocate_template_symbol): Don't declare.
10281 (struct symbol): Add copy constructor. Change defaults.
10282 * jit.c (finalize_symtab): Use "new".
10283 * ctfread.c (ctf_add_enum_member_cb, new_symbol, ctf_add_var_cb):
10284 Use "new".
10285 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
10286 (common_block_end): Use "new".
10287 * mdebugread.c (parse_symbol): Use "new".
10288 (new_symbol): Likewise.
10289
5b4a1a8d
PW
102902020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10291
10292 * NEWS: Mention changes to help and apropos.
10293
57b4f16e
PW
102942020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10295
10296 * command.h (enum command_class): Improve comments, document
10297 that class_alias is for user-defined aliases, give the class
10298 name for each class, remove unused class_xdb.
10299 * cli/cli-decode.c (add_com_alias): Document THECLASS intended usage.
10300 * breakpoint.c (_initialize_breakpoint): Replace class_alias
10301 by a precise class.
10302 * infcmd.c (_initialize_infcmd): Likewise.
10303 * reverse.c (_initialize_reverse): Likewise.
10304 * stack.c (_initialize_stack): Likewise.
10305 * symfile.c (_initialize_symfile): Likewise.
10306 * tracepoint.c (_initialize_tracepoint): Likewise.
10307
7c05caf7
PW
103082020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10309
10310 * cli/cli-decode.c (apropos_cmd): Produce output for aliases
10311 when their aliased command is traversed.
10312 (help_cmd): Add fput_command_names_styled call to
10313 output command name and aliases when command has an alias.
10314
3b3aaacb
PW
103152020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10316
10317 * cli/cli-decode.h (help_cmd_list): Remove declaration.
10318 * cli/cli-decode.c (help_cmd_list): Declare as static,
10319 remove prefix argument, use bool for recurse arg, rework to show the aliases of
10320 a command together with the command.
10321 (fput_command_name_styled, fput_command_names_styled): New functions.
10322 (print_help_for_command): Remove prefix arg, use bool for recurse arg, use
10323 fput_command_name_styled.
10324 (help_list, help_all): Update callers to remove prefix arg and use bool recurse.
10325 * cli/cli-cmds.c (_initialize_cli_cmds): Update alias_command doc.
10326
7aa1b46f
PW
103272020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10328
10329 * cli/cli-setshow.h (cmd_show_list): Remove prefix argument.
10330 * cli/cli-decode.c (do_show_prefix_cmd): Likewise.
10331 * command.h (cmd_show_list): Likewise.
10332 * dwarf2/index-cache.c (show_index_cache_command): Likewise.
10333 * cli/cli-setshow.c (cmd_show_list): Use the prefix to produce the output. Skip aliases.
10334
89bcba74
PW
103352020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10336
10337 * unittests/command-def-selftests.c (traverse_command_structure):
10338 Verify all commands of a list have the same prefix command and
10339 that only the top cmdlist commands have a null prefix.
10340
3f4d92eb
PW
103412020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10342
10343 * cli/cli-decode.c (lookup_cmd_for_prefix): Return the aliased command
10344 as prefix, not one of its aliases.
10345 (set_cmd_prefix): Remove.
10346 (do_add_cmd): Centralize the setting of the prefix of a command, when
10347 command is defined after its full chain of prefix commands.
10348 (add_alias_cmd): Remove call to set_cmd_prefix, as do_add_cmd does it.
10349 (add_setshow_cmd_full): Likewise.
10350 (update_prefix_field_of_prefixed_commands): New function.
10351 (add_prefix_cmd): Replace non working call to set_cmd_prefix by
10352 update_prefix_field_of_prefixed_commands.
10353 * gdb/remote-fileio.c (initialize_remote_fileio): Use the real
10354 addresses of remote_set_cmdlist and remote_show_cmdlist given
10355 as argument, not the address of an argument.
10356 * gdb/remote-fileio.h (initialize_remote_fileio): Likewise.
10357 * gdb/remote.c (_initialize_remote): Likewise.
10358
0605465f
PW
103592020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10360
10361 * cli/cli-cmds.c (alias_command): Check for an existing alias
10362 using lookup_cmd_composition, as valid_command_p is too strict
10363 and forbids aliases that are the prefix of an existing alias
10364 or command.
10365 * cli/cli-decode.c (lookup_cmd_composition): Ensure a prefix
10366 command is properly recognised as a valid command.
10367
58e6ac70
PW
103682020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10369
10370 * unittests/help-doc-selftests.c: Rename to
10371 unittests/command-def-selftests.c
10372 * unittests/command-def-selftests.c (help_doc_tests): Update some
10373 comments.
10374 (command_structure_tests, traverse_command_structure): New namespace
10375 and function.
10376 (command_structure_invariants_tests): New function.
10377 (_initialize_command_def_selftests) Renamed from
10378 _initialize_help_doc_selftests, register command_structure_invariants
10379 selftest.
10380
a7b9ceb8
PW
103812020-05-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10382
10383 * cli/cli-cmds.c (_initialize_cli_cmds): Define 'info set' as
10384 an alias of 'show'.
10385
b2188a06
JB
103862020-05-15 Joel Brobecker <brobecker@adacore.com>
10387
10388 * ada-lang.h: (ada_is_gnat_encoded_fixed_point_type): Renames
10389 ada_is_fixed_point_type. Update all callers.
10390 (gnat_encoded_fixed_point_delta): Renames ada_delta. Update
10391 all callers.
10392 * ada-lang.c (gnat_encoded_fixed_type_info): Renames fixed_type_info.
10393 Update all callers.
10394 * ada-typeprint.c (print_gnat_encoded_fixed_point_type): Renames
10395 print_fixed_point_type. Update all callers.
10396 * ada-valprint.c (ada_value_print_num): Replace call to
10397 ada_is_fixed_point_type by ada_is_gnat_encoded_fixed_point_type.
10398
a51951c2
KB
103992020-05-14 Kevin Buettner <kevinb@redhat.com>
10400
10401 * nat/linux-btrace.c (btrace_this_cpu): Add check for AMD
10402 processors.
10403 (cpu_supports_bts): Add CV_AMD case.
10404
29d6859f
LM
104052020-05-14 Laurent Morichetti <Laurent.Morichetti@amd.com>
10406 Simon Marchi <simon.marchi@efficios.com>
10407
10408 * infrun.c (stop_all_threads): Collect multiple wait events at
10409 each pass.
10410
78134374
SM
104112020-05-14 Simon Marchi <simon.marchi@efficios.com>
10412
10413 * gdbtypes.h (TYPE_CODE): Remove. Change all call sites to use
10414 type::code instead.
10415
67607e24
SM
104162020-05-14 Simon Marchi <simon.marchi@efficios.com>
10417
10418 * gdbtypes.h (struct type) <code, set_code>: New methods.
10419 (TYPE_CODE): Use type::code. Change all call sites used to set
10420 the code to use type::set_code instead.
10421
a05575d3
TBA
104222020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10423 Tom de Vries <tdevries@suse.de>
10424 Pedro Alves <palves@redhat.com>
10425
10426 PR threads/25478
10427 * infrun.c (stop_all_threads): Do NOT ignore
10428 TARGET_WAITKIND_NO_RESUMED, TARGET_WAITKIND_THREAD_EXITED,
10429 TARGET_WAITKIND_EXITED, TARGET_WAITKIND_SIGNALLED wait statuses
10430 received.
10431 (handle_no_resumed): Remove code handling a live inferior with no
10432 threads.
10433 * remote.c (has_single_non_exited_thread): New.
10434 (remote_target::update_thread_list): Do not delete a thread if is
10435 the last thread of the process.
10436 * thread.c (thread_select): Call delete_exited_threads instead of
10437 prune_threads.
10438
6ad82919
TBA
104392020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10440
10441 * infrun.c (stop_all_threads): Enable/disable thread events of all
10442 targets. Move a debug message denoting the end of the function
10443 into the SCOPED_EXIT block.
10444
d890404b
TBA
104452020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10446
10447 * process-stratum-target.h: Include <set>.
10448 (all_non_exited_process_targets, switch_to_target_no_thread): New
10449 function declarations.
10450 * process-stratum-target.c (all_non_exited_process_targets)
10451 (switch_to_target_no_thread): New function implementations.
10452
293b3ebc
TBA
104532020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10454
10455 * infrun.c (handle_inferior_event): Extract out a piece of code
10456 into...
10457 (mark_non_executing_threads): ...this new function.
10458
7ca9b62a
TBA
104592020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10460
10461 * infrun.c (resume_1): Move a 'regcache_read_pc' call down to first
10462 use.
10463
fc75c28b
TBA
104642020-05-14 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10465
10466 * regcache.c (regcache_read_pc_protected): New function
10467 implementation that returns 0 if the PC cannot read via
10468 'regcache_read_pc'.
10469 * infrun.c (proceed): Call 'regcache_read_pc_protected'
10470 instead of 'regcache_read_pc'.
10471 (keep_going_pass_signal): Ditto.
10472
a89febbd
TT
104732020-05-13 Tom Tromey <tromey@adacore.com>
10474
10475 * ada-lang.c (align_value): Remove.
10476 (ada_template_to_fixed_record_type_1): Use align_up.
10477
f7e23710
TBA
104782020-05-13 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
10479
10480 * async-event.c: Update the copyright year.
10481 * async-event.h: Update the copyright year.
10482
02ff80c2
SM
104832020-05-12 Simon Marchi <simon.marchi@efficios.com>
10484
10485 * objfiles.h (is_addr_in_objfile,
10486 shared_objfile_contains_address_p): Return bool.
10487 * objfile.c (is_addr_in_objfile,
10488 shared_objfile_contains_address_p): Return bool.
10489
4fd6c7e8
TT
104902020-05-11 Tom Tromey <tromey@adacore.com>
10491
10492 * cli/cli-cmds.c (info_command): Restore.
10493 (_initialize_cli_cmds): Use add_prefix_command for "info".
10494 * gdb-gdb.gdb.in: Restore breakpoint on info_command.
10495
5eb68a39
TT
104962020-05-11 Tom Tromey <tromey@adacore.com>
10497
10498 * ada-lang.c (ada_value_primitive_field): Now public.
10499 * ada-lang.h (ada_value_primitive_field): Declare.
10500 * ada-valprint.c (print_field_values): Use
10501 ada_value_primitive_field for wrapper fields.
10502
7666722f
TV
105032020-05-11 Tom de Vries <tdevries@suse.de>
10504
10505 * dwarf2/index-write.c (debug_names::psymbol_tag): Handle
10506 MODULE_DOMAIN.
10507
3ee6bb11
TV
105082020-05-11 Tom de Vries <tdevries@suse.de>
10509
10510 PR symtab/25941
10511 * dwarf2/read.c (create_cus_from_debug_names_list): Initialize CUs
10512 with length 0, if not gdb-produced.
10513 (cutu_reader::cutu_reader): Set CU length to actual length if 0.
10514
43434996
TV
105152020-05-09 Tom de Vries <tdevries@suse.de>
10516
10517 PR gdb/25955
10518 * break-catch-throw.c (check_status_exception_catchpoint): Fix name
10519 calculation.
10520
2f78cffc
TT
105212020-05-09 Tom Tromey <tom@tromey.com>
10522
10523 * top.c (server_command): Now bool.
10524 * top.h (server_command): Now bool.
10525
4f7bc5ed
TT
105262020-05-08 Tom Tromey <tromey@adacore.com>
10527
10528 * dwarf2/read.c (read_lexical_block_scope): Don't process a DIE
10529 already being processed.
10530
8be4b118
TT
105312020-05-08 Tom Tromey <tom@tromey.com>
10532
10533 * printcmd.c (struct display) <next>: Remove.
10534 <display>: New constructor.
10535 <exp_string>: Now a std::string.
10536 <enabled_p>: Now a bool.
10537 (display_number): Move definition earlier.
10538 (displays): Rename from display_chain. Now a std::vector.
10539 (ALL_DISPLAYS, ALL_DISPLAYS_SAFE): Remove.
10540 (display_command): Update.
10541 (do_one_display, disable_display)
10542 (enable_disable_display_command, do_enable_disable_display):
10543 Update.
10544 (free_display): Remove.
10545 (clear_displays): Rewrite.
10546 (delete_display): Update.
10547 (map_display_numbers): Use function_view. Remove "data"
10548 parameter. Update.
10549 (do_delete_display): Remove.
10550 (undisplay_command): Update.
10551 (do_one_display, do_displays, disable_display)
10552 (info_display_command): Update.
10553 (do_enable_disable_display): Remove.
10554 (enable_disable_display_command)
10555 (clear_dangling_display_expressions): Update.
10556
94c93c35
TT
105572020-05-08 Tom Tromey <tom@tromey.com>
10558
10559 * symtab.c (set_symbol_cache_size)
10560 (maintenance_print_symbol_cache, maintenance_flush_symbol_cache)
10561 (maintenance_print_symbol_cache_statistics): Update.
10562 * symmisc.c (print_symbol_bcache_statistics)
10563 (print_objfile_statistics, maintenance_print_objfiles)
10564 (maintenance_info_symtabs, maintenance_check_symtabs)
10565 (maintenance_expand_symtabs, maintenance_info_line_tables):
10566 Update.
10567 * symfile-debug.c (set_debug_symfile): Update.
10568 * source.c (forget_cached_source_info): Update.
10569 * python/python.c (gdbpy_progspaces): Update.
10570 * psymtab.c (maintenance_info_psymtabs): Update.
10571 * probe.c (parse_probes): Update.
10572 * linespec.c (iterate_over_all_matching_symtabs)
10573 (collect_symtabs_from_filename, search_minsyms_for_name): Update.
10574 * guile/scm-progspace.c (gdbscm_progspaces): Update.
10575 * exec.c (exec_target::close): Update.
10576 * ada-tasks.c (ada_tasks_new_objfile_observer): Update.
10577 * breakpoint.c (print_one_breakpoint_location)
10578 (create_longjmp_master_breakpoint)
10579 (create_std_terminate_master_breakpoint): Update.
10580 * progspace.c (program_spaces): Now a std::vector.
10581 (maybe_new_address_space): Update.
10582 (add_program_space): Remove.
10583 (program_space::program_space): Update.
10584 (remove_program_space): Update.
10585 (number_of_program_spaces): Remove.
10586 (print_program_space, update_address_spaces): Update.
10587 * progspace.h (program_spaces): Change type.
10588 (ALL_PSPACES): Remove.
10589 (number_of_program_spaces): Don't declare.
10590 (struct program_space) <next>: Remove.
10591
a1fd1ac9
TT
105922020-05-08 Tom Tromey <tom@tromey.com>
10593
10594 * mi/mi-cmd-file.c (mi_cmd_file_list_shared_libraries): Update.
10595 * solib-svr4.c (svr4_fetch_objfile_link_map): Update.
10596 (enable_break): Update.
10597 * solib-frv.c (frv_fdpic_find_global_pointer): Update.
10598 (frv_fdpic_find_canonical_descriptor): Update.
10599 (frv_fetch_objfile_link_map): Update.
10600 * progspace.c (program_space::free_all_objfiles): Update.
10601 (program_space::solibs): New method.
10602 * progspace.h (struct program_space) <solibs>: New method.
10603 * solist.h (master_so_list): Don't declare.
10604 (ALL_SO_LIBS): Remove.
10605 * solib.h (so_list_head): Remove.
10606 (update_solib_list): Update comment.
10607 * solib.c (master_so_list): Remove.
10608 (solib_used, update_solib_list, solib_add)
10609 (info_sharedlibrary_command, clear_solib)
10610 (reload_shared_libraries_1, remove_user_added_objfile): Update.
10611
38eae084
TT
106122020-05-08 Tom Tromey <tom@tromey.com>
10613
10614 * extension.c (extension_languages): Now a std::array.
10615 (ALL_EXTENSION_LANGUAGES): Remove.
10616 (get_ext_lang_defn, get_ext_lang_of_file)
10617 (eval_ext_lang_from_control_command): Update.
10618 (finish_ext_lang_initialization)
10619 (auto_load_ext_lang_scripts_for_objfile)
10620 (ext_lang_type_printers::ext_lang_type_printers)
10621 (apply_ext_lang_type_printers)
10622 (ext_lang_type_printers::~ext_lang_type_printers)
10623 (apply_ext_lang_val_pretty_printer, apply_ext_lang_frame_filter)
10624 (preserve_ext_lang_values, get_breakpoint_cond_ext_lang)
10625 (breakpoint_ext_lang_cond_says_stop, check_quit_flag)
10626 (get_matching_xmethod_workers, ext_lang_colorize)
10627 (ext_lang_before_prompt): Update.
10628 (ALL_ENABLED_EXTENSION_LANGUAGES): Remove.
10629
596dc4ad
TT
106302020-05-08 Tom Tromey <tom@tromey.com>
10631
10632 * symtab.h (class demangle_result_storage) <set_malloc_ptr>: New
10633 overload.
10634 <swap_string, m_string>: Remove.
10635 * symtab.c (demangle_for_lookup, completion_list_add_symbol):
10636 Update.
10637 * stabsread.c (define_symbol, read_type): Update.
10638 * linespec.c (find_linespec_symbols): Update.
10639 * gnu-v3-abi.c (gnuv3_get_typeid): Update.
10640 * dwarf2/read.c (dwarf2_canonicalize_name): Update.
10641 * dbxread.c (read_dbx_symtab): Update.
10642 * cp-support.h (cp_canonicalize_string_full)
10643 (cp_canonicalize_string, cp_canonicalize_string_no_typedefs):
10644 Return unique_xmalloc_ptr.
10645 * cp-support.c (inspect_type): Update.
10646 (cp_canonicalize_string_full): Return unique_xmalloc_ptr.
10647 (cp_canonicalize_string_no_typedefs, cp_canonicalize_string):
10648 Likewise.
10649 * c-typeprint.c (print_name_maybe_canonical): Update.
10650 * break-catch-throw.c (check_status_exception_catchpoint):
10651 Update.
10652
bf4cb9be
TV
106532020-05-08 Tom de Vries <tdevries@suse.de>
10654
10655 * infrun.c (follow_fork): Copy current_line and current_symtab to
10656 child thread.
10657
a1b68f28
SM
106582020-05-07 Simon Marchi <simon.marchi@efficios.com>
10659
10660 * async-event.c (struct async_signal_handler, struct
10661 async_event_handler): Reformat, remove typedef.
10662
98d48915
SM
106632020-05-07 Simon Marchi <simon.marchi@efficios.com>
10664
10665 * gdbtypes.h (TYPE_DYN_PROP_LIST): Remove. Update all users
10666 access thistype->main_type->dyn_prop_list directly.
10667
7aa91313
SM
106682020-05-07 Simon Marchi <simon.marchi@efficios.com>
10669
10670 * gdbtypes.h (struct type) <remove_dyn_prop>: New method.
10671 (remove_dyn_prop): Remove. Update all users to use
10672 type::remove_dyn_prop.
10673 * gdbtypes.c (remove_dyn_prop): Rename to...
10674 (type::remove_dyn_prop): ... this.
10675
5c54719c
SM
106762020-05-07 Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
10677
10678 * gdbtypes.h (struct type) <add_dyn_prop>: New method.
10679 (add_dyn_prop): Remove. Update all users to use
10680 type::add_dyn_prop.
10681 * gdbtypes.c (add_dyn_prop): Rename to...
10682 (type::add_dyn_prop): ... this.
10683
24e99c6c
SM
106842020-05-07 Simon Marchi <simon.marchi@efficios.com>
10685
10686 * gdbtypes.h (struct type) <get_dyn_prop>: New method.
10687 (get_dyn_prop): Remove. Update all users to use
10688 type::dyn_prop.
10689 * gdbtypes.c (get_dyn_prop): Rename to...
10690 (type::dyn_prop): ... this.
10691
0d4bf016
SM
106922020-05-06 Simon Marchi <simon.marchi@efficios.com>
10693
10694 * gdbtypes.h (struct main_type) <flag_static>: Remove.
10695
ac4a4f1c
SM
106962020-05-06 Simon Marchi <simon.marchi@efficios.com>
10697
10698 * amd64-tdep.c (amd64_analyze_prologue): Check for `endbr64`
10699 instruction, skip it if it's there.
10700
a3bbacc1
SM
107012020-05-05 Simon Marchi <simon.marchi@efficios.com>
10702
10703 * gdbtypes.h (struct main_type) <flag_incomplete>: Remove.
10704
c3236f84
SM
107052020-05-04 Simon Marchi <simon.marchi@efficios.com>
10706
10707 * gdbtypes.h (TYPE_INCOMPLETE): Remove.
10708 * gdbtypes.c (recursive_dump_type): Remove use of
10709 TYPE_INCOMPLETE.
10710
3b6acaee
TT
107112020-05-03 Tom Tromey <tom@tromey.com>
10712
10713 * breakpoint.c (catch_command, tcatch_command): Remove.
10714 (_initialize_breakpoint): Use add_basic_prefix_cmd,
10715 add_show_prefix_cmd.
10716 (set_breakpoint_cmd, show_breakpoint_cmd): Remove
10717 * utils.c (set_internal_problem_cmd, show_internal_problem_cmd):
10718 Remove.
10719 (add_internal_problem_command): Use add_basic_prefix_cmd,
10720 add_show_prefix_cmd.
10721 * mips-tdep.c (set_mipsfpu_command): Remove.
10722 (_initialize_mips_tdep): Use add_basic_prefix_cmd.
10723 * dwarf2/index-cache.c (set_index_cache_command): Remove.
10724 (_initialize_index_cache): Use add_basic_prefix_cmd.
10725 * memattr.c (dummy_cmd): Remove.
10726 (_initialize_mem): Use add_basic_prefix_cmd, add_show_prefix_cmd.
10727 * tui/tui-win.c (set_tui_cmd, show_tui_cmd): Remove.
10728 (_initialize_tui_win): Use add_basic_prefix_cmd,
10729 add_show_prefix_cmd.
10730 * cli/cli-logging.c (set_logging_command): Remove.
10731 (_initialize_cli_logging): Use add_basic_prefix_cmd,
10732 add_show_prefix_cmd.
10733 (show_logging_command): Remove.
10734 * target.c (target_command): Remove.
10735 (add_target): Use add_basic_prefix_cmd.
10736
a51119cd
HD
107372020-05-02 Hannes Domani <ssbssa@yahoo.de>
10738
10739 * gdbtypes.h (enum dynamic_prop_node_kind): Fix typo.
10740
652fc23a 107412020-05-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 10742
652fc23a
PW
10743 * gdb-gdb.gdb-in: Remove breakpoint on disappeared function
10744 info_command.
10745
117539e6
KR
107462020-04-30 Kamil Rytarowski <n54@gmx.com>
10747
10748 * nbsd-nat.c (nbsd_enable_proc_events)
10749 (nbsd_nat_target::post_startup_inferior): Add.
10750 (nbsd_nat_target::post_attach): Call `nbsd_enable_proc_events'.
10751 (nbsd_nat_target::update_thread_list): Rewrite.
10752 (nbsd_nat_target::wait): Handle "PTRACE_LWP_EXIT" and
10753 "PTRACE_LWP_CREATE".
10754 * nbsd-nat.h (nbsd_nat_target::post_startup_inferior): Add.
10755
102e38eb 107562020-04-30 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6a6ea76a 10757
102e38eb
PW
10758 * stack.c (_initialize_stack): Remove duplicated creation
10759 of "frame" command and "f" alias.
10760
ee9d1e5f
HD
107612020-04-30 Hannes Domani <ssbssa@yahoo.de>
10762
10763 PR gdb/18706
10764 * gdbtypes.c (check_typedef): Calculate size of array of
10765 stubbed type.
10766
627c7fb8
HD
107672020-04-30 Hannes Domani <ssbssa@yahoo.de>
10768
10769 PR gdb/15559
10770 * i386-tdep.c (i386_push_dummy_call): Call
10771 i386_thiscall_push_dummy_call.
10772 (i386_thiscall_push_dummy_call): New function.
10773 * i386-tdep.h (i386_thiscall_push_dummy_call): Declare.
10774 * i386-windows-tdep.c (i386_windows_push_dummy_call): New function.
10775 (i386_windows_init_abi): Call set_gdbarch_push_dummy_call.
10776
ffc2844e
SM
107772020-04-29 Simon Marchi <simon.marchi@efficios.com>
10778
10779 * gdbarch.sh (do_read): Add shellcheck disable directive for
10780 warning SC2162.
10781
1207375d
SM
107822020-04-29 Simon Marchi <simon.marchi@efficios.com>
10783
10784 * gdbarch.sh: Use ${foo:-} where shellcheck would report a
10785 "referenced but not assigned" warning.
10786
9fdb2916
SM
107872020-04-29 Simon Marchi <simon.marchi@efficios.com>
10788
10789 * gdbarch.sh: Remove code that sets fallbackdefault.
10790
759cea5e
SM
107912020-04-29 Simon Marchi <simon.marchi@efficios.com>
10792
10793 * gdbarch.sh: Use shell operators && and || instead of
10794 -a and -o.
10795
cb02ab24
SM
107962020-04-29 Simon Marchi <simon.marchi@efficios.com>
10797
10798 * gdbarch.sh: Use $(...) instead of `...`.
10799
a6fc5ffc
SM
108002020-04-29 Simon Marchi <simon.marchi@efficios.com>
10801
10802 * gdbarch.sh: Use double quotes around variables.
10803
8d113d13
SM
108042020-04-29 Simon Marchi <simon.marchi@efficios.com>
10805
10806 * gdbarch.sh: Use %s with printf, instead of variables in the
10807 format string.
10808
ed6acedd
TT
108092020-04-29 Tom Tromey <tromey@adacore.com>
10810
10811 PR ada/25875:
10812 * dwarf2/read.c (update_enumeration_type_from_children): Compute
10813 type fields here.
10814 (read_enumeration_type): Call
10815 update_enumeration_type_from_children later. Update comments.
10816 (process_enumeration_scope): Don't create type fields.
10817
b68b1b58
KR
108182020-04-29 Kamil Rytarowski <n54@gmx.com>
10819
10820 * nbsd-tdep.c: Include "xml-syscall.h".
10821 (nbsd_init_abi): Call `set_xml_syscall_file_name'.
10822
f94b2e03
KR
108232020-04-29 Kamil Rytarowski <n54@gmx.com>
10824
10825 * nbsd-nat.c: Include "sys/wait.h".
10826 (nbsd_resume, nbsd_nat_target::resume, nbsd_wait)
10827 (nbsd_nat_target::wait, nbsd_nat_target::insert_exec_catchpoint)
10828 (nbsd_nat_target::remove_exec_catchpoint)
10829 (nbsd_nat_target::set_syscall_catchpoint): Add.
10830 * nbsd-nat.h (nbsd_nat_target::resume, nbsd_nat_target::wait)
10831 (nbsd_nat_target::insert_exec_catchpoint)
10832 (nbsd_nat_target::remove_exec_catchpoint)
10833 (nbsd_nat_target::set_syscall_catchpoint): Add.
10834 * nbsd-tdep.c (nbsd_get_syscall_number): Add.
10835 (nbsd_init_abi): Call `set_gdbarch_get_syscall_number' and pass
10836 `nbsd_get_syscall_number'.
10837
fc49bc72
TT
108382020-04-29 Tom Tromey <tom@tromey.com>
10839
10840 * stack.c (print_block_frame_labels): Remove.
10841
d642b692
HD
108422020-04-29 Hannes Domani <ssbssa@yahoo.de>
10843
10844 PR gdb/17320
10845 * ada-valprint.c (val_print_packed_array_elements): Move array
10846 end bracket to new line.
10847 (ada_val_print_string): Remove extra spaces before first array
10848 element.
10849 * c-valprint.c (c_value_print_array): Likewise.
10850 * m2-valprint.c (m2_print_array_contents): Likewise.
10851 (m2_value_print_inner): Likewise.
10852 * p-valprint.c (pascal_value_print_inner): Likewise.
10853 * valprint.c (generic_val_print_array): Likewise.
10854 (value_print_array_elements): Move first array element and array
10855 end bracket to new line.
10856
ea90f227
TV
108572020-04-29 Tom de Vries <tdevries@suse.de>
10858
10859 PR symtab/25889
10860 * linespec.c (find_method): Fix ix calculation.
10861
4498ef4f
KR
108622020-04-28 Kamil Rytarowski <n54@gmx.com>
10863
10864 * syscalls/update-netbsd.sh: New file.
10865 * syscalls/netbsd.xml: Regenerate.
10866 * data-directory/Makefile.in: Register `netbsd.xml' in
10867 `SYSCALLS_FILES'.
10868
a55e30b5
SM
108692020-04-28 Simon Marchi <simon.marchi@efficios.com>
10870
10871 * syscalls/update-freebsd.sh: Add double quotes.
10872
2b2fbab8
TT
108732020-04-28 Tom Tromey <tom@tromey.com>
10874
10875 * NEWS: Update.
10876 * python/py-cmd.c (gdbpy_initialize_commands): Add COMMAND_TUI.
10877 (cmdpy_init): Allow class_tui.
10878
a65189c9
TV
108792020-04-28 Mark Williams <mark@myosotissp.com>
10880
10881 PR gdb/24480
10882 * dwarf2read.c: Add missing assingments to list_in_scope when
10883 start_symtab was already called.
10884
1b95cdb7
SM
108852020-04-28 Simon Marchi <simon.marchi@efficios.com>
10886
10887 PR gdb/25881
10888 * dwarf2/read.c (offset_map_type): Use
10889 gdb:hash_enum<sect_offset> as hash function.
10890
15cd93d0
TV
108912020-04-28 Tom de Vries <tdevries@suse.de>
10892
10893 * dwarf2/read.c (process_structure_scope): Add symbol for struct decl
10894 with DW_AT_signature.
10895
1eb39914
SM
108962020-04-27 Simon Marchi <simon.marchi@efficios.com>
10897
10898 * configure.ac: Remove check for fs_base/gs_base in
10899 user_regs_struct.
10900 * configure: Re-generate.
10901 * config.in: Re-generate.
10902 * amd64-nat.c (amd64_native_gregset_reg_offset): Adjust.
10903 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers,
10904 amd64_linux_nat_target::store_registers, ps_get_thread_area, ): Adjust.
10905
991a3e2e
LM
109062020-04-27 Luis Machado <luis.machado@linaro.org>
10907
10908 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Handle
10909 problematic inline frame unwinding situation.
10910 * frame.c (frame_id_computed_p): New function.
10911 * frame.h (frame_id_computed_p): New prototype.
10912
361ba0e8
TT
109132020-04-26 Tom Tromey <tom@tromey.com>
10914
10915 * command.h (enum command_class) <class_pseudo>: Remove.
10916
bc3609fd
PW
109172020-04-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10918
10919 * cli/cli-decode.c (lookup_cmd_composition): Fix comments
10920 and whitespace.
10921
b9771db7
KR
109222020-04-25 Kamil Rytarowski <n54@gmx.com>
10923
ec16513e
SM
10924 * inf-ptrace.c (inf_ptrace_target::wait): Remove
10925 `PT_GET_PROCESS_STATE' block.
b9771db7 10926
7151c1af
TT
109272020-04-24 Tom Tromey <tom@tromey.com>
10928
10929 * symtab.h (symbol_get_demangled_name): Don't declare.
10930 * symtab.c (symbol_get_demangled_name): Remove.
10931 (general_symbol_info::natural_name)
10932 (general_symbol_info::demangled_name): Update.
10933
906bb4c5
TT
109342020-04-24 Tom Tromey <tom@tromey.com>
10935
10936 PR rust/25025:
10937 * dwarf2/read.c (dwarf2_physname): Do not demangle for Rust.
10938
bcfe6157
TT
109392020-04-24 Tom Tromey <tom@tromey.com>
10940
10941 PR symtab/12707:
10942 * dwarf2/read.c (add_partial_symbol): Use the linkage name if it
10943 exists.
10944 (new_symbol): Likewise.
10945 * compile/compile-object-load.c (get_out_value_type): Use
10946 symbol_matches_search_name.
10947
f049a313
TT
109482020-04-24 Tom Tromey <tom@tromey.com>
10949
10950 * dwarf2/read.c (add_partial_symbol): Do not call
10951 compute_and_set_names.
10952
76e288d1
TT
109532020-04-24 Tom Tromey <tom@tromey.com>
10954
10955 * dwarf2/read.c (add_partial_symbol): Use new add_psymbol_to_list
10956 overload.
10957
2467f4f6
TT
109582020-04-24 Tom Tromey <tom@tromey.com>
10959
10960 * psymtab.c (add_psymbol_to_bcache): Simplify calling convention.
10961 (add_psymbol_to_list): New overload. Make old overload call new
10962 one.
10963 * psympriv.h (add_psymbol_to_list): New overload.
10964
e61108c9
TT
109652020-04-24 Tom Tromey <tom@tromey.com>
10966
10967 * dwarf2/read.c (partial_die_info::read) <case
10968 DW_AT_linkage_name>: Use value_as_string.
10969 (dwarf2_string_attr): Use value_as_string.
10970 * dwarf2/attribute.h (struct attribute) <value_as_string>: Declare
10971 method.
10972 * dwarf2/attribute.c (attribute::value_as_string): New method.
10973
8c87a452
TT
109742020-04-24 Tom Tromey <tom@tromey.com>
10975
10976 * symtab.c (general_symbol_info::natural_name)
10977 (general_symbol_info::demangled_name): Check for language_rust.
10978
787de330
TT
109792020-04-24 Tom Tromey <tom@tromey.com>
10980
10981 * dwarf2/read.c (dw2_linkage_name): Move Rust "{" hack here...
10982 (dwarf2_physname): ... from here.
10983 (partial_die_info::read): Add Rust "{" hack.
10984
ff985671
TT
109852020-04-24 Tom Tromey <tom@tromey.com>
10986
10987 * symtab.h (struct general_symbol_info) <set_demangled_name>: New
10988 method.
10989 (symbol_set_demangled_name): Don't declare.
10990 * symtab.c (general_symbol_info::set_demangled_name): Rename from
10991 symbol_set_demangled_name.
10992 (general_symbol_info::set_language)
10993 (general_symbol_info::compute_and_set_names): Update.
10994 * minsyms.c (minimal_symbol_reader::install): Update.
10995 * dwarf2/read.c (new_symbol): Update.
10996
1acda803
TT
109972020-04-24 Tom Tromey <tromey@adacore.com>
10998
10999 PR python/23662:
11000 * python/py-type.c (convert_field): Handle
11001 FIELD_LOC_KIND_DWARF_BLOCK.
11002 (typy_get_sizeof): Handle TYPE_HAS_DYNAMIC_LENGTH.
11003 (typy_get_dynamic): Nw function.
11004 (type_object_getset): Add "dynamic".
11005 * NEWS: Add entry.
11006
d656f129
TT
110072020-04-24 Tom Tromey <tromey@adacore.com>
11008
11009 * ada-typeprint.c (print_choices, print_variant_part)
11010 (print_record_field_types_dynamic): New functions.
11011 (print_record_field_types): Use print_record_field_types_dynamic.
11012
7d79de9a
TT
110132020-04-24 Tom Tromey <tromey@adacore.com>
11014
11015 * dwarf2/read.c (handle_data_member_location): New overload.
11016 (dwarf2_add_field): Use it.
11017 (decode_locdesc): Add "computed" parameter. Update comment.
11018 * gdbtypes.c (is_dynamic_type_internal): Also look for
11019 FIELD_LOC_KIND_DWARF_BLOCK.
11020 (resolve_dynamic_struct): Handle FIELD_LOC_KIND_DWARF_BLOCK.
11021 * gdbtypes.c (is_dynamic_type_internal): Add special case for C++
11022 virtual base classes.
11023 * gnu-v3-abi.c (gnuv3_baseclass_offset): Handle
11024 FIELD_LOC_KIND_DWARF_BLOCK.
11025
f8e89861
TT
110262020-04-24 Tom Tromey <tromey@adacore.com>
11027
11028 * dwarf2/read.c (read_structure_type): Handle dynamic length.
11029 * gdbtypes.c (is_dynamic_type_internal): Check
11030 TYPE_HAS_DYNAMIC_LENGTH.
11031 (resolve_dynamic_type_internal): Use TYPE_DYNAMIC_LENGTH.
11032 * gdbtypes.h (TYPE_HAS_DYNAMIC_LENGTH, TYPE_DYNAMIC_LENGTH):
11033 New macros.
11034 (enum dynamic_prop_node_kind) <DYN_PROP_BYTE_SIZE>: New
11035 constant.
11036
9c6a1327
TT
110372020-04-24 Tom Tromey <tromey@adacore.com>
11038
11039 * dwarf2/read.c (struct variant_field): Rewrite.
11040 (struct variant_part_builder): New.
11041 (struct nextfield): Remove "variant" field. Add "offset".
11042 (struct field_info): Add "current_variant_part" and
11043 "variant_parts".
11044 (alloc_discriminant_info): Remove.
11045 (alloc_rust_variant): New function.
11046 (quirk_rust_enum): Update.
11047 (dwarf2_add_field): Set "offset" member. Don't handle
11048 DW_TAG_variant_part.
11049 (offset_map_type): New typedef.
11050 (convert_variant_range, create_one_variant)
11051 (create_one_variant_part, create_variant_parts)
11052 (add_variant_property): New functions.
11053 (dwarf2_attach_fields_to_type): Call add_variant_property.
11054 (read_structure_type): Don't handle DW_TAG_variant_part.
11055 (handle_variant_part, handle_variant): New functions.
11056 (handle_struct_member_die): Use them.
11057 (process_structure_scope): Don't handle variant parts.
11058 * gdbtypes.h (TYPE_FLAG_DISCRIMINATED_UNION): Remove.
11059 (struct discriminant_info): Remove.
11060 (enum dynamic_prop_node_kind) <DYN_PROP_DISCRIMINATED>: Remove.
11061 (struct main_type) <flag_discriminated_union>: Remove.
11062 * rust-lang.c (rust_enum_p, rust_empty_enum_p): Rewrite.
11063 (rust_enum_variant): Return int. Remove "contents". Rewrite.
11064 (rust_print_enum, rust_print_struct_def, rust_evaluate_subexp):
11065 Update.
11066 * valops.c (value_union_variant): Remove.
11067 * value.h (value_union_variant): Don't declare.
11068
b249d2c2
TT
110692020-04-24 Tom Tromey <tromey@adacore.com>
11070
11071 * ada-lang.c (ada_discrete_type_high_bound, ada_discrete_type_low)
11072 (ada_value_primitive_packed_val): Update.
11073 * ada-valprint.c (ada_value_print_1): Update.
11074 * dwarf2/loc.c (evaluate_for_locexpr_baton): New struct.
11075 (dwarf2_locexpr_baton_eval): Take a property_addr_info rather than
11076 just an address. Use evaluate_for_locexpr_baton.
11077 (dwarf2_evaluate_property): Update.
11078 * dwarf2/loc.h (struct property_addr_info) <valaddr>: Now an
11079 array_view.
11080 * findvar.c (default_read_var_value): Update.
11081 * gdbtypes.c (compute_variant_fields_inner)
11082 (resolve_dynamic_type_internal): Update.
11083 (resolve_dynamic_type): Change type of valaddr parameter.
11084 * gdbtypes.h (resolve_dynamic_type): Update.
11085 * valarith.c (value_subscripted_rvalue): Update.
11086 * value.c (value_from_contents_and_address): Update.
11087
61122aa9
TT
110882020-04-24 Tom Tromey <tromey@adacore.com>
11089
11090 * dwarf2/loc.c (dwarf2_locexpr_baton_eval): Add
11091 "push_initial_value" parameter.
11092 (dwarf2_evaluate_property): Likewise.
11093 * dwarf2/loc.h (dwarf2_evaluate_property): Update.
11094
ef83a141
TT
110952020-04-24 Tom Tromey <tromey@adacore.com>
11096
11097 * gdbtypes.c (is_dynamic_type_internal): Check for variant parts.
11098 (variant::matches, compute_variant_fields_recurse)
11099 (compute_variant_fields_inner, compute_variant_fields): New
11100 functions.
11101 (resolve_dynamic_struct): Check for DYN_PROP_VARIANT_PARTS.
11102 Use resolved_type after type is made.
11103 (operator==): Add new cases.
11104 * gdbtypes.h (TYPE_HAS_VARIANT_PARTS): New macro.
11105 (struct discriminant_range, struct variant, struct variant_part):
11106 New.
11107 (union dynamic_prop_data) <variant_parts, original_type>: New
11108 members.
11109 (enum dynamic_prop_node_kind) <DYN_PROP_VARIANT_PARTS>: New constant.
11110 (enum dynamic_prop_kind) <PROP_TYPE, PROP_VARIANT_PARTS>: New
11111 constants.
11112 * value.c (unpack_bits_as_long): Now public.
11113 * value.h (unpack_bits_as_long): Declare.
11114
675127ec
TT
111152020-04-24 Tom Tromey <tromey@adacore.com>
11116
11117 * rs6000-tdep.c (struct ppc_variant): Rename from "variant".
11118 (variants, find_variant_by_arch, rs6000_gdbarch_init): Update.
11119
9852ceef
HD
111202020-04-24 Hannes Domani <ssbssa@yahoo.de>
11121
11122 * windows-tdep.c (exception_values): Add WOW64 exception numbers.
11123
7632c6ce
KR
111242020-04-24 Kamil Rytarowski <n54@gmx.com>
11125
11126 * inf-ptrace.h (follow_fork, insert_fork_catchpoint)
11127 (remove_fork_catchpoint, post_startup_inferior)
11128 (post_attach): Move...
11129 * obsd-nat.h (follow_fork, insert_fork_catchpoint)
11130 (remove_fork_catchpoint, post_startup_inferior)
11131 (post_attach): ...here.
11132 * inf-ptrace.c (follow_fork, insert_fork_catchpoint)
11133 (remove_fork_catchpoint, post_startup_inferior)
11134 (post_attach): Move...
11135 * obsd-nat.c (follow_fork, insert_fork_catchpoint)
11136 (remove_fork_catchpoint, post_startup_inferior)
11137 (post_attach): ...here.
11138
7be2bb4f
TT
111392020-04-24 Tom Tromey <tromey@adacore.com>
11140
11141 * nat/windows-nat.h (struct windows_thread_info)
11142 <pc_adjusted>: New member.
11143 * windows-nat.c (windows_fetch_one_register): Check
11144 pc_adjusted.
11145 (windows_nat_target::get_windows_debug_event)
11146 (windows_nat_target::wait): Set pc_adjusted.
11147
f80cb3b4
TV
111482020-04-24 Tom de Vries <tdevries@suse.de>
11149
11150 * contrib/cc-with-tweaks.sh: Remove <exec>.gdb-index file handling.
11151 Run gdb-add-index inside temp dir.
11152
29514b87
TT
111532020-04-23 Tom Tromey <tromey@adacore.com>
11154
11155 * windows-tdep.c (is_linked_with_cygwin_dll): Always update "iter"
11156 in loop.
11157
5939967b
LM
111582020-04-23 Luis Machado <luis.machado@linaro.org>
11159
11160 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
11161 get_frame_register instead of gdbarch_unwind_pc.
11162
70bc38f5
TV
111632020-04-23 Tom de Vries <tdevries@suse.de>
11164
11165 * symtab.c (lookup_global_symbol): Prefer def over decl.
11166
de82891c
TV
111672020-04-23 Tom de Vries <tdevries@suse.de>
11168
11169 PR symtab/25807
11170 * block.c (best_symbol, better_symbol): Promote to external.
11171 * block.h (best_symbol, better_symbol): Declare.
11172 * symtab.c (lookup_symbol_in_objfile_symtabs): Prefer def over
11173 decl.
11174
ecc6c606
TT
111752020-04-23 Tom Tromey <tromey@adacore.com>
11176
11177 PR ada/25837:
11178 * dwarf2/read.c (dw2_expand_symtabs_matching_symbol): Store a
11179 "const char *", not a "const std::string &".
11180 <name_and_matcher::operator==>: Update.
11181 * unittests/lookup_name_info-selftests.c: Change type of
11182 "result".
11183
740480b8
TT
111842020-04-23 Tom Tromey <tom@tromey.com>
11185
11186 * inferior.h (iterate_over_inferiors): Don't declare.
11187 * inferior.c (iterate_over_inferiors): Remove.
11188 * darwin-nat.c (find_inferior_task_it, find_inferior_pid_it):
11189 Remove.
11190 (darwin_find_inferior_by_task, darwin_find_inferior_by_pid): Don't
11191 use iterate_over_inferiors.
11192 (darwin_resume_inferior_it)
11193 (struct resume_inferior_threads_param)
11194 (darwin_resume_inferior_threads_it): Remove.
11195 (darwin_nat_target::resume): Don't use iterate_over_inferiors.
11196
ae3ab1f0
TV
111972020-04-23 Tom de Vries <tdevries@suse.de>
11198
11199 * blockframe.c (find_pc_partial_function): Use
11200 find_pc_sect_compunit_symtab rather than
11201 objfile->sf->qf->find_pc_sect_compunit_symtab.
11202
317d2668
TV
112032020-04-22 Tom de Vries <tdevries@suse.de>
11204
11205 PR symtab/25764
11206 * dwarf2/read.c (scan_partial_symbols): Allow external variable decls
11207 in psymtabs.
11208
eea9e357
TV
112092020-04-22 Tom de Vries <tdevries@suse.de>
11210
11211 PR symtab/25801
11212 * psymtab.c (psym_map_symtabs_matching_filename): Don't skip shared
11213 symtabs.
11214
3d5afab3
TV
112152020-04-22 Tom de Vries <tdevries@suse.de>
11216
11217 PR symtab/25700
11218 * dwarf2/read.c (dwarf2_build_psymtabs_hard): Don't create psymtab for
11219 CU if already created.
11220
d43b7a2d
TBA
112212020-04-21 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
11222
11223 * infrun.c (displaced_step_fixup): Switch to the event_thread
11224 before calling displaced_step_restore, not after.
11225
d89edf9b
MM
112262020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11227
11228 * record-btrace.c (record_btrace_enable_warn): Ignore thread if
11229 its inferior is not recorded by us.
11230 (record_btrace_target_open): Replace call to
11231 all_non_exited_threads () with call to current_inferior
11232 ()->non_exited_threads ().
11233 (record_btrace_target::stop_recording): Likewise.
11234 (record_btrace_target::close): Likewise.
11235 (record_btrace_target::wait): Likewise.
11236 (record_btrace_target::record_stop_replaying): Likewise.
11237
5897fd49
MM
112382020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11239
11240 * btrace.c (btrace_enable): Throw an error on double enables and
11241 when enabling recording fails.
11242 (btrace_disable): Throw an error if the thread is not recorded.
11243
1a476b6d
MM
112442020-04-21 Markus Metzger <markus.t.metzger@intel.com>
11245
11246 * record-btrace.c (record_btrace_target::fetch_registers): Forward
11247 request if we do not have a thread_info.
11248
4778a5f8
TV
112492020-04-21 Tom de Vries <tdevries@suse.de>
11250
11251 PR gdb/25471
11252 * thread.c
11253 (scoped_restore_current_thread::scoped_restore_current_thread): Catch
11254 exception in get_frame_id.
11255
0fa7617d
TT
112562020-04-20 Tom Tromey <tromey@adacore.com>
11257
11258 * python/python.c (struct gdbpy_event): Mark move constructor as
11259 noexcept.
11260 * python/py-tui.c (class gdbpy_tui_window_maker): Mark move
11261 constructor as noexcept.
11262 * completer.h (struct completion_result): Mark move constructor as
11263 noexcept.
11264 * completer.c (completion_result::completion_result): Use
11265 initialization style. Don't call reset_match_list.
11266
ad23bda0
MS
112672020-04-20 Mihails Strasuns <mihails.strasuns@intel.com>
11268
11269 * MAINTAINERS (Write After Approval): Add myself.
11270
45e1f031
TT
112712020-04-18 Tom Tromey <tom@tromey.com>
11272
11273 * windows-tdep.c (init_w32_command_list)
11274 (w32_prefix_command_valid): Restore.
11275 (_initialize_windows_tdep): Call init_w32_command_list.
11276
08feed99
TT
112772020-04-18 Tom Tromey <tom@tromey.com>
11278
11279 * xcoffread.c (enter_line_range, scan_xcoff_symtab): Update.
11280 * value.c (value_fn_field): Update.
11281 * valops.c (find_function_in_inferior)
11282 (value_allocate_space_in_inferior): Update.
11283 * tui/tui-winsource.c (tui_update_source_windows_with_line):
11284 Update.
11285 * tui/tui-source.c (tui_source_window::set_contents): Update.
11286 * symtab.c (lookup_global_or_static_symbol)
11287 (find_function_start_sal_1, skip_prologue_sal)
11288 (print_msymbol_info, find_gnu_ifunc, symbol_arch): Update.
11289 * symmisc.c (dump_msymbols, dump_symtab_1)
11290 (maintenance_print_one_line_table): Update.
11291 * symfile.c (init_entry_point_info, section_is_mapped)
11292 (list_overlays_command, simple_read_overlay_table)
11293 (simple_overlay_update_1): Update.
11294 * stap-probe.c (handle_stap_probe): Update.
11295 * stabsread.c (dbx_init_float_type, define_symbol)
11296 (read_one_struct_field, read_enum_type, read_range_type): Update.
11297 * source.c (info_line_command): Update.
11298 * python/python.c (gdbpy_source_objfile_script)
11299 (gdbpy_execute_objfile_script): Update.
11300 * python/py-type.c (save_objfile_types): Update.
11301 * python/py-objfile.c (py_free_objfile): Update.
11302 * python/py-inferior.c (python_new_objfile): Update.
11303 * psymtab.c (psym_find_pc_sect_compunit_symtab, dump_psymtab)
11304 (dump_psymtab_addrmap_1, maintenance_info_psymtabs)
11305 (maintenance_check_psymtabs): Update.
11306 * printcmd.c (info_address_command): Update.
11307 * objfiles.h (struct objfile) <arch>: New method, from
11308 get_objfile_arch.
11309 (get_objfile_arch): Don't declare.
11310 * objfiles.c (get_objfile_arch): Remove.
11311 (filter_overlapping_sections): Update.
11312 * minsyms.c (msymbol_is_function): Update.
11313 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines)
11314 (output_nondebug_symbol): Update.
11315 * mdebugread.c (parse_symbol, basic_type, parse_partial_symbols)
11316 (mdebug_expand_psymtab): Update.
11317 * machoread.c (macho_add_oso_symfile): Update.
11318 * linux-tdep.c (linux_infcall_mmap, linux_infcall_munmap):
11319 Update.
11320 * linux-fork.c (checkpoint_command): Update.
11321 * linespec.c (convert_linespec_to_sals): Update.
11322 * jit.c (finalize_symtab): Update.
11323 * infrun.c (insert_exception_resume_from_probe): Update.
11324 * ia64-tdep.c (ia64_find_unwind_table): Update.
11325 * hppa-tdep.c (internalize_unwinds): Update.
11326 * gdbtypes.c (get_type_arch, init_float_type, objfile_type):
11327 Update.
11328 * gcore.c (call_target_sbrk): Update.
11329 * elfread.c (record_minimal_symbol, elf_symtab_read)
11330 (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
11331 (elf_gnu_ifunc_resolve_by_got): Update.
11332 * dwarf2/read.c (create_addrmap_from_index)
11333 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
11334 (read_debug_names_from_section)
11335 (process_psymtab_comp_unit_reader, add_partial_symbol)
11336 (add_partial_subprogram, process_full_comp_unit)
11337 (read_file_scope, read_func_scope, read_lexical_block_scope)
11338 (read_call_site_scope, dwarf2_ranges_read)
11339 (dwarf2_record_block_ranges, dwarf2_add_field)
11340 (mark_common_block_symbol_computed, read_tag_pointer_type)
11341 (read_tag_string_type, dwarf2_init_float_type)
11342 (dwarf2_init_complex_target_type, read_base_type)
11343 (partial_die_info::read, partial_die_info::read)
11344 (read_attribute_value, dwarf_decode_lines_1, new_symbol)
11345 (dwarf2_fetch_die_loc_sect_off): Update.
11346 * dwarf2/loc.c (dwarf2_find_location_expression)
11347 (class dwarf_evaluate_loc_desc, rw_pieced_value)
11348 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval)
11349 (dwarf2_loc_desc_get_symbol_read_needs)
11350 (locexpr_describe_location_piece, locexpr_describe_location_1)
11351 (loclist_describe_location): Update.
11352 * dwarf2/index-write.c (write_debug_names): Update.
11353 * dwarf2/frame.c (dwarf2_build_frame_info): Update.
11354 * dtrace-probe.c (dtrace_process_dof): Update.
11355 * dbxread.c (read_dbx_symtab, dbx_end_psymtab)
11356 (process_one_symbol): Update.
11357 * ctfread.c (ctf_init_float_type, read_base_type): Update.
11358 * coffread.c (coff_symtab_read, enter_linenos, decode_base_type)
11359 (coff_read_enum_type): Update.
11360 * cli/cli-cmds.c (edit_command, list_command): Update.
11361 * buildsym.c (buildsym_compunit::finish_block_internal): Update.
11362 * breakpoint.c (create_overlay_event_breakpoint)
11363 (create_longjmp_master_breakpoint)
11364 (create_std_terminate_master_breakpoint)
11365 (create_exception_master_breakpoint, get_sal_arch): Update.
11366 * block.c (block_gdbarch): Update.
11367 * annotate.c (annotate_source_line): Update.
11368
0743fc83
TT
113692020-04-17 Tom Tromey <tromey@adacore.com>
11370
11371 * auto-load.c (show_auto_load_cmd): Remove.
11372 (auto_load_show_cmdlist_get): Use add_show_prefix_cmd.
11373 * arc-tdep.c (_initialize_arc_tdep): Use add_show_prefix_cmd.
11374 (maintenance_print_arc_command): Remove.
11375 * tui/tui-win.c (tui_command): Remove.
11376 (tui_get_cmd_list): Use add_basic_prefix_cmd.
11377 * tui/tui-layout.c (tui_layout_command): Remove.
11378 (_initialize_tui_layout): Use add_basic_prefix_cmd.
11379 * python/python.c (user_set_python, user_show_python): Remove.
11380 (_initialize_python): Use add_basic_prefix_cmd,
11381 add_show_prefix_cmd.
11382 * guile/guile.c (set_guile_command, show_guile_command): Remove.
11383 (install_gdb_commands): Use add_basic_prefix_cmd,
11384 add_show_prefix_cmd.
11385 (info_guile_command): Remove.
11386 * dwarf2/read.c (set_dwarf_cmd, show_dwarf_cmd): Remove.
11387 (_initialize_dwarf2_read): Use add_basic_prefix_cmd,
11388 add_show_prefix_cmd.
11389 * cli/cli-style.h (class cli_style_option) <add_setshow_commands>:
11390 Remove do_set and do_show parameters.
11391 * cli/cli-style.c (set_style, show_style): Remove.
11392 (_initialize_cli_style): Use add_basic_prefix_cmd,
11393 add_show_prefix_cmd.
11394 (cli_style_option::add_setshow_commands): Remove do_set and
11395 do_show parameters.
11396 (cli_style_option::add_setshow_commands): Use
11397 add_basic_prefix_cmd, add_show_prefix_cmd.
11398 (STYLE_ADD_SETSHOW_COMMANDS): Remove macro.
11399 (set_style_name): Remove.
11400 * cli/cli-dump.c (dump_command, append_command): Remove.
11401 (srec_dump_command, ihex_dump_command, verilog_dump_command)
11402 (tekhex_dump_command, binary_dump_command)
11403 (binary_append_command): Remove.
11404 (_initialize_cli_dump): Use add_basic_prefix_cmd.
11405 * windows-tdep.c (w32_prefix_command_valid): Remove global.
11406 (init_w32_command_list): Remove; move into ...
11407 (_initialize_windows_tdep): ... here. Use add_basic_prefix_cmd.
11408 * valprint.c (set_print, show_print, set_print_raw)
11409 (show_print_raw): Remove.
11410 (_initialize_valprint): Use add_basic_prefix_cmd,
11411 add_show_prefix_cmd.
11412 * typeprint.c (set_print_type, show_print_type): Remove.
11413 (_initialize_typeprint): Use add_basic_prefix_cmd,
11414 add_show_prefix_cmd.
11415 * record.c (set_record_command, show_record_command): Remove.
11416 (_initialize_record): Use add_basic_prefix_cmd,
11417 add_show_prefix_cmd.
11418 * cli/cli-cmds.c (_initialize_cli_cmds): Use add_basic_prefix_cmd,
11419 add_show_prefix_cmd.
11420 (info_command, show_command, set_debug, show_debug): Remove.
11421 * top.h (set_history, show_history): Don't declare.
11422 * top.c (set_history, show_history): Remove.
11423 * target-descriptions.c (set_tdesc_cmd, show_tdesc_cmd)
11424 (unset_tdesc_cmd): Remove.
11425 (_initialize_target_descriptions): Use add_basic_prefix_cmd,
11426 add_show_prefix_cmd.
11427 * symtab.c (info_module_command): Remove.
11428 (_initialize_symtab): Use add_basic_prefix_cmd.
11429 * symfile.c (overlay_command): Remove.
11430 (_initialize_symfile): Use add_basic_prefix_cmd.
11431 * sparc64-tdep.c (info_adi_command): Remove.
11432 (_initialize_sparc64_adi_tdep): Use add_basic_prefix_cmd.
11433 * sh-tdep.c (show_sh_command, set_sh_command): Remove.
11434 (_initialize_sh_tdep): Use add_basic_prefix_cmd,
11435 add_show_prefix_cmd.
11436 * serial.c (serial_set_cmd, serial_show_cmd): Remove.
11437 (_initialize_serial): Use add_basic_prefix_cmd,
11438 add_show_prefix_cmd.
11439 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Remove.
11440 (_initialize_ser_tcp): Use add_basic_prefix_cmd,
11441 add_show_prefix_cmd.
11442 * rs6000-tdep.c (set_powerpc_command, show_powerpc_command)
11443 (_initialize_rs6000_tdep): Use add_basic_prefix_cmd,
11444 add_show_prefix_cmd.
11445 * riscv-tdep.c (show_riscv_command, set_riscv_command)
11446 (show_debug_riscv_command, set_debug_riscv_command): Remove.
11447 (_initialize_riscv_tdep): Use add_basic_prefix_cmd,
11448 add_show_prefix_cmd.
11449 * remote.c (remote_command, set_remote_cmd): Remove.
11450 (_initialize_remote): Use add_basic_prefix_cmd.
11451 * record-full.c (set_record_full_command)
11452 (show_record_full_command): Remove.
11453 (_initialize_record_full): Use add_basic_prefix_cmd,
11454 add_show_prefix_cmd.
11455 * record-btrace.c (cmd_set_record_btrace)
11456 (cmd_show_record_btrace, cmd_set_record_btrace_bts)
11457 (cmd_show_record_btrace_bts, cmd_set_record_btrace_pt)
11458 (cmd_show_record_btrace_pt): Remove.
11459 (_initialize_record_btrace): Use add_basic_prefix_cmd,
11460 add_show_prefix_cmd.
11461 * ravenscar-thread.c (set_ravenscar_command)
11462 (show_ravenscar_command): Remove.
11463 (_initialize_ravenscar): Use add_basic_prefix_cmd,
11464 add_show_prefix_cmd.
11465 * mips-tdep.c (show_mips_command, set_mips_command)
11466 (_initialize_mips_tdep): Use add_basic_prefix_cmd,
11467 add_show_prefix_cmd.
11468 * maint.c (maintenance_command, maintenance_info_command)
11469 (maintenance_check_command, maintenance_print_command)
11470 (maintenance_set_cmd, maintenance_show_cmd): Remove.
11471 (_initialize_maint_cmds): Use add_basic_prefix_cmd,
11472 add_show_prefix_cmd.
11473 (show_per_command_cmd): Remove.
11474 * maint-test-settings.c (maintenance_set_test_settings_cmd):
11475 Remove.
11476 (maintenance_show_test_settings_cmd): Remove.
11477 (_initialize_maint_test_settings): Use add_basic_prefix_cmd,
11478 add_show_prefix_cmd.
11479 * maint-test-options.c (maintenance_test_options_command):
11480 Remove.
11481 (_initialize_maint_test_options): Use add_basic_prefix_cmd.
11482 * macrocmd.c (macro_command): Remove
11483 (_initialize_macrocmd): Use add_basic_prefix_cmd.
11484 * language.c (set_check, show_check): Remove.
11485 (_initialize_language): Use add_basic_prefix_cmd,
11486 add_show_prefix_cmd.
11487 * infcmd.c (unset_command): Remove.
11488 (_initialize_infcmd): Use add_basic_prefix_cmd.
11489 * i386-tdep.c (set_mpx_cmd, show_mpx_cmd): Remove.
11490 (_initialize_i386_tdep): Use add_basic_prefix_cmd,
11491 add_show_prefix_cmd.
11492 * go32-nat.c (go32_info_dos_command): Remove.
11493 (_initialize_go32_nat): Use add_basic_prefix_cmd.
11494 * cli/cli-decode.c (do_prefix_cmd, add_basic_prefix_cmd)
11495 (do_show_prefix_cmd, add_show_prefix_cmd): New functions.
11496 * frame.c (set_backtrace_cmd, show_backtrace_cmd): Remove.
11497 (_initialize_frame): Use add_basic_prefix_cmd,
11498 add_show_prefix_cmd.
11499 * dcache.c (set_dcache_command, show_dcache_command): Remove.
11500 (_initialize_dcache): Use add_basic_prefix_cmd,
11501 add_show_prefix_cmd.
11502 * cp-support.c (maint_cplus_command): Remove.
11503 (_initialize_cp_support): Use add_basic_prefix_cmd.
11504 * btrace.c (maint_btrace_cmd, maint_btrace_set_cmd)
11505 (maint_btrace_show_cmd, maint_btrace_pt_set_cmd)
11506 (maint_btrace_pt_show_cmd, _initialize_btrace): Use
11507 add_basic_prefix_cmd, add_show_prefix_cmd.
11508 * breakpoint.c (save_command): Remove.
11509 (_initialize_breakpoint): Use add_basic_prefix_cmd.
11510 * arm-tdep.c (set_arm_command, show_arm_command): Remove.
11511 (_initialize_arm_tdep): Use add_basic_prefix_cmd,
11512 add_show_prefix_cmd.
11513 * ada-lang.c (maint_set_ada_cmd, maint_show_ada_cmd)
11514 (set_ada_command, show_ada_command): Remove.
11515 (_initialize_ada_language): Use add_basic_prefix_cmd,
11516 add_show_prefix_cmd.
11517 * command.h (add_basic_prefix_cmd, add_show_prefix_cmd): Declare.
11518
3557f442
KR
115192020-04-16 Kamil Rytarowski <n54@gmx.com>
11520
11521 * nbsd-nat.c (inf_ptrace_target::auxv_parse): Remove.
11522 * nbsd-nat.h (inf_ptrace_target::auxv_parse): Likewise.
11523
16197208
SM
115242020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11525
11526 * windows-tdep.c (is_linked_with_cygwin_dll): Add filename to
11527 warning messages.
11528
00ac85d3
SM
115292020-04-16 Simon Marchi <simon.marchi@polymtl.ca>
11530
11531 * windows-tdep.c (is_linked_with_cygwin_dll): Consider case where
11532 import table is not at beginning of .idata section.
11533
381ce63f
PA
115342020-04-16 Pedro Alves <palves@redhat.com>
11535
11536 * inferior.c (delete_inferior): Use delete operator directly
11537 instead of delete_program_space.
11538 * progspace.c (add_program_space): New, factored out from
11539 program_space::program_space.
11540 (remove_program_space): New, factored out from
11541 delete_program_space.
11542 (program_space::program_space): Remove intro comment. Rewrite.
11543 (program_space::~program_space): Remove intro comment. Call
11544 remove_program_space.
11545 (delete_program_space): Delete.
11546 * progspace.h (program_space::program_space): Make explicit. Move
11547 intro comment here, adjusted.
11548 (program_space::~program_space): Move intro comment here,
11549 adjusted.
11550 (delete_program_space): Remove.
11551
a010605f
TT
115522020-04-16 Tom Tromey <tromey@adacore.com>
11553
11554 * windows-nat.c (windows_nat::handle_access_violation): New
11555 function.
11556 * nat/windows-nat.h (handle_access_violation): Declare.
11557 * nat/windows-nat.c (handle_exception): Move Cygwin code to
11558 windows-nat.c. Call handle_access_violation.
11559
efba5c23
TV
115602020-04-16 Tom de Vries <tdevries@suse.de>
11561
11562 PR symtab/25791
11563 * dwarf2/index-write.c (write_gdbindex): Generate CU table entries for
11564 CUs without psymtab.
11565
97ed802d
KB
115662020-04-16 Kevin Buettner <kevinb@redhat.com>
11567
11568 * python/python.c (do_start_initialization): Don't call
11569 PyEval_InitThreads for Python 3.9 and beyond.
11570
c7d64809
KR
115712020-04-15 Kamil Rytarowski <n54@gmx.com>
11572
11573 * obsd-nat.c (obsd_nat_target::update_thread_list): Pass "this" to
11574 thread functions.
11575 (obsd_nat_target::wait): Likewise.
11576
ce127a96
TT
115772020-04-15 Tom Tromey <tromey@adacore.com>
11578
11579 * windows-nat.c (DEBUG_EXEC, DEBUG_EVENTS, DEBUG_MEM)
11580 (DEBUG_EXCEPT): Use debug_printf.
11581
99f1bc6a
AB
115822020-04-15 Andrew Burgess <andrew.burgess@embecosm.com>
11583
11584 * completer.c (class completion_tracker::completion_hash_entry)
11585 <hash_name>: New member function.
11586 (completion_tracker::discard_completions): New callback to hash a
11587 completion_hash_entry, pass this to htab_create_alloc.
11588
a0e9b532
JT
115892016-01-20 Jon Turney <jon.turney@dronecode.org.uk>
11590
11591 * windows-nat.c (windows_make_so): Warn rather than stopping with
11592 an error if realpath() fails.
11593
06ca5dd4
KR
115942020-04-14 Kamil Rytarowski <n54@gmx.com>
11595
11596 * nbsd-nat.c (nbsd_pid_to_kinfo_proc2): New.
11597 (nbsd_nat_target::info_proc): Add do_status.
11598
194d088f
TV
115992020-04-14 Simon Marchi <simon.marchi@polymtl.ca>
11600 Tom de Vries <tdevries@suse.de>
11601
11602 PR symtab/25718
11603 * psympriv.h (struct partial_symtab::read_symtab)
11604 (struct partial_symtab::expand_psymtab)
11605 (struct partial_symtab::read_dependencies): Update comments.
11606 * dwarf2/read.c (struct dwarf2_include_psymtab::read_symtab): Call
11607 read_symtab for includer.
11608 (struct dwarf2_include_psymtab::expand_psymtab): Assert false.
11609 (struct dwarf2_include_psymtab::readin_p): Call readin_p () for includer.
11610 (struct dwarf2_include_psymtab::m_readin): Remove.
11611 (struct dwarf2_include_psymtab::includer): New member function.
11612 (dwarf2_psymtab::expand_psymtab): Assert !readin.
11613
c1a66c06
TV
116142020-04-14 Tom de Vries <tdevries@suse.de>
11615
11616 PR symtab/25720
11617 * symmisc.c (maintenance_expand_symtabs): Call expand_symtabs_matching
11618 with NULL symbol_matcher and lookup_name.
11619 * psymtab.c (psym_expand_symtabs_matching): Handle NULL symbol_matcher
11620 and lookup_name.
11621 * dwarf2/read.c (dw2_expand_symtabs_matching)
11622 (dw2_debug_names_expand_symtabs_matching): Same.
11623 * symfile.h (struct quick_symbol_functions::expand_symtabs_matching):
11624 Make lookup_name a pointer. Update comment.
11625 * symtab.c (global_symbol_searcher::expand_symtabs): Handle
11626 lookup_name being a pointer.
11627 * symfile.c (expand_symtabs_matching): Same.
11628 * symfile-debug.c (debug_qf_expand_symtabs_matching): Same.
11629 * linespec.c (iterate_over_all_matching_symtabs): Same.
11630
400b5eca
TT
116312020-04-13 Tom Tromey <tom@tromey.com>
11632
11633 * run-on-main-thread.c: Update include.
11634 * unittests/main-thread-selftests.c: Update include.
11635 * tui/tui-win.c: Update include.
11636 * tui/tui-io.c: Update include.
11637 * tui/tui-interp.c: Update include.
11638 * tui/tui-hooks.c: Update include.
11639 * top.h: Update include.
11640 * top.c: Update include.
11641 * ser-base.c: Update include.
11642 * remote.c: Update include.
11643 * remote-notif.c: Update include.
11644 * remote-fileio.c: Update include.
11645 * record-full.c: Update include.
11646 * record-btrace.c: Update include.
11647 * python/python.c: Update include.
11648 * posix-hdep.c: Update include.
11649 * mingw-hdep.c: Update include.
11650 * mi/mi-main.c: Update include.
11651 * mi/mi-interp.c: Update include.
11652 * main.c: Update include.
11653 * linux-nat.c: Update include.
11654 * interps.c: Update include.
11655 * infrun.c: Update include.
11656 * inf-loop.c: Update include.
11657 * event-top.c: Update include.
11658 * event-loop.c: Move to ../gdbsupport/.
11659 * event-loop.h: Move to ../gdbsupport/.
11660 * async-event.h: Update include.
11661 * Makefile.in (COMMON_SFILES, HFILES_NO_SRCDIR): Update.
11662
93b54c8e
TT
116632020-04-13 Tom Tromey <tom@tromey.com>
11664
11665 * tui/tui-win.c: Include async-event.h.
11666 * remote.c: Include async-event.h.
11667 * remote-notif.c: Include async-event.h.
11668 * record-full.c: Include async-event.h.
11669 * record-btrace.c: Include async-event.h.
11670 * infrun.c: Include async-event.h.
11671 * event-top.c: Include async-event.h.
11672 * event-loop.h: Move some declarations to async-event.h.
11673 * event-loop.c: Don't include ser-event.h or top.h. Move some
11674 code to async-event.c.
11675 * async-event.h: New file.
11676 * async-event.c: New file.
11677 * Makefile.in (COMMON_SFILES): Add async-event.c.
11678 (HFILES_NO_SRCDIR): Add async-event.h.
11679
c1cd3163
TT
116802020-04-13 Tom Tromey <tom@tromey.com>
11681
11682 * utils.c (flush_streams): New function.
11683 * event-loop.c (gdb_wait_for_event): Call flush_streams.
11684
29f2bf4f
TT
116852020-04-13 Tom Tromey <tom@tromey.com>
11686
11687 * event-loop.c (handle_file_event): Use warning, not
11688 printf_unfiltered.
11689
98029d02
TT
116902020-04-13 Tom Tromey <tom@tromey.com>
11691
11692 * event-loop.c: Include <chrono>.
11693
06cc9596
TT
116942020-04-13 Tom Tromey <tom@tromey.com>
11695
11696 * gdb_select.h: Move to ../gdbsupport/.
11697 * event-loop.c: Update include path.
11698 * top.c: Update include path.
11699 * ser-base.c: Update include path.
11700 * ui-file.c: Update include path.
11701 * ser-tcp.c: Update include path.
11702 * guile/scm-ports.c: Update include path.
11703 * posix-hdep.c: Update include path.
11704 * ser-unix.c: Update include path.
11705 * gdb_usleep.c: Update include path.
11706 * mingw-hdep.c: Update include path.
11707 * inflow.c: Update include path.
11708 * infrun.c: Update include path.
11709 * event-top.c: Update include path.
11710
8ae8e197
TT
117112020-04-13 Tom Tromey <tom@tromey.com>
11712
11713 * configure: Rebuild.
11714 * configure.ac: Remove checks that are now in GDB_AC_COMMON.
11715
58cf28e8
TT
117162020-04-13 Tom Tromey <tom@tromey.com>
11717
11718 * event-loop.h (start_event_loop): Don't declare.
11719 * event-loop.c (start_event_loop): Move...
11720 * main.c (start_event_loop): ...here. Now static.
11721
b7f999ae
SDJ
117222020-04-13 Sergio Durigan Junior <sergiodj@sergiodj.net>
11723
11724 * MAINTAINERS: Update my email address.
11725
1085dfd4
KR
117262020-04-12 Kamil Rytarowski <n54@gmx.com>
11727
11728 * nbsd-nat.c (nbsd_nat_target::info_proc): Add IP_MINIMAL and
11729 IP_ALL.
11730
49d1d1f5
KR
117312020-04-12 Kamil Rytarowski <n54@gmx.com>
11732
11733 * nbsd-nat.c (nbsd_pid_to_cmdline): Add.
aac66a4c 11734 (nbsd_nat_target::info_proc): Add do_cmdline.
49d1d1f5 11735
b4848d2a
KR
117362020-04-12 Kamil Rytarowski <n54@gmx.com>
11737
11738 * nbsd-nat.c (nbsd_pid_to_cwd): Add.
aac66a4c 11739 (nbsd_nat_target::info_proc): Add do_cwd.
b4848d2a 11740
51c133d5
KR
117412020-04-12 Kamil Rytarowski <n54@gmx.com>
11742
11743 * nbsd-nat.c (nbsd_nat_target::info_proc): Add do_exe.
11744
54b8cbd0
KR
117452020-04-11 Kamil Rytarowski <n54@gmx.com>
11746
11747 * nbsd-nat.c; Include "nbsd-tdep.h" and "gdbarch.h".
11748 * nbsd-nat.c (nbsd_nat_target::find_memory_regions)
11749 (nbsd_nat_target::info_proc): New functions.
11750 * nbsd-nat.c (kinfo_get_vmmap): New function.
11751 * nbsd-nat.c (nbsd_nat_target::info_proc) Use
11752 nbsd_info_proc_mappings_header and nbsd_info_proc_mappings_entry.
11753 * nbsd-tdep.c (nbsd_info_proc_mappings_header)
11754 (nbsd_info_proc_mappings_entry, nbsd_vm_map_entry_flags): New
11755 functions.
11756 * nbsd-tdep.c (KINFO_VME_PROT_READ, KINFO_VME_PROT_WRITE)
11757 (KINFO_VME_PROT_EXEC, KINFO_VME_FLAG_COW)
11758 (KINFO_VME_FLAG_NEEDS_COPY, KINFO_VME_FLAG_NOCOREDUMP)
11759 (KINFO_VME_FLAG_PAGEABLE, KINFO_VME_FLAG_GROWS_UP)
11760 (KINFO_VME_FLAG_GROWS_DOWN): New.
11761
cf83625d
AS
117622020-04-10 Artur Shepilko <nomadbyte@gmail.com>
11763
11764 * utils.c (copy_bitwise): Use unsigned 0 constant as operand of
11765 bit shift.
11766
0c4311ab
TT
117672020-04-10 Tom Tromey <tromey@adacore.com>
11768
11769 * symfile.c (symbol_file_add_separate): Preserve OBJF_MAINLINE.
11770
3e65b3e9
TT
117712020-04-10 Tom Tromey <tromey@adacore.com>
11772
11773 * symtab.c (get_symbol_address, get_msymbol_address): Skip
11774 separate debug files.
11775
13302e95
HD
117762020-04-10 Hannes Domani <ssbssa@yahoo.de>
11777
11778 * nat/windows-nat.c (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11779 Move to...
11780 * nat/windows-nat.h (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP):
11781 ... here.
11782 * windows-nat.c (windows_nat_target::get_windows_debug_event):
11783 Check for STATUS_WX86_BREAKPOINT.
11784 (windows_nat_target::wait): Same.
11785
bdfc1e8a
TV
117862020-04-10 Tom de Vries <tdevries@suse.de>
11787
11788 PR cli/25808
11789 * python/lib/gdb/__init__.py: Initialize lexer with stripnl=False.
11790
f4460aec
SM
117912020-04-09 Simon Marchi <simon.marchi@polymtl.ca>
11792
11793 * MAINTAINERS (Global Maintainers): Add Tom de Vries.
11794 (Write After Approval): Remove Tom de Vries.
11795
a25198bb
BE
117962020-04-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
11797
11798 revert partially:
11799 2020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
11800
aac66a4c
SM
11801 * buildsym.c (record_line): Fix undefined behavior and preserve
11802 lines at eof.
a25198bb 11803
206c98a6
KR
118042020-04-09 Kamil Rytarowski <n54@gmx.com>
11805
11806 * auxv.h (svr4_auxv_parse): New.
11807 * auxv.c (default_auxv_parse): Split into default_auxv_parse
11808 and generic_auxv_parse.
11809 (svr4_auxv_parse): Add.
11810 * obsd-tdep.c: Include "auxv.h".
11811 (obsd_auxv_parse): Remove.
11812 (obsd_init_abi): Remove comment.
11813 (obsd_init_abi): Change set_gdbarch_auxv_parse passed argument
11814 from `obsd_auxv_parse' to `svr4_auxv_parse'.
11815 * nbsd-tdep.c: Include "auxv.h".
11816 (nbsd_init_abi): Call set_gdbarch_auxv_parse.
11817
71fbdbaf
TT
118182020-04-08 Tom Tromey <tromey@adacore.com>
11819
11820 * nat/windows-nat.h (last_wait_event): Don't declare.
11821 (wait_for_debug_event): Update comment.
11822 * nat/windows-nat.c (last_wait_event): Now static.
11823
2c1d95e8
TT
118242020-04-08 Tom Tromey <tromey@adacore.com>
11825
11826 * windows-nat.c (wait_for_debug_event): Move to
11827 nat/windows-nat.c.
11828 * nat/windows-nat.h (wait_for_debug_event): Declare.
11829 * nat/windows-nat.c (wait_for_debug_event): Move from
11830 windows-nat.c. No longer static.
11831
d2977bc4
TT
118322020-04-08 Tom Tromey <tromey@adacore.com>
11833
11834 * windows-nat.c (get_windows_debug_event): Use
11835 fetch_pending_stop.
11836 * nat/windows-nat.h (fetch_pending_stop): Declare.
11837 * nat/windows-nat.c (fetch_pending_stop): New function.
11838
e758e19c
TT
118392020-04-08 Tom Tromey <tromey@adacore.com>
11840
11841 * windows-nat.c (windows_continue): Use matching_pending_stop and
11842 continue_last_debug_event.
11843 * nat/windows-nat.h (matching_pending_stop)
11844 (continue_last_debug_event): Declare.
11845 * nat/windows-nat.c (DEBUG_EVENTS): New define.
11846 (matching_pending_stop, continue_last_debug_event): New
11847 functions.
11848
8d30e395
TT
118492020-04-08 Tom Tromey <tromey@adacore.com>
11850
11851 * windows-nat.c (MS_VC_EXCEPTION): Move to nat/windows-nat.c.
11852 (handle_exception_result): Move to nat/windows-nat.h.
11853 (DEBUG_EXCEPTION_SIMPLE): Remove.
11854 (windows_nat::handle_ms_vc_exception): New function.
11855 (handle_exception): Move to nat/windows-nat.c.
11856 (get_windows_debug_event): Update.
11857 (STATUS_WX86_BREAKPOINT, STATUS_WX86_SINGLE_STEP): Move to
11858 nat/windows-nat.c.
11859 * nat/windows-nat.h (handle_ms_vc_exception): Declare.
11860 (handle_exception_result): Move from windows-nat.c.
11861 (handle_exception): Declare.
11862 * nat/windows-nat.c (MS_VC_EXCEPTION, handle_exception)
11863 (STATUS_WX86_SINGLE_STEP, STATUS_WX86_BREAKPOINT): Move from
11864 windows-nat.c.
11865
29de418d
TT
118662020-04-08 Tom Tromey <tromey@adacore.com>
11867
11868 * windows-nat.c (exception_count, event_count): Remove.
11869 (handle_exception, get_windows_debug_event)
11870 (do_initial_windows_stuff): Update.
11871
a816ba18
TT
118722020-04-08 Tom Tromey <tromey@adacore.com>
11873
11874 * windows-nat.c (windows_nat::handle_load_dll)
11875 (windows_nat::handle_unload_dll): Rename. No longer static.
11876 * nat/windows-nat.h (handle_load_dll, handle_unload_dll):
11877 Declare.
11878
a00caa12
TT
118792020-04-08 Tom Tromey <tromey@adacore.com>
11880
11881 * complaints.h (stop_whining): Declare at top-level.
11882 (complaint): Don't declare stop_whining.
11883
d41b524f
TT
118842020-04-08 Tom Tromey <tromey@adacore.com>
11885
11886 * windows-nat.c (windows_nat::handle_output_debug_string):
11887 Rename. No longer static.
11888 * nat/windows-nat.h (handle_output_debug_string): Declare.
11889
3c76026d
TT
118902020-04-08 Tom Tromey <tromey@adacore.com>
11891
11892 * windows-nat.c (current_process_handle, current_process_id)
11893 (main_thread_id, last_sig, current_event, last_wait_event)
11894 (current_windows_thread, desired_stop_thread_id, pending_stops)
11895 (struct pending_stop, siginfo_er): Move to nat/windows-nat.c.
11896 (display_selectors, fake_create_process)
11897 (get_windows_debug_event): Update.
11898 * nat/windows-nat.h (current_process_handle, current_process_id)
11899 (main_thread_id, last_sig, current_event, last_wait_event)
11900 (current_windows_thread, desired_stop_thread_id, pending_stops)
11901 (struct pending_stop, siginfo_er): Move from windows-nat.c.
11902 * nat/windows-nat.c (current_process_handle, current_process_id)
11903 (main_thread_id, last_sig, current_event, last_wait_event)
11904 (current_windows_thread, desired_stop_thread_id, pending_stops)
11905 (siginfo_er): New globals. Move from windows-nat.c.
11906
9d8679cc
TT
119072020-04-08 Tom Tromey <tromey@adacore.com>
11908
11909 * windows-nat.c (get_image_name): Move to nat/windows-nat.c.
11910 (handle_load_dll): Update.
11911 * nat/windows-nat.c (get_image_name): Move from windows-nat.c.
11912
28688adf
TT
119132020-04-08 Tom Tromey <tromey@adacore.com>
11914
11915 * windows-nat.c (enum thread_disposition_type): Move to
11916 nat/windows-nat.h.
11917 (windows_nat::thread_rec): Rename from thread_rec. No longer
11918 static.
11919 (windows_add_thread, windows_nat_target::fetch_registers)
11920 (windows_nat_target::store_registers, handle_exception)
11921 (windows_nat_target::resume, get_windows_debug_event)
11922 (windows_nat_target::get_tib_address)
11923 (windows_nat_target::thread_name)
11924 (windows_nat_target::thread_alive): Update.
11925 * nat/windows-nat.h (enum thread_disposition_type): Move from
11926 windows-nat.c.
11927 (thread_rec): Declare.
11928
4834dad0
TT
119292020-04-08 Tom Tromey <tromey@adacore.com>
11930
11931 * windows-nat.c: Add "using namespace".
11932 * nat/windows-nat.h: Wrap contents in windows_nat namespace.
11933 * nat/windows-nat.c: Wrap contents in windows_nat namespace.
11934
65bafd5b
TT
119352020-04-08 Tom Tromey <tromey@adacore.com>
11936
11937 * nat/windows-nat.h (struct windows_thread_info): Declare
11938 destructor.
11939 * nat/windows-nat.c (~windows_thread_info): New.
11940
0a4afda3
TT
119412020-04-08 Tom Tromey <tromey@adacore.com>
11942
11943 PR gdb/22992
11944 * windows-nat.c (current_event): Update comment.
11945 (last_wait_event, desired_stop_thread_id): New globals.
11946 (struct pending_stop): New.
11947 (pending_stops): New global.
11948 (windows_nat_target) <stopped_by_sw_breakpoint>
11949 <supports_stopped_by_sw_breakpoint>: New methods.
11950 (windows_fetch_one_register): Add assertions. Adjust PC.
11951 (windows_continue): Handle pending stops. Suspend other threads
11952 when stepping. Use last_wait_event
11953 (wait_for_debug_event): New function.
11954 (get_windows_debug_event): Use wait_for_debug_event. Handle
11955 pending stops. Queue spurious stops.
11956 (windows_nat_target::wait): Set stopped_at_software_breakpoint.
11957 (windows_nat_target::kill): Use wait_for_debug_event.
11958 * nat/windows-nat.h (struct windows_thread_info)
11959 <stopped_at_software_breakpoint>: New field.
11960 * nat/windows-nat.c (windows_thread_info::resume): Clear
11961 stopped_at_software_breakpoint.
11962
8e61ebec
TT
119632020-04-08 Tom Tromey <tromey@adacore.com>
11964
11965 * windows-nat.c (enum thread_disposition_type): New.
11966 (thread_rec): Replace "get_context" parameter with "disposition";
11967 change type.
11968 (windows_add_thread, windows_nat_target::fetch_registers)
11969 (windows_nat_target::store_registers, handle_exception)
11970 (windows_nat_target::resume, get_windows_debug_event)
11971 (windows_nat_target::get_tib_address)
11972 (windows_nat_target::thread_name)
11973 (windows_nat_target::thread_alive): Update.
11974
98a03287
TT
119752020-04-08 Tom Tromey <tromey@adacore.com>
11976
11977 * windows-nat.c (thread_rec): Use windows_thread_info::suspend.
11978 (windows_continue): Use windows_continue::resume.
11979 * nat/windows-nat.h (struct windows_thread_info) <suspend,
11980 resume>: Declare new methods.
11981 * nat/windows-nat.c: New file.
11982 * configure.nat (NATDEPFILES): Add nat/windows-nat.o when needed.
11983
7c7411bc
TT
119842020-04-08 Tom Tromey <tromey@adacore.com>
11985
11986 * windows-nat.c (windows_add_thread, windows_delete_thread)
11987 (windows_nat_target::fetch_registers)
11988 (windows_nat_target::store_registers, fake_create_process)
11989 (windows_nat_target::resume, windows_nat_target::resume)
11990 (get_windows_debug_event, windows_nat_target::wait)
11991 (windows_nat_target::pid_to_str)
11992 (windows_nat_target::get_tib_address)
11993 (windows_nat_target::get_ada_task_ptid)
11994 (windows_nat_target::thread_name)
11995 (windows_nat_target::thread_alive): Use lwp, not tid.
11996
2950fdf7
TT
119972020-04-08 Tom Tromey <tromey@adacore.com>
11998
11999 * windows-nat.c (handle_exception)
12000 (windows_nat_target::thread_name): Update.
12001 * nat/windows-nat.h (windows_thread_info): Remove destructor.
12002 <name>: Now unique_xmalloc_ptr.
12003
62fe396b
TT
120042020-04-08 Tom Tromey <tromey@adacore.com>
12005
12006 * windows-nat.c (thread_rec)
12007 (windows_nat_target::fetch_registers): Update.
12008 * nat/windows-nat.h (struct windows_thread_info) <suspended>:
12009 Update comment.
12010 <debug_registers_changed, reload_context>: Now bool.
12011
e9534bd2
TT
120122020-04-08 Tom Tromey <tromey@adacore.com>
12013
12014 * windows-nat.c (windows_add_thread): Use new.
12015 (windows_init_thread_list, windows_delete_thread): Use delete.
12016 (get_windows_debug_event): Update.
12017 * nat/windows-nat.h (struct windows_thread_info): Add constructor,
12018 destructor, and initializers.
12019
ae1f8880
TT
120202020-04-08 Tom Tromey <tromey@adacore.com>
12021
12022 * windows-nat.c (struct windows_thread_info): Remove.
12023 * nat/windows-nat.h: New file.
12024
55a1e039
TT
120252020-04-08 Tom Tromey <tromey@adacore.com>
12026
12027 * windows-nat.c (struct windows_thread_info) <tid>: Rename from "id".
12028 (thread_rec, windows_add_thread, windows_delete_thread)
12029 (windows_continue): Update.
12030
93366324
TT
120312020-04-08 Tom Tromey <tromey@adacore.com>
12032
12033 * windows-nat.c (struct windows_thread_info): Remove typedef.
12034 (thread_head): Remove.
12035 (thread_list): New global.
12036 (thread_rec, windows_add_thread, windows_init_thread_list)
12037 (windows_delete_thread, windows_continue): Update.
12038
0f2265e2
SM
120392020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12040
12041 * windows-tdep.h (windows_init_abi): Add comment.
12042 (cygwin_init_abi): New declaration.
12043 * windows-tdep.c: Split signal enumeration in two, one for
12044 Windows and one for Cygwin.
12045 (windows_gdb_signal_to_target): Only deal with signal of the
12046 Windows OS ABI.
12047 (cygwin_gdb_signal_to_target): New function.
12048 (windows_init_abi): Rename to windows_init_abi_common, don't set
12049 gdb_signal_to_target gdbarch method. Add new new function with
12050 this name.
12051 (cygwin_init_abi): New function.
12052 * amd64-windows-tdep.c (amd64_windows_init_abi_common): Add
12053 comment. Don't call windows_init_abi.
12054 (amd64_windows_init_abi): Add comment, call windows_init_abi.
12055 (amd64_cygwin_init_abi): Add comment, call cygwin_init_abi.
12056 * i386-windows-tdep.c (i386_windows_init_abi): Rename to
12057 i386_windows_init_abi_common, don't call windows_init_abi. Add
12058 a new function of this name.
12059 (i386_cygwin_init_abi): New function.
12060 (_initialize_i386_windows_tdep): Bind i386_cygwin_init_abi to
12061 OS ABI Cygwin.
12062
3810f182
SM
120632020-04-08 Simon Marchi <simon.marchi@polymtl.ca>
12064
12065 * dwarf2/read.c (read_gdb_index_from_buffer): Remove objfile
12066 parameter.c.
12067 (dwarf2_read_gdb_index): Update.
12068
063f8e80
KR
120692020-04-07 Kamil Rytarowski <n54@gmx.com>
12070
12071 * nbsd-tdep.c: Include "objfiles.h".
12072 (nbsd_skip_solib_resolver): New.
12073 (nbsd_init_abi): Call set_gdbarch_skip_solib_resolver().
12074
85a9510c 120752020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12076
12077 * dwarf2/loc.c (loclist_describe_location): Call the function decode_debug_loclists_
12078 addresses if DWARF version is 5 or more because DW_LLE_start* or DW_LLE_offset_pair
12079 with DW_LLE_base_addressx are being emitted in DWARFv5.
12080 Add the newly added kind DW_LOC_OFFSET_PAIR also.
12081 The length of location description is an unsigned ULEB integer in DWARFv5 instead of
12082 unsigned integer.
12083
9fc3eaae 120842020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12085
12086 * dwarf2/loc.c (enum debug_loc_kind): Add a new kind DEBUG_LOC_OFFSET_PAIR.
12087 (dwarf2_find_location_expression): Call the function decode_debug_loclists_
12088 addresses if DWARF version is 5 or more. DW_LLE_start* or DW_LLE_offset_pair
12089 with DW_LLE_base_addressx are being emitted in DWARFv5 instead of DW_LLE_GNU*.
12090 Add applicable base address if the entry is DW_LLE_offset_pair from DWO.
12091 (decode_debug_loclists_addresses): Return DEBUG_LOC_OFFSET_PAIR instead of
12092 DEBUG_LOC_START_END in case of DW_LLE_offset_pair.
12093
12094
41144253 120952020-04-07 Nitika Achra <Nitika.Achra@amd.com>
12096
12097 * dwarf2/read.c (cu_debug_loc_section): Added the declaration for the function.
12098 (read_loclist_index): New function definition.
12099 (lookup_loclist_base): New function definition.
12100 (read_loclist_header): New function definition.
12101 (dwarf2_cu): Add loclist_base and loclist_header field.
12102 (dwarf2_locate_dwo_sections): Handle .debug_loclists.dwo section.
12103 (read_full_die_1): Read the value of DW_AT_loclists_base.
12104 (read_attribute_reprocess): Handle DW_FORM_loclistx.
12105 (read_attribute_value): Handle DW_FORM_loclistx.
12106 (skip_one_die): Handle DW_FORM_loclistx.
12107 (loclist_header): New structure declaration.
12108 * dwarf2/attribute.c (form_is_section_offset): Handle DW_FORM_loclistx.
12109
9f4e76a4
SM
121102020-04-07 Simon Marchi <simon.marchi@polymtl.ca>
12111
12112 * dwarf2/read.h (struct dwarf2_psymtab): Remove two-parameters
12113 constructor. Remove `addr` parameter from other constructor and
12114 add `per_cu` parameter.
12115 * dwarf2/read.c (create_partial_symtab): Update.
12116
25c11aca
TV
121172020-04-07 Tom de Vries <tdevries@suse.de>
12118
12119 PR symtab/25796
12120 * dwarf2/read.c (can_have_DW_AT_const_value_p): New function.
12121 (partial_die_info::fixup): Inherit has_const_value.
12122
5707e24b
TV
121232020-04-07 Tom de Vries <tdevries@suse.de>
12124
12125 * psymtab.c (maintenance_check_psymtabs): Skip static LOC_BLOCK
12126 symbols without address.
12127
05f00e22
KR
121282020-04-06 Kamil Rytarowski <n54@gmx.com>
12129
12130 * nbsd-nat.h (struct thread_info): Add forward declaration.
12131 (nbsd_nat_target::thread_alive): Add.
12132 (nbsd_nat_target::thread_name): Likewise.
12133 (nbsd_nat_target::update_thread_list): Likewise.
12134 (update_thread_list::post_attach): Likewise.
12135 (post_attach::pid_to_str): Likewise.
12136 * nbsd-nat.c: Include "gdbthread.h" and "inferior.h".
12137 (nbsd_thread_lister): Add.
12138 (nbsd_nat_target::thread_alive): Likewise.
12139 (nbsd_nat_target::thread_name): Likewise.
12140 (nbsd_add_threads): Likewise.
12141 (update_thread_list::post_attach): Likewise.
12142 (nbsd_nat_target::update_thread_list): Likewise.
12143 (post_attach::pid_to_str): Likewise.
12144
6ee448cc
TT
121452020-04-06 Tom Tromey <tromey@adacore.com>
12146
12147 * ada-valprint.c (print_variant_part): Extract the variant field.
12148 (print_field_values): Use the field as the outer value when
12149 recursing.
12150
dea34e8c
TT
121512020-04-06 Tom Tromey <tromey@adacore.com>
12152
12153 * sh-nbsd-tdep.c: Include nbsd-tdep.h.
12154 * ppc-nbsd-tdep.c: Include nbsd-tdep.h.
12155 * mips-nbsd-tdep.c (mipsnbsd_init_abi): Add missing ";".
12156 * arm-nbsd-tdep.c: Include nbsd-tdep.h.
12157 * hppa-nbsd-tdep.c: Include nbsd-tdep.h.
12158
93689ce9
TT
121592020-04-06 Tom Tromey <tromey@adacore.com>
12160
12161 * dwarf2/read.c (read_base_type) <DW_ATE_complex_float>: Handle
12162 TYPE_CODE_ERROR.
12163
79743962
KR
121642020-04-06 Kamil Rytarowski <n54@gmx.com>
12165
12166 * nbsd-tdep.c: Include "gdbarch.h".
12167 Define enum with NetBSD signal numbers.
12168 (nbsd_gdb_signal_from_target, nbsd_gdb_signal_to_target): New.
12169 * alpha-nbsd-tdep.c (alphanbsd_init_abi): Call nbsd_init_abi().
12170 * amd64-nbsd-tdep.c (amd64nbsd_init_abi): Likewise.
12171 * arm-nbsd-tdep.c (arm_netbsd_elf_init_abi): Likewise.
12172 * hppa-nbsd-tdep.c (hppanbsd_init_abi): Likewise.
12173 * i386-nbsd-tdep.c (i386nbsd_init_abi): Likewise.
12174 * mips-nbsd-tdep.c (nbsd_init_abi): Likewise.
12175 * ppc-nbsd-tdep.c (ppcnbsd_init_abi): Likewise.
12176 * sh-nbsd-tdep.c (shnbsd_init_abi): Likewise.
12177 * sparc-nbsd-tdep.c (sparc32nbsd_init_abi): Likewise.
12178 * sparc64-nbsd-tdep.c (sparc64nbsd_init_abi): Likewise.
12179 * vax-nbsd-tdep.c (vaxnbsd_elf_init_abi): Likewise.
12180
9e7c9a03
HD
121812020-04-03 Hannes Domani <ssbssa@yahoo.de>
12182
12183 PR gdb/25325
12184 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes.
12185
d9e49b61
TT
121862020-04-03 Tom Tromey <tromey@adacore.com>
12187
12188 * dwarf2/loc.c (disassemble_dwarf_expression) <DW_OP_const_type>:
12189 Read constant block.
12190
e0fc5c3f
SM
121912020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12192
12193 * gdb_bfd.h: Include gdbsupport/byte-vector.h.
12194 (gdb_bfd_get_full_section_contents): New declaration.
12195 * gdb_bfd.c (gdb_bfd_get_full_section_contents): New function.
12196 * windows-tdep.c (is_linked_with_cygwin_dll): Use
12197 gdb_bfd_get_full_section_contents.
12198
e2ff18a0
SM
121992020-04-02 Simon Marchi <simon.marchi@polymtl.ca>
12200
12201 * exec.c (build_section_table): Replace internal_error with
12202 gdb_assert.
12203 (section_table_xfer_memory_partial): Likewise.
12204 * mdebugread.c (parse_partial_symbols): Likewise.
12205 * psymtab.c (lookup_partial_symbol): Likewise.
12206 * utils.c (wrap_here): Likewise.
12207
0830d301
TT
122082020-04-02 Tom Tromey <tromey@adacore.com>
12209
12210 * f-lang.c (build_fortran_types): Use arch_type to initialize
12211 builtin_complex_s32 in the TYPE_CODE_ERROR case.
12212
e7da7f8f
TT
122132020-04-02 Tom Tromey <tromey@adacore.com>
12214
12215 * dwarf2/read.c (partial_die_info::read): Do not create a vector
12216 of attributes.
12217
c90d28ac
AB
122182020-04-02 Andrew Burgess <andrew.burgess@embecosm.com>
12219 Bernd Edlinger <bernd.edlinger@hotmail.de>
12220 Tom Tromey <tromey@adacore.com>
12221
12222 * buildsym.c (buildsym_compunit::record_line): Remove
12223 deduplication code.
12224
1aa98955
TV
122252020-04-02 Tom de Vries <tdevries@suse.de>
12226
12227 PR ada/24671
12228 * dwarf2/read.c (dw2_map_matching_symbols): Handle -readnow.
12229
d3214198
TV
122302020-04-02 Tom de Vries <tdevries@suse.de>
12231
12232 * dwarf2/read.c (dwarf2_gdb_index_functions,
12233 dwarf2_debug_names_functions): Init lookup_global_symbol_language with
12234 NULL.
12235 * psymtab.c (psym_lookup_global_symbol_language): New function.
12236 (psym_functions): Init psym_lookup_global_symbol_language with
12237 psym_lookup_global_symbol_language.
12238 * symfile-debug.c (debug_sym_quick_functions): Init
12239 lookup_global_symbol_language with NULL.
12240 * symfile.c (set_initial_language): Remove fixme comment.
12241 * symfile.h (struct quick_symbol_functions): Add
12242 lookup_global_symbol_language.
12243 * symtab.c (find_quick_global_symbol_language): New function.
12244 (find_main_name): Use find_quick_global_symbol_language.
12245
2836752f
SM
122462020-04-01 Simon Marchi <simon.marchi@polymtl.ca>
12247
12248 * windows-tdep.c (is_linked_with_cygwin_dll): Fix style.
12249
64dc2d4b
BE
122502020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12251
12252 * buildsym.c (record_line): Fix undefined behavior and preserve
12253 lines at eof.
12254
bbe3dc41
BE
122552020-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
12256
12257 * buildsym.c (record_line): Fix the resizing condition.
12258
6b4a335b
TT
122592020-04-01 Tom Tromey <tom@tromey.com>
12260
12261 * value.h (value_literal_complex): Add comment.
12262 * valops.c (value_literal_complex): Refer to value.h.
12263
3638a098
TT
122642020-04-01 Tom Tromey <tom@tromey.com>
12265
12266 * c-exp.y (FLOAT_KEYWORD, COMPLEX): New tokens.
12267 (scalar_type): New rule, from typebase.
12268 (typebase): Use scalar_type. Recognize complex types.
12269 (field_name): Handle FLOAT_KEYWORD.
12270 (ident_tokens): Add _Complex and __complex__.
12271
c34e8714
TT
122722020-04-01 Tom Tromey <tom@tromey.com>
12273
12274 PR exp/25299:
12275 * valarith.c (promotion_type, complex_binop): New functions.
12276 (scalar_binop): Handle complex numbers. Use promotion_type.
12277 (value_pos, value_neg, value_complement): Handle complex numbers.
12278
fa649bb7
TT
122792020-04-01 Tom Tromey <tom@tromey.com>
12280
12281 * c-exp.y (COMPLEX_INT, COMPLEX_FLOAT): New tokens.
12282 (exp) <COMPLEX_INT, COMPLEX_FLOAT>: New rules.
12283 (parse_number): Handle complex numbers.
12284
981c08ce
TT
122852020-04-01 Tom Tromey <tom@tromey.com>
12286
12287 * c-valprint.c (c_decorations): Change complex suffix to "i".
12288
4c99290d
TT
122892020-04-01 Tom Tromey <tom@tromey.com>
12290
12291 * valprint.c (generic_value_print_complex): Use accessors.
12292 * value.h (value_real_part, value_imaginary_part): Declare.
12293 * valops.c (value_real_part, value_imaginary_part): New
12294 functions.
12295 * value.c (creal_internal_fn, cimag_internal_fn): Use accessors.
12296
5b930b45
TT
122972020-04-01 Tom Tromey <tom@tromey.com>
12298
12299 * stabsread.c (rs6000_builtin_type, read_sun_floating_type)
12300 (read_range_type): Update.
12301 * mdebugread.c (basic_type): Update.
12302 * go-lang.c (build_go_types): Use init_complex_type.
12303 * gdbtypes.h (struct main_type) <complex_type>: New member.
12304 (init_complex_type): Update.
12305 (arch_complex_type): Don't declare.
12306 * gdbtypes.c (init_complex_type): Remove "objfile" parameter.
12307 Make name if none given. Use alloc_type_copy. Look for cached
12308 complex type.
12309 (arch_complex_type): Remove.
12310 (gdbtypes_post_init): Use init_complex_type.
12311 * f-lang.c (build_fortran_types): Use init_complex_type.
12312 * dwarf2/read.c (read_base_type): Update.
12313 * d-lang.c (build_d_types): Use init_complex_type.
12314 * ctfread.c (read_base_type): Update.
12315
53cccef1
TBA
123162020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12317
12318 * infrun.c (stop_all_threads): Update assertion, plus when
12319 stopping threads, take into account that we might be trying
12320 to stop an all-stop target.
12321 (stop_waiting): Call 'stop_all_threads' if there exists a
12322 non-stop target.
12323
a0714d30
TBA
123242020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12325
12326 * target.h (exists_non_stop_target): New function declaration.
12327 * target.c (exists_non_stop_target): New function.
12328
60e22c1e
HD
123292020-04-01 Hannes Domani <ssbssa@yahoo.de>
12330
12331 PR gdb/24789
12332 * eval.c (is_integral_or_integral_reference): New function.
12333 (evaluate_subexp_standard): Allow integer references in
12334 pointer arithmetic.
12335
e139a727
TBA
123362020-04-01 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
12337
12338 * remote.c (remote_target::remote_parse_stop_reply): Remove the
12339 check for no ptid in the stop reply when the target is non-stop.
12340
e0802d59
TT
123412020-04-01 Tom Tromey <tromey@adacore.com>
12342
12343 * symtab.h (class lookup_name_info) <lookup_name_info>: Change
12344 "name" parameter to rvalue reference. Initialize m_name_holder.
12345 <lookup_name_info>: New overloads.
12346 <name>: Return gdb::string_view.
12347 <c_str>: New method.
12348 <make_ignore_params>: Update.
12349 <search_name_hash>: Update.
12350 <language_lookup_name>: Return const char *.
12351 <m_name>: Change type.
12352 * symtab.c (demangle_for_lookup_info::demangle_for_lookup_info)
12353 (demangle_for_lookup_info::demangle_for_lookup_info): Update.
12354 (lookup_name_info::match_any): Update.
12355 * psymtab.c (match_partial_symbol, lookup_partial_symbol):
12356 Update.
12357 * minsyms.c (linkage_name_str): Update.
12358 * language.c (default_symbol_name_matcher): Update.
12359 * dwarf2/read.c (mapped_index_base::find_name_components_bounds):
12360 Update.
12361 * ada-lang.c (ada_fold_name): Change parameter to string_view.
12362 (ada_lookup_name_info::ada_lookup_name_info): Update.
12363 (literal_symbol_name_matcher): Update.
12364
8c072cb6
TT
123652020-04-01 Tom Tromey <tromey@adacore.com>
12366
12367 * psymtab.c (psymtab_search_name): Remove function.
12368 (psym_lookup_symbol): Create search name and lookup name here.
12369 (lookup_partial_symbol): Remove "name" parameter; add
12370 lookup_name.
12371 (psym_expand_symtabs_for_function): Update.
12372
6f29a534
TT
123732020-03-31 Joel Jones <joelkevinjones@gmail.com>
12374
12375 PR tui/25597:
12376 * python/py-tui.c: Include gdb_curses.h inside of #ifdef TUI.
12377
af62665e
TT
123782020-03-31 Tom Tromey <tromey@adacore.com>
12379
12380 * dwarf2/abbrev.c (abbrev_table::read): Conditionally call
12381 memcpy.
12382
d1a89da5
NC
123832020-03-30 Nelson Chu <nelson.chu@sifive.com>
12384
12385 * features/riscv/32bit-csr.xml: Regenerated.
12386 * features/riscv/64bit-csr.xml: Regenerated.
12387
d8af9068
TT
123882020-03-30 Tom Tromey <tromey@adacore.com>
12389
12390 * ada-valprint.c (print_variant_part): Update.
12391 * ada-lang.h (ada_which_variant_applies): Update.
12392 * ada-lang.c (ada_which_variant_applies): Remove outer_type and
12393 outer_valaddr parameters; replace with "outer" value parameter.
12394 (to_fixed_variant_branch_type): Update.
12395
227c0bf4
PFC
123962020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12397
12398 * ppc-linux-nat.c: Include <algorithm>, <unordered_map>, and
12399 <list>. Remove inclusion of observable.h.
12400 (PPC_DEBUG_CURRENT_VERSION): Move up define.
12401 (struct arch_lwp_info): New struct.
12402 (class ppc_linux_dreg_interface): New class.
12403 (struct ppc_linux_process_info): New struct.
12404 (struct ppc_linux_nat_target) <low_delete_thread, low_new_fork>
12405 <low_new_clone, low_forget_process, low_prepare_to_resume>
12406 <copy_thread_dreg_state, mark_thread_stale>
12407 <mark_debug_registers_changed, register_hw_breakpoint>
12408 <clear_hw_breakpoint, register_wp, clear_wp>
12409 <can_use_watchpoint_cond_accel, calculate_dvc, check_condition>
12410 <num_memory_accesses, get_trigger_type>
12411 <create_watchpoint_request, hwdebug_point_cmp>
12412 <init_arch_lwp_info, get_arch_lwp_info>
12413 <low_stopped_by_watchpoint, low_stopped_data_address>: Declare as
12414 methods.
12415 <struct ptid_hash>: New inner struct.
12416 <m_dreg_interface, m_process_info, m_installed_hw_bps>: Declare
12417 members.
12418 (saved_dabr_value, hwdebug_info, max_slots_number)
12419 (struct hw_break_tuple, struct thread_points, ppc_threads)
12420 (have_ptrace_hwdebug_interface)
12421 (hwdebug_find_thread_points_by_tid)
12422 (hwdebug_insert_point, hwdebug_remove_point): Remove.
12423 (ppc_linux_nat_target::can_use_hw_breakpoint): Use
12424 m_dreg_interface, remove call to PTRACE_SET_DEBUGREG.
12425 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Add comment,
12426 use m_dreg_interface.
12427 (hwdebug_point_cmp): Change to...
12428 (ppc_linux_nat_target::hwdebug_point_cmp): ...this method. Use
12429 reference arguments instead of pointers.
12430 (ppc_linux_nat_target::ranged_break_num_registers): Use
12431 m_dreg_interface.
12432 (ppc_linux_nat_target::insert_hw_breakpoint): Add comment, use
12433 m_dreg_interface. Call register_hw_breakpoint.
12434 (ppc_linux_nat_target::remove_hw_breakpoint): Add comment, use
12435 m_dreg_interface. Call clear_hw_breakpoint.
12436 (get_trigger_type): Change to...
12437 (ppc_linux_nat_target::get_trigger_type): ...this method. Add
12438 comment.
12439 (ppc_linux_nat_target::insert_mask_watchpoint): Update comment,
12440 use m_dreg_interface. Call register_hw_breakpoint.
12441 (ppc_linux_nat_target::remove_mask_watchpoint): Update comment,
12442 use m_dreg_interface. Call clear_hw_breakpoint.
12443 (can_use_watchpoint_cond_accel): Change to...
12444 (ppc_linux_nat_target::can_use_watchpoint_cond_accel): ...this
12445 method. Update comment, use m_dreg_interface and
12446 m_process_info.
12447 (calculate_dvc): Change to...
12448 (ppc_linux_nat_target::calculate_dvc): ...this method. Use
12449 m_dreg_interface.
12450 (num_memory_accesses): Change to...
12451 (ppc_linux_nat_target::num_memory_accesses): ...this method.
12452 (check_condition): Change to...
12453 (ppc_linux_nat_target::check_condition): ...this method.
12454 (ppc_linux_nat_target::can_accel_watchpoint_condition): Update
12455 comment, use m_dreg_interface.
12456 (create_watchpoint_request): Change to...
12457 (ppc_linux_nat_target::create_watchpoint_request): ...this
12458 method. Use m_dreg_interface.
12459 (ppc_linux_nat_target::insert_watchpoint): Add comment, use
12460 m_dreg_interface. Call register_hw_breakpoint or register_wp.
12461 (ppc_linux_nat_target::remove_watchpoint): Add comment, use
12462 m_dreg_interface. Call clear_hw_breakpoint or clear_wp.
12463 (ppc_linux_nat_target::low_forget_process)
12464 (ppc_linux_nat_target::low_new_fork)
12465 (ppc_linux_nat_target::low_new_clone)
12466 (ppc_linux_nat_target::low_delete_thread)
12467 (ppc_linux_nat_target::low_prepare_to_resume): New methods.
12468 (ppc_linux_nat_target::low_new_thread): Remove previous logic,
12469 only call mark_thread_stale.
12470 (ppc_linux_thread_exit): Remove.
12471 (ppc_linux_nat_target::stopped_data_address): Change to...
12472 (ppc_linux_nat_target::low_stopped_data_address): This. Add
12473 comment, use m_dreg_interface and m_thread_hw_breakpoints.
12474 (ppc_linux_nat_target::stopped_by_watchpoint): Change to...
12475 (ppc_linux_nat_target::stopped_by_watchpoint): This. Add
12476 comment. Call low_stopped_data_address.
12477 (ppc_linux_nat_target::watchpoint_addr_within_range): Use
12478 m_dreg_interface.
12479 (ppc_linux_nat_target::masked_watch_num_registers): Use
12480 m_dreg_interface.
12481 (ppc_linux_nat_target::copy_thread_dreg_state)
12482 (ppc_linux_nat_target::mark_thread_stale)
12483 (ppc_linux_nat_target::mark_debug_registers_changed)
12484 (ppc_linux_nat_target::register_hw_breakpoint)
12485 (ppc_linux_nat_target::clear_hw_breakpoint)
12486 (ppc_linux_nat_target::register_wp)
12487 (ppc_linux_nat_target::clear_wp)
12488 (ppc_linux_nat_target::init_arch_lwp_info)
12489 (ppc_linux_nat_target::get_arch_lwp_info): New methods.
12490 (_initialize_ppc_linux_nat): Remove observer callback.
12491
4db10d8f
PFC
124922020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12493
12494 * ppc-linux-nat.c (ppc_linux_nat_target::store_registers)
12495 (ppc_linux_nat_target::auxv_parse)
12496 (ppc_linux_nat_target::read_description)
12497 (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset):
12498 Move up.
12499
1310c1b0
PFC
125002020-03-30 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
12501
12502 * linux-nat.h (low_new_clone): New method.
12503 * linux-nat.c (linux_handle_extended_wait): Call low_new_clone.
12504
69b037c3
SM
125052020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12506
12507 * dbxread.c (dbx_psymtab_to_symtab_1): Rename to...
12508 (dbx_expand_psymtab): ... this.
12509 (start_psymtab): Update.
12510 * mdebugread.c (psymtab_to_symtab_1): Rename to...
12511 (mdebug_expand_psymtab): ... this.
12512 (parse_partial_symbols): Update.
12513 (new_psymtab): Update.
12514 * xcoffread.c (xcoff_psymtab_to_symtab_1): Rename to...
12515 (xcoff_expand_psymtab): ... this.
12516 (xcoff_start_psymtab): Update.
12517
48993951
SM
125182020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12519
12520 * psympriv.h (partial_symtab) <read_dependencies>: Rename to...
12521 <expand_dependencies>: ... this.
12522 * psymtab.c (partial_symtab::read_dependencies): Rename to...
12523 (partial_symtab::expand_dependencies): ... this.
12524 * dwarf2/read.c (dwarf2_include_psymtab) <expand_psymtab>:
12525 Update.
12526 (dwarf2_psymtab::expand_psymtab): Update.
12527 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
12528 * mdebugread.c (psymtab_to_symtab_1): Update.
12529 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
12530
3ad83046
SM
125312020-03-29 Simon Marchi <simon.marchi@polymtl.ca>
12532
12533 * psympriv.h (discard_psymtab): Remove.
12534 * dbxread.c (dbx_end_psymtab): Update.
12535 * xcoffread.c (xcoff_end_psymtab): Update.
12536
4d1b9ab6
TT
125372020-03-28 Tom Tromey <tom@tromey.com>
12538
12539 * dwarf2/attribute.h (struct attribute) <form_is_constant>: Update
12540 comment.
12541
f1749218
TT
125422020-03-28 Tom Tromey <tom@tromey.com>
12543
12544 * dwarf2/read.c (read_attribute_reprocess): Fix formatting.
12545
ebea7626
HD
125462020-03-27 Hannes Domani <ssbssa@yahoo.de>
12547
12548 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12549
a879b4d5
JB
125502020-03-26 John Baldwin <jhb@FreeBSD.org>
12551
12552 * fbsd-tdep.c (fbsd_print_auxv_entry): Handle AT_FREEBSD_BSDFLAGS.
12553
0826b30a
TT
125542020-03-26 Tom Tromey <tom@tromey.com>
12555
12556 * dwarf2/read.c (handle_data_member_location, dwarf2_add_field)
12557 (mark_common_block_symbol_computed, read_tag_string_type)
12558 (attr_to_dynamic_prop, read_subrange_type): Update.
12559 (dwarf2_get_ref_die_offset, dwarf2_get_attr_constant_value): Move
12560 to be methods on struct attribute.
12561 (skip_one_die, process_imported_unit_die, read_namespace_alias)
12562 (read_call_site_scope, partial_die_info::read)
12563 (partial_die_info::read, lookup_die_type, follow_die_ref):
12564 Update.
12565 * dwarf2/attribute.c (attribute::get_ref_die_offset): New method,
12566 from dwarf2_get_ref_die_offset.
12567 (attribute::constant_value): New method, from
12568 dwarf2_get_attr_constant_value.
12569 * dwarf2/attribute.h (struct attribute) <get_ref_die_offset>:
12570 Declare method.
12571 <constant_value>: New method.
12572
2b2558bf
TT
125732020-03-26 Tom Tromey <tom@tromey.com>
12574
12575 * dwarf2/read.c (dwarf_unit_type_name, dwarf_tag_name)
12576 (dwarf_attr_name, dwarf_form_name, dwarf_bool_name)
12577 (dwarf_type_encoding_name): Move to stringify.c.
12578 * Makefile.in (COMMON_SFILES): Add dwarf2/stringify.c.
12579 * dwarf2/stringify.c: New file.
12580 * dwarf2/stringify.h: New file.
12581
eeb64781
TT
125822020-03-26 Tom Tromey <tom@tromey.com>
12583
12584 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>:
12585 Rewrite.
12586
a39fdb41
TT
125872020-03-26 Tom Tromey <tom@tromey.com>
12588
12589 * dwarf2/die.h (struct die_info) <addr_base, ranges_base>: New
12590 methods.
12591 * dwarf2/read.c (lookup_addr_base): Move to die.h.
12592 (lookup_ranges_base): Likewise.
12593 (read_cutu_die_from_dwo, read_full_die_1): Update.
12594
436c571c
TT
125952020-03-26 Tom Tromey <tom@tromey.com>
12596
12597 * dwarf2/read.c (read_import_statement, read_file_scope)
12598 (read_type_unit_scope, inherit_abstract_dies, read_func_scope)
12599 (read_lexical_block_scope, read_call_site_scope)
12600 (dwarf2_get_subprogram_pc_bounds, get_scope_pc_bounds)
12601 (handle_struct_member_die, process_structure_scope)
12602 (update_enumeration_type_from_children)
12603 (process_enumeration_scope, read_array_type, read_common_block)
12604 (read_namespace, read_module, read_subroutine_type): Update.
12605 (sibling_die): Remove.
12606
052c8bb8
TT
126072020-03-26 Tom Tromey <tom@tromey.com>
12608
12609 * dwarf2/read.c (lookup_addr_base, lookup_ranges_base)
12610 (build_type_psymtabs_reader, read_structure_type)
12611 (read_enumeration_type, read_full_die_1): Update.
12612 (dwarf2_attr_no_follow): Move to die.h.
12613 * dwarf2/die.h (struct die_info) <attr>: New method.
12614
2b24b6e4
TT
126152020-03-26 Tom Tromey <tom@tromey.com>
12616
12617 * dwarf2/read.c (struct dwarf2_cu) <base_known>: Remove.
12618 <base_address>: Now an optional.
12619 (dwarf2_find_base_address, dwarf2_rnglists_process)
12620 (dwarf2_ranges_process, fill_in_loclist_baton)
12621 (dwarf2_symbol_mark_computed): Update.
12622
c2d50fd0
TT
126232020-03-26 Tom Tromey <tom@tromey.com>
12624
12625 * dwarf2/read.c (struct die_info): Move to die.h.
12626 * dwarf2/die.h: New file.
12627
0df7ad3a
TT
126282020-03-26 Tom Tromey <tom@tromey.com>
12629
12630 * dwarf2/line-header.h (dwarf_decode_line_header): Declare.
12631 * dwarf2/read.c
12632 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12633 Move to line-header.c.
12634 (read_checked_initial_length_and_offset, read_formatted_entries):
12635 Likewise.
12636 (dwarf_decode_line_header): Split into two.
12637 * dwarf2/line-header.c
12638 (dwarf2_statement_list_fits_in_line_number_section_complaint):
12639 Move from read.c.
12640 (read_checked_initial_length_and_offset, read_formatted_entries):
12641 Likewise.
12642 (dwarf_decode_line_header): New function, split from read.c.
12643
86c0bb4c
TT
126442020-03-26 Tom Tromey <tom@tromey.com>
12645
12646 * dwarf2/read.h (struct dwarf2_per_objfile) <read_line_string>:
12647 Declare method.
12648 * dwarf2/read.c (read_attribute_value): Update.
12649 (dwarf2_per_objfile::read_line_string): Rename from
12650 read_indirect_line_string.
12651 (read_formatted_entries): Update.
12652
2ef46c2f
TT
126532020-03-26 Tom Tromey <tom@tromey.com>
12654
12655 * dwarf2/macro.c (dwarf_decode_macro_bytes): Use objfile local
12656 variable.
12657
4f9c1eda
TT
126582020-03-26 Tom Tromey <tom@tromey.com>
12659
12660 * dwarf2/macro.h (dwarf_decode_macros): Make section parameter
12661 const.
12662 * dwarf2/macro.c (skip_form_bytes, skip_unknown_opcode)
12663 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make section
12664 parameter const.
12665
5a0e026f
TT
126662020-03-26 Tom Tromey <tom@tromey.com>
12667
12668 * dwarf2/read.c (dwarf_decode_macros): Make "lh" const.
12669 * dwarf2/macro.h (dwarf_decode_macros): Constify "lh" parameter.
12670 * dwarf2/macro.c (macro_start_file): Constify "lh" parameter.
12671 (dwarf_decode_macro_bytes, dwarf_decode_macros): Likewise.
12672
8844c11b
TT
126732020-03-26 Tom Tromey <tom@tromey.com>
12674
12675 * dwarf2/line-header.h (struct line_header) <is_valid_file_index,
12676 file_names_size, file_full_name, file_file_name>: Use const.
12677 <file_name_at, file_names>: Add const overload.
12678 * dwarf2/line-header.c (line_header::file_file_name)
12679 (line_header::file_full_name): Update.
12680
c90ec28a
TT
126812020-03-26 Tom Tromey <tom@tromey.com>
12682
12683 * dwarf2/read.c (dwarf2_macro_malformed_definition_complaint)
12684 (macro_start_file, consume_improper_spaces)
12685 (parse_macro_definition, skip_form_bytes, skip_unknown_opcode)
12686 (dwarf_parse_macro_header, dwarf_decode_macro_bytes)
12687 (dwarf_decode_macros): Move to macro.c.
12688 * dwarf2/macro.c: New file.
12689 * dwarf2/macro.h: New file.
12690 * Makefile.in (COMMON_SFILES): Add dwarf2/macro.c.
12691
4f44ae6c
TT
126922020-03-26 Tom Tromey <tom@tromey.com>
12693
12694 * dwarf2/section.h (struct dwarf2_section_info) <read_string>: New
12695 method.
12696 * dwarf2/section.c: New method. From
12697 read_indirect_string_at_offset_from.
12698 * dwarf2/read.c (mapped_debug_names::namei_to_name): Update.
12699 (read_indirect_string_at_offset_from): Move to section.c.
12700 (read_indirect_string_at_offset): Rewrite.
12701 (read_indirect_line_string_at_offset): Remove.
12702 (read_indirect_string, read_indirect_line_string)
12703 (dwarf_decode_macro_bytes): Update.
12704
a0194fa8
TT
127052020-03-26 Tom Tromey <tom@tromey.com>
12706
12707 * dwarf2/section.h (struct dwarf2_section_info)
12708 <overload_complaint>: Declare.
12709 (dwarf2_section_buffer_overflow_complaint): Don't declare.
12710 * dwarf2/section.c (dwarf2_section_info::overflow_complaint):
12711 Rename from dwarf2_section_buffer_overflow_complaint.
12712 * dwarf2/read.c (skip_one_die, partial_die_info::read)
12713 (skip_form_bytes, dwarf_decode_macro_bytes): Update.
12714
3d27bbdb
TT
127152020-03-26 Tom Tromey <tom@tromey.com>
12716
12717 * dwarf2/section.h (dwarf2_section_buffer_overflow_complaint):
12718 Declare.
12719 * dwarf2/section.c (dwarf2_section_buffer_overflow_complaint):
12720 Move from read.c.
12721 * dwarf2/read.c (dwarf2_section_buffer_overflow_complaint): Move
12722 to section.c.
12723
9eac9650
TT
127242020-03-26 Tom Tromey <tom@tromey.com>
12725
12726 * dwarf2/read.c (dwarf_decode_macros): Split into two overloads.
12727
bf80d710
TT
127282020-03-26 Tom Tromey <tom@tromey.com>
12729
12730 * dwarf2/read.c (macro_start_file): Change "cu" parameter to
12731 "builder".
12732 (dwarf_decode_macro_bytes): Likewise. Add dwarf2_per_objfile
12733 parameter.
12734 (dwarf_decode_macros): Update.
12735
0314b390
TT
127362020-03-26 Tom Tromey <tom@tromey.com>
12737
12738 * dwarf2/read.c (read_attribute_value): Update.
12739 (read_indirect_string_from_dwz): Move to dwz.c; change into
12740 method.
12741 (dwarf_decode_macro_bytes): Update.
12742 * dwarf2/dwz.h (struct dwz_file) <read_string>: Declare method.
12743 * dwarf2/dwz.c: New file.
12744 * Makefile.in (COMMON_SFILES): Add dwz.c.
12745
9fda78b6
TT
127462020-03-26 Tom Tromey <tom@tromey.com>
12747
12748 * dwarf2/read.h (struct dwz_file): Move to dwz.h.
12749 * dwarf2/read.c: Add include.
12750 * dwarf2/index-write.c: Add include.
12751 * dwarf2/index-cache.c: Add include.
12752 * dwarf2/dwz.h: New file.
12753
33aa3c10
TT
127542020-03-25 Tom Tromey <tom@tromey.com>
12755
12756 * compile/compile-object-load.c (get_out_value_type): Mention
12757 correct symbol name in error message.
12758
d503b685
HD
127592020-03-25 Hannes Domani <ssbssa@yahoo.de>
12760
12761 * windows-nat.c (windows_add_all_dlls): Fix system dll paths.
12762
7b1eff95
TV
127632020-03-25 Tom de Vries <tdevries@suse.de>
12764
12765 * symtab.h (is_main_symtab_of_compunit_symtab): New function.
12766 * symmisc.c (dump_symtab_1): Print user and includes fields.
12767 (maintenance_info_symtabs): Same.
12768
dd895392
AB
127692020-03-25 Andrew Burgess <andrew.burgess@embecosm.com>
12770
12771 PR gdb/25534
12772 * riscv-tdep.c (riscv_arg_info::c_offset): Update comment.
12773 (riscv_regcache_cooked_write): New function.
12774 (riscv_push_dummy_call): Use new function.
12775 (riscv_return_value): Likewise.
12776
5ab2fbf1
SM
127772020-03-24 Simon Marchi <simon.marchi@polymtl.ca>
12778
12779 * fbsd-nat.c (fbsd_nat_target::follow_fork): Change bool to int.
12780 * fbsd-nat.h (class fbsd_nat_target) <follow_fork>: Likewise.
12781 * inf-ptrace.c (inf_ptrace_target::follow_fork): Likewise.
12782 * inf-ptrace.h (struct inf_ptrace_target) <follow_fork>: Likewise.
12783 * infrun.c (follow_fork): Likewise.
12784 (follow_fork_inferior): Likewise.
12785 * linux-nat.c (linux_nat_target::follow_fork): Likewise.
12786 * linux-nat.h (class linux_nat_target): Likewise.
12787 * remote.c (class remote_target) <follow_fork>: Likewise.
12788 (remote_target::follow_fork): Likewise.
12789 * target-delegates.c: Re-generate.
12790 * target.c (default_follow_fork): Likewise.
12791 (target_follow_fork): Likewise.
12792 * target.h (struct target_ops) <follow_fork>: Likewise.
12793 (target_follow_fork): Likewise.
12794
a64fafb5
TV
127952020-03-24 Tom de Vries <tdevries@suse.de>
12796
12797 * psymtab.c (maintenance_info_psymtabs): Print user field.
12798
fe26d3a3
TT
127992020-03-20 Tom Tromey <tromey@adacore.com>
12800
12801 * dwarf2/loc.h (dwarf2_evaluate_property): Make "addr_stack"
12802 const.
12803 * dwarf2/loc.c (dwarf2_evaluate_property): Make "addr_stack"
12804 const.
12805
c884cc46
SM
128062020-03-20 Simon Marchi <simon.marchi@efficios.com>
12807
12808 * ptrace.m4: Don't check for ptrace declaration.
12809 * config.in: Re-generate.
12810 * configure: Re-generate.
12811 * nat/gdb_ptrace.h: Don't declare ptrace if HAVE_DECL_PTRACE is
12812 not defined.
12813
1ff700c2
KR
128142020-03-20 Kamil Rytarowski <n54@gmx.com>
12815
12816 * amd64-bsd-nat.c (gdb_ptrace): Change return type from `int' to
12817 `PTRACE_TYPE_RET'.
12818 * i386-bsd-nat.c (gdb_ptrace): Likewise.
12819 * sparc-nat.c (gdb_ptrace): Likewise.
12820 * x86-bsd-nat.c (gdb_ptrace): Likewise.
12821
f7d4f0b1
TT
128222020-03-20 Tom Tromey <tromey@adacore.com>
12823
12824 * c-exp.y (lex_one_token): Fix assert.
12825
f67210ff
TT
128262020-03-20 Tom Tromey <tromey@adacore.com>
12827
12828 * ada-tasks.c (read_atcb): Use smaller length in strncpy call.
12829 * linux-tdep.c (linux_fill_prpsinfo): Use smaller length in
12830 strncpy call.
12831
1773be9e
TT
128322020-03-20 Tom Tromey <tromey@adacore.com>
12833
12834 * symmisc.c (maintenance_print_one_line_table): Use ui_out.
12835
70304be9
TT
128362020-03-20 Tom Tromey <tromey@adacore.com>
12837
12838 * ada-valprint.c (print_variant_part): Remove parameters; switch
12839 to value-based API.
12840 (print_field_values): Likewise.
12841 (ada_val_print_struct_union): Likewise.
12842 (ada_value_print_1): Update.
12843
9faa006d
KR
128442020-03-20 Kamil Rytarowski <n54@gmx.com>
12845
12846 * ppc-nbsd-nat.c (ppc_nbsd_nat_target): Inherit from
12847 nbsd_nat_target instead of inf_ptrace_target.
12848 * ppc-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12849 nbsd_nat_target.
12850
4a90f062
KR
128512020-03-20 Kamil Rytarowski <n54@gmx.com>
12852
12853 * hppa-nbsd-nat.c (fetch_registers): New variable lwp and pass
12854 it to the ptrace call.
12855 * (store_registers): Likewise.
12856
128572020-03-20 Kamil Rytarowski <n54@gmx.com>
c7da12c7
KR
12858
12859 * ppc-nbsd-nat.c (fetch_registers): New variable lwp and pass
12860 it to the ptrace call.
12861 * (store_registers): Likewise.
12862
2d07da27
LM
128632020-03-19 Luis Machado <luis.machado@linaro.org>
12864
12865 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): If vg is not
12866 valid, fetch vg value from ptrace.
12867
f09db380
KR
128682020-03-19 Kamil Rytarowski <n54@gmx.com>
12869 * inf-ptrace.h: Disable get_ptrace_pid on NetBSD.
12870 * inf-ptrace.c: Likewise.
12871 * (gdb_ptrace): Add.
12872 * (inf_ptrace_target::resume): Update.
12873 * (inf_ptrace_target::xfer_partial): Likewise.
12874 * (inf_ptrace_peek_poke): Change argument `pid' to `ptid'.
12875 * (inf_ptrace_peek_poke): Update.
12876
fcc7376e
KR
128772020-03-19 Kamil Rytarowski <n54@gmx.com>
12878
12879 * x86-bsd-nat.c (gdb_ptrace): New.
12880 * (x86bsd_dr_set): Add new argument `ptid'.
12881 * (x86bsd_dr_get, x86bsd_dr_set, x86bsd_dr_set_control,
12882 x86bsd_dr_set_addr): Update.
12883
cada5fc9
AB
128842020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12885
12886 * remote.c (remote_target::process_stop_reply): Handle events for
12887 all threads differently.
12888
19a2740f
AB
128892020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12890
12891 * completer.c (completion_tracker::remove_completion): Define new
12892 function.
12893 * completer.h (completion_tracker::remove_completion): Declare new
12894 function.
12895 * symtab.c (completion_list_add_symbol): Remove aliasing msymbols
12896 when adding a C++ function symbol.
12897
724fd9ba
AB
128982020-03-19 Andrew Burgess <andrew.burgess@embecosm.com>
12899
12900 * completer.c (completion_tracker::completion_hash_entry): Define
12901 new class.
12902 (advance_to_filename_complete_word_point): Call
12903 recompute_lowest_common_denominator.
12904 (completion_tracker::completion_tracker): Call discard_completions
12905 to setup the hash table.
12906 (completion_tracker::discard_completions): Allow for being called
12907 from the constructor, pass new equal function, and element deleter
12908 when constructing the hash table. Initialise new class member
12909 variables.
12910 (completion_tracker::maybe_add_completion): Remove use of
12911 m_entries_vec, and store more information into m_entries_hash.
12912 (completion_tracker::recompute_lcd_visitor): New function, most
12913 content taken from...
12914 (completion_tracker::recompute_lowest_common_denominator):
12915 ...here, this now just visits each item in the hash calling the
12916 above visitor.
12917 (completion_tracker::build_completion_result): Remove use of
12918 m_entries_vec, call recompute_lowest_common_denominator.
12919 * completer.h (completion_tracker::have_completions): Remove use
12920 of m_entries_vec.
12921 (completion_tracker::completion_hash_entry): Declare new class.
12922 (completion_tracker::recompute_lowest_common_denominator): Change
12923 function signature.
12924 (completion_tracker::recompute_lcd_visitor): Declare new function.
12925 (completion_tracker::m_entries_vec): Delete.
12926 (completion_tracker::m_entries_hash): Initialize to NULL.
12927 (completion_tracker::m_lowest_common_denominator_valid): New
12928 member variable.
12929 (completion_tracker::m_lowest_common_denominator_max_length): New
12930 member variable.
12931
5a82b8a1
KR
129322020-03-17 Kamil Rytarowski <n54@gmx.com>
12933
12934 * regformats/regdef.h: Put reg in gdb namespace.
12935
fb516a69
KR
129362020-03-17 Kamil Rytarowski <n54@gmx.com>
12937
12938 * i386-bsd-nat.c (gdb_ptrace): New.
12939 * (i386bsd_fetch_inferior_registers,
12940 i386bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12941 * (i386bsd_fetch_inferior_registers,
12942 i386bsd_store_inferior_registers) Use gdb_ptrace.
12943
1c0aa1fb
KR
129442020-03-17 Kamil Rytarowski <n54@gmx.com>
12945
12946 * amd64-bsd-nat.c (gdb_ptrace): New.
12947 * (amd64bsd_fetch_inferior_registers,
12948 amd64bsd_store_inferior_registers) Switch from pid_t to ptid_t.
12949 * (amd64bsd_fetch_inferior_registers,
12950 amd64bsd_store_inferior_registers) Use gdb_ptrace.
12951
5ccd2fb7
KR
129522020-03-17 Kamil Rytarowski <n54@gmx.com>
12953
12954 * user-regs.c (user_reg::read): Rename to...
12955 (user_reg::xread): ...this.
12956 * (append_user_reg): Rename argument `read' to `xread'.
12957 * (user_reg_add_builtin): Likewise.
12958 * (user_reg_add): Likewise.
12959 * (value_of_user_reg): Likewise.
12960
2108a63a
KR
129612020-03-17 Kamil Rytarowski <n54@gmx.com>
12962
12963 * sparc-nat.c (gdb_ptrace): New.
12964 * sparc-nat.c (sparc_fetch_inferior_registers)
12965 (sparc_store_inferior_registers) Remove obsolete comment.
12966 * sparc-nat.c (sparc_fetch_inferior_registers)
12967 (sparc_store_inferior_registers) Switch from pid_t to ptid_t.
12968 * sparc-nat.c (sparc_fetch_inferior_registers)
12969 (sparc_store_inferior_registers) Use gdb_ptrace.
12970
a225c9a8
KR
129712020-03-17 Kamil Rytarowski <n54@gmx.com>
12972
12973 * sh-nbsd-nat.c (fetch_registers): New variable lwp and pass
12974 it to the ptrace call.
12975 * sh-nbsd-nat.c (store_registers): Likewise.
12976
98097623
KR
129772020-03-17 Kamil Rytarowski <n54@gmx.com>
12978
12979 * sh-nbsd-nat.c (sh_nbsd_nat_target): Inherit from
12980 nbsd_nat_target instead of inf_ptrace_target.
12981 * sh-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
12982 nbsd_nat_target.
12983
9e38d619
KR
129842020-03-17 Kamil Rytarowski <n54@gmx.com>
12985
12986 * amd64-bsd-nat.c: Include amd64-bsd-nat.h".
12987
a2ecbe9f
KR
129882020-03-17 Kamil Rytarowski <n54@gmx.com>
12989
12990 * nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and
12991 <sys/sysctl.h>.
12992 * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite.
12993
58990295
TV
129942020-03-17 Tom de Vries <tdevries@suse.de>
12995
12996 PR gdb/23710
12997 * dwarf2/read.h (struct dwarf2_per_cu_data): Add unit_type and lang
12998 fields.
12999 * dwarf2/read.c (process_psymtab_comp_unit): Initialize unit_type and lang
13000 fields.
13001 (process_imported_unit_die): Skip import of c++ CUs.
13002
771dd3a8
TT
130032020-03-16 Tom Tromey <tom@tromey.com>
13004
13005 * p-valprint.c (pascal_object_print_value): Initialize
13006 base_value.
13007
817a7585
AK
130082020-03-16 Anton Kolesov <anton.kolesov@synopsys.com>
13009 Shahab Vahedi <shahab@synopsys.com>
13010
13011 * Makefile.in: Add arch/arc.o
13012 * configure.tgt: Likewise.
13013 * arc-tdep.c (arc_tdesc_init): Use arc_read_description.
13014 (_initialize_arc_tdep): Don't initialize old target descriptions.
aac66a4c 13015 (arc_read_description): New function to cache target descriptions.
817a7585
AK
13016 * arc-tdep.h (arc_read_description): Add proto type.
13017 * arch/arc.c: New file.
13018 * arch/arc.h: Likewise.
13019 * features/Makefile: Replace old target descriptions with new.
13020 * features/arc-arcompact.c: Remove.
13021 * features/arc-arcompact.xml: Likewise.
13022 * features/arc-v2.c: Likewise
13023 * features/arc-v2.xml: Likewise
13024 * features/arc/aux-arcompact.xml: New file.
13025 * features/arc/aux-v2.xml: Likewise.
13026 * features/arc/core-arcompact.xml: Likewise.
13027 * features/arc/core-v2.xml: Likewise.
13028 * features/arc/aux-arcompact.c: Generate.
13029 * features/arc/aux-v2.c: Likewise.
13030 * features/arc/core-arcompact.c: Likewise.
13031 * features/arc/core-v2.c: Likewise.
13032 * target-descriptions (maint_print_c_tdesc_cmd): Support ARC features.
13033
67430cd0
TT
130342020-03-16 Tom Tromey <tromey@adacore.com>
13035
13036 PR gdb/25663:
13037 * dwarf2/read.c (dwarf2_name): Strip leading namespaces after
13038 putting value into bcache.
13039
30efb6c7
SM
130402020-03-16 Simon Marchi <simon.marchi@efficios.com>
13041
13042 PR gdb/21500
13043 * amd64-windows-tdep.c (amd64_windows_init_abi): Rename
13044 to...
13045 (amd64_windows_init_abi_common): ... this. Don't set size of
13046 long type.
13047 (amd64_windows_init_abi): New function.
13048 (amd64_cygwin_init_abi): New function.
13049 (_initialize_amd64_windows_tdep): Use amd64_cygwin_init_abi for
13050 the Cygwin OS ABI.
13051 * i386-windows-tdep.c (_initialize_i386_windows_tdep): Clarify
13052 comment.
13053
8db52437
SM
130542020-03-16 Simon Marchi <simon.marchi@efficios.com>
13055
13056 * windows-tdep.h (is_linked_with_cygwin_dll): New declaration.
13057 * windows-tdep.c (CYGWIN_DLL_NAME): New.
13058 (pe_import_directory_entry): New struct type.
13059 (is_linked_with_cygwin_dll): New function.
13060 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Select
13061 GDB_OSABI_CYGWIN if the BFD is linked with the Cygwin DLL.
13062 * i386-windows-tdep.c (i386_windows_osabi_sniffer): Likewise.
13063
5982a56a
SM
130642020-03-16 Simon Marchi <simon.marchi@efficios.com>
13065
13066 * i386-windows-tdep.c: Mass-rename "cygwin" to "windows", except
13067 i386_cygwin_core_osabi_sniffer.
13068
7a1998df
SM
130692020-03-16 Simon Marchi <simon.marchi@efficios.com>
13070
13071 * i386-cygwin-tdep.c: Rename to...
13072 * i386-windows-tdep.c: ... this.
13073 * Makefile.in (ALL_TARGET_OBS): Rename i386-cygwin-tdep.c to
13074 i386-windows-tdep.c.
13075 * configure.tgt: Likewise.
13076
053205cc
SM
130772020-03-16 Simon Marchi <simon.marchi@efficios.com>
13078
13079 * osabi.h (enum gdb_osabi): Add GDB_OSABI_WINDOWS.
13080 * osabi.c (gdb_osabi_names): Add "Windows".
13081 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Return
13082 GDB_OSABI_WINDOWS when the binary's target is "pei-i386".
13083 (i386_cygwin_core_osabi_sniffer): New function, extracted from
13084 i386_cygwin_osabi_sniffer.
13085 (_initialize_i386_cygwin_tdep): Register OS ABI
13086 GDB_OSABI_WINDOWS for i386.
13087 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): Return
13088 GDB_OSABI_WINDOWS when the binary's target is "pei-x86-64".
13089 (_initialize_amd64_windows_tdep): Register OS ABI GDB_OSABI_WINDOWS
13090 for x86-64.
13091 * configure.tgt: Use GDB_OSABI_WINDOWS as the default OS ABI
13092 when the target matches '*-*-mingw*'.
13093
fe4b2ee6
SM
130942020-03-16 Simon Marchi <simon.marchi@efficios.com>
13095
13096 * defs.h (enum gdb_osabi): Move to...
13097 * osabi.h (enum gdb_osabi): ... here.
13098 * gdbarch.sh: Include osabi.h in gdbarch.h.
13099 * gdbarch.h: Re-generate.
13100
cb9b645d
SM
131012020-03-16 Simon Marchi <simon.marchi@efficios.com>
13102
13103 * amd64-windows-tdep.c (amd64_windows_osabi_sniffer): New
13104 function.
13105 (_initialize_amd64_windows_tdep): Register osabi sniffer.
13106
3293bbaf
TT
131072020-03-14 Tom Tromey <tom@tromey.com>
13108
13109 * c-typeprint.c (cp_type_print_method_args): Print "__restrict__"
13110 for C++.
13111 (c_type_print_modifier): Likewise. Add "language" parameter.
13112 (c_type_print_varspec_prefix, c_type_print_base_struct_union)
13113 (c_type_print_base_1): Update.
13114 * type-stack.h (enum type_pieces) <tp_atomic, tp_restrict>: New
13115 constants.
13116 * type-stack.c (type_stack::insert): Handle tp_atomic and
13117 tp_restrict.
13118 (type_stack::follow_type_instance_flags): Likewise.
13119 (type_stack::follow_types): Likewise. Merge type-following code.
13120 * c-exp.y (RESTRICT, ATOMIC): New tokens.
13121 (space_identifier, cv_with_space_id)
13122 (const_or_volatile_or_space_identifier_noopt)
13123 (const_or_volatile_or_space_identifier): Remove.
13124 (single_qualifier, qualifier_seq_noopt, qualifier_seq): New
13125 rules.
13126 (ptr_operator, typebase): Update.
13127 (enum token_flag) <FLAG_C>: New constant.
13128 (ident_tokens): Add "restrict", "__restrict__", "__restrict", and
13129 "_Atomic".
13130 (lex_one_token): Handle FLAG_C.
13131
154151a6
KR
131322020-03-14 Kamil Rytarowski <n54@gmx.com>
13133
13134 * m68k-bsd-nat.c (fetch_registers): New variable lwp and pass
13135 it to the ptrace call.
13136 * m68k-bsd-nat.c (store_registers): Likewise.
13137
bc107784
KR
131382020-03-14 Kamil Rytarowski <n54@gmx.com>
13139
13140 * m68k-bsd-nat.c (m68kbsd_supply_gregset): Change type of regs to
13141 gdb_byte *.
13142 * m68k-bsd-nat.c (m68kbsd_supply_fpregset): Likewise.
13143 * m68k-bsd-nat.c (m68kbsd_collect_gregset): Likewise.
13144 * m68k-bsd-nat.c (m68kbsd_supply_pcb): Cast &tmp to gdb_byte *.
13145
01a80117
KR
131462020-03-14 Kamil Rytarowski <n54@gmx.com>
13147
13148 * m68k-bsd-nat.c (m68k_bsd_nat_target): Inherit from
13149 nbsd_nat_target instead of inf_ptrace_target.
13150 * m68k-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13151 nbsd_nat_target.
13152
f90280ca
KR
131532020-03-14 Kamil Rytarowski <n54@gmx.com>
13154
13155 * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of
13156 register_t.
13157
6def66f1
KR
131582020-03-14 Kamil Rytarowski <n54@gmx.com>
13159
13160 * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass
13161 it to the ptrace call.
13162 * alpha-bsd-nat.c (store_registers): Likewise.
13163
66eaca97
KR
131642020-03-14 Kamil Rytarowski <n54@gmx.com>
13165
13166 * alpha-bsd-nat.c: Remove <sys/procfs.h> and "gregset.h" from
13167 includes.
13168 * alpha-bsd-nat.c (gregset_t, fpregset_t): Remove.
13169 * alpha-bsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
13170 fill_fpregset): Likewise.
13171
4fed520b
KR
131722020-03-14 Kamil Rytarowski <n54@gmx.com>
13173
13174 * alpha-bsd-nat.c (alpha_netbsd_nat_target): Inherit from
13175 nbsd_nat_target instead of inf_ptrace_target.
13176 * alpha-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13177 nbsd_nat_target.
13178
2190cf06
KR
131792020-03-14 Kamil Rytarowski <n54@gmx.com>
13180
13181 * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of
13182 register_t.
13183
75c56d3d
KR
131842020-03-14 Kamil Rytarowski <n54@gmx.com>
13185
13186 * arm-nbsd-nat.c (fetch_register): New variable lwp and pass
13187 it to the ptrace call.
13188 * arm-nbsd-nat.c (fetch_fp_register): Likewise.
13189 * arm-nbsd-nat.c (fetch_fp_regs): Likewise.
13190 * arm-nbsd-nat.c (store_register): Likewise.
13191 * arm-nbsd-nat.c (store_regs): Likewise.
13192 * arm-nbsd-nat.c (store_fp_register): Likewise.
13193 * arm-nbsd-nat.c (store_fp_regs): Likewise.
13194
6018d381
KR
131952020-03-14 Kamil Rytarowski <n54@gmx.com>
13196
13197 * arm-nbsd-nat.c (arm_netbsd_nat_target): Inherit from
13198 nbsd_nat_target instead of inf_ptrace_target.
13199 * arm-nbsd-nat.c: Include "nbsd-nat.h", as we are now using
13200 nbsd_nat_target.
13201
013f99f0
KR
132022020-03-14 Kamil Rytarowski <n54@gmx.com>
13203
13204 * x86-bsd-nat.c (x86bsd_dr_get): New variable lwp and pass
13205 it to the ptrace call.
13206 * x86-bsd-nat.c (x86bsd_dr_set): Likewise.
13207
12753073
KR
132082020-03-14 Kamil Rytarowski <n54@gmx.com>
13209
6227b330
KR
13210 * vax-bsd-nat.c (vaxbsd_supply_gregset): New variable lwp and pass
13211 it to the ptrace call.
13212 * vax-bsd-nat.c (vaxbsd_collect_gregset): Likewise.
13213
132142020-03-14 Kamil Rytarowski <n54@gmx.com>
13215
13216 * vax-bsd-nat.c (vaxbsd_supply_gregset): Cast gregs to const
13217 gdb_byte *.
12753073
KR
13218 * vax-bsd-nat.c (vaxbsd_collect_gregset): Cast gregs to void *.
13219
d5be5fa4
KR
132202020-03-14 Kamil Rytarowski <n54@gmx.com>
13221
13222 * vax-bsd-nat.c (vax_bsd_nat_target): Inherit from nbsd_nat_target
13223 instead of inf_ptrace_target.
13224 * vax-bsd-nat.c: Include "nbsd-nat.h", as we are now using
13225 nbsd_nat_target.
13226
8110f842
KR
132272020-03-14 Kamil Rytarowski <n54@gmx.com>
13228
13229 * mips-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13230 register_t.
13231
52feded7
KR
132322020-03-14 Kamil Rytarowski <n54@gmx.com>
13233
13234 * ppc-nbsd-nat.c: Define _KERNTYPES to get the declaration of
13235 register_t.
13236
25567eee
KR
132372020-03-14 Kamil Rytarowski <n54@gmx.com>
13238
13239 * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of
13240 register_t.
13241
426a9c18
TT
132422020-03-13 Tom Tromey <tom@tromey.com>
13243
13244 * value.h (val_print): Don't declare.
13245 * valprint.h (val_print_array_elements)
13246 (val_print_scalar_formatted, generic_val_print): Don't declare.
13247 * valprint.c (generic_val_print_array): Take a struct value.
13248 (generic_val_print_ptr, generic_val_print_memberptr)
13249 (generic_val_print_bool, generic_val_print_int)
13250 (generic_val_print_char, generic_val_print_complex)
13251 (generic_val_print): Remove.
13252 (generic_value_print): Update.
13253 (do_val_print): Remove unused parameters. Don't call
13254 la_val_print.
13255 (val_print): Remove.
13256 (common_val_print): Update. Don't call value_check_printable.
13257 (val_print_scalar_formatted, val_print_array_elements): Remove.
13258 * rust-lang.c (rust_val_print): Remove.
13259 (rust_language_defn): Update.
13260 * p-valprint.c (pascal_val_print): Remove.
13261 (pascal_value_print_inner): Update.
13262 (pascal_object_print_val_fields, pascal_object_print_val):
13263 Remove.
13264 (pascal_object_print_static_field): Update.
13265 * p-lang.h (pascal_val_print): Don't declare.
13266 * p-lang.c (pascal_language_defn): Update.
13267 * opencl-lang.c (opencl_language_defn): Update.
13268 * objc-lang.c (objc_language_defn): Update.
13269 * m2-valprint.c (m2_print_unbounded_array, m2_val_print): Remove.
13270 * m2-lang.h (m2_val_print): Don't declare.
13271 * m2-lang.c (m2_language_defn): Update.
13272 * language.h (struct language_defn) <la_val_print>: Remove.
13273 * language.c (unk_lang_value_print_inner): Rename. Change
13274 argument types.
13275 (unknown_language_defn, auto_language_defn): Update.
13276 * go-valprint.c (go_val_print): Remove.
13277 * go-lang.h (go_val_print): Don't declare.
13278 * go-lang.c (go_language_defn): Update.
13279 * f-valprint.c (f_val_print): Remove.
13280 * f-lang.h (f_value_print): Don't declare.
13281 * f-lang.c (f_language_defn): Update.
13282 * d-valprint.c (d_val_print): Remove.
13283 * d-lang.h (d_value_print): Don't declare.
13284 * d-lang.c (d_language_defn): Update.
13285 * cp-valprint.c (cp_print_value_fields)
13286 (cp_print_value_fields_rtti, cp_print_value): Remove.
13287 (cp_print_static_field): Update.
13288 * c-valprint.c (c_val_print_array, c_val_print_ptr)
13289 (c_val_print_struct, c_val_print_union, c_val_print_int)
13290 (c_val_print_memberptr, c_val_print): Remove.
13291 * c-lang.h (c_val_print_array, cp_print_value_fields)
13292 (cp_print_value_fields_rtti): Don't declare.
13293 * c-lang.c (c_language_defn, cplus_language_defn)
13294 (asm_language_defn, minimal_language_defn): Update.
13295 * ada-valprint.c (ada_val_print_ptr, ada_val_print_num): Remove.
13296 (ada_val_print_enum): Take a struct value.
13297 (ada_val_print_flt, ada_val_print_array, ada_val_print_1)
13298 (ada_val_print): Remove.
13299 (ada_value_print_1): Update.
13300 (printable_val_type): Remove.
13301 * ada-lang.h (ada_val_print): Don't declare.
13302 * ada-lang.c (ada_language_defn): Update.
13303
42331a1e
TT
133042020-03-13 Tom Tromey <tom@tromey.com>
13305
13306 * valprint.c (do_val_print): Update.
13307 * python/python-internal.h (gdbpy_apply_val_pretty_printer): Take
13308 a struct value.
13309 (value_to_value_object_no_release): Declare.
13310 * python/py-value.c (value_to_value_object_no_release): New
13311 function.
13312 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Take a
13313 struct value.
13314 * guile/scm-value.c (vlscm_scm_from_value_no_release): New
13315 function.
13316 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer): Take
13317 a struct value.
13318 * guile/guile-internal.h (vlscm_scm_from_value_no_release):
13319 Declare.
13320 (gdbscm_apply_val_pretty_printer): Take a struct value.
13321 * extension.h (apply_ext_lang_val_pretty_printer): Take a struct
13322 value.
13323 * extension.c (apply_ext_lang_val_pretty_printer): Take a struct
13324 value.
13325 * extension-priv.h (struct extension_language_ops)
13326 <apply_val_pretty_printer>: Take a struct value.
13327 * cp-valprint.c (cp_print_value): Create a struct value.
13328 (cp_print_value): Update.
13329
3a916a97
TT
133302020-03-13 Tom Tromey <tom@tromey.com>
13331
13332 * ada-valprint.c (print_field_values): Call common_val_print.
13333
b59eac37
TT
133342020-03-13 Tom Tromey <tom@tromey.com>
13335
13336 * ada-valprint.c (val_print_packed_array_elements): Remove
13337 bitoffset and val parameters. Call common_val_print.
13338 (ada_val_print_string): Remove offset, address, and original_value
13339 parameters.
13340 (ada_val_print_array): Update.
13341 (ada_value_print_array): New function.
13342 (ada_value_print_1): Call it.
13343
03371129
TT
133442020-03-13 Tom Tromey <tom@tromey.com>
13345
13346 * ada-valprint.c (ada_value_print): Use common_val_print.
13347
2e088f8b
TT
133482020-03-13 Tom Tromey <tom@tromey.com>
13349
13350 * ada-valprint.c (ada_val_print_ref): Use common_val_print.
13351
39ef85a8
TT
133522020-03-13 Tom Tromey <tom@tromey.com>
13353
13354 * ada-valprint.c (ada_value_print_num): New function.
13355 (ada_value_print_1): Use it.
13356
b9fa6e07
TT
133572020-03-13 Tom Tromey <tom@tromey.com>
13358
13359 * ada-valprint.c (ada_value_print_1) <TYPE_CODE_FLT>: Rewrite.
13360
416595d6
TT
133612020-03-13 Tom Tromey <tom@tromey.com>
13362
13363 * ada-valprint.c (ada_value_print_ptr): New function.
13364 (ada_value_print_1): Use it.
13365
5b5e15ec
TT
133662020-03-13 Tom Tromey <tom@tromey.com>
13367
13368 * ada-valprint.c (ada_val_print_gnat_array): Take a struct value;
13369 call common_val_print.
13370 (ada_val_print_1): Update.
13371 (ada_value_print_1): New function.
13372 (ada_value_print_inner): Rewrite.
13373
fbf54e75
TT
133742020-03-13 Tom Tromey <tom@tromey.com>
13375
13376 * cp-valprint.c (cp_print_value_fields): Update.
13377 (cp_print_value): New function.
13378
64b653ca
TT
133792020-03-13 Tom Tromey <tom@tromey.com>
13380
13381 * m2-valprint.c (m2_value_print_inner): Use
13382 cp_print_value_fields.
13383 * cp-valprint.c (cp_print_value_fields): New function.
13384 * c-valprint.c (c_value_print_struct): New function.
13385 (c_value_print_inner): Use c_value_print_struct.
13386 * c-lang.h (cp_print_value_fields): Declare.
13387
6999f067
TT
133882020-03-13 Tom Tromey <tom@tromey.com>
13389
13390 * c-valprint.c (c_value_print_array): New function.
13391 (c_value_print_inner): Use it.
13392
ce80b8bd
TT
133932020-03-13 Tom Tromey <tom@tromey.com>
13394
13395 * c-valprint.c (c_value_print_memberptr): New function.
13396 (c_value_print_inner): Use it.
13397
2faac269
TT
133982020-03-13 Tom Tromey <tom@tromey.com>
13399
13400 * c-valprint.c (c_value_print_int): New function.
13401 (c_value_print_inner): Use it.
13402
da3e2c29
TT
134032020-03-13 Tom Tromey <tom@tromey.com>
13404
13405 * c-valprint.c (c_value_print_ptr): New function.
13406 (c_value_print_inner): Use it.
13407
50836231
TT
134082020-03-13 Tom Tromey <tom@tromey.com>
13409
13410 * c-valprint.c (c_value_print_inner): Rewrite.
13411
4f412b6e
TT
134122020-03-13 Tom Tromey <tom@tromey.com>
13413
13414 * valprint.c (generic_value_print_complex): New function.
13415 (generic_value_print): Use it.
13416
f5354008
TT
134172020-03-13 Tom Tromey <tom@tromey.com>
13418
13419 * valprint.c (generic_val_print_float): Don't call
13420 val_print_scalar_formatted.
13421 (generic_val_print, generic_value_print): Update.
13422
3eec3b05
TT
134232020-03-13 Tom Tromey <tom@tromey.com>
13424
13425 * valprint.c (generic_value_print_char): New function
13426 (generic_value_print): Use it.
13427
fdddfccb
TT
134282020-03-13 Tom Tromey <tom@tromey.com>
13429
13430 * valprint.c (generic_value_print_int): New function.
13431 (generic_value_print): Use it.
13432
6dde7521
TT
134332020-03-13 Tom Tromey <tom@tromey.com>
13434
13435 * valprint.c (generic_value_print_bool): New function.
13436 (generic_value_print): Use it.
13437
4112d2e6
TT
134382020-03-13 Tom Tromey <tom@tromey.com>
13439
13440 * valprint.c (generic_val_print_func): Simplify.
13441 (generic_val_print, generic_value_print): Update.
13442
65786af6
TT
134432020-03-13 Tom Tromey <tom@tromey.com>
13444
13445 * valprint.c (generic_val_print_flags): Remove.
13446 (generic_val_print, generic_value_print): Update.
13447 (val_print_type_code_flags): Add original_value parameter.
13448
40f3ce18
TT
134492020-03-13 Tom Tromey <tom@tromey.com>
13450
13451 * valprint.c (generic_val_print): Update.
13452 (generic_value_print): Update.
13453 * valprint.c (generic_val_print_enum): Don't call
13454 val_print_scalar_formatted.
13455
2a5b130b
TT
134562020-03-13 Tom Tromey <tom@tromey.com>
13457
13458 * valprint.c (generic_value_print): Call generic_value_print_ptr.
13459 * valprint.c (generic_value_print_ptr): New function.
13460
abc66ce9
TT
134612020-03-13 Tom Tromey <tom@tromey.com>
13462
13463 * valprint.c (generic_value_print): Rewrite.
13464
07a32858
TT
134652020-03-13 Tom Tromey <tom@tromey.com>
13466
13467 * p-valprint.c (pascal_object_print_value_fields)
13468 (pascal_object_print_value): New functions.
13469
64d64d3a
TT
134702020-03-13 Tom Tromey <tom@tromey.com>
13471
13472 * p-valprint.c (pascal_value_print_inner): Rewrite.
13473
6a95a1f5
TT
134742020-03-13 Tom Tromey <tom@tromey.com>
13475
13476 * f-valprint.c (f_value_print_innner): Rewrite.
13477
59fcdac6
TT
134782020-03-13 Tom Tromey <tom@tromey.com>
13479
13480 * m2-valprint.c (m2_print_unbounded_array): New overload.
13481 (m2_print_unbounded_array): Update.
13482 (m2_print_array_contents): Take a struct value.
13483 (m2_value_print_inner): Rewrite.
13484
d133c3e1
TT
134852020-03-13 Tom Tromey <tom@tromey.com>
13486
13487 * d-valprint.c (dynamic_array_type): Call d_value_print_inner.
13488 (d_value_print_inner): New function.
13489 * d-lang.h (d_value_print_inner): Declare.
13490 * d-lang.c (d_language_defn): Use d_value_print_inner.
13491
23b0f06b
TT
134922020-03-13 Tom Tromey <tom@tromey.com>
13493
13494 * go-valprint.c (go_value_print_inner): New function.
13495 * go-lang.h (go_value_print_inner): Declare.
13496 * go-lang.c (go_language_defn): Use go_value_print_inner.
13497
5f56f7cb
TT
134982020-03-13 Tom Tromey <tom@tromey.com>
13499
13500 * rust-lang.c (val_print_struct, rust_print_enum): Use the value
13501 API.
13502 (rust_val_print): Rewrite.
13503 (rust_value_print_inner): New function, from rust_val_print.
13504 (rust_language_defn): Use rust_value_print_inner.
13505
26792ee0
TT
135062020-03-13 Tom Tromey <tom@tromey.com>
13507
13508 * ada-valprint.c (ada_value_print_inner): New function.
13509 * ada-lang.h (ada_value_print_inner): Declare.
13510 * ada-lang.c (ada_language_defn): Use ada_value_print_inner.
13511
24051bbe
TT
135122020-03-13 Tom Tromey <tom@tromey.com>
13513
13514 * f-valprint.c (f_value_print_innner): New function.
13515 * f-lang.h (f_value_print_innner): Declare.
13516 * f-lang.c (f_language_defn): Use f_value_print_innner.
13517
c0941be6
TT
135182020-03-13 Tom Tromey <tom@tromey.com>
13519
13520 * p-valprint.c (pascal_value_print_inner): New function.
13521 * p-lang.h (pascal_value_print_inner): Declare.
13522 * p-lang.c (pascal_language_defn): Use pascal_value_print_inner.
13523
62c4663d
TT
135242020-03-13 Tom Tromey <tom@tromey.com>
13525
13526 * m2-valprint.c (m2_value_print_inner): New function.
13527 * m2-lang.h (m2_value_print_inner): Declare.
13528 * m2-lang.c (m2_language_defn): Use m2_value_print_inner.
13529
62182190
TT
135302020-03-13 Tom Tromey <tom@tromey.com>
13531
13532 * opencl-lang.c (opencl_language_defn): Use c_value_print_inner.
13533 * objc-lang.c (objc_language_defn): Use c_value_print_inner.
13534 * c-valprint.c (c_value_print_inner): New function.
13535 * c-lang.h (c_value_print_inner): Declare.
13536 * c-lang.c (c_language_defn, cplus_language_defn)
13537 (asm_language_defn, minimal_language_defn): Use
13538 c_value_print_inner.
13539
1e592a8a
TT
135402020-03-13 Tom Tromey <tom@tromey.com>
13541
13542 * p-valprint.c (pascal_object_print_value_fields): Now static.
13543 * p-lang.h (pascal_object_print_value_fields): Don't declare.
13544
7fe471e9
TT
135452020-03-13 Tom Tromey <tom@tromey.com>
13546
13547 * c-valprint.c (c_val_print_array): Simplify.
13548
d121c6ce
TT
135492020-03-13 Tom Tromey <tom@tromey.com>
13550
13551 * valprint.c (value_print_array_elements): New function.
13552 * valprint.h (value_print_array_elements): Declare.
13553
4dba70ee
TT
135542020-03-13 Tom Tromey <tom@tromey.com>
13555
13556 * printcmd.c (print_formatted): Use value_print_scalar_formatted.
13557 * mips-tdep.c (mips_print_register): Use
13558 value_print_scalar_formatted.
13559
4f9ae810
TT
135602020-03-13 Tom Tromey <tom@tromey.com>
13561
13562 * valprint.h (value_print_scalar_formatted): Declare.
13563 * valprint.c (value_print_scalar_formatted): New function.
13564
156bfec9
TT
135652020-03-13 Tom Tromey <tom@tromey.com>
13566
13567 * valprint.h (generic_value_print): Declare.
13568 * valprint.c (generic_value_print): New function.
13569
2b4e573d
TT
135702020-03-13 Tom Tromey <tom@tromey.com>
13571
13572 * valprint.c (do_val_print): Call la_value_print_inner, if
13573 available.
13574 * rust-lang.c (rust_language_defn): Update.
13575 * p-lang.c (pascal_language_defn): Update.
13576 * opencl-lang.c (opencl_language_defn): Update.
13577 * objc-lang.c (objc_language_defn): Update.
13578 * m2-lang.c (m2_language_defn): Update.
13579 * language.h (struct language_defn) <la_value_print_inner>: New
13580 member.
13581 * language.c (unknown_language_defn, auto_language_defn): Update.
13582 * go-lang.c (go_language_defn): Update.
13583 * f-lang.c (f_language_defn): Update.
13584 * d-lang.c (d_language_defn): Update.
13585 * c-lang.c (c_language_defn, cplus_language_defn)
13586 (asm_language_defn, minimal_language_defn): Update.
13587 * ada-lang.c (ada_language_defn): Update.
13588
a1f6a07c
TT
135892020-03-13 Tom Tromey <tom@tromey.com>
13590
13591 * c-valprint.c (c_value_print): Use common_val_print.
13592
410cf315
TT
135932020-03-13 Tom Tromey <tom@tromey.com>
13594
13595 * cp-valprint.c (cp_print_static_field): Use common_val_print.
13596
72a45c93
TT
135972020-03-13 Tom Tromey <tom@tromey.com>
13598
13599 * f-valprint.c (f77_print_array_1, f_val_print): Use
13600 common_val_print.
13601
040f66bd
TT
136022020-03-13 Tom Tromey <tom@tromey.com>
13603
13604 * riscv-tdep.c (riscv_print_one_register_info): Use
13605 common_val_print.
13606
a6e05a6c
TT
136072020-03-13 Tom Tromey <tom@tromey.com>
13608
13609 * mi/mi-main.c (output_register): Use common_val_print.
13610
3444c526
TT
136112020-03-13 Tom Tromey <tom@tromey.com>
13612
13613 * infcmd.c (default_print_one_register_info): Use
13614 common_val_print.
13615
c2a44efe
TT
136162020-03-13 Tom Tromey <tom@tromey.com>
13617
13618 * valprint.h (common_val_print_checked): Declare.
13619 * valprint.c (common_val_print_checked): New function.
13620 * stack.c (print_frame_arg): Use common_val_print_checked.
13621
b0c26e99
TT
136222020-03-13 Tom Tromey <tom@tromey.com>
13623
13624 * valprint.c (do_val_print): New function, from val_print.
13625 (val_print): Use do_val_print.
13626 (common_val_print): Use do_val_print.
13627
ce3acbe9
TT
136282020-03-13 Tom Tromey <tom@tromey.com>
13629
13630 * valprint.c (value_print): Use scoped_value_mark.
13631
96c7f873
TV
136322020-03-13 Tom de Vries <tdevries@suse.de>
13633
13634 PR symtab/25646
13635 * psymtab.c (partial_symtab::partial_symtab): Don't set
13636 globals_offset and statics_offset. Push element onto
13637 current_global_psymbols and current_static_psymbols stacks.
13638 (concat): New function.
13639 (end_psymtab_common): Set globals_offset and statics_offset. Pop
13640 element from current_global_psymbols and current_static_psymbols
13641 stacks. Concat popped elements to global_psymbols and
13642 static_symbols.
13643 (add_psymbol_to_list): Use current_global_psymbols and
13644 current_static_psymbols stacks.
13645 * psymtab.h (class psymtab_storage): Add current_global_psymbols and
13646 current_static_psymbols fields.
13647
6ba0a321
CB
136482020-03-12 Christian Biesinger <cbiesinger@google.com>
13649
13650 * corelow.c (sniff_core_bfd): Remove.
13651 (class core_target) <m_core_vec>: Remove.
13652 (core_target::core_target): Update.
13653 (core_file_fns): Remove.
13654 (deprecated_add_core_fns): Remove.
13655 (default_core_sniffer): Remove.
13656 (sniff_core_bfd): Remove.
13657 (default_check_format): Remove.
13658 (gdb_check_format): Remove.
13659 (core_target_open): Update.
13660 (core_target::get_core_register_section): Update.
13661 (get_core_registers_cb): Update.
13662 (core_target::fetch_registers): Update.
13663 * gdbcore.h (struct core_fns): Remove.
13664 (deprecated_add_core_fns): Remove.
13665 (default_core_sniffer): Remove.
13666 (default_check_format): Remove.
13667
227031b2
TT
136682020-03-12 Tom Tromey <tom@tromey.com>
13669
13670 * arm-tdep.c (struct arm_mapping_symbol) <value>: Now a
13671 CORE_ADDR.
13672 (struct arm_exidx_entry) <addr>: Now a CORE_ADDR.
13673
53807e9f
TT
136742020-03-12 Tom Tromey <tom@tromey.com>
13675
13676 * remote.c (remote_target::download_tracepoint)
13677 (remote_target::enable_tracepoint)
13678 (remote_target::disable_tracepoint): Use phex, not sprintf_vma.
13679 * breakpoint.c (print_recreate_masked_watchpoint): Use phex, not
13680 sprintf_vma.
13681
64f25102
TT
136822020-03-12 Tom Tromey <tom@tromey.com>
13683
13684 * symfile-mem.c: Update CORE_ADDR size assert.
13685
272cd5a3
SM
136862020-03-12 Simon Marchi <simon.marchi@efficios.com>
13687
13688 * selftest.m4: Move to gdbsupport/.
13689 * acinclude.m4: Update path to selftest.m4.
13690
74cd3f9d
SM
136912020-03-12 Simon Marchi <simon.marchi@efficios.com>
13692
13693 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Rename to...
13694 (SELFTESTS_SRCS): ... this. Add disasm-selftests.c,
13695 gdbarch-selfselftests.c and selftest-arch.c.
13696 (SUBDIR_UNITTESTS_OBS): Rename to...
13697 (SELFTESTS_OBS): ... this.
13698 (COMMON_SFILES): Remove disasm-selftests.c and
13699 gdbarch-selftests.c.
13700 * configure.ac: Don't add selftest-arch.{c,o} to
13701 CONFIG_{SRCS,OBS}.
13702 * disasm-selftests.c, gdbarch-selftests.c: Remove GDB_SELF_TEST
13703 preprocessor conditions.
13704
db6878ac
SM
137052020-03-12 Simon Marchi <simon.marchi@efficios.com>
13706
13707 * configure.ac: Don't source bfd/development.sh.
13708 * selftest.m4: Modify comment.
13709 * configure: Re-generate.
13710
4d696a5c
SM
137112020-03-12 Simon Marchi <simon.marchi@efficios.com>
13712
13713 * selftest.m4 (GDB_AC_SELFTEST): Error out if $development is
13714 not "true" or "false".
13715 * configure: Re-generate.
13716
8dd8e1c7
CB
137172020-03-12 Christian Biesinger <cbiesinger@google.com>
13718
13719 * Makefile.in (HFILES_NO_SRCDIR): Add new arm-nbsd-tdep.h file.
13720 * arm-nbsd-nat.c (arm_supply_gregset): Moved to arm-nbsd-tdep and
13721 renamed to arm_nbsd_supply_gregset.
13722 (fetch_register): Update to call arm_nbsd_supply_gregset.
13723 (fetch_regs): Remove in favor of fetch_register with a -1 regno.
13724 (arm_netbsd_nat_target::fetch_registers): Update.
13725 (fetch_elfcore_registers): Removed.
13726 (_initialize_arm_netbsd_nat): Removed call to deprecated_add_core_fns.
13727 * arm-nbsd-tdep.c (struct arm_nbsd_reg): New struct.
13728 (arm_nbsd_supply_gregset): Moved from arm-nbsd-nat.c and updated to
13729 not require NetBSD system headers.
13730 (arm_nbsd_regset): New struct.
13731 (arm_nbsd_iterate_over_regset_sections): New function.
13732 (arm_netbsd_init_abi_common): Updated to call
13733 set_gdbarch_iterate_over_regset_sections.
13734 * arm-nbsd-tdep.h: New file.
13735
dd69bf7a
KB
137362020-03-11 Kevin Buettner <kevinb@redhat.com>
13737
13738 * symtab.c (find_pc_sect_line): Add check which prevents infinite
13739 recursion.
13740
a0761e34
SM
137412020-03-11 Simon Marchi <simon.marchi@efficios.com>
13742
13743 * configure: Re-generate.
13744
e7a82140
TT
137452020-03-11 Tom Tromey <tromey@adacore.com>
13746
13747 * ada-typeprint.c (print_choices): Fix comment.
13748
dcc050c8
AB
137492020-03-11 Andrew Burgess <andrew.burgess@embecosm.com>
13750
13751 * buildsyms.c (buildsym_compunit::record_line): Avoid accessing
13752 previous item in the list, when the list has no items.
13753
1c33af77
TV
137542020-03-11 Tom de Vries <tdevries@suse.de>
13755
13756 * dwarf2/loc.c (dwarf2_evaluate_property): Handle NULL frame in
13757 PROP_LOCLIST handling code.
13758
8c95582d
AB
137592020-03-10 Andrew Burgess <andrew.burgess@embecosm.com>
13760
13761 * buildsym-legacy.c (record_line): Pass extra parameter to
13762 record_line.
13763 * buildsym.c (buildsym_compunit::record_line): Take an extra
13764 parameter, reduce duplication in the line table, and record the
13765 is_stmt flag in the line table.
13766 * buildsym.h (buildsym_compunit::record_line): Add extra
13767 parameter.
13768 * disasm.c (do_mixed_source_and_assembly_deprecated): Ignore
13769 non-statement lines.
13770 * dwarf2/read.c (dwarf_record_line_1): Add extra parameter, pass
13771 this to the symtab builder.
13772 (dwarf_finish_line): Pass extra parameter to dwarf_record_line_1.
13773 (lnp_state_machine::record_line): Pass a suitable is_stmt flag
13774 through to dwarf_record_line_1.
13775 * infrun.c (process_event_stop_test): When stepping, don't stop at
13776 a non-statement instruction, and only refresh the step info when
13777 we land in the middle of a line's range. Also add an extra
13778 comment.
13779 * jit.c (jit_symtab_line_mapping_add_impl): Initialise is_stmt
13780 field.
13781 * record-btrace.c (btrace_find_line_range): Only record lines
13782 marked as is-statement.
13783 * stack.c (frame_show_address): Show the frame address if we are
13784 in a non-statement sal.
13785 * symmisc.c (dump_symtab_1): Print the is_stmt flag.
13786 (maintenance_print_one_line_table): Print a header for the is_stmt
13787 column, and include is_stmt information in the output.
13788 * symtab.c (find_pc_sect_line): Find lines marked as statements in
13789 preference to non-statements.
13790 (find_pcs_for_symtab_line): Prefer is-statement entries.
13791 (find_line_common): Likewise.
13792 * symtab.h (struct linetable_entry): Add is_stmt field.
13793 (struct symtab_and_line): Likewise.
13794 * xcoffread.c (arrange_linetable): Initialise is_stmt field when
13795 arranging the line table.
13796
e4003a34
TV
137972020-03-07 Tom de Vries <tdevries@suse.de>
13798
13799 * dwarf2/read.c (read_typedef): Treat anonymous typedef as forwarder
13800 DIE.
13801
e8932576
TT
138022020-03-07 Tom Tromey <tom@tromey.com>
13803
13804 * valops.c (value_literal_complex): Remove obsolete comment.
13805 * gdbtypes.h (enum type_code) <TYPE_CODE_FLT>: Remove obsolete
13806 comment.
13807
29734269
SM
138082020-03-06 Simon Marchi <simon.marchi@polymtl.ca>
13809
13810 * infrun.h: Forward-declare thread_info.
13811 (set_step_info): Add thread_info parameter, add doc.
13812 * infrun.c (set_step_info): Add thread_info parameter, move doc
13813 to header.
13814 * infrun.c (process_event_stop_test): Pass thread to
13815 set_step_info call.
13816 * infcmd.c (set_step_frame): Add thread_info pointer, pass it to
13817 set_step_info.
13818 (prepare_one_step): Add thread_info parameter, pass it to
13819 set_step_frame and prepare_one_step (recursive) call.
13820 (step_1): Pass thread to prepare_one_step call.
13821 (step_command_fsm::should_stop): Pass thread to
13822 prepare_one_step.
13823 (until_next_fsm): Pass thread to set_step_frame call.
13824 (finish_command): Pass thread to set_step_info call.
13825
b7d64b29
HD
138262020-03-06 Hannes Domani <ssbssa@yahoo.de>
13827
13828 * windows-tdep.c (windows_solib_create_inferior_hook):
13829 Check if inferior is running.
13830
09f2921c
TV
138312020-03-06 Tom de Vries <tdevries@suse.de>
13832
13833 * NEWS: Fix "the the".
13834 * ctfread.c: Same.
13835
fd760e79
TV
138362020-03-06 Tom de Vries <tdevries@suse.de>
13837
13838 * psymtab.c (psymtab_to_symtab): Don't print "done.".
13839
20ea4a60
AB
138402020-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
13841
13842 * .dir-locals.el: Add a comment referencing the other copies of
13843 this file.
13844
0afbabf0
JB
138452020-03-05 John Baldwin <jhb@FreeBSD.org>
13846
13847 * fbsd-tdep.c (fbsd_make_corefile_notes): Use std::string for
13848 psargs.
13849
842806cb
TBA
138502020-03-05 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
13851
13852 * .gitattributes: New file.
13853
be1e3d3e
TT
138542020-03-04 Tom Tromey <tom@tromey.com>
13855
13856 * symmisc.c (print_symbol_bcache_statistics)
13857 (print_objfile_statistics): Update.
13858 * symfile.c (allocate_symtab): Use intern.
13859 * psymtab.c (partial_symtab::partial_symtab): Use intern.
13860 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
13861 macro_cache>: Remove.
13862 <string_cache>: New member.
13863 (struct objfile) <intern>: New methods.
13864 * elfread.c (elf_symtab_read): Use intern.
13865 * dwarf2/read.c (fixup_go_packaging): Intern package name.
13866 (dwarf2_compute_name, dwarf2_physname)
13867 (create_dwo_unit_in_dwp_v1, create_dwo_unit_in_dwp_v2): Intern
13868 names.
13869 (guess_partial_die_structure_name): Update.
13870 (partial_die_info::fixup): Intern name.
13871 (dwarf2_canonicalize_name): Change parameter to objfile. Intern
13872 name.
13873 (dwarf2_name): Intern name. Update.
13874 * buildsym.c (buildsym_compunit::get_macro_table): Use
13875 string_cache.
13876
4e7625fd
TT
138772020-03-04 Tom Tromey <tom@tromey.com>
13878
13879 * jit.c (bfd_open_from_target_memory): Make "target" const.
13880 * corefile.c (gnutarget): Now const.
13881 * gdbcore.h (gnutarget): Now const.
13882
46f9f931
HD
138832020-03-04 Hannes Domani <ssbssa@yahoo.de>
13884
13885 * NEWS: Mention support for WOW64 processes.
13886 * amd64-windows-nat.c (amd64_mappings): Rename and remove static.
13887 (amd64_windows_segment_register_p): Remove static.
13888 (_initialize_amd64_windows_nat): Update.
13889 * configure.nat <windows> (NATDEPFILES): Add i386-windows-nat.o.
13890 * i386-windows-nat.c (context_offset): Update.
13891 (i386_mappings): Rename and remove static.
13892 (i386_windows_segment_register_p): Remove static.
13893 (_initialize_i386_windows_nat): Update.
13894 * windows-nat.c (STATUS_WX86_BREAKPOINT): New macro.
13895 (STATUS_WX86_SINGLE_STEP): New macro.
13896 (EnumProcessModulesEx): New macro.
13897 (Wow64SuspendThread): New macro.
13898 (Wow64GetThreadContext): New macro.
13899 (Wow64SetThreadContext): New macro.
13900 (Wow64GetThreadSelectorEntry): New macro.
13901 (windows_set_context_register_offsets): Add static.
13902 (windows_set_segment_register_p): Likewise.
13903 (windows_add_thread): Adapt for WOW64 processes.
13904 (windows_fetch_one_register): Likewise.
13905 (windows_nat_target::fetch_registers): Likewise.
13906 (windows_store_one_register): Likewise.
13907 (display_selector): Likewise.
13908 (display_selectors): Likewise.
13909 (handle_exception): Likewise.
13910 (windows_continue): Likewise.
13911 (windows_nat_target::resume): Likewise.
13912 (windows_add_all_dlls): Likewise.
13913 (do_initial_windows_stuff): Likewise.
13914 (windows_nat_target::attach): Likewise.
13915 (windows_get_exec_module_filename): Likewise.
13916 (windows_nat_target::create_inferior): Likewise.
13917 (windows_xfer_siginfo): Likewise.
13918 (_initialize_loadable): Initialize Wow64SuspendThread,
13919 Wow64GetThreadContext, Wow64SetThreadContext,
13920 Wow64GetThreadSelectorEntry and EnumProcessModulesEx.
13921 * windows-nat.h (windows_set_context_register_offsets):
13922 Remove declaration.
13923 (windows_set_segment_register_p): Likewise.
13924 (i386_windows_segment_register_p): Add declaration.
13925 (amd64_windows_segment_register_p): Likewise.
13926
440cf44e
LM
139272020-03-04 Luis Machado <luis.machado@linaro.org>
13928
13929 Revert aa66aac47b4dd38f9524ddb5546c08cc09930d37 due to regressions
13930 in "info registers" for AArch64/ARM.
13931
13932 The change caused "info registers" to not print GPR's.
13933
13934 gdb/ChangeLog:
13935
13936 2020-02-01 Shahab Vahedi <shahab@synopsys.com>
13937
13938 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
13939 when reg->group is empty and reggroup is not.
13940
1009d92f
TT
139412020-03-03 Tom Tromey <tromey@adacore.com>
13942
13943 * dwarf2/frame.c (struct dwarf2_frame_cache)
13944 <checked_tailcall_bottom, entry_cfa_sp_offset,
13945 entry_cfa_sp_offset_p>: Remove members.
13946 (dwarf2_frame_cache): Call dwarf2_tailcall_sniffer_first.
13947 (dwarf2_frame_prev_register): Don't call
13948 dwarf2_tailcall_sniffer_first.
13949 (dwarf2_append_unwinders): Don't append tailcall unwinder.
13950 * frame-unwind.c (add_unwinder): New fuction.
13951 (frame_unwind_init): Use it. Add tailcall unwinder.
13952
5e5d66b6
AB
139532020-03-03 Andrew Burgess <andrew.burgess@embecosm.com>
13954 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
13955
13956 * f-valprint.c (f_val_print): Handle TYPE_CODE_BOOL, any non-zero
13957 value should be printed as true.
13958
584cf46d
HD
139592020-03-03 Hannes Domani <ssbssa@yahoo.de>
13960
13961 * windows-tdep.c (windows_solib_create_inferior_hook): New function.
13962 (windows_init_abi): Set and use windows_so_ops.
13963
7b973adc
SDJ
139642020-03-03 Sergio Durigan Junior <sergiodj@redhat.com>
13965
13966 * printcmd.c (print_c_string): Check also for TYPE_CODE_PTR
13967 when verifying if dealing with a convenience variable.
13968
bb7b70ab
LM
139692020-03-03 Luis Machado <luis.machado@linaro.org>
13970
13971 * auxv.c (default_print_auxv_entry): Add new AUXV entries.
13972
9822cb57
SM
139732020-03-02 Simon Marchi <simon.marchi@polymtl.ca>
13974
13975 * infrun.c (gdbarch_supports_displaced_stepping): New.
13976 (use_displaced_stepping): Break up conditions in smaller pieces.
13977 Use gdbarch_supports_displaced_stepping.
13978 (displaced_step_prepare_throw): Use
13979 gdbarch_supports_displaced_stepping.
13980
63e163f2
AB
139812020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
13982
13983 * NEWS: Mention new behaviour of the history filename.
13984 * top.c (write_history_p): Add comment.
13985 (show_write_history_p): Add header comment, give a different
13986 message when history writing is on, but the history filename is
13987 empty.
13988 (history_filename): Add comment.
13989 (history_filename_empty): New function.
13990 (show_history_filename): Add header comment, give a different
13991 message when the filename is empty.
13992 (init_history): Compare history_filename against nullptr, and only
13993 read history if the filename is not empty.
13994 (set_history_filename): Add header comment, and only make
13995 non-empty filenames absolute.
13996 (init_main): Make the filename argument to 'set history filename'
13997 optional.
13998
81b86b97
CB
139992020-03-02 Christian Biesinger <cbiesinger@google.com>
14000
14001 * arm-nbsd-nat.c (arm_supply_fparegset): Rename to...
14002 (arm_supply_vfpregset): ...this, and update to use VFP registers.
14003 (fetch_fp_register): Update.
14004 (fetch_fp_regs): Update.
14005 (store_fp_register): Update.
14006 (store_fp_regs): Update.
14007 (arm_netbsd_nat_target::read_description): New function.
14008 (fetch_elfcore_registers): Update.
14009
24ed6739
AB
140102020-03-02 Andrew Burgess <andrew.burgess@embecosm.com>
14011
14012 * remote.c (remote_target::remote_parse_stop_reply): Don't use the
14013 general_thread if the stop reply is missing a thread-id.
14014 (remote_target::process_stop_reply): Use the first non-exited
14015 thread if the target didn't pass a thread-id.
14016 * infrun.c (do_target_wait): Move call to
14017 switch_to_inferior_no_thread to ....
14018 (do_target_wait_1): ... here.
14019
a84bb2a0
JT
140202020-02-29 Jon Turney <jon.turney@dronecode.org.uk>
14021
14022 * debuginfod-support.c: Include defs.h first.
14023
658dadf0
TV
140242020-02-28 Tom de Vries <tdevries@suse.de>
14025
14026 * symfile.c (set_initial_language): Use default language for lookup.
14027
4ebe4877
SM
140282020-02-28 Simon Marchi <simon.marchi@efficios.com>
14029
14030 * dwarf2/read.c (cutu_reader::init_tu_and_read_dwo_dies): Remove
14031 reader variable, pass `this` to read_cutu_die_from_dwo.
14032
e5da1139
AM
140332020-02-27 Aaron Merey <amerey@redhat.com>
14034
14035 * source.c (open_source_file): Check for nullptr when computing
14036 srcpath.
14037
317f7127
TT
140382020-02-27 Tom Tromey <tromey@adacore.com>
14039
14040 * dwarf2/read.c (struct field_info) <nfields>: Now a method, not a
14041 member.
14042 (dwarf2_add_field): Don't update nfields.
14043 (dwarf2_attach_fields_to_type, process_structure_scope): Update.
14044
3104d9ee
AB
140452020-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
14046
14047 * gdbtypes.c (create_array_type_with_stride): Use std::abs not
14048 abs.
14049
b83470bf
TT
140502020-02-26 Tom Tromey <tom@tromey.com>
14051
14052 * dwarf2/read.c (struct dwarf2_include_psymtab): New.
14053 (dwarf2_create_include_psymtab): Use dwarf2_include_psymtab.
14054 (dwarf2_psymtab::expand_psymtab, dwarf2_psymtab::readin_p)
14055 (dwarf2_psymtab::get_compunit_symtab): Remove null checks for
14056 per_cu_data.
14057
edfe0a0c
TT
140582020-02-26 Tom Tromey <tom@tromey.com>
14059
14060 * dwarf2/index-write.c (psym_index_map): Change type.
14061 (add_address_entry_worker, write_one_signatured_type)
14062 (recursively_count_psymbols, recursively_write_psymbols)
14063 (class debug_names, psyms_seen_size, write_gdbindex)
14064 (write_debug_names): Use partial_symtab, not dwarf2_psymtab.
14065
0d79cdc4
AM
140662020-02-26 Aaron Merey <amerey@redhat.com>
14067
14068 * Makefile.in: Handle optional debuginfod support.
14069 * NEWS: Update.
14070 * README: Add --with-debuginfod summary.
14071 * config.in: Regenerate.
14072 * configure: Regenerate.
14073 * configure.ac: Handle optional debuginfod support.
14074 * debuginfod-support.c: debuginfod helper functions.
14075 * debuginfod-support.h: Ditto.
14076 * doc/gdb.texinfo: Add --with-debuginfod to configure options
14077 summary.
14078 * dwarf2/read.c (dwarf2_get_dwz_file): Query debuginfod servers
14079 when a dwz file cannot be found.
14080 * elfread.c (elf_symfile_read): Query debuginfod servers when a
14081 debuginfo file cannot be found.
14082 * source.c (open_source_file): Query debuginfod servers when a
14083 source file cannot be found.
14084 * top.c (print_gdb_configuration): Include
14085 --{with,without}-debuginfod in the output.
14086
b65ce565
JG
140872020-02-26 Jérémie Galarneau <jeremie.galarneau@efficios.com>
14088
14089 * thread.c (thr_try_catch_cmd): Print thread name.
14090
d4c9a4f8
SM
140912020-02-26 Simon Marchi <simon.marchi@efficios.com>
14092
14093 * dwarf2/loc.h (dwarf2_fetch_die_loc_sect_off,
14094 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14095 dwarf2_fetch_die_type_sect_off): Move to...
14096 * dwarf2/read.h (dwarf2_fetch_die_loc_sect_off,
14097 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14098 dwarf2_fetch_die_type_sect_off): ... here.
14099 * dwarf2/read.c (dwarf2_fetch_die_loc_sect_off,
14100 dwarf2_fetch_die_loc_cu_off, dwarf2_fetch_constant_bytes,
14101 dwarf2_fetch_die_type_sect_off): Move doc to header file.
14102
0dce4280
TV
141032020-02-26 Tom de Vries <tdevries@suse.de>
14104
14105 PR gdb/25603
14106 * symfile.c (set_initial_language): Exit-early if
14107 language_mode == language_mode_manual.
14108
450a1bfc
SM
141092020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14110
14111 * dwarf2/loc.h (dwarf2_read_addr_index): Move...
14112 * dwarf2/read.h (dwarf2_read_addr_index): ... here.
14113 * dwarf2/read.c (dwarf2_read_addr_index): Move doc to header.
14114
9e80cfa1
AB
141152020-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
14116
14117 * gdbtypes.c (create_array_type_with_stride): Handle negative
14118 array strides.
14119 * valarith.c (value_subscripted_rvalue): Likewise.
14120
09624f1f
LM
141212020-02-25 Luis Machado <luis.machado@linaro.org>
14122
14123 * aarch64-tdep.c (aarch64_vnv_type): Fix comment typo.
14124
8cb5117c
SM
141252020-02-25 Simon Marchi <simon.marchi@polymtl.ca>
14126
14127 * loc.h (dwarf2_get_die_type): Move to...
14128 * read.h (dwarf2_get_die_type): ... here.
14129 * read.c (dwarf2_get_die_type): Move doc to header.
14130
c325c44e
JB
141312020-02-25 Joel Brobecker <brobecker@adacore.com>
14132
14133 * copypright.py (EXCLUDE_LIST): Add 'gnulib/config.in' and
14134 'gnulib/Makefile.in' to the list.
14135
4ac93832
TT
141362020-02-24 Tom Tromey <tom@tromey.com>
14137
14138 * dwarf2/read.h (struct type_unit_unshareable) <num_symtabs>:
14139 Remove.
14140 * dwarf2/read.c (dwarf2_cu::setup_type_unit_groups): Use
14141 XOBNEWVEC.
14142
197400e8
TT
141432020-02-24 Tom Tromey <tom@tromey.com>
14144
14145 * dwarf2/read.h (struct dwarf2_per_cu_data) <type_unit_group_p>:
14146 New method.
14147 * dwarf2/read.c (IS_TYPE_UNIT_GROUP): Remove.
14148 (dw2_do_instantiate_symtab, dw2_get_file_names)
14149 (build_type_psymtab_dependencies, load_full_type_unit): Update.
14150
76935768
TT
141512020-02-24 Tom Tromey <tom@tromey.com>
14152
14153 * dwarf2read.c (dwarf2_build_psymtabs_hard): Use
14154 make_scoped_restore.
14155 (dwarf2_psymtab::read_symtab): Don't clear
14156 reading_partial_symbols.
14157
a88ef40d
TV
141582020-02-24 Tom de Vries <tdevries@suse.de>
14159
14160 PR gdb/25592
14161 * stack.c (iterate_over_block_locals): Handle LOC_CONST.
14162
c9af6521
TV
141632020-02-24 Tom de Vries <tdevries@suse.de>
14164
14165 * tui/tui-layout.c (_initialize_tui_layout): Fix help messages for
14166 commands layout next/prev/regs.
14167
5707a07a
TT
141682020-02-22 Tom Tromey <tom@tromey.com>
14169
14170 * dwarf2/loc.h (dwarf2_compile_expr_to_ax): Don't declare.
14171 * dwarf2/loc.c (dwarf2_compile_expr_to_ax): Now static.
14172
3b0fb49e
TT
141732020-02-22 Tom Tromey <tom@tromey.com>
14174
14175 * tui/tui-data.h (TUI_DISASM_WIN): Cast to tui_disasm_window.
14176
283be8bf
TT
141772020-02-22 Tom Tromey <tom@tromey.com>
14178
14179 * tui/tui-win.c (_initialize_tui_win): Add usage text.
14180 * tui/tui-stack.c (_initialize_tui_stack): Add usage text.
14181 * tui/tui-regs.c (_initialize_tui_regs): Add usage text.
14182 * tui/tui.c (_initialize_tui): Add usage text.
14183
ca793b96
TT
141842020-02-22 Tom Tromey <tom@tromey.com>
14185
14186 * tui/tui-win.c (tui_set_focus_command)
14187 (tui_set_win_height_command): Use error_no_arg.
14188 (_initialize_tui_win): Update help text.
14189 (FOCUS_USAGE, WIN_HEIGHT_USAGE): Don't define.
14190
432b5c40
TT
141912020-02-22 Tom Tromey <tom@tromey.com>
14192
14193 * tui/tui-layout.c (extract_display_start_addr): Rewrite.
14194 * tui/tui-disasm.h (struct tui_disasm_window)
14195 <display_start_addr>: Declare.
14196 * tui/tui-source.h (struct tui_source_window)
14197 <display_start_addr>: Declare.
14198 * tui/tui-winsource.h (struct tui_source_window_base)
14199 <show_source_line, display_start_addr>: New methods.
14200 <m_horizontal_offset, m_start_line_or_addr, m_gdbarch, m_content>:
14201 Rename and move to protected section.
14202 * tui/tui-winsource.c (tui_source_window_base::update_source_window)
14203 (tui_source_window_base::do_erase_source_content): Update.
14204 (tui_source_window_base::show_source_line): Now a method.
14205 (tui_source_window_base::show_source_content)
14206 (tui_source_window_base::tui_source_window_base)
14207 (tui_source_window_base::rerender)
14208 (tui_source_window_base::refill)
14209 (tui_source_window_base::do_scroll_horizontal)
14210 (tui_source_window_base::set_is_exec_point_at)
14211 (tui_source_window_base::update_breakpoint_info)
14212 (tui_source_window_base::update_exec_info): Update.
14213 * tui/tui-source.c (tui_source_window::set_contents)
14214 (tui_source_window::showing_source_p)
14215 (tui_source_window::do_scroll_vertical)
14216 (tui_source_window::location_matches_p)
14217 (tui_source_window::line_is_displayed): Update.
14218 (tui_source_window::display_start_addr): New method.
14219 * tui/tui-disasm.c (tui_disasm_window::set_contents)
14220 (tui_disasm_window::do_scroll_vertical)
14221 (tui_disasm_window::location_matches_p): Update.
14222 (tui_disasm_window::display_start_addr): New method.
14223
01b1af32
TT
142242020-02-22 Tom Tromey <tom@tromey.com>
14225
14226 * NEWS: Add entry for gdb.register_window_type.
14227 * tui/tui-layout.h (window_factory): New typedef.
14228 (tui_register_window): Declare.
14229 * tui/tui-layout.c (saved_tui_windows): New global.
14230 (tui_apply_current_layout): Use it.
14231 (tui_register_window): New function.
14232 * python/python.c (do_start_initialization): Call
14233 gdbpy_initialize_tui.
14234 (python_GdbMethods): Add "register_window_type" function.
14235 * python/python-internal.h (gdbpy_register_tui_window)
14236 (gdbpy_initialize_tui): Declare.
14237 * python/py-tui.c: New file.
14238 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-tui.c.
14239
fc96d20b
TT
142402020-02-22 Tom Tromey <tom@tromey.com>
14241
14242 * tui/tui-io.c (do_tui_putc): Don't omit annotations.
14243
935c78c0
TT
142442020-02-22 Tom Tromey <tom@tromey.com>
14245
14246 * tui/tui-win.c (tui_set_win_focus_to): Move to tui-data.c.
14247 * tui/tui-data.h (tui_set_win_with_focus): Don't declare.
14248 * tui/tui-data.c (tui_set_win_with_focus): Remove.
14249 (tui_set_win_focus_to): Move from tui-win.c.
14250
0240c8f1
TT
142512020-02-22 Tom Tromey <tom@tromey.com>
14252
14253 * tui/tui-layout.c (make_standard_window, get_locator_window): New
14254 functions.
14255 (known_window_types): New global.
14256 (tui_get_window_by_name): Reimplement.
14257 (initialize_known_windows): New function.
14258 (validate_window_name): Rewrite.
14259 (_initialize_tui_layout): Call initialize_known_windows.
14260
fdb01f0c
TT
142612020-02-22 Tom Tromey <tom@tromey.com>
14262
14263 * tui/tui.h (enum tui_win_type) <LOCATOR_WIN, DATA_ITEM_WIN>:
14264 Remove constants.
14265 * tui/tui-winsource.h (struct tui_source_window_base)
14266 <tui_source_window_base>: Remove parameter.
14267 * tui/tui-winsource.c
14268 (tui_source_window_base::tui_source_window_base): Remove
14269 parameter.
14270 (tui_source_window_base::refill): Update.
14271 * tui/tui-stack.h (struct tui_locator_window)
14272 <tui_locator_window>: Update.
14273 * tui/tui-source.h (struct tui_source_window) <tui_source_window>:
14274 Default the constructor.
14275 * tui/tui-regs.h (struct tui_data_item_window)
14276 <tui_data_item_window>: Default the constructor.
14277 (struct tui_data_window) <tui_data_window>: Likewise.
14278 * tui/tui-disasm.h (struct tui_disasm_window) <tui_disasm_window>:
14279 Default the constructor.
14280 * tui/tui-data.h (struct tui_gen_win_info) <tui_gen_win_info>:
14281 Default the constructor.
14282 <type>: Remove.
14283 (struct tui_win_info) <tui_win_info>: Default the constructor.
14284 * tui/tui-data.c (tui_win_info::tui_win_info): Remove.
14285 * tui/tui-command.h (struct tui_cmd_window) <tui_cmd_window>:
14286 Default the constructor.
14287
865a5aec
TT
142882020-02-22 Tom Tromey <tom@tromey.com>
14289
14290 * tui/tui-wingeneral.h (tui_make_all_invisible): Don't declare.
14291 * tui/tui-wingeneral.c (tui_make_all_invisible): Remove.
14292 * tui/tui-win.c (tui_resize_all): Don't call
14293 tui_delete_invisible_windows.
14294 * tui/tui-layout.c (tui_apply_current_layout): Delete windows when
14295 done.
14296 (tui_set_layout): Update.
14297 (tui_add_win_to_layout): Don't call tui_delete_invisible_windows.
14298 * tui/tui-data.h (tui_delete_invisible_windows): Don't declare.
14299 * tui/tui-data.c (tui_delete_invisible_windows): Remove.
14300
e098d18c
TT
143012020-02-22 Tom Tromey <tom@tromey.com>
14302
14303 * tui/tui-win.c (tui_partial_win_by_name): Handle ambiguity
14304 correctly.
14305
eb9c8874
TT
143062020-02-22 Tom Tromey <tom@tromey.com>
14307
14308 * tui/tui-data.c (tui_next_win, tui_prev_win): Reimplement.
14309
7eed1a8e
TT
143102020-02-22 Tom Tromey <tom@tromey.com>
14311
14312 * tui/tui-winsource.h (struct tui_source_window_iterator)
14313 <inner_iterator>: New etytypedef.
14314 <tui_source_window_iterator>: Take "end" parameter.
14315 <tui_source_window_iterator>: Take iterator.
14316 <operator*, advance>: Update.
14317 <m_iter>: Change type.
14318 <m_end>: New field.
14319 (struct tui_source_windows) <begin, end>: Update.
14320 * tui/tui-layout.c (tui_windows): New global.
14321 (tui_apply_current_layout): Clear tui_windows.
14322 (tui_layout_window::apply): Update tui_windows.
14323 * tui/tui-data.h (tui_windows): Declare.
14324 (all_tui_windows): Now inline function.
14325 (class tui_window_iterator, struct all_tui_windows): Remove.
14326
7c043ba6
TT
143272020-02-22 Tom Tromey <tom@tromey.com>
14328
14329 PR tui/17850:
14330 * tui/tui-win.c (tui_gen_win_info::max_width): New method.
14331 * tui/tui-layout.h (class tui_layout_base) <get_sizes>: Add
14332 "height" argument.
14333 (class tui_layout_window) <get_sizes>: Likewise.
14334 (class tui_layout_split) <tui_layout_split>: Add "vertical"
14335 argument.
14336 <get_sizes>: Add "height" argument.
14337 <m_vertical>: New field.
14338 * tui/tui-layout.c (tui_layout_split::clone): Update.
14339 (tui_layout_split::get_sizes): Add "height" argument.
14340 (tui_layout_split::adjust_size, tui_layout_split::apply): Update.
14341 (tui_new_layout_command): Parse "-horizontal".
14342 (_initialize_tui_layout): Update help string.
14343 (tui_layout_split::specification): Add "-horizontal" when needed.
14344 * tui/tui-layout.c (tui_layout_window::get_sizes): Add "height"
14345 argument.
14346 * tui/tui-data.h (struct tui_gen_win_info) <max_width, min_width>:
14347 New methods.
14348
6bc56648
TT
143492020-02-22 Tom Tromey <tom@tromey.com>
14350
14351 * tui/tui-layout.h (enum tui_adjust_result): New.
14352 (class tui_layout_base) <adjust_size>: Return tui_adjust_result.
14353 (class tui_layout_window) <adjust_size>: Return
14354 tui_adjust_result. Rewrite.
14355 (class tui_layout_split) <adjust_size>: Return tui_adjust_result.
14356 * tui/tui-layout.c (tui_layout_split::adjust_size): Update.
14357
c22fef7e
TT
143582020-02-22 Tom Tromey <tom@tromey.com>
14359
14360 * tui/tui-layout.h (class tui_layout_split) <add_split>: Change
14361 parameter and return types.
14362 (class tui_layout_base) <specification>: Add "depth".
14363 (class tui_layout_window) <specification>: Add "depth".
14364 (class tui_layout_split) <specification>: Add "depth".
14365 * tui/tui-layout.c (tui_layout_split::add_split): Change parameter
14366 and return types.
14367 (tui_new_layout_command): Parse sub-layouts.
14368 (_initialize_tui_layout): Update help string.
14369 (tui_layout_window::specification): Add "depth".
14370 (add_layout_command): Update.
14371
ee325b61
TT
143722020-02-22 Tom Tromey <tom@tromey.com>
14373
14374 * NEWS: Add "tui new-layout" item.
14375 * tui/tui-layout.c (add_layout_command): Return cmd_list_element.
14376 Add new-layout command to help text.
14377 (validate_window_name): New function.
14378 (tui_new_layout_command): New function.
14379 (_initialize_tui_layout): Register "new-layout".
14380 (tui_layout_window::specification): New method.
14381 (tui_layout_window::specification): New method.
14382 * tui/tui-layout.h (class tui_layout_base) <specification>: New
14383 method.
14384 (class tui_layout_window) <specification>: New method.
14385 (class tui_layout_split) <specification>: New method.
14386
416eb92d
TT
143872020-02-22 Tom Tromey <tom@tromey.com>
14388
14389 * tui/tui.c (tui_enable): Call tui_set_initial_layout.
14390 * tui/tui-win.c (window_name_completer): Update comment.
14391 * tui/tui-layout.h (class tui_layout_base) <replace_window>:
14392 Declare method.
14393 (class tui_layout_window) <replace_window>: Likewise.
14394 (class tui_layout_split) <replace_window>: Likewise.
14395 (tui_set_layout): Don't declare.
14396 (tui_set_initial_layout): Declare function.
14397 * tui/tui-layout.c (layouts, applied_skeleton, src_regs_layout)
14398 (asm_regs_layout): New globals.
14399 (tui_current_layout, show_layout): Remove.
14400 (tui_set_layout, tui_add_win_to_layout): Rewrite.
14401 (find_layout, tui_apply_layout): New function.
14402 (layout_completer): Remove.
14403 (tui_next_layout): Reimplement.
14404 (tui_next_layout_command): New function.
14405 (tui_set_initial_layout, tui_prev_layout_command): New functions.
14406 (tui_regs_layout): Reimplement.
14407 (tui_regs_layout_command): New function.
14408 (extract_display_start_addr): Rewrite.
14409 (next_layout, prev_layout): Remove.
14410 (tui_layout_window::replace_window): New method.
14411 (tui_layout_split::replace_window): New method.
14412 (destroy_layout): New function.
14413 (layout_list): New global.
14414 (add_layout_command): New function.
14415 (initialize_layouts): Update.
14416 (tui_layout_command): New function.
14417 (_initialize_tui_layout): Install "layout" commands.
14418 * tui/tui-data.h (enum tui_layout_type): Remove.
14419 (tui_current_layout): Don't declare.
14420
0dbc2fc7
TT
144212020-02-22 Tom Tromey <tom@tromey.com>
14422
14423 * tui/tui-regs.c (tui_reg_layout): Remove.
14424 (tui_reg_command): Use tui_regs_layout.
14425 * tui/tui-layout.h (tui_reg_command): Declare.
14426 * tui/tui-layout.c (tui_reg_command): New function.
14427
5afe342e
TT
144282020-02-22 Tom Tromey <tom@tromey.com>
14429
14430 * tui/tui.c (tui_rl_delete_other_windows): Call
14431 tui_remove_some_windows.
14432 * tui/tui-layout.h (class tui_layout_base) <remove_windows>:
14433 Declare method.
14434 (class tui_layout_window) <remove_windows>: New method.
14435 (class tui_layout_split) <remove_windows>: Declare.
14436 (tui_remove_some_windows): Declare.
14437 * tui/tui-layout.c (tui_remove_some_windows): New function.
14438 (tui_layout_split::remove_windows): New method.
14439
427326a8
TT
144402020-02-22 Tom Tromey <tom@tromey.com>
14441
14442 * tui/tui.c (tui_rl_change_windows): Call tui_next_layout.
14443 * tui/tui-layout.h (tui_next_layout): Declare.
14444 * tui/tui-layout.c (tui_next_layout): New function.
14445
3fe12b6d
TT
144462020-02-22 Tom Tromey <tom@tromey.com>
14447
14448 * tui/tui-regs.c (tui_data_window::display_registers_from): Use
14449 correct coordinates.
14450
59b8b5d2
TT
144512020-02-22 Tom Tromey <tom@tromey.com>
14452
14453 * tui/tui-layout.h (tui_add_win_to_layout): Add comment.
14454 * tui/tui-layout.c (tui_add_win_to_layout): Add assert. Remove
14455 DATA_WIN case.
14456
2a3d458b
TT
144572020-02-22 Tom Tromey <tom@tromey.com>
14458
14459 * tui/tui-disasm.c (tui_get_low_disassembly_address): Use
14460 TUI_DISASM_WIN, not tui_win_list.
14461
3f0cbb04
TT
144622020-02-22 Tom Tromey <tom@tromey.com>
14463
14464 * valprint.c (generic_val_print_enum_1)
14465 (val_print_type_code_flags): Style member names.
14466 * rust-lang.c (val_print_struct, rust_print_enum)
14467 (rust_print_struct_def, rust_internal_print_type): Style member
14468 names.
14469 * p-valprint.c (pascal_object_print_value_fields): Style member
14470 names. Only call fprintf_symbol_filtered for static members.
14471 * m2-typeprint.c (m2_record_fields, m2_enum): Style member names.
14472 * f-valprint.c (f_val_print): Style member names.
14473 * f-typeprint.c (f_type_print_base): Style member names.
14474 * cp-valprint.c (cp_print_value_fields): Style member names. Only
14475 call fprintf_symbol_filtered for static members.
14476 (cp_print_class_member): Style member names.
14477 * c-typeprint.c (c_print_type_1, c_type_print_base_1): Style
14478 member names.
14479 * ada-valprint.c (ada_print_scalar): Style enum names.
14480 (ada_val_print_enum): Likewise.
14481 * ada-typeprint.c (print_enum_type): Style enum names.
14482
d4d947ae
TT
144832020-02-21 Tom Tromey <tom@tromey.com>
14484
14485 * psympriv.h (struct partial_symtab): Update comment.
14486
e94e944b
TT
144872020-02-21 Tom Tromey <tromey@adacore.com>
14488
14489 * mips-tdep.h (mips_pc_is_mips16, mips_pc_is_micromips): Parameter
14490 type is CORE_ADDR.
14491
1eb73179
TV
144922020-02-21 Tom de Vries <tdevries@suse.de>
14493
14494 PR gdb/25534
14495 * psymtab.c (partial_symtab::read_dependencies): Don't read dependency
14496 if dependencies[i]->user != NULL.
14497
4f180d53
AT
144982020-02-21 Ali Tamur <tamur@google.com>
14499
14500 * dwarf2/read.c (dwarf2_name): Add null check.
14501
22b6cd70
TT
145022020-02-20 Tom Tromey <tom@tromey.com>
14503
14504 * dwarf2/read.c (dwarf2_find_containing_comp_unit): Use ">", not
14505 ">=", in binary search.
14506 (dwarf2_find_containing_comp_unit): New overload.
14507 (run_test): New self-test.
14508 (_initialize_dwarf2_read): Register new test.
14509
bd0cf5a6
NC
145102020-02-20 Nelson Chu <nelson.chu@sifive.com>
14511
14512 * riscv-tdep.c: Updated since the DECLARE_CSR is changed.
14513 * riscv-tdep.h: Likewise.
14514 * features/riscv/rebuild-csr-xml.sh: Generate the 64bit-csr.xml without
14515 rv32-only CSR.
14516 * features/riscv/64bit-csr.xml: Regenerated.
14517
3f702acd
SDJ
145182020-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
14519 Tom Tromey <tom@tromey.com>
14520
14521 * utils.c (fputs_maybe_filtered): Call 'stream->puts' instead
14522 of 'fputc_unfiltered'.
14523 (putchar_unfiltered): Call 'fputc_unfiltered'.
14524 (fputc_unfiltered): Call 'fputs_unfiltered'.
14525
d13c7322
AB
145262020-02-20 Andrew Burgess <andrew.burgess@embecosm.com>
14527
14528 * config.in: Regenerate.
14529 * configure: Regenerate.
14530 * configure.ac: Add --with-python-libdir option.
14531 * main.c: Use WITH_PYTHON_LIBDIR.
14532
869d8950
TT
145332020-02-19 Tom Tromey <tom@tromey.com>
14534
14535 * symtab.c (general_symbol_info::compute_and_set_names): Use
14536 obstack_strndup. Simplify call to symbol_set_demangled_name.
14537
298e9637
SM
145382020-02-19 Simon Marchi <simon.marchi@efficios.com>
14539
14540 * dwarf2/read.c (allocate_signatured_type_table,
14541 allocate_dwo_unit_table, allocate_type_unit_groups_table,
14542 allocate_dwo_file_hash_table, allocate_dwp_loaded_cutus_table):
14543 Remove objfile parameter, update all callers.
14544
08410482
DE
145452020-02-19 Doug Evans <dje@google.com>
14546
14547 PR rust/25535
14548 * rust-lang.c (rust_print_enum): Apply embedded_offset to
14549 rust_enum_variant calculation.
14550
dfdeeca1
TT
145512020-02-19 Tom Tromey <tromey@adacore.com>
14552
14553 * mips-tdep.h (mips_pc_is_mips): Parameter type is CORE_ADDR.
14554
2ef5453b
TT
145552020-02-19 Tom Tromey <tromey@adacore.com>
14556
14557 * ada-lang.c (cache_symbol): Use obstack_strdup.
14558
9f1528a1
AB
145592020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14560
14561 * configure: Regenerate.
14562
d3c22fa8
TT
145632020-02-19 Tom Tromey <tromey@adacore.com>
14564
14565 * python/python.c (do_start_initialization): Use XNEWVEC. Remove
14566 NULL check.
14567
bf84f706
MR
145682020-02-19 Maciej W. Rozycki <macro@wdc.com>
14569
14570 * NEWS: Mention RISC-V GNU/Linux GDBserver support.
14571
d1c9b20f
AB
145722020-02-19 Andrew Burgess <andrew.burgess@embecosm.com>
14573
14574 * arch/riscv.c (struct riscv_gdbarch_features_hasher): Only define
14575 if GDBSERVER is not defined.
14576 (riscv_tdesc_cache): Likewise, also store const target_desc.
14577 (STATIC_IN_GDB): Define.
14578 (riscv_create_target_description): Update declaration with
14579 STATIC_IN_GDB.
14580 (riscv_lookup_target_description): New function, only define if
14581 GDBSERVER is not defined.
14582 * arch/riscv.h (riscv_create_target_description): Declare only
14583 when GDBSERVER is defined.
14584 (riscv_lookup_target_description): New declaration when GDBSERVER
14585 is not defined.
14586 * nat/riscv-linux-tdesc.c (riscv_linux_read_description): Rename to...
14587 (riscv_linux_read_features): ...this, and return
14588 riscv_gdbarch_features instead of target_desc.
14589 * nat/riscv-linux-tdesc.h: Include 'arch/riscv.h'.
14590 (riscv_linux_read_description): Rename to...
14591 (riscv_linux_read_features): ...this.
14592 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
14593 Update to use riscv_gdbarch_features and
14594 riscv_lookup_target_description.
14595 * riscv-tdep.c (riscv_find_default_target_description): Use
14596 riscv_lookup_target_description instead of
14597 riscv_create_target_description.
14598
373d7ac0
SM
145992020-02-18 Simon Marchi <simon.marchi@efficios.com>
14600
14601 * valprint.c (generic_val_print_enum_1): When printing a flag
14602 enum with value 0 and there is no enumerator with value 0, print
14603 just "0" instead of "(unknown: 0x0)".
14604
b29a2df0
SM
146052020-02-18 Simon Marchi <simon.marchi@efficios.com>
14606
14607 * valprint.c (generic_val_print_enum_1): Print unknown part of
14608 flag enum in hex.
14609
6740f0cc
SM
146102020-02-18 Simon Marchi <simon.marchi@efficios.com>
14611
14612 * dwarf2/read.c (update_enumeration_type_from_children): Allow
14613 flag enums to contain duplicate enumerators.
14614 * valprint.c (generic_val_print_enum_1): Update comment.
14615
edd45eb0
SM
146162020-02-18 Simon Marchi <simon.marchi@efficios.com>
14617
14618 * dwarf2/read.c: Include "count-one-bits.h".
14619 (update_enumeration_type_from_children): If an enumerator has
14620 multiple bits set, don't treat the enumeration as a "flag enum".
14621 * valprint.c (generic_val_print_enum_1): Assert that enumerators
14622 of flag enums have 0 or 1 bit set.
14623
6d0cf446
BE
146242020-02-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
14625
14626 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use an explicit
14627 conversion.
14628 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14629 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14630 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14631 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14632 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14633
7001c1b7
SM
146342020-02-18 Simon Marchi <simon.marchi@efficios.com>
14635
14636 * MAINTAINERS: Change palmer@sifive.com to palmer@dabbelt.com.
14637
fdb61c6c
SM
146382020-02-14 Simon Marchi <simon.marchi@efficios.com>
14639
14640 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Use
14641 displaced_step_closure_up.
14642 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14643 (struct displaced_step_closure_up):
14644 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14645 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14646 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn):
14647 Likewise.
14648 * gdbarch.sh (displaced_step_copy_insn): Likewise.
14649 * gdbarch.c, gdbarch.h: Re-generate.
14650 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Use
14651 displaced_step_closure_up.
14652 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14653 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14654 * infrun.h (displaced_step_closure_up): New type alias.
14655 (struct displaced_step_inferior_state) <step_closure>: Change
14656 type to displaced_step_closure_up.
14657 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Use
14658 displaced_step_closure_up.
14659 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14660
a4a38eb4
TT
146612020-02-14 Tom Tromey <tom@tromey.com>
14662
14663 * minidebug.c (gnu_debug_key): New global.
14664 (find_separate_debug_file_in_section): Use it.
14665
e8217e61
SM
146662020-02-14 Simon Marchi <simon.marchi@efficios.com>
14667
14668 * gdbarch.sh (displaced_step_copy_insn): Change return type to an
14669 std::unique_ptr.
14670 * gdbarch.c: Re-generate.
14671 * gdbarch.h: Re-generate.
14672 * infrun.c (displaced_step_prepare_throw): Adjust to std::unique_ptr
14673 change.
14674 * aarch64-tdep.c (aarch64_displaced_step_copy_insn): Change return
14675 type to std::unique_ptr.
14676 * aarch64-tdep.h (aarch64_displaced_step_copy_insn): Likewise.
14677 * amd64-tdep.c (amd64_displaced_step_copy_insn): Likewise.
14678 * amd64-tdep.h (amd64_displaced_step_copy_insn): Likewise.
14679 * arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Likewise.
14680 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Likewise.
14681 * i386-tdep.c (i386_displaced_step_copy_insn): Likewise.
14682 * i386-tdep.h (i386_displaced_step_copy_insn): Likewise.
14683 * rs6000-tdep.c (ppc_displaced_step_copy_insn): Likewise.
14684 * s390-tdep.c (s390_displaced_step_copy_insn): Likewise.
14685
d8d83535
SM
146862020-02-14 Simon Marchi <simon.marchi@efficios.com>
14687
14688 * infrun.c (get_displaced_step_closure_by_addr): Adjust to
14689 std::unique_ptr.
14690 (displaced_step_clear): Rename to...
14691 (displaced_step_reset): ... this. Just call displaced->reset ().
14692 (displaced_step_clear_cleanup): Rename to...
14693 (displaced_step_reset_cleanup): ... this.
14694 (displaced_step_prepare_throw): Adjust to std::unique_ptr.
14695 (displaced_step_fixup): Likewise.
14696 (resume_1): Likewise.
14697 (handle_inferior_event): Restore child's memory before calling
14698 displaced_step_fixup on the parent.
14699 * infrun.h (displaced_step_inferior_state) <reset>: Adjust
14700 to std::unique_ptr.
14701 <step_closure>: Change type to std::unique_ptr.
14702
5f661e03
SM
147032020-02-14 Simon Marchi <simon.marchi@efficios.com>
14704
14705 * arm-tdep.c: Include count-one-bits.h.
14706 (cleanup_block_store_pc): Use count_one_bits.
14707 (cleanup_block_load_pc): Use count_one_bits.
14708 (arm_copy_block_xfer): Use count_one_bits.
14709 (thumb2_copy_block_xfer): Use count_one_bits.
14710 (thumb_copy_pop_pc_16bit): Use count_one_bits.
14711 * arch/arm-get-next-pcs.c: Include count-one-bits.h.
14712 (thumb_get_next_pcs_raw): Use count_one_bits.
14713 (arm_get_next_pcs_raw): Use count_one_bits_l.
14714 * arch/arm.c (bitcount): Remove.
14715 * arch/arm.h (bitcount): Remove.
14716
8084e579
TT
147172020-02-14 Tom Tromey <tromey@adacore.com>
14718
14719 * dwarf2/frame-tailcall.c (dwarf2_tailcall_sniffer_first):
14720 Update.
14721 * dwarf2/loc.h (call_site_find_chain): Return unique_xmalloc_ptr.
14722 * dwarf2/loc.c (call_site_find_chain_1): Return
14723 unique_xmalloc_ptr.
14724 (call_site_find_chain): Likewise.
14725
258bf0ee
RB
147262020-02-14 Richard Biener <rguenther@suse.de>
14727
14728 * dwarf2/read.c (lnp_state_machine::handle_special_opcode): Apply CSE
14729 on expression with division operators.
14730
f98a8458
AKS
147312020-02-13 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
14732
14733 * MAINTAINERS (Write After Approval): Adding myself.
14734
d1437c0e
TT
147352020-02-12 Tom Tromey <tom@tromey.com>
14736
14737 * event-loop.c (event_data, gdb_event, event_handler_func):
14738 Remove.
14739
3d4560f7
TT
147402020-02-12 Tom Tromey <tom@tromey.com>
14741
14742 * dwarf2/frame.c (dwarf2_frame_bfd_data): New global.
14743 (dwarf2_frame_objfile_data): Add comment.
14744 (find_comp_unit, set_comp_unit): New functions.
14745 (dwarf2_frame_find_fde): Use find_comp_unit.
14746 (dwarf2_build_frame_info): Use set_comp_unit.
14747
21982304
TT
147482020-02-12 Tom Tromey <tom@tromey.com>
14749
14750 * dwarf2/frame.c (struct comp_unit) <objfile>: Remove.
14751 (comp_unit): Don't initialize objfile.
14752 (execute_cfa_program): Add text_offset parameter.
14753 (execute_cfa_program_test, dwarf2_fetch_cfa_info)
14754 (dwarf2_frame_cache): Update.
14755 (dwarf2_build_frame_info): Don't set "objfile" member.
14756
4debb237
TT
147572020-02-12 Tom Tromey <tom@tromey.com>
14758
14759 * dwarf2/frame.c (decode_frame_entry_1): Add gdbarch parameter.
14760 (decode_frame_entry): Likewise.
14761 (dwarf2_build_frame_info): Update.
14762
0d404d44
TT
147632020-02-12 Tom Tromey <tom@tromey.com>
14764
14765 * dwarf2/frame.c (struct comp_unit) <obstack>: New member.
14766 (decode_frame_entry_1): Use the comp_unit obstack.
14767
a7a3ae5c
TT
147682020-02-12 Tom Tromey <tom@tromey.com>
14769
14770 * dwarf2/frame.c (struct comp_unit): Add initializers and
14771 constructor.
14772 (dwarf2_frame_objfile_data): Store a comp_unit.
14773 (dwarf2_frame_find_fde): Update.
14774 (dwarf2_build_frame_info): Use "new".
14775
a9d65418
TT
147762020-02-12 Tom Tromey <tom@tromey.com>
14777
14778 * dwarf2/frame.c (struct dwarf2_fde_table): Remove.
14779 (dwarf2_fde_table): Typedef for std::vector.
14780 (dwarf2_frame_objfile_data): Remove the deleter. Now static.
14781 (dwarf2_frame_find_fde, add_fde, decode_frame_entry_1)
14782 (decode_frame_entry): Update.
14783 (dwarf2_build_frame_info): Use "new".
14784
7559c217
CB
147852020-02-12 Christian Biesinger <cbiesinger@google.com>
14786
14787 * arm-tdep.c (arm_gdbarch_init): Update.
14788 * arm-tdep.h (struct gdbarch_tdep) <have_fpa_registers,
14789 have_wmmx_registers, have_vfp_pseudos, have_neon_pseudos,
14790 have_neon, is_m>: Change to bool.
14791
aeefc73c
CB
147922020-02-12 Christian Biesinger <cbiesinger@google.com>
14793
14794 * arm-tdep.c (arm_dump_tdep): Print more fields of tdep.
14795
d27b8e5f
TT
147962020-02-12 Tom Tromey <tom@tromey.com>
14797
14798 * dwarf2/loc.c (struct dwarf_expr_baton): Remove.
14799
cd5900f3
HD
148002020-02-12 Hannes Domani <ssbssa@yahoo.de>
14801
14802 * windows-tdep.c (struct windows_gdbarch_data): Add tib_ptr_type.
14803 (windows_get_tlb_type): Use windows_gdbarch_data->tib_ptr_type.
14804
f056b22b
TT
148052020-02-11 Tom Tromey <tom@tromey.com>
14806
14807 * psymtab.h: Update comment.
14808
f92ff6b5
TT
148092020-02-11 Tom Tromey <tom@tromey.com>
14810
14811 * gdb_obstack.h (struct auto_obstack): Use
14812 DISABLE_COPY_AND_ASSIGN.
14813
3fd6912b
TT
148142020-02-11 Tom Tromey <tom@tromey.com>
14815
14816 * dwarf2/frame.h (struct objfile): Don't forward declare.
14817
69ed9b74
CB
148182020-02-11 Christian Biesinger <cbiesinger@google.com>
14819
14820 * cris-tdep.c (cris_supply_gregset): Change signature to match
14821 what struct regset expects.
14822 (cris_regset): New struct.
14823 (fetch_core_registers): Remove.
14824 (cris_iterate_over_regset_sections): New function.
14825 (_initialize_cris_tdep): Don't call deprecated_add_core_fns.
14826 (cris_gdbarch_init): Call set_gdbarch_iterate_over_regset_sections.
14827
bda874f6
CB
148282020-02-11 Christian Biesinger <cbiesinger@google.com>
14829
14830 * arch/arm.h (enum gdb_regnum): Add comment for the FP0..7
14831 registers.
14832
754e1564
CB
148332020-02-11 Christian Biesinger <cbiesinger@google.com>
14834
14835 * arm-tdep.c (arm_dump_tdep): Add \n in fprintf.
14836
8ddd8e0e
SM
148372020-02-11 Simon Marchi <simon.marchi@efficios.com>
14838
14839 * configure: Re-generate.
14840
898e7f60
SM
148412020-02-11 Simon Marchi <simon.marchi@efficios.com>
14842
14843 * configure: Re-generate.
14844
58df732b
SM
148452020-02-11 Simon Marchi <simon.marchi@efficios.com>
14846
14847 * acinclude: Update warning.m4 path.
14848 * warning.m4: Move to gdbsupport.
14849
da5bd37e
TT
148502020-02-11 Tom Tromey <tromey@adacore.com>
14851
14852 * remote.c (remote_console_output): Update.
14853 * printcmd.c (printf_command): Update.
14854 * event-loop.c (gdb_wait_for_event): Update.
14855 * linux-nat.c (sigchld_handler): Update.
14856 * remote-sim.c (gdb_os_write_stdout): Update.
14857 (gdb_os_flush_stdout): Update.
14858 (gdb_os_flush_stderr): Update.
14859 (gdb_os_write_stderr): Update.
14860 * exceptions.c (print_exception): Update.
14861 * remote-fileio.c (remote_fileio_func_read): Update.
14862 (remote_fileio_func_write): Update.
14863 * tui/tui.c (tui_enable): Update.
14864 * tui/tui-interp.c (tui_interp::init): Update.
14865 * utils.c (init_page_info): Update.
14866 (putchar_unfiltered, fputc_unfiltered): Update.
14867 (gdb_flush): Update.
14868 (emit_style_escape): Update.
14869 (flush_wrap_buffer, fputs_maybe_filtered): Update.
14870 * ui-file.c (ui_file_isatty, ui_file_read, ui_file_write)
14871 (ui_file_write_async_safe, ui_file_flush, ui_file_puts): Remove.
14872 (stderr_file::write): Update.
14873 (stderr_file::puts): Update.
14874 * ui-file.h (ui_file_isatty, ui_file_write)
14875 (ui_file_write_async_safe, ui_file_read, ui_file_flush)
14876 (ui_file_puts): Don't declare.
14877
85f0dd3c
TV
148782020-02-10 Tom de Vries <tdevries@suse.de>
14879
14880 * dwarf2/read.c (process_psymtab_comp_unit_reader): Cast concat NULL
14881 sentinel to char *.
14882
2e927613
TV
148832020-02-09 Tom de Vries <tdevries@suse.de>
14884
14885 * dwarf2read.c (process_psymtab_comp_unit_reader): Append CU offset to
14886 filename if it matches "<artificial>".
14887
6bafc845
HD
148882020-02-09 Hannes Domani <ssbssa@yahoo.de>
14889
14890 * windows-tdep.c (struct enum_value_name): New struct.
14891 (create_enum): New function.
14892 (windows_get_siginfo_type): Create and use enum types.
14893
7928d571
HD
148942020-02-09 Hannes Domani <ssbssa@yahoo.de>
14895
14896 * NEWS: Mention $_siginfo support for Windows.
14897 * windows-nat.c (handle_exception): Set siginfo_er.
14898 (windows_nat_target::mourn_inferior): Reset siginfo_er.
14899 (windows_xfer_siginfo): New function.
14900 (windows_nat_target::xfer_partial): Call windows_xfer_siginfo.
14901 * windows-tdep.c (struct windows_gdbarch_data): New struct.
14902 (init_windows_gdbarch_data): New function.
14903 (get_windows_gdbarch_data): New function.
14904 (windows_get_siginfo_type): New function.
14905 (windows_init_abi): Register windows_get_siginfo_type.
14906 (_initialize_windows_tdep): Register init_windows_gdbarch_data.
14907
6751ebae
TT
149082020-02-08 Tom Tromey <tom@tromey.com>
14909
14910 * dwarf2/read.c (class cutu_reader) <cutu_reader,
14911 init_tu_and_read_dwo_dies>: Remove "keep" parameter.
14912 <keep>: Declare method.
14913 <m_keep>: Remove member.
14914 <~cutu_reader>: Remove.
14915 (cutu_reader::init_tu_and_read_dwo_dies): Update.
14916 (cutu_reader::cutu_reader): Update.
14917 (cutu_reader::keep): Rename from ~cutu_reader.
14918 (process_psymtab_comp_unit, build_type_psymtabs_1)
14919 (process_skeletonless_type_unit, load_partial_comp_unit)
14920 (load_full_comp_unit, dwarf2_read_addr_index)
14921 (read_signatured_type): Update.
14922
135f5437
TT
149232020-02-08 Tom Tromey <tom@tromey.com>
14924
14925 * dwarf2/read.c (process_psymtab_comp_unit_reader): Remove
14926 "want_partial_unit" parameter.
14927 (process_psymtab_comp_unit): Change want_partial_unit to bool.
14928 Inline check for DW_TAG_partial_unit.
14929 (dwarf2_build_psymtabs_hard, scan_partial_symbols): Update.
14930
9f66ff1c
TT
149312020-02-08 Tom Tromey <tom@tromey.com>
14932
14933 * dwarf2/read.c (read_n_bytes, read_direct_string): Move to
14934 read.c.
14935 * dwarf2/leb.h (read_n_bytes, read_direct_string): Move from
14936 read.c.
14937
c8a7a66f
TT
149382020-02-08 Tom Tromey <tom@tromey.com>
14939
14940 * dwarf2/read.c (read_address): Move to comp-unit.c.
14941 (dwarf2_rnglists_process, dwarf2_ranges_process)
14942 (read_attribute_value, dwarf_decode_lines_1)
14943 (var_decode_location, decode_locdesc): Update.
14944 * dwarf2/comp-unit.c (comp_unit_head::read_address): Move from
14945 read.c. Remove "cu" parameter.
14946 * dwarf2/comp-unit.h (struct comp_unit_head) <read_address>: New
14947 method.
14948
8266302d
TT
149492020-02-08 Tom Tromey <tom@tromey.com>
14950
14951 * dwarf2/read.c (read_attribute_value, read_indirect_string)
14952 (read_indirect_line_string): Update.
14953 * dwarf2/comp-unit.c (read_offset): Remove.
14954 (read_comp_unit_head): Update.
14955 * dwarf2/comp-unit.h (struct comp_unit_head) <read_offset>: New
14956 method.
14957 (read_offset): Don't declare.
14958
4057dfde
TT
149592020-02-08 Tom Tromey <tom@tromey.com>
14960
14961 * Makefile.in (COMMON_SFILES): Add dwarf2/comp-unit.c.
14962 * dwarf2/read.c (struct comp_unit_head): Move to
14963 dwarf2/comp-unit.h.
14964 (enum class rcuh_kind): Move to comp-unit.h.
14965 (get_cu_length, offset_in_cu_p): Now methods on comp_unit_head.
14966 (read_comp_unit_head, error_check_comp_unit_head)
14967 (read_and_check_comp_unit_head): Move to comp-unit.c.
14968 (read_offset, dwarf_unit_type_name): Likewise.
14969 (create_debug_type_hash_table, read_cutu_die_from_dwo)
14970 (cutu_reader::cutu_reader, read_call_site_scope)
14971 (find_partial_die, follow_die_offset): Update.
14972 * dwarf2/comp-unit.h: New file, from dwarf2read.c.
14973
24aa364d
TT
149742020-02-08 Tom Tromey <tom@tromey.com>
14975
14976 * dwarf2/read.c (read_offset_1): Move to leb.c.
14977 (read_abbrev_offset, read_offset, dwarf_decode_line_header)
14978 (dwarf_decode_macro_bytes): Update.
14979 * dwarf2/leb.c (read_offset): Rename; move from read.c.
14980 * dwarf2/leb.h (read_offset): Declare.
14981
2c7d5afc
TT
149822020-02-08 Tom Tromey <tom@tromey.com>
14983
14984 * dwarf2/read.c (dwarf2_section_size): Remove.
14985 (error_check_comp_unit_head, dwarf2_symbol_mark_computed):
14986 Update.
14987 * dwarf2/section.h (struct dwarf2_section_info) <get_size>: New method.
14988
4075cb26
TT
149892020-02-08 Tom Tromey <tom@tromey.com>
14990
14991 * dwarf2/read.c (read_initial_length): Move to leb.c.
14992 * dwarf2/leb.h (read_initial_length): Declare.
14993 * dwarf2/leb.c (read_initial_length): Move from read.c. Add
14994 handle_nonstd parameter.
14995 * dwarf2/frame.c (read_initial_length): Remove.
14996 (decode_frame_entry_1): Update.
14997
09ba997f
TT
149982020-02-08 Tom Tromey <tom@tromey.com>
14999
15000 * dwarf2/loc.c (dwarf2_find_location_expression)
15001 (dwarf_evaluate_loc_desc::get_tls_address)
15002 (dwarf_evaluate_loc_desc::push_dwarf_reg_entry_value)
15003 (rw_pieced_value, dwarf2_evaluate_loc_desc_full)
15004 (dwarf2_locexpr_baton_eval, dwarf2_evaluate_property)
15005 (dwarf2_compile_property_to_c)
15006 (dwarf2_loc_desc_get_symbol_read_needs)
15007 (dwarf2_compile_expr_to_ax, locexpr_describe_location)
15008 (locexpr_tracepoint_var_ref, locexpr_generate_c_location)
15009 (loclist_describe_location, loclist_tracepoint_var_ref)
15010 (loclist_generate_c_location): Update.
15011 * compile/compile-loc2c.c (do_compile_dwarf_expr_to_c): Update.
15012 * dwarf2/loc.h (dwarf2_per_cu_objfile, dwarf2_per_cu_addr_size)
15013 (dwarf2_per_cu_ref_addr_size, dwarf2_per_cu_offset_size)
15014 (dwarf2_per_cu_text_offset, dwarf2_version): Don't declare.
15015 * dwarf2/read.c (dwarf2_per_cu_data::objfile)
15016 (dwarf2_per_cu_data::addr_size)
15017 (dwarf2_per_cu_data::ref_addr_size)
15018 (dwarf2_per_cu_data::text_offset)
15019 (dwarf2_per_cu_data::addr_type): Now methods.
15020 (per_cu_header_read_in): Make per_cu "const".
15021 (dwarf2_version): Remove.
15022 (dwarf2_per_cu_data::int_type): Now a method.
15023 (dwarf2_per_cu_data::_addr_sized_int_type): Likewise.
15024 (set_die_type, read_array_type, read_subrange_index_type)
15025 (read_tag_string_type, read_subrange_type): Update.
15026 * dwarf2/read.h (struct dwarf2_per_cu_data) <addr_size,
15027 offset_size, ref_addr_size, text_offset, addr_type, version,
15028 objfile, int_type, addr_sized_int_type>: Declare methods.
15029
96c738c0
TT
150302020-02-08 Tom Tromey <tom@tromey.com>
15031
15032 * dwarf2/read.h (struct dwarf2_per_cu_data) <imported_symtabs>:
15033 Move earlier.
15034
8fdd972c
TT
150352020-02-08 Tom Tromey <tom@tromey.com>
15036
15037 * dwarf2/read.h (dwarf_line_debug): Declare.
15038 * Makefile.in (COMMON_SFILES): Add dwarf2/line-header.c.
15039 * dwarf2/read.c: Move line_header code to new files.
15040 (dwarf_line_debug): No longer static.
15041 * dwarf2/line-header.c: New file.
15042 * dwarf2/line-header.h: New file.
15043
03075812
TT
150442020-02-08 Tom Tromey <tom@tromey.com>
15045
15046 * dwarf2/read.c (struct line_header) <file_full_name,
15047 file_file_name>: Return unique_xmalloc_ptr.
15048 (line_header::file_file_name): Update.
15049 (line_header::file_full_name): Update.
15050 (dw2_get_file_names_reader): Update.
15051 (macro_start_file): Update.
15052
bb822404
TT
150532020-02-08 Tom Tromey <tom@tromey.com>
15054
15055 * dwarf2/read.c (struct line_header) <file_full_name,
15056 file_file_name>: Declare methods.
15057 (dw2_get_file_names_reader): Update.
15058 (file_file_name): Now a method.
15059 (file_full_name): Likewise.
15060 (macro_start_file): Update.
15061
009b64fc
TT
150622020-02-08 Tom Tromey <tom@tromey.com>
15063
15064 * dwarf2/read.c (dwarf_always_disassemble)
15065 (show_dwarf_always_disassemble): Move to loc.c.
15066 (_initialize_dwarf2_read): Move "always-disassemble" registration
15067 to loc.c.
15068 * dwarf2/read.h (dwarf_always_disassemble): Don't declare.
15069 * dwarf2/loc.c (dwarf_always_disassemble): Move from read.c. Now
15070 static.
15071 (show_dwarf_always_disassemble): Move from read.c.
15072 (_initialize_dwarf2loc): Move always-disassemble from read.c.
15073
5895093f
TT
150742020-02-08 Tom Tromey <tom@tromey.com>
15075
15076 * dwarf2/read.c (~dwarf2_per_objfile): Update.
15077 (create_quick_file_names_table): Return htab_up.
15078 (dw2_get_file_names_reader, dw2_forget_cached_source_info):
15079 Update.
15080 * dwarf2/read.h (struct dwarf2_per_objfile)
15081 <quick_file_names_table>: Now htab_up.
15082
b3b32279
TT
150832020-02-08 Tom Tromey <tom@tromey.com>
15084
15085 * dwarf2/abbrev.c (abbrev_table::read): Simplify.
15086
1d33d811
TT
150872020-02-08 Tom Tromey <tom@tromey.com>
15088
15089 * dwarf2/abbrev.c (abbrev_table): Move constructor from header.
15090 Rewrite.
15091 (abbrev_table::add_abbrev, abbrev_table::lookup_abbrev): Rewrite.
15092 * dwarf2/abbrev.h (struct abbrev_info) <next>: Remove.
15093 (abbrev_table::abbrev_table): No longer inline.
15094 (ABBREV_HASH_SIZE): Remove.
15095 (abbrev_table::m_abbrevs): Now an htab_up.
15096
86de1d91
TT
150972020-02-08 Tom Tromey <tom@tromey.com>
15098
15099 * dwarf2/read.c (read_cutu_die_from_dwo): Update.
15100 (cutu_reader): Update.
15101 (build_type_psymtabs_1): Update.
15102 * dwarf2/abbrev.c (abbrev_table::read): Rename.
15103 (abbrev_table::alloc_abbrev): Update.
15104 * dwarf2/abbrev.h (abbrev_table_up): Move earlier.
15105 (abbrev_table::read): New static method, renamed from
15106 abbrev_table_read_table.
15107 (abbrev_table::alloc_abbrev)
15108 (abbrev_table::add_abbrev): Now private.
15109 (abbrev_table::abbrev_table): Now private.
15110 (abbrev_table::m_abbrev_obstack): Now private. Rename.
15111
0335378b
TT
151122020-02-08 Tom Tromey <tom@tromey.com>
15113
15114 * dwarf2/read.c (set_die_type, get_die_type_at_offset): Update.
15115 * dwarf2/read.h (struct dwarf2_per_objfile) <die_type_hash>: Now
15116 htab_up.
15117
48b490f2
TT
151182020-02-08 Tom Tromey <tom@tromey.com>
15119
15120 * dwarf2/read.c (struct dwp_file) <loaded_cus, loaded_tus>: Now
15121 htab_up.
15122 (lookup_dwo_unit_in_dwp): Update.
15123 (allocate_dwp_loaded_cutus_table): Return htab_up. Don't allocate
15124 on obstack.
15125
bc68fb19
TT
151262020-02-08 Tom Tromey <tom@tromey.com>
15127
15128 * dwarf2/read.c (allocate_dwo_file_hash_table): Don't allocate on
15129 obstack.
15130
d15acc42
TT
151312020-02-08 Tom Tromey <tom@tromey.com>
15132
15133 * dwarf2/read.c (~dwarf2_per_objfile): Don't delete
15134 line_header_hash.
15135 (handle_DW_AT_stmt_list): Update. Don't allocate on obstack.
15136 * dwarf2/read.h (struct dwarf2_per_objfile) <line_header_hash>:
15137 Change type to htab_up.
15138
eaa5fa8b
TT
151392020-02-08 Tom Tromey <tom@tromey.com>
15140
15141 * dwarf2/read.c (allocate_type_unit_groups_table): Return
15142 htab_up. Don't allocate on obstack.
15143 (get_type_unit_group, dwarf2_build_psymtabs_hard): Update.
15144 * dwarf2/read.h (struct dwarf2_per_objfile) <type_unit_groups>:
15145 Change type to htab_up.
15146
b0b6a987
TT
151472020-02-08 Tom Tromey <tom@tromey.com>
15148
15149 * dwarf2/read.h (struct dwarf2_per_objfile) <signatured_types>:
15150 Change type to htab_up.
15151 * dwarf2/read.c (create_signatured_type_table_from_index)
15152 (create_signatured_type_table_from_debug_names)
15153 (create_all_type_units, add_type_unit)
15154 (lookup_dwo_signatured_type, lookup_signatured_type)
15155 (process_skeletonless_type_unit): Update.
15156 (create_debug_type_hash_table, create_debug_types_hash_table):
15157 Change type of types_htab.
15158 (allocate_signatured_type_table, allocate_dwo_unit_table): Return
15159 htab_up. Don't allocate on obstack.
15160 (create_cus_hash_table): Change type of cus_htab parameter.
15161 (struct dwo_file) <cus, tus>: Now htab_up.
15162 (lookup_dwo_signatured_type, lookup_dwo_cutu)
15163 (process_dwo_file_for_skeletonless_type_units, lookup_dwo_cutu)
15164 (queue_and_load_all_dwo_tus): Update.
15165 * dwarf2/index-write.c (write_gdbindex): Update.
15166 (write_debug_names): Update.
15167
39856def
TT
151682020-02-08 Tom Tromey <tom@tromey.com>
15169
15170 * dwarf2/read.h (struct dwarf2_queue_item): Move from
15171 dwarf2/read.c. Remove "next" member. Add constructor ntad
15172 destructor.
15173 (struct dwarf2_per_objfile) <queue>: New member.
15174 * dwarf2/read.c (struct dwarf2_queue_item): Move to
15175 dwarf2/read.h.
15176 (dwarf2_queue, dwarf2_queue_tail): Remove.
15177 (class dwarf2_queue_guard): Add parameter to constructor. Use
15178 DISABLE_COPY_AND_ASSIGN.
15179 <m_per_objfile>: New member.
15180 <~dwarf2_queue_guard>: Rewrite.
15181 (dw2_do_instantiate_symtab, queue_comp_unit, process_queue):
15182 Update.
15183 (~dwarf2_queue_item): New.
15184
3e225074
TT
151852020-02-08 Tom Tromey <tom@tromey.com>
15186
15187 * dwarf2/read.c (struct die_info) <has_children>: New member.
15188 (dw2_get_file_names_reader): Remove has_children.
15189 (dw2_get_file_names): Update.
15190 (read_cutu_die_from_dwo): Remove has_children.
15191 (cutu_reader::init_tu_and_read_dwo_dies)
15192 (cutu_reader::cutu_reader): Update.
15193 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader):
15194 Remove has_children.
15195 (build_type_psymtabs_1, process_skeletonless_type_unit)
15196 (load_partial_comp_unit, load_full_comp_unit): Update.
15197 (create_dwo_cu_reader): Remove has_children.
15198 (create_cus_hash_table, read_die_and_children): Update.
15199 (read_full_die_1,read_full_die): Remove has_children.
15200 (read_signatured_type): Update.
15201 (class cutu_reader) <has_children>: Remove.
15202
82ca8957
TT
152032020-02-08 Tom Tromey <tom@tromey.com>
15204
15205 * dwarf2/expr.c: Rename from dwarf2expr.c.
15206 * dwarf2/expr.h: Rename from dwarf2expr.h.
15207 * dwarf2/frame-tailcall.c: Rename from dwarf2-frame-tailcall.c.
15208 * dwarf2/frame-tailcall.h: Rename from dwarf2-frame-tailcall.h.
15209 * dwarf2/frame.c: Rename from dwarf2-frame.c.
15210 * dwarf2/frame.h: Rename from dwarf2-frame.h.
15211 * dwarf2/index-cache.c: Rename from dwarf-index-cache.c.
15212 * dwarf2/index-cache.h: Rename from dwarf-index-cache.h.
15213 * dwarf2/index-common.c: Rename from dwarf-index-common.c.
15214 * dwarf2/index-common.h: Rename from dwarf-index-common.h.
15215 * dwarf2/index-write.c: Rename from dwarf-index-write.c.
15216 * dwarf2/index-write.h: Rename from dwarf-index-write.h.
15217 * dwarf2/loc.c: Rename from dwarf2loc.c.
15218 * dwarf2/loc.h: Rename from dwarf2loc.h.
15219 * dwarf2/read.c: Rename from dwarf2read.c.
15220 * dwarf2/read.h: Rename from dwarf2read.h.
15221 * dwarf2/abbrev.c, aarch64-tdep.c, alpha-tdep.c,
15222 amd64-darwin-tdep.c, arc-tdep.c, arm-tdep.c, bfin-tdep.c,
15223 compile/compile-c-symbols.c, compile/compile-cplus-symbols.c,
15224 compile/compile-loc2c.c, cris-tdep.c, csky-tdep.c, findvar.c,
15225 gdbtypes.c, guile/scm-type.c, h8300-tdep.c, hppa-bsd-tdep.c,
15226 hppa-linux-tdep.c, i386-darwin-tdep.c, i386-linux-tdep.c,
15227 i386-tdep.c, iq2000-tdep.c, m32c-tdep.c, m68hc11-tdep.c,
15228 m68k-tdep.c, microblaze-tdep.c, mips-tdep.c, mn10300-tdep.c,
15229 msp430-tdep.c, nds32-tdep.c, nios2-tdep.c, or1k-tdep.c,
15230 riscv-tdep.c, rl78-tdep.c, rs6000-tdep.c, rx-tdep.c, s12z-tdep.c,
15231 s390-tdep.c, score-tdep.c, sh-tdep.c, sparc-linux-tdep.c,
15232 sparc-tdep.c, sparc64-linux-tdep.c, sparc64-tdep.c, tic6x-tdep.c,
15233 tilegx-tdep.c, v850-tdep.c, xstormy16-tdep.c, xtensa-tdep.c:
15234 Update.
15235 * Makefile.in (COMMON_SFILES): Update.
15236 (HFILES_NO_SRCDIR): Update.
15237
9e35d499
TT
152382020-02-08 Tom Tromey <tom@tromey.com>
15239
15240 * dwarf2read.c (struct die_reader_specs) <comp_dir>: Remove.
15241 (init_cu_die_reader, read_cutu_die_from_dwo): Update.
15242
1eba2311
TT
152432020-02-08 Tom Tromey <tom@tromey.com>
15244
15245 * dwarf2read.h (struct die_info): Don't declare.
15246
e41c2da2
TT
152472020-02-08 Tom Tromey <tom@tromey.com>
15248
15249 * dwarf2read.h (die_info_ptr): Remove typedef.
15250
4fc6c0d5
TT
152512020-02-08 Tom Tromey <tom@tromey.com>
15252
15253 * dwarf2read.c (read_call_site_scope)
15254 (handle_data_member_location, dwarf2_add_member_fn)
15255 (mark_common_block_symbol_computed, read_common_block)
15256 (attr_to_dynamic_prop, partial_die_info::read)
15257 (var_decode_location, dwarf2_fetch_die_loc_sect_off)
15258 (dwarf2_symbol_mark_computed, set_die_type): Update.
15259 * dwarf2/attribute.h (struct attribute) <form_is_block>: Declare
15260 method.
15261 (attr_form_is_block): Don't declare.
15262 * dwarf2/attribute.c (attribute::form_is_block): Now a method.
15263
cd6c91b4
TT
152642020-02-08 Tom Tromey <tom@tromey.com>
15265
15266 * dwarf2read.c (dwarf2_find_base_address, )
15267 (read_call_site_scope, rust_containing_type)
15268 (dwarf2_get_pc_bounds, dwarf2_record_block_ranges)
15269 (handle_data_member_location, dwarf2_add_member_fn)
15270 (get_alignment, read_structure_type, process_structure_scope)
15271 (mark_common_block_symbol_computed, read_common_block)
15272 (read_tag_string_type, attr_to_dynamic_prop, read_subrange_type)
15273 (partial_die_info::read, read_attribute_value, new_symbol)
15274 (lookup_die_type, dwarf2_get_ref_die_offset)
15275 (dwarf2_get_attr_constant_value, follow_die_ref_or_sig)
15276 (dwarf2_fetch_die_loc_sect_off, get_DW_AT_signature_type)
15277 (dwarf2_symbol_mark_computed): Update.
15278 * dwarf2/attribute.h (struct attribute) <value_as_address,
15279 form_is_section_offset, form_is_constant, form_is_ref>: Declare
15280 methods.
15281 (value_as_address, attr_form_is_section_offset)
15282 (attr_form_is_constant, attr_form_is_ref): Don't declare.
15283 * dwarf2/attribute.c (attribute::value_as_address)
15284 (attribute::form_is_section_offset, attribute::form_is_constant)
15285 (attribute::form_is_ref): Now methods.
15286
162dce55
TT
152872020-02-08 Tom Tromey <tom@tromey.com>
15288
15289 * dwarf2read.c (struct attribute, DW_STRING)
15290 (DW_STRING_IS_CANONICAL, DW_UNSND, DW_BLOCK, DW_SND, DW_ADDR)
15291 (DW_SIGNATURE, struct dwarf_block, attr_value_as_address)
15292 (attr_form_is_block, attr_form_is_section_offset)
15293 (attr_form_is_constant, attr_form_is_ref): Move.
15294 * dwarf2/attribute.h: New file.
15295 * dwarf2/attribute.c: New file, from dwarf2read.c.
15296 * Makefile.in (COMMON_SFILES): Add dwarf2/attribute.c.
15297
3054dd54
TT
152982020-02-08 Tom Tromey <tom@tromey.com>
15299
15300 * dwarf2read.c (abbrev_table_up, struct abbrev_info)
15301 (struct attr_abbrev, ABBREV_HASH_SIZE, struct abbrev_table):
15302 Move.
15303 (read_cutu_die_from_dwo, build_type_psymtabs_1): Update.
15304 (abbrev_table::alloc_abbrev, abbrev_table::add_abbrev)
15305 (abbrev_table::lookup_abbrev, abbrev_table_read_table): Move to
15306 abbrev.c.
15307 * dwarf2/abbrev.h: New file.
15308 * dwarf2/abbrev.c: New file, from dwarf2read.c.
15309 * Makefile.in (COMMON_SFILES): Add dwarf2/abbrev.c.
15310
96b79293
TT
153112020-02-08 Tom Tromey <tom@tromey.com>
15312
15313 * dwarf2read.c (dwarf2_section_buffer_overflow_complaint)
15314 (dwarf2_section_size, dwarf2_get_section_info)
15315 (create_signatured_type_table_from_debug_names)
15316 (create_addrmap_from_aranges, read_debug_names_from_section)
15317 (get_gdb_index_contents_from_section, read_comp_unit_head)
15318 (error_check_comp_unit_head, read_abbrev_offset)
15319 (create_debug_type_hash_table, init_cu_die_reader)
15320 (read_cutu_die_from_dwo, dwarf2_build_psymtabs_hard)
15321 (read_comp_units_from_section, create_cus_hash_table)
15322 (create_dwp_hash_table, create_dwo_unit_in_dwp_v1)
15323 (create_dwp_v2_section, dwarf2_rnglists_process)
15324 (dwarf2_ranges_process, read_die_and_siblings, read_full_die)
15325 (abbrev_table_read_table, read_indirect_string_at_offset_from)
15326 (read_indirect_string_from_dwz, read_addr_index_1)
15327 (read_str_index, dwarf_decode_line_header, skip_form_bytes)
15328 (dwarf_decode_macro_bytes, dwarf_decode_macros)
15329 (fill_in_loclist_baton): Update.
15330 * dwarf2/section.h (struct dwarf2_section_info) <get_name,
15331 get_containing_section, get_bfd_owner, get_bfd_section,
15332 get_file_name, get_id, get_flags, empty, read>: Declare methods.
15333 (dwarf2_read_section, get_section_name, get_section_file_name)
15334 (get_containing_section, get_section_bfd_owner)
15335 (get_section_bfd_section, get_section_name, get_section_file_name)
15336 (get_section_id, get_section_flags, dwarf2_section_empty_p): Don't
15337 declare.
15338 * dwarf2/section.c (dwarf2_section_info::get_containing_section)
15339 (dwarf2_section_info::get_bfd_owner)
15340 (dwarf2_section_info::get_bfd_section)
15341 (dwarf2_section_info::get_name)
15342 (dwarf2_section_info::get_file_name, dwarf2_section_info::get_id)
15343 (dwarf2_section_info::get_flags, dwarf2_section_info::empty)
15344 (dwarf2_section_info::read): Now methods.
15345 * dwarf-index-write.c (class debug_names): Update.
15346
2c86cff9
TT
153472020-02-08 Tom Tromey <tom@tromey.com>
15348
15349 * dwarf2read.h (struct dwarf2_section_info, dwarf2_read_section):
15350 Move to dwarf2/section.h.
15351 * dwarf2read.c (get_containing_section, get_section_bfd_owner)
15352 (get_section_bfd_section, get_section_name)
15353 (get_section_file_name, get_section_id, get_section_flags)
15354 (dwarf2_section_empty_p, dwarf2_read_section): Moe to
15355 dwarf2/section.c.
15356 * dwarf2/section.h: New file.
15357 * dwarf2/section.c: New file, from dwarf2read.c.
15358 * Makefile.in (COMMON_SFILES): Add dwarf2/section.c.
15359
f4382c45
TT
153602020-02-08 Tom Tromey <tom@tromey.com>
15361
15362 * dwarf2read.h (read_unsigned_leb128): Don't declare.
15363 * dwarf2read.c (read_1_byte, read_1_signed_byte, read_2_bytes)
15364 (read_2_signed_bytes, read_3_bytes, read_4_bytes)
15365 (read_4_signed_bytes, read_8_bytes): Move to dwarf2/leb.h.
15366 (read_unsigned_leb128, read_signed_leb128): Move to dwarf2/leb.c.
15367 * dwarf2/leb.h: New file, from dwarf2read.c.
15368 * dwarf2/leb.c: New file, from dwarf2read.c.
15369 * dwarf2-frame.c (read_1_byte, read_4_bytes, read_8_bytes):
15370 Remove.
15371 * Makefile.in (CONFIG_SRC_SUBDIR): Add dwarf2.
15372 (COMMON_SFILES): Add dwarf2/leb.c.
15373
01840b7a
JB
153742020-02-08 Joel Brobecker <brobecker@adacore.com>
15375
15376 GDB 9.1 released.
15377
dfcb27e4
IB
153782020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15379
15380 PR gdb/25190:
aac66a4c
SM
15381 * gdb/remote-sim.c (gdb_os_write_stderr): Update.
15382 * gdb/remote.c (remote_console_output): Update.
15383 * gdb/ui-file.c (fputs_unfiltered): Rename to...
15384 (ui_file_puts): ...this.
15385 * gdb/ui-file.h (ui_file_puts): Add declaration.
15386 * gdb/utils.c (emit_style_escape): Update.
15387 (flush_wrap_buffer): Update.
15388 (fputs_maybe_filtered): Update.
15389 (fputs_unfiltered): Add function.
dfcb27e4 15390
faa17681
IB
153912020-02-05 Iain Buclaw <ibuclaw@gdcproject.org>
15392
aac66a4c
SM
15393 * gdb/event-loop.c (gdb_wait_for_event): Update.
15394 * gdb/printcmd.c (printf_command): Update.
15395 * gdb/remote-fileio.c (remote_fileio_func_write): Update.
15396 * gdb/remote-sim.c (gdb_os_flush_stdout): Update.
15397 (gdb_os_flush_stderr): Update.
15398 * gdb/remote.c (remote_console_output): Update.
15399 * gdb/ui-file.c (gdb_flush): Rename to...
15400 (ui_file_flush): ...this.
15401 (stderr_file::write): Update.
15402 (stderr_file::puts): Update.
15403 * gdb/ui-file.h (gdb_flush): Rename to...
15404 (ui_file_flush): ...this.
15405 * gdb/utils.c (gdb_flush): Add function.
15406 * gdb/utils.h (gdb_flush): Add declaration.
faa17681 15407
5abbbe1d
TT
154082020-02-07 Tom Tromey <tromey@adacore.com>
15409
15410 PR breakpoints/24915:
15411 * source.c (find_and_open_source): Do not check basenames_may_differ.
15412
919adfe8
TT
154132020-02-07 Tom Tromey <tom@tromey.com>
15414
15415 * README: Update gdbserver documentation.
15416 * gdbserver: Move to top level.
15417 * configure.tgt (build_gdbserver): Remove.
15418 * configure.ac: Remove --enable-gdbserver.
15419 * configure: Rebuild.
15420 * Makefile.in (distclean): Don't mention gdbserver.
15421
1d5d29e7
SV
154222020-02-06 Shahab Vahedi <shahab@synopsys.com>
15423
15424 * source-cache.c (source_cache::ensure): Surround
15425 get_plain_source_lines with a try/catch.
15426 (source_cache::get_line_charpos): Get rid of try/catch
15427 and only check for the return value of "ensure".
15428 * tui/tui-source.c (tui_source_window::set_contents):
15429 Simplify "nlines" calculation.
15430
6eb1129c
SV
154312020-02-06 Shahab Vahedi <shahab@synopsys.com>
15432
15433 * MAINTAINERS (Write After Approval): Add myself.
15434
c6a42d11
CB
154352020-02-05 Christian Biesinger <cbiesinger@google.com>
15436
15437 * sparc-nat.h (struct sparc_target) <xfer_partial>: Fix base class
15438 function call.
15439
c8ecdda6
CB
154402020-02-05 Christian Biesinger <cbiesinger@google.com>
15441
15442 * ppc-nbsd-tdep.h: Fix macro name in #endif comment.
15443
f6480e70
MR
154442020-02-05 Maciej W. Rozycki <macro@wdc.com>
15445
15446 * nat/riscv-linux-tdesc.h: New file.
15447 * nat/riscv-linux-tdesc.c: New file, taking code from...
15448 * riscv-linux-nat.c (riscv_linux_nat_target::read_description):
15449 ... here.
15450 * configure.nat <linux> <riscv*>: Add nat/riscv-linux-tdesc.o to
15451 NATDEPFILES.
15452
dcc9fbc6
AB
154532020-02-04 Andrew Burgess <andrew.burgess@embecosm.com>
15454
15455 * remote-sim.c (sim_inferior_data::sim_inferior_data): Assert that
15456 we don't set the fake simulator ptid to the null_ptid.
15457
719546c4
SM
154582020-02-03 Simon Marchi <simon.marchi@efficios.com>
15459
15460 * fork-child.c (gdb_startup_inferior): Use bool instead of int.
15461 * gdbthread.h (class thread_info) <resumed>: Likewise.
15462 * infrun.c (resume_1): Likewise.
15463 (proceed): Likewise.
15464 (infrun_thread_stop_requested): Likewise.
15465 (stop_all_threads): Likewise.
15466 (handle_inferior_event): Likewise.
15467 (restart_threads): Likewise.
15468 (finish_step_over): Likewise.
15469 (keep_going_stepped_thread): Likewise.
15470 * linux-nat.c (attach_proc_task_lwp_callback): Likewise.
15471 (linux_handle_extended_wait): Likewise.
15472 * record-btrace.c (get_thread_current_frame_id): Likewise.
15473 * record-full.c (record_full_wait_1): Likewise.
15474 * remote.c (remote_target::process_initial_stop_replies): Likewise.
15475 * target.c (target_resume): Likewise.
15476 * thread.c (set_running_thread): Likewise.
15477
e409c542
AKS
154782020-02-03 Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
15479
15480 * f-valprint.c (f77_print_array_1): Changed datatype of index
15481 variable to LONGEST from int to enable it to contain bound
15482 values correctly.
15483
ee98c0da
MR
154842020-02-03 Maciej W. Rozycki <macro@wdc.com>
15485
15486 * riscv-linux-nat.c [!NFPREG] (NFPREG): New macro.
15487 (supply_fpregset_regnum, fill_fpregset): Handle regset buffer
15488 offsets according to FLEN determined.
15489 (riscv_linux_nat_target::read_description): Determine FLEN
15490 dynamically.
15491 (riscv_linux_nat_target::fetch_registers): Size regset buffer
15492 according to FLEN determined.
15493 (riscv_linux_nat_target::store_registers): Likewise.
15494
aa66aac4
SV
154952020-02-01 Shahab Vahedi <shahab@synopsys.com>
15496
15497 * target-descriptions.c (tdesc_register_in_reggroup_p): Return 0
15498 when reg->group is empty and reggroup is not.
15499
fd9faca8
TT
155002020-01-31 Tom Tromey <tromey@adacore.com>
15501
15502 * ravenscar-thread.c (ravenscar_thread_target::mourn_inferior):
15503 Call beneath target's mourn_inferior after unpushing.
15504
42330a68
AB
155052020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15506
15507 PR tui/9765
15508 * tui/tui-disasm.c (tui_find_disassembly_address): If we don't
15509 have enough lines to fill the screen, still return the lowest
15510 address we found.
15511
7a27a45b
AB
155122020-01-31 Andrew Burgess <andrew.burgess@embecosm.com>
15513
15514 * tui/tui-win.c (_initialize_tui_win): Update help text for '+',
15515 '-', '<', and '>' commands.
15516
c47f70e2
PA
155172020-01-29 Pedro Alves <palves@redhat.com>
15518 Sergio Durigan Junior <sergiodj@redhat.com>
15519
15520 * infcmd.c (construct_inferior_arguments): Assert that
15521 'argc' is greater than 0.
15522
5133a315
LM
155232020-01-29 Luis Machado <luis.machado@linaro.org>
15524
15525 * aarch64-tdep.c (BRK_INSN_MASK): Define to 0xffe0001f.
15526 (BRK_INSN_MASK): Define to 0xd4200000.
15527 (aarch64_program_breakpoint_here_p): New function.
15528 (aarch64_gdbarch_init): Set gdbarch_program_breakpoint_here_p hook.
15529 * arch-utils.c (default_program_breakpoint_here_p): Moved from
15530 breakpoint.c.
15531 * arch-utils.h (default_program_breakpoint_here_p): Moved from
15532 breakpoint.h
15533 * breakpoint.c (bp_loc_is_permanent): Changed return type to bool and
15534 call gdbarch_program_breakpoint_here_p.
15535 (program_breakpoint_here): Moved to arch-utils.c, renamed to
15536 default_program_breakpoint_here_p, changed return type to bool and
15537 simplified.
15538 * breakpoint.h (program_breakpoint_here): Moved prototype to
15539 arch-utils.h, renamed to default_program_breakpoint_here_p and changed
15540 return type to bool.
15541 * gdbarch.c: Regenerate.
15542 * gdbarch.h: Regenerate.
15543 * gdbarch.sh (program_breakpoint_here_p): New method.
15544 * infrun.c (handle_signal_stop): Call
15545 gdbarch_program_breakpoint_here_p.
15546
168f8c6b
TT
155472020-01-26 Tom Tromey <tom@tromey.com>
15548
15549 * ctfread.c (struct ctf_fp_info): Reindent.
15550 (_initialize_ctfread): Remove.
15551
128a391f
TT
155522020-01-26 Tom Tromey <tom@tromey.com>
15553
15554 * psymtab.c (partial_map_expand_apply)
15555 (psym_find_pc_sect_compunit_symtab, psym_lookup_symbol)
15556 (psymtab_to_symtab, psym_find_last_source_symtab, dump_psymtab)
15557 (psym_print_stats, psym_expand_symtabs_for_function)
15558 (psym_map_symbol_filenames, psym_map_matching_symbols)
15559 (psym_expand_symtabs_matching)
15560 (partial_symtab::read_dependencies, maintenance_info_psymtabs)
15561 (maintenance_check_psymtabs): Use new methods.
15562 * psympriv.h (struct partial_symtab) <readin_p,
15563 get_compunit_symtab>: New methods.
15564 <readin, compunit_symtab>: Remove members.
15565 (struct standard_psymtab): New.
15566 (struct legacy_psymtab): Derive from standard_psymtab.
15567 * dwarf2read.h (struct dwarf2_psymtab): Derive from
15568 standard_psymtab.
15569 * ctfread.c (struct ctf_psymtab): Derive from standard_psymtab.
15570
0494dbec
TT
155712020-01-26 Tom Tromey <tom@tromey.com>
15572
15573 * xcoffread.c (xcoff_psymtab_to_symtab_1): Call
15574 read_dependencies. Add assert.
15575 * psymtab.c (partial_symtab::read_dependencies): New method.
15576 * psympriv.h (struct partial_symtab) <read_dependencies>: New
15577 method.
15578 * mdebugread.c (psymtab_to_symtab_1): Call read_dependencies.
15579 * dwarf2read.c (dwarf2_psymtab::expand_psymtab): Call
15580 read_dependencies.
15581 * dbxread.c (dbx_psymtab_to_symtab_1): Call read_dependencies.
15582 Add assert.
15583
8566b89b
TT
155842020-01-26 Tom Tromey <tom@tromey.com>
15585
15586 * xcoffread.c (xcoff_psymtab_to_symtab_1): Change argument order.
15587 Call expand_psymtab.
15588 (xcoff_read_symtab): Call expand_psymtab.
15589 (xcoff_start_psymtab, xcoff_end_psymtab): Set
15590 legacy_expand_psymtab.
15591 * psympriv.h (struct partial_symtab) <expand_psymtab>: New
15592 method.
15593 (struct legacy_psymtab) <expand_psymtab>: Implement.
15594 <legacy_expand_psymtab>: New member.
15595 * mdebugread.c (mdebug_read_symtab): Call expand_psymtab.
15596 (parse_partial_symbols): Set legacy_expand_psymtab.
15597 (psymtab_to_symtab_1): Change argument order. Call
15598 expand_psymtab.
15599 (new_psymtab): Set legacy_expand_psymtab.
15600 * dwarf2read.h (struct dwarf2_psymtab) <expand_psymtab>: Declare.
15601 * dwarf2read.c (dwarf2_psymtab::read_symtab): Call
15602 expand_psymtab.
15603 (dwarf2_psymtab::expand_psymtab): Rename from
15604 psymtab_to_symtab_1. Call expand_psymtab.
15605 * dbxread.c (start_psymtab): Set legacy_expand_psymtab.
15606 (dbx_end_psymtab): Likewise.
15607 (dbx_psymtab_to_symtab_1): Change argument order. Call
15608 expand_psymtab.
15609 (dbx_read_symtab): Call expand_psymtab.
15610 * ctfread.c (struct ctf_psymtab) <expand_psymtab>: Declare.
15611 (ctf_psymtab::expand_psymtab): Rename from psymtab_to_symtab.
15612 (ctf_psymtab::read_symtab): Call expand_psymtab.
15613
077cbab2
TT
156142020-01-26 Tom Tromey <tom@tromey.com>
15615
15616 * xcoffread.c (xcoff_read_symtab): Remove prints. Add assert.
15617 * psymtab.c (psymtab_to_symtab): Print verbose "Reading"
15618 messages.
15619 * mdebugread.c (mdebug_read_symtab): Remove prints.
15620 * dwarf2read.c (dwarf2_psymtab::read_symtab): Remove prints. Add
15621 assert.
15622 * dbxread.c (dbx_read_symtab): Remove prints. Add assert.
15623
891813be
TT
156242020-01-26 Tom Tromey <tom@tromey.com>
15625
15626 * xcoffread.c (this_symtab_psymtab, read_xcoff_symtab)
15627 (xcoff_psymtab_to_symtab_1, xcoff_read_symtab)
15628 (xcoff_start_psymtab, xcoff_end_psymtab, scan_xcoff_symtab): Use
15629 legacy_symtab.
15630 * stabsread.h (dbx_end_psymtab): Use legacy_symtab.
15631 * psymtab.c (psymtab_to_symtab): Call method.
15632 (dump_psymtab): Update.
15633 * psympriv.h (struct partial_symtab): Add virtual destructor.
15634 <read_symtab>: New method.
15635 (struct legacy_symtab): New.
15636 * mdebugread.c (mdebug_read_symtab): Use legacy_psymtab.
15637 (struct pst_map) <pst>: Now a legacy_psymtab.
15638 (parse_procedure, parse_partial_symbols, psymtab_to_symtab_1)
15639 (new_psymtab): Use legacy_psymtab.
15640 * dwarf2read.h (struct dwarf2_psymtab): New.
15641 (struct dwarf2_per_cu_data) <psymtab>: Use it.
15642 * dwarf2read.c (dwarf2_create_include_psymtab)
15643 (dwarf2_build_include_psymtabs, create_type_unit_group)
15644 (create_partial_symtab, process_psymtab_comp_unit_reader)
15645 (build_type_psymtabs_reader, build_type_psymtab_dependencies)
15646 (set_partial_user): Use dwarf2_psymtab.
15647 (dwarf2_psymtab::read_symtab): Rename from dwarf2_read_symtab.
15648 (psymtab_to_symtab_1, process_full_comp_unit)
15649 (process_full_type_unit, dwarf2_ranges_read)
15650 (dwarf2_get_pc_bounds, psymtab_include_file_name)
15651 (dwarf_decode_lines): Use dwarf2_psymtab.
15652 * dwarf-index-write.c (psym_index_map): Use dwarf2_psymtab.
15653 (add_address_entry_worker, write_one_signatured_type)
15654 (recursively_count_psymbols, recursively_write_psymbols)
15655 (write_one_signatured_type, psyms_seen_size, write_gdbindex)
15656 (write_debug_names): Likewise.
15657 * dbxread.c (struct header_file_location): Take a legacy_psymtab.
15658 <pst>: Now a legacy_psymtab.
15659 (find_corresponding_bincl_psymtab): Return a legacy_psymtab.
15660 (read_dbx_symtab, start_psymtab, dbx_end_psymtab)
15661 (dbx_psymtab_to_symtab_1, read_ofile_symtab): Use legacy_psymtab.
15662 * ctfread.c (struct ctf_psymtab): New.
15663 (ctf_start_symtab, ctf_end_symtab, psymtab_to_symtab): Take a
15664 ctf_psymtab.
15665 (ctf_psymtab::read_symtab): Rename from ctf_read_symtab.
15666 (create_partial_symtab): Return a ctf_psymtab.
15667 (scan_partial_symbols): Update.
15668
c3693a1d
TT
156692020-01-26 Tom Tromey <tom@tromey.com>
15670
15671 * xcoffread.c (xcoff_start_psymtab): Use new.
15672 * psymtab.c (partial_symtab::partial_symtab): New constructor,
15673 renamed from start_psymtab_common.
15674 * psympriv.h (struct partial_symtab): Add new constructor.
15675 (start_psymtab_common): Don't declare.
15676 * mdebugread.c (parse_partial_symbols): Use new.
15677 * dwarf2read.c (create_partial_symtab): Use new.
15678 * dbxread.c (start_psymtab): Use new.
15679 * ctfread.c (create_partial_symtab): Use new.
15680
32caafd0
TT
156812020-01-26 Tom Tromey <tom@tromey.com>
15682
15683 * xcoffread.c (xcoff_end_psymtab): Use new.
15684 * psymtab.c (start_psymtab_common): Use new.
15685 (partial_symtab::partial_symtab): Rename from allocate_psymtab.
15686 Update.
15687 * psympriv.h (struct partial_symtab): Add parameters to
15688 constructor. Don't inline.
15689 (allocate_psymtab): Don't declare.
15690 * mdebugread.c (new_psymtab): Use new.
15691 * dwarf2read.c (dwarf2_create_include_psymtab): Use new.
15692 * dbxread.c (dbx_end_psymtab): Use new.
15693
abaa2f23
TT
156942020-01-26 Tom Tromey <tom@tromey.com>
15695
15696 * psymtab.h (class psymtab_storage) <install_psymtab>: Rename from
15697 allocate_psymtab. Update documentation.
15698 * psymtab.c (psymtab_storage::install_psymtab): Rename from
15699 allocate_psymtab. Do not use new.
15700 (allocate_psymtab): Use new. Update.
15701
6d94535f
TT
157022020-01-26 Tom Tromey <tom@tromey.com>
15703
15704 * xcoffread.c (xcoff_psymtab_to_symtab_1): Update.
15705 * psymtab.c (psym_print_stats): Update.
15706 * psympriv.h (struct partial_symtab) <readin,
15707 psymtabs_addrmap_supported, anonymous>: Now bool.
15708 * mdebugread.c (psymtab_to_symtab_1): Update.
15709 * dwarf2read.c (create_type_unit_group, create_partial_symtab)
15710 (build_type_psymtabs_reader, psymtab_to_symtab_1)
15711 (process_full_comp_unit, process_full_type_unit): Update.
15712 * dbxread.c (dbx_psymtab_to_symtab_1): Update.
15713 * ctfread.c (psymtab_to_symtab): Update.
15714
6f17252b
TT
157152020-01-26 Tom Tromey <tom@tromey.com>
15716
15717 * mdebugread.c (parse_partial_symbols): Use discard_psymtab.
15718 * psymtab.h (class psymtab_storage) <free_psymtabs>: Remove.
15719 * psymtab.c (psymtab_storage): Delete psymtabs.
15720 (psymtab_storage::allocate_psymtab): Use new.
15721 (psymtab_storage::discard_psymtab): Use delete.
15722 * psympriv.h (struct partial_symtab): Add constructor and
15723 initializers.
15724
f6f1cebc
TT
157252020-01-26 Tom Tromey <tom@tromey.com>
15726
15727 * machoread.c: Do not include psympriv.h.
15728
e47e48f6
PW
157292020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15730
15731 * NEWS: Mention the new option and the set/show commands.
15732
a2fedca9
PW
157332020-01-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
15734
15735 * exec.c (exec_file_mismatch_names, exec_file_mismatch_mode)
15736 (show_exec_file_mismatch_command, set_exec_file_mismatch_command)
15737 (validate_exec_file): New variables, enums, functions.
15738 (exec_file_locate_attach, print_section_info): Style the filenames.
15739 (_initialize_exec): Install show_exec_file_mismatch_command and
15740 set_exec_file_mismatch_command.
15741 * gdbcore.h (validate_exec_file): Declare.
15742 * infcmd.c (attach_command): Call validate_exec_file.
15743 * remote.c ( remote_target::remote_add_inferior): Likewise.
15744
7ffa82e1
AB
157452020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15746
15747 * frame.c (find_frame_sal): Move call to get_next_frame into more
15748 inner scope.
15749 * inline-frame.c (inilne_state) <inline_state>: Update argument
15750 types.
15751 (inilne_state) <skipped_symbol>: Rename to...
15752 (inilne_state) <skipped_symbols>: ...this, and change to a vector.
15753 (skip_inline_frames): Build vector of skipped symbols and use this
15754 to reate the inline_state.
15755 (inline_skipped_symbol): Add a comment and some assertions, fetch
15756 skipped symbol from the list.
15757
3d92a3e3
AB
157582020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15759
15760 * buildsym.c (lte_is_less_than): Delete.
15761 (buildsym_compunit::end_symtab_with_blockvector): Create local
15762 lambda function to sort line table entries, and use
15763 std::stable_sort instead of std::sort.
15764 * symtab.c (find_pc_sect_line): Skip backward over end of sequence
15765 markers when looking for a previous line.
15766
94a72be7
AB
157672020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15768
15769 * dwarf2read.c (lnp_state_machine::record_line): Include
15770 end_sequence parameter in debug print out. Record the line if we
15771 are at an end_sequence marker even if it's not the start of a
15772 statement.
15773 * symmisc.c (maintenance_print_one_line_table): Print end of
15774 sequence markers with 'END' not '0'.
15775
53af73bf
PA
157762020-01-24 Pedro Alves <palves@redhat.com>
15777
15778 PR gdb/25410
15779 * thread.c (scoped_restore_current_thread::restore): Use
15780 switch_to_inferior_no_thread.
15781 * exec.c: Include "progspace-and-thread.h".
15782 (add_target_sections, remove_target_sections):
15783 scoped_restore_current_pspace_and_thread instead of
15784 scoped_restore_current_thread.
15785 * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
15786 and aspace to the inferior before calling clone_program_space.
15787 Remove stale comment.
15788
3050c6f4
CB
157892020-01-24 Christian Biesinger <cbiesinger@google.com>
15790
15791 * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
15792 (arm_netbsd_nat_target::fetch_registers): ...this.
15793 (arm_nbsd_nat_target::store_registers): Rename to...
15794 (arm_netbsd_nat_target::store_registers): ...this.
15795
73685c7e
CB
157962020-01-24 Christian Biesinger <cbiesinger@google.com>
15797
15798 * arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
15799 register_t.
15800
89203d40
CB
158012020-01-24 Christian Biesinger <cbiesinger@google.com>
15802
15803 * aarch64-fbsd-tdep.c (aarch64_fbsd_iterate_over_regset_sections):
15804 Update comment.
15805 * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections):
15806 Likewise.
15807 * arm-fbsd-tdep.c (arm_fbsd_iterate_over_regset_sections): Likewise.
15808 * gdbcore.h (deprecated_add_core_fns): Update comment to point to
15809 the correct replacement (iterate_over_regset_sections).
15810 * riscv-fbsd-tdep.c (riscv_fbsd_iterate_over_regset_sections):
15811 Update comment.
15812
1ba1ac88
AB
158132020-01-24 Graham Markall <graham.markall@embecosm.com>
15814
15815 PR gdb/23718
15816 * gdb/python/python.c (execute_gdb_command): Call
15817 async_enable_stdin in catch block.
15818
f3364a6d
AB
158192020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15820
15821 * event-loop.c (start_event_loop): Wrap async_enable_stdin with
15822 SWITCH_THRU_ALL_UIS.
15823
733d0a67
AB
158242020-01-24 Andrew Burgess <andrew.burgess@embecosm.com>
15825
15826 PR tui/9765
15827 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update header
15828 comment, add extra parameter, and update to store previous symbol
15829 when appropriate.
15830 * minsyms.h (lookup_minimal_symbol_by_pc_section): Update comment,
15831 add extra parameter.
15832 * tui/tui-disasm.c (tui_disassemble): Update header comment,
15833 remove unneeded parameter, add try/catch around gdb_print_insn,
15834 rewrite to add items to asm_lines vector.
15835 (tui_find_backward_disassembly_start_address): New function.
15836 (tui_find_disassembly_address): Updated throughout.
15837 (tui_disasm_window::set_contents): Update for changes to
15838 tui_disassemble.
15839 (tui_disasm_window::do_scroll_vertical): No need to adjust the
15840 number of lines to scroll.
15841
b3b3bada
SM
158422020-01-23 Simon Marchi <simon.marchi@polymtl.ca>
15843
15844 * objfiles.h (ALL_OBJFILE_OSECTIONS): Move up.
15845 (SECT_OFF_DATA): Likewise.
15846 (SECT_OFF_RODATA): Likewise.
15847 (SECT_OFF_TEXT): Likewise.
15848 (SECT_OFF_BSS): Likewise.
15849 (struct objfile) <text_section_offset, data_section_offset>: New
15850 methods.
15851 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Use
15852 objfile::text_section_offset.
15853 * coff-pe-read.c (add_pe_forwarded_sym): Likewise.
15854 * coffread.c (coff_symtab_read): Likewise.
15855 (enter_linenos): Likewise.
15856 (process_coff_symbol): Likewise.
15857 * ctfread.c (get_objfile_text_range): Likewise.
15858 * dtrace-probe.c (dtrace_probe::get_relocated_address):
15859 Use objfile::data_section_offset.
15860 * dwarf2-frame.c (execute_cfa_program): Use
15861 objfile::text_section_offset.
15862 (dwarf2_frame_find_fde): Likewise.
15863 * dwarf2read.c (create_addrmap_from_index): Likewise.
15864 (create_addrmap_from_aranges): Likewise.
15865 (dw2_find_pc_sect_compunit_symtab): Likewise.
15866 (process_psymtab_comp_unit_reader): Likewise.
15867 (add_partial_symbol): Likewise.
15868 (add_partial_subprogram): Likewise.
15869 (process_full_comp_unit): Likewise.
15870 (read_file_scope): Likewise.
15871 (read_func_scope): Likewise.
15872 (read_lexical_block_scope): Likewise.
15873 (read_call_site_scope): Likewise.
15874 (dwarf2_rnglists_process): Likewise.
15875 (dwarf2_ranges_process): Likewise.
15876 (dwarf2_ranges_read): Likewise.
15877 (dwarf_decode_lines_1): Likewise.
15878 (new_symbol): Likewise.
15879 (dwarf2_fetch_die_loc_sect_off): Likewise.
15880 (dwarf2_per_cu_text_offset): Likewise.
15881 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Likewise.
15882 * hppa-tdep.c (read_unwind_info): Likewise.
15883 * ia64-tdep.c (ia64_find_unwind_table): Likewise.
15884 * psympriv.h (struct partial_symtab): Likewise.
15885 * psymtab.c (find_pc_sect_psymtab): Likewise.
15886 * solib-svr4.c (enable_break): Likewise.
15887 * stap-probe.c (relocate_address): Use
15888 objfile::data_section_offset.
15889 * xcoffread.c (enter_line_range): Use
15890 objfile::text_section_offset.
15891 (read_xcoff_symtab): Likewise.
15892
ab53f382
SM
158932020-01-23 Simon Marchi <simon.marchi@efficios.com>
15894
15895 * darwin-nat.c (darwin_nat_target::wait_1): Move `inf`
15896 declaration to narrower scopes.
15897
e7eee665
SM
158982020-01-23 Simon Marchi <simon.marchi@efficios.com>
15899
15900 * darwin-nat.h (struct darwin_exception_msg, enum
15901 darwin_msg_state, struct darwin_thread_info, darwin_thread_t):
15902 Move up.
15903 (class darwin_nat_target) <wait_1, check_new_threads,
15904 decode_exception_message, decode_message, stop_inferior,
15905 init_thread_list, ptrace_him, cancel_breakpoint>: Declare.
15906 * darwin-nat.c (darwin_check_new_threads): Rename to...
15907 (darwin_nat_target::check_new_threads): ... this.
15908 (darwin_suspend_inferior_it): Remove.
15909 (darwin_decode_exception_message): Rename to...
15910 (darwin_nat_target::decode_exception_message): ... this.
15911 (darwin_nat_target::resume): Pass target to find_inferior_ptid.
15912 (darwin_decode_message): Rename to...
15913 (darwin_nat_target::decode_message): ... this.
15914 (cancel_breakpoint): Rename to...
15915 (darwin_nat_target::cancel_breakpoint): ... this.
15916 (darwin_wait): Rename to...
15917 (darwin_nat_target::wait_1): ... this. Use range-based for loop
15918 instead of iterate_over_inferiors.
15919 (darwin_nat_target::wait): Call wait_1 instead of darwin_wait.
15920 (darwin_stop_inferior): Rename to...
15921 (darwin_nat_target::stop_inferior): ... this.
15922 (darwin_nat_target::kill): Call wait_1 instead of darwin_wait.
15923 (darwin_init_thread_list): Rename to...
15924 (darwin_nat_target::init_thread_list): ... this.
15925 (darwin_ptrace_him): Rename to...
15926 (darwin_nat_target::ptrace_him): ... this.
15927 (darwin_nat_target::create_inferior): Pass lambda function to
15928 fork_inferior.
15929 (darwin_nat_target::detach): Call stop_inferior instead of
15930 darwin_stop_inferior.
15931 * fork-inferior.h (fork_inferior): Change init_trace_fun
15932 parameter to gdb::function_view.
15933 * fork-inferior.c (fork_inferior): Likewise.
15934
c162ed3e
HD
159352020-01-23 Hannes Domani <ssbssa@yahoo.de>
15936
15937 * i386-cygwin-tdep.c (core_process_module_section): Update.
15938 * windows-nat.c (struct lm_info_windows): Add text_offset.
15939 (windows_xfer_shared_libraries): Update.
15940 * windows-tdep.c (windows_xfer_shared_library):
15941 Add text_offset_cached argument.
15942 * windows-tdep.h (windows_xfer_shared_library): Update.
15943
a1237872
SM
159442020-01-21 Simon Marchi <simon.marchi@efficios.com>
15945
15946 * gdbarch.sh: Add declaration for _initialize_gdbarch.
15947
b3ee6dd9
SM
159482020-01-21 Simon Marchi <simon.marchi@efficios.com>
15949
15950 * remote-sim.c (check_for_duplicate_sim_descriptor): Remove.
15951 (get_sim_inferior_data): Remove use of iterate_over_inferiors,
15952 replace with range-based for.
15953 (gdbsim_interrupt_inferior): Remove.
15954 (gdbsim_target::interrupt): Replace iterate_over_inferiors use
15955 with a range-based for. Inline code from
15956 gdbsim_interrupt_inferior.
15957
f9fac3c8
SM
159582020-01-21 Simon Marchi <simon.marchi@efficios.com>
15959
15960 * infrun.c (proceed): Fix indentation.
15961
f6474de9
TT
159622020-01-21 Tom Tromey <tromey@adacore.com>
15963
15964 * source-cache.c (source_cache::ensure): Call ext_lang_colorize.
15965 * python/python.c (python_extension_ops): Update.
15966 (gdbpy_colorize): New function.
15967 * python/lib/gdb/__init__.py (colorize): New function.
15968 * extension.h (ext_lang_colorize): Declare.
15969 * extension.c (ext_lang_colorize): New function.
15970 * extension-priv.h (struct extension_language_ops) <colorize>: New
15971 member.
15972 * cli/cli-style.c (_initialize_cli_style): Update help text.
15973
f0c702d4
LM
159742020-01-21 Luis Machado <luis.machado@linaro.org>
15975
15976 * aarch64-tdep.c (struct aarch64_displaced_step_closure)
15977 <cond>: Change type to bool.
15978 (aarch64_displaced_step_b_cond): Update cond to use bool type.
15979 (aarch64_displaced_step_cb): Likewise.
15980 (aarch64_displaced_step_tb): Likewise.
15981
1ab139e5
LM
159822020-01-21 Luis Machado <luis.machado@linaro.org>
15983
15984 * aarch64-tdep.c (aarch64_displaced_step_fixup): Add more debugging
15985 output.
15986
0c271889
LM
159872020-01-21 Luis Machado <luis.machado@linaro.org>
15988
15989 * aarch64-tdep.c (struct aarch64_displaced_step_closure )
15990 <pc_adjust>: Adjust the documentation.
15991 (aarch64_displaced_step_fixup): Check if PC really moved before
15992 adjusting it.
15993
4d89c1c7
TT
159942020-01-19 Tom Tromey <tom@tromey.com>
15995
15996 * disasm.c (~gdb_disassembler): New destructor.
15997 (gdb_buffered_insn_length): Call disassemble_free_target.
15998 * disasm.h (class gdb_disassembler): Declare destructor. Use
15999 DISABLE_COPY_AND_ASSIGN.
16000
c0ab21c2
TT
160012020-01-19 Tom Tromey <tom@tromey.com>
16002
16003 * dwarf2read.c (abbrev_table_up): Move typedef earlier.
16004 (die_reader_func_ftype): Remove.
16005 (cutu_reader): New class.
16006 (dw2_get_file_names_reader): Remove "data" parameter.
16007 (dw2_get_file_names): Use cutu_reader.
16008 (create_debug_type_hash_table): Update.
16009 (read_cutu_die_from_dwo): Update comment.
16010 (lookup_dwo_unit): Add dwo_name parameter.
16011 (cutu_reader::init_tu_and_read_dwo_dies): Now a method. Remove
16012 die_reader_func_ftype and data parameters.
16013 (cutu_reader::cutu_reader): Rename from init_cutu_and_read_dies.
16014 Remove die_reader_func_ftype and data parameters.
16015 (~cutu_reader): New; from init_cutu_and_read_dies.
16016 (cutu_reader::cutu_reader): Rename from
16017 init_cutu_and_read_dies_no_follow. Remove die_reader_func_ftype
16018 and data parameters.
16019 (init_cutu_and_read_dies_simple): Remove.
16020 (struct process_psymtab_comp_unit_data): Remove.
16021 (process_psymtab_comp_unit_reader): Remove data parameter; add
16022 want_partial_unit and pretend_language parameters.
16023 (process_psymtab_comp_unit): Use cutu_reader.
16024 (build_type_psymtabs_reader): Remove data parameter.
16025 (build_type_psymtabs_1): Use cutu_reader.
16026 (process_skeletonless_type_unit): Likewise.
16027 (load_partial_comp_unit_reader): Remove.
16028 (load_partial_comp_unit): Use cutu_reader.
16029 (load_full_comp_unit_reader): Remove.
16030 (load_full_comp_unit): Use cutu_reader.
16031 (struct create_dwo_cu_data): Remove.
16032 (create_dwo_cu_reader): Remove datap parameter; add dwo_file and
16033 dwo_unit parameters.
16034 (create_cus_hash_table): Use cutu_reader.
16035 (struct dwarf2_read_addr_index_data): Remove.
16036 (dwarf2_read_addr_index_reader): Remove.
16037 (dwarf2_read_addr_index): Use cutu_reader.
16038 (read_signatured_type_reader): Remove.
16039 (read_signatured_type): Use cutu_reader.
16040
45bbae5c
TT
160412020-01-19 Tom Tromey <tom@tromey.com>
16042
16043 * tui/tui.c (tui_show_assembly): Use tui_suppress_output.
16044 * tui/tui-wingeneral.h (class tui_suppress_output): New.
16045 (tui_wrefresh): Declare.
16046 * tui/tui-wingeneral.c (suppress_output): New global.
16047 (tui_suppress_output, ~tui_suppress_output): New constructor and
16048 destructor.
16049 (tui_wrefresh): New function.
16050 (tui_gen_win_info::refresh_window): Use tui_wrefresh.
16051 (tui_gen_win_info::make_window): Call wnoutrefresh when needed.
16052 * tui/tui-regs.h (struct tui_data_window) <no_refresh>: Declare
16053 method.
16054 * tui/tui-regs.c (tui_data_window::erase_data_content): Call
16055 tui_wrefresh.
16056 (tui_data_window::no_refresh): New method.
16057 (tui_data_item_window::refresh_window): Call tui_wrefresh.
16058 (tui_reg_command): Use tui_suppress_output
16059 * tui/tui-layout.c (tui_set_layout): Use tui_suppress_output.
16060 * tui/tui-data.h (struct tui_gen_win_info) <no_refresh>: New
16061 method.
16062 * tui/tui-command.c (tui_refresh_cmd_win): Call tui_wrefresh.
16063
4f13c1c0
TT
160642020-01-19 Tom Tromey <tom@tromey.com>
16065
16066 * tui/tui-winsource.c (tui_update_source_windows_with_line):
16067 Handle case where symtab is null.
16068
fa47e446
SM
160692020-01-19 Simon Marchi <simon.marchi@polymtl.ca>
16070
16071 * linux-fork.c (one_fork_p): Simplify.
16072
26f42329
SM
160732020-01-17 Simon Marchi <simon.marchi@efficios.com>
16074
16075 * top.c (struct qt_args): Remove.
16076 (kill_or_detach): Change return type to void, replace `void *`
16077 parameter with a proper one.
16078 (print_inferior_quit_action): Likewise.
16079 (quit_confirm): Use range-based for loop to iterate over inferiors.
16080 (quit_force): Likewise.
16081
a9ac81b1
SM
160822020-01-17 Simon Marchi <simon.marchi@efficios.com>
16083
16084 * mi/mi-main.c (run_one_inferior): Change return type to void, replace
16085 `void *` parameter with proper parameters.
16086 (mi_cmd_exec_run): Use range-based loop to iterate over inferiors.
16087 (print_one_inferior): Change return type to void, replace `void *`
16088 parameter with proper parameters.
16089 (mi_cmd_list_thread_groups): Use range-based loop to iterate over
16090 inferiors.
16091 (get_other_inferior): Remove.
16092 (mi_cmd_remove_inferior): Use range-based loop to iterate over
16093 inferiors.
16094
788eca49
SM
160952020-01-17 Simon Marchi <simon.marchi@efficios.com>
16096
16097 * mi/mi-interp.c (report_initial_inferior): Remove.
16098 (mi_interp::init): Use range-based for to iterate over inferiors.
16099
d9bc85b6
SM
161002020-01-17 Simon Marchi <simon.marchi@efficios.com>
16101
16102 * python/py-inferior.c (build_inferior_list): Remove.
16103 (gdbpy_ref): Use range-based for loop to iterate over inferiors.
16104
40c94099
CB
161052020-01-16 Christian Biesinger <cbiesinger@google.com>
16106
16107 * btrace.c (btrace_compute_ftrace_1): Fix spelling error (Unkown).
16108 (btrace_stitch_trace): Likewise.
16109 * charset.c (intermediate_encoding): Likewise (vaild).
16110 * nat/linux-btrace.c (linux_read_pt): Likewise (Unkown).
16111 * python/py-record-btrace.c (struct PyMethodDef): Likewise (occurences).
16112 * record-btrace.c (record_btrace_print_conf): Likewise (unkown).
16113
e0cdfe3c
HD
161142020-01-16 Hannes Domani <ssbssa@yahoo.de>
16115
16116 * windows-tdep.c (windows_get_tlb_type):
16117 Add rtl_user_process_parameters type.
16118
790f1718 161192020-01-16 Pedro Alves <palves@redhat.com>
aac66a4c 16120 Norbert Lange <nolange79@gmail.com>
790f1718
PA
16121
16122 PR build/24805
16123 * gdbsupport/gdb_proc_service.h (PS_EXPORT): New.
16124 (ps_get_thread_area, ps_getpid, ps_lcontinue, ps_lgetfpregs)
16125 (ps_lgetregs, ps_lsetfpregs, ps_lsetregs, ps_lstop, ps_pcontinue)
16126 (ps_pdread, ps_pdwrite, ps_pglobal_lookup, ps_pstop, ps_ptread)
16127 (ps_ptwrite, ps_lgetxregs, ps_lgetxregsize, ps_lsetxregs)
16128 (ps_plog): Redeclare exported functions with default visibility.
16129
3112ed97
NA
161302020-01-16 Nitika Achra <Nitika.Achra@amd.com>
16131
16132 * dwarf2loc.c (decode_debug_loclists_addresses): Handle
16133 DW_LLE_base_addressx, DW_LLE_startx_length, DW_LLE_start_length.
16134
8dc3273e
SM
161352020-01-15 Simon Marchi <simon.marchi@efficios.com>
16136
16137 * infcmd.c (post_create_inferior): Use get_thread_regcache
16138 instead of get_current_regcache.
16139
ff47f4f0
TT
161402020-01-14 Tom Tromey <tom@tromey.com>
16141
16142 PR symtab/12535:
16143 * python/python.c (gdbpy_decode_line): Treat empty string the same
16144 as no argument.
16145
975f45b7
TT
161462020-01-14 Tom Tromey <tom@tromey.com>
16147
16148 * Makefile.in (CLIBS): Remove second use of $(LIBIBERTY).
16149
25e57356
TT
161502020-01-14 Tom Tromey <tom@tromey.com>
16151
16152 * nat/linux-btrace.c: Don't include <config.h>.
16153 * nat/linux-ptrace.c: Don't include <config.h>.
16154 * nat/x86-linux-dregs.c: Don't include <config.h>.
16155
05ea2a05
TT
161562020-01-14 Tom Tromey <tom@tromey.com>
16157
16158 * configure: Rebuild.
16159 * configure.ac: Move many checks to ../gdbsupport/common.m4.
16160
01027315
TT
161612020-01-14 Tom Tromey <tom@tromey.com>
16162
16163 * nat/x86-linux-dregs.c: Include configh.h.
16164 * nat/linux-ptrace.c: Include configh.h.
16165 * nat/linux-btrace.c: Include configh.h.
16166 * defs.h: Include config.h, bfd.h.
16167 * configure.ac: Don't source common.host.
16168 (CONFIG_OBS, CONFIG_SRCS): Remove gdbsupport files.
16169 * configure: Rebuild.
16170 * acinclude.m4: Update path.
16171 * Makefile.in (SUPPORT, LIBSUPPORT, INCSUPPORT): New variables.
16172 (CONFIG_SRC_SUBDIR): Remove gdbsupport.
16173 (INTERNAL_CFLAGS_BASE): Add INCSUPPORT.
16174 (CLIBS): Add LIBSUPPORT.
16175 (CDEPS): Likewise.
16176 (COMMON_SFILES): Remove gdbsupport files.
16177 (HFILES_NO_SRCDIR): Likewise.
16178 (stamp-version): Update path to create-version.sh.
16179 (ALLDEPFILES): Remove gdbsupport files.
16180
b2ceabe8
TT
161812020-01-14 Tom Tromey <tom@tromey.com>
16182
16183 * gdbsupport/common.m4 (GDB_AC_COMMON): Define WIN32APILIBS and
16184 USE_WIN32API when needed.
16185 * configure.ac (USE_WIN32API): Don't define.
16186 (WIN32LIBS): Use WIN32APILIBS.
16187 * configure: Rebuild.
16188
25c51f71
TT
161892020-01-14 Tom Tromey <tom@tromey.com>
16190
16191 * configure: Rebuild.
16192 * gdbsupport/common.m4 (GDB_AC_COMMON): Fix indentation.
16193
717c684d
BE
161942020-01-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
16195
16196 * skip.c (skip_function_command): Make skip w/o arguments use the
16197 name of the inlined function if pc is inside any inlined function.
16198
7da6a5b9
LM
161992020-01-14 Luis Machado <luis.machado@linaro.org>
16200
16201 * inf-ptrace.c (inf_ptrace_target::resume): Update comments.
16202 * infrun.c (resume_1): Likewise.
16203 (handle_inferior_event): Remove stale comment.
16204 * linux-nat.c (linux_nat_target::resume): Update comments.
16205 (save_stop_reason): Likewise.
16206 (linux_nat_filter_event): Likewise.
16207 * linux-nat.h (struct lwp_info) <stop_pc>, <stop_reason>: Likewise.
16208
44e4c775
AB
162092020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16210
16211 * elfread.c (record_minimal_symbol): Set section index to 0 for
16212 non-allocatable sections.
16213
18a8505e
AT
16214
162152020-01-13 Ali Tamur <tamur@google.com>
16216
16217 * dwarf2read.c (dwarf2_debug_sections): Add debug_str_offsets sections.
16218 (dwarf2_cu): Add str_offsets_base field. Change the type of addr_base
16219 to gdb::optional. Update comments.
16220 (dwo_file): Update comments.
16221 (read_attribute): Update API to take an additional out parameter,
16222 need_reprocess. This is used to mark attributes that need other
16223 attributes (e.g. str_offsets_base) for correct computation which may not
16224 have been read yet.
16225 (read_attribute_reprocess): New function declaration.
16226 (read_addr_index): Likewise.
16227 (read_dwo_str_index): Likewise.
16228 (read_stub_str_index): Likewise.
16229 (dwarf2_per_objfile::locate_sections): Handle debug_str_offsets section.
16230 (lookup_addr_base): New function definition.
16231 (lookup_ranges_base): Likewise.
16232 (read_cutu_die_from_dwo): Use the new functions: lookup_addr_base,
16233 lookup_ranges_base.
16234 (init_cutu_and_read_dies): Update comments.
16235 (init_cutu_and_read_dies_no_follow): Change API to take parent compile
16236 unit. This is used to inherit parent's str_offsets_base and addr_base.
16237 Update comments.
16238 (init_cutu_and_read_dies_simple): Reflect API changes.
16239 (skip_one_die): Reflect API changes. Handle DW_FORM_rnglistx.
16240 (create_cus_hash_table): Change API to take parent compile unit.
16241 Reflect API changes.
16242 (open_and_init_dwo_file): Reflect API changes.
16243 (dwarf2_get_pc_bounds): Update comments.
16244 (dwarf2_record_block_ranges): Likewise.
16245 (read_full_die_1): Change implementation to reprocess attributes that
16246 need str_offsets_base and addr_base.
16247 (partial_die_info::read): Likewise.
16248 (read_attribute_reprocess): New function definition.
16249 (read_attribute_value): Change API to take an additional out parameter,
16250 need_reprocess. Handle DW_FORM_rnglistx. No longer trigger an error
16251 when a non-dwo compile unit has index based attributes.
16252 (read_attribute): Reflect API changes.
16253 (read_addr_index_1): Reflect API changes. Update comments.
16254 (dwarf2_read_addr_index_data): Reflect API changes.
16255 (dwarf2_read_addr_index): Likewise.
16256 (read_str_index): Change API and implementation. This becomes a helper
16257 to be used by the new string index related methods. Update error
16258 message and comments.
16259 (read_dwo_str_index): New function definition.
16260 (read_stub_str_index): Likewise.
16261 * dwarf2read.h (dwarf2_per_objfile): Add str_offsets field.
16262 * symfile.h (dwarf2_debug_sections): Likewise.
16263 * xcoffread.c (dwarf2_debug_sections): Likewise.
16264
0cac9354
SM
162652020-01-13 Simon Marchi <simon.marchi@efficios.com>
16266
16267 * gdbcore.h (struct core_fns) <core_read_registers>: Change
16268 core_reg_sect type to gdb_byte *.
16269 * arm-nbsd-nat.c (fetch_elfcore_registers): Likewise.
16270 * cris-tdep.c (fetch_core_registers): Likewise.
16271 * corelow.c (core_target::get_core_register_section): Change
16272 type of `contents` to gdb::byte_vector.
16273
9a6d629c
AB
162742020-01-13 Andrew Burgess <andrew.burgess@embecosm.com>
16275
16276 * tui/tui-wingeneral.c (box_win): Position the title in the center
16277 of the border.
16278
d8b2f9e3
SM
162792020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16280
16281 * corelow.c (core_target::get_core_register_section): Use
16282 std::vector instead of alloca.
16283
bb564c58
SM
162842020-01-13 Simon Marchi <simon.marchi@efficios.com>
16285
16286 * warning.m4: Add -Wmissing-declarations to build_warnings.
16287 * configure: Re-generate.
16288
6b366111
SM
162892020-01-13 Simon Marchi <simon.marchi@efficios.com>
16290
16291 * python/python.c (init__gdb_module): Add declaration.
16292
6c265988
SM
162932020-01-13 Simon Marchi <simon.marchi@efficios.com>
16294
16295 * aarch64-fbsd-nat.c (_initialize_aarch64_fbsd_nat): Add declaration.
16296 * aarch64-fbsd-tdep.c (_initialize_aarch64_fbsd_tdep): Add declaration.
16297 * aarch64-linux-nat.c (_initialize_aarch64_linux_nat): Add declaration.
16298 * aarch64-linux-tdep.c (_initialize_aarch64_linux_tdep): Add declaration.
16299 * aarch64-newlib-tdep.c (_initialize_aarch64_newlib_tdep): Add declaration.
16300 * aarch64-tdep.c (_initialize_aarch64_tdep): Add declaration.
16301 * ada-exp.y (_initialize_ada_exp): Add declaration.
16302 * ada-lang.c (_initialize_ada_language): Add declaration.
16303 * ada-tasks.c (_initialize_tasks): Add declaration.
16304 * agent.c (_initialize_agent): Add declaration.
16305 * aix-thread.c (_initialize_aix_thread): Add declaration.
16306 * alpha-bsd-nat.c (_initialize_alphabsd_nat): Add declaration.
16307 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Add declaration.
16308 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add declaration.
16309 * alpha-nbsd-tdep.c (_initialize_alphanbsd_tdep): Add declaration.
16310 * alpha-obsd-tdep.c (_initialize_alphaobsd_tdep): Add declaration.
16311 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
16312 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): Add declaration.
16313 * amd64-dicos-tdep.c (_initialize_amd64_dicos_tdep): Add declaration.
16314 * amd64-fbsd-nat.c (_initialize_amd64fbsd_nat): Add declaration.
16315 * amd64-fbsd-tdep.c (_initialize_amd64fbsd_tdep): Add declaration.
16316 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Add declaration.
16317 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Add declaration.
16318 * amd64-nbsd-nat.c (_initialize_amd64nbsd_nat): Add declaration.
16319 * amd64-nbsd-tdep.c (_initialize_amd64nbsd_tdep): Add declaration.
16320 * amd64-obsd-nat.c (_initialize_amd64obsd_nat): Add declaration.
16321 * amd64-obsd-tdep.c (_initialize_amd64obsd_tdep): Add declaration.
16322 * amd64-sol2-tdep.c (_initialize_amd64_sol2_tdep): Add declaration.
16323 * amd64-tdep.c (_initialize_amd64_tdep): Add declaration.
16324 * amd64-windows-nat.c (_initialize_amd64_windows_nat): Add declaration.
16325 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Add declaration.
16326 * annotate.c (_initialize_annotate): Add declaration.
16327 * arc-newlib-tdep.c (_initialize_arc_newlib_tdep): Add declaration.
16328 * arc-tdep.c (_initialize_arc_tdep): Add declaration.
16329 * arch-utils.c (_initialize_gdbarch_utils): Add declaration.
16330 * arm-fbsd-nat.c (_initialize_arm_fbsd_nat): Add declaration.
16331 * arm-fbsd-tdep.c (_initialize_arm_fbsd_tdep): Add declaration.
16332 * arm-linux-nat.c (_initialize_arm_linux_nat): Add declaration.
16333 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Add declaration.
16334 * arm-nbsd-nat.c (_initialize_arm_netbsd_nat): Add declaration.
16335 * arm-nbsd-tdep.c (_initialize_arm_netbsd_tdep): Add declaration.
16336 * arm-obsd-tdep.c (_initialize_armobsd_tdep): Add declaration.
16337 * arm-pikeos-tdep.c (_initialize_arm_pikeos_tdep): Add declaration.
16338 * arm-symbian-tdep.c (_initialize_arm_symbian_tdep): Add declaration.
16339 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
16340 * arm-wince-tdep.c (_initialize_arm_wince_tdep): Add declaration.
16341 * auto-load.c (_initialize_auto_load): Add declaration.
16342 * auxv.c (_initialize_auxv): Add declaration.
16343 * avr-tdep.c (_initialize_avr_tdep): Add declaration.
16344 * ax-gdb.c (_initialize_ax_gdb): Add declaration.
16345 * bfin-linux-tdep.c (_initialize_bfin_linux_tdep): Add declaration.
16346 * bfin-tdep.c (_initialize_bfin_tdep): Add declaration.
16347 * break-catch-sig.c (_initialize_break_catch_sig): Add declaration.
16348 * break-catch-syscall.c (_initialize_break_catch_syscall): Add declaration.
16349 * break-catch-throw.c (_initialize_break_catch_throw): Add declaration.
16350 * breakpoint.c (_initialize_breakpoint): Add declaration.
16351 * bsd-uthread.c (_initialize_bsd_uthread): Add declaration.
16352 * btrace.c (_initialize_btrace): Add declaration.
16353 * charset.c (_initialize_charset): Add declaration.
16354 * cli/cli-cmds.c (_initialize_cli_cmds): Add declaration.
16355 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
16356 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
16357 * cli/cli-logging.c (_initialize_cli_logging): Add declaration.
16358 * cli/cli-script.c (_initialize_cli_script): Add declaration.
16359 * cli/cli-style.c (_initialize_cli_style): Add declaration.
16360 * coff-pe-read.c (_initialize_coff_pe_read): Add declaration.
16361 * coffread.c (_initialize_coffread): Add declaration.
16362 * compile/compile-cplus-types.c (_initialize_compile_cplus_types): Add declaration.
16363 * compile/compile.c (_initialize_compile): Add declaration.
16364 * complaints.c (_initialize_complaints): Add declaration.
16365 * completer.c (_initialize_completer): Add declaration.
16366 * copying.c (_initialize_copying): Add declaration.
16367 * corefile.c (_initialize_core): Add declaration.
16368 * corelow.c (_initialize_corelow): Add declaration.
16369 * cp-abi.c (_initialize_cp_abi): Add declaration.
16370 * cp-namespace.c (_initialize_cp_namespace): Add declaration.
16371 * cp-support.c (_initialize_cp_support): Add declaration.
16372 * cp-valprint.c (_initialize_cp_valprint): Add declaration.
16373 * cris-linux-tdep.c (_initialize_cris_linux_tdep): Add declaration.
16374 * cris-tdep.c (_initialize_cris_tdep): Add declaration.
16375 * csky-linux-tdep.c (_initialize_csky_linux_tdep): Add declaration.
16376 * csky-tdep.c (_initialize_csky_tdep): Add declaration.
16377 * ctfread.c (_initialize_ctfread): Add declaration.
16378 * d-lang.c (_initialize_d_language): Add declaration.
16379 * darwin-nat-info.c (_initialize_darwin_info_commands): Add declaration.
16380 * darwin-nat.c (_initialize_darwin_nat): Add declaration.
16381 * dbxread.c (_initialize_dbxread): Add declaration.
16382 * dcache.c (_initialize_dcache): Add declaration.
16383 * disasm-selftests.c (_initialize_disasm_selftests): Add declaration.
16384 * disasm.c (_initialize_disasm): Add declaration.
16385 * dtrace-probe.c (_initialize_dtrace_probe): Add declaration.
16386 * dummy-frame.c (_initialize_dummy_frame): Add declaration.
16387 * dwarf-index-cache.c (_initialize_index_cache): Add declaration.
16388 * dwarf-index-write.c (_initialize_dwarf_index_write): Add declaration.
16389 * dwarf2-frame-tailcall.c (_initialize_tailcall_frame): Add declaration.
16390 * dwarf2-frame.c (_initialize_dwarf2_frame): Add declaration.
16391 * dwarf2expr.c (_initialize_dwarf2expr): Add declaration.
16392 * dwarf2loc.c (_initialize_dwarf2loc): Add declaration.
16393 * dwarf2read.c (_initialize_dwarf2_read): Add declaration.
16394 * elfread.c (_initialize_elfread): Add declaration.
16395 * exec.c (_initialize_exec): Add declaration.
16396 * extension.c (_initialize_extension): Add declaration.
16397 * f-lang.c (_initialize_f_language): Add declaration.
16398 * f-valprint.c (_initialize_f_valprint): Add declaration.
16399 * fbsd-nat.c (_initialize_fbsd_nat): Add declaration.
16400 * fbsd-tdep.c (_initialize_fbsd_tdep): Add declaration.
16401 * filesystem.c (_initialize_filesystem): Add declaration.
16402 * findcmd.c (_initialize_mem_search): Add declaration.
16403 * findvar.c (_initialize_findvar): Add declaration.
16404 * fork-child.c (_initialize_fork_child): Add declaration.
16405 * frame-base.c (_initialize_frame_base): Add declaration.
16406 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
16407 * frame.c (_initialize_frame): Add declaration.
16408 * frv-linux-tdep.c (_initialize_frv_linux_tdep): Add declaration.
16409 * frv-tdep.c (_initialize_frv_tdep): Add declaration.
16410 * ft32-tdep.c (_initialize_ft32_tdep): Add declaration.
16411 * gcore.c (_initialize_gcore): Add declaration.
16412 * gdb-demangle.c (_initialize_gdb_demangle): Add declaration.
16413 * gdb_bfd.c (_initialize_gdb_bfd): Add declaration.
16414 * gdbarch-selftests.c (_initialize_gdbarch_selftests): Add declaration.
16415 * gdbarch.c (_initialize_gdbarch): Add declaration.
16416 * gdbtypes.c (_initialize_gdbtypes): Add declaration.
16417 * gnu-nat.c (_initialize_gnu_nat): Add declaration.
16418 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Add declaration.
16419 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Add declaration.
16420 * go-lang.c (_initialize_go_language): Add declaration.
16421 * go32-nat.c (_initialize_go32_nat): Add declaration.
16422 * guile/guile.c (_initialize_guile): Add declaration.
16423 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
16424 * hppa-linux-nat.c (_initialize_hppa_linux_nat): Add declaration.
16425 * hppa-linux-tdep.c (_initialize_hppa_linux_tdep): Add declaration.
16426 * hppa-nbsd-nat.c (_initialize_hppanbsd_nat): Add declaration.
16427 * hppa-nbsd-tdep.c (_initialize_hppanbsd_tdep): Add declaration.
16428 * hppa-obsd-nat.c (_initialize_hppaobsd_nat): Add declaration.
16429 * hppa-obsd-tdep.c (_initialize_hppabsd_tdep): Add declaration.
16430 * hppa-tdep.c (_initialize_hppa_tdep): Add declaration.
16431 * i386-bsd-nat.c (_initialize_i386bsd_nat): Add declaration.
16432 * i386-cygwin-tdep.c (_initialize_i386_cygwin_tdep): Add declaration.
16433 * i386-darwin-nat.c (_initialize_i386_darwin_nat): Add declaration.
16434 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): Add declaration.
16435 * i386-dicos-tdep.c (_initialize_i386_dicos_tdep): Add declaration.
16436 * i386-fbsd-nat.c (_initialize_i386fbsd_nat): Add declaration.
16437 * i386-fbsd-tdep.c (_initialize_i386fbsd_tdep): Add declaration.
16438 * i386-gnu-nat.c (_initialize_i386gnu_nat): Add declaration.
16439 * i386-gnu-tdep.c (_initialize_i386gnu_tdep): Add declaration.
16440 * i386-go32-tdep.c (_initialize_i386_go32_tdep): Add declaration.
16441 * i386-linux-nat.c (_initialize_i386_linux_nat): Add declaration.
16442 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Add declaration.
16443 * i386-nbsd-nat.c (_initialize_i386nbsd_nat): Add declaration.
16444 * i386-nbsd-tdep.c (_initialize_i386nbsd_tdep): Add declaration.
16445 * i386-nto-tdep.c (_initialize_i386nto_tdep): Add declaration.
16446 * i386-obsd-nat.c (_initialize_i386obsd_nat): Add declaration.
16447 * i386-obsd-tdep.c (_initialize_i386obsd_tdep): Add declaration.
16448 * i386-sol2-nat.c (_initialize_amd64_sol2_nat): Add declaration.
16449 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Add declaration.
16450 * i386-tdep.c (_initialize_i386_tdep): Add declaration.
16451 * i386-windows-nat.c (_initialize_i386_windows_nat): Add declaration.
16452 * ia64-libunwind-tdep.c (_initialize_libunwind_frame): Add declaration.
16453 * ia64-linux-nat.c (_initialize_ia64_linux_nat): Add declaration.
16454 * ia64-linux-tdep.c (_initialize_ia64_linux_tdep): Add declaration.
16455 * ia64-tdep.c (_initialize_ia64_tdep): Add declaration.
16456 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Add declaration.
16457 * infcall.c (_initialize_infcall): Add declaration.
16458 * infcmd.c (_initialize_infcmd): Add declaration.
16459 * inflow.c (_initialize_inflow): Add declaration.
16460 * infrun.c (_initialize_infrun): Add declaration.
16461 * interps.c (_initialize_interpreter): Add declaration.
16462 * iq2000-tdep.c (_initialize_iq2000_tdep): Add declaration.
16463 * jit.c (_initialize_jit): Add declaration.
16464 * language.c (_initialize_language): Add declaration.
16465 * linux-fork.c (_initialize_linux_fork): Add declaration.
16466 * linux-nat.c (_initialize_linux_nat): Add declaration.
16467 * linux-tdep.c (_initialize_linux_tdep): Add declaration.
16468 * linux-thread-db.c (_initialize_thread_db): Add declaration.
16469 * lm32-tdep.c (_initialize_lm32_tdep): Add declaration.
16470 * m2-lang.c (_initialize_m2_language): Add declaration.
16471 * m32c-tdep.c (_initialize_m32c_tdep): Add declaration.
16472 * m32r-linux-nat.c (_initialize_m32r_linux_nat): Add declaration.
16473 * m32r-linux-tdep.c (_initialize_m32r_linux_tdep): Add declaration.
16474 * m32r-tdep.c (_initialize_m32r_tdep): Add declaration.
16475 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
16476 * m68k-bsd-nat.c (_initialize_m68kbsd_nat): Add declaration.
16477 * m68k-bsd-tdep.c (_initialize_m68kbsd_tdep): Add declaration.
16478 * m68k-linux-nat.c (_initialize_m68k_linux_nat): Add declaration.
16479 * m68k-linux-tdep.c (_initialize_m68k_linux_tdep): Add declaration.
16480 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
16481 * machoread.c (_initialize_machoread): Add declaration.
16482 * macrocmd.c (_initialize_macrocmd): Add declaration.
16483 * macroscope.c (_initialize_macroscope): Add declaration.
16484 * maint-test-options.c (_initialize_maint_test_options): Add declaration.
16485 * maint-test-settings.c (_initialize_maint_test_settings): Add declaration.
16486 * maint.c (_initialize_maint_cmds): Add declaration.
16487 * mdebugread.c (_initialize_mdebugread): Add declaration.
16488 * memattr.c (_initialize_mem): Add declaration.
16489 * mep-tdep.c (_initialize_mep_tdep): Add declaration.
16490 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Add declaration.
16491 * mi/mi-cmds.c (_initialize_mi_cmds): Add declaration.
16492 * mi/mi-interp.c (_initialize_mi_interp): Add declaration.
16493 * mi/mi-main.c (_initialize_mi_main): Add declaration.
16494 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): Add declaration.
16495 * microblaze-tdep.c (_initialize_microblaze_tdep): Add declaration.
16496 * mips-fbsd-nat.c (_initialize_mips_fbsd_nat): Add declaration.
16497 * mips-fbsd-tdep.c (_initialize_mips_fbsd_tdep): Add declaration.
16498 * mips-linux-nat.c (_initialize_mips_linux_nat): Add declaration.
16499 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Add declaration.
16500 * mips-nbsd-nat.c (_initialize_mipsnbsd_nat): Add declaration.
16501 * mips-nbsd-tdep.c (_initialize_mipsnbsd_tdep): Add declaration.
16502 * mips-sde-tdep.c (_initialize_mips_sde_tdep): Add declaration.
16503 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
16504 * mips64-obsd-nat.c (_initialize_mips64obsd_nat): Add declaration.
16505 * mips64-obsd-tdep.c (_initialize_mips64obsd_tdep): Add declaration.
16506 * mipsread.c (_initialize_mipsread): Add declaration.
16507 * mn10300-linux-tdep.c (_initialize_mn10300_linux_tdep): Add declaration.
16508 * mn10300-tdep.c (_initialize_mn10300_tdep): Add declaration.
16509 * moxie-tdep.c (_initialize_moxie_tdep): Add declaration.
16510 * msp430-tdep.c (_initialize_msp430_tdep): Add declaration.
16511 * nds32-tdep.c (_initialize_nds32_tdep): Add declaration.
16512 * nios2-linux-tdep.c (_initialize_nios2_linux_tdep): Add declaration.
16513 * nios2-tdep.c (_initialize_nios2_tdep): Add declaration.
16514 * nto-procfs.c (_initialize_procfs): Add declaration.
16515 * objc-lang.c (_initialize_objc_language): Add declaration.
16516 * observable.c (_initialize_observer): Add declaration.
16517 * opencl-lang.c (_initialize_opencl_language): Add declaration.
16518 * or1k-linux-tdep.c (_initialize_or1k_linux_tdep): Add declaration.
16519 * or1k-tdep.c (_initialize_or1k_tdep): Add declaration.
16520 * osabi.c (_initialize_gdb_osabi): Add declaration.
16521 * osdata.c (_initialize_osdata): Add declaration.
16522 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
16523 * parse.c (_initialize_parse): Add declaration.
16524 * ppc-fbsd-nat.c (_initialize_ppcfbsd_nat): Add declaration.
16525 * ppc-fbsd-tdep.c (_initialize_ppcfbsd_tdep): Add declaration.
16526 * ppc-linux-nat.c (_initialize_ppc_linux_nat): Add declaration.
16527 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Add declaration.
16528 * ppc-nbsd-nat.c (_initialize_ppcnbsd_nat): Add declaration.
16529 * ppc-nbsd-tdep.c (_initialize_ppcnbsd_tdep): Add declaration.
16530 * ppc-obsd-nat.c (_initialize_ppcobsd_nat): Add declaration.
16531 * ppc-obsd-tdep.c (_initialize_ppcobsd_tdep): Add declaration.
16532 * printcmd.c (_initialize_printcmd): Add declaration.
16533 * probe.c (_initialize_probe): Add declaration.
16534 * proc-api.c (_initialize_proc_api): Add declaration.
16535 * proc-events.c (_initialize_proc_events): Add declaration.
16536 * proc-service.c (_initialize_proc_service): Add declaration.
16537 * procfs.c (_initialize_procfs): Add declaration.
16538 * producer.c (_initialize_producer): Add declaration.
16539 * psymtab.c (_initialize_psymtab): Add declaration.
16540 * python/python.c (_initialize_python): Add declaration.
16541 * ravenscar-thread.c (_initialize_ravenscar): Add declaration.
16542 * record-btrace.c (_initialize_record_btrace): Add declaration.
16543 * record-full.c (_initialize_record_full): Add declaration.
16544 * record.c (_initialize_record): Add declaration.
16545 * regcache-dump.c (_initialize_regcache_dump): Add declaration.
16546 * regcache.c (_initialize_regcache): Add declaration.
16547 * reggroups.c (_initialize_reggroup): Add declaration.
16548 * remote-notif.c (_initialize_notif): Add declaration.
16549 * remote-sim.c (_initialize_remote_sim): Add declaration.
16550 * remote.c (_initialize_remote): Add declaration.
16551 * reverse.c (_initialize_reverse): Add declaration.
16552 * riscv-fbsd-nat.c (_initialize_riscv_fbsd_nat): Add declaration.
16553 * riscv-fbsd-tdep.c (_initialize_riscv_fbsd_tdep): Add declaration.
16554 * riscv-linux-nat.c (_initialize_riscv_linux_nat): Add declaration.
16555 * riscv-linux-tdep.c (_initialize_riscv_linux_tdep): Add declaration.
16556 * riscv-tdep.c (_initialize_riscv_tdep): Add declaration.
16557 * rl78-tdep.c (_initialize_rl78_tdep): Add declaration.
16558 * rs6000-aix-tdep.c (_initialize_rs6000_aix_tdep): Add declaration.
16559 * rs6000-lynx178-tdep.c (_initialize_rs6000_lynx178_tdep):
16560 Add declaration.
16561 * rs6000-nat.c (_initialize_rs6000_nat): Add declaration.
16562 * rs6000-tdep.c (_initialize_rs6000_tdep): Add declaration.
16563 * run-on-main-thread.c (_initialize_run_on_main_thread): Add declaration.
16564 * rust-exp.y (_initialize_rust_exp): Add declaration.
16565 * rx-tdep.c (_initialize_rx_tdep): Add declaration.
16566 * s12z-tdep.c (_initialize_s12z_tdep): Add declaration.
16567 * s390-linux-nat.c (_initialize_s390_nat): Add declaration.
16568 * s390-linux-tdep.c (_initialize_s390_linux_tdep): Add declaration.
16569 * s390-tdep.c (_initialize_s390_tdep): Add declaration.
16570 * score-tdep.c (_initialize_score_tdep): Add declaration.
16571 * ser-go32.c (_initialize_ser_dos): Add declaration.
16572 * ser-mingw.c (_initialize_ser_windows): Add declaration.
16573 * ser-pipe.c (_initialize_ser_pipe): Add declaration.
16574 * ser-tcp.c (_initialize_ser_tcp): Add declaration.
16575 * ser-uds.c (_initialize_ser_socket): Add declaration.
16576 * ser-unix.c (_initialize_ser_hardwire): Add declaration.
16577 * serial.c (_initialize_serial): Add declaration.
16578 * sh-linux-tdep.c (_initialize_sh_linux_tdep): Add declaration.
16579 * sh-nbsd-nat.c (_initialize_shnbsd_nat): Add declaration.
16580 * sh-nbsd-tdep.c (_initialize_shnbsd_tdep): Add declaration.
16581 * sh-tdep.c (_initialize_sh_tdep): Add declaration.
16582 * skip.c (_initialize_step_skip): Add declaration.
16583 * sol-thread.c (_initialize_sol_thread): Add declaration.
16584 * solib-aix.c (_initialize_solib_aix): Add declaration.
16585 * solib-darwin.c (_initialize_darwin_solib): Add declaration.
16586 * solib-dsbt.c (_initialize_dsbt_solib): Add declaration.
16587 * solib-frv.c (_initialize_frv_solib): Add declaration.
16588 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
16589 * solib-target.c (_initialize_solib_target): Add declaration.
16590 * solib.c (_initialize_solib): Add declaration.
16591 * source-cache.c (_initialize_source_cache): Add declaration.
16592 * source.c (_initialize_source): Add declaration.
16593 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Add declaration.
16594 * sparc-linux-tdep.c (_initialize_sparc_linux_tdep): Add declaration.
16595 * sparc-nat.c (_initialize_sparc_nat): Add declaration.
16596 * sparc-nbsd-nat.c (_initialize_sparcnbsd_nat): Add declaration.
16597 * sparc-nbsd-tdep.c (_initialize_sparcnbsd_tdep): Add declaration.
16598 * sparc-obsd-tdep.c (_initialize_sparc32obsd_tdep): Add declaration.
16599 * sparc-sol2-tdep.c (_initialize_sparc_sol2_tdep): Add declaration.
16600 * sparc-tdep.c (_initialize_sparc_tdep): Add declaration.
16601 * sparc64-fbsd-nat.c (_initialize_sparc64fbsd_nat): Add declaration.
16602 * sparc64-fbsd-tdep.c (_initialize_sparc64fbsd_tdep): Add declaration.
16603 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Add declaration.
16604 * sparc64-linux-tdep.c (_initialize_sparc64_linux_tdep): Add declaration.
16605 * sparc64-nat.c (_initialize_sparc64_nat): Add declaration.
16606 * sparc64-nbsd-nat.c (_initialize_sparc64nbsd_nat): Add declaration.
16607 * sparc64-nbsd-tdep.c (_initialize_sparc64nbsd_tdep): Add declaration.
16608 * sparc64-obsd-nat.c (_initialize_sparc64obsd_nat): Add declaration.
16609 * sparc64-obsd-tdep.c (_initialize_sparc64obsd_tdep): Add declaration.
16610 * sparc64-sol2-tdep.c (_initialize_sparc64_sol2_tdep): Add declaration.
16611 * sparc64-tdep.c (_initialize_sparc64_adi_tdep): Add declaration.
16612 * stabsread.c (_initialize_stabsread): Add declaration.
16613 * stack.c (_initialize_stack): Add declaration.
16614 * stap-probe.c (_initialize_stap_probe): Add declaration.
16615 * std-regs.c (_initialize_frame_reg): Add declaration.
16616 * symfile-debug.c (_initialize_symfile_debug): Add declaration.
16617 * symfile-mem.c (_initialize_symfile_mem): Add declaration.
16618 * symfile.c (_initialize_symfile): Add declaration.
16619 * symmisc.c (_initialize_symmisc): Add declaration.
16620 * symtab.c (_initialize_symtab): Add declaration.
16621 * target.c (_initialize_target): Add declaration.
16622 * target-connection.c (_initialize_target_connection): Add
16623 declaration.
16624 * target-dcache.c (_initialize_target_dcache): Add declaration.
16625 * target-descriptions.c (_initialize_target_descriptions): Add declaration.
16626 * thread.c (_initialize_thread): Add declaration.
16627 * tic6x-linux-tdep.c (_initialize_tic6x_linux_tdep): Add declaration.
16628 * tic6x-tdep.c (_initialize_tic6x_tdep): Add declaration.
16629 * tilegx-linux-nat.c (_initialize_tile_linux_nat): Add declaration.
16630 * tilegx-linux-tdep.c (_initialize_tilegx_linux_tdep): Add declaration.
16631 * tilegx-tdep.c (_initialize_tilegx_tdep): Add declaration.
16632 * tracectf.c (_initialize_ctf): Add declaration.
16633 * tracefile-tfile.c (_initialize_tracefile_tfile): Add declaration.
16634 * tracefile.c (_initialize_tracefile): Add declaration.
16635 * tracepoint.c (_initialize_tracepoint): Add declaration.
16636 * tui/tui-hooks.c (_initialize_tui_hooks): Add declaration.
16637 * tui/tui-interp.c (_initialize_tui_interp): Add declaration.
16638 * tui/tui-layout.c (_initialize_tui_layout): Add declaration.
16639 * tui/tui-regs.c (_initialize_tui_regs): Add declaration.
16640 * tui/tui-stack.c (_initialize_tui_stack): Add declaration.
16641 * tui/tui-win.c (_initialize_tui_win): Add declaration.
16642 * tui/tui.c (_initialize_tui): Add declaration.
16643 * typeprint.c (_initialize_typeprint): Add declaration.
16644 * ui-style.c (_initialize_ui_style): Add declaration.
16645 * unittests/array-view-selftests.c (_initialize_array_view_selftests): Add declaration.
16646 * unittests/child-path-selftests.c (_initialize_child_path_selftests): Add declaration.
16647 * unittests/cli-utils-selftests.c (_initialize_cli_utils_selftests): Add declaration.
16648 * unittests/common-utils-selftests.c (_initialize_common_utils_selftests): Add declaration.
16649 * unittests/copy_bitwise-selftests.c (_initialize_copy_bitwise_utils_selftests): Add declaration.
16650 * unittests/environ-selftests.c (_initialize_environ_selftests): Add declaration.
16651 * unittests/filtered_iterator-selftests.c
16652 (_initialize_filtered_iterator_selftests): Add declaration.
16653 * unittests/format_pieces-selftests.c (_initialize_format_pieces_selftests): Add declaration.
16654 * unittests/function-view-selftests.c (_initialize_function_view_selftests): Add declaration.
16655 * unittests/help-doc-selftests.c (_initialize_help_doc_selftests): Add declaration.
16656 * unittests/lookup_name_info-selftests.c (_initialize_lookup_name_info_selftests): Add declaration.
16657 * unittests/main-thread-selftests.c
16658 (_initialize_main_thread_selftests): Add declaration.
16659 * unittests/memory-map-selftests.c (_initialize_memory_map_selftests): Add declaration.
16660 * unittests/memrange-selftests.c (_initialize_memrange_selftests): Add declaration.
16661 * unittests/mkdir-recursive-selftests.c (_initialize_mkdir_recursive_selftests): Add declaration.
16662 * unittests/observable-selftests.c (_initialize_observer_selftest): Add declaration.
16663 * unittests/offset-type-selftests.c (_initialize_offset_type_selftests): Add declaration.
16664 * unittests/optional-selftests.c (_initialize_optional_selftests): Add declaration.
16665 * unittests/parse-connection-spec-selftests.c (_initialize_parse_connection_spec_selftests): Add declaration.
16666 * unittests/rsp-low-selftests.c (_initialize_rsp_low_selftests): Add declaration.
16667 * unittests/scoped_fd-selftests.c (_initialize_scoped_fd_selftests): Add declaration.
16668 * unittests/scoped_mmap-selftests.c (_initialize_scoped_mmap_selftests): Add declaration.
16669 * unittests/scoped_restore-selftests.c (_initialize_scoped_restore_selftests): Add declaration.
16670 * unittests/string_view-selftests.c (_initialize_string_view_selftests): Add declaration.
16671 * unittests/style-selftests.c (_initialize_style_selftest): Add declaration.
16672 * unittests/tracepoint-selftests.c (_initialize_tracepoint_selftests): Add declaration.
16673 * unittests/tui-selftests.c (_initialize_tui_selftest): Add
16674 declaration.
16675 * unittests/unpack-selftests.c (_initialize_unpack_selftests): Add declaration.
16676 * unittests/utils-selftests.c (_initialize_utils_selftests): Add declaration.
16677 * unittests/vec-utils-selftests.c (_initialize_vec_utils_selftests): Add declaration.
16678 * unittests/xml-utils-selftests.c (_initialize_xml_utils): Add declaration.
16679 * user-regs.c (_initialize_user_regs): Add declaration.
16680 * utils.c (_initialize_utils): Add declaration.
16681 * v850-tdep.c (_initialize_v850_tdep): Add declaration.
16682 * valops.c (_initialize_valops): Add declaration.
16683 * valprint.c (_initialize_valprint): Add declaration.
16684 * value.c (_initialize_values): Add declaration.
16685 * varobj.c (_initialize_varobj): Add declaration.
16686 * vax-bsd-nat.c (_initialize_vaxbsd_nat): Add declaration.
16687 * vax-nbsd-tdep.c (_initialize_vaxnbsd_tdep): Add declaration.
16688 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
16689 * windows-nat.c (_initialize_windows_nat): Add declaration.
16690 (_initialize_check_for_gdb_ini): Add declaration.
16691 (_initialize_loadable): Add declaration.
16692 * windows-tdep.c (_initialize_windows_tdep): Add declaration.
16693 * x86-bsd-nat.c (_initialize_x86_bsd_nat): Add declaration.
16694 * x86-linux-nat.c (_initialize_x86_linux_nat): Add declaration.
16695 * xcoffread.c (_initialize_xcoffread): Add declaration.
16696 * xml-support.c (_initialize_xml_support): Add declaration.
16697 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Add declaration.
16698 * xtensa-linux-nat.c (_initialize_xtensa_linux_nat): Add declaration.
16699 * xtensa-linux-tdep.c (_initialize_xtensa_linux_tdep): Add declaration.
16700 * xtensa-tdep.c (_initialize_xtensa_tdep): Add declaration.
16701
e2de1eec
SM
167022020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16703
16704 * regformats/regdat.sh: Generate declaration for init function.
16705
e0037b4c
SM
167062020-01-13 Simon Marchi <simon.marchi@polymtl.ca>
16707
16708 * remote-sim.c (next_pid, INITIAL_PID, sim_inferior_data): Move
16709 up.
16710 (gdbsim_target) <get_inferior_data_by_ptid, resume_one_inferior,
16711 close_one_inferior>: New methods.
16712 (get_sim_inferior_data_by_ptid): Move to gdbsim_target,
16713 pass down target to find_inferior_pid.
16714 (gdbsim_target::fetch_registers, gdbsim_target::store_registers):
16715 Pass down target to find_inferior_ptid.
16716 (gdbsim_target::create_inferior): Pass down target to
16717 add_thread_silent.
16718 (gdbsim_close_inferior): Move to gdbsim_close_inferior, pass
16719 target down to find_inferior_ptid and switch_to_thread.
16720 (gdbsim_target::close): Update to call close_one_inferior.
16721 (struct resume_data): Remove.
16722 (gdbsim_resume_inferior): Move to gdbsim_target. Take arguments
16723 directly, rather than through a void pointer.
16724 (gdbsim_target::resume): Update to call resume_one_inferior.
16725
58920b5b
SM
167262020-01-12 Simon Marchi <simon.marchi@polymtl.ca>
16727
16728 * gdbsupport/gdb_wait.c: Include gdb_wait.h.
16729
4ec89149
PA
167302020-01-12 Pedro Alves <palves@redhat.com>
16731
16732 * bsd-kvm.c (bsd_kvm_target::close): Call exit_inferior_silent
16733 directly for the current inferior instead of
16734 discard_all_inferiors.
16735 (discard_all_inferiors): Delete.
16736
7c392d1d
TT
167372020-01-11 Tom Tromey <tom@tromey.com>
16738
16739 * tui/tui-wingeneral.c (box_win): Check cli_styling.
16740 * tui/tui-winsource.c (tui_source_window_base::refill): Use
16741 deprecated_safe_get_selected_frame.
16742
d9ebdab7
TBA
167432020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
16744
16745 * inferior.c (print_inferior): Switch inferior before printing it.
16746
f3c469b9
PA
167472020-01-10 Aleksandar Paunovic <aleksandar.paunovic@intel.com>
16748 Pedro Alves <palves@redhat.com>
16749
16750 * progspace-and-thread.c (switch_to_program_space_and_thread):
16751 Assert there's an inferior for PSPACE. Use
16752 switch_to_inferior_no_thread to switch the inferior too.
16753 * progspace.c (program_space::~program_space): Call
16754 clear_symtab_users here, with SYMFILE_DEFER_BP_RESET.
16755 (program_space::free_all_objfiles): Don't call clear_symtab_users
16756 here.
16757 * symfile.c (symbol_file_clear): Call clear_symtab_users here.
16758
65c574f6
PA
167592020-01-10 Pedro Alves <palves@redhat.com>
16760
16761 * NEWS: Mention multi-target debugging, "info connections", and
16762 "add-inferior -no-connection".
16763
2f4fcf00
PA
167642020-01-10 Pedro Alves <palves@redhat.com>
16765
16766 * infrun.c: Include "target-connection.h".
16767 (check_multi_target_resumption): New.
16768 (proceed): Call it.
16769 * target-connection.c (make_target_connection_string): Make
16770 extern.
16771 * target-connection.h (make_target_connection_string): Declare.
16772
121b3efd
PA
167732020-01-10 Pedro Alves <palves@redhat.com>
16774
16775 * Makefile.in (COMMON_SFILES): Add target-connection.c.
16776 * inferior.c (uiout_field_connection): New function.
16777 (print_inferior): Add new "connection-id" column.
16778 (add_inferior_command): Show connection number/string of added
16779 inferior.
16780 * process-stratum-target.h
16781 (process_stratum_target::connection_string): New virtual method.
16782 (process_stratum_target::connection_number): New field.
16783 * remote.c (remote_target::connection_string): New override.
16784 * target-connection.c: New file.
16785 * target-connection.h: New file.
16786 * target.c (decref_target): Remove process_stratum targets from
16787 the connection list.
16788 (target_stack::push): Add process_stratum targets to the
16789 connection list.
16790
4f837581
PA
167912020-01-10 Pedro Alves <palves@redhat.com>
16792
16793 Revert:
16794 2016-04-12 Pedro Alves <palves@redhat.com>
16795 * serial.c (serial_open, serial_fdopen_ops, do_serial_close):
16796 Remove references to name.
16797 * serial.h (struct serial) <name>: Delete.
16798
f4ec508e
PA
167992020-01-10 Pedro Alves <palves@redhat.com>
16800
16801 * gdbarch-selftests.c (register_to_value_test): Remove "target
16802 already pushed" check.
16803
5b6d1e4f
PA
168042020-01-10 Pedro Alves <palves@redhat.com>
16805 John Baldwin <jhb@FreeBSD.org>
16806
16807 * aarch64-linux-nat.c
16808 (aarch64_linux_nat_target::thread_architecture): Adjust.
16809 * ada-tasks.c (print_ada_task_info): Adjust find_thread_ptid call.
16810 (task_command_1): Likewise.
16811 * aix-thread.c (sync_threadlists, aix_thread_target::resume)
16812 (aix_thread_target::wait, aix_thread_target::fetch_registers)
16813 (aix_thread_target::store_registers)
16814 (aix_thread_target::thread_alive): Adjust.
16815 * amd64-fbsd-tdep.c: Include "inferior.h".
16816 (amd64fbsd_get_thread_local_address): Pass down target.
16817 * amd64-linux-nat.c (ps_get_thread_area): Use ps_prochandle
16818 thread's gdbarch instead of target_gdbarch.
16819 * break-catch-sig.c (signal_catchpoint_print_it): Adjust call to
16820 get_last_target_status.
16821 * break-catch-syscall.c (print_it_catch_syscall): Likewise.
16822 * breakpoint.c (breakpoints_should_be_inserted_now): Consider all
16823 inferiors.
16824 (update_inserted_breakpoint_locations): Skip if inferiors with no
16825 execution.
16826 (update_global_location_list): When handling moribund locations,
16827 find representative inferior for location's pspace, and use thread
16828 count of its process_stratum target.
16829 * bsd-kvm.c (bsd_kvm_target_open): Pass target down.
16830 * bsd-uthread.c (bsd_uthread_target::wait): Use
16831 as_process_stratum_target and adjust thread_change_ptid and
16832 add_thread calls.
16833 (bsd_uthread_target::update_thread_list): Use
16834 as_process_stratum_target and adjust find_thread_ptid,
16835 thread_change_ptid and add_thread calls.
16836 * btrace.c (maint_btrace_packet_history_cmd): Adjust
16837 find_thread_ptid call.
16838 * corelow.c (add_to_thread_list): Adjust add_thread call.
16839 (core_target_open): Adjust add_thread_silent and thread_count
16840 calls.
16841 (core_target::pid_to_str): Adjust find_inferior_ptid call.
16842 * ctf.c (ctf_target_open): Adjust add_thread_silent call.
16843 * event-top.c (async_disconnect): Pop targets from all inferiors.
16844 * exec.c (add_target_sections): Push exec target on all inferiors
16845 sharing the program space.
16846 (remove_target_sections): Remove the exec target from all
16847 inferiors sharing the program space.
16848 (exec_on_vfork): New.
16849 * exec.h (exec_on_vfork): Declare.
16850 * fbsd-nat.c (fbsd_add_threads): Add fbsd_nat_target parameter.
16851 Pass it down.
16852 (fbsd_nat_target::update_thread_list): Adjust.
16853 (fbsd_nat_target::resume): Adjust.
16854 (fbsd_handle_debug_trap): Add fbsd_nat_target parameter. Pass it
16855 down.
16856 (fbsd_nat_target::wait, fbsd_nat_target::post_attach): Adjust.
16857 * fbsd-tdep.c (fbsd_corefile_thread): Adjust
16858 get_thread_arch_regcache call.
16859 * fork-child.c (gdb_startup_inferior): Pass target down to
16860 startup_inferior and set_executing.
16861 * gdbthread.h (struct process_stratum_target): Forward declare.
16862 (add_thread, add_thread_silent, add_thread_with_info)
16863 (in_thread_list): Add process_stratum_target parameter.
16864 (find_thread_ptid(inferior*, ptid_t)): New overload.
16865 (find_thread_ptid, thread_change_ptid): Add process_stratum_target
16866 parameter.
16867 (all_threads()): Delete overload.
16868 (all_threads, all_non_exited_threads): Add process_stratum_target
16869 parameter.
16870 (all_threads_safe): Use brace initialization.
16871 (thread_count): Add process_stratum_target parameter.
16872 (set_resumed, set_running, set_stop_requested, set_executing)
16873 (threads_are_executing, finish_thread_state): Add
16874 process_stratum_target parameter.
16875 (switch_to_thread): Use is_current_thread.
16876 * i386-fbsd-tdep.c: Include "inferior.h".
16877 (i386fbsd_get_thread_local_address): Pass down target.
16878 * i386-linux-nat.c (i386_linux_nat_target::low_resume): Adjust.
16879 * inf-child.c (inf_child_target::maybe_unpush_target): Remove
16880 have_inferiors check.
16881 * inf-ptrace.c (inf_ptrace_target::create_inferior)
16882 (inf_ptrace_target::attach): Adjust.
16883 * infcall.c (run_inferior_call): Adjust.
16884 * infcmd.c (run_command_1): Pass target to
16885 scoped_finish_thread_state.
16886 (proceed_thread_callback): Skip inferiors with no execution.
16887 (continue_command): Rename 'all_threads' local to avoid hiding
16888 'all_threads' function. Adjust get_last_target_status call.
16889 (prepare_one_step): Adjust set_running call.
16890 (signal_command): Use user_visible_resume_target. Compare thread
16891 pointers instead of inferior_ptid.
16892 (info_program_command): Adjust to pass down target.
16893 (attach_command): Mark target's 'thread_executing' flag.
16894 (stop_current_target_threads_ns): New, factored out from ...
16895 (interrupt_target_1): ... this. Switch inferior before making
16896 target calls.
16897 * inferior-iter.h
16898 (struct all_inferiors_iterator, struct all_inferiors_range)
16899 (struct all_inferiors_safe_range)
16900 (struct all_non_exited_inferiors_range): Filter on
16901 process_stratum_target too. Remove explicit.
16902 * inferior.c (inferior::inferior): Push dummy target on target
16903 stack.
16904 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors):
16905 Add process_stratum_target parameter, and pass it down.
16906 (have_live_inferiors): Adjust.
16907 (switch_to_inferior_and_push_target): New.
16908 (add_inferior_command, clone_inferior_command): Handle
16909 "-no-connection" parameter. Use
16910 switch_to_inferior_and_push_target.
16911 (_initialize_inferior): Mention "-no-connection" option in
16912 the help of "add-inferior" and "clone-inferior" commands.
16913 * inferior.h: Include "process-stratum-target.h".
16914 (interrupt_target_1): Use bool.
16915 (struct inferior) <push_target, unpush_target, target_is_pushed,
16916 find_target_beneath, top_target, process_target, target_at,
16917 m_stack>: New.
16918 (discard_all_inferiors): Delete.
16919 (find_inferior_pid, find_inferior_ptid, number_of_live_inferiors)
16920 (all_inferiors, all_non_exited_inferiors): Add
16921 process_stratum_target parameter.
16922 * infrun.c: Include "gdb_select.h" and <unordered_map>.
16923 (target_last_proc_target): New global.
16924 (follow_fork_inferior): Push target on new inferior. Pass target
16925 to add_thread_silent. Call exec_on_vfork. Handle target's
16926 reference count.
16927 (follow_fork): Adjust get_last_target_status call. Also consider
16928 target.
16929 (follow_exec): Push target on new inferior.
16930 (struct execution_control_state) <target>: New field.
16931 (user_visible_resume_target): New.
16932 (do_target_resume): Call target_async.
16933 (resume_1): Set target's threads_executing flag. Consider resume
16934 target.
16935 (commit_resume_all_targets): New.
16936 (proceed): Also consider resume target. Skip threads of inferiors
16937 with no execution. Commit resumtion in all targets.
16938 (start_remote): Pass current inferior to wait_for_inferior.
16939 (infrun_thread_stop_requested): Consider target as well. Pass
16940 thread_info pointer to clear_inline_frame_state instead of ptid.
16941 (infrun_thread_thread_exit): Consider target as well.
16942 (random_pending_event_thread): New inferior parameter. Use it.
16943 (do_target_wait): Rename to ...
16944 (do_target_wait_1): ... this. Add inferior parameter, and pass it
16945 down.
16946 (threads_are_resumed_pending_p, do_target_wait): New.
16947 (prepare_for_detach): Adjust calls.
16948 (wait_for_inferior): New inferior parameter. Handle it. Use
16949 do_target_wait_1 instead of do_target_wait.
16950 (fetch_inferior_event): Adjust. Switch to representative
16951 inferior. Pass target down.
16952 (set_last_target_status): Add process_stratum_target parameter.
16953 Save target in global.
16954 (get_last_target_status): Add process_stratum_target parameter and
16955 handle it.
16956 (nullify_last_target_wait_ptid): Clear 'target_last_proc_target'.
16957 (context_switch): Check inferior_ptid == null_ptid before calling
16958 inferior_thread().
16959 (get_inferior_stop_soon): Pass down target.
16960 (wait_one): Rename to ...
16961 (poll_one_curr_target): ... this.
16962 (struct wait_one_event): New.
16963 (wait_one): New.
16964 (stop_all_threads): Adjust.
16965 (handle_no_resumed, handle_inferior_event): Adjust to consider the
16966 event's target.
16967 (switch_back_to_stepped_thread): Also consider target.
16968 (print_stop_event): Update.
16969 (normal_stop): Update. Also consider the resume target.
16970 * infrun.h (wait_for_inferior): Remove declaration.
16971 (user_visible_resume_target): New declaration.
16972 (get_last_target_status, set_last_target_status): New
16973 process_stratum_target parameter.
16974 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16975 process_stratum_target parameter, and use it.
16976 (clear_inline_frame_state (thread_info*)): New.
16977 * inline-frame.c (clear_inline_frame_state(ptid_t)): Add
16978 process_stratum_target parameter.
16979 (clear_inline_frame_state (thread_info*)): Declare.
16980 * linux-fork.c (delete_checkpoint_command): Pass target down to
16981 find_thread_ptid.
16982 (checkpoint_command): Adjust.
16983 * linux-nat.c (linux_nat_target::follow_fork): Switch to thread
16984 instead of just tweaking inferior_ptid.
16985 (linux_nat_switch_fork): Pass target down to thread_change_ptid.
16986 (exit_lwp): Pass target down to find_thread_ptid.
16987 (attach_proc_task_lwp_callback): Pass target down to
16988 add_thread/set_running/set_executing.
16989 (linux_nat_target::attach): Pass target down to
16990 thread_change_ptid.
16991 (get_detach_signal): Pass target down to find_thread_ptid.
16992 Consider last target status's target.
16993 (linux_resume_one_lwp_throw, resume_lwp)
16994 (linux_handle_syscall_trap, linux_handle_extended_wait, wait_lwp)
16995 (stop_wait_callback, save_stop_reason, linux_nat_filter_event)
16996 (linux_nat_wait_1, resume_stopped_resumed_lwps): Pass target down.
16997 (linux_nat_target::async_wait_fd): New.
16998 (linux_nat_stop_lwp, linux_nat_target::thread_address_space): Pass
16999 target down.
17000 * linux-nat.h (linux_nat_target::async_wait_fd): Declare.
17001 * linux-tdep.c (get_thread_arch_regcache): Pass target down.
17002 * linux-thread-db.c (struct thread_db_info::process_target): New
17003 field.
17004 (add_thread_db_info): Save target.
17005 (get_thread_db_info): New process_stratum_target parameter. Also
17006 match target.
17007 (delete_thread_db_info): New process_stratum_target parameter.
17008 Also match target.
17009 (thread_from_lwp): Adjust to pass down target.
17010 (thread_db_notice_clone): Pass down target.
17011 (check_thread_db_callback): Pass down target.
17012 (try_thread_db_load_1): Always push the thread_db target.
17013 (try_thread_db_load, record_thread): Pass target down.
17014 (thread_db_target::detach): Pass target down. Always unpush the
17015 thread_db target.
17016 (thread_db_target::wait, thread_db_target::mourn_inferior): Pass
17017 target down. Always unpush the thread_db target.
17018 (find_new_threads_callback, thread_db_find_new_threads_2)
17019 (thread_db_target::update_thread_list): Pass target down.
17020 (thread_db_target::pid_to_str): Pass current inferior down.
17021 (thread_db_target::get_thread_local_address): Pass target down.
17022 (thread_db_target::resume, maintenance_check_libthread_db): Pass
17023 target down.
17024 * nto-procfs.c (nto_procfs_target::update_thread_list): Adjust.
17025 * procfs.c (procfs_target::procfs_init_inferior): Declare.
17026 (proc_set_current_signal, do_attach, procfs_target::wait): Adjust.
17027 (procfs_init_inferior): Rename to ...
17028 (procfs_target::procfs_init_inferior): ... this and adjust.
17029 (procfs_target::create_inferior, procfs_notice_thread)
17030 (procfs_do_thread_registers): Adjust.
17031 * ppc-fbsd-tdep.c: Include "inferior.h".
17032 (ppcfbsd_get_thread_local_address): Pass down target.
17033 * proc-service.c (ps_xfer_memory): Switch current inferior and
17034 program space as well.
17035 (get_ps_regcache): Pass target down.
17036 * process-stratum-target.c
17037 (process_stratum_target::thread_address_space)
17038 (process_stratum_target::thread_architecture): Pass target down.
17039 * process-stratum-target.h
17040 (process_stratum_target::threads_executing): New field.
17041 (as_process_stratum_target): New.
17042 * ravenscar-thread.c
17043 (ravenscar_thread_target::update_inferior_ptid): Pass target down.
17044 (ravenscar_thread_target::wait, ravenscar_add_thread): Pass target
17045 down.
17046 * record-btrace.c (record_btrace_target::info_record): Adjust.
17047 (record_btrace_target::record_method)
17048 (record_btrace_target::record_is_replaying)
17049 (record_btrace_target::fetch_registers)
17050 (get_thread_current_frame_id, record_btrace_target::resume)
17051 (record_btrace_target::wait, record_btrace_target::stop): Pass
17052 target down.
17053 * record-full.c (record_full_wait_1): Switch to event thread.
17054 Pass target down.
17055 * regcache.c (regcache::regcache)
17056 (get_thread_arch_aspace_regcache, get_thread_arch_regcache): Add
17057 process_stratum_target parameter and handle it.
17058 (current_thread_target): New global.
17059 (get_thread_regcache): Add process_stratum_target parameter and
17060 handle it. Switch inferior before calling target method.
17061 (get_thread_regcache): Pass target down.
17062 (get_thread_regcache_for_ptid): Pass target down.
17063 (registers_changed_ptid): Add process_stratum_target parameter and
17064 handle it.
17065 (registers_changed_thread, registers_changed): Pass target down.
17066 (test_get_thread_arch_aspace_regcache): New.
17067 (current_regcache_test): Define a couple local test_target_ops
17068 instances and use them for testing.
17069 (readwrite_regcache): Pass process_stratum_target parameter.
17070 (cooked_read_test, cooked_write_test): Pass mock_target down.
17071 * regcache.h (get_thread_regcache, get_thread_arch_regcache)
17072 (get_thread_arch_aspace_regcache): Add process_stratum_target
17073 parameter.
17074 (regcache::target): New method.
17075 (regcache::regcache, regcache::get_thread_arch_aspace_regcache)
17076 (regcache::registers_changed_ptid): Add process_stratum_target
17077 parameter.
17078 (regcache::m_target): New field.
17079 (registers_changed_ptid): Add process_stratum_target parameter.
17080 * remote.c (remote_state::supports_vCont_probed): New field.
17081 (remote_target::async_wait_fd): New method.
17082 (remote_unpush_and_throw): Add remote_target parameter.
17083 (get_current_remote_target): Adjust.
17084 (remote_target::remote_add_inferior): Push target.
17085 (remote_target::remote_add_thread)
17086 (remote_target::remote_notice_new_inferior)
17087 (get_remote_thread_info): Pass target down.
17088 (remote_target::update_thread_list): Skip threads of inferiors
17089 bound to other targets. (remote_target::close): Don't discard
17090 inferiors. (remote_target::add_current_inferior_and_thread)
17091 (remote_target::process_initial_stop_replies)
17092 (remote_target::start_remote)
17093 (remote_target::remote_serial_quit_handler): Pass down target.
17094 (remote_target::remote_unpush_target): New remote_target
17095 parameter. Unpush the target from all inferiors.
17096 (remote_target::remote_unpush_and_throw): New remote_target
17097 parameter. Pass it down.
17098 (remote_target::open_1): Check whether the current inferior has
17099 execution instead of checking whether any inferior is live. Pass
17100 target down.
17101 (remote_target::remote_detach_1): Pass down target. Use
17102 remote_unpush_target.
17103 (extended_remote_target::attach): Pass down target.
17104 (remote_target::remote_vcont_probe): Set supports_vCont_probed.
17105 (remote_target::append_resumption): Pass down target.
17106 (remote_target::append_pending_thread_resumptions)
17107 (remote_target::remote_resume_with_hc, remote_target::resume)
17108 (remote_target::commit_resume): Pass down target.
17109 (remote_target::remote_stop_ns): Check supports_vCont_probed.
17110 (remote_target::interrupt_query)
17111 (remote_target::remove_new_fork_children)
17112 (remote_target::check_pending_events_prevent_wildcard_vcont)
17113 (remote_target::remote_parse_stop_reply)
17114 (remote_target::process_stop_reply): Pass down target.
17115 (first_remote_resumed_thread): New remote_target parameter. Pass
17116 it down.
17117 (remote_target::wait_as): Pass down target.
17118 (unpush_and_perror): New remote_target parameter. Pass it down.
17119 (remote_target::readchar, remote_target::remote_serial_write)
17120 (remote_target::getpkt_or_notif_sane_1)
17121 (remote_target::kill_new_fork_children, remote_target::kill): Pass
17122 down target.
17123 (remote_target::mourn_inferior): Pass down target. Use
17124 remote_unpush_target.
17125 (remote_target::core_of_thread)
17126 (remote_target::remote_btrace_maybe_reopen): Pass down target.
17127 (remote_target::pid_to_exec_file)
17128 (remote_target::thread_handle_to_thread_info): Pass down target.
17129 (remote_target::async_wait_fd): New.
17130 * riscv-fbsd-tdep.c: Include "inferior.h".
17131 (riscv_fbsd_get_thread_local_address): Pass down target.
17132 * sol2-tdep.c (sol2_core_pid_to_str): Pass down target.
17133 * sol-thread.c (sol_thread_target::wait, ps_lgetregs, ps_lsetregs)
17134 (ps_lgetfpregs, ps_lsetfpregs, sol_update_thread_list_callback):
17135 Adjust.
17136 * solib-spu.c (spu_skip_standalone_loader): Pass down target.
17137 * solib-svr4.c (enable_break): Pass down target.
17138 * spu-multiarch.c (parse_spufs_run): Pass down target.
17139 * spu-tdep.c (spu2ppu_sniffer): Pass down target.
17140 * target-delegates.c: Regenerate.
17141 * target.c (g_target_stack): Delete.
17142 (current_top_target): Return the current inferior's top target.
17143 (target_has_execution_1): Refer to the passed-in inferior's top
17144 target.
17145 (target_supports_terminal_ours): Check whether the initial
17146 inferior was already created.
17147 (decref_target): New.
17148 (target_stack::push): Incref/decref the target.
17149 (push_target, push_target, unpush_target): Adjust.
17150 (target_stack::unpush): Defref target.
17151 (target_is_pushed): Return bool. Adjust to refer to the current
17152 inferior's target stack.
17153 (dispose_inferior): Delete, and inline parts ...
17154 (target_preopen): ... here. Only dispose of the current inferior.
17155 (target_detach): Hold strong target reference while detaching.
17156 Pass target down.
17157 (target_thread_name): Add assertion.
17158 (target_resume): Pass down target.
17159 (target_ops::beneath, find_target_at): Adjust to refer to the
17160 current inferior's target stack.
17161 (get_dummy_target): New.
17162 (target_pass_ctrlc): Pass the Ctrl-C to the first inferior that
17163 has a thread running.
17164 (initialize_targets): Rename to ...
17165 (_initialize_target): ... this.
17166 * target.h: Include "gdbsupport/refcounted-object.h".
17167 (struct target_ops): Inherit refcounted_object.
17168 (target_ops::shortname, target_ops::longname): Make const.
17169 (target_ops::async_wait_fd): New method.
17170 (decref_target): Declare.
17171 (struct target_ops_ref_policy): New.
17172 (target_ops_ref): New typedef.
17173 (get_dummy_target): Declare function.
17174 (target_is_pushed): Return bool.
17175 * thread-iter.c (all_matching_threads_iterator::m_inf_matches)
17176 (all_matching_threads_iterator::all_matching_threads_iterator):
17177 Handle filter target.
17178 * thread-iter.h (struct all_matching_threads_iterator, struct
17179 all_matching_threads_range, class all_non_exited_threads_range):
17180 Filter by target too. Remove explicit.
17181 * thread.c (threads_executing): Delete.
17182 (inferior_thread): Pass down current inferior.
17183 (clear_thread_inferior_resources): Pass down thread pointer
17184 instead of ptid_t.
17185 (add_thread_silent, add_thread_with_info, add_thread): Add
17186 process_stratum_target parameter. Use it for thread and inferior
17187 searches.
17188 (is_current_thread): New.
17189 (thread_info::deletable): Use it.
17190 (find_thread_ptid, thread_count, in_thread_list)
17191 (thread_change_ptid, set_resumed, set_running): New
17192 process_stratum_target parameter. Pass it down.
17193 (set_executing): New process_stratum_target parameter. Pass it
17194 down. Adjust reference to 'threads_executing'.
17195 (threads_are_executing): New process_stratum_target parameter.
17196 Adjust reference to 'threads_executing'.
17197 (set_stop_requested, finish_thread_state): New
17198 process_stratum_target parameter. Pass it down.
17199 (switch_to_thread): Also match inferior.
17200 (switch_to_thread): New process_stratum_target parameter. Pass it
17201 down.
17202 (update_threads_executing): Reimplement.
17203 * top.c (quit_force): Pop targets from all inferior.
17204 (gdb_init): Don't call initialize_targets.
17205 * windows-nat.c (windows_nat_target) <get_windows_debug_event>:
17206 Declare.
17207 (windows_add_thread, windows_delete_thread): Adjust.
17208 (get_windows_debug_event): Rename to ...
17209 (windows_nat_target::get_windows_debug_event): ... this. Adjust.
17210 * tracefile-tfile.c (tfile_target_open): Pass down target.
17211 * gdbsupport/common-gdbthread.h (struct process_stratum_target):
17212 Forward declare.
17213 (switch_to_thread): Add process_stratum_target parameter.
17214 * mi/mi-interp.c (mi_on_resume_1): Add process_stratum_target
17215 parameter. Use it.
17216 (mi_on_resume): Pass target down.
17217 * nat/fork-inferior.c (startup_inferior): Add
17218 process_stratum_target parameter. Pass it down.
17219 * nat/fork-inferior.h (startup_inferior): Add
17220 process_stratum_target parameter.
17221 * python/py-threadevent.c (py_get_event_thread): Pass target down.
17222
75c6c844
PA
172232020-01-10 Pedro Alves <palves@redhat.com>
17224
17225 * remote.c (remote_target::start_remote): Don't set inferior_ptid
17226 directly. Instead find the first thread in the thread list and
17227 use switch_to_thread.
17228
78f2c40a
PA
172292020-01-10 Pedro Alves <palves@redhat.com>
17230
17231 * remote.c (remote_target::remote_add_inferior): Don't bind a
17232 process to the current inferior if the current inferior is already
17233 bound to a process.
17234
e7af6c70
TBA
172352020-01-10 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
17236 Pedro Alves <palves@redhat.com>
17237
17238 * remote.c (remote_target::remote_parse_stop_reply) <W/X packets>:
17239 If no process is specified, return null_ptid instead of
17240 inferior_ptid.
17241 (remote_target::wait_as): Handle TARGET_WAITKIND_EXITED /
17242 TARGET_WAITKIND_SIGNALLED with no pid.
17243
31ba933e
PA
172442020-01-10 Pedro Alves <palves@redhat.com>
17245
17246 * remote.c (first_remote_resumed_thread): New.
17247 (remote_target::wait_as): Use it as default event_ptid instead of
17248 inferior_ptid.
17249
735fc2ca
PA
172502020-01-10 Pedro Alves <palves@redhat.com>
17251
17252 * infrun.c (handle_no_resumed): Use all_non_exited_inferiors.
17253
c17e02e1
PA
172542020-01-10 Pedro Alves <palves@redhat.com>
17255
17256 * tracefile-tfile.c (tfile_target::close): Assert that trace_fd is
17257 not -1.
17258
ab1ddbcf
PA
172592020-01-10 Pedro Alves <palves@redhat.com>
17260
17261 * break-catch-sig.c (signal_catchpoint_print_it): Don't pass a
17262 ptid to get_last_target_status.
17263 * break-catch-syscall.c (print_it_catch_syscall): Don't pass a
17264 ptid to get_last_target_status.
17265 * infcmd.c (continue_command): Don't pass a target_waitstatus to
17266 get_last_target_status.
17267 (info_program_command): Don't pass a target_waitstatus to
17268 get_last_target_status.
17269 * infrun.c (init_wait_for_inferior): Use
17270 nullify_last_target_wait_ptid.
17271 (get_last_target_status): Handle nullptr arguments.
17272 (nullify_last_target_wait_ptid): Clear target_last_waitstatus.
17273 (print_stop_event): Don't pass a ptid to get_last_target_status.
17274 (normal_stop): Don't pass a ptid to get_last_target_status.
17275 * infrun.h (get_last_target_status, set_last_target_status): Move
17276 comments here and update.
17277 (nullify_last_target_wait_ptid): Declare.
17278 * linux-fork.c (fork_load_infrun_state): Remove local extern
17279 declaration of nullify_last_target_wait_ptid.
17280 * linux-nat.c (get_detach_signal): Don't pass a target_waitstatus
17281 to get_last_target_status.
17282
f3f8ece4
PA
172832020-01-10 Pedro Alves <palves@redhat.com>
17284
17285 * gdbthread.h (scoped_restore_current_thread)
17286 <dont_restore, restore, m_dont_restore>: Declare.
17287 * thread.c (thread_alive): Add assertion. Return bool.
17288 (switch_to_thread_if_alive): New.
17289 (prune_threads): Switch inferior/thread.
17290 (print_thread_info_1): Switch thread before calling target methods.
17291 (scoped_restore_current_thread::restore): New, factored out from
17292 ...
17293 (scoped_restore_current_thread::~scoped_restore_current_thread):
17294 ... this.
17295 (scoped_restore_current_thread::scoped_restore_current_thread):
17296 Add assertion.
17297 (thread_apply_all_command, thread_select): Use
17298 switch_to_thread_if_alive.
17299 * infrun.c (proceed, restart_threads, handle_signal_stop)
17300 (switch_back_to_stepped_thread): Switch current thread before
17301 calling target methods.
17302
db2d40f7
PA
173032020-01-10 Pedro Alves <palves@redhat.com>
17304
17305 * inferior.c (switch_to_inferior_no_thread): New function,
17306 factored out from ...
17307 (inferior_command): ... here.
17308 * inferior.h (switch_to_inferior_no_thread): Declare.
17309 * mi/mi-main.c (run_one_inferior): Use
17310 switch_to_inferior_no_thread.
17311
bd420a2d
PA
173122020-01-10 Pedro Alves <palves@redhat.com>
17313
17314 * infcmd.c (kill_command): Remove dead code.
17315
ddf5db90
PA
173162020-01-10 Pedro Alves <palves@redhat.com>
17317
17318 * remote.c (remote_target::mourn_inferior): No longer check
17319 whether the target is running.
17320
5018ce90
PA
173212020-01-10 Pedro Alves <palves@redhat.com>
17322
17323 * corelow.c (core_target::has_execution): Change parameter type to
17324 inferior pointer.
17325 * inferior.c (number_of_live_inferiors): Use
17326 inferior::has_execution instead of target_has_execution_1.
17327 * inferior.h (inferior::has_execution): New.
17328 * linux-thread-db.c (thread_db_target::update_thread_list): Use
17329 inferior::has_execution instead of target_has_execution_1.
17330 * process-stratum-target.c
17331 (process_stratum_target::has_execution): Change parameter type to
17332 inferior pointer. Check the inferior's PID instead of
17333 inferior_ptid.
17334 * process-stratum-target.h
17335 (process_stratum_target::has_execution): Change parameter type to
17336 inferior pointer.
17337 * record-full.c (record_full_core_target::has_execution): Change
17338 parameter type to inferior pointer.
17339 * target.c (target_has_execution_1): Change parameter type to
17340 inferior pointer.
17341 (target_has_execution_current): Adjust.
17342 * target.h (target_ops::has_execution): Change parameter type to
17343 inferior pointer.
17344 (target_has_execution_1): Change parameter type to inferior
17345 pointer. Change return type to bool.
17346 * tracefile.h (tracefile_target::has_execution): Change parameter
17347 type to inferior pointer.
17348
74375d18
PA
173492020-01-10 Pedro Alves <palves@redhat.com>
17350
17351 * exceptions.c (print_flush): Remove current_top_target() check.
17352
acdf84a6
PA
173532020-01-10 Pedro Alves <palves@redhat.com>
17354
17355 * remote.c (show_remote_exec_file): Show the current inferior's
17356 exec-file instead of the command variable's value.
17357
ec506636
PA
173582020-01-10 Pedro Alves <palves@redhat.com>
17359
17360 * record-full.c (record_full_resume_ptid): New global.
17361 (record_full_target::resume): Set it.
17362 (record_full_wait_1): Use record_full_resume_ptid instead of
17363 inferior_ptid.
17364
873657b9
PA
173652020-01-10 Pedro Alves <palves@redhat.com>
17366
17367 * gdbthread.h (scoped_restore_current_thread)
17368 <dont_restore, restore, m_dont_restore>: Declare.
17369 * thread.c (thread_alive): Add assertion. Return bool.
17370 (switch_to_thread_if_alive): New.
17371 (prune_threads): Switch inferior/thread.
17372 (print_thread_info_1): Switch thread before calling target methods.
17373 (scoped_restore_current_thread::restore): New, factored out from
17374 ...
17375 (scoped_restore_current_thread::~scoped_restore_current_thread):
17376 ... this.
17377 (scoped_restore_current_thread::scoped_restore_current_thread):
17378 Add assertion.
17379 (thread_apply_all_command, thread_select): Use
17380 switch_to_thread_if_alive.
17381
7f0ae84c
GB
173822020-01-10 George Barrett <bob@bob131.so>
17383
17384 * stap-probe.c (stap_modify_semaphore): Don't check for null
17385 semaphores.
17386 (stap_probe::set_semaphore, stap_probe::clear_semaphore): Check
17387 for null semaphores.
17388
f5a7c406
AB
173892020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17390
17391 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Update
17392 all source windows, and maintain horizontal scroll status while
17393 doing so.
17394
9ae6bf64
TT
173952020-01-09 Tom Tromey <tom@tromey.com>
17396
17397 PR tui/18932:
17398 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Call
17399 update_source_window, not print_source_lines.
17400
b2efe70c
AB
174012020-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
17402
17403 * tui/tui.c (tui_enable): Register tui hooks after calling
17404 tui_display_main.
17405
5f23a082
CB
174062020-01-09 Christian Biesinger <cbiesinger@google.com>
17407
17408 * gdbsupport/common-defs.h: Don't define _FORTIFY_SOURCE on MinGW.
17409
3061113b
SM
174102020-01-08 Simon Marchi <simon.marchi@efficios.com>
17411
17412 * thread.c (print_thread_info_1): Fix indentation.
17413
57d75002
CB
174142020-01-09 Christian Biesinger <cbiesinger@google.com>
17415
17416 * symtab.c (general_symbol_info::compute_and_set_names): Move the
17417 unique_xmalloc_ptr outside the if to always free the demangled name.
17418
6a053cb1
TT
174192020-01-08 Tom Tromey <tromey@adacore.com>
17420
17421 * xcoffread.c (enter_line_range, read_xcoff_symtab)
17422 (process_xcoff_symbol, xcoff_symfile_offsets): Update.
17423 * symtab.h (MSYMBOL_VALUE_ADDRESS): Update.
17424 (struct section_offsets, ANOFFSET, SIZEOF_N_SECTION_OFFSETS):
17425 Remove.
17426 (section_offsets): New typedef.
17427 * symtab.c (fixup_section, get_msymbol_address): Update.
17428 * symmisc.c (dump_msymbols): Update.
17429 * symfile.h (relative_addr_info_to_section_offsets)
17430 (symfile_map_offsets_to_segments): Update.
17431 * symfile.c (build_section_addr_info_from_objfile)
17432 (init_objfile_sect_indices): Update.
17433 (struct place_section_arg): Change type of "offsets".
17434 (place_section): Update.
17435 (relative_addr_info_to_section_offsets): Change type of
17436 "section_offsets". Remove "num_sections" parameter.
17437 (default_symfile_offsets, syms_from_objfile_1)
17438 (set_objfile_default_section_offset): Update.
17439 (reread_symbols): No need to preserve section offsets by hand.
17440 (symfile_map_offsets_to_segments): Change type of "offsets".
17441 * stap-probe.c (relocate_address): Update.
17442 * stabsread.h (process_one_symbol): Update.
17443 * solib-target.c (struct lm_info_target) <offsets>: Change type.
17444 (solib_target_relocate_section_addresses): Update.
17445 * solib-svr4.c (enable_break, svr4_relocate_main_executable):
17446 Update.
17447 * solib-frv.c (frv_relocate_main_executable): Update.
17448 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
17449 * solib-aix.c (solib_aix_get_section_offsets): Change return
17450 type.
17451 (solib_aix_solib_create_inferior_hook): Update.
17452 * remote.c (remote_target::get_offsets): Update.
17453 * psymtab.c (find_pc_sect_psymtab): Update.
17454 * psympriv.h (struct partial_symbol) <address, text_low,
17455 text_high>: Update.
17456 * objfiles.h (obj_section_offset): Update.
17457 (struct objfile) <section_offsets>: Change type.
17458 <num_sections>: Remove.
17459 (objfile_relocate): Update.
17460 * objfiles.c (entry_point_address_query): Update
17461 (relocate_one_symbol): Change type of "section_offsets".
17462 (objfile_relocate1, objfile_relocate1): Change type of
17463 "new_offsets".
17464 (objfile_rebase1): Update.
17465 * mipsread.c (mipscoff_symfile_read): Update.
17466 (read_alphacoff_dynamic_symtab): Remove "section_offsets"
17467 parameter.
17468 * mdebugread.c (parse_symbol): Change type of "section_offsets".
17469 (parse_external, psymtab_to_symtab_1): Update.
17470 * machoread.c (macho_symfile_offsets): Update.
17471 * ia64-tdep.c (ia64_find_unwind_table): Update.
17472 * hppa-tdep.c (read_unwind_info): Update.
17473 * hppa-bsd-tdep.c (hppabsd_find_global_pointer): Update.
17474 * dwarf2read.c (create_addrmap_from_index)
17475 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
17476 (process_psymtab_comp_unit_reader, add_partial_symbol)
17477 (add_partial_subprogram, process_full_comp_unit)
17478 (read_file_scope, read_func_scope, read_lexical_block_scope)
17479 (read_call_site_scope, dwarf2_rnglists_process)
17480 (dwarf2_ranges_process, dwarf2_ranges_read)
17481 (dwarf_decode_lines_1, var_decode_location, new_symbol)
17482 (dwarf2_fetch_die_loc_sect_off, dwarf2_per_cu_text_offset):
17483 Update.
17484 * dwarf2-frame.c (execute_cfa_program, dwarf2_frame_find_fde):
17485 Update.
17486 * dtrace-probe.c (dtrace_probe::get_relocated_address): Update.
17487 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Update.
17488 (process_one_symbol): Change type of "section_offsets".
17489 * ctfread.c (get_objfile_text_range): Update.
17490 * coffread.c (coff_symtab_read, enter_linenos)
17491 (process_coff_symbol): Update.
17492 * coff-pe-read.c (add_pe_forwarded_sym): Update.
17493 * amd64-windows-tdep.c (amd64_windows_find_unwind_info): Update.
17494
456e800a
TT
174952020-01-08 Tom Tromey <tromey@adacore.com>
17496
17497 * dwarf2read.c (parse_macro_definition): Use std::string.
17498 (parse_macro_definition): Likewise.
17499
6dfa2fc2
TT
175002020-01-08 Tom Tromey <tromey@adacore.com>
17501
17502 * dwarf2read.c (abbrev_table_read_table): Use std::vector.
17503 (ATTR_ALLOC_CHUNK): Remove.
17504
421d1616
TT
175052020-01-08 Tom Tromey <tromey@adacore.com>
17506
17507 * dwarf2read.c (fixup_go_packaging): Use unique_xmalloc_ptr.
17508
43816ebc
TT
175092020-01-08 Tom Tromey <tromey@adacore.com>
17510
17511 * dwarf2read.c (add_partial_symbol): Use unique_xmalloc_ptr.
17512 (dwarf2_compute_name, open_dwo_file): Likewise.
17513 (process_enumeration_scope): Use std::vector.
17514 (guess_partial_die_structure_name): Use unique_xmalloc_ptr.
17515 (partial_die_info::fixup, dwarf2_start_subfile)
17516 (guess_full_die_structure_name, dwarf2_name): Likewise.
17517 (determine_prefix): Update.
17518 (guess_full_die_structure_name): Make return type const.
17519 (partial_die_full_name): Return unique_xmalloc_ptr.
17520 (DW_FIELD_ALLOC_CHUNK): Remove.
17521
4212d509
TT
175222020-01-07 Tom Tromey <tromey@adacore.com>
17523
17524 PR build/24937:
17525 * stap-probe.c (class stap_static_probe_ops): Add constructor.
17526
06a6207a
JT
175272020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17528
17529 * cli/cli-style.c: Set cli_styling to 'true' in the Cygwin build.
17530
153d79c4
AB
175312020-01-06 Andrew Burgess <andrew.burgess@embecosm.com>
17532
17533 * stack.c (print_frame_info): Move disassemble_next_line code
17534 inside source_print block.
17535
66182876
EZ
175362020-01-06 Eli Zaretskii <eliz@gnu.org>
17537
17538 * gdbsupport/gdb_wait.c: Include <signal.h> instead of
17539 gdb/signals.h, as we are now using native signal symbols.
17540
cbfa8581
SV
175412020-01-06 Shahab Vahedi <shahab@synopsys.com>
17542
17543 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): Avoid
17544 overflow by an early check of content vs threshold.
aac66a4c 17545 * tui/tui-source.c (tui_source_window::line_is_displayed):
cbfa8581
SV
17546 Likewise.
17547
3f602821
EZ
175482020-01-06 Eli Zaretskii <eliz@gnu.org>
17549
17550 * NEWS: Mention the recent fix of $_exitsignal on MS-Windows.
17551
a08c904d
JT
175522020-01-02 Jon Turney <jon.turney@dronecode.org.uk>
17553
17554 * coff-pe-read.c (read_pe_exported_syms): Don't try to read the
17555 export table if no section contains it's RVA.
17556
89a65580
EZ
175572020-01-06 Eli Zaretskii <eliz@gnu.org>
17558
17559 * windows-tdep.c: Fix a typo in WINDOWS_SIGABRT.
17560
8b7fcda2
HD
175612020-01-06 Hannes Domani <ssbssa@yahoo.de>
17562
17563 * source.c (print_source_lines_base): Set last_line_listed.
17564
a61b4f69
SV
175652020-01-06 Shahab Vahedi <shahab@synopsys.com>
17566
17567 * tui/tui-disasm.c: Remove trailing spaces.
17568
559e7e50
EZ
175692020-01-06 Eli Zaretskii <eliz@gnu.org>
17570 Pedro Alves <palves@redhat.com>
17571
17572 * Makefile.in (COMMON_SFILES): Add gdbsupport/gdb_wait.c.
17573 * windows-tdep.c: New enumeration of WINDOWS_SIG* signals.
17574 (windows_gdb_signal_to_target): New function, uses the above
17575 enumeration to convert GDB internal signal codes to equivalent
17576 Windows codes.
17577 (windows_init_abi): Call set_gdbarch_gdb_signal_to_target.
17578 * windows-nat.c: Include "gdb_wait.h".
17579 (get_windows_debug_event): Extract the fatal exception from the
17580 exit status and convert to the equivalent Posix signal number.
17581 * cli/cli-cmds.c (exit_status_set_internal_vars): Account for the
17582 possibility that WTERMSIG returns GDB_SIGNAL_UNKNOWN.
17583 * gdbsupport/gdb_wait.c: New file, implements
17584 windows_status_to_termsig.
17585 * gdbsupport/gdb_wait.h (WIFEXITED, WIFSIGNALED, WEXITSTATUS)
17586 (WTERMSIG) [__MINGW32__]: Separate definitions for MinGW.
17587
f2302a34
AB
175882020-01-05 Andrew Burgess <andrew.burgess@embecosm.com>
17589
17590 * tui/tui-layout.c (tui_add_win_to_layout): Use tui_set_layout not
17591 show_layout.
17592
6a5206eb
LM
175932020-01-05 Luis Machado <luis.machado@linaro.org>
17594
17595 * aarch64-linux-nat.c
17596 (aarch64_linux_nat_target::thread_architecture): Use bfd_arch_aarch64
17597 and bfd_mach_aarch64.
17598
6ec1d75e
PW
175992020-01-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
17600
17601 * ui-file.c (stdio_file::can_emit_style_escape)
17602 (tee_file::can_emit_style_escape): Ensure style is used also on
17603 gdb_stderr when gdb_stderr is a tty supporting styling, similarly
17604 to gdb_stdout.
17605 * main.c (set_gdb_data_directory): Use file style to output the
17606 warning that the given pathname is not a directory.
17607 * top.c (show_history_filename, gdb_safe_append_history)
17608 (show_gdb_datadir): Use file style.
17609
44f81a76
HD
176102020-01-03 Hannes Domani <ssbssa@yahoo.de>
17611
17612 * solib-target.c (struct lm_info_target):
17613 Change offsets to be a unique_xmalloc_ptr.
17614 (solib_target_relocate_section_addresses): Update.
17615
25057eb0
HD
176162020-01-03 Hannes Domani <ssbssa@yahoo.de>
17617
17618 * windows-nat.c (windows_clear_solib): Free so_list linked list.
17619
6e2118f5
BE
176202020-01-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
17621
17622 * MAINTAINERS (Write After Approval): Add myself.
17623
8133c7dc
LM
176242020-01-02 Luis Machado <luis.machado@linaro.org>
17625
17626 * proc-service.c (get_ps_regcache): Remove reference to obsolete
17627 Cell BE architecture.
17628 * target.h (struct target_ops) <thread_architecture>: Likewise.
17629
48189bec
HD
176302020-01-01 Hannes Domani <ssbssa@yahoo.de>
17631
17632 * Makefile.in: Use INSTALL_PROGRAM_ENV.
17633
ead1063b
HD
176342020-01-01 Hannes Domani <ssbssa@yahoo.de>
17635
17636 * MAINTAINERS (Write After Approval): Add myself.
17637
e5d78223
JB
176382020-01-01 Joel Brobecker <brobecker@adacore.com>
17639
17640 * gdbarch.sh: Update copyright year range of generated files.
17641
b811d2c2
JB
176422020-01-01 Joel Brobecker <brobecker@adacore.com>
17643
17644 Update copyright year range in all GDB files.
17645
5f4def5c
JB
176462020-01-01 Joel Brobecker <brobecker@adacore.com>
17647
17648 * copyright.py: Convert to Python 3.
17649
51fd4002
JB
176502020-01-01 Joel Brobecker <brobecker@adacore.com>
17651
17652 * copyright.py: Adapt after move of gnulib directory from gdb
17653 directory to toplevel directory.
17654
5fb651f2
JB
176552020-01-01 Joel Brobecker <brobecker@adacore.com>
17656
17657 * copyright.py (main): Exit if run from the wrong directory.
17658
5dd8bf88
JB
176592020-01-01 Joel Brobecker <brobecker@adacore.com>
17660
17661 * top.c (print_gdb_version): Change copyright year to 2020.
17662
9f71dacb 176632020-01-01 Joel Brobecker <brobecker@adacore.com>
3d34df0a 17664
9f71dacb 17665 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2019.
3d34df0a 17666
9f71dacb 17667For older changes see ChangeLog-2019.
c906108c
SS
17668\f
17669Local Variables:
17670mode: change-log
17671left-margin: 8
17672fill-column: 74
17673version-control: never
57da7796 17674coding: utf-8
c906108c 17675End: